@nuffieldtechnologies/rugged-schema-types 2.1.26 → 2.1.30

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
@@ -1,19 +1,19 @@
1
- module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- extends: [
4
- 'plugin:@typescript-eslint/recommended',
5
- ],
6
- parserOptions: {
7
- ecmaVersion: 2018,
8
- sourceType: 'module',
9
- },
10
- rules: {
11
- "@typescript-eslint/no-this-alias": 0,
12
- "@typescript-eslint/no-explicit-any": 0,
13
- "@typescript-eslint/explicit-function-return-type": 0,
14
- '@typescript-eslint/array-type': [
15
- 'error',
16
- { default: 'generic' }
17
- ],
18
- },
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ extends: [
4
+ 'plugin:@typescript-eslint/recommended',
5
+ ],
6
+ parserOptions: {
7
+ ecmaVersion: 2018,
8
+ sourceType: 'module',
9
+ },
10
+ rules: {
11
+ "@typescript-eslint/no-this-alias": 0,
12
+ "@typescript-eslint/no-explicit-any": 0,
13
+ "@typescript-eslint/explicit-function-return-type": 0,
14
+ '@typescript-eslint/array-type': [
15
+ 'error',
16
+ { default: 'generic' }
17
+ ],
18
+ },
19
19
  }
package/dist/index.js CHANGED
@@ -6,13 +6,13 @@ const Events = require("./schemas/events");
6
6
  const TemplateInfo = require("./schemas/template-info");
7
7
  const UserSchemas = require("./schemas/user");
8
8
  const Roles = require("./schemas/roles");
9
- const FormShemas = require("./schemas/form");
9
+ const FormSchemas = require("./schemas/form");
10
10
  const OrganisationSchemas = require("./schemas/organisation");
11
11
  const TaskIdentifiers = require("./schemas/task-identifiers");
12
12
  const TaskOldSchemas = require("./schemas/task-old");
13
13
  const TaskSchemas = require("./schemas/task");
14
- exports.Task = TimeStamps._TimeStamps + Events._Event + Events._Events + TemplateInfo._TemplateInfo + TaskSchemas._TaskInfo + TaskSchemas._Task + TaskIdentifiers._TaskIdentifiers;
15
- exports.TaskInput = TimeStamps._TimeStampsInput + Events._EventInput + Events._EventsInput + TemplateInfo._TemplateInfoInput + TaskSchemas._TaskInfoInput + TaskSchemas._TaskInput + TaskIdentifiers._TaskIdentifiersInput;
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
16
  exports.TaskFilter = TaskSchemas._TaskFilter;
17
17
  exports.Tasks = exports.Task + exports.TaskInput + exports.TaskFilter + TaskOldSchemas._TaskOld;
18
18
  exports.AllTaskFields = TaskSchemas._AllTaskFields;
@@ -21,11 +21,11 @@ exports.UserInput = Roles._RolesInput + UserSchemas._UserInput;
21
21
  exports.Users = exports.User + exports.UserInput;
22
22
  exports.AllUserFields = UserSchemas._AllUserFields;
23
23
  exports.AllRolesFields = Roles._AllRolesFields;
24
- exports.Form = FormShemas._Form;
25
- exports.FormInput = FormShemas._FormInput;
26
- exports.FormFilter = FormShemas._FormFilter;
24
+ exports.Form = FormSchemas._Form;
25
+ exports.FormInput = FormSchemas._FormInput;
26
+ exports.FormFilter = FormSchemas._FormFilter;
27
27
  exports.Forms = exports.Form + exports.FormInput + exports.FormFilter;
28
- exports.AllFormFields = FormShemas._AllFormFields;
28
+ exports.AllFormFields = FormSchemas._AllFormFields;
29
29
  exports.Organisation = OrganisationSchemas._Organisation;
30
30
  exports.OrganisationInput = OrganisationSchemas._OrganisationInput;
31
31
  exports.Organisations = exports.Organisation + exports.OrganisationInput;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;A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KAAK,CAAC,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC;AACxC,QAAA,SAAS,GAAG,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC;AACvD,QAAA,KAAK,GAAG,YAAI,GAAG,iBAAS,CAAC;AACzB,QAAA,aAAa,GAAG,WAAW,CAAC,cAAc,CAAC;AAC3C,QAAA,cAAc,GAAG,KAAK,CAAC,eAAe,CAAC;AAEvC,QAAA,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC;AACzB,QAAA,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC;AACnC,QAAA,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC;AACrC,QAAA,KAAK,GAAG,YAAI,GAAG,iBAAS,GAAG,kBAAU,CAAC;AACtC,QAAA,aAAa,GAAG,WAAW,CAAC,cAAc,CAAC;AAE3C,QAAA,YAAY,GAAG,mBAAmB,CAAC,aAAa,CAAC;AACjD,QAAA,iBAAiB,GAAG,mBAAmB,CAAC,kBAAkB,CAAC;AAC3D,QAAA,aAAa,GAAG,oBAAY,GAAG,yBAAiB,CAAC;AACjD,QAAA,qBAAqB,GAAG,mBAAmB,CAAC,sBAAsB,CAAC;AAEnE,QAAA,GAAG,GAAG,aAAK,GAAG,aAAK,GAAG,aAAK,GAAG,qBAAa,CAAC;AACzD,kBAAe,WAAG,CAAC"}
