@nuffieldtechnologies/rugged-schema-types 2.1.45 → 2.1.46

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/.eslintrc.js CHANGED
File without changes
package/README.md CHANGED
File without changes
package/dist/index.js CHANGED
@@ -1,35 +1,35 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.All = exports.AllOrganisationFields = exports.Organisations = exports.OrganisationInput = exports.Organisation = exports.AllFormFields = exports.Forms = exports.FormFilter = exports.FormInput = exports.Form = exports.AllRolesFields = exports.AllUserFields = exports.Users = exports.UserInput = exports.User = exports.AllTaskFields = exports.Tasks = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
4
- const TimeStamps = require("./schemas/timestamps");
5
- const Events = require("./schemas/events");
6
- const TemplateInfo = require("./schemas/template-info");
7
- const UserSchemas = require("./schemas/user");
8
- const Roles = require("./schemas/roles");
9
- const FormSchemas = require("./schemas/form");
10
- const OrganisationSchemas = require("./schemas/organisation");
11
- const TaskIdentifiers = require("./schemas/task-identifiers");
12
- const TaskOldSchemas = require("./schemas/task-old");
13
- const TaskSchemas = require("./schemas/task");
14
- exports.Task = TimeStamps._TimeStamps + Events._Event + Events._Events + TemplateInfo._TemplateInfo + TaskSchemas._TaskInfo + TaskSchemas._WorkflowInfo + TaskSchemas._Task + TaskIdentifiers._TaskIdentifiers;
15
- exports.TaskInput = TimeStamps._TimeStampsInput + Events._EventInput + Events._EventsInput + TemplateInfo._TemplateInfoInput + TaskSchemas._TaskInfoInput + TaskSchemas._WorkflowInfoInput + TaskSchemas._TaskInput + TaskIdentifiers._TaskIdentifiersInput;
16
- exports.TaskFilter = TaskSchemas._TaskFilter;
17
- exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter + TaskOldSchemas._TaskOld;
18
- exports.AllTaskFields = TaskSchemas._AllTaskFields;
19
- exports.User = Roles._Roles + UserSchemas._User;
20
- exports.UserInput = Roles._RolesInput + UserSchemas._UserInput;
21
- exports.Users = exports.User + exports.UserInput;
22
- exports.AllUserFields = UserSchemas._AllUserFields;
23
- exports.AllRolesFields = Roles._AllRolesFields;
24
- exports.Form = FormSchemas._Form;
25
- exports.FormInput = FormSchemas._FormInput;
26
- exports.FormFilter = FormSchemas._FormFilter;
27
- exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
28
- exports.AllFormFields = FormSchemas._AllFormFields;
29
- exports.Organisation = OrganisationSchemas._Organisation;
30
- exports.OrganisationInput = OrganisationSchemas._OrganisationInput;
31
- exports.Organisations = exports.Organisation + exports.OrganisationInput;
32
- exports.AllOrganisationFields = OrganisationSchemas._AllOrganisationFields;
33
- exports.All = exports.Tasks + exports.Users + exports.Forms + exports.Organisations;
34
- exports.default = exports.All;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.All = exports.AllOrganisationFields = exports.Organisations = exports.OrganisationInput = exports.Organisation = exports.AllFormFields = exports.Forms = exports.FormFilter = exports.FormInput = exports.Form = exports.AllRolesFields = exports.AllUserFields = exports.Users = exports.UserInput = exports.User = exports.AllTaskFields = exports.Tasks = exports.TaskFilter = exports.TaskInput = exports.Task = void 0;
4
+ const TimeStamps = require("./schemas/timestamps");
5
+ const Events = require("./schemas/events");
6
+ const TemplateInfo = require("./schemas/template-info");
7
+ const UserSchemas = require("./schemas/user");
8
+ const Roles = require("./schemas/roles");
9
+ const FormSchemas = require("./schemas/form");
10
+ const OrganisationSchemas = require("./schemas/organisation");
11
+ const TaskIdentifiers = require("./schemas/task-identifiers");
12
+ const TaskOldSchemas = require("./schemas/task-old");
13
+ const TaskSchemas = require("./schemas/task");
14
+ exports.Task = TimeStamps._TimeStamps + Events._Event + Events._Events + TemplateInfo._TemplateInfo + TaskSchemas._TaskInfo + TaskSchemas._WorkflowInfo + TaskSchemas._Task + TaskIdentifiers._TaskIdentifiers;
15
+ exports.TaskInput = TimeStamps._TimeStampsInput + Events._EventInput + Events._EventsInput + TemplateInfo._TemplateInfoInput + TaskSchemas._TaskInfoInput + TaskSchemas._WorkflowInfoInput + TaskSchemas._TaskInput + TaskIdentifiers._TaskIdentifiersInput;
16
+ exports.TaskFilter = TaskSchemas._TaskFilter;
17
+ exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter + TaskOldSchemas._TaskOld;
18
+ exports.AllTaskFields = TaskSchemas._AllTaskFields;
19
+ exports.User = Roles._Roles + UserSchemas._User;
20
+ exports.UserInput = Roles._RolesInput + UserSchemas._UserInput;
21
+ exports.Users = exports.User + exports.UserInput;
22
+ exports.AllUserFields = UserSchemas._AllUserFields;
23
+ exports.AllRolesFields = Roles._AllRolesFields;
24
+ exports.Form = FormSchemas._Form;
25
+ exports.FormInput = FormSchemas._FormInput;
26
+ exports.FormFilter = FormSchemas._FormFilter;
27
+ exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
28
+ exports.AllFormFields = FormSchemas._AllFormFields;
29
+ exports.Organisation = OrganisationSchemas._Organisation;
30
+ exports.OrganisationInput = OrganisationSchemas._OrganisationInput;
31
+ exports.Organisations = exports.Organisation + exports.OrganisationInput;
32
+ exports.AllOrganisationFields = OrganisationSchemas._AllOrganisationFields;
33
+ exports.All = exports.Tasks + exports.Users + exports.Forms + exports.Organisations;
34
+ exports.default = exports.All;
35
35
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
File without changes
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllEventFields = exports._EventsInput = exports._Events = exports._EventInput = exports._Event = void 0;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllEventFields = exports._EventsInput = exports._Events = exports._EventInput = exports._Event = void 0;
4
4
  exports._Event = `
5
5
  type Event {
6
6
  appVersion: String,
@@ -12,7 +12,7 @@ exports._Event = `
12
12
  user: String,
