Skip to content

Commit

Permalink
[nightly] generate types against bigcommerce/docs@f1f528a
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and matthewvolk committed Jun 20, 2024
1 parent 089f498 commit 65d5833
Show file tree
Hide file tree
Showing 28 changed files with 5,290 additions and 797 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-pots-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'bigrequest': patch
---

bigcommerce/docs#295, bigcommerce/docs#279, bigcommerce/docs#293, bigcommerce/docs#298, bigcommerce/docs#309, bigcommerce/docs#310, bigcommerce/docs#296, bigcommerce/docs#303, bigcommerce/docs#307, bigcommerce/docs#319, bigcommerce/docs#315, bigcommerce/docs#323, bigcommerce/docs#318, bigcommerce/docs#312, bigcommerce/docs#328, bigcommerce/docs#324, bigcommerce/docs#313, bigcommerce/docs#329, bigcommerce/docs#333, bigcommerce/docs#334
91 changes: 40 additions & 51 deletions src/generated/abandoned_carts.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,24 @@
export interface paths {
"/abandoned-carts/settings": {
/**
* Get Global Abandoned Cart Settings
* @description Returns the global abandoned cart settings of a store.
* Get global abandoned cart settings
* @description Return the global abandoned cart settings of a store.
*/
get: operations["getGlobalAbandonedCartSettings"];
/**
* Update Global Abandoned Cart Settings
* @description Updates the global abandoned cart settings of a store.
* Update global abandoned cart settings
* @description Update the global abandoned cart settings of a store.
*/
put: operations["updateGlobalAbandonedCartSettings"];
parameters: {
header: {
Accept: components["parameters"]["Accept"];
};
};
};
"/abandoned-carts/settings/channels/{channel_id}": {
/**
* Get Channel Abandoned Cart Settings
* @description Returns the per-channel overrides for the abandoned cart settings of a store.
* Get channel abandoned cart settings
* @description Return the per-channel overrides for the abandoned cart settings of a store.
*/
get: operations["getChannelAbandonedCartSettings"];
/**
* Update Channel Abandoned Cart Settings
* Update channel abandoned cart settings
* @description Updates the per-channel overrides for the abandoned cart settings of a store.
*
* #### OAuth Scopes
Expand All @@ -39,20 +34,11 @@ export interface paths {
* | Information & Settings | modify | `store_v2_information` |
*/
put: operations["updateChannelAbandonedCartSettings"];
parameters: {
header: {
Accept: components["parameters"]["Accept"];
};
path: {
/** @description The channel ID of the settings overrides */
channel_id: number;
};
};
};
"/abandoned-carts/{token}": {
/**
* Get an Abandoned Cart
* @description Returns the `cart_id` corresponding to the abandoned cart `{token}` passed in.
* Get an abandoned cart
* @description Return the `cart_id` corresponding to the abandoned cart `{token}` passed in.
*
* **Usage Notes**:
* * `{token}` is the token in the query string of the abandoned cart link found in abandoned cart email notifications to shoppers
Expand Down Expand Up @@ -80,16 +66,19 @@ export interface components {
schemas: {
/**
* Response meta
* @description Response metadata.
* @description Response metadata
*/
metaEmpty_Full: {
[key: string]: unknown;
};
/** error_Full */
error_Full: {
/** @description The HTTP status code. */
/**
* Format: int32
* @description The HTTP status code
*/
status?: number;
/** @description The error title describing the particular error. */
/** @description The error title describing the particular error */
title?: string;
type?: string;
};
Expand All @@ -102,7 +91,7 @@ export interface components {
};
/** abandonedCartInfo_Full */
abandonedCartInfo_Full: {
/** @description The `cart_id` of the abandoned cart. Can be used to display the abandoned cart to the customer using storefront cart or server-to-server cart APIs. */
/** @description The `cart_id` of the abandoned cart. Can be used to display the abandoned cart to the customer using storefront cart or server-to-server cart APIs */
cart_id?: string;
};
/** @description Represents all settings related to the abandoned cart functionality of a store */
Expand All @@ -111,7 +100,7 @@ export interface components {
enable_notification?: boolean;
/** @description Indicates whether or not a customer should continue to receive abandoned cart emails until their cart is recovered */
email_customer_until_cart_is_recovered?: boolean;
/** @description Indicates whether or not a customer should receive abandoned cart emails based on their consent. By default customers will not receive emails. */
/** @description Indicates whether or not a customer should receive abandoned cart emails based on their consent. By default customers will not receive emails */
marketing_emails_require_customer_consent?: boolean;
/** @description Indicates whether or not a merchant should receive a notification email when a cart is converted into an order */
email_merchant_when_cart_is_converted?: boolean;
Expand All @@ -127,7 +116,10 @@ export interface components {
* @enum {string}
*/
merchant_abandoned_cart_email_frequency_type?: "digest" | "individual";
/** @description The number of abandoned carts to accumulate before a digest email is sent to a merchant */
/**
* Format: int32
* @description The number of abandoned carts to accumulate before a digest email is sent to a merchant
*/
merchant_abandoned_cart_digest_email_frequency?: number;
};
/** @description Represents all settings overrides related to the abandoned cart functionality of a store for a channel */
Expand All @@ -152,7 +144,10 @@ export interface components {
* @enum {string|null}
*/
merchant_abandoned_cart_email_frequency_type?: "digest" | "individual" | null;
/** @description The number of abandoned carts to accumulate before a digest email is sent to a merchant. If it is null, it means there is no override for the specified channel. */
/**
* Format: int32
* @description The number of abandoned carts to accumulate before a digest email is sent to a merchant. If it is null, it means there is no override for the specified channel.
*/
merchant_abandoned_cart_digest_email_frequency?: number | null;
};
ChannelAbandonedCartSettingsRequest: components["schemas"]["ChannelAbandonedCartSettings"];
Expand All @@ -169,6 +164,7 @@ export interface components {
};
/** @description The response object containing details of an error */
ErrorResponse: {
/** Format: int32 */
status?: number;
title?: string;
type?: string;
Expand All @@ -191,11 +187,6 @@ export interface components {
"application/json": components["schemas"]["errorDetailed_Full"];
};
};
"403_Unauthorized": {
content: {
"application/json": components["schemas"]["error_Full"];
};
};
/**
* @description Malformed request syntax. Typically need to fix the JSON
* Body to resend successfully.
Expand Down Expand Up @@ -251,13 +242,14 @@ export type external = Record<string, never>;
export interface operations {

/**
* Get Global Abandoned Cart Settings
* @description Returns the global abandoned cart settings of a store.
* Get global abandoned cart settings
* @description Return the global abandoned cart settings of a store.
*/
getGlobalAbandonedCartSettings: {
parameters: {
header: {
Accept: components["parameters"]["Accept"];
query?: {
/** @description How many pages to return */
pagination?: number;
};
};
responses: {
Expand All @@ -276,14 +268,14 @@ export interface operations {
};
};
/**
* Update Global Abandoned Cart Settings
* @description Updates the global abandoned cart settings of a store.
* Update global abandoned cart settings
* @description Update the global abandoned cart settings of a store.
*/
updateGlobalAbandonedCartSettings: {
parameters: {
header: {
Accept: components["parameters"]["Accept"];
"Content-Type": components["parameters"]["ContentType"];
Accept: components["parameters"]["Accept"];
};
};
requestBody: {
Expand Down Expand Up @@ -313,14 +305,11 @@ export interface operations {
};
};
/**
* Get Channel Abandoned Cart Settings
* @description Returns the per-channel overrides for the abandoned cart settings of a store.
* Get channel abandoned cart settings
* @description Return the per-channel overrides for the abandoned cart settings of a store.
*/
getChannelAbandonedCartSettings: {
parameters: {
header: {
Accept: components["parameters"]["Accept"];
};
path: {
/** @description The channel ID of the settings overrides */
channel_id: number;
Expand All @@ -342,7 +331,7 @@ export interface operations {
};
};
/**
* Update Channel Abandoned Cart Settings
* Update channel abandoned cart settings
* @description Updates the per-channel overrides for the abandoned cart settings of a store.
*
* #### OAuth Scopes
Expand All @@ -353,8 +342,8 @@ export interface operations {
updateChannelAbandonedCartSettings: {
parameters: {
header: {
Accept: components["parameters"]["Accept"];
"Content-Type": components["parameters"]["ContentType"];
Accept: components["parameters"]["Accept"];
};
path: {
/** @description The channel ID of the settings overrides */
Expand Down Expand Up @@ -388,8 +377,8 @@ export interface operations {
};
};
/**
* Get an Abandoned Cart
* @description Returns the `cart_id` corresponding to the abandoned cart `{token}` passed in.
* Get an abandoned cart
* @description Return the `cart_id` corresponding to the abandoned cart `{token}` passed in.
*
* **Usage Notes**:
* * `{token}` is the token in the query string of the abandoned cart link found in abandoned cart email notifications to shoppers
Expand Down
2 changes: 1 addition & 1 deletion src/generated/carts.sf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export interface components {
responseCartCurrency: {
/**
* Format: ISO-4217
* @description ISO-4217 currency code. (See: http://en.wikipedia.org/wiki/ISO_4217.)
* @description ISO-4217 currency code. (See: https://www.iso.org/iso-4217-currency-codes.html.)
*/
code?: string;
};
Expand Down
16 changes: 12 additions & 4 deletions src/generated/carts.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export interface components {
Currency: {
/**
* Format: ISO-4217
* @description ISO-4217 currency code. (See: http://en.wikipedia.org/wiki/ISO_4217.)
* @description ISO-4217 currency code. (See: https://www.iso.org/iso-4217-currency-codes.html.)
*/
code?: string;
};
Expand Down Expand Up @@ -1352,9 +1352,9 @@ export interface components {
/** Redirect_urls_Post */
Redirect_urls_Post: {
query_params?: {
key?: string;
value?: string;
}[];
key?: string;
value?: string;
};
};
/** Cart_Line_Item_Update_Post */
Cart_Line_Item_Update_Post: {
Expand Down Expand Up @@ -2125,6 +2125,14 @@ export interface operations {
};
requestBody?: {
content: {
/**
* @example {
* "query_params": {
* "key_1": "value_1",
* "key_2": "value_2"
* }
* }
*/
"application/json": components["schemas"]["Redirect_urls_Post"];
};
};
Expand Down
Loading

0 comments on commit 65d5833

Please sign in to comment.