@guardian/content-api-models 34.0.0-PREVIEW.pm-callout-type.2025-11-14T1725.7389da8b → 34.0.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  {
3
3
  "name": "@guardian/content-api-models",
4
- "version": "34.0.0-PREVIEW.pm-callout-type.2025-11-14T1725.7389da8b",
4
+ "version": "34.0.0",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -17,7 +17,7 @@
17
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": "^7.0.7",
20
+ "@guardian/content-atom-model": "^9.0.0",
21
21
  "@types/node-int64": "^0.4.29",
22
22
  "node-int64": "^0.4.0"
23
23
  }
@@ -4,14 +4,12 @@
4
4
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  */
6
6
  import { TProtocol } from 'thrift';
7
- import { CalloutType } from './calloutType';
8
7
  export interface CalloutElementFields {
9
8
  campaignId?: string;
10
9
  isNonCollapsible?: boolean;
11
10
  overridePrompt?: string;
12
11
  overrideTitle?: string;
13
12
  overrideDescription?: string;
14
- calloutType?: CalloutType;
15
13
  }
16
14
  export declare class CalloutElementFieldsSerde {
17
15
  static read(protocol: TProtocol): CalloutElementFields;
@@ -66,15 +66,6 @@ var CalloutElementFieldsSerde = /** @class */ (function () {
66
66
  protocol.skip(ftype);
67
67
  }
68
68
  break;
69
- case 6:
70
- if (ftype === thrift_1.Thrift.Type.I32) {
71
- var value1 = protocol.readI32();
72
- result.calloutType = value1;
73
- }
74
- else {
75
- protocol.skip(ftype);
76
- }
77
- break;
78
69
  default:
79
70
  protocol.skip(ftype);
80
71
  }
@@ -116,12 +107,6 @@ var CalloutElementFieldsSerde = /** @class */ (function () {
116
107
  protocol.writeString(value1);
117
108
  protocol.writeFieldEnd();
118
109
  }
119
- if (value0.calloutType !== null && value0.calloutType !== undefined) {
120
- var value1 = value0.calloutType;
121
- protocol.writeFieldBegin('calloutType', thrift_1.Thrift.Type.I32, 6);
122
- protocol.writeI32(value1);
123
- protocol.writeFieldEnd();
124
- }
125
110
  protocol.writeFieldStop();
126
111
  protocol.writeStructEnd();
127
112
  };
@@ -1,9 +0,0 @@
1
- /**
2
- * Autogenerated by scrooge-generator-extras
3
- *
4
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- */
6
- export declare enum CalloutType {
7
- COMMUNITY = 0,
8
- REPORTER = 1
9
- }
package/v1/calloutType.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- /**
3
- * Autogenerated by scrooge-generator-extras
4
- *
5
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.CalloutType = void 0;
9
- var CalloutType;
10
- (function (CalloutType) {
11
- CalloutType[CalloutType["COMMUNITY"] = 0] = "COMMUNITY";
12
- CalloutType[CalloutType["REPORTER"] = 1] = "REPORTER";
13
- })(CalloutType || (exports.CalloutType = CalloutType = {}));