@whiplashmerch/whiplash-api-client 3.0.12 → 3.0.13
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 +215 -181
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/LoadScacs.d.ts +110 -0
- package/dist/generated/data-contracts.d.ts +168 -102
- package/dist/generated/index.d.ts +1 -1
- package/dist/mock-data/index.d.ts +1 -1
- package/dist/mock-data/v2_1/load-scac/created.d.ts +1 -0
- package/generated/LoadScacs.ts +100 -0
- package/generated/data-contracts.ts +128 -80
- package/generated/index.ts +1 -1
- package/package.json +1 -1
- package/dist/generated/CarrierAliases.d.ts +0 -92
- package/generated/CarrierAliases.ts +0 -62
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ApiV21EntitiesCount, ApiV21EntitiesLoadScac, ApiV21EntitiesPostResponse, ApiV2EntitiesCount, ApiV2EntitiesLoadScac, GetApiV21LoadScacsCountParams, GetApiV21LoadScacsParams, GetApiV2LoadScacsCountParams, GetApiV2LoadScacsParams, PostApiV21LoadScacsRequest, PostApiV2LoadScacsRequest, PutApiV21LoadScacsIdRequest, PutApiV2LoadScacsIdRequest } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
/**
|
|
4
|
+
* @description Get a list of load scacs
|
|
5
|
+
*
|
|
6
|
+
* @tags load_scacs
|
|
7
|
+
* @name GetApiV2LoadScacs
|
|
8
|
+
* @summary List all load scacs
|
|
9
|
+
* @request GET:/api/v2/load_scacs
|
|
10
|
+
*/
|
|
11
|
+
export declare const getApiV2LoadScacs: (client: HttpClient, query: GetApiV2LoadScacsParams, params?: RequestParams) => Promise<ApiV2EntitiesLoadScac[]>;
|
|
12
|
+
/**
|
|
13
|
+
* @description Create a load_scac
|
|
14
|
+
*
|
|
15
|
+
* @tags load_scacs
|
|
16
|
+
* @name PostApiV2LoadScacs
|
|
17
|
+
* @summary Create a load_scac
|
|
18
|
+
* @request POST:/api/v2/load_scacs
|
|
19
|
+
*/
|
|
20
|
+
export declare const postApiV2LoadScacs: (client: HttpClient, data: PostApiV2LoadScacsRequest, params?: RequestParams) => Promise<ApiV2EntitiesLoadScac>;
|
|
21
|
+
/**
|
|
22
|
+
* @description Returns count of load scacs
|
|
23
|
+
*
|
|
24
|
+
* @tags load_scacs
|
|
25
|
+
* @name GetApiV2LoadScacsCount
|
|
26
|
+
* @summary Count load scacs
|
|
27
|
+
* @request GET:/api/v2/load_scacs/count
|
|
28
|
+
*/
|
|
29
|
+
export declare const getApiV2LoadScacsCount: (client: HttpClient, query: GetApiV2LoadScacsCountParams, params?: RequestParams) => Promise<ApiV2EntitiesCount>;
|
|
30
|
+
/**
|
|
31
|
+
* @description Get a load_scac
|
|
32
|
+
*
|
|
33
|
+
* @tags load_scacs
|
|
34
|
+
* @name GetApiV2LoadScacsId
|
|
35
|
+
* @summary Retrieve a load_scac
|
|
36
|
+
* @request GET:/api/v2/load_scacs/{id}
|
|
37
|
+
*/
|
|
38
|
+
export declare const getApiV2LoadScacsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesLoadScac>;
|
|
39
|
+
/**
|
|
40
|
+
* @description Update a load_scac
|
|
41
|
+
*
|
|
42
|
+
* @tags load_scacs
|
|
43
|
+
* @name PutApiV2LoadScacsId
|
|
44
|
+
* @summary Update a load_scac
|
|
45
|
+
* @request PUT:/api/v2/load_scacs/{id}
|
|
46
|
+
*/
|
|
47
|
+
export declare const putApiV2LoadScacsId: (client: HttpClient, id: number, data: PutApiV2LoadScacsIdRequest, params?: RequestParams) => Promise<ApiV2EntitiesLoadScac>;
|
|
48
|
+
/**
|
|
49
|
+
* @description Destroy a load_scac
|
|
50
|
+
*
|
|
51
|
+
* @tags load_scacs
|
|
52
|
+
* @name DeleteApiV2LoadScacsId
|
|
53
|
+
* @summary Destroy a load_scac
|
|
54
|
+
* @request DELETE:/api/v2/load_scacs/{id}
|
|
55
|
+
*/
|
|
56
|
+
export declare const deleteApiV2LoadScacsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* @description Get a list of load scacs
|
|
59
|
+
*
|
|
60
|
+
* @tags load_scacs
|
|
61
|
+
* @name GetApiV21LoadScacs
|
|
62
|
+
* @summary List all load scacs
|
|
63
|
+
* @request GET:/api/v2.1/load_scacs
|
|
64
|
+
*/
|
|
65
|
+
export declare const getApiV21LoadScacs: (client: HttpClient, query: GetApiV21LoadScacsParams, params?: RequestParams) => Promise<ApiV21EntitiesLoadScac[]>;
|
|
66
|
+
/**
|
|
67
|
+
* @description Create a load_scac
|
|
68
|
+
*
|
|
69
|
+
* @tags load_scacs
|
|
70
|
+
* @name PostApiV21LoadScacs
|
|
71
|
+
* @summary Create a load_scac
|
|
72
|
+
* @request POST:/api/v2.1/load_scacs
|
|
73
|
+
*/
|
|
74
|
+
export declare const postApiV21LoadScacs: (client: HttpClient, data: PostApiV21LoadScacsRequest, params?: RequestParams) => Promise<ApiV21EntitiesPostResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* @description Returns count of load scacs
|
|
77
|
+
*
|
|
78
|
+
* @tags load_scacs
|
|
79
|
+
* @name GetApiV21LoadScacsCount
|
|
80
|
+
* @summary Count load scacs
|
|
81
|
+
* @request GET:/api/v2.1/load_scacs/count
|
|
82
|
+
*/
|
|
83
|
+
export declare const getApiV21LoadScacsCount: (client: HttpClient, query: GetApiV21LoadScacsCountParams, params?: RequestParams) => Promise<ApiV21EntitiesCount>;
|
|
84
|
+
/**
|
|
85
|
+
* @description Get a load_scac
|
|
86
|
+
*
|
|
87
|
+
* @tags load_scacs
|
|
88
|
+
* @name GetApiV21LoadScacsId
|
|
89
|
+
* @summary Retrieve a load_scac
|
|
90
|
+
* @request GET:/api/v2.1/load_scacs/{id}
|
|
91
|
+
*/
|
|
92
|
+
export declare const getApiV21LoadScacsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesLoadScac>;
|
|
93
|
+
/**
|
|
94
|
+
* @description Update a load_scac
|
|
95
|
+
*
|
|
96
|
+
* @tags load_scacs
|
|
97
|
+
* @name PutApiV21LoadScacsId
|
|
98
|
+
* @summary Update a load_scac
|
|
99
|
+
* @request PUT:/api/v2.1/load_scacs/{id}
|
|
100
|
+
*/
|
|
101
|
+
export declare const putApiV21LoadScacsId: (client: HttpClient, id: number, data: PutApiV21LoadScacsIdRequest, params?: RequestParams) => Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* @description Destroy a load_scac
|
|
104
|
+
*
|
|
105
|
+
* @tags load_scacs
|
|
106
|
+
* @name DeleteApiV21LoadScacsId
|
|
107
|
+
* @summary Destroy a load_scac
|
|
108
|
+
* @request DELETE:/api/v2.1/load_scacs/{id}
|
|
109
|
+
*/
|
|
110
|
+
export declare const deleteApiV21LoadScacsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
|
|
@@ -432,7 +432,6 @@ export interface ApiV2EntitiesBundleItem {
|
|
|
432
432
|
}
|
|
433
433
|
/** V2 */
|
|
434
434
|
export interface ApiV2EntitiesCarrier {
|
|
435
|
-
carrier_aliases?: ApiV2EntitiesCarrierAlias;
|
|
436
435
|
/** Does this carrier support electronic trade documents? */
|
|
437
436
|
etd_enabled?: boolean | null;
|
|
438
437
|
/**
|
|
@@ -526,22 +525,6 @@ export interface ApiV2EntitiesCarrierAccount {
|
|
|
526
525
|
warehouses?: ApiV2EntitiesWarehouse;
|
|
527
526
|
}
|
|
528
527
|
/** V2 */
|
|
529
|
-
export interface ApiV2EntitiesCarrierAlias {
|
|
530
|
-
/** carrier alias slug */
|
|
531
|
-
context?: string | null;
|
|
532
|
-
/**
|
|
533
|
-
* carrier alias object id
|
|
534
|
-
* @format int32
|
|
535
|
-
*/
|
|
536
|
-
id?: number;
|
|
537
|
-
/** carrier alias object name */
|
|
538
|
-
name?: string | null;
|
|
539
|
-
/** carrier owner name */
|
|
540
|
-
owner_name?: string | null;
|
|
541
|
-
/** carrier SCAC code */
|
|
542
|
-
scac?: string | null;
|
|
543
|
-
}
|
|
544
|
-
/** V2 */
|
|
545
528
|
export interface ApiV2EntitiesChromalist {
|
|
546
529
|
/** white-, black-, etc-list */
|
|
547
530
|
chroma?: ApiV2EntitiesChromalistChroma;
|
|
@@ -2306,6 +2289,27 @@ export interface ApiV2EntitiesLoad {
|
|
|
2306
2289
|
wholesale_vendor?: string | null;
|
|
2307
2290
|
}
|
|
2308
2291
|
/** V2 */
|
|
2292
|
+
export interface ApiV2EntitiesLoadScac {
|
|
2293
|
+
/** the carrier associated with this load scac */
|
|
2294
|
+
carrier?: string | null;
|
|
2295
|
+
/** the ccid for the load scac */
|
|
2296
|
+
ccid?: string | null;
|
|
2297
|
+
/**
|
|
2298
|
+
* the id of the customer associated with this load scac
|
|
2299
|
+
* @format int32
|
|
2300
|
+
*/
|
|
2301
|
+
customer_id?: number | null;
|
|
2302
|
+
/** customer name of the load scac */
|
|
2303
|
+
customer_name?: string | null;
|
|
2304
|
+
/**
|
|
2305
|
+
* load scac object id
|
|
2306
|
+
* @format int32
|
|
2307
|
+
*/
|
|
2308
|
+
id?: number;
|
|
2309
|
+
/** SCAC code */
|
|
2310
|
+
scac?: string | null;
|
|
2311
|
+
}
|
|
2312
|
+
/** V2 */
|
|
2309
2313
|
export interface ApiV2EntitiesLocation {
|
|
2310
2314
|
/** is this location active? */
|
|
2311
2315
|
active?: boolean | null;
|
|
@@ -6322,7 +6326,6 @@ export interface ApiV21EntitiesBundleItem {
|
|
|
6322
6326
|
}
|
|
6323
6327
|
/** V3 */
|
|
6324
6328
|
export interface ApiV21EntitiesCarrier {
|
|
6325
|
-
carrier_aliases?: ApiV21EntitiesCarrierAlias;
|
|
6326
6329
|
/** Does this carrier support electronic trade documents? */
|
|
6327
6330
|
etd_enabled?: boolean | null;
|
|
6328
6331
|
/**
|
|
@@ -6416,22 +6419,6 @@ export interface ApiV21EntitiesCarrierAccount {
|
|
|
6416
6419
|
warehouse_ids?: number[];
|
|
6417
6420
|
}
|
|
6418
6421
|
/** V3 */
|
|
6419
|
-
export interface ApiV21EntitiesCarrierAlias {
|
|
6420
|
-
/** carrier alias slug */
|
|
6421
|
-
context?: string | null;
|
|
6422
|
-
/**
|
|
6423
|
-
* carrier alias object id
|
|
6424
|
-
* @format int32
|
|
6425
|
-
*/
|
|
6426
|
-
id?: number;
|
|
6427
|
-
/** carrier alias object name */
|
|
6428
|
-
name?: string | null;
|
|
6429
|
-
/** carrier owner name */
|
|
6430
|
-
owner_name?: string | null;
|
|
6431
|
-
/** carrier SCAC code */
|
|
6432
|
-
scac?: string | null;
|
|
6433
|
-
}
|
|
6434
|
-
/** V3 */
|
|
6435
6422
|
export interface ApiV21EntitiesChromalist {
|
|
6436
6423
|
/** white-, black-, etc-list */
|
|
6437
6424
|
chroma?: ApiV21EntitiesChromalistChroma;
|
|
@@ -7584,6 +7571,27 @@ export interface ApiV21EntitiesLoad {
|
|
|
7584
7571
|
wholesale_vendor?: string | null;
|
|
7585
7572
|
}
|
|
7586
7573
|
/** V3 */
|
|
7574
|
+
export interface ApiV21EntitiesLoadScac {
|
|
7575
|
+
/** the carrier associated with this load scac */
|
|
7576
|
+
carrier?: string | null;
|
|
7577
|
+
/** the ccid for the load scac */
|
|
7578
|
+
ccid?: string | null;
|
|
7579
|
+
/**
|
|
7580
|
+
* the id of the customer associated with this load scac
|
|
7581
|
+
* @format int32
|
|
7582
|
+
*/
|
|
7583
|
+
customer_id?: number | null;
|
|
7584
|
+
/** customer name of the load scac */
|
|
7585
|
+
customer_name?: string | null;
|
|
7586
|
+
/**
|
|
7587
|
+
* load scac object id
|
|
7588
|
+
* @format int32
|
|
7589
|
+
*/
|
|
7590
|
+
id?: number;
|
|
7591
|
+
/** SCAC code */
|
|
7592
|
+
scac?: string | null;
|
|
7593
|
+
}
|
|
7594
|
+
/** V3 */
|
|
7587
7595
|
export interface ApiV21EntitiesLocation {
|
|
7588
7596
|
/** is this location active? */
|
|
7589
7597
|
active?: boolean | null;
|
|
@@ -11228,28 +11236,6 @@ export interface GetApiV21CarrierAccountsProviderAccountsParams {
|
|
|
11228
11236
|
/** Include prev/next links in response headers */
|
|
11229
11237
|
page_links?: boolean;
|
|
11230
11238
|
}
|
|
11231
|
-
export interface GetApiV21CarrierAliasesParams {
|
|
11232
|
-
/** JSON search string like {"attribute_eq": "Term"} */
|
|
11233
|
-
search?: string;
|
|
11234
|
-
/** Comma-separated list of fields to include in the response */
|
|
11235
|
-
fields?: string;
|
|
11236
|
-
/** A list of sort options (ex: name asc,created_at desc) */
|
|
11237
|
-
sort?: string;
|
|
11238
|
-
/**
|
|
11239
|
-
* Page of results to fetch
|
|
11240
|
-
* @format int32
|
|
11241
|
-
*/
|
|
11242
|
-
page?: number;
|
|
11243
|
-
/**
|
|
11244
|
-
* Number of results to return per page
|
|
11245
|
-
* @format int32
|
|
11246
|
-
*/
|
|
11247
|
-
per_page?: number;
|
|
11248
|
-
/** Include total count of results */
|
|
11249
|
-
page_total?: boolean;
|
|
11250
|
-
/** Include prev/next links in response headers */
|
|
11251
|
-
page_links?: boolean;
|
|
11252
|
-
}
|
|
11253
11239
|
export interface GetApiV21CarriersParams {
|
|
11254
11240
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
11255
11241
|
search?: string;
|
|
@@ -11945,6 +11931,46 @@ export interface GetApiV21ItemsParams {
|
|
|
11945
11931
|
/** Include prev/next links in response headers */
|
|
11946
11932
|
page_links?: boolean;
|
|
11947
11933
|
}
|
|
11934
|
+
export interface GetApiV21LoadScacsCountParams {
|
|
11935
|
+
/** JSON search string like {"attribute_eq": "Term"} */
|
|
11936
|
+
search?: string;
|
|
11937
|
+
/**
|
|
11938
|
+
* Page of results to fetch
|
|
11939
|
+
* @format int32
|
|
11940
|
+
*/
|
|
11941
|
+
page?: number;
|
|
11942
|
+
/**
|
|
11943
|
+
* Number of results to return per page
|
|
11944
|
+
* @format int32
|
|
11945
|
+
*/
|
|
11946
|
+
per_page?: number;
|
|
11947
|
+
/** Include total count of results */
|
|
11948
|
+
page_total?: boolean;
|
|
11949
|
+
/** Include prev/next links in response headers */
|
|
11950
|
+
page_links?: boolean;
|
|
11951
|
+
}
|
|
11952
|
+
export interface GetApiV21LoadScacsParams {
|
|
11953
|
+
/** JSON search string like {"attribute_eq": "Term"} */
|
|
11954
|
+
search?: string;
|
|
11955
|
+
/** Comma-separated list of fields to include in the response */
|
|
11956
|
+
fields?: string;
|
|
11957
|
+
/** A list of sort options (ex: name asc,created_at desc) */
|
|
11958
|
+
sort?: string;
|
|
11959
|
+
/**
|
|
11960
|
+
* Page of results to fetch
|
|
11961
|
+
* @format int32
|
|
11962
|
+
*/
|
|
11963
|
+
page?: number;
|
|
11964
|
+
/**
|
|
11965
|
+
* Number of results to return per page
|
|
11966
|
+
* @format int32
|
|
11967
|
+
*/
|
|
11968
|
+
per_page?: number;
|
|
11969
|
+
/** Include total count of results */
|
|
11970
|
+
page_total?: boolean;
|
|
11971
|
+
/** Include prev/next links in response headers */
|
|
11972
|
+
page_links?: boolean;
|
|
11973
|
+
}
|
|
11948
11974
|
export interface GetApiV21LoadsCountParams {
|
|
11949
11975
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
11950
11976
|
search?: string;
|
|
@@ -13959,28 +13985,6 @@ export interface GetApiV2CarrierAccountsProviderAccountsParams {
|
|
|
13959
13985
|
/** Include prev/next links in response headers */
|
|
13960
13986
|
page_links?: boolean;
|
|
13961
13987
|
}
|
|
13962
|
-
export interface GetApiV2CarrierAliasesParams {
|
|
13963
|
-
/** JSON search string like {"attribute_eq": "Term"} */
|
|
13964
|
-
search?: string;
|
|
13965
|
-
/** Comma-separated list of fields to include in the response */
|
|
13966
|
-
fields?: string;
|
|
13967
|
-
/** A list of sort options (ex: name asc,created_at desc) */
|
|
13968
|
-
sort?: string;
|
|
13969
|
-
/**
|
|
13970
|
-
* Page of results to fetch
|
|
13971
|
-
* @format int32
|
|
13972
|
-
*/
|
|
13973
|
-
page?: number;
|
|
13974
|
-
/**
|
|
13975
|
-
* Number of results to return per page
|
|
13976
|
-
* @format int32
|
|
13977
|
-
*/
|
|
13978
|
-
per_page?: number;
|
|
13979
|
-
/** Include total count of results */
|
|
13980
|
-
page_total?: boolean;
|
|
13981
|
-
/** Include prev/next links in response headers */
|
|
13982
|
-
page_links?: boolean;
|
|
13983
|
-
}
|
|
13984
13988
|
export interface GetApiV2CarriersParams {
|
|
13985
13989
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
13986
13990
|
search?: string;
|
|
@@ -14676,6 +14680,46 @@ export interface GetApiV2ItemsParams {
|
|
|
14676
14680
|
/** Include prev/next links in response headers */
|
|
14677
14681
|
page_links?: boolean;
|
|
14678
14682
|
}
|
|
14683
|
+
export interface GetApiV2LoadScacsCountParams {
|
|
14684
|
+
/** JSON search string like {"attribute_eq": "Term"} */
|
|
14685
|
+
search?: string;
|
|
14686
|
+
/**
|
|
14687
|
+
* Page of results to fetch
|
|
14688
|
+
* @format int32
|
|
14689
|
+
*/
|
|
14690
|
+
page?: number;
|
|
14691
|
+
/**
|
|
14692
|
+
* Number of results to return per page
|
|
14693
|
+
* @format int32
|
|
14694
|
+
*/
|
|
14695
|
+
per_page?: number;
|
|
14696
|
+
/** Include total count of results */
|
|
14697
|
+
page_total?: boolean;
|
|
14698
|
+
/** Include prev/next links in response headers */
|
|
14699
|
+
page_links?: boolean;
|
|
14700
|
+
}
|
|
14701
|
+
export interface GetApiV2LoadScacsParams {
|
|
14702
|
+
/** JSON search string like {"attribute_eq": "Term"} */
|
|
14703
|
+
search?: string;
|
|
14704
|
+
/** Comma-separated list of fields to include in the response */
|
|
14705
|
+
fields?: string;
|
|
14706
|
+
/** A list of sort options (ex: name asc,created_at desc) */
|
|
14707
|
+
sort?: string;
|
|
14708
|
+
/**
|
|
14709
|
+
* Page of results to fetch
|
|
14710
|
+
* @format int32
|
|
14711
|
+
*/
|
|
14712
|
+
page?: number;
|
|
14713
|
+
/**
|
|
14714
|
+
* Number of results to return per page
|
|
14715
|
+
* @format int32
|
|
14716
|
+
*/
|
|
14717
|
+
per_page?: number;
|
|
14718
|
+
/** Include total count of results */
|
|
14719
|
+
page_total?: boolean;
|
|
14720
|
+
/** Include prev/next links in response headers */
|
|
14721
|
+
page_links?: boolean;
|
|
14722
|
+
}
|
|
14679
14723
|
export interface GetApiV2LoadsCountParams {
|
|
14680
14724
|
/** JSON search string like {"attribute_eq": "Term"} */
|
|
14681
14725
|
search?: string;
|
|
@@ -16789,12 +16833,6 @@ export interface PostApiV21CarrierAccountsRequest {
|
|
|
16789
16833
|
/** Array of warehouse_ids associated with this carrier account */
|
|
16790
16834
|
warehouse_ids?: string[];
|
|
16791
16835
|
}
|
|
16792
|
-
export interface PostApiV21CarrierAliasesRequest {
|
|
16793
|
-
/** TBD */
|
|
16794
|
-
context?: string;
|
|
16795
|
-
/** carrier alias object name */
|
|
16796
|
-
name?: string;
|
|
16797
|
-
}
|
|
16798
16836
|
export interface PostApiV21CarriersRequest {
|
|
16799
16837
|
/** Does this carrier support electronic trade documents? */
|
|
16800
16838
|
etd_enabled?: boolean;
|
|
@@ -17787,6 +17825,21 @@ export interface PostApiV21ItemsRequest {
|
|
|
17787
17825
|
*/
|
|
17788
17826
|
width?: number;
|
|
17789
17827
|
}
|
|
17828
|
+
export interface PostApiV21LoadScacsRequest {
|
|
17829
|
+
/** the carrier associated with this load scac */
|
|
17830
|
+
carrier?: string;
|
|
17831
|
+
/** the ccid for the load scac */
|
|
17832
|
+
ccid?: string;
|
|
17833
|
+
/**
|
|
17834
|
+
* the id of the customer associated with this load scac
|
|
17835
|
+
* @format int32
|
|
17836
|
+
*/
|
|
17837
|
+
customer_id?: number;
|
|
17838
|
+
/** customer name of the load scac */
|
|
17839
|
+
customer_name?: string;
|
|
17840
|
+
/** SCAC code */
|
|
17841
|
+
scac?: string;
|
|
17842
|
+
}
|
|
17790
17843
|
export interface PostApiV21LoadsRequest {
|
|
17791
17844
|
/** True by default, whether to cascade load bol routing field values to child bols */
|
|
17792
17845
|
cascade_routing?: boolean;
|
|
@@ -20473,12 +20526,6 @@ export interface PostApiV2CarrierAccountsRequest {
|
|
|
20473
20526
|
/** Array of warehouse_ids associated with this carrier account */
|
|
20474
20527
|
warehouse_ids?: string[];
|
|
20475
20528
|
}
|
|
20476
|
-
export interface PostApiV2CarrierAliasesRequest {
|
|
20477
|
-
/** TBD */
|
|
20478
|
-
context?: string;
|
|
20479
|
-
/** carrier alias object name */
|
|
20480
|
-
name?: string;
|
|
20481
|
-
}
|
|
20482
20529
|
export interface PostApiV2CarriersRequest {
|
|
20483
20530
|
/** Does this carrier support electronic trade documents? */
|
|
20484
20531
|
etd_enabled?: boolean;
|
|
@@ -21471,6 +21518,21 @@ export interface PostApiV2ItemsRequest {
|
|
|
21471
21518
|
*/
|
|
21472
21519
|
width?: number;
|
|
21473
21520
|
}
|
|
21521
|
+
export interface PostApiV2LoadScacsRequest {
|
|
21522
|
+
/** the carrier associated with this load scac */
|
|
21523
|
+
carrier?: string;
|
|
21524
|
+
/** the ccid for the load scac */
|
|
21525
|
+
ccid?: string;
|
|
21526
|
+
/**
|
|
21527
|
+
* the id of the customer associated with this load scac
|
|
21528
|
+
* @format int32
|
|
21529
|
+
*/
|
|
21530
|
+
customer_id?: number;
|
|
21531
|
+
/** customer name of the load scac */
|
|
21532
|
+
customer_name?: string;
|
|
21533
|
+
/** SCAC code */
|
|
21534
|
+
scac?: string;
|
|
21535
|
+
}
|
|
21474
21536
|
export interface PostApiV2LoadsRequest {
|
|
21475
21537
|
/** True by default, whether to cascade load bol routing field values to child bols */
|
|
21476
21538
|
cascade_routing?: boolean;
|
|
@@ -24104,12 +24166,6 @@ export interface PutApiV21CarrierAccountsIdRequest {
|
|
|
24104
24166
|
/** Array of warehouse_ids associated with this carrier account */
|
|
24105
24167
|
warehouse_ids?: string[];
|
|
24106
24168
|
}
|
|
24107
|
-
export interface PutApiV21CarrierAliasesIdRequest {
|
|
24108
|
-
/** carrier alias slug */
|
|
24109
|
-
context?: string;
|
|
24110
|
-
/** carrier alias object name */
|
|
24111
|
-
name?: string;
|
|
24112
|
-
}
|
|
24113
24169
|
export interface PutApiV21CarriersIdRequest {
|
|
24114
24170
|
/** Does this carrier support electronic trade documents? */
|
|
24115
24171
|
etd_enabled?: boolean;
|
|
@@ -24934,6 +24990,14 @@ export interface PutApiV21ItemsIdRequest {
|
|
|
24934
24990
|
*/
|
|
24935
24991
|
width?: number;
|
|
24936
24992
|
}
|
|
24993
|
+
export interface PutApiV21LoadScacsIdRequest {
|
|
24994
|
+
/** the carrier associated with this load scac */
|
|
24995
|
+
carrier?: string;
|
|
24996
|
+
/** the ccid for the load scac */
|
|
24997
|
+
ccid?: string;
|
|
24998
|
+
/** SCAC code */
|
|
24999
|
+
scac?: string;
|
|
25000
|
+
}
|
|
24937
25001
|
export interface PutApiV21LoadsIdCallActionRequest {
|
|
24938
25002
|
action?: string;
|
|
24939
25003
|
/** Method params */
|
|
@@ -27118,12 +27182,6 @@ export interface PutApiV2CarrierAccountsIdRequest {
|
|
|
27118
27182
|
/** Array of warehouse_ids associated with this carrier account */
|
|
27119
27183
|
warehouse_ids?: string[];
|
|
27120
27184
|
}
|
|
27121
|
-
export interface PutApiV2CarrierAliasesIdRequest {
|
|
27122
|
-
/** carrier alias slug */
|
|
27123
|
-
context?: string;
|
|
27124
|
-
/** carrier alias object name */
|
|
27125
|
-
name?: string;
|
|
27126
|
-
}
|
|
27127
27185
|
export interface PutApiV2CarriersIdRequest {
|
|
27128
27186
|
/** Does this carrier support electronic trade documents? */
|
|
27129
27187
|
etd_enabled?: boolean;
|
|
@@ -27948,6 +28006,14 @@ export interface PutApiV2ItemsIdRequest {
|
|
|
27948
28006
|
*/
|
|
27949
28007
|
width?: number;
|
|
27950
28008
|
}
|
|
28009
|
+
export interface PutApiV2LoadScacsIdRequest {
|
|
28010
|
+
/** the carrier associated with this load scac */
|
|
28011
|
+
carrier?: string;
|
|
28012
|
+
/** the ccid for the load scac */
|
|
28013
|
+
ccid?: string;
|
|
28014
|
+
/** SCAC code */
|
|
28015
|
+
scac?: string;
|
|
28016
|
+
}
|
|
27951
28017
|
export interface PutApiV2LoadsIdCallActionRequest {
|
|
27952
28018
|
action?: string;
|
|
27953
28019
|
/** Method params */
|
|
@@ -7,7 +7,6 @@ export * from './Broadcasts';
|
|
|
7
7
|
export * from './BundleItems';
|
|
8
8
|
export * from './Cache';
|
|
9
9
|
export * from './CarrierAccounts';
|
|
10
|
-
export * from './CarrierAliases';
|
|
11
10
|
export * from './Carriers';
|
|
12
11
|
export * from './Chaos';
|
|
13
12
|
export * from './Chromalists';
|
|
@@ -23,6 +22,7 @@ export * from './Incidents';
|
|
|
23
22
|
export * from './InvoiceItems';
|
|
24
23
|
export * from './Invoices';
|
|
25
24
|
export * from './Items';
|
|
25
|
+
export * from './LoadScacs';
|
|
26
26
|
export * from './Loads';
|
|
27
27
|
export * from './Locales';
|
|
28
28
|
export * from './LocationAdjustments';
|
|
@@ -26,7 +26,6 @@ export * from './v2_1/address/created';
|
|
|
26
26
|
export * from './v2_1/broadcast/created';
|
|
27
27
|
export * from './v2_1/bundle-item/created';
|
|
28
28
|
export * from './v2_1/carrier-account/created';
|
|
29
|
-
export * from './v2_1/carrier-alias/created';
|
|
30
29
|
export * from './v2_1/carrier/created';
|
|
31
30
|
export * from './v2_1/chromalist/created';
|
|
32
31
|
export * from './v2_1/consumer-return/all';
|
|
@@ -41,6 +40,7 @@ export * from './v2_1/item/merch';
|
|
|
41
40
|
export * from './v2_1/item/packaging';
|
|
42
41
|
export * from './v2_1/item/bundle';
|
|
43
42
|
export * from './v2_1/item/created';
|
|
43
|
+
export * from './v2_1/load-scac/created';
|
|
44
44
|
export * from './v2_1/load/open-no-bol';
|
|
45
45
|
export * from './v2_1/load/created';
|
|
46
46
|
export * from './v2_1/order-batch/in-load';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ApiV21LoadScacCreatedExample = "{\"id\":123}";
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/*
|
|
4
|
+
* ---------------------------------------------------------------
|
|
5
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
6
|
+
* ## ##
|
|
7
|
+
* ## AUTHOR: acacode ##
|
|
8
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
9
|
+
* ---------------------------------------------------------------
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
ApiSharedEntitiesApiError,
|
|
14
|
+
ApiV21EntitiesCount,
|
|
15
|
+
ApiV21EntitiesLoadScac,
|
|
16
|
+
ApiV2EntitiesCount,
|
|
17
|
+
ApiV2EntitiesLoadScac,
|
|
18
|
+
GetApiV21LoadScacsCountParams,
|
|
19
|
+
GetApiV21LoadScacsParams,
|
|
20
|
+
GetApiV2LoadScacsCountParams,
|
|
21
|
+
GetApiV2LoadScacsParams,
|
|
22
|
+
} from "./data-contracts";
|
|
23
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @description Get a list of load scacs
|
|
27
|
+
*
|
|
28
|
+
* @tags load_scacs
|
|
29
|
+
* @name GetApiV2LoadScacs
|
|
30
|
+
* @summary List all load scacs
|
|
31
|
+
* @request GET:/api/v2/load_scacs
|
|
32
|
+
*/
|
|
33
|
+
export const getApiV2LoadScacs = (client: HttpClient, query: GetApiV2LoadScacsParams, params: RequestParams = {}) => {
|
|
34
|
+
return client.request<ApiV2EntitiesLoadScac[], ApiSharedEntitiesApiError>({
|
|
35
|
+
path: `/api/v2/load_scacs`,
|
|
36
|
+
method: "GET",
|
|
37
|
+
query: query,
|
|
38
|
+
format: "json",
|
|
39
|
+
...params,
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @description Returns count of load scacs
|
|
44
|
+
*
|
|
45
|
+
* @tags load_scacs
|
|
46
|
+
* @name GetApiV2LoadScacsCount
|
|
47
|
+
* @summary Count load scacs
|
|
48
|
+
* @request GET:/api/v2/load_scacs/count
|
|
49
|
+
*/
|
|
50
|
+
export const getApiV2LoadScacsCount = (
|
|
51
|
+
client: HttpClient,
|
|
52
|
+
query: GetApiV2LoadScacsCountParams,
|
|
53
|
+
params: RequestParams = {},
|
|
54
|
+
) => {
|
|
55
|
+
return client.request<ApiV2EntitiesCount, ApiSharedEntitiesApiError>({
|
|
56
|
+
path: `/api/v2/load_scacs/count`,
|
|
57
|
+
method: "GET",
|
|
58
|
+
query: query,
|
|
59
|
+
format: "json",
|
|
60
|
+
...params,
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @description Get a list of load scacs
|
|
65
|
+
*
|
|
66
|
+
* @tags load_scacs
|
|
67
|
+
* @name GetApiV21LoadScacs
|
|
68
|
+
* @summary List all load scacs
|
|
69
|
+
* @request GET:/api/v2.1/load_scacs
|
|
70
|
+
*/
|
|
71
|
+
export const getApiV21LoadScacs = (client: HttpClient, query: GetApiV21LoadScacsParams, params: RequestParams = {}) => {
|
|
72
|
+
return client.request<ApiV21EntitiesLoadScac[], ApiSharedEntitiesApiError>({
|
|
73
|
+
path: `/api/v2.1/load_scacs`,
|
|
74
|
+
method: "GET",
|
|
75
|
+
query: query,
|
|
76
|
+
format: "json",
|
|
77
|
+
...params,
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* @description Returns count of load scacs
|
|
82
|
+
*
|
|
83
|
+
* @tags load_scacs
|
|
84
|
+
* @name GetApiV21LoadScacsCount
|
|
85
|
+
* @summary Count load scacs
|
|
86
|
+
* @request GET:/api/v2.1/load_scacs/count
|
|
87
|
+
*/
|
|
88
|
+
export const getApiV21LoadScacsCount = (
|
|
89
|
+
client: HttpClient,
|
|
90
|
+
query: GetApiV21LoadScacsCountParams,
|
|
91
|
+
params: RequestParams = {},
|
|
92
|
+
) => {
|
|
93
|
+
return client.request<ApiV21EntitiesCount, ApiSharedEntitiesApiError>({
|
|
94
|
+
path: `/api/v2.1/load_scacs/count`,
|
|
95
|
+
method: "GET",
|
|
96
|
+
query: query,
|
|
97
|
+
format: "json",
|
|
98
|
+
...params,
|
|
99
|
+
});
|
|
100
|
+
};
|