Skip to content

Commit

Permalink
[nightly] generate types against bigcommerce/docs@0e7d3be (#360)
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
github-actions[bot] and github-actions[bot] authored Aug 23, 2024
1 parent ea6dcb2 commit 550ccdc
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-lies-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'bigrequest': patch
---

bigcommerce/docs#461, bigcommerce/docs#457, bigcommerce/docs#466, bigcommerce/docs#453, bigcommerce/docs#465
70 changes: 62 additions & 8 deletions src/generated/carts.sf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ export interface components {
* @description The discounted amount applied within a given context.
*/
discountedAmount?: number;
/** @description The coupon name displayed on the storefront. */
displayName?: string;
/** @description The coupon ID. */
id?: string;
})[];
Expand Down Expand Up @@ -237,7 +239,7 @@ export interface components {
locale?: string;
} | {
lineItems: components["schemas"]["requestCartPostLineItem"][];
giftCertificates: components["schemas"]["requestLineItemGiftCertificate"];
giftCertificates: components["schemas"]["requestLineItemGiftCertificate"][];
locale?: string;
};
/** Gift Wrapping */
Expand Down Expand Up @@ -315,7 +317,7 @@ export interface components {
version?: number;
} | {
lineItems: components["schemas"]["requestCartPostLineItem"][];
giftCertificates: components["schemas"]["requestLineItemGiftCertificate"];
giftCertificates: components["schemas"]["requestLineItemGiftCertificate"][];
/**
* @description The expected version of the cart.
* @example 1
Expand All @@ -331,15 +333,15 @@ export interface components {
*/
version?: number;
} | {
giftCertificates: components["schemas"]["requestLineItemGiftCertificate"];
giftCertificate?: components["schemas"]["requestLineItemGiftCertificate"];
/**
* @description The expected version of the cart.
* @example 1
*/
version?: number;
} | {
lineItem: components["schemas"]["requestCartPostLineItem"];
giftCertificates: components["schemas"]["requestLineItemGiftCertificate"];
giftCertificate?: components["schemas"]["requestLineItemGiftCertificate"];
/**
* @description The expected version of the cart.
* @example 1
Expand All @@ -363,6 +365,18 @@ export interface components {
* @description ISO-4217 currency code. (See: https://www.iso.org/iso-4217-currency-codes.html.)
*/
code?: string;
/** @description The number of decimal places that prices have when you use the currency. */
decimalPlaces?: number;
/**
* @description The name for the currency that the merchant entered in the control panel.
* @example US Dollar
*/
name?: string;
/**
* @description The currency symbol displayed on the storefront.
* @example $
*/
symbol?: string;
};
/** Response Line Items Object */
responseCartLineItems: {
Expand Down Expand Up @@ -436,6 +450,8 @@ export interface components {
* @description URL of an image of this item, accessible on the internet.
*/
imageUrl?: string;
/** @description Whether or not you can change or remove the item from the cart. Items that are immutable include those added automatically by promotions. */
isMutable?: boolean;
/** @description Whether the item is taxable. */
isTaxable?: boolean;
/** @description The net item price before discounts and coupons. BigCommerce derives an item’s list price from the product default price or, if applicable, the sale price configured in the admin panel. */
Expand All @@ -457,6 +473,11 @@ export interface components {
salePrice?: number;
/** @description SKU of the variant. */
sku?: string;
/**
* @description The type of line item.
* @enum {string}
*/
type?: "digital";
/**
* Format: uri
* @description The product URL.
Expand Down Expand Up @@ -502,7 +523,7 @@ export interface components {
/** @description ID of this gift certificate. */
id?: string;
/** @description Whether or not the gift certificate is taxable. */
isTaxable?: boolean;
taxable?: boolean;
/** @description Message that will be sent to the gift certificate's recipient. Limited to 200 characters. */
message?: string;
/** @description GiftCertificate-provided name that will appear in the control panel. */
Expand All @@ -511,6 +532,11 @@ export interface components {
sender: components["schemas"]["responseCartLineItemsGiftCertificatesSender"];
/** @description Currently supports `Birthday`, `Boy`, `Celebration`, `Christmas`, `General`, and `Girl`. */
theme: string;
/**
* @description The type of line item.
* @enum {string}
*/
type?: "giftCertificate";
};
/** Contact Entity */
responseCartLineItemsGiftCertificatesRecipient: {
Expand Down Expand Up @@ -562,6 +588,8 @@ export interface components {
* @description URL of an image of this item, accessible on the internet.
*/
imageUrl?: string;
/** @description Whether or not you can change or remove the item from the cart. Items that are immutable include those added automatically by promotions. */
isMutable?: boolean;
/** @description Whether the item is taxable. */
isTaxable?: boolean;
/** @description The net item price before discounts and coupons. BigCommerce derives an item’s list price from the product default price or, if applicable, the sale price configured in the admin panel. */
Expand All @@ -583,6 +611,11 @@ export interface components {
salePrice?: number;
/** @description SKU of the variant. */
sku?: string;
/**
* @description The type of line item.
* @enum {string}
*/
type?: "physical";
/**
* Format: uri
* @description The product URL.
Expand Down Expand Up @@ -617,21 +650,39 @@ export interface components {
isShippingRequired?: boolean;
};
/** Line Item Request Data */
requestCartPostLineItem: {
requestCartPostLineItem: ({
/** @description ID of the product. */
productId: number;
optionSelections?: ({
/**
* @description Modifier option ID.
* @example 2
*/
optionId?: number;
/** @description Modifier option value. */
optionValue?: string | number;
})[];
/** @description Quantity of this item. */
quantity: number;
giftWrapping?: components["schemas"]["requestPostOrPutGiftWrapping"];
} | {
}) | ({
/** @description ID of the product. */
productId: number;
/** @description Quantity of this item. */
quantity: number;
/** @description ID of the variant. */
variantId: number;
optionSelections?: ({
/**
* @description Modifier option ID.
* @example 2
*/
optionId?: number;
/** @description Modifier option value. */
optionValue?: string | number;
})[];
giftWrapping?: components["schemas"]["requestPostOrPutGiftWrapping"];
};
});
/** Contact Entity */
requestLineItemGiftCertificateRecipient: {
/**
Expand Down Expand Up @@ -910,6 +961,9 @@ export interface operations {
*/
updateCartCurrency: {
parameters: {
query?: {
include?: components["parameters"]["Include"];
};
header: {
Accept: components["parameters"]["Accept"];
"Content-Type": components["parameters"]["ContentType"];
Expand Down
2 changes: 1 addition & 1 deletion src/generated/products_catalog.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3036,7 +3036,7 @@ export interface components {
/** @description Pass a comma-separated list to filter by one or more channel IDs. */
ChannelIdInParam?: number[];
/** @description A comma-separated list of sub-resources to return with a product object. When you specify `options` or `modifiers`, results are limited to 10 per page. */
IncludeParam?: ("bulk_pricing_rules" | "reviews" | "modifiers" | "options" | "parent_relations")[];
IncludeParam?: ("bulk_pricing_rules" | "reviews" | "modifiers" | "options" | "parent_relations" | "custom_fields")[];
IdMinParam?: number;
IdMaxParam?: number;
IdGreaterParam?: number;
Expand Down
27 changes: 22 additions & 5 deletions src/generated/sites.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface paths {
put: operations["updateSite"];
/**
* Delete a Site
* @description Delete a site with site ID `{site_id}`.
* @description Delete a site with site ID `{site_id}`. Remove the URL set for a given site ID.
*/
delete: operations["deleteSite"];
parameters: {
Expand Down Expand Up @@ -230,6 +230,7 @@ export interface components {
*/
updated_at?: string;
/**
* @deprecated
* @description Indicates whether a site is using a private/dedicated SSL or a shared SSL.
* @enum {string}
*/
Expand Down Expand Up @@ -503,6 +504,16 @@ export interface components {
MetaOpen: {
[key: string]: unknown;
};
Meta: {
pagination?: {
/** @description The number of items skipped before starting the set of items returned. */
offset?: number;
/** @description The maximum number of items returned per page. */
limit?: number;
/** @description The total number of items available across all pages. */
total_items?: number;
};
};
};
responses: {
/** @description If something happens during the request that causes it to fail, a 502 response will be returned. A new request should be made; however, it could fail. */
Expand Down Expand Up @@ -553,7 +564,7 @@ export interface components {
content: {
"application/json": {
data?: components["schemas"]["_site"];
meta?: components["schemas"]["_metaCollection"];
meta?: components["schemas"]["MetaOpen"];
};
};
};
Expand Down Expand Up @@ -585,7 +596,7 @@ export interface components {
content: {
"application/json": {
data?: components["schemas"]["_site"][];
meta?: components["schemas"]["_metaCollection"];
meta?: components["schemas"]["Meta"];
};
};
};
Expand Down Expand Up @@ -709,7 +720,7 @@ export interface operations {
};
/**
* Delete a Site
* @description Delete a site with site ID `{site_id}`.
* @description Delete a site with site ID `{site_id}`. Remove the URL set for a given site ID.
*/
deleteSite: {
parameters: {
Expand All @@ -721,8 +732,14 @@ export interface operations {
};
};
responses: {
/** @description No Content. */
204: {
content: never;
content: {
"application/json": {
data?: Record<string, never>;
meta?: Record<string, never>;
};
};
};
};
};
Expand Down

0 comments on commit 550ccdc

Please sign in to comment.