@experteam-mx/ngx-services 18.7.11 → 18.7.13

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.
Files changed (39) hide show
  1. package/esm2022/lib/apis/api-cash-operations.service.mjs +31 -1
  2. package/esm2022/lib/apis/api-reports.service.mjs +13 -1
  3. package/esm2022/lib/apis/api-services.service.mjs +93 -0
  4. package/esm2022/lib/apis/api-supplies.service.mjs +83 -0
  5. package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +1 -1
  6. package/esm2022/lib/apis/models/api-cash-operations.types.mjs +1 -1
  7. package/esm2022/lib/apis/models/api-companies.interfaces.mjs +1 -1
  8. package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
  9. package/esm2022/lib/apis/models/api-composition.interfaces.mjs +1 -1
  10. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
  11. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  12. package/esm2022/lib/apis/models/api-services.interfaces.mjs +2 -0
  13. package/esm2022/lib/apis/models/api-services.types.mjs +2 -0
  14. package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +2 -0
  15. package/esm2022/lib/apis/models/api-supplies.types.mjs +2 -0
  16. package/esm2022/lib/helpers/files.mjs +9 -0
  17. package/esm2022/lib/ngx-services.models.mjs +1 -1
  18. package/esm2022/public-api.mjs +8 -1
  19. package/fesm2022/experteam-mx-ngx-services.mjs +220 -1
  20. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  21. package/lib/apis/api-cash-operations.service.d.ts +22 -1
  22. package/lib/apis/api-reports.service.d.ts +8 -1
  23. package/lib/apis/api-services.service.d.ts +61 -0
  24. package/lib/apis/api-supplies.service.d.ts +55 -0
  25. package/lib/apis/models/api-cash-operations.interfaces.d.ts +34 -1
  26. package/lib/apis/models/api-cash-operations.types.d.ts +17 -1
  27. package/lib/apis/models/api-companies.interfaces.d.ts +0 -19
  28. package/lib/apis/models/api-companies.types.d.ts +3 -2
  29. package/lib/apis/models/api-composition.interfaces.d.ts +1 -18
  30. package/lib/apis/models/api-reports.interfaces.d.ts +20 -0
  31. package/lib/apis/models/api-reports.types.d.ts +5 -1
  32. package/lib/apis/models/api-services.interfaces.d.ts +43 -0
  33. package/lib/apis/models/api-services.types.d.ts +57 -0
  34. package/lib/apis/models/api-supplies.interfaces.d.ts +20 -0
  35. package/lib/apis/models/api-supplies.types.d.ts +26 -0
  36. package/lib/helpers/files.d.ts +2 -0
  37. package/lib/ngx-services.models.d.ts +2 -0
  38. package/package.json +1 -1
  39. package/public-api.d.ts +7 -0
@@ -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
  }
