@cloudcommerce/api 0.14.0 → 0.15.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/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-test.log +4 -4
- package/lib/api.d.ts +13 -12
- package/lib/api.js +51 -29
- package/lib/api.js.map +1 -1
- package/package.json +3 -3
- package/src/api.ts +52 -22
- package/tests/index.test.ts +18 -3
- package/{src/types → types}/brands.d.ts +1 -1
- package/{src/types → types}/carts.d.ts +5 -5
- package/{lib/types → types}/categories.d.ts +2 -2
- package/{src/types → types}/collections.d.ts +2 -2
- package/{src/types → types}/customers.d.ts +1 -1
- package/{lib/types → types}/grids.d.ts +1 -1
- package/{lib/types → types}/orders.d.ts +13 -13
- package/{lib/types → types}/products.d.ts +10 -10
- package/{src/types.ts → types.d.ts} +254 -31
- package/types.ts +1 -1
- package/lib/types/brands.d.ts +0 -157
- package/lib/types/carts.d.ts +0 -360
- package/lib/types/collections.d.ts +0 -159
- package/lib/types/customers.d.ts +0 -523
- package/lib/types.d.ts +0 -132
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/src/types/applications.d.ts +0 -165
- package/src/types/authentications.d.ts +0 -107
- package/src/types/categories.d.ts +0 -199
- package/src/types/grids.d.ts +0 -157
- package/src/types/orders.d.ts +0 -1720
- package/src/types/products.d.ts +0 -1424
- package/src/types/stores.d.ts +0 -123
- /package/{lib/types → types}/applications.d.ts +0 -0
- /package/{lib/types → types}/authentications.d.ts +0 -0
- /package/{lib/types → types}/stores.d.ts +0 -0
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface Applications {
|
|
9
|
-
_id: string & { length: 24 };
|
|
10
|
-
created_at: string;
|
|
11
|
-
updated_at: string;
|
|
12
|
-
store_id: number;
|
|
13
|
-
/**
|
|
14
|
-
* ID of application on marketplace
|
|
15
|
-
*/
|
|
16
|
-
app_id: number;
|
|
17
|
-
/**
|
|
18
|
-
* The working state of this app in the shop
|
|
19
|
-
*/
|
|
20
|
-
state?: 'inactive' | 'active' | 'test';
|
|
21
|
-
/**
|
|
22
|
-
* App title
|
|
23
|
-
*/
|
|
24
|
-
title: string;
|
|
25
|
-
/**
|
|
26
|
-
* App unique slug on marketplace, only lowercase letters, numbers and hyphen
|
|
27
|
-
*/
|
|
28
|
-
slug?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Whether this app is paid
|
|
31
|
-
*/
|
|
32
|
-
paid?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Installed application version, semver e.g. 1.0.0
|
|
35
|
-
*/
|
|
36
|
-
version: string;
|
|
37
|
-
/**
|
|
38
|
-
* When app installation was updated, date and time in ISO 8601 standard representation
|
|
39
|
-
*/
|
|
40
|
-
version_date?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Type of app
|
|
43
|
-
*/
|
|
44
|
-
type: 'dashboard' | 'storefront' | 'external';
|
|
45
|
-
/**
|
|
46
|
-
* Modules handled by this app
|
|
47
|
-
*/
|
|
48
|
-
modules?: {
|
|
49
|
-
calculate_shipping?: Module;
|
|
50
|
-
list_payments?: Module1;
|
|
51
|
-
apply_discount?: Module2;
|
|
52
|
-
create_transaction?: Module3;
|
|
53
|
-
checkout_done?: Module4;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Configuration options for staff on admin dashboard, saved on app data
|
|
57
|
-
*/
|
|
58
|
-
admin_settings?: {
|
|
59
|
-
/**
|
|
60
|
-
* Configuration field object, property name same as saved on data object
|
|
61
|
-
*
|
|
62
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
63
|
-
* via the `patternProperty` "^[a-z0-9_]{2,30}$".
|
|
64
|
-
*/
|
|
65
|
-
[k: string]: {
|
|
66
|
-
/**
|
|
67
|
-
* JSON Schema (https://json-schema.org/specification.html) for field model
|
|
68
|
-
*/
|
|
69
|
-
schema: {
|
|
70
|
-
[k: string]: unknown;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Whether the field value is private, saved in `hidden_data`
|
|
74
|
-
*/
|
|
75
|
-
hide?: boolean;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Application object data, schema free
|
|
80
|
-
*/
|
|
81
|
-
data?: {
|
|
82
|
-
[k: string]: any;
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Application private data, available only with authentication
|
|
86
|
-
*/
|
|
87
|
-
hidden_data?: {
|
|
88
|
-
[k: string]: any;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Flags to associate additional info
|
|
92
|
-
*
|
|
93
|
-
* @maxItems 10
|
|
94
|
-
*/
|
|
95
|
-
flags?: string[];
|
|
96
|
-
/**
|
|
97
|
-
* Optional notes with additional info about this user
|
|
98
|
-
*/
|
|
99
|
-
notes?: string;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Triggered to calculate shipping options, must return calculated values and times
|
|
103
|
-
*/
|
|
104
|
-
export interface Module {
|
|
105
|
-
/**
|
|
106
|
-
* Whether current app is enabled to handle the module requests
|
|
107
|
-
*/
|
|
108
|
-
enabled: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* URL to receive POST request of respective module
|
|
111
|
-
*/
|
|
112
|
-
endpoint: string;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Triggered when listing payments, must return available methods
|
|
116
|
-
*/
|
|
117
|
-
export interface Module1 {
|
|
118
|
-
/**
|
|
119
|
-
* Whether current app is enabled to handle the module requests
|
|
120
|
-
*/
|
|
121
|
-
enabled: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* URL to receive POST request of respective module
|
|
124
|
-
*/
|
|
125
|
-
endpoint: string;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Triggered to validate and apply discout value, must return discount and conditions
|
|
129
|
-
*/
|
|
130
|
-
export interface Module2 {
|
|
131
|
-
/**
|
|
132
|
-
* Whether current app is enabled to handle the module requests
|
|
133
|
-
*/
|
|
134
|
-
enabled: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* URL to receive POST request of respective module
|
|
137
|
-
*/
|
|
138
|
-
endpoint: string;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Triggered when order is being closed, must create payment transaction and return info
|
|
142
|
-
*/
|
|
143
|
-
export interface Module3 {
|
|
144
|
-
/**
|
|
145
|
-
* Whether current app is enabled to handle the module requests
|
|
146
|
-
*/
|
|
147
|
-
enabled: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* URL to receive POST request of respective module
|
|
150
|
-
*/
|
|
151
|
-
endpoint: string;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Triggered after each order created from storefront, could return custom fields
|
|
155
|
-
*/
|
|
156
|
-
export interface Module4 {
|
|
157
|
-
/**
|
|
158
|
-
* Whether current app is enabled to handle the module requests
|
|
159
|
-
*/
|
|
160
|
-
enabled: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* URL to receive POST request of respective module
|
|
163
|
-
*/
|
|
164
|
-
endpoint: string;
|
|
165
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface Authentications {
|
|
9
|
-
_id: string & { length: 24 };
|
|
10
|
-
created_at: string;
|
|
11
|
-
updated_at: string;
|
|
12
|
-
/**
|
|
13
|
-
* @maxItems 500
|
|
14
|
-
*/
|
|
15
|
-
store_ids: number[];
|
|
16
|
-
/**
|
|
17
|
-
* Simple username for identification, only numbers and lowercase letters
|
|
18
|
-
*/
|
|
19
|
-
username: string;
|
|
20
|
-
/**
|
|
21
|
-
* User language two letter code, sometimes with region, eg.: pt_br, fr, en_us
|
|
22
|
-
*/
|
|
23
|
-
locale?: string;
|
|
24
|
-
/**
|
|
25
|
-
* User email address
|
|
26
|
-
*/
|
|
27
|
-
email?: string;
|
|
28
|
-
/**
|
|
29
|
-
* User full name
|
|
30
|
-
*/
|
|
31
|
-
name?: string;
|
|
32
|
-
/**
|
|
33
|
-
* User phone number
|
|
34
|
-
*/
|
|
35
|
-
phone?: string;
|
|
36
|
-
/**
|
|
37
|
-
* MD5 hash generated with the user's password
|
|
38
|
-
*/
|
|
39
|
-
pass_md5_hash?: string;
|
|
40
|
-
/**
|
|
41
|
-
* API key as a random 128 bytes hexadecimal number
|
|
42
|
-
*/
|
|
43
|
-
api_key?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Collection of resources allowed to user, each resource uri as object property
|
|
46
|
-
*/
|
|
47
|
-
permissions?: {
|
|
48
|
-
/**
|
|
49
|
-
* Resource/Subresources/Third-level/ID
|
|
50
|
-
*
|
|
51
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
52
|
-
* via the `patternProperty` "^(([^/_][a-z0-9/_@:$+]{1,60}[^/])|[*])$".
|
|
53
|
-
*/
|
|
54
|
-
[k: string]: ('all' | 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE')[];
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* List of dashboard cards chosen by user
|
|
58
|
-
*
|
|
59
|
-
* @maxItems 40
|
|
60
|
-
*/
|
|
61
|
-
panel_cards?: {
|
|
62
|
-
/**
|
|
63
|
-
* Unique identifier, card name using only lowercase, numbers and underscore
|
|
64
|
-
*/
|
|
65
|
-
card_id: string;
|
|
66
|
-
/**
|
|
67
|
-
* Card title
|
|
68
|
-
*/
|
|
69
|
-
title?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Card text, usually a brief description
|
|
72
|
-
*/
|
|
73
|
-
paragraph?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Custom card calling MongoDB aggregate
|
|
76
|
-
*/
|
|
77
|
-
custom_aggregation?: {
|
|
78
|
-
/**
|
|
79
|
-
* API resource
|
|
80
|
-
*/
|
|
81
|
-
resource: 'products' | 'categories' | 'brands' | 'collections' | 'grids' | 'customers' | 'carts' | 'orders';
|
|
82
|
-
/**
|
|
83
|
-
* Aggregation pipeline
|
|
84
|
-
*
|
|
85
|
-
* @minItems 1
|
|
86
|
-
* @maxItems 50
|
|
87
|
-
*/
|
|
88
|
-
pipeline: {
|
|
89
|
-
[k: string]: unknown;
|
|
90
|
-
}[];
|
|
91
|
-
};
|
|
92
|
-
}[];
|
|
93
|
-
/**
|
|
94
|
-
* Whether the user is able to use builder and file manager to edit storefront
|
|
95
|
-
*/
|
|
96
|
-
edit_storefront?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Flags to associate additional info
|
|
99
|
-
*
|
|
100
|
-
* @maxItems 10
|
|
101
|
-
*/
|
|
102
|
-
flags?: string[];
|
|
103
|
-
/**
|
|
104
|
-
* Optional notes with additional info about this user
|
|
105
|
-
*/
|
|
106
|
-
notes?: string;
|
|
107
|
-
}
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface Categories {
|
|
9
|
-
_id: string & { length: 24 };
|
|
10
|
-
created_at: string;
|
|
11
|
-
updated_at: string;
|
|
12
|
-
store_id: number;
|
|
13
|
-
/**
|
|
14
|
-
* @maxItems 10
|
|
15
|
-
*/
|
|
16
|
-
channel_ids?: string[];
|
|
17
|
-
/**
|
|
18
|
-
* Category full name
|
|
19
|
-
*/
|
|
20
|
-
name: string;
|
|
21
|
-
/**
|
|
22
|
-
* Slug to complete page URL, starting with number or lowercase letter
|
|
23
|
-
*/
|
|
24
|
-
slug?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Short category description in plain text
|
|
27
|
-
*/
|
|
28
|
-
short_description?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Full category description, may use HTML tags
|
|
31
|
-
*/
|
|
32
|
-
body_html?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Full category description, plain text only
|
|
35
|
-
*/
|
|
36
|
-
body_text?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Title tag for page SEO
|
|
39
|
-
*/
|
|
40
|
-
meta_title?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Meta description tag for page SEO
|
|
43
|
-
*/
|
|
44
|
-
meta_description?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Text translations for internationalization
|
|
47
|
-
*/
|
|
48
|
-
i18n?: {
|
|
49
|
-
/**
|
|
50
|
-
* Language specific text fields
|
|
51
|
-
*
|
|
52
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
53
|
-
* via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
|
|
54
|
-
*/
|
|
55
|
-
[k: string]: {
|
|
56
|
-
/**
|
|
57
|
-
* Category full name
|
|
58
|
-
*/
|
|
59
|
-
name?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Short category description in plain text
|
|
62
|
-
*/
|
|
63
|
-
short_description?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Full category description, may use HTML tags
|
|
66
|
-
*/
|
|
67
|
-
body_html?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Full category description, plain text only
|
|
70
|
-
*/
|
|
71
|
-
body_text?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Title tag for page SEO
|
|
74
|
-
*/
|
|
75
|
-
meta_title?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Meta description tag for page SEO
|
|
78
|
-
*/
|
|
79
|
-
meta_description?: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Parent category (above) of current category
|
|
84
|
-
*/
|
|
85
|
-
parent?: {
|
|
86
|
-
/**
|
|
87
|
-
* Parent category ID (ObjectID)
|
|
88
|
-
*/
|
|
89
|
-
_id?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Parent category name
|
|
92
|
-
*/
|
|
93
|
-
name: string;
|
|
94
|
-
/**
|
|
95
|
-
* Text translations for internationalization
|
|
96
|
-
*/
|
|
97
|
-
i18n?: {
|
|
98
|
-
/**
|
|
99
|
-
* Language specific text fields
|
|
100
|
-
*
|
|
101
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
102
|
-
* via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
|
|
103
|
-
*/
|
|
104
|
-
[k: string]: {
|
|
105
|
-
/**
|
|
106
|
-
* Parent category name
|
|
107
|
-
*/
|
|
108
|
-
name?: string;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Parent category page slug
|
|
113
|
-
*/
|
|
114
|
-
slug?: string;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Category icon image
|
|
118
|
-
*/
|
|
119
|
-
icon?: {
|
|
120
|
-
/**
|
|
121
|
-
* Image link
|
|
122
|
-
*/
|
|
123
|
-
url: string;
|
|
124
|
-
/**
|
|
125
|
-
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
126
|
-
*/
|
|
127
|
-
size?: string;
|
|
128
|
-
/**
|
|
129
|
-
* Alternative text, HTML alt tag (important for SEO)
|
|
130
|
-
*/
|
|
131
|
-
alt?: string;
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* List of category images
|
|
135
|
-
*
|
|
136
|
-
* @maxItems 50
|
|
137
|
-
*/
|
|
138
|
-
pictures?: {
|
|
139
|
-
/**
|
|
140
|
-
* Picture ID (ObjectID) [auto]
|
|
141
|
-
*/
|
|
142
|
-
_id?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Tag to identify object, use only lowercase letters, digits and underscore
|
|
145
|
-
*/
|
|
146
|
-
tag?: string;
|
|
147
|
-
/**
|
|
148
|
-
* Image link
|
|
149
|
-
*/
|
|
150
|
-
url: string;
|
|
151
|
-
/**
|
|
152
|
-
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
153
|
-
*/
|
|
154
|
-
size?: string;
|
|
155
|
-
/**
|
|
156
|
-
* Alternative text, HTML alt tag (important for SEO)
|
|
157
|
-
*/
|
|
158
|
-
alt?: string;
|
|
159
|
-
}[];
|
|
160
|
-
/**
|
|
161
|
-
* Mercado Libre Taxonomy: https://api.mercadolibre.com/sites/MLB/categories
|
|
162
|
-
*/
|
|
163
|
-
ml_category_id?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Google Taxonomy: https://www.google.com/basepages/producttype/taxonomy-with-ids.pt-BR.txt
|
|
166
|
-
*/
|
|
167
|
-
google_product_category_id?: number;
|
|
168
|
-
/**
|
|
169
|
-
* List of custom attributes
|
|
170
|
-
*
|
|
171
|
-
* @maxItems 100
|
|
172
|
-
*/
|
|
173
|
-
metafields?: {
|
|
174
|
-
/**
|
|
175
|
-
* String to help distinguish who (or which app) created and can use the metafield
|
|
176
|
-
*/
|
|
177
|
-
namespace?: string;
|
|
178
|
-
/**
|
|
179
|
-
* Field name
|
|
180
|
-
*/
|
|
181
|
-
field?: string;
|
|
182
|
-
/**
|
|
183
|
-
* Custom property value
|
|
184
|
-
*/
|
|
185
|
-
value: {
|
|
186
|
-
[k: string]: unknown;
|
|
187
|
-
};
|
|
188
|
-
}[];
|
|
189
|
-
/**
|
|
190
|
-
* Flags to associate additional info
|
|
191
|
-
*
|
|
192
|
-
* @maxItems 10
|
|
193
|
-
*/
|
|
194
|
-
flags?: string[];
|
|
195
|
-
/**
|
|
196
|
-
* Optional notes with additional info about this category
|
|
197
|
-
*/
|
|
198
|
-
notes?: string;
|
|
199
|
-
}
|
package/src/types/grids.d.ts
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface Grids {
|
|
9
|
-
_id: string & { length: 24 };
|
|
10
|
-
created_at: string;
|
|
11
|
-
updated_at: string;
|
|
12
|
-
store_id: number;
|
|
13
|
-
/**
|
|
14
|
-
* Grid title
|
|
15
|
-
*/
|
|
16
|
-
title: string;
|
|
17
|
-
/**
|
|
18
|
-
* Text translations for internationalization
|
|
19
|
-
*/
|
|
20
|
-
i18n?: {
|
|
21
|
-
/**
|
|
22
|
-
* Language specific text fields
|
|
23
|
-
*
|
|
24
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
25
|
-
* via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
|
|
26
|
-
*/
|
|
27
|
-
[k: string]: {
|
|
28
|
-
/**
|
|
29
|
-
* Grid title
|
|
30
|
-
*/
|
|
31
|
-
title?: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Identifier for integrations and syncronizations, generally the grid name normalized
|
|
36
|
-
*/
|
|
37
|
-
grid_id?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Pre-defined options for this grid, used in specifications, customization and variations
|
|
40
|
-
*
|
|
41
|
-
* @maxItems 3000
|
|
42
|
-
*/
|
|
43
|
-
options?: {
|
|
44
|
-
/**
|
|
45
|
-
* Option ID (ObjectID) [auto]
|
|
46
|
-
*/
|
|
47
|
-
_id?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Option text value displayed for the client
|
|
50
|
-
*/
|
|
51
|
-
text: string;
|
|
52
|
-
/**
|
|
53
|
-
* Text translations for internationalization
|
|
54
|
-
*/
|
|
55
|
-
i18n?: {
|
|
56
|
-
/**
|
|
57
|
-
* Language specific text fields
|
|
58
|
-
*
|
|
59
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
60
|
-
* via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
|
|
61
|
-
*/
|
|
62
|
-
[k: string]: {
|
|
63
|
-
/**
|
|
64
|
-
* Option text value displayed for the client
|
|
65
|
-
*/
|
|
66
|
-
text?: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Default normalized value to use in integrations
|
|
71
|
-
*/
|
|
72
|
-
value?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Normalized values to use in specific integrations (ID in property)
|
|
75
|
-
*/
|
|
76
|
-
external_values?: {
|
|
77
|
-
/**
|
|
78
|
-
* Attribute text value
|
|
79
|
-
*
|
|
80
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
81
|
-
* via the `patternProperty` "^[a-z0-9_]{2,30}$".
|
|
82
|
-
*/
|
|
83
|
-
[k: string]: string;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Option color palette (if the grid involves colors), starting by main color
|
|
87
|
-
*
|
|
88
|
-
* @maxItems 6
|
|
89
|
-
*/
|
|
90
|
-
colors?: string[];
|
|
91
|
-
/**
|
|
92
|
-
* Default price alteration for product with this option for customization or variations
|
|
93
|
-
*/
|
|
94
|
-
add_to_price?: {
|
|
95
|
-
/**
|
|
96
|
-
* Type of price addition
|
|
97
|
-
*/
|
|
98
|
-
type?: 'percentage' | 'fixed';
|
|
99
|
-
/**
|
|
100
|
-
* Additional value, could be negative
|
|
101
|
-
*/
|
|
102
|
-
addition: number;
|
|
103
|
-
};
|
|
104
|
-
}[];
|
|
105
|
-
/**
|
|
106
|
-
* If this grid accept custom value defined by customer (product customization)
|
|
107
|
-
*/
|
|
108
|
-
custom_value?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* If this grid accept customer file attachment
|
|
111
|
-
*/
|
|
112
|
-
attachment?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Default price alteration for product with this grid for customization or variations
|
|
115
|
-
*/
|
|
116
|
-
add_to_price?: {
|
|
117
|
-
/**
|
|
118
|
-
* Type of price addition
|
|
119
|
-
*/
|
|
120
|
-
type?: 'percentage' | 'fixed';
|
|
121
|
-
/**
|
|
122
|
-
* Additional value, could be negative
|
|
123
|
-
*/
|
|
124
|
-
addition: number;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* List of custom attributes
|
|
128
|
-
*
|
|
129
|
-
* @maxItems 100
|
|
130
|
-
*/
|
|
131
|
-
metafields?: {
|
|
132
|
-
/**
|
|
133
|
-
* String to help distinguish who (or which app) created and can use the metafield
|
|
134
|
-
*/
|
|
135
|
-
namespace?: string;
|
|
136
|
-
/**
|
|
137
|
-
* Field name
|
|
138
|
-
*/
|
|
139
|
-
field?: string;
|
|
140
|
-
/**
|
|
141
|
-
* Custom property value
|
|
142
|
-
*/
|
|
143
|
-
value: {
|
|
144
|
-
[k: string]: unknown;
|
|
145
|
-
};
|
|
146
|
-
}[];
|
|
147
|
-
/**
|
|
148
|
-
* Flags to associate additional info
|
|
149
|
-
*
|
|
150
|
-
* @maxItems 10
|
|
151
|
-
*/
|
|
152
|
-
flags?: string[];
|
|
153
|
-
/**
|
|
154
|
-
* Optional notes with additional info about this product
|
|
155
|
-
*/
|
|
156
|
-
notes?: string;
|
|
157
|
-
}
|