cloudcommerce 0.0.23 → 0.0.26

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.
Files changed (46) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/CHANGELOG.md +22 -0
  3. package/CONTRIBUTING.md +4 -2
  4. package/package.json +11 -7
  5. package/packages/api/lib/types/applications.d.ts +100 -91
  6. package/packages/api/lib/types/authentications.d.ts +10 -0
  7. package/packages/api/lib/types/brands.d.ts +9 -0
  8. package/packages/api/lib/types/carts.d.ts +16 -0
  9. package/packages/api/lib/types/categories.d.ts +9 -0
  10. package/packages/api/lib/types/collections.d.ts +8 -0
  11. package/packages/api/lib/types/customers.d.ts +28 -0
  12. package/packages/api/lib/types/grids.d.ts +8 -0
  13. package/packages/api/lib/types/orders.d.ts +287 -222
  14. package/packages/api/lib/types/products.d.ts +69 -0
  15. package/packages/api/lib/types/stores.d.ts +3 -0
  16. package/packages/api/package.json +1 -1
  17. package/packages/api/src/types/applications.d.ts +100 -91
  18. package/packages/api/src/types/authentications.d.ts +10 -0
  19. package/packages/api/src/types/brands.d.ts +9 -0
  20. package/packages/api/src/types/carts.d.ts +16 -0
  21. package/packages/api/src/types/categories.d.ts +9 -0
  22. package/packages/api/src/types/collections.d.ts +8 -0
  23. package/packages/api/src/types/customers.d.ts +28 -0
  24. package/packages/api/src/types/grids.d.ts +8 -0
  25. package/packages/api/src/types/orders.d.ts +287 -222
  26. package/packages/api/src/types/products.d.ts +69 -0
  27. package/packages/api/src/types/stores.d.ts +3 -0
  28. package/packages/apps/discounts/package.json +1 -1
  29. package/packages/cli/lib/index.js +27 -1
  30. package/packages/cli/package.json +1 -1
  31. package/packages/cli/src/index.ts +35 -1
  32. package/packages/firebase/config.js +5 -0
  33. package/packages/firebase/lib/config.js +26 -0
  34. package/packages/firebase/lib/config.js.map +1 -0
  35. package/packages/firebase/lib/defaults.js +8 -0
  36. package/packages/firebase/lib/defaults.js.map +1 -0
  37. package/packages/firebase/lib/index.js +27 -0
  38. package/packages/firebase/lib/index.js.map +1 -0
  39. package/packages/firebase/package.json +10 -4
  40. package/packages/firebase/src/config.ts +29 -0
  41. package/packages/firebase/src/defaults.ts +7 -0
  42. package/packages/firebase/src/index.ts +26 -0
  43. package/packages/firebase/tsconfig.json +3 -0
  44. package/packages/storefront/package.json +2 -2
  45. package/pnpm-lock.yaml +294 -63
  46. package/packages/firebase/src/index.js +0 -0
@@ -136,6 +136,8 @@ export interface Orders {
136
136
  | 'unknown';
137
137
  /**
138
138
  * Flags to associate additional info
139
+ *
140
+ * @maxItems 10
139
141
  */
140
142
  flags?: string[];
141
143
  };
@@ -164,6 +166,8 @@ export interface Orders {
164
166
  | 'returned';
165
167
  /**
166
168
  * Flags to associate additional info
169
+ *
170
+ * @maxItems 10
167
171
  */
168
172
  flags?: string[];
169
173
  };
