@guardian/content-api-models 18.1.0-PREVIEW.adopt-GHA-Scala-Library-Release-Workflow.2024-01-23T1754.6d00eca6 → 19.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": "18.1.0-PREVIEW.adopt-GHA-Scala-Library-Release-Workflow.2024-01-23T1754.6d00eca6",
4
+ "version": "19.0.0",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,6 +11,5 @@ export declare enum ContentType {
11
11
  PICTURE = 4,
12
12
  VIDEO = 5,
13
13
  CROSSWORD = 6,
14
- AUDIO = 7,
15
- ROBERTO = 8
14
+ AUDIO = 7
16
15
  }
package/v1/contentType.js CHANGED
@@ -16,5 +16,4 @@ var ContentType;
16
16
  ContentType[ContentType["VIDEO"] = 5] = "VIDEO";
17
17
  ContentType[ContentType["CROSSWORD"] = 6] = "CROSSWORD";
18
18
  ContentType[ContentType["AUDIO"] = 7] = "AUDIO";
19
- ContentType[ContentType["ROBERTO"] = 8] = "ROBERTO";
20
19
  })(ContentType || (exports.ContentType = ContentType = {}));
@@ -6,6 +6,7 @@
6
6
  import { TProtocol } from 'thrift';
7
7
  import { CapiDateTime } from './capiDateTime';
8
8
  import { SponsorshipLogoDimensions } from './sponsorshipLogoDimensions';
9
+ import { SponsorshipPackage } from './sponsorshipPackage';
9
10
  import { SponsorshipTargeting } from './sponsorshipTargeting';
10
11
  import { SponsorshipType } from './sponsorshipType';
11
12
  export interface Sponsorship {
@@ -20,6 +21,7 @@ export interface Sponsorship {
20
21
  highContrastSponsorLogoDimensions?: SponsorshipLogoDimensions;
21
22
  validFrom?: CapiDateTime;
22
23
  validTo?: CapiDateTime;
24
+ sponsorshipPackage?: SponsorshipPackage;
23
25
  }
24
26
  export declare class SponsorshipSerde {
25
27
  static read(protocol: TProtocol): Sponsorship;
package/v1/sponsorship.js CHANGED
@@ -123,6 +123,15 @@ var SponsorshipSerde = /** @class */ (function () {
123
123
  protocol.skip(ftype);
124
124
  }
125
125
  break;
126
+ case 12:
127
+ if (ftype === thrift_1.Thrift.Type.I32) {
128
+ var value1 = protocol.readI32();
129
+ result.sponsorshipPackage = value1;
130
+ }
131
+ else {
132
+ protocol.skip(ftype);
133
+ }
134
+ break;
126
135
  default:
127
136
  protocol.skip(ftype);
128
137
  }
@@ -200,6 +209,12 @@ var SponsorshipSerde = /** @class */ (function () {
200
209
  capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
201
210
  protocol.writeFieldEnd();
202
211
  }
212
+ if (value0.sponsorshipPackage !== null && value0.sponsorshipPackage !== undefined) {
213
+ var value1 = value0.sponsorshipPackage;
214
+ protocol.writeFieldBegin('sponsorshipPackage', thrift_1.Thrift.Type.I32, 12);
215
+ protocol.writeI32(value1);
216
+ protocol.writeFieldEnd();
217
+ }
203
218
  protocol.writeFieldStop();
204
219
  protocol.writeStructEnd();
205
220
  };
@@ -0,0 +1,10 @@
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 SponsorshipPackage {
7
+ DEFAULT = 0,
8
+ US = 1,
9
+ US_EXCLUSIVE = 2
10
+ }
@@ -0,0 +1,14 @@
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.SponsorshipPackage = void 0;
9
+ var SponsorshipPackage;
10
+ (function (SponsorshipPackage) {
11
+ SponsorshipPackage[SponsorshipPackage["DEFAULT"] = 0] = "DEFAULT";
12
+ SponsorshipPackage[SponsorshipPackage["US"] = 1] = "US";
13
+ SponsorshipPackage[SponsorshipPackage["US_EXCLUSIVE"] = 2] = "US_EXCLUSIVE";
14
+ })(SponsorshipPackage || (exports.SponsorshipPackage = SponsorshipPackage = {}));