@nomalism-com/api 0.43.22 → 0.43.24

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
@@ -209,7 +209,7 @@ declare class Repository$1F implements Nomalism$1.DocumentLine.IRepository {
209
209
  create(body: Nomalism$1.DocumentLine.ICreateRequest[]): Promise<Nomalism$1.DocumentLineAssoc.IEntityExtended[]>;
210
210
  update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.DocumentLine.IUpdateRequest): Promise<void>;
211
211
  updateIndexes(document_line_ids: string[]): Promise<void>;
212
- updateData(data: Nomalism$1.DocumentLine.IUpdateDataRequest): Promise<Nomalism$1.DocumentLineAssoc.IEntityWithDocumentLine[]>;
212
+ updateData(data: Nomalism$1.DocumentLine.IUpdateDataRequest): Promise<Nomalism$1.DocumentLine.IEntityWithDocumentLine[]>;
213
213
  updateMany(data: Nomalism$1.DocumentLine.IUpdateManyRequest): Promise<void>;
214
214
  updateManyByDocumentHeader(params: Nomalism$1.shared.IFindByIdRequest, data: Nomalism$1.DocumentLine.IUpdateManyByDocumentHeaderRequest): Promise<void>;
215
215
  deleteMany(document_line_ids: string[]): Promise<void>;
@@ -221,15 +221,13 @@ declare namespace documentLine {
221
221
  export { Repository$1F as default };
222
222
  }
223
223
 
224
- declare class Repository$1E implements Nomalism$1.DocumentLineAssoc.IApi {
224
+ declare class Repository$1E implements Nomalism$1.DocumentLineAssoc.IRepository {
225
225
  route: string;
226
226
  private api;
227
227
  constructor({ api, route }: IModuleConstructor);
228
228
  findByOwnerId(params?: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.DocumentLineAssoc.IEntityExtended[]>;
229
229
  findVirtualsByOwnerId(params?: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.DocumentLine.IDocumentLineVirtuals[]>;
230
230
  findHistoryByLineId(params: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.DocumentLine.IHistory[]>;
231
- create(body: Nomalism$1.DocumentLineAssoc.ICreateRequest[]): Promise<Nomalism$1.DocumentLineAssoc.IEntityWithDocumentLine[]>;
232
- update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.DocumentLineAssoc.IUpdateRequest): Promise<Nomalism$1.DocumentLineAssoc.IEntityWithDocumentLine>;
233
231
  }
234
232
 
235
233
  declare namespace documentLineAssoc {
package/dist/index.js CHANGED
@@ -686,14 +686,6 @@ var Repository17 = class {
686
686
  });
687
687
  return response.data;
688
688
  }
689
- async create(body) {
690
- const response = await this.api.post(`${this.route}`, body);
691
- return response.data;
692
- }
693
- async update(selector, body) {
694
- const response = await this.api.put(`${this.route}${selector.id}`, body);
695
- return response.data;
696
- }
697
689
  };
698
690
 
699
691
  // src/modules/supply/documentType.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.22",
4
+ "version": "0.43.24",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,15 +23,15 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.43.22",
26
+ "@nomalism-com/types": "^0.43.25",
27
27
  "axios": "^1.13.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@swc/core": "^1.15.11",
31
- "@types/node": "^24.10.13",
32
- "@typescript-eslint/eslint-plugin": "^8.55.0",
33
- "@typescript-eslint/parser": "^8.55.0",
34
- "eslint": "^9.39.2",
30
+ "@swc/core": "^1.15.13",
31
+ "@types/node": "^24.10.14",
32
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
33
+ "@typescript-eslint/parser": "^8.56.1",
34
+ "eslint": "^9.39.3",
35
35
  "eslint-config-prettier": "^10.1.8",
36
36
  "eslint-import-resolver-typescript": "^4.4.4",
37
37
  "eslint-plugin-prettier": "^5.5.5",