@headspace/protos-events 1.71.0 → 1.73.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +118 -12
  2. package/lib/index.js +305 -56
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2027,8 +2027,14 @@ export namespace userdomain {
2027
2027
  /** User signupPlatform */
2028
2028
  signupPlatform?: (userdomain.Platform|null);
2029
2029
 
2030
- /** User registrationConnection */
2031
- registrationConnection?: (userdomain.Connection|null);
2030
+ /** User facebookId */
2031
+ facebookId?: (string|null);
2032
+
2033
+ /** User appleId */
2034
+ appleId?: (string|null);
2035
+
2036
+ /** User spotifyId */
2037
+ spotifyId?: (string|null);
2032
2038
  }
2033
2039
 
2034
2040
  /** Represents a User. */
@@ -2064,8 +2070,14 @@ export namespace userdomain {
2064
2070
  /** User signupPlatform. */
2065
2071
  public signupPlatform: userdomain.Platform;
2066
2072
 
2067
- /** User registrationConnection. */
2068
- public registrationConnection: userdomain.Connection;
2073
+ /** User facebookId. */
2074
+ public facebookId: string;
2075
+
2076
+ /** User appleId. */
2077
+ public appleId: string;
2078
+
2079
+ /** User spotifyId. */
2080
+ public spotifyId: string;
2069
2081
 
2070
2082
  /**
2071
2083
  * Creates a new User instance using the specified properties.
@@ -2147,14 +2159,6 @@ export namespace userdomain {
2147
2159
  ALEXA = 4,
2148
2160
  GOOGLE_ASSISTANT = 5
2149
2161
  }
2150
-
2151
- /** Connection enum. */
2152
- enum Connection {
2153
- UNKNOWN = 0,
2154
- EMAIL = 1,
2155
- FACEBOOK = 2,
2156
- SPOTIFY = 3
2157
- }
2158
2162
  }
2159
2163
 
2160
2164
  /** Properties of a UserRoleUpdated. */
@@ -4809,6 +4813,108 @@ export class ExperimentContentMapDeleted implements IExperimentContentMapDeleted
4809
4813
  public toJSON(): { [k: string]: any };
4810
4814
  }
4811
4815
 
