@digital-ai/dot-components 5.3.0 → 5.5.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.
Files changed (34) hide show
  1. package/index.esm.js +1019 -795
  2. package/package.json +1 -1
  3. package/src/lib/components/analytics/dashboard-actions/DashboardOptionsMenu.d.ts +3 -1
  4. package/src/lib/components/analytics/dashboard-dialog/DashboardDialog.d.ts +2 -2
  5. package/src/lib/components/analytics/metadata-api/openapi/core/ApiError.d.ts +3 -1
  6. package/src/lib/components/analytics/metadata-api/openapi/core/ApiRequestOptions.d.ts +2 -1
  7. package/src/lib/components/analytics/metadata-api/openapi/core/CancelablePromise.d.ts +20 -0
  8. package/src/lib/components/analytics/metadata-api/openapi/core/OpenAPI.d.ts +8 -7
  9. package/src/lib/components/analytics/metadata-api/openapi/core/request.d.ts +25 -4
  10. package/src/lib/components/analytics/metadata-api/openapi/index.d.ts +3 -0
  11. package/src/lib/components/analytics/metadata-api/openapi/models/DashboardCreateBody.d.ts +4 -0
  12. package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPatchBody.d.ts +4 -0
  13. package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPutBody.d.ts +4 -0
  14. package/src/lib/components/analytics/metadata-api/openapi/models/DashboardView.d.ts +5 -1
  15. package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentCreateBody.d.ts +1 -1
  16. package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentPutBody.d.ts +1 -1
  17. package/src/lib/components/analytics/metadata-api/openapi/models/X_Digitalai_Account_ID.d.ts +4 -0
  18. package/src/lib/components/analytics/metadata-api/openapi/services/BiService.d.ts +7 -6
  19. package/src/lib/components/analytics/metadata-api/openapi/services/CategoriesService.d.ts +3 -2
  20. package/src/lib/components/analytics/metadata-api/openapi/services/DashboardsService.d.ts +17 -16
  21. package/src/lib/components/analytics/metadata-api/openapi/services/DatalakeService.d.ts +2 -1
  22. package/src/lib/components/analytics/metadata-api/openapi/services/EntitiesService.d.ts +6 -5
  23. package/src/lib/components/analytics/metadata-api/openapi/services/EntityAttributesService.d.ts +7 -6
  24. package/src/lib/components/analytics/metadata-api/openapi/services/EntityClassService.d.ts +6 -5
  25. package/src/lib/components/analytics/metadata-api/openapi/services/HelpContentService.d.ts +8 -7
  26. package/src/lib/components/analytics/metadata-api/openapi/services/MrProxyService.d.ts +5 -4
  27. package/src/lib/components/analytics/metadata-api/openapi/services/OriginInstancesService.d.ts +6 -5
  28. package/src/lib/components/analytics/metadata-api/openapi/services/OriginsService.d.ts +6 -5
  29. package/src/lib/components/analytics/metadata-api/openapi/services/ProductsService.d.ts +11 -10
  30. package/src/lib/components/analytics/metadata-api/openapi/services/UtilityService.d.ts +7 -6
  31. package/src/lib/components/floating-action-button/Fab.d.ts +22 -0
  32. package/src/lib/components/floating-action-button/Fab.styles.d.ts +2 -0
  33. package/src/lib/components/floating-action-button/index.d.ts +2 -0
  34. package/src/lib/components/index.d.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "5.3.0",
