@nomalism-com/api 1.3.19 → 1.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +466 -590
- package/dist/index.js +574 -679
- package/package.json +10 -10
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,
|
|
@@ -45,8 +46,8 @@ __export(main_exports, {
|
|
|
45
46
|
GoogleFilePermission: () => googleFilePermission_exports,
|
|
46
47
|
GoogleSheetPoolClass: () => googleSheetPool_exports,
|
|
47
48
|
GoogleSheets: () => googleSheets_exports,
|
|
48
|
-
GroupPermissions: () => groupPermission_exports,
|
|
49
49
|
Inventario: () => inventario_exports,
|
|
50
|
+
LLMClass: () => llm_exports,
|
|
50
51
|
Language: () => language_exports,
|
|
51
52
|
Location: () => location_exports,
|
|
52
53
|
Logout: () => logout_exports,
|
|
@@ -61,10 +62,10 @@ __export(main_exports, {
|
|
|
61
62
|
Order: () => order_exports,
|
|
62
63
|
OrderManagement: () => orderManagement_exports,
|
|
63
64
|
Password: () => password_exports,
|
|
65
|
+
PatchNotesClass: () => patchNotes_exports,
|
|
64
66
|
Payment: () => payment_exports,
|
|
65
67
|
PaymentBatchClass: () => paymentBatch_exports,
|
|
66
68
|
PaymentMethods: () => paymentMethods_exports,
|
|
67
|
-
Permissions: () => permission_exports,
|
|
68
69
|
Persona: () => persona_exports,
|
|
69
70
|
PortalClass: () => portal_exports,
|
|
70
71
|
PreSale: () => preSale_exports,
|
|
@@ -115,7 +116,6 @@ __export(main_exports, {
|
|
|
115
116
|
TypeOfLocation: () => typeOfLocation_exports,
|
|
116
117
|
UnitOfMeasure: () => unitOfMeasure_exports,
|
|
117
118
|
UpfrontReturn: () => upfrontReturn_exports,
|
|
118
|
-
UserPermissions: () => userPermission_exports,
|
|
119
119
|
UserPositions: () => userPositions_exports,
|
|
120
120
|
Users: () => user_exports,
|
|
121
121
|
VatTax: () => vatTax_exports,
|
|
@@ -132,10 +132,9 @@ __export(bankData_exports, {
|
|
|
132
132
|
default: () => Repository
|
|
133
133
|
});
|
|
134
134
|
var Repository = class {
|
|
135
|
-
constructor({ api, route
|
|
135
|
+
constructor({ api, route }) {
|
|
136
136
|
this.api = api;
|
|
137
137
|
this.route = route;
|
|
138
|
-
this.publicRoute = publicRoute;
|
|
139
138
|
}
|
|
140
139
|
async find(params) {
|
|
141
140
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -175,10 +174,9 @@ __export(clients_exports, {
|
|
|
175
174
|
default: () => Repository2
|
|
176
175
|
});
|
|
177
176
|
var Repository2 = class {
|
|
178
|
-
constructor({ api, route
|
|
177
|
+
constructor({ api, route }) {
|
|
179
178
|
this.api = api;
|
|
180
179
|
this.route = route;
|
|
181
|
-
this.publicRoute = publicRoute;
|
|
182
180
|
}
|
|
183
181
|
async findByQuery(data) {
|
|
184
182
|
const response = await this.api.post(`${this.route}query`, data);
|
|
@@ -212,10 +210,6 @@ var Repository2 = class {
|
|
|
212
210
|
const response = await this.api.post(`${this.route}`, body);
|
|
213
211
|
return response.data;
|
|
214
212
|
}
|
|
215
|
-
async createOrUpdate(body) {
|
|
216
|
-
const response = await this.api.post(`${this.route}create_or_update`, body);
|
|
217
|
-
return response.data;
|
|
218
|
-
}
|
|
219
213
|
async update(selector, body) {
|
|
220
214
|
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
221
215
|
return response.data;
|
|
@@ -232,10 +226,9 @@ __export(clientType_exports, {
|
|
|
232
226
|
default: () => Repository3
|
|
233
227
|
});
|
|
234
228
|
var Repository3 = class {
|
|
235
|
-
constructor({ api, route
|
|
229
|
+
constructor({ api, route }) {
|
|
236
230
|
this.api = api;
|
|
237
231
|
this.route = route;
|
|
238
|
-
this.publicRoute = publicRoute;
|
|
239
232
|
}
|
|
240
233
|
async find(params) {
|
|
241
234
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -271,10 +264,9 @@ var Repository3 = class {
|
|
|
271
264
|
|
|
272
265
|
// src/modules/stock/chat.ts
|
|
273
266
|
var Repository4 = class {
|
|
274
|
-
constructor({ api, route
|
|
267
|
+
constructor({ api, route }) {
|
|
275
268
|
this.api = api;
|
|
276
269
|
this.route = route;
|
|
277
|
-
this.publicRoute = publicRoute;
|
|
278
270
|
}
|
|
279
271
|
async findActiveByOwnerId(params) {
|
|
280
272
|
const response = await this.api.get(`${this.route}active`, {
|
|
@@ -282,6 +274,18 @@ var Repository4 = class {
|
|
|
282
274
|
});
|
|
283
275
|
return response.data;
|
|
284
276
|
}
|
|
277
|
+
async clientWebAppFindActiveByOwnerId(params) {
|
|
278
|
+
const response = await this.api.get(`${this.route}client_web_app`, {
|
|
279
|
+
params
|
|
280
|
+
});
|
|
281
|
+
return response.data;
|
|
282
|
+
}
|
|
283
|
+
async findActiveBySubscriberId(params) {
|
|
284
|
+
const response = await this.api.get(`${this.route}active_by_subscriber_id`, {
|
|
285
|
+
params
|
|
286
|
+
});
|
|
287
|
+
return response.data;
|
|
288
|
+
}
|
|
285
289
|
async create(body) {
|
|
286
290
|
const response = await this.api.post(`${this.route}`, body);
|
|
287
291
|
return response.data;
|
|
@@ -303,7 +307,7 @@ var Repository4 = class {
|
|
|
303
307
|
}
|
|
304
308
|
async publicMarkAllClientReadUnread(params) {
|
|
305
309
|
await this.api.put(
|
|
306
|
-
`${this.
|
|
310
|
+
`${this.route}mark_all_client_read_unread/${params.owner_id}/${params.client_read}`
|
|
307
311
|
);
|
|
308
312
|
}
|
|
309
313
|
};
|
|
@@ -314,10 +318,9 @@ __export(commissioner_exports, {
|
|
|
314
318
|
default: () => Repository5
|
|
315
319
|
});
|
|
316
320
|
var Repository5 = class {
|
|
317
|
-
constructor({ api, route
|
|
321
|
+
constructor({ api, route }) {
|
|
318
322
|
this.api = api;
|
|
319
323
|
this.route = route;
|
|
320
|
-
this.publicRoute = publicRoute;
|
|
321
324
|
}
|
|
322
325
|
async find(params) {
|
|
323
326
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -363,10 +366,9 @@ __export(country_exports, {
|
|
|
363
366
|
default: () => Repository6
|
|
364
367
|
});
|
|
365
368
|
var Repository6 = class {
|
|
366
|
-
constructor({ api, route
|
|
369
|
+
constructor({ api, route }) {
|
|
367
370
|
this.api = api;
|
|
368
371
|
this.route = route;
|
|
369
|
-
this.publicRoute = publicRoute;
|
|
370
372
|
}
|
|
371
373
|
async find(params) {
|
|
372
374
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -412,10 +414,9 @@ __export(documentHeader_exports, {
|
|
|
412
414
|
default: () => Repository7
|
|
413
415
|
});
|
|
414
416
|
var Repository7 = class {
|
|
415
|
-
constructor({ api, route
|
|
417
|
+
constructor({ api, route }) {
|
|
416
418
|
this.api = api;
|
|
417
419
|
this.route = route;
|
|
418
|
-
this.publicRoute = publicRoute;
|
|
419
420
|
}
|
|
420
421
|
async findOne(selector) {
|
|
421
422
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
@@ -497,6 +498,10 @@ var Repository7 = class {
|
|
|
497
498
|
const result = await this.api.get(`${this.route}siblings/${id}`);
|
|
498
499
|
return result.data;
|
|
499
500
|
}
|
|
501
|
+
async createSiteProposal(data) {
|
|
502
|
+
const result = await this.api.post(`${this.route}create_site_proposal`, data);
|
|
503
|
+
return result.data;
|
|
504
|
+
}
|
|
500
505
|
};
|
|
501
506
|
|
|
502
507
|
// src/modules/supply/documentHeaderHistory.ts
|
|
@@ -505,10 +510,9 @@ __export(documentHeaderHistory_exports, {
|
|
|
505
510
|
default: () => Repository8
|
|
506
511
|
});
|
|
507
512
|
var Repository8 = class {
|
|
508
|
-
constructor({ api, route
|
|
513
|
+
constructor({ api, route }) {
|
|
509
514
|
this.api = api;
|
|
510
515
|
this.route = route;
|
|
511
|
-
this.publicRoute = publicRoute;
|
|
512
516
|
}
|
|
513
517
|
async findByOwnerId(selector) {
|
|
514
518
|
const response = await this.api.get(`${this.route}by_owner/${selector.owner_id}`);
|
|
@@ -518,10 +522,9 @@ var Repository8 = class {
|
|
|
518
522
|
|
|
519
523
|
// src/modules/document/billOfLading.ts
|
|
520
524
|
var Repository9 = class {
|
|
521
|
-
constructor({ api, route
|
|
525
|
+
constructor({ api, route }) {
|
|
522
526
|
this.api = api;
|
|
523
527
|
this.route = route;
|
|
524
|
-
this.publicRoute = publicRoute;
|
|
525
528
|
}
|
|
526
529
|
async create(body) {
|
|
527
530
|
const response = await this.api.post(`${this.route}bill_of_lading`, body);
|
|
@@ -531,10 +534,9 @@ var Repository9 = class {
|
|
|
531
534
|
|
|
532
535
|
// src/modules/document/productionOrder.ts
|
|
533
536
|
var Repository10 = class {
|
|
534
|
-
constructor({ api, route
|
|
537
|
+
constructor({ api, route }) {
|
|
535
538
|
this.api = api;
|
|
536
539
|
this.route = route;
|
|
537
|
-
this.publicRoute = publicRoute;
|
|
538
540
|
}
|
|
539
541
|
async createProductionOrder(body) {
|
|
540
542
|
await this.api.post(`${this.route}production_order`, body);
|
|
@@ -543,10 +545,9 @@ var Repository10 = class {
|
|
|
543
545
|
|
|
544
546
|
// src/modules/document/proforma.ts
|
|
545
547
|
var Repository11 = class {
|
|
546
|
-
constructor({ api, route
|
|
548
|
+
constructor({ api, route }) {
|
|
547
549
|
this.api = api;
|
|
548
550
|
this.route = route;
|
|
549
|
-
this.publicRoute = publicRoute;
|
|
550
551
|
}
|
|
551
552
|
async create(data) {
|
|
552
553
|
const result = await this.api.post(`${this.route}pro_forma`, data);
|
|
@@ -560,10 +561,9 @@ var Repository11 = class {
|
|
|
560
561
|
|
|
561
562
|
// src/modules/document/propostaFornecedor.ts
|
|
562
563
|
var Repository12 = class {
|
|
563
|
-
constructor({ api, route
|
|
564
|
+
constructor({ api, route }) {
|
|
564
565
|
this.api = api;
|
|
565
566
|
this.route = route;
|
|
566
|
-
this.publicRoute = publicRoute;
|
|
567
567
|
}
|
|
568
568
|
async createProviderProposal(data) {
|
|
569
569
|
const result = await this.api.post(`${this.route}provider_proposal`, data);
|
|
@@ -573,10 +573,9 @@ var Repository12 = class {
|
|
|
573
573
|
|
|
574
574
|
// src/modules/document/providerCreditNoteFromReturn.ts
|
|
575
575
|
var Repository13 = class {
|
|
576
|
-
constructor({ api, route
|
|
576
|
+
constructor({ api, route }) {
|
|
577
577
|
this.api = api;
|
|
578
578
|
this.route = route;
|
|
579
|
-
this.publicRoute = publicRoute;
|
|
580
579
|
}
|
|
581
580
|
async findProviderReturn(params) {
|
|
582
581
|
const response = await this.api.get(`${this.route}provider_return`, {
|
|
@@ -591,10 +590,9 @@ var Repository13 = class {
|
|
|
591
590
|
|
|
592
591
|
// src/modules/document/providerFinancialCreditNote.ts
|
|
593
592
|
var Repository14 = class {
|
|
594
|
-
constructor({ api, route
|
|
593
|
+
constructor({ api, route }) {
|
|
595
594
|
this.api = api;
|
|
596
595
|
this.route = route;
|
|
597
|
-
this.publicRoute = publicRoute;
|
|
598
596
|
}
|
|
599
597
|
async findProviderInvoice(params) {
|
|
600
598
|
const response = await this.api.get(`${this.route}provider_invoice`, {
|
|
@@ -609,10 +607,9 @@ var Repository14 = class {
|
|
|
609
607
|
|
|
610
608
|
// src/modules/document/providerServiceInvoice.ts
|
|
611
609
|
var Repository15 = class {
|
|
612
|
-
constructor({ api, route
|
|
610
|
+
constructor({ api, route }) {
|
|
613
611
|
this.api = api;
|
|
614
612
|
this.route = route;
|
|
615
|
-
this.publicRoute = publicRoute;
|
|
616
613
|
}
|
|
617
614
|
async createProviderServiceInvoice(data) {
|
|
618
615
|
await this.api.post(`${this.route}provider_service_invoice`, data);
|
|
@@ -625,10 +622,9 @@ __export(documentLine_exports, {
|
|
|
625
622
|
default: () => Repository16
|
|
626
623
|
});
|
|
627
624
|
var Repository16 = class {
|
|
628
|
-
constructor({ api, route
|
|
625
|
+
constructor({ api, route }) {
|
|
629
626
|
this.api = api;
|
|
630
627
|
this.route = route;
|
|
631
|
-
this.publicRoute = publicRoute;
|
|
632
628
|
}
|
|
633
629
|
async create(body) {
|
|
634
630
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -672,10 +668,9 @@ __export(documentLineAssoc_exports, {
|
|
|
672
668
|
default: () => Repository17
|
|
673
669
|
});
|
|
674
670
|
var Repository17 = class {
|
|
675
|
-
constructor({ api, route
|
|
671
|
+
constructor({ api, route }) {
|
|
676
672
|
this.api = api;
|
|
677
673
|
this.route = route;
|
|
678
|
-
this.publicRoute = publicRoute;
|
|
679
674
|
}
|
|
680
675
|
async findByOwnerId(params) {
|
|
681
676
|
const response = await this.api.get(`${this.route}by_owner`, { params });
|
|
@@ -709,10 +704,9 @@ __export(documentType_exports, {
|
|
|
709
704
|
default: () => Repository18
|
|
710
705
|
});
|
|
711
706
|
var Repository18 = class {
|
|
712
|
-
constructor({ api, route
|
|
707
|
+
constructor({ api, route }) {
|
|
713
708
|
this.api = api;
|
|
714
709
|
this.route = route;
|
|
715
|
-
this.publicRoute = publicRoute;
|
|
716
710
|
}
|
|
717
711
|
async find(params) {
|
|
718
712
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -746,10 +740,9 @@ __export(favorites_exports, {
|
|
|
746
740
|
default: () => Repository19
|
|
747
741
|
});
|
|
748
742
|
var Repository19 = class {
|
|
749
|
-
constructor({ api, route
|
|
743
|
+
constructor({ api, route }) {
|
|
750
744
|
this.api = api;
|
|
751
745
|
this.route = route;
|
|
752
|
-
this.publicRoute = publicRoute;
|
|
753
746
|
}
|
|
754
747
|
async findByUrl(params) {
|
|
755
748
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -775,10 +768,9 @@ __export(file_exports, {
|
|
|
775
768
|
default: () => Repository20
|
|
776
769
|
});
|
|
777
770
|
var Repository20 = class {
|
|
778
|
-
constructor({ api, route
|
|
771
|
+
constructor({ api, route }) {
|
|
779
772
|
this.api = api;
|
|
780
773
|
this.route = route;
|
|
781
|
-
this.publicRoute = publicRoute;
|
|
782
774
|
}
|
|
783
775
|
async findByOwnerId(params) {
|
|
784
776
|
const response = await this.api.get(`${this.route}by_owner`, {
|
|
@@ -787,11 +779,11 @@ var Repository20 = class {
|
|
|
787
779
|
return response.data;
|
|
788
780
|
}
|
|
789
781
|
async create(body) {
|
|
790
|
-
const response = await this.api.post(`${this.
|
|
782
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
791
783
|
return response.data;
|
|
792
784
|
}
|
|
793
785
|
async update({ id }, body) {
|
|
794
|
-
await this.api.put(`${this.
|
|
786
|
+
await this.api.put(`${this.route}${id}`, body);
|
|
795
787
|
}
|
|
796
788
|
async deleteOne(selector) {
|
|
797
789
|
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
@@ -805,10 +797,9 @@ __export(googleSheets_exports, {
|
|
|
805
797
|
default: () => Repository21
|
|
806
798
|
});
|
|
807
799
|
var Repository21 = class {
|
|
808
|
-
constructor({ api, route
|
|
800
|
+
constructor({ api, route }) {
|
|
809
801
|
this.api = api;
|
|
810
802
|
this.route = route;
|
|
811
|
-
this.publicRoute = publicRoute;
|
|
812
803
|
}
|
|
813
804
|
async clone(selector, params) {
|
|
814
805
|
const response = await this.api.get(`${this.route}clone/${selector.id}`, {
|
|
@@ -829,47 +820,15 @@ var Repository21 = class {
|
|
|
829
820
|
}
|
|
830
821
|
};
|
|
831
822
|
|
|
832
|
-
// src/modules/user/groupPermission.ts
|
|
833
|
-
var groupPermission_exports = {};
|
|
834
|
-
__export(groupPermission_exports, {
|
|
835
|
-
default: () => Repository22
|
|
836
|
-
});
|
|
837
|
-
var Repository22 = class {
|
|
838
|
-
constructor({ api, route, publicRoute }) {
|
|
839
|
-
this.api = api;
|
|
840
|
-
this.route = route;
|
|
841
|
-
this.publicRoute = publicRoute;
|
|
842
|
-
}
|
|
843
|
-
async find() {
|
|
844
|
-
const response = await this.api.get(`${this.route}`);
|
|
845
|
-
return response.data;
|
|
846
|
-
}
|
|
847
|
-
async findMinified(params) {
|
|
848
|
-
const response = await this.api.get(`${this.route}minified`, {
|
|
849
|
-
params
|
|
850
|
-
});
|
|
851
|
-
return response.data;
|
|
852
|
-
}
|
|
853
|
-
async create(body) {
|
|
854
|
-
const response = await this.api.post(`${this.route}`, body);
|
|
855
|
-
return response.data;
|
|
856
|
-
}
|
|
857
|
-
async deleteOne(selector) {
|
|
858
|
-
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
859
|
-
return response.data;
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
|
|
863
823
|
// src/modules/user/language.ts
|
|
864
824
|
var language_exports = {};
|
|
865
825
|
__export(language_exports, {
|
|
866
|
-
default: () =>
|
|
826
|
+
default: () => Repository22
|
|
867
827
|
});
|
|
868
|
-
var
|
|
869
|
-
constructor({ api, route
|
|
828
|
+
var Repository22 = class {
|
|
829
|
+
constructor({ api, route }) {
|
|
870
830
|
this.api = api;
|
|
871
831
|
this.route = route;
|
|
872
|
-
this.publicRoute = publicRoute;
|
|
873
832
|
}
|
|
874
833
|
async find(params) {
|
|
875
834
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -906,13 +865,12 @@ var Repository23 = class {
|
|
|
906
865
|
// src/modules/stock/location.ts
|
|
907
866
|
var location_exports = {};
|
|
908
867
|
__export(location_exports, {
|
|
909
|
-
default: () =>
|
|
868
|
+
default: () => Repository23
|
|
910
869
|
});
|
|
911
|
-
var
|
|
912
|
-
constructor({ api, route
|
|
870
|
+
var Repository23 = class {
|
|
871
|
+
constructor({ api, route }) {
|
|
913
872
|
this.api = api;
|
|
914
873
|
this.route = route;
|
|
915
|
-
this.publicRoute = publicRoute;
|
|
916
874
|
}
|
|
917
875
|
async find(params) {
|
|
918
876
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -955,13 +913,12 @@ var Repository24 = class {
|
|
|
955
913
|
// src/modules/user/logout.ts
|
|
956
914
|
var logout_exports = {};
|
|
957
915
|
__export(logout_exports, {
|
|
958
|
-
default: () =>
|
|
916
|
+
default: () => Repository24
|
|
959
917
|
});
|
|
960
|
-
var
|
|
961
|
-
constructor({ api, route
|
|
918
|
+
var Repository24 = class {
|
|
919
|
+
constructor({ api, route }) {
|
|
962
920
|
this.api = api;
|
|
963
921
|
this.route = route;
|
|
964
|
-
this.publicRoute = publicRoute;
|
|
965
922
|
}
|
|
966
923
|
async logout() {
|
|
967
924
|
await this.api.post(`${this.route}`);
|
|
@@ -971,21 +928,20 @@ var Repository25 = class {
|
|
|
971
928
|
// src/modules/documentManagement/multimedia.ts
|
|
972
929
|
var multimedia_exports = {};
|
|
973
930
|
__export(multimedia_exports, {
|
|
974
|
-
default: () =>
|
|
931
|
+
default: () => Repository25
|
|
975
932
|
});
|
|
976
|
-
var
|
|
977
|
-
constructor({ api, route
|
|
933
|
+
var Repository25 = class {
|
|
934
|
+
constructor({ api, route }) {
|
|
978
935
|
this.api = api;
|
|
979
936
|
this.route = route;
|
|
980
|
-
this.publicRoute = publicRoute;
|
|
981
937
|
}
|
|
982
938
|
getUrl(multimediaId, download = false) {
|
|
983
939
|
const qs = new URLSearchParams();
|
|
984
940
|
if (download) qs.set("download", download.toString());
|
|
985
|
-
return `${this.
|
|
941
|
+
return `${this.route}${multimediaId}?${qs.toString()}`;
|
|
986
942
|
}
|
|
987
943
|
async create(multipartFormData, headers) {
|
|
988
|
-
const response = await this.api.post(`${this.
|
|
944
|
+
const response = await this.api.post(`${this.route}upload`, multipartFormData, {
|
|
989
945
|
headers: {
|
|
990
946
|
...headers || {},
|
|
991
947
|
"content-type": "multipart/form-data"
|
|
@@ -1000,13 +956,12 @@ var Repository26 = class {
|
|
|
1000
956
|
// src/modules/integration/observation.ts
|
|
1001
957
|
var observation_exports = {};
|
|
1002
958
|
__export(observation_exports, {
|
|
1003
|
-
default: () =>
|
|
959
|
+
default: () => Repository26
|
|
1004
960
|
});
|
|
1005
|
-
var
|
|
1006
|
-
constructor({ api, route
|
|
961
|
+
var Repository26 = class {
|
|
962
|
+
constructor({ api, route }) {
|
|
1007
963
|
this.api = api;
|
|
1008
964
|
this.route = route;
|
|
1009
|
-
this.publicRoute = publicRoute;
|
|
1010
965
|
}
|
|
1011
966
|
async findByOwnerId(params) {
|
|
1012
967
|
const response = await this.api.get(`${this.route}`, {
|
|
@@ -1035,13 +990,12 @@ var Repository27 = class {
|
|
|
1035
990
|
// src/modules/integration/observationType.ts
|
|
1036
991
|
var observationType_exports = {};
|
|
1037
992
|
__export(observationType_exports, {
|
|
1038
|
-
default: () =>
|
|
993
|
+
default: () => Repository27
|
|
1039
994
|
});
|
|
1040
|
-
var
|
|
1041
|
-
constructor({ api, route
|
|
995
|
+
var Repository27 = class {
|
|
996
|
+
constructor({ api, route }) {
|
|
1042
997
|
this.api = api;
|
|
1043
998
|
this.route = route;
|
|
1044
|
-
this.publicRoute = publicRoute;
|
|
1045
999
|
}
|
|
1046
1000
|
async find() {
|
|
1047
1001
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -1070,63 +1024,30 @@ var Repository28 = class {
|
|
|
1070
1024
|
// src/modules/user/password.ts
|
|
1071
1025
|
var password_exports = {};
|
|
1072
1026
|
__export(password_exports, {
|
|
1073
|
-
default: () =>
|
|
1027
|
+
default: () => Repository28
|
|
1074
1028
|
});
|
|
1075
|
-
var
|
|
1076
|
-
constructor({ api, route
|
|
1029
|
+
var Repository28 = class {
|
|
1030
|
+
constructor({ api, route }) {
|
|
1077
1031
|
this.api = api;
|
|
1078
1032
|
this.route = route;
|
|
1079
|
-
this.publicRoute = publicRoute;
|
|
1080
1033
|
}
|
|
1081
1034
|
async forgotPassword(body) {
|
|
1082
|
-
await this.api.post(`${this.
|
|
1035
|
+
await this.api.post(`${this.route}forgot`, body);
|
|
1083
1036
|
}
|
|
1084
1037
|
async resetPassword(body) {
|
|
1085
|
-
await this.api.post(`${this.
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
|
-
|
|
1089
|
-
// src/modules/user/permission.ts
|
|
1090
|
-
var permission_exports = {};
|
|
1091
|
-
__export(permission_exports, {
|
|
1092
|
-
default: () => Repository30
|
|
1093
|
-
});
|
|
1094
|
-
var Repository30 = class {
|
|
1095
|
-
constructor({ api, route, publicRoute }) {
|
|
1096
|
-
this.api = api;
|
|
1097
|
-
this.route = route;
|
|
1098
|
-
this.publicRoute = publicRoute;
|
|
1099
|
-
}
|
|
1100
|
-
async find() {
|
|
1101
|
-
const response = await this.api.get(`${this.route}`);
|
|
1102
|
-
return response.data;
|
|
1103
|
-
}
|
|
1104
|
-
async findMinified(params) {
|
|
1105
|
-
const response = await this.api.get(`${this.route}minified`, {
|
|
1106
|
-
params
|
|
1107
|
-
});
|
|
1108
|
-
return response.data;
|
|
1109
|
-
}
|
|
1110
|
-
async create(body) {
|
|
1111
|
-
const response = await this.api.post(`${this.route}`, body);
|
|
1112
|
-
return response.data;
|
|
1113
|
-
}
|
|
1114
|
-
async deleteOne(selector) {
|
|
1115
|
-
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
1116
|
-
return response.data;
|
|
1038
|
+
await this.api.post(`${this.route}reset`, body);
|
|
1117
1039
|
}
|
|
1118
1040
|
};
|
|
1119
1041
|
|
|
1120
1042
|
// src/modules/stock/productImage.ts
|
|
1121
1043
|
var productImage_exports = {};
|
|
1122
1044
|
__export(productImage_exports, {
|
|
1123
|
-
default: () =>
|
|
1045
|
+
default: () => Repository29
|
|
1124
1046
|
});
|
|
1125
|
-
var
|
|
1126
|
-
constructor({ api, route
|
|
1047
|
+
var Repository29 = class {
|
|
1048
|
+
constructor({ api, route }) {
|
|
1127
1049
|
this.api = api;
|
|
1128
1050
|
this.route = route;
|
|
1129
|
-
this.publicRoute = publicRoute;
|
|
1130
1051
|
}
|
|
1131
1052
|
async find(params) {
|
|
1132
1053
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1163,13 +1084,12 @@ var Repository31 = class {
|
|
|
1163
1084
|
// src/modules/stock/promotion.ts
|
|
1164
1085
|
var promotion_exports = {};
|
|
1165
1086
|
__export(promotion_exports, {
|
|
1166
|
-
default: () =>
|
|
1087
|
+
default: () => Repository30
|
|
1167
1088
|
});
|
|
1168
|
-
var
|
|
1169
|
-
constructor({ api, route
|
|
1089
|
+
var Repository30 = class {
|
|
1090
|
+
constructor({ api, route }) {
|
|
1170
1091
|
this.api = api;
|
|
1171
1092
|
this.route = route;
|
|
1172
|
-
this.publicRoute = publicRoute;
|
|
1173
1093
|
}
|
|
1174
1094
|
async find(params) {
|
|
1175
1095
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1224,13 +1144,12 @@ var Repository32 = class {
|
|
|
1224
1144
|
// src/modules/stock/promotionAssoc.ts
|
|
1225
1145
|
var promotionAssoc_exports = {};
|
|
1226
1146
|
__export(promotionAssoc_exports, {
|
|
1227
|
-
default: () =>
|
|
1147
|
+
default: () => Repository31
|
|
1228
1148
|
});
|
|
1229
|
-
var
|
|
1230
|
-
constructor({ api, route
|
|
1149
|
+
var Repository31 = class {
|
|
1150
|
+
constructor({ api, route }) {
|
|
1231
1151
|
this.api = api;
|
|
1232
1152
|
this.route = route;
|
|
1233
|
-
this.publicRoute = publicRoute;
|
|
1234
1153
|
}
|
|
1235
1154
|
async find(params) {
|
|
1236
1155
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1267,13 +1186,12 @@ var Repository33 = class {
|
|
|
1267
1186
|
// src/modules/user/provider.ts
|
|
1268
1187
|
var provider_exports = {};
|
|
1269
1188
|
__export(provider_exports, {
|
|
1270
|
-
default: () =>
|
|
1189
|
+
default: () => Repository32
|
|
1271
1190
|
});
|
|
1272
|
-
var
|
|
1273
|
-
constructor({ api, route
|
|
1191
|
+
var Repository32 = class {
|
|
1192
|
+
constructor({ api, route }) {
|
|
1274
1193
|
this.api = api;
|
|
1275
1194
|
this.route = route;
|
|
1276
|
-
this.publicRoute = publicRoute;
|
|
1277
1195
|
}
|
|
1278
1196
|
async findByQuery(data) {
|
|
1279
1197
|
const response = await this.api.post(`${this.route}query`, data);
|
|
@@ -1330,13 +1248,12 @@ var Repository34 = class {
|
|
|
1330
1248
|
// src/modules/user/providerType.ts
|
|
1331
1249
|
var providerType_exports = {};
|
|
1332
1250
|
__export(providerType_exports, {
|
|
1333
|
-
default: () =>
|
|
1251
|
+
default: () => Repository33
|
|
1334
1252
|
});
|
|
1335
|
-
var
|
|
1336
|
-
constructor({ api, route
|
|
1253
|
+
var Repository33 = class {
|
|
1254
|
+
constructor({ api, route }) {
|
|
1337
1255
|
this.api = api;
|
|
1338
1256
|
this.route = route;
|
|
1339
|
-
this.publicRoute = publicRoute;
|
|
1340
1257
|
}
|
|
1341
1258
|
async find(params) {
|
|
1342
1259
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1373,13 +1290,12 @@ var Repository35 = class {
|
|
|
1373
1290
|
// src/modules/user/purchaseCondition.ts
|
|
1374
1291
|
var purchaseCondition_exports = {};
|
|
1375
1292
|
__export(purchaseCondition_exports, {
|
|
1376
|
-
default: () =>
|
|
1293
|
+
default: () => Repository34
|
|
1377
1294
|
});
|
|
1378
|
-
var
|
|
1379
|
-
constructor({ api, route
|
|
1295
|
+
var Repository34 = class {
|
|
1296
|
+
constructor({ api, route }) {
|
|
1380
1297
|
this.api = api;
|
|
1381
1298
|
this.route = route;
|
|
1382
|
-
this.publicRoute = publicRoute;
|
|
1383
1299
|
}
|
|
1384
1300
|
async find(params) {
|
|
1385
1301
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1416,13 +1332,12 @@ var Repository36 = class {
|
|
|
1416
1332
|
// src/modules/user/reasonForExemption.ts
|
|
1417
1333
|
var reasonForExemption_exports = {};
|
|
1418
1334
|
__export(reasonForExemption_exports, {
|
|
1419
|
-
default: () =>
|
|
1335
|
+
default: () => Repository35
|
|
1420
1336
|
});
|
|
1421
|
-
var
|
|
1422
|
-
constructor({ api, route
|
|
1337
|
+
var Repository35 = class {
|
|
1338
|
+
constructor({ api, route }) {
|
|
1423
1339
|
this.api = api;
|
|
1424
1340
|
this.route = route;
|
|
1425
|
-
this.publicRoute = publicRoute;
|
|
1426
1341
|
}
|
|
1427
1342
|
async find(params) {
|
|
1428
1343
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1459,16 +1374,15 @@ var Repository37 = class {
|
|
|
1459
1374
|
// src/modules/user/refreshToken.ts
|
|
1460
1375
|
var refreshToken_exports = {};
|
|
1461
1376
|
__export(refreshToken_exports, {
|
|
1462
|
-
default: () =>
|
|
1377
|
+
default: () => Repository36
|
|
1463
1378
|
});
|
|
1464
|
-
var
|
|
1465
|
-
constructor({ api, route
|
|
1379
|
+
var Repository36 = class {
|
|
1380
|
+
constructor({ api, route }) {
|
|
1466
1381
|
this.api = api;
|
|
1467
1382
|
this.route = route;
|
|
1468
|
-
this.publicRoute = publicRoute;
|
|
1469
1383
|
}
|
|
1470
1384
|
async create(body) {
|
|
1471
|
-
const response = await this.api.post(`${this.
|
|
1385
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
1472
1386
|
return response.data;
|
|
1473
1387
|
}
|
|
1474
1388
|
};
|
|
@@ -1476,13 +1390,12 @@ var Repository38 = class {
|
|
|
1476
1390
|
// src/modules/user/segmentsArea.ts
|
|
1477
1391
|
var segmentsArea_exports = {};
|
|
1478
1392
|
__export(segmentsArea_exports, {
|
|
1479
|
-
default: () =>
|
|
1393
|
+
default: () => Repository37
|
|
1480
1394
|
});
|
|
1481
|
-
var
|
|
1482
|
-
constructor({ api, route
|
|
1395
|
+
var Repository37 = class {
|
|
1396
|
+
constructor({ api, route }) {
|
|
1483
1397
|
this.api = api;
|
|
1484
1398
|
this.route = route;
|
|
1485
|
-
this.publicRoute = publicRoute;
|
|
1486
1399
|
}
|
|
1487
1400
|
async find(params) {
|
|
1488
1401
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1519,16 +1432,15 @@ var Repository39 = class {
|
|
|
1519
1432
|
// src/modules/user/sessions.ts
|
|
1520
1433
|
var sessions_exports = {};
|
|
1521
1434
|
__export(sessions_exports, {
|
|
1522
|
-
default: () =>
|
|
1435
|
+
default: () => Repository38
|
|
1523
1436
|
});
|
|
1524
|
-
var
|
|
1525
|
-
constructor({ api, route
|
|
1437
|
+
var Repository38 = class {
|
|
1438
|
+
constructor({ api, route }) {
|
|
1526
1439
|
this.api = api;
|
|
1527
1440
|
this.route = route;
|
|
1528
|
-
this.publicRoute = publicRoute;
|
|
1529
1441
|
}
|
|
1530
1442
|
async create(body) {
|
|
1531
|
-
const response = await this.api.post(`${this.
|
|
1443
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
1532
1444
|
return response.data;
|
|
1533
1445
|
}
|
|
1534
1446
|
};
|
|
@@ -1536,13 +1448,12 @@ var Repository40 = class {
|
|
|
1536
1448
|
// src/modules/user/shippings.ts
|
|
1537
1449
|
var shippings_exports = {};
|
|
1538
1450
|
__export(shippings_exports, {
|
|
1539
|
-
default: () =>
|
|
1451
|
+
default: () => Repository39
|
|
1540
1452
|
});
|
|
1541
|
-
var
|
|
1542
|
-
constructor({ api, route
|
|
1453
|
+
var Repository39 = class {
|
|
1454
|
+
constructor({ api, route }) {
|
|
1543
1455
|
this.api = api;
|
|
1544
1456
|
this.route = route;
|
|
1545
|
-
this.publicRoute = publicRoute;
|
|
1546
1457
|
}
|
|
1547
1458
|
async find(params) {
|
|
1548
1459
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1579,13 +1490,12 @@ var Repository41 = class {
|
|
|
1579
1490
|
// src/modules/user/storeOperator.ts
|
|
1580
1491
|
var storeOperator_exports = {};
|
|
1581
1492
|
__export(storeOperator_exports, {
|
|
1582
|
-
default: () =>
|
|
1493
|
+
default: () => Repository40
|
|
1583
1494
|
});
|
|
1584
|
-
var
|
|
1585
|
-
constructor({ api, route
|
|
1495
|
+
var Repository40 = class {
|
|
1496
|
+
constructor({ api, route }) {
|
|
1586
1497
|
this.api = api;
|
|
1587
1498
|
this.route = route;
|
|
1588
|
-
this.publicRoute = publicRoute;
|
|
1589
1499
|
}
|
|
1590
1500
|
async find() {
|
|
1591
1501
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -1622,13 +1532,12 @@ var Repository42 = class {
|
|
|
1622
1532
|
// src/modules/user/swift.ts
|
|
1623
1533
|
var swift_exports = {};
|
|
1624
1534
|
__export(swift_exports, {
|
|
1625
|
-
default: () =>
|
|
1535
|
+
default: () => Repository41
|
|
1626
1536
|
});
|
|
1627
|
-
var
|
|
1628
|
-
constructor({ api, route
|
|
1537
|
+
var Repository41 = class {
|
|
1538
|
+
constructor({ api, route }) {
|
|
1629
1539
|
this.api = api;
|
|
1630
1540
|
this.route = route;
|
|
1631
|
-
this.publicRoute = publicRoute;
|
|
1632
1541
|
}
|
|
1633
1542
|
async find(params) {
|
|
1634
1543
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1665,13 +1574,12 @@ var Repository43 = class {
|
|
|
1665
1574
|
// src/modules/stock/typeOfLocation.ts
|
|
1666
1575
|
var typeOfLocation_exports = {};
|
|
1667
1576
|
__export(typeOfLocation_exports, {
|
|
1668
|
-
default: () =>
|
|
1577
|
+
default: () => Repository42
|
|
1669
1578
|
});
|
|
1670
|
-
var
|
|
1671
|
-
constructor({ api, route
|
|
1579
|
+
var Repository42 = class {
|
|
1580
|
+
constructor({ api, route }) {
|
|
1672
1581
|
this.api = api;
|
|
1673
1582
|
this.route = route;
|
|
1674
|
-
this.publicRoute = publicRoute;
|
|
1675
1583
|
}
|
|
1676
1584
|
async find(params) {
|
|
1677
1585
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1714,13 +1622,12 @@ var Repository44 = class {
|
|
|
1714
1622
|
// src/modules/stock/unitOfMeasure.ts
|
|
1715
1623
|
var unitOfMeasure_exports = {};
|
|
1716
1624
|
__export(unitOfMeasure_exports, {
|
|
1717
|
-
default: () =>
|
|
1625
|
+
default: () => Repository43
|
|
1718
1626
|
});
|
|
1719
|
-
var
|
|
1720
|
-
constructor({ api, route
|
|
1627
|
+
var Repository43 = class {
|
|
1628
|
+
constructor({ api, route }) {
|
|
1721
1629
|
this.api = api;
|
|
1722
1630
|
this.route = route;
|
|
1723
|
-
this.publicRoute = publicRoute;
|
|
1724
1631
|
}
|
|
1725
1632
|
async find(params) {
|
|
1726
1633
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1760,43 +1667,15 @@ var Repository45 = class {
|
|
|
1760
1667
|
}
|
|
1761
1668
|
};
|
|
1762
1669
|
|
|
1763
|
-
// src/modules/user/userPermission.ts
|
|
1764
|
-
var userPermission_exports = {};
|
|
1765
|
-
__export(userPermission_exports, {
|
|
1766
|
-
default: () => Repository46
|
|
1767
|
-
});
|
|
1768
|
-
var Repository46 = class {
|
|
1769
|
-
constructor({ api, route, publicRoute }) {
|
|
1770
|
-
this.api = api;
|
|
1771
|
-
this.route = route;
|
|
1772
|
-
this.publicRoute = publicRoute;
|
|
1773
|
-
}
|
|
1774
|
-
async findByOwnerId(params) {
|
|
1775
|
-
const response = await this.api.get(`${this.route}by_owner`, {
|
|
1776
|
-
params
|
|
1777
|
-
});
|
|
1778
|
-
return response.data;
|
|
1779
|
-
}
|
|
1780
|
-
async create(body) {
|
|
1781
|
-
const response = await this.api.post(`${this.route}`, body);
|
|
1782
|
-
return response.data;
|
|
1783
|
-
}
|
|
1784
|
-
async deleteOne(selector) {
|
|
1785
|
-
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
1786
|
-
return response.data;
|
|
1787
|
-
}
|
|
1788
|
-
};
|
|
1789
|
-
|
|
1790
1670
|
// src/modules/user/userPositions.ts
|
|
1791
1671
|
var userPositions_exports = {};
|
|
1792
1672
|
__export(userPositions_exports, {
|
|
1793
|
-
default: () =>
|
|
1673
|
+
default: () => Repository44
|
|
1794
1674
|
});
|
|
1795
|
-
var
|
|
1796
|
-
constructor({ api, route
|
|
1675
|
+
var Repository44 = class {
|
|
1676
|
+
constructor({ api, route }) {
|
|
1797
1677
|
this.api = api;
|
|
1798
1678
|
this.route = route;
|
|
1799
|
-
this.publicRoute = publicRoute;
|
|
1800
1679
|
}
|
|
1801
1680
|
async find(params) {
|
|
1802
1681
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1833,13 +1712,12 @@ var Repository47 = class {
|
|
|
1833
1712
|
// src/modules/user/user.ts
|
|
1834
1713
|
var user_exports = {};
|
|
1835
1714
|
__export(user_exports, {
|
|
1836
|
-
default: () =>
|
|
1715
|
+
default: () => Repository45
|
|
1837
1716
|
});
|
|
1838
|
-
var
|
|
1839
|
-
constructor({ api, route
|
|
1717
|
+
var Repository45 = class {
|
|
1718
|
+
constructor({ api, route }) {
|
|
1840
1719
|
this.api = api;
|
|
1841
1720
|
this.route = route;
|
|
1842
|
-
this.publicRoute = publicRoute;
|
|
1843
1721
|
}
|
|
1844
1722
|
async find(params) {
|
|
1845
1723
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1884,13 +1762,12 @@ var Repository48 = class {
|
|
|
1884
1762
|
// src/modules/stock/vatTax.ts
|
|
1885
1763
|
var vatTax_exports = {};
|
|
1886
1764
|
__export(vatTax_exports, {
|
|
1887
|
-
default: () =>
|
|
1765
|
+
default: () => Repository46
|
|
1888
1766
|
});
|
|
1889
|
-
var
|
|
1890
|
-
constructor({ api, route
|
|
1767
|
+
var Repository46 = class {
|
|
1768
|
+
constructor({ api, route }) {
|
|
1891
1769
|
this.api = api;
|
|
1892
1770
|
this.route = route;
|
|
1893
|
-
this.publicRoute = publicRoute;
|
|
1894
1771
|
}
|
|
1895
1772
|
async find(params) {
|
|
1896
1773
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1933,13 +1810,12 @@ var Repository49 = class {
|
|
|
1933
1810
|
// src/modules/stock/vatTaxZone.ts
|
|
1934
1811
|
var vatTaxZone_exports = {};
|
|
1935
1812
|
__export(vatTaxZone_exports, {
|
|
1936
|
-
default: () =>
|
|
1813
|
+
default: () => Repository47
|
|
1937
1814
|
});
|
|
1938
|
-
var
|
|
1939
|
-
constructor({ api, route
|
|
1815
|
+
var Repository47 = class {
|
|
1816
|
+
constructor({ api, route }) {
|
|
1940
1817
|
this.api = api;
|
|
1941
1818
|
this.route = route;
|
|
1942
|
-
this.publicRoute = publicRoute;
|
|
1943
1819
|
}
|
|
1944
1820
|
async find(params) {
|
|
1945
1821
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -1982,13 +1858,12 @@ var Repository50 = class {
|
|
|
1982
1858
|
// src/modules/supply/workflow.ts
|
|
1983
1859
|
var workflow_exports = {};
|
|
1984
1860
|
__export(workflow_exports, {
|
|
1985
|
-
default: () =>
|
|
1861
|
+
default: () => Repository48
|
|
1986
1862
|
});
|
|
1987
|
-
var
|
|
1988
|
-
constructor({ api, route
|
|
1863
|
+
var Repository48 = class {
|
|
1864
|
+
constructor({ api, route }) {
|
|
1989
1865
|
this.api = api;
|
|
1990
1866
|
this.route = route;
|
|
1991
|
-
this.publicRoute = publicRoute;
|
|
1992
1867
|
}
|
|
1993
1868
|
async find(params) {
|
|
1994
1869
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -2015,13 +1890,12 @@ var Repository51 = class {
|
|
|
2015
1890
|
// src/modules/user/deliveryMethods.ts
|
|
2016
1891
|
var deliveryMethods_exports = {};
|
|
2017
1892
|
__export(deliveryMethods_exports, {
|
|
2018
|
-
default: () =>
|
|
1893
|
+
default: () => Repository49
|
|
2019
1894
|
});
|
|
2020
|
-
var
|
|
2021
|
-
constructor({ api, route
|
|
1895
|
+
var Repository49 = class {
|
|
1896
|
+
constructor({ api, route }) {
|
|
2022
1897
|
this.api = api;
|
|
2023
1898
|
this.route = route;
|
|
2024
|
-
this.publicRoute = publicRoute;
|
|
2025
1899
|
}
|
|
2026
1900
|
async find() {
|
|
2027
1901
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2054,13 +1928,12 @@ var Repository52 = class {
|
|
|
2054
1928
|
// src/modules/user/maturityDates.ts
|
|
2055
1929
|
var maturityDates_exports = {};
|
|
2056
1930
|
__export(maturityDates_exports, {
|
|
2057
|
-
default: () =>
|
|
1931
|
+
default: () => Repository50
|
|
2058
1932
|
});
|
|
2059
|
-
var
|
|
2060
|
-
constructor({ api, route
|
|
1933
|
+
var Repository50 = class {
|
|
1934
|
+
constructor({ api, route }) {
|
|
2061
1935
|
this.api = api;
|
|
2062
1936
|
this.route = route;
|
|
2063
|
-
this.publicRoute = publicRoute;
|
|
2064
1937
|
}
|
|
2065
1938
|
async find() {
|
|
2066
1939
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2093,13 +1966,12 @@ var Repository53 = class {
|
|
|
2093
1966
|
// src/modules/user/paymentMethods.ts
|
|
2094
1967
|
var paymentMethods_exports = {};
|
|
2095
1968
|
__export(paymentMethods_exports, {
|
|
2096
|
-
default: () =>
|
|
1969
|
+
default: () => Repository51
|
|
2097
1970
|
});
|
|
2098
|
-
var
|
|
2099
|
-
constructor({ api, route
|
|
1971
|
+
var Repository51 = class {
|
|
1972
|
+
constructor({ api, route }) {
|
|
2100
1973
|
this.api = api;
|
|
2101
1974
|
this.route = route;
|
|
2102
|
-
this.publicRoute = publicRoute;
|
|
2103
1975
|
}
|
|
2104
1976
|
async find() {
|
|
2105
1977
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2132,13 +2004,12 @@ var Repository54 = class {
|
|
|
2132
2004
|
// src/modules/user/vehicles.ts
|
|
2133
2005
|
var vehicles_exports = {};
|
|
2134
2006
|
__export(vehicles_exports, {
|
|
2135
|
-
default: () =>
|
|
2007
|
+
default: () => Repository52
|
|
2136
2008
|
});
|
|
2137
|
-
var
|
|
2138
|
-
constructor({ api, route
|
|
2009
|
+
var Repository52 = class {
|
|
2010
|
+
constructor({ api, route }) {
|
|
2139
2011
|
this.api = api;
|
|
2140
2012
|
this.route = route;
|
|
2141
|
-
this.publicRoute = publicRoute;
|
|
2142
2013
|
}
|
|
2143
2014
|
async find() {
|
|
2144
2015
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2161,13 +2032,12 @@ var Repository55 = class {
|
|
|
2161
2032
|
// src/modules/supply/externalDocumentType.ts
|
|
2162
2033
|
var externalDocumentType_exports = {};
|
|
2163
2034
|
__export(externalDocumentType_exports, {
|
|
2164
|
-
default: () =>
|
|
2035
|
+
default: () => Repository53
|
|
2165
2036
|
});
|
|
2166
|
-
var
|
|
2167
|
-
constructor({ api, route
|
|
2037
|
+
var Repository53 = class {
|
|
2038
|
+
constructor({ api, route }) {
|
|
2168
2039
|
this.api = api;
|
|
2169
2040
|
this.route = route;
|
|
2170
|
-
this.publicRoute = publicRoute;
|
|
2171
2041
|
}
|
|
2172
2042
|
async find() {
|
|
2173
2043
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2182,13 +2052,12 @@ var Repository56 = class {
|
|
|
2182
2052
|
// src/modules/supply/documentSet.ts
|
|
2183
2053
|
var documentSet_exports = {};
|
|
2184
2054
|
__export(documentSet_exports, {
|
|
2185
|
-
default: () =>
|
|
2055
|
+
default: () => Repository54
|
|
2186
2056
|
});
|
|
2187
|
-
var
|
|
2188
|
-
constructor({ api, route
|
|
2057
|
+
var Repository54 = class {
|
|
2058
|
+
constructor({ api, route }) {
|
|
2189
2059
|
this.api = api;
|
|
2190
2060
|
this.route = route;
|
|
2191
|
-
this.publicRoute = publicRoute;
|
|
2192
2061
|
}
|
|
2193
2062
|
async find() {
|
|
2194
2063
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2219,13 +2088,12 @@ var Repository57 = class {
|
|
|
2219
2088
|
// src/modules/supply/payment.ts
|
|
2220
2089
|
var payment_exports = {};
|
|
2221
2090
|
__export(payment_exports, {
|
|
2222
|
-
default: () =>
|
|
2091
|
+
default: () => Repository55
|
|
2223
2092
|
});
|
|
2224
|
-
var
|
|
2225
|
-
constructor({ api, route
|
|
2093
|
+
var Repository55 = class {
|
|
2094
|
+
constructor({ api, route }) {
|
|
2226
2095
|
this.api = api;
|
|
2227
2096
|
this.route = route;
|
|
2228
|
-
this.publicRoute = publicRoute;
|
|
2229
2097
|
}
|
|
2230
2098
|
async findById(selector) {
|
|
2231
2099
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
@@ -2266,13 +2134,12 @@ var Repository58 = class {
|
|
|
2266
2134
|
// src/modules/supply/externalDocumentHeader.ts
|
|
2267
2135
|
var externalDocumentHeader_exports = {};
|
|
2268
2136
|
__export(externalDocumentHeader_exports, {
|
|
2269
|
-
default: () =>
|
|
2137
|
+
default: () => Repository56
|
|
2270
2138
|
});
|
|
2271
|
-
var
|
|
2272
|
-
constructor({ api, route
|
|
2139
|
+
var Repository56 = class {
|
|
2140
|
+
constructor({ api, route }) {
|
|
2273
2141
|
this.api = api;
|
|
2274
2142
|
this.route = route;
|
|
2275
|
-
this.publicRoute = publicRoute;
|
|
2276
2143
|
}
|
|
2277
2144
|
async create(body) {
|
|
2278
2145
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -2310,13 +2177,12 @@ var Repository59 = class {
|
|
|
2310
2177
|
// src/modules/supply/vatValidation.ts
|
|
2311
2178
|
var vatValidation_exports = {};
|
|
2312
2179
|
__export(vatValidation_exports, {
|
|
2313
|
-
default: () =>
|
|
2180
|
+
default: () => Repository57
|
|
2314
2181
|
});
|
|
2315
|
-
var
|
|
2316
|
-
constructor({ api, route
|
|
2182
|
+
var Repository57 = class {
|
|
2183
|
+
constructor({ api, route }) {
|
|
2317
2184
|
this.api = api;
|
|
2318
2185
|
this.route = route;
|
|
2319
|
-
this.publicRoute = publicRoute;
|
|
2320
2186
|
}
|
|
2321
2187
|
async findByLatest(nif) {
|
|
2322
2188
|
const response = await this.api.get(`${this.route}`, {
|
|
@@ -2331,13 +2197,12 @@ var Repository60 = class {
|
|
|
2331
2197
|
// src/modules/stock/stockMovement.ts
|
|
2332
2198
|
var stockMovement_exports = {};
|
|
2333
2199
|
__export(stockMovement_exports, {
|
|
2334
|
-
default: () =>
|
|
2200
|
+
default: () => Repository58
|
|
2335
2201
|
});
|
|
2336
|
-
var
|
|
2337
|
-
constructor({ api, route
|
|
2202
|
+
var Repository58 = class {
|
|
2203
|
+
constructor({ api, route }) {
|
|
2338
2204
|
this.api = api;
|
|
2339
2205
|
this.route = route;
|
|
2340
|
-
this.publicRoute = publicRoute;
|
|
2341
2206
|
}
|
|
2342
2207
|
async findByProvider({
|
|
2343
2208
|
id
|
|
@@ -2359,7 +2224,7 @@ var Repository61 = class {
|
|
|
2359
2224
|
qs.set("version", version);
|
|
2360
2225
|
qs.set("format", format);
|
|
2361
2226
|
qs.set("token", token);
|
|
2362
|
-
return `${this.
|
|
2227
|
+
return `${this.route}csv?${qs.toString()}`;
|
|
2363
2228
|
}
|
|
2364
2229
|
async findStockMovementPaginated(params) {
|
|
2365
2230
|
const response = await this.api.get(`${this.route}stock_movement_paginated`, { params });
|
|
@@ -2370,13 +2235,12 @@ var Repository61 = class {
|
|
|
2370
2235
|
// src/modules/user/zipCode.ts
|
|
2371
2236
|
var zipCode_exports = {};
|
|
2372
2237
|
__export(zipCode_exports, {
|
|
2373
|
-
default: () =>
|
|
2238
|
+
default: () => Repository59
|
|
2374
2239
|
});
|
|
2375
|
-
var
|
|
2376
|
-
constructor({ api, route
|
|
2240
|
+
var Repository59 = class {
|
|
2241
|
+
constructor({ api, route }) {
|
|
2377
2242
|
this.api = api;
|
|
2378
2243
|
this.route = route;
|
|
2379
|
-
this.publicRoute = publicRoute;
|
|
2380
2244
|
}
|
|
2381
2245
|
async create(body) {
|
|
2382
2246
|
await this.api.post(`${this.route}`, body);
|
|
@@ -2390,13 +2254,12 @@ var Repository62 = class {
|
|
|
2390
2254
|
// src/modules/user/tenant.ts
|
|
2391
2255
|
var tenant_exports = {};
|
|
2392
2256
|
__export(tenant_exports, {
|
|
2393
|
-
default: () =>
|
|
2257
|
+
default: () => Repository60
|
|
2394
2258
|
});
|
|
2395
|
-
var
|
|
2396
|
-
constructor({ api, route
|
|
2259
|
+
var Repository60 = class {
|
|
2260
|
+
constructor({ api, route }) {
|
|
2397
2261
|
this.api = api;
|
|
2398
2262
|
this.route = route;
|
|
2399
|
-
this.publicRoute = publicRoute;
|
|
2400
2263
|
}
|
|
2401
2264
|
async create(body) {
|
|
2402
2265
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -2419,13 +2282,12 @@ var Repository63 = class {
|
|
|
2419
2282
|
// src/modules/supply/preSale.ts
|
|
2420
2283
|
var preSale_exports = {};
|
|
2421
2284
|
__export(preSale_exports, {
|
|
2422
|
-
default: () =>
|
|
2285
|
+
default: () => Repository61
|
|
2423
2286
|
});
|
|
2424
|
-
var
|
|
2425
|
-
constructor({ api, route
|
|
2287
|
+
var Repository61 = class {
|
|
2288
|
+
constructor({ api, route }) {
|
|
2426
2289
|
this.api = api;
|
|
2427
2290
|
this.route = route;
|
|
2428
|
-
this.publicRoute = publicRoute;
|
|
2429
2291
|
}
|
|
2430
2292
|
async find(selector) {
|
|
2431
2293
|
const response = await this.api.get(`${this.route}by_user/${selector.created_by}`);
|
|
@@ -2464,13 +2326,12 @@ var Repository64 = class {
|
|
|
2464
2326
|
// src/modules/supply/preSaleProduct.ts
|
|
2465
2327
|
var preSaleProduct_exports = {};
|
|
2466
2328
|
__export(preSaleProduct_exports, {
|
|
2467
|
-
default: () =>
|
|
2329
|
+
default: () => Repository62
|
|
2468
2330
|
});
|
|
2469
|
-
var
|
|
2470
|
-
constructor({ api, route
|
|
2331
|
+
var Repository62 = class {
|
|
2332
|
+
constructor({ api, route }) {
|
|
2471
2333
|
this.api = api;
|
|
2472
2334
|
this.route = route;
|
|
2473
|
-
this.publicRoute = publicRoute;
|
|
2474
2335
|
}
|
|
2475
2336
|
async find() {
|
|
2476
2337
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2485,13 +2346,12 @@ var Repository65 = class {
|
|
|
2485
2346
|
// src/modules/supply/orderManagement.ts
|
|
2486
2347
|
var orderManagement_exports = {};
|
|
2487
2348
|
__export(orderManagement_exports, {
|
|
2488
|
-
default: () =>
|
|
2349
|
+
default: () => Repository63
|
|
2489
2350
|
});
|
|
2490
|
-
var
|
|
2491
|
-
constructor({ api, route
|
|
2351
|
+
var Repository63 = class {
|
|
2352
|
+
constructor({ api, route }) {
|
|
2492
2353
|
this.api = api;
|
|
2493
2354
|
this.route = route;
|
|
2494
|
-
this.publicRoute = publicRoute;
|
|
2495
2355
|
}
|
|
2496
2356
|
async findProviderProducts(params) {
|
|
2497
2357
|
const response = await this.api.get(`${this.route}provider_products`, {
|
|
@@ -2508,13 +2368,12 @@ var Repository66 = class {
|
|
|
2508
2368
|
// src/modules/print/npc.ts
|
|
2509
2369
|
var npc_exports = {};
|
|
2510
2370
|
__export(npc_exports, {
|
|
2511
|
-
default: () =>
|
|
2371
|
+
default: () => Repository64
|
|
2512
2372
|
});
|
|
2513
|
-
var
|
|
2514
|
-
constructor({ api, route
|
|
2373
|
+
var Repository64 = class {
|
|
2374
|
+
constructor({ api, route }) {
|
|
2515
2375
|
this.api = api;
|
|
2516
2376
|
this.route = route;
|
|
2517
|
-
this.publicRoute = publicRoute;
|
|
2518
2377
|
}
|
|
2519
2378
|
async find() {
|
|
2520
2379
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2535,13 +2394,12 @@ var Repository67 = class {
|
|
|
2535
2394
|
// src/modules/print/printer.ts
|
|
2536
2395
|
var printer_exports = {};
|
|
2537
2396
|
__export(printer_exports, {
|
|
2538
|
-
default: () =>
|
|
2397
|
+
default: () => Repository65
|
|
2539
2398
|
});
|
|
2540
|
-
var
|
|
2541
|
-
constructor({ api, route
|
|
2399
|
+
var Repository65 = class {
|
|
2400
|
+
constructor({ api, route }) {
|
|
2542
2401
|
this.api = api;
|
|
2543
2402
|
this.route = route;
|
|
2544
|
-
this.publicRoute = publicRoute;
|
|
2545
2403
|
}
|
|
2546
2404
|
async find() {
|
|
2547
2405
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2567,13 +2425,12 @@ var Repository68 = class {
|
|
|
2567
2425
|
// src/modules/print/schedulePrintJob.ts
|
|
2568
2426
|
var schedulePrintJob_exports = {};
|
|
2569
2427
|
__export(schedulePrintJob_exports, {
|
|
2570
|
-
default: () =>
|
|
2428
|
+
default: () => Repository66
|
|
2571
2429
|
});
|
|
2572
|
-
var
|
|
2573
|
-
constructor({ api, route
|
|
2430
|
+
var Repository66 = class {
|
|
2431
|
+
constructor({ api, route }) {
|
|
2574
2432
|
this.api = api;
|
|
2575
2433
|
this.route = route;
|
|
2576
|
-
this.publicRoute = publicRoute;
|
|
2577
2434
|
}
|
|
2578
2435
|
async create(body) {
|
|
2579
2436
|
await this.api.post(`${this.route}`, body);
|
|
@@ -2597,13 +2454,12 @@ var Repository69 = class {
|
|
|
2597
2454
|
// src/modules/stock/queryList.ts
|
|
2598
2455
|
var queryList_exports = {};
|
|
2599
2456
|
__export(queryList_exports, {
|
|
2600
|
-
default: () =>
|
|
2457
|
+
default: () => Repository67
|
|
2601
2458
|
});
|
|
2602
|
-
var
|
|
2603
|
-
constructor({ api, route
|
|
2459
|
+
var Repository67 = class {
|
|
2460
|
+
constructor({ api, route }) {
|
|
2604
2461
|
this.api = api;
|
|
2605
2462
|
this.route = route;
|
|
2606
|
-
this.publicRoute = publicRoute;
|
|
2607
2463
|
}
|
|
2608
2464
|
async find() {
|
|
2609
2465
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2648,13 +2504,12 @@ var Repository70 = class {
|
|
|
2648
2504
|
// src/modules/stock/queryParameter.ts
|
|
2649
2505
|
var queryParameter_exports = {};
|
|
2650
2506
|
__export(queryParameter_exports, {
|
|
2651
|
-
default: () =>
|
|
2507
|
+
default: () => Repository68
|
|
2652
2508
|
});
|
|
2653
|
-
var
|
|
2654
|
-
constructor({ api, route
|
|
2509
|
+
var Repository68 = class {
|
|
2510
|
+
constructor({ api, route }) {
|
|
2655
2511
|
this.api = api;
|
|
2656
2512
|
this.route = route;
|
|
2657
|
-
this.publicRoute = publicRoute;
|
|
2658
2513
|
}
|
|
2659
2514
|
async find() {
|
|
2660
2515
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -2685,13 +2540,12 @@ var Repository71 = class {
|
|
|
2685
2540
|
// src/modules/stock/returnReason.ts
|
|
2686
2541
|
var returnReason_exports = {};
|
|
2687
2542
|
__export(returnReason_exports, {
|
|
2688
|
-
default: () =>
|
|
2543
|
+
default: () => Repository69
|
|
2689
2544
|
});
|
|
2690
|
-
var
|
|
2691
|
-
constructor({ api, route
|
|
2545
|
+
var Repository69 = class {
|
|
2546
|
+
constructor({ api, route }) {
|
|
2692
2547
|
this.api = api;
|
|
2693
2548
|
this.route = route;
|
|
2694
|
-
this.publicRoute = publicRoute;
|
|
2695
2549
|
}
|
|
2696
2550
|
async create(body) {
|
|
2697
2551
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -2714,13 +2568,12 @@ var Repository72 = class {
|
|
|
2714
2568
|
// src/modules/document/propostaSheets.ts
|
|
2715
2569
|
var propostaSheets_exports = {};
|
|
2716
2570
|
__export(propostaSheets_exports, {
|
|
2717
|
-
default: () =>
|
|
2571
|
+
default: () => Repository70
|
|
2718
2572
|
});
|
|
2719
|
-
var
|
|
2720
|
-
constructor({ api, route
|
|
2573
|
+
var Repository70 = class {
|
|
2574
|
+
constructor({ api, route }) {
|
|
2721
2575
|
this.api = api;
|
|
2722
2576
|
this.route = route;
|
|
2723
|
-
this.publicRoute = publicRoute;
|
|
2724
2577
|
}
|
|
2725
2578
|
async isProcessing(params) {
|
|
2726
2579
|
const response = await this.api.get(`${this.route}is_processing`, {
|
|
@@ -2772,13 +2625,12 @@ var Repository73 = class {
|
|
|
2772
2625
|
// src/modules/stock/schedule.ts
|
|
2773
2626
|
var schedule_exports = {};
|
|
2774
2627
|
__export(schedule_exports, {
|
|
2775
|
-
default: () =>
|
|
2628
|
+
default: () => Repository71
|
|
2776
2629
|
});
|
|
2777
|
-
var
|
|
2778
|
-
constructor({ api, route
|
|
2630
|
+
var Repository71 = class {
|
|
2631
|
+
constructor({ api, route }) {
|
|
2779
2632
|
this.api = api;
|
|
2780
2633
|
this.route = route;
|
|
2781
|
-
this.publicRoute = publicRoute;
|
|
2782
2634
|
}
|
|
2783
2635
|
async runImmediately(selector) {
|
|
2784
2636
|
await this.api.post(`${this.route}${selector.scheduleType}`);
|
|
@@ -2788,13 +2640,12 @@ var Repository74 = class {
|
|
|
2788
2640
|
// src/modules/integration/googleFilePermission.ts
|
|
2789
2641
|
var googleFilePermission_exports = {};
|
|
2790
2642
|
__export(googleFilePermission_exports, {
|
|
2791
|
-
default: () =>
|
|
2643
|
+
default: () => Repository72
|
|
2792
2644
|
});
|
|
2793
|
-
var
|
|
2794
|
-
constructor({ api, route
|
|
2645
|
+
var Repository72 = class {
|
|
2646
|
+
constructor({ api, route }) {
|
|
2795
2647
|
this.api = api;
|
|
2796
2648
|
this.route = route;
|
|
2797
|
-
this.publicRoute = publicRoute;
|
|
2798
2649
|
}
|
|
2799
2650
|
async create(body) {
|
|
2800
2651
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -2817,20 +2668,19 @@ var Repository75 = class {
|
|
|
2817
2668
|
// src/modules/integration/settings.ts
|
|
2818
2669
|
var settings_exports = {};
|
|
2819
2670
|
__export(settings_exports, {
|
|
2820
|
-
default: () =>
|
|
2671
|
+
default: () => Repository73
|
|
2821
2672
|
});
|
|
2822
|
-
var
|
|
2823
|
-
constructor({ api, route
|
|
2673
|
+
var Repository73 = class {
|
|
2674
|
+
constructor({ api, route }) {
|
|
2824
2675
|
this.api = api;
|
|
2825
2676
|
this.route = route;
|
|
2826
|
-
this.publicRoute = publicRoute;
|
|
2827
2677
|
}
|
|
2828
2678
|
async create(body) {
|
|
2829
2679
|
const response = await this.api.post(`${this.route}`, body);
|
|
2830
2680
|
return response.data;
|
|
2831
2681
|
}
|
|
2832
2682
|
async findByKey(params) {
|
|
2833
|
-
const response = await this.api.get(`${this.
|
|
2683
|
+
const response = await this.api.get(`${this.route}by_key`, {
|
|
2834
2684
|
params
|
|
2835
2685
|
});
|
|
2836
2686
|
return response.data;
|
|
@@ -2852,13 +2702,12 @@ var Repository76 = class {
|
|
|
2852
2702
|
// src/modules/tickets/tickets.ts
|
|
2853
2703
|
var tickets_exports = {};
|
|
2854
2704
|
__export(tickets_exports, {
|
|
2855
|
-
default: () =>
|
|
2705
|
+
default: () => Repository74
|
|
2856
2706
|
});
|
|
2857
|
-
var
|
|
2858
|
-
constructor({ api, route
|
|
2707
|
+
var Repository74 = class {
|
|
2708
|
+
constructor({ api, route }) {
|
|
2859
2709
|
this.api = api;
|
|
2860
2710
|
this.route = route;
|
|
2861
|
-
this.publicRoute = publicRoute;
|
|
2862
2711
|
}
|
|
2863
2712
|
async create(body) {
|
|
2864
2713
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -2881,13 +2730,12 @@ var Repository77 = class {
|
|
|
2881
2730
|
// src/modules/tickets/channel.ts
|
|
2882
2731
|
var channel_exports = {};
|
|
2883
2732
|
__export(channel_exports, {
|
|
2884
|
-
default: () =>
|
|
2733
|
+
default: () => Repository75
|
|
2885
2734
|
});
|
|
2886
|
-
var
|
|
2887
|
-
constructor({ api, route
|
|
2735
|
+
var Repository75 = class {
|
|
2736
|
+
constructor({ api, route }) {
|
|
2888
2737
|
this.api = api;
|
|
2889
2738
|
this.route = route;
|
|
2890
|
-
this.publicRoute = publicRoute;
|
|
2891
2739
|
}
|
|
2892
2740
|
async create(body) {
|
|
2893
2741
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -2918,13 +2766,12 @@ var Repository78 = class {
|
|
|
2918
2766
|
// src/modules/tickets/language.ts
|
|
2919
2767
|
var language_exports2 = {};
|
|
2920
2768
|
__export(language_exports2, {
|
|
2921
|
-
default: () =>
|
|
2769
|
+
default: () => Repository76
|
|
2922
2770
|
});
|
|
2923
|
-
var
|
|
2924
|
-
constructor({ api, route
|
|
2771
|
+
var Repository76 = class {
|
|
2772
|
+
constructor({ api, route }) {
|
|
2925
2773
|
this.api = api;
|
|
2926
2774
|
this.route = route;
|
|
2927
|
-
this.publicRoute = publicRoute;
|
|
2928
2775
|
}
|
|
2929
2776
|
async create(body) {
|
|
2930
2777
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -2955,13 +2802,12 @@ var Repository79 = class {
|
|
|
2955
2802
|
// src/modules/tickets/clt.ts
|
|
2956
2803
|
var clt_exports = {};
|
|
2957
2804
|
__export(clt_exports, {
|
|
2958
|
-
default: () =>
|
|
2805
|
+
default: () => Repository77
|
|
2959
2806
|
});
|
|
2960
|
-
var
|
|
2961
|
-
constructor({ api, route
|
|
2807
|
+
var Repository77 = class {
|
|
2808
|
+
constructor({ api, route }) {
|
|
2962
2809
|
this.api = api;
|
|
2963
2810
|
this.route = route;
|
|
2964
|
-
this.publicRoute = publicRoute;
|
|
2965
2811
|
}
|
|
2966
2812
|
async create(body) {
|
|
2967
2813
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -2992,13 +2838,12 @@ var Repository80 = class {
|
|
|
2992
2838
|
// src/modules/supply/startDocumentHeaderLastUpdate.ts
|
|
2993
2839
|
var startDocumentHeaderLastUpdate_exports = {};
|
|
2994
2840
|
__export(startDocumentHeaderLastUpdate_exports, {
|
|
2995
|
-
default: () =>
|
|
2841
|
+
default: () => Repository78
|
|
2996
2842
|
});
|
|
2997
|
-
var
|
|
2998
|
-
constructor({ api, route
|
|
2843
|
+
var Repository78 = class {
|
|
2844
|
+
constructor({ api, route }) {
|
|
2999
2845
|
this.api = api;
|
|
3000
2846
|
this.route = route;
|
|
3001
|
-
this.publicRoute = publicRoute;
|
|
3002
2847
|
}
|
|
3003
2848
|
async findById(selector) {
|
|
3004
2849
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
@@ -3009,13 +2854,12 @@ var Repository81 = class {
|
|
|
3009
2854
|
// src/modules/user/persona.ts
|
|
3010
2855
|
var persona_exports = {};
|
|
3011
2856
|
__export(persona_exports, {
|
|
3012
|
-
default: () =>
|
|
2857
|
+
default: () => Repository79
|
|
3013
2858
|
});
|
|
3014
|
-
var
|
|
3015
|
-
constructor({ api, route
|
|
2859
|
+
var Repository79 = class {
|
|
2860
|
+
constructor({ api, route }) {
|
|
3016
2861
|
this.api = api;
|
|
3017
2862
|
this.route = route;
|
|
3018
|
-
this.publicRoute = publicRoute;
|
|
3019
2863
|
}
|
|
3020
2864
|
async findByOwnerId(params) {
|
|
3021
2865
|
const response = await this.api.get(`${this.route}by_owner`, {
|
|
@@ -3027,10 +2871,6 @@ var Repository82 = class {
|
|
|
3027
2871
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
3028
2872
|
return response.data;
|
|
3029
2873
|
}
|
|
3030
|
-
async findContactPersonaByOwnerId(params) {
|
|
3031
|
-
const response = await this.api.get(`${this.route}contact`, { params });
|
|
3032
|
-
return response.data;
|
|
3033
|
-
}
|
|
3034
2874
|
async create(body) {
|
|
3035
2875
|
const response = await this.api.post(`${this.route}`, body);
|
|
3036
2876
|
return response.data;
|
|
@@ -3049,7 +2889,7 @@ var Repository82 = class {
|
|
|
3049
2889
|
});
|
|
3050
2890
|
return response.data;
|
|
3051
2891
|
}
|
|
3052
|
-
async
|
|
2892
|
+
async findForBillOfLading(data) {
|
|
3053
2893
|
const response = await this.api.get(`${this.route}`, {
|
|
3054
2894
|
data
|
|
3055
2895
|
});
|
|
@@ -3074,29 +2914,28 @@ var Repository82 = class {
|
|
|
3074
2914
|
// src/modules/integration/projectInfo.ts
|
|
3075
2915
|
var projectInfo_exports = {};
|
|
3076
2916
|
__export(projectInfo_exports, {
|
|
3077
|
-
default: () =>
|
|
2917
|
+
default: () => Repository80
|
|
3078
2918
|
});
|
|
3079
|
-
var
|
|
3080
|
-
constructor({ api, route
|
|
2919
|
+
var Repository80 = class {
|
|
2920
|
+
constructor({ api, route }) {
|
|
3081
2921
|
this.api = api;
|
|
3082
2922
|
this.route = route;
|
|
3083
|
-
this.publicRoute = publicRoute;
|
|
3084
2923
|
}
|
|
3085
2924
|
async sendEmail(body) {
|
|
3086
|
-
await this.api.post(`${this.route}sendEmail`, body);
|
|
2925
|
+
const response = await this.api.post(`${this.route}sendEmail`, body);
|
|
2926
|
+
return response.data;
|
|
3087
2927
|
}
|
|
3088
2928
|
};
|
|
3089
2929
|
|
|
3090
2930
|
// src/modules/document/order.ts
|
|
3091
2931
|
var order_exports = {};
|
|
3092
2932
|
__export(order_exports, {
|
|
3093
|
-
default: () =>
|
|
2933
|
+
default: () => Repository81
|
|
3094
2934
|
});
|
|
3095
|
-
var
|
|
3096
|
-
constructor({ api, route
|
|
2935
|
+
var Repository81 = class {
|
|
2936
|
+
constructor({ api, route }) {
|
|
3097
2937
|
this.api = api;
|
|
3098
2938
|
this.route = route;
|
|
3099
|
-
this.publicRoute = publicRoute;
|
|
3100
2939
|
}
|
|
3101
2940
|
async unsetCativado(params) {
|
|
3102
2941
|
const response = await this.api.post(`${this.route}unset_cativado`, {
|
|
@@ -3129,13 +2968,12 @@ var Repository84 = class {
|
|
|
3129
2968
|
// src/modules/document/purchase.ts
|
|
3130
2969
|
var purchase_exports = {};
|
|
3131
2970
|
__export(purchase_exports, {
|
|
3132
|
-
default: () =>
|
|
2971
|
+
default: () => Repository82
|
|
3133
2972
|
});
|
|
3134
|
-
var
|
|
3135
|
-
constructor({ api, route
|
|
2973
|
+
var Repository82 = class {
|
|
2974
|
+
constructor({ api, route }) {
|
|
3136
2975
|
this.api = api;
|
|
3137
2976
|
this.route = route;
|
|
3138
|
-
this.publicRoute = publicRoute;
|
|
3139
2977
|
}
|
|
3140
2978
|
async purchaseFromProvider(data) {
|
|
3141
2979
|
await this.api.post(`${this.route}purchase_from_provider`, data);
|
|
@@ -3154,18 +2992,21 @@ var Repository85 = class {
|
|
|
3154
2992
|
const response = await this.api.post(`${this.route}sync`, data);
|
|
3155
2993
|
return response.data;
|
|
3156
2994
|
}
|
|
2995
|
+
async findPurchasedOrdersSummary(params) {
|
|
2996
|
+
const response = await this.api.get(`${this.route}purchased_orders_summary`, { params });
|
|
2997
|
+
return response.data;
|
|
2998
|
+
}
|
|
3157
2999
|
};
|
|
3158
3000
|
|
|
3159
3001
|
// src/modules/document/materialEntrance.ts
|
|
3160
3002
|
var materialEntrance_exports = {};
|
|
3161
3003
|
__export(materialEntrance_exports, {
|
|
3162
|
-
default: () =>
|
|
3004
|
+
default: () => Repository83
|
|
3163
3005
|
});
|
|
3164
|
-
var
|
|
3165
|
-
constructor({ api, route
|
|
3006
|
+
var Repository83 = class {
|
|
3007
|
+
constructor({ api, route }) {
|
|
3166
3008
|
this.api = api;
|
|
3167
3009
|
this.route = route;
|
|
3168
|
-
this.publicRoute = publicRoute;
|
|
3169
3010
|
}
|
|
3170
3011
|
async findMaterialEntranceProviders() {
|
|
3171
3012
|
const response = await this.api.get(`${this.route}material_entrance_providers`);
|
|
@@ -3204,7 +3045,7 @@ var Repository86 = class {
|
|
|
3204
3045
|
qs.set("prison", prison.toString());
|
|
3205
3046
|
qs.set("availableStock", availableStock.toString());
|
|
3206
3047
|
qs.set("token", token);
|
|
3207
|
-
return `${this.
|
|
3048
|
+
return `${this.route}print_label_pdf/${product_id}?${qs.toString()}`;
|
|
3208
3049
|
}
|
|
3209
3050
|
printBulkLabelToPdfUrl({
|
|
3210
3051
|
groupLabel,
|
|
@@ -3215,20 +3056,19 @@ var Repository86 = class {
|
|
|
3215
3056
|
qs.set("groupLabel", groupLabel.toString());
|
|
3216
3057
|
qs.set("saved_em_picking_ids", saved_em_picking_ids);
|
|
3217
3058
|
qs.set("token", token);
|
|
3218
|
-
return `${this.
|
|
3059
|
+
return `${this.route}print_bulk_label_pdf?${qs.toString()}`;
|
|
3219
3060
|
}
|
|
3220
3061
|
};
|
|
3221
3062
|
|
|
3222
3063
|
// src/modules/document/transformado.ts
|
|
3223
3064
|
var transformado_exports = {};
|
|
3224
3065
|
__export(transformado_exports, {
|
|
3225
|
-
default: () =>
|
|
3066
|
+
default: () => Repository84
|
|
3226
3067
|
});
|
|
3227
|
-
var
|
|
3228
|
-
constructor({ api, route
|
|
3068
|
+
var Repository84 = class {
|
|
3069
|
+
constructor({ api, route }) {
|
|
3229
3070
|
this.api = api;
|
|
3230
3071
|
this.route = route;
|
|
3231
|
-
this.publicRoute = publicRoute;
|
|
3232
3072
|
}
|
|
3233
3073
|
async transformar(body) {
|
|
3234
3074
|
const response = await this.api.post(`${this.route}transformar`, body);
|
|
@@ -3243,13 +3083,12 @@ var Repository87 = class {
|
|
|
3243
3083
|
// src/modules/document/upfrontReturn.ts
|
|
3244
3084
|
var upfrontReturn_exports = {};
|
|
3245
3085
|
__export(upfrontReturn_exports, {
|
|
3246
|
-
default: () =>
|
|
3086
|
+
default: () => Repository85
|
|
3247
3087
|
});
|
|
3248
|
-
var
|
|
3249
|
-
constructor({ api, route
|
|
3088
|
+
var Repository85 = class {
|
|
3089
|
+
constructor({ api, route }) {
|
|
3250
3090
|
this.api = api;
|
|
3251
3091
|
this.route = route;
|
|
3252
|
-
this.publicRoute = publicRoute;
|
|
3253
3092
|
}
|
|
3254
3093
|
async create(selector, data) {
|
|
3255
3094
|
const response = await this.api.post(`${this.route}${selector.id}`, data);
|
|
@@ -3260,13 +3099,12 @@ var Repository88 = class {
|
|
|
3260
3099
|
// src/modules/stock/savedEmPicking.ts
|
|
3261
3100
|
var savedEmPicking_exports = {};
|
|
3262
3101
|
__export(savedEmPicking_exports, {
|
|
3263
|
-
default: () =>
|
|
3102
|
+
default: () => Repository86
|
|
3264
3103
|
});
|
|
3265
|
-
var
|
|
3266
|
-
constructor({ api, route
|
|
3104
|
+
var Repository86 = class {
|
|
3105
|
+
constructor({ api, route }) {
|
|
3267
3106
|
this.api = api;
|
|
3268
3107
|
this.route = route;
|
|
3269
|
-
this.publicRoute = publicRoute;
|
|
3270
3108
|
}
|
|
3271
3109
|
async create(body) {
|
|
3272
3110
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -3287,13 +3125,12 @@ var Repository89 = class {
|
|
|
3287
3125
|
// src/modules/integration/emailTemplate.ts
|
|
3288
3126
|
var emailTemplate_exports = {};
|
|
3289
3127
|
__export(emailTemplate_exports, {
|
|
3290
|
-
default: () =>
|
|
3128
|
+
default: () => Repository87
|
|
3291
3129
|
});
|
|
3292
|
-
var
|
|
3293
|
-
constructor({ api, route
|
|
3130
|
+
var Repository87 = class {
|
|
3131
|
+
constructor({ api, route }) {
|
|
3294
3132
|
this.api = api;
|
|
3295
3133
|
this.route = route;
|
|
3296
|
-
this.publicRoute = publicRoute;
|
|
3297
3134
|
}
|
|
3298
3135
|
async find() {
|
|
3299
3136
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -3319,13 +3156,12 @@ var Repository90 = class {
|
|
|
3319
3156
|
// src/modules/integration/emailTemplateAttachment.ts
|
|
3320
3157
|
var emailTemplateAttachment_exports = {};
|
|
3321
3158
|
__export(emailTemplateAttachment_exports, {
|
|
3322
|
-
default: () =>
|
|
3159
|
+
default: () => Repository88
|
|
3323
3160
|
});
|
|
3324
|
-
var
|
|
3325
|
-
constructor({ api, route
|
|
3161
|
+
var Repository88 = class {
|
|
3162
|
+
constructor({ api, route }) {
|
|
3326
3163
|
this.api = api;
|
|
3327
3164
|
this.route = route;
|
|
3328
|
-
this.publicRoute = publicRoute;
|
|
3329
3165
|
}
|
|
3330
3166
|
async create(data) {
|
|
3331
3167
|
const response = await this.api.post(`${this.route}`, data);
|
|
@@ -3339,13 +3175,12 @@ var Repository91 = class {
|
|
|
3339
3175
|
// src/modules/stock/prison.ts
|
|
3340
3176
|
var prison_exports = {};
|
|
3341
3177
|
__export(prison_exports, {
|
|
3342
|
-
default: () =>
|
|
3178
|
+
default: () => Repository89
|
|
3343
3179
|
});
|
|
3344
|
-
var
|
|
3345
|
-
constructor({ api, route
|
|
3180
|
+
var Repository89 = class {
|
|
3181
|
+
constructor({ api, route }) {
|
|
3346
3182
|
this.api = api;
|
|
3347
3183
|
this.route = route;
|
|
3348
|
-
this.publicRoute = publicRoute;
|
|
3349
3184
|
}
|
|
3350
3185
|
async putLineInPrison(data) {
|
|
3351
3186
|
const response = await this.api.post(`${this.route}put_in_prison`, data);
|
|
@@ -3376,13 +3211,12 @@ var Repository92 = class {
|
|
|
3376
3211
|
// src/modules/document/quebra.ts
|
|
3377
3212
|
var quebra_exports = {};
|
|
3378
3213
|
__export(quebra_exports, {
|
|
3379
|
-
default: () =>
|
|
3214
|
+
default: () => Repository90
|
|
3380
3215
|
});
|
|
3381
|
-
var
|
|
3382
|
-
constructor({ api, route
|
|
3216
|
+
var Repository90 = class {
|
|
3217
|
+
constructor({ api, route }) {
|
|
3383
3218
|
this.api = api;
|
|
3384
3219
|
this.route = route;
|
|
3385
|
-
this.publicRoute = publicRoute;
|
|
3386
3220
|
}
|
|
3387
3221
|
async findInventoryLosses() {
|
|
3388
3222
|
const response = await this.api.get(`${this.route}`);
|
|
@@ -3408,13 +3242,12 @@ var Repository93 = class {
|
|
|
3408
3242
|
// src/modules/document/inventario.ts
|
|
3409
3243
|
var inventario_exports = {};
|
|
3410
3244
|
__export(inventario_exports, {
|
|
3411
|
-
default: () =>
|
|
3245
|
+
default: () => Repository91
|
|
3412
3246
|
});
|
|
3413
|
-
var
|
|
3414
|
-
constructor({ api, route
|
|
3247
|
+
var Repository91 = class {
|
|
3248
|
+
constructor({ api, route }) {
|
|
3415
3249
|
this.api = api;
|
|
3416
3250
|
this.route = route;
|
|
3417
|
-
this.publicRoute = publicRoute;
|
|
3418
3251
|
}
|
|
3419
3252
|
async createInventory(data) {
|
|
3420
3253
|
await this.api.post(`${this.route}`, data);
|
|
@@ -3427,13 +3260,12 @@ var Repository94 = class {
|
|
|
3427
3260
|
// src/modules/document/returnToProvider.ts
|
|
3428
3261
|
var returnToProvider_exports = {};
|
|
3429
3262
|
__export(returnToProvider_exports, {
|
|
3430
|
-
default: () =>
|
|
3263
|
+
default: () => Repository92
|
|
3431
3264
|
});
|
|
3432
|
-
var
|
|
3433
|
-
constructor({ api, route
|
|
3265
|
+
var Repository92 = class {
|
|
3266
|
+
constructor({ api, route }) {
|
|
3434
3267
|
this.api = api;
|
|
3435
3268
|
this.route = route;
|
|
3436
|
-
this.publicRoute = publicRoute;
|
|
3437
3269
|
}
|
|
3438
3270
|
async findLinesToReturn(params) {
|
|
3439
3271
|
const response = await this.api.get(`${this.route}lines_to_return`, {
|
|
@@ -3453,13 +3285,12 @@ var Repository95 = class {
|
|
|
3453
3285
|
// src/modules/integration/emailVerification.ts
|
|
3454
3286
|
var emailVerification_exports = {};
|
|
3455
3287
|
__export(emailVerification_exports, {
|
|
3456
|
-
default: () =>
|
|
3288
|
+
default: () => Repository93
|
|
3457
3289
|
});
|
|
3458
|
-
var
|
|
3459
|
-
constructor({ api, route
|
|
3290
|
+
var Repository93 = class {
|
|
3291
|
+
constructor({ api, route }) {
|
|
3460
3292
|
this.api = api;
|
|
3461
3293
|
this.route = route;
|
|
3462
|
-
this.publicRoute = publicRoute;
|
|
3463
3294
|
}
|
|
3464
3295
|
async isVerified(params) {
|
|
3465
3296
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -3470,7 +3301,7 @@ var Repository96 = class {
|
|
|
3470
3301
|
return response.data;
|
|
3471
3302
|
}
|
|
3472
3303
|
async markAsVerified(data) {
|
|
3473
|
-
const response = await this.api.put(`${this.
|
|
3304
|
+
const response = await this.api.put(`${this.route}`, data);
|
|
3474
3305
|
return response.data;
|
|
3475
3306
|
}
|
|
3476
3307
|
};
|
|
@@ -3478,13 +3309,12 @@ var Repository96 = class {
|
|
|
3478
3309
|
// src/modules/integration/emailLog.ts
|
|
3479
3310
|
var emailLog_exports = {};
|
|
3480
3311
|
__export(emailLog_exports, {
|
|
3481
|
-
default: () =>
|
|
3312
|
+
default: () => Repository94
|
|
3482
3313
|
});
|
|
3483
|
-
var
|
|
3484
|
-
constructor({ api, route
|
|
3314
|
+
var Repository94 = class {
|
|
3315
|
+
constructor({ api, route }) {
|
|
3485
3316
|
this.api = api;
|
|
3486
3317
|
this.route = route;
|
|
3487
|
-
this.publicRoute = publicRoute;
|
|
3488
3318
|
}
|
|
3489
3319
|
async find(params) {
|
|
3490
3320
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -3511,13 +3341,12 @@ var Repository97 = class {
|
|
|
3511
3341
|
// src/modules/supply/documentLineNote.ts
|
|
3512
3342
|
var documentLineNote_exports = {};
|
|
3513
3343
|
__export(documentLineNote_exports, {
|
|
3514
|
-
default: () =>
|
|
3344
|
+
default: () => Repository95
|
|
3515
3345
|
});
|
|
3516
|
-
var
|
|
3517
|
-
constructor({ api, route
|
|
3346
|
+
var Repository95 = class {
|
|
3347
|
+
constructor({ api, route }) {
|
|
3518
3348
|
this.api = api;
|
|
3519
3349
|
this.route = route;
|
|
3520
|
-
this.publicRoute = publicRoute;
|
|
3521
3350
|
}
|
|
3522
3351
|
async upsertOrDelete(body) {
|
|
3523
3352
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -3528,13 +3357,12 @@ var Repository98 = class {
|
|
|
3528
3357
|
// src/modules/stock/savedProviderProposal.ts
|
|
3529
3358
|
var savedProviderProposal_exports = {};
|
|
3530
3359
|
__export(savedProviderProposal_exports, {
|
|
3531
|
-
default: () =>
|
|
3360
|
+
default: () => Repository96
|
|
3532
3361
|
});
|
|
3533
|
-
var
|
|
3534
|
-
constructor({ api, route
|
|
3362
|
+
var Repository96 = class {
|
|
3363
|
+
constructor({ api, route }) {
|
|
3535
3364
|
this.api = api;
|
|
3536
3365
|
this.route = route;
|
|
3537
|
-
this.publicRoute = publicRoute;
|
|
3538
3366
|
}
|
|
3539
3367
|
async findByProviderId(selector) {
|
|
3540
3368
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
@@ -3549,13 +3377,12 @@ var Repository99 = class {
|
|
|
3549
3377
|
// src/modules/stock/productGoogleSheets.ts
|
|
3550
3378
|
var productGoogleSheets_exports = {};
|
|
3551
3379
|
__export(productGoogleSheets_exports, {
|
|
3552
|
-
default: () =>
|
|
3380
|
+
default: () => Repository97
|
|
3553
3381
|
});
|
|
3554
|
-
var
|
|
3555
|
-
constructor({ api, route
|
|
3382
|
+
var Repository97 = class {
|
|
3383
|
+
constructor({ api, route }) {
|
|
3556
3384
|
this.api = api;
|
|
3557
3385
|
this.route = route;
|
|
3558
|
-
this.publicRoute = publicRoute;
|
|
3559
3386
|
}
|
|
3560
3387
|
async basicSearch(params) {
|
|
3561
3388
|
const response = await this.api.get(`${this.route}basic_search`, {
|
|
@@ -3647,13 +3474,13 @@ var Repository100 = class {
|
|
|
3647
3474
|
printLabelToPdfUrl({ id }, token) {
|
|
3648
3475
|
const qs = new URLSearchParams();
|
|
3649
3476
|
qs.set("token", token);
|
|
3650
|
-
return `${this.
|
|
3477
|
+
return `${this.route}print_label_pdf/${id}?${qs.toString()}`;
|
|
3651
3478
|
}
|
|
3652
3479
|
printLabelToPdfBulk(ids, token) {
|
|
3653
3480
|
const qs = new URLSearchParams();
|
|
3654
3481
|
qs.set("token", token);
|
|
3655
3482
|
qs.set("ids", ids.join(","));
|
|
3656
|
-
return `${this.
|
|
3483
|
+
return `${this.route}print_label_pdf/bulk?${qs.toString()}`;
|
|
3657
3484
|
}
|
|
3658
3485
|
async updateDbFromSheets() {
|
|
3659
3486
|
await this.api.post(`${this.route}update_db_from_sheets`);
|
|
@@ -3669,13 +3496,12 @@ var Repository100 = class {
|
|
|
3669
3496
|
// src/modules/stock/task.ts
|
|
3670
3497
|
var task_exports = {};
|
|
3671
3498
|
__export(task_exports, {
|
|
3672
|
-
default: () =>
|
|
3499
|
+
default: () => Repository98
|
|
3673
3500
|
});
|
|
3674
|
-
var
|
|
3675
|
-
constructor({ api, route
|
|
3501
|
+
var Repository98 = class {
|
|
3502
|
+
constructor({ api, route }) {
|
|
3676
3503
|
this.api = api;
|
|
3677
3504
|
this.route = route;
|
|
3678
|
-
this.publicRoute = publicRoute;
|
|
3679
3505
|
}
|
|
3680
3506
|
async find(selector) {
|
|
3681
3507
|
return this.api.get(`${this.route}${selector}`);
|
|
@@ -3708,13 +3534,12 @@ var Repository101 = class {
|
|
|
3708
3534
|
// src/modules/stock/taskMessage.ts
|
|
3709
3535
|
var taskMessage_exports = {};
|
|
3710
3536
|
__export(taskMessage_exports, {
|
|
3711
|
-
default: () =>
|
|
3537
|
+
default: () => Repository99
|
|
3712
3538
|
});
|
|
3713
|
-
var
|
|
3714
|
-
constructor({ api, route
|
|
3539
|
+
var Repository99 = class {
|
|
3540
|
+
constructor({ api, route }) {
|
|
3715
3541
|
this.api = api;
|
|
3716
3542
|
this.route = route;
|
|
3717
|
-
this.publicRoute = publicRoute;
|
|
3718
3543
|
}
|
|
3719
3544
|
async create(body) {
|
|
3720
3545
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -3731,13 +3556,12 @@ var Repository102 = class {
|
|
|
3731
3556
|
// src/modules/stock/recurrentTasks.ts
|
|
3732
3557
|
var recurrentTasks_exports = {};
|
|
3733
3558
|
__export(recurrentTasks_exports, {
|
|
3734
|
-
default: () =>
|
|
3559
|
+
default: () => Repository100
|
|
3735
3560
|
});
|
|
3736
|
-
var
|
|
3737
|
-
constructor({ api, route
|
|
3561
|
+
var Repository100 = class {
|
|
3562
|
+
constructor({ api, route }) {
|
|
3738
3563
|
this.api = api;
|
|
3739
3564
|
this.route = route;
|
|
3740
|
-
this.publicRoute = publicRoute;
|
|
3741
3565
|
}
|
|
3742
3566
|
async from_master() {
|
|
3743
3567
|
return this.api.post(`${this.route}from_master`);
|
|
@@ -3750,13 +3574,12 @@ var Repository103 = class {
|
|
|
3750
3574
|
// src/modules/stock/taskRead.ts
|
|
3751
3575
|
var taskRead_exports = {};
|
|
3752
3576
|
__export(taskRead_exports, {
|
|
3753
|
-
default: () =>
|
|
3577
|
+
default: () => Repository101
|
|
3754
3578
|
});
|
|
3755
|
-
var
|
|
3756
|
-
constructor({ api, route
|
|
3579
|
+
var Repository101 = class {
|
|
3580
|
+
constructor({ api, route }) {
|
|
3757
3581
|
this.api = api;
|
|
3758
3582
|
this.route = route;
|
|
3759
|
-
this.publicRoute = publicRoute;
|
|
3760
3583
|
}
|
|
3761
3584
|
async create(body) {
|
|
3762
3585
|
await this.api.post(`${this.route}`, body);
|
|
@@ -3769,13 +3592,12 @@ var Repository104 = class {
|
|
|
3769
3592
|
// src/modules/user/theme.ts
|
|
3770
3593
|
var theme_exports = {};
|
|
3771
3594
|
__export(theme_exports, {
|
|
3772
|
-
default: () =>
|
|
3595
|
+
default: () => Repository102
|
|
3773
3596
|
});
|
|
3774
|
-
var
|
|
3775
|
-
constructor({ api, route
|
|
3597
|
+
var Repository102 = class {
|
|
3598
|
+
constructor({ api, route }) {
|
|
3776
3599
|
this.api = api;
|
|
3777
3600
|
this.route = route;
|
|
3778
|
-
this.publicRoute = publicRoute;
|
|
3779
3601
|
}
|
|
3780
3602
|
async createOrUpdate(body) {
|
|
3781
3603
|
await this.api.post(`${this.route}`, body);
|
|
@@ -3785,16 +3607,19 @@ var Repository105 = class {
|
|
|
3785
3607
|
// src/modules/stock/dashboard.ts
|
|
3786
3608
|
var dashboard_exports = {};
|
|
3787
3609
|
__export(dashboard_exports, {
|
|
3788
|
-
default: () =>
|
|
3610
|
+
default: () => Repository103
|
|
3789
3611
|
});
|
|
3790
|
-
var
|
|
3791
|
-
constructor({ api, route
|
|
3612
|
+
var Repository103 = class {
|
|
3613
|
+
constructor({ api, route }) {
|
|
3792
3614
|
this.api = api;
|
|
3793
3615
|
this.route = route;
|
|
3794
|
-
this.publicRoute = publicRoute;
|
|
3795
3616
|
}
|
|
3796
|
-
async
|
|
3797
|
-
const response = await this.api.get(`${this.route}
|
|
3617
|
+
async salesByDate(params) {
|
|
3618
|
+
const response = await this.api.get(`${this.route}sales`, { params });
|
|
3619
|
+
return response.data;
|
|
3620
|
+
}
|
|
3621
|
+
async projectInfo() {
|
|
3622
|
+
const response = await this.api.get(`${this.route}project_info`);
|
|
3798
3623
|
return response.data;
|
|
3799
3624
|
}
|
|
3800
3625
|
};
|
|
@@ -3802,13 +3627,12 @@ var Repository106 = class {
|
|
|
3802
3627
|
// src/modules/stock/chatRapidMessage.ts
|
|
3803
3628
|
var chatRapidMessage_exports = {};
|
|
3804
3629
|
__export(chatRapidMessage_exports, {
|
|
3805
|
-
default: () =>
|
|
3630
|
+
default: () => Repository104
|
|
3806
3631
|
});
|
|
3807
|
-
var
|
|
3808
|
-
constructor({ api, route
|
|
3632
|
+
var Repository104 = class {
|
|
3633
|
+
constructor({ api, route }) {
|
|
3809
3634
|
this.api = api;
|
|
3810
3635
|
this.route = route;
|
|
3811
|
-
this.publicRoute = publicRoute;
|
|
3812
3636
|
}
|
|
3813
3637
|
async create(data) {
|
|
3814
3638
|
const response = await this.api.post(`${this.route}`, data);
|
|
@@ -3834,13 +3658,12 @@ var Repository107 = class {
|
|
|
3834
3658
|
// src/modules/ui/sideMenu.ts
|
|
3835
3659
|
var sideMenu_exports = {};
|
|
3836
3660
|
__export(sideMenu_exports, {
|
|
3837
|
-
default: () =>
|
|
3661
|
+
default: () => Repository105
|
|
3838
3662
|
});
|
|
3839
|
-
var
|
|
3840
|
-
constructor({ api, route
|
|
3663
|
+
var Repository105 = class {
|
|
3664
|
+
constructor({ api, route }) {
|
|
3841
3665
|
this.api = api;
|
|
3842
3666
|
this.route = route;
|
|
3843
|
-
this.publicRoute = publicRoute;
|
|
3844
3667
|
}
|
|
3845
3668
|
async findSideMenuStoreOperators() {
|
|
3846
3669
|
const response = await this.api.get(`${this.route}side_menu_store_operators`);
|
|
@@ -3867,13 +3690,12 @@ var Repository108 = class {
|
|
|
3867
3690
|
// src/modules/view/errorLog.ts
|
|
3868
3691
|
var errorLog_exports = {};
|
|
3869
3692
|
__export(errorLog_exports, {
|
|
3870
|
-
default: () =>
|
|
3693
|
+
default: () => Repository106
|
|
3871
3694
|
});
|
|
3872
|
-
var
|
|
3873
|
-
constructor({ api, route
|
|
3695
|
+
var Repository106 = class {
|
|
3696
|
+
constructor({ api, route }) {
|
|
3874
3697
|
this.api = api;
|
|
3875
3698
|
this.route = route;
|
|
3876
|
-
this.publicRoute = publicRoute;
|
|
3877
3699
|
}
|
|
3878
3700
|
async create(body) {
|
|
3879
3701
|
await this.api.post(`${this.route}`, body);
|
|
@@ -3883,13 +3705,12 @@ var Repository109 = class {
|
|
|
3883
3705
|
// src/modules/view/adminPanel.ts
|
|
3884
3706
|
var adminPanel_exports = {};
|
|
3885
3707
|
__export(adminPanel_exports, {
|
|
3886
|
-
default: () =>
|
|
3708
|
+
default: () => Repository107
|
|
3887
3709
|
});
|
|
3888
|
-
var
|
|
3889
|
-
constructor({ api, route
|
|
3710
|
+
var Repository107 = class {
|
|
3711
|
+
constructor({ api, route }) {
|
|
3890
3712
|
this.api = api;
|
|
3891
3713
|
this.route = route;
|
|
3892
|
-
this.publicRoute = publicRoute;
|
|
3893
3714
|
}
|
|
3894
3715
|
async getData(params) {
|
|
3895
3716
|
const response = await this.api.get(`${this.route}`, { params });
|
|
@@ -3900,13 +3721,12 @@ var Repository110 = class {
|
|
|
3900
3721
|
// src/modules/supply/documentLineRm.ts
|
|
3901
3722
|
var documentLineRm_exports = {};
|
|
3902
3723
|
__export(documentLineRm_exports, {
|
|
3903
|
-
default: () =>
|
|
3724
|
+
default: () => Repository108
|
|
3904
3725
|
});
|
|
3905
|
-
var
|
|
3906
|
-
constructor({ api, route
|
|
3726
|
+
var Repository108 = class {
|
|
3727
|
+
constructor({ api, route }) {
|
|
3907
3728
|
this.api = api;
|
|
3908
3729
|
this.route = route;
|
|
3909
|
-
this.publicRoute = publicRoute;
|
|
3910
3730
|
}
|
|
3911
3731
|
async findByOwnerId({
|
|
3912
3732
|
owner_id
|
|
@@ -3922,13 +3742,12 @@ var Repository111 = class {
|
|
|
3922
3742
|
// src/modules/supply/documentLineMt.ts
|
|
3923
3743
|
var documentLineMt_exports = {};
|
|
3924
3744
|
__export(documentLineMt_exports, {
|
|
3925
|
-
default: () =>
|
|
3745
|
+
default: () => Repository109
|
|
3926
3746
|
});
|
|
3927
|
-
var
|
|
3928
|
-
constructor({ api, route
|
|
3747
|
+
var Repository109 = class {
|
|
3748
|
+
constructor({ api, route }) {
|
|
3929
3749
|
this.api = api;
|
|
3930
3750
|
this.route = route;
|
|
3931
|
-
this.publicRoute = publicRoute;
|
|
3932
3751
|
}
|
|
3933
3752
|
async findByOwnerId({
|
|
3934
3753
|
owner_id
|
|
@@ -3944,37 +3763,45 @@ var Repository112 = class {
|
|
|
3944
3763
|
// src/modules/user/chatSubscriber.ts
|
|
3945
3764
|
var chatSubscriber_exports = {};
|
|
3946
3765
|
__export(chatSubscriber_exports, {
|
|
3947
|
-
default: () =>
|
|
3766
|
+
default: () => Repository110
|
|
3948
3767
|
});
|
|
3949
|
-
var
|
|
3950
|
-
constructor({ api, route
|
|
3768
|
+
var Repository110 = class {
|
|
3769
|
+
constructor({ api, route }) {
|
|
3951
3770
|
this.api = api;
|
|
3952
3771
|
this.route = route;
|
|
3953
|
-
this.publicRoute = publicRoute;
|
|
3954
3772
|
}
|
|
3955
3773
|
async createOrUpdate(data) {
|
|
3956
3774
|
const response = await this.api.post(`${this.route}`, data);
|
|
3957
3775
|
return response.data;
|
|
3958
3776
|
}
|
|
3959
|
-
async
|
|
3960
|
-
const response = await this.api.get(`${this.route}`, { params
|
|
3777
|
+
async findByOwner(params) {
|
|
3778
|
+
const response = await this.api.get(`${this.route}`, { params });
|
|
3961
3779
|
return response.data;
|
|
3962
3780
|
}
|
|
3963
|
-
async
|
|
3964
|
-
await this.api.
|
|
3781
|
+
async clientWebAppFindByOwner(params) {
|
|
3782
|
+
const response = await this.api.get(`${this.route}client_web_app`, { params });
|
|
3783
|
+
return response.data;
|
|
3784
|
+
}
|
|
3785
|
+
async findById({
|
|
3786
|
+
id
|
|
3787
|
+
}) {
|
|
3788
|
+
const response = await this.api.get(`${this.route}${id}`);
|
|
3789
|
+
return response.data;
|
|
3790
|
+
}
|
|
3791
|
+
async deleteOne({ id }) {
|
|
3792
|
+
await this.api.delete(`${this.route}/${id}`);
|
|
3965
3793
|
}
|
|
3966
3794
|
};
|
|
3967
3795
|
|
|
3968
3796
|
// src/modules/stock/tag.ts
|
|
3969
3797
|
var tag_exports = {};
|
|
3970
3798
|
__export(tag_exports, {
|
|
3971
|
-
default: () =>
|
|
3799
|
+
default: () => Repository111
|
|
3972
3800
|
});
|
|
3973
|
-
var
|
|
3974
|
-
constructor({ api, route
|
|
3801
|
+
var Repository111 = class {
|
|
3802
|
+
constructor({ api, route }) {
|
|
3975
3803
|
this.api = api;
|
|
3976
3804
|
this.route = route;
|
|
3977
|
-
this.publicRoute = publicRoute;
|
|
3978
3805
|
}
|
|
3979
3806
|
async create(body) {
|
|
3980
3807
|
const response = await this.api.post(`${this.route}`, body);
|
|
@@ -3995,13 +3822,12 @@ var Repository114 = class {
|
|
|
3995
3822
|
// src/modules/stock/gmails.ts
|
|
3996
3823
|
var gmails_exports = {};
|
|
3997
3824
|
__export(gmails_exports, {
|
|
3998
|
-
default: () =>
|
|
3825
|
+
default: () => Repository112
|
|
3999
3826
|
});
|
|
4000
|
-
var
|
|
4001
|
-
constructor({ api, route
|
|
3827
|
+
var Repository112 = class {
|
|
3828
|
+
constructor({ api, route }) {
|
|
4002
3829
|
this.api = api;
|
|
4003
3830
|
this.route = route;
|
|
4004
|
-
this.publicRoute = publicRoute;
|
|
4005
3831
|
}
|
|
4006
3832
|
async auth() {
|
|
4007
3833
|
const response = await this.api.get(`${this.route}auth`);
|
|
@@ -4011,31 +3837,17 @@ var Repository115 = class {
|
|
|
4011
3837
|
const response = await this.api.get(`${this.route}emails`);
|
|
4012
3838
|
return response.data;
|
|
4013
3839
|
}
|
|
4014
|
-
async executeGmailCommand(selector) {
|
|
4015
|
-
const response = await this.api.post(
|
|
4016
|
-
`${this.route}execute_gmail_command/${selector.id}`
|
|
4017
|
-
);
|
|
4018
|
-
return response.data;
|
|
4019
|
-
}
|
|
4020
|
-
async editPreviewChatMessage(selector, data) {
|
|
4021
|
-
const response = await this.api.post(
|
|
4022
|
-
`${this.route}edit_preview_chat_message/${selector.id}`,
|
|
4023
|
-
data
|
|
4024
|
-
);
|
|
4025
|
-
return response.data;
|
|
4026
|
-
}
|
|
4027
3840
|
};
|
|
4028
3841
|
|
|
4029
3842
|
// src/modules/document/NPF.ts
|
|
4030
3843
|
var NPF_exports = {};
|
|
4031
3844
|
__export(NPF_exports, {
|
|
4032
|
-
default: () =>
|
|
3845
|
+
default: () => Repository113
|
|
4033
3846
|
});
|
|
4034
|
-
var
|
|
4035
|
-
constructor({ api, route
|
|
3847
|
+
var Repository113 = class {
|
|
3848
|
+
constructor({ api, route }) {
|
|
4036
3849
|
this.api = api;
|
|
4037
3850
|
this.route = route;
|
|
4038
|
-
this.publicRoute = publicRoute;
|
|
4039
3851
|
}
|
|
4040
3852
|
async create(body) {
|
|
4041
3853
|
const response = await this.api.post(`${this.route}providers`, body);
|
|
@@ -4046,13 +3858,12 @@ var Repository116 = class {
|
|
|
4046
3858
|
// src/modules/document/NRCL.ts
|
|
4047
3859
|
var NRCL_exports = {};
|
|
4048
3860
|
__export(NRCL_exports, {
|
|
4049
|
-
default: () =>
|
|
3861
|
+
default: () => Repository114
|
|
4050
3862
|
});
|
|
4051
|
-
var
|
|
4052
|
-
constructor({ api, route
|
|
3863
|
+
var Repository114 = class {
|
|
3864
|
+
constructor({ api, route }) {
|
|
4053
3865
|
this.api = api;
|
|
4054
3866
|
this.route = route;
|
|
4055
|
-
this.publicRoute = publicRoute;
|
|
4056
3867
|
}
|
|
4057
3868
|
async create(data) {
|
|
4058
3869
|
await this.api.post(`${this.route}multiple_documents`, {
|
|
@@ -4064,13 +3875,12 @@ var Repository117 = class {
|
|
|
4064
3875
|
// src/modules/supply/currentAccount.ts
|
|
4065
3876
|
var currentAccount_exports = {};
|
|
4066
3877
|
__export(currentAccount_exports, {
|
|
4067
|
-
default: () =>
|
|
3878
|
+
default: () => Repository115
|
|
4068
3879
|
});
|
|
4069
|
-
var
|
|
4070
|
-
constructor({ api, route
|
|
3880
|
+
var Repository115 = class {
|
|
3881
|
+
constructor({ api, route }) {
|
|
4071
3882
|
this.api = api;
|
|
4072
3883
|
this.route = route;
|
|
4073
|
-
this.publicRoute = publicRoute;
|
|
4074
3884
|
}
|
|
4075
3885
|
async findCurrentAccountByOwnerId(params) {
|
|
4076
3886
|
const response = await this.api.get(`${this.route}current_account`, {
|
|
@@ -4085,7 +3895,7 @@ var Repository118 = class {
|
|
|
4085
3895
|
return response.data;
|
|
4086
3896
|
}
|
|
4087
3897
|
async exportCurrentAccount(params) {
|
|
4088
|
-
const response = await this.api.get(`${this.
|
|
3898
|
+
const response = await this.api.get(`${this.route}export_current_account`, {
|
|
4089
3899
|
params
|
|
4090
3900
|
});
|
|
4091
3901
|
return response.data;
|
|
@@ -4115,20 +3925,19 @@ var Repository118 = class {
|
|
|
4115
3925
|
if (start_date) qs.set("start_date", start_date.toISOString());
|
|
4116
3926
|
if (end_date) qs.set("end_date", end_date.toISOString());
|
|
4117
3927
|
qs.set("token", token);
|
|
4118
|
-
return `${this.
|
|
3928
|
+
return `${this.route}export_current_account?${qs.toString()}`;
|
|
4119
3929
|
}
|
|
4120
3930
|
};
|
|
4121
3931
|
|
|
4122
3932
|
// src/modules/supply/paymentBatch.ts
|
|
4123
3933
|
var paymentBatch_exports = {};
|
|
4124
3934
|
__export(paymentBatch_exports, {
|
|
4125
|
-
default: () =>
|
|
3935
|
+
default: () => Repository116
|
|
4126
3936
|
});
|
|
4127
|
-
var
|
|
4128
|
-
constructor({ api, route
|
|
3937
|
+
var Repository116 = class {
|
|
3938
|
+
constructor({ api, route }) {
|
|
4129
3939
|
this.api = api;
|
|
4130
3940
|
this.route = route;
|
|
4131
|
-
this.publicRoute = publicRoute;
|
|
4132
3941
|
}
|
|
4133
3942
|
async findPending(params) {
|
|
4134
3943
|
const response = await this.api.get(`${this.route}not_exported`, {
|
|
@@ -4169,13 +3978,12 @@ var Repository119 = class {
|
|
|
4169
3978
|
// src/modules/ui/portal.ts
|
|
4170
3979
|
var portal_exports = {};
|
|
4171
3980
|
__export(portal_exports, {
|
|
4172
|
-
default: () =>
|
|
3981
|
+
default: () => Repository117
|
|
4173
3982
|
});
|
|
4174
|
-
var
|
|
4175
|
-
constructor({ api, route
|
|
3983
|
+
var Repository117 = class {
|
|
3984
|
+
constructor({ api, route }) {
|
|
4176
3985
|
this.api = api;
|
|
4177
3986
|
this.route = route;
|
|
4178
|
-
this.publicRoute = publicRoute;
|
|
4179
3987
|
}
|
|
4180
3988
|
async publicFindByOwnerId(params) {
|
|
4181
3989
|
const response = await this.api.get(`${this.route}public_by_owner`, {
|
|
@@ -4183,6 +3991,12 @@ var Repository120 = class {
|
|
|
4183
3991
|
});
|
|
4184
3992
|
return response.data;
|
|
4185
3993
|
}
|
|
3994
|
+
async publicFindBySubscriberId(params) {
|
|
3995
|
+
const response = await this.api.get(`${this.route}public_by_subscriber`, {
|
|
3996
|
+
params
|
|
3997
|
+
});
|
|
3998
|
+
return response.data;
|
|
3999
|
+
}
|
|
4186
4000
|
async createPublicDocumentHeaderNote(data) {
|
|
4187
4001
|
const response = await this.api.post(`${this.route}public_document_header_note`, data);
|
|
4188
4002
|
return response.data;
|
|
@@ -4196,13 +4010,12 @@ var Repository120 = class {
|
|
|
4196
4010
|
// src/modules/supply/googleSheetPool.ts
|
|
4197
4011
|
var googleSheetPool_exports = {};
|
|
4198
4012
|
__export(googleSheetPool_exports, {
|
|
4199
|
-
default: () =>
|
|
4013
|
+
default: () => Repository118
|
|
4200
4014
|
});
|
|
4201
|
-
var
|
|
4202
|
-
constructor({ api, route
|
|
4015
|
+
var Repository118 = class {
|
|
4016
|
+
constructor({ api, route }) {
|
|
4203
4017
|
this.api = api;
|
|
4204
4018
|
this.route = route;
|
|
4205
|
-
this.publicRoute = publicRoute;
|
|
4206
4019
|
}
|
|
4207
4020
|
async clearAndFill() {
|
|
4208
4021
|
const response = await this.api.post(`${this.route}clear_and_fill`);
|
|
@@ -4213,9 +4026,9 @@ var Repository121 = class {
|
|
|
4213
4026
|
// src/modules/supply/saft.ts
|
|
4214
4027
|
var saft_exports = {};
|
|
4215
4028
|
__export(saft_exports, {
|
|
4216
|
-
default: () =>
|
|
4029
|
+
default: () => Repository119
|
|
4217
4030
|
});
|
|
4218
|
-
var
|
|
4031
|
+
var Repository119 = class {
|
|
4219
4032
|
constructor({ route }) {
|
|
4220
4033
|
this.route = route;
|
|
4221
4034
|
}
|
|
@@ -4228,20 +4041,102 @@ var Repository122 = class {
|
|
|
4228
4041
|
}
|
|
4229
4042
|
};
|
|
4230
4043
|
|
|
4044
|
+
// src/modules/stock/accountCode.ts
|
|
4045
|
+
var accountCode_exports = {};
|
|
4046
|
+
__export(accountCode_exports, {
|
|
4047
|
+
default: () => Repository120
|
|
4048
|
+
});
|
|
4049
|
+
var Repository120 = class {
|
|
4050
|
+
constructor({ api, route }) {
|
|
4051
|
+
this.api = api;
|
|
4052
|
+
this.route = route;
|
|
4053
|
+
}
|
|
4054
|
+
async findByCode({
|
|
4055
|
+
code
|
|
4056
|
+
}) {
|
|
4057
|
+
const response = await this.api.get(`${this.route}${code}`);
|
|
4058
|
+
return response.data;
|
|
4059
|
+
}
|
|
4060
|
+
};
|
|
4061
|
+
|
|
4062
|
+
// src/modules/llm/llm.ts
|
|
4063
|
+
var llm_exports = {};
|
|
4064
|
+
__export(llm_exports, {
|
|
4065
|
+
default: () => Repository121
|
|
4066
|
+
});
|
|
4067
|
+
var Repository121 = class {
|
|
4068
|
+
constructor({ api, route }) {
|
|
4069
|
+
this.api = api;
|
|
4070
|
+
this.route = route;
|
|
4071
|
+
}
|
|
4072
|
+
prompt(data, { onChunk, onDone, onError }) {
|
|
4073
|
+
const ac = new AbortController();
|
|
4074
|
+
(async () => {
|
|
4075
|
+
try {
|
|
4076
|
+
const resp = await fetch(`${this.route}prompt`, {
|
|
4077
|
+
method: "POST",
|
|
4078
|
+
headers: {
|
|
4079
|
+
"Content-Type": "application/json",
|
|
4080
|
+
Authorization: this.api.defaults.headers.common.Authorization
|
|
4081
|
+
},
|
|
4082
|
+
body: JSON.stringify(data),
|
|
4083
|
+
signal: ac.signal
|
|
4084
|
+
});
|
|
4085
|
+
if (!resp.ok || !resp.body) {
|
|
4086
|
+
const text = await resp.text().catch(() => "");
|
|
4087
|
+
throw new Error(`HTTP ${resp.status}: ${text}`);
|
|
4088
|
+
}
|
|
4089
|
+
const reader = resp.body.getReader();
|
|
4090
|
+
const decoder = new TextDecoder();
|
|
4091
|
+
while (true) {
|
|
4092
|
+
const { value, done } = await reader.read();
|
|
4093
|
+
if (done) break;
|
|
4094
|
+
onChunk(decoder.decode(value, { stream: true }));
|
|
4095
|
+
}
|
|
4096
|
+
onDone?.();
|
|
4097
|
+
} catch (err) {
|
|
4098
|
+
if (err?.name === "AbortError") return;
|
|
4099
|
+
onError?.(err);
|
|
4100
|
+
}
|
|
4101
|
+
})();
|
|
4102
|
+
return { abort: () => ac.abort() };
|
|
4103
|
+
}
|
|
4104
|
+
};
|
|
4105
|
+
|
|
4106
|
+
// src/modules/integration/patchNotes.ts
|
|
4107
|
+
var patchNotes_exports = {};
|
|
4108
|
+
__export(patchNotes_exports, {
|
|
4109
|
+
default: () => Repository122
|
|
4110
|
+
});
|
|
4111
|
+
var Repository122 = class {
|
|
4112
|
+
constructor({ api, route }) {
|
|
4113
|
+
this.api = api;
|
|
4114
|
+
this.route = route;
|
|
4115
|
+
}
|
|
4116
|
+
async createOrUpdate(body) {
|
|
4117
|
+
const response = await this.api.post(`${this.route}`, body);
|
|
4118
|
+
return response.data;
|
|
4119
|
+
}
|
|
4120
|
+
async find() {
|
|
4121
|
+
const response = await this.api.get(`${this.route}`);
|
|
4122
|
+
return response.data;
|
|
4123
|
+
}
|
|
4124
|
+
};
|
|
4125
|
+
|
|
4231
4126
|
// src/main.ts
|
|
4232
4127
|
var API = class {
|
|
4233
4128
|
constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
|
|
4234
4129
|
this.processEnvironment = processEnvironment || "localhost";
|
|
4235
|
-
|
|
4130
|
+
this.defaultHeaders = new AxiosHeaders();
|
|
4236
4131
|
if (apikey) {
|
|
4237
|
-
defaultHeaders.set("apikey", apikey);
|
|
4132
|
+
this.defaultHeaders.set("apikey", apikey);
|
|
4238
4133
|
}
|
|
4239
4134
|
if (tokenBearer) {
|
|
4240
|
-
defaultHeaders.setAuthorization(tokenBearer);
|
|
4135
|
+
this.defaultHeaders.setAuthorization(tokenBearer);
|
|
4241
4136
|
}
|
|
4242
4137
|
this.client = axios.create({
|
|
4243
4138
|
baseURL: gatewayUrl,
|
|
4244
|
-
headers: defaultHeaders
|
|
4139
|
+
headers: this.defaultHeaders
|
|
4245
4140
|
});
|
|
4246
4141
|
const getServicePath = (service) => {
|
|
4247
4142
|
const baseUrl = services[service];
|
|
@@ -4255,12 +4150,12 @@ var API = class {
|
|
|
4255
4150
|
documents: getServicePath("documents"),
|
|
4256
4151
|
view: getServicePath("view"),
|
|
4257
4152
|
print: getServicePath("print"),
|
|
4258
|
-
tickets: getServicePath("tickets")
|
|
4153
|
+
tickets: getServicePath("tickets"),
|
|
4154
|
+
llm: getServicePath("llm")
|
|
4259
4155
|
};
|
|
4260
4156
|
const getModuleParams = (service, module) => ({
|
|
4261
4157
|
api: this.client,
|
|
4262
|
-
route: `${this.services[service]}${module}
|
|
4263
|
-
publicRoute: `${this.services[service]}${module}/`
|
|
4158
|
+
route: `${this.services[service]}${module}/`
|
|
4264
4159
|
});
|
|
4265
4160
|
this.BankData = new Repository(getModuleParams("users", "bank_data"));
|
|
4266
4161
|
this.Client = new Repository2(getModuleParams("users", "client"));
|
|
@@ -4295,139 +4190,139 @@ var API = class {
|
|
|
4295
4190
|
this.Favorites = new Repository19(getModuleParams("users", "favorite"));
|
|
4296
4191
|
this.File = new Repository20(getModuleParams("stock", "file"));
|
|
4297
4192
|
this.GoogleSheets = new Repository21(getModuleParams("integration", "google"));
|
|
4298
|
-
this.
|
|
4299
|
-
this.
|
|
4300
|
-
this.
|
|
4301
|
-
this.
|
|
4302
|
-
this.
|
|
4303
|
-
this.
|
|
4304
|
-
this.ObservationType = new Repository28(
|
|
4193
|
+
this.Language = new Repository22(getModuleParams("users", "language"));
|
|
4194
|
+
this.Location = new Repository23(getModuleParams("stock", "location"));
|
|
4195
|
+
this.Logout = new Repository24(getModuleParams("users", "logout"));
|
|
4196
|
+
this.Multimedia = new Repository25(getModuleParams("documents", "multimedia"));
|
|
4197
|
+
this.Observation = new Repository26(getModuleParams("integration", "observation"));
|
|
4198
|
+
this.ObservationType = new Repository27(
|
|
4305
4199
|
getModuleParams("integration", "observation_type")
|
|
4306
4200
|
);
|
|
4307
|
-
this.Password = new
|
|
4308
|
-
this.
|
|
4309
|
-
this.
|
|
4310
|
-
this.
|
|
4311
|
-
this.
|
|
4312
|
-
this.
|
|
4313
|
-
this.
|
|
4314
|
-
this.PurchaseConditions = new Repository36(
|
|
4201
|
+
this.Password = new Repository28(getModuleParams("users", "password"));
|
|
4202
|
+
this.ProductImage = new Repository29(getModuleParams("stock", "product_image"));
|
|
4203
|
+
this.Promotion = new Repository30(getModuleParams("stock", "promotion"));
|
|
4204
|
+
this.PromotionAssoc = new Repository31(getModuleParams("stock", "promotion_assoc"));
|
|
4205
|
+
this.Providers = new Repository32(getModuleParams("users", "provider"));
|
|
4206
|
+
this.ProviderType = new Repository33(getModuleParams("users", "provider_type"));
|
|
4207
|
+
this.PurchaseConditions = new Repository34(
|
|
4315
4208
|
getModuleParams("users", "purchase_condition")
|
|
4316
4209
|
);
|
|
4317
|
-
this.ReasonForExemption = new
|
|
4210
|
+
this.ReasonForExemption = new Repository35(
|
|
4318
4211
|
getModuleParams("users", "reason_for_exemption")
|
|
4319
4212
|
);
|
|
4320
|
-
this.RefreshToken = new
|
|
4321
|
-
this.SegmentsArea = new
|
|
4322
|
-
this.Sessions = new
|
|
4323
|
-
this.Shippings = new
|
|
4324
|
-
this.StoreOperator = new
|
|
4325
|
-
this.Swift = new
|
|
4326
|
-
this.TypeOfLocation = new
|
|
4327
|
-
this.UnitOfMeasure = new
|
|
4328
|
-
this.
|
|
4329
|
-
this.
|
|
4330
|
-
this.
|
|
4331
|
-
this.
|
|
4332
|
-
this.
|
|
4333
|
-
this.
|
|
4334
|
-
this.
|
|
4335
|
-
this.
|
|
4336
|
-
this.
|
|
4337
|
-
this.
|
|
4338
|
-
this.ExternalDocumentType = new Repository56(
|
|
4213
|
+
this.RefreshToken = new Repository36(getModuleParams("users", "refresh-token"));
|
|
4214
|
+
this.SegmentsArea = new Repository37(getModuleParams("users", "segments_area"));
|
|
4215
|
+
this.Sessions = new Repository38(getModuleParams("users", "sessions"));
|
|
4216
|
+
this.Shippings = new Repository39(getModuleParams("users", "shipping"));
|
|
4217
|
+
this.StoreOperator = new Repository40(getModuleParams("users", "store_operator"));
|
|
4218
|
+
this.Swift = new Repository41(getModuleParams("users", "swift"));
|
|
4219
|
+
this.TypeOfLocation = new Repository42(getModuleParams("stock", "type_of_location"));
|
|
4220
|
+
this.UnitOfMeasure = new Repository43(getModuleParams("stock", "unit_of_measure"));
|
|
4221
|
+
this.UserPositions = new Repository44(getModuleParams("users", "user_position"));
|
|
4222
|
+
this.Users = new Repository45(getModuleParams("users", "users"));
|
|
4223
|
+
this.VatTax = new Repository46(getModuleParams("stock", "vat_tax"));
|
|
4224
|
+
this.VatTaxZone = new Repository47(getModuleParams("stock", "vat_tax_zone"));
|
|
4225
|
+
this.Workflow = new Repository48(getModuleParams("stock", "workflow"));
|
|
4226
|
+
this.DeliveryMethods = new Repository49(getModuleParams("users", "delivery_methods"));
|
|
4227
|
+
this.MaturityDates = new Repository50(getModuleParams("users", "maturity_dates"));
|
|
4228
|
+
this.PaymentMethods = new Repository51(getModuleParams("users", "payment_methods"));
|
|
4229
|
+
this.Vehicles = new Repository52(getModuleParams("users", "vehicles"));
|
|
4230
|
+
this.ExternalDocumentType = new Repository53(
|
|
4339
4231
|
getModuleParams("stock", "external_document_type")
|
|
4340
4232
|
);
|
|
4341
|
-
this.DocumentSet = new
|
|
4342
|
-
this.Payment = new
|
|
4343
|
-
this.ExternalDocumentHeader = new
|
|
4233
|
+
this.DocumentSet = new Repository54(getModuleParams("stock", "document_set"));
|
|
4234
|
+
this.Payment = new Repository55(getModuleParams("stock", "payment"));
|
|
4235
|
+
this.ExternalDocumentHeader = new Repository56(
|
|
4344
4236
|
getModuleParams("stock", "external_document_header")
|
|
4345
4237
|
);
|
|
4346
|
-
this.VatValidation = new
|
|
4347
|
-
this.StockMovement = new
|
|
4348
|
-
this.ZipCode = new
|
|
4349
|
-
this.Tenant = new
|
|
4350
|
-
this.PreSale = new
|
|
4351
|
-
this.PreSaleProduct = new
|
|
4352
|
-
this.OrderManagement = new
|
|
4353
|
-
this.Npc = new
|
|
4354
|
-
this.Printer = new
|
|
4355
|
-
this.SchedulePrintJob = new
|
|
4238
|
+
this.VatValidation = new Repository57(getModuleParams("stock", "vat_validation"));
|
|
4239
|
+
this.StockMovement = new Repository58(getModuleParams("stock", "stock_movement"));
|
|
4240
|
+
this.ZipCode = new Repository59(getModuleParams("users", "zip_code"));
|
|
4241
|
+
this.Tenant = new Repository60(getModuleParams("users", "tenant"));
|
|
4242
|
+
this.PreSale = new Repository61(getModuleParams("stock", "pre_sale"));
|
|
4243
|
+
this.PreSaleProduct = new Repository62(getModuleParams("stock", "pre_sale_product"));
|
|
4244
|
+
this.OrderManagement = new Repository63(getModuleParams("stock", "order_management"));
|
|
4245
|
+
this.Npc = new Repository64(getModuleParams("print", "npc"));
|
|
4246
|
+
this.Printer = new Repository65(getModuleParams("print", "printer"));
|
|
4247
|
+
this.SchedulePrintJob = new Repository66(
|
|
4356
4248
|
getModuleParams("print", "schedule_print_job")
|
|
4357
4249
|
);
|
|
4358
|
-
this.QueryList = new
|
|
4359
|
-
this.QueryParameter = new
|
|
4360
|
-
this.ReturnReason = new
|
|
4361
|
-
this.PropostaSheets = new
|
|
4362
|
-
this.Schedule = new
|
|
4363
|
-
this.GoogleFilePermission = new
|
|
4250
|
+
this.QueryList = new Repository67(getModuleParams("stock", "query"));
|
|
4251
|
+
this.QueryParameter = new Repository68(getModuleParams("stock", "query_parameter"));
|
|
4252
|
+
this.ReturnReason = new Repository69(getModuleParams("stock", "return_reason"));
|
|
4253
|
+
this.PropostaSheets = new Repository70(getModuleParams("stock", "proposta_sheets"));
|
|
4254
|
+
this.Schedule = new Repository71(getModuleParams("stock", "schedule"));
|
|
4255
|
+
this.GoogleFilePermission = new Repository72(
|
|
4364
4256
|
getModuleParams("integration", "google_file_permission")
|
|
4365
4257
|
);
|
|
4366
|
-
this.Settings = new
|
|
4367
|
-
this.Tickets = new
|
|
4368
|
-
this.Channel = new
|
|
4369
|
-
this.TicketsLanguage = new
|
|
4370
|
-
this.Clt = new
|
|
4371
|
-
this.StartDocumentHeaderLastUpdate = new
|
|
4258
|
+
this.Settings = new Repository73(getModuleParams("integration", "settings"));
|
|
4259
|
+
this.Tickets = new Repository74(getModuleParams("tickets", "tickets"));
|
|
4260
|
+
this.Channel = new Repository75(getModuleParams("tickets", "channel"));
|
|
4261
|
+
this.TicketsLanguage = new Repository76(getModuleParams("tickets", "tickets_language"));
|
|
4262
|
+
this.Clt = new Repository77(getModuleParams("tickets", "clt"));
|
|
4263
|
+
this.StartDocumentHeaderLastUpdate = new Repository78(
|
|
4372
4264
|
getModuleParams("stock", "start_document_header_last_update")
|
|
4373
4265
|
);
|
|
4374
|
-
this.Persona = new
|
|
4375
|
-
this.ProjectInfo = new
|
|
4376
|
-
this.Order = new
|
|
4377
|
-
this.Purchase = new
|
|
4378
|
-
this.MaterialEntrance = new
|
|
4266
|
+
this.Persona = new Repository79(getModuleParams("users", "persona"));
|
|
4267
|
+
this.ProjectInfo = new Repository80(getModuleParams("integration", "project_info"));
|
|
4268
|
+
this.Order = new Repository81(getModuleParams("stock", "order"));
|
|
4269
|
+
this.Purchase = new Repository82(getModuleParams("stock", "purchase"));
|
|
4270
|
+
this.MaterialEntrance = new Repository83(
|
|
4379
4271
|
getModuleParams("stock", "material_entrance")
|
|
4380
4272
|
);
|
|
4381
|
-
this.Transformado = new
|
|
4382
|
-
this.UpfrontReturn = new
|
|
4383
|
-
this.SavedEmPicking = new
|
|
4384
|
-
this.EmailTemplate = new
|
|
4385
|
-
this.EmailTemplateAttachment = new
|
|
4273
|
+
this.Transformado = new Repository84(getModuleParams("stock", "transformado"));
|
|
4274
|
+
this.UpfrontReturn = new Repository85(getModuleParams("stock", "upfront_return"));
|
|
4275
|
+
this.SavedEmPicking = new Repository86(getModuleParams("stock", "saved_em_picking"));
|
|
4276
|
+
this.EmailTemplate = new Repository87(getModuleParams("integration", "email_template"));
|
|
4277
|
+
this.EmailTemplateAttachment = new Repository88(
|
|
4386
4278
|
getModuleParams("integration", "email_template_attachment")
|
|
4387
4279
|
);
|
|
4388
|
-
this.Prison = new
|
|
4389
|
-
this.Quebra = new
|
|
4390
|
-
this.Inventario = new
|
|
4391
|
-
this.ReturnToProvider = new
|
|
4280
|
+
this.Prison = new Repository89(getModuleParams("stock", "prison"));
|
|
4281
|
+
this.Quebra = new Repository90(getModuleParams("stock", "quebra"));
|
|
4282
|
+
this.Inventario = new Repository91(getModuleParams("stock", "inventario"));
|
|
4283
|
+
this.ReturnToProvider = new Repository92(
|
|
4392
4284
|
getModuleParams("stock", "return_to_provider")
|
|
4393
4285
|
);
|
|
4394
|
-
this.EmailVerification = new
|
|
4286
|
+
this.EmailVerification = new Repository93(
|
|
4395
4287
|
getModuleParams("integration", "email_verification")
|
|
4396
4288
|
);
|
|
4397
|
-
this.EmailLog = new
|
|
4398
|
-
this.DocumentLineNote = new
|
|
4289
|
+
this.EmailLog = new Repository94(getModuleParams("integration", "email_log"));
|
|
4290
|
+
this.DocumentLineNote = new Repository95(
|
|
4399
4291
|
getModuleParams("stock", "document_line_note")
|
|
4400
4292
|
);
|
|
4401
|
-
this.SavedProviderProposal = new
|
|
4293
|
+
this.SavedProviderProposal = new Repository96(
|
|
4402
4294
|
getModuleParams("stock", "saved_provider_proposal")
|
|
4403
4295
|
);
|
|
4404
|
-
this.ProductGoogleSheets = new
|
|
4296
|
+
this.ProductGoogleSheets = new Repository97(
|
|
4405
4297
|
getModuleParams("stock", "product_google")
|
|
4406
4298
|
);
|
|
4407
|
-
this.Task = new
|
|
4408
|
-
this.TaskMessage = new
|
|
4409
|
-
this.RecurrentTasks = new
|
|
4410
|
-
this.TaskRead = new
|
|
4411
|
-
this.Theme = new
|
|
4412
|
-
this.Dashboard = new
|
|
4413
|
-
this.ChatRapidMessage = new
|
|
4299
|
+
this.Task = new Repository98(getModuleParams("stock", "task"));
|
|
4300
|
+
this.TaskMessage = new Repository99(getModuleParams("stock", "task_message"));
|
|
4301
|
+
this.RecurrentTasks = new Repository100(getModuleParams("stock", "recurrent_tasks"));
|
|
4302
|
+
this.TaskRead = new Repository101(getModuleParams("stock", "task_read"));
|
|
4303
|
+
this.Theme = new Repository102(getModuleParams("users", "theme"));
|
|
4304
|
+
this.Dashboard = new Repository103(getModuleParams("stock", "dashboard"));
|
|
4305
|
+
this.ChatRapidMessage = new Repository104(
|
|
4414
4306
|
getModuleParams("stock", "chat_rapid_message")
|
|
4415
4307
|
);
|
|
4416
|
-
this.SideMenu = new
|
|
4417
|
-
this.ErrorLog = new
|
|
4418
|
-
this.AdminPanel = new
|
|
4419
|
-
this.DocumentLineRm = new
|
|
4420
|
-
this.DocumentLineMt = new
|
|
4421
|
-
this.ChatSubscriber = new
|
|
4422
|
-
this.Tag = new
|
|
4423
|
-
this.Gmails = new
|
|
4424
|
-
this.NPF = new
|
|
4425
|
-
this.NRCL = new
|
|
4426
|
-
this.PaymentBatch = new
|
|
4427
|
-
this.CurrentAccount = new
|
|
4428
|
-
this.Portal = new
|
|
4429
|
-
this.GoogleSheetPool = new
|
|
4430
|
-
this.Saft = new
|
|
4308
|
+
this.SideMenu = new Repository105(getModuleParams("stock", "side_menu"));
|
|
4309
|
+
this.ErrorLog = new Repository106(getModuleParams("view", "error_log"));
|
|
4310
|
+
this.AdminPanel = new Repository107(getModuleParams("view", "admin_panel"));
|
|
4311
|
+
this.DocumentLineRm = new Repository108(getModuleParams("stock", "document_line_rm"));
|
|
4312
|
+
this.DocumentLineMt = new Repository109(getModuleParams("stock", "document_line_mt"));
|
|
4313
|
+
this.ChatSubscriber = new Repository110(getModuleParams("users", "chat_subscriber"));
|
|
4314
|
+
this.Tag = new Repository111(getModuleParams("stock", "tag"));
|
|
4315
|
+
this.Gmails = new Repository112(getModuleParams("stock", "gmail"));
|
|
4316
|
+
this.NPF = new Repository113(getModuleParams("stock", "npf"));
|
|
4317
|
+
this.NRCL = new Repository114(getModuleParams("stock", "nrcl"));
|
|
4318
|
+
this.PaymentBatch = new Repository116(getModuleParams("stock", "payment_batch"));
|
|
4319
|
+
this.CurrentAccount = new Repository115(getModuleParams("stock", "current_account"));
|
|
4320
|
+
this.Portal = new Repository117(getModuleParams("stock", "portal"));
|
|
4321
|
+
this.GoogleSheetPool = new Repository118(getModuleParams("stock", "google_sheet_pool"));
|
|
4322
|
+
this.Saft = new Repository119(getModuleParams("stock", "saft"));
|
|
4323
|
+
this.AccountCode = new Repository120(getModuleParams("stock", "account_code"));
|
|
4324
|
+
this.LLM = new Repository121(getModuleParams("llm", "llm"));
|
|
4325
|
+
this.PatchNotes = new Repository122(getModuleParams("integration", "patch_notes"));
|
|
4431
4326
|
}
|
|
4432
4327
|
};
|
|
4433
4328
|
|