@dxs-ts/eveli-ide 0.0.318 → 0.0.319

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 (26) hide show
  1. package/build/api-feedback/FeedbackProvider.d.ts +1 -0
  2. package/build/api-feedback/feedback-topics.d.ts +4 -0
  3. package/build/api-feedback/feedback-types.d.ts +41 -31
  4. package/build/api-locale/locale-types.d.ts +1 -0
  5. package/build/{cssMode-DAFsT-e-.js → cssMode-BecMP-om.js} +1 -1
  6. package/build/eveli-task-feedback/upsert-one-feedback/FeedbackContent.d.ts +7 -1
  7. package/build/{freemarker2-CvZYc_Ep.js → freemarker2-2xTNEdWR.js} +1 -1
  8. package/build/{handlebars-Cs2aQrzT.js → handlebars-CaqOW5-u.js} +1 -1
  9. package/build/{html-Dg6l3p2y.js → html-BtUJyyPJ.js} +1 -1
  10. package/build/{htmlMode-CilbAHy3.js → htmlMode-TNte4peN.js} +1 -1
  11. package/build/{index-BGfK45Uw.js → index-Dw6HAAzS.js} +26566 -26472
  12. package/build/index.js +1 -1
  13. package/build/intl/en.d.ts +12 -0
  14. package/build/intl/fi.d.ts +1 -0
  15. package/build/intl/index.d.ts +13 -0
  16. package/build/{javascript-DBB8oAO4.js → javascript-DxkXZ4dp.js} +1 -1
  17. package/build/{jsonMode-Xrt1rkxU.js → jsonMode-CxOoIYa3.js} +1 -1
  18. package/build/{liquid-6R6qfByH.js → liquid-BHvETV_C.js} +1 -1
  19. package/build/{mdx-BbW9lxNa.js → mdx-BhMBldA6.js} +1 -1
  20. package/build/{python-Ci3l2UTk.js → python-Cb8Q_lpn.js} +1 -1
  21. package/build/{razor-B9EjQEey.js → razor-rI0vhFR8.js} +1 -1
  22. package/build/{tsMode-DT6I7AR1.js → tsMode-CQLaMpeh.js} +1 -1
  23. package/build/{typescript-B2ZwbeFu.js → typescript-CZFR3Vai.js} +1 -1
  24. package/build/{xml-Bh0E2wuV.js → xml-B381QGUS.js} +1 -1
  25. package/build/{yaml-C20Bz18J.js → yaml-CFw0mdKC.js} +1 -1
  26. package/package.json +1 -1
@@ -9,6 +9,7 @@ export interface FeedbackContextType {
9
9
  getOneFeedback: (taskId: FeedbackApi.TaskId) => Promise<FeedbackApi.Feedback | undefined>;
10
10
  isTaskFeedbackEnabled: (taskId: FeedbackApi.TaskId) => Promise<true | false>;
11
11
  deleteOneFeedback: (taskId: FeedbackApi.TaskId) => Promise<FeedbackApi.Feedback>;
12
+ getFeedbackTopics: (templateOrFeedback: FeedbackApi.FeedbackContent) => Promise<FeedbackApi.FeedbackTopic>;
12
13
  }
13
14
  export declare const FeedbackContext: React.Context<FeedbackContextType>;
