@01.software/sdk 0.68.0 → 0.69.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/CHANGELOG.md +14 -0
- package/README.md +2 -0
- package/dist/client.cjs +3 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-IOaWsTMI.d.ts → collection-client-C2VGBnCC.d.ts} +4 -4
- package/dist/{collection-client-MbIJ5KzW.d.cts → collection-client-DvWkDxSM.d.cts} +4 -4
- package/dist/{const-Dw5ElJs_.d.cts → const-AtPEgg__.d.cts} +1 -1
- package/dist/{const-Do27Udj6.d.ts → const-DR96Chal.d.ts} +1 -1
- package/dist/embedded-admin/server.cjs +3 -0
- package/dist/embedded-admin/server.cjs.map +1 -1
- package/dist/embedded-admin/server.js +3 -0
- package/dist/embedded-admin/server.js.map +1 -1
- package/dist/embedded-admin.cjs +3 -0
- package/dist/embedded-admin.cjs.map +1 -1
- package/dist/embedded-admin.js +3 -0
- package/dist/embedded-admin.js.map +1 -1
- package/dist/errors.cjs +3 -0
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +3 -3
- package/dist/errors.d.ts +3 -3
- package/dist/errors.js +3 -0
- package/dist/errors.js.map +1 -1
- package/dist/{index-gnVxTKXu.d.cts → index-Ce11c_Oh.d.cts} +3 -3
- package/dist/{index-DcYsLOja.d.ts → index-D8fmTrZk.d.ts} +3 -3
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BY1uZFRf.d.cts → payload-types-rhnw3rR8.d.cts} +14 -0
- package/dist/{payload-types-BY1uZFRf.d.ts → payload-types-rhnw3rR8.d.ts} +14 -0
- package/dist/query.cjs +3 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +3 -0
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +3 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +3 -0
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +3 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +3 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-csjaig4G.d.cts → types-B99utaKU.d.cts} +3 -3
- package/dist/{types-DnIuxgu2.d.cts → types-BR0D4AaW.d.cts} +2 -2
- package/dist/{types-AWSVpuPE.d.ts → types-CHK8VIPa.d.ts} +2 -2
- package/dist/{types-CLRw0aDa.d.ts → types-L0xmn_iT.d.ts} +3 -3
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1870,6 +1870,14 @@ interface Product {
|
|
|
1870
1870
|
* Maximum order quantity.
|
|
1871
1871
|
*/
|
|
1872
1872
|
maxOrderQuantity?: number | null;
|
|
1873
|
+
/**
|
|
1874
|
+
* All variants combined, including committed orders and ongoing checkouts. Leave empty for no limit.
|
|
1875
|
+
*/
|
|
1876
|
+
maxQuantityPerCustomer?: number | null;
|
|
1877
|
+
/**
|
|
1878
|
+
* Leave empty to allow anyone to purchase. Otherwise a signed-in customer must currently qualify for one of these groups. Catalog visibility is unchanged.
|
|
1879
|
+
*/
|
|
1880
|
+
allowedCustomerGroups?: (string | CustomerGroup)[] | null;
|
|
1873
1881
|
/**
|
|
1874
1882
|
* Vendor name from external systems.
|
|
1875
1883
|
*/
|
|
@@ -3190,6 +3198,9 @@ interface Checkout {
|
|
|
3190
3198
|
checkoutTokenCiphertext?: string | null;
|
|
3191
3199
|
createIdempotencyKey?: string | null;
|
|
3192
3200
|
createRequestFingerprint?: string | null;
|
|
3201
|
+
purchasePolicyEvidence?: {
|
|
3202
|
+
[k: string]: unknown;
|
|
3203
|
+
} | unknown[] | string | number | boolean | null;
|
|
3193
3204
|
admissionEligibilityFreeze?: {
|
|
3194
3205
|
[k: string]: unknown;
|
|
3195
3206
|
} | unknown[] | string | number | boolean | null;
|
|
@@ -10007,6 +10018,8 @@ interface ProductsSelect<T extends boolean = true> {
|
|
|
10007
10018
|
weight?: T;
|
|
10008
10019
|
minOrderQuantity?: T;
|
|
10009
10020
|
maxOrderQuantity?: T;
|
|
10021
|
+
maxQuantityPerCustomer?: T;
|
|
10022
|
+
allowedCustomerGroups?: T;
|
|
10010
10023
|
vendor?: T;
|
|
10011
10024
|
productType?: T;
|
|
10012
10025
|
priceRange?: T | {
|
|
@@ -11845,6 +11858,7 @@ interface CheckoutsSelect<T extends boolean = true> {
|
|
|
11845
11858
|
checkoutTokenCiphertext?: T;
|
|
11846
11859
|
createIdempotencyKey?: T;
|
|
11847
11860
|
createRequestFingerprint?: T;
|
|
11861
|
+
purchasePolicyEvidence?: T;
|
|
11848
11862
|
admissionEligibilityFreeze?: T;
|
|
11849
11863
|
providerOrderId?: T;
|
|
11850
11864
|
cart?: T;
|
|
@@ -1870,6 +1870,14 @@ interface Product {
|
|
|
1870
1870
|
* Maximum order quantity.
|
|
1871
1871
|
*/
|
|
1872
1872
|
maxOrderQuantity?: number | null;
|
|
1873
|
+
/**
|
|
1874
|
+
* All variants combined, including committed orders and ongoing checkouts. Leave empty for no limit.
|
|
1875
|
+
*/
|
|
1876
|
+
maxQuantityPerCustomer?: number | null;
|
|
1877
|
+
/**
|
|
1878
|
+
* Leave empty to allow anyone to purchase. Otherwise a signed-in customer must currently qualify for one of these groups. Catalog visibility is unchanged.
|
|
1879
|
+
*/
|
|
1880
|
+
allowedCustomerGroups?: (string | CustomerGroup)[] | null;
|
|
1873
1881
|
/**
|
|
1874
1882
|
* Vendor name from external systems.
|
|
1875
1883
|
*/
|
|
@@ -3190,6 +3198,9 @@ interface Checkout {
|
|
|
3190
3198
|
checkoutTokenCiphertext?: string | null;
|
|
3191
3199
|
createIdempotencyKey?: string | null;
|
|
3192
3200
|
createRequestFingerprint?: string | null;
|
|
3201
|
+
purchasePolicyEvidence?: {
|
|
3202
|
+
[k: string]: unknown;
|
|
3203
|
+
} | unknown[] | string | number | boolean | null;
|
|
3193
3204
|
admissionEligibilityFreeze?: {
|
|
3194
3205
|
[k: string]: unknown;
|
|
3195
3206
|
} | unknown[] | string | number | boolean | null;
|
|
@@ -10007,6 +10018,8 @@ interface ProductsSelect<T extends boolean = true> {
|
|
|
10007
10018
|
weight?: T;
|
|
10008
10019
|
minOrderQuantity?: T;
|
|
10009
10020
|
maxOrderQuantity?: T;
|
|
10021
|
+
maxQuantityPerCustomer?: T;
|
|
10022
|
+
allowedCustomerGroups?: T;
|
|
10010
10023
|
vendor?: T;
|
|
10011
10024
|
productType?: T;
|
|
10012
10025
|
priceRange?: T | {
|
|
@@ -11845,6 +11858,7 @@ interface CheckoutsSelect<T extends boolean = true> {
|
|
|
11845
11858
|
checkoutTokenCiphertext?: T;
|
|
11846
11859
|
createIdempotencyKey?: T;
|
|
11847
11860
|
createRequestFingerprint?: T;
|
|
11861
|
+
purchasePolicyEvidence?: T;
|
|
11848
11862
|
admissionEligibilityFreeze?: T;
|
|
11849
11863
|
providerOrderId?: T;
|
|
11850
11864
|
cart?: T;
|
package/dist/query.cjs
CHANGED
|
@@ -615,6 +615,7 @@ var COMMERCE_ERROR_CODES = [
|
|
|
615
615
|
"admission_metadata_invalid",
|
|
616
616
|
"admission_metadata_required",
|
|
617
617
|
"capacity_exceeded",
|
|
618
|
+
"admission_required",
|
|
618
619
|
"occurrence_lock_unavailable",
|
|
619
620
|
"occurrence_not_open",
|
|
620
621
|
"admission_type_capacity_exceeded",
|
|
@@ -633,6 +634,8 @@ var COMMERCE_ERROR_CODES = [
|
|
|
633
634
|
"variant_inactive",
|
|
634
635
|
"variant_product_mismatch",
|
|
635
636
|
"product_not_public",
|
|
637
|
+
"product_not_eligible",
|
|
638
|
+
"purchase_limit_exceeded",
|
|
636
639
|
"market_not_found",
|
|
637
640
|
"market_shipping_currency_unsupported",
|
|
638
641
|
"missing_market_rate",
|