@@ -1,49 +1,51 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._AllEventFields = exports._EventsInput = exports._Events = exports._EventInput = exports._Event = void 0;
4
- exports._Event = `
5
- type Event {
6
- appVersion: String,
7
- at: Float,
8
- atForHumans: String,
9
- device: String,
10
- deviceModel: String,
11
- osVersion: String,
12
- user: String,
13
- userEmail: String
14
- }
4
+ exports._Event = `
5
+ type Event {
6
+ appVersion: String,
7
+ at: Float,
8
+ atForHumans: String,
9
+ device: String,
10
+ deviceModel: String,
11
+ osVersion: String,
12
+ user: String,
13
+ userEmail: String
14
+ }
15
15
  `;
16
- exports._EventInput = `
17
- input EventInput {
18
- appVersion: String,
19
- at: Float,
20
- atForHumans: String,
21
- device: String,
22
- deviceModel: String,
23
- osVersion: String,
24
- user: String,
25
- userEmail: String
26
- }
16
+ exports._EventInput = `
17
+ input EventInput {
18
+ appVersion: String,
19
+ at: Float,
20
+ atForHumans: String,
21
+ device: String,
22
+ deviceModel: String,
23
+ osVersion: String,
24
+ user: String,
25
+ userEmail: String
26
+ }
27
27
  `;
28
- exports._Events = `
29
- type Events {
30
- started: Event,
31
- updated: Event,
32
- upgraded: Event,
33
- processed: Event,
34
- submitted: Event,
35
- discarded: Event,
36
- }
28
+ exports._Events = `
29
+ type Events {
30
+ started: Event,
31
+ updated: Event,
32
+ upgraded: Event,
33
+ processed: Event,
34
+ submitted: Event,
35
+ discarded: Event,
36
+ reviewed: Event
37
+ }
37
38
  `;
38
- exports._EventsInput = `
39
- input EventsInput {
40
- started: EventInput,
41
- updated: EventInput,
42
- upgraded: EventInput,
43
- processed: EventInput,
44
- submitted: EventInput,
45
- discarded: EventInput,
46
- }
39
+ exports._EventsInput = `
40
+ input EventsInput {
41
+ started: EventInput,
42
+ updated: EventInput,
43
+ upgraded: EventInput,
44
+ processed: EventInput,
45
+ submitted: EventInput,
46
+ discarded: EventInput,
47
+ reviewed: EventInput
48
+ }
47
49
  `;
48
50
  exports._AllEventFields = `{appVersion, at, atForHumans, device, deviceModel, osVersion, user, userEmail}`;
49
51
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../schemas/events.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;;;;;;;;;;;CAWrB,CAAA;AAEY,QAAA,WAAW,GAAG;;;;;;;;;;;CAW1B,CAAC;AAEW,QAAA,OAAO,GAAG;;;;;;;;;CAStB,CAAC;AAEW,QAAA,YAAY,GAAG;;;;;;;;;CAS3B,CAAC;AAEW,QAAA,eAAe,GAAG,gFAAgF,CAAC"}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../schemas/events.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;;;;;;;;;;;CAWrB,CAAA;AAEY,QAAA,WAAW,GAAG;;;;;;;;;;;CAW1B,CAAC;AAEW,QAAA,OAAO,GAAG;;;;;;;;;;CAUtB,CAAC;AAEW,QAAA,YAAY,GAAG;;;;;;;;;;CAU3B,CAAC;AAEW,QAAA,eAAe,GAAG,gFAAgF,CAAC"}
@@ -1,50 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._AllFormFields = exports._FormFilter = exports._Form = exports._FormInput = void 0;
4
- exports._FormInput = `
5
-
6
- input ParamInput {
7
- name: String
8
- value: String
9
- }
10
-
11
- input FormInput {
12
- id: ID
13
- name: String
14
- key: String
15
- definition: String
16
- version: String
17
- status: String
18
- updated: String
19
- params: [ParamInput]
20
- resources: String
21
- body: String
22
- }
4
+ exports._FormInput = `
5
+
6
+ input ParamInput {
7
+ name: String
8
+ value: String
9
+ }
10
+
11
+ input FormInput {
12
+ id: ID
13
+ name: String
14
+ key: String
15
+ definition: String
16
+ version: String
17
+ status: String
18
+ updated: String
19
+ params: [ParamInput]
20
+ resources: String
21
+ body: String
22
+ }
23
23
  `;
24
- exports._Form = `
25
-
26
- type Param {
27
- name: String
28
- value: String
29
- }
30
-
31
- type Form {
32
- id: ID
33
- name: String
34
- key: String
35
- definition: String
36
- version: String
37
- status: String
38
- updated: String
39
- params: [Param]
40
- resources: String
41
- body: String
42
- }
24
+ exports._Form = `
25
+
26
+ type Param {
27
+ name: String
28
+ value: String
29
+ }
30
+
31
+ type Form {
32
+ id: ID
33
+ name: String
34
+ key: String
35
+ definition: String
36
+ version: String
37
+ status: String
38
+ updated: String
39
+ params: [Param]
40
+ resources: String
41
+ body: String
42
+ }
43
43
  `;
