Skip to content

Commit

Permalink
clients/packages/api: update OpenAPI client
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Jan 24, 2025
1 parent 518d83c commit cb5631a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
4 changes: 2 additions & 2 deletions clients/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint": "turbo run lint",
"test": "turbo run test",
"storybook": "turbo watch storybook",
"generate": "cd packages/sdk && pnpm generate",
"generate": "pnpm -C packages/api generate",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"preinstall": "npx only-allow pnpm",
"postinstall": "manypkg check",
Expand All @@ -34,4 +34,4 @@
"INTERNAL_MISMATCH"
]
}
}
}
46 changes: 26 additions & 20 deletions clients/packages/api/src/client/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3855,10 +3855,10 @@ export interface Checkout {
id: string;
/**
* Key-value object storing custom field values.
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof Checkout
*/
custom_field_data?: object;
custom_field_data?: { [key: string]: CustomFieldDataValue; };
/**
* Payment processor used.
* @type {PaymentProcessor}
Expand Down Expand Up @@ -4080,10 +4080,10 @@ export interface Checkout {
export interface CheckoutConfirmStripe {
/**
*
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof CheckoutConfirmStripe
*/
custom_field_data?: object | null;
custom_field_data?: { [key: string]: CustomFieldDataValue; } | null;
/**
*
* @type {string}
Expand Down Expand Up @@ -4878,10 +4878,10 @@ export interface CheckoutPriceCreate {
metadata?: { [key: string]: MetadataValue1; };
/**
* Key-value object storing custom field values.
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof CheckoutPriceCreate
*/
custom_field_data?: object;
custom_field_data?: { [key: string]: CustomFieldDataValue; };
/**
*
* @type {string}
Expand Down Expand Up @@ -5075,10 +5075,10 @@ export interface CheckoutProductCreate {
metadata?: { [key: string]: MetadataValue1; };
/**
* Key-value object storing custom field values.
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof CheckoutProductCreate
*/
custom_field_data?: object;
custom_field_data?: { [key: string]: CustomFieldDataValue; };
/**
*
* @type {string}
Expand Down Expand Up @@ -5199,10 +5199,10 @@ export interface CheckoutPublic {
id: string;
/**
* Key-value object storing custom field values.
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof CheckoutPublic
*/
custom_field_data?: object;
custom_field_data?: { [key: string]: CustomFieldDataValue; };
/**
* Payment processor used.
* @type {PaymentProcessor}
Expand Down Expand Up @@ -5433,10 +5433,10 @@ export interface CheckoutPublicConfirmed {
id: string;
/**
* Key-value object storing custom field values.
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof CheckoutPublicConfirmed
*/
custom_field_data?: object;
custom_field_data?: { [key: string]: CustomFieldDataValue; };
/**
* Payment processor used.
* @type {PaymentProcessor}
Expand Down Expand Up @@ -5687,10 +5687,10 @@ export type CheckoutStatus = typeof CheckoutStatus[keyof typeof CheckoutStatus];
export interface CheckoutUpdate {
/**
*
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof CheckoutUpdate
*/
custom_field_data?: object | null;
custom_field_data?: { [key: string]: CustomFieldDataValue; } | null;
/**
*
* @type {string}
Expand Down Expand Up @@ -5796,10 +5796,10 @@ export interface CheckoutUpdate {
export interface CheckoutUpdatePublic {
/**
*
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof CheckoutUpdatePublic
*/
custom_field_data?: object | null;
custom_field_data?: { [key: string]: CustomFieldDataValue; } | null;
/**
*
* @type {string}
Expand Down Expand Up @@ -6368,6 +6368,12 @@ export const CustomFieldCreateTextTypeEnum = {
} as const;
export type CustomFieldCreateTextTypeEnum = typeof CustomFieldCreateTextTypeEnum[keyof typeof CustomFieldCreateTextTypeEnum];

/**
* @type CustomFieldDataValue
* @export
*/
export type CustomFieldDataValue = boolean | number | string;

/**
* Schema for a custom field of type date.
* @export
Expand Down Expand Up @@ -14612,10 +14618,10 @@ export interface Order {
metadata: { [key: string]: MetadataValue; };
/**
* Key-value object storing custom field values.
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof Order
*/
custom_field_data?: object;
custom_field_data?: { [key: string]: CustomFieldDataValue; };
/**
*
* @type {string}
Expand Down Expand Up @@ -19346,10 +19352,10 @@ export interface Subscription {
metadata: { [key: string]: MetadataValue; };
/**
* Key-value object storing custom field values.
* @type {object}
* @type {{ [key: string]: CustomFieldDataValue; }}
* @memberof Subscription
*/
custom_field_data?: object;
custom_field_data?: { [key: string]: CustomFieldDataValue; };
/**
*
* @type {SubscriptionCustomer}
Expand Down

0 comments on commit cb5631a

Please sign in to comment.