@experteam-mx/ngx-services 18.5.6 → 18.5.8
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-inventories.service.mjs +194 -0
- package/esm2022/lib/apis/api-invoices.service.mjs +155 -1
- 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 +1 -1
- package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
- package/esm2022/lib/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +367 -1
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-inventories.service.d.ts +134 -0
- package/lib/apis/api-invoices.service.d.ts +110 -1
- 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 +56 -0
- package/lib/apis/models/api-invoices.interfaces.d.ts +46 -1
- package/lib/apis/models/api-invoices.types.d.ts +66 -1
- package/lib/ngx-services.models.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -0,0 +1,134 @@
|
|
|
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 } 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
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInventoriesService, never>;
|
|
133
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInventoriesService>;
|
|
134
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Environment } from '../ngx-services.models';
|
|
4
|
-
import { CancelPaymentReceiptIn, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationDocumentIn, OperationDocumentOut, OperationPrintDocumentOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PrintCollectionReceiptOut } from './models/api-invoices.types';
|
|
4
|
+
import { CancelPaymentReceiptIn, CountryPaymentTypeIn, CountryPaymentTypesOut, CountryPaymentTypeOut, CountryPaymentTypeFieldIn, CountryPaymentTypeFieldOut, CountryPaymentTypeFieldsOut, CustomerDocumentTypesOut, CustomersOut, CustomerTypesOut, OperationAccountPaymentIn, OperationAccountPaymentOut, OperationCancelBillingIn, OperationDocumentIn, OperationDocumentOut, OperationPrintDocumentOut, OperationShipmentExternalIn, OperationShipmentExternalOut, PaymentTypeFieldAccountIn, PaymentTypeFieldAccountOut, PaymentTypeFieldAccountsOut, PaymentTypeFieldCardTypeIn, PaymentTypeFieldCardTypeOut, PaymentTypeFieldCardTypesOut, PrintCollectionReceiptOut, PaymentTypesOut } from './models/api-invoices.types';
|
|
5
5
|
import { QueryParams } from './models/api.models';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiInvoicesService {
|
|
@@ -93,6 +93,115 @@ export declare class ApiInvoicesService {
|
|
|
93
93
|
* @return {Observable<OperationPrintDocumentOut>} An observable emitting the print billing operation details for the specified document.
|
|
94
94
|
*/
|
|
95
95
|
getOperationPrintDocument(documentId: number): Observable<OperationPrintDocumentOut>;
|
|
96
|
+
/**
|
|
97
|
+
* Fetches all country payment types.
|
|
98
|
+
*
|
|
99
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
100
|
+
* @return {Observable<CountryPaymentTypesOut>} An observable emitting the country payment types fetched from the server.
|
|
101
|
+
*/
|
|
102
|
+
getCountryPaymentTypes(params: QueryParams): Observable<CountryPaymentTypesOut>;
|
|
103
|
+
/**
|
|
104
|
+
* Updates an existing country payment type.
|
|
105
|
+
*
|
|
106
|
+
* @param {number} id - The ID of the country payment type to update.
|
|
107
|
+
* @param {CountryPaymentTypeIn} body - The updated data for the country payment type.
|
|
108
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the update operation.
|
|
109
|
+
*/
|
|
110
|
+
putCountryPaymentType(id: number, body: CountryPaymentTypeIn): Observable<CountryPaymentTypeOut>;
|
|
111
|
+
/**
|
|
112
|
+
* Delete an existing country payment type.
|
|
113
|
+
*
|
|
114
|
+
* @param {number} id - The unique identifier of the country payment type to be deleted.
|
|
115
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the delete operation.
|
|
116
|
+
*/
|
|
117
|
+
deleteCountryPaymentType(id: number): Observable<CountryPaymentTypeOut>;
|
|
118
|
+
/**
|
|
119
|
+
* Create a new country payment type resource.
|
|
120
|
+
*
|
|
121
|
+
* @param {CountryPaymentTypeIn} body - The input parameters required for create a new country payment type.
|
|
122
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of create operation.
|
|
123
|
+
*/
|
|
124
|
+
postCountryPaymentType(body: CountryPaymentTypeIn): Observable<CountryPaymentTypeOut>;
|
|
125
|
+
/**
|
|
126
|
+
* Retrieves and returns a country payment type for a given ID.
|
|
127
|
+
*
|
|
128
|
+
* @param {number} id - The ID of the country payment type.
|
|
129
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of show operation.
|
|
130
|
+
*/
|
|
131
|
+
getCountryPaymentType(id: number): Observable<CountryPaymentTypeOut>;
|
|
132
|
+
/**
|
|
133
|
+
* Fetches all country payment type fields.
|
|
134
|
+
*
|
|
135
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
136
|
+
* @return {Observable<CountryPaymentTypeFieldsOut>} An observable emitting the country payment type fields fetched from the server.
|
|
137
|
+
*/
|
|
138
|
+
getCountryPaymentTypeFields(params: QueryParams): Observable<CountryPaymentTypeFieldsOut>;
|
|
139
|
+
/**
|
|
140
|
+
* Create a new country payment type field resource.
|
|
141
|
+
*
|
|
142
|
+
* @param {CountryPaymentTypeFieldIn} body - The input parameters required for create a new country payment type field.
|
|
143
|
+
* @return {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of create operation.
|
|
144
|
+
*/
|
|
145
|
+
postCountryPaymentTypeField(body: CountryPaymentTypeFieldIn): Observable<CountryPaymentTypeFieldOut>;
|
|
146
|
+
/**
|
|
147
|
+
* Updates an existing country payment type field.
|
|
148
|
+
*
|
|
149
|
+
* @param {number} id - The ID of the country payment type field to update.
|
|
150
|
+
* @param {CountryPaymentTypeFieldIn} body - The updated data for the country payment type field.
|
|
151
|
+
* @returns {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of the update operation.
|
|
152
|
+
*/
|
|
153
|
+
putCountryPaymentTypeField(id: number, body: CountryPaymentTypeFieldIn): Observable<CountryPaymentTypeFieldOut>;
|
|
154
|
+
/**
|
|
155
|
+
* Fetches all payment types.
|
|
156
|
+
*
|
|
157
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
158
|
+
* @return {Observable<PaymentTypesOut>} An observable emitting the payment types fetched from the server.
|
|
159
|
+
*/
|
|
160
|
+
getPaymentTypes(params: QueryParams): Observable<PaymentTypesOut>;
|
|
161
|
+
/**
|
|
162
|
+
* Fetches all payment type fields card.
|
|
163
|
+
*
|
|
164
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
165
|
+
* @return {Observable<PaymentTypeFieldCardTypesOut>} An observable emitting the payment type fields card fetched from the server.
|
|
166
|
+
*/
|
|
167
|
+
getPaymentTypeFieldCardTypes(params: QueryParams): Observable<PaymentTypeFieldCardTypesOut>;
|
|
168
|
+
/**
|
|
169
|
+
* Create a new payment type field card resource.
|
|
170
|
+
*
|
|
171
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The input parameters required for create a new payment type field card.
|
|
172
|
+
* @return {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of create operation.
|
|
173
|
+
*/
|
|
174
|
+
postCountryPaymentTypeFieldCardType(body: PaymentTypeFieldCardTypeIn): Observable<PaymentTypeFieldCardTypeOut>;
|
|
175
|
+
/**
|
|
176
|
+
* Updates an existing payment type field card.
|
|
177
|
+
*
|
|
178
|
+
* @param {number} id - The ID of the payment type field card to update.
|
|
179
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The updated data for the payment type field card.
|
|
180
|
+
* @returns {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of the update operation.
|
|
181
|
+
*/
|
|
182
|
+
putCountryPaymentTypeFieldCardType(id: number, body: PaymentTypeFieldCardTypeIn): Observable<PaymentTypeFieldCardTypeOut>;
|
|
183
|
+
/**
|
|
184
|
+
* Fetches all payment type fields accounts.
|
|
185
|
+
*
|
|
186
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
187
|
+
* @return {Observable<PaymentTypeFieldAccountsOut>} An observable emitting the payment type fields accounts fetched from the server.
|
|
188
|
+
*/
|
|
189
|
+
getPaymentTypeFieldAccounts(params: QueryParams): Observable<PaymentTypeFieldAccountsOut>;
|
|
190
|
+
/**
|
|
191
|
+
* Create a new payment type field account resource.
|
|
192
|
+
*
|
|
193
|
+
* @param {PaymentTypeFieldAccountIn} body - The input parameters required for create a new payment type field account.
|
|
194
|
+
* @return {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of create operation.
|
|
195
|
+
*/
|
|
196
|
+
postCountryPaymentTypeFieldAccount(body: PaymentTypeFieldAccountIn): Observable<PaymentTypeFieldAccountOut>;
|
|
197
|
+
/**
|
|
198
|
+
* Updates an existing payment type field account.
|
|
199
|
+
*
|
|
200
|
+
* @param {number} id - The ID of the payment type field account to update.
|
|
201
|
+
* @param {PaymentTypeFieldAccountIn} body - The updated data for the payment type field account.
|
|
202
|
+
* @returns {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of the update operation.
|
|
203
|
+
*/
|
|
204
|
+
putCountryPaymentTypeFieldAccount(id: number, body: PaymentTypeFieldAccountIn): Observable<PaymentTypeFieldAccountOut>;
|
|
96
205
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiInvoicesService, never>;
|
|
97
206
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiInvoicesService>;
|
|
98
207
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare enum Event {
|
|
2
|
+
damage = "damage",
|
|
3
|
+
lost = "lost",
|
|
4
|
+
rejected = "rejected",
|
|
5
|
+
return = "return "
|
|
6
|
+
}
|
|
7
|
+
export declare enum DefaultValueType {
|
|
8
|
+
payment_type = "payment_type",
|
|
9
|
+
currency_code = "currency_code",
|
|
10
|
+
destination = "destination",
|
|
11
|
+
payment_amount = "payment_amount"
|
|
12
|
+
}
|
|
13
|
+
export declare enum AlphaNumeric {
|
|
14
|
+
alpha_numeric = "alpha_numeric",
|
|
15
|
+
numeric = "numeric",
|
|
16
|
+
alphabetic = "alphabetic",
|
|
17
|
+
amount = "amount"
|
|
18
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AlphaNumeric, DefaultValueType, Event } from './api-inventories.enum';
|
|
2
|
+
import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
|
|
3
|
+
export interface Checkpoint extends ActiveLessSymfonyModel {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
event: Event;
|
|
7
|
+
isFinisher: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CheckpointEventReason extends ActiveLessSymfonyModel {
|
|
10
|
+
code: string;
|
|
11
|
+
name: string;
|
|
12
|
+
extraFields: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
checkpoint: Checkpoint | null;
|
|
16
|
+
}
|
|
17
|
+
export interface Incident extends SymfonyModel {
|
|
18
|
+
checkpoint: Checkpoint | null;
|
|
19
|
+
countryId: string;
|
|
20
|
+
event: Event;
|
|
21
|
+
name: string;
|
|
22
|
+
isFinisher: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface IncidentReason extends SymfonyModel {
|
|
25
|
+
checkpointEventReason: CheckpointEventReason | null;
|
|
26
|
+
description: string;
|
|
27
|
+
incident: Incident | null;
|
|
28
|
+
isDefaultChecking: boolean;
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IncidentReasonComplement extends SymfonyModel {
|
|
32
|
+
alphaNumeric: AlphaNumeric | null;
|
|
33
|
+
eventReasonCodeKey: string;
|
|
34
|
+
description: string;
|
|
35
|
+
defaultValueType: DefaultValueType | null;
|
|
36
|
+
incidentReason: IncidentReason;
|
|
37
|
+
maxLength: number;
|
|
38
|
+
name: string;
|
|
39
|
+
readOnly: boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AlphaNumeric, DefaultValueType, Event } from './api-inventories.enum';
|
|
2
|
+
import { CheckpointEventReason, Checkpoint, Incident, IncidentReason, IncidentReasonComplement } from './api-inventories.interfaces';
|
|
3
|
+
export type CheckpointsOut = {
|
|
4
|
+
total: number;
|
|
5
|
+
checkpoints: Checkpoint[];
|
|
6
|
+
};
|
|
7
|
+
export type CheckpointEventReasonsOut = {
|
|
8
|
+
total: number;
|
|
9
|
+
checkpointEventReasons: CheckpointEventReason[];
|
|
10
|
+
};
|
|
11
|
+
export type IncidentsOut = {
|
|
12
|
+
total: number;
|
|
13
|
+
incidents: Incident[];
|
|
14
|
+
};
|
|
15
|
+
export type IncidentOut = {
|
|
16
|
+
incident: Incident;
|
|
17
|
+
};
|
|
18
|
+
export type IncidentIn = {
|
|
19
|
+
checkpointId: Number | null;
|
|
20
|
+
countryId: string;
|
|
21
|
+
name: string;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
event: Event | null;
|
|
24
|
+
};
|
|
25
|
+
export type IncidentReasonsOut = {
|
|
26
|
+
total: number;
|
|
27
|
+
incidentReasons: IncidentReason[];
|
|
28
|
+
};
|
|
29
|
+
export type IncidentReasonOut = {
|
|
30
|
+
incidentReason: IncidentReason;
|
|
31
|
+
};
|
|
32
|
+
export type IncidentReasonIn = {
|
|
33
|
+
checkpointEventReasonId?: number;
|
|
34
|
+
description: string;
|
|
35
|
+
incidentId?: number;
|
|
36
|
+
isActive: boolean;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
export type IncidentReasonComplementsOut = {
|
|
40
|
+
total: number;
|
|
41
|
+
incidentReasonComplements: IncidentReasonComplement[];
|
|
42
|
+
};
|
|
43
|
+
export type IncidentReasonComplementOut = {
|
|
44
|
+
incidentReasonComplement: IncidentReasonComplement;
|
|
45
|
+
};
|
|
46
|
+
export type IncidentReasonComplementIn = {
|
|
47
|
+
alphaNumeric?: AlphaNumeric;
|
|
48
|
+
eventReasonCodeKey: string;
|
|
49
|
+
description: string;
|
|
50
|
+
defaultValueType?: DefaultValueType;
|
|
51
|
+
incidentReasonId?: Number;
|
|
52
|
+
maxLength: number;
|
|
53
|
+
name: string;
|
|
54
|
+
readOnly?: boolean;
|
|
55
|
+
isActive?: boolean;
|
|
56
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LaravelModel } from './api.models';
|
|
2
|
-
import { IdentificationType } from './api-catalog.interfaces';
|
|
2
|
+
import { Currency, IdentificationType } from './api-catalog.interfaces';
|
|
3
3
|
export interface Document extends LaravelModel {
|
|
4
4
|
document_type_range_id: number;
|
|
5
5
|
document_number: number;
|
|
@@ -171,3 +171,48 @@ export interface IdentificationTypeCustomer extends LaravelModel {
|
|
|
171
171
|
customer_id: number | null;
|
|
172
172
|
identificationType: IdentificationType;
|
|
173
173
|
}
|
|
174
|
+
export interface CountryPaymentType extends LaravelModel {
|
|
175
|
+
payment_type_id: number;
|
|
176
|
+
country_id: number;
|
|
177
|
+
name: string;
|
|
178
|
+
billing_payment_code: string;
|
|
179
|
+
can_tolerance: boolean;
|
|
180
|
+
code: string;
|
|
181
|
+
country_payment_type_fields: CountryPaymentTypeField[];
|
|
182
|
+
payment_type: PaymentType;
|
|
183
|
+
}
|
|
184
|
+
export interface CountryPaymentTypeField extends LaravelModel {
|
|
185
|
+
country_payment_type_id: number;
|
|
186
|
+
code: string;
|
|
187
|
+
name: string;
|
|
188
|
+
description: string;
|
|
189
|
+
format: string;
|
|
190
|
+
is_required: boolean;
|
|
191
|
+
catalog: [] | null;
|
|
192
|
+
regex: string | null;
|
|
193
|
+
is_interface: boolean;
|
|
194
|
+
value?: string;
|
|
195
|
+
is_bank_reference: boolean;
|
|
196
|
+
}
|
|
197
|
+
export interface PaymentType extends LaravelModel {
|
|
198
|
+
code: string;
|
|
199
|
+
fields: {
|
|
200
|
+
[key: string]: string;
|
|
201
|
+
};
|
|
202
|
+
name: string;
|
|
203
|
+
}
|
|
204
|
+
export interface PaymentTypeFieldCardType extends LaravelModel {
|
|
205
|
+
country_payment_type_field_id: number;
|
|
206
|
+
name: string;
|
|
207
|
+
code: string;
|
|
208
|
+
accountable_account: string;
|
|
209
|
+
accountable_account_usd: string | null;
|
|
210
|
+
}
|
|
211
|
+
export interface PaymentTypeFieldAccount extends LaravelModel {
|
|
212
|
+
country_payment_type_field_id: number;
|
|
213
|
+
name: string;
|
|
214
|
+
account: string;
|
|
215
|
+
accountable_account: string;
|
|
216
|
+
currency_id: number;
|
|
217
|
+
currency: Currency;
|
|
218
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Customer, CustomerType, Document } from './api-invoices.interfaces';
|
|
1
|
+
import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerType, Document, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType } from './api-invoices.interfaces';
|
|
2
2
|
import { CustomerCountryDocumentType } from './api-billing.interfaces';
|
|
3
3
|
export interface OperationAccountPaymentIn {
|
|
4
4
|
document_type_range_id: number | null;
|
|
@@ -94,3 +94,68 @@ export type CustomerDocumentTypesOut = {
|
|
|
94
94
|
customer_country_document_types: CustomerCountryDocumentType[];
|
|
95
95
|
total: number;
|
|
96
96
|
};
|
|
97
|
+
export type CountryPaymentTypesOut = {
|
|
98
|
+
country_payment_types: CountryPaymentType[];
|
|
99
|
+
total: number;
|
|
100
|
+
};
|
|
101
|
+
export type CountryPaymentTypeOut = {
|
|
102
|
+
country_payment_type: CountryPaymentType;
|
|
103
|
+
};
|
|
104
|
+
export type CountryPaymentTypeIn = {
|
|
105
|
+
payment_type_id: number;
|
|
106
|
+
country_id: number;
|
|
107
|
+
name: string;
|
|
108
|
+
billing_payment_code: string;
|
|
109
|
+
can_tolerance: boolean;
|
|
110
|
+
is_active: boolean;
|
|
111
|
+
};
|
|
112
|
+
export type CountryPaymentTypeFieldsOut = {
|
|
113
|
+
country_payment_type_fields: CountryPaymentTypeField[];
|
|
114
|
+
total: number;
|
|
115
|
+
};
|
|
116
|
+
export type CountryPaymentTypeFieldOut = {
|
|
117
|
+
country_payment_type_field: CountryPaymentTypeField;
|
|
118
|
+
};
|
|
119
|
+
export type CountryPaymentTypeFieldIn = {
|
|
120
|
+
country_payment_type_id: number;
|
|
121
|
+
code: string;
|
|
122
|
+
name: string;
|
|
123
|
+
description: string;
|
|
124
|
+
format: string;
|
|
125
|
+
is_required: boolean;
|
|
126
|
+
catalog: [] | null;
|
|
127
|
+
is_interface: boolean;
|
|
128
|
+
};
|
|
129
|
+
export type PaymentTypesOut = {
|
|
130
|
+
payment_types: PaymentType[];
|
|
131
|
+
total: number;
|
|
132
|
+
};
|
|
133
|
+
export type PaymentTypeFieldCardTypesOut = {
|
|
134
|
+
country_payment_type_field_card_types: PaymentTypeFieldCardType[];
|
|
135
|
+
total: number;
|
|
136
|
+
};
|
|
137
|
+
export type PaymentTypeFieldCardTypeIn = {
|
|
138
|
+
country_payment_type_field_id: number;
|
|
139
|
+
name: string;
|
|
140
|
+
code: string;
|
|
141
|
+
accountable_account: string;
|
|
142
|
+
is_active: boolean;
|
|
143
|
+
};
|
|
144
|
+
export type PaymentTypeFieldCardTypeOut = {
|
|
145
|
+
country_payment_type_field_card_type: PaymentTypeFieldCardType;
|
|
146
|
+
};
|
|
147
|
+
export type PaymentTypeFieldAccountsOut = {
|
|
148
|
+
country_payment_type_field_accounts: PaymentTypeFieldAccount[];
|
|
149
|
+
total: number;
|
|
150
|
+
};
|
|
151
|
+
export type PaymentTypeFieldAccountIn = {
|
|
152
|
+
country_payment_type_field_id: number;
|
|
153
|
+
name: string;
|
|
154
|
+
account: string;
|
|
155
|
+
accountable_account: string;
|
|
156
|
+
currency_id: number;
|
|
157
|
+
is_active: boolean;
|
|
158
|
+
};
|
|
159
|
+
export type PaymentTypeFieldAccountOut = {
|
|
160
|
+
country_payment_type_field_account: PaymentTypeFieldAccount;
|
|
161
|
+
};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './lib/apis/api-catalogs.service';
|
|
|
7
7
|
export * from './lib/apis/api-companies.service';
|
|
8
8
|
export * from './lib/apis/api-e-tools-auto-billing.service';
|
|
9
9
|
export * from './lib/apis/api-external-pickups.service';
|
|
10
|
+
export * from './lib/apis/api-inventories.service';
|
|
10
11
|
export * from './lib/apis/api-invoices.service';
|
|
11
12
|
export * from './lib/apis/api-open-items.service';
|
|
12
13
|
export * from './lib/apis/api-reports.service';
|
|
@@ -22,6 +23,9 @@ export * from './lib/apis/models/api-companies.types';
|
|
|
22
23
|
export * from './lib/apis/models/api-e-tools-auto-billing.interfaces';
|
|
23
24
|
export * from './lib/apis/models/api-e-tools-auto-billing.types';
|
|
24
25
|
export * from './lib/apis/models/api-external-pickups.types';
|
|
26
|
+
export * from './lib/apis/models/api-inventories.interfaces';
|
|
27
|
+
export * from './lib/apis/models/api-inventories.enum';
|
|
28
|
+
export * from './lib/apis/models/api-inventories.types';
|
|
25
29
|
export * from './lib/apis/models/api-invoices.interfaces';
|
|
26
30
|
export * from './lib/apis/models/api-invoices.types';
|
|
27
31
|
export * from './lib/apis/models/api-open-items.interfaces';
|