@01.software/sdk 0.74.0 → 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 +36 -0
  2. package/README.md +79 -1
  3. package/dist/client.cjs +47 -5
  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 +47 -5
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-Bb1Wa6T6.d.cts → collection-client-BNC6tUdK.d.cts} +3 -4
  10. package/dist/{collection-client-DBrLM9RR.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-CkY2zB6J.d.ts → const-CcOT0taO.d.cts} +1 -3
  14. package/dist/{const-DWTSgCkn.d.cts → const-CcOT0taO.d.ts} +1 -3
  15. package/dist/{index-Daoh-98A.d.ts → index-CQsJvMCN.d.ts} +2 -3
  16. package/dist/{index-Di5AybQN.d.cts → index-CfxkqaY9.d.cts} +2 -3
  17. package/dist/index.cjs +48 -5
  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 +48 -5
  22. package/dist/index.js.map +1 -1
  23. package/dist/query.cjs +12 -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 +12 -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 +38 -2
  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 +38 -2
  36. package/dist/server.js.map +1 -1
  37. package/dist/{types-BsJokT6P.d.ts → types-Btxz6NVi.d.ts} +106 -19
  38. package/dist/types-CQw4HXky.d.ts +151 -0
  39. package/dist/{types-evAvqRBj.d.cts → types-DMwRdJ-4.d.cts} +106 -19
  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-zukuL1s_.d.cts +0 -12617
  53. package/dist/payload-types-zukuL1s_.d.ts +0 -12617
  54. package/dist/types-BI7aowdu.d.cts +0 -53
  55. package/dist/types-SsS04wGw.d.ts +0 -53
@@ -1,7 +1,6 @@
1
1
  import { R as RealtimeEvent } from './realtime-D7HtUpqt.cjs';
2
2
  export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
3
- import { P as PublicCollection } from './const-DWTSgCkn.cjs';
4
- import './payload-types-zukuL1s_.cjs';
3
+ import { P as PublicCollection } from './const-CcOT0taO.cjs';
5
4
 
