@experteam-mx/ngx-services 20.2.3-dev3.1 → 20.3.1-dev3.0
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.
|
@@ -59,6 +59,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
59
59
|
}]
|
|
60
60
|
}] });
|
|
61
61
|
|
|
62
|
+
class ApiBillingCOService {
|
|
63
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
64
|
+
http = inject(HttpClient);
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves the URL for the billing API.
|
|
67
|
+
* If the URL is not defined in the environments configuration, returns an empty string.
|
|
68
|
+
*
|
|
69
|
+
* @returns {string} The billing API URL or an empty string if not set.
|
|
70
|
+
*/
|
|
71
|
+
get url() {
|
|
72
|
+
return this.environments.apiBillingCO ?? '';
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves the information of a customer by its identifier.
|
|
76
|
+
*
|
|
77
|
+
* @param {number} id - Unique customer identifier.
|
|
78
|
+
* @returns {Observable<BillingCoCustomerOut>}
|
|
79
|
+
* Observable emitting the customer information.
|
|
80
|
+
*/
|
|
81
|
+
getCustomer(id) {
|
|
82
|
+
return this.http.get(`${this.url}/customer/${id}`)
|
|
83
|
+
.pipe(map(({ data }) => data));
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Creates a new customer.
|
|
87
|
+
*
|
|
88
|
+
* @param {BillingCOCustomerIn} body - Customer data to be created.
|
|
89
|
+
* @returns {Observable<BillingCoCustomerOut>}
|
|
90
|
+
* Observable emitting the created customer information.
|
|
91
|
+
*/
|
|
92
|
+
postCustomer(body) {
|
|
93
|
+
return this.http.post(`${this.url}/customer`, body)
|
|
94
|
+
.pipe(map(({ data }) => data));
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Retrieves the list of departments based on the provided query parameters.
|
|
98
|
+
*
|
|
99
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
100
|
+
* @returns {Observable<DepartmentCoOut>}
|
|
101
|
+
* Observable emitting the departments list.
|
|
102
|
+
*/
|
|
103
|
+
getDepartments(params) {
|
|
104
|
+
return this.http.get(`${this.url}/departments`, { params })
|
|
105
|
+
.pipe(map(({ data }) => data));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Retrieves the list of municipalities based on the provided query parameters.
|
|
109
|
+
*
|
|
110
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
111
|
+
* @returns {Observable<MunicipalityCoOut>}
|
|
112
|
+
* Observable emitting the municipalities list.
|
|
113
|
+
*/
|
|
114
|
+
getMunicipalities(params) {
|
|
115
|
+
return this.http.get(`${this.url}/municipalities`, { params })
|
|
116
|
+
.pipe(map(({ data }) => data));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves the list of postal codes based on the provided query parameters.
|
|
120
|
+
*
|
|
121
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
122
|
+
* @returns {Observable<PostalCodeCoOut>}
|
|
123
|
+
* Observable emitting the postal codes list.
|
|
124
|
+
*/
|
|
125
|
+
getPostalCodes(params) {
|
|
126
|
+
return this.http.get(`${this.url}/postal-codes`, { params })
|
|
127
|
+
.pipe(map(({ data }) => data));
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves the list of fiscal regimes based on the provided query parameters.
|
|
131
|
+
*
|
|
132
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
133
|
+
* @returns {Observable<FiscalRegimeCoOut>}
|
|
134
|
+
* Observable emitting the fiscal regimes list.
|
|
135
|
+
*/
|
|
136
|
+
getFiscalRegimes(params) {
|
|
137
|
+
return this.http.get(`${this.url}/fiscal-regimes`, { params })
|
|
138
|
+
.pipe(map(({ data }) => data));
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Retrieves the list of fiscal responsibilities based on the provided query parameters.
|
|
142
|
+
*
|
|
143
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
144
|
+
* @returns {Observable<FiscalResponsibilityCoOut>}
|
|
145
|
+
* Observable emitting the fiscal responsibilities list.
|
|
146
|
+
*/
|
|
147
|
+
getFiscalResponsibilities(params) {
|
|
148
|
+
return this.http.get(`${this.url}/fiscal-responsibilities`, { params })
|
|
149
|
+
.pipe(map(({ data }) => data));
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Retrieves the list of tributes based on the provided query parameters.
|
|
153
|
+
*
|
|
154
|
+
* @param {QueryParams} params - Query parameters used to filter or paginate the request.
|
|
155
|
+
* @returns {Observable<TributeCoOut>}
|
|
156
|
+
* Observable emitting the tributes list.
|
|
157
|
+
*/
|
|
158
|
+
getTributes(params) {
|
|
159
|
+
return this.http.get(`${this.url}/tributes`, { params })
|
|
160
|
+
.pipe(map(({ data }) => data));
|
|
161
|
+
}
|
|
162
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingCOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingCOService, providedIn: 'root' });
|
|
164
|
+
}
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiBillingCOService, decorators: [{
|
|
166
|
+
type: Injectable,
|
|
167
|
+
args: [{
|
|
168
|
+
providedIn: 'root'
|
|
169
|
+
}]
|
|
170
|
+
}] });
|
|
171
|
+
|
|
62
172
|
class ApiBillingDOService {
|
|
63
173
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
64
174
|
http = inject(HttpClient);
|
|
@@ -4498,7 +4608,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImpo
|
|
|
4498
4608
|
class ApiSurveysService {
|
|
4499
4609
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
4500
4610
|
http = inject(HttpClient);
|
|
4501
|
-
appKey = this.environments.apiSurveysKey ?? '';
|
|
4502
4611
|
/**
|
|
4503
4612
|
* Base URL for surveys API endpoints.
|
|
4504
4613
|
* @returns The configured surveys API URL or an empty string.
|
|
@@ -4506,9 +4615,6 @@ class ApiSurveysService {
|
|
|
4506
4615
|
get url() {
|
|
4507
4616
|
return this.environments.apiSurveysUrl ?? '';
|
|
4508
4617
|
}
|
|
4509
|
-
appKeyHeader() {
|
|
4510
|
-
return { ...(this.appKey && { AppKey: this.appKey }) };
|
|
4511
|
-
}
|
|
4512
4618
|
/**
|
|
4513
4619
|
* Retrieves surveys list based on query parameters.
|
|
4514
4620
|
* @param params Query parameters used to filter, paginate, or sort surveys.
|
|
@@ -4596,38 +4702,6 @@ class ApiSurveysService {
|
|
|
4596
4702
|
return this.http.get(`${this.url}/question-types`, { params })
|
|
4597
4703
|
.pipe(map(({ data }) => data));
|
|
4598
4704
|
}
|
|
4599
|
-
/**
|
|
4600
|
-
* Retrieves a customer survey by UUID.
|
|
4601
|
-
* @param uuid Customer survey identifier.
|
|
4602
|
-
* @returns Observable stream with customer survey data.
|
|
4603
|
-
*/
|
|
4604
|
-
getCustomerSurvey(uuid) {
|
|
4605
|
-
return this.http.get(`${this.url}/customer-surveys/${uuid}`, {
|
|
4606
|
-
headers: this.appKeyHeader(),
|
|
4607
|
-
}).pipe(map(({ data }) => data));
|
|
4608
|
-
}
|
|
4609
|
-
/**
|
|
4610
|
-
* Updates an existing customer survey by UUID.
|
|
4611
|
-
* @param uuid Customer survey identifier.
|
|
4612
|
-
* @param body Customer survey payload used to update the resource.
|
|
4613
|
-
* @returns Observable stream with updated customer survey data.
|
|
4614
|
-
*/
|
|
4615
|
-
putCustomerSurvey(uuid, body) {
|
|
4616
|
-
return this.http.put(`${this.url}/customer-surveys/${uuid}`, body, {
|
|
4617
|
-
headers: this.appKeyHeader(),
|
|
4618
|
-
}).pipe(map(({ data }) => data));
|
|
4619
|
-
}
|
|
4620
|
-
/**
|
|
4621
|
-
* Marks a customer survey as finished by UUID.
|
|
4622
|
-
* @param uuid Customer survey identifier.
|
|
4623
|
-
* @param body Customer survey finish payload.
|
|
4624
|
-
* @returns Observable stream with updated customer survey data.
|
|
4625
|
-
*/
|
|
4626
|
-
postCustomerSurveyFinish(uuid, body) {
|
|
4627
|
-
return this.http.post(`${this.url}/customer-surveys/${uuid}/finish`, body, {
|
|
4628
|
-
headers: this.appKeyHeader(),
|
|
4629
|
-
}).pipe(map(({ data }) => data));
|
|
4630
|
-
}
|
|
4631
4705
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSurveysService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4632
4706
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: ApiSurveysService, providedIn: 'root' });
|
|
4633
4707
|
}
|
|
@@ -5091,5 +5165,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5091
5165
|
* Generated bundle index. Do not edit.
|
|
5092
5166
|
*/
|
|
5093
5167
|
|
|
5094
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5168
|
+
export { AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5095
5169
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|