@whiplashmerch/whiplash-api-client 3.2.42 → 3.2.44

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.
@@ -15,6 +15,7 @@ export * from './v2/load/closed';
15
15
  export * from './v2/load/closed-listing';
16
16
  export * from './v2/load/trait-closeable-all-met';
17
17
  export * from './v2/load/trait-closeable-partial';
18
+ export * from './v2/load/for-pallet';
18
19
  export * from './v2/load/created';
19
20
  export * from './v2/order-batch/in-load';
20
21
  export * from './v2/order-batch/in-load-with-grouping';
@@ -23,10 +24,19 @@ export * from './v2/location/multiple';
23
24
  export * from './v2/location/single';
24
25
  export * from './v2/nav/normal';
25
26
  export * from './v2/order-batch/wholesale-available';
27
+ export * from './v2/order-batch/for-pallet';
26
28
  export * from './v2/order/all';
27
29
  export * from './v2/order/processing';
28
30
  export * from './v2/shipnotice/processing';
29
31
  export * from './v2/shipnotice/in-transit';
32
+ export * from './v2/package/on-pallet';
33
+ export * from './v2/pallet-location/listing';
34
+ export * from './v2/pallet-location/created';
35
+ export * from './v2/pallet-location/single';
36
+ export * from './v2/pallet-info/listing';
37
+ export * from './v2/pallet/listing';
38
+ export * from './v2/pallet/single';
39
+ export * from './v2/pallet/assigned';
30
40
  export * from './v2/shipnotice/all';
31
41
  export * from './v2/user/normal';
32
42
  export * from './v2/warehouse/normal';
@@ -62,6 +72,7 @@ export * from './v2_1/load/closed';
62
72
  export * from './v2_1/load/closed-listing';
63
73
  export * from './v2_1/load/trait-closeable-all-met';
64
74
  export * from './v2_1/load/trait-closeable-partial';
75
+ export * from './v2_1/load/for-pallet';
65
76
  export * from './v2_1/load/created';
66
77
  export * from './v2_1/order-batch/in-load';
67
78
  export * from './v2_1/order-batch/in-load-with-grouping';
@@ -76,6 +87,7 @@ export * from './v2_1/meta-key/created';
76
87
  export * from './v2_1/nav/normal';
77
88
  export * from './v2_1/notification-subscription/created';
78
89
  export * from './v2_1/order-batch/wholesale-available';
90
+ export * from './v2_1/order-batch/for-pallet';
79
91
  export * from './v2_1/order-document/created';
80
92
  export * from './v2_1/order-item/created';
81
93
  export * from './v2_1/order/all';
@@ -87,8 +99,14 @@ export * from './v2_1/shipnotice/processing';
87
99
  export * from './v2_1/originator/created';
88
100
  export * from './v2_1/package-label-reference/created';
89
101
  export * from './v2_1/package/created';
102
+ export * from './v2_1/package/on-pallet';
103
+ export * from './v2_1/pallet-location/listing';
90
104
  export * from './v2_1/pallet-location/created';
105
+ export * from './v2_1/pallet-location/single';
106
+ export * from './v2_1/pallet-info/listing';
107
+ export * from './v2_1/pallet/listing';
91
108
  export * from './v2_1/pallet/created';
109
+ export * from './v2_1/pallet/single';
92
110
  export * from './v2_1/partner/created';
93
111
  export * from './v2_1/prepack/created';
94
112
  export * from './v2_1/project-task/created';
