@guardian/content-api-models 17.6.2 → 17.6.3

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": "17.6.2",
4
+ "version": "17.6.3",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -75,6 +75,7 @@ export interface AssetFields {
75
75
  start?: CapiDateTime;
76
76
  end?: CapiDateTime;
77
77
  safeEmbedCode?: boolean;
78
+ isMandatory?: boolean;
78
79
  }
79
80
  export declare class AssetFieldsSerde {
80
81
  static read(protocol: TProtocol): AssetFields;
package/v1/assetFields.js CHANGED
@@ -634,6 +634,15 @@ var AssetFieldsSerde = /** @class */ (function () {
634
634
  protocol.skip(ftype);
635
635
  }
636
636
  break;
637
+ case 69:
638
+ if (ftype === thrift_1.Thrift.Type.BOOL) {
639
+ var value1 = protocol.readBool();
640
+ result.isMandatory = value1;
641
+ }
642
+ else {
643
+ protocol.skip(ftype);
644
+ }
645
+ break;
637
646
  default:
638
647
  protocol.skip(ftype);
639
648
  }
@@ -1053,6 +1062,12 @@ var AssetFieldsSerde = /** @class */ (function () {
1053
1062
  protocol.writeBool(value1);
1054
1063
  protocol.writeFieldEnd();
1055
1064
  }
1065
+ if (value0.isMandatory !== null && value0.isMandatory !== undefined) {
1066
+ var value1 = value0.isMandatory;
1067
+ protocol.writeFieldBegin('isMandatory', thrift_1.Thrift.Type.BOOL, 69);
1068
+ protocol.writeBool(value1);
1069
+ protocol.writeFieldEnd();
1070
+ }
1056
1071
  protocol.writeFieldStop();
1057
1072
  protocol.writeStructEnd();
1058
1073
  };