@devtable/settings-form 5.5.0 → 5.6.0-alpha

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.
@@ -2,6 +2,9 @@ import { IAPIKey } from './api-key.typed';
2
2
  import { PaginationResponse } from './types';
3
3
  export declare const api_key: {
4
4
  list: () => Promise<PaginationResponse<IAPIKey>>;
5
- create: (name: string, role_id: number, domain: string) => Promise<string>;
5
+ create: (name: string, role_id: number) => Promise<{
6
+ app_id: string;
7
+ app_secret: string;
8
+ }>;
6
9
  delete: (id: string) => Promise<void>;
7
10
  };
@@ -2,5 +2,6 @@ export interface IAPIKey {
2
2
  id: string;
3
3
  name: string;
4
4
  role_id: number;
5
- domain: string;
5
+ app_id: string;
6
+ app_secret: string;
6
7
  }
@@ -19,7 +19,10 @@ export declare const APICaller: {
19
19
  };
20
20
  api_key: {
21
21
  list: () => Promise<import("./types").PaginationResponse<import("./api-key.typed").IAPIKey>>;
22
- create: (name: string, role_id: number, domain: string) => Promise<string>;
22
+ create: (name: string, role_id: number) => Promise<{
23
+ app_id: string;
24
+ app_secret: string;
25
+ }>;
23
26
  delete: (id: string) => Promise<void>;
24
27
  };
25
28
  };
@@ -1,7 +1,13 @@
1
1
  import { Method } from 'axios';
2
2
  export declare const APIClient: {
3
3
  baseURL: string;
4
- apiKey: string;
4
+ app_id: string;
5
+ app_secret: string;
6
+ getAuthentication(params: Record<string, $TSFixMe>): {
7
+ app_id: string;
8
+ nonce_str: string;
9
+ sign: string;
10
+ } | undefined;
5
11
  getRequest(method: Method): (url: string, data: $TSFixMe, options?: $TSFixMe) => Promise<any>;
6
12
  };
7
13
  export declare function configureAPIClient(config: ISettingsFormConfig): void;
package/dist/global.d.ts CHANGED
@@ -3,5 +3,6 @@ type $TSFixMe = any;
3
3
 
4
4
  interface ISettingsFormConfig {
5
5
  apiBaseURL: string;
6
- apiKey?: string;
6
+ app_id?: string;
7
+ app_secret?: string;
7
8
  }