4816
+ /** Properties of an AccessGroupCreated. */
4817
+ export interface IAccessGroupCreated {
4818
+
4819
+ /** AccessGroupCreated accessGroupName */
4820
+ accessGroupName?: (string|null);
4821
+
4822
+ /** AccessGroupCreated description */
4823
+ description?: (string|null);
4824
+
4825
+ /** AccessGroupCreated createdAt */
4826
+ createdAt?: (number|Long|null);
4827
+ }
4828
+
4829
+ /** Represents an AccessGroupCreated. */
4830
+ export class AccessGroupCreated implements IAccessGroupCreated {
4831
+
4832
+ /**
4833
+ * Constructs a new AccessGroupCreated.
4834
+ * @param [properties] Properties to set
4835
+ */
4836
+ constructor(properties?: IAccessGroupCreated);
4837
+
4838
+ /** AccessGroupCreated accessGroupName. */
4839
+ public accessGroupName: string;
4840
+
4841
+ /** AccessGroupCreated description. */
4842
+ public description: string;
4843
+
4844
+ /** AccessGroupCreated createdAt. */
4845
+ public createdAt: (number|Long);
4846
+
4847
+ /**
4848
+ * Creates a new AccessGroupCreated instance using the specified properties.
4849
+ * @param [properties] Properties to set
4850
+ * @returns AccessGroupCreated instance
4851
+ */
4852
+ public static create(properties?: IAccessGroupCreated): AccessGroupCreated;
4853
+
4854
+ /**
4855
+ * Encodes the specified AccessGroupCreated message. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
4856
+ * @param message AccessGroupCreated message or plain object to encode
4857
+ * @param [writer] Writer to encode to
4858
+ * @returns Writer
4859
+ */
4860
+ public static encode(message: IAccessGroupCreated, writer?: $protobuf.Writer): $protobuf.Writer;
4861
+
4862
+ /**
4863
+ * Encodes the specified AccessGroupCreated message, length delimited. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
4864
+ * @param message AccessGroupCreated message or plain object to encode
4865
+ * @param [writer] Writer to encode to
4866
+ * @returns Writer
4867
+ */
4868
+ public static encodeDelimited(message: IAccessGroupCreated, writer?: $protobuf.Writer): $protobuf.Writer;
4869
+
4870
+ /**
4871
+ * Decodes an AccessGroupCreated message from the specified reader or buffer.
4872
+ * @param reader Reader or buffer to decode from
4873
+ * @param [length] Message length if known beforehand
4874
+ * @returns AccessGroupCreated
4875
+ * @throws {Error} If the payload is not a reader or valid buffer
4876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4877
+ */
4878
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccessGroupCreated;
4879
+
4880
+ /**
4881
+ * Decodes an AccessGroupCreated message from the specified reader or buffer, length delimited.
4882
+ * @param reader Reader or buffer to decode from
4883
+ * @returns AccessGroupCreated
4884
+ * @throws {Error} If the payload is not a reader or valid buffer
4885
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4886
+ */
4887
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccessGroupCreated;
4888
+
4889
+ /**
4890
+ * Verifies an AccessGroupCreated message.
4891
+ * @param message Plain object to verify
4892
+ * @returns `null` if valid, otherwise the reason why it is not
4893
+ */
4894
+ public static verify(message: { [k: string]: any }): (string|null);
4895
+
4896
+ /**
4897
+ * Creates an AccessGroupCreated message from a plain object. Also converts values to their respective internal types.
4898
+ * @param object Plain object
4899
+ * @returns AccessGroupCreated
4900
+ */
4901
+ public static fromObject(object: { [k: string]: any }): AccessGroupCreated;
4902
+
4903
+ /**
4904
+ * Creates a plain object from an AccessGroupCreated message. Also converts values to other types if specified.
4905
+ * @param message AccessGroupCreated
4906
+ * @param [options] Conversion options
4907
+ * @returns Plain object
4908
+ */
4909
+ public static toObject(message: AccessGroupCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
4910
+
4911
+ /**
4912
+ * Converts this AccessGroupCreated to JSON.
4913
+ * @returns JSON object
4914
+ */
4915
+ public toJSON(): { [k: string]: any };
4916
+ }
4917
+
4812
4918
  /** Properties of a ReferralSignedUp. */
4813
4919
  export interface IReferralSignedUp {
4814
4920
 
package/lib/index.js CHANGED
@@ -4824,7 +4824,9 @@ $root.userdomain = (function() {
4824
4824
  * @property {string|null} [countryCode] User countryCode
4825
4825
  * @property {string|null} [stateCode] User stateCode
4826
4826
  * @property {userdomain.Platform|null} [signupPlatform] User signupPlatform
4827
- * @property {userdomain.Connection|null} [registrationConnection] User registrationConnection
4827
+ * @property {string|null} [facebookId] User facebookId
4828
+ * @property {string|null} [appleId] User appleId
4829
+ * @property {string|null} [spotifyId] User spotifyId
4828
4830
  */
4829
4831
 
4830
4832
  /**
@@ -4907,12 +4909,28 @@ $root.userdomain = (function() {
4907
4909
  User.prototype.signupPlatform = 0;
4908
4910
 
4909
4911
  /**
4910
- * User registrationConnection.
4911
- * @member {userdomain.Connection} registrationConnection
4912
+ * User facebookId.
4913
+ * @member {string} facebookId
4912
4914
  * @memberof userdomain.User
4913
4915
  * @instance
4914
4916
  */
4915
- User.prototype.registrationConnection = 0;
4917
+ User.prototype.facebookId = "";
4918
+
4919
+ /**
4920
+ * User appleId.
4921
+ * @member {string} appleId
4922
+ * @memberof userdomain.User
4923
+ * @instance
4924
+ */
4925
+ User.prototype.appleId = "";
4926
+
4927
+ /**
4928
+ * User spotifyId.
4929
+ * @member {string} spotifyId
4930
+ * @memberof userdomain.User
4931
+ * @instance
4932
+ */
4933
+ User.prototype.spotifyId = "";
4916
4934
 
4917
4935
  /**
4918
4936
  * Creates a new User instance using the specified properties.
@@ -4954,8 +4972,12 @@ $root.userdomain = (function() {
4954
4972
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
4955
4973
  if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
4956
4974
  writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
4957
- if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
4958
- writer.uint32(/* id 9, wireType 0 =*/72).int32(message.registrationConnection);
4975
+ if (message.facebookId != null && message.hasOwnProperty("facebookId"))
4976
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.facebookId);
4977
+ if (message.appleId != null && message.hasOwnProperty("appleId"))
4978
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.appleId);
4979
+ if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
4980
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.spotifyId);
4959
4981
  return writer;
