@whiplashmerch/whiplash-api-client 3.1.2 → 3.1.4

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 (28) hide show
  1. package/dist/client.esm.js +1362 -142
  2. package/dist/client.esm.js.map +1 -1
  3. package/dist/generated/data-contracts.d.ts +88 -86
  4. package/dist/mock-data/index.d.ts +22 -0
  5. package/dist/mock-data/v2/bill-of-lading/child-bols.d.ts +34 -0
  6. package/dist/mock-data/v2/bill-of-lading/master-bol.d.ts +34 -0
  7. package/dist/mock-data/v2/load/closed-listing.d.ts +22 -0
  8. package/dist/mock-data/v2/load/closed.d.ts +22 -0
  9. package/dist/mock-data/v2/load/open-with-batches.d.ts +22 -0
  10. package/dist/mock-data/v2/load/open-with-bol.d.ts +22 -0
  11. package/dist/mock-data/v2/load/open-with-notes.d.ts +22 -0
  12. package/dist/mock-data/v2/load/trait-closeable-all-met.d.ts +8 -0
  13. package/dist/mock-data/v2/load/trait-closeable-partial.d.ts +8 -0
  14. package/dist/mock-data/v2/order-batch/in-load-with-bol.d.ts +203 -0
  15. package/dist/mock-data/v2/order-batch/in-load-with-grouping.d.ts +99 -0
  16. package/dist/mock-data/v2_1/bill-of-lading/child-bols.d.ts +32 -0
  17. package/dist/mock-data/v2_1/bill-of-lading/master-bol.d.ts +32 -0
  18. package/dist/mock-data/v2_1/load/closed-listing.d.ts +22 -0
  19. package/dist/mock-data/v2_1/load/closed.d.ts +22 -0
  20. package/dist/mock-data/v2_1/load/open-with-batches.d.ts +22 -0
  21. package/dist/mock-data/v2_1/load/open-with-bol.d.ts +22 -0
  22. package/dist/mock-data/v2_1/load/open-with-notes.d.ts +22 -0
  23. package/dist/mock-data/v2_1/load/trait-closeable-all-met.d.ts +8 -0
  24. package/dist/mock-data/v2_1/load/trait-closeable-partial.d.ts +8 -0
  25. package/dist/mock-data/v2_1/order-batch/in-load-with-bol.d.ts +43 -0
  26. package/dist/mock-data/v2_1/order-batch/in-load-with-grouping.d.ts +43 -0
  27. package/generated/data-contracts.ts +1 -0
  28. package/package.json +1 -1
