@01.software/sdk 0.69.0 → 0.70.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +26 -7
  3. package/dist/client.cjs +35 -7
  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 +35 -7
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-C2VGBnCC.d.ts → collection-client-B1FSJ24_.d.ts} +5 -5
  10. package/dist/{collection-client-DvWkDxSM.d.cts → collection-client-BHLStm1K.d.cts} +5 -5
  11. package/dist/{const-AtPEgg__.d.cts → const-BfQfV-rr.d.cts} +1 -1
  12. package/dist/{const-DR96Chal.d.ts → const-ty8u0TDI.d.ts} +1 -1
  13. package/dist/embedded-admin/server.cjs +5 -0
  14. package/dist/embedded-admin/server.cjs.map +1 -1
  15. package/dist/embedded-admin/server.js +5 -0
  16. package/dist/embedded-admin/server.js.map +1 -1
  17. package/dist/embedded-admin.cjs +5 -0
  18. package/dist/embedded-admin.cjs.map +1 -1
  19. package/dist/embedded-admin.js +5 -0
  20. package/dist/embedded-admin.js.map +1 -1
  21. package/dist/errors.cjs +5 -0
  22. package/dist/errors.cjs.map +1 -1
  23. package/dist/errors.d.cts +3 -3
  24. package/dist/errors.d.ts +3 -3
  25. package/dist/errors.js +5 -0
  26. package/dist/errors.js.map +1 -1
  27. package/dist/{index-Ce11c_Oh.d.cts → index-CX6si6YC.d.cts} +3 -3
  28. package/dist/{index-D8fmTrZk.d.ts → index-DnKgjPGM.d.ts} +3 -3
  29. package/dist/index.cjs +35 -7
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +7 -7
  32. package/dist/index.d.ts +7 -7
  33. package/dist/index.js +35 -7
  34. package/dist/index.js.map +1 -1
  35. package/dist/{payload-types-rhnw3rR8.d.cts → payload-types-DTAaWKrp.d.cts} +18 -4
  36. package/dist/{payload-types-rhnw3rR8.d.ts → payload-types-DTAaWKrp.d.ts} +18 -4
  37. package/dist/query.cjs +14 -0
  38. package/dist/query.cjs.map +1 -1
  39. package/dist/query.d.cts +5 -5
  40. package/dist/query.d.ts +5 -5
  41. package/dist/query.js +14 -0
  42. package/dist/query.js.map +1 -1
  43. package/dist/realtime.d.cts +2 -2
  44. package/dist/realtime.d.ts +2 -2
  45. package/dist/server.cjs +35 -7
  46. package/dist/server.cjs.map +1 -1
  47. package/dist/server.d.cts +7 -7
  48. package/dist/server.d.ts +7 -7
  49. package/dist/server.js +35 -7
  50. package/dist/server.js.map +1 -1
  51. package/dist/storefront-cache.cjs +5 -0
  52. package/dist/storefront-cache.cjs.map +1 -1
  53. package/dist/storefront-cache.js +5 -0
  54. package/dist/storefront-cache.js.map +1 -1
  55. package/dist/{types-B99utaKU.d.cts → types-Bzgf4mTo.d.cts} +3 -3
  56. package/dist/{types-CHK8VIPa.d.ts → types-CpSiyJud.d.cts} +8 -2
  57. package/dist/{types-BR0D4AaW.d.cts → types-DX8Z44yQ.d.ts} +8 -2
  58. package/dist/{types-L0xmn_iT.d.ts → types-DdlhpNVv.d.ts} +3 -3
  59. package/dist/ui/form.d.cts +1 -1
  60. package/dist/ui/form.d.ts +1 -1
  61. package/dist/ui/video.d.cts +1 -1
  62. package/dist/ui/video.d.ts +1 -1
  63. package/dist/webhook.d.cts +5 -5
  64. package/dist/webhook.d.ts +5 -5
  65. package/package.json +1 -1
