auto-vue-manual 0.1.7 → 0.1.8

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.
@@ -8,6 +8,9 @@ export type DefaultApiMethods<T> = {
8
8
  export type CustomApiMethods<T extends Record<string, string>> = {
9
9
  [K in keyof T]: ApiMethod;
10
10
  };
11
+ export type DefaultApiUrls<T> = {
12
+ [K in keyof T]: string;
13
+ };
11
14
  export interface DefaultApiConfig {
12
15
  [DEFAULT_PAGE_KEY]: string;
13
16
  [DEFAULT_INFO_KEY]: string;
@@ -19,13 +22,13 @@ export interface DefaultApiConfig {
19
22
  [DEFAULT_STATUS_KEY]: string;
20
23
  [DEFAULT_REMOVE_KEY]: string;
21
24
  }
22
- export interface AutoApiBase {
25
+ export interface AutoApiBase<T extends Record<string, string>> {
23
26
  requesting: string[];
24
27
  executing: string[];
25
- urls: Record<string, string>;
28
+ urls: DefaultApiUrls<T>;
26
29
  primaryKey: string;
27
30
  }
28
- export type AutoApi<O extends Record<string, string> = {}, T extends Record<string, string> = {}> = DefaultApiMethods<DefaultApiConfig> & CustomApiMethods<O> & CustomApiMethods<T> & AutoApiBase;
31
+ export type AutoApi<O extends Record<string, string> = {}, T extends Record<string, string> = {}> = DefaultApiMethods<DefaultApiConfig> & CustomApiMethods<O> & CustomApiMethods<T> & AutoApiBase<DefaultApiConfig & O & T>;
29
32
  export type Request = (url: string, params?: any, method?: Method, contentType?: string, responseType?: ResponseType) => AxiosPromise;
30
33
  export declare type Response = {
31
34
  code: number;
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const __VERSION__ = "0.1.6'
1
+ export const __VERSION__ = "0.1.7'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-vue-manual",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "main": "./dist/auto-vue-manual.umd.js",
6
6
  "module": "./dist/auto-vue-manual.es.js",