@01.software/sdk 0.70.1 → 0.72.1
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 +143 -0
- package/MIGRATION.md +28 -0
- package/README.md +253 -11
- package/dist/client.cjs +396 -26
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +7 -6
- package/dist/client.d.ts +7 -6
- package/dist/client.js +396 -26
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-BHLStm1K.d.cts → collection-client-B3CnqMDQ.d.cts} +14 -18
- package/dist/{collection-client-B1FSJ24_.d.ts → collection-client-uOgS_1bC.d.ts} +14 -18
- package/dist/{const-ty8u0TDI.d.ts → const-BJBK7jBl.d.ts} +1 -1
- package/dist/{const-BfQfV-rr.d.cts → const-_ZfJjRQG.d.cts} +1 -1
- package/dist/embedded-admin/server.cjs +117 -2
- package/dist/embedded-admin/server.cjs.map +1 -1
- package/dist/embedded-admin/server.d.cts +30 -2
- package/dist/embedded-admin/server.d.ts +30 -2
- package/dist/embedded-admin/server.js +117 -2
- package/dist/embedded-admin/server.js.map +1 -1
- package/dist/embedded-admin.cjs +135 -7
- package/dist/embedded-admin.cjs.map +1 -1
- package/dist/embedded-admin.d.cts +35 -2
- package/dist/embedded-admin.d.ts +35 -2
- package/dist/embedded-admin.js +135 -7
- package/dist/embedded-admin.js.map +1 -1
- package/dist/errors.cjs +2 -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 +2 -0
- package/dist/errors.js.map +1 -1
- package/dist/{index-DnKgjPGM.d.ts → index-CBaP4q8r.d.ts} +3 -3
- package/dist/{index-CX6si6YC.d.cts → index-CI_LFWiG.d.cts} +3 -3
- package/dist/index.cjs +396 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -9
- package/dist/index.d.ts +24 -9
- package/dist/index.js +396 -26
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DTAaWKrp.d.cts → payload-types-BRg8Yary.d.cts} +262 -177
- package/dist/{payload-types-DTAaWKrp.d.ts → payload-types-BRg8Yary.d.ts} +262 -177
- package/dist/query.cjs +20 -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 +20 -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 +459 -46
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +10 -8
- package/dist/server.d.ts +10 -8
- package/dist/server.js +459 -46
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +2 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +2 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-DdlhpNVv.d.ts → types-Cmnxxvuv.d.ts} +238 -21
- package/dist/{types-Bzgf4mTo.d.cts → types-CnkJQUez.d.cts} +238 -21
- package/dist/{types-DX8Z44yQ.d.ts → types-DLjSqL0P.d.ts} +2 -2
- package/dist/{types-CpSiyJud.d.cts → types-FyklqLAk.d.cts} +2 -2
- 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 +2 -4
package/dist/query.cjs
CHANGED
|
@@ -589,6 +589,7 @@ var COMMERCE_ERROR_CODES = [
|
|
|
589
589
|
"cart_not_active",
|
|
590
590
|
"cart_locked",
|
|
591
591
|
"cart_empty",
|
|
592
|
+
"shipping_address_required",
|
|
592
593
|
"cart_market_unavailable",
|
|
593
594
|
"cart_market_mismatch",
|
|
594
595
|
"checkout_not_open",
|
|
@@ -605,6 +606,7 @@ var COMMERCE_ERROR_CODES = [
|
|
|
605
606
|
"price_changed",
|
|
606
607
|
"pricing_fact_in_use",
|
|
607
608
|
"insufficient_stock",
|
|
609
|
+
"credit_insufficient",
|
|
608
610
|
"reservation_conflict",
|
|
609
611
|
"stock_lock_unavailable",
|
|
610
612
|
"variant_not_found",
|
|
@@ -1001,6 +1003,11 @@ var portOneStandardActionCapabilityOperations = /* @__PURE__ */ new Set([
|
|
|
1001
1003
|
]);
|
|
1002
1004
|
var MEMBERSHIP_ENDPOINT_OPERATIONS = {
|
|
1003
1005
|
subscribe: operation(null, "post", "/memberships/subscribe"),
|
|
1006
|
+
endSubscribeIntent: operation(
|
|
1007
|
+
null,
|
|
1008
|
+
"post",
|
|
1009
|
+
"/memberships/subscribe-intent/end"
|
|
1010
|
+
),
|
|
1004
1011
|
billingCustody: operation(null, "post", "/memberships/billing-custody"),
|
|
1005
1012
|
cancel: operation(null, "post", "/memberships/:id/cancel"),
|
|
1006
1013
|
me: operation(null, "get", "/memberships/me"),
|
|
@@ -1046,6 +1053,19 @@ var BENEFIT_VOUCHER_ENDPOINT_OPERATIONS = {
|
|
|
1046
1053
|
void: operation("customers", "post", "/benefit-vouchers/void"),
|
|
1047
1054
|
listMine: operation("customers", "get", "/me/benefit-vouchers")
|
|
1048
1055
|
};
|
|
1056
|
+
var CUSTOMER_CREDIT_ENDPOINT_OPERATIONS = {
|
|
1057
|
+
grant: strictCommerceOperation("customers", "post", "/credits/grant"),
|
|
1058
|
+
getGrant: strictCommerceOperation("customers", "post", "/credits/get-grant"),
|
|
1059
|
+
getAccount: strictCommerceOperation("customers", "post", "/credits/account"),
|
|
1060
|
+
revoke: strictCommerceOperation("customers", "post", "/credits/revoke"),
|
|
1061
|
+
mine: strictCommerceOperation("customers", "get", "/me/credits"),
|
|
1062
|
+
history: strictCommerceOperation("customers", "get", "/me/credits/history"),
|
|
1063
|
+
configure: strictCommerceOperation(
|
|
1064
|
+
"customers",
|
|
1065
|
+
"post",
|
|
1066
|
+
"/credits/configuration"
|
|
1067
|
+
)
|
|
1068
|
+
};
|
|
1049
1069
|
var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
|
|
1050
1070
|
members: operation("customer-groups", "get", "/:id/members"),
|
|
1051
1071
|
grant: operation("customer-groups", "post", "/:id/members/grant"),
|