@nomalism-com/api 0.8.27 → 0.8.29
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export import IFindByIdRequest =
|
|
1
|
+
import { GoogleSheets as Entity } from '@nomalism-com/types';
|
|
2
|
+
export import IFindByIdRequest = Entity.IFindByIdRequest;
|
|
3
3
|
export import ICloneRequest = Entity.ICloneRequest;
|
|
4
4
|
export import ICloneResponse = Entity.ICloneResponse;
|
|
5
5
|
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
6
|
-
export declare const clone: (params:
|
|
6
|
+
export declare const clone: (params: Entity.IFindByIdRequest, data?: Entity.ICloneRequest | undefined) => Promise<Entity.ICloneResponse>, exportSheet: (params: Entity.IFindByIdRequest) => Promise<void>, getData: (params: Entity.IFindByIdRequest) => Promise<void>, update: (params: Entity.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<void>;
|
|
@@ -162,6 +162,17 @@ var repository = {
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
}); },
|
|
165
|
+
createWithSheet: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
166
|
+
var response;
|
|
167
|
+
return __generator(this, function (_a) {
|
|
168
|
+
switch (_a.label) {
|
|
169
|
+
case 0: return [4, client_1.default.post("".concat(exports.route, "sheet"), body)];
|
|
170
|
+
case 1:
|
|
171
|
+
response = _a.sent();
|
|
172
|
+
return [2, response.data];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}); },
|
|
165
176
|
createFromHeader: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
166
177
|
var response;
|
|
167
178
|
return __generator(this, function (_a) {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.8.
|
|
12
|
+
"version": "0.8.29",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "^4.9.5"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.9.
|
|
50
|
+
"@nomalism-com/types": "^0.9.35",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|