@experteam-mx/ngx-services 20.8.6-dev3.0 → 20.9.0-dev1.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.
@@ -48,17 +48,97 @@ class NgxServicesModule {
48
48
  providers: [provideNgxServices(environment)]
49
49
  };
50
50
  }
51
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule });
53
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
51
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: NgxServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.27", ngImport: i0, type: NgxServicesModule });
53
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: NgxServicesModule, providers: [provideHttpClient()] });
54
54
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: NgxServicesModule, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: NgxServicesModule, decorators: [{
56
56
  type: NgModule,
57
57
  args: [{
58
58
  providers: [provideHttpClient()]
59
59
  }]
60
60
  }] });
61
61
 
62
+ class ApiAuditsService {
63
+ environments = inject(ENVIRONMENT_TOKEN);
64
+ http = inject(HttpClient);
65
+ /**
66
+ * Retrieves the URL for the audits API from the environment configurations.
67
+ * If the URL is not defined, an empty string is returned.
68
+ *
69
+ * @return {string} The API Audits URL or an empty string if not defined.
70
+ */
71
+ get url() {
72
+ return this.environments.apiAuditsUrl ?? '';
73
+ }
74
+ /**
75
+ * Retrieves a list of database connections based on query parameters.
76
+ *
77
+ * @param {QueryParams} params - Query parameters for filtering and pagination.
78
+ * @returns {Observable<ConnectionsOut>} The list of connections.
79
+ */
80
+ getConnections(params) {
81
+ return this.http.get(`${this.url}/connections`, { params })
82
+ .pipe(map(({ data }) => data));
83
+ }
84
+ /**
85
+ * Retrieves transaction logs based on the provided query parameters.
86
+ *
87
+ * @param {QueryParams} params - Query parameters for filtering, pagination, and order.
88
+ * @returns {Observable<TransactionLogsOut>} The list of transaction logs and total count.
89
+ */
90
+ getTransactionLogs(params) {
91
+ return this.http.get(`${this.url}/transaction-logs`, { params })
92
+ .pipe(map(({ data }) => data));
93
+ }
94
+ /**
95
+ * Starts an asynchronous Excel generation for all transaction logs matching the filters.
96
+ * Pass filters without page limit/offset. Response includes a transaction_id for progress tracking.
97
+ *
98
+ * @param {QueryParams} params - Filter query parameters (no pagination).
99
+ * @returns {Observable<TransactionLogsDownloadOut>} Observable with the export transaction id.
100
+ */
101
+ requestTransactionLogsExcel(params) {
102
+ return this.http.get(`${this.url}/transaction-logs`, {
103
+ params: {
104
+ ...params,
105
+ download: true
106
+ }
107
+ })
108
+ .pipe(map(({ data }) => data));
109
+ }
110
+ /**
111
+ * Downloads the generated Excel file for the given transaction id.
112
+ *
113
+ * @param {string} transactionId - Export transaction identifier.
114
+ * @returns {Observable<HttpResponse<ArrayBuffer>>} HTTP response with the Excel binary.
115
+ */
116
+ getDownload(transactionId) {
117
+ return this.http.get(`${this.url}/files/download/${transactionId}`, {
118
+ observe: 'response',
119
+ responseType: 'arraybuffer'
120
+ });
121
+ }
122
+ /**
123
+ * Cancels a pending Excel generation for the given transaction id.
124
+ *
125
+ * @param {string} transactionId - Export transaction identifier.
126
+ * @returns {Observable<{}>} Observable that completes when cancellation is processed.
127
+ */
128
+ deleteFileCheck(transactionId) {
129
+ return this.http.delete(`${this.url}/files/${transactionId}`)
130
+ .pipe(map(({ data }) => data));
131
+ }
132
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiAuditsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
133
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiAuditsService, providedIn: 'root' });
134
+ }
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiAuditsService, decorators: [{
136
+ type: Injectable,
137
+ args: [{
138
+ providedIn: 'root'
139
+ }]
140
+ }] });
141
+
62
142
  class ApiBillingCOService {
63
143
  environments = inject(ENVIRONMENT_TOKEN);
64
144
  http = inject(HttpClient);
@@ -159,10 +239,10 @@ class ApiBillingCOService {
159
239
  return this.http.get(`${this.url}/tributes`, { params })
160
240
  .pipe(map(({ data }) => data));
161
241
  }
162
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
163
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, providedIn: 'root' });
242
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingCOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
243
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingCOService, providedIn: 'root' });
164
244
  }
