@nomalism-com/api 0.45.24 → 0.45.26

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
@@ -74,6 +74,7 @@ __export(main_exports, {
74
74
  Prison: () => prison_exports,
75
75
  ProductGoogleSheets: () => productGoogleSheets_exports,
76
76
  ProductImage: () => productImage_exports,
77
+ ProductLocation: () => productLocation_exports,
77
78
  ProjectInfo: () => projectInfo_exports,
78
79
  Promotion: () => promotion_exports,
79
80
  PromotionAssoc: () => promotionAssoc_exports,
@@ -4319,6 +4320,22 @@ var Repository123 = class {
4319
4320
  }
4320
4321
  };
4321
4322
 
4323
+ // src/modules/stock/productLocation.ts
4324
+ var productLocation_exports = {};
4325
+ __export(productLocation_exports, {
4326
+ default: () => Repository124
4327
+ });
4328
+ var Repository124 = class {
4329
+ constructor({ api, route }) {
4330
+ this.api = api;
4331
+ this.route = route;
4332
+ }
4333
+ async findMany() {
4334
+ const response = await this.api.get(`${this.route}find_many`);
4335
+ return response.data;
4336
+ }
4337
+ };
4338
+
4322
4339
  // src/main.ts
4323
4340
  var API = class {
4324
4341
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4609,6 +4626,9 @@ var API = class {
4609
4626
  this.GoogleCalendar = new Repository123(
4610
4627
  getModuleParams("stock", Nomalism.GoogleCalendar.Route)
4611
4628
  );
4629
+ this.ProductLocation = new Repository124(
4630
+ getModuleParams("stock", Nomalism.ProductLocation.Route)
4631
+ );
4612
4632
  }
4613
4633
  };
4614
4634
 
package/dist/main.d.ts CHANGED
@@ -123,6 +123,7 @@ import PatchNotesClass from './modules/integration/patchNotes';
123
123
  import DocumentHeaderSurveyClass from './modules/supply/documentHeaderSurvey';
124
124
  import DocumentHeaderSubscriberClass from './modules/supply/documentHeaderSubscriber';
125
125
  import GoogleCalendarClass from './modules/stock/googleCalendar';
126
+ import ProductLocationClass from './modules/stock/productLocation';
126
127
  export * as BankData from './modules/user/bankData';
127
128
  export * as Client from './modules/user/clients';
128
129
  export * as ClientType from './modules/user/clientType';
@@ -238,6 +239,7 @@ export * as PatchNotes from './modules/integration/patchNotes';
238
239
  export * as DocumentHeaderSurvey from './modules/supply/documentHeaderSurvey';
239
240
  export * as DocumentHeaderSubscriber from './modules/supply/documentHeaderSubscriber';
240
241
  export * as GoogleCalendar from './modules/stock/googleCalendar';
242
+ export * as ProductLocation from './modules/stock/productLocation';
241
243
  export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
242
244
  type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm';
243
245
  export interface IOptions {
@@ -379,6 +381,7 @@ export declare class API {
379
381
  DocumentHeaderSurvey: DocumentHeaderSurveyClass;
380
382
  DocumentHeaderSubscriber: DocumentHeaderSubscriberClass;
381
383
  GoogleCalendar: GoogleCalendarClass;
384
+ ProductLocation: ProductLocationClass;
382
385
  private defaultHeaders;
383
386
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }: IOptions);
384
387
  }
@@ -0,0 +1,8 @@
1
+ import Nomalism from '@nomalism-com/types';
2
+ import { IModuleConstructor } from '../../main';
3
+ export default class Repository implements Nomalism.ProductLocation.IRepository {
4
+ route: string;
5
+ private api;
6
+ constructor({ api, route }: IModuleConstructor);
7
+ findMany(): Promise<Nomalism.ProductLocation.IFindManyResponse[]>;
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.24",
4
+ "version": "0.45.26",
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.45.28",
26
+ "@nomalism-com/types": "^0.45.29",
27
27
  "axios": "^1.16.1"
28
28
  },
29
29
  "devDependencies": {