@@ -0,0 +1,61 @@
1
+ import { Environment } from '../ngx-services.models';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { ValidateFacilityIn, ValidateFacilityOut, ServiceAreasOut, EmailErrorIn, PromotionIn, PromotionOut, ValidateNIPOut, ValidateNIPIn, ValidateIdentificationBROut, ValidateIdentificationBRIn, ServiceAreaIn } from './models/api-services.types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ApiServicesService {
7
+ private environments;
8
+ private http;
9
+ constructor(environments: Environment, http: HttpClient);
10
+ /**
11
+ * Retrieves the URL for the services API from the environment settings.
12
+ * If the URL is not defined, an empty string is returned.
13
+ *
14
+ * @return {string} The API Services URL or an empty string if not defined.
15
+ */
16
+ get url(): string;
17
+ /**
18
+ * Retrieves service areas based on the provided query parameters.
19
+ *
20
+ * @param {ServiceAreaIn} body - The query parameters used to filter and retrieve service areas.
21
+ * @return {Observable<NotificationsOut>} An observable that emits the fetched service areas.
22
+ */
23
+ postServiceAreas(body: ServiceAreaIn): Observable<ServiceAreasOut>;
24
+ /**
25
+ * Validate facility values based on the provided parameter.
26
+ *
27
+ * @param {ValidateFacilityIn} body - The facility data to be sent in the request body
28
+ * @return {Observable<ValidateFacilityOut>} An observable emitting the response containing the facility validated output data.
29
+ */
30
+ postValidateFacility(body: ValidateFacilityIn): Observable<ValidateFacilityOut>;
31
+ /**
32
+ * Create an email resource.
33
+ *
34
+ * @param {EmailErrorIn} body - The email data to be sent in the request body
35
+ * @return {Observable<{}>} An observable emitting the response data.
36
+ */
37
+ postEmailError(body: EmailErrorIn): Observable<{}>;
38
+ /**
39
+ * Sends a promotion request to the server using the provided body.
40
+ *
41
+ * @param {PromotionIn} body - The promotion data to be sent in the request body.
42
+ * @return {Observable<PromotionOut>} An observable emitting the response containing the promotion output data.
43
+ */
44
+ postPromotion(body: PromotionIn): Observable<PromotionOut>;
45
+ /**
46
+ * Validate NIP account value based on the provided parameter.
47
+ *
48
+ * @param {ValidateNIPIn} body - The NIP account data to be sent in the request body
49
+ * @return {Observable<ValidateNIPOut>} An observable emitting the response containing the NIP account validated data.
50
+ */
51
+ postValidateNIP(body: ValidateNIPIn): Observable<ValidateNIPOut>;
52
+ /**
53
+ * Validate BR Identification value based on the provided parameter.
54
+ *
55
+ * @param {ValidateIdentificationBRIn} body - The BR Identification data to be sent in the request body
56
+ * @return {Observable<ValidateIdentificationBROut>} An observable emitting the response containing the BR Identification validated data.
57
+ */
58
+ postValidateIdentificationBR(body: ValidateIdentificationBRIn): Observable<ValidateIdentificationBROut>;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiServicesService, never>;
60
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiServicesService>;
61
+ }
@@ -0,0 +1,55 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Environment } from '../ngx-services.models';
3
+ import { Observable } from 'rxjs';
4
+ import { QueryParams } from './models/api.models';
5
+ import { SuppliesOut, SupplyIn, SupplyOut, SupplyTypesOut } from './models/api-supplies.types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApiSuppliesService {
8
+ private environments;
9
+ private http;
10
+ constructor(environments: Environment, http: HttpClient);
11
+ /**
12
+ * Retrieves the URL for the API supplies endpoint.
13
+ *
14
+ * @return {string} The API supplies URL or an empty string if not defined.
15
+ */
16
+ get url(): string;
17
+ /**
18
+ * Fetches a list of supplies based on the provided query parameters.
19
+ *
20
+ * @param {QueryParams} params - The query parameters to filter the supplies.
21
+ * @return {Observable<SuppliesOut>} An observable containing the list of supplies.
22
+ */
23
+ getSupplies(params: QueryParams): Observable<SuppliesOut>;
24
+ /**
25
+ * Retrieves the supply details for a given supply ID.
26
+ *
27
+ * @param {number} id - The unique identifier of the supply to retrieve.
28
+ * @return {Observable<SupplyOut>} An observable containing the supply details.
29
+ */
30
+ getSupply(id: number): Observable<SupplyOut>;
31
+ /**
32
+ * Sends a supply object to the server and returns the created or updated supply information.
33
+ *
34
+ * @param {SupplyIn} body - The supply information to be sent to the server.
35
+ * @return {Observable<SupplyOut>} An observable containing the response with the supply data.
36
+ */
37
+ postSupply(body: SupplyIn): Observable<SupplyOut>;
38
+ /**
39
+ * Updates an existing supply with the provided data.
40
+ *
41
+ * @param {number} id - The unique identifier of the supply to update.
42
+ * @param {SupplyIn} body - The data to update the supply with.
43
+ * @return {Observable<SupplyOut>} An observable containing the updated supply information.
44
+ */
45
+ putSupply(id: number, body: SupplyIn): Observable<SupplyOut>;
46
+ /**
47
+ * Fetches the supply types based on the provided query parameters.
48
+ *
49
+ * @param {QueryParams} params - The query parameters to filter the supply types.
50
+ * @return {Observable<SupplyTypesOut>} An Observable that emits the supply types data.
51
+ */
52
+ getSupplyTypes(params: QueryParams): Observable<SupplyTypesOut>;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiSuppliesService, never>;
54
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiSuppliesService>;
55
+ }
@@ -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
+ };
@@ -224,25 +224,6 @@ export interface ParameterConfig {
224
224
  };
225
225
  parameter: Parameter;
226
226
  }
