@01.software/sdk 0.32.0 → 0.33.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 (46) hide show
  1. package/README.md +43 -20
  2. package/dist/client.cjs +31 -2
  3. package/dist/client.cjs.map +1 -1
  4. package/dist/client.d.cts +6 -6
  5. package/dist/client.d.ts +6 -6
  6. package/dist/client.js +31 -2
  7. package/dist/client.js.map +1 -1
  8. package/dist/{collection-client-DPGXnhoF.d.ts → collection-client-B6SlhzIP.d.ts} +3 -3
  9. package/dist/{collection-client-CORhppPb.d.cts → collection-client-De6eKW1J.d.cts} +3 -3
  10. package/dist/{const-Brk2Ff0q.d.cts → const-DwmSDeWq.d.ts} +2 -2
  11. package/dist/{const-DcY2_z9O.d.ts → const-sPR2IkCe.d.cts} +2 -2
  12. package/dist/index.cjs +256 -90
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +7 -7
  15. package/dist/index.d.ts +7 -7
  16. package/dist/index.js +256 -90
  17. package/dist/index.js.map +1 -1
  18. package/dist/{payload-types-DVK1QCeU.d.cts → payload-types-dkeQyrDC.d.cts} +1562 -1436
  19. package/dist/{payload-types-DVK1QCeU.d.ts → payload-types-dkeQyrDC.d.ts} +1562 -1436
  20. package/dist/query.cjs.map +1 -1
  21. package/dist/query.d.cts +9 -9
  22. package/dist/query.d.ts +9 -9
  23. package/dist/query.js.map +1 -1
  24. package/dist/realtime.d.cts +2 -2
  25. package/dist/realtime.d.ts +2 -2
  26. package/dist/server.cjs +37 -6
  27. package/dist/server.cjs.map +1 -1
  28. package/dist/server.d.cts +7 -7
  29. package/dist/server.d.ts +7 -7
  30. package/dist/server.js +37 -6
  31. package/dist/server.js.map +1 -1
  32. package/dist/{types-ByMrR_Z_.d.cts → types-B3YT092I.d.cts} +1 -1
  33. package/dist/{types-CYMSBkJC.d.ts → types-BHh0YLmq.d.ts} +27 -10
  34. package/dist/{types-CAkWqIr6.d.cts → types-BZKxss8Y.d.cts} +27 -10
  35. package/dist/{types-DUPC7Xn6.d.ts → types-Cel_4L9t.d.ts} +1 -1
  36. package/dist/ui/form.d.cts +1 -1
  37. package/dist/ui/form.d.ts +1 -1
  38. package/dist/ui/video.d.cts +1 -1
  39. package/dist/ui/video.d.ts +1 -1
  40. package/dist/webhook.cjs +94 -0
  41. package/dist/webhook.cjs.map +1 -1
  42. package/dist/webhook.d.cts +82 -7
  43. package/dist/webhook.d.ts +82 -7
  44. package/dist/webhook.js +94 -0
  45. package/dist/webhook.js.map +1 -1
  46. package/package.json +1 -1
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 { A as ApiQueryOptions, P as PayloadFindResponse, g as PayloadMutationResponse, J as CustomerAuth, N as CustomerProfile, L as CustomerAuthResponse, M as CustomerLoginData, T as CustomerRegisterResponse, Q as CustomerRegisterData, O as CustomerRefreshResponse, aZ as UpdateProfileData, ad as ProductDetailParams, a4 as ProductDetail, aq as ProductListingGroupsItem, h as RootClient } from './types-CAkWqIr6.cjs';
4
- import './payload-types-DVK1QCeU.cjs';
5
- import { C as CollectionClient } from './collection-client-CORhppPb.cjs';
6
- import { c as ServerCollection, P as PublicCollection } from './const-Brk2Ff0q.cjs';
7
- import { C as CollectionType } from './types-ByMrR_Z_.cjs';
3
+ import { A as ApiQueryOptions, P as PayloadFindResponse, g as PayloadMutationResponse, J as CustomerAuth, N as CustomerProfile, L as CustomerAuthResponse, M as CustomerLoginData, T as CustomerRegisterResponse, Q as CustomerRegisterData, O as CustomerRefreshResponse, b1 as UpdateProfileData, ad as ProductDetailParams, ae as ProductDetailResult, at as ProductListingGroupsItem, h as RootClient } from './types-BZKxss8Y.cjs';
4
+ import './payload-types-dkeQyrDC.cjs';
5
+ import { C as CollectionClient } from './collection-client-De6eKW1J.cjs';
6
+ import { c as ServerCollection, P as PublicCollection } from './const-sPR2IkCe.cjs';
7
+ import { C as CollectionType } from './types-B3YT092I.cjs';
8
8
  import { S as SDKError } from './index-BGEhoDUs.cjs';
9
9
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.cjs';
10
10
  import { ServerClient } from './server.cjs';
