@experteam-mx/ngx-services 20.0.0-beta.4 → 20.0.1
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/experteam-mx-ngx-services.mjs +5 -0
- package/esm2022/lib/apis/api-billing-do.service.mjs +41 -0
- package/esm2022/lib/apis/api-billing-gt.service.mjs +61 -0
- package/esm2022/lib/apis/api-billing-mx.service.mjs +62 -0
- package/esm2022/lib/apis/api-billing-pa.service.mjs +105 -0
- package/esm2022/lib/apis/api-billing-sv.service.mjs +83 -0
- package/esm2022/lib/apis/api-cash-operations.service.mjs +93 -0
- package/esm2022/lib/apis/api-catalogs.service.mjs +626 -0
- package/esm2022/lib/apis/api-companies.service.mjs +1031 -0
- package/esm2022/lib/apis/api-composition.service.mjs +55 -0
- package/esm2022/lib/apis/api-customs.service.mjs +157 -0
- package/esm2022/lib/apis/api-discounts.service.mjs +243 -0
- package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +75 -0
- package/esm2022/lib/apis/api-events.service.mjs +53 -0
- package/esm2022/lib/apis/api-external-pickups.service.mjs +74 -0
- package/esm2022/lib/apis/api-inventories.service.mjs +208 -0
- package/esm2022/lib/apis/api-invoices.service.mjs +398 -0
- package/esm2022/lib/apis/api-notifications.service.mjs +104 -0
- package/esm2022/lib/apis/api-open-items.service.mjs +62 -0
- package/esm2022/lib/apis/api-reports.service.mjs +172 -0
- package/esm2022/lib/apis/api-security.service.mjs +245 -0
- package/esm2022/lib/apis/api-services.service.mjs +93 -0
- package/esm2022/lib/apis/api-shipments.service.mjs +116 -0
- package/esm2022/lib/apis/api-supplies.service.mjs +133 -0
- package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-do.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-mx.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-pa.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing-sv.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-billing.models.mjs +2 -0
- package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-cash-operations.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-catalog.enum.mjs +9 -0
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-catalog.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-companies.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-composition.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-composition.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-customs.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-customs.types.mjs +2 -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-e-tools-auto-billing.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-events.enum.mjs +7 -0
- package/esm2022/lib/apis/models/api-events.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-events.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-external-pickups.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-inventories.enum.mjs +22 -0
- package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-inventories.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-invoices.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-open-items.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-open-items.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-reports.types.mjs +2 -0
- package/esm2022/lib/apis/models/api-security.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-security.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-shipments.enums.mjs +8 -0
- package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +2 -0
- package/esm2022/lib/apis/models/api-shipments.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/apis/models/api.models.mjs +2 -0
- package/esm2022/lib/cypher/crypto.service.mjs +93 -0
- package/esm2022/lib/helpers/files.mjs +9 -0
- package/esm2022/lib/helpers/http.mjs +66 -0
- package/esm2022/lib/interceptors/api-headers.interceptor.mjs +24 -0
- package/esm2022/lib/interceptors/api-token.interceptor.mjs +28 -0
- package/esm2022/lib/interceptors/http-caching.interceptor.mjs +37 -0
- package/esm2022/lib/ngx-services.models.mjs +11 -0
- package/esm2022/lib/ngx-services.module.mjs +33 -0
- package/esm2022/lib/websockets/web-sockets.service.mjs +115 -0
- package/esm2022/public-api.mjs +90 -0
- package/fesm2022/experteam-mx-ngx-services.mjs +126 -5
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +287 -4
- package/lib/apis/api-billing-do.service.d.ts +24 -0
- package/lib/apis/api-billing-gt.service.d.ts +38 -0
- package/lib/apis/api-billing-mx.service.d.ts +39 -0
- package/lib/apis/api-billing-pa.service.d.ts +68 -0
- package/lib/apis/api-billing-sv.service.d.ts +55 -0
- package/lib/apis/api-cash-operations.service.d.ts +62 -0
- package/lib/apis/api-catalogs.service.d.ts +458 -0
- package/lib/apis/api-companies.service.d.ts +714 -0
- package/lib/apis/api-composition.service.d.ts +35 -0
- package/lib/apis/api-customs.service.d.ts +110 -0
- package/lib/apis/api-discounts.service.d.ts +167 -0
- package/lib/apis/api-e-tools-auto-billing.service.d.ts +49 -0
- package/lib/apis/api-events.service.d.ts +33 -0
- package/lib/apis/api-external-pickups.service.d.ts +46 -0
- package/lib/apis/api-inventories.service.d.ts +145 -0
- package/lib/apis/api-invoices.service.d.ts +280 -0
- package/lib/apis/api-notifications.service.d.ts +70 -0
- package/lib/apis/api-open-items.service.d.ts +41 -0
- package/lib/apis/api-reports.service.d.ts +120 -0
- package/lib/apis/api-security.service.d.ts +162 -0
- package/lib/apis/api-services.service.d.ts +61 -0
- package/lib/apis/api-shipments.service.d.ts +77 -0
- package/lib/apis/api-supplies.service.d.ts +93 -0
- package/lib/apis/models/api-billing-do.interfaces.d.ts +6 -0
- package/lib/apis/models/api-billing-do.types.d.ts +5 -0
- package/lib/apis/models/api-billing-mx.interfaces.d.ts +21 -0
- package/lib/apis/models/api-billing-mx.types.d.ts +13 -0
- package/lib/apis/models/api-billing-pa.interfaces.d.ts +26 -0
- package/lib/apis/models/api-billing-pa.types.d.ts +16 -0
- package/lib/apis/models/api-billing-sv.interfaces.d.ts +22 -0
- package/lib/apis/models/api-billing-sv.types.d.ts +21 -0
- package/lib/apis/models/api-billing.models.d.ts +27 -0
- package/lib/apis/models/api-cash-operations.interfaces.d.ts +40 -0
- package/lib/apis/models/api-cash-operations.types.d.ts +30 -0
- package/lib/apis/models/api-catalog.enum.d.ts +7 -0
- package/lib/apis/models/api-catalog.interfaces.d.ts +219 -0
- package/lib/apis/models/api-catalog.types.d.ts +217 -0
- package/lib/apis/models/api-companies.interfaces.d.ts +341 -0
- package/lib/apis/models/api-companies.types.d.ts +457 -0
- package/lib/apis/models/api-composition.interfaces.d.ts +272 -0
- package/lib/apis/models/api-composition.types.d.ts +9 -0
- package/lib/apis/models/api-customs.interfaces.d.ts +125 -0
- package/lib/apis/models/api-customs.types.d.ts +90 -0
- package/lib/apis/models/api-discounts.interfaces.d.ts +78 -0
- package/lib/apis/models/api-discounts.types.d.ts +89 -0
- package/lib/apis/models/api-e-tools-auto-billing.interfaces.d.ts +45 -0
- package/lib/apis/models/api-e-tools-auto-billing.types.d.ts +30 -0
- package/lib/apis/models/api-events.enum.d.ts +5 -0
- package/lib/apis/models/api-events.interfaces.d.ts +21 -0
- package/lib/apis/models/api-events.types.d.ts +14 -0
- package/lib/apis/models/api-external-pickups.types.d.ts +31 -0
- package/lib/apis/models/api-inventories.enum.d.ts +18 -0
- package/lib/apis/models/api-inventories.interfaces.d.ts +40 -0
- package/lib/apis/models/api-inventories.types.d.ts +62 -0
- package/lib/apis/models/api-invoices.interfaces.d.ts +267 -0
- package/lib/apis/models/api-invoices.types.d.ts +195 -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-open-items.interfaces.d.ts +32 -0
- package/lib/apis/models/api-open-items.types.d.ts +58 -0
- package/lib/apis/models/api-reports.interfaces.d.ts +342 -0
- package/lib/apis/models/api-reports.types.d.ts +59 -0
- package/lib/apis/models/api-security.interfaces.d.ts +68 -0
- package/lib/apis/models/api-security.types.d.ts +72 -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-shipments.enums.d.ts +6 -0
- package/lib/apis/models/api-shipments.interfaces.d.ts +41 -0
- package/lib/apis/models/api-shipments.types.d.ts +121 -0
- package/lib/apis/models/api-supplies.interfaces.d.ts +40 -0
- package/lib/apis/models/api-supplies.types.d.ts +50 -0
- package/lib/apis/models/api.models.d.ts +36 -0
- package/lib/cypher/crypto.service.d.ts +15 -0
- package/lib/helpers/files.d.ts +2 -0
- package/lib/helpers/http.d.ts +38 -0
- package/lib/interceptors/api-headers.interceptor.d.ts +12 -0
- package/lib/interceptors/api-token.interceptor.d.ts +11 -0
- package/lib/interceptors/http-caching.interceptor.d.ts +12 -0
- package/lib/ngx-services.models.d.ts +62 -0
- package/lib/ngx-services.module.d.ts +16 -0
- package/lib/websockets/web-sockets.service.d.ts +49 -0
- package/package.json +1 -1
- package/public-api.d.ts +80 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { QueryParams } from './models/api.models';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Environment } from '../ngx-services.models';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { CookieService } from 'ngx-cookie-service';
|
|
6
|
+
import { CompositionCountryReferencesOut, ShipmentOut } from './models/api-composition.types';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ApiCompositionService {
|
|
9
|
+
private environments;
|
|
10
|
+
private cookie;
|
|
11
|
+
private http;
|
|
12
|
+
constructor(environments: Environment, cookie: CookieService, http: HttpClient);
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the API security URL from the environment configuration.
|
|
15
|
+
*
|
|
16
|
+
* @return {string} The API security URL.
|
|
17
|
+
*/
|
|
18
|
+
get url(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves shipment details based on the provided shipment ID.
|
|
21
|
+
*
|
|
22
|
+
* @param {number} id - The unique identifier of the shipment to retrieve.
|
|
23
|
+
* @return {Observable<ShipmentOut>} An observable that emits the details of the shipment.
|
|
24
|
+
*/
|
|
25
|
+
getShipment(id: number): Observable<ShipmentOut>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetches the country references data based on the provided query parameters.
|
|
28
|
+
*
|
|
29
|
+
* @param {QueryParams} params - The query parameters for the API request.
|
|
30
|
+
* @return {Observable<CompositionCountryReferencesOut>} - An observable emitting the country references.
|
|
31
|
+
*/
|
|
32
|
+
getCountryReferences(params: QueryParams): Observable<CompositionCountryReferencesOut>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompositionService, never>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompositionService>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Environment } from '../ngx-services.models';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { QueryParams } from './models/api.models';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { CatalogsOut, CountryGroupsOut, CriteriaIn, CriteriaOut, FieldsOut, OverridesOut, RuleCriteriaIn, RuleIn, RuleOut, RulesByCriteriaOut, RulesIn, RulesOut } from './models/api-customs.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiCustomsService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the URL for the cash operations API from the environment configurations.
|
|
13
|
+
*
|
|
14
|
+
* @return {string} The URL of the cash operations API.
|
|
15
|
+
*/
|
|
16
|
+
get url(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Fetches the available fields for a given level.
|
|
19
|
+
*
|
|
20
|
+
* @return {Observable<FieldsOut>} An Observable that emits the list of fields.
|
|
21
|
+
* @param params
|
|
22
|
+
*/
|
|
23
|
+
getFields(params: QueryParams): Observable<FieldsOut>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves override configurations for a given level.
|
|
26
|
+
*
|
|
27
|
+
* @return {Observable<OverridesOut>} An Observable that emits the overrides configuration.
|
|
28
|
+
* @param params
|
|
29
|
+
*/
|
|
30
|
+
getOverrides(params: QueryParams): Observable<OverridesOut>;
|
|
31
|
+
/**
|
|
32
|
+
* Fetches the catalogs used in customs operations.
|
|
33
|
+
*
|
|
34
|
+
* @return {Observable<CatalogsOut>} An Observable that emits the catalogs.
|
|
35
|
+
*/
|
|
36
|
+
getCatalogs(params: QueryParams): Observable<CatalogsOut>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves the list of rules based on the provided query parameters.
|
|
39
|
+
*
|
|
40
|
+
* @param {QueryParams} params - Query parameters to filter the rules.
|
|
41
|
+
* @return {Observable<RulesOut>} An Observable that emits the list of rules.
|
|
42
|
+
*/
|
|
43
|
+
getRules(params: QueryParams): Observable<RulesOut>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves the details of a specific rule by its ID.
|
|
46
|
+
*
|
|
47
|
+
* @param {number} id - The ID of the rule.
|
|
48
|
+
* @return {Observable<RuleOut>} An Observable that emits the rule details.
|
|
49
|
+
*/
|
|
50
|
+
getRule(id: number): Observable<RuleOut>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates a new criteria.
|
|
53
|
+
*
|
|
54
|
+
* @param {CriteriaIn} body - The criteria payload to create.
|
|
55
|
+
* @return {Observable<CriteriaOut>} An Observable that emits the created criteria.
|
|
56
|
+
*/
|
|
57
|
+
postCriteria(body: CriteriaIn): Observable<CriteriaOut>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates a new rule.
|
|
60
|
+
*
|
|
61
|
+
* @param {RuleIn} body - The rule payload to create.
|
|
62
|
+
* @return {Observable<RuleOut>} An Observable that emits the created rule.
|
|
63
|
+
*/
|
|
64
|
+
postRules(body: RuleIn): Observable<RuleOut>;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves rules that match the given criteria.
|
|
67
|
+
*
|
|
68
|
+
* @param {RuleCriteriaIn} params - Criteria used to search for matching rules.
|
|
69
|
+
* @return {Observable<RulesByCriteriaOut>} An Observable that emits the list of matching rules.
|
|
70
|
+
*/
|
|
71
|
+
postRulesByCriteria(params: RuleCriteriaIn): Observable<RulesByCriteriaOut>;
|
|
72
|
+
/**
|
|
73
|
+
* Enables a specific rule by its ID.
|
|
74
|
+
*
|
|
75
|
+
* @param {number} id - The ID of the rule to enable.
|
|
76
|
+
* @return {Observable<{}>} An Observable that emits an empty array on success.
|
|
77
|
+
*/
|
|
78
|
+
putRuleActivate(id: number): Observable<{}>;
|
|
79
|
+
/**
|
|
80
|
+
* Disables (deletes) a specific rule by its ID.
|
|
81
|
+
*
|
|
82
|
+
* @param {number} id - The ID of the rule to disable.
|
|
83
|
+
* @return {Observable<[]>} An Observable that emits an empty array on success.
|
|
84
|
+
*/
|
|
85
|
+
deleteRule(id: number): Observable<{}>;
|
|
86
|
+
/**
|
|
87
|
+
* Updates an existing criteria by its ID.
|
|
88
|
+
*
|
|
89
|
+
* @param {number} id - The ID of the criteria.
|
|
90
|
+
* @param {CriteriaIn} body - The updated criteria payload.
|
|
91
|
+
* @return {Observable<CriteriaOut>} An Observable that emits the updated criteria.
|
|
92
|
+
*/
|
|
93
|
+
putCriteria(id: number, body: CriteriaIn): Observable<CriteriaOut>;
|
|
94
|
+
/**
|
|
95
|
+
* Updates an existing rule by its ID.
|
|
96
|
+
*
|
|
97
|
+
* @param {number} id - The ID of the rule.
|
|
98
|
+
* @param {RulesIn} body - The updated rule payload.
|
|
99
|
+
* @return {Observable<RuleOut>} An Observable that emits the updated rule.
|
|
100
|
+
*/
|
|
101
|
+
putRule(id: number, body: RulesIn): Observable<RuleOut>;
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves the list of country groups used in customs operations.
|
|
104
|
+
*
|
|
105
|
+
* @return {Observable<CountryGroupsOut>} An Observable that emits the list of country groups.
|
|
106
|
+
*/
|
|
107
|
+
getCountryGroups(params: QueryParams): Observable<CountryGroupsOut>;
|
|
108
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCustomsService, never>;
|
|
109
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiCustomsService>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
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, CustomerRestrictionInV2, 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
|
+
/**
|
|
151
|
+
* Sends a request to apply a restriction to a customer (Version 2).
|
|
152
|
+
*
|
|
153
|
+
* @param {CustomerRestrictionInV2} body - The restriction details to be applied to the customer.
|
|
154
|
+
* @return {Observable<CustomerRestrictionOut>} An observable containing the response with the applied customer restriction.
|
|
155
|
+
*/
|
|
156
|
+
postCustomerRestrictionV2(body: CustomerRestrictionInV2): Observable<CustomerRestrictionOut>;
|
|
157
|
+
/**
|
|
158
|
+
* Updates customer restrictions using the provided ID and data (Version 2).
|
|
159
|
+
*
|
|
160
|
+
* @param {number} id - The unique identifier of the customer restriction to be updated.
|
|
161
|
+
* @param {CustomerRestrictionInV2} body - The data object containing the customer restriction details to be updated.
|
|
162
|
+
* @return {Observable<CustomerRestrictionOut>} An observable emitting the updated customer restriction details.
|
|
163
|
+
*/
|
|
164
|
+
putCustomerRestrictionV2(id: number, body: CustomerRestrictionInV2): Observable<CustomerRestrictionOut>;
|
|
165
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiDiscountsService, never>;
|
|
166
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiDiscountsService>;
|
|
167
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Environment } from '../ngx-services.models';
|
|
4
|
+
import { QueryParams } from './models/api.models';
|
|
5
|
+
import { ExternalShipmentAddressesIn, ExternalShipmentAddressesOut, ExternalShipmentFileOut, ExternalShipmentHistoriesOut, ExternalShipmentStatusOut } from './models/api-e-tools-auto-billing.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiEToolsAutoBillingService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the URL for the shipments API from the environment configurations.
|
|
13
|
+
*
|
|
14
|
+
* @return {string} The URL of the shipments API.
|
|
15
|
+
*/
|
|
16
|
+
get url(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Updates external shipment address details for the given address ID.
|
|
19
|
+
*
|
|
20
|
+
* @param {Object} params - The parameters for the API request.
|
|
21
|
+
* @param {string} params.id - The unique identifier of the address to update.
|
|
22
|
+
* @param {Object} params.body - The payload containing updated address details.
|
|
23
|
+
* @return {Observable<ExternalShipmentAddressesOut>} An observable containing the updated external shipment address information.
|
|
24
|
+
*/
|
|
25
|
+
patchExternalShipmentAddresses({ id, ...body }: ExternalShipmentAddressesIn): Observable<ExternalShipmentAddressesOut>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetches the external shipment file by its identifier.
|
|
28
|
+
*
|
|
29
|
+
* @param {number} fileId - The unique identifier of the external shipment file to be retrieved.
|
|
30
|
+
* @return {Observable<ExternalShipmentFileOut>} An observable containing the external shipment file data.
|
|
31
|
+
*/
|
|
32
|
+
getExternalShipmentFile(fileId: number): Observable<ExternalShipmentFileOut>;
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves the history entries for a specific external shipment.
|
|
35
|
+
*
|
|
36
|
+
* @param {number} id - The ID of the external shipment to retrieve history for.
|
|
37
|
+
* @return {Observable<ExternalShipmentHistoriesOut>} An observable containing the external shipment history entries.
|
|
38
|
+
*/
|
|
39
|
+
getExternalShipmentHistories(id: number): Observable<ExternalShipmentHistoriesOut>;
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves the list of external shipment statuses
|
|
42
|
+
*
|
|
43
|
+
* @param {QueryParams} params - The query parameters used to fetch the external shipment statuses.
|
|
44
|
+
* @return {Observable<ExternalShipmentStatusOut>} An observable that emits the external shipment statuses data.
|
|
45
|
+
*/
|
|
46
|
+
getExternalShipmentStatuses(params: QueryParams): Observable<ExternalShipmentStatusOut>;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiEToolsAutoBillingService, never>;
|
|
48
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiEToolsAutoBillingService>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Environment } from '../ngx-services.models';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { OperationModuleEndIn, OperationModuleOut, OperationModuleStartIn } from './models/api-events.types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ApiEventsService {
|
|
7
|
+
private environments;
|
|
8
|
+
private http;
|
|
9
|
+
constructor(environments: Environment, http: HttpClient);
|
|
10
|
+
/**
|
|
11
|
+
* Gets the API endpoint URL for Events from the environments configuration.
|
|
12
|
+
*
|
|
13
|
+
* @return {string} The URL for the Events API. Returns an empty string if not defined.
|
|
14
|
+
*/
|
|
15
|
+
get url(): string;
|
|
16
|
+
/**
|
|
17
|
+
* Sends a request to start an event
|
|
18
|
+
*
|
|
19
|
+
* @param {OperationModuleStartIn} body - The event information to be submitted.
|
|
20
|
+
* @return {Observable<OperationModuleOut>} An Observable emitting the server's response containing the created event details.
|
|
21
|
+
*/
|
|
22
|
+
postOperationModulesStart(body: OperationModuleStartIn): Observable<OperationModuleOut>;
|
|
23
|
+
/**
|
|
24
|
+
* Updates the discount information for a specific item.
|
|
25
|
+
*
|
|
26
|
+
* @param {number} id - The unique identifier of the item whose event is to be updated.
|
|
27
|
+
* @param {OperationModuleEndIn} body - The payload containing the updated event details.
|
|
28
|
+
* @return {Observable<OperationModuleOut>} An observable emitting the updated event details.
|
|
29
|
+
*/
|
|
30
|
+
putOperationModulesEnd(id: number, body: OperationModuleEndIn): Observable<OperationModuleOut>;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiEventsService, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiEventsService>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ApiExternalPickupsService {
|
|
7
|
+
private httpClient;
|
|
8
|
+
private environment;
|
|
9
|
+
private appKey;
|
|
10
|
+
constructor(httpClient: HttpClient, environment: Environment);
|
|
11
|
+
/**
|
|
12
|
+
* Getter method to retrieve the API's external operations URL.
|
|
13
|
+
* Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
|
|
14
|
+
* Defaults to an empty string if the property is undefined or null.
|
|
15
|
+
*
|
|
16
|
+
* @return {string} The external operations URL or an empty string if unavailable.
|
|
17
|
+
*/
|
|
18
|
+
get url(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Generates a delivery confirmation by sending the provided payload to the API.
|
|
21
|
+
*
|
|
22
|
+
* @param {DeliveryConfirmationGenerateIn} payload - The input payload required to generate the delivery confirmation.
|
|
23
|
+
* @return {Observable<DeliveryConfirmationGenerateOut>} An observable that emits the generated delivery confirmation data.
|
|
24
|
+
*/
|
|
25
|
+
postDeliveryConfirmationGenerate(payload: DeliveryConfirmationGenerateIn): Observable<DeliveryConfirmationGenerateOut>;
|
|
26
|
+
/**
|
|
27
|
+
* Confirms the completion of a delivery operation by making a PATCH request.
|
|
28
|
+
*
|
|
29
|
+
* @param {Object} input - The input parameters for the method.
|
|
30
|
+
* @param {string} input.operationId - The unique identifier of the delivery operation to be confirmed.
|
|
31
|
+
* @param {string} input.keyOTP - The one-time password (OTP) key associated with the delivery confirmation.
|
|
32
|
+
* @return {Observable<Object>} - An observable containing the response data from the API.
|
|
33
|
+
*/
|
|
34
|
+
patchDeliveryConfirmationComplete({ keyOTP, operationId, }: DeliveryConfirmationCompleteIn): Observable<{}>;
|
|
35
|
+
/**
|
|
36
|
+
* Cancels a delivery confirmation by sending an OTP and additional data to the server.
|
|
37
|
+
*
|
|
38
|
+
* @param {Object} param0 - The parameter object containing the required properties.
|
|
39
|
+
* @param {string} param0.otp - The one-time password to authenticate the cancellation request.
|
|
40
|
+
* @param {Object} param0.body - Additional body data required for cancellation.
|
|
41
|
+
* @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
|
|
42
|
+
*/
|
|
43
|
+
putDeliveryConfirmation({ otp, ...body }: DeliveryConfirmationIn): Observable<{}>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiExternalPickupsService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiExternalPickupsService>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Environment } from '../ngx-services.models';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { QueryParams } from './models/api.models';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { CheckpointEventReasonsOut, CheckpointsOut, IncidentIn, IncidentOut, IncidentReasonComplementIn, IncidentReasonComplementOut, IncidentReasonComplementsOut, IncidentReasonIn, IncidentReasonOut, IncidentReasonsOut, IncidentsOut, PackagesInStockIn, PackagesInStockOut } from './models/api-inventories.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ApiInventoriesService {
|
|
8
|
+
private environments;
|
|
9
|
+
private http;
|
|
10
|
+
constructor(environments: Environment, http: HttpClient);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the URL for the Inventories API from the environment configurations.
|
|
13
|
+
*
|
|
14
|
+
* @return {string} The URL of the Inventories API.
|
|
15
|
+
*/
|
|
16
|
+
get url(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves a list of checkpoints based on query parameters.
|
|
19
|
+
*
|
|
20
|
+
* @param {QueryParams} params - Query parameters for filtering the checkpoints.
|
|
21
|
+
* @returns {Observable<CheckpointsOut>} The list of checkpoints.
|
|
22
|
+
*/
|
|
23
|
+
getCheckpoints(params: QueryParams): Observable<CheckpointsOut>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves a list of checkpoint event reasons based on query parameters.
|
|
26
|
+
*
|
|
27
|
+
* @param {QueryParams} params - Query parameters for filtering the checkpoint event reasons.
|
|
28
|
+
* @returns {Observable<CheckpointEventReasonsOut>} The list of checkpoint event reasons.
|
|
29
|
+
*/
|
|
30
|
+
getCheckpointEventReasons(params: QueryParams): Observable<CheckpointEventReasonsOut>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves a list of incidents based on query parameters.
|
|
33
|
+
*
|
|
34
|
+
* @param {QueryParams} params - Query parameters for filtering the incidents.
|
|
35
|
+
* @returns {Observable<IncidentsOut>} An observable that emits the list of incidents.
|
|
36
|
+
*/
|
|
37
|
+
getIncidents(params: QueryParams): Observable<IncidentsOut>;
|
|
38
|
+
/**
|
|
39
|
+
* Fetches the incident details based on the provided incident ID.
|
|
40
|
+
*
|
|
41
|
+
* @param {number} id - The identifier of the incident record to get detail.
|
|
42
|
+
* @return {Observable<IncidentOut>} An observable that emits the detail incident data.
|
|
43
|
+
*/
|
|
44
|
+
getIncident(id: Number): Observable<IncidentOut>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new incident.
|
|
47
|
+
*
|
|
48
|
+
* @param {IncidentIn} body - The data for the new incident.
|
|
49
|
+
* @returns {Observable<IncidentOut>} An observable the created incident detail.
|
|
50
|
+
*/
|
|
51
|
+
postIncident(body: IncidentIn): Observable<IncidentOut>;
|
|
52
|
+
/**
|
|
53
|
+
* Updates an existing incident.
|
|
54
|
+
*
|
|
55
|
+
* @param {number} id - The identifier of the incident record to update.
|
|
56
|
+
* @param {IncidentIn} body - The incident data to be updated.
|
|
57
|
+
* @returns {Observable<IncidentOut>} An observable detail of the updated incident.
|
|
58
|
+
*/
|
|
59
|
+
putIncident(id: Number, body: IncidentIn): Observable<IncidentOut>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete an existing incident.
|
|
62
|
+
*
|
|
63
|
+
* @param {number} id - The unique identifier of the incident to be deleted.
|
|
64
|
+
* @returns {Observable<IncidentOut>} An observable that emits the result of the delete incident.
|
|
65
|
+
*/
|
|
66
|
+
deleteIncident(id: Number): Observable<IncidentOut>;
|
|
67
|
+
/**
|
|
68
|
+
* Retrieves a list of incident reasons based on query parameters.
|
|
69
|
+
*
|
|
70
|
+
* @param {QueryParams} params - Query parameters for filtering the incident reasons.
|
|
71
|
+
* @returns {Observable<IncidentReasonsOut>} An observable that emits the list of incident reasons.
|
|
72
|
+
*/
|
|
73
|
+
getIncidentReasons(params: QueryParams): Observable<IncidentReasonsOut>;
|
|
74
|
+
/**
|
|
75
|
+
* Fetches the incident reason details based on the provided incident reason ID.
|
|
76
|
+
*
|
|
77
|
+
* @param {number} id - The identifier of the incident reason record to get detail.
|
|
78
|
+
* @return {Observable<IncidentReasonOut>} An observable that emits the detail incident reason data.
|
|
79
|
+
*/
|
|
80
|
+
getIncidentReason(id: Number): Observable<IncidentReasonOut>;
|
|
81
|
+
/**
|
|
82
|
+
* Creates a new incident reason.
|
|
83
|
+
*
|
|
84
|
+
* @param {IncidentReasonIn} body - The data for the new incident reason.
|
|
85
|
+
* @returns {Observable<IncidentReasonOut>} An observable the created incident reason detail.
|
|
86
|
+
*/
|
|
87
|
+
postIncidentReason(body: IncidentReasonIn): Observable<IncidentReasonOut>;
|
|
88
|
+
/**
|
|
89
|
+
* Updates an existing incident reason.
|
|
90
|
+
*
|
|
91
|
+
* @param {number} id - The identifier of the incident reason record to update.
|
|
92
|
+
* @param {IncidentIn} body - The incident reason data to be updated.
|
|
93
|
+
* @returns {Observable<IncidentReasonOut>} An observable detail of the updated incident reason.
|
|
94
|
+
*/
|
|
95
|
+
putIncidentReason(id: Number, body: IncidentReasonIn): Observable<IncidentReasonOut>;
|
|
96
|
+
/**
|
|
97
|
+
* Delete an existing incident reason.
|
|
98
|
+
*
|
|
99
|
+
* @param {number} id - The unique identifier of the incident reason to be deleted.
|
|
100
|
+
* @returns {Observable<IncidentReasonOut>} An observable that emits the result of the delete incident reason.
|
|
101
|
+
*/
|
|
102
|
+
deleteIncidentReason(id: Number): Observable<IncidentReasonOut>;
|
|
103
|
+
/**
|
|
104
|
+
* Retrieves a list of incident reason complements based on query parameters.
|
|
105
|
+
*
|
|
106
|
+
* @param {QueryParams} params - Query parameters for filtering the incident reason complements.
|
|
107
|
+
* @returns {Observable<IncidentReasonComplementsOut>} An observable that emits the list of incident reason complements.
|
|
108
|
+
*/
|
|
109
|
+
getIncidentReasonComplements(params: QueryParams): Observable<IncidentReasonComplementsOut>;
|
|
110
|
+
/**
|
|
111
|
+
* Creates a new incident reason complement.
|
|
112
|
+
*
|
|
113
|
+
* @param {IncidentReasonIn} body - The data for the new incident reason complement.
|
|
114
|
+
* @returns {Observable<IncidentReasonComplementOut>} An observable the created incident reason complement detail.
|
|
115
|
+
*/
|
|
116
|
+
postIncidentReasonComplement(body: IncidentReasonComplementIn): Observable<IncidentReasonComplementOut>;
|
|
117
|
+
/**
|
|
118
|
+
* Updates an existing incident reason complement.
|
|
119
|
+
*
|
|
120
|
+
* @param {number} id - The identifier of the incident reason complement record to update.
|
|
121
|
+
* @param {IncidentIn} body - The incident reason complement data to be updated.
|
|
122
|
+
* @returns {Observable<IncidentReasonComplementOut>} An observable detail of the updated incident reason complement.
|
|
123
|
+
*/
|
|
124
|
+
putIncidentReasonComplement(id: Number, body: IncidentReasonComplementIn): Observable<IncidentReasonComplementOut>;
|
|
125
|
+
/**
|
|
126
|
+
* Delete an existing incident reason complement.
|
|
127
|
+
*
|
|
128
|
+
* @param {number} id - The unique identifier of the incident reason complement to be deleted.
|
|
129
|
+
* @returns {Observable<IncidentReasonComplementOut>} An observable that emits the result of the delete incident reason complement.
|
|
130
|
+
*/
|
|
131
|
+
deleteIncidentReasonComplement(id: Number): Observable<IncidentReasonComplementOut>;
|
|
132
|
+
/**
|
|
133
|
+
* Posts packages that are currently in stock.
|
|
134
|
+
*
|
|
135
|
+
* @param body - The input data containing package stock information
|
|
136
|
+
* @returns {Observable<PackagesInStockOut>} An Observable that emits the packages in stock output data
|
|
137
|
+
*
|
|
138
|
+
* @remarks
|
|
139
|
+
* This method sends a POST request to the `/packages/in-stock` endpoint and
|
|
140
|
+
* extracts the data property from the API success response.
|
|
141
|
+
*/
|
|
142
|
+
postPackagesInStock(body: PackagesInStockIn): Observable<PackagesInStockOut>;
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInventoriesService, never>;
|
|
144
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInventoriesService>;
|
|
145
|
+
}
|