@experteam-mx/ngx-services 18.7.10 → 18.7.12
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/esm2022/lib/apis/api-discounts.service.mjs +3 -3
- package/esm2022/lib/apis/api-notifications.service.mjs +104 -0
- package/esm2022/lib/apis/api-services.service.mjs +93 -0
- package/esm2022/lib/apis/api-supplies.service.mjs +83 -0
- 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-notifications.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-notifications.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-services.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-services.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-supplies.types.mjs +2 -0
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +10 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +271 -3
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-discounts.service.d.ts +2 -2
- package/lib/apis/api-notifications.service.d.ts +70 -0
- package/lib/apis/api-services.service.d.ts +61 -0
- package/lib/apis/api-supplies.service.d.ts +55 -0
- package/lib/apis/models/api-companies.interfaces.d.ts +0 -19
- package/lib/apis/models/api-companies.types.d.ts +3 -2
- package/lib/apis/models/api-composition.interfaces.d.ts +1 -18
- package/lib/apis/models/api-notifications.interfaces.d.ts +36 -0
- package/lib/apis/models/api-notifications.types.d.ts +34 -0
- package/lib/apis/models/api-services.interfaces.d.ts +43 -0
- package/lib/apis/models/api-services.types.d.ts +57 -0
- package/lib/apis/models/api-supplies.interfaces.d.ts +20 -0
- package/lib/apis/models/api-supplies.types.d.ts +26 -0
- package/lib/ngx-services.models.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +9 -0
|
@@ -9,9 +9,9 @@ export declare class ApiDiscountsService {
|
|
|
9
9
|
private http;
|
|
10
10
|
constructor(environments: Environment, http: HttpClient);
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Gets the API endpoint URL for discounts from the environments configuration.
|
|
13
13
|
*
|
|
14
|
-
* @return {string} The URL
|
|
14
|
+
* @return {string} The URL for the discounts API. Returns an empty string if not defined.
|
|
15
15
|
*/
|
|
16
16
|
get url(): string;
|
|
17
17
|
/**
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Environment } from '../ngx-services.models';
|
|
3
|
+
import { QueryParams } from './models/api.models';
|
|
4
|
+
import { NotificationConfigurationIn, NotificationConfigurationOut, NotificationIn, NotificationOut, NotificationsOut, NotificationsTypeOut } from './models/api-notifications.types';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiNotificationsService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the URL for the notifications API from the environment settings.
|
|
13
|
+
* If the URL is not defined, an empty string is returned.
|
|
14
|
+
*
|
|
15
|
+
* @return {string} The API Notifications URL or an empty string if not defined.
|
|
16
|
+
*/
|
|
17
|
+
get url(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves notifications based on the provided query parameters.
|
|
20
|
+
*
|
|
21
|
+
* @param {QueryParams} params - The query parameters used to filter and retrieve notifications.
|
|
22
|
+
* @return {Observable<NotificationsOut>} An observable that emits the fetched notifications.
|
|
23
|
+
*/
|
|
24
|
+
getNotifications(params: QueryParams): Observable<NotificationsOut>;
|
|
25
|
+
/**
|
|
26
|
+
* Sends a notification request to the server using the provided body.
|
|
27
|
+
*
|
|
28
|
+
* @param {NotificationIn} body - The notification data to be sent in the request body.
|
|
29
|
+
* @return {Observable<NotificationOut>} An observable emitting the response containing the notification output data.
|
|
30
|
+
*/
|
|
31
|
+
postNotification(body: NotificationIn): Observable<NotificationOut>;
|
|
32
|
+
/**
|
|
33
|
+
* Sends a PUT request to update a notification with the provided ID and body.
|
|
34
|
+
*
|
|
35
|
+
* @param {number} id - The unique identifier of the notification to be updated.
|
|
36
|
+
* @param {NotificationIn} body - The data to update the notification with.
|
|
37
|
+
* @return {Observable<NotificationOut>} An observable containing the updated notification data.
|
|
38
|
+
*/
|
|
39
|
+
putNotification(id: number, body: NotificationIn): Observable<NotificationOut>;
|
|
40
|
+
/**
|
|
41
|
+
* Deletes a notification by its unique identifier.
|
|
42
|
+
*
|
|
43
|
+
* @param {number} id - The unique identifier of the notification to delete.
|
|
44
|
+
* @return {Observable<{}>} An observable that emits the response after deleting the notification.
|
|
45
|
+
*/
|
|
46
|
+
deleteNotification(id: number): Observable<{}>;
|
|
47
|
+
/**
|
|
48
|
+
* Marks the notification as finished for the specified notification ID.
|
|
49
|
+
*
|
|
50
|
+
* @param {number} id - The unique identifier of the notification to be marked as finished.
|
|
51
|
+
* @return {Observable<NotificationOut>} An Observable emitting the updated notification object.
|
|
52
|
+
*/
|
|
53
|
+
putNotificationFinish(id: number): Observable<NotificationOut>;
|
|
54
|
+
/**
|
|
55
|
+
* Sends a POST request to create or update notification configurations.
|
|
56
|
+
*
|
|
57
|
+
* @param {NotificationConfigurationIn} body - The notification configuration payload to be sent in the request.
|
|
58
|
+
* @return {Observable<NotificationConfigurationOut>} An observable emitting the response containing the created or updated notification configuration.
|
|
59
|
+
*/
|
|
60
|
+
postNotificationConfigurations(body: NotificationConfigurationIn): Observable<NotificationConfigurationOut>;
|
|
61
|
+
/**
|
|
62
|
+
* Retrieves the notification types based on the provided query parameters.
|
|
63
|
+
*
|
|
64
|
+
* @param {QueryParams} params - The query parameters for fetching the notification types.
|
|
65
|
+
* @return {Observable<NotificationsTypeOut>} An observable that emits the fetched notification types.
|
|
66
|
+
*/
|
|
67
|
+
getNotificationsType(params: QueryParams): Observable<NotificationsTypeOut>;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiNotificationsService, never>;
|
|
69
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiNotificationsService>;
|
|
70
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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,
|
|
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:
|
|
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;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SymfonyModel } from './api.models';
|
|
2
|
+
export interface Notification extends SymfonyModel {
|
|
3
|
+
name: string;
|
|
4
|
+
notificationType: NotificationType;
|
|
5
|
+
notificationStatus: NotificationStatus;
|
|
6
|
+
userId: string;
|
|
7
|
+
content: string;
|
|
8
|
+
url: string;
|
|
9
|
+
image: string;
|
|
10
|
+
starDate: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
countryId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface NotificationConfiguration extends SymfonyModel {
|
|
15
|
+
notification: Notification;
|
|
16
|
+
entity: Entity;
|
|
17
|
+
}
|
|
18
|
+
export interface NotificationType extends SymfonyModel {
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
export interface NotificationStatus extends SymfonyModel {
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
export interface Entity {
|
|
25
|
+
id: number;
|
|
26
|
+
level: string;
|
|
27
|
+
modelId: string;
|
|
28
|
+
modelType: string;
|
|
29
|
+
extraFields: {
|
|
30
|
+
countryId: number;
|
|
31
|
+
companyCountryId: number;
|
|
32
|
+
locationId: number;
|
|
33
|
+
installationId: number;
|
|
34
|
+
systemId: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Notification, NotificationConfiguration, NotificationType } from './api-notifications.interfaces';
|
|
2
|
+
export type NotificationsOut = {
|
|
3
|
+
notifications: Notification[];
|
|
4
|
+
total: number;
|
|
5
|
+
};
|
|
6
|
+
export type NotificationIn = {
|
|
7
|
+
name: string;
|
|
8
|
+
notificationTypeId: number;
|
|
9
|
+
userId?: string;
|
|
10
|
+
content: string;
|
|
11
|
+
url: string;
|
|
12
|
+
image: string;
|
|
13
|
+
starDate: string;
|
|
14
|
+
endDate: string;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type NotificationOut = {
|
|
18
|
+
notification: Notification;
|
|
19
|
+
};
|
|
20
|
+
export type NotificationConfigurationIn = {
|
|
21
|
+
modelId: number[];
|
|
22
|
+
modelType: string;
|
|
23
|
+
notificationId: number;
|
|
24
|
+
extraFields: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type NotificationConfigurationOut = {
|
|
29
|
+
notificationConfiguration: NotificationConfiguration;
|
|
30
|
+
};
|
|
31
|
+
export type NotificationsTypeOut = {
|
|
32
|
+
notificationTypes: NotificationType[];
|
|
33
|
+
total: number;
|
|
34
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -28,10 +28,13 @@ export type Environment = {
|
|
|
28
28
|
apiExternalOperationsUrl?: string;
|
|
29
29
|
apiInventoriesUrl?: string;
|
|
30
30
|
apiInvoicesUrl?: string;
|
|
31
|
+
apiNotificationsUrl?: string;
|
|
31
32
|
apiOpenItemsUrl?: string;
|
|
32
33
|
apiReportsUrl?: string;
|
|
33
34
|
apiSecurityUrl?: string;
|
|
35
|
+
apiServicesUrl?: string;
|
|
34
36
|
apiShipmentUrl?: string;
|
|
37
|
+
apiSuppliesUrl?: string;
|
|
35
38
|
authCookie: string;
|
|
36
39
|
cacheTtl?: number;
|
|
37
40
|
printUrl?: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -12,10 +12,13 @@ export * from './lib/apis/api-e-tools-auto-billing.service';
|
|
|
12
12
|
export * from './lib/apis/api-external-pickups.service';
|
|
13
13
|
export * from './lib/apis/api-inventories.service';
|
|
14
14
|
export * from './lib/apis/api-invoices.service';
|
|
15
|
+
export * from './lib/apis/api-notifications.service';
|
|
15
16
|
export * from './lib/apis/api-open-items.service';
|
|
16
17
|
export * from './lib/apis/api-reports.service';
|
|
17
18
|
export * from './lib/apis/api-security.service';
|
|
19
|
+
export * from './lib/apis/api-services.service';
|
|
18
20
|
export * from './lib/apis/api-shipments.service';
|
|
21
|
+
export * from './lib/apis/api-supplies.service';
|
|
19
22
|
export * from './lib/apis/models/api-billing-pa.interfaces';
|
|
20
23
|
export * from './lib/apis/models/api-billing-pa.types';
|
|
21
24
|
export * from './lib/apis/models/api-billing.types';
|
|
@@ -37,12 +40,18 @@ export * from './lib/apis/models/api-inventories.interfaces';
|
|
|
37
40
|
export * from './lib/apis/models/api-inventories.types';
|
|
38
41
|
export * from './lib/apis/models/api-invoices.interfaces';
|
|
39
42
|
export * from './lib/apis/models/api-invoices.types';
|
|
43
|
+
export * from './lib/apis/models/api-notifications.interfaces';
|
|
44
|
+
export * from './lib/apis/models/api-notifications.types';
|
|
40
45
|
export * from './lib/apis/models/api-open-items.interfaces';
|
|
41
46
|
export * from './lib/apis/models/api-open-items.types';
|
|
42
47
|
export * from './lib/apis/models/api-reports.interfaces';
|
|
43
48
|
export * from './lib/apis/models/api-security.interfaces';
|
|
44
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';
|
|
45
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';
|
|
46
55
|
export * from './lib/apis/models/api.models';
|
|
47
56
|
export * from './lib/websockets/web-sockets.service';
|
|
48
57
|
export * from './lib/cypher/crypto.service';
|