@nomalism-com/api 1.3.42 → 1.3.44

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.js CHANGED
@@ -130,8 +130,7 @@ __export(main_exports, {
130
130
  VatTaxZone: () => vatTaxZone_exports,
131
131
  VatValidation: () => vatValidation_exports,
132
132
  Vehicles: () => vehicles_exports,
133
- Workflow: () => workflow_exports,
134
- ZipCode: () => zipCode_exports
133
+ Workflow: () => workflow_exports
135
134
  });
136
135
  import Nomalism from "@nomalism-com/types";
137
136
  import axios2, { AxiosHeaders } from "axios";
@@ -5399,34 +5398,12 @@ var Repository128 = class {
5399
5398
  }
5400
5399
  };
5401
5400
 
5402
- // src/modules/user/zipCode.ts
5403
- var zipCode_exports = {};
5404
- __export(zipCode_exports, {
5405
- default: () => Repository129
5406
- });
5407
- var Repository129 = class {
5408
- constructor({ api, route }) {
5409
- this.api = api;
5410
- this.route = route;
5411
- }
5412
- async create(body) {
5413
- await this.api.post(`${this.route}`, body);
5414
- }
5415
- async findByPostalCode(params) {
5416
- const response = await this.api.get(
5417
- `${this.route}`,
5418
- { params }
5419
- );
5420
- return response.data;
5421
- }
5422
- };
5423
-
5424
5401
  // src/modules/view/adminPanel.ts
5425
5402
  var adminPanel_exports = {};
5426
5403
  __export(adminPanel_exports, {
5427
- default: () => Repository130
5404
+ default: () => Repository129
5428
5405
  });
5429
- var Repository130 = class {
5406
+ var Repository129 = class {
5430
5407
  constructor({ api, route }) {
5431
5408
  this.api = api;
5432
5409
  this.route = route;
@@ -5443,9 +5420,9 @@ var Repository130 = class {
5443
5420
  // src/modules/view/errorLog.ts
5444
5421
  var errorLog_exports = {};
5445
5422
  __export(errorLog_exports, {
5446
- default: () => Repository131
5423
+ default: () => Repository130
5447
5424
  });
5448
- var Repository131 = class {
5425
+ var Repository130 = class {
5449
5426
  constructor({ api, route }) {
5450
5427
  this.api = api;
5451
5428
  this.route = route;
@@ -5801,9 +5778,6 @@ var API = class {
5801
5778
  this.StockMovement = new Repository60(
5802
5779
  getModuleParams("stock", Nomalism.StockMovement.Route)
5803
5780
  );
5804
- this.ZipCode = new Repository129(
5805
- getModuleParams("users", Nomalism.ZipCode.Route)
5806
- );
5807
5781
  this.Tenant = new Repository124(
5808
5782
  getModuleParams("users", Nomalism.Tenant.Route)
5809
5783
  );
@@ -5935,10 +5909,10 @@ var API = class {
5935
5909
  this.SidemenuHighlight = new Repository99(
5936
5910
  getModuleParams("stock", Nomalism.SidemenuHighlight.Route)
5937
5911
  );
5938
- this.ErrorLog = new Repository131(
5912
+ this.ErrorLog = new Repository130(
5939
5913
  getModuleParams("view", Nomalism.ErrorLog.Route)
5940
5914
  );
5941
- this.AdminPanel = new Repository130(
5915
+ this.AdminPanel = new Repository129(
5942
5916
  getModuleParams("view", Nomalism.AdminPanel.Route)
5943
5917
  );
5944
5918
  this.DocumentLineRm = new Repository78(
package/dist/main.d.ts CHANGED
@@ -128,7 +128,6 @@ import TimeSheetClass from "./modules/user/timeSheet";
128
128
  import UsersClass from "./modules/user/user";
129
129
  import UserPositionsClass from "./modules/user/userPositions";
130
130
  import VehiclesClass from "./modules/user/vehicles";
131
- import ZipCodeClass from "./modules/user/zipCode";
132
131
  import AdminPanelClass from "./modules/view/adminPanel";
133
132
  import ErrorLogClass from "./modules/view/errorLog";
134
133
  import WebSocketClass from "./modules/view/webSocket";
@@ -253,7 +252,6 @@ export * as TimeSheet from "./modules/user/timeSheet";
253
252
  export * as Users from "./modules/user/user";
254
253
  export * as UserPositions from "./modules/user/userPositions";
255
254
  export * as Vehicles from "./modules/user/vehicles";
256
- export * as ZipCode from "./modules/user/zipCode";
257
255
  export * as AdminPanel from "./modules/view/adminPanel";
258
256
  export * as ErrorLog from "./modules/view/errorLog";
259
257
  export type IEnvironment = "production" | "uat" | "development" | "localhost";
@@ -332,7 +330,6 @@ export declare class API {
332
330
  ExternalDocumentHeader: ExternalDocumentHeaderClass;
333
331
  VatValidation: VatValidationClass;
334
332
  StockMovement: StockMovementClass;
335
- ZipCode: ZipCodeClass;
336
333
  Tenant: TenantClass;
337
334
  PreSale: PreSaleClass;
338
335
  PreSaleProduct: PreSaleProductClass;
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.3.42",
4
+ "version": "1.3.44",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "prepare": "husky"
25
25
  },
26
26
  "dependencies": {
27
- "@nomalism-com/types": "^1.3.44",
27
+ "@nomalism-com/types": "^1.3.46",
28
28
  "axios": "^1.18.1"
29
29
  },
30
30
  "devDependencies": {
@@ -41,7 +41,7 @@
41
41
  "lint-staged": "^17.0.8",
42
42
  "prettier": "^3.9.5",
43
43
  "tsup": "^8.5.1",
44
- "typescript-eslint": "^8.63.0"
44
+ "typescript-eslint": "^8.64.0"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",
@@ -1,9 +0,0 @@
1
- import Nomalism from "@nomalism-com/types";
2
- import { IModuleConstructor } from "../../main";
3
- export default class Repository implements Nomalism.ZipCode.IRepository {
4
- route: string;
5
- private api;
6
- constructor({ api, route }: IModuleConstructor);
7
- create(body: Nomalism.ZipCode.ICreateRequest[]): Promise<void>;
8
- findByPostalCode(params: Nomalism.ZipCode.IFindByPostalCode): Promise<Nomalism.ZipCode.Entity[]>;
9
- }