@01.software/sdk 0.49.0 → 0.56.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 +257 -1
- package/MIGRATION.md +56 -0
- package/README.md +269 -56
- package/dist/client.cjs +608 -190
- 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 +608 -190
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-DnDt6EQz.d.ts → collection-client-Bmr53saa.d.ts} +6 -4
- package/dist/{collection-client-XfGLPuTf.d.cts → collection-client-DxuBDso_.d.cts} +6 -4
- package/dist/{const-CBba4lDo.d.cts → const-BKUqg96Q.d.ts} +5 -5
- package/dist/{const-DCNV5Kq7.d.ts → const-Cv1DCsp6.d.cts} +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 +1 -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 +1 -0
- package/dist/errors.js.map +1 -1
- package/dist/{index-DUuIqUS8.d.ts → index-CGsT4AQ8.d.cts} +89 -10
- package/dist/{index-CbKyoEzy.d.cts → index-DFHLLqYu.d.ts} +89 -10
- package/dist/index.cjs +752 -436
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -69
- package/dist/index.d.ts +12 -69
- package/dist/index.js +752 -436
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-MKbx5MuJ.d.cts → payload-types-Bk-duc5k.d.cts} +545 -141
- package/dist/{payload-types-MKbx5MuJ.d.ts → payload-types-Bk-duc5k.d.ts} +545 -141
- package/dist/query.cjs +108 -71
- 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 +108 -71
- 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 +502 -175
- 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 +502 -175
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +1 -0
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +1 -0
- package/dist/storefront-cache.js.map +1 -1
- package/dist/{types-1UeOk1Uy.d.cts → types-CEK8uTvU.d.ts} +287 -30
- package/dist/{types-BKr_2avj.d.cts → types-CNdpj2fI.d.cts} +2 -2
- package/dist/{types-L_nh-ED7.d.ts → types-D4mjGFj4.d.ts} +2 -2
- package/dist/{types-Du4s5anw.d.ts → types-Dhk5NX7Z.d.cts} +287 -30
- 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 +135 -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 +135 -80
- package/dist/webhook.js.map +1 -1
- package/package.json +28 -6
package/dist/server.d.cts
CHANGED
|
@@ -1,12 +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,
|
|
4
|
-
export { A as AddItemParams,
|
|
5
|
-
import './payload-types-
|
|
1
|
+
import { S as ServerCollectionClient } from './collection-client-DxuBDso_.cjs';
|
|
2
|
+
export { C as CollectionClient } from './collection-client-DxuBDso_.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, aK as CustomerGroupApi, a as CommunityClient, aL as BanCustomerParams, aM as CommunityBan, aN as UnbanCustomerParams, M as MarketDiscovery, g as ClientState, aO as ClientServerConfig, E as EventsClient, aP as RootServerClientWithEvents } from './types-Dhk5NX7Z.cjs';
|
|
4
|
+
export { A as AddItemParams, aQ as CancelServerPaymentSessionParams, aR as CartApi, aS as CartApiOptions, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, aT as CheckoutApi, aU as CheckoutApiOptions, aV as CheckoutListItem, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, aW as CheckoutQueryParams, aX as CheckoutQueryResult, s as CheckoutShippingAddress, aY as CheckoutStatus, t as ClearCartParams, aZ as CollectionCustomFieldDefinition, a_ as CollectionCustomFields, a$ as CollectionFieldSchema, b0 as CollectionSchemaResponse, b1 as ConfirmCustomPaymentSessionOptions, b2 as ConfirmCustomPaymentSessionParams, b3 as ConfirmCustomPaymentSessionResponse, b4 as ConfirmTossPaymentSessionParams, w as CreateCartParams, x as CreateCartResult, b5 as CreateCustomPaymentSessionParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, b6 as CreateServerCheckoutParams, b7 as CreateServerCheckoutResult, b8 as CustomPaymentSession, b9 as CustomPaymentSessionProof, ba as CustomerGroupApiOptions, bb as CustomerGroupManualSource, bc as CustomerGroupMember, bd as CustomerGroupMemberCommandResponse, be as CustomerGroupMemberSource, bf as CustomerGroupMembershipSource, bg as CustomerGroupMembershipState, d as CustomerMembershipView, F as CustomerSnapshot, bh as EventAdmissionAvailabilityParams, bi as EventAdmissionAvailabilityResponse, bj as EventAdmissionAvailabilityType, bk as EventAdmissionPricePresentment, bl as EventGuestCancelParams, bm as EventGuestRegistration, bn as EventGuestRegistrationResponse, bo as EventRegistrationAnswerInput, bp as EventRegistrationAttendeeInput, bq as EventRegistrationPublic, br as EventRegistrationRegisterParams, bs as EventRegistrationRegisterResponse, bt as EventsCalendarItem, bu as EventsClientOptions, bv as EventsDateParam, bw as EventsExternalSource, bx as EventsLocation, by as EventsOccurrenceLocation, bz as EventsRangeEvent, bA as EventsRangeOccurrence, bB as EventsRangeParams, bC as EventsRangeResponse, bD as EventsTaxonomyItem, bE as FindPortOnePaymentParams, bF as FindPortOnePaymentResult, bG as GrantCustomerGroupMemberParams, bH as ListCustomerGroupMembersParams, bI as ListCustomerGroupMembersResponse, J as MembershipStatus, bJ as ModerationApi, K as Money, O as OpenCheckoutPaymentState, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, bK as PaymentSessionApi, bL as PaymentSessionApiOptions, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, bM as PortOnePaymentCurrentState, V as PortOnePaymentNextAction, bN as PortOnePaymentReconciliationApi, bO as PortOnePaymentSelector, W as PortOnePublicPaymentSession, bP 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, bQ as ReconcilePortOnePaymentParams, bR as ReconcilePortOnePaymentResult, af as ReconciliationRequired, ag as RemoveItemParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, bS as RetrieveCustomPaymentSessionParams, bT as RetrieveServerCheckoutParams, bU as RetrieveServerPaymentSessionParams, bV as RetrievedCustomPaymentSession, bW as RevokeCustomerGroupMemberParams, bX as RootServerClient, bY as ServerCartMergeParams, bZ as ServerCartMineParams, b_ as ServerCheckout, ao as ShippingLine, aq as SpentCheckoutPaymentState, b$ as TENANT_CONTEXT_PATH, c0 as TenantContextInput, c1 as TenantContextResponse, c2 as TenantCustomFieldType, c3 as TenantFeatureProgressEvidenceValue, c4 as TenantFeatureProgressFeature, c5 as TenantFeatureProgressGroup, c6 as TenantFeatureProgressInput, c7 as TenantFeatureProgressItem, c8 as TenantFeatureProgressItemState, c9 as TenantFeatureProgressResponse, ca as TenantFeatureProgressSeverity, cb as TenantFeatureProgressStatus, cc as TenantFieldConfigState, cd as TenantIntrospectionApi, ce as TenantIntrospectionApiOptions, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, aB as UpdateItemParams, aC as VariantInput } from './types-Dhk5NX7Z.cjs';
|
|
5
|
+
import './payload-types-Bk-duc5k.cjs';
|
|
6
6
|
export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
|
|
7
7
|
import './metadata.cjs';
|
|
8
|
-
import './const-
|
|
9
|
-
import './types-
|
|
8
|
+
import './const-Cv1DCsp6.cjs';
|
|
9
|
+
import './types-CNdpj2fI.cjs';
|
|
10
10
|
|
|
11
11
|
type PreviewDetailParams = {
|
|
12
12
|
collection: string;
|
|
@@ -36,6 +36,7 @@ declare class ServerClient {
|
|
|
36
36
|
subscribe: (params: SubscribeMembershipParams) => Promise<SubscribeMembershipResponse>;
|
|
37
37
|
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
38
38
|
};
|
|
39
|
+
customerGroups: CustomerGroupApi;
|
|
39
40
|
private _events?;
|
|
40
41
|
community: CommunityClient & {
|
|
41
42
|
moderation: {
|
|
@@ -65,4 +66,4 @@ declare class ServerClient {
|
|
|
65
66
|
*/
|
|
66
67
|
declare function createServerClient(options: ClientServerConfig): RootServerClientWithEvents;
|
|
67
68
|
|
|
68
|
-
export { CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, EventsClient, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
|
|
69
|
+
export { CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, CustomerGroupApi, EventsClient, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,12 +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,
|
|
4
|
-
export { A as AddItemParams,
|
|
5
|
-
import './payload-types-
|
|
1
|
+
import { S as ServerCollectionClient } from './collection-client-Bmr53saa.js';
|
|
2
|
+
export { C as CollectionClient } from './collection-client-Bmr53saa.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, aK as CustomerGroupApi, a as CommunityClient, aL as BanCustomerParams, aM as CommunityBan, aN as UnbanCustomerParams, M as MarketDiscovery, g as ClientState, aO as ClientServerConfig, E as EventsClient, aP as RootServerClientWithEvents } from './types-CEK8uTvU.js';
|
|
4
|
+
export { A as AddItemParams, aQ as CancelServerPaymentSessionParams, aR as CartApi, aS as CartApiOptions, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, aT as CheckoutApi, aU as CheckoutApiOptions, aV as CheckoutListItem, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, aW as CheckoutQueryParams, aX as CheckoutQueryResult, s as CheckoutShippingAddress, aY as CheckoutStatus, t as ClearCartParams, aZ as CollectionCustomFieldDefinition, a_ as CollectionCustomFields, a$ as CollectionFieldSchema, b0 as CollectionSchemaResponse, b1 as ConfirmCustomPaymentSessionOptions, b2 as ConfirmCustomPaymentSessionParams, b3 as ConfirmCustomPaymentSessionResponse, b4 as ConfirmTossPaymentSessionParams, w as CreateCartParams, x as CreateCartResult, b5 as CreateCustomPaymentSessionParams, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, b6 as CreateServerCheckoutParams, b7 as CreateServerCheckoutResult, b8 as CustomPaymentSession, b9 as CustomPaymentSessionProof, ba as CustomerGroupApiOptions, bb as CustomerGroupManualSource, bc as CustomerGroupMember, bd as CustomerGroupMemberCommandResponse, be as CustomerGroupMemberSource, bf as CustomerGroupMembershipSource, bg as CustomerGroupMembershipState, d as CustomerMembershipView, F as CustomerSnapshot, bh as EventAdmissionAvailabilityParams, bi as EventAdmissionAvailabilityResponse, bj as EventAdmissionAvailabilityType, bk as EventAdmissionPricePresentment, bl as EventGuestCancelParams, bm as EventGuestRegistration, bn as EventGuestRegistrationResponse, bo as EventRegistrationAnswerInput, bp as EventRegistrationAttendeeInput, bq as EventRegistrationPublic, br as EventRegistrationRegisterParams, bs as EventRegistrationRegisterResponse, bt as EventsCalendarItem, bu as EventsClientOptions, bv as EventsDateParam, bw as EventsExternalSource, bx as EventsLocation, by as EventsOccurrenceLocation, bz as EventsRangeEvent, bA as EventsRangeOccurrence, bB as EventsRangeParams, bC as EventsRangeResponse, bD as EventsTaxonomyItem, bE as FindPortOnePaymentParams, bF as FindPortOnePaymentResult, bG as GrantCustomerGroupMemberParams, bH as ListCustomerGroupMembersParams, bI as ListCustomerGroupMembersResponse, J as MembershipStatus, bJ as ModerationApi, K as Money, O as OpenCheckoutPaymentState, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, bK as PaymentSessionApi, bL as PaymentSessionApiOptions, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, bM as PortOnePaymentCurrentState, V as PortOnePaymentNextAction, bN as PortOnePaymentReconciliationApi, bO as PortOnePaymentSelector, W as PortOnePublicPaymentSession, bP 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, bQ as ReconcilePortOnePaymentParams, bR as ReconcilePortOnePaymentResult, af as ReconciliationRequired, ag as RemoveItemParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, bS as RetrieveCustomPaymentSessionParams, bT as RetrieveServerCheckoutParams, bU as RetrieveServerPaymentSessionParams, bV as RetrievedCustomPaymentSession, bW as RevokeCustomerGroupMemberParams, bX as RootServerClient, bY as ServerCartMergeParams, bZ as ServerCartMineParams, b_ as ServerCheckout, ao as ShippingLine, aq as SpentCheckoutPaymentState, b$ as TENANT_CONTEXT_PATH, c0 as TenantContextInput, c1 as TenantContextResponse, c2 as TenantCustomFieldType, c3 as TenantFeatureProgressEvidenceValue, c4 as TenantFeatureProgressFeature, c5 as TenantFeatureProgressGroup, c6 as TenantFeatureProgressInput, c7 as TenantFeatureProgressItem, c8 as TenantFeatureProgressItemState, c9 as TenantFeatureProgressResponse, ca as TenantFeatureProgressSeverity, cb as TenantFeatureProgressStatus, cc as TenantFieldConfigState, cd as TenantIntrospectionApi, ce as TenantIntrospectionApiOptions, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, aB as UpdateItemParams, aC as VariantInput } from './types-CEK8uTvU.js';
|
|
5
|
+
import './payload-types-Bk-duc5k.js';
|
|
6
6
|
export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
|
|
7
7
|
import './metadata.js';
|
|
8
|
-
import './const-
|
|
9
|
-
import './types-
|
|
8
|
+
import './const-BKUqg96Q.js';
|
|
9
|
+
import './types-D4mjGFj4.js';
|
|
10
10
|
|
|
11
11
|
type PreviewDetailParams = {
|
|
12
12
|
collection: string;
|
|
@@ -36,6 +36,7 @@ declare class ServerClient {
|
|
|
36
36
|
subscribe: (params: SubscribeMembershipParams) => Promise<SubscribeMembershipResponse>;
|
|
37
37
|
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
38
38
|
};
|
|
39
|
+
customerGroups: CustomerGroupApi;
|
|
39
40
|
private _events?;
|
|
40
41
|
community: CommunityClient & {
|
|
41
42
|
moderation: {
|
|
@@ -65,4 +66,4 @@ declare class ServerClient {
|
|
|
65
66
|
*/
|
|
66
67
|
declare function createServerClient(options: ClientServerConfig): RootServerClientWithEvents;
|
|
67
68
|
|
|
68
|
-
export { CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, EventsClient, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
|
|
69
|
+
export { CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, CustomerGroupApi, EventsClient, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
|