@nomalism-com/api 0.40.1 → 0.40.3

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +593 -647
  2. package/dist/index.js +761 -783
  3. package/package.json +14 -14
package/dist/index.js CHANGED
@@ -10,6 +10,7 @@ var __export = (target, all) => {
10
10
  var main_exports = {};
11
11
  __export(main_exports, {
12
12
  API: () => API,
13
+ AccountCodeClass: () => accountCode_exports,
13
14
  AdminPanelClass: () => adminPanel_exports,
14
15
  BankData: () => bankData_exports,
15
16
  Channel: () => channel_exports,
@@ -20,6 +21,7 @@ __export(main_exports, {
20
21
  Clt: () => clt_exports,
21
22
  Commissioner: () => commissioner_exports,
22
23
  Country: () => country_exports,
24
+ CurrentAccountClass: () => currentAccount_exports,
23
25
  DashboardClass: () => dashboard_exports,
24
26
  DeliveryMethods: () => deliveryMethods_exports,
25
27
  DocumentHeader: () => documentHeader_exports,
@@ -43,24 +45,28 @@ __export(main_exports, {
43
45
  GmailsClass: () => gmails_exports,
44
46
  GoogleFilePermission: () => googleFilePermission_exports,
45
47
  GoogleSheets: () => googleSheets_exports,
46
- GroupPermissions: () => groupPermission_exports,
47
48
  Inventario: () => inventario_exports,
49
+ LLMClass: () => llm_exports,
48
50
  Language: () => language_exports,
49
51
  Location: () => location_exports,
50
52
  Logout: () => logout_exports,
51
53
  MaterialEntrance: () => materialEntrance_exports,
52
54
  MaturityDates: () => maturityDates_exports,
53
55
  Multimedia: () => multimedia_exports,
56
+ NPFClass: () => NPF_exports,
57
+ NRCLClass: () => NRCL_exports,
54
58
  Npc: () => npc_exports,
55
59
  Observation: () => observation_exports,
56
60
  ObservationType: () => observationType_exports,
57
61
  Order: () => order_exports,
58
62
  OrderManagement: () => orderManagement_exports,
59
63
  Password: () => password_exports,
64
+ PatchNotesClass: () => patchNotes_exports,
60
65
  Payment: () => payment_exports,
66
+ PaymentBatchClass: () => paymentBatch_exports,
61
67
  PaymentMethods: () => paymentMethods_exports,
62
- Permissions: () => permission_exports,
63
68
  Persona: () => persona_exports,
69
+ PortalClass: () => portal_exports,
64
70
  PreSale: () => preSale_exports,
65
71
  PreSaleProduct: () => preSaleProduct_exports,
66
72
  Printer: () => printer_exports,
@@ -108,7 +114,6 @@ __export(main_exports, {
108
114
  TypeOfLocation: () => typeOfLocation_exports,
109
115
  UnitOfMeasure: () => unitOfMeasure_exports,
110
116
  UpfrontReturn: () => upfrontReturn_exports,
111
- UserPermissions: () => userPermission_exports,
112
117
  UserPositions: () => userPositions_exports,
113
118
  Users: () => user_exports,
114
119
  VatTax: () => vatTax_exports,
@@ -125,10 +130,9 @@ __export(bankData_exports, {
125
130
  default: () => Repository
126
131
  });
127
132
  var Repository = class {
128
- constructor({ api, route, publicRoute }) {
133
+ constructor({ api, route }) {
129
134
  this.api = api;
130
135
  this.route = route;
131
- this.publicRoute = publicRoute;
132
136
  }
133
137
  async find(params) {
134
138
  const response = await this.api.get(`${this.route}`, { params });
@@ -168,10 +172,9 @@ __export(clients_exports, {
168
172
  default: () => Repository2
169
173
  });
170
174
  var Repository2 = class {
171
- constructor({ api, route, publicRoute }) {
175
+ constructor({ api, route }) {
172
176
  this.api = api;
173
177
  this.route = route;
174
- this.publicRoute = publicRoute;
175
178
  }
176
179
  async findByQuery(data) {
177
180
  const response = await this.api.post(`${this.route}query`, data);
@@ -205,10 +208,6 @@ var Repository2 = class {
205
208
  const response = await this.api.post(`${this.route}`, body);
206
209
  return response.data;
207
210
  }
208
- async createOrUpdate(body) {
209
- const response = await this.api.post(`${this.route}create_or_update`, body);
210
- return response.data;
211
- }
212
211
  async update(selector, body) {
213
212
  const response = await this.api.put(`${this.route}${selector.id}`, body);
214
213
  return response.data;
@@ -225,10 +224,9 @@ __export(clientType_exports, {
225
224
  default: () => Repository3
226
225
  });
227
226
  var Repository3 = class {
228
- constructor({ api, route, publicRoute }) {
227
+ constructor({ api, route }) {
229
228
  this.api = api;
230
229
  this.route = route;
231
- this.publicRoute = publicRoute;
232
230
  }
233
231
  async find(params) {
234
232
  const response = await this.api.get(`${this.route}`, { params });
@@ -264,10 +262,9 @@ var Repository3 = class {
264
262
 
265
263
  // src/modules/stock/chat.ts
266
264
  var Repository4 = class {
267
- constructor({ api, route, publicRoute }) {
265
+ constructor({ api, route }) {
268
266
  this.api = api;
269
267
  this.route = route;
270
- this.publicRoute = publicRoute;
271
268
  }
272
269
  async findActiveByOwnerId(params) {
273
270
  const response = await this.api.get(`${this.route}active`, {
@@ -275,6 +272,18 @@ var Repository4 = class {
275
272
  });
276
273
  return response.data;
277
274
  }
275
+ async clientWebAppFindActiveByOwnerId(params) {
276
+ const response = await this.api.get(`${this.route}client_web_app`, {
277
+ params
278
+ });
279
+ return response.data;
280
+ }
281
+ async findActiveBySubscriberId(params) {
282
+ const response = await this.api.get(`${this.route}active_by_subscriber_id`, {
283
+ params
284
+ });
285
+ return response.data;
286
+ }
278
287
  async create(body) {
279
288
  const response = await this.api.post(`${this.route}`, body);
280
289
  return response.data;
@@ -288,11 +297,16 @@ var Repository4 = class {
288
297
  async resendLast({ owner_id }) {
289
298
  await this.api.post(`${this.route}resend_last/${owner_id}`);
290
299
  }
291
- async markAllAsRead(selector) {
292
- await this.api.put(`${this.route}mark_all_as_read/${selector.owner_id}`);
300
+ async markAllAsRead(params) {
301
+ await this.api.put(`${this.route}mark_all_as_read/${params.owner_id}`);
302
+ }
303
+ async markAllAsUnread(params) {
304
+ await this.api.put(`${this.route}mark_all_as_unread/${params.owner_id}`);
293
305
  }
294
- async markAllAsUnread(selector) {
295
- await this.api.put(`${this.route}mark_all_as_unread/${selector.owner_id}`);
306
+ async publicMarkAllClientReadUnread(params) {
307
+ await this.api.put(
308
+ `${this.route}mark_all_client_read_unread/${params.owner_id}/${params.client_read}`
309
+ );
296
310
  }
297
311
  };
298
312
 
@@ -302,10 +316,9 @@ __export(commissioner_exports, {
302
316
  default: () => Repository5
303
317
  });
304
318
  var Repository5 = class {
305
- constructor({ api, route, publicRoute }) {
319
+ constructor({ api, route }) {
306
320
  this.api = api;
307
321
  this.route = route;
308
- this.publicRoute = publicRoute;
309
322
  }
310
323
  async find(params) {
311
324
  const response = await this.api.get(`${this.route}`, { params });
@@ -351,10 +364,9 @@ __export(country_exports, {
351
364
  default: () => Repository6
352
365
  });
353
366
  var Repository6 = class {
354
- constructor({ api, route, publicRoute }) {
367
+ constructor({ api, route }) {
355
368
  this.api = api;
356
369
  this.route = route;
357
- this.publicRoute = publicRoute;
358
370
  }
359
371
  async find(params) {
360
372
  const response = await this.api.get(`${this.route}`, { params });
@@ -400,19 +412,14 @@ __export(documentHeader_exports, {
400
412
  default: () => Repository7
401
413
  });
402
414
  var Repository7 = class {
403
- constructor({ api, route, publicRoute }) {
415
+ constructor({ api, route }) {
404
416
  this.api = api;
405
417
  this.route = route;
406
- this.publicRoute = publicRoute;
407
418
  }
408
419
  async findOne(selector) {
409
420
  const response = await this.api.get(`${this.route}${selector.id}`);
410
421
  return response.data;
411
422
  }
412
- async findStart(selector) {
413
- const response = await this.api.get(`${this.route}start/${selector.id}`);
414
- return response.data;
415
- }
416
423
  async findStartVirtual(selector) {
417
424
  const response = await this.api.get(`${this.route}start_virtual/${selector.id}`);
418
425
  return response.data;
@@ -431,24 +438,6 @@ var Repository7 = class {
431
438
  const response = await this.api.get(`${this.route}`, { params });
432
439
  return response.data;
433
440
  }
434
- async findClientUnpaidCredit(params) {
435
- const response = await this.api.get(`${this.route}unpaid_credit`, {
436
- params
437
- });
438
- return response.data;
439
- }
440
- async findClientUnpaidDebit(params) {
441
- const response = await this.api.get(`${this.route}unpaid_debit`, {
442
- params
443
- });
444
- return response.data;
445
- }
446
- async findUnpaidCommissions(params) {
447
- const response = await this.api.get(`${this.route}unpaid_commissions`, {
448
- params
449
- });
450
- return response.data;
451
- }
452
441
  async create(body) {
453
442
  const response = await this.api.post(`${this.route}`, body);
454
443
  return response.data;
@@ -507,14 +496,9 @@ var Repository7 = class {
507
496
  const result = await this.api.get(`${this.route}siblings/${id}`);
508
497
  return result.data;
509
498
  }
510
- async findRmOpenDocuments() {
511
- const response = await this.api.get(`${this.route}rm_open_documents`);
512
- return response.data;
513
- }
514
- async regularizarMultiplosDocumentos(data) {
515
- await this.api.post(`${this.route}multiple_documents`, {
516
- data
517
- });
499
+ async createSiteProposal(data) {
500
+ const result = await this.api.post(`${this.route}create_site_proposal`, data);
501
+ return result.data;
518
502
  }
519
503
  };
520
504
 
@@ -524,10 +508,9 @@ __export(documentHeaderHistory_exports, {
524
508
  default: () => Repository8
525
509
  });
526
510
  var Repository8 = class {
527
- constructor({ api, route, publicRoute }) {
511
+ constructor({ api, route }) {
528
512
  this.api = api;
529
513
  this.route = route;
530
- this.publicRoute = publicRoute;
531
514
  }
532
515
  async findByOwnerId(selector) {
533
516
  const response = await this.api.get(`${this.route}by_owner/${selector.owner_id}`);
@@ -537,10 +520,9 @@ var Repository8 = class {
537
520
 
538
521
  // src/modules/document/billOfLading.ts
539
522
  var Repository9 = class {
540
- constructor({ api, route, publicRoute }) {
523
+ constructor({ api, route }) {
541
524
  this.api = api;
542
525
  this.route = route;
543
- this.publicRoute = publicRoute;
544
526
  }
545
527
  async create(body) {
546
528
  const response = await this.api.post(`${this.route}bill_of_lading`, body);
@@ -550,10 +532,9 @@ var Repository9 = class {
550
532
 
551
533
  // src/modules/document/productionOrder.ts
552
534
  var Repository10 = class {
553
- constructor({ api, route, publicRoute }) {
535
+ constructor({ api, route }) {
554
536
  this.api = api;
555
537
  this.route = route;
556
- this.publicRoute = publicRoute;
557
538
  }
558
539
  async createProductionOrder(body) {
559
540
  await this.api.post(`${this.route}production_order`, body);
@@ -562,23 +543,25 @@ var Repository10 = class {
562
543
 
563
544
  // src/modules/document/proforma.ts
564
545
  var Repository11 = class {
565
- constructor({ api, route, publicRoute }) {
546
+ constructor({ api, route }) {
566
547
  this.api = api;
567
548
  this.route = route;
568
- this.publicRoute = publicRoute;
569
549
  }
570
550
  async create(data) {
571
551
  const result = await this.api.post(`${this.route}pro_forma`, data);
572
552
  return result.data;
573
553
  }
554
+ async createFromLines(data) {
555
+ const result = await this.api.post(`${this.route}pro_forma_from_lines`, data);
556
+ return result.data;
557
+ }
574
558
  };
575
559
 
576
560
  // src/modules/document/propostaFornecedor.ts
577
561
  var Repository12 = class {
578
- constructor({ api, route, publicRoute }) {
562
+ constructor({ api, route }) {
579
563
  this.api = api;
580
564
  this.route = route;
581
- this.publicRoute = publicRoute;
582
565
  }
583
566
  async createProviderProposal(data) {
584
567
  const result = await this.api.post(`${this.route}provider_proposal`, data);
@@ -588,10 +571,9 @@ var Repository12 = class {
588
571
 
589
572
  // src/modules/document/providerCreditNoteFromReturn.ts
590
573
  var Repository13 = class {
591
- constructor({ api, route, publicRoute }) {
574
+ constructor({ api, route }) {
592
575
  this.api = api;
593
576
  this.route = route;
594
- this.publicRoute = publicRoute;
595
577
  }
596
578
  async findProviderReturn(params) {
597
579
  const response = await this.api.get(`${this.route}provider_return`, {
@@ -606,10 +588,9 @@ var Repository13 = class {
606
588
 
607
589
  // src/modules/document/providerFinancialCreditNote.ts
608
590
  var Repository14 = class {
609
- constructor({ api, route, publicRoute }) {
591
+ constructor({ api, route }) {
610
592
  this.api = api;
611
593
  this.route = route;
612
- this.publicRoute = publicRoute;
613
594
  }
614
595
  async findProviderInvoice(params) {
615
596
  const response = await this.api.get(`${this.route}provider_invoice`, {
@@ -624,10 +605,9 @@ var Repository14 = class {
624
605
 
625
606
  // src/modules/document/providerServiceInvoice.ts
626
607
  var Repository15 = class {
627
- constructor({ api, route, publicRoute }) {
608
+ constructor({ api, route }) {
628
609
  this.api = api;
629
610
  this.route = route;
630
- this.publicRoute = publicRoute;
631
611
  }
632
612
  async createProviderServiceInvoice(data) {
633
613
  await this.api.post(`${this.route}provider_service_invoice`, data);
@@ -640,10 +620,9 @@ __export(documentLine_exports, {
640
620
  default: () => Repository16
641
621
  });
642
622
  var Repository16 = class {
643
- constructor({ api, route, publicRoute }) {
623
+ constructor({ api, route }) {
644
624
  this.api = api;
645
625
  this.route = route;
646
- this.publicRoute = publicRoute;
647
626
  }
648
627
  async create(body) {
649
628
  const response = await this.api.post(`${this.route}`, body);
@@ -687,10 +666,9 @@ __export(documentLineAssoc_exports, {
687
666
  default: () => Repository17
688
667
  });
689
668
  var Repository17 = class {
690
- constructor({ api, route, publicRoute }) {
669
+ constructor({ api, route }) {
691
670
  this.api = api;
692
671
  this.route = route;
693
- this.publicRoute = publicRoute;
694
672
  }
695
673
  async findByOwnerId(params) {
696
674
  const response = await this.api.get(`${this.route}by_owner`, { params });
@@ -724,10 +702,9 @@ __export(documentType_exports, {
724
702
  default: () => Repository18
725
703
  });
726
704
  var Repository18 = class {
727
- constructor({ api, route, publicRoute }) {
705
+ constructor({ api, route }) {
728
706
  this.api = api;
729
707
  this.route = route;
730
- this.publicRoute = publicRoute;
731
708
  }
732
709
  async find(params) {
733
710
  const response = await this.api.get(`${this.route}`, { params });
@@ -761,10 +738,9 @@ __export(favorites_exports, {
761
738
  default: () => Repository19
762
739
  });
763
740
  var Repository19 = class {
764
- constructor({ api, route, publicRoute }) {
741
+ constructor({ api, route }) {
765
742
  this.api = api;
766
743
  this.route = route;
767
- this.publicRoute = publicRoute;
768
744
  }
769
745
  async findByUrl(params) {
770
746
  const response = await this.api.get(`${this.route}`, { params });
@@ -790,10 +766,9 @@ __export(file_exports, {
790
766
  default: () => Repository20
791
767
  });
792
768
  var Repository20 = class {
793
- constructor({ api, route, publicRoute }) {
769
+ constructor({ api, route }) {
794
770
  this.api = api;
795
771
  this.route = route;
796
- this.publicRoute = publicRoute;
797
772
  }
798
773
  async findByOwnerId(params) {
799
774
  const response = await this.api.get(`${this.route}by_owner`, {
@@ -802,11 +777,11 @@ var Repository20 = class {
802
777
  return response.data;
803
778
  }
804
779
  async create(body) {
805
- const response = await this.api.post(`${this.publicRoute}`, body);
780
+ const response = await this.api.post(`${this.route}`, body);
806
781
  return response.data;
807
782
  }
808
783
  async update({ id }, body) {
809
- await this.api.put(`${this.publicRoute}${id}`, body);
784
+ await this.api.put(`${this.route}${id}`, body);
810
785
  }
811
786
  async deleteOne(selector) {
812
787
  const response = await this.api.delete(`${this.route}${selector.id}`);
@@ -820,10 +795,9 @@ __export(googleSheets_exports, {
820
795
  default: () => Repository21
821
796
  });
822
797
  var Repository21 = class {
823
- constructor({ api, route, publicRoute }) {
798
+ constructor({ api, route }) {
824
799
  this.api = api;
825
800
  this.route = route;
826
- this.publicRoute = publicRoute;
827
801
  }
828
802
  async clone(selector, params) {
829
803
  const response = await this.api.get(`${this.route}clone/${selector.id}`, {
@@ -844,47 +818,15 @@ var Repository21 = class {
844
818
  }
845
819
  };
846
820
 
847
- // src/modules/user/groupPermission.ts
848
- var groupPermission_exports = {};
849
- __export(groupPermission_exports, {
850
- default: () => Repository22
851
- });
852
- var Repository22 = class {
853
- constructor({ api, route, publicRoute }) {
854
- this.api = api;
855
- this.route = route;
856
- this.publicRoute = publicRoute;
857
- }
858
- async find() {
859
- const response = await this.api.get(`${this.route}`);
860
- return response.data;
861
- }
862
- async findMinified(params) {
863
- const response = await this.api.get(`${this.route}minified`, {
864
- params
865
- });
866
- return response.data;
867
- }
868
- async create(body) {
869
- const response = await this.api.post(`${this.route}`, body);
870
- return response.data;
871
- }
872
- async deleteOne(selector) {
873
- const response = await this.api.delete(`${this.route}${selector.id}`);
874
- return response.data;
875
- }
876
- };
877
-
878
821
  // src/modules/user/language.ts
879
822
  var language_exports = {};
880
823
  __export(language_exports, {
881
- default: () => Repository23
824
+ default: () => Repository22
882
825
  });
883
- var Repository23 = class {
884
- constructor({ api, route, publicRoute }) {
826
+ var Repository22 = class {
827
+ constructor({ api, route }) {
885
828
  this.api = api;
886
829
  this.route = route;
887
- this.publicRoute = publicRoute;
888
830
  }
889
831
  async find(params) {
890
832
  const response = await this.api.get(`${this.route}`, { params });
@@ -921,13 +863,12 @@ var Repository23 = class {
921
863
  // src/modules/stock/location.ts
922
864
  var location_exports = {};
923
865
  __export(location_exports, {
924
- default: () => Repository24
866
+ default: () => Repository23
925
867
  });
926
- var Repository24 = class {
927
- constructor({ api, route, publicRoute }) {
868
+ var Repository23 = class {
869
+ constructor({ api, route }) {
928
870
  this.api = api;
929
871
  this.route = route;
930
- this.publicRoute = publicRoute;
931
872
  }
932
873
  async find(params) {
933
874
  const response = await this.api.get(`${this.route}`, { params });
@@ -970,13 +911,12 @@ var Repository24 = class {
970
911
  // src/modules/user/logout.ts
971
912
  var logout_exports = {};
972
913
  __export(logout_exports, {
973
- default: () => Repository25
914
+ default: () => Repository24
974
915
  });
975
- var Repository25 = class {
976
- constructor({ api, route, publicRoute }) {
916
+ var Repository24 = class {
917
+ constructor({ api, route }) {
977
918
  this.api = api;
978
919
  this.route = route;
979
- this.publicRoute = publicRoute;
980
920
  }
981
921
  async logout() {
982
922
  await this.api.post(`${this.route}`);
@@ -986,21 +926,20 @@ var Repository25 = class {
986
926
  // src/modules/documentManagement/multimedia.ts
987
927
  var multimedia_exports = {};
988
928
  __export(multimedia_exports, {
989
- default: () => Repository26
929
+ default: () => Repository25
990
930
  });
991
- var Repository26 = class {
992
- constructor({ api, route, publicRoute }) {
931
+ var Repository25 = class {
932
+ constructor({ api, route }) {
993
933
  this.api = api;
994
934
  this.route = route;
995
- this.publicRoute = publicRoute;
996
935
  }
997
936
  getUrl(multimediaId, download = false) {
998
937
  const qs = new URLSearchParams();
999
938
  if (download) qs.set("download", download.toString());
1000
- return `${this.publicRoute}${multimediaId}?${qs.toString()}`;
939
+ return `${this.route}${multimediaId}?${qs.toString()}`;
1001
940
  }
1002
941
  async create(multipartFormData, headers) {
1003
- const response = await this.api.post(`${this.publicRoute}upload`, multipartFormData, {
942
+ const response = await this.api.post(`${this.route}upload`, multipartFormData, {
1004
943
  headers: {
1005
944
  ...headers || {},
1006
945
  "content-type": "multipart/form-data"
@@ -1015,13 +954,12 @@ var Repository26 = class {
1015
954
  // src/modules/integration/observation.ts
1016
955
  var observation_exports = {};
1017
956
  __export(observation_exports, {
1018
- default: () => Repository27
957
+ default: () => Repository26
1019
958
  });
1020
- var Repository27 = class {
1021
- constructor({ api, route, publicRoute }) {
959
+ var Repository26 = class {
960
+ constructor({ api, route }) {
1022
961
  this.api = api;
1023
962
  this.route = route;
1024
- this.publicRoute = publicRoute;
1025
963
  }
1026
964
  async findByOwnerId(params) {
1027
965
  const response = await this.api.get(`${this.route}`, {
@@ -1050,13 +988,12 @@ var Repository27 = class {
1050
988
  // src/modules/integration/observationType.ts
1051
989
  var observationType_exports = {};
1052
990
  __export(observationType_exports, {
1053
- default: () => Repository28
991
+ default: () => Repository27
1054
992
  });
1055
- var Repository28 = class {
1056
- constructor({ api, route, publicRoute }) {
993
+ var Repository27 = class {
994
+ constructor({ api, route }) {
1057
995
  this.api = api;
1058
996
  this.route = route;
1059
- this.publicRoute = publicRoute;
1060
997
  }
1061
998
  async find() {
1062
999
  const response = await this.api.get(`${this.route}`);
@@ -1085,63 +1022,30 @@ var Repository28 = class {
1085
1022
  // src/modules/user/password.ts
1086
1023
  var password_exports = {};
1087
1024
  __export(password_exports, {
1088
- default: () => Repository29
1025
+ default: () => Repository28
1089
1026
  });
1090
- var Repository29 = class {
1091
- constructor({ api, route, publicRoute }) {
1027
+ var Repository28 = class {
1028
+ constructor({ api, route }) {
1092
1029
  this.api = api;
1093
1030
  this.route = route;
1094
- this.publicRoute = publicRoute;
1095
1031
  }
1096
1032
  async forgotPassword(body) {
1097
- await this.api.post(`${this.publicRoute}forgot`, body);
1033
+ await this.api.post(`${this.route}forgot`, body);
1098
1034
  }
1099
1035
  async resetPassword(body) {
1100
- await this.api.post(`${this.publicRoute}reset`, body);
1101
- }
1102
- };
1103
-
1104
- // src/modules/user/permission.ts
1105
- var permission_exports = {};
1106
- __export(permission_exports, {
1107
- default: () => Repository30
1108
- });
1109
- var Repository30 = class {
1110
- constructor({ api, route, publicRoute }) {
1111
- this.api = api;
1112
- this.route = route;
1113
- this.publicRoute = publicRoute;
1114
- }
1115
- async find() {
1116
- const response = await this.api.get(`${this.route}`);
1117
- return response.data;
1118
- }
1119
- async findMinified(params) {
1120
- const response = await this.api.get(`${this.route}minified`, {
1121
- params
1122
- });
1123
- return response.data;
1124
- }
1125
- async create(body) {
1126
- const response = await this.api.post(`${this.route}`, body);
1127
- return response.data;
1128
- }
1129
- async deleteOne(selector) {
1130
- const response = await this.api.delete(`${this.route}${selector.id}`);
1131
- return response.data;
1036
+ await this.api.post(`${this.route}reset`, body);
1132
1037
  }
1133
1038
  };
1134
1039
 
1135
1040
  // src/modules/stock/productImage.ts
1136
1041
  var productImage_exports = {};
1137
1042
  __export(productImage_exports, {
1138
- default: () => Repository31
1043
+ default: () => Repository29
1139
1044
  });
1140
- var Repository31 = class {
1141
- constructor({ api, route, publicRoute }) {
1045
+ var Repository29 = class {
1046
+ constructor({ api, route }) {
1142
1047
  this.api = api;
1143
1048
  this.route = route;
1144
- this.publicRoute = publicRoute;
1145
1049
  }
1146
1050
  async find(params) {
1147
1051
  const response = await this.api.get(`${this.route}`, { params });
@@ -1178,13 +1082,12 @@ var Repository31 = class {
1178
1082
  // src/modules/stock/promotion.ts
1179
1083
  var promotion_exports = {};
1180
1084
  __export(promotion_exports, {
1181
- default: () => Repository32
1085
+ default: () => Repository30
1182
1086
  });
1183
- var Repository32 = class {
1184
- constructor({ api, route, publicRoute }) {
1087
+ var Repository30 = class {
1088
+ constructor({ api, route }) {
1185
1089
  this.api = api;
1186
1090
  this.route = route;
1187
- this.publicRoute = publicRoute;
1188
1091
  }
1189
1092
  async find(params) {
1190
1093
  const response = await this.api.get(`${this.route}`, { params });
@@ -1239,13 +1142,12 @@ var Repository32 = class {
1239
1142
  // src/modules/stock/promotionAssoc.ts
1240
1143
  var promotionAssoc_exports = {};
1241
1144
  __export(promotionAssoc_exports, {
1242
- default: () => Repository33
1145
+ default: () => Repository31
1243
1146
  });
1244
- var Repository33 = class {
1245
- constructor({ api, route, publicRoute }) {
1147
+ var Repository31 = class {
1148
+ constructor({ api, route }) {
1246
1149
  this.api = api;
1247
1150
  this.route = route;
1248
- this.publicRoute = publicRoute;
1249
1151
  }
1250
1152
  async find(params) {
1251
1153
  const response = await this.api.get(`${this.route}`, { params });
@@ -1282,13 +1184,12 @@ var Repository33 = class {
1282
1184
  // src/modules/user/provider.ts
1283
1185
  var provider_exports = {};
1284
1186
  __export(provider_exports, {
1285
- default: () => Repository34
1187
+ default: () => Repository32
1286
1188
  });
1287
- var Repository34 = class {
1288
- constructor({ api, route, publicRoute }) {
1189
+ var Repository32 = class {
1190
+ constructor({ api, route }) {
1289
1191
  this.api = api;
1290
1192
  this.route = route;
1291
- this.publicRoute = publicRoute;
1292
1193
  }
1293
1194
  async findByQuery(data) {
1294
1195
  const response = await this.api.post(`${this.route}query`, data);
@@ -1336,18 +1237,21 @@ var Repository34 = class {
1336
1237
  const response = await this.api.delete(`${this.route}${selector.id}`);
1337
1238
  return response.data;
1338
1239
  }
1240
+ async findByNumber(selector) {
1241
+ const response = await this.api.get(`${this.route}by_number/${selector.number}`);
1242
+ return response.data;
1243
+ }
1339
1244
  };
1340
1245
 
1341
1246
  // src/modules/user/providerType.ts
1342
1247
  var providerType_exports = {};
1343
1248
  __export(providerType_exports, {
1344
- default: () => Repository35
1249
+ default: () => Repository33
1345
1250
  });
1346
- var Repository35 = class {
1347
- constructor({ api, route, publicRoute }) {
1251
+ var Repository33 = class {
1252
+ constructor({ api, route }) {
1348
1253
  this.api = api;
1349
1254
  this.route = route;
1350
- this.publicRoute = publicRoute;
1351
1255
  }
1352
1256
  async find(params) {
1353
1257
  const response = await this.api.get(`${this.route}`, { params });
@@ -1384,13 +1288,12 @@ var Repository35 = class {
1384
1288
  // src/modules/user/purchaseCondition.ts
1385
1289
  var purchaseCondition_exports = {};
1386
1290
  __export(purchaseCondition_exports, {
1387
- default: () => Repository36
1291
+ default: () => Repository34
1388
1292
  });
1389
- var Repository36 = class {
1390
- constructor({ api, route, publicRoute }) {
1293
+ var Repository34 = class {
1294
+ constructor({ api, route }) {
1391
1295
  this.api = api;
1392
1296
  this.route = route;
1393
- this.publicRoute = publicRoute;
1394
1297
  }
1395
1298
  async find(params) {
1396
1299
  const response = await this.api.get(`${this.route}`, { params });
@@ -1427,13 +1330,12 @@ var Repository36 = class {
1427
1330
  // src/modules/user/reasonForExemption.ts
1428
1331
  var reasonForExemption_exports = {};
1429
1332
  __export(reasonForExemption_exports, {
1430
- default: () => Repository37
1333
+ default: () => Repository35
1431
1334
  });
1432
- var Repository37 = class {
1433
- constructor({ api, route, publicRoute }) {
1335
+ var Repository35 = class {
1336
+ constructor({ api, route }) {
1434
1337
  this.api = api;
1435
1338
  this.route = route;
1436
- this.publicRoute = publicRoute;
1437
1339
  }
1438
1340
  async find(params) {
1439
1341
  const response = await this.api.get(`${this.route}`, { params });
@@ -1470,16 +1372,15 @@ var Repository37 = class {
1470
1372
  // src/modules/user/refreshToken.ts
1471
1373
  var refreshToken_exports = {};
1472
1374
  __export(refreshToken_exports, {
1473
- default: () => Repository38
1375
+ default: () => Repository36
1474
1376
  });
1475
- var Repository38 = class {
1476
- constructor({ api, route, publicRoute }) {
1377
+ var Repository36 = class {
1378
+ constructor({ api, route }) {
1477
1379
  this.api = api;
1478
1380
  this.route = route;
1479
- this.publicRoute = publicRoute;
1480
1381
  }
1481
1382
  async create(body) {
1482
- const response = await this.api.post(`${this.publicRoute}`, body);
1383
+ const response = await this.api.post(`${this.route}`, body);
1483
1384
  return response.data;
1484
1385
  }
1485
1386
  };
@@ -1487,13 +1388,12 @@ var Repository38 = class {
1487
1388
  // src/modules/user/segmentsArea.ts
1488
1389
  var segmentsArea_exports = {};
1489
1390
  __export(segmentsArea_exports, {
1490
- default: () => Repository39
1391
+ default: () => Repository37
1491
1392
  });
1492
- var Repository39 = class {
1493
- constructor({ api, route, publicRoute }) {
1393
+ var Repository37 = class {
1394
+ constructor({ api, route }) {
1494
1395
  this.api = api;
1495
1396
  this.route = route;
1496
- this.publicRoute = publicRoute;
1497
1397
  }
1498
1398
  async find(params) {
1499
1399
  const response = await this.api.get(`${this.route}`, { params });
@@ -1530,16 +1430,15 @@ var Repository39 = class {
1530
1430
  // src/modules/user/sessions.ts
1531
1431
  var sessions_exports = {};
1532
1432
  __export(sessions_exports, {
1533
- default: () => Repository40
1433
+ default: () => Repository38
1534
1434
  });
1535
- var Repository40 = class {
1536
- constructor({ api, route, publicRoute }) {
1435
+ var Repository38 = class {
1436
+ constructor({ api, route }) {
1537
1437
  this.api = api;
1538
1438
  this.route = route;
1539
- this.publicRoute = publicRoute;
1540
1439
  }
1541
1440
  async create(body) {
1542
- const response = await this.api.post(`${this.publicRoute}`, body);
1441
+ const response = await this.api.post(`${this.route}`, body);
1543
1442
  return response.data;
1544
1443
  }
1545
1444
  };
@@ -1547,13 +1446,12 @@ var Repository40 = class {
1547
1446
  // src/modules/user/shippings.ts
1548
1447
  var shippings_exports = {};
1549
1448
  __export(shippings_exports, {
1550
- default: () => Repository41
1449
+ default: () => Repository39
1551
1450
  });
1552
- var Repository41 = class {
1553
- constructor({ api, route, publicRoute }) {
1451
+ var Repository39 = class {
1452
+ constructor({ api, route }) {
1554
1453
  this.api = api;
1555
1454
  this.route = route;
1556
- this.publicRoute = publicRoute;
1557
1455
  }
1558
1456
  async find(params) {
1559
1457
  const response = await this.api.get(`${this.route}`, { params });
@@ -1590,13 +1488,12 @@ var Repository41 = class {
1590
1488
  // src/modules/user/storeOperator.ts
1591
1489
  var storeOperator_exports = {};
1592
1490
  __export(storeOperator_exports, {
1593
- default: () => Repository42
1491
+ default: () => Repository40
1594
1492
  });
1595
- var Repository42 = class {
1596
- constructor({ api, route, publicRoute }) {
1493
+ var Repository40 = class {
1494
+ constructor({ api, route }) {
1597
1495
  this.api = api;
1598
1496
  this.route = route;
1599
- this.publicRoute = publicRoute;
1600
1497
  }
1601
1498
  async find() {
1602
1499
  const response = await this.api.get(`${this.route}`);
@@ -1620,6 +1517,10 @@ var Repository42 = class {
1620
1517
  const response = await this.api.put(`${this.route}${selector.id}`, body);
1621
1518
  return response.data;
1622
1519
  }
1520
+ async updatePassword(selector, body) {
1521
+ const response = await this.api.put(`${this.route}password/${selector.id}`, body);
1522
+ return response.data;
1523
+ }
1623
1524
  async deleteOne(selector) {
1624
1525
  const response = await this.api.delete(`${this.route}${selector.id}`);
1625
1526
  return response.data;
@@ -1629,13 +1530,12 @@ var Repository42 = class {
1629
1530
  // src/modules/user/swift.ts
1630
1531
  var swift_exports = {};
1631
1532
  __export(swift_exports, {
1632
- default: () => Repository43
1533
+ default: () => Repository41
1633
1534
  });
1634
- var Repository43 = class {
1635
- constructor({ api, route, publicRoute }) {
1535
+ var Repository41 = class {
1536
+ constructor({ api, route }) {
1636
1537
  this.api = api;
1637
1538
  this.route = route;
1638
- this.publicRoute = publicRoute;
1639
1539
  }
1640
1540
  async find(params) {
1641
1541
  const response = await this.api.get(`${this.route}`, { params });
@@ -1672,13 +1572,12 @@ var Repository43 = class {
1672
1572
  // src/modules/stock/typeOfLocation.ts
1673
1573
  var typeOfLocation_exports = {};
1674
1574
  __export(typeOfLocation_exports, {
1675
- default: () => Repository44
1575
+ default: () => Repository42
1676
1576
  });
1677
- var Repository44 = class {
1678
- constructor({ api, route, publicRoute }) {
1577
+ var Repository42 = class {
1578
+ constructor({ api, route }) {
1679
1579
  this.api = api;
1680
1580
  this.route = route;
1681
- this.publicRoute = publicRoute;
1682
1581
  }
1683
1582
  async find(params) {
1684
1583
  const response = await this.api.get(`${this.route}`, { params });
@@ -1721,13 +1620,12 @@ var Repository44 = class {
1721
1620
  // src/modules/stock/unitOfMeasure.ts
1722
1621
  var unitOfMeasure_exports = {};
1723
1622
  __export(unitOfMeasure_exports, {
1724
- default: () => Repository45
1623
+ default: () => Repository43
1725
1624
  });
1726
- var Repository45 = class {
1727
- constructor({ api, route, publicRoute }) {
1625
+ var Repository43 = class {
1626
+ constructor({ api, route }) {
1728
1627
  this.api = api;
1729
1628
  this.route = route;
1730
- this.publicRoute = publicRoute;
1731
1629
  }
1732
1630
  async find(params) {
1733
1631
  const response = await this.api.get(`${this.route}`, { params });
@@ -1767,43 +1665,15 @@ var Repository45 = class {
1767
1665
  }
1768
1666
  };
1769
1667
 
1770
- // src/modules/user/userPermission.ts
1771
- var userPermission_exports = {};
1772
- __export(userPermission_exports, {
1773
- default: () => Repository46
1774
- });
1775
- var Repository46 = class {
1776
- constructor({ api, route, publicRoute }) {
1777
- this.api = api;
1778
- this.route = route;
1779
- this.publicRoute = publicRoute;
1780
- }
1781
- async findByOwnerId(params) {
1782
- const response = await this.api.get(`${this.route}by_owner`, {
1783
- params
1784
- });
1785
- return response.data;
1786
- }
1787
- async create(body) {
1788
- const response = await this.api.post(`${this.route}`, body);
1789
- return response.data;
1790
- }
1791
- async deleteOne(selector) {
1792
- const response = await this.api.delete(`${this.route}${selector.id}`);
1793
- return response.data;
1794
- }
1795
- };
1796
-
1797
1668
  // src/modules/user/userPositions.ts
1798
1669
  var userPositions_exports = {};
1799
1670
  __export(userPositions_exports, {
1800
- default: () => Repository47
1671
+ default: () => Repository44
1801
1672
  });
1802
- var Repository47 = class {
1803
- constructor({ api, route, publicRoute }) {
1673
+ var Repository44 = class {
1674
+ constructor({ api, route }) {
1804
1675
  this.api = api;
1805
1676
  this.route = route;
1806
- this.publicRoute = publicRoute;
1807
1677
  }
1808
1678
  async find(params) {
1809
1679
  const response = await this.api.get(`${this.route}`, { params });
@@ -1840,13 +1710,12 @@ var Repository47 = class {
1840
1710
  // src/modules/user/user.ts
1841
1711
  var user_exports = {};
1842
1712
  __export(user_exports, {
1843
- default: () => Repository48
1713
+ default: () => Repository45
1844
1714
  });
1845
- var Repository48 = class {
1846
- constructor({ api, route, publicRoute }) {
1715
+ var Repository45 = class {
1716
+ constructor({ api, route }) {
1847
1717
  this.api = api;
1848
1718
  this.route = route;
1849
- this.publicRoute = publicRoute;
1850
1719
  }
1851
1720
  async find(params) {
1852
1721
  const response = await this.api.get(`${this.route}`, { params });
@@ -1891,13 +1760,12 @@ var Repository48 = class {
1891
1760
  // src/modules/stock/vatTax.ts
1892
1761
  var vatTax_exports = {};
1893
1762
  __export(vatTax_exports, {
1894
- default: () => Repository49
1763
+ default: () => Repository46
1895
1764
  });
1896
- var Repository49 = class {
1897
- constructor({ api, route, publicRoute }) {
1765
+ var Repository46 = class {
1766
+ constructor({ api, route }) {
1898
1767
  this.api = api;
1899
1768
  this.route = route;
1900
- this.publicRoute = publicRoute;
1901
1769
  }
1902
1770
  async find(params) {
1903
1771
  const response = await this.api.get(`${this.route}`, { params });
@@ -1940,13 +1808,12 @@ var Repository49 = class {
1940
1808
  // src/modules/stock/vatTaxZone.ts
1941
1809
  var vatTaxZone_exports = {};
1942
1810
  __export(vatTaxZone_exports, {
1943
- default: () => Repository50
1811
+ default: () => Repository47
1944
1812
  });
1945
- var Repository50 = class {
1946
- constructor({ api, route, publicRoute }) {
1813
+ var Repository47 = class {
1814
+ constructor({ api, route }) {
1947
1815
  this.api = api;
1948
1816
  this.route = route;
1949
- this.publicRoute = publicRoute;
1950
1817
  }
1951
1818
  async find(params) {
1952
1819
  const response = await this.api.get(`${this.route}`, { params });
@@ -1989,13 +1856,12 @@ var Repository50 = class {
1989
1856
  // src/modules/supply/workflow.ts
1990
1857
  var workflow_exports = {};
1991
1858
  __export(workflow_exports, {
1992
- default: () => Repository51
1859
+ default: () => Repository48
1993
1860
  });
1994
- var Repository51 = class {
1995
- constructor({ api, route, publicRoute }) {
1861
+ var Repository48 = class {
1862
+ constructor({ api, route }) {
1996
1863
  this.api = api;
1997
1864
  this.route = route;
1998
- this.publicRoute = publicRoute;
1999
1865
  }
2000
1866
  async find(params) {
2001
1867
  const response = await this.api.get(`${this.route}`, { params });
@@ -2022,13 +1888,12 @@ var Repository51 = class {
2022
1888
  // src/modules/user/deliveryMethods.ts
2023
1889
  var deliveryMethods_exports = {};
2024
1890
  __export(deliveryMethods_exports, {
2025
- default: () => Repository52
1891
+ default: () => Repository49
2026
1892
  });
2027
- var Repository52 = class {
2028
- constructor({ api, route, publicRoute }) {
1893
+ var Repository49 = class {
1894
+ constructor({ api, route }) {
2029
1895
  this.api = api;
2030
1896
  this.route = route;
2031
- this.publicRoute = publicRoute;
2032
1897
  }
2033
1898
  async find() {
2034
1899
  const response = await this.api.get(`${this.route}`);
@@ -2061,13 +1926,12 @@ var Repository52 = class {
2061
1926
  // src/modules/user/maturityDates.ts
2062
1927
  var maturityDates_exports = {};
2063
1928
  __export(maturityDates_exports, {
2064
- default: () => Repository53
1929
+ default: () => Repository50
2065
1930
  });
2066
- var Repository53 = class {
2067
- constructor({ api, route, publicRoute }) {
1931
+ var Repository50 = class {
1932
+ constructor({ api, route }) {
2068
1933
  this.api = api;
2069
1934
  this.route = route;
2070
- this.publicRoute = publicRoute;
2071
1935
  }
2072
1936
  async find() {
2073
1937
  const response = await this.api.get(`${this.route}`);
@@ -2100,13 +1964,12 @@ var Repository53 = class {
2100
1964
  // src/modules/user/paymentMethods.ts
2101
1965
  var paymentMethods_exports = {};
2102
1966
  __export(paymentMethods_exports, {
2103
- default: () => Repository54
1967
+ default: () => Repository51
2104
1968
  });
2105
- var Repository54 = class {
2106
- constructor({ api, route, publicRoute }) {
1969
+ var Repository51 = class {
1970
+ constructor({ api, route }) {
2107
1971
  this.api = api;
2108
1972
  this.route = route;
2109
- this.publicRoute = publicRoute;
2110
1973
  }
2111
1974
  async find() {
2112
1975
  const response = await this.api.get(`${this.route}`);
@@ -2139,13 +2002,12 @@ var Repository54 = class {
2139
2002
  // src/modules/user/vehicles.ts
2140
2003
  var vehicles_exports = {};
2141
2004
  __export(vehicles_exports, {
2142
- default: () => Repository55
2005
+ default: () => Repository52
2143
2006
  });
2144
- var Repository55 = class {
2145
- constructor({ api, route, publicRoute }) {
2007
+ var Repository52 = class {
2008
+ constructor({ api, route }) {
2146
2009
  this.api = api;
2147
2010
  this.route = route;
2148
- this.publicRoute = publicRoute;
2149
2011
  }
2150
2012
  async find() {
2151
2013
  const response = await this.api.get(`${this.route}`);
@@ -2168,13 +2030,12 @@ var Repository55 = class {
2168
2030
  // src/modules/supply/externalDocumentType.ts
2169
2031
  var externalDocumentType_exports = {};
2170
2032
  __export(externalDocumentType_exports, {
2171
- default: () => Repository56
2033
+ default: () => Repository53
2172
2034
  });
2173
- var Repository56 = class {
2174
- constructor({ api, route, publicRoute }) {
2035
+ var Repository53 = class {
2036
+ constructor({ api, route }) {
2175
2037
  this.api = api;
2176
2038
  this.route = route;
2177
- this.publicRoute = publicRoute;
2178
2039
  }
2179
2040
  async find() {
2180
2041
  const response = await this.api.get(`${this.route}`);
@@ -2189,13 +2050,12 @@ var Repository56 = class {
2189
2050
  // src/modules/supply/documentSet.ts
2190
2051
  var documentSet_exports = {};
2191
2052
  __export(documentSet_exports, {
2192
- default: () => Repository57
2053
+ default: () => Repository54
2193
2054
  });
2194
- var Repository57 = class {
2195
- constructor({ api, route, publicRoute }) {
2055
+ var Repository54 = class {
2056
+ constructor({ api, route }) {
2196
2057
  this.api = api;
2197
2058
  this.route = route;
2198
- this.publicRoute = publicRoute;
2199
2059
  }
2200
2060
  async find() {
2201
2061
  const response = await this.api.get(`${this.route}`);
@@ -2226,20 +2086,15 @@ var Repository57 = class {
2226
2086
  // src/modules/supply/payment.ts
2227
2087
  var payment_exports = {};
2228
2088
  __export(payment_exports, {
2229
- default: () => Repository58
2089
+ default: () => Repository55
2230
2090
  });
2231
- var Repository58 = class {
2232
- constructor({ api, route, publicRoute }) {
2091
+ var Repository55 = class {
2092
+ constructor({ api, route }) {
2233
2093
  this.api = api;
2234
2094
  this.route = route;
2235
- this.publicRoute = publicRoute;
2236
- }
2237
- async find(params) {
2238
- const response = await this.api.get(`${this.route}`, { params });
2239
- return response.data;
2240
2095
  }
2241
- async findPaginated(params) {
2242
- const response = await this.api.get(`${this.route}paginated`, { params });
2096
+ async findById(selector) {
2097
+ const response = await this.api.get(`${this.route}${selector.id}`);
2243
2098
  return response.data;
2244
2099
  }
2245
2100
  async findByOwnerId(params) {
@@ -2248,24 +2103,12 @@ var Repository58 = class {
2248
2103
  });
2249
2104
  return response.data;
2250
2105
  }
2251
- async findById(selector) {
2252
- const response = await this.api.get(`${this.route}${selector.id}`);
2253
- return response.data;
2254
- }
2255
- async deleteBatch(selector) {
2256
- const response = await this.api.delete(`${this.route}delete_batch${selector.id}`);
2257
- return response.data;
2258
- }
2259
- async findCurrentAccountByOwnerId(params) {
2260
- const response = await this.api.get(`${this.route}current_account`, {
2261
- params
2262
- });
2106
+ async find(params) {
2107
+ const response = await this.api.get(`${this.route}`, { params });
2263
2108
  return response.data;
2264
2109
  }
2265
- async findBalanceByOwnerId(params) {
2266
- const response = await this.api.get(`${this.route}balance`, {
2267
- params
2268
- });
2110
+ async findPaginated(params) {
2111
+ const response = await this.api.get(`${this.route}paginated`, { params });
2269
2112
  return response.data;
2270
2113
  }
2271
2114
  async findSettledMaterialEntrance(params) {
@@ -2274,61 +2117,14 @@ var Repository58 = class {
2274
2117
  });
2275
2118
  return response.data;
2276
2119
  }
2277
- async findSettledMaterialEntranceProviders() {
2278
- const response = await this.api.get(`${this.route}settled_material_entrance_providers`);
2279
- return response.data;
2280
- }
2281
- async createProvidersPayments(body) {
2282
- const response = await this.api.post(`${this.route}provider`, body);
2283
- return response.data;
2284
- }
2285
- async findPaymentsNotExported(params) {
2286
- const response = await this.api.get(`${this.route}not_exported`, {
2287
- params
2288
- });
2289
- return response.data;
2290
- }
2291
- async findPaymentBatches() {
2292
- const response = await this.api.get(`${this.route}batches`);
2293
- return response.data;
2294
- }
2295
- async updateDownloadedBatchNumber(params) {
2296
- await this.api.put(`${this.route}downloaded_batch_number/${params}`);
2297
- }
2298
- async exportCurrentAccount(params) {
2299
- const response = await this.api.get(`${this.publicRoute}export_current_account`, {
2300
- params
2301
- });
2302
- return response.data;
2303
- }
2304
2120
  async findSettledMaterialEntranceByDate(params) {
2305
2121
  const response = await this.api.get(`${this.route}settled_material_entrance_by_date`, {
2306
2122
  params
2307
2123
  });
2308
2124
  return response.data;
2309
2125
  }
2310
- async exportPayments(body) {
2311
- await this.api.post(`${this.route}export_payments`, body);
2312
- }
2313
- getExportCurrentAccountUrl({
2314
- owner_id,
2315
- start_date,
2316
- end_date,
2317
- output,
2318
- token
2319
- }) {
2320
- const qs = new URLSearchParams();
2321
- qs.set("owner_id", owner_id);
2322
- qs.set("output", output);
2323
- if (start_date) qs.set("start_date", start_date.toISOString());
2324
- if (end_date) qs.set("end_date", end_date.toISOString());
2325
- qs.set("token", token);
2326
- return `${this.publicRoute}export_current_account?${qs.toString()}`;
2327
- }
2328
- async findCurrentAccountPaginated(params) {
2329
- const response = await this.api.get(`${this.route}current_account_paginated`, {
2330
- params
2331
- });
2126
+ async findSettledMaterialEntranceProviders() {
2127
+ const response = await this.api.get(`${this.route}settled_material_entrance_providers`);
2332
2128
  return response.data;
2333
2129
  }
2334
2130
  };
@@ -2336,13 +2132,12 @@ var Repository58 = class {
2336
2132
  // src/modules/supply/externalDocumentHeader.ts
2337
2133
  var externalDocumentHeader_exports = {};
2338
2134
  __export(externalDocumentHeader_exports, {
2339
- default: () => Repository59
2135
+ default: () => Repository56
2340
2136
  });
2341
- var Repository59 = class {
2342
- constructor({ api, route, publicRoute }) {
2137
+ var Repository56 = class {
2138
+ constructor({ api, route }) {
2343
2139
  this.api = api;
2344
2140
  this.route = route;
2345
- this.publicRoute = publicRoute;
2346
2141
  }
2347
2142
  async create(body) {
2348
2143
  const response = await this.api.post(`${this.route}`, body);
@@ -2360,12 +2155,6 @@ var Repository59 = class {
2360
2155
  const response = await this.api.get(`${this.route}by_owner`, { params });
2361
2156
  return response.data;
2362
2157
  }
2363
- async publicFindByOwnerId(params) {
2364
- const response = await this.api.get(`${this.route}public_by_owner`, {
2365
- params
2366
- });
2367
- return response.data;
2368
- }
2369
2158
  async find(params) {
2370
2159
  const response = await this.api.get(`${this.route}`, { params });
2371
2160
  return response.data;
@@ -2381,26 +2170,17 @@ var Repository59 = class {
2381
2170
  async sendEmailDocument(body) {
2382
2171
  await this.api.post(`${this.route}sendEmail`, body);
2383
2172
  }
2384
- async createPublicDocumentHeaderNote(data) {
2385
- const response = await this.api.post(`${this.route}public_document_header_note`, data);
2386
- return response.data;
2387
- }
2388
- async updatePublicDocumentHeaderNote({ id }, data) {
2389
- const response = await this.api.put(`${this.route}public_document_header_note/${id}`, data);
2390
- return response.data;
2391
- }
2392
2173
  };
2393
2174
 
2394
2175
  // src/modules/supply/vatValidation.ts
2395
2176
  var vatValidation_exports = {};
2396
2177
  __export(vatValidation_exports, {
2397
- default: () => Repository60
2178
+ default: () => Repository57
2398
2179
  });
2399
- var Repository60 = class {
2400
- constructor({ api, route, publicRoute }) {
2180
+ var Repository57 = class {
2181
+ constructor({ api, route }) {
2401
2182
  this.api = api;
2402
2183
  this.route = route;
2403
- this.publicRoute = publicRoute;
2404
2184
  }
2405
2185
  async findByLatest(nif) {
2406
2186
  const response = await this.api.get(`${this.route}`, {
@@ -2415,13 +2195,12 @@ var Repository60 = class {
2415
2195
  // src/modules/stock/stockMovement.ts
2416
2196
  var stockMovement_exports = {};
2417
2197
  __export(stockMovement_exports, {
2418
- default: () => Repository61
2198
+ default: () => Repository58
2419
2199
  });
2420
- var Repository61 = class {
2421
- constructor({ api, route, publicRoute }) {
2200
+ var Repository58 = class {
2201
+ constructor({ api, route }) {
2422
2202
  this.api = api;
2423
2203
  this.route = route;
2424
- this.publicRoute = publicRoute;
2425
2204
  }
2426
2205
  async findByProvider({
2427
2206
  id
@@ -2443,7 +2222,7 @@ var Repository61 = class {
2443
2222
  qs.set("version", version);
2444
2223
  qs.set("format", format);
2445
2224
  qs.set("token", token);
2446
- return `${this.publicRoute}csv?${qs.toString()}`;
2225
+ return `${this.route}csv?${qs.toString()}`;
2447
2226
  }
2448
2227
  async findStockMovementPaginated(params) {
2449
2228
  const response = await this.api.get(`${this.route}stock_movement_paginated`, { params });
@@ -2454,13 +2233,12 @@ var Repository61 = class {
2454
2233
  // src/modules/user/zipCode.ts
2455
2234
  var zipCode_exports = {};
2456
2235
  __export(zipCode_exports, {
2457
- default: () => Repository62
2236
+ default: () => Repository59
2458
2237
  });
2459
- var Repository62 = class {
2460
- constructor({ api, route, publicRoute }) {
2238
+ var Repository59 = class {
2239
+ constructor({ api, route }) {
2461
2240
  this.api = api;
2462
2241
  this.route = route;
2463
- this.publicRoute = publicRoute;
2464
2242
  }
2465
2243
  async create(body) {
2466
2244
  await this.api.post(`${this.route}`, body);
@@ -2474,13 +2252,12 @@ var Repository62 = class {
2474
2252
  // src/modules/user/tenant.ts
2475
2253
  var tenant_exports = {};
2476
2254
  __export(tenant_exports, {
2477
- default: () => Repository63
2255
+ default: () => Repository60
2478
2256
  });
2479
- var Repository63 = class {
2480
- constructor({ api, route, publicRoute }) {
2257
+ var Repository60 = class {
2258
+ constructor({ api, route }) {
2481
2259
  this.api = api;
2482
2260
  this.route = route;
2483
- this.publicRoute = publicRoute;
2484
2261
  }
2485
2262
  async create(body) {
2486
2263
  const response = await this.api.post(`${this.route}`, body);
@@ -2503,13 +2280,12 @@ var Repository63 = class {
2503
2280
  // src/modules/supply/preSale.ts
2504
2281
  var preSale_exports = {};
2505
2282
  __export(preSale_exports, {
2506
- default: () => Repository64
2283
+ default: () => Repository61
2507
2284
  });
2508
- var Repository64 = class {
2509
- constructor({ api, route, publicRoute }) {
2285
+ var Repository61 = class {
2286
+ constructor({ api, route }) {
2510
2287
  this.api = api;
2511
2288
  this.route = route;
2512
- this.publicRoute = publicRoute;
2513
2289
  }
2514
2290
  async find(selector) {
2515
2291
  const response = await this.api.get(`${this.route}by_user/${selector.created_by}`);
@@ -2548,13 +2324,12 @@ var Repository64 = class {
2548
2324
  // src/modules/supply/preSaleProduct.ts
2549
2325
  var preSaleProduct_exports = {};
2550
2326
  __export(preSaleProduct_exports, {
2551
- default: () => Repository65
2327
+ default: () => Repository62
2552
2328
  });
2553
- var Repository65 = class {
2554
- constructor({ api, route, publicRoute }) {
2329
+ var Repository62 = class {
2330
+ constructor({ api, route }) {
2555
2331
  this.api = api;
2556
2332
  this.route = route;
2557
- this.publicRoute = publicRoute;
2558
2333
  }
2559
2334
  async find() {
2560
2335
  const response = await this.api.get(`${this.route}`);
@@ -2569,13 +2344,12 @@ var Repository65 = class {
2569
2344
  // src/modules/supply/orderManagement.ts
2570
2345
  var orderManagement_exports = {};
2571
2346
  __export(orderManagement_exports, {
2572
- default: () => Repository66
2347
+ default: () => Repository63
2573
2348
  });
2574
- var Repository66 = class {
2575
- constructor({ api, route, publicRoute }) {
2349
+ var Repository63 = class {
2350
+ constructor({ api, route }) {
2576
2351
  this.api = api;
2577
2352
  this.route = route;
2578
- this.publicRoute = publicRoute;
2579
2353
  }
2580
2354
  async findProviderProducts(params) {
2581
2355
  const response = await this.api.get(`${this.route}provider_products`, {
@@ -2592,13 +2366,12 @@ var Repository66 = class {
2592
2366
  // src/modules/print/npc.ts
2593
2367
  var npc_exports = {};
2594
2368
  __export(npc_exports, {
2595
- default: () => Repository67
2369
+ default: () => Repository64
2596
2370
  });
2597
- var Repository67 = class {
2598
- constructor({ api, route, publicRoute }) {
2371
+ var Repository64 = class {
2372
+ constructor({ api, route }) {
2599
2373
  this.api = api;
2600
2374
  this.route = route;
2601
- this.publicRoute = publicRoute;
2602
2375
  }
2603
2376
  async find() {
2604
2377
  const response = await this.api.get(`${this.route}`);
@@ -2619,13 +2392,12 @@ var Repository67 = class {
2619
2392
  // src/modules/print/printer.ts
2620
2393
  var printer_exports = {};
2621
2394
  __export(printer_exports, {
2622
- default: () => Repository68
2395
+ default: () => Repository65
2623
2396
  });
2624
- var Repository68 = class {
2625
- constructor({ api, route, publicRoute }) {
2397
+ var Repository65 = class {
2398
+ constructor({ api, route }) {
2626
2399
  this.api = api;
2627
2400
  this.route = route;
2628
- this.publicRoute = publicRoute;
2629
2401
  }
2630
2402
  async find() {
2631
2403
  const response = await this.api.get(`${this.route}`);
@@ -2651,13 +2423,12 @@ var Repository68 = class {
2651
2423
  // src/modules/print/schedulePrintJob.ts
2652
2424
  var schedulePrintJob_exports = {};
2653
2425
  __export(schedulePrintJob_exports, {
2654
- default: () => Repository69
2426
+ default: () => Repository66
2655
2427
  });
2656
- var Repository69 = class {
2657
- constructor({ api, route, publicRoute }) {
2428
+ var Repository66 = class {
2429
+ constructor({ api, route }) {
2658
2430
  this.api = api;
2659
2431
  this.route = route;
2660
- this.publicRoute = publicRoute;
2661
2432
  }
2662
2433
  async create(body) {
2663
2434
  await this.api.post(`${this.route}`, body);
@@ -2681,13 +2452,12 @@ var Repository69 = class {
2681
2452
  // src/modules/stock/queryList.ts
2682
2453
  var queryList_exports = {};
2683
2454
  __export(queryList_exports, {
2684
- default: () => Repository70
2455
+ default: () => Repository67
2685
2456
  });
2686
- var Repository70 = class {
2687
- constructor({ api, route, publicRoute }) {
2457
+ var Repository67 = class {
2458
+ constructor({ api, route }) {
2688
2459
  this.api = api;
2689
2460
  this.route = route;
2690
- this.publicRoute = publicRoute;
2691
2461
  }
2692
2462
  async find() {
2693
2463
  const response = await this.api.get(`${this.route}`);
@@ -2732,13 +2502,12 @@ var Repository70 = class {
2732
2502
  // src/modules/stock/queryParameter.ts
2733
2503
  var queryParameter_exports = {};
2734
2504
  __export(queryParameter_exports, {
2735
- default: () => Repository71
2505
+ default: () => Repository68
2736
2506
  });
2737
- var Repository71 = class {
2738
- constructor({ api, route, publicRoute }) {
2507
+ var Repository68 = class {
2508
+ constructor({ api, route }) {
2739
2509
  this.api = api;
2740
2510
  this.route = route;
2741
- this.publicRoute = publicRoute;
2742
2511
  }
2743
2512
  async find() {
2744
2513
  const response = await this.api.get(`${this.route}`);
@@ -2769,13 +2538,12 @@ var Repository71 = class {
2769
2538
  // src/modules/stock/returnReason.ts
2770
2539
  var returnReason_exports = {};
2771
2540
  __export(returnReason_exports, {
2772
- default: () => Repository72
2541
+ default: () => Repository69
2773
2542
  });
2774
- var Repository72 = class {
2775
- constructor({ api, route, publicRoute }) {
2543
+ var Repository69 = class {
2544
+ constructor({ api, route }) {
2776
2545
  this.api = api;
2777
2546
  this.route = route;
2778
- this.publicRoute = publicRoute;
2779
2547
  }
2780
2548
  async create(body) {
2781
2549
  const response = await this.api.post(`${this.route}`, body);
@@ -2798,13 +2566,12 @@ var Repository72 = class {
2798
2566
  // src/modules/document/propostaSheets.ts
2799
2567
  var propostaSheets_exports = {};
2800
2568
  __export(propostaSheets_exports, {
2801
- default: () => Repository73
2569
+ default: () => Repository70
2802
2570
  });
2803
- var Repository73 = class {
2804
- constructor({ api, route, publicRoute }) {
2571
+ var Repository70 = class {
2572
+ constructor({ api, route }) {
2805
2573
  this.api = api;
2806
2574
  this.route = route;
2807
- this.publicRoute = publicRoute;
2808
2575
  }
2809
2576
  async isProcessing(params) {
2810
2577
  const response = await this.api.get(`${this.route}is_processing`, {
@@ -2822,7 +2589,7 @@ var Repository73 = class {
2822
2589
  const response = await this.api.post(`${this.route}create_sheet_from_document`, params);
2823
2590
  return response.data;
2824
2591
  }
2825
- async cloneSheetsToNewDocument(params) {
2592
+ async cloneSheetToNewDocument(params) {
2826
2593
  const response = await this.api.post(`${this.route}clone_sheet_to_new_document`, params);
2827
2594
  return response.data;
2828
2595
  }
@@ -2847,18 +2614,21 @@ var Repository73 = class {
2847
2614
  async rmUpdateDataBySheetId(params, body) {
2848
2615
  await this.api.post(`${this.route}rm_data_by_sheet_id/${params.id}`, body);
2849
2616
  }
2617
+ async findRmOpenDocuments() {
2618
+ const response = await this.api.get(`${this.route}rm_open_documents`);
2619
+ return response.data;
2620
+ }
2850
2621
  };
2851
2622
 
2852
2623
  // src/modules/stock/schedule.ts
2853
2624
  var schedule_exports = {};
2854
2625
  __export(schedule_exports, {
2855
- default: () => Repository74
2626
+ default: () => Repository71
2856
2627
  });
2857
- var Repository74 = class {
2858
- constructor({ api, route, publicRoute }) {
2628
+ var Repository71 = class {
2629
+ constructor({ api, route }) {
2859
2630
  this.api = api;
2860
2631
  this.route = route;
2861
- this.publicRoute = publicRoute;
2862
2632
  }
2863
2633
  async runImmediately(selector) {
2864
2634
  await this.api.post(`${this.route}${selector.scheduleType}`);
@@ -2868,13 +2638,12 @@ var Repository74 = class {
2868
2638
  // src/modules/integration/googleFilePermission.ts
2869
2639
  var googleFilePermission_exports = {};
2870
2640
  __export(googleFilePermission_exports, {
2871
- default: () => Repository75
2641
+ default: () => Repository72
2872
2642
  });
2873
- var Repository75 = class {
2874
- constructor({ api, route, publicRoute }) {
2643
+ var Repository72 = class {
2644
+ constructor({ api, route }) {
2875
2645
  this.api = api;
2876
2646
  this.route = route;
2877
- this.publicRoute = publicRoute;
2878
2647
  }
2879
2648
  async create(body) {
2880
2649
  const response = await this.api.post(`${this.route}`, body);
@@ -2897,20 +2666,19 @@ var Repository75 = class {
2897
2666
  // src/modules/integration/settings.ts
2898
2667
  var settings_exports = {};
2899
2668
  __export(settings_exports, {
2900
- default: () => Repository76
2669
+ default: () => Repository73
2901
2670
  });
2902
- var Repository76 = class {
2903
- constructor({ api, route, publicRoute }) {
2671
+ var Repository73 = class {
2672
+ constructor({ api, route }) {
2904
2673
  this.api = api;
2905
2674
  this.route = route;
2906
- this.publicRoute = publicRoute;
2907
2675
  }
2908
2676
  async create(body) {
2909
2677
  const response = await this.api.post(`${this.route}`, body);
2910
2678
  return response.data;
2911
2679
  }
2912
2680
  async findByKey(params) {
2913
- const response = await this.api.get(`${this.publicRoute}by_key`, {
2681
+ const response = await this.api.get(`${this.route}by_key`, {
2914
2682
  params
2915
2683
  });
2916
2684
  return response.data;
@@ -2932,13 +2700,12 @@ var Repository76 = class {
2932
2700
  // src/modules/tickets/tickets.ts
2933
2701
  var tickets_exports = {};
2934
2702
  __export(tickets_exports, {
2935
- default: () => Repository77
2703
+ default: () => Repository74
2936
2704
  });
2937
- var Repository77 = class {
2938
- constructor({ api, route, publicRoute }) {
2705
+ var Repository74 = class {
2706
+ constructor({ api, route }) {
2939
2707
  this.api = api;
2940
2708
  this.route = route;
2941
- this.publicRoute = publicRoute;
2942
2709
  }
2943
2710
  async create(body) {
2944
2711
  const response = await this.api.post(`${this.route}`, body);
@@ -2961,13 +2728,12 @@ var Repository77 = class {
2961
2728
  // src/modules/tickets/channel.ts
2962
2729
  var channel_exports = {};
2963
2730
  __export(channel_exports, {
2964
- default: () => Repository78
2731
+ default: () => Repository75
2965
2732
  });
2966
- var Repository78 = class {
2967
- constructor({ api, route, publicRoute }) {
2733
+ var Repository75 = class {
2734
+ constructor({ api, route }) {
2968
2735
  this.api = api;
2969
2736
  this.route = route;
2970
- this.publicRoute = publicRoute;
2971
2737
  }
2972
2738
  async create(body) {
2973
2739
  const response = await this.api.post(`${this.route}`, body);
@@ -2998,13 +2764,12 @@ var Repository78 = class {
2998
2764
  // src/modules/tickets/language.ts
2999
2765
  var language_exports2 = {};
3000
2766
  __export(language_exports2, {
3001
- default: () => Repository79
2767
+ default: () => Repository76
3002
2768
  });
3003
- var Repository79 = class {
3004
- constructor({ api, route, publicRoute }) {
2769
+ var Repository76 = class {
2770
+ constructor({ api, route }) {
3005
2771
  this.api = api;
3006
2772
  this.route = route;
3007
- this.publicRoute = publicRoute;
3008
2773
  }
3009
2774
  async create(body) {
3010
2775
  const response = await this.api.post(`${this.route}`, body);
@@ -3035,13 +2800,12 @@ var Repository79 = class {
3035
2800
  // src/modules/tickets/clt.ts
3036
2801
  var clt_exports = {};
3037
2802
  __export(clt_exports, {
3038
- default: () => Repository80
2803
+ default: () => Repository77
3039
2804
  });
3040
- var Repository80 = class {
3041
- constructor({ api, route, publicRoute }) {
2805
+ var Repository77 = class {
2806
+ constructor({ api, route }) {
3042
2807
  this.api = api;
3043
2808
  this.route = route;
3044
- this.publicRoute = publicRoute;
3045
2809
  }
3046
2810
  async create(body) {
3047
2811
  const response = await this.api.post(`${this.route}`, body);
@@ -3072,13 +2836,12 @@ var Repository80 = class {
3072
2836
  // src/modules/supply/startDocumentHeaderLastUpdate.ts
3073
2837
  var startDocumentHeaderLastUpdate_exports = {};
3074
2838
  __export(startDocumentHeaderLastUpdate_exports, {
3075
- default: () => Repository81
2839
+ default: () => Repository78
3076
2840
  });
3077
- var Repository81 = class {
3078
- constructor({ api, route, publicRoute }) {
2841
+ var Repository78 = class {
2842
+ constructor({ api, route }) {
3079
2843
  this.api = api;
3080
2844
  this.route = route;
3081
- this.publicRoute = publicRoute;
3082
2845
  }
3083
2846
  async findById(selector) {
3084
2847
  const response = await this.api.get(`${this.route}${selector.id}`);
@@ -3089,13 +2852,12 @@ var Repository81 = class {
3089
2852
  // src/modules/user/persona.ts
3090
2853
  var persona_exports = {};
3091
2854
  __export(persona_exports, {
3092
- default: () => Repository82
2855
+ default: () => Repository79
3093
2856
  });
3094
- var Repository82 = class {
3095
- constructor({ api, route, publicRoute }) {
2857
+ var Repository79 = class {
2858
+ constructor({ api, route }) {
3096
2859
  this.api = api;
3097
2860
  this.route = route;
3098
- this.publicRoute = publicRoute;
3099
2861
  }
3100
2862
  async findByOwnerId(params) {
3101
2863
  const response = await this.api.get(`${this.route}by_owner`, {
@@ -3107,10 +2869,6 @@ var Repository82 = class {
3107
2869
  const response = await this.api.get(`${this.route}${selector.id}`);
3108
2870
  return response.data;
3109
2871
  }
3110
- async findContactPersonaByOwnerId(params) {
3111
- const response = await this.api.get(`${this.route}contact`, { params });
3112
- return response.data;
3113
- }
3114
2872
  async create(body) {
3115
2873
  const response = await this.api.post(`${this.route}`, body);
3116
2874
  return response.data;
@@ -3129,7 +2887,7 @@ var Repository82 = class {
3129
2887
  });
3130
2888
  return response.data;
3131
2889
  }
3132
- async find(data) {
2890
+ async findForBillOfLading(data) {
3133
2891
  const response = await this.api.get(`${this.route}`, {
3134
2892
  data
3135
2893
  });
@@ -3154,29 +2912,28 @@ var Repository82 = class {
3154
2912
  // src/modules/integration/projectInfo.ts
3155
2913
  var projectInfo_exports = {};
3156
2914
  __export(projectInfo_exports, {
3157
- default: () => Repository83
2915
+ default: () => Repository80
3158
2916
  });
3159
- var Repository83 = class {
3160
- constructor({ api, route, publicRoute }) {
2917
+ var Repository80 = class {
2918
+ constructor({ api, route }) {
3161
2919
  this.api = api;
3162
2920
  this.route = route;
3163
- this.publicRoute = publicRoute;
3164
2921
  }
3165
2922
  async sendEmail(body) {
3166
- await this.api.post(`${this.route}sendEmail`, body);
2923
+ const response = await this.api.post(`${this.route}sendEmail`, body);
2924
+ return response.data;
3167
2925
  }
3168
2926
  };
3169
2927
 
3170
2928
  // src/modules/document/order.ts
3171
2929
  var order_exports = {};
3172
2930
  __export(order_exports, {
3173
- default: () => Repository84
2931
+ default: () => Repository81
3174
2932
  });
3175
- var Repository84 = class {
3176
- constructor({ api, route, publicRoute }) {
2933
+ var Repository81 = class {
2934
+ constructor({ api, route }) {
3177
2935
  this.api = api;
3178
2936
  this.route = route;
3179
- this.publicRoute = publicRoute;
3180
2937
  }
3181
2938
  async unsetCativado(params) {
3182
2939
  const response = await this.api.post(`${this.route}unset_cativado`, {
@@ -3209,13 +2966,12 @@ var Repository84 = class {
3209
2966
  // src/modules/document/purchase.ts
3210
2967
  var purchase_exports = {};
3211
2968
  __export(purchase_exports, {
3212
- default: () => Repository85
2969
+ default: () => Repository82
3213
2970
  });
3214
- var Repository85 = class {
3215
- constructor({ api, route, publicRoute }) {
2971
+ var Repository82 = class {
2972
+ constructor({ api, route }) {
3216
2973
  this.api = api;
3217
2974
  this.route = route;
3218
- this.publicRoute = publicRoute;
3219
2975
  }
3220
2976
  async purchaseFromProvider(data) {
3221
2977
  await this.api.post(`${this.route}purchase_from_provider`, data);
@@ -3234,18 +2990,21 @@ var Repository85 = class {
3234
2990
  const response = await this.api.post(`${this.route}sync`, data);
3235
2991
  return response.data;
3236
2992
  }
2993
+ async findPurchasedOrdersSummary(params) {
2994
+ const response = await this.api.get(`${this.route}purchased_orders_summary`, { params });
2995
+ return response.data;
2996
+ }
3237
2997
  };
3238
2998
 
3239
2999
  // src/modules/document/materialEntrance.ts
3240
3000
  var materialEntrance_exports = {};
3241
3001
  __export(materialEntrance_exports, {
3242
- default: () => Repository86
3002
+ default: () => Repository83
3243
3003
  });
3244
- var Repository86 = class {
3245
- constructor({ api, route, publicRoute }) {
3004
+ var Repository83 = class {
3005
+ constructor({ api, route }) {
3246
3006
  this.api = api;
3247
3007
  this.route = route;
3248
- this.publicRoute = publicRoute;
3249
3008
  }
3250
3009
  async findMaterialEntranceProviders() {
3251
3010
  const response = await this.api.get(`${this.route}material_entrance_providers`);
@@ -3269,7 +3028,8 @@ var Repository86 = class {
3269
3028
  ef_name,
3270
3029
  pc_document_number,
3271
3030
  prison,
3272
- note
3031
+ note,
3032
+ availableStock
3273
3033
  }, token) {
3274
3034
  const qs = new URLSearchParams();
3275
3035
  qs.set("ef_name", ef_name);
@@ -3281,8 +3041,9 @@ var Repository86 = class {
3281
3041
  qs.set("note", note.toString());
3282
3042
  }
3283
3043
  qs.set("prison", prison.toString());
3044
+ qs.set("availableStock", availableStock.toString());
3284
3045
  qs.set("token", token);
3285
- return `${this.publicRoute}print_label_pdf/${product_id}?${qs.toString()}`;
3046
+ return `${this.route}print_label_pdf/${product_id}?${qs.toString()}`;
3286
3047
  }
3287
3048
  printBulkLabelToPdfUrl({
3288
3049
  groupLabel,
@@ -3293,20 +3054,19 @@ var Repository86 = class {
3293
3054
  qs.set("groupLabel", groupLabel.toString());
3294
3055
  qs.set("saved_em_picking_ids", saved_em_picking_ids);
3295
3056
  qs.set("token", token);
3296
- return `${this.publicRoute}print_bulk_label_pdf?${qs.toString()}`;
3057
+ return `${this.route}print_bulk_label_pdf?${qs.toString()}`;
3297
3058
  }
3298
3059
  };
3299
3060
 
3300
3061
  // src/modules/document/transformado.ts
3301
3062
  var transformado_exports = {};
3302
3063
  __export(transformado_exports, {
3303
- default: () => Repository87
3064
+ default: () => Repository84
3304
3065
  });
3305
- var Repository87 = class {
3306
- constructor({ api, route, publicRoute }) {
3066
+ var Repository84 = class {
3067
+ constructor({ api, route }) {
3307
3068
  this.api = api;
3308
3069
  this.route = route;
3309
- this.publicRoute = publicRoute;
3310
3070
  }
3311
3071
  async transformar(body) {
3312
3072
  const response = await this.api.post(`${this.route}transformar`, body);
@@ -3321,13 +3081,12 @@ var Repository87 = class {
3321
3081
  // src/modules/document/upfrontReturn.ts
3322
3082
  var upfrontReturn_exports = {};
3323
3083
  __export(upfrontReturn_exports, {
3324
- default: () => Repository88
3084
+ default: () => Repository85
3325
3085
  });
3326
- var Repository88 = class {
3327
- constructor({ api, route, publicRoute }) {
3086
+ var Repository85 = class {
3087
+ constructor({ api, route }) {
3328
3088
  this.api = api;
3329
3089
  this.route = route;
3330
- this.publicRoute = publicRoute;
3331
3090
  }
3332
3091
  async create(selector, data) {
3333
3092
  const response = await this.api.post(`${this.route}${selector.id}`, data);
@@ -3338,13 +3097,12 @@ var Repository88 = class {
3338
3097
  // src/modules/stock/savedEmPicking.ts
3339
3098
  var savedEmPicking_exports = {};
3340
3099
  __export(savedEmPicking_exports, {
3341
- default: () => Repository89
3100
+ default: () => Repository86
3342
3101
  });
3343
- var Repository89 = class {
3344
- constructor({ api, route, publicRoute }) {
3102
+ var Repository86 = class {
3103
+ constructor({ api, route }) {
3345
3104
  this.api = api;
3346
3105
  this.route = route;
3347
- this.publicRoute = publicRoute;
3348
3106
  }
3349
3107
  async create(body) {
3350
3108
  const response = await this.api.post(`${this.route}`, body);
@@ -3365,13 +3123,12 @@ var Repository89 = class {
3365
3123
  // src/modules/integration/emailTemplate.ts
3366
3124
  var emailTemplate_exports = {};
3367
3125
  __export(emailTemplate_exports, {
3368
- default: () => Repository90
3126
+ default: () => Repository87
3369
3127
  });
3370
- var Repository90 = class {
3371
- constructor({ api, route, publicRoute }) {
3128
+ var Repository87 = class {
3129
+ constructor({ api, route }) {
3372
3130
  this.api = api;
3373
3131
  this.route = route;
3374
- this.publicRoute = publicRoute;
3375
3132
  }
3376
3133
  async find() {
3377
3134
  const response = await this.api.get(`${this.route}`);
@@ -3397,13 +3154,12 @@ var Repository90 = class {
3397
3154
  // src/modules/integration/emailTemplateAttachment.ts
3398
3155
  var emailTemplateAttachment_exports = {};
3399
3156
  __export(emailTemplateAttachment_exports, {
3400
- default: () => Repository91
3157
+ default: () => Repository88
3401
3158
  });
3402
- var Repository91 = class {
3403
- constructor({ api, route, publicRoute }) {
3159
+ var Repository88 = class {
3160
+ constructor({ api, route }) {
3404
3161
  this.api = api;
3405
3162
  this.route = route;
3406
- this.publicRoute = publicRoute;
3407
3163
  }
3408
3164
  async create(data) {
3409
3165
  const response = await this.api.post(`${this.route}`, data);
@@ -3417,13 +3173,12 @@ var Repository91 = class {
3417
3173
  // src/modules/stock/prison.ts
3418
3174
  var prison_exports = {};
3419
3175
  __export(prison_exports, {
3420
- default: () => Repository92
3176
+ default: () => Repository89
3421
3177
  });
3422
- var Repository92 = class {
3423
- constructor({ api, route, publicRoute }) {
3178
+ var Repository89 = class {
3179
+ constructor({ api, route }) {
3424
3180
  this.api = api;
3425
3181
  this.route = route;
3426
- this.publicRoute = publicRoute;
3427
3182
  }
3428
3183
  async putLineInPrison(data) {
3429
3184
  const response = await this.api.post(`${this.route}put_in_prison`, data);
@@ -3442,7 +3197,8 @@ var Repository92 = class {
3442
3197
  return response.data;
3443
3198
  }
3444
3199
  async checkLinesInPrison(data) {
3445
- await this.api.post(`${this.route}check_in_prison`, data);
3200
+ const response = await this.api.post(`${this.route}check_in_prison`, data);
3201
+ return response.data;
3446
3202
  }
3447
3203
  async createLinesInPrison(data) {
3448
3204
  const response = await this.api.post(`${this.route}create_lines`, data);
@@ -3453,13 +3209,12 @@ var Repository92 = class {
3453
3209
  // src/modules/document/quebra.ts
3454
3210
  var quebra_exports = {};
3455
3211
  __export(quebra_exports, {
3456
- default: () => Repository93
3212
+ default: () => Repository90
3457
3213
  });
3458
- var Repository93 = class {
3459
- constructor({ api, route, publicRoute }) {
3214
+ var Repository90 = class {
3215
+ constructor({ api, route }) {
3460
3216
  this.api = api;
3461
3217
  this.route = route;
3462
- this.publicRoute = publicRoute;
3463
3218
  }
3464
3219
  async findInventoryLosses() {
3465
3220
  const response = await this.api.get(`${this.route}`);
@@ -3485,13 +3240,12 @@ var Repository93 = class {
3485
3240
  // src/modules/document/inventario.ts
3486
3241
  var inventario_exports = {};
3487
3242
  __export(inventario_exports, {
3488
- default: () => Repository94
3243
+ default: () => Repository91
3489
3244
  });
3490
- var Repository94 = class {
3491
- constructor({ api, route, publicRoute }) {
3245
+ var Repository91 = class {
3246
+ constructor({ api, route }) {
3492
3247
  this.api = api;
3493
3248
  this.route = route;
3494
- this.publicRoute = publicRoute;
3495
3249
  }
3496
3250
  async createInventory(data) {
3497
3251
  await this.api.post(`${this.route}`, data);
@@ -3504,13 +3258,12 @@ var Repository94 = class {
3504
3258
  // src/modules/document/returnToProvider.ts
3505
3259
  var returnToProvider_exports = {};
3506
3260
  __export(returnToProvider_exports, {
3507
- default: () => Repository95
3261
+ default: () => Repository92
3508
3262
  });
3509
- var Repository95 = class {
3510
- constructor({ api, route, publicRoute }) {
3263
+ var Repository92 = class {
3264
+ constructor({ api, route }) {
3511
3265
  this.api = api;
3512
3266
  this.route = route;
3513
- this.publicRoute = publicRoute;
3514
3267
  }
3515
3268
  async findLinesToReturn(params) {
3516
3269
  const response = await this.api.get(`${this.route}lines_to_return`, {
@@ -3530,13 +3283,12 @@ var Repository95 = class {
3530
3283
  // src/modules/integration/emailVerification.ts
3531
3284
  var emailVerification_exports = {};
3532
3285
  __export(emailVerification_exports, {
3533
- default: () => Repository96
3286
+ default: () => Repository93
3534
3287
  });
3535
- var Repository96 = class {
3536
- constructor({ api, route, publicRoute }) {
3288
+ var Repository93 = class {
3289
+ constructor({ api, route }) {
3537
3290
  this.api = api;
3538
3291
  this.route = route;
3539
- this.publicRoute = publicRoute;
3540
3292
  }
3541
3293
  async isVerified(params) {
3542
3294
  const response = await this.api.get(`${this.route}`, { params });
@@ -3547,7 +3299,7 @@ var Repository96 = class {
3547
3299
  return response.data;
3548
3300
  }
3549
3301
  async markAsVerified(data) {
3550
- const response = await this.api.put(`${this.publicRoute}`, data);
3302
+ const response = await this.api.put(`${this.route}`, data);
3551
3303
  return response.data;
3552
3304
  }
3553
3305
  };
@@ -3555,13 +3307,12 @@ var Repository96 = class {
3555
3307
  // src/modules/integration/emailLog.ts
3556
3308
  var emailLog_exports = {};
3557
3309
  __export(emailLog_exports, {
3558
- default: () => Repository97
3310
+ default: () => Repository94
3559
3311
  });
3560
- var Repository97 = class {
3561
- constructor({ api, route, publicRoute }) {
3312
+ var Repository94 = class {
3313
+ constructor({ api, route }) {
3562
3314
  this.api = api;
3563
3315
  this.route = route;
3564
- this.publicRoute = publicRoute;
3565
3316
  }
3566
3317
  async find(params) {
3567
3318
  const response = await this.api.get(`${this.route}`, { params });
@@ -3588,67 +3339,48 @@ var Repository97 = class {
3588
3339
  // src/modules/supply/documentLineNote.ts
3589
3340
  var documentLineNote_exports = {};
3590
3341
  __export(documentLineNote_exports, {
3591
- default: () => Repository98
3342
+ default: () => Repository95
3592
3343
  });
3593
- var Repository98 = class {
3594
- constructor({ api, route, publicRoute }) {
3344
+ var Repository95 = class {
3345
+ constructor({ api, route }) {
3595
3346
  this.api = api;
3596
3347
  this.route = route;
3597
- this.publicRoute = publicRoute;
3598
3348
  }
3599
- async create(body) {
3349
+ async upsertOrDelete(body) {
3600
3350
  const response = await this.api.post(`${this.route}`, body);
3601
3351
  return response.data;
3602
3352
  }
3603
- async update(selector, body) {
3604
- const response = await this.api.put(`${this.route}${selector.id}`, body);
3605
- return response.data;
3606
- }
3607
- async deleteOne(selector) {
3608
- const response = await this.api.delete(`${this.route}${selector.id}`);
3609
- return response.data;
3610
- }
3611
3353
  };
3612
3354
 
3613
3355
  // src/modules/stock/savedProviderProposal.ts
3614
3356
  var savedProviderProposal_exports = {};
3615
3357
  __export(savedProviderProposal_exports, {
3616
- default: () => Repository99
3358
+ default: () => Repository96
3617
3359
  });
3618
- var Repository99 = class {
3619
- constructor({ api, route, publicRoute }) {
3360
+ var Repository96 = class {
3361
+ constructor({ api, route }) {
3620
3362
  this.api = api;
3621
3363
  this.route = route;
3622
- this.publicRoute = publicRoute;
3623
3364
  }
3624
3365
  async findByProviderId(selector) {
3625
3366
  const response = await this.api.get(`${this.route}${selector.id}`);
3626
3367
  return response.data;
3627
3368
  }
3628
- async create(body) {
3369
+ async set(body) {
3629
3370
  const response = await this.api.post(`${this.route}`, body);
3630
3371
  return response.data;
3631
3372
  }
3632
- async update(selector, body) {
3633
- const response = await this.api.put(`${this.route}${selector.id}`, body);
3634
- return response.data;
3635
- }
3636
- async deleteOne(selector) {
3637
- const response = await this.api.delete(`${this.route}${selector.id}`);
3638
- return response.data;
3639
- }
3640
3373
  };
3641
3374
 
3642
3375
  // src/modules/stock/productGoogleSheets.ts
3643
3376
  var productGoogleSheets_exports = {};
3644
3377
  __export(productGoogleSheets_exports, {
3645
- default: () => Repository100
3378
+ default: () => Repository97
3646
3379
  });
3647
- var Repository100 = class {
3648
- constructor({ api, route, publicRoute }) {
3380
+ var Repository97 = class {
3381
+ constructor({ api, route }) {
3649
3382
  this.api = api;
3650
3383
  this.route = route;
3651
- this.publicRoute = publicRoute;
3652
3384
  }
3653
3385
  async basicSearch(params) {
3654
3386
  const response = await this.api.get(`${this.route}basic_search`, {
@@ -3740,13 +3472,13 @@ var Repository100 = class {
3740
3472
  printLabelToPdfUrl({ id }, token) {
3741
3473
  const qs = new URLSearchParams();
3742
3474
  qs.set("token", token);
3743
- return `${this.publicRoute}print_label_pdf/${id}?${qs.toString()}`;
3475
+ return `${this.route}print_label_pdf/${id}?${qs.toString()}`;
3744
3476
  }
3745
3477
  printLabelToPdfBulk(ids, token) {
3746
3478
  const qs = new URLSearchParams();
3747
3479
  qs.set("token", token);
3748
3480
  qs.set("ids", ids.join(","));
3749
- return `${this.publicRoute}print_label_pdf/bulk?${qs.toString()}`;
3481
+ return `${this.route}print_label_pdf/bulk?${qs.toString()}`;
3750
3482
  }
3751
3483
  async updateDbFromSheets() {
3752
3484
  await this.api.post(`${this.route}update_db_from_sheets`);
@@ -3762,13 +3494,12 @@ var Repository100 = class {
3762
3494
  // src/modules/stock/task.ts
3763
3495
  var task_exports = {};
3764
3496
  __export(task_exports, {
3765
- default: () => Repository101
3497
+ default: () => Repository98
3766
3498
  });
3767
- var Repository101 = class {
3768
- constructor({ api, route, publicRoute }) {
3499
+ var Repository98 = class {
3500
+ constructor({ api, route }) {
3769
3501
  this.api = api;
3770
3502
  this.route = route;
3771
- this.publicRoute = publicRoute;
3772
3503
  }
3773
3504
  async find(selector) {
3774
3505
  return this.api.get(`${this.route}${selector}`);
@@ -3801,13 +3532,12 @@ var Repository101 = class {
3801
3532
  // src/modules/stock/taskMessage.ts
3802
3533
  var taskMessage_exports = {};
3803
3534
  __export(taskMessage_exports, {
3804
- default: () => Repository102
3535
+ default: () => Repository99
3805
3536
  });
3806
- var Repository102 = class {
3807
- constructor({ api, route, publicRoute }) {
3537
+ var Repository99 = class {
3538
+ constructor({ api, route }) {
3808
3539
  this.api = api;
3809
3540
  this.route = route;
3810
- this.publicRoute = publicRoute;
3811
3541
  }
3812
3542
  async create(body) {
3813
3543
  const response = await this.api.post(`${this.route}`, body);
@@ -3824,13 +3554,12 @@ var Repository102 = class {
3824
3554
  // src/modules/stock/recurrentTasks.ts
3825
3555
  var recurrentTasks_exports = {};
3826
3556
  __export(recurrentTasks_exports, {
3827
- default: () => Repository103
3557
+ default: () => Repository100
3828
3558
  });
3829
- var Repository103 = class {
3830
- constructor({ api, route, publicRoute }) {
3559
+ var Repository100 = class {
3560
+ constructor({ api, route }) {
3831
3561
  this.api = api;
3832
3562
  this.route = route;
3833
- this.publicRoute = publicRoute;
3834
3563
  }
3835
3564
  async from_master() {
3836
3565
  return this.api.post(`${this.route}from_master`);
@@ -3843,13 +3572,12 @@ var Repository103 = class {
3843
3572
  // src/modules/stock/taskRead.ts
3844
3573
  var taskRead_exports = {};
3845
3574
  __export(taskRead_exports, {
3846
- default: () => Repository104
3575
+ default: () => Repository101
3847
3576
  });
3848
- var Repository104 = class {
3849
- constructor({ api, route, publicRoute }) {
3577
+ var Repository101 = class {
3578
+ constructor({ api, route }) {
3850
3579
  this.api = api;
3851
3580
  this.route = route;
3852
- this.publicRoute = publicRoute;
3853
3581
  }
3854
3582
  async create(body) {
3855
3583
  await this.api.post(`${this.route}`, body);
@@ -3862,13 +3590,12 @@ var Repository104 = class {
3862
3590
  // src/modules/user/theme.ts
3863
3591
  var theme_exports = {};
3864
3592
  __export(theme_exports, {
3865
- default: () => Repository105
3593
+ default: () => Repository102
3866
3594
  });
3867
- var Repository105 = class {
3868
- constructor({ api, route, publicRoute }) {
3595
+ var Repository102 = class {
3596
+ constructor({ api, route }) {
3869
3597
  this.api = api;
3870
3598
  this.route = route;
3871
- this.publicRoute = publicRoute;
3872
3599
  }
3873
3600
  async createOrUpdate(body) {
3874
3601
  await this.api.post(`${this.route}`, body);
@@ -3878,16 +3605,19 @@ var Repository105 = class {
3878
3605
  // src/modules/stock/dashboard.ts
3879
3606
  var dashboard_exports = {};
3880
3607
  __export(dashboard_exports, {
3881
- default: () => Repository106
3608
+ default: () => Repository103
3882
3609
  });
3883
- var Repository106 = class {
3884
- constructor({ api, route, publicRoute }) {
3610
+ var Repository103 = class {
3611
+ constructor({ api, route }) {
3885
3612
  this.api = api;
3886
3613
  this.route = route;
3887
- this.publicRoute = publicRoute;
3888
3614
  }
3889
- async findByDate(selector) {
3890
- const response = await this.api.get(`${this.route}${selector.date}`);
3615
+ async salesByDate(params) {
3616
+ const response = await this.api.get(`${this.route}sales`, { params });
3617
+ return response.data;
3618
+ }
3619
+ async projectInfo() {
3620
+ const response = await this.api.get(`${this.route}project_info`);
3891
3621
  return response.data;
3892
3622
  }
3893
3623
  };
@@ -3895,13 +3625,12 @@ var Repository106 = class {
3895
3625
  // src/modules/stock/chatRapidMessage.ts
3896
3626
  var chatRapidMessage_exports = {};
3897
3627
  __export(chatRapidMessage_exports, {
3898
- default: () => Repository107
3628
+ default: () => Repository104
3899
3629
  });
3900
- var Repository107 = class {
3901
- constructor({ api, route, publicRoute }) {
3630
+ var Repository104 = class {
3631
+ constructor({ api, route }) {
3902
3632
  this.api = api;
3903
3633
  this.route = route;
3904
- this.publicRoute = publicRoute;
3905
3634
  }
3906
3635
  async create(data) {
3907
3636
  const response = await this.api.post(`${this.route}`, data);
@@ -3924,16 +3653,15 @@ var Repository107 = class {
3924
3653
  }
3925
3654
  };
3926
3655
 
3927
- // src/modules/stock/sideMenu.ts
3656
+ // src/modules/ui/sideMenu.ts
3928
3657
  var sideMenu_exports = {};
3929
3658
  __export(sideMenu_exports, {
3930
- default: () => Repository108
3659
+ default: () => Repository105
3931
3660
  });
3932
- var Repository108 = class {
3933
- constructor({ api, route, publicRoute }) {
3661
+ var Repository105 = class {
3662
+ constructor({ api, route }) {
3934
3663
  this.api = api;
3935
3664
  this.route = route;
3936
- this.publicRoute = publicRoute;
3937
3665
  }
3938
3666
  async findSideMenuStoreOperators() {
3939
3667
  const response = await this.api.get(`${this.route}side_menu_store_operators`);
@@ -3960,13 +3688,12 @@ var Repository108 = class {
3960
3688
  // src/modules/view/errorLog.ts
3961
3689
  var errorLog_exports = {};
3962
3690
  __export(errorLog_exports, {
3963
- default: () => Repository109
3691
+ default: () => Repository106
3964
3692
  });
3965
- var Repository109 = class {
3966
- constructor({ api, route, publicRoute }) {
3693
+ var Repository106 = class {
3694
+ constructor({ api, route }) {
3967
3695
  this.api = api;
3968
3696
  this.route = route;
3969
- this.publicRoute = publicRoute;
3970
3697
  }
3971
3698
  async create(body) {
3972
3699
  await this.api.post(`${this.route}`, body);
@@ -3976,13 +3703,12 @@ var Repository109 = class {
3976
3703
  // src/modules/view/adminPanel.ts
3977
3704
  var adminPanel_exports = {};
3978
3705
  __export(adminPanel_exports, {
3979
- default: () => Repository110
3706
+ default: () => Repository107
3980
3707
  });
3981
- var Repository110 = class {
3982
- constructor({ api, route, publicRoute }) {
3708
+ var Repository107 = class {
3709
+ constructor({ api, route }) {
3983
3710
  this.api = api;
3984
3711
  this.route = route;
3985
- this.publicRoute = publicRoute;
3986
3712
  }
3987
3713
  async getData(params) {
3988
3714
  const response = await this.api.get(`${this.route}`, { params });
@@ -3993,13 +3719,12 @@ var Repository110 = class {
3993
3719
  // src/modules/supply/documentLineRm.ts
3994
3720
  var documentLineRm_exports = {};
3995
3721
  __export(documentLineRm_exports, {
3996
- default: () => Repository111
3722
+ default: () => Repository108
3997
3723
  });
3998
- var Repository111 = class {
3999
- constructor({ api, route, publicRoute }) {
3724
+ var Repository108 = class {
3725
+ constructor({ api, route }) {
4000
3726
  this.api = api;
4001
3727
  this.route = route;
4002
- this.publicRoute = publicRoute;
4003
3728
  }
4004
3729
  async findByOwnerId({
4005
3730
  owner_id
@@ -4015,13 +3740,12 @@ var Repository111 = class {
4015
3740
  // src/modules/supply/documentLineMt.ts
4016
3741
  var documentLineMt_exports = {};
4017
3742
  __export(documentLineMt_exports, {
4018
- default: () => Repository112
3743
+ default: () => Repository109
4019
3744
  });
4020
- var Repository112 = class {
4021
- constructor({ api, route, publicRoute }) {
3745
+ var Repository109 = class {
3746
+ constructor({ api, route }) {
4022
3747
  this.api = api;
4023
3748
  this.route = route;
4024
- this.publicRoute = publicRoute;
4025
3749
  }
4026
3750
  async findByOwnerId({
4027
3751
  owner_id
@@ -4037,45 +3761,45 @@ var Repository112 = class {
4037
3761
  // src/modules/user/chatSubscriber.ts
4038
3762
  var chatSubscriber_exports = {};
4039
3763
  __export(chatSubscriber_exports, {
4040
- default: () => Repository113
3764
+ default: () => Repository110
4041
3765
  });
4042
- var Repository113 = class {
4043
- constructor({ api, route, publicRoute }) {
3766
+ var Repository110 = class {
3767
+ constructor({ api, route }) {
4044
3768
  this.api = api;
4045
3769
  this.route = route;
4046
- this.publicRoute = publicRoute;
4047
3770
  }
4048
3771
  async createOrUpdate(data) {
4049
3772
  const response = await this.api.post(`${this.route}`, data);
4050
3773
  return response.data;
4051
3774
  }
4052
- async findByOwnerId(selector) {
4053
- const response = await this.api.get(`${this.route}by_owner_id/${selector.id}`);
3775
+ async findByOwner(params) {
3776
+ const response = await this.api.get(`${this.route}`, { params });
4054
3777
  return response.data;
4055
3778
  }
4056
- async findByDocumentHeaderId(selector) {
4057
- const response = await this.api.get(`${this.route}by_document_header_id/${selector.id}`);
3779
+ async clientWebAppFindByOwner(params) {
3780
+ const response = await this.api.get(`${this.route}client_web_app`, { params });
4058
3781
  return response.data;
4059
3782
  }
4060
- async findByPersonaId(selector) {
4061
- const response = await this.api.get(`${this.route}by_persona_id/${selector.id}`);
3783
+ async findById({
3784
+ id
3785
+ }) {
3786
+ const response = await this.api.get(`${this.route}${id}`);
4062
3787
  return response.data;
4063
3788
  }
4064
- async deleteOne(selector) {
4065
- await this.api.post(`${this.route}/id/${selector}`);
3789
+ async deleteOne({ id }) {
3790
+ await this.api.delete(`${this.route}/${id}`);
4066
3791
  }
4067
3792
  };
4068
3793
 
4069
3794
  // src/modules/stock/tag.ts
4070
3795
  var tag_exports = {};
4071
3796
  __export(tag_exports, {
4072
- default: () => Repository114
3797
+ default: () => Repository111
4073
3798
  });
4074
- var Repository114 = class {
4075
- constructor({ api, route, publicRoute }) {
3799
+ var Repository111 = class {
3800
+ constructor({ api, route }) {
4076
3801
  this.api = api;
4077
3802
  this.route = route;
4078
- this.publicRoute = publicRoute;
4079
3803
  }
4080
3804
  async create(body) {
4081
3805
  const response = await this.api.post(`${this.route}`, body);
@@ -4096,13 +3820,12 @@ var Repository114 = class {
4096
3820
  // src/modules/stock/gmails.ts
4097
3821
  var gmails_exports = {};
4098
3822
  __export(gmails_exports, {
4099
- default: () => Repository115
3823
+ default: () => Repository112
4100
3824
  });
4101
- var Repository115 = class {
4102
- constructor({ api, route, publicRoute }) {
3825
+ var Repository112 = class {
3826
+ constructor({ api, route }) {
4103
3827
  this.api = api;
4104
3828
  this.route = route;
4105
- this.publicRoute = publicRoute;
4106
3829
  }
4107
3830
  async auth() {
4108
3831
  const response = await this.api.get(`${this.route}auth`);
@@ -4112,17 +3835,266 @@ var Repository115 = class {
4112
3835
  const response = await this.api.get(`${this.route}emails`);
4113
3836
  return response.data;
4114
3837
  }
4115
- async executeGmailCommand(selector) {
4116
- const response = await this.api.post(
4117
- `${this.route}execute_gmail_command/${selector.id}`
4118
- );
3838
+ };
3839
+
3840
+ // src/modules/document/NPF.ts
3841
+ var NPF_exports = {};
3842
+ __export(NPF_exports, {
3843
+ default: () => Repository113
3844
+ });
3845
+ var Repository113 = class {
3846
+ constructor({ api, route }) {
3847
+ this.api = api;
3848
+ this.route = route;
3849
+ }
3850
+ async create(body) {
3851
+ const response = await this.api.post(`${this.route}providers`, body);
4119
3852
  return response.data;
4120
3853
  }
4121
- async editPreviewChatMessage(selector, data) {
4122
- const response = await this.api.post(
4123
- `${this.route}edit_preview_chat_message/${selector.id}`,
3854
+ };
3855
+
3856
+ // src/modules/document/NRCL.ts
3857
+ var NRCL_exports = {};
3858
+ __export(NRCL_exports, {
3859
+ default: () => Repository114
3860
+ });
3861
+ var Repository114 = class {
3862
+ constructor({ api, route }) {
3863
+ this.api = api;
3864
+ this.route = route;
3865
+ }
3866
+ async create(data) {
3867
+ await this.api.post(`${this.route}multiple_documents`, {
4124
3868
  data
4125
- );
3869
+ });
3870
+ }
3871
+ };
3872
+
3873
+ // src/modules/supply/currentAccount.ts
3874
+ var currentAccount_exports = {};
3875
+ __export(currentAccount_exports, {
3876
+ default: () => Repository115
3877
+ });
3878
+ var Repository115 = class {
3879
+ constructor({ api, route }) {
3880
+ this.api = api;
3881
+ this.route = route;
3882
+ }
3883
+ async findCurrentAccountByOwnerId(params) {
3884
+ const response = await this.api.get(`${this.route}current_account`, {
3885
+ params
3886
+ });
3887
+ return response.data;
3888
+ }
3889
+ async findBalanceByOwnerId(params) {
3890
+ const response = await this.api.get(`${this.route}balance`, {
3891
+ params
3892
+ });
3893
+ return response.data;
3894
+ }
3895
+ async exportCurrentAccount(params) {
3896
+ const response = await this.api.get(`${this.route}export_current_account`, {
3897
+ params
3898
+ });
3899
+ return response.data;
3900
+ }
3901
+ async findClientUnpaidCredit(params) {
3902
+ const response = await this.api.get(`${this.route}unpaid_credit`, {
3903
+ params
3904
+ });
3905
+ return response.data;
3906
+ }
3907
+ async findClientUnpaidDebit(params) {
3908
+ const response = await this.api.get(`${this.route}unpaid_debit`, {
3909
+ params
3910
+ });
3911
+ return response.data;
3912
+ }
3913
+ getExportCurrentAccountUrl({
3914
+ owner_id,
3915
+ start_date,
3916
+ end_date,
3917
+ output,
3918
+ token
3919
+ }) {
3920
+ const qs = new URLSearchParams();
3921
+ qs.set("owner_id", owner_id);
3922
+ qs.set("output", output);
3923
+ if (start_date) qs.set("start_date", start_date.toISOString());
3924
+ if (end_date) qs.set("end_date", end_date.toISOString());
3925
+ qs.set("token", token);
3926
+ return `${this.route}export_current_account?${qs.toString()}`;
3927
+ }
3928
+ };
3929
+
3930
+ // src/modules/supply/paymentBatch.ts
3931
+ var paymentBatch_exports = {};
3932
+ __export(paymentBatch_exports, {
3933
+ default: () => Repository116
3934
+ });
3935
+ var Repository116 = class {
3936
+ constructor({ api, route }) {
3937
+ this.api = api;
3938
+ this.route = route;
3939
+ }
3940
+ async findPending(params) {
3941
+ const response = await this.api.get(`${this.route}not_exported`, {
3942
+ params
3943
+ });
3944
+ return response.data;
3945
+ }
3946
+ async create(body) {
3947
+ await this.api.post(`${this.route}export_payments`, body);
3948
+ }
3949
+ async findCreated() {
3950
+ const response = await this.api.get(`${this.route}batches`);
3951
+ return response.data;
3952
+ }
3953
+ async updateDownloadNumber(params) {
3954
+ await this.api.put(`${this.route}downloaded_batch_number/${params}`);
3955
+ }
3956
+ async deleteOne(selector) {
3957
+ const response = await this.api.delete(`${this.route}delete_batch${selector.id}`);
3958
+ return response.data;
3959
+ }
3960
+ getBatchPdfUrl(opts) {
3961
+ const qs = new URLSearchParams();
3962
+ qs.set("token", opts.token);
3963
+ if (opts.ids?.length) {
3964
+ qs.set("ids", opts.ids.join(","));
3965
+ return `${this.route}create_batch_pdf?${qs.toString()}`;
3966
+ }
3967
+ if (opts.month && opts.year) {
3968
+ qs.set("month", String(opts.month));
3969
+ qs.set("year", String(opts.year));
3970
+ return `${this.route}create_batch_pdf?${qs.toString()}`;
3971
+ }
3972
+ throw new Error("Precisas de passar ids OU month/year");
3973
+ }
3974
+ };
3975
+
3976
+ // src/modules/ui/portal.ts
3977
+ var portal_exports = {};
3978
+ __export(portal_exports, {
3979
+ default: () => Repository117
3980
+ });
3981
+ var Repository117 = class {
3982
+ constructor({ api, route }) {
3983
+ this.api = api;
3984
+ this.route = route;
3985
+ }
3986
+ async publicFindByOwnerId(params) {
3987
+ const response = await this.api.get(`${this.route}public_by_owner`, {
3988
+ params
3989
+ });
3990
+ return response.data;
3991
+ }
3992
+ async publicFindBySubscriberId(params) {
3993
+ const response = await this.api.get(`${this.route}public_by_subscriber`, {
3994
+ params
3995
+ });
3996
+ return response.data;
3997
+ }
3998
+ async createPublicDocumentHeaderNote(data) {
3999
+ const response = await this.api.post(`${this.route}public_document_header_note`, data);
4000
+ return response.data;
4001
+ }
4002
+ async updatePublicDocumentHeaderNote({ id }, data) {
4003
+ const response = await this.api.put(`${this.route}public_document_header_note/${id}`, data);
4004
+ return response.data;
4005
+ }
4006
+ };
4007
+
4008
+ // src/modules/supply/googleSheetPool.ts
4009
+ var Repository118 = class {
4010
+ constructor({ api, route }) {
4011
+ this.api = api;
4012
+ this.route = route;
4013
+ }
4014
+ async clearAndFill() {
4015
+ const response = await this.api.post(`${this.route}clear_and_fill`);
4016
+ return response.data;
4017
+ }
4018
+ };
4019
+
4020
+ // src/modules/stock/accountCode.ts
4021
+ var accountCode_exports = {};
4022
+ __export(accountCode_exports, {
4023
+ default: () => Repository119
4024
+ });
4025
+ var Repository119 = class {
4026
+ constructor({ api, route }) {
4027
+ this.api = api;
4028
+ this.route = route;
4029
+ }
4030
+ async findByCode({
4031
+ code
4032
+ }) {
4033
+ const response = await this.api.get(`${this.route}${code}`);
4034
+ return response.data;
4035
+ }
4036
+ };
4037
+
4038
+ // src/modules/llm/llm.ts
4039
+ var llm_exports = {};
4040
+ __export(llm_exports, {
4041
+ default: () => Repository120
4042
+ });
4043
+ var Repository120 = class {
4044
+ constructor({ api, route }) {
4045
+ this.api = api;
4046
+ this.route = route;
4047
+ }
4048
+ prompt(data, { onChunk, onDone, onError }) {
4049
+ const ac = new AbortController();
4050
+ (async () => {
4051
+ try {
4052
+ const resp = await fetch(`${this.route}prompt`, {
4053
+ method: "POST",
4054
+ headers: {
4055
+ "Content-Type": "application/json",
4056
+ Authorization: this.api.defaults.headers.common.Authorization
4057
+ },
4058
+ body: JSON.stringify(data),
4059
+ signal: ac.signal
4060
+ });
4061
+ if (!resp.ok || !resp.body) {
4062
+ const text = await resp.text().catch(() => "");
4063
+ throw new Error(`HTTP ${resp.status}: ${text}`);
4064
+ }
4065
+ const reader = resp.body.getReader();
4066
+ const decoder = new TextDecoder();
4067
+ while (true) {
4068
+ const { value, done } = await reader.read();
4069
+ if (done) break;
4070
+ onChunk(decoder.decode(value, { stream: true }));
4071
+ }
4072
+ onDone?.();
4073
+ } catch (err) {
4074
+ if (err?.name === "AbortError") return;
4075
+ onError?.(err);
4076
+ }
4077
+ })();
4078
+ return { abort: () => ac.abort() };
4079
+ }
4080
+ };
4081
+
4082
+ // src/modules/integration/patchNotes.ts
4083
+ var patchNotes_exports = {};
4084
+ __export(patchNotes_exports, {
4085
+ default: () => Repository121
4086
+ });
4087
+ var Repository121 = class {
4088
+ constructor({ api, route }) {
4089
+ this.api = api;
4090
+ this.route = route;
4091
+ }
4092
+ async createOrUpdate(body) {
4093
+ const response = await this.api.post(`${this.route}`, body);
4094
+ return response.data;
4095
+ }
4096
+ async find() {
4097
+ const response = await this.api.get(`${this.route}`);
4126
4098
  return response.data;
4127
4099
  }
4128
4100
  };
@@ -4131,16 +4103,16 @@ var Repository115 = class {
4131
4103
  var API = class {
4132
4104
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
4133
4105
  this.processEnvironment = processEnvironment || "localhost";
4134
- const defaultHeaders = new AxiosHeaders();
4106
+ this.defaultHeaders = new AxiosHeaders();
4135
4107
  if (apikey) {
4136
- defaultHeaders.set("apikey", apikey);
4108
+ this.defaultHeaders.set("apikey", apikey);
4137
4109
  }
4138
4110
  if (tokenBearer) {
4139
- defaultHeaders.setAuthorization(tokenBearer);
4111
+ this.defaultHeaders.setAuthorization(tokenBearer);
4140
4112
  }
4141
4113
  this.client = axios.create({
4142
4114
  baseURL: gatewayUrl,
4143
- headers: defaultHeaders
4115
+ headers: this.defaultHeaders
4144
4116
  });
4145
4117
  const getServicePath = (service) => {
4146
4118
  const baseUrl = services[service];
@@ -4154,12 +4126,12 @@ var API = class {
4154
4126
  documents: getServicePath("documents"),
4155
4127
  view: getServicePath("view"),
4156
4128
  print: getServicePath("print"),
4157
- tickets: getServicePath("tickets")
4129
+ tickets: getServicePath("tickets"),
4130
+ llm: getServicePath("llm")
4158
4131
  };
4159
4132
  const getModuleParams = (service, module) => ({
4160
4133
  api: this.client,
4161
- route: `${this.services[service]}${module}/`,
4162
- publicRoute: `${this.services[service]}${module}/`
4134
+ route: `${this.services[service]}${module}/`
4163
4135
  });
4164
4136
  this.BankData = new Repository(getModuleParams("users", "bank_data"));
4165
4137
  this.Client = new Repository2(getModuleParams("users", "client"));
@@ -4194,132 +4166,138 @@ var API = class {
4194
4166
  this.Favorites = new Repository19(getModuleParams("users", "favorite"));
4195
4167
  this.File = new Repository20(getModuleParams("stock", "file"));
4196
4168
  this.GoogleSheets = new Repository21(getModuleParams("integration", "google"));
4197
- this.GroupPermissions = new Repository22(getModuleParams("users", "group_permission"));
4198
- this.Language = new Repository23(getModuleParams("users", "language"));
4199
- this.Location = new Repository24(getModuleParams("stock", "location"));
4200
- this.Logout = new Repository25(getModuleParams("users", "logout"));
4201
- this.Multimedia = new Repository26(getModuleParams("documents", "multimedia"));
4202
- this.Observation = new Repository27(getModuleParams("integration", "observation"));
4203
- this.ObservationType = new Repository28(
4169
+ this.Language = new Repository22(getModuleParams("users", "language"));
4170
+ this.Location = new Repository23(getModuleParams("stock", "location"));
4171
+ this.Logout = new Repository24(getModuleParams("users", "logout"));
4172
+ this.Multimedia = new Repository25(getModuleParams("documents", "multimedia"));
4173
+ this.Observation = new Repository26(getModuleParams("integration", "observation"));
4174
+ this.ObservationType = new Repository27(
4204
4175
  getModuleParams("integration", "observation_type")
4205
4176
  );
4206
- this.Password = new Repository29(getModuleParams("users", "password"));
4207
- this.Permissions = new Repository30(getModuleParams("users", "permission"));
4208
- this.ProductImage = new Repository31(getModuleParams("stock", "product_image"));
4209
- this.Promotion = new Repository32(getModuleParams("stock", "promotion"));
4210
- this.PromotionAssoc = new Repository33(getModuleParams("stock", "promotion_assoc"));
4211
- this.Providers = new Repository34(getModuleParams("users", "provider"));
4212
- this.ProviderType = new Repository35(getModuleParams("users", "provider_type"));
4213
- this.PurchaseConditions = new Repository36(
4177
+ this.Password = new Repository28(getModuleParams("users", "password"));
4178
+ this.ProductImage = new Repository29(getModuleParams("stock", "product_image"));
4179
+ this.Promotion = new Repository30(getModuleParams("stock", "promotion"));
4180
+ this.PromotionAssoc = new Repository31(getModuleParams("stock", "promotion_assoc"));
4181
+ this.Providers = new Repository32(getModuleParams("users", "provider"));
4182
+ this.ProviderType = new Repository33(getModuleParams("users", "provider_type"));
4183
+ this.PurchaseConditions = new Repository34(
4214
4184
  getModuleParams("users", "purchase_condition")
4215
4185
  );
4216
- this.ReasonForExemption = new Repository37(
4186
+ this.ReasonForExemption = new Repository35(
4217
4187
  getModuleParams("users", "reason_for_exemption")
4218
4188
  );
4219
- this.RefreshToken = new Repository38(getModuleParams("users", "refresh-token"));
4220
- this.SegmentsArea = new Repository39(getModuleParams("users", "segments_area"));
4221
- this.Sessions = new Repository40(getModuleParams("users", "sessions"));
4222
- this.Shippings = new Repository41(getModuleParams("users", "shipping"));
4223
- this.StoreOperator = new Repository42(getModuleParams("users", "store_operator"));
4224
- this.Swift = new Repository43(getModuleParams("users", "swift"));
4225
- this.TypeOfLocation = new Repository44(getModuleParams("stock", "type_of_location"));
4226
- this.UnitOfMeasure = new Repository45(getModuleParams("stock", "unit_of_measure"));
4227
- this.UserPermissions = new Repository46(getModuleParams("users", "user_permission"));
4228
- this.UserPositions = new Repository47(getModuleParams("users", "user_position"));
4229
- this.Users = new Repository48(getModuleParams("users", "users"));
4230
- this.VatTax = new Repository49(getModuleParams("stock", "vat_tax"));
4231
- this.VatTaxZone = new Repository50(getModuleParams("stock", "vat_tax_zone"));
4232
- this.Workflow = new Repository51(getModuleParams("stock", "workflow"));
4233
- this.DeliveryMethods = new Repository52(getModuleParams("users", "delivery_methods"));
4234
- this.MaturityDates = new Repository53(getModuleParams("users", "maturity_dates"));
4235
- this.PaymentMethods = new Repository54(getModuleParams("users", "payment_methods"));
4236
- this.Vehicles = new Repository55(getModuleParams("users", "vehicles"));
4237
- this.ExternalDocumentType = new Repository56(
4189
+ this.RefreshToken = new Repository36(getModuleParams("users", "refresh-token"));
4190
+ this.SegmentsArea = new Repository37(getModuleParams("users", "segments_area"));
4191
+ this.Sessions = new Repository38(getModuleParams("users", "sessions"));
4192
+ this.Shippings = new Repository39(getModuleParams("users", "shipping"));
4193
+ this.StoreOperator = new Repository40(getModuleParams("users", "store_operator"));
4194
+ this.Swift = new Repository41(getModuleParams("users", "swift"));
4195
+ this.TypeOfLocation = new Repository42(getModuleParams("stock", "type_of_location"));
4196
+ this.UnitOfMeasure = new Repository43(getModuleParams("stock", "unit_of_measure"));
4197
+ this.UserPositions = new Repository44(getModuleParams("users", "user_position"));
4198
+ this.Users = new Repository45(getModuleParams("users", "users"));
4199
+ this.VatTax = new Repository46(getModuleParams("stock", "vat_tax"));
4200
+ this.VatTaxZone = new Repository47(getModuleParams("stock", "vat_tax_zone"));
4201
+ this.Workflow = new Repository48(getModuleParams("stock", "workflow"));
4202
+ this.DeliveryMethods = new Repository49(getModuleParams("users", "delivery_methods"));
4203
+ this.MaturityDates = new Repository50(getModuleParams("users", "maturity_dates"));
4204
+ this.PaymentMethods = new Repository51(getModuleParams("users", "payment_methods"));
4205
+ this.Vehicles = new Repository52(getModuleParams("users", "vehicles"));
4206
+ this.ExternalDocumentType = new Repository53(
4238
4207
  getModuleParams("stock", "external_document_type")
4239
4208
  );
4240
- this.DocumentSet = new Repository57(getModuleParams("stock", "document_set"));
4241
- this.Payment = new Repository58(getModuleParams("stock", "payment"));
4242
- this.ExternalDocumentHeader = new Repository59(
4209
+ this.DocumentSet = new Repository54(getModuleParams("stock", "document_set"));
4210
+ this.Payment = new Repository55(getModuleParams("stock", "payment"));
4211
+ this.ExternalDocumentHeader = new Repository56(
4243
4212
  getModuleParams("stock", "external_document_header")
4244
4213
  );
4245
- this.VatValidation = new Repository60(getModuleParams("stock", "vat_validation"));
4246
- this.StockMovement = new Repository61(getModuleParams("stock", "stock_movement"));
4247
- this.ZipCode = new Repository62(getModuleParams("users", "zip_code"));
4248
- this.Tenant = new Repository63(getModuleParams("users", "tenant"));
4249
- this.PreSale = new Repository64(getModuleParams("stock", "pre_sale"));
4250
- this.PreSaleProduct = new Repository65(getModuleParams("stock", "pre_sale_product"));
4251
- this.OrderManagement = new Repository66(getModuleParams("stock", "order_management"));
4252
- this.Npc = new Repository67(getModuleParams("print", "npc"));
4253
- this.Printer = new Repository68(getModuleParams("print", "printer"));
4254
- this.SchedulePrintJob = new Repository69(
4214
+ this.VatValidation = new Repository57(getModuleParams("stock", "vat_validation"));
4215
+ this.StockMovement = new Repository58(getModuleParams("stock", "stock_movement"));
4216
+ this.ZipCode = new Repository59(getModuleParams("users", "zip_code"));
4217
+ this.Tenant = new Repository60(getModuleParams("users", "tenant"));
4218
+ this.PreSale = new Repository61(getModuleParams("stock", "pre_sale"));
4219
+ this.PreSaleProduct = new Repository62(getModuleParams("stock", "pre_sale_product"));
4220
+ this.OrderManagement = new Repository63(getModuleParams("stock", "order_management"));
4221
+ this.Npc = new Repository64(getModuleParams("print", "npc"));
4222
+ this.Printer = new Repository65(getModuleParams("print", "printer"));
4223
+ this.SchedulePrintJob = new Repository66(
4255
4224
  getModuleParams("print", "schedule_print_job")
4256
4225
  );
4257
- this.QueryList = new Repository70(getModuleParams("stock", "query"));
4258
- this.QueryParameter = new Repository71(getModuleParams("stock", "query_parameter"));
4259
- this.ReturnReason = new Repository72(getModuleParams("stock", "return_reason"));
4260
- this.PropostaSheets = new Repository73(getModuleParams("stock", "proposta_sheets"));
4261
- this.Schedule = new Repository74(getModuleParams("stock", "schedule"));
4262
- this.GoogleFilePermission = new Repository75(
4226
+ this.QueryList = new Repository67(getModuleParams("stock", "query"));
4227
+ this.QueryParameter = new Repository68(getModuleParams("stock", "query_parameter"));
4228
+ this.ReturnReason = new Repository69(getModuleParams("stock", "return_reason"));
4229
+ this.PropostaSheets = new Repository70(getModuleParams("stock", "proposta_sheets"));
4230
+ this.Schedule = new Repository71(getModuleParams("stock", "schedule"));
4231
+ this.GoogleFilePermission = new Repository72(
4263
4232
  getModuleParams("integration", "google_file_permission")
4264
4233
  );
4265
- this.Settings = new Repository76(getModuleParams("integration", "settings"));
4266
- this.Tickets = new Repository77(getModuleParams("tickets", "tickets"));
4267
- this.Channel = new Repository78(getModuleParams("tickets", "channel"));
4268
- this.TicketsLanguage = new Repository79(getModuleParams("tickets", "tickets_language"));
4269
- this.Clt = new Repository80(getModuleParams("tickets", "clt"));
4270
- this.StartDocumentHeaderLastUpdate = new Repository81(
4234
+ this.Settings = new Repository73(getModuleParams("integration", "settings"));
4235
+ this.Tickets = new Repository74(getModuleParams("tickets", "tickets"));
4236
+ this.Channel = new Repository75(getModuleParams("tickets", "channel"));
4237
+ this.TicketsLanguage = new Repository76(getModuleParams("tickets", "tickets_language"));
4238
+ this.Clt = new Repository77(getModuleParams("tickets", "clt"));
4239
+ this.StartDocumentHeaderLastUpdate = new Repository78(
4271
4240
  getModuleParams("stock", "start_document_header_last_update")
4272
4241
  );
4273
- this.Persona = new Repository82(getModuleParams("users", "persona"));
4274
- this.ProjectInfo = new Repository83(getModuleParams("integration", "project_info"));
4275
- this.Order = new Repository84(getModuleParams("stock", "order"));
4276
- this.Purchase = new Repository85(getModuleParams("stock", "purchase"));
4277
- this.MaterialEntrance = new Repository86(
4242
+ this.Persona = new Repository79(getModuleParams("users", "persona"));
4243
+ this.ProjectInfo = new Repository80(getModuleParams("integration", "project_info"));
4244
+ this.Order = new Repository81(getModuleParams("stock", "order"));
4245
+ this.Purchase = new Repository82(getModuleParams("stock", "purchase"));
4246
+ this.MaterialEntrance = new Repository83(
4278
4247
  getModuleParams("stock", "material_entrance")
4279
4248
  );
4280
- this.Transformado = new Repository87(getModuleParams("stock", "transformado"));
4281
- this.UpfrontReturn = new Repository88(getModuleParams("stock", "upfront_return"));
4282
- this.SavedEmPicking = new Repository89(getModuleParams("stock", "saved_em_picking"));
4283
- this.EmailTemplate = new Repository90(getModuleParams("integration", "email_template"));
4284
- this.EmailTemplateAttachment = new Repository91(
4249
+ this.Transformado = new Repository84(getModuleParams("stock", "transformado"));
4250
+ this.UpfrontReturn = new Repository85(getModuleParams("stock", "upfront_return"));
4251
+ this.SavedEmPicking = new Repository86(getModuleParams("stock", "saved_em_picking"));
4252
+ this.EmailTemplate = new Repository87(getModuleParams("integration", "email_template"));
4253
+ this.EmailTemplateAttachment = new Repository88(
4285
4254
  getModuleParams("integration", "email_template_attachment")
4286
4255
  );
4287
- this.Prison = new Repository92(getModuleParams("stock", "prison"));
4288
- this.Quebra = new Repository93(getModuleParams("stock", "quebra"));
4289
- this.Inventario = new Repository94(getModuleParams("stock", "inventario"));
4290
- this.ReturnToProvider = new Repository95(
4256
+ this.Prison = new Repository89(getModuleParams("stock", "prison"));
4257
+ this.Quebra = new Repository90(getModuleParams("stock", "quebra"));
4258
+ this.Inventario = new Repository91(getModuleParams("stock", "inventario"));
4259
+ this.ReturnToProvider = new Repository92(
4291
4260
  getModuleParams("stock", "return_to_provider")
4292
4261
  );
4293
- this.EmailVerification = new Repository96(
4262
+ this.EmailVerification = new Repository93(
4294
4263
  getModuleParams("integration", "email_verification")
4295
4264
  );
4296
- this.EmailLog = new Repository97(getModuleParams("integration", "email_log"));
4297
- this.DocumentLineNote = new Repository98(
4265
+ this.EmailLog = new Repository94(getModuleParams("integration", "email_log"));
4266
+ this.DocumentLineNote = new Repository95(
4298
4267
  getModuleParams("stock", "document_line_note")
4299
4268
  );
4300
- this.SavedProviderProposal = new Repository99(
4269
+ this.SavedProviderProposal = new Repository96(
4301
4270
  getModuleParams("stock", "saved_provider_proposal")
4302
4271
  );
4303
- this.ProductGoogleSheets = new Repository100(
4272
+ this.ProductGoogleSheets = new Repository97(
4304
4273
  getModuleParams("stock", "product_google")
4305
4274
  );
4306
- this.Task = new Repository101(getModuleParams("stock", "task"));
4307
- this.TaskMessage = new Repository102(getModuleParams("stock", "task_message"));
4308
- this.RecurrentTasks = new Repository103(getModuleParams("stock", "recurrent_tasks"));
4309
- this.TaskRead = new Repository104(getModuleParams("stock", "task_read"));
4310
- this.Theme = new Repository105(getModuleParams("users", "theme"));
4311
- this.Dashboard = new Repository106(getModuleParams("stock", "dashboard"));
4312
- this.ChatRapidMessage = new Repository107(
4275
+ this.Task = new Repository98(getModuleParams("stock", "task"));
4276
+ this.TaskMessage = new Repository99(getModuleParams("stock", "task_message"));
4277
+ this.RecurrentTasks = new Repository100(getModuleParams("stock", "recurrent_tasks"));
4278
+ this.TaskRead = new Repository101(getModuleParams("stock", "task_read"));
4279
+ this.Theme = new Repository102(getModuleParams("users", "theme"));
4280
+ this.Dashboard = new Repository103(getModuleParams("stock", "dashboard"));
4281
+ this.ChatRapidMessage = new Repository104(
4313
4282
  getModuleParams("stock", "chat_rapid_message")
4314
4283
  );
4315
- this.SideMenu = new Repository108(getModuleParams("stock", "side_menu"));
4316
- this.ErrorLog = new Repository109(getModuleParams("view", "error_log"));
4317
- this.AdminPanel = new Repository110(getModuleParams("view", "admin_panel"));
4318
- this.DocumentLineRm = new Repository111(getModuleParams("stock", "document_line_rm"));
4319
- this.DocumentLineMt = new Repository112(getModuleParams("stock", "document_line_mt"));
4320
- this.ChatSubscriber = new Repository113(getModuleParams("users", "chat_subscriber"));
4321
- this.Tag = new Repository114(getModuleParams("stock", "tag"));
4322
- this.Gmails = new Repository115(getModuleParams("stock", "gmail"));
4284
+ this.SideMenu = new Repository105(getModuleParams("stock", "side_menu"));
4285
+ this.ErrorLog = new Repository106(getModuleParams("view", "error_log"));
4286
+ this.AdminPanel = new Repository107(getModuleParams("view", "admin_panel"));
4287
+ this.DocumentLineRm = new Repository108(getModuleParams("stock", "document_line_rm"));
4288
+ this.DocumentLineMt = new Repository109(getModuleParams("stock", "document_line_mt"));
4289
+ this.ChatSubscriber = new Repository110(getModuleParams("users", "chat_subscriber"));
4290
+ this.Tag = new Repository111(getModuleParams("stock", "tag"));
4291
+ this.Gmails = new Repository112(getModuleParams("stock", "gmail"));
4292
+ this.NPF = new Repository113(getModuleParams("stock", "npf"));
4293
+ this.NRCL = new Repository114(getModuleParams("stock", "nrcl"));
4294
+ this.PaymentBatch = new Repository116(getModuleParams("stock", "payment_batch"));
4295
+ this.CurrentAccount = new Repository115(getModuleParams("stock", "current_account"));
4296
+ this.Portal = new Repository117(getModuleParams("stock", "portal"));
4297
+ this.GoogleSheetPool = new Repository118(getModuleParams("stock", "google_sheet_pool"));
4298
+ this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
4299
+ this.LLM = new Repository120(getModuleParams("llm", "llm"));
4300
+ this.PatchNotes = new Repository121(getModuleParams("integration", "patch_notes"));
4323
4301
  }
4324
4302
  };
4325
4303