@experteam-mx/ngx-services 18.9.12 → 18.9.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.
- package/README.md +24 -24
- package/esm2022/lib/apis/api-billing-do.service.mjs +1 -1
- package/esm2022/lib/apis/api-billing-gt.service.mjs +1 -1
- package/esm2022/lib/apis/api-billing-mx.service.mjs +1 -1
- package/esm2022/lib/apis/api-billing-pa.service.mjs +1 -1
- package/esm2022/lib/apis/api-billing-sv.service.mjs +1 -1
- package/esm2022/lib/apis/api-cash-operations.service.mjs +1 -1
- package/esm2022/lib/apis/api-catalogs.service.mjs +1 -1
- package/esm2022/lib/apis/api-companies.service.mjs +2 -2
- package/esm2022/lib/apis/api-composition.service.mjs +1 -1
- package/esm2022/lib/apis/api-customs.service.mjs +1 -1
- package/esm2022/lib/apis/api-discounts.service.mjs +1 -1
- package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +1 -1
- package/esm2022/lib/apis/api-events.service.mjs +1 -1
- package/esm2022/lib/apis/api-external-ops.service.mjs +87 -0
- package/esm2022/lib/apis/api-inventories.service.mjs +1 -1
- package/esm2022/lib/apis/api-invoices.service.mjs +1 -1
- package/esm2022/lib/apis/api-notifications.service.mjs +1 -1
- package/esm2022/lib/apis/api-open-items.service.mjs +1 -1
- package/esm2022/lib/apis/api-reports.service.mjs +1 -1
- package/esm2022/lib/apis/api-security.service.mjs +1 -1
- package/esm2022/lib/apis/api-services.service.mjs +1 -1
- package/esm2022/lib/apis/api-shipments.service.mjs +1 -1
- package/esm2022/lib/apis/api-supplies.service.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing-do.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing-mx.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing-pa.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing-sv.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-billing.models.mjs +1 -1
- package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-cash-operations.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-catalog.enum.mjs +1 -1
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-catalog.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-composition.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-composition.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-customs.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-customs.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-discounts.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-events.enum.mjs +1 -1
- package/esm2022/lib/apis/models/api-events.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-events.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-external-ops.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-external-ops.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-inventories.enum.mjs +1 -1
- package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-inventories.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-notifications.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-open-items.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-services.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-services.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.enums.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-supplies.types.mjs +1 -1
- package/esm2022/lib/apis/models/api.models.mjs +1 -1
- package/esm2022/lib/cypher/crypto.service.mjs +1 -1
- package/esm2022/lib/helpers/files.mjs +1 -1
- package/esm2022/lib/helpers/http.mjs +1 -1
- package/esm2022/lib/interceptors/api-headers.interceptor.mjs +1 -1
- package/esm2022/lib/interceptors/api-key.interceptor.mjs +48 -0
- package/esm2022/lib/interceptors/api-token.interceptor.mjs +1 -1
- package/esm2022/lib/interceptors/http-caching.interceptor.mjs +1 -1
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/lib/ngx-services.module.mjs +1 -1
- package/esm2022/lib/websockets/web-sockets.service.mjs +1 -1
- package/esm2022/public-api.mjs +9 -8
- package/fesm2022/experteam-mx-ngx-services.mjs +132 -73
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/{api-external-pickups.service.d.ts → api-external-ops.service.d.ts} +15 -7
- package/lib/apis/models/api-catalog.interfaces.d.ts +1 -1
- package/lib/apis/models/api-catalog.types.d.ts +1 -1
- package/lib/apis/models/api-external-ops.interfaces.d.ts +21 -0
- package/lib/apis/models/{api-external-pickups.types.d.ts → api-external-ops.types.d.ts} +4 -0
- package/lib/apis/models/api-reports.interfaces.d.ts +6 -3
- package/lib/interceptors/api-key.interceptor.d.ts +35 -0
- package/package.json +1 -1
- package/public-api.d.ts +8 -7
- package/esm2022/lib/apis/api-external-pickups.service.mjs +0 -74
- package/esm2022/lib/apis/models/api-external-pickups.types.mjs +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Environment } from '../ngx-services.models';
|
|
3
|
-
import { DeliveryConfirmationCompleteIn, DeliveryConfirmationGenerateIn, DeliveryConfirmationGenerateOut, DeliveryConfirmationIn } from './models/api-external-pickups.types';
|
|
4
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { Environment } from '../ngx-services.models';
|
|
4
|
+
import { DeliveryConfirmationCompleteIn, DeliveryConfirmationGenerateIn, DeliveryConfirmationGenerateOut, DeliveryConfirmationIn, DeliveryConfirmationSearchOut } from './models/api-external-ops.types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
7
|
-
private
|
|
6
|
+
export declare class ApiExternalOperationsService {
|
|
7
|
+
private http;
|
|
8
8
|
private environment;
|
|
9
9
|
private appKey;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(http: HttpClient, environment: Environment);
|
|
11
11
|
/**
|
|
12
12
|
* Getter method to retrieve the API's external operations URL.
|
|
13
13
|
* Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
|
|
@@ -16,6 +16,13 @@ export declare class ApiExternalPickupsService {
|
|
|
16
16
|
* @return {string} The external operations URL or an empty string if unavailable.
|
|
17
17
|
*/
|
|
18
18
|
get url(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves delivery confirmation details based on the provided OTP code.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} otpCode - The OTP code used to search for delivery confirmation.
|
|
23
|
+
* @return {Observable<DeliveryConfirmationData>} An observable containing the delivery confirmation data.
|
|
24
|
+
*/
|
|
25
|
+
getDeliveryConfirmation(otpCode: string): Observable<DeliveryConfirmationSearchOut>;
|
|
19
26
|
/**
|
|
20
27
|
* Generates a delivery confirmation by sending the provided payload to the API.
|
|
21
28
|
*
|
|
@@ -41,6 +48,7 @@ export declare class ApiExternalPickupsService {
|
|
|
41
48
|
* @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
|
|
42
49
|
*/
|
|
43
50
|
putDeliveryConfirmation({ otp, ...body }: DeliveryConfirmationIn): Observable<{}>;
|
|
44
|
-
|
|
45
|
-
static
|
|
51
|
+
private getAppKeyHeader;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiExternalOperationsService, never>;
|
|
53
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiExternalOperationsService>;
|
|
46
54
|
}
|
|
@@ -77,7 +77,7 @@ export interface IdentificationType extends SymfonyModel {
|
|
|
77
77
|
identificationType: number | null;
|
|
78
78
|
name: string;
|
|
79
79
|
viewSection?: Record<ViewSectionOption, boolean>;
|
|
80
|
-
regex: string | null;
|
|
80
|
+
regex: string[] | null;
|
|
81
81
|
isExternalValidation: boolean;
|
|
82
82
|
}
|
|
83
83
|
export interface OperationType extends SymfonyModel {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LaravelModel } from './api.models';
|
|
2
|
+
export interface Operation extends LaravelModel {
|
|
3
|
+
_id: string;
|
|
4
|
+
operation_id: number;
|
|
5
|
+
status: 'Pending' | 'Completed' | 'Canceled';
|
|
6
|
+
code: number;
|
|
7
|
+
signature: {
|
|
8
|
+
signature_base_64: string;
|
|
9
|
+
mime_type: 'image/png';
|
|
10
|
+
client: {
|
|
11
|
+
full_name: string;
|
|
12
|
+
};
|
|
13
|
+
package_detail: {
|
|
14
|
+
shipment_tracking_number: string;
|
|
15
|
+
pieces: {
|
|
16
|
+
tracking_number: string;
|
|
17
|
+
status: null | 'damaged' | 'lost';
|
|
18
|
+
}[];
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Operation } from './api-external-ops.interfaces';
|
|
1
2
|
export type DeliveryConfirmationGenerateOut = {
|
|
2
3
|
code: string;
|
|
3
4
|
};
|
|
@@ -29,3 +30,6 @@ export type DeliveryConfirmationIn = {
|
|
|
29
30
|
};
|
|
30
31
|
otp?: string;
|
|
31
32
|
};
|
|
33
|
+
export type DeliveryConfirmationSearchOut = {
|
|
34
|
+
operation: Operation;
|
|
35
|
+
};
|
|
@@ -171,13 +171,16 @@ export interface PromotionCodeDiscount extends ApiModel {
|
|
|
171
171
|
origin_company_name: string;
|
|
172
172
|
origin_full_name: string;
|
|
173
173
|
promotion_code: string;
|
|
174
|
-
|
|
174
|
+
discount_percentage: number;
|
|
175
|
+
amount_details: PromotionCodeDiscountAmountDetail[];
|
|
175
176
|
}
|
|
176
|
-
export interface
|
|
177
|
+
export interface PromotionCodeDiscountAmountDetail {
|
|
177
178
|
country_reference_currency_id: number;
|
|
178
179
|
currency_id: number;
|
|
179
180
|
currency_code: string;
|
|
180
|
-
|
|
181
|
+
product_subtotal: number;
|
|
182
|
+
shipment_total: number;
|
|
183
|
+
discount_amount: number;
|
|
181
184
|
}
|
|
182
185
|
export interface WithdrawalAmount {
|
|
183
186
|
country_reference_currency_id: number;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
/**
|
|
4
|
+
* HTTP interceptor that injects the external operations API key into outbound requests.
|
|
5
|
+
*
|
|
6
|
+
* The interceptor:
|
|
7
|
+
* 1. Reads `apiExternalOperationsKey` from the injected `ENVIRONMENT_TOKEN`.
|
|
8
|
+
* 2. Skips modification if the key is absent.
|
|
9
|
+
* 3. Leaves the request unchanged if it already contains an `AppKey` header (caller override).
|
|
10
|
+
* 4. Otherwise clones the request adding `AppKey: apiExternalOperationsKey`.
|
|
11
|
+
*
|
|
12
|
+
* This enables centralized, transparent authentication for services targeting external
|
|
13
|
+
* operations endpoints while allowing explicit per-request overrides.
|
|
14
|
+
*
|
|
15
|
+
* Example:
|
|
16
|
+
* ```ts
|
|
17
|
+
* provideHttpClient(
|
|
18
|
+
* withInterceptors([apiKeyInterceptor])
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @param request The original immutable `HttpRequest` instance.
|
|
23
|
+
* @param next The next handler in the interceptor chain, used to forward the (possibly cloned) request.
|
|
24
|
+
* @returns An `Observable` stream of the HTTP events for the (potentially augmented) request.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* - If you need to intentionally send a different key for a specific request, set the `AppKey`
|
|
28
|
+
* header manually before this interceptor runs.
|
|
29
|
+
* - If `apiExternalOperationsKey` is undefined (e.g., missing configuration), the request is passed through unchanged.
|
|
30
|
+
* - Order matters: place this interceptor before others that rely on the presence of the `AppKey` header.
|
|
31
|
+
*
|
|
32
|
+
* @see HttpRequest
|
|
33
|
+
* @see HttpHandlerFn
|
|
34
|
+
*/
|
|
35
|
+
export declare function apiKeyInterceptor(request: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ export * from './lib/apis/api-companies.service';
|
|
|
11
11
|
export * from './lib/apis/api-composition.service';
|
|
12
12
|
export * from './lib/apis/api-customs.service';
|
|
13
13
|
export * from './lib/apis/api-discounts.service';
|
|
14
|
-
export * from './lib/apis/api-events.service';
|
|
15
14
|
export * from './lib/apis/api-e-tools-auto-billing.service';
|
|
16
|
-
export * from './lib/apis/api-
|
|
15
|
+
export * from './lib/apis/api-events.service';
|
|
16
|
+
export * from './lib/apis/api-external-ops.service';
|
|
17
17
|
export * from './lib/apis/api-inventories.service';
|
|
18
18
|
export * from './lib/apis/api-invoices.service';
|
|
19
19
|
export * from './lib/apis/api-notifications.service';
|
|
@@ -23,7 +23,6 @@ export * from './lib/apis/api-security.service';
|
|
|
23
23
|
export * from './lib/apis/api-services.service';
|
|
24
24
|
export * from './lib/apis/api-shipments.service';
|
|
25
25
|
export * from './lib/apis/api-supplies.service';
|
|
26
|
-
export * from './lib/apis/models/api-billing.models';
|
|
27
26
|
export * from './lib/apis/models/api-billing-do.interfaces';
|
|
28
27
|
export * from './lib/apis/models/api-billing-do.types';
|
|
29
28
|
export * from './lib/apis/models/api-billing-mx.interfaces';
|
|
@@ -32,6 +31,7 @@ export * from './lib/apis/models/api-billing-pa.interfaces';
|
|
|
32
31
|
export * from './lib/apis/models/api-billing-pa.types';
|
|
33
32
|
export * from './lib/apis/models/api-billing-sv.interfaces';
|
|
34
33
|
export * from './lib/apis/models/api-billing-sv.types';
|
|
34
|
+
export * from './lib/apis/models/api-billing.models';
|
|
35
35
|
export * from './lib/apis/models/api-cash-operations.interfaces';
|
|
36
36
|
export * from './lib/apis/models/api-cash-operations.types';
|
|
37
37
|
export * from './lib/apis/models/api-catalog.enum';
|
|
@@ -45,12 +45,12 @@ export * from './lib/apis/models/api-customs.interfaces';
|
|
|
45
45
|
export * from './lib/apis/models/api-customs.types';
|
|
46
46
|
export * from './lib/apis/models/api-discounts.interfaces';
|
|
47
47
|
export * from './lib/apis/models/api-discounts.types';
|
|
48
|
+
export * from './lib/apis/models/api-e-tools-auto-billing.interfaces';
|
|
49
|
+
export * from './lib/apis/models/api-e-tools-auto-billing.types';
|
|
48
50
|
export * from './lib/apis/models/api-events.enum';
|
|
49
51
|
export * from './lib/apis/models/api-events.interfaces';
|
|
50
52
|
export * from './lib/apis/models/api-events.types';
|
|
51
|
-
export * from './lib/apis/models/api-
|
|
52
|
-
export * from './lib/apis/models/api-e-tools-auto-billing.types';
|
|
53
|
-
export * from './lib/apis/models/api-external-pickups.types';
|
|
53
|
+
export * from './lib/apis/models/api-external-ops.types';
|
|
54
54
|
export * from './lib/apis/models/api-inventories.enum';
|
|
55
55
|
export * from './lib/apis/models/api-inventories.interfaces';
|
|
56
56
|
export * from './lib/apis/models/api-inventories.types';
|
|
@@ -73,7 +73,8 @@ export * from './lib/apis/models/api.models';
|
|
|
73
73
|
export * from './lib/websockets/web-sockets.service';
|
|
74
74
|
export * from './lib/cypher/crypto.service';
|
|
75
75
|
export * from './lib/interceptors/api-headers.interceptor';
|
|
76
|
+
export * from './lib/interceptors/api-key.interceptor';
|
|
76
77
|
export * from './lib/interceptors/api-token.interceptor';
|
|
77
78
|
export * from './lib/interceptors/http-caching.interceptor';
|
|
78
|
-
export * from './lib/helpers/http';
|
|
79
79
|
export * from './lib/helpers/files';
|
|
80
|
+
export * from './lib/helpers/http';
|
|
@@ -1,74 +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
|
-
appKey;
|
|
9
|
-
constructor(httpClient, environment) {
|
|
10
|
-
this.httpClient = httpClient;
|
|
11
|
-
this.environment = environment;
|
|
12
|
-
this.appKey = environment.apiExternalOperationsKey ?? '';
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Getter method to retrieve the API's external operations URL.
|
|
16
|
-
* Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
|
|
17
|
-
* Defaults to an empty string if the property is undefined or null.
|
|
18
|
-
*
|
|
19
|
-
* @return {string} The external operations URL or an empty string if unavailable.
|
|
20
|
-
*/
|
|
21
|
-
get url() {
|
|
22
|
-
return this.environment.apiExternalOperationsUrl ?? '';
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Generates a delivery confirmation by sending the provided payload to the API.
|
|
26
|
-
*
|
|
27
|
-
* @param {DeliveryConfirmationGenerateIn} payload - The input payload required to generate the delivery confirmation.
|
|
28
|
-
* @return {Observable<DeliveryConfirmationGenerateOut>} An observable that emits the generated delivery confirmation data.
|
|
29
|
-
*/
|
|
30
|
-
postDeliveryConfirmationGenerate(payload) {
|
|
31
|
-
return this.httpClient.post(`${this.url}/delivery-confirmation/generate`, payload, {
|
|
32
|
-
headers: { appkey: this.appKey }
|
|
33
|
-
}).pipe(map(({ data }) => data));
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Confirms the completion of a delivery operation by making a PATCH request.
|
|
37
|
-
*
|
|
38
|
-
* @param {Object} input - The input parameters for the method.
|
|
39
|
-
* @param {string} input.operationId - The unique identifier of the delivery operation to be confirmed.
|
|
40
|
-
* @param {string} input.keyOTP - The one-time password (OTP) key associated with the delivery confirmation.
|
|
41
|
-
* @return {Observable<Object>} - An observable containing the response data from the API.
|
|
42
|
-
*/
|
|
43
|
-
patchDeliveryConfirmationComplete({ keyOTP, operationId, }) {
|
|
44
|
-
return this.httpClient.patch(`${this.url}/delivery-confirmation/completed/${keyOTP}`, null, {
|
|
45
|
-
headers: { appkey: this.appKey },
|
|
46
|
-
params: { operation_id: operationId }
|
|
47
|
-
}).pipe(map(({ data }) => data));
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Cancels a delivery confirmation by sending an OTP and additional data to the server.
|
|
51
|
-
*
|
|
52
|
-
* @param {Object} param0 - The parameter object containing the required properties.
|
|
53
|
-
* @param {string} param0.otp - The one-time password to authenticate the cancellation request.
|
|
54
|
-
* @param {Object} param0.body - Additional body data required for cancellation.
|
|
55
|
-
* @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
|
|
56
|
-
*/
|
|
57
|
-
putDeliveryConfirmation({ otp, ...body }) {
|
|
58
|
-
return this.httpClient.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body, {
|
|
59
|
-
headers: { appkey: this.appKey },
|
|
60
|
-
}).pipe(map(({ data }) => data));
|
|
61
|
-
}
|
|
62
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiExternalPickupsService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
63
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiExternalPickupsService, providedIn: 'root' });
|
|
64
|
-
}
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiExternalPickupsService, decorators: [{
|
|
66
|
-
type: Injectable,
|
|
67
|
-
args: [{
|
|
68
|
-
providedIn: 'root'
|
|
69
|
-
}]
|
|
70
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
71
|
-
type: Inject,
|
|
72
|
-
args: ['env']
|
|
73
|
-
}] }] });
|
|
74
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWV4dGVybmFsLXBpY2t1cHMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVydGVhbS1teC9uZ3gtc2VydmljZXMvc3JjL2xpYi9hcGlzL2FwaS1leHRlcm5hbC1waWNrdXBzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFVbEQsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFBOzs7QUFNcEMsTUFBTSxPQUFPLHlCQUF5QjtJQUkxQjtJQUNlO0lBSmpCLE1BQU0sQ0FBUTtJQUV0QixZQUNVLFVBQXNCLEVBQ1AsV0FBd0I7UUFEdkMsZUFBVSxHQUFWLFV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