@01.software/sdk 0.48.0 → 0.51.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 +157 -1
- package/MIGRATION.md +56 -0
- package/README.md +276 -49
- package/dist/client.cjs +375 -161
- 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 +375 -161
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-CBup9yOx.d.cts → collection-client-CWAeuzV4.d.cts} +6 -4
- package/dist/{collection-client-D3ExJU-7.d.ts → collection-client-hYvVfHIm.d.ts} +6 -4
- package/dist/{const-k9gHylYa.d.ts → const-D8LixhAJ.d.cts} +5 -5
- package/dist/{const-BXEi1Kix.d.cts → const-JD8obaKg.d.ts} +5 -5
- package/dist/embedded-admin/server.cjs +306 -0
- package/dist/embedded-admin/server.cjs.map +1 -0
- package/dist/embedded-admin/server.d.cts +33 -0
- package/dist/embedded-admin/server.d.ts +33 -0
- package/dist/embedded-admin/server.js +288 -0
- package/dist/embedded-admin/server.js.map +1 -0
- package/dist/embedded-admin.cjs +400 -0
- package/dist/embedded-admin.cjs.map +1 -0
- package/dist/embedded-admin.d.cts +61 -0
- package/dist/embedded-admin.d.ts +61 -0
- package/dist/embedded-admin.js +377 -0
- package/dist/embedded-admin.js.map +1 -0
- package/dist/errors.cjs +64 -15
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +13 -4
- package/dist/errors.d.ts +13 -4
- package/dist/errors.js +64 -15
- package/dist/errors.js.map +1 -1
- package/dist/{index-BCM9CTL7.d.cts → index-B0Hjh3Ey.d.ts} +72 -10
- package/dist/{index-CHGGkcLj.d.ts → index-Bu0kCc6o.d.cts} +72 -10
- package/dist/index.cjs +470 -429
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -67
- package/dist/index.d.ts +9 -67
- package/dist/index.js +470 -429
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-B6AZQcB7.d.cts → payload-types-BOsckg8B.d.cts} +396 -57
- package/dist/{payload-types-B6AZQcB7.d.ts → payload-types-BOsckg8B.d.ts} +396 -57
- package/dist/query.cjs +115 -70
- 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 +115 -70
- 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 +591 -186
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +8 -7
- package/dist/server.d.ts +8 -7
- package/dist/server.js +591 -186
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +22 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +22 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-ByD2zii1.d.ts → types-5ZlcAFuU.d.ts} +2 -2
- package/dist/{types-8us-_C-Q.d.cts → types-B14sEt1z.d.cts} +2 -2
- package/dist/{types-CM2je9Kw.d.cts → types-Bj8j7VHU.d.ts} +107 -26
- package/dist/{types-DbA5V3mt.d.ts → types-CM5qiR2k.d.cts} +107 -26
- 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.cjs +124 -80
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +21 -5
- package/dist/webhook.d.ts +21 -5
- package/dist/webhook.js +124 -80
- package/dist/webhook.js.map +1 -1
- package/package.json +27 -5
package/dist/server.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { S as ServerCollectionClient } from './collection-client-
|
|
2
|
-
export { C as CollectionClient } from './collection-client-
|
|
3
|
-
import { aE as RawBaseApi, aF as ServerApiOptions, aG as ServerCommerceClient, aH as TenantIntrospectionClient, aI as SubscribeMembershipParams, aJ as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, a as CommunityClient, aK as BanCustomerParams, aL as CommunityBan, aM as UnbanCustomerParams, M as MarketDiscovery, g as ClientState, aN as ClientServerConfig, E as EventsClient, aO as RootServerClientWithEvents } from './types-
|
|
4
|
-
export { A as AddItemParams, aP as CancelServerPaymentSessionParams, aQ as CartApi, aR as CartApiOptions, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, aS as CheckoutApi, aT as CheckoutApiOptions, aU as CheckoutListItem, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, aV as CheckoutQueryParams, aW as CheckoutQueryResult, s as CheckoutShippingAddress, aX as CheckoutStatus, t as ClearCartParams, aY as CollectionCustomFieldDefinition, aZ as CollectionCustomFields, a_ as CollectionFieldSchema, a$ as CollectionSchemaResponse, b0 as ConfirmCustomPaymentSessionOptions, b1 as ConfirmCustomPaymentSessionParams, b2 as ConfirmCustomPaymentSessionResponse, b3 as ConfirmTossPaymentSessionParams, w as CreateCartParams, x as CreateCartResult, b4 as CreateCustomPaymentSessionParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, b5 as CreateServerCheckoutParams, b6 as CreateServerCheckoutResult, b7 as CustomPaymentSession, b8 as CustomPaymentSessionProof, d as CustomerMembershipView, F as CustomerSnapshot, b9 as EventAdmissionAvailabilityParams, ba as EventAdmissionAvailabilityResponse, bb as EventAdmissionAvailabilityType, bc as EventAdmissionPricePresentment, bd as EventGuestCancelParams, be as EventGuestRegistration, bf as EventGuestRegistrationResponse, bg as EventRegistrationAnswerInput, bh as EventRegistrationAttendeeInput, bi as EventRegistrationPublic, bj as EventRegistrationRegisterParams, bk as EventRegistrationRegisterResponse, bl as EventsCalendarItem, bm as EventsClientOptions, bn as EventsDateParam, bo as EventsExternalSource, bp as EventsLocation, bq as EventsOccurrenceLocation, br as EventsRangeEvent, bs as EventsRangeOccurrence, bt as EventsRangeParams, bu as EventsRangeResponse, bv as EventsTaxonomyItem, J as MembershipStatus,
|
|
5
|
-
import './payload-types-
|
|
1
|
+
import { S as ServerCollectionClient } from './collection-client-CWAeuzV4.cjs';
|
|
2
|
+
export { C as CollectionClient } from './collection-client-CWAeuzV4.cjs';
|
|
3
|
+
import { aE as RawBaseApi, aF as ServerApiOptions, aG as ServerCommerceClient, aH as TenantIntrospectionClient, aI as SubscribeMembershipParams, aJ as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, a as CommunityClient, aK as BanCustomerParams, aL as CommunityBan, aM as UnbanCustomerParams, M as MarketDiscovery, g as ClientState, aN as ClientServerConfig, E as EventsClient, aO as RootServerClientWithEvents } from './types-CM5qiR2k.cjs';
|
|
4
|
+
export { A as AddItemParams, aP as CancelServerPaymentSessionParams, aQ as CartApi, aR as CartApiOptions, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, aS as CheckoutApi, aT as CheckoutApiOptions, aU as CheckoutListItem, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, aV as CheckoutQueryParams, aW as CheckoutQueryResult, s as CheckoutShippingAddress, aX as CheckoutStatus, t as ClearCartParams, aY as CollectionCustomFieldDefinition, aZ as CollectionCustomFields, a_ as CollectionFieldSchema, a$ as CollectionSchemaResponse, b0 as ConfirmCustomPaymentSessionOptions, b1 as ConfirmCustomPaymentSessionParams, b2 as ConfirmCustomPaymentSessionResponse, b3 as ConfirmTossPaymentSessionParams, w as CreateCartParams, x as CreateCartResult, b4 as CreateCustomPaymentSessionParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, b5 as CreateServerCheckoutParams, b6 as CreateServerCheckoutResult, b7 as CustomPaymentSession, b8 as CustomPaymentSessionProof, d as CustomerMembershipView, F as CustomerSnapshot, b9 as EventAdmissionAvailabilityParams, ba as EventAdmissionAvailabilityResponse, bb as EventAdmissionAvailabilityType, bc as EventAdmissionPricePresentment, bd as EventGuestCancelParams, be as EventGuestRegistration, bf as EventGuestRegistrationResponse, bg as EventRegistrationAnswerInput, bh as EventRegistrationAttendeeInput, bi as EventRegistrationPublic, bj as EventRegistrationRegisterParams, bk as EventRegistrationRegisterResponse, bl as EventsCalendarItem, bm as EventsClientOptions, bn as EventsDateParam, bo as EventsExternalSource, bp as EventsLocation, bq as EventsOccurrenceLocation, br as EventsRangeEvent, bs as EventsRangeOccurrence, bt as EventsRangeParams, bu as EventsRangeResponse, bv as EventsTaxonomyItem, bw as FindPortOnePaymentParams, bx as FindPortOnePaymentResult, J as MembershipStatus, by as ModerationApi, K as Money, O as OpenCheckoutPaymentState, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, bz as PaymentSessionApi, bA as PaymentSessionApiOptions, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, bB as PortOnePaymentCurrentState, V as PortOnePaymentNextAction, bC as PortOnePaymentReconciliationApi, bD as PortOnePaymentSelector, W as PortOnePublicPaymentSession, bE as PortOneReconciliationDisposition, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, bF as ReconcilePortOnePaymentParams, bG as ReconcilePortOnePaymentResult, af as ReconciliationRequired, ag as RemoveItemParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, bH as RetrieveCustomPaymentSessionParams, bI as RetrieveServerCheckoutParams, bJ as RetrieveServerPaymentSessionParams, bK as RetrievedCustomPaymentSession, bL as RootServerClient, bM as ServerCartMergeParams, bN as ServerCartMineParams, bO as ServerCheckout, ao as ShippingLine, aq as SpentCheckoutPaymentState, bP as TENANT_CONTEXT_PATH, bQ as TenantContextInput, bR as TenantContextResponse, bS as TenantCustomFieldType, bT as TenantFeatureProgressEvidenceValue, bU as TenantFeatureProgressFeature, bV as TenantFeatureProgressGroup, bW as TenantFeatureProgressInput, bX as TenantFeatureProgressItem, bY as TenantFeatureProgressItemState, bZ as TenantFeatureProgressResponse, b_ as TenantFeatureProgressSeverity, b$ as TenantFeatureProgressStatus, c0 as TenantFieldConfigState, c1 as TenantIntrospectionApi, c2 as TenantIntrospectionApiOptions, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, aB as UpdateItemParams, aC as VariantInput } from './types-CM5qiR2k.cjs';
|
|
5
|
+
import './payload-types-BOsckg8B.cjs';
|
|
6
|
+
export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
|
|
6
7
|
import './metadata.cjs';
|
|
7
|
-
import './const-
|
|
8
|
-
import './types-
|
|
8
|
+
import './const-D8LixhAJ.cjs';
|
|
9
|
+
import './types-B14sEt1z.cjs';
|
|
9
10
|
|
|
10
11
|
type PreviewDetailParams = {
|
|
11
12
|
collection: string;
|
package/dist/server.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { S as ServerCollectionClient } from './collection-client-
|
|
2
|
-
export { C as CollectionClient } from './collection-client-
|
|
3
|
-
import { aE as RawBaseApi, aF as ServerApiOptions, aG as ServerCommerceClient, aH as TenantIntrospectionClient, aI as SubscribeMembershipParams, aJ as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, a as CommunityClient, aK as BanCustomerParams, aL as CommunityBan, aM as UnbanCustomerParams, M as MarketDiscovery, g as ClientState, aN as ClientServerConfig, E as EventsClient, aO as RootServerClientWithEvents } from './types-
|
|
4
|
-
export { A as AddItemParams, aP as CancelServerPaymentSessionParams, aQ as CartApi, aR as CartApiOptions, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, aS as CheckoutApi, aT as CheckoutApiOptions, aU as CheckoutListItem, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, aV as CheckoutQueryParams, aW as CheckoutQueryResult, s as CheckoutShippingAddress, aX as CheckoutStatus, t as ClearCartParams, aY as CollectionCustomFieldDefinition, aZ as CollectionCustomFields, a_ as CollectionFieldSchema, a$ as CollectionSchemaResponse, b0 as ConfirmCustomPaymentSessionOptions, b1 as ConfirmCustomPaymentSessionParams, b2 as ConfirmCustomPaymentSessionResponse, b3 as ConfirmTossPaymentSessionParams, w as CreateCartParams, x as CreateCartResult, b4 as CreateCustomPaymentSessionParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, b5 as CreateServerCheckoutParams, b6 as CreateServerCheckoutResult, b7 as CustomPaymentSession, b8 as CustomPaymentSessionProof, d as CustomerMembershipView, F as CustomerSnapshot, b9 as EventAdmissionAvailabilityParams, ba as EventAdmissionAvailabilityResponse, bb as EventAdmissionAvailabilityType, bc as EventAdmissionPricePresentment, bd as EventGuestCancelParams, be as EventGuestRegistration, bf as EventGuestRegistrationResponse, bg as EventRegistrationAnswerInput, bh as EventRegistrationAttendeeInput, bi as EventRegistrationPublic, bj as EventRegistrationRegisterParams, bk as EventRegistrationRegisterResponse, bl as EventsCalendarItem, bm as EventsClientOptions, bn as EventsDateParam, bo as EventsExternalSource, bp as EventsLocation, bq as EventsOccurrenceLocation, br as EventsRangeEvent, bs as EventsRangeOccurrence, bt as EventsRangeParams, bu as EventsRangeResponse, bv as EventsTaxonomyItem, J as MembershipStatus,
|
|
5
|
-
import './payload-types-
|
|
1
|
+
import { S as ServerCollectionClient } from './collection-client-hYvVfHIm.js';
|
|
2
|
+
export { C as CollectionClient } from './collection-client-hYvVfHIm.js';
|
|
3
|
+
import { aE as RawBaseApi, aF as ServerApiOptions, aG as ServerCommerceClient, aH as TenantIntrospectionClient, aI as SubscribeMembershipParams, aJ as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, a as CommunityClient, aK as BanCustomerParams, aL as CommunityBan, aM as UnbanCustomerParams, M as MarketDiscovery, g as ClientState, aN as ClientServerConfig, E as EventsClient, aO as RootServerClientWithEvents } from './types-Bj8j7VHU.js';
|
|
4
|
+
export { A as AddItemParams, aP as CancelServerPaymentSessionParams, aQ as CartApi, aR as CartApiOptions, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, aS as CheckoutApi, aT as CheckoutApiOptions, aU as CheckoutListItem, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, aV as CheckoutQueryParams, aW as CheckoutQueryResult, s as CheckoutShippingAddress, aX as CheckoutStatus, t as ClearCartParams, aY as CollectionCustomFieldDefinition, aZ as CollectionCustomFields, a_ as CollectionFieldSchema, a$ as CollectionSchemaResponse, b0 as ConfirmCustomPaymentSessionOptions, b1 as ConfirmCustomPaymentSessionParams, b2 as ConfirmCustomPaymentSessionResponse, b3 as ConfirmTossPaymentSessionParams, w as CreateCartParams, x as CreateCartResult, b4 as CreateCustomPaymentSessionParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, b5 as CreateServerCheckoutParams, b6 as CreateServerCheckoutResult, b7 as CustomPaymentSession, b8 as CustomPaymentSessionProof, d as CustomerMembershipView, F as CustomerSnapshot, b9 as EventAdmissionAvailabilityParams, ba as EventAdmissionAvailabilityResponse, bb as EventAdmissionAvailabilityType, bc as EventAdmissionPricePresentment, bd as EventGuestCancelParams, be as EventGuestRegistration, bf as EventGuestRegistrationResponse, bg as EventRegistrationAnswerInput, bh as EventRegistrationAttendeeInput, bi as EventRegistrationPublic, bj as EventRegistrationRegisterParams, bk as EventRegistrationRegisterResponse, bl as EventsCalendarItem, bm as EventsClientOptions, bn as EventsDateParam, bo as EventsExternalSource, bp as EventsLocation, bq as EventsOccurrenceLocation, br as EventsRangeEvent, bs as EventsRangeOccurrence, bt as EventsRangeParams, bu as EventsRangeResponse, bv as EventsTaxonomyItem, bw as FindPortOnePaymentParams, bx as FindPortOnePaymentResult, J as MembershipStatus, by as ModerationApi, K as Money, O as OpenCheckoutPaymentState, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, bz as PaymentSessionApi, bA as PaymentSessionApiOptions, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, bB as PortOnePaymentCurrentState, V as PortOnePaymentNextAction, bC as PortOnePaymentReconciliationApi, bD as PortOnePaymentSelector, W as PortOnePublicPaymentSession, bE as PortOneReconciliationDisposition, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, bF as ReconcilePortOnePaymentParams, bG as ReconcilePortOnePaymentResult, af as ReconciliationRequired, ag as RemoveItemParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, bH as RetrieveCustomPaymentSessionParams, bI as RetrieveServerCheckoutParams, bJ as RetrieveServerPaymentSessionParams, bK as RetrievedCustomPaymentSession, bL as RootServerClient, bM as ServerCartMergeParams, bN as ServerCartMineParams, bO as ServerCheckout, ao as ShippingLine, aq as SpentCheckoutPaymentState, bP as TENANT_CONTEXT_PATH, bQ as TenantContextInput, bR as TenantContextResponse, bS as TenantCustomFieldType, bT as TenantFeatureProgressEvidenceValue, bU as TenantFeatureProgressFeature, bV as TenantFeatureProgressGroup, bW as TenantFeatureProgressInput, bX as TenantFeatureProgressItem, bY as TenantFeatureProgressItemState, bZ as TenantFeatureProgressResponse, b_ as TenantFeatureProgressSeverity, b$ as TenantFeatureProgressStatus, c0 as TenantFieldConfigState, c1 as TenantIntrospectionApi, c2 as TenantIntrospectionApiOptions, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, aB as UpdateItemParams, aC as VariantInput } from './types-Bj8j7VHU.js';
|
|
5
|
+
import './payload-types-BOsckg8B.js';
|
|
6
|
+
export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
|
|
6
7
|
import './metadata.js';
|
|
7
|
-
import './const-
|
|
8
|
-
import './types-
|
|
8
|
+
import './const-JD8obaKg.js';
|
|
9
|
+
import './types-5ZlcAFuU.js';
|
|
9
10
|
|
|
10
11
|
type PreviewDetailParams = {
|
|
11
12
|
collection: string;
|