@whiplashmerch/whiplash-api-client 2.0.17 → 2.0.18
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 +1 -35
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/Items.d.ts +1 -19
- package/dist/generated/data-contracts.d.ts +0 -10
- package/generated/Items.ts +0 -44
- package/generated/data-contracts.ts +0 -12
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiV21EntitiesIncident, ApiV21EntitiesItem, ApiV21EntitiesLocation, ApiV21EntitiesPostResponse, ApiV21EntitiesShipnoticeItem, ApiV2EntitiesAudits, ApiV2EntitiesBundleItem, ApiV2EntitiesCount, ApiV2EntitiesIncident, ApiV2EntitiesItem, ApiV2EntitiesItemLocation, ApiV2EntitiesItemWarehouseQuantity, ApiV2EntitiesLocation, ApiV2EntitiesMessage, ApiV2EntitiesMetaFields, ApiV2EntitiesOriginator, ApiV2EntitiesResult, ApiV2EntitiesScancode, ApiV2EntitiesScancodeAlias, ApiV2EntitiesShipnoticeItem, ApiV2EntitiesSidekiqBatch, ApiV2EntitiesTransaction, GetApiV21ItemsAggregateParams, GetApiV21ItemsCountParams, GetApiV21ItemsIdCallTraitParams, GetApiV21ItemsIdInboundParams, GetApiV21ItemsIdIncidentsCountParams, GetApiV21ItemsIdIncidentsParams, GetApiV21ItemsIdLocationsCountParams, GetApiV21ItemsIdLocationsParams, GetApiV21ItemsIdLocationsWithTransferCountParams, GetApiV21ItemsIdMessagesCountParams, GetApiV21ItemsIdMessagesParams, GetApiV21ItemsIdMetaFieldsParams,
|
|
1
|
+
import { ApiV21EntitiesIncident, ApiV21EntitiesItem, ApiV21EntitiesLocation, ApiV21EntitiesPostResponse, ApiV21EntitiesShipnoticeItem, ApiV2EntitiesAudits, ApiV2EntitiesBundleItem, ApiV2EntitiesCount, ApiV2EntitiesIncident, ApiV2EntitiesItem, ApiV2EntitiesItemLocation, ApiV2EntitiesItemWarehouseQuantity, ApiV2EntitiesLocation, ApiV2EntitiesMessage, ApiV2EntitiesMetaFields, ApiV2EntitiesOriginator, ApiV2EntitiesResult, ApiV2EntitiesScancode, ApiV2EntitiesScancodeAlias, ApiV2EntitiesShipnoticeItem, ApiV2EntitiesSidekiqBatch, ApiV2EntitiesTransaction, GetApiV21ItemsAggregateParams, GetApiV21ItemsCountParams, GetApiV21ItemsIdCallTraitParams, GetApiV21ItemsIdInboundParams, GetApiV21ItemsIdIncidentsCountParams, GetApiV21ItemsIdIncidentsParams, GetApiV21ItemsIdLocationsCountParams, GetApiV21ItemsIdLocationsParams, GetApiV21ItemsIdLocationsWithTransferCountParams, GetApiV21ItemsIdMessagesCountParams, GetApiV21ItemsIdMessagesParams, GetApiV21ItemsIdMetaFieldsParams, GetApiV21ItemsIdOriginatorsParams, GetApiV21ItemsIdScancodeAliasesParams, GetApiV21ItemsIdScancodesCountParams, GetApiV21ItemsIdScancodesParams, GetApiV21ItemsIdShipnoticeItemsCountParams, GetApiV21ItemsIdShipnoticeItemsParams, GetApiV21ItemsIdTraitsParams, GetApiV21ItemsIdTransactionsCountParams, GetApiV21ItemsIdTransactionsParams, GetApiV21ItemsParams, GetApiV2ItemsAggregateParams, GetApiV2ItemsCountParams, GetApiV2ItemsIdCallTraitParams, GetApiV2ItemsIdInboundParams, GetApiV2ItemsIdIncidentsCountParams, GetApiV2ItemsIdIncidentsParams, GetApiV2ItemsIdLocationsCountParams, GetApiV2ItemsIdLocationsParams, GetApiV2ItemsIdLocationsWithTransferCountParams, GetApiV2ItemsIdMessagesCountParams, GetApiV2ItemsIdMessagesParams, GetApiV2ItemsIdMetaFieldsParams, GetApiV2ItemsIdOriginatorsParams, GetApiV2ItemsIdScancodeAliasesParams, 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
|
|
@@ -279,15 +279,6 @@ export declare const getApiV2ItemsIdOriginators: (client: HttpClient, { id, ...q
|
|
|
279
279
|
* @request POST:/api/v2/items/{id}/originators
|
|
280
280
|
*/
|
|
281
281
|
export declare const postApiV2ItemsIdOriginators: (client: HttpClient, id: number, data: PostApiV2ItemsIdOriginatorsRequest, params?: RequestParams) => Promise<ApiV2EntitiesOriginator>;
|
|
282
|
-
/**
|
|
283
|
-
* @description Get the count of originators for a(n) Item
|
|
284
|
-
*
|
|
285
|
-
* @tags items
|
|
286
|
-
* @name GetApiV2ItemsIdOriginatorsCount
|
|
287
|
-
* @summary Count originators
|
|
288
|
-
* @request GET:/api/v2/items/{id}/originators/count
|
|
289
|
-
*/
|
|
290
|
-
export declare const getApiV2ItemsIdOriginatorsCount: (client: HttpClient, { id, ...query }: GetApiV2ItemsIdOriginatorsCountParams, params?: RequestParams) => Promise<ApiV2EntitiesCount>;
|
|
291
282
|
/**
|
|
292
283
|
* @description show scancodes associated with this item
|
|
293
284
|
*
|
|
@@ -657,15 +648,6 @@ export declare const getApiV21ItemsIdOriginators: (client: HttpClient, { id, ...
|
|
|
657
648
|
* @request POST:/api/v2.1/items/{id}/originators
|
|
658
649
|
*/
|
|
659
650
|
export declare const postApiV21ItemsIdOriginators: (client: HttpClient, id: number, data: PostApiV21ItemsIdOriginatorsRequest, params?: RequestParams) => Promise<ApiV21EntitiesPostResponse>;
|
|
660
|
-
/**
|
|
661
|
-
* @description Get the count of originators for a(n) Item
|
|
662
|
-
*
|
|
663
|
-
* @tags items
|
|
664
|
-
* @name GetApiV21ItemsIdOriginatorsCount
|
|
665
|
-
* @summary Count originators
|
|
666
|
-
* @request GET:/api/v2.1/items/{id}/originators/count
|
|
667
|
-
*/
|
|
668
|
-
export declare const getApiV21ItemsIdOriginatorsCount: (client: HttpClient, { id, ...query }: GetApiV21ItemsIdOriginatorsCountParams, params?: RequestParams) => Promise<ApiV2EntitiesCount>;
|
|
669
651
|
/**
|
|
670
652
|
* @description show scancodes associated with this item
|
|
671
653
|
*
|
|
@@ -9741,11 +9741,6 @@ export interface GetApiV21ItemsIdMetaFieldsParams {
|
|
|
9741
9741
|
associations?: string[];
|
|
9742
9742
|
id: number;
|
|
9743
9743
|
}
|
|
9744
|
-
export interface GetApiV21ItemsIdOriginatorsCountParams {
|
|
9745
|
-
/** JSON search string like {"attribute_eq": "Term"} */
|
|
9746
|
-
search?: string;
|
|
9747
|
-
id: number;
|
|
9748
|
-
}
|
|
9749
9744
|
export interface GetApiV21ItemsIdOriginatorsParams {
|
|
9750
9745
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
9751
9746
|
search?: string;
|
|
@@ -12437,11 +12432,6 @@ export interface GetApiV2ItemsIdMetaFieldsParams {
|
|
|
12437
12432
|
associations?: string[];
|
|
12438
12433
|
id: number;
|
|
12439
12434
|
}
|
|
12440
|
-
export interface GetApiV2ItemsIdOriginatorsCountParams {
|
|
12441
|
-
/** JSON search string like {"attribute_eq": "Term"} */
|
|
12442
|
-
search?: string;
|
|
12443
|
-
id: number;
|
|
12444
|
-
}
|
|
12445
12435
|
export interface GetApiV2ItemsIdOriginatorsParams {
|
|
12446
12436
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
12447
12437
|
search?: string;
|
package/generated/Items.ts
CHANGED
|
@@ -28,7 +28,6 @@ import {
|
|
|
28
28
|
GetApiV21ItemsCountParams,
|
|
29
29
|
GetApiV21ItemsIdLocationsWithTransferCountParams,
|
|
30
30
|
GetApiV21ItemsIdMetaFieldsParams,
|
|
31
|
-
GetApiV21ItemsIdOriginatorsCountParams,
|
|
32
31
|
GetApiV21ItemsIdOriginatorsParams,
|
|
33
32
|
GetApiV21ItemsIdScancodesParams,
|
|
34
33
|
GetApiV21ItemsIdShipnoticeItemsCountParams,
|
|
@@ -39,7 +38,6 @@ import {
|
|
|
39
38
|
GetApiV2ItemsCountParams,
|
|
40
39
|
GetApiV2ItemsIdLocationsWithTransferCountParams,
|
|
41
40
|
GetApiV2ItemsIdMetaFieldsParams,
|
|
42
|
-
GetApiV2ItemsIdOriginatorsCountParams,
|
|
43
41
|
GetApiV2ItemsIdOriginatorsParams,
|
|
44
42
|
GetApiV2ItemsIdScancodesParams,
|
|
45
43
|
GetApiV2ItemsIdShipnoticeItemsCountParams,
|
|
@@ -345,27 +343,6 @@ export const getApiV2ItemsIdOriginators = (
|
|
|
345
343
|
...params,
|
|
346
344
|
});
|
|
347
345
|
};
|
|
348
|
-
/**
|
|
349
|
-
* @description Get the count of originators for a(n) Item
|
|
350
|
-
*
|
|
351
|
-
* @tags items
|
|
352
|
-
* @name GetApiV2ItemsIdOriginatorsCount
|
|
353
|
-
* @summary Count originators
|
|
354
|
-
* @request GET:/api/v2/items/{id}/originators/count
|
|
355
|
-
*/
|
|
356
|
-
export const getApiV2ItemsIdOriginatorsCount = (
|
|
357
|
-
client: HttpClient,
|
|
358
|
-
{ id, ...query }: GetApiV2ItemsIdOriginatorsCountParams,
|
|
359
|
-
params: RequestParams = {},
|
|
360
|
-
) => {
|
|
361
|
-
return client.request<ApiV2EntitiesCount, ApiV2EntitiesApiError>({
|
|
362
|
-
path: `/api/v2/items/${id}/originators/count`,
|
|
363
|
-
method: "GET",
|
|
364
|
-
query: query,
|
|
365
|
-
format: "json",
|
|
366
|
-
...params,
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
346
|
/**
|
|
370
347
|
* @description show scancodes associated with this item
|
|
371
348
|
*
|
|
@@ -790,27 +767,6 @@ export const getApiV21ItemsIdOriginators = (
|
|
|
790
767
|
...params,
|
|
791
768
|
});
|
|
792
769
|
};
|
|
793
|
-
/**
|
|
794
|
-
* @description Get the count of originators for a(n) Item
|
|
795
|
-
*
|
|
796
|
-
* @tags items
|
|
797
|
-
* @name GetApiV21ItemsIdOriginatorsCount
|
|
798
|
-
* @summary Count originators
|
|
799
|
-
* @request GET:/api/v2.1/items/{id}/originators/count
|
|
800
|
-
*/
|
|
801
|
-
export const getApiV21ItemsIdOriginatorsCount = (
|
|
802
|
-
client: HttpClient,
|
|
803
|
-
{ id, ...query }: GetApiV21ItemsIdOriginatorsCountParams,
|
|
804
|
-
params: RequestParams = {},
|
|
805
|
-
) => {
|
|
806
|
-
return client.request<ApiV2EntitiesCount, ApiV2EntitiesApiError>({
|
|
807
|
-
path: `/api/v2.1/items/${id}/originators/count`,
|
|
808
|
-
method: "GET",
|
|
809
|
-
query: query,
|
|
810
|
-
format: "json",
|
|
811
|
-
...params,
|
|
812
|
-
});
|
|
813
|
-
};
|
|
814
770
|
/**
|
|
815
771
|
* @description show scancodes associated with this item
|
|
816
772
|
*
|
|
@@ -4686,12 +4686,6 @@ export interface GetApiV21ItemsIdMetaFieldsParams {
|
|
|
4686
4686
|
id: number;
|
|
4687
4687
|
}
|
|
4688
4688
|
|
|
4689
|
-
export interface GetApiV21ItemsIdOriginatorsCountParams {
|
|
4690
|
-
/** JSON search string like {"attribute_eq": "Term"} */
|
|
4691
|
-
search?: string;
|
|
4692
|
-
id: number;
|
|
4693
|
-
}
|
|
4694
|
-
|
|
4695
4689
|
export interface GetApiV21ItemsIdOriginatorsParams {
|
|
4696
4690
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
4697
4691
|
search?: string;
|
|
@@ -5305,12 +5299,6 @@ export interface GetApiV2ItemsIdMetaFieldsParams {
|
|
|
5305
5299
|
id: number;
|
|
5306
5300
|
}
|
|
5307
5301
|
|
|
5308
|
-
export interface GetApiV2ItemsIdOriginatorsCountParams {
|
|
5309
|
-
/** JSON search string like {"attribute_eq": "Term"} */
|
|
5310
|
-
search?: string;
|
|
5311
|
-
id: number;
|
|
5312
|
-
}
|
|
5313
|
-
|
|
5314
5302
|
export interface GetApiV2ItemsIdOriginatorsParams {
|
|
5315
5303
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
5316
5304
|
search?: string;
|