@nomalism-com/api 0.14.1 → 0.14.3
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.
|
@@ -41,6 +41,7 @@ export default class Repository implements Entity.IApi {
|
|
|
41
41
|
validateByRef(params: IValidateByReferenceRequest): Promise<IEntityMinified | null>;
|
|
42
42
|
findByProductType(params: IFindByProductTypeRequest): Promise<IFindByProductTypeResponse[]>;
|
|
43
43
|
findById(selector: shared.IFindByIdRequest): Promise<IEntityExtended | null>;
|
|
44
|
+
googleSheetsFieldsByRef(params: IFindByReferenceRequest): Promise<string>;
|
|
44
45
|
findByPlot(selector: shared.IFindByIdRequest): Promise<IEntityExtended | null>;
|
|
45
46
|
findOrCreateProductionProduct(body: IFindOrCreateProductionProductRequest): Promise<IFindResponse>;
|
|
46
47
|
create(body: ICreateRequest): Promise<IFindResponse>;
|
|
@@ -161,6 +161,19 @@ var Repository = (function () {
|
|
|
161
161
|
});
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
|
+
Repository.prototype.googleSheetsFieldsByRef = function (params) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
+
var response;
|
|
167
|
+
return __generator(this, function (_a) {
|
|
168
|
+
switch (_a.label) {
|
|
169
|
+
case 0: return [4, this.api.get("".concat(this.route, "google_sheets_fields_by_ref/").concat(params.reference))];
|
|
170
|
+
case 1:
|
|
171
|
+
response = _a.sent();
|
|
172
|
+
return [2, response.data];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
};
|
|
164
177
|
Repository.prototype.findByPlot = function (selector) {
|
|
165
178
|
return __awaiter(this, void 0, void 0, function () {
|
|
166
179
|
var response;
|
|
@@ -455,15 +455,6 @@ var Repository = (function () {
|
|
|
455
455
|
if (data === null || data === void 0 ? void 0 : data.token) {
|
|
456
456
|
qs.set('token', data.token);
|
|
457
457
|
}
|
|
458
|
-
if (data === null || data === void 0 ? void 0 : data.hidePayments) {
|
|
459
|
-
qs.set('hidePayments', "".concat(data.hidePayments));
|
|
460
|
-
}
|
|
461
|
-
if (data === null || data === void 0 ? void 0 : data.hidePrices) {
|
|
462
|
-
qs.set('hidePrices', "".concat(data.hidePrices));
|
|
463
|
-
}
|
|
464
|
-
if (data === null || data === void 0 ? void 0 : data.hideTaxes) {
|
|
465
|
-
qs.set('hideTaxes', "".concat(data.hideTaxes));
|
|
466
|
-
}
|
|
467
458
|
return "".concat(this.route, "document_pdf/").concat(id, "?").concat(qs.toString());
|
|
468
459
|
};
|
|
469
460
|
return 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.3",
|
|
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.2"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.14.
|
|
50
|
+
"@nomalism-com/types": "^0.14.3",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|