@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
package/esm2022/public-api.mjs
CHANGED
|
@@ -11,6 +11,7 @@ export * from './lib/apis/api-catalogs.service';
|
|
|
11
11
|
export * from './lib/apis/api-companies.service';
|
|
12
12
|
export * from './lib/apis/api-e-tools-auto-billing.service';
|
|
13
13
|
export * from './lib/apis/api-external-pickups.service';
|
|
14
|
+
export * from './lib/apis/api-inventories.service';
|
|
14
15
|
export * from './lib/apis/api-invoices.service';
|
|
15
16
|
export * from './lib/apis/api-open-items.service';
|
|
16
17
|
export * from './lib/apis/api-reports.service';
|
|
@@ -27,6 +28,9 @@ export * from './lib/apis/models/api-companies.types';
|
|
|
27
28
|
export * from './lib/apis/models/api-e-tools-auto-billing.interfaces';
|
|
28
29
|
export * from './lib/apis/models/api-e-tools-auto-billing.types';
|
|
29
30
|
export * from './lib/apis/models/api-external-pickups.types';
|
|
31
|
+
export * from './lib/apis/models/api-inventories.interfaces';
|
|
32
|
+
export * from './lib/apis/models/api-inventories.enum';
|
|
33
|
+
export * from './lib/apis/models/api-inventories.types';
|
|
30
34
|
export * from './lib/apis/models/api-invoices.interfaces';
|
|
31
35
|
export * from './lib/apis/models/api-invoices.types';
|
|
32
36
|
export * from './lib/apis/models/api-open-items.interfaces';
|
|
@@ -46,4 +50,4 @@ export * from './lib/interceptors/api-token.interceptor';
|
|
|
46
50
|
export * from './lib/interceptors/http-caching.interceptor';
|
|
47
51
|
// helpers
|
|
48
52
|
export * from './lib/helpers/http';
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVydGVhbS1teC9uZ3gtc2VydmljZXMvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFDSCxjQUFjLDJCQUEyQixDQUFBO0FBQ3pDLGNBQWMsMkJBQTJCLENBQUE7QUFFekMsZUFBZTtBQUNmLGNBQWMsbUNBQW1DLENBQUE7QUFDakQsY0FBYyxtQ0FBbUMsQ0FBQTtBQUNqRCxjQUFjLHdDQUF3QyxDQUFBO0FBQ3RELGNBQWMsaUNBQWlDLENBQUE7QUFDL0MsY0FBYyxrQ0FBa0MsQ0FBQTtBQUNoRCxjQUFjLDZDQUE2QyxDQUFBO0FBQzNELGNBQWMseUNBQXlDLENBQUE7QUFDdkQsY0FBYyxvQ0FBb0MsQ0FBQTtBQUNsRCxjQUFjLGlDQUF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cnMvYXBpLWhlYWRlcnMuaW50ZXJjZXB0b3InXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ludGVyY2VwdG9ycy9hcGktdG9rZW4uaW50ZXJjZXB0b3InXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2ludGVyY2VwdG9ycy9odHRwLWNhY2hpbmcuaW50ZXJjZXB0b3InXHJcblxyXG4vLyBoZWxwZXJzXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2hlbHBlcnMvaHR0cCdcclxuIl19
|
|
@@ -1062,6 +1062,196 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1062
1062
|
args: ['env']
|
|
1063
1063
|
}] }] });
|
|
1064
1064
|
|
|
1065
|
+
class ApiInventoriesService {
|
|
1066
|
+
environments;
|
|
1067
|
+
http;
|
|
1068
|
+
constructor(environments, http) {
|
|
1069
|
+
this.environments = environments;
|
|
1070
|
+
this.http = http;
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Retrieves the URL for the Inventories API from the environment configurations.
|
|
1074
|
+
*
|
|
1075
|
+
* @return {string} The URL of the Inventories API.
|
|
1076
|
+
*/
|
|
1077
|
+
get url() {
|
|
1078
|
+
return this.environments.apiInventoriesUrl ?? '';
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Retrieves a list of checkpoints based on query parameters.
|
|
1082
|
+
*
|
|
1083
|
+
* @param {QueryParams} params - Query parameters for filtering the checkpoints.
|
|
1084
|
+
* @returns {Observable<CheckpointsOut>} The list of checkpoints.
|
|
1085
|
+
*/
|
|
1086
|
+
getCheckpoints(params) {
|
|
1087
|
+
return this.http.get(`${this.url}/checkpoints`, {
|
|
1088
|
+
params
|
|
1089
|
+
}).pipe(map(({ data }) => data));
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Retrieves a list of checkpoint event reasons based on query parameters.
|
|
1093
|
+
*
|
|
1094
|
+
* @param {QueryParams} params - Query parameters for filtering the checkpoint event reasons.
|
|
1095
|
+
* @returns {Observable<CheckpointEventReasonsOut>} The list of checkpoint event reasons.
|
|
1096
|
+
*/
|
|
1097
|
+
getCheckpointEventReasons(params) {
|
|
1098
|
+
return this.http.get(`${this.url}/checkpoint-event-reasons`, {
|
|
1099
|
+
params
|
|
1100
|
+
}).pipe(map(({ data }) => data));
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Retrieves a list of incidents based on query parameters.
|
|
1104
|
+
*
|
|
1105
|
+
* @param {QueryParams} params - Query parameters for filtering the incidents.
|
|
1106
|
+
* @returns {Observable<IncidentsOut>} An observable that emits the list of incidents.
|
|
1107
|
+
*/
|
|
1108
|
+
getIncidents(params) {
|
|
1109
|
+
return this.http.get(`${this.url}/incidents`, {
|
|
1110
|
+
params
|
|
1111
|
+
}).pipe(map(({ data }) => data));
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Fetches the incident details based on the provided incident ID.
|
|
1115
|
+
*
|
|
1116
|
+
* @param {number} id - The identifier of the incident record to get detail.
|
|
1117
|
+
* @return {Observable<IncidentOut>} An observable that emits the detail incident data.
|
|
1118
|
+
*/
|
|
1119
|
+
getIncident(id) {
|
|
1120
|
+
return this.http.get(`${this.url}/incidents/${id}`)
|
|
1121
|
+
.pipe(map(({ data }) => data));
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* Creates a new incident.
|
|
1125
|
+
*
|
|
1126
|
+
* @param {IncidentIn} body - The data for the new incident.
|
|
1127
|
+
* @returns {Observable<IncidentOut>} An observable the created incident detail.
|
|
1128
|
+
*/
|
|
1129
|
+
postIncident(body) {
|
|
1130
|
+
return this.http.post(`${this.url}/incidents`, body).pipe(map(({ data }) => data));
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Updates an existing incident.
|
|
1134
|
+
*
|
|
1135
|
+
* @param {number} id - The identifier of the incident record to update.
|
|
1136
|
+
* @param {IncidentIn} body - The incident data to be updated.
|
|
1137
|
+
* @returns {Observable<IncidentOut>} An observable detail of the updated incident.
|
|
1138
|
+
*/
|
|
1139
|
+
putIncident(id, body) {
|
|
1140
|
+
return this.http.put(`${this.url}/incidents/${id}`, body).pipe(map(({ data }) => data));
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Delete an existing incident.
|
|
1144
|
+
*
|
|
1145
|
+
* @param {number} id - The unique identifier of the incident to be deleted.
|
|
1146
|
+
* @returns {Observable<IncidentOut>} An observable that emits the result of the delete incident.
|
|
1147
|
+
*/
|
|
1148
|
+
deleteIncident(id) {
|
|
1149
|
+
return this.http.delete(`${this.url}/incidents/${id}`)
|
|
1150
|
+
.pipe(map(({ data }) => data));
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Retrieves a list of incident reasons based on query parameters.
|
|
1154
|
+
*
|
|
1155
|
+
* @param {QueryParams} params - Query parameters for filtering the incident reasons.
|
|
1156
|
+
* @returns {Observable<IncidentReasonsOut>} An observable that emits the list of incident reasons.
|
|
1157
|
+
*/
|
|
1158
|
+
getIncidentReasons(params) {
|
|
1159
|
+
return this.http.get(`${this.url}/incident-reasons`, {
|
|
1160
|
+
params
|
|
1161
|
+
}).pipe(map(({ data }) => data));
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Fetches the incident reason details based on the provided incident reason ID.
|
|
1165
|
+
*
|
|
1166
|
+
* @param {number} id - The identifier of the incident reason record to get detail.
|
|
1167
|
+
* @return {Observable<IncidentReasonOut>} An observable that emits the detail incident reason data.
|
|
1168
|
+
*/
|
|
1169
|
+
getIncidentReason(id) {
|
|
1170
|
+
return this.http.get(`${this.url}/incident-reasons/${id}`)
|
|
1171
|
+
.pipe(map(({ data }) => data));
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Creates a new incident reason.
|
|
1175
|
+
*
|
|
1176
|
+
* @param {IncidentReasonIn} body - The data for the new incident reason.
|
|
1177
|
+
* @returns {Observable<IncidentReasonOut>} An observable the created incident reason detail.
|
|
1178
|
+
*/
|
|
1179
|
+
postIncidentReason(body) {
|
|
1180
|
+
return this.http.post(`${this.url}/incident-reasons`, body).pipe(map(({ data }) => data));
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Updates an existing incident reason.
|
|
1184
|
+
*
|
|
1185
|
+
* @param {number} id - The identifier of the incident reason record to update.
|
|
1186
|
+
* @param {IncidentIn} body - The incident reason data to be updated.
|
|
1187
|
+
* @returns {Observable<IncidentReasonOut>} An observable detail of the updated incident reason.
|
|
1188
|
+
*/
|
|
1189
|
+
putIncidentReason(id, body) {
|
|
1190
|
+
return this.http.put(`${this.url}/incident-reasons/${id}`, body).pipe(map(({ data }) => data));
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Delete an existing incident reason.
|
|
1194
|
+
*
|
|
1195
|
+
* @param {number} id - The unique identifier of the incident reason to be deleted.
|
|
1196
|
+
* @returns {Observable<IncidentReasonOut>} An observable that emits the result of the delete incident reason.
|
|
1197
|
+
*/
|
|
1198
|
+
deleteIncidentReason(id) {
|
|
1199
|
+
return this.http.delete(`${this.url}/incident-reasons/${id}`)
|
|
1200
|
+
.pipe(map(({ data }) => data));
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Retrieves a list of incident reason complements based on query parameters.
|
|
1204
|
+
*
|
|
1205
|
+
* @param {QueryParams} params - Query parameters for filtering the incident reason complements.
|
|
1206
|
+
* @returns {Observable<IncidentReasonComplementsOut>} An observable that emits the list of incident reason complements.
|
|
1207
|
+
*/
|
|
1208
|
+
getIncidentReasonComplements(params) {
|
|
1209
|
+
return this.http.get(`${this.url}/incident-reason-complements`, {
|
|
1210
|
+
params
|
|
1211
|
+
}).pipe(map(({ data }) => data));
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* Creates a new incident reason complement.
|
|
1215
|
+
*
|
|
1216
|
+
* @param {IncidentReasonIn} body - The data for the new incident reason complement.
|
|
1217
|
+
* @returns {Observable<IncidentReasonComplementOut>} An observable the created incident reason complement detail.
|
|
1218
|
+
*/
|
|
1219
|
+
postIncidentReasonComplement(body) {
|
|
1220
|
+
return this.http.post(`${this.url}/incident-reason-complements`, body).pipe(map(({ data }) => data));
|
|
1221
|
+
}
|
|
1222
|
+
/**
|
|
1223
|
+
* Updates an existing incident reason complement.
|
|
1224
|
+
*
|
|
1225
|
+
* @param {number} id - The identifier of the incident reason complement record to update.
|
|
1226
|
+
* @param {IncidentIn} body - The incident reason complement data to be updated.
|
|
1227
|
+
* @returns {Observable<IncidentReasonComplementOut>} An observable detail of the updated incident reason complement.
|
|
1228
|
+
*/
|
|
1229
|
+
putIncidentReasonComplement(id, body) {
|
|
1230
|
+
return this.http.put(`${this.url}/incident-reason-complements/${id}`, body).pipe(map(({ data }) => data));
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Delete an existing incident reason complement.
|
|
1234
|
+
*
|
|
1235
|
+
* @param {number} id - The unique identifier of the incident reason complement to be deleted.
|
|
1236
|
+
* @returns {Observable<IncidentReasonComplementOut>} An observable that emits the result of the delete incident reason complement.
|
|
1237
|
+
*/
|
|
1238
|
+
deleteIncidentReasonComplement(id) {
|
|
1239
|
+
return this.http.delete(`${this.url}/incident-reason-complements/${id}`)
|
|
1240
|
+
.pipe(map(({ data }) => data));
|
|
1241
|
+
}
|
|
1242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInventoriesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1243
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
1244
|
+
}
|
|
1245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInventoriesService, decorators: [{
|
|
1246
|
+
type: Injectable,
|
|
1247
|
+
args: [{
|
|
1248
|
+
providedIn: 'root'
|
|
1249
|
+
}]
|
|
1250
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1251
|
+
type: Inject,
|
|
1252
|
+
args: ['env']
|
|
1253
|
+
}] }, { type: i1.HttpClient }] });
|
|
1254
|
+
|
|
1065
1255
|
class ApiInvoicesService {
|
|
1066
1256
|
environments;
|
|
1067
1257
|
http;
|
|
@@ -1189,6 +1379,160 @@ class ApiInvoicesService {
|
|
|
1189
1379
|
return this.http.get(`${this.url}/operation/print/document/${documentId}`)
|
|
1190
1380
|
.pipe(map(({ data }) => data));
|
|
1191
1381
|
}
|
|
1382
|
+
/**
|
|
1383
|
+
* Fetches all country payment types.
|
|
1384
|
+
*
|
|
1385
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1386
|
+
* @return {Observable<CountryPaymentTypesOut>} An observable emitting the country payment types fetched from the server.
|
|
1387
|
+
*/
|
|
1388
|
+
getCountryPaymentTypes(params) {
|
|
1389
|
+
return this.http.get(`${this.url}/country-payment-types`, { params })
|
|
1390
|
+
.pipe(map(({ data }) => data));
|
|
1391
|
+
}
|
|
1392
|
+
/**
|
|
1393
|
+
* Updates an existing country payment type.
|
|
1394
|
+
*
|
|
1395
|
+
* @param {number} id - The ID of the country payment type to update.
|
|
1396
|
+
* @param {CountryPaymentTypeIn} body - The updated data for the country payment type.
|
|
1397
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the update operation.
|
|
1398
|
+
*/
|
|
1399
|
+
putCountryPaymentType(id, body) {
|
|
1400
|
+
return this.http.put(`${this.url}/country-payment-types/${id}`, body)
|
|
1401
|
+
.pipe(map(({ data }) => data));
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Delete an existing country payment type.
|
|
1405
|
+
*
|
|
1406
|
+
* @param {number} id - The unique identifier of the country payment type to be deleted.
|
|
1407
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the delete operation.
|
|
1408
|
+
*/
|
|
1409
|
+
deleteCountryPaymentType(id) {
|
|
1410
|
+
return this.http.delete(`${this.url}/country-payment-types/${id}`)
|
|
1411
|
+
.pipe(map(({ data }) => data));
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Create a new country payment type resource.
|
|
1415
|
+
*
|
|
1416
|
+
* @param {CountryPaymentTypeIn} body - The input parameters required for create a new country payment type.
|
|
1417
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of create operation.
|
|
1418
|
+
*/
|
|
1419
|
+
postCountryPaymentType(body) {
|
|
1420
|
+
return this.http.post(`${this.url}/country-payment-types`, body)
|
|
1421
|
+
.pipe(map(({ data }) => data));
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Retrieves and returns a country payment type for a given ID.
|
|
1425
|
+
*
|
|
1426
|
+
* @param {number} id - The ID of the country payment type.
|
|
1427
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of show operation.
|
|
1428
|
+
*/
|
|
1429
|
+
getCountryPaymentType(id) {
|
|
1430
|
+
return this.http.get(`${this.url}/country-payment-types/${id}`)
|
|
1431
|
+
.pipe(map(({ data }) => data));
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* Fetches all country payment type fields.
|
|
1435
|
+
*
|
|
1436
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1437
|
+
* @return {Observable<CountryPaymentTypeFieldsOut>} An observable emitting the country payment type fields fetched from the server.
|
|
1438
|
+
*/
|
|
1439
|
+
getCountryPaymentTypeFields(params) {
|
|
1440
|
+
return this.http.get(`${this.url}/country-payment-type-fields`, { params })
|
|
1441
|
+
.pipe(map(({ data }) => data));
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Create a new country payment type field resource.
|
|
1445
|
+
*
|
|
1446
|
+
* @param {CountryPaymentTypeFieldIn} body - The input parameters required for create a new country payment type field.
|
|
1447
|
+
* @return {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of create operation.
|
|
1448
|
+
*/
|
|
1449
|
+
postCountryPaymentTypeField(body) {
|
|
1450
|
+
return this.http.post(`${this.url}/country-payment-type-fields`, body)
|
|
1451
|
+
.pipe(map(({ data }) => data));
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Updates an existing country payment type field.
|
|
1455
|
+
*
|
|
1456
|
+
* @param {number} id - The ID of the country payment type field to update.
|
|
1457
|
+
* @param {CountryPaymentTypeFieldIn} body - The updated data for the country payment type field.
|
|
1458
|
+
* @returns {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of the update operation.
|
|
1459
|
+
*/
|
|
1460
|
+
putCountryPaymentTypeField(id, body) {
|
|
1461
|
+
return this.http.put(`${this.url}/country-payment-type-fields/${id}`, body)
|
|
1462
|
+
.pipe(map(({ data }) => data));
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Fetches all payment types.
|
|
1466
|
+
*
|
|
1467
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1468
|
+
* @return {Observable<PaymentTypesOut>} An observable emitting the payment types fetched from the server.
|
|
1469
|
+
*/
|
|
1470
|
+
getPaymentTypes(params) {
|
|
1471
|
+
return this.http.get(`${this.url}/payment-types`, { params })
|
|
1472
|
+
.pipe(map(({ data }) => data));
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Fetches all payment type fields card.
|
|
1476
|
+
*
|
|
1477
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1478
|
+
* @return {Observable<PaymentTypeFieldCardTypesOut>} An observable emitting the payment type fields card fetched from the server.
|
|
1479
|
+
*/
|
|
1480
|
+
getPaymentTypeFieldCardTypes(params) {
|
|
1481
|
+
return this.http.get(`${this.url}/payment-type-field-card-types`, { params })
|
|
1482
|
+
.pipe(map(({ data }) => data));
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Create a new payment type field card resource.
|
|
1486
|
+
*
|
|
1487
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The input parameters required for create a new payment type field card.
|
|
1488
|
+
* @return {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of create operation.
|
|
1489
|
+
*/
|
|
1490
|
+
postCountryPaymentTypeFieldCardType(body) {
|
|
1491
|
+
return this.http.post(`${this.url}/payment-type-field-card-types`, body)
|
|
1492
|
+
.pipe(map(({ data }) => data));
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Updates an existing payment type field card.
|
|
1496
|
+
*
|
|
1497
|
+
* @param {number} id - The ID of the payment type field card to update.
|
|
1498
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The updated data for the payment type field card.
|
|
1499
|
+
* @returns {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of the update operation.
|
|
1500
|
+
*/
|
|
1501
|
+
putCountryPaymentTypeFieldCardType(id, body) {
|
|
1502
|
+
return this.http.put(`${this.url}/payment-type-field-card-types/${id}`, body)
|
|
1503
|
+
.pipe(map(({ data }) => data));
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Fetches all payment type fields accounts.
|
|
1507
|
+
*
|
|
1508
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1509
|
+
* @return {Observable<PaymentTypeFieldAccountsOut>} An observable emitting the payment type fields accounts fetched from the server.
|
|
1510
|
+
*/
|
|
1511
|
+
getPaymentTypeFieldAccounts(params) {
|
|
1512
|
+
return this.http.get(`${this.url}/payment-type-field-accounts`, { params })
|
|
1513
|
+
.pipe(map(({ data }) => data));
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Create a new payment type field account resource.
|
|
1517
|
+
*
|
|
1518
|
+
* @param {PaymentTypeFieldAccountIn} body - The input parameters required for create a new payment type field account.
|
|
1519
|
+
* @return {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of create operation.
|
|
1520
|
+
*/
|
|
1521
|
+
postCountryPaymentTypeFieldAccount(body) {
|
|
1522
|
+
return this.http.post(`${this.url}/payment-type-field-accounts`, body)
|
|
1523
|
+
.pipe(map(({ data }) => data));
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Updates an existing payment type field account.
|
|
1527
|
+
*
|
|
1528
|
+
* @param {number} id - The ID of the payment type field account to update.
|
|
1529
|
+
* @param {PaymentTypeFieldAccountIn} body - The updated data for the payment type field account.
|
|
1530
|
+
* @returns {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of the update operation.
|
|
1531
|
+
*/
|
|
1532
|
+
putCountryPaymentTypeFieldAccount(id, body) {
|
|
1533
|
+
return this.http.put(`${this.url}/payment-type-field-accounts/${id}`, body)
|
|
1534
|
+
.pipe(map(({ data }) => data));
|
|
1535
|
+
}
|
|
1192
1536
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInvoicesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1193
1537
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
1194
1538
|
}
|
|
@@ -1677,6 +2021,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1677
2021
|
args: ['env']
|
|
1678
2022
|
}] }, { type: i1.HttpClient }] });
|
|
1679
2023
|
|
|
2024
|
+
var Event;
|
|
2025
|
+
(function (Event) {
|
|
2026
|
+
Event["damage"] = "damage";
|
|
2027
|
+
Event["lost"] = "lost";
|
|
2028
|
+
Event["rejected"] = "rejected";
|
|
2029
|
+
Event["return"] = "return ";
|
|
2030
|
+
})(Event || (Event = {}));
|
|
2031
|
+
var DefaultValueType;
|
|
2032
|
+
(function (DefaultValueType) {
|
|
2033
|
+
DefaultValueType["payment_type"] = "payment_type";
|
|
2034
|
+
DefaultValueType["currency_code"] = "currency_code";
|
|
2035
|
+
DefaultValueType["destination"] = "destination";
|
|
2036
|
+
DefaultValueType["payment_amount"] = "payment_amount";
|
|
2037
|
+
})(DefaultValueType || (DefaultValueType = {}));
|
|
2038
|
+
var AlphaNumeric;
|
|
2039
|
+
(function (AlphaNumeric) {
|
|
2040
|
+
AlphaNumeric["alpha_numeric"] = "alpha_numeric";
|
|
2041
|
+
AlphaNumeric["numeric"] = "numeric";
|
|
2042
|
+
AlphaNumeric["alphabetic"] = "alphabetic";
|
|
2043
|
+
AlphaNumeric["amount"] = "amount";
|
|
2044
|
+
})(AlphaNumeric || (AlphaNumeric = {}));
|
|
2045
|
+
|
|
1680
2046
|
class WebSocketsService {
|
|
1681
2047
|
environments;
|
|
1682
2048
|
pusher;
|
|
@@ -2033,5 +2399,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
2033
2399
|
* Generated bundle index. Do not edit.
|
|
2034
2400
|
*/
|
|
2035
2401
|
|
|
2036
|
-
export { ApiBillingDOService, ApiBillingMxService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiEToolsAutoBillingService, ApiExternalPickupsService, ApiInvoicesService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiShipmentsService, CryptoService, ENVIRONMENT_TOKEN, NgxServicesModule, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
2402
|
+
export { AlphaNumeric, ApiBillingDOService, ApiBillingMxService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiEToolsAutoBillingService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiShipmentsService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
2037
2403
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|