@01.software/sdk 0.36.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 (82) hide show
  1. package/README.md +142 -55
  2. package/dist/analytics/react.cjs +33 -9
  3. package/dist/analytics/react.cjs.map +1 -1
  4. package/dist/analytics/react.d.cts +1 -1
  5. package/dist/analytics/react.d.ts +1 -1
  6. package/dist/analytics/react.js +33 -9
  7. package/dist/analytics/react.js.map +1 -1
  8. package/dist/analytics.cjs +30 -8
  9. package/dist/analytics.cjs.map +1 -1
  10. package/dist/analytics.d.cts +6 -0
  11. package/dist/analytics.d.ts +6 -0
  12. package/dist/analytics.js +30 -8
  13. package/dist/analytics.js.map +1 -1
  14. package/dist/client.cjs +150 -207
  15. package/dist/client.cjs.map +1 -1
  16. package/dist/client.d.cts +6 -6
  17. package/dist/client.d.ts +6 -6
  18. package/dist/client.js +150 -207
  19. package/dist/client.js.map +1 -1
  20. package/dist/{collection-client-Cv0D2w1Q.d.cts → collection-client-B0J9wMNE.d.cts} +5 -5
  21. package/dist/{collection-client-Bq5Zd7p7.d.ts → collection-client-BroIWHY1.d.ts} +5 -5
  22. package/dist/const-6XHz_jej.d.ts +32 -0
  23. package/dist/const-B5KT72c7.d.cts +32 -0
  24. package/dist/{image-BDz2-AaO.d.cts → image-BDjHp03R.d.cts} +13 -9
  25. package/dist/{image-BDz2-AaO.d.ts → image-BDjHp03R.d.ts} +13 -9
  26. package/dist/{index-DTSXUYkr.d.ts → index-BOLQxveo.d.cts} +9 -6
  27. package/dist/{index-BHDKJ6B3.d.cts → index-CSwR2HSg.d.ts} +9 -6
  28. package/dist/index.cjs +256 -244
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +12 -11
  31. package/dist/index.d.ts +12 -11
  32. package/dist/index.js +256 -244
  33. package/dist/index.js.map +1 -1
  34. package/dist/metadata.cjs +5 -3
  35. package/dist/metadata.cjs.map +1 -1
  36. package/dist/metadata.js +5 -3
  37. package/dist/metadata.js.map +1 -1
  38. package/dist/{payload-types-BCui2Oml.d.cts → payload-types-m3jjhxk9.d.cts} +669 -184
  39. package/dist/{payload-types-BCui2Oml.d.ts → payload-types-m3jjhxk9.d.ts} +669 -184
  40. package/dist/query.cjs +3 -1033
  41. package/dist/query.cjs.map +1 -1
  42. package/dist/query.d.cts +13 -13
  43. package/dist/query.d.ts +13 -13
  44. package/dist/query.js +3 -1033
  45. package/dist/query.js.map +1 -1
  46. package/dist/realtime.d.cts +2 -2
  47. package/dist/realtime.d.ts +2 -2
  48. package/dist/server.cjs +121 -85
  49. package/dist/server.cjs.map +1 -1
  50. package/dist/server.d.cts +7 -7
  51. package/dist/server.d.ts +7 -7
  52. package/dist/server.js +121 -85
  53. package/dist/server.js.map +1 -1
  54. package/dist/{types-Dib-zdK6.d.cts → types-CIGscmus.d.cts} +1471 -1100
  55. package/dist/{types-3qV6sY7T.d.ts → types-Cmrd1ezc.d.ts} +1 -15
  56. package/dist/{types-CEzLf3PX.d.cts → types-D0ubzQw0.d.cts} +1 -15
  57. package/dist/{types-DK9EnLwJ.d.ts → types-D2xYdz4P.d.ts} +1471 -1100
  58. package/dist/ui/canvas.cjs +15 -5
  59. package/dist/ui/canvas.cjs.map +1 -1
  60. package/dist/ui/canvas.d.cts +1 -1
  61. package/dist/ui/canvas.d.ts +1 -1
  62. package/dist/ui/canvas.js +15 -5
  63. package/dist/ui/canvas.js.map +1 -1
  64. package/dist/ui/form.d.cts +1 -1
  65. package/dist/ui/form.d.ts +1 -1
  66. package/dist/ui/image.cjs +15 -5
  67. package/dist/ui/image.cjs.map +1 -1
  68. package/dist/ui/image.d.cts +1 -1
  69. package/dist/ui/image.d.ts +1 -1
  70. package/dist/ui/image.js +15 -5
  71. package/dist/ui/image.js.map +1 -1
  72. package/dist/ui/video.d.cts +1 -1
  73. package/dist/ui/video.d.ts +1 -1
  74. package/dist/webhook.cjs +5 -1
  75. package/dist/webhook.cjs.map +1 -1
  76. package/dist/webhook.d.cts +4 -4
  77. package/dist/webhook.d.ts +4 -4
  78. package/dist/webhook.js +5 -1
  79. package/dist/webhook.js.map +1 -1
  80. package/package.json +3 -3
  81. package/dist/const-BDUKFP9w.d.ts +0 -32
  82. package/dist/const-DVcM7Ac_.d.cts +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-BCui2Oml.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-BCui2Oml.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