13
13
  userEmail: String
14
14
  }
15
- `;
15
+ `;
16
16
  exports._EventInput = `
17
17
  input EventInput {
18
18
  appVersion: String,
@@ -24,7 +24,7 @@ exports._EventInput = `
24
24
  user: String,
25
25
  userEmail: String
26
26
  }
27
- `;
27
+ `;
28
28
  exports._Events = `
29
29
  type Events {
30
30
  started: Event,
@@ -35,7 +35,7 @@ exports._Events = `
35
35
  discarded: Event,
36
36
  reviewed: Event
37
37
  }
38
- `;
38
+ `;
39
39
  exports._EventsInput = `
40
40
  input EventsInput {
41
41
  started: EventInput,
@@ -46,6 +46,6 @@ exports._EventsInput = `
46
46
  discarded: EventInput,
47
47
  reviewed: EventInput
48
48
  }
49
- `;
50
- exports._AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
49
+ `;
50
+ exports._AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
51
51
  //# sourceMappingURL=events.js.map
File without changes
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllFormFields = exports._FormFilter = exports._Form = exports._FormInput = void 0;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllFormFields = exports._FormFilter = exports._Form = exports._FormInput = void 0;
4
4
  exports._FormInput = `
5
5
 
6
6
  input ParamInput {
@@ -20,7 +20,7 @@ exports._FormInput = `
20
20
  resources: String
21
21
  body: String
22
22
  }
23
- `;
23
+ `;
24
24
  exports._Form = `
25
25
 
26
26
  type Param {
@@ -40,11 +40,11 @@ exports._Form = `
40
40
  resources: String
41
41
  body: String
42
42
  }
43
- `;
43
+ `;
44
44
  exports._FormFilter = `
45
45
  input FormFilter {
46
46
  status: String
47
47
  }
48
- `;
49
- exports._AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
48
+ `;
49
+ exports._AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
50
50
  //# sourceMappingURL=form.js.map
File without changes
@@ -1,19 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllOrganisationFields = exports._Organisation = exports._OrganisationInput = void 0;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllOrganisationFields = exports._Organisation = exports._OrganisationInput = void 0;
4
4
  exports._OrganisationInput = `
5
5
  input OrganisationInput {
6
6
  id: ID
7
7
  name: String
8
8
  logoUrl: String
9
9
  }
10
- `;
10
+ `;
11
11
  exports._Organisation = `
12
12
  type Organisation {
13
13
  id: ID
14
14
  name: String
15
15
  logoUrl: String
16
16
  }
17
- `;
18
- exports._AllOrganisationFields = `{id, name, logoUrl}`;
17
+ `;
18
+ exports._AllOrganisationFields = `{id, name, logoUrl}`;
19
19
  //# sourceMappingURL=organisation.js.map
File without changes
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllRolesFields = exports._RolesInput = exports._Roles = void 0;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllRolesFields = exports._RolesInput = exports._Roles = void 0;
4
4
  exports._Roles = `
