@nomalism-com/api 0.11.32 → 0.11.33
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.
|
@@ -37,6 +37,8 @@ export import IUpdateManyWithPersona = Entity.IUpdateManyWithPersona;
|
|
|
37
37
|
export import IFindResponse = Entity.IFindResponse;
|
|
38
38
|
export import ISendClientNotificationRequest = Entity.ISendClientNotificationRequest;
|
|
39
39
|
export import IDocumentPdfRequest = Entity.IDocumentPdfRequest;
|
|
40
|
+
export import IFindByTypeRequest = Entity.IFindByTypeRequest;
|
|
41
|
+
export import IFindByTypeResponse = Entity.IFindByTypeResponse;
|
|
40
42
|
export declare const route: string;
|
|
41
43
|
export declare const documentPdfStream: ({ id }: shared.IFindByIdRequest, params?: IDocumentPdfRequest) => Promise<any>;
|
|
42
44
|
export declare const getDocumentPdfUrl: ({ id }: shared.IFindByIdRequest, data?: IDocumentPdfRequest) => string;
|
|
@@ -105,6 +105,17 @@ var repository = {
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
}); },
|
|
108
|
+
findByType: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
109
|
+
var response;
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
switch (_a.label) {
|
|
112
|
+
case 0: return [4, client_1.default.get("".concat(exports.route, "by_type"), { params: params })];
|
|
113
|
+
case 1:
|
|
114
|
+
response = _a.sent();
|
|
115
|
+
return [2, response.data];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}); },
|
|
108
119
|
find: function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
109
120
|
var response;
|
|
110
121
|
return __generator(this, function (_a) {
|