@defra/forms-model 3.0.695 → 3.0.696
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":"types.js","names":[],"sources":["../../../../src/form/form-metrics/types.ts"],"sourcesContent":["import { type FormStatus } from '~/src/common/enums.js'\nimport {\n type FormMetricName,\n type FormMetricType\n} from '~/src/form/form-metrics/enums.js'\n\nexport interface FormTotalMetric {\n count?: number\n details?: {\n formId: string\n metricValue?: string | Date | number\n createdAt?: Date\n }\n}\n\nexport interface FormTotalsMetric {\n type: FormMetricType.TotalsMetric\n last7Days?: Record<FormMetricName, FormTotalMetric>\n prev7Days?: Record<FormMetricName, FormTotalMetric>\n last30Days?: Record<FormMetricName, FormTotalMetric>\n prev30Days?: Record<FormMetricName, FormTotalMetric>\n lastYear?: Record<FormMetricName, FormTotalMetric>\n prevYear?: Record<FormMetricName, FormTotalMetric>\n allTime?: Record<FormMetricName, FormTotalMetric>\n liveSubmissions?: Record<string, number>\n draftSubmissions?: Record<string, number>\n daysToPublish?: Record<string, number>\n republished?: Record<string, number>\n updatedAt: Date\n earliestDate: Date\n}\n\nexport interface FormOverviewMetric {\n type: FormMetricType.OverviewMetric\n formId: string\n formStatus: FormStatus\n summaryMetrics: Record<string, number | string | string[]>\n featureMetrics: Record<string, Map<string, number>>\n submissionsCount: number\n updatedAt: Date\n}\n\nexport interface FormTimelineMetric {\n type: FormMetricType.TimelineMetric\n formId: string\n formStatus: FormStatus\n metricName: FormMetricName\n metricValue: number\n createdAt: Date\n}\n\nexport interface FormDrilldownMetric {\n type: FormMetricType.DrilldownMetric\n formId: string\n metricName: FormMetricName\n metricValue: number\n periodName: string\n createdAt: Date\n}\n\nexport type FormMetric =\n | FormTotalsMetric\n | FormOverviewMetric\n | FormTimelineMetric\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../../src/form/form-metrics/types.ts"],"sourcesContent":["import { type FormStatus } from '~/src/common/enums.js'\nimport {\n type FormMetricName,\n type FormMetricType\n} from '~/src/form/form-metrics/enums.js'\n\nexport interface FormTotalMetric {\n count?: number\n details?: {\n formId: string\n metricValue?: string | Date | number\n createdAt?: Date\n }\n}\n\nexport interface FormTotalsMetric {\n type: FormMetricType.TotalsMetric\n last7Days?: Record<FormMetricName, FormTotalMetric>\n prev7Days?: Record<FormMetricName, FormTotalMetric>\n last30Days?: Record<FormMetricName, FormTotalMetric>\n prev30Days?: Record<FormMetricName, FormTotalMetric>\n lastYear?: Record<FormMetricName, FormTotalMetric>\n prevYear?: Record<FormMetricName, FormTotalMetric>\n allTime?: Record<FormMetricName, FormTotalMetric>\n liveSubmissions?: Record<string, number>\n draftSubmissions?: Record<string, number>\n daysToPublish?: Record<string, number>\n republished?: Record<string, number>\n language?: string\n updatedAt: Date\n earliestDate: Date\n}\n\nexport interface FormOverviewMetric {\n type: FormMetricType.OverviewMetric\n formId: string\n formStatus: FormStatus\n summaryMetrics: Record<string, number | string | string[]>\n featureMetrics: Record<string, Map<string, number>>\n submissionsCount: number\n updatedAt: Date\n language?: string\n}\n\nexport interface FormTimelineMetric {\n type: FormMetricType.TimelineMetric\n formId: string\n formStatus: FormStatus\n metricName: FormMetricName\n language?: string\n metricValue: number\n createdAt: Date\n}\n\nexport interface FormDrilldownMetric {\n type: FormMetricType.DrilldownMetric\n formId: string\n metricName: FormMetricName\n metricValue: number\n periodName: string\n createdAt: Date\n language?: string\n}\n\nexport type FormMetric =\n | FormTotalsMetric\n | FormOverviewMetric\n | FormTimelineMetric\n"],"mappings":"","ignoreList":[]}
|
|
@@ -21,6 +21,7 @@ export interface FormTotalsMetric {
|
|
|
21
21
|
draftSubmissions?: Record<string, number>;
|
|
22
22
|
daysToPublish?: Record<string, number>;
|
|
23
23
|
republished?: Record<string, number>;
|
|
24
|
+
language?: string;
|
|
24
25
|
updatedAt: Date;
|
|
25
26
|
earliestDate: Date;
|
|
26
27
|
}
|
|
@@ -32,12 +33,14 @@ export interface FormOverviewMetric {
|
|
|
32
33
|
featureMetrics: Record<string, Map<string, number>>;
|
|
33
34
|
submissionsCount: number;
|
|
34
35
|
updatedAt: Date;
|
|
36
|
+
language?: string;
|
|
35
37
|
}
|
|
36
38
|
export interface FormTimelineMetric {
|
|
37
39
|
type: FormMetricType.TimelineMetric;
|
|
38
40
|
formId: string;
|
|
39
41
|
formStatus: FormStatus;
|
|
40
42
|
metricName: FormMetricName;
|
|
43
|
+
language?: string;
|
|
41
44
|
metricValue: number;
|
|
42
45
|
createdAt: Date;
|
|
43
46
|
}
|
|
@@ -48,6 +51,7 @@ export interface FormDrilldownMetric {
|
|
|
48
51
|
metricValue: number;
|
|
49
52
|
periodName: string;
|
|
50
53
|
createdAt: Date;
|
|
54
|
+
language?: string;
|
|
51
55
|
}
|
|
52
56
|
export type FormMetric = FormTotalsMetric | FormOverviewMetric | FormTimelineMetric;
|
|
53
57
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/form/form-metrics/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,kCAAkC,CAAA;AAEzC,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAA;QACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAA;QACpC,SAAS,CAAC,EAAE,IAAI,CAAA;KACjB,CAAA;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAC,YAAY,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC,cAAc,EAAE,eAAe,CAAC,CAAA;IACnD,SAA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IACjC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAA;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,UAAU,CAAA;IACtB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAC1D,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACnD,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,IAAI,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAA;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,cAAc,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAC,eAAe,CAAA;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,cAAc,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,IAAI,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@ export interface FormTotalsMetric {
|
|
|
26
26
|
draftSubmissions?: Record<string, number>
|
|
27
27
|
daysToPublish?: Record<string, number>
|
|
28
28
|
republished?: Record<string, number>
|
|
29
|
+
language?: string
|
|
29
30
|
updatedAt: Date
|
|
30
31
|
earliestDate: Date
|
|
31
32
|
}
|
|
@@ -38,6 +39,7 @@ export interface FormOverviewMetric {
|
|
|
38
39
|
featureMetrics: Record<string, Map<string, number>>
|
|
39
40
|
submissionsCount: number
|
|
40
41
|
updatedAt: Date
|
|
42
|
+
language?: string
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export interface FormTimelineMetric {
|
|
@@ -45,6 +47,7 @@ export interface FormTimelineMetric {
|
|
|
45
47
|
formId: string
|
|
46
48
|
formStatus: FormStatus
|
|
47
49
|
metricName: FormMetricName
|
|
50
|
+
language?: string
|
|
48
51
|
metricValue: number
|
|
49
52
|
createdAt: Date
|
|
50
53
|
}
|
|
@@ -56,6 +59,7 @@ export interface FormDrilldownMetric {
|
|
|
56
59
|
metricValue: number
|
|
57
60
|
periodName: string
|
|
58
61
|
createdAt: Date
|
|
62
|
+
language?: string
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
export type FormMetric =
|