@guardian/content-api-models 17.7.0-beta.0 → 17.7.0-beta.1

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.
@@ -10,4 +10,4 @@ var EventType;
10
10
  (function (EventType) {
11
11
  EventType[EventType["ADD"] = 0] = "ADD";
12
12
  EventType[EventType["REMOVE"] = 1] = "REMOVE";
13
- })(EventType = exports.EventType || (exports.EventType = {}));
13
+ })(EventType || (exports.EventType = EventType = {}));
@@ -11,4 +11,4 @@ var EventType;
11
11
  EventType[EventType["UPDATE"] = 1] = "UPDATE";
12
12
  EventType[EventType["DELETE"] = 2] = "DELETE";
13
13
  EventType[EventType["RETRIEVABLEUPDATE"] = 3] = "RETRIEVABLEUPDATE";
14
- })(EventType = exports.EventType || (exports.EventType = {}));
14
+ })(EventType || (exports.EventType = EventType = {}));
@@ -13,4 +13,4 @@ var ItemType;
13
13
  ItemType[ItemType["SECTION"] = 3] = "SECTION";
14
14
  ItemType[ItemType["STORYPACKAGE"] = 4] = "STORYPACKAGE";
15
15
  ItemType[ItemType["ATOM"] = 5] = "ATOM";
16
- })(ItemType = exports.ItemType || (exports.ItemType = {}));
16
+ })(ItemType || (exports.ItemType = ItemType = {}));
@@ -10,4 +10,4 @@ var EventType;
10
10
  (function (EventType) {
11
11
  EventType[EventType["UPDATE"] = 1] = "UPDATE";
12
12
  EventType[EventType["DELETE"] = 2] = "DELETE";
13
- })(EventType = exports.EventType || (exports.EventType = {}));
13
+ })(EventType || (exports.EventType = EventType = {}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  {
3
3
  "name": "@guardian/content-api-models",
4
- "version": "17.7.0-beta.0",
4
+ "version": "17.7.0-beta.1",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
package/v1/assetType.js CHANGED
@@ -14,4 +14,4 @@ var AssetType;
14
14
  AssetType[AssetType["EMBED"] = 3] = "EMBED";
15
15
  AssetType[AssetType["TWEET"] = 4] = "TWEET";
16
16
  AssetType[AssetType["CARTOON"] = 5] = "CARTOON";
17
- })(AssetType = exports.AssetType || (exports.AssetType = {}));
17
+ })(AssetType || (exports.AssetType = AssetType = {}));
@@ -13,6 +13,8 @@ export interface CartoonElementFields {
13
13
  alt?: string;
14
14
  source?: string;
15
15
  displayCredit?: boolean;
16
+ photographer?: string;
17
+ imageType?: string;
16
18
  }
17
19
  export declare class CartoonElementFieldsSerde {
18
20
  static read(protocol: TProtocol): CartoonElementFields;
@@ -95,6 +95,24 @@ var CartoonElementFieldsSerde = /** @class */ (function () {
95
95
  protocol.skip(ftype);
96
96
  }
97
97
  break;
98
+ case 8:
99
+ if (ftype === thrift_1.Thrift.Type.STRING) {
100
+ var value1 = protocol.readString();
101
+ result.photographer = value1;
102
+ }
103
+ else {
104
+ protocol.skip(ftype);
105
+ }
106
+ break;
107
+ case 9:
108
+ if (ftype === thrift_1.Thrift.Type.STRING) {
109
+ var value1 = protocol.readString();
110
+ result.imageType = value1;
111
+ }
112
+ else {
113
+ protocol.skip(ftype);
114
+ }
115
+ break;
98
116
  default:
99
117
  protocol.skip(ftype);
100
118
  }
@@ -152,6 +170,18 @@ var CartoonElementFieldsSerde = /** @class */ (function () {
152
170
  protocol.writeBool(value1);
153
171
  protocol.writeFieldEnd();
154
172
  }
173
+ if (value0.photographer !== null && value0.photographer !== undefined) {
174
+ var value1 = value0.photographer;
175
+ protocol.writeFieldBegin('photographer', thrift_1.Thrift.Type.STRING, 8);
176
+ protocol.writeString(value1);
177
+ protocol.writeFieldEnd();
178
+ }
179
+ if (value0.imageType !== null && value0.imageType !== undefined) {
180
+ var value1 = value0.imageType;
181
+ protocol.writeFieldBegin('imageType', thrift_1.Thrift.Type.STRING, 9);
182
+ protocol.writeString(value1);
183
+ protocol.writeFieldEnd();
184
+ }
155
185
  protocol.writeFieldStop();
156
186
  protocol.writeStructEnd();
157
187
  };
package/v1/contentType.js CHANGED
@@ -16,4 +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 = exports.ContentType || (exports.ContentType = {}));
19
+ })(ContentType || (exports.ContentType = ContentType = {}));
@@ -16,4 +16,4 @@ var CrosswordType;
16
16
  CrosswordType[CrosswordType["EVERYMAN"] = 5] = "EVERYMAN";
