@gooddata/sdk-backend-spi 10.9.0-alpha.9 → 10.10.0-alpha.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.
@@ -1,38 +1,84 @@
1
- import { IWebhookMetadataObject, IWebhookMetadataObjectDefinition } from "@gooddata/sdk-model";
1
+ import { INotificationChannelDefinitionObject, IWebhookDefinitionObject, IWebhookDefinition, ISmtpDefinitionObject, ISmtpDefinition } from "@gooddata/sdk-model";
2
2
  /**
3
3
  * This service provides access to organization notifications channels.
4
4
  *
5
5
  * @alpha
6
6
  */
7
7
  export interface IOrganizationNotificationChannelService {
8
+ /**
9
+ * Get all notification channels
10
+ */
11
+ getAll(): Promise<INotificationChannelDefinitionObject[]>;
12
+ /**
13
+ * Delete channel
14
+ *
15
+ * @param id - id of the channel
16
+ * @returns Promise resolved when the channel is deleted.
17
+ */
18
+ deleteChannel(id: string): Promise<void>;
19
+ /**
20
+ * Get all emails
21
+ *
22
+ * @returns Promise resolved with array of emails.
23
+ * @throws In case of error.
24
+ */
25
+ getEmails(): Promise<ISmtpDefinitionObject[]>;
26
+ /**
27
+ * Get email by id
28
+ *
29
+ * @param id - id of the smtp
30
+ * @returns Promise resolved with smtp definition or undefined if not found.
31
+ */
32
+ getEmail(id: string): Promise<ISmtpDefinitionObject>;
33
+ /**
34
+ * Create new email
35
+ *
36
+ * @param smtp - definition of the smtp
37
+ * @returns Promise resolved with created smtp.
38
+ */
39
+ createEmail(smtp: ISmtpDefinition): Promise<ISmtpDefinitionObject>;
40
+ /**
41
+ * Update existing email
42
+ *
43
+ * @param smtp - definition of the smtp
44
+ * @returns Promise resolved when the smtp is updated.
45
+ */
46
+ updateEmail(smtp: ISmtpDefinitionObject): Promise<ISmtpDefinitionObject>;
47
+ /**
48
+ * Delete email
49
+ *
50
+ * @param id - id of the smtp
51
+ * @returns Promise resolved when the smtp is deleted.
52
+ */
53
+ deleteEmail(id: string): Promise<void>;
8
54
  /**
9
55
  * Get all webhooks
10
56
  *
11
57
  * @returns Promise resolved with array of webhooks.
12
58
  * @throws In case of error.
13
59
  */
14
- getWebhooks(): Promise<IWebhookMetadataObject[]>;
60
+ getWebhooks(): Promise<IWebhookDefinitionObject[]>;
15
61
  /**
16
62
  * Get webhook by id
17
63
  *
18
64
  * @param id - id of the webhook
19
65
  * @returns Promise resolved with webhook definition or undefined if not found.
20
66
  */
21
- getWebhook(id: string): Promise<IWebhookMetadataObject>;
67
+ getWebhook(id: string): Promise<IWebhookDefinitionObject>;
22
68
  /**
23
69
  * Create new webhook
24
70
  *
25
71
  * @param webhook - definition of the webhook
26
72
  * @returns Promise resolved with created webhook.
27
73
  */
28
- createWebhook(webhook: IWebhookMetadataObjectDefinition): Promise<IWebhookMetadataObject>;
74
+ createWebhook(webhook: IWebhookDefinition): Promise<IWebhookDefinitionObject>;
29
75
  /**
30
76
  * Update existing webhook
31
77
  *
32
78
  * @param webhook - definition of the webhook
33
79
  * @returns Promise resolved when the webhook is updated.
34
80
  */
35
- updateWebhook(webhook: IWebhookMetadataObject): Promise<IWebhookMetadataObject>;
81
+ updateWebhook(webhook: IWebhookDefinitionObject): Promise<IWebhookDefinitionObject>;
36
82
  /**
37
83
  * Delete webhook
38
84
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organization/notificationChannels/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAE/F;;;;GAIG;AACH,MAAM,WAAW,uCAAuC;IACpD;;;;;OAKG;IACH,WAAW,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAEjD;;;;;OAKG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAExD;;;;;OAKG;IACH,aAAa,CAAC,OAAO,EAAE,gCAAgC,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;I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AkB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAE9E;;;;;OAKG;IACH,aAAa,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAEpF;;;;;OAKG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C"}
@@ -71,6 +71,7 @@ import { IMeasure } from '@gooddata/sdk-model';
71
71
  import { IMeasureMetadataObject } from '@gooddata/sdk-model';
72
72
  import { IMeasureMetadataObjectDefinition } from '@gooddata/sdk-model';
73
73
  import { IMetadataObject } from '@gooddata/sdk-model';
74
+ import { INotificationChannelDefinitionObject } from '@gooddata/sdk-model';
74
75
  import { INullableFilter } from '@gooddata/sdk-model';
75
76
  import { IOpenAiConfig } from '@gooddata/sdk-model';
76
77
  import { IOrganizationAssignee } from '@gooddata/sdk-model';
@@ -88,6 +89,8 @@ import { ISemanticSearchRelationship } from '@gooddata/sdk-model';
88
89
  import { ISemanticSearchResultItem } from '@gooddata/sdk-model';
89
90
  import { ISeparators } from '@gooddata/sdk-model';
90
91
  import { ISettings } from '@gooddata/sdk-model';
92
+ import { ISmtpDefinition } from '@gooddata/sdk-model';
93
+ import { ISmtpDefinitionObject } from '@gooddata/sdk-model';
91
94
  import { ISortItem } from '@gooddata/sdk-model';
92
95
  import { ITheme } from '@gooddata/sdk-model';
93
96
  import { IThemeDefinition } from '@gooddata/sdk-model';
@@ -95,8 +98,8 @@ import { IThemeMetadataObject } from '@gooddata/sdk-model';
95
98
  import { IUser } from '@gooddata/sdk-model';
96
99
  import { IUserGroup } from '@gooddata/sdk-model';
97
100
  import { IVisualizationClass } from '@gooddata/sdk-model';
98
- import { IWebhookMetadataObject } from '@gooddata/sdk-model';
99
- import { IWebhookMetadataObjectDefinition } from '@gooddata/sdk-model';
101
+ import { IWebhookDefinition } from '@gooddata/sdk-model';
102
+ import { IWebhookDefinitionObject } from '@gooddata/sdk-model';
100
103
  import { IWhiteLabeling } from '@gooddata/sdk-model';
101
104
  import { IWidget } from '@gooddata/sdk-model';
102
105
  import { IWidgetAlert } from '@gooddata/sdk-model';
@@ -524,7 +527,7 @@ export declare interface IAnalyticalWorkspace {
524
527
  logicalModel(): IWorkspaceLogicalModelService;
525
528
  /**
526
529
  * Returns service that can be used to access GenAI services.
527
- * @alpha
530
+ * @beta
528
531
  */
529
532
  genAI(): IGenAIService;
530
533
  }