@@ -0,0 +1,22 @@
1
+ export declare const ApiV2LoadForPalletExample: {
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: null;
18
+ bill_of_lading_id: null;
19
+ customer_id: number;
20
+ notes: null;
21
+ reference: string;
22
+ };
@@ -0,0 +1,116 @@
1
+ export declare const ApiV2OrderBatchForPalletExample: {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ status: number;
6
+ status_name: string;
7
+ warehouse_id: number;
8
+ assigned_to: null;
9
+ packingslips_pdf_url: string;
10
+ cf_packingslips_pdf_url: string;
11
+ packingslips_printed_at: null;
12
+ picklist_pdf_url: null;
13
+ started_at: null;
14
+ stopped_at: null;
15
+ expedited_shipping: null;
16
+ identical_orders: null;
17
+ pick_strategy: string;
18
+ single_item: null;
19
+ order_batch_item_count: number;
20
+ order_batch_item_quantity: number;
21
+ location_roles: string[];
22
+ actual_location_roles: never[];
23
+ short_form: null;
24
+ grouping_fields: {
25
+ wholesale_po_number: string;
26
+ };
27
+ bol_id: null;
28
+ call_in_date: null;
29
+ requested_ship_date: null;
30
+ bill_of_lading_id: null;
31
+ load_id: number;
32
+ customer_id: number;
33
+ packages_count: number;
34
+ packages_total_weight: null;
35
+ packages_total_dimensional_weight: null;
36
+ items_count: number;
37
+ items_total_quantity: number;
38
+ order_batch_request_id: null;
39
+ international: null;
40
+ expedited_orders: null;
41
+ prepack: null;
42
+ user: null;
43
+ warehouse: {
44
+ id: number;
45
+ name: string;
46
+ timezone: string;
47
+ timezone_raw: string;
48
+ partner_id: number;
49
+ shipping_address_1: string;
50
+ shipping_address_2: string;
51
+ shipping_city: string;
52
+ shipping_state: string;
53
+ shipping_zip: string;
54
+ shipping_country: string;
55
+ shipping_country_iso2: string;
56
+ latitude: number;
57
+ longitude: number;
58
+ slug: string;
59
+ default_pick_strategy: string;
60
+ bin_total_count_max: null;
61
+ bin_cubic_volume_max: null;
62
+ number_of_groups: null;
63
+ fedex_pickup_time: null;
64
+ active: boolean;
65
+ square_footage: number;
66
+ created_at: string;
67
+ updated_at: string;
68
+ ups_shipper_number: string;
69
+ email: string;
70
+ ups_carrier_facility: string;
71
+ currency: string;
72
+ vat: null;
73
+ domestic_return_labels: boolean;
74
+ international_return_labels: boolean;
75
+ accepting_new_customers: boolean;
76
+ receiving_hours: string;
77
+ pickup_hours: null;
78
+ contact_name: string;
79
+ contact_phone: null;
80
+ delivery_appointment_required: boolean;
81
+ label_format: string;
82
+ shipping_label_format: string;
83
+ loading_dock_quantity: number;
84
+ receiving_special_instructions: string;
85
+ single_item_batch_size: null;
86
+ packaging_customer_id: null;
87
+ notes: null;
88
+ warehouse_features: {
89
+ id: number;
90
+ feature: string;
91
+ feature_code: string;
92
+ created_at: string;
93
+ updated_at: string;
94
+ warehouses: {
95
+ id: number;
96
+ name: string;
97
+ timezone: string;
98
+ timezone_raw: string;
99
+ partner_id: number;
100
+ shipping_address_1: string;
101
+ shipping_address_2: string;
102
+ shipping_city: string;
103
+ shipping_state: string;
104
+ shipping_zip: string;
105
+ shipping_country: string;
106
+ shipping_country_iso2: string;
107
+ latitude: number;
108
+ longitude: number;
109
+ slug: string;
110
+ }[];
111
+ }[];
112
+ };
113
+ groups: {
114
+ 109432564: number;
115
+ };
116
+ };
@@ -0,0 +1,5 @@
1
+ export declare const ApiV2PackageOnPalletExample: {
2
+ id: number;
3
+ pallet_id: number;
4
+ order_id: number;
5
+ }[];
@@ -0,0 +1,13 @@
1
+ export declare const ApiV2PalletAssignedExample: {
2
+ id: number;
3
+ warehouse_id: number;
4
+ pallet_location_id: number;
5
+ number: string;
6
+ total_package_count: number;
7
+ total_item_count: number;
8
+ total_dimensional_weight: null;
9
+ total_weight: string;
10
+ lpn_label_printed_at: null;
11
+ created_at: string;
12
+ updated_at: string;
13
+ };
@@ -0,0 +1,13 @@
1
+ export declare const ApiV2PalletListingExample: {
2
+ id: number;
3
+ warehouse_id: number;
4
+ pallet_location_id: number;
5
+ number: string;
6
+ total_package_count: number;
7
+ total_item_count: number;
8
+ total_dimensional_weight: null;
9
+ total_weight: string;
10
+ lpn_label_printed_at: null;
11
+ created_at: string;
12
+ updated_at: string;
13
+ }[];
@@ -0,0 +1,13 @@
1
+ export declare const ApiV2PalletSingleExample: {
2
+ id: number;
3
+ warehouse_id: number;
4
+ pallet_location_id: null;
5
+ number: string;
6
+ total_package_count: number;
7
+ total_item_count: number;
8
+ total_dimensional_weight: null;
9
+ total_weight: string;
10
+ lpn_label_printed_at: null;
11
+ created_at: string;
12
+ updated_at: string;
13
+ };
@@ -0,0 +1,8 @@
1
+ export declare const ApiV2PalletInfoListingExample: {
2
+ pallet_id: number;
3
+ pallet_number: string;
4
+ load_id: number;
5
+ customer_id: number;
6
+ customer_name: string;
7
+ po_number: string;
8
+ }[];
@@ -0,0 +1,8 @@
1
+ export declare const ApiV2PalletLocationCreatedExample: {
2
+ id: number;
3
+ active: boolean;
4
+ lane: string;
5
+ warehouse_id: number;
6
+ created_at: string;
7
+ updated_at: string;
8
+ };
@@ -0,0 +1,8 @@
1
+ export declare const ApiV2PalletLocationListingExample: {
2
+ id: number;
3
+ active: boolean;
4
+ lane: string;
5
+ warehouse_id: number;
6
+ created_at: string;
7
+ updated_at: string;
8
+ }[];
@@ -0,0 +1,8 @@
1
+ export declare const ApiV2PalletLocationSingleExample: {
2
+ id: number;
3
+ active: boolean;
4
+ lane: string;
5
+ warehouse_id: number;
6
+ created_at: string;
7
+ updated_at: string;
8
+ };
@@ -0,0 +1,22 @@
1
+ export declare const ApiV21LoadForPalletExample: {
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: null;
18
+ bill_of_lading_id: null;
19
+ customer_id: number;
20
+ notes: null;
21
+ reference: string;
22
+ };
@@ -0,0 +1,41 @@
1
+ export declare const ApiV21OrderBatchForPalletExample: {
2
+ id: number;
3
+ created_at: string;
4
+ updated_at: string;
5
+ status: number;
6
+ status_name: string;
7
+ warehouse_id: number;
8
+ assigned_to: null;
9
+ packingslips_pdf_url: string;
10
+ cf_packingslips_pdf_url: string;
11
+ packingslips_printed_at: null;
12
+ picklist_pdf_url: null;
13
+ started_at: null;
14
+ stopped_at: null;
15
+ expedited_shipping: null;
16
+ identical_orders: null;
17
+ pick_strategy: string;
18
+ single_item: null;
19
+ order_batch_item_count: number;
20
+ order_batch_item_quantity: number;
21
+ location_roles: string[];
22
+ short_form: null;
23
+ grouping_fields: {
24
+ wholesale_po_number: string;
25
+ };
26
+ bol_id: null;
27
+ call_in_date: null;
28
+ requested_ship_date: null;
29
+ bill_of_lading_id: null;
30
+ load_id: number;
31
+ customer_id: number;
32
+ packages_count: number;
33
+ packages_total_weight: null;
34
+ packages_total_dimensional_weight: null;
35
+ items_count: number;
36
+ items_total_quantity: number;
37
+ order_batch_request_id: null;
38
+ international: null;
39
+ expedited_orders: null;
40
+ prepack: null;
41
+ };
@@ -0,0 +1,5 @@
1
+ export declare const ApiV21PackageOnPalletExample: {
2
+ id: number;
3
+ pallet_id: number;
4
+ order_id: number;
5
+ }[];
@@ -0,0 +1,13 @@
1
+ export declare const ApiV21PalletListingExample: {
2
+ id: number;
3
+ warehouse_id: number;
4
+ pallet_location_id: number;
5
+ number: string;
6
+ total_package_count: number;
7
+ total_item_count: number;
8
+ total_dimensional_weight: null;
9
+ total_weight: string;
10
+ lpn_label_printed_at: null;
11
+ created_at: string;
12
+ updated_at: string;
13
+ }[];
@@ -0,0 +1,13 @@
1
+ export declare const ApiV21PalletSingleExample: {
2
+ id: number;
3
+ warehouse_id: number;
4
+ pallet_location_id: null;
5
+ number: string;
6
+ total_package_count: number;
7
+ total_item_count: number;
8
+ total_dimensional_weight: null;
9
+ total_weight: string;
10
+ lpn_label_printed_at: null;
11
+ created_at: string;
12
+ updated_at: string;
13
+ };
@@ -0,0 +1,8 @@
1
+ export declare const ApiV21PalletInfoListingExample: {
2
+ pallet_id: number;
3
+ pallet_number: string;
4
+ load_id: number;
5
+ customer_id: number;
6
+ customer_name: string;
7
+ po_number: string;
8
+ }[];
@@ -0,0 +1,8 @@
1
+ export declare const ApiV21PalletLocationListingExample: {
2
+ id: number;
3
+ active: boolean;
4
+ lane: string;
5
+ warehouse_id: number;
6
+ created_at: string;
7
+ updated_at: string;
8
+ }[];
@@ -0,0 +1,8 @@
1
+ export declare const ApiV21PalletLocationSingleExample: {
2
+ id: number;
3
+ active: boolean;
4
+ lane: string;
5
+ warehouse_id: number;
6
+ created_at: string;
7
+ updated_at: string;
8
+ };
@@ -18,3 +18,11 @@ export interface SetUserWarehouseParams {
18
18
  }
19
19
  export declare const setUserWarehouse: (client: HttpClient, { userId, warehouseId }: SetUserWarehouseParams, params?: RequestParams) => Promise<void>;
20
20
  export declare const unsetUserWarehouse: (client: HttpClient, userId: number, params?: RequestParams) => Promise<void>;
21
+ export declare function isUserInternal(user: ApiV21EntitiesUser): boolean;
22
+ export declare function isUserManagerOrStaff(user: ApiV21EntitiesUser): boolean;
23
+ export declare function isUserPartner(user: ApiV21EntitiesUser): boolean;
24
+ export declare function isUserAdmin(user: ApiV21EntitiesUser): boolean;
25
+ export declare function isUserStaff(user: ApiV21EntitiesUser): boolean;
26
+ export declare function isUserManager(user: ApiV21EntitiesUser): boolean;
27
+ export declare function isUserCustomer(user: ApiV21EntitiesUser): boolean;
28
+ export declare function isUserInternalOrPartner(user: ApiV21EntitiesUser): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiplashmerch/whiplash-api-client",
3
- "version": "3.2.42",
3
+ "version": "3.2.44",
4
4
  "description": "",
5
5
  "devDependencies": {},
6
6
  "scripts": {