@luizleon/sf.prefeiturasp.vuecomponents 4.1.17 → 4.1.18
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/dist/index.d.ts +1 -2
- package/dist/sf.prefeiturasp.vuecomponents.cjs +44 -49
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +2858 -4570
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +44 -49
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/package.json +2 -7
- package/dist/http-client/apiClient.d.ts +0 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luizleon/sf.prefeiturasp.vuecomponents",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -13,14 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@noble/hashes": "1.5.0",
|
|
16
|
-
"air-datepicker": "3.3.1",
|
|
17
|
-
"axios": "1.7.4",
|
|
18
|
-
"date-fns": "2.29.3",
|
|
19
16
|
"dompurify": "3.1.6",
|
|
20
17
|
"jwt-decode": "4.0.0",
|
|
21
|
-
"
|
|
22
|
-
"sweetalert2": "11.4.8",
|
|
23
|
-
"vue-currency-input": "3.0.2"
|
|
18
|
+
"sweetalert2": "11.4.8"
|
|
24
19
|
},
|
|
25
20
|
"devDependencies": {
|
|
26
21
|
"@types/dompurify": "3.0.5",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosResponse, CreateAxiosDefaults, InternalAxiosRequestConfig } from 'axios';
|
|
2
|
-
import { AppResult } from '../common/appResult';
|
|
3
|
-
interface ApiClientOptions {
|
|
4
|
-
config?: CreateAxiosDefaults;
|
|
5
|
-
anonymous?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare class ApiClient {
|
|
8
|
-
constructor(options?: ApiClientOptions);
|
|
9
|
-
axios: AxiosInstance;
|
|
10
|
-
AccessTokenInterceptor(config: InternalAxiosRequestConfig<any>): Promise<InternalAxiosRequestConfig<any>>;
|
|
11
|
-
GetAsync<T>(url: string): Promise<AppResult<T>>;
|
|
12
|
-
PostAsync<T>(url: string, data: any): Promise<AppResult<T>>;
|
|
13
|
-
PutAsync<T>(url: string, data: any): Promise<AppResult<T>>;
|
|
14
|
-
DeleteAsync<T>(url: string): Promise<AppResult<T>>;
|
|
15
|
-
/**
|
|
16
|
-
* Usar após 'then' (httpStatuscode 2xx) para obter o resultado da requisição.
|
|
17
|
-
* @param r
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
HandleThen<T>(r: AxiosResponse<any, any>): AppResult<T>;
|
|
21
|
-
/**
|
|
22
|
-
* Usar após 'catch' (httpStatuscode 4xx ou 5xx) para obter o resultado da requisição.
|
|
23
|
-
* @param e
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
HandleCatch<T>(e: any): AppResult<T>;
|
|
27
|
-
private ParsedResponse;
|
|
28
|
-
}
|
|
29
|
-
declare const UseApiClient: (options?: ApiClientOptions) => ApiClient;
|
|
30
|
-
export { ApiClient, UseApiClient };
|