@experteam-mx/ngx-services 18.3.6 → 18.4.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.
Files changed (46) hide show
  1. package/esm2022/lib/apis/api-companies.service.mjs +3 -3
  2. package/esm2022/lib/apis/api-invoices.service.mjs +4 -14
  3. package/esm2022/lib/apis/api-reports.service.mjs +4 -40
  4. package/esm2022/lib/apis/api-security.service.mjs +4 -30
  5. package/esm2022/lib/apis/api-shipments.service.mjs +4 -14
  6. package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
  7. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
  8. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  9. package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
  10. package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
  11. package/esm2022/lib/cypher/crypto.service.mjs +3 -3
  12. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +22 -36
  13. package/esm2022/lib/interceptors/api-token.interceptor.mjs +25 -39
  14. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +30 -43
  15. package/esm2022/lib/ngx-services.models.mjs +11 -2
  16. package/esm2022/lib/ngx-services.module.mjs +4 -4
  17. package/esm2022/public-api.mjs +2 -10
  18. package/fesm2022/experteam-mx-ngx-services.mjs +107 -455
  19. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  20. package/lib/apis/api-invoices.service.d.ts +2 -9
  21. package/lib/apis/api-reports.service.d.ts +1 -17
  22. package/lib/apis/api-security.service.d.ts +0 -19
  23. package/lib/apis/api-shipments.service.d.ts +2 -9
  24. package/lib/apis/models/api-invoices.types.d.ts +0 -29
  25. package/lib/apis/models/api-reports.interfaces.d.ts +0 -149
  26. package/lib/apis/models/api-reports.types.d.ts +1 -11
  27. package/lib/apis/models/api-security.interfaces.d.ts +0 -4
  28. package/lib/apis/models/api-shipments.types.d.ts +0 -41
  29. package/lib/interceptors/api-headers.interceptor.d.ts +11 -16
  30. package/lib/interceptors/api-token.interceptor.d.ts +10 -20
  31. package/lib/interceptors/http-caching.interceptor.d.ts +11 -19
  32. package/lib/ngx-services.models.d.ts +26 -9
  33. package/package.json +2 -3
  34. package/public-api.d.ts +1 -7
  35. package/esm2022/lib/apis/api-external-pickups.service.mjs +0 -72
  36. package/esm2022/lib/apis/api-open-items.service.mjs +0 -62
  37. package/esm2022/lib/apis/models/api-external-pickups.types.mjs +0 -2
  38. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +0 -2
  39. package/esm2022/lib/apis/models/api-open-items.types.mjs +0 -2
  40. package/esm2022/lib/websockets/web-sockets.service.mjs +0 -115
  41. package/lib/apis/api-external-pickups.service.d.ts +0 -45
  42. package/lib/apis/api-open-items.service.d.ts +0 -41
  43. package/lib/apis/models/api-external-pickups.types.d.ts +0 -31
  44. package/lib/apis/models/api-open-items.interfaces.d.ts +0 -32
  45. package/lib/apis/models/api-open-items.types.d.ts +0 -58
  46. package/lib/websockets/web-sockets.service.d.ts +0 -49
@@ -1,5 +1,4 @@
1
1
  import { LaravelModel, Translations } from './api.models';
