@opencxh/domain 1.42.1 → 1.44.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { OwnerScope } from '../contact/types';
|
|
2
|
+
export type TaskStatus = "open" | "in_progress" | "done" | "cancelled";
|
|
3
|
+
export type TaskPriority = "low" | "normal" | "high" | "urgent";
|
|
4
|
+
export type TaskInitiator = "user" | "system";
|
|
5
|
+
export interface TaskSource {
|
|
6
|
+
initiator: TaskInitiator;
|
|
7
|
+
/** Free-form reason when initiator is "system" (e.g. "missed_call", "stale_interaction"). */
|
|
8
|
+
systemReason?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Task {
|
|
11
|
+
id: string;
|
|
12
|
+
organizationId: string;
|
|
13
|
+
ownerScope: OwnerScope;
|
|
14
|
+
title: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
status: TaskStatus;
|
|
17
|
+
priority?: TaskPriority;
|
|
18
|
+
/** Epoch ms. */
|
|
19
|
+
dueDate?: number;
|
|
20
|
+
/** Epoch ms — set when status moves to "done". */
|
|
21
|
+
completedAt?: number;
|
|
22
|
+
/** Link to a communication Interaction (follow-up on a call/message). */
|
|
23
|
+
interactionId?: string;
|
|
24
|
+
/** Link to a contact. */
|
|
25
|
+
contactId?: string;
|
|
26
|
+
/** UserIds assigned to act on this task. Empty = team pool. */
|
|
27
|
+
assignees?: string[];
|
|
28
|
+
/** Origin of the task — user-created or system-generated. */
|
|
29
|
+
source: TaskSource;
|
|
30
|
+
/** Channel used for external sync (provider-resolved). */
|
|
31
|
+
channelId?: string;
|
|
32
|
+
/** Provider-side IDs for dedupe (Google Tasks id, MS To Do id, …). */
|
|
33
|
+
externalIds?: string[];
|
|
34
|
+
createdBy: string;
|
|
35
|
+
createdAt?: number;
|
|
36
|
+
updatedAt?: number;
|
|
37
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './entities/contact';
|
|
|
11
11
|
export * from './entities/calendar-event';
|
|
12
12
|
export * from './entities/inbox';
|
|
13
13
|
export * from './entities/interaction';
|
|
14
|
+
export * from './entities/task';
|
|
14
15
|
export * from './entities/note';
|
|
15
16
|
export * from './entities/team';
|
|
16
17
|
export * from './entities/organization';
|
package/dist/platform/sdk.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ export interface InternalSDK<LocalServices extends ServiceMap = {}, TranslationK
|
|
|
37
37
|
open(key: ModalKeys, props?: any): void;
|
|
38
38
|
close(key: ModalKeys): void;
|
|
39
39
|
};
|
|
40
|
+
settings: {
|
|
41
|
+
open(initialPageId?: string): void;
|
|
42
|
+
close(): void;
|
|
43
|
+
};
|
|
40
44
|
toasts: {
|
|
41
45
|
show(config: ToastConfig): void;
|
|
42
46
|
close(id: string): void;
|
package/dist/platform/ui.d.ts
CHANGED
|
@@ -9,6 +9,21 @@ export interface ModalConfig {
|
|
|
9
9
|
props?: Record<string, any>;
|
|
10
10
|
hideHeader?: boolean;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Settings page registered by an app. Shown in the shell's settings overlay.
|
|
14
|
+
*
|
|
15
|
+
* `displayName` and `group` are i18n keys (resolved via the app's localization
|
|
16
|
+
* namespace at render time). If the key is unknown, the raw string is shown.
|
|
17
|
+
*/
|
|
18
|
+
export interface SettingsPageConfig {
|
|
19
|
+
id: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
group?: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
resource: string;
|
|
24
|
+
order?: number;
|
|
25
|
+
permissions?: string[];
|
|
26
|
+
}
|
|
12
27
|
export interface ToastConfig {
|
|
13
28
|
id: string;
|
|
14
29
|
title?: string;
|