@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.
- package/README.md +142 -55
- package/dist/analytics/react.cjs +33 -9
- package/dist/analytics/react.cjs.map +1 -1
- package/dist/analytics/react.d.cts +1 -1
- package/dist/analytics/react.d.ts +1 -1
- package/dist/analytics/react.js +33 -9
- package/dist/analytics/react.js.map +1 -1
- package/dist/analytics.cjs +30 -8
- package/dist/analytics.cjs.map +1 -1
- package/dist/analytics.d.cts +6 -0
- package/dist/analytics.d.ts +6 -0
- package/dist/analytics.js +30 -8
- package/dist/analytics.js.map +1 -1
- package/dist/client.cjs +150 -207
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.js +150 -207
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-Cv0D2w1Q.d.cts → collection-client-B0J9wMNE.d.cts} +5 -5
- package/dist/{collection-client-Bq5Zd7p7.d.ts → collection-client-BroIWHY1.d.ts} +5 -5
- package/dist/const-6XHz_jej.d.ts +32 -0
- package/dist/const-B5KT72c7.d.cts +32 -0
- package/dist/{image-BDz2-AaO.d.cts → image-BDjHp03R.d.cts} +13 -9
- package/dist/{image-BDz2-AaO.d.ts → image-BDjHp03R.d.ts} +13 -9
- package/dist/{index-DTSXUYkr.d.ts → index-BOLQxveo.d.cts} +9 -6
- package/dist/{index-BHDKJ6B3.d.cts → index-CSwR2HSg.d.ts} +9 -6
- package/dist/index.cjs +256 -244
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.js +256 -244
- package/dist/index.js.map +1 -1
- package/dist/metadata.cjs +5 -3
- package/dist/metadata.cjs.map +1 -1
- package/dist/metadata.js +5 -3
- package/dist/metadata.js.map +1 -1
- package/dist/{payload-types-BCui2Oml.d.cts → payload-types-m3jjhxk9.d.cts} +669 -184
- package/dist/{payload-types-BCui2Oml.d.ts → payload-types-m3jjhxk9.d.ts} +669 -184
- package/dist/query.cjs +3 -1033
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +13 -13
- package/dist/query.d.ts +13 -13
- package/dist/query.js +3 -1033
- package/dist/query.js.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/server.cjs +121 -85
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.js +121 -85
- package/dist/server.js.map +1 -1
- package/dist/{types-Dib-zdK6.d.cts → types-CIGscmus.d.cts} +1471 -1100
- package/dist/{types-3qV6sY7T.d.ts → types-Cmrd1ezc.d.ts} +1 -15
- package/dist/{types-CEzLf3PX.d.cts → types-D0ubzQw0.d.cts} +1 -15
- package/dist/{types-DK9EnLwJ.d.ts → types-D2xYdz4P.d.ts} +1471 -1100
- package/dist/ui/canvas.cjs +15 -5
- package/dist/ui/canvas.cjs.map +1 -1
- package/dist/ui/canvas.d.cts +1 -1
- package/dist/ui/canvas.d.ts +1 -1
- package/dist/ui/canvas.js +15 -5
- package/dist/ui/canvas.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/image.cjs +15 -5
- package/dist/ui/image.cjs.map +1 -1
- package/dist/ui/image.d.cts +1 -1
- package/dist/ui/image.d.ts +1 -1
- package/dist/ui/image.js +15 -5
- package/dist/ui/image.js.map +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.cjs +5 -1
- package/dist/webhook.cjs.map +1 -1
- package/dist/webhook.d.cts +4 -4
- package/dist/webhook.d.ts +4 -4
- package/dist/webhook.js +5 -1
- package/dist/webhook.js.map +1 -1
- package/package.json +3 -3
- package/dist/const-BDUKFP9w.d.ts +0 -32
- 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
|
|
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
|
|
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
|
|