@01.software/sdk 0.68.0 → 0.69.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 (65) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -0
  3. package/dist/client.cjs +3 -0
  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 +3 -0
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-IOaWsTMI.d.ts → collection-client-C2VGBnCC.d.ts} +4 -4
  10. package/dist/{collection-client-MbIJ5KzW.d.cts → collection-client-DvWkDxSM.d.cts} +4 -4
  11. package/dist/{const-Dw5ElJs_.d.cts → const-AtPEgg__.d.cts} +1 -1
  12. package/dist/{const-Do27Udj6.d.ts → const-DR96Chal.d.ts} +1 -1
  13. package/dist/embedded-admin/server.cjs +3 -0
  14. package/dist/embedded-admin/server.cjs.map +1 -1
  15. package/dist/embedded-admin/server.js +3 -0
  16. package/dist/embedded-admin/server.js.map +1 -1
  17. package/dist/embedded-admin.cjs +3 -0
  18. package/dist/embedded-admin.cjs.map +1 -1
  19. package/dist/embedded-admin.js +3 -0
  20. package/dist/embedded-admin.js.map +1 -1
  21. package/dist/errors.cjs +3 -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 +3 -0
  26. package/dist/errors.js.map +1 -1
  27. package/dist/{index-gnVxTKXu.d.cts → index-Ce11c_Oh.d.cts} +3 -3
  28. package/dist/{index-DcYsLOja.d.ts → index-D8fmTrZk.d.ts} +3 -3
  29. package/dist/index.cjs +3 -0
  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 +3 -0
  34. package/dist/index.js.map +1 -1
  35. package/dist/{payload-types-BY1uZFRf.d.cts → payload-types-rhnw3rR8.d.cts} +14 -0
  36. package/dist/{payload-types-BY1uZFRf.d.ts → payload-types-rhnw3rR8.d.ts} +14 -0
  37. package/dist/query.cjs +3 -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 +3 -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 +3 -0
  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 +3 -0
  50. package/dist/server.js.map +1 -1
  51. package/dist/storefront-cache.cjs +3 -0
  52. package/dist/storefront-cache.cjs.map +1 -1
  53. package/dist/storefront-cache.js +3 -0
  54. package/dist/storefront-cache.js.map +1 -1
  55. package/dist/{types-csjaig4G.d.cts → types-B99utaKU.d.cts} +3 -3
  56. package/dist/{types-DnIuxgu2.d.cts → types-BR0D4AaW.d.cts} +2 -2
  57. package/dist/{types-AWSVpuPE.d.ts → types-CHK8VIPa.d.ts} +2 -2
  58. package/dist/{types-CLRw0aDa.d.ts → types-L0xmn_iT.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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @01.software/sdk
2
2
 
3
+ ## 0.69.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 88a5db7: 상품의 고객별 누적 구매 한도 타입과 `purchase_limit_exceeded` 오류 reason을 추가합니다.
8
+
9
+ 운영 주의: 애플리케이션을 rollback하면 이 상한 집행이 사라집니다. **rollback 전 한도 상품 판매 중지**가 필요합니다. 스키마 마이그레이션은 forward-only이며, 컬럼·미검증 CHECK 추가 → CHECK 검증 → 트랜잭션 밖 동시 인덱스 생성 순서로 적용합니다.
10
+
11
+ - 349785e: Add the `product_not_eligible` commerce reason for products restricted to eligible Customer Groups. Restricted purchases require a Customer-bound Cart and verified Customer session or server delegation; unrestricted products retain existing behavior.
12
+ - 7488329: Add the stable `admission_required` error reason for public event registration.
13
+ RSVP/approval registration now rejects applicable non-deleted admission types,
14
+ including inactive, out-of-sale and zero-price types. Use the admission purchase
15
+ flow for these events; the SDK preserves the 409 reason without retrying.
16
+
3
17
  ## 0.68.0
4
18
 
5
19
  ### Minor Changes
package/README.md CHANGED
@@ -2659,3 +2659,5 @@ Reuse the same sourceNamespace/sourceRef and identical issue input on an unknown
2659
2659
  `client.benefitVouchers.listMine({ status: 'available', limit: 20 })` uses the Customer JWT and returns only identity, customer-visible copy, state and timestamps. Use `status: 'all'` for history and the returned `nextCursor` for another page (maximum 100). The response is private, no-store. Server lists return the server DTO and require customerId; cross-customer/tenant targets are masked as 404. Console customer detail shows a read-only list; Console action buttons follow separately.
2660
2660
 
2661
2661
  The staff app server must verify the staff member and Customer before redeeming: voucherId is not a bearer capability. `actorRef` is app-attested evidence, never a platform-verified staff identity or an authorization input. Use opaque references without personal data in sourceRef and actorRef. Definitions snapshot name, description and expiry at issue; later edits do not change issued vouchers. Voucher history survives Customer erasure and blocks tenant hard deletion. Referenced definitions must be archived.
2662
+
2663
+ Product purchase quantity policies are enforced by Console at Cart ingress and Checkout creation. A product's optional `maxQuantityPerCustomer` combines all variants, committed Orders minus completed Returns, and open Checkouts. Limited products require a verified Customer; delegated server purchases use the existing `customerToken`. Handle `409 purchase_limit_exceeded` by its scalar `details.productId`, `maxQuantityPerCustomer` and `remainingQuantity`; guests receive `product_not_eligible`. See the [Commerce guide](https://docs.01.software/en/commerce).
package/dist/client.cjs CHANGED
@@ -154,6 +154,7 @@ var COMMERCE_ERROR_CODES = [
154
154
  "admission_metadata_invalid",
155
155
  "admission_metadata_required",
156
156
  "capacity_exceeded",
157
+ "admission_required",
157
158
  "occurrence_lock_unavailable",
158
159
  "occurrence_not_open",
159
160
  "admission_type_capacity_exceeded",
@@ -172,6 +173,8 @@ var COMMERCE_ERROR_CODES = [
172
173
  "variant_inactive",
173
174
  "variant_product_mismatch",
174
175
  "product_not_public",
176
+ "product_not_eligible",
177
+ "purchase_limit_exceeded",
175
178
  "market_not_found",
176
179
  "market_shipping_currency_unsupported",
177
180
  "missing_market_rate",