@01.software/sdk 0.67.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 +27 -0
- package/README.md +124 -6
- package/dist/client.cjs +422 -319
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +11 -6
- package/dist/client.d.ts +11 -6
- package/dist/client.js +422 -319
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-D4HEOoO_.d.ts → collection-client-C2VGBnCC.d.ts} +4 -4
- package/dist/{collection-client-jrNFGbrO.d.cts → collection-client-DvWkDxSM.d.cts} +4 -4
- package/dist/{const-CCQ3MdLE.d.cts → const-AtPEgg__.d.cts} +2 -2
- package/dist/{const-BU79hCFB.d.ts → const-DR96Chal.d.ts} +2 -2
- package/dist/embedded-admin/server.cjs +19 -1
- package/dist/embedded-admin/server.cjs.map +1 -1
- package/dist/embedded-admin/server.d.cts +4 -2
- package/dist/embedded-admin/server.d.ts +4 -2
- package/dist/embedded-admin/server.js +19 -1
- package/dist/embedded-admin/server.js.map +1 -1
- package/dist/embedded-admin.cjs +22 -0
- package/dist/embedded-admin.cjs.map +1 -1
- package/dist/embedded-admin.d.cts +7 -1
- package/dist/embedded-admin.d.ts +7 -1
- package/dist/embedded-admin.js +22 -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-DiyhsVHd.d.cts → index-Ce11c_Oh.d.cts} +3 -3
- package/dist/{index-CwKxWHIa.d.ts → index-D8fmTrZk.d.ts} +3 -3
- package/dist/index.cjs +427 -323
- 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 +427 -323
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-jdsUXunB.d.cts → payload-types-rhnw3rR8.d.cts} +48 -1
- package/dist/{payload-types-jdsUXunB.d.ts → payload-types-rhnw3rR8.d.ts} +48 -1
- package/dist/query.cjs +11 -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 +11 -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 +1186 -1071
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.js +1186 -1071
- 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-CvdBV3ri.d.cts → types-B99utaKU.d.cts} +147 -40
- package/dist/{types-BPwXAFZ7.d.cts → types-BR0D4AaW.d.cts} +2 -2
- package/dist/{types-BusejG-v.d.ts → types-CHK8VIPa.d.ts} +2 -2
- package/dist/{types-I2k6Laad.d.ts → types-L0xmn_iT.d.ts} +147 -40
- 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 -2
package/dist/query.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { QueryClient, UseQueryResult, UseSuspenseQueryResult, InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import {
|
|
4
|
-
import './payload-types-
|
|
5
|
-
import { S as ServerCollection, P as PublicCollection } from './const-
|
|
6
|
-
import { C as CollectionClient } from './collection-client-
|
|
7
|
-
import { C as CollectionType } from './types-
|
|
3
|
+
import { cN as ApiQueryOptions, cX as PayloadFindResponse, dd as PublicReadQueryOptions, cY as PayloadMutationResponse, de as CustomerAuth, df as CustomerProfile, dg as CustomerAuthResponse, dh as CustomerLoginData, di as CustomerRegisterResponse, dj as CustomerRegisterData, dk as CustomerRefreshResponse, dl as UpdateProfileData, dm as ProductListingPageParams, dn as ProductListingPageBaseParams, dp as ProductDetailParams, dq as ProductDetailCatalogResult, dr as ProductListingPageCatalogParams, ds as ProductListingPageResult, dt as ProductListingGroupsCatalogItem, du as ProductListingPageFullParams, dv as ProductListingGroupsItem, c$ as RootClient, c8 as RootServerClient } from './types-B99utaKU.cjs';
|
|
4
|
+
import './payload-types-rhnw3rR8.cjs';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-AtPEgg__.cjs';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-DvWkDxSM.cjs';
|
|
7
|
+
import { C as CollectionType } from './types-BR0D4AaW.cjs';
|
|
8
8
|
import { SDKError } from './errors.cjs';
|
|
9
9
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
|
|
10
10
|
import './metadata.cjs';
|
package/dist/query.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { QueryClient, UseQueryResult, UseSuspenseQueryResult, InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import {
|
|
4
|
-
import './payload-types-
|
|
5
|
-
import { S as ServerCollection, P as PublicCollection } from './const-
|
|
6
|
-
import { C as CollectionClient } from './collection-client-
|
|
7
|
-
import { C as CollectionType } from './types-
|
|
3
|
+
import { cN as ApiQueryOptions, cX as PayloadFindResponse, dd as PublicReadQueryOptions, cY as PayloadMutationResponse, de as CustomerAuth, df as CustomerProfile, dg as CustomerAuthResponse, dh as CustomerLoginData, di as CustomerRegisterResponse, dj as CustomerRegisterData, dk as CustomerRefreshResponse, dl as UpdateProfileData, dm as ProductListingPageParams, dn as ProductListingPageBaseParams, dp as ProductDetailParams, dq as ProductDetailCatalogResult, dr as ProductListingPageCatalogParams, ds as ProductListingPageResult, dt as ProductListingGroupsCatalogItem, du as ProductListingPageFullParams, dv as ProductListingGroupsItem, c$ as RootClient, c8 as RootServerClient } from './types-L0xmn_iT.js';
|
|
4
|
+
import './payload-types-rhnw3rR8.js';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-DR96Chal.js';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-C2VGBnCC.js';
|
|
7
|
+
import { C as CollectionType } from './types-CHK8VIPa.js';
|
|
8
8
|
import { SDKError } from './errors.js';
|
|
9
9
|
export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
|
|
10
10
|
import './metadata.js';
|
package/dist/query.js
CHANGED
|
@@ -587,6 +587,7 @@ var COMMERCE_ERROR_CODES = [
|
|
|
587
587
|
"admission_metadata_invalid",
|
|
588
588
|
"admission_metadata_required",
|
|
589
589
|
"capacity_exceeded",
|
|
590
|
+
"admission_required",
|
|
590
591
|
"occurrence_lock_unavailable",
|
|
591
592
|
"occurrence_not_open",
|
|
592
593
|
"admission_type_capacity_exceeded",
|
|
@@ -605,6 +606,8 @@ var COMMERCE_ERROR_CODES = [
|
|
|
605
606
|
"variant_inactive",
|
|
606
607
|
"variant_product_mismatch",
|
|
607
608
|
"product_not_public",
|
|
609
|
+
"product_not_eligible",
|
|
610
|
+
"purchase_limit_exceeded",
|
|
608
611
|
"market_not_found",
|
|
609
612
|
"market_shipping_currency_unsupported",
|
|
610
613
|
"missing_market_rate",
|
|
@@ -1007,6 +1010,14 @@ var EXTERNAL_CUSTOMER_LINK_ENDPOINT_OPERATIONS = {
|
|
|
1007
1010
|
"/external-links/clear-previous-state"
|
|
1008
1011
|
)
|
|
1009
1012
|
};
|
|
1013
|
+
var BENEFIT_VOUCHER_ENDPOINT_OPERATIONS = {
|
|
1014
|
+
issue: operation("customers", "post", "/benefit-vouchers/issue"),
|
|
1015
|
+
get: operation("customers", "post", "/benefit-vouchers/get"),
|
|
1016
|
+
list: operation("customers", "post", "/benefit-vouchers/list"),
|
|
1017
|
+
redeem: operation("customers", "post", "/benefit-vouchers/redeem"),
|
|
1018
|
+
void: operation("customers", "post", "/benefit-vouchers/void"),
|
|
1019
|
+
listMine: operation("customers", "get", "/me/benefit-vouchers")
|
|
1020
|
+
};
|
|
1010
1021
|
var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
|
|
1011
1022
|
members: operation("customer-groups", "get", "/:id/members"),
|
|
1012
1023
|
grant: operation("customer-groups", "post", "/:id/members/grant"),
|