@01.software/sdk 0.51.0 → 0.56.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 (51) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/README.md +54 -11
  3. package/dist/client.cjs +420 -53
  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 +420 -53
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-hYvVfHIm.d.ts → collection-client-Bmr53saa.d.ts} +4 -4
  10. package/dist/{collection-client-CWAeuzV4.d.cts → collection-client-DxuBDso_.d.cts} +4 -4
  11. package/dist/{const-D8LixhAJ.d.cts → const-BKUqg96Q.d.ts} +2 -2
  12. package/dist/{const-JD8obaKg.d.ts → const-Cv1DCsp6.d.cts} +2 -2
  13. package/dist/{index-Bu0kCc6o.d.cts → index-CGsT4AQ8.d.cts} +24 -7
  14. package/dist/{index-B0Hjh3Ey.d.ts → index-DFHLLqYu.d.ts} +24 -7
  15. package/dist/index.cjs +434 -55
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +11 -10
  18. package/dist/index.d.ts +11 -10
  19. package/dist/index.js +434 -55
  20. package/dist/index.js.map +1 -1
  21. package/dist/{payload-types-BOsckg8B.d.cts → payload-types-Bk-duc5k.d.cts} +295 -100
  22. package/dist/{payload-types-BOsckg8B.d.ts → payload-types-Bk-duc5k.d.ts} +295 -100
  23. package/dist/query.cjs +14 -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 +14 -1
  28. package/dist/query.js.map +1 -1
  29. package/dist/realtime.d.cts +2 -2
  30. package/dist/realtime.d.ts +2 -2
  31. package/dist/server.cjs +98 -13
  32. package/dist/server.cjs.map +1 -1
  33. package/dist/server.d.cts +9 -8
  34. package/dist/server.d.ts +9 -8
  35. package/dist/server.js +98 -13
  36. package/dist/server.js.map +1 -1
  37. package/dist/{types-Bj8j7VHU.d.ts → types-CEK8uTvU.d.ts} +212 -11
  38. package/dist/{types-B14sEt1z.d.cts → types-CNdpj2fI.d.cts} +2 -2
  39. package/dist/{types-5ZlcAFuU.d.ts → types-D4mjGFj4.d.ts} +2 -2
  40. package/dist/{types-CM5qiR2k.d.cts → types-Dhk5NX7Z.d.cts} +212 -11
  41. package/dist/ui/form.d.cts +1 -1
  42. package/dist/ui/form.d.ts +1 -1
  43. package/dist/ui/video.d.cts +1 -1
  44. package/dist/ui/video.d.ts +1 -1
  45. package/dist/webhook.cjs +13 -2
  46. package/dist/webhook.cjs.map +1 -1
  47. package/dist/webhook.d.cts +5 -5
  48. package/dist/webhook.d.ts +5 -5
  49. package/dist/webhook.js +13 -2
  50. package/dist/webhook.js.map +1 -1
  51. package/package.json +6 -5
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, c4 as PublicReadQueryOptions, L as PayloadMutationResponse, c5 as CustomerAuth, c6 as CustomerProfile, c7 as CustomerAuthResponse, c8 as CustomerLoginData, c9 as CustomerRegisterResponse, ca as CustomerRegisterData, cb as CustomerRefreshResponse, cc as UpdateProfileData, cd as ProductListingPageParams, ce as ProductListingPageBaseParams, cf as ProductDetailParams, cg as ProductDetailCatalogResult, ch as ProductListingPageCatalogParams, ci as ProductListingPageResult, cj as ProductListingGroupsCatalogItem, ck as ProductListingPageFullParams, cl as ProductListingGroupsItem, al as RootClient, bL as RootServerClient } from './types-CM5qiR2k.cjs';
4
- import './payload-types-BOsckg8B.cjs';
5
- import { S as ServerCollection, P as PublicCollection } from './const-D8LixhAJ.cjs';
6
- import { C as CollectionClient } from './collection-client-CWAeuzV4.cjs';
7
- import { C as CollectionType } from './types-B14sEt1z.cjs';
3
+ import { i as ApiQueryOptions, P as PayloadFindResponse, cg as PublicReadQueryOptions, L as PayloadMutationResponse, ch as CustomerAuth, ci as CustomerProfile, cj as CustomerAuthResponse, ck as CustomerLoginData, cl as CustomerRegisterResponse, cm as CustomerRegisterData, cn as CustomerRefreshResponse, co as UpdateProfileData, cp as ProductListingPageParams, cq as ProductListingPageBaseParams, cr as ProductDetailParams, cs as ProductDetailCatalogResult, ct as ProductListingPageCatalogParams, cu as ProductListingPageResult, cv as ProductListingGroupsCatalogItem, cw as ProductListingPageFullParams, cx as ProductListingGroupsItem, al as RootClient, bX as RootServerClient } from './types-Dhk5NX7Z.cjs';
4
+ import './payload-types-Bk-duc5k.cjs';
5
+ import { S as ServerCollection, P as PublicCollection } from './const-Cv1DCsp6.cjs';
6
+ import { C as CollectionClient } from './collection-client-DxuBDso_.cjs';
7
+ import { C as CollectionType } from './types-CNdpj2fI.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, c4 as PublicReadQueryOptions, L as PayloadMutationResponse, c5 as CustomerAuth, c6 as CustomerProfile, c7 as CustomerAuthResponse, c8 as CustomerLoginData, c9 as CustomerRegisterResponse, ca as CustomerRegisterData, cb as CustomerRefreshResponse, cc as UpdateProfileData, cd as ProductListingPageParams, ce as ProductListingPageBaseParams, cf as ProductDetailParams, cg as ProductDetailCatalogResult, ch as ProductListingPageCatalogParams, ci as ProductListingPageResult, cj as ProductListingGroupsCatalogItem, ck as ProductListingPageFullParams, cl as ProductListingGroupsItem, al as RootClient, bL as RootServerClient } from './types-Bj8j7VHU.js';
4
- import './payload-types-BOsckg8B.js';
5
- import { S as ServerCollection, P as PublicCollection } from './const-JD8obaKg.js';
6
- import { C as CollectionClient } from './collection-client-hYvVfHIm.js';
7
- import { C as CollectionType } from './types-5ZlcAFuU.js';
3
+ import { i as ApiQueryOptions, P as PayloadFindResponse, cg as PublicReadQueryOptions, L as PayloadMutationResponse, ch as CustomerAuth, ci as CustomerProfile, cj as CustomerAuthResponse, ck as CustomerLoginData, cl as CustomerRegisterResponse, cm as CustomerRegisterData, cn as CustomerRefreshResponse, co as UpdateProfileData, cp as ProductListingPageParams, cq as ProductListingPageBaseParams, cr as ProductDetailParams, cs as ProductDetailCatalogResult, ct as ProductListingPageCatalogParams, cu as ProductListingPageResult, cv as ProductListingGroupsCatalogItem, cw as ProductListingPageFullParams, cx as ProductListingGroupsItem, al as RootClient, bX as RootServerClient } from './types-CEK8uTvU.js';
4
+ import './payload-types-Bk-duc5k.js';
5
+ import { S as ServerCollection, P as PublicCollection } from './const-BKUqg96Q.js';
6
+ import { C as CollectionClient } from './collection-client-Bmr53saa.js';
7
+ import { C as CollectionType } from './types-D4mjGFj4.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
@@ -861,6 +861,11 @@ var COMMERCE_ENDPOINT_OPERATIONS = {
861
861
  detail: strictCommerceOperation("checkouts", "post", "/detail"),
862
862
  query: strictCommerceOperation("checkouts", "post", "/query")
863
863
  },
