@01.software/sdk 0.44.0 → 0.46.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 +366 -2
- package/MIGRATION.md +108 -10
- package/README.md +486 -98
- package/dist/{server-nXOezi4b.d.cts → catalog-mappers-sIshKNb3.d.cts} +14 -3
- package/dist/{server-nXOezi4b.d.ts → catalog-mappers-sIshKNb3.d.ts} +14 -3
- package/dist/client.cjs +2693 -345
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +10 -7
- package/dist/client.d.ts +10 -7
- package/dist/client.js +2693 -345
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-DWooaiTr.d.ts → collection-client-D6kKrYdq.d.ts} +8 -5
- package/dist/{collection-client-Dyl-CDcj.d.cts → collection-client-DolMjCoC.d.cts} +8 -5
- package/dist/{const-pGDnsy0o.d.ts → const-BAG0MH0u.d.cts} +13 -10
- package/dist/{const-1vleZ6ov.d.cts → const-CaPq2AE4.d.ts} +13 -10
- package/dist/errors.cjs +74 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +38 -1
- package/dist/errors.d.ts +38 -1
- package/dist/errors.js +74 -1
- package/dist/errors.js.map +1 -1
- package/dist/{index-DUNySyxV.d.ts → index-BNICJxBL.d.ts} +4 -4
- package/dist/{index-a6g7vqAD.d.cts → index-YGrZrxNn.d.cts} +4 -4
- package/dist/index.cjs +2754 -368
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -19
- package/dist/index.d.ts +18 -19
- package/dist/index.js +2754 -368
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-CDsuOEfM.d.cts → payload-types-CJZuXcgF.d.cts} +6671 -4001
- package/dist/{payload-types-CDsuOEfM.d.ts → payload-types-CJZuXcgF.d.ts} +6671 -4001
- package/dist/query.cjs +558 -101
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +43 -45
- package/dist/query.d.ts +43 -45
- package/dist/query.js +558 -101
- package/dist/query.js.map +1 -1
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/realtime.js.map +1 -1
- package/dist/server.cjs +2343 -437
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +11 -10
- package/dist/server.d.ts +11 -10
- package/dist/server.js +2343 -437
- package/dist/server.js.map +1 -1
- package/dist/storefront-cache.cjs +65 -1
- package/dist/storefront-cache.cjs.map +1 -1
- package/dist/storefront-cache.js +65 -1
- package/dist/storefront-cache.js.map +1 -1
- package/dist/types-BC6rVmJa.d.ts +47 -0
- package/dist/{types-CDND3hzq.d.cts → types-C60vHIkY.d.ts} +1134 -509
- package/dist/types-D5p7-m1l.d.cts +47 -0
- package/dist/{types-Dt9FJisi.d.ts → types-xlqBeW2N.d.cts} +1134 -509
- package/dist/ui/canvas/server.cjs +244 -2
- package/dist/ui/canvas/server.cjs.map +1 -1
- package/dist/ui/canvas/server.d.cts +27 -1
- package/dist/ui/canvas/server.d.ts +27 -1
- package/dist/ui/canvas/server.js +244 -2
- package/dist/ui/canvas/server.js.map +1 -1
- package/dist/ui/canvas.cjs +419 -103
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.d.cts +19 -7
- package/dist/ui/canvas.d.ts +19 -7
- package/dist/ui/canvas.js +419 -103
- package/dist/ui/canvas.js.map +1 -1
- 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 +2 -1
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +4 -4
- package/dist/webhook.d.ts +4 -4
- package/dist/webhook.js +2 -1
- package/dist/webhook.js.map +1 -1
- package/package.json +10 -9
- package/dist/types-SoXsbKhj.d.cts +0 -33
- package/dist/types-oiae_LMm.d.ts +0 -33
package/dist/server.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as ServerCollectionClient } from './collection-client-
|
|
2
|
-
export { C as CollectionClient } from './collection-client-
|
|
3
|
-
import {
|
|
4
|
-
export { A as AddItemParams,
|
|
5
|
-
import './payload-types-
|
|
1
|
+
import { S as ServerCollectionClient } from './collection-client-DolMjCoC.cjs';
|
|
2
|
+
export { C as CollectionClient } from './collection-client-DolMjCoC.cjs';
|
|
3
|
+
import { aA as RawBaseApi, aB as ServerApiOptions, aC as ServerCommerceClient, aD as TenantIntrospectionClient, aE as SubscribeMembershipParams, aF as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, a as CommunityClient, aG as BanCustomerParams, aH as CommunityBan, aI as UnbanCustomerParams, M as MarketDiscovery, g as ClientState, aJ as ClientServerConfig, E as EventsClient, aK as RootServerClientWithEvents } from './types-xlqBeW2N.cjs';
|
|
4
|
+
export { A as AddItemParams, aL as CancelServerPaymentSessionParams, aM as CartApi, aN as CartApiOptions, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, aO as CheckoutApi, aP as CheckoutApiOptions, aQ as CheckoutListItem, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, aR as CheckoutQueryParams, aS as CheckoutQueryResult, s as CheckoutShippingAddress, aT as CheckoutStatus, t as ClearCartParams, aU as CollectionFieldSchema, aV as CollectionSchemaResponse, aW as ConfirmCustomPaymentSessionOptions, aX as ConfirmCustomPaymentSessionParams, aY as ConfirmCustomPaymentSessionResponse, aZ as ConfirmTossPaymentSessionParams, w as CreateCartParams, x as CreateCartResult, a_ as CreateCustomPaymentSessionParams, B as CreatePaymentSessionParams, a$ as CreateServerCheckoutParams, b0 as CreateServerCheckoutResult, b1 as CustomPaymentSession, b2 as CustomPaymentSessionProof, d as CustomerMembershipView, D as CustomerSnapshot, b3 as EventAdmissionAvailabilityParams, b4 as EventAdmissionAvailabilityResponse, b5 as EventAdmissionAvailabilityType, b6 as EventAdmissionPricePresentment, b7 as EventGuestCancelParams, b8 as EventGuestRegistration, b9 as EventGuestRegistrationResponse, ba as EventRegistrationAnswerInput, bb as EventRegistrationAttendeeInput, bc as EventRegistrationPublic, bd as EventRegistrationRegisterParams, be as EventRegistrationRegisterResponse, bf as EventsCalendarItem, bg as EventsClientOptions, bh as EventsDateParam, bi as EventsExternalSource, bj as EventsLocation, bk as EventsOccurrenceLocation, bl as EventsRangeEvent, bm as EventsRangeOccurrence, bn as EventsRangeParams, bo as EventsRangeResponse, bp as EventsTaxonomyItem, I as MembershipStatus, bq as ModerationApi, J as Money, O as OpenCheckoutPaymentState, L as PaymentFailureReason, N as PaymentNextAction, Q as PaymentProviderStatus, R as PaymentReconciliationReason, br as PaymentSessionApi, bs as PaymentSessionApiOptions, S as PaymentSessionRole, T as ProductUpsertInput, U as ProductUpsertParams, V as ProductUpsertResponse, W as ProductUpsertVariantInput, X as PublicAttribute, Y as PublicCaptureEvidence, Z as PublicCart, _ as PublicCartItem, $ as PublicCartItemAdmission, a0 as PublicCartMarket, a1 as PublicCartReference, a2 as PublicCheckout, a3 as PublicCheckoutItem, a4 as PublicMediaAsset, a5 as PublicMediaSize, a6 as PublicOrder, a7 as PublicOrderAmounts, a8 as PublicOrderItem, a9 as PublicOrderReference, aa as PublicPaymentSession, ab as ReconciliationRequired, ac as RemoveItemParams, ae as RetrieveCartParams, af as RetrieveCheckoutParams, bt as RetrieveServerCheckoutParams, bu as RetrieveServerPaymentSessionParams, bv as RootServerClient, bw as ServerCartMergeParams, bx as ServerCartMineParams, by as ServerCheckout, ak as ShippingLine, am as SpentCheckoutPaymentState, bz as TenantContextInput, bA as TenantContextResponse, bB as TenantFeatureProgressEvidenceValue, bC as TenantFeatureProgressFeature, bD as TenantFeatureProgressGroup, bE as TenantFeatureProgressInput, bF as TenantFeatureProgressItem, bG as TenantFeatureProgressItemState, bH as TenantFeatureProgressResponse, bI as TenantFeatureProgressSeverity, bJ as TenantFeatureProgressStatus, bK as TenantFieldConfigState, bL as TenantIntrospectionApi, bM as TenantIntrospectionApiOptions, av as UpdateCartAttributesParams, aw as UpdateDiscountCodesParams, ax as UpdateItemParams, ay as VariantInput } from './types-xlqBeW2N.cjs';
|
|
5
|
+
import './payload-types-CJZuXcgF.cjs';
|
|
6
6
|
import './metadata.cjs';
|
|
7
|
-
import './const-
|
|
8
|
-
import './types-
|
|
7
|
+
import './const-BAG0MH0u.cjs';
|
|
8
|
+
import './types-D5p7-m1l.cjs';
|
|
9
9
|
|
|
10
10
|
type PreviewDetailParams = {
|
|
11
11
|
collection: string;
|
|
@@ -23,7 +23,7 @@ type PreviewDetailOptions = {
|
|
|
23
23
|
* `publishableKey`) plus the short-lived `X-Preview-Token` header issued
|
|
24
24
|
* by the Console preview start endpoint.
|
|
25
25
|
*/
|
|
26
|
-
declare class ServerPreviewClient extends
|
|
26
|
+
declare class ServerPreviewClient extends RawBaseApi {
|
|
27
27
|
constructor(options: ServerApiOptions);
|
|
28
28
|
detail<T = unknown>(params: PreviewDetailParams, options: PreviewDetailOptions): Promise<T | null>;
|
|
29
29
|
}
|
|
@@ -34,7 +34,6 @@ declare class ServerClient {
|
|
|
34
34
|
memberships: {
|
|
35
35
|
subscribe: (params: SubscribeMembershipParams) => Promise<SubscribeMembershipResponse>;
|
|
36
36
|
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
37
|
-
me: () => Promise<CustomerMembershipView | null>;
|
|
38
37
|
};
|
|
39
38
|
private _events?;
|
|
40
39
|
community: CommunityClient & {
|
|
@@ -49,12 +48,14 @@ declare class ServerClient {
|
|
|
49
48
|
detail: <T = unknown>(params: PreviewDetailParams, options: PreviewDetailOptions) => Promise<T | null>;
|
|
50
49
|
};
|
|
51
50
|
collections: ServerCollectionClient;
|
|
51
|
+
markets: MarketDiscovery;
|
|
52
52
|
lastRequestId: string | null;
|
|
53
53
|
protected state: ClientState;
|
|
54
54
|
protected config: ClientServerConfig;
|
|
55
55
|
constructor(options: ClientServerConfig);
|
|
56
56
|
get events(): EventsClient;
|
|
57
57
|
getState(): ClientState;
|
|
58
|
+
withMarket(market: string): ServerClient;
|
|
58
59
|
getConfig(): Omit<ClientServerConfig, 'secretKey'>;
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
@@ -63,4 +64,4 @@ declare class ServerClient {
|
|
|
63
64
|
*/
|
|
64
65
|
declare function createServerClient(options: ClientServerConfig): RootServerClientWithEvents;
|
|
65
66
|
|
|
66
|
-
export { ClientServerConfig, CommunityClient, EventsClient, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, TenantIntrospectionClient, createServerClient };
|
|
67
|
+
export { CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, EventsClient, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as ServerCollectionClient } from './collection-client-
|
|
2
|
-
export { C as CollectionClient } from './collection-client-
|
|
3
|
-
import {
|
|
4
|
-
export { A as AddItemParams,
|
|
5
|
-
import './payload-types-
|
|
1
|
+
import { S as ServerCollectionClient } from './collection-client-D6kKrYdq.js';
|
|
2
|
+
export { C as CollectionClient } from './collection-client-D6kKrYdq.js';
|
|
3
|
+
import { aA as RawBaseApi, aB as ServerApiOptions, aC as ServerCommerceClient, aD as TenantIntrospectionClient, aE as SubscribeMembershipParams, aF as SubscribeMembershipResponse, e as CancelMembershipParams, f as CancelMembershipResponse, a as CommunityClient, aG as BanCustomerParams, aH as CommunityBan, aI as UnbanCustomerParams, M as MarketDiscovery, g as ClientState, aJ as ClientServerConfig, E as EventsClient, aK as RootServerClientWithEvents } from './types-C60vHIkY.js';
|
|
4
|
+
export { A as AddItemParams, aL as CancelServerPaymentSessionParams, aM as CartApi, aN as CartApiOptions, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, aO as CheckoutApi, aP as CheckoutApiOptions, aQ as CheckoutListItem, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, aR as CheckoutQueryParams, aS as CheckoutQueryResult, s as CheckoutShippingAddress, aT as CheckoutStatus, t as ClearCartParams, aU as CollectionFieldSchema, aV as CollectionSchemaResponse, aW as ConfirmCustomPaymentSessionOptions, aX as ConfirmCustomPaymentSessionParams, aY as ConfirmCustomPaymentSessionResponse, aZ as ConfirmTossPaymentSessionParams, w as CreateCartParams, x as CreateCartResult, a_ as CreateCustomPaymentSessionParams, B as CreatePaymentSessionParams, a$ as CreateServerCheckoutParams, b0 as CreateServerCheckoutResult, b1 as CustomPaymentSession, b2 as CustomPaymentSessionProof, d as CustomerMembershipView, D as CustomerSnapshot, b3 as EventAdmissionAvailabilityParams, b4 as EventAdmissionAvailabilityResponse, b5 as EventAdmissionAvailabilityType, b6 as EventAdmissionPricePresentment, b7 as EventGuestCancelParams, b8 as EventGuestRegistration, b9 as EventGuestRegistrationResponse, ba as EventRegistrationAnswerInput, bb as EventRegistrationAttendeeInput, bc as EventRegistrationPublic, bd as EventRegistrationRegisterParams, be as EventRegistrationRegisterResponse, bf as EventsCalendarItem, bg as EventsClientOptions, bh as EventsDateParam, bi as EventsExternalSource, bj as EventsLocation, bk as EventsOccurrenceLocation, bl as EventsRangeEvent, bm as EventsRangeOccurrence, bn as EventsRangeParams, bo as EventsRangeResponse, bp as EventsTaxonomyItem, I as MembershipStatus, bq as ModerationApi, J as Money, O as OpenCheckoutPaymentState, L as PaymentFailureReason, N as PaymentNextAction, Q as PaymentProviderStatus, R as PaymentReconciliationReason, br as PaymentSessionApi, bs as PaymentSessionApiOptions, S as PaymentSessionRole, T as ProductUpsertInput, U as ProductUpsertParams, V as ProductUpsertResponse, W as ProductUpsertVariantInput, X as PublicAttribute, Y as PublicCaptureEvidence, Z as PublicCart, _ as PublicCartItem, $ as PublicCartItemAdmission, a0 as PublicCartMarket, a1 as PublicCartReference, a2 as PublicCheckout, a3 as PublicCheckoutItem, a4 as PublicMediaAsset, a5 as PublicMediaSize, a6 as PublicOrder, a7 as PublicOrderAmounts, a8 as PublicOrderItem, a9 as PublicOrderReference, aa as PublicPaymentSession, ab as ReconciliationRequired, ac as RemoveItemParams, ae as RetrieveCartParams, af as RetrieveCheckoutParams, bt as RetrieveServerCheckoutParams, bu as RetrieveServerPaymentSessionParams, bv as RootServerClient, bw as ServerCartMergeParams, bx as ServerCartMineParams, by as ServerCheckout, ak as ShippingLine, am as SpentCheckoutPaymentState, bz as TenantContextInput, bA as TenantContextResponse, bB as TenantFeatureProgressEvidenceValue, bC as TenantFeatureProgressFeature, bD as TenantFeatureProgressGroup, bE as TenantFeatureProgressInput, bF as TenantFeatureProgressItem, bG as TenantFeatureProgressItemState, bH as TenantFeatureProgressResponse, bI as TenantFeatureProgressSeverity, bJ as TenantFeatureProgressStatus, bK as TenantFieldConfigState, bL as TenantIntrospectionApi, bM as TenantIntrospectionApiOptions, av as UpdateCartAttributesParams, aw as UpdateDiscountCodesParams, ax as UpdateItemParams, ay as VariantInput } from './types-C60vHIkY.js';
|
|
5
|
+
import './payload-types-CJZuXcgF.js';
|
|
6
6
|
import './metadata.js';
|
|
7
|
-
import './const-
|
|
8
|
-
import './types-
|
|
7
|
+
import './const-CaPq2AE4.js';
|
|
8
|
+
import './types-BC6rVmJa.js';
|
|
9
9
|
|
|
10
10
|
type PreviewDetailParams = {
|
|
11
11
|
collection: string;
|
|
@@ -23,7 +23,7 @@ type PreviewDetailOptions = {
|
|
|
23
23
|
* `publishableKey`) plus the short-lived `X-Preview-Token` header issued
|
|
24
24
|
* by the Console preview start endpoint.
|
|
25
25
|
*/
|
|
26
|
-
declare class ServerPreviewClient extends
|
|
26
|
+
declare class ServerPreviewClient extends RawBaseApi {
|
|
27
27
|
constructor(options: ServerApiOptions);
|
|
28
28
|
detail<T = unknown>(params: PreviewDetailParams, options: PreviewDetailOptions): Promise<T | null>;
|
|
29
29
|
}
|
|
@@ -34,7 +34,6 @@ declare class ServerClient {
|
|
|
34
34
|
memberships: {
|
|
35
35
|
subscribe: (params: SubscribeMembershipParams) => Promise<SubscribeMembershipResponse>;
|
|
36
36
|
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
37
|
-
me: () => Promise<CustomerMembershipView | null>;
|
|
38
37
|
};
|
|
39
38
|
private _events?;
|
|
40
39
|
community: CommunityClient & {
|
|
@@ -49,12 +48,14 @@ declare class ServerClient {
|
|
|
49
48
|
detail: <T = unknown>(params: PreviewDetailParams, options: PreviewDetailOptions) => Promise<T | null>;
|
|
50
49
|
};
|
|
51
50
|
collections: ServerCollectionClient;
|
|
51
|
+
markets: MarketDiscovery;
|
|
52
52
|
lastRequestId: string | null;
|
|
53
53
|
protected state: ClientState;
|
|
54
54
|
protected config: ClientServerConfig;
|
|
55
55
|
constructor(options: ClientServerConfig);
|
|
56
56
|
get events(): EventsClient;
|
|
57
57
|
getState(): ClientState;
|
|
58
|
+
withMarket(market: string): ServerClient;
|
|
58
59
|
getConfig(): Omit<ClientServerConfig, 'secretKey'>;
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
@@ -63,4 +64,4 @@ declare class ServerClient {
|
|
|
63
64
|
*/
|
|
64
65
|
declare function createServerClient(options: ClientServerConfig): RootServerClientWithEvents;
|
|
65
66
|
|
|
66
|
-
export { ClientServerConfig, CommunityClient, EventsClient, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, TenantIntrospectionClient, createServerClient };
|
|
67
|
+
export { CancelMembershipParams, CancelMembershipResponse, ClientServerConfig, CommunityClient, EventsClient, type PreviewDetailOptions, type PreviewDetailParams, RootServerClientWithEvents, ServerClient, ServerCollectionClient, ServerCommerceClient, ServerPreviewClient, SubscribeMembershipParams, SubscribeMembershipResponse, TenantIntrospectionClient, createServerClient };
|