44
- exports._FormFilter = `
45
- input FormFilter {
46
- status: String
47
- }
44
+ exports._FormFilter = `
45
+ input FormFilter {
46
+ status: String
47
+ }
48
48
  `;
49
49
  exports._AllFormFields = `{id, name, key, definition, status, updated, params {name, value}, resources, body}`;
50
50
  //# sourceMappingURL=form.js.map
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._AllOrganisationFields = exports._Organisation = exports._OrganisationInput = void 0;
4
- exports._OrganisationInput = `
5
- input OrganisationInput {
6
- id: ID
7
- name: String
8
- logoUrl: String
9
- }
4
+ exports._OrganisationInput = `
5
+ input OrganisationInput {
6
+ id: ID
7
+ name: String
8
+ logoUrl: String
9
+ }
10
10
  `;
11
- exports._Organisation = `
12
- type Organisation {
13
- id: ID
14
- name: String
15
- logoUrl: String
16
- }
11
+ exports._Organisation = `
12
+ type Organisation {
13
+ id: ID
14
+ name: String
15
+ logoUrl: String
16
+ }
17
17
  `;
18
18
  exports._AllOrganisationFields = `{id, name, logoUrl}`;
19
19
  //# sourceMappingURL=organisation.js.map
@@ -1,22 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._AllRolesFields = exports._RolesInput = exports._Roles = void 0;
4
- exports._Roles = `
5
- type Roles {
6
- user: Boolean
7
- admin: Boolean
8
- api: Boolean
9
- uber: Boolean
10
- super: Boolean
11
- legacyPush: Boolean
12
- }
4
+ exports._Roles = `
5
+ type Roles {
6
+ user: Boolean
7
+ admin: Boolean
8
+ api: Boolean
9
+ uber: Boolean
10
+ super: Boolean
11
+ legacyPush: Boolean
12
+ }
13
13
  `;
14
- exports._RolesInput = `
15
- input RolesInput {
16
- user: Boolean
17
- admin: Boolean
18
- api: Boolean
19
- }
14
+ exports._RolesInput = `
15
+ input RolesInput {
16
+ user: Boolean
17
+ admin: Boolean
18
+ api: Boolean
19
+ }
20
20
  `;
21
21
  exports._AllRolesFields = `{user, admin, api, uber, super, legacyPush}`;
22
22
  //# sourceMappingURL=roles.js.map
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._TaskIdentifiersInput = exports._TaskIdentifiers = void 0;
4
- exports._TaskIdentifiers = `
5
- type TaskIdentifiers {
6
- primary: String
7
- secondary: String
8
- }
4
+ exports._TaskIdentifiers = `
5
+ type TaskIdentifiers {
6
+ primary: String
7
+ secondary: String
8
+ }
9
9
  `;
