@01.software/sdk 0.37.0 → 0.38.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 (48) hide show
  1. package/README.md +75 -53
  2. package/dist/client.cjs +67 -104
  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 +67 -104
  7. package/dist/client.js.map +1 -1
  8. package/dist/{collection-client-zOmnxwdA.d.cts → collection-client-B0J9wMNE.d.cts} +5 -5
  9. package/dist/{collection-client-DyELGUcL.d.ts → collection-client-BroIWHY1.d.ts} +5 -5
  10. package/dist/const-6XHz_jej.d.ts +32 -0
  11. package/dist/const-B5KT72c7.d.cts +32 -0
  12. package/dist/{index-DRJs7QIh.d.cts → index-BOLQxveo.d.cts} +3 -3
  13. package/dist/{index-DTqoUZk_.d.ts → index-CSwR2HSg.d.ts} +3 -3
  14. package/dist/index.cjs +95 -123
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +9 -9
  17. package/dist/index.d.ts +9 -9
  18. package/dist/index.js +95 -123
  19. package/dist/index.js.map +1 -1
  20. package/dist/{payload-types-CREOjFNT.d.cts → payload-types-m3jjhxk9.d.cts} +418 -106
  21. package/dist/{payload-types-CREOjFNT.d.ts → payload-types-m3jjhxk9.d.ts} +418 -106
  22. package/dist/query.cjs +3 -1035
  23. package/dist/query.cjs.map +1 -1
  24. package/dist/query.d.cts +13 -13
  25. package/dist/query.d.ts +13 -13
  26. package/dist/query.js +3 -1035
  27. package/dist/query.js.map +1 -1
  28. package/dist/realtime.d.cts +2 -2
  29. package/dist/realtime.d.ts +2 -2
  30. package/dist/server.cjs +42 -21
  31. package/dist/server.cjs.map +1 -1
  32. package/dist/server.d.cts +7 -7
  33. package/dist/server.d.ts +7 -7
  34. package/dist/server.js +42 -21
  35. package/dist/server.js.map +1 -1
  36. package/dist/{types-DMvVHdb1.d.ts → types-CIGscmus.d.cts} +1455 -1208
  37. package/dist/{types-CxzWHspI.d.ts → types-Cmrd1ezc.d.ts} +1 -15
  38. package/dist/{types-BkZNhuBh.d.cts → types-D0ubzQw0.d.cts} +1 -15
  39. package/dist/{types-BWMUr3Zw.d.cts → types-D2xYdz4P.d.ts} +1455 -1208
  40. package/dist/ui/form.d.cts +1 -1
  41. package/dist/ui/form.d.ts +1 -1
  42. package/dist/ui/video.d.cts +1 -1
  43. package/dist/ui/video.d.ts +1 -1
  44. package/dist/webhook.d.cts +4 -4
  45. package/dist/webhook.d.ts +4 -4
  46. package/package.json +3 -3
  47. package/dist/const-CK_FPaIn.d.cts +0 -32
  48. package/dist/const-Dqz05oaG.d.ts +0 -32
@@ -1,7 +1,6 @@
1
- import { P as Product, C as CustomerProfile, a as CustomerProfileList, b as ProductCollection, c as Post, d as Comment, R as Reaction, e as Config } from './payload-types-CREOjFNT.js';
1
+ import { P as Product, C as CustomerProfile, a as CustomerProfileList, b as ProductCollection, c as Config } from './payload-types-m3jjhxk9.js';
2
2
 
3
3
  type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
