@01.software/sdk 0.73.1 → 0.75.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +109 -4
  3. package/dist/client.cjs +59 -14
  4. package/dist/client.cjs.map +1 -1
  5. package/dist/client.d.cts +6 -6
  6. package/dist/client.d.ts +6 -6
  7. package/dist/client.js +59 -14
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-BH4dIZ6c.d.cts → collection-client-BNC6tUdK.d.cts} +3 -4
  10. package/dist/{collection-client-lLAl3xCZ.d.ts → collection-client-CNkBMUHj.d.ts} +3 -4
  11. package/dist/collection-documents-Bl0AF0m0.d.cts +5486 -0
  12. package/dist/collection-documents-Bl0AF0m0.d.ts +5486 -0
  13. package/dist/{const-CCvoknRY.d.ts → const-CcOT0taO.d.cts} +1 -3
  14. package/dist/{const-BS2EaIp4.d.cts → const-CcOT0taO.d.ts} +1 -3
  15. package/dist/{index-DVqNpmsc.d.ts → index-CQsJvMCN.d.ts} +2 -3
  16. package/dist/{index-CHdrzJ8-.d.cts → index-CfxkqaY9.d.cts} +2 -3
  17. package/dist/index.cjs +60 -14
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +7 -7
  20. package/dist/index.d.ts +7 -7
  21. package/dist/index.js +60 -14
  22. package/dist/index.js.map +1 -1
  23. package/dist/query.cjs +16 -1
  24. package/dist/query.cjs.map +1 -1
  25. package/dist/query.d.cts +5 -5
  26. package/dist/query.d.ts +5 -5
  27. package/dist/query.js +16 -1
  28. package/dist/query.js.map +1 -1
  29. package/dist/realtime.d.cts +1 -2
  30. package/dist/realtime.d.ts +1 -2
  31. package/dist/server.cjs +50 -11
  32. package/dist/server.cjs.map +1 -1
  33. package/dist/server.d.cts +7 -7
  34. package/dist/server.d.ts +7 -7
  35. package/dist/server.js +50 -11
  36. package/dist/server.js.map +1 -1
  37. package/dist/{types-lbzbJSZh.d.ts → types-Btxz6NVi.d.ts} +161 -31
  38. package/dist/types-CQw4HXky.d.ts +151 -0
  39. package/dist/{types-Chwgg4CQ.d.cts → types-DMwRdJ-4.d.cts} +161 -31
  40. package/dist/types-Jr4xTiGs.d.cts +151 -0
  41. package/dist/ui/form.cjs.map +1 -1
  42. package/dist/ui/form.d.cts +1 -1
  43. package/dist/ui/form.d.ts +1 -1
  44. package/dist/ui/form.js.map +1 -1
  45. package/dist/ui/video.cjs.map +1 -1
  46. package/dist/ui/video.d.cts +1 -1
  47. package/dist/ui/video.d.ts +1 -1
  48. package/dist/ui/video.js.map +1 -1
  49. package/dist/webhook.d.cts +7 -5
  50. package/dist/webhook.d.ts +7 -5
  51. package/package.json +1 -1
  52. package/dist/payload-types-PXkmefhZ.d.cts +0 -14027
  53. package/dist/payload-types-PXkmefhZ.d.ts +0 -14027
  54. package/dist/types-CQRsG6sA.d.ts +0 -53
  55. package/dist/types-CyMz0Kzc.d.cts +0 -53
package/dist/client.d.cts CHANGED
@@ -1,10 +1,10 @@
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';
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-DMwRdJ-4.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-DMwRdJ-4.cjs';
3
+ import { R as ReadOnlyCollectionClient } from './collection-client-BNC6tUdK.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-BS2EaIp4.cjs';
6
- import './types-CyMz0Kzc.cjs';
7
- import './payload-types-PXkmefhZ.cjs';
5
+ export { C as Collection, P as PublicCollection } from './const-CcOT0taO.cjs';
6
+ import './types-Jr4xTiGs.cjs';
7
+ import './collection-documents-Bl0AF0m0.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 { 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';
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-Btxz6NVi.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-Btxz6NVi.js';
3
+ import { R as ReadOnlyCollectionClient } from './collection-client-CNkBMUHj.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-CCvoknRY.js';
6
- import './types-CQRsG6sA.js';
7
- import './payload-types-PXkmefhZ.js';
5
+ export { C as Collection, P as PublicCollection } from './const-CcOT0taO.js';
6
+ import './types-CQw4HXky.js';
7
+ import './collection-documents-Bl0AF0m0.js';
8
8
  import './metadata.js';
