@01.software/sdk 0.73.1 → 0.74.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 +39 -0
- package/README.md +30 -3
- package/dist/client.cjs +12 -9
- 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 +12 -9
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-BH4dIZ6c.d.cts → collection-client-Bb1Wa6T6.d.cts} +4 -4
- package/dist/{collection-client-lLAl3xCZ.d.ts → collection-client-DBrLM9RR.d.ts} +4 -4
- package/dist/{const-CCvoknRY.d.ts → const-CkY2zB6J.d.ts} +1 -1
- package/dist/{const-BS2EaIp4.d.cts → const-DWTSgCkn.d.cts} +1 -1
- package/dist/{index-DVqNpmsc.d.ts → index-Daoh-98A.d.ts} +3 -3
- package/dist/{index-CHdrzJ8-.d.cts → index-Di5AybQN.d.cts} +3 -3
- package/dist/index.cjs +12 -9
- 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 +12 -9
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-PXkmefhZ.d.cts → payload-types-zukuL1s_.d.cts} +345 -1755
- package/dist/{payload-types-PXkmefhZ.d.ts → payload-types-zukuL1s_.d.ts} +345 -1755
- package/dist/query.cjs +4 -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 +4 -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 +12 -9
- 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 +12 -9
- package/dist/server.js.map +1 -1
- package/dist/{types-CyMz0Kzc.d.cts → types-BI7aowdu.d.cts} +4 -4
- package/dist/{types-lbzbJSZh.d.ts → types-BsJokT6P.d.ts} +59 -16
- package/dist/{types-CQRsG6sA.d.ts → types-SsS04wGw.d.ts} +4 -4
- package/dist/{types-Chwgg4CQ.d.cts → types-evAvqRBj.d.cts} +59 -16
- 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 { d9 as CustomerScopedApi, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, da as CustomerCreditsApi, db as CommerceClient, n as CommunityClient, dc as ContentClient, aP as EventsClient, dd as CustomerNamespace, M as MarketDiscovery, aw as CustomerMembershipView, C as CancelMembershipParams, e as CancelMembershipResponse, q as ClientState, de as ClientConfig } from './types-evAvqRBj.cjs';
|
|
2
|
+
export { A as AddItemParams, df as ApiQueryOptions, dg as CancelBrowserPaymentSessionParams, dh 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, di as ClientMetadata, dj as ContentClientOptions, a9 as CreateCartParams, aa as CreateCartResult, dk as CreateCheckoutParams, dl as CreateCheckoutResult, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, ax as CustomerSnapshot, dm as DebugConfig, dn as DeepPartial, dp as ExtractArrayType, bq as MembershipStatus, bs as Money, bz as OpenCheckoutPaymentState, dq as PayloadFindResponse, dr 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, ds as RetrieveBrowserPaymentSessionParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, dt as RetryConfig, du as RootClient, du as RootClientType, dv as RootCollectionClient, dw as RootReadOnlyQueryBuilder, cv as ShippingLine, dx as Sort, cw as SpentCheckoutPaymentState, dy as StorefrontContentListOptions, dz as StorefrontContentReference, dA as StorefrontGalleryItem, dB as StorefrontGalleryItemsListOptions, dC as StorefrontGalleryItemsSort, dD as StorefrontLink, dE as StorefrontLinksListOptions, dF as StorefrontLinksSort, cU as UpdateCartAttributesParams, cV as UpdateDiscountCodesParams, cW as UpdateItemParams, cX as VariantInput, dG as Where } from './types-evAvqRBj.cjs';
|
|
3
|
+
import { R as ReadOnlyCollectionClient } from './collection-client-Bb1Wa6T6.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-DWTSgCkn.cjs';
|
|
6
|
+
import './types-BI7aowdu.cjs';
|
|
7
|
+
import './payload-types-zukuL1s_.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 { d9 as CustomerScopedApi, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, da as CustomerCreditsApi, db as CommerceClient, n as CommunityClient, dc as ContentClient, aP as EventsClient, dd as CustomerNamespace, M as MarketDiscovery, aw as CustomerMembershipView, C as CancelMembershipParams, e as CancelMembershipResponse, q as ClientState, de as ClientConfig } from './types-BsJokT6P.js';
|
|
2
|
+
export { A as AddItemParams, df as ApiQueryOptions, dg as CancelBrowserPaymentSessionParams, dh 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, di as ClientMetadata, dj as ContentClientOptions, a9 as CreateCartParams, aa as CreateCartResult, dk as CreateCheckoutParams, dl as CreateCheckoutResult, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, ax as CustomerSnapshot, dm as DebugConfig, dn as DeepPartial, dp as ExtractArrayType, bq as MembershipStatus, bs as Money, bz as OpenCheckoutPaymentState, dq as PayloadFindResponse, dr 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, ds as RetrieveBrowserPaymentSessionParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, dt as RetryConfig, du as RootClient, du as RootClientType, dv as RootCollectionClient, dw as RootReadOnlyQueryBuilder, cv as ShippingLine, dx as Sort, cw as SpentCheckoutPaymentState, dy as StorefrontContentListOptions, dz as StorefrontContentReference, dA as StorefrontGalleryItem, dB as StorefrontGalleryItemsListOptions, dC as StorefrontGalleryItemsSort, dD as StorefrontLink, dE as StorefrontLinksListOptions, dF as StorefrontLinksSort, cU as UpdateCartAttributesParams, cV as UpdateDiscountCodesParams, cW as UpdateItemParams, cX as VariantInput, dG as Where } from './types-BsJokT6P.js';
|
|
3
|
+
import { R as ReadOnlyCollectionClient } from './collection-client-DBrLM9RR.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-CkY2zB6J.js';
|
|
6
|
+
import './types-SsS04wGw.js';
|
|
7
|
+
import './payload-types-zukuL1s_.js';
|
|
8
8
|
import './metadata.js';
|
|
9
9
|
|
|
10
10
|
declare class CustomerBenefitVouchersApi extends CustomerScopedApi {
|
package/dist/client.js
CHANGED
|
@@ -1343,6 +1343,10 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
|
|
|
1343
1343
|
configure: operation("tenants", "patch", "/embedded-admin-app"),
|
|
1344
1344
|
disable: operation("tenants", "delete", "/embedded-admin-app")
|
|
1345
1345
|
};
|
|
1346
|
+
var FIELD_CONFIG_ENDPOINT_OPERATIONS = {
|
|
1347
|
+
list: operation("field-configs", "get", "/list"),
|
|
1348
|
+
save: operation("field-configs", "post", "/save")
|
|
1349
|
+
};
|
|
1346
1350
|
var EVENTS_ENDPOINT_OPERATIONS = {
|
|
1347
1351
|
registrations: {
|
|
1348
1352
|
register: operation("event-registrations", "post", "/register"),
|
|
@@ -6180,10 +6184,13 @@ function buildProductHref(product, group, options = {}) {
|
|
|
6180
6184
|
return params.size > 0 ? `${path}?${params.toString()}` : path;
|
|
6181
6185
|
}
|
|
6182
6186
|
function compareVariantOrder(a, b) {
|
|
6183
|
-
const aOrder =
|
|
6184
|
-
const bOrder =
|
|
6185
|
-
if (
|
|
6186
|
-
|
|
6187
|
+
const aOrder = a._order || null;
|
|
6188
|
+
const bOrder = b._order || null;
|
|
6189
|
+
if (aOrder !== bOrder) {
|
|
6190
|
+
if (aOrder === null) return 1;
|
|
6191
|
+
if (bOrder === null) return -1;
|
|
6192
|
+
const byOrder = compareOrdinal(aOrder, bOrder);
|
|
6193
|
+
if (byOrder !== 0) return byOrder;
|
|
6187
6194
|
}
|
|
6188
6195
|
const aId = String(getRelationID(a.id) ?? "");
|
|
6189
6196
|
const bId = String(getRelationID(b.id) ?? "");
|
|
@@ -6434,11 +6441,7 @@ function buildProductListingPageWhere(params) {
|
|
|
6434
6441
|
const search = params.search?.trim();
|
|
6435
6442
|
if (search) {
|
|
6436
6443
|
clauses.push({
|
|
6437
|
-
or: [
|
|
6438
|
-
{ title: { like: search } },
|
|
6439
|
-
{ slug: { like: search } },
|
|
6440
|
-
{ handle: { like: search } }
|
|
6441
|
-
]
|
|
6444
|
+
or: [{ title: { like: search } }, { slug: { like: search } }]
|
|
6442
6445
|
});
|
|
6443
6446
|
}
|
|
6444
6447
|
const filters = params.filters;
|