@looker/sdk 21.10.2 → 21.18.0
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/CHANGELOG.md +61 -1
- package/README.md +19 -5
- package/lib/3.1/funcs.d.ts +2 -2
- package/lib/3.1/funcs.js.map +1 -1
- package/lib/3.1/methods.d.ts +2 -2
- package/lib/3.1/methods.js.map +1 -1
- package/lib/3.1/methodsInterface.d.ts +4 -4
- package/lib/3.1/models.d.ts +8 -1
- package/lib/3.1/models.js.map +1 -1
- package/lib/3.1/streams.d.ts +3 -3
- package/lib/3.1/streams.js.map +1 -1
- package/lib/4.0/funcs.d.ts +18 -7
- package/lib/4.0/funcs.js +1334 -1166
- package/lib/4.0/funcs.js.map +1 -1
- package/lib/4.0/methods.d.ts +18 -7
- package/lib/4.0/methods.js +898 -774
- package/lib/4.0/methods.js.map +1 -1
- package/lib/4.0/methodsInterface.d.ts +20 -9
- package/lib/4.0/models.d.ts +176 -10
- package/lib/4.0/models.js +30 -1
- package/lib/4.0/models.js.map +1 -1
- package/lib/4.0/streams.d.ts +19 -8
- package/lib/4.0/streams.js +898 -774
- package/lib/4.0/streams.js.map +1 -1
- package/lib/constants.d.ts +1 -1
- package/lib/constants.js +1 -1
- package/lib/constants.js.map +1 -1
- package/lib/esm/3.1/funcs.js.map +1 -1
- package/lib/esm/3.1/methods.js.map +1 -1
- package/lib/esm/3.1/models.js.map +1 -1
- package/lib/esm/3.1/streams.js.map +1 -1
- package/lib/esm/4.0/funcs.js +1295 -1160
- package/lib/esm/4.0/funcs.js.map +1 -1
- package/lib/esm/4.0/methods.js +898 -774
- package/lib/esm/4.0/methods.js.map +1 -1
- package/lib/esm/4.0/models.js +26 -0
- package/lib/esm/4.0/models.js.map +1 -1
- package/lib/esm/4.0/streams.js +898 -774
- package/lib/esm/4.0/streams.js.map +1 -1
- package/lib/esm/constants.js +1 -1
- package/lib/esm/constants.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,73 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## [21.18.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-v21.16.0...sdk-v21.18.0) (2021-10-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Looker 21.18 bindings ([#865](https://www.github.com/looker-open-source/sdk-codegen/issues/865)) ([fa98888](https://www.github.com/looker-open-source/sdk-codegen/commit/fa988886c2d88290044d2818de7f549ca28b49bc))
|
|
14
|
+
|
|
15
|
+
## [21.16.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-v21.14.0...sdk-v21.16.0) (2021-10-19)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* 21.16 release ([#859](https://www.github.com/looker-open-source/sdk-codegen/issues/859)) ([0b4385c](https://www.github.com/looker-open-source/sdk-codegen/commit/0b4385c83c5225acf0a9b0c76f9e890600a449af))
|
|
21
|
+
* closest path match for API Explorer ([#811](https://www.github.com/looker-open-source/sdk-codegen/issues/811)) ([45fd26f](https://www.github.com/looker-open-source/sdk-codegen/commit/45fd26fb0f325fa90edfec72f835ed3a79b9afeb))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* intrinsic type params are not Partial<T> ([#819](https://www.github.com/looker-open-source/sdk-codegen/issues/819)) ([4b31490](https://www.github.com/looker-open-source/sdk-codegen/commit/4b31490f7ce5c9593854e56518245c5399ea9548))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Dependencies
|
|
30
|
+
|
|
31
|
+
* The following workspace dependencies were updated
|
|
32
|
+
* dependencies
|
|
33
|
+
* @looker/sdk-rtl bumped from ^21.0.20 to ^21.1.0
|
|
34
|
+
|
|
35
|
+
## [21.14.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-v21.12.0...sdk-v21.14.0) (2021-09-01)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Features
|
|
39
|
+
|
|
40
|
+
* Looker 21.14 release ([#807](https://www.github.com/looker-open-source/sdk-codegen/issues/807)) ([99db26d](https://www.github.com/looker-open-source/sdk-codegen/commit/99db26dcd812135d775e61e495c98a66057c6f54))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Dependencies
|
|
44
|
+
|
|
45
|
+
* The following workspace dependencies were updated
|
|
46
|
+
* dependencies
|
|
47
|
+
* @looker/sdk-rtl bumped from ^21.0.19 to ^21.0.20
|
|
48
|
+
|
|
49
|
+
## [21.12.0](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-v21.10.2...sdk-v21.12.0) (2021-08-06)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
* Looker 21.12 bindings ([#782](https://www.github.com/looker-open-source/sdk-codegen/issues/782)) ([a00b908](https://www.github.com/looker-open-source/sdk-codegen/commit/a00b908e6fee79250c4c1ffb1b1e8915d58dd633))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* documentation refs and notes for Typescript SDK and more ([#783](https://www.github.com/looker-open-source/sdk-codegen/issues/783)) ([b2487ea](https://www.github.com/looker-open-source/sdk-codegen/commit/b2487ea4a113ce17a080ccab9b4c4139813e8810))
|
|
60
|
+
|
|
61
|
+
### [21.10.2](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-v21.10.1...sdk-v21.10.2) (2021-07-30)
|
|
9
62
|
|
|
10
63
|
|
|
11
64
|
### Bug Fixes
|
|
12
65
|
|
|
13
66
|
* improved writeable type support ([#766](https://www.github.com/looker-open-source/sdk-codegen/issues/766)) ([be91bd8](https://www.github.com/looker-open-source/sdk-codegen/commit/be91bd8e772f9a64c47486b317f1ac1f6ef14327))
|
|
14
67
|
|
|
68
|
+
|
|
69
|
+
### Dependencies
|
|
70
|
+
|
|
71
|
+
* The following workspace dependencies were updated
|
|
72
|
+
* dependencies
|
|
73
|
+
* @looker/sdk-rtl bumped from ^21.0.18 to ^21.0.19
|
|
74
|
+
|
|
15
75
|
### [21.10.1](https://www.github.com/looker-open-source/sdk-codegen/compare/sdk-v21.10.0...sdk-v21.10.1) (2021-07-09)
|
|
16
76
|
|
|
17
77
|
|
package/README.md
CHANGED
|
@@ -30,21 +30,35 @@ Using `npm`:
|
|
|
30
30
|
npm install @looker/sdk @looker/sdk-rtl
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
Some other dependencies may be required for your project to build and run correctly.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
yarn install @types/readable-stream @types/request @types/request-promise-native -D
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### TypeScript SDK packages
|
|
40
|
+
|
|
41
|
+
The Looker TypeScript SDK has different packages to prevent node dependencies being linked into browser usage of the SDK (the node dependencies are not available in the browser and can cause compilation errors). There are three packages for the Typescript SDK available on npm:
|
|
42
|
+
|
|
43
|
+
1. `@looker/sdk-rtl` - contains a run time library needed to invoke the Looker API methods. Referencing the `@looker/sdk` as a dependency should automatically pull this package in.
|
|
44
|
+
2. `@looker/sdk` - contains the Looker API methods.
|
|
45
|
+
3. `@looker/sdk-node` - contains the dependencies needed to run the Looker SDK in a node environment. Do NOT include this package if you are using the Looker SDK in a browser. You MUST include this package if you are using `node` or `ts-node`.
|
|
46
|
+
|
|
33
47
|
### Authenticate your API calls
|
|
34
48
|
|
|
35
|
-
All requests to the Looker API server require an access token. For browser implementations, authentication is typically achieved via OAuth as [described in `cors.md`](
|
|
49
|
+
All requests to the Looker API server require an access token. For browser implementations, authentication is typically achieved via OAuth as [described in `cors.md`](../../docs/cors.md) or a [Proxy Server](#using-a-proxy-for-authentication).
|
|
36
50
|
|
|
37
51
|
### Use the SDK in your browser application
|
|
38
52
|
|
|
39
53
|
Authenticating for the browser takes more setup than authenticating for use with a Node application.
|
|
40
54
|
|
|
41
|
-
The stand-alone version of the [Looker API Explorer](
|
|
55
|
+
The stand-alone version of the [Looker API Explorer](../api-explorer) uses OAuth and the `BrowserSDK` to get an authentication token for Looker API requests.
|
|
42
56
|
|
|
43
|
-
- [RunItSDK](
|
|
57
|
+
- [RunItSDK](../run-it/src/utils/RunItSDK.ts) shows how to override `readConfig()` to get SDK configuration values.
|
|
44
58
|
|
|
45
|
-
- [RunItSDK tests](
|
|
59
|
+
- [RunItSDK tests](../run-it/src/utils/RunItSDK.spec.ts) support debugging the flow of `RunItSDK`.
|
|
46
60
|
|
|
47
|
-
- The [OAuthScene](
|
|
61
|
+
- The [OAuthScene](../run-it/src/scenes/OAuthScene/OAuthScene.tsx) React component receives the OAuth response from the Looker server and logs the user in to retrieve the API authentication token.
|
|
48
62
|
|
|
49
63
|
Looker's OAuth support makes it possible to build a Looker SDK application that only requires the browser. If a browser application can use a proxy server instead, or already uses an existing backend server, it may be simpler to [use a proxy for authentication](#using-a-proxy-for-authentication)/
|
|
50
64
|
|
package/lib/3.1/funcs.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ export declare const update_saml_config: (sdk: IAPIMethods, body: Partial<IWrite
|
|
|
24
24
|
export declare const saml_test_config: (sdk: IAPIMethods, test_slug: string, options?: Partial<ITransportSettings> | undefined) => Promise<SDKResponse<ISamlConfig, IError>>;
|
|
25
25
|
export declare const delete_saml_test_config: (sdk: IAPIMethods, test_slug: string, options?: Partial<ITransportSettings> | undefined) => Promise<SDKResponse<string, IError>>;
|
|
26
26
|
export declare const create_saml_test_config: (sdk: IAPIMethods, body: Partial<IWriteSamlConfig>, options?: Partial<ITransportSettings> | undefined) => Promise<SDKResponse<ISamlConfig, IError | IValidationError>>;
|
|
27
|
-
export declare const parse_saml_idp_metadata: (sdk: IAPIMethods, body:
|
|
28
|
-
export declare const fetch_and_parse_saml_idp_metadata: (sdk: IAPIMethods, body:
|
|
27
|
+
export declare const parse_saml_idp_metadata: (sdk: IAPIMethods, body: string, options?: Partial<ITransportSettings> | undefined) => Promise<SDKResponse<ISamlMetadataParseResult, IError>>;
|
|
28
|
+
export declare const fetch_and_parse_saml_idp_metadata: (sdk: IAPIMethods, body: string, options?: Partial<ITransportSettings> | undefined) => Promise<SDKResponse<ISamlMetadataParseResult, IError>>;
|
|
29
29
|
export declare const session_config: (sdk: IAPIMethods, options?: Partial<ITransportSettings> | undefined) => Promise<SDKResponse<ISessionConfig, IError>>;
|
|
30
30
|
export declare const update_session_config: (sdk: IAPIMethods, body: Partial<IWriteSessionConfig>, options?: Partial<ITransportSettings> | undefined) => Promise<SDKResponse<ISessionConfig, IError | IValidationError>>;
|
|
31
31
|
export declare const all_user_login_lockouts: (sdk: IAPIMethods, fields?: string | undefined, options?: Partial<ITransportSettings> | undefined) => Promise<SDKResponse<IUserLoginLockout[], IError>>;
|