14
15
  export interface FeedbackProviderProps {
@@ -0,0 +1,4 @@
1
+ import { FeedbackApi } from './feedback-types';
2
+ export declare function useFeedbackTopics(): {
3
+ getFeedbackTopics: (templateOrFeedback: FeedbackApi.FeedbackContent) => Promise<FeedbackApi.FeedbackTopic>;
4
+ };
@@ -9,49 +9,43 @@ export declare namespace FeedbackApi {
9
9
  type ReplyId = string;
10
10
  type CategoryId = string;
11
11
  type CustomerId = string;
12
- interface Feedback {
13
- id: FeedbackId;
14
- sourceId: SourceId;
15
- origin: string;
16
- content: FeedbackContent;
17
- replyText: string;
18
- locale: string;
12
+ interface FeedbackTopic {
13
+ main: FeedbackTopicItem[];
14
+ sub: FeedbackTopicItem[];
15
+ }
16
+ interface FeedbackTopicItem {
19
17
  labelKey: string;
20
18
  labelValue: string;
19
+ }
20
+ interface FeedbackContent {
21
+ origin: string;
22
+ customerTitle: string | undefined;
23
+ labelKey: string;
21
24
  subLabelKey: string | undefined;
25
+ labelValue: string;
22
26
  subLabelValue: string | undefined;
23
- customerTitle: string | undefined;
27
+ locale: string;
28
+ content: {
29
+ title: string;
30
+ main: string | undefined;
31
+ sub: string | undefined;
32
+ question: string | undefined;
33
+ };
34
+ }
35
+ interface Feedback extends FeedbackContent {
36
+ id: FeedbackId;
37
+ sourceId: SourceId;
38
+ replyText: string;
24
39
  updatedBy: string;
25
40
  updatedOnDate: string;
26
41
  createdBy: string;
27
42
  thumbsUpCount: number;
28
43
  thumbsDownCount: number;
29
44
  }
30
- interface FeedbackContent {
31
- title: string;
32
- main: string | undefined;
33
- sub: string | undefined;
34
- question: string | undefined;
35
- }
36
- interface FeedbackRating {
37
- id: string;
38
- replyId: ReplyId | undefined;
39
- categoryId: CategoryId;
40
- customerId: string;
41
- rating: number;
42
- }
43
- interface FeedbackTemplate {
45
+ interface FeedbackTemplate extends FeedbackContent {
44
46
  processId: ProcessId;
45
47
  taskId: TaskId;
46
48
  userId: UserId;
47
- origin: string;
48
- content: FeedbackContent;
49
- locale: string;
50
- labelKey: string;
51
- labelValue: string;
52
- subLabelKey: string | undefined;
53
- subLabelValue: string | undefined;
54
- customerTitle: string | undefined;
55
49
  replys: string[];
56
50
  questionnaire: {
57
51
  metadata: {
@@ -60,12 +54,24 @@ export declare namespace FeedbackApi {
60
54
  };
61
55
  };
62
56
  }
57
+ interface FeedbackRating {
58
+ id: string;
59
+ replyId: ReplyId | undefined;
60
+ categoryId: CategoryId;
61
+ customerId: string;
62
+ rating: number;
63
+ }
63
64
  interface CreateFeedbackCommand {
64
65
  processId: ProcessId;
65
66
  taskId: TaskId;
66
67
  userId: UserId;
67
68
  origin: string;
68
- content: FeedbackContent;
69
+ content: {
70
+ title: string;
71
+ main: string | undefined;
72
+ sub: string | undefined;
73
+ question: string | undefined;
74
+ };
69
75
  reply: string;
70
76
  question: string;
71
77
  locale: string;
@@ -82,6 +88,10 @@ export declare namespace FeedbackApi {
82
88
  commandType: 'MODIFY_ONE_FEEDBACK_REPLY';
83
89
  reply: string;
84
90
  question: string;
91
+ labelKey: string;
92
+ labelValue: string;
93
+ subLabelKey?: string | undefined;
94
+ subLabelValue?: string | undefined;
85
95
  }
86
96
  interface UpsertFeedbackRankingCommand extends ModifyOneFeedbackCommand {
87
97
  replyIdOrCategoryId: string;
@@ -8,6 +8,7 @@ export declare namespace LocaleApi {
8
8
  type Localizations = Record<LocalCode, Localization | {}>;
9
9
  interface LocaleContextType {
10
10
  locale: string;
11
+ messages: Localizations;
11
12
  setLocale: (newLocale: string) => void;
12
13
  }
13
14
  }
@@ -1,4 +1,4 @@
1
- import { m as et } from "./index-BGfK45Uw.js";
1
+ import { m as et } from "./index-Dw6HAAzS.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -1,5 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
  import { FeedbackApi } from '../../api-feedback';
3
3
  export declare const FeedbackContent: React.FC<{
4
- feedback: FeedbackApi.FeedbackContent | undefined;
4
+ feedback: FeedbackApi.FeedbackContent;
5
+ onChange: (props: {
6
+ labelKey: string;
7
+ subLabelKey: string | undefined;
8
+ labelValue: string;
9
+ subLabelValue: string | undefined;
10
+ }) => void;
5
11
  }>;
@@ -1,4 +1,4 @@
1
- import { m as f } from "./index-BGfK45Uw.js";
1
+ import { m as f } from "./index-Dw6HAAzS.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-BGfK45Uw.js";
1
+ import { m as l } from "./index-Dw6HAAzS.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-BGfK45Uw.js";
1
+ import { m as s } from "./index-Dw6HAAzS.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
@@ -1,4 +1,4 @@
1
- import { m as lt } from "./index-BGfK45Uw.js";
1
+ import { m as lt } from "./index-Dw6HAAzS.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)