@financial-times/dotcom-server-app-context 9.2.0 → 9.3.0

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.
@@ -6,49 +6,71 @@
6
6
  "abTestState": {
7
7
  "type": "string",
8
8
  "description": "The A/B test flags data as a comma delimited string",
9
- "examples": ["subscriberCohort:on,premiumCohort:on,nonUSACohort:on"],
9
+ "examples": [
10
+ "subscriberCohort:on,premiumCohort:on,nonUSACohort:on"
11
+ ],
10
12
  "pattern": "^,*([0-9A-Za-z-_]+:[0-9A-Za-z-_]+,*)+$"
11
13
  },
12
14
  "appName": {
13
15
  "type": "string",
14
16
  "description": "The name of the application",
15
- "examples": ["front-page", "stream-page", "article-page"],
17
+ "examples": [
18
+ "front-page",
19
+ "stream-page",
20
+ "article-page"
21
+ ],
16
22
  "pattern": "^.+$"
17
23
  },
18
24
  "appVersion": {
19
25
  "type": "string",
20
26
  "description": "The running version of the app (usually a Git commit hash)",
21
- "examples": ["882797258625531f20d604f6441ef8cfcb2d772b"],
27
+ "examples": [
28
+ "882797258625531f20d604f6441ef8cfcb2d772b"
29
+ ],
22
30
  "pattern": "^.+$"
23
31
  },
24
32
  "conceptId": {
25
33
  "type": "string",
26
34
  "description": "The UUID of the concept on the current page",
27
- "examples": ["c5935758-7730-11e9-bbad-7c18c0ea0201"],
35
+ "examples": [
36
+ "c5935758-7730-11e9-bbad-7c18c0ea0201"
37
+ ],
28
38
  "pattern": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$"
29
39
  },
30
40
  "conceptType": {
31
41
  "type": "string",
32
42
  "description": "The type of concept on the current page",
33
- "examples": ["http://www.ft.com/ontology/product/Brand", "http://www.ft.com/ontology/Location"],
43
+ "examples": [
44
+ "http://www.ft.com/ontology/product/Brand",
45
+ "http://www.ft.com/ontology/Location"
46
+ ],
34
47
  "pattern": "^http://www.ft.com/ontology/.+$"
35
48
  },
36
49
  "contentId": {
37
50
  "type": "string",
38
51
  "description": "The UUID of the content on the current page",
39
- "examples": ["c5935758-7730-11e9-bbad-7c18c0ea0201"],
52
+ "examples": [
53
+ "c5935758-7730-11e9-bbad-7c18c0ea0201"
54
+ ],
40
55
  "pattern": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$"
41
56
  },
42
57
  "contentType": {
43
58
  "type": "string",
44
59
  "description": "The type or sub-type of the content on the current page",
45
- "examples": ["article", "video", "audio", "podcast", "package", "live-blog"],
46
- "pattern": "^(article|video|audio|podcast|package|live-blog)$"
60
+ "examples": [
61
+ "Article",
62
+ "LiveBlogPost",
63
+ "Video"
64
+ ],
65
+ "pattern": "^.+$"
47
66
  },
48
67
  "edition": {
49
68
  "type": "string",
50
69
  "description": "The selected FT edition",
51
- "examples": ["uk", "international"],
70
+ "examples": [
71
+ "uk",
72
+ "international"
73
+ ],
52
74
  "pattern": "^(uk|international)$"
53
75
  },
54
76
  "isProduction": {
@@ -80,7 +102,9 @@
80
102
  "pageKitVersion": {
81
103
  "type": "string",
82
104
  "description": "The version of Page Kit powering the app",
83
- "examples": ["1.0.0"],
105
+ "examples": [
106
+ "1.0.0"
107
+ ],
84
108
  "pattern": "^.+$"
85
109
  }
86
110
  },
@@ -152,7 +152,7 @@
152
152
  "affectsGlobalScope": false
153
153
  },