5
5
  type Roles {
6
6
  user: Boolean
@@ -10,13 +10,13 @@ exports._Roles = `
10
10
  super: Boolean
11
11
  legacyPush: Boolean
12
12
  }
13
- `;
13
+ `;
14
14
  exports._RolesInput = `
15
15
  input RolesInput {
16
16
  user: Boolean
17
17
  admin: Boolean
18
18
  api: Boolean
19
19
  }
20
- `;
21
- exports._AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
20
+ `;
21
+ exports._AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
22
22
  //# sourceMappingURL=roles.js.map
File without changes
@@ -1,16 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._TaskIdentifiersInput = exports._TaskIdentifiers = void 0;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TaskIdentifiersInput = exports._TaskIdentifiers = void 0;
4
4
  exports._TaskIdentifiers = `
5
5
  type TaskIdentifiers {
6
6
  primary: String
7
7
  secondary: String
8
8
  }
9
- `;
9
+ `;
10
10
  exports._TaskIdentifiersInput = `
11
11
  input TaskIdentifiersInput {
12
12
  primary: String
13
13
  secondary: String
14
14
  }
15
- `;
15
+ `;
16
16
  //# sourceMappingURL=task-identifiers.js.map
File without changes
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._TaskOld = void 0;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TaskOld = void 0;
4
4
  exports._TaskOld = `
5
5
  type TaskOld {
6
6
  id: ID,
@@ -20,5 +20,5 @@ exports._TaskOld = `
20
20
  data: String
21
21
  refNo: String
22
22
  }
23
- `;
23
+ `;
24
24
  //# sourceMappingURL=task-old.js.map
File without changes
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllTaskFields = exports._TaskFilter = exports._WorkflowInfoInput = exports._TaskInfoInput = exports._TaskInput = exports._WorkflowInfo = exports._TaskInfo = exports._Task = void 0;
4
- const Events = require("./events");
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllTaskFields = exports._TaskFilter = exports._EntityHierarchyInput = exports._WorkflowInfoInput = exports._TaskInfoInput = exports._TaskInput = exports._EntityHierarchyInfo = exports._WorkflowInfo = exports._TaskInfo = exports._Task = void 0;
4
+ const Events = require("./events");
5
5
  exports._Task = `
6
6
  type Task {
7
7
  collections: String
@@ -10,7 +10,7 @@ exports._Task = `
10
10
  sections: String
11
11
  workflow: WorkflowInfo
12
12
  }
13
- `;
13
+ `;
14
14
  exports._TaskInfo = `
15
15
  type TaskInfo {
16
16
  status: String
@@ -18,6 +18,7 @@ exports._TaskInfo = `
18
18
  rootEntityId: String
19
19
  rootEntityName: String
20
20
  rootEntityAncestry: String
21
+ rootEntityHierarchy: [EntityHierarchyInfo]
21
22
  id: String
22
23
  refNo: String
23
24
  tags: String
@@ -33,14 +34,20 @@ exports._TaskInfo = `
33
34
  users: String
34
35
  timestamps: TimeStamps
35
36
  }
36
- `;
37
+ `;
37
38
  exports._WorkflowInfo = `
38
39
  type WorkflowInfo {
39
40
  slug: String
40
41
  step: String
41
42
  history: String
42
43
  }
43
- `;
44
+ `;
45
+ exports._EntityHierarchyInfo = `
46
+ type EntityHierarchyInfo {
47
+ category: String
48
+ entity: String
49
+ }
50
+ `;
44
51
  exports._TaskInput = `
45
52
  input TaskInput {
46
53
  collections: String
@@ -49,14 +56,14 @@ exports._TaskInput = `
49
56
  sections: String,
50
57
  workflow: WorkflowInfoInput
51
58
  }
52
- `;
59
+ `;
53
60
  exports._TaskInfoInput = `
54
61
  input TaskInfoInput {
55
62
  status: String
56
63
  statusBeforeEdit: String
57
- rootEntityName: String
58
64
  rootEntityId: String
59
65
  rootEntityAncestry: String
66
+ rootEntityHierarchy: [EntityHierarchyInput]
60
67
  id: String
61
68
  refNo: String
62
69
  tags: String
@@ -72,14 +79,20 @@ exports._TaskInfoInput = `
72
79
  users: String
73
80
  timestamps: TimeStampsInput
74
81
  }
