@nomalism-com/api 0.45.65 → 0.46.1

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
@@ -92,6 +92,7 @@ __export(main_exports, {
92
92
  RefreshToken: () => refreshToken_exports,
93
93
  ReturnReason: () => returnReason_exports,
94
94
  ReturnToProvider: () => returnToProvider_exports,
95
+ Saft: () => saft_exports,
95
96
  SavedEmPicking: () => savedEmPicking_exports,
96
97
  SavedProviderProposal: () => savedProviderProposal_exports,
97
98
  Schedule: () => schedule_exports,
@@ -4454,12 +4455,30 @@ var Repository125 = class {
4454
4455
  }
4455
4456
  };
4456
4457
 
4458
+ // src/modules/supply/saft.ts
4459
+ var saft_exports = {};
4460
+ __export(saft_exports, {
4461
+ default: () => Repository126
4462
+ });
4463
+ var Repository126 = class {
4464
+ constructor({ route }) {
4465
+ this.route = route;
4466
+ }
4467
+ getUrl({ date_start, date_end, token }) {
4468
+ const qs = new URLSearchParams();
4469
+ qs.set("date_start", date_start);
4470
+ qs.set("date_end", date_end);
4471
+ qs.set("token", token);
4472
+ return `${this.route}download?${qs.toString()}`;
4473
+ }
4474
+ };
4475
+
4457
4476
  // src/modules/stock/productLocation.ts
4458
4477
  var productLocation_exports = {};
4459
4478
  __export(productLocation_exports, {
4460
- default: () => Repository126
4479
+ default: () => Repository127
4461
4480
  });
4462
- var Repository126 = class {
4481
+ var Repository127 = class {
4463
4482
  constructor({ api, route }) {
4464
4483
  this.api = api;
4465
4484
  this.route = route;
@@ -4505,9 +4524,9 @@ var TimesheetRepository = class {
4505
4524
  // src/modules/document/CAT.ts
4506
4525
  var CAT_exports = {};
4507
4526
  __export(CAT_exports, {
4508
- default: () => Repository127
4527
+ default: () => Repository128
4509
4528
  });
4510
- var Repository127 = class {
4529
+ var Repository128 = class {
4511
4530
  constructor({ api, route }) {
4512
4531
  this.api = api;
4513
4532
  this.route = route;
@@ -4801,6 +4820,8 @@ var API = class {
4801
4820
  getModuleParams("stock", Nomalism.CurrentAccount.Route)
4802
4821
  );
4803
4822
  this.Portal = new Repository118(getModuleParams("stock", Nomalism.Portal.Route));
4823
+ this.Saft = new Repository126(getModuleParams("stock", "saft"));
4824
+ this.AccountCode = new Repository120(getModuleParams("stock", "account_code"));
4804
4825
  this.GoogleSheetPool = new Repository119(
4805
4826
  getModuleParams("stock", Nomalism.GoogleSheetPool.Route)
4806
4827
  );
@@ -4818,11 +4839,11 @@ var API = class {
4818
4839
  this.GoogleCalendar = new Repository125(
4819
4840
  getModuleParams("stock", Nomalism.GoogleCalendar.Route)
4820
4841
  );
4821
- this.ProductLocation = new Repository126(
4842
+ this.ProductLocation = new Repository127(
4822
4843
  getModuleParams("stock", Nomalism.ProductLocation.Route)
4823
4844
  );
4824
4845
  this.TimeSheet = new TimesheetRepository(getModuleParams("users", Nomalism.TimeSheet.Route));
4825
- this.Catalogo = new Repository127(getModuleParams("stock", Nomalism.Catalogo.Route));
4846
+ this.Catalogo = new Repository128(getModuleParams("stock", Nomalism.Catalogo.Route));
4826
4847
  }
4827
4848
  };
4828
4849
 
package/dist/main.d.ts CHANGED
@@ -125,6 +125,7 @@ import PatchNotesClass from './modules/integration/patchNotes';
125
125
  import DocumentHeaderSurveyClass from './modules/supply/documentHeaderSurvey';
126
126
  import DocumentHeaderSubscriberClass from './modules/supply/documentHeaderSubscriber';
127
127
  import GoogleCalendarClass from './modules/stock/googleCalendar';
128
+ import SaftClass from './modules/supply/saft';
128
129
  import ProductLocationClass from './modules/stock/productLocation';
129
130
  import TimeSheetClass from './modules/user/timeSheet';
130
131
  import CatalogoClass from './modules/document/CAT';
@@ -245,6 +246,7 @@ export * as PatchNotes from './modules/integration/patchNotes';
245
246
  export * as DocumentHeaderSurvey from './modules/supply/documentHeaderSurvey';
246
247
  export * as DocumentHeaderSubscriber from './modules/supply/documentHeaderSubscriber';
247
248
  export * as GoogleCalendar from './modules/stock/googleCalendar';
249
+ export * as Saft from './modules/supply/saft';
248
250
  export * as ProductLocation from './modules/stock/productLocation';
249
251
  export * as TimeSheet from './modules/user/timeSheet';
250
252
  export * as Catalogo from './modules/document/CAT';
@@ -385,6 +387,7 @@ export declare class API {
385
387
  CurrentAccount: CurrentAccountClass;
386
388
  Portal: PortalClass;
387
389
  GoogleSheetPool: GoogleSheetPoolClass;
390
+ Saft: SaftClass;
388
391
  AccountCode: AccountCodeClass;
389
392
  LLM: LLMClass;
390
393
  PatchNotes: PatchNotesClass;
@@ -0,0 +1,11 @@
1
+ import { IModuleConstructor } from '../../main';
2
+ export interface IDownloadSaftRequest {
3
+ date_start: string;
4
+ date_end: string;
5
+ token: string;
6
+ }
7
+ export default class Repository {
8
+ route: string;
9
+ constructor({ route }: IModuleConstructor);
10
+ getUrl({ date_start, date_end, token }: IDownloadSaftRequest): string;
11
+ }
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.65",
4
+ "version": "0.46.1",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",