@01.software/sdk 0.67.0 → 0.68.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 (61) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +122 -6
  3. package/dist/client.cjs +419 -319
  4. package/dist/client.cjs.map +1 -1
  5. package/dist/client.d.cts +11 -6
  6. package/dist/client.d.ts +11 -6
  7. package/dist/client.js +419 -319
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-D4HEOoO_.d.ts → collection-client-IOaWsTMI.d.ts} +4 -4
  10. package/dist/{collection-client-jrNFGbrO.d.cts → collection-client-MbIJ5KzW.d.cts} +4 -4
  11. package/dist/{const-BU79hCFB.d.ts → const-Do27Udj6.d.ts} +2 -2
  12. package/dist/{const-CCQ3MdLE.d.cts → const-Dw5ElJs_.d.cts} +2 -2
  13. package/dist/embedded-admin/server.cjs +16 -1
  14. package/dist/embedded-admin/server.cjs.map +1 -1
  15. package/dist/embedded-admin/server.d.cts +4 -2
  16. package/dist/embedded-admin/server.d.ts +4 -2
  17. package/dist/embedded-admin/server.js +16 -1
  18. package/dist/embedded-admin/server.js.map +1 -1
  19. package/dist/embedded-admin.cjs +19 -0
  20. package/dist/embedded-admin.cjs.map +1 -1
  21. package/dist/embedded-admin.d.cts +7 -1
  22. package/dist/embedded-admin.d.ts +7 -1
  23. package/dist/embedded-admin.js +19 -0
  24. package/dist/embedded-admin.js.map +1 -1
  25. package/dist/errors.d.cts +2 -2
  26. package/dist/errors.d.ts +2 -2
  27. package/dist/{index-CwKxWHIa.d.ts → index-DcYsLOja.d.ts} +3 -3
  28. package/dist/{index-DiyhsVHd.d.cts → index-gnVxTKXu.d.cts} +3 -3
  29. package/dist/index.cjs +424 -323
  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 +424 -323
  34. package/dist/index.js.map +1 -1
  35. package/dist/{payload-types-jdsUXunB.d.cts → payload-types-BY1uZFRf.d.cts} +34 -1
  36. package/dist/{payload-types-jdsUXunB.d.ts → payload-types-BY1uZFRf.d.ts} +34 -1
  37. package/dist/query.cjs +8 -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 +8 -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 +1183 -1071
  46. package/dist/server.cjs.map +1 -1
  47. package/dist/server.d.cts +9 -8
  48. package/dist/server.d.ts +9 -8
  49. package/dist/server.js +1183 -1071
  50. package/dist/server.js.map +1 -1
  51. package/dist/{types-BusejG-v.d.ts → types-AWSVpuPE.d.ts} +2 -2
  52. package/dist/{types-I2k6Laad.d.ts → types-CLRw0aDa.d.ts} +147 -40
  53. package/dist/{types-BPwXAFZ7.d.cts → types-DnIuxgu2.d.cts} +2 -2
  54. package/dist/{types-CvdBV3ri.d.cts → types-csjaig4G.d.cts} +147 -40
  55. package/dist/ui/form.d.cts +1 -1
  56. package/dist/ui/form.d.ts +1 -1
  57. package/dist/ui/video.d.cts +1 -1
  58. package/dist/ui/video.d.ts +1 -1
  59. package/dist/webhook.d.cts +5 -5
  60. package/dist/webhook.d.ts +5 -5
  61. package/package.json +2 -2
package/dist/query.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient, UseQueryResult, UseSuspenseQueryResult, InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
3
- import { i as ApiQueryOptions, P as PayloadFindResponse, cV as PublicReadQueryOptions, L as PayloadMutationResponse, cW as CustomerAuth, cX as CustomerProfile, cY as CustomerAuthResponse, cZ as CustomerLoginData, c_ as CustomerRegisterResponse, c$ as CustomerRegisterData, d0 as CustomerRefreshResponse, d1 as UpdateProfileData, d2 as ProductListingPageParams, d3 as ProductListingPageBaseParams, d4 as ProductDetailParams, d5 as ProductDetailCatalogResult, d6 as ProductListingPageCatalogParams, d7 as ProductListingPageResult, d8 as ProductListingGroupsCatalogItem, d9 as ProductListingPageFullParams, da as ProductListingGroupsItem, al as RootClient, cu as RootServerClient } from './types-CvdBV3ri.cjs';
4
- import './payload-types-jdsUXunB.cjs';
5
- import { S as ServerCollection, P as PublicCollection } from './const-CCQ3MdLE.cjs';
6
- import { C as CollectionClient } from './collection-client-jrNFGbrO.cjs';
7
- import { C as CollectionType } from './types-BPwXAFZ7.cjs';
3
+ import { cN as ApiQueryOptions, cX as PayloadFindResponse, dd as PublicReadQueryOptions, cY as PayloadMutationResponse, de as CustomerAuth, df as CustomerProfile, dg as CustomerAuthResponse, dh as CustomerLoginData, di as CustomerRegisterResponse, dj as CustomerRegisterData, dk as CustomerRefreshResponse, dl as UpdateProfileData, dm as ProductListingPageParams, dn as ProductListingPageBaseParams, dp as ProductDetailParams, dq as ProductDetailCatalogResult, dr as ProductListingPageCatalogParams, ds as ProductListingPageResult, dt as ProductListingGroupsCatalogItem, du as ProductListingPageFullParams, dv as ProductListingGroupsItem, c$ as RootClient, c8 as RootServerClient } from './types-csjaig4G.cjs';
4
+ import './payload-types-BY1uZFRf.cjs';
5
+ import { S as ServerCollection, P as PublicCollection } from './const-Dw5ElJs_.cjs';
6
+ import { C as CollectionClient } from './collection-client-MbIJ5KzW.cjs';
7
+ import { C as CollectionType } from './types-DnIuxgu2.cjs';
8
8
  import { SDKError } from './errors.cjs';