227
- export interface SupplyEntity extends LaravelModel {
228
- name: string;
229
- description: string;
230
- country_id: number;
231
- enabled_for_dropoff: boolean;
232
- supply_type: SupplyType;
233
- supply_packing: SupplyPacking;
234
- }
235
- export interface SupplyPacking extends LaravelModel {
236
- value: number;
237
- weight: number;
238
- height: number;
239
- depth: number;
240
- width: number;
241
- emobile_code: string | null;
242
- }
243
- export interface SupplyType extends LaravelModel {
244
- name: string;
245
- }
246
227
  export interface WorkflowConfig {
247
228
  id: number;
248
229
  system_id: number;
@@ -1,4 +1,5 @@
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';
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';
2
3
  export type LocationEmployeesOut = {
3
4
  location_employees: LocationEmployee[];
4
5
  total: number;
@@ -78,7 +79,7 @@ export type SupplyEntitiesIn = {
78
79
  }[];
79
80
  };
80
81
  export type SupplyEntitiesOut = {
81
- supply_entities: SupplyEntity[];
82
+ supply_entities: Supply[];
82
83
  total: number;
83
84
  };
84
85
  export type EmployeesOut = {
@@ -1,5 +1,6 @@
1
1
  import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
2
  import { CustomerType } from './api-shipments.enums';
3
+ import { Supply } from './api-supplies.interfaces';
3
4
  export interface ShipmentComposition extends SymfonyModel {
4
5
  currencyCode: string;
5
6
  extraCharges: ExtraChargeComposition[];
@@ -142,24 +143,6 @@ export interface ShipmentPieceCompanyCountrySupplies extends ActiveLessSymfonyMo
142
143
  description: string;
143
144
  supply: Supply;
144
145
  }
145
- export interface Supply extends ActiveLessSymfonyModel {
146
- name: string;
147
- description: string;
148
- countryId: number;
149
- enabledForDropoff: boolean;
150
- supplyType: SupplyTypeComposition;
151
- supplyPacking: SupplyPackingComposition;
152
- }
153
- export interface SupplyTypeComposition extends SymfonyModel {
154
- name: string;
155
- }
156
- export interface SupplyPackingComposition extends ActiveLessSymfonyModel {
157
- value: number;
158
- weight: number;
159
- height: number;
160
- depth: number;
161
- width: number;
162
- }
163
146
  export interface CommercialInvoice extends ActiveLessSymfonyModel {
164
147
  documentTypeId: number;
165
148
  tradingTransactionTypeId: number;
@@ -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,43 @@
1
+ import { SymfonyModel } from './api.models';
2
+ export interface ServiceArea extends SymfonyModel {
3
+ serviceAreaCodeName: string;
4
+ referenceDataCode: string;
5
+ serviceAreaCode: string;
6
+ serviceAreaName: string;
7
+ serviceAreaStatusCode: string;
8
+ serviceAreaStatusCodeDescription: string;
9
+ iataCode: string;
10
+ iataAirportName: string;
11
+ countryCode: string;
12
+ countryName: string;
13
+ timezoneCode: string;
14
+ timezoneCodeName: string;
15
+ offNetServiceIndicator: string;
16
+ offNetServiceIndicatorDescription: string;
17
+ effectiveDate: string;
18
+ }
19
+ export interface Facility extends SymfonyModel {
20
+ facilityIdentifier: string;
21
+ facilityCode: string;
22
+ serviceAreaCode: string;
23
+ serviceAreaName: string;
24
+ facilityName: string;
25
+ countryCode: string;
26
+ countryName: string;
27
+ facilityStatusCode: string;
28
+ facilityCompanyName: string;
29
+ facilityTypeIndicator: string;
30
+ cityName: string;
31
+ addressLine1: string;
32
+ postcode: string;
33
+ addressLongitude: string;
34
+ addressLatitude: string;
35
+ stateProvinceCode: string;
36
+ stateProvinceName: string;
37
+ regionCode: string;
38
+ regionName: string;
39
+ facilityWeightUnitOfMeasure: string;
40
+ facilityDimensionUnitOfMeasure: string;
41
+ facilityPrintIndicator: string;
42
+ effectiveDate: string;
43
+ }
@@ -0,0 +1,57 @@
1
+ import { Facility, ServiceArea } from './api-services.interfaces';
2
+ export type ServiceAreaIn = {
3
+ countryCodes: string[];
4
+ };
5
+ export type ServiceAreasOut = {
6
+ serviceAreas: ServiceArea[];
7
+ total: number;
8
+ };
9
+ export type ValidateFacilityOut = {
10
+ facility: Facility;
11
+ transactionId: string;
12
+ };
13
+ export type ValidateFacilityIn = {
14
+ facilityIdentifier: string;
15
+ };
16
+ export type EmailErrorIn = {
17
+ transactionId: string;
18
+ details: string;
19
+ extraFields: {
20
+ [key: string]: string;
21
+ };
22
+ };
23
+ export type PromotionIn = {
24
+ code: string;
25
+ destinationCountryCode: string;
26
+ shipmentDatetime: string;
27
+ shipper: {
28
+ countryCode: string;
29
+ accountNumber: string;
30
+ };
31
+ };
32
+ export type PromotionOut = {
33
+ promotion: {
34
+ accountNumber: string;
35
+ };
36
+ transactionId: string;
37
+ };
38
+ export type ValidateNIPOut = {
39
+ nip: {
40
+ valid: string;
41
+ message: string;
42
+ };
43
+ };
44
+ export type ValidateNIPIn = {
45
+ accountValue: string;
46
+ nip: string;
47
+ user: number;
48
+ };
49
+ export type ValidateIdentificationBROut = {
50
+ identification: {
51
+ valid: boolean;
52
+ };
53
+ };
54
+ export type ValidateIdentificationBRIn = {
55
+ identification_number: string;
56
+ validate_state_tax: boolean;
57
+ };
@@ -0,0 +1,20 @@
1
+ import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
+ export interface Supply extends ActiveLessSymfonyModel {
3
+ name: string;
4
+ description: string;
5
+ countryId: number;
6
+ enabledForDropoff: boolean;
7
+ supplyType: SupplyType;
8
+ supplyPacking: SupplyPacking;
9
+ }
10
+ export interface SupplyType extends SymfonyModel {
11
+ name: string;
12
+ }
13
+ export interface SupplyPacking extends SymfonyModel {
14
+ value: number;
15
+ weight: number;
16
+ height: number;
17
+ depth: number;
18
+ width: number;
19
+ emobileCode: string;
20
+ }
@@ -0,0 +1,26 @@
1
+ import { Supply, SupplyType } from './api-supplies.interfaces';
2
+ export type SuppliesOut = {
3
+ supplies: Supply[];
4
+ total: number;
5
+ };
6
+ export type SupplyIn = {
7
+ supplyTypeId: number;
8
+ name: string;
9
+ description: string;
10
+ countryId: number;
11
+ enabledForDropoff: boolean;
12
+ supplyPacking: {
13
+ value: number;
14
+ weight: number;
15
+ height: number;
16
+ depth: number;
17
+ width: number;
18
+ };
19
+ };
20
+ export type SupplyOut = {
21
+ supply: Supply;
22
+ };
23
+ export type SupplyTypesOut = {
24
+ supplyTypes: SupplyType[];
25
+ total: number;
26
+ };
@@ -0,0 +1,2 @@
1
+ export declare const base64PdfToUrl: (base64: string) => string;
2
+ export declare const downloadBase64Pdf: (base64: string) => Window | null;
@@ -32,7 +32,9 @@ export type Environment = {
32
32
  apiOpenItemsUrl?: string;
33
33
  apiReportsUrl?: string;
34
34
  apiSecurityUrl?: string;
35
+ apiServicesUrl?: string;
35
36
  apiShipmentUrl?: string;
37
+ apiSuppliesUrl?: string;
36
38
  authCookie: string;
37
39
  cacheTtl?: number;
38
40
  printUrl?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.7.11",
3
+ "version": "18.7.13",
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
@@ -16,7 +16,9 @@ export * from './lib/apis/api-notifications.service';
16
16
  export * from './lib/apis/api-open-items.service';
17
17
  export * from './lib/apis/api-reports.service';
18
18
  export * from './lib/apis/api-security.service';
19
+ export * from './lib/apis/api-services.service';
19
20
  export * from './lib/apis/api-shipments.service';
21
+ export * from './lib/apis/api-supplies.service';
20
22
  export * from './lib/apis/models/api-billing-pa.interfaces';
21
23
  export * from './lib/apis/models/api-billing-pa.types';
22
24
  export * from './lib/apis/models/api-billing.types';
@@ -45,7 +47,11 @@ export * from './lib/apis/models/api-open-items.types';
45
47
  export * from './lib/apis/models/api-reports.interfaces';
46
48
  export * from './lib/apis/models/api-security.interfaces';
47
49
  export * from './lib/apis/models/api-security.types';
50
+ export * from './lib/apis/models/api-services.interfaces';
51
+ export * from './lib/apis/models/api-services.types';
48
52
  export * from './lib/apis/models/api-shipments.types';
53
+ export * from './lib/apis/models/api-supplies.interfaces';
54
+ export * from './lib/apis/models/api-supplies.types';
49
55
  export * from './lib/apis/models/api.models';
50
56
  export * from './lib/websockets/web-sockets.service';
51
57
  export * from './lib/cypher/crypto.service';
@@ -53,3 +59,4 @@ export * from './lib/interceptors/api-headers.interceptor';
53
59
  export * from './lib/interceptors/api-token.interceptor';
54
60
  export * from './lib/interceptors/http-caching.interceptor';
55
61
  export * from './lib/helpers/http';
62
+ export * from './lib/helpers/files';