@@ -1187,7 +1187,7 @@ interface Order {
1187
1187
  */
1188
1188
  displayFulfillmentStatus: 'unfulfilled' | 'in_progress' | 'on_hold' | 'partially_fulfilled' | 'shipped' | 'fulfilled' | 'canceled';
1189
1189
  /**
1190
- * Return status used for order lists and filters. Orders without active returns read as no_return.
1190
+ * Return status used for order lists and filters. Orders without active returns display “No return”.
1191
1191
  */
1192
1192
  returnStatus: 'no_return' | 'return_requested' | 'in_progress' | 'returned';
1193
1193
  /**
@@ -1390,7 +1390,7 @@ interface Order {
1390
1390
  deletedAt?: string | null;
1391
1391
  }
1392
1392
  /**
1393
- * Review customer accounts, purchases, and activity.
1393
+ * Manage customer information and account status.
1394
1394
  *
1395
1395
  * This interface was referenced by `Config`'s JSON-Schema
1396
1396
  * via the `definition` "customers".
@@ -4734,6 +4734,7 @@ interface PersonalAccessToken {
4734
4734
  */
4735
4735
  interface AuditLog {
4736
4736
  id: string;
4737
+ entryKey?: string | null;
4737
4738
  tenant?: (string | null) | Tenant;
4738
4739
  /**
4739
4740
  * Event type
@@ -5729,7 +5730,7 @@ interface Refund {
5729
5730
  tenant?: (string | null) | Tenant;
5730
5731
  order: string | Order;
5731
5732
  return?: (string | null) | Return;
5732
- paymentTransaction: string | Transaction;
5733
+ paymentTransaction?: (string | null) | Transaction;
5733
5734
  refundTransaction?: (string | null) | Transaction;
5734
5735
  status: 'succeeded' | 'failed';
5735
5736
  source: 'return' | 'cancel' | 'operator' | 'adjustment';
@@ -5737,6 +5738,15 @@ interface Refund {
5737
5738
  * Amount in KRW (won)
5738
5739
  */
5739
5740
  totalAmount: number;
5741
+ fundingCheckout?: (string | null) | Checkout;
5742
+ /**
5743
+ * Amount in KRW (won)
5744
+ */
5745
+ creditAmount?: number | null;
5746
+ /**
5747
+ * Amount in KRW (won)
5748
+ */
5749
+ providerAmount?: number | null;
5740
5750
  /**
5741
5751
  * Amount in KRW (won)
5742
5752
  */
@@ -9345,6 +9355,7 @@ interface PersonalAccessTokensSelect<T extends boolean = true> {
9345
9355
  * via the `definition` "audit-logs_select".
9346
9356
  */
9347
9357
  interface AuditLogsSelect<T extends boolean = true> {
9358
+ entryKey?: T;
9348
9359
  tenant?: T;
9349
9360
  eventType?: T;
9350
9361
  actorId?: T;
@@ -10648,6 +10659,9 @@ interface RefundsSelect<T extends boolean = true> {
10648
10659
  status?: T;
10649
10660
  source?: T;
10650
10661
  totalAmount?: T;
10662
+ fundingCheckout?: T;
10663
+ creditAmount?: T;
10664
+ providerAmount?: T;
10651
10665
  lineAmount?: T;
10652
10666
  shippingAmount?: T;
10653
10667
  adjustmentAmount?: T;
@@ -13868,4 +13882,4 @@ declare module 'payload' {
13868
13882
  }
13869
13883
  }
13870
13884
 
13871
- export type { Article as A, CustomerProfile as C, Document as D, Form as F, Image as I, Market as M, Order as O, Product as P, Return as R, Tenant as T, Video as V, Webhook as W, ProductVariant as a, CustomerProfileStat as b, CustomerProfileList as c, ProductCollection as d, Config as e, ArticleAuthor as f, ArticleCategory as g, ArticleTag as h, Post as i, PostCategory as j, Transaction as k, Fulfillment as l };
13885
+ export type { Article as A, CustomerProfile as C, Document as D, Form as F, Image as I, Market as M, Order as O, Product as P, Refund as R, Tenant as T, Video as V, Webhook as W, ProductVariant as a, CustomerProfileStat as b, CustomerProfileList as c, ProductCollection as d, RefundLineItem as e, Config as f, ArticleAuthor as g, ArticleCategory as h, ArticleTag as i, Post as j, PostCategory as k, Transaction as l, Fulfillment as m, Return as n };
@@ -1187,7 +1187,7 @@ interface Order {
1187
1187
  */
1188
1188
  displayFulfillmentStatus: 'unfulfilled' | 'in_progress' | 'on_hold' | 'partially_fulfilled' | 'shipped' | 'fulfilled' | 'canceled';
1189
1189
  /**
1190
- * Return status used for order lists and filters. Orders without active returns read as no_return.
1190
+ * Return status used for order lists and filters. Orders without active returns display “No return”.
1191
1191
  */
1192
1192
  returnStatus: 'no_return' | 'return_requested' | 'in_progress' | 'returned';
1193
1193
  /**
@@ -1390,7 +1390,7 @@ interface Order {
1390
1390
  deletedAt?: string | null;
1391
1391
  }
1392
1392
  /**
1393
- * Review customer accounts, purchases, and activity.
1393
+ * Manage customer information and account status.
1394
1394
  *
1395
1395
  * This interface was referenced by `Config`'s JSON-Schema
1396
1396
  * via the `definition` "customers".
@@ -4734,6 +4734,7 @@ interface PersonalAccessToken {
4734
4734
  */
4735
4735
  interface AuditLog {
4736
4736
  id: string;
4737
+ entryKey?: string | null;
4737
4738
  tenant?: (string | null) | Tenant;
4738
4739
  /**
4739
4740
  * Event type
@@ -5729,7 +5730,7 @@ interface Refund {
5729
5730
  tenant?: (string | null) | Tenant;
5730
5731
  order: string | Order;
5731
5732
  return?: (string | null) | Return;
5732
- paymentTransaction: string | Transaction;
5733
+ paymentTransaction?: (string | null) | Transaction;
5733
5734
  refundTransaction?: (string | null) | Transaction;
5734
5735
  status: 'succeeded' | 'failed';
5735
5736
  source: 'return' | 'cancel' | 'operator' | 'adjustment';
@@ -5737,6 +5738,15 @@ interface Refund {
5737
5738
  * Amount in KRW (won)
5738
5739
  */
5739
5740
  totalAmount: number;
5741
+ fundingCheckout?: (string | null) | Checkout;
5742
+ /**
5743
+ * Amount in KRW (won)
5744
+ */
5745
+ creditAmount?: number | null;
5746
+ /**
5747
+ * Amount in KRW (won)
5748
+ */
5749
+ providerAmount?: number | null;
5740
5750
  /**
5741
5751
  * Amount in KRW (won)
5742
5752
  */
@@ -9345,6 +9355,7 @@ interface PersonalAccessTokensSelect<T extends boolean = true> {
9345
9355
  * via the `definition` "audit-logs_select".
9346
9356
  */
9347
9357
  interface AuditLogsSelect<T extends boolean = true> {
9358
+ entryKey?: T;
9348
9359
  tenant?: T;
9349
9360
  eventType?: T;
9350
9361
  actorId?: T;
@@ -10648,6 +10659,9 @@ interface RefundsSelect<T extends boolean = true> {
10648
10659
  status?: T;
10649
10660
  source?: T;
10650
10661
  totalAmount?: T;
10662
+ fundingCheckout?: T;
10663
+ creditAmount?: T;
10664
+ providerAmount?: T;
10651
10665
  lineAmount?: T;
10652
10666
  shippingAmount?: T;
10653
10667
  adjustmentAmount?: T;
@@ -13868,4 +13882,4 @@ declare module 'payload' {
13868
13882
  }
13869
13883
  }
13870
13884
 
13871
- export type { Article as A, CustomerProfile as C, Document as D, Form as F, Image as I, Market as M, Order as O, Product as P, Return as R, Tenant as T, Video as V, Webhook as W, ProductVariant as a, CustomerProfileStat as b, CustomerProfileList as c, ProductCollection as d, Config as e, ArticleAuthor as f, ArticleCategory as g, ArticleTag as h, Post as i, PostCategory as j, Transaction as k, Fulfillment as l };
13885
+ export type { Article as A, CustomerProfile as C, Document as D, Form as F, Image as I, Market as M, Order as O, Product as P, Refund as R, Tenant as T, Video as V, Webhook as W, ProductVariant as a, CustomerProfileStat as b, CustomerProfileList as c, ProductCollection as d, RefundLineItem as e, Config as f, ArticleAuthor as g, ArticleCategory as h, ArticleTag as i, Post as j, PostCategory as k, Transaction as l, Fulfillment as m, Return as n };
package/dist/query.cjs CHANGED
@@ -614,6 +614,11 @@ var COMMERCE_ERROR_CODES = [
614
614
  "checkout_reservation_release_requires_transaction",
615
615
  "admission_metadata_invalid",
616
616
  "admission_metadata_required",
617
+ "admission_not_eligible",
618
+ "admission_eligibility_unavailable",
619
+ "admission_authority_unavailable",
620
+ "admission_customer_binding_required",
621
+ "admission_eligibility_unproven",
617
622
  "capacity_exceeded",
618
623
  "admission_required",
619
624
  "occurrence_lock_unavailable",
@@ -1065,6 +1070,15 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
1065
1070
  };
1066
1071
  var EVENTS_ENDPOINT_OPERATIONS = {
1067
1072
  registrations: {
1073
+ register: operation("event-registrations", "post", "/register"),
1074
+ guestLookup: operation("event-registrations", "post", "/guest/lookup"),
1075
+ guestLookupByUrl: operation("event-registrations", "get", "/guest/:token"),
1076
+ guestCancel: operation("event-registrations", "post", "/guest/cancel"),
1077
+ guestCancelByUrl: operation(
1078
+ "event-registrations",
1079
+ "post",
1080
+ "/guest/:token/cancel"
1081
+ ),
1068
1082
  listMine: operation("event-registrations", "get", "/my")
1069
1083
  },
1070
1084
  events: {