@01.software/sdk 0.45.0 → 0.46.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 (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/MIGRATION.md +19 -0
  3. package/README.md +49 -4
  4. package/dist/client.cjs +13 -0
  5. package/dist/client.cjs.map +1 -1
  6. package/dist/client.d.cts +6 -6
  7. package/dist/client.d.ts +6 -6
  8. package/dist/client.js +13 -0
  9. package/dist/client.js.map +1 -1
  10. package/dist/{collection-client-Ckfusuee.d.ts → collection-client-BEGXnfQe.d.ts} +4 -4
  11. package/dist/{collection-client-BSo7VXQE.d.cts → collection-client-L2rEgBaR.d.cts} +4 -4
  12. package/dist/{const-CaPq2AE4.d.ts → const-GYVwlXLr.d.ts} +1 -1
  13. package/dist/{const-BAG0MH0u.d.cts → const-y0eipvnQ.d.cts} +1 -1
  14. package/dist/{index-BNICJxBL.d.ts → index-Bei4WlVw.d.ts} +3 -3
  15. package/dist/{index-YGrZrxNn.d.cts → index-BfYL6Qb1.d.cts} +3 -3
  16. package/dist/index.cjs +13 -0
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +7 -7
  19. package/dist/index.d.ts +7 -7
  20. package/dist/index.js +13 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/{payload-types-CJZuXcgF.d.cts → payload-types-3WNyC0gk.d.cts} +5 -0
  23. package/dist/{payload-types-CJZuXcgF.d.ts → payload-types-3WNyC0gk.d.ts} +5 -0
  24. package/dist/query.cjs +8 -0
  25. package/dist/query.cjs.map +1 -1
  26. package/dist/query.d.cts +5 -5
  27. package/dist/query.d.ts +5 -5
  28. package/dist/query.js +8 -0
  29. package/dist/query.js.map +1 -1
  30. package/dist/realtime.d.cts +2 -2
  31. package/dist/realtime.d.ts +2 -2
  32. package/dist/server.cjs +99 -1
  33. package/dist/server.cjs.map +1 -1
  34. package/dist/server.d.cts +7 -7
  35. package/dist/server.d.ts +7 -7
  36. package/dist/server.js +99 -1
  37. package/dist/server.js.map +1 -1
  38. package/dist/{types-D5p7-m1l.d.cts → types-CAicTn-o.d.cts} +2 -2
  39. package/dist/{types-C4WuJfw7.d.cts → types-CDJ2M-MJ.d.cts} +43 -4
  40. package/dist/{types-BC6rVmJa.d.ts → types-DpSyNTxy.d.ts} +2 -2
  41. package/dist/{types-BlOvjoTX.d.ts → types-mIROvhhP.d.ts} +43 -4
  42. package/dist/ui/form.d.cts +1 -1
  43. package/dist/ui/form.d.ts +1 -1
  44. package/dist/ui/video.d.cts +1 -1
  45. package/dist/ui/video.d.ts +1 -1
  46. package/dist/webhook.d.cts +4 -4
  47. package/dist/webhook.d.ts +4 -4
  48. package/package.json +3 -3
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, bI as PublicReadQueryOptions, K as PayloadMutationResponse, bJ as CustomerAuth, bK as CustomerProfile, bL as CustomerAuthResponse, bM as CustomerLoginData, bN as CustomerRegisterResponse, bO as CustomerRegisterData, bP as CustomerRefreshResponse, bQ as UpdateProfileData, bR as ProductListingPageParams, bS as ProductListingPageBaseParams, bT as ProductDetailParams, bU as ProductDetailCatalogResult, bV as ProductListingPageCatalogParams, bW as ProductListingPageResult, bX as ProductListingGroupsCatalogItem, bY as ProductListingPageFullParams, bZ as ProductListingGroupsItem, ah as RootClient, bp as RootServerClient } from './types-C4WuJfw7.cjs';
4
- import './payload-types-CJZuXcgF.cjs';
5
- import { S as ServerCollection, P as PublicCollection } from './const-BAG0MH0u.cjs';
6
- import { C as CollectionClient } from './collection-client-BSo7VXQE.cjs';
7
- import { C as CollectionType } from './types-D5p7-m1l.cjs';
3
+ import { i as ApiQueryOptions, P as PayloadFindResponse, bO as PublicReadQueryOptions, K as PayloadMutationResponse, bP as CustomerAuth, bQ as CustomerProfile, bR as CustomerAuthResponse, bS as CustomerLoginData, bT as CustomerRegisterResponse, bU as CustomerRegisterData, bV as CustomerRefreshResponse, bW as UpdateProfileData, bX as ProductListingPageParams, bY as ProductListingPageBaseParams, bZ as ProductDetailParams, b_ as ProductDetailCatalogResult, b$ as ProductListingPageCatalogParams, c0 as ProductListingPageResult, c1 as ProductListingGroupsCatalogItem, c2 as ProductListingPageFullParams, c3 as ProductListingGroupsItem, ah as RootClient, bv as RootServerClient } from './types-CDJ2M-MJ.cjs';
4
+ import './payload-types-3WNyC0gk.cjs';
5
+ import { S as ServerCollection, P as PublicCollection } from './const-y0eipvnQ.cjs';
6
+ import { C as CollectionClient } from './collection-client-L2rEgBaR.cjs';
7
+ import { C as CollectionType } from './types-CAicTn-o.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, bI as PublicReadQueryOptions, K as PayloadMutationResponse, bJ as CustomerAuth, bK as CustomerProfile, bL as CustomerAuthResponse, bM as CustomerLoginData, bN as CustomerRegisterResponse, bO as CustomerRegisterData, bP as CustomerRefreshResponse, bQ as UpdateProfileData, bR as ProductListingPageParams, bS as ProductListingPageBaseParams, bT as ProductDetailParams, bU as ProductDetailCatalogResult, bV as ProductListingPageCatalogParams, bW as ProductListingPageResult, bX as ProductListingGroupsCatalogItem, bY as ProductListingPageFullParams, bZ as ProductListingGroupsItem, ah as RootClient, bp as RootServerClient } from './types-BlOvjoTX.js';
4
- import './payload-types-CJZuXcgF.js';
5
- import { S as ServerCollection, P as PublicCollection } from './const-CaPq2AE4.js';
6
- import { C as CollectionClient } from './collection-client-Ckfusuee.js';
7
- import { C as CollectionType } from './types-BC6rVmJa.js';
3
+ import { i as ApiQueryOptions, P as PayloadFindResponse, bO as PublicReadQueryOptions, K as PayloadMutationResponse, bP as CustomerAuth, bQ as CustomerProfile, bR as CustomerAuthResponse, bS as CustomerLoginData, bT as CustomerRegisterResponse, bU as CustomerRegisterData, bV as CustomerRefreshResponse, bW as UpdateProfileData, bX as ProductListingPageParams, bY as ProductListingPageBaseParams, bZ as ProductDetailParams, b_ as ProductDetailCatalogResult, b$ as ProductListingPageCatalogParams, c0 as ProductListingPageResult, c1 as ProductListingGroupsCatalogItem, c2 as ProductListingPageFullParams, c3 as ProductListingGroupsItem, ah as RootClient, bv as RootServerClient } from './types-mIROvhhP.js';
4
+ import './payload-types-3WNyC0gk.js';
5
+ import { S as ServerCollection, P as PublicCollection } from './const-GYVwlXLr.js';
6
+ import { C as CollectionClient } from './collection-client-BEGXnfQe.js';
7
+ import { C as CollectionType } from './types-DpSyNTxy.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
@@ -962,6 +962,14 @@ var COMMERCE_ENDPOINTS = {
962
962
  create: endpoint("POST", "/api/payment-sessions/create"),
963
963
  retrieve: endpoint("POST", "/api/payment-sessions/retrieve"),
964
964
  cancel: endpoint("POST", "/api/payment-sessions/cancel"),
965
+ custom: {
966
+ create: sharedEndpoint(
967
+ COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.create
968
+ ),
969
+ confirm: sharedEndpoint(
970
+ COMMERCE_ENDPOINT_OPERATIONS.paymentSessions.custom.confirm
971
+ )
972
+ },
965
973
  server: {
966
974
  create: endpoint("POST", "/api/payment-sessions/server/create"),
967
975
  retrieve: endpoint("POST", "/api/payment-sessions/server/retrieve"),