75
- `;
82
+ `;
76
83
  exports._WorkflowInfoInput = `
77
84
  input WorkflowInfoInput {
78
85
  slug: String
79
86
  step: String
80
87
  history: String
81
88
  }
82
- `;
89
+ `;
90
+ exports._EntityHierarchyInput = `
91
+ type EntityHierarchyInput {
92
+ category: String
93
+ entity: String
94
+ }
95
+ `;
83
96
  exports._TaskFilter = `
84
97
  input TaskFilter {
85
98
  users: [ID]
@@ -91,6 +104,6 @@ exports._TaskFilter = `
91
104
  after: String
92
105
  before: String
93
106
  }
94
- `;
95
- exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, jobId, refNo, tags, workflowStep, workflow, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded, reviewed}, events {started ${Events._AllEventFields}, updated ${Events._AllEventFields}, submitted ${Events._AllEventFields}, discarded ${Events._AllEventFields}, processed ${Events._AllEventFields}, upgraded ${Events._AllEventFields}, reviewed ${Events._AllEventFields}}, template { name, shortName, type, id, version}, identifiers { primary, secondary}}, sections, workflow {slug, step, history}}`;
107
+ `;
108
+ exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, jobId, refNo, tags, workflowStep, workflow, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded, reviewed}, events {started ${Events._AllEventFields}, updated ${Events._AllEventFields}, submitted ${Events._AllEventFields}, discarded ${Events._AllEventFields}, processed ${Events._AllEventFields}, upgraded ${Events._AllEventFields}, reviewed ${Events._AllEventFields}}, template { name, shortName, type, id, version}, identifiers { primary, secondary}}, sections, workflow {slug, step, history}}`;
96
109
  //# sourceMappingURL=task.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"task.js","sourceRoot":"","sources":["../../schemas/task.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAErB,QAAA,KAAK,GAAG;;;;;;;;CAQpB,CAAC;AAEW,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBxB,CAAC;AACW,QAAA,aAAa,GAAG;;;;;;CAM5B,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;;CAQzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEW,QAAA,kBAAkB,GAAG;;;;;;CAMjC,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;;CAW1B,CAAC;AAEW,QAAA,cAAc,GAAG,mQAAmQ,MAAM,CAAC,eAAe,aAAa,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,cAAc,MAAM,CAAC,eAAe,cAAc,MAAM,CAAC,eAAe,kIAAkI,CAAC"}
1
+ {"version":3,"file":"task.js","sourceRoot":"","sources":["../../schemas/task.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAErB,QAAA,KAAK,GAAG;;;;;;;;CAQpB,CAAC;AAEW,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAC;AACW,QAAA,aAAa,GAAG;;;;;;CAM5B,CAAC;AAEW,QAAA,oBAAoB,GAAG;;;;;CAKnC,CAAA;AAEY,QAAA,UAAU,GAAG;;;;;;;;CAQzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEW,QAAA,kBAAkB,GAAG;;;;;;CAMjC,CAAC;AAEW,QAAA,qBAAqB,GAAG;;;;;CAKpC,CAAA;AAEY,QAAA,WAAW,GAAG;;;;;;;;;;;CAW1B,CAAC;AAEW,QAAA,cAAc,GAAG,mQAAmQ,MAAM,CAAC,eAAe,aAAa,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,cAAc,MAAM,CAAC,eAAe,cAAc,MAAM,CAAC,eAAe,kIAAkI,CAAC"}
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._TemplateInfoInput = exports._TemplateInfo = void 0;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TemplateInfoInput = exports._TemplateInfo = void 0;
4
4
  exports._TemplateInfo = `