10
- exports._TaskIdentifiersInput = `
11
- input TaskIdentifiersInput {
12
- primary: String
13
- secondary: String
14
- }
10
+ exports._TaskIdentifiersInput = `
11
+ input TaskIdentifiersInput {
12
+ primary: String
13
+ secondary: String
14
+ }
15
15
  `;
16
16
  //# sourceMappingURL=task-identifiers.js.map
@@ -1,24 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._TaskOld = void 0;
4
- exports._TaskOld = `
5
- type TaskOld {
6
- id: ID,
7
- name: String
8
- definition: String
9
- user: ID
10
- userEmail: String
11
- form: ID
12
- organisation: ID
13
- timestamps: TimeStamps
14
- events: Events
15
- template: TemplateInfo
16
- identifiers: TaskIdentifiers
17
- status: String
18
- fails: [String]
19
- reportUrl: String
20
- data: String
21
- refNo: String
22
- }
4
+ exports._TaskOld = `
5
+ type TaskOld {
6
+ id: ID,
7
+ name: String
8
+ definition: String
9
+ user: ID
10
+ userEmail: String
11
+ form: ID
12
+ organisation: ID
13
+ timestamps: TimeStamps
14
+ events: Events
15
+ template: TemplateInfo
16
+ identifiers: TaskIdentifiers
17
+ status: String
18
+ fails: [String]
19
+ reportUrl: String
20
+ data: String
21
+ refNo: String
22
+ }
23
23
  `;
24
24
  //# sourceMappingURL=task-old.js.map
@@ -1,76 +1,92 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._AllTaskFields = exports._TaskFilter = exports._TaskInfoInput = exports._TaskInput = exports._TaskInfo = exports._Task = void 0;
3
+ exports._AllTaskFields = exports._TaskFilter = exports._WorkflowInfoInput = exports._TaskInfoInput = exports._TaskInput = exports._WorkflowInfo = exports._TaskInfo = exports._Task = void 0;
4
4
  const Events = require("./events");
5
- exports._Task = `
6
- type Task {
7
- collections: String
8
- fields: String
9
- info: TaskInfo
10
- sections: String
11
- }
5
+ exports._Task = `
6
+ type Task {
7
+ collections: String
8
+ fields: String
9
+ info: TaskInfo
10
+ sections: String
11
+ workflow: WorkflowInfo
12
+ }
12
13
  `;
13
- exports._TaskInfo = `
14
- type TaskInfo {
15
- status: String
16
- statusBeforeEdit: String
17
- rootEntityId: String
18
- rootEntityName: String
19
- rootEntityAncestry: String
20
- id: String
21
- refNo: String
22
- tags: String
23
- workflowStep: String
24
- workflow: String
25
- workflowHistory: String
26
- name: String
27
- events: Events
28
- identifiers: TaskIdentifiers
29
- template: TemplateInfo
30
- userIds: String
31
- users: String
32
- timestamps: TimeStamps
33
- }
14
+ exports._TaskInfo = `
15
+ type TaskInfo {
16
+ status: String
17
+ statusBeforeEdit: String
18
+ rootEntityId: String
19
+ rootEntityName: String
20
+ rootEntityAncestry: String
21
+ id: String
22
+ refNo: String
23
+ tags: String
24
+ workflowStep: String
25
+ workflow: String
26
+ workflowHistory: String
27
+ name: String
28
+ events: Events
29
+ identifiers: TaskIdentifiers
30
+ template: TemplateInfo
31
+ userIds: String
32
+ users: String
33
+ timestamps: TimeStamps
34
+ }
34
35
  `;
35
- exports._TaskInput = `
36
- input TaskInput {
37
- collections: String
38
- fields: String
39
- info: TaskInfoInput
40
- sections: String
41
- }
36
+ exports._WorkflowInfo = `
37
+ type WorkflowInfo {
38
+ slug: String
39
+ step: String
40
+ history: String
41
+ }
42
42
  `;
43
- exports._TaskInfoInput = `
44
- input TaskInfoInput {
45
- status: String
46
- statusBeforeEdit: String
47
- rootEntityId: String
48
- rootEntityAncestry: String
49
- id: String
50
- refNo: String
51
- tags: String
52
- workflowStep: String
53
- workflow: String
54
- workflowHistory: String
55
- name: String
56
- events: EventsInput
57
- identifiers: TaskIdentifiersInput
58
- template: TemplateInfoInput
59
- userIds: String
60
- users: String
61
- timestamps: TimeStampsInput
62
- }
43
+ exports._TaskInput = `
44
+ input TaskInput {
45
+ collections: String
46
+ fields: String
47
+ info: TaskInfoInput
48
+ sections: String,
49
+ workflow: WorkflowInfoInput
50
+ }
63
51
  `;
