gap-nodejs-sdk 1.0.78 → 1.0.79
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.
|
@@ -29,9 +29,9 @@ export default class Product extends Base {
|
|
|
29
29
|
var _a;
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const formData = objectToFormData(data);
|
|
32
|
-
const response = yield this.client.
|
|
32
|
+
const response = yield this.client.post({
|
|
33
33
|
path: posEndpoints.product.CREATE_POS_PRODUCT,
|
|
34
|
-
|
|
34
|
+
data: formData
|
|
35
35
|
});
|
|
36
36
|
return Model.PosProductModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
37
37
|
});
|
|
@@ -8,25 +8,19 @@ export declare type GetPosListProductRequest = {
|
|
|
8
8
|
export declare type CreatePosProductRequest = {
|
|
9
9
|
name: string;
|
|
10
10
|
category_id: number;
|
|
11
|
-
|
|
12
|
-
id: number;
|
|
13
|
-
web_booking_visible: number;
|
|
14
|
-
price: number | string;
|
|
11
|
+
price: number;
|
|
15
12
|
description: string;
|
|
16
13
|
group_id: string;
|
|
17
14
|
status: number;
|
|
18
|
-
statusFilter: number;
|
|
19
15
|
};
|
|
20
16
|
export declare type UpdatePosProductRequest = {
|
|
21
17
|
id: number;
|
|
22
18
|
name: string;
|
|
23
19
|
category_id: number;
|
|
24
|
-
price: number
|
|
25
|
-
web_booking_visible: number;
|
|
20
|
+
price: number;
|
|
26
21
|
description: string;
|
|
27
22
|
group_id: string;
|
|
28
23
|
status: number;
|
|
29
|
-
statusFilter: number;
|
|
30
24
|
};
|
|
31
25
|
export declare type DeletePosProductRequest = {
|
|
32
26
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/product.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,wBAAwB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,oBAAY,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/product.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,wBAAwB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,oBAAY,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,oBAAY,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,oBAAY,uBAAuB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA"}
|