9
9
 
10
10
  declare class CustomerBenefitVouchersApi extends CustomerScopedApi {
package/dist/client.js CHANGED
@@ -1336,16 +1336,28 @@ var CUSTOMER_AUTH_ENDPOINT_OPERATIONS = {
1336
1336
  resetPassword: operation("customers", "post", "/reset-password"),
1337
1337
  changePassword: operation("customers", "post", "/change-password"),
1338
1338
  revokeRefresh: operation("customers", "post", "/revoke-refresh"),
1339
- withdraw: operation("customers", "post", "/withdraw")
1339
+ withdraw: operation("customers", "post", "/withdraw"),
1340
+ requestWithdrawalCode: operation("customers", "post", "/withdraw/email-code")
1340
1341
  };
1341
1342
  var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
1342
1343
  show: operation("tenants", "get", "/embedded-admin-app"),
1343
1344
  configure: operation("tenants", "patch", "/embedded-admin-app"),
1344
1345
  disable: operation("tenants", "delete", "/embedded-admin-app")
1345
1346
  };
1347
+ var FIELD_CONFIG_ENDPOINT_OPERATIONS = {
1348
+ list: operation("field-configs", "get", "/list"),
1349
+ save: operation("field-configs", "post", "/save")
1350
+ };
1346
1351
  var EVENTS_ENDPOINT_OPERATIONS = {
1347
1352
  registrations: {
1348
1353
  register: operation("event-registrations", "post", "/register"),
1354
+ requestEmailVerification: operation(
1355
+ "event-registrations",
1356
+ "post",
1357
+ "/request-email-verification"
1358
+ ),
1359
+ emailCancelPage: operation("event-registrations", "get", "/email-cancel"),
1360
+ emailCancel: operation("event-registrations", "post", "/email-cancel"),
1349
1361
  guestLookup: operation("event-registrations", "post", "/guest/lookup"),
1350
1362
  guestLookupByUrl: operation("event-registrations", "get", "/guest/:token"),
1351
1363
  guestCancel: operation("event-registrations", "post", "/guest/cancel"),
@@ -1384,6 +1396,9 @@ var VIDEO_ENDPOINT_OPERATIONS = {
1384
1396
  function resolveOperationTemplate(descriptor) {
1385
1397
  return descriptor.collection ? `/api/${descriptor.collection}${descriptor.path}` : `/api${descriptor.path}`;
1386
1398
  }
1399
+ var PAYMENT_DIAGNOSTIC_ENDPOINT_OPERATIONS = {
1400
+ diagnose: operation("tenants", "get", "/payment-diagnostics")
1401
+ };
1387
1402
  function resolveOperationPath(descriptor, options) {
1388
1403
  const path = resolveOperationTemplate(descriptor).replace(
1389
1404
  /:([A-Za-z][A-Za-z0-9_]*)/g,
@@ -4758,8 +4773,25 @@ var CustomerAuth = class {
4758
4773
  body: JSON.stringify({ refreshToken })
4759
4774
  });
4760
4775
  }
4761
- /** Archive the current password account and clear this client's credentials on success. */
4762
- async withdraw(currentPassword) {
4776
+ /** Send a withdrawal-only code to the current passwordless customer's stored email. */
4777
+ async requestWithdrawalCode() {
4778
+ const token = this.getToken();
4779
+ if (!token) throw new ApiError("Not authenticated", 401);
4780
+ const operation2 = CUSTOMER_AUTH_ENDPOINT_OPERATIONS.requestWithdrawalCode;
4781
+ const result = await this.requestJson(
4782
+ resolveOperationPath(operation2),
4783
+ {
4784
+ method: resolveOperationMethod(operation2),
4785
+ headers: { Authorization: `Bearer ${token}` },
4786
+ body: JSON.stringify({})
4787
+ }
4788
+ );
4789
+ if (!result || typeof result.message !== "string")
4790
+ throw new ApiError("Invalid withdrawal code response", 502);
4791
+ return result;
4792
+ }
4793
+ /** Archive the current account and clear this client's credentials on success. */
4794
+ async withdraw(proof) {
4763
4795
  const token = this.getToken();
4764
4796
  if (!token) throw new ApiError("Not authenticated", 401);
4765
4797
  const operation2 = CUSTOMER_AUTH_ENDPOINT_OPERATIONS.withdraw;
@@ -4768,7 +4800,9 @@ var CustomerAuth = class {
4768
4800
  {
4769
4801
  method: resolveOperationMethod(operation2),
4770
4802
  headers: { Authorization: `Bearer ${token}` },
4771
- body: JSON.stringify({ currentPassword })
4803
+ body: JSON.stringify(
4804
+ typeof proof === "string" ? { currentPassword: proof } : proof
4805
+ )
4772
4806
  }
4773
4807
  );
4774
4808
  if (!result || typeof result.withdrawnAt !== "string" || !Number.isFinite(Date.parse(result.withdrawnAt)))
@@ -6180,10 +6214,13 @@ function buildProductHref(product, group, options = {}) {
6180
6214
  return params.size > 0 ? `${path}?${params.toString()}` : path;
6181
6215
  }
6182
6216
  function compareVariantOrder(a, b) {
6183
- const aOrder = Number(a._order ?? Number.MAX_SAFE_INTEGER);
6184
- const bOrder = Number(b._order ?? Number.MAX_SAFE_INTEGER);
6185
- if (Number.isFinite(aOrder) && Number.isFinite(bOrder) && aOrder !== bOrder) {
6186
- return aOrder - bOrder;
6217
+ const aOrder = a._order || null;
6218
+ const bOrder = b._order || null;
6219
+ if (aOrder !== bOrder) {
6220
+ if (aOrder === null) return 1;
6221
+ if (bOrder === null) return -1;
6222
+ const byOrder = compareOrdinal(aOrder, bOrder);
6223
+ if (byOrder !== 0) return byOrder;
6187
6224
  }
6188
6225
  const aId = String(getRelationID(a.id) ?? "");
6189
6226
  const bId = String(getRelationID(b.id) ?? "");
@@ -6434,11 +6471,7 @@ function buildProductListingPageWhere(params) {
6434
6471
  const search = params.search?.trim();
6435
6472
  if (search) {
6436
6473
  clauses.push({
6437
- or: [
6438
- { title: { like: search } },
6439
- { slug: { like: search } },
6440
- { handle: { like: search } }
6441
- ]
6474
+ or: [{ title: { like: search } }, { slug: { like: search } }]
6442
6475
  });
6443
6476
  }
6444
6477
  const filters = params.filters;
@@ -6708,6 +6741,15 @@ var EventsClient = class {
6708
6741
  { useCustomerAuth: true }
6709
6742
  );
6710
6743
  }
6744
+ requestRegistrationEmailVerification(params) {
6745
+ const operation2 = EVENTS_ENDPOINT_OPERATIONS.registrations.requestEmailVerification;
6746
+ return this.execute(
6747
+ resolveOperationPath(operation2),
6748
+ resolveOperationMethod(operation2),
6749
+ buildRegistrationRequestBody(params),
6750
+ { useCustomerAuth: true, noStore: true }
6751
+ );
6752
+ }
6711
6753
  getGuestRegistration(token) {
6712
6754
  return this.execute(
6713
6755
  resolveOperationPath(
@@ -6760,7 +6802,10 @@ function buildRegistrationRequestBody(params) {
6760
6802
  occurrence: params.occurrence,
6761
6803
  ...params.quantity !== void 0 && { quantity: params.quantity },
6762
6804
  ...params.attendee !== void 0 && { attendee: params.attendee },
6763
- ...params.answers !== void 0 && { answers: params.answers }
6805
+ ...params.answers !== void 0 && { answers: params.answers },
6806
+ ...params.emailVerification !== void 0 && {
6807
+ emailVerification: params.emailVerification
6808
+ }
6764
6809
  };
6765
6810
  }
6766
6811
  function buildGuestCancelRequestBody(token, params) {