@clxmedia/types 1.0.68 → 1.0.69
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/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tasks = exports.auth = exports.events = exports.eventlog = exports.clxforms = exports.credstore = void 0;
|
|
3
|
+
exports.projects = exports.tasks = exports.auth = exports.events = exports.eventlog = exports.clxforms = exports.credstore = void 0;
|
|
4
4
|
exports.credstore = require("./credstore");
|
|
5
5
|
exports.clxforms = require("./clxforms");
|
|
6
6
|
exports.eventlog = require("./eventlog");
|
|
7
7
|
exports.events = require("./events");
|
|
8
8
|
exports.auth = require("./auth");
|
|
9
9
|
exports.tasks = require("./tasks");
|
|
10
|
+
exports.projects = require("./projects");
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CLXFormRuleSet } from "../clxforms";
|
|
2
|
+
export type CLXProjectStepStatus = "pending" | "open" | "complete";
|
|
3
|
+
export type CLXProjectStepSlug = string;
|
|
4
|
+
export type CLXProjectTaskTemplate = {
|
|
5
|
+
description: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
task_type_id: number;
|
|
8
|
+
default_required?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type CLXProjectStepTemplate = {
|
|
11
|
+
name: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
status: CLXProjectStepStatus;
|
|
14
|
+
tasks: CLXProjectTaskTemplate[];
|
|
15
|
+
};
|
|
16
|
+
export type CLXProjectTemplate = {
|
|
17
|
+
name: string;
|
|
18
|
+
slug: string;
|
|
19
|
+
steps: CLXProjectStepTemplate[];
|
|
20
|
+
};
|
|
21
|
+
export type CLXProject = {
|
|
22
|
+
name: string;
|
|
23
|
+
slug: string;
|
|
24
|
+
steps: CLXProjectStepTemplate[];
|
|
25
|
+
};
|
|
26
|
+
export type CLXTaskInstance = {
|
|
27
|
+
id: number;
|
|
28
|
+
slug: string;
|
|
29
|
+
task_type_id: number;
|
|
30
|
+
description: string;
|
|
31
|
+
master_id: number;
|
|
32
|
+
assigned_to_user_id: number | null;
|
|
33
|
+
created_at: Date;
|
|
34
|
+
closed_at: Date | null;
|
|
35
|
+
};
|
|
36
|
+
export type CLXProjectTaskInstance = {
|
|
37
|
+
id: number;
|
|
38
|
+
is_required: boolean;
|
|
39
|
+
conditions: CLXFormRuleSet | any;
|
|
40
|
+
project_step_id: number;
|
|
41
|
+
task_id: number;
|
|
42
|
+
created_at: Date;
|
|
43
|
+
updated_at: Date;
|
|
44
|
+
task: CLXTaskInstance;
|
|
45
|
+
};
|
|
46
|
+
export type CLXProjectStepInstance = {
|
|
47
|
+
id: number;
|
|
48
|
+
project_id: number;
|
|
49
|
+
name: string;
|
|
50
|
+
slug: string;
|
|
51
|
+
status: CLXProjectStepStatus;
|
|
52
|
+
tasks: CLXProjectTaskInstance[];
|
|
53
|
+
};
|
|
54
|
+
export type CLXProjectInstance = {
|
|
55
|
+
id: number;
|
|
56
|
+
master_id: number;
|
|
57
|
+
name: string;
|
|
58
|
+
slug: string;
|
|
59
|
+
created_at: Date;
|
|
60
|
+
updated_at: Date;
|
|
61
|
+
archived_at: Date | null;
|
|
62
|
+
steps: CLXProjectStepInstance[];
|
|
63
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clxmedia/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.69",
|
|
4
4
|
"description": "Conversion Logix TypeScript type definitions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"types": "./dist/core/tasks/index.d.ts",
|
|
26
26
|
"default": "./dist/core/tasks/index.js"
|
|
27
27
|
},
|
|
28
|
+
"./core/projects": {
|
|
29
|
+
"types": "./dist/core/projects/index.d.ts",
|
|
30
|
+
"default": "./dist/core/projects/index.js"
|
|
31
|
+
},
|
|
28
32
|
"./core/clxforms": {
|
|
29
33
|
"types": "./dist/core/clxforms/index.d.ts",
|
|
30
34
|
"default": "./dist/core/clxforms/index.js"
|
|
@@ -61,6 +65,9 @@
|
|
|
61
65
|
"core/tasks": [
|
|
62
66
|
"dist/core/tasks/index.d.ts"
|
|
63
67
|
],
|
|
68
|
+
"core/projects": [
|
|
69
|
+
"dist/core/projects/index.d.ts"
|
|
70
|
+
],
|
|
64
71
|
"core/clxforms": [
|
|
65
72
|
"dist/core/clxforms/index.d.ts"
|
|
66
73
|
],
|