@clxmedia/types 1.0.61 → 1.0.63

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.
@@ -2,3 +2,4 @@ export * as credstore from './credstore';
2
2
  export * as clxforms from './clxforms';
3
3
  export * as eventlog from './eventlog';
4
4
  export * as auth from './auth';
5
+ export * as tasks from './tasks';
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.auth = exports.eventlog = exports.clxforms = exports.credstore = void 0;
3
+ exports.tasks = exports.auth = 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.auth = require("./auth");
8
+ exports.tasks = require("./tasks");
@@ -0,0 +1,51 @@
1
+ export type CLXSortDirection = 'asc' | 'desc';
2
+ export type CLXTaskFilter = {
3
+ assigned_to_user_id?: number;
4
+ master_id?: number;
5
+ open_only?: boolean;
6
+ task_type_id?: number;
7
+ take?: number;
8
+ skip?: number;
9
+ sort_by?: string;
10
+ sort_direction?: CLXSortDirection;
11
+ };
12
+ export type PagedResult<T> = {
13
+ items: T[];
14
+ total: number;
15
+ take: number;
16
+ skip: number;
17
+ };
18
+ export type TaskActionType = 'create' | 'assign' | 'comment' | 'start' | 'complete' | 'close';
19
+ export type CLXTask = {
20
+ id: number;
21
+ description: string;
22
+ assigned_to_user_id: number;
23
+ snapshot_id: number;
24
+ created_at: Date;
25
+ closed_at: Date;
26
+ task_type_id: number;
27
+ task_type: {
28
+ name: string;
29
+ };
30
+ master_id: number;
31
+ entity: {
32
+ name: string;
33
+ };
34
+ assigned_to_user: {
35
+ email: string;
36
+ };
37
+ snapshot?: {
38
+ summary: string;
39
+ };
40
+ };
41
+ export type CLXTaskWithHistory = CLXTask & {
42
+ history: {
43
+ description: string;
44
+ created_at: Date;
45
+ action_type: TaskActionType;
46
+ action_by_user: {
47
+ id: number;
48
+ email: string;
49
+ };
50
+ }[];
51
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,6 +21,10 @@
21
21
  "types": "./dist/core/auth/index.d.ts",
22
22
  "default": "./dist/core/auth/index.js"
23
23
  },
24
+ "./core/tasks": {
25
+ "types": "./dist/core/tasks/index.d.ts",
26
+ "default": "./dist/core/tasks/index.js"
27
+ },
24
28
  "./core/clxforms": {
25
29
  "types": "./dist/core/clxforms/index.d.ts",
26
30
  "default": "./dist/core/clxforms/index.js"
@@ -50,6 +54,9 @@
50
54
  "core/auth": [
51
55
  "dist/core/auth/index.d.ts"
52
56
  ],
57
+ "core/tasks": [
58
+ "dist/core/tasks/index.d.ts"
59
+ ],
53
60
  "core/clxforms": [
54
61
  "dist/core/clxforms/index.d.ts"
55
62
  ],