@nomalism-com/api 0.17.6 → 0.17.7
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.
|
@@ -6,6 +6,7 @@ export import IFindByGooglesheetIdResponse = Entity.IFindByGooglesheetIdResponse
|
|
|
6
6
|
export import IDocumentLinePendingConflict = Entity.Entity;
|
|
7
7
|
export import IConflictFindByOwnerIdResponse = Entity.IConflictFindByOwnerIdResponse;
|
|
8
8
|
export import ICreateSheetFromDocumentResponse = Entity.ICreateSheetFromDocumentResponse;
|
|
9
|
+
export import ICloneSheetsToNewDocument = Entity.ICloneSheetFromDocument;
|
|
9
10
|
export import IIsProcessingResponse = Entity.IIsProcessingResponse;
|
|
10
11
|
export default class Repository implements Entity.IRepository {
|
|
11
12
|
route: string;
|
|
@@ -15,6 +16,7 @@ export default class Repository implements Entity.IRepository {
|
|
|
15
16
|
isProcessing(params: shared.IFindByIdRequest): Promise<IIsProcessingResponse>;
|
|
16
17
|
importFromSheet(params: shared.IFindByIdRequest): Promise<IFindByGooglesheetIdResponse>;
|
|
17
18
|
createSheetFromDocument(params: shared.IFindByIdRequest): Promise<ICreateSheetFromDocumentResponse>;
|
|
19
|
+
cloneSheetsToNewDocument(params: shared.IFindByIdRequest): Promise<ICloneSheetsToNewDocument>;
|
|
18
20
|
conflictAccept(params: shared.IFindByIdRequest): Promise<void>;
|
|
19
21
|
conflictDelete(data: shared.IFindByIdRequest): Promise<void>;
|
|
20
22
|
conflictFindByOwnerId(params: shared.IFindByOwnerIdRequest): Promise<IConflictFindByOwnerIdResponse[]>;
|
|
@@ -89,6 +89,19 @@ var Repository = (function () {
|
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
+
Repository.prototype.cloneSheetsToNewDocument = function (params) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
94
|
+
var response;
|
|
95
|
+
return __generator(this, function (_a) {
|
|
96
|
+
switch (_a.label) {
|
|
97
|
+
case 0: return [4, this.api.post("".concat(this.route, "clone_sheets_to_new_document"), params)];
|
|
98
|
+
case 1:
|
|
99
|
+
response = _a.sent();
|
|
100
|
+
return [2, response.data];
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
92
105
|
Repository.prototype.conflictAccept = function (params) {
|
|
93
106
|
return __awaiter(this, void 0, void 0, function () {
|
|
94
107
|
return __generator(this, function (_a) {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.17.
|
|
12
|
+
"version": "0.17.7",
|
|
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.17.
|
|
50
|
+
"@nomalism-com/types": "^0.17.23",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|