165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingCOService, decorators: [{
245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingCOService, decorators: [{
166
246
  type: Injectable,
167
247
  args: [{
168
248
  providedIn: 'root'
@@ -189,10 +269,10 @@ class ApiBillingDOService {
189
269
  return this.http.get(`${this.url}/income-types`)
190
270
  .pipe(map(({ data }) => data));
191
271
  }
192
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
193
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, providedIn: 'root' });
272
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingDOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
273
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingDOService, providedIn: 'root' });
194
274
  }
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingDOService, decorators: [{
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingDOService, decorators: [{
196
276
  type: Injectable,
197
277
  args: [{
198
278
  providedIn: 'root'
@@ -239,10 +319,10 @@ class ApiBillingGtService {
239
319
  return this.http.post(`${this.url}/locations`, body)
240
320
  .pipe(map(({ data }) => data));
241
321
  }
242
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
243
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, providedIn: 'root' });
322
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingGtService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
323
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingGtService, providedIn: 'root' });
244
324
  }
245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingGtService, decorators: [{
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingGtService, decorators: [{
246
326
  type: Injectable,
247
327
  args: [{
248
328
  providedIn: 'root'
@@ -290,10 +370,10 @@ class ApiBillingMxService {
290
370
  return this.http.get(`${this.url}/postal-codes`, { params })
291
371
  .pipe(map(({ data }) => data));
292
372
  }
293
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
294
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, providedIn: 'root' });
373
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingMxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
374
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingMxService, providedIn: 'root' });
295
375
  }
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingMxService, decorators: [{
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingMxService, decorators: [{
297
377
  type: Injectable,
298
378
  args: [{
299
379
  providedIn: 'root'
@@ -384,10 +464,10 @@ class ApiBillingPaService {
384
464
  return this.http.post(`${this.url}/locations`, body)
385
465
  .pipe(map(({ data }) => data));
386
466
  }
387
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
388
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
467
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingPaService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
468
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
389
469
  }
390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingPaService, decorators: [{
470
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingPaService, decorators: [{
391
471
  type: Injectable,
392
472
  args: [{
393
473
  providedIn: 'root'
@@ -456,10 +536,10 @@ class ApiBillingSvService {
456
536
  return this.http.get(`${this.url}/municipalities`, { params })
457
537
  .pipe(map(({ data }) => data));
458
538
  }
459
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
460
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
539
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingSvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
540
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingSvService, providedIn: 'root' });
461
541
  }
462
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiBillingSvService, decorators: [{
542
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiBillingSvService, decorators: [{
463
543
  type: Injectable,
464
544
  args: [{
465
545
  providedIn: 'root'
@@ -647,10 +727,10 @@ class ApiCashOperationsService {
647
727
  return this.http.patch(`${this.url}/deposits/${id}`, body)
648
728
  .pipe(map(({ data }) => data));
649
729
  }
650
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
651
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
730
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCashOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
731
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCashOperationsService, providedIn: 'root' });
652
732
  }
653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCashOperationsService, decorators: [{
733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCashOperationsService, decorators: [{
654
734
  type: Injectable,
655
735
  args: [{
656
736
  providedIn: 'root'
@@ -1022,6 +1102,16 @@ class ApiCatalogsService {
1022
1102
  return this.http.put(`${this.url}/generic-folios/${id}`, body)
1023
1103
  .pipe(map(({ data }) => data));
1024
1104
  }
1105
+ /**
1106
+ * Retrieves the list of products.
1107
+ *
1108
+ * @param params Query parameters used to filter or paginate the products.
1109
+ * @returns An observable containing the list of products.
1110
+ */
1111
+ getProducts(params) {
1112
+ return this.http.get(`${this.url}/products`, { params })
1113
+ .pipe(map(({ data }) => data));
1114
+ }
1025
1115
  /**
1026
1116
  * Retrieves a product by its unique identifier.
1027
1117
  *
@@ -1430,10 +1520,87 @@ class ApiCatalogsService {
1430
1520
  return this.http.get(`${this.url}/export-reason-types`, { params })
1431
1521
  .pipe(map(({ data }) => data));
1432
1522
  }
1433
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1434
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
1523
+ /**
1524
+ * Retrieves the list of upselling indicators.
1525
+ * @param params - Query parameters used to filter or paginate the results
1526
+ * @returns An Observable that emits the upselling indicators and total count
1527
+ */
1528
+ getUpsellingIndicators(params) {
1529
+ return this.http.get(`${this.url}/upselling-indicators`, { params })
1530
+ .pipe(map(({ data }) => data));
1531
+ }
1532
+ /**
1533
+ * Retrieves an upselling indicator by its ID.
1534
+ *
1535
+ * @param id Unique identifier of the upselling indicator.
1536
+ * @returns Observable containing the requested upselling indicator.
1537
+ */
1538
+ getUpsellingIndicator(id) {
1539
+ return this.http.get(`${this.url}/upselling-indicators/${id}`)
1540
+ .pipe(map(({ data }) => data));
1541
+ }
1542
+ /**
1543
+ * Creates a new upselling indicator.
1544
+ * @param body - Upselling indicator data
1545
+ * @returns An Observable that emits the created upselling indicator
1546
+ */
1547
+ postUpsellingIndicator(body) {
1548
+ return this.http.post(`${this.url}/upselling-indicators`, body)
1549
+ .pipe(map(({ data }) => data));
1550
+ }
1551
+ /**
1552
+ * Updates an existing upselling indicator.
1553
+ * @param id - Identifier of the upselling indicator to update
1554
+ * @param body - Updated upselling indicator data
1555
+ * @returns An Observable that emits the updated upselling indicator
1556
+ */
1557
+ putUpsellingIndicator(id, body) {
1558
+ return this.http.put(`${this.url}/upselling-indicators/${id}`, body)
1559
+ .pipe(map(({ data }) => data));
1560
+ }
1561
+ /**
1562
+ * Deletes an upselling indicator by its identifier.
1563
+ * @param id - Identifier of the upselling indicator to delete
1564
+ * @returns An Observable that emits the operation result
1565
+ */
1566
+ deleteUpsellingIndicator(id) {
1567
+ return this.http.delete(`${this.url}/upselling-indicators/${id}`)
1568
+ .pipe(map(({ data }) => data));
1569
+ }
1570
+ /**
1571
+ * Updates the active status of an upselling indicator.
1572
+ * @param id - Identifier of the upselling indicator
1573
+ * @param isActive - Indicates whether the upselling indicator should be active or inactive
1574
+ * @returns An Observable that emits the operation result
1575
+ */
1576
+ patchUpsellingIndicator(id, isActive) {
1577
+ return this.http.patch(`${this.url}/upselling-indicators/${id}`, { isActive })
1578
+ .pipe(map(({ data }) => data));
1579
+ }
1580
+ /**
1581
+ * Retrieves the list of upselling indicator methods.
1582
+ *
1583
+ * @param params Query parameters used to filter, paginate, or sort the methods.
1584
+ * @returns Observable containing the upselling indicator methods.
1585
+ */
1586
+ getUpsellingIndicatorMethods(params) {
1587
+ return this.http.get(`${this.url}/upselling-indicator-methods`, { params })
1588
+ .pipe(map(({ data }) => data));
1589
+ }
1590
+ /**
1591
+ * Retrieves an upselling indicator method by its ID.
1592
+ *
1593
+ * @param id Unique identifier of the upselling indicator method.
1594
+ * @returns Observable containing the requested upselling indicator method.
1595
+ */
1596
+ getUpsellingIndicatorMethod(id) {
1597
+ return this.http.get(`${this.url}/upselling-indicator-methods/${id}`)
1598
+ .pipe(map(({ data }) => data));
1599
+ }
1600
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1601
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
1435
1602
  }
1436
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCatalogsService, decorators: [{
1603
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCatalogsService, decorators: [{
1437
1604
  type: Injectable,
1438
1605
  args: [{
1439
1606
  providedIn: 'root'
@@ -1471,10 +1638,10 @@ class ApiCheckpointsService {
1471
1638
  return this.http.get(`${this.url}/checkpoints`, { params })
1472
1639
  .pipe(map(({ data }) => data));
1473
1640
  }
1474
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1475
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, providedIn: 'root' });
1641
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCheckpointsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1642
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCheckpointsService, providedIn: 'root' });
1476
1643
  }
1477
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, decorators: [{
1644
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCheckpointsService, decorators: [{
1478
1645
  type: Injectable,
1479
1646
  args: [{
1480
1647
  providedIn: 'root'
@@ -2530,10 +2697,10 @@ class ApiCompaniesService {
2530
2697
  return this.http.put(`${this.url}/tdx-account-settings/${id}`, body)
2531
2698
  .pipe(map(({ data }) => data));
2532
2699
  }
2533
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2534
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
2700
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCompaniesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2701
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
2535
2702
  }
2536
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompaniesService, decorators: [{
2703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCompaniesService, decorators: [{
2537
2704
  type: Injectable,
2538
2705
  args: [{
2539
2706
  providedIn: 'root'
@@ -2561,16 +2728,6 @@ class ApiCompositionService {
2561
2728
  return this.http.get(`${this.url}/shipments/${id}`)
2562
2729
  .pipe(map(({ data }) => data));
2563
2730
  }
2564
- /**
2565
- * Retrieves shipments based on the provided query parameters.
2566
- *
2567
- * @param {QueryParams} params - The query parameters for the API request.
2568
- * @returns {Observable<ShipmentsOut>} An observable that emits the shipments data.
2569
- */
2570
- getShipments(params) {
2571
- return this.http.get(`${this.url}/shipments`, { params })
2572
- .pipe(map(({ data }) => data));
2573
- }
2574
2731
  /**
2575
2732
  * Fetches the country references data based on the provided query parameters.
2576
2733
  *
@@ -2581,10 +2738,10 @@ class ApiCompositionService {
2581
2738
  return this.http.get(`${this.url}/country-references`, { params })
2582
2739
  .pipe(map(({ data }) => data));
2583
2740
  }
2584
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2585
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
2741
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCompositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2742
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCompositionService, providedIn: 'root' });
2586
2743
  }
2587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCompositionService, decorators: [{
2744
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCompositionService, decorators: [{
2588
2745
  type: Injectable,
2589
2746
  args: [{
2590
2747
  providedIn: 'root'
@@ -2727,10 +2884,10 @@ class ApiCustomsService {
2727
2884
  params
2728
2885
  }).pipe(map(({ data }) => data));
2729
2886
  }
2730
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2731
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, providedIn: 'root' });
2887
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCustomsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2888
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCustomsService, providedIn: 'root' });
2732
2889
  }
2733
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCustomsService, decorators: [{
2890
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiCustomsService, decorators: [{
2734
2891
  type: Injectable,
2735
2892
  args: [{
2736
2893
  providedIn: 'root'
@@ -2958,10 +3115,10 @@ class ApiDiscountsService {
2958
3115
  return this.http.put(`${this.url}/customer-restrictions/V2/${id}`, body)
2959
3116
  .pipe(map(({ data }) => data));
2960
3117
  }
2961
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2962
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, providedIn: 'root' });
3118
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiDiscountsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3119
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiDiscountsService, providedIn: 'root' });
2963
3120
  }
2964
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDiscountsService, decorators: [{
3121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiDiscountsService, decorators: [{
2965
3122
  type: Injectable,
2966
3123
  args: [{
2967
3124
  providedIn: 'root'
@@ -2995,10 +3152,10 @@ class ApiDropoffsService {
2995
3152
  postShipmentsEReceipt(body) {
2996
3153
  return this.http.post(`${this.url}/shipments/ereceipt`, body).pipe(map(({ data }) => data));
2997
3154
  }
2998
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2999
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, providedIn: 'root' });
3155
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiDropoffsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3156
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiDropoffsService, providedIn: 'root' });
3000
3157
  }
3001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiDropoffsService, decorators: [{
3158
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiDropoffsService, decorators: [{
3002
3159
  type: Injectable,
3003
3160
  args: [{
3004
3161
  providedIn: 'root'
@@ -3090,10 +3247,10 @@ class ApiEToolsAutoBillingService {
3090
3247
  return this.http.post(`${this.url}/external-shipments/${id}/re-billing`, body)
3091
3248
  .pipe(map(({ data }) => data));
3092
3249
  }
3093
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3094
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, providedIn: 'root' });
3250
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiEToolsAutoBillingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3251
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiEToolsAutoBillingService, providedIn: 'root' });
3095
3252
  }
3096
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEToolsAutoBillingService, decorators: [{
3253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiEToolsAutoBillingService, decorators: [{
3097
3254
  type: Injectable,
3098
3255
  args: [{
3099
3256
  providedIn: 'root'
@@ -3132,10 +3289,10 @@ class ApiEventsService {
3132
3289
  return this.http.put(`${this.url}/operation-modules/${id}/end`, body)
3133
3290
  .pipe(map(({ data }) => data));
3134
3291
  }
3135
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3136
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
3292
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiEventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3293
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiEventsService, providedIn: 'root' });
3137
3294
  }
3138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiEventsService, decorators: [{
3295
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiEventsService, decorators: [{
3139
3296
  type: Injectable,
3140
3297
  args: [{
3141
3298
  providedIn: 'root'
@@ -3159,7 +3316,7 @@ class ApiExternalOperationsService {
3159
3316
  * Retrieves delivery confirmation details based on the provided OTP code.
3160
3317
  *
3161
3318
  * @param {string} otpCode - The OTP code used to search for delivery confirmation.
3162
- * @return {Observable<DeliveryConfirmationData>} An observable containing the delivery confirmation data.
3319
+ * @return {Observable<DeliveryConfirmationSearchOut>} An observable containing the delivery confirmation data.
3163
3320
  */
3164
3321
  getDeliveryConfirmation(otpCode) {
3165
3322
  return this.http.get(`${this.url}/delivery-confirmation/search/${otpCode}`)
@@ -3200,10 +3357,42 @@ class ApiExternalOperationsService {
3200
3357
  return this.http.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body)
3201
3358
  .pipe(map$1(({ data }) => data));
3202
3359
  }
3203
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3204
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
3360
+ /**
3361
+ * Retrieves signature page confirmation information associated with an OTP code.
3362
+ *
3363
+ * @param {string} otpCode - OTP code used to search for the signature page confirmation.
3364
+ * @returns {Observable<SignaturePageConfirmationOut>} An observable containing the signature page confirmation details.
3365
+ */
3366
+ getSignaturePageConfirmationSearch(otpCode) {
3367
+ return this.http.get(`${this.url}/signature-page-confirmation/search/${otpCode}`)
3368
+ .pipe(map$1(({ data }) => data));
3369
+ }
3370
+ /**
3371
+ * Generates a signature page confirmation request for a shipment.
3372
+ *
3373
+ * @param {ShipmentSignaturePageIn} payload - Shipment data required to generate the signature page confirmation.
3374
+ * @returns {Observable<SignaturePageConfirmationGenerateOut>} An observable containing the generated confirmation information.
3375
+ */
3376
+ postSignaturePageConfirmationGenerate(payload) {
3377
+ return this.http.post(`${this.url}/signature-page-confirmation/generate`, payload)
3378
+ .pipe(map$1(({ data }) => data));
3379
+ }
3380
+ /**
3381
+ * Confirms a shipment signature page using an OTP code.
3382
+ *
3383
+ * @param {ShipmentSignaturePageConfirmationIn} input - Signature page confirmation data.
3384
+ * @param {string} input.otp - OTP code used to validate the confirmation.
3385
+ * @param {...Object} input.body - Additional confirmation information sent in the request body.
3386
+ * @returns {Observable<{}>} An observable that emits the API response data.
3387
+ */
3388
+ putSignaturePageConfirmation({ otp, ...body }) {
3389
+ return this.http.put(`${this.url}/signature-page-confirmation/${otp}`, body)
3390
+ .pipe(map$1(({ data }) => data));
3391
+ }
3392
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiExternalOperationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3393
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiExternalOperationsService, providedIn: 'root' });
3205
3394
  }
3206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiExternalOperationsService, decorators: [{
3395
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiExternalOperationsService, decorators: [{
3207
3396
  type: Injectable,
3208
3397
  args: [{
3209
3398
  providedIn: 'root'
@@ -3565,10 +3754,10 @@ class ApiInventoriesService {
3565
3754
  putPackageOnHold(body) {
3566
3755
  return this.http.put(`${this.url}/package-on-hold`, body).pipe(map(({ data }) => data));
3567
3756
  }
3568
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3569
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3757
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3758
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3570
3759
  }
3571
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, decorators: [{
3760
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInventoriesService, decorators: [{
3572
3761
  type: Injectable,
3573
3762
  args: [{
3574
3763
  providedIn: 'root'
@@ -4042,10 +4231,10 @@ class ApiInvoicesService {
4042
4231
  return this.http.put(`${this.url}/operation/document/${id}/customer`, data)
4043
4232
  .pipe(map(({ data }) => data));
4044
4233
  }
4045
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4046
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
4234
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInvoicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4235
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
4047
4236
  }
4048
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInvoicesService, decorators: [{
4237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiInvoicesService, decorators: [{
4049
4238
  type: Injectable,
4050
4239
  args: [{
4051
4240
  providedIn: 'root'
@@ -4135,10 +4324,10 @@ class ApiNotificationsService {
4135
4324
  return this.http.get(`${this.url}/notification-types`, { params })
4136
4325
  .pipe(map(({ data }) => data));
4137
4326
  }
4138
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4139
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
4327
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiNotificationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4328
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiNotificationsService, providedIn: 'root' });
4140
4329
  }
4141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiNotificationsService, decorators: [{
4330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiNotificationsService, decorators: [{
4142
4331
  type: Injectable,
4143
4332
  args: [{
4144
4333
  providedIn: 'root'
@@ -4186,10 +4375,10 @@ class ApiOpenItemsService {
4186
4375
  return this.http.post(`${this.url}/other-invoices`, body)
4187
4376
  .pipe(map(({ data }) => data));
4188
4377
  }
4189
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4190
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
4378
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiOpenItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4379
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
4191
4380
  }
4192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiOpenItemsService, decorators: [{
4381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiOpenItemsService, decorators: [{
4193
4382
  type: Injectable,
4194
4383
  args: [{
4195
4384
  providedIn: 'root'
@@ -4256,10 +4445,10 @@ class ApiQuoteService {
4256
4445
  return this.http.get(`${this.url}/quote-event-types`, { params })
4257
4446
  .pipe(map(({ data }) => data));
4258
4447
  }
4259
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4260
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
4448
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiQuoteService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4449
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiQuoteService, providedIn: 'root' });
4261
4450
  }
4262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiQuoteService, decorators: [{
4451
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiQuoteService, decorators: [{
4263
4452
  type: Injectable,
4264
4453
  args: [{
4265
4454
  providedIn: 'root'
@@ -4477,10 +4666,10 @@ class ApiReportsService {
4477
4666
  return this.http.get(`${this.url}/billing-details`, { params })
4478
4667
  .pipe(map(({ data }) => data));
4479
4668
  }
4480
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4481
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
4669
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiReportsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4670
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
4482
4671
  }
4483
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiReportsService, decorators: [{
4672
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiReportsService, decorators: [{
4484
4673
  type: Injectable,
4485
4674
  args: [{
4486
4675
  providedIn: 'root'
@@ -4703,10 +4892,10 @@ class ApiSecurityService {
4703
4892
  }
4704
4893
  }).pipe(map(({ data }) => data));
4705
4894
  }
4706
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4707
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
4895
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSecurityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4896
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSecurityService, providedIn: 'root' });
4708
4897
  }
4709
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSecurityService, decorators: [{
4898
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSecurityService, decorators: [{
4710
4899
  type: Injectable,
4711
4900
  args: [{
4712
4901
  providedIn: 'root'
@@ -4815,10 +5004,10 @@ class ApiServicesService {
4815
5004
  params: queryParams
4816
5005
  }).pipe(map(({ data }) => data));
4817
5006
  }
4818
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4819
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
5007
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiServicesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5008
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiServicesService, providedIn: 'root' });
4820
5009
  }
4821
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiServicesService, decorators: [{
5010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiServicesService, decorators: [{
4822
5011
  type: Injectable,
4823
5012
  args: [{
4824
5013
  providedIn: 'root'
@@ -4989,10 +5178,10 @@ class ApiShipmentsService {
4989
5178
  return this.http.get(`${this.url}/shipments/${id}/documents`)
4990
5179
  .pipe(map(({ data }) => data));
4991
5180
  }
4992
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4993
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
5181
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5182
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
4994
5183
  }
4995
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, decorators: [{
5184
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiShipmentsService, decorators: [{
4996
5185
  type: Injectable,
4997
5186
  args: [{
4998
5187
  providedIn: 'root'
@@ -5111,10 +5300,10 @@ class ApiSuppliesService {
5111
5300
  return this.http.get(`${this.url}/supply-locations/export/excel`, { params })
5112
5301
  .pipe(map(({ data }) => data));
5113
5302
  }
5114
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5115
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
5303
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSuppliesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5304
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSuppliesService, providedIn: 'root' });
5116
5305
  }
5117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSuppliesService, decorators: [{
5306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSuppliesService, decorators: [{
5118
5307
  type: Injectable,
5119
5308
  args: [{
5120
5309
  providedIn: 'root'
@@ -5247,10 +5436,10 @@ class ApiSurveysService {
5247
5436
  return this.http.post(`${this.url}/customer-surveys/${uuid}/finish`, body)
5248
5437
  .pipe(map(({ data }) => data));
5249
5438
  }
5250
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5251
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, providedIn: 'root' });
5439
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSurveysService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5440
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSurveysService, providedIn: 'root' });
5252
5441
  }
5253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiSurveysService, decorators: [{
5442
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ApiSurveysService, decorators: [{
5254
5443
  type: Injectable,
5255
5444
  args: [{
5256
5445
  providedIn: 'root'
@@ -5409,10 +5598,10 @@ class PrintersService {
5409
5598
  }
5410
5599
  });
5411
5600
  }
5412
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: PrintersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5413
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: PrintersService, providedIn: 'root' });
5601
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PrintersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5602
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PrintersService, providedIn: 'root' });
5414
5603
  }
5415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: PrintersService, decorators: [{
5604
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: PrintersService, decorators: [{
5416
5605
  type: Injectable,
5417
5606
  args: [{
5418
5607
  providedIn: 'root'
@@ -5560,14 +5749,6 @@ var DocumentStatusCode;
5560
5749
  DocumentStatusCode[DocumentStatusCode["WITH_ERRORS"] = 3] = "WITH_ERRORS";
5561
5750
  })(DocumentStatusCode || (DocumentStatusCode = {}));
5562
5751
 
5563
- var CustomerRoleType;
5564
- (function (CustomerRoleType) {
5565
- CustomerRoleType["SHIPPER"] = "SP";
5566
- CustomerRoleType["CONSIGNEE"] = "RV";
5567
- CustomerRoleType["IMPORTER"] = "IP";
5568
- CustomerRoleType["EXPORTER"] = "EP";
5569
- })(CustomerRoleType || (CustomerRoleType = {}));
5570
-
5571
5752
  class WebSocketsService {
5572
5753
  pusher;
5573
5754
  environments = inject(ENVIRONMENT_TOKEN);
@@ -5665,10 +5846,10 @@ class WebSocketsService {
5665
5846
  const waitTime = 3 * 1000;
5666
5847
  return new Promise((resolve) => setTimeout(resolve, waitTime));
5667
5848
  }
5668
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5669
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
5849
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: WebSocketsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5850
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: WebSocketsService, providedIn: 'root' });
5670
5851
  }
5671
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: WebSocketsService, decorators: [{
5852
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: WebSocketsService, decorators: [{
5672
5853
  type: Injectable,
5673
5854
  args: [{
5674
5855
  providedIn: 'root',
@@ -5754,10 +5935,10 @@ class CryptoService {
5754
5935
  }
5755
5936
  return bytes.buffer;
5756
5937
  }
5757
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5758
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, providedIn: 'root' });
5938
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: CryptoService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
5939
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: CryptoService, providedIn: 'root' });
5759
5940
  }
5760
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: CryptoService, decorators: [{
5941
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: CryptoService, decorators: [{
5761
5942
  type: Injectable,
5762
5943
  args: [{
5763
5944
  providedIn: 'root'
@@ -5819,23 +6000,40 @@ function apiTokenInterceptor(req, next) {
5819
6000
  return next(req);
5820
6001
  }
5821
6002
 
5822
- const DEFAULT_TTL = 10000; // ttl in ms
5823
6003
  const cache = new Map();
5824
6004
  const inFlightRequests = new Map();
5825
6005
  /**
5826
- * Interceptor function to handle HTTP caching for GET requests. It retrieves cached responses
5827
- * if available and valid; otherwise, it processes the request and caches the response for future use.
6006
+ * Resolves the TTL for a URL from the first matching `cacheRoutes` entry.
6007
+ * Returns `null` when there is no match or no routes configured.
6008
+ */
6009
+ function resolveCacheTtl(url, cacheRoutes) {
6010
+ if (!cacheRoutes?.length)
6011
+ return null;
6012
+ for (const route of cacheRoutes) {
6013
+ if (new RegExp(route.pattern).test(url)) {
6014
+ return route.ttl;
6015
+ }
6016
+ }
6017
+ return null;
6018
+ }
6019
+ /**
6020
+ * Interceptor function to handle opt-in HTTP caching for GET requests that match
6021
+ * a configured `cacheRoutes` pattern. Non-matching GETs pass through uncached.
6022
+ * Concurrent in-flight requests for the same key are deduplicated via `shareReplay`.
5828
6023
  *
5829
- * @param {HttpRequest<any>} req - The HTTP request object being intercepted.
6024
+ * @param {HttpRequest<unknown>} req - The HTTP request object being intercepted.
5830
6025
  * @param {HttpHandlerFn} next - The next HTTP handler function in the chain to process the request.
5831
- * @return {Observable<HttpEvent<any>>} An observable that emits the HTTP event, either from cache
6026
+ * @return {Observable<HttpEvent<unknown>>} An observable that emits the HTTP event, either from cache
5832
6027
  * or by invoking the next handler.
5833
6028
  */
5834
6029
  function httpCachingInterceptor(req, next) {
5835
- const { cacheTtl } = inject(ENVIRONMENT_TOKEN);
6030
+ const { cacheRoutes } = inject(ENVIRONMENT_TOKEN);
5836
6031
  if (req.method !== 'GET')
5837
6032
  return next(req);
5838
6033
  const key = req.urlWithParams;
6034
+ const routeTtl = resolveCacheTtl(key, cacheRoutes);
6035
+ if (routeTtl === null)
6036
+ return next(req);
5839
6037
  const cached = cache.get(key);
5840
6038
  if (cached) {
5841
6039
  const isExpired = Date.now() > cached.ttl;
@@ -5852,7 +6050,7 @@ function httpCachingInterceptor(req, next) {
5852
6050
  if (!(res instanceof HttpResponse)) {
5853
6051
  return;
5854
6052
  }
5855
- const ttl = Date.now() + (cacheTtl ?? DEFAULT_TTL);
6053
+ const ttl = Date.now() + routeTtl;
5856
6054
  cache.set(key, { res, ttl });
5857
6055
  }), finalize(() => {
5858
6056
  inFlightRequests.delete(key);
@@ -5934,5 +6132,5 @@ const xmlHeaders = (format = 'object') => {
5934
6132
  * Generated bundle index. Do not edit.
5935
6133
  */
5936
6134
 
5937
- export { AccountTypeId, AccountTypeName, AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCheckpointsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiDropoffsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, CustomerRoleType, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, InventoryActions, InventoryErrorCodes, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, PrintMode, PrintableFormat, PrintersService, PrintersType, RouteModelType, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
6135
+ export { AccountTypeId, AccountTypeName, AlphaNumeric, ApiAuditsService, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCheckpointsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiDropoffsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, InventoryActions, InventoryErrorCodes, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, PrintMode, PrintableFormat, PrintersService, PrintersType, RouteModelType, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
5938
6136
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map