@nomalism-com/api 0.40.92 → 0.40.93

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 +483 -590
  2. package/dist/index.js +160 -258
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -61,6 +61,7 @@ __export(main_exports, {
61
61
  Order: () => order_exports,
62
62
  OrderManagement: () => orderManagement_exports,
63
63
  Password: () => password_exports,
64
+ PatchNotesClass: () => patchNotes_exports,
64
65
  Payment: () => payment_exports,
65
66
  PaymentBatchClass: () => paymentBatch_exports,
66
67
  PaymentMethods: () => paymentMethods_exports,
@@ -129,10 +130,9 @@ __export(bankData_exports, {
129
130
  default: () => Repository
130
131
  });
131
132
  var Repository = class {
132
- constructor({ api, route, publicRoute }) {
133
+ constructor({ api, route }) {
133
134
  this.api = api;
134
135
  this.route = route;
135
- this.publicRoute = publicRoute;
136
136
  }
137
137
  async find(params) {
138
138
  const response = await this.api.get(`${this.route}`, { params });
@@ -172,10 +172,9 @@ __export(clients_exports, {
172
172
  default: () => Repository2
173
173
  });
174
174
  var Repository2 = class {
175
- constructor({ api, route, publicRoute }) {
175
+ constructor({ api, route }) {
176
176
  this.api = api;
177
177
  this.route = route;
178
- this.publicRoute = publicRoute;
179
178
  }
180
179
  async findByQuery(data) {
181
180
  const response = await this.api.post(`${this.route}query`, data);
@@ -229,10 +228,9 @@ __export(clientType_exports, {
229
228
  default: () => Repository3
230
229
  });
231
230
  var Repository3 = class {
232
- constructor({ api, route, publicRoute }) {
231
+ constructor({ api, route }) {
233
232
  this.api = api;
234
233
  this.route = route;
235
- this.publicRoute = publicRoute;
236
234
  }
237
235
  async find(params) {
238
236
  const response = await this.api.get(`${this.route}`, { params });
@@ -268,10 +266,9 @@ var Repository3 = class {
268
266
 
269
267
  // src/modules/stock/chat.ts
270
268
  var Repository4 = class {
271
- constructor({ api, route, publicRoute }) {
269
+ constructor({ api, route }) {
272
270
  this.api = api;
273
271
  this.route = route;
274
- this.publicRoute = publicRoute;
275
272
  }
276
273
  async findActiveByOwnerId(params) {
277
274
  const response = await this.api.get(`${this.route}active`, {
@@ -312,7 +309,7 @@ var Repository4 = class {
312
309
  }
313
310
  async publicMarkAllClientReadUnread(params) {
314
311
  await this.api.put(
315
- `${this.publicRoute}mark_all_client_read_unread/${params.owner_id}/${params.client_read}`
312
+ `${this.route}mark_all_client_read_unread/${params.owner_id}/${params.client_read}`
316
313
  );
317
314
  }
318
315
  };
@@ -323,10 +320,9 @@ __export(commissioner_exports, {
323
320
  default: () => Repository5
324
321
  });
325
322
  var Repository5 = class {
326
- constructor({ api, route, publicRoute }) {
323
+ constructor({ api, route }) {
327
324
  this.api = api;
328
325
  this.route = route;
329
- this.publicRoute = publicRoute;
330
326
  }
331
327
  async find(params) {
332
328
  const response = await this.api.get(`${this.route}`, { params });
@@ -372,10 +368,9 @@ __export(country_exports, {
372
368
  default: () => Repository6
373
369
  });
374
370
  var Repository6 = class {
375
- constructor({ api, route, publicRoute }) {
371
+ constructor({ api, route }) {
376
372
  this.api = api;
377
373
  this.route = route;
378
- this.publicRoute = publicRoute;
379
374
  }
380
375
  async find(params) {
381
376
  const response = await this.api.get(`${this.route}`, { params });
@@ -421,10 +416,9 @@ __export(documentHeader_exports, {
421
416
  default: () => Repository7
422
417
  });
423
418
  var Repository7 = class {
424
- constructor({ api, route, publicRoute }) {
419
+ constructor({ api, route }) {
425
420
  this.api = api;
426
421
  this.route = route;
427
- this.publicRoute = publicRoute;
428
422
  }
429
423
  async findOne(selector) {
430
424
  const response = await this.api.get(`${this.route}${selector.id}`);
@@ -514,10 +508,9 @@ __export(documentHeaderHistory_exports, {
514
508
  default: () => Repository8
515
509
  });
516
510
  var Repository8 = class {
517
- constructor({ api, route, publicRoute }) {
511
+ constructor({ api, route }) {
518
512
  this.api = api;
519
513
  this.route = route;
520
- this.publicRoute = publicRoute;
521
514
  }
522
515
  async findByOwnerId(selector) {
523
516
  const response = await this.api.get(`${this.route}by_owner/${selector.owner_id}`);
@@ -527,10 +520,9 @@ var Repository8 = class {
527
520
 
528
521
  // src/modules/document/billOfLading.ts
529
522
  var Repository9 = class {
530
- constructor({ api, route, publicRoute }) {
523
+ constructor({ api, route }) {
531
524
  this.api = api;
532
525
  this.route = route;
533
- this.publicRoute = publicRoute;
534
526
  }
535
527
  async create(body) {
536
528
  const response = await this.api.post(`${this.route}bill_of_lading`, body);
@@ -540,10 +532,9 @@ var Repository9 = class {
540
532
 
541
533
  // src/modules/document/productionOrder.ts
542
534
  var Repository10 = class {
543
- constructor({ api, route, publicRoute }) {
535
+ constructor({ api, route }) {
544
536
  this.api = api;
545
537
  this.route = route;
546
- this.publicRoute = publicRoute;
547
538
  }
548
539
  async createProductionOrder(body) {
549
540
  await this.api.post(`${this.route}production_order`, body);
@@ -552,10 +543,9 @@ var Repository10 = class {
552
543
 
553
544
  // src/modules/document/proforma.ts
554
545
  var Repository11 = class {
555
- constructor({ api, route, publicRoute }) {
546
+ constructor({ api, route }) {
556
547
  this.api = api;
557
548
  this.route = route;
558
- this.publicRoute = publicRoute;
559
549
  }
560
550
  async create(data) {
561
551
  const result = await this.api.post(`${this.route}pro_forma`, data);
@@ -569,10 +559,9 @@ var Repository11 = class {
569
559
 
570
560
  // src/modules/document/propostaFornecedor.ts
571
561
  var Repository12 = class {
572
- constructor({ api, route, publicRoute }) {
562
+ constructor({ api, route }) {
573
563
  this.api = api;
574
564
  this.route = route;
575
- this.publicRoute = publicRoute;
576
565
  }
577
566
  async createProviderProposal(data) {
578
567
  const result = await this.api.post(`${this.route}provider_proposal`, data);
@@ -582,10 +571,9 @@ var Repository12 = class {
582
571
 
583
572
  // src/modules/document/providerCreditNoteFromReturn.ts
584
573
  var Repository13 = class {
585
- constructor({ api, route, publicRoute }) {
574
+ constructor({ api, route }) {
586
575
  this.api = api;
587
576
  this.route = route;
588
- this.publicRoute = publicRoute;
589
577
  }
590
578
  async findProviderReturn(params) {
591
579
  const response = await this.api.get(`${this.route}provider_return`, {
@@ -600,10 +588,9 @@ var Repository13 = class {
600
588
 
601
589
  // src/modules/document/providerFinancialCreditNote.ts
602
590
  var Repository14 = class {
603
- constructor({ api, route, publicRoute }) {
591
+ constructor({ api, route }) {
604
592
  this.api = api;
605
593
  this.route = route;
606
- this.publicRoute = publicRoute;
607
594
  }
608
595
  async findProviderInvoice(params) {
609
596
  const response = await this.api.get(`${this.route}provider_invoice`, {
@@ -618,10 +605,9 @@ var Repository14 = class {
618
605
 
619
606
  // src/modules/document/providerServiceInvoice.ts
620
607
  var Repository15 = class {
621
- constructor({ api, route, publicRoute }) {
608
+ constructor({ api, route }) {
622
609
  this.api = api;
623
610
  this.route = route;
624
- this.publicRoute = publicRoute;
625
611
  }
626
612
  async createProviderServiceInvoice(data) {
627
613
  await this.api.post(`${this.route}provider_service_invoice`, data);
@@ -634,10 +620,9 @@ __export(documentLine_exports, {
634
620
  default: () => Repository16
635
621
  });
636
622
  var Repository16 = class {
637
- constructor({ api, route, publicRoute }) {
623
+ constructor({ api, route }) {
638
624
  this.api = api;
639
625
  this.route = route;
640
- this.publicRoute = publicRoute;
641
626
  }
642
627
  async create(body) {
643
628
  const response = await this.api.post(`${this.route}`, body);
@@ -681,10 +666,9 @@ __export(documentLineAssoc_exports, {
681
666
  default: () => Repository17
682
667
  });
683
668
  var Repository17 = class {
684
- constructor({ api, route, publicRoute }) {
669
+ constructor({ api, route }) {
685
670
  this.api = api;
686
671
  this.route = route;
687
- this.publicRoute = publicRoute;
688
672
  }
689
673
  async findByOwnerId(params) {
690
674
  const response = await this.api.get(`${this.route}by_owner`, { params });
@@ -718,10 +702,9 @@ __export(documentType_exports, {
718
702
  default: () => Repository18
719
703
  });
720
704
  var Repository18 = class {
721
- constructor({ api, route, publicRoute }) {
705
+ constructor({ api, route }) {
722
706
  this.api = api;
723
707
  this.route = route;
724
- this.publicRoute = publicRoute;
725
708
  }
726
709
  async find(params) {
727
710
  const response = await this.api.get(`${this.route}`, { params });
@@ -755,10 +738,9 @@ __export(favorites_exports, {
755
738
  default: () => Repository19
756
739
  });
757
740
  var Repository19 = class {
758
- constructor({ api, route, publicRoute }) {
741
+ constructor({ api, route }) {
759
742
  this.api = api;
760
743
  this.route = route;
761
- this.publicRoute = publicRoute;
762
744
  }
763
745
  async findByUrl(params) {
764
746
  const response = await this.api.get(`${this.route}`, { params });
@@ -784,10 +766,9 @@ __export(file_exports, {
784
766
  default: () => Repository20
785
767
  });
786
768
  var Repository20 = class {
787
- constructor({ api, route, publicRoute }) {
769
+ constructor({ api, route }) {
788
770
  this.api = api;
789
771
  this.route = route;
790
- this.publicRoute = publicRoute;
791
772
  }
792
773
  async findByOwnerId(params) {
793
774
  const response = await this.api.get(`${this.route}by_owner`, {
@@ -796,11 +777,11 @@ var Repository20 = class {
796
777
  return response.data;
797
778
  }
798
779
  async create(body) {
799
- const response = await this.api.post(`${this.publicRoute}`, body);
780
+ const response = await this.api.post(`${this.route}`, body);
800
781
  return response.data;
801
782
  }
802
783
  async update({ id }, body) {
803
- await this.api.put(`${this.publicRoute}${id}`, body);
784
+ await this.api.put(`${this.route}${id}`, body);
804
785
  }
805
786
  async deleteOne(selector) {
806
787
  const response = await this.api.delete(`${this.route}${selector.id}`);
@@ -814,10 +795,9 @@ __export(googleSheets_exports, {
814
795
  default: () => Repository21
815
796
  });
816
797
  var Repository21 = class {
817
- constructor({ api, route, publicRoute }) {
798
+ constructor({ api, route }) {
818
799
  this.api = api;
819
800
  this.route = route;
820
- this.publicRoute = publicRoute;
821
801
  }
822
802
  async clone(selector, params) {
823
803
  const response = await this.api.get(`${this.route}clone/${selector.id}`, {
@@ -844,10 +824,9 @@ __export(language_exports, {
844
824
  default: () => Repository22
845
825
  });
846
826
  var Repository22 = class {
847
- constructor({ api, route, publicRoute }) {
827
+ constructor({ api, route }) {
848
828
  this.api = api;
849
829
  this.route = route;
850
- this.publicRoute = publicRoute;
851
830
  }
852
831
  async find(params) {
853
832
  const response = await this.api.get(`${this.route}`, { params });
@@ -887,10 +866,9 @@ __export(location_exports, {
887
866
  default: () => Repository23
888
867
  });
889
868
  var Repository23 = class {
890
- constructor({ api, route, publicRoute }) {
869
+ constructor({ api, route }) {
891
870
  this.api = api;
892
871
  this.route = route;
893
- this.publicRoute = publicRoute;
894
872
  }
895
873
  async find(params) {
896
874
  const response = await this.api.get(`${this.route}`, { params });
@@ -936,10 +914,9 @@ __export(logout_exports, {
936
914
  default: () => Repository24
937
915
  });
938
916
  var Repository24 = class {
939
- constructor({ api, route, publicRoute }) {
917
+ constructor({ api, route }) {
940
918
  this.api = api;
941
919
  this.route = route;
942
- this.publicRoute = publicRoute;
943
920
  }
944
921
  async logout() {
945
922
  await this.api.post(`${this.route}`);
@@ -952,18 +929,17 @@ __export(multimedia_exports, {
952
929
  default: () => Repository25
953
930
  });
954
931
  var Repository25 = class {
955
- constructor({ api, route, publicRoute }) {
932
+ constructor({ api, route }) {
956
933
  this.api = api;
957
934
  this.route = route;
958
- this.publicRoute = publicRoute;
959
935
  }
960
936
  getUrl(multimediaId, download = false) {
961
937
  const qs = new URLSearchParams();
962
938
  if (download) qs.set("download", download.toString());
963
- return `${this.publicRoute}${multimediaId}?${qs.toString()}`;
939
+ return `${this.route}${multimediaId}?${qs.toString()}`;
964
940
  }
965
941
  async create(multipartFormData, headers) {
966
- const response = await this.api.post(`${this.publicRoute}upload`, multipartFormData, {
942
+ const response = await this.api.post(`${this.route}upload`, multipartFormData, {
967
943
  headers: {
968
944
  ...headers || {},
969
945
  "content-type": "multipart/form-data"
@@ -981,10 +957,9 @@ __export(observation_exports, {
981
957
  default: () => Repository26
982
958
  });
983
959
  var Repository26 = class {
984
- constructor({ api, route, publicRoute }) {
960
+ constructor({ api, route }) {
985
961
  this.api = api;
986
962
  this.route = route;
987
- this.publicRoute = publicRoute;
988
963
  }
989
964
  async findByOwnerId(params) {
990
965
  const response = await this.api.get(`${this.route}`, {
@@ -1016,10 +991,9 @@ __export(observationType_exports, {
1016
991
  default: () => Repository27
1017
992
  });
1018
993
  var Repository27 = class {
1019
- constructor({ api, route, publicRoute }) {
994
+ constructor({ api, route }) {
1020
995
  this.api = api;
1021
996
  this.route = route;
1022
- this.publicRoute = publicRoute;
1023
997
  }
1024
998
  async find() {
1025
999
  const response = await this.api.get(`${this.route}`);
@@ -1051,16 +1025,15 @@ __export(password_exports, {
1051
1025
  default: () => Repository28
1052
1026
  });
1053
1027
  var Repository28 = class {
1054
- constructor({ api, route, publicRoute }) {
1028
+ constructor({ api, route }) {
1055
1029
  this.api = api;
1056
1030
  this.route = route;
1057
- this.publicRoute = publicRoute;
1058
1031
  }
1059
1032
  async forgotPassword(body) {
1060
- await this.api.post(`${this.publicRoute}forgot`, body);
1033
+ await this.api.post(`${this.route}forgot`, body);
1061
1034
  }
1062
1035
  async resetPassword(body) {
1063
- await this.api.post(`${this.publicRoute}reset`, body);
1036
+ await this.api.post(`${this.route}reset`, body);
1064
1037
  }
1065
1038
  };
1066
1039
 
@@ -1070,10 +1043,9 @@ __export(productImage_exports, {
1070
1043
  default: () => Repository29
1071
1044
  });
1072
1045
  var Repository29 = class {
1073
- constructor({ api, route, publicRoute }) {
1046
+ constructor({ api, route }) {
1074
1047
  this.api = api;
1075
1048
  this.route = route;
1076
- this.publicRoute = publicRoute;
1077
1049
  }
1078
1050
  async find(params) {
1079
1051
  const response = await this.api.get(`${this.route}`, { params });
@@ -1113,10 +1085,9 @@ __export(promotion_exports, {
1113
1085
  default: () => Repository30
1114
1086
  });
1115
1087
  var Repository30 = class {
1116
- constructor({ api, route, publicRoute }) {
1088
+ constructor({ api, route }) {
1117
1089
  this.api = api;
1118
1090
  this.route = route;
1119
- this.publicRoute = publicRoute;
1120
1091
  }
1121
1092
  async find(params) {
1122
1093
  const response = await this.api.get(`${this.route}`, { params });
@@ -1174,10 +1145,9 @@ __export(promotionAssoc_exports, {
1174
1145
  default: () => Repository31
1175
1146
  });
1176
1147
  var Repository31 = class {
1177
- constructor({ api, route, publicRoute }) {
1148
+ constructor({ api, route }) {
1178
1149
  this.api = api;
1179
1150
  this.route = route;
1180
- this.publicRoute = publicRoute;
1181
1151
  }
1182
1152
  async find(params) {
1183
1153
  const response = await this.api.get(`${this.route}`, { params });
@@ -1217,10 +1187,9 @@ __export(provider_exports, {
1217
1187
  default: () => Repository32
1218
1188
  });
1219
1189
  var Repository32 = class {
1220
- constructor({ api, route, publicRoute }) {
1190
+ constructor({ api, route }) {
1221
1191
  this.api = api;
1222
1192
  this.route = route;
1223
- this.publicRoute = publicRoute;
1224
1193
  }
1225
1194
  async findByQuery(data) {
1226
1195
  const response = await this.api.post(`${this.route}query`, data);
@@ -1280,10 +1249,9 @@ __export(providerType_exports, {
1280
1249
  default: () => Repository33
1281
1250
  });
1282
1251
  var Repository33 = class {
1283
- constructor({ api, route, publicRoute }) {
1252
+ constructor({ api, route }) {
1284
1253
  this.api = api;
1285
1254
  this.route = route;
1286
- this.publicRoute = publicRoute;
1287
1255
  }
1288
1256
  async find(params) {
1289
1257
  const response = await this.api.get(`${this.route}`, { params });
@@ -1323,10 +1291,9 @@ __export(purchaseCondition_exports, {
1323
1291
  default: () => Repository34
1324
1292
  });
1325
1293
  var Repository34 = class {
1326
- constructor({ api, route, publicRoute }) {
1294
+ constructor({ api, route }) {
1327
1295
  this.api = api;
1328
1296
  this.route = route;
1329
- this.publicRoute = publicRoute;
1330
1297
  }
1331
1298
  async find(params) {
1332
1299
  const response = await this.api.get(`${this.route}`, { params });
@@ -1366,10 +1333,9 @@ __export(reasonForExemption_exports, {
1366
1333
  default: () => Repository35
1367
1334
  });
1368
1335
  var Repository35 = class {
1369
- constructor({ api, route, publicRoute }) {
1336
+ constructor({ api, route }) {
1370
1337
  this.api = api;
1371
1338
  this.route = route;
1372
- this.publicRoute = publicRoute;
1373
1339
  }
1374
1340
  async find(params) {
1375
1341
  const response = await this.api.get(`${this.route}`, { params });
@@ -1409,13 +1375,12 @@ __export(refreshToken_exports, {
1409
1375
  default: () => Repository36
1410
1376
  });
1411
1377
  var Repository36 = class {
1412
- constructor({ api, route, publicRoute }) {
1378
+ constructor({ api, route }) {
1413
1379
  this.api = api;
1414
1380
  this.route = route;
1415
- this.publicRoute = publicRoute;
1416
1381
  }
1417
1382
  async create(body) {
1418
- const response = await this.api.post(`${this.publicRoute}`, body);
1383
+ const response = await this.api.post(`${this.route}`, body);
1419
1384
  return response.data;
1420
1385
  }
1421
1386
  };
@@ -1426,10 +1391,9 @@ __export(segmentsArea_exports, {
1426
1391
  default: () => Repository37
1427
1392
  });
1428
1393
  var Repository37 = class {
1429
- constructor({ api, route, publicRoute }) {
1394
+ constructor({ api, route }) {
1430
1395
  this.api = api;
1431
1396
  this.route = route;
1432
- this.publicRoute = publicRoute;
1433
1397
  }
1434
1398
  async find(params) {
1435
1399
  const response = await this.api.get(`${this.route}`, { params });
@@ -1469,13 +1433,12 @@ __export(sessions_exports, {
1469
1433
  default: () => Repository38
1470
1434
  });
1471
1435
  var Repository38 = class {
1472
- constructor({ api, route, publicRoute }) {
1436
+ constructor({ api, route }) {
1473
1437
  this.api = api;
1474
1438
  this.route = route;
1475
- this.publicRoute = publicRoute;
1476
1439
  }
1477
1440
  async create(body) {
1478
- const response = await this.api.post(`${this.publicRoute}`, body);
1441
+ const response = await this.api.post(`${this.route}`, body);
1479
1442
  return response.data;
1480
1443
  }
1481
1444
  };
@@ -1486,10 +1449,9 @@ __export(shippings_exports, {
1486
1449
  default: () => Repository39
1487
1450
  });
1488
1451
  var Repository39 = class {
1489
- constructor({ api, route, publicRoute }) {
1452
+ constructor({ api, route }) {
1490
1453
  this.api = api;
1491
1454
  this.route = route;
1492
- this.publicRoute = publicRoute;
1493
1455
  }
1494
1456
  async find(params) {
1495
1457
  const response = await this.api.get(`${this.route}`, { params });
@@ -1529,10 +1491,9 @@ __export(storeOperator_exports, {
1529
1491
  default: () => Repository40
1530
1492
  });
1531
1493
  var Repository40 = class {
1532
- constructor({ api, route, publicRoute }) {
1494
+ constructor({ api, route }) {
1533
1495
  this.api = api;
1534
1496
  this.route = route;
1535
- this.publicRoute = publicRoute;
1536
1497
  }
1537
1498
  async find() {
1538
1499
  const response = await this.api.get(`${this.route}`);
@@ -1572,10 +1533,9 @@ __export(swift_exports, {
1572
1533
  default: () => Repository41
1573
1534
  });
1574
1535
  var Repository41 = class {
1575
- constructor({ api, route, publicRoute }) {
1536
+ constructor({ api, route }) {
1576
1537
  this.api = api;
1577
1538
  this.route = route;
1578
- this.publicRoute = publicRoute;
1579
1539
  }
1580
1540
  async find(params) {
1581
1541
  const response = await this.api.get(`${this.route}`, { params });
@@ -1615,10 +1575,9 @@ __export(typeOfLocation_exports, {
1615
1575
  default: () => Repository42
1616
1576
  });
1617
1577
  var Repository42 = class {
1618
- constructor({ api, route, publicRoute }) {
1578
+ constructor({ api, route }) {
1619
1579
  this.api = api;
1620
1580
  this.route = route;
1621
- this.publicRoute = publicRoute;
1622
1581
  }
1623
1582
  async find(params) {
1624
1583
  const response = await this.api.get(`${this.route}`, { params });
@@ -1664,10 +1623,9 @@ __export(unitOfMeasure_exports, {
1664
1623
  default: () => Repository43
1665
1624
  });
1666
1625
  var Repository43 = class {
1667
- constructor({ api, route, publicRoute }) {
1626
+ constructor({ api, route }) {
1668
1627
  this.api = api;
1669
1628
  this.route = route;
1670
- this.publicRoute = publicRoute;
1671
1629
  }
1672
1630
  async find(params) {
1673
1631
  const response = await this.api.get(`${this.route}`, { params });
@@ -1713,10 +1671,9 @@ __export(userPositions_exports, {
1713
1671
  default: () => Repository44
1714
1672
  });
1715
1673
  var Repository44 = class {
1716
- constructor({ api, route, publicRoute }) {
1674
+ constructor({ api, route }) {
1717
1675
  this.api = api;
1718
1676
  this.route = route;
1719
- this.publicRoute = publicRoute;
1720
1677
  }
1721
1678
  async find(params) {
1722
1679
  const response = await this.api.get(`${this.route}`, { params });
@@ -1756,10 +1713,9 @@ __export(user_exports, {
1756
1713
  default: () => Repository45
1757
1714
  });
1758
1715
  var Repository45 = class {
1759
- constructor({ api, route, publicRoute }) {
1716
+ constructor({ api, route }) {
1760
1717
  this.api = api;
1761
1718
  this.route = route;
1762
- this.publicRoute = publicRoute;
1763
1719
  }
1764
1720
  async find(params) {
1765
1721
  const response = await this.api.get(`${this.route}`, { params });
@@ -1807,10 +1763,9 @@ __export(vatTax_exports, {
1807
1763
  default: () => Repository46
1808
1764
  });
1809
1765
  var Repository46 = class {
1810
- constructor({ api, route, publicRoute }) {
1766
+ constructor({ api, route }) {
1811
1767
  this.api = api;
1812
1768
  this.route = route;
1813
- this.publicRoute = publicRoute;
1814
1769
  }
1815
1770
  async find(params) {
1816
1771
  const response = await this.api.get(`${this.route}`, { params });
@@ -1856,10 +1811,9 @@ __export(vatTaxZone_exports, {
1856
1811
  default: () => Repository47
1857
1812
  });
1858
1813
  var Repository47 = class {
1859
- constructor({ api, route, publicRoute }) {
1814
+ constructor({ api, route }) {
1860
1815
  this.api = api;
1861
1816
  this.route = route;
1862
- this.publicRoute = publicRoute;
1863
1817
  }
1864
1818
  async find(params) {
1865
1819
  const response = await this.api.get(`${this.route}`, { params });
@@ -1905,10 +1859,9 @@ __export(workflow_exports, {
1905
1859
  default: () => Repository48
1906
1860
  });
1907
1861
  var Repository48 = class {
1908
- constructor({ api, route, publicRoute }) {
1862
+ constructor({ api, route }) {
1909
1863
  this.api = api;
1910
1864
  this.route = route;
1911
- this.publicRoute = publicRoute;
1912
1865
  }
1913
1866
  async find(params) {
1914
1867
  const response = await this.api.get(`${this.route}`, { params });
@@ -1938,10 +1891,9 @@ __export(deliveryMethods_exports, {
1938
1891
  default: () => Repository49
1939
1892
  });
1940
1893
  var Repository49 = class {
1941
- constructor({ api, route, publicRoute }) {
1894
+ constructor({ api, route }) {
1942
1895
  this.api = api;
1943
1896
  this.route = route;
1944
- this.publicRoute = publicRoute;
1945
1897
  }
1946
1898
  async find() {
1947
1899
  const response = await this.api.get(`${this.route}`);
@@ -1977,10 +1929,9 @@ __export(maturityDates_exports, {
1977
1929
  default: () => Repository50
1978
1930
  });
1979
1931
  var Repository50 = class {
1980
- constructor({ api, route, publicRoute }) {
1932
+ constructor({ api, route }) {
1981
1933
  this.api = api;
1982
1934
  this.route = route;
1983
- this.publicRoute = publicRoute;
1984
1935
  }
1985
1936
  async find() {
1986
1937
  const response = await this.api.get(`${this.route}`);
@@ -2016,10 +1967,9 @@ __export(paymentMethods_exports, {
2016
1967
  default: () => Repository51
2017
1968
  });
2018
1969
  var Repository51 = class {
2019
- constructor({ api, route, publicRoute }) {
1970
+ constructor({ api, route }) {
2020
1971
  this.api = api;
2021
1972
  this.route = route;
2022
- this.publicRoute = publicRoute;
2023
1973
  }
2024
1974
  async find() {
2025
1975
  const response = await this.api.get(`${this.route}`);
@@ -2055,10 +2005,9 @@ __export(vehicles_exports, {
2055
2005
  default: () => Repository52
2056
2006
  });
2057
2007
  var Repository52 = class {
2058
- constructor({ api, route, publicRoute }) {
2008
+ constructor({ api, route }) {
2059
2009
  this.api = api;
2060
2010
  this.route = route;
2061
- this.publicRoute = publicRoute;
2062
2011
  }
2063
2012
  async find() {
2064
2013
  const response = await this.api.get(`${this.route}`);
@@ -2084,10 +2033,9 @@ __export(externalDocumentType_exports, {
2084
2033
  default: () => Repository53
2085
2034
  });
2086
2035
  var Repository53 = class {
2087
- constructor({ api, route, publicRoute }) {
2036
+ constructor({ api, route }) {
2088
2037
  this.api = api;
2089
2038
  this.route = route;
2090
- this.publicRoute = publicRoute;
2091
2039
  }
2092
2040
  async find() {
2093
2041
  const response = await this.api.get(`${this.route}`);
@@ -2105,10 +2053,9 @@ __export(documentSet_exports, {
2105
2053
  default: () => Repository54
2106
2054
  });
2107
2055
  var Repository54 = class {
2108
- constructor({ api, route, publicRoute }) {
2056
+ constructor({ api, route }) {
2109
2057
  this.api = api;
2110
2058
  this.route = route;
2111
- this.publicRoute = publicRoute;
2112
2059
  }
2113
2060
  async find() {
2114
2061
  const response = await this.api.get(`${this.route}`);
@@ -2142,10 +2089,9 @@ __export(payment_exports, {
2142
2089
  default: () => Repository55
2143
2090
  });
2144
2091
  var Repository55 = class {
2145
- constructor({ api, route, publicRoute }) {
2092
+ constructor({ api, route }) {
2146
2093
  this.api = api;
2147
2094
  this.route = route;
2148
- this.publicRoute = publicRoute;
2149
2095
  }
2150
2096
  async findById(selector) {
2151
2097
  const response = await this.api.get(`${this.route}${selector.id}`);
@@ -2189,10 +2135,9 @@ __export(externalDocumentHeader_exports, {
2189
2135
  default: () => Repository56
2190
2136
  });
2191
2137
  var Repository56 = class {
2192
- constructor({ api, route, publicRoute }) {
2138
+ constructor({ api, route }) {
2193
2139
  this.api = api;
2194
2140
  this.route = route;
2195
- this.publicRoute = publicRoute;
2196
2141
  }
2197
2142
  async create(body) {
2198
2143
  const response = await this.api.post(`${this.route}`, body);
@@ -2233,10 +2178,9 @@ __export(vatValidation_exports, {
2233
2178
  default: () => Repository57
2234
2179
  });
2235
2180
  var Repository57 = class {
2236
- constructor({ api, route, publicRoute }) {
2181
+ constructor({ api, route }) {
2237
2182
  this.api = api;
2238
2183
  this.route = route;
2239
- this.publicRoute = publicRoute;
2240
2184
  }
2241
2185
  async findByLatest(nif) {
2242
2186
  const response = await this.api.get(`${this.route}`, {
@@ -2254,10 +2198,9 @@ __export(stockMovement_exports, {
2254
2198
  default: () => Repository58
2255
2199
  });
2256
2200
  var Repository58 = class {
2257
- constructor({ api, route, publicRoute }) {
2201
+ constructor({ api, route }) {
2258
2202
  this.api = api;
2259
2203
  this.route = route;
2260
- this.publicRoute = publicRoute;
2261
2204
  }
2262
2205
  async findByProvider({
2263
2206
  id
@@ -2279,7 +2222,7 @@ var Repository58 = class {
2279
2222
  qs.set("version", version);
2280
2223
  qs.set("format", format);
2281
2224
  qs.set("token", token);
2282
- return `${this.publicRoute}csv?${qs.toString()}`;
2225
+ return `${this.route}csv?${qs.toString()}`;
2283
2226
  }
2284
2227
  async findStockMovementPaginated(params) {
2285
2228
  const response = await this.api.get(`${this.route}stock_movement_paginated`, { params });
@@ -2293,10 +2236,9 @@ __export(zipCode_exports, {
2293
2236
  default: () => Repository59
2294
2237
  });
2295
2238
  var Repository59 = class {
2296
- constructor({ api, route, publicRoute }) {
2239
+ constructor({ api, route }) {
2297
2240
  this.api = api;
2298
2241
  this.route = route;
2299
- this.publicRoute = publicRoute;
2300
2242
  }
2301
2243
  async create(body) {
2302
2244
  await this.api.post(`${this.route}`, body);
@@ -2313,10 +2255,9 @@ __export(tenant_exports, {
2313
2255
  default: () => Repository60
2314
2256
  });
2315
2257
  var Repository60 = class {
2316
- constructor({ api, route, publicRoute }) {
2258
+ constructor({ api, route }) {
2317
2259
  this.api = api;
2318
2260
  this.route = route;
2319
- this.publicRoute = publicRoute;
2320
2261
  }
2321
2262
  async create(body) {
2322
2263
  const response = await this.api.post(`${this.route}`, body);
@@ -2342,10 +2283,9 @@ __export(preSale_exports, {
2342
2283
  default: () => Repository61
2343
2284
  });
2344
2285
  var Repository61 = class {
2345
- constructor({ api, route, publicRoute }) {
2286
+ constructor({ api, route }) {
2346
2287
  this.api = api;
2347
2288
  this.route = route;
2348
- this.publicRoute = publicRoute;
2349
2289
  }
2350
2290
  async find(selector) {
2351
2291
  const response = await this.api.get(`${this.route}by_user/${selector.created_by}`);
@@ -2387,10 +2327,9 @@ __export(preSaleProduct_exports, {
2387
2327
  default: () => Repository62
2388
2328
  });
2389
2329
  var Repository62 = class {
2390
- constructor({ api, route, publicRoute }) {
2330
+ constructor({ api, route }) {
2391
2331
  this.api = api;
2392
2332
  this.route = route;
2393
- this.publicRoute = publicRoute;
2394
2333
  }
2395
2334
  async find() {
2396
2335
  const response = await this.api.get(`${this.route}`);
@@ -2408,10 +2347,9 @@ __export(orderManagement_exports, {
2408
2347
  default: () => Repository63
2409
2348
  });
2410
2349
  var Repository63 = class {
2411
- constructor({ api, route, publicRoute }) {
2350
+ constructor({ api, route }) {
2412
2351
  this.api = api;
2413
2352
  this.route = route;
2414
- this.publicRoute = publicRoute;
2415
2353
  }
2416
2354
  async findProviderProducts(params) {
2417
2355
  const response = await this.api.get(`${this.route}provider_products`, {
@@ -2431,10 +2369,9 @@ __export(npc_exports, {
2431
2369
  default: () => Repository64
2432
2370
  });
2433
2371
  var Repository64 = class {
2434
- constructor({ api, route, publicRoute }) {
2372
+ constructor({ api, route }) {
2435
2373
  this.api = api;
2436
2374
  this.route = route;
2437
- this.publicRoute = publicRoute;
2438
2375
  }
2439
2376
  async find() {
2440
2377
  const response = await this.api.get(`${this.route}`);
@@ -2458,10 +2395,9 @@ __export(printer_exports, {
2458
2395
  default: () => Repository65
2459
2396
  });
2460
2397
  var Repository65 = class {
2461
- constructor({ api, route, publicRoute }) {
2398
+ constructor({ api, route }) {
2462
2399
  this.api = api;
2463
2400
  this.route = route;
2464
- this.publicRoute = publicRoute;
2465
2401
  }
2466
2402
  async find() {
2467
2403
  const response = await this.api.get(`${this.route}`);
@@ -2490,10 +2426,9 @@ __export(schedulePrintJob_exports, {
2490
2426
  default: () => Repository66
2491
2427
  });
2492
2428
  var Repository66 = class {
2493
- constructor({ api, route, publicRoute }) {
2429
+ constructor({ api, route }) {
2494
2430
  this.api = api;
2495
2431
  this.route = route;
2496
- this.publicRoute = publicRoute;
2497
2432
  }
2498
2433
  async create(body) {
2499
2434
  await this.api.post(`${this.route}`, body);
@@ -2520,10 +2455,9 @@ __export(queryList_exports, {
2520
2455
  default: () => Repository67
2521
2456
  });
2522
2457
  var Repository67 = class {
2523
- constructor({ api, route, publicRoute }) {
2458
+ constructor({ api, route }) {
2524
2459
  this.api = api;
2525
2460
  this.route = route;
2526
- this.publicRoute = publicRoute;
2527
2461
  }
2528
2462
  async find() {
2529
2463
  const response = await this.api.get(`${this.route}`);
@@ -2571,10 +2505,9 @@ __export(queryParameter_exports, {
2571
2505
  default: () => Repository68
2572
2506
  });
2573
2507
  var Repository68 = class {
2574
- constructor({ api, route, publicRoute }) {
2508
+ constructor({ api, route }) {
2575
2509
  this.api = api;
2576
2510
  this.route = route;
2577
- this.publicRoute = publicRoute;
2578
2511
  }
2579
2512
  async find() {
2580
2513
  const response = await this.api.get(`${this.route}`);
@@ -2608,10 +2541,9 @@ __export(returnReason_exports, {
2608
2541
  default: () => Repository69
2609
2542
  });
2610
2543
  var Repository69 = class {
2611
- constructor({ api, route, publicRoute }) {
2544
+ constructor({ api, route }) {
2612
2545
  this.api = api;
2613
2546
  this.route = route;
2614
- this.publicRoute = publicRoute;
2615
2547
  }
2616
2548
  async create(body) {
2617
2549
  const response = await this.api.post(`${this.route}`, body);
@@ -2637,10 +2569,9 @@ __export(propostaSheets_exports, {
2637
2569
  default: () => Repository70
2638
2570
  });
2639
2571
  var Repository70 = class {
2640
- constructor({ api, route, publicRoute }) {
2572
+ constructor({ api, route }) {
2641
2573
  this.api = api;
2642
2574
  this.route = route;
2643
- this.publicRoute = publicRoute;
2644
2575
  }
2645
2576
  async isProcessing(params) {
2646
2577
  const response = await this.api.get(`${this.route}is_processing`, {
@@ -2695,10 +2626,9 @@ __export(schedule_exports, {
2695
2626
  default: () => Repository71
2696
2627
  });
2697
2628
  var Repository71 = class {
2698
- constructor({ api, route, publicRoute }) {
2629
+ constructor({ api, route }) {
2699
2630
  this.api = api;
2700
2631
  this.route = route;
2701
- this.publicRoute = publicRoute;
2702
2632
  }
2703
2633
  async runImmediately(selector) {
2704
2634
  await this.api.post(`${this.route}${selector.scheduleType}`);
@@ -2711,10 +2641,9 @@ __export(googleFilePermission_exports, {
2711
2641
  default: () => Repository72
2712
2642
  });
2713
2643
  var Repository72 = class {
2714
- constructor({ api, route, publicRoute }) {
2644
+ constructor({ api, route }) {
2715
2645
  this.api = api;
2716
2646
  this.route = route;
2717
- this.publicRoute = publicRoute;
2718
2647
  }
2719
2648
  async create(body) {
2720
2649
  const response = await this.api.post(`${this.route}`, body);
@@ -2740,17 +2669,16 @@ __export(settings_exports, {
2740
2669
  default: () => Repository73
2741
2670
  });
2742
2671
  var Repository73 = class {
2743
- constructor({ api, route, publicRoute }) {
2672
+ constructor({ api, route }) {
2744
2673
  this.api = api;
2745
2674
  this.route = route;
2746
- this.publicRoute = publicRoute;
2747
2675
  }
2748
2676
  async create(body) {
2749
2677
  const response = await this.api.post(`${this.route}`, body);
2750
2678
  return response.data;
2751
2679
  }
2752
2680
  async findByKey(params) {
2753
- const response = await this.api.get(`${this.publicRoute}by_key`, {
2681
+ const response = await this.api.get(`${this.route}by_key`, {
2754
2682
  params
2755
2683
  });
2756
2684
  return response.data;
@@ -2775,10 +2703,9 @@ __export(tickets_exports, {
2775
2703
  default: () => Repository74
2776
2704
  });
2777
2705
  var Repository74 = class {
2778
- constructor({ api, route, publicRoute }) {
2706
+ constructor({ api, route }) {
2779
2707
  this.api = api;
2780
2708
  this.route = route;
2781
- this.publicRoute = publicRoute;
2782
2709
  }
2783
2710
  async create(body) {
2784
2711
  const response = await this.api.post(`${this.route}`, body);
@@ -2804,10 +2731,9 @@ __export(channel_exports, {
2804
2731
  default: () => Repository75
2805
2732
  });
2806
2733
  var Repository75 = class {
2807
- constructor({ api, route, publicRoute }) {
2734
+ constructor({ api, route }) {
2808
2735
  this.api = api;
2809
2736
  this.route = route;
2810
- this.publicRoute = publicRoute;
2811
2737
  }
2812
2738
  async create(body) {
2813
2739
  const response = await this.api.post(`${this.route}`, body);
@@ -2841,10 +2767,9 @@ __export(language_exports2, {
2841
2767
  default: () => Repository76
2842
2768
  });
2843
2769
  var Repository76 = class {
2844
- constructor({ api, route, publicRoute }) {
2770
+ constructor({ api, route }) {
2845
2771
  this.api = api;
2846
2772
  this.route = route;
2847
- this.publicRoute = publicRoute;
2848
2773
  }
2849
2774
  async create(body) {
2850
2775
  const response = await this.api.post(`${this.route}`, body);
@@ -2878,10 +2803,9 @@ __export(clt_exports, {
2878
2803
  default: () => Repository77
2879
2804
  });
2880
2805
  var Repository77 = class {
2881
- constructor({ api, route, publicRoute }) {
2806
+ constructor({ api, route }) {
2882
2807
  this.api = api;
2883
2808
  this.route = route;
2884
- this.publicRoute = publicRoute;
2885
2809
  }
2886
2810
  async create(body) {
2887
2811
  const response = await this.api.post(`${this.route}`, body);
@@ -2915,10 +2839,9 @@ __export(startDocumentHeaderLastUpdate_exports, {
2915
2839
  default: () => Repository78
2916
2840
  });
2917
2841
  var Repository78 = class {
2918
- constructor({ api, route, publicRoute }) {
2842
+ constructor({ api, route }) {
2919
2843
  this.api = api;
2920
2844
  this.route = route;
2921
- this.publicRoute = publicRoute;
2922
2845
  }
2923
2846
  async findById(selector) {
2924
2847
  const response = await this.api.get(`${this.route}${selector.id}`);
@@ -2932,10 +2855,9 @@ __export(persona_exports, {
2932
2855
  default: () => Repository79
2933
2856
  });
2934
2857
  var Repository79 = class {
2935
- constructor({ api, route, publicRoute }) {
2858
+ constructor({ api, route }) {
2936
2859
  this.api = api;
2937
2860
  this.route = route;
2938
- this.publicRoute = publicRoute;
2939
2861
  }
2940
2862
  async findByOwnerId(params) {
2941
2863
  const response = await this.api.get(`${this.route}by_owner`, {
@@ -2997,10 +2919,9 @@ __export(projectInfo_exports, {
2997
2919
  default: () => Repository80
2998
2920
  });
2999
2921
  var Repository80 = class {
3000
- constructor({ api, route, publicRoute }) {
2922
+ constructor({ api, route }) {
3001
2923
  this.api = api;
3002
2924
  this.route = route;
3003
- this.publicRoute = publicRoute;
3004
2925
  }
3005
2926
  async sendEmail(body) {
3006
2927
  await this.api.post(`${this.route}sendEmail`, body);
@@ -3013,10 +2934,9 @@ __export(order_exports, {
3013
2934
  default: () => Repository81
3014
2935
  });
3015
2936
  var Repository81 = class {
3016
- constructor({ api, route, publicRoute }) {
2937
+ constructor({ api, route }) {
3017
2938
  this.api = api;
3018
2939
  this.route = route;
3019
- this.publicRoute = publicRoute;
3020
2940
  }
3021
2941
  async unsetCativado(params) {
3022
2942
  const response = await this.api.post(`${this.route}unset_cativado`, {
@@ -3052,10 +2972,9 @@ __export(purchase_exports, {
3052
2972
  default: () => Repository82
3053
2973
  });
3054
2974
  var Repository82 = class {
3055
- constructor({ api, route, publicRoute }) {
2975
+ constructor({ api, route }) {
3056
2976
  this.api = api;
3057
2977
  this.route = route;
3058
- this.publicRoute = publicRoute;
3059
2978
  }
3060
2979
  async purchaseFromProvider(data) {
3061
2980
  await this.api.post(`${this.route}purchase_from_provider`, data);
@@ -3086,10 +3005,9 @@ __export(materialEntrance_exports, {
3086
3005
  default: () => Repository83
3087
3006
  });
3088
3007
  var Repository83 = class {
3089
- constructor({ api, route, publicRoute }) {
3008
+ constructor({ api, route }) {
3090
3009
  this.api = api;
3091
3010
  this.route = route;
3092
- this.publicRoute = publicRoute;
3093
3011
  }
3094
3012
  async findMaterialEntranceProviders() {
3095
3013
  const response = await this.api.get(`${this.route}material_entrance_providers`);
@@ -3128,7 +3046,7 @@ var Repository83 = class {
3128
3046
  qs.set("prison", prison.toString());
3129
3047
  qs.set("availableStock", availableStock.toString());
3130
3048
  qs.set("token", token);
3131
- return `${this.publicRoute}print_label_pdf/${product_id}?${qs.toString()}`;
3049
+ return `${this.route}print_label_pdf/${product_id}?${qs.toString()}`;
3132
3050
  }
3133
3051
  printBulkLabelToPdfUrl({
3134
3052
  groupLabel,
@@ -3139,7 +3057,7 @@ var Repository83 = class {
3139
3057
  qs.set("groupLabel", groupLabel.toString());
3140
3058
  qs.set("saved_em_picking_ids", saved_em_picking_ids);
3141
3059
  qs.set("token", token);
3142
- return `${this.publicRoute}print_bulk_label_pdf?${qs.toString()}`;
3060
+ return `${this.route}print_bulk_label_pdf?${qs.toString()}`;
3143
3061
  }
3144
3062
  };
3145
3063
 
@@ -3149,10 +3067,9 @@ __export(transformado_exports, {
3149
3067
  default: () => Repository84
3150
3068
  });
3151
3069
  var Repository84 = class {
3152
- constructor({ api, route, publicRoute }) {
3070
+ constructor({ api, route }) {
3153
3071
  this.api = api;
3154
3072
  this.route = route;
3155
- this.publicRoute = publicRoute;
3156
3073
  }
3157
3074
  async transformar(body) {
3158
3075
  const response = await this.api.post(`${this.route}transformar`, body);
@@ -3170,10 +3087,9 @@ __export(upfrontReturn_exports, {
3170
3087
  default: () => Repository85
3171
3088
  });
3172
3089
  var Repository85 = class {
3173
- constructor({ api, route, publicRoute }) {
3090
+ constructor({ api, route }) {
3174
3091
  this.api = api;
3175
3092
  this.route = route;
3176
- this.publicRoute = publicRoute;
3177
3093
  }
3178
3094
  async create(selector, data) {
3179
3095
  const response = await this.api.post(`${this.route}${selector.id}`, data);
@@ -3187,10 +3103,9 @@ __export(savedEmPicking_exports, {
3187
3103
  default: () => Repository86
3188
3104
  });
3189
3105
  var Repository86 = class {
3190
- constructor({ api, route, publicRoute }) {
3106
+ constructor({ api, route }) {
3191
3107
  this.api = api;
3192
3108
  this.route = route;
3193
- this.publicRoute = publicRoute;
3194
3109
  }
3195
3110
  async create(body) {
3196
3111
  const response = await this.api.post(`${this.route}`, body);
@@ -3214,10 +3129,9 @@ __export(emailTemplate_exports, {
3214
3129
  default: () => Repository87
3215
3130
  });
3216
3131
  var Repository87 = class {
3217
- constructor({ api, route, publicRoute }) {
3132
+ constructor({ api, route }) {
3218
3133
  this.api = api;
3219
3134
  this.route = route;
3220
- this.publicRoute = publicRoute;
3221
3135
  }
3222
3136
  async find() {
3223
3137
  const response = await this.api.get(`${this.route}`);
@@ -3246,10 +3160,9 @@ __export(emailTemplateAttachment_exports, {
3246
3160
  default: () => Repository88
3247
3161
  });
3248
3162
  var Repository88 = class {
3249
- constructor({ api, route, publicRoute }) {
3163
+ constructor({ api, route }) {
3250
3164
  this.api = api;
3251
3165
  this.route = route;
3252
- this.publicRoute = publicRoute;
3253
3166
  }
3254
3167
  async create(data) {
3255
3168
  const response = await this.api.post(`${this.route}`, data);
@@ -3266,10 +3179,9 @@ __export(prison_exports, {
3266
3179
  default: () => Repository89
3267
3180
  });
3268
3181
  var Repository89 = class {
3269
- constructor({ api, route, publicRoute }) {
3182
+ constructor({ api, route }) {
3270
3183
  this.api = api;
3271
3184
  this.route = route;
3272
- this.publicRoute = publicRoute;
3273
3185
  }
3274
3186
  async putLineInPrison(data) {
3275
3187
  const response = await this.api.post(`${this.route}put_in_prison`, data);
@@ -3303,10 +3215,9 @@ __export(quebra_exports, {
3303
3215
  default: () => Repository90
3304
3216
  });
3305
3217
  var Repository90 = class {
3306
- constructor({ api, route, publicRoute }) {
3218
+ constructor({ api, route }) {
3307
3219
  this.api = api;
3308
3220
  this.route = route;
3309
- this.publicRoute = publicRoute;
3310
3221
  }
3311
3222
  async findInventoryLosses() {
3312
3223
  const response = await this.api.get(`${this.route}`);
@@ -3335,10 +3246,9 @@ __export(inventario_exports, {
3335
3246
  default: () => Repository91
3336
3247
  });
3337
3248
  var Repository91 = class {
3338
- constructor({ api, route, publicRoute }) {
3249
+ constructor({ api, route }) {
3339
3250
  this.api = api;
3340
3251
  this.route = route;
3341
- this.publicRoute = publicRoute;
3342
3252
  }
3343
3253
  async createInventory(data) {
3344
3254
  await this.api.post(`${this.route}`, data);
@@ -3354,10 +3264,9 @@ __export(returnToProvider_exports, {
3354
3264
  default: () => Repository92
3355
3265
  });
3356
3266
  var Repository92 = class {
3357
- constructor({ api, route, publicRoute }) {
3267
+ constructor({ api, route }) {
3358
3268
  this.api = api;
3359
3269
  this.route = route;
3360
- this.publicRoute = publicRoute;
3361
3270
  }
3362
3271
  async findLinesToReturn(params) {
3363
3272
  const response = await this.api.get(`${this.route}lines_to_return`, {
@@ -3380,10 +3289,9 @@ __export(emailVerification_exports, {
3380
3289
  default: () => Repository93
3381
3290
  });
3382
3291
  var Repository93 = class {
3383
- constructor({ api, route, publicRoute }) {
3292
+ constructor({ api, route }) {
3384
3293
  this.api = api;
3385
3294
  this.route = route;
3386
- this.publicRoute = publicRoute;
3387
3295
  }
3388
3296
  async isVerified(params) {
3389
3297
  const response = await this.api.get(`${this.route}`, { params });
@@ -3394,7 +3302,7 @@ var Repository93 = class {
3394
3302
  return response.data;
3395
3303
  }
3396
3304
  async markAsVerified(data) {
3397
- const response = await this.api.put(`${this.publicRoute}`, data);
3305
+ const response = await this.api.put(`${this.route}`, data);
3398
3306
  return response.data;
3399
3307
  }
3400
3308
  };
@@ -3405,10 +3313,9 @@ __export(emailLog_exports, {
3405
3313
  default: () => Repository94
3406
3314
  });
3407
3315
  var Repository94 = class {
3408
- constructor({ api, route, publicRoute }) {
3316
+ constructor({ api, route }) {
3409
3317
  this.api = api;
3410
3318
  this.route = route;
3411
- this.publicRoute = publicRoute;
3412
3319
  }
3413
3320
  async find(params) {
3414
3321
  const response = await this.api.get(`${this.route}`, { params });
@@ -3438,10 +3345,9 @@ __export(documentLineNote_exports, {
3438
3345
  default: () => Repository95
3439
3346
  });
3440
3347
  var Repository95 = class {
3441
- constructor({ api, route, publicRoute }) {
3348
+ constructor({ api, route }) {
3442
3349
  this.api = api;
3443
3350
  this.route = route;
3444
- this.publicRoute = publicRoute;
3445
3351
  }
3446
3352
  async upsertOrDelete(body) {
3447
3353
  const response = await this.api.post(`${this.route}`, body);
@@ -3455,10 +3361,9 @@ __export(savedProviderProposal_exports, {
3455
3361
  default: () => Repository96
3456
3362
  });
3457
3363
  var Repository96 = class {
3458
- constructor({ api, route, publicRoute }) {
3364
+ constructor({ api, route }) {
3459
3365
  this.api = api;
3460
3366
  this.route = route;
3461
- this.publicRoute = publicRoute;
3462
3367
  }
3463
3368
  async findByProviderId(selector) {
3464
3369
  const response = await this.api.get(`${this.route}${selector.id}`);
@@ -3476,10 +3381,9 @@ __export(productGoogleSheets_exports, {
3476
3381
  default: () => Repository97
3477
3382
  });
3478
3383
  var Repository97 = class {
3479
- constructor({ api, route, publicRoute }) {
3384
+ constructor({ api, route }) {
3480
3385
  this.api = api;
3481
3386
  this.route = route;
3482
- this.publicRoute = publicRoute;
3483
3387
  }
3484
3388
  async basicSearch(params) {
3485
3389
  const response = await this.api.get(`${this.route}basic_search`, {
@@ -3571,13 +3475,13 @@ var Repository97 = class {
3571
3475
  printLabelToPdfUrl({ id }, token) {
3572
3476
  const qs = new URLSearchParams();
3573
3477
  qs.set("token", token);
3574
- return `${this.publicRoute}print_label_pdf/${id}?${qs.toString()}`;
3478
+ return `${this.route}print_label_pdf/${id}?${qs.toString()}`;
3575
3479
  }
3576
3480
  printLabelToPdfBulk(ids, token) {
3577
3481
  const qs = new URLSearchParams();
3578
3482
  qs.set("token", token);
3579
3483
  qs.set("ids", ids.join(","));
3580
- return `${this.publicRoute}print_label_pdf/bulk?${qs.toString()}`;
3484
+ return `${this.route}print_label_pdf/bulk?${qs.toString()}`;
3581
3485
  }
3582
3486
  async updateDbFromSheets() {
3583
3487
  await this.api.post(`${this.route}update_db_from_sheets`);
@@ -3596,10 +3500,9 @@ __export(task_exports, {
3596
3500
  default: () => Repository98
3597
3501
  });
3598
3502
  var Repository98 = class {
3599
- constructor({ api, route, publicRoute }) {
3503
+ constructor({ api, route }) {
3600
3504
  this.api = api;
3601
3505
  this.route = route;
3602
- this.publicRoute = publicRoute;
3603
3506
  }
3604
3507
  async find(selector) {
3605
3508
  return this.api.get(`${this.route}${selector}`);
@@ -3635,10 +3538,9 @@ __export(taskMessage_exports, {
3635
3538
  default: () => Repository99
3636
3539
  });
3637
3540
  var Repository99 = class {
3638
- constructor({ api, route, publicRoute }) {
3541
+ constructor({ api, route }) {
3639
3542
  this.api = api;
3640
3543
  this.route = route;
3641
- this.publicRoute = publicRoute;
3642
3544
  }
3643
3545
  async create(body) {
3644
3546
  const response = await this.api.post(`${this.route}`, body);
@@ -3658,10 +3560,9 @@ __export(recurrentTasks_exports, {
3658
3560
  default: () => Repository100
3659
3561
  });
3660
3562
  var Repository100 = class {
3661
- constructor({ api, route, publicRoute }) {
3563
+ constructor({ api, route }) {
3662
3564
  this.api = api;
3663
3565
  this.route = route;
3664
- this.publicRoute = publicRoute;
3665
3566
  }
3666
3567
  async from_master() {
3667
3568
  return this.api.post(`${this.route}from_master`);
@@ -3677,10 +3578,9 @@ __export(taskRead_exports, {
3677
3578
  default: () => Repository101
3678
3579
  });
3679
3580
  var Repository101 = class {
3680
- constructor({ api, route, publicRoute }) {
3581
+ constructor({ api, route }) {
3681
3582
  this.api = api;
3682
3583
  this.route = route;
3683
- this.publicRoute = publicRoute;
3684
3584
  }
3685
3585
  async create(body) {
3686
3586
  await this.api.post(`${this.route}`, body);
@@ -3696,10 +3596,9 @@ __export(theme_exports, {
3696
3596
  default: () => Repository102
3697
3597
  });
3698
3598
  var Repository102 = class {
3699
- constructor({ api, route, publicRoute }) {
3599
+ constructor({ api, route }) {
3700
3600
  this.api = api;
3701
3601
  this.route = route;
3702
- this.publicRoute = publicRoute;
3703
3602
  }
3704
3603
  async createOrUpdate(body) {
3705
3604
  await this.api.post(`${this.route}`, body);
@@ -3712,10 +3611,9 @@ __export(dashboard_exports, {
3712
3611
  default: () => Repository103
3713
3612
  });
3714
3613
  var Repository103 = class {
3715
- constructor({ api, route, publicRoute }) {
3614
+ constructor({ api, route }) {
3716
3615
  this.api = api;
3717
3616
  this.route = route;
3718
- this.publicRoute = publicRoute;
3719
3617
  }
3720
3618
  async salesByDate(params) {
3721
3619
  const response = await this.api.get(`${this.route}sales`, { params });
@@ -3733,10 +3631,9 @@ __export(chatRapidMessage_exports, {
3733
3631
  default: () => Repository104
3734
3632
  });
3735
3633
  var Repository104 = class {
3736
- constructor({ api, route, publicRoute }) {
3634
+ constructor({ api, route }) {
3737
3635
  this.api = api;
3738
3636
  this.route = route;
3739
- this.publicRoute = publicRoute;
3740
3637
  }
3741
3638
  async create(data) {
3742
3639
  const response = await this.api.post(`${this.route}`, data);
@@ -3765,10 +3662,9 @@ __export(sideMenu_exports, {
3765
3662
  default: () => Repository105
3766
3663
  });
3767
3664
  var Repository105 = class {
3768
- constructor({ api, route, publicRoute }) {
3665
+ constructor({ api, route }) {
3769
3666
  this.api = api;
3770
3667
  this.route = route;
3771
- this.publicRoute = publicRoute;
3772
3668
  }
3773
3669
  async findSideMenuStoreOperators() {
3774
3670
  const response = await this.api.get(`${this.route}side_menu_store_operators`);
@@ -3798,10 +3694,9 @@ __export(errorLog_exports, {
3798
3694
  default: () => Repository106
3799
3695
  });
3800
3696
  var Repository106 = class {
3801
- constructor({ api, route, publicRoute }) {
3697
+ constructor({ api, route }) {
3802
3698
  this.api = api;
3803
3699
  this.route = route;
3804
- this.publicRoute = publicRoute;
3805
3700
  }
3806
3701
  async create(body) {
3807
3702
  await this.api.post(`${this.route}`, body);
@@ -3814,10 +3709,9 @@ __export(adminPanel_exports, {
3814
3709
  default: () => Repository107
3815
3710
  });
3816
3711
  var Repository107 = class {
3817
- constructor({ api, route, publicRoute }) {
3712
+ constructor({ api, route }) {
3818
3713
  this.api = api;
3819
3714
  this.route = route;
3820
- this.publicRoute = publicRoute;
3821
3715
  }
3822
3716
  async getData(params) {
3823
3717
  const response = await this.api.get(`${this.route}`, { params });
@@ -3831,10 +3725,9 @@ __export(documentLineRm_exports, {
3831
3725
  default: () => Repository108
3832
3726
  });
3833
3727
  var Repository108 = class {
3834
- constructor({ api, route, publicRoute }) {
3728
+ constructor({ api, route }) {
3835
3729
  this.api = api;
3836
3730
  this.route = route;
3837
- this.publicRoute = publicRoute;
3838
3731
  }
3839
3732
  async findByOwnerId({
3840
3733
  owner_id
@@ -3853,10 +3746,9 @@ __export(documentLineMt_exports, {
3853
3746
  default: () => Repository109
3854
3747
  });
3855
3748
  var Repository109 = class {
3856
- constructor({ api, route, publicRoute }) {
3749
+ constructor({ api, route }) {
3857
3750
  this.api = api;
3858
3751
  this.route = route;
3859
- this.publicRoute = publicRoute;
3860
3752
  }
3861
3753
  async findByOwnerId({
3862
3754
  owner_id
@@ -3875,10 +3767,9 @@ __export(chatSubscriber_exports, {
3875
3767
  default: () => Repository110
3876
3768
  });
3877
3769
  var Repository110 = class {
3878
- constructor({ api, route, publicRoute }) {
3770
+ constructor({ api, route }) {
3879
3771
  this.api = api;
3880
3772
  this.route = route;
3881
- this.publicRoute = publicRoute;
3882
3773
  }
3883
3774
  async createOrUpdate(data) {
3884
3775
  const response = await this.api.post(`${this.route}`, data);
@@ -3909,10 +3800,9 @@ __export(tag_exports, {
3909
3800
  default: () => Repository111
3910
3801
  });
3911
3802
  var Repository111 = class {
3912
- constructor({ api, route, publicRoute }) {
3803
+ constructor({ api, route }) {
3913
3804
  this.api = api;
3914
3805
  this.route = route;
3915
- this.publicRoute = publicRoute;
3916
3806
  }
3917
3807
  async create(body) {
3918
3808
  const response = await this.api.post(`${this.route}`, body);
@@ -3936,10 +3826,9 @@ __export(gmails_exports, {
3936
3826
  default: () => Repository112
3937
3827
  });
3938
3828
  var Repository112 = class {
3939
- constructor({ api, route, publicRoute }) {
3829
+ constructor({ api, route }) {
3940
3830
  this.api = api;
3941
3831
  this.route = route;
3942
- this.publicRoute = publicRoute;
3943
3832
  }
3944
3833
  async auth() {
3945
3834
  const response = await this.api.get(`${this.route}auth`);
@@ -3970,10 +3859,9 @@ __export(NPF_exports, {
3970
3859
  default: () => Repository113
3971
3860
  });
3972
3861
  var Repository113 = class {
3973
- constructor({ api, route, publicRoute }) {
3862
+ constructor({ api, route }) {
3974
3863
  this.api = api;
3975
3864
  this.route = route;
3976
- this.publicRoute = publicRoute;
3977
3865
  }
3978
3866
  async create(body) {
3979
3867
  const response = await this.api.post(`${this.route}providers`, body);
@@ -3987,10 +3875,9 @@ __export(NRCL_exports, {
3987
3875
  default: () => Repository114
3988
3876
  });
3989
3877
  var Repository114 = class {
3990
- constructor({ api, route, publicRoute }) {
3878
+ constructor({ api, route }) {
3991
3879
  this.api = api;
3992
3880
  this.route = route;
3993
- this.publicRoute = publicRoute;
3994
3881
  }
3995
3882
  async create(data) {
3996
3883
  await this.api.post(`${this.route}multiple_documents`, {
@@ -4005,10 +3892,9 @@ __export(currentAccount_exports, {
4005
3892
  default: () => Repository115
4006
3893
  });
4007
3894
  var Repository115 = class {
4008
- constructor({ api, route, publicRoute }) {
3895
+ constructor({ api, route }) {
4009
3896
  this.api = api;
4010
3897
  this.route = route;
4011
- this.publicRoute = publicRoute;
4012
3898
  }
4013
3899
  async findCurrentAccountByOwnerId(params) {
4014
3900
  const response = await this.api.get(`${this.route}current_account`, {
@@ -4023,7 +3909,7 @@ var Repository115 = class {
4023
3909
  return response.data;
4024
3910
  }
4025
3911
  async exportCurrentAccount(params) {
4026
- const response = await this.api.get(`${this.publicRoute}export_current_account`, {
3912
+ const response = await this.api.get(`${this.route}export_current_account`, {
4027
3913
  params
4028
3914
  });
4029
3915
  return response.data;
@@ -4053,7 +3939,7 @@ var Repository115 = class {
4053
3939
  if (start_date) qs.set("start_date", start_date.toISOString());
4054
3940
  if (end_date) qs.set("end_date", end_date.toISOString());
4055
3941
  qs.set("token", token);
4056
- return `${this.publicRoute}export_current_account?${qs.toString()}`;
3942
+ return `${this.route}export_current_account?${qs.toString()}`;
4057
3943
  }
4058
3944
  };
4059
3945
 
@@ -4063,10 +3949,9 @@ __export(paymentBatch_exports, {
4063
3949
  default: () => Repository116
4064
3950
  });
4065
3951
  var Repository116 = class {
4066
- constructor({ api, route, publicRoute }) {
3952
+ constructor({ api, route }) {
4067
3953
  this.api = api;
4068
3954
  this.route = route;
4069
- this.publicRoute = publicRoute;
4070
3955
  }
4071
3956
  async findPending(params) {
4072
3957
  const response = await this.api.get(`${this.route}not_exported`, {
@@ -4110,10 +3995,9 @@ __export(portal_exports, {
4110
3995
  default: () => Repository117
4111
3996
  });
4112
3997
  var Repository117 = class {
4113
- constructor({ api, route, publicRoute }) {
3998
+ constructor({ api, route }) {
4114
3999
  this.api = api;
4115
4000
  this.route = route;
4116
- this.publicRoute = publicRoute;
4117
4001
  }
4118
4002
  async publicFindByOwnerId(params) {
4119
4003
  const response = await this.api.get(`${this.route}public_by_owner`, {
@@ -4133,10 +4017,9 @@ var Repository117 = class {
4133
4017
 
4134
4018
  // src/modules/supply/googleSheetPool.ts
4135
4019
  var Repository118 = class {
4136
- constructor({ api, route, publicRoute }) {
4020
+ constructor({ api, route }) {
4137
4021
  this.api = api;
4138
4022
  this.route = route;
4139
- this.publicRoute = publicRoute;
4140
4023
  }
4141
4024
  async clearAndFill() {
4142
4025
  const response = await this.api.post(`${this.route}clear_and_fill`);
@@ -4150,10 +4033,9 @@ __export(accountCode_exports, {
4150
4033
  default: () => Repository119
4151
4034
  });
4152
4035
  var Repository119 = class {
4153
- constructor({ api, route, publicRoute }) {
4036
+ constructor({ api, route }) {
4154
4037
  this.api = api;
4155
4038
  this.route = route;
4156
- this.publicRoute = publicRoute;
4157
4039
  }
4158
4040
  async findByCode({
4159
4041
  code
@@ -4207,6 +4089,26 @@ var Repository120 = class {
4207
4089
  }
4208
4090
  };
4209
4091
 
4092
+ // src/modules/integration/patchNotes.ts
4093
+ var patchNotes_exports = {};
4094
+ __export(patchNotes_exports, {
4095
+ default: () => Repository121
4096
+ });
4097
+ var Repository121 = class {
4098
+ constructor({ api, route }) {
4099
+ this.api = api;
4100
+ this.route = route;
4101
+ }
4102
+ async createOrUpdate(body) {
4103
+ const response = await this.api.post(`${this.route}`, body);
4104
+ return response.data;
4105
+ }
4106
+ async find() {
4107
+ const response = await this.api.get(`${this.route}`);
4108
+ return response.data;
4109
+ }
4110
+ };
4111
+
4210
4112
  // src/main.ts
4211
4113
  var API = class {
4212
4114
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4239,8 +4141,7 @@ var API = class {
4239
4141
  };
4240
4142
  const getModuleParams = (service, module) => ({
4241
4143
  api: this.client,
4242
- route: `${this.services[service]}${module}/`,
4243
- publicRoute: `${this.services[service]}${module}/`
4144
+ route: `${this.services[service]}${module}/`
4244
4145
  });
4245
4146
  this.BankData = new Repository(getModuleParams("users", "bank_data"));
4246
4147
  this.Client = new Repository2(getModuleParams("users", "client"));
@@ -4406,6 +4307,7 @@ var API = class {
4406
4307
  this.GoogleSheetPool = new Repository118(getModuleParams("stock", "google_sheet_pool"));
4407
4308
  this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
4408
4309
  this.LLM = new Repository120({ headers: this.defaultHeaders, ...getModuleParams("llm", "llm") });
4310
+ this.PatchNotes = new Repository121(getModuleParams("integration", "patch_notes"));
4409
4311
  }
4410
4312
  };
4411
4313