@sellout/models 0.0.360 → 0.0.362
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/graphql/fragments/order.fragment.js +2 -0
- package/.dist/graphql/fragments/order.fragment.js.map +1 -1
- package/.dist/graphql/mutations/deleteTicketHold.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteTicketHold.mutation.js +13 -0
- package/.dist/graphql/mutations/deleteTicketHold.mutation.js.map +1 -0
- package/.dist/graphql/mutations/generateEventQRCode.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/generateEventQRCode.mutation.js +10 -0
- package/.dist/graphql/mutations/generateEventQRCode.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateUserInfo.mutation.js +3 -2
- package/.dist/graphql/mutations/updateUserInfo.mutation.js.map +1 -1
- package/.dist/graphql/queries/event.query.js +1 -1
- package/.dist/graphql/queries/order.query.js +2 -2
- package/.dist/graphql/queries/userExists.query.js +1 -0
- package/.dist/graphql/queries/userExists.query.js.map +1 -1
- package/.dist/interfaces/IEvent.d.ts +1 -0
- package/.dist/interfaces/IScan.d.ts +1 -0
- package/.dist/schemas/Event.d.ts +5 -0
- package/.dist/schemas/Event.js +6 -1
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/sellout-proto.js +1320 -0
- package/package.json +3 -3
- package/src/graphql/fragments/order.fragment.ts +2 -0
- package/src/graphql/mutations/deleteTicketHold.mutation.ts +12 -0
- package/src/graphql/mutations/generateEventQRCode.mutation.ts +9 -0
- package/src/graphql/mutations/updateUserInfo.mutation.ts +3 -2
- package/src/graphql/queries/event.query.ts +1 -1
- package/src/graphql/queries/order.query.ts +2 -2
- package/src/graphql/queries/userExists.query.ts +1 -0
- package/src/interfaces/IEvent.ts +1 -0
- package/src/interfaces/IScan.ts +1 -0
- package/src/proto/event.proto +15 -1
- package/src/proto/order.proto +2 -0
- package/src/proto/user-profile.proto +1 -0
- package/src/proto/user.proto +14 -0
- package/src/schemas/Event.ts +6 -1
package/.dist/sellout-proto.js
CHANGED
|
@@ -18007,6 +18007,7 @@ $root.Scan = (function() {
|
|
|
18007
18007
|
* @property {number|null} [scannedAt] Scan scannedAt
|
|
18008
18008
|
* @property {string|null} [scannedBy] Scan scannedBy
|
|
18009
18009
|
* @property {number|null} [startsAt] Scan startsAt
|
|
18010
|
+
* @property {string|null} [scannerName] Scan scannerName
|
|
18010
18011
|
*/
|
|
18011
18012
|
|
|
18012
18013
|
/**
|
|
@@ -18056,6 +18057,14 @@ $root.Scan = (function() {
|
|
|
18056
18057
|
*/
|
|
18057
18058
|
Scan.prototype.startsAt = 0;
|
|
18058
18059
|
|
|
18060
|
+
/**
|
|
18061
|
+
* Scan scannerName.
|
|
18062
|
+
* @member {string} scannerName
|
|
18063
|
+
* @memberof Scan
|
|
18064
|
+
* @instance
|
|
18065
|
+
*/
|
|
18066
|
+
Scan.prototype.scannerName = "";
|
|
18067
|
+
|
|
18059
18068
|
/**
|
|
18060
18069
|
* Creates a new Scan instance using the specified properties.
|
|
18061
18070
|
* @function create
|
|
@@ -18088,6 +18097,8 @@ $root.Scan = (function() {
|
|
|
18088
18097
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.scannedBy);
|
|
18089
18098
|
if (message.startsAt != null && Object.hasOwnProperty.call(message, "startsAt"))
|
|
18090
18099
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.startsAt);
|
|
18100
|
+
if (message.scannerName != null && Object.hasOwnProperty.call(message, "scannerName"))
|
|
18101
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.scannerName);
|
|
18091
18102
|
return writer;
|
|
18092
18103
|
};
|
|
18093
18104
|
|
|
@@ -18134,6 +18145,9 @@ $root.Scan = (function() {
|
|
|
18134
18145
|
case 3:
|
|
18135
18146
|
message.startsAt = reader.int32();
|
|
18136
18147
|
break;
|
|
18148
|
+
case 4:
|
|
18149
|
+
message.scannerName = reader.string();
|
|
18150
|
+
break;
|
|
18137
18151
|
default:
|
|
18138
18152
|
reader.skipType(tag & 7);
|
|
18139
18153
|
break;
|
|
@@ -18181,6 +18195,9 @@ $root.Scan = (function() {
|
|
|
18181
18195
|
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
18182
18196
|
if (!$util.isInteger(message.startsAt))
|
|
18183
18197
|
return "startsAt: integer expected";
|
|
18198
|
+
if (message.scannerName != null && message.hasOwnProperty("scannerName"))
|
|
18199
|
+
if (!$util.isString(message.scannerName))
|
|
18200
|
+
return "scannerName: string expected";
|
|
18184
18201
|
return null;
|
|
18185
18202
|
};
|
|
18186
18203
|
|
|
@@ -18204,6 +18221,8 @@ $root.Scan = (function() {
|
|
|
18204
18221
|
message.scannedBy = String(object.scannedBy);
|
|
18205
18222
|
if (object.startsAt != null)
|
|
18206
18223
|
message.startsAt = object.startsAt | 0;
|
|
18224
|
+
if (object.scannerName != null)
|
|
18225
|
+
message.scannerName = String(object.scannerName);
|
|
18207
18226
|
return message;
|
|
18208
18227
|
};
|
|
18209
18228
|
|
|
@@ -18225,6 +18244,7 @@ $root.Scan = (function() {
|
|
|
18225
18244
|
object.scannedAt = 0;
|
|
18226
18245
|
object.scannedBy = "";
|
|
18227
18246
|
object.startsAt = 0;
|
|
18247
|
+
object.scannerName = "";
|
|
18228
18248
|
}
|
|
18229
18249
|
if (message.scanned != null && message.hasOwnProperty("scanned"))
|
|
18230
18250
|
object.scanned = message.scanned;
|
|
@@ -18234,6 +18254,8 @@ $root.Scan = (function() {
|
|
|
18234
18254
|
object.scannedBy = message.scannedBy;
|
|
18235
18255
|
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
18236
18256
|
object.startsAt = message.startsAt;
|
|
18257
|
+
if (message.scannerName != null && message.hasOwnProperty("scannerName"))
|
|
18258
|
+
object.scannerName = message.scannerName;
|
|
18237
18259
|
return object;
|
|
18238
18260
|
};
|
|
18239
18261
|
|
|
@@ -34054,6 +34076,7 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
34054
34076
|
* @property {string|null} [orgId] FindOrderByIdRequest orgId
|
|
34055
34077
|
* @property {boolean|null} [isAppTicketScan] FindOrderByIdRequest isAppTicketScan
|
|
34056
34078
|
* @property {string|null} [eventId] FindOrderByIdRequest eventId
|
|
34079
|
+
* @property {boolean|null} [getScannerName] FindOrderByIdRequest getScannerName
|
|
34057
34080
|
*/
|
|
34058
34081
|
|
|
34059
34082
|
/**
|
|
@@ -34111,6 +34134,14 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
34111
34134
|
*/
|
|
34112
34135
|
FindOrderByIdRequest.prototype.eventId = "";
|
|
34113
34136
|
|
|
34137
|
+
/**
|
|
34138
|
+
* FindOrderByIdRequest getScannerName.
|
|
34139
|
+
* @member {boolean} getScannerName
|
|
34140
|
+
* @memberof FindOrderByIdRequest
|
|
34141
|
+
* @instance
|
|
34142
|
+
*/
|
|
34143
|
+
FindOrderByIdRequest.prototype.getScannerName = false;
|
|
34144
|
+
|
|
34114
34145
|
/**
|
|
34115
34146
|
* Creates a new FindOrderByIdRequest instance using the specified properties.
|
|
34116
34147
|
* @function create
|
|
@@ -34145,6 +34176,8 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
34145
34176
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isAppTicketScan);
|
|
34146
34177
|
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
34147
34178
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.eventId);
|
|
34179
|
+
if (message.getScannerName != null && Object.hasOwnProperty.call(message, "getScannerName"))
|
|
34180
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.getScannerName);
|
|
34148
34181
|
return writer;
|
|
34149
34182
|
};
|
|
34150
34183
|
|
|
@@ -34194,6 +34227,9 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
34194
34227
|
case 4:
|
|
34195
34228
|
message.eventId = reader.string();
|
|
34196
34229
|
break;
|
|
34230
|
+
case 5:
|
|
34231
|
+
message.getScannerName = reader.bool();
|
|
34232
|
+
break;
|
|
34197
34233
|
default:
|
|
34198
34234
|
reader.skipType(tag & 7);
|
|
34199
34235
|
break;
|
|
@@ -34244,6 +34280,9 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
34244
34280
|
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
34245
34281
|
if (!$util.isString(message.eventId))
|
|
34246
34282
|
return "eventId: string expected";
|
|
34283
|
+
if (message.getScannerName != null && message.hasOwnProperty("getScannerName"))
|
|
34284
|
+
if (typeof message.getScannerName !== "boolean")
|
|
34285
|
+
return "getScannerName: boolean expected";
|
|
34247
34286
|
return null;
|
|
34248
34287
|
};
|
|
34249
34288
|
|
|
@@ -34269,6 +34308,8 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
34269
34308
|
message.isAppTicketScan = Boolean(object.isAppTicketScan);
|
|
34270
34309
|
if (object.eventId != null)
|
|
34271
34310
|
message.eventId = String(object.eventId);
|
|
34311
|
+
if (object.getScannerName != null)
|
|
34312
|
+
message.getScannerName = Boolean(object.getScannerName);
|
|
34272
34313
|
return message;
|
|
34273
34314
|
};
|
|
34274
34315
|
|
|
@@ -34291,6 +34332,7 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
34291
34332
|
object.orgId = "";
|
|
34292
34333
|
object.isAppTicketScan = false;
|
|
34293
34334
|
object.eventId = "";
|
|
34335
|
+
object.getScannerName = false;
|
|
34294
34336
|
}
|
|
34295
34337
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
34296
34338
|
object.spanContext = message.spanContext;
|
|
@@ -34302,6 +34344,8 @@ $root.FindOrderByIdRequest = (function() {
|
|
|
34302
34344
|
object.isAppTicketScan = message.isAppTicketScan;
|
|
34303
34345
|
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
34304
34346
|
object.eventId = message.eventId;
|
|
34347
|
+
if (message.getScannerName != null && message.hasOwnProperty("getScannerName"))
|
|
34348
|
+
object.getScannerName = message.getScannerName;
|
|
34305
34349
|
return object;
|
|
34306
34350
|
};
|
|
34307
34351
|
|
|
@@ -54395,6 +54439,7 @@ $root.UpdateSecondaryEmailRequest = (function() {
|
|
|
54395
54439
|
* @property {string|null} [spanContext] UpdateSecondaryEmailRequest spanContext
|
|
54396
54440
|
* @property {string|null} [email] UpdateSecondaryEmailRequest email
|
|
54397
54441
|
* @property {string|null} [userId] UpdateSecondaryEmailRequest userId
|
|
54442
|
+
* @property {string|null} [oldEmail] UpdateSecondaryEmailRequest oldEmail
|
|
54398
54443
|
*/
|
|
54399
54444
|
|
|
54400
54445
|
/**
|
|
@@ -54436,6 +54481,14 @@ $root.UpdateSecondaryEmailRequest = (function() {
|
|
|
54436
54481
|
*/
|
|
54437
54482
|
UpdateSecondaryEmailRequest.prototype.userId = "";
|
|
54438
54483
|
|
|
54484
|
+
/**
|
|
54485
|
+
* UpdateSecondaryEmailRequest oldEmail.
|
|
54486
|
+
* @member {string} oldEmail
|
|
54487
|
+
* @memberof UpdateSecondaryEmailRequest
|
|
54488
|
+
* @instance
|
|
54489
|
+
*/
|
|
54490
|
+
UpdateSecondaryEmailRequest.prototype.oldEmail = "";
|
|
54491
|
+
|
|
54439
54492
|
/**
|
|
54440
54493
|
* Creates a new UpdateSecondaryEmailRequest instance using the specified properties.
|
|
54441
54494
|
* @function create
|
|
@@ -54466,6 +54519,8 @@ $root.UpdateSecondaryEmailRequest = (function() {
|
|
|
54466
54519
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
54467
54520
|
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
54468
54521
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
54522
|
+
if (message.oldEmail != null && Object.hasOwnProperty.call(message, "oldEmail"))
|
|
54523
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.oldEmail);
|
|
54469
54524
|
return writer;
|
|
54470
54525
|
};
|
|
54471
54526
|
|
|
@@ -54509,6 +54564,9 @@ $root.UpdateSecondaryEmailRequest = (function() {
|
|
|
54509
54564
|
case 3:
|
|
54510
54565
|
message.userId = reader.string();
|
|
54511
54566
|
break;
|
|
54567
|
+
case 4:
|
|
54568
|
+
message.oldEmail = reader.string();
|
|
54569
|
+
break;
|
|
54512
54570
|
default:
|
|
54513
54571
|
reader.skipType(tag & 7);
|
|
54514
54572
|
break;
|
|
@@ -54553,6 +54611,9 @@ $root.UpdateSecondaryEmailRequest = (function() {
|
|
|
54553
54611
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
54554
54612
|
if (!$util.isString(message.userId))
|
|
54555
54613
|
return "userId: string expected";
|
|
54614
|
+
if (message.oldEmail != null && message.hasOwnProperty("oldEmail"))
|
|
54615
|
+
if (!$util.isString(message.oldEmail))
|
|
54616
|
+
return "oldEmail: string expected";
|
|
54556
54617
|
return null;
|
|
54557
54618
|
};
|
|
54558
54619
|
|
|
@@ -54574,6 +54635,8 @@ $root.UpdateSecondaryEmailRequest = (function() {
|
|
|
54574
54635
|
message.email = String(object.email);
|
|
54575
54636
|
if (object.userId != null)
|
|
54576
54637
|
message.userId = String(object.userId);
|
|
54638
|
+
if (object.oldEmail != null)
|
|
54639
|
+
message.oldEmail = String(object.oldEmail);
|
|
54577
54640
|
return message;
|
|
54578
54641
|
};
|
|
54579
54642
|
|
|
@@ -54594,6 +54657,7 @@ $root.UpdateSecondaryEmailRequest = (function() {
|
|
|
54594
54657
|
object.spanContext = "";
|
|
54595
54658
|
object.email = "";
|
|
54596
54659
|
object.userId = "";
|
|
54660
|
+
object.oldEmail = "";
|
|
54597
54661
|
}
|
|
54598
54662
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
54599
54663
|
object.spanContext = message.spanContext;
|
|
@@ -54601,6 +54665,8 @@ $root.UpdateSecondaryEmailRequest = (function() {
|
|
|
54601
54665
|
object.email = message.email;
|
|
54602
54666
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
54603
54667
|
object.userId = message.userId;
|
|
54668
|
+
if (message.oldEmail != null && message.hasOwnProperty("oldEmail"))
|
|
54669
|
+
object.oldEmail = message.oldEmail;
|
|
54604
54670
|
return object;
|
|
54605
54671
|
};
|
|
54606
54672
|
|
|
@@ -56597,6 +56663,7 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56597
56663
|
* @property {string|null} [email] UpdateUserInfoRequest email
|
|
56598
56664
|
* @property {string|null} [phoneNumber] UpdateUserInfoRequest phoneNumber
|
|
56599
56665
|
* @property {string|null} [preferredLogin] UpdateUserInfoRequest preferredLogin
|
|
56666
|
+
* @property {Array.<string>|null} [secondaryEmails] UpdateUserInfoRequest secondaryEmails
|
|
56600
56667
|
*/
|
|
56601
56668
|
|
|
56602
56669
|
/**
|
|
@@ -56608,6 +56675,7 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56608
56675
|
* @param {IUpdateUserInfoRequest=} [properties] Properties to set
|
|
56609
56676
|
*/
|
|
56610
56677
|
function UpdateUserInfoRequest(properties) {
|
|
56678
|
+
this.secondaryEmails = [];
|
|
56611
56679
|
if (properties)
|
|
56612
56680
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
56613
56681
|
if (properties[keys[i]] != null)
|
|
@@ -56654,6 +56722,14 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56654
56722
|
*/
|
|
56655
56723
|
UpdateUserInfoRequest.prototype.preferredLogin = "";
|
|
56656
56724
|
|
|
56725
|
+
/**
|
|
56726
|
+
* UpdateUserInfoRequest secondaryEmails.
|
|
56727
|
+
* @member {Array.<string>} secondaryEmails
|
|
56728
|
+
* @memberof UpdateUserInfoRequest
|
|
56729
|
+
* @instance
|
|
56730
|
+
*/
|
|
56731
|
+
UpdateUserInfoRequest.prototype.secondaryEmails = $util.emptyArray;
|
|
56732
|
+
|
|
56657
56733
|
/**
|
|
56658
56734
|
* Creates a new UpdateUserInfoRequest instance using the specified properties.
|
|
56659
56735
|
* @function create
|
|
@@ -56688,6 +56764,9 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56688
56764
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.phoneNumber);
|
|
56689
56765
|
if (message.preferredLogin != null && Object.hasOwnProperty.call(message, "preferredLogin"))
|
|
56690
56766
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.preferredLogin);
|
|
56767
|
+
if (message.secondaryEmails != null && message.secondaryEmails.length)
|
|
56768
|
+
for (var i = 0; i < message.secondaryEmails.length; ++i)
|
|
56769
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.secondaryEmails[i]);
|
|
56691
56770
|
return writer;
|
|
56692
56771
|
};
|
|
56693
56772
|
|
|
@@ -56737,6 +56816,11 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56737
56816
|
case 5:
|
|
56738
56817
|
message.preferredLogin = reader.string();
|
|
56739
56818
|
break;
|
|
56819
|
+
case 6:
|
|
56820
|
+
if (!(message.secondaryEmails && message.secondaryEmails.length))
|
|
56821
|
+
message.secondaryEmails = [];
|
|
56822
|
+
message.secondaryEmails.push(reader.string());
|
|
56823
|
+
break;
|
|
56740
56824
|
default:
|
|
56741
56825
|
reader.skipType(tag & 7);
|
|
56742
56826
|
break;
|
|
@@ -56787,6 +56871,13 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56787
56871
|
if (message.preferredLogin != null && message.hasOwnProperty("preferredLogin"))
|
|
56788
56872
|
if (!$util.isString(message.preferredLogin))
|
|
56789
56873
|
return "preferredLogin: string expected";
|
|
56874
|
+
if (message.secondaryEmails != null && message.hasOwnProperty("secondaryEmails")) {
|
|
56875
|
+
if (!Array.isArray(message.secondaryEmails))
|
|
56876
|
+
return "secondaryEmails: array expected";
|
|
56877
|
+
for (var i = 0; i < message.secondaryEmails.length; ++i)
|
|
56878
|
+
if (!$util.isString(message.secondaryEmails[i]))
|
|
56879
|
+
return "secondaryEmails: string[] expected";
|
|
56880
|
+
}
|
|
56790
56881
|
return null;
|
|
56791
56882
|
};
|
|
56792
56883
|
|
|
@@ -56812,6 +56903,13 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56812
56903
|
message.phoneNumber = String(object.phoneNumber);
|
|
56813
56904
|
if (object.preferredLogin != null)
|
|
56814
56905
|
message.preferredLogin = String(object.preferredLogin);
|
|
56906
|
+
if (object.secondaryEmails) {
|
|
56907
|
+
if (!Array.isArray(object.secondaryEmails))
|
|
56908
|
+
throw TypeError(".UpdateUserInfoRequest.secondaryEmails: array expected");
|
|
56909
|
+
message.secondaryEmails = [];
|
|
56910
|
+
for (var i = 0; i < object.secondaryEmails.length; ++i)
|
|
56911
|
+
message.secondaryEmails[i] = String(object.secondaryEmails[i]);
|
|
56912
|
+
}
|
|
56815
56913
|
return message;
|
|
56816
56914
|
};
|
|
56817
56915
|
|
|
@@ -56828,6 +56926,8 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56828
56926
|
if (!options)
|
|
56829
56927
|
options = {};
|
|
56830
56928
|
var object = {};
|
|
56929
|
+
if (options.arrays || options.defaults)
|
|
56930
|
+
object.secondaryEmails = [];
|
|
56831
56931
|
if (options.defaults) {
|
|
56832
56932
|
object.spanContext = "";
|
|
56833
56933
|
object._id = "";
|
|
@@ -56845,6 +56945,11 @@ $root.UpdateUserInfoRequest = (function() {
|
|
|
56845
56945
|
object.phoneNumber = message.phoneNumber;
|
|
56846
56946
|
if (message.preferredLogin != null && message.hasOwnProperty("preferredLogin"))
|
|
56847
56947
|
object.preferredLogin = message.preferredLogin;
|
|
56948
|
+
if (message.secondaryEmails && message.secondaryEmails.length) {
|
|
56949
|
+
object.secondaryEmails = [];
|
|
56950
|
+
for (var j = 0; j < message.secondaryEmails.length; ++j)
|
|
56951
|
+
object.secondaryEmails[j] = message.secondaryEmails[j];
|
|
56952
|
+
}
|
|
56848
56953
|
return object;
|
|
56849
56954
|
};
|
|
56850
56955
|
|
|
@@ -62197,6 +62302,534 @@ $root.SuperAdminDeleteUserResponse = (function() {
|
|
|
62197
62302
|
return SuperAdminDeleteUserResponse;
|
|
62198
62303
|
})();
|
|
62199
62304
|
|
|
62305
|
+
$root.GetUserBySecondaryEmailRequest = (function() {
|
|
62306
|
+
|
|
62307
|
+
/**
|
|
62308
|
+
* Properties of a GetUserBySecondaryEmailRequest.
|
|
62309
|
+
* @exports IGetUserBySecondaryEmailRequest
|
|
62310
|
+
* @interface IGetUserBySecondaryEmailRequest
|
|
62311
|
+
* @property {string|null} [spanContext] GetUserBySecondaryEmailRequest spanContext
|
|
62312
|
+
* @property {string|null} [email] GetUserBySecondaryEmailRequest email
|
|
62313
|
+
*/
|
|
62314
|
+
|
|
62315
|
+
/**
|
|
62316
|
+
* Constructs a new GetUserBySecondaryEmailRequest.
|
|
62317
|
+
* @exports GetUserBySecondaryEmailRequest
|
|
62318
|
+
* @classdesc Represents a GetUserBySecondaryEmailRequest.
|
|
62319
|
+
* @implements IGetUserBySecondaryEmailRequest
|
|
62320
|
+
* @constructor
|
|
62321
|
+
* @param {IGetUserBySecondaryEmailRequest=} [properties] Properties to set
|
|
62322
|
+
*/
|
|
62323
|
+
function GetUserBySecondaryEmailRequest(properties) {
|
|
62324
|
+
if (properties)
|
|
62325
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62326
|
+
if (properties[keys[i]] != null)
|
|
62327
|
+
this[keys[i]] = properties[keys[i]];
|
|
62328
|
+
}
|
|
62329
|
+
|
|
62330
|
+
/**
|
|
62331
|
+
* GetUserBySecondaryEmailRequest spanContext.
|
|
62332
|
+
* @member {string} spanContext
|
|
62333
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62334
|
+
* @instance
|
|
62335
|
+
*/
|
|
62336
|
+
GetUserBySecondaryEmailRequest.prototype.spanContext = "";
|
|
62337
|
+
|
|
62338
|
+
/**
|
|
62339
|
+
* GetUserBySecondaryEmailRequest email.
|
|
62340
|
+
* @member {string} email
|
|
62341
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62342
|
+
* @instance
|
|
62343
|
+
*/
|
|
62344
|
+
GetUserBySecondaryEmailRequest.prototype.email = "";
|
|
62345
|
+
|
|
62346
|
+
/**
|
|
62347
|
+
* Creates a new GetUserBySecondaryEmailRequest instance using the specified properties.
|
|
62348
|
+
* @function create
|
|
62349
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62350
|
+
* @static
|
|
62351
|
+
* @param {IGetUserBySecondaryEmailRequest=} [properties] Properties to set
|
|
62352
|
+
* @returns {GetUserBySecondaryEmailRequest} GetUserBySecondaryEmailRequest instance
|
|
62353
|
+
*/
|
|
62354
|
+
GetUserBySecondaryEmailRequest.create = function create(properties) {
|
|
62355
|
+
return new GetUserBySecondaryEmailRequest(properties);
|
|
62356
|
+
};
|
|
62357
|
+
|
|
62358
|
+
/**
|
|
62359
|
+
* Encodes the specified GetUserBySecondaryEmailRequest message. Does not implicitly {@link GetUserBySecondaryEmailRequest.verify|verify} messages.
|
|
62360
|
+
* @function encode
|
|
62361
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62362
|
+
* @static
|
|
62363
|
+
* @param {IGetUserBySecondaryEmailRequest} message GetUserBySecondaryEmailRequest message or plain object to encode
|
|
62364
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62365
|
+
* @returns {$protobuf.Writer} Writer
|
|
62366
|
+
*/
|
|
62367
|
+
GetUserBySecondaryEmailRequest.encode = function encode(message, writer) {
|
|
62368
|
+
if (!writer)
|
|
62369
|
+
writer = $Writer.create();
|
|
62370
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
62371
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
62372
|
+
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
62373
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
|
|
62374
|
+
return writer;
|
|
62375
|
+
};
|
|
62376
|
+
|
|
62377
|
+
/**
|
|
62378
|
+
* Encodes the specified GetUserBySecondaryEmailRequest message, length delimited. Does not implicitly {@link GetUserBySecondaryEmailRequest.verify|verify} messages.
|
|
62379
|
+
* @function encodeDelimited
|
|
62380
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62381
|
+
* @static
|
|
62382
|
+
* @param {IGetUserBySecondaryEmailRequest} message GetUserBySecondaryEmailRequest message or plain object to encode
|
|
62383
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62384
|
+
* @returns {$protobuf.Writer} Writer
|
|
62385
|
+
*/
|
|
62386
|
+
GetUserBySecondaryEmailRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62387
|
+
return this.encode(message, writer).ldelim();
|
|
62388
|
+
};
|
|
62389
|
+
|
|
62390
|
+
/**
|
|
62391
|
+
* Decodes a GetUserBySecondaryEmailRequest message from the specified reader or buffer.
|
|
62392
|
+
* @function decode
|
|
62393
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62394
|
+
* @static
|
|
62395
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62396
|
+
* @param {number} [length] Message length if known beforehand
|
|
62397
|
+
* @returns {GetUserBySecondaryEmailRequest} GetUserBySecondaryEmailRequest
|
|
62398
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62399
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62400
|
+
*/
|
|
62401
|
+
GetUserBySecondaryEmailRequest.decode = function decode(reader, length) {
|
|
62402
|
+
if (!(reader instanceof $Reader))
|
|
62403
|
+
reader = $Reader.create(reader);
|
|
62404
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GetUserBySecondaryEmailRequest();
|
|
62405
|
+
while (reader.pos < end) {
|
|
62406
|
+
var tag = reader.uint32();
|
|
62407
|
+
switch (tag >>> 3) {
|
|
62408
|
+
case 0:
|
|
62409
|
+
message.spanContext = reader.string();
|
|
62410
|
+
break;
|
|
62411
|
+
case 1:
|
|
62412
|
+
message.email = reader.string();
|
|
62413
|
+
break;
|
|
62414
|
+
default:
|
|
62415
|
+
reader.skipType(tag & 7);
|
|
62416
|
+
break;
|
|
62417
|
+
}
|
|
62418
|
+
}
|
|
62419
|
+
return message;
|
|
62420
|
+
};
|
|
62421
|
+
|
|
62422
|
+
/**
|
|
62423
|
+
* Decodes a GetUserBySecondaryEmailRequest message from the specified reader or buffer, length delimited.
|
|
62424
|
+
* @function decodeDelimited
|
|
62425
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62426
|
+
* @static
|
|
62427
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62428
|
+
* @returns {GetUserBySecondaryEmailRequest} GetUserBySecondaryEmailRequest
|
|
62429
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62430
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62431
|
+
*/
|
|
62432
|
+
GetUserBySecondaryEmailRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
62433
|
+
if (!(reader instanceof $Reader))
|
|
62434
|
+
reader = new $Reader(reader);
|
|
62435
|
+
return this.decode(reader, reader.uint32());
|
|
62436
|
+
};
|
|
62437
|
+
|
|
62438
|
+
/**
|
|
62439
|
+
* Verifies a GetUserBySecondaryEmailRequest message.
|
|
62440
|
+
* @function verify
|
|
62441
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62442
|
+
* @static
|
|
62443
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62444
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62445
|
+
*/
|
|
62446
|
+
GetUserBySecondaryEmailRequest.verify = function verify(message) {
|
|
62447
|
+
if (typeof message !== "object" || message === null)
|
|
62448
|
+
return "object expected";
|
|
62449
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
62450
|
+
if (!$util.isString(message.spanContext))
|
|
62451
|
+
return "spanContext: string expected";
|
|
62452
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
62453
|
+
if (!$util.isString(message.email))
|
|
62454
|
+
return "email: string expected";
|
|
62455
|
+
return null;
|
|
62456
|
+
};
|
|
62457
|
+
|
|
62458
|
+
/**
|
|
62459
|
+
* Creates a GetUserBySecondaryEmailRequest message from a plain object. Also converts values to their respective internal types.
|
|
62460
|
+
* @function fromObject
|
|
62461
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62462
|
+
* @static
|
|
62463
|
+
* @param {Object.<string,*>} object Plain object
|
|
62464
|
+
* @returns {GetUserBySecondaryEmailRequest} GetUserBySecondaryEmailRequest
|
|
62465
|
+
*/
|
|
62466
|
+
GetUserBySecondaryEmailRequest.fromObject = function fromObject(object) {
|
|
62467
|
+
if (object instanceof $root.GetUserBySecondaryEmailRequest)
|
|
62468
|
+
return object;
|
|
62469
|
+
var message = new $root.GetUserBySecondaryEmailRequest();
|
|
62470
|
+
if (object.spanContext != null)
|
|
62471
|
+
message.spanContext = String(object.spanContext);
|
|
62472
|
+
if (object.email != null)
|
|
62473
|
+
message.email = String(object.email);
|
|
62474
|
+
return message;
|
|
62475
|
+
};
|
|
62476
|
+
|
|
62477
|
+
/**
|
|
62478
|
+
* Creates a plain object from a GetUserBySecondaryEmailRequest message. Also converts values to other types if specified.
|
|
62479
|
+
* @function toObject
|
|
62480
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62481
|
+
* @static
|
|
62482
|
+
* @param {GetUserBySecondaryEmailRequest} message GetUserBySecondaryEmailRequest
|
|
62483
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62484
|
+
* @returns {Object.<string,*>} Plain object
|
|
62485
|
+
*/
|
|
62486
|
+
GetUserBySecondaryEmailRequest.toObject = function toObject(message, options) {
|
|
62487
|
+
if (!options)
|
|
62488
|
+
options = {};
|
|
62489
|
+
var object = {};
|
|
62490
|
+
if (options.defaults) {
|
|
62491
|
+
object.spanContext = "";
|
|
62492
|
+
object.email = "";
|
|
62493
|
+
}
|
|
62494
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
62495
|
+
object.spanContext = message.spanContext;
|
|
62496
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
62497
|
+
object.email = message.email;
|
|
62498
|
+
return object;
|
|
62499
|
+
};
|
|
62500
|
+
|
|
62501
|
+
/**
|
|
62502
|
+
* Converts this GetUserBySecondaryEmailRequest to JSON.
|
|
62503
|
+
* @function toJSON
|
|
62504
|
+
* @memberof GetUserBySecondaryEmailRequest
|
|
62505
|
+
* @instance
|
|
62506
|
+
* @returns {Object.<string,*>} JSON object
|
|
62507
|
+
*/
|
|
62508
|
+
GetUserBySecondaryEmailRequest.prototype.toJSON = function toJSON() {
|
|
62509
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62510
|
+
};
|
|
62511
|
+
|
|
62512
|
+
return GetUserBySecondaryEmailRequest;
|
|
62513
|
+
})();
|
|
62514
|
+
|
|
62515
|
+
$root.GetUserBySecondaryEmailResponse = (function() {
|
|
62516
|
+
|
|
62517
|
+
/**
|
|
62518
|
+
* Properties of a GetUserBySecondaryEmailResponse.
|
|
62519
|
+
* @exports IGetUserBySecondaryEmailResponse
|
|
62520
|
+
* @interface IGetUserBySecondaryEmailResponse
|
|
62521
|
+
* @property {StatusCode|null} [status] GetUserBySecondaryEmailResponse status
|
|
62522
|
+
* @property {Array.<IError>|null} [errors] GetUserBySecondaryEmailResponse errors
|
|
62523
|
+
* @property {Array.<string>|null} [email] GetUserBySecondaryEmailResponse email
|
|
62524
|
+
*/
|
|
62525
|
+
|
|
62526
|
+
/**
|
|
62527
|
+
* Constructs a new GetUserBySecondaryEmailResponse.
|
|
62528
|
+
* @exports GetUserBySecondaryEmailResponse
|
|
62529
|
+
* @classdesc Represents a GetUserBySecondaryEmailResponse.
|
|
62530
|
+
* @implements IGetUserBySecondaryEmailResponse
|
|
62531
|
+
* @constructor
|
|
62532
|
+
* @param {IGetUserBySecondaryEmailResponse=} [properties] Properties to set
|
|
62533
|
+
*/
|
|
62534
|
+
function GetUserBySecondaryEmailResponse(properties) {
|
|
62535
|
+
this.errors = [];
|
|
62536
|
+
this.email = [];
|
|
62537
|
+
if (properties)
|
|
62538
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62539
|
+
if (properties[keys[i]] != null)
|
|
62540
|
+
this[keys[i]] = properties[keys[i]];
|
|
62541
|
+
}
|
|
62542
|
+
|
|
62543
|
+
/**
|
|
62544
|
+
* GetUserBySecondaryEmailResponse status.
|
|
62545
|
+
* @member {StatusCode} status
|
|
62546
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62547
|
+
* @instance
|
|
62548
|
+
*/
|
|
62549
|
+
GetUserBySecondaryEmailResponse.prototype.status = 0;
|
|
62550
|
+
|
|
62551
|
+
/**
|
|
62552
|
+
* GetUserBySecondaryEmailResponse errors.
|
|
62553
|
+
* @member {Array.<IError>} errors
|
|
62554
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62555
|
+
* @instance
|
|
62556
|
+
*/
|
|
62557
|
+
GetUserBySecondaryEmailResponse.prototype.errors = $util.emptyArray;
|
|
62558
|
+
|
|
62559
|
+
/**
|
|
62560
|
+
* GetUserBySecondaryEmailResponse email.
|
|
62561
|
+
* @member {Array.<string>} email
|
|
62562
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62563
|
+
* @instance
|
|
62564
|
+
*/
|
|
62565
|
+
GetUserBySecondaryEmailResponse.prototype.email = $util.emptyArray;
|
|
62566
|
+
|
|
62567
|
+
/**
|
|
62568
|
+
* Creates a new GetUserBySecondaryEmailResponse instance using the specified properties.
|
|
62569
|
+
* @function create
|
|
62570
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62571
|
+
* @static
|
|
62572
|
+
* @param {IGetUserBySecondaryEmailResponse=} [properties] Properties to set
|
|
62573
|
+
* @returns {GetUserBySecondaryEmailResponse} GetUserBySecondaryEmailResponse instance
|
|
62574
|
+
*/
|
|
62575
|
+
GetUserBySecondaryEmailResponse.create = function create(properties) {
|
|
62576
|
+
return new GetUserBySecondaryEmailResponse(properties);
|
|
62577
|
+
};
|
|
62578
|
+
|
|
62579
|
+
/**
|
|
62580
|
+
* Encodes the specified GetUserBySecondaryEmailResponse message. Does not implicitly {@link GetUserBySecondaryEmailResponse.verify|verify} messages.
|
|
62581
|
+
* @function encode
|
|
62582
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62583
|
+
* @static
|
|
62584
|
+
* @param {IGetUserBySecondaryEmailResponse} message GetUserBySecondaryEmailResponse message or plain object to encode
|
|
62585
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62586
|
+
* @returns {$protobuf.Writer} Writer
|
|
62587
|
+
*/
|
|
62588
|
+
GetUserBySecondaryEmailResponse.encode = function encode(message, writer) {
|
|
62589
|
+
if (!writer)
|
|
62590
|
+
writer = $Writer.create();
|
|
62591
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
62592
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
62593
|
+
if (message.errors != null && message.errors.length)
|
|
62594
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
62595
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
62596
|
+
if (message.email != null && message.email.length)
|
|
62597
|
+
for (var i = 0; i < message.email.length; ++i)
|
|
62598
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email[i]);
|
|
62599
|
+
return writer;
|
|
62600
|
+
};
|
|
62601
|
+
|
|
62602
|
+
/**
|
|
62603
|
+
* Encodes the specified GetUserBySecondaryEmailResponse message, length delimited. Does not implicitly {@link GetUserBySecondaryEmailResponse.verify|verify} messages.
|
|
62604
|
+
* @function encodeDelimited
|
|
62605
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62606
|
+
* @static
|
|
62607
|
+
* @param {IGetUserBySecondaryEmailResponse} message GetUserBySecondaryEmailResponse message or plain object to encode
|
|
62608
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62609
|
+
* @returns {$protobuf.Writer} Writer
|
|
62610
|
+
*/
|
|
62611
|
+
GetUserBySecondaryEmailResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62612
|
+
return this.encode(message, writer).ldelim();
|
|
62613
|
+
};
|
|
62614
|
+
|
|
62615
|
+
/**
|
|
62616
|
+
* Decodes a GetUserBySecondaryEmailResponse message from the specified reader or buffer.
|
|
62617
|
+
* @function decode
|
|
62618
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62619
|
+
* @static
|
|
62620
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62621
|
+
* @param {number} [length] Message length if known beforehand
|
|
62622
|
+
* @returns {GetUserBySecondaryEmailResponse} GetUserBySecondaryEmailResponse
|
|
62623
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62624
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62625
|
+
*/
|
|
62626
|
+
GetUserBySecondaryEmailResponse.decode = function decode(reader, length) {
|
|
62627
|
+
if (!(reader instanceof $Reader))
|
|
62628
|
+
reader = $Reader.create(reader);
|
|
62629
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GetUserBySecondaryEmailResponse();
|
|
62630
|
+
while (reader.pos < end) {
|
|
62631
|
+
var tag = reader.uint32();
|
|
62632
|
+
switch (tag >>> 3) {
|
|
62633
|
+
case 0:
|
|
62634
|
+
message.status = reader.int32();
|
|
62635
|
+
break;
|
|
62636
|
+
case 1:
|
|
62637
|
+
if (!(message.errors && message.errors.length))
|
|
62638
|
+
message.errors = [];
|
|
62639
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
62640
|
+
break;
|
|
62641
|
+
case 2:
|
|
62642
|
+
if (!(message.email && message.email.length))
|
|
62643
|
+
message.email = [];
|
|
62644
|
+
message.email.push(reader.string());
|
|
62645
|
+
break;
|
|
62646
|
+
default:
|
|
62647
|
+
reader.skipType(tag & 7);
|
|
62648
|
+
break;
|
|
62649
|
+
}
|
|
62650
|
+
}
|
|
62651
|
+
return message;
|
|
62652
|
+
};
|
|
62653
|
+
|
|
62654
|
+
/**
|
|
62655
|
+
* Decodes a GetUserBySecondaryEmailResponse message from the specified reader or buffer, length delimited.
|
|
62656
|
+
* @function decodeDelimited
|
|
62657
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62658
|
+
* @static
|
|
62659
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62660
|
+
* @returns {GetUserBySecondaryEmailResponse} GetUserBySecondaryEmailResponse
|
|
62661
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62662
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62663
|
+
*/
|
|
62664
|
+
GetUserBySecondaryEmailResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
62665
|
+
if (!(reader instanceof $Reader))
|
|
62666
|
+
reader = new $Reader(reader);
|
|
62667
|
+
return this.decode(reader, reader.uint32());
|
|
62668
|
+
};
|
|
62669
|
+
|
|
62670
|
+
/**
|
|
62671
|
+
* Verifies a GetUserBySecondaryEmailResponse message.
|
|
62672
|
+
* @function verify
|
|
62673
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62674
|
+
* @static
|
|
62675
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62676
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62677
|
+
*/
|
|
62678
|
+
GetUserBySecondaryEmailResponse.verify = function verify(message) {
|
|
62679
|
+
if (typeof message !== "object" || message === null)
|
|
62680
|
+
return "object expected";
|
|
62681
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
62682
|
+
switch (message.status) {
|
|
62683
|
+
default:
|
|
62684
|
+
return "status: enum value expected";
|
|
62685
|
+
case 0:
|
|
62686
|
+
case 200:
|
|
62687
|
+
case 400:
|
|
62688
|
+
case 401:
|
|
62689
|
+
case 403:
|
|
62690
|
+
case 422:
|
|
62691
|
+
case 404:
|
|
62692
|
+
case 500:
|
|
62693
|
+
case 504:
|
|
62694
|
+
break;
|
|
62695
|
+
}
|
|
62696
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
62697
|
+
if (!Array.isArray(message.errors))
|
|
62698
|
+
return "errors: array expected";
|
|
62699
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
62700
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
62701
|
+
if (error)
|
|
62702
|
+
return "errors." + error;
|
|
62703
|
+
}
|
|
62704
|
+
}
|
|
62705
|
+
if (message.email != null && message.hasOwnProperty("email")) {
|
|
62706
|
+
if (!Array.isArray(message.email))
|
|
62707
|
+
return "email: array expected";
|
|
62708
|
+
for (var i = 0; i < message.email.length; ++i)
|
|
62709
|
+
if (!$util.isString(message.email[i]))
|
|
62710
|
+
return "email: string[] expected";
|
|
62711
|
+
}
|
|
62712
|
+
return null;
|
|
62713
|
+
};
|
|
62714
|
+
|
|
62715
|
+
/**
|
|
62716
|
+
* Creates a GetUserBySecondaryEmailResponse message from a plain object. Also converts values to their respective internal types.
|
|
62717
|
+
* @function fromObject
|
|
62718
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62719
|
+
* @static
|
|
62720
|
+
* @param {Object.<string,*>} object Plain object
|
|
62721
|
+
* @returns {GetUserBySecondaryEmailResponse} GetUserBySecondaryEmailResponse
|
|
62722
|
+
*/
|
|
62723
|
+
GetUserBySecondaryEmailResponse.fromObject = function fromObject(object) {
|
|
62724
|
+
if (object instanceof $root.GetUserBySecondaryEmailResponse)
|
|
62725
|
+
return object;
|
|
62726
|
+
var message = new $root.GetUserBySecondaryEmailResponse();
|
|
62727
|
+
switch (object.status) {
|
|
62728
|
+
case "UNKNOWN_CODE":
|
|
62729
|
+
case 0:
|
|
62730
|
+
message.status = 0;
|
|
62731
|
+
break;
|
|
62732
|
+
case "OK":
|
|
62733
|
+
case 200:
|
|
62734
|
+
message.status = 200;
|
|
62735
|
+
break;
|
|
62736
|
+
case "BAD_REQUEST":
|
|
62737
|
+
case 400:
|
|
62738
|
+
message.status = 400;
|
|
62739
|
+
break;
|
|
62740
|
+
case "UNAUTHORIZED":
|
|
62741
|
+
case 401:
|
|
62742
|
+
message.status = 401;
|
|
62743
|
+
break;
|
|
62744
|
+
case "FORBIDDEN":
|
|
62745
|
+
case 403:
|
|
62746
|
+
message.status = 403;
|
|
62747
|
+
break;
|
|
62748
|
+
case "UNPROCESSABLE_ENTITY":
|
|
62749
|
+
case 422:
|
|
62750
|
+
message.status = 422;
|
|
62751
|
+
break;
|
|
62752
|
+
case "NOT_FOUND":
|
|
62753
|
+
case 404:
|
|
62754
|
+
message.status = 404;
|
|
62755
|
+
break;
|
|
62756
|
+
case "INTERNAL_SERVER_ERROR":
|
|
62757
|
+
case 500:
|
|
62758
|
+
message.status = 500;
|
|
62759
|
+
break;
|
|
62760
|
+
case "GATEWAY_TIMEOUT":
|
|
62761
|
+
case 504:
|
|
62762
|
+
message.status = 504;
|
|
62763
|
+
break;
|
|
62764
|
+
}
|
|
62765
|
+
if (object.errors) {
|
|
62766
|
+
if (!Array.isArray(object.errors))
|
|
62767
|
+
throw TypeError(".GetUserBySecondaryEmailResponse.errors: array expected");
|
|
62768
|
+
message.errors = [];
|
|
62769
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
62770
|
+
if (typeof object.errors[i] !== "object")
|
|
62771
|
+
throw TypeError(".GetUserBySecondaryEmailResponse.errors: object expected");
|
|
62772
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
62773
|
+
}
|
|
62774
|
+
}
|
|
62775
|
+
if (object.email) {
|
|
62776
|
+
if (!Array.isArray(object.email))
|
|
62777
|
+
throw TypeError(".GetUserBySecondaryEmailResponse.email: array expected");
|
|
62778
|
+
message.email = [];
|
|
62779
|
+
for (var i = 0; i < object.email.length; ++i)
|
|
62780
|
+
message.email[i] = String(object.email[i]);
|
|
62781
|
+
}
|
|
62782
|
+
return message;
|
|
62783
|
+
};
|
|
62784
|
+
|
|
62785
|
+
/**
|
|
62786
|
+
* Creates a plain object from a GetUserBySecondaryEmailResponse message. Also converts values to other types if specified.
|
|
62787
|
+
* @function toObject
|
|
62788
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62789
|
+
* @static
|
|
62790
|
+
* @param {GetUserBySecondaryEmailResponse} message GetUserBySecondaryEmailResponse
|
|
62791
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62792
|
+
* @returns {Object.<string,*>} Plain object
|
|
62793
|
+
*/
|
|
62794
|
+
GetUserBySecondaryEmailResponse.toObject = function toObject(message, options) {
|
|
62795
|
+
if (!options)
|
|
62796
|
+
options = {};
|
|
62797
|
+
var object = {};
|
|
62798
|
+
if (options.arrays || options.defaults) {
|
|
62799
|
+
object.errors = [];
|
|
62800
|
+
object.email = [];
|
|
62801
|
+
}
|
|
62802
|
+
if (options.defaults)
|
|
62803
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
62804
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
62805
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
62806
|
+
if (message.errors && message.errors.length) {
|
|
62807
|
+
object.errors = [];
|
|
62808
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
62809
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
62810
|
+
}
|
|
62811
|
+
if (message.email && message.email.length) {
|
|
62812
|
+
object.email = [];
|
|
62813
|
+
for (var j = 0; j < message.email.length; ++j)
|
|
62814
|
+
object.email[j] = message.email[j];
|
|
62815
|
+
}
|
|
62816
|
+
return object;
|
|
62817
|
+
};
|
|
62818
|
+
|
|
62819
|
+
/**
|
|
62820
|
+
* Converts this GetUserBySecondaryEmailResponse to JSON.
|
|
62821
|
+
* @function toJSON
|
|
62822
|
+
* @memberof GetUserBySecondaryEmailResponse
|
|
62823
|
+
* @instance
|
|
62824
|
+
* @returns {Object.<string,*>} JSON object
|
|
62825
|
+
*/
|
|
62826
|
+
GetUserBySecondaryEmailResponse.prototype.toJSON = function toJSON() {
|
|
62827
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62828
|
+
};
|
|
62829
|
+
|
|
62830
|
+
return GetUserBySecondaryEmailResponse;
|
|
62831
|
+
})();
|
|
62832
|
+
|
|
62200
62833
|
$root.UserService = (function() {
|
|
62201
62834
|
|
|
62202
62835
|
/**
|
|
@@ -62658,6 +63291,39 @@ $root.UserService = (function() {
|
|
|
62658
63291
|
* @variation 2
|
|
62659
63292
|
*/
|
|
62660
63293
|
|
|
63294
|
+
/**
|
|
63295
|
+
* Callback as used by {@link UserService#getUserBySecondaryEmail}.
|
|
63296
|
+
* @memberof UserService
|
|
63297
|
+
* @typedef getUserBySecondaryEmailCallback
|
|
63298
|
+
* @type {function}
|
|
63299
|
+
* @param {Error|null} error Error, if any
|
|
63300
|
+
* @param {GetUserBySecondaryEmailResponse} [response] GetUserBySecondaryEmailResponse
|
|
63301
|
+
*/
|
|
63302
|
+
|
|
63303
|
+
/**
|
|
63304
|
+
* Calls getUserBySecondaryEmail.
|
|
63305
|
+
* @function getUserBySecondaryEmail
|
|
63306
|
+
* @memberof UserService
|
|
63307
|
+
* @instance
|
|
63308
|
+
* @param {IGetUserBySecondaryEmailRequest} request GetUserBySecondaryEmailRequest message or plain object
|
|
63309
|
+
* @param {UserService.getUserBySecondaryEmailCallback} callback Node-style callback called with the error, if any, and GetUserBySecondaryEmailResponse
|
|
63310
|
+
* @returns {undefined}
|
|
63311
|
+
* @variation 1
|
|
63312
|
+
*/
|
|
63313
|
+
Object.defineProperty(UserService.prototype.getUserBySecondaryEmail = function getUserBySecondaryEmail(request, callback) {
|
|
63314
|
+
return this.rpcCall(getUserBySecondaryEmail, $root.GetUserBySecondaryEmailRequest, $root.GetUserBySecondaryEmailResponse, request, callback);
|
|
63315
|
+
}, "name", { value: "getUserBySecondaryEmail" });
|
|
63316
|
+
|
|
63317
|
+
/**
|
|
63318
|
+
* Calls getUserBySecondaryEmail.
|
|
63319
|
+
* @function getUserBySecondaryEmail
|
|
63320
|
+
* @memberof UserService
|
|
63321
|
+
* @instance
|
|
63322
|
+
* @param {IGetUserBySecondaryEmailRequest} request GetUserBySecondaryEmailRequest message or plain object
|
|
63323
|
+
* @returns {Promise<GetUserBySecondaryEmailResponse>} Promise
|
|
63324
|
+
* @variation 2
|
|
63325
|
+
*/
|
|
63326
|
+
|
|
62661
63327
|
/**
|
|
62662
63328
|
* Callback as used by {@link UserService#updateBasicUserInfo}.
|
|
62663
63329
|
* @memberof UserService
|
|
@@ -65634,6 +66300,7 @@ $root.UserProfileQuery = (function() {
|
|
|
65634
66300
|
* @property {boolean|null} [any] UserProfileQuery any
|
|
65635
66301
|
* @property {string|null} [orgId] UserProfileQuery orgId
|
|
65636
66302
|
* @property {string|null} [screenType] UserProfileQuery screenType
|
|
66303
|
+
* @property {Array.<string>|null} [emails] UserProfileQuery emails
|
|
65637
66304
|
*/
|
|
65638
66305
|
|
|
65639
66306
|
/**
|
|
@@ -65649,6 +66316,7 @@ $root.UserProfileQuery = (function() {
|
|
|
65649
66316
|
this.venueIds = [];
|
|
65650
66317
|
this.artistIds = [];
|
|
65651
66318
|
this.userIds = [];
|
|
66319
|
+
this.emails = [];
|
|
65652
66320
|
if (properties)
|
|
65653
66321
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65654
66322
|
if (properties[keys[i]] != null)
|
|
@@ -65735,6 +66403,14 @@ $root.UserProfileQuery = (function() {
|
|
|
65735
66403
|
*/
|
|
65736
66404
|
UserProfileQuery.prototype.screenType = "";
|
|
65737
66405
|
|
|
66406
|
+
/**
|
|
66407
|
+
* UserProfileQuery emails.
|
|
66408
|
+
* @member {Array.<string>} emails
|
|
66409
|
+
* @memberof UserProfileQuery
|
|
66410
|
+
* @instance
|
|
66411
|
+
*/
|
|
66412
|
+
UserProfileQuery.prototype.emails = $util.emptyArray;
|
|
66413
|
+
|
|
65738
66414
|
/**
|
|
65739
66415
|
* Creates a new UserProfileQuery instance using the specified properties.
|
|
65740
66416
|
* @function create
|
|
@@ -65783,6 +66459,9 @@ $root.UserProfileQuery = (function() {
|
|
|
65783
66459
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.orgId);
|
|
65784
66460
|
if (message.screenType != null && Object.hasOwnProperty.call(message, "screenType"))
|
|
65785
66461
|
writer.uint32(/* id 9, wireType 2 =*/74).string(message.screenType);
|
|
66462
|
+
if (message.emails != null && message.emails.length)
|
|
66463
|
+
for (var i = 0; i < message.emails.length; ++i)
|
|
66464
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.emails[i]);
|
|
65786
66465
|
return writer;
|
|
65787
66466
|
};
|
|
65788
66467
|
|
|
@@ -65855,6 +66534,11 @@ $root.UserProfileQuery = (function() {
|
|
|
65855
66534
|
case 9:
|
|
65856
66535
|
message.screenType = reader.string();
|
|
65857
66536
|
break;
|
|
66537
|
+
case 10:
|
|
66538
|
+
if (!(message.emails && message.emails.length))
|
|
66539
|
+
message.emails = [];
|
|
66540
|
+
message.emails.push(reader.string());
|
|
66541
|
+
break;
|
|
65858
66542
|
default:
|
|
65859
66543
|
reader.skipType(tag & 7);
|
|
65860
66544
|
break;
|
|
@@ -65936,6 +66620,13 @@ $root.UserProfileQuery = (function() {
|
|
|
65936
66620
|
if (message.screenType != null && message.hasOwnProperty("screenType"))
|
|
65937
66621
|
if (!$util.isString(message.screenType))
|
|
65938
66622
|
return "screenType: string expected";
|
|
66623
|
+
if (message.emails != null && message.hasOwnProperty("emails")) {
|
|
66624
|
+
if (!Array.isArray(message.emails))
|
|
66625
|
+
return "emails: array expected";
|
|
66626
|
+
for (var i = 0; i < message.emails.length; ++i)
|
|
66627
|
+
if (!$util.isString(message.emails[i]))
|
|
66628
|
+
return "emails: string[] expected";
|
|
66629
|
+
}
|
|
65939
66630
|
return null;
|
|
65940
66631
|
};
|
|
65941
66632
|
|
|
@@ -65991,6 +66682,13 @@ $root.UserProfileQuery = (function() {
|
|
|
65991
66682
|
message.orgId = String(object.orgId);
|
|
65992
66683
|
if (object.screenType != null)
|
|
65993
66684
|
message.screenType = String(object.screenType);
|
|
66685
|
+
if (object.emails) {
|
|
66686
|
+
if (!Array.isArray(object.emails))
|
|
66687
|
+
throw TypeError(".UserProfileQuery.emails: array expected");
|
|
66688
|
+
message.emails = [];
|
|
66689
|
+
for (var i = 0; i < object.emails.length; ++i)
|
|
66690
|
+
message.emails[i] = String(object.emails[i]);
|
|
66691
|
+
}
|
|
65994
66692
|
return message;
|
|
65995
66693
|
};
|
|
65996
66694
|
|
|
@@ -66012,6 +66710,7 @@ $root.UserProfileQuery = (function() {
|
|
|
66012
66710
|
object.venueIds = [];
|
|
66013
66711
|
object.artistIds = [];
|
|
66014
66712
|
object.userIds = [];
|
|
66713
|
+
object.emails = [];
|
|
66015
66714
|
}
|
|
66016
66715
|
if (options.defaults) {
|
|
66017
66716
|
object.name = "";
|
|
@@ -66053,6 +66752,11 @@ $root.UserProfileQuery = (function() {
|
|
|
66053
66752
|
object.orgId = message.orgId;
|
|
66054
66753
|
if (message.screenType != null && message.hasOwnProperty("screenType"))
|
|
66055
66754
|
object.screenType = message.screenType;
|
|
66755
|
+
if (message.emails && message.emails.length) {
|
|
66756
|
+
object.emails = [];
|
|
66757
|
+
for (var j = 0; j < message.emails.length; ++j)
|
|
66758
|
+
object.emails[j] = message.emails[j];
|
|
66759
|
+
}
|
|
66056
66760
|
return object;
|
|
66057
66761
|
};
|
|
66058
66762
|
|
|
@@ -87349,6 +88053,7 @@ $root.Event = (function() {
|
|
|
87349
88053
|
* @property {Array.<IWaitList>|null} [waitList] Event waitList
|
|
87350
88054
|
* @property {string|null} [duplicateEventId] Event duplicateEventId
|
|
87351
88055
|
* @property {string|null} [duplicateFeeId] Event duplicateFeeId
|
|
88056
|
+
* @property {string|null} [qrCodeUrl] Event qrCodeUrl
|
|
87352
88057
|
*/
|
|
87353
88058
|
|
|
87354
88059
|
/**
|
|
@@ -87718,6 +88423,14 @@ $root.Event = (function() {
|
|
|
87718
88423
|
*/
|
|
87719
88424
|
Event.prototype.duplicateFeeId = "";
|
|
87720
88425
|
|
|
88426
|
+
/**
|
|
88427
|
+
* Event qrCodeUrl.
|
|
88428
|
+
* @member {string} qrCodeUrl
|
|
88429
|
+
* @memberof Event
|
|
88430
|
+
* @instance
|
|
88431
|
+
*/
|
|
88432
|
+
Event.prototype.qrCodeUrl = "";
|
|
88433
|
+
|
|
87721
88434
|
/**
|
|
87722
88435
|
* Creates a new Event instance using the specified properties.
|
|
87723
88436
|
* @function create
|
|
@@ -87836,6 +88549,8 @@ $root.Event = (function() {
|
|
|
87836
88549
|
writer.uint32(/* id 42, wireType 2 =*/338).string(message.duplicateEventId);
|
|
87837
88550
|
if (message.duplicateFeeId != null && Object.hasOwnProperty.call(message, "duplicateFeeId"))
|
|
87838
88551
|
writer.uint32(/* id 43, wireType 2 =*/346).string(message.duplicateFeeId);
|
|
88552
|
+
if (message.qrCodeUrl != null && Object.hasOwnProperty.call(message, "qrCodeUrl"))
|
|
88553
|
+
writer.uint32(/* id 44, wireType 2 =*/354).string(message.qrCodeUrl);
|
|
87839
88554
|
return writer;
|
|
87840
88555
|
};
|
|
87841
88556
|
|
|
@@ -88015,6 +88730,9 @@ $root.Event = (function() {
|
|
|
88015
88730
|
case 43:
|
|
88016
88731
|
message.duplicateFeeId = reader.string();
|
|
88017
88732
|
break;
|
|
88733
|
+
case 44:
|
|
88734
|
+
message.qrCodeUrl = reader.string();
|
|
88735
|
+
break;
|
|
88018
88736
|
default:
|
|
88019
88737
|
reader.skipType(tag & 7);
|
|
88020
88738
|
break;
|
|
@@ -88235,6 +88953,9 @@ $root.Event = (function() {
|
|
|
88235
88953
|
if (message.duplicateFeeId != null && message.hasOwnProperty("duplicateFeeId"))
|
|
88236
88954
|
if (!$util.isString(message.duplicateFeeId))
|
|
88237
88955
|
return "duplicateFeeId: string expected";
|
|
88956
|
+
if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
|
|
88957
|
+
if (!$util.isString(message.qrCodeUrl))
|
|
88958
|
+
return "qrCodeUrl: string expected";
|
|
88238
88959
|
return null;
|
|
88239
88960
|
};
|
|
88240
88961
|
|
|
@@ -88412,6 +89133,8 @@ $root.Event = (function() {
|
|
|
88412
89133
|
message.duplicateEventId = String(object.duplicateEventId);
|
|
88413
89134
|
if (object.duplicateFeeId != null)
|
|
88414
89135
|
message.duplicateFeeId = String(object.duplicateFeeId);
|
|
89136
|
+
if (object.qrCodeUrl != null)
|
|
89137
|
+
message.qrCodeUrl = String(object.qrCodeUrl);
|
|
88415
89138
|
return message;
|
|
88416
89139
|
};
|
|
88417
89140
|
|
|
@@ -88474,6 +89197,7 @@ $root.Event = (function() {
|
|
|
88474
89197
|
object.stub = "";
|
|
88475
89198
|
object.duplicateEventId = "";
|
|
88476
89199
|
object.duplicateFeeId = "";
|
|
89200
|
+
object.qrCodeUrl = "";
|
|
88477
89201
|
}
|
|
88478
89202
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
88479
89203
|
object._id = message._id;
|
|
@@ -88585,6 +89309,8 @@ $root.Event = (function() {
|
|
|
88585
89309
|
object.duplicateEventId = message.duplicateEventId;
|
|
88586
89310
|
if (message.duplicateFeeId != null && message.hasOwnProperty("duplicateFeeId"))
|
|
88587
89311
|
object.duplicateFeeId = message.duplicateFeeId;
|
|
89312
|
+
if (message.qrCodeUrl != null && message.hasOwnProperty("qrCodeUrl"))
|
|
89313
|
+
object.qrCodeUrl = message.qrCodeUrl;
|
|
88588
89314
|
return object;
|
|
88589
89315
|
};
|
|
88590
89316
|
|
|
@@ -110952,6 +111678,567 @@ $root.UpdateTicketTierInventoryResponse = (function() {
|
|
|
110952
111678
|
return UpdateTicketTierInventoryResponse;
|
|
110953
111679
|
})();
|
|
110954
111680
|
|
|
111681
|
+
$root.DeleteTicketHoldRequest = (function() {
|
|
111682
|
+
|
|
111683
|
+
/**
|
|
111684
|
+
* Properties of a DeleteTicketHoldRequest.
|
|
111685
|
+
* @exports IDeleteTicketHoldRequest
|
|
111686
|
+
* @interface IDeleteTicketHoldRequest
|
|
111687
|
+
* @property {string|null} [spanContext] DeleteTicketHoldRequest spanContext
|
|
111688
|
+
* @property {string|null} [eventId] DeleteTicketHoldRequest eventId
|
|
111689
|
+
* @property {string|null} [orgId] DeleteTicketHoldRequest orgId
|
|
111690
|
+
* @property {string|null} [holdId] DeleteTicketHoldRequest holdId
|
|
111691
|
+
*/
|
|
111692
|
+
|
|
111693
|
+
/**
|
|
111694
|
+
* Constructs a new DeleteTicketHoldRequest.
|
|
111695
|
+
* @exports DeleteTicketHoldRequest
|
|
111696
|
+
* @classdesc Represents a DeleteTicketHoldRequest.
|
|
111697
|
+
* @implements IDeleteTicketHoldRequest
|
|
111698
|
+
* @constructor
|
|
111699
|
+
* @param {IDeleteTicketHoldRequest=} [properties] Properties to set
|
|
111700
|
+
*/
|
|
111701
|
+
function DeleteTicketHoldRequest(properties) {
|
|
111702
|
+
if (properties)
|
|
111703
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
111704
|
+
if (properties[keys[i]] != null)
|
|
111705
|
+
this[keys[i]] = properties[keys[i]];
|
|
111706
|
+
}
|
|
111707
|
+
|
|
111708
|
+
/**
|
|
111709
|
+
* DeleteTicketHoldRequest spanContext.
|
|
111710
|
+
* @member {string} spanContext
|
|
111711
|
+
* @memberof DeleteTicketHoldRequest
|
|
111712
|
+
* @instance
|
|
111713
|
+
*/
|
|
111714
|
+
DeleteTicketHoldRequest.prototype.spanContext = "";
|
|
111715
|
+
|
|
111716
|
+
/**
|
|
111717
|
+
* DeleteTicketHoldRequest eventId.
|
|
111718
|
+
* @member {string} eventId
|
|
111719
|
+
* @memberof DeleteTicketHoldRequest
|
|
111720
|
+
* @instance
|
|
111721
|
+
*/
|
|
111722
|
+
DeleteTicketHoldRequest.prototype.eventId = "";
|
|
111723
|
+
|
|
111724
|
+
/**
|
|
111725
|
+
* DeleteTicketHoldRequest orgId.
|
|
111726
|
+
* @member {string} orgId
|
|
111727
|
+
* @memberof DeleteTicketHoldRequest
|
|
111728
|
+
* @instance
|
|
111729
|
+
*/
|
|
111730
|
+
DeleteTicketHoldRequest.prototype.orgId = "";
|
|
111731
|
+
|
|
111732
|
+
/**
|
|
111733
|
+
* DeleteTicketHoldRequest holdId.
|
|
111734
|
+
* @member {string} holdId
|
|
111735
|
+
* @memberof DeleteTicketHoldRequest
|
|
111736
|
+
* @instance
|
|
111737
|
+
*/
|
|
111738
|
+
DeleteTicketHoldRequest.prototype.holdId = "";
|
|
111739
|
+
|
|
111740
|
+
/**
|
|
111741
|
+
* Creates a new DeleteTicketHoldRequest instance using the specified properties.
|
|
111742
|
+
* @function create
|
|
111743
|
+
* @memberof DeleteTicketHoldRequest
|
|
111744
|
+
* @static
|
|
111745
|
+
* @param {IDeleteTicketHoldRequest=} [properties] Properties to set
|
|
111746
|
+
* @returns {DeleteTicketHoldRequest} DeleteTicketHoldRequest instance
|
|
111747
|
+
*/
|
|
111748
|
+
DeleteTicketHoldRequest.create = function create(properties) {
|
|
111749
|
+
return new DeleteTicketHoldRequest(properties);
|
|
111750
|
+
};
|
|
111751
|
+
|
|
111752
|
+
/**
|
|
111753
|
+
* Encodes the specified DeleteTicketHoldRequest message. Does not implicitly {@link DeleteTicketHoldRequest.verify|verify} messages.
|
|
111754
|
+
* @function encode
|
|
111755
|
+
* @memberof DeleteTicketHoldRequest
|
|
111756
|
+
* @static
|
|
111757
|
+
* @param {IDeleteTicketHoldRequest} message DeleteTicketHoldRequest message or plain object to encode
|
|
111758
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
111759
|
+
* @returns {$protobuf.Writer} Writer
|
|
111760
|
+
*/
|
|
111761
|
+
DeleteTicketHoldRequest.encode = function encode(message, writer) {
|
|
111762
|
+
if (!writer)
|
|
111763
|
+
writer = $Writer.create();
|
|
111764
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
111765
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
111766
|
+
if (message.eventId != null && Object.hasOwnProperty.call(message, "eventId"))
|
|
111767
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventId);
|
|
111768
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
111769
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
|
|
111770
|
+
if (message.holdId != null && Object.hasOwnProperty.call(message, "holdId"))
|
|
111771
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.holdId);
|
|
111772
|
+
return writer;
|
|
111773
|
+
};
|
|
111774
|
+
|
|
111775
|
+
/**
|
|
111776
|
+
* Encodes the specified DeleteTicketHoldRequest message, length delimited. Does not implicitly {@link DeleteTicketHoldRequest.verify|verify} messages.
|
|
111777
|
+
* @function encodeDelimited
|
|
111778
|
+
* @memberof DeleteTicketHoldRequest
|
|
111779
|
+
* @static
|
|
111780
|
+
* @param {IDeleteTicketHoldRequest} message DeleteTicketHoldRequest message or plain object to encode
|
|
111781
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
111782
|
+
* @returns {$protobuf.Writer} Writer
|
|
111783
|
+
*/
|
|
111784
|
+
DeleteTicketHoldRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
111785
|
+
return this.encode(message, writer).ldelim();
|
|
111786
|
+
};
|
|
111787
|
+
|
|
111788
|
+
/**
|
|
111789
|
+
* Decodes a DeleteTicketHoldRequest message from the specified reader or buffer.
|
|
111790
|
+
* @function decode
|
|
111791
|
+
* @memberof DeleteTicketHoldRequest
|
|
111792
|
+
* @static
|
|
111793
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
111794
|
+
* @param {number} [length] Message length if known beforehand
|
|
111795
|
+
* @returns {DeleteTicketHoldRequest} DeleteTicketHoldRequest
|
|
111796
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
111797
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
111798
|
+
*/
|
|
111799
|
+
DeleteTicketHoldRequest.decode = function decode(reader, length) {
|
|
111800
|
+
if (!(reader instanceof $Reader))
|
|
111801
|
+
reader = $Reader.create(reader);
|
|
111802
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteTicketHoldRequest();
|
|
111803
|
+
while (reader.pos < end) {
|
|
111804
|
+
var tag = reader.uint32();
|
|
111805
|
+
switch (tag >>> 3) {
|
|
111806
|
+
case 0:
|
|
111807
|
+
message.spanContext = reader.string();
|
|
111808
|
+
break;
|
|
111809
|
+
case 1:
|
|
111810
|
+
message.eventId = reader.string();
|
|
111811
|
+
break;
|
|
111812
|
+
case 2:
|
|
111813
|
+
message.orgId = reader.string();
|
|
111814
|
+
break;
|
|
111815
|
+
case 3:
|
|
111816
|
+
message.holdId = reader.string();
|
|
111817
|
+
break;
|
|
111818
|
+
default:
|
|
111819
|
+
reader.skipType(tag & 7);
|
|
111820
|
+
break;
|
|
111821
|
+
}
|
|
111822
|
+
}
|
|
111823
|
+
return message;
|
|
111824
|
+
};
|
|
111825
|
+
|
|
111826
|
+
/**
|
|
111827
|
+
* Decodes a DeleteTicketHoldRequest message from the specified reader or buffer, length delimited.
|
|
111828
|
+
* @function decodeDelimited
|
|
111829
|
+
* @memberof DeleteTicketHoldRequest
|
|
111830
|
+
* @static
|
|
111831
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
111832
|
+
* @returns {DeleteTicketHoldRequest} DeleteTicketHoldRequest
|
|
111833
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
111834
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
111835
|
+
*/
|
|
111836
|
+
DeleteTicketHoldRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
111837
|
+
if (!(reader instanceof $Reader))
|
|
111838
|
+
reader = new $Reader(reader);
|
|
111839
|
+
return this.decode(reader, reader.uint32());
|
|
111840
|
+
};
|
|
111841
|
+
|
|
111842
|
+
/**
|
|
111843
|
+
* Verifies a DeleteTicketHoldRequest message.
|
|
111844
|
+
* @function verify
|
|
111845
|
+
* @memberof DeleteTicketHoldRequest
|
|
111846
|
+
* @static
|
|
111847
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
111848
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
111849
|
+
*/
|
|
111850
|
+
DeleteTicketHoldRequest.verify = function verify(message) {
|
|
111851
|
+
if (typeof message !== "object" || message === null)
|
|
111852
|
+
return "object expected";
|
|
111853
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
111854
|
+
if (!$util.isString(message.spanContext))
|
|
111855
|
+
return "spanContext: string expected";
|
|
111856
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
111857
|
+
if (!$util.isString(message.eventId))
|
|
111858
|
+
return "eventId: string expected";
|
|
111859
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
111860
|
+
if (!$util.isString(message.orgId))
|
|
111861
|
+
return "orgId: string expected";
|
|
111862
|
+
if (message.holdId != null && message.hasOwnProperty("holdId"))
|
|
111863
|
+
if (!$util.isString(message.holdId))
|
|
111864
|
+
return "holdId: string expected";
|
|
111865
|
+
return null;
|
|
111866
|
+
};
|
|
111867
|
+
|
|
111868
|
+
/**
|
|
111869
|
+
* Creates a DeleteTicketHoldRequest message from a plain object. Also converts values to their respective internal types.
|
|
111870
|
+
* @function fromObject
|
|
111871
|
+
* @memberof DeleteTicketHoldRequest
|
|
111872
|
+
* @static
|
|
111873
|
+
* @param {Object.<string,*>} object Plain object
|
|
111874
|
+
* @returns {DeleteTicketHoldRequest} DeleteTicketHoldRequest
|
|
111875
|
+
*/
|
|
111876
|
+
DeleteTicketHoldRequest.fromObject = function fromObject(object) {
|
|
111877
|
+
if (object instanceof $root.DeleteTicketHoldRequest)
|
|
111878
|
+
return object;
|
|
111879
|
+
var message = new $root.DeleteTicketHoldRequest();
|
|
111880
|
+
if (object.spanContext != null)
|
|
111881
|
+
message.spanContext = String(object.spanContext);
|
|
111882
|
+
if (object.eventId != null)
|
|
111883
|
+
message.eventId = String(object.eventId);
|
|
111884
|
+
if (object.orgId != null)
|
|
111885
|
+
message.orgId = String(object.orgId);
|
|
111886
|
+
if (object.holdId != null)
|
|
111887
|
+
message.holdId = String(object.holdId);
|
|
111888
|
+
return message;
|
|
111889
|
+
};
|
|
111890
|
+
|
|
111891
|
+
/**
|
|
111892
|
+
* Creates a plain object from a DeleteTicketHoldRequest message. Also converts values to other types if specified.
|
|
111893
|
+
* @function toObject
|
|
111894
|
+
* @memberof DeleteTicketHoldRequest
|
|
111895
|
+
* @static
|
|
111896
|
+
* @param {DeleteTicketHoldRequest} message DeleteTicketHoldRequest
|
|
111897
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
111898
|
+
* @returns {Object.<string,*>} Plain object
|
|
111899
|
+
*/
|
|
111900
|
+
DeleteTicketHoldRequest.toObject = function toObject(message, options) {
|
|
111901
|
+
if (!options)
|
|
111902
|
+
options = {};
|
|
111903
|
+
var object = {};
|
|
111904
|
+
if (options.defaults) {
|
|
111905
|
+
object.spanContext = "";
|
|
111906
|
+
object.eventId = "";
|
|
111907
|
+
object.orgId = "";
|
|
111908
|
+
object.holdId = "";
|
|
111909
|
+
}
|
|
111910
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
111911
|
+
object.spanContext = message.spanContext;
|
|
111912
|
+
if (message.eventId != null && message.hasOwnProperty("eventId"))
|
|
111913
|
+
object.eventId = message.eventId;
|
|
111914
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
111915
|
+
object.orgId = message.orgId;
|
|
111916
|
+
if (message.holdId != null && message.hasOwnProperty("holdId"))
|
|
111917
|
+
object.holdId = message.holdId;
|
|
111918
|
+
return object;
|
|
111919
|
+
};
|
|
111920
|
+
|
|
111921
|
+
/**
|
|
111922
|
+
* Converts this DeleteTicketHoldRequest to JSON.
|
|
111923
|
+
* @function toJSON
|
|
111924
|
+
* @memberof DeleteTicketHoldRequest
|
|
111925
|
+
* @instance
|
|
111926
|
+
* @returns {Object.<string,*>} JSON object
|
|
111927
|
+
*/
|
|
111928
|
+
DeleteTicketHoldRequest.prototype.toJSON = function toJSON() {
|
|
111929
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
111930
|
+
};
|
|
111931
|
+
|
|
111932
|
+
return DeleteTicketHoldRequest;
|
|
111933
|
+
})();
|
|
111934
|
+
|
|
111935
|
+
$root.DeleteTicketHoldResponse = (function() {
|
|
111936
|
+
|
|
111937
|
+
/**
|
|
111938
|
+
* Properties of a DeleteTicketHoldResponse.
|
|
111939
|
+
* @exports IDeleteTicketHoldResponse
|
|
111940
|
+
* @interface IDeleteTicketHoldResponse
|
|
111941
|
+
* @property {StatusCode|null} [status] DeleteTicketHoldResponse status
|
|
111942
|
+
* @property {Array.<IError>|null} [errors] DeleteTicketHoldResponse errors
|
|
111943
|
+
* @property {IEvent|null} [event] DeleteTicketHoldResponse event
|
|
111944
|
+
*/
|
|
111945
|
+
|
|
111946
|
+
/**
|
|
111947
|
+
* Constructs a new DeleteTicketHoldResponse.
|
|
111948
|
+
* @exports DeleteTicketHoldResponse
|
|
111949
|
+
* @classdesc Represents a DeleteTicketHoldResponse.
|
|
111950
|
+
* @implements IDeleteTicketHoldResponse
|
|
111951
|
+
* @constructor
|
|
111952
|
+
* @param {IDeleteTicketHoldResponse=} [properties] Properties to set
|
|
111953
|
+
*/
|
|
111954
|
+
function DeleteTicketHoldResponse(properties) {
|
|
111955
|
+
this.errors = [];
|
|
111956
|
+
if (properties)
|
|
111957
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
111958
|
+
if (properties[keys[i]] != null)
|
|
111959
|
+
this[keys[i]] = properties[keys[i]];
|
|
111960
|
+
}
|
|
111961
|
+
|
|
111962
|
+
/**
|
|
111963
|
+
* DeleteTicketHoldResponse status.
|
|
111964
|
+
* @member {StatusCode} status
|
|
111965
|
+
* @memberof DeleteTicketHoldResponse
|
|
111966
|
+
* @instance
|
|
111967
|
+
*/
|
|
111968
|
+
DeleteTicketHoldResponse.prototype.status = 0;
|
|
111969
|
+
|
|
111970
|
+
/**
|
|
111971
|
+
* DeleteTicketHoldResponse errors.
|
|
111972
|
+
* @member {Array.<IError>} errors
|
|
111973
|
+
* @memberof DeleteTicketHoldResponse
|
|
111974
|
+
* @instance
|
|
111975
|
+
*/
|
|
111976
|
+
DeleteTicketHoldResponse.prototype.errors = $util.emptyArray;
|
|
111977
|
+
|
|
111978
|
+
/**
|
|
111979
|
+
* DeleteTicketHoldResponse event.
|
|
111980
|
+
* @member {IEvent|null|undefined} event
|
|
111981
|
+
* @memberof DeleteTicketHoldResponse
|
|
111982
|
+
* @instance
|
|
111983
|
+
*/
|
|
111984
|
+
DeleteTicketHoldResponse.prototype.event = null;
|
|
111985
|
+
|
|
111986
|
+
/**
|
|
111987
|
+
* Creates a new DeleteTicketHoldResponse instance using the specified properties.
|
|
111988
|
+
* @function create
|
|
111989
|
+
* @memberof DeleteTicketHoldResponse
|
|
111990
|
+
* @static
|
|
111991
|
+
* @param {IDeleteTicketHoldResponse=} [properties] Properties to set
|
|
111992
|
+
* @returns {DeleteTicketHoldResponse} DeleteTicketHoldResponse instance
|
|
111993
|
+
*/
|
|
111994
|
+
DeleteTicketHoldResponse.create = function create(properties) {
|
|
111995
|
+
return new DeleteTicketHoldResponse(properties);
|
|
111996
|
+
};
|
|
111997
|
+
|
|
111998
|
+
/**
|
|
111999
|
+
* Encodes the specified DeleteTicketHoldResponse message. Does not implicitly {@link DeleteTicketHoldResponse.verify|verify} messages.
|
|
112000
|
+
* @function encode
|
|
112001
|
+
* @memberof DeleteTicketHoldResponse
|
|
112002
|
+
* @static
|
|
112003
|
+
* @param {IDeleteTicketHoldResponse} message DeleteTicketHoldResponse message or plain object to encode
|
|
112004
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
112005
|
+
* @returns {$protobuf.Writer} Writer
|
|
112006
|
+
*/
|
|
112007
|
+
DeleteTicketHoldResponse.encode = function encode(message, writer) {
|
|
112008
|
+
if (!writer)
|
|
112009
|
+
writer = $Writer.create();
|
|
112010
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
112011
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
112012
|
+
if (message.errors != null && message.errors.length)
|
|
112013
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
112014
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
112015
|
+
if (message.event != null && Object.hasOwnProperty.call(message, "event"))
|
|
112016
|
+
$root.Event.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
112017
|
+
return writer;
|
|
112018
|
+
};
|
|
112019
|
+
|
|
112020
|
+
/**
|
|
112021
|
+
* Encodes the specified DeleteTicketHoldResponse message, length delimited. Does not implicitly {@link DeleteTicketHoldResponse.verify|verify} messages.
|
|
112022
|
+
* @function encodeDelimited
|
|
112023
|
+
* @memberof DeleteTicketHoldResponse
|
|
112024
|
+
* @static
|
|
112025
|
+
* @param {IDeleteTicketHoldResponse} message DeleteTicketHoldResponse message or plain object to encode
|
|
112026
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
112027
|
+
* @returns {$protobuf.Writer} Writer
|
|
112028
|
+
*/
|
|
112029
|
+
DeleteTicketHoldResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
112030
|
+
return this.encode(message, writer).ldelim();
|
|
112031
|
+
};
|
|
112032
|
+
|
|
112033
|
+
/**
|
|
112034
|
+
* Decodes a DeleteTicketHoldResponse message from the specified reader or buffer.
|
|
112035
|
+
* @function decode
|
|
112036
|
+
* @memberof DeleteTicketHoldResponse
|
|
112037
|
+
* @static
|
|
112038
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
112039
|
+
* @param {number} [length] Message length if known beforehand
|
|
112040
|
+
* @returns {DeleteTicketHoldResponse} DeleteTicketHoldResponse
|
|
112041
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
112042
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
112043
|
+
*/
|
|
112044
|
+
DeleteTicketHoldResponse.decode = function decode(reader, length) {
|
|
112045
|
+
if (!(reader instanceof $Reader))
|
|
112046
|
+
reader = $Reader.create(reader);
|
|
112047
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DeleteTicketHoldResponse();
|
|
112048
|
+
while (reader.pos < end) {
|
|
112049
|
+
var tag = reader.uint32();
|
|
112050
|
+
switch (tag >>> 3) {
|
|
112051
|
+
case 0:
|
|
112052
|
+
message.status = reader.int32();
|
|
112053
|
+
break;
|
|
112054
|
+
case 1:
|
|
112055
|
+
if (!(message.errors && message.errors.length))
|
|
112056
|
+
message.errors = [];
|
|
112057
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
112058
|
+
break;
|
|
112059
|
+
case 2:
|
|
112060
|
+
message.event = $root.Event.decode(reader, reader.uint32());
|
|
112061
|
+
break;
|
|
112062
|
+
default:
|
|
112063
|
+
reader.skipType(tag & 7);
|
|
112064
|
+
break;
|
|
112065
|
+
}
|
|
112066
|
+
}
|
|
112067
|
+
return message;
|
|
112068
|
+
};
|
|
112069
|
+
|
|
112070
|
+
/**
|
|
112071
|
+
* Decodes a DeleteTicketHoldResponse message from the specified reader or buffer, length delimited.
|
|
112072
|
+
* @function decodeDelimited
|
|
112073
|
+
* @memberof DeleteTicketHoldResponse
|
|
112074
|
+
* @static
|
|
112075
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
112076
|
+
* @returns {DeleteTicketHoldResponse} DeleteTicketHoldResponse
|
|
112077
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
112078
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
112079
|
+
*/
|
|
112080
|
+
DeleteTicketHoldResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
112081
|
+
if (!(reader instanceof $Reader))
|
|
112082
|
+
reader = new $Reader(reader);
|
|
112083
|
+
return this.decode(reader, reader.uint32());
|
|
112084
|
+
};
|
|
112085
|
+
|
|
112086
|
+
/**
|
|
112087
|
+
* Verifies a DeleteTicketHoldResponse message.
|
|
112088
|
+
* @function verify
|
|
112089
|
+
* @memberof DeleteTicketHoldResponse
|
|
112090
|
+
* @static
|
|
112091
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
112092
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
112093
|
+
*/
|
|
112094
|
+
DeleteTicketHoldResponse.verify = function verify(message) {
|
|
112095
|
+
if (typeof message !== "object" || message === null)
|
|
112096
|
+
return "object expected";
|
|
112097
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
112098
|
+
switch (message.status) {
|
|
112099
|
+
default:
|
|
112100
|
+
return "status: enum value expected";
|
|
112101
|
+
case 0:
|
|
112102
|
+
case 200:
|
|
112103
|
+
case 400:
|
|
112104
|
+
case 401:
|
|
112105
|
+
case 403:
|
|
112106
|
+
case 422:
|
|
112107
|
+
case 404:
|
|
112108
|
+
case 500:
|
|
112109
|
+
case 504:
|
|
112110
|
+
break;
|
|
112111
|
+
}
|
|
112112
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
112113
|
+
if (!Array.isArray(message.errors))
|
|
112114
|
+
return "errors: array expected";
|
|
112115
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
112116
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
112117
|
+
if (error)
|
|
112118
|
+
return "errors." + error;
|
|
112119
|
+
}
|
|
112120
|
+
}
|
|
112121
|
+
if (message.event != null && message.hasOwnProperty("event")) {
|
|
112122
|
+
var error = $root.Event.verify(message.event);
|
|
112123
|
+
if (error)
|
|
112124
|
+
return "event." + error;
|
|
112125
|
+
}
|
|
112126
|
+
return null;
|
|
112127
|
+
};
|
|
112128
|
+
|
|
112129
|
+
/**
|
|
112130
|
+
* Creates a DeleteTicketHoldResponse message from a plain object. Also converts values to their respective internal types.
|
|
112131
|
+
* @function fromObject
|
|
112132
|
+
* @memberof DeleteTicketHoldResponse
|
|
112133
|
+
* @static
|
|
112134
|
+
* @param {Object.<string,*>} object Plain object
|
|
112135
|
+
* @returns {DeleteTicketHoldResponse} DeleteTicketHoldResponse
|
|
112136
|
+
*/
|
|
112137
|
+
DeleteTicketHoldResponse.fromObject = function fromObject(object) {
|
|
112138
|
+
if (object instanceof $root.DeleteTicketHoldResponse)
|
|
112139
|
+
return object;
|
|
112140
|
+
var message = new $root.DeleteTicketHoldResponse();
|
|
112141
|
+
switch (object.status) {
|
|
112142
|
+
case "UNKNOWN_CODE":
|
|
112143
|
+
case 0:
|
|
112144
|
+
message.status = 0;
|
|
112145
|
+
break;
|
|
112146
|
+
case "OK":
|
|
112147
|
+
case 200:
|
|
112148
|
+
message.status = 200;
|
|
112149
|
+
break;
|
|
112150
|
+
case "BAD_REQUEST":
|
|
112151
|
+
case 400:
|
|
112152
|
+
message.status = 400;
|
|
112153
|
+
break;
|
|
112154
|
+
case "UNAUTHORIZED":
|
|
112155
|
+
case 401:
|
|
112156
|
+
message.status = 401;
|
|
112157
|
+
break;
|
|
112158
|
+
case "FORBIDDEN":
|
|
112159
|
+
case 403:
|
|
112160
|
+
message.status = 403;
|
|
112161
|
+
break;
|
|
112162
|
+
case "UNPROCESSABLE_ENTITY":
|
|
112163
|
+
case 422:
|
|
112164
|
+
message.status = 422;
|
|
112165
|
+
break;
|
|
112166
|
+
case "NOT_FOUND":
|
|
112167
|
+
case 404:
|
|
112168
|
+
message.status = 404;
|
|
112169
|
+
break;
|
|
112170
|
+
case "INTERNAL_SERVER_ERROR":
|
|
112171
|
+
case 500:
|
|
112172
|
+
message.status = 500;
|
|
112173
|
+
break;
|
|
112174
|
+
case "GATEWAY_TIMEOUT":
|
|
112175
|
+
case 504:
|
|
112176
|
+
message.status = 504;
|
|
112177
|
+
break;
|
|
112178
|
+
}
|
|
112179
|
+
if (object.errors) {
|
|
112180
|
+
if (!Array.isArray(object.errors))
|
|
112181
|
+
throw TypeError(".DeleteTicketHoldResponse.errors: array expected");
|
|
112182
|
+
message.errors = [];
|
|
112183
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
112184
|
+
if (typeof object.errors[i] !== "object")
|
|
112185
|
+
throw TypeError(".DeleteTicketHoldResponse.errors: object expected");
|
|
112186
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
112187
|
+
}
|
|
112188
|
+
}
|
|
112189
|
+
if (object.event != null) {
|
|
112190
|
+
if (typeof object.event !== "object")
|
|
112191
|
+
throw TypeError(".DeleteTicketHoldResponse.event: object expected");
|
|
112192
|
+
message.event = $root.Event.fromObject(object.event);
|
|
112193
|
+
}
|
|
112194
|
+
return message;
|
|
112195
|
+
};
|
|
112196
|
+
|
|
112197
|
+
/**
|
|
112198
|
+
* Creates a plain object from a DeleteTicketHoldResponse message. Also converts values to other types if specified.
|
|
112199
|
+
* @function toObject
|
|
112200
|
+
* @memberof DeleteTicketHoldResponse
|
|
112201
|
+
* @static
|
|
112202
|
+
* @param {DeleteTicketHoldResponse} message DeleteTicketHoldResponse
|
|
112203
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
112204
|
+
* @returns {Object.<string,*>} Plain object
|
|
112205
|
+
*/
|
|
112206
|
+
DeleteTicketHoldResponse.toObject = function toObject(message, options) {
|
|
112207
|
+
if (!options)
|
|
112208
|
+
options = {};
|
|
112209
|
+
var object = {};
|
|
112210
|
+
if (options.arrays || options.defaults)
|
|
112211
|
+
object.errors = [];
|
|
112212
|
+
if (options.defaults) {
|
|
112213
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
112214
|
+
object.event = null;
|
|
112215
|
+
}
|
|
112216
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
112217
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
112218
|
+
if (message.errors && message.errors.length) {
|
|
112219
|
+
object.errors = [];
|
|
112220
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
112221
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
112222
|
+
}
|
|
112223
|
+
if (message.event != null && message.hasOwnProperty("event"))
|
|
112224
|
+
object.event = $root.Event.toObject(message.event, options);
|
|
112225
|
+
return object;
|
|
112226
|
+
};
|
|
112227
|
+
|
|
112228
|
+
/**
|
|
112229
|
+
* Converts this DeleteTicketHoldResponse to JSON.
|
|
112230
|
+
* @function toJSON
|
|
112231
|
+
* @memberof DeleteTicketHoldResponse
|
|
112232
|
+
* @instance
|
|
112233
|
+
* @returns {Object.<string,*>} JSON object
|
|
112234
|
+
*/
|
|
112235
|
+
DeleteTicketHoldResponse.prototype.toJSON = function toJSON() {
|
|
112236
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
112237
|
+
};
|
|
112238
|
+
|
|
112239
|
+
return DeleteTicketHoldResponse;
|
|
112240
|
+
})();
|
|
112241
|
+
|
|
110955
112242
|
$root.EventService = (function() {
|
|
110956
112243
|
|
|
110957
112244
|
/**
|
|
@@ -111809,6 +113096,39 @@ $root.EventService = (function() {
|
|
|
111809
113096
|
* @variation 2
|
|
111810
113097
|
*/
|
|
111811
113098
|
|
|
113099
|
+
/**
|
|
113100
|
+
* Callback as used by {@link EventService#deleteTicketHold}.
|
|
113101
|
+
* @memberof EventService
|
|
113102
|
+
* @typedef deleteTicketHoldCallback
|
|
113103
|
+
* @type {function}
|
|
113104
|
+
* @param {Error|null} error Error, if any
|
|
113105
|
+
* @param {DeleteTicketHoldResponse} [response] DeleteTicketHoldResponse
|
|
113106
|
+
*/
|
|
113107
|
+
|
|
113108
|
+
/**
|
|
113109
|
+
* Calls deleteTicketHold.
|
|
113110
|
+
* @function deleteTicketHold
|
|
113111
|
+
* @memberof EventService
|
|
113112
|
+
* @instance
|
|
113113
|
+
* @param {IDeleteTicketHoldRequest} request DeleteTicketHoldRequest message or plain object
|
|
113114
|
+
* @param {EventService.deleteTicketHoldCallback} callback Node-style callback called with the error, if any, and DeleteTicketHoldResponse
|
|
113115
|
+
* @returns {undefined}
|
|
113116
|
+
* @variation 1
|
|
113117
|
+
*/
|
|
113118
|
+
Object.defineProperty(EventService.prototype.deleteTicketHold = function deleteTicketHold(request, callback) {
|
|
113119
|
+
return this.rpcCall(deleteTicketHold, $root.DeleteTicketHoldRequest, $root.DeleteTicketHoldResponse, request, callback);
|
|
113120
|
+
}, "name", { value: "deleteTicketHold" });
|
|
113121
|
+
|
|
113122
|
+
/**
|
|
113123
|
+
* Calls deleteTicketHold.
|
|
113124
|
+
* @function deleteTicketHold
|
|
113125
|
+
* @memberof EventService
|
|
113126
|
+
* @instance
|
|
113127
|
+
* @param {IDeleteTicketHoldRequest} request DeleteTicketHoldRequest message or plain object
|
|
113128
|
+
* @returns {Promise<DeleteTicketHoldResponse>} Promise
|
|
113129
|
+
* @variation 2
|
|
113130
|
+
*/
|
|
113131
|
+
|
|
111812
113132
|
return EventService;
|
|
111813
113133
|
})();
|
|
111814
113134
|
|