@guardian/content-api-models 26.0.0-PREVIEW.agupdate-thrift.2024-07-04T1251.0144ace4 → 26.0.0-PREVIEW.fpanatom-data-field.2024-08-30T1523.f4dd8170

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  {
3
3
  "name": "@guardian/content-api-models",
4
- "version": "26.0.0-PREVIEW.agupdate-thrift.2024-07-04T1251.0144ace4",
4
+ "version": "26.0.0-PREVIEW.fpanatom-data-field.2024-08-30T1523.f4dd8170",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -14,10 +14,10 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@guardian/story-packages-model": "^2.2.0",
17
- "@guardian/content-entity-model": "^4.0.0",
17
+ "@guardian/content-entity-model": "^3.0.3",
18
18
  "@types/thrift": "^0.10.11",
19
19
  "thrift": "^0.15.0",
20
- "@guardian/content-atom-model": "^6.0.0",
20
+ "@guardian/content-atom-model": "^4.0.4",
21
21
  "@types/node-int64": "^0.4.29",
22
22
  "node-int64": "^0.4.0"
23
23
  }
@@ -9,6 +9,7 @@ export interface ContentAtomElementFields {
9
9
  atomType: string;
10
10
  role?: string;
11
11
  isMandatory?: boolean;
12
+ jsonData?: string;
12
13
  }
13
14
  export declare class ContentAtomElementFieldsSerde {
14
15
  static read(protocol: TProtocol): ContentAtomElementFields;
@@ -57,6 +57,15 @@ var ContentAtomElementFieldsSerde = /** @class */ (function () {
57
57
  protocol.skip(ftype);
58
58
  }
59
59
  break;
60
+ case 5:
61
+ if (ftype === thrift_1.Thrift.Type.STRING) {
62
+ var value1 = protocol.readString();
63
+ result.jsonData = value1;
64
+ }
65
+ else {
66
+ protocol.skip(ftype);
67
+ }
68
+ break;
60
69
  default:
61
70
  protocol.skip(ftype);
62
71
  }
@@ -92,6 +101,12 @@ var ContentAtomElementFieldsSerde = /** @class */ (function () {
92
101
  protocol.writeBool(value1);
93
102
  protocol.writeFieldEnd();
94
103
  }
104
+ if (value0.jsonData !== null && value0.jsonData !== undefined) {
105
+ var value1 = value0.jsonData;
106
+ protocol.writeFieldBegin('jsonData', thrift_1.Thrift.Type.STRING, 5);
107
+ protocol.writeString(value1);
108
+ protocol.writeFieldEnd();
109
+ }
95
110
  protocol.writeFieldStop();
96
111
  protocol.writeStructEnd();
97
112
  };
@@ -12,5 +12,6 @@ export declare enum CrosswordType {
12
12
  EVERYMAN = 5,
13
13
  DIAN_QUIPTIC_CROSSWORD = 6,
14
14
  WEEKEND = 7,
15
- QUICK_CRYPTIC = 8
15
+ QUICK_CRYPTIC = 8,
16
+ SPECIAL = 9
16
17
  }
@@ -17,4 +17,5 @@ var CrosswordType;
17
17
  CrosswordType[CrosswordType["DIAN_QUIPTIC_CROSSWORD"] = 6] = "DIAN_QUIPTIC_CROSSWORD";
18
18
  CrosswordType[CrosswordType["WEEKEND"] = 7] = "WEEKEND";
19
19
  CrosswordType[CrosswordType["QUICK_CRYPTIC"] = 8] = "QUICK_CRYPTIC";
20
+ CrosswordType[CrosswordType["SPECIAL"] = 9] = "SPECIAL";
20
21
  })(CrosswordType || (exports.CrosswordType = CrosswordType = {}));