repzo 1.0.225 → 1.0.228
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/lib/types/index.d.ts +9 -1
- package/package.json +2 -1
- package/src/index.ts +5 -5
- package/src/types/index.ts +15 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -6631,6 +6631,8 @@ export declare namespace Service {
|
|
|
6631
6631
|
shipping_charge?: number;
|
|
6632
6632
|
payment_charge?: number;
|
|
6633
6633
|
total_with_charges?: number;
|
|
6634
|
+
media?: StringId[];
|
|
6635
|
+
signature?: StringId;
|
|
6634
6636
|
createdAt: string;
|
|
6635
6637
|
updatedAt: string;
|
|
6636
6638
|
__v: number;
|
|
@@ -6738,6 +6740,8 @@ export declare namespace Service {
|
|
|
6738
6740
|
shipping_charge?: number;
|
|
6739
6741
|
payment_charge?: number;
|
|
6740
6742
|
total_with_charges?: number;
|
|
6743
|
+
media?: StringId[];
|
|
6744
|
+
signature?: StringId;
|
|
6741
6745
|
}
|
|
6742
6746
|
export interface UpdateBody {
|
|
6743
6747
|
_id?: string;
|
|
@@ -6848,6 +6852,8 @@ export declare namespace Service {
|
|
|
6848
6852
|
shipping_charge?: number;
|
|
6849
6853
|
payment_charge?: number;
|
|
6850
6854
|
total_with_charges?: number;
|
|
6855
|
+
media?: StringId[];
|
|
6856
|
+
signature?: StringId;
|
|
6851
6857
|
createdAt?: string;
|
|
6852
6858
|
updatedAt?: string;
|
|
6853
6859
|
__v?: number;
|
|
@@ -7010,8 +7016,10 @@ export declare namespace Service {
|
|
|
7010
7016
|
return_reason?: string | ReturnReason.Schema;
|
|
7011
7017
|
teams?: string[] | Team.TeamSchema[];
|
|
7012
7018
|
route?: string | Route.RouteSchema;
|
|
7019
|
+
media?: StringId[] | PopulatedMediaStorage[];
|
|
7020
|
+
signature?: StringId | PopulatedMediaStorage;
|
|
7013
7021
|
};
|
|
7014
|
-
type PopulatedKeys = "custom_status" | "return_reason" | "teams" | "route";
|
|
7022
|
+
type PopulatedKeys = "custom_status" | "return_reason" | "teams" | "route" | "media" | "signature";
|
|
7015
7023
|
type ProformaStatus = "pending" | "approved" | "processing" | "rejected";
|
|
7016
7024
|
type VariantSortingKeys = "product_sku" | "product_barcode" | "variant_name" | "product_name" | "variant_sku" | "variant_barcode";
|
|
7017
7025
|
export namespace Find {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repzo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.228",
|
|
4
4
|
"description": "Repzo TypeScript SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"homepage": "https://github.com/Repzo/repzo-ts#readme",
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@babel/parser": "^7.14.7",
|
|
54
|
+
"@types/axios": "^0.9.36",
|
|
54
55
|
"uuid": "^8.3.2"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -261,7 +261,7 @@ export default class Repzo {
|
|
|
261
261
|
if (params) {
|
|
262
262
|
params = normalizeParams(params);
|
|
263
263
|
}
|
|
264
|
-
let res = await axios.get(`${baseUrl}/${path}`, {
|
|
264
|
+
let res: any = await axios.get(`${baseUrl}/${path}`, {
|
|
265
265
|
params,
|
|
266
266
|
headers: this.headers,
|
|
267
267
|
timeout: this.timeout,
|
|
@@ -275,7 +275,7 @@ export default class Repzo {
|
|
|
275
275
|
body: Data,
|
|
276
276
|
params?: Params,
|
|
277
277
|
) {
|
|
278
|
-
let res = await axios.post(`${baseUrl}/${path}`, body, {
|
|
278
|
+
let res: any = await axios.post(`${baseUrl}/${path}`, body, {
|
|
279
279
|
params,
|
|
280
280
|
headers: this.headers,
|
|
281
281
|
timeout: this.timeout,
|
|
@@ -289,7 +289,7 @@ export default class Repzo {
|
|
|
289
289
|
body: Data,
|
|
290
290
|
params?: Params,
|
|
291
291
|
) {
|
|
292
|
-
let res = await axios.put(`${baseUrl}/${path}`, body, {
|
|
292
|
+
let res: any = await axios.put(`${baseUrl}/${path}`, body, {
|
|
293
293
|
params,
|
|
294
294
|
headers: this.headers,
|
|
295
295
|
timeout: this.timeout,
|
|
@@ -303,7 +303,7 @@ export default class Repzo {
|
|
|
303
303
|
body: Data,
|
|
304
304
|
params?: Params,
|
|
305
305
|
) {
|
|
306
|
-
let res = await axios.put(`${baseUrl}/${path}`, body, {
|
|
306
|
+
let res: any = await axios.put(`${baseUrl}/${path}`, body, {
|
|
307
307
|
params,
|
|
308
308
|
headers: this.headers,
|
|
309
309
|
timeout: this.timeout,
|
|
@@ -312,7 +312,7 @@ export default class Repzo {
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
private async _delete(baseUrl: string, path: string, params?: Params) {
|
|
315
|
-
let res = await axios.delete(`${baseUrl}/${path}`, {
|
|
315
|
+
let res: any = await axios.delete(`${baseUrl}/${path}`, {
|
|
316
316
|
params,
|
|
317
317
|
headers: this.headers,
|
|
318
318
|
timeout: this.timeout,
|
package/src/types/index.ts
CHANGED
|
@@ -7191,6 +7191,8 @@ export namespace Service {
|
|
|
7191
7191
|
shipping_charge?: number;
|
|
7192
7192
|
payment_charge?: number;
|
|
7193
7193
|
total_with_charges?: number;
|
|
7194
|
+
media?: StringId[];
|
|
7195
|
+
signature?: StringId;
|
|
7194
7196
|
createdAt: string;
|
|
7195
7197
|
updatedAt: string;
|
|
7196
7198
|
__v: number;
|
|
@@ -7290,6 +7292,8 @@ export namespace Service {
|
|
|
7290
7292
|
shipping_charge?: number;
|
|
7291
7293
|
payment_charge?: number;
|
|
7292
7294
|
total_with_charges?: number;
|
|
7295
|
+
media?: StringId[];
|
|
7296
|
+
signature?: StringId;
|
|
7293
7297
|
}
|
|
7294
7298
|
export interface UpdateBody {
|
|
7295
7299
|
_id?: string;
|
|
@@ -7392,6 +7396,8 @@ export namespace Service {
|
|
|
7392
7396
|
shipping_charge?: number;
|
|
7393
7397
|
payment_charge?: number;
|
|
7394
7398
|
total_with_charges?: number;
|
|
7399
|
+
media?: StringId[];
|
|
7400
|
+
signature?: StringId;
|
|
7395
7401
|
createdAt?: string;
|
|
7396
7402
|
updatedAt?: string;
|
|
7397
7403
|
__v?: number;
|
|
@@ -7539,8 +7545,16 @@ export namespace Service {
|
|
|
7539
7545
|
return_reason?: string | ReturnReason.Schema;
|
|
7540
7546
|
teams?: string[] | Team.TeamSchema[];
|
|
7541
7547
|
route?: string | Route.RouteSchema;
|
|
7548
|
+
media?: StringId[] | PopulatedMediaStorage[];
|
|
7549
|
+
signature?: StringId | PopulatedMediaStorage;
|
|
7542
7550
|
};
|
|
7543
|
-
type PopulatedKeys =
|
|
7551
|
+
type PopulatedKeys =
|
|
7552
|
+
| "custom_status"
|
|
7553
|
+
| "return_reason"
|
|
7554
|
+
| "teams"
|
|
7555
|
+
| "route"
|
|
7556
|
+
| "media"
|
|
7557
|
+
| "signature";
|
|
7544
7558
|
type ProformaStatus = "pending" | "approved" | "processing" | "rejected";
|
|
7545
7559
|
type VariantSortingKeys =
|
|
7546
7560
|
| "product_sku"
|