@experteam-mx/ngx-services 18.7.12 → 18.7.14

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.
@@ -2,7 +2,7 @@ import { Environment } from '../ngx-services.models';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { QueryParams } from './models/api.models';
4
4
  import { Observable } from 'rxjs';
5
- import { InstallationCountryReferenceCurrenciesOut, InstallationCountryReferenceCurrencyIn, InstallationCountryReferenceCurrencyOut } from './models/api-cash-operations.types';
5
+ import { CashValueSummaryOut, InstallationCountryReferenceCurrenciesOut, InstallationCountryReferenceCurrencyIn, InstallationCountryReferenceCurrencyOut, OpeningTransferenceIn, OpeningTransferenceOut, ReceiptFileOut } from './models/api-cash-operations.types';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiCashOperationsService {
8
8
  private environments;
@@ -36,6 +36,27 @@ export declare class ApiCashOperationsService {
36
36
  * @returns {Observable<InstallationCountryReferenceCurrenciesOut>} The list of reference currencies.
37
37
  */
38
38
  getInstallationCompanyCountryCurrencies(params: QueryParams): Observable<InstallationCountryReferenceCurrenciesOut>;
39
+ /**
40
+ * Retrieves the cash value summary for a specific opening ID.
41
+ *
42
+ * @param {number} id - The ID of the opening for which to retrieve the cash value summary.
43
+ * @returns {Observable<CashValueSummaryOut>} An observable that emits the cash value summary data.
44
+ */
45
+ getOpeningCashValueSummary(id: number): Observable<CashValueSummaryOut>;
46
+ /**
47
+ * Creates a new opening transference record.
48
+ *
49
+ * @param {OpeningTransferenceIn} body - The data to create the new opening transference.
50
+ * @returns {Observable<OpeningTransferenceOut>} An observable that emits the newly created opening transference.
51
+ */
52
+ postOpeningTransferences(body: OpeningTransferenceIn): Observable<OpeningTransferenceOut>;
53
+ /**
54
+ * Retrieves the receipt file associated with the given opening transference ID.
55
+ *
56
+ * @param {number} id - The ID of the opening transference whose receipt is to be retrieved.
57
+ * @returns {Observable<ReceiptFileOut>} An observable that emits the receipt file data.
58
+ */
59
+ getOpeningTransferenceReceipt(id: number): Observable<ReceiptFileOut>;
39
60
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiCashOperationsService, never>;
40
61
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiCashOperationsService>;
41
62
  }
@@ -2,7 +2,7 @@ import { Environment } from '../ngx-services.models';
2
2
  import { HttpClient, HttpResponse } from '@angular/common/http';
3
3
  import { Observable } from 'rxjs';
4
4
  import { QueryParams } from './models/api.models';
5
- import { CollectionPaymentsOut, ExistPendingInvoicesIn, ExistPendingPaymentsIn, ExternalShipmentsOut, FileCheckOut, PromotionCodeDiscountsOut, ShipmentsReportOut } from './models/api-reports.types';
5
+ import { CollectionPaymentsOut, ExistPendingInvoicesIn, ExistPendingPaymentsIn, ExternalShipmentsOut, FileCheckOut, PartialWithdrawalsOut, PromotionCodeDiscountsOut, ShipmentsReportOut } from './models/api-reports.types';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiReportsService {
8
8
  private environments;
@@ -79,6 +79,13 @@ export declare class ApiReportsService {
79
79
  * @return {Observable<{}>} An observable emitting the response data after the deletion is processed.
80
80
  */
81
81
  deleteFileCheck(transactionId: string): Observable<{}>;
82
+ /**
83
+ * Retrieves partial withdrawals based on the provided query parameters.
84
+ *
85
+ * @param {QueryParams} params - The parameters used to filter the list of partial withdrawals.
86
+ * @returns {Observable<PartialWithdrawalsOut>} An observable that emits the filtered list of partial withdrawals.
87
+ */
88
+ getPartialWithdrawals(params: QueryParams): Observable<PartialWithdrawalsOut>;
82
89
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
83
90
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
84
91
  }
@@ -1,7 +1,40 @@
1
- import { ActiveLessSymfonyModel } from './api.models';
1
+ import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
2
  export interface InstallationCountryReferenceCurrency extends ActiveLessSymfonyModel {
3
3
  installationId?: number;
4
4
  countryReferenceCurrencyId: number;
5
5
  minCashValue?: number;
6
6
  maxCashValue?: number;
7
7
  }
8
+ export interface CashValueSummary {
9
+ countryReferenceCurrencyId: number;
10
+ currencyCode: string;
11
+ balanceInitial: number;
12
+ transfers: number;
13
+ payments: number;
14
+ totalBalance: number;
15
+ minCashValue: number;
16
+ maxAmount: number;
17
+ }
18
+ export interface OpeningTransference extends ActiveLessSymfonyModel {
19
+ openingId: number;
20
+ openingReferenceId: number;
21
+ transferenceTypeId: number;
22
+ userId: number;
23
+ amount: number;
24
+ countryReferenceCurrencyId: number;
25
+ transferenceCode: string;
26
+ receiptNumber: string;
27
+ userName: string | null;
28
+ userUsername: string | null;
29
+ currencyCode: string | null;
30
+ maxCashExceeded: boolean;
31
+ transferenceType: TransferenceType;
32
+ }
33
+ export interface ReceiptFile {
34
+ format: string;
35
+ base64: string;
36
+ }
37
+ export interface TransferenceType extends SymfonyModel {
38
+ code: string;
39
+ name: string;
40
+ }
@@ -1,4 +1,4 @@
1
- import { InstallationCountryReferenceCurrency } from './api-cash-operations.interfaces';
1
+ import { CashValueSummary, InstallationCountryReferenceCurrency, OpeningTransference, ReceiptFile } from './api-cash-operations.interfaces';
2
2
  export type InstallationCountryReferenceCurrenciesOut = {
3
3
  total: number;
4
4
  installationCountryReferenceCurrencies: InstallationCountryReferenceCurrency[];
@@ -12,3 +12,19 @@ export type InstallationCountryReferenceCurrencyIn = {
12
12
  export type InstallationCountryReferenceCurrencyOut = {
13
13
  installationCountryReferenceCurrencies: InstallationCountryReferenceCurrency;
14
14
  };
15
+ export type CashValueSummaryOut = {
16
+ total: number;
17
+ cashValueSummary: CashValueSummary[];
18
+ };
19
+ export type OpeningTransferenceIn = {
20
+ openingId: number;
21
+ amount: number;
22
+ countryReferenceCurrencyId: number;
23
+ transferenceTypeCode: string;
24
+ };
25
+ export type OpeningTransferenceOut = {
26
+ openingTransference: OpeningTransference;
27
+ };
28
+ export type ReceiptFileOut = {
29
+ receipt: ReceiptFile;
30
+ };
@@ -313,3 +313,24 @@ export interface AccountToTDX extends ActiveLessLaravelModel {
313
313
  account_type_id: number;
314
314
  country_id: number;
315
315
  }
316
+ export interface SupplyEntity extends LaravelModel {
317
+ name: string;
318
+ description: null | string;
319
+ country_id: number;
320
+ enabled_for_dropoff: boolean;
321
+ supply_type: SupplyEntityType;
322
+ supply_packing: SupplyEntityPacking;
323
+ }
324
+ export interface SupplyEntityType extends LaravelModel {
325
+ name: string;
326
+ }
327
+ export interface SupplyEntityPacking {
328
+ value: number;
329
+ weight: number;
330
+ height: number;
331
+ depth: number;
332
+ width: number;
333
+ emobile_code: null | string;
334
+ created_at: string;
335
+ updated_at: string;
336
+ }
@@ -1,5 +1,4 @@
1
- import { Account, AccountCategory, AccountType, BoardingProcess, Company, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, CountryReferenceExtraCharge, CountryReferenceProduct, Employee, EmployeeCustomerDhl, ExtraChargeEntity, Installation, Location, LocationEmployee, Parameter, ParameterConfig, ProductEntity, System, TDXAccountSetting, WorkflowConfig } from './api-companies.interfaces';
2
- import { Supply } from './api-supplies.interfaces';
1
+ import { Account, AccountCategory, AccountType, BoardingProcess, Company, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, CountryReferenceExtraCharge, CountryReferenceProduct, Employee, EmployeeCustomerDhl, ExtraChargeEntity, Installation, Location, LocationEmployee, Parameter, ParameterConfig, ProductEntity, SupplyEntity, System, TDXAccountSetting, WorkflowConfig } from './api-companies.interfaces';
3
2
  export type LocationEmployeesOut = {
4
3
  location_employees: LocationEmployee[];
5
4
  total: number;
@@ -79,7 +78,7 @@ export type SupplyEntitiesIn = {
79
78
  }[];
80
79
  };
81
80
  export type SupplyEntitiesOut = {
82
- supply_entities: Supply[];
81
+ supply_entities: SupplyEntity[];
83
82
  total: number;
84
83
  };
85
84
  export type EmployeesOut = {
@@ -262,3 +262,23 @@ export interface ProductSubtotal {
262
262
  currency_code: string;
263
263
  value: number;
264
264
  }
265
+ export interface WithdrawalAmount {
266
+ country_reference_currency_id: number;
267
+ currency_id: number;
268
+ currency_code: string;
269
+ value: number | null;
270
+ }
271
+ export interface PartialWithdrawal extends ActiveLessLaravelModel {
272
+ country_id: number;
273
+ company_country_id: number;
274
+ location_id: number;
275
+ installation_id: number;
276
+ opening_user_id: number;
277
+ opening_user_username: string;
278
+ opening_user_name: string;
279
+ opening_reference_user_id: number;
280
+ opening_reference_user_username: string;
281
+ opening_reference_user_name: string;
282
+ receipt_number: string;
283
+ amounts: WithdrawalAmount[];
284
+ }
@@ -1,4 +1,4 @@
1
- import { CollectionPayment, PromotionCodeDiscount, ReportExternalShipment, ShipmentReports } from './api-reports.interfaces';
1
+ import { CollectionPayment, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, ShipmentReports } from './api-reports.interfaces';
2
2
  import { QueryParams } from './api.models';
3
3
  import { Session } from './api-security.interfaces';
4
4
  export type CollectionPaymentsOut = {
@@ -46,3 +46,7 @@ export type FileCheckOut = {
46
46
  id: string;
47
47
  };
48
48
  };
49
+ export type PartialWithdrawalsOut = {
50
+ partial_withdrawals: PartialWithdrawal[];
51
+ total: number;
52
+ };
@@ -0,0 +1,2 @@
1
+ export declare const base64PdfToUrl: (base64: string) => string;
2
+ export declare const downloadBase64Pdf: (base64: string) => Window | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.7.12",
3
+ "version": "18.7.14",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [
package/public-api.d.ts CHANGED
@@ -59,3 +59,4 @@ export * from './lib/interceptors/api-headers.interceptor';
59
59
  export * from './lib/interceptors/api-token.interceptor';
60
60
  export * from './lib/interceptors/http-caching.interceptor';
61
61
  export * from './lib/helpers/http';
62
+ export * from './lib/helpers/files';