@headspace/protos-events 1.100.0 → 1.102.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
@@ -3376,6 +3376,9 @@ export interface ICompletedActivity {
3376
3376
 
3377
3377
  /** CompletedActivity completedAtIsoDate */
3378
3378
  completedAtIsoDate?: (string|null);
3379
+
3380
+ /** CompletedActivity isFirstEdhsCompletion */
3381
+ isFirstEdhsCompletion?: (boolean|null);
3379
3382
  }
3380
3383
 
3381
3384
  /** Represents a CompletedActivity. */
@@ -3402,6 +3405,9 @@ export class CompletedActivity implements ICompletedActivity {
3402
3405
  /** CompletedActivity completedAtIsoDate. */
3403
3406
  public completedAtIsoDate: string;
3404
3407
 
3408
+ /** CompletedActivity isFirstEdhsCompletion. */
3409
+ public isFirstEdhsCompletion: boolean;
3410
+
3405
3411
  /**
3406
3412
  * Creates a new CompletedActivity instance using the specified properties.
3407
3413
  * @param [properties] Properties to set
@@ -4044,9 +4050,6 @@ export interface ISurveyQuestion {
4044
4050
  /** SurveyQuestion title */
4045
4051
  title?: (string|null);
4046
4052
 
4047
- /** SurveyQuestion shorthand */
4048
- shorthand?: (string|null);
4049
-
4050
4053
  /** SurveyQuestion answers */
4051
4054
  answers?: (ISurveyAnswer[]|null);
4052
4055
  }