3
+ "version": "5.5.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [
@@ -8,6 +8,8 @@ interface DashboardOptionsMenuProps {
8
8
  isEdit?: boolean;
9
9
  menuPlacement?: PopperPlacement;
10
10
  onDetails?: (dashboard: DashboardView) => void;
11
+ /** Called when the dashboard is being added/removed from featured page. */
12
+ onFeature?: (dashboard: DashboardView) => void;
11
13
  onStartDelete?: (dashboard: DashboardView) => void;
12
14
  onStartDuplicate?: (dashboard: DashboardView) => void;
13
15
  onStartRevert?: (dashboard: DashboardView) => void;
@@ -16,5 +18,5 @@ interface DashboardOptionsMenuProps {
16
18
  onViewMode?: (dashboard: DashboardView, mode: string) => void;
17
19
  onViewOriginal?: (dashboard: DashboardView) => void;
18
20
  }
19
- export declare function DotDashboardOptionsMenu({ dashboard, currentUser, isEdit, menuPlacement, onStartDelete, onStartDuplicate, onStartStatusChange, onStartRevert, onUpdatedProperties, onViewOriginal, onViewMode, onDetails, }: DashboardOptionsMenuProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function DotDashboardOptionsMenu({ dashboard, currentUser, isEdit, menuPlacement, onFeature, onStartDelete, onStartDuplicate, onStartStatusChange, onStartRevert, onUpdatedProperties, onViewOriginal, onViewMode, onDetails, }: DashboardOptionsMenuProps): import("react/jsx-runtime").JSX.Element;
20
22
  export {};
@@ -18,9 +18,9 @@ interface DashboardDialogProps {
18
18
  /** Categories for dashboard publishing **/
19
19
  availableCategories: string[];
20
20
  /** Dashboard to copy when creating a new dashoard. **/
21
- copyDashboard?: DashboardView;
21
+ copyDashboard?: DashboardView | Record<string, any>;
22
22
  /** Dashboard to edit **/
23
- editDashboard?: DashboardView;
23
+ editDashboard?: DashboardView | Record<string, any>;
24
24
  /** config object which can be used to disable certain fields **/
25
25
  fieldConfig?: FieldConfig;
26
26
  /** An optional info messages **/
@@ -1,8 +1,10 @@
1
+ import type { ApiRequestOptions } from './ApiRequestOptions';
1
2
  import type { ApiResult } from './ApiResult';
2
3
  export declare class ApiError extends Error {
3
4
  readonly url: string;
4
5
  readonly status: number;
5
6
  readonly statusText: string;
6
7
  readonly body: any;
7
- constructor(response: ApiResult, message: string);
8
+ readonly request: ApiRequestOptions;
9
+ constructor(request: ApiRequestOptions, response: ApiResult, message: string);
8
10
  }
@@ -1,6 +1,7 @@
1
1
  export type ApiRequestOptions = {
2
2
  readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
3
- readonly path: string;
3
+ readonly url: string;
4
+ readonly path?: Record<string, any>;
4
5
  readonly cookies?: Record<string, any>;
5
6
  readonly headers?: Record<string, any>;
6
7
  readonly query?: Record<string, any>;
@@ -0,0 +1,20 @@
1
+ export declare class CancelError extends Error {
2
+ constructor(message: string);
3
+ get isCancelled(): boolean;
4
+ }
5
+ export interface OnCancel {
6
+ readonly isResolved: boolean;
7
+ readonly isRejected: boolean;
8
+ readonly isCancelled: boolean;
9
+ (cancelHandler: () => void): void;
10
+ }
11
+ export declare class CancelablePromise<T> implements Promise<T> {
12
+ #private;
13
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
14
+ get [Symbol.toStringTag](): string;
15
+ then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
16
+ catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
17
+ finally(onFinally?: (() => void) | null): Promise<T>;
18
+ cancel(): void;
19
+ get isCancelled(): boolean;
20
+ }
@@ -1,15 +1,16 @@
1
1
  import type { ApiRequestOptions } from './ApiRequestOptions';
2
2
  type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
3
3
  type Headers = Record<string, string>;
4
- type Config = {
4
+ export type OpenAPIConfig = {
5
5
  BASE: string;
6
6
  VERSION: string;
7
7
  WITH_CREDENTIALS: boolean;
8
- TOKEN?: string | Resolver<string>;
9
- USERNAME?: string | Resolver<string>;
10
- PASSWORD?: string | Resolver<string>;
11
- HEADERS?: Headers | Resolver<Headers>;
12
- ENCODE_PATH?: (path: string) => string;
8
+ CREDENTIALS: 'include' | 'omit' | 'same-origin';
9
+ TOKEN?: string | Resolver<string> | undefined;
10
+ USERNAME?: string | Resolver<string> | undefined;
11
+ PASSWORD?: string | Resolver<string> | undefined;
12
+ HEADERS?: Headers | Resolver<Headers> | undefined;
13
+ ENCODE_PATH?: ((path: string) => string) | undefined;
13
14
  };
14
- export declare const OpenAPI: Config;
15
+ export declare const OpenAPI: OpenAPIConfig;
15
16
  export {};
@@ -1,9 +1,30 @@
1
1
  import type { ApiRequestOptions } from './ApiRequestOptions';
2
2
  import type { ApiResult } from './ApiResult';
3
+ import { CancelablePromise } from './CancelablePromise';
4
+ import type { OnCancel } from './CancelablePromise';
5
+ import type { OpenAPIConfig } from './OpenAPI';
6
+ export declare const isDefined: <T>(value: T | null | undefined) => value is Exclude<T, null | undefined>;
7
+ export declare const isString: (value: any) => value is string;
8
+ export declare const isStringWithValue: (value: any) => value is string;
9
+ export declare const isBlob: (value: any) => value is Blob;
10
+ export declare const isFormData: (value: any) => value is FormData;
11
+ export declare const base64: (str: string) => string;
12
+ export declare const getQueryString: (params: Record<string, any>) => string;
13
+ export declare const getFormData: (options: ApiRequestOptions) => FormData | undefined;
14
+ type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
15
+ export declare const resolve: <T>(options: ApiRequestOptions, resolver?: T | Resolver<T>) => Promise<T | undefined>;
16
+ export declare const getHeaders: (config: OpenAPIConfig, options: ApiRequestOptions) => Promise<Headers>;
17
+ export declare const getRequestBody: (options: ApiRequestOptions) => any;
18
+ export declare const sendRequest: (config: OpenAPIConfig, options: ApiRequestOptions, url: string, body: any, formData: FormData | undefined, headers: Headers, onCancel: OnCancel) => Promise<Response>;
19
+ export declare const getResponseHeader: (response: Response, responseHeader?: string) => string | undefined;
20
+ export declare const getResponseBody: (response: Response) => Promise<any>;
21
+ export declare const catchErrorCodes: (options: ApiRequestOptions, result: ApiResult) => void;
3
22
  /**
4
- * Request using fetch client
5
- * @param options The request options from the the service
6
- * @returns ApiResult
23
+ * Request method
24
+ * @param config The OpenAPI configuration object
25
+ * @param options The request options from the service
26
+ * @returns CancelablePromise<T>
7
27
  * @throws ApiError
8
28
  */
9
- export declare function request(options: ApiRequestOptions): Promise<ApiResult>;
29
+ export declare const request: <T>(config: OpenAPIConfig, options: ApiRequestOptions) => CancelablePromise<T>;
30
+ export {};
@@ -1,5 +1,7 @@
1
1
  export { ApiError } from './core/ApiError';
2
+ export { CancelablePromise, CancelError } from './core/CancelablePromise';
2
3
  export { OpenAPI } from './core/OpenAPI';
4
+ export type { OpenAPIConfig } from './core/OpenAPI';
3
5
  export type { AllCategoriesResponse } from './models/AllCategoriesResponse';
4
6
  export type { Author } from './models/Author';
5
7
  export type { BiServerResponse } from './models/BiServerResponse';
@@ -46,6 +48,7 @@ export type { ProductView } from './models/ProductView';
46
48
  export type { SSLoginTokenResponse } from './models/SSLoginTokenResponse';
47
49
  export type { TenantInfo } from './models/TenantInfo';
48
50
  export type { VersionResponse } from './models/VersionResponse';
51
+ export type { X_Digitalai_Account_ID } from './models/X_Digitalai_Account_ID';
49
52
  export { BiService } from './services/BiService';
50
53
  export { CategoriesService } from './services/CategoriesService';
51
54
  export { DashboardsService } from './services/DashboardsService';
@@ -55,6 +55,10 @@ export type DashboardCreateBody = {
55
55
  * (Internal) Id of a help content definition to show for the dashboard.
56
56
  */
57
57
  help_content_id?: string | null;
58
+ /**
59
+ * Whether the dashboard is featured.
60
+ */
61
+ featured?: boolean | null;
58
62
  };
59
63
  export declare namespace DashboardCreateBody {
60
64
  /**
@@ -55,6 +55,10 @@ export type DashboardPatchBody = {
55
55
  * (Internal) Id of a help content definition to show for the dashboard.
56
56
  */
57
57
  help_content_id?: string | null;
58
+ /**
59
+ * Whether the dashboard is featured.
60
+ */
61
+ featured?: boolean | null;
58
62
  };
59
63
  export declare namespace DashboardPatchBody {
60
64
  /**
@@ -55,6 +55,10 @@ export type DashboardPutBody = {
55
55
  * (Internal) Id of a help content definition to show for the dashboard.
56
56
  */
57
57
  help_content_id?: string | null;
58
+ /**
59
+ * Whether the dashboard is featured.
60
+ */
61
+ featured?: boolean | null;
58
62
  };
59
63
  export declare namespace DashboardPutBody {
60
64
  /**
@@ -102,11 +102,15 @@ export type DashboardView = {
102
102
  /**
103
103
  * Current in-progress changes for a published dashboard.
104
104
  */
105
- in_progress_changes?: DashboardView;
105
+ in_progress_changes?: DashboardView | Record<string, any> | null;
106
106
  /**
107
107
  * Id of the original dashboard if this is in-progress changes.
108
108
  */
109
109
  parent_id?: string | null;
110
+ /**
111
+ * Whether the dashboard is featured.
112
+ */
113
+ featured?: boolean | null;
110
114
  };
111
115
  export declare namespace DashboardView {
112
116
  /**
@@ -1,3 +1,3 @@
1
1
  export type HelpContentCreateBody = {
2
- content?: string;
2
+ content?: Blob;
3
3
  };
@@ -1,3 +1,3 @@
1
1
  export type HelpContentPutBody = {
2
- content?: string;
2
+ content?: Blob;
3
3
  };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Perform the requested operation in the context of the Digital.ai account represented by this GUID. <em>Requires elevated permissions.</em>
3
+ */
4
+ export type X_Digitalai_Account_ID = string | null;
@@ -4,6 +4,7 @@ import type { GuestTokenRequest } from '../models/GuestTokenRequest';
4
4
  import type { MSTRLoginTokenResponse } from '../models/MSTRLoginTokenResponse';
5
5
  import type { MSTRServerResponse } from '../models/MSTRServerResponse';
6
6
  import type { SSLoginTokenResponse } from '../models/SSLoginTokenResponse';
7
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
8
  export declare class BiService {
8
9
  /**
9
10
  * Digital.ai Business Intelligence engine details.
@@ -13,7 +14,7 @@ export declare class BiService {
13
14
  * @returns Error Default error response
14
15
  * @throws ApiError
15
16
  */
16
- static getBiService(xDigitalaiAccountId?: string): Promise<BiServerResponse | Error>;
17
+ static getMetadataBiServer(xDigitalaiAccountId?: string | null): CancelablePromise<BiServerResponse | Error>;
17
18
  /**
18
19
  * @deprecated
19
20
  * Obtain a Guest Token from the superset instance.
@@ -23,7 +24,7 @@ export declare class BiService {
23
24
  * @returns Error Default error response
24
25
  * @throws ApiError
25
26
  */
26
- static postBiService(requestBody: GuestTokenRequest, xDigitalaiAccountId?: string): Promise<Error>;
27
+ static postMetadataBiGuestToken(requestBody: GuestTokenRequest, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
27
28
  /**
28
29
  * @deprecated
29
30
  * Obtain a standard Bearer Token from Superset.
@@ -33,7 +34,7 @@ export declare class BiService {
33
34
  * @returns Error Default error response
34
35
  * @throws ApiError
35
36
  */
36
- static getBiService1(xDigitalaiAccountId?: string): Promise<SSLoginTokenResponse | Error>;
37
+ static getMetadataBiLogin(xDigitalaiAccountId?: string | null): CancelablePromise<SSLoginTokenResponse | Error>;
37
38
  /**
38
39
  * Obtain an identity token from Microstrategy.
39
40
  * Get a Microstrategy identity token, used for creating a session in another application.
@@ -42,7 +43,7 @@ export declare class BiService {
42
43
  * @returns Error Default error response
43
44
  * @throws ApiError
44
45
  */
45
- static getBiService2(xDigitalaiAccountId?: string): Promise<MSTRLoginTokenResponse | Error>;
46
+ static getMetadataBiLoginMstr(xDigitalaiAccountId?: string | null): CancelablePromise<MSTRLoginTokenResponse | Error>;
46
47
  /**
47
48
  * @deprecated
48
49
  * Passthru to the superset server instance's API.
@@ -52,7 +53,7 @@ export declare class BiService {
52
53
  * @returns Error Default error response
53
54
  * @throws ApiError
54
55
  */
55
- static getBiService3(path: string, xDigitalaiAccountId?: string): Promise<Error>;
56
+ static getMetadataBi(path: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
56
57
  /**
57
58
  * Return info on MSTR server for this tenant.
58
59
  * Return info on MSTR server for this tenant.
@@ -61,5 +62,5 @@ export declare class BiService {
61
62
  * @returns Error Default error response
62
63
  * @throws ApiError
63
64
  */
64
- static getBiService4(xDigitalaiAccountId?: string): Promise<MSTRServerResponse | Error>;
65
+ static getMetadataBiServerMstr(xDigitalaiAccountId?: string | null): CancelablePromise<MSTRServerResponse | Error>;
65
66
  }
@@ -1,6 +1,7 @@
1
1
  import type { AllCategoriesResponse } from '../models/AllCategoriesResponse';
2
2
  import type { CategoriesResponse } from '../models/CategoriesResponse';
3
3
  import type { Error } from '../models/Error';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
5
  export declare class CategoriesService {
5
6
  /**
6
7
  * Get a list of Categories by Application type.
@@ -10,7 +11,7 @@ export declare class CategoriesService {
10
11
  * @returns Error Default error response
11
12
  * @throws ApiError
12
13
  */
13
- static getCategories(xDigitalaiAccountId?: string): Promise<AllCategoriesResponse | Error>;
14
+ static getCategories(xDigitalaiAccountId?: string | null): CancelablePromise<AllCategoriesResponse | Error>;
14
15
  /**
15
16
  * Get Categories for a single application type.
16
17
  * Return all Categories for a single application type.
@@ -20,5 +21,5 @@ export declare class CategoriesService {
20
21
  * @returns Error Default error response
21
22
  * @throws ApiError
22
23
  */
23
- static getCategoryByAppType(appType: string, xDigitalaiAccountId?: string): Promise<CategoriesResponse | Error>;
24
+ static getCategoryByAppType(appType: string, xDigitalaiAccountId?: string | null): CancelablePromise<CategoriesResponse | Error>;
24
25
  }
@@ -6,6 +6,7 @@ import type { DashboardView } from '../models/DashboardView';
6
6
  import type { DashboardViewPagedResponse } from '../models/DashboardViewPagedResponse';
7
7
  import type { Error } from '../models/Error';
8
8
  import type { MetadataResponse } from '../models/MetadataResponse';
9
+ import type { CancelablePromise } from '../core/CancelablePromise';
9
10
  export declare class DashboardsService {
10
11
  /**
11
12
  * Get a list of Dashboards.
@@ -16,7 +17,7 @@ export declare class DashboardsService {
16
17
  * @param sort Sort ordering to apply to the query.
17
18
  * @param filter List of filters (each filter is a separate query param, and they are OR'ed).
18
19
  *
19
- * * **Filterable field names**: author_fullname, author_id, bi_type, categories, created_dt, dataset_id, description, external_embedding_id, external_id, id, is_ootb_dashboard, lifecycle_state, name, target_apps, updated_by_fullname, updated_by_id, updated_dt
20
+ * * **Filterable field names**: author_fullname, author_id, bi_type, categories, created_dt, dataset_id, description, external_embedding_id, external_id, featured, id, is_ootb_dashboard, lifecycle_state, name, target_apps, updated_by_fullname, updated_by_id, updated_dt
20
21
  * * **Searchable field names**: author_fullname, categories, description, name, updated_by_fullname
21
22
  *
22
23
  * @param favorite Boolean flag to only return dashboards marked as favorites.
@@ -35,7 +36,7 @@ export declare class DashboardsService {
35
36
  * @returns Error Default error response
36
37
  * @throws ApiError
37
38
  */
38
- static getDashboards(xDigitalaiAccountId?: string, start?: number, count?: number, sort?: string, filter?: Array<string>, favorite?: boolean, q?: string, authorFullname?: string, authorId?: string, biType?: string, description?: string, id?: string, isOotbDashboard?: boolean, lifecycleState?: string, name?: string, targetApp?: string, viewModified?: boolean): Promise<DashboardViewPagedResponse | Error>;
39
+ static getDashboards(xDigitalaiAccountId?: string | null, start?: number, count?: number, sort?: string | null, filter?: Array<string>, favorite?: boolean | null, q?: string | null, authorFullname?: string | null, authorId?: string | null, biType?: string | null, description?: string | null, id?: string | null, isOotbDashboard?: boolean | null, lifecycleState?: string | null, name?: string | null, targetApp?: string | null, viewModified?: boolean | null): CancelablePromise<DashboardViewPagedResponse | Error>;
39
40
  /**
40
41
  * Create a Dashboard definition.
41
42
  * Creates a Dashboard definition.
@@ -45,7 +46,7 @@ export declare class DashboardsService {
45
46
  * @returns Error Default error response
46
47
  * @throws ApiError
47
48
  */
48
- static postDashboards(requestBody: DashboardCreateBody, xDigitalaiAccountId?: string): Promise<DashboardView | Error>;
49
+ static postDashboards(requestBody: DashboardCreateBody, xDigitalaiAccountId?: string | null): CancelablePromise<DashboardView | Error>;
49
50
  /**
50
51
  * Get one Dashboard definition.
51
52
  * Return a single Dashboard definition, selected by ID.
@@ -55,7 +56,7 @@ export declare class DashboardsService {
55
56
  * @returns Error Default error response
56
57
  * @throws ApiError
57
58
  */
58
- static getDashboard(dashboardId: string, xDigitalaiAccountId?: string): Promise<DashboardView | Error>;
59
+ static getDashboard(dashboardId: string, xDigitalaiAccountId?: string | null): CancelablePromise<DashboardView | Error>;
59
60
  /**
60
61
  * Sets a single Dashboard definition.
61
62
  * Sets a Dashboard definition, selected by ID.
@@ -67,7 +68,7 @@ export declare class DashboardsService {
67
68
  * @returns Error Default error response
68
69
  * @throws ApiError
69
70
  */
70
- static putDashboard(dashboardId: string, requestBody: DashboardPutBody, xDigitalaiAccountId?: string, isSync?: boolean): Promise<DashboardView | Error>;
71
+ static putDashboard(dashboardId: string, requestBody: DashboardPutBody, xDigitalaiAccountId?: string | null, isSync?: boolean | null): CancelablePromise<DashboardView | Error>;
71
72
  /**
72
73
  * Updates a single Dashboard definition.
73
74
  * Updates a Dashboard definition, selected by ID.
@@ -79,7 +80,7 @@ export declare class DashboardsService {
79
80
  * @returns Error Default error response
80
81
  * @throws ApiError
81
82
  */
82
- static patchDashboard(dashboardId: string, requestBody: DashboardPatchBody, xDigitalaiAccountId?: string, isSync?: boolean): Promise<DashboardView | Error>;
83
+ static patchDashboard(dashboardId: string, requestBody: DashboardPatchBody, xDigitalaiAccountId?: string | null, isSync?: boolean | null): CancelablePromise<DashboardView | Error>;
83
84
  /**
84
85
  * Delete a Dashboard definition.
85
86
  * Deletes a single Dashboard definition, selected by ID.
@@ -88,7 +89,7 @@ export declare class DashboardsService {
88
89
  * @returns Error Default error response
89
90
  * @throws ApiError
90
91
  */
91
- static deleteDashboard(dashboardId: string, xDigitalaiAccountId?: string): Promise<Error>;
92
+ static deleteDashboard(dashboardId: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
92
93
  /**
93
94
  * Get one in-progress Dashboard definition.
94
95
  * Return a single Dashboard definition with pending changes, selected by ID.
@@ -98,7 +99,7 @@ export declare class DashboardsService {
98
99
  * @returns Error Default error response
99
100
  * @throws ApiError
100
101
  */
101
- static getInProgressDashboard(dashboardId: string, xDigitalaiAccountId?: string): Promise<DashboardView | Error>;
102
+ static getInProgressDashboard(dashboardId: string, xDigitalaiAccountId?: string | null): CancelablePromise<DashboardView | Error>;
102
103
  /**
103
104
  * Create an edit-in-progress version of the dashboard
104
105
  * Create an edit-in-progress version of the dashboard while leaving the original unchanged.
@@ -109,7 +110,7 @@ export declare class DashboardsService {
109
110
  * @returns Error Default error response
110
111
  * @throws ApiError
111
112
  */
112
- static postInProgressDashboard(dashboardId: string, xDigitalaiAccountId?: string, requestBody?: DashboardPatchBody): Promise<DashboardView | Error>;
113
+ static postInProgressDashboard(dashboardId: string, xDigitalaiAccountId?: string | null, requestBody?: DashboardPatchBody): CancelablePromise<DashboardView | Error>;
113
114
  /**
114
115
  * Sets a single Dashboard in-progress definition.
115
116
  * Sets a Dashboard definition with pending changes, selected by ID.
@@ -121,7 +122,7 @@ export declare class DashboardsService {
121
122
  * @returns Error Default error response
122
123
  * @throws ApiError
123
124
  */
124
- static putInProgressDashboard(dashboardId: string, requestBody: DashboardPutBody, xDigitalaiAccountId?: string, isSync?: boolean): Promise<DashboardView | Error>;
125
+ static putInProgressDashboard(dashboardId: string, requestBody: DashboardPutBody, xDigitalaiAccountId?: string | null, isSync?: boolean | null): CancelablePromise<DashboardView | Error>;
125
126
  /**
126
127
  * Updates a single Dashboard in-progress definition.
127
128
  * Updates a Dashboard definition with pending changes, selected by ID.
@@ -133,7 +134,7 @@ export declare class DashboardsService {
133
134
  * @returns Error Default error response
134
135
  * @throws ApiError
135
136
  */
136
- static patchInProgressDashboard(dashboardId: string, requestBody: DashboardPatchBody, xDigitalaiAccountId?: string, isSync?: boolean): Promise<DashboardView | Error>;
137
+ static patchInProgressDashboard(dashboardId: string, requestBody: DashboardPatchBody, xDigitalaiAccountId?: string | null, isSync?: boolean | null): CancelablePromise<DashboardView | Error>;
137
138
  /**
138
139
  * Revert/publish in-progress changes.
139
140
  * Discards or publishes edit in progress dashboard changes.
@@ -143,7 +144,7 @@ export declare class DashboardsService {
143
144
  * @returns Error Default error response
144
145
  * @throws ApiError
145
146
  */
146
- static deleteInProgressDashboard(dashboardId: string, xDigitalaiAccountId?: string, publish?: boolean): Promise<Error>;
147
+ static deleteInProgressDashboard(dashboardId: string, xDigitalaiAccountId?: string | null, publish?: boolean | null): CancelablePromise<Error>;
147
148
  /**
148
149
  * Create a copy of existing dashboard
149
150
  * Create a copy of existing dashboard
@@ -154,7 +155,7 @@ export declare class DashboardsService {
154
155
  * @returns Error Default error response
155
156
  * @throws ApiError
156
157
  */
157
- static copyDashboard(dashboardId: string, xDigitalaiAccountId?: string, requestBody?: DashboardCopyBody): Promise<DashboardView | Error>;
158
+ static copyDashboard(dashboardId: string, xDigitalaiAccountId?: string | null, requestBody?: DashboardCopyBody): CancelablePromise<DashboardView | Error>;
158
159
  /**
159
160
  * Favorite a dashboard
160
161
  * Favorite a dashboard
@@ -164,7 +165,7 @@ export declare class DashboardsService {
164
165
  * @returns Error Default error response
165
166
  * @throws ApiError
166
167
  */
167
- static favoriteDashboard(dashboardId: string, xDigitalaiAccountId?: string): Promise<DashboardView | Error>;
168
+ static favoriteDashboard(dashboardId: string, xDigitalaiAccountId?: string | null): CancelablePromise<DashboardView | Error>;
168
169
  /**
169
170
  * Un-favorite a dashboard
170
171
  * Un-favorite a dashboard
@@ -174,7 +175,7 @@ export declare class DashboardsService {
174
175
  * @returns Error Default error response
175
176
  * @throws ApiError
176
177
  */
177
- static unfavoriteDashboard(dashboardId: string, xDigitalaiAccountId?: string): Promise<DashboardView | Error>;
178
+ static unfavoriteDashboard(dashboardId: string, xDigitalaiAccountId?: string | null): CancelablePromise<DashboardView | Error>;
178
179
  /**
179
180
  * Get Metadata (categories and authors)
180
181
  * Return all Metadata for dashboards optionally filtered by the given parameters
@@ -192,5 +193,5 @@ export declare class DashboardsService {
192
193
  * @returns Error Default error response
193
194
  * @throws ApiError
194
195
  */
195
- static getDashboardsMetadata(xDigitalaiAccountId?: string, filter?: Array<string>, targetApp?: string, biType?: string, isOotbDashboard?: boolean, lifecycleState?: string): Promise<MetadataResponse | Error>;
196
+ static getDashboardsMetadata(xDigitalaiAccountId?: string | null, filter?: Array<string>, targetApp?: string | null, biType?: string | null, isOotbDashboard?: boolean | null, lifecycleState?: string | null): CancelablePromise<MetadataResponse | Error>;
196
197
  }
@@ -1,6 +1,7 @@
1
1
  import type { DatalakeQuery } from '../models/DatalakeQuery';
2
2
  import type { DatalakeResponse } from '../models/DatalakeResponse';
3
3
  import type { Error } from '../models/Error';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
5
  export declare class DatalakeService {
5
6
  /**
6
7
  * [admin] create the datalake for an account
@@ -11,5 +12,5 @@ export declare class DatalakeService {
11
12
  * @returns Error Default error response
12
13
  * @throws ApiError
13
14
  */
14
- static postDatalakeService(requestBody: DatalakeQuery, xDigitalaiAccountId?: string): Promise<DatalakeResponse | Error>;
15
+ static postMetadataDatalake(requestBody: DatalakeQuery, xDigitalaiAccountId?: string | null): CancelablePromise<DatalakeResponse | Error>;
15
16
  }
@@ -1,6 +1,7 @@
1
1
  import type { Entity } from '../models/Entity';
2
2
  import type { EntityPagedResponse } from '../models/EntityPagedResponse';
3
3
  import type { Error } from '../models/Error';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
5
  export declare class EntitiesService {
5
6
  /**
6
7
  * Get a list of Entities.
@@ -18,7 +19,7 @@ export declare class EntitiesService {
18
19
  * @returns Error Default error response
19
20
  * @throws ApiError
20
21
  */
21
- static getEntitiesService(xDigitalaiAccountId?: string, start?: number, count?: number, sort?: string, name?: string, description?: string, originInstanceName?: string, q?: string, id?: string): Promise<EntityPagedResponse | Error>;
22
+ static getMetadataEntities(xDigitalaiAccountId?: string | null, start?: number, count?: number, sort?: string | null, name?: string | null, description?: string | null, originInstanceName?: string | null, q?: string | null, id?: string | null): CancelablePromise<EntityPagedResponse | Error>;
22
23
  /**
23
24
  * Create an Entity.
24
25
  * Creates an Entity, owned by the authenticated API user.
@@ -28,7 +29,7 @@ export declare class EntitiesService {
28
29
  * @returns Error Default error response
29
30
  * @throws ApiError
30
31
  */
31
- static postEntitiesService(requestBody: Entity, xDigitalaiAccountId?: string): Promise<Entity | Error>;
32
+ static postMetadataEntities(requestBody: Entity, xDigitalaiAccountId?: string | null): CancelablePromise<Entity | Error>;
32
33
  /**
33
34
  * Get one Entity.
34
35
  * Return a single Entity, selected by ID.
@@ -38,7 +39,7 @@ export declare class EntitiesService {
38
39
  * @returns Error Default error response
39
40
  * @throws ApiError
40
41
  */
41
- static getEntitiesService1(id: string, xDigitalaiAccountId?: string): Promise<Entity | Error>;
42
+ static getMetadataEntities1(id: string, xDigitalaiAccountId?: string | null): CancelablePromise<Entity | Error>;
42
43
  /**
43
44
  * Update a single Entity.
44
45
  * Updates an Entity, selected by ID.
@@ -49,7 +50,7 @@ export declare class EntitiesService {
49
50
  * @returns Error Default error response
50
51
  * @throws ApiError
51
52
  */
52
- static putEntitiesService(id: string, requestBody: Entity, xDigitalaiAccountId?: string): Promise<Entity | Error>;
53
+ static putMetadataEntities(id: string, requestBody: Entity, xDigitalaiAccountId?: string | null): CancelablePromise<Entity | Error>;
53
54
  /**
54
55
  * Delete a Entity.
55
56
  * Deletes a single Entity, selected by ID.
@@ -58,5 +59,5 @@ export declare class EntitiesService {
58
59
  * @returns Error Default error response
59
60
  * @throws ApiError
60
61
  */
61
- static deleteEntitiesService(id: string, xDigitalaiAccountId?: string): Promise<Error>;
62
+ static deleteMetadataEntities(id: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
62
63
  }
@@ -2,6 +2,7 @@ import type { EntityAttribute } from '../models/EntityAttribute';
2
2
  import type { EntityAttributePagedResponse } from '../models/EntityAttributePagedResponse';
3
3
  import type { EntityAttributeRequest } from '../models/EntityAttributeRequest';
4
4
  import type { Error } from '../models/Error';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
6
  export declare class EntityAttributesService {
6
7
  /**
7
8
  * Get a list of EntityAttributes.
@@ -21,7 +22,7 @@ export declare class EntityAttributesService {
21
22
  * @returns Error Default error response
22
23
  * @throws ApiError
23
24
  */
24
- static getEntityAttributesService(xDigitalaiAccountId?: string, start?: number, count?: number, sort?: string, name?: string, description?: string, entityName?: string, originInstanceName?: string, isKey?: boolean, q?: string, id?: string): Promise<EntityAttributePagedResponse | Error>;
25
+ static getMetadataEntityattributes(xDigitalaiAccountId?: string | null, start?: number, count?: number, sort?: string | null, name?: string | null, description?: string | null, entityName?: string | null, originInstanceName?: string | null, isKey?: boolean | null, q?: string | null, id?: string | null): CancelablePromise<EntityAttributePagedResponse | Error>;
25
26
  /**
26
27
  * Create an EntityAttribute.
27
28
  * Creates an EntityAttribute, owned by the authenticated API user.
@@ -31,7 +32,7 @@ export declare class EntityAttributesService {
31
32
  * @returns Error Default error response
32
33
  * @throws ApiError
33
34
  */
34
- static postEntityAttributesService(requestBody: EntityAttribute, xDigitalaiAccountId?: string): Promise<EntityAttribute | Error>;
35
+ static postMetadataEntityattributes(requestBody: EntityAttribute, xDigitalaiAccountId?: string | null): CancelablePromise<EntityAttribute | Error>;
35
36
  /**
36
37
  * Create or Update multiple entity attributes.
37
38
  * Creates an EntityAttribute incase id of the attribute is not present in the payload else modify the corresponding property of the attribute, owned by the authenticated API user.
@@ -41,7 +42,7 @@ export declare class EntityAttributesService {
41
42
  * @returns Error Default error response
42
43
  * @throws ApiError
43
44
  */
44
- static putEntityAttributesService(requestBody: EntityAttributeRequest, xDigitalaiAccountId?: string): Promise<EntityAttributeRequest | Error>;
45
+ static putMetadataEntityattributes(requestBody: EntityAttributeRequest, xDigitalaiAccountId?: string | null): CancelablePromise<EntityAttributeRequest | Error>;
45
46
  /**
46
47
  * Get one EntityAttribute.
47
48
  * Return a single EntityAttribute, selected by ID.
@@ -51,7 +52,7 @@ export declare class EntityAttributesService {
51
52
  * @returns Error Default error response
52
53
  * @throws ApiError
53
54
  */
54
- static getEntityAttributesService1(id: string, xDigitalaiAccountId?: string): Promise<EntityAttribute | Error>;
55
+ static getMetadataEntityattributes1(id: string, xDigitalaiAccountId?: string | null): CancelablePromise<EntityAttribute | Error>;
55
56
  /**
56
57
  * Update a single EntityAttribute.
57
58
  * Updates an EntityAttribute, selected by ID.
@@ -62,7 +63,7 @@ export declare class EntityAttributesService {
62
63
  * @returns Error Default error response
63
64
  * @throws ApiError
64
65
  */
65
- static putEntityAttributesService1(id: string, requestBody: EntityAttribute, xDigitalaiAccountId?: string): Promise<EntityAttribute | Error>;
66
+ static putMetadataEntityattributes1(id: string, requestBody: EntityAttribute, xDigitalaiAccountId?: string | null): CancelablePromise<EntityAttribute | Error>;
66
67
  /**
67
68
  * Delete a EntityAttribute.
68
69
  * Deletes a single EntityAttribute, selected by ID.
@@ -71,5 +72,5 @@ export declare class EntityAttributesService {
71
72
  * @returns Error Default error response
72
73
  * @throws ApiError
73
74
  */
74
- static deleteEntityAttributesService(id: string, xDigitalaiAccountId?: string): Promise<Error>;
75
+ static deleteMetadataEntityattributes(id: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
75
76
  }