@nomalism-com/api 0.47.12 → 0.47.14

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
@@ -131,8 +131,7 @@ __export(main_exports, {
131
131
  VatTaxZone: () => vatTaxZone_exports,
132
132
  VatValidation: () => vatValidation_exports,
133
133
  Vehicles: () => vehicles_exports,
134
- Workflow: () => workflow_exports,
135
- ZipCode: () => zipCode_exports
134
+ Workflow: () => workflow_exports
136
135
  });
137
136
  import Nomalism from "@nomalism-com/types";
138
137
  import axios2, { AxiosHeaders } from "axios";
@@ -5451,34 +5450,12 @@ var Repository129 = class {
5451
5450
  }
5452
5451
  };
5453
5452
 
5454
- // src/modules/user/zipCode.ts
5455
- var zipCode_exports = {};
5456
- __export(zipCode_exports, {
5457
- default: () => Repository130
5458
- });
5459
- var Repository130 = class {
5460
- constructor({ api, route }) {
5461
- this.api = api;
5462
- this.route = route;
5463
- }
5464
- async create(body) {
5465
- await this.api.post(`${this.route}`, body);
5466
- }
5467
- async findByPostalCode(params) {
5468
- const response = await this.api.get(
5469
- `${this.route}`,
5470
- { params }
5471
- );
5472
- return response.data;
5473
- }
5474
- };
5475
-
5476
5453
  // src/modules/view/adminPanel.ts
5477
5454
  var adminPanel_exports = {};
5478
5455
  __export(adminPanel_exports, {
5479
- default: () => Repository131
5456
+ default: () => Repository130
5480
5457
  });
5481
- var Repository131 = class {
5458
+ var Repository130 = class {
5482
5459
  constructor({ api, route }) {
5483
5460
  this.api = api;
5484
5461
  this.route = route;
@@ -5495,9 +5472,9 @@ var Repository131 = class {
5495
5472
  // src/modules/view/errorLog.ts
5496
5473
  var errorLog_exports = {};
5497
5474
  __export(errorLog_exports, {
5498
- default: () => Repository132
5475
+ default: () => Repository131
5499
5476
  });
5500
- var Repository132 = class {
5477
+ var Repository131 = class {
5501
5478
  constructor({ api, route }) {
5502
5479
  this.api = api;
5503
5480
  this.route = route;
@@ -5853,9 +5830,6 @@ var API = class {
5853
5830
  this.StockMovement = new Repository61(
5854
5831
  getModuleParams("stock", Nomalism.StockMovement.Route)
5855
5832
  );
5856
- this.ZipCode = new Repository130(
5857
- getModuleParams("users", Nomalism.ZipCode.Route)
5858
- );
5859
5833
  this.Tenant = new Repository125(
5860
5834
  getModuleParams("users", Nomalism.Tenant.Route)
5861
5835
  );
@@ -5987,10 +5961,10 @@ var API = class {
5987
5961
  this.SidemenuHighlight = new Repository100(
5988
5962
  getModuleParams("stock", Nomalism.SidemenuHighlight.Route)
5989
5963
  );
5990
- this.ErrorLog = new Repository132(
5964
+ this.ErrorLog = new Repository131(
5991
5965
  getModuleParams("view", Nomalism.ErrorLog.Route)
5992
5966
  );
5993
- this.AdminPanel = new Repository131(
5967
+ this.AdminPanel = new Repository130(
5994
5968
  getModuleParams("view", Nomalism.AdminPanel.Route)
5995
5969
  );
5996
5970
  this.DocumentLineRm = new Repository79(
package/dist/main.d.ts CHANGED
@@ -129,7 +129,6 @@ import TimeSheetClass from "./modules/user/timeSheet";
129
129
  import UsersClass from "./modules/user/user";
130
130
  import UserPositionsClass from "./modules/user/userPositions";
131
131
  import VehiclesClass from "./modules/user/vehicles";
132
- import ZipCodeClass from "./modules/user/zipCode";
133
132
  import AdminPanelClass from "./modules/view/adminPanel";
134
133
  import ErrorLogClass from "./modules/view/errorLog";
135
134
  import WebSocketClass from "./modules/view/webSocket";
@@ -255,7 +254,6 @@ export * as TimeSheet from "./modules/user/timeSheet";
255
254
  export * as Users from "./modules/user/user";
256
255
  export * as UserPositions from "./modules/user/userPositions";
257
256
  export * as Vehicles from "./modules/user/vehicles";
258
- export * as ZipCode from "./modules/user/zipCode";
259
257
  export * as AdminPanel from "./modules/view/adminPanel";
260
258
  export * as ErrorLog from "./modules/view/errorLog";
261
259
  export type IEnvironment = "production" | "uat" | "development" | "localhost";
@@ -334,7 +332,6 @@ export declare class API {
334
332
  ExternalDocumentHeader: ExternalDocumentHeaderClass;
335
333
  VatValidation: VatValidationClass;
336
334
  StockMovement: StockMovementClass;
337
- ZipCode: ZipCodeClass;
338
335
  Tenant: TenantClass;
339
336
  PreSale: PreSaleClass;
340
337
  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": "0.47.12",
4
+ "version": "0.47.14",
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": "^0.47.12",
27
+ "@nomalism-com/types": "^0.47.15",
28
28
  "axios": "^1.18.1"
29
29
  },
30
30
  "devDependencies": {
@@ -39,7 +39,7 @@
39
39
  "globals": "^17.7.0",
40
40
  "husky": "^9.1.7",
41
41
  "lint-staged": "^17.1.0",
42
- "prettier": "^3.9.5",
42
+ "prettier": "^3.9.6",
43
43
  "tsup": "^8.5.1",
44
44
  "typescript-eslint": "^8.65.0"
45
45
  },
@@ -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
- }