@headspace/protos-events 1.789.0 → 1.791.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 +126 -0
- package/lib/index.js +334 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -52061,6 +52061,120 @@ export class PartnerEventUpdated implements IPartnerEventUpdated {
|
|
|
52061
52061
|
public toJSON(): { [k: string]: any };
|
|
52062
52062
|
}
|
|
52063
52063
|
|
|
52064
|
+
/** Properties of a PartnerSignalStateAssigned. */
|
|
52065
|
+
export interface IPartnerSignalStateAssigned {
|
|
52066
|
+
|
|
52067
|
+
/** Unique identifier of the partner (from PAPI service). Formatted as a 24-char hex string. */
|
|
52068
|
+
partnerId?: (string|null);
|
|
52069
|
+
|
|
52070
|
+
/** Name of the partner. */
|
|
52071
|
+
partnerName?: (string|null);
|
|
52072
|
+
|
|
52073
|
+
/** Assigned signal. */
|
|
52074
|
+
signal?: (string|null);
|
|
52075
|
+
|
|
52076
|
+
/** Headspace user that was assigned the signal (e.g. HSUSER_FOOBAR). */
|
|
52077
|
+
hsUserId?: (string|null);
|
|
52078
|
+
|
|
52079
|
+
/** UTC epoch milliseconds - when the signal was assigned. */
|
|
52080
|
+
createdAtTimestamp?: (number|Long|null);
|
|
52081
|
+
}
|
|
52082
|
+
|
|
52083
|
+
/** Represents a PartnerSignalStateAssigned. */
|
|
52084
|
+
export class PartnerSignalStateAssigned implements IPartnerSignalStateAssigned {
|
|
52085
|
+
|
|
52086
|
+
/**
|
|
52087
|
+
* Constructs a new PartnerSignalStateAssigned.
|
|
52088
|
+
* @param [properties] Properties to set
|
|
52089
|
+
*/
|
|
52090
|
+
constructor(properties?: IPartnerSignalStateAssigned);
|
|
52091
|
+
|
|
52092
|
+
/** Unique identifier of the partner (from PAPI service). Formatted as a 24-char hex string. */
|
|
52093
|
+
public partnerId: string;
|
|
52094
|
+
|
|
52095
|
+
/** Name of the partner. */
|
|
52096
|
+
public partnerName: string;
|
|
52097
|
+
|
|
52098
|
+
/** Assigned signal. */
|
|
52099
|
+
public signal: string;
|
|
52100
|
+
|
|
52101
|
+
/** Headspace user that was assigned the signal (e.g. HSUSER_FOOBAR). */
|
|
52102
|
+
public hsUserId: string;
|
|
52103
|
+
|
|
52104
|
+
/** UTC epoch milliseconds - when the signal was assigned. */
|
|
52105
|
+
public createdAtTimestamp: (number|Long);
|
|
52106
|
+
|
|
52107
|
+
/**
|
|
52108
|
+
* Creates a new PartnerSignalStateAssigned instance using the specified properties.
|
|
52109
|
+
* @param [properties] Properties to set
|
|
52110
|
+
* @returns PartnerSignalStateAssigned instance
|
|
52111
|
+
*/
|
|
52112
|
+
public static create(properties?: IPartnerSignalStateAssigned): PartnerSignalStateAssigned;
|
|
52113
|
+
|
|
52114
|
+
/**
|
|
52115
|
+
* Encodes the specified PartnerSignalStateAssigned message. Does not implicitly {@link PartnerSignalStateAssigned.verify|verify} messages.
|
|
52116
|
+
* @param message PartnerSignalStateAssigned message or plain object to encode
|
|
52117
|
+
* @param [writer] Writer to encode to
|
|
52118
|
+
* @returns Writer
|
|
52119
|
+
*/
|
|
52120
|
+
public static encode(message: IPartnerSignalStateAssigned, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
52121
|
+
|
|
52122
|
+
/**
|
|
52123
|
+
* Encodes the specified PartnerSignalStateAssigned message, length delimited. Does not implicitly {@link PartnerSignalStateAssigned.verify|verify} messages.
|
|
52124
|
+
* @param message PartnerSignalStateAssigned message or plain object to encode
|
|
52125
|
+
* @param [writer] Writer to encode to
|
|
52126
|
+
* @returns Writer
|
|
52127
|
+
*/
|
|
52128
|
+
public static encodeDelimited(message: IPartnerSignalStateAssigned, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
52129
|
+
|
|
52130
|
+
/**
|
|
52131
|
+
* Decodes a PartnerSignalStateAssigned message from the specified reader or buffer.
|
|
52132
|
+
* @param reader Reader or buffer to decode from
|
|
52133
|
+
* @param [length] Message length if known beforehand
|
|
52134
|
+
* @returns PartnerSignalStateAssigned
|
|
52135
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52136
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52137
|
+
*/
|
|
52138
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PartnerSignalStateAssigned;
|
|
52139
|
+
|
|
52140
|
+
/**
|
|
52141
|
+
* Decodes a PartnerSignalStateAssigned message from the specified reader or buffer, length delimited.
|
|
52142
|
+
* @param reader Reader or buffer to decode from
|
|
52143
|
+
* @returns PartnerSignalStateAssigned
|
|
52144
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52145
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52146
|
+
*/
|
|
52147
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PartnerSignalStateAssigned;
|
|
52148
|
+
|
|
52149
|
+
/**
|
|
52150
|
+
* Verifies a PartnerSignalStateAssigned message.
|
|
52151
|
+
* @param message Plain object to verify
|
|
52152
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
52153
|
+
*/
|
|
52154
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
52155
|
+
|
|
52156
|
+
/**
|
|
52157
|
+
* Creates a PartnerSignalStateAssigned message from a plain object. Also converts values to their respective internal types.
|
|
52158
|
+
* @param object Plain object
|
|
52159
|
+
* @returns PartnerSignalStateAssigned
|
|
52160
|
+
*/
|
|
52161
|
+
public static fromObject(object: { [k: string]: any }): PartnerSignalStateAssigned;
|
|
52162
|
+
|
|
52163
|
+
/**
|
|
52164
|
+
* Creates a plain object from a PartnerSignalStateAssigned message. Also converts values to other types if specified.
|
|
52165
|
+
* @param message PartnerSignalStateAssigned
|
|
52166
|
+
* @param [options] Conversion options
|
|
52167
|
+
* @returns Plain object
|
|
52168
|
+
*/
|
|
52169
|
+
public static toObject(message: PartnerSignalStateAssigned, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
52170
|
+
|
|
52171
|
+
/**
|
|
52172
|
+
* Converts this PartnerSignalStateAssigned to JSON.
|
|
52173
|
+
* @returns JSON object
|
|
52174
|
+
*/
|
|
52175
|
+
public toJSON(): { [k: string]: any };
|
|
52176
|
+
}
|
|
52177
|
+
|
|
52064
52178
|
/** Properties of a PHQAssessmentAssigned. */
|
|
52065
52179
|
export interface IPHQAssessmentAssigned {
|
|
52066
52180
|
|
|
@@ -63917,6 +64031,9 @@ export namespace clinical {
|
|
|
63917
64031
|
|
|
63918
64032
|
/** ClinicalAvailabilityOffers capabilityColor */
|
|
63919
64033
|
capabilityColor?: (clinical.ClinicalAvailabilityCapabilityColor|null);
|
|
64034
|
+
|
|
64035
|
+
/** ClinicalAvailabilityOffers isSingleProviderSearch */
|
|
64036
|
+
isSingleProviderSearch?: (boolean|null);
|
|
63920
64037
|
}
|
|
63921
64038
|
|
|
63922
64039
|
/** Represents a ClinicalAvailabilityOffers. */
|
|
@@ -63982,6 +64099,9 @@ export namespace clinical {
|
|
|
63982
64099
|
/** ClinicalAvailabilityOffers capabilityColor. */
|
|
63983
64100
|
public capabilityColor: clinical.ClinicalAvailabilityCapabilityColor;
|
|
63984
64101
|
|
|
64102
|
+
/** ClinicalAvailabilityOffers isSingleProviderSearch. */
|
|
64103
|
+
public isSingleProviderSearch: boolean;
|
|
64104
|
+
|
|
63985
64105
|
/**
|
|
63986
64106
|
* Creates a new ClinicalAvailabilityOffers instance using the specified properties.
|
|
63987
64107
|
* @param [properties] Properties to set
|
|
@@ -67073,6 +67193,9 @@ export namespace clinical {
|
|
|
67073
67193
|
|
|
67074
67194
|
/** UnifiedAvailabilityOffered locationType */
|
|
67075
67195
|
locationType?: (clinical.ClinicalPartnerAppointmentLocationType|null);
|
|
67196
|
+
|
|
67197
|
+
/** UnifiedAvailabilityOffered isSingleProviderSearch */
|
|
67198
|
+
isSingleProviderSearch?: (boolean|null);
|
|
67076
67199
|
}
|
|
67077
67200
|
|
|
67078
67201
|
/** Represents an UnifiedAvailabilityOffered. */
|
|
@@ -67150,6 +67273,9 @@ export namespace clinical {
|
|
|
67150
67273
|
/** UnifiedAvailabilityOffered locationType. */
|
|
67151
67274
|
public locationType: clinical.ClinicalPartnerAppointmentLocationType;
|
|
67152
67275
|
|
|
67276
|
+
/** UnifiedAvailabilityOffered isSingleProviderSearch. */
|
|
67277
|
+
public isSingleProviderSearch: boolean;
|
|
67278
|
+
|
|
67153
67279
|
/**
|
|
67154
67280
|
* Creates a new UnifiedAvailabilityOffered instance using the specified properties.
|
|
67155
67281
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -148157,6 +148157,296 @@ $root.PartnerEventUpdated = (function() {
|
|
|
148157
148157
|
return PartnerEventUpdated;
|
|
148158
148158
|
})();
|
|
148159
148159
|
|
|
148160
|
+
$root.PartnerSignalStateAssigned = (function() {
|
|
148161
|
+
|
|
148162
|
+
/**
|
|
148163
|
+
* Properties of a PartnerSignalStateAssigned.
|
|
148164
|
+
* @name IPartnerSignalStateAssigned
|
|
148165
|
+
* @interface IPartnerSignalStateAssigned
|
|
148166
|
+
* @property {string|null} [partnerId] Unique identifier of the partner (from PAPI service). Formatted as a 24-char hex string.
|
|
148167
|
+
* @property {string|null} [partnerName] Name of the partner.
|
|
148168
|
+
* @property {string|null} [signal] Assigned signal.
|
|
148169
|
+
* @property {string|null} [hsUserId] Headspace user that was assigned the signal (e.g. HSUSER_FOOBAR).
|
|
148170
|
+
* @property {number|Long|null} [createdAtTimestamp] UTC epoch milliseconds - when the signal was assigned.
|
|
148171
|
+
*/
|
|
148172
|
+
|
|
148173
|
+
/**
|
|
148174
|
+
* Constructs a new PartnerSignalStateAssigned.
|
|
148175
|
+
* @name PartnerSignalStateAssigned
|
|
148176
|
+
* @classdesc Represents a PartnerSignalStateAssigned.
|
|
148177
|
+
* @implements IPartnerSignalStateAssigned
|
|
148178
|
+
* @constructor
|
|
148179
|
+
* @param {IPartnerSignalStateAssigned=} [properties] Properties to set
|
|
148180
|
+
*/
|
|
148181
|
+
function PartnerSignalStateAssigned(properties) {
|
|
148182
|
+
if (properties)
|
|
148183
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
148184
|
+
if (properties[keys[i]] != null)
|
|
148185
|
+
this[keys[i]] = properties[keys[i]];
|
|
148186
|
+
}
|
|
148187
|
+
|
|
148188
|
+
/**
|
|
148189
|
+
* Unique identifier of the partner (from PAPI service). Formatted as a 24-char hex string.
|
|
148190
|
+
* @member {string} partnerId
|
|
148191
|
+
* @memberof PartnerSignalStateAssigned
|
|
148192
|
+
* @instance
|
|
148193
|
+
*/
|
|
148194
|
+
PartnerSignalStateAssigned.prototype.partnerId = "";
|
|
148195
|
+
|
|
148196
|
+
/**
|
|
148197
|
+
* Name of the partner.
|
|
148198
|
+
* @member {string} partnerName
|
|
148199
|
+
* @memberof PartnerSignalStateAssigned
|
|
148200
|
+
* @instance
|
|
148201
|
+
*/
|
|
148202
|
+
PartnerSignalStateAssigned.prototype.partnerName = "";
|
|
148203
|
+
|
|
148204
|
+
/**
|
|
148205
|
+
* Assigned signal.
|
|
148206
|
+
* @member {string} signal
|
|
148207
|
+
* @memberof PartnerSignalStateAssigned
|
|
148208
|
+
* @instance
|
|
148209
|
+
*/
|
|
148210
|
+
PartnerSignalStateAssigned.prototype.signal = "";
|
|
148211
|
+
|
|
148212
|
+
/**
|
|
148213
|
+
* Headspace user that was assigned the signal (e.g. HSUSER_FOOBAR).
|
|
148214
|
+
* @member {string} hsUserId
|
|
148215
|
+
* @memberof PartnerSignalStateAssigned
|
|
148216
|
+
* @instance
|
|
148217
|
+
*/
|
|
148218
|
+
PartnerSignalStateAssigned.prototype.hsUserId = "";
|
|
148219
|
+
|
|
148220
|
+
/**
|
|
148221
|
+
* UTC epoch milliseconds - when the signal was assigned.
|
|
148222
|
+
* @member {number|Long} createdAtTimestamp
|
|
148223
|
+
* @memberof PartnerSignalStateAssigned
|
|
148224
|
+
* @instance
|
|
148225
|
+
*/
|
|
148226
|
+
PartnerSignalStateAssigned.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
148227
|
+
|
|
148228
|
+
/**
|
|
148229
|
+
* Creates a new PartnerSignalStateAssigned instance using the specified properties.
|
|
148230
|
+
* @function create
|
|
148231
|
+
* @memberof PartnerSignalStateAssigned
|
|
148232
|
+
* @static
|
|
148233
|
+
* @param {IPartnerSignalStateAssigned=} [properties] Properties to set
|
|
148234
|
+
* @returns {PartnerSignalStateAssigned} PartnerSignalStateAssigned instance
|
|
148235
|
+
*/
|
|
148236
|
+
PartnerSignalStateAssigned.create = function create(properties) {
|
|
148237
|
+
return new PartnerSignalStateAssigned(properties);
|
|
148238
|
+
};
|
|
148239
|
+
|
|
148240
|
+
/**
|
|
148241
|
+
* Encodes the specified PartnerSignalStateAssigned message. Does not implicitly {@link PartnerSignalStateAssigned.verify|verify} messages.
|
|
148242
|
+
* @function encode
|
|
148243
|
+
* @memberof PartnerSignalStateAssigned
|
|
148244
|
+
* @static
|
|
148245
|
+
* @param {IPartnerSignalStateAssigned} message PartnerSignalStateAssigned message or plain object to encode
|
|
148246
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148247
|
+
* @returns {$protobuf.Writer} Writer
|
|
148248
|
+
*/
|
|
148249
|
+
PartnerSignalStateAssigned.encode = function encode(message, writer) {
|
|
148250
|
+
if (!writer)
|
|
148251
|
+
writer = $Writer.create();
|
|
148252
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
148253
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.partnerId);
|
|
148254
|
+
if (message.partnerName != null && message.hasOwnProperty("partnerName"))
|
|
148255
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.partnerName);
|
|
148256
|
+
if (message.signal != null && message.hasOwnProperty("signal"))
|
|
148257
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.signal);
|
|
148258
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
148259
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.hsUserId);
|
|
148260
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
148261
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAtTimestamp);
|
|
148262
|
+
return writer;
|
|
148263
|
+
};
|
|
148264
|
+
|
|
148265
|
+
/**
|
|
148266
|
+
* Encodes the specified PartnerSignalStateAssigned message, length delimited. Does not implicitly {@link PartnerSignalStateAssigned.verify|verify} messages.
|
|
148267
|
+
* @function encodeDelimited
|
|
148268
|
+
* @memberof PartnerSignalStateAssigned
|
|
148269
|
+
* @static
|
|
148270
|
+
* @param {IPartnerSignalStateAssigned} message PartnerSignalStateAssigned message or plain object to encode
|
|
148271
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148272
|
+
* @returns {$protobuf.Writer} Writer
|
|
148273
|
+
*/
|
|
148274
|
+
PartnerSignalStateAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
148275
|
+
return this.encode(message, writer).ldelim();
|
|
148276
|
+
};
|
|
148277
|
+
|
|
148278
|
+
/**
|
|
148279
|
+
* Decodes a PartnerSignalStateAssigned message from the specified reader or buffer.
|
|
148280
|
+
* @function decode
|
|
148281
|
+
* @memberof PartnerSignalStateAssigned
|
|
148282
|
+
* @static
|
|
148283
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148284
|
+
* @param {number} [length] Message length if known beforehand
|
|
148285
|
+
* @returns {PartnerSignalStateAssigned} PartnerSignalStateAssigned
|
|
148286
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148287
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148288
|
+
*/
|
|
148289
|
+
PartnerSignalStateAssigned.decode = function decode(reader, length) {
|
|
148290
|
+
if (!(reader instanceof $Reader))
|
|
148291
|
+
reader = $Reader.create(reader);
|
|
148292
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PartnerSignalStateAssigned();
|
|
148293
|
+
while (reader.pos < end) {
|
|
148294
|
+
var tag = reader.uint32();
|
|
148295
|
+
switch (tag >>> 3) {
|
|
148296
|
+
case 1:
|
|
148297
|
+
message.partnerId = reader.string();
|
|
148298
|
+
break;
|
|
148299
|
+
case 2:
|
|
148300
|
+
message.partnerName = reader.string();
|
|
148301
|
+
break;
|
|
148302
|
+
case 3:
|
|
148303
|
+
message.signal = reader.string();
|
|
148304
|
+
break;
|
|
148305
|
+
case 4:
|
|
148306
|
+
message.hsUserId = reader.string();
|
|
148307
|
+
break;
|
|
148308
|
+
case 5:
|
|
148309
|
+
message.createdAtTimestamp = reader.uint64();
|
|
148310
|
+
break;
|
|
148311
|
+
default:
|
|
148312
|
+
reader.skipType(tag & 7);
|
|
148313
|
+
break;
|
|
148314
|
+
}
|
|
148315
|
+
}
|
|
148316
|
+
return message;
|
|
148317
|
+
};
|
|
148318
|
+
|
|
148319
|
+
/**
|
|
148320
|
+
* Decodes a PartnerSignalStateAssigned message from the specified reader or buffer, length delimited.
|
|
148321
|
+
* @function decodeDelimited
|
|
148322
|
+
* @memberof PartnerSignalStateAssigned
|
|
148323
|
+
* @static
|
|
148324
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148325
|
+
* @returns {PartnerSignalStateAssigned} PartnerSignalStateAssigned
|
|
148326
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148327
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148328
|
+
*/
|
|
148329
|
+
PartnerSignalStateAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
148330
|
+
if (!(reader instanceof $Reader))
|
|
148331
|
+
reader = new $Reader(reader);
|
|
148332
|
+
return this.decode(reader, reader.uint32());
|
|
148333
|
+
};
|
|
148334
|
+
|
|
148335
|
+
/**
|
|
148336
|
+
* Verifies a PartnerSignalStateAssigned message.
|
|
148337
|
+
* @function verify
|
|
148338
|
+
* @memberof PartnerSignalStateAssigned
|
|
148339
|
+
* @static
|
|
148340
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
148341
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
148342
|
+
*/
|
|
148343
|
+
PartnerSignalStateAssigned.verify = function verify(message) {
|
|
148344
|
+
if (typeof message !== "object" || message === null)
|
|
148345
|
+
return "object expected";
|
|
148346
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
148347
|
+
if (!$util.isString(message.partnerId))
|
|
148348
|
+
return "partnerId: string expected";
|
|
148349
|
+
if (message.partnerName != null && message.hasOwnProperty("partnerName"))
|
|
148350
|
+
if (!$util.isString(message.partnerName))
|
|
148351
|
+
return "partnerName: string expected";
|
|
148352
|
+
if (message.signal != null && message.hasOwnProperty("signal"))
|
|
148353
|
+
if (!$util.isString(message.signal))
|
|
148354
|
+
return "signal: string expected";
|
|
148355
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
148356
|
+
if (!$util.isString(message.hsUserId))
|
|
148357
|
+
return "hsUserId: string expected";
|
|
148358
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
148359
|
+
if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
|
|
148360
|
+
return "createdAtTimestamp: integer|Long expected";
|
|
148361
|
+
return null;
|
|
148362
|
+
};
|
|
148363
|
+
|
|
148364
|
+
/**
|
|
148365
|
+
* Creates a PartnerSignalStateAssigned message from a plain object. Also converts values to their respective internal types.
|
|
148366
|
+
* @function fromObject
|
|
148367
|
+
* @memberof PartnerSignalStateAssigned
|
|
148368
|
+
* @static
|
|
148369
|
+
* @param {Object.<string,*>} object Plain object
|
|
148370
|
+
* @returns {PartnerSignalStateAssigned} PartnerSignalStateAssigned
|
|
148371
|
+
*/
|
|
148372
|
+
PartnerSignalStateAssigned.fromObject = function fromObject(object) {
|
|
148373
|
+
if (object instanceof $root.PartnerSignalStateAssigned)
|
|
148374
|
+
return object;
|
|
148375
|
+
var message = new $root.PartnerSignalStateAssigned();
|
|
148376
|
+
if (object.partnerId != null)
|
|
148377
|
+
message.partnerId = String(object.partnerId);
|
|
148378
|
+
if (object.partnerName != null)
|
|
148379
|
+
message.partnerName = String(object.partnerName);
|
|
148380
|
+
if (object.signal != null)
|
|
148381
|
+
message.signal = String(object.signal);
|
|
148382
|
+
if (object.hsUserId != null)
|
|
148383
|
+
message.hsUserId = String(object.hsUserId);
|
|
148384
|
+
if (object.createdAtTimestamp != null)
|
|
148385
|
+
if ($util.Long)
|
|
148386
|
+
(message.createdAtTimestamp = $util.Long.fromValue(object.createdAtTimestamp)).unsigned = true;
|
|
148387
|
+
else if (typeof object.createdAtTimestamp === "string")
|
|
148388
|
+
message.createdAtTimestamp = parseInt(object.createdAtTimestamp, 10);
|
|
148389
|
+
else if (typeof object.createdAtTimestamp === "number")
|
|
148390
|
+
message.createdAtTimestamp = object.createdAtTimestamp;
|
|
148391
|
+
else if (typeof object.createdAtTimestamp === "object")
|
|
148392
|
+
message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
|
|
148393
|
+
return message;
|
|
148394
|
+
};
|
|
148395
|
+
|
|
148396
|
+
/**
|
|
148397
|
+
* Creates a plain object from a PartnerSignalStateAssigned message. Also converts values to other types if specified.
|
|
148398
|
+
* @function toObject
|
|
148399
|
+
* @memberof PartnerSignalStateAssigned
|
|
148400
|
+
* @static
|
|
148401
|
+
* @param {PartnerSignalStateAssigned} message PartnerSignalStateAssigned
|
|
148402
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
148403
|
+
* @returns {Object.<string,*>} Plain object
|
|
148404
|
+
*/
|
|
148405
|
+
PartnerSignalStateAssigned.toObject = function toObject(message, options) {
|
|
148406
|
+
if (!options)
|
|
148407
|
+
options = {};
|
|
148408
|
+
var object = {};
|
|
148409
|
+
if (options.defaults) {
|
|
148410
|
+
object.partnerId = "";
|
|
148411
|
+
object.partnerName = "";
|
|
148412
|
+
object.signal = "";
|
|
148413
|
+
object.hsUserId = "";
|
|
148414
|
+
if ($util.Long) {
|
|
148415
|
+
var long = new $util.Long(0, 0, true);
|
|
148416
|
+
object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
148417
|
+
} else
|
|
148418
|
+
object.createdAtTimestamp = options.longs === String ? "0" : 0;
|
|
148419
|
+
}
|
|
148420
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
148421
|
+
object.partnerId = message.partnerId;
|
|
148422
|
+
if (message.partnerName != null && message.hasOwnProperty("partnerName"))
|
|
148423
|
+
object.partnerName = message.partnerName;
|
|
148424
|
+
if (message.signal != null && message.hasOwnProperty("signal"))
|
|
148425
|
+
object.signal = message.signal;
|
|
148426
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
148427
|
+
object.hsUserId = message.hsUserId;
|
|
148428
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
148429
|
+
if (typeof message.createdAtTimestamp === "number")
|
|
148430
|
+
object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
|
|
148431
|
+
else
|
|
148432
|
+
object.createdAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtTimestamp) : options.longs === Number ? new $util.LongBits(message.createdAtTimestamp.low >>> 0, message.createdAtTimestamp.high >>> 0).toNumber(true) : message.createdAtTimestamp;
|
|
148433
|
+
return object;
|
|
148434
|
+
};
|
|
148435
|
+
|
|
148436
|
+
/**
|
|
148437
|
+
* Converts this PartnerSignalStateAssigned to JSON.
|
|
148438
|
+
* @function toJSON
|
|
148439
|
+
* @memberof PartnerSignalStateAssigned
|
|
148440
|
+
* @instance
|
|
148441
|
+
* @returns {Object.<string,*>} JSON object
|
|
148442
|
+
*/
|
|
148443
|
+
PartnerSignalStateAssigned.prototype.toJSON = function toJSON() {
|
|
148444
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
148445
|
+
};
|
|
148446
|
+
|
|
148447
|
+
return PartnerSignalStateAssigned;
|
|
148448
|
+
})();
|
|
148449
|
+
|
|
148160
148450
|
$root.PHQAssessmentAssigned = (function() {
|
|
148161
148451
|
|
|
148162
148452
|
/**
|
|
@@ -181540,6 +181830,7 @@ $root.clinical = (function() {
|
|
|
181540
181830
|
* @property {number|Long|null} [updatedAt] ClinicalAvailabilityOffers updatedAt
|
|
181541
181831
|
* @property {boolean|null} [isInNetwork] ClinicalAvailabilityOffers isInNetwork
|
|
181542
181832
|
* @property {clinical.ClinicalAvailabilityCapabilityColor|null} [capabilityColor] ClinicalAvailabilityOffers capabilityColor
|
|
181833
|
+
* @property {boolean|null} [isSingleProviderSearch] ClinicalAvailabilityOffers isSingleProviderSearch
|
|
181543
181834
|
*/
|
|
181544
181835
|
|
|
181545
181836
|
/**
|
|
@@ -181702,6 +181993,14 @@ $root.clinical = (function() {
|
|
|
181702
181993
|
*/
|
|
181703
181994
|
ClinicalAvailabilityOffers.prototype.capabilityColor = 0;
|
|
181704
181995
|
|
|
181996
|
+
/**
|
|
181997
|
+
* ClinicalAvailabilityOffers isSingleProviderSearch.
|
|
181998
|
+
* @member {boolean} isSingleProviderSearch
|
|
181999
|
+
* @memberof clinical.ClinicalAvailabilityOffers
|
|
182000
|
+
* @instance
|
|
182001
|
+
*/
|
|
182002
|
+
ClinicalAvailabilityOffers.prototype.isSingleProviderSearch = false;
|
|
182003
|
+
|
|
181705
182004
|
/**
|
|
181706
182005
|
* Creates a new ClinicalAvailabilityOffers instance using the specified properties.
|
|
181707
182006
|
* @function create
|
|
@@ -181763,6 +182062,8 @@ $root.clinical = (function() {
|
|
|
181763
182062
|
writer.uint32(/* id 17, wireType 0 =*/136).bool(message.isInNetwork);
|
|
181764
182063
|
if (message.capabilityColor != null && message.hasOwnProperty("capabilityColor"))
|
|
181765
182064
|
writer.uint32(/* id 18, wireType 0 =*/144).int32(message.capabilityColor);
|
|
182065
|
+
if (message.isSingleProviderSearch != null && message.hasOwnProperty("isSingleProviderSearch"))
|
|
182066
|
+
writer.uint32(/* id 19, wireType 0 =*/152).bool(message.isSingleProviderSearch);
|
|
181766
182067
|
return writer;
|
|
181767
182068
|
};
|
|
181768
182069
|
|
|
@@ -181853,6 +182154,9 @@ $root.clinical = (function() {
|
|
|
181853
182154
|
case 18:
|
|
181854
182155
|
message.capabilityColor = reader.int32();
|
|
181855
182156
|
break;
|
|
182157
|
+
case 19:
|
|
182158
|
+
message.isSingleProviderSearch = reader.bool();
|
|
182159
|
+
break;
|
|
181856
182160
|
default:
|
|
181857
182161
|
reader.skipType(tag & 7);
|
|
181858
182162
|
break;
|
|
@@ -181981,6 +182285,9 @@ $root.clinical = (function() {
|
|
|
181981
182285
|
case 3:
|
|
181982
182286
|
break;
|
|
181983
182287
|
}
|
|
182288
|
+
if (message.isSingleProviderSearch != null && message.hasOwnProperty("isSingleProviderSearch"))
|
|
182289
|
+
if (typeof message.isSingleProviderSearch !== "boolean")
|
|
182290
|
+
return "isSingleProviderSearch: boolean expected";
|
|
181984
182291
|
return null;
|
|
181985
182292
|
};
|
|
181986
182293
|
|
|
@@ -182157,6 +182464,8 @@ $root.clinical = (function() {
|
|
|
182157
182464
|
message.capabilityColor = 3;
|
|
182158
182465
|
break;
|
|
182159
182466
|
}
|
|
182467
|
+
if (object.isSingleProviderSearch != null)
|
|
182468
|
+
message.isSingleProviderSearch = Boolean(object.isSingleProviderSearch);
|
|
182160
182469
|
return message;
|
|
182161
182470
|
};
|
|
182162
182471
|
|
|
@@ -182209,6 +182518,7 @@ $root.clinical = (function() {
|
|
|
182209
182518
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
182210
182519
|
object.isInNetwork = false;
|
|
182211
182520
|
object.capabilityColor = options.enums === String ? "CLINICAL_AVAILABILITY_CAPABILITY_COLOR_UNKNOWN" : 0;
|
|
182521
|
+
object.isSingleProviderSearch = false;
|
|
182212
182522
|
}
|
|
182213
182523
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
182214
182524
|
object.id = message.id;
|
|
@@ -182261,6 +182571,8 @@ $root.clinical = (function() {
|
|
|
182261
182571
|
object.isInNetwork = message.isInNetwork;
|
|
182262
182572
|
if (message.capabilityColor != null && message.hasOwnProperty("capabilityColor"))
|
|
182263
182573
|
object.capabilityColor = options.enums === String ? $root.clinical.ClinicalAvailabilityCapabilityColor[message.capabilityColor] : message.capabilityColor;
|
|
182574
|
+
if (message.isSingleProviderSearch != null && message.hasOwnProperty("isSingleProviderSearch"))
|
|
182575
|
+
object.isSingleProviderSearch = message.isSingleProviderSearch;
|
|
182264
182576
|
return object;
|
|
182265
182577
|
};
|
|
182266
182578
|
|
|
@@ -192420,6 +192732,7 @@ $root.clinical = (function() {
|
|
|
192420
192732
|
* @property {number|Long|null} [lastUpdatedTime] UnifiedAvailabilityOffered lastUpdatedTime
|
|
192421
192733
|
* @property {boolean|null} [isNetworkClinician] UnifiedAvailabilityOffered isNetworkClinician
|
|
192422
192734
|
* @property {clinical.ClinicalPartnerAppointmentLocationType|null} [locationType] UnifiedAvailabilityOffered locationType
|
|
192735
|
+
* @property {boolean|null} [isSingleProviderSearch] UnifiedAvailabilityOffered isSingleProviderSearch
|
|
192423
192736
|
*/
|
|
192424
192737
|
|
|
192425
192738
|
/**
|
|
@@ -192614,6 +192927,14 @@ $root.clinical = (function() {
|
|
|
192614
192927
|
*/
|
|
192615
192928
|
UnifiedAvailabilityOffered.prototype.locationType = 0;
|
|
192616
192929
|
|
|
192930
|
+
/**
|
|
192931
|
+
* UnifiedAvailabilityOffered isSingleProviderSearch.
|
|
192932
|
+
* @member {boolean} isSingleProviderSearch
|
|
192933
|
+
* @memberof clinical.UnifiedAvailabilityOffered
|
|
192934
|
+
* @instance
|
|
192935
|
+
*/
|
|
192936
|
+
UnifiedAvailabilityOffered.prototype.isSingleProviderSearch = false;
|
|
192937
|
+
|
|
192617
192938
|
/**
|
|
192618
192939
|
* Creates a new UnifiedAvailabilityOffered instance using the specified properties.
|
|
192619
192940
|
* @function create
|
|
@@ -192683,6 +193004,8 @@ $root.clinical = (function() {
|
|
|
192683
193004
|
writer.uint32(/* id 21, wireType 0 =*/168).bool(message.isNetworkClinician);
|
|
192684
193005
|
if (message.locationType != null && message.hasOwnProperty("locationType"))
|
|
192685
193006
|
writer.uint32(/* id 22, wireType 0 =*/176).int32(message.locationType);
|
|
193007
|
+
if (message.isSingleProviderSearch != null && message.hasOwnProperty("isSingleProviderSearch"))
|
|
193008
|
+
writer.uint32(/* id 23, wireType 0 =*/184).bool(message.isSingleProviderSearch);
|
|
192686
193009
|
return writer;
|
|
192687
193010
|
};
|
|
192688
193011
|
|
|
@@ -192785,6 +193108,9 @@ $root.clinical = (function() {
|
|
|
192785
193108
|
case 22:
|
|
192786
193109
|
message.locationType = reader.int32();
|
|
192787
193110
|
break;
|
|
193111
|
+
case 23:
|
|
193112
|
+
message.isSingleProviderSearch = reader.bool();
|
|
193113
|
+
break;
|
|
192788
193114
|
default:
|
|
192789
193115
|
reader.skipType(tag & 7);
|
|
192790
193116
|
break;
|
|
@@ -192929,6 +193255,9 @@ $root.clinical = (function() {
|
|
|
192929
193255
|
case 2:
|
|
192930
193256
|
break;
|
|
192931
193257
|
}
|
|
193258
|
+
if (message.isSingleProviderSearch != null && message.hasOwnProperty("isSingleProviderSearch"))
|
|
193259
|
+
if (typeof message.isSingleProviderSearch !== "boolean")
|
|
193260
|
+
return "isSingleProviderSearch: boolean expected";
|
|
192932
193261
|
return null;
|
|
192933
193262
|
};
|
|
192934
193263
|
|
|
@@ -193152,6 +193481,8 @@ $root.clinical = (function() {
|
|
|
193152
193481
|
message.locationType = 2;
|
|
193153
193482
|
break;
|
|
193154
193483
|
}
|
|
193484
|
+
if (object.isSingleProviderSearch != null)
|
|
193485
|
+
message.isSingleProviderSearch = Boolean(object.isSingleProviderSearch);
|
|
193155
193486
|
return message;
|
|
193156
193487
|
};
|
|
193157
193488
|
|
|
@@ -193228,6 +193559,7 @@ $root.clinical = (function() {
|
|
|
193228
193559
|
object.lastUpdatedTime = options.longs === String ? "0" : 0;
|
|
193229
193560
|
object.isNetworkClinician = false;
|
|
193230
193561
|
object.locationType = options.enums === String ? "CLINICAL_PARTNER_APPOINTMENT_LOCATION_TYPE_UNKNOWN" : 0;
|
|
193562
|
+
object.isSingleProviderSearch = false;
|
|
193231
193563
|
}
|
|
193232
193564
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
193233
193565
|
if (typeof message.id === "number")
|
|
@@ -193303,6 +193635,8 @@ $root.clinical = (function() {
|
|
|
193303
193635
|
object.isNetworkClinician = message.isNetworkClinician;
|
|
193304
193636
|
if (message.locationType != null && message.hasOwnProperty("locationType"))
|
|
193305
193637
|
object.locationType = options.enums === String ? $root.clinical.ClinicalPartnerAppointmentLocationType[message.locationType] : message.locationType;
|
|
193638
|
+
if (message.isSingleProviderSearch != null && message.hasOwnProperty("isSingleProviderSearch"))
|
|
193639
|
+
object.isSingleProviderSearch = message.isSingleProviderSearch;
|
|
193306
193640
|
return object;
|
|
193307
193641
|
};
|
|
193308
193642
|
|
package/package.json
CHANGED