@headspace/protos-events 1.680.0 → 1.682.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
@@ -13121,6 +13121,313 @@ export namespace gift {
13121
13121
  }
13122
13122
  }
13123
13123
 
13124
+ /** Properties of a GingerProviderProfileUpdateRequested. */
13125
+ export interface IGingerProviderProfileUpdateRequested {
13126
+
13127
+ /** GingerProviderProfileUpdateRequested request */
13128
+ request?: (IGingerProviderProfileUpdateRequest|null);
13129
+ }
13130
+
13131
+ /** Represents a GingerProviderProfileUpdateRequested. */
13132
+ export class GingerProviderProfileUpdateRequested implements IGingerProviderProfileUpdateRequested {
13133
+
13134
+ /**
13135
+ * Constructs a new GingerProviderProfileUpdateRequested.
13136
+ * @param [properties] Properties to set
13137
+ */
13138
+ constructor(properties?: IGingerProviderProfileUpdateRequested);
13139
+
13140
+ /** GingerProviderProfileUpdateRequested request. */
13141
+ public request?: (IGingerProviderProfileUpdateRequest|null);
13142
+
13143
+ /**
13144
+ * Creates a new GingerProviderProfileUpdateRequested instance using the specified properties.
13145
+ * @param [properties] Properties to set
13146
+ * @returns GingerProviderProfileUpdateRequested instance
13147
+ */
13148
+ public static create(properties?: IGingerProviderProfileUpdateRequested): GingerProviderProfileUpdateRequested;
13149
+
13150
+ /**
13151
+ * Encodes the specified GingerProviderProfileUpdateRequested message. Does not implicitly {@link GingerProviderProfileUpdateRequested.verify|verify} messages.
13152
+ * @param message GingerProviderProfileUpdateRequested message or plain object to encode
13153
+ * @param [writer] Writer to encode to
13154
+ * @returns Writer
13155
+ */
13156
+ public static encode(message: IGingerProviderProfileUpdateRequested, writer?: $protobuf.Writer): $protobuf.Writer;
13157
+
13158
+ /**
13159
+ * Encodes the specified GingerProviderProfileUpdateRequested message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequested.verify|verify} messages.
13160
+ * @param message GingerProviderProfileUpdateRequested message or plain object to encode
13161
+ * @param [writer] Writer to encode to
13162
+ * @returns Writer
13163
+ */
13164
+ public static encodeDelimited(message: IGingerProviderProfileUpdateRequested, writer?: $protobuf.Writer): $protobuf.Writer;
13165
+
13166
+ /**
13167
+ * Decodes a GingerProviderProfileUpdateRequested message from the specified reader or buffer.
13168
+ * @param reader Reader or buffer to decode from
13169
+ * @param [length] Message length if known beforehand
13170
+ * @returns GingerProviderProfileUpdateRequested
13171
+ * @throws {Error} If the payload is not a reader or valid buffer
13172
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13173
+ */
13174
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerProviderProfileUpdateRequested;
13175
+
13176
+ /**
13177
+ * Decodes a GingerProviderProfileUpdateRequested message from the specified reader or buffer, length delimited.
13178
+ * @param reader Reader or buffer to decode from
13179
+ * @returns GingerProviderProfileUpdateRequested
13180
+ * @throws {Error} If the payload is not a reader or valid buffer
13181
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13182
+ */
13183
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerProviderProfileUpdateRequested;
13184
+
13185
+ /**
13186
+ * Verifies a GingerProviderProfileUpdateRequested message.
13187
+ * @param message Plain object to verify
13188
+ * @returns `null` if valid, otherwise the reason why it is not
13189
+ */
13190
+ public static verify(message: { [k: string]: any }): (string|null);
13191
+
13192
+ /**
13193
+ * Creates a GingerProviderProfileUpdateRequested message from a plain object. Also converts values to their respective internal types.
13194
+ * @param object Plain object
13195
+ * @returns GingerProviderProfileUpdateRequested
13196
+ */
13197
+ public static fromObject(object: { [k: string]: any }): GingerProviderProfileUpdateRequested;
13198
+
13199
+ /**
13200
+ * Creates a plain object from a GingerProviderProfileUpdateRequested message. Also converts values to other types if specified.
13201
+ * @param message GingerProviderProfileUpdateRequested
13202
+ * @param [options] Conversion options
13203
+ * @returns Plain object
13204
+ */
13205
+ public static toObject(message: GingerProviderProfileUpdateRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
13206
+
13207
+ /**
13208
+ * Converts this GingerProviderProfileUpdateRequested to JSON.
13209
+ * @returns JSON object
13210
+ */
13211
+ public toJSON(): { [k: string]: any };
13212
+ }
13213
+
13214
+ /** Properties of a GingerProviderProfileUpdateRequestCompleted. */
13215
+ export interface IGingerProviderProfileUpdateRequestCompleted {
13216
+
13217
+ /** GingerProviderProfileUpdateRequestCompleted request */
13218
+ request?: (IGingerProviderProfileUpdateRequest|null);
13219
+
13220
+ /** GingerProviderProfileUpdateRequestCompleted action */
13221
+ action?: (GingerProviderProfileUpdateRequestAction|null);
13222
+ }
13223
+
13224
+ /** Represents a GingerProviderProfileUpdateRequestCompleted. */
13225
+ export class GingerProviderProfileUpdateRequestCompleted implements IGingerProviderProfileUpdateRequestCompleted {
13226
+
13227
+ /**
13228
+ * Constructs a new GingerProviderProfileUpdateRequestCompleted.
13229
+ * @param [properties] Properties to set
13230
+ */
13231
+ constructor(properties?: IGingerProviderProfileUpdateRequestCompleted);
13232
+
13233
+ /** GingerProviderProfileUpdateRequestCompleted request. */
13234
+ public request?: (IGingerProviderProfileUpdateRequest|null);
13235
+
13236
+ /** GingerProviderProfileUpdateRequestCompleted action. */
13237
+ public action: GingerProviderProfileUpdateRequestAction;
13238
+
13239
+ /**
13240
+ * Creates a new GingerProviderProfileUpdateRequestCompleted instance using the specified properties.
13241
+ * @param [properties] Properties to set
13242
+ * @returns GingerProviderProfileUpdateRequestCompleted instance
13243
+ */
13244
+ public static create(properties?: IGingerProviderProfileUpdateRequestCompleted): GingerProviderProfileUpdateRequestCompleted;
13245
+
13246
+ /**
13247
+ * Encodes the specified GingerProviderProfileUpdateRequestCompleted message. Does not implicitly {@link GingerProviderProfileUpdateRequestCompleted.verify|verify} messages.
13248
+ * @param message GingerProviderProfileUpdateRequestCompleted message or plain object to encode
13249
+ * @param [writer] Writer to encode to
13250
+ * @returns Writer
13251
+ */
13252
+ public static encode(message: IGingerProviderProfileUpdateRequestCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
13253
+
13254
+ /**
13255
+ * Encodes the specified GingerProviderProfileUpdateRequestCompleted message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequestCompleted.verify|verify} messages.
13256
+ * @param message GingerProviderProfileUpdateRequestCompleted message or plain object to encode
13257
+ * @param [writer] Writer to encode to
13258
+ * @returns Writer
13259
+ */
13260
+ public static encodeDelimited(message: IGingerProviderProfileUpdateRequestCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
13261
+
13262
+ /**
13263
+ * Decodes a GingerProviderProfileUpdateRequestCompleted message from the specified reader or buffer.
13264
+ * @param reader Reader or buffer to decode from
13265
+ * @param [length] Message length if known beforehand
13266
+ * @returns GingerProviderProfileUpdateRequestCompleted
13267
+ * @throws {Error} If the payload is not a reader or valid buffer
13268
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13269
+ */
13270
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerProviderProfileUpdateRequestCompleted;
13271
+
13272
+ /**
13273
+ * Decodes a GingerProviderProfileUpdateRequestCompleted message from the specified reader or buffer, length delimited.
13274
+ * @param reader Reader or buffer to decode from
13275
+ * @returns GingerProviderProfileUpdateRequestCompleted
13276
+ * @throws {Error} If the payload is not a reader or valid buffer
13277
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13278
+ */
13279
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerProviderProfileUpdateRequestCompleted;
13280
+
13281
+ /**
13282
+ * Verifies a GingerProviderProfileUpdateRequestCompleted message.
13283
+ * @param message Plain object to verify
13284
+ * @returns `null` if valid, otherwise the reason why it is not
13285
+ */
13286
+ public static verify(message: { [k: string]: any }): (string|null);
13287
+
13288
+ /**
13289
+ * Creates a GingerProviderProfileUpdateRequestCompleted message from a plain object. Also converts values to their respective internal types.
13290
+ * @param object Plain object
13291
+ * @returns GingerProviderProfileUpdateRequestCompleted
13292
+ */
13293
+ public static fromObject(object: { [k: string]: any }): GingerProviderProfileUpdateRequestCompleted;
13294
+
13295
+ /**
13296
+ * Creates a plain object from a GingerProviderProfileUpdateRequestCompleted message. Also converts values to other types if specified.
13297
+ * @param message GingerProviderProfileUpdateRequestCompleted
13298
+ * @param [options] Conversion options
13299
+ * @returns Plain object
13300
+ */
13301
+ public static toObject(message: GingerProviderProfileUpdateRequestCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
13302
+
13303
+ /**
13304
+ * Converts this GingerProviderProfileUpdateRequestCompleted to JSON.
13305
+ * @returns JSON object
13306
+ */
13307
+ public toJSON(): { [k: string]: any };
13308
+ }
13309
+
13310
+ /** GingerProviderProfileUpdateRequestAction enum. */
13311
+ export enum GingerProviderProfileUpdateRequestAction {
13312
+ GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN = 0,
13313
+ GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED = 1,
13314
+ GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED = 2
13315
+ }
13316
+
13317
+ /** Properties of a GingerProviderProfileUpdateRequest. */
13318
+ export interface IGingerProviderProfileUpdateRequest {
13319
+
13320
+ /** GingerProviderProfileUpdateRequest id */
13321
+ id?: (string|null);
13322
+
13323
+ /** GingerProviderProfileUpdateRequest hsClinicianId */
13324
+ hsClinicianId?: (string|null);
13325
+
13326
+ /** GingerProviderProfileUpdateRequest gingerClinicianId */
13327
+ gingerClinicianId?: (number|null);
13328
+
13329
+ /** GingerProviderProfileUpdateRequest gingerProviderId */
13330
+ gingerProviderId?: (string|null);
13331
+
13332
+ /** GingerProviderProfileUpdateRequest providerEmail */
13333
+ providerEmail?: (string|null);
13334
+ }
13335
+
13336
+ /** Represents a GingerProviderProfileUpdateRequest. */
13337
+ export class GingerProviderProfileUpdateRequest implements IGingerProviderProfileUpdateRequest {
13338
+
13339
+ /**
13340
+ * Constructs a new GingerProviderProfileUpdateRequest.
13341
+ * @param [properties] Properties to set
13342
+ */
13343
+ constructor(properties?: IGingerProviderProfileUpdateRequest);
13344
+
13345
+ /** GingerProviderProfileUpdateRequest id. */
13346
+ public id: string;
13347
+
13348
+ /** GingerProviderProfileUpdateRequest hsClinicianId. */
13349
+ public hsClinicianId: string;
13350
+
13351
+ /** GingerProviderProfileUpdateRequest gingerClinicianId. */
13352
+ public gingerClinicianId: number;
13353
+
13354
+ /** GingerProviderProfileUpdateRequest gingerProviderId. */
13355
+ public gingerProviderId: string;
13356
+
13357
+ /** GingerProviderProfileUpdateRequest providerEmail. */
13358
+ public providerEmail: string;
13359
+
13360
+ /**
13361
+ * Creates a new GingerProviderProfileUpdateRequest instance using the specified properties.
13362
+ * @param [properties] Properties to set
13363
+ * @returns GingerProviderProfileUpdateRequest instance
13364
+ */
13365
+ public static create(properties?: IGingerProviderProfileUpdateRequest): GingerProviderProfileUpdateRequest;
13366
+
13367
+ /**
13368
+ * Encodes the specified GingerProviderProfileUpdateRequest message. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
13369
+ * @param message GingerProviderProfileUpdateRequest message or plain object to encode
13370
+ * @param [writer] Writer to encode to
13371
+ * @returns Writer
13372
+ */
13373
+ public static encode(message: IGingerProviderProfileUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
13374
+
13375
+ /**
13376
+ * Encodes the specified GingerProviderProfileUpdateRequest message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
13377
+ * @param message GingerProviderProfileUpdateRequest message or plain object to encode
13378
+ * @param [writer] Writer to encode to
13379
+ * @returns Writer
13380
+ */
13381
+ public static encodeDelimited(message: IGingerProviderProfileUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
13382
+
13383
+ /**
13384
+ * Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer.
13385
+ * @param reader Reader or buffer to decode from
13386
+ * @param [length] Message length if known beforehand
13387
+ * @returns GingerProviderProfileUpdateRequest
13388
+ * @throws {Error} If the payload is not a reader or valid buffer
13389
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13390
+ */
13391
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerProviderProfileUpdateRequest;
13392
+
13393
+ /**
13394
+ * Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer, length delimited.
13395
+ * @param reader Reader or buffer to decode from
13396
+ * @returns GingerProviderProfileUpdateRequest
13397
+ * @throws {Error} If the payload is not a reader or valid buffer
13398
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13399
+ */
13400
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerProviderProfileUpdateRequest;
13401
+
13402
+ /**
13403
+ * Verifies a GingerProviderProfileUpdateRequest message.
13404
+ * @param message Plain object to verify
13405
+ * @returns `null` if valid, otherwise the reason why it is not
13406
+ */
13407
+ public static verify(message: { [k: string]: any }): (string|null);
13408
+
13409
+ /**
13410
+ * Creates a GingerProviderProfileUpdateRequest message from a plain object. Also converts values to their respective internal types.
13411
+ * @param object Plain object
13412
+ * @returns GingerProviderProfileUpdateRequest
13413
+ */
13414
+ public static fromObject(object: { [k: string]: any }): GingerProviderProfileUpdateRequest;
13415
+
13416
+ /**
13417
+ * Creates a plain object from a GingerProviderProfileUpdateRequest message. Also converts values to other types if specified.
13418
+ * @param message GingerProviderProfileUpdateRequest
13419
+ * @param [options] Conversion options
13420
+ * @returns Plain object
13421
+ */
13422
+ public static toObject(message: GingerProviderProfileUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
13423
+
13424
+ /**
13425
+ * Converts this GingerProviderProfileUpdateRequest to JSON.
13426
+ * @returns JSON object
13427
+ */
13428
+ public toJSON(): { [k: string]: any };
13429
+ }
13430
+
13124
13431
  /** Namespace b2b. */
13125
13432
  export namespace b2b {
13126
13433
 
package/lib/index.js CHANGED
@@ -35255,6 +35255,723 @@ $root.gift = (function() {
35255
35255
  return gift;
35256
35256
  })();
35257
35257
 
35258
+ $root.GingerProviderProfileUpdateRequested = (function() {
35259
+
35260
+ /**
35261
+ * Properties of a GingerProviderProfileUpdateRequested.
35262
+ * @name IGingerProviderProfileUpdateRequested
35263
+ * @interface IGingerProviderProfileUpdateRequested
35264
+ * @property {IGingerProviderProfileUpdateRequest|null} [request] GingerProviderProfileUpdateRequested request
35265
+ */
35266
+
35267
+ /**
35268
+ * Constructs a new GingerProviderProfileUpdateRequested.
35269
+ * @name GingerProviderProfileUpdateRequested
35270
+ * @classdesc Represents a GingerProviderProfileUpdateRequested.
35271
+ * @implements IGingerProviderProfileUpdateRequested
35272
+ * @constructor
35273
+ * @param {IGingerProviderProfileUpdateRequested=} [properties] Properties to set
35274
+ */
35275
+ function GingerProviderProfileUpdateRequested(properties) {
35276
+ if (properties)
35277
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
35278
+ if (properties[keys[i]] != null)
35279
+ this[keys[i]] = properties[keys[i]];
35280
+ }
35281
+
35282
+ /**
35283
+ * GingerProviderProfileUpdateRequested request.
35284
+ * @member {IGingerProviderProfileUpdateRequest|null|undefined} request
35285
+ * @memberof GingerProviderProfileUpdateRequested
35286
+ * @instance
35287
+ */
35288
+ GingerProviderProfileUpdateRequested.prototype.request = null;
35289
+
35290
+ /**
35291
+ * Creates a new GingerProviderProfileUpdateRequested instance using the specified properties.
35292
+ * @function create
35293
+ * @memberof GingerProviderProfileUpdateRequested
35294
+ * @static
35295
+ * @param {IGingerProviderProfileUpdateRequested=} [properties] Properties to set
35296
+ * @returns {GingerProviderProfileUpdateRequested} GingerProviderProfileUpdateRequested instance
35297
+ */
35298
+ GingerProviderProfileUpdateRequested.create = function create(properties) {
35299
+ return new GingerProviderProfileUpdateRequested(properties);
35300
+ };
35301
+
35302
+ /**
35303
+ * Encodes the specified GingerProviderProfileUpdateRequested message. Does not implicitly {@link GingerProviderProfileUpdateRequested.verify|verify} messages.
35304
+ * @function encode
35305
+ * @memberof GingerProviderProfileUpdateRequested
35306
+ * @static
35307
+ * @param {IGingerProviderProfileUpdateRequested} message GingerProviderProfileUpdateRequested message or plain object to encode
35308
+ * @param {$protobuf.Writer} [writer] Writer to encode to
35309
+ * @returns {$protobuf.Writer} Writer
35310
+ */
35311
+ GingerProviderProfileUpdateRequested.encode = function encode(message, writer) {
35312
+ if (!writer)
35313
+ writer = $Writer.create();
35314
+ if (message.request != null && message.hasOwnProperty("request"))
35315
+ $root.GingerProviderProfileUpdateRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
35316
+ return writer;
35317
+ };
35318
+
35319
+ /**
35320
+ * Encodes the specified GingerProviderProfileUpdateRequested message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequested.verify|verify} messages.
35321
+ * @function encodeDelimited
35322
+ * @memberof GingerProviderProfileUpdateRequested
35323
+ * @static
35324
+ * @param {IGingerProviderProfileUpdateRequested} message GingerProviderProfileUpdateRequested message or plain object to encode
35325
+ * @param {$protobuf.Writer} [writer] Writer to encode to
35326
+ * @returns {$protobuf.Writer} Writer
35327
+ */
35328
+ GingerProviderProfileUpdateRequested.encodeDelimited = function encodeDelimited(message, writer) {
35329
+ return this.encode(message, writer).ldelim();
35330
+ };
35331
+
35332
+ /**
35333
+ * Decodes a GingerProviderProfileUpdateRequested message from the specified reader or buffer.
35334
+ * @function decode
35335
+ * @memberof GingerProviderProfileUpdateRequested
35336
+ * @static
35337
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
35338
+ * @param {number} [length] Message length if known beforehand
35339
+ * @returns {GingerProviderProfileUpdateRequested} GingerProviderProfileUpdateRequested
35340
+ * @throws {Error} If the payload is not a reader or valid buffer
35341
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35342
+ */
35343
+ GingerProviderProfileUpdateRequested.decode = function decode(reader, length) {
35344
+ if (!(reader instanceof $Reader))
35345
+ reader = $Reader.create(reader);
35346
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderProfileUpdateRequested();
35347
+ while (reader.pos < end) {
35348
+ var tag = reader.uint32();
35349
+ switch (tag >>> 3) {
35350
+ case 1:
35351
+ message.request = $root.GingerProviderProfileUpdateRequest.decode(reader, reader.uint32());
35352
+ break;
35353
+ default:
35354
+ reader.skipType(tag & 7);
35355
+ break;
35356
+ }
35357
+ }
35358
+ return message;
35359
+ };
35360
+
35361
+ /**
35362
+ * Decodes a GingerProviderProfileUpdateRequested message from the specified reader or buffer, length delimited.
35363
+ * @function decodeDelimited
35364
+ * @memberof GingerProviderProfileUpdateRequested
35365
+ * @static
35366
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
35367
+ * @returns {GingerProviderProfileUpdateRequested} GingerProviderProfileUpdateRequested
35368
+ * @throws {Error} If the payload is not a reader or valid buffer
35369
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35370
+ */
35371
+ GingerProviderProfileUpdateRequested.decodeDelimited = function decodeDelimited(reader) {
35372
+ if (!(reader instanceof $Reader))
35373
+ reader = new $Reader(reader);
35374
+ return this.decode(reader, reader.uint32());
35375
+ };
35376
+
35377
+ /**
35378
+ * Verifies a GingerProviderProfileUpdateRequested message.
35379
+ * @function verify
35380
+ * @memberof GingerProviderProfileUpdateRequested
35381
+ * @static
35382
+ * @param {Object.<string,*>} message Plain object to verify
35383
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
35384
+ */
35385
+ GingerProviderProfileUpdateRequested.verify = function verify(message) {
35386
+ if (typeof message !== "object" || message === null)
35387
+ return "object expected";
35388
+ if (message.request != null && message.hasOwnProperty("request")) {
35389
+ var error = $root.GingerProviderProfileUpdateRequest.verify(message.request);
35390
+ if (error)
35391
+ return "request." + error;
35392
+ }
35393
+ return null;
35394
+ };
35395
+
35396
+ /**
35397
+ * Creates a GingerProviderProfileUpdateRequested message from a plain object. Also converts values to their respective internal types.
35398
+ * @function fromObject
35399
+ * @memberof GingerProviderProfileUpdateRequested
35400
+ * @static
35401
+ * @param {Object.<string,*>} object Plain object
35402
+ * @returns {GingerProviderProfileUpdateRequested} GingerProviderProfileUpdateRequested
35403
+ */
35404
+ GingerProviderProfileUpdateRequested.fromObject = function fromObject(object) {
35405
+ if (object instanceof $root.GingerProviderProfileUpdateRequested)
35406
+ return object;
35407
+ var message = new $root.GingerProviderProfileUpdateRequested();
35408
+ if (object.request != null) {
35409
+ if (typeof object.request !== "object")
35410
+ throw TypeError(".GingerProviderProfileUpdateRequested.request: object expected");
35411
+ message.request = $root.GingerProviderProfileUpdateRequest.fromObject(object.request);
35412
+ }
35413
+ return message;
35414
+ };
35415
+
35416
+ /**
35417
+ * Creates a plain object from a GingerProviderProfileUpdateRequested message. Also converts values to other types if specified.
35418
+ * @function toObject
35419
+ * @memberof GingerProviderProfileUpdateRequested
35420
+ * @static
35421
+ * @param {GingerProviderProfileUpdateRequested} message GingerProviderProfileUpdateRequested
35422
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
35423
+ * @returns {Object.<string,*>} Plain object
35424
+ */
35425
+ GingerProviderProfileUpdateRequested.toObject = function toObject(message, options) {
35426
+ if (!options)
35427
+ options = {};
35428
+ var object = {};
35429
+ if (options.defaults)
35430
+ object.request = null;
35431
+ if (message.request != null && message.hasOwnProperty("request"))
35432
+ object.request = $root.GingerProviderProfileUpdateRequest.toObject(message.request, options);
35433
+ return object;
35434
+ };
35435
+
35436
+ /**
35437
+ * Converts this GingerProviderProfileUpdateRequested to JSON.
35438
+ * @function toJSON
35439
+ * @memberof GingerProviderProfileUpdateRequested
35440
+ * @instance
35441
+ * @returns {Object.<string,*>} JSON object
35442
+ */
35443
+ GingerProviderProfileUpdateRequested.prototype.toJSON = function toJSON() {
35444
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
35445
+ };
35446
+
35447
+ return GingerProviderProfileUpdateRequested;
35448
+ })();
35449
+
35450
+ $root.GingerProviderProfileUpdateRequestCompleted = (function() {
35451
+
35452
+ /**
35453
+ * Properties of a GingerProviderProfileUpdateRequestCompleted.
35454
+ * @name IGingerProviderProfileUpdateRequestCompleted
35455
+ * @interface IGingerProviderProfileUpdateRequestCompleted
35456
+ * @property {IGingerProviderProfileUpdateRequest|null} [request] GingerProviderProfileUpdateRequestCompleted request
35457
+ * @property {GingerProviderProfileUpdateRequestAction|null} [action] GingerProviderProfileUpdateRequestCompleted action
35458
+ */
35459
+
35460
+ /**
35461
+ * Constructs a new GingerProviderProfileUpdateRequestCompleted.
35462
+ * @name GingerProviderProfileUpdateRequestCompleted
35463
+ * @classdesc Represents a GingerProviderProfileUpdateRequestCompleted.
35464
+ * @implements IGingerProviderProfileUpdateRequestCompleted
35465
+ * @constructor
35466
+ * @param {IGingerProviderProfileUpdateRequestCompleted=} [properties] Properties to set
35467
+ */
35468
+ function GingerProviderProfileUpdateRequestCompleted(properties) {
35469
+ if (properties)
35470
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
35471
+ if (properties[keys[i]] != null)
35472
+ this[keys[i]] = properties[keys[i]];
35473
+ }
35474
+
35475
+ /**
35476
+ * GingerProviderProfileUpdateRequestCompleted request.
35477
+ * @member {IGingerProviderProfileUpdateRequest|null|undefined} request
35478
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35479
+ * @instance
35480
+ */
35481
+ GingerProviderProfileUpdateRequestCompleted.prototype.request = null;
35482
+
35483
+ /**
35484
+ * GingerProviderProfileUpdateRequestCompleted action.
35485
+ * @member {GingerProviderProfileUpdateRequestAction} action
35486
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35487
+ * @instance
35488
+ */
35489
+ GingerProviderProfileUpdateRequestCompleted.prototype.action = 0;
35490
+
35491
+ /**
35492
+ * Creates a new GingerProviderProfileUpdateRequestCompleted instance using the specified properties.
35493
+ * @function create
35494
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35495
+ * @static
35496
+ * @param {IGingerProviderProfileUpdateRequestCompleted=} [properties] Properties to set
35497
+ * @returns {GingerProviderProfileUpdateRequestCompleted} GingerProviderProfileUpdateRequestCompleted instance
35498
+ */
35499
+ GingerProviderProfileUpdateRequestCompleted.create = function create(properties) {
35500
+ return new GingerProviderProfileUpdateRequestCompleted(properties);
35501
+ };
35502
+
35503
+ /**
35504
+ * Encodes the specified GingerProviderProfileUpdateRequestCompleted message. Does not implicitly {@link GingerProviderProfileUpdateRequestCompleted.verify|verify} messages.
35505
+ * @function encode
35506
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35507
+ * @static
35508
+ * @param {IGingerProviderProfileUpdateRequestCompleted} message GingerProviderProfileUpdateRequestCompleted message or plain object to encode
35509
+ * @param {$protobuf.Writer} [writer] Writer to encode to
35510
+ * @returns {$protobuf.Writer} Writer
35511
+ */
35512
+ GingerProviderProfileUpdateRequestCompleted.encode = function encode(message, writer) {
35513
+ if (!writer)
35514
+ writer = $Writer.create();
35515
+ if (message.request != null && message.hasOwnProperty("request"))
35516
+ $root.GingerProviderProfileUpdateRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
35517
+ if (message.action != null && message.hasOwnProperty("action"))
35518
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action);
35519
+ return writer;
35520
+ };
35521
+
35522
+ /**
35523
+ * Encodes the specified GingerProviderProfileUpdateRequestCompleted message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequestCompleted.verify|verify} messages.
35524
+ * @function encodeDelimited
35525
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35526
+ * @static
35527
+ * @param {IGingerProviderProfileUpdateRequestCompleted} message GingerProviderProfileUpdateRequestCompleted message or plain object to encode
35528
+ * @param {$protobuf.Writer} [writer] Writer to encode to
35529
+ * @returns {$protobuf.Writer} Writer
35530
+ */
35531
+ GingerProviderProfileUpdateRequestCompleted.encodeDelimited = function encodeDelimited(message, writer) {
35532
+ return this.encode(message, writer).ldelim();
35533
+ };
35534
+
35535
+ /**
35536
+ * Decodes a GingerProviderProfileUpdateRequestCompleted message from the specified reader or buffer.
35537
+ * @function decode
35538
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35539
+ * @static
35540
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
35541
+ * @param {number} [length] Message length if known beforehand
35542
+ * @returns {GingerProviderProfileUpdateRequestCompleted} GingerProviderProfileUpdateRequestCompleted
35543
+ * @throws {Error} If the payload is not a reader or valid buffer
35544
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35545
+ */
35546
+ GingerProviderProfileUpdateRequestCompleted.decode = function decode(reader, length) {
35547
+ if (!(reader instanceof $Reader))
35548
+ reader = $Reader.create(reader);
35549
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderProfileUpdateRequestCompleted();
35550
+ while (reader.pos < end) {
35551
+ var tag = reader.uint32();
35552
+ switch (tag >>> 3) {
35553
+ case 1:
35554
+ message.request = $root.GingerProviderProfileUpdateRequest.decode(reader, reader.uint32());
35555
+ break;
35556
+ case 2:
35557
+ message.action = reader.int32();
35558
+ break;
35559
+ default:
35560
+ reader.skipType(tag & 7);
35561
+ break;
35562
+ }
35563
+ }
35564
+ return message;
35565
+ };
35566
+
35567
+ /**
35568
+ * Decodes a GingerProviderProfileUpdateRequestCompleted message from the specified reader or buffer, length delimited.
35569
+ * @function decodeDelimited
35570
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35571
+ * @static
35572
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
35573
+ * @returns {GingerProviderProfileUpdateRequestCompleted} GingerProviderProfileUpdateRequestCompleted
35574
+ * @throws {Error} If the payload is not a reader or valid buffer
35575
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35576
+ */
35577
+ GingerProviderProfileUpdateRequestCompleted.decodeDelimited = function decodeDelimited(reader) {
35578
+ if (!(reader instanceof $Reader))
35579
+ reader = new $Reader(reader);
35580
+ return this.decode(reader, reader.uint32());
35581
+ };
35582
+
35583
+ /**
35584
+ * Verifies a GingerProviderProfileUpdateRequestCompleted message.
35585
+ * @function verify
35586
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35587
+ * @static
35588
+ * @param {Object.<string,*>} message Plain object to verify
35589
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
35590
+ */
35591
+ GingerProviderProfileUpdateRequestCompleted.verify = function verify(message) {
35592
+ if (typeof message !== "object" || message === null)
35593
+ return "object expected";
35594
+ if (message.request != null && message.hasOwnProperty("request")) {
35595
+ var error = $root.GingerProviderProfileUpdateRequest.verify(message.request);
35596
+ if (error)
35597
+ return "request." + error;
35598
+ }
35599
+ if (message.action != null && message.hasOwnProperty("action"))
35600
+ switch (message.action) {
35601
+ default:
35602
+ return "action: enum value expected";
35603
+ case 0:
35604
+ case 1:
35605
+ case 2:
35606
+ break;
35607
+ }
35608
+ return null;
35609
+ };
35610
+
35611
+ /**
35612
+ * Creates a GingerProviderProfileUpdateRequestCompleted message from a plain object. Also converts values to their respective internal types.
35613
+ * @function fromObject
35614
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35615
+ * @static
35616
+ * @param {Object.<string,*>} object Plain object
35617
+ * @returns {GingerProviderProfileUpdateRequestCompleted} GingerProviderProfileUpdateRequestCompleted
35618
+ */
35619
+ GingerProviderProfileUpdateRequestCompleted.fromObject = function fromObject(object) {
35620
+ if (object instanceof $root.GingerProviderProfileUpdateRequestCompleted)
35621
+ return object;
35622
+ var message = new $root.GingerProviderProfileUpdateRequestCompleted();
35623
+ if (object.request != null) {
35624
+ if (typeof object.request !== "object")
35625
+ throw TypeError(".GingerProviderProfileUpdateRequestCompleted.request: object expected");
35626
+ message.request = $root.GingerProviderProfileUpdateRequest.fromObject(object.request);
35627
+ }
35628
+ switch (object.action) {
35629
+ case "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN":
35630
+ case 0:
35631
+ message.action = 0;
35632
+ break;
35633
+ case "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED":
35634
+ case 1:
35635
+ message.action = 1;
35636
+ break;
35637
+ case "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED":
35638
+ case 2:
35639
+ message.action = 2;
35640
+ break;
35641
+ }
35642
+ return message;
35643
+ };
35644
+
35645
+ /**
35646
+ * Creates a plain object from a GingerProviderProfileUpdateRequestCompleted message. Also converts values to other types if specified.
35647
+ * @function toObject
35648
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35649
+ * @static
35650
+ * @param {GingerProviderProfileUpdateRequestCompleted} message GingerProviderProfileUpdateRequestCompleted
35651
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
35652
+ * @returns {Object.<string,*>} Plain object
35653
+ */
35654
+ GingerProviderProfileUpdateRequestCompleted.toObject = function toObject(message, options) {
35655
+ if (!options)
35656
+ options = {};
35657
+ var object = {};
35658
+ if (options.defaults) {
35659
+ object.request = null;
35660
+ object.action = options.enums === String ? "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN" : 0;
35661
+ }
35662
+ if (message.request != null && message.hasOwnProperty("request"))
35663
+ object.request = $root.GingerProviderProfileUpdateRequest.toObject(message.request, options);
35664
+ if (message.action != null && message.hasOwnProperty("action"))
35665
+ object.action = options.enums === String ? $root.GingerProviderProfileUpdateRequestAction[message.action] : message.action;
35666
+ return object;
35667
+ };
35668
+
35669
+ /**
35670
+ * Converts this GingerProviderProfileUpdateRequestCompleted to JSON.
35671
+ * @function toJSON
35672
+ * @memberof GingerProviderProfileUpdateRequestCompleted
35673
+ * @instance
35674
+ * @returns {Object.<string,*>} JSON object
35675
+ */
35676
+ GingerProviderProfileUpdateRequestCompleted.prototype.toJSON = function toJSON() {
35677
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
35678
+ };
35679
+
35680
+ return GingerProviderProfileUpdateRequestCompleted;
35681
+ })();
35682
+
35683
+ /**
35684
+ * GingerProviderProfileUpdateRequestAction enum.
35685
+ * @name GingerProviderProfileUpdateRequestAction
35686
+ * @enum {string}
35687
+ * @property {number} GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN=0 GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN value
35688
+ * @property {number} GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED=1 GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED value
35689
+ * @property {number} GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED=2 GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED value
35690
+ */
35691
+ $root.GingerProviderProfileUpdateRequestAction = (function() {
35692
+ var valuesById = {}, values = Object.create(valuesById);
35693
+ values[valuesById[0] = "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_UNKNOWN"] = 0;
35694
+ values[valuesById[1] = "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_APPROVED"] = 1;
35695
+ values[valuesById[2] = "GINGER_PROVIDER_PROFILE_UPDATE_REQUEST_ACTION_REJECTED"] = 2;
35696
+ return values;
35697
+ })();
35698
+
35699
+ $root.GingerProviderProfileUpdateRequest = (function() {
35700
+
35701
+ /**
35702
+ * Properties of a GingerProviderProfileUpdateRequest.
35703
+ * @name IGingerProviderProfileUpdateRequest
35704
+ * @interface IGingerProviderProfileUpdateRequest
35705
+ * @property {string|null} [id] GingerProviderProfileUpdateRequest id
35706
+ * @property {string|null} [hsClinicianId] GingerProviderProfileUpdateRequest hsClinicianId
35707
+ * @property {number|null} [gingerClinicianId] GingerProviderProfileUpdateRequest gingerClinicianId
35708
+ * @property {string|null} [gingerProviderId] GingerProviderProfileUpdateRequest gingerProviderId
35709
+ * @property {string|null} [providerEmail] GingerProviderProfileUpdateRequest providerEmail
35710
+ */
35711
+
35712
+ /**
35713
+ * Constructs a new GingerProviderProfileUpdateRequest.
35714
+ * @name GingerProviderProfileUpdateRequest
35715
+ * @classdesc Represents a GingerProviderProfileUpdateRequest.
35716
+ * @implements IGingerProviderProfileUpdateRequest
35717
+ * @constructor
35718
+ * @param {IGingerProviderProfileUpdateRequest=} [properties] Properties to set
35719
+ */
35720
+ function GingerProviderProfileUpdateRequest(properties) {
35721
+ if (properties)
35722
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
35723
+ if (properties[keys[i]] != null)
35724
+ this[keys[i]] = properties[keys[i]];
35725
+ }
35726
+
35727
+ /**
35728
+ * GingerProviderProfileUpdateRequest id.
35729
+ * @member {string} id
35730
+ * @memberof GingerProviderProfileUpdateRequest
35731
+ * @instance
35732
+ */
35733
+ GingerProviderProfileUpdateRequest.prototype.id = "";
35734
+
35735
+ /**
35736
+ * GingerProviderProfileUpdateRequest hsClinicianId.
35737
+ * @member {string} hsClinicianId
35738
+ * @memberof GingerProviderProfileUpdateRequest
35739
+ * @instance
35740
+ */
35741
+ GingerProviderProfileUpdateRequest.prototype.hsClinicianId = "";
35742
+
35743
+ /**
35744
+ * GingerProviderProfileUpdateRequest gingerClinicianId.
35745
+ * @member {number} gingerClinicianId
35746
+ * @memberof GingerProviderProfileUpdateRequest
35747
+ * @instance
35748
+ */
35749
+ GingerProviderProfileUpdateRequest.prototype.gingerClinicianId = 0;
35750
+
35751
+ /**
35752
+ * GingerProviderProfileUpdateRequest gingerProviderId.
35753
+ * @member {string} gingerProviderId
35754
+ * @memberof GingerProviderProfileUpdateRequest
35755
+ * @instance
35756
+ */
35757
+ GingerProviderProfileUpdateRequest.prototype.gingerProviderId = "";
35758
+
35759
+ /**
35760
+ * GingerProviderProfileUpdateRequest providerEmail.
35761
+ * @member {string} providerEmail
35762
+ * @memberof GingerProviderProfileUpdateRequest
35763
+ * @instance
35764
+ */
35765
+ GingerProviderProfileUpdateRequest.prototype.providerEmail = "";
35766
+
35767
+ /**
35768
+ * Creates a new GingerProviderProfileUpdateRequest instance using the specified properties.
35769
+ * @function create
35770
+ * @memberof GingerProviderProfileUpdateRequest
35771
+ * @static
35772
+ * @param {IGingerProviderProfileUpdateRequest=} [properties] Properties to set
35773
+ * @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest instance
35774
+ */
35775
+ GingerProviderProfileUpdateRequest.create = function create(properties) {
35776
+ return new GingerProviderProfileUpdateRequest(properties);
35777
+ };
35778
+
35779
+ /**
35780
+ * Encodes the specified GingerProviderProfileUpdateRequest message. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
35781
+ * @function encode
35782
+ * @memberof GingerProviderProfileUpdateRequest
35783
+ * @static
35784
+ * @param {IGingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest message or plain object to encode
35785
+ * @param {$protobuf.Writer} [writer] Writer to encode to
35786
+ * @returns {$protobuf.Writer} Writer
35787
+ */
35788
+ GingerProviderProfileUpdateRequest.encode = function encode(message, writer) {
35789
+ if (!writer)
35790
+ writer = $Writer.create();
35791
+ if (message.id != null && message.hasOwnProperty("id"))
35792
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
35793
+ if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
35794
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsClinicianId);
35795
+ if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
35796
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.gingerClinicianId);
35797
+ if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
35798
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.gingerProviderId);
35799
+ if (message.providerEmail != null && message.hasOwnProperty("providerEmail"))
35800
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.providerEmail);
35801
+ return writer;
35802
+ };
35803
+
35804
+ /**
35805
+ * Encodes the specified GingerProviderProfileUpdateRequest message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
35806
+ * @function encodeDelimited
35807
+ * @memberof GingerProviderProfileUpdateRequest
35808
+ * @static
35809
+ * @param {IGingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest message or plain object to encode
35810
+ * @param {$protobuf.Writer} [writer] Writer to encode to
35811
+ * @returns {$protobuf.Writer} Writer
35812
+ */
35813
+ GingerProviderProfileUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
35814
+ return this.encode(message, writer).ldelim();
35815
+ };
35816
+
35817
+ /**
35818
+ * Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer.
35819
+ * @function decode
35820
+ * @memberof GingerProviderProfileUpdateRequest
35821
+ * @static
35822
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
35823
+ * @param {number} [length] Message length if known beforehand
35824
+ * @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
35825
+ * @throws {Error} If the payload is not a reader or valid buffer
35826
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35827
+ */
35828
+ GingerProviderProfileUpdateRequest.decode = function decode(reader, length) {
35829
+ if (!(reader instanceof $Reader))
35830
+ reader = $Reader.create(reader);
35831
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderProfileUpdateRequest();
35832
+ while (reader.pos < end) {
35833
+ var tag = reader.uint32();
35834
+ switch (tag >>> 3) {
35835
+ case 1:
35836
+ message.id = reader.string();
35837
+ break;
35838
+ case 2:
35839
+ message.hsClinicianId = reader.string();
35840
+ break;
35841
+ case 3:
35842
+ message.gingerClinicianId = reader.uint32();
35843
+ break;
35844
+ case 4:
35845
+ message.gingerProviderId = reader.string();
35846
+ break;
35847
+ case 5:
35848
+ message.providerEmail = reader.string();
35849
+ break;
35850
+ default:
35851
+ reader.skipType(tag & 7);
35852
+ break;
35853
+ }
35854
+ }
35855
+ return message;
35856
+ };
35857
+
35858
+ /**
35859
+ * Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer, length delimited.
35860
+ * @function decodeDelimited
35861
+ * @memberof GingerProviderProfileUpdateRequest
35862
+ * @static
35863
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
35864
+ * @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
35865
+ * @throws {Error} If the payload is not a reader or valid buffer
35866
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35867
+ */
35868
+ GingerProviderProfileUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
35869
+ if (!(reader instanceof $Reader))
35870
+ reader = new $Reader(reader);
35871
+ return this.decode(reader, reader.uint32());
35872
+ };
35873
+
35874
+ /**
35875
+ * Verifies a GingerProviderProfileUpdateRequest message.
35876
+ * @function verify
35877
+ * @memberof GingerProviderProfileUpdateRequest
35878
+ * @static
35879
+ * @param {Object.<string,*>} message Plain object to verify
35880
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
35881
+ */
35882
+ GingerProviderProfileUpdateRequest.verify = function verify(message) {
35883
+ if (typeof message !== "object" || message === null)
35884
+ return "object expected";
35885
+ if (message.id != null && message.hasOwnProperty("id"))
35886
+ if (!$util.isString(message.id))
35887
+ return "id: string expected";
35888
+ if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
35889
+ if (!$util.isString(message.hsClinicianId))
35890
+ return "hsClinicianId: string expected";
35891
+ if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
35892
+ if (!$util.isInteger(message.gingerClinicianId))
35893
+ return "gingerClinicianId: integer expected";
35894
+ if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
35895
+ if (!$util.isString(message.gingerProviderId))
35896
+ return "gingerProviderId: string expected";
35897
+ if (message.providerEmail != null && message.hasOwnProperty("providerEmail"))
35898
+ if (!$util.isString(message.providerEmail))
35899
+ return "providerEmail: string expected";
35900
+ return null;
35901
+ };
35902
+
35903
+ /**
35904
+ * Creates a GingerProviderProfileUpdateRequest message from a plain object. Also converts values to their respective internal types.
35905
+ * @function fromObject
35906
+ * @memberof GingerProviderProfileUpdateRequest
35907
+ * @static
35908
+ * @param {Object.<string,*>} object Plain object
35909
+ * @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
35910
+ */
35911
+ GingerProviderProfileUpdateRequest.fromObject = function fromObject(object) {
35912
+ if (object instanceof $root.GingerProviderProfileUpdateRequest)
35913
+ return object;
35914
+ var message = new $root.GingerProviderProfileUpdateRequest();
35915
+ if (object.id != null)
35916
+ message.id = String(object.id);
35917
+ if (object.hsClinicianId != null)
35918
+ message.hsClinicianId = String(object.hsClinicianId);
35919
+ if (object.gingerClinicianId != null)
35920
+ message.gingerClinicianId = object.gingerClinicianId >>> 0;
35921
+ if (object.gingerProviderId != null)
35922
+ message.gingerProviderId = String(object.gingerProviderId);
35923
+ if (object.providerEmail != null)
35924
+ message.providerEmail = String(object.providerEmail);
35925
+ return message;
35926
+ };
35927
+
35928
+ /**
35929
+ * Creates a plain object from a GingerProviderProfileUpdateRequest message. Also converts values to other types if specified.
35930
+ * @function toObject
35931
+ * @memberof GingerProviderProfileUpdateRequest
35932
+ * @static
35933
+ * @param {GingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest
35934
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
35935
+ * @returns {Object.<string,*>} Plain object
35936
+ */
35937
+ GingerProviderProfileUpdateRequest.toObject = function toObject(message, options) {
35938
+ if (!options)
35939
+ options = {};
35940
+ var object = {};
35941
+ if (options.defaults) {
35942
+ object.id = "";
35943
+ object.hsClinicianId = "";
35944
+ object.gingerClinicianId = 0;
35945
+ object.gingerProviderId = "";
35946
+ object.providerEmail = "";
35947
+ }
35948
+ if (message.id != null && message.hasOwnProperty("id"))
35949
+ object.id = message.id;
35950
+ if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
35951
+ object.hsClinicianId = message.hsClinicianId;
35952
+ if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
35953
+ object.gingerClinicianId = message.gingerClinicianId;
35954
+ if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
35955
+ object.gingerProviderId = message.gingerProviderId;
35956
+ if (message.providerEmail != null && message.hasOwnProperty("providerEmail"))
35957
+ object.providerEmail = message.providerEmail;
35958
+ return object;
35959
+ };
35960
+
35961
+ /**
35962
+ * Converts this GingerProviderProfileUpdateRequest to JSON.
35963
+ * @function toJSON
35964
+ * @memberof GingerProviderProfileUpdateRequest
35965
+ * @instance
35966
+ * @returns {Object.<string,*>} JSON object
35967
+ */
35968
+ GingerProviderProfileUpdateRequest.prototype.toJSON = function toJSON() {
35969
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
35970
+ };
35971
+
35972
+ return GingerProviderProfileUpdateRequest;
35973
+ })();
35974
+
35258
35975
  $root.b2b = (function() {
35259
35976
 
35260
35977
  /**
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.680.0"
19
+ "version": "1.682.0"
20
20
  }