@whiplashmerch/whiplash-api-client 2.0.9 → 2.0.11

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 (70) hide show
  1. package/dist/client.esm.js +2808 -3113
  2. package/dist/client.esm.js.map +1 -1
  3. package/dist/generated/Accounts.d.ts +9 -0
  4. package/dist/generated/Addresses.d.ts +19 -1
  5. package/dist/generated/BillOfLadings.d.ts +2 -2
  6. package/dist/generated/Broadcasts.d.ts +2 -2
  7. package/dist/generated/Cache.d.ts +6 -6
  8. package/dist/generated/CarrierAccounts.d.ts +13 -4
  9. package/dist/generated/Chaos.d.ts +55 -1
  10. package/dist/generated/ConsumerReturns.d.ts +2 -2
  11. package/dist/generated/Customers.d.ts +13 -4
  12. package/dist/generated/Documents.d.ts +2 -2
  13. package/dist/generated/FilterSets.d.ts +2 -2
  14. package/dist/generated/Incidents.d.ts +2 -2
  15. package/dist/generated/Invoices.d.ts +2 -2
  16. package/dist/generated/Items.d.ts +13 -4
  17. package/dist/generated/Loads.d.ts +4 -4
  18. package/dist/generated/Locales.d.ts +2 -2
  19. package/dist/generated/LocationAdjustments.d.ts +64 -1
  20. package/dist/generated/Locations.d.ts +11 -2
  21. package/dist/generated/Lots.d.ts +9 -0
  22. package/dist/generated/Manifests.d.ts +6 -6
  23. package/dist/generated/OrderBatches.d.ts +13 -4
  24. package/dist/generated/OrderItems.d.ts +11 -2
  25. package/dist/generated/Orders.d.ts +15 -6
  26. package/dist/generated/Originators.d.ts +9 -0
  27. package/dist/generated/Packages.d.ts +15 -6
  28. package/dist/generated/Prepacks.d.ts +10 -1
  29. package/dist/generated/Public.d.ts +4 -4
  30. package/dist/generated/Rates.d.ts +9 -0
  31. package/dist/generated/ReasonCodes.d.ts +19 -1
  32. package/dist/generated/Rules.d.ts +9 -0
  33. package/dist/generated/Scancodes.d.ts +19 -1
  34. package/dist/generated/SerialNumbers.d.ts +2 -2
  35. package/dist/generated/ShipnoticeItems.d.ts +41 -5
  36. package/dist/generated/Shipnotices.d.ts +13 -4
  37. package/dist/generated/ShippingAliases.d.ts +9 -0
  38. package/dist/generated/ShippingMethodMarkups.d.ts +9 -0
  39. package/dist/generated/Shops.d.ts +9 -0
  40. package/dist/generated/Stats.d.ts +6 -6
  41. package/dist/generated/SurchargeMarkups.d.ts +55 -1
  42. package/dist/generated/Templates.d.ts +9 -0
  43. package/dist/generated/Transactions.d.ts +9 -0
  44. package/dist/generated/TransportationMarkups.d.ts +55 -1
  45. package/dist/generated/Users.d.ts +13 -4
  46. package/dist/generated/Warehouses.d.ts +14 -5
  47. package/dist/generated/data-contracts.d.ts +19146 -18527
  48. package/dist/generated/index.d.ts +0 -1
  49. package/dist/mock-data/index.d.ts +11 -3
  50. package/dist/mock-data/v2/customer/normal.d.ts +198 -0
  51. package/dist/mock-data/v2/nav/normal.d.ts +68 -0
  52. package/dist/mock-data/v2/user/normal.d.ts +20 -0
  53. package/dist/mock-data/v2/warehouse/normal.d.ts +47 -0
  54. package/dist/mock-data/v2_1/nav/normal.d.ts +68 -0
  55. package/dist/mock-data/v2_1/order/all.d.ts +2 -1020
  56. package/dist/mock-data/v2_1/prepack/created.d.ts +1 -0
  57. package/dist/mock-data/v2_1/shipnotice/all.d.ts +2 -256
  58. package/dist/mock-data/v2_1/surcharge-markup/created.d.ts +1 -0
  59. package/dist/mock-data/v2_1/tag/created.d.ts +1 -0
  60. package/dist/mock-data/v2_1/transportation-markup/created.d.ts +1 -0
  61. package/generated/Customers.ts +2 -2
  62. package/generated/Documents.ts +2 -2
  63. package/generated/Items.ts +2 -2
  64. package/generated/OrderItems.ts +2 -2
  65. package/generated/Orders.ts +2 -2
  66. package/generated/ShipnoticeItems.ts +2 -2
  67. package/generated/Shipnotices.ts +2 -2
  68. package/generated/data-contracts.ts +9596 -9495
  69. package/package.json +1 -1
  70. package/dist/generated/Pallets.d.ts +0 -146
