@whiplashmerch/whiplash-api-client 0.1.2 → 0.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.
- package/dist/client.esm.js +33 -33
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/ConsumerReturns.d.ts +4 -4
- package/dist/generated/Items.d.ts +6 -6
- package/dist/generated/OrderItems.d.ts +6 -6
- package/dist/generated/Orders.d.ts +6 -6
- package/dist/generated/ShipnoticeItems.d.ts +4 -4
- package/dist/generated/Shipnotices.d.ts +4 -4
- package/dist/generated/data-contracts.d.ts +19 -19
- package/generated/ConsumerReturns.ts +4 -4
- package/generated/Items.ts +6 -6
- package/generated/OrderItems.ts +6 -6
- package/generated/Orders.ts +6 -6
- package/generated/ShipnoticeItems.ts +4 -4
- package/generated/Shipnotices.ts +4 -4
- package/generated/data-contracts.ts +19 -19
- package/package.json +1 -1
package/dist/client.esm.js
CHANGED
|
@@ -239,7 +239,7 @@ const getApiV2ConsumerReturnsOriginatorOriginatorId = (client, originatorId, par
|
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
241
|
/**
|
|
242
|
-
* @description Update
|
|
242
|
+
* @description Update ConsumerReturn meta fields
|
|
243
243
|
*
|
|
244
244
|
* @tags consumer_returns
|
|
245
245
|
* @name PutApiV2ConsumerReturnsIdMetaFields
|
|
@@ -256,7 +256,7 @@ const putApiV2ConsumerReturnsIdMetaFields = (client, id, ApiV2ConsumerReturnsIdM
|
|
|
256
256
|
});
|
|
257
257
|
};
|
|
258
258
|
/**
|
|
259
|
-
* @description Get the meta fields for a(n)
|
|
259
|
+
* @description Get the meta fields for a(n) ConsumerReturn
|
|
260
260
|
*
|
|
261
261
|
* @tags consumer_returns
|
|
262
262
|
* @name GetApiV2ConsumerReturnsIdMetaFields
|
|
@@ -440,7 +440,7 @@ const getApiV21ConsumerReturnsOriginatorOriginatorId = (client, originatorId, pa
|
|
|
440
440
|
});
|
|
441
441
|
};
|
|
442
442
|
/**
|
|
443
|
-
* @description Update
|
|
443
|
+
* @description Update ConsumerReturn meta fields
|
|
444
444
|
*
|
|
445
445
|
* @tags consumer_returns
|
|
446
446
|
* @name PutApiV21ConsumerReturnsIdMetaFields
|
|
@@ -457,7 +457,7 @@ const putApiV21ConsumerReturnsIdMetaFields = (client, id, ApiV21ConsumerReturnsI
|
|
|
457
457
|
});
|
|
458
458
|
};
|
|
459
459
|
/**
|
|
460
|
-
* @description Get the meta fields for a(n)
|
|
460
|
+
* @description Get the meta fields for a(n) ConsumerReturn
|
|
461
461
|
*
|
|
462
462
|
* @tags consumer_returns
|
|
463
463
|
* @name GetApiV21ConsumerReturnsIdMetaFields
|
|
@@ -1062,7 +1062,7 @@ const getApiV2ItemsOriginatorOriginatorId = (client, originatorId, params = {})
|
|
|
1062
1062
|
});
|
|
1063
1063
|
};
|
|
1064
1064
|
/**
|
|
1065
|
-
* @description Update
|
|
1065
|
+
* @description Update Item meta fields
|
|
1066
1066
|
*
|
|
1067
1067
|
* @tags items
|
|
1068
1068
|
* @name PutApiV2ItemsIdMetaFields
|
|
@@ -1079,7 +1079,7 @@ const putApiV2ItemsIdMetaFields = (client, id, ApiV2ItemsIdMetaFields, params =
|
|
|
1079
1079
|
});
|
|
1080
1080
|
};
|
|
1081
1081
|
/**
|
|
1082
|
-
* @description Get the meta fields for a(n)
|
|
1082
|
+
* @description Get the meta fields for a(n) Item
|
|
1083
1083
|
*
|
|
1084
1084
|
* @tags items
|
|
1085
1085
|
* @name GetApiV2ItemsIdMetaFields
|
|
@@ -1269,7 +1269,7 @@ const getApiV2ItemsCount = (client, query, params = {}) => {
|
|
|
1269
1269
|
* @summary Perform an action on an item
|
|
1270
1270
|
* @request PUT:/api/v2/items/{id}/call/{action}
|
|
1271
1271
|
*/
|
|
1272
|
-
const putApiV2ItemsIdCallAction = (client,
|
|
1272
|
+
const putApiV2ItemsIdCallAction = (client, action, id, ApiV2ItemsIdCall, params = {}) => {
|
|
1273
1273
|
return client.request({
|
|
1274
1274
|
path: `/api/v2/items/${id}/call/${action}`,
|
|
1275
1275
|
method: "PUT",
|
|
@@ -1511,7 +1511,7 @@ const getApiV21ItemsOriginatorOriginatorId = (client, originatorId, params = {})
|
|
|
1511
1511
|
});
|
|
1512
1512
|
};
|
|
1513
1513
|
/**
|
|
1514
|
-
* @description Update
|
|
1514
|
+
* @description Update Item meta fields
|
|
1515
1515
|
*
|
|
1516
1516
|
* @tags items
|
|
1517
1517
|
* @name PutApiV21ItemsIdMetaFields
|
|
@@ -1528,7 +1528,7 @@ const putApiV21ItemsIdMetaFields = (client, id, ApiV21ItemsIdMetaFields, params
|
|
|
1528
1528
|
});
|
|
1529
1529
|
};
|
|
1530
1530
|
/**
|
|
1531
|
-
* @description Get the meta fields for a(n)
|
|
1531
|
+
* @description Get the meta fields for a(n) Item
|
|
1532
1532
|
*
|
|
1533
1533
|
* @tags items
|
|
1534
1534
|
* @name GetApiV21ItemsIdMetaFields
|
|
@@ -1717,7 +1717,7 @@ const getApiV21ItemsCount = (client, query, params = {}) => {
|
|
|
1717
1717
|
* @summary Perform an action on an item
|
|
1718
1718
|
* @request PUT:/api/v2.1/items/{id}/call/{action}
|
|
1719
1719
|
*/
|
|
1720
|
-
const putApiV21ItemsIdCallAction = (client,
|
|
1720
|
+
const putApiV21ItemsIdCallAction = (client, action, id, ApiV21ItemsIdCall, params = {}) => {
|
|
1721
1721
|
return client.request({
|
|
1722
1722
|
path: `/api/v2.1/items/${id}/call/${action}`,
|
|
1723
1723
|
method: "PUT",
|
|
@@ -2423,7 +2423,7 @@ const getApiV2OrderItemsId = (client, { id, ...query }, params = {}) => {
|
|
|
2423
2423
|
});
|
|
2424
2424
|
};
|
|
2425
2425
|
/**
|
|
2426
|
-
* @description Update
|
|
2426
|
+
* @description Update OrderItem meta fields
|
|
2427
2427
|
*
|
|
2428
2428
|
* @tags order_items
|
|
2429
2429
|
* @name PutApiV2OrderItemsIdMetaFields
|
|
@@ -2440,7 +2440,7 @@ const putApiV2OrderItemsIdMetaFields = (client, id, ApiV2OrderItemsIdMetaFields,
|
|
|
2440
2440
|
});
|
|
2441
2441
|
};
|
|
2442
2442
|
/**
|
|
2443
|
-
* @description Get the meta fields for a(n)
|
|
2443
|
+
* @description Get the meta fields for a(n) OrderItem
|
|
2444
2444
|
*
|
|
2445
2445
|
* @tags order_items
|
|
2446
2446
|
* @name GetApiV2OrderItemsIdMetaFields
|
|
@@ -2481,7 +2481,7 @@ const putApiV2OrderItemsIdSeparate = (client, id, params = {}) => {
|
|
|
2481
2481
|
* @summary Perform an action on an order_item
|
|
2482
2482
|
* @request PUT:/api/v2/order_items/{id}/call/{action}
|
|
2483
2483
|
*/
|
|
2484
|
-
const putApiV2OrderItemsIdCallAction = (client,
|
|
2484
|
+
const putApiV2OrderItemsIdCallAction = (client, action, id, ApiV2OrderItemsIdCall, params = {}) => {
|
|
2485
2485
|
return client.request({
|
|
2486
2486
|
path: `/api/v2/order_items/${id}/call/${action}`,
|
|
2487
2487
|
method: "PUT",
|
|
@@ -2572,7 +2572,7 @@ const getApiV21OrderItemsId = (client, { id, ...query }, params = {}) => {
|
|
|
2572
2572
|
});
|
|
2573
2573
|
};
|
|
2574
2574
|
/**
|
|
2575
|
-
* @description Update
|
|
2575
|
+
* @description Update OrderItem meta fields
|
|
2576
2576
|
*
|
|
2577
2577
|
* @tags order_items
|
|
2578
2578
|
* @name PutApiV21OrderItemsIdMetaFields
|
|
@@ -2589,7 +2589,7 @@ const putApiV21OrderItemsIdMetaFields = (client, id, ApiV21OrderItemsIdMetaField
|
|
|
2589
2589
|
});
|
|
2590
2590
|
};
|
|
2591
2591
|
/**
|
|
2592
|
-
* @description Get the meta fields for a(n)
|
|
2592
|
+
* @description Get the meta fields for a(n) OrderItem
|
|
2593
2593
|
*
|
|
2594
2594
|
* @tags order_items
|
|
2595
2595
|
* @name GetApiV21OrderItemsIdMetaFields
|
|
@@ -2630,7 +2630,7 @@ const putApiV21OrderItemsIdSeparate = (client, id, params = {}) => {
|
|
|
2630
2630
|
* @summary Perform an action on an order_item
|
|
2631
2631
|
* @request PUT:/api/v2.1/order_items/{id}/call/{action}
|
|
2632
2632
|
*/
|
|
2633
|
-
const putApiV21OrderItemsIdCallAction = (client,
|
|
2633
|
+
const putApiV21OrderItemsIdCallAction = (client, action, id, ApiV21OrderItemsIdCall, params = {}) => {
|
|
2634
2634
|
return client.request({
|
|
2635
2635
|
path: `/api/v2.1/order_items/${id}/call/${action}`,
|
|
2636
2636
|
method: "PUT",
|
|
@@ -2846,7 +2846,7 @@ const getApiV2OrdersId = (client, id, params = {}) => {
|
|
|
2846
2846
|
});
|
|
2847
2847
|
};
|
|
2848
2848
|
/**
|
|
2849
|
-
* @description Update
|
|
2849
|
+
* @description Update Order meta fields
|
|
2850
2850
|
*
|
|
2851
2851
|
* @tags orders
|
|
2852
2852
|
* @name PutApiV2OrdersIdMetaFields
|
|
@@ -2863,7 +2863,7 @@ const putApiV2OrdersIdMetaFields = (client, id, ApiV2OrdersIdMetaFields, params
|
|
|
2863
2863
|
});
|
|
2864
2864
|
};
|
|
2865
2865
|
/**
|
|
2866
|
-
* @description Get the meta fields for a(n)
|
|
2866
|
+
* @description Get the meta fields for a(n) Order
|
|
2867
2867
|
*
|
|
2868
2868
|
* @tags orders
|
|
2869
2869
|
* @name GetApiV2OrdersIdMetaFields
|
|
@@ -2974,7 +2974,7 @@ const getApiV2OrdersIdOrderItemsCount = (client, { id, ...query }, params = {})
|
|
|
2974
2974
|
* @summary Perform an action on an order
|
|
2975
2975
|
* @request PUT:/api/v2/orders/{id}/call/{action}
|
|
2976
2976
|
*/
|
|
2977
|
-
const putApiV2OrdersIdCallAction = (client,
|
|
2977
|
+
const putApiV2OrdersIdCallAction = (client, action, id, ApiV2OrdersIdCall, params = {}) => {
|
|
2978
2978
|
return client.request({
|
|
2979
2979
|
path: `/api/v2/orders/${id}/call/${action}`,
|
|
2980
2980
|
method: "PUT",
|
|
@@ -3186,7 +3186,7 @@ const getApiV21OrdersId = (client, id, params = {}) => {
|
|
|
3186
3186
|
});
|
|
3187
3187
|
};
|
|
3188
3188
|
/**
|
|
3189
|
-
* @description Update
|
|
3189
|
+
* @description Update Order meta fields
|
|
3190
3190
|
*
|
|
3191
3191
|
* @tags orders
|
|
3192
3192
|
* @name PutApiV21OrdersIdMetaFields
|
|
@@ -3203,7 +3203,7 @@ const putApiV21OrdersIdMetaFields = (client, id, ApiV21OrdersIdMetaFields, param
|
|
|
3203
3203
|
});
|
|
3204
3204
|
};
|
|
3205
3205
|
/**
|
|
3206
|
-
* @description Get the meta fields for a(n)
|
|
3206
|
+
* @description Get the meta fields for a(n) Order
|
|
3207
3207
|
*
|
|
3208
3208
|
* @tags orders
|
|
3209
3209
|
* @name GetApiV21OrdersIdMetaFields
|
|
@@ -3314,7 +3314,7 @@ const getApiV21OrdersIdOrderItemsCount = (client, { id, ...query }, params = {})
|
|
|
3314
3314
|
* @summary Perform an action on an order
|
|
3315
3315
|
* @request PUT:/api/v2.1/orders/{id}/call/{action}
|
|
3316
3316
|
*/
|
|
3317
|
-
const putApiV21OrdersIdCallAction = (client,
|
|
3317
|
+
const putApiV21OrdersIdCallAction = (client, action, id, ApiV21OrdersIdCall, params = {}) => {
|
|
3318
3318
|
return client.request({
|
|
3319
3319
|
path: `/api/v2.1/orders/${id}/call/${action}`,
|
|
3320
3320
|
method: "PUT",
|
|
@@ -3592,7 +3592,7 @@ const getApiV2ShipnoticeItemsId = (client, id, params = {}) => {
|
|
|
3592
3592
|
});
|
|
3593
3593
|
};
|
|
3594
3594
|
/**
|
|
3595
|
-
* @description Update
|
|
3595
|
+
* @description Update ShipnoticeItem meta fields
|
|
3596
3596
|
*
|
|
3597
3597
|
* @tags shipnotice_items
|
|
3598
3598
|
* @name PutApiV2ShipnoticeItemsIdMetaFields
|
|
@@ -3609,7 +3609,7 @@ const putApiV2ShipnoticeItemsIdMetaFields = (client, id, ApiV2ShipnoticeItemsIdM
|
|
|
3609
3609
|
});
|
|
3610
3610
|
};
|
|
3611
3611
|
/**
|
|
3612
|
-
* @description Get the meta fields for a(n)
|
|
3612
|
+
* @description Get the meta fields for a(n) ShipnoticeItem
|
|
3613
3613
|
*
|
|
3614
3614
|
* @tags shipnotice_items
|
|
3615
3615
|
* @name GetApiV2ShipnoticeItemsIdMetaFields
|
|
@@ -3708,7 +3708,7 @@ const getApiV21ShipnoticeItemsId = (client, id, params = {}) => {
|
|
|
3708
3708
|
});
|
|
3709
3709
|
};
|
|
3710
3710
|
/**
|
|
3711
|
-
* @description Update
|
|
3711
|
+
* @description Update ShipnoticeItem meta fields
|
|
3712
3712
|
*
|
|
3713
3713
|
* @tags shipnotice_items
|
|
3714
3714
|
* @name PutApiV21ShipnoticeItemsIdMetaFields
|
|
@@ -3725,7 +3725,7 @@ const putApiV21ShipnoticeItemsIdMetaFields = (client, id, ApiV21ShipnoticeItemsI
|
|
|
3725
3725
|
});
|
|
3726
3726
|
};
|
|
3727
3727
|
/**
|
|
3728
|
-
* @description Get the meta fields for a(n)
|
|
3728
|
+
* @description Get the meta fields for a(n) ShipnoticeItem
|
|
3729
3729
|
*
|
|
3730
3730
|
* @tags shipnotice_items
|
|
3731
3731
|
* @name GetApiV21ShipnoticeItemsIdMetaFields
|
|
@@ -3980,7 +3980,7 @@ const getApiV2ShipnoticesIdShipnoticeItems = (client, { id, ...query }, params =
|
|
|
3980
3980
|
});
|
|
3981
3981
|
};
|
|
3982
3982
|
/**
|
|
3983
|
-
* @description Update
|
|
3983
|
+
* @description Update Shipnotice meta fields
|
|
3984
3984
|
*
|
|
3985
3985
|
* @tags shipnotices
|
|
3986
3986
|
* @name PutApiV2ShipnoticesIdMetaFields
|
|
@@ -3997,7 +3997,7 @@ const putApiV2ShipnoticesIdMetaFields = (client, id, ApiV2ShipnoticesIdMetaField
|
|
|
3997
3997
|
});
|
|
3998
3998
|
};
|
|
3999
3999
|
/**
|
|
4000
|
-
* @description Get the meta fields for a(n)
|
|
4000
|
+
* @description Get the meta fields for a(n) Shipnotice
|
|
4001
4001
|
*
|
|
4002
4002
|
* @tags shipnotices
|
|
4003
4003
|
* @name GetApiV2ShipnoticesIdMetaFields
|
|
@@ -4265,7 +4265,7 @@ const getApiV21ShipnoticesIdShipnoticeItems = (client, { id, ...query }, params
|
|
|
4265
4265
|
});
|
|
4266
4266
|
};
|
|
4267
4267
|
/**
|
|
4268
|
-
* @description Update
|
|
4268
|
+
* @description Update Shipnotice meta fields
|
|
4269
4269
|
*
|
|
4270
4270
|
* @tags shipnotices
|
|
4271
4271
|
* @name PutApiV21ShipnoticesIdMetaFields
|
|
@@ -4282,7 +4282,7 @@ const putApiV21ShipnoticesIdMetaFields = (client, id, ApiV21ShipnoticesIdMetaFie
|
|
|
4282
4282
|
});
|
|
4283
4283
|
};
|
|
4284
4284
|
/**
|
|
4285
|
-
* @description Get the meta fields for a(n)
|
|
4285
|
+
* @description Get the meta fields for a(n) Shipnotice
|
|
4286
4286
|
*
|
|
4287
4287
|
* @tags shipnotices
|
|
4288
4288
|
* @name GetApiV21ShipnoticesIdMetaFields
|
|
@@ -5412,7 +5412,7 @@ var PostApiV21OrdersStatus;
|
|
|
5412
5412
|
PostApiV21OrdersStatus[PostApiV21OrdersStatus["Value30"] = 30] = "Value30";
|
|
5413
5413
|
PostApiV21OrdersStatus[PostApiV21OrdersStatus["Value35"] = 35] = "Value35";
|
|
5414
5414
|
})(PostApiV21OrdersStatus || (PostApiV21OrdersStatus = {}));
|
|
5415
|
-
/** hazmat class
|
|
5415
|
+
/** hazmat class */
|
|
5416
5416
|
var PostApiV2ItemsHazmatType;
|
|
5417
5417
|
(function (PostApiV2ItemsHazmatType) {
|
|
5418
5418
|
PostApiV2ItemsHazmatType["ORMD"] = "ORMD";
|
|
@@ -6429,7 +6429,7 @@ var PutApiV21SimulateOrdersOrderIdProcessingStatus;
|
|
|
6429
6429
|
PutApiV21SimulateOrdersOrderIdProcessingStatus["Packed"] = "packed";
|
|
6430
6430
|
PutApiV21SimulateOrdersOrderIdProcessingStatus["Shipped"] = "shipped";
|
|
6431
6431
|
})(PutApiV21SimulateOrdersOrderIdProcessingStatus || (PutApiV21SimulateOrdersOrderIdProcessingStatus = {}));
|
|
6432
|
-
/** hazmat class
|
|
6432
|
+
/** hazmat class */
|
|
6433
6433
|
var PutApiV2ItemsHazmatType;
|
|
6434
6434
|
(function (PutApiV2ItemsHazmatType) {
|
|
6435
6435
|
PutApiV2ItemsHazmatType["ORMD"] = "ORMD";
|
|
@@ -6689,7 +6689,7 @@ var PutApiV2ItemsOriginCountry;
|
|
|
6689
6689
|
PutApiV2ItemsOriginCountry["ZM"] = "ZM";
|
|
6690
6690
|
PutApiV2ItemsOriginCountry["ZW"] = "ZW";
|
|
6691
6691
|
})(PutApiV2ItemsOriginCountry || (PutApiV2ItemsOriginCountry = {}));
|
|
6692
|
-
/** hazmat class
|
|
6692
|
+
/** hazmat class */
|
|
6693
6693
|
var PutApiV2ItemsOriginatorHazmatType;
|
|
6694
6694
|
(function (PutApiV2ItemsOriginatorHazmatType) {
|
|
6695
6695
|
PutApiV2ItemsOriginatorHazmatType["ORMD"] = "ORMD";
|