@whiplashmerch/whiplash-api-client 3.2.51 → 3.2.53
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesBundleItem, ApiV21EntitiesCount, ApiV21EntitiesIncident, ApiV21EntitiesItem, ApiV21EntitiesItemLocation, ApiV21EntitiesItemWarehouseQuantity, ApiV21EntitiesListValue, ApiV21EntitiesLocation, ApiV21EntitiesMessage, ApiV21EntitiesOriginator, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesScancode, ApiV21EntitiesShipnoticeItem, ApiV21EntitiesTransaction, ApiV2EntitiesBundleItem, ApiV2EntitiesCount, ApiV2EntitiesIncident, ApiV2EntitiesItem, ApiV2EntitiesItemLocation, ApiV2EntitiesItemWarehouseQuantity, ApiV2EntitiesListValue, ApiV2EntitiesLocation, ApiV2EntitiesMessage, ApiV2EntitiesOriginator, ApiV2EntitiesResult, ApiV2EntitiesScancode, ApiV2EntitiesShipnoticeItem, ApiV2EntitiesTransaction, GetApiV21ItemsAggregateParams, GetApiV21ItemsCountParams, GetApiV21ItemsIdCallTraitParams, GetApiV21ItemsIdInboundParams, GetApiV21ItemsIdIncidentsCountParams, GetApiV21ItemsIdIncidentsParams, GetApiV21ItemsIdLocationsCountParams, GetApiV21ItemsIdLocationsParams, GetApiV21ItemsIdLocationsWithTransferCountParams, GetApiV21ItemsIdMessagesCountParams, GetApiV21ItemsIdMessagesParams, GetApiV21ItemsIdMetaFieldsParams, GetApiV21ItemsIdOriginatorsCountParams, GetApiV21ItemsIdOriginatorsParams, GetApiV21ItemsIdScancodesCountParams, GetApiV21ItemsIdScancodesParams, GetApiV21ItemsIdShipnoticeItemsCountParams, GetApiV21ItemsIdShipnoticeItemsParams, GetApiV21ItemsIdTraitsParams, GetApiV21ItemsIdTransactionsCountParams, GetApiV21ItemsIdTransactionsParams, GetApiV21ItemsParams, GetApiV2ItemsAggregateParams, GetApiV2ItemsCountParams, GetApiV2ItemsIdCallTraitParams, GetApiV2ItemsIdInboundParams, GetApiV2ItemsIdIncidentsCountParams, GetApiV2ItemsIdIncidentsParams, GetApiV2ItemsIdLocationsCountParams, GetApiV2ItemsIdLocationsParams, GetApiV2ItemsIdLocationsWithTransferCountParams, GetApiV2ItemsIdMessagesCountParams, GetApiV2ItemsIdMessagesParams, GetApiV2ItemsIdMetaFieldsParams, GetApiV2ItemsIdOriginatorsCountParams, GetApiV2ItemsIdOriginatorsParams, GetApiV2ItemsIdScancodesCountParams, GetApiV2ItemsIdScancodesParams, GetApiV2ItemsIdShipnoticeItemsCountParams, GetApiV2ItemsIdShipnoticeItemsParams, GetApiV2ItemsIdTraitsParams, GetApiV2ItemsIdTransactionsCountParams, GetApiV2ItemsIdTransactionsParams, GetApiV2ItemsParams, PostApiV21ItemsIdBundleItemsRequest, PostApiV21ItemsIdIncidentsRequest, PostApiV21ItemsIdLocationsRequest, PostApiV21ItemsIdMessagesRequest, PostApiV21ItemsIdOriginatorsRequest, PostApiV21ItemsRequest, PostApiV2ItemsIdBundleItemsRequest, PostApiV2ItemsIdIncidentsRequest, PostApiV2ItemsIdLocationsRequest, PostApiV2ItemsIdMessagesRequest, PostApiV2ItemsIdOriginatorsRequest, PostApiV2ItemsRequest, PutApiV21ItemsIdCallActionRequest, PutApiV21ItemsIdCallAsyncActionRequest, PutApiV21ItemsIdMetaFieldsRequest, PutApiV21ItemsIdRequest, PutApiV2ItemsIdCallActionRequest, PutApiV2ItemsIdCallAsyncActionRequest, PutApiV2ItemsIdMetaFieldsRequest, PutApiV2ItemsIdRequest } from "./data-contracts";
|
|
1
|
+
import { ApiSharedEntitiesAudits, ApiSharedEntitiesMetaFields, ApiSharedEntitiesSidekiqBatch, ApiV21EntitiesBundleItem, ApiV21EntitiesCount, ApiV21EntitiesIncident, ApiV21EntitiesItem, ApiV21EntitiesItemLocation, ApiV21EntitiesItemWarehouseQuantity, ApiV21EntitiesListValue, ApiV21EntitiesLocation, ApiV21EntitiesMessage, ApiV21EntitiesOriginator, ApiV21EntitiesPostResponse, ApiV21EntitiesResult, ApiV21EntitiesScancode, ApiV21EntitiesShipnoticeItem, ApiV21EntitiesTransaction, ApiV2EntitiesBundleItem, ApiV2EntitiesCount, ApiV2EntitiesIncident, ApiV2EntitiesItem, ApiV2EntitiesItemLocation, ApiV2EntitiesItemWarehouseQuantity, ApiV2EntitiesListValue, ApiV2EntitiesLocation, ApiV2EntitiesMessage, ApiV2EntitiesOriginator, ApiV2EntitiesResult, ApiV2EntitiesScancode, ApiV2EntitiesScancodeHistory, ApiV2EntitiesShipnoticeItem, ApiV2EntitiesTransaction, GetApiV21ItemsAggregateParams, GetApiV21ItemsCountParams, GetApiV21ItemsIdCallTraitParams, GetApiV21ItemsIdInboundParams, GetApiV21ItemsIdIncidentsCountParams, GetApiV21ItemsIdIncidentsParams, GetApiV21ItemsIdLocationsCountParams, GetApiV21ItemsIdLocationsParams, GetApiV21ItemsIdLocationsWithTransferCountParams, GetApiV21ItemsIdMessagesCountParams, GetApiV21ItemsIdMessagesParams, GetApiV21ItemsIdMetaFieldsParams, GetApiV21ItemsIdOriginatorsCountParams, GetApiV21ItemsIdOriginatorsParams, GetApiV21ItemsIdScancodeHistoryParams, GetApiV21ItemsIdScancodesCountParams, GetApiV21ItemsIdScancodesParams, GetApiV21ItemsIdShipnoticeItemsCountParams, GetApiV21ItemsIdShipnoticeItemsParams, GetApiV21ItemsIdTraitsParams, GetApiV21ItemsIdTransactionsCountParams, GetApiV21ItemsIdTransactionsParams, GetApiV21ItemsParams, GetApiV2ItemsAggregateParams, GetApiV2ItemsCountParams, GetApiV2ItemsIdCallTraitParams, GetApiV2ItemsIdInboundParams, GetApiV2ItemsIdIncidentsCountParams, GetApiV2ItemsIdIncidentsParams, GetApiV2ItemsIdLocationsCountParams, GetApiV2ItemsIdLocationsParams, GetApiV2ItemsIdLocationsWithTransferCountParams, GetApiV2ItemsIdMessagesCountParams, GetApiV2ItemsIdMessagesParams, GetApiV2ItemsIdMetaFieldsParams, GetApiV2ItemsIdOriginatorsCountParams, GetApiV2ItemsIdOriginatorsParams, GetApiV2ItemsIdScancodeHistoryParams, GetApiV2ItemsIdScancodesCountParams, GetApiV2ItemsIdScancodesParams, GetApiV2ItemsIdShipnoticeItemsCountParams, GetApiV2ItemsIdShipnoticeItemsParams, GetApiV2ItemsIdTraitsParams, GetApiV2ItemsIdTransactionsCountParams, GetApiV2ItemsIdTransactionsParams, GetApiV2ItemsParams, PostApiV21ItemsIdBundleItemsRequest, PostApiV21ItemsIdIncidentsRequest, PostApiV21ItemsIdLocationsRequest, PostApiV21ItemsIdMessagesRequest, PostApiV21ItemsIdOriginatorsRequest, PostApiV21ItemsRequest, PostApiV2ItemsIdBundleItemsRequest, PostApiV2ItemsIdIncidentsRequest, PostApiV2ItemsIdLocationsRequest, PostApiV2ItemsIdMessagesRequest, PostApiV2ItemsIdOriginatorsRequest, PostApiV2ItemsRequest, PutApiV21ItemsIdCallActionRequest, PutApiV21ItemsIdCallAsyncActionRequest, PutApiV21ItemsIdMetaFieldsRequest, PutApiV21ItemsIdRequest, PutApiV2ItemsIdCallActionRequest, PutApiV2ItemsIdCallAsyncActionRequest, PutApiV2ItemsIdMetaFieldsRequest, PutApiV2ItemsIdRequest } from "./data-contracts";
|
|
2
2
|
import { HttpClient, RequestParams } from "./http-client";
|
|
3
3
|
/**
|
|
4
4
|
* @description Get a list of items
|
|
@@ -297,6 +297,15 @@ export declare const postApiV2ItemsIdOriginators: (client: HttpClient, id: numbe
|
|
|
297
297
|
* @request GET:/api/v2/items/{id}/originators/count
|
|
298
298
|
*/
|
|
299
299
|
export declare const getApiV2ItemsIdOriginatorsCount: (client: HttpClient, { id, ...query }: GetApiV2ItemsIdOriginatorsCountParams, params?: RequestParams) => Promise<ApiV2EntitiesCount>;
|
|
300
|
+
/**
|
|
301
|
+
* @description show scancode history associated with this item
|
|
302
|
+
*
|
|
303
|
+
* @tags items
|
|
304
|
+
* @name GetApiV2ItemsIdScancodeHistory
|
|
305
|
+
* @summary List all scancode history associated with this item
|
|
306
|
+
* @request GET:/api/v2/items/{id}/scancode_history
|
|
307
|
+
*/
|
|
308
|
+
export declare const getApiV2ItemsIdScancodeHistory: (client: HttpClient, { id, ...query }: GetApiV2ItemsIdScancodeHistoryParams, params?: RequestParams) => Promise<ApiV2EntitiesScancodeHistory>;
|
|
300
309
|
/**
|
|
301
310
|
* @description show scancodes associated with this item
|
|
302
311
|
*
|
|
@@ -675,6 +684,15 @@ export declare const postApiV21ItemsIdOriginators: (client: HttpClient, id: numb
|
|
|
675
684
|
* @request GET:/api/v2.1/items/{id}/originators/count
|
|
676
685
|
*/
|
|
677
686
|
export declare const getApiV21ItemsIdOriginatorsCount: (client: HttpClient, { id, ...query }: GetApiV21ItemsIdOriginatorsCountParams, params?: RequestParams) => Promise<ApiV21EntitiesCount>;
|
|
687
|
+
/**
|
|
688
|
+
* @description show scancode history associated with this item
|
|
689
|
+
*
|
|
690
|
+
* @tags items
|
|
691
|
+
* @name GetApiV21ItemsIdScancodeHistory
|
|
692
|
+
* @summary List all scancode history associated with this item
|
|
693
|
+
* @request GET:/api/v2.1/items/{id}/scancode_history
|
|
694
|
+
*/
|
|
695
|
+
export declare const getApiV21ItemsIdScancodeHistory: (client: HttpClient, { id, ...query }: GetApiV21ItemsIdScancodeHistoryParams, params?: RequestParams) => Promise<ApiV2EntitiesScancodeHistory>;
|
|
678
696
|
/**
|
|
679
697
|
* @description show scancodes associated with this item
|
|
680
698
|
*
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** Shared */
|
|
2
2
|
export interface ApiSharedEntitiesApiError {
|
|
3
|
-
/** error
|
|
3
|
+
/** top-level error class */
|
|
4
|
+
error?: string;
|
|
5
|
+
/** short code for error, used for error response logic */
|
|
6
|
+
error_code?: string;
|
|
7
|
+
/** readable error message */
|
|
4
8
|
message?: string;
|
|
5
9
|
}
|
|
6
10
|
/** Shared */
|
|
@@ -4647,6 +4651,25 @@ export interface ApiV2EntitiesScancode {
|
|
|
4647
4651
|
updated_at?: string;
|
|
4648
4652
|
}
|
|
4649
4653
|
/** V2 */
|
|
4654
|
+
export interface ApiV2EntitiesScancodeHistory {
|
|
4655
|
+
/** the kind of scancode change: created, added, removed, promoted */
|
|
4656
|
+
action?: string;
|
|
4657
|
+
/**
|
|
4658
|
+
* the audit id
|
|
4659
|
+
* @format int32
|
|
4660
|
+
*/
|
|
4661
|
+
id?: number;
|
|
4662
|
+
/** The scancode affected by this action */
|
|
4663
|
+
scancode?: string;
|
|
4664
|
+
/**
|
|
4665
|
+
* when the scancode change occurred
|
|
4666
|
+
* @format date-time
|
|
4667
|
+
*/
|
|
4668
|
+
updated_at?: string;
|
|
4669
|
+
/** the user who made the change, or "system" if none */
|
|
4670
|
+
user?: object;
|
|
4671
|
+
}
|
|
4672
|
+
/** V2 */
|
|
4650
4673
|
export interface ApiV2EntitiesSerialNumber {
|
|
4651
4674
|
/**
|
|
4652
4675
|
* if not null, the DateTime when the serial was deleted
|
|
@@ -11789,6 +11812,23 @@ export interface GetApiV21ItemsIdOriginatorsParams {
|
|
|
11789
11812
|
page_links?: boolean;
|
|
11790
11813
|
id: number;
|
|
11791
11814
|
}
|
|
11815
|
+
export interface GetApiV21ItemsIdScancodeHistoryParams {
|
|
11816
|
+
/**
|
|
11817
|
+
* Page of results to fetch
|
|
11818
|
+
* @format int32
|
|
11819
|
+
*/
|
|
11820
|
+
page?: number;
|
|
11821
|
+
/**
|
|
11822
|
+
* Number of results to return per page
|
|
11823
|
+
* @format int32
|
|
11824
|
+
*/
|
|
11825
|
+
per_page?: number;
|
|
11826
|
+
/** Include total count of results */
|
|
11827
|
+
page_total?: boolean;
|
|
11828
|
+
/** Include prev/next links in response headers */
|
|
11829
|
+
page_links?: boolean;
|
|
11830
|
+
id: number;
|
|
11831
|
+
}
|
|
11792
11832
|
export interface GetApiV21ItemsIdScancodesCountParams {
|
|
11793
11833
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
11794
11834
|
search?: string;
|
|
@@ -13765,7 +13805,7 @@ export interface GetApiV21UsersIdTraitsParams {
|
|
|
13765
13805
|
}
|
|
13766
13806
|
export interface GetApiV21UsersJwtParams {
|
|
13767
13807
|
/** Integration provider to generate JWT for. Currently only supports pandium */
|
|
13768
|
-
provider:
|
|
13808
|
+
provider: GetApiV21UsersJwtParamsProvider;
|
|
13769
13809
|
}
|
|
13770
13810
|
export interface GetApiV21UsersParams {
|
|
13771
13811
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
@@ -14703,6 +14743,23 @@ export interface GetApiV2ItemsIdOriginatorsParams {
|
|
|
14703
14743
|
page_links?: boolean;
|
|
14704
14744
|
id: number;
|
|
14705
14745
|
}
|
|
14746
|
+
export interface GetApiV2ItemsIdScancodeHistoryParams {
|
|
14747
|
+
/**
|
|
14748
|
+
* Page of results to fetch
|
|
14749
|
+
* @format int32
|
|
14750
|
+
*/
|
|
14751
|
+
page?: number;
|
|
14752
|
+
/**
|
|
14753
|
+
* Number of results to return per page
|
|
14754
|
+
* @format int32
|
|
14755
|
+
*/
|
|
14756
|
+
per_page?: number;
|
|
14757
|
+
/** Include total count of results */
|
|
14758
|
+
page_total?: boolean;
|
|
14759
|
+
/** Include prev/next links in response headers */
|
|
14760
|
+
page_links?: boolean;
|
|
14761
|
+
id: number;
|
|
14762
|
+
}
|
|
14706
14763
|
export interface GetApiV2ItemsIdScancodesCountParams {
|
|
14707
14764
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
14708
14765
|
search?: string;
|
|
@@ -16679,7 +16736,7 @@ export interface GetApiV2UsersIdTraitsParams {
|
|
|
16679
16736
|
}
|
|
16680
16737
|
export interface GetApiV2UsersJwtParams {
|
|
16681
16738
|
/** Integration provider to generate JWT for. Currently only supports pandium */
|
|
16682
|
-
provider:
|
|
16739
|
+
provider: GetApiV2UsersJwtParamsProvider;
|
|
16683
16740
|
}
|
|
16684
16741
|
export interface GetApiV2UsersParams {
|
|
16685
16742
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
@@ -31093,6 +31150,10 @@ export declare enum GetApiV21ItemsIdLocationsWithTransferCountParamsRole {
|
|
|
31093
31150
|
export declare enum GetApiV21SchemasLotsParamsSchema {
|
|
31094
31151
|
ItemDetail = "ItemDetail"
|
|
31095
31152
|
}
|
|
31153
|
+
/** Integration provider to generate JWT for. Currently only supports pandium */
|
|
31154
|
+
export declare enum GetApiV21UsersJwtParamsProvider {
|
|
31155
|
+
Pandium = "pandium"
|
|
31156
|
+
}
|
|
31096
31157
|
/** Type of inbound ship notice to fetch (Shipnotice or ConsumerReturn) */
|
|
31097
31158
|
export declare enum GetApiV2ItemsIdInboundParamsType {
|
|
31098
31159
|
Shipnotice = "Shipnotice",
|
|
@@ -31115,6 +31176,10 @@ export declare enum GetApiV2ItemsIdLocationsWithTransferCountParamsRole {
|
|
|
31115
31176
|
export declare enum GetApiV2SchemasLotsParamsSchema {
|
|
31116
31177
|
ItemDetail = "ItemDetail"
|
|
31117
31178
|
}
|
|
31179
|
+
/** Integration provider to generate JWT for. Currently only supports pandium */
|
|
31180
|
+
export declare enum GetApiV2UsersJwtParamsProvider {
|
|
31181
|
+
Pandium = "pandium"
|
|
31182
|
+
}
|
|
31118
31183
|
export declare enum PostApiV21BillOfLadingsIdAddressesRequestAddressType {
|
|
31119
31184
|
ShipTo = "ship_to",
|
|
31120
31185
|
ShipFrom = "ship_from",
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
|
|
12
12
|
/** Shared */
|
|
13
13
|
export interface ApiSharedEntitiesApiError {
|
|
14
|
-
/** error
|
|
14
|
+
/** top-level error class */
|
|
15
|
+
error?: string;
|
|
16
|
+
/** short code for error, used for error response logic */
|
|
17
|
+
error_code?: string;
|
|
18
|
+
/** readable error message */
|
|
15
19
|
message?: string;
|
|
16
20
|
}
|
|
17
21
|
|