4960
4982
  };
4961
4983
 
@@ -5015,7 +5037,13 @@ $root.userdomain = (function() {
5015
5037
  message.signupPlatform = reader.int32();
5016
5038
  break;
5017
5039
  case 9:
5018
- message.registrationConnection = reader.int32();
5040
+ message.facebookId = reader.string();
5041
+ break;
5042
+ case 10:
5043
+ message.appleId = reader.string();
5044
+ break;
5045
+ case 11:
5046
+ message.spotifyId = reader.string();
5019
5047
  break;
5020
5048
  default:
5021
5049
  reader.skipType(tag & 7);
@@ -5085,16 +5113,15 @@ $root.userdomain = (function() {
5085
5113
  case 5:
5086
5114
  break;
5087
5115
  }
5088
- if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
5089
- switch (message.registrationConnection) {
5090
- default:
5091
- return "registrationConnection: enum value expected";
5092
- case 0:
5093
- case 1:
5094
- case 2:
5095
- case 3:
5096
- break;
5097
- }
5116
+ if (message.facebookId != null && message.hasOwnProperty("facebookId"))
5117
+ if (!$util.isString(message.facebookId))
5118
+ return "facebookId: string expected";
5119
+ if (message.appleId != null && message.hasOwnProperty("appleId"))
5120
+ if (!$util.isString(message.appleId))
5121
+ return "appleId: string expected";
5122
+ if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
5123
+ if (!$util.isString(message.spotifyId))
5124
+ return "spotifyId: string expected";
5098
5125
  return null;
5099
5126
  };
5100
5127
 
@@ -5150,24 +5177,12 @@ $root.userdomain = (function() {
5150
5177
  message.signupPlatform = 5;
5151
5178
  break;
5152
5179
  }
5153
- switch (object.registrationConnection) {
5154
- case "UNKNOWN":
5155
- case 0:
5156
- message.registrationConnection = 0;
5157
- break;
5158
- case "EMAIL":
5159
- case 1:
5160
- message.registrationConnection = 1;
5161
- break;
5162
- case "FACEBOOK":
5163
- case 2:
5164
- message.registrationConnection = 2;
5165
- break;
5166
- case "SPOTIFY":
5167
- case 3:
5168
- message.registrationConnection = 3;
5169
- break;
5170
- }
5180
+ if (object.facebookId != null)
5181
+ message.facebookId = String(object.facebookId);
5182
+ if (object.appleId != null)
5183
+ message.appleId = String(object.appleId);
5184
+ if (object.spotifyId != null)
5185
+ message.spotifyId = String(object.spotifyId);
5171
5186
  return message;
5172
5187
  };
5173
5188
 
@@ -5193,7 +5208,9 @@ $root.userdomain = (function() {
5193
5208
  object.countryCode = "";
5194
5209
  object.stateCode = "";
5195
5210
  object.signupPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
5196
- object.registrationConnection = options.enums === String ? "UNKNOWN" : 0;
5211
+ object.facebookId = "";
5212
+ object.appleId = "";
5213
+ object.spotifyId = "";
5197
5214
  }
5198
5215
  if (message.hsId != null && message.hasOwnProperty("hsId"))
5199
5216
  object.hsId = message.hsId;
@@ -5211,8 +5228,12 @@ $root.userdomain = (function() {
5211
5228
  object.stateCode = message.stateCode;
5212
5229
  if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
5213
5230
  object.signupPlatform = options.enums === String ? $root.userdomain.Platform[message.signupPlatform] : message.signupPlatform;
5214
- if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
5215
- object.registrationConnection = options.enums === String ? $root.userdomain.Connection[message.registrationConnection] : message.registrationConnection;
5231
+ if (message.facebookId != null && message.hasOwnProperty("facebookId"))
5232
+ object.facebookId = message.facebookId;
5233
+ if (message.appleId != null && message.hasOwnProperty("appleId"))
5234
+ object.appleId = message.appleId;
5235
+ if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
5236
+ object.spotifyId = message.spotifyId;
5216
5237
  return object;
5217
5238
  };
5218
5239
 
@@ -5252,24 +5273,6 @@ $root.userdomain = (function() {
5252
5273
  return values;
5253
5274
  })();
5254
5275
 
5255
- /**
5256
- * Connection enum.
5257
- * @name userdomain.Connection
5258
- * @enum {string}
5259
- * @property {number} UNKNOWN=0 UNKNOWN value
5260
- * @property {number} EMAIL=1 EMAIL value
5261
- * @property {number} FACEBOOK=2 FACEBOOK value
5262
- * @property {number} SPOTIFY=3 SPOTIFY value
5263
- */
5264
- userdomain.Connection = (function() {
5265
- var valuesById = {}, values = Object.create(valuesById);
5266
- values[valuesById[0] = "UNKNOWN"] = 0;
5267
- values[valuesById[1] = "EMAIL"] = 1;
5268
- values[valuesById[2] = "FACEBOOK"] = 2;
5269
- values[valuesById[3] = "SPOTIFY"] = 3;
5270
- return values;
5271
- })();
5272
-
5273
5276
  return userdomain;
5274
5277
  })();
5275
5278
 
@@ -11741,6 +11744,252 @@ $root.ExperimentContentMapDeleted = (function() {
11741
11744
  return ExperimentContentMapDeleted;
11742
11745
  })();
11743
11746
 
11747
+ $root.AccessGroupCreated = (function() {
11748
+
11749
+ /**
11750
+ * Properties of an AccessGroupCreated.
11751
+ * @exports IAccessGroupCreated
11752
+ * @interface IAccessGroupCreated
11753
+ * @property {string|null} [accessGroupName] AccessGroupCreated accessGroupName
11754
+ * @property {string|null} [description] AccessGroupCreated description
11755
+ * @property {number|Long|null} [createdAt] AccessGroupCreated createdAt
11756
+ */
11757
+
11758
+ /**
11759
+ * Constructs a new AccessGroupCreated.
11760
+ * @exports AccessGroupCreated
11761
+ * @classdesc Represents an AccessGroupCreated.
11762
+ * @implements IAccessGroupCreated
11763
+ * @constructor
11764
+ * @param {IAccessGroupCreated=} [properties] Properties to set
11765
+ */
11766
+ function AccessGroupCreated(properties) {
11767
+ if (properties)
11768
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11769
+ if (properties[keys[i]] != null)
11770
+ this[keys[i]] = properties[keys[i]];
11771
+ }
11772
+
11773
+ /**
11774
+ * AccessGroupCreated accessGroupName.
11775
+ * @member {string} accessGroupName
11776
+ * @memberof AccessGroupCreated
11777
+ * @instance
11778
+ */
11779
+ AccessGroupCreated.prototype.accessGroupName = "";
11780
+
11781
+ /**
11782
+ * AccessGroupCreated description.
11783
+ * @member {string} description
11784
+ * @memberof AccessGroupCreated
11785
+ * @instance
11786
+ */
11787
+ AccessGroupCreated.prototype.description = "";
11788
+
11789
+ /**
11790
+ * AccessGroupCreated createdAt.
11791
+ * @member {number|Long} createdAt
11792
+ * @memberof AccessGroupCreated
11793
+ * @instance
11794
+ */
11795
+ AccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
11796
+
11797
+ /**
11798
+ * Creates a new AccessGroupCreated instance using the specified properties.
11799
+ * @function create
11800
+ * @memberof AccessGroupCreated
11801
+ * @static
11802
+ * @param {IAccessGroupCreated=} [properties] Properties to set
11803
+ * @returns {AccessGroupCreated} AccessGroupCreated instance
11804
+ */
11805
+ AccessGroupCreated.create = function create(properties) {
11806
+ return new AccessGroupCreated(properties);
11807
+ };
11808
+
11809
+ /**
11810
+ * Encodes the specified AccessGroupCreated message. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
11811
+ * @function encode
11812
+ * @memberof AccessGroupCreated
11813
+ * @static
11814
+ * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
11815
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11816
+ * @returns {$protobuf.Writer} Writer
11817
+ */
11818
+ AccessGroupCreated.encode = function encode(message, writer) {
11819
+ if (!writer)
11820
+ writer = $Writer.create();
11821
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
11822
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
11823
+ if (message.description != null && message.hasOwnProperty("description"))
11824
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
11825
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
11826
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
11827
+ return writer;
11828
+ };
11829
+
11830
+ /**
11831
+ * Encodes the specified AccessGroupCreated message, length delimited. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
11832
+ * @function encodeDelimited
11833
+ * @memberof AccessGroupCreated
11834
+ * @static
11835
+ * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
11836
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11837
+ * @returns {$protobuf.Writer} Writer
11838
+ */
11839
+ AccessGroupCreated.encodeDelimited = function encodeDelimited(message, writer) {
11840
+ return this.encode(message, writer).ldelim();
11841
+ };
11842
+
11843
+ /**
11844
+ * Decodes an AccessGroupCreated message from the specified reader or buffer.
11845
+ * @function decode
11846
+ * @memberof AccessGroupCreated
11847
+ * @static
11848
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11849
+ * @param {number} [length] Message length if known beforehand
11850
+ * @returns {AccessGroupCreated} AccessGroupCreated
11851
+ * @throws {Error} If the payload is not a reader or valid buffer
11852
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11853
+ */
11854
+ AccessGroupCreated.decode = function decode(reader, length) {
11855
+ if (!(reader instanceof $Reader))
11856
+ reader = $Reader.create(reader);
11857
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccessGroupCreated();
11858
+ while (reader.pos < end) {
11859
+ var tag = reader.uint32();
11860
+ switch (tag >>> 3) {
11861
+ case 1:
11862
+ message.accessGroupName = reader.string();
11863
+ break;
11864
+ case 2:
11865
+ message.description = reader.string();
11866
+ break;
11867
+ case 3:
11868
+ message.createdAt = reader.uint64();
11869
+ break;
11870
+ default:
11871
+ reader.skipType(tag & 7);
11872
+ break;
11873
+ }
11874
+ }
11875
+ return message;
11876
+ };
11877
+
11878
+ /**
11879
+ * Decodes an AccessGroupCreated message from the specified reader or buffer, length delimited.
11880
+ * @function decodeDelimited
11881
+ * @memberof AccessGroupCreated
11882
+ * @static
11883
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11884
+ * @returns {AccessGroupCreated} AccessGroupCreated
11885
+ * @throws {Error} If the payload is not a reader or valid buffer
11886
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11887
+ */
11888
+ AccessGroupCreated.decodeDelimited = function decodeDelimited(reader) {
11889
+ if (!(reader instanceof $Reader))
11890
+ reader = new $Reader(reader);
11891
+ return this.decode(reader, reader.uint32());
11892
+ };
11893
+
11894
+ /**
11895
+ * Verifies an AccessGroupCreated message.
11896
+ * @function verify
11897
+ * @memberof AccessGroupCreated
11898
+ * @static
11899
+ * @param {Object.<string,*>} message Plain object to verify
11900
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
11901
+ */
11902
+ AccessGroupCreated.verify = function verify(message) {
11903
+ if (typeof message !== "object" || message === null)
11904
+ return "object expected";
11905
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
11906
+ if (!$util.isString(message.accessGroupName))
11907
+ return "accessGroupName: string expected";
11908
+ if (message.description != null && message.hasOwnProperty("description"))
11909
+ if (!$util.isString(message.description))
11910
+ return "description: string expected";
11911
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
11912
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
11913
+ return "createdAt: integer|Long expected";
11914
+ return null;
11915
+ };
11916
+
11917
+ /**
11918
+ * Creates an AccessGroupCreated message from a plain object. Also converts values to their respective internal types.
11919
+ * @function fromObject
11920
+ * @memberof AccessGroupCreated
11921
+ * @static
11922
+ * @param {Object.<string,*>} object Plain object
11923
+ * @returns {AccessGroupCreated} AccessGroupCreated
11924
+ */
11925
+ AccessGroupCreated.fromObject = function fromObject(object) {
11926
+ if (object instanceof $root.AccessGroupCreated)
11927
+ return object;
11928
+ var message = new $root.AccessGroupCreated();
11929
+ if (object.accessGroupName != null)
11930
+ message.accessGroupName = String(object.accessGroupName);
11931
+ if (object.description != null)
11932
+ message.description = String(object.description);
11933
+ if (object.createdAt != null)
11934
+ if ($util.Long)
11935
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
11936
+ else if (typeof object.createdAt === "string")
11937
+ message.createdAt = parseInt(object.createdAt, 10);
11938
+ else if (typeof object.createdAt === "number")
11939
+ message.createdAt = object.createdAt;
11940
+ else if (typeof object.createdAt === "object")
11941
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
11942
+ return message;
11943
+ };
11944
+
11945
+ /**
11946
+ * Creates a plain object from an AccessGroupCreated message. Also converts values to other types if specified.
11947
+ * @function toObject
11948
+ * @memberof AccessGroupCreated
11949
+ * @static
11950
+ * @param {AccessGroupCreated} message AccessGroupCreated
11951
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11952
+ * @returns {Object.<string,*>} Plain object
11953
+ */
11954
+ AccessGroupCreated.toObject = function toObject(message, options) {
11955
+ if (!options)
11956
+ options = {};
11957
+ var object = {};
11958
+ if (options.defaults) {
11959
+ object.accessGroupName = "";
11960
+ object.description = "";
11961
+ if ($util.Long) {
11962
+ var long = new $util.Long(0, 0, true);
11963
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
11964
+ } else
11965
+ object.createdAt = options.longs === String ? "0" : 0;
11966
+ }
11967
+ if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
11968
+ object.accessGroupName = message.accessGroupName;
11969
+ if (message.description != null && message.hasOwnProperty("description"))
11970
+ object.description = message.description;
11971
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
11972
+ if (typeof message.createdAt === "number")
11973
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
11974
+ else
11975
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
11976
+ return object;
11977
+ };
11978
+
11979
+ /**
11980
+ * Converts this AccessGroupCreated to JSON.
11981
+ * @function toJSON
11982
+ * @memberof AccessGroupCreated
11983
+ * @instance
11984
+ * @returns {Object.<string,*>} JSON object
11985
+ */
11986
+ AccessGroupCreated.prototype.toJSON = function toJSON() {
11987
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11988
+ };
11989
+
11990
+ return AccessGroupCreated;
11991
+ })();
11992
+
11744
11993
  $root.ReferralSignedUp = (function() {
11745
11994
 
11746
11995
  /**
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.71.0"
19
+ "version": "1.73.0"
20
20
  }