@experteam-mx/ngx-services 20.1.6 → 20.1.8

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/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, ModuleWithProviders } from '@angular/core';
3
- import { HttpClient, HttpResponse, HttpRequest, HttpHandlerFn, HttpEvent, HttpParams, HttpHeaders } from '@angular/common/http';
2
+ import { InjectionToken, ModuleWithProviders, EnvironmentProviders } from '@angular/core';
4
3
  import { Observable } from 'rxjs';
5
- import { CookieService } from 'ngx-cookie-service';
4
+ import { HttpResponse, HttpRequest, HttpHandlerFn, HttpEvent, HttpParams, HttpHeaders } from '@angular/common/http';
6
5
  import { Channel } from 'pusher-js';
7
6
 
8
7
  /**
@@ -75,6 +74,9 @@ declare class NgxServicesModule {
75
74
  * @param {Environment} environment - The environment configuration object.
76
75
  *
77
76
  * @return {ModuleWithProviders<NgxServicesModule>} The module with providers for the NgxServicesModule.
77
+ *
78
+ * @deprecated Use `provideNgxServices(environment)` in `ApplicationConfig.providers`
79
+ * for standalone applications. This API will be removed in `20.2.0`.
78
80
  */
79
81
  static forRoot(environment: Environment): ModuleWithProviders<NgxServicesModule>;
80
82
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxServicesModule, never>;
@@ -82,6 +84,14 @@ declare class NgxServicesModule {
82
84
  static ɵinj: i0.ɵɵInjectorDeclaration<NgxServicesModule>;
83
85
  }
84
86
 
87
+ /**
88
+ * Provides ngx-services dependencies for standalone Angular applications.
89
+ *
90
+ * Register this provider in `ApplicationConfig.providers` so all services in
91
+ * this library can resolve the environment-based configuration.
92
+ */
93
+ declare function provideNgxServices(environment: Environment): EnvironmentProviders;
94
+
85
95
  interface ApiResponse {
86
96
  status: 'success' | 'fail' | 'error';
87
97
  }
