viviscape-mcp 2.0.2 → 2.2.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/README.md +43 -1
- package/dist/api-client.d.ts +151 -1
- package/dist/api-client.js +515 -71
- package/dist/auth/permissions.js +2 -0
- package/dist/enums.d.ts +48 -0
- package/dist/enums.js +67 -0
- package/dist/index.js +463 -34
- package/dist/projection.d.ts +47 -0
- package/dist/projection.js +132 -0
- package/package.json +1 -1
package/dist/enums.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status and priority vocabularies as the platform actually defines them.
|
|
3
|
+
*
|
|
4
|
+
* Source of truth is the ViviScape Work UI, not guesswork:
|
|
5
|
+
* ClockWyzWeb/Views/App/Tasks.cshtml -- task status + priority selects
|
|
6
|
+
* ClockWyzWeb/Views/App/Projects.cshtml -- task editor and project status selects
|
|
7
|
+
* Cross-checked against live rows from account 1 (211 projects, 6 open tasks).
|
|
8
|
+
*
|
|
9
|
+
* Two traps worth knowing:
|
|
10
|
+
* - Tasks complete as "completed"; projects complete as "complete".
|
|
11
|
+
* - Priority is low/moderate/important/urgent/critical. It is NOT
|
|
12
|
+
* low/medium/high, which is what this server's task_add used to claim.
|
|
13
|
+
*/
|
|
14
|
+
/** Task status values, in board order. */
|
|
15
|
+
export declare const TASK_STATUSES: readonly ["backlog", "new", "research", "inprogress", "pendingreview", "inreview", "testing", "waitingcustomer", "waitingteammember", "onhold", "cancelled", "completed"];
|
|
16
|
+
/** Task and project priority values, ascending. */
|
|
17
|
+
export declare const PRIORITIES: readonly ["low", "moderate", "important", "urgent", "critical"];
|
|
18
|
+
/**
|
|
19
|
+
* Project (group) status values. Narrower than task status, and note "complete"
|
|
20
|
+
* rather than "completed". An empty status reads as "Undetermined" in the UI.
|
|
21
|
+
*/
|
|
22
|
+
export declare const PROJECT_STATUSES: readonly ["new", "inprogress", "complete"];
|
|
23
|
+
/** Prospect pipeline stages, from the CRM tools. */
|
|
24
|
+
export declare const PROSPECT_STATUSES: readonly ["new", "firstcontact", "negotiation", "pending", "won", "lost", "spam"];
|
|
25
|
+
/** Group type ids; 5 (PROJECT) is what project tools create and expect. */
|
|
26
|
+
export declare const GROUP_TYPES: {
|
|
27
|
+
readonly GENERAL: 1;
|
|
28
|
+
readonly TEAM: 3;
|
|
29
|
+
readonly SUPPORT: 4;
|
|
30
|
+
readonly PROJECT: 5;
|
|
31
|
+
};
|
|
32
|
+
export type TaskStatus = (typeof TASK_STATUSES)[number];
|
|
33
|
+
export type Priority = (typeof PRIORITIES)[number];
|
|
34
|
+
export type ProjectStatus = (typeof PROJECT_STATUSES)[number];
|
|
35
|
+
/** Payload for the enums tool, so callers can discover these without guessing. */
|
|
36
|
+
export declare function enumReference(): {
|
|
37
|
+
task_status: readonly ["backlog", "new", "research", "inprogress", "pendingreview", "inreview", "testing", "waitingcustomer", "waitingteammember", "onhold", "cancelled", "completed"];
|
|
38
|
+
priority: readonly ["low", "moderate", "important", "urgent", "critical"];
|
|
39
|
+
project_status: readonly ["new", "inprogress", "complete"];
|
|
40
|
+
prospect_status: readonly ["new", "firstcontact", "negotiation", "pending", "won", "lost", "spam"];
|
|
41
|
+
group_types: {
|
|
42
|
+
readonly GENERAL: 1;
|
|
43
|
+
readonly TEAM: 3;
|
|
44
|
+
readonly SUPPORT: 4;
|
|
45
|
+
readonly PROJECT: 5;
|
|
46
|
+
};
|
|
47
|
+
notes: string[];
|
|
48
|
+
};
|
package/dist/enums.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status and priority vocabularies as the platform actually defines them.
|
|
3
|
+
*
|
|
4
|
+
* Source of truth is the ViviScape Work UI, not guesswork:
|
|
5
|
+
* ClockWyzWeb/Views/App/Tasks.cshtml -- task status + priority selects
|
|
6
|
+
* ClockWyzWeb/Views/App/Projects.cshtml -- task editor and project status selects
|
|
7
|
+
* Cross-checked against live rows from account 1 (211 projects, 6 open tasks).
|
|
8
|
+
*
|
|
9
|
+
* Two traps worth knowing:
|
|
10
|
+
* - Tasks complete as "completed"; projects complete as "complete".
|
|
11
|
+
* - Priority is low/moderate/important/urgent/critical. It is NOT
|
|
12
|
+
* low/medium/high, which is what this server's task_add used to claim.
|
|
13
|
+
*/
|
|
14
|
+
/** Task status values, in board order. */
|
|
15
|
+
export const TASK_STATUSES = [
|
|
16
|
+
'backlog',
|
|
17
|
+
'new',
|
|
18
|
+
'research',
|
|
19
|
+
'inprogress',
|
|
20
|
+
'pendingreview',
|
|
21
|
+
'inreview',
|
|
22
|
+
'testing',
|
|
23
|
+
'waitingcustomer',
|
|
24
|
+
'waitingteammember',
|
|
25
|
+
'onhold',
|
|
26
|
+
'cancelled',
|
|
27
|
+
'completed',
|
|
28
|
+
];
|
|
29
|
+
/** Task and project priority values, ascending. */
|
|
30
|
+
export const PRIORITIES = ['low', 'moderate', 'important', 'urgent', 'critical'];
|
|
31
|
+
/**
|
|
32
|
+
* Project (group) status values. Narrower than task status, and note "complete"
|
|
33
|
+
* rather than "completed". An empty status reads as "Undetermined" in the UI.
|
|
34
|
+
*/
|
|
35
|
+
export const PROJECT_STATUSES = ['new', 'inprogress', 'complete'];
|
|
36
|
+
/** Prospect pipeline stages, from the CRM tools. */
|
|
37
|
+
export const PROSPECT_STATUSES = [
|
|
38
|
+
'new',
|
|
39
|
+
'firstcontact',
|
|
40
|
+
'negotiation',
|
|
41
|
+
'pending',
|
|
42
|
+
'won',
|
|
43
|
+
'lost',
|
|
44
|
+
'spam',
|
|
45
|
+
];
|
|
46
|
+
/** Group type ids; 5 (PROJECT) is what project tools create and expect. */
|
|
47
|
+
export const GROUP_TYPES = {
|
|
48
|
+
GENERAL: 1,
|
|
49
|
+
TEAM: 3,
|
|
50
|
+
SUPPORT: 4,
|
|
51
|
+
PROJECT: 5,
|
|
52
|
+
};
|
|
53
|
+
/** Payload for the enums tool, so callers can discover these without guessing. */
|
|
54
|
+
export function enumReference() {
|
|
55
|
+
return {
|
|
56
|
+
task_status: TASK_STATUSES,
|
|
57
|
+
priority: PRIORITIES,
|
|
58
|
+
project_status: PROJECT_STATUSES,
|
|
59
|
+
prospect_status: PROSPECT_STATUSES,
|
|
60
|
+
group_types: GROUP_TYPES,
|
|
61
|
+
notes: [
|
|
62
|
+
'Tasks use "completed"; projects use "complete".',
|
|
63
|
+
'Priority is low/moderate/important/urgent/critical -- not low/medium/high.',
|
|
64
|
+
'An empty project status displays as "Undetermined".',
|
|
65
|
+
],
|
|
66
|
+
};
|
|
67
|
+
}
|