@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 +1 -1
- package/v1/itemResponse.d.ts +1 -0
- package/v1/itemResponse.js +29 -1
package/package.json
CHANGED
package/v1/itemResponse.d.ts
CHANGED
package/v1/itemResponse.js
CHANGED
|
@@ -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
|
};
|