@@ -150,7 +150,7 @@ type ReadOnlyQueryHooks = Omit<QueryHooks<PublicCollection>, 'useCreate' | 'useU
150
150
  */
151
151
  interface ProductDetailCallable {
152
152
  product: {
153
- detail: (params: ProductDetailParams) => Promise<ProductDetail | null>;
153
+ detail: (params: ProductDetailParams) => Promise<ProductDetailResult>;
154
154
  };
155
155
  }
156
156
  declare class QueryHooks<TCollection extends ServerCollection = PublicCollection> extends CollectionHooks<TCollection> {
@@ -201,13 +201,13 @@ declare class QueryHooks<TCollection extends ServerCollection = PublicCollection
201
201
  id: string;
202
202
  }, options?: {
203
203
  enabled?: boolean;
204
- }): UseQueryResult<ProductDetail | null>;
204
+ }): UseQueryResult<ProductDetailResult>;
205
205
  useProductDetailBySlug(slug: string, options?: {
206
206
  enabled?: boolean;
207
- }): UseQueryResult<ProductDetail | null>;
207
+ }): UseQueryResult<ProductDetailResult>;
208
208
  useProductDetailById(id: string, options?: {
209
209
  enabled?: boolean;
210
- }): UseQueryResult<ProductDetail | null>;
210
+ }): UseQueryResult<ProductDetailResult>;
211
211
  }
212
212
 
213
213
  declare function collectionKeys<T extends ServerCollection>(collection: T): {
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 { A as ApiQueryOptions, P as PayloadFindResponse, g as PayloadMutationResponse, J as CustomerAuth, N as CustomerProfile, L as CustomerAuthResponse, M as CustomerLoginData, T as CustomerRegisterResponse, Q as CustomerRegisterData, O as CustomerRefreshResponse, aZ as UpdateProfileData, ad as ProductDetailParams, a4 as ProductDetail, aq as ProductListingGroupsItem, h as RootClient } from './types-CYMSBkJC.js';
4
- import './payload-types-DVK1QCeU.js';
5
- import { C as CollectionClient } from './collection-client-DPGXnhoF.js';
6
- import { c as ServerCollection, P as PublicCollection } from './const-DcY2_z9O.js';
7
- import { C as CollectionType } from './types-DUPC7Xn6.js';
3
+ import { A as ApiQueryOptions, P as PayloadFindResponse, g as PayloadMutationResponse, J as CustomerAuth, N as CustomerProfile, L as CustomerAuthResponse, M as CustomerLoginData, T as CustomerRegisterResponse, Q as CustomerRegisterData, O as CustomerRefreshResponse, b1 as UpdateProfileData, ad as ProductDetailParams, ae as ProductDetailResult, at as ProductListingGroupsItem, h as RootClient } from './types-BHh0YLmq.js';
4
+ import './payload-types-dkeQyrDC.js';
5
+ import { C as CollectionClient } from './collection-client-B6SlhzIP.js';
6
+ import { c as ServerCollection, P as PublicCollection } from './const-DwmSDeWq.js';
7
+ import { C as CollectionType } from './types-Cel_4L9t.js';
8
8
  import { S as SDKError } from './index-BGEhoDUs.js';
9
9
  export { a as RealtimeConnection, R as RealtimeEvent, b as RealtimeListener } from './realtime-D7HtUpqt.js';
10
10
  import { ServerClient } from './server.js';
@@ -150,7 +150,7 @@ type ReadOnlyQueryHooks = Omit<QueryHooks<PublicCollection>, 'useCreate' | 'useU
150
150
  */
151
151
  interface ProductDetailCallable {
152
152
  product: {
153
- detail: (params: ProductDetailParams) => Promise<ProductDetail | null>;
153
+ detail: (params: ProductDetailParams) => Promise<ProductDetailResult>;
154
154
  };
155
155
  }
156
156
  declare class QueryHooks<TCollection extends ServerCollection = PublicCollection> extends CollectionHooks<TCollection> {
@@ -201,13 +201,13 @@ declare class QueryHooks<TCollection extends ServerCollection = PublicCollection
201
201
  id: string;
202
202
  }, options?: {
203
203
  enabled?: boolean;
204
- }): UseQueryResult<ProductDetail | null>;
204
+ }): UseQueryResult<ProductDetailResult>;
205
205
  useProductDetailBySlug(slug: string, options?: {
206
206
  enabled?: boolean;
207
- }): UseQueryResult<ProductDetail | null>;
207
+ }): UseQueryResult<ProductDetailResult>;
208
208
  useProductDetailById(id: string, options?: {
209
209
  enabled?: boolean;
210
- }): UseQueryResult<ProductDetail | null>;
210
+ }): UseQueryResult<ProductDetailResult>;
211
211
  }
212
212
 
213
213
  declare function collectionKeys<T extends ServerCollection>(collection: T): {