@guardian/content-api-models 26.0.0 → 27.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": "26.0.0",
4
+ "version": "27.0.0",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -46,6 +46,7 @@ export interface ItemResponse {
46
46
  chart?: Atom;
47
47
  audio?: Atom;
48
48
  emailsignup?: Atom;
49
+ deeplyRead?: Content[];
49
50
  }
50
51
  export declare class ItemResponseSerde {
51
52
  static read(protocol: TProtocol): ItemResponse;
@@ -17,7 +17,7 @@ var ItemResponseSerde = /** @class */ (function () {
17
17
  function ItemResponseSerde() {
18
18
  }
19
19
  ItemResponseSerde.read = function (protocol) {
20
- var _a, _b, _c, _d, _e, _f, _g, _h;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
21
21
  protocol.readStructBegin();
22
22
  var result = {};
23
23
  while (true) {
@@ -415,6 +415,24 @@ var ItemResponseSerde = /** @class */ (function () {
415
415
  protocol.skip(ftype);
416
416
  }
417
417
  break;
418
+ case 38:
419
+ if (ftype === thrift_1.Thrift.Type.LIST) {
420
+ var listInfo1 = protocol.readListBegin();
421
+ var listSize1 = (_j = listInfo1.size) !== null && _j !== void 0 ? _j : 0;
422
+ var value1 = [];
423
+ if (listInfo1.etype === thrift_1.Thrift.Type.STRUCT) {
424
+ for (var i = 0; i < listSize1; i++) {
425
+ var value2 = content_1.ContentSerde.read(protocol);
426
+ value1.push(value2);
427
+ }
428
+ }
429
+ protocol.readListEnd();
430
+ result.deeplyRead = value1;
431
+ }
432
+ else {
433
+ protocol.skip(ftype);
434
+ }
435
+ break;
418
436
  default:
419
437
  protocol.skip(ftype);
420
438
  }
@@ -668,6 +686,16 @@ var ItemResponseSerde = /** @class */ (function () {
668
686
  atom_1.AtomSerde.write(protocol, value1);
669
687
  protocol.writeFieldEnd();
670
688
  }
689
+ if (value0.deeplyRead !== null && value0.deeplyRead !== undefined) {
690
+ var value1 = value0.deeplyRead;
691
+ protocol.writeFieldBegin('deeplyRead', thrift_1.Thrift.Type.LIST, 38);
692
+ protocol.writeListBegin(thrift_1.Thrift.Type.STRUCT, value1.length);
693
+ value1.forEach(function (value2) {
694
+ content_1.ContentSerde.write(protocol, value2);
695
+ });
696
+ protocol.writeListEnd();
697
+ protocol.writeFieldEnd();
698
+ }
671
699
  protocol.writeFieldStop();
672
700
  protocol.writeStructEnd();
673
701
  };