4
- type PublicProfileRelation = string | PublicCustomerProfile;
5
4
  type PublicCustomerProfileListEntry = {
6
5
  profile: PublicCustomerProfile;
7
6
  rank: number;
@@ -17,16 +16,6 @@ type PublicCustomerProfileListEntry = {
17
16
  type PublicCustomerProfileList = Omit<CustomerProfileList, 'tenant' | 'visibility' | 'metadata' | 'entries'> & {
18
17
  entries?: PublicCustomerProfileListEntry[] | null;
19
18
  };
20
- type PublicPost = Omit<Post, 'authorProfile' | 'lastCommentByProfile'> & {
21
- authorProfile?: PublicProfileRelation | null;
22
- lastCommentByProfile?: PublicProfileRelation | null;
23
- };
24
- type PublicComment = Omit<Comment, 'authorProfile'> & {
25
- authorProfile: PublicProfileRelation;
26
- };
27
- type PublicReaction = Omit<Reaction, 'actorProfile'> & {
28
- actorProfile: PublicProfileRelation;
29
- };
30
19
  type PublicProduct = Omit<Product, 'collectionItems'>;
31
20
  type PublicProductCollection = Omit<ProductCollection, 'items'>;
32
21
  type PublicCollectionOverrides = {
@@ -34,9 +23,6 @@ type PublicCollectionOverrides = {
34
23
  'customer-profile-lists': PublicCustomerProfileList;
35
24
  products: PublicProduct;
36
25
  'product-collections': PublicProductCollection;
37
- posts: PublicPost;
38
- comments: PublicComment;
39
- reactions: PublicReaction;
40
26
  };
41
27
  type CollectionType<T extends string> = T extends keyof PublicCollectionOverrides ? PublicCollectionOverrides[T] : T extends keyof Config['collections'] ? Config['collections'][T] : never;
42
28
 
@@ -1,7 +1,6 @@
1
- import { P as Product, C as CustomerProfile, a as CustomerProfileList, b as ProductCollection, c as Post, d as Comment, R as Reaction, e as Config } from './payload-types-CREOjFNT.cjs';
1
+ import { P as Product, C as CustomerProfile, a as CustomerProfileList, b as ProductCollection, c as Config } from './payload-types-m3jjhxk9.cjs';
2
2
 
3
3
  type PublicCustomerProfile = Omit<CustomerProfile, 'tenant' | 'customer' | 'isPublic' | 'anonymizedAt' | 'metadata'>;
4
- type PublicProfileRelation = string | PublicCustomerProfile;
5
4
  type PublicCustomerProfileListEntry = {
6
5
  profile: PublicCustomerProfile;
7
6
  rank: number;
@@ -17,16 +16,6 @@ type PublicCustomerProfileListEntry = {
17
16
  type PublicCustomerProfileList = Omit<CustomerProfileList, 'tenant' | 'visibility' | 'metadata' | 'entries'> & {
18
17
  entries?: PublicCustomerProfileListEntry[] | null;
19
18
  };
20
- type PublicPost = Omit<Post, 'authorProfile' | 'lastCommentByProfile'> & {
21
- authorProfile?: PublicProfileRelation | null;
22
- lastCommentByProfile?: PublicProfileRelation | null;
23
- };
24
- type PublicComment = Omit<Comment, 'authorProfile'> & {
25
- authorProfile: PublicProfileRelation;
26
- };
27
- type PublicReaction = Omit<Reaction, 'actorProfile'> & {
28
- actorProfile: PublicProfileRelation;
29
- };
30
19
  type PublicProduct = Omit<Product, 'collectionItems'>;
31
20
  type PublicProductCollection = Omit<ProductCollection, 'items'>;
32
21
  type PublicCollectionOverrides = {
@@ -34,9 +23,6 @@ type PublicCollectionOverrides = {
34
23
  'customer-profile-lists': PublicCustomerProfileList;
35
24
  products: PublicProduct;
36
25
  'product-collections': PublicProductCollection;
37
- posts: PublicPost;
38
- comments: PublicComment;
39
- reactions: PublicReaction;
40
26
  };
41
27
  type CollectionType<T extends string> = T extends keyof PublicCollectionOverrides ? PublicCollectionOverrides[T] : T extends keyof Config['collections'] ? Config['collections'][T] : never;
42
28