@@ -133,17 +143,16 @@ type IncomeTypesOut = {
133
143
  declare class ApiBillingDOService {
134
144
  private environments;
135
145
  private http;
136
- constructor(environments: Environment, http: HttpClient);
137
146
  /**
138
- * Retrieves the URL for the shipments API from the environment configurations.
147
+ * Gets the base URL for Billing DO API endpoints.
139
148
  *
140
- * @return {string} The URL of the shipments API.
149
+ * @returns {string} Billing DO API base URL, or an empty string when it is not configured.
141
150
  */
142
151
  get url(): string;
143
152
  /**
144
- * Retrieves a list of income types
153
+ * Retrieves the list of income types from Billing DO.
145
154
  *
146
- * @return {Observable<ApiSuccess<IncomeTypesOut>>} An observable that emits the income types data.
155
+ * @returns {Observable<IncomeTypesOut>} Observable that emits the income types payload.
147
156
  */
148
157
  getIncomeTypes(): Observable<IncomeTypesOut>;
149
158
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingDOService, never>;
@@ -220,31 +229,30 @@ type BillingConfigOut = {
220
229
  declare class ApiBillingGtService implements ApiBillingConfigurable {
221
230
  private environments;
222
231
  private http;
223
- constructor(environments: Environment, http: HttpClient);
224
232
  /**
225
- * Retrieves the URL for the billing GT API from the environment configurations.
233
+ * Gets the base URL for Billing GT API endpoints.
226
234
  *
227
- * @return {string} The URL of the shipments API.
235
+ * @returns {string} Billing GT API base URL, or an empty string when it is not configured.
228
236
  */
229
237
  get url(): string;
230
238
  /**
231
- * RRetrieves the list of billing configurations to locations
239
+ * Retrieves the list of billing configurations by location.
232
240
  *
233
- * @return {Observable<BillingConfigsOut>} An observable that emits an array of billing configurations to locations
241
+ * @returns {Observable<BillingConfigsOut>} Observable that emits the billing configurations payload.
234
242
  */
235
243
  getConfigs(): Observable<BillingConfigsOut>;
236
244
  /**
237
- * Retrieves the details of a location in billing configurations
245
+ * Retrieves billing configuration details for a location.
238
246
  *
239
- * @param {number} id - The id of the location to fetch.
240
- * @return {Observable<BillingConfigOut>} An observable that emits the location billing configuration data.
247
+ * @param {number} id - Location identifier to fetch.
248
+ * @returns {Observable<BillingConfigOut>} Observable that emits the location billing configuration payload.
241
249
  */
242
250
  getConfig(id: number): Observable<BillingConfigOut>;
243
251
  /**
244
- * Sends a POST request to create a new billing configuration location.
252
+ * Creates a billing configuration for a location.
245
253
  *
246
- * @param {BillingConfigIn} body - The billing configuration to location data to be sent in the request body.
247
- * @return {Observable<BillingConfigOut>} An observable emitting the created billing configuration to location data.
254
+ * @param {BillingConfigIn} body - Billing configuration payload for the location.
255
+ * @returns {Observable<BillingConfigOut>} Observable that emits the created billing configuration payload.
248
256
  */
249
257
  postConfigs(body: BillingConfigIn): Observable<BillingConfigOut>;
250
258
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingGtService, never>;
@@ -288,31 +296,30 @@ type PostalCodesOut = {
288
296
  declare class ApiBillingMxService {
289
297
  private environments;
290
298
  private http;
291
- constructor(environments: Environment, http: HttpClient);
292
299
  /**
293
- * Retrieves the URL for the shipments API from the environment configurations.
300
+ * Gets the base URL for Billing MX API endpoints.
294
301
  *
295
- * @return {string} The URL of the shipments API.
302
+ * @returns {string} Billing MX API base URL, or an empty string when it is not configured.
296
303
  */
297
304
  get url(): string;
298
305
  /**
299
- * Fetches the tax regimen data from the server.
306
+ * Retrieves the list of fiscal regimens from Billing MX.
300
307
  *
301
- * @return {Observable<FiscalRegimensOut>} An observable that emits the fiscal regimen data.
308
+ * @returns {Observable<FiscalRegimensOut>} Observable that emits the fiscal regimens payload.
302
309
  */
303
310
  getFiscalRegimens(): Observable<FiscalRegimensOut>;
304
311
  /**
305
- * Fetches a paginated list of CFDIs (Comprobante Fiscal Digital por Internet) based on the provided fiscal regimen.
312
+ * Retrieves the CFDI uses accepted for a fiscal regimen.
306
313
  *
307
- * @param {number} fiscalRegimen - The fiscal regimen identifier to filter the CFDIs.
308
- * @return {Observable<FiscalRegimensAcceptedOut>} An observable containing the paginated list of CFDIs.
314
+ * @param {number} fiscalRegimen Fiscal regimen identifier used to filter accepted CFDI uses.
315
+ * @returns {Observable<FiscalRegimensAcceptedOut>} Observable that emits the accepted CFDI uses payload.
309
316
  */
310
317
  getFiscalRegimensAccepted(fiscalRegimen: number): Observable<FiscalRegimensAcceptedOut>;
311
318
  /**
312
- * Fetches and validates postal code data from the server.
319
+ * Retrieves postal code information from Billing MX.
313
320
  *
314
- * @param {QueryParams} params - Query parameters used to filter the postal code data.
315
- * @return {Observable<PostalCodesOut>} - An observable emitting the validated postal code data.
321
+ * @param {QueryParams} params Query parameters used by the postal codes endpoint.
322
+ * @returns {Observable<PostalCodesOut>} Observable that emits the postal code data payload.
316
323
  */
317
324
  getPostalCodes(params: QueryParams): Observable<PostalCodesOut>;
318
325
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingMxService, never>;
@@ -322,59 +329,58 @@ declare class ApiBillingMxService {
322
329
  declare class ApiBillingPaService implements ApiBillingConfigurable {
323
330
  private environments;
324
331
  private http;
325
- constructor(environments: Environment, http: HttpClient);
326
332
  /**
327
- * Retrieves the URL for the Billing Pa API from the environment configurations.
333
+ * Gets the base URL for Billing PA API endpoints.
328
334
  *
329
- * @return {string} The URL of the Billing Pa API.
335
+ * @returns {string} Billing PA API base URL, or an empty string when it is not configured.
330
336
  */
331
337
  get url(): string;
332
338
  /**
333
- * Retrieves a list of districts based on query parameters.
339
+ * Retrieves the list of districts.
334
340
  *
335
- * @param {QueryParams} params - Query parameters for filtering the districts.
336
- * @returns {Observable<DistrictsOut>} The list of districts.
341
+ * @param {QueryParams} params Query parameters used by the districts endpoint.
342
+ * @returns {Observable<DistrictsOut>} Observable that emits the districts payload.
337
343
  */
338
344
  getDistricts(params: QueryParams): Observable<DistrictsOut>;
339
345
  /**
340
- * Retrieves a list of parishes based on query parameters.
346
+ * Retrieves the list of parishes.
341
347
  *
342
- * @param {QueryParams} params - Query parameters for filtering the parishes.
343
- * @returns {Observable<ParishesOut>} The list of parishes.
348
+ * @param {QueryParams} params Query parameters used by the parishes endpoint.
349
+ * @returns {Observable<ParishesOut>} Observable that emits the parishes payload.
344
350
  */
345
351
  getParishes(params: QueryParams): Observable<ParishesOut>;
346
352
  /**
347
- * Retrieves a list of provinces based on query parameters.
353
+ * Retrieves the list of provinces.
348
354
  *
349
- * @param {QueryParams} params - Query parameters for filtering the provinces.
350
- * @returns {Observable<ProvincesOut>} The list of provinces.
355
+ * @param {QueryParams} params Query parameters used by the provinces endpoint.
356
+ * @returns {Observable<ProvincesOut>} Observable that emits the provinces payload.
351
357
  */
352
358
  getProvinces(params: QueryParams): Observable<ProvincesOut>;
353
359
  /**
354
- * Retrieves the details of a customer based on query parameters.
360
+ * Validates a customer using Billing PA.
355
361
  *
356
- * @param {QueryParams} params - Query parameters for get customer.
357
- * @return {Observable<BillingPaCustomerOut>} An observable that emits customer data.
362
+ * @param {QueryParams} params Query parameters used by the customer validation endpoint.
363
+ * @returns {Observable<BillingPaCustomerOut>} Observable that emits customer validation data.
358
364
  */
359
365
  getValidateCustomer(params: QueryParams): Observable<BillingPaCustomerOut>;
360
366
  /**
361
- * RRetrieves the list of billing configurations to locations
367
+ * Retrieves billing configurations by location.
362
368
  *
363
- * @return {Observable<BillingConfigsOut>} An observable that emits an array of billing configurations to locations
369
+ * @returns {Observable<BillingConfigsOut>} Observable that emits billing configuration items.
364
370
  */
365
371
  getConfigs(): Observable<BillingConfigsOut>;
366
372
  /**
367
- * Retrieves the details of a location in billing configurations
373
+ * Retrieves the billing configuration for a location.
368
374
  *
369
- * @param {number} id - The id of the location to fetch.
370
- * @return {Observable<BillingConfigOut>} An observable that emits the location billing configuration data.
375
+ * @param {number} id Location identifier.
376
+ * @returns {Observable<BillingConfigOut>} Observable that emits the location billing configuration payload.
371
377
  */
372
378
  getConfig(id: number): Observable<BillingConfigOut>;
373
379
  /**
374
- * Sends a POST request to create a new billing configuration location.
380
+ * Creates a billing configuration for a location.
375
381
  *
376
- * @param {BillingConfigIn} body - The billing configuration to location data to be sent in the request body.
377
- * @return {Observable<BillingConfigOut>} An observable emitting the created billing configuration to location data.
382
+ * @param {BillingConfigIn} body Billing configuration payload for the new location.
383
+ * @returns {Observable<BillingConfigOut>} Observable that emits the created billing configuration payload.
378
384
  */
379
385
  postConfigs(body: BillingConfigIn): Observable<BillingConfigOut>;
380
386
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingPaService, never>;
@@ -427,47 +433,46 @@ type MunicipalitiesOut = {
427
433
  declare class ApiBillingSvService {
428
434
  private environments;
429
435
  private http;
430
- constructor(environments: Environment, http: HttpClient);
431
436
  /**
432
437
  * Retrieves the URL for the billing API.
433
438
  * If the URL is not defined in the environments configuration, returns an empty string.
434
439
  *
435
- * @return {string} The billing API URL or an empty string if not set.
440
+ * @returns {string} The billing API URL or an empty string if not set.
436
441
  */
437
442
  get url(): string;
438
443
  /**
439
444
  * Fetches the list of economic activities based on the provided query parameters.
440
445
  *
441
446
  * @param {QueryParams} params - The query parameters used to filter the economic activities.
442
- * @return {Observable<EconomicActivitiesOut>} An observable that emits the list of economic activities.
447
+ * @returns {Observable<EconomicActivitiesOut>} An observable that emits the list of economic activities.
443
448
  */
444
449
  getEconomicActivities(params: QueryParams): Observable<EconomicActivitiesOut>;
445
450
  /**
446
451
  * Retrieves the list of person types based on given query parameters.
447
452
  *
448
453
  * @param {QueryParams} params - The query parameters used to filter the person types.
449
- * @return {Observable<PersonTypesOut>} An observable that emits a list of person types.
454
+ * @returns {Observable<PersonTypesOut>} An observable that emits a list of person types.
450
455
  */
451
456
  getPersonTypes(params: QueryParams): Observable<PersonTypesOut>;
452
457
  /**
453
458
  * Fetches the list of establishment types.
454
459
  *
455
460
  * @param {QueryParams} params The query parameters to be sent with the HTTP request.
456
- * @return {Observable<EstablishmentTypesOut>} An observable that emits the establishment types data.
461
+ * @returns {Observable<EstablishmentTypesOut>} An observable that emits the establishment types data.
457
462
  */
458
463
  getEstablishmentTypes(params: QueryParams): Observable<EstablishmentTypesOut>;
459
464
  /**
460
465
  * Fetches the list of departments based on the provided query parameters.
461
466
  *
462
467
  * @param {QueryParams} params - The query parameters to filter or modify the departments fetch request.
463
- * @return {Observable<DepartmentsOut>} An observable emitting the list of departments.
468
+ * @returns {Observable<DepartmentsOut>} An observable emitting the list of departments.
464
469
  */
465
470
  getDepartments(params: QueryParams): Observable<DepartmentsOut>;
466
471
  /**
467
472
  * Retrieves a list of municipalities based on the provided query parameters.
468
473
  *
469
474
  * @param {QueryParams} params - The query parameters used to filter the municipalities.
470
- * @return {Observable<MunicipalitiesOut>} An observable that emits the retrieved municipalities data.
475
+ * @returns {Observable<MunicipalitiesOut>} An observable that emits the retrieved municipalities data.
471
476
  */
472
477
  getMunicipalities(params: QueryParams): Observable<MunicipalitiesOut>;
473
478
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiBillingSvService, never>;
@@ -547,11 +552,10 @@ type ReceiptFileOut = {
547
552
  declare class ApiCashOperationsService {
548
553
  private environments;
549
554
  private http;
550
- constructor(environments: Environment, http: HttpClient);
551
555
  /**
552
556
  * Retrieves the URL for the cash operations API from the environment configurations.
553
557
  *
554
- * @return {string} The URL of the cash operations API.
558
+ * @returns {string} The URL of the cash operations API.
555
559
  */
556
560
  get url(): string;
557
561
  /**
@@ -1046,7 +1050,6 @@ type PackageLocationsData = {
1046
1050
  declare class ApiCatalogsService {
1047
1051
  private environments;
1048
1052
  private http;
1049
- constructor(environments: Environment, http: HttpClient);
1050
1053
  /**
1051
1054
  * Retrieves the URL for the reports API from the environment configurations.
1052
1055
  *
@@ -2310,7 +2313,6 @@ type LocationEmployeesIn = {
2310
2313
  declare class ApiCompaniesService {
2311
2314
  private environments;
2312
2315
  private http;
2313
- constructor(environments: Environment, http: HttpClient);
2314
2316
  /**
2315
2317
  * Retrieves the URL for the companies API from the environment configurations.
2316
2318
  *
@@ -3352,27 +3354,25 @@ type CompositionCountryReferencesOut = {
3352
3354
 
3353
3355
  declare class ApiCompositionService {
3354
3356
  private environments;
3355
- private cookie;
3356
3357
  private http;
3357
- constructor(environments: Environment, cookie: CookieService, http: HttpClient);
3358
3358
  /**
3359
3359
  * Retrieves the API security URL from the environment configuration.
3360
3360
  *
3361
- * @return {string} The API security URL.
3361
+ * @returns {string} The API security URL.
3362
3362
  */
3363
3363
  get url(): string;
3364
3364
  /**
3365
3365
  * Retrieves shipment details based on the provided shipment ID.
3366
3366
  *
3367
3367
  * @param {number} id - The unique identifier of the shipment to retrieve.
3368
- * @return {Observable<ShipmentOut>} An observable that emits the details of the shipment.
3368
+ * @returns {Observable<ShipmentOut>} An observable that emits the details of the shipment.
3369
3369
  */
3370
3370
  getShipment(id: number): Observable<ShipmentOut>;
3371
3371
  /**
3372
3372
  * Fetches the country references data based on the provided query parameters.
3373
3373
  *
3374
3374
  * @param {QueryParams} params - The query parameters for the API request.
3375
- * @return {Observable<CompositionCountryReferencesOut>} - An observable emitting the country references.
3375
+ * @returns {Observable<CompositionCountryReferencesOut>} An observable emitting the country references.
3376
3376
  */
3377
3377
  getCountryReferences(params: QueryParams): Observable<CompositionCountryReferencesOut>;
3378
3378
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompositionService, never>;
@@ -3597,7 +3597,6 @@ type RulesByCriteriaOut = {
3597
3597
  declare class ApiCustomsService {
3598
3598
  private environments;
3599
3599
  private http;
3600
- constructor(environments: Environment, http: HttpClient);
3601
3600
  /**
3602
3601
  * Retrieves the URL for the cash operations API from the environment configurations.
3603
3602
  *
@@ -3868,7 +3867,6 @@ type CustomerRestrictionOut = {
3868
3867
  declare class ApiDiscountsService {
3869
3868
  private environments;
3870
3869
  private http;
3871
- constructor(environments: Environment, http: HttpClient);
3872
3870
  /**
3873
3871
  * Gets the API endpoint URL for discounts from the environments configuration.
3874
3872
  *
@@ -4135,7 +4133,6 @@ type ExternalShipmentCancellationIn = {
4135
4133
  declare class ApiEToolsAutoBillingService {
4136
4134
  private environments;
4137
4135
  private http;
4138
- constructor(environments: Environment, http: HttpClient);
4139
4136
  /**
4140
4137
  * Retrieves the URL for the shipments API from the environment configurations.
4141
4138
  *
@@ -4240,18 +4237,17 @@ type OperationModuleOut = {
4240
4237
  declare class ApiEventsService {
4241
4238
  private environments;
4242
4239
  private http;
4243
- constructor(environments: Environment, http: HttpClient);
4244
4240
  /**
4245
4241
  * Gets the API endpoint URL for Events from the environments configuration.
4246
4242
  *
4247
- * @return {string} The URL for the Events API. Returns an empty string if not defined.
4243
+ * @returns {string} The URL for the Events API. Returns an empty string if not defined.
4248
4244
  */
4249
4245
  get url(): string;
4250
4246
  /**
4251
4247
  * Sends a request to start an event
4252
4248
  *
4253
4249
  * @param {OperationModuleStartIn} body - The event information to be submitted.
4254
- * @return {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
4250
+ * @returns {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
4255
4251
  */
4256
4252
  postOperationModulesStart(body: OperationModuleStartIn): Observable<OperationModuleOut>;
4257
4253
  /**
@@ -4259,7 +4255,7 @@ declare class ApiEventsService {
4259
4255
  *
4260
4256
  * @param {number} id - The unique identifier of the item whose event is to be updated.
4261
4257
  * @param {OperationModuleEndIn} body - The payload containing the updated event details.
4262
- * @return {Observable<OperationModuleOut>} An observable emitting the updated event details.
4258
+ * @returns {Observable<OperationModuleOut>} An observable emitting the updated event details.
4263
4259
  */
4264
4260
  putOperationModulesEnd(id: number, body: OperationModuleEndIn): Observable<OperationModuleOut>;
4265
4261
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiEventsService, never>;
@@ -4326,7 +4322,6 @@ declare class ApiExternalOperationsService {
4326
4322
  private http;
4327
4323
  private environment;
4328
4324
  private appKey;
4329
- constructor(http: HttpClient, environment: Environment);
4330
4325
  /**
4331
4326
  * Getter method to retrieve the API's external operations URL.
4332
4327
  * Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
@@ -4494,7 +4489,6 @@ type PackagesInStockOut = {
4494
4489
  declare class ApiInventoriesService {
4495
4490
  private environments;
4496
4491
  private http;
4497
- constructor(environments: Environment, http: HttpClient);
4498
4492
  /**
4499
4493
  * Retrieves the URL for the Inventories API from the environment configurations.
4500
4494
  *
@@ -5133,7 +5127,6 @@ type DocumentTypeRangeIn = {
5133
5127
  sap_prefix: string;
5134
5128
  sap_suffix?: string;
5135
5129
  suffix?: string;
5136
- used_numbers: number;
5137
5130
  valid_since: string;
5138
5131
  valid_until: string;
5139
5132
  };
@@ -5160,7 +5153,6 @@ interface DocumentsTypesRangesCurrentStatusOut {
5160
5153
  declare class ApiInvoicesService {
5161
5154
  private environments;
5162
5155
  private http;
5163
- constructor(environments: Environment, http: HttpClient);
5164
5156
  /**
5165
5157
  * Retrieves the API URL for invoices from the environments configuration.
5166
5158
  *
@@ -5548,7 +5540,6 @@ type NotificationsTypeOut = {
5548
5540
  declare class ApiNotificationsService {
5549
5541
  private environments;
5550
5542
  private http;
5551
- constructor(environments: Environment, http: HttpClient);
5552
5543
  /**
5553
5544
  * Retrieves the URL for the notifications API from the environment settings.
5554
5545
  * If the URL is not defined, an empty string is returned.
@@ -5610,38 +5601,6 @@ declare class ApiNotificationsService {
5610
5601
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiNotificationsService>;
5611
5602
  }
5612
5603
 
5613
- interface OpenItem {
5614
- id: number;
5615
- invoice_number: string;
5616
- shipment_tracking_number: string;
5617
- invoice_issue_datetime: Date | string;
5618
- invoice_expiration_datetime: Date | string;
5619
- customer_identification_number: string;
5620
- customer_company_name: string;
5621
- account: string;
5622
- country_reference_currency_id: number;
5623
- pending_value: number;
5624
- payed_value: number;
5625
- is_cash: boolean;
5626
- status: string;
5627
- origin: string;
5628
- user_id: string | null;
5629
- }
5630
- interface OpenItemIn {
5631
- payments: PaymentDetail[];
5632
- customer: CustomerOpenItem | CustomerOtherInvoice;
5633
- document_type_range_id: number;
5634
- document_number: string;
5635
- observation: string;
5636
- document_date: Date;
5637
- }
5638
- interface PaymentOpenItemIn extends OpenItemIn {
5639
- open_items: OpenItems[];
5640
- }
5641
- interface OtherInvoiceIn extends OpenItemIn {
5642
- other_invoices: OtherInvoices[];
5643
- }
5644
-
5645
5604
  type CustomerOpenItem = {
5646
5605
  company_name: string;
5647
5606
  full_name: string;
@@ -5699,35 +5658,66 @@ type OtherInvoiceOut = {
5699
5658
  document: Document;
5700
5659
  };
5701
5660
 
5661
+ interface OpenItem {
5662
+ id: number;
5663
+ invoice_number: string;
5664
+ shipment_tracking_number: string;
5665
+ invoice_issue_datetime: Date | string;
5666
+ invoice_expiration_datetime: Date | string;
5667
+ customer_identification_number: string;
5668
+ customer_company_name: string;
5669
+ account: string;
5670
+ country_reference_currency_id: number;
5671
+ pending_value: number;
5672
+ payed_value: number;
5673
+ is_cash: boolean;
5674
+ status: string;
5675
+ origin: string;
5676
+ user_id: string | null;
5677
+ }
5678
+ interface OpenItemIn {
5679
+ payments: PaymentDetail[];
5680
+ customer: CustomerOpenItem | CustomerOtherInvoice;
5681
+ document_type_range_id: number;
5682
+ document_number: string;
5683
+ observation: string;
5684
+ document_date: Date;
5685
+ }
5686
+ interface PaymentOpenItemIn extends OpenItemIn {
5687
+ open_items: OpenItems[];
5688
+ }
5689
+ interface OtherInvoiceIn extends OpenItemIn {
5690
+ other_invoices: OtherInvoices[];
5691
+ }
5692
+
5702
5693
  declare class ApiOpenItemsService {
5703
5694
  private environments;
5704
5695
  private http;
5705
- constructor(environments: Environment, http: HttpClient);
5706
5696
  /**
5707
5697
  * Retrieves the API URL for open-items from the environments' configuration.
5708
5698
  *
5709
- * @return {string} The API URL for open-items.
5699
+ * @returns {string} The API URL for open-items.
5710
5700
  */
5711
5701
  get url(): string;
5712
5702
  /**
5713
5703
  * Retrieves a list of open-items based on the provided query parameters.
5714
5704
  *
5715
5705
  * @param {QueryParams} params - The parameters to use for querying open-items.
5716
- * @return {Observable<OpenItemsOut>} An observable that emits the open-item's data.
5706
+ * @returns {Observable<OpenItemsOut>} An observable that emits the open-item data.
5717
5707
  */
5718
5708
  getOpenItems(params: QueryParams): Observable<OpenItemsOut>;
5719
5709
  /**
5720
5710
  * Processes a payment for an open item.
5721
5711
  *
5722
5712
  * @param {PaymentOpenItemIn} body - The payment details for the open item.
5723
- * @return {Observable<PaymentOut>} An observable that emits the result of the payment processing.
5713
+ * @returns {Observable<PaymentOut>} An observable that emits the result of the payment processing.
5724
5714
  */
5725
5715
  postPayment(body: PaymentOpenItemIn): Observable<PaymentOut>;
5726
5716
  /**
5727
5717
  * Processes a payment for other invoice.
5728
5718
  *
5729
5719
  * @param {OtherInvoiceIn} body - The payment details for the other invoice.
5730
- * @return {Observable<OtherInvoiceOut>} An observable that emits the result of the payment processing.
5720
+ * @returns {Observable<OtherInvoiceOut>} An observable that emits the result of the payment processing.
5731
5721
  */
5732
5722
  postOtherInvoice(body: OtherInvoiceIn): Observable<OtherInvoiceOut>;
5733
5723
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiOpenItemsService, never>;
@@ -5764,16 +5754,9 @@ interface QuoteEventTypesOut {
5764
5754
  quoteEventTypes: QuoteEventType[];
5765
5755
  }
5766
5756
 
5767
- /**
5768
- * Service to manage quote-related events.
5769
- *
5770
- * This service provides methods to retrieve, create, and get event types
5771
- * related to quote processes.
5772
- */
5773
5757
  declare class ApiQuoteService {
5774
5758
  private environments;
5775
5759
  private http;
5776
- constructor(environments: Environment, http: HttpClient);
5777
5760
  /**
5778
5761
  * Base URL for the Quotes API.
5779
5762
  */
@@ -6019,6 +6002,8 @@ interface ShipmentLandingReport extends ActiveLessLaravelModel {
6019
6002
  shipment_content_type_id: number;
6020
6003
  shipment_scope_id: number;
6021
6004
  } | null;
6005
+ manifest_date_time?: string | null;
6006
+ date_time?: string;
6022
6007
  }
6023
6008
  interface ShipmentTag extends ActiveLessSymfonyModel {
6024
6009
  name: string;
@@ -6083,6 +6068,8 @@ interface PromotionCodeDiscount extends ApiModel {
6083
6068
  promotion_code: string;
6084
6069
  discount_percentage: number;
6085
6070
  product_subtotals: ProductSubtotal[];
6071
+ manifest_date_time?: string | null;
6072
+ date_time?: string;
6086
6073
  }
6087
6074
  interface ProductSubtotal {
6088
6075
  country_reference_currency_id: number;
@@ -6378,7 +6365,6 @@ type SalesBookReportOut = {
6378
6365
  declare class ApiReportsService {
6379
6366
  private environments;
6380
6367
  private http;
6381
- constructor(environments: Environment, http: HttpClient);
6382
6368
  /**
6383
6369
  * Retrieves the URL for the reports API from the environment configurations.
6384
6370
  *
@@ -6491,10 +6477,9 @@ declare class ApiReportsService {
6491
6477
  }
6492
6478
 
6493
6479
  declare class ApiSecurityService {
6494
- private environments;
6495
6480
  private cookie;
6496
6481
  private http;
6497
- constructor(environments: Environment, cookie: CookieService, http: HttpClient);
6482
+ private environments;
6498
6483
  /**
6499
6484
  * Retrieves the API security URL from the environments configuration.
6500
6485
  *
@@ -6797,7 +6782,6 @@ type AddressPlaceDetailsOut = {
6797
6782
  declare class ApiServicesService {
6798
6783
  private environments;
6799
6784
  private http;
6800
- constructor(environments: Environment, http: HttpClient);
6801
6785
  /**
6802
6786
  * Retrieves the URL for the services API from the environment settings.
6803
6787
  * If the URL is not defined, an empty string is returned.
@@ -7057,7 +7041,6 @@ type ShipmentSignaturePageOut = {
7057
7041
  declare class ApiShipmentsService {
7058
7042
  private environments;
7059
7043
  private http;
7060
- constructor(environments: Environment, http: HttpClient);
7061
7044
  /**
7062
7045
  * Retrieves the URL for the shipments API from the environment configurations.
7063
7046
  *
@@ -7212,7 +7195,6 @@ type SupplyTransactionTypesOut = {
7212
7195
  declare class ApiSuppliesService {
7213
7196
  private environments;
7214
7197
  private http;
7215
- constructor(environments: Environment, http: HttpClient);
7216
7198
  /**
7217
7199
  * Retrieves the URL for the API supplies endpoint.
7218
7200
  *
@@ -7298,9 +7280,9 @@ declare class ApiSuppliesService {
7298
7280
  }
7299
7281
 
7300
7282
  declare class WebSocketsService {
7301
- private environments;
7302
7283
  private pusher;
7303
- constructor(environments: Environment);
7284
+ private environments;
7285
+ constructor();
7304
7286
  /**
7305
7287
  * Publishes an event to the specified channel with the given data.
7306
7288
  *
@@ -7345,7 +7327,6 @@ declare class WebSocketsService {
7345
7327
 
7346
7328
  declare class CryptoService {
7347
7329
  private environments;
7348
- constructor(environments: Environment);
7349
7330
  encryptAES(plaintext: string): Promise<string>;
7350
7331
  decryptAES(payload: string): Promise<string>;
7351
7332
  private loadKey;
@@ -7463,5 +7444,5 @@ declare const xmlHeaders: (format?: "object" | "http_header") => HttpHeaders | {
7463
7444
  [header: string]: string | string[];
7464
7445
  };
7465
7446
 
7466
- export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
7447
+ export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
7467
7448
  export type { Account, AccountCategoriesOut, AccountCategory, AccountEntitiesIn, AccountEntitiesOut, AccountIn, AccountOut, AccountPayment, AccountResponse, AccountToTDX, AccountType, AccountTypeIn, AccountTypeOut, AccountTypesOut, AccountsOut, ActiveLessLaravelModel, ActiveLessSymfonyModel, AdditionalData, AddressPlaceDetail, AddressPlaceDetailIn, AddressPlaceDetailsOut, AddressSuggestion, AddressSuggestionIn, AddressSuggestionsOut, ApiBillingConfigurable, ApiModel, ApiResponse, ApiSuccess, Attribute, AttributeIn, AttributeWithId, Attributes, AuthLoginIn, AuthLoginOut, AuthMeOut, AuthUserLoginIn, BillingConfig, BillingConfigIn, BillingConfigOut, BillingConfigsOut, BillingPaCustomer, BillingPaCustomerOut, BoardingProcess, BoardingProcessHistory, BoardingProcessIdIn, BoardingProcessIn, BoardingProcessStatus, BusinessPartyTraderType, BusinessPartyTraderTypesOut, CFDI, CancelPaymentReceiptIn, CancellationReason, CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CashValueSummary, CashValueSummaryOut, Catalog, CatalogLess, CatalogsOut, ChangeLanguageIn, Checkpoint, CheckpointEventReason, CheckpointEventReasonsOut, CheckpointsOut, City, CollectionPayment, CollectionPaymentsOut, CommercialInvoice, Commodity, Company, CompanyCountriesOut, CompanyCountry, CompanyCountryIn, CompanyCountryOut, CompanyCountryTax, CompanyCountryTaxesOut, CompanyIn, CompanyOut, CompositionCountryReferencesOut, CountriesOut, Country, CountryCurrencyRate, CountryDocumentType, CountryDocumentTypesOut, CountryExchange, CountryGroups, CountryGroupsOut, CountryIn, CountryOut, CountryPaymentType, CountryPaymentTypeField, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CountryPaymentTypeIn, CountryPaymentTypeOut, CountryPaymentTypesOut, CountryReference, CountryReferenceCurrenciesOut, CountryReferenceCurrency, CountryReferenceCurrencyIn, CountryReferenceCurrencyOut, CountryReferenceExtraCharge, CountryReferenceExtraChargeIn, CountryReferenceExtraChargeOut, CountryReferenceIn, CountryReferenceOut, CountryReferenceProduct, CountryReferenceProductIn, CountryReferenceProductOut, CountryReferenceProductsOut, CountryReferencesOut, Criteria, CriteriaCustom, CriteriaIn, CriteriaOut, CriteriaWithTimestamps, CurrenciesOut, Currency, CurrencyOut, Customer, CustomerComposition, CustomerCountryDocumentType, CustomerDocumentTypesOut, CustomerOpenItem, CustomerOtherInvoice, CustomerRestriction, CustomerRestrictionIn, CustomerRestrictionInV2, CustomerRestrictionOut, CustomerRestrictionsOut, CustomerType, CustomerTypesOut, CustomersOut, Customs, DeliveryConfirmationCompleteIn, DeliveryConfirmationGenerateIn, DeliveryConfirmationGenerateOut, DeliveryConfirmationIn, DeliveryConfirmationSearchOut, Department, DepartmentsOut, DependentRules, DestinationCountry, DhlCode, DhlCodeLess, Discount, DiscountIn, DiscountOut, DiscountsOut, District, DistrictsOut, Document, DocumentCategory, DocumentCategoryReports, DocumentFunction, DocumentItem, DocumentPayment, DocumentRequests, DocumentStatus, DocumentStatusesOut, DocumentType, DocumentTypeComposition, DocumentTypeRange, DocumentTypeRangeIn, DocumentTypeRangeOut, DocumentTypeRangesOut, DocumentTypeReports, DocumentsTypesRangesCurrentStatusOut, Dropdown, DropdownConfig, EconomicActivitiesOut, EconomicActivity, EmailErrorIn, EmbassyShipment, EmbassyShipmentIn, EmbassyShipmentOut, EmbassyShipmentsOut, Employee, EmployeeCustomerDhl, EmployeeCustomersIn, EmployeeCustomersOut, EmployeeIn, EmployeeOut, EmployeesCustomersOut, EmployeesOut, Entity, Environment, EstablishmentType, EstablishmentTypesOut, Exchange, ExchangeIn, ExchangeOut, ExchangesOut, ExportType, ExportTypesOut, ExternalShipmentAddress, ExternalShipmentAddressCancellation, ExternalShipmentAddressesIn, ExternalShipmentAddressesOut, ExternalShipmentCancellationIn, ExternalShipmentFile, ExternalShipmentFileHistory, ExternalShipmentFileOut, ExternalShipmentHistoriesOut, ExternalShipmentHistory, ExternalShipmentStatus, ExternalShipmentStatusOut, ExternalShipmentStatuses, ExternalShipmentsOut, ExtraCharge, ExtraChargeComposition, ExtraChargeEntitiesIn, ExtraChargeEntitiesOut, ExtraChargeEntity, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, Facility, Field, FieldLess, FieldsOut, FileCheckOut, FillFrom, FillFromIn, FiscalRegimen, FiscalRegimensAcceptedOut, FiscalRegimensOut, GenericFolio, GenericFolioIn, GenericFolioOut, GenericFoliosOut, GetDocumentsOut, GetPostalLocationsIn, GetUserOut, GetUsersOut, Holiday, HolidayIn, HolidayOut, HolidaysOut, IdentificationType, IdentificationTypeComposition, IdentificationTypeCustomer, IdentificationTypeIn, IdentificationTypeNumberValidationIn, IdentificationTypeNumberValidationOut, IdentificationTypeOut, IdentificationTypesOut, Incident, IncidentIn, IncidentOut, IncidentReason, IncidentReasonComplement, IncidentReasonComplementIn, IncidentReasonComplementOut, IncidentReasonComplementsOut, IncidentReasonIn, IncidentReasonOut, IncidentReasonsOut, IncidentsOut, IncomeType, IncomeTypesOut, Installation, InstallationCountryReferenceCurrenciesOut, InstallationCountryReferenceCurrency, InstallationCountryReferenceCurrencyIn, InstallationCountryReferenceCurrencyOut, InstallationIn, InstallationOut, InstallationsOut, Invoice, InvoiceCancellationIn, InvoiceTypeCustomParamsIn, InvoicesOut, Item, Language, LanguagesOut, LaravelModel, Location, LocationEmployee, LocationEmployeeBatchIn, LocationEmployeeOut, LocationEmployeesIn, LocationEmployeesOut, LocationIn, LocationOut, LocationType, LocationTypeFields, LocationsOut, LoyaltyPeriod, LoyaltyPeriodIn, LoyaltyPeriodOut, LoyaltyPeriodsOut, LoyaltyRule, LoyaltyRuleIn, LoyaltyRuleOut, LoyaltyRulesOut, ManagementArea, ManagementAreasOut, ManifestMultipleIn, ManifestMultipleOut, ManufactureCountry, Module, ModuleType, ModulesOut, MunicipalitiesOut, Municipality, Notification, NotificationConfiguration, NotificationConfigurationIn, NotificationConfigurationOut, NotificationIn, NotificationOut, NotificationStatus, NotificationType, NotificationsOut, NotificationsTypeOut, OpenItem, OpenItemIn, OpenItems, OpenItemsOut, OpeningTransference, OpeningTransferenceIn, OpeningTransferenceOut, Operation, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationAction, OperationCancelBillingIn, OperationCancelBillingOut, OperationDocumentIn, OperationDocumentOut, OperationDocumentRequestsOut, OperationEvent, OperationModule, OperationModuleEndIn, OperationModuleOut, OperationModuleStartIn, OperationPrintDocumentOut, OperationPrintXmlOut, OperationShipmentExternalIn, OperationShipmentExternalOut, OperationType, OperationTypesOut, OperationsLoadTopCustomerV2In, OtherInvoiceIn, OtherInvoiceOut, OtherInvoices, Override, OverridesOut, PackageLocation, PackageLocationsData, PackagesInStockIn, PackagesInStockOut, Parameter, ParameterConfig, ParameterConfigIn, ParameterConfigOut, ParameterConfigsOut, ParameterValueIn, ParameterValueOut, ParametersByLevelIn, ParametersOut, ParametersValuesIn, ParametersValuesOut, Parish, ParishesOut, PartialWithdrawal, PartialWithdrawalsOut, Payment, PaymentDetail, PaymentOpenItemIn, PaymentOut, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardType, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PaymentTypesOut, Permission, PersonType, PersonTypesOut, Pivot, PostalCode, PostalCodeBillings, PostalCodesOut, PostalLocation, PostalLocationsOut, PrintCollectionReceiptOut, Product, ProductEntitiesIn, ProductEntitiesOut, ProductEntity, ProductIn, ProductOut, ProductSubtotal, PromotionCodeDiscount, PromotionCodeDiscountsOut, PromotionIn, PromotionOut, Provider, ProvidersOut, Province, ProvincesOut, PutUsersIn, PutUsersOut, QuantityUnit, QueryParams, Question, QuestionIn, QuestionOut, QuestionsOut, QuoteEvent, QuoteEventIn, QuoteEventOut, QuoteEventType, QuoteEventTypesOut, QuoteEventsOut, ReceiptFile, ReceiptFileOut, Region, RegionsOut, ReportExternalShipment, ReportExternalShipmentAddress, Role, RoleIn, RoleOut, RoleType, RoleTypesOut, RolesOut, Rule, RuleByCriteria, RuleCriteriaIn, RuleIn, RuleOut, Rules, RulesByCriteriaOut, RulesIn, RulesOut, Sales, SalesBookReportOut, ServiceArea, ServiceAreaIn, ServiceAreasOut, Session, SessionIn, SessionOut, ShipmentAddresses, ShipmentBookPickup, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentCompanyCountryExtraCharges, ShipmentComposition, ShipmentContentType, ShipmentContentTypesOut, ShipmentEmployeeCustomer, ShipmentEmployeeCustomers, ShipmentGroup, ShipmentGroupsOut, ShipmentGsop, ShipmentIncomeType, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentLandingReport, ShipmentOut, ShipmentPieceCompanyCountrySupplies, ShipmentPieces, ShipmentReports, ShipmentScope, ShipmentScopesOut, ShipmentSignaturePageOut, ShipmentStatus, ShipmentStatusesOut, ShipmentTag, ShipmentsLandingReportOut, ShipmentsReportOut, SignaturePageSetting, SignaturePageSettingIn, SignaturePageSettingOut, SignaturePageSettingsOut, State, Suburb, SuppliesOut, Supply, SupplyEntitiesIn, SupplyEntitiesOut, SupplyEntity, SupplyEntityPacking, SupplyEntityType, SupplyIn, SupplyLocation, SupplyLocationIn, SupplyLocationOut, SupplyLocationTransaction, SupplyLocationTransactionIn, SupplyLocationTransactionOut, SupplyLocationsOut, SupplyOut, SupplyPacking, SupplyTransactionType, SupplyTransactionTypesOut, SupplyType, SupplyTypesOut, SymfonyModel, System, SystemEntitiesIn, SystemEntitiesOut, SystemIn, SystemOut, SystemsOut, TDXAccountSetting, TDXAccountSettingsIn, TDXAccountSettingsOut, TDXAccountsSettingsOut, Tax, TextConfig, Tolerance, ToleranceIn, ToleranceOut, TolerancesOut, TopCustomer, TopCustomersOut, TradingTransactionType, TransferenceType, Translations, UniqueFolio, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, Unit, UnitsOut, User, UserMe, ValidateAccountIn, ValidateAccountOut, ValidateFacilityIn, ValidateFacilityOut, ValidateIdentificationBRIn, ValidateIdentificationBROut, ValidateNIPIn, ValidateNIPOut, Values, WithdrawalAmount, WorkflowConfig, WorkflowConfigsBatchIn, WorkflowConfigsOut, WorkflowsOut, Zone, ZonesOut };