864
+ draftOrders: {
865
+ calculate: operation("draft-orders", "post", "/:id/calculate"),
866
+ complete: operation("draft-orders", "post", "/:id/complete"),
867
+ finalize: operation("draft-orders", "post", "/:id/finalize")
868
+ },
864
869
  transactions: {
865
870
  update: operation("transactions", "post", "/update")
866
871
  },
@@ -961,7 +966,15 @@ var portOneStandardActionCapabilityOperations = /* @__PURE__ */ new Set([
961
966
  var MEMBERSHIP_ENDPOINT_OPERATIONS = {
962
967
  subscribe: operation(null, "post", "/memberships/subscribe"),
963
968
  cancel: operation(null, "post", "/memberships/:id/cancel"),
964
- me: operation(null, "get", "/memberships/me")
969
+ me: operation(null, "get", "/memberships/me"),
970
+ chargeResult: operation(null, "post", "/memberships/:id/charge-result"),
971
+ refundResult: operation(null, "post", "/memberships/:id/refund-result"),
972
+ revoke: operation(null, "post", "/memberships/:id/revoke")
973
+ };
974
+ var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
975
+ members: operation("customer-groups", "get", "/:id/members"),
976
+ grant: operation("customer-groups", "post", "/:id/members/grant"),
977
+ revoke: operation("customer-groups", "post", "/:id/members/revoke")
965
978
  };
966
979
  var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
967
980
  show: operation("tenants", "get", "/embedded-admin-app"),