@nomalism-com/api 0.14.7 → 0.14.9
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.
|
@@ -51,4 +51,5 @@ export default class Repository implements Entity.IApi {
|
|
|
51
51
|
bulkUpdate(body: IBulkUpdateRequest): Promise<IUpdateManyResponse>;
|
|
52
52
|
duplicateProduct(selector: shared.IFindByIdRequest, body: IDuplicateProductRequest): Promise<string>;
|
|
53
53
|
printLabelToPdfUrl({ id }: shared.IFindByIdRequest, token: string): string;
|
|
54
|
+
updateGoogleSheetsLinesProduct(body: shared.IFindByIdRequest[]): Promise<void>;
|
|
54
55
|
}
|
|
@@ -286,6 +286,19 @@ var Repository = (function () {
|
|
|
286
286
|
qs.set('token', token);
|
|
287
287
|
return "".concat(this.publicRoute, "print_label_pdf/").concat(id, "?").concat(qs.toString());
|
|
288
288
|
};
|
|
289
|
+
Repository.prototype.updateGoogleSheetsLinesProduct = function (body) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
291
|
+
var response;
|
|
292
|
+
return __generator(this, function (_a) {
|
|
293
|
+
switch (_a.label) {
|
|
294
|
+
case 0: return [4, this.api.put("".concat(this.route, "update_google_sheets_lines_product"), body)];
|
|
295
|
+
case 1:
|
|
296
|
+
response = _a.sent();
|
|
297
|
+
return [2, response.data];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
};
|
|
289
302
|
return Repository;
|
|
290
303
|
}());
|
|
291
304
|
exports.default = Repository;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.14.
|
|
12
|
+
"version": "0.14.9",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "^5.3.3"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.14.
|
|
50
|
+
"@nomalism-com/types": "^0.14.15",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|