@nomalism-com/api 0.38.1 → 0.39.0

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.cjs ADDED
@@ -0,0 +1,4290 @@
1
+ import axios, { AxiosHeaders } from 'axios';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __export = (target, all) => {
5
+ for (var name in all)
6
+ __defProp(target, name, { get: all[name], enumerable: true });
7
+ };
8
+
9
+ // src/main.ts
10
+ var main_exports = {};
11
+ __export(main_exports, {
12
+ API: () => API,
13
+ AdminPanelClass: () => adminPanel_exports,
14
+ BankData: () => bankData_exports,
15
+ Channel: () => channel_exports,
16
+ ChatRapidMessageClass: () => chatRapidMessage_exports,
17
+ ChatSubscriberClass: () => chatSubscriber_exports,
18
+ Client: () => clients_exports,
19
+ ClientType: () => clientType_exports,
20
+ Clt: () => clt_exports,
21
+ Commissioner: () => commissioner_exports,
22
+ Country: () => country_exports,
23
+ DashboardClass: () => dashboard_exports,
24
+ DeliveryMethods: () => deliveryMethods_exports,
25
+ DocumentHeader: () => documentHeader_exports,
26
+ DocumentHeaderHistory: () => documentHeaderHistory_exports,
27
+ DocumentLine: () => documentLine_exports,
28
+ DocumentLineAssoc: () => documentLineAssoc_exports,
29
+ DocumentLineMtClass: () => documentLineMt_exports,
30
+ DocumentLineNote: () => documentLineNote_exports,
31
+ DocumentLineRmClass: () => documentLineRm_exports,
32
+ DocumentSet: () => documentSet_exports,
33
+ DocumentType: () => documentType_exports,
34
+ EmailLog: () => emailLog_exports,
35
+ EmailTemplate: () => emailTemplate_exports,
36
+ EmailTemplateAttachment: () => emailTemplateAttachment_exports,
37
+ EmailVerification: () => emailVerification_exports,
38
+ ErrorLogClass: () => errorLog_exports,
39
+ ExternalDocumentHeader: () => externalDocumentHeader_exports,
40
+ ExternalDocumentType: () => externalDocumentType_exports,
41
+ Favorites: () => favorites_exports,
42
+ File: () => file_exports,
43
+ GoogleFilePermission: () => googleFilePermission_exports,
44
+ GoogleSheets: () => googleSheets_exports,
45
+ GroupPermissions: () => groupPermission_exports,
46
+ Inventario: () => inventario_exports,
47
+ Language: () => language_exports,
48
+ Location: () => location_exports,
49
+ Logout: () => logout_exports,
50
+ MaterialEntrance: () => materialEntrance_exports,
51
+ MaturityDates: () => maturityDates_exports,
52
+ Multimedia: () => multimedia_exports,
53
+ Npc: () => npc_exports,
54
+ Observation: () => observation_exports,
55
+ ObservationType: () => observationType_exports,
56
+ Order: () => order_exports,
57
+ OrderManagement: () => orderManagement_exports,
58
+ Password: () => password_exports,
59
+ Payment: () => payment_exports,
60
+ PaymentMethods: () => paymentMethods_exports,
61
+ Permissions: () => permission_exports,
62
+ Persona: () => persona_exports,
63
+ PreSale: () => preSale_exports,
64
+ PreSaleProduct: () => preSaleProduct_exports,
65
+ Printer: () => printer_exports,
66
+ Prison: () => prison_exports,
67
+ ProductGoogleSheets: () => productGoogleSheets_exports,
68
+ ProductImage: () => productImage_exports,
69
+ ProjectInfo: () => projectInfo_exports,
70
+ Promotion: () => promotion_exports,
71
+ PromotionAssoc: () => promotionAssoc_exports,
72
+ PropostaSheets: () => propostaSheets_exports,
73
+ ProviderType: () => providerType_exports,
74
+ Providers: () => provider_exports,
75
+ Purchase: () => purchase_exports,
76
+ PurchaseConditions: () => purchaseCondition_exports,
77
+ Quebra: () => quebra_exports,
78
+ QueryList: () => queryList_exports,
79
+ QueryParameter: () => queryParameter_exports,
80
+ ReasonForExemption: () => reasonForExemption_exports,
81
+ RecurrentTasks: () => recurrentTasks_exports,
82
+ RefreshToken: () => refreshToken_exports,
83
+ ReturnReason: () => returnReason_exports,
84
+ ReturnToProvider: () => returnToProvider_exports,
85
+ SavedEmPicking: () => savedEmPicking_exports,
86
+ SavedProviderProposal: () => savedProviderProposal_exports,
87
+ Schedule: () => schedule_exports,
88
+ SchedulePrintJob: () => schedulePrintJob_exports,
89
+ SegmentsArea: () => segmentsArea_exports,
90
+ Sessions: () => sessions_exports,
91
+ Settings: () => settings_exports,
92
+ Shippings: () => shippings_exports,
93
+ SideMenuClass: () => sideMenu_exports,
94
+ StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
95
+ StockMovement: () => stockMovement_exports,
96
+ StoreOperator: () => storeOperator_exports,
97
+ Swift: () => swift_exports,
98
+ TagClass: () => tag_exports,
99
+ Task: () => task_exports,
100
+ TaskMessage: () => taskMessage_exports,
101
+ TaskReadClass: () => taskRead_exports,
102
+ Tenant: () => tenant_exports,
103
+ ThemeClass: () => theme_exports,
104
+ Tickets: () => tickets_exports,
105
+ TicketsLanguage: () => language_exports2,
106
+ Transformado: () => transformado_exports,
107
+ TypeOfLocation: () => typeOfLocation_exports,
108
+ UnitOfMeasure: () => unitOfMeasure_exports,
109
+ UpfrontReturn: () => upfrontReturn_exports,
110
+ UserPermissions: () => userPermission_exports,
111
+ UserPositions: () => userPositions_exports,
112
+ Users: () => user_exports,
113
+ VatTax: () => vatTax_exports,
114
+ VatTaxZone: () => vatTaxZone_exports,
115
+ VatValidation: () => vatValidation_exports,
116
+ Vehicles: () => vehicles_exports,
117
+ Workflow: () => workflow_exports,
118
+ ZipCode: () => zipCode_exports
119
+ });
120
+
121
+ // src/modules/user/bankData.ts
122
+ var bankData_exports = {};
123
+ __export(bankData_exports, {
124
+ default: () => Repository
125
+ });
126
+ var Repository = class {
127
+ constructor({ api, route, publicRoute }) {
128
+ this.api = api;
129
+ this.route = route;
130
+ this.publicRoute = publicRoute;
131
+ }
132
+ async find(params) {
133
+ const response = await this.api.get(`${this.route}`, { params });
134
+ return response.data;
135
+ }
136
+ async findPaginated(params) {
137
+ const response = await this.api.get(`${this.route}paginated`, { params });
138
+ return response.data;
139
+ }
140
+ async findByOwnerId(params) {
141
+ const response = await this.api.get(`${this.route}by_owner`, {
142
+ params
143
+ });
144
+ return response.data;
145
+ }
146
+ async findById(selector) {
147
+ const response = await this.api.get(`${this.route}${selector.id}`);
148
+ return response.data;
149
+ }
150
+ async create(body) {
151
+ const response = await this.api.post(`${this.route}`, body);
152
+ return response.data;
153
+ }
154
+ async update(selector, body) {
155
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
156
+ return response.data;
157
+ }
158
+ async deleteOne(selector) {
159
+ const response = await this.api.delete(`${this.route}${selector.id}`);
160
+ return response.data;
161
+ }
162
+ };
163
+
164
+ // src/modules/user/clients.ts
165
+ var clients_exports = {};
166
+ __export(clients_exports, {
167
+ default: () => Repository2
168
+ });
169
+ var Repository2 = class {
170
+ constructor({ api, route, publicRoute }) {
171
+ this.api = api;
172
+ this.route = route;
173
+ this.publicRoute = publicRoute;
174
+ }
175
+ async findByQuery(data) {
176
+ const response = await this.api.post(`${this.route}query`, data);
177
+ return response.data;
178
+ }
179
+ async find(params) {
180
+ const response = await this.api.get(`${this.route}`, { params });
181
+ return response.data;
182
+ }
183
+ async findPaginated(params) {
184
+ const response = await this.api.get(`${this.route}paginated`, { params });
185
+ return response.data;
186
+ }
187
+ async findMinified(params) {
188
+ const response = await this.api.get(`${this.route}minified`, {
189
+ params
190
+ });
191
+ return response.data;
192
+ }
193
+ async findByOwnerId(params) {
194
+ const response = await this.api.get(`${this.route}by_owner`, {
195
+ params
196
+ });
197
+ return response.data;
198
+ }
199
+ async findById(selector) {
200
+ const response = await this.api.get(`${this.route}${selector.id}`);
201
+ return response.data;
202
+ }
203
+ async create(body) {
204
+ const response = await this.api.post(`${this.route}`, body);
205
+ return response.data;
206
+ }
207
+ async createOrUpdate(body) {
208
+ const response = await this.api.post(`${this.route}create_or_update`, body);
209
+ return response.data;
210
+ }
211
+ async update(selector, body) {
212
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
213
+ return response.data;
214
+ }
215
+ async deleteOne(selector) {
216
+ const response = await this.api.delete(`${this.route}${selector.id}`);
217
+ return response.data;
218
+ }
219
+ };
220
+
221
+ // src/modules/user/clientType.ts
222
+ var clientType_exports = {};
223
+ __export(clientType_exports, {
224
+ default: () => Repository3
225
+ });
226
+ var Repository3 = class {
227
+ constructor({ api, route, publicRoute }) {
228
+ this.api = api;
229
+ this.route = route;
230
+ this.publicRoute = publicRoute;
231
+ }
232
+ async find(params) {
233
+ const response = await this.api.get(`${this.route}`, { params });
234
+ return response.data;
235
+ }
236
+ async findPaginated(params) {
237
+ const response = await this.api.get(`${this.route}paginated`, { params });
238
+ return response.data;
239
+ }
240
+ async findMinified(params) {
241
+ const response = await this.api.get(`${this.route}minified`, {
242
+ params
243
+ });
244
+ return response.data;
245
+ }
246
+ async findById(selector) {
247
+ const response = await this.api.get(`${this.route}${selector.id}`);
248
+ return response.data;
249
+ }
250
+ async create(body) {
251
+ const response = await this.api.post(`${this.route}`, body);
252
+ return response.data;
253
+ }
254
+ async update(selector, body) {
255
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
256
+ return response.data;
257
+ }
258
+ async deleteOne(selector) {
259
+ const response = await this.api.delete(`${this.route}${selector.id}`);
260
+ return response.data;
261
+ }
262
+ };
263
+
264
+ // src/modules/stock/chat.ts
265
+ var Repository4 = class {
266
+ constructor({ api, route, publicRoute }) {
267
+ this.api = api;
268
+ this.route = route;
269
+ this.publicRoute = publicRoute;
270
+ }
271
+ async findActiveByOwnerId(params) {
272
+ const response = await this.api.get(`${this.route}active`, {
273
+ params
274
+ });
275
+ return response.data;
276
+ }
277
+ async create(body) {
278
+ const response = await this.api.post(`${this.route}`, body);
279
+ return response.data;
280
+ }
281
+ async update(selector, body) {
282
+ await this.api.put(`${this.route}${selector.id}`, body);
283
+ }
284
+ async deleteOne(selector) {
285
+ await this.api.delete(`${this.route}${selector.id}`);
286
+ }
287
+ async resendLast({ owner_id }) {
288
+ await this.api.post(`${this.route}resend_last/${owner_id}`);
289
+ }
290
+ async markAllAsRead(selector) {
291
+ await this.api.put(`${this.route}mark_all_as_read/${selector.owner_id}`);
292
+ }
293
+ async markAllAsUnread(selector) {
294
+ await this.api.put(`${this.route}mark_all_as_unread/${selector.owner_id}`);
295
+ }
296
+ };
297
+
298
+ // src/modules/user/commissioner.ts
299
+ var commissioner_exports = {};
300
+ __export(commissioner_exports, {
301
+ default: () => Repository5
302
+ });
303
+ var Repository5 = class {
304
+ constructor({ api, route, publicRoute }) {
305
+ this.api = api;
306
+ this.route = route;
307
+ this.publicRoute = publicRoute;
308
+ }
309
+ async find(params) {
310
+ const response = await this.api.get(`${this.route}`, { params });
311
+ return response.data;
312
+ }
313
+ async findPaginated(params) {
314
+ const response = await this.api.get(`${this.route}paginated`, { params });
315
+ return response.data;
316
+ }
317
+ async findMinified(params) {
318
+ const response = await this.api.get(`${this.route}minified`, {
319
+ params
320
+ });
321
+ return response.data;
322
+ }
323
+ async findByOwnerId(params) {
324
+ const response = await this.api.get(`${this.route}by_owner`, {
325
+ params
326
+ });
327
+ return response.data;
328
+ }
329
+ async findById(selector) {
330
+ const response = await this.api.get(`${this.route}${selector.id}`);
331
+ return response.data;
332
+ }
333
+ async create(body) {
334
+ const response = await this.api.post(`${this.route}`, body);
335
+ return response.data;
336
+ }
337
+ async update(selector, body) {
338
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
339
+ return response.data;
340
+ }
341
+ async deleteOne(selector) {
342
+ const response = await this.api.delete(`${this.route}${selector.id}`);
343
+ return response.data;
344
+ }
345
+ };
346
+
347
+ // src/modules/user/country.ts
348
+ var country_exports = {};
349
+ __export(country_exports, {
350
+ default: () => Repository6
351
+ });
352
+ var Repository6 = class {
353
+ constructor({ api, route, publicRoute }) {
354
+ this.api = api;
355
+ this.route = route;
356
+ this.publicRoute = publicRoute;
357
+ }
358
+ async find(params) {
359
+ const response = await this.api.get(`${this.route}`, { params });
360
+ return response.data;
361
+ }
362
+ async findPaginated(params) {
363
+ const response = await this.api.get(`${this.route}paginated`, { params });
364
+ return response.data;
365
+ }
366
+ async findMinified(params) {
367
+ const response = await this.api.get(`${this.route}minified`, {
368
+ params
369
+ });
370
+ return response.data;
371
+ }
372
+ async findByAlpha2(params) {
373
+ const response = await this.api.get(`${this.route}alpha2`, {
374
+ params
375
+ });
376
+ return response.data;
377
+ }
378
+ async findById(selector) {
379
+ const response = await this.api.get(`${this.route}${selector.id}`);
380
+ return response.data;
381
+ }
382
+ async create(body) {
383
+ const response = await this.api.post(`${this.route}`, body);
384
+ return response.data;
385
+ }
386
+ async update(selector, body) {
387
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
388
+ return response.data;
389
+ }
390
+ async deleteOne(selector) {
391
+ const response = await this.api.delete(`${this.route}${selector.id}`);
392
+ return response.data;
393
+ }
394
+ };
395
+
396
+ // src/modules/supply/documentHeader.ts
397
+ var documentHeader_exports = {};
398
+ __export(documentHeader_exports, {
399
+ default: () => Repository7
400
+ });
401
+ var Repository7 = class {
402
+ constructor({ api, route, publicRoute }) {
403
+ this.api = api;
404
+ this.route = route;
405
+ this.publicRoute = publicRoute;
406
+ }
407
+ async findOne(selector) {
408
+ const response = await this.api.get(`${this.route}${selector.id}`);
409
+ return response.data;
410
+ }
411
+ async findStart(selector) {
412
+ const response = await this.api.get(`${this.route}start/${selector.id}`);
413
+ return response.data;
414
+ }
415
+ async findStartVirtual(selector) {
416
+ const response = await this.api.get(`${this.route}start_virtual/${selector.id}`);
417
+ return response.data;
418
+ }
419
+ async findByBasicSearch(params) {
420
+ const response = await this.api.get(`${this.route}basic_search`, {
421
+ params
422
+ });
423
+ return response.data;
424
+ }
425
+ async findByType(params) {
426
+ const response = await this.api.get(`${this.route}by_type`, { params });
427
+ return response.data;
428
+ }
429
+ async find(params) {
430
+ const response = await this.api.get(`${this.route}`, { params });
431
+ return response.data;
432
+ }
433
+ async findClientUnpaidCredit(params) {
434
+ const response = await this.api.get(`${this.route}unpaid_credit`, {
435
+ params
436
+ });
437
+ return response.data;
438
+ }
439
+ async findClientUnpaidDebit(params) {
440
+ const response = await this.api.get(`${this.route}unpaid_debit`, {
441
+ params
442
+ });
443
+ return response.data;
444
+ }
445
+ async findUnpaidCommissions(params) {
446
+ const response = await this.api.get(`${this.route}unpaid_commissions`, {
447
+ params
448
+ });
449
+ return response.data;
450
+ }
451
+ async create(body) {
452
+ const response = await this.api.post(`${this.route}`, body);
453
+ return response.data;
454
+ }
455
+ async createFromHeader(body) {
456
+ const response = await this.api.post(`${this.route}from_header`, body);
457
+ return response.data;
458
+ }
459
+ async update(selector, body) {
460
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
461
+ return response.data;
462
+ }
463
+ async deleteOne(selector) {
464
+ await this.api.delete(`${this.route}${selector.id}`);
465
+ }
466
+ async getActions(selector) {
467
+ const response = await this.api.get(`${this.route}get_actions/${selector.id}`);
468
+ return response.data;
469
+ }
470
+ async transferClientOwnership(data) {
471
+ await this.api.put(`${this.route}transfer_client_ownership`, data);
472
+ }
473
+ async updateManyWithPersona(data) {
474
+ await this.api.put(`${this.route}update_many_with_persona`, data);
475
+ }
476
+ async sendClientNotification({ id }, data) {
477
+ await this.api.post(`${this.route}${id}/send_client_notification`, data);
478
+ }
479
+ async markUnsentClientNotification({ id }) {
480
+ await this.api.post(`${this.route}${id}/mark_unsent_client_notification`);
481
+ }
482
+ async documentPdf({ id }) {
483
+ const result = await this.api.post(`${this.route}document_pdf/${id}`);
484
+ return result.data;
485
+ }
486
+ getDocumentPdfUrl({ id }, data) {
487
+ const qs = new URLSearchParams();
488
+ if (data?.token) {
489
+ qs.set("token", data.token);
490
+ }
491
+ return `${this.route}document_pdf/${id}?${qs.toString()}`;
492
+ }
493
+ async documentThermalPrint({ id }) {
494
+ const result = await this.api.get(`${this.route}document_thermal_print/${id}`);
495
+ return result.data;
496
+ }
497
+ async documentList({
498
+ id
499
+ }) {
500
+ const result = await this.api.post(`${this.route}document_list/${id}`);
501
+ return result.data;
502
+ }
503
+ async findStartDocumentHeaderSiblings({
504
+ id
505
+ }) {
506
+ const result = await this.api.get(`${this.route}siblings/${id}`);
507
+ return result.data;
508
+ }
509
+ async findRmOpenDocuments() {
510
+ const response = await this.api.get(`${this.route}rm_open_documents`);
511
+ return response.data;
512
+ }
513
+ async regularizarMultiplosDocumentos(data) {
514
+ await this.api.post(`${this.route}multiple_documents`, {
515
+ data
516
+ });
517
+ }
518
+ };
519
+
520
+ // src/modules/supply/documentHeaderHistory.ts
521
+ var documentHeaderHistory_exports = {};
522
+ __export(documentHeaderHistory_exports, {
523
+ default: () => Repository8
524
+ });
525
+ var Repository8 = class {
526
+ constructor({ api, route, publicRoute }) {
527
+ this.api = api;
528
+ this.route = route;
529
+ this.publicRoute = publicRoute;
530
+ }
531
+ async findByOwnerId(selector) {
532
+ const response = await this.api.get(`${this.route}by_owner/${selector.owner_id}`);
533
+ return response.data;
534
+ }
535
+ };
536
+
537
+ // src/modules/document/billOfLading.ts
538
+ var Repository9 = class {
539
+ constructor({ api, route, publicRoute }) {
540
+ this.api = api;
541
+ this.route = route;
542
+ this.publicRoute = publicRoute;
543
+ }
544
+ async create(body) {
545
+ const response = await this.api.post(`${this.route}bill_of_lading`, body);
546
+ return response.data;
547
+ }
548
+ };
549
+
550
+ // src/modules/document/productionOrder.ts
551
+ var Repository10 = class {
552
+ constructor({ api, route, publicRoute }) {
553
+ this.api = api;
554
+ this.route = route;
555
+ this.publicRoute = publicRoute;
556
+ }
557
+ async createProductionOrder(body) {
558
+ await this.api.post(`${this.route}production_order`, body);
559
+ }
560
+ };
561
+
562
+ // src/modules/document/proforma.ts
563
+ var Repository11 = class {
564
+ constructor({ api, route, publicRoute }) {
565
+ this.api = api;
566
+ this.route = route;
567
+ this.publicRoute = publicRoute;
568
+ }
569
+ async create(data) {
570
+ const result = await this.api.post(`${this.route}pro_forma`, data);
571
+ return result.data;
572
+ }
573
+ };
574
+
575
+ // src/modules/document/propostaFornecedor.ts
576
+ var Repository12 = class {
577
+ constructor({ api, route, publicRoute }) {
578
+ this.api = api;
579
+ this.route = route;
580
+ this.publicRoute = publicRoute;
581
+ }
582
+ async createProviderProposal(data) {
583
+ const result = await this.api.post(`${this.route}provider_proposal`, data);
584
+ return result.data;
585
+ }
586
+ };
587
+
588
+ // src/modules/document/providerCreditNoteFromReturn.ts
589
+ var Repository13 = class {
590
+ constructor({ api, route, publicRoute }) {
591
+ this.api = api;
592
+ this.route = route;
593
+ this.publicRoute = publicRoute;
594
+ }
595
+ async findProviderReturn(params) {
596
+ const response = await this.api.get(`${this.route}provider_return`, {
597
+ params
598
+ });
599
+ return response.data;
600
+ }
601
+ async createProviderCreditNoteFromReturn(data) {
602
+ await this.api.post(`${this.route}provider_credit_note_from_return`, data);
603
+ }
604
+ };
605
+
606
+ // src/modules/document/providerFinancialCreditNote.ts
607
+ var Repository14 = class {
608
+ constructor({ api, route, publicRoute }) {
609
+ this.api = api;
610
+ this.route = route;
611
+ this.publicRoute = publicRoute;
612
+ }
613
+ async findProviderInvoice(params) {
614
+ const response = await this.api.get(`${this.route}provider_invoice`, {
615
+ params
616
+ });
617
+ return response.data;
618
+ }
619
+ async createProviderFinancialCreditNote(data) {
620
+ await this.api.post(`${this.route}provider_financial_credit_note`, data);
621
+ }
622
+ };
623
+
624
+ // src/modules/document/providerServiceInvoice.ts
625
+ var Repository15 = class {
626
+ constructor({ api, route, publicRoute }) {
627
+ this.api = api;
628
+ this.route = route;
629
+ this.publicRoute = publicRoute;
630
+ }
631
+ async createProviderServiceInvoice(data) {
632
+ await this.api.post(`${this.route}provider_service_invoice`, data);
633
+ }
634
+ };
635
+
636
+ // src/modules/supply/documentLine.ts
637
+ var documentLine_exports = {};
638
+ __export(documentLine_exports, {
639
+ default: () => Repository16
640
+ });
641
+ var Repository16 = class {
642
+ constructor({ api, route, publicRoute }) {
643
+ this.api = api;
644
+ this.route = route;
645
+ this.publicRoute = publicRoute;
646
+ }
647
+ async create(body) {
648
+ const response = await this.api.post(`${this.route}`, body);
649
+ return response.data;
650
+ }
651
+ async update(selector, body) {
652
+ await this.api.put(`${this.route}${selector.id}`, body);
653
+ }
654
+ async updateIndexes(document_line_ids) {
655
+ await this.api.put(`${this.route}update_indexes`, document_line_ids);
656
+ }
657
+ async updateData(data) {
658
+ const response = await this.api.post(`${this.route}update_data`, data);
659
+ return response.data;
660
+ }
661
+ async updateMany(data) {
662
+ const response = await this.api.post(`${this.route}update_many`, data);
663
+ return response.data;
664
+ }
665
+ async updateManyByDocumentHeader(params, data) {
666
+ await this.api.post(`${this.route}update_many_by_document_header_id`, data, { params });
667
+ }
668
+ async deleteMany(document_line_ids) {
669
+ await this.api.delete(`${this.route}`, { data: document_line_ids });
670
+ }
671
+ printLabelToPdfUrl({ document_line_ids }, token) {
672
+ const qs = new URLSearchParams();
673
+ qs.set("token", token);
674
+ return `${this.route}print_label_pdf/${document_line_ids}?${qs.toString()}`;
675
+ }
676
+ printGroupLabelToPdfUrl({ document_line_ids }, token) {
677
+ const qs = new URLSearchParams();
678
+ qs.set("token", token);
679
+ return `${this.route}print_group_label_pdf/${document_line_ids}?${qs.toString()}`;
680
+ }
681
+ };
682
+
683
+ // src/modules/supply/documentLineAssoc.ts
684
+ var documentLineAssoc_exports = {};
685
+ __export(documentLineAssoc_exports, {
686
+ default: () => Repository17
687
+ });
688
+ var Repository17 = class {
689
+ constructor({ api, route, publicRoute }) {
690
+ this.api = api;
691
+ this.route = route;
692
+ this.publicRoute = publicRoute;
693
+ }
694
+ async findByOwnerId(params) {
695
+ const response = await this.api.get(`${this.route}by_owner`, { params });
696
+ return response.data;
697
+ }
698
+ async findVirtualsByOwnerId(params) {
699
+ const response = await this.api.get(`${this.route}virtuals_by_owner`, {
700
+ params
701
+ });
702
+ return response.data;
703
+ }
704
+ async findHistoryByLineId(params) {
705
+ const response = await this.api.get(`${this.route}history_by_line_id`, {
706
+ params
707
+ });
708
+ return response.data;
709
+ }
710
+ async create(body) {
711
+ const response = await this.api.post(`${this.route}`, body);
712
+ return response.data;
713
+ }
714
+ async update(selector, body) {
715
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
716
+ return response.data;
717
+ }
718
+ };
719
+
720
+ // src/modules/supply/documentType.ts
721
+ var documentType_exports = {};
722
+ __export(documentType_exports, {
723
+ default: () => Repository18
724
+ });
725
+ var Repository18 = class {
726
+ constructor({ api, route, publicRoute }) {
727
+ this.api = api;
728
+ this.route = route;
729
+ this.publicRoute = publicRoute;
730
+ }
731
+ async find(params) {
732
+ const response = await this.api.get(`${this.route}`, { params });
733
+ return response.data;
734
+ }
735
+ async findMinified(params) {
736
+ const response = await this.api.get(`${this.route}minified`, { params });
737
+ return response.data;
738
+ }
739
+ async findDetailed(params) {
740
+ const response = await this.api.get(`${this.route}detailed`, { params });
741
+ return response.data;
742
+ }
743
+ async create(body) {
744
+ const response = await this.api.post(`${this.route}`, body);
745
+ return response.data;
746
+ }
747
+ async update(selector, body) {
748
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
749
+ return response.data;
750
+ }
751
+ async deleteOne(selector) {
752
+ const response = await this.api.delete(`${this.route}${selector.id}`);
753
+ return response.data;
754
+ }
755
+ };
756
+
757
+ // src/modules/user/favorites.ts
758
+ var favorites_exports = {};
759
+ __export(favorites_exports, {
760
+ default: () => Repository19
761
+ });
762
+ var Repository19 = class {
763
+ constructor({ api, route, publicRoute }) {
764
+ this.api = api;
765
+ this.route = route;
766
+ this.publicRoute = publicRoute;
767
+ }
768
+ async findByUrl(params) {
769
+ const response = await this.api.get(`${this.route}`, { params });
770
+ return response.data;
771
+ }
772
+ async list() {
773
+ const response = await this.api.get(`${this.route}list`);
774
+ return response.data;
775
+ }
776
+ async create(body) {
777
+ const response = await this.api.post(`${this.route}`, body);
778
+ return response.data;
779
+ }
780
+ async deleteOne(params) {
781
+ const response = await this.api.delete(`${this.route}`, { params });
782
+ return response.data;
783
+ }
784
+ };
785
+
786
+ // src/modules/stock/file.ts
787
+ var file_exports = {};
788
+ __export(file_exports, {
789
+ default: () => Repository20
790
+ });
791
+ var Repository20 = class {
792
+ constructor({ api, route, publicRoute }) {
793
+ this.api = api;
794
+ this.route = route;
795
+ this.publicRoute = publicRoute;
796
+ }
797
+ async findByOwnerId(params) {
798
+ const response = await this.api.get(`${this.route}by_owner`, {
799
+ params
800
+ });
801
+ return response.data;
802
+ }
803
+ async create(body) {
804
+ const response = await this.api.post(`${this.publicRoute}`, body);
805
+ return response.data;
806
+ }
807
+ async update({ id }, body) {
808
+ await this.api.put(`${this.publicRoute}${id}`, body);
809
+ }
810
+ async deleteOne(selector) {
811
+ const response = await this.api.delete(`${this.route}${selector.id}`);
812
+ return response.data;
813
+ }
814
+ };
815
+
816
+ // src/modules/integration/googleSheets.ts
817
+ var googleSheets_exports = {};
818
+ __export(googleSheets_exports, {
819
+ default: () => Repository21
820
+ });
821
+ var Repository21 = class {
822
+ constructor({ api, route, publicRoute }) {
823
+ this.api = api;
824
+ this.route = route;
825
+ this.publicRoute = publicRoute;
826
+ }
827
+ async clone(selector, params) {
828
+ const response = await this.api.get(`${this.route}clone/${selector.id}`, {
829
+ params
830
+ });
831
+ return response.data;
832
+ }
833
+ async export(params) {
834
+ const response = await this.api.get(`${this.route}export`, { params });
835
+ return response.data;
836
+ }
837
+ async getData(selector) {
838
+ const response = await this.api.get(`${this.route}${selector.id}`);
839
+ return response.data;
840
+ }
841
+ async update(selector, data) {
842
+ await this.api.put(`${this.route}${selector.id}`, data);
843
+ }
844
+ };
845
+
846
+ // src/modules/user/groupPermission.ts
847
+ var groupPermission_exports = {};
848
+ __export(groupPermission_exports, {
849
+ default: () => Repository22
850
+ });
851
+ var Repository22 = class {
852
+ constructor({ api, route, publicRoute }) {
853
+ this.api = api;
854
+ this.route = route;
855
+ this.publicRoute = publicRoute;
856
+ }
857
+ async find() {
858
+ const response = await this.api.get(`${this.route}`);
859
+ return response.data;
860
+ }
861
+ async findMinified(params) {
862
+ const response = await this.api.get(`${this.route}minified`, {
863
+ params
864
+ });
865
+ return response.data;
866
+ }
867
+ async create(body) {
868
+ const response = await this.api.post(`${this.route}`, body);
869
+ return response.data;
870
+ }
871
+ async deleteOne(selector) {
872
+ const response = await this.api.delete(`${this.route}${selector.id}`);
873
+ return response.data;
874
+ }
875
+ };
876
+
877
+ // src/modules/user/language.ts
878
+ var language_exports = {};
879
+ __export(language_exports, {
880
+ default: () => Repository23
881
+ });
882
+ var Repository23 = class {
883
+ constructor({ api, route, publicRoute }) {
884
+ this.api = api;
885
+ this.route = route;
886
+ this.publicRoute = publicRoute;
887
+ }
888
+ async find(params) {
889
+ const response = await this.api.get(`${this.route}`, { params });
890
+ return response.data;
891
+ }
892
+ async findPaginated(params) {
893
+ const response = await this.api.get(`${this.route}paginated`, { params });
894
+ return response.data;
895
+ }
896
+ async findMinified(params) {
897
+ const response = await this.api.get(`${this.route}minified`, {
898
+ params
899
+ });
900
+ return response.data;
901
+ }
902
+ async findById(selector) {
903
+ const response = await this.api.get(`${this.route}${selector.id}`);
904
+ return response.data;
905
+ }
906
+ async create(body) {
907
+ const response = await this.api.post(`${this.route}`, body);
908
+ return response.data;
909
+ }
910
+ async update(selector, body) {
911
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
912
+ return response.data;
913
+ }
914
+ async deleteOne(selector) {
915
+ const response = await this.api.delete(`${this.route}${selector.id}`);
916
+ return response.data;
917
+ }
918
+ };
919
+
920
+ // src/modules/stock/location.ts
921
+ var location_exports = {};
922
+ __export(location_exports, {
923
+ default: () => Repository24
924
+ });
925
+ var Repository24 = class {
926
+ constructor({ api, route, publicRoute }) {
927
+ this.api = api;
928
+ this.route = route;
929
+ this.publicRoute = publicRoute;
930
+ }
931
+ async find(params) {
932
+ const response = await this.api.get(`${this.route}`, { params });
933
+ return response.data;
934
+ }
935
+ async findPaginated(params) {
936
+ const response = await this.api.get(`${this.route}paginated`, { params });
937
+ return response.data;
938
+ }
939
+ async findMinified(params) {
940
+ const response = await this.api.get(`${this.route}minified`, {
941
+ params
942
+ });
943
+ return response.data;
944
+ }
945
+ async findByOwnerId(params) {
946
+ const response = await this.api.get(`${this.route}by_owner`, {
947
+ params
948
+ });
949
+ return response.data;
950
+ }
951
+ async findById(selector) {
952
+ const response = await this.api.get(`${this.route}${selector.id}`);
953
+ return response.data;
954
+ }
955
+ async create(body) {
956
+ const response = await this.api.post(`${this.route}`, body);
957
+ return response.data;
958
+ }
959
+ async update(selector, body) {
960
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
961
+ return response.data;
962
+ }
963
+ async deleteOne(selector) {
964
+ const response = await this.api.delete(`${this.route}${selector.id}`);
965
+ return response.data;
966
+ }
967
+ };
968
+
969
+ // src/modules/user/logout.ts
970
+ var logout_exports = {};
971
+ __export(logout_exports, {
972
+ default: () => Repository25
973
+ });
974
+ var Repository25 = class {
975
+ constructor({ api, route, publicRoute }) {
976
+ this.api = api;
977
+ this.route = route;
978
+ this.publicRoute = publicRoute;
979
+ }
980
+ async logout() {
981
+ await this.api.post(`${this.route}`);
982
+ }
983
+ };
984
+
985
+ // src/modules/documentManagement/multimedia.ts
986
+ var multimedia_exports = {};
987
+ __export(multimedia_exports, {
988
+ default: () => Repository26
989
+ });
990
+ var Repository26 = class {
991
+ constructor({ api, route, publicRoute }) {
992
+ this.api = api;
993
+ this.route = route;
994
+ this.publicRoute = publicRoute;
995
+ }
996
+ getUrl(multimediaId, download = false) {
997
+ const qs = new URLSearchParams();
998
+ if (download) qs.set("download", download.toString());
999
+ return `${this.publicRoute}${multimediaId}?${qs.toString()}`;
1000
+ }
1001
+ async create(multipartFormData, headers) {
1002
+ const response = await this.api.post(`${this.publicRoute}upload`, multipartFormData, {
1003
+ headers: {
1004
+ ...headers || {},
1005
+ "content-type": "multipart/form-data"
1006
+ },
1007
+ maxBodyLength: Infinity,
1008
+ maxContentLength: Infinity
1009
+ });
1010
+ return response.data;
1011
+ }
1012
+ };
1013
+
1014
+ // src/modules/integration/observation.ts
1015
+ var observation_exports = {};
1016
+ __export(observation_exports, {
1017
+ default: () => Repository27
1018
+ });
1019
+ var Repository27 = class {
1020
+ constructor({ api, route, publicRoute }) {
1021
+ this.api = api;
1022
+ this.route = route;
1023
+ this.publicRoute = publicRoute;
1024
+ }
1025
+ async findByOwnerId(params) {
1026
+ const response = await this.api.get(`${this.route}`, {
1027
+ params
1028
+ });
1029
+ return response.data;
1030
+ }
1031
+ async findByOwnerIds(body) {
1032
+ const response = await this.api.post(`${this.route}by_owners`, body);
1033
+ return response.data;
1034
+ }
1035
+ async create(body) {
1036
+ const response = await this.api.post(`${this.route}`, body);
1037
+ return response.data;
1038
+ }
1039
+ async update(selector, body) {
1040
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1041
+ return response.data;
1042
+ }
1043
+ async deleteOne(selector) {
1044
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1045
+ return response.data;
1046
+ }
1047
+ };
1048
+
1049
+ // src/modules/integration/observationType.ts
1050
+ var observationType_exports = {};
1051
+ __export(observationType_exports, {
1052
+ default: () => Repository28
1053
+ });
1054
+ var Repository28 = class {
1055
+ constructor({ api, route, publicRoute }) {
1056
+ this.api = api;
1057
+ this.route = route;
1058
+ this.publicRoute = publicRoute;
1059
+ }
1060
+ async find() {
1061
+ const response = await this.api.get(`${this.route}`);
1062
+ return response.data;
1063
+ }
1064
+ async findMinified(params) {
1065
+ const response = await this.api.get(`${this.route}minified`, {
1066
+ params
1067
+ });
1068
+ return response.data;
1069
+ }
1070
+ async create(body) {
1071
+ const response = await this.api.post(`${this.route}`, body);
1072
+ return response.data;
1073
+ }
1074
+ async update(selector, body) {
1075
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1076
+ return response.data;
1077
+ }
1078
+ async deleteOne(selector) {
1079
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1080
+ return response.data;
1081
+ }
1082
+ };
1083
+
1084
+ // src/modules/user/password.ts
1085
+ var password_exports = {};
1086
+ __export(password_exports, {
1087
+ default: () => Repository29
1088
+ });
1089
+ var Repository29 = class {
1090
+ constructor({ api, route, publicRoute }) {
1091
+ this.api = api;
1092
+ this.route = route;
1093
+ this.publicRoute = publicRoute;
1094
+ }
1095
+ async forgotPassword(body) {
1096
+ await this.api.post(`${this.publicRoute}forgot`, body);
1097
+ }
1098
+ async resetPassword(body) {
1099
+ await this.api.post(`${this.publicRoute}reset`, body);
1100
+ }
1101
+ };
1102
+
1103
+ // src/modules/user/permission.ts
1104
+ var permission_exports = {};
1105
+ __export(permission_exports, {
1106
+ default: () => Repository30
1107
+ });
1108
+ var Repository30 = class {
1109
+ constructor({ api, route, publicRoute }) {
1110
+ this.api = api;
1111
+ this.route = route;
1112
+ this.publicRoute = publicRoute;
1113
+ }
1114
+ async find() {
1115
+ const response = await this.api.get(`${this.route}`);
1116
+ return response.data;
1117
+ }
1118
+ async findMinified(params) {
1119
+ const response = await this.api.get(`${this.route}minified`, {
1120
+ params
1121
+ });
1122
+ return response.data;
1123
+ }
1124
+ async create(body) {
1125
+ const response = await this.api.post(`${this.route}`, body);
1126
+ return response.data;
1127
+ }
1128
+ async deleteOne(selector) {
1129
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1130
+ return response.data;
1131
+ }
1132
+ };
1133
+
1134
+ // src/modules/stock/productImage.ts
1135
+ var productImage_exports = {};
1136
+ __export(productImage_exports, {
1137
+ default: () => Repository31
1138
+ });
1139
+ var Repository31 = class {
1140
+ constructor({ api, route, publicRoute }) {
1141
+ this.api = api;
1142
+ this.route = route;
1143
+ this.publicRoute = publicRoute;
1144
+ }
1145
+ async find(params) {
1146
+ const response = await this.api.get(`${this.route}`, { params });
1147
+ return response.data;
1148
+ }
1149
+ async findPaginated(params) {
1150
+ const response = await this.api.get(`${this.route}paginated`, { params });
1151
+ return response.data;
1152
+ }
1153
+ async findByOwnerId(params) {
1154
+ const response = await this.api.get(`${this.route}by_owner`, {
1155
+ params
1156
+ });
1157
+ return response.data;
1158
+ }
1159
+ async findById(selector) {
1160
+ const response = await this.api.get(`${this.route}${selector.id}`);
1161
+ return response.data;
1162
+ }
1163
+ async create(body) {
1164
+ const response = await this.api.post(`${this.route}`, body);
1165
+ return response.data;
1166
+ }
1167
+ async update(selector, body) {
1168
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1169
+ return response.data;
1170
+ }
1171
+ async deleteOne(selector) {
1172
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1173
+ return response.data;
1174
+ }
1175
+ };
1176
+
1177
+ // src/modules/stock/promotion.ts
1178
+ var promotion_exports = {};
1179
+ __export(promotion_exports, {
1180
+ default: () => Repository32
1181
+ });
1182
+ var Repository32 = class {
1183
+ constructor({ api, route, publicRoute }) {
1184
+ this.api = api;
1185
+ this.route = route;
1186
+ this.publicRoute = publicRoute;
1187
+ }
1188
+ async find(params) {
1189
+ const response = await this.api.get(`${this.route}`, { params });
1190
+ return response.data;
1191
+ }
1192
+ async findPaginated(params) {
1193
+ const response = await this.api.get(`${this.route}paginated`, { params });
1194
+ return response.data;
1195
+ }
1196
+ async findMinified(params) {
1197
+ const response = await this.api.get(`${this.route}minified`, {
1198
+ params
1199
+ });
1200
+ return response.data;
1201
+ }
1202
+ async findByOwnerId(params) {
1203
+ const response = await this.api.get(`${this.route}by_owner`, {
1204
+ params
1205
+ });
1206
+ return response.data;
1207
+ }
1208
+ async findById(selector) {
1209
+ const response = await this.api.get(`${this.route}${selector.id}`);
1210
+ return response.data;
1211
+ }
1212
+ async create(body) {
1213
+ const response = await this.api.post(`${this.route}`, body);
1214
+ return response.data;
1215
+ }
1216
+ async update(selector, body) {
1217
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1218
+ return response.data;
1219
+ }
1220
+ async deleteOne(selector) {
1221
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1222
+ return response.data;
1223
+ }
1224
+ getBestDiscount(promotions, discount, location_id, client_id, product_no_discount) {
1225
+ const highestPromoDiscount = promotions.filter((promotion) => {
1226
+ const locationEligible = promotion.exclusive_to_location_id ? promotion.exclusive_to_location_id === location_id : true;
1227
+ const clientEligible = promotion.exclusive_to_client_id ? promotion.exclusive_to_client_id === client_id : true;
1228
+ return locationEligible && clientEligible;
1229
+ }).reduce(
1230
+ (highest, promotion) => promotion.discount > highest ? promotion.discount : highest,
1231
+ 0
1232
+ );
1233
+ const clientDiscount = product_no_discount ? 0 : discount || 0;
1234
+ return highestPromoDiscount > clientDiscount ? highestPromoDiscount : clientDiscount;
1235
+ }
1236
+ };
1237
+
1238
+ // src/modules/stock/promotionAssoc.ts
1239
+ var promotionAssoc_exports = {};
1240
+ __export(promotionAssoc_exports, {
1241
+ default: () => Repository33
1242
+ });
1243
+ var Repository33 = class {
1244
+ constructor({ api, route, publicRoute }) {
1245
+ this.api = api;
1246
+ this.route = route;
1247
+ this.publicRoute = publicRoute;
1248
+ }
1249
+ async find(params) {
1250
+ const response = await this.api.get(`${this.route}`, { params });
1251
+ return response.data;
1252
+ }
1253
+ async findPaginated(params) {
1254
+ const response = await this.api.get(`${this.route}paginated`, { params });
1255
+ return response.data;
1256
+ }
1257
+ async findByOwnerId(params) {
1258
+ const response = await this.api.get(`${this.route}by_owner`, {
1259
+ params
1260
+ });
1261
+ return response.data;
1262
+ }
1263
+ async findById(selector) {
1264
+ const response = await this.api.get(`${this.route}${selector.id}`);
1265
+ return response.data;
1266
+ }
1267
+ async create(body) {
1268
+ const response = await this.api.post(`${this.route}`, body);
1269
+ return response.data;
1270
+ }
1271
+ async update(selector, body) {
1272
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1273
+ return response.data;
1274
+ }
1275
+ async deleteOne(selector) {
1276
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1277
+ return response.data;
1278
+ }
1279
+ };
1280
+
1281
+ // src/modules/user/provider.ts
1282
+ var provider_exports = {};
1283
+ __export(provider_exports, {
1284
+ default: () => Repository34
1285
+ });
1286
+ var Repository34 = class {
1287
+ constructor({ api, route, publicRoute }) {
1288
+ this.api = api;
1289
+ this.route = route;
1290
+ this.publicRoute = publicRoute;
1291
+ }
1292
+ async findByQuery(data) {
1293
+ const response = await this.api.post(`${this.route}query`, data);
1294
+ return response.data;
1295
+ }
1296
+ async find(params) {
1297
+ const response = await this.api.get(`${this.route}`, { params });
1298
+ return response.data;
1299
+ }
1300
+ async findPaginated(params) {
1301
+ const response = await this.api.get(`${this.route}paginated`, { params });
1302
+ return response.data;
1303
+ }
1304
+ async findMinified(params) {
1305
+ const response = await this.api.get(`${this.route}minified`, {
1306
+ params
1307
+ });
1308
+ return response.data;
1309
+ }
1310
+ async findMinifiedManufacturer(params) {
1311
+ const response = await this.api.get(`${this.route}minified_manufacturer`, {
1312
+ params
1313
+ });
1314
+ return response.data;
1315
+ }
1316
+ async findByOwnerId(params) {
1317
+ const response = await this.api.get(`${this.route}by_owner`, {
1318
+ params
1319
+ });
1320
+ return response.data;
1321
+ }
1322
+ async findById(selector) {
1323
+ const response = await this.api.get(`${this.route}${selector.id}`);
1324
+ return response.data;
1325
+ }
1326
+ async create(body) {
1327
+ const response = await this.api.post(`${this.route}`, body);
1328
+ return response.data;
1329
+ }
1330
+ async update(selector, body) {
1331
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1332
+ return response.data;
1333
+ }
1334
+ async deleteOne(selector) {
1335
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1336
+ return response.data;
1337
+ }
1338
+ };
1339
+
1340
+ // src/modules/user/providerType.ts
1341
+ var providerType_exports = {};
1342
+ __export(providerType_exports, {
1343
+ default: () => Repository35
1344
+ });
1345
+ var Repository35 = class {
1346
+ constructor({ api, route, publicRoute }) {
1347
+ this.api = api;
1348
+ this.route = route;
1349
+ this.publicRoute = publicRoute;
1350
+ }
1351
+ async find(params) {
1352
+ const response = await this.api.get(`${this.route}`, { params });
1353
+ return response.data;
1354
+ }
1355
+ async findPaginated(params) {
1356
+ const response = await this.api.get(`${this.route}paginated`, { params });
1357
+ return response.data;
1358
+ }
1359
+ async findMinified(params) {
1360
+ const response = await this.api.get(`${this.route}minified`, {
1361
+ params
1362
+ });
1363
+ return response.data;
1364
+ }
1365
+ async findById(selector) {
1366
+ const response = await this.api.get(`${this.route}${selector.id}`);
1367
+ return response.data;
1368
+ }
1369
+ async create(body) {
1370
+ const response = await this.api.post(`${this.route}`, body);
1371
+ return response.data;
1372
+ }
1373
+ async update(selector, body) {
1374
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1375
+ return response.data;
1376
+ }
1377
+ async deleteOne(selector) {
1378
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1379
+ return response.data;
1380
+ }
1381
+ };
1382
+
1383
+ // src/modules/user/purchaseCondition.ts
1384
+ var purchaseCondition_exports = {};
1385
+ __export(purchaseCondition_exports, {
1386
+ default: () => Repository36
1387
+ });
1388
+ var Repository36 = class {
1389
+ constructor({ api, route, publicRoute }) {
1390
+ this.api = api;
1391
+ this.route = route;
1392
+ this.publicRoute = publicRoute;
1393
+ }
1394
+ async find(params) {
1395
+ const response = await this.api.get(`${this.route}`, { params });
1396
+ return response.data;
1397
+ }
1398
+ async findPaginated(params) {
1399
+ const response = await this.api.get(`${this.route}paginated`, { params });
1400
+ return response.data;
1401
+ }
1402
+ async findByOwnerId(params) {
1403
+ const response = await this.api.get(`${this.route}by_owner`, {
1404
+ params
1405
+ });
1406
+ return response.data;
1407
+ }
1408
+ async findById(selector) {
1409
+ const response = await this.api.get(`${this.route}${selector.id}`);
1410
+ return response.data;
1411
+ }
1412
+ async create(body) {
1413
+ const response = await this.api.post(`${this.route}`, body);
1414
+ return response.data;
1415
+ }
1416
+ async update(selector, body) {
1417
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1418
+ return response.data;
1419
+ }
1420
+ async deleteOne(selector) {
1421
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1422
+ return response.data;
1423
+ }
1424
+ };
1425
+
1426
+ // src/modules/user/reasonForExemption.ts
1427
+ var reasonForExemption_exports = {};
1428
+ __export(reasonForExemption_exports, {
1429
+ default: () => Repository37
1430
+ });
1431
+ var Repository37 = class {
1432
+ constructor({ api, route, publicRoute }) {
1433
+ this.api = api;
1434
+ this.route = route;
1435
+ this.publicRoute = publicRoute;
1436
+ }
1437
+ async find(params) {
1438
+ const response = await this.api.get(`${this.route}`, { params });
1439
+ return response.data;
1440
+ }
1441
+ async findPaginated(params) {
1442
+ const response = await this.api.get(`${this.route}paginated`, { params });
1443
+ return response.data;
1444
+ }
1445
+ async findMinified(params) {
1446
+ const response = await this.api.get(`${this.route}minified`, {
1447
+ params
1448
+ });
1449
+ return response.data;
1450
+ }
1451
+ async findById(selector) {
1452
+ const response = await this.api.get(`${this.route}${selector.id}`);
1453
+ return response.data;
1454
+ }
1455
+ async create(body) {
1456
+ const response = await this.api.post(`${this.route}`, body);
1457
+ return response.data;
1458
+ }
1459
+ async update(selector, body) {
1460
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1461
+ return response.data;
1462
+ }
1463
+ async deleteOne(selector) {
1464
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1465
+ return response.data;
1466
+ }
1467
+ };
1468
+
1469
+ // src/modules/user/refreshToken.ts
1470
+ var refreshToken_exports = {};
1471
+ __export(refreshToken_exports, {
1472
+ default: () => Repository38
1473
+ });
1474
+ var Repository38 = class {
1475
+ constructor({ api, route, publicRoute }) {
1476
+ this.api = api;
1477
+ this.route = route;
1478
+ this.publicRoute = publicRoute;
1479
+ }
1480
+ async create(body) {
1481
+ const response = await this.api.post(`${this.publicRoute}`, body);
1482
+ return response.data;
1483
+ }
1484
+ };
1485
+
1486
+ // src/modules/user/segmentsArea.ts
1487
+ var segmentsArea_exports = {};
1488
+ __export(segmentsArea_exports, {
1489
+ default: () => Repository39
1490
+ });
1491
+ var Repository39 = class {
1492
+ constructor({ api, route, publicRoute }) {
1493
+ this.api = api;
1494
+ this.route = route;
1495
+ this.publicRoute = publicRoute;
1496
+ }
1497
+ async find(params) {
1498
+ const response = await this.api.get(`${this.route}`, { params });
1499
+ return response.data;
1500
+ }
1501
+ async findPaginated(params) {
1502
+ const response = await this.api.get(`${this.route}paginated`, { params });
1503
+ return response.data;
1504
+ }
1505
+ async findMinified(params) {
1506
+ const response = await this.api.get(`${this.route}minified`, {
1507
+ params
1508
+ });
1509
+ return response.data;
1510
+ }
1511
+ async findById(selector) {
1512
+ const response = await this.api.get(`${this.route}${selector.id}`);
1513
+ return response.data;
1514
+ }
1515
+ async create(body) {
1516
+ const response = await this.api.post(`${this.route}`, body);
1517
+ return response.data;
1518
+ }
1519
+ async update(selector, body) {
1520
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1521
+ return response.data;
1522
+ }
1523
+ async deleteOne(selector) {
1524
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1525
+ return response.data;
1526
+ }
1527
+ };
1528
+
1529
+ // src/modules/user/sessions.ts
1530
+ var sessions_exports = {};
1531
+ __export(sessions_exports, {
1532
+ default: () => Repository40
1533
+ });
1534
+ var Repository40 = class {
1535
+ constructor({ api, route, publicRoute }) {
1536
+ this.api = api;
1537
+ this.route = route;
1538
+ this.publicRoute = publicRoute;
1539
+ }
1540
+ async create(body) {
1541
+ const response = await this.api.post(`${this.publicRoute}`, body);
1542
+ return response.data;
1543
+ }
1544
+ };
1545
+
1546
+ // src/modules/user/shippings.ts
1547
+ var shippings_exports = {};
1548
+ __export(shippings_exports, {
1549
+ default: () => Repository41
1550
+ });
1551
+ var Repository41 = class {
1552
+ constructor({ api, route, publicRoute }) {
1553
+ this.api = api;
1554
+ this.route = route;
1555
+ this.publicRoute = publicRoute;
1556
+ }
1557
+ async find(params) {
1558
+ const response = await this.api.get(`${this.route}`, { params });
1559
+ return response.data;
1560
+ }
1561
+ async findPaginated(params) {
1562
+ const response = await this.api.get(`${this.route}paginated`, { params });
1563
+ return response.data;
1564
+ }
1565
+ async findByOwnerId(params) {
1566
+ const response = await this.api.get(`${this.route}by_owner`, {
1567
+ params
1568
+ });
1569
+ return response.data;
1570
+ }
1571
+ async findById(selector) {
1572
+ const response = await this.api.get(`${this.route}${selector.id}`);
1573
+ return response.data;
1574
+ }
1575
+ async create(body) {
1576
+ const response = await this.api.post(`${this.route}`, body);
1577
+ return response.data;
1578
+ }
1579
+ async update(selector, body) {
1580
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1581
+ return response.data;
1582
+ }
1583
+ async deleteOne(selector) {
1584
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1585
+ return response.data;
1586
+ }
1587
+ };
1588
+
1589
+ // src/modules/user/storeOperator.ts
1590
+ var storeOperator_exports = {};
1591
+ __export(storeOperator_exports, {
1592
+ default: () => Repository42
1593
+ });
1594
+ var Repository42 = class {
1595
+ constructor({ api, route, publicRoute }) {
1596
+ this.api = api;
1597
+ this.route = route;
1598
+ this.publicRoute = publicRoute;
1599
+ }
1600
+ async find() {
1601
+ const response = await this.api.get(`${this.route}`);
1602
+ return response.data;
1603
+ }
1604
+ async findPaginated(params) {
1605
+ const response = await this.api.get(`${this.route}paginated`, { params });
1606
+ return response.data;
1607
+ }
1608
+ async findMinified(params) {
1609
+ const response = await this.api.get(`${this.route}minified`, {
1610
+ params
1611
+ });
1612
+ return response.data;
1613
+ }
1614
+ async create(body) {
1615
+ const response = await this.api.post(`${this.route}`, body);
1616
+ return response.data;
1617
+ }
1618
+ async update(selector, body) {
1619
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1620
+ return response.data;
1621
+ }
1622
+ async deleteOne(selector) {
1623
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1624
+ return response.data;
1625
+ }
1626
+ };
1627
+
1628
+ // src/modules/user/swift.ts
1629
+ var swift_exports = {};
1630
+ __export(swift_exports, {
1631
+ default: () => Repository43
1632
+ });
1633
+ var Repository43 = class {
1634
+ constructor({ api, route, publicRoute }) {
1635
+ this.api = api;
1636
+ this.route = route;
1637
+ this.publicRoute = publicRoute;
1638
+ }
1639
+ async find(params) {
1640
+ const response = await this.api.get(`${this.route}`, { params });
1641
+ return response.data;
1642
+ }
1643
+ async findPaginated(params) {
1644
+ const response = await this.api.get(`${this.route}paginated`, { params });
1645
+ return response.data;
1646
+ }
1647
+ async findMinified(params) {
1648
+ const response = await this.api.get(`${this.route}minified`, {
1649
+ params
1650
+ });
1651
+ return response.data;
1652
+ }
1653
+ async findById(selector) {
1654
+ const response = await this.api.get(`${this.route}${selector.id}`);
1655
+ return response.data;
1656
+ }
1657
+ async create(body) {
1658
+ const response = await this.api.post(`${this.route}`, body);
1659
+ return response.data;
1660
+ }
1661
+ async update(selector, body) {
1662
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1663
+ return response.data;
1664
+ }
1665
+ async deleteOne(selector) {
1666
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1667
+ return response.data;
1668
+ }
1669
+ };
1670
+
1671
+ // src/modules/stock/typeOfLocation.ts
1672
+ var typeOfLocation_exports = {};
1673
+ __export(typeOfLocation_exports, {
1674
+ default: () => Repository44
1675
+ });
1676
+ var Repository44 = class {
1677
+ constructor({ api, route, publicRoute }) {
1678
+ this.api = api;
1679
+ this.route = route;
1680
+ this.publicRoute = publicRoute;
1681
+ }
1682
+ async find(params) {
1683
+ const response = await this.api.get(`${this.route}`, { params });
1684
+ return response.data;
1685
+ }
1686
+ async findPaginated(params) {
1687
+ const response = await this.api.get(`${this.route}paginated`, { params });
1688
+ return response.data;
1689
+ }
1690
+ async findMinified(params) {
1691
+ const response = await this.api.get(`${this.route}minified`, {
1692
+ params
1693
+ });
1694
+ return response.data;
1695
+ }
1696
+ async findByOwnerId(params) {
1697
+ const response = await this.api.get(`${this.route}by_owner`, {
1698
+ params
1699
+ });
1700
+ return response.data;
1701
+ }
1702
+ async findById(selector) {
1703
+ const response = await this.api.get(`${this.route}${selector.id}`);
1704
+ return response.data;
1705
+ }
1706
+ async create(body) {
1707
+ const response = await this.api.post(`${this.route}`, body);
1708
+ return response.data;
1709
+ }
1710
+ async update(selector, body) {
1711
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1712
+ return response.data;
1713
+ }
1714
+ async deleteOne(selector) {
1715
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1716
+ return response.data;
1717
+ }
1718
+ };
1719
+
1720
+ // src/modules/stock/unitOfMeasure.ts
1721
+ var unitOfMeasure_exports = {};
1722
+ __export(unitOfMeasure_exports, {
1723
+ default: () => Repository45
1724
+ });
1725
+ var Repository45 = class {
1726
+ constructor({ api, route, publicRoute }) {
1727
+ this.api = api;
1728
+ this.route = route;
1729
+ this.publicRoute = publicRoute;
1730
+ }
1731
+ async find(params) {
1732
+ const response = await this.api.get(`${this.route}`, { params });
1733
+ return response.data;
1734
+ }
1735
+ async findPaginated(params) {
1736
+ const response = await this.api.get(`${this.route}paginated`, { params });
1737
+ return response.data;
1738
+ }
1739
+ async findMinified(params) {
1740
+ const response = await this.api.get(`${this.route}minified`, {
1741
+ params
1742
+ });
1743
+ return response.data;
1744
+ }
1745
+ async findByOwnerId(params) {
1746
+ const response = await this.api.get(`${this.route}by_owner`, {
1747
+ params
1748
+ });
1749
+ return response.data;
1750
+ }
1751
+ async findById(selector) {
1752
+ const response = await this.api.get(`${this.route}${selector.id}`);
1753
+ return response.data;
1754
+ }
1755
+ async create(body) {
1756
+ const response = await this.api.post(`${this.route}`, body);
1757
+ return response.data;
1758
+ }
1759
+ async update(selector, body) {
1760
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1761
+ return response.data;
1762
+ }
1763
+ async deleteOne(selector) {
1764
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1765
+ return response.data;
1766
+ }
1767
+ };
1768
+
1769
+ // src/modules/user/userPermission.ts
1770
+ var userPermission_exports = {};
1771
+ __export(userPermission_exports, {
1772
+ default: () => Repository46
1773
+ });
1774
+ var Repository46 = class {
1775
+ constructor({ api, route, publicRoute }) {
1776
+ this.api = api;
1777
+ this.route = route;
1778
+ this.publicRoute = publicRoute;
1779
+ }
1780
+ async findByOwnerId(params) {
1781
+ const response = await this.api.get(`${this.route}by_owner`, {
1782
+ params
1783
+ });
1784
+ return response.data;
1785
+ }
1786
+ async create(body) {
1787
+ const response = await this.api.post(`${this.route}`, body);
1788
+ return response.data;
1789
+ }
1790
+ async deleteOne(selector) {
1791
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1792
+ return response.data;
1793
+ }
1794
+ };
1795
+
1796
+ // src/modules/user/userPositions.ts
1797
+ var userPositions_exports = {};
1798
+ __export(userPositions_exports, {
1799
+ default: () => Repository47
1800
+ });
1801
+ var Repository47 = class {
1802
+ constructor({ api, route, publicRoute }) {
1803
+ this.api = api;
1804
+ this.route = route;
1805
+ this.publicRoute = publicRoute;
1806
+ }
1807
+ async find(params) {
1808
+ const response = await this.api.get(`${this.route}`, { params });
1809
+ return response.data;
1810
+ }
1811
+ async findPaginated(params) {
1812
+ const response = await this.api.get(`${this.route}paginated`, { params });
1813
+ return response.data;
1814
+ }
1815
+ async findMinified(params) {
1816
+ const response = await this.api.get(`${this.route}minified`, {
1817
+ params
1818
+ });
1819
+ return response.data;
1820
+ }
1821
+ async findById(selector) {
1822
+ const response = await this.api.get(`${this.route}${selector.id}`);
1823
+ return response.data;
1824
+ }
1825
+ async create(body) {
1826
+ const response = await this.api.post(`${this.route}`, body);
1827
+ return response.data;
1828
+ }
1829
+ async update(selector, body) {
1830
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1831
+ return response.data;
1832
+ }
1833
+ async deleteOne(selector) {
1834
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1835
+ return response.data;
1836
+ }
1837
+ };
1838
+
1839
+ // src/modules/user/user.ts
1840
+ var user_exports = {};
1841
+ __export(user_exports, {
1842
+ default: () => Repository48
1843
+ });
1844
+ var Repository48 = class {
1845
+ constructor({ api, route, publicRoute }) {
1846
+ this.api = api;
1847
+ this.route = route;
1848
+ this.publicRoute = publicRoute;
1849
+ }
1850
+ async find(params) {
1851
+ const response = await this.api.get(`${this.route}`, { params });
1852
+ return response.data;
1853
+ }
1854
+ async findPaginated(params) {
1855
+ const response = await this.api.get(`${this.route}paginated`, { params });
1856
+ return response.data;
1857
+ }
1858
+ async findMinified(params) {
1859
+ const response = await this.api.get(`${this.route}minified`, {
1860
+ params
1861
+ });
1862
+ return response.data;
1863
+ }
1864
+ async findById(selector) {
1865
+ const response = await this.api.get(`${this.route}${selector.id}`);
1866
+ return response.data;
1867
+ }
1868
+ async create(body) {
1869
+ const response = await this.api.post(`${this.route}`, body);
1870
+ return response.data;
1871
+ }
1872
+ async update(selector, body) {
1873
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1874
+ return response.data;
1875
+ }
1876
+ async deleteOne(selector) {
1877
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1878
+ return response.data;
1879
+ }
1880
+ async findProvidersWithClientId(body) {
1881
+ const response = await this.api.post(`${this.route}providers`, body);
1882
+ return response.data;
1883
+ }
1884
+ async findFromClientOrProviderId(body) {
1885
+ const response = await this.api.post(`${this.route}from_client_or_provider_id`, body);
1886
+ return response.data;
1887
+ }
1888
+ };
1889
+
1890
+ // src/modules/stock/vatTax.ts
1891
+ var vatTax_exports = {};
1892
+ __export(vatTax_exports, {
1893
+ default: () => Repository49
1894
+ });
1895
+ var Repository49 = class {
1896
+ constructor({ api, route, publicRoute }) {
1897
+ this.api = api;
1898
+ this.route = route;
1899
+ this.publicRoute = publicRoute;
1900
+ }
1901
+ async find(params) {
1902
+ const response = await this.api.get(`${this.route}`, { params });
1903
+ return response.data;
1904
+ }
1905
+ async findPaginated(params) {
1906
+ const response = await this.api.get(`${this.route}paginated`, { params });
1907
+ return response.data;
1908
+ }
1909
+ async findMinified(params) {
1910
+ const response = await this.api.get(`${this.route}minified`, {
1911
+ params
1912
+ });
1913
+ return response.data;
1914
+ }
1915
+ async findByOwnerId(params) {
1916
+ const response = await this.api.get(`${this.route}by_owner`, {
1917
+ params
1918
+ });
1919
+ return response.data;
1920
+ }
1921
+ async findById(selector) {
1922
+ const response = await this.api.get(`${this.route}${selector.id}`);
1923
+ return response.data;
1924
+ }
1925
+ async create(body) {
1926
+ const response = await this.api.post(`${this.route}`, body);
1927
+ return response.data;
1928
+ }
1929
+ async update(selector, body) {
1930
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1931
+ return response.data;
1932
+ }
1933
+ async deleteOne(selector) {
1934
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1935
+ return response.data;
1936
+ }
1937
+ };
1938
+
1939
+ // src/modules/stock/vatTaxZone.ts
1940
+ var vatTaxZone_exports = {};
1941
+ __export(vatTaxZone_exports, {
1942
+ default: () => Repository50
1943
+ });
1944
+ var Repository50 = class {
1945
+ constructor({ api, route, publicRoute }) {
1946
+ this.api = api;
1947
+ this.route = route;
1948
+ this.publicRoute = publicRoute;
1949
+ }
1950
+ async find(params) {
1951
+ const response = await this.api.get(`${this.route}`, { params });
1952
+ return response.data;
1953
+ }
1954
+ async findPaginated(params) {
1955
+ const response = await this.api.get(`${this.route}paginated`, { params });
1956
+ return response.data;
1957
+ }
1958
+ async findMinified(params) {
1959
+ const response = await this.api.get(`${this.route}minified`, {
1960
+ params
1961
+ });
1962
+ return response.data;
1963
+ }
1964
+ async findByOwnerId(params) {
1965
+ const response = await this.api.get(`${this.route}by_owner`, {
1966
+ params
1967
+ });
1968
+ return response.data;
1969
+ }
1970
+ async findById(selector) {
1971
+ const response = await this.api.get(`${this.route}${selector.id}`);
1972
+ return response.data;
1973
+ }
1974
+ async create(body) {
1975
+ const response = await this.api.post(`${this.route}`, body);
1976
+ return response.data;
1977
+ }
1978
+ async update(selector, body) {
1979
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1980
+ return response.data;
1981
+ }
1982
+ async deleteOne(selector) {
1983
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1984
+ return response.data;
1985
+ }
1986
+ };
1987
+
1988
+ // src/modules/supply/workflow.ts
1989
+ var workflow_exports = {};
1990
+ __export(workflow_exports, {
1991
+ default: () => Repository51
1992
+ });
1993
+ var Repository51 = class {
1994
+ constructor({ api, route, publicRoute }) {
1995
+ this.api = api;
1996
+ this.route = route;
1997
+ this.publicRoute = publicRoute;
1998
+ }
1999
+ async find(params) {
2000
+ const response = await this.api.get(`${this.route}`, { params });
2001
+ return response.data;
2002
+ }
2003
+ async findByOwnerId(params) {
2004
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2005
+ return response.data;
2006
+ }
2007
+ async create(body) {
2008
+ const response = await this.api.post(`${this.route}`, body);
2009
+ return response.data;
2010
+ }
2011
+ async update(selector, body) {
2012
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2013
+ return response.data;
2014
+ }
2015
+ async deleteOne(selector) {
2016
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2017
+ return response.data;
2018
+ }
2019
+ };
2020
+
2021
+ // src/modules/user/deliveryMethods.ts
2022
+ var deliveryMethods_exports = {};
2023
+ __export(deliveryMethods_exports, {
2024
+ default: () => Repository52
2025
+ });
2026
+ var Repository52 = class {
2027
+ constructor({ api, route, publicRoute }) {
2028
+ this.api = api;
2029
+ this.route = route;
2030
+ this.publicRoute = publicRoute;
2031
+ }
2032
+ async find() {
2033
+ const response = await this.api.get(`${this.route}`);
2034
+ return response.data;
2035
+ }
2036
+ async findMinified(params) {
2037
+ const response = await this.api.get(`${this.route}minified`, {
2038
+ params
2039
+ });
2040
+ return response.data;
2041
+ }
2042
+ async findById(selector) {
2043
+ const response = await this.api.get(`${this.route}${selector.id}`);
2044
+ return response.data;
2045
+ }
2046
+ async create(body) {
2047
+ const response = await this.api.post(`${this.route}`, body);
2048
+ return response.data;
2049
+ }
2050
+ async update(selector, body) {
2051
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2052
+ return response.data;
2053
+ }
2054
+ async deleteOne(selector) {
2055
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2056
+ return response.data;
2057
+ }
2058
+ };
2059
+
2060
+ // src/modules/user/maturityDates.ts
2061
+ var maturityDates_exports = {};
2062
+ __export(maturityDates_exports, {
2063
+ default: () => Repository53
2064
+ });
2065
+ var Repository53 = class {
2066
+ constructor({ api, route, publicRoute }) {
2067
+ this.api = api;
2068
+ this.route = route;
2069
+ this.publicRoute = publicRoute;
2070
+ }
2071
+ async find() {
2072
+ const response = await this.api.get(`${this.route}`);
2073
+ return response.data;
2074
+ }
2075
+ async findById(selector) {
2076
+ const response = await this.api.get(`${this.route}${selector.id}`);
2077
+ return response.data;
2078
+ }
2079
+ async findMinified(params) {
2080
+ const response = await this.api.get(`${this.route}minified`, {
2081
+ params
2082
+ });
2083
+ return response.data;
2084
+ }
2085
+ async create(body) {
2086
+ const response = await this.api.post(`${this.route}`, body);
2087
+ return response.data;
2088
+ }
2089
+ async update(selector, body) {
2090
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2091
+ return response.data;
2092
+ }
2093
+ async deleteOne(selector) {
2094
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2095
+ return response.data;
2096
+ }
2097
+ };
2098
+
2099
+ // src/modules/user/paymentMethods.ts
2100
+ var paymentMethods_exports = {};
2101
+ __export(paymentMethods_exports, {
2102
+ default: () => Repository54
2103
+ });
2104
+ var Repository54 = class {
2105
+ constructor({ api, route, publicRoute }) {
2106
+ this.api = api;
2107
+ this.route = route;
2108
+ this.publicRoute = publicRoute;
2109
+ }
2110
+ async find() {
2111
+ const response = await this.api.get(`${this.route}`);
2112
+ return response.data;
2113
+ }
2114
+ async findById(selector) {
2115
+ const response = await this.api.get(`${this.route}${selector.id}`);
2116
+ return response.data;
2117
+ }
2118
+ async findMinified(params) {
2119
+ const response = await this.api.get(`${this.route}minified`, {
2120
+ params
2121
+ });
2122
+ return response.data;
2123
+ }
2124
+ async create(body) {
2125
+ const response = await this.api.post(`${this.route}`, body);
2126
+ return response.data;
2127
+ }
2128
+ async update(selector, body) {
2129
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2130
+ return response.data;
2131
+ }
2132
+ async deleteOne(selector) {
2133
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2134
+ return response.data;
2135
+ }
2136
+ };
2137
+
2138
+ // src/modules/user/vehicles.ts
2139
+ var vehicles_exports = {};
2140
+ __export(vehicles_exports, {
2141
+ default: () => Repository55
2142
+ });
2143
+ var Repository55 = class {
2144
+ constructor({ api, route, publicRoute }) {
2145
+ this.api = api;
2146
+ this.route = route;
2147
+ this.publicRoute = publicRoute;
2148
+ }
2149
+ async find() {
2150
+ const response = await this.api.get(`${this.route}`);
2151
+ return response.data;
2152
+ }
2153
+ async create(body) {
2154
+ const response = await this.api.post(`${this.route}`, body);
2155
+ return response.data;
2156
+ }
2157
+ async update(selector, body) {
2158
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2159
+ return response.data;
2160
+ }
2161
+ async deleteOne(selector) {
2162
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2163
+ return response.data;
2164
+ }
2165
+ };
2166
+
2167
+ // src/modules/supply/externalDocumentType.ts
2168
+ var externalDocumentType_exports = {};
2169
+ __export(externalDocumentType_exports, {
2170
+ default: () => Repository56
2171
+ });
2172
+ var Repository56 = class {
2173
+ constructor({ api, route, publicRoute }) {
2174
+ this.api = api;
2175
+ this.route = route;
2176
+ this.publicRoute = publicRoute;
2177
+ }
2178
+ async find() {
2179
+ const response = await this.api.get(`${this.route}`);
2180
+ return response.data;
2181
+ }
2182
+ async findMinified(params) {
2183
+ const response = await this.api.get(`${this.route}minified`, { params });
2184
+ return response.data;
2185
+ }
2186
+ };
2187
+
2188
+ // src/modules/supply/documentSet.ts
2189
+ var documentSet_exports = {};
2190
+ __export(documentSet_exports, {
2191
+ default: () => Repository57
2192
+ });
2193
+ var Repository57 = class {
2194
+ constructor({ api, route, publicRoute }) {
2195
+ this.api = api;
2196
+ this.route = route;
2197
+ this.publicRoute = publicRoute;
2198
+ }
2199
+ async find() {
2200
+ const response = await this.api.get(`${this.route}`);
2201
+ return response.data;
2202
+ }
2203
+ async findById(selector) {
2204
+ const response = await this.api.get(`${this.route}${selector.id}`);
2205
+ return response.data;
2206
+ }
2207
+ async findMinified(params) {
2208
+ const response = await this.api.get(`${this.route}minified`, { params });
2209
+ return response.data;
2210
+ }
2211
+ async create(body) {
2212
+ const response = await this.api.post(`${this.route}`, body);
2213
+ return response.data;
2214
+ }
2215
+ async update(selector, body) {
2216
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2217
+ return response.data;
2218
+ }
2219
+ async deleteOne(selector) {
2220
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2221
+ return response.data;
2222
+ }
2223
+ };
2224
+
2225
+ // src/modules/supply/payment.ts
2226
+ var payment_exports = {};
2227
+ __export(payment_exports, {
2228
+ default: () => Repository58
2229
+ });
2230
+ var Repository58 = class {
2231
+ constructor({ api, route, publicRoute }) {
2232
+ this.api = api;
2233
+ this.route = route;
2234
+ this.publicRoute = publicRoute;
2235
+ }
2236
+ async find(params) {
2237
+ const response = await this.api.get(`${this.route}`, { params });
2238
+ return response.data;
2239
+ }
2240
+ async findPaginated(params) {
2241
+ const response = await this.api.get(`${this.route}paginated`, { params });
2242
+ return response.data;
2243
+ }
2244
+ async findByOwnerId(params) {
2245
+ const response = await this.api.get(`${this.route}by_owner`, {
2246
+ params
2247
+ });
2248
+ return response.data;
2249
+ }
2250
+ async findById(selector) {
2251
+ const response = await this.api.get(`${this.route}${selector.id}`);
2252
+ return response.data;
2253
+ }
2254
+ async deleteBatch(selector) {
2255
+ const response = await this.api.delete(`${this.route}delete_batch${selector.id}`);
2256
+ return response.data;
2257
+ }
2258
+ async findCurrentAccountByOwnerId(params) {
2259
+ const response = await this.api.get(`${this.route}current_account`, {
2260
+ params
2261
+ });
2262
+ return response.data;
2263
+ }
2264
+ async findBalanceByOwnerId(params) {
2265
+ const response = await this.api.get(`${this.route}balance`, {
2266
+ params
2267
+ });
2268
+ return response.data;
2269
+ }
2270
+ async findSettledMaterialEntrance(params) {
2271
+ const response = await this.api.get(`${this.route}settled_material_entrance`, {
2272
+ params
2273
+ });
2274
+ return response.data;
2275
+ }
2276
+ async findSettledMaterialEntranceProviders() {
2277
+ const response = await this.api.get(`${this.route}settled_material_entrance_providers`);
2278
+ return response.data;
2279
+ }
2280
+ async createProvidersPayments(body) {
2281
+ const response = await this.api.post(`${this.route}provider`, body);
2282
+ return response.data;
2283
+ }
2284
+ async findPaymentsNotExported(params) {
2285
+ const response = await this.api.get(`${this.route}not_exported`, {
2286
+ params
2287
+ });
2288
+ return response.data;
2289
+ }
2290
+ async findPaymentBatches() {
2291
+ const response = await this.api.get(`${this.route}batches`);
2292
+ return response.data;
2293
+ }
2294
+ async updateDownloadedBatchNumber(params) {
2295
+ await this.api.put(`${this.route}downloaded_batch_number/${params}`);
2296
+ }
2297
+ async exportCurrentAccount(params) {
2298
+ const response = await this.api.get(`${this.publicRoute}export_current_account`, {
2299
+ params
2300
+ });
2301
+ return response.data;
2302
+ }
2303
+ async findSettledMaterialEntranceByDate(params) {
2304
+ const response = await this.api.get(`${this.route}settled_material_entrance_by_date`, {
2305
+ params
2306
+ });
2307
+ return response.data;
2308
+ }
2309
+ async exportPayments(body) {
2310
+ await this.api.post(`${this.route}export_payments`, body);
2311
+ }
2312
+ getExportCurrentAccountUrl({
2313
+ owner_id,
2314
+ start_date,
2315
+ end_date,
2316
+ output,
2317
+ token
2318
+ }) {
2319
+ const qs = new URLSearchParams();
2320
+ qs.set("owner_id", owner_id);
2321
+ qs.set("output", output);
2322
+ if (start_date) qs.set("start_date", start_date.toISOString());
2323
+ if (end_date) qs.set("end_date", end_date.toISOString());
2324
+ qs.set("token", token);
2325
+ return `${this.publicRoute}export_current_account?${qs.toString()}`;
2326
+ }
2327
+ async findCurrentAccountPaginated(params) {
2328
+ const response = await this.api.get(`${this.route}current_account_paginated`, {
2329
+ params
2330
+ });
2331
+ return response.data;
2332
+ }
2333
+ };
2334
+
2335
+ // src/modules/supply/externalDocumentHeader.ts
2336
+ var externalDocumentHeader_exports = {};
2337
+ __export(externalDocumentHeader_exports, {
2338
+ default: () => Repository59
2339
+ });
2340
+ var Repository59 = class {
2341
+ constructor({ api, route, publicRoute }) {
2342
+ this.api = api;
2343
+ this.route = route;
2344
+ this.publicRoute = publicRoute;
2345
+ }
2346
+ async create(body) {
2347
+ const response = await this.api.post(`${this.route}`, body);
2348
+ return response.data;
2349
+ }
2350
+ async update(selector, body) {
2351
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2352
+ return response.data;
2353
+ }
2354
+ async findById(selector) {
2355
+ const response = await this.api.get(`${this.route}${selector.id}`);
2356
+ return response.data;
2357
+ }
2358
+ async findByOwnerId(params) {
2359
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2360
+ return response.data;
2361
+ }
2362
+ async publicFindByOwnerId(params) {
2363
+ const response = await this.api.get(`${this.route}public_by_owner`, {
2364
+ params
2365
+ });
2366
+ return response.data;
2367
+ }
2368
+ async find(params) {
2369
+ const response = await this.api.get(`${this.route}`, { params });
2370
+ return response.data;
2371
+ }
2372
+ async findPaginated(params) {
2373
+ const response = await this.api.get(`${this.route}paginated`, { params });
2374
+ return response.data;
2375
+ }
2376
+ async deleteOne(params) {
2377
+ const response = await this.api.get(`${this.route}`, { params });
2378
+ return response.data;
2379
+ }
2380
+ async sendEmailDocument(body) {
2381
+ await this.api.post(`${this.route}sendEmail`, body);
2382
+ }
2383
+ async createPublicDocumentHeaderNote(data) {
2384
+ const response = await this.api.post(`${this.route}public_document_header_note`, data);
2385
+ return response.data;
2386
+ }
2387
+ async updatePublicDocumentHeaderNote({ id }, data) {
2388
+ const response = await this.api.put(`${this.route}public_document_header_note/${id}`, data);
2389
+ return response.data;
2390
+ }
2391
+ };
2392
+
2393
+ // src/modules/supply/vatValidation.ts
2394
+ var vatValidation_exports = {};
2395
+ __export(vatValidation_exports, {
2396
+ default: () => Repository60
2397
+ });
2398
+ var Repository60 = class {
2399
+ constructor({ api, route, publicRoute }) {
2400
+ this.api = api;
2401
+ this.route = route;
2402
+ this.publicRoute = publicRoute;
2403
+ }
2404
+ async findByLatest(nif) {
2405
+ const response = await this.api.get(`${this.route}`, {
2406
+ params: {
2407
+ nif
2408
+ }
2409
+ });
2410
+ return response.data;
2411
+ }
2412
+ };
2413
+
2414
+ // src/modules/stock/stockMovement.ts
2415
+ var stockMovement_exports = {};
2416
+ __export(stockMovement_exports, {
2417
+ default: () => Repository61
2418
+ });
2419
+ var Repository61 = class {
2420
+ constructor({ api, route, publicRoute }) {
2421
+ this.api = api;
2422
+ this.route = route;
2423
+ this.publicRoute = publicRoute;
2424
+ }
2425
+ async findByProvider({
2426
+ id
2427
+ }) {
2428
+ const response = await this.api.get(`${this.route}${id}`);
2429
+ return response.data;
2430
+ }
2431
+ async findByOwnerId(params) {
2432
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2433
+ return response.data;
2434
+ }
2435
+ async exportCsv(params) {
2436
+ const response = await this.api.get(`${this.route}csv`, { params });
2437
+ return response.data;
2438
+ }
2439
+ getStockCsvUrl({ date, version, format, token }) {
2440
+ const qs = new URLSearchParams();
2441
+ qs.set("date", date.toISOString());
2442
+ qs.set("version", version);
2443
+ qs.set("format", format);
2444
+ qs.set("token", token);
2445
+ return `${this.publicRoute}csv?${qs.toString()}`;
2446
+ }
2447
+ async findStockMovementPaginated(params) {
2448
+ const response = await this.api.get(`${this.route}stock_movement_paginated`, { params });
2449
+ return response.data;
2450
+ }
2451
+ };
2452
+
2453
+ // src/modules/user/zipCode.ts
2454
+ var zipCode_exports = {};
2455
+ __export(zipCode_exports, {
2456
+ default: () => Repository62
2457
+ });
2458
+ var Repository62 = class {
2459
+ constructor({ api, route, publicRoute }) {
2460
+ this.api = api;
2461
+ this.route = route;
2462
+ this.publicRoute = publicRoute;
2463
+ }
2464
+ async create(body) {
2465
+ await this.api.post(`${this.route}`, body);
2466
+ }
2467
+ async findByPostalCode(params) {
2468
+ const response = await this.api.get(`${this.route}`, { params });
2469
+ return response.data;
2470
+ }
2471
+ };
2472
+
2473
+ // src/modules/user/tenant.ts
2474
+ var tenant_exports = {};
2475
+ __export(tenant_exports, {
2476
+ default: () => Repository63
2477
+ });
2478
+ var Repository63 = class {
2479
+ constructor({ api, route, publicRoute }) {
2480
+ this.api = api;
2481
+ this.route = route;
2482
+ this.publicRoute = publicRoute;
2483
+ }
2484
+ async create(body) {
2485
+ const response = await this.api.post(`${this.route}`, body);
2486
+ return response.data;
2487
+ }
2488
+ async find() {
2489
+ const response = await this.api.get(`${this.route}`);
2490
+ return response.data;
2491
+ }
2492
+ async findById(selector) {
2493
+ const response = await this.api.get(`${this.route}${selector.id}`);
2494
+ return response.data;
2495
+ }
2496
+ async update(selector, body) {
2497
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2498
+ return response.data;
2499
+ }
2500
+ };
2501
+
2502
+ // src/modules/supply/preSale.ts
2503
+ var preSale_exports = {};
2504
+ __export(preSale_exports, {
2505
+ default: () => Repository64
2506
+ });
2507
+ var Repository64 = class {
2508
+ constructor({ api, route, publicRoute }) {
2509
+ this.api = api;
2510
+ this.route = route;
2511
+ this.publicRoute = publicRoute;
2512
+ }
2513
+ async find(selector) {
2514
+ const response = await this.api.get(`${this.route}by_user/${selector.created_by}`);
2515
+ return response.data;
2516
+ }
2517
+ async findById(selector) {
2518
+ const response = await this.api.get(`${this.route}${selector.id}`);
2519
+ return response.data;
2520
+ }
2521
+ async findPending() {
2522
+ const response = await this.api.get(`${this.route}pending`);
2523
+ return response.data;
2524
+ }
2525
+ async create(body) {
2526
+ const response = await this.api.post(`${this.route}`, body);
2527
+ return response.data;
2528
+ }
2529
+ async update(selector, body) {
2530
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2531
+ return response.data;
2532
+ }
2533
+ async updatePreSaleQuantity(selector, body) {
2534
+ const response = await this.api.put(`${this.route}${selector.id}/quantity`, body);
2535
+ return response.data;
2536
+ }
2537
+ async removeProduct(selector, body) {
2538
+ const response = await this.api.put(`${this.route}product/${selector.id}`, body);
2539
+ return response.data;
2540
+ }
2541
+ async importToClientProposal(data) {
2542
+ const response = await this.api.post(`${this.route}client_proposal`, data);
2543
+ return response.data;
2544
+ }
2545
+ };
2546
+
2547
+ // src/modules/supply/preSaleProduct.ts
2548
+ var preSaleProduct_exports = {};
2549
+ __export(preSaleProduct_exports, {
2550
+ default: () => Repository65
2551
+ });
2552
+ var Repository65 = class {
2553
+ constructor({ api, route, publicRoute }) {
2554
+ this.api = api;
2555
+ this.route = route;
2556
+ this.publicRoute = publicRoute;
2557
+ }
2558
+ async find() {
2559
+ const response = await this.api.get(`${this.route}`);
2560
+ return response.data;
2561
+ }
2562
+ async findById(selector) {
2563
+ const response = await this.api.get(`${this.route}${selector.id}`);
2564
+ return response.data;
2565
+ }
2566
+ };
2567
+
2568
+ // src/modules/supply/orderManagement.ts
2569
+ var orderManagement_exports = {};
2570
+ __export(orderManagement_exports, {
2571
+ default: () => Repository66
2572
+ });
2573
+ var Repository66 = class {
2574
+ constructor({ api, route, publicRoute }) {
2575
+ this.api = api;
2576
+ this.route = route;
2577
+ this.publicRoute = publicRoute;
2578
+ }
2579
+ async findProviderProducts(params) {
2580
+ const response = await this.api.get(`${this.route}provider_products`, {
2581
+ params
2582
+ });
2583
+ return response.data;
2584
+ }
2585
+ async findAllProviderProducts() {
2586
+ const response = await this.api.get(`${this.route}all_provider_products`);
2587
+ return response.data;
2588
+ }
2589
+ };
2590
+
2591
+ // src/modules/print/npc.ts
2592
+ var npc_exports = {};
2593
+ __export(npc_exports, {
2594
+ default: () => Repository67
2595
+ });
2596
+ var Repository67 = class {
2597
+ constructor({ api, route, publicRoute }) {
2598
+ this.api = api;
2599
+ this.route = route;
2600
+ this.publicRoute = publicRoute;
2601
+ }
2602
+ async find() {
2603
+ const response = await this.api.get(`${this.route}`);
2604
+ return response.data;
2605
+ }
2606
+ async update(selector, body) {
2607
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2608
+ return response.data;
2609
+ }
2610
+ async findPrintJobsForComputerId(selector) {
2611
+ const response = await this.api.get(
2612
+ `${this.route}find_print_jobs_for_computer_id/${selector.computer_id}`
2613
+ );
2614
+ return response.data;
2615
+ }
2616
+ };
2617
+
2618
+ // src/modules/print/printer.ts
2619
+ var printer_exports = {};
2620
+ __export(printer_exports, {
2621
+ default: () => Repository68
2622
+ });
2623
+ var Repository68 = class {
2624
+ constructor({ api, route, publicRoute }) {
2625
+ this.api = api;
2626
+ this.route = route;
2627
+ this.publicRoute = publicRoute;
2628
+ }
2629
+ async find() {
2630
+ const response = await this.api.get(`${this.route}`);
2631
+ return response.data;
2632
+ }
2633
+ async findByOwnerId(params) {
2634
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2635
+ return response.data;
2636
+ }
2637
+ async update(selector, body) {
2638
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2639
+ return response.data;
2640
+ }
2641
+ async updateMany(body) {
2642
+ await this.api.put(`${this.route}update_many`, body);
2643
+ }
2644
+ async getOrSetPrinters(body) {
2645
+ const response = await this.api.post(`${this.route}get_or_set_printers`, body);
2646
+ return response.data;
2647
+ }
2648
+ };
2649
+
2650
+ // src/modules/print/schedulePrintJob.ts
2651
+ var schedulePrintJob_exports = {};
2652
+ __export(schedulePrintJob_exports, {
2653
+ default: () => Repository69
2654
+ });
2655
+ var Repository69 = class {
2656
+ constructor({ api, route, publicRoute }) {
2657
+ this.api = api;
2658
+ this.route = route;
2659
+ this.publicRoute = publicRoute;
2660
+ }
2661
+ async create(body) {
2662
+ await this.api.post(`${this.route}`, body);
2663
+ }
2664
+ async createMany(body) {
2665
+ await this.api.post(`${this.route}many`, body);
2666
+ }
2667
+ async deleteOne(selector) {
2668
+ await this.api.delete(`${this.route}${selector.id}`);
2669
+ }
2670
+ async dispatchSchedulePrintJob(body) {
2671
+ const response = await this.api.post(`${this.route}dispatch_schedule_print_job`, body);
2672
+ return response.data;
2673
+ }
2674
+ async findByOwner(params) {
2675
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2676
+ return response.data;
2677
+ }
2678
+ };
2679
+
2680
+ // src/modules/stock/queryList.ts
2681
+ var queryList_exports = {};
2682
+ __export(queryList_exports, {
2683
+ default: () => Repository70
2684
+ });
2685
+ var Repository70 = class {
2686
+ constructor({ api, route, publicRoute }) {
2687
+ this.api = api;
2688
+ this.route = route;
2689
+ this.publicRoute = publicRoute;
2690
+ }
2691
+ async find() {
2692
+ const response = await this.api.get(`${this.route}`);
2693
+ return response.data;
2694
+ }
2695
+ async findById(selector) {
2696
+ const response = await this.api.get(`${this.route}${selector.id}`);
2697
+ return response.data;
2698
+ }
2699
+ async create(body) {
2700
+ const response = await this.api.post(`${this.route}`, body);
2701
+ return response.data;
2702
+ }
2703
+ async update(selector, body) {
2704
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2705
+ return response.data;
2706
+ }
2707
+ async deleteOne(selector) {
2708
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2709
+ return response.data;
2710
+ }
2711
+ async execute(params) {
2712
+ const response = await this.api.get(`${this.route}execute`, { params });
2713
+ return response.data;
2714
+ }
2715
+ getQueryExecuteUrl({ query_id, output, token, ...data }) {
2716
+ const qs = new URLSearchParams();
2717
+ qs.set("query_id", query_id);
2718
+ qs.set("output", output);
2719
+ if (token) {
2720
+ qs.set("token", token);
2721
+ }
2722
+ Object.entries(data).forEach(([key, value]) => {
2723
+ if (typeof value === "undefined") return;
2724
+ if (value === null) return;
2725
+ qs.set(key, value.toString());
2726
+ });
2727
+ return `${this.route}execute?${qs.toString()}`;
2728
+ }
2729
+ };
2730
+
2731
+ // src/modules/stock/queryParameter.ts
2732
+ var queryParameter_exports = {};
2733
+ __export(queryParameter_exports, {
2734
+ default: () => Repository71
2735
+ });
2736
+ var Repository71 = class {
2737
+ constructor({ api, route, publicRoute }) {
2738
+ this.api = api;
2739
+ this.route = route;
2740
+ this.publicRoute = publicRoute;
2741
+ }
2742
+ async find() {
2743
+ const response = await this.api.get(`${this.route}`);
2744
+ return response.data;
2745
+ }
2746
+ async findById(selector) {
2747
+ const response = await this.api.get(`${this.route}${selector.id}`);
2748
+ return response.data;
2749
+ }
2750
+ async create(body) {
2751
+ const response = await this.api.post(`${this.route}`, body);
2752
+ return response.data;
2753
+ }
2754
+ async update(selector, body) {
2755
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2756
+ return response.data;
2757
+ }
2758
+ async deleteOne(selector) {
2759
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2760
+ return response.data;
2761
+ }
2762
+ async findByOwnerId(params) {
2763
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2764
+ return response.data;
2765
+ }
2766
+ };
2767
+
2768
+ // src/modules/stock/returnReason.ts
2769
+ var returnReason_exports = {};
2770
+ __export(returnReason_exports, {
2771
+ default: () => Repository72
2772
+ });
2773
+ var Repository72 = class {
2774
+ constructor({ api, route, publicRoute }) {
2775
+ this.api = api;
2776
+ this.route = route;
2777
+ this.publicRoute = publicRoute;
2778
+ }
2779
+ async create(body) {
2780
+ const response = await this.api.post(`${this.route}`, body);
2781
+ return response.data;
2782
+ }
2783
+ async update(selector, body) {
2784
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2785
+ return response.data;
2786
+ }
2787
+ async find() {
2788
+ const response = await this.api.get(`${this.route}`);
2789
+ return response.data;
2790
+ }
2791
+ async deleteOne(selector) {
2792
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2793
+ return response.data;
2794
+ }
2795
+ };
2796
+
2797
+ // src/modules/document/propostaSheets.ts
2798
+ var propostaSheets_exports = {};
2799
+ __export(propostaSheets_exports, {
2800
+ default: () => Repository73
2801
+ });
2802
+ var Repository73 = class {
2803
+ constructor({ api, route, publicRoute }) {
2804
+ this.api = api;
2805
+ this.route = route;
2806
+ this.publicRoute = publicRoute;
2807
+ }
2808
+ async isProcessing(params) {
2809
+ const response = await this.api.get(`${this.route}is_processing`, {
2810
+ params
2811
+ });
2812
+ return response.data;
2813
+ }
2814
+ async importFromSheet(params) {
2815
+ const response = await this.api.post(`${this.route}import_from_sheet`, {
2816
+ params
2817
+ });
2818
+ return response.data;
2819
+ }
2820
+ async createSheetFromDocument(params) {
2821
+ const response = await this.api.post(`${this.route}create_sheet_from_document`, params);
2822
+ return response.data;
2823
+ }
2824
+ async cloneSheetsToNewDocument(params) {
2825
+ const response = await this.api.post(`${this.route}clone_sheet_to_new_document`, params);
2826
+ return response.data;
2827
+ }
2828
+ async conflictAccept(params) {
2829
+ await this.api.post(`${this.route}conflict_accept`, params);
2830
+ }
2831
+ async conflictDelete(data) {
2832
+ await this.api.delete(`${this.route}conflict_delete`, {
2833
+ data
2834
+ });
2835
+ }
2836
+ async conflictFindByOwnerId(params) {
2837
+ const response = await this.api.get(`${this.route}conflict_find_by_owner_id`, {
2838
+ params
2839
+ });
2840
+ return response.data;
2841
+ }
2842
+ async rmGetDataBySheetId(params) {
2843
+ const response = await this.api.get(`${this.route}rm_data_by_sheet_id/${params.id}`);
2844
+ return response.data;
2845
+ }
2846
+ async rmUpdateDataBySheetId(params, body) {
2847
+ await this.api.post(`${this.route}rm_data_by_sheet_id/${params.id}`, body);
2848
+ }
2849
+ };
2850
+
2851
+ // src/modules/stock/schedule.ts
2852
+ var schedule_exports = {};
2853
+ __export(schedule_exports, {
2854
+ default: () => Repository74
2855
+ });
2856
+ var Repository74 = class {
2857
+ constructor({ api, route, publicRoute }) {
2858
+ this.api = api;
2859
+ this.route = route;
2860
+ this.publicRoute = publicRoute;
2861
+ }
2862
+ async runImmediately(selector) {
2863
+ await this.api.post(`${this.route}${selector.scheduleType}`);
2864
+ }
2865
+ };
2866
+
2867
+ // src/modules/integration/googleFilePermission.ts
2868
+ var googleFilePermission_exports = {};
2869
+ __export(googleFilePermission_exports, {
2870
+ default: () => Repository75
2871
+ });
2872
+ var Repository75 = class {
2873
+ constructor({ api, route, publicRoute }) {
2874
+ this.api = api;
2875
+ this.route = route;
2876
+ this.publicRoute = publicRoute;
2877
+ }
2878
+ async create(body) {
2879
+ const response = await this.api.post(`${this.route}`, body);
2880
+ return response.data;
2881
+ }
2882
+ async find() {
2883
+ const response = await this.api.get(`${this.route}`);
2884
+ return response.data;
2885
+ }
2886
+ async findById(selector) {
2887
+ const response = await this.api.get(`${this.route}${selector.id}`);
2888
+ return response.data;
2889
+ }
2890
+ async deleteOne(selector) {
2891
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2892
+ return response.data;
2893
+ }
2894
+ };
2895
+
2896
+ // src/modules/integration/settings.ts
2897
+ var settings_exports = {};
2898
+ __export(settings_exports, {
2899
+ default: () => Repository76
2900
+ });
2901
+ var Repository76 = class {
2902
+ constructor({ api, route, publicRoute }) {
2903
+ this.api = api;
2904
+ this.route = route;
2905
+ this.publicRoute = publicRoute;
2906
+ }
2907
+ async create(body) {
2908
+ const response = await this.api.post(`${this.route}`, body);
2909
+ return response.data;
2910
+ }
2911
+ async findByKey(params) {
2912
+ const response = await this.api.get(`${this.publicRoute}by_key`, {
2913
+ params
2914
+ });
2915
+ return response.data;
2916
+ }
2917
+ async update(body) {
2918
+ const response = await this.api.put(`${this.route}`, body);
2919
+ return response.data;
2920
+ }
2921
+ async deleteOne(selector) {
2922
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2923
+ return response.data;
2924
+ }
2925
+ async find() {
2926
+ const response = await this.api.get(`${this.route}`);
2927
+ return response.data;
2928
+ }
2929
+ };
2930
+
2931
+ // src/modules/tickets/tickets.ts
2932
+ var tickets_exports = {};
2933
+ __export(tickets_exports, {
2934
+ default: () => Repository77
2935
+ });
2936
+ var Repository77 = class {
2937
+ constructor({ api, route, publicRoute }) {
2938
+ this.api = api;
2939
+ this.route = route;
2940
+ this.publicRoute = publicRoute;
2941
+ }
2942
+ async create(body) {
2943
+ const response = await this.api.post(`${this.route}`, body);
2944
+ return response.data;
2945
+ }
2946
+ async findToday() {
2947
+ const response = await this.api.get(`${this.route}find_today`);
2948
+ return response.data;
2949
+ }
2950
+ async update(body) {
2951
+ const response = await this.api.put(`${this.route}`, body);
2952
+ return response.data;
2953
+ }
2954
+ async undoLastCall() {
2955
+ const response = await this.api.put(`${this.route}undo_last_call`);
2956
+ return response.data;
2957
+ }
2958
+ };
2959
+
2960
+ // src/modules/tickets/channel.ts
2961
+ var channel_exports = {};
2962
+ __export(channel_exports, {
2963
+ default: () => Repository78
2964
+ });
2965
+ var Repository78 = class {
2966
+ constructor({ api, route, publicRoute }) {
2967
+ this.api = api;
2968
+ this.route = route;
2969
+ this.publicRoute = publicRoute;
2970
+ }
2971
+ async create(body) {
2972
+ const response = await this.api.post(`${this.route}`, body);
2973
+ return response.data;
2974
+ }
2975
+ async find() {
2976
+ const response = await this.api.get(`${this.route}`);
2977
+ return response.data;
2978
+ }
2979
+ async findMinified(params) {
2980
+ const response = await this.api.get(`${this.route}minified`, {
2981
+ params
2982
+ });
2983
+ return response.data;
2984
+ }
2985
+ async findById(id) {
2986
+ const response = await this.api.get(`${this.route}${id}`);
2987
+ return response.data;
2988
+ }
2989
+ async update(id, body) {
2990
+ await this.api.post(`${this.route}${id}`, body);
2991
+ }
2992
+ async deleteOne(id) {
2993
+ await this.api.delete(`${this.route}${id}`);
2994
+ }
2995
+ };
2996
+
2997
+ // src/modules/tickets/language.ts
2998
+ var language_exports2 = {};
2999
+ __export(language_exports2, {
3000
+ default: () => Repository79
3001
+ });
3002
+ var Repository79 = class {
3003
+ constructor({ api, route, publicRoute }) {
3004
+ this.api = api;
3005
+ this.route = route;
3006
+ this.publicRoute = publicRoute;
3007
+ }
3008
+ async create(body) {
3009
+ const response = await this.api.post(`${this.route}`, body);
3010
+ return response.data;
3011
+ }
3012
+ async find() {
3013
+ const response = await this.api.get(`${this.route}`);
3014
+ return response.data;
3015
+ }
3016
+ async findMinified(params) {
3017
+ const response = await this.api.get(`${this.route}minified`, {
3018
+ params
3019
+ });
3020
+ return response.data;
3021
+ }
3022
+ async findById(id) {
3023
+ const response = await this.api.get(`${this.route}${id}`);
3024
+ return response.data;
3025
+ }
3026
+ async update(id, body) {
3027
+ await this.api.post(`${this.route}${id}`, body);
3028
+ }
3029
+ async deleteOne(id) {
3030
+ await this.api.delete(`${this.route}${id}`);
3031
+ }
3032
+ };
3033
+
3034
+ // src/modules/tickets/clt.ts
3035
+ var clt_exports = {};
3036
+ __export(clt_exports, {
3037
+ default: () => Repository80
3038
+ });
3039
+ var Repository80 = class {
3040
+ constructor({ api, route, publicRoute }) {
3041
+ this.api = api;
3042
+ this.route = route;
3043
+ this.publicRoute = publicRoute;
3044
+ }
3045
+ async create(body) {
3046
+ const response = await this.api.post(`${this.route}`, body);
3047
+ return response.data;
3048
+ }
3049
+ async find() {
3050
+ const response = await this.api.get(`${this.route}`);
3051
+ return response.data;
3052
+ }
3053
+ async findMinified(params) {
3054
+ const response = await this.api.get(`${this.route}minified`, {
3055
+ params
3056
+ });
3057
+ return response.data;
3058
+ }
3059
+ async findById(id) {
3060
+ const response = await this.api.get(`${this.route}${id}`);
3061
+ return response.data;
3062
+ }
3063
+ async update(id, body) {
3064
+ await this.api.post(`${this.route}${id}`, body);
3065
+ }
3066
+ async deleteOne(id) {
3067
+ await this.api.delete(`${this.route}${id}`);
3068
+ }
3069
+ };
3070
+
3071
+ // src/modules/supply/startDocumentHeaderLastUpdate.ts
3072
+ var startDocumentHeaderLastUpdate_exports = {};
3073
+ __export(startDocumentHeaderLastUpdate_exports, {
3074
+ default: () => Repository81
3075
+ });
3076
+ var Repository81 = class {
3077
+ constructor({ api, route, publicRoute }) {
3078
+ this.api = api;
3079
+ this.route = route;
3080
+ this.publicRoute = publicRoute;
3081
+ }
3082
+ async findById(selector) {
3083
+ const response = await this.api.get(`${this.route}${selector.id}`);
3084
+ return response.data;
3085
+ }
3086
+ };
3087
+
3088
+ // src/modules/user/persona.ts
3089
+ var persona_exports = {};
3090
+ __export(persona_exports, {
3091
+ default: () => Repository82
3092
+ });
3093
+ var Repository82 = class {
3094
+ constructor({ api, route, publicRoute }) {
3095
+ this.api = api;
3096
+ this.route = route;
3097
+ this.publicRoute = publicRoute;
3098
+ }
3099
+ async findByOwnerId(params) {
3100
+ const response = await this.api.get(`${this.route}by_owner`, {
3101
+ params
3102
+ });
3103
+ return response.data;
3104
+ }
3105
+ async findById(selector) {
3106
+ const response = await this.api.get(`${this.route}${selector.id}`);
3107
+ return response.data;
3108
+ }
3109
+ async findContactPersonaByOwnerId(params) {
3110
+ const response = await this.api.get(`${this.route}contact`, { params });
3111
+ return response.data;
3112
+ }
3113
+ async create(body) {
3114
+ const response = await this.api.post(`${this.route}`, body);
3115
+ return response.data;
3116
+ }
3117
+ async update(selector, body) {
3118
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
3119
+ return response.data;
3120
+ }
3121
+ async deleteOne(params) {
3122
+ const response = await this.api.delete(`${this.route}`, { params });
3123
+ return response.data;
3124
+ }
3125
+ async findByBasic(params) {
3126
+ const response = await this.api.get(`${this.route}basic_search`, {
3127
+ params
3128
+ });
3129
+ return response.data;
3130
+ }
3131
+ async find(data) {
3132
+ const response = await this.api.get(`${this.route}`, {
3133
+ data
3134
+ });
3135
+ return response.data;
3136
+ }
3137
+ async findByEmail(data) {
3138
+ const response = await this.api.get(`${this.route}by_email`, {
3139
+ data
3140
+ });
3141
+ return response.data;
3142
+ }
3143
+ async findClientOrProvider(params) {
3144
+ const response = await this.api.get(`${this.route}find_client_or_provider`, { params });
3145
+ return response.data;
3146
+ }
3147
+ async findForGmail(params) {
3148
+ const response = await this.api.get(`${this.route}for_gmail`, { params });
3149
+ return response.data;
3150
+ }
3151
+ };
3152
+
3153
+ // src/modules/integration/projectInfo.ts
3154
+ var projectInfo_exports = {};
3155
+ __export(projectInfo_exports, {
3156
+ default: () => Repository83
3157
+ });
3158
+ var Repository83 = class {
3159
+ constructor({ api, route, publicRoute }) {
3160
+ this.api = api;
3161
+ this.route = route;
3162
+ this.publicRoute = publicRoute;
3163
+ }
3164
+ async sendEmail(body) {
3165
+ await this.api.post(`${this.route}sendEmail`, body);
3166
+ }
3167
+ };
3168
+
3169
+ // src/modules/document/order.ts
3170
+ var order_exports = {};
3171
+ __export(order_exports, {
3172
+ default: () => Repository84
3173
+ });
3174
+ var Repository84 = class {
3175
+ constructor({ api, route, publicRoute }) {
3176
+ this.api = api;
3177
+ this.route = route;
3178
+ this.publicRoute = publicRoute;
3179
+ }
3180
+ async unsetCativado(params) {
3181
+ const response = await this.api.post(`${this.route}unset_cativado`, {
3182
+ params
3183
+ });
3184
+ return response.data;
3185
+ }
3186
+ async setProvider(data) {
3187
+ await this.api.post(`${this.route}set_provider`, data);
3188
+ }
3189
+ async unsetProvider({ id }) {
3190
+ await this.api.post(`${this.route}${id}/unset_provider`);
3191
+ }
3192
+ async unlinkFromProviderOrder(data) {
3193
+ await this.api.post(`${this.route}undo_encomenda_stock`, data);
3194
+ }
3195
+ async undoProviderOrder(data) {
3196
+ await this.api.post(`${this.route}undo_provider_order`, data);
3197
+ }
3198
+ async conferirEncomendaCliente(data) {
3199
+ const response = await this.api.post(`${this.route}check_client_order`, data);
3200
+ return response.data;
3201
+ }
3202
+ async find(params) {
3203
+ const response = await this.api.get(`${this.route}`, { params });
3204
+ return response.data;
3205
+ }
3206
+ };
3207
+
3208
+ // src/modules/document/purchase.ts
3209
+ var purchase_exports = {};
3210
+ __export(purchase_exports, {
3211
+ default: () => Repository85
3212
+ });
3213
+ var Repository85 = class {
3214
+ constructor({ api, route, publicRoute }) {
3215
+ this.api = api;
3216
+ this.route = route;
3217
+ this.publicRoute = publicRoute;
3218
+ }
3219
+ async purchaseFromProvider(data) {
3220
+ await this.api.post(`${this.route}purchase_from_provider`, data);
3221
+ }
3222
+ async findUnpaidMaterialEntrance(params) {
3223
+ const response = await this.api.get(`${this.route}unpaid_material_entrance`, {
3224
+ params
3225
+ });
3226
+ return response.data;
3227
+ }
3228
+ async findUnpaidMaterialEntranceProviders() {
3229
+ const response = await this.api.get(`${this.route}unpaid_material_entrance_providers`);
3230
+ return response.data;
3231
+ }
3232
+ async sync(data) {
3233
+ const response = await this.api.post(`${this.route}sync`, data);
3234
+ return response.data;
3235
+ }
3236
+ };
3237
+
3238
+ // src/modules/document/materialEntrance.ts
3239
+ var materialEntrance_exports = {};
3240
+ __export(materialEntrance_exports, {
3241
+ default: () => Repository86
3242
+ });
3243
+ var Repository86 = class {
3244
+ constructor({ api, route, publicRoute }) {
3245
+ this.api = api;
3246
+ this.route = route;
3247
+ this.publicRoute = publicRoute;
3248
+ }
3249
+ async findMaterialEntranceProviders() {
3250
+ const response = await this.api.get(`${this.route}material_entrance_providers`);
3251
+ return response.data;
3252
+ }
3253
+ async findUnfinishedPickings({
3254
+ id
3255
+ }) {
3256
+ const response = await this.api.get(`${this.route}unfinished_pickings/${id}`);
3257
+ return response.data;
3258
+ }
3259
+ async finalizarEntradaMaterial(data) {
3260
+ const response = await this.api.post(`${this.route}finalize_material_entrance`, data);
3261
+ return response.data;
3262
+ }
3263
+ async undoEntradaMaterial(data) {
3264
+ await this.api.post(`${this.route}undo_material_entrance`, data);
3265
+ }
3266
+ printLabelToPdfUrl({ product_id }, {
3267
+ quantity,
3268
+ ef_name,
3269
+ pc_document_number,
3270
+ prison,
3271
+ note
3272
+ }, token) {
3273
+ const qs = new URLSearchParams();
3274
+ qs.set("ef_name", ef_name);
3275
+ qs.set("quantity", quantity.toString());
3276
+ if (pc_document_number) {
3277
+ qs.set("pc_document_number", pc_document_number.toString());
3278
+ }
3279
+ if (note) {
3280
+ qs.set("note", note.toString());
3281
+ }
3282
+ qs.set("prison", prison.toString());
3283
+ qs.set("token", token);
3284
+ return `${this.publicRoute}print_label_pdf/${product_id}?${qs.toString()}`;
3285
+ }
3286
+ printBulkLabelToPdfUrl({
3287
+ groupLabel,
3288
+ saved_em_picking_ids,
3289
+ token
3290
+ }) {
3291
+ const qs = new URLSearchParams();
3292
+ qs.set("groupLabel", groupLabel.toString());
3293
+ qs.set("saved_em_picking_ids", saved_em_picking_ids);
3294
+ qs.set("token", token);
3295
+ return `${this.publicRoute}print_bulk_label_pdf?${qs.toString()}`;
3296
+ }
3297
+ };
3298
+
3299
+ // src/modules/document/transformado.ts
3300
+ var transformado_exports = {};
3301
+ __export(transformado_exports, {
3302
+ default: () => Repository87
3303
+ });
3304
+ var Repository87 = class {
3305
+ constructor({ api, route, publicRoute }) {
3306
+ this.api = api;
3307
+ this.route = route;
3308
+ this.publicRoute = publicRoute;
3309
+ }
3310
+ async transformar(body) {
3311
+ const response = await this.api.post(`${this.route}transformar`, body);
3312
+ return response.data;
3313
+ }
3314
+ async destransformar(body) {
3315
+ const response = await this.api.post(`${this.route}destransformar`, body);
3316
+ return response.data;
3317
+ }
3318
+ };
3319
+
3320
+ // src/modules/document/upfrontReturn.ts
3321
+ var upfrontReturn_exports = {};
3322
+ __export(upfrontReturn_exports, {
3323
+ default: () => Repository88
3324
+ });
3325
+ var Repository88 = class {
3326
+ constructor({ api, route, publicRoute }) {
3327
+ this.api = api;
3328
+ this.route = route;
3329
+ this.publicRoute = publicRoute;
3330
+ }
3331
+ async create(selector, data) {
3332
+ const response = await this.api.post(`${this.route}${selector.id}`, data);
3333
+ return response.data;
3334
+ }
3335
+ };
3336
+
3337
+ // src/modules/stock/savedEmPicking.ts
3338
+ var savedEmPicking_exports = {};
3339
+ __export(savedEmPicking_exports, {
3340
+ default: () => Repository89
3341
+ });
3342
+ var Repository89 = class {
3343
+ constructor({ api, route, publicRoute }) {
3344
+ this.api = api;
3345
+ this.route = route;
3346
+ this.publicRoute = publicRoute;
3347
+ }
3348
+ async create(body) {
3349
+ const response = await this.api.post(`${this.route}`, body);
3350
+ return response.data;
3351
+ }
3352
+ async createMany(body) {
3353
+ const response = await this.api.post(`${this.route}many`, body);
3354
+ return response.data;
3355
+ }
3356
+ async deleteOne(selector) {
3357
+ await this.api.delete(`${this.route}${selector.id}`);
3358
+ }
3359
+ async deleteMany(body) {
3360
+ await this.api.post(`${this.route}delete_many`, body);
3361
+ }
3362
+ };
3363
+
3364
+ // src/modules/integration/emailTemplate.ts
3365
+ var emailTemplate_exports = {};
3366
+ __export(emailTemplate_exports, {
3367
+ default: () => Repository90
3368
+ });
3369
+ var Repository90 = class {
3370
+ constructor({ api, route, publicRoute }) {
3371
+ this.api = api;
3372
+ this.route = route;
3373
+ this.publicRoute = publicRoute;
3374
+ }
3375
+ async find() {
3376
+ const response = await this.api.get(`${this.route}`);
3377
+ return response.data;
3378
+ }
3379
+ async create(data) {
3380
+ const response = await this.api.post(`${this.route}`, data);
3381
+ return response.data;
3382
+ }
3383
+ async update(selector, data) {
3384
+ const response = await this.api.put(`${this.route}${selector.id}`, data);
3385
+ return response.data;
3386
+ }
3387
+ async deleteOne(selector) {
3388
+ await this.api.delete(`${this.route}${selector.id}`);
3389
+ }
3390
+ async send(data) {
3391
+ const response = await this.api.post(`${this.route}send`, data);
3392
+ return response.data;
3393
+ }
3394
+ };
3395
+
3396
+ // src/modules/integration/emailTemplateAttachment.ts
3397
+ var emailTemplateAttachment_exports = {};
3398
+ __export(emailTemplateAttachment_exports, {
3399
+ default: () => Repository91
3400
+ });
3401
+ var Repository91 = class {
3402
+ constructor({ api, route, publicRoute }) {
3403
+ this.api = api;
3404
+ this.route = route;
3405
+ this.publicRoute = publicRoute;
3406
+ }
3407
+ async create(data) {
3408
+ const response = await this.api.post(`${this.route}`, data);
3409
+ return response.data;
3410
+ }
3411
+ async deleteOne(selector) {
3412
+ await this.api.delete(`${this.route}${selector.id}`);
3413
+ }
3414
+ };
3415
+
3416
+ // src/modules/stock/prison.ts
3417
+ var prison_exports = {};
3418
+ __export(prison_exports, {
3419
+ default: () => Repository92
3420
+ });
3421
+ var Repository92 = class {
3422
+ constructor({ api, route, publicRoute }) {
3423
+ this.api = api;
3424
+ this.route = route;
3425
+ this.publicRoute = publicRoute;
3426
+ }
3427
+ async putLineInPrison(data) {
3428
+ const response = await this.api.post(`${this.route}put_in_prison`, data);
3429
+ return response.data;
3430
+ }
3431
+ async removeLineFromPrison(data) {
3432
+ const response = await this.api.post(`${this.route}remove_from_prison`, data);
3433
+ return response.data;
3434
+ }
3435
+ async findLinesInPrison() {
3436
+ const response = await this.api.get(`${this.route}in_prison`, {});
3437
+ return response.data;
3438
+ }
3439
+ async findLinesInPrisonProviders() {
3440
+ const response = await this.api.get(`${this.route}in_prison_providers`, {});
3441
+ return response.data;
3442
+ }
3443
+ async checkLinesInPrison(data) {
3444
+ await this.api.post(`${this.route}check_in_prison`, data);
3445
+ }
3446
+ async createLinesInPrison(data) {
3447
+ const response = await this.api.post(`${this.route}create_lines`, data);
3448
+ return response.data;
3449
+ }
3450
+ };
3451
+
3452
+ // src/modules/document/quebra.ts
3453
+ var quebra_exports = {};
3454
+ __export(quebra_exports, {
3455
+ default: () => Repository93
3456
+ });
3457
+ var Repository93 = class {
3458
+ constructor({ api, route, publicRoute }) {
3459
+ this.api = api;
3460
+ this.route = route;
3461
+ this.publicRoute = publicRoute;
3462
+ }
3463
+ async findInventoryLosses() {
3464
+ const response = await this.api.get(`${this.route}`);
3465
+ return response.data;
3466
+ }
3467
+ async findInventoryLossesProviders() {
3468
+ const response = await this.api.get(`${this.route}providers`);
3469
+ return response.data;
3470
+ }
3471
+ async create(body) {
3472
+ const response = await this.api.post(`${this.route}`, body);
3473
+ return response.data;
3474
+ }
3475
+ async createMany(body) {
3476
+ const response = await this.api.post(`${this.route}create_many`, body);
3477
+ return response.data;
3478
+ }
3479
+ async deleteInventoryLosses(data) {
3480
+ await this.api.delete(`${this.route}inventory_loss`, { data });
3481
+ }
3482
+ };
3483
+
3484
+ // src/modules/document/inventario.ts
3485
+ var inventario_exports = {};
3486
+ __export(inventario_exports, {
3487
+ default: () => Repository94
3488
+ });
3489
+ var Repository94 = class {
3490
+ constructor({ api, route, publicRoute }) {
3491
+ this.api = api;
3492
+ this.route = route;
3493
+ this.publicRoute = publicRoute;
3494
+ }
3495
+ async createInventory(data) {
3496
+ await this.api.post(`${this.route}`, data);
3497
+ }
3498
+ };
3499
+
3500
+ // src/modules/document/returnToProvider.ts
3501
+ var returnToProvider_exports = {};
3502
+ __export(returnToProvider_exports, {
3503
+ default: () => Repository95
3504
+ });
3505
+ var Repository95 = class {
3506
+ constructor({ api, route, publicRoute }) {
3507
+ this.api = api;
3508
+ this.route = route;
3509
+ this.publicRoute = publicRoute;
3510
+ }
3511
+ async findLinesToReturn(params) {
3512
+ const response = await this.api.get(`${this.route}lines_to_return`, {
3513
+ params
3514
+ });
3515
+ return response.data;
3516
+ }
3517
+ async findLinesToReturnProviders() {
3518
+ const response = await this.api.get(`${this.route}lines_to_return_providers`);
3519
+ return response.data;
3520
+ }
3521
+ async checkLinesToReturn(data) {
3522
+ await this.api.post(`${this.route}check_to_return`, data);
3523
+ }
3524
+ };
3525
+
3526
+ // src/modules/integration/emailVerification.ts
3527
+ var emailVerification_exports = {};
3528
+ __export(emailVerification_exports, {
3529
+ default: () => Repository96
3530
+ });
3531
+ var Repository96 = class {
3532
+ constructor({ api, route, publicRoute }) {
3533
+ this.api = api;
3534
+ this.route = route;
3535
+ this.publicRoute = publicRoute;
3536
+ }
3537
+ async isVerified(params) {
3538
+ const response = await this.api.get(`${this.route}`, { params });
3539
+ return response.data;
3540
+ }
3541
+ async sendVerificationEmail(data) {
3542
+ const response = await this.api.post(`${this.route}`, data);
3543
+ return response.data;
3544
+ }
3545
+ async markAsVerified(data) {
3546
+ const response = await this.api.put(`${this.publicRoute}`, data);
3547
+ return response.data;
3548
+ }
3549
+ };
3550
+
3551
+ // src/modules/integration/emailLog.ts
3552
+ var emailLog_exports = {};
3553
+ __export(emailLog_exports, {
3554
+ default: () => Repository97
3555
+ });
3556
+ var Repository97 = class {
3557
+ constructor({ api, route, publicRoute }) {
3558
+ this.api = api;
3559
+ this.route = route;
3560
+ this.publicRoute = publicRoute;
3561
+ }
3562
+ async find(params) {
3563
+ const response = await this.api.get(`${this.route}`, { params });
3564
+ return response.data;
3565
+ }
3566
+ async findById({
3567
+ id
3568
+ }) {
3569
+ const response = await this.api.get(`${this.route}${id}`);
3570
+ return response.data;
3571
+ }
3572
+ async findByDocumentHeaderId({
3573
+ id
3574
+ }) {
3575
+ const response = await this.api.get(`${this.route}document_header/${id}`);
3576
+ return response.data;
3577
+ }
3578
+ async checkSent(body) {
3579
+ const response = await this.api.post(`${this.route}check_sent`, body);
3580
+ return response.data;
3581
+ }
3582
+ };
3583
+
3584
+ // src/modules/supply/documentLineNote.ts
3585
+ var documentLineNote_exports = {};
3586
+ __export(documentLineNote_exports, {
3587
+ default: () => Repository98
3588
+ });
3589
+ var Repository98 = class {
3590
+ constructor({ api, route, publicRoute }) {
3591
+ this.api = api;
3592
+ this.route = route;
3593
+ this.publicRoute = publicRoute;
3594
+ }
3595
+ async create(body) {
3596
+ const response = await this.api.post(`${this.route}`, body);
3597
+ return response.data;
3598
+ }
3599
+ async update(selector, body) {
3600
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
3601
+ return response.data;
3602
+ }
3603
+ async deleteOne(selector) {
3604
+ const response = await this.api.delete(`${this.route}${selector.id}`);
3605
+ return response.data;
3606
+ }
3607
+ };
3608
+
3609
+ // src/modules/stock/savedProviderProposal.ts
3610
+ var savedProviderProposal_exports = {};
3611
+ __export(savedProviderProposal_exports, {
3612
+ default: () => Repository99
3613
+ });
3614
+ var Repository99 = class {
3615
+ constructor({ api, route, publicRoute }) {
3616
+ this.api = api;
3617
+ this.route = route;
3618
+ this.publicRoute = publicRoute;
3619
+ }
3620
+ async findByProviderId(selector) {
3621
+ const response = await this.api.get(`${this.route}${selector.id}`);
3622
+ return response.data;
3623
+ }
3624
+ async create(body) {
3625
+ const response = await this.api.post(`${this.route}`, body);
3626
+ return response.data;
3627
+ }
3628
+ async update(selector, body) {
3629
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
3630
+ return response.data;
3631
+ }
3632
+ async deleteOne(selector) {
3633
+ const response = await this.api.delete(`${this.route}${selector.id}`);
3634
+ return response.data;
3635
+ }
3636
+ };
3637
+
3638
+ // src/modules/stock/productGoogleSheets.ts
3639
+ var productGoogleSheets_exports = {};
3640
+ __export(productGoogleSheets_exports, {
3641
+ default: () => Repository100
3642
+ });
3643
+ var Repository100 = class {
3644
+ constructor({ api, route, publicRoute }) {
3645
+ this.api = api;
3646
+ this.route = route;
3647
+ this.publicRoute = publicRoute;
3648
+ }
3649
+ async basicSearch(params) {
3650
+ const response = await this.api.get(`${this.route}basic_search`, {
3651
+ params
3652
+ });
3653
+ return response.data;
3654
+ }
3655
+ async findReferenceAndIdForMobile(params) {
3656
+ const response = await this.api.get(`${this.route}reference_and_id_mobile`, {
3657
+ params
3658
+ });
3659
+ return response.data;
3660
+ }
3661
+ async findDataForMobile(params) {
3662
+ const response = await this.api.get(`${this.route}data_mobile/${params.id}`);
3663
+ return response.data;
3664
+ }
3665
+ async findStockForMobile(params) {
3666
+ const response = await this.api.get(`${this.route}stock_mobile/${params.id}`);
3667
+ return response.data;
3668
+ }
3669
+ async findPreArtigo(params) {
3670
+ const response = await this.api.get(`${this.route}pre_artigo`, {
3671
+ params
3672
+ });
3673
+ return response.data;
3674
+ }
3675
+ async updatePricesFromPreArtigo() {
3676
+ await this.api.get(`${this.route}update_prices_from_pre_artigo`);
3677
+ }
3678
+ async validateByRef(params) {
3679
+ const response = await this.api.get(`${this.route}validate_by_ref`, {
3680
+ params
3681
+ });
3682
+ return response.data;
3683
+ }
3684
+ async findSimilarProductsByName(params) {
3685
+ const response = await this.api.get(`${this.route}similar_products`, {
3686
+ params
3687
+ });
3688
+ return response.data;
3689
+ }
3690
+ async findByProductType(params) {
3691
+ const response = await this.api.get(`${this.route}by_product_type`, {
3692
+ params
3693
+ });
3694
+ return response.data;
3695
+ }
3696
+ async findById({
3697
+ id
3698
+ }) {
3699
+ const response = await this.api.get(`${this.route}${id}`);
3700
+ return response.data;
3701
+ }
3702
+ async findByIdWithStock({
3703
+ id
3704
+ }) {
3705
+ const response = await this.api.get(`${this.route}${id}/with_stock`);
3706
+ return response.data;
3707
+ }
3708
+ async updateGoogleSheetsLinesProduct(body) {
3709
+ const response = await this.api.put(`${this.route}update_google_sheets_lines_product`, body);
3710
+ return response.data;
3711
+ }
3712
+ async googleSheetsFieldsByRef(params) {
3713
+ const response = await this.api.get(
3714
+ `${this.route}google_sheets_fields_by_ref/${params.reference}`
3715
+ );
3716
+ return response.data;
3717
+ }
3718
+ async findRowPositionOnSheetsWithColumns(params) {
3719
+ const response = await this.api.get(`${this.route}sheet_row_and_columns/${params.selector}`);
3720
+ return response.data;
3721
+ }
3722
+ async checkStockByIds(data) {
3723
+ const response = await this.api.post(`${this.route}check_stock_by_ids`, data);
3724
+ return response.data;
3725
+ }
3726
+ async create(body) {
3727
+ const response = await this.api.post(`${this.route}`, body);
3728
+ return response.data;
3729
+ }
3730
+ async update({ id }, body) {
3731
+ await this.api.put(`${this.route}${id}`, body);
3732
+ }
3733
+ async deleteOne(selector) {
3734
+ await this.api.delete(`${this.route}${selector.id}`);
3735
+ }
3736
+ printLabelToPdfUrl({ id }, token) {
3737
+ const qs = new URLSearchParams();
3738
+ qs.set("token", token);
3739
+ return `${this.publicRoute}print_label_pdf/${id}?${qs.toString()}`;
3740
+ }
3741
+ printLabelToPdfBulk(ids, token) {
3742
+ const qs = new URLSearchParams();
3743
+ qs.set("token", token);
3744
+ qs.set("ids", ids.join(","));
3745
+ return `${this.publicRoute}print_label_pdf/bulk?${qs.toString()}`;
3746
+ }
3747
+ async updateDbFromSheets() {
3748
+ await this.api.post(`${this.route}update_db_from_sheets`);
3749
+ }
3750
+ async partialLocation(body) {
3751
+ await this.api.post(`${this.route}partial_location`, body);
3752
+ }
3753
+ async fullLocation(body) {
3754
+ await this.api.post(`${this.route}full_location`, body);
3755
+ }
3756
+ };
3757
+
3758
+ // src/modules/stock/task.ts
3759
+ var task_exports = {};
3760
+ __export(task_exports, {
3761
+ default: () => Repository101
3762
+ });
3763
+ var Repository101 = class {
3764
+ constructor({ api, route, publicRoute }) {
3765
+ this.api = api;
3766
+ this.route = route;
3767
+ this.publicRoute = publicRoute;
3768
+ }
3769
+ async find(selector) {
3770
+ return this.api.get(`${this.route}${selector}`);
3771
+ }
3772
+ async findWithMessages(selector) {
3773
+ return this.api.get(`${this.route}with_messages`, {
3774
+ params: selector
3775
+ });
3776
+ }
3777
+ async create(body) {
3778
+ const response = await this.api.post(`${this.route}`, body);
3779
+ return response.data;
3780
+ }
3781
+ async createFromDossier(body) {
3782
+ const response = await this.api.post(`${this.route}from_dossier`, body);
3783
+ return response.data;
3784
+ }
3785
+ async update(selector, body) {
3786
+ await this.api.put(`${this.route}${selector.id}`, body);
3787
+ }
3788
+ async delete(selector) {
3789
+ await this.api.delete(`${this.route}${selector.id}`);
3790
+ }
3791
+ async findByOwnerId(selector) {
3792
+ const response = await this.api.delete(`${this.route}by_owner/${selector.owner_id}`);
3793
+ return response.data;
3794
+ }
3795
+ };
3796
+
3797
+ // src/modules/stock/taskMessage.ts
3798
+ var taskMessage_exports = {};
3799
+ __export(taskMessage_exports, {
3800
+ default: () => Repository102
3801
+ });
3802
+ var Repository102 = class {
3803
+ constructor({ api, route, publicRoute }) {
3804
+ this.api = api;
3805
+ this.route = route;
3806
+ this.publicRoute = publicRoute;
3807
+ }
3808
+ async create(body) {
3809
+ const response = await this.api.post(`${this.route}`, body);
3810
+ return response.data;
3811
+ }
3812
+ async update(selector, body) {
3813
+ await this.api.put(`${this.route}${selector.id}`, body);
3814
+ }
3815
+ async delete(selector) {
3816
+ await this.api.delete(`${this.route}${selector.id}`);
3817
+ }
3818
+ };
3819
+
3820
+ // src/modules/stock/recurrentTasks.ts
3821
+ var recurrentTasks_exports = {};
3822
+ __export(recurrentTasks_exports, {
3823
+ default: () => Repository103
3824
+ });
3825
+ var Repository103 = class {
3826
+ constructor({ api, route, publicRoute }) {
3827
+ this.api = api;
3828
+ this.route = route;
3829
+ this.publicRoute = publicRoute;
3830
+ }
3831
+ async from_master() {
3832
+ return this.api.post(`${this.route}from_master`);
3833
+ }
3834
+ async from_master_checked() {
3835
+ return this.api.post(`${this.route}from_master`);
3836
+ }
3837
+ };
3838
+
3839
+ // src/modules/stock/taskRead.ts
3840
+ var taskRead_exports = {};
3841
+ __export(taskRead_exports, {
3842
+ default: () => Repository104
3843
+ });
3844
+ var Repository104 = class {
3845
+ constructor({ api, route, publicRoute }) {
3846
+ this.api = api;
3847
+ this.route = route;
3848
+ this.publicRoute = publicRoute;
3849
+ }
3850
+ async create(body) {
3851
+ await this.api.post(`${this.route}`, body);
3852
+ }
3853
+ async delete(params) {
3854
+ await this.api.delete(`${this.route}`, { data: params });
3855
+ }
3856
+ };
3857
+
3858
+ // src/modules/user/theme.ts
3859
+ var theme_exports = {};
3860
+ __export(theme_exports, {
3861
+ default: () => Repository105
3862
+ });
3863
+ var Repository105 = class {
3864
+ constructor({ api, route, publicRoute }) {
3865
+ this.api = api;
3866
+ this.route = route;
3867
+ this.publicRoute = publicRoute;
3868
+ }
3869
+ async createOrUpdate(body) {
3870
+ await this.api.post(`${this.route}`, body);
3871
+ }
3872
+ };
3873
+
3874
+ // src/modules/stock/dashboard.ts
3875
+ var dashboard_exports = {};
3876
+ __export(dashboard_exports, {
3877
+ default: () => Repository106
3878
+ });
3879
+ var Repository106 = class {
3880
+ constructor({ api, route, publicRoute }) {
3881
+ this.api = api;
3882
+ this.route = route;
3883
+ this.publicRoute = publicRoute;
3884
+ }
3885
+ async findByDate(selector) {
3886
+ const response = await this.api.get(`${this.route}${selector.date}`);
3887
+ return response.data;
3888
+ }
3889
+ };
3890
+
3891
+ // src/modules/stock/chatRapidMessage.ts
3892
+ var chatRapidMessage_exports = {};
3893
+ __export(chatRapidMessage_exports, {
3894
+ default: () => Repository107
3895
+ });
3896
+ var Repository107 = class {
3897
+ constructor({ api, route, publicRoute }) {
3898
+ this.api = api;
3899
+ this.route = route;
3900
+ this.publicRoute = publicRoute;
3901
+ }
3902
+ async create(data) {
3903
+ const response = await this.api.post(`${this.route}`, data);
3904
+ return response.data;
3905
+ }
3906
+ async findMinified() {
3907
+ const response = await this.api.get(`${this.route}`);
3908
+ return response.data;
3909
+ }
3910
+ async findById(selector) {
3911
+ const response = await this.api.get(`${this.route}${selector.id}`);
3912
+ return response.data;
3913
+ }
3914
+ async update(selector, data) {
3915
+ const response = await this.api.put(`${this.route}${selector.date}`, data);
3916
+ return response.data;
3917
+ }
3918
+ async delete(selector) {
3919
+ await this.api.delete(`${this.route}${selector.id}`);
3920
+ }
3921
+ };
3922
+
3923
+ // src/modules/stock/sideMenu.ts
3924
+ var sideMenu_exports = {};
3925
+ __export(sideMenu_exports, {
3926
+ default: () => Repository108
3927
+ });
3928
+ var Repository108 = class {
3929
+ constructor({ api, route, publicRoute }) {
3930
+ this.api = api;
3931
+ this.route = route;
3932
+ this.publicRoute = publicRoute;
3933
+ }
3934
+ async findSideMenuStoreOperators() {
3935
+ const response = await this.api.get(`${this.route}side_menu_store_operators`);
3936
+ return response.data;
3937
+ }
3938
+ async findByDocumentLineState(params) {
3939
+ const response = await this.api.get(`${this.route}by_document_line_state`, {
3940
+ params
3941
+ });
3942
+ return response.data;
3943
+ }
3944
+ async findByState(params) {
3945
+ const response = await this.api.get(`${this.route}find_by_state`, {
3946
+ params
3947
+ });
3948
+ return response.data;
3949
+ }
3950
+ async findSideMenuCounters() {
3951
+ const response = await this.api.get(`${this.route}counters`);
3952
+ return response.data;
3953
+ }
3954
+ };
3955
+
3956
+ // src/modules/view/errorLog.ts
3957
+ var errorLog_exports = {};
3958
+ __export(errorLog_exports, {
3959
+ default: () => Repository109
3960
+ });
3961
+ var Repository109 = class {
3962
+ constructor({ api, route, publicRoute }) {
3963
+ this.api = api;
3964
+ this.route = route;
3965
+ this.publicRoute = publicRoute;
3966
+ }
3967
+ async create(body) {
3968
+ await this.api.post(`${this.route}`, body);
3969
+ }
3970
+ };
3971
+
3972
+ // src/modules/view/adminPanel.ts
3973
+ var adminPanel_exports = {};
3974
+ __export(adminPanel_exports, {
3975
+ default: () => Repository110
3976
+ });
3977
+ var Repository110 = class {
3978
+ constructor({ api, route, publicRoute }) {
3979
+ this.api = api;
3980
+ this.route = route;
3981
+ this.publicRoute = publicRoute;
3982
+ }
3983
+ async getData(params) {
3984
+ const response = await this.api.get(`${this.route}`, { params });
3985
+ return response.data;
3986
+ }
3987
+ };
3988
+
3989
+ // src/modules/supply/documentLineRm.ts
3990
+ var documentLineRm_exports = {};
3991
+ __export(documentLineRm_exports, {
3992
+ default: () => Repository111
3993
+ });
3994
+ var Repository111 = class {
3995
+ constructor({ api, route, publicRoute }) {
3996
+ this.api = api;
3997
+ this.route = route;
3998
+ this.publicRoute = publicRoute;
3999
+ }
4000
+ async findByOwnerId({
4001
+ owner_id
4002
+ }) {
4003
+ const response = await this.api.get(`${this.route}${owner_id}`);
4004
+ return response.data;
4005
+ }
4006
+ async update(data) {
4007
+ await this.api.put(`${this.route}`, data);
4008
+ }
4009
+ };
4010
+
4011
+ // src/modules/supply/documentLineMt.ts
4012
+ var documentLineMt_exports = {};
4013
+ __export(documentLineMt_exports, {
4014
+ default: () => Repository112
4015
+ });
4016
+ var Repository112 = class {
4017
+ constructor({ api, route, publicRoute }) {
4018
+ this.api = api;
4019
+ this.route = route;
4020
+ this.publicRoute = publicRoute;
4021
+ }
4022
+ async findByOwnerId({
4023
+ owner_id
4024
+ }) {
4025
+ const response = await this.api.get(`${this.route}${owner_id}`);
4026
+ return response.data;
4027
+ }
4028
+ async update(data) {
4029
+ await this.api.put(`${this.route}`, data);
4030
+ }
4031
+ };
4032
+
4033
+ // src/modules/user/chatSubscriber.ts
4034
+ var chatSubscriber_exports = {};
4035
+ __export(chatSubscriber_exports, {
4036
+ default: () => Repository113
4037
+ });
4038
+ var Repository113 = class {
4039
+ constructor({ api, route, publicRoute }) {
4040
+ this.api = api;
4041
+ this.route = route;
4042
+ this.publicRoute = publicRoute;
4043
+ }
4044
+ async createOrUpdate(data) {
4045
+ const response = await this.api.post(`${this.route}`, data);
4046
+ return response.data;
4047
+ }
4048
+ async findByOwnerId(selector) {
4049
+ const response = await this.api.get(`${this.route}by_owner_id/${selector.id}`);
4050
+ return response.data;
4051
+ }
4052
+ async findByDocumentHeaderId(selector) {
4053
+ const response = await this.api.get(`${this.route}by_document_header_id/${selector.id}`);
4054
+ return response.data;
4055
+ }
4056
+ async findByPersonaId(selector) {
4057
+ const response = await this.api.get(`${this.route}by_persona_id/${selector.id}`);
4058
+ return response.data;
4059
+ }
4060
+ async deleteOne(selector) {
4061
+ await this.api.post(`${this.route}/id/${selector}`);
4062
+ }
4063
+ };
4064
+
4065
+ // src/modules/stock/tag.ts
4066
+ var tag_exports = {};
4067
+ __export(tag_exports, {
4068
+ default: () => Repository114
4069
+ });
4070
+ var Repository114 = class {
4071
+ constructor({ api, route, publicRoute }) {
4072
+ this.api = api;
4073
+ this.route = route;
4074
+ this.publicRoute = publicRoute;
4075
+ }
4076
+ async create(body) {
4077
+ const response = await this.api.post(`${this.route}`, body);
4078
+ return response.data;
4079
+ }
4080
+ async findByDocumentHeaderId(selector) {
4081
+ const response = await this.api.get(`${this.route}document_header_id/${selector.id}`);
4082
+ return response.data;
4083
+ }
4084
+ async updateMany(body) {
4085
+ await this.api.put(`${this.route}update_many`, body);
4086
+ }
4087
+ async delete(selector) {
4088
+ await this.api.delete(`${this.route}${selector.id}`);
4089
+ }
4090
+ };
4091
+
4092
+ // src/main.ts
4093
+ var API = class {
4094
+ constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
4095
+ this.processEnvironment = processEnvironment || "localhost";
4096
+ const defaultHeaders = new AxiosHeaders();
4097
+ if (apikey) {
4098
+ defaultHeaders.set("apikey", apikey);
4099
+ }
4100
+ if (tokenBearer) {
4101
+ defaultHeaders.setAuthorization(tokenBearer);
4102
+ }
4103
+ this.client = axios.create({
4104
+ baseURL: gatewayUrl,
4105
+ headers: defaultHeaders
4106
+ });
4107
+ const getServicePath = (service) => {
4108
+ const baseUrl = services[service];
4109
+ const servicePath = processEnvironment === "localhost" ? "/" : `${service}/`;
4110
+ return `${baseUrl}${servicePath}`;
4111
+ };
4112
+ this.services = {
4113
+ stock: getServicePath("stock"),
4114
+ users: getServicePath("users"),
4115
+ integration: getServicePath("integration"),
4116
+ documents: getServicePath("documents"),
4117
+ view: getServicePath("view"),
4118
+ print: getServicePath("print"),
4119
+ tickets: getServicePath("tickets")
4120
+ };
4121
+ const getModuleParams = (service, module) => ({
4122
+ api: this.client,
4123
+ route: `${this.services[service]}${module}/`,
4124
+ publicRoute: `${this.services[service]}${module}/`
4125
+ });
4126
+ this.BankData = new Repository(getModuleParams("users", "bank_data"));
4127
+ this.Client = new Repository2(getModuleParams("users", "client"));
4128
+ this.ClientType = new Repository3(getModuleParams("users", "client_type"));
4129
+ this.Chat = new Repository4(getModuleParams("stock", "chat"));
4130
+ this.Commissioner = new Repository5(getModuleParams("users", "commissioner"));
4131
+ this.Country = new Repository6(getModuleParams("users", "country"));
4132
+ this.DocumentHeader = new Repository7(getModuleParams("stock", "document_header"));
4133
+ this.DocumentHeaderHistory = new Repository8(
4134
+ getModuleParams("stock", "document_header_history")
4135
+ );
4136
+ this.BillOfLading = new Repository9(getModuleParams("stock", "document_header"));
4137
+ this.ProductionOrder = new Repository10(getModuleParams("stock", "document_header"));
4138
+ this.Proforma = new Repository11(getModuleParams("stock", "document_header"));
4139
+ this.PropostaFornecedor = new Repository12(
4140
+ getModuleParams("stock", "document_header")
4141
+ );
4142
+ this.ProviderCreditNoteFromReturn = new Repository13(
4143
+ getModuleParams("stock", "document_header")
4144
+ );
4145
+ this.ProviderFinancialCreditNote = new Repository14(
4146
+ getModuleParams("stock", "document_header")
4147
+ );
4148
+ this.ProviderServiceInvoice = new Repository15(
4149
+ getModuleParams("stock", "document_header")
4150
+ );
4151
+ this.DocumentLine = new Repository16(getModuleParams("stock", "document_line"));
4152
+ this.DocumentLineAssoc = new Repository17(
4153
+ getModuleParams("stock", "document_line_assoc")
4154
+ );
4155
+ this.DocumentType = new Repository18(getModuleParams("stock", "document_type"));
4156
+ this.Favorites = new Repository19(getModuleParams("users", "favorite"));
4157
+ this.File = new Repository20(getModuleParams("stock", "file"));
4158
+ this.GoogleSheets = new Repository21(getModuleParams("integration", "google"));
4159
+ this.GroupPermissions = new Repository22(getModuleParams("users", "group_permission"));
4160
+ this.Language = new Repository23(getModuleParams("users", "language"));
4161
+ this.Location = new Repository24(getModuleParams("stock", "location"));
4162
+ this.Logout = new Repository25(getModuleParams("users", "logout"));
4163
+ this.Multimedia = new Repository26(getModuleParams("documents", "multimedia"));
4164
+ this.Observation = new Repository27(getModuleParams("integration", "observation"));
4165
+ this.ObservationType = new Repository28(
4166
+ getModuleParams("integration", "observation_type")
4167
+ );
4168
+ this.Password = new Repository29(getModuleParams("users", "password"));
4169
+ this.Permissions = new Repository30(getModuleParams("users", "permission"));
4170
+ this.ProductImage = new Repository31(getModuleParams("stock", "product_image"));
4171
+ this.Promotion = new Repository32(getModuleParams("stock", "promotion"));
4172
+ this.PromotionAssoc = new Repository33(getModuleParams("stock", "promotion_assoc"));
4173
+ this.Providers = new Repository34(getModuleParams("users", "provider"));
4174
+ this.ProviderType = new Repository35(getModuleParams("users", "provider_type"));
4175
+ this.PurchaseConditions = new Repository36(
4176
+ getModuleParams("users", "purchase_condition")
4177
+ );
4178
+ this.ReasonForExemption = new Repository37(
4179
+ getModuleParams("users", "reason_for_exemption")
4180
+ );
4181
+ this.RefreshToken = new Repository38(getModuleParams("users", "refresh-token"));
4182
+ this.SegmentsArea = new Repository39(getModuleParams("users", "segments_area"));
4183
+ this.Sessions = new Repository40(getModuleParams("users", "sessions"));
4184
+ this.Shippings = new Repository41(getModuleParams("users", "shipping"));
4185
+ this.StoreOperator = new Repository42(getModuleParams("users", "store_operator"));
4186
+ this.Swift = new Repository43(getModuleParams("users", "swift"));
4187
+ this.TypeOfLocation = new Repository44(getModuleParams("stock", "type_of_location"));
4188
+ this.UnitOfMeasure = new Repository45(getModuleParams("stock", "unit_of_measure"));
4189
+ this.UserPermissions = new Repository46(getModuleParams("users", "user_permission"));
4190
+ this.UserPositions = new Repository47(getModuleParams("users", "user_position"));
4191
+ this.Users = new Repository48(getModuleParams("users", "users"));
4192
+ this.VatTax = new Repository49(getModuleParams("stock", "vat_tax"));
4193
+ this.VatTaxZone = new Repository50(getModuleParams("stock", "vat_tax_zone"));
4194
+ this.Workflow = new Repository51(getModuleParams("stock", "workflow"));
4195
+ this.DeliveryMethods = new Repository52(getModuleParams("users", "delivery_methods"));
4196
+ this.MaturityDates = new Repository53(getModuleParams("users", "maturity_dates"));
4197
+ this.PaymentMethods = new Repository54(getModuleParams("users", "payment_methods"));
4198
+ this.Vehicles = new Repository55(getModuleParams("users", "vehicles"));
4199
+ this.ExternalDocumentType = new Repository56(
4200
+ getModuleParams("stock", "external_document_type")
4201
+ );
4202
+ this.DocumentSet = new Repository57(getModuleParams("stock", "document_set"));
4203
+ this.Payment = new Repository58(getModuleParams("stock", "payment"));
4204
+ this.ExternalDocumentHeader = new Repository59(
4205
+ getModuleParams("stock", "external_document_header")
4206
+ );
4207
+ this.VatValidation = new Repository60(getModuleParams("stock", "vat_validation"));
4208
+ this.StockMovement = new Repository61(getModuleParams("stock", "stock_movement"));
4209
+ this.ZipCode = new Repository62(getModuleParams("users", "zip_code"));
4210
+ this.Tenant = new Repository63(getModuleParams("users", "tenant"));
4211
+ this.PreSale = new Repository64(getModuleParams("stock", "pre_sale"));
4212
+ this.PreSaleProduct = new Repository65(getModuleParams("stock", "pre_sale_product"));
4213
+ this.OrderManagement = new Repository66(getModuleParams("stock", "order_management"));
4214
+ this.Npc = new Repository67(getModuleParams("print", "npc"));
4215
+ this.Printer = new Repository68(getModuleParams("print", "printer"));
4216
+ this.SchedulePrintJob = new Repository69(
4217
+ getModuleParams("print", "schedule_print_job")
4218
+ );
4219
+ this.QueryList = new Repository70(getModuleParams("stock", "query"));
4220
+ this.QueryParameter = new Repository71(getModuleParams("stock", "query_parameter"));
4221
+ this.ReturnReason = new Repository72(getModuleParams("stock", "return_reason"));
4222
+ this.PropostaSheets = new Repository73(getModuleParams("stock", "proposta_sheets"));
4223
+ this.Schedule = new Repository74(getModuleParams("stock", "schedule"));
4224
+ this.GoogleFilePermission = new Repository75(
4225
+ getModuleParams("integration", "google_file_permission")
4226
+ );
4227
+ this.Settings = new Repository76(getModuleParams("integration", "settings"));
4228
+ this.Tickets = new Repository77(getModuleParams("tickets", "tickets"));
4229
+ this.Channel = new Repository78(getModuleParams("tickets", "channel"));
4230
+ this.TicketsLanguage = new Repository79(getModuleParams("tickets", "tickets_language"));
4231
+ this.Clt = new Repository80(getModuleParams("tickets", "clt"));
4232
+ this.StartDocumentHeaderLastUpdate = new Repository81(
4233
+ getModuleParams("stock", "start_document_header_last_update")
4234
+ );
4235
+ this.Persona = new Repository82(getModuleParams("users", "persona"));
4236
+ this.ProjectInfo = new Repository83(getModuleParams("integration", "project_info"));
4237
+ this.Order = new Repository84(getModuleParams("stock", "order"));
4238
+ this.Purchase = new Repository85(getModuleParams("stock", "purchase"));
4239
+ this.MaterialEntrance = new Repository86(
4240
+ getModuleParams("stock", "material_entrance")
4241
+ );
4242
+ this.Transformado = new Repository87(getModuleParams("stock", "transformado"));
4243
+ this.UpfrontReturn = new Repository88(getModuleParams("stock", "upfront_return"));
4244
+ this.SavedEmPicking = new Repository89(getModuleParams("stock", "saved_em_picking"));
4245
+ this.EmailTemplate = new Repository90(getModuleParams("integration", "email_template"));
4246
+ this.EmailTemplateAttachment = new Repository91(
4247
+ getModuleParams("integration", "email_template_attachment")
4248
+ );
4249
+ this.Prison = new Repository92(getModuleParams("stock", "prison"));
4250
+ this.Quebra = new Repository93(getModuleParams("stock", "quebra"));
4251
+ this.Inventario = new Repository94(getModuleParams("stock", "inventario"));
4252
+ this.ReturnToProvider = new Repository95(
4253
+ getModuleParams("stock", "return_to_provider")
4254
+ );
4255
+ this.EmailVerification = new Repository96(
4256
+ getModuleParams("integration", "email_verification")
4257
+ );
4258
+ this.EmailLog = new Repository97(getModuleParams("integration", "email_log"));
4259
+ this.DocumentLineNote = new Repository98(
4260
+ getModuleParams("stock", "document_line_note")
4261
+ );
4262
+ this.SavedProviderProposal = new Repository99(
4263
+ getModuleParams("stock", "saved_provider_proposal")
4264
+ );
4265
+ this.ProductGoogleSheets = new Repository100(
4266
+ getModuleParams("stock", "product_google")
4267
+ );
4268
+ this.Task = new Repository101(getModuleParams("stock", "task"));
4269
+ this.TaskMessage = new Repository102(getModuleParams("stock", "task_message"));
4270
+ this.RecurrentTasks = new Repository103(getModuleParams("stock", "recurrent_tasks"));
4271
+ this.TaskRead = new Repository104(getModuleParams("stock", "task_read"));
4272
+ this.Theme = new Repository105(getModuleParams("users", "theme"));
4273
+ this.Dashboard = new Repository106(getModuleParams("stock", "dashboard"));
4274
+ this.ChatRapidMessage = new Repository107(
4275
+ getModuleParams("stock", "chat_rapid_message")
4276
+ );
4277
+ this.SideMenu = new Repository108(getModuleParams("stock", "side_menu"));
4278
+ this.ErrorLog = new Repository109(getModuleParams("view", "error_log"));
4279
+ this.AdminPanel = new Repository110(getModuleParams("view", "admin_panel"));
4280
+ this.DocumentLineRm = new Repository111(getModuleParams("stock", "document_line_rm"));
4281
+ this.DocumentLineMt = new Repository112(getModuleParams("stock", "document_line_mt"));
4282
+ this.ChatSubscriber = new Repository113(getModuleParams("users", "chat_subscriber"));
4283
+ this.Tag = new Repository114(getModuleParams("stock", "tag"));
4284
+ }
4285
+ };
4286
+
4287
+ // src/index.ts
4288
+ var index_default = main_exports;
4289
+
4290
+ export { index_default as default };