monday-sdk-js 0.5.1 → 0.5.2
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/package.json
CHANGED
|
@@ -38,7 +38,7 @@ export interface ClientApi {
|
|
|
38
38
|
* Placeholders may be used, which will be substituted by the variables object passed within the options.
|
|
39
39
|
* @param options
|
|
40
40
|
*/
|
|
41
|
-
api(query: string, options?: APIOptions): Promise<{ data:
|
|
41
|
+
api<T = any>(query: string, options?: APIOptions): Promise<{ data: T, account_id: number }>;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Instead of passing the API token to the `api()` method on each request, you can set the API token once using:
|
|
@@ -58,4 +58,4 @@ export interface ClientApi {
|
|
|
58
58
|
* @param object An object with options
|
|
59
59
|
*/
|
|
60
60
|
oauth(object?: OAuthOptions): void;
|
|
61
|
-
}
|
|
61
|
+
}
|
|
@@ -5,7 +5,7 @@ export interface MondayServerSdk {
|
|
|
5
5
|
|
|
6
6
|
setApiVersion(version: string): void;
|
|
7
7
|
|
|
8
|
-
api(query: string, options?: APIOptions): Promise<
|
|
8
|
+
api<T = any>(query: string, options?: APIOptions): Promise<T>;
|
|
9
9
|
|
|
10
10
|
oauthToken(code: string, clientId: string, clientSecret: string): Promise<any>;
|
|
11
11
|
}
|