@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 +1 -1
- package/v1/contentType.d.ts +1 -2
- package/v1/contentType.js +0 -1
- package/v1/sponsorship.d.ts +2 -0
- package/v1/sponsorship.js +15 -0
- package/v1/sponsorshipPackage.d.ts +10 -0
- package/v1/sponsorshipPackage.js +14 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
{
|
|
3
3
|
"name": "@guardian/content-api-models",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "19.0.0",
|
|
5
5
|
"description": "Typescript library built from the content api thrift definitions",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
package/v1/contentType.d.ts
CHANGED
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 = {}));
|
package/v1/sponsorship.d.ts
CHANGED
|
@@ -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,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 = {}));
|