64
- exports._TaskFilter = `
65
- input TaskFilter {
66
- users: [ID]
67
- userEmails: [String]
68
- rootEntityIds: [String]
69
- entityIds: [String]
70
- forms: [ID]
71
- after: String
72
- before: String
73
- }
52
+ exports._TaskInfoInput = `
53
+ input TaskInfoInput {
54
+ status: String
55
+ statusBeforeEdit: String
56
+ rootEntityId: String
57
+ rootEntityAncestry: String
58
+ id: String
59
+ refNo: String
60
+ tags: String
61
+ workflowStep: String
62
+ workflow: String
63
+ workflowHistory: String
64
+ name: String
65
+ events: EventsInput
66
+ identifiers: TaskIdentifiersInput
67
+ template: TemplateInfoInput
68
+ userIds: String
69
+ users: String
70
+ timestamps: TimeStampsInput
71
+ }
74
72
  `;
75
- exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, tags, workflowHistory, workflowStep, workflow, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded}, events {started ${Events._AllEventFields}, updated ${Events._AllEventFields}, submitted ${Events._AllEventFields}, discarded ${Events._AllEventFields}, processed ${Events._AllEventFields}, upgraded ${Events._AllEventFields}}, template { name, shortName, type, id, version}, identifiers { primary, secondary}}, sections}`;
73
+ exports._WorkflowInfoInput = `
74
+ input WorkflowInfoInput {
75
+ slug: String
76
+ step: String
77
+ history: String
78
+ }
79
+ `;
80
+ exports._TaskFilter = `
81
+ input TaskFilter {
82
+ users: [ID]
83
+ userEmails: [String]
84
+ rootEntityIds: [String]
85
+ entityIds: [String]
86
+ forms: [ID]
87
+ after: String
88
+ before: String
89
+ }
90
+ `;
91
+ exports._AllTaskFields = `{collections, fields, info {status, id, rootEntityId, rootEntityName, rootEntityAncestry, name, refNo, tags, workflowStep, workflow, userIds, users, timestamps {started, updated, submitted, processed, upgraded, discarded}, 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}}`;
76
92
  //# 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;;;;;;;CAOpB,CAAC;AAEW,QAAA,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;CAOzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;CAoB7B,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;CAU1B,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,kGAAkG,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;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC;AACW,QAAA,aAAa,GAAG;;;;;;CAM5B,CAAC;AAEW,QAAA,UAAU,GAAG;;;;;;;;CAQzB,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;CAoB7B,CAAC;AAEW,QAAA,kBAAkB,GAAG;;;;;;CAMjC,CAAC;AAEW,QAAA,WAAW,GAAG;;;;;;;;;;CAU1B,CAAC;AAEW,QAAA,cAAc,GAAG,kPAAkP,MAAM,CAAC,eAAe,aAAa,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,cAAc,MAAM,CAAC,eAAe,eAAe,MAAM,CAAC,eAAe,kIAAkI,CAAC"}
@@ -1,22 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._TemplateInfoInput = exports._TemplateInfo = void 0;
4
- exports._TemplateInfo = `
5
- type TemplateInfo {
6
- name: String,
7
- shortName: String,
8
- type: String,
9
- id: String
10
- version: String
11
- }
4
+ exports._TemplateInfo = `
5
+ type TemplateInfo {
6
+ name: String,
7
+ shortName: String,
8
+ type: String,
9
+ id: String
10
+ version: String
11
+ }
12
12
  `;
13
- exports._TemplateInfoInput = `
14
- input TemplateInfoInput {
15
- name: String,
16
- shortName: String,
17
- type: String,
18
- id: String
19
- version: String
20
- }
13
+ exports._TemplateInfoInput = `
14
+ input TemplateInfoInput {
15
+ name: String,
16
+ shortName: String,
17
+ type: String,
18
+ id: String
19
+ version: String
20
+ }
21
21
  `;
22
22
  //# sourceMappingURL=template-info.js.map
@@ -1,24 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._TimeStampsInput = exports._TimeStamps = void 0;
4
- exports._TimeStamps = `
5
- type TimeStamps {
6
- started: String,
7
- updated: String,
8
- discarded: String,
9
- submitted: String,
10
- processed: String,
11
- upgraded: String
12
- }
4
+ exports._TimeStamps = `
5
+ type TimeStamps {
6
+ started: String,
7
+ updated: String,
8
+ discarded: String,
9
+ submitted: String,
10
+ processed: String,
11
+ upgraded: String
12
+ }
13
13
  `;
14
- exports._TimeStampsInput = `
15
- input TimeStampsInput {
16
- started: String,
17
- updated: String,
18
- discarded: String,
19
- submitted: String,
20
- processed: String,
21
- upgraded: String
22
- }
14
+ exports._TimeStampsInput = `
15
+ input TimeStampsInput {
16
+ started: String,
17
+ updated: String,
18
+ discarded: String,
19
+ submitted: String,
20
+ processed: String,
21
+ upgraded: String
22
+ }
23
23
  `;
24
24
  //# sourceMappingURL=timestamps.js.map