@headspace/protos-events 1.102.0 → 1.103.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 +96 -0
- package/lib/index.js +224 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10724,3 +10724,99 @@ export class UserEmailMarketingSubscriptionStatusUpdated implements IUserEmailMa
|
|
|
10724
10724
|
*/
|
|
10725
10725
|
public toJSON(): { [k: string]: any };
|
|
10726
10726
|
}
|
|
10727
|
+
|
|
10728
|
+
/** Properties of a UserUnsubscribeRequested. */
|
|
10729
|
+
export interface IUserUnsubscribeRequested {
|
|
10730
|
+
|
|
10731
|
+
/** UserUnsubscribeRequested userId */
|
|
10732
|
+
userId?: (string|null);
|
|
10733
|
+
|
|
10734
|
+
/** UserUnsubscribeRequested timestamp */
|
|
10735
|
+
timestamp?: (number|Long|null);
|
|
10736
|
+
}
|
|
10737
|
+
|
|
10738
|
+
/** Represents a UserUnsubscribeRequested. */
|
|
10739
|
+
export class UserUnsubscribeRequested implements IUserUnsubscribeRequested {
|
|
10740
|
+
|
|
10741
|
+
/**
|
|
10742
|
+
* Constructs a new UserUnsubscribeRequested.
|
|
10743
|
+
* @param [properties] Properties to set
|
|
10744
|
+
*/
|
|
10745
|
+
constructor(properties?: IUserUnsubscribeRequested);
|
|
10746
|
+
|
|
10747
|
+
/** UserUnsubscribeRequested userId. */
|
|
10748
|
+
public userId: string;
|
|
10749
|
+
|
|
10750
|
+
/** UserUnsubscribeRequested timestamp. */
|
|
10751
|
+
public timestamp: (number|Long);
|
|
10752
|
+
|
|
10753
|
+
/**
|
|
10754
|
+
* Creates a new UserUnsubscribeRequested instance using the specified properties.
|
|
10755
|
+
* @param [properties] Properties to set
|
|
10756
|
+
* @returns UserUnsubscribeRequested instance
|
|
10757
|
+
*/
|
|
10758
|
+
public static create(properties?: IUserUnsubscribeRequested): UserUnsubscribeRequested;
|
|
10759
|
+
|
|
10760
|
+
/**
|
|
10761
|
+
* Encodes the specified UserUnsubscribeRequested message. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
|
|
10762
|
+
* @param message UserUnsubscribeRequested message or plain object to encode
|
|
10763
|
+
* @param [writer] Writer to encode to
|
|
10764
|
+
* @returns Writer
|
|
10765
|
+
*/
|
|
10766
|
+
public static encode(message: IUserUnsubscribeRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10767
|
+
|
|
10768
|
+
/**
|
|
10769
|
+
* Encodes the specified UserUnsubscribeRequested message, length delimited. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
|
|
10770
|
+
* @param message UserUnsubscribeRequested message or plain object to encode
|
|
10771
|
+
* @param [writer] Writer to encode to
|
|
10772
|
+
* @returns Writer
|
|
10773
|
+
*/
|
|
10774
|
+
public static encodeDelimited(message: IUserUnsubscribeRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10775
|
+
|
|
10776
|
+
/**
|
|
10777
|
+
* Decodes a UserUnsubscribeRequested message from the specified reader or buffer.
|
|
10778
|
+
* @param reader Reader or buffer to decode from
|
|
10779
|
+
* @param [length] Message length if known beforehand
|
|
10780
|
+
* @returns UserUnsubscribeRequested
|
|
10781
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10782
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10783
|
+
*/
|
|
10784
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserUnsubscribeRequested;
|
|
10785
|
+
|
|
10786
|
+
/**
|
|
10787
|
+
* Decodes a UserUnsubscribeRequested message from the specified reader or buffer, length delimited.
|
|
10788
|
+
* @param reader Reader or buffer to decode from
|
|
10789
|
+
* @returns UserUnsubscribeRequested
|
|
10790
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10791
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10792
|
+
*/
|
|
10793
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserUnsubscribeRequested;
|
|
10794
|
+
|
|
10795
|
+
/**
|
|
10796
|
+
* Verifies a UserUnsubscribeRequested message.
|
|
10797
|
+
* @param message Plain object to verify
|
|
10798
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10799
|
+
*/
|
|
10800
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10801
|
+
|
|
10802
|
+
/**
|
|
10803
|
+
* Creates a UserUnsubscribeRequested message from a plain object. Also converts values to their respective internal types.
|
|
10804
|
+
* @param object Plain object
|
|
10805
|
+
* @returns UserUnsubscribeRequested
|
|
10806
|
+
*/
|
|
10807
|
+
public static fromObject(object: { [k: string]: any }): UserUnsubscribeRequested;
|
|
10808
|
+
|
|
10809
|
+
/**
|
|
10810
|
+
* Creates a plain object from a UserUnsubscribeRequested message. Also converts values to other types if specified.
|
|
10811
|
+
* @param message UserUnsubscribeRequested
|
|
10812
|
+
* @param [options] Conversion options
|
|
10813
|
+
* @returns Plain object
|
|
10814
|
+
*/
|
|
10815
|
+
public static toObject(message: UserUnsubscribeRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10816
|
+
|
|
10817
|
+
/**
|
|
10818
|
+
* Converts this UserUnsubscribeRequested to JSON.
|
|
10819
|
+
* @returns JSON object
|
|
10820
|
+
*/
|
|
10821
|
+
public toJSON(): { [k: string]: any };
|
|
10822
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -28744,4 +28744,228 @@ $root.UserEmailMarketingSubscriptionStatusUpdated = (function() {
|
|
|
28744
28744
|
return UserEmailMarketingSubscriptionStatusUpdated;
|
|
28745
28745
|
})();
|
|
28746
28746
|
|
|
28747
|
+
$root.UserUnsubscribeRequested = (function() {
|
|
28748
|
+
|
|
28749
|
+
/**
|
|
28750
|
+
* Properties of a UserUnsubscribeRequested.
|
|
28751
|
+
* @exports IUserUnsubscribeRequested
|
|
28752
|
+
* @interface IUserUnsubscribeRequested
|
|
28753
|
+
* @property {string|null} [userId] UserUnsubscribeRequested userId
|
|
28754
|
+
* @property {number|Long|null} [timestamp] UserUnsubscribeRequested timestamp
|
|
28755
|
+
*/
|
|
28756
|
+
|
|
28757
|
+
/**
|
|
28758
|
+
* Constructs a new UserUnsubscribeRequested.
|
|
28759
|
+
* @exports UserUnsubscribeRequested
|
|
28760
|
+
* @classdesc Represents a UserUnsubscribeRequested.
|
|
28761
|
+
* @implements IUserUnsubscribeRequested
|
|
28762
|
+
* @constructor
|
|
28763
|
+
* @param {IUserUnsubscribeRequested=} [properties] Properties to set
|
|
28764
|
+
*/
|
|
28765
|
+
function UserUnsubscribeRequested(properties) {
|
|
28766
|
+
if (properties)
|
|
28767
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28768
|
+
if (properties[keys[i]] != null)
|
|
28769
|
+
this[keys[i]] = properties[keys[i]];
|
|
28770
|
+
}
|
|
28771
|
+
|
|
28772
|
+
/**
|
|
28773
|
+
* UserUnsubscribeRequested userId.
|
|
28774
|
+
* @member {string} userId
|
|
28775
|
+
* @memberof UserUnsubscribeRequested
|
|
28776
|
+
* @instance
|
|
28777
|
+
*/
|
|
28778
|
+
UserUnsubscribeRequested.prototype.userId = "";
|
|
28779
|
+
|
|
28780
|
+
/**
|
|
28781
|
+
* UserUnsubscribeRequested timestamp.
|
|
28782
|
+
* @member {number|Long} timestamp
|
|
28783
|
+
* @memberof UserUnsubscribeRequested
|
|
28784
|
+
* @instance
|
|
28785
|
+
*/
|
|
28786
|
+
UserUnsubscribeRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
28787
|
+
|
|
28788
|
+
/**
|
|
28789
|
+
* Creates a new UserUnsubscribeRequested instance using the specified properties.
|
|
28790
|
+
* @function create
|
|
28791
|
+
* @memberof UserUnsubscribeRequested
|
|
28792
|
+
* @static
|
|
28793
|
+
* @param {IUserUnsubscribeRequested=} [properties] Properties to set
|
|
28794
|
+
* @returns {UserUnsubscribeRequested} UserUnsubscribeRequested instance
|
|
28795
|
+
*/
|
|
28796
|
+
UserUnsubscribeRequested.create = function create(properties) {
|
|
28797
|
+
return new UserUnsubscribeRequested(properties);
|
|
28798
|
+
};
|
|
28799
|
+
|
|
28800
|
+
/**
|
|
28801
|
+
* Encodes the specified UserUnsubscribeRequested message. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
|
|
28802
|
+
* @function encode
|
|
28803
|
+
* @memberof UserUnsubscribeRequested
|
|
28804
|
+
* @static
|
|
28805
|
+
* @param {IUserUnsubscribeRequested} message UserUnsubscribeRequested message or plain object to encode
|
|
28806
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28807
|
+
* @returns {$protobuf.Writer} Writer
|
|
28808
|
+
*/
|
|
28809
|
+
UserUnsubscribeRequested.encode = function encode(message, writer) {
|
|
28810
|
+
if (!writer)
|
|
28811
|
+
writer = $Writer.create();
|
|
28812
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
28813
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
28814
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
28815
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
28816
|
+
return writer;
|
|
28817
|
+
};
|
|
28818
|
+
|
|
28819
|
+
/**
|
|
28820
|
+
* Encodes the specified UserUnsubscribeRequested message, length delimited. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
|
|
28821
|
+
* @function encodeDelimited
|
|
28822
|
+
* @memberof UserUnsubscribeRequested
|
|
28823
|
+
* @static
|
|
28824
|
+
* @param {IUserUnsubscribeRequested} message UserUnsubscribeRequested message or plain object to encode
|
|
28825
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28826
|
+
* @returns {$protobuf.Writer} Writer
|
|
28827
|
+
*/
|
|
28828
|
+
UserUnsubscribeRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28829
|
+
return this.encode(message, writer).ldelim();
|
|
28830
|
+
};
|
|
28831
|
+
|
|
28832
|
+
/**
|
|
28833
|
+
* Decodes a UserUnsubscribeRequested message from the specified reader or buffer.
|
|
28834
|
+
* @function decode
|
|
28835
|
+
* @memberof UserUnsubscribeRequested
|
|
28836
|
+
* @static
|
|
28837
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28838
|
+
* @param {number} [length] Message length if known beforehand
|
|
28839
|
+
* @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
|
|
28840
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28841
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28842
|
+
*/
|
|
28843
|
+
UserUnsubscribeRequested.decode = function decode(reader, length) {
|
|
28844
|
+
if (!(reader instanceof $Reader))
|
|
28845
|
+
reader = $Reader.create(reader);
|
|
28846
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserUnsubscribeRequested();
|
|
28847
|
+
while (reader.pos < end) {
|
|
28848
|
+
var tag = reader.uint32();
|
|
28849
|
+
switch (tag >>> 3) {
|
|
28850
|
+
case 1:
|
|
28851
|
+
message.userId = reader.string();
|
|
28852
|
+
break;
|
|
28853
|
+
case 2:
|
|
28854
|
+
message.timestamp = reader.uint64();
|
|
28855
|
+
break;
|
|
28856
|
+
default:
|
|
28857
|
+
reader.skipType(tag & 7);
|
|
28858
|
+
break;
|
|
28859
|
+
}
|
|
28860
|
+
}
|
|
28861
|
+
return message;
|
|
28862
|
+
};
|
|
28863
|
+
|
|
28864
|
+
/**
|
|
28865
|
+
* Decodes a UserUnsubscribeRequested message from the specified reader or buffer, length delimited.
|
|
28866
|
+
* @function decodeDelimited
|
|
28867
|
+
* @memberof UserUnsubscribeRequested
|
|
28868
|
+
* @static
|
|
28869
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28870
|
+
* @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
|
|
28871
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28872
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28873
|
+
*/
|
|
28874
|
+
UserUnsubscribeRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
28875
|
+
if (!(reader instanceof $Reader))
|
|
28876
|
+
reader = new $Reader(reader);
|
|
28877
|
+
return this.decode(reader, reader.uint32());
|
|
28878
|
+
};
|
|
28879
|
+
|
|
28880
|
+
/**
|
|
28881
|
+
* Verifies a UserUnsubscribeRequested message.
|
|
28882
|
+
* @function verify
|
|
28883
|
+
* @memberof UserUnsubscribeRequested
|
|
28884
|
+
* @static
|
|
28885
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28886
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28887
|
+
*/
|
|
28888
|
+
UserUnsubscribeRequested.verify = function verify(message) {
|
|
28889
|
+
if (typeof message !== "object" || message === null)
|
|
28890
|
+
return "object expected";
|
|
28891
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
28892
|
+
if (!$util.isString(message.userId))
|
|
28893
|
+
return "userId: string expected";
|
|
28894
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
28895
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
28896
|
+
return "timestamp: integer|Long expected";
|
|
28897
|
+
return null;
|
|
28898
|
+
};
|
|
28899
|
+
|
|
28900
|
+
/**
|
|
28901
|
+
* Creates a UserUnsubscribeRequested message from a plain object. Also converts values to their respective internal types.
|
|
28902
|
+
* @function fromObject
|
|
28903
|
+
* @memberof UserUnsubscribeRequested
|
|
28904
|
+
* @static
|
|
28905
|
+
* @param {Object.<string,*>} object Plain object
|
|
28906
|
+
* @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
|
|
28907
|
+
*/
|
|
28908
|
+
UserUnsubscribeRequested.fromObject = function fromObject(object) {
|
|
28909
|
+
if (object instanceof $root.UserUnsubscribeRequested)
|
|
28910
|
+
return object;
|
|
28911
|
+
var message = new $root.UserUnsubscribeRequested();
|
|
28912
|
+
if (object.userId != null)
|
|
28913
|
+
message.userId = String(object.userId);
|
|
28914
|
+
if (object.timestamp != null)
|
|
28915
|
+
if ($util.Long)
|
|
28916
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
28917
|
+
else if (typeof object.timestamp === "string")
|
|
28918
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
28919
|
+
else if (typeof object.timestamp === "number")
|
|
28920
|
+
message.timestamp = object.timestamp;
|
|
28921
|
+
else if (typeof object.timestamp === "object")
|
|
28922
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
28923
|
+
return message;
|
|
28924
|
+
};
|
|
28925
|
+
|
|
28926
|
+
/**
|
|
28927
|
+
* Creates a plain object from a UserUnsubscribeRequested message. Also converts values to other types if specified.
|
|
28928
|
+
* @function toObject
|
|
28929
|
+
* @memberof UserUnsubscribeRequested
|
|
28930
|
+
* @static
|
|
28931
|
+
* @param {UserUnsubscribeRequested} message UserUnsubscribeRequested
|
|
28932
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28933
|
+
* @returns {Object.<string,*>} Plain object
|
|
28934
|
+
*/
|
|
28935
|
+
UserUnsubscribeRequested.toObject = function toObject(message, options) {
|
|
28936
|
+
if (!options)
|
|
28937
|
+
options = {};
|
|
28938
|
+
var object = {};
|
|
28939
|
+
if (options.defaults) {
|
|
28940
|
+
object.userId = "";
|
|
28941
|
+
if ($util.Long) {
|
|
28942
|
+
var long = new $util.Long(0, 0, true);
|
|
28943
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
28944
|
+
} else
|
|
28945
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
28946
|
+
}
|
|
28947
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
28948
|
+
object.userId = message.userId;
|
|
28949
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
28950
|
+
if (typeof message.timestamp === "number")
|
|
28951
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
28952
|
+
else
|
|
28953
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
28954
|
+
return object;
|
|
28955
|
+
};
|
|
28956
|
+
|
|
28957
|
+
/**
|
|
28958
|
+
* Converts this UserUnsubscribeRequested to JSON.
|
|
28959
|
+
* @function toJSON
|
|
28960
|
+
* @memberof UserUnsubscribeRequested
|
|
28961
|
+
* @instance
|
|
28962
|
+
* @returns {Object.<string,*>} JSON object
|
|
28963
|
+
*/
|
|
28964
|
+
UserUnsubscribeRequested.prototype.toJSON = function toJSON() {
|
|
28965
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28966
|
+
};
|
|
28967
|
+
|
|
28968
|
+
return UserUnsubscribeRequested;
|
|
28969
|
+
})();
|
|
28970
|
+
|
|
28747
28971
|
module.exports = $root;
|
package/package.json
CHANGED