Skip to content

Commit

Permalink
[nightly] generate types against bigcommerce/api-specs@0acf5ff (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
matthewvolk and github-actions[bot] authored Dec 6, 2023
1 parent 0e50eeb commit 43ad6d0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-carrots-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bigrequest": patch
---

Adds `.html` to template strings for gift certificates (bigcommerce/api-specs#1529). Cart product option value identifiers can be either string or number (bigcommerce/api-specs#1528). Changes `options` to `option_selections` for cart API (bigcommerce/api-specs#1530). Remove the `X-Strict-Mode` header from the price list records upsert endpoint (bigcommerce/api-specs#1532).
34 changes: 17 additions & 17 deletions packages/bigrequest/src/generated/carts.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export interface components {
* @description The theme of the gift certificate.
* @enum {string}
*/
theme: "Birthday" | "Boy" | "Celebration" | "Christmas" | "General" | "Girl";
theme: "birthday.html" | "boy.html" | "celebration.html" | "christmas.html" | "general.html" | "girl.html";
amount: number;
quantity: number;
/** Contact Entity */
Expand Down Expand Up @@ -308,7 +308,7 @@ export interface components {
* @description The theme of the gift certificate.
* @enum {string}
*/
theme: "Birthday" | "Boy" | "Celebration" | "Christmas" | "General" | "Girl";
theme: "birthday.html" | "boy.html" | "celebration.html" | "christmas.html" | "general.html" | "girl.html";
amount: number;
quantity: number;
/** Contact Entity */
Expand Down Expand Up @@ -361,7 +361,7 @@ export interface components {
* @description The theme of the gift certificate.
* @enum {string}
*/
theme: "Birthday" | "Boy" | "Celebration" | "Christmas" | "General" | "Girl";
theme: "birthday.html" | "boy.html" | "celebration.html" | "christmas.html" | "general.html" | "girl.html";
amount: number;
quantity: number;
/** Contact Entity */
Expand Down Expand Up @@ -409,7 +409,7 @@ export interface components {
* @description The theme of the gift certificate.
* @enum {string}
*/
theme: "Birthday" | "Boy" | "Celebration" | "Christmas" | "General" | "Girl";
theme: "birthday.html" | "boy.html" | "celebration.html" | "christmas.html" | "general.html" | "girl.html";
amount: number;
quantity: number;
/** Contact Entity */
Expand Down Expand Up @@ -533,7 +533,7 @@ export interface components {
* @description The theme of the gift certificate.
* @enum {string}
*/
theme: "Birthday" | "Boy" | "Celebration" | "Christmas" | "General" | "Girl";
theme: "birthday.html" | "boy.html" | "celebration.html" | "christmas.html" | "general.html" | "girl.html";
/** @description Value must be between 1.00 and 1,000.00 in the store’s default currency. */
amount: number;
is_taxable?: boolean;
Expand All @@ -555,7 +555,7 @@ export interface components {
id?: string;
/** @description Name provided for the gift certificate that will appear in the control panel. */
name?: string;
/** @description The theme of the gift certificate. The following options are available:`Birthday`, `Boy`, `Celebration`, `Christmas`, `General`, and `Girl`. */
/** @description The theme of the gift certificate. The following options are available:`birthday.html`, `boy.html`, `celebration.html`, `christmas.html`, `general.html`, and `girl.html`. */
theme?: string;
/** @description Value must be between 1.00 and 1,000.00 in the store’s default currency. */
amount?: number;
Expand Down Expand Up @@ -1307,7 +1307,7 @@ export interface components {
* @description The theme of the gift certificate.
* @enum {string}
*/
theme: "Birthday" | "Boy" | "Celebration" | "Christmas" | "General" | "Girl";
theme: "birthday.html" | "boy.html" | "celebration.html" | "christmas.html" | "general.html" | "girl.html";
amount: number;
quantity: number;
/** Contact Entity */
Expand Down Expand Up @@ -1335,7 +1335,7 @@ export interface components {
* @description The theme of the gift certificate.
* @enum {string}
*/
theme: "Birthday" | "Boy" | "Celebration" | "Christmas" | "General" | "Girl";
theme: "birthday.html" | "boy.html" | "celebration.html" | "christmas.html" | "general.html" | "girl.html";
amount: number;
quantity: number;
/** Contact Entity */
Expand Down Expand Up @@ -1533,19 +1533,19 @@ export interface components {
/** @description Sale price of the item multiplied by the quantity. */
extended_sale_price?: number;
/** @description The list of selected options for this product. */
options?: {
options?: ({
/** @description The product option name; for example, Color or Size. */
name?: string;
/** @description The product option identifier. */
/**
* @description The product option identifier.
* @example 151
*/
nameId?: number;
/** @description The product option value; for example, Red or Medium. */
value?: string;
/**
* @description The product option value identifier in number format.
* @example 128
*/
valueId?: number;
}[];
/** @description The product option value identifier in number format. */
valueId?: number | string;
})[];
/** @description The gift wrapping details for this item. */
gift_wrapping?: {
/** @example Gift Wrap 1 */
Expand Down Expand Up @@ -1689,7 +1689,7 @@ export interface components {
};
/** @description Response payload for the BigCommerce API. */
MetaFieldCollectionResponse: {
data?: Record<string, never>;
data?: components["schemas"]["Metafield"];
meta?: components["schemas"]["CollectionMeta"];
};
/**
Expand Down
12 changes: 6 additions & 6 deletions packages/bigrequest/src/generated/marketing.v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ export interface components {
expiry_date?: string;
/**
* @description The email theme to use in the message sent to the recipient.
* @example Celebration
* @example celebration.html
* @enum {string}
*/
template?: "Birthday" | "Girl" | "Boy" | "Celebration" | "Christmas" | "General";
template?: "birthday.html" | "girl.html" | "boy.html" | "celebration.html" | "christmas.html" | "general.html";
/**
* @description Text that will be sent to the recipient, such as “Congratulations.”
* @example Congratulations!
Expand Down Expand Up @@ -565,10 +565,10 @@ export interface components {
customer_id?: number;
/**
* @description The email theme to use in the message sent to the recipient.
* @example Celebration
* @example celebration.html
* @enum {string}
*/
template?: "Birthday" | "Boy" | "Girl" | "Celebration" | "Christmas" | "General";
template?: "birthday.html" | "boy.html" | "girl.html" | "celebration.html" | "christmas.html" | "general.html";
/**
* @description Text that will be sent to the recipient, such as “Congratulations.”
* @example Congratulations!
Expand Down Expand Up @@ -617,10 +617,10 @@ export interface components {
customer_id?: number;
/**
* @description The email theme to use in the message sent to the recipient.
* @example Celebration
* @example celebration.html
* @enum {string}
*/
template?: "Birthday" | "Boy" | "Girl" | "Celebration" | "Christmas" | "General";
template?: "birthday.html" | "boy.html" | "girl.html" | "celebration.html" | "christmas.html" | "general.html";
/**
* @description Text that will be sent to the recipient, such as “Congratulations.”
* @example Congratulations!
Expand Down
2 changes: 0 additions & 2 deletions packages/bigrequest/src/generated/price_lists.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1241,8 +1241,6 @@ export interface operations {
parameters: {
header: {
Accept: components["parameters"]["Accept"];
/** @description Header that determines whether the Batch API operates in strict mode or not. Strict mode will reject the entire request if any item in the batch has an error. */
"X-Strict-Mode"?: number;
"Content-Type": components["parameters"]["ContentType"];
};
path: {
Expand Down

0 comments on commit 43ad6d0

Please sign in to comment.