@guardian/bridget 8.9.1-2026-04-28 → 8.9.2

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/MediaEvent.d.ts CHANGED
@@ -5,5 +5,11 @@ export declare enum MediaEvent {
5
5
  percent25 = 3,
6
6
  percent50 = 4,
7
7
  percent75 = 5,
8
- end = 6
8
+ end = 6,
9
+ pause = 7,
10
+ mute = 8,
11
+ unmute = 9,
12
+ enter_fullscreen = 10,
13
+ exit_fullscreen = 11,
14
+ view = 12
9
15
  }
package/MediaEvent.js CHANGED
@@ -16,4 +16,10 @@ var MediaEvent;
16
16
  MediaEvent[MediaEvent["percent50"] = 4] = "percent50";
17
17
  MediaEvent[MediaEvent["percent75"] = 5] = "percent75";
18
18
  MediaEvent[MediaEvent["end"] = 6] = "end";
19
+ MediaEvent[MediaEvent["pause"] = 7] = "pause";
20
+ MediaEvent[MediaEvent["mute"] = 8] = "mute";
21
+ MediaEvent[MediaEvent["unmute"] = 9] = "unmute";
22
+ MediaEvent[MediaEvent["enter_fullscreen"] = 10] = "enter_fullscreen";
23
+ MediaEvent[MediaEvent["exit_fullscreen"] = 11] = "exit_fullscreen";
24
+ MediaEvent[MediaEvent["view"] = 12] = "view";
19
25
  })(MediaEvent || (exports.MediaEvent = MediaEvent = {}));
package/index.d.ts CHANGED
@@ -14,7 +14,6 @@ export * from "./VideoSlot";
14
14
  export * from "./MetricPaint";
15
15
  export * from "./MetricFont";
16
16
  export * from "./VideoEvent";
17
- export * from "./MatchNotificationsAvailability";
18
17
  export * from "./Metric";
19
18
  export * from "./DiscussionServiceResponse";
20
19
  import * as Environment from "./Environment";
@@ -27,8 +26,6 @@ import * as Tag from "./Tag";
27
26
  export { Tag as Tag };
28
27
  import * as Notifications from "./Notifications";
29
28
  export { Notifications as Notifications };
30
- import * as MatchNotifications from "./MatchNotifications";
31
- export { MatchNotifications as MatchNotifications };
32
29
  import * as ListenToArticle from "./ListenToArticle";
33
30
  export { ListenToArticle as ListenToArticle };
34
31
  import * as Audio from "./Audio";
package/index.js CHANGED
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Interactives = exports.Interaction = exports.Newsletters = exports.Navigation = exports.AbTesting = exports.Analytics = exports.Discussion = exports.Metrics = exports.Videos = exports.Gallery = exports.User = exports.Audio = exports.ListenToArticle = exports.MatchNotifications = exports.Notifications = exports.Tag = exports.Acquisitions = exports.Commercial = exports.Environment = void 0;
29
+ exports.Interactives = exports.Interaction = exports.Newsletters = exports.Navigation = exports.AbTesting = exports.Analytics = exports.Discussion = exports.Metrics = exports.Videos = exports.Gallery = exports.User = exports.Audio = exports.ListenToArticle = exports.Notifications = exports.Tag = exports.Acquisitions = exports.Commercial = exports.Environment = void 0;
30
30
  /* tslint:disable */
31
31
  /* eslint-disable */
