@headspace/protos-events 1.680.0 → 1.681.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,307 @@ 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
+
13333
+ /** Represents a GingerProviderProfileUpdateRequest. */
13334
+ export class GingerProviderProfileUpdateRequest implements IGingerProviderProfileUpdateRequest {
13335
+
13336
+ /**
13337
+ * Constructs a new GingerProviderProfileUpdateRequest.
13338
+ * @param [properties] Properties to set
13339
+ */
13340
+ constructor(properties?: IGingerProviderProfileUpdateRequest);
13341
+
13342
+ /** GingerProviderProfileUpdateRequest id. */
13343
+ public id: string;
13344
+
13345
+ /** GingerProviderProfileUpdateRequest hsClinicianId. */
13346
+ public hsClinicianId: string;
13347
+
13348
+ /** GingerProviderProfileUpdateRequest gingerClinicianId. */
13349
+ public gingerClinicianId: number;
13350
+
13351
+ /** GingerProviderProfileUpdateRequest gingerProviderId. */
13352
+ public gingerProviderId: string;
13353
+
13354
+ /**
13355
+ * Creates a new GingerProviderProfileUpdateRequest instance using the specified properties.
13356
+ * @param [properties] Properties to set
13357
+ * @returns GingerProviderProfileUpdateRequest instance
13358
+ */
13359
+ public static create(properties?: IGingerProviderProfileUpdateRequest): GingerProviderProfileUpdateRequest;
13360
+
13361
+ /**
13362
+ * Encodes the specified GingerProviderProfileUpdateRequest message. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
13363
+ * @param message GingerProviderProfileUpdateRequest message or plain object to encode
13364
+ * @param [writer] Writer to encode to
13365
+ * @returns Writer
13366
+ */
13367
+ public static encode(message: IGingerProviderProfileUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
13368
+
13369
+ /**
13370
+ * Encodes the specified GingerProviderProfileUpdateRequest message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
13371
+ * @param message GingerProviderProfileUpdateRequest message or plain object to encode
13372
+ * @param [writer] Writer to encode to
13373
+ * @returns Writer
13374
+ */
13375
+ public static encodeDelimited(message: IGingerProviderProfileUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer;
13376
+
13377
+ /**
13378
+ * Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer.
13379
+ * @param reader Reader or buffer to decode from
13380
+ * @param [length] Message length if known beforehand
13381
+ * @returns GingerProviderProfileUpdateRequest
13382
+ * @throws {Error} If the payload is not a reader or valid buffer
13383
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13384
+ */
13385
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerProviderProfileUpdateRequest;
13386
+
13387
+ /**
13388
+ * Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer, length delimited.
13389
+ * @param reader Reader or buffer to decode from
13390
+ * @returns GingerProviderProfileUpdateRequest
13391
+ * @throws {Error} If the payload is not a reader or valid buffer
13392
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13393
+ */
13394
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerProviderProfileUpdateRequest;
13395
+
13396
+ /**
13397
+ * Verifies a GingerProviderProfileUpdateRequest message.
13398
+ * @param message Plain object to verify
13399
+ * @returns `null` if valid, otherwise the reason why it is not
13400
+ */
13401
+ public static verify(message: { [k: string]: any }): (string|null);
13402
+
13403
+ /**
13404
+ * Creates a GingerProviderProfileUpdateRequest message from a plain object. Also converts values to their respective internal types.
13405
+ * @param object Plain object
13406
+ * @returns GingerProviderProfileUpdateRequest
13407
+ */
13408
+ public static fromObject(object: { [k: string]: any }): GingerProviderProfileUpdateRequest;
13409
+
13410
+ /**
13411
+ * Creates a plain object from a GingerProviderProfileUpdateRequest message. Also converts values to other types if specified.
13412
+ * @param message GingerProviderProfileUpdateRequest
13413
+ * @param [options] Conversion options
13414
+ * @returns Plain object
13415
+ */
13416
+ public static toObject(message: GingerProviderProfileUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
13417
+
13418
+ /**
13419
+ * Converts this GingerProviderProfileUpdateRequest to JSON.
13420
+ * @returns JSON object
13421
+ */
13422
+ public toJSON(): { [k: string]: any };
13423
+ }
13424
+
13124
13425
  /** Namespace b2b. */
13125
13426
  export namespace b2b {
13126
13427
 
package/lib/index.js CHANGED
@@ -35255,6 +35255,701 @@ $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
+ */
35710
+
35711
+ /**
35712
+ * Constructs a new GingerProviderProfileUpdateRequest.
35713
+ * @name GingerProviderProfileUpdateRequest
35714
+ * @classdesc Represents a GingerProviderProfileUpdateRequest.
35715
+ * @implements IGingerProviderProfileUpdateRequest
35716
+ * @constructor
35717
+ * @param {IGingerProviderProfileUpdateRequest=} [properties] Properties to set
35718
+ */
35719
+ function GingerProviderProfileUpdateRequest(properties) {
35720
+ if (properties)
35721
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
35722
+ if (properties[keys[i]] != null)
35723
+ this[keys[i]] = properties[keys[i]];
35724
+ }
35725
+
35726
+ /**
35727
+ * GingerProviderProfileUpdateRequest id.
35728
+ * @member {string} id
35729
+ * @memberof GingerProviderProfileUpdateRequest
35730
+ * @instance
35731
+ */
35732
+ GingerProviderProfileUpdateRequest.prototype.id = "";
35733
+
35734
+ /**
35735
+ * GingerProviderProfileUpdateRequest hsClinicianId.
35736
+ * @member {string} hsClinicianId
35737
+ * @memberof GingerProviderProfileUpdateRequest
35738
+ * @instance
35739
+ */
35740
+ GingerProviderProfileUpdateRequest.prototype.hsClinicianId = "";
35741
+
35742
+ /**
35743
+ * GingerProviderProfileUpdateRequest gingerClinicianId.
35744
+ * @member {number} gingerClinicianId
35745
+ * @memberof GingerProviderProfileUpdateRequest
35746
+ * @instance
35747
+ */
35748
+ GingerProviderProfileUpdateRequest.prototype.gingerClinicianId = 0;
35749
+
35750
+ /**
35751
+ * GingerProviderProfileUpdateRequest gingerProviderId.
35752
+ * @member {string} gingerProviderId
35753
+ * @memberof GingerProviderProfileUpdateRequest
35754
+ * @instance
35755
+ */
35756
+ GingerProviderProfileUpdateRequest.prototype.gingerProviderId = "";
35757
+
35758
+ /**
35759
+ * Creates a new GingerProviderProfileUpdateRequest instance using the specified properties.
35760
+ * @function create
35761
+ * @memberof GingerProviderProfileUpdateRequest
35762
+ * @static
35763
+ * @param {IGingerProviderProfileUpdateRequest=} [properties] Properties to set
35764
+ * @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest instance
35765
+ */
35766
+ GingerProviderProfileUpdateRequest.create = function create(properties) {
35767
+ return new GingerProviderProfileUpdateRequest(properties);
35768
+ };
35769
+
35770
+ /**
35771
+ * Encodes the specified GingerProviderProfileUpdateRequest message. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
35772
+ * @function encode
35773
+ * @memberof GingerProviderProfileUpdateRequest
35774
+ * @static
35775
+ * @param {IGingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest message or plain object to encode
35776
+ * @param {$protobuf.Writer} [writer] Writer to encode to
35777
+ * @returns {$protobuf.Writer} Writer
35778
+ */
35779
+ GingerProviderProfileUpdateRequest.encode = function encode(message, writer) {
35780
+ if (!writer)
35781
+ writer = $Writer.create();
35782
+ if (message.id != null && message.hasOwnProperty("id"))
35783
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
35784
+ if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
35785
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsClinicianId);
35786
+ if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
35787
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.gingerClinicianId);
35788
+ if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
35789
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.gingerProviderId);
35790
+ return writer;
35791
+ };
35792
+
35793
+ /**
35794
+ * Encodes the specified GingerProviderProfileUpdateRequest message, length delimited. Does not implicitly {@link GingerProviderProfileUpdateRequest.verify|verify} messages.
35795
+ * @function encodeDelimited
35796
+ * @memberof GingerProviderProfileUpdateRequest
35797
+ * @static
35798
+ * @param {IGingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest message or plain object to encode
35799
+ * @param {$protobuf.Writer} [writer] Writer to encode to
35800
+ * @returns {$protobuf.Writer} Writer
35801
+ */
35802
+ GingerProviderProfileUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
35803
+ return this.encode(message, writer).ldelim();
35804
+ };
35805
+
35806
+ /**
35807
+ * Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer.
35808
+ * @function decode
35809
+ * @memberof GingerProviderProfileUpdateRequest
35810
+ * @static
35811
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
35812
+ * @param {number} [length] Message length if known beforehand
35813
+ * @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
35814
+ * @throws {Error} If the payload is not a reader or valid buffer
35815
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35816
+ */
35817
+ GingerProviderProfileUpdateRequest.decode = function decode(reader, length) {
35818
+ if (!(reader instanceof $Reader))
35819
+ reader = $Reader.create(reader);
35820
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderProfileUpdateRequest();
35821
+ while (reader.pos < end) {
35822
+ var tag = reader.uint32();
35823
+ switch (tag >>> 3) {
35824
+ case 1:
35825
+ message.id = reader.string();
35826
+ break;
35827
+ case 2:
35828
+ message.hsClinicianId = reader.string();
35829
+ break;
35830
+ case 3:
35831
+ message.gingerClinicianId = reader.uint32();
35832
+ break;
35833
+ case 4:
35834
+ message.gingerProviderId = reader.string();
35835
+ break;
35836
+ default:
35837
+ reader.skipType(tag & 7);
35838
+ break;
35839
+ }
35840
+ }
35841
+ return message;
35842
+ };
35843
+
35844
+ /**
35845
+ * Decodes a GingerProviderProfileUpdateRequest message from the specified reader or buffer, length delimited.
35846
+ * @function decodeDelimited
35847
+ * @memberof GingerProviderProfileUpdateRequest
35848
+ * @static
35849
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
35850
+ * @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
35851
+ * @throws {Error} If the payload is not a reader or valid buffer
35852
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35853
+ */
35854
+ GingerProviderProfileUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
35855
+ if (!(reader instanceof $Reader))
35856
+ reader = new $Reader(reader);
35857
+ return this.decode(reader, reader.uint32());
35858
+ };
35859
+
35860
+ /**
35861
+ * Verifies a GingerProviderProfileUpdateRequest message.
35862
+ * @function verify
35863
+ * @memberof GingerProviderProfileUpdateRequest
35864
+ * @static
35865
+ * @param {Object.<string,*>} message Plain object to verify
35866
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
35867
+ */
35868
+ GingerProviderProfileUpdateRequest.verify = function verify(message) {
35869
+ if (typeof message !== "object" || message === null)
35870
+ return "object expected";
35871
+ if (message.id != null && message.hasOwnProperty("id"))
35872
+ if (!$util.isString(message.id))
35873
+ return "id: string expected";
35874
+ if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
35875
+ if (!$util.isString(message.hsClinicianId))
35876
+ return "hsClinicianId: string expected";
35877
+ if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
35878
+ if (!$util.isInteger(message.gingerClinicianId))
35879
+ return "gingerClinicianId: integer expected";
35880
+ if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
35881
+ if (!$util.isString(message.gingerProviderId))
35882
+ return "gingerProviderId: string expected";
35883
+ return null;
35884
+ };
35885
+
35886
+ /**
35887
+ * Creates a GingerProviderProfileUpdateRequest message from a plain object. Also converts values to their respective internal types.
35888
+ * @function fromObject
35889
+ * @memberof GingerProviderProfileUpdateRequest
35890
+ * @static
35891
+ * @param {Object.<string,*>} object Plain object
35892
+ * @returns {GingerProviderProfileUpdateRequest} GingerProviderProfileUpdateRequest
35893
+ */
35894
+ GingerProviderProfileUpdateRequest.fromObject = function fromObject(object) {
35895
+ if (object instanceof $root.GingerProviderProfileUpdateRequest)
35896
+ return object;
35897
+ var message = new $root.GingerProviderProfileUpdateRequest();
35898
+ if (object.id != null)
35899
+ message.id = String(object.id);
35900
+ if (object.hsClinicianId != null)
35901
+ message.hsClinicianId = String(object.hsClinicianId);
35902
+ if (object.gingerClinicianId != null)
35903
+ message.gingerClinicianId = object.gingerClinicianId >>> 0;
35904
+ if (object.gingerProviderId != null)
35905
+ message.gingerProviderId = String(object.gingerProviderId);
35906
+ return message;
35907
+ };
35908
+
35909
+ /**
35910
+ * Creates a plain object from a GingerProviderProfileUpdateRequest message. Also converts values to other types if specified.
35911
+ * @function toObject
35912
+ * @memberof GingerProviderProfileUpdateRequest
35913
+ * @static
35914
+ * @param {GingerProviderProfileUpdateRequest} message GingerProviderProfileUpdateRequest
35915
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
35916
+ * @returns {Object.<string,*>} Plain object
35917
+ */
35918
+ GingerProviderProfileUpdateRequest.toObject = function toObject(message, options) {
35919
+ if (!options)
35920
+ options = {};
35921
+ var object = {};
35922
+ if (options.defaults) {
35923
+ object.id = "";
35924
+ object.hsClinicianId = "";
35925
+ object.gingerClinicianId = 0;
35926
+ object.gingerProviderId = "";
35927
+ }
35928
+ if (message.id != null && message.hasOwnProperty("id"))
35929
+ object.id = message.id;
35930
+ if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
35931
+ object.hsClinicianId = message.hsClinicianId;
35932
+ if (message.gingerClinicianId != null && message.hasOwnProperty("gingerClinicianId"))
35933
+ object.gingerClinicianId = message.gingerClinicianId;
35934
+ if (message.gingerProviderId != null && message.hasOwnProperty("gingerProviderId"))
35935
+ object.gingerProviderId = message.gingerProviderId;
35936
+ return object;
35937
+ };
35938
+
35939
+ /**
35940
+ * Converts this GingerProviderProfileUpdateRequest to JSON.
35941
+ * @function toJSON
35942
+ * @memberof GingerProviderProfileUpdateRequest
35943
+ * @instance
35944
+ * @returns {Object.<string,*>} JSON object
35945
+ */
35946
+ GingerProviderProfileUpdateRequest.prototype.toJSON = function toJSON() {
35947
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
35948
+ };
35949
+
35950
+ return GingerProviderProfileUpdateRequest;
35951
+ })();
35952
+
35258
35953
  $root.b2b = (function() {
35259
35954
 
35260
35955
  /**
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.681.0"
20
20
  }