@headspace/protos-events 1.276.0 → 1.277.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 +219 -0
- package/lib/index.js +537 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -25179,6 +25179,225 @@ export class SCIMUserUpdated implements ISCIMUserUpdated {
|
|
|
25179
25179
|
public toJSON(): { [k: string]: any };
|
|
25180
25180
|
}
|
|
25181
25181
|
|
|
25182
|
+
/** Properties of a SurveySent. */
|
|
25183
|
+
export interface ISurveySent {
|
|
25184
|
+
|
|
25185
|
+
/** SurveySent hsUserId */
|
|
25186
|
+
hsUserId?: (string|null);
|
|
25187
|
+
|
|
25188
|
+
/** SurveySent surveyUrl */
|
|
25189
|
+
surveyUrl?: (string|null);
|
|
25190
|
+
|
|
25191
|
+
/** SurveySent orgName */
|
|
25192
|
+
orgName?: (string|null);
|
|
25193
|
+
|
|
25194
|
+
/** SurveySent timestamp */
|
|
25195
|
+
timestamp?: (number|Long|null);
|
|
25196
|
+
}
|
|
25197
|
+
|
|
25198
|
+
/** The event is published when a survey is sent to a member with given HSUSER_ID */
|
|
25199
|
+
export class SurveySent implements ISurveySent {
|
|
25200
|
+
|
|
25201
|
+
/**
|
|
25202
|
+
* Constructs a new SurveySent.
|
|
25203
|
+
* @param [properties] Properties to set
|
|
25204
|
+
*/
|
|
25205
|
+
constructor(properties?: ISurveySent);
|
|
25206
|
+
|
|
25207
|
+
/** SurveySent hsUserId. */
|
|
25208
|
+
public hsUserId: string;
|
|
25209
|
+
|
|
25210
|
+
/** SurveySent surveyUrl. */
|
|
25211
|
+
public surveyUrl: string;
|
|
25212
|
+
|
|
25213
|
+
/** SurveySent orgName. */
|
|
25214
|
+
public orgName: string;
|
|
25215
|
+
|
|
25216
|
+
/** SurveySent timestamp. */
|
|
25217
|
+
public timestamp: (number|Long);
|
|
25218
|
+
|
|
25219
|
+
/**
|
|
25220
|
+
* Creates a new SurveySent instance using the specified properties.
|
|
25221
|
+
* @param [properties] Properties to set
|
|
25222
|
+
* @returns SurveySent instance
|
|
25223
|
+
*/
|
|
25224
|
+
public static create(properties?: ISurveySent): SurveySent;
|
|
25225
|
+
|
|
25226
|
+
/**
|
|
25227
|
+
* Encodes the specified SurveySent message. Does not implicitly {@link SurveySent.verify|verify} messages.
|
|
25228
|
+
* @param message SurveySent message or plain object to encode
|
|
25229
|
+
* @param [writer] Writer to encode to
|
|
25230
|
+
* @returns Writer
|
|
25231
|
+
*/
|
|
25232
|
+
public static encode(message: ISurveySent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
25233
|
+
|
|
25234
|
+
/**
|
|
25235
|
+
* Encodes the specified SurveySent message, length delimited. Does not implicitly {@link SurveySent.verify|verify} messages.
|
|
25236
|
+
* @param message SurveySent message or plain object to encode
|
|
25237
|
+
* @param [writer] Writer to encode to
|
|
25238
|
+
* @returns Writer
|
|
25239
|
+
*/
|
|
25240
|
+
public static encodeDelimited(message: ISurveySent, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
25241
|
+
|
|
25242
|
+
/**
|
|
25243
|
+
* Decodes a SurveySent message from the specified reader or buffer.
|
|
25244
|
+
* @param reader Reader or buffer to decode from
|
|
25245
|
+
* @param [length] Message length if known beforehand
|
|
25246
|
+
* @returns SurveySent
|
|
25247
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25248
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25249
|
+
*/
|
|
25250
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SurveySent;
|
|
25251
|
+
|
|
25252
|
+
/**
|
|
25253
|
+
* Decodes a SurveySent message from the specified reader or buffer, length delimited.
|
|
25254
|
+
* @param reader Reader or buffer to decode from
|
|
25255
|
+
* @returns SurveySent
|
|
25256
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25257
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25258
|
+
*/
|
|
25259
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SurveySent;
|
|
25260
|
+
|
|
25261
|
+
/**
|
|
25262
|
+
* Verifies a SurveySent message.
|
|
25263
|
+
* @param message Plain object to verify
|
|
25264
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
25265
|
+
*/
|
|
25266
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
25267
|
+
|
|
25268
|
+
/**
|
|
25269
|
+
* Creates a SurveySent message from a plain object. Also converts values to their respective internal types.
|
|
25270
|
+
* @param object Plain object
|
|
25271
|
+
* @returns SurveySent
|
|
25272
|
+
*/
|
|
25273
|
+
public static fromObject(object: { [k: string]: any }): SurveySent;
|
|
25274
|
+
|
|
25275
|
+
/**
|
|
25276
|
+
* Creates a plain object from a SurveySent message. Also converts values to other types if specified.
|
|
25277
|
+
* @param message SurveySent
|
|
25278
|
+
* @param [options] Conversion options
|
|
25279
|
+
* @returns Plain object
|
|
25280
|
+
*/
|
|
25281
|
+
public static toObject(message: SurveySent, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
25282
|
+
|
|
25283
|
+
/**
|
|
25284
|
+
* Converts this SurveySent to JSON.
|
|
25285
|
+
* @returns JSON object
|
|
25286
|
+
*/
|
|
25287
|
+
public toJSON(): { [k: string]: any };
|
|
25288
|
+
}
|
|
25289
|
+
|
|
25290
|
+
/** Properties of a SurveyNotCompleted. */
|
|
25291
|
+
export interface ISurveyNotCompleted {
|
|
25292
|
+
|
|
25293
|
+
/** SurveyNotCompleted hsUserId */
|
|
25294
|
+
hsUserId?: (string|null);
|
|
25295
|
+
|
|
25296
|
+
/** SurveyNotCompleted surveyUrl */
|
|
25297
|
+
surveyUrl?: (string|null);
|
|
25298
|
+
|
|
25299
|
+
/** SurveyNotCompleted orgName */
|
|
25300
|
+
orgName?: (string|null);
|
|
25301
|
+
|
|
25302
|
+
/** SurveyNotCompleted timestamp */
|
|
25303
|
+
timestamp?: (number|Long|null);
|
|
25304
|
+
}
|
|
25305
|
+
|
|
25306
|
+
/**
|
|
25307
|
+
* The event is published when the system collects survey responses
|
|
25308
|
+
* and it appears that a member with given HSUSER_ID has not completed the survey
|
|
25309
|
+
*/
|
|
25310
|
+
export class SurveyNotCompleted implements ISurveyNotCompleted {
|
|
25311
|
+
|
|
25312
|
+
/**
|
|
25313
|
+
* Constructs a new SurveyNotCompleted.
|
|
25314
|
+
* @param [properties] Properties to set
|
|
25315
|
+
*/
|
|
25316
|
+
constructor(properties?: ISurveyNotCompleted);
|
|
25317
|
+
|
|
25318
|
+
/** SurveyNotCompleted hsUserId. */
|
|
25319
|
+
public hsUserId: string;
|
|
25320
|
+
|
|
25321
|
+
/** SurveyNotCompleted surveyUrl. */
|
|
25322
|
+
public surveyUrl: string;
|
|
25323
|
+
|
|
25324
|
+
/** SurveyNotCompleted orgName. */
|
|
25325
|
+
public orgName: string;
|
|
25326
|
+
|
|
25327
|
+
/** SurveyNotCompleted timestamp. */
|
|
25328
|
+
public timestamp: (number|Long);
|
|
25329
|
+
|
|
25330
|
+
/**
|
|
25331
|
+
* Creates a new SurveyNotCompleted instance using the specified properties.
|
|
25332
|
+
* @param [properties] Properties to set
|
|
25333
|
+
* @returns SurveyNotCompleted instance
|
|
25334
|
+
*/
|
|
25335
|
+
public static create(properties?: ISurveyNotCompleted): SurveyNotCompleted;
|
|
25336
|
+
|
|
25337
|
+
/**
|
|
25338
|
+
* Encodes the specified SurveyNotCompleted message. Does not implicitly {@link SurveyNotCompleted.verify|verify} messages.
|
|
25339
|
+
* @param message SurveyNotCompleted message or plain object to encode
|
|
25340
|
+
* @param [writer] Writer to encode to
|
|
25341
|
+
* @returns Writer
|
|
25342
|
+
*/
|
|
25343
|
+
public static encode(message: ISurveyNotCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
25344
|
+
|
|
25345
|
+
/**
|
|
25346
|
+
* Encodes the specified SurveyNotCompleted message, length delimited. Does not implicitly {@link SurveyNotCompleted.verify|verify} messages.
|
|
25347
|
+
* @param message SurveyNotCompleted message or plain object to encode
|
|
25348
|
+
* @param [writer] Writer to encode to
|
|
25349
|
+
* @returns Writer
|
|
25350
|
+
*/
|
|
25351
|
+
public static encodeDelimited(message: ISurveyNotCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
25352
|
+
|
|
25353
|
+
/**
|
|
25354
|
+
* Decodes a SurveyNotCompleted message from the specified reader or buffer.
|
|
25355
|
+
* @param reader Reader or buffer to decode from
|
|
25356
|
+
* @param [length] Message length if known beforehand
|
|
25357
|
+
* @returns SurveyNotCompleted
|
|
25358
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25359
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25360
|
+
*/
|
|
25361
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SurveyNotCompleted;
|
|
25362
|
+
|
|
25363
|
+
/**
|
|
25364
|
+
* Decodes a SurveyNotCompleted message from the specified reader or buffer, length delimited.
|
|
25365
|
+
* @param reader Reader or buffer to decode from
|
|
25366
|
+
* @returns SurveyNotCompleted
|
|
25367
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25368
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25369
|
+
*/
|
|
25370
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SurveyNotCompleted;
|
|
25371
|
+
|
|
25372
|
+
/**
|
|
25373
|
+
* Verifies a SurveyNotCompleted message.
|
|
25374
|
+
* @param message Plain object to verify
|
|
25375
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
25376
|
+
*/
|
|
25377
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
25378
|
+
|
|
25379
|
+
/**
|
|
25380
|
+
* Creates a SurveyNotCompleted message from a plain object. Also converts values to their respective internal types.
|
|
25381
|
+
* @param object Plain object
|
|
25382
|
+
* @returns SurveyNotCompleted
|
|
25383
|
+
*/
|
|
25384
|
+
public static fromObject(object: { [k: string]: any }): SurveyNotCompleted;
|
|
25385
|
+
|
|
25386
|
+
/**
|
|
25387
|
+
* Creates a plain object from a SurveyNotCompleted message. Also converts values to other types if specified.
|
|
25388
|
+
* @param message SurveyNotCompleted
|
|
25389
|
+
* @param [options] Conversion options
|
|
25390
|
+
* @returns Plain object
|
|
25391
|
+
*/
|
|
25392
|
+
public static toObject(message: SurveyNotCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
25393
|
+
|
|
25394
|
+
/**
|
|
25395
|
+
* Converts this SurveyNotCompleted to JSON.
|
|
25396
|
+
* @returns JSON object
|
|
25397
|
+
*/
|
|
25398
|
+
public toJSON(): { [k: string]: any };
|
|
25399
|
+
}
|
|
25400
|
+
|
|
25182
25401
|
/** Properties of a RecommendationSearchMatched. */
|
|
25183
25402
|
export interface IRecommendationSearchMatched {
|
|
25184
25403
|
|
package/lib/index.js
CHANGED
|
@@ -68494,6 +68494,543 @@ $root.SCIMUserUpdated = (function() {
|
|
|
68494
68494
|
return SCIMUserUpdated;
|
|
68495
68495
|
})();
|
|
68496
68496
|
|
|
68497
|
+
$root.SurveySent = (function() {
|
|
68498
|
+
|
|
68499
|
+
/**
|
|
68500
|
+
* Properties of a SurveySent.
|
|
68501
|
+
* @exports ISurveySent
|
|
68502
|
+
* @interface ISurveySent
|
|
68503
|
+
* @property {string|null} [hsUserId] SurveySent hsUserId
|
|
68504
|
+
* @property {string|null} [surveyUrl] SurveySent surveyUrl
|
|
68505
|
+
* @property {string|null} [orgName] SurveySent orgName
|
|
68506
|
+
* @property {number|Long|null} [timestamp] SurveySent timestamp
|
|
68507
|
+
*/
|
|
68508
|
+
|
|
68509
|
+
/**
|
|
68510
|
+
* Constructs a new SurveySent.
|
|
68511
|
+
* @exports SurveySent
|
|
68512
|
+
* @classdesc The event is published when a survey is sent to a member with given HSUSER_ID
|
|
68513
|
+
* @implements ISurveySent
|
|
68514
|
+
* @constructor
|
|
68515
|
+
* @param {ISurveySent=} [properties] Properties to set
|
|
68516
|
+
*/
|
|
68517
|
+
function SurveySent(properties) {
|
|
68518
|
+
if (properties)
|
|
68519
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
68520
|
+
if (properties[keys[i]] != null)
|
|
68521
|
+
this[keys[i]] = properties[keys[i]];
|
|
68522
|
+
}
|
|
68523
|
+
|
|
68524
|
+
/**
|
|
68525
|
+
* SurveySent hsUserId.
|
|
68526
|
+
* @member {string} hsUserId
|
|
68527
|
+
* @memberof SurveySent
|
|
68528
|
+
* @instance
|
|
68529
|
+
*/
|
|
68530
|
+
SurveySent.prototype.hsUserId = "";
|
|
68531
|
+
|
|
68532
|
+
/**
|
|
68533
|
+
* SurveySent surveyUrl.
|
|
68534
|
+
* @member {string} surveyUrl
|
|
68535
|
+
* @memberof SurveySent
|
|
68536
|
+
* @instance
|
|
68537
|
+
*/
|
|
68538
|
+
SurveySent.prototype.surveyUrl = "";
|
|
68539
|
+
|
|
68540
|
+
/**
|
|
68541
|
+
* SurveySent orgName.
|
|
68542
|
+
* @member {string} orgName
|
|
68543
|
+
* @memberof SurveySent
|
|
68544
|
+
* @instance
|
|
68545
|
+
*/
|
|
68546
|
+
SurveySent.prototype.orgName = "";
|
|
68547
|
+
|
|
68548
|
+
/**
|
|
68549
|
+
* SurveySent timestamp.
|
|
68550
|
+
* @member {number|Long} timestamp
|
|
68551
|
+
* @memberof SurveySent
|
|
68552
|
+
* @instance
|
|
68553
|
+
*/
|
|
68554
|
+
SurveySent.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
68555
|
+
|
|
68556
|
+
/**
|
|
68557
|
+
* Creates a new SurveySent instance using the specified properties.
|
|
68558
|
+
* @function create
|
|
68559
|
+
* @memberof SurveySent
|
|
68560
|
+
* @static
|
|
68561
|
+
* @param {ISurveySent=} [properties] Properties to set
|
|
68562
|
+
* @returns {SurveySent} SurveySent instance
|
|
68563
|
+
*/
|
|
68564
|
+
SurveySent.create = function create(properties) {
|
|
68565
|
+
return new SurveySent(properties);
|
|
68566
|
+
};
|
|
68567
|
+
|
|
68568
|
+
/**
|
|
68569
|
+
* Encodes the specified SurveySent message. Does not implicitly {@link SurveySent.verify|verify} messages.
|
|
68570
|
+
* @function encode
|
|
68571
|
+
* @memberof SurveySent
|
|
68572
|
+
* @static
|
|
68573
|
+
* @param {ISurveySent} message SurveySent message or plain object to encode
|
|
68574
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68575
|
+
* @returns {$protobuf.Writer} Writer
|
|
68576
|
+
*/
|
|
68577
|
+
SurveySent.encode = function encode(message, writer) {
|
|
68578
|
+
if (!writer)
|
|
68579
|
+
writer = $Writer.create();
|
|
68580
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
68581
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
68582
|
+
if (message.surveyUrl != null && message.hasOwnProperty("surveyUrl"))
|
|
68583
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.surveyUrl);
|
|
68584
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
68585
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.orgName);
|
|
68586
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
68587
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
|
|
68588
|
+
return writer;
|
|
68589
|
+
};
|
|
68590
|
+
|
|
68591
|
+
/**
|
|
68592
|
+
* Encodes the specified SurveySent message, length delimited. Does not implicitly {@link SurveySent.verify|verify} messages.
|
|
68593
|
+
* @function encodeDelimited
|
|
68594
|
+
* @memberof SurveySent
|
|
68595
|
+
* @static
|
|
68596
|
+
* @param {ISurveySent} message SurveySent message or plain object to encode
|
|
68597
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68598
|
+
* @returns {$protobuf.Writer} Writer
|
|
68599
|
+
*/
|
|
68600
|
+
SurveySent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
68601
|
+
return this.encode(message, writer).ldelim();
|
|
68602
|
+
};
|
|
68603
|
+
|
|
68604
|
+
/**
|
|
68605
|
+
* Decodes a SurveySent message from the specified reader or buffer.
|
|
68606
|
+
* @function decode
|
|
68607
|
+
* @memberof SurveySent
|
|
68608
|
+
* @static
|
|
68609
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68610
|
+
* @param {number} [length] Message length if known beforehand
|
|
68611
|
+
* @returns {SurveySent} SurveySent
|
|
68612
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68613
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68614
|
+
*/
|
|
68615
|
+
SurveySent.decode = function decode(reader, length) {
|
|
68616
|
+
if (!(reader instanceof $Reader))
|
|
68617
|
+
reader = $Reader.create(reader);
|
|
68618
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SurveySent();
|
|
68619
|
+
while (reader.pos < end) {
|
|
68620
|
+
var tag = reader.uint32();
|
|
68621
|
+
switch (tag >>> 3) {
|
|
68622
|
+
case 1:
|
|
68623
|
+
message.hsUserId = reader.string();
|
|
68624
|
+
break;
|
|
68625
|
+
case 2:
|
|
68626
|
+
message.surveyUrl = reader.string();
|
|
68627
|
+
break;
|
|
68628
|
+
case 3:
|
|
68629
|
+
message.orgName = reader.string();
|
|
68630
|
+
break;
|
|
68631
|
+
case 4:
|
|
68632
|
+
message.timestamp = reader.uint64();
|
|
68633
|
+
break;
|
|
68634
|
+
default:
|
|
68635
|
+
reader.skipType(tag & 7);
|
|
68636
|
+
break;
|
|
68637
|
+
}
|
|
68638
|
+
}
|
|
68639
|
+
return message;
|
|
68640
|
+
};
|
|
68641
|
+
|
|
68642
|
+
/**
|
|
68643
|
+
* Decodes a SurveySent message from the specified reader or buffer, length delimited.
|
|
68644
|
+
* @function decodeDelimited
|
|
68645
|
+
* @memberof SurveySent
|
|
68646
|
+
* @static
|
|
68647
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68648
|
+
* @returns {SurveySent} SurveySent
|
|
68649
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68650
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68651
|
+
*/
|
|
68652
|
+
SurveySent.decodeDelimited = function decodeDelimited(reader) {
|
|
68653
|
+
if (!(reader instanceof $Reader))
|
|
68654
|
+
reader = new $Reader(reader);
|
|
68655
|
+
return this.decode(reader, reader.uint32());
|
|
68656
|
+
};
|
|
68657
|
+
|
|
68658
|
+
/**
|
|
68659
|
+
* Verifies a SurveySent message.
|
|
68660
|
+
* @function verify
|
|
68661
|
+
* @memberof SurveySent
|
|
68662
|
+
* @static
|
|
68663
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
68664
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
68665
|
+
*/
|
|
68666
|
+
SurveySent.verify = function verify(message) {
|
|
68667
|
+
if (typeof message !== "object" || message === null)
|
|
68668
|
+
return "object expected";
|
|
68669
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
68670
|
+
if (!$util.isString(message.hsUserId))
|
|
68671
|
+
return "hsUserId: string expected";
|
|
68672
|
+
if (message.surveyUrl != null && message.hasOwnProperty("surveyUrl"))
|
|
68673
|
+
if (!$util.isString(message.surveyUrl))
|
|
68674
|
+
return "surveyUrl: string expected";
|
|
68675
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
68676
|
+
if (!$util.isString(message.orgName))
|
|
68677
|
+
return "orgName: string expected";
|
|
68678
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
68679
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
68680
|
+
return "timestamp: integer|Long expected";
|
|
68681
|
+
return null;
|
|
68682
|
+
};
|
|
68683
|
+
|
|
68684
|
+
/**
|
|
68685
|
+
* Creates a SurveySent message from a plain object. Also converts values to their respective internal types.
|
|
68686
|
+
* @function fromObject
|
|
68687
|
+
* @memberof SurveySent
|
|
68688
|
+
* @static
|
|
68689
|
+
* @param {Object.<string,*>} object Plain object
|
|
68690
|
+
* @returns {SurveySent} SurveySent
|
|
68691
|
+
*/
|
|
68692
|
+
SurveySent.fromObject = function fromObject(object) {
|
|
68693
|
+
if (object instanceof $root.SurveySent)
|
|
68694
|
+
return object;
|
|
68695
|
+
var message = new $root.SurveySent();
|
|
68696
|
+
if (object.hsUserId != null)
|
|
68697
|
+
message.hsUserId = String(object.hsUserId);
|
|
68698
|
+
if (object.surveyUrl != null)
|
|
68699
|
+
message.surveyUrl = String(object.surveyUrl);
|
|
68700
|
+
if (object.orgName != null)
|
|
68701
|
+
message.orgName = String(object.orgName);
|
|
68702
|
+
if (object.timestamp != null)
|
|
68703
|
+
if ($util.Long)
|
|
68704
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
68705
|
+
else if (typeof object.timestamp === "string")
|
|
68706
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
68707
|
+
else if (typeof object.timestamp === "number")
|
|
68708
|
+
message.timestamp = object.timestamp;
|
|
68709
|
+
else if (typeof object.timestamp === "object")
|
|
68710
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
68711
|
+
return message;
|
|
68712
|
+
};
|
|
68713
|
+
|
|
68714
|
+
/**
|
|
68715
|
+
* Creates a plain object from a SurveySent message. Also converts values to other types if specified.
|
|
68716
|
+
* @function toObject
|
|
68717
|
+
* @memberof SurveySent
|
|
68718
|
+
* @static
|
|
68719
|
+
* @param {SurveySent} message SurveySent
|
|
68720
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
68721
|
+
* @returns {Object.<string,*>} Plain object
|
|
68722
|
+
*/
|
|
68723
|
+
SurveySent.toObject = function toObject(message, options) {
|
|
68724
|
+
if (!options)
|
|
68725
|
+
options = {};
|
|
68726
|
+
var object = {};
|
|
68727
|
+
if (options.defaults) {
|
|
68728
|
+
object.hsUserId = "";
|
|
68729
|
+
object.surveyUrl = "";
|
|
68730
|
+
object.orgName = "";
|
|
68731
|
+
if ($util.Long) {
|
|
68732
|
+
var long = new $util.Long(0, 0, true);
|
|
68733
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
68734
|
+
} else
|
|
68735
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
68736
|
+
}
|
|
68737
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
68738
|
+
object.hsUserId = message.hsUserId;
|
|
68739
|
+
if (message.surveyUrl != null && message.hasOwnProperty("surveyUrl"))
|
|
68740
|
+
object.surveyUrl = message.surveyUrl;
|
|
68741
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
68742
|
+
object.orgName = message.orgName;
|
|
68743
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
68744
|
+
if (typeof message.timestamp === "number")
|
|
68745
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
68746
|
+
else
|
|
68747
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
68748
|
+
return object;
|
|
68749
|
+
};
|
|
68750
|
+
|
|
68751
|
+
/**
|
|
68752
|
+
* Converts this SurveySent to JSON.
|
|
68753
|
+
* @function toJSON
|
|
68754
|
+
* @memberof SurveySent
|
|
68755
|
+
* @instance
|
|
68756
|
+
* @returns {Object.<string,*>} JSON object
|
|
68757
|
+
*/
|
|
68758
|
+
SurveySent.prototype.toJSON = function toJSON() {
|
|
68759
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
68760
|
+
};
|
|
68761
|
+
|
|
68762
|
+
return SurveySent;
|
|
68763
|
+
})();
|
|
68764
|
+
|
|
68765
|
+
$root.SurveyNotCompleted = (function() {
|
|
68766
|
+
|
|
68767
|
+
/**
|
|
68768
|
+
* Properties of a SurveyNotCompleted.
|
|
68769
|
+
* @exports ISurveyNotCompleted
|
|
68770
|
+
* @interface ISurveyNotCompleted
|
|
68771
|
+
* @property {string|null} [hsUserId] SurveyNotCompleted hsUserId
|
|
68772
|
+
* @property {string|null} [surveyUrl] SurveyNotCompleted surveyUrl
|
|
68773
|
+
* @property {string|null} [orgName] SurveyNotCompleted orgName
|
|
68774
|
+
* @property {number|Long|null} [timestamp] SurveyNotCompleted timestamp
|
|
68775
|
+
*/
|
|
68776
|
+
|
|
68777
|
+
/**
|
|
68778
|
+
* Constructs a new SurveyNotCompleted.
|
|
68779
|
+
* @exports SurveyNotCompleted
|
|
68780
|
+
* @classdesc The event is published when the system collects survey responses
|
|
68781
|
+
* and it appears that a member with given HSUSER_ID has not completed the survey
|
|
68782
|
+
* @implements ISurveyNotCompleted
|
|
68783
|
+
* @constructor
|
|
68784
|
+
* @param {ISurveyNotCompleted=} [properties] Properties to set
|
|
68785
|
+
*/
|
|
68786
|
+
function SurveyNotCompleted(properties) {
|
|
68787
|
+
if (properties)
|
|
68788
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
68789
|
+
if (properties[keys[i]] != null)
|
|
68790
|
+
this[keys[i]] = properties[keys[i]];
|
|
68791
|
+
}
|
|
68792
|
+
|
|
68793
|
+
/**
|
|
68794
|
+
* SurveyNotCompleted hsUserId.
|
|
68795
|
+
* @member {string} hsUserId
|
|
68796
|
+
* @memberof SurveyNotCompleted
|
|
68797
|
+
* @instance
|
|
68798
|
+
*/
|
|
68799
|
+
SurveyNotCompleted.prototype.hsUserId = "";
|
|
68800
|
+
|
|
68801
|
+
/**
|
|
68802
|
+
* SurveyNotCompleted surveyUrl.
|
|
68803
|
+
* @member {string} surveyUrl
|
|
68804
|
+
* @memberof SurveyNotCompleted
|
|
68805
|
+
* @instance
|
|
68806
|
+
*/
|
|
68807
|
+
SurveyNotCompleted.prototype.surveyUrl = "";
|
|
68808
|
+
|
|
68809
|
+
/**
|
|
68810
|
+
* SurveyNotCompleted orgName.
|
|
68811
|
+
* @member {string} orgName
|
|
68812
|
+
* @memberof SurveyNotCompleted
|
|
68813
|
+
* @instance
|
|
68814
|
+
*/
|
|
68815
|
+
SurveyNotCompleted.prototype.orgName = "";
|
|
68816
|
+
|
|
68817
|
+
/**
|
|
68818
|
+
* SurveyNotCompleted timestamp.
|
|
68819
|
+
* @member {number|Long} timestamp
|
|
68820
|
+
* @memberof SurveyNotCompleted
|
|
68821
|
+
* @instance
|
|
68822
|
+
*/
|
|
68823
|
+
SurveyNotCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
68824
|
+
|
|
68825
|
+
/**
|
|
68826
|
+
* Creates a new SurveyNotCompleted instance using the specified properties.
|
|
68827
|
+
* @function create
|
|
68828
|
+
* @memberof SurveyNotCompleted
|
|
68829
|
+
* @static
|
|
68830
|
+
* @param {ISurveyNotCompleted=} [properties] Properties to set
|
|
68831
|
+
* @returns {SurveyNotCompleted} SurveyNotCompleted instance
|
|
68832
|
+
*/
|
|
68833
|
+
SurveyNotCompleted.create = function create(properties) {
|
|
68834
|
+
return new SurveyNotCompleted(properties);
|
|
68835
|
+
};
|
|
68836
|
+
|
|
68837
|
+
/**
|
|
68838
|
+
* Encodes the specified SurveyNotCompleted message. Does not implicitly {@link SurveyNotCompleted.verify|verify} messages.
|
|
68839
|
+
* @function encode
|
|
68840
|
+
* @memberof SurveyNotCompleted
|
|
68841
|
+
* @static
|
|
68842
|
+
* @param {ISurveyNotCompleted} message SurveyNotCompleted message or plain object to encode
|
|
68843
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68844
|
+
* @returns {$protobuf.Writer} Writer
|
|
68845
|
+
*/
|
|
68846
|
+
SurveyNotCompleted.encode = function encode(message, writer) {
|
|
68847
|
+
if (!writer)
|
|
68848
|
+
writer = $Writer.create();
|
|
68849
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
68850
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
68851
|
+
if (message.surveyUrl != null && message.hasOwnProperty("surveyUrl"))
|
|
68852
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.surveyUrl);
|
|
68853
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
68854
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.orgName);
|
|
68855
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
68856
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
|
|
68857
|
+
return writer;
|
|
68858
|
+
};
|
|
68859
|
+
|
|
68860
|
+
/**
|
|
68861
|
+
* Encodes the specified SurveyNotCompleted message, length delimited. Does not implicitly {@link SurveyNotCompleted.verify|verify} messages.
|
|
68862
|
+
* @function encodeDelimited
|
|
68863
|
+
* @memberof SurveyNotCompleted
|
|
68864
|
+
* @static
|
|
68865
|
+
* @param {ISurveyNotCompleted} message SurveyNotCompleted message or plain object to encode
|
|
68866
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68867
|
+
* @returns {$protobuf.Writer} Writer
|
|
68868
|
+
*/
|
|
68869
|
+
SurveyNotCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
68870
|
+
return this.encode(message, writer).ldelim();
|
|
68871
|
+
};
|
|
68872
|
+
|
|
68873
|
+
/**
|
|
68874
|
+
* Decodes a SurveyNotCompleted message from the specified reader or buffer.
|
|
68875
|
+
* @function decode
|
|
68876
|
+
* @memberof SurveyNotCompleted
|
|
68877
|
+
* @static
|
|
68878
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68879
|
+
* @param {number} [length] Message length if known beforehand
|
|
68880
|
+
* @returns {SurveyNotCompleted} SurveyNotCompleted
|
|
68881
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68882
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68883
|
+
*/
|
|
68884
|
+
SurveyNotCompleted.decode = function decode(reader, length) {
|
|
68885
|
+
if (!(reader instanceof $Reader))
|
|
68886
|
+
reader = $Reader.create(reader);
|
|
68887
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SurveyNotCompleted();
|
|
68888
|
+
while (reader.pos < end) {
|
|
68889
|
+
var tag = reader.uint32();
|
|
68890
|
+
switch (tag >>> 3) {
|
|
68891
|
+
case 1:
|
|
68892
|
+
message.hsUserId = reader.string();
|
|
68893
|
+
break;
|
|
68894
|
+
case 2:
|
|
68895
|
+
message.surveyUrl = reader.string();
|
|
68896
|
+
break;
|
|
68897
|
+
case 3:
|
|
68898
|
+
message.orgName = reader.string();
|
|
68899
|
+
break;
|
|
68900
|
+
case 4:
|
|
68901
|
+
message.timestamp = reader.uint64();
|
|
68902
|
+
break;
|
|
68903
|
+
default:
|
|
68904
|
+
reader.skipType(tag & 7);
|
|
68905
|
+
break;
|
|
68906
|
+
}
|
|
68907
|
+
}
|
|
68908
|
+
return message;
|
|
68909
|
+
};
|
|
68910
|
+
|
|
68911
|
+
/**
|
|
68912
|
+
* Decodes a SurveyNotCompleted message from the specified reader or buffer, length delimited.
|
|
68913
|
+
* @function decodeDelimited
|
|
68914
|
+
* @memberof SurveyNotCompleted
|
|
68915
|
+
* @static
|
|
68916
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68917
|
+
* @returns {SurveyNotCompleted} SurveyNotCompleted
|
|
68918
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68919
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68920
|
+
*/
|
|
68921
|
+
SurveyNotCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
68922
|
+
if (!(reader instanceof $Reader))
|
|
68923
|
+
reader = new $Reader(reader);
|
|
68924
|
+
return this.decode(reader, reader.uint32());
|
|
68925
|
+
};
|
|
68926
|
+
|
|
68927
|
+
/**
|
|
68928
|
+
* Verifies a SurveyNotCompleted message.
|
|
68929
|
+
* @function verify
|
|
68930
|
+
* @memberof SurveyNotCompleted
|
|
68931
|
+
* @static
|
|
68932
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
68933
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
68934
|
+
*/
|
|
68935
|
+
SurveyNotCompleted.verify = function verify(message) {
|
|
68936
|
+
if (typeof message !== "object" || message === null)
|
|
68937
|
+
return "object expected";
|
|
68938
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
68939
|
+
if (!$util.isString(message.hsUserId))
|
|
68940
|
+
return "hsUserId: string expected";
|
|
68941
|
+
if (message.surveyUrl != null && message.hasOwnProperty("surveyUrl"))
|
|
68942
|
+
if (!$util.isString(message.surveyUrl))
|
|
68943
|
+
return "surveyUrl: string expected";
|
|
68944
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
68945
|
+
if (!$util.isString(message.orgName))
|
|
68946
|
+
return "orgName: string expected";
|
|
68947
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
68948
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
68949
|
+
return "timestamp: integer|Long expected";
|
|
68950
|
+
return null;
|
|
68951
|
+
};
|
|
68952
|
+
|
|
68953
|
+
/**
|
|
68954
|
+
* Creates a SurveyNotCompleted message from a plain object. Also converts values to their respective internal types.
|
|
68955
|
+
* @function fromObject
|
|
68956
|
+
* @memberof SurveyNotCompleted
|
|
68957
|
+
* @static
|
|
68958
|
+
* @param {Object.<string,*>} object Plain object
|
|
68959
|
+
* @returns {SurveyNotCompleted} SurveyNotCompleted
|
|
68960
|
+
*/
|
|
68961
|
+
SurveyNotCompleted.fromObject = function fromObject(object) {
|
|
68962
|
+
if (object instanceof $root.SurveyNotCompleted)
|
|
68963
|
+
return object;
|
|
68964
|
+
var message = new $root.SurveyNotCompleted();
|
|
68965
|
+
if (object.hsUserId != null)
|
|
68966
|
+
message.hsUserId = String(object.hsUserId);
|
|
68967
|
+
if (object.surveyUrl != null)
|
|
68968
|
+
message.surveyUrl = String(object.surveyUrl);
|
|
68969
|
+
if (object.orgName != null)
|
|
68970
|
+
message.orgName = String(object.orgName);
|
|
68971
|
+
if (object.timestamp != null)
|
|
68972
|
+
if ($util.Long)
|
|
68973
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
68974
|
+
else if (typeof object.timestamp === "string")
|
|
68975
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
68976
|
+
else if (typeof object.timestamp === "number")
|
|
68977
|
+
message.timestamp = object.timestamp;
|
|
68978
|
+
else if (typeof object.timestamp === "object")
|
|
68979
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
68980
|
+
return message;
|
|
68981
|
+
};
|
|
68982
|
+
|
|
68983
|
+
/**
|
|
68984
|
+
* Creates a plain object from a SurveyNotCompleted message. Also converts values to other types if specified.
|
|
68985
|
+
* @function toObject
|
|
68986
|
+
* @memberof SurveyNotCompleted
|
|
68987
|
+
* @static
|
|
68988
|
+
* @param {SurveyNotCompleted} message SurveyNotCompleted
|
|
68989
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
68990
|
+
* @returns {Object.<string,*>} Plain object
|
|
68991
|
+
*/
|
|
68992
|
+
SurveyNotCompleted.toObject = function toObject(message, options) {
|
|
68993
|
+
if (!options)
|
|
68994
|
+
options = {};
|
|
68995
|
+
var object = {};
|
|
68996
|
+
if (options.defaults) {
|
|
68997
|
+
object.hsUserId = "";
|
|
68998
|
+
object.surveyUrl = "";
|
|
68999
|
+
object.orgName = "";
|
|
69000
|
+
if ($util.Long) {
|
|
69001
|
+
var long = new $util.Long(0, 0, true);
|
|
69002
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
69003
|
+
} else
|
|
69004
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
69005
|
+
}
|
|
69006
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
69007
|
+
object.hsUserId = message.hsUserId;
|
|
69008
|
+
if (message.surveyUrl != null && message.hasOwnProperty("surveyUrl"))
|
|
69009
|
+
object.surveyUrl = message.surveyUrl;
|
|
69010
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
69011
|
+
object.orgName = message.orgName;
|
|
69012
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
69013
|
+
if (typeof message.timestamp === "number")
|
|
69014
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
69015
|
+
else
|
|
69016
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
69017
|
+
return object;
|
|
69018
|
+
};
|
|
69019
|
+
|
|
69020
|
+
/**
|
|
69021
|
+
* Converts this SurveyNotCompleted to JSON.
|
|
69022
|
+
* @function toJSON
|
|
69023
|
+
* @memberof SurveyNotCompleted
|
|
69024
|
+
* @instance
|
|
69025
|
+
* @returns {Object.<string,*>} JSON object
|
|
69026
|
+
*/
|
|
69027
|
+
SurveyNotCompleted.prototype.toJSON = function toJSON() {
|
|
69028
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
69029
|
+
};
|
|
69030
|
+
|
|
69031
|
+
return SurveyNotCompleted;
|
|
69032
|
+
})();
|
|
69033
|
+
|
|
68497
69034
|
$root.RecommendationSearchMatched = (function() {
|
|
68498
69035
|
|
|
68499
69036
|
/**
|
package/package.json
CHANGED