@@ -4063,9 +4066,6 @@ export class SurveyQuestion implements ISurveyQuestion {
4063
4066
  /** SurveyQuestion title. */
4064
4067
  public title: string;
4065
4068
 
4066
- /** SurveyQuestion shorthand. */
4067
- public shorthand: string;
4068
-
4069
4069
  /** SurveyQuestion answers. */
4070
4070
  public answers: ISurveyAnswer[];
4071
4071
 
@@ -4722,6 +4722,9 @@ export interface IIosSubscriptionCreated {
4722
4722
  /** IosSubscriptionCreated userId */
4723
4723
  userId?: (string|null);
4724
4724
 
4725
+ /** IosSubscriptionCreated productId */
4726
+ productId?: (string|null);
4727
+
4725
4728
  /** IosSubscriptionCreated tags */
4726
4729
  tags?: (appleReceipt.IosSubscriptionTag[]|null);
4727
4730
 
@@ -4750,6 +4753,9 @@ export class IosSubscriptionCreated implements IIosSubscriptionCreated {
4750
4753
  /** IosSubscriptionCreated userId. */
4751
4754
  public userId: string;
4752
4755
 
4756
+ /** IosSubscriptionCreated productId. */
4757
+ public productId: string;
4758
+
4753
4759
  /** IosSubscriptionCreated tags. */
4754
4760
  public tags: appleReceipt.IosSubscriptionTag[];
4755
4761
 
@@ -4842,6 +4848,9 @@ export interface IIosSubscriptionRenewed {
4842
4848
  /** IosSubscriptionRenewed userId */
4843
4849
  userId?: (string|null);
4844
4850
 
4851
+ /** IosSubscriptionRenewed productId */
4852
+ productId?: (string|null);
4853
+
4845
4854
  /** IosSubscriptionRenewed tags */
4846
4855
  tags?: (appleReceipt.IosSubscriptionTag[]|null);
4847
4856
 
@@ -4870,6 +4879,9 @@ export class IosSubscriptionRenewed implements IIosSubscriptionRenewed {
4870
4879
  /** IosSubscriptionRenewed userId. */
4871
4880
  public userId: string;
4872
4881
 
4882
+ /** IosSubscriptionRenewed productId. */
4883
+ public productId: string;
4884
+
4873
4885
  /** IosSubscriptionRenewed tags. */
4874
4886
  public tags: appleReceipt.IosSubscriptionTag[];
4875
4887
 
package/lib/index.js CHANGED
@@ -8368,6 +8368,7 @@ $root.CompletedActivity = (function() {
8368
8368
  * @property {number|null} [activityId] CompletedActivity activityId
8369
8369
  * @property {number|null} [activityVariationId] CompletedActivity activityVariationId
8370
8370
  * @property {string|null} [completedAtIsoDate] CompletedActivity completedAtIsoDate
8371
+ * @property {boolean|null} [isFirstEdhsCompletion] CompletedActivity isFirstEdhsCompletion
8371
8372
  */
8372
8373
 
8373
8374
  /**
@@ -8425,6 +8426,14 @@ $root.CompletedActivity = (function() {
8425
8426
  */
8426
8427
  CompletedActivity.prototype.completedAtIsoDate = "";
8427
8428
 
8429
+ /**
8430
+ * CompletedActivity isFirstEdhsCompletion.
8431
+ * @member {boolean} isFirstEdhsCompletion
8432
+ * @memberof CompletedActivity
8433
+ * @instance
8434
+ */
8435
+ CompletedActivity.prototype.isFirstEdhsCompletion = false;
8436
+
8428
8437
  /**
8429
8438
  * Creates a new CompletedActivity instance using the specified properties.
8430
8439
  * @function create
@@ -8459,6 +8468,8 @@ $root.CompletedActivity = (function() {
8459
8468
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.activityVariationId);
8460
8469
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
8461
8470
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.completedAtIsoDate);
8471
+ if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
8472
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFirstEdhsCompletion);
8462
8473
  return writer;
8463
8474
  };
8464
8475
 
@@ -8508,6 +8519,9 @@ $root.CompletedActivity = (function() {
8508
8519
  case 5:
8509
8520
  message.completedAtIsoDate = reader.string();
8510
8521
  break;
8522
+ case 6:
8523
+ message.isFirstEdhsCompletion = reader.bool();
8524
+ break;
8511
8525
  default:
8512
8526
  reader.skipType(tag & 7);
8513
8527
  break;
@@ -8558,6 +8572,9 @@ $root.CompletedActivity = (function() {
8558
8572
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
8559
8573
  if (!$util.isString(message.completedAtIsoDate))
8560
8574
  return "completedAtIsoDate: string expected";
8575
+ if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
8576
+ if (typeof message.isFirstEdhsCompletion !== "boolean")
8577
+ return "isFirstEdhsCompletion: boolean expected";
8561
8578
  return null;
8562
8579
  };
8563
8580
 
@@ -8583,6 +8600,8 @@ $root.CompletedActivity = (function() {
8583
8600
  message.activityVariationId = object.activityVariationId >>> 0;
8584
8601
  if (object.completedAtIsoDate != null)
8585
8602
  message.completedAtIsoDate = String(object.completedAtIsoDate);
8603
+ if (object.isFirstEdhsCompletion != null)
8604
+ message.isFirstEdhsCompletion = Boolean(object.isFirstEdhsCompletion);
8586
8605
  return message;
8587
8606
  };
8588
8607
 
@@ -8605,6 +8624,7 @@ $root.CompletedActivity = (function() {
8605
8624
  object.activityId = 0;
8606
8625
  object.activityVariationId = 0;
8607
8626
  object.completedAtIsoDate = "";
8627
+ object.isFirstEdhsCompletion = false;
8608
8628
  }
8609
8629
  if (message.userId != null && message.hasOwnProperty("userId"))
8610
8630
  object.userId = message.userId;
@@ -8616,6 +8636,8 @@ $root.CompletedActivity = (function() {
8616
8636
  object.activityVariationId = message.activityVariationId;
8617
8637
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
8618
8638
  object.completedAtIsoDate = message.completedAtIsoDate;
8639
+ if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
8640
+ object.isFirstEdhsCompletion = message.isFirstEdhsCompletion;
8619
8641
  return object;
8620
8642
  };
8621
8643
 
@@ -10157,7 +10179,6 @@ $root.SurveyQuestion = (function() {
10157
10179
  * @exports ISurveyQuestion
10158
10180
  * @interface ISurveyQuestion
10159
10181
  * @property {string|null} [title] SurveyQuestion title
10160
- * @property {string|null} [shorthand] SurveyQuestion shorthand
10161
10182
  * @property {Array.<ISurveyAnswer>|null} [answers] SurveyQuestion answers
10162
10183
  */
10163
10184
 
@@ -10185,14 +10206,6 @@ $root.SurveyQuestion = (function() {
10185
10206
  */
10186
10207
  SurveyQuestion.prototype.title = "";
10187
10208
 
10188
- /**
10189
- * SurveyQuestion shorthand.
10190
- * @member {string} shorthand
10191
- * @memberof SurveyQuestion
10192
- * @instance
10193
- */
10194
- SurveyQuestion.prototype.shorthand = "";
10195
-
10196
10209
  /**
10197
10210
  * SurveyQuestion answers.
10198
10211
  * @member {Array.<ISurveyAnswer>} answers
@@ -10227,11 +10240,9 @@ $root.SurveyQuestion = (function() {
10227
10240
  writer = $Writer.create();
10228
10241
  if (message.title != null && message.hasOwnProperty("title"))
10229
10242
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
10230
- if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10231
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.shorthand);
10232
10243
  if (message.answers != null && message.answers.length)
10233
10244
  for (var i = 0; i < message.answers.length; ++i)
10234
- $root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
10245
+ $root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
10235
10246
  return writer;
10236
10247
  };
10237
10248
 
@@ -10270,9 +10281,6 @@ $root.SurveyQuestion = (function() {
10270
10281
  message.title = reader.string();
10271
10282
  break;
10272
10283
  case 2:
10273
- message.shorthand = reader.string();
10274
- break;
10275
- case 3:
10276
10284
  if (!(message.answers && message.answers.length))
10277
10285
  message.answers = [];
10278
10286
  message.answers.push($root.SurveyAnswer.decode(reader, reader.uint32()));
@@ -10315,9 +10323,6 @@ $root.SurveyQuestion = (function() {
10315
10323
  if (message.title != null && message.hasOwnProperty("title"))
10316
10324
  if (!$util.isString(message.title))
10317
10325
  return "title: string expected";
10318
- if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10319
- if (!$util.isString(message.shorthand))
10320
- return "shorthand: string expected";
10321
10326
  if (message.answers != null && message.hasOwnProperty("answers")) {
10322
10327
  if (!Array.isArray(message.answers))
10323
10328
  return "answers: array expected";
@@ -10344,8 +10349,6 @@ $root.SurveyQuestion = (function() {
10344
10349
  var message = new $root.SurveyQuestion();
10345
10350
  if (object.title != null)
10346
10351
  message.title = String(object.title);
10347
- if (object.shorthand != null)
10348
- message.shorthand = String(object.shorthand);
10349
10352
  if (object.answers) {
10350
10353
  if (!Array.isArray(object.answers))
10351
10354
  throw TypeError(".SurveyQuestion.answers: array expected");
@@ -10374,14 +10377,10 @@ $root.SurveyQuestion = (function() {
10374
10377
  var object = {};
10375
10378
  if (options.arrays || options.defaults)
10376
10379
  object.answers = [];
10377
- if (options.defaults) {
10380
+ if (options.defaults)
10378
10381
  object.title = "";
10379
- object.shorthand = "";
10380
- }
10381
10382
  if (message.title != null && message.hasOwnProperty("title"))
10382
10383
  object.title = message.title;
10383
- if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10384
- object.shorthand = message.shorthand;
10385
10384
  if (message.answers && message.answers.length) {
10386
10385
  object.answers = [];
10387
10386
  for (var j = 0; j < message.answers.length; ++j)
@@ -11796,6 +11795,7 @@ $root.IosSubscriptionCreated = (function() {
11796
11795
  * @property {number|Long|null} [endsAt] IosSubscriptionCreated endsAt
11797
11796
  * @property {number|Long|null} [startsAt] IosSubscriptionCreated startsAt
11798
11797
  * @property {string|null} [userId] IosSubscriptionCreated userId
11798
+ * @property {string|null} [productId] IosSubscriptionCreated productId
11799
11799
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionCreated tags
11800
11800
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionCreated terms
11801
11801
  */
@@ -11849,6 +11849,14 @@ $root.IosSubscriptionCreated = (function() {
11849
11849
  */
11850
11850
  IosSubscriptionCreated.prototype.userId = "";
11851
11851
 
11852
+ /**
11853
+ * IosSubscriptionCreated productId.
11854
+ * @member {string} productId
11855
+ * @memberof IosSubscriptionCreated
11856
+ * @instance
11857
+ */
11858
+ IosSubscriptionCreated.prototype.productId = "";
11859
+
11852
11860
  /**
11853
11861
  * IosSubscriptionCreated tags.
11854
11862
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -11906,6 +11914,8 @@ $root.IosSubscriptionCreated = (function() {
11906
11914
  if (message.terms != null && message.terms.length)
11907
11915
  for (var i = 0; i < message.terms.length; ++i)
11908
11916
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
11917
+ if (message.productId != null && message.hasOwnProperty("productId"))
11918
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
11909
11919
  return writer;
11910
11920
  };
11911
11921
 
@@ -11952,6 +11962,9 @@ $root.IosSubscriptionCreated = (function() {
11952
11962
  case 4:
11953
11963
  message.userId = reader.string();
11954
11964
  break;
11965
+ case 7:
11966
+ message.productId = reader.string();
11967
+ break;
11955
11968
  case 5:
11956
11969
  if (!(message.tags && message.tags.length))
11957
11970
  message.tags = [];
@@ -12014,6 +12027,9 @@ $root.IosSubscriptionCreated = (function() {
12014
12027
  if (message.userId != null && message.hasOwnProperty("userId"))
12015
12028
  if (!$util.isString(message.userId))
12016
12029
  return "userId: string expected";
12030
+ if (message.productId != null && message.hasOwnProperty("productId"))
12031
+ if (!$util.isString(message.productId))
12032
+ return "productId: string expected";
12017
12033
  if (message.tags != null && message.hasOwnProperty("tags")) {
12018
12034
  if (!Array.isArray(message.tags))
12019
12035
  return "tags: array expected";
@@ -12072,6 +12088,8 @@ $root.IosSubscriptionCreated = (function() {
12072
12088
  message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
12073
12089
  if (object.userId != null)
12074
12090
  message.userId = String(object.userId);
12091
+ if (object.productId != null)
12092
+ message.productId = String(object.productId);
12075
12093
  if (object.tags) {
12076
12094
  if (!Array.isArray(object.tags))
12077
12095
  throw TypeError(".IosSubscriptionCreated.tags: array expected");
@@ -12132,6 +12150,7 @@ $root.IosSubscriptionCreated = (function() {
12132
12150
  } else
12133
12151
  object.startsAt = options.longs === String ? "0" : 0;
12134
12152
  object.userId = "";
12153
+ object.productId = "";
12135
12154
  }
12136
12155
  if (message.id != null && message.hasOwnProperty("id"))
12137
12156
  object.id = message.id;
@@ -12157,6 +12176,8 @@ $root.IosSubscriptionCreated = (function() {
12157
12176
  for (var j = 0; j < message.terms.length; ++j)
12158
12177
  object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
12159
12178
  }
12179
+ if (message.productId != null && message.hasOwnProperty("productId"))
12180
+ object.productId = message.productId;
12160
12181
  return object;
12161
12182
  };
12162
12183
 
@@ -12184,6 +12205,7 @@ $root.IosSubscriptionRenewed = (function() {
12184
12205
  * @property {number|Long|null} [endsAt] IosSubscriptionRenewed endsAt
12185
12206
  * @property {number|Long|null} [startsAt] IosSubscriptionRenewed startsAt
12186
12207
  * @property {string|null} [userId] IosSubscriptionRenewed userId
12208
+ * @property {string|null} [productId] IosSubscriptionRenewed productId
12187
12209
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionRenewed tags
12188
12210
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionRenewed terms
12189
12211
  */
@@ -12237,6 +12259,14 @@ $root.IosSubscriptionRenewed = (function() {
12237
12259
  */
12238
12260
  IosSubscriptionRenewed.prototype.userId = "";
12239
12261
 
12262
+ /**
12263
+ * IosSubscriptionRenewed productId.
12264
+ * @member {string} productId
12265
+ * @memberof IosSubscriptionRenewed
12266
+ * @instance
12267
+ */
12268
+ IosSubscriptionRenewed.prototype.productId = "";
12269
+
12240
12270
  /**
12241
12271
  * IosSubscriptionRenewed tags.
12242
12272
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -12294,6 +12324,8 @@ $root.IosSubscriptionRenewed = (function() {
12294
12324
  if (message.terms != null && message.terms.length)
12295
12325
  for (var i = 0; i < message.terms.length; ++i)
12296
12326
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
12327
+ if (message.productId != null && message.hasOwnProperty("productId"))
12328
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
12297
12329
  return writer;
12298
12330
  };
12299
12331
 
@@ -12340,6 +12372,9 @@ $root.IosSubscriptionRenewed = (function() {
12340
12372
  case 4:
12341
12373
  message.userId = reader.string();
12342
12374
  break;
12375
+ case 7:
12376
+ message.productId = reader.string();
12377
+ break;
12343
12378
  case 5:
12344
12379
  if (!(message.tags && message.tags.length))
12345
12380
  message.tags = [];
@@ -12402,6 +12437,9 @@ $root.IosSubscriptionRenewed = (function() {
12402
12437
  if (message.userId != null && message.hasOwnProperty("userId"))
12403
12438
  if (!$util.isString(message.userId))
12404
12439
  return "userId: string expected";
12440
+ if (message.productId != null && message.hasOwnProperty("productId"))
12441
+ if (!$util.isString(message.productId))
12442
+ return "productId: string expected";
12405
12443
  if (message.tags != null && message.hasOwnProperty("tags")) {
12406
12444
  if (!Array.isArray(message.tags))
12407
12445
  return "tags: array expected";
@@ -12460,6 +12498,8 @@ $root.IosSubscriptionRenewed = (function() {
12460
12498
  message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
12461
12499
  if (object.userId != null)
12462
12500
  message.userId = String(object.userId);
12501
+ if (object.productId != null)
12502
+ message.productId = String(object.productId);
12463
12503
  if (object.tags) {
12464
12504
  if (!Array.isArray(object.tags))
12465
12505
  throw TypeError(".IosSubscriptionRenewed.tags: array expected");
@@ -12520,6 +12560,7 @@ $root.IosSubscriptionRenewed = (function() {
12520
12560
  } else
12521
12561
  object.startsAt = options.longs === String ? "0" : 0;
12522
12562
  object.userId = "";
12563
+ object.productId = "";
12523
12564
  }
12524
12565
  if (message.id != null && message.hasOwnProperty("id"))
12525
12566
  object.id = message.id;
@@ -12545,6 +12586,8 @@ $root.IosSubscriptionRenewed = (function() {
12545
12586
  for (var j = 0; j < message.terms.length; ++j)
12546
12587
  object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
12547
12588
  }
12589
+ if (message.productId != null && message.hasOwnProperty("productId"))
12590
+ object.productId = message.productId;
12548
12591
  return object;
12549
12592
  };
12550
12593
 
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.100.0"
19
+ "version": "1.102.0"
20
20
  }