@headspace/protos-events 1.14.0 → 1.15.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 -90
- package/lib/index.js +209 -187
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2492,96 +2492,6 @@ export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined
|
|
|
2492
2492
|
public toJSON(): { [k: string]: any };
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
2495
|
-
/** Properties of a UserDoubleOptInEmailRequested. */
|
|
2496
|
-
export interface IUserDoubleOptInEmailRequested {
|
|
2497
|
-
|
|
2498
|
-
/** UserDoubleOptInEmailRequested userId */
|
|
2499
|
-
userId?: (string|null);
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
/** Represents a UserDoubleOptInEmailRequested. */
|
|
2503
|
-
export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailRequested {
|
|
2504
|
-
|
|
2505
|
-
/**
|
|
2506
|
-
* Constructs a new UserDoubleOptInEmailRequested.
|
|
2507
|
-
* @param [properties] Properties to set
|
|
2508
|
-
*/
|
|
2509
|
-
constructor(properties?: IUserDoubleOptInEmailRequested);
|
|
2510
|
-
|
|
2511
|
-
/** UserDoubleOptInEmailRequested userId. */
|
|
2512
|
-
public userId: string;
|
|
2513
|
-
|
|
2514
|
-
/**
|
|
2515
|
-
* Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
|
|
2516
|
-
* @param [properties] Properties to set
|
|
2517
|
-
* @returns UserDoubleOptInEmailRequested instance
|
|
2518
|
-
*/
|
|
2519
|
-
public static create(properties?: IUserDoubleOptInEmailRequested): UserDoubleOptInEmailRequested;
|
|
2520
|
-
|
|
2521
|
-
/**
|
|
2522
|
-
* Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
|
|
2523
|
-
* @param message UserDoubleOptInEmailRequested message or plain object to encode
|
|
2524
|
-
* @param [writer] Writer to encode to
|
|
2525
|
-
* @returns Writer
|
|
2526
|
-
*/
|
|
2527
|
-
public static encode(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2528
|
-
|
|
2529
|
-
/**
|
|
2530
|
-
* Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
|
|
2531
|
-
* @param message UserDoubleOptInEmailRequested message or plain object to encode
|
|
2532
|
-
* @param [writer] Writer to encode to
|
|
2533
|
-
* @returns Writer
|
|
2534
|
-
*/
|
|
2535
|
-
public static encodeDelimited(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2536
|
-
|
|
2537
|
-
/**
|
|
2538
|
-
* Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
|
|
2539
|
-
* @param reader Reader or buffer to decode from
|
|
2540
|
-
* @param [length] Message length if known beforehand
|
|
2541
|
-
* @returns UserDoubleOptInEmailRequested
|
|
2542
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2543
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2544
|
-
*/
|
|
2545
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDoubleOptInEmailRequested;
|
|
2546
|
-
|
|
2547
|
-
/**
|
|
2548
|
-
* Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
|
|
2549
|
-
* @param reader Reader or buffer to decode from
|
|
2550
|
-
* @returns UserDoubleOptInEmailRequested
|
|
2551
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2552
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2553
|
-
*/
|
|
2554
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDoubleOptInEmailRequested;
|
|
2555
|
-
|
|
2556
|
-
/**
|
|
2557
|
-
* Verifies a UserDoubleOptInEmailRequested message.
|
|
2558
|
-
* @param message Plain object to verify
|
|
2559
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
2560
|
-
*/
|
|
2561
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
2562
|
-
|
|
2563
|
-
/**
|
|
2564
|
-
* Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
|
|
2565
|
-
* @param object Plain object
|
|
2566
|
-
* @returns UserDoubleOptInEmailRequested
|
|
2567
|
-
*/
|
|
2568
|
-
public static fromObject(object: { [k: string]: any }): UserDoubleOptInEmailRequested;
|
|
2569
|
-
|
|
2570
|
-
/**
|
|
2571
|
-
* Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
|
|
2572
|
-
* @param message UserDoubleOptInEmailRequested
|
|
2573
|
-
* @param [options] Conversion options
|
|
2574
|
-
* @returns Plain object
|
|
2575
|
-
*/
|
|
2576
|
-
public static toObject(message: UserDoubleOptInEmailRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2577
|
-
|
|
2578
|
-
/**
|
|
2579
|
-
* Converts this UserDoubleOptInEmailRequested to JSON.
|
|
2580
|
-
* @returns JSON object
|
|
2581
|
-
*/
|
|
2582
|
-
public toJSON(): { [k: string]: any };
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
2495
|
/** Properties of a UserEmailUpdated. */
|
|
2586
2496
|
export interface IUserEmailUpdated {
|
|
2587
2497
|
|
|
@@ -2695,6 +2605,9 @@ export interface IUserEmailVerificationRequested {
|
|
|
2695
2605
|
|
|
2696
2606
|
/** UserEmailVerificationRequested timestamp */
|
|
2697
2607
|
timestamp?: (number|Long|null);
|
|
2608
|
+
|
|
2609
|
+
/** UserEmailVerificationRequested optIn */
|
|
2610
|
+
optIn?: (boolean|null);
|
|
2698
2611
|
}
|
|
2699
2612
|
|
|
2700
2613
|
/** Represents a UserEmailVerificationRequested. */
|
|
@@ -2715,6 +2628,9 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
|
|
|
2715
2628
|
/** UserEmailVerificationRequested timestamp. */
|
|
2716
2629
|
public timestamp: (number|Long);
|
|
2717
2630
|
|
|
2631
|
+
/** UserEmailVerificationRequested optIn. */
|
|
2632
|
+
public optIn: boolean;
|
|
2633
|
+
|
|
2718
2634
|
/**
|
|
2719
2635
|
* Creates a new UserEmailVerificationRequested instance using the specified properties.
|
|
2720
2636
|
* @param [properties] Properties to set
|
|
@@ -2887,3 +2803,93 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
|
|
|
2887
2803
|
*/
|
|
2888
2804
|
public toJSON(): { [k: string]: any };
|
|
2889
2805
|
}
|
|
2806
|
+
|
|
2807
|
+
/** Properties of a UserEmailMarketingOptedIn. */
|
|
2808
|
+
export interface IUserEmailMarketingOptedIn {
|
|
2809
|
+
|
|
2810
|
+
/** UserEmailMarketingOptedIn userId */
|
|
2811
|
+
userId?: (string|null);
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
/** Represents a UserEmailMarketingOptedIn. */
|
|
2815
|
+
export class UserEmailMarketingOptedIn implements IUserEmailMarketingOptedIn {
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* Constructs a new UserEmailMarketingOptedIn.
|
|
2819
|
+
* @param [properties] Properties to set
|
|
2820
|
+
*/
|
|
2821
|
+
constructor(properties?: IUserEmailMarketingOptedIn);
|
|
2822
|
+
|
|
2823
|
+
/** UserEmailMarketingOptedIn userId. */
|
|
2824
|
+
public userId: string;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* Creates a new UserEmailMarketingOptedIn instance using the specified properties.
|
|
2828
|
+
* @param [properties] Properties to set
|
|
2829
|
+
* @returns UserEmailMarketingOptedIn instance
|
|
2830
|
+
*/
|
|
2831
|
+
public static create(properties?: IUserEmailMarketingOptedIn): UserEmailMarketingOptedIn;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Encodes the specified UserEmailMarketingOptedIn message. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
|
|
2835
|
+
* @param message UserEmailMarketingOptedIn message or plain object to encode
|
|
2836
|
+
* @param [writer] Writer to encode to
|
|
2837
|
+
* @returns Writer
|
|
2838
|
+
*/
|
|
2839
|
+
public static encode(message: IUserEmailMarketingOptedIn, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* Encodes the specified UserEmailMarketingOptedIn message, length delimited. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
|
|
2843
|
+
* @param message UserEmailMarketingOptedIn message or plain object to encode
|
|
2844
|
+
* @param [writer] Writer to encode to
|
|
2845
|
+
* @returns Writer
|
|
2846
|
+
*/
|
|
2847
|
+
public static encodeDelimited(message: IUserEmailMarketingOptedIn, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer.
|
|
2851
|
+
* @param reader Reader or buffer to decode from
|
|
2852
|
+
* @param [length] Message length if known beforehand
|
|
2853
|
+
* @returns UserEmailMarketingOptedIn
|
|
2854
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2855
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2856
|
+
*/
|
|
2857
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailMarketingOptedIn;
|
|
2858
|
+
|
|
2859
|
+
/**
|
|
2860
|
+
* Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer, length delimited.
|
|
2861
|
+
* @param reader Reader or buffer to decode from
|
|
2862
|
+
* @returns UserEmailMarketingOptedIn
|
|
2863
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2864
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2865
|
+
*/
|
|
2866
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailMarketingOptedIn;
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* Verifies a UserEmailMarketingOptedIn message.
|
|
2870
|
+
* @param message Plain object to verify
|
|
2871
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2872
|
+
*/
|
|
2873
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2874
|
+
|
|
2875
|
+
/**
|
|
2876
|
+
* Creates a UserEmailMarketingOptedIn message from a plain object. Also converts values to their respective internal types.
|
|
2877
|
+
* @param object Plain object
|
|
2878
|
+
* @returns UserEmailMarketingOptedIn
|
|
2879
|
+
*/
|
|
2880
|
+
public static fromObject(object: { [k: string]: any }): UserEmailMarketingOptedIn;
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Creates a plain object from a UserEmailMarketingOptedIn message. Also converts values to other types if specified.
|
|
2884
|
+
* @param message UserEmailMarketingOptedIn
|
|
2885
|
+
* @param [options] Conversion options
|
|
2886
|
+
* @returns Plain object
|
|
2887
|
+
*/
|
|
2888
|
+
public static toObject(message: UserEmailMarketingOptedIn, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* Converts this UserEmailMarketingOptedIn to JSON.
|
|
2892
|
+
* @returns JSON object
|
|
2893
|
+
*/
|
|
2894
|
+
public toJSON(): { [k: string]: any };
|
|
2895
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -6061,193 +6061,6 @@ $root.SubscriptionPaymentDeclined = (function() {
|
|
|
6061
6061
|
return SubscriptionPaymentDeclined;
|
|
6062
6062
|
})();
|
|
6063
6063
|
|
|
6064
|
-
$root.UserDoubleOptInEmailRequested = (function() {
|
|
6065
|
-
|
|
6066
|
-
/**
|
|
6067
|
-
* Properties of a UserDoubleOptInEmailRequested.
|
|
6068
|
-
* @exports IUserDoubleOptInEmailRequested
|
|
6069
|
-
* @interface IUserDoubleOptInEmailRequested
|
|
6070
|
-
* @property {string|null} [userId] UserDoubleOptInEmailRequested userId
|
|
6071
|
-
*/
|
|
6072
|
-
|
|
6073
|
-
/**
|
|
6074
|
-
* Constructs a new UserDoubleOptInEmailRequested.
|
|
6075
|
-
* @exports UserDoubleOptInEmailRequested
|
|
6076
|
-
* @classdesc Represents a UserDoubleOptInEmailRequested.
|
|
6077
|
-
* @implements IUserDoubleOptInEmailRequested
|
|
6078
|
-
* @constructor
|
|
6079
|
-
* @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
|
|
6080
|
-
*/
|
|
6081
|
-
function UserDoubleOptInEmailRequested(properties) {
|
|
6082
|
-
if (properties)
|
|
6083
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6084
|
-
if (properties[keys[i]] != null)
|
|
6085
|
-
this[keys[i]] = properties[keys[i]];
|
|
6086
|
-
}
|
|
6087
|
-
|
|
6088
|
-
/**
|
|
6089
|
-
* UserDoubleOptInEmailRequested userId.
|
|
6090
|
-
* @member {string} userId
|
|
6091
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6092
|
-
* @instance
|
|
6093
|
-
*/
|
|
6094
|
-
UserDoubleOptInEmailRequested.prototype.userId = "";
|
|
6095
|
-
|
|
6096
|
-
/**
|
|
6097
|
-
* Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
|
|
6098
|
-
* @function create
|
|
6099
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6100
|
-
* @static
|
|
6101
|
-
* @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
|
|
6102
|
-
* @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested instance
|
|
6103
|
-
*/
|
|
6104
|
-
UserDoubleOptInEmailRequested.create = function create(properties) {
|
|
6105
|
-
return new UserDoubleOptInEmailRequested(properties);
|
|
6106
|
-
};
|
|
6107
|
-
|
|
6108
|
-
/**
|
|
6109
|
-
* Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
|
|
6110
|
-
* @function encode
|
|
6111
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6112
|
-
* @static
|
|
6113
|
-
* @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
|
|
6114
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6115
|
-
* @returns {$protobuf.Writer} Writer
|
|
6116
|
-
*/
|
|
6117
|
-
UserDoubleOptInEmailRequested.encode = function encode(message, writer) {
|
|
6118
|
-
if (!writer)
|
|
6119
|
-
writer = $Writer.create();
|
|
6120
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6121
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
6122
|
-
return writer;
|
|
6123
|
-
};
|
|
6124
|
-
|
|
6125
|
-
/**
|
|
6126
|
-
* Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
|
|
6127
|
-
* @function encodeDelimited
|
|
6128
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6129
|
-
* @static
|
|
6130
|
-
* @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
|
|
6131
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6132
|
-
* @returns {$protobuf.Writer} Writer
|
|
6133
|
-
*/
|
|
6134
|
-
UserDoubleOptInEmailRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6135
|
-
return this.encode(message, writer).ldelim();
|
|
6136
|
-
};
|
|
6137
|
-
|
|
6138
|
-
/**
|
|
6139
|
-
* Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
|
|
6140
|
-
* @function decode
|
|
6141
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6142
|
-
* @static
|
|
6143
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6144
|
-
* @param {number} [length] Message length if known beforehand
|
|
6145
|
-
* @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
|
|
6146
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6147
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6148
|
-
*/
|
|
6149
|
-
UserDoubleOptInEmailRequested.decode = function decode(reader, length) {
|
|
6150
|
-
if (!(reader instanceof $Reader))
|
|
6151
|
-
reader = $Reader.create(reader);
|
|
6152
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDoubleOptInEmailRequested();
|
|
6153
|
-
while (reader.pos < end) {
|
|
6154
|
-
var tag = reader.uint32();
|
|
6155
|
-
switch (tag >>> 3) {
|
|
6156
|
-
case 1:
|
|
6157
|
-
message.userId = reader.string();
|
|
6158
|
-
break;
|
|
6159
|
-
default:
|
|
6160
|
-
reader.skipType(tag & 7);
|
|
6161
|
-
break;
|
|
6162
|
-
}
|
|
6163
|
-
}
|
|
6164
|
-
return message;
|
|
6165
|
-
};
|
|
6166
|
-
|
|
6167
|
-
/**
|
|
6168
|
-
* Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
|
|
6169
|
-
* @function decodeDelimited
|
|
6170
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6171
|
-
* @static
|
|
6172
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6173
|
-
* @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
|
|
6174
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6175
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6176
|
-
*/
|
|
6177
|
-
UserDoubleOptInEmailRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
6178
|
-
if (!(reader instanceof $Reader))
|
|
6179
|
-
reader = new $Reader(reader);
|
|
6180
|
-
return this.decode(reader, reader.uint32());
|
|
6181
|
-
};
|
|
6182
|
-
|
|
6183
|
-
/**
|
|
6184
|
-
* Verifies a UserDoubleOptInEmailRequested message.
|
|
6185
|
-
* @function verify
|
|
6186
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6187
|
-
* @static
|
|
6188
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
6189
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6190
|
-
*/
|
|
6191
|
-
UserDoubleOptInEmailRequested.verify = function verify(message) {
|
|
6192
|
-
if (typeof message !== "object" || message === null)
|
|
6193
|
-
return "object expected";
|
|
6194
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6195
|
-
if (!$util.isString(message.userId))
|
|
6196
|
-
return "userId: string expected";
|
|
6197
|
-
return null;
|
|
6198
|
-
};
|
|
6199
|
-
|
|
6200
|
-
/**
|
|
6201
|
-
* Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
|
|
6202
|
-
* @function fromObject
|
|
6203
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6204
|
-
* @static
|
|
6205
|
-
* @param {Object.<string,*>} object Plain object
|
|
6206
|
-
* @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
|
|
6207
|
-
*/
|
|
6208
|
-
UserDoubleOptInEmailRequested.fromObject = function fromObject(object) {
|
|
6209
|
-
if (object instanceof $root.UserDoubleOptInEmailRequested)
|
|
6210
|
-
return object;
|
|
6211
|
-
var message = new $root.UserDoubleOptInEmailRequested();
|
|
6212
|
-
if (object.userId != null)
|
|
6213
|
-
message.userId = String(object.userId);
|
|
6214
|
-
return message;
|
|
6215
|
-
};
|
|
6216
|
-
|
|
6217
|
-
/**
|
|
6218
|
-
* Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
|
|
6219
|
-
* @function toObject
|
|
6220
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6221
|
-
* @static
|
|
6222
|
-
* @param {UserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested
|
|
6223
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6224
|
-
* @returns {Object.<string,*>} Plain object
|
|
6225
|
-
*/
|
|
6226
|
-
UserDoubleOptInEmailRequested.toObject = function toObject(message, options) {
|
|
6227
|
-
if (!options)
|
|
6228
|
-
options = {};
|
|
6229
|
-
var object = {};
|
|
6230
|
-
if (options.defaults)
|
|
6231
|
-
object.userId = "";
|
|
6232
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6233
|
-
object.userId = message.userId;
|
|
6234
|
-
return object;
|
|
6235
|
-
};
|
|
6236
|
-
|
|
6237
|
-
/**
|
|
6238
|
-
* Converts this UserDoubleOptInEmailRequested to JSON.
|
|
6239
|
-
* @function toJSON
|
|
6240
|
-
* @memberof UserDoubleOptInEmailRequested
|
|
6241
|
-
* @instance
|
|
6242
|
-
* @returns {Object.<string,*>} JSON object
|
|
6243
|
-
*/
|
|
6244
|
-
UserDoubleOptInEmailRequested.prototype.toJSON = function toJSON() {
|
|
6245
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6246
|
-
};
|
|
6247
|
-
|
|
6248
|
-
return UserDoubleOptInEmailRequested;
|
|
6249
|
-
})();
|
|
6250
|
-
|
|
6251
6064
|
$root.UserEmailUpdated = (function() {
|
|
6252
6065
|
|
|
6253
6066
|
/**
|
|
@@ -6503,6 +6316,7 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6503
6316
|
* @property {string|null} [userId] UserEmailVerificationRequested userId
|
|
6504
6317
|
* @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
|
|
6505
6318
|
* @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
|
|
6319
|
+
* @property {boolean|null} [optIn] UserEmailVerificationRequested optIn
|
|
6506
6320
|
*/
|
|
6507
6321
|
|
|
6508
6322
|
/**
|
|
@@ -6544,6 +6358,14 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6544
6358
|
*/
|
|
6545
6359
|
UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
6546
6360
|
|
|
6361
|
+
/**
|
|
6362
|
+
* UserEmailVerificationRequested optIn.
|
|
6363
|
+
* @member {boolean} optIn
|
|
6364
|
+
* @memberof UserEmailVerificationRequested
|
|
6365
|
+
* @instance
|
|
6366
|
+
*/
|
|
6367
|
+
UserEmailVerificationRequested.prototype.optIn = false;
|
|
6368
|
+
|
|
6547
6369
|
/**
|
|
6548
6370
|
* Creates a new UserEmailVerificationRequested instance using the specified properties.
|
|
6549
6371
|
* @function create
|
|
@@ -6574,6 +6396,8 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6574
6396
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
|
|
6575
6397
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6576
6398
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
6399
|
+
if (message.optIn != null && message.hasOwnProperty("optIn"))
|
|
6400
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.optIn);
|
|
6577
6401
|
return writer;
|
|
6578
6402
|
};
|
|
6579
6403
|
|
|
@@ -6617,6 +6441,9 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6617
6441
|
case 3:
|
|
6618
6442
|
message.timestamp = reader.uint64();
|
|
6619
6443
|
break;
|
|
6444
|
+
case 4:
|
|
6445
|
+
message.optIn = reader.bool();
|
|
6446
|
+
break;
|
|
6620
6447
|
default:
|
|
6621
6448
|
reader.skipType(tag & 7);
|
|
6622
6449
|
break;
|
|
@@ -6661,6 +6488,9 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6661
6488
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6662
6489
|
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
6663
6490
|
return "timestamp: integer|Long expected";
|
|
6491
|
+
if (message.optIn != null && message.hasOwnProperty("optIn"))
|
|
6492
|
+
if (typeof message.optIn !== "boolean")
|
|
6493
|
+
return "optIn: boolean expected";
|
|
6664
6494
|
return null;
|
|
6665
6495
|
};
|
|
6666
6496
|
|
|
@@ -6689,6 +6519,8 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6689
6519
|
message.timestamp = object.timestamp;
|
|
6690
6520
|
else if (typeof object.timestamp === "object")
|
|
6691
6521
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
6522
|
+
if (object.optIn != null)
|
|
6523
|
+
message.optIn = Boolean(object.optIn);
|
|
6692
6524
|
return message;
|
|
6693
6525
|
};
|
|
6694
6526
|
|
|
@@ -6713,6 +6545,7 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6713
6545
|
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
6714
6546
|
} else
|
|
6715
6547
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
6548
|
+
object.optIn = false;
|
|
6716
6549
|
}
|
|
6717
6550
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6718
6551
|
object.userId = message.userId;
|
|
@@ -6723,6 +6556,8 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6723
6556
|
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
6724
6557
|
else
|
|
6725
6558
|
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;
|
|
6559
|
+
if (message.optIn != null && message.hasOwnProperty("optIn"))
|
|
6560
|
+
object.optIn = message.optIn;
|
|
6726
6561
|
return object;
|
|
6727
6562
|
};
|
|
6728
6563
|
|
|
@@ -6986,4 +6821,191 @@ $root.UserPasswordUpdated = (function() {
|
|
|
6986
6821
|
return UserPasswordUpdated;
|
|
6987
6822
|
})();
|
|
6988
6823
|
|
|
6824
|
+
$root.UserEmailMarketingOptedIn = (function() {
|
|
6825
|
+
|
|
6826
|
+
/**
|
|
6827
|
+
* Properties of a UserEmailMarketingOptedIn.
|
|
6828
|
+
* @exports IUserEmailMarketingOptedIn
|
|
6829
|
+
* @interface IUserEmailMarketingOptedIn
|
|
6830
|
+
* @property {string|null} [userId] UserEmailMarketingOptedIn userId
|
|
6831
|
+
*/
|
|
6832
|
+
|
|
6833
|
+
/**
|
|
6834
|
+
* Constructs a new UserEmailMarketingOptedIn.
|
|
6835
|
+
* @exports UserEmailMarketingOptedIn
|
|
6836
|
+
* @classdesc Represents a UserEmailMarketingOptedIn.
|
|
6837
|
+
* @implements IUserEmailMarketingOptedIn
|
|
6838
|
+
* @constructor
|
|
6839
|
+
* @param {IUserEmailMarketingOptedIn=} [properties] Properties to set
|
|
6840
|
+
*/
|
|
6841
|
+
function UserEmailMarketingOptedIn(properties) {
|
|
6842
|
+
if (properties)
|
|
6843
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6844
|
+
if (properties[keys[i]] != null)
|
|
6845
|
+
this[keys[i]] = properties[keys[i]];
|
|
6846
|
+
}
|
|
6847
|
+
|
|
6848
|
+
/**
|
|
6849
|
+
* UserEmailMarketingOptedIn userId.
|
|
6850
|
+
* @member {string} userId
|
|
6851
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6852
|
+
* @instance
|
|
6853
|
+
*/
|
|
6854
|
+
UserEmailMarketingOptedIn.prototype.userId = "";
|
|
6855
|
+
|
|
6856
|
+
/**
|
|
6857
|
+
* Creates a new UserEmailMarketingOptedIn instance using the specified properties.
|
|
6858
|
+
* @function create
|
|
6859
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6860
|
+
* @static
|
|
6861
|
+
* @param {IUserEmailMarketingOptedIn=} [properties] Properties to set
|
|
6862
|
+
* @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn instance
|
|
6863
|
+
*/
|
|
6864
|
+
UserEmailMarketingOptedIn.create = function create(properties) {
|
|
6865
|
+
return new UserEmailMarketingOptedIn(properties);
|
|
6866
|
+
};
|
|
6867
|
+
|
|
6868
|
+
/**
|
|
6869
|
+
* Encodes the specified UserEmailMarketingOptedIn message. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
|
|
6870
|
+
* @function encode
|
|
6871
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6872
|
+
* @static
|
|
6873
|
+
* @param {IUserEmailMarketingOptedIn} message UserEmailMarketingOptedIn message or plain object to encode
|
|
6874
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6875
|
+
* @returns {$protobuf.Writer} Writer
|
|
6876
|
+
*/
|
|
6877
|
+
UserEmailMarketingOptedIn.encode = function encode(message, writer) {
|
|
6878
|
+
if (!writer)
|
|
6879
|
+
writer = $Writer.create();
|
|
6880
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6881
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
6882
|
+
return writer;
|
|
6883
|
+
};
|
|
6884
|
+
|
|
6885
|
+
/**
|
|
6886
|
+
* Encodes the specified UserEmailMarketingOptedIn message, length delimited. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
|
|
6887
|
+
* @function encodeDelimited
|
|
6888
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6889
|
+
* @static
|
|
6890
|
+
* @param {IUserEmailMarketingOptedIn} message UserEmailMarketingOptedIn message or plain object to encode
|
|
6891
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6892
|
+
* @returns {$protobuf.Writer} Writer
|
|
6893
|
+
*/
|
|
6894
|
+
UserEmailMarketingOptedIn.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6895
|
+
return this.encode(message, writer).ldelim();
|
|
6896
|
+
};
|
|
6897
|
+
|
|
6898
|
+
/**
|
|
6899
|
+
* Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer.
|
|
6900
|
+
* @function decode
|
|
6901
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6902
|
+
* @static
|
|
6903
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6904
|
+
* @param {number} [length] Message length if known beforehand
|
|
6905
|
+
* @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
|
|
6906
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6907
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6908
|
+
*/
|
|
6909
|
+
UserEmailMarketingOptedIn.decode = function decode(reader, length) {
|
|
6910
|
+
if (!(reader instanceof $Reader))
|
|
6911
|
+
reader = $Reader.create(reader);
|
|
6912
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailMarketingOptedIn();
|
|
6913
|
+
while (reader.pos < end) {
|
|
6914
|
+
var tag = reader.uint32();
|
|
6915
|
+
switch (tag >>> 3) {
|
|
6916
|
+
case 1:
|
|
6917
|
+
message.userId = reader.string();
|
|
6918
|
+
break;
|
|
6919
|
+
default:
|
|
6920
|
+
reader.skipType(tag & 7);
|
|
6921
|
+
break;
|
|
6922
|
+
}
|
|
6923
|
+
}
|
|
6924
|
+
return message;
|
|
6925
|
+
};
|
|
6926
|
+
|
|
6927
|
+
/**
|
|
6928
|
+
* Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer, length delimited.
|
|
6929
|
+
* @function decodeDelimited
|
|
6930
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6931
|
+
* @static
|
|
6932
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6933
|
+
* @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
|
|
6934
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6935
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6936
|
+
*/
|
|
6937
|
+
UserEmailMarketingOptedIn.decodeDelimited = function decodeDelimited(reader) {
|
|
6938
|
+
if (!(reader instanceof $Reader))
|
|
6939
|
+
reader = new $Reader(reader);
|
|
6940
|
+
return this.decode(reader, reader.uint32());
|
|
6941
|
+
};
|
|
6942
|
+
|
|
6943
|
+
/**
|
|
6944
|
+
* Verifies a UserEmailMarketingOptedIn message.
|
|
6945
|
+
* @function verify
|
|
6946
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6947
|
+
* @static
|
|
6948
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6949
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6950
|
+
*/
|
|
6951
|
+
UserEmailMarketingOptedIn.verify = function verify(message) {
|
|
6952
|
+
if (typeof message !== "object" || message === null)
|
|
6953
|
+
return "object expected";
|
|
6954
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6955
|
+
if (!$util.isString(message.userId))
|
|
6956
|
+
return "userId: string expected";
|
|
6957
|
+
return null;
|
|
6958
|
+
};
|
|
6959
|
+
|
|
6960
|
+
/**
|
|
6961
|
+
* Creates a UserEmailMarketingOptedIn message from a plain object. Also converts values to their respective internal types.
|
|
6962
|
+
* @function fromObject
|
|
6963
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6964
|
+
* @static
|
|
6965
|
+
* @param {Object.<string,*>} object Plain object
|
|
6966
|
+
* @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
|
|
6967
|
+
*/
|
|
6968
|
+
UserEmailMarketingOptedIn.fromObject = function fromObject(object) {
|
|
6969
|
+
if (object instanceof $root.UserEmailMarketingOptedIn)
|
|
6970
|
+
return object;
|
|
6971
|
+
var message = new $root.UserEmailMarketingOptedIn();
|
|
6972
|
+
if (object.userId != null)
|
|
6973
|
+
message.userId = String(object.userId);
|
|
6974
|
+
return message;
|
|
6975
|
+
};
|
|
6976
|
+
|
|
6977
|
+
/**
|
|
6978
|
+
* Creates a plain object from a UserEmailMarketingOptedIn message. Also converts values to other types if specified.
|
|
6979
|
+
* @function toObject
|
|
6980
|
+
* @memberof UserEmailMarketingOptedIn
|
|
6981
|
+
* @static
|
|
6982
|
+
* @param {UserEmailMarketingOptedIn} message UserEmailMarketingOptedIn
|
|
6983
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6984
|
+
* @returns {Object.<string,*>} Plain object
|
|
6985
|
+
*/
|
|
6986
|
+
UserEmailMarketingOptedIn.toObject = function toObject(message, options) {
|
|
6987
|
+
if (!options)
|
|
6988
|
+
options = {};
|
|
6989
|
+
var object = {};
|
|
6990
|
+
if (options.defaults)
|
|
6991
|
+
object.userId = "";
|
|
6992
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6993
|
+
object.userId = message.userId;
|
|
6994
|
+
return object;
|
|
6995
|
+
};
|
|
6996
|
+
|
|
6997
|
+
/**
|
|
6998
|
+
* Converts this UserEmailMarketingOptedIn to JSON.
|
|
6999
|
+
* @function toJSON
|
|
7000
|
+
* @memberof UserEmailMarketingOptedIn
|
|
7001
|
+
* @instance
|
|
7002
|
+
* @returns {Object.<string,*>} JSON object
|
|
7003
|
+
*/
|
|
7004
|
+
UserEmailMarketingOptedIn.prototype.toJSON = function toJSON() {
|
|
7005
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7006
|
+
};
|
|
7007
|
+
|
|
7008
|
+
return UserEmailMarketingOptedIn;
|
|
7009
|
+
})();
|
|
7010
|
+
|
|
6989
7011
|
module.exports = $root;
|
package/package.json
CHANGED