@@ -218,6 +222,8 @@ export interface Orders {
218
222
  shipping_method_label?: string;
219
223
  /**
220
224
  * List of order customers
225
+ *
226
+ * @maxItems 20
221
227
  */
222
228
  buyers?: {
223
229
  /**
@@ -234,6 +240,8 @@ export interface Orders {
234
240
  main_email?: string;
235
241
  /**
236
242
  * List of customer email addresses
243
+ *
244
+ * @maxItems 20
237
245
  */
238
246
  emails?: {
239
247
  /**
@@ -276,6 +284,8 @@ export interface Orders {
276
284
  pronoun?: 'he' | 'she';
277
285
  /**
278
286
  * List of customer phone numbers
287
+ *
288
+ * @maxItems 20
279
289
  */
280
290
  phones?: {
281
291
  /**
@@ -322,160 +332,16 @@ export interface Orders {
322
332
  budget_only?: boolean;
323
333
  /**
324
334
  * List of shipping methods and address for this order
335
+ *
336
+ * @maxItems 100
325
337
  */
326
338
  shipping_lines?: {
327
339
  /**
328
340
  * Shipping line ID (ObjectID) [auto]
329
341
  */
330
342
  _id?: string;
331
- /**
332
- * Sender's address
333
- */
334
- from: {
335
- /**
336
- * ZIP (CEP, postal...) code
337
- */
338
- zip: string;
339
- /**
340
- * Street or public place name
341
- */
342
- street?: string;
343
- /**
344
- * House or building street number
345
- */
346
- number?: number;
347
- /**
348
- * Address complement or second line, such as apartment number
349
- */
350
- complement?: string;
351
- /**
352
- * Borough name
353
- */
354
- borough?: string;
355
- /**
356
- * Some optional other reference for this address
357
- */
358
- near_to?: string;
359
- /**
360
- * Full in line mailing address, should include street, number and borough
361
- */
362
- line_address?: string;
363
- /**
364
- * City name
365
- */
366
- city?: string;
367
- /**
368
- * Country name
369
- */
370
- country?: string;
371
- /**
372
- * An ISO 3166-2 country code
373
- */
374
- country_code?: string;
375
- /**
376
- * Province or state name
377
- */
378
- province?: string;
379
- /**
380
- * The two-letter code for the province or state
381
- */
382
- province_code?: string;
383
- /**
384
- * The name of recipient, generally is the customer's name
385
- */
386
- name?: string;
387
- /**
388
- * The recipient's last name
389
- */
390
- last_name?: string;
391
- /**
392
- * Customer phone number for this mailing address
393
- */
394
- phone?: {
395
- /**
396
- * Country calling code (without +), defined by standards E.123 and E.164
397
- */
398
- country_code?: number;
399
- /**
400
- * The actual phone number, digits only
401
- */
402
- number: string;
403
- };
404
- };
405
- /**
406
- * Shipping address (recipient)
407
- */
408
- to: {
409
- /**
410
- * ZIP (CEP, postal...) code
411
- */
412
- zip: string;
413
- /**
414
- * Street or public place name
415
- */
416
- street?: string;
417
- /**
418
- * House or building street number
419
- */
420
- number?: number;
421
- /**
422
- * Address complement or second line, such as apartment number
423
- */
424
- complement?: string;
425
- /**
426
- * Borough name
427
- */
428
- borough?: string;
429
- /**
430
- * Some optional other reference for this address
431
- */
432
- near_to?: string;
433
- /**
434
- * Full in line mailing address, should include street, number and borough
435
- */
436
- line_address?: string;
437
- /**
438
- * City name
439
- */
440
- city?: string;
441
- /**
442
- * Country name
443
- */
444
- country?: string;
445
- /**
446
- * An ISO 3166-2 country code
447
- */
448
- country_code?: string;
449
- /**
450
- * Province or state name
451
- */
452
- province?: string;
453
- /**
454
- * The two-letter code for the province or state
455
- */
456
- province_code?: string;
457
- /**
458
- * The name of recipient, generally is the customer's name
459
- */
460
- name?: string;
461
- /**
462
- * The recipient's last name
463
- */
464
- last_name?: string;
465
- /**
466
- * Customer phone number for this mailing address
467
- */
468
- phone?: {
469
- /**
470
- * Country calling code (without +), defined by standards E.123 and E.164
471
- */
472
- country_code?: number;
473
- /**
474
- * The actual phone number, digits only
475
- */
476
- number: string;
477
- };
478
- };
343
+ from: Address;
344
+ to: Address1;
479
345
  /**
480
346
  * Shipping object information
481
347
  */
@@ -590,6 +456,8 @@ export interface Orders {
590
456
  receipt_price?: number;
591
457
  /**
592
458
  * List of other additional services for this shipping line
459
+ *
460
+ * @maxItems 30
593
461
  */
594
462
  other_additionals?: {
595
463
  /**
@@ -607,6 +475,8 @@ export interface Orders {
607
475
  }[];
608
476
  /**
609
477
  * List of taxes or other additional services for this shipping line
478
+ *
479
+ * @maxItems 30
610
480
  */
611
481
  taxes?: {
612
482
  /**
@@ -682,6 +552,8 @@ export interface Orders {
682
552
  delivery_instructions?: string;
683
553
  /**
684
554
  * List of codes for delivery status follow-up
555
+ *
556
+ * @maxItems 30
685
557
  */
686
558
  tracking_codes?: {
687
559
  /**
@@ -699,6 +571,8 @@ export interface Orders {
699
571
  }[];
700
572
  /**
701
573
  * List of invoices
574
+ *
575
+ * @maxItems 30
702
576
  */
703
577
  invoices?: {
704
578
  /**
@@ -775,14 +649,20 @@ export interface Orders {
775
649
  warehouse_code?: string;
776
650
  /**
777
651
  * List of order items related with this shipping line, use only if items are divided
652
+ *
653
+ * @maxItems 3000
778
654
  */
779
655
  items?: string[];
780
656
  /**
781
657
  * Flags to associate additional info
658
+ *
659
+ * @maxItems 10
782
660
  */
783
661
  flags?: string[];
784
662
  /**
785
663
  * List of custom fields
664
+ *
665
+ * @maxItems 10
786
666
  */
787
667
  custom_fields?: {
788
668
  /**
@@ -801,6 +681,8 @@ export interface Orders {
801
681
  }[];
802
682
  /**
803
683
  * List of payment transactions for this order
684
+ *
685
+ * @maxItems 100
804
686
  */
805
687
  transactions?: {
806
688
  /**
@@ -899,80 +781,7 @@ export interface Orders {
899
781
  */
900
782
  doc_number?: string;
901
783
  };
902
- /**
903
- * The mailing address associated with the payment method
904
- */
905
- billing_address?: {
906
- /**
907
- * ZIP (CEP, postal...) code
908
- */
909
- zip: string;
910
- /**
911
- * Street or public place name
912
- */
913
- street?: string;
914
- /**
915
- * House or building street number
916
- */
917
- number?: number;
918
- /**
919
- * Address complement or second line, such as apartment number
920
- */
921
- complement?: string;
922
- /**
923
- * Borough name
924
- */
925
- borough?: string;
926
- /**
927
- * Some optional other reference for this address
928
- */
929
- near_to?: string;
930
- /**
931
- * Full in line mailing address, should include street, number and borough
932
- */
933
- line_address?: string;
934
- /**
935
- * City name
936
- */
937
- city?: string;
938
- /**
939
- * Country name
940
- */
941
- country?: string;
942
- /**
943
- * An ISO 3166-2 country code
944
- */
945
- country_code?: string;
946
- /**
947
- * Province or state name
948
- */
949
- province?: string;
950
- /**
951
- * The two-letter code for the province or state
952
- */
953
- province_code?: string;
954
- /**
955
- * The name of recipient, generally is the customer's name
956
- */
957
- name?: string;
958
- /**
959
- * The recipient's last name
960
- */
961
- last_name?: string;
962
- /**
963
- * Customer phone number for this mailing address
964
- */
965
- phone?: {
966
- /**
967
- * Country calling code (without +), defined by standards E.123 and E.164
968
- */
969
- country_code?: number;
970
- /**
971
- * The actual phone number, digits only
972
- */
973
- number: string;
974
- };
975
- };
784
+ billing_address?: Address2;
976
785
  /**
977
786
  * Payment method (by application) chosen by customer
978
787
  */
@@ -1108,6 +917,8 @@ export interface Orders {
1108
917
  valid_thru?: string;
1109
918
  /**
1110
919
  * Text lines on ticket
920
+ *
921
+ * @maxItems 5
1111
922
  */
1112
923
  text_lines?: string[];
1113
924
  /**
@@ -1197,14 +1008,20 @@ export interface Orders {
1197
1008
  };
1198
1009
  /**
1199
1010
  * List of order items related with this transaction, use only if items are divided
1011
+ *
1012
+ * @maxItems 3000
1200
1013
  */
1201
1014
  items?: string[];
1202
1015
  /**
1203
1016
  * Flags to associate additional info
1017
+ *
1018
+ * @maxItems 10
1204
1019
  */
1205
1020
  flags?: string[];
1206
1021
  /**
1207
1022
  * List of custom fields
1023
+ *
1024
+ * @maxItems 10
1208
1025
  */
1209
1026
  custom_fields?: {
1210
1027
  /**
@@ -1223,6 +1040,8 @@ export interface Orders {
1223
1040
  }[];
1224
1041
  /**
1225
1042
  * Historical of payments and financial status changes
1043
+ *
1044
+ * @maxItems 3000
1226
1045
  */
1227
1046
  payments_history?: {
1228
1047
  /**
@@ -1260,11 +1079,15 @@ export interface Orders {
1260
1079
  customer_notified?: boolean;
1261
1080
  /**
1262
1081
  * Flags to associate additional info
1082
+ *
1083
+ * @maxItems 10
1263
1084
  */
1264
1085
  flags?: string[];
1265
1086
  }[];
1266
1087
  /**
1267
1088
  * Fulfillment and tracking events
1089
+ *
1090
+ * @maxItems 3000
1268
1091
  */
1269
1092
  fulfillments?: {
1270
1093
  /**
@@ -1302,11 +1125,15 @@ export interface Orders {
1302
1125
  customer_notified?: boolean;
1303
1126
  /**
1304
1127
  * Flags to associate additional info
1128
+ *
1129
+ * @maxItems 10
1305
1130
  */
1306
1131
  flags?: string[];
1307
1132
  }[];
1308
1133
  /**
1309
1134
  * Products composing the order
1135
+ *
1136
+ * @maxItems 3000
1310
1137
  */
1311
1138
  items?: {
1312
1139
  /**
@@ -1356,6 +1183,8 @@ export interface Orders {
1356
1183
  };
1357
1184
  /**
1358
1185
  * Item customization fields
1186
+ *
1187
+ * @maxItems 100
1359
1188
  */
1360
1189
  customizations?: {
1361
1190
  /**
@@ -1415,6 +1244,8 @@ export interface Orders {
1415
1244
  price?: number;
1416
1245
  /**
1417
1246
  * Current kit composition
1247
+ *
1248
+ * @maxItems 100
1418
1249
  */
1419
1250
  composition?: {
1420
1251
  /**
@@ -1466,6 +1297,8 @@ export interface Orders {
1466
1297
  final_price?: number;
1467
1298
  /**
1468
1299
  * Flags to associate additional info
1300
+ *
1301
+ * @maxItems 10
1469
1302
  */
1470
1303
  flags?: string[];
1471
1304
  }[];
@@ -1500,6 +1333,8 @@ export interface Orders {
1500
1333
  };
1501
1334
  /**
1502
1335
  * Flags to associate additional info
1336
+ *
1337
+ * @maxItems 10
1503
1338
  */
1504
1339
  flags?: string[];
1505
1340
  };
@@ -1518,6 +1353,8 @@ export interface Orders {
1518
1353
  };
1519
1354
  /**
1520
1355
  * List of custom attributes
1356
+ *
1357
+ * @maxItems 100
1521
1358
  */
1522
1359
  metafields?: {
1523
1360
  /**
@@ -1537,6 +1374,8 @@ export interface Orders {
1537
1374
  }[];
1538
1375
  /**
1539
1376
  * List of custom attributes
1377
+ *
1378
+ * @maxItems 100
1540
1379
  */
1541
1380
  hidden_metafields?: {
1542
1381
  /**
@@ -1556,6 +1395,8 @@ export interface Orders {
1556
1395
  }[];
1557
1396
  /**
1558
1397
  * List of custom attributes, hidden by default, visible for the order buyers
1398
+ *
1399
+ * @maxItems 100
1559
1400
  */
1560
1401
  private_metafields?: {
1561
1402
  /**
@@ -1575,6 +1416,8 @@ export interface Orders {
1575
1416
  }[];
1576
1417
  /**
1577
1418
  * Flags to associate additional info
1419
+ *
1420
+ * @maxItems 10
1578
1421
  */
1579
1422
  flags?: string[];
1580
1423
  /**
@@ -1586,3 +1429,225 @@ export interface Orders {
1586
1429
  */
1587
1430
  staff_notes?: string;
1588
1431
  }
1432
+ /**
1433
+ * Sender's address
1434
+ */
1435
+ export interface Address {
1436
+ /**
1437
+ * ZIP (CEP, postal...) code
1438
+ */
1439
+ zip: string;
1440
+ /**
1441
+ * Street or public place name
1442
+ */
1443
+ street?: string;
1444
+ /**
1445
+ * House or building street number
1446
+ */
1447
+ number?: number;
1448
+ /**
1449
+ * Address complement or second line, such as apartment number
1450
+ */
1451
+ complement?: string;
1452
+ /**
1453
+ * Borough name
1454
+ */
1455
+ borough?: string;
1456
+ /**
1457
+ * Some optional other reference for this address
1458
+ */
1459
+ near_to?: string;
1460
+ /**
1461
+ * Full in line mailing address, should include street, number and borough
1462
+ */
1463
+ line_address?: string;
1464
+ /**
1465
+ * City name
1466
+ */
1467
+ city?: string;
1468
+ /**
1469
+ * Country name
1470
+ */
1471
+ country?: string;
1472
+ /**
1473
+ * An ISO 3166-2 country code
1474
+ */
1475
+ country_code?: string;
1476
+ /**
1477
+ * Province or state name
1478
+ */
1479
+ province?: string;
1480
+ /**
1481
+ * The two-letter code for the province or state
1482
+ */
1483
+ province_code?: string;
1484
+ /**
1485
+ * The name of recipient, generally is the customer's name
1486
+ */
1487
+ name?: string;
1488
+ /**
1489
+ * The recipient's last name
1490
+ */
1491
+ last_name?: string;
1492
+ /**
1493
+ * Customer phone number for this mailing address
1494
+ */
1495
+ phone?: {
1496
+ /**
1497
+ * Country calling code (without +), defined by standards E.123 and E.164
1498
+ */
1499
+ country_code?: number;
1500
+ /**
1501
+ * The actual phone number, digits only
1502
+ */
1503
+ number: string;
1504
+ };
1505
+ }
1506
+ /**
1507
+ * Shipping address (recipient)
1508
+ */
1509
+ export interface Address1 {
1510
+ /**
1511
+ * ZIP (CEP, postal...) code
1512
+ */
1513
+ zip: string;
1514
+ /**
1515
+ * Street or public place name
1516
+ */
1517
+ street?: string;
1518
+ /**
1519
+ * House or building street number
1520
+ */
1521
+ number?: number;
1522
+ /**
1523
+ * Address complement or second line, such as apartment number
1524
+ */
1525
+ complement?: string;
1526
+ /**
1527
+ * Borough name
1528
+ */
1529
+ borough?: string;
1530
+ /**
1531
+ * Some optional other reference for this address
1532
+ */
1533
+ near_to?: string;
1534
+ /**
1535
+ * Full in line mailing address, should include street, number and borough
1536
+ */
1537
+ line_address?: string;
1538
+ /**
1539
+ * City name
1540
+ */
1541
+ city?: string;
1542
+ /**
1543
+ * Country name
1544
+ */
1545
+ country?: string;
1546
+ /**
1547
+ * An ISO 3166-2 country code
1548
+ */
1549
+ country_code?: string;
1550
+ /**
1551
+ * Province or state name
1552
+ */
1553
+ province?: string;
1554
+ /**
1555
+ * The two-letter code for the province or state
1556
+ */
1557
+ province_code?: string;
1558
+ /**
1559
+ * The name of recipient, generally is the customer's name
1560
+ */
1561
+ name?: string;
1562
+ /**
1563
+ * The recipient's last name
1564
+ */
1565
+ last_name?: string;
1566
+ /**
1567
+ * Customer phone number for this mailing address
1568
+ */
1569
+ phone?: {
1570
+ /**
1571
+ * Country calling code (without +), defined by standards E.123 and E.164
1572
+ */
1573
+ country_code?: number;
1574
+ /**
1575
+ * The actual phone number, digits only
1576
+ */
1577
+ number: string;
1578
+ };
1579
+ }
1580
+ /**
1581
+ * The mailing address associated with the payment method
1582
+ */
1583
+ export interface Address2 {
1584
+ /**
1585
+ * ZIP (CEP, postal...) code
1586
+ */
1587
+ zip: string;
1588
+ /**
1589
+ * Street or public place name
1590
+ */
1591
+ street?: string;
1592
+ /**
1593
+ * House or building street number
1594
+ */
1595
+ number?: number;
1596
+ /**
1597
+ * Address complement or second line, such as apartment number
1598
+ */
1599
+ complement?: string;
1600
+ /**
1601
+ * Borough name
1602
+ */
1603
+ borough?: string;
1604
+ /**
1605
+ * Some optional other reference for this address
1606
+ */
1607
+ near_to?: string;
1608
+ /**
1609
+ * Full in line mailing address, should include street, number and borough
1610
+ */
1611
+ line_address?: string;
1612
+ /**
1613
+ * City name
1614
+ */
1615
+ city?: string;
1616
+ /**
1617
+ * Country name
1618
+ */
1619
+ country?: string;
1620
+ /**
1621
+ * An ISO 3166-2 country code
1622
+ */
1623
+ country_code?: string;
1624
+ /**
1625
+ * Province or state name
1626
+ */
1627
+ province?: string;
1628
+ /**
1629
+ * The two-letter code for the province or state
1630
+ */
1631
+ province_code?: string;
1632
+ /**
1633
+ * The name of recipient, generally is the customer's name
1634
+ */
1635
+ name?: string;
1636
+ /**
1637
+ * The recipient's last name
1638
+ */
1639
+ last_name?: string;
1640
+ /**
1641
+ * Customer phone number for this mailing address
1642
+ */
1643
+ phone?: {
1644
+ /**
1645
+ * Country calling code (without +), defined by standards E.123 and E.164
1646
+ */
1647
+ country_code?: number;
1648
+ /**
1649
+ * The actual phone number, digits only
1650
+ */
1651
+ number: string;
1652
+ };
1653
+ }