@whiplashmerch/whiplash-api-client 3.2.3 → 3.2.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.
@@ -0,0 +1,128 @@
1
+ import { ApiV21EntitiesCount, ApiV21EntitiesPallet, ApiV21EntitiesPalletLocation, ApiV21EntitiesPostResponse, ApiV2EntitiesCount, ApiV2EntitiesPallet, ApiV2EntitiesPalletLocation, GetApiV21PalletLocationsCountParams, GetApiV21PalletLocationsIdPalletsParams, GetApiV21PalletLocationsParams, GetApiV2PalletLocationsCountParams, GetApiV2PalletLocationsIdPalletsParams, GetApiV2PalletLocationsParams, PostApiV21PalletLocationsRequest, PostApiV2PalletLocationsRequest, PutApiV21PalletLocationsIdRequest, PutApiV2PalletLocationsIdRequest } from "./data-contracts";
2
+ import { HttpClient, RequestParams } from "./http-client";
3
+ /**
4
+ * @description Get all pallet locations
5
+ *
6
+ * @tags pallet_locations
7
+ * @name GetApiV2PalletLocations
8
+ * @summary List all pallet locations
9
+ * @request GET:/api/v2/pallet_locations
10
+ */
11
+ export declare const getApiV2PalletLocations: (client: HttpClient, query: GetApiV2PalletLocationsParams, params?: RequestParams) => Promise<ApiV2EntitiesPalletLocation[]>;
12
+ /**
13
+ * @description Create a pallet location
14
+ *
15
+ * @tags pallet_locations
16
+ * @name PostApiV2PalletLocations
17
+ * @summary Create a pallet location
18
+ * @request POST:/api/v2/pallet_locations
19
+ */
20
+ export declare const postApiV2PalletLocations: (client: HttpClient, data: PostApiV2PalletLocationsRequest, params?: RequestParams) => Promise<ApiV2EntitiesPalletLocation>;
21
+ /**
22
+ * @description Returns count of pallet locations
23
+ *
24
+ * @tags pallet_locations
25
+ * @name GetApiV2PalletLocationsCount
26
+ * @summary Count pallet locations
27
+ * @request GET:/api/v2/pallet_locations/count
28
+ */
29
+ export declare const getApiV2PalletLocationsCount: (client: HttpClient, query: GetApiV2PalletLocationsCountParams, params?: RequestParams) => Promise<ApiV2EntitiesCount>;
30
+ /**
31
+ * @description Get a pallet location
32
+ *
33
+ * @tags pallet_locations
34
+ * @name GetApiV2PalletLocationsId
35
+ * @summary Get a pallet location by ID
36
+ * @request GET:/api/v2/pallet_locations/{id}
37
+ */
38
+ export declare const getApiV2PalletLocationsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV2EntitiesPalletLocation>;
39
+ /**
40
+ * @description Update a pallet location
41
+ *
42
+ * @tags pallet_locations
43
+ * @name PutApiV2PalletLocationsId
44
+ * @summary Update a pallet location
45
+ * @request PUT:/api/v2/pallet_locations/{id}
46
+ */
47
+ export declare const putApiV2PalletLocationsId: (client: HttpClient, id: number, data: PutApiV2PalletLocationsIdRequest, params?: RequestParams) => Promise<ApiV2EntitiesPalletLocation>;
48
+ /**
49
+ * @description Destroy a pallet location
50
+ *
51
+ * @tags pallet_locations
52
+ * @name DeleteApiV2PalletLocationsId
53
+ * @summary Destroy a pallet location
54
+ * @request DELETE:/api/v2/pallet_locations/{id}
55
+ */
56
+ export declare const deleteApiV2PalletLocationsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
57
+ /**
58
+ * @description Get all pallets for a Pallet location
59
+ *
60
+ * @tags pallet_locations
61
+ * @name GetApiV2PalletLocationsIdPallets
62
+ * @summary List all pallets for a pallet location
63
+ * @request GET:/api/v2/pallet_locations/{id}/pallets
64
+ */
65
+ export declare const getApiV2PalletLocationsIdPallets: (client: HttpClient, { id, ...query }: GetApiV2PalletLocationsIdPalletsParams, params?: RequestParams) => Promise<ApiV2EntitiesPallet[]>;
66
+ /**
67
+ * @description Get all pallet locations
68
+ *
69
+ * @tags pallet_locations
70
+ * @name GetApiV21PalletLocations
71
+ * @summary List all pallet locations
72
+ * @request GET:/api/v2.1/pallet_locations
73
+ */
74
+ export declare const getApiV21PalletLocations: (client: HttpClient, query: GetApiV21PalletLocationsParams, params?: RequestParams) => Promise<ApiV21EntitiesPalletLocation[]>;
75
+ /**
76
+ * @description Create a pallet location
77
+ *
78
+ * @tags pallet_locations
79
+ * @name PostApiV21PalletLocations
80
+ * @summary Create a pallet location
81
+ * @request POST:/api/v2.1/pallet_locations
82
+ */
83
+ export declare const postApiV21PalletLocations: (client: HttpClient, data: PostApiV21PalletLocationsRequest, params?: RequestParams) => Promise<ApiV21EntitiesPostResponse>;
84
+ /**
85
+ * @description Returns count of pallet locations
86
+ *
87
+ * @tags pallet_locations
88
+ * @name GetApiV21PalletLocationsCount
89
+ * @summary Count pallet locations
90
+ * @request GET:/api/v2.1/pallet_locations/count
91
+ */
92
+ export declare const getApiV21PalletLocationsCount: (client: HttpClient, query: GetApiV21PalletLocationsCountParams, params?: RequestParams) => Promise<ApiV21EntitiesCount>;
93
+ /**
94
+ * @description Get a pallet location
95
+ *
96
+ * @tags pallet_locations
97
+ * @name GetApiV21PalletLocationsId
98
+ * @summary Get a pallet location by ID
99
+ * @request GET:/api/v2.1/pallet_locations/{id}
100
+ */
101
+ export declare const getApiV21PalletLocationsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<ApiV21EntitiesPalletLocation>;
102
+ /**
103
+ * @description Update a pallet location
104
+ *
105
+ * @tags pallet_locations
106
+ * @name PutApiV21PalletLocationsId
107
+ * @summary Update a pallet location
108
+ * @request PUT:/api/v2.1/pallet_locations/{id}
109
+ */
110
+ export declare const putApiV21PalletLocationsId: (client: HttpClient, id: number, data: PutApiV21PalletLocationsIdRequest, params?: RequestParams) => Promise<void>;
111
+ /**
112
+ * @description Destroy a pallet location
113
+ *
114
+ * @tags pallet_locations
115
+ * @name DeleteApiV21PalletLocationsId
116
+ * @summary Destroy a pallet location
117
+ * @request DELETE:/api/v2.1/pallet_locations/{id}
118
+ */
119
+ export declare const deleteApiV21PalletLocationsId: (client: HttpClient, id: number, params?: RequestParams) => Promise<void>;
120
+ /**
121
+ * @description Get all pallets for a Pallet location
122
+ *
123
+ * @tags pallet_locations
124
+ * @name GetApiV21PalletLocationsIdPallets
125
+ * @summary List all pallets for a pallet location
126
+ * @request GET:/api/v2.1/pallet_locations/{id}/pallets
127
+ */
128
+ export declare const getApiV21PalletLocationsIdPallets: (client: HttpClient, { id, ...query }: GetApiV21PalletLocationsIdPalletsParams, params?: RequestParams) => Promise<ApiV21EntitiesPallet[]>;
@@ -3775,10 +3775,10 @@ export interface ApiV2EntitiesPallet {
3775
3775
  */
3776
3776
  number?: number | null;
3777
3777
  /**
3778
- * the order batch id associated with the pallet
3778
+ * the pallet location id where the pallet is stored
3779
3779
  * @format int32
3780
3780
  */
3781
- order_batch_id?: number | null;
3781
+ pallet_location_id?: number | null;
3782
3782
  /** the total dimensional weight of the pallet */
3783
3783
  total_dimensional_weight?: string | null;
3784
3784
  /**
@@ -3803,6 +3803,33 @@ export interface ApiV2EntitiesPallet {
3803
3803
  warehouse_id?: number | null;
3804
3804
  }
3805
3805
  /** V2 */
3806
+ export interface ApiV2EntitiesPalletLocation {
3807
+ /** the pallet location active status */
3808
+ active?: boolean;
3809
+ /**
3810
+ * the pallet location creation date and time
3811
+ * @format date-time
3812
+ */
3813
+ created_at?: string;
3814
+ /**
3815
+ * the package id
3816
+ * @format int32
3817
+ */
3818
+ id?: number;
3819
+ /** the pallet location lane */
3820
+ lane?: string;
3821
+ /**
3822
+ * the pallet location last update date and time
3823
+ * @format date-time
3824
+ */
3825
+ updated_at?: string;
3826
+ /**
3827
+ * the pallet location warehouse id
3828
+ * @format int32
3829
+ */
3830
+ warehouse_id?: number;
3831
+ }
3832
+ /** V2 */
3806
3833
  export interface ApiV2EntitiesPartner {
3807
3834
  /** Partner billing address line 1. */
3808
3835
  billing_address1?: string | null;
@@ -8816,10 +8843,10 @@ export interface ApiV21EntitiesPallet {
8816
8843
  */
8817
8844
  number?: number | null;
8818
8845
  /**
8819
- * the order batch id associated with the pallet
8846
+ * the pallet location id where the pallet is stored
8820
8847
  * @format int32
8821
8848
  */
8822
- order_batch_id?: number | null;
8849
+ pallet_location_id?: number | null;
8823
8850
  /** the total dimensional weight of the pallet */
8824
8851
  total_dimensional_weight?: string | null;
8825
8852
  /**
@@ -8844,6 +8871,33 @@ export interface ApiV21EntitiesPallet {
8844
8871
  warehouse_id?: number | null;
8845
8872
  }
8846
8873
  /** V3 */
8874
+ export interface ApiV21EntitiesPalletLocation {
8875
+ /** the pallet location active status */
8876
+ active?: boolean;
8877
+ /**
8878
+ * the pallet location creation date and time
8879
+ * @format date-time
8880
+ */
8881
+ created_at?: string;
8882
+ /**
8883
+ * the package id
8884
+ * @format int32
8885
+ */
8886
+ id?: number;
8887
+ /** the pallet location lane */
8888
+ lane?: string;
8889
+ /**
8890
+ * the pallet location last update date and time
8891
+ * @format date-time
8892
+ */
8893
+ updated_at?: string;
8894
+ /**
8895
+ * the pallet location warehouse id
8896
+ * @format int32
8897
+ */
8898
+ warehouse_id?: number;
8899
+ }
8900
+ /** V3 */
8847
8901
  export interface ApiV21EntitiesPartner {
8848
8902
  /** Partner billing address line 1. */
8849
8903
  billing_address1?: string | null;
@@ -12505,6 +12559,55 @@ export interface GetApiV21PackagesParams {
12505
12559
  /** Include prev/next links in response headers */
12506
12560
  page_links?: boolean;
12507
12561
  }
12562
+ export interface GetApiV21PalletLocationsCountParams {
12563
+ /** JSON search string like {"attribute_eq": "Term"} */
12564
+ search?: string;
12565
+ }
12566
+ export interface GetApiV21PalletLocationsIdPalletsParams {
12567
+ /** JSON search string like {"attribute_eq": "Term"} */
12568
+ search?: string;
12569
+ /** Comma-separated list of fields to include in the response */
12570
+ fields?: string;
12571
+ /** A list of sort options (ex: name asc,created_at desc) */
12572
+ sort?: string;
12573
+ /**
12574
+ * Page of results to fetch
12575
+ * @format int32
12576
+ */
12577
+ page?: number;
12578
+ /**
12579
+ * Number of results to return per page
12580
+ * @format int32
12581
+ */
12582
+ per_page?: number;
12583
+ /** Include total count of results */
12584
+ page_total?: boolean;
12585
+ /** Include prev/next links in response headers */
12586
+ page_links?: boolean;
12587
+ id: number;
12588
+ }
12589
+ export interface GetApiV21PalletLocationsParams {
12590
+ /** JSON search string like {"attribute_eq": "Term"} */
12591
+ search?: string;
12592
+ /** Comma-separated list of fields to include in the response */
12593
+ fields?: string;
12594
+ /** A list of sort options (ex: name asc,created_at desc) */
12595
+ sort?: string;
12596
+ /**
12597
+ * Page of results to fetch
12598
+ * @format int32
12599
+ */
12600
+ page?: number;
12601
+ /**
12602
+ * Number of results to return per page
12603
+ * @format int32
12604
+ */
12605
+ per_page?: number;
12606
+ /** Include total count of results */
12607
+ page_total?: boolean;
12608
+ /** Include prev/next links in response headers */
12609
+ page_links?: boolean;
12610
+ }
12508
12611
  export interface GetApiV21PalletsCountParams {
12509
12612
  /** JSON search string like {"attribute_eq": "Term"} */
12510
12613
  search?: string;
@@ -15305,6 +15408,55 @@ export interface GetApiV2PackagesParams {
15305
15408
  /** Include prev/next links in response headers */
15306
15409
  page_links?: boolean;
15307
15410
  }
15411
+ export interface GetApiV2PalletLocationsCountParams {
15412
+ /** JSON search string like {"attribute_eq": "Term"} */
15413
+ search?: string;
15414
+ }
15415
+ export interface GetApiV2PalletLocationsIdPalletsParams {
15416
+ /** JSON search string like {"attribute_eq": "Term"} */
15417
+ search?: string;
15418
+ /** Comma-separated list of fields to include in the response */
15419
+ fields?: string;
15420
+ /** A list of sort options (ex: name asc,created_at desc) */
15421
+ sort?: string;
15422
+ /**
15423
+ * Page of results to fetch
15424
+ * @format int32
15425
+ */
15426
+ page?: number;
15427
+ /**
15428
+ * Number of results to return per page
15429
+ * @format int32
15430
+ */
15431
+ per_page?: number;
15432
+ /** Include total count of results */
15433
+ page_total?: boolean;
15434
+ /** Include prev/next links in response headers */
15435
+ page_links?: boolean;
15436
+ id: number;
15437
+ }
15438
+ export interface GetApiV2PalletLocationsParams {
15439
+ /** JSON search string like {"attribute_eq": "Term"} */
15440
+ search?: string;
15441
+ /** Comma-separated list of fields to include in the response */
15442
+ fields?: string;
15443
+ /** A list of sort options (ex: name asc,created_at desc) */
15444
+ sort?: string;
15445
+ /**
15446
+ * Page of results to fetch
15447
+ * @format int32
15448
+ */
15449
+ page?: number;
15450
+ /**
15451
+ * Number of results to return per page
15452
+ * @format int32
15453
+ */
15454
+ per_page?: number;
15455
+ /** Include total count of results */
15456
+ page_total?: boolean;
15457
+ /** Include prev/next links in response headers */
15458
+ page_links?: boolean;
15459
+ }
15308
15460
  export interface GetApiV2PalletsCountParams {
15309
15461
  /** JSON search string like {"attribute_eq": "Term"} */
15310
15462
  search?: string;
@@ -18685,6 +18837,32 @@ export interface PostApiV21OrdersRequest {
18685
18837
  };
18686
18838
  };
18687
18839
  }
18840
+ export interface PostApiV21PalletLocationsRequest {
18841
+ /** the pallet location active status */
18842
+ active?: boolean;
18843
+ /**
18844
+ * the pallet location creation date and time
18845
+ * @format date-time
18846
+ */
18847
+ created_at?: string;
18848
+ /**
18849
+ * the package id
18850
+ * @format int32
18851
+ */
18852
+ id?: number;
18853
+ /** the pallet location lane */
18854
+ lane?: string;
18855
+ /**
18856
+ * the pallet location last update date and time
18857
+ * @format date-time
18858
+ */
18859
+ updated_at?: string;
18860
+ /**
18861
+ * the pallet location warehouse id
18862
+ * @format int32
18863
+ */
18864
+ warehouse_id?: number;
18865
+ }
18688
18866
  export interface PostApiV21PartnersRequest {
18689
18867
  /** Partner billing address line 1. */
18690
18868
  billing_address1?: string;
@@ -22131,6 +22309,32 @@ export interface PostApiV2OrdersRequest {
22131
22309
  };
22132
22310
  };
22133
22311
  }
22312
+ export interface PostApiV2PalletLocationsRequest {
22313
+ /** the pallet location active status */
22314
+ active?: boolean;
22315
+ /**
22316
+ * the pallet location creation date and time
22317
+ * @format date-time
22318
+ */
22319
+ created_at?: string;
22320
+ /**
22321
+ * the package id
22322
+ * @format int32
22323
+ */
22324
+ id?: number;
22325
+ /** the pallet location lane */
22326
+ lane?: string;
22327
+ /**
22328
+ * the pallet location last update date and time
22329
+ * @format date-time
22330
+ */
22331
+ updated_at?: string;
22332
+ /**
22333
+ * the pallet location warehouse id
22334
+ * @format int32
22335
+ */
22336
+ warehouse_id?: number;
22337
+ }
22134
22338
  export interface PostApiV2PartnersRequest {
22135
22339
  /** Partner billing address line 1. */
22136
22340
  billing_address1?: string;
@@ -25049,6 +25253,32 @@ export interface PutApiV21PackagesIdRequest {
25049
25253
  /** the package tracking number */
25050
25254
  tracking?: string;
25051
25255
  }
25256
+ export interface PutApiV21PalletLocationsIdRequest {
25257
+ /** the pallet location active status */
25258
+ active?: boolean;
25259
+ /**
25260
+ * the pallet location creation date and time
25261
+ * @format date-time
25262
+ */
25263
+ created_at?: string;
25264
+ /**
25265
+ * the package id
25266
+ * @format int32
25267
+ */
25268
+ id?: number;
25269
+ /** the pallet location lane */
25270
+ lane?: string;
25271
+ /**
25272
+ * the pallet location last update date and time
25273
+ * @format date-time
25274
+ */
25275
+ updated_at?: string;
25276
+ /**
25277
+ * the pallet location warehouse id
25278
+ * @format int32
25279
+ */
25280
+ warehouse_id?: number;
25281
+ }
25052
25282
  export interface PutApiV21PalletsIdCallActionRequest {
25053
25283
  action?: string;
25054
25284
  /** Method params */
@@ -25060,6 +25290,11 @@ export interface PutApiV21PalletsIdRequest {
25060
25290
  * @format date-time
25061
25291
  */
25062
25292
  lpn_label_printed_at?: string;
25293
+ /**
25294
+ * the pallet location id where the pallet is stored
25295
+ * @format int32
25296
+ */
25297
+ pallet_location_id?: number;
25063
25298
  }
25064
25299
  export interface PutApiV21PartnersIdRequest {
25065
25300
  /** Partner billing address line 1. */
@@ -27876,6 +28111,32 @@ export interface PutApiV2PackagesIdRequest {
27876
28111
  /** the package tracking number */
27877
28112
  tracking?: string;
27878
28113
  }
28114
+ export interface PutApiV2PalletLocationsIdRequest {
28115
+ /** the pallet location active status */
28116
+ active?: boolean;
28117
+ /**
28118
+ * the pallet location creation date and time
28119
+ * @format date-time
28120
+ */
28121
+ created_at?: string;
28122
+ /**
28123
+ * the package id
28124
+ * @format int32
28125
+ */
28126
+ id?: number;
28127
+ /** the pallet location lane */
28128
+ lane?: string;
28129
+ /**
28130
+ * the pallet location last update date and time
28131
+ * @format date-time
28132
+ */
28133
+ updated_at?: string;
28134
+ /**
28135
+ * the pallet location warehouse id
28136
+ * @format int32
28137
+ */
28138
+ warehouse_id?: number;
28139
+ }
27879
28140
  export interface PutApiV2PalletsIdCallActionRequest {
27880
28141
  action?: string;
27881
28142
  /** Method params */
@@ -27887,6 +28148,11 @@ export interface PutApiV2PalletsIdRequest {
27887
28148
  * @format date-time
27888
28149
  */
27889
28150
  lpn_label_printed_at?: string;
28151
+ /**
28152
+ * the pallet location id where the pallet is stored
28153
+ * @format int32
28154
+ */
28155
+ pallet_location_id?: number;
27890
28156
  }
27891
28157
  export interface PutApiV2PartnersIdRequest {
27892
28158
  /** Partner billing address line 1. */
@@ -46,6 +46,7 @@ export * from './OrderTotes';
46
46
  export * from './Orders';
47
47
  export * from './Originators';
48
48
  export * from './Packages';
49
+ export * from './PalletLocations';
49
50
  export * from './Pallets';
50
51
  export * from './Partners';
51
52
  export * from './Prepacks';
@@ -86,6 +86,7 @@ export * from './v2_1/order/processing';
86
86
  export * from './v2_1/shipnotice/processing';
87
87
  export * from './v2_1/originator/created';
88
88
  export * from './v2_1/package/created';
89
+ export * from './v2_1/pallet-location/created';
89
90
  export * from './v2_1/pallet/created';
90
91
  export * from './v2_1/partner/created';
91
92
  export * from './v2_1/prepack/created';
@@ -0,0 +1 @@
1
+ export declare const ApiV21PalletLocationCreatedExample = "{\"id\":123}";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiplashmerch/whiplash-api-client",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "",
5
5
  "devDependencies": {},
6
6
  "scripts": {