@01.software/sdk 0.43.0 → 0.45.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 +375 -2
- package/MIGRATION.md +89 -10
- package/README.md +451 -109
- 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 +2680 -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 +2680 -345
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-U70KizLf.d.cts → collection-client-BSo7VXQE.d.cts} +8 -5
- package/dist/{collection-client-gWsA7BVP.d.ts → collection-client-Ckfusuee.d.ts} +8 -5
- package/dist/{const-_WWHU-gX.d.ts → const-BAG0MH0u.d.cts} +13 -10
- package/dist/{const-BBynifk0.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-DPi5NWU8.d.ts → index-BNICJxBL.d.ts} +4 -4
- package/dist/{index-Dg4Y6Aq7.d.cts → index-YGrZrxNn.d.cts} +4 -4
- package/dist/index.cjs +2741 -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 +2741 -368
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-DLxkB7Mv.d.cts → payload-types-CJZuXcgF.d.cts} +6873 -4208
- package/dist/{payload-types-DLxkB7Mv.d.ts → payload-types-CJZuXcgF.d.ts} +6873 -4208
- package/dist/query.cjs +550 -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 +550 -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 +2252 -444
- 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 +2252 -444
- 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-B9lGhZlB.d.ts → types-BlOvjoTX.d.ts} +1095 -504
- package/dist/{types-Bpx5sYKo.d.cts → types-C4WuJfw7.d.cts} +1095 -504
- package/dist/types-D5p7-m1l.d.cts +47 -0
- 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 +12 -11
- package/dist/types-B1ngKbWI.d.cts +0 -33
- package/dist/types-BiKNBwRA.d.ts +0 -33
package/dist/client.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as ReadOnlyCollectionClient } from './collection-client-
|
|
2
|
-
import { C as CommerceClient, a as CommunityClient, b as ContentClient, E as EventsClient, c as CustomerNamespace, d as CustomerMembershipView, e as
|
|
3
|
-
export { A as AddItemParams,
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { R as ReadOnlyCollectionClient } from './collection-client-BSo7VXQE.cjs';
|
|
2
|
+
import { C as CommerceClient, a as CommunityClient, b as ContentClient, E as EventsClient, c as CustomerNamespace, M as MarketDiscovery, d as CustomerMembershipView, e as CancelMembershipParams, f as CancelMembershipResponse, g as ClientState, h as ClientConfig } from './types-C4WuJfw7.cjs';
|
|
3
|
+
export { A as AddItemParams, i as ApiQueryOptions, j as CancelBrowserPaymentSessionParams, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, u as ClientMetadata, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, B as CreatePaymentSessionParams, D as CustomerSnapshot, F as DebugConfig, G as DeepPartial, H as ExtractArrayType, I as MembershipStatus, J as Money, O as OpenCheckoutPaymentState, P as PayloadFindResponse, K as PayloadMutationResponse, L as PaymentFailureReason, N as PaymentNextAction, Q as PaymentProviderStatus, R as PaymentReconciliationReason, 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, ad as RetrieveBrowserPaymentSessionParams, ae as RetrieveCartParams, af as RetrieveCheckoutParams, ag as RetryConfig, ah as RootClient, ah as RootClientType, ai as RootCollectionClient, aj as RootReadOnlyQueryBuilder, ak as ShippingLine, al as Sort, am as SpentCheckoutPaymentState, an as StorefrontContentListOptions, ao as StorefrontContentReference, ap as StorefrontGalleryItem, aq as StorefrontGalleryItemsListOptions, ar as StorefrontGalleryItemsSort, as as StorefrontLink, at as StorefrontLinksListOptions, au as StorefrontLinksSort, av as UpdateCartAttributesParams, aw as UpdateDiscountCodesParams, ax as UpdateItemParams, ay as VariantInput, az as Where } from './types-C4WuJfw7.cjs';
|
|
4
|
+
export { C as Collection, P as PublicCollection } from './const-BAG0MH0u.cjs';
|
|
5
|
+
import './payload-types-CJZuXcgF.cjs';
|
|
6
6
|
import './metadata.cjs';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-D5p7-m1l.cjs';
|
|
8
8
|
|
|
9
9
|
declare class Client {
|
|
10
10
|
commerce: CommerceClient;
|
|
@@ -13,14 +13,17 @@ declare class Client {
|
|
|
13
13
|
events: EventsClient;
|
|
14
14
|
customer: CustomerNamespace;
|
|
15
15
|
collections: ReadOnlyCollectionClient;
|
|
16
|
+
markets: MarketDiscovery;
|
|
16
17
|
memberships: {
|
|
17
18
|
me: () => Promise<CustomerMembershipView | null>;
|
|
19
|
+
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
18
20
|
};
|
|
19
21
|
lastRequestId: string | null;
|
|
20
22
|
protected state: ClientState;
|
|
21
23
|
protected config: ClientConfig;
|
|
22
24
|
constructor(options: ClientConfig);
|
|
23
25
|
getState(): ClientState;
|
|
26
|
+
withMarket(market: string): Client;
|
|
24
27
|
getConfig(): ClientConfig;
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
@@ -30,4 +33,4 @@ declare class Client {
|
|
|
30
33
|
*/
|
|
31
34
|
declare function createClient(options: ClientConfig): Client;
|
|
32
35
|
|
|
33
|
-
export { Client, ClientConfig, ClientState, Client as ClientType, ContentClient, createClient };
|
|
36
|
+
export { CancelMembershipParams, CancelMembershipResponse, Client, ClientConfig, ClientState, Client as ClientType, ContentClient, CustomerMembershipView, createClient };
|
package/dist/client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as ReadOnlyCollectionClient } from './collection-client-
|
|
2
|
-
import { C as CommerceClient, a as CommunityClient, b as ContentClient, E as EventsClient, c as CustomerNamespace, d as CustomerMembershipView, e as
|
|
3
|
-
export { A as AddItemParams,
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { R as ReadOnlyCollectionClient } from './collection-client-Ckfusuee.js';
|
|
2
|
+
import { C as CommerceClient, a as CommunityClient, b as ContentClient, E as EventsClient, c as CustomerNamespace, M as MarketDiscovery, d as CustomerMembershipView, e as CancelMembershipParams, f as CancelMembershipResponse, g as ClientState, h as ClientConfig } from './types-BlOvjoTX.js';
|
|
3
|
+
export { A as AddItemParams, i as ApiQueryOptions, j as CancelBrowserPaymentSessionParams, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, u as ClientMetadata, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, B as CreatePaymentSessionParams, D as CustomerSnapshot, F as DebugConfig, G as DeepPartial, H as ExtractArrayType, I as MembershipStatus, J as Money, O as OpenCheckoutPaymentState, P as PayloadFindResponse, K as PayloadMutationResponse, L as PaymentFailureReason, N as PaymentNextAction, Q as PaymentProviderStatus, R as PaymentReconciliationReason, 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, ad as RetrieveBrowserPaymentSessionParams, ae as RetrieveCartParams, af as RetrieveCheckoutParams, ag as RetryConfig, ah as RootClient, ah as RootClientType, ai as RootCollectionClient, aj as RootReadOnlyQueryBuilder, ak as ShippingLine, al as Sort, am as SpentCheckoutPaymentState, an as StorefrontContentListOptions, ao as StorefrontContentReference, ap as StorefrontGalleryItem, aq as StorefrontGalleryItemsListOptions, ar as StorefrontGalleryItemsSort, as as StorefrontLink, at as StorefrontLinksListOptions, au as StorefrontLinksSort, av as UpdateCartAttributesParams, aw as UpdateDiscountCodesParams, ax as UpdateItemParams, ay as VariantInput, az as Where } from './types-BlOvjoTX.js';
|
|
4
|
+
export { C as Collection, P as PublicCollection } from './const-CaPq2AE4.js';
|
|
5
|
+
import './payload-types-CJZuXcgF.js';
|
|
6
6
|
import './metadata.js';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-BC6rVmJa.js';
|
|
8
8
|
|
|
9
9
|
declare class Client {
|
|
10
10
|
commerce: CommerceClient;
|
|
@@ -13,14 +13,17 @@ declare class Client {
|
|
|
13
13
|
events: EventsClient;
|
|
14
14
|
customer: CustomerNamespace;
|
|
15
15
|
collections: ReadOnlyCollectionClient;
|
|
16
|
+
markets: MarketDiscovery;
|
|
16
17
|
memberships: {
|
|
17
18
|
me: () => Promise<CustomerMembershipView | null>;
|
|
19
|
+
cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
|
|
18
20
|
};
|
|
19
21
|
lastRequestId: string | null;
|
|
20
22
|
protected state: ClientState;
|
|
21
23
|
protected config: ClientConfig;
|
|
22
24
|
constructor(options: ClientConfig);
|
|
23
25
|
getState(): ClientState;
|
|
26
|
+
withMarket(market: string): Client;
|
|
24
27
|
getConfig(): ClientConfig;
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
@@ -30,4 +33,4 @@ declare class Client {
|
|
|
30
33
|
*/
|
|
31
34
|
declare function createClient(options: ClientConfig): Client;
|
|
32
35
|
|
|
33
|
-
export { Client, ClientConfig, ClientState, Client as ClientType, ContentClient, createClient };
|
|
36
|
+
export { CancelMembershipParams, CancelMembershipResponse, Client, ClientConfig, ClientState, Client as ClientType, ContentClient, CustomerMembershipView, createClient };
|