2
- import { DocumentPayment } from './api-invoices.interfaces';
3
2
  export interface CollectionPayment extends LaravelModel {
4
3
  _id: number;
5
4
  country_code: string;
@@ -46,151 +45,3 @@ export interface DocumentCategory extends LaravelModel {
46
45
  updated_at: string;
47
46
  translations: Translations;
48
47
  }
49
- export interface Shipment {
50
- id: number;
51
- document_id: number;
52
- shipment_scope_name: string;
53
- is_document: boolean;
54
- origin_service_area_code: string;
55
- origin_facility_code: string;
56
- destination_facility_code: string;
57
- destination_service_area_code: string;
58
- shipment_pieces_tracking_numbers: string[];
59
- shipment_tracking_number: string;
60
- shipper_full_name: string;
61
- shipper_company_name: string;
62
- shipper_email: string;
63
- shipper_phone_number: string;
64
- shipper_phone_code: string;
65
- shipper_full_phone_number: string;
66
- shipper_address_line1: string;
67
- shipper_address_line2: string;
68
- shipper_city_name: string;
69
- shipper_state_name: string;
70
- shipper_state_code: string;
71
- shipper_postal_code: string;
72
- receiver_full_name: string;
73
- receiver_company_name: string;
74
- receiver_address_line1: string;
75
- receiver_address_line2: string;
76
- receiver_city_name: string;
77
- receiver_state_name: string;
78
- receiver_state_code: string;
79
- receiver_postal_code: string;
80
- shipper_account: string;
81
- promotion_code: string;
82
- customer_identification_type_id: number;
83
- customer_identification_number: string;
84
- customer_email: string;
85
- customer_full_phone_number: string;
86
- price_override_approver_id: number;
87
- price_override_reason_id: number;
88
- price_override_approver_name: string;
89
- price_override_reason_name: string;
90
- is_proforma: boolean;
91
- is_kiosk: boolean;
92
- to_landing: boolean;
93
- is_price_override: boolean;
94
- is_promotion_code: boolean;
95
- is_retail_rate: boolean;
96
- payment_type_1: string;
97
- payment_code_1: string;
98
- amount_1: number;
99
- reference_1: string;
100
- payment_type_2: string;
101
- payment_code_2: string;
102
- amount_2: number;
103
- reference_2: string;
104
- document_payments?: DocumentPayment[];
105
- location_id: number;
106
- installation_id: number;
107
- user_id: number;
108
- user_username: string;
109
- company_id: number;
110
- country_id: number;
111
- company_country_id: number;
112
- country_name: string;
113
- company_name: string;
114
- country_code: string;
115
- location_name: string;
116
- location_facility_code: string;
117
- installation_number: number;
118
- product_global_code: string;
119
- product_local_code: string;
120
- shipment_gmt_offset: string;
121
- shipment_pieces_number: number;
122
- shipment_bill_weight: number;
123
- total_published_value: number;
124
- total_partner_account_value: number;
125
- question_id: number;
126
- question_description: string;
127
- question_type: string;
128
- amount_collected: number;
129
- shipment_value: number;
130
- declared_value: number;
131
- insured_value: number;
132
- shipment_status_id: number;
133
- transaction_id: string;
134
- shipment_type: string;
135
- ein_number: string;
136
- itn_number: string;
137
- created_at: string;
138
- updated_at: string;
139
- retail_rate_adjustment: number;
140
- shipment_status_code: string;
141
- shipment_status_description: string;
142
- shipment_status_translations: {
143
- description: {
144
- [key: string]: string;
145
- };
146
- };
147
- authorization_numbers: string[];
148
- is_term_condition: boolean;
149
- is_marketing_consent: boolean;
150
- is_manual: boolean;
151
- commercial_invoice: boolean;
152
- shipment_id: number;
153
- date: string;
154
- date_og: string;
155
- invoice_document_id?: number | null;
156
- currency_code: string | null;
157
- send_to_api_inventories: boolean;
158
- selected?: boolean;
159
- delivery_date_time: string;
160
- product_subtotal: number;
161
- product_tax: number;
162
- product_total: number;
163
- product_taxes: {
164
- code: string;
165
- percent: number;
166
- base_amount: number;
167
- amount: number;
168
- }[];
169
- shipment_company_country_extra_charges: {
170
- _id: number;
171
- subtotal: number;
172
- tax: number;
173
- total: number;
174
- extra_charge_id: number;
175
- taxes: {
176
- code: string;
177
- percent: number;
178
- base_amount: number;
179
- amount: number;
180
- }[];
181
- created_at: string;
182
- updated_at: string;
183
- global_service_code: string;
184
- local_service_code: string;
185
- global_service_name: string;
186
- local_service_name: string;
187
- is_discount: false;
188
- }[];
189
- additional_documents: {
190
- country_id: number;
191
- include_indemnity_letter: boolean;
192
- include_pdf: boolean;
193
- shipment_content_type_id: number;
194
- shipment_scope_id: number;
195
- };
196
- }
@@ -1,16 +1,6 @@
1
1
  import { LaravelModel } from './api.models';
2
- import { CollectionPayment, Shipment } from './api-reports.interfaces';
2
+ import { CollectionPayment } from './api-reports.interfaces';
3
3
  export interface CollectionPaymentsOut extends LaravelModel {
4
4
  collection_payments: CollectionPayment[];
5
5
  total: number;
6
6
  }
7
- export type ShipmentsReportOut = {
8
- shipments: Shipment[];
9
- total: number;
10
- };
11
- export type ExistPendingPaymentsIn = {
12
- installation_id: number;
13
- };
14
- export type ExistPendingInvoicesIn = {
15
- installation_id: number;
16
- };
@@ -64,7 +64,3 @@ export interface ModuleType extends LaravelModel {
64
64
  name: string;
65
65
  description: string;
66
66
  }
67
- export interface ModulesOut {
68
- modules: Module[];
69
- total: number;
70
- }
@@ -30,44 +30,3 @@ export type ValidateAccountOut = {
30
30
  account: AccountResponse;
31
31
  transactionId: string;
32
32
  };
33
- export type ManifestMultipleIn = {
34
- shipmentIds: number[];
35
- customer: {
36
- companyName: string;
37
- fullName: string;
38
- email: string;
39
- phoneCode: string;
40
- phoneNumber: string;
41
- addressLine1: string;
42
- addressLine2?: string;
43
- addressLine3?: string;
44
- identificationNumber?: string;
45
- identificationTypeId?: number;
46
- countryCode: string;
47
- stateCode?: string;
48
- postalCode?: string;
49
- cityName?: string;
50
- countyName?: string;
51
- };
52
- paymentDetails: {
53
- totalAmount: number;
54
- payments: {
55
- amount: number;
56
- received: number;
57
- countryReferenceCurrencyId: number;
58
- exchange: number;
59
- countryPaymentTypeId: number;
60
- dueDate: string;
61
- details: Record<string, string>;
62
- }[];
63
- };
64
- priceOverrideApproverId: number | null;
65
- priceOverrideReasonId: number | null;
66
- isPendingInvoice?: boolean;
67
- };
68
- export type ManifestMultipleOut = {
69
- shipmentManifests: {
70
- documentId: number;
71
- };
72
- transactionId: string;
73
- };
@@ -1,17 +1,12 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
1
+ import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class ApiHeadersInterceptor implements HttpInterceptor {
5
- /**
6
- * Intercepts HTTP requests and modifies request headers to include caching, content type,
7
- * accept language, and other HTTP-specific configurations before forwarding the request onward.
8
- *
9
- * @param {HttpRequest<unknown>} request - The HTTP request instance to be intercepted and modified.
10
- * @param {HttpHandler} next - The next handler instance in the HTTP pipeline which processes
11
- * the modified request and forwards it.
12
- * @return {Observable<HttpEvent<unknown>>} An observable of the processed HTTP event.
13
- */
14
- intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiHeadersInterceptor, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiHeadersInterceptor>;
17
- }
3
+ /**
4
+ * Intercepts an outgoing HTTP request and modifies its headers to include default values
5
+ * for Cache-Control, Expires, Pragma, Content-Type, Accept, and Accept-Language if they
6
+ * are not already present.
7
+ *
8
+ * @param {HttpRequest<unknown>} req - The outgoing HTTP request to be intercepted and modified.
9
+ * @param {HttpHandlerFn} next - The next handler in the chain to pass the modified request to.
10
+ * @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event resulting from the processed request.
11
+ */
12
+ export declare function apiHeadersInterceptor(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
@@ -1,21 +1,11 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
1
+ import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { CookieService } from 'ngx-cookie-service';
4
- import { Environment } from '../ngx-services.models';
5
- import * as i0 from "@angular/core";
6
- export declare class ApiTokenInterceptor implements HttpInterceptor {
7
- private environments;
8
- private cookie;
9
- constructor(environments: Environment, cookie: CookieService);
10
- /**
11
- * Intercepts and modifies the outgoing HTTP request to include an authorization token
12
- * from cookies if the request does not already have an Authorization or AppKey header.
13
- *
14
- * @param {HttpRequest<unknown>} request - The outgoing HTTP request to be intercepted.
15
- * @param {HttpHandler} next - The next handler in the HTTP request processing chain.
16
- * @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event, modified or unmodified.
17
- */
18
- intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiTokenInterceptor, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiTokenInterceptor>;
21
- }
3
+ /**
4
+ * An HTTP interceptor to append an Authorization header with a Bearer token
5
+ * to outgoing HTTP requests if certain conditions are met.
6
+ *
7
+ * @param {HttpRequest<unknown>} req - The outgoing HTTP request object which may be modified.
8
+ * @param {HttpHandlerFn} next - The next handler in the HTTP request pipeline.
9
+ * @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event stream resulting from the request.
10
+ */
11
+ export declare function apiTokenInterceptor(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
@@ -1,20 +1,12 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
1
+ import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { Environment } from '../ngx-services.models';
4
- import * as i0 from "@angular/core";
5
- export declare class HttpCachingInterceptor implements HttpInterceptor {
6
- private envs;
7
- private cache;
8
- constructor(envs: Environment);
9
- /**
10
- * Intercepts HTTP requests to add caching functionality for GET requests.
11
- * Non-GET requests are passed through without caching.
12
- *
13
- * @param {HttpRequest<any>} req - The HTTP request being intercepted.
14
- * @param {HttpHandler} next - The next handler in the HTTP pipeline to execute the request.
15
- * @return {Observable<HttpEvent<any>>} - An observable containing the HTTP response event, either from cache or the backend service.
16
- */
17
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpCachingInterceptor, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpCachingInterceptor>;
20
- }
3
+ /**
4
+ * Interceptor function to handle HTTP caching for GET requests. It retrieves cached responses
5
+ * if available and valid; otherwise, it processes the request and caches the response for future use.
6
+ *
7
+ * @param {HttpRequest<any>} req - The HTTP request object being intercepted.
8
+ * @param {HttpHandlerFn} next - The next HTTP handler function in the chain to process the request.
9
+ * @return {Observable<HttpEvent<any>>} An observable that emits the HTTP event, either from cache
10
+ * or by invoking the next handler.
11
+ */
12
+ export declare function httpCachingInterceptor(req: HttpRequest<any>, next: HttpHandlerFn): Observable<HttpEvent<any>>;
@@ -1,19 +1,36 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Represents the configuration settings for the application's environment.
4
+ * This type includes various API endpoint URLs, authentication details, caching options, and other relevant settings.
5
+ *
6
+ * Properties:
7
+ * - apiCompaniesUrl: The URL for the companies API endpoint.
8
+ * - apiInvoicesUrl: The URL for the invoices API endpoint.
9
+ * - apiReportsUrl: The URL for the reports API endpoint.
10
+ * - apiSecurityUrl: The URL for the security-related API endpoint.
11
+ * - apiShipmentUrl: The URL for the shipment API endpoint.
12
+ * - authCookie: The name of the authentication cookie used for user sessions.
13
+ * - cacheTtl: Optional. Specifies the time-to-live (TTL) for cached items.
14
+ * - printUrl: Optional. The URL used for generating or downloading printable documents.
15
+ * - secretKey: A secret key used for authentication or other secure operations.
16
+ */
1
17
  export type Environment = {
2
18
  apiCompaniesUrl: string;
3
- apiExternalOperationsKey: string;
4
- apiExternalOperationsUrl: string;
5
19
  apiInvoicesUrl: string;
6
- apiOpenItemsUrl: string;
7
20
  apiReportsUrl: string;
8
21
  apiSecurityUrl: string;
9
22
  apiShipmentUrl: string;
10
23
  authCookie: string;
11
24
  cacheTtl?: number;
25
+ printUrl?: string;
12
26
  secretKey: string;
13
- sockets?: {
14
- app_key: string;
15
- debug?: boolean;
16
- port: number;
17
- url: string;
18
- };
19
27
  };
28
+ /**
29
+ * Injection token used to inject environment configurations.
30
+ *
31
+ * `ENVIRONMENT_TOKEN` is a dependency injection token that allows
32
+ * for the provision and retrieval of environment-specific configurations
33
+ * within the application. This token is typically associated with an
34
+ * `Environment` type that defines the structure of the configuration.
35
+ */
36
+ export declare const ENVIRONMENT_TOKEN: InjectionToken<Environment>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.3.6",
3
+ "version": "18.4.0",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [
@@ -35,8 +35,7 @@
35
35
  "peerDependencies": {
36
36
  "@angular/common": "^18.2.0",
37
37
  "@angular/core": "^18.2.0",
38
- "ngx-cookie-service": "^18.0.0",
39
- "pusher-js": "^7.5.0"
38
+ "ngx-cookie-service": "^18.0.0"
40
39
  },
41
40
  "sideEffects": false,
42
41
  "module": "fesm2022/experteam-mx-ngx-services.mjs",
package/public-api.d.ts CHANGED
@@ -1,27 +1,21 @@
1
+ export * from './lib/ngx-services.models';
1
2
  export * from './lib/ngx-services.module';
2
3
  export * from './lib/apis/api-companies.service';
3
- export * from './lib/apis/api-external-pickups.service';
4
4
  export * from './lib/apis/api-invoices.service';
5
- export * from './lib/apis/api-open-items.service';
6
5
  export * from './lib/apis/api-reports.service';
7
6
  export * from './lib/apis/api-security.service';
8
7
  export * from './lib/apis/api-shipments.service';
9
8
  export * from './lib/apis/models/api-companies.interfaces';
10
9
  export * from './lib/apis/models/api-companies.types';
11
- export * from './lib/apis/models/api-external-pickups.types';
12
10
  export * from './lib/apis/models/api-invoices.interfaces';
13
11
  export * from './lib/apis/models/api-invoices.types';
14
- export * from './lib/apis/models/api-open-items.interfaces';
15
- export * from './lib/apis/models/api-open-items.types';
16
12
  export * from './lib/apis/models/api-reports.interfaces';
17
13
  export * from './lib/apis/models/api-security.interfaces';
18
14
  export * from './lib/apis/models/api-security.types';
19
15
  export * from './lib/apis/models/api-shipments.types';
20
16
  export * from './lib/apis/models/api.models';
21
- export * from './lib/websockets/web-sockets.service';
22
17
  export * from './lib/cypher/crypto.service';
23
18
  export * from './lib/interceptors/api-headers.interceptor';
24
19
  export * from './lib/interceptors/api-token.interceptor';
25
20
  export * from './lib/interceptors/http-caching.interceptor';
26
- export * from 'pusher-js';
27
21
  export * from './lib/helpers/http';
@@ -1,72 +0,0 @@
1
- import { Inject, Injectable } from '@angular/core';
2
- import { map } from 'rxjs/operators';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common/http";
5
- export class ApiExternalPickupsService {
6
- httpClient;
7
- environment;
8
- constructor(httpClient, environment) {
9
- this.httpClient = httpClient;
10
- this.environment = environment;
11
- }
12
- /**
13
- * Getter method to retrieve the API's external operations URL.
14
- * Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
15
- * Defaults to an empty string if the property is undefined or null.
16
- *
17
- * @return {string} The external operations URL or an empty string if unavailable.
18
- */
19
- get url() {
20
- return this.environment.apiExternalOperationsUrl ?? '';
21
- }
22
- /**
23
- * Generates a delivery confirmation by sending the provided payload to the API.
24
- *
25
- * @param {GenerateDeliveryConfirmationIn} payload - The input payload required to generate the delivery confirmation.
26
- * @return {Observable<KeyOTPOut>} An observable that emits the generated delivery confirmation data.
27
- */
28
- generateDeliveryConfirmation(payload) {
29
- return this.httpClient.post(`${this.url}/delivery-confirmation/generate`, payload, {
30
- headers: { appkey: this.environment.apiExternalOperationsKey }
31
- }).pipe(map(({ data }) => data));
32
- }
33
- /**
34
- * Confirms the completion of a delivery operation by making a PATCH request.
35
- *
36
- * @param {Object} input - The input parameters for the method.
37
- * @param {string} input.operationId - The unique identifier of the delivery operation to be confirmed.
38
- * @param {string} input.keyOTP - The one-time password (OTP) key associated with the delivery confirmation.
39
- * @return {Observable<Object>} - An observable containing the response data from the API.
40
- */
41
- completedDeliveryConfirmation({ keyOTP, operationId, }) {
42
- return this.httpClient.patch(`${this.url}/delivery-confirmation/completed/${keyOTP}`, null, {
43
- headers: { appkey: this.environment.apiExternalOperationsKey },
44
- params: { operation_id: operationId }
45
- }).pipe(map(({ data }) => data));
46
- }
47
- /**
48
- * Cancels a delivery confirmation by sending an OTP and additional data to the server.
49
- *
50
- * @param {Object} param0 - The parameter object containing the required properties.
51
- * @param {string} param0.otp - The one-time password to authenticate the cancellation request.
52
- * @param {Object} param0.body - Additional body data required for cancellation.
53
- * @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
54
- */
55
- cancelDeliveryConfirmation({ otp, ...body }) {
56
- return this.httpClient.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body, {
57
- headers: { appkey: this.environment.apiExternalOperationsKey },
58
- }).pipe(map(({ data }) => data));
59
- }
60
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiExternalPickupsService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
61
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiExternalPickupsService, providedIn: 'root' });
62
- }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiExternalPickupsService, decorators: [{
64
- type: Injectable,
65
- args: [{
66
- providedIn: 'root'
67
- }]
68
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
69
- type: Inject,
70
- args: ['env']
71
- }] }] });
72
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWV4dGVybmFsLXBpY2t1cHMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVydGVhbS1teC9uZ3gtc2VydmljZXMvc3JjL2xpYi9hcGlzL2FwaS1leHRlcm5hbC1waWNrdXBzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFVbEQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFBOzs7QUFNcEMsTUFBTSxPQUFPLHlCQUF5QjtJQUUxQjtJQUNlO0lBRnpCLFlBQ1UsVUFBc0IsRUFDUCxXQUF3QjtRQUR2QyxlQUFVLEdBQVYsVUFBVSxDQUFZO1FBQ1AsZ0JBQVcsR0FBWCxXQUFXLENBQWE7SUFDN0MsQ0FBQztJQUVMOzs7Ozs7T0FNRztJQUNILElBQUksR0FBRztRQUNMLE9BQU8sSUFBSSxDQUFDLFdBQVcsQ0FBQyx3QkFBd0IsSUFBSSxFQUFFLENBQUE7SUFDeEQsQ0FBQztJQUVEOzs7OztPQUtHO0lBQ0ksNEJBQTRCLENBQUUsT0FBdUM7UUFDMUUsT0FBTyxJQUFJLEN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import { map } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common/http";
5
- export class ApiOpenItemsService {
6
- environments;
7
- http;
8
- constructor(environments, http) {
9
- this.environments = environments;
10
- this.http = http;
11
- }
12
- /**
13
- * Retrieves the API URL for open-items from the environments' configuration.
14
- *
15
- * @return {string} The API URL for open-items.
16
- */
17
- get url() {
18
- return this.environments.apiOpenItemsUrl;
19
- }
20
- /**
21
- * Retrieves a list of open-items based on the provided query parameters.
22
- *
23
- * @param {QueryParams} params - The parameters to use for querying open-items.
24
- * @return {Observable<OpenItemsOut>} An observable that emits the open-item's data.
25
- */
26
- getOpenItems(params) {
27
- return this.http.get(`${this.url}/open-items`, { params })
28
- .pipe(map(({ data }) => data));
29
- }
30
- /**
31
- * Processes a payment for an open item.
32
- *
33
- * @param {PaymentOpenItemIn} body - The payment details for the open item.
34
- * @return {Observable<PaymentOpenItemOut>} An observable that emits the result of the payment processing.
35
- */
36
- paymentOpenItem(body) {
37
- return this.http.post(`${this.url}/payment`, body)
38
- .pipe(map(({ data }) => data));
39
- }
40
- /**
41
- * Processes a payment for other invoice.
42
- *
43
- * @param {PaymentOtherInvoiceIn} body - The payment details for the other invoice.
44
- * @return {Observable<PaymentOtherInvoiceOut>} An observable that emits the result of the payment processing.
45
- */
46
- paymentOtherInvoice(body) {
47
- return this.http.post(`${this.url}/other-invoices`, body)
48
- .pipe(map(({ data }) => data));
49
- }
50
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiOpenItemsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
51
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiOpenItemsService, providedIn: 'root' });
52
- }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: ApiOpenItemsService, decorators: [{
54
- type: Injectable,
55
- args: [{
56
- providedIn: 'root'
57
- }]
58
- }], ctorParameters: () => [{ type: undefined, decorators: [{
59
- type: Inject,
60
- args: ['env']
61
- }] }, { type: i1.HttpClient }] });
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLW9wZW4taXRlbXMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVydGVhbS1teC9uZ3gtc2VydmljZXMvc3JjL2xpYi9hcGlzL2FwaS1vcGVuLWl0ZW1zLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFTbEQsT0FBTyxFQUFFLEdBQUcsRUFBYyxNQUFNLE1BQU0sQ0FBQTs7O0FBTXRDLE1BQU0sT0FBTyxtQkFBbUI7SUFFTDtJQUNmO0lBRlYsWUFDeUIsWUFBeUIsRUFDeEMsSUFBZ0I7UUFERCxpQkFBWSxHQUFaLFlBQVksQ0FBYTtRQUN4QyxTQUFJLEdBQUosSUFBSSxDQUFZO0lBQ3ZCLENBQUM7SUFFSjs7OztPQUlHO0lBQ0gsSUFBSSxHQUFHO1FBQ0wsT0FBTyxJQUFJLENBQUMsWUFBWSxDQUFDLGVBQWUsQ0FBQTtJQUMxQyxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSCxZQUFZLENBQUUsTUFBbUI7UUFDL0IsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBMkIsR0FBRyxJQUFJLENBQUMsR0FBRyxhQUFhLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQzthQUNqRixJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLENBQUMsSUFBSS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HJldHVybiB0aGlzLmh0dHAucG9zdDxBcGlTdWNjZXNzPFBheW1lbnRPcGVuSXRlbU91dD4+KGAke3RoaXMudXJsfS9wYXltZW50YCwgYm9keSlcclxuICAgICAgLnBpcGUobWFwKCh7IGRhdGEgfSkgPT4gZGF0YSkpXHJcbiAgfVxyXG5cclxuICAvKipcclxuICAgKiBQcm9jZXNzZXMgYSBwYXltZW50IGZvciBvdGhlciBpbnZvaWNlLlxyXG4gICAqXHJcbiAgICogQHBhcmFtIHtQYXltZW50T3RoZXJJbnZvaWNlSW59IGJvZHkgLSBUaGUgcGF5bWVudCBkZXRhaWxzIGZvciB0aGUgb3RoZXIgaW52b2ljZS5cclxuICAgKiBAcmV0dXJuIHtPYnNlcnZhYmxlPFBheW1lbnRPdGhlckludm9pY2VPdXQ+fSBBbiBvYnNlcnZhYmxlIHRoYXQgZW1pdHMgdGhlIHJlc3VsdCBvZiB0aGUgcGF5bWVudCBwcm9jZXNzaW5nLlxyXG4gICAqL1xyXG4gIHBheW1lbnRPdGhlckludm9pY2UgKGJvZHk6IFBheW1lbnRPdGhlckludm9pY2VJbik6IE9ic2VydmFibGU8UGF5bWVudE90aGVySW52b2ljZU91dD4ge1xyXG4gICAgcmV0dXJuIHRoaXMuaHR0cC5wb3N0PEFwaVN1Y2Nlc3M8UGF5bWVudE90aGVySW52b2ljZU91dD4+KGAke3RoaXMudXJsfS9vdGhlci1pbnZvaWNlc2AsIGJvZHkpXHJcbiAgICAgIC5waXBlKG1hcCgoeyBkYXRhIH0pID0+IGRhdGEpKVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWV4dGVybmFsLXBpY2t1cHMudHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHBlcnRlYW0tbXgvb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