Skip to content

Commit f8c5719

Browse files
committed
Start adding correct values for enums
1 parent 0e8901b commit f8c5719

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alugha/ima",
3-
"version": "1.1.2",
3+
"version": "2.0.0",
44
"description":
55
"A library for asynchronously loading the Google IMA SDK with static typing for the SDK",
66
"license": "MIT",

typings/ima.d.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -240,91 +240,91 @@ declare namespace google {
240240
/**
241241
* There was a problem requesting ads from the server. VAST error code 1012
242242
*/
243-
ADS_REQUEST_NETWORK_ERROR,
243+
ADS_REQUEST_NETWORK_ERROR = 1012,
244244
/**
245245
* There was an error with asset fallback. VAST error code 1021
246246
*/
247-
ASSET_FALLBACK_FAILED,
247+
ASSET_FALLBACK_FAILED = 1021,
248248
/**
249249
* The browser prevented playback initiated without user interaction. VAST error code 1205
250250
*/
251-
AUTOPLAY_DISALLOWED,
251+
AUTOPLAY_DISALLOWED = 1205,
252252
/**
253253
* A companion ad failed to load or render. VAST error code 603
254254
*/
255-
COMPANION_AD_LOADING_FAILED,
255+
COMPANION_AD_LOADING_FAILED = 603,
256256
/**
257257
* Unable to display one or more required companions. The master ad is discarded since the required companions could not be displayed. VAST error code 602
258258
*/
259-
COMPANION_REQUIRED_ERROR,
259+
COMPANION_REQUIRED_ERROR = 602,
260260
/**
261261
* There was a problem requesting ads from the server. VAST error code 1005
262262
*/
263-
FAILED_TO_REQUEST_ADS,
263+
FAILED_TO_REQUEST_ADS = 1005,
264264
/**
265265
* The ad tag url specified was invalid. It needs to be properly encoded. VAST error code 1013
266266
*/
267-
INVALID_AD_TAG,
267+
INVALID_AD_TAG = 1013,
268268
/**
269269
* An invalid AdX extension was found. VAST error code 1105
270270
*/
271-
INVALID_ADX_EXTENSION,
271+
INVALID_ADX_EXTENSION = 1105,
272272
/**
273273
* Invalid arguments were provided to SDK methods. VAST error code 1101
274274
*/
275-
INVALID_ARGUMENTS,
275+
INVALID_ARGUMENTS = 1101,
276276
/**
277277
* Unable to display NonLinear ad because creative dimensions do not align with creative display area (i.e. creative dimension too large). VAST error code 501
278278
*/
279-
NONLINEAR_DIMENSIONS_ERROR,
279+
NONLINEAR_DIMENSIONS_ERROR = 501,
280280
/**
281281
* An overlay ad failed to load. VAST error code 502
282282
*/
283-
OVERLAY_AD_LOADING_FAILED,
283+
OVERLAY_AD_LOADING_FAILED = 502,
284284
/**
285285
* An overlay ad failed to render. VAST error code 500
286286
*/
287-
OVERLAY_AD_PLAYING_FAILED,
287+
OVERLAY_AD_PLAYING_FAILED = 500,
288288
/**
289289
* There was an error with stream initialization during server side ad insertion. VAST error code 1020
290290
*/
291-
STREAM_INITIALIZATION_FAILED,
291+
STREAM_INITIALIZATION_FAILED = 1020,
292292
/**
293293
* The ad response was not understood and cannot be parsed. VAST error code 1010
294294
*/
295-
UNKNOWN_AD_RESPONSE,
295+
UNKNOWN_AD_RESPONSE = 1010,
296296
/**
297297
* An unexpected error occurred and the cause is not known. Refer to the inner error for more information. VAST error code 900
298298
*/
299-
UNKNOWN_ERROR,
299+
UNKNOWN_ERROR = 900,
300300
/**
301301
* Locale specified for the SDK is not supported. VAST error code 1011
302302
*/
303-
UNSUPPORTED_LOCALE,
303+
UNSUPPORTED_LOCALE = 1011,
304304
/**
305305
* No assets were found in the VAST ad response. VAST error code 1007
306306
*/
307-
VAST_ASSET_NOT_FOUND,
307+
VAST_ASSET_NOT_FOUND = 1007,
308308
/**
309309
* Empty VAST response. VAST error code 1009
310310
*/
311-
VAST_EMPTY_RESPONSE,
311+
VAST_EMPTY_RESPONSE = 1009,
312312
/**
313313
* Assets were found in the VAST ad response for linear ad, but none of them matched the video player's capabilities. VAST error code 403
314314
*/
315-
VAST_LINEAR_ASSET_MISMATCH,
315+
VAST_LINEAR_ASSET_MISMATCH = 403,
316316
/**
317317
* The VAST URI provided, or a VAST URI provided in a subsequent wrapper element, was either unavailable or reached a timeout, as defined by the video player. The timeout is 5 seconds for initial VAST requests and each subsequent wrapper. VAST error code 301
318318
*/
319-
VAST_LOAD_TIMEOUT,
319+
VAST_LOAD_TIMEOUT = 301,
320320
/**
321321
* The ad response was not recognized as a valid VAST ad. VAST error code 100
322322
*/
323-
VAST_MALFORMED_RESPONSE,
323+
VAST_MALFORMED_RESPONSE = 100,
324324
/**
325325
* Failed to load media assets from a VAST response. The default timeout for media loading is 8 seconds. VAST error code 402
326326
*/
327-
VAST_MEDIA_LOAD_TIMEOUT,
327+
VAST_MEDIA_LOAD_TIMEOUT = 402,
328328
/**
329329
* No Ads VAST response after one or more wrappers. VAST error code 303
330330
*/
@@ -382,11 +382,11 @@ declare namespace google {
382382
/**
383383
* Indicates that the error was encountered when the ad was being loaded. Possible causes: there was no response from the ad server, malformed ad response was returned, or ad request parameters failed to pass validation.
384384
*/
385-
AD_LOAD,
385+
AD_LOAD = 'adLoadError',
386386
/**
387387
* Indicates that the error was encountered after the ad loaded, during ad play. Possible causes: ad assets could not be loaded, etc.
388388
*/
389-
AD_PLAY,
389+
AD_PLAY = 'adPlayError',
390390
}
391391
}
392392

@@ -413,7 +413,7 @@ declare namespace google {
413413
/**
414414
* Fired when an error occurred while the ad was loading or playing.
415415
*/
416-
AD_ERROR,
416+
AD_ERROR = 'adError',
417417
}
418418

419419
type Listener = (event: AdErrorEvent) => void;
@@ -856,7 +856,7 @@ declare namespace google {
856856
/**
857857
* Fired when the ads have been loaded and an AdsManager is available.
858858
*/
859-
ADS_MANAGER_LOADED,
859+
ADS_MANAGER_LOADED = 'adsManagerLoaded',
860860
}
861861

862862
type Listener = (event: AdsManagerLoadedEvent) => void;

0 commit comments

Comments
 (0)