@01.software/sdk 0.67.0 → 0.68.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/CHANGELOG.md +13 -0
- package/README.md +122 -6
- package/dist/client.cjs +419 -319
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +11 -6
- package/dist/client.d.ts +11 -6
- package/dist/client.js +419 -319
- package/dist/client.js.map +1 -1
- package/dist/{collection-client-D4HEOoO_.d.ts → collection-client-IOaWsTMI.d.ts} +4 -4
- package/dist/{collection-client-jrNFGbrO.d.cts → collection-client-MbIJ5KzW.d.cts} +4 -4
- package/dist/{const-BU79hCFB.d.ts → const-Do27Udj6.d.ts} +2 -2
- package/dist/{const-CCQ3MdLE.d.cts → const-Dw5ElJs_.d.cts} +2 -2
- package/dist/embedded-admin/server.cjs +16 -1
- package/dist/embedded-admin/server.cjs.map +1 -1
- package/dist/embedded-admin/server.d.cts +4 -2
- package/dist/embedded-admin/server.d.ts +4 -2
- package/dist/embedded-admin/server.js +16 -1
- package/dist/embedded-admin/server.js.map +1 -1
- package/dist/embedded-admin.cjs +19 -0
- package/dist/embedded-admin.cjs.map +1 -1
- package/dist/embedded-admin.d.cts +7 -1
- package/dist/embedded-admin.d.ts +7 -1
- package/dist/embedded-admin.js +19 -0
- package/dist/embedded-admin.js.map +1 -1
- package/dist/errors.d.cts +2 -2
- package/dist/errors.d.ts +2 -2
- package/dist/{index-CwKxWHIa.d.ts → index-DcYsLOja.d.ts} +3 -3
- package/dist/{index-DiyhsVHd.d.cts → index-gnVxTKXu.d.cts} +3 -3
- package/dist/index.cjs +424 -323
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +424 -323
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-jdsUXunB.d.cts → payload-types-BY1uZFRf.d.cts} +34 -1
- package/dist/{payload-types-jdsUXunB.d.ts → payload-types-BY1uZFRf.d.ts} +34 -1
- package/dist/query.cjs +8 -0
- package/dist/query.cjs.map +1 -1
- package/dist/query.d.cts +5 -5
- package/dist/query.d.ts +5 -5
- package/dist/query.js +8 -0
- 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 +1183 -1071
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +9 -8
- package/dist/server.d.ts +9 -8
- package/dist/server.js +1183 -1071
- package/dist/server.js.map +1 -1
- package/dist/{types-BusejG-v.d.ts → types-AWSVpuPE.d.ts} +2 -2
- package/dist/{types-I2k6Laad.d.ts → types-CLRw0aDa.d.ts} +147 -40
- package/dist/{types-BPwXAFZ7.d.cts → types-DnIuxgu2.d.cts} +2 -2
- package/dist/{types-CvdBV3ri.d.cts → types-csjaig4G.d.cts} +147 -40
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +5 -5
- package/dist/webhook.d.ts +5 -5
- package/package.json +2 -2
|
@@ -108,6 +108,7 @@ interface Config {
|
|
|
108
108
|
'draft-orders': DraftOrder;
|
|
109
109
|
'draft-order-items': DraftOrderItem;
|
|
110
110
|
discounts: Discount;
|
|
111
|
+
'benefit-voucher-definitions': BenefitVoucherDefinition;
|
|
111
112
|
articles: Article;
|
|
112
113
|
'article-authors': ArticleAuthor;
|
|
113
114
|
'article-categories': ArticleCategory;
|
|
@@ -356,6 +357,7 @@ interface Config {
|
|
|
356
357
|
'draft-orders': DraftOrdersSelect<false> | DraftOrdersSelect<true>;
|
|
357
358
|
'draft-order-items': DraftOrderItemsSelect<false> | DraftOrderItemsSelect<true>;
|
|
358
359
|
discounts: DiscountsSelect<false> | DiscountsSelect<true>;
|
|
360
|
+
'benefit-voucher-definitions': BenefitVoucherDefinitionsSelect<false> | BenefitVoucherDefinitionsSelect<true>;
|
|
359
361
|
articles: ArticlesSelect<false> | ArticlesSelect<true>;
|
|
360
362
|
'article-authors': ArticleAuthorsSelect<false> | ArticleAuthorsSelect<true>;
|
|
361
363
|
'article-categories': ArticleCategoriesSelect<false> | ArticleCategoriesSelect<true>;
|
|
@@ -729,6 +731,7 @@ interface Tenant {
|
|
|
729
731
|
*/
|
|
730
732
|
embeddedAdminApp?: {
|
|
731
733
|
enabled?: boolean | null;
|
|
734
|
+
allowedRoles?: ('tenant-admin' | 'tenant-editor' | 'tenant-viewer')[] | null;
|
|
732
735
|
label?: string | null;
|
|
733
736
|
origin?: string | null;
|
|
734
737
|
path?: string | null;
|
|
@@ -1034,7 +1037,7 @@ interface SystemMedia {
|
|
|
1034
1037
|
interface FieldConfig {
|
|
1035
1038
|
id: string;
|
|
1036
1039
|
tenant?: (string | null) | Tenant;
|
|
1037
|
-
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'customer-profiles' | 'customer-profile-lists' | 'article-authors' | 'articles' | 'article-categories' | 'article-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'posts' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'post-categories' | 'post-tags' | 'event-calendars' | 'events' | 'event-categories' | 'event-tags' | 'event-occurrences' | 'event-registrations';
|
|
1040
|
+
collectionSlug: 'benefit-voucher-definitions' | 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'customer-profiles' | 'customer-profile-lists' | 'article-authors' | 'articles' | 'article-categories' | 'article-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'posts' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'post-categories' | 'post-tags' | 'event-calendars' | 'events' | 'event-categories' | 'event-tags' | 'event-occurrences' | 'event-registrations';
|
|
1038
1041
|
isHidden?: boolean | null;
|
|
1039
1042
|
hiddenFields?: {
|
|
1040
1043
|
[k: string]: unknown;
|
|
@@ -6731,6 +6734,22 @@ interface DraftOrderItem {
|
|
|
6731
6734
|
updatedAt: string;
|
|
6732
6735
|
createdAt: string;
|
|
6733
6736
|
}
|
|
6737
|
+
/**
|
|
6738
|
+
* Manage single-use benefit voucher definitions and validity periods for customers.
|
|
6739
|
+
*
|
|
6740
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
6741
|
+
* via the `definition` "benefit-voucher-definitions".
|
|
6742
|
+
*/
|
|
6743
|
+
interface BenefitVoucherDefinition {
|
|
6744
|
+
id: string;
|
|
6745
|
+
tenant?: (string | null) | Tenant;
|
|
6746
|
+
name: string;
|
|
6747
|
+
description?: string | null;
|
|
6748
|
+
validityDays: number;
|
|
6749
|
+
status: 'active' | 'archived';
|
|
6750
|
+
updatedAt: string;
|
|
6751
|
+
createdAt: string;
|
|
6752
|
+
}
|
|
6734
6753
|
/**
|
|
6735
6754
|
* Manage publishable articles, authors, and classification.
|
|
6736
6755
|
*
|
|
@@ -9447,6 +9466,7 @@ interface TenantsSelect<T extends boolean = true> {
|
|
|
9447
9466
|
};
|
|
9448
9467
|
embeddedAdminApp?: T | {
|
|
9449
9468
|
enabled?: T;
|
|
9469
|
+
allowedRoles?: T;
|
|
9450
9470
|
label?: T;
|
|
9451
9471
|
origin?: T;
|
|
9452
9472
|
path?: T;
|
|
@@ -12062,6 +12082,19 @@ interface DiscountsSelect<T extends boolean = true> {
|
|
|
12062
12082
|
createdAt?: T;
|
|
12063
12083
|
deletedAt?: T;
|
|
12064
12084
|
}
|
|
12085
|
+
/**
|
|
12086
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
12087
|
+
* via the `definition` "benefit-voucher-definitions_select".
|
|
12088
|
+
*/
|
|
12089
|
+
interface BenefitVoucherDefinitionsSelect<T extends boolean = true> {
|
|
12090
|
+
tenant?: T;
|
|
12091
|
+
name?: T;
|
|
12092
|
+
description?: T;
|
|
12093
|
+
validityDays?: T;
|
|
12094
|
+
status?: T;
|
|
12095
|
+
updatedAt?: T;
|
|
12096
|
+
createdAt?: T;
|
|
12097
|
+
}
|
|
12065
12098
|
/**
|
|
12066
12099
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
12067
12100
|
* via the `definition` "articles_select".
|
|
@@ -108,6 +108,7 @@ interface Config {
|
|
|
108
108
|
'draft-orders': DraftOrder;
|
|
109
109
|
'draft-order-items': DraftOrderItem;
|
|
110
110
|
discounts: Discount;
|
|
111
|
+
'benefit-voucher-definitions': BenefitVoucherDefinition;
|
|
111
112
|
articles: Article;
|
|
112
113
|
'article-authors': ArticleAuthor;
|
|
113
114
|
'article-categories': ArticleCategory;
|
|
@@ -356,6 +357,7 @@ interface Config {
|
|
|
356
357
|
'draft-orders': DraftOrdersSelect<false> | DraftOrdersSelect<true>;
|
|
357
358
|
'draft-order-items': DraftOrderItemsSelect<false> | DraftOrderItemsSelect<true>;
|
|
358
359
|
discounts: DiscountsSelect<false> | DiscountsSelect<true>;
|
|
360
|
+
'benefit-voucher-definitions': BenefitVoucherDefinitionsSelect<false> | BenefitVoucherDefinitionsSelect<true>;
|
|
359
361
|
articles: ArticlesSelect<false> | ArticlesSelect<true>;
|
|
360
362
|
'article-authors': ArticleAuthorsSelect<false> | ArticleAuthorsSelect<true>;
|
|
361
363
|
'article-categories': ArticleCategoriesSelect<false> | ArticleCategoriesSelect<true>;
|
|
@@ -729,6 +731,7 @@ interface Tenant {
|
|
|
729
731
|
*/
|
|
730
732
|
embeddedAdminApp?: {
|
|
731
733
|
enabled?: boolean | null;
|
|
734
|
+
allowedRoles?: ('tenant-admin' | 'tenant-editor' | 'tenant-viewer')[] | null;
|
|
732
735
|
label?: string | null;
|
|
733
736
|
origin?: string | null;
|
|
734
737
|
path?: string | null;
|
|
@@ -1034,7 +1037,7 @@ interface SystemMedia {
|
|
|
1034
1037
|
interface FieldConfig {
|
|
1035
1038
|
id: string;
|
|
1036
1039
|
tenant?: (string | null) | Tenant;
|
|
1037
|
-
collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'customer-profiles' | 'customer-profile-lists' | 'article-authors' | 'articles' | 'article-categories' | 'article-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'posts' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'post-categories' | 'post-tags' | 'event-calendars' | 'events' | 'event-categories' | 'event-tags' | 'event-occurrences' | 'event-registrations';
|
|
1040
|
+
collectionSlug: 'benefit-voucher-definitions' | 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'customer-profiles' | 'customer-profile-lists' | 'article-authors' | 'articles' | 'article-categories' | 'article-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'posts' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'post-categories' | 'post-tags' | 'event-calendars' | 'events' | 'event-categories' | 'event-tags' | 'event-occurrences' | 'event-registrations';
|
|
1038
1041
|
isHidden?: boolean | null;
|
|
1039
1042
|
hiddenFields?: {
|
|
1040
1043
|
[k: string]: unknown;
|
|
@@ -6731,6 +6734,22 @@ interface DraftOrderItem {
|
|
|
6731
6734
|
updatedAt: string;
|
|
6732
6735
|
createdAt: string;
|
|
6733
6736
|
}
|
|
6737
|
+
/**
|
|
6738
|
+
* Manage single-use benefit voucher definitions and validity periods for customers.
|
|
6739
|
+
*
|
|
6740
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
6741
|
+
* via the `definition` "benefit-voucher-definitions".
|
|
6742
|
+
*/
|
|
6743
|
+
interface BenefitVoucherDefinition {
|
|
6744
|
+
id: string;
|
|
6745
|
+
tenant?: (string | null) | Tenant;
|
|
6746
|
+
name: string;
|
|
6747
|
+
description?: string | null;
|
|
6748
|
+
validityDays: number;
|
|
6749
|
+
status: 'active' | 'archived';
|
|
6750
|
+
updatedAt: string;
|
|
6751
|
+
createdAt: string;
|
|
6752
|
+
}
|
|
6734
6753
|
/**
|
|
6735
6754
|
* Manage publishable articles, authors, and classification.
|
|
6736
6755
|
*
|
|
@@ -9447,6 +9466,7 @@ interface TenantsSelect<T extends boolean = true> {
|
|
|
9447
9466
|
};
|
|
9448
9467
|
embeddedAdminApp?: T | {
|
|
9449
9468
|
enabled?: T;
|
|
9469
|
+
allowedRoles?: T;
|
|
9450
9470
|
label?: T;
|
|
9451
9471
|
origin?: T;
|
|
9452
9472
|
path?: T;
|
|
@@ -12062,6 +12082,19 @@ interface DiscountsSelect<T extends boolean = true> {
|
|
|
12062
12082
|
createdAt?: T;
|
|
12063
12083
|
deletedAt?: T;
|
|
12064
12084
|
}
|
|
12085
|
+
/**
|
|
12086
|
+
* This interface was referenced by `Config`'s JSON-Schema
|
|
12087
|
+
* via the `definition` "benefit-voucher-definitions_select".
|
|
12088
|
+
*/
|
|
12089
|
+
interface BenefitVoucherDefinitionsSelect<T extends boolean = true> {
|
|
12090
|
+
tenant?: T;
|
|
12091
|
+
name?: T;
|
|
12092
|
+
description?: T;
|
|
12093
|
+
validityDays?: T;
|
|
12094
|
+
status?: T;
|
|
12095
|
+
updatedAt?: T;
|
|
12096
|
+
createdAt?: T;
|
|
12097
|
+
}
|
|
12065
12098
|
/**
|
|
12066
12099
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
12067
12100
|
* via the `definition` "articles_select".
|
package/dist/query.cjs
CHANGED
|
@@ -1030,6 +1030,14 @@ var EXTERNAL_CUSTOMER_LINK_ENDPOINT_OPERATIONS = {
|
|
|
1030
1030
|
"/external-links/clear-previous-state"
|
|
1031
1031
|
)
|
|
1032
1032
|
};
|
|
1033
|
+
var BENEFIT_VOUCHER_ENDPOINT_OPERATIONS = {
|
|
1034
|
+
issue: operation("customers", "post", "/benefit-vouchers/issue"),
|
|
1035
|
+
get: operation("customers", "post", "/benefit-vouchers/get"),
|
|
1036
|
+
list: operation("customers", "post", "/benefit-vouchers/list"),
|
|
1037
|
+
redeem: operation("customers", "post", "/benefit-vouchers/redeem"),
|
|
1038
|
+
void: operation("customers", "post", "/benefit-vouchers/void"),
|
|
1039
|
+
listMine: operation("customers", "get", "/me/benefit-vouchers")
|
|
1040
|
+
};
|
|
1033
1041
|
var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
|
|
1034
1042
|
members: operation("customer-groups", "get", "/:id/members"),
|
|
1035
1043
|
grant: operation("customer-groups", "post", "/:id/members/grant"),
|