@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.
@@ -69,23 +69,6 @@ export interface ApiV2EntitiesBundleItem {
69
69
  updated_at?: string | null;
70
70
  }
71
71
 
72
- /** V2 */
73
- export interface ApiV2EntitiesCarrierAlias {
74
- /** carrier alias slug */
75
- context?: string | null;
76
- /**
77
- * carrier alias object id
78
- * @format int32
79
- */
80
- id?: number;
81
- /** carrier alias object name */
82
- name?: string | null;
83
- /** carrier owner name */
84
- owner_name?: string | null;
85
- /** carrier SCAC code */
86
- scac?: string | null;
87
- }
88
-
89
72
  /** V2 */
90
73
  export interface ApiV2EntitiesConsumerReturn {
91
74
  /**
@@ -1190,6 +1173,28 @@ export interface ApiV2EntitiesItemWarehouseQuantity {
1190
1173
  warehouse_features?: ApiV2EntitiesWarehouseFeature[];
1191
1174
  }
1192
1175
 
1176
+ /** V2 */
1177
+ export interface ApiV2EntitiesLoadScac {
1178
+ /** the carrier associated with this load scac */
1179
+ carrier?: string | null;
1180
+ /** the ccid for the load scac */
1181
+ ccid?: string | null;
1182
+ /**
1183
+ * the id of the customer associated with this load scac
1184
+ * @format int32
1185
+ */
1186
+ customer_id?: number | null;
1187
+ /** customer name of the load scac */
1188
+ customer_name?: string | null;
1189
+ /**
1190
+ * load scac object id
1191
+ * @format int32
1192
+ */
1193
+ id?: number;
1194
+ /** SCAC code */
1195
+ scac?: string | null;
1196
+ }
1197
+
1193
1198
  /** V2 */
1194
1199
  export interface ApiV2EntitiesLot {
1195
1200
  /**
@@ -3141,23 +3146,6 @@ export interface ApiV21EntitiesBundleItem {
3141
3146
  updated_at?: string | null;
3142
3147
  }
3143
3148
 
3144
- /** V3 */
3145
- export interface ApiV21EntitiesCarrierAlias {
3146
- /** carrier alias slug */
3147
- context?: string | null;
3148
- /**
3149
- * carrier alias object id
3150
- * @format int32
3151
- */
3152
- id?: number;
3153
- /** carrier alias object name */
3154
- name?: string | null;
3155
- /** carrier owner name */
3156
- owner_name?: string | null;
3157
- /** carrier SCAC code */
3158
- scac?: string | null;
3159
- }
3160
-
3161
3149
  /** V3 */
3162
3150
  export interface ApiV21EntitiesConsumerReturn {
3163
3151
  /**
@@ -3867,6 +3855,28 @@ export interface ApiV21EntitiesItemWarehouseQuantity {
3867
3855
  sellable_quantity?: number;
3868
3856
  }
3869
3857
 
3858
+ /** V3 */
3859
+ export interface ApiV21EntitiesLoadScac {
3860
+ /** the carrier associated with this load scac */
3861
+ carrier?: string | null;
3862
+ /** the ccid for the load scac */
3863
+ ccid?: string | null;
3864
+ /**
3865
+ * the id of the customer associated with this load scac
3866
+ * @format int32
3867
+ */
3868
+ customer_id?: number | null;
3869
+ /** customer name of the load scac */
3870
+ customer_name?: string | null;
3871
+ /**
3872
+ * load scac object id
3873
+ * @format int32
3874
+ */
3875
+ id?: number;
3876
+ /** SCAC code */
3877
+ scac?: string | null;
3878
+ }
3879
+
3870
3880
  /** V3 */
3871
3881
  export interface ApiV21EntitiesNotificationEvent {
3872
3882
  /**
@@ -5117,29 +5127,6 @@ export interface ApiV21EntitiesWholesaleItem {
5117
5127
  vendor_part_number?: string | null;
5118
5128
  }
5119
5129
 
5120
- export interface GetApiV21CarrierAliasesParams {
5121
- /** JSON search string like {"attribute_eq": "Term"} */
5122
- search?: string;
5123
- /** Comma-separated list of fields to include in the response */
5124
- fields?: string;
5125
- /** A list of sort options (ex: name asc,created_at desc) */
5126
- sort?: string;
5127
- /**
5128
- * Page of results to fetch
5129
- * @format int32
5130
- */
5131
- page?: number;
5132
- /**
5133
- * Number of results to return per page
5134
- * @format int32
5135
- */
5136
- per_page?: number;
5137
- /** Include total count of results */
5138
- page_total?: boolean;
5139
- /** Include prev/next links in response headers */
5140
- page_links?: boolean;
5141
- }
5142
-
5143
5130
  export interface GetApiV21ConsumerReturnsCountParams {
5144
5131
  /** JSON search string like {"attribute_eq": "Term"} */
5145
5132
  search?: string;
@@ -5373,6 +5360,48 @@ export interface GetApiV21ItemsParams {
5373
5360
  page_links?: boolean;
5374
5361
  }
5375
5362
 
5363
+ export interface GetApiV21LoadScacsCountParams {
5364
+ /** JSON search string like {"attribute_eq": "Term"} */
5365
+ search?: string;
5366
+ /**
5367
+ * Page of results to fetch
5368
+ * @format int32
5369
+ */
5370
+ page?: number;
5371
+ /**
5372
+ * Number of results to return per page
5373
+ * @format int32
5374
+ */
5375
+ per_page?: number;
5376
+ /** Include total count of results */
5377
+ page_total?: boolean;
5378
+ /** Include prev/next links in response headers */
5379
+ page_links?: boolean;
5380
+ }
5381
+
5382
+ export interface GetApiV21LoadScacsParams {
5383
+ /** JSON search string like {"attribute_eq": "Term"} */
5384
+ search?: string;
5385
+ /** Comma-separated list of fields to include in the response */
5386
+ fields?: string;
5387
+ /** A list of sort options (ex: name asc,created_at desc) */
5388
+ sort?: string;
5389
+ /**
5390
+ * Page of results to fetch
5391
+ * @format int32
5392
+ */
5393
+ page?: number;
5394
+ /**
5395
+ * Number of results to return per page
5396
+ * @format int32
5397
+ */
5398
+ per_page?: number;
5399
+ /** Include total count of results */
5400
+ page_total?: boolean;
5401
+ /** Include prev/next links in response headers */
5402
+ page_links?: boolean;
5403
+ }
5404
+
5376
5405
  export interface GetApiV21NotificationEventsParams {
5377
5406
  /** JSON search string like {"attribute_eq": "Term"} */
5378
5407
  search?: string;
@@ -5736,29 +5765,6 @@ export interface GetApiV21WholesaleItemsParams {
5736
5765
  page_links?: boolean;
5737
5766
  }
5738
5767
 
5739
- export interface GetApiV2CarrierAliasesParams {
5740
- /** JSON search string like {"attribute_eq": "Term"} */
5741
- search?: string;
5742
- /** Comma-separated list of fields to include in the response */
5743
- fields?: string;
5744
- /** A list of sort options (ex: name asc,created_at desc) */
5745
- sort?: string;
5746
- /**
5747
- * Page of results to fetch
5748
- * @format int32
5749
- */
5750
- page?: number;
5751
- /**
5752
- * Number of results to return per page
5753
- * @format int32
5754
- */
5755
- per_page?: number;
5756
- /** Include total count of results */
5757
- page_total?: boolean;
5758
- /** Include prev/next links in response headers */
5759
- page_links?: boolean;
5760
- }
5761
-
5762
5768
  export interface GetApiV2ConsumerReturnsCountParams {
5763
5769
  /** JSON search string like {"attribute_eq": "Term"} */
5764
5770
  search?: string;
@@ -5992,6 +5998,48 @@ export interface GetApiV2ItemsParams {
5992
5998
  page_links?: boolean;
5993
5999
  }
5994
6000
 
6001
+ export interface GetApiV2LoadScacsCountParams {
6002
+ /** JSON search string like {"attribute_eq": "Term"} */
6003
+ search?: string;
6004
+ /**
6005
+ * Page of results to fetch
6006
+ * @format int32
6007
+ */
6008
+ page?: number;
6009
+ /**
6010
+ * Number of results to return per page
6011
+ * @format int32
6012
+ */
6013
+ per_page?: number;
6014
+ /** Include total count of results */
6015
+ page_total?: boolean;
6016
+ /** Include prev/next links in response headers */
6017
+ page_links?: boolean;
6018
+ }
6019
+
6020
+ export interface GetApiV2LoadScacsParams {
6021
+ /** JSON search string like {"attribute_eq": "Term"} */
6022
+ search?: string;
6023
+ /** Comma-separated list of fields to include in the response */
6024
+ fields?: string;
6025
+ /** A list of sort options (ex: name asc,created_at desc) */
6026
+ sort?: string;
6027
+ /**
6028
+ * Page of results to fetch
6029
+ * @format int32
6030
+ */
6031
+ page?: number;
6032
+ /**
6033
+ * Number of results to return per page
6034
+ * @format int32
6035
+ */
6036
+ per_page?: number;
6037
+ /** Include total count of results */
6038
+ page_total?: boolean;
6039
+ /** Include prev/next links in response headers */
6040
+ page_links?: boolean;
6041
+ }
6042
+
5995
6043
  export interface GetApiV2NotificationEventsParams {
5996
6044
  /** JSON search string like {"attribute_eq": "Term"} */
5997
6045
  search?: string;
@@ -1,9 +1,9 @@
1
1
  export * from './BundleItems';
2
- export * from './CarrierAliases';
3
2
  export * from './ConsumerReturns';
4
3
  export * from './Customers';
5
4
  export * from './Documents';
6
5
  export * from './Items';
6
+ export * from './LoadScacs';
7
7
  export * from './NotificationEvents';
8
8
  export * from './NotificationSubscriptions';
9
9
  export * from './OrderDocuments';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiplashmerch/whiplash-api-client",
3
- "version": "3.0.12",
3
+ "version": "3.0.13",
4
4
  "description": "",
5
5
  "devDependencies": {},
6
6
  "scripts": {
@@ -1,92 +0,0 @@
1
- import { ApiV21EntitiesCarrierAlias, ApiV21EntitiesPostResponse, ApiV2EntitiesCarrierAlias, GetApiV21CarrierAliasesParams, GetApiV2CarrierAliasesParams, PostApiV21CarrierAliasesRequest, PostApiV2CarrierAliasesRequest, PutApiV21CarrierAliasesIdRequest, PutApiV2CarrierAliasesIdRequest } from "./data-contracts";
2
- import { HttpClient, RequestParams } from "./http-client";
3
- /**
4
- * @description Get a list of carrier_aliases
5
- *
6
- * @tags carrier_aliases
7
- * @name GetApiV2CarrierAliases
8
- * @summary List all carrier_aliases
9
- * @request GET:/api/v2/carrier_aliases
10
- */
11
- export declare const getApiV2CarrierAliases: (client: HttpClient, query: GetApiV2CarrierAliasesParams, params?: RequestParams) => Promise<ApiV2EntitiesCarrierAlias[]>;
12
- /**
13
- * @description Create a carrier_alias
14
- *
15
- * @tags carrier_aliases
16
- * @name PostApiV2CarrierAliases
17
- * @summary Create a carrier_alias
18
- * @request POST:/api/v2/carrier_aliases
19
- */
20
- export declare const postApiV2CarrierAliases: (client: HttpClient, data: PostApiV2CarrierAliasesRequest, params?: RequestParams) => Promise<ApiV2EntitiesCarrierAlias>;
21
- /**
22
- * @description Get a carrier_alias
23
- *
24
- * @tags carrier_aliases
25
- * @name GetApiV2CarrierAliasesId
26
- * @summary Retrieve a carrier_alias
27
- * @request GET:/api/v2/carrier_aliases/{id}
28
- */
29
- export declare const getApiV2CarrierAliasesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesCarrierAlias>;
30
- /**
31
- * @description Update a carrier_alias
32
- *
33
- * @tags carrier_aliases
34
- * @name PutApiV2CarrierAliasesId
35
- * @summary Update a carrier_alias
36
- * @request PUT:/api/v2/carrier_aliases/{id}
37
- */
38
- export declare const putApiV2CarrierAliasesId: (client: HttpClient, id: number, data: PutApiV2CarrierAliasesIdRequest, params?: RequestParams) => Promise<ApiV2EntitiesCarrierAlias>;
39
- /**
40
- * @description Destroy a carrier_alias
41
- *
42
- * @tags carrier_aliases
43
- * @name DeleteApiV2CarrierAliasesId
44
- * @summary Destroy a carrier_alias
45
- * @request DELETE:/api/v2/carrier_aliases/{id}
46
- */
47
- export declare const deleteApiV2CarrierAliasesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
48
- /**
49
- * @description Get a list of carrier_aliases
50
- *
51
- * @tags carrier_aliases
52
- * @name GetApiV21CarrierAliases
53
- * @summary List all carrier_aliases
54
- * @request GET:/api/v2.1/carrier_aliases
55
- */
56
- export declare const getApiV21CarrierAliases: (client: HttpClient, query: GetApiV21CarrierAliasesParams, params?: RequestParams) => Promise<ApiV21EntitiesCarrierAlias[]>;
57
- /**
58
- * @description Create a carrier_alias
59
- *
60
- * @tags carrier_aliases
61
- * @name PostApiV21CarrierAliases
62
- * @summary Create a carrier_alias
63
- * @request POST:/api/v2.1/carrier_aliases
64
- */
65
- export declare const postApiV21CarrierAliases: (client: HttpClient, data: PostApiV21CarrierAliasesRequest, params?: RequestParams) => Promise<ApiV21EntitiesPostResponse>;
66
- /**
67
- * @description Get a carrier_alias
68
- *
69
- * @tags carrier_aliases
70
- * @name GetApiV21CarrierAliasesId
71
- * @summary Retrieve a carrier_alias
72
- * @request GET:/api/v2.1/carrier_aliases/{id}
73
- */
74
- export declare const getApiV21CarrierAliasesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesCarrierAlias>;
75
- /**
76
- * @description Update a carrier_alias
77
- *
78
- * @tags carrier_aliases
79
- * @name PutApiV21CarrierAliasesId
80
- * @summary Update a carrier_alias
81
- * @request PUT:/api/v2.1/carrier_aliases/{id}
82
- */
83
- export declare const putApiV21CarrierAliasesId: (client: HttpClient, id: number, data: PutApiV21CarrierAliasesIdRequest, params?: RequestParams) => Promise<void>;
84
- /**
85
- * @description Destroy a carrier_alias
86
- *
87
- * @tags carrier_aliases
88
- * @name DeleteApiV21CarrierAliasesId
89
- * @summary Destroy a carrier_alias
90
- * @request DELETE:/api/v2.1/carrier_aliases/{id}
91
- */
92
- export declare const deleteApiV21CarrierAliasesId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
@@ -1,62 +0,0 @@
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
- ApiV21EntitiesCarrierAlias,
15
- ApiV2EntitiesCarrierAlias,
16
- GetApiV21CarrierAliasesParams,
17
- GetApiV2CarrierAliasesParams,
18
- } from "./data-contracts";
19
- import { HttpClient, RequestParams } from "./http-client";
20
-
21
- /**
22
- * @description Get a list of carrier_aliases
23
- *
24
- * @tags carrier_aliases
25
- * @name GetApiV2CarrierAliases
26
- * @summary List all carrier_aliases
27
- * @request GET:/api/v2/carrier_aliases
28
- */
29
- export const getApiV2CarrierAliases = (
30
- client: HttpClient,
31
- query: GetApiV2CarrierAliasesParams,
32
- params: RequestParams = {},
33
- ) => {
34
- return client.request<ApiV2EntitiesCarrierAlias[], ApiSharedEntitiesApiError>({
35
- path: `/api/v2/carrier_aliases`,
36
- method: "GET",
37
- query: query,
38
- format: "json",
39
- ...params,
40
- });
41
- };
42
- /**
43
- * @description Get a list of carrier_aliases
44
- *
45
- * @tags carrier_aliases
46
- * @name GetApiV21CarrierAliases
47
- * @summary List all carrier_aliases
48
- * @request GET:/api/v2.1/carrier_aliases
49
- */
50
- export const getApiV21CarrierAliases = (
51
- client: HttpClient,
52
- query: GetApiV21CarrierAliasesParams,
53
- params: RequestParams = {},
54
- ) => {
55
- return client.request<ApiV21EntitiesCarrierAlias[], ApiSharedEntitiesApiError>({
56
- path: `/api/v2.1/carrier_aliases`,
57
- method: "GET",
58
- query: query,
59
- format: "json",
60
- ...params,
61
- });
62
- };