@experteam-mx/ngx-services 18.7.15 → 18.7.16
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-billing-do.service.mjs +1 -1
- package/esm2022/lib/apis/api-billing-mx.service.mjs +1 -1
- package/esm2022/lib/apis/api-discounts.service.mjs +23 -2
- 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-discounts.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-discounts.types.mjs +1 -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/ngx-services.models.mjs +1 -1
- package/esm2022/public-api.mjs +5 -2
- package/fesm2022/experteam-mx-ngx-services.mjs +22 -1
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-billing-do.service.d.ts +1 -1
- package/lib/apis/api-billing-mx.service.d.ts +1 -1
- package/lib/apis/api-discounts.service.d.ts +16 -1
- 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.types.d.ts → api-billing-mx.types.d.ts} +1 -5
- package/lib/apis/models/api-discounts.interfaces.d.ts +7 -3
- package/lib/apis/models/api-discounts.types.d.ts +8 -2
- package/lib/apis/models/api-invoices.interfaces.d.ts +15 -0
- package/lib/apis/models/api-invoices.types.d.ts +1 -2
- package/lib/ngx-services.models.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
- package/esm2022/lib/apis/models/api-billing.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing.types.mjs +0 -2
- package/lib/apis/models/api-billing.interfaces.d.ts +0 -41
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Environment } from '../ngx-services.models';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { IncomeTypesOut } from './models/api-billing.types';
|
|
4
|
+
import { IncomeTypesOut } from './models/api-billing-do.types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ApiBillingDOService {
|
|
7
7
|
private environments;
|
|
@@ -2,7 +2,7 @@ import { Environment } from '../ngx-services.models';
|
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { QueryParams } from './models/api.models';
|
|
5
|
-
import { FiscalRegimensAcceptedOut, FiscalRegimensOut, PostalCodesOut } from './models/api-billing.types';
|
|
5
|
+
import { FiscalRegimensAcceptedOut, FiscalRegimensOut, PostalCodesOut } from './models/api-billing-mx.types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiBillingMxService {
|
|
8
8
|
private environments;
|
|
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Environment } from '../ngx-services.models';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { QueryParams } from './models/api.models';
|
|
5
|
-
import { CustomerRestrictionIn, CustomerRestrictionOut, CustomerRestrictionsOut, DiscountIn, DiscountOut, DiscountsOut, LoyaltyPeriodIn, LoyaltyPeriodOut, LoyaltyPeriodsOut, LoyaltyRuleIn, LoyaltyRuleOut, LoyaltyRulesOut, OperationsLoadTopCustomerV2In, TopCustomersOut } from './models/api-discounts.types';
|
|
5
|
+
import { CustomerRestrictionIn, CustomerRestrictionInV2, CustomerRestrictionOut, CustomerRestrictionsOut, DiscountIn, DiscountOut, DiscountsOut, LoyaltyPeriodIn, LoyaltyPeriodOut, LoyaltyPeriodsOut, LoyaltyRuleIn, LoyaltyRuleOut, LoyaltyRulesOut, OperationsLoadTopCustomerV2In, TopCustomersOut } from './models/api-discounts.types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiDiscountsService {
|
|
8
8
|
private environments;
|
|
@@ -147,6 +147,21 @@ export declare class ApiDiscountsService {
|
|
|
147
147
|
* @return {Observable<{}>} An Observable that emits the result of the deletion operation.
|
|
148
148
|
*/
|
|
149
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>;
|
|
150
165
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiDiscountsService, never>;
|
|
151
166
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiDiscountsService>;
|
|
152
167
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LaravelModel } from './api.models';
|
|
2
|
+
export interface CFDI extends LaravelModel {
|
|
3
|
+
code: string;
|
|
4
|
+
description: string;
|
|
5
|
+
fiscal_regimen_receptor: string;
|
|
6
|
+
moral_person: string;
|
|
7
|
+
physical_person: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FiscalRegimen extends LaravelModel {
|
|
10
|
+
code: string;
|
|
11
|
+
description: string;
|
|
12
|
+
moral_person: string;
|
|
13
|
+
physical_person: string;
|
|
14
|
+
}
|
|
15
|
+
export interface PostalCodeBillings extends LaravelModel {
|
|
16
|
+
city: string;
|
|
17
|
+
municipality: string;
|
|
18
|
+
state: string;
|
|
19
|
+
suburb: string;
|
|
20
|
+
postal_code_number: string;
|
|
21
|
+
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { CFDI, FiscalRegimen,
|
|
1
|
+
import { CFDI, FiscalRegimen, PostalCodeBillings } from './api-billing-mx.interfaces';
|
|
2
2
|
export type FiscalRegimensAcceptedOut = {
|
|
3
3
|
total: number;
|
|
4
4
|
cfdi_use: CFDI[];
|
|
5
5
|
};
|
|
6
|
-
export type IncomeTypesOut = {
|
|
7
|
-
income_types: IncomeType[];
|
|
8
|
-
total: number;
|
|
9
|
-
};
|
|
10
6
|
export type FiscalRegimensOut = {
|
|
11
7
|
total: number;
|
|
12
8
|
fiscal_regimen: FiscalRegimen[];
|
|
@@ -67,8 +67,12 @@ export interface LoyaltyRule extends LaravelModel {
|
|
|
67
67
|
valid_until: string;
|
|
68
68
|
}
|
|
69
69
|
export interface CustomerRestriction extends ActiveLessLaravelModel {
|
|
70
|
-
identification_type_id
|
|
71
|
-
identification_number
|
|
70
|
+
identification_type_id?: number;
|
|
71
|
+
identification_number?: string;
|
|
72
72
|
company_country_id: number;
|
|
73
|
-
identificationType
|
|
73
|
+
identificationType?: IdentificationType;
|
|
74
|
+
email?: string;
|
|
75
|
+
phone_number?: string;
|
|
76
|
+
phone_code?: string;
|
|
77
|
+
phone_country_code?: string;
|
|
74
78
|
}
|
|
@@ -74,10 +74,16 @@ export type CustomerRestrictionsOut = {
|
|
|
74
74
|
total: number;
|
|
75
75
|
};
|
|
76
76
|
export type CustomerRestrictionIn = {
|
|
77
|
-
identification_type_id
|
|
78
|
-
identification_number
|
|
77
|
+
identification_type_id?: number;
|
|
78
|
+
identification_number?: string;
|
|
79
79
|
company_country_id: number;
|
|
80
80
|
};
|
|
81
|
+
export type CustomerRestrictionInV2 = CustomerRestrictionIn & {
|
|
82
|
+
email?: string;
|
|
83
|
+
phone_number?: string;
|
|
84
|
+
phone_code?: string;
|
|
85
|
+
phone_country_code?: string;
|
|
86
|
+
};
|
|
81
87
|
export type CustomerRestrictionOut = {
|
|
82
88
|
customer_restriction: CustomerRestriction;
|
|
83
89
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LaravelModel, Translations } from './api.models';
|
|
2
2
|
import { Currency, IdentificationType } from './api-catalog.interfaces';
|
|
3
|
+
import { DocumentCategory } from './api-reports.interfaces';
|
|
3
4
|
export interface Document extends LaravelModel {
|
|
4
5
|
document_type_range_id: number;
|
|
5
6
|
document_number: number;
|
|
@@ -215,3 +216,17 @@ export interface Tolerance extends LaravelModel {
|
|
|
215
216
|
max_amount: number;
|
|
216
217
|
tolerance: number;
|
|
217
218
|
}
|
|
219
|
+
export interface CustomerCountryDocumentType extends LaravelModel {
|
|
220
|
+
identification_type_customer_type_id: number;
|
|
221
|
+
country_document_type_id: number;
|
|
222
|
+
country_document_type: CountryDocumentType;
|
|
223
|
+
}
|
|
224
|
+
export interface CountryDocumentType extends LaravelModel {
|
|
225
|
+
document_type_id: number;
|
|
226
|
+
document_category_id: number;
|
|
227
|
+
country_id: number;
|
|
228
|
+
associated_payment: boolean;
|
|
229
|
+
name: string;
|
|
230
|
+
document_type: DocumentType;
|
|
231
|
+
document_category: DocumentCategory;
|
|
232
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerType, Document, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType, Tolerance } from './api-invoices.interfaces';
|
|
2
|
-
import { CustomerCountryDocumentType } from './api-billing.interfaces';
|
|
1
|
+
import { CountryPaymentType, CountryPaymentTypeField, Customer, CustomerCountryDocumentType, CustomerType, Document, PaymentType, PaymentTypeFieldAccount, PaymentTypeFieldCardType, Tolerance } from './api-invoices.interfaces';
|
|
3
2
|
export interface OperationAccountPaymentIn {
|
|
4
3
|
document_type_range_id: number | null;
|
|
5
4
|
document_number: string | null;
|
|
@@ -22,7 +22,7 @@ export type Environment = {
|
|
|
22
22
|
apiCatalogsUrl?: string;
|
|
23
23
|
apiCompaniesUrl?: string;
|
|
24
24
|
apiCompositionUrl?: string;
|
|
25
|
-
|
|
25
|
+
apiDiscountsUrl?: string;
|
|
26
26
|
apiEToolsAutoBilling?: string;
|
|
27
27
|
apiExternalOperationsKey?: string;
|
|
28
28
|
apiExternalOperationsUrl?: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -19,9 +19,12 @@ export * from './lib/apis/api-security.service';
|
|
|
19
19
|
export * from './lib/apis/api-services.service';
|
|
20
20
|
export * from './lib/apis/api-shipments.service';
|
|
21
21
|
export * from './lib/apis/api-supplies.service';
|
|
22
|
+
export * from './lib/apis/models/api-billing-do.interfaces';
|
|
23
|
+
export * from './lib/apis/models/api-billing-do.types';
|
|
24
|
+
export * from './lib/apis/models/api-billing-mx.interfaces';
|
|
25
|
+
export * from './lib/apis/models/api-billing-mx.types';
|
|
22
26
|
export * from './lib/apis/models/api-billing-pa.interfaces';
|
|
23
27
|
export * from './lib/apis/models/api-billing-pa.types';
|
|
24
|
-
export * from './lib/apis/models/api-billing.types';
|
|
25
28
|
export * from './lib/apis/models/api-cash-operations.interfaces';
|
|
26
29
|
export * from './lib/apis/models/api-cash-operations.types';
|
|
27
30
|
export * from './lib/apis/models/api-catalog.interfaces';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWJpbGxpbmcuaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3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bmd4LXNlcnZpY2VzL3NyYy9saWIvYXBpcy9tb2RlbHMvYXBpLWJpbGxpbmcudHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENGREksIEZpc2NhbFJlZ2ltZW4sIEluY29tZVR5cGUsIFBvc3RhbENvZGVCaWxsaW5ncyB9IGZyb20gJy4vYXBpLWJpbGxpbmcuaW50ZXJmYWNlcydcclxuXHJcbmV4cG9ydCB0eXBlIEZpc2NhbFJlZ2ltZW5zQWNjZXB0ZWRPdXQgPSB7XHJcbiAgdG90YWw6IG51bWJlclxyXG4gIGNmZGlfdXNlOiBDRkRJW11cclxufVxyXG5cclxuZXhwb3J0IHR5cGUgSW5jb21lVHlwZXNPdXQgPSB7XHJcbiAgaW5jb21lX3R5cGVzOiBJbmNvbWVUeXBlW11cclxuICB0b3RhbDogbnVtYmVyXHJcbn1cclxuXHJcbmV4cG9ydCB0eXBlIEZpc2NhbFJlZ2ltZW5zT3V0ID0ge1xyXG4gIHRvdGFsOiBudW1iZXJcclxuICBmaXNjYWxfcmVnaW1lbjogRmlzY2FsUmVnaW1lbltdXHJcbn1cclxuXHJcbmV4cG9ydCB0eXBlIFBvc3RhbENvZGVzT3V0ID0ge1xyXG4gIHBvc3RhbF9jb2RlOiBQb3N0YWxDb2RlQmlsbGluZ3NbXVxyXG4gIHRvdGFsOiBudW1iZXJcclxufVxyXG4iXX0=
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { LaravelModel } from './api.models';
|
|
2
|
-
import { DocumentCategory } from './api-reports.interfaces';
|
|
3
|
-
export interface CFDI extends LaravelModel {
|
|
4
|
-
code: string;
|
|
5
|
-
description: string;
|
|
6
|
-
fiscal_regimen_receptor: string;
|
|
7
|
-
moral_person: string;
|
|
8
|
-
physical_person: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IncomeType extends LaravelModel {
|
|
11
|
-
code: string;
|
|
12
|
-
name: string;
|
|
13
|
-
billing_code: string;
|
|
14
|
-
}
|
|
15
|
-
export interface FiscalRegimen extends LaravelModel {
|
|
16
|
-
code: string;
|
|
17
|
-
description: string;
|
|
18
|
-
moral_person: string;
|
|
19
|
-
physical_person: string;
|
|
20
|
-
}
|
|
21
|
-
export interface PostalCodeBillings extends LaravelModel {
|
|
22
|
-
city: string;
|
|
23
|
-
municipality: string;
|
|
24
|
-
state: string;
|
|
25
|
-
suburb: string;
|
|
26
|
-
postal_code_number: string;
|
|
27
|
-
}
|
|
28
|
-
export interface CustomerCountryDocumentType extends LaravelModel {
|
|
29
|
-
identification_type_customer_type_id: number;
|
|
30
|
-
country_document_type_id: number;
|
|
31
|
-
country_document_type: CountryDocumentType;
|
|
32
|
-
}
|
|
33
|
-
export interface CountryDocumentType extends LaravelModel {
|
|
34
|
-
document_type_id: number;
|
|
35
|
-
document_category_id: number;
|
|
36
|
-
country_id: number;
|
|
37
|
-
associated_payment: boolean;
|
|
38
|
-
name: string;
|
|
39
|
-
document_type: DocumentType;
|
|
40
|
-
document_category: DocumentCategory;
|
|
41
|
-
}
|