@01.software/sdk 0.68.0 → 0.70.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 +53 -0
- package/README.md +28 -7
- package/dist/client.cjs +38 -7
- 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 +38 -7
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-IOaWsTMI.d.ts → collection-client-B1FSJ24_.d.ts} +5 -5
- package/dist/{collection-client-MbIJ5KzW.d.cts → collection-client-BHLStm1K.d.cts} +5 -5
- package/dist/{const-Dw5ElJs_.d.cts → const-BfQfV-rr.d.cts} +1 -1
- package/dist/{const-Do27Udj6.d.ts → const-ty8u0TDI.d.ts} +1 -1
- package/dist/embedded-admin/server.cjs +8 -0
- package/dist/embedded-admin/server.cjs.map +1 -1
- package/dist/embedded-admin/server.js +8 -0
- package/dist/embedded-admin/server.js.map +1 -1
- package/dist/embedded-admin.cjs +8 -0
- package/dist/embedded-admin.cjs.map +1 -1
- package/dist/embedded-admin.js +8 -0
- package/dist/embedded-admin.js.map +1 -1
- package/dist/errors.cjs +8 -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 +8 -0
- package/dist/errors.js.map +1 -1
- package/dist/{index-gnVxTKXu.d.cts → index-CX6si6YC.d.cts} +3 -3
- package/dist/{index-DcYsLOja.d.ts → index-DnKgjPGM.d.ts} +3 -3
- package/dist/index.cjs +38 -7
- 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 +38 -7
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BY1uZFRf.d.cts → payload-types-DTAaWKrp.d.cts} +32 -4
- package/dist/{payload-types-BY1uZFRf.d.ts → payload-types-DTAaWKrp.d.ts} +32 -4
- package/dist/query.cjs +17 -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 +17 -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 +38 -7
- 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 +38 -7
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +8 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +8 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-csjaig4G.d.cts → types-Bzgf4mTo.d.cts} +3 -3
- package/dist/{types-DnIuxgu2.d.cts → types-CpSiyJud.d.cts} +8 -2
- package/dist/{types-AWSVpuPE.d.ts → types-DX8Z44yQ.d.ts} +8 -2
- package/dist/{types-CLRw0aDa.d.ts → types-DdlhpNVv.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
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 { 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-
|
|
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-Bzgf4mTo.cjs';
|
|
4
|
+
import './payload-types-DTAaWKrp.cjs';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-BfQfV-rr.cjs';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-BHLStm1K.cjs';
|
|
7
|
+
import { C as CollectionType } from './types-CpSiyJud.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 { 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-
|
|
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-DdlhpNVv.js';
|
|
4
|
+
import './payload-types-DTAaWKrp.js';
|
|
5
|
+
import { S as ServerCollection, P as PublicCollection } from './const-ty8u0TDI.js';
|
|
6
|
+
import { C as CollectionClient } from './collection-client-B1FSJ24_.js';
|
|
7
|
+
import { C as CollectionType } from './types-DX8Z44yQ.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
|
@@ -586,7 +586,13 @@ var COMMERCE_ERROR_CODES = [
|
|
|
586
586
|
"checkout_reservation_release_requires_transaction",
|
|
587
587
|
"admission_metadata_invalid",
|
|
588
588
|
"admission_metadata_required",
|
|
589
|
+
"admission_not_eligible",
|
|
590
|
+
"admission_eligibility_unavailable",
|
|
591
|
+
"admission_authority_unavailable",
|
|
592
|
+
"admission_customer_binding_required",
|
|
593
|
+
"admission_eligibility_unproven",
|
|
589
594
|
"capacity_exceeded",
|
|
595
|
+
"admission_required",
|
|
590
596
|
"occurrence_lock_unavailable",
|
|
591
597
|
"occurrence_not_open",
|
|
592
598
|
"admission_type_capacity_exceeded",
|
|
@@ -605,6 +611,8 @@ var COMMERCE_ERROR_CODES = [
|
|
|
605
611
|
"variant_inactive",
|
|
606
612
|
"variant_product_mismatch",
|
|
607
613
|
"product_not_public",
|
|
614
|
+
"product_not_eligible",
|
|
615
|
+
"purchase_limit_exceeded",
|
|
608
616
|
"market_not_found",
|
|
609
617
|
"market_shipping_currency_unsupported",
|
|
610
618
|
"missing_market_rate",
|
|
@@ -1039,6 +1047,15 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
|
|
|
1039
1047
|
};
|
|
1040
1048
|
var EVENTS_ENDPOINT_OPERATIONS = {
|
|
1041
1049
|
registrations: {
|
|
1050
|
+
register: operation("event-registrations", "post", "/register"),
|
|
1051
|
+
guestLookup: operation("event-registrations", "post", "/guest/lookup"),
|
|
1052
|
+
guestLookupByUrl: operation("event-registrations", "get", "/guest/:token"),
|
|
1053
|
+
guestCancel: operation("event-registrations", "post", "/guest/cancel"),
|
|
1054
|
+
guestCancelByUrl: operation(
|
|
1055
|
+
"event-registrations",
|
|
1056
|
+
"post",
|
|
1057
|
+
"/guest/:token/cancel"
|
|
1058
|
+
),
|
|
1042
1059
|
listMine: operation("event-registrations", "get", "/my")
|
|
1043
1060
|
},
|
|
1044
1061
|
events: {
|