@atlaskit/rovo-triggers 2.6.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 +8 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +70 -11
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +70 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 2.6.0
|
|
4
12
|
|
|
5
13
|
### 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
|
@@ -92,29 +92,88 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
92
92
|
}>;
|
|
93
93
|
export type TransitionId = string;
|
|
94
94
|
export type StatusId = string;
|
|
95
|
-
export type
|
|
95
|
+
export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE';
|
|
96
|
+
export type RuleConfig = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type AddNewTransitionRovoPayload = {
|
|
96
100
|
id: TransitionId;
|
|
97
101
|
name: string;
|
|
98
|
-
|
|
102
|
+
toStatusId: StatusId;
|
|
103
|
+
toStatusName: string;
|
|
104
|
+
toStatusCategory: StatusCategory;
|
|
99
105
|
links: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
fromStatusId: StatusId;
|
|
107
|
+
fromStatusName: string;
|
|
108
|
+
fromStatusCategory: StatusCategory;
|
|
103
109
|
}[];
|
|
104
110
|
};
|
|
105
|
-
export type
|
|
111
|
+
export type UpdateTransitionRovoPayload = {
|
|
106
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 = {
|
|
107
139
|
ruleId: string;
|
|
108
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
|
+
};
|
|
109
150
|
export type JiraWorkflowWizardAction = {
|
|
110
|
-
|
|
111
|
-
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;
|
|
112
171
|
} | {
|
|
113
|
-
|
|
114
|
-
payload:
|
|
172
|
+
operationType: 'DELETE_STATUS';
|
|
173
|
+
payload: DeleteStatusRovoPayload;
|
|
115
174
|
};
|
|
116
175
|
export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
|
|
117
|
-
|
|
176
|
+
operations: JiraWorkflowWizardAction[];
|
|
118
177
|
}>;
|
|
119
178
|
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
120
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';
|
|
@@ -92,29 +92,88 @@ export type InsertPromptPayload = PayloadCore<'insert-prompt', {
|
|
|
92
92
|
}>;
|
|
93
93
|
export type TransitionId = string;
|
|
94
94
|
export type StatusId = string;
|
|
95
|
-
export type
|
|
95
|
+
export type StatusCategory = 'TODO' | 'IN_PROGRESS' | 'DONE';
|
|
96
|
+
export type RuleConfig = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type AddNewTransitionRovoPayload = {
|
|
96
100
|
id: TransitionId;
|
|
97
101
|
name: string;
|
|
98
|
-
|
|
102
|
+
toStatusId: StatusId;
|
|
103
|
+
toStatusName: string;
|
|
104
|
+
toStatusCategory: StatusCategory;
|
|
99
105
|
links: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
fromStatusId: StatusId;
|
|
107
|
+
fromStatusName: string;
|
|
108
|
+
fromStatusCategory: StatusCategory;
|
|
103
109
|
}[];
|
|
104
110
|
};
|
|
105
|
-
export type
|
|
111
|
+
export type UpdateTransitionRovoPayload = {
|
|
106
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 = {
|
|
107
139
|
ruleId: string;
|
|
108
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
|
+
};
|
|
109
150
|
export type JiraWorkflowWizardAction = {
|
|
110
|
-
|
|
111
|
-
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;
|
|
112
171
|
} | {
|
|
113
|
-
|
|
114
|
-
payload:
|
|
172
|
+
operationType: 'DELETE_STATUS';
|
|
173
|
+
payload: DeleteStatusRovoPayload;
|
|
115
174
|
};
|
|
116
175
|
export type JiraWorkflowWizardActionsPayload = PayloadCore<'jira-workflow-wizard-actions', {
|
|
117
|
-
|
|
176
|
+
operations: JiraWorkflowWizardAction[];
|
|
118
177
|
}>;
|
|
119
178
|
export type Payload = MessageSendPayload | ChatNewPayload | ChatDraftPayload | EditorContextPayload | ChatOpenPayload | OpenBrowseAgentPayload | OpenBrowseAgentSidebarPayload | EditorSuggestionPayload | EditorAgentChangedPayload | BrowserContextPayload | ForgeAppAuthSuccess | ForgeAppAuthFailure | JiraWorkflowWizardActionsPayload | InsertPromptPayload;
|
|
120
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": {
|