@digital-ai/dot-components 5.5.1 → 5.7.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.
Files changed (35) hide show
  1. package/index.esm.js +1007 -1020
  2. package/package.json +1 -1
  3. package/src/lib/components/analytics/dashboard-actions/DashboardOptionsMenu.d.ts +1 -3
  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 +1 -3
  6. package/src/lib/components/analytics/metadata-api/openapi/core/ApiRequestOptions.d.ts +1 -2
  7. package/src/lib/components/analytics/metadata-api/openapi/core/OpenAPI.d.ts +7 -8
  8. package/src/lib/components/analytics/metadata-api/openapi/core/request.d.ts +4 -25
  9. package/src/lib/components/analytics/metadata-api/openapi/index.d.ts +0 -3
  10. package/src/lib/components/analytics/metadata-api/openapi/models/DashboardCreateBody.d.ts +0 -4
  11. package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPatchBody.d.ts +0 -4
  12. package/src/lib/components/analytics/metadata-api/openapi/models/DashboardPutBody.d.ts +0 -4
  13. package/src/lib/components/analytics/metadata-api/openapi/models/DashboardView.d.ts +1 -5
  14. package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentCreateBody.d.ts +1 -1
  15. package/src/lib/components/analytics/metadata-api/openapi/models/HelpContentPutBody.d.ts +1 -1
  16. package/src/lib/components/analytics/metadata-api/openapi/services/BiService.d.ts +6 -7
  17. package/src/lib/components/analytics/metadata-api/openapi/services/CategoriesService.d.ts +2 -3
  18. package/src/lib/components/analytics/metadata-api/openapi/services/DashboardsService.d.ts +16 -17
  19. package/src/lib/components/analytics/metadata-api/openapi/services/DatalakeService.d.ts +1 -2
  20. package/src/lib/components/analytics/metadata-api/openapi/services/EntitiesService.d.ts +5 -6
  21. package/src/lib/components/analytics/metadata-api/openapi/services/EntityAttributesService.d.ts +6 -7
  22. package/src/lib/components/analytics/metadata-api/openapi/services/EntityClassService.d.ts +5 -6
  23. package/src/lib/components/analytics/metadata-api/openapi/services/HelpContentService.d.ts +7 -8
  24. package/src/lib/components/analytics/metadata-api/openapi/services/MrProxyService.d.ts +4 -5
  25. package/src/lib/components/analytics/metadata-api/openapi/services/OriginInstancesService.d.ts +5 -6
  26. package/src/lib/components/analytics/metadata-api/openapi/services/OriginsService.d.ts +5 -6
  27. package/src/lib/components/analytics/metadata-api/openapi/services/ProductsService.d.ts +10 -11
  28. package/src/lib/components/analytics/metadata-api/openapi/services/UtilityService.d.ts +6 -7
  29. package/src/lib/components/index.d.ts +2 -0
  30. package/src/lib/components/navigation-rail/NavigationRail.d.ts +5 -3
  31. package/src/lib/components/select/Select.d.ts +18 -0
  32. package/src/lib/components/select/Select.styles.d.ts +9 -0
  33. package/src/lib/components/select/index.d.ts +2 -0
  34. package/src/lib/components/analytics/metadata-api/openapi/core/CancelablePromise.d.ts +0 -20
  35. package/src/lib/components/analytics/metadata-api/openapi/models/X_Digitalai_Account_ID.d.ts +0 -4
@@ -3,7 +3,6 @@ import type { HelpContent } from '../models/HelpContent';
3
3
  import type { HelpContentCreateBody } from '../models/HelpContentCreateBody';
4
4
  import type { HelpContentPagedResponse } from '../models/HelpContentPagedResponse';
5
5
  import type { HelpContentPutBody } from '../models/HelpContentPutBody';
