@looker/sdk 24.14.0 → 24.16.1
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 +33 -0
- package/README.md +66 -17
- package/lib/4.0/funcs.d.ts +4 -3
- package/lib/4.0/funcs.js +834 -818
- package/lib/4.0/funcs.js.map +1 -1
- package/lib/4.0/methods.d.ts +4 -3
- package/lib/4.0/methods.js +556 -542
- package/lib/4.0/methods.js.map +1 -1
- package/lib/4.0/methodsInterface.d.ts +4 -3
- package/lib/4.0/methodsInterface.js.map +1 -1
- package/lib/4.0/models.d.ts +32 -3
- package/lib/4.0/models.js.map +1 -1
- package/lib/4.0/streams.d.ts +437 -437
- package/lib/4.0/streams.js +557 -542
- 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/4.0/funcs.js +829 -813
- package/lib/esm/4.0/funcs.js.map +1 -1
- package/lib/esm/4.0/methods.js +556 -542
- package/lib/esm/4.0/methods.js.map +1 -1
- package/lib/esm/4.0/methodsInterface.js.map +1 -1
- package/lib/esm/4.0/models.js.map +1 -1
- package/lib/esm/4.0/streams.js +558 -543
- 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/lib/esm/extensionSdk.js +4 -3
- package/lib/esm/extensionSdk.js.map +1 -1
- package/lib/extensionSdk.d.ts +3 -2
- package/lib/extensionSdk.js +4 -3
- package/lib/extensionSdk.js.map +1 -1
- package/package.json +3 -11
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,39 @@ 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
|
+
## [24.16.1](https://github.com/looker-open-source/sdk-codegen/compare/sdk-v24.16.0...sdk-v24.16.1) (2024-09-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix release 24.16.2 ([#1505](https://github.com/looker-open-source/sdk-codegen/issues/1505)) ([1cd1806](https://github.com/looker-open-source/sdk-codegen/commit/1cd180615901d2daf1fb112b41f2a72d2caacf61))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* The following workspace dependencies were updated
|
|
19
|
+
* dependencies
|
|
20
|
+
* @looker/sdk-rtl bumped from 21.6.2 to 21.6.3
|
|
21
|
+
|
|
22
|
+
## [24.16.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-v24.14.0...sdk-v24.16.0) (2024-09-11)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* generate SDKs for Looker 24.16 ([#1499](https://github.com/looker-open-source/sdk-codegen/issues/1499)) ([109839d](https://github.com/looker-open-source/sdk-codegen/commit/109839d2d4fae10e7aeab088378bba5e2b368019))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* Remove the requests package from the TypeScript SDK ([#1491](https://github.com/looker-open-source/sdk-codegen/issues/1491)) ([670377c](https://github.com/looker-open-source/sdk-codegen/commit/670377c46a546bbd8dcc6679b8aeb041da1b4670)), closes [#1439](https://github.com/looker-open-source/sdk-codegen/issues/1439)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Dependencies
|
|
36
|
+
|
|
37
|
+
* The following workspace dependencies were updated
|
|
38
|
+
* dependencies
|
|
39
|
+
* @looker/sdk-rtl bumped from 21.6.1 to 21.6.2
|
|
40
|
+
|
|
8
41
|
## [24.14.0](https://github.com/looker-open-source/sdk-codegen/compare/sdk-v24.12.1...sdk-v24.14.0) (2024-08-12)
|
|
9
42
|
|
|
10
43
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ The Looker SDK for TypeScript/JavaScript works with Node and browser run-times.
|
|
|
4
4
|
|
|
5
5
|
This package supports using the Looker SDK in the browser. The [@looker/sdk-node](https://www.npmjs.com/package/@looker/sdk-node) package depends on this package (@looker/sdk) and [@looker/sdk-rtl](https://www.npmjs.com/package/@looker/sdk-rtl).
|
|
6
6
|
|
|
7
|
-
The SDK uses a plug-in architecture
|
|
7
|
+
The SDK uses a plug-in architecture for initializing and supports run-time specific transports (like `NodeTransport` and `BrowserTransport`) and different approaches for managing API authentication (like `NodeSession`, `BrowserSession`, `ProxySession`, and `CorsSession`).
|
|
8
8
|
|
|
9
9
|
Please [report any issues](https://github.com/looker-open-source/sdk-codegen/issues) encountered, and indicate the SDK language in the report.
|
|
10
10
|
|
|
@@ -29,20 +29,15 @@ Using `npm`:
|
|
|
29
29
|
```bash
|
|
30
30
|
npm install @looker/sdk @looker/sdk-rtl
|
|
31
31
|
```
|
|
32
|
-
|
|
33
32
|
Some other dependencies may be required for your project to build and run correctly.
|
|
34
33
|
|
|
35
|
-
```bash
|
|
36
|
-
yarn install @types/readable-stream @types/request @types/request-promise-native -D
|
|
37
|
-
```
|
|
38
|
-
|
|
39
34
|
### TypeScript SDK packages
|
|
40
35
|
|
|
41
36
|
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
37
|
|
|
43
38
|
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
|
-
|
|
45
|
-
|
|
39
|
+
1. `@looker/sdk` - contains the Looker API methods.
|
|
40
|
+
1. `@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. This SDK is for use with `node` or `ts-node`.
|
|
46
41
|
|
|
47
42
|
### Authenticate your API calls
|
|
48
43
|
|
|
@@ -66,9 +61,66 @@ The `looker.ini` configuration file and environment variables are _never_ used i
|
|
|
66
61
|
|
|
67
62
|
### Developing with multiple API versions
|
|
68
63
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
`LookerBrowserSDK.init40()` and `Looker40SDK()` initialize the API 4.
|
|
64
|
+
Only API 4.0 is currently available. API 3.1 has been removed in Looker v23.18+.
|
|
65
|
+
|
|
66
|
+
`LookerBrowserSDK.init40()` and `Looker40SDK()` initialize the API 4.0 implementation of the SDK.
|
|
67
|
+
|
|
68
|
+
## Customizing HTTP request handling
|
|
69
|
+
|
|
70
|
+
With the complete removal of the [deprecated request package](https://www.npmjs.com/package/request) the HTTP transport layer has been refactored to have feature parity between Node and the Browser SDK.
|
|
71
|
+
|
|
72
|
+
The following properties can be specified as part of the `options` parameter, which is the last parameter of every SDK method:
|
|
73
|
+
- `timeout` to set a per-request timeout (in seconds)
|
|
74
|
+
- `signal` to cancel cancelling requests by passing an `AbortSignal` or `AbortController` signal to an SDK request
|
|
75
|
+
- automatically retryable HTTP requests
|
|
76
|
+
- enable with `maxTries` > 1
|
|
77
|
+
- optionally define a `Waitable` callback for custom retry wait period handling
|
|
78
|
+
|
|
79
|
+
## Streaming with the SDK
|
|
80
|
+
|
|
81
|
+
The [deprecated NodeJS `request` package](https://www.npmjs.com/package/request) dependency has been removed from all Looker TypeScript packages. This removal prompted a **BREAKING** interface change for the streaming SDK.
|
|
82
|
+
The streaming method callback signature changed from `(readable: Readable) => Promise<x>` to `(response: Response) => Promise<x>`. Using `Response` as the parameter to the callback greatly
|
|
83
|
+
increases the flexibility of streaming implementations and provides other valuable information like `Content-Type` and other headers to the streaming callback.
|
|
84
|
+
|
|
85
|
+
For the Browser SDK (`@looker/sdk`), the standard `fetch` function is still used. For the Node SDK (`@looker/sdk-node`), the global [`fetch`](https://nodejs.org/api/globals.html#fetch) function from NodeJS v22 is used.
|
|
86
|
+
|
|
87
|
+
This means the Looker Node SDK now uses NodeJS v22.
|
|
88
|
+
|
|
89
|
+
The streaming version of the SDK methods should be initialized using the same `AuthSession` as the main SDK to reduce authentication thrashing.
|
|
90
|
+
|
|
91
|
+
Construction of the streaming SDK can use code similar to the following, which is taken from the [downloadTile.ts example](/examples/typescript/downloadTile.ts#L129:L157):
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
/**
|
|
95
|
+
* Use the streaming SDK to download a tile's query
|
|
96
|
+
* @param sdk to use
|
|
97
|
+
* @param tile to download
|
|
98
|
+
* @param format to download
|
|
99
|
+
* @returns name of downloaded file (undefined on failure)
|
|
100
|
+
*/
|
|
101
|
+
const downloadTileAs = async (
|
|
102
|
+
sdk: LookerSDK,
|
|
103
|
+
tile: IDashboardElement,
|
|
104
|
+
format: string
|
|
105
|
+
) => {
|
|
106
|
+
const fileName = `${tile.title}.${format}`;
|
|
107
|
+
|
|
108
|
+
const writer = createWritableStream(fs.createWriteStream(fileName));
|
|
109
|
+
const request: IRequestRunQuery = {
|
|
110
|
+
result_format: format,
|
|
111
|
+
query_id: tile.query_id!,
|
|
112
|
+
// apply_formatting: true,
|
|
113
|
+
// apply_vis: true
|
|
114
|
+
};
|
|
115
|
+
const sdkStream = new Looker40SDKStream(sdk.authSession);
|
|
116
|
+
await sdkStream.run_query(async (response: Response) => {
|
|
117
|
+
await response.body.pipeTo(writer);
|
|
118
|
+
return 'streamed';
|
|
119
|
+
}, request);
|
|
120
|
+
|
|
121
|
+
return fileName;
|
|
122
|
+
};
|
|
123
|
+
```
|
|
72
124
|
|
|
73
125
|
## Using a Proxy for authentication
|
|
74
126
|
|
|
@@ -86,10 +138,7 @@ By writing your own `getProxyToken()` visible to this class, any proxied authent
|
|
|
86
138
|
|
|
87
139
|
```typescript
|
|
88
140
|
export class EmbedSession extends ProxySession {
|
|
89
|
-
constructor(
|
|
90
|
-
public settings: IApiSettings,
|
|
91
|
-
transport?: ITransport
|
|
92
|
-
) {
|
|
141
|
+
constructor(public settings: IApiSettings, transport?: ITransport) {
|
|
93
142
|
super(settings, transport);
|
|
94
143
|
}
|
|
95
144
|
|
|
@@ -122,9 +171,9 @@ export class EmbedSession extends ProxySession {
|
|
|
122
171
|
}
|
|
123
172
|
```
|
|
124
173
|
|
|
125
|
-
|
|
174
|
+
## More examples
|
|
126
175
|
|
|
127
|
-
Looker's open source repository of [SDK Examples](https://github.com/looker-open-source/sdk-
|
|
176
|
+
Looker's open source repository of [SDK Examples](https://github.com/looker-open-source/sdk-codegen/tree/main/examples/typescript) has more example scripts and applications that show how to use the various Looker language SDKs.
|
|
128
177
|
|
|
129
178
|
## A note about security
|
|
130
179
|
|
package/lib/4.0/funcs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DelimArray, IAPIMethods, IAuthSession,
|
|
2
|
-
import type { IAccessToken, IAlert, IAlertNotifications, IAlertPatch, IApiSession, IApiVersion, IArtifact, IArtifactNamespace, IArtifactUsage, IBackupConfiguration, IBoard, IBoardItem, IBoardSection, IColorCollection, IColumnSearch, IConnectionFeatures, IContentFavorite, IContentMeta, IContentMetaGroupUser, IContentSearch, IContentValidation, IContentView, ICostEstimate, ICreateCostEstimate, ICreateCredentialsApi3, ICreateEmbedUserRequest, ICreateFolder, ICreateOAuthApplicationUserStateRequest, ICreateOAuthApplicationUserStateResponse, ICredentialsApi3, ICredentialsEmail, ICredentialsEmailSearch, ICredentialsEmbed, ICredentialsGoogle, ICredentialsLDAP, ICredentialsLookerOpenid, ICredentialsOIDC, ICredentialsSaml, ICredentialsTotp, ICustomWelcomeEmail,
|
|
1
|
+
import type { DelimArray, IDictionary, IAPIMethods, IAuthSession, ITransportSettings, SDKResponse } from '@looker/sdk-rtl';
|
|
2
|
+
import type { IAccessToken, IAlert, IAlertNotifications, IAlertPatch, IApiSession, IApiVersion, IArtifact, IArtifactNamespace, IArtifactUsage, IBackupConfiguration, IBoard, IBoardItem, IBoardSection, IColorCollection, IColumnSearch, IConnectionFeatures, IContentFavorite, IContentMeta, IContentMetaGroupUser, IContentSearch, IContentSummary, IContentValidation, IContentView, ICostEstimate, ICreateCostEstimate, ICreateCredentialsApi3, ICreateEmbedUserRequest, ICreateFolder, ICreateOAuthApplicationUserStateRequest, ICreateOAuthApplicationUserStateResponse, ICredentialsApi3, ICredentialsEmail, ICredentialsEmailSearch, ICredentialsEmbed, ICredentialsGoogle, ICredentialsLDAP, ICredentialsLookerOpenid, ICredentialsOIDC, ICredentialsSaml, ICredentialsTotp, ICustomWelcomeEmail, IDashboard, IDashboardAggregateTableLookml, IDashboardBase, IDashboardElement, IDashboardFilter, IDashboardLayout, IDashboardLayoutComponent, IDashboardLookml, IDataActionForm, IDataActionRequest, IDataActionResponse, IDatagroup, IDBConnection, IDBConnectionTestResult, IDependencyGraph, IDialectInfo, IDigestEmails, IDigestEmailSend, IEgressIpAddresses, IEmbedCookielessSessionAcquire, IEmbedCookielessSessionAcquireResponse, IEmbedCookielessSessionGenerateTokens, IEmbedCookielessSessionGenerateTokensResponse, IEmbedParams, IEmbedSecret, IEmbedSsoParams, IEmbedUrlResponse, IError, IExternalOauthApplication, IFolder, IGitBranch, IGitConnectionTest, IGitConnectionTestResult, IGroup, IGroupHierarchy, IGroupIdForGroupInclusion, IGroupIdForGroupUserInclusion, IGroupSearch, IHomepageSection, IIntegration, IIntegrationHub, IIntegrationTestResult, IInternalHelpResources, IInternalHelpResourcesContent, ILDAPConfig, ILDAPConfigTestResult, ILegacyFeature, ILocale, ILook, ILookmlModel, ILookmlModelExplore, ILookmlTest, ILookmlTestResult, ILookWithQuery, IManifest, IMaterializePDT, IMergeQuery, IMobileSettings, IMobileToken, IModel, IModelFieldSuggestions, IModelSet, IOauthClientApp, IOIDCConfig, IPasswordConfig, IPermission, IPermissionSet, IProject, IProjectFile, IProjectValidation, IProjectValidationCache, IProjectWorkspace, IQuery, IQueryFormats, IQueryTask, IRenderTask, IRepositoryCredential, IRequestActiveThemes, IRequestAlertNotifications, IRequestAllBoardItems, IRequestAllBoardSections, IRequestAllExternalOauthApplications, IRequestAllGroups, IRequestAllGroupUsers, IRequestAllIntegrations, IRequestAllLookmlModels, IRequestAllRoles, IRequestAllScheduledPlans, IRequestAllUserAttributes, IRequestAllUsers, IRequestArtifact, IRequestArtifactNamespaces, IRequestConnectionColumns, IRequestConnectionSchemas, IRequestConnectionSearchColumns, IRequestConnectionTables, IRequestContentSummary, IRequestContentThumbnail, IRequestCreateDashboardElement, IRequestCreateDashboardRenderTask, IRequestCreateQueryTask, IRequestCreateUserCredentialsEmailPasswordReset, IRequestDeployRefToProduction, IRequestFolderChildren, IRequestFolderChildrenSearch, IRequestGraphDerivedTablesForModel, IRequestGraphDerivedTablesForView, IRequestLogin, IRequestLookmlModelExplore, IRequestModelFieldnameSuggestions, IRequestRoleUsers, IRequestRunGitConnectionTest, IRequestRunInlineQuery, IRequestRunLook, IRequestRunLookmlTest, IRequestRunQuery, IRequestScheduledPlansForDashboard, IRequestScheduledPlansForLook, IRequestScheduledPlansForLookmlDashboard, IRequestSearchAlerts, IRequestSearchArtifacts, IRequestSearchBoards, IRequestSearchContent, IRequestSearchContentFavorites, IRequestSearchContentViews, IRequestSearchCredentialsEmail, IRequestSearchDashboardElements, IRequestSearchDashboards, IRequestSearchFolders, IRequestSearchGroups, IRequestSearchGroupsWithHierarchy, IRequestSearchGroupsWithRoles, IRequestSearchLooks, IRequestSearchModelSets, IRequestSearchPermissionSets, IRequestSearchRoles, IRequestSearchRolesWithUserCount, IRequestSearchThemes, IRequestSearchUserLoginLockouts, IRequestSearchUsers, IRequestSearchUsersNames, IRequestStartPdtBuild, IRequestTagRef, IRequestUserAttributeUserValues, IRequestUserRoles, IRole, IRoleSearch, IRunningQueries, ISamlConfig, ISamlMetadataParseResult, IScheduledPlan, ISchema, ISchemaColumns, ISchemaTables, ISession, ISessionConfig, ISetting, ISmtpSettings, ISmtpStatus, ISqlInterfaceQuery, ISqlInterfaceQueryMetadata, ISqlQuery, ISqlQueryCreate, ISshPublicKey, ISshServer, ISshTunnel, ISupportAccessAddEntries, ISupportAccessAllowlistEntry, ISupportAccessEnable, ISupportAccessStatus, ITheme, ITimezone, IUpdateArtifact, IUpdateFolder, IUser, IUserAttribute, IUserAttributeGroupValue, IUserAttributeWithValue, IUserEmailOnly, IUserLoginLockout, IUserPublic, IValidationError, IWelcomeEmailTest, IWhitelabelConfiguration, IWorkspace, IWriteAlert, IWriteApiSession, IWriteBackupConfiguration, IWriteBoard, IWriteBoardItem, IWriteBoardSection, IWriteColorCollection, IWriteContentFavorite, IWriteContentMeta, IWriteCreateDashboardFilter, IWriteCredentialsEmail, IWriteDashboard, IWriteDashboardElement, IWriteDashboardFilter, IWriteDashboardLayout, IWriteDashboardLayoutComponent, IWriteDashboardLookml, IWriteDatagroup, IWriteDBConnection, IWriteEmbedSecret, IWriteExternalOauthApplication, IWriteGitBranch, IWriteGroup, IWriteIntegration, IWriteIntegrationHub, IWriteInternalHelpResources, IWriteInternalHelpResourcesContent, IWriteLDAPConfig, IWriteLegacyFeature, IWriteLookmlModel, IWriteLookWithQuery, IWriteMergeQuery, IWriteMobileToken, IWriteModelSet, IWriteOauthClientApp, IWriteOIDCConfig, IWritePasswordConfig, IWritePermissionSet, IWriteProject, IWriteQuery, IWriteRepositoryCredential, IWriteRole, IWriteSamlConfig, IWriteScheduledPlan, IWriteSessionConfig, IWriteSetting, IWriteSqlInterfaceQueryCreate, IWriteSshServer, IWriteSshTunnel, IWriteTheme, IWriteUser, IWriteUserAttribute, IWriteUserAttributeWithValue, IWriteWhitelabelConfiguration } from './models';
|
|
3
3
|
export declare const functionalSdk40: (authSession: IAuthSession) => import("@looker/sdk-rtl").APIMethods;
|
|
4
4
|
export declare const follow_alert: (sdk: IAPIMethods, alert_id: string, options?: Partial<ITransportSettings>) => Promise<SDKResponse<void, IError>>;
|
|
5
5
|
export declare const unfollow_alert: (sdk: IAPIMethods, alert_id: string, options?: Partial<ITransportSettings>) => Promise<SDKResponse<void, IError>>;
|
|
@@ -164,6 +164,7 @@ export declare const create_content_metadata_access: (sdk: IAPIMethods, body: Pa
|
|
|
164
164
|
export declare const update_content_metadata_access: (sdk: IAPIMethods, content_metadata_access_id: string, body: Partial<IContentMetaGroupUser>, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IContentMetaGroupUser, IError | IValidationError>>;
|
|
165
165
|
export declare const delete_content_metadata_access: (sdk: IAPIMethods, content_metadata_access_id: string, options?: Partial<ITransportSettings>) => Promise<SDKResponse<string, IError>>;
|
|
166
166
|
export declare const search_content: (sdk: IAPIMethods, request: IRequestSearchContent, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IContentSearch[], IError>>;
|
|
167
|
+
export declare const content_summary: (sdk: IAPIMethods, request: IRequestContentSummary, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IContentSummary[], IError | IValidationError>>;
|
|
167
168
|
export declare const content_thumbnail: (sdk: IAPIMethods, request: IRequestContentThumbnail, options?: Partial<ITransportSettings>) => Promise<SDKResponse<string, IError | IValidationError>>;
|
|
168
169
|
export declare const content_validation: (sdk: IAPIMethods, fields?: string, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IContentValidation, IError | IValidationError>>;
|
|
169
170
|
export declare const search_content_views: (sdk: IAPIMethods, request: IRequestSearchContentViews, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IContentView[], IError>>;
|
|
@@ -214,7 +215,7 @@ export declare const stop_pdt_build: (sdk: IAPIMethods, materialization_id: stri
|
|
|
214
215
|
export declare const search_folders: (sdk: IAPIMethods, request: IRequestSearchFolders, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IFolder[], IError>>;
|
|
215
216
|
export declare const folder: (sdk: IAPIMethods, folder_id: string, fields?: string, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IFolder, IError>>;
|
|
216
217
|
export declare const update_folder: (sdk: IAPIMethods, folder_id: string, body: Partial<IUpdateFolder>, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IFolder, IError | IValidationError>>;
|
|
217
|
-
export declare const delete_folder: (sdk: IAPIMethods, folder_id: string, options?: Partial<ITransportSettings>) => Promise<SDKResponse<string, IError>>;
|
|
218
|
+
export declare const delete_folder: (sdk: IAPIMethods, folder_id: string, options?: Partial<ITransportSettings>) => Promise<SDKResponse<string, IError | IValidationError>>;
|
|
218
219
|
export declare const all_folders: (sdk: IAPIMethods, fields?: string, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IFolder[], IError>>;
|
|
219
220
|
export declare const create_folder: (sdk: IAPIMethods, body: Partial<ICreateFolder>, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IFolder, IError | IValidationError>>;
|
|
220
221
|
export declare const folder_children: (sdk: IAPIMethods, request: IRequestFolderChildren, options?: Partial<ITransportSettings>) => Promise<SDKResponse<IFolder[], IError>>;
|