@nomalism-com/api 0.16.23 → 0.16.25
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.
|
@@ -39,6 +39,7 @@ export import ISendClientNotificationRequest = Entity.ISendClientNotificationReq
|
|
|
39
39
|
export import IDocumentPdfRequest = Entity.IDocumentPdfRequest;
|
|
40
40
|
export import IFindByTypeRequest = Entity.IFindByTypeRequest;
|
|
41
41
|
export import IFindByTypeResponse = Entity.IFindByTypeResponse;
|
|
42
|
+
export import IDocumentListResponse = Entity.IDocumentListResponse;
|
|
42
43
|
export default class Repository implements Entity.IApi {
|
|
43
44
|
route: string;
|
|
44
45
|
publicRoute: string;
|
|
@@ -74,4 +75,5 @@ export default class Repository implements Entity.IApi {
|
|
|
74
75
|
documentPdf({ id }: shared.IFindByIdRequest): Promise<string>;
|
|
75
76
|
documentPdfStream({ id }: shared.IFindByIdRequest, params?: IDocumentPdfRequest): Promise<any>;
|
|
76
77
|
getDocumentPdfUrl({ id }: shared.IFindByIdRequest, data?: IDocumentPdfRequest): string;
|
|
78
|
+
documentList({ id, }: shared.IFindByIdRequest): Promise<Entity.IDocumentListResponse[]>;
|
|
77
79
|
}
|
|
@@ -444,6 +444,20 @@ var Repository = (function () {
|
|
|
444
444
|
}
|
|
445
445
|
return "".concat(this.route, "document_pdf/").concat(id, "?").concat(qs.toString());
|
|
446
446
|
};
|
|
447
|
+
Repository.prototype.documentList = function (_a) {
|
|
448
|
+
var id = _a.id;
|
|
449
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
450
|
+
var result;
|
|
451
|
+
return __generator(this, function (_b) {
|
|
452
|
+
switch (_b.label) {
|
|
453
|
+
case 0: return [4, this.api.post("".concat(this.route, "document_list/").concat(id))];
|
|
454
|
+
case 1:
|
|
455
|
+
result = _b.sent();
|
|
456
|
+
return [2, result.data];
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
});
|
|
460
|
+
};
|
|
447
461
|
return Repository;
|
|
448
462
|
}());
|
|
449
463
|
exports.default = Repository;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.16.
|
|
12
|
+
"version": "0.16.25",
|
|
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.16.
|
|
50
|
+
"@nomalism-com/types": "^0.16.37",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|