@nomalism-com/api 1.2.1 → 1.2.2

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 CHANGED
@@ -1402,7 +1402,8 @@ declare class Repository$r implements Nomalism$1.Transformado.IRepository {
1402
1402
  publicRoute: string;
1403
1403
  private api;
1404
1404
  constructor({ api, route, publicRoute }: IModuleConstructor);
1405
- create(body: Nomalism$1.Transformado.ICreateTransformado): Promise<string>;
1405
+ transformar(body: Nomalism$1.Transformado.ITransformar): Promise<string>;
1406
+ destransformar(body: Nomalism$1.Transformado.IDestransformar): Promise<string>;
1406
1407
  }
1407
1408
 
1408
1409
  declare namespace transformado {
@@ -1624,6 +1625,7 @@ declare class Repository$d implements Nomalism$1.Task.IRepository {
1624
1625
  find(selector: Nomalism$1.Task.IFindTasksRequest): Promise<Nomalism$1.Task.IFindResponse[]>;
1625
1626
  findWithMessages(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Task.IFindWithMessagesResponse>;
1626
1627
  create(body: Nomalism$1.Task.ICreateRequest): Promise<Nomalism$1.Task.Entity>;
1628
+ createFromDossier(body: Nomalism$1.Task.ICreateFromDossierRequest): Promise<Nomalism$1.Task.Entity>;
1627
1629
  update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Task.IUpdateRequest): Promise<void>;
1628
1630
  delete(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
1629
1631
  findByOwnerId(selector: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.Task.IFindByOwnerResponse[]>;
package/dist/index.js CHANGED
@@ -3309,8 +3309,12 @@ var Repository87 = class {
3309
3309
  this.route = route;
3310
3310
  this.publicRoute = publicRoute;
3311
3311
  }
3312
- async create(body) {
3313
- const response = await this.api.post(`${this.route}`, body);
3312
+ async transformar(body) {
3313
+ const response = await this.api.post(`${this.route}transformar`, body);
3314
+ return response.data;
3315
+ }
3316
+ async destransformar(body) {
3317
+ const response = await this.api.post(`${this.route}destransformar`, body);
3314
3318
  return response.data;
3315
3319
  }
3316
3320
  };
@@ -3776,6 +3780,10 @@ var Repository101 = class {
3776
3780
  const response = await this.api.post(`${this.route}`, body);
3777
3781
  return response.data;
3778
3782
  }
3783
+ async createFromDossier(body) {
3784
+ const response = await this.api.post(`${this.route}from_dossier`, body);
3785
+ return response.data;
3786
+ }
3779
3787
  async update(selector, body) {
3780
3788
  await this.api.put(`${this.route}${selector.id}`, body);
3781
3789
  }
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.1",
4
+ "version": "1.2.2",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",