@cloudcommerce/api 1.0.0-alpha.7 → 2.0.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.
@@ -0,0 +1,216 @@
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
+ /**
9
+ * Category object model
10
+ */
11
+ export interface Categories {
12
+ /**
13
+ * Category ID (ObjectID) [auto]
14
+ */
15
+ _id: string & { length: 24 };
16
+ /**
17
+ * When object was seted (POST/PUT), date and time in ISO 8601 standard representation [auto]
18
+ */
19
+ created_at: string;
20
+ /**
21
+ * When was it last changed, date and time in ISO 8601 standard representation [auto]
22
+ */
23
+ updated_at: string;
24
+ /**
25
+ * ID of store [auto]
26
+ */
27
+ store_id: number;
28
+ /**
29
+ * List of sales channels if category not available in all channels
30
+ *
31
+ * @maxItems 10
32
+ */
33
+ channel_ids?: string[];
34
+ /**
35
+ * Category full name
36
+ */
37
+ name: string;
38
+ /**
39
+ * Slug to complete page URL, starting with number or lowercase letter
40
+ */
41
+ slug?: string;
42
+ /**
43
+ * Short category description in plain text
44
+ */
45
+ short_description?: string;
46
+ /**
47
+ * Full category description, may use HTML tags
48
+ */
49
+ body_html?: string;
50
+ /**
51
+ * Full category description, plain text only
52
+ */
53
+ body_text?: string;
54
+ /**
55
+ * Title tag for page SEO
56
+ */
57
+ meta_title?: string;
58
+ /**
59
+ * Meta description tag for page SEO
60
+ */
61
+ meta_description?: string;
62
+ /**
63
+ * Text translations for internationalization
64
+ */
65
+ i18n?: {
66
+ /**
67
+ * Language specific text fields
68
+ *
69
+ * This interface was referenced by `undefined`'s JSON-Schema definition
70
+ * via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
71
+ */
72
+ [k: string]: {
73
+ /**
74
+ * Category full name
75
+ */
76
+ name?: string;
77
+ /**
78
+ * Short category description in plain text
79
+ */
80
+ short_description?: string;
81
+ /**
82
+ * Full category description, may use HTML tags
83
+ */
84
+ body_html?: string;
85
+ /**
86
+ * Full category description, plain text only
87
+ */
88
+ body_text?: string;
89
+ /**
90
+ * Title tag for page SEO
91
+ */
92
+ meta_title?: string;
93
+ /**
94
+ * Meta description tag for page SEO
95
+ */
96
+ meta_description?: string;
97
+ };
98
+ };
99
+ /**
100
+ * Parent category (above) of current category
101
+ */
102
+ parent?: {
103
+ /**
104
+ * Parent category ID (ObjectID)
105
+ */
106
+ _id?: string & { length: 24 };
107
+ /**
108
+ * Parent category name
109
+ */
110
+ name: string;
111
+ /**
112
+ * Text translations for internationalization
113
+ */
114
+ i18n?: {
115
+ /**
116
+ * Language specific text fields
117
+ *
118
+ * This interface was referenced by `undefined`'s JSON-Schema definition
119
+ * via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
120
+ */
121
+ [k: string]: {
122
+ /**
123
+ * Parent category name
124
+ */
125
+ name?: string;
126
+ };
127
+ };
128
+ /**
129
+ * Parent category page slug
130
+ */
131
+ slug?: string;
132
+ };
133
+ /**
134
+ * Category icon image
135
+ */
136
+ icon?: {
137
+ /**
138
+ * Image link
139
+ */
140
+ url: string;
141
+ /**
142
+ * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
143
+ */
144
+ size?: string;
145
+ /**
146
+ * Alternative text, HTML alt tag (important for SEO)
147
+ */
148
+ alt?: string;
149
+ };
150
+ /**
151
+ * List of category images
152
+ *
153
+ * @maxItems 50
154
+ */
155
+ pictures?: {
156
+ /**
157
+ * Picture ID (ObjectID) [auto]
158
+ */
159
+ _id?: string & { length: 24 };
160
+ /**
161
+ * Tag to identify object, use only lowercase letters, digits and underscore
162
+ */
163
+ tag?: string;
164
+ /**
165
+ * Image link
166
+ */
167
+ url: string;
168
+ /**
169
+ * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
170
+ */
171
+ size?: string;
172
+ /**
173
+ * Alternative text, HTML alt tag (important for SEO)
174
+ */
175
+ alt?: string;
176
+ }[];
177
+ /**
178
+ * Mercado Libre Taxonomy: https://api.mercadolibre.com/sites/MLB/categories
179
+ */
180
+ ml_category_id?: string;
181
+ /**
182
+ * Google Taxonomy: https://www.google.com/basepages/producttype/taxonomy-with-ids.pt-BR.txt
183
+ */
184
+ google_product_category_id?: number;
185
+ /**
186
+ * List of custom attributes
187
+ *
188
+ * @maxItems 100
189
+ */
190
+ metafields?: {
191
+ /**
192
+ * String to help distinguish who (or which app) created and can use the metafield
193
+ */
194
+ namespace?: string;
195
+ /**
196
+ * Field name
197
+ */
198
+ field?: string;
199
+ /**
200
+ * Custom property value
201
+ */
202
+ value: {
203
+ [k: string]: unknown;
204
+ };
205
+ }[];
206
+ /**
207
+ * Flags to associate additional info
208
+ *
209
+ * @maxItems 10
210
+ */
211
+ flags?: string[];
212
+ /**
213
+ * Optional notes with additional info about this category
214
+ */
215
+ notes?: string;
216
+ }
@@ -0,0 +1,174 @@
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
+ /**
9
+ * Collection object model
10
+ */
11
+ export interface Collections {
12
+ /**
13
+ * Collection ID (ObjectID) [auto]
14
+ */
15
+ _id: string & { length: 24 };
16
+ /**
17
+ * When object was seted (POST/PUT), date and time in ISO 8601 standard representation [auto]
18
+ */
19
+ created_at: string;
20
+ /**
21
+ * When was it last changed, date and time in ISO 8601 standard representation [auto]
22
+ */
23
+ updated_at: string;
24
+ /**
25
+ * ID of store [auto]
26
+ */
27
+ store_id: number;
28
+ /**
29
+ * Collection full name
30
+ */
31
+ name: string;
32
+ /**
33
+ * Slug to complete page URL, starting with number or lowercase letter
34
+ */
35
+ slug?: string;
36
+ /**
37
+ * Short collection description in plain text
38
+ */
39
+ short_description?: string;
40
+ /**
41
+ * Full collection description, may use HTML tags
42
+ */
43
+ body_html?: string;
44
+ /**
45
+ * Full collection description, plain text only
46
+ */
47
+ body_text?: string;
48
+ /**
49
+ * Title tag for page SEO
50
+ */
51
+ meta_title?: string;
52
+ /**
53
+ * Meta description tag for page SEO
54
+ */
55
+ meta_description?: string;
56
+ /**
57
+ * Text translations for internationalization
58
+ */
59
+ i18n?: {
60
+ /**
61
+ * Language specific text fields
62
+ *
63
+ * This interface was referenced by `undefined`'s JSON-Schema definition
64
+ * via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
65
+ */
66
+ [k: string]: {
67
+ /**
68
+ * Category full name
69
+ */
70
+ name?: string;
71
+ /**
72
+ * Short collection description in plain text
73
+ */
74
+ short_description?: string;
75
+ /**
76
+ * Full collection description, may use HTML tags
77
+ */
78
+ body_html?: string;
79
+ /**
80
+ * Full collection description, plain text only
81
+ */
82
+ body_text?: string;
83
+ /**
84
+ * Title tag for page SEO
85
+ */
86
+ meta_title?: string;
87
+ /**
88
+ * Meta description tag for page SEO
89
+ */
90
+ meta_description?: string;
91
+ };
92
+ };
93
+ /**
94
+ * List of collection products
95
+ *
96
+ * @maxItems 3000
97
+ */
98
+ products?: Array<string & { length: 24 }>;
99
+ /**
100
+ * Collection icon image
101
+ */
102
+ icon?: {
103
+ /**
104
+ * Image link
105
+ */
106
+ url: string;
107
+ /**
108
+ * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
109
+ */
110
+ size?: string;
111
+ /**
112
+ * Alternative text, HTML alt tag (important for SEO)
113
+ */
114
+ alt?: string;
115
+ };
116
+ /**
117
+ * List of collection images
118
+ *
119
+ * @maxItems 50
120
+ */
121
+ pictures?: {
122
+ /**
123
+ * Picture ID (ObjectID) [auto]
124
+ */
125
+ _id?: string & { length: 24 };
126
+ /**
127
+ * Tag to identify object, use only lowercase letters, digits and underscore
128
+ */
129
+ tag?: string;
130
+ /**
131
+ * Image link
132
+ */
133
+ url: string;
134
+ /**
135
+ * Image size (width x height) in px, such as 100x50 (100px width, 50px height)
136
+ */
137
+ size?: string;
138
+ /**
139
+ * Alternative text, HTML alt tag (important for SEO)
140
+ */
141
+ alt?: string;
142
+ }[];
143
+ /**
144
+ * List of custom attributes
145
+ *
146
+ * @maxItems 100
147
+ */
148
+ metafields?: {
149
+ /**
150
+ * String to help distinguish who (or which app) created and can use the metafield
151
+ */
152
+ namespace?: string;
153
+ /**
154
+ * Field name
155
+ */
156
+ field?: string;
157
+ /**
158
+ * Custom property value
159
+ */
160
+ value: {
161
+ [k: string]: unknown;
162
+ };
163
+ }[];
164
+ /**
165
+ * Flags to associate additional info
166
+ *
167
+ * @maxItems 10
168
+ */
169
+ flags?: string[];
170
+ /**
171
+ * Optional notes with additional info about this category
172
+ */
173
+ notes?: string;
174
+ }