17
17
  CrosswordType[CrosswordType["DIAN_QUIPTIC_CROSSWORD"] = 6] = "DIAN_QUIPTIC_CROSSWORD";
18
18
  CrosswordType[CrosswordType["WEEKEND"] = 7] = "WEEKEND";
19
- })(CrosswordType = exports.CrosswordType || (exports.CrosswordType = {}));
19
+ })(CrosswordType || (exports.CrosswordType = CrosswordType = {}));
package/v1/elementType.js CHANGED
@@ -30,4 +30,4 @@ var ElementType;
30
30
  ElementType[ElementType["VINE"] = 19] = "VINE";
31
31
  ElementType[ElementType["CALLOUT"] = 20] = "CALLOUT";
32
32
  ElementType[ElementType["CARTOON"] = 21] = "CARTOON";
33
- })(ElementType = exports.ElementType || (exports.ElementType = {}));
33
+ })(ElementType || (exports.ElementType = ElementType = {}));
@@ -11,4 +11,4 @@ var EmbedTracksType;
11
11
  EmbedTracksType[EmbedTracksType["UNKNOWN"] = 0] = "UNKNOWN";
12
12
  EmbedTracksType[EmbedTracksType["TRACKS"] = 1] = "TRACKS";
13
13
  EmbedTracksType[EmbedTracksType["DOES_NOT_TRACK"] = 2] = "DOES_NOT_TRACK";
14
- })(EmbedTracksType = exports.EmbedTracksType || (exports.EmbedTracksType = {}));
14
+ })(EmbedTracksType || (exports.EmbedTracksType = EmbedTracksType = {}));
@@ -10,4 +10,4 @@ var MembershipTier;
10
10
  (function (MembershipTier) {
11
11
  MembershipTier[MembershipTier["MEMBERS_ONLY"] = 0] = "MEMBERS_ONLY";
12
12
  MembershipTier[MembershipTier["PAID_MEMBERS_ONLY"] = 1] = "PAID_MEMBERS_ONLY";
13
- })(MembershipTier = exports.MembershipTier || (exports.MembershipTier = {}));
13
+ })(MembershipTier || (exports.MembershipTier = MembershipTier = {}));
package/v1/office.js CHANGED
@@ -11,4 +11,4 @@ var Office;
11
11
  Office[Office["UK"] = 0] = "UK";
12
12
  Office[Office["US"] = 1] = "US";
13
13
  Office[Office["AUS"] = 2] = "AUS";
14
- })(Office = exports.Office || (exports.Office = {}));
14
+ })(Office || (exports.Office = Office = {}));
@@ -11,4 +11,4 @@ var PlatformType;
11
11
  PlatformType[PlatformType["WEB"] = 0] = "WEB";
12
12
  PlatformType[PlatformType["AMP"] = 1] = "AMP";
13
13
  PlatformType[PlatformType["APPS"] = 2] = "APPS";
14
- })(PlatformType = exports.PlatformType || (exports.PlatformType = {}));
14
+ })(PlatformType || (exports.PlatformType = PlatformType = {}));
@@ -11,4 +11,4 @@ var SponsorshipType;
11
11
  SponsorshipType[SponsorshipType["SPONSORED"] = 0] = "SPONSORED";
12
12
  SponsorshipType[SponsorshipType["FOUNDATION"] = 1] = "FOUNDATION";
13
13
  SponsorshipType[SponsorshipType["PAID_CONTENT"] = 2] = "PAID_CONTENT";
14
- })(SponsorshipType = exports.SponsorshipType || (exports.SponsorshipType = {}));
14
+ })(SponsorshipType || (exports.SponsorshipType = SponsorshipType = {}));
package/v1/tagType.js CHANGED
@@ -20,4 +20,4 @@ var TagType;
20
20
  TagType[TagType["TRACKING"] = 9] = "TRACKING";
21
21
  TagType[TagType["PAID_CONTENT"] = 10] = "PAID_CONTENT";
22
22
  TagType[TagType["CAMPAIGN"] = 11] = "CAMPAIGN";
23
- })(TagType = exports.TagType || (exports.TagType = {}));
23
+ })(TagType || (exports.TagType = TagType = {}));