@nomalism-com/api 0.45.59 → 0.45.60

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
@@ -11,6 +11,7 @@ __export(main_exports, {
11
11
  AccountCode: () => accountCode_exports,
12
12
  AdminPanel: () => adminPanel_exports,
13
13
  BankData: () => bankData_exports,
14
+ Catalogo: () => CAT_exports,
14
15
  Channel: () => channel_exports,
15
16
  ChatRapidMessage: () => chatRapidMessage_exports,
16
17
  ChatSubscriber: () => chatSubscriber_exports,
@@ -4425,6 +4426,22 @@ var TimesheetRepository = class {
4425
4426
  }
4426
4427
  };
4427
4428
 
4429
+ // src/modules/document/CAT.ts
4430
+ var CAT_exports = {};
4431
+ __export(CAT_exports, {
4432
+ default: () => Repository127
4433
+ });
4434
+ var Repository127 = class {
4435
+ constructor({ api, route }) {
4436
+ this.api = api;
4437
+ this.route = route;
4438
+ }
4439
+ async create(data) {
4440
+ const result = await this.api.post(`${this.route}pro_forma`, data);
4441
+ return result.data;
4442
+ }
4443
+ };
4444
+
4428
4445
  // src/main.ts
4429
4446
  var API = class {
4430
4447
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4725,6 +4742,7 @@ var API = class {
4725
4742
  getModuleParams("stock", Nomalism.ProductLocation.Route)
4726
4743
  );
4727
4744
  this.TimeSheet = new TimesheetRepository(getModuleParams("users", Nomalism.TimeSheet.Route));
4745
+ this.Catalogo = new Repository127(getModuleParams("stock", Nomalism.Catalogo.Route));
4728
4746
  }
4729
4747
  };
4730
4748
 
package/dist/main.d.ts CHANGED
@@ -127,6 +127,7 @@ import DocumentHeaderSubscriberClass from './modules/supply/documentHeaderSubscr
127
127
  import GoogleCalendarClass from './modules/stock/googleCalendar';
128
128
  import ProductLocationClass from './modules/stock/productLocation';
129
129
  import TimeSheetClass from './modules/user/timeSheet';
130
+ import CatalogoClass from './modules/document/CAT';
130
131
  export * as BankData from './modules/user/bankData';
131
132
  export * as Client from './modules/user/clients';
132
133
  export * as ClientType from './modules/user/clientType';
@@ -246,6 +247,7 @@ export * as DocumentHeaderSubscriber from './modules/supply/documentHeaderSubscr
246
247
  export * as GoogleCalendar from './modules/stock/googleCalendar';
247
248
  export * as ProductLocation from './modules/stock/productLocation';
248
249
  export * as TimeSheet from './modules/user/timeSheet';
250
+ export * as Catalogo from './modules/document/CAT';
249
251
  export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
250
252
  type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm';
251
253
  export interface IOptions {
@@ -391,6 +393,7 @@ export declare class API {
391
393
  GoogleCalendar: GoogleCalendarClass;
392
394
  ProductLocation: ProductLocationClass;
393
395
  TimeSheet: TimeSheetClass;
396
+ Catalogo: CatalogoClass;
394
397
  private defaultHeaders;
395
398
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }: IOptions);
396
399
  }
@@ -0,0 +1,8 @@
1
+ import Nomalism from '@nomalism-com/types';
2
+ import { IModuleConstructor } from '../../main';
3
+ export default class Repository implements Nomalism.Catalogo.IRepository {
4
+ route: string;
5
+ private api;
6
+ constructor({ api, route }: IModuleConstructor);
7
+ create(data: Nomalism.Catalogo.ICreateRequest): Promise<void>;
8
+ }
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.45.59",
4
+ "version": "0.45.60",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,14 +23,14 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.45.64",
26
+ "@nomalism-com/types": "^0.45.66",
27
27
  "axios": "^1.17.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@swc/core": "^1.15.40",
31
- "@types/node": "^24.12.4",
32
- "@typescript-eslint/eslint-plugin": "^8.60.1",
33
- "@typescript-eslint/parser": "^8.60.1",
31
+ "@types/node": "^24.13.1",
32
+ "@typescript-eslint/eslint-plugin": "^8.61.0",
33
+ "@typescript-eslint/parser": "^8.61.0",
34
34
  "eslint": "^9.39.4",
35
35
  "eslint-config-prettier": "^10.1.8",
36
36
  "eslint-import-resolver-typescript": "^4.4.5",