@cloudcommerce/api 2.3.1 → 2.3.3

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.
@@ -1,4 +1,5 @@
1
-
2
- > @cloudcommerce/api@2.3.0 build /home/leo/code/ecomplus/cloud-commerce/packages/api
3
- > bash ../../scripts/build-lib.sh
4
-
1
+
2
+
3
+ > @cloudcommerce/api@2.3.2 build /home/leo/code/ecomplus/cloud-commerce/packages/api
4
+ > bash ../../scripts/build-lib.sh
5
+
@@ -1,23 +1,431 @@
1
-
2
- > @cloudcommerce/api@2.3.0 test /home/leo/code/ecomplus/cloud-commerce/packages/api
3
- > tsc -p ../../tsconfig.test.json && vitest run
4
-
5
-
6
- RUN v1.2.2 /home/leo/code/ecomplus/cloud-commerce/packages/api
7
-
8
- stdout | tests/index.test.ts > Read product and typecheck SKU
9
- GFJ4714
10
-
11
- tests/index.test.ts > Read product and typecheck SKU
12
- tests/index.test.ts > Find and read product by SKU
13
- tests/index.test.ts > 404 with different Store ID from env
14
- tests/index.test.ts > List categories and typecheck result
15
- tests/index.test.ts > 401 trying to list API events
16
- ✓ tests/index.test.ts > 401 to create category and body typecheck
17
- ✓ tests/index.test.ts > 204 to update products views
18
-
19
- Test Files 1 passed (1)
20
- Tests 7 passed (7)
21
- Start at 18:58:24
22
- Duration 1.25s (transform 118ms, setup 0ms, collect 117ms, tests 682ms, environment 0ms, prepare 129ms)
23
-
1
+
2
+
3
+ > @cloudcommerce/api@2.3.2 test /home/leo/code/ecomplus/cloud-commerce/packages/api
4
+ > tsc -p ../../tsconfig.test.json && vitest run
5
+
6
+
7
+  RUN  v1.2.2 /home/leo/code/ecomplus/cloud-commerce/packages/api
8
+
9
+ [?25l · tests/index.test.ts (7)
10
+ · Read product and typecheck SKU
11
+ · Find and read product by SKU
12
+ · 404 with different Store ID from env
13
+ · List categories and typecheck result
14
+ · 401 trying to list API events
15
+ · 401 to create category and body type
16
+ check
17
+ · 204 to update products views
18
+ [?25l[?25l[?25l[?25l[?25l ❯ tests/index.test.ts (7)
19
+ ⠙ Read product and typecheck SKU
20
+ · Find and read product by SKU
21
+ · 404 with different Store ID from env
22
+ · List categories and typecheck result
23
+ · 401 trying to list API events
24
+ · 401 to create category and body type
25
+ check
26
+ · 204 to update products views
27
+ [?25l ❯ tests/index.test.ts (7)
28
+ ⠹ Read product and typecheck SKU
29
+ · Find and read product by SKU
30
+ · 404 with different Store ID from env
31
+ · List categories and typecheck result
32
+ · 401 trying to list API events
33
+ · 401 to create category and body type
34
+ check
35
+ · 204 to update products views
36
+ [?25l ❯ tests/index.test.ts (7)
37
+ ⠸ Read product and typecheck SKU
38
+ · Find and read product by SKU
39
+ · 404 with different Store ID from env
40
+ · List categories and typecheck result
41
+ · 401 trying to list API events
42
+ · 401 to create category and body type
43
+ check
44
+ · 204 to update products views
45
+ [?25l ❯ tests/index.test.ts (7)
46
+ ⠼ Read product and typecheck SKU
47
+ · Find and read product by SKU
48
+ · 404 with different Store ID from env
49
+ · List categories and typecheck result
50
+ · 401 trying to list API events
51
+ · 401 to create category and body type
52
+ check
53
+ · 204 to update products views
54
+ [?25l ❯ tests/index.test.ts (7)
55
+ ⠴ Read product and typecheck SKU
56
+ · Find and read product by SKU
57
+ · 404 with different Store ID from env
58
+ · List categories and typecheck result
59
+ · 401 trying to list API events
60
+ · 401 to create category and body type
61
+ check
62
+ · 204 to update products views
63
+ [?25l ❯ tests/index.test.ts (7)
64
+ ⠦ Read product and typecheck SKU
65
+ · Find and read product by SKU
66
+ · 404 with different Store ID from env
67
+ · List categories and typecheck result
68
+ · 401 trying to list API events
69
+ · 401 to create category and body type
70
+ check
71
+ · 204 to update products views
72
+ [?25l ❯ tests/index.test.ts (7)
73
+ ⠧ Read product and typecheck SKU
74
+ · Find and read product by SKU
75
+ · 404 with different Store ID from env
76
+ · List categories and typecheck result
77
+ · 401 trying to list API events
78
+ · 401 to create category and body type
79
+ check
80
+ · 204 to update products views
81
+ [?25l ❯ tests/index.test.ts (7)
82
+ ⠇ Read product and typecheck SKU
83
+ · Find and read product by SKU
84
+ · 404 with different Store ID from env
85
+ · List categories and typecheck result
86
+ · 401 trying to list API events
87
+ · 401 to create category and body type
88
+ check
89
+ · 204 to update products views
90
+ [?25l ❯ tests/index.test.ts (7)
91
+ ⠏ Read product and typecheck SKU
92
+ · Find and read product by SKU
93
+ · 404 with different Store ID from env
94
+ · List categories and typecheck result
95
+ · 401 trying to list API events
96
+ · 401 to create category and body type
97
+ check
98
+ · 204 to update products views
99
+ [?25l ❯ tests/index.test.ts (7)
100
+ ⠋ Read product and typecheck SKU
101
+ · Find and read product by SKU
102
+ · 404 with different Store ID from env
103
+ · List categories and typecheck result
104
+ · 401 trying to list API events
105
+ · 401 to create category and body type
106
+ check
107
+ · 204 to update products views
108
+ [?25l ❯ tests/index.test.ts (7)
109
+ ⠙ Read product and typecheck SKU
110
+ · Find and read product by SKU
111
+ · 404 with different Store ID from env
112
+ · List categories and typecheck result
113
+ · 401 trying to list API events
114
+ · 401 to create category and body type
115
+ check
116
+ · 204 to update products views
117
+ [?25l ❯ tests/index.test.ts (7)
118
+ ⠹ Read product and typecheck SKU
119
+ · Find and read product by SKU
120
+ · 404 with different Store ID from env
121
+ · List categories and typecheck result
122
+ · 401 trying to list API events
123
+ · 401 to create category and body type
124
+ check
125
+ · 204 to update products views
126
+ [?25l ❯ tests/index.test.ts (7)
127
+ ⠸ Read product and typecheck SKU
128
+ · Find and read product by SKU
129
+ · 404 with different Store ID from env
130
+ · List categories and typecheck result
131
+ · 401 trying to list API events
132
+ · 401 to create category and body type
133
+ check
134
+ · 204 to update products views
135
+ [?25l ❯ tests/index.test.ts (7)
136
+ ⠼ Read product and typecheck SKU
137
+ · Find and read product by SKU
138
+ · 404 with different Store ID from env
139
+ · List categories and typecheck result
140
+ · 401 trying to list API events
141
+ · 401 to create category and body type
142
+ check
143
+ · 204 to update products views
144
+ [?25l ❯ tests/index.test.ts (7)
145
+ ⠴ Read product and typecheck SKU
146
+ · Find and read product by SKU
147
+ · 404 with different Store ID from env
148
+ · List categories and typecheck result
149
+ · 401 trying to list API events
150
+ · 401 to create category and body type
151
+ check
152
+ · 204 to update products views
153
+ [?25l ❯ tests/index.test.ts (7)
154
+ ⠦ Read product and typecheck SKU
155
+ · Find and read product by SKU
156
+ · 404 with different Store ID from env
157
+ · List categories and typecheck result
158
+ · 401 trying to list API events
159
+ · 401 to create category and body type
160
+ check
161
+ · 204 to update products views
162
+ [?25l ❯ tests/index.test.ts (7)
163
+ ⠧ Read product and typecheck SKU
164
+ · Find and read product by SKU
165
+ · 404 with different Store ID from env
166
+ · List categories and typecheck result
167
+ · 401 trying to list API events
168
+ · 401 to create category and body type
169
+ check
170
+ · 204 to update products views
171
+ stdout | tests/index.test.ts > Read product and typecheck SKU
172
+ GFJ4714
173
+
174
+ [?25l ❯ tests/index.test.ts (7)
175
+ ⠇ Read product and typecheck SKU
176
+ · Find and read product by SKU
177
+ · 404 with different Store ID from env
178
+ · List categories and typecheck result
179
+ · 401 trying to list API events
180
+ · 401 to create category and body type
181
+ check
182
+ · 204 to update products views
183
+ [?25l ❯ tests/index.test.ts (7)
184
+ ✓ Read product and typecheck SKU 374ms
185
+ ⠙ Find and read product by SKU
186
+ · 404 with different Store ID from env
187
+ · List categories and typecheck result
188
+ · 401 trying to list API events
189
+ · 401 to create category and body type
190
+ check
191
+ · 204 to update products views
192
+ [?25l ❯ tests/index.test.ts (7)
193
+ ✓ Read product and typecheck SKU 374ms
194
+ ⠹ Find and read product by SKU
195
+ · 404 with different Store ID from env
196
+ · List categories and typecheck result
197
+ · 401 trying to list API events
198
+ · 401 to create category and body type
199
+ check
200
+ · 204 to update products views
201
+ [?25l ❯ tests/index.test.ts (7)
202
+ ✓ Read product and typecheck SKU 374ms
203
+ ✓ Find and read product by SKU
204
+ ⠙ 404 with different Store ID from env
205
+ · List categories and typecheck result
206
+ · 401 trying to list API events
207
+ · 401 to create category and body type
208
+ check
209
+ · 204 to update products views
210
+ [?25l ❯ tests/index.test.ts (7)
211
+ ✓ Read product and typecheck SKU 374ms
212
+ ✓ Find and read product by SKU
213
+ ⠹ 404 with different Store ID from env
214
+ · List categories and typecheck result
215
+ · 401 trying to list API events
216
+ · 401 to create category and body type
217
+ check
218
+ · 204 to update products views
219
+ [?25l ❯ tests/index.test.ts (7)
220
+ ✓ Read product and typecheck SKU 374ms
221
+ ✓ Find and read product by SKU
222
+ ✓ 404 with different Store ID from env
223
+ ⠙ List categories and typecheck result
224
+ · 401 trying to list API events
225
+ · 401 to create category and body type
226
+ check
227
+ · 204 to update products views
228
+ [?25l ❯ tests/index.test.ts (7)
229
+ ✓ Read product and typecheck SKU 374ms
230
+ ✓ Find and read product by SKU
231
+ ✓ 404 with different Store ID from env
232
+ ⠹ List categories and typecheck result
233
+ · 401 trying to list API events
234
+ · 401 to create category and body type
235
+ check
236
+ · 204 to update products views
237
+ [?25l ❯ tests/index.test.ts (7)
238
+ ✓ Read product and typecheck SKU 374ms
239
+ ✓ Find and read product by SKU
240
+ ✓ 404 with different Store ID from env
241
+ ⠸ List categories and typecheck result
242
+ · 401 trying to list API events
243
+ · 401 to create category and body type
244
+ check
245
+ · 204 to update products views
246
+ [?25l ❯ tests/index.test.ts (7)
247
+ ✓ Read product and typecheck SKU 374ms
248
+ ✓ Find and read product by SKU
249
+ ✓ 404 with different Store ID from env
250
+ ⠼ List categories and typecheck result
251
+ · 401 trying to list API events
252
+ · 401 to create category and body type
253
+ check
254
+ · 204 to update products views
255
+ [?25l ❯ tests/index.test.ts (7)
256
+ ✓ Read product and typecheck SKU 374ms
257
+ ✓ Find and read product by SKU
258
+ ✓ 404 with different Store ID from env
259
+ ⠴ List categories and typecheck result
260
+ · 401 trying to list API events
261
+ · 401 to create category and body type
262
+ check
263
+ · 204 to update products views
264
+ [?25l ❯ tests/index.test.ts (7)
265
+ ✓ Read product and typecheck SKU 374ms
266
+ ✓ Find and read product by SKU
267
+ ✓ 404 with different Store ID from env
268
+ ⠦ List categories and typecheck result
269
+ · 401 trying to list API events
270
+ · 401 to create category and body type
271
+ check
272
+ · 204 to update products views
273
+ [?25l ❯ tests/index.test.ts (7)
274
+ ✓ Read product and typecheck SKU 374ms
275
+ ✓ Find and read product by SKU
276
+ ✓ 404 with different Store ID from env
277
+ ⠧ List categories and typecheck result
278
+ · 401 trying to list API events
279
+ · 401 to create category and body type
280
+ check
281
+ · 204 to update products views
282
+ [?25l ❯ tests/index.test.ts (7)
283
+ ✓ Read product and typecheck SKU 374ms
284
+ ✓ Find and read product by SKU
285
+ ✓ 404 with different Store ID from env
286
+ ⠇ List categories and typecheck result
287
+ · 401 trying to list API events
288
+ · 401 to create category and body type
289
+ check
290
+ · 204 to update products views
291
+ [?25l ❯ tests/index.test.ts (7)
292
+ ✓ Read product and typecheck SKU 374ms
293
+ ✓ Find and read product by SKU
294
+ ✓ 404 with different Store ID from env
295
+ ⠏ List categories and typecheck result
296
+ · 401 trying to list API events
297
+ · 401 to create category and body type
298
+ check
299
+ · 204 to update products views
300
+ [?25l ❯ tests/index.test.ts (7)
301
+ ✓ Read product and typecheck SKU 374ms
302
+ ✓ Find and read product by SKU
303
+ ✓ 404 with different Store ID from env
304
+ ⠋ List categories and typecheck result
305
+ · 401 trying to list API events
306
+ · 401 to create category and body type
307
+ check
308
+ · 204 to update products views
309
+ [?25l ❯ tests/index.test.ts (7)
310
+ ✓ Read product and typecheck SKU 374ms
311
+ ✓ Find and read product by SKU
312
+ ✓ 404 with different Store ID from env
313
+ ⠙ List categories and typecheck result
314
+ · 401 trying to list API events
315
+ · 401 to create category and body type
316
+ check
317
+ · 204 to update products views
318
+ [?25l ❯ tests/index.test.ts (7)
319
+ ✓ Read product and typecheck SKU 374ms
320
+ ✓ Find and read product by SKU
321
+ ✓ 404 with different Store ID from env
322
+ ✓ List categories and typecheck result
323
+ ⠙ 401 trying to list API events
324
+ · 401 to create category and body type
325
+ check
326
+ · 204 to update products views
327
+ [?25l ❯ tests/index.test.ts (7)
328
+ ✓ Read product and typecheck SKU 374ms
329
+ ✓ Find and read product by SKU
330
+ ✓ 404 with different Store ID from env
331
+ ✓ List categories and typecheck result
332
+ ✓ 401 trying to list API events
333
+ ⠙ 401 to create category and body type
334
+ check
335
+ · 204 to update products views
336
+ [?25l ❯ tests/index.test.ts (7)
337
+ ✓ Read product and typecheck SKU 374ms
338
+ ✓ Find and read product by SKU
339
+ ✓ 404 with different Store ID from env
340
+ ✓ List categories and typecheck result
341
+ ✓ 401 trying to list API events
342
+ ⠹ 401 to create category and body type
343
+ check
344
+ · 204 to update products views
345
+ [?25l ❯ tests/index.test.ts (7)
346
+ ✓ Read product and typecheck SKU 374ms
347
+ ✓ Find and read product by SKU
348
+ ✓ 404 with different Store ID from env
349
+ ✓ List categories and typecheck result
350
+ ✓ 401 trying to list API events
351
+ ✓ 401 to create category and body type
352
+ check
353
+ ⠙ 204 to update products views
354
+ [?25l ❯ tests/index.test.ts (7)
355
+ ✓ Read product and typecheck SKU 374ms
356
+ ✓ Find and read product by SKU
357
+ ✓ 404 with different Store ID from env
358
+ ✓ List categories and typecheck result
359
+ ✓ 401 trying to list API events
360
+ ✓ 401 to create category and body type
361
+ check
362
+ ⠹ 204 to update products views
363
+ [?25l ❯ tests/index.test.ts (7)
364
+ ✓ Read product and typecheck SKU 374ms
365
+ ✓ Find and read product by SKU
366
+ ✓ 404 with different Store ID from env
367
+ ✓ List categories and typecheck result
368
+ ✓ 401 trying to list API events
369
+ ✓ 401 to create category and body type
370
+ check
371
+ ⠸ 204 to update products views
372
+ [?25l ❯ tests/index.test.ts (7)
373
+ ✓ Read product and typecheck SKU 374ms
374
+ ✓ Find and read product by SKU
375
+ ✓ 404 with different Store ID from env
376
+ ✓ List categories and typecheck result
377
+ ✓ 401 trying to list API events
378
+ ✓ 401 to create category and body type
379
+ check
380
+ ⠼ 204 to update products views
381
+ [?25l ❯ tests/index.test.ts (7)
382
+ ✓ Read product and typecheck SKU 374ms
383
+ ✓ Find and read product by SKU
384
+ ✓ 404 with different Store ID from env
385
+ ✓ List categories and typecheck result
386
+ ✓ 401 trying to list API events
387
+ ✓ 401 to create category and body type
388
+ check
389
+ ⠴ 204 to update products views
390
+ [?25l ❯ tests/index.test.ts (7)
391
+ ✓ Read product and typecheck SKU 374ms
392
+ ✓ Find and read product by SKU
393
+ ✓ 404 with different Store ID from env
394
+ ✓ List categories and typecheck result
395
+ ✓ 401 trying to list API events
396
+ ✓ 401 to create category and body type
397
+ check
398
+ ⠦ 204 to update products views
399
+ [?25l ❯ tests/index.test.ts (7)
400
+ ✓ Read product and typecheck SKU 374ms
401
+ ✓ Find and read product by SKU
402
+ ✓ 404 with different Store ID from env
403
+ ✓ List categories and typecheck result
404
+ ✓ 401 trying to list API events
405
+ ✓ 401 to create category and body type
406
+ check
407
+ ⠧ 204 to update products views
408
+ [?25l ✓ tests/index.test.ts (7) 797ms
409
+ ✓ Read product and typecheck SKU 374ms
410
+ ✓ Find and read product by SKU
411
+ ✓ 404 with different Store ID from env
412
+ ✓ List categories and typecheck result
413
+ ✓ 401 trying to list API events
414
+ ✓ 401 to create category and body type
415
+ check
416
+ ✓ 204 to update products views
417
+  ✓ tests/index.test.ts (7) 797ms
418
+ ✓ Read product and typecheck SKU 374ms
419
+ ✓ Find and read product by SKU
420
+ ✓ 404 with different Store ID from env
421
+ ✓ List categories and typecheck result
422
+ ✓ 401 trying to list API events
423
+ ✓ 401 to create category and body typecheck
424
+ ✓ 204 to update products views
425
+
426
+  Test Files  1 passed (1)
427
+  Tests  7 passed (7)
428
+  Start at  21:20:12
429
+  Duration  1.37s (transform 135ms, setup 0ms, collect 135ms, tests 797ms, environment 0ms, prepare 138ms)
430
+
431
+ [?25h
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "2.3.1",
4
+ "version": "2.3.3",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/api.js",
7
7
  "types": "lib/api.d.ts",
package/types/brands.d.ts CHANGED
@@ -47,10 +47,6 @@ export interface Brands {
47
47
  * Full brand description, may use HTML tags
48
48
  */
49
49
  body_html?: string;
50
- /**
51
- * Full brand description, plain text only
52
- */
53
- body_text?: string;
54
50
  /**
55
51
  * Title tag for page SEO
56
52
  */
@@ -82,10 +78,6 @@ export interface Brands {
82
78
  * Full brand description, may use HTML tags
83
79
  */
84
80
  body_html?: string;
85
- /**
86
- * Full brand description, plain text only
87
- */
88
- body_text?: string;
89
81
  /**
90
82
  * Title tag for page SEO
91
83
  */
@@ -47,10 +47,6 @@ export interface Categories {
47
47
  * Full category description, may use HTML tags
48
48
  */
49
49
  body_html?: string;
50
- /**
51
- * Full category description, plain text only
52
- */
53
- body_text?: string;
54
50
  /**
55
51
  * Title tag for page SEO
56
52
  */
@@ -82,10 +78,6 @@ export interface Categories {
82
78
  * Full category description, may use HTML tags
83
79
  */
84
80
  body_html?: string;
85
- /**
86
- * Full category description, plain text only
87
- */
88
- body_text?: string;
89
81
  /**
90
82
  * Title tag for page SEO
91
83
  */
@@ -41,10 +41,6 @@ export interface Collections {
41
41
  * Full collection description, may use HTML tags
42
42
  */
43
43
  body_html?: string;
44
- /**
45
- * Full collection description, plain text only
46
- */
47
- body_text?: string;
48
44
  /**
49
45
  * Title tag for page SEO
50
46
  */
@@ -76,10 +72,6 @@ export interface Collections {
76
72
  * Full collection description, may use HTML tags
77
73
  */
78
74
  body_html?: string;
79
- /**
80
- * Full collection description, plain text only
81
- */
82
- body_text?: string;
83
75
  /**
84
76
  * Title tag for page SEO
85
77
  */
@@ -71,10 +71,6 @@ export interface Products {
71
71
  * Full product description, may use HTML tags
72
72
  */
73
73
  body_html?: string;
74
- /**
75
- * Full product description, plain text only
76
- */
77
- body_text?: string;
78
74
  /**
79
75
  * Title tag for page SEO
80
76
  */
@@ -106,10 +102,6 @@ export interface Products {
106
102
  * Full product description, may use HTML tags
107
103
  */
108
104
  body_html?: string;
109
- /**
110
- * Full product description, plain text only
111
- */
112
- body_text?: string;
113
105
  /**
114
106
  * Title tag for page SEO
115
107
  */
package/types/stores.d.ts CHANGED
@@ -128,11 +128,22 @@ export interface Stores {
128
128
  */
129
129
  contact_cellphone?: string;
130
130
  /**
131
+ * Store sales channel list
132
+ *
131
133
  * @maxItems 30
132
134
  */
133
135
  sales_channels?: {
136
+ /**
137
+ * Sales channel unique identifier or domain name
138
+ */
134
139
  channel_id: string;
140
+ /**
141
+ * Sales channel type
142
+ */
135
143
  type?: 'ecommerce' | 'mobile' | 'pos' | 'button' | 'social' | 'chatbot' | 'live';
144
+ /**
145
+ * Sales channel title
146
+ */
136
147
  title?: string;
137
148
  }[];
138
149
  }