@atlaskit/rovo-triggers 2.5.0 → 2.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.
- package/CHANGELOG.md +16 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +72 -11
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +72 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/rovo-triggers
|
|
2
2
|
|
|
3
|
+
## 2.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#131838](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131838)
|
|
8
|
+
[`afdb0a7ae2e5b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/afdb0a7ae2e5b) -
|
|
9
|
+
updated types for rovo workflow wizard agent
|
|
10
|
+
|
|
11
|
+
## 2.6.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#131371](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131371)
|
|
16
|
+
[`bcdda396edf72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bcdda396edf72) -
|
|
17
|
+
Support mimeType as optional prop in ChatNewPayload type
|
|
18
|
+
|
|
3
19
|
## 2.5.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
|
-
export type { Payload, Callback, Topic, EditorContextPayloadData, BrowserContextPayloadData, } from './types';
|
|
2
|
+
export type { Payload, Callback, Topic, EditorContextPayloadData, BrowserContextPayloadData, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, AddStatusRovoPayload, DeleteStatusRovoPayload, JiraWorkflowWizardAction, } from './types';
|
|
3
3
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
4
4
|
export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
|
|
5
5
|
export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -19,9 +19,11 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
19
19
|
dialogues: Array<{
|
|
20
20
|
human_message: {
|
|
21
21
|
content: string;
|
|
22
|
+
mimeType?: 'text/markdown' | 'text/adf';
|
|
22
23
|
};
|
|
23
24
|
agent_message: {
|
|
24
25
|
content: string;
|
|
26
|
+
mimeType?: 'text/markdown' | 'text/adf';
|
|
25
27
|
};
|
|
26
28
|
}>;
|
|
27
29
|
prompt?: string;
|
|
@@ -90,29 +92,88 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
90
92
|
}>;
|
|
91
93
|
export type TransitionId = string;
|
|
92
94
|
export type StatusId = string;
|
|
93
|
-
export type
|
|
95
|
+
export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE';
|
|
96
|
+
export type RuleConfig = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type AddNewTransitionRovoPayload = {
|
|
94
100
|
id: TransitionId;
|
|
95
101
|
name: string;
|
|
96
|
-
|
|
102
|
+
toStatusId: StatusId;
|
|
103
|
+
toStatusName: string;
|
|
104
|
+
toStatusCategory: StatusCategory;
|
|
97
105
|
links: {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
fromStatusId: StatusId;
|
|
107
|
+
fromStatusName: string;
|
|
108
|
+
fromStatusCategory: StatusCategory;
|
|
101
109
|
}[];
|
|
102
110
|
};
|
|
103
|
-
export type
|
|
111
|
+
export type UpdateTransitionRovoPayload = {
|
|
104
112
|
id: TransitionId;
|
|
113
|
+
name: string;
|
|
114
|
+
toStatusId: StatusId;
|
|
115
|
+
toStatusName: string;
|
|
116
|
+
toStatusCategory: StatusCategory;
|
|
117
|
+
links: {
|
|
118
|
+
fromStatusId: StatusId;
|
|
119
|
+
fromStatusName: string;
|
|
120
|
+
fromStatusCategory: StatusCategory;
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
123
|
+
export type DeleteTransitionRovoPayload = {
|
|
124
|
+
transitionId: TransitionId;
|
|
125
|
+
transitionName: string;
|
|
126
|
+
};
|
|
127
|
+
export type AddRuleRovoPayload = {
|
|
128
|
+
ruleTemplateKey: string;
|
|
129
|
+
transitionId: TransitionId;
|
|
130
|
+
ruleConfig: RuleConfig;
|
|
131
|
+
};
|
|
132
|
+
export type UpdateRuleRovoPayload = {
|
|
133
|
+
ruleTemplateKey: string;
|
|
134
|
+
transitionId: TransitionId;
|
|
135
|
+
ruleConfig: RuleConfig;
|
|
136
|
+
ruleIdBeingEdited: string;
|
|
137
|
+
};
|
|
138
|
+
export type DeleteRuleRovoPayload = {
|
|
105
139
|
ruleId: string;
|
|
106
140
|
};
|
|
141
|
+
export type AddStatusRovoPayload = {
|
|
142
|
+
statusName: string;
|
|
143
|
+
statusCategory: StatusCategory;
|
|
144
|
+
};
|
|
145
|
+
export type DeleteStatusRovoPayload = {
|
|
146
|
+
statusId: string;
|
|
147
|
+
statusName: string;
|
|
148
|
+
statusCategory: StatusCategory;
|
|
149
|
+
};
|
|
107
150
|
export type JiraWorkflowWizardAction = {
|
|
108
|
-
|
|
109
|
-
payload:
|
|
151
|
+
operationType: 'ADD_TRANSITION';
|
|
152
|
+
payload: AddNewTransitionRovoPayload;
|
|
153
|
+
} | {
|
|
154
|
+
operationType: 'UPDATE_TRANSITION';
|
|
155
|
+
payload: UpdateTransitionRovoPayload;
|
|
156
|
+
} | {
|
|
157
|
+
operationType: 'DELETE_TRANSITION';
|
|
158
|
+
payload: DeleteTransitionRovoPayload;
|
|
159
|
+
} | {
|
|
160
|
+
operationType: 'ADD_RULE';
|
|
161
|
+
payload: AddRuleRovoPayload;
|
|
162
|
+
} | {
|
|
163
|
+
operationType: 'UPDATE_RULE';
|
|
164
|
+
payload: UpdateRuleRovoPayload;
|
|
165
|
+
} | {
|
|
166
|
+
operationType: 'DELETE_RULE';
|
|
167
|
+
payload: DeleteRuleRovoPayload;
|
|
168
|
+
} | {
|
|
169
|
+
operationType: 'ADD_STATUS';
|
|
170
|
+
payload: AddStatusRovoPayload;
|
|
110
171
|
} | {
|
|
111
|
-
|
|
112
|
-
payload:
|
|
172
|
+
operationType: 'DELETE_STATUS';
|
|
173
|
+
payload: DeleteStatusRovoPayload;
|
|
113
174
|
};
|
|
114
175
|
export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
|
|
115
|
-
|
|
176
|
+
operations: JiraWorkflowWizardAction[];
|
|
116
177
|
}>;
|
|
117
178
|
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
118
179
|
export type Callback = (payload: Payload) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { usePublish, useSubscribe, useSubscribeAll, Subscriber } from './main';
|
|
2
|
-
export type { Payload, Callback, Topic, EditorContextPayloadData, BrowserContextPayloadData, } from './types';
|
|
2
|
+
export type { Payload, Callback, Topic, EditorContextPayloadData, BrowserContextPayloadData, AddNewTransitionRovoPayload, UpdateTransitionRovoPayload, DeleteTransitionRovoPayload, AddRuleRovoPayload, UpdateRuleRovoPayload, DeleteRuleRovoPayload, AddStatusRovoPayload, DeleteStatusRovoPayload, JiraWorkflowWizardAction, } from './types';
|
|
3
3
|
export { getRovoParams, updatePageRovoParams, addRovoParamsToUrl, assertOnlySpecificFieldsDefined, encodeRovoParams, getListOfRovoParams, } from './common/utils/params';
|
|
4
4
|
export type { RovoChatParams, RovoChatPathway } from './common/utils/params/types';
|
|
5
5
|
export { useRovoPostMessageToPubsub, RovoPostMessagePubsubListener, } from './common/utils/post-message-to-pubsub';
|
|
@@ -19,9 +19,11 @@ export type ChatNewPayload = PayloadCore<'chat-new', {
|
|
|
19
19
|
dialogues: Array<{
|
|
20
20
|
human_message: {
|
|
21
21
|
content: string;
|
|
22
|
+
mimeType?: 'text/markdown' | 'text/adf';
|
|
22
23
|
};
|
|
23
24
|
agent_message: {
|
|
24
25
|
content: string;
|
|
26
|
+
mimeType?: 'text/markdown' | 'text/adf';
|
|
25
27
|
};
|
|
26
28
|
}>;
|
|
27
29
|
prompt?: string;
|
|
@@ -90,29 +92,88 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
90
92
|
}>;
|
|
91
93
|
export type TransitionId = string;
|
|
92
94
|
export type StatusId = string;
|
|
93
|
-
export type
|
|
95
|
+
export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE';
|
|
96
|
+
export type RuleConfig = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type AddNewTransitionRovoPayload = {
|
|
94
100
|
id: TransitionId;
|
|
95
101
|
name: string;
|
|
96
|
-
|
|
102
|
+
toStatusId: StatusId;
|
|
103
|
+
toStatusName: string;
|
|
104
|
+
toStatusCategory: StatusCategory;
|
|
97
105
|
links: {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
fromStatusId: StatusId;
|
|
107
|
+
fromStatusName: string;
|
|
108
|
+
fromStatusCategory: StatusCategory;
|
|
101
109
|
}[];
|
|
102
110
|
};
|
|
103
|
-
export type
|
|
111
|
+
export type UpdateTransitionRovoPayload = {
|
|
104
112
|
id: TransitionId;
|
|
113
|
+
name: string;
|
|
114
|
+
toStatusId: StatusId;
|
|
115
|
+
toStatusName: string;
|
|
116
|
+
toStatusCategory: StatusCategory;
|
|
117
|
+
links: {
|
|
118
|
+
fromStatusId: StatusId;
|
|
119
|
+
fromStatusName: string;
|
|
120
|
+
fromStatusCategory: StatusCategory;
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
123
|
+
export type DeleteTransitionRovoPayload = {
|
|
124
|
+
transitionId: TransitionId;
|
|
125
|
+
transitionName: string;
|
|
126
|
+
};
|
|
127
|
+
export type AddRuleRovoPayload = {
|
|
128
|
+
ruleTemplateKey: string;
|
|
129
|
+
transitionId: TransitionId;
|
|
130
|
+
ruleConfig: RuleConfig;
|
|
131
|
+
};
|
|
132
|
+
export type UpdateRuleRovoPayload = {
|
|
133
|
+
ruleTemplateKey: string;
|
|
134
|
+
transitionId: TransitionId;
|
|
135
|
+
ruleConfig: RuleConfig;
|
|
136
|
+
ruleIdBeingEdited: string;
|
|
137
|
+
};
|
|
138
|
+
export type DeleteRuleRovoPayload = {
|
|
105
139
|
ruleId: string;
|
|
106
140
|
};
|
|
141
|
+
export type AddStatusRovoPayload = {
|
|
142
|
+
statusName: string;
|
|
143
|
+
statusCategory: StatusCategory;
|
|
144
|
+
};
|
|
145
|
+
export type DeleteStatusRovoPayload = {
|
|
146
|
+
statusId: string;
|
|
147
|
+
statusName: string;
|
|
148
|
+
statusCategory: StatusCategory;
|
|
149
|
+
};
|
|
107
150
|
export type JiraWorkflowWizardAction = {
|
|
108
|
-
|
|
109
|
-
payload:
|
|
151
|
+
operationType: 'ADD_TRANSITION';
|
|
152
|
+
payload: AddNewTransitionRovoPayload;
|
|
153
|
+
} | {
|
|
154
|
+
operationType: 'UPDATE_TRANSITION';
|
|
155
|
+
payload: UpdateTransitionRovoPayload;
|
|
156
|
+
} | {
|
|
157
|
+
operationType: 'DELETE_TRANSITION';
|
|
158
|
+
payload: DeleteTransitionRovoPayload;
|
|
159
|
+
} | {
|
|
160
|
+
operationType: 'ADD_RULE';
|
|
161
|
+
payload: AddRuleRovoPayload;
|
|
162
|
+
} | {
|
|
163
|
+
operationType: 'UPDATE_RULE';
|
|
164
|
+
payload: UpdateRuleRovoPayload;
|
|
165
|
+
} | {
|
|
166
|
+
operationType: 'DELETE_RULE';
|
|
167
|
+
payload: DeleteRuleRovoPayload;
|
|
168
|
+
} | {
|
|
169
|
+
operationType: 'ADD_STATUS';
|
|
170
|
+
payload: AddStatusRovoPayload;
|
|
110
171
|
} | {
|
|
111
|
-
|
|
112
|
-
payload:
|
|
172
|
+
operationType: 'DELETE_STATUS';
|
|
173
|
+
payload: DeleteStatusRovoPayload;
|
|
113
174
|
};
|
|
114
175
|
export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
|
|
115
|
-
|
|
176
|
+
operations: JiraWorkflowWizardAction[];
|
|
116
177
|
}>;
|
|
117
178
|
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
118
179
|
export type Callback = (payload: Payload) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rovo-triggers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Provides various trigger events to drive Rovo Chat functionality, such as a publish-subscribe and URL parameter hooks",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|