5
5
  type TemplateInfo {
6
6
  name: String,
@@ -9,7 +9,7 @@ exports._TemplateInfo = `
9
9
  id: String
10
10
  version: String
11
11
  }
12
- `;
12
+ `;
13
13
  exports._TemplateInfoInput = `
14
14
  input TemplateInfoInput {
15
15
  name: String,
@@ -18,5 +18,5 @@ exports._TemplateInfoInput = `
18
18
  id: String
19
19
  version: String
20
20
  }
21
- `;
21
+ `;
22
22
  //# sourceMappingURL=template-info.js.map
File without changes
@@ -1,6 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._TimeStampsInput = exports._TimeStamps = void 0;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._TimeStampsInput = exports._TimeStamps = void 0;
4
4
  exports._TimeStamps = `
5
5
  type TimeStamps {
6
6
  started: String,
@@ -11,7 +11,7 @@ exports._TimeStamps = `
11
11
  upgraded: String,
12
12
  reviewed: String
13
13
  }
14
- `;
14
+ `;
15
15
  exports._TimeStampsInput = `
16
16
  input TimeStampsInput {
17
17
  started: String,
@@ -22,5 +22,5 @@ exports._TimeStampsInput = `
22
22
  upgraded: String,
23
23
  reviewed: String
24
24
  }
25
- `;
25
+ `;
26
26
  //# sourceMappingURL=timestamps.js.map
File without changes
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllUserFields = exports._UserInput = exports._User = void 0;
4
- const Roles = require("./roles");
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._AllUserFields = exports._UserInput = exports._User = void 0;
4
+ const Roles = require("./roles");
5
5
  exports._User = `
6
6
  type User {
7
7
  id: ID
@@ -12,7 +12,7 @@ exports._User = `
12
12
  roles: Roles
13
13
  permissions: String
14
14
  }
15
- `;
15
+ `;
16
16
  exports._UserInput = `
17
17
  input UserInput {
18
18
  id: ID
@@ -22,6 +22,6 @@ exports._UserInput = `
22
22
  email: String
23
23
  roles: RolesInput
24
24
  }
25
- `;
26
- exports._AllUserFields = `{id, organisation, name, email, roles ${Roles._AllRolesFields}, permissions}`;
25
+ `;
26
+ exports._AllUserFields = `{id, organisation, name, email, roles ${Roles._AllRolesFields}, permissions}`;
27
27
  //# sourceMappingURL=user.js.map
File without changes
package/index.ts CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuffieldtechnologies/rugged-schema-types",
3
- "version": "2.1.45",
3
+ "version": "2.1.46",
4
4
  "description": "Graphql schema for rugged data",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [
package/schemas/events.ts CHANGED
File without changes
package/schemas/form.ts CHANGED
File without changes
File without changes
package/schemas/roles.ts CHANGED
File without changes
File without changes
File without changes
package/schemas/task.ts CHANGED
@@ -17,6 +17,7 @@ export const _TaskInfo = `
17
17
  rootEntityId: String
18
18
  rootEntityName: String
19
19
  rootEntityAncestry: String
20
+ rootEntityHierarchy: [EntityHierarchyInfo]
20
21
  id: String
21
22
  refNo: String
22
23
  tags: String
@@ -41,6 +42,13 @@ export const _WorkflowInfo = `
41
42
  }
42
43
  `;
43
44
 
45
+ export const _EntityHierarchyInfo = `
46
+ type EntityHierarchyInfo {
47
+ category: String
48
+ entity: String
49
+ }
50
+ `
51
+
44
52
  export const _TaskInput = `
45
53
  input TaskInput {
46
54
  collections: String
@@ -55,9 +63,9 @@ export const _TaskInfoInput = `
55
63
  input TaskInfoInput {
56
64
  status: String
57
65
  statusBeforeEdit: String
58
- rootEntityName: String
59
66
  rootEntityId: String
60
67
  rootEntityAncestry: String
68
+ rootEntityHierarchy: [EntityHierarchyInput]
61
69
  id: String
62
70
  refNo: String
63
71
  tags: String
@@ -83,6 +91,13 @@ export const _WorkflowInfoInput = `
83
91
  }
84
92
  `;
85
93
 
94
+ export const _EntityHierarchyInput = `
95
+ type EntityHierarchyInput {
96
+ category: String
97
+ entity: String
98
+ }
99
+ `
100
+
86
101
  export const _TaskFilter = `
87
102
  input TaskFilter {
88
103
  users: [ID]
@@ -96,4 +111,4 @@ export const _TaskFilter = `
96
111
  }
97
112
  `;
98
113
 
99
- export const _AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, jobId, refNo, tags, workflowStep, workflow, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded, reviewed}, events {started ${Events._AllEventFields}, updated ${Events._AllEventFields}, submitted ${Events._AllEventFields}, discarded ${Events._AllEventFields}, processed ${Events._AllEventFields}, upgraded ${Events._AllEventFields}, reviewed ${Events._AllEventFields}}, template { name, shortName, type, id, version}, identifiers { primary, secondary}}, sections, workflow {slug, step, history}}`;
114
+ export const _AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, rootEntityHierarchy { category, entity }, name, jobId, refNo, tags, workflowStep, workflow, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded, reviewed}, events {started ${Events._AllEventFields}, updated ${Events._AllEventFields}, submitted ${Events._AllEventFields}, discarded ${Events._AllEventFields}, processed ${Events._AllEventFields}, upgraded ${Events._AllEventFields}, reviewed ${Events._AllEventFields}}, template { name, shortName, type, id, version}, identifiers { primary, secondary}}, sections, workflow {slug, step, history}}`;
File without changes
File without changes
package/schemas/user.ts CHANGED
File without changes
package/tsconfig.json CHANGED
File without changes