9
9
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
10
10
  import './metadata.cjs';
package/dist/query.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { QueryClient, UseQueryResult, UseSuspenseQueryResult, InfiniteData, UseInfiniteQueryResult, UseSuspenseInfiniteQueryResult } from '@tanstack/react-query';
3
- import { i as ApiQueryOptions, P as PayloadFindResponse, cV as PublicReadQueryOptions, L as PayloadMutationResponse, cW as CustomerAuth, cX as CustomerProfile, cY as CustomerAuthResponse, cZ as CustomerLoginData, c_ as CustomerRegisterResponse, c$ as CustomerRegisterData, d0 as CustomerRefreshResponse, d1 as UpdateProfileData, d2 as ProductListingPageParams, d3 as ProductListingPageBaseParams, d4 as ProductDetailParams, d5 as ProductDetailCatalogResult, d6 as ProductListingPageCatalogParams, d7 as ProductListingPageResult, d8 as ProductListingGroupsCatalogItem, d9 as ProductListingPageFullParams, da as ProductListingGroupsItem, al as RootClient, cu as RootServerClient } from './types-I2k6Laad.js';
4
- import './payload-types-jdsUXunB.js';
5
- import { S as ServerCollection, P as PublicCollection } from './const-BU79hCFB.js';
6
- import { C as CollectionClient } from './collection-client-D4HEOoO_.js';
7
- import { C as CollectionType } from './types-BusejG-v.js';
3
+ import { cN as ApiQueryOptions, cX as PayloadFindResponse, dd as PublicReadQueryOptions, cY as PayloadMutationResponse, de as CustomerAuth, df as CustomerProfile, dg as CustomerAuthResponse, dh as CustomerLoginData, di as CustomerRegisterResponse, dj as CustomerRegisterData, dk as CustomerRefreshResponse, dl as UpdateProfileData, dm as ProductListingPageParams, dn as ProductListingPageBaseParams, dp as ProductDetailParams, dq as ProductDetailCatalogResult, dr as ProductListingPageCatalogParams, ds as ProductListingPageResult, dt as ProductListingGroupsCatalogItem, du as ProductListingPageFullParams, dv as ProductListingGroupsItem, c$ as RootClient, c8 as RootServerClient } from './types-CLRw0aDa.js';
4
+ import './payload-types-BY1uZFRf.js';
5
+ import { S as ServerCollection, P as PublicCollection } from './const-Do27Udj6.js';
6
+ import { C as CollectionClient } from './collection-client-IOaWsTMI.js';
7
+ import { C as CollectionType } from './types-AWSVpuPE.js';
8
8
  import { SDKError } from './errors.js';
9
9
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
10
10
  import './metadata.js';
package/dist/query.js CHANGED
@@ -1007,6 +1007,14 @@ var EXTERNAL_CUSTOMER_LINK_ENDPOINT_OPERATIONS = {
1007
1007
  "/external-links/clear-previous-state"
1008
1008
  )
1009
1009
  };
1010
+ var BENEFIT_VOUCHER_ENDPOINT_OPERATIONS = {
1011
+ issue: operation("customers", "post", "/benefit-vouchers/issue"),
1012
+ get: operation("customers", "post", "/benefit-vouchers/get"),
1013
+ list: operation("customers", "post", "/benefit-vouchers/list"),
1014
+ redeem: operation("customers", "post", "/benefit-vouchers/redeem"),
1015
+ void: operation("customers", "post", "/benefit-vouchers/void"),
1016
+ listMine: operation("customers", "get", "/me/benefit-vouchers")
1017
+ };
1010
1018
  var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
1011
1019
  members: operation("customer-groups", "get", "/:id/members"),
1012
1020
  grant: operation("customer-groups", "post", "/:id/members/grant"),