@@ -46,7 +46,6 @@ export * from './OrderTotes';
46
46
  export * from './Orders';
47
47
  export * from './Originators';
48
48
  export * from './Packages';
49
- export * from './Pallets';
50
49
  export * from './Partners';
51
50
  export * from './Prepacks';
52
51
  export * from './ProjectTasks';
@@ -1,13 +1,17 @@
1
1
  export * from './v2/consumer-return/all';
2
2
  export * from './v2/consumer-return/in-transit';
3
+ export * from './v2/customer/normal';
3
4
  export * from './v2/item/multiple';
4
5
  export * from './v2/item/single';
5
6
  export * from './v2/location/example';
7
+ export * from './v2/nav/normal';
6
8
  export * from './v2/order/all';
7
9
  export * from './v2/order/processing';
8
10
  export * from './v2/shipnotice/processing';
9
11
  export * from './v2/shipnotice/in-transit';
10
12
  export * from './v2/shipnotice/all';
13
+ export * from './v2/user/normal';
14
+ export * from './v2/warehouse/normal';
11
15
  export * from './v2_1/account-transaction/created';
12
16
  export * from './v2_1/account/created';
13
17
  export * from './v2_1/bill-of-lading/created';
@@ -33,17 +37,20 @@ export * from './v2_1/location/example';
33
37
  export * from './v2_1/lot/created';
34
38
  export * from './v2_1/message/created';
35
39
  export * from './v2_1/meta-key/created';
40
+ export * from './v2_1/nav/normal';
36
41
  export * from './v2_1/notification-subscription/created';
37
42
  export * from './v2_1/order-document/created';
38
43
  export * from './v2_1/order-item/created';
44
+ export * from './v2_1/order/all';
45
+ export * from './v2_1/order/created';
39
46
  export * from './v2_1/consumer-return/in-transit';
40
47
  export * from './v2_1/item/single';
41
48
  export * from './v2_1/order/processing';
42
49
  export * from './v2_1/shipnotice/processing';
43
50
  export * from './v2_1/originator/created';
44
51
  export * from './v2_1/package/created';
45
- export * from './v2_1/pallet/created';
46
52
  export * from './v2_1/partner/created';
53
+ export * from './v2_1/prepack/created';
47
54
  export * from './v2_1/project-task/created';
48
55
  export * from './v2_1/project/created';
49
56
  export * from './v2_1/count/created';
@@ -56,11 +63,12 @@ export * from './v2_1/shipnotice/in-transit';
56
63
  export * from './v2_1/shipping-alias/created';
57
64
  export * from './v2_1/shipping-blacklisted-method/created';
58
65
  export * from './v2_1/shipping-method/created';
59
- export * from './v2_1/order/created';
66
+ export * from './v2_1/surcharge-markup/created';
67
+ export * from './v2_1/tag/created';
60
68
  export * from './v2_1/template/created';
69
+ export * from './v2_1/transportation-markup/created';
61
70
  export * from './v2_1/user/created';
62
71
  export * from './v2_1/result/created';
63
72
  export * from './v2_1/warehouse-feature/created';
64
73
  export * from './v2_1/warehouse/created';
65
74
  export * from './v2_1/carrier/created';
