@defra/forms-model 3.0.681 → 3.0.683

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.
Files changed (49) hide show
  1. package/dist/module/common/enums.js +6 -0
  2. package/dist/module/common/enums.js.map +1 -1
  3. package/dist/module/common/schema.js +14 -4
  4. package/dist/module/common/schema.js.map +1 -1
  5. package/dist/module/common/search/index.js +18 -4
  6. package/dist/module/common/search/index.js.map +1 -1
  7. package/dist/module/common/search/types.js.map +1 -1
  8. package/dist/module/common/types.js.map +1 -1
  9. package/dist/module/form/form-audit/consolidation.js +1 -1
  10. package/dist/module/form/form-audit/consolidation.js.map +1 -1
  11. package/dist/module/form/form-audit/enums.js +1 -2
  12. package/dist/module/form/form-audit/enums.js.map +1 -1
  13. package/dist/module/form/form-audit/index.js +7 -1
  14. package/dist/module/form/form-audit/index.js.map +1 -1
  15. package/dist/module/form/form-audit/types.js.map +1 -1
  16. package/dist/module/form/form-editor/enums.js +2 -2
  17. package/dist/module/form/form-editor/enums.js.map +1 -1
  18. package/dist/types/common/enums.d.ts +5 -0
  19. package/dist/types/common/enums.d.ts.map +1 -1
  20. package/dist/types/common/schema.d.ts +7 -2
  21. package/dist/types/common/schema.d.ts.map +1 -1
  22. package/dist/types/common/search/index.d.ts +15 -6
  23. package/dist/types/common/search/index.d.ts.map +1 -1
  24. package/dist/types/common/search/types.d.ts +4 -0
  25. package/dist/types/common/search/types.d.ts.map +1 -1
  26. package/dist/types/common/types.d.ts +4 -0
  27. package/dist/types/common/types.d.ts.map +1 -1
  28. package/dist/types/form/form-audit/consolidation.d.ts.map +1 -1
  29. package/dist/types/form/form-audit/enums.d.ts +1 -2
  30. package/dist/types/form/form-audit/enums.d.ts.map +1 -1
  31. package/dist/types/form/form-audit/index.d.ts +2 -1
  32. package/dist/types/form/form-audit/index.d.ts.map +1 -1
  33. package/dist/types/form/form-audit/types.d.ts +11 -8
  34. package/dist/types/form/form-audit/types.d.ts.map +1 -1
  35. package/dist/types/form/form-editor/enums.d.ts +2 -2
  36. package/dist/types/form/form-editor/enums.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/src/common/enums.ts +6 -0
  39. package/src/common/schema.ts +18 -4
  40. package/src/common/search/index.ts +29 -5
  41. package/src/common/search/types.ts +5 -0
  42. package/src/common/types.ts +5 -0
  43. package/src/form/form-audit/consolidation.ts +2 -1
  44. package/src/form/form-audit/enums.ts +1 -2
  45. package/src/form/form-audit/index.ts +19 -0
  46. package/src/form/form-audit/types.ts +13 -9
  47. package/src/form/form-editor/enums.ts +2 -2
  48. package/schemas/query-options-schema.json +0 -94
  49. package/schemas/search-options-schema.json +0 -59
