@01.software/sdk 0.72.1 → 0.73.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 +34 -0
- package/README.md +40 -0
- package/dist/client.cjs +9 -2
- 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 +9 -2
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-B3CnqMDQ.d.cts → collection-client-BH4dIZ6c.d.cts} +4 -4
- package/dist/{collection-client-uOgS_1bC.d.ts → collection-client-lLAl3xCZ.d.ts} +4 -4
- package/dist/{const-_ZfJjRQG.d.cts → const-BS2EaIp4.d.cts} +1 -1
- package/dist/{const-BJBK7jBl.d.ts → const-CCvoknRY.d.ts} +1 -1
- package/dist/{index-CI_LFWiG.d.cts → index-CHdrzJ8-.d.cts} +3 -3
- package/dist/{index-CBaP4q8r.d.ts → index-DVqNpmsc.d.ts} +3 -3
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -11
- package/dist/index.d.ts +14 -11
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-BRg8Yary.d.cts → payload-types-PXkmefhZ.d.cts} +77 -20
- package/dist/{payload-types-BRg8Yary.d.ts → payload-types-PXkmefhZ.d.ts} +77 -20
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +39 -10
- 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 +39 -10
- package/dist/server.js.map +1 -1
- package/dist/{types-DLjSqL0P.d.ts → types-CQRsG6sA.d.ts} +2 -2
- package/dist/{types-CnkJQUez.d.cts → types-Chwgg4CQ.d.cts} +21 -4
- package/dist/{types-FyklqLAk.d.cts → types-CyMz0Kzc.d.cts} +2 -2
- package/dist/{types-Cmnxxvuv.d.ts → types-lbzbJSZh.d.ts} +21 -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 +5 -5
- package/dist/webhook.d.ts +5 -5
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AddItemParams,
|
|
3
|
-
import { R as ReadOnlyCollectionClient } from './collection-client-
|
|
1
|
+
import { d2 as CustomerScopedApi, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, d3 as CustomerCreditsApi, d4 as CommerceClient, n as CommunityClient, d5 as ContentClient, aP as EventsClient, d6 as CustomerNamespace, M as MarketDiscovery, aw as CustomerMembershipView, C as CancelMembershipParams, e as CancelMembershipResponse, q as ClientState, d7 as ClientConfig } from './types-Chwgg4CQ.cjs';
|
|
2
|
+
export { A as AddItemParams, d8 as ApiQueryOptions, d9 as CancelBrowserPaymentSessionParams, da as CartMergeParams, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, J as CheckoutAbandonedReason, K as CheckoutAmounts, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, Y as CheckoutShippingAddress, $ as ClearCartParams, db as ClientMetadata, dc as ContentClientOptions, a9 as CreateCartParams, aa as CreateCartResult, dd as CreateCheckoutParams, de as CreateCheckoutResult, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, ax as CustomerSnapshot, df as DebugConfig, dg as DeepPartial, dh as ExtractArrayType, bq as MembershipStatus, bs as Money, bz as OpenCheckoutPaymentState, di as PayloadFindResponse, dj as PayloadMutationResponse, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bJ as PortOnePaymentNextAction, bM as PortOnePublicPaymentSession, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, ca as ReconciliationRequired, cd as RemoveItemParams, dk as RetrieveBrowserPaymentSessionParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, dl as RetryConfig, dm as RootClient, dm as RootClientType, dn as RootCollectionClient, dp as RootReadOnlyQueryBuilder, cv as ShippingLine, dq as Sort, cw as SpentCheckoutPaymentState, dr as StorefrontContentListOptions, ds as StorefrontContentReference, dt as StorefrontGalleryItem, du as StorefrontGalleryItemsListOptions, dv as StorefrontGalleryItemsSort, dw as StorefrontLink, dx as StorefrontLinksListOptions, dy as StorefrontLinksSort, cN as UpdateCartAttributesParams, cO as UpdateDiscountCodesParams, cP as UpdateItemParams, cQ as VariantInput, dz as Where } from './types-Chwgg4CQ.cjs';
|
|
3
|
+
import { R as ReadOnlyCollectionClient } from './collection-client-BH4dIZ6c.cjs';
|
|
4
4
|
export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
|
|
5
|
-
export { C as Collection, P as PublicCollection } from './const-
|
|
6
|
-
import './types-
|
|
7
|
-
import './payload-types-
|
|
5
|
+
export { C as Collection, P as PublicCollection } from './const-BS2EaIp4.cjs';
|
|
6
|
+
import './types-CyMz0Kzc.cjs';
|
|
7
|
+
import './payload-types-PXkmefhZ.cjs';
|
|
8
8
|
import './metadata.cjs';
|
|
9
9
|
|
|
10
10
|
declare class CustomerBenefitVouchersApi extends CustomerScopedApi {
|
package/dist/client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AddItemParams,
|
|
3
|
-
import { R as ReadOnlyCollectionClient } from './collection-client-
|
|
1
|
+
import { d2 as CustomerScopedApi, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, d3 as CustomerCreditsApi, d4 as CommerceClient, n as CommunityClient, d5 as ContentClient, aP as EventsClient, d6 as CustomerNamespace, M as MarketDiscovery, aw as CustomerMembershipView, C as CancelMembershipParams, e as CancelMembershipResponse, q as ClientState, d7 as ClientConfig } from './types-lbzbJSZh.js';
|
|
2
|
+
export { A as AddItemParams, d8 as ApiQueryOptions, d9 as CancelBrowserPaymentSessionParams, da as CartMergeParams, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, J as CheckoutAbandonedReason, K as CheckoutAmounts, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, Y as CheckoutShippingAddress, $ as ClearCartParams, db as ClientMetadata, dc as ContentClientOptions, a9 as CreateCartParams, aa as CreateCartResult, dd as CreateCheckoutParams, de as CreateCheckoutResult, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, ax as CustomerSnapshot, df as DebugConfig, dg as DeepPartial, dh as ExtractArrayType, bq as MembershipStatus, bs as Money, bz as OpenCheckoutPaymentState, di as PayloadFindResponse, dj as PayloadMutationResponse, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bJ as PortOnePaymentNextAction, bM as PortOnePublicPaymentSession, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, ca as ReconciliationRequired, cd as RemoveItemParams, dk as RetrieveBrowserPaymentSessionParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, dl as RetryConfig, dm as RootClient, dm as RootClientType, dn as RootCollectionClient, dp as RootReadOnlyQueryBuilder, cv as ShippingLine, dq as Sort, cw as SpentCheckoutPaymentState, dr as StorefrontContentListOptions, ds as StorefrontContentReference, dt as StorefrontGalleryItem, du as StorefrontGalleryItemsListOptions, dv as StorefrontGalleryItemsSort, dw as StorefrontLink, dx as StorefrontLinksListOptions, dy as StorefrontLinksSort, cN as UpdateCartAttributesParams, cO as UpdateDiscountCodesParams, cP as UpdateItemParams, cQ as VariantInput, dz as Where } from './types-lbzbJSZh.js';
|
|
3
|
+
import { R as ReadOnlyCollectionClient } from './collection-client-lLAl3xCZ.js';
|
|
4
4
|
export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
|
|
5
|
-
export { C as Collection, P as PublicCollection } from './const-
|
|
6
|
-
import './types-
|
|
7
|
-
import './payload-types-
|
|
5
|
+
export { C as Collection, P as PublicCollection } from './const-CCvoknRY.js';
|
|
6
|
+
import './types-CQRsG6sA.js';
|
|
7
|
+
import './payload-types-PXkmefhZ.js';
|
|
8
8
|
import './metadata.js';
|
|
9
9
|
|
|
10
10
|
declare class CustomerBenefitVouchersApi extends CustomerScopedApi {
|
package/dist/client.js
CHANGED
|
@@ -853,7 +853,7 @@ async function httpFetch(url, options) {
|
|
|
853
853
|
);
|
|
854
854
|
const usageError = attachRequestId(
|
|
855
855
|
createUsageLimitError(
|
|
856
|
-
`Monthly API usage limit exceeded (${current.toLocaleString()}/${limit.toLocaleString()})`,
|
|
856
|
+
`Monthly API usage limit exceeded (${current.toLocaleString("en-US")}/${limit.toLocaleString("en-US")})`,
|
|
857
857
|
{ limit, current, remaining },
|
|
858
858
|
{
|
|
859
859
|
url,
|
|
@@ -5570,6 +5570,11 @@ function getRelationID(value) {
|
|
|
5570
5570
|
}
|
|
5571
5571
|
return void 0;
|
|
5572
5572
|
}
|
|
5573
|
+
function compareOrdinal(left, right) {
|
|
5574
|
+
if (left < right) return -1;
|
|
5575
|
+
if (left > right) return 1;
|
|
5576
|
+
return 0;
|
|
5577
|
+
}
|
|
5573
5578
|
function extractEntityId(value) {
|
|
5574
5579
|
if (typeof value === "string") return value;
|
|
5575
5580
|
if (typeof value === "number") return String(value);
|
|
@@ -6182,7 +6187,7 @@ function compareVariantOrder(a, b) {
|
|
|
6182
6187
|
}
|
|
6183
6188
|
const aId = String(getRelationID(a.id) ?? "");
|
|
6184
6189
|
const bId = String(getRelationID(b.id) ?? "");
|
|
6185
|
-
return aId
|
|
6190
|
+
return compareOrdinal(aId, bId);
|
|
6186
6191
|
}
|
|
6187
6192
|
function getVariantAvailableForSale(variant) {
|
|
6188
6193
|
if (variant.isActive === false) return false;
|
|
@@ -6787,6 +6792,8 @@ function buildRangeEndpoint(params) {
|
|
|
6787
6792
|
function buildAdmissionAvailabilityEndpoint(params) {
|
|
6788
6793
|
const urlParams = new URLSearchParams();
|
|
6789
6794
|
urlParams.set("occurrence", params.occurrence);
|
|
6795
|
+
const normalizedMarket2 = params.market?.trim();
|
|
6796
|
+
if (normalizedMarket2) urlParams.set("market", normalizedMarket2);
|
|
6790
6797
|
return resolveOperationPath(
|
|
6791
6798
|
EVENTS_ENDPOINT_OPERATIONS.occurrences.admissionAvailability,
|
|
6792
6799
|
{ query: urlParams }
|