starta.apiclient 1.112.8839 → 1.112.8876
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.
|
@@ -7,8 +7,8 @@ export default class Products {
|
|
|
7
7
|
searchQuery?: string;
|
|
8
8
|
withTechcard?: boolean;
|
|
9
9
|
}): Promise<import("../../types").StartaResponse>;
|
|
10
|
-
add(organizationLogin: string, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, }: Product): Promise<import("../../types").StartaResponse>;
|
|
11
|
-
update(organizationLogin: string, productId: string, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, }: Product): Promise<import("../../types").StartaResponse>;
|
|
10
|
+
add(organizationLogin: string, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, numberToPrepare, }: Product): Promise<import("../../types").StartaResponse>;
|
|
11
|
+
update(organizationLogin: string, productId: string, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, numberToPrepare, }: Product): Promise<import("../../types").StartaResponse>;
|
|
12
12
|
delete(organizationLogin: string, productId: string): Promise<import("../../types").StartaResponse>;
|
|
13
13
|
get(organizationLogin: string, productId: string): Promise<import("../../types").StartaResponse>;
|
|
14
14
|
}
|
|
@@ -11,7 +11,7 @@ class Products {
|
|
|
11
11
|
method: 'GET',
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
add(organizationLogin, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, }) {
|
|
14
|
+
add(organizationLogin, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, numberToPrepare, }) {
|
|
15
15
|
return this._requestRunner.performRequest({
|
|
16
16
|
url: `accounts/${organizationLogin}/products`,
|
|
17
17
|
method: 'POST',
|
|
@@ -34,10 +34,11 @@ class Products {
|
|
|
34
34
|
publicName,
|
|
35
35
|
image,
|
|
36
36
|
description,
|
|
37
|
+
numberToPrepare,
|
|
37
38
|
},
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
|
-
update(organizationLogin, productId, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, }) {
|
|
41
|
+
update(organizationLogin, productId, { name, sku, category, categoryId, forSale, equals, forDisposal, netWeight, grossWeight, sellPrice, costPrice, criticalStock, desiredStock, allowSell, allowPublicBooking, publicName, image, description, numberToPrepare, }) {
|
|
41
42
|
return this._requestRunner.performRequest({
|
|
42
43
|
url: `accounts/${organizationLogin}/products/${productId}`,
|
|
43
44
|
method: 'PUT',
|
|
@@ -60,6 +61,7 @@ class Products {
|
|
|
60
61
|
publicName,
|
|
61
62
|
image,
|
|
62
63
|
description,
|
|
64
|
+
numberToPrepare,
|
|
63
65
|
},
|
|
64
66
|
});
|
|
65
67
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -94,12 +94,13 @@ export declare type Product = {
|
|
|
94
94
|
};
|
|
95
95
|
image?: string;
|
|
96
96
|
description?: {
|
|
97
|
-
default:
|
|
98
|
-
'en-us'?:
|
|
99
|
-
'uk-ua'?:
|
|
100
|
-
'pl-pl'?:
|
|
101
|
-
'ru-ru'?:
|
|
97
|
+
default: string;
|
|
98
|
+
'en-us'?: string;
|
|
99
|
+
'uk-ua'?: string;
|
|
100
|
+
'pl-pl'?: string;
|
|
101
|
+
'ru-ru'?: string;
|
|
102
102
|
};
|
|
103
|
+
numberToPrepare?: number;
|
|
103
104
|
};
|
|
104
105
|
export declare type ProductOperation = {
|
|
105
106
|
organizationLogin: string;
|