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