@experteam-mx/ngx-services 18.7.9 → 18.7.11
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 +222 -0
- package/esm2022/lib/apis/api-notifications.service.mjs +104 -0
- package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-discounts.types.mjs +2 -0
- 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.models.mjs +1 -1
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +8 -2
- package/fesm2022/experteam-mx-ngx-services.mjs +319 -1
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-discounts.service.d.ts +152 -0
- package/lib/apis/api-notifications.service.d.ts +70 -0
- package/lib/apis/models/api-discounts.interfaces.d.ts +74 -0
- package/lib/apis/models/api-discounts.types.d.ts +83 -0
- 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.models.d.ts +8 -8
- package/lib/ngx-services.models.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +7 -1
|
@@ -0,0 +1,152 @@
|
|
|
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 { CustomerRestrictionIn, CustomerRestrictionOut, CustomerRestrictionsOut, DiscountIn, DiscountOut, DiscountsOut, LoyaltyPeriodIn, LoyaltyPeriodOut, LoyaltyPeriodsOut, LoyaltyRuleIn, LoyaltyRuleOut, LoyaltyRulesOut, OperationsLoadTopCustomerV2In, TopCustomersOut } from './models/api-discounts.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiDiscountsService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Gets the API endpoint URL for discounts from the environments configuration.
|
|
13
|
+
*
|
|
14
|
+
* @return {string} The URL for the discounts API. Returns an empty string if not defined.
|
|
15
|
+
*/
|
|
16
|
+
get url(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Fetches available discounts based on the provided query parameters.
|
|
19
|
+
*
|
|
20
|
+
* @param {QueryParams} params - The query parameters used to filter and retrieve discounts.
|
|
21
|
+
* @return {Observable<DiscountsOut>} An Observable that emits the retrieved discounts data.
|
|
22
|
+
*/
|
|
23
|
+
getDiscounts(params: QueryParams): Observable<DiscountsOut>;
|
|
24
|
+
/**
|
|
25
|
+
* Sends a request to create or update discounts on the server.
|
|
26
|
+
*
|
|
27
|
+
* @param {DiscountIn} body - The discount information to be submitted.
|
|
28
|
+
* @return {Observable<DiscountOut>} An Observable emitting the server's response containing the created or updated discount details.
|
|
29
|
+
*/
|
|
30
|
+
postDiscounts(body: DiscountIn): Observable<DiscountOut>;
|
|
31
|
+
/**
|
|
32
|
+
* Updates the discount information for a specific item.
|
|
33
|
+
*
|
|
34
|
+
* @param {number} id - The unique identifier of the item whose discount is to be updated.
|
|
35
|
+
* @param {DiscountIn} body - The payload containing the updated discount details.
|
|
36
|
+
* @return {Observable<DiscountOut>} An observable emitting the updated discount details.
|
|
37
|
+
*/
|
|
38
|
+
putDiscounts(id: number, body: DiscountIn): Observable<DiscountOut>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves the top customers based on the provided query parameters.
|
|
41
|
+
*
|
|
42
|
+
* @param {QueryParams} params - The query parameters to filter and sort the top customers.
|
|
43
|
+
* @return {Observable<TopCustomersOut>} An observable emitting the list of top customers.
|
|
44
|
+
*/
|
|
45
|
+
getTopCustomers(params: QueryParams): Observable<TopCustomersOut>;
|
|
46
|
+
/**
|
|
47
|
+
* Sends a POST request to load the top customer data in the system, using the provided input.
|
|
48
|
+
* Transforms the API response to extract the data field containing the discount information.
|
|
49
|
+
*
|
|
50
|
+
* @param {OperationsLoadTopCustomerV2In} body - The input payload containing the company country ID and the file.
|
|
51
|
+
* @param {number} body.company_country_id - The ID of the company's country.
|
|
52
|
+
* @param {File} body.file - The file containing data to be processed.
|
|
53
|
+
* @return {Observable<DiscountOut>} An observable containing the discount output information.
|
|
54
|
+
*/
|
|
55
|
+
postOperationsLoadTopCustomerV2(body: OperationsLoadTopCustomerV2In): Observable<{}>;
|
|
56
|
+
/**
|
|
57
|
+
* Fetches the loyalty periods based on the provided query parameters.
|
|
58
|
+
*
|
|
59
|
+
* @param {QueryParams} params - An object containing query parameters to filter the periods.
|
|
60
|
+
* @return {Observable<LoyaltyPeriodsOut>} An observable that emits the fetched loyalty periods.
|
|
61
|
+
*/
|
|
62
|
+
getLoyaltyPeriods(params: QueryParams): Observable<LoyaltyPeriodsOut>;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves the loyalty period details for the given ID.
|
|
65
|
+
*
|
|
66
|
+
* @param {number} id - The unique identifier of the loyalty period to retrieve.
|
|
67
|
+
* @return {Observable<LoyaltyPeriodOut>} An observable emitting the loyalty period details.
|
|
68
|
+
*/
|
|
69
|
+
getLoyaltyPeriod(id: number): Observable<LoyaltyPeriodOut>;
|
|
70
|
+
/**
|
|
71
|
+
* Sends a PUT request to update the loyalty period with the provided data.
|
|
72
|
+
*
|
|
73
|
+
* @param {LoyaltyPeriodIn} body - The data for the loyalty period to be updated.
|
|
74
|
+
* @return {Observable<LoyaltyPeriodOut>} An observable that emits the updated loyalty period data.
|
|
75
|
+
*/
|
|
76
|
+
postLoyaltyPeriod(body: LoyaltyPeriodIn): Observable<LoyaltyPeriodOut>;
|
|
77
|
+
/**
|
|
78
|
+
* Updates the loyalty period for a specified ID with the provided data.
|
|
79
|
+
*
|
|
80
|
+
* @param {number} id - The unique identifier of the loyalty period to update.
|
|
81
|
+
* @param {LoyaltyPeriodIn} body - An object containing the updated details of the loyalty period.
|
|
82
|
+
* @return {Observable<LoyaltyPeriodOut>} An observable that emits the updated loyalty period details.
|
|
83
|
+
*/
|
|
84
|
+
putLoyaltyPeriod(id: number, body: LoyaltyPeriodIn): Observable<LoyaltyPeriodOut>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves the loyalty rules based on the provided query parameters.
|
|
87
|
+
*
|
|
88
|
+
* @param {QueryParams} params - The query parameters to filter the loyalty rules.
|
|
89
|
+
* @return {Observable<LoyaltyRulesOut>} An observable containing the loyalty rules output.
|
|
90
|
+
*/
|
|
91
|
+
getLoyaltyRules(params: QueryParams): Observable<LoyaltyRulesOut>;
|
|
92
|
+
/**
|
|
93
|
+
* Retrieves a specific loyalty rule based on the provided ID.
|
|
94
|
+
*
|
|
95
|
+
* @param {number} id - The unique identifier of the loyalty rule to retrieve.
|
|
96
|
+
* @return {Observable<LoyaltyRuleOut>} An observable that emits the details of the specified loyalty rule.
|
|
97
|
+
*/
|
|
98
|
+
getLoyaltyRule(id: number): Observable<LoyaltyRuleOut>;
|
|
99
|
+
/**
|
|
100
|
+
* Sends a request to add or update a loyalty rule.
|
|
101
|
+
*
|
|
102
|
+
* @param {LoyaltyRuleIn} body - The loyalty rule data to be sent to the server.
|
|
103
|
+
* @return {Observable<LoyaltyRuleOut>} An observable that emits the updated loyalty rule details.
|
|
104
|
+
*/
|
|
105
|
+
postLoyaltyRule(body: LoyaltyRuleIn): Observable<LoyaltyRuleOut>;
|
|
106
|
+
/**
|
|
107
|
+
* Updates an existing loyalty rule with the provided data.
|
|
108
|
+
*
|
|
109
|
+
* @param {number} id - The unique identifier of the loyalty rule to update.
|
|
110
|
+
* @param {LoyaltyRuleIn} body - The data to update the loyalty rule with.
|
|
111
|
+
* @return {Observable<LoyaltyRuleOut>} An observable that emits the updated loyalty rule.
|
|
112
|
+
*/
|
|
113
|
+
putLoyaltyRule(id: number, body: LoyaltyRuleIn): Observable<LoyaltyRuleOut>;
|
|
114
|
+
/**
|
|
115
|
+
* Fetches customer restrictions based on the provided query parameters.
|
|
116
|
+
*
|
|
117
|
+
* @param {QueryParams} params - The query parameters to filter customer restrictions.
|
|
118
|
+
* @return {Observable<CustomerRestrictionsOut>} An observable that emits the customer restrictions data.
|
|
119
|
+
*/
|
|
120
|
+
getCustomerRestrictions(params: QueryParams): Observable<CustomerRestrictionsOut>;
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves customer restriction details for a given customer ID.
|
|
123
|
+
*
|
|
124
|
+
* @param {number} id - The unique identifier of the customer.
|
|
125
|
+
* @return {Observable<CustomerRestrictionOut>} An observable containing the customer restriction details.
|
|
126
|
+
*/
|
|
127
|
+
getCustomerRestriction(id: number): Observable<CustomerRestrictionOut>;
|
|
128
|
+
/**
|
|
129
|
+
* Sends a request to apply a restriction to a customer.
|
|
130
|
+
*
|
|
131
|
+
* @param {CustomerRestrictionIn} body - The restriction details to be applied to the customer.
|
|
132
|
+
* @return {Observable<CustomerRestrictionOut>} An observable containing the response with the applied customer restriction.
|
|
133
|
+
*/
|
|
134
|
+
postCustomerRestriction(body: CustomerRestrictionIn): Observable<CustomerRestrictionOut>;
|
|
135
|
+
/**
|
|
136
|
+
* Updates customer restrictions using the provided ID and data.
|
|
137
|
+
*
|
|
138
|
+
* @param {number} id - The unique identifier of the customer restriction to be updated.
|
|
139
|
+
* @param {LoyaltyRuleIn} body - The data object containing the customer restriction details to be updated.
|
|
140
|
+
* @return {Observable<CustomerRestrictionOut>} An observable emitting the updated customer restriction details.
|
|
141
|
+
*/
|
|
142
|
+
putCustomerRestriction(id: number, body: CustomerRestrictionIn): Observable<CustomerRestrictionOut>;
|
|
143
|
+
/**
|
|
144
|
+
* Deletes a customer restriction by its ID.
|
|
145
|
+
*
|
|
146
|
+
* @param {number} id - The unique identifier of the customer restriction to delete.
|
|
147
|
+
* @return {Observable<{}>} An Observable that emits the result of the deletion operation.
|
|
148
|
+
*/
|
|
149
|
+
deleteCustomerRestriction(id: number): Observable<{}>;
|
|
150
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiDiscountsService, never>;
|
|
151
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiDiscountsService>;
|
|
152
|
+
}
|
|
@@ -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,74 @@
|
|
|
1
|
+
import { ActiveLessLaravelModel, LaravelModel } from './api.models';
|
|
2
|
+
import { IdentificationType } from './api-catalog.interfaces';
|
|
3
|
+
export interface Discount extends LaravelModel {
|
|
4
|
+
code: string;
|
|
5
|
+
company_country_id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
account_number: string;
|
|
9
|
+
percentage: string;
|
|
10
|
+
start_date: string;
|
|
11
|
+
end_date: string | null;
|
|
12
|
+
start_weight: number;
|
|
13
|
+
end_weight: number | null;
|
|
14
|
+
shipment_scopes: number[];
|
|
15
|
+
country_reference_products: number[];
|
|
16
|
+
applies_to_all_locations: boolean;
|
|
17
|
+
locations: number[] | null;
|
|
18
|
+
reference_required: boolean;
|
|
19
|
+
reference_restriction: boolean | null;
|
|
20
|
+
reference_restriction_period: number | null;
|
|
21
|
+
reference_restriction_amount: number | null;
|
|
22
|
+
reference_restriction_message: string | null;
|
|
23
|
+
shipment_scope_names: string;
|
|
24
|
+
applies_to_all_locations_langs: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
reference_required_langs: {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
status_langs: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
applies_to_all_locations_lang: string | null;
|
|
34
|
+
reference_required_lang: string | null;
|
|
35
|
+
status_lang: string | null;
|
|
36
|
+
}
|
|
37
|
+
export interface TopCustomer extends ActiveLessLaravelModel {
|
|
38
|
+
identification_type_id: number;
|
|
39
|
+
identification_number: string;
|
|
40
|
+
contact_name_1: string;
|
|
41
|
+
contact_name_2: string;
|
|
42
|
+
contact_name_3: string;
|
|
43
|
+
email: string;
|
|
44
|
+
phone_number: string;
|
|
45
|
+
discount_percentage: string;
|
|
46
|
+
account: string | null;
|
|
47
|
+
shipment_scopes: string | null;
|
|
48
|
+
company_country_id: number;
|
|
49
|
+
company_name: string | null;
|
|
50
|
+
level: string | null;
|
|
51
|
+
}
|
|
52
|
+
export interface LoyaltyPeriod extends LaravelModel {
|
|
53
|
+
company_country_id: number;
|
|
54
|
+
days: number;
|
|
55
|
+
shipment_scopes: number[];
|
|
56
|
+
products: string[];
|
|
57
|
+
}
|
|
58
|
+
export interface LoyaltyRule extends LaravelModel {
|
|
59
|
+
name: string;
|
|
60
|
+
loyalty_period_id: number;
|
|
61
|
+
min_quantity: number;
|
|
62
|
+
max_quantity: number;
|
|
63
|
+
discount_percentage: number;
|
|
64
|
+
account: string;
|
|
65
|
+
products: string[];
|
|
66
|
+
valid_since: string;
|
|
67
|
+
valid_until: string;
|
|
68
|
+
}
|
|
69
|
+
export interface CustomerRestriction extends ActiveLessLaravelModel {
|
|
70
|
+
identification_type_id: number;
|
|
71
|
+
identification_number: string;
|
|
72
|
+
company_country_id: number;
|
|
73
|
+
identificationType: IdentificationType;
|
|
74
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { CustomerRestriction, Discount, LoyaltyPeriod, LoyaltyRule, TopCustomer } from './api-discounts.interfaces';
|
|
2
|
+
export type DiscountIn = {
|
|
3
|
+
code: string;
|
|
4
|
+
company_country_id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
account_number: string;
|
|
8
|
+
percentage: number;
|
|
9
|
+
start_date: string;
|
|
10
|
+
end_date: string;
|
|
11
|
+
start_weight: number;
|
|
12
|
+
end_weight: number;
|
|
13
|
+
shipment_scopes: number[];
|
|
14
|
+
country_reference_products: number[];
|
|
15
|
+
applies_to_all_locations: boolean;
|
|
16
|
+
locations: number[];
|
|
17
|
+
reference_required: boolean;
|
|
18
|
+
reference_restriction: boolean;
|
|
19
|
+
reference_restriction_period: number;
|
|
20
|
+
reference_restriction_amount: number;
|
|
21
|
+
reference_restriction_message: string;
|
|
22
|
+
is_active: boolean;
|
|
23
|
+
};
|
|
24
|
+
export type DiscountOut = {
|
|
25
|
+
discount: Discount;
|
|
26
|
+
};
|
|
27
|
+
export type DiscountsOut = {
|
|
28
|
+
discounts: Discount[];
|
|
29
|
+
total: number;
|
|
30
|
+
};
|
|
31
|
+
export type TopCustomersOut = {
|
|
32
|
+
top_customers: TopCustomer[];
|
|
33
|
+
total: number;
|
|
34
|
+
};
|
|
35
|
+
export type OperationsLoadTopCustomerV2In = {
|
|
36
|
+
company_country_id: number;
|
|
37
|
+
file: File;
|
|
38
|
+
};
|
|
39
|
+
export type LoyaltyPeriodsOut = {
|
|
40
|
+
loyalty_periods: LoyaltyPeriod[];
|
|
41
|
+
total: number;
|
|
42
|
+
};
|
|
43
|
+
export type LoyaltyPeriodIn = {
|
|
44
|
+
company_country_id: number;
|
|
45
|
+
days: number;
|
|
46
|
+
shipment_scopes: number[];
|
|
47
|
+
products: string[];
|
|
48
|
+
is_active: boolean;
|
|
49
|
+
};
|
|
50
|
+
export type LoyaltyPeriodOut = {
|
|
51
|
+
loyalty_period: LoyaltyPeriod;
|
|
52
|
+
};
|
|
53
|
+
export type LoyaltyRulesOut = {
|
|
54
|
+
loyalty_rules: LoyaltyRule[];
|
|
55
|
+
total: number;
|
|
56
|
+
};
|
|
57
|
+
export type LoyaltyRuleIn = {
|
|
58
|
+
name: string;
|
|
59
|
+
loyalty_period_id: number;
|
|
60
|
+
min_quantity: number;
|
|
61
|
+
max_quantity: number;
|
|
62
|
+
discount_percentage: number;
|
|
63
|
+
products: string[];
|
|
64
|
+
account: string;
|
|
65
|
+
valid_since: string;
|
|
66
|
+
valid_until: string;
|
|
67
|
+
is_active: boolean;
|
|
68
|
+
};
|
|
69
|
+
export type LoyaltyRuleOut = {
|
|
70
|
+
loyalty_rule: LoyaltyRule;
|
|
71
|
+
};
|
|
72
|
+
export type CustomerRestrictionsOut = {
|
|
73
|
+
customer_restrictions: CustomerRestriction[];
|
|
74
|
+
total: number;
|
|
75
|
+
};
|
|
76
|
+
export type CustomerRestrictionIn = {
|
|
77
|
+
identification_type_id: number;
|
|
78
|
+
identification_number: string;
|
|
79
|
+
company_country_id: number;
|
|
80
|
+
};
|
|
81
|
+
export type CustomerRestrictionOut = {
|
|
82
|
+
customer_restriction: CustomerRestriction;
|
|
83
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -10,21 +10,21 @@ export interface ApiModel {
|
|
|
10
10
|
}
|
|
11
11
|
export interface LaravelModel extends ApiModel {
|
|
12
12
|
is_active: boolean;
|
|
13
|
-
created_at:
|
|
14
|
-
updated_at:
|
|
13
|
+
created_at: string;
|
|
14
|
+
updated_at: string;
|
|
15
15
|
}
|
|
16
16
|
export interface ActiveLessLaravelModel extends ApiModel {
|
|
17
|
-
created_at:
|
|
18
|
-
updated_at:
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
19
|
}
|
|
20
20
|
export interface SymfonyModel extends ApiModel {
|
|
21
21
|
isActive: boolean;
|
|
22
|
-
createdAt:
|
|
23
|
-
updatedAt:
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
24
|
}
|
|
25
25
|
export interface ActiveLessSymfonyModel extends ApiModel {
|
|
26
|
-
createdAt:
|
|
27
|
-
updatedAt:
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
28
|
}
|
|
29
29
|
export type QueryParams = {
|
|
30
30
|
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
@@ -22,11 +22,13 @@ export type Environment = {
|
|
|
22
22
|
apiCatalogsUrl?: string;
|
|
23
23
|
apiCompaniesUrl?: string;
|
|
24
24
|
apiCompositionUrl?: string;
|
|
25
|
+
apiDiscounts?: string;
|
|
25
26
|
apiEToolsAutoBilling?: string;
|
|
26
27
|
apiExternalOperationsKey?: string;
|
|
27
28
|
apiExternalOperationsUrl?: string;
|
|
28
29
|
apiInventoriesUrl?: string;
|
|
29
30
|
apiInvoicesUrl?: string;
|
|
31
|
+
apiNotificationsUrl?: string;
|
|
30
32
|
apiOpenItemsUrl?: string;
|
|
31
33
|
apiReportsUrl?: string;
|
|
32
34
|
apiSecurityUrl?: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -7,17 +7,19 @@ export * from './lib/apis/api-cash-operations.service';
|
|
|
7
7
|
export * from './lib/apis/api-catalogs.service';
|
|
8
8
|
export * from './lib/apis/api-companies.service';
|
|
9
9
|
export * from './lib/apis/api-composition.service';
|
|
10
|
+
export * from './lib/apis/api-discounts.service';
|
|
10
11
|
export * from './lib/apis/api-e-tools-auto-billing.service';
|
|
11
12
|
export * from './lib/apis/api-external-pickups.service';
|
|
12
13
|
export * from './lib/apis/api-inventories.service';
|
|
13
14
|
export * from './lib/apis/api-invoices.service';
|
|
15
|
+
export * from './lib/apis/api-notifications.service';
|
|
14
16
|
export * from './lib/apis/api-open-items.service';
|
|
15
17
|
export * from './lib/apis/api-reports.service';
|
|
16
18
|
export * from './lib/apis/api-security.service';
|
|
17
19
|
export * from './lib/apis/api-shipments.service';
|
|
18
|
-
export * from './lib/apis/models/api-billing.types';
|
|
19
20
|
export * from './lib/apis/models/api-billing-pa.interfaces';
|
|
20
21
|
export * from './lib/apis/models/api-billing-pa.types';
|
|
22
|
+
export * from './lib/apis/models/api-billing.types';
|
|
21
23
|
export * from './lib/apis/models/api-cash-operations.interfaces';
|
|
22
24
|
export * from './lib/apis/models/api-cash-operations.types';
|
|
23
25
|
export * from './lib/apis/models/api-catalog.interfaces';
|
|
@@ -26,6 +28,8 @@ export * from './lib/apis/models/api-companies.interfaces';
|
|
|
26
28
|
export * from './lib/apis/models/api-companies.types';
|
|
27
29
|
export * from './lib/apis/models/api-composition.interfaces';
|
|
28
30
|
export * from './lib/apis/models/api-composition.types';
|
|
31
|
+
export * from './lib/apis/models/api-discounts.interfaces';
|
|
32
|
+
export * from './lib/apis/models/api-discounts.types';
|
|
29
33
|
export * from './lib/apis/models/api-e-tools-auto-billing.interfaces';
|
|
30
34
|
export * from './lib/apis/models/api-e-tools-auto-billing.types';
|
|
31
35
|
export * from './lib/apis/models/api-external-pickups.types';
|
|
@@ -34,6 +38,8 @@ export * from './lib/apis/models/api-inventories.interfaces';
|
|
|
34
38
|
export * from './lib/apis/models/api-inventories.types';
|
|
35
39
|
export * from './lib/apis/models/api-invoices.interfaces';
|
|
36
40
|
export * from './lib/apis/models/api-invoices.types';
|
|
41
|
+
export * from './lib/apis/models/api-notifications.interfaces';
|
|
42
|
+
export * from './lib/apis/models/api-notifications.types';
|
|
37
43
|
export * from './lib/apis/models/api-open-items.interfaces';
|
|
38
44
|
export * from './lib/apis/models/api-open-items.types';
|
|
39
45
|
export * from './lib/apis/models/api-reports.interfaces';
|