32
32
  /*
@@ -49,7 +49,6 @@ __exportStar(require("./VideoSlot"), exports);
49
49
  __exportStar(require("./MetricPaint"), exports);
50
50
  __exportStar(require("./MetricFont"), exports);
51
51
  __exportStar(require("./VideoEvent"), exports);
52
- __exportStar(require("./MatchNotificationsAvailability"), exports);
53
52
  __exportStar(require("./Metric"), exports);
54
53
  __exportStar(require("./DiscussionServiceResponse"), exports);
55
54
  const Environment = __importStar(require("./Environment"));
@@ -62,8 +61,6 @@ const Tag = __importStar(require("./Tag"));
62
61
  exports.Tag = Tag;
63
62
  const Notifications = __importStar(require("./Notifications"));
64
63
  exports.Notifications = Notifications;
65
- const MatchNotifications = __importStar(require("./MatchNotifications"));
66
- exports.MatchNotifications = MatchNotifications;
67
64
  const ListenToArticle = __importStar(require("./ListenToArticle"));
68
65
  exports.ListenToArticle = ListenToArticle;
69
66
  const Audio = __importStar(require("./Audio"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/bridget",
3
- "version": "8.9.1-2026-04-28",
3
+ "version": "8.9.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,71 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import * as thrift from "@creditkarma/thrift-server-core";
4
- import * as MatchNotificationsAvailability from "./MatchNotificationsAvailability";
5
- export declare const serviceName: string;
6
- export declare const annotations: thrift.IThriftAnnotations;
7
- export declare const methodAnnotations: thrift.IMethodAnnotations;
8
- export declare const methodNames: Array<string>;
9
- export declare const methodParameters: {
10
- [methodName: string]: number;
11
- };
12
- export interface IIsAvailable__Args {
13
- }
14
- export interface IIsAvailable__ArgsArgs {
15
- }
16
- export declare const IsAvailable__ArgsCodec: thrift.IStructCodec<IIsAvailable__ArgsArgs, IIsAvailable__Args>;
17
- export declare class IsAvailable__Args extends thrift.StructLike implements IIsAvailable__Args {
18
- readonly _annotations: thrift.IThriftAnnotations;
19
- readonly _fieldAnnotations: thrift.IFieldAnnotations;
20
- constructor(args?: IIsAvailable__ArgsArgs);
21
- static read(input: thrift.TProtocol): IsAvailable__Args;
22
- static write(args: IIsAvailable__ArgsArgs, output: thrift.TProtocol): void;
23
- write(output: thrift.TProtocol): void;
24
- }
25
- export interface IIsAvailable__Result {
26
- success?: MatchNotificationsAvailability.IMatchNotificationsAvailability;
27
- }
28
- export interface IIsAvailable__ResultArgs {
29
- success?: MatchNotificationsAvailability.IMatchNotificationsAvailabilityArgs;
30
- }
31
- export declare const IsAvailable__ResultCodec: thrift.IStructCodec<IIsAvailable__ResultArgs, IIsAvailable__Result>;
32
- export declare class IsAvailable__Result extends thrift.StructLike implements IIsAvailable__Result {
33
- success?: MatchNotificationsAvailability.IMatchNotificationsAvailability;
34
- readonly _annotations: thrift.IThriftAnnotations;
35
- readonly _fieldAnnotations: thrift.IFieldAnnotations;
36
- constructor(args?: IIsAvailable__ResultArgs);
37
- static read(input: thrift.TProtocol): IsAvailable__Result;
38
- static write(args: IIsAvailable__ResultArgs, output: thrift.TProtocol): void;
39
- write(output: thrift.TProtocol): void;
40
- }
41
- export declare class Client<Context = any> extends thrift.ThriftClient<Context> {
42
- static readonly serviceName: string;
43
- static readonly annotations: thrift.IThriftAnnotations;
44
- static readonly methodAnnotations: thrift.IMethodAnnotations;
45
- static readonly methodNames: Array<string>;
46
- readonly _serviceName: string;
47
- readonly _annotations: thrift.IThriftAnnotations;
48
- readonly _methodAnnotations: thrift.IMethodAnnotations;
49
- readonly _methodNames: Array<string>;
50
- readonly _methodParameters?: {
51
- [methodName: string]: number;
52
- };
53
- isAvailable(context?: Context): Promise<MatchNotificationsAvailability.IMatchNotificationsAvailability>;
54
- }
55
- export interface IHandler<Context = any> {
56
- isAvailable(context?: Context): MatchNotificationsAvailability.IMatchNotificationsAvailabilityArgs | Promise<MatchNotificationsAvailability.IMatchNotificationsAvailabilityArgs>;
57
- }
58
- export declare class Processor<Context = any> extends thrift.ThriftProcessor<Context, IHandler<Context>> {
59
- protected readonly _handler: IHandler<Context>;
60
- static readonly serviceName: string;
61
- static readonly annotations: thrift.IThriftAnnotations;
62
- static readonly methodAnnotations: thrift.IMethodAnnotations;
63
- static readonly methodNames: Array<string>;
64
- readonly _serviceName: string;
65
- readonly _annotations: thrift.IThriftAnnotations;
66
- readonly _methodAnnotations: thrift.IMethodAnnotations;
67
- readonly _methodNames: Array<string>;
68
- constructor(handler: IHandler<Context>);
69
- process(input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
70
- process_isAvailable(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
71
- }
@@ -1,274 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Processor = exports.Client = exports.IsAvailable__Result = exports.IsAvailable__ResultCodec = exports.IsAvailable__Args = exports.IsAvailable__ArgsCodec = exports.methodParameters = exports.methodNames = exports.methodAnnotations = exports.annotations = exports.serviceName = void 0;
27
- /* tslint:disable */
28
- /* eslint-disable */
29
- /*
30
- * Autogenerated by @creditkarma/thrift-typescript v3.7.6
31
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
32
- */
33
- const thrift = __importStar(require("@creditkarma/thrift-server-core"));
34
- const MatchNotificationsAvailability = __importStar(require("./MatchNotificationsAvailability"));
35
- exports.serviceName = "MatchNotifications";
36
- exports.annotations = {};
37
- exports.methodAnnotations = {
38
- isAvailable: {
39
- annotations: {},
40
- fieldAnnotations: {}
41
- }
42
- };
43
- exports.methodNames = ["isAvailable"];
44
- exports.methodParameters = {
45
- isAvailable: 1
46
- };
47
- exports.IsAvailable__ArgsCodec = {
48
- encode(args, output) {
49
- output.writeStructBegin("IsAvailable__Args");
50
- output.writeFieldStop();
51
- output.writeStructEnd();
52
- return;
53
- },
54
- decode(input) {
55
- input.readStructBegin();
56
- while (true) {
57
- const ret = input.readFieldBegin();
58
- const fieldType = ret.fieldType;
59
- const fieldId = ret.fieldId;
60
- if (fieldType === thrift.TType.STOP) {
61
- break;
62
- }
63
- switch (fieldId) {
64
- default: {
65
- input.skip(fieldType);
66
- }
67
- }
68
- input.readFieldEnd();
69
- }
70
- input.readStructEnd();
71
- return {};
72
- }
73
- };
74
- class IsAvailable__Args extends thrift.StructLike {
75
- constructor(args = {}) {
76
- super();
77
- this._annotations = {};
78
- this._fieldAnnotations = {};
79
- }
80
- static read(input) {
81
- return new IsAvailable__Args(exports.IsAvailable__ArgsCodec.decode(input));
82
- }
83
- static write(args, output) {
84
- return exports.IsAvailable__ArgsCodec.encode(args, output);
85
- }
86
- write(output) {
87
- return exports.IsAvailable__ArgsCodec.encode(this, output);
88
- }
89
- }
90
- exports.IsAvailable__Args = IsAvailable__Args;
91
- exports.IsAvailable__ResultCodec = {
92
- encode(args, output) {
93
- const obj = {
94
- success: args.success
95
- };
96
- output.writeStructBegin("IsAvailable__Result");
97
- if (obj.success != null) {
98
- output.writeFieldBegin("success", thrift.TType.STRUCT, 0);
99
- MatchNotificationsAvailability.MatchNotificationsAvailabilityCodec.encode(obj.success, output);
100
- output.writeFieldEnd();
101
- }
102
- output.writeFieldStop();
103
- output.writeStructEnd();
104
- return;
105
- },
106
- decode(input) {
107
- let _args = {};
108
- input.readStructBegin();
109
- while (true) {
110
- const ret = input.readFieldBegin();
111
- const fieldType = ret.fieldType;
112
- const fieldId = ret.fieldId;
113
- if (fieldType === thrift.TType.STOP) {
114
- break;
115
- }
116
- switch (fieldId) {
117
- case 0:
118
- if (fieldType === thrift.TType.STRUCT) {
119
- const value_1 = MatchNotificationsAvailability.MatchNotificationsAvailabilityCodec.decode(input);
120
- _args.success = value_1;
121
- }
122
- else {
123
- input.skip(fieldType);
124
- }
125
- break;
126
- default: {
127
- input.skip(fieldType);
128
- }
129
- }
130
- input.readFieldEnd();
131
- }
132
- input.readStructEnd();
133
- return {
134
- success: _args.success
135
- };
136
- }
137
- };
138
- class IsAvailable__Result extends thrift.StructLike {
139
- constructor(args = {}) {
140
- super();
141
- this._annotations = {};
142
- this._fieldAnnotations = {};
143
- if (args.success != null) {
144
- const value_2 = new MatchNotificationsAvailability.MatchNotificationsAvailability(args.success);
145
- this.success = value_2;
146
- }
147
- }
148
- static read(input) {
149
- return new IsAvailable__Result(exports.IsAvailable__ResultCodec.decode(input));
150
- }
151
- static write(args, output) {
152
- return exports.IsAvailable__ResultCodec.encode(args, output);
153
- }
154
- write(output) {
155
- return exports.IsAvailable__ResultCodec.encode(this, output);
156
- }
157
- }
158
- exports.IsAvailable__Result = IsAvailable__Result;
159
- class Client extends thrift.ThriftClient {
160
- constructor() {
161
- super(...arguments);
162
- this._serviceName = exports.serviceName;
163
- this._annotations = exports.annotations;
164
- this._methodAnnotations = exports.methodAnnotations;
165
- this._methodNames = exports.methodNames;
166
- this._methodParameters = exports.methodParameters;
167
- }
168
- isAvailable(context) {
169
- const writer = new this.transport();
170
- const output = new this.protocol(writer);
171
- output.writeMessageBegin("isAvailable", thrift.MessageType.CALL, this.incrementRequestId());
172
- const args = {};
173
- exports.IsAvailable__ArgsCodec.encode(args, output);
174
- output.writeMessageEnd();
175
- return this.connection.send(writer.flush(), context).then((data) => {
176
- const reader = this.transport.receiver(data);
177
- const input = new this.protocol(reader);
178
- try {
179
- const { fieldName: fieldName, messageType: messageType } = input.readMessageBegin();
180
- if (fieldName === "isAvailable") {
181
- if (messageType === thrift.MessageType.EXCEPTION) {
182
- const err = thrift.TApplicationExceptionCodec.decode(input);
183
- input.readMessageEnd();
184
- return Promise.reject(err);
185
- }
186
- else {
187
- const result = exports.IsAvailable__ResultCodec.decode(input);
188
- input.readMessageEnd();
189
- if (result.success != null) {
190
- return Promise.resolve(result.success);
191
- }
192
- else {
193
- return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, "isAvailable failed: unknown result"));
194
- }
195
- }
196
- }
197
- else {
198
- return Promise.reject(new thrift.TApplicationException(thrift.TApplicationExceptionType.WRONG_METHOD_NAME, "Received a response to an unknown RPC function: " + fieldName));
199
- }
200
- }
201
- catch (err) {
202
- return Promise.reject(err);
203
- }
204
- });
205
- }
206
- }
207
- exports.Client = Client;
208
- Client.serviceName = exports.serviceName;
209
- Client.annotations = exports.annotations;
210
- Client.methodAnnotations = exports.methodAnnotations;
211
- Client.methodNames = exports.methodNames;
212
- class Processor extends thrift.ThriftProcessor {
213
- constructor(handler) {
214
- super();
215
- this._serviceName = exports.serviceName;
216
- this._annotations = exports.annotations;
217
- this._methodAnnotations = exports.methodAnnotations;
218
- this._methodNames = exports.methodNames;
219
- this._handler = handler;
220
- }
221
- process(input, output, context) {
222
- return new Promise((resolve, reject) => {
223
- const metadata = input.readMessageBegin();
224
- const fieldName = metadata.fieldName;
225
- const requestId = metadata.requestId;
226
- const methodName = "process_" + fieldName;
227
- switch (methodName) {
228
- case "process_isAvailable": {
229
- resolve(this.process_isAvailable(requestId, input, output, context));
230
- break;
231
- }
232
- default: {
233
- input.skip(thrift.TType.STRUCT);
234
- input.readMessageEnd();
235
- const errMessage = "Unknown function " + fieldName;
236
- const err = new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN_METHOD, errMessage);
237
- output.writeMessageBegin(fieldName, thrift.MessageType.EXCEPTION, requestId);
238
- thrift.TApplicationExceptionCodec.encode(err, output);
239
- output.writeMessageEnd();
240
- resolve(output.flush());
241
- break;
242
- }
243
- }
244
- });
245
- }
246
- process_isAvailable(requestId, input, output, context) {
247
- return new Promise((resolve, reject) => {
248
- try {
249
- input.readMessageEnd();
250
- resolve(this._handler.isAvailable(context));
251
- }
252
- catch (err) {
253
- reject(err);
254
- }
255
- }).then((data) => {
256
- const result = { success: data };
257
- output.writeMessageBegin("isAvailable", thrift.MessageType.REPLY, requestId);
258
- exports.IsAvailable__ResultCodec.encode(result, output);
259
- output.writeMessageEnd();
260
- return output.flush();
261
- }).catch((err) => {
262
- const result = new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, err.message);
263
- output.writeMessageBegin("isAvailable", thrift.MessageType.EXCEPTION, requestId);
264
- thrift.TApplicationExceptionCodec.encode(result, output);
265
- output.writeMessageEnd();
266
- return output.flush();
267
- });
268
- }
269
- }
270
- exports.Processor = Processor;
271
- Processor.serviceName = exports.serviceName;
272
- Processor.annotations = exports.annotations;
273
- Processor.methodAnnotations = exports.methodAnnotations;
274
- Processor.methodNames = exports.methodNames;
@@ -1,20 +0,0 @@
1
- import * as thrift from "@creditkarma/thrift-server-core";
2
- export interface IMatchNotificationsAvailability {
3
- isAvailable: boolean;
4
- unavailableReason?: string;
5
- }
6
- export interface IMatchNotificationsAvailabilityArgs {
7
- isAvailable: boolean;
8
- unavailableReason?: string;
9
- }
10
- export declare const MatchNotificationsAvailabilityCodec: thrift.IStructCodec<IMatchNotificationsAvailabilityArgs, IMatchNotificationsAvailability>;
11
- export declare class MatchNotificationsAvailability extends thrift.StructLike implements IMatchNotificationsAvailability {
12
- isAvailable: boolean;
13
- unavailableReason?: string;
14
- readonly _annotations: thrift.IThriftAnnotations;
15
- readonly _fieldAnnotations: thrift.IFieldAnnotations;
16
- constructor(args: IMatchNotificationsAvailabilityArgs);
17
- static read(input: thrift.TProtocol): MatchNotificationsAvailability;
18
- static write(args: IMatchNotificationsAvailabilityArgs, output: thrift.TProtocol): void;
19
- write(output: thrift.TProtocol): void;
20
- }
@@ -1,132 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.MatchNotificationsAvailability = exports.MatchNotificationsAvailabilityCodec = void 0;
27
- /* tslint:disable */
28
- /* eslint-disable */
29
- /*
30
- * Autogenerated by @creditkarma/thrift-typescript v3.7.6
31
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
32
- */
33
- const thrift = __importStar(require("@creditkarma/thrift-server-core"));
34
- exports.MatchNotificationsAvailabilityCodec = {
35
- encode(args, output) {
36
- const obj = {
37
- isAvailable: args.isAvailable,
38
- unavailableReason: args.unavailableReason
39
- };
40
- output.writeStructBegin("MatchNotificationsAvailability");
41
- if (obj.isAvailable != null) {
42
- output.writeFieldBegin("isAvailable", thrift.TType.BOOL, 1);
43
- output.writeBool(obj.isAvailable);
44
- output.writeFieldEnd();
45
- }
46
- else {
47
- throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[isAvailable] is unset!");
48
- }
49
- if (obj.unavailableReason != null) {
50
- output.writeFieldBegin("unavailableReason", thrift.TType.STRING, 2);
51
- output.writeString(obj.unavailableReason);
52
- output.writeFieldEnd();
53
- }
54
- output.writeFieldStop();
55
- output.writeStructEnd();
56
- return;
57
- },
58
- decode(input) {
59
- let _args = {};
60
- input.readStructBegin();
61
- while (true) {
62
- const ret = input.readFieldBegin();
63
- const fieldType = ret.fieldType;
64
- const fieldId = ret.fieldId;
65
- if (fieldType === thrift.TType.STOP) {
66
- break;
67
- }
68
- switch (fieldId) {
69
- case 1:
70
- if (fieldType === thrift.TType.BOOL) {
71
- const value_1 = input.readBool();
72
- _args.isAvailable = value_1;
73
- }
74
- else {
75
- input.skip(fieldType);
76
- }
77
- break;
78
- case 2:
79
- if (fieldType === thrift.TType.STRING) {
80
- const value_2 = input.readString();
81
- _args.unavailableReason = value_2;
82
- }
83
- else {
84
- input.skip(fieldType);
85
- }
86
- break;
87
- default: {
88
- input.skip(fieldType);
89
- }
90
- }
91
- input.readFieldEnd();
92
- }
93
- input.readStructEnd();
94
- if (_args.isAvailable !== undefined) {
95
- return {
96
- isAvailable: _args.isAvailable,
97
- unavailableReason: _args.unavailableReason
98
- };
99
- }
100
- else {
101
- throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read MatchNotificationsAvailability from input");
102
- }
103
- }
104
- };
105
- class MatchNotificationsAvailability extends thrift.StructLike {
106
- constructor(args) {
107
- super();
108
- this._annotations = {};
109
- this._fieldAnnotations = {};
110
- if (args.isAvailable != null) {
111
- const value_3 = args.isAvailable;
112
- this.isAvailable = value_3;
113
- }
114
- else {
115
- throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[isAvailable] is unset!");
116
- }
117
- if (args.unavailableReason != null) {
118
- const value_4 = args.unavailableReason;
119
- this.unavailableReason = value_4;
120
- }
121
- }
122
- static read(input) {
123
- return new MatchNotificationsAvailability(exports.MatchNotificationsAvailabilityCodec.decode(input));
124
- }
125
- static write(args, output) {
126
- return exports.MatchNotificationsAvailabilityCodec.encode(args, output);
127
- }
128
- write(output) {
129
- return exports.MatchNotificationsAvailabilityCodec.encode(this, output);
130
- }
131
- }
132
- exports.MatchNotificationsAvailability = MatchNotificationsAvailability;