@headspace/protos-events 1.679.0 → 1.680.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
@@ -48863,6 +48863,120 @@ export class OrganizationSubscriptionDeleted implements IOrganizationSubscriptio
48863
48863
  public toJSON(): { [k: string]: any };
48864
48864
  }
48865
48865
 
48866
+ /** Properties of an OrganizationContractSwitched. */
48867
+ export interface IOrganizationContractSwitched {
48868
+
48869
+ /** OrganizationContractSwitched organization */
48870
+ organization?: (b2b.IOrganization|null);
48871
+
48872
+ /** OrganizationContractSwitched activatedContract */
48873
+ activatedContract?: (b2b.IB2BSubscriptionManagement|null);
48874
+
48875
+ /** OrganizationContractSwitched expiredContract */
48876
+ expiredContract?: (b2b.IB2BSubscriptionManagement|null);
48877
+
48878
+ /** OrganizationContractSwitched adminPortalUserId */
48879
+ adminPortalUserId?: (string|null);
48880
+
48881
+ /** OrganizationContractSwitched timestamp */
48882
+ timestamp?: (number|Long|null);
48883
+ }
48884
+
48885
+ /** Represents an OrganizationContractSwitched. */
48886
+ export class OrganizationContractSwitched implements IOrganizationContractSwitched {
48887
+
48888
+ /**
48889
+ * Constructs a new OrganizationContractSwitched.
48890
+ * @param [properties] Properties to set
48891
+ */
48892
+ constructor(properties?: IOrganizationContractSwitched);
48893
+
48894
+ /** OrganizationContractSwitched organization. */
48895
+ public organization?: (b2b.IOrganization|null);
48896
+
48897
+ /** OrganizationContractSwitched activatedContract. */
48898
+ public activatedContract?: (b2b.IB2BSubscriptionManagement|null);
48899
+
48900
+ /** OrganizationContractSwitched expiredContract. */
48901
+ public expiredContract?: (b2b.IB2BSubscriptionManagement|null);
48902
+
48903
+ /** OrganizationContractSwitched adminPortalUserId. */
48904
+ public adminPortalUserId: string;
48905
+
48906
+ /** OrganizationContractSwitched timestamp. */
48907
+ public timestamp: (number|Long);
48908
+
48909
+ /**
48910
+ * Creates a new OrganizationContractSwitched instance using the specified properties.
48911
+ * @param [properties] Properties to set
48912
+ * @returns OrganizationContractSwitched instance
48913
+ */
48914
+ public static create(properties?: IOrganizationContractSwitched): OrganizationContractSwitched;
48915
+
48916
+ /**
48917
+ * Encodes the specified OrganizationContractSwitched message. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
48918
+ * @param message OrganizationContractSwitched message or plain object to encode
48919
+ * @param [writer] Writer to encode to
48920
+ * @returns Writer
48921
+ */
48922
+ public static encode(message: IOrganizationContractSwitched, writer?: $protobuf.Writer): $protobuf.Writer;
48923
+
48924
+ /**
48925
+ * Encodes the specified OrganizationContractSwitched message, length delimited. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
48926
+ * @param message OrganizationContractSwitched message or plain object to encode
48927
+ * @param [writer] Writer to encode to
48928
+ * @returns Writer
48929
+ */
48930
+ public static encodeDelimited(message: IOrganizationContractSwitched, writer?: $protobuf.Writer): $protobuf.Writer;
48931
+
48932
+ /**
48933
+ * Decodes an OrganizationContractSwitched message from the specified reader or buffer.
48934
+ * @param reader Reader or buffer to decode from
48935
+ * @param [length] Message length if known beforehand
48936
+ * @returns OrganizationContractSwitched
48937
+ * @throws {Error} If the payload is not a reader or valid buffer
48938
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48939
+ */
48940
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationContractSwitched;
48941
+
48942
+ /**
48943
+ * Decodes an OrganizationContractSwitched message from the specified reader or buffer, length delimited.
48944
+ * @param reader Reader or buffer to decode from
48945
+ * @returns OrganizationContractSwitched
48946
+ * @throws {Error} If the payload is not a reader or valid buffer
48947
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48948
+ */
48949
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationContractSwitched;
48950
+
48951
+ /**
48952
+ * Verifies an OrganizationContractSwitched message.
48953
+ * @param message Plain object to verify
48954
+ * @returns `null` if valid, otherwise the reason why it is not
48955
+ */
48956
+ public static verify(message: { [k: string]: any }): (string|null);
48957
+
48958
+ /**
48959
+ * Creates an OrganizationContractSwitched message from a plain object. Also converts values to their respective internal types.
48960
+ * @param object Plain object
48961
+ * @returns OrganizationContractSwitched
48962
+ */
48963
+ public static fromObject(object: { [k: string]: any }): OrganizationContractSwitched;
48964
+
48965
+ /**
48966
+ * Creates a plain object from an OrganizationContractSwitched message. Also converts values to other types if specified.
48967
+ * @param message OrganizationContractSwitched
48968
+ * @param [options] Conversion options
48969
+ * @returns Plain object
48970
+ */
48971
+ public static toObject(message: OrganizationContractSwitched, options?: $protobuf.IConversionOptions): { [k: string]: any };
48972
+
48973
+ /**
48974
+ * Converts this OrganizationContractSwitched to JSON.
48975
+ * @returns JSON object
48976
+ */
48977
+ public toJSON(): { [k: string]: any };
48978
+ }
48979
+
48866
48980
  /** Properties of a BrazeProxyChatMessageSent. */
