@01.software/sdk 0.68.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 +53 -0
  2. package/README.md +28 -7
  3. package/dist/client.cjs +38 -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 +38 -7
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-IOaWsTMI.d.ts → collection-client-B1FSJ24_.d.ts} +5 -5
  10. package/dist/{collection-client-MbIJ5KzW.d.cts → collection-client-BHLStm1K.d.cts} +5 -5
  11. package/dist/{const-Dw5ElJs_.d.cts → const-BfQfV-rr.d.cts} +1 -1
  12. package/dist/{const-Do27Udj6.d.ts → const-ty8u0TDI.d.ts} +1 -1
  13. package/dist/embedded-admin/server.cjs +8 -0
  14. package/dist/embedded-admin/server.cjs.map +1 -1
  15. package/dist/embedded-admin/server.js +8 -0
  16. package/dist/embedded-admin/server.js.map +1 -1
  17. package/dist/embedded-admin.cjs +8 -0
  18. package/dist/embedded-admin.cjs.map +1 -1
  19. package/dist/embedded-admin.js +8 -0
  20. package/dist/embedded-admin.js.map +1 -1
  21. package/dist/errors.cjs +8 -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 +8 -0
  26. package/dist/errors.js.map +1 -1
  27. package/dist/{index-gnVxTKXu.d.cts → index-CX6si6YC.d.cts} +3 -3
  28. package/dist/{index-DcYsLOja.d.ts → index-DnKgjPGM.d.ts} +3 -3
  29. package/dist/index.cjs +38 -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 +38 -7
  34. package/dist/index.js.map +1 -1
  35. package/dist/{payload-types-BY1uZFRf.d.cts → payload-types-DTAaWKrp.d.cts} +32 -4
  36. package/dist/{payload-types-BY1uZFRf.d.ts → payload-types-DTAaWKrp.d.ts} +32 -4
  37. package/dist/query.cjs +17 -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 +17 -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 +38 -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 +38 -7
  50. package/dist/server.js.map +1 -1
  51. package/dist/storefront-cache.cjs +8 -0
  52. package/dist/storefront-cache.cjs.map +1 -1
  53. package/dist/storefront-cache.js +8 -0
  54. package/dist/storefront-cache.js.map +1 -1
  55. package/dist/{types-csjaig4G.d.cts → types-Bzgf4mTo.d.cts} +3 -3
  56. package/dist/{types-DnIuxgu2.d.cts → types-CpSiyJud.d.cts} +8 -2
  57. package/dist/{types-AWSVpuPE.d.ts → types-DX8Z44yQ.d.ts} +8 -2
  58. package/dist/{types-CLRw0aDa.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".
@@ -1870,6 +1870,14 @@ interface Product {
1870
1870
  * Maximum order quantity.
1871
1871
  */
1872
1872
  maxOrderQuantity?: number | null;
1873
+ /**
1874
+ * All variants combined, including committed orders and ongoing checkouts. Leave empty for no limit.
1875
+ */
1876
+ maxQuantityPerCustomer?: number | null;
1877
+ /**
1878
+ * Leave empty to allow anyone to purchase. Otherwise a signed-in customer must currently qualify for one of these groups. Catalog visibility is unchanged.
1879
+ */
1880
+ allowedCustomerGroups?: (string | CustomerGroup)[] | null;
1873
1881
  /**
1874
1882
  * Vendor name from external systems.
1875
1883
  */
@@ -3190,6 +3198,9 @@ interface Checkout {
3190
3198
  checkoutTokenCiphertext?: string | null;
3191
3199
  createIdempotencyKey?: string | null;
3192
3200
  createRequestFingerprint?: string | null;
3201
+ purchasePolicyEvidence?: {
3202
+ [k: string]: unknown;
3203
+ } | unknown[] | string | number | boolean | null;
3193
3204
  admissionEligibilityFreeze?: {
3194
3205
  [k: string]: unknown;
3195
3206
  } | unknown[] | string | number | boolean | null;
@@ -4723,6 +4734,7 @@ interface PersonalAccessToken {
4723
4734
  */
4724
4735
  interface AuditLog {
4725
4736
  id: string;
4737
+ entryKey?: string | null;
4726
4738
  tenant?: (string | null) | Tenant;
4727
4739
  /**
4728
4740
  * Event type
@@ -5718,7 +5730,7 @@ interface Refund {
5718
5730
  tenant?: (string | null) | Tenant;
5719
5731
  order: string | Order;
5720
5732
  return?: (string | null) | Return;
5721
- paymentTransaction: string | Transaction;
5733
+ paymentTransaction?: (string | null) | Transaction;
5722
5734
  refundTransaction?: (string | null) | Transaction;
5723
5735
  status: 'succeeded' | 'failed';
5724
5736
  source: 'return' | 'cancel' | 'operator' | 'adjustment';
@@ -5726,6 +5738,15 @@ interface Refund {
5726
5738
  * Amount in KRW (won)
5727
5739
  */
5728
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;
5729
5750
  /**
5730
5751
  * Amount in KRW (won)
5731
5752
  */
@@ -9334,6 +9355,7 @@ interface PersonalAccessTokensSelect<T extends boolean = true> {
9334
9355
  * via the `definition` "audit-logs_select".
9335
9356
  */
9336
9357
  interface AuditLogsSelect<T extends boolean = true> {
9358
+ entryKey?: T;
9337
9359
  tenant?: T;
9338
9360
  eventType?: T;
9339
9361
  actorId?: T;
@@ -10007,6 +10029,8 @@ interface ProductsSelect<T extends boolean = true> {
10007
10029
  weight?: T;
10008
10030
  minOrderQuantity?: T;
10009
10031
  maxOrderQuantity?: T;
10032
+ maxQuantityPerCustomer?: T;
10033
+ allowedCustomerGroups?: T;
10010
10034
  vendor?: T;
10011
10035
  productType?: T;
10012
10036
  priceRange?: T | {
@@ -10635,6 +10659,9 @@ interface RefundsSelect<T extends boolean = true> {
10635
10659
  status?: T;
10636
10660
  source?: T;
10637
10661
  totalAmount?: T;
10662
+ fundingCheckout?: T;
10663
+ creditAmount?: T;
10664
+ providerAmount?: T;
10638
10665
  lineAmount?: T;
10639
10666
  shippingAmount?: T;
10640
10667
  adjustmentAmount?: T;
@@ -11845,6 +11872,7 @@ interface CheckoutsSelect<T extends boolean = true> {
11845
11872
  checkoutTokenCiphertext?: T;
11846
11873
  createIdempotencyKey?: T;
11847
11874
  createRequestFingerprint?: T;
11875
+ purchasePolicyEvidence?: T;
11848
11876
  admissionEligibilityFreeze?: T;
11849
11877
  providerOrderId?: T;
11850
11878
  cart?: T;
@@ -13854,4 +13882,4 @@ declare module 'payload' {
13854
13882
  }
13855
13883
  }
13856
13884
 
13857
- 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".
@@ -1870,6 +1870,14 @@ interface Product {
1870
1870
  * Maximum order quantity.
1871
1871
  */
1872
1872
  maxOrderQuantity?: number | null;
1873
+ /**
1874
+ * All variants combined, including committed orders and ongoing checkouts. Leave empty for no limit.
1875
+ */
1876
+ maxQuantityPerCustomer?: number | null;
1877
+ /**
1878
+ * Leave empty to allow anyone to purchase. Otherwise a signed-in customer must currently qualify for one of these groups. Catalog visibility is unchanged.
1879
+ */
1880
+ allowedCustomerGroups?: (string | CustomerGroup)[] | null;
1873
1881
  /**
1874
1882
  * Vendor name from external systems.
1875
1883
  */
@@ -3190,6 +3198,9 @@ interface Checkout {
3190
3198
  checkoutTokenCiphertext?: string | null;
3191
3199
  createIdempotencyKey?: string | null;
3192
3200
  createRequestFingerprint?: string | null;
3201
+ purchasePolicyEvidence?: {
3202
+ [k: string]: unknown;
3203
+ } | unknown[] | string | number | boolean | null;
3193
3204
  admissionEligibilityFreeze?: {
3194
3205
  [k: string]: unknown;
3195
3206
  } | unknown[] | string | number | boolean | null;
@@ -4723,6 +4734,7 @@ interface PersonalAccessToken {
4723
4734
  */
4724
4735
  interface AuditLog {
4725
4736
  id: string;
4737
+ entryKey?: string | null;
4726
4738
  tenant?: (string | null) | Tenant;
4727
4739
  /**
4728
4740
  * Event type
@@ -5718,7 +5730,7 @@ interface Refund {
5718
5730
  tenant?: (string | null) | Tenant;
5719
5731
  order: string | Order;
5720
5732
  return?: (string | null) | Return;
5721
- paymentTransaction: string | Transaction;
5733
+ paymentTransaction?: (string | null) | Transaction;
5722
5734
  refundTransaction?: (string | null) | Transaction;
5723
5735
  status: 'succeeded' | 'failed';
5724
5736
  source: 'return' | 'cancel' | 'operator' | 'adjustment';
@@ -5726,6 +5738,15 @@ interface Refund {
5726
5738
  * Amount in KRW (won)
5727
5739
  */
5728
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;
5729
5750
  /**
5730
5751
  * Amount in KRW (won)
5731
5752
  */
@@ -9334,6 +9355,7 @@ interface PersonalAccessTokensSelect<T extends boolean = true> {
9334
9355
  * via the `definition` "audit-logs_select".
9335
9356
  */
9336
9357
  interface AuditLogsSelect<T extends boolean = true> {
9358
+ entryKey?: T;
9337
9359
  tenant?: T;
9338
9360
  eventType?: T;
9339
9361
  actorId?: T;
@@ -10007,6 +10029,8 @@ interface ProductsSelect<T extends boolean = true> {
10007
10029
  weight?: T;
10008
10030
  minOrderQuantity?: T;
10009
10031
  maxOrderQuantity?: T;
10032
+ maxQuantityPerCustomer?: T;
10033
+ allowedCustomerGroups?: T;
10010
10034
  vendor?: T;
10011
10035
  productType?: T;
10012
10036
  priceRange?: T | {
@@ -10635,6 +10659,9 @@ interface RefundsSelect<T extends boolean = true> {
10635
10659
  status?: T;
10636
10660
  source?: T;
10637
10661
  totalAmount?: T;
10662
+ fundingCheckout?: T;
10663
+ creditAmount?: T;
10664
+ providerAmount?: T;
10638
10665
  lineAmount?: T;
10639
10666
  shippingAmount?: T;
10640
10667
  adjustmentAmount?: T;
@@ -11845,6 +11872,7 @@ interface CheckoutsSelect<T extends boolean = true> {
11845
11872
  checkoutTokenCiphertext?: T;
11846
11873
  createIdempotencyKey?: T;
11847
11874
  createRequestFingerprint?: T;
11875
+ purchasePolicyEvidence?: T;
11848
11876
  admissionEligibilityFreeze?: T;
11849
11877
  providerOrderId?: T;
11850
11878
  cart?: T;
@@ -13854,4 +13882,4 @@ declare module 'payload' {
13854
13882
  }
13855
13883
  }
13856
13884
 
13857
- 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,7 +614,13 @@ 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",
623
+ "admission_required",
618
624
  "occurrence_lock_unavailable",
619
625
  "occurrence_not_open",
620
626
  "admission_type_capacity_exceeded",
@@ -633,6 +639,8 @@ var COMMERCE_ERROR_CODES = [
633
639
  "variant_inactive",
634
640
  "variant_product_mismatch",
635
641
  "product_not_public",
642
+ "product_not_eligible",
643
+ "purchase_limit_exceeded",
636
644
  "market_not_found",
637
645
  "market_shipping_currency_unsupported",
638
646
  "missing_market_rate",
@@ -1062,6 +1070,15 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
1062
1070
  };
1063
1071
  var EVENTS_ENDPOINT_OPERATIONS = {
1064
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
+ ),
1065
1082
  listMine: operation("event-registrations", "get", "/my")
1066
1083
  },
1067
1084
  events: {