@atlaskit/task-decision 20.2.4 → 20.2.5
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 +6 -0
- package/constants/package.json +1 -8
- package/decision-item/package.json +1 -8
- package/decision-list/package.json +1 -8
- package/package.json +2 -2
- package/resourced-task-item/package.json +1 -8
- package/task-decision-resource/package.json +1 -8
- package/task-item/package.json +1 -8
- package/task-list/package.json +1 -8
- package/type-helpers/package.json +1 -8
- package/types/package.json +1 -8
- package/dist/types-ts4.5/analytics/index.d.ts +0 -3
- package/dist/types-ts4.5/api/TaskDecisionResource.d.ts +0 -67
- package/dist/types-ts4.5/api/TaskDecisionUtils.d.ts +0 -4
- package/dist/types-ts4.5/components/DecisionItem.d.ts +0 -13
- package/dist/types-ts4.5/components/DecisionList.d.ts +0 -11
- package/dist/types-ts4.5/components/Item.d.ts +0 -25
- package/dist/types-ts4.5/components/ResourcedTaskItem.d.ts +0 -41
- package/dist/types-ts4.5/components/TaskItem.d.ts +0 -27
- package/dist/types-ts4.5/components/TaskList.d.ts +0 -11
- package/dist/types-ts4.5/components/i18n.d.ts +0 -27
- package/dist/types-ts4.5/constants.d.ts +0 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -12
- package/dist/types-ts4.5/i18n/da.d.ts +0 -12
- package/dist/types-ts4.5/i18n/de.d.ts +0 -12
- package/dist/types-ts4.5/i18n/en.d.ts +0 -12
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -12
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -12
- package/dist/types-ts4.5/i18n/es.d.ts +0 -12
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -12
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -12
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -11
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -12
- package/dist/types-ts4.5/i18n/it.d.ts +0 -12
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -12
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -12
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -12
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -12
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -12
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -12
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -12
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -11
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -11
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -11
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -12
- package/dist/types-ts4.5/i18n/th.d.ts +0 -12
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -12
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -12
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -12
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -12
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -12
- package/dist/types-ts4.5/index.d.ts +0 -9
- package/dist/types-ts4.5/type-helpers.d.ts +0 -6
- package/dist/types-ts4.5/types.d.ts +0 -159
package/CHANGELOG.md
CHANGED
package/constants/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/DecisionItem.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/DecisionItem.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/DecisionItem.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/DecisionList.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/DecisionList.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/DecisionList.d.ts"
|
|
17
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/task-decision",
|
|
3
|
-
"version": "20.2.
|
|
3
|
+
"version": "20.2.5",
|
|
4
4
|
"description": "Tasks and decisions react components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/analytics-namespaced-context": "^7.3.0",
|
|
65
65
|
"@atlaskit/analytics-next": "^11.3.0",
|
|
66
66
|
"@atlaskit/icon": "^35.4.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^103.0.0",
|
|
68
68
|
"@atlaskit/tokens": "^13.4.0",
|
|
69
69
|
"@atlaskit/util-service-support": "^6.4.0",
|
|
70
70
|
"@babel/runtime": "^7.0.0",
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/ResourcedTaskItem.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/ResourcedTaskItem.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/ResourcedTaskItem.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/api/TaskDecisionResource.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/api/TaskDecisionResource.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/api/TaskDecisionResource.d.ts"
|
|
17
10
|
}
|
package/task-item/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/TaskItem.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/TaskItem.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/TaskItem.d.ts"
|
|
17
10
|
}
|
package/task-list/package.json
CHANGED
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/components/TaskList.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/components/TaskList.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/components/TaskList.d.ts"
|
|
17
10
|
}
|
package/types/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { UIAnalyticsEvent, type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
export declare const fabricElementsChannel = "fabric-elements";
|
|
3
|
-
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { type BaseItem, type ServiceTaskState, type DecisionState, type Handler, type ObjectKey, type PubSubClient, type RecentUpdateContext, type RecentUpdatesId, type RecentUpdatesListener, type ServiceTask, type TaskDecisionProvider, type TaskDecisionResourceConfig, type TaskState, type ServiceItem } from '../types';
|
|
2
|
-
export declare const ACTION_CREATED_FPS_EVENT = "avi:task-decision-service:created:action";
|
|
3
|
-
export declare const ACTION_EDITED_FPS_EVENT = "avi:task-decision-service:edited:action";
|
|
4
|
-
export declare const ACTION_DELETED_FPS_EVENT = "avi:task-decision-service:deleted:action";
|
|
5
|
-
export declare const ACTION_ARCHIVED_FPS_EVENT = "avi:task-decision-service:archived:action";
|
|
6
|
-
export declare const ACTION_STATE_CHANGED_FPS_EVENT = "avi:task-decision-service:stateChanged:action";
|
|
7
|
-
export declare const DECISION_CREATED_FPS_EVENT = "avi:task-decision-service:created:decision";
|
|
8
|
-
export declare const DECISION_EDITED_FPS_EVENT = "avi:task-decision-service:edited:decision";
|
|
9
|
-
export declare const DECISION_DELETED_FPS_EVENT = "avi:task-decision-service:deleted:decision";
|
|
10
|
-
export declare const DECISION_ARCHIVED_FPS_EVENT = "avi:task-decision-service:archived:decision";
|
|
11
|
-
export declare const DECISION_STATE_CHANGED_FPS_EVENT = "avi:task-decision-service:stateChanged:decision";
|
|
12
|
-
export declare const ACTION_DECISION_FPS_EVENTS = "avi:task-decision-service:*:*";
|
|
13
|
-
export declare class RecentUpdates {
|
|
14
|
-
private idsByContainer;
|
|
15
|
-
private listenersById;
|
|
16
|
-
private pubSubClient?;
|
|
17
|
-
constructor(pubSubClient?: PubSubClient);
|
|
18
|
-
subscribe(objectAri: string, recentUpdatesListener: RecentUpdatesListener): void;
|
|
19
|
-
unsubscribe(unsubscribeId: RecentUpdatesId): void;
|
|
20
|
-
notify(recentUpdateContext: RecentUpdateContext): void;
|
|
21
|
-
onPubSubEvent: (_event: string, payload: ServiceItem) => void;
|
|
22
|
-
destroy(): void;
|
|
23
|
-
private subscribeToPubSubEvents;
|
|
24
|
-
private unsubscribeFromPubSubEvents;
|
|
25
|
-
}
|
|
26
|
-
export declare class ItemStateManager {
|
|
27
|
-
private debouncedTaskStateQuery;
|
|
28
|
-
private debouncedTaskToggle;
|
|
29
|
-
private serviceConfig;
|
|
30
|
-
private subscribers;
|
|
31
|
-
private trackedObjectKeys;
|
|
32
|
-
private cachedItems;
|
|
33
|
-
private batchedKeys;
|
|
34
|
-
constructor(serviceConfig: TaskDecisionResourceConfig);
|
|
35
|
-
destroy(): void;
|
|
36
|
-
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
37
|
-
refreshAllTasks(): void;
|
|
38
|
-
subscribe(objectKey: ObjectKey, handler: Handler, item?: BaseItem<TaskState | DecisionState>): void;
|
|
39
|
-
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
40
|
-
getTaskState(keys: ObjectKey[]): Promise<ServiceTaskState[]>;
|
|
41
|
-
notifyUpdated(objectKey: ObjectKey, state: TaskState | DecisionState): void;
|
|
42
|
-
onTaskUpdatedEvent: (_event: string, payload: ServiceTask) => void;
|
|
43
|
-
onReconnect: () => void;
|
|
44
|
-
private updateCache;
|
|
45
|
-
private getCached;
|
|
46
|
-
private subscribeToPubSubEvents;
|
|
47
|
-
private unsubscribeFromPubSubEvents;
|
|
48
|
-
private queueAllItems;
|
|
49
|
-
private queueItem;
|
|
50
|
-
private dequeueItem;
|
|
51
|
-
private scheduleGetTaskState;
|
|
52
|
-
}
|
|
53
|
-
export default class TaskDecisionResource implements TaskDecisionProvider {
|
|
54
|
-
private recentUpdates;
|
|
55
|
-
private itemStateManager;
|
|
56
|
-
constructor(serviceConfig: TaskDecisionResourceConfig);
|
|
57
|
-
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
58
|
-
notifyRecentUpdates(recentUpdateContext: RecentUpdateContext): void;
|
|
59
|
-
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
60
|
-
subscribe(objectKey: ObjectKey, handler: Handler, item?: BaseItem<TaskState | DecisionState>): void;
|
|
61
|
-
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
62
|
-
/**
|
|
63
|
-
* Usually only needed for testing to ensure no outstanding requests
|
|
64
|
-
* are sent to a server (typically mocked).
|
|
65
|
-
*/
|
|
66
|
-
destroy(): void;
|
|
67
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ServiceTask, type Task, type ServiceTaskState, type BaseItem, type TaskState } from '../types';
|
|
2
|
-
export declare const convertServiceTaskToTask: (serviceTask: ServiceTask) => Task;
|
|
3
|
-
export declare const convertServiceTaskStateToBaseItem: (serviceTaskInfo: ServiceTaskState) => BaseItem<TaskState>;
|
|
4
|
-
export declare const findIndex: (array: any[], predicate: (item: any) => boolean) => number;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Appearance, type ContentRef } from '../types';
|
|
2
|
-
export interface Props {
|
|
3
|
-
appearance?: Appearance;
|
|
4
|
-
children?: any;
|
|
5
|
-
contentRef?: ContentRef;
|
|
6
|
-
dataAttributes?: {
|
|
7
|
-
[key: string]: string | number;
|
|
8
|
-
};
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
showPlaceholder?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const DecisionItem: ({ appearance, children, contentRef, placeholder, showPlaceholder, dataAttributes, }: Props) => JSX.Element;
|
|
13
|
-
export default DecisionItem;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { PureComponent, type ReactNode } from 'react';
|
|
6
|
-
export interface Props {
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export default class DecisionList extends PureComponent<Props, {}> {
|
|
10
|
-
render(): JSX.Element | null;
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { PureComponent } from 'react';
|
|
6
|
-
import { type Appearance, type ContentRef, type TaskType, type DecisionType } from '../types';
|
|
7
|
-
export interface Props {
|
|
8
|
-
appearance?: Appearance;
|
|
9
|
-
checkBoxId?: string;
|
|
10
|
-
children?: any;
|
|
11
|
-
contentRef?: ContentRef;
|
|
12
|
-
dataAttributes?: {
|
|
13
|
-
[key: string]: string | number;
|
|
14
|
-
};
|
|
15
|
-
icon: JSX.Element;
|
|
16
|
-
itemType: TaskType | DecisionType;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
showPlaceholder?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export default class Item extends PureComponent<Props, {}> {
|
|
21
|
-
static defaultProps: Partial<Props>;
|
|
22
|
-
private renderPlaceholder;
|
|
23
|
-
renderMessageAppearance(): JSX.Element | null;
|
|
24
|
-
render(): JSX.Element | null;
|
|
25
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { type Ref } from 'react';
|
|
2
|
-
import { PureComponent } from 'react';
|
|
3
|
-
import { type Appearance, type ContentRef, type TaskDecisionProvider } from '../types';
|
|
4
|
-
export interface Props {
|
|
5
|
-
appearance?: Appearance;
|
|
6
|
-
children?: any;
|
|
7
|
-
contentRef?: ContentRef;
|
|
8
|
-
dataAttributes?: {
|
|
9
|
-
[key: string]: string | number;
|
|
10
|
-
};
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
disableOnChange?: boolean;
|
|
13
|
-
inputRef?: Ref<HTMLInputElement>;
|
|
14
|
-
isDone?: boolean;
|
|
15
|
-
isFocused?: boolean;
|
|
16
|
-
isRenderer?: boolean;
|
|
17
|
-
objectAri?: string;
|
|
18
|
-
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
19
|
-
onClick?: () => void;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
showPlaceholder?: boolean;
|
|
22
|
-
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
23
|
-
taskId: string;
|
|
24
|
-
}
|
|
25
|
-
export interface State {
|
|
26
|
-
isDone?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export default class ResourcedTaskItem extends PureComponent<Props, State> {
|
|
29
|
-
static defaultProps: Partial<Props>;
|
|
30
|
-
private mounted;
|
|
31
|
-
constructor(props: Props);
|
|
32
|
-
componentDidMount(): void;
|
|
33
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
34
|
-
componentWillUnmount(): void;
|
|
35
|
-
private subscribe;
|
|
36
|
-
private unsubscribe;
|
|
37
|
-
private onUpdate;
|
|
38
|
-
private handleOnChange;
|
|
39
|
-
private handleOnClick;
|
|
40
|
-
render(): React.JSX.Element;
|
|
41
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React, { type Ref } from 'react';
|
|
6
|
-
import { type Appearance, type ContentRef } from '../types';
|
|
7
|
-
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
8
|
-
export interface Props {
|
|
9
|
-
appearance?: Appearance;
|
|
10
|
-
children?: any;
|
|
11
|
-
contentRef?: ContentRef;
|
|
12
|
-
dataAttributes?: {
|
|
13
|
-
[key: string]: string | number;
|
|
14
|
-
};
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
inputRef?: Ref<HTMLInputElement>;
|
|
17
|
-
isDone?: boolean;
|
|
18
|
-
isFocused?: boolean;
|
|
19
|
-
isRenderer?: boolean;
|
|
20
|
-
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
21
|
-
onClick?: () => void;
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
showPlaceholder?: boolean;
|
|
24
|
-
taskId: string;
|
|
25
|
-
}
|
|
26
|
-
declare const _default_1: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
27
|
-
export default _default_1;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
export interface Props {
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
listId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const TaskList: ({ listId, children }: Props) => JSX.Element | null;
|
|
11
|
-
export default TaskList;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
fieldsetLabel: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
markTaskAsCompleted: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
markTaskAsNotCompleted: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
decisionAriaLabel: {
|
|
18
|
-
id: string;
|
|
19
|
-
defaultMessage: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
undefinedDecisionAriaLabel: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const defaultLimit = 100;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: {
|
|
8
|
-
'fabric.editor.fieldsetLabel': string;
|
|
9
|
-
'platform.taskDecision.markTaskAsCompleted': string;
|
|
10
|
-
'platform.taskDecision.markTaskAsNotCompleted': string;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import DecisionItem from './components/DecisionItem';
|
|
2
|
-
import DecisionList from './components/DecisionList';
|
|
3
|
-
import ResourcedTaskItem from './components/ResourcedTaskItem';
|
|
4
|
-
import TaskDecisionResource from './api/TaskDecisionResource';
|
|
5
|
-
import TaskItem from './components/TaskItem';
|
|
6
|
-
import TaskList from './components/TaskList';
|
|
7
|
-
export { PubSubSpecialEventType } from './types';
|
|
8
|
-
export type { Appearance, ARI, AVI, BaseItem, ContentRef, Cursor, Decision, DecisionState, DecisionStatus, DecisionType, Handler, Item, Meta, ObjectKey, OnUpdate, PubSubClient, PubSubOnEvent, RecentUpdateContext, RecentUpdatesId, RecentUpdatesListener, RenderDocument, RendererContext, ServiceDecision, ServiceDecisionResponse, ServiceItem, ServiceTask, ServiceTaskState, Task, TaskDecisionProvider, TaskDecisionResourceConfig, TaskState, TaskType, UserId, } from './types';
|
|
9
|
-
export { DecisionItem, DecisionList, ResourcedTaskItem, TaskDecisionResource, TaskItem, TaskList };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type BaseItem, type Decision, type Item, type ObjectKey, type ServiceDecision, type ServiceTask, type Task, type TaskState } from './types';
|
|
2
|
-
export declare const isDecision: (item: Item) => item is Decision;
|
|
3
|
-
export declare const isTask: (item: Item) => item is Task;
|
|
4
|
-
export declare const toObjectKey: (item: Item | ServiceDecision | ServiceTask | BaseItem<any>) => ObjectKey;
|
|
5
|
-
export declare const objectKeyToString: (objectKey: ObjectKey) => string;
|
|
6
|
-
export declare const toggleTaskState: (state: TaskState) => TaskState;
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { type ServiceConfig } from '@atlaskit/util-service-support';
|
|
2
|
-
export type DecisionState = 'DECIDED';
|
|
3
|
-
export type DecisionStatus = 'CREATED';
|
|
4
|
-
export type TaskState = 'TODO' | 'DONE';
|
|
5
|
-
export type Cursor = string;
|
|
6
|
-
export type DecisionType = 'DECISION';
|
|
7
|
-
export type TaskType = 'TASK';
|
|
8
|
-
export interface ContentRef {
|
|
9
|
-
(ref: HTMLElement | null): void;
|
|
10
|
-
}
|
|
11
|
-
export interface ObjectKey {
|
|
12
|
-
containerAri?: string;
|
|
13
|
-
localId: string;
|
|
14
|
-
objectAri: string;
|
|
15
|
-
}
|
|
16
|
-
export interface BaseItem<S> extends ObjectKey {
|
|
17
|
-
lastUpdateDate: Date;
|
|
18
|
-
state: S;
|
|
19
|
-
type: DecisionType | TaskType;
|
|
20
|
-
}
|
|
21
|
-
export interface ServiceDecision {
|
|
22
|
-
creationDate?: string;
|
|
23
|
-
creatorId?: UserId;
|
|
24
|
-
lastUpdateDate: string;
|
|
25
|
-
lastUpdaterId?: UserId;
|
|
26
|
-
localId: string;
|
|
27
|
-
objectAri: string;
|
|
28
|
-
participants?: UserId[];
|
|
29
|
-
state?: DecisionState;
|
|
30
|
-
status: DecisionStatus;
|
|
31
|
-
type: DecisionType;
|
|
32
|
-
}
|
|
33
|
-
export interface Meta {
|
|
34
|
-
cursor?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface ServiceDecisionResponse {
|
|
37
|
-
decisions: ServiceDecision[];
|
|
38
|
-
meta: Meta;
|
|
39
|
-
}
|
|
40
|
-
export type ServiceItem = ServiceDecision | ServiceTask;
|
|
41
|
-
export interface ServiceTaskState {
|
|
42
|
-
lastUpdateDate: string;
|
|
43
|
-
localId: string;
|
|
44
|
-
objectAri: string;
|
|
45
|
-
state: TaskState;
|
|
46
|
-
}
|
|
47
|
-
export interface Decision extends BaseItem<DecisionState> {
|
|
48
|
-
creationDate?: Date;
|
|
49
|
-
creator?: UserId;
|
|
50
|
-
lastUpdateDate: Date;
|
|
51
|
-
lastUpdater?: UserId;
|
|
52
|
-
participants?: UserId[];
|
|
53
|
-
status: DecisionStatus;
|
|
54
|
-
type: DecisionType;
|
|
55
|
-
}
|
|
56
|
-
export type Item = Decision | Task;
|
|
57
|
-
export type UserId = string;
|
|
58
|
-
export interface ServiceTask {
|
|
59
|
-
creationDate?: string;
|
|
60
|
-
creatorId?: UserId;
|
|
61
|
-
lastUpdateDate: string;
|
|
62
|
-
lastUpdaterId?: UserId;
|
|
63
|
-
localId: string;
|
|
64
|
-
objectAri: string;
|
|
65
|
-
parentLocalId?: string;
|
|
66
|
-
participants?: UserId[];
|
|
67
|
-
position: number;
|
|
68
|
-
state: TaskState;
|
|
69
|
-
type: TaskType;
|
|
70
|
-
}
|
|
71
|
-
export interface Task extends BaseItem<TaskState> {
|
|
72
|
-
creationDate?: Date;
|
|
73
|
-
creator?: UserId;
|
|
74
|
-
lastUpdateDate: Date;
|
|
75
|
-
lastUpdater?: UserId;
|
|
76
|
-
parentLocalId?: string;
|
|
77
|
-
participants?: UserId[];
|
|
78
|
-
position?: number;
|
|
79
|
-
type: TaskType;
|
|
80
|
-
}
|
|
81
|
-
export type Handler = (state: TaskState | DecisionState) => void;
|
|
82
|
-
export type RecentUpdatesId = string;
|
|
83
|
-
export interface RecentUpdateContext {
|
|
84
|
-
localId?: string;
|
|
85
|
-
objectAri: string;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* A subscriber interface that can be called back if there are new decisions/tasks/items
|
|
89
|
-
* available as the result of an external change.
|
|
90
|
-
*/
|
|
91
|
-
export interface RecentUpdatesListener {
|
|
92
|
-
/**
|
|
93
|
-
* An id that can be used to unsubscribe
|
|
94
|
-
*/
|
|
95
|
-
id(id: RecentUpdatesId): void;
|
|
96
|
-
/**
|
|
97
|
-
* Indicates there are recent updates, and the listener should refresh
|
|
98
|
-
* the latest items from the TaskDecisionProvider.
|
|
99
|
-
*
|
|
100
|
-
* There will be a number of retries until expectedLocalId, if passed.
|
|
101
|
-
*
|
|
102
|
-
* @param updateContext Recent update context
|
|
103
|
-
*/
|
|
104
|
-
recentUpdates(updateContext: RecentUpdateContext): void;
|
|
105
|
-
}
|
|
106
|
-
export interface TaskDecisionResourceConfig extends ServiceConfig {
|
|
107
|
-
/**
|
|
108
|
-
* Indicates if initial state for an action or decision is should be cached,
|
|
109
|
-
* from the content, i.e. was originally hydrated from the service initially,
|
|
110
|
-
* and so should be considered up to date.
|
|
111
|
-
*
|
|
112
|
-
* Will stop the initiation of the hydration from the service the first
|
|
113
|
-
* time an action or decision is seen.
|
|
114
|
-
*
|
|
115
|
-
* If false the state will always be hydrated from the service on first view.
|
|
116
|
-
*/
|
|
117
|
-
disableServiceHydration?: boolean;
|
|
118
|
-
pubSubClient?: PubSubClient;
|
|
119
|
-
}
|
|
120
|
-
export interface TaskDecisionProvider {
|
|
121
|
-
notifyRecentUpdates(updateContext: RecentUpdateContext): void;
|
|
122
|
-
subscribe(objectKey: ObjectKey, handler: Handler, item?: BaseItem<TaskState | DecisionState>): void;
|
|
123
|
-
toggleTask(objectKey: ObjectKey, state: TaskState): Promise<TaskState>;
|
|
124
|
-
unsubscribe(objectKey: ObjectKey, handler: Handler): void;
|
|
125
|
-
unsubscribeRecentUpdates(id: RecentUpdatesId): void;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Same as RendererContext in editor-core (don't want an direct dep though)
|
|
129
|
-
*/
|
|
130
|
-
export interface RendererContext {
|
|
131
|
-
containerAri?: string;
|
|
132
|
-
objectAri: string;
|
|
133
|
-
}
|
|
134
|
-
export interface RenderDocument {
|
|
135
|
-
(document: any, rendererContext?: RendererContext): JSX.Element;
|
|
136
|
-
}
|
|
137
|
-
export interface OnUpdate<T> {
|
|
138
|
-
(allDecisions: T[], newDecisions: T[]): void;
|
|
139
|
-
}
|
|
140
|
-
export type Appearance = 'inline';
|
|
141
|
-
/**
|
|
142
|
-
* Same as PubSub client types (don't want a direct dep though)
|
|
143
|
-
*/
|
|
144
|
-
export type ARI = string;
|
|
145
|
-
export type AVI = string;
|
|
146
|
-
export interface PubSubOnEvent<T = any> {
|
|
147
|
-
(event: string, data: T): void;
|
|
148
|
-
}
|
|
149
|
-
export interface PubSubClient {
|
|
150
|
-
join(aris: ARI[]): Promise<PubSubClient>;
|
|
151
|
-
leave(aris: ARI[]): Promise<PubSubClient>;
|
|
152
|
-
off(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
153
|
-
on(eventAvi: string, listener: PubSubOnEvent): PubSubClient;
|
|
154
|
-
}
|
|
155
|
-
export declare enum PubSubSpecialEventType {
|
|
156
|
-
ERROR = "ERROR",
|
|
157
|
-
CONNECTED = "CONNECTED",
|
|
158
|
-
RECONNECT = "RECONNECT"
|
|
159
|
-
}
|