monday-sdk-js 0.4.10 → 0.4.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monday-sdk-js",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "private": false,
5
5
  "repository": "https://github.com/mondaycom/monday-sdk-js",
6
6
  "main": "src/index.js",
@@ -0,0 +1,5 @@
1
+ import { ClientData } from './client-data.interface';
2
+ import { ClientExecute } from './client-execute.interface';
3
+ import { ClientApi } from './client-api.interface';
4
+
5
+ export type MondayClientSdk = ClientData & ClientExecute & ClientApi;
package/types/index.d.ts CHANGED
@@ -1,22 +1,9 @@
1
1
  // Original Definitions were contributed by: Josh Parnham <https://github.com/josh->
2
- import { ClientData } from './client-data.interface';
3
- import { ClientExecute } from './client-execute.interface';
4
- import { ClientApi, APIOptions } from './client-api.interface';
2
+ import { MondayClientSdk } from './client-sdk.interface';
3
+ import { MondayServerSdk } from './server-sdk.interface';
5
4
 
6
5
  export as namespace mondaySdk;
7
6
 
8
- type MondayClientSdk = ClientData & ClientExecute & ClientApi;
9
-
10
- interface MondayServerSdk {
11
- setToken(token: string): void;
12
-
13
- setApiVersion(version: string): void;
14
-
15
- api(query: string, options?: APIOptions): Promise<any>;
16
-
17
- oauthToken(code: string, clientId: string, clientSecret: string): Promise<any>;
18
- }
19
-
20
7
  declare function init(
21
8
  config?: Partial<{
22
9
  clientId: string;
@@ -0,0 +1,11 @@
1
+ import { APIOptions } from './client-api.interface';
2
+
3
+ export interface MondayServerSdk {
4
+ setToken(token: string): void;
5
+
6
+ setApiVersion(version: string): void;
7
+
8
+ api(query: string, options?: APIOptions): Promise<any>;
9
+
10
+ oauthToken(code: string, clientId: string, clientSecret: string): Promise<any>;
11
+ }