66
- export * from './v2_1/order/all';
@@ -0,0 +1,198 @@
1
+ export declare const ApiV2CustomerNormalExample: {
2
+ id: number;
3
+ name: string;
4
+ created_at: string;
5
+ active: boolean;
6
+ auto_merge_gestation: number;
7
+ default_warehouse_id: number;
8
+ eori_number: null;
9
+ estimated_monthly_volume: null;
10
+ fedex_account: null;
11
+ from_email: null;
12
+ instructions: null;
13
+ item_scanning_preference: boolean;
14
+ label_format: null;
15
+ notes: null;
16
+ notify_originator: boolean;
17
+ notify_originator_inventory: number;
18
+ originator_permissions: boolean;
19
+ packing_slip_msg: null;
20
+ packingslip_template: null;
21
+ request_serial_numbers: boolean;
22
+ ship_method_preference: number;
23
+ shipping_name: string;
24
+ ups_account: null;
25
+ vat_number: null;
26
+ ein: null;
27
+ gs1_company_prefix: null;
28
+ warehouse_fallback: number;
29
+ payment_hold: boolean;
30
+ primary_contact: string;
31
+ exit_notice: boolean;
32
+ data_mapping_string: null;
33
+ whitelisted_warehouses: ({
34
+ id: number;
35
+ name: string;
36
+ timezone: string;
37
+ timezone_raw: string;
38
+ partner_id: number;
39
+ shipping_address_1: string;
40
+ shipping_address_2: string;
41
+ shipping_city: string;
42
+ shipping_state: string;
43
+ shipping_zip: string;
44
+ shipping_country: string;
45
+ shipping_country_iso2: string;
46
+ latitude: number;
47
+ longitude: number;
48
+ slug: string;
49
+ default_pick_strategy: string;
50
+ bin_total_count_max: null;
51
+ bin_cubic_volume_max: null;
52
+ number_of_groups: null;
53
+ fedex_pickup_time: null;
54
+ active: boolean;
55
+ square_footage: number;
56
+ created_at: string;
57
+ updated_at: string;
58
+ ups_shipper_number: string;
59
+ email: string;
60
+ ups_carrier_facility: string;
61
+ currency: string;
62
+ vat: null;
63
+ domestic_return_labels: boolean;
64
+ international_return_labels: boolean;
65
+ accepting_new_customers: boolean;
66
+ receiving_hours: string;
67
+ pickup_hours: null;
68
+ contact_name: string;
69
+ contact_phone: null;
70
+ delivery_appointment_required: boolean;
71
+ label_format: string;
72
+ shipping_label_format: string;
73
+ loading_dock_quantity: number;
74
+ receiving_special_instructions: string;
75
+ single_item_batch_size: null;
76
+ packaging_customer_id: null;
77
+ notes: null;
78
+ warehouse_features: {
79
+ id: number;
80
+ feature: string;
81
+ feature_code: string;
82
+ created_at: string;
83
+ updated_at: string;
84
+ }[];
85
+ } | {
86
+ id: number;
87
+ name: string;
88
+ timezone: string;
89
+ timezone_raw: string;
90
+ partner_id: number;
91
+ shipping_address_1: string;
92
+ shipping_address_2: null;
93
+ shipping_city: string;
94
+ shipping_state: string;
95
+ shipping_zip: string;
96
+ shipping_country: string;
97
+ shipping_country_iso2: string;
98
+ latitude: null;
99
+ longitude: null;
100
+ slug: string;
101
+ default_pick_strategy: string;
102
+ bin_total_count_max: null;
103
+ bin_cubic_volume_max: null;
104
+ number_of_groups: null;
105
+ fedex_pickup_time: null;
106
+ active: boolean;
107
+ square_footage: number;
108
+ created_at: string;
109
+ updated_at: string;
110
+ ups_shipper_number: null;
111
+ email: string;
112
+ ups_carrier_facility: null;
113
+ currency: string;
114
+ vat: null;
115
+ domestic_return_labels: boolean;
116
+ international_return_labels: boolean;
117
+ accepting_new_customers: boolean;
118
+ receiving_hours: null;
119
+ pickup_hours: null;
120
+ contact_name: null;
121
+ contact_phone: null;
122
+ delivery_appointment_required: boolean;
123
+ label_format: null;
124
+ shipping_label_format: string;
125
+ loading_dock_quantity: number;
126
+ receiving_special_instructions: null;
127
+ single_item_batch_size: null;
128
+ packaging_customer_id: null;
129
+ notes: null;
130
+ warehouse_features: never[];
131
+ })[];
132
+ allowed_warehouse_ids: number[];
133
+ account_level: number;
134
+ account_level_name: null;
135
+ activated_at: string;
136
+ deactivated_at: null;
137
+ auto_merge_skus: boolean;
138
+ partner_id: number;
139
+ billing_email: string;
140
+ billing_contact_name: string;
141
+ billing_company: null;
142
+ billing_phone1: string;
143
+ billing_phone2: null;
144
+ billing_address1: string;
145
+ billing_address2: null;
146
+ billing_address3: null;
147
+ billing_city: string;
148
+ billing_state: string;
149
+ billing_zip: string;
150
+ billing_country: string;
151
+ billing_residential: null;
152
+ items_returnable: boolean;
153
+ allow_international_returns: boolean;
154
+ items_exchangeable: boolean;
155
+ return_time_limit: number;
156
+ return_label_expires_in: number;
157
+ return_price_restricted: boolean;
158
+ return_sku_match: null;
159
+ rma_display_logo: boolean;
160
+ rma_footer_content: null;
161
+ return_name: null;
162
+ return_company: null;
163
+ return_email: null;
164
+ return_phone: null;
165
+ return_address_1: null;
166
+ return_address_2: null;
167
+ return_city: null;
168
+ return_state: null;
169
+ return_zip: null;
170
+ return_country: null;
171
+ supports_return_labels: boolean;
172
+ logo_content_type: null;
173
+ logo_file_name: null;
174
+ logo_file_size: null;
175
+ logo_updated_at: null;
176
+ full_logo_url: string;
177
+ email_confirmation_from: string;
178
+ email_confirmation_name: string;
179
+ email_confirmation_msg: null;
180
+ email_confirmation_preference: number;
181
+ email_confirmation_template: null;
182
+ low_inventory_threshold: null;
183
+ lot_control: boolean;
184
+ expiration_period: null;
185
+ ship_strategy: number;
186
+ items_unavailable_on_sellout: number;
187
+ replenishment_min: null;
188
+ replenishment_target: null;
189
+ allow_b_stock_receiving: boolean;
190
+ location_default_return_role: string;
191
+ location_enable_pending_returns: boolean;
192
+ location_enable_receiving_into_reserved: boolean;
193
+ receiving_fields: null;
194
+ project_task_labels: null;
195
+ dashboard_enable_domo: boolean;
196
+ dashboard_enable_parcel_insights: boolean;
197
+ billing_core: boolean;
198
+ };
@@ -0,0 +1,68 @@
1
+ export declare const ApiV2NavNormalExample: {
2
+ app: {
3
+ orders: {
4
+ slug: string;
5
+ display: string;
6
+ url: string;
7
+ }[];
8
+ inventory: {
9
+ slug: string;
10
+ display: string;
11
+ url: string;
12
+ }[];
13
+ shipnotices: {
14
+ slug: string;
15
+ display: string;
16
+ url: string;
17
+ }[];
18
+ returns: {
19
+ slug: string;
20
+ display: string;
21
+ url: string;
22
+ }[];
23
+ batches: {
24
+ slug: string;
25
+ display: string;
26
+ url: string;
27
+ }[];
28
+ manage: {
29
+ slug: string;
30
+ display: string;
31
+ url: string;
32
+ }[];
33
+ support: {
34
+ slug: string;
35
+ display: string;
36
+ url: string;
37
+ }[];
38
+ };
39
+ customer: {
40
+ slug: string;
41
+ display: string;
42
+ url: string;
43
+ }[];
44
+ info: ({
45
+ slug: string;
46
+ display: string;
47
+ url: string;
48
+ } | {
49
+ slug: string;
50
+ display: string;
51
+ url: null;
52
+ })[];
53
+ session: {
54
+ slug: string;
55
+ display: string;
56
+ url: string;
57
+ }[];
58
+ search: {
59
+ slug: string;
60
+ display: string;
61
+ url: string;
62
+ }[];
63
+ warehouse: {
64
+ slug: string;
65
+ display: string;
66
+ url: string;
67
+ }[];
68
+ };
@@ -0,0 +1,20 @@
1
+ export declare const ApiV2UserNormalExample: {
2
+ id: number;
3
+ email: string;
4
+ sign_in_count: number;
5
+ created_at: string;
6
+ first_name: string;
7
+ last_name: string;
8
+ full_name: string;
9
+ role: string;
10
+ locale: string;
11
+ warehouse_id: null;
12
+ partner_id: null;
13
+ active: boolean;
14
+ current_sign_in_at: null;
15
+ current_sign_in_expires_at: null;
16
+ customer_ids: number[];
17
+ create_email: null;
18
+ skip_confirmation: null;
19
+ auth_token: null;
20
+ };
@@ -0,0 +1,47 @@
1
+ export declare const ApiV2WarehouseNormalExample: {
2
+ id: number;
3
+ name: string;
4
+ timezone: string;
5
+ timezone_raw: string;
6
+ partner_id: number;
7
+ shipping_address_1: string;
8
+ shipping_address_2: null;
9
+ shipping_city: string;
10
+ shipping_state: string;
11
+ shipping_zip: string;
12
+ shipping_country: string;
13
+ shipping_country_iso2: string;
14
+ latitude: null;
15
+ longitude: null;
16
+ slug: string;
17
+ default_pick_strategy: string;
18
+ bin_total_count_max: null;
19
+ bin_cubic_volume_max: null;
20
+ number_of_groups: null;
21
+ fedex_pickup_time: null;
22
+ active: boolean;
23
+ square_footage: number;
24
+ created_at: string;
25
+ updated_at: string;
26
+ ups_shipper_number: null;
27
+ email: string;
28
+ ups_carrier_facility: null;
29
+ currency: string;
30
+ vat: null;
31
+ domestic_return_labels: boolean;
32
+ international_return_labels: boolean;
33
+ accepting_new_customers: boolean;
34
+ receiving_hours: null;
35
+ pickup_hours: null;
36
+ contact_name: null;
37
+ contact_phone: null;
38
+ delivery_appointment_required: boolean;
39
+ label_format: null;
40
+ shipping_label_format: string;
41
+ loading_dock_quantity: number;
42
+ receiving_special_instructions: null;
43
+ single_item_batch_size: null;
44
+ packaging_customer_id: null;
45
+ notes: null;
46
+ warehouse_features: never[];
47
+ };
@@ -0,0 +1,68 @@
1
+ export declare const ApiV21NavNormalExample: {
2
+ app: {
3
+ orders: {
4
+ slug: string;
5
+ display: string;
6
+ url: string;
7
+ }[];
8
+ inventory: {
9
+ slug: string;
10
+ display: string;
11
+ url: string;
12
+ }[];
13
+ shipnotices: {
14
+ slug: string;
15
+ display: string;
16
+ url: string;
17
+ }[];
18
+ returns: {
19
+ slug: string;
20
+ display: string;
21
+ url: string;
22
+ }[];
23
+ batches: {
24
+ slug: string;
25
+ display: string;
26
+ url: string;
27
+ }[];
28
+ manage: {
29
+ slug: string;
30
+ display: string;
31
+ url: string;
32
+ }[];
33
+ support: {
34
+ slug: string;
35
+ display: string;
36
+ url: string;
37
+ }[];
38
+ };
39
+ customer: {
40
+ slug: string;
41
+ display: string;
42
+ url: string;
43
+ }[];
44
+ info: ({
45
+ slug: string;
46
+ display: string;
47
+ url: string;
48
+ } | {
49
+ slug: string;
50
+ display: string;
51
+ url: null;
52
+ })[];
53
+ session: {
54
+ slug: string;
55
+ display: string;
56
+ url: string;
57
+ }[];
58
+ search: {
59
+ slug: string;
60
+ display: string;
61
+ url: string;
62
+ }[];
63
+ warehouse: {
64
+ slug: string;
65
+ display: string;
66
+ url: string;
67
+ }[];
68
+ };