brainerce 1.17.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4487 -4447
- package/dist/index.d.mts +196 -12
- package/dist/index.d.ts +196 -12
- package/dist/index.js +155 -22
- package/dist/index.mjs +155 -22
- package/package.json +76 -76
package/dist/index.d.mts
CHANGED
|
@@ -895,6 +895,32 @@ interface Order {
|
|
|
895
895
|
/** Tax amount */
|
|
896
896
|
taxAmount?: string | null;
|
|
897
897
|
createdAt: string;
|
|
898
|
+
/** Payment method used (e.g., "card", "paypal", "cash_on_delivery"). */
|
|
899
|
+
paymentMethod?: string | null;
|
|
900
|
+
/** Financial status: "pending", "paid", "refunded", "partially_refunded", "voided". */
|
|
901
|
+
financialStatus?: string | null;
|
|
902
|
+
/** Fulfillment status: "unfulfilled", "partial", "fulfilled". */
|
|
903
|
+
fulfillmentStatus?: string | null;
|
|
904
|
+
/** Tracking number, e.g., "1Z999AA10123456784". */
|
|
905
|
+
trackingNumber?: string | null;
|
|
906
|
+
/** Deep link to the carrier's tracking page. */
|
|
907
|
+
trackingUrl?: string | null;
|
|
908
|
+
/** Carrier name, e.g., "UPS", "USPS", "DHL". */
|
|
909
|
+
carrier?: string | null;
|
|
910
|
+
/** ISO-8601 timestamp when the order was shipped. */
|
|
911
|
+
shippedAt?: string | null;
|
|
912
|
+
/** ISO-8601 timestamp when the order was delivered. */
|
|
913
|
+
deliveredAt?: string | null;
|
|
914
|
+
/** Status timeline entries in chronological order. */
|
|
915
|
+
statusHistory?: OrderStatusChange[] | null;
|
|
916
|
+
}
|
|
917
|
+
/** One status transition on an order. */
|
|
918
|
+
interface OrderStatusChange {
|
|
919
|
+
status: OrderStatus;
|
|
920
|
+
/** ISO-8601 timestamp of the transition. */
|
|
921
|
+
at: string;
|
|
922
|
+
/** Optional note (why the status changed). */
|
|
923
|
+
note?: string | null;
|
|
898
924
|
}
|
|
899
925
|
/**
|
|
900
926
|
* Order status values are **lowercase**.
|
|
@@ -961,10 +987,13 @@ interface OrderItem {
|
|
|
961
987
|
totalPrice?: string;
|
|
962
988
|
/** Product image URL (flat, not nested under product object) */
|
|
963
989
|
image?: string;
|
|
964
|
-
/**
|
|
990
|
+
/**
|
|
991
|
+
* Customer input field values captured at checkout (e.g., cake text, uploaded logo).
|
|
992
|
+
* `value` is `string[]` for MULTI_SELECT / GALLERY types, `string` otherwise.
|
|
993
|
+
*/
|
|
965
994
|
customizations?: Record<string, {
|
|
966
995
|
label: string;
|
|
967
|
-
value: string;
|
|
996
|
+
value: string | string[];
|
|
968
997
|
type: string;
|
|
969
998
|
}>;
|
|
970
999
|
}
|
|
@@ -2498,8 +2527,8 @@ interface CustomApiTestResult {
|
|
|
2498
2527
|
* The frontend dynamically loads the SDK script and calls init/render methods.
|
|
2499
2528
|
*/
|
|
2500
2529
|
interface PaymentClientSdk {
|
|
2501
|
-
/** How the payment UI is rendered: 'sdk-widget' (JS SDK), 'iframe', 'redirect',
|
|
2502
|
-
renderType: 'sdk-widget' | 'iframe' | 'redirect' | 'sandbox';
|
|
2530
|
+
/** How the payment UI is rendered: 'sdk-widget' (JS SDK), 'iframe', 'redirect', 'sandbox' (test orders), or 'embedded-fields' (PCI-compliant provider-hosted fields embedded in merchant DOM, e.g. Cardcom OpenFields, Stripe Elements) */
|
|
2531
|
+
renderType: 'sdk-widget' | 'iframe' | 'redirect' | 'sandbox' | 'embedded-fields';
|
|
2503
2532
|
/** URL of the main SDK script to load */
|
|
2504
2533
|
scriptUrl?: string;
|
|
2505
2534
|
/** Name of the global variable set by the SDK script (e.g., 'growPayment') */
|
|
@@ -2521,6 +2550,12 @@ interface PaymentClientSdk {
|
|
|
2521
2550
|
}>;
|
|
2522
2551
|
/** CSS to inject into <head> when SDK is active (e.g., LTR overrides for body-level popups on RTL pages) */
|
|
2523
2552
|
bodyStyles?: string;
|
|
2553
|
+
/** For renderType='embedded-fields': base URL the sensitive-field iframes load (e.g. 'https://secure.cardcom.solutions'). postMessage origin is strictly validated against this. */
|
|
2554
|
+
embeddedFieldsUrl?: string;
|
|
2555
|
+
/** For renderType='embedded-fields': opaque provider session id used in the iframe init handshake (e.g., Cardcom LowProfileId) */
|
|
2556
|
+
embeddedFieldsSessionId?: string;
|
|
2557
|
+
/** Provider discriminator that selects the correct embedded-fields component on the storefront */
|
|
2558
|
+
embeddedFieldsProvider?: 'cardcom';
|
|
2524
2559
|
}
|
|
2525
2560
|
/**
|
|
2526
2561
|
* Payment provider configuration (returned by `getPaymentProviders()`).
|
|
@@ -3156,7 +3191,7 @@ interface UpdateTaxRateDto {
|
|
|
3156
3191
|
/**
|
|
3157
3192
|
* Metafield type for defining value structure
|
|
3158
3193
|
*/
|
|
3159
|
-
type MetafieldType = 'TEXT' | 'TEXTAREA' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'URL' | 'COLOR' | 'DIMENSION' | 'WEIGHT' | 'JSON' | 'IMAGE' | 'GALLERY';
|
|
3194
|
+
type MetafieldType = 'TEXT' | 'TEXTAREA' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'URL' | 'COLOR' | 'DIMENSION' | 'WEIGHT' | 'JSON' | 'IMAGE' | 'GALLERY' | 'SELECT' | 'MULTI_SELECT';
|
|
3160
3195
|
/**
|
|
3161
3196
|
* Metafield definition - schema for product metafields
|
|
3162
3197
|
*/
|
|
@@ -3168,6 +3203,13 @@ interface MetafieldDefinition {
|
|
|
3168
3203
|
description?: string | null;
|
|
3169
3204
|
type: MetafieldType;
|
|
3170
3205
|
required: boolean;
|
|
3206
|
+
isCustomerInput?: boolean;
|
|
3207
|
+
/**
|
|
3208
|
+
* When `true`, the field is treated as present on every product of this
|
|
3209
|
+
* account — including products created later. Clients don't need to list
|
|
3210
|
+
* individual `ProductCustomizationField` rows when this is set.
|
|
3211
|
+
*/
|
|
3212
|
+
appliesToAllProducts?: boolean;
|
|
3171
3213
|
minLength?: number | null;
|
|
3172
3214
|
maxLength?: number | null;
|
|
3173
3215
|
minValue?: number | null;
|
|
@@ -3177,6 +3219,11 @@ interface MetafieldDefinition {
|
|
|
3177
3219
|
position: number;
|
|
3178
3220
|
isActive: boolean;
|
|
3179
3221
|
mappings?: MetafieldPlatformMapping[];
|
|
3222
|
+
/** Products this definition is explicitly attached to (customer-input only). */
|
|
3223
|
+
products?: Array<{
|
|
3224
|
+
id: string;
|
|
3225
|
+
name: string;
|
|
3226
|
+
}>;
|
|
3180
3227
|
createdAt: string;
|
|
3181
3228
|
updatedAt: string;
|
|
3182
3229
|
}
|
|
@@ -3192,6 +3239,11 @@ interface PublicMetafieldDefinition {
|
|
|
3192
3239
|
type: MetafieldType;
|
|
3193
3240
|
required: boolean;
|
|
3194
3241
|
isCustomerInput?: boolean;
|
|
3242
|
+
/**
|
|
3243
|
+
* When true, this definition applies to every product of the account —
|
|
3244
|
+
* including ones created after the flag was set.
|
|
3245
|
+
*/
|
|
3246
|
+
appliesToAllProducts?: boolean;
|
|
3195
3247
|
enumValues?: string[];
|
|
3196
3248
|
minLength?: number | null;
|
|
3197
3249
|
maxLength?: number | null;
|
|
@@ -3238,6 +3290,14 @@ interface CreateMetafieldDefinitionDto {
|
|
|
3238
3290
|
description?: string;
|
|
3239
3291
|
type?: MetafieldType;
|
|
3240
3292
|
required?: boolean;
|
|
3293
|
+
isCustomerInput?: boolean;
|
|
3294
|
+
/** When true the field applies to every product in the account. */
|
|
3295
|
+
appliesToAllProducts?: boolean;
|
|
3296
|
+
/**
|
|
3297
|
+
* Assign the new (customer-input) definition to specific products atomically
|
|
3298
|
+
* in the same create call. Only valid when `isCustomerInput` is true.
|
|
3299
|
+
*/
|
|
3300
|
+
productIds?: string[];
|
|
3241
3301
|
minLength?: number;
|
|
3242
3302
|
maxLength?: number;
|
|
3243
3303
|
minValue?: number;
|
|
@@ -3251,6 +3311,8 @@ interface UpdateMetafieldDefinitionDto {
|
|
|
3251
3311
|
description?: string | null;
|
|
3252
3312
|
type?: MetafieldType;
|
|
3253
3313
|
required?: boolean;
|
|
3314
|
+
isCustomerInput?: boolean;
|
|
3315
|
+
appliesToAllProducts?: boolean;
|
|
3254
3316
|
minLength?: number | null;
|
|
3255
3317
|
maxLength?: number | null;
|
|
3256
3318
|
minValue?: number | null;
|
|
@@ -3260,6 +3322,16 @@ interface UpdateMetafieldDefinitionDto {
|
|
|
3260
3322
|
position?: number;
|
|
3261
3323
|
isActive?: boolean;
|
|
3262
3324
|
}
|
|
3325
|
+
/**
|
|
3326
|
+
* Set (replace with diff-scoped semantics) the list of products linked to a
|
|
3327
|
+
* single customer-input metafield definition. Passing an empty array detaches
|
|
3328
|
+
* the definition from every product.
|
|
3329
|
+
*/
|
|
3330
|
+
interface SetDefinitionProductsDto {
|
|
3331
|
+
productIds: string[];
|
|
3332
|
+
/** Optionally flip the `appliesToAllProducts` flag in the same call. */
|
|
3333
|
+
appliesToAllProducts?: boolean;
|
|
3334
|
+
}
|
|
3263
3335
|
/**
|
|
3264
3336
|
* Product metafield value
|
|
3265
3337
|
*/
|
|
@@ -3693,6 +3765,21 @@ interface CartBundleOffer {
|
|
|
3693
3765
|
interface CartBundlesResponse {
|
|
3694
3766
|
bundles: CartBundleOffer[];
|
|
3695
3767
|
}
|
|
3768
|
+
/** Valid values for the cart `include` query parameter */
|
|
3769
|
+
type CartIncludeOption = 'recommendations' | 'upgrades' | 'bundles';
|
|
3770
|
+
/** Options for getCart / smartGetCart with optional includes */
|
|
3771
|
+
interface CartIncludeOptions {
|
|
3772
|
+
include?: CartIncludeOption[];
|
|
3773
|
+
}
|
|
3774
|
+
/** Cart response enriched with optional included data */
|
|
3775
|
+
interface CartWithIncludes extends Cart {
|
|
3776
|
+
/** Cross-sell recommendations (present when include contains 'recommendations') */
|
|
3777
|
+
recommendations?: CartRecommendationsResponse;
|
|
3778
|
+
/** Upgrade suggestions (present when include contains 'upgrades') */
|
|
3779
|
+
upgrades?: CartUpgradesResponse;
|
|
3780
|
+
/** Bundle offers (present when include contains 'bundles') */
|
|
3781
|
+
bundles?: CartBundlesResponse;
|
|
3782
|
+
}
|
|
3696
3783
|
interface OrderBump {
|
|
3697
3784
|
id: string;
|
|
3698
3785
|
title: string;
|
|
@@ -4911,18 +4998,60 @@ declare class BrainerceClient {
|
|
|
4911
4998
|
getCartByCustomer(customerId: string): Promise<Cart>;
|
|
4912
4999
|
/**
|
|
4913
5000
|
* Get a cart by ID
|
|
5001
|
+
*
|
|
5002
|
+
* @param cartId - The cart ID
|
|
5003
|
+
* @param options - Optional settings. Use `include` to fetch related data in a single request.
|
|
5004
|
+
*
|
|
5005
|
+
* @example
|
|
5006
|
+
* ```typescript
|
|
5007
|
+
* // Basic cart fetch
|
|
5008
|
+
* const cart = await client.getCart('cart_123');
|
|
5009
|
+
*
|
|
5010
|
+
* // Fetch cart with recommendations, upgrades, and bundles in one call
|
|
5011
|
+
* const enriched = await client.getCart('cart_123', {
|
|
5012
|
+
* include: ['recommendations', 'upgrades', 'bundles'],
|
|
5013
|
+
* });
|
|
5014
|
+
* console.log(enriched.recommendations); // { recommendations: [...] }
|
|
5015
|
+
* console.log(enriched.upgrades); // { upgrades: { ... } }
|
|
5016
|
+
* console.log(enriched.bundles); // { bundles: [...] }
|
|
5017
|
+
* ```
|
|
4914
5018
|
*/
|
|
4915
|
-
getCart(cartId: string): Promise<
|
|
5019
|
+
getCart(cartId: string, options?: CartIncludeOptions): Promise<CartWithIncludes>;
|
|
4916
5020
|
/**
|
|
4917
|
-
* Add an item to the cart
|
|
5021
|
+
* Add an item to the cart.
|
|
5022
|
+
*
|
|
5023
|
+
* If the product has `customizationFields` (merchant-defined buyer input
|
|
5024
|
+
* like engraving text, uploaded photos, select options), pass the buyer's
|
|
5025
|
+
* values in `metadata`. Keys must match each field's `key`. For `IMAGE` /
|
|
5026
|
+
* `GALLERY` types, upload the file first via `uploadCustomizationFile()`
|
|
5027
|
+
* and pass the returned URL. The server validates every value against its
|
|
5028
|
+
* `MetafieldDefinition` and rejects the request with HTTP 400 if anything
|
|
5029
|
+
* fails (type mismatch, required missing, not in `enumValues`, etc.).
|
|
5030
|
+
*
|
|
5031
|
+
* Values are snapshotted onto the order line at checkout — later edits to
|
|
5032
|
+
* the field definition do not retroactively change existing orders.
|
|
4918
5033
|
*
|
|
4919
5034
|
* @example
|
|
4920
5035
|
* ```typescript
|
|
5036
|
+
* // Product with no customization fields
|
|
4921
5037
|
* const cart = await client.addToCart('cart_123', {
|
|
4922
5038
|
* productId: 'prod_abc',
|
|
4923
5039
|
* quantity: 2,
|
|
4924
5040
|
* notes: 'Gift wrap please',
|
|
4925
5041
|
* });
|
|
5042
|
+
*
|
|
5043
|
+
* // Product WITH customization fields (engraving + photo + select + multi)
|
|
5044
|
+
* const { url: photoUrl } = await client.uploadCustomizationFile(file);
|
|
5045
|
+
* const cart = await client.addToCart('cart_123', {
|
|
5046
|
+
* productId: 'prod_mug',
|
|
5047
|
+
* quantity: 1,
|
|
5048
|
+
* metadata: {
|
|
5049
|
+
* engraving_text: 'Happy Birthday!', // TEXT
|
|
5050
|
+
* frame_color: 'Gold', // SELECT (must be in enumValues)
|
|
5051
|
+
* upload_photo: photoUrl, // IMAGE
|
|
5052
|
+
* addons: ['Gift wrap'], // MULTI_SELECT (always array)
|
|
5053
|
+
* },
|
|
5054
|
+
* });
|
|
4926
5055
|
* ```
|
|
4927
5056
|
*/
|
|
4928
5057
|
addToCart(cartId: string, item: AddToCartDto): Promise<Cart>;
|
|
@@ -5263,6 +5392,7 @@ declare class BrainerceClient {
|
|
|
5263
5392
|
productId: string;
|
|
5264
5393
|
variantId?: string;
|
|
5265
5394
|
quantity: number;
|
|
5395
|
+
metadata?: Record<string, unknown>;
|
|
5266
5396
|
}): Promise<Cart>;
|
|
5267
5397
|
/**
|
|
5268
5398
|
* Smart get cart - returns the current cart (server-side for both guests and logged-in users)
|
|
@@ -5271,13 +5401,21 @@ declare class BrainerceClient {
|
|
|
5271
5401
|
* - **Guest with session**: Returns server-side session cart
|
|
5272
5402
|
* - **Guest without session**: Returns empty cart (no server call, cart created lazily on add)
|
|
5273
5403
|
*
|
|
5404
|
+
* @param options - Optional. Use `include` to fetch recommendations, upgrades, and bundles
|
|
5405
|
+
* in a single request instead of separate calls.
|
|
5406
|
+
*
|
|
5274
5407
|
* @example
|
|
5275
5408
|
* ```typescript
|
|
5276
5409
|
* const cart = await client.smartGetCart();
|
|
5277
5410
|
* console.log('Items:', cart.items.length);
|
|
5411
|
+
*
|
|
5412
|
+
* // With includes — single request for cart + extras
|
|
5413
|
+
* const enriched = await client.smartGetCart({
|
|
5414
|
+
* include: ['recommendations', 'upgrades', 'bundles'],
|
|
5415
|
+
* });
|
|
5278
5416
|
* ```
|
|
5279
5417
|
*/
|
|
5280
|
-
smartGetCart(): Promise<
|
|
5418
|
+
smartGetCart(options?: CartIncludeOptions): Promise<CartWithIncludes>;
|
|
5281
5419
|
/**
|
|
5282
5420
|
* Smart update cart item quantity
|
|
5283
5421
|
*
|
|
@@ -6636,6 +6774,26 @@ declare class BrainerceClient {
|
|
|
6636
6774
|
* Requires Admin mode (apiKey)
|
|
6637
6775
|
*/
|
|
6638
6776
|
deleteMetafieldDefinition(definitionId: string): Promise<void>;
|
|
6777
|
+
/**
|
|
6778
|
+
* Replace the list of products a (customer-input) metafield definition is
|
|
6779
|
+
* attached to. Diff-scoped: only rows for this definition are touched, so
|
|
6780
|
+
* concurrent edits to other definitions on the same product are safe.
|
|
6781
|
+
*
|
|
6782
|
+
* Optionally toggles `appliesToAllProducts` in the same call. When that
|
|
6783
|
+
* flag is true the `productIds` list is still respected as the explicit
|
|
6784
|
+
* subset, but buyers will see the field on every product regardless.
|
|
6785
|
+
*
|
|
6786
|
+
* Requires Admin mode (apiKey).
|
|
6787
|
+
*
|
|
6788
|
+
* @example
|
|
6789
|
+
* ```typescript
|
|
6790
|
+
* await client.setDefinitionProducts('def_123', {
|
|
6791
|
+
* productIds: ['prod_a', 'prod_b'],
|
|
6792
|
+
* appliesToAllProducts: false,
|
|
6793
|
+
* });
|
|
6794
|
+
* ```
|
|
6795
|
+
*/
|
|
6796
|
+
setDefinitionProducts(definitionId: string, data: SetDefinitionProductsDto): Promise<MetafieldDefinition>;
|
|
6639
6797
|
/**
|
|
6640
6798
|
* Get all metafield values for a product
|
|
6641
6799
|
* Requires Admin mode (apiKey)
|
|
@@ -6670,9 +6828,35 @@ declare class BrainerceClient {
|
|
|
6670
6828
|
*/
|
|
6671
6829
|
setProductCustomizationFields(productId: string, definitionIds: string[]): Promise<ProductCustomizationField[]>;
|
|
6672
6830
|
/**
|
|
6673
|
-
* Upload a file
|
|
6674
|
-
*
|
|
6675
|
-
*
|
|
6831
|
+
* Upload a buyer-submitted file (engraving photo, custom image, etc.) for a
|
|
6832
|
+
* product customization field of type `IMAGE` or `GALLERY`. The returned `url`
|
|
6833
|
+
* is what you pass back in the add-to-cart `metadata` payload.
|
|
6834
|
+
*
|
|
6835
|
+
* Available in storefront and vibe-coded modes — no customer login required.
|
|
6836
|
+
*
|
|
6837
|
+
* Server rules:
|
|
6838
|
+
* - `image/*` MIME only. Other types → HTTP 400.
|
|
6839
|
+
* - Max 5 MB per file.
|
|
6840
|
+
* - Throttled to 10 uploads / minute per IP → HTTP 429.
|
|
6841
|
+
* - Retention: at least 7 days. If the cart never becomes an order, the file
|
|
6842
|
+
* is reclaimed automatically. Once the order exists, the file is kept for
|
|
6843
|
+
* order-history purposes.
|
|
6844
|
+
*
|
|
6845
|
+
* @example
|
|
6846
|
+
* ```ts
|
|
6847
|
+
* // On a product page with IMAGE/GALLERY customization fields:
|
|
6848
|
+
* const { url } = await client.uploadCustomizationFile(fileInput.files[0]);
|
|
6849
|
+
*
|
|
6850
|
+
* // Then include the URL in the add-to-cart metadata:
|
|
6851
|
+
* await client.addToCart(cart.id, {
|
|
6852
|
+
* productId: product.id,
|
|
6853
|
+
* quantity: 1,
|
|
6854
|
+
* metadata: {
|
|
6855
|
+
* engraving_text: 'Happy Birthday!',
|
|
6856
|
+
* upload_photo: url,
|
|
6857
|
+
* },
|
|
6858
|
+
* });
|
|
6859
|
+
* ```
|
|
6676
6860
|
*/
|
|
6677
6861
|
uploadCustomizationFile(file: File | Blob): Promise<{
|
|
6678
6862
|
url: string;
|
|
@@ -6999,4 +7183,4 @@ declare function enableDevGuards(options?: {
|
|
|
6999
7183
|
force?: boolean;
|
|
7000
7184
|
}): void;
|
|
7001
7185
|
|
|
7002
|
-
export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type Attribute, type AttributeOption, type AttributeSource, type BrainerceApiError, BrainerceClient, type BrainerceClientOptions, BrainerceError, type Brand, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartAppliedDiscount, type CartBundleOffer, type CartBundlesResponse, type CartItem, type CartNudge, type CartRecommendationsResponse, type CartStatus, type CartUpgradeSuggestion, type CartUpgradesResponse, type Category, type CategoryNode, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutBumpsResponse, type CheckoutCustomFieldDefinition, type CheckoutFieldPricing, type CheckoutFieldVisibility, type CheckoutLineItem, type CheckoutPrefillData, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConfigureOAuthProviderDto as ConfigureOAuthProviderInput, type ConflictStatus, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateAttributeDto as CreateAttributeInput, type CreateAttributeOptionDto as CreateAttributeOptionInput, type CreateBrandDto as CreateBrandInput, type CreateCategoryDto as CreateCategoryInput, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateEmailTemplateDto as CreateEmailTemplateInput, type CreateGuestOrderDto, type CreateMetafieldDefinitionDto as CreateMetafieldDefinitionInput, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateShippingRateDto as CreateShippingRateInput, type CreateShippingZoneDto as CreateShippingZoneInput, type CreateTagDto as CreateTagInput, type CreateTaxRateDto as CreateTaxRateInput, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerOAuthProvider, type CustomerProfile, type CustomerQueryParams, type DeleteProductResponse, type DiscountBanner, type DiscountRuleType, type DownloadFile, type DraftLineItem, type EditInventoryDto, type EmailDomain, type EmailEventSettings, type EmailEventType, type EmailSettings, type EmailTemplate, type EmailTemplatePreview, type EmailTemplatesResponse, type EmailVerificationResponse, type ExtendReservationResponse, type FormatPriceOptions, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InsufficientStockError, type InventoryInfo, type InventoryReservationStrategy, type InventorySyncStatus, type InventoryTrackingMode, type InvitationStatus, type InviteMemberDto as InviteMemberInput, type InviteStoreMemberDto as InviteStoreMemberInput, type LocalCart, type LocalCartItem, type LockedVariant, type MergeCartsDto, type MetafieldConflict, type MetafieldConflictResolution, type MetafieldDefinition, type MetafieldPlatformMapping, type MetafieldType, type OAuthAuthorizeResponse, type OAuthCallbackResponse, type OAuthConnection, type OAuthConnectionsResponse, type OAuthProviderConfig, type OAuthProviderType, type OAuthProvidersResponse, type Order, type OrderAddress, type OrderBump, type OrderCustomer, type OrderDownloadLink, type OrderItem, type OrderQueryParams, type OrderStatus, type PaginatedResponse, type PaymentClientSdk, type PaymentConfig, type PaymentIntent, type PaymentProvider, type PaymentProviderConfig, type PaymentProvidersConfig, type PaymentStatus, type PickupLocation, type PlatformCouponCapabilities, type PreviewEmailTemplateDto as PreviewEmailTemplateInput, type Product, type ProductAttributeInput, type ProductAvailability, type ProductCustomizationField, type ProductDiscount, type ProductDiscountBadge, type ProductImage, type ProductMetafield, type ProductMetafieldValue, type ProductQueryParams, type ProductRecommendation, type ProductRecommendationsResponse, type ProductRelationType, type ProductSuggestion, type ProductVariant, type PublicMetafieldDefinition, type PublishProductResponse, type RecommendationVariant, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type ReservationInfo, type ResolveMetafieldConflictDto as ResolveMetafieldConflictInput, type ResolveSyncConflictDto as ResolveSyncConflictInput, SDK_VERSION, type SearchSuggestions, type SelectPickupLocationDto, type SelectShippingMethodDto, type SendInvoiceDto, type SessionCartRef, type SetBillingAddressDto, type SetCheckoutCustomFieldsDto, type SetCheckoutCustomerDto, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingDestinations, type ShippingLine, type ShippingRate, type ShippingRateConfig, type ShippingRateType, type ShippingZone, type ShippingZoneQueryParams, type StockAvailabilityRequest, type StockAvailabilityResponse, type StockAvailabilityResult, type StoreInfo, type StoreInvitation, type StoreInvitationDetails, type StoreMember, type StorePermission, type StoreRole, type StoreTeamResponse, type SyncConflict, type SyncConflictResolution, type SyncJob, type Tag, type TaxBreakdown, type TaxBreakdownItem, type TaxRate, type TaxonomyQueryParams, type TeamInvitation, type TeamInvitationsResponse, type TeamMember, type TeamMembersResponse, type TeamRole, type UpdateAddressDto, type UpdateAttributeDto as UpdateAttributeInput, type UpdateAttributeOptionDto as UpdateAttributeOptionInput, type UpdateBrandDto as UpdateBrandInput, type UpdateCartItemDto, type UpdateCategoryDto as UpdateCategoryInput, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateEmailSettingsDto as UpdateEmailSettingsInput, type UpdateEmailTemplateDto as UpdateEmailTemplateInput, type UpdateInventoryDto, type UpdateMemberRoleDto as UpdateMemberRoleInput, type UpdateMetafieldDefinitionDto as UpdateMetafieldDefinitionInput, type UpdateOAuthProviderDto as UpdateOAuthProviderInput, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateShippingRateDto as UpdateShippingRateInput, type UpdateShippingZoneDto as UpdateShippingZoneInput, type UpdateStoreMemberDto as UpdateStoreMemberInput, type UpdateTagDto as UpdateTagInput, type UpdateTaxRateDto as UpdateTaxRateInput, type UpdateVariantDto, type UpdateVariantInventoryDto, type UpsertProductMetafieldDto as UpsertProductMetafieldInput, type UserStore, type UserStorePermissions, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WaitForOrderOptions, type WaitForOrderResult, type WebhookEvent, type WebhookEventType, createWebhookHandler, enableDevGuards, formatPrice, getCartItemImage, getCartItemName, getCartTotals, getDescriptionContent, formatPrice as getPriceDisplay, getProductCustomizationFields, getProductMetafield, getProductMetafieldValue, getProductMetafieldsByType, getProductPrice, getProductPriceInfo, getProductSwatches, getStockStatus, getVariantOptions, getVariantPrice, isCouponApplicableToProduct, isHtmlDescription, isWebhookEventType, parseWebhookEvent, verifyWebhook };
|
|
7186
|
+
export { type AddToCartDto, type AppliedDiscount, type ApplyCouponDto, type Attribute, type AttributeOption, type AttributeSource, type BrainerceApiError, BrainerceClient, type BrainerceClientOptions, BrainerceError, type Brand, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type Cart, type CartAppliedDiscount, type CartBundleOffer, type CartBundlesResponse, type CartIncludeOption, type CartIncludeOptions, type CartItem, type CartNudge, type CartRecommendationsResponse, type CartStatus, type CartUpgradeSuggestion, type CartUpgradesResponse, type CartWithIncludes, type Category, type CategoryNode, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutBumpsResponse, type CheckoutCustomFieldDefinition, type CheckoutFieldPricing, type CheckoutFieldVisibility, type CheckoutLineItem, type CheckoutPrefillData, type CheckoutStatus, type CompleteCheckoutResponse, type CompleteDraftDto, type ConfigureOAuthProviderDto as ConfigureOAuthProviderInput, type ConflictStatus, type ConnectorPlatform, type Coupon, type CouponCreateResponse, type CouponQueryParams, type CouponStatus, type CouponType, type CouponValidationWarning, type CreateAddressDto, type CreateAttributeDto as CreateAttributeInput, type CreateAttributeOptionDto as CreateAttributeOptionInput, type CreateBrandDto as CreateBrandInput, type CreateCategoryDto as CreateCategoryInput, type CreateCheckoutDto, type CreateCouponDto, type CreateCustomApiDto, type CreateCustomerDto, type CreateEmailTemplateDto as CreateEmailTemplateInput, type CreateGuestOrderDto, type CreateMetafieldDefinitionDto as CreateMetafieldDefinitionInput, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateShippingRateDto as CreateShippingRateInput, type CreateShippingZoneDto as CreateShippingZoneInput, type CreateTagDto as CreateTagInput, type CreateTaxRateDto as CreateTaxRateInput, type CreateVariantDto, type CustomApiAuthType, type CustomApiConnectionStatus, type CustomApiCredentials, type CustomApiIntegration, type CustomApiSyncConfig, type CustomApiSyncDirection, type CustomApiTestResult, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerOAuthProvider, type CustomerProfile, type CustomerQueryParams, type DeleteProductResponse, type DiscountBanner, type DiscountRuleType, type DownloadFile, type DraftLineItem, type EditInventoryDto, type EmailDomain, type EmailEventSettings, type EmailEventType, type EmailSettings, type EmailTemplate, type EmailTemplatePreview, type EmailTemplatesResponse, type EmailVerificationResponse, type ExtendReservationResponse, type FormatPriceOptions, type FulfillOrderDto, type GuestCheckoutStartResponse, type GuestOrderResponse, type InsufficientStockError, type InventoryInfo, type InventoryReservationStrategy, type InventorySyncStatus, type InventoryTrackingMode, type InvitationStatus, type InviteMemberDto as InviteMemberInput, type InviteStoreMemberDto as InviteStoreMemberInput, type LocalCart, type LocalCartItem, type LockedVariant, type MergeCartsDto, type MetafieldConflict, type MetafieldConflictResolution, type MetafieldDefinition, type MetafieldPlatformMapping, type MetafieldType, type OAuthAuthorizeResponse, type OAuthCallbackResponse, type OAuthConnection, type OAuthConnectionsResponse, type OAuthProviderConfig, type OAuthProviderType, type OAuthProvidersResponse, type Order, type OrderAddress, type OrderBump, type OrderCustomer, type OrderDownloadLink, type OrderItem, type OrderQueryParams, type OrderStatus, type OrderStatusChange, type PaginatedResponse, type PaymentClientSdk, type PaymentConfig, type PaymentIntent, type PaymentProvider, type PaymentProviderConfig, type PaymentProvidersConfig, type PaymentStatus, type PickupLocation, type PlatformCouponCapabilities, type PreviewEmailTemplateDto as PreviewEmailTemplateInput, type Product, type ProductAttributeInput, type ProductAvailability, type ProductCustomizationField, type ProductDiscount, type ProductDiscountBadge, type ProductImage, type ProductMetafield, type ProductMetafieldValue, type ProductQueryParams, type ProductRecommendation, type ProductRecommendationsResponse, type ProductRelationType, type ProductSuggestion, type ProductVariant, type PublicMetafieldDefinition, type PublishProductResponse, type RecommendationVariant, type ReconcileInventoryResponse, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type RegisterCustomerDto, type ReservationInfo, type ResolveMetafieldConflictDto as ResolveMetafieldConflictInput, type ResolveSyncConflictDto as ResolveSyncConflictInput, SDK_VERSION, type SearchSuggestions, type SelectPickupLocationDto, type SelectShippingMethodDto, type SendInvoiceDto, type SessionCartRef, type SetBillingAddressDto, type SetCheckoutCustomFieldsDto, type SetCheckoutCustomerDto, type SetDefinitionProductsDto as SetDefinitionProductsInput, type SetShippingAddressDto, type SetShippingAddressResponse, type ShippingDestinations, type ShippingLine, type ShippingRate, type ShippingRateConfig, type ShippingRateType, type ShippingZone, type ShippingZoneQueryParams, type StockAvailabilityRequest, type StockAvailabilityResponse, type StockAvailabilityResult, type StoreInfo, type StoreInvitation, type StoreInvitationDetails, type StoreMember, type StorePermission, type StoreRole, type StoreTeamResponse, type SyncConflict, type SyncConflictResolution, type SyncJob, type Tag, type TaxBreakdown, type TaxBreakdownItem, type TaxRate, type TaxonomyQueryParams, type TeamInvitation, type TeamInvitationsResponse, type TeamMember, type TeamMembersResponse, type TeamRole, type UpdateAddressDto, type UpdateAttributeDto as UpdateAttributeInput, type UpdateAttributeOptionDto as UpdateAttributeOptionInput, type UpdateBrandDto as UpdateBrandInput, type UpdateCartItemDto, type UpdateCategoryDto as UpdateCategoryInput, type UpdateCouponDto, type UpdateCustomApiDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateEmailSettingsDto as UpdateEmailSettingsInput, type UpdateEmailTemplateDto as UpdateEmailTemplateInput, type UpdateInventoryDto, type UpdateMemberRoleDto as UpdateMemberRoleInput, type UpdateMetafieldDefinitionDto as UpdateMetafieldDefinitionInput, type UpdateOAuthProviderDto as UpdateOAuthProviderInput, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateShippingRateDto as UpdateShippingRateInput, type UpdateShippingZoneDto as UpdateShippingZoneInput, type UpdateStoreMemberDto as UpdateStoreMemberInput, type UpdateTagDto as UpdateTagInput, type UpdateTaxRateDto as UpdateTaxRateInput, type UpdateVariantDto, type UpdateVariantInventoryDto, type UpsertProductMetafieldDto as UpsertProductMetafieldInput, type UserStore, type UserStorePermissions, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WaitForOrderOptions, type WaitForOrderResult, type WebhookEvent, type WebhookEventType, createWebhookHandler, enableDevGuards, formatPrice, getCartItemImage, getCartItemName, getCartTotals, getDescriptionContent, formatPrice as getPriceDisplay, getProductCustomizationFields, getProductMetafield, getProductMetafieldValue, getProductMetafieldsByType, getProductPrice, getProductPriceInfo, getProductSwatches, getStockStatus, getVariantOptions, getVariantPrice, isCouponApplicableToProduct, isHtmlDescription, isWebhookEventType, parseWebhookEvent, verifyWebhook };
|