154
154
  "../src/schema.json": {
155
- "version": "1b34f97fbc44c23354f6b1894927a77b39fe866ab75e4f22e11b31e90bd0ac17",
155
+ "version": "ac8477f20b8b75f3ea882269d380462bc2e7fe32bbb2456f123abc45efd05ece",
156
156
  "signature": "4514896c3e428bda7f2bcc26cbb0389da9043246b381a517c43a33f9be17bbf6",
157
157
  "affectsGlobalScope": true
158
158
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-server-app-context",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "description": "",
5
5
  "main": "dist/node/index.js",
6
6
  "types": "dist/node/index.d.ts",
@@ -5,7 +5,7 @@ export const validAppContext = Object.freeze({
5
5
  product: 'next',
6
6
  abTestState: 'subscriberCohort:on,premiumCohort:on,topicTracker_UIDemo:100-percent',
7
7
  contentId: 'c5935758-7730-11e9-bbad-7c18c0ea0201',
8
- contentType: 'article',
8
+ contentType: 'Article',
9
9
  conceptId: 'c5935738-7730-11e9-bbad-7c18c0ea8201',
10
10
  conceptType: 'http://www.ft.com/ontology/Location',
11
11
  isProduction: true,
package/src/schema.json CHANGED
@@ -6,49 +6,71 @@
6
6
  "abTestState": {
7
7
  "type": "string",
8
8
  "description": "The A/B test flags data as a comma delimited string",
9
- "examples": ["subscriberCohort:on,premiumCohort:on,nonUSACohort:on"],
9
+ "examples": [
10
+ "subscriberCohort:on,premiumCohort:on,nonUSACohort:on"
11
+ ],
10
12
  "pattern": "^,*([0-9A-Za-z-_]+:[0-9A-Za-z-_]+,*)+$"
11
13
  },
12
14
  "appName": {
13
15
  "type": "string",
14
16
  "description": "The name of the application",
15
- "examples": ["front-page", "stream-page", "article-page"],
17
+ "examples": [
18
+ "front-page",
19
+ "stream-page",
20
+ "article-page"
21
+ ],
16
22
  "pattern": "^.+$"
17
23
  },
18
24
  "appVersion": {
19
25
  "type": "string",
20
26
  "description": "The running version of the app (usually a Git commit hash)",
21
- "examples": ["882797258625531f20d604f6441ef8cfcb2d772b"],
27
+ "examples": [
28
+ "882797258625531f20d604f6441ef8cfcb2d772b"
29
+ ],
22
30
  "pattern": "^.+$"
23
31
  },
24
32
  "conceptId": {
25
33
  "type": "string",
26
34
  "description": "The UUID of the concept on the current page",
27
- "examples": ["c5935758-7730-11e9-bbad-7c18c0ea0201"],
35
+ "examples": [
36
+ "c5935758-7730-11e9-bbad-7c18c0ea0201"
37
+ ],
28
38
  "pattern": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$"
29
39
  },
30
40
  "conceptType": {
31
41
  "type": "string",
32
42
  "description": "The type of concept on the current page",
33
- "examples": ["http://www.ft.com/ontology/product/Brand", "http://www.ft.com/ontology/Location"],
43
+ "examples": [
44
+ "http://www.ft.com/ontology/product/Brand",
45
+ "http://www.ft.com/ontology/Location"
46
+ ],
34
47
  "pattern": "^http://www.ft.com/ontology/.+$"
35
48
  },
36
49
  "contentId": {
37
50
  "type": "string",
38
51
  "description": "The UUID of the content on the current page",
39
- "examples": ["c5935758-7730-11e9-bbad-7c18c0ea0201"],
52
+ "examples": [
53
+ "c5935758-7730-11e9-bbad-7c18c0ea0201"
54
+ ],
40
55
  "pattern": "^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$"
41
56
  },
42
57
  "contentType": {
43
58
  "type": "string",
44
59
  "description": "The type or sub-type of the content on the current page",
45
- "examples": ["article", "video", "audio", "podcast", "package", "live-blog"],
46
- "pattern": "^(article|video|audio|podcast|package|live-blog)$"
60
+ "examples": [
61
+ "Article",
62
+ "LiveBlogPost",
63
+ "Video"
64
+ ],
65
+ "pattern": "^.+$"
47
66
  },
48
67
  "edition": {
49
68
  "type": "string",
50
69
  "description": "The selected FT edition",
51
- "examples": ["uk", "international"],
70
+ "examples": [
71
+ "uk",
72
+ "international"
73
+ ],
52
74
  "pattern": "^(uk|international)$"
53
75
  },
54
76
  "isProduction": {
@@ -80,7 +102,9 @@
80
102
  "pageKitVersion": {
81
103
  "type": "string",
82
104
  "description": "The version of Page Kit powering the app",
83
- "examples": ["1.0.0"],
105
+ "examples": [
106
+ "1.0.0"
107
+ ],
84
108
  "pattern": "^.+$"
85
109
  }
86
110
  },