@sellout/models 0.0.361 → 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.
@@ -38,6 +38,7 @@ Order.fragments = {
38
38
  scannedAt
39
39
  scannedBy
40
40
  startsAt
41
+ scannerName
41
42
  }
42
43
  parentTicketId
43
44
  }
@@ -66,6 +67,7 @@ Order.fragments = {
66
67
  scannedAt
67
68
  scannedBy
68
69
  startsAt
70
+ scannerName
69
71
  }
70
72
  parentUpgradeId
71
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"order.fragment.js","sourceRoot":"","sources":["../../../src/graphql/fragments/order.fragment.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAYrC,MAAM,KAAK,GAAkB;IAC3B,SAAS,EAAE;QACT,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;KACf;CACF,CAAC;AAEF,kBAAe,KAAK,CAAC;AAErB,KAAK,CAAC,SAAS,GAAG;IAChB,OAAO,EAAE,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCX;IACD,QAAQ,EAAE,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BZ;IACD,UAAU,EAAE,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;GAqBd;CACF,CAAC"}
1
+ {"version":3,"file":"order.fragment.js","sourceRoot":"","sources":["../../../src/graphql/fragments/order.fragment.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAYrC,MAAM,KAAK,GAAkB;IAC3B,SAAS,EAAE;QACT,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;KACf;CACF,CAAC;AAEF,kBAAe,KAAK,CAAC;AAErB,KAAK,CAAC,SAAS,GAAG;IAChB,OAAO,EAAE,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCX;IACD,QAAQ,EAAE,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BZ;IACD,UAAU,EAAE,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;GAqBd;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const mutation: import("@apollo/client").DocumentNode;
2
+ export default mutation;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const client_1 = require("@apollo/client");
4
+ const mutation = (0, client_1.gql) `
5
+ mutation generateEventQRCode($eventId: String) {
6
+ generateEventQRCode(eventId: $eventId)
7
+ }
8
+ `;
9
+ exports.default = mutation;
10
+ //# sourceMappingURL=generateEventQRCode.mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateEventQRCode.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/generateEventQRCode.mutation.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAErC,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -2,12 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const client_1 = require("@apollo/client");
4
4
  const mutation = (0, client_1.gql) `
5
- mutation updateUserInfo($_id: String, $email: String, $phoneNumber: String, $preferredLogin: String) {
6
- updateUserInfo(_id: $_id, email: $email, phoneNumber: $phoneNumber,preferredLogin: $preferredLogin) {
5
+ mutation updateUserInfo($_id: String, $email: String, $phoneNumber: String, $preferredLogin: String, $secondaryEmails: [String]) {
6
+ updateUserInfo(_id: $_id, email: $email, phoneNumber: $phoneNumber, preferredLogin: $preferredLogin, secondaryEmails: $secondaryEmails) {
7
7
  _id
8
8
  email
9
9
  phoneNumber
10
10
  preferredLogin
11
+ secondaryEmails
11
12
  }
12
13
  }
13
14
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"updateUserInfo.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateUserInfo.mutation.ts"],"names":[],"mappings":";;AAAA,2CAAmC;AAEnC,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAA;;;;;;;;;CASnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"updateUserInfo.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateUserInfo.mutation.ts"],"names":[],"mappings":";;AAAA,2CAAmC;AAEnC,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;CAUnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const client_1 = require("@apollo/client");
7
7
  const order_fragment_1 = __importDefault(require("../fragments/order.fragment"));
8
8
  const query = (0, client_1.gql) `
9
- query order($orderId: String) {
10
- order(orderId: $orderId) {
9
+ query order($orderId: String, $getScannerName: Boolean) {
10
+ order(orderId: $orderId, getScannerName: $getScannerName) {
11
11
  _id
12
12
  userId
13
13
  printed
@@ -25,6 +25,7 @@ const query = (0, client_1.gql) `
25
25
  phoneNumber
26
26
  preferredLogin
27
27
  promoAvailable
28
+ secondaryEmails
28
29
  __typename
29
30
  }
30
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"userExists.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userExists.query.ts"],"names":[],"mappings":";;AAAA,2CAAmC;AAEnC,MAAM,KAAK,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"userExists.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userExists.query.ts"],"names":[],"mappings":";;AAAA,2CAAmC;AAEnC,MAAM,KAAK,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -3,4 +3,5 @@ export default interface IScan {
3
3
  scannedAt: number;
4
4
  scannedBy: string;
5
5
  startsAt?: number;
6
+ scannerName?: string;
6
7
  }
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.361",
3
+ "version": "0.0.362",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@apollo/client": "^3.9.6",
20
20
  "@hapi/joi": "^17.1.1",
21
- "@sellout/utils": "^0.0.361",
21
+ "@sellout/utils": "^0.0.362",
22
22
  "@types/hapi__joi": "^16.0.1",
23
23
  "@types/shortid": "^0.0.29",
24
24
  "@types/zen-observable": "^0.8.7",
@@ -32,5 +32,5 @@
32
32
  "protobufjs": "^6.11.2",
33
33
  "typescript": "^4.9.5"
34
34
  },
35
- "gitHead": "84bd4e747180837b32f6fc2aad7cd26c4d2cb4fd"
35
+ "gitHead": "cc2a08f93fe7abffd03fd40029169881c11bc31d"
36
36
  }
@@ -49,6 +49,7 @@ Order.fragments = {
49
49
  scannedAt
50
50
  scannedBy
51
51
  startsAt
52
+ scannerName
52
53
  }
53
54
  parentTicketId
54
55
  }
@@ -77,6 +78,7 @@ Order.fragments = {
77
78
  scannedAt
78
79
  scannedBy
79
80
  startsAt
81
+ scannerName
80
82
  }
81
83
  parentUpgradeId
82
84
  }
@@ -0,0 +1,9 @@
1
+ import { gql } from "@apollo/client";
2
+
3
+ const mutation = gql`
4
+ mutation generateEventQRCode($eventId: String) {
5
+ generateEventQRCode(eventId: $eventId)
6
+ }
7
+ `;
8
+
9
+ export default mutation;
@@ -1,12 +1,13 @@
1
1
  import {gql} from "@apollo/client";
2
2
 
3
3
  const mutation = gql`
4
- mutation updateUserInfo($_id: String, $email: String, $phoneNumber: String, $preferredLogin: String) {
5
- updateUserInfo(_id: $_id, email: $email, phoneNumber: $phoneNumber,preferredLogin: $preferredLogin) {
4
+ mutation updateUserInfo($_id: String, $email: String, $phoneNumber: String, $preferredLogin: String, $secondaryEmails: [String]) {
5
+ updateUserInfo(_id: $_id, email: $email, phoneNumber: $phoneNumber, preferredLogin: $preferredLogin, secondaryEmails: $secondaryEmails) {
6
6
  _id
7
7
  email
8
8
  phoneNumber
9
9
  preferredLogin
10
+ secondaryEmails
10
11
  }
11
12
  }
12
13
  `;
@@ -2,8 +2,8 @@ import { gql } from "@apollo/client";
2
2
  import Order from "../fragments/order.fragment";
3
3
 
4
4
  const query = gql`
5
- query order($orderId: String) {
6
- order(orderId: $orderId) {
5
+ query order($orderId: String, $getScannerName: Boolean) {
6
+ order(orderId: $orderId, getScannerName: $getScannerName) {
7
7
  _id
8
8
  userId
9
9
  printed
@@ -24,6 +24,7 @@ const query = gql`
24
24
  phoneNumber
25
25
  preferredLogin
26
26
  promoAvailable
27
+ secondaryEmails
27
28
  __typename
28
29
  }
29
30
  }
@@ -3,4 +3,5 @@ export default interface IScan {
3
3
  scannedAt: number;
4
4
  scannedBy: string;
5
5
  startsAt?: number;
6
+ scannerName?: string;
6
7
  }
@@ -146,6 +146,7 @@ message Scan {
146
146
  int32 scannedAt = 1;
147
147
  string scannedBy = 2;
148
148
  int32 startsAt = 3;
149
+ string scannerName = 4;
149
150
  }
150
151
 
151
152
  message Refund {
@@ -613,6 +614,7 @@ message FindOrderByIdRequest {
613
614
  string orgId = 2;
614
615
  bool isAppTicketScan = 3;
615
616
  string eventId = 4;
617
+ bool getScannerName = 5;
616
618
  }
617
619
 
618
620
  message FindOrderByEventIdRequest{
@@ -91,6 +91,7 @@ message UserProfileQuery {
91
91
  bool any = 7;
92
92
  string orgId = 8;
93
93
  string screenType = 9;
94
+ repeated string emails = 10;
94
95
  }
95
96
 
96
97
  message QueryUserProfilesRequest {
@@ -243,6 +243,7 @@ message UpdateSecondaryEmailRequest {
243
243
  string spanContext = 1;
244
244
  string email = 2;
245
245
  string userId = 3;
246
+ string oldEmail = 4;
246
247
  }
247
248
 
248
249
  message UpdateSecondaryEmailResponse {
@@ -299,6 +300,7 @@ message UpdateUserInfoRequest {
299
300
  string email = 3;
300
301
  string phoneNumber = 4;
301
302
  string preferredLogin = 5;
303
+ repeated string secondaryEmails = 6;
302
304
  }
303
305
 
304
306
  message UpdateUserInfoResponse {
@@ -429,6 +431,17 @@ message SuperAdminDeleteUserResponse {
429
431
  bool deleted = 3;
430
432
  }
431
433
 
434
+ message GetUserBySecondaryEmailRequest {
435
+ string spanContext = 0;
436
+ string email = 1;
437
+ }
438
+
439
+ message GetUserBySecondaryEmailResponse {
440
+ StatusCode status = 0;
441
+ repeated Error errors = 1;
442
+ repeated string email = 2;
443
+ }
444
+
432
445
  service UserService {
433
446
  // Create
434
447
  rpc createUser(CreateUserRequest) returns (CreateUserResponse) {}
@@ -449,6 +462,7 @@ service UserService {
449
462
  // Find
450
463
  rpc findUserById(FindUserByIdRequest) returns (FindUserByIdResponse) {}
451
464
  rpc findUserByEmail(FindUserByEmailRequest) returns (FindUserByEmailResponse) {}
465
+ rpc getUserBySecondaryEmail(GetUserBySecondaryEmailRequest) returns (GetUserBySecondaryEmailResponse) {}
452
466
  // Update
453
467
  rpc updateBasicUserInfo(UpdateBasicUserInfoRequest) returns (UpdateBasicUserInfoResponse) {}
454
468
  rpc updateUserInfo(UpdateUserInfoRequest) returns (UpdateUserInfoResponse) {}