@headspace/protos-events 1.72.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.
package/lib/index.d.ts CHANGED
@@ -4813,6 +4813,108 @@ export class ExperimentContentMapDeleted implements IExperimentContentMapDeleted
4813
4813
  public toJSON(): { [k: string]: any };
4814
4814
  }
4815
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
+
4816
4918
  /** Properties of a ReferralSignedUp. */
4817
4919
  export interface IReferralSignedUp {
4818
4920
 
package/lib/index.js CHANGED
@@ -11744,6 +11744,252 @@ $root.ExperimentContentMapDeleted = (function() {
11744
11744
  return ExperimentContentMapDeleted;
11745
11745
  })();
11746
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
+
11747
11993
  $root.ReferralSignedUp = (function() {
11748
11994
 
11749
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.72.0"
19
+ "version": "1.73.0"
20
20
  }