@@ -1,94 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "page": {
5
- "type": "number",
6
- "description": "Current page number, starting from 1",
7
- "default": 1,
8
- "exclusiveMinimum": 0,
9
- "minimum": 1,
10
- "title": "Page"
11
- },
12
- "perPage": {
13
- "type": "number",
14
- "description": "Number of items to display per page, between 1 and 200",
15
- "default": 24,
16
- "exclusiveMinimum": 0,
17
- "minimum": 1,
18
- "maximum": 200,
19
- "title": "Per Page"
20
- },
21
- "sortBy": {
22
- "type": "string",
23
- "description": "Field to sort results by",
24
- "enum": [
25
- "updatedAt",
26
- "title"
27
- ],
28
- "title": "Sort By"
29
- },
30
- "order": {
31
- "type": "string",
32
- "description": "Sort order (ascending or descending)",
33
- "enum": [
34
- "asc",
35
- "desc"
36
- ],
37
- "title": "Order"
38
- },
39
- "title": {
40
- "type": "string",
41
- "description": "Search by form title, empty string matches all",
42
- "default": "",
43
- "maxLength": 255,
44
- "title": "Title"
45
- },
46
- "author": {
47
- "type": "string",
48
- "description": "Search by form author, empty string matches all",
49
- "default": "",
50
- "maxLength": 100,
51
- "title": "Author"
52
- },
53
- "organisations": {
54
- "type": "array",
55
- "description": "Filter by organisation(s), empty array matches all",
56
- "default": [],
57
- "items": {
58
- "type": "string",
59
- "enum": [
60
- "Animal and Plant Health Agency – APHA",
61
- "Centre for Environment, Fisheries and Aquaculture Science – Cefas",
62
- "Defra",
63
- "Environment Agency",
64
- "Forestry Commission",
65
- "Marine Management Organisation – MMO",
66
- "Natural England",
67
- "Rural Payments Agency – RPA",
68
- "Veterinary Medicines Directorate – VMD"
69
- ],
70
- "title": "Organisations Item"
71
- },
72
- "title": "Organisations"
73
- },
74
- "status": {
75
- "type": "array",
76
- "description": "Filter by form status(es), empty array matches all",
77
- "default": [],
78
- "items": {
79
- "type": "string",
80
- "enum": [
81
- "draft",
82
- "live"
83
- ],
84
- "title": "Status Item"
85
- },
86
- "title": "Status"
87
- }
88
- },
89
- "additionalProperties": false,
90
- "$schema": "http://json-schema.org/draft-07/schema#",
91
- "title": "Query Options Schema",
92
- "description": "JSON Schema for validating Query Options Schema in Defra forms",
93
- "$id": "@defra/forms-model/schemas/query-options-schema.json"
94
- }
@@ -1,59 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "title": {
5
- "type": "string",
6
- "description": "Search by form title, empty string matches all",
7
- "default": "",
8
- "maxLength": 255,
9
- "title": "Title"
10
- },
11
- "author": {
12
- "type": "string",
13
- "description": "Search by form author, empty string matches all",
14
- "default": "",
15
- "maxLength": 100,
16
- "title": "Author"
17
- },
18
- "organisations": {
19
- "type": "array",
20
- "description": "Filter by organisation(s), empty array matches all",
21
- "default": [],
22
- "items": {
23
- "type": "string",
24
- "enum": [
25
- "Animal and Plant Health Agency – APHA",
26
- "Centre for Environment, Fisheries and Aquaculture Science – Cefas",
27
- "Defra",
28
- "Environment Agency",
29
- "Forestry Commission",
30
- "Marine Management Organisation – MMO",
31
- "Natural England",
32
- "Rural Payments Agency – RPA",
33
- "Veterinary Medicines Directorate – VMD"
34
- ],
35
- "title": "Organisations Item"
36
- },
37
- "title": "Organisations"
38
- },
39
- "status": {
40
- "type": "array",
41
- "description": "Filter by form status(es), empty array matches all",
42
- "default": [],
43
- "items": {
44
- "type": "string",
45
- "enum": [
46
- "draft",
47
- "live"
48
- ],
49
- "title": "Status Item"
50
- },
51
- "title": "Status"
52
- }
53
- },
54
- "additionalProperties": false,
55
- "$schema": "http://json-schema.org/draft-07/schema#",
56
- "title": "Search Options Schema",
57
- "description": "JSON Schema for validating Search Options Schema in Defra forms",
58
- "$id": "@defra/forms-model/schemas/search-options-schema.json"
59
- }