@nomalism-com/api 0.43.34 → 0.43.35

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
@@ -848,6 +848,7 @@ declare class Repository$13 implements Nomalism$1.ExternalDocumentHeader.IReposi
848
848
  deleteOne(params?: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.ExternalDocumentHeader.Entity | null>;
849
849
  sendEmailDocument(body: Nomalism$1.ExternalDocumentHeader.ISendEmailDocumentRequest): Promise<void>;
850
850
  retry(body: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
851
+ create(body: Nomalism$1.ExternalDocumentHeader.ICreateRequest): Promise<Nomalism$1.ExternalDocumentHeader.Entity>;
851
852
  }
852
853
 
853
854
  declare namespace externalDocumentHeader {
package/dist/index.js CHANGED
@@ -2143,6 +2143,10 @@ var Repository56 = class {
2143
2143
  async retry(body) {
2144
2144
  await this.api.post(`${this.route}retry`, body);
2145
2145
  }
2146
+ async create(body) {
2147
+ const response = await this.api.post(`${this.route}`, body);
2148
+ return response.data;
2149
+ }
2146
2150
  };
2147
2151
 
2148
2152
  // src/modules/supply/vatValidation.ts
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": "0.43.34",
4
+ "version": "0.43.35",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,7 +23,7 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.43.37",
26
+ "@nomalism-com/types": "^0.43.38",
27
27
  "axios": "^1.13.6"
28
28
  },
29
29
  "devDependencies": {