@nomalism-com/api 1.2.1 → 1.2.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.
- package/dist/index.d.ts +5 -4
- package/dist/index.js +10 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -118,8 +118,8 @@ declare class Repository$1H implements Nomalism$1.DocumentHeader.IRepository {
|
|
|
118
118
|
publicRoute: string;
|
|
119
119
|
private api;
|
|
120
120
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
121
|
-
findOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.
|
|
122
|
-
findStart(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.
|
|
121
|
+
findOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.IFindOneBase | null>;
|
|
122
|
+
findStart(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.IFindOneBase | null>;
|
|
123
123
|
findStartVirtual(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.IStartDocumentHeaderVirtuals | null>;
|
|
124
124
|
findByBasicSearch(params: Nomalism$1.DocumentHeader.IBasicSearchRequest): Promise<Nomalism$1.shared.IPaginationResponse<Nomalism$1.DocumentHeader.IBasicSearchResponse>>;
|
|
125
125
|
findByType(params: Nomalism$1.DocumentHeader.IFindByTypeRequest): Promise<Nomalism$1.DocumentHeader.IFindByTypeResponse[]>;
|
|
@@ -140,7 +140,6 @@ declare class Repository$1H implements Nomalism$1.DocumentHeader.IRepository {
|
|
|
140
140
|
getDocumentPdfUrl({ id }: Nomalism$1.shared.IFindByIdRequest, data?: Nomalism$1.DocumentHeader.IDocumentPdfRequest): string;
|
|
141
141
|
documentThermalPrint({ id }: Nomalism$1.shared.IFindByIdRequest): Promise<string>;
|
|
142
142
|
documentList({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.IDocumentListResponse[]>;
|
|
143
|
-
getAllRelatedDocumentHeaderIds({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<string[]>;
|
|
144
143
|
findStartDocumentHeaderSiblings({ id, }: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentHeader.IFindStartDocumentHeaderSiblingsResponse>;
|
|
145
144
|
findRmOpenDocuments(): Promise<Nomalism$1.DocumentHeader.IFindRmOpenDocuments[]>;
|
|
146
145
|
regularizarMultiplosDocumentos(data: Nomalism$1.DocumentHeader.IMultipleRegularizations): Promise<void>;
|
|
@@ -1402,7 +1401,8 @@ declare class Repository$r implements Nomalism$1.Transformado.IRepository {
|
|
|
1402
1401
|
publicRoute: string;
|
|
1403
1402
|
private api;
|
|
1404
1403
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
1405
|
-
|
|
1404
|
+
transformar(body: Nomalism$1.Transformado.ITransformar): Promise<string>;
|
|
1405
|
+
destransformar(body: Nomalism$1.Transformado.IDestransformar): Promise<string>;
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
declare namespace transformado {
|
|
@@ -1624,6 +1624,7 @@ declare class Repository$d implements Nomalism$1.Task.IRepository {
|
|
|
1624
1624
|
find(selector: Nomalism$1.Task.IFindTasksRequest): Promise<Nomalism$1.Task.IFindResponse[]>;
|
|
1625
1625
|
findWithMessages(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Task.IFindWithMessagesResponse>;
|
|
1626
1626
|
create(body: Nomalism$1.Task.ICreateRequest): Promise<Nomalism$1.Task.Entity>;
|
|
1627
|
+
createFromDossier(body: Nomalism$1.Task.ICreateFromDossierRequest): Promise<Nomalism$1.Task.Entity>;
|
|
1627
1628
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Task.IUpdateRequest): Promise<void>;
|
|
1628
1629
|
delete(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1629
1630
|
findByOwnerId(selector: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.Task.IFindByOwnerResponse[]>;
|
package/dist/index.js
CHANGED
|
@@ -500,12 +500,6 @@ var Repository7 = class {
|
|
|
500
500
|
const result = await this.api.post(`${this.route}document_list/${id}`);
|
|
501
501
|
return result.data;
|
|
502
502
|
}
|
|
503
|
-
async getAllRelatedDocumentHeaderIds({
|
|
504
|
-
id
|
|
505
|
-
}) {
|
|
506
|
-
const result = await this.api.get(`${this.route}related/${id}`);
|
|
507
|
-
return result.data;
|
|
508
|
-
}
|
|
509
503
|
async findStartDocumentHeaderSiblings({
|
|
510
504
|
id
|
|
511
505
|
}) {
|
|
@@ -3309,8 +3303,12 @@ var Repository87 = class {
|
|
|
3309
3303
|
this.route = route;
|
|
3310
3304
|
this.publicRoute = publicRoute;
|
|
3311
3305
|
}
|
|
3312
|
-
async
|
|
3313
|
-
const response = await this.api.post(`${this.route}`, body);
|
|
3306
|
+
async transformar(body) {
|
|
3307
|
+
const response = await this.api.post(`${this.route}transformar`, body);
|
|
3308
|
+
return response.data;
|
|
3309
|
+
}
|
|
3310
|
+
async destransformar(body) {
|
|
3311
|
+
const response = await this.api.post(`${this.route}destransformar`, body);
|
|
3314
3312
|
return response.data;
|
|
3315
3313
|
}
|
|
3316
3314
|
};
|
|
@@ -3776,6 +3774,10 @@ var Repository101 = class {
|
|
|
3776
3774
|
const response = await this.api.post(`${this.route}`, body);
|
|
3777
3775
|
return response.data;
|
|
3778
3776
|
}
|
|
3777
|
+
async createFromDossier(body) {
|
|
3778
|
+
const response = await this.api.post(`${this.route}from_dossier`, body);
|
|
3779
|
+
return response.data;
|
|
3780
|
+
}
|
|
3779
3781
|
async update(selector, body) {
|
|
3780
3782
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
3781
3783
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|