@@ -2107,7 +2110,7 @@ export declare interface IForecastView {
2107
2110
 
2108
2111
  /**
2109
2112
  * GenAI-powered semantic search service.
2110
- * @alpha
2113
+ * @beta
2111
2114
  */
2112
2115
  export declare interface IGenAIService {
2113
2116
  /**
@@ -2563,34 +2566,80 @@ export declare interface IOrganization {
2563
2566
  * @alpha
2564
2567
  */
2565
2568
  export declare interface IOrganizationNotificationChannelService {
2569
+ /**
2570
+ * Get all notification channels
2571
+ */
2572
+ getAll(): Promise<INotificationChannelDefinitionObject[]>;
2573
+ /**
2574
+ * Delete channel
2575
+ *
2576
+ * @param id - id of the channel
2577
+ * @returns Promise resolved when the channel is deleted.
2578
+ */
2579
+ deleteChannel(id: string): Promise<void>;
2580
+ /**
2581
+ * Get all emails
2582
+ *
2583
+ * @returns Promise resolved with array of emails.
2584
+ * @throws In case of error.
2585
+ */
2586
+ getEmails(): Promise<ISmtpDefinitionObject[]>;
2587
+ /**
2588
+ * Get email by id
2589
+ *
2590
+ * @param id - id of the smtp
2591
+ * @returns Promise resolved with smtp definition or undefined if not found.
2592
+ */
2593
+ getEmail(id: string): Promise<ISmtpDefinitionObject>;
2594
+ /**
2595
+ * Create new email
2596
+ *
2597
+ * @param smtp - definition of the smtp
2598
+ * @returns Promise resolved with created smtp.
2599
+ */
2600
+ createEmail(smtp: ISmtpDefinition): Promise<ISmtpDefinitionObject>;
2601
+ /**
2602
+ * Update existing email
2603
+ *
2604
+ * @param smtp - definition of the smtp
2605
+ * @returns Promise resolved when the smtp is updated.
2606
+ */
2607
+ updateEmail(smtp: ISmtpDefinitionObject): Promise<ISmtpDefinitionObject>;
2608
+ /**
2609
+ * Delete email
2610
+ *
2611
+ * @param id - id of the smtp
2612
+ * @returns Promise resolved when the smtp is deleted.
2613
+ */
2614
+ deleteEmail(id: string): Promise<void>;
2566
2615
  /**
2567
2616
  * Get all webhooks
2568
2617
  *
2569
2618
  * @returns Promise resolved with array of webhooks.
2570
2619
  * @throws In case of error.
2571
2620
  */
2572
- getWebhooks(): Promise<IWebhookMetadataObject[]>;
2621
+ getWebhooks(): Promise<IWebhookDefinitionObject[]>;
2573
2622
  /**
2574
2623
  * Get webhook by id
2575
2624
  *
2576
2625
  * @param id - id of the webhook
2577
2626
  * @returns Promise resolved with webhook definition or undefined if not found.
2578
2627
  */
2579
- getWebhook(id: string): Promise<IWebhookMetadataObject>;
2628
+ getWebhook(id: string): Promise<IWebhookDefinitionObject>;
2580
2629
  /**
2581
2630
  * Create new webhook
2582
2631
  *
2583
2632
  * @param webhook - definition of the webhook
2584
2633
  * @returns Promise resolved with created webhook.
2585
2634
  */
2586
- createWebhook(webhook: IWebhookMetadataObjectDefinition): Promise<IWebhookMetadataObject>;
2635
+ createWebhook(webhook: IWebhookDefinition): Promise<IWebhookDefinitionObject>;
2587
2636
  /**
2588
2637
  * Update existing webhook
2589
2638
  *
2590
2639
  * @param webhook - definition of the webhook
2591
2640
  * @returns Promise resolved when the webhook is updated.
2592
2641
  */
2593
- updateWebhook(webhook: IWebhookMetadataObject): Promise<IWebhookMetadataObject>;
2642
+ updateWebhook(webhook: IWebhookDefinitionObject): Promise<IWebhookDefinitionObject>;
2594
2643
  /**
2595
2644
  * Delete webhook
2596
2645
  *
@@ -3333,7 +3382,7 @@ export declare function isElementsQueryOptionsElementsByValue(obj: unknown): obj
3333
3382
 
3334
3383
  /**
3335
3384
  * Semantic search query.
3336
- * @alpha
3385
+ * @beta
3337
3386
  */
3338
3387
  export declare interface ISemanticSearchQuery {
3339
3388
  /**
@@ -3362,7 +3411,7 @@ export declare interface ISemanticSearchQuery {
3362
3411
 
3363
3412
  /**
3364
3413
  * A single search result returned by semantic search.
3365
- * @alpha
3414
+ * @beta
3366
3415
  */
3367
3416
  export declare interface ISemanticSearchResult {
3368
3417
  results: ISemanticSearchResultItem[];
@@ -4654,6 +4703,31 @@ export declare interface IWorkspaceSettingsService {
4654
4703
  * @returns promise
4655
4704
  */
4656
4705
  setLocale(locale: string): Promise<void>;
4706
+ /**
4707
+ * Sets timezone for current workspace.
4708
+ *
4709
+ * @param timezone - the value based on IANA time zone database naming convention.
4710
+ * for example: "America/Los_Angeles", etc.
4711
+ *
4712
+ * @returns promise
4713
+ */
4714
+ setTimezone(timezone: string): Promise<void>;
4715
+ /**
4716
+ * Sets date format for current workspace.
4717
+ *
4718
+ * @param dateFormat - the format based on the ICU standard, for example: "en-US", "cs-CZ", etc.
4719
+ *
4720
+ * @returns promise
4721
+ */
4722
+ setDateFormat(dateFormat: string): Promise<void>;
4723
+ /**
4724
+ * Sets first day of week for current workspace.
4725
+ *
4726
+ * @param weekStart - "Sunday | "Monday"
4727
+ *
4728
+ * @returns promise
4729
+ */
4730
+ setWeekStart(weekStart: string): Promise<void>;
4657
4731
  /**
4658
4732
  * Sets color palette for current workspace.
4659
4733
  *
@@ -1,7 +1,7 @@
1
1
  import { GenAISemanticSearchType, ISemanticSearchRelationship, ISemanticSearchResultItem } from "@gooddata/sdk-model";
2
2
  /**
3
3
  * GenAI-powered semantic search service.
4
- * @alpha
4
+ * @beta
5
5
  */
6
6
  export interface IGenAIService {
7
7
  /**
@@ -15,7 +15,7 @@ export interface IGenAIService {
15
15
  }
16
16
  /**
17
17
  * Semantic search query.
18
- * @alpha
18
+ * @beta
19
19
  */
20
20
  export interface ISemanticSearchQuery {
21
21
  /**
@@ -43,7 +43,7 @@ export interface ISemanticSearchQuery {
43
43
  }
44
44
  /**
45
45
  * A single search result returned by semantic search.
46
- * @alpha
46
+ * @beta
47
47
  */
48
48
  export interface ISemanticSearchResult {
49
49
  results: ISemanticSearchResultItem[];
@@ -139,7 +139,7 @@ export interface IAnalyticalWorkspace {
139
139
  logicalModel(): IWorkspaceLogicalModelService;
140
140
  /**
141
141
  * Returns service that can be used to access GenAI services.
142
- * @alpha
142
+ * @beta
143
143
  */
144
144
  genAI(): IGenAIService;
145
145
  }
@@ -25,6 +25,31 @@ export interface IWorkspaceSettingsService {
25
25
  * @returns promise
26
26
  */
27
27
  setLocale(locale: string): Promise<void>;
28
+ /**
29
+ * Sets timezone for current workspace.
30
+ *
31
+ * @param timezone - the value based on IANA time zone database naming convention.
32
+ * for example: "America/Los_Angeles", etc.
33
+ *
34
+ * @returns promise
35
+ */
36
+ setTimezone(timezone: string): Promise<void>;
37
+ /**
38
+ * Sets date format for current workspace.
39
+ *
40
+ * @param dateFormat - the format based on the ICU standard, for example: "en-US", "cs-CZ", etc.
41
+ *
42
+ * @returns promise
43
+ */
44
+ setDateFormat(dateFormat: string): Promise<void>;
45
+ /**
46
+ * Sets first day of week for current workspace.
47
+ *
48
+ * @param weekStart - "Sunday | "Monday"
49
+ *
50
+ * @returns promise
51
+ */
52
+ setWeekStart(weekStart: string): Promise<void>;
28
53
  /**
29
54
  * Sets color palette for current workspace.
30
55
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace/settings/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEtF;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,WAAW,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE3C;;;;OAIG;IACH,yBAAyB,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAE7D;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzC;;;;;;OAMG;IACH,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvD;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace/settings/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEtF;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,WAAW,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE3C;;;;OAIG;IACH,yBAAyB,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAE7D;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzC;;;;;;;OAOG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7C;;;;;;OAMG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/C;;;;;;OAMG;IACH,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvD;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-spi",
3
- "version": "10.9.0-alpha.9",
3
+ "version": "10.10.0-alpha.0",
4
4
  "author": "GoodData",
5
5
  "description": "GoodData Backend SPI abstraction interfaces",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "lodash": "^4.17.21",
25
25
  "ts-invariant": "^0.7.5",
26
26
  "tslib": "^2.5.0",
27
- "@gooddata/sdk-model": "10.9.0-alpha.9"
27
+ "@gooddata/sdk-model": "10.10.0-alpha.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@gooddata/eslint-config": "^4.1.0",