@01.software/sdk 0.45.0 → 0.46.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 +14 -0
- package/MIGRATION.md +19 -0
- package/README.md +49 -4
- package/dist/client.cjs +13 -0
- 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 +13 -0
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-Ckfusuee.d.ts → collection-client-BEGXnfQe.d.ts} +4 -4
- package/dist/{collection-client-BSo7VXQE.d.cts → collection-client-L2rEgBaR.d.cts} +4 -4
- package/dist/{const-CaPq2AE4.d.ts → const-GYVwlXLr.d.ts} +1 -1
- package/dist/{const-BAG0MH0u.d.cts → const-y0eipvnQ.d.cts} +1 -1
- package/dist/{index-BNICJxBL.d.ts → index-Bei4WlVw.d.ts} +3 -3
- package/dist/{index-YGrZrxNn.d.cts → index-BfYL6Qb1.d.cts} +3 -3
- package/dist/index.cjs +13 -0
- 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 +13 -0
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-CJZuXcgF.d.cts → payload-types-3WNyC0gk.d.cts} +5 -0
- package/dist/{payload-types-CJZuXcgF.d.ts → payload-types-3WNyC0gk.d.ts} +5 -0
- package/dist/query.cjs +8 -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 +8 -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 +99 -1
- 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 +99 -1
- package/dist/server.js.map +1 -1
- package/dist/{types-D5p7-m1l.d.cts → types-CAicTn-o.d.cts} +2 -2
- package/dist/{types-C4WuJfw7.d.cts → types-CDJ2M-MJ.d.cts} +43 -4
- package/dist/{types-BC6rVmJa.d.ts → types-DpSyNTxy.d.ts} +2 -2
- package/dist/{types-BlOvjoTX.d.ts → types-mIROvhhP.d.ts} +43 -4
- 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 +4 -4
- package/dist/webhook.d.ts +4 -4
- package/package.json +3 -3
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, M as MarketDiscovery, d as CustomerMembershipView, e as CancelMembershipParams, f as CancelMembershipResponse, g as ClientState, h as ClientConfig } from './types-
|
|
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-
|
|
4
|
-
export { C as Collection, P as PublicCollection } from './const-
|
|
5
|
-
import './payload-types-
|
|
1
|
+
import { R as ReadOnlyCollectionClient } from './collection-client-L2rEgBaR.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-CDJ2M-MJ.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-CDJ2M-MJ.cjs';
|
|
4
|
+
export { C as Collection, P as PublicCollection } from './const-y0eipvnQ.cjs';
|
|
5
|
+
import './payload-types-3WNyC0gk.cjs';
|
|
6
6
|
import './metadata.cjs';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-CAicTn-o.cjs';
|
|
8
8
|
|
|
9
9
|
declare class Client {
|
|
10
10
|
commerce: CommerceClient;
|
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, M as MarketDiscovery, d as CustomerMembershipView, e as CancelMembershipParams, f as CancelMembershipResponse, g as ClientState, h as ClientConfig } from './types-
|
|
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-
|
|
4
|
-
export { C as Collection, P as PublicCollection } from './const-
|
|
5
|
-
import './payload-types-
|
|
1
|
+
import { R as ReadOnlyCollectionClient } from './collection-client-BEGXnfQe.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-mIROvhhP.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-mIROvhhP.js';
|
|
4
|
+
export { C as Collection, P as PublicCollection } from './const-GYVwlXLr.js';
|
|
5
|
+
import './payload-types-3WNyC0gk.js';
|
|
6
6
|
import './metadata.js';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-DpSyNTxy.js';
|
|
8
8
|
|
|
9
9
|
declare class Client {
|
|
10
10
|
commerce: CommerceClient;
|
package/dist/client.js
CHANGED
|
@@ -375,6 +375,11 @@ function redactSensitiveHeaders(headers) {
|
|
|
375
375
|
redacted["x-preview-token"]
|
|
376
376
|
);
|
|
377
377
|
}
|
|
378
|
+
if (redacted["x-custom-payment-signature"]) {
|
|
379
|
+
redacted["x-custom-payment-signature"] = redactSensitiveHeader(
|
|
380
|
+
redacted["x-custom-payment-signature"]
|
|
381
|
+
);
|
|
382
|
+
}
|
|
378
383
|
return redacted;
|
|
379
384
|
}
|
|
380
385
|
function getErrorSuggestion(status) {
|
|
@@ -1368,6 +1373,14 @@ var COMMERCE_ENDPOINTS = {
|
|
|
1368
1373
|
create: endpoint("POST", "/api/payment-sessions/create"),
|
|
1369
1374
|
retrieve: endpoint("POST", "/api/payment-sessions/retrieve"),
|
|
1370
1375
|
cancel: endpoint("POST", "/api/payment-sessions/cancel"),
|
|
1376
|
+
custom: {
|
|
1377
|
+
create: sharedEndpoint(
|
|
1378
|
+
COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.create
|
|
1379
|
+
),
|
|
1380
|
+
confirm: sharedEndpoint(
|
|
1381
|
+
COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.confirm
|
|
1382
|
+
)
|
|
1383
|
+
},
|
|
1371
1384
|
server: {
|
|
1372
1385
|
create: endpoint("POST", "/api/payment-sessions/server/create"),
|
|
1373
1386
|
retrieve: endpoint("POST", "/api/payment-sessions/server/retrieve"),
|