@cloudcommerce/api 2.5.0 → 2.6.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.4.3 build /home/leo/code/ecomplus/cloud-commerce/packages/api
3
+ > @cloudcommerce/api@2.5.1 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.4.3 test /home/leo/code/ecomplus/cloud-commerce/packages/api
3
+ > @cloudcommerce/api@2.5.1 test /home/leo/code/ecomplus/cloud-commerce/packages/api
4
4
  > tsc -p ../../tsconfig.test.json && vitest run
5
5
 
6
6
 
@@ -123,21 +123,21 @@ check
123
123
  · 401 to create category and body type
124
124
  check
125
125
  · 204 to update products views
126
- stdout | tests/index.test.ts > Read product and typecheck SKU
127
- GFJ4714
128
-
129
- [?25l ❯ tests/index.test.ts (7)
130
- ✓ Read product and typecheck SKU
131
- ⠙ Find and read product by SKU
126
+ [?25l ❯ tests/index.test.ts (7)
127
+ ⠸ Read product and typecheck SKU
128
+ · Find and read product by SKU
132
129
  · 404 with different Store ID from env
133
130
  · List categories and typecheck result
134
131
  · 401 trying to list API events
135
132
  · 401 to create category and body type
136
133
  check
137
134
  · 204 to update products views
138
- [?25l ❯ tests/index.test.ts (7)
139
- ✓ Read product and typecheck SKU
140
- ⠹ Find and read product by SKU
135
+ stdout | tests/index.test.ts > Read product and typecheck SKU
136
+ GFJ4714
137
+
138
+ [?25l ❯ tests/index.test.ts (7)
139
+ ⠼ Read product and typecheck SKU
140
+ · Find and read product by SKU
141
141
  · 404 with different Store ID from env
142
142
  · List categories and typecheck result
143
143
  · 401 trying to list API events
@@ -145,8 +145,8 @@ check
145
145
  check
146
146
  · 204 to update products views
147
147
  [?25l ❯ tests/index.test.ts (7)
148
- ✓ Read product and typecheck SKU
149
- ⠸ Find and read product by SKU
148
+ ✓ Read product and typecheck SKU 313ms
149
+ ⠙ Find and read product by SKU
150
150
  · 404 with different Store ID from env
151
151
  · List categories and typecheck result
152
152
  · 401 trying to list API events
@@ -154,7 +154,7 @@ check
154
154
  check
155
155
  · 204 to update products views
156
156
  [?25l ❯ tests/index.test.ts (7)
157
- ✓ Read product and typecheck SKU
157
+ ✓ Read product and typecheck SKU 313ms
158
158
  ✓ Find and read product by SKU
159
159
  ⠙ 404 with different Store ID from env
160
160
  · List categories and typecheck result
@@ -163,7 +163,7 @@ check
163
163
  check
164
164
  · 204 to update products views
165
165
  [?25l ❯ tests/index.test.ts (7)
166
- ✓ Read product and typecheck SKU
166
+ ✓ Read product and typecheck SKU 313ms
167
167
  ✓ Find and read product by SKU
168
168
  ⠹ 404 with different Store ID from env
169
169
  · List categories and typecheck result
@@ -172,16 +172,7 @@ check
172
172
  check
173
173
  · 204 to update products views
174
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
175
+ ✓ Read product and typecheck SKU 313ms
185
176
  ✓ Find and read product by SKU
186
177
  ✓ 404 with different Store ID from env
187
178
  ⠙ List categories and typecheck result
@@ -190,7 +181,7 @@ check
190
181
  check
191
182
  · 204 to update products views
192
183
  [?25l ❯ tests/index.test.ts (7)
193
- ✓ Read product and typecheck SKU
184
+ ✓ Read product and typecheck SKU 313ms
194
185
  ✓ Find and read product by SKU
195
186
  ✓ 404 with different Store ID from env
196
187
  ⠹ List categories and typecheck result
@@ -199,7 +190,7 @@ check
199
190
  check
200
191
  · 204 to update products views
201
192
  [?25l ❯ tests/index.test.ts (7)
202
- ✓ Read product and typecheck SKU
193
+ ✓ Read product and typecheck SKU 313ms
203
194
  ✓ Find and read product by SKU
204
195
  ✓ 404 with different Store ID from env
205
196
  ⠸ List categories and typecheck result
@@ -208,7 +199,7 @@ check
208
199
  check
209
200
  · 204 to update products views
210
201
  [?25l ❯ tests/index.test.ts (7)
211
- ✓ Read product and typecheck SKU
202
+ ✓ Read product and typecheck SKU 313ms
212
203
  ✓ Find and read product by SKU
213
204
  ✓ 404 with different Store ID from env
214
205
  ⠼ List categories and typecheck result
@@ -217,7 +208,7 @@ check
217
208
  check
218
209
  · 204 to update products views
219
210
  [?25l ❯ tests/index.test.ts (7)
220
- ✓ Read product and typecheck SKU
211
+ ✓ Read product and typecheck SKU 313ms
221
212
  ✓ Find and read product by SKU
222
213
  ✓ 404 with different Store ID from env
223
214
  ⠴ List categories and typecheck result
@@ -226,7 +217,7 @@ check
226
217
  check
227
218
  · 204 to update products views
228
219
  [?25l ❯ tests/index.test.ts (7)
229
- ✓ Read product and typecheck SKU
220
+ ✓ Read product and typecheck SKU 313ms
230
221
  ✓ Find and read product by SKU
231
222
  ✓ 404 with different Store ID from env
232
223
  ⠦ List categories and typecheck result
@@ -235,7 +226,7 @@ check
235
226
  check
236
227
  · 204 to update products views
237
228
  [?25l ❯ tests/index.test.ts (7)
238
- ✓ Read product and typecheck SKU
229
+ ✓ Read product and typecheck SKU 313ms
239
230
  ✓ Find and read product by SKU
240
231
  ✓ 404 with different Store ID from env
241
232
  ⠧ List categories and typecheck result
@@ -244,7 +235,7 @@ check
244
235
  check
245
236
  · 204 to update products views
246
237
  [?25l ❯ tests/index.test.ts (7)
247
- ✓ Read product and typecheck SKU
238
+ ✓ Read product and typecheck SKU 313ms
248
239
  ✓ Find and read product by SKU
249
240
  ✓ 404 with different Store ID from env
250
241
  ⠇ List categories and typecheck result
@@ -253,7 +244,7 @@ check
253
244
  check
254
245
  · 204 to update products views
255
246
  [?25l ❯ tests/index.test.ts (7)
256
- ✓ Read product and typecheck SKU
247
+ ✓ Read product and typecheck SKU 313ms
257
248
  ✓ Find and read product by SKU
258
249
  ✓ 404 with different Store ID from env
259
250
  ⠏ List categories and typecheck result
@@ -262,7 +253,7 @@ check
262
253
  check
263
254
  · 204 to update products views
264
255
  [?25l ❯ tests/index.test.ts (7)
265
- ✓ Read product and typecheck SKU
256
+ ✓ Read product and typecheck SKU 313ms
266
257
  ✓ Find and read product by SKU
267
258
  ✓ 404 with different Store ID from env
268
259
  ⠋ List categories and typecheck result
@@ -271,249 +262,125 @@ check
271
262
  check
272
263
  · 204 to update products views
273
264
  [?25l ❯ tests/index.test.ts (7)
274
- ✓ Read product and typecheck SKU
265
+ ✓ Read product and typecheck SKU 313ms
275
266
  ✓ Find and read product by SKU
276
267
  ✓ 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
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
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
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
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
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
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
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
347
- ✓ Find and read product by SKU
348
- ✓ 404 with different Store ID from env
349
- ✓ List categories and typecheck result
350
-  301ms
268
+ ✓ List categories and typecheck result
351
269
  ⠙ 401 trying to list API events
352
270
  · 401 to create category and body type
353
271
  check
354
272
  · 204 to update products views
355
- [?25l ❯ tests/index.test.ts (7)
356
- ✓ Read product and typecheck SKU
357
- ✓ Find and read product by SKU
358
- ✓ 404 with different Store ID from env
359
- ✓ List categories and typecheck result
360
-  301ms
361
- ⠹ 401 trying to list API events
362
- · 401 to create category and body type
363
- check
364
- · 204 to update products views
365
- [?25l ❯ tests/index.test.ts (7)
366
- ✓ Read product and typecheck SKU
367
- ✓ Find and read product by SKU
368
- ✓ 404 with different Store ID from env
369
- ✓ List categories and typecheck result
370
-  301ms
371
- ⠸ 401 trying to list API events
372
- · 401 to create category and body type
373
- check
374
- · 204 to update products views
375
- [?25l ❯ tests/index.test.ts (7)
376
- ✓ Read product and typecheck SKU
273
+ [?25l ❯ tests/index.test.ts (7)
274
+ ✓ Read product and typecheck SKU 313ms
377
275
  ✓ Find and read product by SKU
378
276
  ✓ 404 with different Store ID from env
379
- ✓ List categories and typecheck result
380
-  301ms
277
+ ✓ List categories and typecheck result
381
278
  ✓ 401 trying to list API events
382
279
  ⠙ 401 to create category and body type
383
280
  check
384
281
  · 204 to update products views
385
- [?25l ❯ tests/index.test.ts (7)
386
- ✓ Read product and typecheck SKU
282
+ [?25l ❯ tests/index.test.ts (7)
283
+ ✓ Read product and typecheck SKU 313ms
387
284
  ✓ Find and read product by SKU
388
285
  ✓ 404 with different Store ID from env
389
- ✓ List categories and typecheck result
390
-  301ms
286
+ ✓ List categories and typecheck result
391
287
  ✓ 401 trying to list API events
392
288
  ⠹ 401 to create category and body type
393
289
  check
394
290
  · 204 to update products views
395
- [?25l ❯ tests/index.test.ts (7)
396
- ✓ Read product and typecheck SKU
397
- ✓ Find and read product by SKU
398
- ✓ 404 with different Store ID from env
399
- ✓ List categories and typecheck result
400
-  301ms
401
- ✓ 401 trying to list API events
402
- ⠸ 401 to create category and body type
403
- check
404
- · 204 to update products views
405
- [?25l ❯ tests/index.test.ts (7)
406
- ✓ Read product and typecheck SKU
291
+ [?25l ❯ tests/index.test.ts (7)
292
+ ✓ Read product and typecheck SKU 313ms
407
293
  ✓ Find and read product by SKU
408
294
  ✓ 404 with different Store ID from env
409
- ✓ List categories and typecheck result
410
-  301ms
295
+ ✓ List categories and typecheck result
411
296
  ✓ 401 trying to list API events
412
297
  ✓ 401 to create category and body type
413
298
  check
414
299
  ⠙ 204 to update products views
415
- [?25l ❯ tests/index.test.ts (7)
416
- ✓ Read product and typecheck SKU
300
+ [?25l ❯ tests/index.test.ts (7)
301
+ ✓ Read product and typecheck SKU 313ms
417
302
  ✓ Find and read product by SKU
418
303
  ✓ 404 with different Store ID from env
419
- ✓ List categories and typecheck result
420
-  301ms
304
+ ✓ List categories and typecheck result
421
305
  ✓ 401 trying to list API events
422
306
  ✓ 401 to create category and body type
423
307
  check
424
308
  ⠹ 204 to update products views
425
- [?25l ❯ tests/index.test.ts (7)
426
- ✓ Read product and typecheck SKU
309
+ [?25l ❯ tests/index.test.ts (7)
310
+ ✓ Read product and typecheck SKU 313ms
427
311
  ✓ Find and read product by SKU
428
312
  ✓ 404 with different Store ID from env
429
- ✓ List categories and typecheck result
430
-  301ms
313
+ ✓ List categories and typecheck result
431
314
  ✓ 401 trying to list API events
432
315
  ✓ 401 to create category and body type
433
316
  check
434
317
  ⠸ 204 to update products views
435
- [?25l ❯ tests/index.test.ts (7)
436
- ✓ Read product and typecheck SKU
318
+ [?25l ❯ tests/index.test.ts (7)
319
+ ✓ Read product and typecheck SKU 313ms
437
320
  ✓ Find and read product by SKU
438
321
  ✓ 404 with different Store ID from env
439
- ✓ List categories and typecheck result
440
-  301ms
322
+ ✓ List categories and typecheck result
441
323
  ✓ 401 trying to list API events
442
324
  ✓ 401 to create category and body type
443
325
  check
444
326
  ⠼ 204 to update products views
445
- [?25l ❯ tests/index.test.ts (7)
446
- ✓ Read product and typecheck SKU
327
+ [?25l ❯ tests/index.test.ts (7)
328
+ ✓ Read product and typecheck SKU 313ms
447
329
  ✓ Find and read product by SKU
448
330
  ✓ 404 with different Store ID from env
449
- ✓ List categories and typecheck result
450
-  301ms
331
+ ✓ List categories and typecheck result
451
332
  ✓ 401 trying to list API events
452
333
  ✓ 401 to create category and body type
453
334
  check
454
335
  ⠴ 204 to update products views
455
- [?25l ❯ tests/index.test.ts (7)
456
- ✓ Read product and typecheck SKU
336
+ [?25l ❯ tests/index.test.ts (7)
337
+ ✓ Read product and typecheck SKU 313ms
457
338
  ✓ Find and read product by SKU
458
339
  ✓ 404 with different Store ID from env
459
- ✓ List categories and typecheck result
460
-  301ms
340
+ ✓ List categories and typecheck result
461
341
  ✓ 401 trying to list API events
462
342
  ✓ 401 to create category and body type
463
343
  check
464
344
  ⠦ 204 to update products views
465
- [?25l ❯ tests/index.test.ts (7)
466
- ✓ Read product and typecheck SKU
345
+ [?25l ❯ tests/index.test.ts (7)
346
+ ✓ Read product and typecheck SKU 313ms
467
347
  ✓ Find and read product by SKU
468
348
  ✓ 404 with different Store ID from env
469
- ✓ List categories and typecheck result
470
-  301ms
349
+ ✓ List categories and typecheck result
471
350
  ✓ 401 trying to list API events
472
351
  ✓ 401 to create category and body type
473
352
  check
474
353
  ⠧ 204 to update products views
475
- [?25l ❯ tests/index.test.ts (7)
476
- ✓ Read product and typecheck SKU
354
+ [?25l ❯ tests/index.test.ts (7)
355
+ ✓ Read product and typecheck SKU 313ms
477
356
  ✓ Find and read product by SKU
478
357
  ✓ 404 with different Store ID from env
479
- ✓ List categories and typecheck result
480
-  301ms
358
+ ✓ List categories and typecheck result
481
359
  ✓ 401 trying to list API events
482
360
  ✓ 401 to create category and body type
483
361
  check
484
362
  ⠇ 204 to update products views
485
- [?25l ❯ tests/index.test.ts (7)
486
- ✓ Read product and typecheck SKU
487
- ✓ Find and read product by SKU
488
- ✓ 404 with different Store ID from env
489
- ✓ List categories and typecheck result
490
-  301ms
491
- ✓ 401 trying to list API events
492
- ✓ 401 to create category and body type
493
- check
494
- ⠏ 204 to update products views
495
- [?25l ✓ tests/index.test.ts (7) 962ms
496
- ✓ Read product and typecheck SKU
363
+ [?25l ✓ tests/index.test.ts (7) 722ms
364
+ ✓ Read product and typecheck SKU 313ms
497
365
  ✓ Find and read product by SKU
498
366
  ✓ 404 with different Store ID from env
499
- ✓ List categories and typecheck result
500
-  301ms
367
+ ✓ List categories and typecheck result
501
368
  ✓ 401 trying to list API events
502
369
  ✓ 401 to create category and body type
503
370
  check
504
371
  ✓ 204 to update products views
505
- [?25l[?25l ✓ tests/index.test.ts (7) 962ms
506
- ✓ Read product and typecheck SKU
372
+  ✓ tests/index.test.ts (7) 722ms
373
+ ✓ Read product and typecheck SKU 313ms
507
374
  ✓ Find and read product by SKU
508
375
  ✓ 404 with different Store ID from env
509
- ✓ List categories and typecheck result 301ms
376
+ ✓ List categories and typecheck result
510
377
  ✓ 401 trying to list API events
511
378
  ✓ 401 to create category and body typecheck
512
379
  ✓ 204 to update products views
513
380
 
514
381
   Test Files  1 passed (1)
515
382
   Tests  7 passed (7)
516
-  Start at  17:23:47
517
-  Duration  1.63s (transform 155ms, setup 0ms, collect 152ms, tests 962ms, environment 0ms, prepare 176ms)
383
+  Start at  22:50:44
384
+  Duration  1.35s (transform 163ms, setup 0ms, collect 152ms, tests 722ms, environment 0ms, prepare 155ms)
518
385
 
519
386
  [?25h
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "2.5.0",
4
+ "version": "2.6.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",