@experteam-mx/ngx-services 20.3.1-dev3.1 → 20.3.1
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/fesm2022/experteam-mx-ngx-services.mjs +63 -111
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +113 -206
- package/package.json +1 -1
|
@@ -59,116 +59,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", 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<CoCustomerOut>}
|
|
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 {CoCustomerIn} body - Customer data to be created.
|
|
89
|
-
* @returns {Observable<CoCustomerOut>}
|
|
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<CoDepartmentsOut>}
|
|
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<CoMunicipalitiesOut>}
|
|
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<CoPostalCodesOut>}
|
|
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<CoFiscalRegimesOut>}
|
|
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<CoFiscalResponsibilitiesOut>}
|
|
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<CoTributesOut>}
|
|
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.21", ngImport: i0, type: ApiBillingCOService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
163
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingCOService, providedIn: 'root' });
|
|
164
|
-
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiBillingCOService, decorators: [{
|
|
166
|
-
type: Injectable,
|
|
167
|
-
args: [{
|
|
168
|
-
providedIn: 'root'
|
|
169
|
-
}]
|
|
170
|
-
}] });
|
|
171
|
-
|
|
172
62
|
class ApiBillingDOService {
|
|
173
63
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
174
64
|
http = inject(HttpClient);
|
|
@@ -3094,6 +2984,59 @@ class ApiInventoriesService {
|
|
|
3094
2984
|
putReEntryOfMissingPackages(body) {
|
|
3095
2985
|
return this.http.put(`${this.url}/re-entry-of-missing-packages`, body).pipe(map(({ data }) => data));
|
|
3096
2986
|
}
|
|
2987
|
+
/**
|
|
2988
|
+
* Fetches the packages details based on the provided operation check out ID.
|
|
2989
|
+
*
|
|
2990
|
+
* @param {number} id - The operation check out id
|
|
2991
|
+
* @return {Observable<CourierCheckOutPackesOut>} An observable that emits the packages data.
|
|
2992
|
+
*/
|
|
2993
|
+
getCourierCheckOutPackages(id) {
|
|
2994
|
+
return this.http.get(`${this.url}/courier-check-out/packages/${id}`)
|
|
2995
|
+
.pipe(map(({ data }) => data));
|
|
2996
|
+
}
|
|
2997
|
+
/**
|
|
2998
|
+
* Fetches the statuses based on query parameters.
|
|
2999
|
+
*
|
|
3000
|
+
* @param {QueryParams} params - The query parameters for filtering the statuses.
|
|
3001
|
+
* @return {Observable<StatusesOut>} An observable that emits the statuses.
|
|
3002
|
+
*/
|
|
3003
|
+
getStatuses(params) {
|
|
3004
|
+
return this.http.get(`${this.url}/statuses`, {
|
|
3005
|
+
params
|
|
3006
|
+
}).pipe(map(({ data }) => data));
|
|
3007
|
+
}
|
|
3008
|
+
/**
|
|
3009
|
+
* Fetches the operation types based on query parameters.
|
|
3010
|
+
*
|
|
3011
|
+
* @param {QueryParams} params - The query parameters for filtering the operation types.
|
|
3012
|
+
* @return {Observable<OperationTypesInventoryOut>} An observable that emits the operation types.
|
|
3013
|
+
*/
|
|
3014
|
+
getOperationTypes(params) {
|
|
3015
|
+
return this.http.get(`${this.url}/operation-types`, {
|
|
3016
|
+
params
|
|
3017
|
+
}).pipe(map(({ data }) => data));
|
|
3018
|
+
}
|
|
3019
|
+
/**
|
|
3020
|
+
* Fetches the package in stock details based on query parameters.
|
|
3021
|
+
*
|
|
3022
|
+
* @param {QueryParams} params - The query parameters for get the package in stock.
|
|
3023
|
+
* @return {Observable<PackageInStockDetailOut>} An observable that emits the package detail in stock.
|
|
3024
|
+
*/
|
|
3025
|
+
getPackageInStockDetail(params) {
|
|
3026
|
+
return this.http.get(`${this.url}/packages/in-stock-detail`, {
|
|
3027
|
+
params
|
|
3028
|
+
}).pipe(map(({ data }) => data));
|
|
3029
|
+
}
|
|
3030
|
+
/**
|
|
3031
|
+
* Fetches the packages details based on the provided operation stock update ID.
|
|
3032
|
+
*
|
|
3033
|
+
* @param {number} id - The operation stock update id
|
|
3034
|
+
* @return {Observable<StockUpdatePackagesOut>} An observable that emits the packages data.
|
|
3035
|
+
*/
|
|
3036
|
+
getStockUpdatePackages(id) {
|
|
3037
|
+
return this.http.get(`${this.url}/stock-update/packages/${id}`)
|
|
3038
|
+
.pipe(map(({ data }) => data));
|
|
3039
|
+
}
|
|
3097
3040
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3098
3041
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
|
|
3099
3042
|
}
|
|
@@ -4785,6 +4728,15 @@ var AlphaNumeric;
|
|
|
4785
4728
|
AlphaNumeric["alphabetic"] = "alphabetic";
|
|
4786
4729
|
AlphaNumeric["amount"] = "amount";
|
|
4787
4730
|
})(AlphaNumeric || (AlphaNumeric = {}));
|
|
4731
|
+
var Group;
|
|
4732
|
+
(function (Group) {
|
|
4733
|
+
Group["check_in"] = "check_in";
|
|
4734
|
+
Group["check_out"] = "check_out";
|
|
4735
|
+
Group["movement"] = "movement";
|
|
4736
|
+
Group["incident"] = "incident";
|
|
4737
|
+
Group["expiration"] = "expiration";
|
|
4738
|
+
Group["verification"] = "verification";
|
|
4739
|
+
})(Group || (Group = {}));
|
|
4788
4740
|
|
|
4789
4741
|
class WebSocketsService {
|
|
4790
4742
|
pusher;
|
|
@@ -5201,5 +5153,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5201
5153
|
* Generated bundle index. Do not edit.
|
|
5202
5154
|
*/
|
|
5203
5155
|
|
|
5204
|
-
export { AlphaNumeric,
|
|
5156
|
+
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, Group, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiKeyInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5205
5157
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|