@sellout/models 0.0.336 → 0.0.338
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/.dist/enums/ContactsScreenEnum.d.ts +5 -0
- package/.dist/enums/ContactsScreenEnum.js +10 -0
- package/.dist/enums/ContactsScreenEnum.js.map +1 -0
- package/.dist/enums/OrderShareTimestamp.d.ts +6 -0
- package/.dist/enums/OrderShareTimestamp.js +11 -0
- package/.dist/enums/OrderShareTimestamp.js.map +1 -0
- package/.dist/graphql/fragments/order.fragment.js +4 -2
- package/.dist/graphql/fragments/order.fragment.js.map +1 -1
- package/.dist/graphql/mutations/createContacts.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createContacts.mutation.js +10 -0
- package/.dist/graphql/mutations/createContacts.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateContact.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateContact.mutation.js +17 -0
- package/.dist/graphql/mutations/updateContact.mutation.js.map +1 -0
- package/.dist/graphql/queries/order.query.js +12 -3
- package/.dist/graphql/queries/order.query.js.map +1 -1
- package/.dist/graphql/queries/userProfilesAdmin.query.js +3 -0
- package/.dist/graphql/queries/userProfilesAdmin.query.js.map +1 -1
- package/.dist/interfaces/IContact.d.ts +9 -0
- package/.dist/interfaces/IContact.js +3 -0
- package/.dist/interfaces/IContact.js.map +1 -0
- package/.dist/interfaces/ICreateOrderParams.d.ts +2 -0
- package/.dist/interfaces/IOrder.d.ts +0 -1
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderShareEnum.d.ts +3 -0
- package/.dist/interfaces/IOrderShareTimestamp.d.ts +6 -0
- package/.dist/interfaces/IOrderShareTimestamp.js +3 -0
- package/.dist/interfaces/IOrderShareTimestamp.js.map +1 -0
- package/.dist/schemas/Order.d.ts +22 -4
- package/.dist/schemas/Order.js +23 -5
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/sellout-proto.js +3127 -251
- package/.dist/utils/PaymentUtil.js +0 -9
- package/.dist/utils/PaymentUtil.js.map +1 -1
- package/package.json +3 -3
- package/src/enums/ContactsScreenEnum.ts +5 -0
- package/src/enums/OrderShareTimestamp.ts +7 -0
- package/src/graphql/fragments/order.fragment.ts +5 -3
- package/src/graphql/mutations/createContacts.mutation.ts +9 -0
- package/src/graphql/mutations/updateContact.mutation.ts +16 -0
- package/src/graphql/queries/order.query.ts +12 -3
- package/src/graphql/queries/userProfilesAdmin.query.ts +3 -0
- package/src/interfaces/IContact.ts +9 -0
- package/src/interfaces/ICreateOrderParams.ts +2 -0
- package/src/interfaces/IOrder.ts +0 -1
- package/src/interfaces/IOrderShareEnum.ts +4 -1
- package/src/interfaces/IOrderShareTimestamp.ts +6 -0
- package/src/proto/order.proto +20 -5
- package/src/proto/user-profile.proto +1 -0
- package/src/proto/user.proto +61 -0
- package/src/schemas/Order.ts +24 -5
- package/src/utils/PaymentUtil.ts +0 -17
package/.dist/sellout-proto.js
CHANGED
|
@@ -13168,8 +13168,8 @@ $root.Order = (function() {
|
|
|
13168
13168
|
* @property {string|null} [discountCode] Order discountCode
|
|
13169
13169
|
* @property {number|null} [discountAmount] Order discountAmount
|
|
13170
13170
|
* @property {Array.<IOrderIntegrationResponse>|null} [orderIntegrationResponse] Order orderIntegrationResponse
|
|
13171
|
-
* @property {string|null} [userAgreement] Order userAgreement
|
|
13172
13171
|
* @property {string|null} [parentOrderId] Order parentOrderId
|
|
13172
|
+
* @property {Array.<ISharingOrderInfo>|null} [sharing] Order sharing
|
|
13173
13173
|
*/
|
|
13174
13174
|
|
|
13175
13175
|
/**
|
|
@@ -13191,6 +13191,7 @@ $root.Order = (function() {
|
|
|
13191
13191
|
this.payments = [];
|
|
13192
13192
|
this.fees = [];
|
|
13193
13193
|
this.orderIntegrationResponse = [];
|
|
13194
|
+
this.sharing = [];
|
|
13194
13195
|
if (properties)
|
|
13195
13196
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13196
13197
|
if (properties[keys[i]] != null)
|
|
@@ -13494,20 +13495,20 @@ $root.Order = (function() {
|
|
|
13494
13495
|
Order.prototype.orderIntegrationResponse = $util.emptyArray;
|
|
13495
13496
|
|
|
13496
13497
|
/**
|
|
13497
|
-
* Order
|
|
13498
|
-
* @member {string}
|
|
13498
|
+
* Order parentOrderId.
|
|
13499
|
+
* @member {string} parentOrderId
|
|
13499
13500
|
* @memberof Order
|
|
13500
13501
|
* @instance
|
|
13501
13502
|
*/
|
|
13502
|
-
Order.prototype.
|
|
13503
|
+
Order.prototype.parentOrderId = "";
|
|
13503
13504
|
|
|
13504
13505
|
/**
|
|
13505
|
-
* Order
|
|
13506
|
-
* @member {
|
|
13506
|
+
* Order sharing.
|
|
13507
|
+
* @member {Array.<ISharingOrderInfo>} sharing
|
|
13507
13508
|
* @memberof Order
|
|
13508
13509
|
* @instance
|
|
13509
13510
|
*/
|
|
13510
|
-
Order.prototype.
|
|
13511
|
+
Order.prototype.sharing = $util.emptyArray;
|
|
13511
13512
|
|
|
13512
13513
|
/**
|
|
13513
13514
|
* Creates a new Order instance using the specified properties.
|
|
@@ -13617,10 +13618,11 @@ $root.Order = (function() {
|
|
|
13617
13618
|
if (message.orderIntegrationResponse != null && message.orderIntegrationResponse.length)
|
|
13618
13619
|
for (var i = 0; i < message.orderIntegrationResponse.length; ++i)
|
|
13619
13620
|
$root.OrderIntegrationResponse.encode(message.orderIntegrationResponse[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim();
|
|
13620
|
-
if (message.userAgreement != null && Object.hasOwnProperty.call(message, "userAgreement"))
|
|
13621
|
-
writer.uint32(/* id 37, wireType 2 =*/298).string(message.userAgreement);
|
|
13622
13621
|
if (message.parentOrderId != null && Object.hasOwnProperty.call(message, "parentOrderId"))
|
|
13623
|
-
writer.uint32(/* id
|
|
13622
|
+
writer.uint32(/* id 37, wireType 2 =*/298).string(message.parentOrderId);
|
|
13623
|
+
if (message.sharing != null && message.sharing.length)
|
|
13624
|
+
for (var i = 0; i < message.sharing.length; ++i)
|
|
13625
|
+
$root.SharingOrderInfo.encode(message.sharing[i], writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim();
|
|
13624
13626
|
return writer;
|
|
13625
13627
|
};
|
|
13626
13628
|
|
|
@@ -13787,10 +13789,12 @@ $root.Order = (function() {
|
|
|
13787
13789
|
message.orderIntegrationResponse.push($root.OrderIntegrationResponse.decode(reader, reader.uint32()));
|
|
13788
13790
|
break;
|
|
13789
13791
|
case 37:
|
|
13790
|
-
message.
|
|
13792
|
+
message.parentOrderId = reader.string();
|
|
13791
13793
|
break;
|
|
13792
13794
|
case 38:
|
|
13793
|
-
message.
|
|
13795
|
+
if (!(message.sharing && message.sharing.length))
|
|
13796
|
+
message.sharing = [];
|
|
13797
|
+
message.sharing.push($root.SharingOrderInfo.decode(reader, reader.uint32()));
|
|
13794
13798
|
break;
|
|
13795
13799
|
default:
|
|
13796
13800
|
reader.skipType(tag & 7);
|
|
@@ -13996,12 +14000,18 @@ $root.Order = (function() {
|
|
|
13996
14000
|
return "orderIntegrationResponse." + error;
|
|
13997
14001
|
}
|
|
13998
14002
|
}
|
|
13999
|
-
if (message.userAgreement != null && message.hasOwnProperty("userAgreement"))
|
|
14000
|
-
if (!$util.isString(message.userAgreement))
|
|
14001
|
-
return "userAgreement: string expected";
|
|
14002
14003
|
if (message.parentOrderId != null && message.hasOwnProperty("parentOrderId"))
|
|
14003
14004
|
if (!$util.isString(message.parentOrderId))
|
|
14004
14005
|
return "parentOrderId: string expected";
|
|
14006
|
+
if (message.sharing != null && message.hasOwnProperty("sharing")) {
|
|
14007
|
+
if (!Array.isArray(message.sharing))
|
|
14008
|
+
return "sharing: array expected";
|
|
14009
|
+
for (var i = 0; i < message.sharing.length; ++i) {
|
|
14010
|
+
var error = $root.SharingOrderInfo.verify(message.sharing[i]);
|
|
14011
|
+
if (error)
|
|
14012
|
+
return "sharing." + error;
|
|
14013
|
+
}
|
|
14014
|
+
}
|
|
14005
14015
|
return null;
|
|
14006
14016
|
};
|
|
14007
14017
|
|
|
@@ -14168,10 +14178,18 @@ $root.Order = (function() {
|
|
|
14168
14178
|
message.orderIntegrationResponse[i] = $root.OrderIntegrationResponse.fromObject(object.orderIntegrationResponse[i]);
|
|
14169
14179
|
}
|
|
14170
14180
|
}
|
|
14171
|
-
if (object.userAgreement != null)
|
|
14172
|
-
message.userAgreement = String(object.userAgreement);
|
|
14173
14181
|
if (object.parentOrderId != null)
|
|
14174
14182
|
message.parentOrderId = String(object.parentOrderId);
|
|
14183
|
+
if (object.sharing) {
|
|
14184
|
+
if (!Array.isArray(object.sharing))
|
|
14185
|
+
throw TypeError(".Order.sharing: array expected");
|
|
14186
|
+
message.sharing = [];
|
|
14187
|
+
for (var i = 0; i < object.sharing.length; ++i) {
|
|
14188
|
+
if (typeof object.sharing[i] !== "object")
|
|
14189
|
+
throw TypeError(".Order.sharing: object expected");
|
|
14190
|
+
message.sharing[i] = $root.SharingOrderInfo.fromObject(object.sharing[i]);
|
|
14191
|
+
}
|
|
14192
|
+
}
|
|
14175
14193
|
return message;
|
|
14176
14194
|
};
|
|
14177
14195
|
|
|
@@ -14199,6 +14217,7 @@ $root.Order = (function() {
|
|
|
14199
14217
|
object.payments = [];
|
|
14200
14218
|
object.fees = [];
|
|
14201
14219
|
object.orderIntegrationResponse = [];
|
|
14220
|
+
object.sharing = [];
|
|
14202
14221
|
}
|
|
14203
14222
|
if (options.defaults) {
|
|
14204
14223
|
object._id = "";
|
|
@@ -14228,7 +14247,6 @@ $root.Order = (function() {
|
|
|
14228
14247
|
object.email = "";
|
|
14229
14248
|
object.discountCode = "";
|
|
14230
14249
|
object.discountAmount = 0;
|
|
14231
|
-
object.userAgreement = "";
|
|
14232
14250
|
object.parentOrderId = "";
|
|
14233
14251
|
}
|
|
14234
14252
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
@@ -14335,10 +14353,13 @@ $root.Order = (function() {
|
|
|
14335
14353
|
for (var j = 0; j < message.orderIntegrationResponse.length; ++j)
|
|
14336
14354
|
object.orderIntegrationResponse[j] = $root.OrderIntegrationResponse.toObject(message.orderIntegrationResponse[j], options);
|
|
14337
14355
|
}
|
|
14338
|
-
if (message.userAgreement != null && message.hasOwnProperty("userAgreement"))
|
|
14339
|
-
object.userAgreement = message.userAgreement;
|
|
14340
14356
|
if (message.parentOrderId != null && message.hasOwnProperty("parentOrderId"))
|
|
14341
14357
|
object.parentOrderId = message.parentOrderId;
|
|
14358
|
+
if (message.sharing && message.sharing.length) {
|
|
14359
|
+
object.sharing = [];
|
|
14360
|
+
for (var j = 0; j < message.sharing.length; ++j)
|
|
14361
|
+
object.sharing[j] = $root.SharingOrderInfo.toObject(message.sharing[j], options);
|
|
14362
|
+
}
|
|
14342
14363
|
return object;
|
|
14343
14364
|
};
|
|
14344
14365
|
|
|
@@ -25148,8 +25169,9 @@ $root.UpdateOrderParams = (function() {
|
|
|
25148
25169
|
* @interface IUpdateOrderParams
|
|
25149
25170
|
* @property {string|null} [orderId] UpdateOrderParams orderId
|
|
25150
25171
|
* @property {string|null} [ticketId] UpdateOrderParams ticketId
|
|
25151
|
-
* @property {
|
|
25172
|
+
* @property {boolean|null} [scan] UpdateOrderParams scan
|
|
25152
25173
|
* @property {string|null} [email] UpdateOrderParams email
|
|
25174
|
+
* @property {string|null} [upgradeId] UpdateOrderParams upgradeId
|
|
25153
25175
|
*/
|
|
25154
25176
|
|
|
25155
25177
|
/**
|
|
@@ -25161,7 +25183,6 @@ $root.UpdateOrderParams = (function() {
|
|
|
25161
25183
|
* @param {IUpdateOrderParams=} [properties] Properties to set
|
|
25162
25184
|
*/
|
|
25163
25185
|
function UpdateOrderParams(properties) {
|
|
25164
|
-
this.scan = [];
|
|
25165
25186
|
if (properties)
|
|
25166
25187
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25167
25188
|
if (properties[keys[i]] != null)
|
|
@@ -25186,11 +25207,11 @@ $root.UpdateOrderParams = (function() {
|
|
|
25186
25207
|
|
|
25187
25208
|
/**
|
|
25188
25209
|
* UpdateOrderParams scan.
|
|
25189
|
-
* @member {
|
|
25210
|
+
* @member {boolean} scan
|
|
25190
25211
|
* @memberof UpdateOrderParams
|
|
25191
25212
|
* @instance
|
|
25192
25213
|
*/
|
|
25193
|
-
UpdateOrderParams.prototype.scan =
|
|
25214
|
+
UpdateOrderParams.prototype.scan = false;
|
|
25194
25215
|
|
|
25195
25216
|
/**
|
|
25196
25217
|
* UpdateOrderParams email.
|
|
@@ -25200,6 +25221,14 @@ $root.UpdateOrderParams = (function() {
|
|
|
25200
25221
|
*/
|
|
25201
25222
|
UpdateOrderParams.prototype.email = "";
|
|
25202
25223
|
|
|
25224
|
+
/**
|
|
25225
|
+
* UpdateOrderParams upgradeId.
|
|
25226
|
+
* @member {string} upgradeId
|
|
25227
|
+
* @memberof UpdateOrderParams
|
|
25228
|
+
* @instance
|
|
25229
|
+
*/
|
|
25230
|
+
UpdateOrderParams.prototype.upgradeId = "";
|
|
25231
|
+
|
|
25203
25232
|
/**
|
|
25204
25233
|
* Creates a new UpdateOrderParams instance using the specified properties.
|
|
25205
25234
|
* @function create
|
|
@@ -25228,11 +25257,12 @@ $root.UpdateOrderParams = (function() {
|
|
|
25228
25257
|
writer.uint32(/* id 0, wireType 2 =*/2).string(message.orderId);
|
|
25229
25258
|
if (message.ticketId != null && Object.hasOwnProperty.call(message, "ticketId"))
|
|
25230
25259
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.ticketId);
|
|
25231
|
-
if (message.scan != null && message
|
|
25232
|
-
|
|
25233
|
-
$root.Scan.encode(message.scan[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
25260
|
+
if (message.scan != null && Object.hasOwnProperty.call(message, "scan"))
|
|
25261
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.scan);
|
|
25234
25262
|
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
25235
25263
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
|
|
25264
|
+
if (message.upgradeId != null && Object.hasOwnProperty.call(message, "upgradeId"))
|
|
25265
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.upgradeId);
|
|
25236
25266
|
return writer;
|
|
25237
25267
|
};
|
|
25238
25268
|
|
|
@@ -25274,13 +25304,14 @@ $root.UpdateOrderParams = (function() {
|
|
|
25274
25304
|
message.ticketId = reader.string();
|
|
25275
25305
|
break;
|
|
25276
25306
|
case 2:
|
|
25277
|
-
|
|
25278
|
-
message.scan = [];
|
|
25279
|
-
message.scan.push($root.Scan.decode(reader, reader.uint32()));
|
|
25307
|
+
message.scan = reader.bool();
|
|
25280
25308
|
break;
|
|
25281
25309
|
case 3:
|
|
25282
25310
|
message.email = reader.string();
|
|
25283
25311
|
break;
|
|
25312
|
+
case 4:
|
|
25313
|
+
message.upgradeId = reader.string();
|
|
25314
|
+
break;
|
|
25284
25315
|
default:
|
|
25285
25316
|
reader.skipType(tag & 7);
|
|
25286
25317
|
break;
|
|
@@ -25322,18 +25353,15 @@ $root.UpdateOrderParams = (function() {
|
|
|
25322
25353
|
if (message.ticketId != null && message.hasOwnProperty("ticketId"))
|
|
25323
25354
|
if (!$util.isString(message.ticketId))
|
|
25324
25355
|
return "ticketId: string expected";
|
|
25325
|
-
if (message.scan != null && message.hasOwnProperty("scan"))
|
|
25326
|
-
if (
|
|
25327
|
-
return "scan:
|
|
25328
|
-
for (var i = 0; i < message.scan.length; ++i) {
|
|
25329
|
-
var error = $root.Scan.verify(message.scan[i]);
|
|
25330
|
-
if (error)
|
|
25331
|
-
return "scan." + error;
|
|
25332
|
-
}
|
|
25333
|
-
}
|
|
25356
|
+
if (message.scan != null && message.hasOwnProperty("scan"))
|
|
25357
|
+
if (typeof message.scan !== "boolean")
|
|
25358
|
+
return "scan: boolean expected";
|
|
25334
25359
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
25335
25360
|
if (!$util.isString(message.email))
|
|
25336
25361
|
return "email: string expected";
|
|
25362
|
+
if (message.upgradeId != null && message.hasOwnProperty("upgradeId"))
|
|
25363
|
+
if (!$util.isString(message.upgradeId))
|
|
25364
|
+
return "upgradeId: string expected";
|
|
25337
25365
|
return null;
|
|
25338
25366
|
};
|
|
25339
25367
|
|
|
@@ -25353,18 +25381,12 @@ $root.UpdateOrderParams = (function() {
|
|
|
25353
25381
|
message.orderId = String(object.orderId);
|
|
25354
25382
|
if (object.ticketId != null)
|
|
25355
25383
|
message.ticketId = String(object.ticketId);
|
|
25356
|
-
if (object.scan)
|
|
25357
|
-
|
|
25358
|
-
throw TypeError(".UpdateOrderParams.scan: array expected");
|
|
25359
|
-
message.scan = [];
|
|
25360
|
-
for (var i = 0; i < object.scan.length; ++i) {
|
|
25361
|
-
if (typeof object.scan[i] !== "object")
|
|
25362
|
-
throw TypeError(".UpdateOrderParams.scan: object expected");
|
|
25363
|
-
message.scan[i] = $root.Scan.fromObject(object.scan[i]);
|
|
25364
|
-
}
|
|
25365
|
-
}
|
|
25384
|
+
if (object.scan != null)
|
|
25385
|
+
message.scan = Boolean(object.scan);
|
|
25366
25386
|
if (object.email != null)
|
|
25367
25387
|
message.email = String(object.email);
|
|
25388
|
+
if (object.upgradeId != null)
|
|
25389
|
+
message.upgradeId = String(object.upgradeId);
|
|
25368
25390
|
return message;
|
|
25369
25391
|
};
|
|
25370
25392
|
|
|
@@ -25381,24 +25403,23 @@ $root.UpdateOrderParams = (function() {
|
|
|
25381
25403
|
if (!options)
|
|
25382
25404
|
options = {};
|
|
25383
25405
|
var object = {};
|
|
25384
|
-
if (options.arrays || options.defaults)
|
|
25385
|
-
object.scan = [];
|
|
25386
25406
|
if (options.defaults) {
|
|
25387
25407
|
object.orderId = "";
|
|
25388
25408
|
object.ticketId = "";
|
|
25409
|
+
object.scan = false;
|
|
25389
25410
|
object.email = "";
|
|
25411
|
+
object.upgradeId = "";
|
|
25390
25412
|
}
|
|
25391
25413
|
if (message.orderId != null && message.hasOwnProperty("orderId"))
|
|
25392
25414
|
object.orderId = message.orderId;
|
|
25393
25415
|
if (message.ticketId != null && message.hasOwnProperty("ticketId"))
|
|
25394
25416
|
object.ticketId = message.ticketId;
|
|
25395
|
-
if (message.scan && message.scan
|
|
25396
|
-
object.scan =
|
|
25397
|
-
for (var j = 0; j < message.scan.length; ++j)
|
|
25398
|
-
object.scan[j] = $root.Scan.toObject(message.scan[j], options);
|
|
25399
|
-
}
|
|
25417
|
+
if (message.scan != null && message.hasOwnProperty("scan"))
|
|
25418
|
+
object.scan = message.scan;
|
|
25400
25419
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
25401
25420
|
object.email = message.email;
|
|
25421
|
+
if (message.upgradeId != null && message.hasOwnProperty("upgradeId"))
|
|
25422
|
+
object.upgradeId = message.upgradeId;
|
|
25402
25423
|
return object;
|
|
25403
25424
|
};
|
|
25404
25425
|
|
|
@@ -30529,6 +30550,7 @@ $root.ScanOrderRequest = (function() {
|
|
|
30529
30550
|
* @property {Array.<string>|null} [ticketIds] ScanOrderRequest ticketIds
|
|
30530
30551
|
* @property {Array.<string>|null} [upgradeIds] ScanOrderRequest upgradeIds
|
|
30531
30552
|
* @property {string|null} [scannedBy] ScanOrderRequest scannedBy
|
|
30553
|
+
* @property {string|null} [orgId] ScanOrderRequest orgId
|
|
30532
30554
|
*/
|
|
30533
30555
|
|
|
30534
30556
|
/**
|
|
@@ -30588,6 +30610,14 @@ $root.ScanOrderRequest = (function() {
|
|
|
30588
30610
|
*/
|
|
30589
30611
|
ScanOrderRequest.prototype.scannedBy = "";
|
|
30590
30612
|
|
|
30613
|
+
/**
|
|
30614
|
+
* ScanOrderRequest orgId.
|
|
30615
|
+
* @member {string} orgId
|
|
30616
|
+
* @memberof ScanOrderRequest
|
|
30617
|
+
* @instance
|
|
30618
|
+
*/
|
|
30619
|
+
ScanOrderRequest.prototype.orgId = "";
|
|
30620
|
+
|
|
30591
30621
|
/**
|
|
30592
30622
|
* Creates a new ScanOrderRequest instance using the specified properties.
|
|
30593
30623
|
* @function create
|
|
@@ -30624,6 +30654,8 @@ $root.ScanOrderRequest = (function() {
|
|
|
30624
30654
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.upgradeIds[i]);
|
|
30625
30655
|
if (message.scannedBy != null && Object.hasOwnProperty.call(message, "scannedBy"))
|
|
30626
30656
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.scannedBy);
|
|
30657
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
30658
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.orgId);
|
|
30627
30659
|
return writer;
|
|
30628
30660
|
};
|
|
30629
30661
|
|
|
@@ -30677,6 +30709,9 @@ $root.ScanOrderRequest = (function() {
|
|
|
30677
30709
|
case 4:
|
|
30678
30710
|
message.scannedBy = reader.string();
|
|
30679
30711
|
break;
|
|
30712
|
+
case 5:
|
|
30713
|
+
message.orgId = reader.string();
|
|
30714
|
+
break;
|
|
30680
30715
|
default:
|
|
30681
30716
|
reader.skipType(tag & 7);
|
|
30682
30717
|
break;
|
|
@@ -30735,6 +30770,9 @@ $root.ScanOrderRequest = (function() {
|
|
|
30735
30770
|
if (message.scannedBy != null && message.hasOwnProperty("scannedBy"))
|
|
30736
30771
|
if (!$util.isString(message.scannedBy))
|
|
30737
30772
|
return "scannedBy: string expected";
|
|
30773
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
30774
|
+
if (!$util.isString(message.orgId))
|
|
30775
|
+
return "orgId: string expected";
|
|
30738
30776
|
return null;
|
|
30739
30777
|
};
|
|
30740
30778
|
|
|
@@ -30770,6 +30808,8 @@ $root.ScanOrderRequest = (function() {
|
|
|
30770
30808
|
}
|
|
30771
30809
|
if (object.scannedBy != null)
|
|
30772
30810
|
message.scannedBy = String(object.scannedBy);
|
|
30811
|
+
if (object.orgId != null)
|
|
30812
|
+
message.orgId = String(object.orgId);
|
|
30773
30813
|
return message;
|
|
30774
30814
|
};
|
|
30775
30815
|
|
|
@@ -30794,6 +30834,7 @@ $root.ScanOrderRequest = (function() {
|
|
|
30794
30834
|
object.spanContext = "";
|
|
30795
30835
|
object.orderId = "";
|
|
30796
30836
|
object.scannedBy = "";
|
|
30837
|
+
object.orgId = "";
|
|
30797
30838
|
}
|
|
30798
30839
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
30799
30840
|
object.spanContext = message.spanContext;
|
|
@@ -30811,6 +30852,8 @@ $root.ScanOrderRequest = (function() {
|
|
|
30811
30852
|
}
|
|
30812
30853
|
if (message.scannedBy != null && message.hasOwnProperty("scannedBy"))
|
|
30813
30854
|
object.scannedBy = message.scannedBy;
|
|
30855
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
30856
|
+
object.orgId = message.orgId;
|
|
30814
30857
|
return object;
|
|
30815
30858
|
};
|
|
30816
30859
|
|
|
@@ -32917,6 +32960,9 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
32917
32960
|
* @interface IFindOrderByIdRequest
|
|
32918
32961
|
* @property {string|null} [spanContext] FindOrderByIdRequest spanContext
|
|
32919
32962
|
* @property {string|null} [orderId] FindOrderByIdRequest orderId
|
|
32963
|
+
* @property {string|null} [orgId] FindOrderByIdRequest orgId
|
|
32964
|
+
* @property {boolean|null} [isAppTicketScan] FindOrderByIdRequest isAppTicketScan
|
|
32965
|
+
* @property {string|null} [eventId] FindOrderByIdRequest eventId
|
|
32920
32966
|
*/
|
|
32921
32967
|
|
|
32922
32968
|
/**
|
|
@@ -32950,6 +32996,30 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
32950
32996
|
*/
|
|
32951
32997
|
FindOrderByIdRequest.prototype.orderId = "";
|
|
32952
32998
|
|
|
32999
|
+
/**
|
|
33000
|
+
* FindOrderByIdRequest orgId.
|
|
33001
|
+
* @member {string} orgId
|
|
33002
|
+
* @memberof FindOrderByIdRequest
|
|
33003
|
+
* @instance
|
|
33004
|
+
*/
|
|
33005
|
+
FindOrderByIdRequest.prototype.orgId = "";
|
|
33006
|
+
|
|
33007
|
+
/**
|
|
33008
|
+
* FindOrderByIdRequest isAppTicketScan.
|
|
33009
|
+
* @member {boolean} isAppTicketScan
|
|
33010
|
+
* @memberof FindOrderByIdRequest
|
|
33011
|
+
* @instance
|
|
33012
|
+
*/
|
|
33013
|
+
FindOrderByIdRequest.prototype.isAppTicketScan = false;
|
|
33014
|
+
|
|
33015
|
+
/**
|
|
33016
|
+
* FindOrderByIdRequest eventId.
|
|
33017
|
+
* @member {string} eventId
|
|
33018
|
+
* @memberof FindOrderByIdRequest
|
|
33019
|
+
* @instance
|
|
33020
|
+
*/
|
|
33021
|
+
FindOrderByIdRequest.prototype.eventId = "";
|
|
33022
|
+
|
|
32953
33023
|
/**
|
|
32954
33024
|
* Creates a new FindOrderByIdRequest instance using the specified properties.
|
|
32955
33025
|
* @function create
|
|
@@ -32978,6 +33048,12 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
32978
33048
|
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
32979
33049
|
if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
|
|
32980
33050
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orderId);
|
|
33051
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
33052
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
|
|
33053
|
+
if (message.isAppTicketScan != null && Object.hasOwnProperty.call(message, "isAppTicketScan"))
|
|
33054
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isAppTicketScan);
|
|
33055
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
33056
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.eventId);
|
|
32981
33057
|
return writer;
|
|
32982
33058
|
};
|
|
32983
33059
|
|
|
@@ -33018,6 +33094,15 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
33018
33094
|
case 1:
|
|
33019
33095
|
message.orderId = reader.string();
|
|
33020
33096
|
break;
|
|
33097
|
+
case 2:
|
|
33098
|
+
message.orgId = reader.string();
|
|
33099
|
+
break;
|
|
33100
|
+
case 3:
|
|
33101
|
+
message.isAppTicketScan = reader.bool();
|
|
33102
|
+
break;
|
|
33103
|
+
case 4:
|
|
33104
|
+
message.eventId = reader.string();
|
|
33105
|
+
break;
|
|
33021
33106
|
default:
|
|
33022
33107
|
reader.skipType(tag & 7);
|
|
33023
33108
|
break;
|
|
@@ -33059,6 +33144,15 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
33059
33144
|
if (message.orderId != null && message.hasOwnProperty("orderId"))
|
|
33060
33145
|
if (!$util.isString(message.orderId))
|
|
33061
33146
|
return "orderId: string expected";
|
|
33147
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
33148
|
+
if (!$util.isString(message.orgId))
|
|
33149
|
+
return "orgId: string expected";
|
|
33150
|
+
if (message.isAppTicketScan != null && message.hasOwnProperty("isAppTicketScan"))
|
|
33151
|
+
if (typeof message.isAppTicketScan !== "boolean")
|
|
33152
|
+
return "isAppTicketScan: boolean expected";
|
|
33153
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
33154
|
+
if (!$util.isString(message.eventId))
|
|
33155
|
+
return "eventId: string expected";
|
|
33062
33156
|
return null;
|
|
33063
33157
|
};
|
|
33064
33158
|
|
|
@@ -33078,6 +33172,12 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
33078
33172
|
message.spanContext = String(object.spanContext);
|
|
33079
33173
|
if (object.orderId != null)
|
|
33080
33174
|
message.orderId = String(object.orderId);
|
|
33175
|
+
if (object.orgId != null)
|
|
33176
|
+
message.orgId = String(object.orgId);
|
|
33177
|
+
if (object.isAppTicketScan != null)
|
|
33178
|
+
message.isAppTicketScan = Boolean(object.isAppTicketScan);
|
|
33179
|
+
if (object.eventId != null)
|
|
33180
|
+
message.eventId = String(object.eventId);
|
|
33081
33181
|
return message;
|
|
33082
33182
|
};
|
|
33083
33183
|
|
|
@@ -33097,11 +33197,20 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
33097
33197
|
if (options.defaults) {
|
|
33098
33198
|
object.spanContext = "";
|
|
33099
33199
|
object.orderId = "";
|
|
33200
|
+
object.orgId = "";
|
|
33201
|
+
object.isAppTicketScan = false;
|
|
33202
|
+
object.eventId = "";
|
|
33100
33203
|
}
|
|
33101
33204
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
33102
33205
|
object.spanContext = message.spanContext;
|
|
33103
33206
|
if (message.orderId != null && message.hasOwnProperty("orderId"))
|
|
33104
33207
|
object.orderId = message.orderId;
|
|
33208
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
33209
|
+
object.orgId = message.orgId;
|
|
33210
|
+
if (message.isAppTicketScan != null && message.hasOwnProperty("isAppTicketScan"))
|
|
33211
|
+
object.isAppTicketScan = message.isAppTicketScan;
|
|
33212
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
33213
|
+
object.eventId = message.eventId;
|
|
33105
33214
|
return object;
|
|
33106
33215
|
};
|
|
33107
33216
|
|
|
@@ -41319,6 +41428,9 @@ $root.SharingOrderInfo = (function() {
|
|
|
41319
41428
|
* @property {Array.<string>|null} [upgrades] SharingOrderInfo upgrades
|
|
41320
41429
|
* @property {string|null} [eventName] SharingOrderInfo eventName
|
|
41321
41430
|
* @property {string|null} [_id] SharingOrderInfo _id
|
|
41431
|
+
* @property {string|null} [status] SharingOrderInfo status
|
|
41432
|
+
* @property {string|null} [orderId] SharingOrderInfo orderId
|
|
41433
|
+
* @property {IShareOrderTimestamp|null} [shareTimestamp] SharingOrderInfo shareTimestamp
|
|
41322
41434
|
*/
|
|
41323
41435
|
|
|
41324
41436
|
/**
|
|
@@ -41386,6 +41498,30 @@ $root.SharingOrderInfo = (function() {
|
|
|
41386
41498
|
*/
|
|
41387
41499
|
SharingOrderInfo.prototype._id = "";
|
|
41388
41500
|
|
|
41501
|
+
/**
|
|
41502
|
+
* SharingOrderInfo status.
|
|
41503
|
+
* @member {string} status
|
|
41504
|
+
* @memberof SharingOrderInfo
|
|
41505
|
+
* @instance
|
|
41506
|
+
*/
|
|
41507
|
+
SharingOrderInfo.prototype.status = "";
|
|
41508
|
+
|
|
41509
|
+
/**
|
|
41510
|
+
* SharingOrderInfo orderId.
|
|
41511
|
+
* @member {string} orderId
|
|
41512
|
+
* @memberof SharingOrderInfo
|
|
41513
|
+
* @instance
|
|
41514
|
+
*/
|
|
41515
|
+
SharingOrderInfo.prototype.orderId = "";
|
|
41516
|
+
|
|
41517
|
+
/**
|
|
41518
|
+
* SharingOrderInfo shareTimestamp.
|
|
41519
|
+
* @member {IShareOrderTimestamp|null|undefined} shareTimestamp
|
|
41520
|
+
* @memberof SharingOrderInfo
|
|
41521
|
+
* @instance
|
|
41522
|
+
*/
|
|
41523
|
+
SharingOrderInfo.prototype.shareTimestamp = null;
|
|
41524
|
+
|
|
41389
41525
|
/**
|
|
41390
41526
|
* Creates a new SharingOrderInfo instance using the specified properties.
|
|
41391
41527
|
* @function create
|
|
@@ -41421,9 +41557,15 @@ $root.SharingOrderInfo = (function() {
|
|
|
41421
41557
|
for (var i = 0; i < message.upgrades.length; ++i)
|
|
41422
41558
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.upgrades[i]);
|
|
41423
41559
|
if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName"))
|
|
41424
|
-
writer.uint32(/* id
|
|
41560
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.eventName);
|
|
41425
41561
|
if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
|
|
41426
|
-
writer.uint32(/* id
|
|
41562
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message._id);
|
|
41563
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
41564
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.status);
|
|
41565
|
+
if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
|
|
41566
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.orderId);
|
|
41567
|
+
if (message.shareTimestamp != null && Object.hasOwnProperty.call(message, "shareTimestamp"))
|
|
41568
|
+
$root.ShareOrderTimestamp.encode(message.shareTimestamp, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
41427
41569
|
return writer;
|
|
41428
41570
|
};
|
|
41429
41571
|
|
|
@@ -41474,12 +41616,21 @@ $root.SharingOrderInfo = (function() {
|
|
|
41474
41616
|
message.upgrades = [];
|
|
41475
41617
|
message.upgrades.push(reader.string());
|
|
41476
41618
|
break;
|
|
41477
|
-
case
|
|
41619
|
+
case 4:
|
|
41478
41620
|
message.eventName = reader.string();
|
|
41479
41621
|
break;
|
|
41480
|
-
case
|
|
41622
|
+
case 5:
|
|
41481
41623
|
message._id = reader.string();
|
|
41482
41624
|
break;
|
|
41625
|
+
case 6:
|
|
41626
|
+
message.status = reader.string();
|
|
41627
|
+
break;
|
|
41628
|
+
case 7:
|
|
41629
|
+
message.orderId = reader.string();
|
|
41630
|
+
break;
|
|
41631
|
+
case 8:
|
|
41632
|
+
message.shareTimestamp = $root.ShareOrderTimestamp.decode(reader, reader.uint32());
|
|
41633
|
+
break;
|
|
41483
41634
|
default:
|
|
41484
41635
|
reader.skipType(tag & 7);
|
|
41485
41636
|
break;
|
|
@@ -41541,6 +41692,17 @@ $root.SharingOrderInfo = (function() {
|
|
|
41541
41692
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
41542
41693
|
if (!$util.isString(message._id))
|
|
41543
41694
|
return "_id: string expected";
|
|
41695
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
41696
|
+
if (!$util.isString(message.status))
|
|
41697
|
+
return "status: string expected";
|
|
41698
|
+
if (message.orderId != null && message.hasOwnProperty("orderId"))
|
|
41699
|
+
if (!$util.isString(message.orderId))
|
|
41700
|
+
return "orderId: string expected";
|
|
41701
|
+
if (message.shareTimestamp != null && message.hasOwnProperty("shareTimestamp")) {
|
|
41702
|
+
var error = $root.ShareOrderTimestamp.verify(message.shareTimestamp);
|
|
41703
|
+
if (error)
|
|
41704
|
+
return "shareTimestamp." + error;
|
|
41705
|
+
}
|
|
41544
41706
|
return null;
|
|
41545
41707
|
};
|
|
41546
41708
|
|
|
@@ -41578,6 +41740,15 @@ $root.SharingOrderInfo = (function() {
|
|
|
41578
41740
|
message.eventName = String(object.eventName);
|
|
41579
41741
|
if (object._id != null)
|
|
41580
41742
|
message._id = String(object._id);
|
|
41743
|
+
if (object.status != null)
|
|
41744
|
+
message.status = String(object.status);
|
|
41745
|
+
if (object.orderId != null)
|
|
41746
|
+
message.orderId = String(object.orderId);
|
|
41747
|
+
if (object.shareTimestamp != null) {
|
|
41748
|
+
if (typeof object.shareTimestamp !== "object")
|
|
41749
|
+
throw TypeError(".SharingOrderInfo.shareTimestamp: object expected");
|
|
41750
|
+
message.shareTimestamp = $root.ShareOrderTimestamp.fromObject(object.shareTimestamp);
|
|
41751
|
+
}
|
|
41581
41752
|
return message;
|
|
41582
41753
|
};
|
|
41583
41754
|
|
|
@@ -41603,6 +41774,9 @@ $root.SharingOrderInfo = (function() {
|
|
|
41603
41774
|
object.phoneNumber = "";
|
|
41604
41775
|
object.eventName = "";
|
|
41605
41776
|
object._id = "";
|
|
41777
|
+
object.status = "";
|
|
41778
|
+
object.orderId = "";
|
|
41779
|
+
object.shareTimestamp = null;
|
|
41606
41780
|
}
|
|
41607
41781
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
41608
41782
|
object.email = message.email;
|
|
@@ -41622,6 +41796,12 @@ $root.SharingOrderInfo = (function() {
|
|
|
41622
41796
|
object.eventName = message.eventName;
|
|
41623
41797
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
41624
41798
|
object._id = message._id;
|
|
41799
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
41800
|
+
object.status = message.status;
|
|
41801
|
+
if (message.orderId != null && message.hasOwnProperty("orderId"))
|
|
41802
|
+
object.orderId = message.orderId;
|
|
41803
|
+
if (message.shareTimestamp != null && message.hasOwnProperty("shareTimestamp"))
|
|
41804
|
+
object.shareTimestamp = $root.ShareOrderTimestamp.toObject(message.shareTimestamp, options);
|
|
41625
41805
|
return object;
|
|
41626
41806
|
};
|
|
41627
41807
|
|
|
@@ -41639,6 +41819,260 @@ $root.SharingOrderInfo = (function() {
|
|
|
41639
41819
|
return SharingOrderInfo;
|
|
41640
41820
|
})();
|
|
41641
41821
|
|
|
41822
|
+
$root.ShareOrderTimestamp = (function() {
|
|
41823
|
+
|
|
41824
|
+
/**
|
|
41825
|
+
* Properties of a ShareOrderTimestamp.
|
|
41826
|
+
* @exports IShareOrderTimestamp
|
|
41827
|
+
* @interface IShareOrderTimestamp
|
|
41828
|
+
* @property {number|null} [offeredTime] ShareOrderTimestamp offeredTime
|
|
41829
|
+
* @property {number|null} [acceptedTime] ShareOrderTimestamp acceptedTime
|
|
41830
|
+
* @property {number|null} [cancelledTime] ShareOrderTimestamp cancelledTime
|
|
41831
|
+
* @property {number|null} [rejectedTime] ShareOrderTimestamp rejectedTime
|
|
41832
|
+
*/
|
|
41833
|
+
|
|
41834
|
+
/**
|
|
41835
|
+
* Constructs a new ShareOrderTimestamp.
|
|
41836
|
+
* @exports ShareOrderTimestamp
|
|
41837
|
+
* @classdesc Represents a ShareOrderTimestamp.
|
|
41838
|
+
* @implements IShareOrderTimestamp
|
|
41839
|
+
* @constructor
|
|
41840
|
+
* @param {IShareOrderTimestamp=} [properties] Properties to set
|
|
41841
|
+
*/
|
|
41842
|
+
function ShareOrderTimestamp(properties) {
|
|
41843
|
+
if (properties)
|
|
41844
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41845
|
+
if (properties[keys[i]] != null)
|
|
41846
|
+
this[keys[i]] = properties[keys[i]];
|
|
41847
|
+
}
|
|
41848
|
+
|
|
41849
|
+
/**
|
|
41850
|
+
* ShareOrderTimestamp offeredTime.
|
|
41851
|
+
* @member {number} offeredTime
|
|
41852
|
+
* @memberof ShareOrderTimestamp
|
|
41853
|
+
* @instance
|
|
41854
|
+
*/
|
|
41855
|
+
ShareOrderTimestamp.prototype.offeredTime = 0;
|
|
41856
|
+
|
|
41857
|
+
/**
|
|
41858
|
+
* ShareOrderTimestamp acceptedTime.
|
|
41859
|
+
* @member {number} acceptedTime
|
|
41860
|
+
* @memberof ShareOrderTimestamp
|
|
41861
|
+
* @instance
|
|
41862
|
+
*/
|
|
41863
|
+
ShareOrderTimestamp.prototype.acceptedTime = 0;
|
|
41864
|
+
|
|
41865
|
+
/**
|
|
41866
|
+
* ShareOrderTimestamp cancelledTime.
|
|
41867
|
+
* @member {number} cancelledTime
|
|
41868
|
+
* @memberof ShareOrderTimestamp
|
|
41869
|
+
* @instance
|
|
41870
|
+
*/
|
|
41871
|
+
ShareOrderTimestamp.prototype.cancelledTime = 0;
|
|
41872
|
+
|
|
41873
|
+
/**
|
|
41874
|
+
* ShareOrderTimestamp rejectedTime.
|
|
41875
|
+
* @member {number} rejectedTime
|
|
41876
|
+
* @memberof ShareOrderTimestamp
|
|
41877
|
+
* @instance
|
|
41878
|
+
*/
|
|
41879
|
+
ShareOrderTimestamp.prototype.rejectedTime = 0;
|
|
41880
|
+
|
|
41881
|
+
/**
|
|
41882
|
+
* Creates a new ShareOrderTimestamp instance using the specified properties.
|
|
41883
|
+
* @function create
|
|
41884
|
+
* @memberof ShareOrderTimestamp
|
|
41885
|
+
* @static
|
|
41886
|
+
* @param {IShareOrderTimestamp=} [properties] Properties to set
|
|
41887
|
+
* @returns {ShareOrderTimestamp} ShareOrderTimestamp instance
|
|
41888
|
+
*/
|
|
41889
|
+
ShareOrderTimestamp.create = function create(properties) {
|
|
41890
|
+
return new ShareOrderTimestamp(properties);
|
|
41891
|
+
};
|
|
41892
|
+
|
|
41893
|
+
/**
|
|
41894
|
+
* Encodes the specified ShareOrderTimestamp message. Does not implicitly {@link ShareOrderTimestamp.verify|verify} messages.
|
|
41895
|
+
* @function encode
|
|
41896
|
+
* @memberof ShareOrderTimestamp
|
|
41897
|
+
* @static
|
|
41898
|
+
* @param {IShareOrderTimestamp} message ShareOrderTimestamp message or plain object to encode
|
|
41899
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41900
|
+
* @returns {$protobuf.Writer} Writer
|
|
41901
|
+
*/
|
|
41902
|
+
ShareOrderTimestamp.encode = function encode(message, writer) {
|
|
41903
|
+
if (!writer)
|
|
41904
|
+
writer = $Writer.create();
|
|
41905
|
+
if (message.offeredTime != null && Object.hasOwnProperty.call(message, "offeredTime"))
|
|
41906
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.offeredTime);
|
|
41907
|
+
if (message.acceptedTime != null && Object.hasOwnProperty.call(message, "acceptedTime"))
|
|
41908
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.acceptedTime);
|
|
41909
|
+
if (message.cancelledTime != null && Object.hasOwnProperty.call(message, "cancelledTime"))
|
|
41910
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cancelledTime);
|
|
41911
|
+
if (message.rejectedTime != null && Object.hasOwnProperty.call(message, "rejectedTime"))
|
|
41912
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.rejectedTime);
|
|
41913
|
+
return writer;
|
|
41914
|
+
};
|
|
41915
|
+
|
|
41916
|
+
/**
|
|
41917
|
+
* Encodes the specified ShareOrderTimestamp message, length delimited. Does not implicitly {@link ShareOrderTimestamp.verify|verify} messages.
|
|
41918
|
+
* @function encodeDelimited
|
|
41919
|
+
* @memberof ShareOrderTimestamp
|
|
41920
|
+
* @static
|
|
41921
|
+
* @param {IShareOrderTimestamp} message ShareOrderTimestamp message or plain object to encode
|
|
41922
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
41923
|
+
* @returns {$protobuf.Writer} Writer
|
|
41924
|
+
*/
|
|
41925
|
+
ShareOrderTimestamp.encodeDelimited = function encodeDelimited(message, writer) {
|
|
41926
|
+
return this.encode(message, writer).ldelim();
|
|
41927
|
+
};
|
|
41928
|
+
|
|
41929
|
+
/**
|
|
41930
|
+
* Decodes a ShareOrderTimestamp message from the specified reader or buffer.
|
|
41931
|
+
* @function decode
|
|
41932
|
+
* @memberof ShareOrderTimestamp
|
|
41933
|
+
* @static
|
|
41934
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41935
|
+
* @param {number} [length] Message length if known beforehand
|
|
41936
|
+
* @returns {ShareOrderTimestamp} ShareOrderTimestamp
|
|
41937
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41938
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41939
|
+
*/
|
|
41940
|
+
ShareOrderTimestamp.decode = function decode(reader, length) {
|
|
41941
|
+
if (!(reader instanceof $Reader))
|
|
41942
|
+
reader = $Reader.create(reader);
|
|
41943
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ShareOrderTimestamp();
|
|
41944
|
+
while (reader.pos < end) {
|
|
41945
|
+
var tag = reader.uint32();
|
|
41946
|
+
switch (tag >>> 3) {
|
|
41947
|
+
case 0:
|
|
41948
|
+
message.offeredTime = reader.int32();
|
|
41949
|
+
break;
|
|
41950
|
+
case 1:
|
|
41951
|
+
message.acceptedTime = reader.int32();
|
|
41952
|
+
break;
|
|
41953
|
+
case 2:
|
|
41954
|
+
message.cancelledTime = reader.int32();
|
|
41955
|
+
break;
|
|
41956
|
+
case 3:
|
|
41957
|
+
message.rejectedTime = reader.int32();
|
|
41958
|
+
break;
|
|
41959
|
+
default:
|
|
41960
|
+
reader.skipType(tag & 7);
|
|
41961
|
+
break;
|
|
41962
|
+
}
|
|
41963
|
+
}
|
|
41964
|
+
return message;
|
|
41965
|
+
};
|
|
41966
|
+
|
|
41967
|
+
/**
|
|
41968
|
+
* Decodes a ShareOrderTimestamp message from the specified reader or buffer, length delimited.
|
|
41969
|
+
* @function decodeDelimited
|
|
41970
|
+
* @memberof ShareOrderTimestamp
|
|
41971
|
+
* @static
|
|
41972
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
41973
|
+
* @returns {ShareOrderTimestamp} ShareOrderTimestamp
|
|
41974
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
41975
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
41976
|
+
*/
|
|
41977
|
+
ShareOrderTimestamp.decodeDelimited = function decodeDelimited(reader) {
|
|
41978
|
+
if (!(reader instanceof $Reader))
|
|
41979
|
+
reader = new $Reader(reader);
|
|
41980
|
+
return this.decode(reader, reader.uint32());
|
|
41981
|
+
};
|
|
41982
|
+
|
|
41983
|
+
/**
|
|
41984
|
+
* Verifies a ShareOrderTimestamp message.
|
|
41985
|
+
* @function verify
|
|
41986
|
+
* @memberof ShareOrderTimestamp
|
|
41987
|
+
* @static
|
|
41988
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
41989
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
41990
|
+
*/
|
|
41991
|
+
ShareOrderTimestamp.verify = function verify(message) {
|
|
41992
|
+
if (typeof message !== "object" || message === null)
|
|
41993
|
+
return "object expected";
|
|
41994
|
+
if (message.offeredTime != null && message.hasOwnProperty("offeredTime"))
|
|
41995
|
+
if (!$util.isInteger(message.offeredTime))
|
|
41996
|
+
return "offeredTime: integer expected";
|
|
41997
|
+
if (message.acceptedTime != null && message.hasOwnProperty("acceptedTime"))
|
|
41998
|
+
if (!$util.isInteger(message.acceptedTime))
|
|
41999
|
+
return "acceptedTime: integer expected";
|
|
42000
|
+
if (message.cancelledTime != null && message.hasOwnProperty("cancelledTime"))
|
|
42001
|
+
if (!$util.isInteger(message.cancelledTime))
|
|
42002
|
+
return "cancelledTime: integer expected";
|
|
42003
|
+
if (message.rejectedTime != null && message.hasOwnProperty("rejectedTime"))
|
|
42004
|
+
if (!$util.isInteger(message.rejectedTime))
|
|
42005
|
+
return "rejectedTime: integer expected";
|
|
42006
|
+
return null;
|
|
42007
|
+
};
|
|
42008
|
+
|
|
42009
|
+
/**
|
|
42010
|
+
* Creates a ShareOrderTimestamp message from a plain object. Also converts values to their respective internal types.
|
|
42011
|
+
* @function fromObject
|
|
42012
|
+
* @memberof ShareOrderTimestamp
|
|
42013
|
+
* @static
|
|
42014
|
+
* @param {Object.<string,*>} object Plain object
|
|
42015
|
+
* @returns {ShareOrderTimestamp} ShareOrderTimestamp
|
|
42016
|
+
*/
|
|
42017
|
+
ShareOrderTimestamp.fromObject = function fromObject(object) {
|
|
42018
|
+
if (object instanceof $root.ShareOrderTimestamp)
|
|
42019
|
+
return object;
|
|
42020
|
+
var message = new $root.ShareOrderTimestamp();
|
|
42021
|
+
if (object.offeredTime != null)
|
|
42022
|
+
message.offeredTime = object.offeredTime | 0;
|
|
42023
|
+
if (object.acceptedTime != null)
|
|
42024
|
+
message.acceptedTime = object.acceptedTime | 0;
|
|
42025
|
+
if (object.cancelledTime != null)
|
|
42026
|
+
message.cancelledTime = object.cancelledTime | 0;
|
|
42027
|
+
if (object.rejectedTime != null)
|
|
42028
|
+
message.rejectedTime = object.rejectedTime | 0;
|
|
42029
|
+
return message;
|
|
42030
|
+
};
|
|
42031
|
+
|
|
42032
|
+
/**
|
|
42033
|
+
* Creates a plain object from a ShareOrderTimestamp message. Also converts values to other types if specified.
|
|
42034
|
+
* @function toObject
|
|
42035
|
+
* @memberof ShareOrderTimestamp
|
|
42036
|
+
* @static
|
|
42037
|
+
* @param {ShareOrderTimestamp} message ShareOrderTimestamp
|
|
42038
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
42039
|
+
* @returns {Object.<string,*>} Plain object
|
|
42040
|
+
*/
|
|
42041
|
+
ShareOrderTimestamp.toObject = function toObject(message, options) {
|
|
42042
|
+
if (!options)
|
|
42043
|
+
options = {};
|
|
42044
|
+
var object = {};
|
|
42045
|
+
if (options.defaults) {
|
|
42046
|
+
object.offeredTime = 0;
|
|
42047
|
+
object.acceptedTime = 0;
|
|
42048
|
+
object.cancelledTime = 0;
|
|
42049
|
+
object.rejectedTime = 0;
|
|
42050
|
+
}
|
|
42051
|
+
if (message.offeredTime != null && message.hasOwnProperty("offeredTime"))
|
|
42052
|
+
object.offeredTime = message.offeredTime;
|
|
42053
|
+
if (message.acceptedTime != null && message.hasOwnProperty("acceptedTime"))
|
|
42054
|
+
object.acceptedTime = message.acceptedTime;
|
|
42055
|
+
if (message.cancelledTime != null && message.hasOwnProperty("cancelledTime"))
|
|
42056
|
+
object.cancelledTime = message.cancelledTime;
|
|
42057
|
+
if (message.rejectedTime != null && message.hasOwnProperty("rejectedTime"))
|
|
42058
|
+
object.rejectedTime = message.rejectedTime;
|
|
42059
|
+
return object;
|
|
42060
|
+
};
|
|
42061
|
+
|
|
42062
|
+
/**
|
|
42063
|
+
* Converts this ShareOrderTimestamp to JSON.
|
|
42064
|
+
* @function toJSON
|
|
42065
|
+
* @memberof ShareOrderTimestamp
|
|
42066
|
+
* @instance
|
|
42067
|
+
* @returns {Object.<string,*>} JSON object
|
|
42068
|
+
*/
|
|
42069
|
+
ShareOrderTimestamp.prototype.toJSON = function toJSON() {
|
|
42070
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
42071
|
+
};
|
|
42072
|
+
|
|
42073
|
+
return ShareOrderTimestamp;
|
|
42074
|
+
})();
|
|
42075
|
+
|
|
41642
42076
|
$root.OrderService = (function() {
|
|
41643
42077
|
|
|
41644
42078
|
/**
|
|
@@ -132611,6 +133045,7 @@ $root.UserProfileQuery = (function() {
|
|
|
132611
133045
|
* @property {string|null} [phoneNumber] UserProfileQuery phoneNumber
|
|
132612
133046
|
* @property {boolean|null} [any] UserProfileQuery any
|
|
132613
133047
|
* @property {string|null} [orgId] UserProfileQuery orgId
|
|
133048
|
+
* @property {string|null} [screenType] UserProfileQuery screenType
|
|
132614
133049
|
*/
|
|
132615
133050
|
|
|
132616
133051
|
/**
|
|
@@ -132704,6 +133139,14 @@ $root.UserProfileQuery = (function() {
|
|
|
132704
133139
|
*/
|
|
132705
133140
|
UserProfileQuery.prototype.orgId = "";
|
|
132706
133141
|
|
|
133142
|
+
/**
|
|
133143
|
+
* UserProfileQuery screenType.
|
|
133144
|
+
* @member {string} screenType
|
|
133145
|
+
* @memberof UserProfileQuery
|
|
133146
|
+
* @instance
|
|
133147
|
+
*/
|
|
133148
|
+
UserProfileQuery.prototype.screenType = "";
|
|
133149
|
+
|
|
132707
133150
|
/**
|
|
132708
133151
|
* Creates a new UserProfileQuery instance using the specified properties.
|
|
132709
133152
|
* @function create
|
|
@@ -132750,6 +133193,8 @@ $root.UserProfileQuery = (function() {
|
|
|
132750
133193
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.any);
|
|
132751
133194
|
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
132752
133195
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.orgId);
|
|
133196
|
+
if (message.screenType != null && Object.hasOwnProperty.call(message, "screenType"))
|
|
133197
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.screenType);
|
|
132753
133198
|
return writer;
|
|
132754
133199
|
};
|
|
132755
133200
|
|
|
@@ -132819,6 +133264,9 @@ $root.UserProfileQuery = (function() {
|
|
|
132819
133264
|
case 8:
|
|
132820
133265
|
message.orgId = reader.string();
|
|
132821
133266
|
break;
|
|
133267
|
+
case 9:
|
|
133268
|
+
message.screenType = reader.string();
|
|
133269
|
+
break;
|
|
132822
133270
|
default:
|
|
132823
133271
|
reader.skipType(tag & 7);
|
|
132824
133272
|
break;
|
|
@@ -132897,6 +133345,9 @@ $root.UserProfileQuery = (function() {
|
|
|
132897
133345
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
132898
133346
|
if (!$util.isString(message.orgId))
|
|
132899
133347
|
return "orgId: string expected";
|
|
133348
|
+
if (message.screenType != null && message.hasOwnProperty("screenType"))
|
|
133349
|
+
if (!$util.isString(message.screenType))
|
|
133350
|
+
return "screenType: string expected";
|
|
132900
133351
|
return null;
|
|
132901
133352
|
};
|
|
132902
133353
|
|
|
@@ -132950,6 +133401,8 @@ $root.UserProfileQuery = (function() {
|
|
|
132950
133401
|
message.any = Boolean(object.any);
|
|
132951
133402
|
if (object.orgId != null)
|
|
132952
133403
|
message.orgId = String(object.orgId);
|
|
133404
|
+
if (object.screenType != null)
|
|
133405
|
+
message.screenType = String(object.screenType);
|
|
132953
133406
|
return message;
|
|
132954
133407
|
};
|
|
132955
133408
|
|
|
@@ -132978,6 +133431,7 @@ $root.UserProfileQuery = (function() {
|
|
|
132978
133431
|
object.phoneNumber = "";
|
|
132979
133432
|
object.any = false;
|
|
132980
133433
|
object.orgId = "";
|
|
133434
|
+
object.screenType = "";
|
|
132981
133435
|
}
|
|
132982
133436
|
if (message.eventIds && message.eventIds.length) {
|
|
132983
133437
|
object.eventIds = [];
|
|
@@ -133009,6 +133463,8 @@ $root.UserProfileQuery = (function() {
|
|
|
133009
133463
|
object.any = message.any;
|
|
133010
133464
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
133011
133465
|
object.orgId = message.orgId;
|
|
133466
|
+
if (message.screenType != null && message.hasOwnProperty("screenType"))
|
|
133467
|
+
object.screenType = message.screenType;
|
|
133012
133468
|
return object;
|
|
133013
133469
|
};
|
|
133014
133470
|
|
|
@@ -148514,41 +148970,2266 @@ $root.UpdateUserPreferredLoginResponse = (function() {
|
|
|
148514
148970
|
}
|
|
148515
148971
|
if (object.errors) {
|
|
148516
148972
|
if (!Array.isArray(object.errors))
|
|
148517
|
-
throw TypeError(".UpdateUserPreferredLoginResponse.errors: array expected");
|
|
148973
|
+
throw TypeError(".UpdateUserPreferredLoginResponse.errors: array expected");
|
|
148974
|
+
message.errors = [];
|
|
148975
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
148976
|
+
if (typeof object.errors[i] !== "object")
|
|
148977
|
+
throw TypeError(".UpdateUserPreferredLoginResponse.errors: object expected");
|
|
148978
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
148979
|
+
}
|
|
148980
|
+
}
|
|
148981
|
+
if (object.user != null) {
|
|
148982
|
+
if (typeof object.user !== "object")
|
|
148983
|
+
throw TypeError(".UpdateUserPreferredLoginResponse.user: object expected");
|
|
148984
|
+
message.user = $root.User.fromObject(object.user);
|
|
148985
|
+
}
|
|
148986
|
+
return message;
|
|
148987
|
+
};
|
|
148988
|
+
|
|
148989
|
+
/**
|
|
148990
|
+
* Creates a plain object from an UpdateUserPreferredLoginResponse message. Also converts values to other types if specified.
|
|
148991
|
+
* @function toObject
|
|
148992
|
+
* @memberof UpdateUserPreferredLoginResponse
|
|
148993
|
+
* @static
|
|
148994
|
+
* @param {UpdateUserPreferredLoginResponse} message UpdateUserPreferredLoginResponse
|
|
148995
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
148996
|
+
* @returns {Object.<string,*>} Plain object
|
|
148997
|
+
*/
|
|
148998
|
+
UpdateUserPreferredLoginResponse.toObject = function toObject(message, options) {
|
|
148999
|
+
if (!options)
|
|
149000
|
+
options = {};
|
|
149001
|
+
var object = {};
|
|
149002
|
+
if (options.arrays || options.defaults)
|
|
149003
|
+
object.errors = [];
|
|
149004
|
+
if (options.defaults) {
|
|
149005
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
149006
|
+
object.user = null;
|
|
149007
|
+
}
|
|
149008
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
149009
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
149010
|
+
if (message.errors && message.errors.length) {
|
|
149011
|
+
object.errors = [];
|
|
149012
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
149013
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
149014
|
+
}
|
|
149015
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
149016
|
+
object.user = $root.User.toObject(message.user, options);
|
|
149017
|
+
return object;
|
|
149018
|
+
};
|
|
149019
|
+
|
|
149020
|
+
/**
|
|
149021
|
+
* Converts this UpdateUserPreferredLoginResponse to JSON.
|
|
149022
|
+
* @function toJSON
|
|
149023
|
+
* @memberof UpdateUserPreferredLoginResponse
|
|
149024
|
+
* @instance
|
|
149025
|
+
* @returns {Object.<string,*>} JSON object
|
|
149026
|
+
*/
|
|
149027
|
+
UpdateUserPreferredLoginResponse.prototype.toJSON = function toJSON() {
|
|
149028
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
149029
|
+
};
|
|
149030
|
+
|
|
149031
|
+
return UpdateUserPreferredLoginResponse;
|
|
149032
|
+
})();
|
|
149033
|
+
|
|
149034
|
+
$root.DeleteUnverifiedUserRequest = (function() {
|
|
149035
|
+
|
|
149036
|
+
/**
|
|
149037
|
+
* Properties of a DeleteUnverifiedUserRequest.
|
|
149038
|
+
* @exports IDeleteUnverifiedUserRequest
|
|
149039
|
+
* @interface IDeleteUnverifiedUserRequest
|
|
149040
|
+
* @property {string|null} [spanContext] DeleteUnverifiedUserRequest spanContext
|
|
149041
|
+
* @property {string|null} [userId] DeleteUnverifiedUserRequest userId
|
|
149042
|
+
* @property {string|null} [email] DeleteUnverifiedUserRequest email
|
|
149043
|
+
* @property {string|null} [phoneNumber] DeleteUnverifiedUserRequest phoneNumber
|
|
149044
|
+
*/
|
|
149045
|
+
|
|
149046
|
+
/**
|
|
149047
|
+
* Constructs a new DeleteUnverifiedUserRequest.
|
|
149048
|
+
* @exports DeleteUnverifiedUserRequest
|
|
149049
|
+
* @classdesc Represents a DeleteUnverifiedUserRequest.
|
|
149050
|
+
* @implements IDeleteUnverifiedUserRequest
|
|
149051
|
+
* @constructor
|
|
149052
|
+
* @param {IDeleteUnverifiedUserRequest=} [properties] Properties to set
|
|
149053
|
+
*/
|
|
149054
|
+
function DeleteUnverifiedUserRequest(properties) {
|
|
149055
|
+
if (properties)
|
|
149056
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
149057
|
+
if (properties[keys[i]] != null)
|
|
149058
|
+
this[keys[i]] = properties[keys[i]];
|
|
149059
|
+
}
|
|
149060
|
+
|
|
149061
|
+
/**
|
|
149062
|
+
* DeleteUnverifiedUserRequest spanContext.
|
|
149063
|
+
* @member {string} spanContext
|
|
149064
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149065
|
+
* @instance
|
|
149066
|
+
*/
|
|
149067
|
+
DeleteUnverifiedUserRequest.prototype.spanContext = "";
|
|
149068
|
+
|
|
149069
|
+
/**
|
|
149070
|
+
* DeleteUnverifiedUserRequest userId.
|
|
149071
|
+
* @member {string} userId
|
|
149072
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149073
|
+
* @instance
|
|
149074
|
+
*/
|
|
149075
|
+
DeleteUnverifiedUserRequest.prototype.userId = "";
|
|
149076
|
+
|
|
149077
|
+
/**
|
|
149078
|
+
* DeleteUnverifiedUserRequest email.
|
|
149079
|
+
* @member {string} email
|
|
149080
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149081
|
+
* @instance
|
|
149082
|
+
*/
|
|
149083
|
+
DeleteUnverifiedUserRequest.prototype.email = "";
|
|
149084
|
+
|
|
149085
|
+
/**
|
|
149086
|
+
* DeleteUnverifiedUserRequest phoneNumber.
|
|
149087
|
+
* @member {string} phoneNumber
|
|
149088
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149089
|
+
* @instance
|
|
149090
|
+
*/
|
|
149091
|
+
DeleteUnverifiedUserRequest.prototype.phoneNumber = "";
|
|
149092
|
+
|
|
149093
|
+
/**
|
|
149094
|
+
* Creates a new DeleteUnverifiedUserRequest instance using the specified properties.
|
|
149095
|
+
* @function create
|
|
149096
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149097
|
+
* @static
|
|
149098
|
+
* @param {IDeleteUnverifiedUserRequest=} [properties] Properties to set
|
|
149099
|
+
* @returns {DeleteUnverifiedUserRequest} DeleteUnverifiedUserRequest instance
|
|
149100
|
+
*/
|
|
149101
|
+
DeleteUnverifiedUserRequest.create = function create(properties) {
|
|
149102
|
+
return new DeleteUnverifiedUserRequest(properties);
|
|
149103
|
+
};
|
|
149104
|
+
|
|
149105
|
+
/**
|
|
149106
|
+
* Encodes the specified DeleteUnverifiedUserRequest message. Does not implicitly {@link DeleteUnverifiedUserRequest.verify|verify} messages.
|
|
149107
|
+
* @function encode
|
|
149108
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149109
|
+
* @static
|
|
149110
|
+
* @param {IDeleteUnverifiedUserRequest} message DeleteUnverifiedUserRequest message or plain object to encode
|
|
149111
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
149112
|
+
* @returns {$protobuf.Writer} Writer
|
|
149113
|
+
*/
|
|
149114
|
+
DeleteUnverifiedUserRequest.encode = function encode(message, writer) {
|
|
149115
|
+
if (!writer)
|
|
149116
|
+
writer = $Writer.create();
|
|
149117
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
149118
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
149119
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
149120
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
149121
|
+
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
149122
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
149123
|
+
if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber"))
|
|
149124
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.phoneNumber);
|
|
149125
|
+
return writer;
|
|
149126
|
+
};
|
|
149127
|
+
|
|
149128
|
+
/**
|
|
149129
|
+
* Encodes the specified DeleteUnverifiedUserRequest message, length delimited. Does not implicitly {@link DeleteUnverifiedUserRequest.verify|verify} messages.
|
|
149130
|
+
* @function encodeDelimited
|
|
149131
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149132
|
+
* @static
|
|
149133
|
+
* @param {IDeleteUnverifiedUserRequest} message DeleteUnverifiedUserRequest message or plain object to encode
|
|
149134
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
149135
|
+
* @returns {$protobuf.Writer} Writer
|
|
149136
|
+
*/
|
|
149137
|
+
DeleteUnverifiedUserRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
149138
|
+
return this.encode(message, writer).ldelim();
|
|
149139
|
+
};
|
|
149140
|
+
|
|
149141
|
+
/**
|
|
149142
|
+
* Decodes a DeleteUnverifiedUserRequest message from the specified reader or buffer.
|
|
149143
|
+
* @function decode
|
|
149144
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149145
|
+
* @static
|
|
149146
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
149147
|
+
* @param {number} [length] Message length if known beforehand
|
|
149148
|
+
* @returns {DeleteUnverifiedUserRequest} DeleteUnverifiedUserRequest
|
|
149149
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
149150
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
149151
|
+
*/
|
|
149152
|
+
DeleteUnverifiedUserRequest.decode = function decode(reader, length) {
|
|
149153
|
+
if (!(reader instanceof $Reader))
|
|
149154
|
+
reader = $Reader.create(reader);
|
|
149155
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteUnverifiedUserRequest();
|
|
149156
|
+
while (reader.pos < end) {
|
|
149157
|
+
var tag = reader.uint32();
|
|
149158
|
+
switch (tag >>> 3) {
|
|
149159
|
+
case 0:
|
|
149160
|
+
message.spanContext = reader.string();
|
|
149161
|
+
break;
|
|
149162
|
+
case 1:
|
|
149163
|
+
message.userId = reader.string();
|
|
149164
|
+
break;
|
|
149165
|
+
case 2:
|
|
149166
|
+
message.email = reader.string();
|
|
149167
|
+
break;
|
|
149168
|
+
case 3:
|
|
149169
|
+
message.phoneNumber = reader.string();
|
|
149170
|
+
break;
|
|
149171
|
+
default:
|
|
149172
|
+
reader.skipType(tag & 7);
|
|
149173
|
+
break;
|
|
149174
|
+
}
|
|
149175
|
+
}
|
|
149176
|
+
return message;
|
|
149177
|
+
};
|
|
149178
|
+
|
|
149179
|
+
/**
|
|
149180
|
+
* Decodes a DeleteUnverifiedUserRequest message from the specified reader or buffer, length delimited.
|
|
149181
|
+
* @function decodeDelimited
|
|
149182
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149183
|
+
* @static
|
|
149184
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
149185
|
+
* @returns {DeleteUnverifiedUserRequest} DeleteUnverifiedUserRequest
|
|
149186
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
149187
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
149188
|
+
*/
|
|
149189
|
+
DeleteUnverifiedUserRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
149190
|
+
if (!(reader instanceof $Reader))
|
|
149191
|
+
reader = new $Reader(reader);
|
|
149192
|
+
return this.decode(reader, reader.uint32());
|
|
149193
|
+
};
|
|
149194
|
+
|
|
149195
|
+
/**
|
|
149196
|
+
* Verifies a DeleteUnverifiedUserRequest message.
|
|
149197
|
+
* @function verify
|
|
149198
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149199
|
+
* @static
|
|
149200
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
149201
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
149202
|
+
*/
|
|
149203
|
+
DeleteUnverifiedUserRequest.verify = function verify(message) {
|
|
149204
|
+
if (typeof message !== "object" || message === null)
|
|
149205
|
+
return "object expected";
|
|
149206
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
149207
|
+
if (!$util.isString(message.spanContext))
|
|
149208
|
+
return "spanContext: string expected";
|
|
149209
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
149210
|
+
if (!$util.isString(message.userId))
|
|
149211
|
+
return "userId: string expected";
|
|
149212
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
149213
|
+
if (!$util.isString(message.email))
|
|
149214
|
+
return "email: string expected";
|
|
149215
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
149216
|
+
if (!$util.isString(message.phoneNumber))
|
|
149217
|
+
return "phoneNumber: string expected";
|
|
149218
|
+
return null;
|
|
149219
|
+
};
|
|
149220
|
+
|
|
149221
|
+
/**
|
|
149222
|
+
* Creates a DeleteUnverifiedUserRequest message from a plain object. Also converts values to their respective internal types.
|
|
149223
|
+
* @function fromObject
|
|
149224
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149225
|
+
* @static
|
|
149226
|
+
* @param {Object.<string,*>} object Plain object
|
|
149227
|
+
* @returns {DeleteUnverifiedUserRequest} DeleteUnverifiedUserRequest
|
|
149228
|
+
*/
|
|
149229
|
+
DeleteUnverifiedUserRequest.fromObject = function fromObject(object) {
|
|
149230
|
+
if (object instanceof $root.DeleteUnverifiedUserRequest)
|
|
149231
|
+
return object;
|
|
149232
|
+
var message = new $root.DeleteUnverifiedUserRequest();
|
|
149233
|
+
if (object.spanContext != null)
|
|
149234
|
+
message.spanContext = String(object.spanContext);
|
|
149235
|
+
if (object.userId != null)
|
|
149236
|
+
message.userId = String(object.userId);
|
|
149237
|
+
if (object.email != null)
|
|
149238
|
+
message.email = String(object.email);
|
|
149239
|
+
if (object.phoneNumber != null)
|
|
149240
|
+
message.phoneNumber = String(object.phoneNumber);
|
|
149241
|
+
return message;
|
|
149242
|
+
};
|
|
149243
|
+
|
|
149244
|
+
/**
|
|
149245
|
+
* Creates a plain object from a DeleteUnverifiedUserRequest message. Also converts values to other types if specified.
|
|
149246
|
+
* @function toObject
|
|
149247
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149248
|
+
* @static
|
|
149249
|
+
* @param {DeleteUnverifiedUserRequest} message DeleteUnverifiedUserRequest
|
|
149250
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
149251
|
+
* @returns {Object.<string,*>} Plain object
|
|
149252
|
+
*/
|
|
149253
|
+
DeleteUnverifiedUserRequest.toObject = function toObject(message, options) {
|
|
149254
|
+
if (!options)
|
|
149255
|
+
options = {};
|
|
149256
|
+
var object = {};
|
|
149257
|
+
if (options.defaults) {
|
|
149258
|
+
object.spanContext = "";
|
|
149259
|
+
object.userId = "";
|
|
149260
|
+
object.email = "";
|
|
149261
|
+
object.phoneNumber = "";
|
|
149262
|
+
}
|
|
149263
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
149264
|
+
object.spanContext = message.spanContext;
|
|
149265
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
149266
|
+
object.userId = message.userId;
|
|
149267
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
149268
|
+
object.email = message.email;
|
|
149269
|
+
if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
|
|
149270
|
+
object.phoneNumber = message.phoneNumber;
|
|
149271
|
+
return object;
|
|
149272
|
+
};
|
|
149273
|
+
|
|
149274
|
+
/**
|
|
149275
|
+
* Converts this DeleteUnverifiedUserRequest to JSON.
|
|
149276
|
+
* @function toJSON
|
|
149277
|
+
* @memberof DeleteUnverifiedUserRequest
|
|
149278
|
+
* @instance
|
|
149279
|
+
* @returns {Object.<string,*>} JSON object
|
|
149280
|
+
*/
|
|
149281
|
+
DeleteUnverifiedUserRequest.prototype.toJSON = function toJSON() {
|
|
149282
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
149283
|
+
};
|
|
149284
|
+
|
|
149285
|
+
return DeleteUnverifiedUserRequest;
|
|
149286
|
+
})();
|
|
149287
|
+
|
|
149288
|
+
$root.DeleteUnverifiedUserResponse = (function() {
|
|
149289
|
+
|
|
149290
|
+
/**
|
|
149291
|
+
* Properties of a DeleteUnverifiedUserResponse.
|
|
149292
|
+
* @exports IDeleteUnverifiedUserResponse
|
|
149293
|
+
* @interface IDeleteUnverifiedUserResponse
|
|
149294
|
+
* @property {StatusCode|null} [status] DeleteUnverifiedUserResponse status
|
|
149295
|
+
* @property {Array.<IError>|null} [errors] DeleteUnverifiedUserResponse errors
|
|
149296
|
+
* @property {boolean|null} [deleted] DeleteUnverifiedUserResponse deleted
|
|
149297
|
+
*/
|
|
149298
|
+
|
|
149299
|
+
/**
|
|
149300
|
+
* Constructs a new DeleteUnverifiedUserResponse.
|
|
149301
|
+
* @exports DeleteUnverifiedUserResponse
|
|
149302
|
+
* @classdesc Represents a DeleteUnverifiedUserResponse.
|
|
149303
|
+
* @implements IDeleteUnverifiedUserResponse
|
|
149304
|
+
* @constructor
|
|
149305
|
+
* @param {IDeleteUnverifiedUserResponse=} [properties] Properties to set
|
|
149306
|
+
*/
|
|
149307
|
+
function DeleteUnverifiedUserResponse(properties) {
|
|
149308
|
+
this.errors = [];
|
|
149309
|
+
if (properties)
|
|
149310
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
149311
|
+
if (properties[keys[i]] != null)
|
|
149312
|
+
this[keys[i]] = properties[keys[i]];
|
|
149313
|
+
}
|
|
149314
|
+
|
|
149315
|
+
/**
|
|
149316
|
+
* DeleteUnverifiedUserResponse status.
|
|
149317
|
+
* @member {StatusCode} status
|
|
149318
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149319
|
+
* @instance
|
|
149320
|
+
*/
|
|
149321
|
+
DeleteUnverifiedUserResponse.prototype.status = 0;
|
|
149322
|
+
|
|
149323
|
+
/**
|
|
149324
|
+
* DeleteUnverifiedUserResponse errors.
|
|
149325
|
+
* @member {Array.<IError>} errors
|
|
149326
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149327
|
+
* @instance
|
|
149328
|
+
*/
|
|
149329
|
+
DeleteUnverifiedUserResponse.prototype.errors = $util.emptyArray;
|
|
149330
|
+
|
|
149331
|
+
/**
|
|
149332
|
+
* DeleteUnverifiedUserResponse deleted.
|
|
149333
|
+
* @member {boolean} deleted
|
|
149334
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149335
|
+
* @instance
|
|
149336
|
+
*/
|
|
149337
|
+
DeleteUnverifiedUserResponse.prototype.deleted = false;
|
|
149338
|
+
|
|
149339
|
+
/**
|
|
149340
|
+
* Creates a new DeleteUnverifiedUserResponse instance using the specified properties.
|
|
149341
|
+
* @function create
|
|
149342
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149343
|
+
* @static
|
|
149344
|
+
* @param {IDeleteUnverifiedUserResponse=} [properties] Properties to set
|
|
149345
|
+
* @returns {DeleteUnverifiedUserResponse} DeleteUnverifiedUserResponse instance
|
|
149346
|
+
*/
|
|
149347
|
+
DeleteUnverifiedUserResponse.create = function create(properties) {
|
|
149348
|
+
return new DeleteUnverifiedUserResponse(properties);
|
|
149349
|
+
};
|
|
149350
|
+
|
|
149351
|
+
/**
|
|
149352
|
+
* Encodes the specified DeleteUnverifiedUserResponse message. Does not implicitly {@link DeleteUnverifiedUserResponse.verify|verify} messages.
|
|
149353
|
+
* @function encode
|
|
149354
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149355
|
+
* @static
|
|
149356
|
+
* @param {IDeleteUnverifiedUserResponse} message DeleteUnverifiedUserResponse message or plain object to encode
|
|
149357
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
149358
|
+
* @returns {$protobuf.Writer} Writer
|
|
149359
|
+
*/
|
|
149360
|
+
DeleteUnverifiedUserResponse.encode = function encode(message, writer) {
|
|
149361
|
+
if (!writer)
|
|
149362
|
+
writer = $Writer.create();
|
|
149363
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
149364
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
149365
|
+
if (message.errors != null && message.errors.length)
|
|
149366
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
149367
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
149368
|
+
if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted"))
|
|
149369
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.deleted);
|
|
149370
|
+
return writer;
|
|
149371
|
+
};
|
|
149372
|
+
|
|
149373
|
+
/**
|
|
149374
|
+
* Encodes the specified DeleteUnverifiedUserResponse message, length delimited. Does not implicitly {@link DeleteUnverifiedUserResponse.verify|verify} messages.
|
|
149375
|
+
* @function encodeDelimited
|
|
149376
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149377
|
+
* @static
|
|
149378
|
+
* @param {IDeleteUnverifiedUserResponse} message DeleteUnverifiedUserResponse message or plain object to encode
|
|
149379
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
149380
|
+
* @returns {$protobuf.Writer} Writer
|
|
149381
|
+
*/
|
|
149382
|
+
DeleteUnverifiedUserResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
149383
|
+
return this.encode(message, writer).ldelim();
|
|
149384
|
+
};
|
|
149385
|
+
|
|
149386
|
+
/**
|
|
149387
|
+
* Decodes a DeleteUnverifiedUserResponse message from the specified reader or buffer.
|
|
149388
|
+
* @function decode
|
|
149389
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149390
|
+
* @static
|
|
149391
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
149392
|
+
* @param {number} [length] Message length if known beforehand
|
|
149393
|
+
* @returns {DeleteUnverifiedUserResponse} DeleteUnverifiedUserResponse
|
|
149394
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
149395
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
149396
|
+
*/
|
|
149397
|
+
DeleteUnverifiedUserResponse.decode = function decode(reader, length) {
|
|
149398
|
+
if (!(reader instanceof $Reader))
|
|
149399
|
+
reader = $Reader.create(reader);
|
|
149400
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteUnverifiedUserResponse();
|
|
149401
|
+
while (reader.pos < end) {
|
|
149402
|
+
var tag = reader.uint32();
|
|
149403
|
+
switch (tag >>> 3) {
|
|
149404
|
+
case 0:
|
|
149405
|
+
message.status = reader.int32();
|
|
149406
|
+
break;
|
|
149407
|
+
case 1:
|
|
149408
|
+
if (!(message.errors && message.errors.length))
|
|
149409
|
+
message.errors = [];
|
|
149410
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
149411
|
+
break;
|
|
149412
|
+
case 2:
|
|
149413
|
+
message.deleted = reader.bool();
|
|
149414
|
+
break;
|
|
149415
|
+
default:
|
|
149416
|
+
reader.skipType(tag & 7);
|
|
149417
|
+
break;
|
|
149418
|
+
}
|
|
149419
|
+
}
|
|
149420
|
+
return message;
|
|
149421
|
+
};
|
|
149422
|
+
|
|
149423
|
+
/**
|
|
149424
|
+
* Decodes a DeleteUnverifiedUserResponse message from the specified reader or buffer, length delimited.
|
|
149425
|
+
* @function decodeDelimited
|
|
149426
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149427
|
+
* @static
|
|
149428
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
149429
|
+
* @returns {DeleteUnverifiedUserResponse} DeleteUnverifiedUserResponse
|
|
149430
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
149431
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
149432
|
+
*/
|
|
149433
|
+
DeleteUnverifiedUserResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
149434
|
+
if (!(reader instanceof $Reader))
|
|
149435
|
+
reader = new $Reader(reader);
|
|
149436
|
+
return this.decode(reader, reader.uint32());
|
|
149437
|
+
};
|
|
149438
|
+
|
|
149439
|
+
/**
|
|
149440
|
+
* Verifies a DeleteUnverifiedUserResponse message.
|
|
149441
|
+
* @function verify
|
|
149442
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149443
|
+
* @static
|
|
149444
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
149445
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
149446
|
+
*/
|
|
149447
|
+
DeleteUnverifiedUserResponse.verify = function verify(message) {
|
|
149448
|
+
if (typeof message !== "object" || message === null)
|
|
149449
|
+
return "object expected";
|
|
149450
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
149451
|
+
switch (message.status) {
|
|
149452
|
+
default:
|
|
149453
|
+
return "status: enum value expected";
|
|
149454
|
+
case 0:
|
|
149455
|
+
case 200:
|
|
149456
|
+
case 400:
|
|
149457
|
+
case 401:
|
|
149458
|
+
case 403:
|
|
149459
|
+
case 422:
|
|
149460
|
+
case 404:
|
|
149461
|
+
case 500:
|
|
149462
|
+
case 504:
|
|
149463
|
+
break;
|
|
149464
|
+
}
|
|
149465
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
149466
|
+
if (!Array.isArray(message.errors))
|
|
149467
|
+
return "errors: array expected";
|
|
149468
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
149469
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
149470
|
+
if (error)
|
|
149471
|
+
return "errors." + error;
|
|
149472
|
+
}
|
|
149473
|
+
}
|
|
149474
|
+
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
149475
|
+
if (typeof message.deleted !== "boolean")
|
|
149476
|
+
return "deleted: boolean expected";
|
|
149477
|
+
return null;
|
|
149478
|
+
};
|
|
149479
|
+
|
|
149480
|
+
/**
|
|
149481
|
+
* Creates a DeleteUnverifiedUserResponse message from a plain object. Also converts values to their respective internal types.
|
|
149482
|
+
* @function fromObject
|
|
149483
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149484
|
+
* @static
|
|
149485
|
+
* @param {Object.<string,*>} object Plain object
|
|
149486
|
+
* @returns {DeleteUnverifiedUserResponse} DeleteUnverifiedUserResponse
|
|
149487
|
+
*/
|
|
149488
|
+
DeleteUnverifiedUserResponse.fromObject = function fromObject(object) {
|
|
149489
|
+
if (object instanceof $root.DeleteUnverifiedUserResponse)
|
|
149490
|
+
return object;
|
|
149491
|
+
var message = new $root.DeleteUnverifiedUserResponse();
|
|
149492
|
+
switch (object.status) {
|
|
149493
|
+
case "UNKNOWN_CODE":
|
|
149494
|
+
case 0:
|
|
149495
|
+
message.status = 0;
|
|
149496
|
+
break;
|
|
149497
|
+
case "OK":
|
|
149498
|
+
case 200:
|
|
149499
|
+
message.status = 200;
|
|
149500
|
+
break;
|
|
149501
|
+
case "BAD_REQUEST":
|
|
149502
|
+
case 400:
|
|
149503
|
+
message.status = 400;
|
|
149504
|
+
break;
|
|
149505
|
+
case "UNAUTHORIZED":
|
|
149506
|
+
case 401:
|
|
149507
|
+
message.status = 401;
|
|
149508
|
+
break;
|
|
149509
|
+
case "FORBIDDEN":
|
|
149510
|
+
case 403:
|
|
149511
|
+
message.status = 403;
|
|
149512
|
+
break;
|
|
149513
|
+
case "UNPROCESSABLE_ENTITY":
|
|
149514
|
+
case 422:
|
|
149515
|
+
message.status = 422;
|
|
149516
|
+
break;
|
|
149517
|
+
case "NOT_FOUND":
|
|
149518
|
+
case 404:
|
|
149519
|
+
message.status = 404;
|
|
149520
|
+
break;
|
|
149521
|
+
case "INTERNAL_SERVER_ERROR":
|
|
149522
|
+
case 500:
|
|
149523
|
+
message.status = 500;
|
|
149524
|
+
break;
|
|
149525
|
+
case "GATEWAY_TIMEOUT":
|
|
149526
|
+
case 504:
|
|
149527
|
+
message.status = 504;
|
|
149528
|
+
break;
|
|
149529
|
+
}
|
|
149530
|
+
if (object.errors) {
|
|
149531
|
+
if (!Array.isArray(object.errors))
|
|
149532
|
+
throw TypeError(".DeleteUnverifiedUserResponse.errors: array expected");
|
|
149533
|
+
message.errors = [];
|
|
149534
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
149535
|
+
if (typeof object.errors[i] !== "object")
|
|
149536
|
+
throw TypeError(".DeleteUnverifiedUserResponse.errors: object expected");
|
|
149537
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
149538
|
+
}
|
|
149539
|
+
}
|
|
149540
|
+
if (object.deleted != null)
|
|
149541
|
+
message.deleted = Boolean(object.deleted);
|
|
149542
|
+
return message;
|
|
149543
|
+
};
|
|
149544
|
+
|
|
149545
|
+
/**
|
|
149546
|
+
* Creates a plain object from a DeleteUnverifiedUserResponse message. Also converts values to other types if specified.
|
|
149547
|
+
* @function toObject
|
|
149548
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149549
|
+
* @static
|
|
149550
|
+
* @param {DeleteUnverifiedUserResponse} message DeleteUnverifiedUserResponse
|
|
149551
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
149552
|
+
* @returns {Object.<string,*>} Plain object
|
|
149553
|
+
*/
|
|
149554
|
+
DeleteUnverifiedUserResponse.toObject = function toObject(message, options) {
|
|
149555
|
+
if (!options)
|
|
149556
|
+
options = {};
|
|
149557
|
+
var object = {};
|
|
149558
|
+
if (options.arrays || options.defaults)
|
|
149559
|
+
object.errors = [];
|
|
149560
|
+
if (options.defaults) {
|
|
149561
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
149562
|
+
object.deleted = false;
|
|
149563
|
+
}
|
|
149564
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
149565
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
149566
|
+
if (message.errors && message.errors.length) {
|
|
149567
|
+
object.errors = [];
|
|
149568
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
149569
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
149570
|
+
}
|
|
149571
|
+
if (message.deleted != null && message.hasOwnProperty("deleted"))
|
|
149572
|
+
object.deleted = message.deleted;
|
|
149573
|
+
return object;
|
|
149574
|
+
};
|
|
149575
|
+
|
|
149576
|
+
/**
|
|
149577
|
+
* Converts this DeleteUnverifiedUserResponse to JSON.
|
|
149578
|
+
* @function toJSON
|
|
149579
|
+
* @memberof DeleteUnverifiedUserResponse
|
|
149580
|
+
* @instance
|
|
149581
|
+
* @returns {Object.<string,*>} JSON object
|
|
149582
|
+
*/
|
|
149583
|
+
DeleteUnverifiedUserResponse.prototype.toJSON = function toJSON() {
|
|
149584
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
149585
|
+
};
|
|
149586
|
+
|
|
149587
|
+
return DeleteUnverifiedUserResponse;
|
|
149588
|
+
})();
|
|
149589
|
+
|
|
149590
|
+
$root.Contact = (function() {
|
|
149591
|
+
|
|
149592
|
+
/**
|
|
149593
|
+
* Properties of a Contact.
|
|
149594
|
+
* @exports IContact
|
|
149595
|
+
* @interface IContact
|
|
149596
|
+
* @property {string|null} [_id] Contact _id
|
|
149597
|
+
* @property {string|null} [firstName] Contact firstName
|
|
149598
|
+
* @property {string|null} [lastName] Contact lastName
|
|
149599
|
+
* @property {string|null} [userId] Contact userId
|
|
149600
|
+
* @property {string|null} [orgId] Contact orgId
|
|
149601
|
+
* @property {string|null} [email] Contact email
|
|
149602
|
+
* @property {number|null} [createdAt] Contact createdAt
|
|
149603
|
+
*/
|
|
149604
|
+
|
|
149605
|
+
/**
|
|
149606
|
+
* Constructs a new Contact.
|
|
149607
|
+
* @exports Contact
|
|
149608
|
+
* @classdesc Represents a Contact.
|
|
149609
|
+
* @implements IContact
|
|
149610
|
+
* @constructor
|
|
149611
|
+
* @param {IContact=} [properties] Properties to set
|
|
149612
|
+
*/
|
|
149613
|
+
function Contact(properties) {
|
|
149614
|
+
if (properties)
|
|
149615
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
149616
|
+
if (properties[keys[i]] != null)
|
|
149617
|
+
this[keys[i]] = properties[keys[i]];
|
|
149618
|
+
}
|
|
149619
|
+
|
|
149620
|
+
/**
|
|
149621
|
+
* Contact _id.
|
|
149622
|
+
* @member {string} _id
|
|
149623
|
+
* @memberof Contact
|
|
149624
|
+
* @instance
|
|
149625
|
+
*/
|
|
149626
|
+
Contact.prototype._id = "";
|
|
149627
|
+
|
|
149628
|
+
/**
|
|
149629
|
+
* Contact firstName.
|
|
149630
|
+
* @member {string} firstName
|
|
149631
|
+
* @memberof Contact
|
|
149632
|
+
* @instance
|
|
149633
|
+
*/
|
|
149634
|
+
Contact.prototype.firstName = "";
|
|
149635
|
+
|
|
149636
|
+
/**
|
|
149637
|
+
* Contact lastName.
|
|
149638
|
+
* @member {string} lastName
|
|
149639
|
+
* @memberof Contact
|
|
149640
|
+
* @instance
|
|
149641
|
+
*/
|
|
149642
|
+
Contact.prototype.lastName = "";
|
|
149643
|
+
|
|
149644
|
+
/**
|
|
149645
|
+
* Contact userId.
|
|
149646
|
+
* @member {string} userId
|
|
149647
|
+
* @memberof Contact
|
|
149648
|
+
* @instance
|
|
149649
|
+
*/
|
|
149650
|
+
Contact.prototype.userId = "";
|
|
149651
|
+
|
|
149652
|
+
/**
|
|
149653
|
+
* Contact orgId.
|
|
149654
|
+
* @member {string} orgId
|
|
149655
|
+
* @memberof Contact
|
|
149656
|
+
* @instance
|
|
149657
|
+
*/
|
|
149658
|
+
Contact.prototype.orgId = "";
|
|
149659
|
+
|
|
149660
|
+
/**
|
|
149661
|
+
* Contact email.
|
|
149662
|
+
* @member {string} email
|
|
149663
|
+
* @memberof Contact
|
|
149664
|
+
* @instance
|
|
149665
|
+
*/
|
|
149666
|
+
Contact.prototype.email = "";
|
|
149667
|
+
|
|
149668
|
+
/**
|
|
149669
|
+
* Contact createdAt.
|
|
149670
|
+
* @member {number} createdAt
|
|
149671
|
+
* @memberof Contact
|
|
149672
|
+
* @instance
|
|
149673
|
+
*/
|
|
149674
|
+
Contact.prototype.createdAt = 0;
|
|
149675
|
+
|
|
149676
|
+
/**
|
|
149677
|
+
* Creates a new Contact instance using the specified properties.
|
|
149678
|
+
* @function create
|
|
149679
|
+
* @memberof Contact
|
|
149680
|
+
* @static
|
|
149681
|
+
* @param {IContact=} [properties] Properties to set
|
|
149682
|
+
* @returns {Contact} Contact instance
|
|
149683
|
+
*/
|
|
149684
|
+
Contact.create = function create(properties) {
|
|
149685
|
+
return new Contact(properties);
|
|
149686
|
+
};
|
|
149687
|
+
|
|
149688
|
+
/**
|
|
149689
|
+
* Encodes the specified Contact message. Does not implicitly {@link Contact.verify|verify} messages.
|
|
149690
|
+
* @function encode
|
|
149691
|
+
* @memberof Contact
|
|
149692
|
+
* @static
|
|
149693
|
+
* @param {IContact} message Contact message or plain object to encode
|
|
149694
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
149695
|
+
* @returns {$protobuf.Writer} Writer
|
|
149696
|
+
*/
|
|
149697
|
+
Contact.encode = function encode(message, writer) {
|
|
149698
|
+
if (!writer)
|
|
149699
|
+
writer = $Writer.create();
|
|
149700
|
+
if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
|
|
149701
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message._id);
|
|
149702
|
+
if (message.firstName != null && Object.hasOwnProperty.call(message, "firstName"))
|
|
149703
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.firstName);
|
|
149704
|
+
if (message.lastName != null && Object.hasOwnProperty.call(message, "lastName"))
|
|
149705
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.lastName);
|
|
149706
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
149707
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
149708
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
149709
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.orgId);
|
|
149710
|
+
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
149711
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.email);
|
|
149712
|
+
if (message.createdAt != null && Object.hasOwnProperty.call(message, "createdAt"))
|
|
149713
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.createdAt);
|
|
149714
|
+
return writer;
|
|
149715
|
+
};
|
|
149716
|
+
|
|
149717
|
+
/**
|
|
149718
|
+
* Encodes the specified Contact message, length delimited. Does not implicitly {@link Contact.verify|verify} messages.
|
|
149719
|
+
* @function encodeDelimited
|
|
149720
|
+
* @memberof Contact
|
|
149721
|
+
* @static
|
|
149722
|
+
* @param {IContact} message Contact message or plain object to encode
|
|
149723
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
149724
|
+
* @returns {$protobuf.Writer} Writer
|
|
149725
|
+
*/
|
|
149726
|
+
Contact.encodeDelimited = function encodeDelimited(message, writer) {
|
|
149727
|
+
return this.encode(message, writer).ldelim();
|
|
149728
|
+
};
|
|
149729
|
+
|
|
149730
|
+
/**
|
|
149731
|
+
* Decodes a Contact message from the specified reader or buffer.
|
|
149732
|
+
* @function decode
|
|
149733
|
+
* @memberof Contact
|
|
149734
|
+
* @static
|
|
149735
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
149736
|
+
* @param {number} [length] Message length if known beforehand
|
|
149737
|
+
* @returns {Contact} Contact
|
|
149738
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
149739
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
149740
|
+
*/
|
|
149741
|
+
Contact.decode = function decode(reader, length) {
|
|
149742
|
+
if (!(reader instanceof $Reader))
|
|
149743
|
+
reader = $Reader.create(reader);
|
|
149744
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Contact();
|
|
149745
|
+
while (reader.pos < end) {
|
|
149746
|
+
var tag = reader.uint32();
|
|
149747
|
+
switch (tag >>> 3) {
|
|
149748
|
+
case 0:
|
|
149749
|
+
message._id = reader.string();
|
|
149750
|
+
break;
|
|
149751
|
+
case 1:
|
|
149752
|
+
message.firstName = reader.string();
|
|
149753
|
+
break;
|
|
149754
|
+
case 2:
|
|
149755
|
+
message.lastName = reader.string();
|
|
149756
|
+
break;
|
|
149757
|
+
case 3:
|
|
149758
|
+
message.userId = reader.string();
|
|
149759
|
+
break;
|
|
149760
|
+
case 4:
|
|
149761
|
+
message.orgId = reader.string();
|
|
149762
|
+
break;
|
|
149763
|
+
case 5:
|
|
149764
|
+
message.email = reader.string();
|
|
149765
|
+
break;
|
|
149766
|
+
case 6:
|
|
149767
|
+
message.createdAt = reader.int32();
|
|
149768
|
+
break;
|
|
149769
|
+
default:
|
|
149770
|
+
reader.skipType(tag & 7);
|
|
149771
|
+
break;
|
|
149772
|
+
}
|
|
149773
|
+
}
|
|
149774
|
+
return message;
|
|
149775
|
+
};
|
|
149776
|
+
|
|
149777
|
+
/**
|
|
149778
|
+
* Decodes a Contact message from the specified reader or buffer, length delimited.
|
|
149779
|
+
* @function decodeDelimited
|
|
149780
|
+
* @memberof Contact
|
|
149781
|
+
* @static
|
|
149782
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
149783
|
+
* @returns {Contact} Contact
|
|
149784
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
149785
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
149786
|
+
*/
|
|
149787
|
+
Contact.decodeDelimited = function decodeDelimited(reader) {
|
|
149788
|
+
if (!(reader instanceof $Reader))
|
|
149789
|
+
reader = new $Reader(reader);
|
|
149790
|
+
return this.decode(reader, reader.uint32());
|
|
149791
|
+
};
|
|
149792
|
+
|
|
149793
|
+
/**
|
|
149794
|
+
* Verifies a Contact message.
|
|
149795
|
+
* @function verify
|
|
149796
|
+
* @memberof Contact
|
|
149797
|
+
* @static
|
|
149798
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
149799
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
149800
|
+
*/
|
|
149801
|
+
Contact.verify = function verify(message) {
|
|
149802
|
+
if (typeof message !== "object" || message === null)
|
|
149803
|
+
return "object expected";
|
|
149804
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
149805
|
+
if (!$util.isString(message._id))
|
|
149806
|
+
return "_id: string expected";
|
|
149807
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
149808
|
+
if (!$util.isString(message.firstName))
|
|
149809
|
+
return "firstName: string expected";
|
|
149810
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
149811
|
+
if (!$util.isString(message.lastName))
|
|
149812
|
+
return "lastName: string expected";
|
|
149813
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
149814
|
+
if (!$util.isString(message.userId))
|
|
149815
|
+
return "userId: string expected";
|
|
149816
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
149817
|
+
if (!$util.isString(message.orgId))
|
|
149818
|
+
return "orgId: string expected";
|
|
149819
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
149820
|
+
if (!$util.isString(message.email))
|
|
149821
|
+
return "email: string expected";
|
|
149822
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
149823
|
+
if (!$util.isInteger(message.createdAt))
|
|
149824
|
+
return "createdAt: integer expected";
|
|
149825
|
+
return null;
|
|
149826
|
+
};
|
|
149827
|
+
|
|
149828
|
+
/**
|
|
149829
|
+
* Creates a Contact message from a plain object. Also converts values to their respective internal types.
|
|
149830
|
+
* @function fromObject
|
|
149831
|
+
* @memberof Contact
|
|
149832
|
+
* @static
|
|
149833
|
+
* @param {Object.<string,*>} object Plain object
|
|
149834
|
+
* @returns {Contact} Contact
|
|
149835
|
+
*/
|
|
149836
|
+
Contact.fromObject = function fromObject(object) {
|
|
149837
|
+
if (object instanceof $root.Contact)
|
|
149838
|
+
return object;
|
|
149839
|
+
var message = new $root.Contact();
|
|
149840
|
+
if (object._id != null)
|
|
149841
|
+
message._id = String(object._id);
|
|
149842
|
+
if (object.firstName != null)
|
|
149843
|
+
message.firstName = String(object.firstName);
|
|
149844
|
+
if (object.lastName != null)
|
|
149845
|
+
message.lastName = String(object.lastName);
|
|
149846
|
+
if (object.userId != null)
|
|
149847
|
+
message.userId = String(object.userId);
|
|
149848
|
+
if (object.orgId != null)
|
|
149849
|
+
message.orgId = String(object.orgId);
|
|
149850
|
+
if (object.email != null)
|
|
149851
|
+
message.email = String(object.email);
|
|
149852
|
+
if (object.createdAt != null)
|
|
149853
|
+
message.createdAt = object.createdAt | 0;
|
|
149854
|
+
return message;
|
|
149855
|
+
};
|
|
149856
|
+
|
|
149857
|
+
/**
|
|
149858
|
+
* Creates a plain object from a Contact message. Also converts values to other types if specified.
|
|
149859
|
+
* @function toObject
|
|
149860
|
+
* @memberof Contact
|
|
149861
|
+
* @static
|
|
149862
|
+
* @param {Contact} message Contact
|
|
149863
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
149864
|
+
* @returns {Object.<string,*>} Plain object
|
|
149865
|
+
*/
|
|
149866
|
+
Contact.toObject = function toObject(message, options) {
|
|
149867
|
+
if (!options)
|
|
149868
|
+
options = {};
|
|
149869
|
+
var object = {};
|
|
149870
|
+
if (options.defaults) {
|
|
149871
|
+
object._id = "";
|
|
149872
|
+
object.firstName = "";
|
|
149873
|
+
object.lastName = "";
|
|
149874
|
+
object.userId = "";
|
|
149875
|
+
object.orgId = "";
|
|
149876
|
+
object.email = "";
|
|
149877
|
+
object.createdAt = 0;
|
|
149878
|
+
}
|
|
149879
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
149880
|
+
object._id = message._id;
|
|
149881
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
149882
|
+
object.firstName = message.firstName;
|
|
149883
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
149884
|
+
object.lastName = message.lastName;
|
|
149885
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
149886
|
+
object.userId = message.userId;
|
|
149887
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
149888
|
+
object.orgId = message.orgId;
|
|
149889
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
149890
|
+
object.email = message.email;
|
|
149891
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
149892
|
+
object.createdAt = message.createdAt;
|
|
149893
|
+
return object;
|
|
149894
|
+
};
|
|
149895
|
+
|
|
149896
|
+
/**
|
|
149897
|
+
* Converts this Contact to JSON.
|
|
149898
|
+
* @function toJSON
|
|
149899
|
+
* @memberof Contact
|
|
149900
|
+
* @instance
|
|
149901
|
+
* @returns {Object.<string,*>} JSON object
|
|
149902
|
+
*/
|
|
149903
|
+
Contact.prototype.toJSON = function toJSON() {
|
|
149904
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
149905
|
+
};
|
|
149906
|
+
|
|
149907
|
+
return Contact;
|
|
149908
|
+
})();
|
|
149909
|
+
|
|
149910
|
+
$root.CreateContactRequest = (function() {
|
|
149911
|
+
|
|
149912
|
+
/**
|
|
149913
|
+
* Properties of a CreateContactRequest.
|
|
149914
|
+
* @exports ICreateContactRequest
|
|
149915
|
+
* @interface ICreateContactRequest
|
|
149916
|
+
* @property {string|null} [spanContext] CreateContactRequest spanContext
|
|
149917
|
+
* @property {string|null} [orgId] CreateContactRequest orgId
|
|
149918
|
+
* @property {Array.<IContact>|null} [contact] CreateContactRequest contact
|
|
149919
|
+
*/
|
|
149920
|
+
|
|
149921
|
+
/**
|
|
149922
|
+
* Constructs a new CreateContactRequest.
|
|
149923
|
+
* @exports CreateContactRequest
|
|
149924
|
+
* @classdesc Represents a CreateContactRequest.
|
|
149925
|
+
* @implements ICreateContactRequest
|
|
149926
|
+
* @constructor
|
|
149927
|
+
* @param {ICreateContactRequest=} [properties] Properties to set
|
|
149928
|
+
*/
|
|
149929
|
+
function CreateContactRequest(properties) {
|
|
149930
|
+
this.contact = [];
|
|
149931
|
+
if (properties)
|
|
149932
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
149933
|
+
if (properties[keys[i]] != null)
|
|
149934
|
+
this[keys[i]] = properties[keys[i]];
|
|
149935
|
+
}
|
|
149936
|
+
|
|
149937
|
+
/**
|
|
149938
|
+
* CreateContactRequest spanContext.
|
|
149939
|
+
* @member {string} spanContext
|
|
149940
|
+
* @memberof CreateContactRequest
|
|
149941
|
+
* @instance
|
|
149942
|
+
*/
|
|
149943
|
+
CreateContactRequest.prototype.spanContext = "";
|
|
149944
|
+
|
|
149945
|
+
/**
|
|
149946
|
+
* CreateContactRequest orgId.
|
|
149947
|
+
* @member {string} orgId
|
|
149948
|
+
* @memberof CreateContactRequest
|
|
149949
|
+
* @instance
|
|
149950
|
+
*/
|
|
149951
|
+
CreateContactRequest.prototype.orgId = "";
|
|
149952
|
+
|
|
149953
|
+
/**
|
|
149954
|
+
* CreateContactRequest contact.
|
|
149955
|
+
* @member {Array.<IContact>} contact
|
|
149956
|
+
* @memberof CreateContactRequest
|
|
149957
|
+
* @instance
|
|
149958
|
+
*/
|
|
149959
|
+
CreateContactRequest.prototype.contact = $util.emptyArray;
|
|
149960
|
+
|
|
149961
|
+
/**
|
|
149962
|
+
* Creates a new CreateContactRequest instance using the specified properties.
|
|
149963
|
+
* @function create
|
|
149964
|
+
* @memberof CreateContactRequest
|
|
149965
|
+
* @static
|
|
149966
|
+
* @param {ICreateContactRequest=} [properties] Properties to set
|
|
149967
|
+
* @returns {CreateContactRequest} CreateContactRequest instance
|
|
149968
|
+
*/
|
|
149969
|
+
CreateContactRequest.create = function create(properties) {
|
|
149970
|
+
return new CreateContactRequest(properties);
|
|
149971
|
+
};
|
|
149972
|
+
|
|
149973
|
+
/**
|
|
149974
|
+
* Encodes the specified CreateContactRequest message. Does not implicitly {@link CreateContactRequest.verify|verify} messages.
|
|
149975
|
+
* @function encode
|
|
149976
|
+
* @memberof CreateContactRequest
|
|
149977
|
+
* @static
|
|
149978
|
+
* @param {ICreateContactRequest} message CreateContactRequest message or plain object to encode
|
|
149979
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
149980
|
+
* @returns {$protobuf.Writer} Writer
|
|
149981
|
+
*/
|
|
149982
|
+
CreateContactRequest.encode = function encode(message, writer) {
|
|
149983
|
+
if (!writer)
|
|
149984
|
+
writer = $Writer.create();
|
|
149985
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
149986
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
149987
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
149988
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
149989
|
+
if (message.contact != null && message.contact.length)
|
|
149990
|
+
for (var i = 0; i < message.contact.length; ++i)
|
|
149991
|
+
$root.Contact.encode(message.contact[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
149992
|
+
return writer;
|
|
149993
|
+
};
|
|
149994
|
+
|
|
149995
|
+
/**
|
|
149996
|
+
* Encodes the specified CreateContactRequest message, length delimited. Does not implicitly {@link CreateContactRequest.verify|verify} messages.
|
|
149997
|
+
* @function encodeDelimited
|
|
149998
|
+
* @memberof CreateContactRequest
|
|
149999
|
+
* @static
|
|
150000
|
+
* @param {ICreateContactRequest} message CreateContactRequest message or plain object to encode
|
|
150001
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150002
|
+
* @returns {$protobuf.Writer} Writer
|
|
150003
|
+
*/
|
|
150004
|
+
CreateContactRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
150005
|
+
return this.encode(message, writer).ldelim();
|
|
150006
|
+
};
|
|
150007
|
+
|
|
150008
|
+
/**
|
|
150009
|
+
* Decodes a CreateContactRequest message from the specified reader or buffer.
|
|
150010
|
+
* @function decode
|
|
150011
|
+
* @memberof CreateContactRequest
|
|
150012
|
+
* @static
|
|
150013
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150014
|
+
* @param {number} [length] Message length if known beforehand
|
|
150015
|
+
* @returns {CreateContactRequest} CreateContactRequest
|
|
150016
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150017
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150018
|
+
*/
|
|
150019
|
+
CreateContactRequest.decode = function decode(reader, length) {
|
|
150020
|
+
if (!(reader instanceof $Reader))
|
|
150021
|
+
reader = $Reader.create(reader);
|
|
150022
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateContactRequest();
|
|
150023
|
+
while (reader.pos < end) {
|
|
150024
|
+
var tag = reader.uint32();
|
|
150025
|
+
switch (tag >>> 3) {
|
|
150026
|
+
case 0:
|
|
150027
|
+
message.spanContext = reader.string();
|
|
150028
|
+
break;
|
|
150029
|
+
case 1:
|
|
150030
|
+
message.orgId = reader.string();
|
|
150031
|
+
break;
|
|
150032
|
+
case 2:
|
|
150033
|
+
if (!(message.contact && message.contact.length))
|
|
150034
|
+
message.contact = [];
|
|
150035
|
+
message.contact.push($root.Contact.decode(reader, reader.uint32()));
|
|
150036
|
+
break;
|
|
150037
|
+
default:
|
|
150038
|
+
reader.skipType(tag & 7);
|
|
150039
|
+
break;
|
|
150040
|
+
}
|
|
150041
|
+
}
|
|
150042
|
+
return message;
|
|
150043
|
+
};
|
|
150044
|
+
|
|
150045
|
+
/**
|
|
150046
|
+
* Decodes a CreateContactRequest message from the specified reader or buffer, length delimited.
|
|
150047
|
+
* @function decodeDelimited
|
|
150048
|
+
* @memberof CreateContactRequest
|
|
150049
|
+
* @static
|
|
150050
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150051
|
+
* @returns {CreateContactRequest} CreateContactRequest
|
|
150052
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150053
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150054
|
+
*/
|
|
150055
|
+
CreateContactRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
150056
|
+
if (!(reader instanceof $Reader))
|
|
150057
|
+
reader = new $Reader(reader);
|
|
150058
|
+
return this.decode(reader, reader.uint32());
|
|
150059
|
+
};
|
|
150060
|
+
|
|
150061
|
+
/**
|
|
150062
|
+
* Verifies a CreateContactRequest message.
|
|
150063
|
+
* @function verify
|
|
150064
|
+
* @memberof CreateContactRequest
|
|
150065
|
+
* @static
|
|
150066
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
150067
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
150068
|
+
*/
|
|
150069
|
+
CreateContactRequest.verify = function verify(message) {
|
|
150070
|
+
if (typeof message !== "object" || message === null)
|
|
150071
|
+
return "object expected";
|
|
150072
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
150073
|
+
if (!$util.isString(message.spanContext))
|
|
150074
|
+
return "spanContext: string expected";
|
|
150075
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
150076
|
+
if (!$util.isString(message.orgId))
|
|
150077
|
+
return "orgId: string expected";
|
|
150078
|
+
if (message.contact != null && message.hasOwnProperty("contact")) {
|
|
150079
|
+
if (!Array.isArray(message.contact))
|
|
150080
|
+
return "contact: array expected";
|
|
150081
|
+
for (var i = 0; i < message.contact.length; ++i) {
|
|
150082
|
+
var error = $root.Contact.verify(message.contact[i]);
|
|
150083
|
+
if (error)
|
|
150084
|
+
return "contact." + error;
|
|
150085
|
+
}
|
|
150086
|
+
}
|
|
150087
|
+
return null;
|
|
150088
|
+
};
|
|
150089
|
+
|
|
150090
|
+
/**
|
|
150091
|
+
* Creates a CreateContactRequest message from a plain object. Also converts values to their respective internal types.
|
|
150092
|
+
* @function fromObject
|
|
150093
|
+
* @memberof CreateContactRequest
|
|
150094
|
+
* @static
|
|
150095
|
+
* @param {Object.<string,*>} object Plain object
|
|
150096
|
+
* @returns {CreateContactRequest} CreateContactRequest
|
|
150097
|
+
*/
|
|
150098
|
+
CreateContactRequest.fromObject = function fromObject(object) {
|
|
150099
|
+
if (object instanceof $root.CreateContactRequest)
|
|
150100
|
+
return object;
|
|
150101
|
+
var message = new $root.CreateContactRequest();
|
|
150102
|
+
if (object.spanContext != null)
|
|
150103
|
+
message.spanContext = String(object.spanContext);
|
|
150104
|
+
if (object.orgId != null)
|
|
150105
|
+
message.orgId = String(object.orgId);
|
|
150106
|
+
if (object.contact) {
|
|
150107
|
+
if (!Array.isArray(object.contact))
|
|
150108
|
+
throw TypeError(".CreateContactRequest.contact: array expected");
|
|
150109
|
+
message.contact = [];
|
|
150110
|
+
for (var i = 0; i < object.contact.length; ++i) {
|
|
150111
|
+
if (typeof object.contact[i] !== "object")
|
|
150112
|
+
throw TypeError(".CreateContactRequest.contact: object expected");
|
|
150113
|
+
message.contact[i] = $root.Contact.fromObject(object.contact[i]);
|
|
150114
|
+
}
|
|
150115
|
+
}
|
|
150116
|
+
return message;
|
|
150117
|
+
};
|
|
150118
|
+
|
|
150119
|
+
/**
|
|
150120
|
+
* Creates a plain object from a CreateContactRequest message. Also converts values to other types if specified.
|
|
150121
|
+
* @function toObject
|
|
150122
|
+
* @memberof CreateContactRequest
|
|
150123
|
+
* @static
|
|
150124
|
+
* @param {CreateContactRequest} message CreateContactRequest
|
|
150125
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
150126
|
+
* @returns {Object.<string,*>} Plain object
|
|
150127
|
+
*/
|
|
150128
|
+
CreateContactRequest.toObject = function toObject(message, options) {
|
|
150129
|
+
if (!options)
|
|
150130
|
+
options = {};
|
|
150131
|
+
var object = {};
|
|
150132
|
+
if (options.arrays || options.defaults)
|
|
150133
|
+
object.contact = [];
|
|
150134
|
+
if (options.defaults) {
|
|
150135
|
+
object.spanContext = "";
|
|
150136
|
+
object.orgId = "";
|
|
150137
|
+
}
|
|
150138
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
150139
|
+
object.spanContext = message.spanContext;
|
|
150140
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
150141
|
+
object.orgId = message.orgId;
|
|
150142
|
+
if (message.contact && message.contact.length) {
|
|
150143
|
+
object.contact = [];
|
|
150144
|
+
for (var j = 0; j < message.contact.length; ++j)
|
|
150145
|
+
object.contact[j] = $root.Contact.toObject(message.contact[j], options);
|
|
150146
|
+
}
|
|
150147
|
+
return object;
|
|
150148
|
+
};
|
|
150149
|
+
|
|
150150
|
+
/**
|
|
150151
|
+
* Converts this CreateContactRequest to JSON.
|
|
150152
|
+
* @function toJSON
|
|
150153
|
+
* @memberof CreateContactRequest
|
|
150154
|
+
* @instance
|
|
150155
|
+
* @returns {Object.<string,*>} JSON object
|
|
150156
|
+
*/
|
|
150157
|
+
CreateContactRequest.prototype.toJSON = function toJSON() {
|
|
150158
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
150159
|
+
};
|
|
150160
|
+
|
|
150161
|
+
return CreateContactRequest;
|
|
150162
|
+
})();
|
|
150163
|
+
|
|
150164
|
+
$root.CreateContactResponse = (function() {
|
|
150165
|
+
|
|
150166
|
+
/**
|
|
150167
|
+
* Properties of a CreateContactResponse.
|
|
150168
|
+
* @exports ICreateContactResponse
|
|
150169
|
+
* @interface ICreateContactResponse
|
|
150170
|
+
* @property {StatusCode|null} [status] CreateContactResponse status
|
|
150171
|
+
* @property {Array.<IError>|null} [errors] CreateContactResponse errors
|
|
150172
|
+
*/
|
|
150173
|
+
|
|
150174
|
+
/**
|
|
150175
|
+
* Constructs a new CreateContactResponse.
|
|
150176
|
+
* @exports CreateContactResponse
|
|
150177
|
+
* @classdesc Represents a CreateContactResponse.
|
|
150178
|
+
* @implements ICreateContactResponse
|
|
150179
|
+
* @constructor
|
|
150180
|
+
* @param {ICreateContactResponse=} [properties] Properties to set
|
|
150181
|
+
*/
|
|
150182
|
+
function CreateContactResponse(properties) {
|
|
150183
|
+
this.errors = [];
|
|
150184
|
+
if (properties)
|
|
150185
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
150186
|
+
if (properties[keys[i]] != null)
|
|
150187
|
+
this[keys[i]] = properties[keys[i]];
|
|
150188
|
+
}
|
|
150189
|
+
|
|
150190
|
+
/**
|
|
150191
|
+
* CreateContactResponse status.
|
|
150192
|
+
* @member {StatusCode} status
|
|
150193
|
+
* @memberof CreateContactResponse
|
|
150194
|
+
* @instance
|
|
150195
|
+
*/
|
|
150196
|
+
CreateContactResponse.prototype.status = 0;
|
|
150197
|
+
|
|
150198
|
+
/**
|
|
150199
|
+
* CreateContactResponse errors.
|
|
150200
|
+
* @member {Array.<IError>} errors
|
|
150201
|
+
* @memberof CreateContactResponse
|
|
150202
|
+
* @instance
|
|
150203
|
+
*/
|
|
150204
|
+
CreateContactResponse.prototype.errors = $util.emptyArray;
|
|
150205
|
+
|
|
150206
|
+
/**
|
|
150207
|
+
* Creates a new CreateContactResponse instance using the specified properties.
|
|
150208
|
+
* @function create
|
|
150209
|
+
* @memberof CreateContactResponse
|
|
150210
|
+
* @static
|
|
150211
|
+
* @param {ICreateContactResponse=} [properties] Properties to set
|
|
150212
|
+
* @returns {CreateContactResponse} CreateContactResponse instance
|
|
150213
|
+
*/
|
|
150214
|
+
CreateContactResponse.create = function create(properties) {
|
|
150215
|
+
return new CreateContactResponse(properties);
|
|
150216
|
+
};
|
|
150217
|
+
|
|
150218
|
+
/**
|
|
150219
|
+
* Encodes the specified CreateContactResponse message. Does not implicitly {@link CreateContactResponse.verify|verify} messages.
|
|
150220
|
+
* @function encode
|
|
150221
|
+
* @memberof CreateContactResponse
|
|
150222
|
+
* @static
|
|
150223
|
+
* @param {ICreateContactResponse} message CreateContactResponse message or plain object to encode
|
|
150224
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150225
|
+
* @returns {$protobuf.Writer} Writer
|
|
150226
|
+
*/
|
|
150227
|
+
CreateContactResponse.encode = function encode(message, writer) {
|
|
150228
|
+
if (!writer)
|
|
150229
|
+
writer = $Writer.create();
|
|
150230
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
150231
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
|
|
150232
|
+
if (message.errors != null && message.errors.length)
|
|
150233
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
150234
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
150235
|
+
return writer;
|
|
150236
|
+
};
|
|
150237
|
+
|
|
150238
|
+
/**
|
|
150239
|
+
* Encodes the specified CreateContactResponse message, length delimited. Does not implicitly {@link CreateContactResponse.verify|verify} messages.
|
|
150240
|
+
* @function encodeDelimited
|
|
150241
|
+
* @memberof CreateContactResponse
|
|
150242
|
+
* @static
|
|
150243
|
+
* @param {ICreateContactResponse} message CreateContactResponse message or plain object to encode
|
|
150244
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150245
|
+
* @returns {$protobuf.Writer} Writer
|
|
150246
|
+
*/
|
|
150247
|
+
CreateContactResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
150248
|
+
return this.encode(message, writer).ldelim();
|
|
150249
|
+
};
|
|
150250
|
+
|
|
150251
|
+
/**
|
|
150252
|
+
* Decodes a CreateContactResponse message from the specified reader or buffer.
|
|
150253
|
+
* @function decode
|
|
150254
|
+
* @memberof CreateContactResponse
|
|
150255
|
+
* @static
|
|
150256
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150257
|
+
* @param {number} [length] Message length if known beforehand
|
|
150258
|
+
* @returns {CreateContactResponse} CreateContactResponse
|
|
150259
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150260
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150261
|
+
*/
|
|
150262
|
+
CreateContactResponse.decode = function decode(reader, length) {
|
|
150263
|
+
if (!(reader instanceof $Reader))
|
|
150264
|
+
reader = $Reader.create(reader);
|
|
150265
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CreateContactResponse();
|
|
150266
|
+
while (reader.pos < end) {
|
|
150267
|
+
var tag = reader.uint32();
|
|
150268
|
+
switch (tag >>> 3) {
|
|
150269
|
+
case 1:
|
|
150270
|
+
message.status = reader.int32();
|
|
150271
|
+
break;
|
|
150272
|
+
case 2:
|
|
150273
|
+
if (!(message.errors && message.errors.length))
|
|
150274
|
+
message.errors = [];
|
|
150275
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
150276
|
+
break;
|
|
150277
|
+
default:
|
|
150278
|
+
reader.skipType(tag & 7);
|
|
150279
|
+
break;
|
|
150280
|
+
}
|
|
150281
|
+
}
|
|
150282
|
+
return message;
|
|
150283
|
+
};
|
|
150284
|
+
|
|
150285
|
+
/**
|
|
150286
|
+
* Decodes a CreateContactResponse message from the specified reader or buffer, length delimited.
|
|
150287
|
+
* @function decodeDelimited
|
|
150288
|
+
* @memberof CreateContactResponse
|
|
150289
|
+
* @static
|
|
150290
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150291
|
+
* @returns {CreateContactResponse} CreateContactResponse
|
|
150292
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150293
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150294
|
+
*/
|
|
150295
|
+
CreateContactResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
150296
|
+
if (!(reader instanceof $Reader))
|
|
150297
|
+
reader = new $Reader(reader);
|
|
150298
|
+
return this.decode(reader, reader.uint32());
|
|
150299
|
+
};
|
|
150300
|
+
|
|
150301
|
+
/**
|
|
150302
|
+
* Verifies a CreateContactResponse message.
|
|
150303
|
+
* @function verify
|
|
150304
|
+
* @memberof CreateContactResponse
|
|
150305
|
+
* @static
|
|
150306
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
150307
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
150308
|
+
*/
|
|
150309
|
+
CreateContactResponse.verify = function verify(message) {
|
|
150310
|
+
if (typeof message !== "object" || message === null)
|
|
150311
|
+
return "object expected";
|
|
150312
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
150313
|
+
switch (message.status) {
|
|
150314
|
+
default:
|
|
150315
|
+
return "status: enum value expected";
|
|
150316
|
+
case 0:
|
|
150317
|
+
case 200:
|
|
150318
|
+
case 400:
|
|
150319
|
+
case 401:
|
|
150320
|
+
case 403:
|
|
150321
|
+
case 422:
|
|
150322
|
+
case 404:
|
|
150323
|
+
case 500:
|
|
150324
|
+
case 504:
|
|
150325
|
+
break;
|
|
150326
|
+
}
|
|
150327
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
150328
|
+
if (!Array.isArray(message.errors))
|
|
150329
|
+
return "errors: array expected";
|
|
150330
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
150331
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
150332
|
+
if (error)
|
|
150333
|
+
return "errors." + error;
|
|
150334
|
+
}
|
|
150335
|
+
}
|
|
150336
|
+
return null;
|
|
150337
|
+
};
|
|
150338
|
+
|
|
150339
|
+
/**
|
|
150340
|
+
* Creates a CreateContactResponse message from a plain object. Also converts values to their respective internal types.
|
|
150341
|
+
* @function fromObject
|
|
150342
|
+
* @memberof CreateContactResponse
|
|
150343
|
+
* @static
|
|
150344
|
+
* @param {Object.<string,*>} object Plain object
|
|
150345
|
+
* @returns {CreateContactResponse} CreateContactResponse
|
|
150346
|
+
*/
|
|
150347
|
+
CreateContactResponse.fromObject = function fromObject(object) {
|
|
150348
|
+
if (object instanceof $root.CreateContactResponse)
|
|
150349
|
+
return object;
|
|
150350
|
+
var message = new $root.CreateContactResponse();
|
|
150351
|
+
switch (object.status) {
|
|
150352
|
+
case "UNKNOWN_CODE":
|
|
150353
|
+
case 0:
|
|
150354
|
+
message.status = 0;
|
|
150355
|
+
break;
|
|
150356
|
+
case "OK":
|
|
150357
|
+
case 200:
|
|
150358
|
+
message.status = 200;
|
|
150359
|
+
break;
|
|
150360
|
+
case "BAD_REQUEST":
|
|
150361
|
+
case 400:
|
|
150362
|
+
message.status = 400;
|
|
150363
|
+
break;
|
|
150364
|
+
case "UNAUTHORIZED":
|
|
150365
|
+
case 401:
|
|
150366
|
+
message.status = 401;
|
|
150367
|
+
break;
|
|
150368
|
+
case "FORBIDDEN":
|
|
150369
|
+
case 403:
|
|
150370
|
+
message.status = 403;
|
|
150371
|
+
break;
|
|
150372
|
+
case "UNPROCESSABLE_ENTITY":
|
|
150373
|
+
case 422:
|
|
150374
|
+
message.status = 422;
|
|
150375
|
+
break;
|
|
150376
|
+
case "NOT_FOUND":
|
|
150377
|
+
case 404:
|
|
150378
|
+
message.status = 404;
|
|
150379
|
+
break;
|
|
150380
|
+
case "INTERNAL_SERVER_ERROR":
|
|
150381
|
+
case 500:
|
|
150382
|
+
message.status = 500;
|
|
150383
|
+
break;
|
|
150384
|
+
case "GATEWAY_TIMEOUT":
|
|
150385
|
+
case 504:
|
|
150386
|
+
message.status = 504;
|
|
150387
|
+
break;
|
|
150388
|
+
}
|
|
150389
|
+
if (object.errors) {
|
|
150390
|
+
if (!Array.isArray(object.errors))
|
|
150391
|
+
throw TypeError(".CreateContactResponse.errors: array expected");
|
|
150392
|
+
message.errors = [];
|
|
150393
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
150394
|
+
if (typeof object.errors[i] !== "object")
|
|
150395
|
+
throw TypeError(".CreateContactResponse.errors: object expected");
|
|
150396
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
150397
|
+
}
|
|
150398
|
+
}
|
|
150399
|
+
return message;
|
|
150400
|
+
};
|
|
150401
|
+
|
|
150402
|
+
/**
|
|
150403
|
+
* Creates a plain object from a CreateContactResponse message. Also converts values to other types if specified.
|
|
150404
|
+
* @function toObject
|
|
150405
|
+
* @memberof CreateContactResponse
|
|
150406
|
+
* @static
|
|
150407
|
+
* @param {CreateContactResponse} message CreateContactResponse
|
|
150408
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
150409
|
+
* @returns {Object.<string,*>} Plain object
|
|
150410
|
+
*/
|
|
150411
|
+
CreateContactResponse.toObject = function toObject(message, options) {
|
|
150412
|
+
if (!options)
|
|
150413
|
+
options = {};
|
|
150414
|
+
var object = {};
|
|
150415
|
+
if (options.arrays || options.defaults)
|
|
150416
|
+
object.errors = [];
|
|
150417
|
+
if (options.defaults)
|
|
150418
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
150419
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
150420
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
150421
|
+
if (message.errors && message.errors.length) {
|
|
150422
|
+
object.errors = [];
|
|
150423
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
150424
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
150425
|
+
}
|
|
150426
|
+
return object;
|
|
150427
|
+
};
|
|
150428
|
+
|
|
150429
|
+
/**
|
|
150430
|
+
* Converts this CreateContactResponse to JSON.
|
|
150431
|
+
* @function toJSON
|
|
150432
|
+
* @memberof CreateContactResponse
|
|
150433
|
+
* @instance
|
|
150434
|
+
* @returns {Object.<string,*>} JSON object
|
|
150435
|
+
*/
|
|
150436
|
+
CreateContactResponse.prototype.toJSON = function toJSON() {
|
|
150437
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
150438
|
+
};
|
|
150439
|
+
|
|
150440
|
+
return CreateContactResponse;
|
|
150441
|
+
})();
|
|
150442
|
+
|
|
150443
|
+
$root.ContactsQuery = (function() {
|
|
150444
|
+
|
|
150445
|
+
/**
|
|
150446
|
+
* Properties of a ContactsQuery.
|
|
150447
|
+
* @exports IContactsQuery
|
|
150448
|
+
* @interface IContactsQuery
|
|
150449
|
+
* @property {string|null} [name] ContactsQuery name
|
|
150450
|
+
* @property {string|null} [email] ContactsQuery email
|
|
150451
|
+
* @property {string|null} [userId] ContactsQuery userId
|
|
150452
|
+
* @property {string|null} [orgId] ContactsQuery orgId
|
|
150453
|
+
*/
|
|
150454
|
+
|
|
150455
|
+
/**
|
|
150456
|
+
* Constructs a new ContactsQuery.
|
|
150457
|
+
* @exports ContactsQuery
|
|
150458
|
+
* @classdesc Represents a ContactsQuery.
|
|
150459
|
+
* @implements IContactsQuery
|
|
150460
|
+
* @constructor
|
|
150461
|
+
* @param {IContactsQuery=} [properties] Properties to set
|
|
150462
|
+
*/
|
|
150463
|
+
function ContactsQuery(properties) {
|
|
150464
|
+
if (properties)
|
|
150465
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
150466
|
+
if (properties[keys[i]] != null)
|
|
150467
|
+
this[keys[i]] = properties[keys[i]];
|
|
150468
|
+
}
|
|
150469
|
+
|
|
150470
|
+
/**
|
|
150471
|
+
* ContactsQuery name.
|
|
150472
|
+
* @member {string} name
|
|
150473
|
+
* @memberof ContactsQuery
|
|
150474
|
+
* @instance
|
|
150475
|
+
*/
|
|
150476
|
+
ContactsQuery.prototype.name = "";
|
|
150477
|
+
|
|
150478
|
+
/**
|
|
150479
|
+
* ContactsQuery email.
|
|
150480
|
+
* @member {string} email
|
|
150481
|
+
* @memberof ContactsQuery
|
|
150482
|
+
* @instance
|
|
150483
|
+
*/
|
|
150484
|
+
ContactsQuery.prototype.email = "";
|
|
150485
|
+
|
|
150486
|
+
/**
|
|
150487
|
+
* ContactsQuery userId.
|
|
150488
|
+
* @member {string} userId
|
|
150489
|
+
* @memberof ContactsQuery
|
|
150490
|
+
* @instance
|
|
150491
|
+
*/
|
|
150492
|
+
ContactsQuery.prototype.userId = "";
|
|
150493
|
+
|
|
150494
|
+
/**
|
|
150495
|
+
* ContactsQuery orgId.
|
|
150496
|
+
* @member {string} orgId
|
|
150497
|
+
* @memberof ContactsQuery
|
|
150498
|
+
* @instance
|
|
150499
|
+
*/
|
|
150500
|
+
ContactsQuery.prototype.orgId = "";
|
|
150501
|
+
|
|
150502
|
+
/**
|
|
150503
|
+
* Creates a new ContactsQuery instance using the specified properties.
|
|
150504
|
+
* @function create
|
|
150505
|
+
* @memberof ContactsQuery
|
|
150506
|
+
* @static
|
|
150507
|
+
* @param {IContactsQuery=} [properties] Properties to set
|
|
150508
|
+
* @returns {ContactsQuery} ContactsQuery instance
|
|
150509
|
+
*/
|
|
150510
|
+
ContactsQuery.create = function create(properties) {
|
|
150511
|
+
return new ContactsQuery(properties);
|
|
150512
|
+
};
|
|
150513
|
+
|
|
150514
|
+
/**
|
|
150515
|
+
* Encodes the specified ContactsQuery message. Does not implicitly {@link ContactsQuery.verify|verify} messages.
|
|
150516
|
+
* @function encode
|
|
150517
|
+
* @memberof ContactsQuery
|
|
150518
|
+
* @static
|
|
150519
|
+
* @param {IContactsQuery} message ContactsQuery message or plain object to encode
|
|
150520
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150521
|
+
* @returns {$protobuf.Writer} Writer
|
|
150522
|
+
*/
|
|
150523
|
+
ContactsQuery.encode = function encode(message, writer) {
|
|
150524
|
+
if (!writer)
|
|
150525
|
+
writer = $Writer.create();
|
|
150526
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
150527
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.name);
|
|
150528
|
+
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
150529
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
|
|
150530
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
150531
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
150532
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
150533
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.orgId);
|
|
150534
|
+
return writer;
|
|
150535
|
+
};
|
|
150536
|
+
|
|
150537
|
+
/**
|
|
150538
|
+
* Encodes the specified ContactsQuery message, length delimited. Does not implicitly {@link ContactsQuery.verify|verify} messages.
|
|
150539
|
+
* @function encodeDelimited
|
|
150540
|
+
* @memberof ContactsQuery
|
|
150541
|
+
* @static
|
|
150542
|
+
* @param {IContactsQuery} message ContactsQuery message or plain object to encode
|
|
150543
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150544
|
+
* @returns {$protobuf.Writer} Writer
|
|
150545
|
+
*/
|
|
150546
|
+
ContactsQuery.encodeDelimited = function encodeDelimited(message, writer) {
|
|
150547
|
+
return this.encode(message, writer).ldelim();
|
|
150548
|
+
};
|
|
150549
|
+
|
|
150550
|
+
/**
|
|
150551
|
+
* Decodes a ContactsQuery message from the specified reader or buffer.
|
|
150552
|
+
* @function decode
|
|
150553
|
+
* @memberof ContactsQuery
|
|
150554
|
+
* @static
|
|
150555
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150556
|
+
* @param {number} [length] Message length if known beforehand
|
|
150557
|
+
* @returns {ContactsQuery} ContactsQuery
|
|
150558
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150559
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150560
|
+
*/
|
|
150561
|
+
ContactsQuery.decode = function decode(reader, length) {
|
|
150562
|
+
if (!(reader instanceof $Reader))
|
|
150563
|
+
reader = $Reader.create(reader);
|
|
150564
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContactsQuery();
|
|
150565
|
+
while (reader.pos < end) {
|
|
150566
|
+
var tag = reader.uint32();
|
|
150567
|
+
switch (tag >>> 3) {
|
|
150568
|
+
case 0:
|
|
150569
|
+
message.name = reader.string();
|
|
150570
|
+
break;
|
|
150571
|
+
case 1:
|
|
150572
|
+
message.email = reader.string();
|
|
150573
|
+
break;
|
|
150574
|
+
case 2:
|
|
150575
|
+
message.userId = reader.string();
|
|
150576
|
+
break;
|
|
150577
|
+
case 3:
|
|
150578
|
+
message.orgId = reader.string();
|
|
150579
|
+
break;
|
|
150580
|
+
default:
|
|
150581
|
+
reader.skipType(tag & 7);
|
|
150582
|
+
break;
|
|
150583
|
+
}
|
|
150584
|
+
}
|
|
150585
|
+
return message;
|
|
150586
|
+
};
|
|
150587
|
+
|
|
150588
|
+
/**
|
|
150589
|
+
* Decodes a ContactsQuery message from the specified reader or buffer, length delimited.
|
|
150590
|
+
* @function decodeDelimited
|
|
150591
|
+
* @memberof ContactsQuery
|
|
150592
|
+
* @static
|
|
150593
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150594
|
+
* @returns {ContactsQuery} ContactsQuery
|
|
150595
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150596
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150597
|
+
*/
|
|
150598
|
+
ContactsQuery.decodeDelimited = function decodeDelimited(reader) {
|
|
150599
|
+
if (!(reader instanceof $Reader))
|
|
150600
|
+
reader = new $Reader(reader);
|
|
150601
|
+
return this.decode(reader, reader.uint32());
|
|
150602
|
+
};
|
|
150603
|
+
|
|
150604
|
+
/**
|
|
150605
|
+
* Verifies a ContactsQuery message.
|
|
150606
|
+
* @function verify
|
|
150607
|
+
* @memberof ContactsQuery
|
|
150608
|
+
* @static
|
|
150609
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
150610
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
150611
|
+
*/
|
|
150612
|
+
ContactsQuery.verify = function verify(message) {
|
|
150613
|
+
if (typeof message !== "object" || message === null)
|
|
150614
|
+
return "object expected";
|
|
150615
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
150616
|
+
if (!$util.isString(message.name))
|
|
150617
|
+
return "name: string expected";
|
|
150618
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
150619
|
+
if (!$util.isString(message.email))
|
|
150620
|
+
return "email: string expected";
|
|
150621
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
150622
|
+
if (!$util.isString(message.userId))
|
|
150623
|
+
return "userId: string expected";
|
|
150624
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
150625
|
+
if (!$util.isString(message.orgId))
|
|
150626
|
+
return "orgId: string expected";
|
|
150627
|
+
return null;
|
|
150628
|
+
};
|
|
150629
|
+
|
|
150630
|
+
/**
|
|
150631
|
+
* Creates a ContactsQuery message from a plain object. Also converts values to their respective internal types.
|
|
150632
|
+
* @function fromObject
|
|
150633
|
+
* @memberof ContactsQuery
|
|
150634
|
+
* @static
|
|
150635
|
+
* @param {Object.<string,*>} object Plain object
|
|
150636
|
+
* @returns {ContactsQuery} ContactsQuery
|
|
150637
|
+
*/
|
|
150638
|
+
ContactsQuery.fromObject = function fromObject(object) {
|
|
150639
|
+
if (object instanceof $root.ContactsQuery)
|
|
150640
|
+
return object;
|
|
150641
|
+
var message = new $root.ContactsQuery();
|
|
150642
|
+
if (object.name != null)
|
|
150643
|
+
message.name = String(object.name);
|
|
150644
|
+
if (object.email != null)
|
|
150645
|
+
message.email = String(object.email);
|
|
150646
|
+
if (object.userId != null)
|
|
150647
|
+
message.userId = String(object.userId);
|
|
150648
|
+
if (object.orgId != null)
|
|
150649
|
+
message.orgId = String(object.orgId);
|
|
150650
|
+
return message;
|
|
150651
|
+
};
|
|
150652
|
+
|
|
150653
|
+
/**
|
|
150654
|
+
* Creates a plain object from a ContactsQuery message. Also converts values to other types if specified.
|
|
150655
|
+
* @function toObject
|
|
150656
|
+
* @memberof ContactsQuery
|
|
150657
|
+
* @static
|
|
150658
|
+
* @param {ContactsQuery} message ContactsQuery
|
|
150659
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
150660
|
+
* @returns {Object.<string,*>} Plain object
|
|
150661
|
+
*/
|
|
150662
|
+
ContactsQuery.toObject = function toObject(message, options) {
|
|
150663
|
+
if (!options)
|
|
150664
|
+
options = {};
|
|
150665
|
+
var object = {};
|
|
150666
|
+
if (options.defaults) {
|
|
150667
|
+
object.name = "";
|
|
150668
|
+
object.email = "";
|
|
150669
|
+
object.userId = "";
|
|
150670
|
+
object.orgId = "";
|
|
150671
|
+
}
|
|
150672
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
150673
|
+
object.name = message.name;
|
|
150674
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
150675
|
+
object.email = message.email;
|
|
150676
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
150677
|
+
object.userId = message.userId;
|
|
150678
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
150679
|
+
object.orgId = message.orgId;
|
|
150680
|
+
return object;
|
|
150681
|
+
};
|
|
150682
|
+
|
|
150683
|
+
/**
|
|
150684
|
+
* Converts this ContactsQuery to JSON.
|
|
150685
|
+
* @function toJSON
|
|
150686
|
+
* @memberof ContactsQuery
|
|
150687
|
+
* @instance
|
|
150688
|
+
* @returns {Object.<string,*>} JSON object
|
|
150689
|
+
*/
|
|
150690
|
+
ContactsQuery.prototype.toJSON = function toJSON() {
|
|
150691
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
150692
|
+
};
|
|
150693
|
+
|
|
150694
|
+
return ContactsQuery;
|
|
150695
|
+
})();
|
|
150696
|
+
|
|
150697
|
+
$root.QueryContactsRequest = (function() {
|
|
150698
|
+
|
|
150699
|
+
/**
|
|
150700
|
+
* Properties of a QueryContactsRequest.
|
|
150701
|
+
* @exports IQueryContactsRequest
|
|
150702
|
+
* @interface IQueryContactsRequest
|
|
150703
|
+
* @property {string|null} [spanContext] QueryContactsRequest spanContext
|
|
150704
|
+
* @property {IPagination|null} [pagination] QueryContactsRequest pagination
|
|
150705
|
+
* @property {IContactsQuery|null} [query] QueryContactsRequest query
|
|
150706
|
+
*/
|
|
150707
|
+
|
|
150708
|
+
/**
|
|
150709
|
+
* Constructs a new QueryContactsRequest.
|
|
150710
|
+
* @exports QueryContactsRequest
|
|
150711
|
+
* @classdesc Represents a QueryContactsRequest.
|
|
150712
|
+
* @implements IQueryContactsRequest
|
|
150713
|
+
* @constructor
|
|
150714
|
+
* @param {IQueryContactsRequest=} [properties] Properties to set
|
|
150715
|
+
*/
|
|
150716
|
+
function QueryContactsRequest(properties) {
|
|
150717
|
+
if (properties)
|
|
150718
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
150719
|
+
if (properties[keys[i]] != null)
|
|
150720
|
+
this[keys[i]] = properties[keys[i]];
|
|
150721
|
+
}
|
|
150722
|
+
|
|
150723
|
+
/**
|
|
150724
|
+
* QueryContactsRequest spanContext.
|
|
150725
|
+
* @member {string} spanContext
|
|
150726
|
+
* @memberof QueryContactsRequest
|
|
150727
|
+
* @instance
|
|
150728
|
+
*/
|
|
150729
|
+
QueryContactsRequest.prototype.spanContext = "";
|
|
150730
|
+
|
|
150731
|
+
/**
|
|
150732
|
+
* QueryContactsRequest pagination.
|
|
150733
|
+
* @member {IPagination|null|undefined} pagination
|
|
150734
|
+
* @memberof QueryContactsRequest
|
|
150735
|
+
* @instance
|
|
150736
|
+
*/
|
|
150737
|
+
QueryContactsRequest.prototype.pagination = null;
|
|
150738
|
+
|
|
150739
|
+
/**
|
|
150740
|
+
* QueryContactsRequest query.
|
|
150741
|
+
* @member {IContactsQuery|null|undefined} query
|
|
150742
|
+
* @memberof QueryContactsRequest
|
|
150743
|
+
* @instance
|
|
150744
|
+
*/
|
|
150745
|
+
QueryContactsRequest.prototype.query = null;
|
|
150746
|
+
|
|
150747
|
+
/**
|
|
150748
|
+
* Creates a new QueryContactsRequest instance using the specified properties.
|
|
150749
|
+
* @function create
|
|
150750
|
+
* @memberof QueryContactsRequest
|
|
150751
|
+
* @static
|
|
150752
|
+
* @param {IQueryContactsRequest=} [properties] Properties to set
|
|
150753
|
+
* @returns {QueryContactsRequest} QueryContactsRequest instance
|
|
150754
|
+
*/
|
|
150755
|
+
QueryContactsRequest.create = function create(properties) {
|
|
150756
|
+
return new QueryContactsRequest(properties);
|
|
150757
|
+
};
|
|
150758
|
+
|
|
150759
|
+
/**
|
|
150760
|
+
* Encodes the specified QueryContactsRequest message. Does not implicitly {@link QueryContactsRequest.verify|verify} messages.
|
|
150761
|
+
* @function encode
|
|
150762
|
+
* @memberof QueryContactsRequest
|
|
150763
|
+
* @static
|
|
150764
|
+
* @param {IQueryContactsRequest} message QueryContactsRequest message or plain object to encode
|
|
150765
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150766
|
+
* @returns {$protobuf.Writer} Writer
|
|
150767
|
+
*/
|
|
150768
|
+
QueryContactsRequest.encode = function encode(message, writer) {
|
|
150769
|
+
if (!writer)
|
|
150770
|
+
writer = $Writer.create();
|
|
150771
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
150772
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
|
|
150773
|
+
if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination"))
|
|
150774
|
+
$root.Pagination.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
150775
|
+
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
150776
|
+
$root.ContactsQuery.encode(message.query, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
150777
|
+
return writer;
|
|
150778
|
+
};
|
|
150779
|
+
|
|
150780
|
+
/**
|
|
150781
|
+
* Encodes the specified QueryContactsRequest message, length delimited. Does not implicitly {@link QueryContactsRequest.verify|verify} messages.
|
|
150782
|
+
* @function encodeDelimited
|
|
150783
|
+
* @memberof QueryContactsRequest
|
|
150784
|
+
* @static
|
|
150785
|
+
* @param {IQueryContactsRequest} message QueryContactsRequest message or plain object to encode
|
|
150786
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
150787
|
+
* @returns {$protobuf.Writer} Writer
|
|
150788
|
+
*/
|
|
150789
|
+
QueryContactsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
150790
|
+
return this.encode(message, writer).ldelim();
|
|
150791
|
+
};
|
|
150792
|
+
|
|
150793
|
+
/**
|
|
150794
|
+
* Decodes a QueryContactsRequest message from the specified reader or buffer.
|
|
150795
|
+
* @function decode
|
|
150796
|
+
* @memberof QueryContactsRequest
|
|
150797
|
+
* @static
|
|
150798
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150799
|
+
* @param {number} [length] Message length if known beforehand
|
|
150800
|
+
* @returns {QueryContactsRequest} QueryContactsRequest
|
|
150801
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150802
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150803
|
+
*/
|
|
150804
|
+
QueryContactsRequest.decode = function decode(reader, length) {
|
|
150805
|
+
if (!(reader instanceof $Reader))
|
|
150806
|
+
reader = $Reader.create(reader);
|
|
150807
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.QueryContactsRequest();
|
|
150808
|
+
while (reader.pos < end) {
|
|
150809
|
+
var tag = reader.uint32();
|
|
150810
|
+
switch (tag >>> 3) {
|
|
150811
|
+
case 1:
|
|
150812
|
+
message.spanContext = reader.string();
|
|
150813
|
+
break;
|
|
150814
|
+
case 2:
|
|
150815
|
+
message.pagination = $root.Pagination.decode(reader, reader.uint32());
|
|
150816
|
+
break;
|
|
150817
|
+
case 3:
|
|
150818
|
+
message.query = $root.ContactsQuery.decode(reader, reader.uint32());
|
|
150819
|
+
break;
|
|
150820
|
+
default:
|
|
150821
|
+
reader.skipType(tag & 7);
|
|
150822
|
+
break;
|
|
150823
|
+
}
|
|
150824
|
+
}
|
|
150825
|
+
return message;
|
|
150826
|
+
};
|
|
150827
|
+
|
|
150828
|
+
/**
|
|
150829
|
+
* Decodes a QueryContactsRequest message from the specified reader or buffer, length delimited.
|
|
150830
|
+
* @function decodeDelimited
|
|
150831
|
+
* @memberof QueryContactsRequest
|
|
150832
|
+
* @static
|
|
150833
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
150834
|
+
* @returns {QueryContactsRequest} QueryContactsRequest
|
|
150835
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
150836
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
150837
|
+
*/
|
|
150838
|
+
QueryContactsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
150839
|
+
if (!(reader instanceof $Reader))
|
|
150840
|
+
reader = new $Reader(reader);
|
|
150841
|
+
return this.decode(reader, reader.uint32());
|
|
150842
|
+
};
|
|
150843
|
+
|
|
150844
|
+
/**
|
|
150845
|
+
* Verifies a QueryContactsRequest message.
|
|
150846
|
+
* @function verify
|
|
150847
|
+
* @memberof QueryContactsRequest
|
|
150848
|
+
* @static
|
|
150849
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
150850
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
150851
|
+
*/
|
|
150852
|
+
QueryContactsRequest.verify = function verify(message) {
|
|
150853
|
+
if (typeof message !== "object" || message === null)
|
|
150854
|
+
return "object expected";
|
|
150855
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
150856
|
+
if (!$util.isString(message.spanContext))
|
|
150857
|
+
return "spanContext: string expected";
|
|
150858
|
+
if (message.pagination != null && message.hasOwnProperty("pagination")) {
|
|
150859
|
+
var error = $root.Pagination.verify(message.pagination);
|
|
150860
|
+
if (error)
|
|
150861
|
+
return "pagination." + error;
|
|
150862
|
+
}
|
|
150863
|
+
if (message.query != null && message.hasOwnProperty("query")) {
|
|
150864
|
+
var error = $root.ContactsQuery.verify(message.query);
|
|
150865
|
+
if (error)
|
|
150866
|
+
return "query." + error;
|
|
150867
|
+
}
|
|
150868
|
+
return null;
|
|
150869
|
+
};
|
|
150870
|
+
|
|
150871
|
+
/**
|
|
150872
|
+
* Creates a QueryContactsRequest message from a plain object. Also converts values to their respective internal types.
|
|
150873
|
+
* @function fromObject
|
|
150874
|
+
* @memberof QueryContactsRequest
|
|
150875
|
+
* @static
|
|
150876
|
+
* @param {Object.<string,*>} object Plain object
|
|
150877
|
+
* @returns {QueryContactsRequest} QueryContactsRequest
|
|
150878
|
+
*/
|
|
150879
|
+
QueryContactsRequest.fromObject = function fromObject(object) {
|
|
150880
|
+
if (object instanceof $root.QueryContactsRequest)
|
|
150881
|
+
return object;
|
|
150882
|
+
var message = new $root.QueryContactsRequest();
|
|
150883
|
+
if (object.spanContext != null)
|
|
150884
|
+
message.spanContext = String(object.spanContext);
|
|
150885
|
+
if (object.pagination != null) {
|
|
150886
|
+
if (typeof object.pagination !== "object")
|
|
150887
|
+
throw TypeError(".QueryContactsRequest.pagination: object expected");
|
|
150888
|
+
message.pagination = $root.Pagination.fromObject(object.pagination);
|
|
150889
|
+
}
|
|
150890
|
+
if (object.query != null) {
|
|
150891
|
+
if (typeof object.query !== "object")
|
|
150892
|
+
throw TypeError(".QueryContactsRequest.query: object expected");
|
|
150893
|
+
message.query = $root.ContactsQuery.fromObject(object.query);
|
|
150894
|
+
}
|
|
150895
|
+
return message;
|
|
150896
|
+
};
|
|
150897
|
+
|
|
150898
|
+
/**
|
|
150899
|
+
* Creates a plain object from a QueryContactsRequest message. Also converts values to other types if specified.
|
|
150900
|
+
* @function toObject
|
|
150901
|
+
* @memberof QueryContactsRequest
|
|
150902
|
+
* @static
|
|
150903
|
+
* @param {QueryContactsRequest} message QueryContactsRequest
|
|
150904
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
150905
|
+
* @returns {Object.<string,*>} Plain object
|
|
150906
|
+
*/
|
|
150907
|
+
QueryContactsRequest.toObject = function toObject(message, options) {
|
|
150908
|
+
if (!options)
|
|
150909
|
+
options = {};
|
|
150910
|
+
var object = {};
|
|
150911
|
+
if (options.defaults) {
|
|
150912
|
+
object.spanContext = "";
|
|
150913
|
+
object.pagination = null;
|
|
150914
|
+
object.query = null;
|
|
150915
|
+
}
|
|
150916
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
150917
|
+
object.spanContext = message.spanContext;
|
|
150918
|
+
if (message.pagination != null && message.hasOwnProperty("pagination"))
|
|
150919
|
+
object.pagination = $root.Pagination.toObject(message.pagination, options);
|
|
150920
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
150921
|
+
object.query = $root.ContactsQuery.toObject(message.query, options);
|
|
150922
|
+
return object;
|
|
150923
|
+
};
|
|
150924
|
+
|
|
150925
|
+
/**
|
|
150926
|
+
* Converts this QueryContactsRequest to JSON.
|
|
150927
|
+
* @function toJSON
|
|
150928
|
+
* @memberof QueryContactsRequest
|
|
150929
|
+
* @instance
|
|
150930
|
+
* @returns {Object.<string,*>} JSON object
|
|
150931
|
+
*/
|
|
150932
|
+
QueryContactsRequest.prototype.toJSON = function toJSON() {
|
|
150933
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
150934
|
+
};
|
|
150935
|
+
|
|
150936
|
+
return QueryContactsRequest;
|
|
150937
|
+
})();
|
|
150938
|
+
|
|
150939
|
+
$root.QueryContactsResponse = (function() {
|
|
150940
|
+
|
|
150941
|
+
/**
|
|
150942
|
+
* Properties of a QueryContactsResponse.
|
|
150943
|
+
* @exports IQueryContactsResponse
|
|
150944
|
+
* @interface IQueryContactsResponse
|
|
150945
|
+
* @property {StatusCode|null} [status] QueryContactsResponse status
|
|
150946
|
+
* @property {Array.<IError>|null} [errors] QueryContactsResponse errors
|
|
150947
|
+
* @property {Array.<IUserProfile>|null} [contacts] QueryContactsResponse contacts
|
|
150948
|
+
*/
|
|
150949
|
+
|
|
150950
|
+
/**
|
|
150951
|
+
* Constructs a new QueryContactsResponse.
|
|
150952
|
+
* @exports QueryContactsResponse
|
|
150953
|
+
* @classdesc Represents a QueryContactsResponse.
|
|
150954
|
+
* @implements IQueryContactsResponse
|
|
150955
|
+
* @constructor
|
|
150956
|
+
* @param {IQueryContactsResponse=} [properties] Properties to set
|
|
150957
|
+
*/
|
|
150958
|
+
function QueryContactsResponse(properties) {
|
|
150959
|
+
this.errors = [];
|
|
150960
|
+
this.contacts = [];
|
|
150961
|
+
if (properties)
|
|
150962
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
150963
|
+
if (properties[keys[i]] != null)
|
|
150964
|
+
this[keys[i]] = properties[keys[i]];
|
|
150965
|
+
}
|
|
150966
|
+
|
|
150967
|
+
/**
|
|
150968
|
+
* QueryContactsResponse status.
|
|
150969
|
+
* @member {StatusCode} status
|
|
150970
|
+
* @memberof QueryContactsResponse
|
|
150971
|
+
* @instance
|
|
150972
|
+
*/
|
|
150973
|
+
QueryContactsResponse.prototype.status = 0;
|
|
150974
|
+
|
|
150975
|
+
/**
|
|
150976
|
+
* QueryContactsResponse errors.
|
|
150977
|
+
* @member {Array.<IError>} errors
|
|
150978
|
+
* @memberof QueryContactsResponse
|
|
150979
|
+
* @instance
|
|
150980
|
+
*/
|
|
150981
|
+
QueryContactsResponse.prototype.errors = $util.emptyArray;
|
|
150982
|
+
|
|
150983
|
+
/**
|
|
150984
|
+
* QueryContactsResponse contacts.
|
|
150985
|
+
* @member {Array.<IUserProfile>} contacts
|
|
150986
|
+
* @memberof QueryContactsResponse
|
|
150987
|
+
* @instance
|
|
150988
|
+
*/
|
|
150989
|
+
QueryContactsResponse.prototype.contacts = $util.emptyArray;
|
|
150990
|
+
|
|
150991
|
+
/**
|
|
150992
|
+
* Creates a new QueryContactsResponse instance using the specified properties.
|
|
150993
|
+
* @function create
|
|
150994
|
+
* @memberof QueryContactsResponse
|
|
150995
|
+
* @static
|
|
150996
|
+
* @param {IQueryContactsResponse=} [properties] Properties to set
|
|
150997
|
+
* @returns {QueryContactsResponse} QueryContactsResponse instance
|
|
150998
|
+
*/
|
|
150999
|
+
QueryContactsResponse.create = function create(properties) {
|
|
151000
|
+
return new QueryContactsResponse(properties);
|
|
151001
|
+
};
|
|
151002
|
+
|
|
151003
|
+
/**
|
|
151004
|
+
* Encodes the specified QueryContactsResponse message. Does not implicitly {@link QueryContactsResponse.verify|verify} messages.
|
|
151005
|
+
* @function encode
|
|
151006
|
+
* @memberof QueryContactsResponse
|
|
151007
|
+
* @static
|
|
151008
|
+
* @param {IQueryContactsResponse} message QueryContactsResponse message or plain object to encode
|
|
151009
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
151010
|
+
* @returns {$protobuf.Writer} Writer
|
|
151011
|
+
*/
|
|
151012
|
+
QueryContactsResponse.encode = function encode(message, writer) {
|
|
151013
|
+
if (!writer)
|
|
151014
|
+
writer = $Writer.create();
|
|
151015
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
151016
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
|
|
151017
|
+
if (message.errors != null && message.errors.length)
|
|
151018
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
151019
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
151020
|
+
if (message.contacts != null && message.contacts.length)
|
|
151021
|
+
for (var i = 0; i < message.contacts.length; ++i)
|
|
151022
|
+
$root.UserProfile.encode(message.contacts[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
151023
|
+
return writer;
|
|
151024
|
+
};
|
|
151025
|
+
|
|
151026
|
+
/**
|
|
151027
|
+
* Encodes the specified QueryContactsResponse message, length delimited. Does not implicitly {@link QueryContactsResponse.verify|verify} messages.
|
|
151028
|
+
* @function encodeDelimited
|
|
151029
|
+
* @memberof QueryContactsResponse
|
|
151030
|
+
* @static
|
|
151031
|
+
* @param {IQueryContactsResponse} message QueryContactsResponse message or plain object to encode
|
|
151032
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
151033
|
+
* @returns {$protobuf.Writer} Writer
|
|
151034
|
+
*/
|
|
151035
|
+
QueryContactsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
151036
|
+
return this.encode(message, writer).ldelim();
|
|
151037
|
+
};
|
|
151038
|
+
|
|
151039
|
+
/**
|
|
151040
|
+
* Decodes a QueryContactsResponse message from the specified reader or buffer.
|
|
151041
|
+
* @function decode
|
|
151042
|
+
* @memberof QueryContactsResponse
|
|
151043
|
+
* @static
|
|
151044
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
151045
|
+
* @param {number} [length] Message length if known beforehand
|
|
151046
|
+
* @returns {QueryContactsResponse} QueryContactsResponse
|
|
151047
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
151048
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
151049
|
+
*/
|
|
151050
|
+
QueryContactsResponse.decode = function decode(reader, length) {
|
|
151051
|
+
if (!(reader instanceof $Reader))
|
|
151052
|
+
reader = $Reader.create(reader);
|
|
151053
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.QueryContactsResponse();
|
|
151054
|
+
while (reader.pos < end) {
|
|
151055
|
+
var tag = reader.uint32();
|
|
151056
|
+
switch (tag >>> 3) {
|
|
151057
|
+
case 1:
|
|
151058
|
+
message.status = reader.int32();
|
|
151059
|
+
break;
|
|
151060
|
+
case 2:
|
|
151061
|
+
if (!(message.errors && message.errors.length))
|
|
151062
|
+
message.errors = [];
|
|
151063
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
151064
|
+
break;
|
|
151065
|
+
case 3:
|
|
151066
|
+
if (!(message.contacts && message.contacts.length))
|
|
151067
|
+
message.contacts = [];
|
|
151068
|
+
message.contacts.push($root.UserProfile.decode(reader, reader.uint32()));
|
|
151069
|
+
break;
|
|
151070
|
+
default:
|
|
151071
|
+
reader.skipType(tag & 7);
|
|
151072
|
+
break;
|
|
151073
|
+
}
|
|
151074
|
+
}
|
|
151075
|
+
return message;
|
|
151076
|
+
};
|
|
151077
|
+
|
|
151078
|
+
/**
|
|
151079
|
+
* Decodes a QueryContactsResponse message from the specified reader or buffer, length delimited.
|
|
151080
|
+
* @function decodeDelimited
|
|
151081
|
+
* @memberof QueryContactsResponse
|
|
151082
|
+
* @static
|
|
151083
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
151084
|
+
* @returns {QueryContactsResponse} QueryContactsResponse
|
|
151085
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
151086
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
151087
|
+
*/
|
|
151088
|
+
QueryContactsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
151089
|
+
if (!(reader instanceof $Reader))
|
|
151090
|
+
reader = new $Reader(reader);
|
|
151091
|
+
return this.decode(reader, reader.uint32());
|
|
151092
|
+
};
|
|
151093
|
+
|
|
151094
|
+
/**
|
|
151095
|
+
* Verifies a QueryContactsResponse message.
|
|
151096
|
+
* @function verify
|
|
151097
|
+
* @memberof QueryContactsResponse
|
|
151098
|
+
* @static
|
|
151099
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
151100
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
151101
|
+
*/
|
|
151102
|
+
QueryContactsResponse.verify = function verify(message) {
|
|
151103
|
+
if (typeof message !== "object" || message === null)
|
|
151104
|
+
return "object expected";
|
|
151105
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
151106
|
+
switch (message.status) {
|
|
151107
|
+
default:
|
|
151108
|
+
return "status: enum value expected";
|
|
151109
|
+
case 0:
|
|
151110
|
+
case 200:
|
|
151111
|
+
case 400:
|
|
151112
|
+
case 401:
|
|
151113
|
+
case 403:
|
|
151114
|
+
case 422:
|
|
151115
|
+
case 404:
|
|
151116
|
+
case 500:
|
|
151117
|
+
case 504:
|
|
151118
|
+
break;
|
|
151119
|
+
}
|
|
151120
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
151121
|
+
if (!Array.isArray(message.errors))
|
|
151122
|
+
return "errors: array expected";
|
|
151123
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
151124
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
151125
|
+
if (error)
|
|
151126
|
+
return "errors." + error;
|
|
151127
|
+
}
|
|
151128
|
+
}
|
|
151129
|
+
if (message.contacts != null && message.hasOwnProperty("contacts")) {
|
|
151130
|
+
if (!Array.isArray(message.contacts))
|
|
151131
|
+
return "contacts: array expected";
|
|
151132
|
+
for (var i = 0; i < message.contacts.length; ++i) {
|
|
151133
|
+
var error = $root.UserProfile.verify(message.contacts[i]);
|
|
151134
|
+
if (error)
|
|
151135
|
+
return "contacts." + error;
|
|
151136
|
+
}
|
|
151137
|
+
}
|
|
151138
|
+
return null;
|
|
151139
|
+
};
|
|
151140
|
+
|
|
151141
|
+
/**
|
|
151142
|
+
* Creates a QueryContactsResponse message from a plain object. Also converts values to their respective internal types.
|
|
151143
|
+
* @function fromObject
|
|
151144
|
+
* @memberof QueryContactsResponse
|
|
151145
|
+
* @static
|
|
151146
|
+
* @param {Object.<string,*>} object Plain object
|
|
151147
|
+
* @returns {QueryContactsResponse} QueryContactsResponse
|
|
151148
|
+
*/
|
|
151149
|
+
QueryContactsResponse.fromObject = function fromObject(object) {
|
|
151150
|
+
if (object instanceof $root.QueryContactsResponse)
|
|
151151
|
+
return object;
|
|
151152
|
+
var message = new $root.QueryContactsResponse();
|
|
151153
|
+
switch (object.status) {
|
|
151154
|
+
case "UNKNOWN_CODE":
|
|
151155
|
+
case 0:
|
|
151156
|
+
message.status = 0;
|
|
151157
|
+
break;
|
|
151158
|
+
case "OK":
|
|
151159
|
+
case 200:
|
|
151160
|
+
message.status = 200;
|
|
151161
|
+
break;
|
|
151162
|
+
case "BAD_REQUEST":
|
|
151163
|
+
case 400:
|
|
151164
|
+
message.status = 400;
|
|
151165
|
+
break;
|
|
151166
|
+
case "UNAUTHORIZED":
|
|
151167
|
+
case 401:
|
|
151168
|
+
message.status = 401;
|
|
151169
|
+
break;
|
|
151170
|
+
case "FORBIDDEN":
|
|
151171
|
+
case 403:
|
|
151172
|
+
message.status = 403;
|
|
151173
|
+
break;
|
|
151174
|
+
case "UNPROCESSABLE_ENTITY":
|
|
151175
|
+
case 422:
|
|
151176
|
+
message.status = 422;
|
|
151177
|
+
break;
|
|
151178
|
+
case "NOT_FOUND":
|
|
151179
|
+
case 404:
|
|
151180
|
+
message.status = 404;
|
|
151181
|
+
break;
|
|
151182
|
+
case "INTERNAL_SERVER_ERROR":
|
|
151183
|
+
case 500:
|
|
151184
|
+
message.status = 500;
|
|
151185
|
+
break;
|
|
151186
|
+
case "GATEWAY_TIMEOUT":
|
|
151187
|
+
case 504:
|
|
151188
|
+
message.status = 504;
|
|
151189
|
+
break;
|
|
151190
|
+
}
|
|
151191
|
+
if (object.errors) {
|
|
151192
|
+
if (!Array.isArray(object.errors))
|
|
151193
|
+
throw TypeError(".QueryContactsResponse.errors: array expected");
|
|
148518
151194
|
message.errors = [];
|
|
148519
151195
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
148520
151196
|
if (typeof object.errors[i] !== "object")
|
|
148521
|
-
throw TypeError(".
|
|
151197
|
+
throw TypeError(".QueryContactsResponse.errors: object expected");
|
|
148522
151198
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
148523
151199
|
}
|
|
148524
151200
|
}
|
|
148525
|
-
if (object.
|
|
148526
|
-
if (
|
|
148527
|
-
throw TypeError(".
|
|
148528
|
-
message.
|
|
151201
|
+
if (object.contacts) {
|
|
151202
|
+
if (!Array.isArray(object.contacts))
|
|
151203
|
+
throw TypeError(".QueryContactsResponse.contacts: array expected");
|
|
151204
|
+
message.contacts = [];
|
|
151205
|
+
for (var i = 0; i < object.contacts.length; ++i) {
|
|
151206
|
+
if (typeof object.contacts[i] !== "object")
|
|
151207
|
+
throw TypeError(".QueryContactsResponse.contacts: object expected");
|
|
151208
|
+
message.contacts[i] = $root.UserProfile.fromObject(object.contacts[i]);
|
|
151209
|
+
}
|
|
148529
151210
|
}
|
|
148530
151211
|
return message;
|
|
148531
151212
|
};
|
|
148532
151213
|
|
|
148533
151214
|
/**
|
|
148534
|
-
* Creates a plain object from
|
|
151215
|
+
* Creates a plain object from a QueryContactsResponse message. Also converts values to other types if specified.
|
|
148535
151216
|
* @function toObject
|
|
148536
|
-
* @memberof
|
|
151217
|
+
* @memberof QueryContactsResponse
|
|
148537
151218
|
* @static
|
|
148538
|
-
* @param {
|
|
151219
|
+
* @param {QueryContactsResponse} message QueryContactsResponse
|
|
148539
151220
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
148540
151221
|
* @returns {Object.<string,*>} Plain object
|
|
148541
151222
|
*/
|
|
148542
|
-
|
|
151223
|
+
QueryContactsResponse.toObject = function toObject(message, options) {
|
|
148543
151224
|
if (!options)
|
|
148544
151225
|
options = {};
|
|
148545
151226
|
var object = {};
|
|
148546
|
-
if (options.arrays || options.defaults)
|
|
151227
|
+
if (options.arrays || options.defaults) {
|
|
148547
151228
|
object.errors = [];
|
|
148548
|
-
|
|
148549
|
-
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
148550
|
-
object.user = null;
|
|
151229
|
+
object.contacts = [];
|
|
148551
151230
|
}
|
|
151231
|
+
if (options.defaults)
|
|
151232
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
148552
151233
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
148553
151234
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
148554
151235
|
if (message.errors && message.errors.length) {
|
|
@@ -148556,46 +151237,53 @@ $root.UpdateUserPreferredLoginResponse = (function() {
|
|
|
148556
151237
|
for (var j = 0; j < message.errors.length; ++j)
|
|
148557
151238
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
148558
151239
|
}
|
|
148559
|
-
if (message.
|
|
148560
|
-
object.
|
|
151240
|
+
if (message.contacts && message.contacts.length) {
|
|
151241
|
+
object.contacts = [];
|
|
151242
|
+
for (var j = 0; j < message.contacts.length; ++j)
|
|
151243
|
+
object.contacts[j] = $root.UserProfile.toObject(message.contacts[j], options);
|
|
151244
|
+
}
|
|
148561
151245
|
return object;
|
|
148562
151246
|
};
|
|
148563
151247
|
|
|
148564
151248
|
/**
|
|
148565
|
-
* Converts this
|
|
151249
|
+
* Converts this QueryContactsResponse to JSON.
|
|
148566
151250
|
* @function toJSON
|
|
148567
|
-
* @memberof
|
|
151251
|
+
* @memberof QueryContactsResponse
|
|
148568
151252
|
* @instance
|
|
148569
151253
|
* @returns {Object.<string,*>} JSON object
|
|
148570
151254
|
*/
|
|
148571
|
-
|
|
151255
|
+
QueryContactsResponse.prototype.toJSON = function toJSON() {
|
|
148572
151256
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
148573
151257
|
};
|
|
148574
151258
|
|
|
148575
|
-
return
|
|
151259
|
+
return QueryContactsResponse;
|
|
148576
151260
|
})();
|
|
148577
151261
|
|
|
148578
|
-
$root.
|
|
151262
|
+
$root.UpdateContactRequest = (function() {
|
|
148579
151263
|
|
|
148580
151264
|
/**
|
|
148581
|
-
* Properties of
|
|
148582
|
-
* @exports
|
|
148583
|
-
* @interface
|
|
148584
|
-
* @property {string|null} [spanContext]
|
|
148585
|
-
* @property {string|null} [
|
|
148586
|
-
* @property {string|null} [email]
|
|
148587
|
-
* @property {string|null} [
|
|
151265
|
+
* Properties of an UpdateContactRequest.
|
|
151266
|
+
* @exports IUpdateContactRequest
|
|
151267
|
+
* @interface IUpdateContactRequest
|
|
151268
|
+
* @property {string|null} [spanContext] UpdateContactRequest spanContext
|
|
151269
|
+
* @property {string|null} [_id] UpdateContactRequest _id
|
|
151270
|
+
* @property {string|null} [email] UpdateContactRequest email
|
|
151271
|
+
* @property {string|null} [firstName] UpdateContactRequest firstName
|
|
151272
|
+
* @property {string|null} [lastName] UpdateContactRequest lastName
|
|
151273
|
+
* @property {string|null} [userId] UpdateContactRequest userId
|
|
151274
|
+
* @property {string|null} [orgId] UpdateContactRequest orgId
|
|
151275
|
+
* @property {boolean|null} [isNewUser] UpdateContactRequest isNewUser
|
|
148588
151276
|
*/
|
|
148589
151277
|
|
|
148590
151278
|
/**
|
|
148591
|
-
* Constructs a new
|
|
148592
|
-
* @exports
|
|
148593
|
-
* @classdesc Represents
|
|
148594
|
-
* @implements
|
|
151279
|
+
* Constructs a new UpdateContactRequest.
|
|
151280
|
+
* @exports UpdateContactRequest
|
|
151281
|
+
* @classdesc Represents an UpdateContactRequest.
|
|
151282
|
+
* @implements IUpdateContactRequest
|
|
148595
151283
|
* @constructor
|
|
148596
|
-
* @param {
|
|
151284
|
+
* @param {IUpdateContactRequest=} [properties] Properties to set
|
|
148597
151285
|
*/
|
|
148598
|
-
function
|
|
151286
|
+
function UpdateContactRequest(properties) {
|
|
148599
151287
|
if (properties)
|
|
148600
151288
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
148601
151289
|
if (properties[keys[i]] != null)
|
|
@@ -148603,100 +151291,140 @@ $root.DeleteUnverifiedUserRequest = (function() {
|
|
|
148603
151291
|
}
|
|
148604
151292
|
|
|
148605
151293
|
/**
|
|
148606
|
-
*
|
|
151294
|
+
* UpdateContactRequest spanContext.
|
|
148607
151295
|
* @member {string} spanContext
|
|
148608
|
-
* @memberof
|
|
151296
|
+
* @memberof UpdateContactRequest
|
|
148609
151297
|
* @instance
|
|
148610
151298
|
*/
|
|
148611
|
-
|
|
151299
|
+
UpdateContactRequest.prototype.spanContext = "";
|
|
148612
151300
|
|
|
148613
151301
|
/**
|
|
148614
|
-
*
|
|
148615
|
-
* @member {string}
|
|
148616
|
-
* @memberof
|
|
151302
|
+
* UpdateContactRequest _id.
|
|
151303
|
+
* @member {string} _id
|
|
151304
|
+
* @memberof UpdateContactRequest
|
|
148617
151305
|
* @instance
|
|
148618
151306
|
*/
|
|
148619
|
-
|
|
151307
|
+
UpdateContactRequest.prototype._id = "";
|
|
148620
151308
|
|
|
148621
151309
|
/**
|
|
148622
|
-
*
|
|
151310
|
+
* UpdateContactRequest email.
|
|
148623
151311
|
* @member {string} email
|
|
148624
|
-
* @memberof
|
|
151312
|
+
* @memberof UpdateContactRequest
|
|
148625
151313
|
* @instance
|
|
148626
151314
|
*/
|
|
148627
|
-
|
|
151315
|
+
UpdateContactRequest.prototype.email = "";
|
|
148628
151316
|
|
|
148629
151317
|
/**
|
|
148630
|
-
*
|
|
148631
|
-
* @member {string}
|
|
148632
|
-
* @memberof
|
|
151318
|
+
* UpdateContactRequest firstName.
|
|
151319
|
+
* @member {string} firstName
|
|
151320
|
+
* @memberof UpdateContactRequest
|
|
148633
151321
|
* @instance
|
|
148634
151322
|
*/
|
|
148635
|
-
|
|
151323
|
+
UpdateContactRequest.prototype.firstName = "";
|
|
148636
151324
|
|
|
148637
151325
|
/**
|
|
148638
|
-
*
|
|
151326
|
+
* UpdateContactRequest lastName.
|
|
151327
|
+
* @member {string} lastName
|
|
151328
|
+
* @memberof UpdateContactRequest
|
|
151329
|
+
* @instance
|
|
151330
|
+
*/
|
|
151331
|
+
UpdateContactRequest.prototype.lastName = "";
|
|
151332
|
+
|
|
151333
|
+
/**
|
|
151334
|
+
* UpdateContactRequest userId.
|
|
151335
|
+
* @member {string} userId
|
|
151336
|
+
* @memberof UpdateContactRequest
|
|
151337
|
+
* @instance
|
|
151338
|
+
*/
|
|
151339
|
+
UpdateContactRequest.prototype.userId = "";
|
|
151340
|
+
|
|
151341
|
+
/**
|
|
151342
|
+
* UpdateContactRequest orgId.
|
|
151343
|
+
* @member {string} orgId
|
|
151344
|
+
* @memberof UpdateContactRequest
|
|
151345
|
+
* @instance
|
|
151346
|
+
*/
|
|
151347
|
+
UpdateContactRequest.prototype.orgId = "";
|
|
151348
|
+
|
|
151349
|
+
/**
|
|
151350
|
+
* UpdateContactRequest isNewUser.
|
|
151351
|
+
* @member {boolean} isNewUser
|
|
151352
|
+
* @memberof UpdateContactRequest
|
|
151353
|
+
* @instance
|
|
151354
|
+
*/
|
|
151355
|
+
UpdateContactRequest.prototype.isNewUser = false;
|
|
151356
|
+
|
|
151357
|
+
/**
|
|
151358
|
+
* Creates a new UpdateContactRequest instance using the specified properties.
|
|
148639
151359
|
* @function create
|
|
148640
|
-
* @memberof
|
|
151360
|
+
* @memberof UpdateContactRequest
|
|
148641
151361
|
* @static
|
|
148642
|
-
* @param {
|
|
148643
|
-
* @returns {
|
|
151362
|
+
* @param {IUpdateContactRequest=} [properties] Properties to set
|
|
151363
|
+
* @returns {UpdateContactRequest} UpdateContactRequest instance
|
|
148644
151364
|
*/
|
|
148645
|
-
|
|
148646
|
-
return new
|
|
151365
|
+
UpdateContactRequest.create = function create(properties) {
|
|
151366
|
+
return new UpdateContactRequest(properties);
|
|
148647
151367
|
};
|
|
148648
151368
|
|
|
148649
151369
|
/**
|
|
148650
|
-
* Encodes the specified
|
|
151370
|
+
* Encodes the specified UpdateContactRequest message. Does not implicitly {@link UpdateContactRequest.verify|verify} messages.
|
|
148651
151371
|
* @function encode
|
|
148652
|
-
* @memberof
|
|
151372
|
+
* @memberof UpdateContactRequest
|
|
148653
151373
|
* @static
|
|
148654
|
-
* @param {
|
|
151374
|
+
* @param {IUpdateContactRequest} message UpdateContactRequest message or plain object to encode
|
|
148655
151375
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148656
151376
|
* @returns {$protobuf.Writer} Writer
|
|
148657
151377
|
*/
|
|
148658
|
-
|
|
151378
|
+
UpdateContactRequest.encode = function encode(message, writer) {
|
|
148659
151379
|
if (!writer)
|
|
148660
151380
|
writer = $Writer.create();
|
|
148661
151381
|
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
148662
151382
|
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
148663
|
-
if (message.
|
|
148664
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
151383
|
+
if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
|
|
151384
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message._id);
|
|
148665
151385
|
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
148666
151386
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
148667
|
-
if (message.
|
|
148668
|
-
writer.uint32(/* id 3, wireType 2 =*/26).string(message.
|
|
151387
|
+
if (message.firstName != null && Object.hasOwnProperty.call(message, "firstName"))
|
|
151388
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.firstName);
|
|
151389
|
+
if (message.lastName != null && Object.hasOwnProperty.call(message, "lastName"))
|
|
151390
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastName);
|
|
151391
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
151392
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.userId);
|
|
151393
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
151394
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.orgId);
|
|
151395
|
+
if (message.isNewUser != null && Object.hasOwnProperty.call(message, "isNewUser"))
|
|
151396
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isNewUser);
|
|
148669
151397
|
return writer;
|
|
148670
151398
|
};
|
|
148671
151399
|
|
|
148672
151400
|
/**
|
|
148673
|
-
* Encodes the specified
|
|
151401
|
+
* Encodes the specified UpdateContactRequest message, length delimited. Does not implicitly {@link UpdateContactRequest.verify|verify} messages.
|
|
148674
151402
|
* @function encodeDelimited
|
|
148675
|
-
* @memberof
|
|
151403
|
+
* @memberof UpdateContactRequest
|
|
148676
151404
|
* @static
|
|
148677
|
-
* @param {
|
|
151405
|
+
* @param {IUpdateContactRequest} message UpdateContactRequest message or plain object to encode
|
|
148678
151406
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148679
151407
|
* @returns {$protobuf.Writer} Writer
|
|
148680
151408
|
*/
|
|
148681
|
-
|
|
151409
|
+
UpdateContactRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
148682
151410
|
return this.encode(message, writer).ldelim();
|
|
148683
151411
|
};
|
|
148684
151412
|
|
|
148685
151413
|
/**
|
|
148686
|
-
* Decodes
|
|
151414
|
+
* Decodes an UpdateContactRequest message from the specified reader or buffer.
|
|
148687
151415
|
* @function decode
|
|
148688
|
-
* @memberof
|
|
151416
|
+
* @memberof UpdateContactRequest
|
|
148689
151417
|
* @static
|
|
148690
151418
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148691
151419
|
* @param {number} [length] Message length if known beforehand
|
|
148692
|
-
* @returns {
|
|
151420
|
+
* @returns {UpdateContactRequest} UpdateContactRequest
|
|
148693
151421
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148694
151422
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148695
151423
|
*/
|
|
148696
|
-
|
|
151424
|
+
UpdateContactRequest.decode = function decode(reader, length) {
|
|
148697
151425
|
if (!(reader instanceof $Reader))
|
|
148698
151426
|
reader = $Reader.create(reader);
|
|
148699
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
151427
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateContactRequest();
|
|
148700
151428
|
while (reader.pos < end) {
|
|
148701
151429
|
var tag = reader.uint32();
|
|
148702
151430
|
switch (tag >>> 3) {
|
|
@@ -148704,13 +151432,25 @@ $root.DeleteUnverifiedUserRequest = (function() {
|
|
|
148704
151432
|
message.spanContext = reader.string();
|
|
148705
151433
|
break;
|
|
148706
151434
|
case 1:
|
|
148707
|
-
message.
|
|
151435
|
+
message._id = reader.string();
|
|
148708
151436
|
break;
|
|
148709
151437
|
case 2:
|
|
148710
151438
|
message.email = reader.string();
|
|
148711
151439
|
break;
|
|
148712
151440
|
case 3:
|
|
148713
|
-
message.
|
|
151441
|
+
message.firstName = reader.string();
|
|
151442
|
+
break;
|
|
151443
|
+
case 4:
|
|
151444
|
+
message.lastName = reader.string();
|
|
151445
|
+
break;
|
|
151446
|
+
case 5:
|
|
151447
|
+
message.userId = reader.string();
|
|
151448
|
+
break;
|
|
151449
|
+
case 6:
|
|
151450
|
+
message.orgId = reader.string();
|
|
151451
|
+
break;
|
|
151452
|
+
case 7:
|
|
151453
|
+
message.isNewUser = reader.bool();
|
|
148714
151454
|
break;
|
|
148715
151455
|
default:
|
|
148716
151456
|
reader.skipType(tag & 7);
|
|
@@ -148721,134 +151461,166 @@ $root.DeleteUnverifiedUserRequest = (function() {
|
|
|
148721
151461
|
};
|
|
148722
151462
|
|
|
148723
151463
|
/**
|
|
148724
|
-
* Decodes
|
|
151464
|
+
* Decodes an UpdateContactRequest message from the specified reader or buffer, length delimited.
|
|
148725
151465
|
* @function decodeDelimited
|
|
148726
|
-
* @memberof
|
|
151466
|
+
* @memberof UpdateContactRequest
|
|
148727
151467
|
* @static
|
|
148728
151468
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148729
|
-
* @returns {
|
|
151469
|
+
* @returns {UpdateContactRequest} UpdateContactRequest
|
|
148730
151470
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148731
151471
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148732
151472
|
*/
|
|
148733
|
-
|
|
151473
|
+
UpdateContactRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
148734
151474
|
if (!(reader instanceof $Reader))
|
|
148735
151475
|
reader = new $Reader(reader);
|
|
148736
151476
|
return this.decode(reader, reader.uint32());
|
|
148737
151477
|
};
|
|
148738
151478
|
|
|
148739
151479
|
/**
|
|
148740
|
-
* Verifies
|
|
151480
|
+
* Verifies an UpdateContactRequest message.
|
|
148741
151481
|
* @function verify
|
|
148742
|
-
* @memberof
|
|
151482
|
+
* @memberof UpdateContactRequest
|
|
148743
151483
|
* @static
|
|
148744
151484
|
* @param {Object.<string,*>} message Plain object to verify
|
|
148745
151485
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
148746
151486
|
*/
|
|
148747
|
-
|
|
151487
|
+
UpdateContactRequest.verify = function verify(message) {
|
|
148748
151488
|
if (typeof message !== "object" || message === null)
|
|
148749
151489
|
return "object expected";
|
|
148750
151490
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
148751
151491
|
if (!$util.isString(message.spanContext))
|
|
148752
151492
|
return "spanContext: string expected";
|
|
148753
|
-
if (message.
|
|
148754
|
-
if (!$util.isString(message.
|
|
148755
|
-
return "
|
|
151493
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
151494
|
+
if (!$util.isString(message._id))
|
|
151495
|
+
return "_id: string expected";
|
|
148756
151496
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
148757
151497
|
if (!$util.isString(message.email))
|
|
148758
151498
|
return "email: string expected";
|
|
148759
|
-
if (message.
|
|
148760
|
-
if (!$util.isString(message.
|
|
148761
|
-
return "
|
|
151499
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
151500
|
+
if (!$util.isString(message.firstName))
|
|
151501
|
+
return "firstName: string expected";
|
|
151502
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
151503
|
+
if (!$util.isString(message.lastName))
|
|
151504
|
+
return "lastName: string expected";
|
|
151505
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
151506
|
+
if (!$util.isString(message.userId))
|
|
151507
|
+
return "userId: string expected";
|
|
151508
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
151509
|
+
if (!$util.isString(message.orgId))
|
|
151510
|
+
return "orgId: string expected";
|
|
151511
|
+
if (message.isNewUser != null && message.hasOwnProperty("isNewUser"))
|
|
151512
|
+
if (typeof message.isNewUser !== "boolean")
|
|
151513
|
+
return "isNewUser: boolean expected";
|
|
148762
151514
|
return null;
|
|
148763
151515
|
};
|
|
148764
151516
|
|
|
148765
151517
|
/**
|
|
148766
|
-
* Creates
|
|
151518
|
+
* Creates an UpdateContactRequest message from a plain object. Also converts values to their respective internal types.
|
|
148767
151519
|
* @function fromObject
|
|
148768
|
-
* @memberof
|
|
151520
|
+
* @memberof UpdateContactRequest
|
|
148769
151521
|
* @static
|
|
148770
151522
|
* @param {Object.<string,*>} object Plain object
|
|
148771
|
-
* @returns {
|
|
151523
|
+
* @returns {UpdateContactRequest} UpdateContactRequest
|
|
148772
151524
|
*/
|
|
148773
|
-
|
|
148774
|
-
if (object instanceof $root.
|
|
151525
|
+
UpdateContactRequest.fromObject = function fromObject(object) {
|
|
151526
|
+
if (object instanceof $root.UpdateContactRequest)
|
|
148775
151527
|
return object;
|
|
148776
|
-
var message = new $root.
|
|
151528
|
+
var message = new $root.UpdateContactRequest();
|
|
148777
151529
|
if (object.spanContext != null)
|
|
148778
151530
|
message.spanContext = String(object.spanContext);
|
|
148779
|
-
if (object.
|
|
148780
|
-
message.
|
|
151531
|
+
if (object._id != null)
|
|
151532
|
+
message._id = String(object._id);
|
|
148781
151533
|
if (object.email != null)
|
|
148782
151534
|
message.email = String(object.email);
|
|
148783
|
-
if (object.
|
|
148784
|
-
message.
|
|
151535
|
+
if (object.firstName != null)
|
|
151536
|
+
message.firstName = String(object.firstName);
|
|
151537
|
+
if (object.lastName != null)
|
|
151538
|
+
message.lastName = String(object.lastName);
|
|
151539
|
+
if (object.userId != null)
|
|
151540
|
+
message.userId = String(object.userId);
|
|
151541
|
+
if (object.orgId != null)
|
|
151542
|
+
message.orgId = String(object.orgId);
|
|
151543
|
+
if (object.isNewUser != null)
|
|
151544
|
+
message.isNewUser = Boolean(object.isNewUser);
|
|
148785
151545
|
return message;
|
|
148786
151546
|
};
|
|
148787
151547
|
|
|
148788
151548
|
/**
|
|
148789
|
-
* Creates a plain object from
|
|
151549
|
+
* Creates a plain object from an UpdateContactRequest message. Also converts values to other types if specified.
|
|
148790
151550
|
* @function toObject
|
|
148791
|
-
* @memberof
|
|
151551
|
+
* @memberof UpdateContactRequest
|
|
148792
151552
|
* @static
|
|
148793
|
-
* @param {
|
|
151553
|
+
* @param {UpdateContactRequest} message UpdateContactRequest
|
|
148794
151554
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
148795
151555
|
* @returns {Object.<string,*>} Plain object
|
|
148796
151556
|
*/
|
|
148797
|
-
|
|
151557
|
+
UpdateContactRequest.toObject = function toObject(message, options) {
|
|
148798
151558
|
if (!options)
|
|
148799
151559
|
options = {};
|
|
148800
151560
|
var object = {};
|
|
148801
151561
|
if (options.defaults) {
|
|
148802
151562
|
object.spanContext = "";
|
|
148803
|
-
object.
|
|
151563
|
+
object._id = "";
|
|
148804
151564
|
object.email = "";
|
|
148805
|
-
object.
|
|
151565
|
+
object.firstName = "";
|
|
151566
|
+
object.lastName = "";
|
|
151567
|
+
object.userId = "";
|
|
151568
|
+
object.orgId = "";
|
|
151569
|
+
object.isNewUser = false;
|
|
148806
151570
|
}
|
|
148807
151571
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
148808
151572
|
object.spanContext = message.spanContext;
|
|
148809
|
-
if (message.
|
|
148810
|
-
object.
|
|
151573
|
+
if (message._id != null && message.hasOwnProperty("_id"))
|
|
151574
|
+
object._id = message._id;
|
|
148811
151575
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
148812
151576
|
object.email = message.email;
|
|
148813
|
-
if (message.
|
|
148814
|
-
object.
|
|
151577
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
151578
|
+
object.firstName = message.firstName;
|
|
151579
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
151580
|
+
object.lastName = message.lastName;
|
|
151581
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
151582
|
+
object.userId = message.userId;
|
|
151583
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
151584
|
+
object.orgId = message.orgId;
|
|
151585
|
+
if (message.isNewUser != null && message.hasOwnProperty("isNewUser"))
|
|
151586
|
+
object.isNewUser = message.isNewUser;
|
|
148815
151587
|
return object;
|
|
148816
151588
|
};
|
|
148817
151589
|
|
|
148818
151590
|
/**
|
|
148819
|
-
* Converts this
|
|
151591
|
+
* Converts this UpdateContactRequest to JSON.
|
|
148820
151592
|
* @function toJSON
|
|
148821
|
-
* @memberof
|
|
151593
|
+
* @memberof UpdateContactRequest
|
|
148822
151594
|
* @instance
|
|
148823
151595
|
* @returns {Object.<string,*>} JSON object
|
|
148824
151596
|
*/
|
|
148825
|
-
|
|
151597
|
+
UpdateContactRequest.prototype.toJSON = function toJSON() {
|
|
148826
151598
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
148827
151599
|
};
|
|
148828
151600
|
|
|
148829
|
-
return
|
|
151601
|
+
return UpdateContactRequest;
|
|
148830
151602
|
})();
|
|
148831
151603
|
|
|
148832
|
-
$root.
|
|
151604
|
+
$root.UpdateContactResponse = (function() {
|
|
148833
151605
|
|
|
148834
151606
|
/**
|
|
148835
|
-
* Properties of
|
|
148836
|
-
* @exports
|
|
148837
|
-
* @interface
|
|
148838
|
-
* @property {StatusCode|null} [status]
|
|
148839
|
-
* @property {Array.<IError>|null} [errors]
|
|
148840
|
-
* @property {
|
|
151607
|
+
* Properties of an UpdateContactResponse.
|
|
151608
|
+
* @exports IUpdateContactResponse
|
|
151609
|
+
* @interface IUpdateContactResponse
|
|
151610
|
+
* @property {StatusCode|null} [status] UpdateContactResponse status
|
|
151611
|
+
* @property {Array.<IError>|null} [errors] UpdateContactResponse errors
|
|
151612
|
+
* @property {IContact|null} [contact] UpdateContactResponse contact
|
|
148841
151613
|
*/
|
|
148842
151614
|
|
|
148843
151615
|
/**
|
|
148844
|
-
* Constructs a new
|
|
148845
|
-
* @exports
|
|
148846
|
-
* @classdesc Represents
|
|
148847
|
-
* @implements
|
|
151616
|
+
* Constructs a new UpdateContactResponse.
|
|
151617
|
+
* @exports UpdateContactResponse
|
|
151618
|
+
* @classdesc Represents an UpdateContactResponse.
|
|
151619
|
+
* @implements IUpdateContactResponse
|
|
148848
151620
|
* @constructor
|
|
148849
|
-
* @param {
|
|
151621
|
+
* @param {IUpdateContactResponse=} [properties] Properties to set
|
|
148850
151622
|
*/
|
|
148851
|
-
function
|
|
151623
|
+
function UpdateContactResponse(properties) {
|
|
148852
151624
|
this.errors = [];
|
|
148853
151625
|
if (properties)
|
|
148854
151626
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -148857,104 +151629,104 @@ $root.DeleteUnverifiedUserResponse = (function() {
|
|
|
148857
151629
|
}
|
|
148858
151630
|
|
|
148859
151631
|
/**
|
|
148860
|
-
*
|
|
151632
|
+
* UpdateContactResponse status.
|
|
148861
151633
|
* @member {StatusCode} status
|
|
148862
|
-
* @memberof
|
|
151634
|
+
* @memberof UpdateContactResponse
|
|
148863
151635
|
* @instance
|
|
148864
151636
|
*/
|
|
148865
|
-
|
|
151637
|
+
UpdateContactResponse.prototype.status = 0;
|
|
148866
151638
|
|
|
148867
151639
|
/**
|
|
148868
|
-
*
|
|
151640
|
+
* UpdateContactResponse errors.
|
|
148869
151641
|
* @member {Array.<IError>} errors
|
|
148870
|
-
* @memberof
|
|
151642
|
+
* @memberof UpdateContactResponse
|
|
148871
151643
|
* @instance
|
|
148872
151644
|
*/
|
|
148873
|
-
|
|
151645
|
+
UpdateContactResponse.prototype.errors = $util.emptyArray;
|
|
148874
151646
|
|
|
148875
151647
|
/**
|
|
148876
|
-
*
|
|
148877
|
-
* @member {
|
|
148878
|
-
* @memberof
|
|
151648
|
+
* UpdateContactResponse contact.
|
|
151649
|
+
* @member {IContact|null|undefined} contact
|
|
151650
|
+
* @memberof UpdateContactResponse
|
|
148879
151651
|
* @instance
|
|
148880
151652
|
*/
|
|
148881
|
-
|
|
151653
|
+
UpdateContactResponse.prototype.contact = null;
|
|
148882
151654
|
|
|
148883
151655
|
/**
|
|
148884
|
-
* Creates a new
|
|
151656
|
+
* Creates a new UpdateContactResponse instance using the specified properties.
|
|
148885
151657
|
* @function create
|
|
148886
|
-
* @memberof
|
|
151658
|
+
* @memberof UpdateContactResponse
|
|
148887
151659
|
* @static
|
|
148888
|
-
* @param {
|
|
148889
|
-
* @returns {
|
|
151660
|
+
* @param {IUpdateContactResponse=} [properties] Properties to set
|
|
151661
|
+
* @returns {UpdateContactResponse} UpdateContactResponse instance
|
|
148890
151662
|
*/
|
|
148891
|
-
|
|
148892
|
-
return new
|
|
151663
|
+
UpdateContactResponse.create = function create(properties) {
|
|
151664
|
+
return new UpdateContactResponse(properties);
|
|
148893
151665
|
};
|
|
148894
151666
|
|
|
148895
151667
|
/**
|
|
148896
|
-
* Encodes the specified
|
|
151668
|
+
* Encodes the specified UpdateContactResponse message. Does not implicitly {@link UpdateContactResponse.verify|verify} messages.
|
|
148897
151669
|
* @function encode
|
|
148898
|
-
* @memberof
|
|
151670
|
+
* @memberof UpdateContactResponse
|
|
148899
151671
|
* @static
|
|
148900
|
-
* @param {
|
|
151672
|
+
* @param {IUpdateContactResponse} message UpdateContactResponse message or plain object to encode
|
|
148901
151673
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148902
151674
|
* @returns {$protobuf.Writer} Writer
|
|
148903
151675
|
*/
|
|
148904
|
-
|
|
151676
|
+
UpdateContactResponse.encode = function encode(message, writer) {
|
|
148905
151677
|
if (!writer)
|
|
148906
151678
|
writer = $Writer.create();
|
|
148907
151679
|
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
148908
|
-
writer.uint32(/* id
|
|
151680
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
|
|
148909
151681
|
if (message.errors != null && message.errors.length)
|
|
148910
151682
|
for (var i = 0; i < message.errors.length; ++i)
|
|
148911
|
-
$root.Error.encode(message.errors[i], writer.uint32(/* id
|
|
148912
|
-
if (message.
|
|
148913
|
-
writer.uint32(/* id
|
|
151683
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
151684
|
+
if (message.contact != null && Object.hasOwnProperty.call(message, "contact"))
|
|
151685
|
+
$root.Contact.encode(message.contact, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
148914
151686
|
return writer;
|
|
148915
151687
|
};
|
|
148916
151688
|
|
|
148917
151689
|
/**
|
|
148918
|
-
* Encodes the specified
|
|
151690
|
+
* Encodes the specified UpdateContactResponse message, length delimited. Does not implicitly {@link UpdateContactResponse.verify|verify} messages.
|
|
148919
151691
|
* @function encodeDelimited
|
|
148920
|
-
* @memberof
|
|
151692
|
+
* @memberof UpdateContactResponse
|
|
148921
151693
|
* @static
|
|
148922
|
-
* @param {
|
|
151694
|
+
* @param {IUpdateContactResponse} message UpdateContactResponse message or plain object to encode
|
|
148923
151695
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148924
151696
|
* @returns {$protobuf.Writer} Writer
|
|
148925
151697
|
*/
|
|
148926
|
-
|
|
151698
|
+
UpdateContactResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
148927
151699
|
return this.encode(message, writer).ldelim();
|
|
148928
151700
|
};
|
|
148929
151701
|
|
|
148930
151702
|
/**
|
|
148931
|
-
* Decodes
|
|
151703
|
+
* Decodes an UpdateContactResponse message from the specified reader or buffer.
|
|
148932
151704
|
* @function decode
|
|
148933
|
-
* @memberof
|
|
151705
|
+
* @memberof UpdateContactResponse
|
|
148934
151706
|
* @static
|
|
148935
151707
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148936
151708
|
* @param {number} [length] Message length if known beforehand
|
|
148937
|
-
* @returns {
|
|
151709
|
+
* @returns {UpdateContactResponse} UpdateContactResponse
|
|
148938
151710
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148939
151711
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148940
151712
|
*/
|
|
148941
|
-
|
|
151713
|
+
UpdateContactResponse.decode = function decode(reader, length) {
|
|
148942
151714
|
if (!(reader instanceof $Reader))
|
|
148943
151715
|
reader = $Reader.create(reader);
|
|
148944
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
151716
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateContactResponse();
|
|
148945
151717
|
while (reader.pos < end) {
|
|
148946
151718
|
var tag = reader.uint32();
|
|
148947
151719
|
switch (tag >>> 3) {
|
|
148948
|
-
case
|
|
151720
|
+
case 1:
|
|
148949
151721
|
message.status = reader.int32();
|
|
148950
151722
|
break;
|
|
148951
|
-
case
|
|
151723
|
+
case 2:
|
|
148952
151724
|
if (!(message.errors && message.errors.length))
|
|
148953
151725
|
message.errors = [];
|
|
148954
151726
|
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
148955
151727
|
break;
|
|
148956
|
-
case
|
|
148957
|
-
message.
|
|
151728
|
+
case 3:
|
|
151729
|
+
message.contact = $root.Contact.decode(reader, reader.uint32());
|
|
148958
151730
|
break;
|
|
148959
151731
|
default:
|
|
148960
151732
|
reader.skipType(tag & 7);
|
|
@@ -148965,30 +151737,30 @@ $root.DeleteUnverifiedUserResponse = (function() {
|
|
|
148965
151737
|
};
|
|
148966
151738
|
|
|
148967
151739
|
/**
|
|
148968
|
-
* Decodes
|
|
151740
|
+
* Decodes an UpdateContactResponse message from the specified reader or buffer, length delimited.
|
|
148969
151741
|
* @function decodeDelimited
|
|
148970
|
-
* @memberof
|
|
151742
|
+
* @memberof UpdateContactResponse
|
|
148971
151743
|
* @static
|
|
148972
151744
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148973
|
-
* @returns {
|
|
151745
|
+
* @returns {UpdateContactResponse} UpdateContactResponse
|
|
148974
151746
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148975
151747
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148976
151748
|
*/
|
|
148977
|
-
|
|
151749
|
+
UpdateContactResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
148978
151750
|
if (!(reader instanceof $Reader))
|
|
148979
151751
|
reader = new $Reader(reader);
|
|
148980
151752
|
return this.decode(reader, reader.uint32());
|
|
148981
151753
|
};
|
|
148982
151754
|
|
|
148983
151755
|
/**
|
|
148984
|
-
* Verifies
|
|
151756
|
+
* Verifies an UpdateContactResponse message.
|
|
148985
151757
|
* @function verify
|
|
148986
|
-
* @memberof
|
|
151758
|
+
* @memberof UpdateContactResponse
|
|
148987
151759
|
* @static
|
|
148988
151760
|
* @param {Object.<string,*>} message Plain object to verify
|
|
148989
151761
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
148990
151762
|
*/
|
|
148991
|
-
|
|
151763
|
+
UpdateContactResponse.verify = function verify(message) {
|
|
148992
151764
|
if (typeof message !== "object" || message === null)
|
|
148993
151765
|
return "object expected";
|
|
148994
151766
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
@@ -149015,24 +151787,26 @@ $root.DeleteUnverifiedUserResponse = (function() {
|
|
|
149015
151787
|
return "errors." + error;
|
|
149016
151788
|
}
|
|
149017
151789
|
}
|
|
149018
|
-
if (message.
|
|
149019
|
-
|
|
149020
|
-
|
|
151790
|
+
if (message.contact != null && message.hasOwnProperty("contact")) {
|
|
151791
|
+
var error = $root.Contact.verify(message.contact);
|
|
151792
|
+
if (error)
|
|
151793
|
+
return "contact." + error;
|
|
151794
|
+
}
|
|
149021
151795
|
return null;
|
|
149022
151796
|
};
|
|
149023
151797
|
|
|
149024
151798
|
/**
|
|
149025
|
-
* Creates
|
|
151799
|
+
* Creates an UpdateContactResponse message from a plain object. Also converts values to their respective internal types.
|
|
149026
151800
|
* @function fromObject
|
|
149027
|
-
* @memberof
|
|
151801
|
+
* @memberof UpdateContactResponse
|
|
149028
151802
|
* @static
|
|
149029
151803
|
* @param {Object.<string,*>} object Plain object
|
|
149030
|
-
* @returns {
|
|
151804
|
+
* @returns {UpdateContactResponse} UpdateContactResponse
|
|
149031
151805
|
*/
|
|
149032
|
-
|
|
149033
|
-
if (object instanceof $root.
|
|
151806
|
+
UpdateContactResponse.fromObject = function fromObject(object) {
|
|
151807
|
+
if (object instanceof $root.UpdateContactResponse)
|
|
149034
151808
|
return object;
|
|
149035
|
-
var message = new $root.
|
|
151809
|
+
var message = new $root.UpdateContactResponse();
|
|
149036
151810
|
switch (object.status) {
|
|
149037
151811
|
case "UNKNOWN_CODE":
|
|
149038
151812
|
case 0:
|
|
@@ -149073,29 +151847,32 @@ $root.DeleteUnverifiedUserResponse = (function() {
|
|
|
149073
151847
|
}
|
|
149074
151848
|
if (object.errors) {
|
|
149075
151849
|
if (!Array.isArray(object.errors))
|
|
149076
|
-
throw TypeError(".
|
|
151850
|
+
throw TypeError(".UpdateContactResponse.errors: array expected");
|
|
149077
151851
|
message.errors = [];
|
|
149078
151852
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
149079
151853
|
if (typeof object.errors[i] !== "object")
|
|
149080
|
-
throw TypeError(".
|
|
151854
|
+
throw TypeError(".UpdateContactResponse.errors: object expected");
|
|
149081
151855
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
149082
151856
|
}
|
|
149083
151857
|
}
|
|
149084
|
-
if (object.
|
|
149085
|
-
|
|
151858
|
+
if (object.contact != null) {
|
|
151859
|
+
if (typeof object.contact !== "object")
|
|
151860
|
+
throw TypeError(".UpdateContactResponse.contact: object expected");
|
|
151861
|
+
message.contact = $root.Contact.fromObject(object.contact);
|
|
151862
|
+
}
|
|
149086
151863
|
return message;
|
|
149087
151864
|
};
|
|
149088
151865
|
|
|
149089
151866
|
/**
|
|
149090
|
-
* Creates a plain object from
|
|
151867
|
+
* Creates a plain object from an UpdateContactResponse message. Also converts values to other types if specified.
|
|
149091
151868
|
* @function toObject
|
|
149092
|
-
* @memberof
|
|
151869
|
+
* @memberof UpdateContactResponse
|
|
149093
151870
|
* @static
|
|
149094
|
-
* @param {
|
|
151871
|
+
* @param {UpdateContactResponse} message UpdateContactResponse
|
|
149095
151872
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
149096
151873
|
* @returns {Object.<string,*>} Plain object
|
|
149097
151874
|
*/
|
|
149098
|
-
|
|
151875
|
+
UpdateContactResponse.toObject = function toObject(message, options) {
|
|
149099
151876
|
if (!options)
|
|
149100
151877
|
options = {};
|
|
149101
151878
|
var object = {};
|
|
@@ -149103,7 +151880,7 @@ $root.DeleteUnverifiedUserResponse = (function() {
|
|
|
149103
151880
|
object.errors = [];
|
|
149104
151881
|
if (options.defaults) {
|
|
149105
151882
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
149106
|
-
object.
|
|
151883
|
+
object.contact = null;
|
|
149107
151884
|
}
|
|
149108
151885
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
149109
151886
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -149112,23 +151889,23 @@ $root.DeleteUnverifiedUserResponse = (function() {
|
|
|
149112
151889
|
for (var j = 0; j < message.errors.length; ++j)
|
|
149113
151890
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
149114
151891
|
}
|
|
149115
|
-
if (message.
|
|
149116
|
-
object.
|
|
151892
|
+
if (message.contact != null && message.hasOwnProperty("contact"))
|
|
151893
|
+
object.contact = $root.Contact.toObject(message.contact, options);
|
|
149117
151894
|
return object;
|
|
149118
151895
|
};
|
|
149119
151896
|
|
|
149120
151897
|
/**
|
|
149121
|
-
* Converts this
|
|
151898
|
+
* Converts this UpdateContactResponse to JSON.
|
|
149122
151899
|
* @function toJSON
|
|
149123
|
-
* @memberof
|
|
151900
|
+
* @memberof UpdateContactResponse
|
|
149124
151901
|
* @instance
|
|
149125
151902
|
* @returns {Object.<string,*>} JSON object
|
|
149126
151903
|
*/
|
|
149127
|
-
|
|
151904
|
+
UpdateContactResponse.prototype.toJSON = function toJSON() {
|
|
149128
151905
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
149129
151906
|
};
|
|
149130
151907
|
|
|
149131
|
-
return
|
|
151908
|
+
return UpdateContactResponse;
|
|
149132
151909
|
})();
|
|
149133
151910
|
|
|
149134
151911
|
$root.UserService = (function() {
|
|
@@ -150021,6 +152798,105 @@ $root.UserService = (function() {
|
|
|
150021
152798
|
* @variation 2
|
|
150022
152799
|
*/
|
|
150023
152800
|
|
|
152801
|
+
/**
|
|
152802
|
+
* Callback as used by {@link UserService#createContact}.
|
|
152803
|
+
* @memberof UserService
|
|
152804
|
+
* @typedef createContactCallback
|
|
152805
|
+
* @type {function}
|
|
152806
|
+
* @param {Error|null} error Error, if any
|
|
152807
|
+
* @param {CreateContactResponse} [response] CreateContactResponse
|
|
152808
|
+
*/
|
|
152809
|
+
|
|
152810
|
+
/**
|
|
152811
|
+
* Calls createContact.
|
|
152812
|
+
* @function createContact
|
|
152813
|
+
* @memberof UserService
|
|
152814
|
+
* @instance
|
|
152815
|
+
* @param {ICreateContactRequest} request CreateContactRequest message or plain object
|
|
152816
|
+
* @param {UserService.createContactCallback} callback Node-style callback called with the error, if any, and CreateContactResponse
|
|
152817
|
+
* @returns {undefined}
|
|
152818
|
+
* @variation 1
|
|
152819
|
+
*/
|
|
152820
|
+
Object.defineProperty(UserService.prototype.createContact = function createContact(request, callback) {
|
|
152821
|
+
return this.rpcCall(createContact, $root.CreateContactRequest, $root.CreateContactResponse, request, callback);
|
|
152822
|
+
}, "name", { value: "createContact" });
|
|
152823
|
+
|
|
152824
|
+
/**
|
|
152825
|
+
* Calls createContact.
|
|
152826
|
+
* @function createContact
|
|
152827
|
+
* @memberof UserService
|
|
152828
|
+
* @instance
|
|
152829
|
+
* @param {ICreateContactRequest} request CreateContactRequest message or plain object
|
|
152830
|
+
* @returns {Promise<CreateContactResponse>} Promise
|
|
152831
|
+
* @variation 2
|
|
152832
|
+
*/
|
|
152833
|
+
|
|
152834
|
+
/**
|
|
152835
|
+
* Callback as used by {@link UserService#queryContacts}.
|
|
152836
|
+
* @memberof UserService
|
|
152837
|
+
* @typedef queryContactsCallback
|
|
152838
|
+
* @type {function}
|
|
152839
|
+
* @param {Error|null} error Error, if any
|
|
152840
|
+
* @param {QueryContactsResponse} [response] QueryContactsResponse
|
|
152841
|
+
*/
|
|
152842
|
+
|
|
152843
|
+
/**
|
|
152844
|
+
* Calls queryContacts.
|
|
152845
|
+
* @function queryContacts
|
|
152846
|
+
* @memberof UserService
|
|
152847
|
+
* @instance
|
|
152848
|
+
* @param {IQueryContactsRequest} request QueryContactsRequest message or plain object
|
|
152849
|
+
* @param {UserService.queryContactsCallback} callback Node-style callback called with the error, if any, and QueryContactsResponse
|
|
152850
|
+
* @returns {undefined}
|
|
152851
|
+
* @variation 1
|
|
152852
|
+
*/
|
|
152853
|
+
Object.defineProperty(UserService.prototype.queryContacts = function queryContacts(request, callback) {
|
|
152854
|
+
return this.rpcCall(queryContacts, $root.QueryContactsRequest, $root.QueryContactsResponse, request, callback);
|
|
152855
|
+
}, "name", { value: "queryContacts" });
|
|
152856
|
+
|
|
152857
|
+
/**
|
|
152858
|
+
* Calls queryContacts.
|
|
152859
|
+
* @function queryContacts
|
|
152860
|
+
* @memberof UserService
|
|
152861
|
+
* @instance
|
|
152862
|
+
* @param {IQueryContactsRequest} request QueryContactsRequest message or plain object
|
|
152863
|
+
* @returns {Promise<QueryContactsResponse>} Promise
|
|
152864
|
+
* @variation 2
|
|
152865
|
+
*/
|
|
152866
|
+
|
|
152867
|
+
/**
|
|
152868
|
+
* Callback as used by {@link UserService#updateContact}.
|
|
152869
|
+
* @memberof UserService
|
|
152870
|
+
* @typedef updateContactCallback
|
|
152871
|
+
* @type {function}
|
|
152872
|
+
* @param {Error|null} error Error, if any
|
|
152873
|
+
* @param {UpdateContactResponse} [response] UpdateContactResponse
|
|
152874
|
+
*/
|
|
152875
|
+
|
|
152876
|
+
/**
|
|
152877
|
+
* Calls updateContact.
|
|
152878
|
+
* @function updateContact
|
|
152879
|
+
* @memberof UserService
|
|
152880
|
+
* @instance
|
|
152881
|
+
* @param {IUpdateContactRequest} request UpdateContactRequest message or plain object
|
|
152882
|
+
* @param {UserService.updateContactCallback} callback Node-style callback called with the error, if any, and UpdateContactResponse
|
|
152883
|
+
* @returns {undefined}
|
|
152884
|
+
* @variation 1
|
|
152885
|
+
*/
|
|
152886
|
+
Object.defineProperty(UserService.prototype.updateContact = function updateContact(request, callback) {
|
|
152887
|
+
return this.rpcCall(updateContact, $root.UpdateContactRequest, $root.UpdateContactResponse, request, callback);
|
|
152888
|
+
}, "name", { value: "updateContact" });
|
|
152889
|
+
|
|
152890
|
+
/**
|
|
152891
|
+
* Calls updateContact.
|
|
152892
|
+
* @function updateContact
|
|
152893
|
+
* @memberof UserService
|
|
152894
|
+
* @instance
|
|
152895
|
+
* @param {IUpdateContactRequest} request UpdateContactRequest message or plain object
|
|
152896
|
+
* @returns {Promise<UpdateContactResponse>} Promise
|
|
152897
|
+
* @variation 2
|
|
152898
|
+
*/
|
|
152899
|
+
|
|
150024
152900
|
return UserService;
|
|
150025
152901
|
})();
|
|
150026
152902
|
|