@guardian/content-api-models 34.0.0 → 35.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",
4
+ "version": "35.0.0",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -0,0 +1,13 @@
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 KeywordType {
7
+ PERSON = 0,
8
+ ORGANISATION = 1,
9
+ EVENT = 2,
10
+ WORK_OF_ART_OR_PRODUCT = 3,
11
+ PLACE = 4,
12
+ OTHER = 5
13
+ }
@@ -0,0 +1,17 @@
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.KeywordType = void 0;
9
+ var KeywordType;
10
+ (function (KeywordType) {
11
+ KeywordType[KeywordType["PERSON"] = 0] = "PERSON";
12
+ KeywordType[KeywordType["ORGANISATION"] = 1] = "ORGANISATION";
13
+ KeywordType[KeywordType["EVENT"] = 2] = "EVENT";
14
+ KeywordType[KeywordType["WORK_OF_ART_OR_PRODUCT"] = 3] = "WORK_OF_ART_OR_PRODUCT";
15
+ KeywordType[KeywordType["PLACE"] = 4] = "PLACE";
16
+ KeywordType[KeywordType["OTHER"] = 5] = "OTHER";
17
+ })(KeywordType || (exports.KeywordType = KeywordType = {}));
package/v1/tag.d.ts CHANGED
@@ -4,6 +4,7 @@
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 { KeywordType } from './keywordType';
7
8
  import { Podcast } from './podcast';
8
9
  import { Reference } from './reference';
9
10
  import { Sponsorship } from './sponsorship';
@@ -35,6 +36,7 @@ export interface Tag {
35
36
  entityIds?: string[];
36
37
  campaignInformationType?: string;
37
38
  internalName?: string;
39
+ keywordType?: KeywordType;
38
40
  }
39
41
  export declare class TagSerde {
40
42
  static read(protocol: TProtocol): Tag;
package/v1/tag.js CHANGED
@@ -295,6 +295,15 @@ var TagSerde = /** @class */ (function () {
295
295
  protocol.skip(ftype);
296
296
  }
297
297
  break;
298
+ case 27:
299
+ if (ftype === thrift_1.Thrift.Type.I32) {
300
+ var value1 = protocol.readI32();
301
+ result.keywordType = value1;
302
+ }
303
+ else {
304
+ protocol.skip(ftype);
305
+ }
306
+ break;
298
307
  default:
299
308
  protocol.skip(ftype);
300
309
  }
@@ -478,6 +487,12 @@ var TagSerde = /** @class */ (function () {
478
487
  protocol.writeString(value1);
479
488
  protocol.writeFieldEnd();
480
489
  }
490
+ if (value0.keywordType !== null && value0.keywordType !== undefined) {
491
+ var value1 = value0.keywordType;
492
+ protocol.writeFieldBegin('keywordType', thrift_1.Thrift.Type.I32, 27);
493
+ protocol.writeI32(value1);
494
+ protocol.writeFieldEnd();
495
+ }
481
496
  protocol.writeFieldStop();
482
497
  protocol.writeStructEnd();
483
498
  };