6
5
  interface UseRealtimeQueryOptions {
7
6
  /** Filter events to specific collections. Empty/undefined = all collections. */
@@ -1,7 +1,6 @@
1
1
  import { R as RealtimeEvent } from './realtime-D7HtUpqt.js';
2
2
  export { a as RealtimeConnection, b as RealtimeListener } from './realtime-D7HtUpqt.js';
3
- import { P as PublicCollection } from './const-CkY2zB6J.js';
4
- import './payload-types-zukuL1s_.js';
3
+ import { P as PublicCollection } from './const-CcOT0taO.js';
5
4
 
6
5
  interface UseRealtimeQueryOptions {
7
6
  /** Filter events to specific collections. Empty/undefined = all collections. */
package/dist/server.cjs CHANGED
@@ -1394,7 +1394,8 @@ var CUSTOMER_AUTH_ENDPOINT_OPERATIONS = {
1394
1394
  resetPassword: operation("customers", "post", "/reset-password"),
1395
1395
  changePassword: operation("customers", "post", "/change-password"),
1396
1396
  revokeRefresh: operation("customers", "post", "/revoke-refresh"),
1397
- withdraw: operation("customers", "post", "/withdraw")
1397
+ withdraw: operation("customers", "post", "/withdraw"),
1398
+ requestWithdrawalCode: operation("customers", "post", "/withdraw/email-code")
1398
1399
  };
1399
1400
  var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
1400
1401
  show: operation("tenants", "get", "/embedded-admin-app"),
@@ -1408,6 +1409,13 @@ var FIELD_CONFIG_ENDPOINT_OPERATIONS = {
1408
1409
  var EVENTS_ENDPOINT_OPERATIONS = {
1409
1410
  registrations: {
1410
1411
  register: operation("event-registrations", "post", "/register"),
1412
+ requestEmailVerification: operation(
1413
+ "event-registrations",
1414
+ "post",
1415
+ "/request-email-verification"
1416
+ ),
1417
+ emailCancelPage: operation("event-registrations", "get", "/email-cancel"),
1418
+ emailCancel: operation("event-registrations", "post", "/email-cancel"),
1411
1419
  guestLookup: operation("event-registrations", "post", "/guest/lookup"),
1412
1420
  guestLookupByUrl: operation("event-registrations", "get", "/guest/:token"),
1413
1421
  guestCancel: operation("event-registrations", "post", "/guest/cancel"),
@@ -1446,6 +1454,9 @@ var VIDEO_ENDPOINT_OPERATIONS = {
1446
1454
  function resolveOperationTemplate(descriptor) {
1447
1455
  return descriptor.collection ? `/api/${descriptor.collection}${descriptor.path}` : `/api${descriptor.path}`;
1448
1456
  }
1457
+ var PAYMENT_DIAGNOSTIC_ENDPOINT_OPERATIONS = {
1458
+ diagnose: operation("tenants", "get", "/payment-diagnostics")
1459
+ };
1449
1460
  function resolveOperationPath(descriptor, options) {
1450
1461
  const path = resolveOperationTemplate(descriptor).replace(
1451
1462
  /:([A-Za-z][A-Za-z0-9_]*)/g,
@@ -6180,6 +6191,12 @@ var OrderApi = class extends BaseApi {
6180
6191
  idempotencyRequestOptions(params.idempotencyKey)
6181
6192
  );
6182
6193
  }
6194
+ /**
6195
+ * Creates a shipment from an in-progress fulfillment order.
6196
+ * Call `prepareFulfillmentOrder` for the same orderNumber first; payment alone
6197
+ * does not prepare the fulfillment order. This method does not prepare it
6198
+ * automatically and returns HTTP 400 `not_fulfillable` when none is in progress.
6199
+ */
6183
6200
  createFulfillment(params) {
6184
6201
  const { body, idempotencyKey } = splitIdempotencyKey(params);
6185
6202
  return this.requestEndpoint(
@@ -6188,6 +6205,12 @@ var OrderApi = class extends BaseApi {
6188
6205
  idempotencyRequestOptions(idempotencyKey)
6189
6206
  );
6190
6207
  }
6208
+ /**
6209
+ * Moves a paid order's open fulfillment orders to in_progress.
6210
+ * Call this before `createFulfillment` for the same orderNumber: shipment
6211
+ * creation requires an in-progress fulfillment order. Preparation does not
6212
+ * require carrier or tracking information.
6213
+ */
6191
6214
  prepareFulfillmentOrder(params) {
6192
6215
  return this.requestEndpoint(
6193
6216
  COMMERCE_ENDPOINTS.fulfillmentOrders.prepare,
@@ -6711,6 +6734,15 @@ var EventsClient = class {
6711
6734
  { useCustomerAuth: true }
6712
6735
  );
6713
6736
  }
6737
+ requestRegistrationEmailVerification(params) {
6738
+ const operation2 = EVENTS_ENDPOINT_OPERATIONS.registrations.requestEmailVerification;
6739
+ return this.execute(
6740
+ resolveOperationPath(operation2),
6741
+ resolveOperationMethod(operation2),
6742
+ buildRegistrationRequestBody(params),
6743
+ { useCustomerAuth: true, noStore: true }
6744
+ );
6745
+ }
6714
6746
  getGuestRegistration(token) {
6715
6747
  return this.execute(
6716
6748
  resolveOperationPath(
@@ -6763,7 +6795,10 @@ function buildRegistrationRequestBody(params) {
6763
6795
  occurrence: params.occurrence,
6764
6796
  ...params.quantity !== void 0 && { quantity: params.quantity },
6765
6797
  ...params.attendee !== void 0 && { attendee: params.attendee },
6766
- ...params.answers !== void 0 && { answers: params.answers }
6798
+ ...params.answers !== void 0 && { answers: params.answers },
6799
+ ...params.emailVerification !== void 0 && {
6800
+ emailVerification: params.emailVerification
6801
+ }
6767
6802
  };
6768
6803
  }
6769
6804
  function buildGuestCancelRequestBody(token, params) {
@@ -7454,6 +7489,7 @@ var ServerClient = class _ServerClient {
7454
7489
  getRange: events.getRange.bind(events),
7455
7490
  getAdmissionAvailability: events.getAdmissionAvailability.bind(events),
7456
7491
  register: events.register.bind(events),
7492
+ requestRegistrationEmailVerification: events.requestRegistrationEmailVerification.bind(events),
7457
7493
  getGuestRegistration: events.getGuestRegistration.bind(events),
7458
7494
  cancelGuestRegistration: events.cancelGuestRegistration.bind(events)
7459
7495
  };