brainerce 2.2.0 → 2.3.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/LICENSE +21 -0
- package/README.md +8090 -7920
- package/dist/index.d.mts +210 -43
- package/dist/index.d.ts +210 -43
- package/dist/index.js +236 -97
- package/dist/index.mjs +236 -97
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -579,8 +579,25 @@ interface LoyaltyNextTierSummary extends LoyaltyTierSummary {
|
|
|
579
579
|
interface LoyaltyStatus {
|
|
580
580
|
/** Whether the customer has a membership in the program. */
|
|
581
581
|
enrolled: boolean;
|
|
582
|
-
/** Redeemable points balance (pending earns excluded). */
|
|
582
|
+
/** Redeemable points balance (pending earns excluded — see `pendingPoints`). */
|
|
583
583
|
pointsBalance: number;
|
|
584
|
+
/**
|
|
585
|
+
* Points already earned but still inside the program's return window, so not
|
|
586
|
+
* yet spendable and NOT counted in `pointsBalance`.
|
|
587
|
+
*
|
|
588
|
+
* ⛔ Render this whenever it is above zero. A shopper who just ordered has
|
|
589
|
+
* their points here, not in the balance, and a panel that shows only
|
|
590
|
+
* `pointsBalance` tells them "0" the day they bought something — which reads
|
|
591
|
+
* as a broken programme rather than a waiting period.
|
|
592
|
+
*/
|
|
593
|
+
pendingPoints: number;
|
|
594
|
+
/**
|
|
595
|
+
* When `pendingPoints` becomes spendable — the nightly confirm run after the
|
|
596
|
+
* oldest pending earn's window closes. ISO 8601, or null when nothing is
|
|
597
|
+
* pending. Later pending earns confirm on their own later dates; this is the
|
|
598
|
+
* next date on which the balance goes up.
|
|
599
|
+
*/
|
|
600
|
+
pendingPointsConfirmAt: string | null;
|
|
584
601
|
/** Total points ever earned (confirmed). */
|
|
585
602
|
lifetimeEarned: number;
|
|
586
603
|
/** Program display config, or null when the store has no loyalty program. */
|
|
@@ -589,6 +606,12 @@ interface LoyaltyStatus {
|
|
|
589
606
|
pointsName: string;
|
|
590
607
|
/** Points needed to redeem one unit of store currency. */
|
|
591
608
|
currencyRatio: number;
|
|
609
|
+
/**
|
|
610
|
+
* Days a new earn stays pending before it can be spent — the merchant's
|
|
611
|
+
* return window. Use it to explain the wait ("points arrive 14 days after
|
|
612
|
+
* your order"); use `pendingPointsConfirmAt` for the actual date.
|
|
613
|
+
*/
|
|
614
|
+
pendingDays: number;
|
|
592
615
|
status: 'DRAFT' | 'ACTIVE' | 'PAUSED';
|
|
593
616
|
} | null;
|
|
594
617
|
/** The customer's current tier, or null if untiered / no tiers configured. */
|
|
@@ -842,7 +865,13 @@ interface Product {
|
|
|
842
865
|
displayCurrency?: string;
|
|
843
866
|
/** Product status (active, draft). Always returned by backend. */
|
|
844
867
|
status: ProductStatus;
|
|
845
|
-
|
|
868
|
+
/**
|
|
869
|
+
* Catalog structure. `KIT` is a sellable kit ("maaraz") whose price and
|
|
870
|
+
* availability derive from its component products — it carries no inventory
|
|
871
|
+
* row of its own, and outside FIXED pricing its `basePrice` is a placeholder.
|
|
872
|
+
* Treat it as not-directly-purchasable unless you resolve its components.
|
|
873
|
+
*/
|
|
874
|
+
type: 'SIMPLE' | 'VARIABLE' | 'KIT';
|
|
846
875
|
/** Whether product is downloadable/digital. */
|
|
847
876
|
isDownloadable?: boolean;
|
|
848
877
|
/** Download files available for this product (when isDownloadable is true) */
|
|
@@ -1651,7 +1680,7 @@ interface ProductQueryParams {
|
|
|
1651
1680
|
* `salePrice` stay in the store currency. Display-only — checkout still
|
|
1652
1681
|
* charges in the store currency. */
|
|
1653
1682
|
regionId?: string;
|
|
1654
|
-
type?: 'SIMPLE' | 'VARIABLE';
|
|
1683
|
+
type?: 'SIMPLE' | 'VARIABLE' | 'KIT';
|
|
1655
1684
|
isDownloadable?: boolean;
|
|
1656
1685
|
}
|
|
1657
1686
|
/**
|
|
@@ -1675,7 +1704,7 @@ interface ProductSuggestion {
|
|
|
1675
1704
|
basePrice: string;
|
|
1676
1705
|
/** Sale price as string. Use parseFloat() for calculations. */
|
|
1677
1706
|
salePrice?: string | null;
|
|
1678
|
-
type: 'SIMPLE' | 'VARIABLE';
|
|
1707
|
+
type: 'SIMPLE' | 'VARIABLE' | 'KIT';
|
|
1679
1708
|
}
|
|
1680
1709
|
/**
|
|
1681
1710
|
* Category node in the tree returned by `getCategories()`.
|
|
@@ -1771,7 +1800,12 @@ interface CreateProductDto {
|
|
|
1771
1800
|
salePrice?: number;
|
|
1772
1801
|
costPrice?: number;
|
|
1773
1802
|
status?: ProductStatus;
|
|
1774
|
-
|
|
1803
|
+
/**
|
|
1804
|
+
* `KIT` creates an EMPTY kit. It is not purchasable until components are
|
|
1805
|
+
* added — this endpoint cannot carry them, so a kit created here still needs
|
|
1806
|
+
* its contents set before it can be sold.
|
|
1807
|
+
*/
|
|
1808
|
+
type?: 'SIMPLE' | 'VARIABLE' | 'KIT';
|
|
1775
1809
|
isDownloadable?: boolean;
|
|
1776
1810
|
/** Existing category IDs to assign. Unknown/cross-store IDs are rejected with 400. To assign by name (auto-creating if missing), use `categoryNames`. */
|
|
1777
1811
|
categories?: string[];
|
|
@@ -3722,7 +3756,12 @@ interface GiftCardAdmin {
|
|
|
3722
3756
|
customerId: string | null;
|
|
3723
3757
|
recipientEmail: string | null;
|
|
3724
3758
|
expiresAt: string | null;
|
|
3725
|
-
/**
|
|
3759
|
+
/**
|
|
3760
|
+
* Always `null` today. Nothing stamps it: there is no expiry job anywhere in
|
|
3761
|
+
* the platform, and no `EXPIRE` ledger row is ever written. Expiry is enforced
|
|
3762
|
+
* at read time instead — branch on `expired`, never on this. The balance is
|
|
3763
|
+
* deliberately NOT zeroed when a card lapses.
|
|
3764
|
+
*/
|
|
3726
3765
|
expiredAt: string | null;
|
|
3727
3766
|
/** Derived at read time, so it is true the moment validity lapses. */
|
|
3728
3767
|
expired: boolean;
|
|
@@ -3731,6 +3770,12 @@ interface GiftCardAdmin {
|
|
|
3731
3770
|
/** One movement of value. The ledger is append-only — nothing here is ever rewritten. */
|
|
3732
3771
|
interface GiftCardTransaction {
|
|
3733
3772
|
id: string;
|
|
3773
|
+
/**
|
|
3774
|
+
* `EXPIRE` is declared for a write-off that does not exist yet: nothing in the
|
|
3775
|
+
* platform writes one, for the same reason nothing stamps
|
|
3776
|
+
* {@link GiftCardAdmin.expiredAt}. Handle it — the union is the contract — but
|
|
3777
|
+
* do not build a report that expects to find any.
|
|
3778
|
+
*/
|
|
3734
3779
|
type: 'ISSUE' | 'REDEEM' | 'REFUND' | 'ADJUST' | 'EXPIRE';
|
|
3735
3780
|
/** Signed decimal string. Negative debits the card. */
|
|
3736
3781
|
amount: string;
|
|
@@ -3787,6 +3832,23 @@ interface ReissuedGiftCardAdmin extends IssuedGiftCardAdmin {
|
|
|
3787
3832
|
/** Where the replacement was emailed, or null if the merchant must hand it over. */
|
|
3788
3833
|
deliveredTo: string | null;
|
|
3789
3834
|
}
|
|
3835
|
+
/**
|
|
3836
|
+
* Per-call options for a write that the server accepts an `Idempotency-Key` on.
|
|
3837
|
+
*
|
|
3838
|
+
* The SDK sends the value as the HTTP header; it never goes in the request body,
|
|
3839
|
+
* because the backend DTOs reject unknown properties. Without a key a retried
|
|
3840
|
+
* timeout runs the write twice — on a gift-card issue that means a second card
|
|
3841
|
+
* and a second real liability nobody asked for.
|
|
3842
|
+
*
|
|
3843
|
+
* Any string up to 255 characters. Use one the caller can reproduce for the
|
|
3844
|
+
* SAME logical operation (an order id, a support-ticket id, a UUID you stored
|
|
3845
|
+
* before the first attempt) — a fresh random key on every retry defeats the
|
|
3846
|
+
* whole mechanism. Keys are remembered for 24 hours and are scoped to the API
|
|
3847
|
+
* key, so two integrations cannot collide.
|
|
3848
|
+
*/
|
|
3849
|
+
interface IdempotentRequestOptions {
|
|
3850
|
+
idempotencyKey?: string;
|
|
3851
|
+
}
|
|
3790
3852
|
interface IssueGiftCardAdminDto {
|
|
3791
3853
|
/** Decimal string, e.g. "200.00". Must be greater than zero. */
|
|
3792
3854
|
amount: string;
|
|
@@ -6842,7 +6904,7 @@ interface ProductRecommendation {
|
|
|
6842
6904
|
basePrice: string;
|
|
6843
6905
|
salePrice: string | null;
|
|
6844
6906
|
images: ProductImage[];
|
|
6845
|
-
type: 'SIMPLE' | 'VARIABLE';
|
|
6907
|
+
type: 'SIMPLE' | 'VARIABLE' | 'KIT';
|
|
6846
6908
|
inventory?: InventoryInfo | null;
|
|
6847
6909
|
relationType: ProductRelationType;
|
|
6848
6910
|
/** Pinned variant of the target (VARIABLE only); null = customer chooses. */
|
|
@@ -7942,6 +8004,13 @@ declare class BrainerceClient {
|
|
|
7942
8004
|
* Clear the customer token (logout)
|
|
7943
8005
|
*/
|
|
7944
8006
|
clearCustomerToken(): void;
|
|
8007
|
+
/**
|
|
8008
|
+
* Turn an `idempotencyKey` option into the header the backend reads.
|
|
8009
|
+
*
|
|
8010
|
+
* Returns `undefined` when there is no key, so the header is absent rather
|
|
8011
|
+
* than empty — the interceptor rejects a present-but-blank key with a 400.
|
|
8012
|
+
*/
|
|
8013
|
+
private idempotencyHeaders;
|
|
7945
8014
|
/**
|
|
7946
8015
|
* Make a request to the Admin API (requires apiKey)
|
|
7947
8016
|
*/
|
|
@@ -8527,13 +8596,18 @@ declare class BrainerceClient {
|
|
|
8527
8596
|
*/
|
|
8528
8597
|
convertToSimple(productId: string): Promise<Product>;
|
|
8529
8598
|
/**
|
|
8530
|
-
* Publish a product to specific platforms
|
|
8599
|
+
* Publish a product to specific platforms.
|
|
8531
8600
|
*
|
|
8532
|
-
*
|
|
8533
|
-
*
|
|
8534
|
-
*
|
|
8535
|
-
*
|
|
8536
|
-
*
|
|
8601
|
+
* **Not callable.** The API-key `/v1` surface has no `products/:id/publish`
|
|
8602
|
+
* route. Platform publishing for products exists only on the dashboard
|
|
8603
|
+
* surface (`POST /api/products/:id/publish?storeId=`,
|
|
8604
|
+
* `products.controller.ts:556`), which resolves the acting user from a
|
|
8605
|
+
* dashboard session an API key does not carry. The generic trigger
|
|
8606
|
+
* `POST /v1/sync` answers `501 Not Implemented` and points at per-resource
|
|
8607
|
+
* publish endpoints — and products have none.
|
|
8608
|
+
*
|
|
8609
|
+
* {@link publishProductToSalesChannel} is a DIFFERENT operation: it controls
|
|
8610
|
+
* visibility on a vibe-coded storefront, not a push to an external platform.
|
|
8537
8611
|
*/
|
|
8538
8612
|
publishProduct(productId: string, platforms: string[]): Promise<PublishProductResponse>;
|
|
8539
8613
|
/**
|
|
@@ -10058,6 +10132,9 @@ declare class BrainerceClient {
|
|
|
10058
10132
|
* flags reflect the live state. Call this on cart load if you want to
|
|
10059
10133
|
* surface drift to the customer before they reach checkout.
|
|
10060
10134
|
*
|
|
10135
|
+
* **Storefront and vibe-coded modes only.** There is no admin (`apiKey`)
|
|
10136
|
+
* route for this, so an admin-mode client throws instead of 404ing.
|
|
10137
|
+
*
|
|
10061
10138
|
* @example
|
|
10062
10139
|
* ```typescript
|
|
10063
10140
|
* const cart = await client.recalculateCart('cart_123');
|
|
@@ -10073,6 +10150,9 @@ declare class BrainerceClient {
|
|
|
10073
10150
|
* subsequent `createCheckout` call will then succeed (it would otherwise
|
|
10074
10151
|
* throw `PRICE_DRIFT`).
|
|
10075
10152
|
*
|
|
10153
|
+
* **Storefront and vibe-coded modes only.** There is no admin (`apiKey`)
|
|
10154
|
+
* route for this, so an admin-mode client throws instead of 404ing.
|
|
10155
|
+
*
|
|
10076
10156
|
* @example
|
|
10077
10157
|
* ```typescript
|
|
10078
10158
|
* try {
|
|
@@ -10752,21 +10832,31 @@ declare class BrainerceClient {
|
|
|
10752
10832
|
* screen or database query can recover it.
|
|
10753
10833
|
*
|
|
10754
10834
|
* A `note` is required. Refused when gift cards are switched off for the
|
|
10755
|
-
* store.
|
|
10835
|
+
* store.
|
|
10836
|
+
*
|
|
10837
|
+
* ⚠️ **Pass an `idempotencyKey`.** It is the ONLY recovery that exists here:
|
|
10838
|
+
* re-sending the identical request with the same key inside 24 hours replays
|
|
10839
|
+
* the cached response, code included. Without one, a retried timeout mints a
|
|
10840
|
+
* SECOND card and a second real liability. The key is sent as the
|
|
10841
|
+
* `Idempotency-Key` header; reuse the same value across retries of the same
|
|
10842
|
+
* logical issue, never a fresh random one.
|
|
10756
10843
|
*
|
|
10757
10844
|
* Requires `gift_cards:issue`.
|
|
10758
10845
|
*
|
|
10759
10846
|
* @example
|
|
10760
10847
|
* ```typescript
|
|
10761
|
-
* const card = await client.issueGiftCard(
|
|
10762
|
-
*
|
|
10763
|
-
*
|
|
10764
|
-
*
|
|
10765
|
-
*
|
|
10848
|
+
* const card = await client.issueGiftCard(
|
|
10849
|
+
* {
|
|
10850
|
+
* amount: '200.00',
|
|
10851
|
+
* note: 'Compensation for order #1042',
|
|
10852
|
+
* recipientEmail: 'dana@example.com',
|
|
10853
|
+
* },
|
|
10854
|
+
* { idempotencyKey: 'compensation-order-1042' }
|
|
10855
|
+
* );
|
|
10766
10856
|
* await sendToCustomer(card.plaintextCode); // your only chance
|
|
10767
10857
|
* ```
|
|
10768
10858
|
*/
|
|
10769
|
-
issueGiftCard(data: IssueGiftCardAdminDto): Promise<IssuedGiftCardAdmin>;
|
|
10859
|
+
issueGiftCard(data: IssueGiftCardAdminDto, options?: IdempotentRequestOptions): Promise<IssuedGiftCardAdmin>;
|
|
10770
10860
|
/**
|
|
10771
10861
|
* Re-issue a gift card onto a new code.
|
|
10772
10862
|
*
|
|
@@ -10778,11 +10868,14 @@ declare class BrainerceClient {
|
|
|
10778
10868
|
* while a checkout holds value on the card. The original expiry carries
|
|
10779
10869
|
* forward, so this cannot be used to restart an expiry clock.
|
|
10780
10870
|
*
|
|
10781
|
-
* The new code is returned exactly once, under the same rules as issuance
|
|
10871
|
+
* The new code is returned exactly once, under the same rules as issuance —
|
|
10872
|
+
* so pass an `idempotencyKey` here for the same reason, and with the same
|
|
10873
|
+
* force: a retried timeout without one revokes the replacement it just made
|
|
10874
|
+
* and mints another.
|
|
10782
10875
|
*
|
|
10783
10876
|
* Requires `gift_cards:issue`.
|
|
10784
10877
|
*/
|
|
10785
|
-
reissueGiftCard(giftCardId: string, note: string): Promise<ReissuedGiftCardAdmin>;
|
|
10878
|
+
reissueGiftCard(giftCardId: string, note: string, options?: IdempotentRequestOptions): Promise<ReissuedGiftCardAdmin>;
|
|
10786
10879
|
/**
|
|
10787
10880
|
* Adjust a gift card balance.
|
|
10788
10881
|
*
|
|
@@ -10793,9 +10886,12 @@ declare class BrainerceClient {
|
|
|
10793
10886
|
* A debit cannot take the balance below what live checkout holds have already
|
|
10794
10887
|
* reserved; that refusal names the held amount so you can act on it.
|
|
10795
10888
|
*
|
|
10889
|
+
* Pass an `idempotencyKey`: an adjustment is a relative move, so a retried
|
|
10890
|
+
* timeout without one applies the delta twice.
|
|
10891
|
+
*
|
|
10796
10892
|
* Requires `gift_cards:adjust`.
|
|
10797
10893
|
*/
|
|
10798
|
-
adjustGiftCardBalance(giftCardId: string, delta: string, note: string): Promise<{
|
|
10894
|
+
adjustGiftCardBalance(giftCardId: string, delta: string, note: string, options?: IdempotentRequestOptions): Promise<{
|
|
10799
10895
|
balanceAfter: string;
|
|
10800
10896
|
}>;
|
|
10801
10897
|
/**
|
|
@@ -10808,7 +10904,7 @@ declare class BrainerceClient {
|
|
|
10808
10904
|
*
|
|
10809
10905
|
* Requires `gift_cards:write`.
|
|
10810
10906
|
*/
|
|
10811
|
-
setGiftCardStatus(giftCardId: string, status: 'ACTIVE' | 'DISABLED' | 'REVOKED'): Promise<{
|
|
10907
|
+
setGiftCardStatus(giftCardId: string, status: 'ACTIVE' | 'DISABLED' | 'REVOKED', options?: IdempotentRequestOptions): Promise<{
|
|
10812
10908
|
success: true;
|
|
10813
10909
|
}>;
|
|
10814
10910
|
/**
|
|
@@ -10824,7 +10920,7 @@ declare class BrainerceClient {
|
|
|
10824
10920
|
*
|
|
10825
10921
|
* Requires `gift_cards:write`.
|
|
10826
10922
|
*/
|
|
10827
|
-
bulkSetGiftCardStatus(giftCardIds: string[], status: 'ACTIVE' | 'DISABLED'): Promise<{
|
|
10923
|
+
bulkSetGiftCardStatus(giftCardIds: string[], status: 'ACTIVE' | 'DISABLED', options?: IdempotentRequestOptions): Promise<{
|
|
10828
10924
|
updated: number;
|
|
10829
10925
|
}>;
|
|
10830
10926
|
/**
|
|
@@ -11035,6 +11131,9 @@ declare class BrainerceClient {
|
|
|
11035
11131
|
/**
|
|
11036
11132
|
* Set delivery type on checkout (shipping or pickup).
|
|
11037
11133
|
*
|
|
11134
|
+
* **Storefront and vibe-coded modes only.** There is no admin (`apiKey`)
|
|
11135
|
+
* route for this, so an admin-mode client throws instead of 404ing.
|
|
11136
|
+
*
|
|
11038
11137
|
* @example
|
|
11039
11138
|
* ```typescript
|
|
11040
11139
|
* const checkout = await client.setDeliveryType('checkout_123', 'pickup');
|
|
@@ -11046,6 +11145,9 @@ declare class BrainerceClient {
|
|
|
11046
11145
|
* This sets the delivery type to "pickup", records customer info, and prepares for payment.
|
|
11047
11146
|
* Equivalent to setShippingAddress + selectShippingMethod for delivery orders.
|
|
11048
11147
|
*
|
|
11148
|
+
* **Storefront and vibe-coded modes only.** There is no admin (`apiKey`)
|
|
11149
|
+
* route for this, so an admin-mode client throws instead of 404ing.
|
|
11150
|
+
*
|
|
11049
11151
|
* @example
|
|
11050
11152
|
* ```typescript
|
|
11051
11153
|
* const checkout = await client.selectPickupLocation('checkout_123', {
|
|
@@ -11737,13 +11839,17 @@ declare class BrainerceClient {
|
|
|
11737
11839
|
* lifetime earned, the program's display config, earned milestone `badges`,
|
|
11738
11840
|
* and the `paidMembership` subscription state (null for free members).
|
|
11739
11841
|
* Requires customerToken. Only available in storefront mode. `program` is
|
|
11740
|
-
* null when the store has no loyalty program.
|
|
11842
|
+
* null when the store has no loyalty program. `pointsBalance` excludes points
|
|
11843
|
+
* still inside the return window - those are in `pendingPoints`, and a panel
|
|
11844
|
+
* that ignores them shows a shopper 0 the day they order.
|
|
11741
11845
|
*
|
|
11742
11846
|
* @example
|
|
11743
11847
|
* ```typescript
|
|
11744
11848
|
* client.setCustomerToken(auth.token);
|
|
11745
11849
|
* const status = await client.getLoyaltyStatus();
|
|
11746
11850
|
* if (status.enrolled) console.log(`${status.pointsBalance} ${status.program?.pointsName}`);
|
|
11851
|
+
* // Points from an order just placed are in pendingPoints, NOT pointsBalance.
|
|
11852
|
+
* if (status.pendingPoints > 0) console.log(`+${status.pendingPoints} on ${status.pendingPointsConfirmAt}`);
|
|
11747
11853
|
* status.badges?.forEach((b) => console.log(`🏅 ${b.name}`));
|
|
11748
11854
|
* if (status.paidMembership?.status === 'ACTIVE') showPremiumPerks(status.paidMembership.plan);
|
|
11749
11855
|
* ```
|
|
@@ -12131,8 +12237,20 @@ declare class BrainerceClient {
|
|
|
12131
12237
|
*/
|
|
12132
12238
|
createTag(data: CreateTagDto): Promise<Tag>;
|
|
12133
12239
|
/**
|
|
12134
|
-
* Update an existing tag
|
|
12135
|
-
*
|
|
12240
|
+
* Update an existing tag.
|
|
12241
|
+
*
|
|
12242
|
+
* **Not callable.** The API-key `/v1` surface serves `GET`, `POST` and
|
|
12243
|
+
* `DELETE` on tags (`external-api.controller.ts:3276`, `:3310`, `:3331`) but
|
|
12244
|
+
* no update verb — `PATCH /api/v1/tags/:id` 404'd silently. Tag editing lives
|
|
12245
|
+
* only on the dashboard surface (`PATCH /api/stores/:storeId/tags/:id`,
|
|
12246
|
+
* `tags.controller.ts:127`), which needs a `storeId` in the path that this
|
|
12247
|
+
* signature does not carry, and resolves the acting user from a dashboard
|
|
12248
|
+
* session an API key does not have.
|
|
12249
|
+
*
|
|
12250
|
+
* Edit the tag in the Brainerce dashboard. {@link deleteTag} +
|
|
12251
|
+
* {@link createTag} is NOT an equivalent workaround: it drops the tag's
|
|
12252
|
+
* product assignments, and `CreateTagDto` has no `translations` field, so any
|
|
12253
|
+
* per-locale names are lost too.
|
|
12136
12254
|
*/
|
|
12137
12255
|
updateTag(tagId: string, data: UpdateTagDto): Promise<Tag>;
|
|
12138
12256
|
/**
|
|
@@ -12194,13 +12312,26 @@ declare class BrainerceClient {
|
|
|
12194
12312
|
*/
|
|
12195
12313
|
createAttributeOption(attributeId: string, data: CreateAttributeOptionDto): Promise<AttributeOption>;
|
|
12196
12314
|
/**
|
|
12197
|
-
* Update an attribute option
|
|
12198
|
-
*
|
|
12315
|
+
* Update an attribute option.
|
|
12316
|
+
*
|
|
12317
|
+
* **Not callable.** The API-key `/v1` surface serves attribute options for
|
|
12318
|
+
* list and create only (`external-api.controller.ts:3517`, `:3543`); there is
|
|
12319
|
+
* no per-option route, so this 404'd silently. Editing an option lives on the
|
|
12320
|
+
* dashboard surface (`PUT /api/stores/:storeId/attributes/:id/options/:optionId`,
|
|
12321
|
+
* `attributes.controller.ts:132` — note it is `PUT` there, not `PATCH`), which
|
|
12322
|
+
* needs a path `storeId` this signature does not carry.
|
|
12323
|
+
*
|
|
12324
|
+
* Edit the option in the Brainerce dashboard.
|
|
12199
12325
|
*/
|
|
12200
12326
|
updateAttributeOption(attributeId: string, optionId: string, data: UpdateAttributeOptionDto): Promise<AttributeOption>;
|
|
12201
12327
|
/**
|
|
12202
|
-
* Delete an attribute option
|
|
12203
|
-
*
|
|
12328
|
+
* Delete an attribute option.
|
|
12329
|
+
*
|
|
12330
|
+
* **Not callable.** Same gap as {@link updateAttributeOption}: the `/v1`
|
|
12331
|
+
* surface has no per-option route. Deleting an option lives on the dashboard
|
|
12332
|
+
* surface (`DELETE /api/stores/:storeId/attributes/:id/options/:optionId`,
|
|
12333
|
+
* `attributes.controller.ts:145`), which needs a path `storeId` this signature
|
|
12334
|
+
* does not carry.
|
|
12204
12335
|
*/
|
|
12205
12336
|
deleteAttributeOption(attributeId: string, optionId: string): Promise<void>;
|
|
12206
12337
|
/**
|
|
@@ -12680,16 +12811,37 @@ declare class BrainerceClient {
|
|
|
12680
12811
|
*/
|
|
12681
12812
|
setMetafieldPlatforms(definitionId: string, data: SetMetafieldPlatformsDto): Promise<MetafieldDefinition>;
|
|
12682
12813
|
/**
|
|
12683
|
-
* Publish a metafield definition to a
|
|
12684
|
-
*
|
|
12685
|
-
*
|
|
12686
|
-
*
|
|
12687
|
-
*
|
|
12814
|
+
* Publish a metafield definition to a sales channel (admin mode).
|
|
12815
|
+
*
|
|
12816
|
+
* **Not callable.** This asked for `publish-vibe-coded`, which is a
|
|
12817
|
+
* deprecated backend alias, not the canonical route. The canonical spelling
|
|
12818
|
+
* is `publish-sales-channel`, and the `/v1` surface serves it for products
|
|
12819
|
+
* (`external-api.controller.ts:862`), coupons (`:947`), customers (`:1548`),
|
|
12820
|
+
* categories (`:3039`), brands (`:3211`) and tags (`:3349`) — but NOT for
|
|
12821
|
+
* metafield definitions. Both spellings 404 there.
|
|
12822
|
+
*
|
|
12823
|
+
* The operation exists only on the dashboard surface
|
|
12824
|
+
* (`POST /api/stores/:storeId/metafield-definitions/:id/publish-sales-channel`,
|
|
12825
|
+
* `metafields.controller.ts:190`), which needs a path `storeId` this signature
|
|
12826
|
+
* does not carry.
|
|
12827
|
+
*
|
|
12828
|
+
* Publish the definition to a sales channel from the Brainerce dashboard. A
|
|
12829
|
+
* definition with no publishes stays visible to every sales channel of the
|
|
12830
|
+
* store, so leaving it unpublished is the permissive default, not a lockout.
|
|
12688
12831
|
*/
|
|
12689
12832
|
publishMetafieldDefinitionToVibeCodedSite(definitionId: string, vibeCodedConnectionId: string): Promise<{
|
|
12690
12833
|
success: boolean;
|
|
12691
12834
|
}>;
|
|
12692
|
-
/**
|
|
12835
|
+
/**
|
|
12836
|
+
* Unpublish a metafield definition from a sales channel (admin mode).
|
|
12837
|
+
*
|
|
12838
|
+
* **Not callable.** Same gap as
|
|
12839
|
+
* {@link publishMetafieldDefinitionToVibeCodedSite} — the `/v1` surface
|
|
12840
|
+
* carries no per-sales-channel routes for metafield definitions under either
|
|
12841
|
+
* the canonical `unpublish-sales-channel` spelling or the deprecated
|
|
12842
|
+
* `unpublish-vibe-coded` alias. The dashboard route is
|
|
12843
|
+
* `metafields.controller.ts:217`.
|
|
12844
|
+
*/
|
|
12693
12845
|
unpublishMetafieldDefinitionFromVibeCodedSite(definitionId: string, vibeCodedConnectionId: string): Promise<{
|
|
12694
12846
|
success: boolean;
|
|
12695
12847
|
}>;
|
|
@@ -12812,13 +12964,28 @@ declare class BrainerceClient {
|
|
|
12812
12964
|
deleteProductMetafield(productId: string, definitionId: string): Promise<void>;
|
|
12813
12965
|
/**
|
|
12814
12966
|
* Get customization fields assigned to a product.
|
|
12815
|
-
*
|
|
12967
|
+
*
|
|
12968
|
+
* **Not callable.** The API-key `/v1` surface has no
|
|
12969
|
+
* `metafield-definitions/products/:productId/customization-fields` route, so
|
|
12970
|
+
* this 404'd silently. It exists only on the dashboard surface
|
|
12971
|
+
* (`GET /api/stores/:storeId/metafield-definitions/products/:productId/customization-fields`,
|
|
12972
|
+
* `metafields.controller.ts:277`), which needs a path `storeId` this signature
|
|
12973
|
+
* does not carry.
|
|
12974
|
+
*
|
|
12975
|
+
* {@link getProductMetafields} is the closest working call — it returns the
|
|
12976
|
+
* metafield VALUES stored on a product over
|
|
12977
|
+
* `GET /api/v1/products/:productId/metafields`, not the customer-input field
|
|
12978
|
+
* definitions attached to it.
|
|
12816
12979
|
*/
|
|
12817
12980
|
getProductCustomizationFields(productId: string): Promise<ProductCustomizationField[]>;
|
|
12818
12981
|
/**
|
|
12819
12982
|
* Set customization fields for a product (replaces all existing assignments).
|
|
12820
|
-
*
|
|
12821
|
-
*
|
|
12983
|
+
*
|
|
12984
|
+
* **Not callable.** Same gap as {@link getProductCustomizationFields}: the
|
|
12985
|
+
* `/v1` surface carries no customization-field routes. The dashboard route is
|
|
12986
|
+
* `PATCH /api/stores/:storeId/metafield-definitions/products/:productId/customization-fields`
|
|
12987
|
+
* (`metafields.controller.ts:298`), which needs a path `storeId` this
|
|
12988
|
+
* signature does not carry.
|
|
12822
12989
|
*/
|
|
12823
12990
|
setProductCustomizationFields(productId: string, definitionIds: string[]): Promise<ProductCustomizationField[]>;
|
|
12824
12991
|
/**
|
|
@@ -13355,7 +13522,7 @@ declare class BrainerceError extends Error {
|
|
|
13355
13522
|
constructor(message: string, statusCode: number, details?: unknown);
|
|
13356
13523
|
}
|
|
13357
13524
|
|
|
13358
|
-
declare const SDK_VERSION = "2.
|
|
13525
|
+
declare const SDK_VERSION = "2.3.0";
|
|
13359
13526
|
|
|
13360
13527
|
/**
|
|
13361
13528
|
* Verify a webhook signature from Brainerce
|
|
@@ -13856,4 +14023,4 @@ interface CategorySitemapOptions {
|
|
|
13856
14023
|
*/
|
|
13857
14024
|
declare function getCategorySitemapEntries(client: BrainerceClient, opts: CategorySitemapOptions): Promise<SitemapEntry[]>;
|
|
13858
14025
|
|
|
13859
|
-
export { type AddToCartDto, type AddressDetailsResult, type AddressSuggestion, type AiTranslateBulkInput, type AiTranslateBulkResult, type AiTranslateSingleInput, type AnnouncementContent, type AnnouncementSeverity, type AppliedDiscount, type ApplyCouponDto, type AssignTaxClassDto, type AttachModifierGroupInput, type Attribute, type AttributeDisplayType, type AttributeOption, type AttributeSource, type AutoRegionResponse, type AvailabilityClock, type BlogPost, type BlogPostListParams, type BlogPostListResponse, type BlogSitemapOptions, type BrainerceApiError, BrainerceClient, type BrainerceClientOptions, BrainerceError, type Brand, type BulkCreateProductsDto, type BulkCreateProductsError, type BulkCreateProductsJob, type BulkCreateProductsStatus, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type BusinessHoursWindow, type Cart, type CartAppliedDiscount, type CartBundleOffer, type CartBundleOfferOfferedProduct, type CartBundlesResponse, type CartIncludeOption, type CartIncludeOptions, type CartItem, type CartItemModifierLine, type CartItemUnavailableReason, type CartNudge, type CartRecommendationsResponse, type CartStatus, type CartUpgradeSuggestion, type CartUpgradesResponse, type CartWithIncludes, type Category, type CategoryDetail, type CategoryNode, type CategorySitemapOptions, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutBumpsResponse, type CheckoutCustomFieldDefinition, type CheckoutFieldPricing, type CheckoutFieldVisibility, type CheckoutLineItem, type CheckoutPrefillData, type CheckoutStatus, type CheckoutTender, type CompleteCheckoutResponse, type CompleteDraftDto, type ConfigureOAuthProviderDto as ConfigureOAuthProviderInput, type ConflictStatus, type ConnectorPlatform, type ContactFormFieldType, type ContactFormFieldValidation, type ContactFormPublic, type ContactFormPublicField, type ContactFormSummary, type Content, type ContentDataMap, type ContentStatus, type ContentSummary, type ContentType, 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 CreateContentInput, type CreateCouponDto, type CreateCustomerDto, type CreateEmailTemplateDto as CreateEmailTemplateInput, type CreateGuestOrderDto, type CreateInquiryInput, type CreateInquiryResponse, type CreateMetafieldDefinitionDto as CreateMetafieldDefinitionInput, type CreateModifierGroupInput, type CreateModifierInput, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateRegionDto, type CreateReturnLabelDto as CreateReturnLabelInput, type CreateReturnLabelResponse, type CreateShippingRateDto as CreateShippingRateInput, type CreateShippingZoneDto as CreateShippingZoneInput, type CreateStockAlertInput, type CreateTagDto as CreateTagInput, type CreateTaxClassDto, type CreateTaxRateDto as CreateTaxRateInput, type CreateVariantDto, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerOAuthProvider, type CustomerProfile, type CustomerQueryParams, type CustomizationFieldOption, type DateAvailabilityConstraints, type DateAvailabilitySurface, type DateFieldParseResult, type DeleteProductResponse, type DeliveryType, 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 FaqContent, type FaqItem, type FooterColumn, type FooterContent, type FooterLink, type FooterSocialLink, type FormatPriceOptions, type FormatProductPriceOptions, type FreeAllocationPolicy, type FulfillOrderDto, type GiftCardAdmin, type GiftCardAdminDetail, type GiftCardBalance, type GiftCardLiability, type GiftCardTransaction, type GuestCheckoutStartResponse, type GuestOrderResponse, type HeaderContent, type HeaderCta, type HeaderLogo, type HeaderNavItem, type I18nSettings, type InsufficientStockError, type InventoryInfo, type InventoryReservationStrategy, type InventorySyncStatus, type InventoryTrackingMode, type InvitationStatus, type InviteMemberDto as InviteMemberInput, type InviteStoreMemberDto as InviteStoreMemberInput, type IssueGiftCardAdminDto, type IssuedGiftCardAdmin, type JsonLdOptions, type ListModifierGroupsParams, type LocalCart, type LocalCartItem, type LocaleTranslation, type LockedVariant, type LoyaltyBadge, type LoyaltyMembershipPlan, type LoyaltyNextTierSummary, type LoyaltyReward, type LoyaltyRewardRecommendation, type LoyaltyStatus, type LoyaltyTierSummary, type MergeCartsDto, type MetafieldConflict, type MetafieldConflictResolution, type MetafieldDefinition, type MetafieldFilter, type MetafieldFilterValue, type MetafieldFiltersResponse, type MetafieldType, type Modifier, type ModifierGroup, type ModifierSelection, type ModifierSelectionType, type ModifierValidationCode, type ModifierValidationError, type ModifierValidationFailedError, type MyProductReview, type NestedModifierSelection, type OAuthAuthorizeResponse, type OAuthCallbackResponse, type OAuthConnection, type OAuthConnectionsResponse, type OAuthErrorCode, 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 PageContent, type PageSeo, type PaginatedResponse, type PaidMembershipInfo, type ParsedDateFieldValue, type PaymentClientSdk, type PaymentConfig, type PaymentIntent, type PaymentProvider, type PaymentProviderConfig, type PaymentProvidersConfig, type PaymentRecordStatus, type PaymentStatus, type PaymentUrlOptions, type PickupLocation, type PlatformCouponCapabilities, type PlatformMetafieldMetadata, type PreviewEmailTemplateDto as PreviewEmailTemplateInput, type PriceDriftError, type Product, type ProductAttributeInput, type ProductAvailability, type ProductCustomizationField, type ProductDiscount, type ProductDiscountBadge, type ProductImage, type ProductMetafield, type ProductMetafieldValue, type ProductModifierGroupAttachment, type ProductQueryParams, type ProductRecommendation, type ProductRecommendationsResponse, type ProductRelationType, type ProductReview, type ProductReviewAdmin, type ProductReviewImage, type ProductReviewImageAdmin, type ProductSitemapOptions, type ProductStatus, type ProductSuggestion, type ProductUnavailableError, type ProductVariant, type PublicMetafieldDefinition, type PublicRegion, type PublicRegionDetail, type PublicRegionPaymentProvider, type PublicTaxClass, type PublishProductResponse, RTL_LOCALES, type RecommendationVariant, type ReconcileInventoryResponse, type RedeemRewardResult, type ReferralInfo, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type Region, type RegionPaymentProvider, type RegisterCustomerDto, type ReissuedGiftCardAdmin, type RelativeDateBounds, type ReservationInfo, type ResolveMetafieldConflictDto as ResolveMetafieldConflictInput, type ResolveSyncConflictDto as ResolveSyncConflictInput, type ReturnLabelParcel, type ReviewPhotoUpload, type ReviewStatus, type RichTextContent, SDK_VERSION, type SavedPaymentMethodSummary, type SearchSuggestions, type SelectPickupLocationDto, type SelectShippingMethodDto, type SendInvoiceDto, type SessionCartRef, type SetBillingAddressDto, type SetCheckoutCustomFieldsDto, type SetCheckoutCustomerDto, type SetDefinitionProductsDto as SetDefinitionProductsInput, type SetMetafieldPlatformsDto as SetMetafieldPlatformsInput, type SetShippingAddressDto, type SetShippingAddressResponse, type SetTranslationFields, type ShippingDestinations, type ShippingLine, type ShippingRate, type ShippingRateConfig, type ShippingRateType, type ShippingSummaryEntry, type ShippingZone, type ShippingZoneQueryParams, type SitemapEntry, type StockAlertResponse, type StockAvailabilityRequest, type StockAvailabilityResponse, type StockAvailabilityResult, type StoreCapabilities, type StoreInfo, type StoreInvitation, type StoreInvitationDetails, type StoreMember, type StorePermission, type StoreRole, type StoreTeamResponse, type StoreTracking, type StorefrontSavedPaymentMethod, type SubmitProductReviewInput, type SubscribeMarketingInput, type SubscribeMarketingResponse, type SupportedLocaleObject, type SyncConflict, type SyncConflictResolution, type SyncJob, type Tag, type TaxBreakdown, type TaxBreakdownItem, type TaxClass, type TaxEstimateResponse, type TaxRate, type TaxonomyQueryParams, type TeamInvitation, type TeamInvitationsResponse, type TeamMember, type TeamMembersResponse, type TeamRole, type TrackingEventItem, type TrackingEventName, type TrackingEventPayload, type TranslatableEntityType, type TranslationStatusEntry, type TranslationsMap, type UpdateAddressDto, type UpdateAttachmentInput, type UpdateAttributeDto as UpdateAttributeInput, type UpdateAttributeOptionDto as UpdateAttributeOptionInput, type UpdateBrandDto as UpdateBrandInput, type UpdateCartItemDto, type UpdateCategoryDto as UpdateCategoryInput, type UpdateContentInput, type UpdateCouponDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateEmailSettingsDto as UpdateEmailSettingsInput, type UpdateEmailTemplateDto as UpdateEmailTemplateInput, type UpdateInventoryDto, type UpdateMemberRoleDto as UpdateMemberRoleInput, type UpdateMetafieldDefinitionDto as UpdateMetafieldDefinitionInput, type UpdateModifierGroupInput, type UpdateModifierInput, type UpdateOAuthProviderDto as UpdateOAuthProviderInput, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateRegionDto, type UpdateShippingRateDto as UpdateShippingRateInput, type UpdateShippingZoneDto as UpdateShippingZoneInput, type UpdateStoreMemberDto as UpdateStoreMemberInput, type UpdateTagDto as UpdateTagInput, type UpdateTaxClassDto, type UpdateTaxRateDto as UpdateTaxRateInput, type UpdateVariantDto, type UpdateVariantInventoryDto, type UpsellSettings, type UpsertProductMetafieldDto as UpsertProductMetafieldInput, type UserStore, type UserStorePermissions, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WaitForOrderOptions, type WaitForOrderResult, type WebhookEvent, type WebhookEventType, type WriteProductReviewInput, buildArticleJsonLd, buildBreadcrumbJsonLd, buildCollectionPageJsonLd, buildOrganizationJsonLd, buildProductFaqJsonLd, buildProductJsonLd, buildWebsiteJsonLd, computeAvailableSlots, createWebhookHandler, deriveSeoDescription, enableDevGuards, formatMoney, formatPrice, formatProductPrice, formatVariantPrice, getBlogSitemapEntries, getBusinessHoursForDate, getCartItemImage, getCartItemName, getCartTotals, getCategorySitemapEntries, getDescriptionContent, getDirectionForLocale, formatPrice as getPriceDisplay, getProductCustomizationFields, getProductMetafield, getProductMetafieldValue, getProductMetafieldsByType, getProductPrice, getProductPriceInfo, getProductSitemapEntries, getProductSwatches, getStockStatus, getVariantOptions, getVariantPrice, isAllowedPaymentUrl, isCalendarDateAllowed, isCouponApplicableToProduct, isDateValueAllowed, isHtmlDescription, isWebhookEventType, jsonLdScriptProps, parseDateFieldValue, parseWebhookEvent, resolveRelativeBounds, resolveStoreLocalParts, safePaymentRedirect, stripHtml, validateDateAvailabilityConfig, verifyWebhook };
|
|
14026
|
+
export { type AddToCartDto, type AddressDetailsResult, type AddressSuggestion, type AiTranslateBulkInput, type AiTranslateBulkResult, type AiTranslateSingleInput, type AnnouncementContent, type AnnouncementSeverity, type AppliedDiscount, type ApplyCouponDto, type AssignTaxClassDto, type AttachModifierGroupInput, type Attribute, type AttributeDisplayType, type AttributeOption, type AttributeSource, type AutoRegionResponse, type AvailabilityClock, type BlogPost, type BlogPostListParams, type BlogPostListResponse, type BlogSitemapOptions, type BrainerceApiError, BrainerceClient, type BrainerceClientOptions, BrainerceError, type Brand, type BulkCreateProductsDto, type BulkCreateProductsError, type BulkCreateProductsJob, type BulkCreateProductsStatus, type BulkInventoryResponse, type BulkSaveVariantsDto, type BulkSaveVariantsResponse, type BulkVariantInput, type BusinessHoursWindow, type Cart, type CartAppliedDiscount, type CartBundleOffer, type CartBundleOfferOfferedProduct, type CartBundlesResponse, type CartIncludeOption, type CartIncludeOptions, type CartItem, type CartItemModifierLine, type CartItemUnavailableReason, type CartNudge, type CartRecommendationsResponse, type CartStatus, type CartUpgradeSuggestion, type CartUpgradesResponse, type CartWithIncludes, type Category, type CategoryDetail, type CategoryNode, type CategorySitemapOptions, type CategorySuggestion, type Checkout, type CheckoutAddress, type CheckoutBumpsResponse, type CheckoutCustomFieldDefinition, type CheckoutFieldPricing, type CheckoutFieldVisibility, type CheckoutLineItem, type CheckoutPrefillData, type CheckoutStatus, type CheckoutTender, type CompleteCheckoutResponse, type CompleteDraftDto, type ConfigureOAuthProviderDto as ConfigureOAuthProviderInput, type ConflictStatus, type ConnectorPlatform, type ContactFormFieldType, type ContactFormFieldValidation, type ContactFormPublic, type ContactFormPublicField, type ContactFormSummary, type Content, type ContentDataMap, type ContentStatus, type ContentSummary, type ContentType, 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 CreateContentInput, type CreateCouponDto, type CreateCustomerDto, type CreateEmailTemplateDto as CreateEmailTemplateInput, type CreateGuestOrderDto, type CreateInquiryInput, type CreateInquiryResponse, type CreateMetafieldDefinitionDto as CreateMetafieldDefinitionInput, type CreateModifierGroupInput, type CreateModifierInput, type CreateOrderDto, type CreateProductDto, type CreateRefundDto, type CreateRegionDto, type CreateReturnLabelDto as CreateReturnLabelInput, type CreateReturnLabelResponse, type CreateShippingRateDto as CreateShippingRateInput, type CreateShippingZoneDto as CreateShippingZoneInput, type CreateStockAlertInput, type CreateTagDto as CreateTagInput, type CreateTaxClassDto, type CreateTaxRateDto as CreateTaxRateInput, type CreateVariantDto, type Customer, type CustomerAddress, type CustomerAuthResponse, type CustomerOAuthProvider, type CustomerProfile, type CustomerQueryParams, type CustomizationFieldOption, type DateAvailabilityConstraints, type DateAvailabilitySurface, type DateFieldParseResult, type DeleteProductResponse, type DeliveryType, 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 FaqContent, type FaqItem, type FooterColumn, type FooterContent, type FooterLink, type FooterSocialLink, type FormatPriceOptions, type FormatProductPriceOptions, type FreeAllocationPolicy, type FulfillOrderDto, type GiftCardAdmin, type GiftCardAdminDetail, type GiftCardBalance, type GiftCardLiability, type GiftCardTransaction, type GuestCheckoutStartResponse, type GuestOrderResponse, type HeaderContent, type HeaderCta, type HeaderLogo, type HeaderNavItem, type I18nSettings, type IdempotentRequestOptions, type InsufficientStockError, type InventoryInfo, type InventoryReservationStrategy, type InventorySyncStatus, type InventoryTrackingMode, type InvitationStatus, type InviteMemberDto as InviteMemberInput, type InviteStoreMemberDto as InviteStoreMemberInput, type IssueGiftCardAdminDto, type IssuedGiftCardAdmin, type JsonLdOptions, type ListModifierGroupsParams, type LocalCart, type LocalCartItem, type LocaleTranslation, type LockedVariant, type LoyaltyBadge, type LoyaltyMembershipPlan, type LoyaltyNextTierSummary, type LoyaltyReward, type LoyaltyRewardRecommendation, type LoyaltyStatus, type LoyaltyTierSummary, type MergeCartsDto, type MetafieldConflict, type MetafieldConflictResolution, type MetafieldDefinition, type MetafieldFilter, type MetafieldFilterValue, type MetafieldFiltersResponse, type MetafieldType, type Modifier, type ModifierGroup, type ModifierSelection, type ModifierSelectionType, type ModifierValidationCode, type ModifierValidationError, type ModifierValidationFailedError, type MyProductReview, type NestedModifierSelection, type OAuthAuthorizeResponse, type OAuthCallbackResponse, type OAuthConnection, type OAuthConnectionsResponse, type OAuthErrorCode, 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 PageContent, type PageSeo, type PaginatedResponse, type PaidMembershipInfo, type ParsedDateFieldValue, type PaymentClientSdk, type PaymentConfig, type PaymentIntent, type PaymentProvider, type PaymentProviderConfig, type PaymentProvidersConfig, type PaymentRecordStatus, type PaymentStatus, type PaymentUrlOptions, type PickupLocation, type PlatformCouponCapabilities, type PlatformMetafieldMetadata, type PreviewEmailTemplateDto as PreviewEmailTemplateInput, type PriceDriftError, type Product, type ProductAttributeInput, type ProductAvailability, type ProductCustomizationField, type ProductDiscount, type ProductDiscountBadge, type ProductImage, type ProductMetafield, type ProductMetafieldValue, type ProductModifierGroupAttachment, type ProductQueryParams, type ProductRecommendation, type ProductRecommendationsResponse, type ProductRelationType, type ProductReview, type ProductReviewAdmin, type ProductReviewImage, type ProductReviewImageAdmin, type ProductSitemapOptions, type ProductStatus, type ProductSuggestion, type ProductUnavailableError, type ProductVariant, type PublicMetafieldDefinition, type PublicRegion, type PublicRegionDetail, type PublicRegionPaymentProvider, type PublicTaxClass, type PublishProductResponse, RTL_LOCALES, type RecommendationVariant, type ReconcileInventoryResponse, type RedeemRewardResult, type ReferralInfo, type Refund, type RefundLineItem, type RefundLineItemResponse, type RefundType, type Region, type RegionPaymentProvider, type RegisterCustomerDto, type ReissuedGiftCardAdmin, type RelativeDateBounds, type ReservationInfo, type ResolveMetafieldConflictDto as ResolveMetafieldConflictInput, type ResolveSyncConflictDto as ResolveSyncConflictInput, type ReturnLabelParcel, type ReviewPhotoUpload, type ReviewStatus, type RichTextContent, SDK_VERSION, type SavedPaymentMethodSummary, type SearchSuggestions, type SelectPickupLocationDto, type SelectShippingMethodDto, type SendInvoiceDto, type SessionCartRef, type SetBillingAddressDto, type SetCheckoutCustomFieldsDto, type SetCheckoutCustomerDto, type SetDefinitionProductsDto as SetDefinitionProductsInput, type SetMetafieldPlatformsDto as SetMetafieldPlatformsInput, type SetShippingAddressDto, type SetShippingAddressResponse, type SetTranslationFields, type ShippingDestinations, type ShippingLine, type ShippingRate, type ShippingRateConfig, type ShippingRateType, type ShippingSummaryEntry, type ShippingZone, type ShippingZoneQueryParams, type SitemapEntry, type StockAlertResponse, type StockAvailabilityRequest, type StockAvailabilityResponse, type StockAvailabilityResult, type StoreCapabilities, type StoreInfo, type StoreInvitation, type StoreInvitationDetails, type StoreMember, type StorePermission, type StoreRole, type StoreTeamResponse, type StoreTracking, type StorefrontSavedPaymentMethod, type SubmitProductReviewInput, type SubscribeMarketingInput, type SubscribeMarketingResponse, type SupportedLocaleObject, type SyncConflict, type SyncConflictResolution, type SyncJob, type Tag, type TaxBreakdown, type TaxBreakdownItem, type TaxClass, type TaxEstimateResponse, type TaxRate, type TaxonomyQueryParams, type TeamInvitation, type TeamInvitationsResponse, type TeamMember, type TeamMembersResponse, type TeamRole, type TrackingEventItem, type TrackingEventName, type TrackingEventPayload, type TranslatableEntityType, type TranslationStatusEntry, type TranslationsMap, type UpdateAddressDto, type UpdateAttachmentInput, type UpdateAttributeDto as UpdateAttributeInput, type UpdateAttributeOptionDto as UpdateAttributeOptionInput, type UpdateBrandDto as UpdateBrandInput, type UpdateCartItemDto, type UpdateCategoryDto as UpdateCategoryInput, type UpdateContentInput, type UpdateCouponDto, type UpdateCustomerDto, type UpdateDraftDto, type UpdateEmailSettingsDto as UpdateEmailSettingsInput, type UpdateEmailTemplateDto as UpdateEmailTemplateInput, type UpdateInventoryDto, type UpdateMemberRoleDto as UpdateMemberRoleInput, type UpdateMetafieldDefinitionDto as UpdateMetafieldDefinitionInput, type UpdateModifierGroupInput, type UpdateModifierInput, type UpdateOAuthProviderDto as UpdateOAuthProviderInput, type UpdateOrderDto, type UpdateOrderShippingDto, type UpdateProductDto, type UpdateRegionDto, type UpdateShippingRateDto as UpdateShippingRateInput, type UpdateShippingZoneDto as UpdateShippingZoneInput, type UpdateStoreMemberDto as UpdateStoreMemberInput, type UpdateTagDto as UpdateTagInput, type UpdateTaxClassDto, type UpdateTaxRateDto as UpdateTaxRateInput, type UpdateVariantDto, type UpdateVariantInventoryDto, type UpsellSettings, type UpsertProductMetafieldDto as UpsertProductMetafieldInput, type UserStore, type UserStorePermissions, type VariantInventoryResponse, type VariantPlatformOverlay, type VariantStatus, type WaitForOrderOptions, type WaitForOrderResult, type WebhookEvent, type WebhookEventType, type WriteProductReviewInput, buildArticleJsonLd, buildBreadcrumbJsonLd, buildCollectionPageJsonLd, buildOrganizationJsonLd, buildProductFaqJsonLd, buildProductJsonLd, buildWebsiteJsonLd, computeAvailableSlots, createWebhookHandler, deriveSeoDescription, enableDevGuards, formatMoney, formatPrice, formatProductPrice, formatVariantPrice, getBlogSitemapEntries, getBusinessHoursForDate, getCartItemImage, getCartItemName, getCartTotals, getCategorySitemapEntries, getDescriptionContent, getDirectionForLocale, formatPrice as getPriceDisplay, getProductCustomizationFields, getProductMetafield, getProductMetafieldValue, getProductMetafieldsByType, getProductPrice, getProductPriceInfo, getProductSitemapEntries, getProductSwatches, getStockStatus, getVariantOptions, getVariantPrice, isAllowedPaymentUrl, isCalendarDateAllowed, isCouponApplicableToProduct, isDateValueAllowed, isHtmlDescription, isWebhookEventType, jsonLdScriptProps, parseDateFieldValue, parseWebhookEvent, resolveRelativeBounds, resolveStoreLocalParts, safePaymentRedirect, stripHtml, validateDateAvailabilityConfig, verifyWebhook };
|