@headspace/protos-events 1.123.0 → 1.124.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/lib/index.d.ts CHANGED
@@ -3785,7 +3785,7 @@ export interface IContentfulPlaylistCreated {
3785
3785
  videoSegments?: ({ [k: string]: contentful.IIdReferences }|null);
3786
3786
 
3787
3787
  /** ContentfulPlaylistCreated schedule */
3788
- schedule?: ({ [k: string]: (number|Long) }|null);
3788
+ schedule?: ({ [k: string]: string }|null);
3789
3789
 
3790
3790
  /** ContentfulPlaylistCreated accessGroups */
3791
3791
  accessGroups?: (contentful.ISlugReference[]|null);
@@ -3831,7 +3831,7 @@ export class ContentfulPlaylistCreated implements IContentfulPlaylistCreated {
3831
3831
  public videoSegments: { [k: string]: contentful.IIdReferences };
3832
3832
 
3833
3833
  /** ContentfulPlaylistCreated schedule. */
3834
- public schedule: { [k: string]: (number|Long) };
3834
+ public schedule: { [k: string]: string };
3835
3835
 
3836
3836
  /** ContentfulPlaylistCreated accessGroups. */
3837
3837
  public accessGroups: contentful.ISlugReference[];
@@ -3941,7 +3941,7 @@ export interface IContentfulPlaylistUpdated {
3941
3941
  videoSegments?: ({ [k: string]: contentful.IIdReferences }|null);
3942
3942
 
3943
3943
  /** ContentfulPlaylistUpdated schedule */
3944
- schedule?: ({ [k: string]: (number|Long) }|null);
3944
+ schedule?: ({ [k: string]: string }|null);
3945
3945
 
3946
3946
  /** ContentfulPlaylistUpdated accessGroups */
3947
3947
  accessGroups?: (contentful.ISlugReference[]|null);
@@ -3987,7 +3987,7 @@ export class ContentfulPlaylistUpdated implements IContentfulPlaylistUpdated {
3987
3987
  public videoSegments: { [k: string]: contentful.IIdReferences };
3988
3988
 
3989
3989
  /** ContentfulPlaylistUpdated schedule. */
3990
- public schedule: { [k: string]: (number|Long) };
3990
+ public schedule: { [k: string]: string };
3991
3991
 
3992
3992
  /** ContentfulPlaylistUpdated accessGroups. */
3993
3993
  public accessGroups: contentful.ISlugReference[];
package/lib/index.js CHANGED
@@ -9198,7 +9198,7 @@ $root.ContentfulPlaylistCreated = (function() {
9198
9198
  * @property {Object.<string,string>|null} [playerOrientation] ContentfulPlaylistCreated playerOrientation
9199
9199
  * @property {Object.<string,contentful.IIdReference>|null} [previewMedia] ContentfulPlaylistCreated previewMedia
9200
9200
  * @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulPlaylistCreated videoSegments
9201
- * @property {Object.<string,number|Long>|null} [schedule] ContentfulPlaylistCreated schedule
9201
+ * @property {Object.<string,string>|null} [schedule] ContentfulPlaylistCreated schedule
9202
9202
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistCreated accessGroups
9203
9203
  * @property {number|Long|null} [createdAt] ContentfulPlaylistCreated createdAt
9204
9204
  */
@@ -9301,7 +9301,7 @@ $root.ContentfulPlaylistCreated = (function() {
9301
9301
 
9302
9302
  /**
9303
9303
  * ContentfulPlaylistCreated schedule.
9304
- * @member {Object.<string,number|Long>} schedule
9304
+ * @member {Object.<string,string>} schedule
9305
9305
  * @memberof ContentfulPlaylistCreated
9306
9306
  * @instance
9307
9307
  */
@@ -9378,7 +9378,7 @@ $root.ContentfulPlaylistCreated = (function() {
9378
9378
  }
9379
9379
  if (message.schedule != null && message.hasOwnProperty("schedule"))
9380
9380
  for (var keys = Object.keys(message.schedule), i = 0; i < keys.length; ++i)
9381
- writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.schedule[keys[i]]).ldelim();
9381
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.schedule[keys[i]]).ldelim();
9382
9382
  if (message.accessGroups != null && message.accessGroups.length)
9383
9383
  for (var i = 0; i < message.accessGroups.length; ++i)
9384
9384
  $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
@@ -9486,7 +9486,7 @@ $root.ContentfulPlaylistCreated = (function() {
9486
9486
  message.schedule = {};
9487
9487
  key = reader.string();
9488
9488
  reader.pos++;
9489
- message.schedule[key] = reader.uint64();
9489
+ message.schedule[key] = reader.string();
9490
9490
  break;
9491
9491
  case 11:
9492
9492
  if (!(message.accessGroups && message.accessGroups.length))
@@ -9602,8 +9602,8 @@ $root.ContentfulPlaylistCreated = (function() {
9602
9602
  return "schedule: object expected";
9603
9603
  var key = Object.keys(message.schedule);
9604
9604
  for (var i = 0; i < key.length; ++i)
9605
- if (!$util.isInteger(message.schedule[key[i]]) && !(message.schedule[key[i]] && $util.isInteger(message.schedule[key[i]].low) && $util.isInteger(message.schedule[key[i]].high)))
9606
- return "schedule: integer|Long{k:string} expected";
9605
+ if (!$util.isString(message.schedule[key[i]]))
9606
+ return "schedule: string{k:string} expected";
9607
9607
  }
9608
9608
  if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
9609
9609
  if (!Array.isArray(message.accessGroups))
@@ -9696,14 +9696,7 @@ $root.ContentfulPlaylistCreated = (function() {
9696
9696
  throw TypeError(".ContentfulPlaylistCreated.schedule: object expected");
9697
9697
  message.schedule = {};
9698
9698
  for (var keys = Object.keys(object.schedule), i = 0; i < keys.length; ++i)
9699
- if ($util.Long)
9700
- (message.schedule[keys[i]] = $util.Long.fromValue(object.schedule[keys[i]])).unsigned = true;
9701
- else if (typeof object.schedule[keys[i]] === "string")
9702
- message.schedule[keys[i]] = parseInt(object.schedule[keys[i]], 10);
9703
- else if (typeof object.schedule[keys[i]] === "number")
9704
- message.schedule[keys[i]] = object.schedule[keys[i]];
9705
- else if (typeof object.schedule[keys[i]] === "object")
9706
- message.schedule[keys[i]] = new $util.LongBits(object.schedule[keys[i]].low >>> 0, object.schedule[keys[i]].high >>> 0).toNumber(true);
9699
+ message.schedule[keys[i]] = String(object.schedule[keys[i]]);
9707
9700
  }
9708
9701
  if (object.accessGroups) {
9709
9702
  if (!Array.isArray(object.accessGroups))
@@ -9804,10 +9797,7 @@ $root.ContentfulPlaylistCreated = (function() {
9804
9797
  if (message.schedule && (keys2 = Object.keys(message.schedule)).length) {
9805
9798
  object.schedule = {};
9806
9799
  for (var j = 0; j < keys2.length; ++j)
9807
- if (typeof message.schedule[keys2[j]] === "number")
9808
- object.schedule[keys2[j]] = options.longs === String ? String(message.schedule[keys2[j]]) : message.schedule[keys2[j]];
9809
- else
9810
- object.schedule[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.schedule[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.schedule[keys2[j]].low >>> 0, message.schedule[keys2[j]].high >>> 0).toNumber(true) : message.schedule[keys2[j]];
9800
+ object.schedule[keys2[j]] = message.schedule[keys2[j]];
9811
9801
  }
9812
9802
  if (message.accessGroups && message.accessGroups.length) {
9813
9803
  object.accessGroups = [];
@@ -9851,7 +9841,7 @@ $root.ContentfulPlaylistUpdated = (function() {
9851
9841
  * @property {Object.<string,string>|null} [playerOrientation] ContentfulPlaylistUpdated playerOrientation
9852
9842
  * @property {Object.<string,contentful.IIdReference>|null} [previewMedia] ContentfulPlaylistUpdated previewMedia
9853
9843
  * @property {Object.<string,contentful.IIdReferences>|null} [videoSegments] ContentfulPlaylistUpdated videoSegments
9854
- * @property {Object.<string,number|Long>|null} [schedule] ContentfulPlaylistUpdated schedule
9844
+ * @property {Object.<string,string>|null} [schedule] ContentfulPlaylistUpdated schedule
9855
9845
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistUpdated accessGroups
9856
9846
  * @property {number|Long|null} [updatedAt] ContentfulPlaylistUpdated updatedAt
9857
9847
  */
@@ -9954,7 +9944,7 @@ $root.ContentfulPlaylistUpdated = (function() {
9954
9944
 
9955
9945
  /**
9956
9946
  * ContentfulPlaylistUpdated schedule.
9957
- * @member {Object.<string,number|Long>} schedule
9947
+ * @member {Object.<string,string>} schedule
9958
9948
  * @memberof ContentfulPlaylistUpdated
9959
9949
  * @instance
9960
9950
  */
@@ -10031,7 +10021,7 @@ $root.ContentfulPlaylistUpdated = (function() {
10031
10021
  }
10032
10022
  if (message.schedule != null && message.hasOwnProperty("schedule"))
10033
10023
  for (var keys = Object.keys(message.schedule), i = 0; i < keys.length; ++i)
10034
- writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).uint64(message.schedule[keys[i]]).ldelim();
10024
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.schedule[keys[i]]).ldelim();
10035
10025
  if (message.accessGroups != null && message.accessGroups.length)
10036
10026
  for (var i = 0; i < message.accessGroups.length; ++i)
10037
10027
  $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
@@ -10139,7 +10129,7 @@ $root.ContentfulPlaylistUpdated = (function() {
10139
10129
  message.schedule = {};
10140
10130
  key = reader.string();
10141
10131
  reader.pos++;
10142
- message.schedule[key] = reader.uint64();
10132
+ message.schedule[key] = reader.string();
10143
10133
  break;
10144
10134
  case 11:
10145
10135
  if (!(message.accessGroups && message.accessGroups.length))
@@ -10255,8 +10245,8 @@ $root.ContentfulPlaylistUpdated = (function() {
10255
10245
  return "schedule: object expected";
10256
10246
  var key = Object.keys(message.schedule);
10257
10247
  for (var i = 0; i < key.length; ++i)
10258
- if (!$util.isInteger(message.schedule[key[i]]) && !(message.schedule[key[i]] && $util.isInteger(message.schedule[key[i]].low) && $util.isInteger(message.schedule[key[i]].high)))
10259
- return "schedule: integer|Long{k:string} expected";
10248
+ if (!$util.isString(message.schedule[key[i]]))
10249
+ return "schedule: string{k:string} expected";
10260
10250
  }
10261
10251
  if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
10262
10252
  if (!Array.isArray(message.accessGroups))
@@ -10349,14 +10339,7 @@ $root.ContentfulPlaylistUpdated = (function() {
10349
10339
  throw TypeError(".ContentfulPlaylistUpdated.schedule: object expected");
10350
10340
  message.schedule = {};
10351
10341
  for (var keys = Object.keys(object.schedule), i = 0; i < keys.length; ++i)
10352
- if ($util.Long)
10353
- (message.schedule[keys[i]] = $util.Long.fromValue(object.schedule[keys[i]])).unsigned = true;
10354
- else if (typeof object.schedule[keys[i]] === "string")
10355
- message.schedule[keys[i]] = parseInt(object.schedule[keys[i]], 10);
10356
- else if (typeof object.schedule[keys[i]] === "number")
10357
- message.schedule[keys[i]] = object.schedule[keys[i]];
10358
- else if (typeof object.schedule[keys[i]] === "object")
10359
- message.schedule[keys[i]] = new $util.LongBits(object.schedule[keys[i]].low >>> 0, object.schedule[keys[i]].high >>> 0).toNumber(true);
10342
+ message.schedule[keys[i]] = String(object.schedule[keys[i]]);
10360
10343
  }
10361
10344
  if (object.accessGroups) {
10362
10345
  if (!Array.isArray(object.accessGroups))
@@ -10457,10 +10440,7 @@ $root.ContentfulPlaylistUpdated = (function() {
10457
10440
  if (message.schedule && (keys2 = Object.keys(message.schedule)).length) {
10458
10441
  object.schedule = {};
10459
10442
  for (var j = 0; j < keys2.length; ++j)
10460
- if (typeof message.schedule[keys2[j]] === "number")
10461
- object.schedule[keys2[j]] = options.longs === String ? String(message.schedule[keys2[j]]) : message.schedule[keys2[j]];
10462
- else
10463
- object.schedule[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.schedule[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.schedule[keys2[j]].low >>> 0, message.schedule[keys2[j]].high >>> 0).toNumber(true) : message.schedule[keys2[j]];
10443
+ object.schedule[keys2[j]] = message.schedule[keys2[j]];
10464
10444
  }
10465
10445
  if (message.accessGroups && message.accessGroups.length) {
10466
10446
  object.accessGroups = [];
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.123.0"
19
+ "version": "1.124.0"
20
20
  }