48867
48981
  export interface IBrazeProxyChatMessageSent {
48868
48982
 
package/lib/index.js CHANGED
@@ -134988,6 +134988,311 @@ $root.OrganizationSubscriptionDeleted = (function() {
134988
134988
  return OrganizationSubscriptionDeleted;
134989
134989
  })();
134990
134990
 
134991
+ $root.OrganizationContractSwitched = (function() {
134992
+
134993
+ /**
134994
+ * Properties of an OrganizationContractSwitched.
134995
+ * @name IOrganizationContractSwitched
134996
+ * @interface IOrganizationContractSwitched
134997
+ * @property {b2b.IOrganization|null} [organization] OrganizationContractSwitched organization
134998
+ * @property {b2b.IB2BSubscriptionManagement|null} [activatedContract] OrganizationContractSwitched activatedContract
134999
+ * @property {b2b.IB2BSubscriptionManagement|null} [expiredContract] OrganizationContractSwitched expiredContract
135000
+ * @property {string|null} [adminPortalUserId] OrganizationContractSwitched adminPortalUserId
135001
+ * @property {number|Long|null} [timestamp] OrganizationContractSwitched timestamp
135002
+ */
135003
+
135004
+ /**
135005
+ * Constructs a new OrganizationContractSwitched.
135006
+ * @name OrganizationContractSwitched
135007
+ * @classdesc Represents an OrganizationContractSwitched.
135008
+ * @implements IOrganizationContractSwitched
135009
+ * @constructor
135010
+ * @param {IOrganizationContractSwitched=} [properties] Properties to set
135011
+ */
135012
+ function OrganizationContractSwitched(properties) {
135013
+ if (properties)
135014
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
135015
+ if (properties[keys[i]] != null)
135016
+ this[keys[i]] = properties[keys[i]];
135017
+ }
135018
+
135019
+ /**
135020
+ * OrganizationContractSwitched organization.
135021
+ * @member {b2b.IOrganization|null|undefined} organization
135022
+ * @memberof OrganizationContractSwitched
135023
+ * @instance
135024
+ */
135025
+ OrganizationContractSwitched.prototype.organization = null;
135026
+
135027
+ /**
135028
+ * OrganizationContractSwitched activatedContract.
135029
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} activatedContract
135030
+ * @memberof OrganizationContractSwitched
135031
+ * @instance
135032
+ */
135033
+ OrganizationContractSwitched.prototype.activatedContract = null;
135034
+
135035
+ /**
135036
+ * OrganizationContractSwitched expiredContract.
135037
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} expiredContract
135038
+ * @memberof OrganizationContractSwitched
135039
+ * @instance
135040
+ */
135041
+ OrganizationContractSwitched.prototype.expiredContract = null;
135042
+
135043
+ /**
135044
+ * OrganizationContractSwitched adminPortalUserId.
135045
+ * @member {string} adminPortalUserId
135046
+ * @memberof OrganizationContractSwitched
135047
+ * @instance
135048
+ */
135049
+ OrganizationContractSwitched.prototype.adminPortalUserId = "";
135050
+
135051
+ /**
135052
+ * OrganizationContractSwitched timestamp.
135053
+ * @member {number|Long} timestamp
135054
+ * @memberof OrganizationContractSwitched
135055
+ * @instance
135056
+ */
135057
+ OrganizationContractSwitched.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
135058
+
135059
+ /**
135060
+ * Creates a new OrganizationContractSwitched instance using the specified properties.
135061
+ * @function create
135062
+ * @memberof OrganizationContractSwitched
135063
+ * @static
135064
+ * @param {IOrganizationContractSwitched=} [properties] Properties to set
135065
+ * @returns {OrganizationContractSwitched} OrganizationContractSwitched instance
135066
+ */
135067
+ OrganizationContractSwitched.create = function create(properties) {
135068
+ return new OrganizationContractSwitched(properties);
135069
+ };
135070
+
135071
+ /**
135072
+ * Encodes the specified OrganizationContractSwitched message. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
135073
+ * @function encode
135074
+ * @memberof OrganizationContractSwitched
135075
+ * @static
135076
+ * @param {IOrganizationContractSwitched} message OrganizationContractSwitched message or plain object to encode
135077
+ * @param {$protobuf.Writer} [writer] Writer to encode to
135078
+ * @returns {$protobuf.Writer} Writer
135079
+ */
135080
+ OrganizationContractSwitched.encode = function encode(message, writer) {
135081
+ if (!writer)
135082
+ writer = $Writer.create();
135083
+ if (message.organization != null && message.hasOwnProperty("organization"))
135084
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
135085
+ if (message.activatedContract != null && message.hasOwnProperty("activatedContract"))
135086
+ $root.b2b.B2BSubscriptionManagement.encode(message.activatedContract, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
135087
+ if (message.expiredContract != null && message.hasOwnProperty("expiredContract"))
135088
+ $root.b2b.B2BSubscriptionManagement.encode(message.expiredContract, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
135089
+ if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
135090
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.adminPortalUserId);
135091
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
135092
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
135093
+ return writer;
135094
+ };
135095
+
135096
+ /**
135097
+ * Encodes the specified OrganizationContractSwitched message, length delimited. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
135098
+ * @function encodeDelimited
135099
+ * @memberof OrganizationContractSwitched
135100
+ * @static
135101
+ * @param {IOrganizationContractSwitched} message OrganizationContractSwitched message or plain object to encode
135102
+ * @param {$protobuf.Writer} [writer] Writer to encode to
135103
+ * @returns {$protobuf.Writer} Writer
135104
+ */
135105
+ OrganizationContractSwitched.encodeDelimited = function encodeDelimited(message, writer) {
135106
+ return this.encode(message, writer).ldelim();
135107
+ };
135108
+
135109
+ /**
135110
+ * Decodes an OrganizationContractSwitched message from the specified reader or buffer.
135111
+ * @function decode
135112
+ * @memberof OrganizationContractSwitched
135113
+ * @static
135114
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
135115
+ * @param {number} [length] Message length if known beforehand
135116
+ * @returns {OrganizationContractSwitched} OrganizationContractSwitched
135117
+ * @throws {Error} If the payload is not a reader or valid buffer
135118
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
135119
+ */
135120
+ OrganizationContractSwitched.decode = function decode(reader, length) {
135121
+ if (!(reader instanceof $Reader))
135122
+ reader = $Reader.create(reader);
135123
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationContractSwitched();
135124
+ while (reader.pos < end) {
135125
+ var tag = reader.uint32();
135126
+ switch (tag >>> 3) {
135127
+ case 1:
135128
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
135129
+ break;
135130
+ case 2:
135131
+ message.activatedContract = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
135132
+ break;
135133
+ case 3:
135134
+ message.expiredContract = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
135135
+ break;
135136
+ case 4:
135137
+ message.adminPortalUserId = reader.string();
135138
+ break;
135139
+ case 5:
135140
+ message.timestamp = reader.uint64();
135141
+ break;
135142
+ default:
135143
+ reader.skipType(tag & 7);
135144
+ break;
135145
+ }
135146
+ }
135147
+ return message;
135148
+ };
135149
+
135150
+ /**
135151
+ * Decodes an OrganizationContractSwitched message from the specified reader or buffer, length delimited.
135152
+ * @function decodeDelimited
135153
+ * @memberof OrganizationContractSwitched
135154
+ * @static
135155
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
135156
+ * @returns {OrganizationContractSwitched} OrganizationContractSwitched
135157
+ * @throws {Error} If the payload is not a reader or valid buffer
135158
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
135159
+ */
135160
+ OrganizationContractSwitched.decodeDelimited = function decodeDelimited(reader) {
135161
+ if (!(reader instanceof $Reader))
135162
+ reader = new $Reader(reader);
135163
+ return this.decode(reader, reader.uint32());
135164
+ };
135165
+
135166
+ /**
135167
+ * Verifies an OrganizationContractSwitched message.
135168
+ * @function verify
135169
+ * @memberof OrganizationContractSwitched
135170
+ * @static
135171
+ * @param {Object.<string,*>} message Plain object to verify
135172
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
135173
+ */
135174
+ OrganizationContractSwitched.verify = function verify(message) {
135175
+ if (typeof message !== "object" || message === null)
135176
+ return "object expected";
135177
+ if (message.organization != null && message.hasOwnProperty("organization")) {
135178
+ var error = $root.b2b.Organization.verify(message.organization);
135179
+ if (error)
135180
+ return "organization." + error;
135181
+ }
135182
+ if (message.activatedContract != null && message.hasOwnProperty("activatedContract")) {
135183
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.activatedContract);
135184
+ if (error)
135185
+ return "activatedContract." + error;
135186
+ }
135187
+ if (message.expiredContract != null && message.hasOwnProperty("expiredContract")) {
135188
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.expiredContract);
135189
+ if (error)
135190
+ return "expiredContract." + error;
135191
+ }
135192
+ if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
135193
+ if (!$util.isString(message.adminPortalUserId))
135194
+ return "adminPortalUserId: string expected";
135195
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
135196
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
135197
+ return "timestamp: integer|Long expected";
135198
+ return null;
135199
+ };
135200
+
135201
+ /**
135202
+ * Creates an OrganizationContractSwitched message from a plain object. Also converts values to their respective internal types.
135203
+ * @function fromObject
135204
+ * @memberof OrganizationContractSwitched
135205
+ * @static
135206
+ * @param {Object.<string,*>} object Plain object
135207
+ * @returns {OrganizationContractSwitched} OrganizationContractSwitched
135208
+ */
135209
+ OrganizationContractSwitched.fromObject = function fromObject(object) {
135210
+ if (object instanceof $root.OrganizationContractSwitched)
135211
+ return object;
135212
+ var message = new $root.OrganizationContractSwitched();
135213
+ if (object.organization != null) {
135214
+ if (typeof object.organization !== "object")
135215
+ throw TypeError(".OrganizationContractSwitched.organization: object expected");
135216
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
135217
+ }
135218
+ if (object.activatedContract != null) {
135219
+ if (typeof object.activatedContract !== "object")
135220
+ throw TypeError(".OrganizationContractSwitched.activatedContract: object expected");
135221
+ message.activatedContract = $root.b2b.B2BSubscriptionManagement.fromObject(object.activatedContract);
135222
+ }
135223
+ if (object.expiredContract != null) {
135224
+ if (typeof object.expiredContract !== "object")
135225
+ throw TypeError(".OrganizationContractSwitched.expiredContract: object expected");
135226
+ message.expiredContract = $root.b2b.B2BSubscriptionManagement.fromObject(object.expiredContract);
135227
+ }
135228
+ if (object.adminPortalUserId != null)
135229
+ message.adminPortalUserId = String(object.adminPortalUserId);
135230
+ if (object.timestamp != null)
135231
+ if ($util.Long)
135232
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
135233
+ else if (typeof object.timestamp === "string")
135234
+ message.timestamp = parseInt(object.timestamp, 10);
135235
+ else if (typeof object.timestamp === "number")
135236
+ message.timestamp = object.timestamp;
135237
+ else if (typeof object.timestamp === "object")
135238
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
135239
+ return message;
135240
+ };
135241
+
135242
+ /**
135243
+ * Creates a plain object from an OrganizationContractSwitched message. Also converts values to other types if specified.
135244
+ * @function toObject
135245
+ * @memberof OrganizationContractSwitched
135246
+ * @static
135247
+ * @param {OrganizationContractSwitched} message OrganizationContractSwitched
135248
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
135249
+ * @returns {Object.<string,*>} Plain object
135250
+ */
135251
+ OrganizationContractSwitched.toObject = function toObject(message, options) {
135252
+ if (!options)
135253
+ options = {};
135254
+ var object = {};
135255
+ if (options.defaults) {
135256
+ object.organization = null;
135257
+ object.activatedContract = null;
135258
+ object.expiredContract = null;
135259
+ object.adminPortalUserId = "";
135260
+ if ($util.Long) {
135261
+ var long = new $util.Long(0, 0, true);
135262
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
135263
+ } else
135264
+ object.timestamp = options.longs === String ? "0" : 0;
135265
+ }
135266
+ if (message.organization != null && message.hasOwnProperty("organization"))
135267
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
135268
+ if (message.activatedContract != null && message.hasOwnProperty("activatedContract"))
135269
+ object.activatedContract = $root.b2b.B2BSubscriptionManagement.toObject(message.activatedContract, options);
135270
+ if (message.expiredContract != null && message.hasOwnProperty("expiredContract"))
135271
+ object.expiredContract = $root.b2b.B2BSubscriptionManagement.toObject(message.expiredContract, options);
135272
+ if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
135273
+ object.adminPortalUserId = message.adminPortalUserId;
135274
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
135275
+ if (typeof message.timestamp === "number")
135276
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
135277
+ else
135278
+ 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;
135279
+ return object;
135280
+ };
135281
+
135282
+ /**
135283
+ * Converts this OrganizationContractSwitched to JSON.
135284
+ * @function toJSON
135285
+ * @memberof OrganizationContractSwitched
135286
+ * @instance
135287
+ * @returns {Object.<string,*>} JSON object
135288
+ */
135289
+ OrganizationContractSwitched.prototype.toJSON = function toJSON() {
135290
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
135291
+ };
135292
+
135293
+ return OrganizationContractSwitched;
135294
+ })();
135295
+
134991
135296
  $root.BrazeProxyChatMessageSent = (function() {
134992
135297
 
134993
135298
  /**
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.679.0"
19
+ "version": "1.680.0"
20
20
  }