@nomalism-com/api 1.3.32 → 1.3.34

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
@@ -8,65 +8,67 @@ var __export = (target, all) => {
8
8
  var main_exports = {};
9
9
  __export(main_exports, {
10
10
  API: () => API,
11
- AccountCodeClass: () => accountCode_exports,
12
- AdminPanelClass: () => adminPanel_exports,
11
+ AccountCode: () => accountCode_exports,
12
+ AdminPanel: () => adminPanel_exports,
13
13
  BankData: () => bankData_exports,
14
14
  Channel: () => channel_exports,
15
- ChatRapidMessageClass: () => chatRapidMessage_exports,
16
- ChatSubscriberClass: () => chatSubscriber_exports,
15
+ ChatRapidMessage: () => chatRapidMessage_exports,
16
+ ChatSubscriber: () => chatSubscriber_exports,
17
17
  Client: () => clients_exports,
18
18
  ClientType: () => clientType_exports,
19
19
  Clt: () => clt_exports,
20
20
  Commissioner: () => commissioner_exports,
21
21
  Country: () => country_exports,
22
- CurrentAccountClass: () => currentAccount_exports,
23
- DashboardClass: () => dashboard_exports,
22
+ CurrentAccount: () => currentAccount_exports,
23
+ Dashboard: () => dashboard_exports,
24
24
  DeliveryMethods: () => deliveryMethods_exports,
25
25
  DocumentHeader: () => documentHeader_exports,
26
26
  DocumentHeaderHistory: () => documentHeaderHistory_exports,
27
- DocumentHeaderSubscriberClass: () => documentHeaderSubscriber_exports,
27
+ DocumentHeaderSubscriber: () => documentHeaderSubscriber_exports,
28
+ DocumentHeaderSurvey: () => documentHeaderSurvey_exports,
28
29
  DocumentLine: () => documentLine_exports,
29
30
  DocumentLineAssoc: () => documentLineAssoc_exports,
30
- DocumentLineMtClass: () => documentLineMt_exports,
31
+ DocumentLineMt: () => documentLineMt_exports,
31
32
  DocumentLineNote: () => documentLineNote_exports,
32
- DocumentLineRmClass: () => documentLineRm_exports,
33
+ DocumentLineRm: () => documentLineRm_exports,
33
34
  DocumentSet: () => documentSet_exports,
34
35
  DocumentType: () => documentType_exports,
35
36
  EmailLog: () => emailLog_exports,
36
37
  EmailTemplate: () => emailTemplate_exports,
37
38
  EmailTemplateAttachment: () => emailTemplateAttachment_exports,
38
39
  EmailVerification: () => emailVerification_exports,
39
- ErrorLogClass: () => errorLog_exports,
40
+ ErrorLog: () => errorLog_exports,
40
41
  ExternalDocumentHeader: () => externalDocumentHeader_exports,
41
42
  ExternalDocumentType: () => externalDocumentType_exports,
42
43
  Favorites: () => favorites_exports,
43
44
  File: () => file_exports,
44
- GmailsClass: () => gmails_exports,
45
+ Gmail: () => gmails_exports,
46
+ GoogleCalendar: () => googleCalendar_exports,
45
47
  GoogleFilePermission: () => googleFilePermission_exports,
46
- GoogleSheetPoolClass: () => googleSheetPool_exports,
48
+ GoogleSheetPool: () => googleSheetPool_exports,
47
49
  GoogleSheets: () => googleSheets_exports,
48
50
  Inventario: () => inventario_exports,
49
- LLMClass: () => llm_exports,
51
+ LLM: () => llm_exports,
50
52
  Language: () => language_exports,
51
53
  Location: () => location_exports,
52
54
  Logout: () => logout_exports,
53
55
  MaterialEntrance: () => materialEntrance_exports,
54
56
  MaturityDates: () => maturityDates_exports,
55
57
  Multimedia: () => multimedia_exports,
56
- NPFClass: () => NPF_exports,
57
- NRCLClass: () => NRCL_exports,
58
+ NPF: () => NPF_exports,
59
+ NRCL: () => NRCL_exports,
58
60
  Npc: () => npc_exports,
59
61
  Observation: () => observation_exports,
60
62
  ObservationType: () => observationType_exports,
61
63
  Order: () => order_exports,
62
64
  OrderManagement: () => orderManagement_exports,
63
65
  Password: () => password_exports,
64
- PatchNotesClass: () => patchNotes_exports,
66
+ PatchNotes: () => patchNotes_exports,
65
67
  Payment: () => payment_exports,
66
- PaymentBatchClass: () => paymentBatch_exports,
68
+ PaymentBatch: () => paymentBatch_exports,
67
69
  PaymentMethods: () => paymentMethods_exports,
68
70
  Persona: () => persona_exports,
69
- PortalClass: () => portal_exports,
71
+ Portal: () => portal_exports,
70
72
  PreSale: () => preSale_exports,
71
73
  PreSaleProduct: () => preSaleProduct_exports,
72
74
  Printer: () => printer_exports,
@@ -89,7 +91,7 @@ __export(main_exports, {
89
91
  RefreshToken: () => refreshToken_exports,
90
92
  ReturnReason: () => returnReason_exports,
91
93
  ReturnToProvider: () => returnToProvider_exports,
92
- SaftClass: () => saft_exports,
94
+ Saft: () => saft_exports,
93
95
  SavedEmPicking: () => savedEmPicking_exports,
94
96
  SavedProviderProposal: () => savedProviderProposal_exports,
95
97
  Schedule: () => schedule_exports,
@@ -98,17 +100,17 @@ __export(main_exports, {
98
100
  Sessions: () => sessions_exports,
99
101
  Settings: () => settings_exports,
100
102
  Shippings: () => shippings_exports,
101
- SideMenuClass: () => sideMenu_exports,
103
+ SideMenu: () => sideMenu_exports,
102
104
  StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
103
105
  StockMovement: () => stockMovement_exports,
104
106
  StoreOperator: () => storeOperator_exports,
105
107
  Swift: () => swift_exports,
106
- TagClass: () => tag_exports,
108
+ Tag: () => tag_exports,
107
109
  Task: () => task_exports,
108
110
  TaskMessage: () => taskMessage_exports,
109
- TaskReadClass: () => taskRead_exports,
111
+ TaskRead: () => taskRead_exports,
110
112
  Tenant: () => tenant_exports,
111
- ThemeClass: () => theme_exports,
113
+ Theme: () => theme_exports,
112
114
  Tickets: () => tickets_exports,
113
115
  TicketsLanguage: () => language_exports2,
114
116
  Transformado: () => transformado_exports,
@@ -494,6 +496,10 @@ var Repository7 = class {
494
496
  const result = await this.api.post(`${this.route}create_site_proposal`, data);
495
497
  return result.data;
496
498
  }
499
+ async findCountByOwnerIds(data) {
500
+ const result = await this.api.post(`${this.route}count_by_owners_ids`, data);
501
+ return result.data;
502
+ }
497
503
  };
498
504
 
499
505
  // src/modules/supply/documentHeaderHistory.ts
@@ -1014,6 +1020,10 @@ var Repository28 = class {
1014
1020
  async resetPassword(body) {
1015
1021
  await this.api.post(`${this.route}reset`, body);
1016
1022
  }
1023
+ async forgotPasswordWhithoutMail(body) {
1024
+ const response = await this.api.post(`${this.route}forgot_without_mail`, body);
1025
+ return response.data;
1026
+ }
1017
1027
  };
1018
1028
 
1019
1029
  // src/modules/stock/productImage.ts
@@ -3005,6 +3015,12 @@ var Repository83 = class {
3005
3015
  async undoEntradaMaterial(data) {
3006
3016
  await this.api.post(`${this.route}undo_material_entrance`, data);
3007
3017
  }
3018
+ async findDoneById({
3019
+ id
3020
+ }) {
3021
+ const response = await this.api.get(`${this.route}${id}`);
3022
+ return response.data;
3023
+ }
3008
3024
  printLabelToPdfUrl({ product_id }, {
3009
3025
  quantity,
3010
3026
  ef_name,
@@ -4004,30 +4020,12 @@ var Repository118 = class {
4004
4020
  }
4005
4021
  };
4006
4022
 
4007
- // src/modules/supply/saft.ts
4008
- var saft_exports = {};
4009
- __export(saft_exports, {
4010
- default: () => Repository119
4011
- });
4012
- var Repository119 = class {
4013
- constructor({ route }) {
4014
- this.route = route;
4015
- }
4016
- getUrl({ date_start, date_end, token }) {
4017
- const qs = new URLSearchParams();
4018
- qs.set("date_start", date_start);
4019
- qs.set("date_end", date_end);
4020
- qs.set("token", token);
4021
- return `${this.route}download?${qs.toString()}`;
4022
- }
4023
- };
4024
-
4025
4023
  // src/modules/stock/accountCode.ts
4026
4024
  var accountCode_exports = {};
4027
4025
  __export(accountCode_exports, {
4028
- default: () => Repository120
4026
+ default: () => Repository119
4029
4027
  });
4030
- var Repository120 = class {
4028
+ var Repository119 = class {
4031
4029
  constructor({ api, route }) {
4032
4030
  this.api = api;
4033
4031
  this.route = route;
@@ -4043,9 +4041,9 @@ var Repository120 = class {
4043
4041
  // src/modules/llm/llm.ts
4044
4042
  var llm_exports = {};
4045
4043
  __export(llm_exports, {
4046
- default: () => Repository121
4044
+ default: () => Repository120
4047
4045
  });
4048
- var Repository121 = class {
4046
+ var Repository120 = class {
4049
4047
  constructor({ api, route }) {
4050
4048
  this.api = api;
4051
4049
  this.route = route;
@@ -4095,9 +4093,9 @@ var Repository121 = class {
4095
4093
  // src/modules/integration/patchNotes.ts
4096
4094
  var patchNotes_exports = {};
4097
4095
  __export(patchNotes_exports, {
4098
- default: () => Repository122
4096
+ default: () => Repository121
4099
4097
  });
4100
- var Repository122 = class {
4098
+ var Repository121 = class {
4101
4099
  constructor({ api, route }) {
4102
4100
  this.api = api;
4103
4101
  this.route = route;
@@ -4113,7 +4111,11 @@ var Repository122 = class {
4113
4111
  };
4114
4112
 
4115
4113
  // src/modules/supply/documentHeaderSurvey.ts
4116
- var Repository123 = class {
4114
+ var documentHeaderSurvey_exports = {};
4115
+ __export(documentHeaderSurvey_exports, {
4116
+ default: () => Repository122
4117
+ });
4118
+ var Repository122 = class {
4117
4119
  constructor({ api, route }) {
4118
4120
  this.api = api;
4119
4121
  this.route = route;
@@ -4135,9 +4137,9 @@ var Repository123 = class {
4135
4137
  // src/modules/supply/documentHeaderSubscriber.ts
4136
4138
  var documentHeaderSubscriber_exports = {};
4137
4139
  __export(documentHeaderSubscriber_exports, {
4138
- default: () => Repository124
4140
+ default: () => Repository123
4139
4141
  });
4140
- var Repository124 = class {
4142
+ var Repository123 = class {
4141
4143
  constructor({ api, route }) {
4142
4144
  this.api = api;
4143
4145
  this.route = route;
@@ -4156,6 +4158,44 @@ var Repository124 = class {
4156
4158
  }
4157
4159
  };
4158
4160
 
4161
+ // src/modules/stock/googleCalendar.ts
4162
+ var googleCalendar_exports = {};
4163
+ __export(googleCalendar_exports, {
4164
+ default: () => Repository124
4165
+ });
4166
+ var Repository124 = class {
4167
+ constructor({ api, route }) {
4168
+ this.api = api;
4169
+ this.route = route;
4170
+ }
4171
+ async find() {
4172
+ const response = await this.api.get(`${this.route}`);
4173
+ return response.data;
4174
+ }
4175
+ async listEventsInRange(params) {
4176
+ const response = await this.api.get(`${this.route}range`, { params });
4177
+ return response.data;
4178
+ }
4179
+ };
4180
+
4181
+ // src/modules/supply/saft.ts
4182
+ var saft_exports = {};
4183
+ __export(saft_exports, {
4184
+ default: () => Repository125
4185
+ });
4186
+ var Repository125 = class {
4187
+ constructor({ route }) {
4188
+ this.route = route;
4189
+ }
4190
+ getUrl({ date_start, date_end, token }) {
4191
+ const qs = new URLSearchParams();
4192
+ qs.set("date_start", date_start);
4193
+ qs.set("date_end", date_end);
4194
+ qs.set("token", token);
4195
+ return `${this.route}download?${qs.toString()}`;
4196
+ }
4197
+ };
4198
+
4159
4199
  // src/main.ts
4160
4200
  var API = class {
4161
4201
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4352,16 +4392,17 @@ var API = class {
4352
4392
  this.CurrentAccount = new Repository115(getModuleParams("stock", "current_account"));
4353
4393
  this.Portal = new Repository117(getModuleParams("stock", "portal"));
4354
4394
  this.GoogleSheetPool = new Repository118(getModuleParams("stock", "google_sheet_pool"));
4355
- this.Saft = new Repository119(getModuleParams("stock", "saft"));
4356
- this.AccountCode = new Repository120(getModuleParams("stock", "account_code"));
4357
- this.LLM = new Repository121(getModuleParams("llm", "llm"));
4358
- this.PatchNotes = new Repository122(getModuleParams("integration", "patch_notes"));
4359
- this.DocumentHeaderSurvey = new Repository123(
4395
+ this.Saft = new Repository125(getModuleParams("stock", "saft"));
4396
+ this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
4397
+ this.LLM = new Repository120(getModuleParams("llm", "llm"));
4398
+ this.PatchNotes = new Repository121(getModuleParams("integration", "patch_notes"));
4399
+ this.DocumentHeaderSurvey = new Repository122(
4360
4400
  getModuleParams("stock", "document_header_survey")
4361
4401
  );
4362
- this.DocumentHeaderSubscriber = new Repository124(
4402
+ this.DocumentHeaderSubscriber = new Repository123(
4363
4403
  getModuleParams("stock", "document_header_subscriber")
4364
4404
  );
4405
+ this.GoogleCalendar = new Repository124(getModuleParams("stock", "google_calendar"));
4365
4406
  }
4366
4407
  };
4367
4408
 
package/dist/main.d.ts CHANGED
@@ -117,12 +117,13 @@ import CurrentAccountClass from './modules/supply/currentAccount';
117
117
  import PaymentBatchClass from './modules/supply/paymentBatch';
118
118
  import PortalClass from './modules/ui/portal';
119
119
  import GoogleSheetPoolClass from './modules/supply/googleSheetPool';
120
- import SaftClass from './modules/supply/saft';
121
120
  import AccountCodeClass from './modules/stock/accountCode';
122
121
  import LLMClass from './modules/llm/llm';
123
122
  import PatchNotesClass from './modules/integration/patchNotes';
124
123
  import DocumentHeaderSurveyClass from './modules/supply/documentHeaderSurvey';
125
124
  import DocumentHeaderSubscriberClass from './modules/supply/documentHeaderSubscriber';
125
+ import GoogleCalendarClass from './modules/stock/googleCalendar';
126
+ import SaftClass from './modules/supply/saft';
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';
@@ -215,29 +216,31 @@ export * as ProductGoogleSheets from './modules/stock/productGoogleSheets';
215
216
  export * as Task from './modules/stock/task';
216
217
  export * as TaskMessage from './modules/stock/taskMessage';
217
218
  export * as RecurrentTasks from './modules/stock/recurrentTasks';
218
- export * as TaskReadClass from './modules/stock/taskRead';
219
- export * as ThemeClass from './modules/user/theme';
220
- export * as DashboardClass from './modules/stock/dashboard';
221
- export * as ChatRapidMessageClass from './modules/stock/chatRapidMessage';
222
- export * as SideMenuClass from './modules/ui/sideMenu';
223
- export * as ErrorLogClass from './modules/view/errorLog';
224
- export * as AdminPanelClass from './modules/view/adminPanel';
225
- export * as DocumentLineRmClass from './modules/supply/documentLineRm';
226
- export * as DocumentLineMtClass from './modules/supply/documentLineMt';
227
- export * as ChatSubscriberClass from './modules/user/chatSubscriber';
228
- export * as TagClass from './modules/stock/tag';
229
- export * as GmailsClass from './modules/stock/gmails';
230
- export * as NPFClass from './modules/document/NPF';
231
- export * as NRCLClass from './modules/document/NRCL';
232
- export * as CurrentAccountClass from './modules/supply/currentAccount';
233
- export * as PaymentBatchClass from './modules/supply/paymentBatch';
234
- export * as PortalClass from './modules/ui/portal';
235
- export * as GoogleSheetPoolClass from './modules/supply/googleSheetPool';
236
- export * as SaftClass from './modules/supply/saft';
237
- export * as AccountCodeClass from './modules/stock/accountCode';
238
- export * as LLMClass from './modules/llm/llm';
239
- export * as PatchNotesClass from './modules/integration/patchNotes';
240
- export * as DocumentHeaderSubscriberClass from './modules/supply/documentHeaderSubscriber';
219
+ export * as TaskRead from './modules/stock/taskRead';
220
+ export * as Theme from './modules/user/theme';
221
+ export * as Dashboard from './modules/stock/dashboard';
222
+ export * as ChatRapidMessage from './modules/stock/chatRapidMessage';
223
+ export * as SideMenu from './modules/ui/sideMenu';
224
+ export * as ErrorLog from './modules/view/errorLog';
225
+ export * as AdminPanel from './modules/view/adminPanel';
226
+ export * as DocumentLineRm from './modules/supply/documentLineRm';
227
+ export * as DocumentLineMt from './modules/supply/documentLineMt';
228
+ export * as ChatSubscriber from './modules/user/chatSubscriber';
229
+ export * as Tag from './modules/stock/tag';
230
+ export * as Gmail from './modules/stock/gmails';
231
+ export * as NPF from './modules/document/NPF';
232
+ export * as NRCL from './modules/document/NRCL';
233
+ export * as CurrentAccount from './modules/supply/currentAccount';
234
+ export * as PaymentBatch from './modules/supply/paymentBatch';
235
+ export * as Portal from './modules/ui/portal';
236
+ export * as GoogleSheetPool from './modules/supply/googleSheetPool';
237
+ export * as AccountCode from './modules/stock/accountCode';
238
+ export * as LLM from './modules/llm/llm';
239
+ export * as PatchNotes from './modules/integration/patchNotes';
240
+ export * as DocumentHeaderSurvey from './modules/supply/documentHeaderSurvey';
241
+ export * as DocumentHeaderSubscriber from './modules/supply/documentHeaderSubscriber';
242
+ export * as GoogleCalendar from './modules/stock/googleCalendar';
243
+ export * as Saft from './modules/supply/saft';
241
244
  export type IEnvironment = 'production' | 'uat' | 'development' | 'localhost';
242
245
  type IService = 'stock' | 'users' | 'integration' | 'documents' | 'view' | 'print' | 'tickets' | 'llm';
243
246
  export interface IOptions {
@@ -379,6 +382,7 @@ export declare class API {
379
382
  PatchNotes: PatchNotesClass;
380
383
  DocumentHeaderSurvey: DocumentHeaderSurveyClass;
381
384
  DocumentHeaderSubscriber: DocumentHeaderSubscriberClass;
385
+ GoogleCalendar: GoogleCalendarClass;
382
386
  private defaultHeaders;
383
387
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }: IOptions);
384
388
  }
@@ -8,6 +8,7 @@ export default class Repository implements Nomalism.MaterialEntrance.IApi {
8
8
  findUnfinishedPickings({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.MaterialEntrance.IUnfinishedPickingsResponse[]>;
9
9
  finalizarEntradaMaterial(data: Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialRequest): Promise<Nomalism.MaterialEntrance.IFinalizarEntradaDeMaterialResponse>;
10
10
  undoEntradaMaterial(data: Nomalism.MaterialEntrance.IUndoEntradaDeMaterialRequest): Promise<void>;
11
+ findDoneById({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.SavedEmPicking.ISavedEmPickingData | null>;
11
12
  printLabelToPdfUrl({ product_id }: Nomalism.MaterialEntrance.IPrintLabelParamsRequest, { quantity, ef_name, pc_document_number, prison, note, availableStock, }: Nomalism.MaterialEntrance.IPrintLabelQueryRequest, token: string): string;
12
13
  printBulkLabelToPdfUrl({ groupLabel, saved_em_picking_ids, token, }: Nomalism.MaterialEntrance.IPrintBulkLabelRequest): string;
13
14
  }
@@ -5,4 +5,5 @@ export default class Repository implements Nomalism.GoogleCalendar.IRepository {
5
5
  private api;
6
6
  constructor({ api, route }: IModuleConstructor);
7
7
  find(): Promise<Nomalism.GoogleCalendar.Entity[]>;
8
+ listEventsInRange(params: Nomalism.GoogleCalendar.IListEventsInRangeRequest): Promise<Nomalism.GoogleCalendar.IListEventsInRangeResponse[]>;
8
9
  }
@@ -24,4 +24,5 @@ export default class Repository implements Nomalism.DocumentHeader.IRepository {
24
24
  documentList({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.DocumentHeader.IDocumentListResponse[]>;
25
25
  findStartDocumentHeaderSiblings({ id, }: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.DocumentHeader.IFindStartDocumentHeaderSiblingsResponse>;
26
26
  createSiteProposal(data: Nomalism.shared.IBrokerTopicPayload[typeof Nomalism.shared.IBrokerTopic.create_site_proposal]): Promise<Nomalism.ProjectInfo.ICreateResponse>;
27
+ findCountByOwnerIds(data: Nomalism.DocumentHeader.IFindCountByOwnersIdsRequest): Promise<Nomalism.DocumentHeader.IFindCountByOwnersIdsResponse[]>;
27
28
  }
@@ -6,4 +6,5 @@ export default class Repository implements Nomalism.Password.IRepository {
6
6
  constructor({ api, route }: IModuleConstructor);
7
7
  forgotPassword(body: Nomalism.Password.IForgotPassword): Promise<void>;
8
8
  resetPassword(body: Nomalism.Password.IResetPassword): Promise<void>;
9
+ forgotPasswordWhithoutMail(body: Nomalism.Password.IForgotPasswordWithoutMailRequest): Promise<Nomalism.Password.IForgotPasswordWithoutMailResponse>;
9
10
  }
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.32",
4
+ "version": "1.3.34",
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": "^1.3.35",
27
- "axios": "^1.15.0"
26
+ "@nomalism-com/types": "^1.3.37",
27
+ "axios": "^1.16.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@swc/core": "^1.15.26",
31
- "@types/node": "^24.12.2",
32
- "@typescript-eslint/eslint-plugin": "^8.58.2",
33
- "@typescript-eslint/parser": "^8.58.2",
30
+ "@swc/core": "^1.15.33",
31
+ "@types/node": "^24.12.4",
32
+ "@typescript-eslint/eslint-plugin": "^8.59.3",
33
+ "@typescript-eslint/parser": "^8.59.3",
34
34
  "eslint": "^9.39.4",
35
35
  "eslint-config-prettier": "^10.1.8",
36
36
  "eslint-import-resolver-typescript": "^4.4.4",