@@ -1386,131 +1386,131 @@ export interface ApiV2EntitiesFilterSet {
1386
1386
  /** V2 */
1387
1387
  export interface ApiV2EntitiesFilterSetOptions {
1388
1388
  bulk_actions?: {
1389
- location_transfer?: object;
1390
- shipnotice?: object;
1391
- warehouse?: object;
1392
- location?: object;
1389
+ account_transaction?: object;
1393
1390
  carrier_account?: object;
1394
- meta_key?: object;
1395
- item?: object;
1396
- user?: object;
1397
- shipping_method?: object;
1398
- order?: object;
1399
1391
  consumer_return?: object;
1392
+ incident?: object;
1393
+ item?: object;
1394
+ location_audit?: object;
1395
+ location?: object;
1396
+ location_transfer?: object;
1397
+ manifest?: object;
1398
+ meta_key?: object;
1400
1399
  order_batch?: object;
1400
+ order?: object;
1401
1401
  project?: object;
1402
- account_transaction?: object;
1403
- manifest?: object;
1404
- location_audit?: object;
1405
- incident?: object;
1402
+ shipnotice?: object;
1403
+ shipping_method?: object;
1404
+ user?: object;
1405
+ warehouse?: object;
1406
1406
  };
1407
1407
  exporters?: {
1408
- location_transfer?: object;
1409
- shipnotice?: object;
1410
- location?: object;
1408
+ account_transaction?: object;
1409
+ consumer_return?: object;
1411
1410
  customer?: object;
1412
- item?: object;
1413
- shipping_method?: object;
1414
1411
  document?: object;
1415
- order?: object;
1416
- consumer_return?: object;
1417
- account_transaction?: object;
1418
- location_audit?: object;
1419
1412
  incident?: object;
1413
+ item?: object;
1414
+ location_audit?: object;
1415
+ location?: object;
1416
+ location_transfer?: object;
1417
+ order?: object;
1418
+ shipnotice?: object;
1419
+ shipping_method?: object;
1420
1420
  };
1421
1421
  filters?: {
1422
- location_transfer?: any[];
1423
- shipnotice?: any[];
1424
- warehouse?: any[];
1425
- location?: any[];
1422
+ account_transaction?: any[];
1426
1423
  carrier_account?: any[];
1424
+ consumer_return?: any[];
1427
1425
  customer?: any[];
1428
- transaction?: any[];
1429
- meta_key?: any[];
1430
- item?: any[];
1431
- user?: any[];
1432
- shipping_method?: any[];
1433
1426
  document?: any[];
1434
- order?: any[];
1435
- consumer_return?: any[];
1427
+ incident?: any[];
1428
+ item?: any[];
1429
+ location_audit?: any[];
1430
+ location?: any[];
1431
+ location_transfer?: any[];
1432
+ manifest?: any[];
1433
+ meta_key?: any[];
1436
1434
  order_batch?: any[];
1437
- project?: any[];
1438
- account_transaction?: any[];
1435
+ order?: any[];
1439
1436
  partner?: any[];
1440
- manifest?: any[];
1441
- location_audit?: any[];
1442
- incident?: any[];
1437
+ project?: any[];
1438
+ shipnotice?: any[];
1439
+ shipping_method?: any[];
1440
+ transaction?: any[];
1441
+ user?: any[];
1442
+ warehouse?: any[];
1443
1443
  };
1444
1444
  importers?: {
1445
- location_transfer?: any[];
1446
- shipnotice?: any[];
1447
- item?: any[];
1445
+ consumer_return?: any[];
1448
1446
  document?: any[];
1447
+ item?: any[];
1448
+ location_transfer?: any[];
1449
1449
  order?: any[];
1450
- consumer_return?: any[];
1450
+ shipnotice?: any[];
1451
1451
  };
1452
1452
  required_scopes?: {
1453
- location_transfer?: any[];
1454
- shipnotice?: any[];
1455
- warehouse?: any[];
1456
- location?: any[];
1453
+ account_transaction?: any[];
1457
1454
  carrier_account?: any[];
1455
+ consumer_return?: any[];
1458
1456
  customer?: any[];
1459
- transaction?: any[];
1460
- meta_key?: any[];
1461
- item?: any[];
1462
- user?: any[];
1463
- shipping_method?: any[];
1464
1457
  document?: any[];
1465
- order?: any[];
1466
- consumer_return?: any[];
1458
+ incident?: any[];
1459
+ item?: any[];
1460
+ location_audit?: any[];
1461
+ location?: any[];
1462
+ location_transfer?: any[];
1463
+ manifest?: any[];
1464
+ meta_key?: any[];
1467
1465
  order_batch?: any[];
1468
- project?: any[];
1469
- account_transaction?: any[];
1466
+ order?: any[];
1470
1467
  partner?: any[];
1471
- manifest?: any[];
1472
- location_audit?: any[];
1473
- incident?: any[];
1468
+ project?: any[];
1469
+ shipnotice?: any[];
1470
+ shipping_method?: any[];
1471
+ transaction?: any[];
1472
+ user?: any[];
1473
+ warehouse?: any[];
1474
1474
  };
1475
1475
  resource_actions?: {
1476
- location_transfer?: object;
1477
- shipnotice?: object;
1478
- warehouse?: object;
1479
- location?: object;
1476
+ account_transaction?: object;
1480
1477
  carrier_account?: object;
1478
+ consumer_return?: object;
1481
1479
  customer?: object;
1482
- meta_key?: object;
1483
- item?: object;
1484
- user?: object;
1485
- shipping_method?: object;
1486
1480
  document?: object;
1487
- order?: object;
1488
- consumer_return?: object;
1481
+ incident?: object;
1482
+ item?: object;
1483
+ location_audit?: object;
1484
+ location?: object;
1485
+ location_transfer?: object;
1486
+ manifest?: object;
1487
+ meta_key?: object;
1489
1488
  order_batch?: object;
1489
+ order?: object;
1490
1490
  project?: object;
1491
- account_transaction?: object;
1492
- manifest?: object;
1493
- location_audit?: object;
1494
- incident?: object;
1491
+ shipnotice?: object;
1492
+ shipping_method?: object;
1493
+ user?: object;
1494
+ warehouse?: object;
1495
1495
  };
1496
1496
  rule_actions?: {
1497
+ batching?: object;
1497
1498
  packing?: object;
1498
- shipping_method?: object;
1499
+ replenishment?: object;
1499
1500
  backstock?: object;
1500
- batching?: object;
1501
1501
  carrier_account?: object;
1502
1502
  routing?: object;
1503
- replenishment?: object;
1503
+ shipping_method?: object;
1504
1504
  };
1505
1505
  traits?: {
1506
- shipnotice?: any[];
1507
- warehouse?: any[];
1506
+ consumer_return?: any[];
1508
1507
  customer?: any[];
1509
1508
  item?: any[];
1510
- user?: any[];
1511
- order?: any[];
1512
- consumer_return?: any[];
1513
1509
  order_batch?: any[];
1510
+ order?: any[];
1511
+ shipnotice?: any[];
1512
+ user?: any[];
1513
+ warehouse?: any[];
1514
1514
  };
1515
1515
  }
1516
1516
  /** V2 */
@@ -5328,6 +5328,7 @@ export interface ApiV2EntitiesTemplateType {
5328
5328
  * @format date-time
5329
5329
  */
5330
5330
  updated_at?: string;
5331
+ valid_sizes?: string[];
5331
5332
  }
5332
5333
  /** V2 */
5333
5334
  export interface ApiV2EntitiesTransaction {
@@ -10498,6 +10499,7 @@ export interface ApiV21EntitiesTemplateType {
10498
10499
  * @format date-time
10499
10500
  */
10500
10501
  updated_at?: string;
10502
+ valid_sizes?: string[];
10501
10503
  }
10502
10504
  /** V3 */
10503
10505
  export interface ApiV21EntitiesTransaction {
@@ -32161,13 +32163,13 @@ export declare enum PostApiV21RulesRequestState {
32161
32163
  }
32162
32164
  /** Which type of rule this is */
32163
32165
  export declare enum PostApiV21RulesRequestType {
32166
+ BatchingRule = "BatchingRule",
32164
32167
  PackingRule = "PackingRule",
32165
- ShippingMethodRule = "ShippingMethodRule",
32168
+ ReplenishmentRule = "ReplenishmentRule",
32166
32169
  BackstockRule = "BackstockRule",
32167
- BatchingRule = "BatchingRule",
32168
32170
  CarrierAccountRule = "CarrierAccountRule",
32169
32171
  RoutingRule = "RoutingRule",
32170
- ReplenishmentRule = "ReplenishmentRule"
32172
+ ShippingMethodRule = "ShippingMethodRule"
32171
32173
  }
32172
32174
  /** locale for language settings */
32173
32175
  export declare enum PostApiV21UsersRequestLocale {
@@ -32967,13 +32969,13 @@ export declare enum PostApiV2RulesRequestState {
32967
32969
  }
32968
32970
  /** Which type of rule this is */
32969
32971
  export declare enum PostApiV2RulesRequestType {
32972
+ BatchingRule = "BatchingRule",
32970
32973
  PackingRule = "PackingRule",
32971
- ShippingMethodRule = "ShippingMethodRule",
32974
+ ReplenishmentRule = "ReplenishmentRule",
32972
32975
  BackstockRule = "BackstockRule",
32973
- BatchingRule = "BatchingRule",
32974
32976
  CarrierAccountRule = "CarrierAccountRule",
32975
32977
  RoutingRule = "RoutingRule",
32976
- ReplenishmentRule = "ReplenishmentRule"
32978
+ ShippingMethodRule = "ShippingMethodRule"
32977
32979
  }
32978
32980
  /** locale for language settings */
32979
32981
  export declare enum PostApiV2UsersRequestLocale {
@@ -1,3 +1,5 @@
1
+ export * from './v2/bill-of-lading/master-bol';
2
+ export * from './v2/bill-of-lading/child-bols';
1
3
  export * from './v2/consumer-return/all';
2
4
  export * from './v2/consumer-return/in-transit';
3
5
  export * from './v2/customer/normal';
@@ -6,8 +8,17 @@ export * from './v2/item/packaging';
6
8
  export * from './v2/item/bundle';
7
9
  export * from './v2/item/single';
8
10
  export * from './v2/load/open-no-bol';
11
+ export * from './v2/load/open-with-batches';
12
+ export * from './v2/load/open-with-notes';
13
+ export * from './v2/load/open-with-bol';
14
+ export * from './v2/load/closed';
15
+ export * from './v2/load/closed-listing';
16
+ export * from './v2/load/trait-closeable-all-met';
17
+ export * from './v2/load/trait-closeable-partial';
9
18
  export * from './v2/load/created';
10
19
  export * from './v2/order-batch/in-load';
20
+ export * from './v2/order-batch/in-load-with-grouping';
21
+ export * from './v2/order-batch/in-load-with-bol';
11
22
  export * from './v2/location/multiple';
12
23
  export * from './v2/location/single';
13
24
  export * from './v2/nav/normal';
@@ -21,6 +32,8 @@ export * from './v2/user/normal';
21
32
  export * from './v2/warehouse/normal';
22
33
  export * from './v2_1/account-transaction/created';
23
34
  export * from './v2_1/account/created';
35
+ export * from './v2_1/bill-of-lading/master-bol';
36
+ export * from './v2_1/bill-of-lading/child-bols';
24
37
  export * from './v2_1/bill-of-lading/created';
25
38
  export * from './v2_1/address/created';
26
39
  export * from './v2_1/broadcast/created';
@@ -42,8 +55,17 @@ export * from './v2_1/item/bundle';
42
55
  export * from './v2_1/item/created';
43
56
  export * from './v2_1/load-scac/created';
44
57
  export * from './v2_1/load/open-no-bol';
58
+ export * from './v2_1/load/open-with-batches';
59
+ export * from './v2_1/load/open-with-notes';
60
+ export * from './v2_1/load/open-with-bol';
61
+ export * from './v2_1/load/closed';
62
+ export * from './v2_1/load/closed-listing';
63
+ export * from './v2_1/load/trait-closeable-all-met';
64
+ export * from './v2_1/load/trait-closeable-partial';
45
65
  export * from './v2_1/load/created';
46
66
  export * from './v2_1/order-batch/in-load';
67
+ export * from './v2_1/order-batch/in-load-with-grouping';
68
+ export * from './v2_1/order-batch/in-load-with-bol';
47
69
  export * from './v2_1/location-audit/created';
48
70
  export * from './v2_1/location/multiple';
49
71
  export * from './v2_1/location/created';
@@ -0,0 +1,34 @@
1
+ export declare const ApiV2BillOfLadingChildBolsExample: {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ printed_at: null;
6
+ picked_at: null;
7
+ number: string;
8
+ carrier_name: null;
9
+ cid_number: null;
10
+ dep_number: null;
11
+ freight_charge: null;
12
+ location_number: null;
13
+ pallet_count: number;
14
+ package_type: string;
15
+ package_hazmat: boolean;
16
+ packages_count: number;
17
+ packages_total: number;
18
+ packages_weight: number;
19
+ pro_number: null;
20
+ scac_number: null;
21
+ seal_number: null;
22
+ sid_number: null;
23
+ special_instructions: null;
24
+ trailer_number: null;
25
+ bol_type: string;
26
+ vics_number: null;
27
+ master_vics_number: null;
28
+ pdf_url: null;
29
+ warehouse_id: number;
30
+ nmfc_sub: null;
31
+ nmfc_class: null;
32
+ group_by_bol_numbers: boolean;
33
+ status: string;
34
+ }[];
@@ -0,0 +1,34 @@
1
+ export declare const ApiV2BillOfLadingMasterBolExample: {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ printed_at: null;
6
+ picked_at: null;
7
+ number: string;
8
+ carrier_name: string;
9
+ cid_number: null;
10
+ dep_number: null;
11
+ freight_charge: string;
12
+ location_number: null;
13
+ pallet_count: number;
14
+ package_type: string;
15
+ package_hazmat: boolean;
16
+ packages_count: number;
17
+ packages_total: number;
18
+ packages_weight: number;
19
+ pro_number: string;
20
+ scac_number: string;
21
+ seal_number: null;
22
+ sid_number: null;
23
+ special_instructions: null;
24
+ trailer_number: null;
25
+ bol_type: string;
26
+ vics_number: null;
27
+ master_vics_number: string;
28
+ pdf_url: string;
29
+ warehouse_id: number;
30
+ nmfc_sub: null;
31
+ nmfc_class: null;
32
+ group_by_bol_numbers: boolean;
33
+ status: string;
34
+ };
@@ -0,0 +1,22 @@
1
+ export declare const ApiV2LoadClosedListingExample: {
2
+ id: number;
3
+ status: string;
4
+ closed_at_datetime: string;
5
+ wholesale_purchase_order_number: string;
6
+ wholesale_distribution_center: string;
7
+ wholesale_vendor: string;
8
+ wholesale_start_date: string;
9
+ packages_count: number;
10
+ packages_total_weight: string;
11
+ packages_total_dimensional_weight: string;
12
+ order_batches_count: number;
13
+ warehouse_id: number;
14
+ created_at: string;
15
+ updated_at: string;
16
+ cascade_routing: boolean;
17
+ appointment_datetime: null;
18
+ bill_of_lading_id: number;
19
+ customer_id: number;
20
+ notes: null;
21
+ reference: null;
22
+ }[];
@@ -0,0 +1,22 @@
1
+ export declare const ApiV2LoadClosedExample: {
2
+ id: number;
3
+ status: string;
4
+ closed_at_datetime: string;
5
+ wholesale_purchase_order_number: string;
6
+ wholesale_distribution_center: string;
7
+ wholesale_vendor: string;
8
+ wholesale_start_date: string;
9
+ packages_count: number;
10
+ packages_total_weight: string;
11
+ packages_total_dimensional_weight: string;
12
+ order_batches_count: number;
13
+ warehouse_id: number;
14
+ created_at: string;
15
+ updated_at: string;
16
+ cascade_routing: boolean;
17
+ appointment_datetime: null;
18
+ bill_of_lading_id: number;
19
+ customer_id: number;
20
+ notes: string;
21
+ reference: null;
22
+ }[];
@@ -0,0 +1,22 @@
1
+ export declare const ApiV2LoadOpenWithBatchesExample: {
2
+ id: number;
3
+ status: string;
4
+ closed_at_datetime: null;
5
+ wholesale_purchase_order_number: string;
6
+ wholesale_distribution_center: string;
7
+ wholesale_vendor: string;
8
+ wholesale_start_date: string;
9
+ packages_count: null;
10
+ packages_total_weight: null;
11
+ packages_total_dimensional_weight: null;
12
+ order_batches_count: number;
13
+ warehouse_id: number;
14
+ created_at: string;
15
+ updated_at: string;
16
+ cascade_routing: boolean;
17
+ appointment_datetime: string;
18
+ bill_of_lading_id: null;
19
+ customer_id: number;
20
+ notes: null;
21
+ reference: null;
22
+ }[];
@@ -0,0 +1,22 @@
1
+ export declare const ApiV2LoadOpenWithBolExample: {
2
+ id: number;
3
+ status: string;
4
+ closed_at_datetime: null;
5
+ wholesale_purchase_order_number: string;
6
+ wholesale_distribution_center: string;
7
+ wholesale_vendor: string;
8
+ wholesale_start_date: string;
9
+ packages_count: number;
10
+ packages_total_weight: string;
11
+ packages_total_dimensional_weight: string;
12
+ order_batches_count: number;
13
+ warehouse_id: number;
14
+ created_at: string;
15
+ updated_at: string;
16
+ cascade_routing: boolean;
17
+ appointment_datetime: string;
18
+ bill_of_lading_id: number;
19
+ customer_id: number;
20
+ notes: null;
21
+ reference: null;
22
+ }[];
@@ -0,0 +1,22 @@
1
+ export declare const ApiV2LoadOpenWithNotesExample: {
2
+ id: number;
3
+ status: string;
4
+ closed_at_datetime: null;
5
+ wholesale_purchase_order_number: string;
6
+ wholesale_distribution_center: string;
7
+ wholesale_vendor: string;
8
+ wholesale_start_date: string;
9
+ packages_count: null;
10
+ packages_total_weight: null;
11
+ packages_total_dimensional_weight: null;
12
+ order_batches_count: number;
13
+ warehouse_id: number;
14
+ created_at: string;
15
+ updated_at: string;
16
+ cascade_routing: boolean;
17
+ appointment_datetime: string;
18
+ bill_of_lading_id: null;
19
+ customer_id: number;
20
+ notes: string;
21
+ reference: null;
22
+ }[];
@@ -0,0 +1,8 @@
1
+ export declare const ApiV2LoadTraitCloseableAllMetExample: {
2
+ result: {
3
+ all_batches_have_bol: boolean;
4
+ all_orders_packed: boolean;
5
+ all_orders_needs_routing: boolean;
6
+ routing_satisfied: boolean;
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ export declare const ApiV2LoadTraitCloseablePartialExample: {
2
+ result: {
3
+ all_batches_have_bol: boolean;
4
+ all_orders_packed: boolean;
5
+ all_orders_needs_routing: boolean;
6
+ routing_satisfied: boolean;
7
+ };
8
+ };