@experteam-mx/ngx-services 18.5.5 → 18.5.7
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-invoices.service.mjs +155 -1
- package/esm2022/lib/apis/api-reports.service.mjs +12 -1
- 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/apis/models/api-reports.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +165 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-invoices.service.d.ts +110 -1
- package/lib/apis/api-reports.service.d.ts +8 -1
- package/lib/apis/models/api-invoices.interfaces.d.ts +46 -1
- package/lib/apis/models/api-invoices.types.d.ts +66 -1
- package/lib/apis/models/api-reports.interfaces.d.ts +25 -0
- package/lib/apis/models/api-reports.types.d.ts +7 -1
- package/package.json +1 -1
|
@@ -1189,6 +1189,160 @@ class ApiInvoicesService {
|
|
|
1189
1189
|
return this.http.get(`${this.url}/operation/print/document/${documentId}`)
|
|
1190
1190
|
.pipe(map(({ data }) => data));
|
|
1191
1191
|
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Fetches all country payment types.
|
|
1194
|
+
*
|
|
1195
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1196
|
+
* @return {Observable<CountryPaymentTypesOut>} An observable emitting the country payment types fetched from the server.
|
|
1197
|
+
*/
|
|
1198
|
+
getCountryPaymentTypes(params) {
|
|
1199
|
+
return this.http.get(`${this.url}/country-payment-types`, { params })
|
|
1200
|
+
.pipe(map(({ data }) => data));
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Updates an existing country payment type.
|
|
1204
|
+
*
|
|
1205
|
+
* @param {number} id - The ID of the country payment type to update.
|
|
1206
|
+
* @param {CountryPaymentTypeIn} body - The updated data for the country payment type.
|
|
1207
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the update operation.
|
|
1208
|
+
*/
|
|
1209
|
+
putCountryPaymentType(id, body) {
|
|
1210
|
+
return this.http.put(`${this.url}/country-payment-types/${id}`, body)
|
|
1211
|
+
.pipe(map(({ data }) => data));
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* Delete an existing country payment type.
|
|
1215
|
+
*
|
|
1216
|
+
* @param {number} id - The unique identifier of the country payment type to be deleted.
|
|
1217
|
+
* @returns {Observable<CountryPaymentTypeOut>} An observable that emits the result of the delete operation.
|
|
1218
|
+
*/
|
|
1219
|
+
deleteCountryPaymentType(id) {
|
|
1220
|
+
return this.http.delete(`${this.url}/country-payment-types/${id}`)
|
|
1221
|
+
.pipe(map(({ data }) => data));
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Create a new country payment type resource.
|
|
1225
|
+
*
|
|
1226
|
+
* @param {CountryPaymentTypeIn} body - The input parameters required for create a new country payment type.
|
|
1227
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of create operation.
|
|
1228
|
+
*/
|
|
1229
|
+
postCountryPaymentType(body) {
|
|
1230
|
+
return this.http.post(`${this.url}/country-payment-types`, body)
|
|
1231
|
+
.pipe(map(({ data }) => data));
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Retrieves and returns a country payment type for a given ID.
|
|
1235
|
+
*
|
|
1236
|
+
* @param {number} id - The ID of the country payment type.
|
|
1237
|
+
* @return {Observable<CountryPaymentTypeOut>} An observable that emits the result of show operation.
|
|
1238
|
+
*/
|
|
1239
|
+
getCountryPaymentType(id) {
|
|
1240
|
+
return this.http.get(`${this.url}/country-payment-types/${id}`)
|
|
1241
|
+
.pipe(map(({ data }) => data));
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Fetches all country payment type fields.
|
|
1245
|
+
*
|
|
1246
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1247
|
+
* @return {Observable<CountryPaymentTypeFieldsOut>} An observable emitting the country payment type fields fetched from the server.
|
|
1248
|
+
*/
|
|
1249
|
+
getCountryPaymentTypeFields(params) {
|
|
1250
|
+
return this.http.get(`${this.url}/country-payment-type-fields`, { params })
|
|
1251
|
+
.pipe(map(({ data }) => data));
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Create a new country payment type field resource.
|
|
1255
|
+
*
|
|
1256
|
+
* @param {CountryPaymentTypeFieldIn} body - The input parameters required for create a new country payment type field.
|
|
1257
|
+
* @return {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of create operation.
|
|
1258
|
+
*/
|
|
1259
|
+
postCountryPaymentTypeField(body) {
|
|
1260
|
+
return this.http.post(`${this.url}/country-payment-type-fields`, body)
|
|
1261
|
+
.pipe(map(({ data }) => data));
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Updates an existing country payment type field.
|
|
1265
|
+
*
|
|
1266
|
+
* @param {number} id - The ID of the country payment type field to update.
|
|
1267
|
+
* @param {CountryPaymentTypeFieldIn} body - The updated data for the country payment type field.
|
|
1268
|
+
* @returns {Observable<CountryPaymentTypeFieldOut>} An observable that emits the result of the update operation.
|
|
1269
|
+
*/
|
|
1270
|
+
putCountryPaymentTypeField(id, body) {
|
|
1271
|
+
return this.http.put(`${this.url}/country-payment-type-fields/${id}`, body)
|
|
1272
|
+
.pipe(map(({ data }) => data));
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* Fetches all payment types.
|
|
1276
|
+
*
|
|
1277
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1278
|
+
* @return {Observable<PaymentTypesOut>} An observable emitting the payment types fetched from the server.
|
|
1279
|
+
*/
|
|
1280
|
+
getPaymentTypes(params) {
|
|
1281
|
+
return this.http.get(`${this.url}/payment-types`, { params })
|
|
1282
|
+
.pipe(map(({ data }) => data));
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Fetches all payment type fields card.
|
|
1286
|
+
*
|
|
1287
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1288
|
+
* @return {Observable<PaymentTypeFieldCardTypesOut>} An observable emitting the payment type fields card fetched from the server.
|
|
1289
|
+
*/
|
|
1290
|
+
getPaymentTypeFieldCardTypes(params) {
|
|
1291
|
+
return this.http.get(`${this.url}/payment-type-field-card-types`, { params })
|
|
1292
|
+
.pipe(map(({ data }) => data));
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Create a new payment type field card resource.
|
|
1296
|
+
*
|
|
1297
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The input parameters required for create a new payment type field card.
|
|
1298
|
+
* @return {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of create operation.
|
|
1299
|
+
*/
|
|
1300
|
+
postCountryPaymentTypeFieldCardType(body) {
|
|
1301
|
+
return this.http.post(`${this.url}/payment-type-field-card-types`, body)
|
|
1302
|
+
.pipe(map(({ data }) => data));
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Updates an existing payment type field card.
|
|
1306
|
+
*
|
|
1307
|
+
* @param {number} id - The ID of the payment type field card to update.
|
|
1308
|
+
* @param {PaymentTypeFieldCardTypeIn} body - The updated data for the payment type field card.
|
|
1309
|
+
* @returns {Observable<PaymentTypeFieldCardTypeOut>} An observable that emits the result of the update operation.
|
|
1310
|
+
*/
|
|
1311
|
+
putCountryPaymentTypeFieldCardType(id, body) {
|
|
1312
|
+
return this.http.put(`${this.url}/payment-type-field-card-types/${id}`, body)
|
|
1313
|
+
.pipe(map(({ data }) => data));
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Fetches all payment type fields accounts.
|
|
1317
|
+
*
|
|
1318
|
+
* @param {QueryParams} params - Query parameters to filter or customize the request.
|
|
1319
|
+
* @return {Observable<PaymentTypeFieldAccountsOut>} An observable emitting the payment type fields accounts fetched from the server.
|
|
1320
|
+
*/
|
|
1321
|
+
getPaymentTypeFieldAccounts(params) {
|
|
1322
|
+
return this.http.get(`${this.url}/payment-type-field-accounts`, { params })
|
|
1323
|
+
.pipe(map(({ data }) => data));
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Create a new payment type field account resource.
|
|
1327
|
+
*
|
|
1328
|
+
* @param {PaymentTypeFieldAccountIn} body - The input parameters required for create a new payment type field account.
|
|
1329
|
+
* @return {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of create operation.
|
|
1330
|
+
*/
|
|
1331
|
+
postCountryPaymentTypeFieldAccount(body) {
|
|
1332
|
+
return this.http.post(`${this.url}/payment-type-field-accounts`, body)
|
|
1333
|
+
.pipe(map(({ data }) => data));
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Updates an existing payment type field account.
|
|
1337
|
+
*
|
|
1338
|
+
* @param {number} id - The ID of the payment type field account to update.
|
|
1339
|
+
* @param {PaymentTypeFieldAccountIn} body - The updated data for the payment type field account.
|
|
1340
|
+
* @returns {Observable<PaymentTypeFieldAccountOut>} An observable that emits the result of the update operation.
|
|
1341
|
+
*/
|
|
1342
|
+
putCountryPaymentTypeFieldAccount(id, body) {
|
|
1343
|
+
return this.http.put(`${this.url}/payment-type-field-accounts/${id}`, body)
|
|
1344
|
+
.pipe(map(({ data }) => data));
|
|
1345
|
+
}
|
|
1192
1346
|
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
1347
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiInvoicesService, providedIn: 'root' });
|
|
1194
1348
|
}
|
|
@@ -1342,6 +1496,17 @@ class ApiReportsService {
|
|
|
1342
1496
|
return this.http.get(`${this.url}/external-shipments-report`, { params })
|
|
1343
1497
|
.pipe(map(({ data }) => data));
|
|
1344
1498
|
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Retrieves a report of promotion code discounts based on the provided query parameters.
|
|
1501
|
+
*
|
|
1502
|
+
* @param {QueryParams} params - An object representing the query parameters for filtering the promotion code discounts report.
|
|
1503
|
+
* @return {Observable<PromotionCodeDiscountsOut>} An observable that emits the promotion code discounts report data.
|
|
1504
|
+
*/
|
|
1505
|
+
getPromotionCodeDiscounts(params) {
|
|
1506
|
+
return this.http.get(`${this.url}/promotion-code-discounts`, {
|
|
1507
|
+
params
|
|
1508
|
+
}).pipe(map(({ data }) => data));
|
|
1509
|
+
}
|
|
1345
1510
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiReportsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1346
1511
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiReportsService, providedIn: 'root' });
|
|
1347
1512
|
}
|