6
- import type { CancelablePromise } from '../core/CancelablePromise';
7
6
  export declare class HelpContentService {
8
7
  /**
9
8
  * Gets help content definitions.
@@ -13,17 +12,17 @@ export declare class HelpContentService {
13
12
  * @returns Error Default error response
14
13
  * @throws ApiError
15
14
  */
16
- static getHelpContent(xDigitalaiAccountId?: string | null): CancelablePromise<HelpContentPagedResponse | Error>;
15
+ static getHelpContent(xDigitalaiAccountId?: string): Promise<HelpContentPagedResponse | Error>;
17
16
  /**
18
17
  * Upload an HTML file to be displayed as help content.
19
18
  * Upload help content.
20
- * @param formData
19
+ * @param requestBody
21
20
  * @param xDigitalaiAccountId Perform the requested operation in the context of the Digital.ai account represented by this GUID. <em>Requires elevated permissions.</em>
22
21
  * @returns HelpContent Content uploaded.
23
22
  * @returns Error Default error response
24
23
  * @throws ApiError
25
24
  */
26
- static createHelpContent(formData: HelpContentCreateBody, xDigitalaiAccountId?: string | null): CancelablePromise<HelpContent | Error>;
25
+ static createHelpContent(requestBody: HelpContentCreateBody, xDigitalaiAccountId?: string): Promise<HelpContent | Error>;
27
26
  /**
28
27
  * Get a help content definition.
29
28
  * Return a single help content definition, selected by ID.
@@ -33,18 +32,18 @@ export declare class HelpContentService {
33
32
  * @returns Error Default error response
34
33
  * @throws ApiError
35
34
  */
36
- static getHelpContentById(helpContentId: string, xDigitalaiAccountId?: string | null): CancelablePromise<HelpContent | Error>;
35
+ static getHelpContentById(helpContentId: string, xDigitalaiAccountId?: string): Promise<HelpContent | Error>;
37
36
  /**
38
37
  * Update a help content definition.
39
38
  * Update a single help content definition, selected by ID.
40
39
  * @param helpContentId
41
- * @param formData
40
+ * @param requestBody
42
41
  * @param xDigitalaiAccountId Perform the requested operation in the context of the Digital.ai account represented by this GUID. <em>Requires elevated permissions.</em>
43
42
  * @returns HelpContent OK
44
43
  * @returns Error Default error response
45
44
  * @throws ApiError
46
45
  */
47
- static putHelpContentById(helpContentId: string, formData: HelpContentPutBody, xDigitalaiAccountId?: string | null): CancelablePromise<HelpContent | Error>;
46
+ static putHelpContentById(helpContentId: string, requestBody: HelpContentPutBody, xDigitalaiAccountId?: string): Promise<HelpContent | Error>;
48
47
  /**
49
48
  * Delete a help content definition.
50
49
  * Delete a single help content definition, selected by ID.
@@ -53,5 +52,5 @@ export declare class HelpContentService {
53
52
  * @returns Error Default error response
54
53
  * @throws ApiError
55
54
  */
56
- static deleteHelpContentById(helpContentId: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
55
+ static deleteHelpContentById(helpContentId: string, xDigitalaiAccountId?: string): Promise<Error>;
57
56
  }
@@ -1,5 +1,4 @@
1
1
  import type { Error } from '../models/Error';
2
- import type { CancelablePromise } from '../core/CancelablePromise';
3
2
  export declare class MrProxyService {
4
3
  /**
5
4
  * Passes the provided GET api path through to the metadata repository API.
@@ -10,7 +9,7 @@ export declare class MrProxyService {
10
9
  * @returns Error Default error response
11
10
  * @throws ApiError
12
11
  */
13
- static mrGet(mrPath: string, xDigitalaiAccountId?: string | null): CancelablePromise<any | Error>;
12
+ static mrGet(mrPath: string, xDigitalaiAccountId?: string): Promise<any | Error>;
14
13
  /**
15
14
  * Passes the provided POST api path through to the metadata repository API.
16
15
  * Returns the metadata repository response.
@@ -19,7 +18,7 @@ export declare class MrProxyService {
19
18
  * @returns Error Default error response
20
19
  * @throws ApiError
21
20
  */
22
- static mrPost(mrPath: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
21
+ static mrPost(mrPath: string, xDigitalaiAccountId?: string): Promise<Error>;
23
22
  /**
24
23
  * Passes the provided PUT api path through to the metadata repository API.
25
24
  * Returns the metadata repository response.
@@ -28,7 +27,7 @@ export declare class MrProxyService {
28
27
  * @returns Error Default error response
29
28
  * @throws ApiError
30
29
  */
31
- static mrPut(mrPath: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
30
+ static mrPut(mrPath: string, xDigitalaiAccountId?: string): Promise<Error>;
32
31
  /**
33
32
  * Passes the provided DELETE api path through to the metadata repository API.
34
33
  * Returns the metadata repository response.
@@ -37,5 +36,5 @@ export declare class MrProxyService {
37
36
  * @returns Error Default error response
38
37
  * @throws ApiError
39
38
  */
40
- static mrDelete(mrPath: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
39
+ static mrDelete(mrPath: string, xDigitalaiAccountId?: string): Promise<Error>;
41
40
  }
@@ -1,7 +1,6 @@
1
1
  import type { Error } from '../models/Error';
2
2
  import type { OriginInstance } from '../models/OriginInstance';
3
3
  import type { OriginInstancePagedResponse } from '../models/OriginInstancePagedResponse';
4
- import type { CancelablePromise } from '../core/CancelablePromise';
5
4
  export declare class OriginInstancesService {
6
5
  /**
7
6
  * Get a list of OriginInstances.
@@ -19,7 +18,7 @@ export declare class OriginInstancesService {
19
18
  * @returns Error Default error response
20
19
  * @throws ApiError
21
20
  */
22
- static getMetadataOrigininstances(xDigitalaiAccountId?: string | null, start?: number, count?: number, sort?: string | null, name?: string | null, uniqueString?: string | null, description?: string | null, q?: string | null, id?: string | null): CancelablePromise<OriginInstancePagedResponse | Error>;
21
+ static getOriginInstancesService(xDigitalaiAccountId?: string, start?: number, count?: number, sort?: string, name?: string, uniqueString?: string, description?: string, q?: string, id?: string): Promise<OriginInstancePagedResponse | Error>;
23
22
  /**
24
23
  * Create an OriginInstance.The origin name or origin id is required
25
24
  * Creates an OriginInstance, owned by the authenticated API user.
@@ -29,7 +28,7 @@ export declare class OriginInstancesService {
29
28
  * @returns Error Default error response
30
29
  * @throws ApiError
31
30
  */
32
- static postMetadataOrigininstances(requestBody: OriginInstance, xDigitalaiAccountId?: string | null): CancelablePromise<OriginInstance | Error>;
31
+ static postOriginInstancesService(requestBody: OriginInstance, xDigitalaiAccountId?: string): Promise<OriginInstance | Error>;
33
32
  /**
34
33
  * Get one OriginInstance.
35
34
  * Return a single OriginInstance, selected by name or uniquestring or id.
@@ -39,7 +38,7 @@ export declare class OriginInstancesService {
39
38
  * @returns Error Default error response
40
39
  * @throws ApiError
41
40
  */
42
- static getMetadataOrigininstances1(nameOrUniquestringOrId: string, xDigitalaiAccountId?: string | null): CancelablePromise<OriginInstance | Error>;
41
+ static getOriginInstancesService1(nameOrUniquestringOrId: string, xDigitalaiAccountId?: string): Promise<OriginInstance | Error>;
43
42
  /**
44
43
  * Update a single OriginInstance.
45
44
  * Updates an OriginInstance, selected by Name/Unique string/ID.
@@ -50,7 +49,7 @@ export declare class OriginInstancesService {
50
49
  * @returns Error Default error response
51
50
  * @throws ApiError
52
51
  */
53
- static putMetadataOrigininstances(nameOrUniquestringOrId: string, requestBody: OriginInstance, xDigitalaiAccountId?: string | null): CancelablePromise<OriginInstance | Error>;
52
+ static putOriginInstancesService(nameOrUniquestringOrId: string, requestBody: OriginInstance, xDigitalaiAccountId?: string): Promise<OriginInstance | Error>;
54
53
  /**
55
54
  * Delete a OriginInstance.
56
55
  * Deletes a single OriginInstance, selected by name or uniquestring or id.
@@ -59,5 +58,5 @@ export declare class OriginInstancesService {
59
58
  * @returns Error Default error response
60
59
  * @throws ApiError
61
60
  */
62
- static deleteMetadataOrigininstances(nameOrUniquestringOrId: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
61
+ static deleteOriginInstancesService(nameOrUniquestringOrId: string, xDigitalaiAccountId?: string): Promise<Error>;
63
62
  }
@@ -1,7 +1,6 @@
1
1
  import type { Error } from '../models/Error';
2
2
  import type { Origin } from '../models/Origin';
3
3
  import type { OriginPagedResponse } from '../models/OriginPagedResponse';
4
- import type { CancelablePromise } from '../core/CancelablePromise';
5
4
  export declare class OriginsService {
6
5
  /**
7
6
  * Get a list of Origins.
@@ -19,7 +18,7 @@ export declare class OriginsService {
19
18
  * @returns Error Default error response
20
19
  * @throws ApiError
21
20
  */
22
- static getMetadataOrigins(xDigitalaiAccountId?: string | null, start?: number, count?: number, sort?: string | null, name?: string | null, description?: string | null, isPlatformOrigin?: boolean, q?: string | null, id?: string | null): CancelablePromise<OriginPagedResponse | Error>;
21
+ static getOriginsService(xDigitalaiAccountId?: string, start?: number, count?: number, sort?: string, name?: string, description?: string, isPlatformOrigin?: boolean, q?: string, id?: string): Promise<OriginPagedResponse | Error>;
23
22
  /**
24
23
  * Create an Origin.
25
24
  * Creates an Origin, owned by the authenticated API user.
@@ -29,7 +28,7 @@ export declare class OriginsService {
29
28
  * @returns Error Default error response
30
29
  * @throws ApiError
31
30
  */
32
- static postMetadataOrigins(requestBody: Origin, xDigitalaiAccountId?: string | null): CancelablePromise<Origin | Error>;
31
+ static postOriginsService(requestBody: Origin, xDigitalaiAccountId?: string): Promise<Origin | Error>;
33
32
  /**
34
33
  * Get one Origin.
35
34
  * Return a single Origin, selected by ID.
@@ -39,7 +38,7 @@ export declare class OriginsService {
39
38
  * @returns Error Default error response
40
39
  * @throws ApiError
41
40
  */
42
- static getMetadataOrigins1(id: string, xDigitalaiAccountId?: string | null): CancelablePromise<Origin | Error>;
41
+ static getOriginsService1(id: string, xDigitalaiAccountId?: string): Promise<Origin | Error>;
43
42
  /**
44
43
  * Update a single Origin.
45
44
  * Updates an Origin, selected by ID.
@@ -50,7 +49,7 @@ export declare class OriginsService {
50
49
  * @returns Error Default error response
51
50
  * @throws ApiError
52
51
  */
53
- static putMetadataOrigins(id: string, requestBody: Origin, xDigitalaiAccountId?: string | null): CancelablePromise<Origin | Error>;
52
+ static putOriginsService(id: string, requestBody: Origin, xDigitalaiAccountId?: string): Promise<Origin | Error>;
54
53
  /**
55
54
  * Delete a Origin.
56
55
  * Deletes a single Origin, selected by ID.
@@ -59,5 +58,5 @@ export declare class OriginsService {
59
58
  * @returns Error Default error response
60
59
  * @throws ApiError
61
60
  */
62
- static deleteMetadataOrigins(id: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
61
+ static deleteOriginsService(id: string, xDigitalaiAccountId?: string): Promise<Error>;
63
62
  }
@@ -6,7 +6,6 @@ import type { ProductSourceIntegrationTestCreate } from '../models/ProductSource
6
6
  import type { ProductSourceIntegrationUpdate } from '../models/ProductSourceIntegrationUpdate';
7
7
  import type { ProductsResponse } from '../models/ProductsResponse';
8
8
  import type { ProductView } from '../models/ProductView';
9
- import type { CancelablePromise } from '../core/CancelablePromise';
10
9
  export declare class ProductsService {
11
10
  /**
12
11
  * Get a list of enabled products
@@ -22,7 +21,7 @@ export declare class ProductsService {
22
21
  * @returns Error Default error response
23
22
  * @throws ApiError
24
23
  */
25
- static getProducts(xDigitalaiAccountId?: string | null, isSync?: boolean | null, filter?: Array<string>): CancelablePromise<ProductsResponse | Error>;
24
+ static getProducts(xDigitalaiAccountId?: string, isSync?: boolean, filter?: Array<string>): Promise<ProductsResponse | Error>;
26
25
  /**
27
26
  * Get single product information.
28
27
  * Returns a single product definition, selected by ID.
@@ -33,7 +32,7 @@ export declare class ProductsService {
33
32
  * @returns Error Default error response
34
33
  * @throws ApiError
35
34
  */
36
- static getProductById(productId: string, xDigitalaiAccountId?: string | null, isSync?: boolean | null): CancelablePromise<ProductView | Error>;
35
+ static getProductById(productId: string, xDigitalaiAccountId?: string, isSync?: boolean): Promise<ProductView | Error>;
37
36
  /**
38
37
  * Creates a source integration and associates it with the product
39
38
  * Returns new source integration information.
@@ -44,7 +43,7 @@ export declare class ProductsService {
44
43
  * @returns ProductSourceIntegration Created
45
44
  * @throws ApiError
46
45
  */
47
- static createProductIntegration(productId: string, requestBody: ProductSourceIntegrationCreate, xDigitalaiAccountId?: string | null): CancelablePromise<Error | ProductSourceIntegration>;
46
+ static createProductIntegration(productId: string, requestBody: ProductSourceIntegrationCreate, xDigitalaiAccountId?: string): Promise<Error | ProductSourceIntegration>;
48
47
  /**
49
48
  * Gets product source integration data
50
49
  * @param integrationId
@@ -54,7 +53,7 @@ export declare class ProductsService {
54
53
  * @returns Error Default error response
55
54
  * @throws ApiError
56
55
  */
57
- static getProductIntegration(integrationId: string, productId: string, xDigitalaiAccountId?: string | null): CancelablePromise<ProductSourceIntegration | Error>;
56
+ static getProductIntegration(integrationId: string, productId: string, xDigitalaiAccountId?: string): Promise<ProductSourceIntegration | Error>;
58
57
  /**
59
58
  * Updates product source integration
60
59
  * @param integrationId
@@ -65,7 +64,7 @@ export declare class ProductsService {
65
64
  * @returns Error Default error response
66
65
  * @throws ApiError
67
66
  */
68
- static updateProductIntegration(integrationId: string, productId: string, requestBody: ProductSourceIntegrationUpdate, xDigitalaiAccountId?: string | null): CancelablePromise<ProductSourceIntegration | Error>;
67
+ static updateProductIntegration(integrationId: string, productId: string, requestBody: ProductSourceIntegrationUpdate, xDigitalaiAccountId?: string): Promise<ProductSourceIntegration | Error>;
69
68
  /**
70
69
  * Removes an integration from the product
71
70
  * @param integrationId
@@ -74,7 +73,7 @@ export declare class ProductsService {
74
73
  * @returns Error Default error response
75
74
  * @throws ApiError
76
75
  */
77
- static removeProductIntegration(integrationId: string, productId: string, xDigitalaiAccountId?: string | null): CancelablePromise<Error>;
76
+ static removeProductIntegration(integrationId: string, productId: string, xDigitalaiAccountId?: string): Promise<Error>;
78
77
  /**
79
78
  * Starts a new test for a product source integration
80
79
  * @param integrationId
@@ -84,7 +83,7 @@ export declare class ProductsService {
84
83
  * @returns Error Default error response
85
84
  * @throws ApiError
86
85
  */
87
- static startTestForProductIntegration(integrationId: string, productId: string, xDigitalaiAccountId?: string | null): CancelablePromise<ProductSourceIntegration | Error>;
86
+ static startTestForProductIntegration(integrationId: string, productId: string, xDigitalaiAccountId?: string): Promise<ProductSourceIntegration | Error>;
88
87
  /**
89
88
  * Removes test info from a product source integration
90
89
  * @param integrationId
@@ -94,7 +93,7 @@ export declare class ProductsService {
94
93
  * @returns Error Default error response
95
94
  * @throws ApiError
96
95
  */
97
- static removeTestForProductIntegration(integrationId: string, productId: string, xDigitalaiAccountId?: string | null): CancelablePromise<ProductSourceIntegration | Error>;
96
+ static removeTestForProductIntegration(integrationId: string, productId: string, xDigitalaiAccountId?: string): Promise<ProductSourceIntegration | Error>;
98
97
  /**
99
98
  * Starts a new connection test for a source integration
100
99
  * @param productId
@@ -104,7 +103,7 @@ export declare class ProductsService {
104
103
  * @returns ProductSourceIntegrationTest Created
105
104
  * @throws ApiError
106
105
  */
107
- static createSourceIntegrationTest(productId: string, requestBody: ProductSourceIntegrationTestCreate, xDigitalaiAccountId?: string | null): CancelablePromise<Error | ProductSourceIntegrationTest>;
106
+ static createSourceIntegrationTest(productId: string, requestBody: ProductSourceIntegrationTestCreate, xDigitalaiAccountId?: string): Promise<Error | ProductSourceIntegrationTest>;
108
107
  /**
109
108
  * Gets source integration test info
110
109
  * @param productId
@@ -114,5 +113,5 @@ export declare class ProductsService {
114
113
  * @returns Error Default error response
115
114
  * @throws ApiError
116
115
  */
117
- static getSourceIntegrationTest(productId: string, testId: string, xDigitalaiAccountId?: string | null): CancelablePromise<ProductSourceIntegrationTest | Error>;
116
+ static getSourceIntegrationTest(productId: string, testId: string, xDigitalaiAccountId?: string): Promise<ProductSourceIntegrationTest | Error>;
118
117
  }
@@ -2,7 +2,6 @@ import type { Error } from '../models/Error';
2
2
  import type { HealthCheckResponse } from '../models/HealthCheckResponse';
3
3
  import type { TenantInfo } from '../models/TenantInfo';
4
4
  import type { VersionResponse } from '../models/VersionResponse';
5
- import type { CancelablePromise } from '../core/CancelablePromise';
6
5
  export declare class UtilityService {
7
6
  /**
8
7
  * An aliveness check, also verifies database connectivity.
@@ -10,7 +9,7 @@ export declare class UtilityService {
10
9
  * @returns Error Default error response
11
10
  * @throws ApiError
12
11
  */
13
- static getMetadataUtilityPing(): CancelablePromise<Error>;
12
+ static getUtilityService(): Promise<Error>;
14
13
  /**
15
14
  * Version
16
15
  * Returns information about the version of the service.
@@ -18,7 +17,7 @@ export declare class UtilityService {
18
17
  * @returns Error Default error response
19
18
  * @throws ApiError
20
19
  */
21
- static getMetadataUtilityVersion(): CancelablePromise<VersionResponse | Error>;
20
+ static getUtilityService1(): Promise<VersionResponse | Error>;
22
21
  /**
23
22
  * Health check
24
23
  * Return information about the health of the service.
@@ -26,7 +25,7 @@ export declare class UtilityService {
26
25
  * @returns Error Default error response
27
26
  * @throws ApiError
28
27
  */
29
- static getMetadataUtilityHealthcheck(): CancelablePromise<HealthCheckResponse | Error>;
28
+ static getUtilityService2(): Promise<HealthCheckResponse | Error>;
30
29
  /**
31
30
  * Prometheus metrics
32
31
  * Return service metrics in a Prometheus-friendly format.
@@ -34,7 +33,7 @@ export declare class UtilityService {
34
33
  * @returns Error Default error response
35
34
  * @throws ApiError
36
35
  */
37
- static getMetadataUtilityPrometheus(): CancelablePromise<any | Error>;
36
+ static getUtilityService3(): Promise<any | Error>;
38
37
  /**
39
38
  * NOC Server health
40
39
  * Returns 201 if the NOC server is alive and configured.
@@ -43,7 +42,7 @@ export declare class UtilityService {
43
42
  * @returns Error Default error response
44
43
  * @throws ApiError
45
44
  */
46
- static getMetadataUtilityNoc(xDigitalaiNocInstance?: string | null): CancelablePromise<any | Error>;
45
+ static getUtilityService4(xDigitalaiNocInstance?: string): Promise<any | Error>;
47
46
  /**
48
47
  * [EXPERIMENTAL] Get Tenant information specific to this Service.
49
48
  * Returns information about a single Tenant identified by account/tenant ID.
@@ -52,5 +51,5 @@ export declare class UtilityService {
52
51
  * @returns Error Default error response
53
52
  * @throws ApiError
54
53
  */
55
- static getMetadataUtilityTenant(xDigitalaiAccountId?: string | null): CancelablePromise<TenantInfo | Error>;
54
+ static getUtilityService5(xDigitalaiAccountId?: string): Promise<TenantInfo | Error>;
56
55
  }
@@ -57,6 +57,7 @@ export type { ChipTooltipProps, ChipProps, ChipSize } from './chip/Chip';
57
57
  export type { SearchProps } from './search';
58
58
  export type { ToggleSwitchProps, ToggleSwitchValue, ToggleSwitchOption, ToggleSwitchSingleValue, } from './toggle-switch';
59
59
  export type { ColorPickerProps, ColorResult, HsvaColor, SwatchPresetColor, } from './color-picker';
60
+ export type { SelectProps, SelectOption } from './select';
60
61
  export { DotAccordion } from './accordion/Accordion';
61
62
  export { DotActionToolbar } from './action-toolbar/ActionToolbar';
62
63
  export { DotAlertBanner } from './alert-banner/AlertBanner';
@@ -147,3 +148,4 @@ export { DotSearch } from './search';
147
148
  export { DotToggleSwitch } from './toggle-switch';
148
149
  export { DotColorPicker } from './color-picker';
149
150
  export { useKeyPress } from '../hooks/useKeyPress';
151
+ export { DotSelect } from './select';
@@ -7,19 +7,21 @@ export interface RailItem {
7
7
  ariaLabel?: string;
8
8
  /** Optional badge which will be displayed over an icon **/
9
9
  iconBadge?: RailIconBadge;
10
- /** Id of the icon shown in the rail item */
10
+ /** ID of the icon shown in the rail item */
11
11
  iconId: string;
12
12
  /** text displayed or title text if icon used */
13
13
  title: string;
14
14
  }
15
15
  export interface NavigationRailProps extends CommonProps {
16
+ /** default rail index (use when component is not controlled) */
17
+ defaultIndex?: number;
16
18
  /** onChange callback */
17
19
  onChange?: (index: number) => void;
18
20
  /** controls the position of the rail items */
19
21
  railItemPosition?: RailItemsPosition;
20
22
  /** list of rail items */
21
23
  railItems: Array<RailItem>;
22
- /** index of selected rail item */
24
+ /** index of selected rail item (use in controlled mode) */
23
25
  selectedIndex?: number;
24
26
  }
25
- export declare const DotNavigationRail: ({ ariaLabel, className, "data-testid": dataTestId, onChange, railItemPosition, railItems, selectedIndex, }: NavigationRailProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const DotNavigationRail: ({ ariaLabel, className, "data-testid": dataTestId, defaultIndex, onChange, railItemPosition, railItems, selectedIndex, }: NavigationRailProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { SelectChangeEvent } from '@mui/material';
3
+ import { InputProps } from '../input-form-fields/InputFormFields.propTypes';
4
+ export interface SelectOption {
5
+ /** options that appear in dropdown */
6
+ option: string;
7
+ /** value of input field when option is selected */
8
+ value: string;
9
+ }
10
+ export interface SelectProps extends Omit<InputProps, 'ai' | 'endIcon' | 'endText' | 'max' | 'maxLength' | 'min' | 'minLength' | 'onChange' | 'shrink' | 'startIcon' | 'success' | 'type' | 'warning'> {
11
+ minWidth?: number;
12
+ onChange?: (event: SelectChangeEvent) => void;
13
+ /** options of select dropdown */
14
+ options: Array<SelectOption>;
15
+ /** render the option */
16
+ renderOption?: (option: SelectOption) => ReactNode;
17
+ }
18
+ export declare const DotSelect: ({ ariaLabel, autoFocus, className, defaultValue, "data-pendoid": dataPendoId, "data-testid": dataTestId, disabled, error, fullWidth, helperText, id, inputRef, label, minWidth, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, persistentLabel, size, readOnly, required, value, options, renderOption, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { inputSizeOptions } from '../input-form-fields/InputFormFields.propTypes';
2
+ export declare const rootClassName = "dot-select";
3
+ interface StyledSelectContainerProps {
4
+ persistentLabel?: boolean;
5
+ size?: inputSizeOptions;
6
+ }
7
+ export declare const StyledSelectContainer: import("styled-components").StyledComponent<"div", any, StyledSelectContainerProps, never>;
8
+ export declare const StyledMenuItem: import("styled-components").StyledComponent<import("@mui/material").ExtendButtonBase<import("@mui/material").MenuItemTypeMap<{}, "li">>, any, {}, never>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export type { SelectProps, SelectOption } from './Select';
2
+ export { DotSelect } from './Select';
@@ -1,20 +0,0 @@
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,4 +0,0 @@
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;