@defra/forms-model 3.0.518 → 3.0.519

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from '~/src/common/enums.js'\nexport * from '~/src/common/random-id.js'\nexport * from '~/src/common/schema.js'\nexport * from '~/src/common/pagination/index.js'\nexport * from '~/src/common/search/index.js'\nexport * from '~/src/common/sorting/index.js'\nexport * from '~/src/components/index.js'\nexport * from '~/src/conditions/index.js'\nexport * from '~/src/form/form-definition/index.js'\nexport * from '~/src/form/form-definition/types.js'\nexport * from '~/src/form/form-metadata/index.js'\nexport * from '~/src/form/form-submission/index.js'\nexport * from '~/src/form/utils/index.js'\nexport * from '~/src/form/form-editor/index.js'\nexport * from '~/src/form/form-editor/preview/index.js'\nexport * from '~/src/form/form-manager/types.js'\nexport * from '~/src/form/form-manager/errors.js'\nexport * from '~/src/manage/users.js'\nexport * from '~/src/pages/index.js'\nexport * from '~/src/utils/helpers.js'\nexport * from '~/src/utils/markdown.js'\nexport * from '~/src/form/form-audit/index.js'\nexport * from '~/src/form/form-audit/enums.js'\n\nexport type * from '~/src/common/types.js'\nexport type * from '~/src/common/pagination/types.js'\nexport type * from '~/src/common/search/types.js'\nexport type * from '~/src/common/sorting/types.js'\nexport type * from '~/src/components/types.js'\nexport type * from '~/src/conditions/types.js'\nexport type * from '~/src/form/form-definition/types.js'\nexport type * from '~/src/form/form-metadata/types.js'\nexport type * from '~/src/form/form-submission/types.js'\nexport type * from '~/src/form/form-editor/preview/types.js'\nexport type * from '~/src/form/form-editor/types.js'\nexport type * from '~/src/form/form-editor/macros/types.js'\nexport type * from '~/src/form/form-audit/types.js'\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from '~/src/common/enums.js'\nexport * from '~/src/common/random-id.js'\nexport * from '~/src/common/schema.js'\nexport * from '~/src/common/pagination/index.js'\nexport * from '~/src/common/search/index.js'\nexport * from '~/src/common/sorting/index.js'\nexport * from '~/src/components/index.js'\nexport * from '~/src/conditions/index.js'\nexport * from '~/src/form/form-definition/index.js'\nexport * from '~/src/form/form-definition/types.js'\nexport * from '~/src/form/form-metadata/index.js'\nexport * from '~/src/form/form-submission/index.js'\nexport * from '~/src/form/utils/index.js'\nexport * from '~/src/form/form-editor/index.js'\nexport * from '~/src/form/form-editor/preview/index.js'\nexport * from '~/src/form/form-manager/types.js'\nexport * from '~/src/form/form-manager/errors.js'\nexport * from '~/src/manage/users.js'\nexport * from '~/src/pages/index.js'\nexport * from '~/src/utils/helpers.js'\nexport * from '~/src/utils/markdown.js'\nexport * from '~/src/form/form-audit/index.js'\nexport * from '~/src/form/form-audit/enums.js'\n\nexport type * from '~/src/common/types.js'\nexport type * from '~/src/common/pagination/types.js'\nexport type * from '~/src/common/search/types.js'\nexport type * from '~/src/common/sorting/types.js'\nexport type * from '~/src/components/types.js'\nexport type * from '~/src/conditions/types.js'\nexport type * from '~/src/form/form-definition/types.js'\nexport type * from '~/src/form/form-metadata/types.js'\nexport type * from '~/src/form/form-submission/types.js'\nexport type * from '~/src/form/form-editor/preview/types.js'\nexport type * from '~/src/form/form-editor/types.js'\nexport type * from '~/src/form/form-editor/macros/types.js'\nexport type * from '~/src/form/form-audit/types.js'\nexport type * from '~/src/manage/types.js'\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../src/manage/types.ts"],"sourcesContent":["/**\n * Interface for `EntitlementRole`\n */\nexport interface EntitlementRole {\n /**\n * The display name\n */\n name: string\n\n /**\n * The code value\n */\n code: string\n\n /**\n * The description\n */\n description: string\n}\n\n/**\n * Interface for `ManageUser`\n */\nexport interface ManageUser {\n /**\n * The object id of the user\n */\n userId: string\n\n /**\n * The email address of the user\n */\n emailAddress: string\n\n /**\n * The role assigned to the user\n */\n userRole: string\n}\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"users.js","names":[],"sources":["../../../src/manage/users.ts"],"sourcesContent":["export interface EntitlementUser {\n /**\n * The id of the user\n */\n userId: string\n\n /**\n * The full name of the user\n */\n fullName: string\n\n /**\n * The email addresss of the user\n */\n emailAddress: string\n\n /**\n * The roles assigned to the user\n */\n roles: string[]\n\n /**\n * The scopes assigned to the user\n */\n scopes: string[]\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"users.js","names":[],"sources":["../../../src/manage/users.ts"],"sourcesContent":["export interface EntitlementUser {\n /**\n * The id of the user\n */\n userId: string\n\n /**\n * The display name (full name) of the user\n */\n displayName: string\n\n /**\n * The email addresss of the user\n */\n email: string\n\n /**\n * The roles assigned to the user\n */\n roles: string[]\n\n /**\n * The scopes assigned to the user\n */\n scopes: string[]\n}\n"],"mappings":"","ignoreList":[]}
@@ -34,4 +34,5 @@ export type * from './form/form-editor/preview/types.js';
34
34
  export type * from './form/form-editor/types.js';
35
35
  export type * from './form/form-editor/macros/types.js';
36
36
  export type * from './form/form-audit/types.js';
37
+ export type * from './manage/types.js';
37
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kCAAkC,CAAA;AAChD,cAAc,8BAA8B,CA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jD,cAAc,qCAAqC,CAAA;AACnD,cAAc,2BAA2B,CAAA;AACzC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yCAAyC,CAAA;AACvD,cAAc,kCAAkC,CAAA;AAChD,cAAc,mCAAmC,CAAA;AACjD,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,gCAAgC,CAAA;AAE9C,mBAAmB,uBAAuB,CAAA;AAC1C,mBAAmB,kCAAkC,CAAA;AACrD,mBAAmB,8BAA8B,CAAA;AACjD,mBAAmB,+BAA+B,CAAA;AAClD,mBAAmB,2BAA2B,CAAA;AAC9C,mBAAmB,2BAA2B,CAAA;AAC9C,mBAAmB,qCAAqC,CAAA;AACxD,mBAAmB,mCAAmC,CAAA;AACtD,mBAAmB,qCAAqC,CAAA;AACxD,mBAAmB,yCAAyC,CAAA;AAC5D,mBAAmB,iCAAiC,CAAA;AACpD,mBAAmB,wCAAwC,CAAA;AAC3D,mBAAmB,gCAAgC,CAAA;AACnD,mBAAmB,uBAAuB,CAAA"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Interface for `EntitlementRole`
3
+ */
4
+ export interface EntitlementRole {
5
+ /**
6
+ * The display name
7
+ */
8
+ name: string;
9
+ /**
10
+ * The code value
11
+ */
12
+ code: string;
13
+ /**
14
+ * The description
15
+ */
16
+ description: string;
17
+ }
18
+ /**
19
+ * Interface for `ManageUser`
20
+ */
21
+ export interface ManageUser {
22
+ /**
23
+ * The object id of the user
24
+ */
25
+ userId: string;
26
+ /**
27
+ * The email address of the user
28
+ */
29
+ emailAddress: string;
30
+ /**
31
+ * The role assigned to the user
32
+ */
33
+ userRole: string;
34
+ }
35
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/manage/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB"}
@@ -4,13 +4,13 @@ export interface EntitlementUser {
4
4
  */
5
5
  userId: string;
6
6
  /**
7
- * The full name of the user
7
+ * The display name (full name) of the user
8
8
  */
9
- fullName: string;
9
+ displayName: string;
10
10
  /**
11
11
  * The email addresss of the user
12
12
  */
13
- emailAddress: string;
13
+ email: string;
14
14
  /**
15
15
  * The roles assigned to the user
16
16
  */
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/manage/users.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/manage/users.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/forms-model",
3
- "version": "3.0.518",
3
+ "version": "3.0.519",
4
4
  "description": "A hapi plugin providing the model for Defra forms",
5
5
  "homepage": "https://github.com/DEFRA/forms-designer/tree/main/model#readme",
6
6
  "types": "dist/types/index.d.ts",
package/src/index.ts CHANGED
@@ -35,3 +35,4 @@ export type * from '~/src/form/form-editor/preview/types.js'
35
35
  export type * from '~/src/form/form-editor/types.js'
36
36
  export type * from '~/src/form/form-editor/macros/types.js'
37
37
  export type * from '~/src/form/form-audit/types.js'
38
+ export type * from '~/src/manage/types.js'
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Interface for `EntitlementRole`
3
+ */
4
+ export interface EntitlementRole {
5
+ /**
6
+ * The display name
7
+ */
8
+ name: string
9
+
10
+ /**
11
+ * The code value
12
+ */
13
+ code: string
14
+
15
+ /**
16
+ * The description
17
+ */
18
+ description: string
19
+ }
20
+
21
+ /**
22
+ * Interface for `ManageUser`
23
+ */
24
+ export interface ManageUser {
25
+ /**
26
+ * The object id of the user
27
+ */
28
+ userId: string
29
+
30
+ /**
31
+ * The email address of the user
32
+ */
33
+ emailAddress: string
34
+
35
+ /**
36
+ * The role assigned to the user
37
+ */
38
+ userRole: string
39
+ }
@@ -5,14 +5,14 @@ export interface EntitlementUser {
5
5
  userId: string
6
6
 
7
7
  /**
8
- * The full name of the user
8
+ * The display name (full name) of the user
9
9
  */
10
- fullName: string
10
+ displayName: string
11
11
 
12
12
  /**
13
13
  * The email addresss of the user
14
14
  */
15
- emailAddress: string
15
+ email: string
16
16
 
17
17
  /**
18
18
  * The roles assigned to the user