@whiplashmerch/whiplash-api-client 3.2.39 → 3.2.41
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 +179 -1
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/Orders.d.ts +37 -1
- package/dist/generated/PackageLabelReferences.d.ts +56 -0
- package/dist/generated/data-contracts.d.ts +154 -18
- package/dist/generated/index.d.ts +1 -0
- package/dist/mock-data/index.d.ts +1 -0
- package/dist/mock-data/v2_1/package-label-reference/created.d.ts +1 -0
- package/generated/Orders.ts +82 -0
- package/generated/PackageLabelReferences.ts +127 -0
- package/generated/data-contracts.ts +160 -18
- package/generated/index.ts +1 -0
- package/package.json +1 -1
|
@@ -1481,6 +1481,7 @@ export interface ApiV2EntitiesOrder {
|
|
|
1481
1481
|
* Note: this field has a limit of 35 chars.
|
|
1482
1482
|
*/
|
|
1483
1483
|
package_label_reference?: string | null;
|
|
1484
|
+
package_label_reference_record?: ApiV2EntitiesPackageLabelReference;
|
|
1484
1485
|
packages?: ApiV2EntitiesPackage[];
|
|
1485
1486
|
/** url for this orders packing slip */
|
|
1486
1487
|
packingslip_pdf_url?: string | null;
|
|
@@ -1959,6 +1960,30 @@ export interface ApiV2EntitiesPackage {
|
|
|
1959
1960
|
updated_at?: string | null;
|
|
1960
1961
|
}
|
|
1961
1962
|
|
|
1963
|
+
/** V2 */
|
|
1964
|
+
export interface ApiV2EntitiesPackageLabelReference {
|
|
1965
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
1966
|
+
reference_identifier_2?: string | null;
|
|
1967
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
1968
|
+
reference_identifier_3?: string | null;
|
|
1969
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
1970
|
+
reference_identifier_4?: string | null;
|
|
1971
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
1972
|
+
reference_identifier_5?: string | null;
|
|
1973
|
+
/**
|
|
1974
|
+
* the package label reference id
|
|
1975
|
+
* @format int32
|
|
1976
|
+
*/
|
|
1977
|
+
id?: number;
|
|
1978
|
+
/**
|
|
1979
|
+
* the package label reference order id
|
|
1980
|
+
* @format int32
|
|
1981
|
+
*/
|
|
1982
|
+
order_id?: number;
|
|
1983
|
+
/** the package label reference identifier (max 35 characters) */
|
|
1984
|
+
reference_identifier?: string | null;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1962
1987
|
/** V2 */
|
|
1963
1988
|
export interface ApiV2EntitiesPackingRule {
|
|
1964
1989
|
/** is the rule currently active? */
|
|
@@ -4164,12 +4189,12 @@ export interface ApiV21EntitiesOrder {
|
|
|
4164
4189
|
*/
|
|
4165
4190
|
order_batch_id?: number | null;
|
|
4166
4191
|
/**
|
|
4167
|
-
* number of
|
|
4192
|
+
* number of merch line items in this Order
|
|
4168
4193
|
* @format int32
|
|
4169
4194
|
*/
|
|
4170
4195
|
order_item_count?: number;
|
|
4171
4196
|
/**
|
|
4172
|
-
* total quantity
|
|
4197
|
+
* total quantity across the merch line items in this Order
|
|
4173
4198
|
* @format int32
|
|
4174
4199
|
*/
|
|
4175
4200
|
order_item_quantity?: number;
|
|
@@ -4186,6 +4211,7 @@ export interface ApiV21EntitiesOrder {
|
|
|
4186
4211
|
* Note: this field has a limit of 35 chars.
|
|
4187
4212
|
*/
|
|
4188
4213
|
package_label_reference?: string | null;
|
|
4214
|
+
package_label_reference_record?: ApiV21EntitiesPackageLabelReference;
|
|
4189
4215
|
/** url for this orders packing slip */
|
|
4190
4216
|
packingslip_pdf_url?: string | null;
|
|
4191
4217
|
/** the order payment type */
|
|
@@ -4557,6 +4583,30 @@ export interface ApiV21EntitiesOriginator {
|
|
|
4557
4583
|
updated_at?: string;
|
|
4558
4584
|
}
|
|
4559
4585
|
|
|
4586
|
+
/** V3 */
|
|
4587
|
+
export interface ApiV21EntitiesPackageLabelReference {
|
|
4588
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
4589
|
+
reference_identifier_2?: string | null;
|
|
4590
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
4591
|
+
reference_identifier_3?: string | null;
|
|
4592
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
4593
|
+
reference_identifier_4?: string | null;
|
|
4594
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
4595
|
+
reference_identifier_5?: string | null;
|
|
4596
|
+
/**
|
|
4597
|
+
* the package label reference id
|
|
4598
|
+
* @format int32
|
|
4599
|
+
*/
|
|
4600
|
+
id?: number;
|
|
4601
|
+
/**
|
|
4602
|
+
* the package label reference order id
|
|
4603
|
+
* @format int32
|
|
4604
|
+
*/
|
|
4605
|
+
order_id?: number;
|
|
4606
|
+
/** the package label reference identifier (max 35 characters) */
|
|
4607
|
+
reference_identifier?: string | null;
|
|
4608
|
+
}
|
|
4609
|
+
|
|
4560
4610
|
/** V3 */
|
|
4561
4611
|
export interface ApiV21EntitiesPackingRule {
|
|
4562
4612
|
/** is the rule currently active? */
|
|
@@ -7468,6 +7518,8 @@ export interface PostApiV21OrdersBulkRequest {
|
|
|
7468
7518
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
7469
7519
|
permissions_limited?: boolean;
|
|
7470
7520
|
order_items?: string;
|
|
7521
|
+
/** Full package label reference record. */
|
|
7522
|
+
package_label_reference_record?: string;
|
|
7471
7523
|
/** desired incoterm for the order */
|
|
7472
7524
|
incoterm?: PostApiV21OrdersBulkRequestIncoterm;
|
|
7473
7525
|
/**
|
|
@@ -7721,6 +7773,19 @@ export interface PostApiV21OrdersIdOrderItemsRequest {
|
|
|
7721
7773
|
};
|
|
7722
7774
|
}
|
|
7723
7775
|
|
|
7776
|
+
export interface PostApiV21OrdersIdPackageLabelReferenceRequest {
|
|
7777
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
7778
|
+
reference_identifier_2?: string;
|
|
7779
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
7780
|
+
reference_identifier_3?: string;
|
|
7781
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
7782
|
+
reference_identifier_4?: string;
|
|
7783
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
7784
|
+
reference_identifier_5?: string;
|
|
7785
|
+
/** Reference identifier (max 35 characters) */
|
|
7786
|
+
reference_identifier?: string;
|
|
7787
|
+
}
|
|
7788
|
+
|
|
7724
7789
|
export interface PostApiV21OrdersRequest {
|
|
7725
7790
|
/** the order billing street address 1 */
|
|
7726
7791
|
billing_address_1?: string;
|
|
@@ -8016,11 +8081,20 @@ export interface PostApiV21OrdersRequest {
|
|
|
8016
8081
|
/** miscellaneous info for the originator */
|
|
8017
8082
|
misc?: string;
|
|
8018
8083
|
};
|
|
8019
|
-
/**
|
|
8020
|
-
* User-defined reference for shipping labels on packages.
|
|
8021
|
-
* Note: this field has a limit of 35 chars.
|
|
8022
|
-
*/
|
|
8084
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
8023
8085
|
package_label_reference?: string;
|
|
8086
|
+
package_label_reference_attributes?: {
|
|
8087
|
+
/** the package label reference identifier (max 35 characters) */
|
|
8088
|
+
reference_identifier?: string;
|
|
8089
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
8090
|
+
reference_identifier_2?: string;
|
|
8091
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
8092
|
+
reference_identifier_3?: string;
|
|
8093
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
8094
|
+
reference_identifier_4?: string;
|
|
8095
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
8096
|
+
reference_identifier_5?: string;
|
|
8097
|
+
};
|
|
8024
8098
|
/** the order payment type */
|
|
8025
8099
|
payment_type?: PostApiV21OrdersRequestPaymentType;
|
|
8026
8100
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
@@ -9388,6 +9462,8 @@ export interface PostApiV2OrdersBulkRequest {
|
|
|
9388
9462
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
9389
9463
|
permissions_limited?: boolean;
|
|
9390
9464
|
order_items?: string;
|
|
9465
|
+
/** Full package label reference record. */
|
|
9466
|
+
package_label_reference_record?: string;
|
|
9391
9467
|
/** desired incoterm for the order */
|
|
9392
9468
|
incoterm?: PostApiV2OrdersBulkRequestIncoterm;
|
|
9393
9469
|
/**
|
|
@@ -9641,6 +9717,19 @@ export interface PostApiV2OrdersIdOrderItemsRequest {
|
|
|
9641
9717
|
};
|
|
9642
9718
|
}
|
|
9643
9719
|
|
|
9720
|
+
export interface PostApiV2OrdersIdPackageLabelReferenceRequest {
|
|
9721
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
9722
|
+
reference_identifier_2?: string;
|
|
9723
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
9724
|
+
reference_identifier_3?: string;
|
|
9725
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
9726
|
+
reference_identifier_4?: string;
|
|
9727
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
9728
|
+
reference_identifier_5?: string;
|
|
9729
|
+
/** Reference identifier (max 35 characters) */
|
|
9730
|
+
reference_identifier?: string;
|
|
9731
|
+
}
|
|
9732
|
+
|
|
9644
9733
|
export interface PostApiV2OrdersRequest {
|
|
9645
9734
|
/** the order billing street address 1 */
|
|
9646
9735
|
billing_address_1?: string;
|
|
@@ -9936,11 +10025,20 @@ export interface PostApiV2OrdersRequest {
|
|
|
9936
10025
|
/** miscellaneous info for the originator */
|
|
9937
10026
|
misc?: string;
|
|
9938
10027
|
};
|
|
9939
|
-
/**
|
|
9940
|
-
* User-defined reference for shipping labels on packages.
|
|
9941
|
-
* Note: this field has a limit of 35 chars.
|
|
9942
|
-
*/
|
|
10028
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
9943
10029
|
package_label_reference?: string;
|
|
10030
|
+
package_label_reference_attributes?: {
|
|
10031
|
+
/** the package label reference identifier (max 35 characters) */
|
|
10032
|
+
reference_identifier?: string;
|
|
10033
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
10034
|
+
reference_identifier_2?: string;
|
|
10035
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
10036
|
+
reference_identifier_3?: string;
|
|
10037
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
10038
|
+
reference_identifier_4?: string;
|
|
10039
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
10040
|
+
reference_identifier_5?: string;
|
|
10041
|
+
};
|
|
9944
10042
|
/** the order payment type */
|
|
9945
10043
|
payment_type?: PostApiV2OrdersRequestPaymentType;
|
|
9946
10044
|
/** Permission limited orders are not editable, but still may be processed/shipped */
|
|
@@ -11355,11 +11453,20 @@ export interface PutApiV21OrdersIdRequest {
|
|
|
11355
11453
|
order_orig?: string;
|
|
11356
11454
|
/** the order type */
|
|
11357
11455
|
order_type?: PutApiV21OrdersIdRequestOrderType;
|
|
11358
|
-
/**
|
|
11359
|
-
* User-defined reference for shipping labels on packages.
|
|
11360
|
-
* Note: this field has a limit of 35 chars.
|
|
11361
|
-
*/
|
|
11456
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
11362
11457
|
package_label_reference?: string;
|
|
11458
|
+
package_label_reference_attributes?: {
|
|
11459
|
+
/** the package label reference identifier (max 35 characters) */
|
|
11460
|
+
reference_identifier?: string;
|
|
11461
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
11462
|
+
reference_identifier_2?: string;
|
|
11463
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
11464
|
+
reference_identifier_3?: string;
|
|
11465
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
11466
|
+
reference_identifier_4?: string;
|
|
11467
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
11468
|
+
reference_identifier_5?: string;
|
|
11469
|
+
};
|
|
11363
11470
|
/** url for this orders packing slip */
|
|
11364
11471
|
packingslip_pdf_url?: string;
|
|
11365
11472
|
/** the order payment type */
|
|
@@ -11552,6 +11659,19 @@ export interface PutApiV21OrdersIdRequest {
|
|
|
11552
11659
|
};
|
|
11553
11660
|
}
|
|
11554
11661
|
|
|
11662
|
+
export interface PutApiV21PackageLabelReferencesIdRequest {
|
|
11663
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
11664
|
+
reference_identifier_2?: string;
|
|
11665
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
11666
|
+
reference_identifier_3?: string;
|
|
11667
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
11668
|
+
reference_identifier_4?: string;
|
|
11669
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
11670
|
+
reference_identifier_5?: string;
|
|
11671
|
+
/** Reference identifier (max 35 characters) */
|
|
11672
|
+
reference_identifier?: string;
|
|
11673
|
+
}
|
|
11674
|
+
|
|
11555
11675
|
export interface PutApiV21ShipnoticeItemsIdMetaFieldsRequest {
|
|
11556
11676
|
/** Included meta fields for associations */
|
|
11557
11677
|
association_fields?: object;
|
|
@@ -12555,11 +12675,20 @@ export interface PutApiV2OrdersIdRequest {
|
|
|
12555
12675
|
order_orig?: string;
|
|
12556
12676
|
/** the order type */
|
|
12557
12677
|
order_type?: PutApiV2OrdersIdRequestOrderType;
|
|
12558
|
-
/**
|
|
12559
|
-
* User-defined reference for shipping labels on packages.
|
|
12560
|
-
* Note: this field has a limit of 35 chars.
|
|
12561
|
-
*/
|
|
12678
|
+
/** User-defined reference for shipping labels (max 35 chars). Prefer package_label_reference_attributes. */
|
|
12562
12679
|
package_label_reference?: string;
|
|
12680
|
+
package_label_reference_attributes?: {
|
|
12681
|
+
/** the package label reference identifier (max 35 characters) */
|
|
12682
|
+
reference_identifier?: string;
|
|
12683
|
+
/** the package label reference identifier 2 (max 35 characters) */
|
|
12684
|
+
reference_identifier_2?: string;
|
|
12685
|
+
/** the package label reference identifier 3 (max 35 characters) */
|
|
12686
|
+
reference_identifier_3?: string;
|
|
12687
|
+
/** the package label reference identifier 4 (max 35 characters) */
|
|
12688
|
+
reference_identifier_4?: string;
|
|
12689
|
+
/** the package label reference identifier 5 (max 35 characters) */
|
|
12690
|
+
reference_identifier_5?: string;
|
|
12691
|
+
};
|
|
12563
12692
|
/** url for this orders packing slip */
|
|
12564
12693
|
packingslip_pdf_url?: string;
|
|
12565
12694
|
/** the order payment type */
|
|
@@ -12752,6 +12881,19 @@ export interface PutApiV2OrdersIdRequest {
|
|
|
12752
12881
|
};
|
|
12753
12882
|
}
|
|
12754
12883
|
|
|
12884
|
+
export interface PutApiV2PackageLabelReferencesIdRequest {
|
|
12885
|
+
/** Reference identifier 2 (max 35 characters) */
|
|
12886
|
+
reference_identifier_2?: string;
|
|
12887
|
+
/** Reference identifier 3 (max 35 characters) */
|
|
12888
|
+
reference_identifier_3?: string;
|
|
12889
|
+
/** Reference identifier 4 (max 35 characters) */
|
|
12890
|
+
reference_identifier_4?: string;
|
|
12891
|
+
/** Reference identifier 5 (max 35 characters) */
|
|
12892
|
+
reference_identifier_5?: string;
|
|
12893
|
+
/** Reference identifier (max 35 characters) */
|
|
12894
|
+
reference_identifier?: string;
|
|
12895
|
+
}
|
|
12896
|
+
|
|
12755
12897
|
export interface PutApiV2ShipnoticeItemsIdMetaFieldsRequest {
|
|
12756
12898
|
/** Included meta fields for associations */
|
|
12757
12899
|
association_fields?: object;
|
package/generated/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './OrderItems';
|
|
|
11
11
|
export * from './OrderTotes';
|
|
12
12
|
export * from './Orders';
|
|
13
13
|
export * from './Originators';
|
|
14
|
+
export * from './PackageLabelReferences';
|
|
14
15
|
export * from './Packages';
|
|
15
16
|
export * from './Projects';
|
|
16
17
|
export * from './Scancodes';
|