@sellout/models 0.0.356 → 0.0.358

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.
@@ -2,11 +2,12 @@
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) {
6
- updateUserInfo(_id: $_id, email: $email, phoneNumber: $phoneNumber) {
5
+ mutation updateUserInfo($_id: String, $email: String, $phoneNumber: String, $preferredLogin: String) {
6
+ updateUserInfo(_id: $_id, email: $email, phoneNumber: $phoneNumber,preferredLogin: $preferredLogin) {
7
7
  _id
8
8
  email
9
9
  phoneNumber
10
+ preferredLogin
10
11
  }
11
12
  }
12
13
  `;
@@ -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;;;;;;;;CAQnB,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;;;;;;;;;CASnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -56596,6 +56596,7 @@ $root.UpdateUserInfoRequest = (function() {
56596
56596
  * @property {string|null} [_id] UpdateUserInfoRequest _id
56597
56597
  * @property {string|null} [email] UpdateUserInfoRequest email
56598
56598
  * @property {string|null} [phoneNumber] UpdateUserInfoRequest phoneNumber
56599
+ * @property {string|null} [preferredLogin] UpdateUserInfoRequest preferredLogin
56599
56600
  */
56600
56601
 
56601
56602
  /**
@@ -56645,6 +56646,14 @@ $root.UpdateUserInfoRequest = (function() {
56645
56646
  */
56646
56647
  UpdateUserInfoRequest.prototype.phoneNumber = "";
56647
56648
 
56649
+ /**
56650
+ * UpdateUserInfoRequest preferredLogin.
56651
+ * @member {string} preferredLogin
56652
+ * @memberof UpdateUserInfoRequest
56653
+ * @instance
56654
+ */
56655
+ UpdateUserInfoRequest.prototype.preferredLogin = "";
56656
+
56648
56657
  /**
56649
56658
  * Creates a new UpdateUserInfoRequest instance using the specified properties.
56650
56659
  * @function create
@@ -56677,6 +56686,8 @@ $root.UpdateUserInfoRequest = (function() {
56677
56686
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
56678
56687
  if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber"))
56679
56688
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.phoneNumber);
56689
+ if (message.preferredLogin != null && Object.hasOwnProperty.call(message, "preferredLogin"))
56690
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.preferredLogin);
56680
56691
  return writer;
56681
56692
  };
56682
56693
 
@@ -56723,6 +56734,9 @@ $root.UpdateUserInfoRequest = (function() {
56723
56734
  case 4:
56724
56735
  message.phoneNumber = reader.string();
56725
56736
  break;
56737
+ case 5:
56738
+ message.preferredLogin = reader.string();
56739
+ break;
56726
56740
  default:
56727
56741
  reader.skipType(tag & 7);
56728
56742
  break;
@@ -56770,6 +56784,9 @@ $root.UpdateUserInfoRequest = (function() {
56770
56784
  if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
56771
56785
  if (!$util.isString(message.phoneNumber))
56772
56786
  return "phoneNumber: string expected";
56787
+ if (message.preferredLogin != null && message.hasOwnProperty("preferredLogin"))
56788
+ if (!$util.isString(message.preferredLogin))
56789
+ return "preferredLogin: string expected";
56773
56790
  return null;
56774
56791
  };
56775
56792
 
@@ -56793,6 +56810,8 @@ $root.UpdateUserInfoRequest = (function() {
56793
56810
  message.email = String(object.email);
56794
56811
  if (object.phoneNumber != null)
56795
56812
  message.phoneNumber = String(object.phoneNumber);
56813
+ if (object.preferredLogin != null)
56814
+ message.preferredLogin = String(object.preferredLogin);
56796
56815
  return message;
56797
56816
  };
56798
56817
 
@@ -56814,6 +56833,7 @@ $root.UpdateUserInfoRequest = (function() {
56814
56833
  object._id = "";
56815
56834
  object.email = "";
56816
56835
  object.phoneNumber = "";
56836
+ object.preferredLogin = "";
56817
56837
  }
56818
56838
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
56819
56839
  object.spanContext = message.spanContext;
@@ -56823,6 +56843,8 @@ $root.UpdateUserInfoRequest = (function() {
56823
56843
  object.email = message.email;
56824
56844
  if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
56825
56845
  object.phoneNumber = message.phoneNumber;
56846
+ if (message.preferredLogin != null && message.hasOwnProperty("preferredLogin"))
56847
+ object.preferredLogin = message.preferredLogin;
56826
56848
  return object;
56827
56849
  };
56828
56850
 
@@ -85482,6 +85504,557 @@ $root.emailTicketHolderRequest = (function() {
85482
85504
  return emailTicketHolderRequest;
85483
85505
  })();
85484
85506
 
85507
+ $root.orderExportIssueEmailRequest = (function() {
85508
+
85509
+ /**
85510
+ * Properties of an orderExportIssueEmailRequest.
85511
+ * @exports IorderExportIssueEmailRequest
85512
+ * @interface IorderExportIssueEmailRequest
85513
+ * @property {string|null} [eventName] orderExportIssueEmailRequest eventName
85514
+ * @property {string|null} [toAddress] orderExportIssueEmailRequest toAddress
85515
+ * @property {string|null} [orgName] orderExportIssueEmailRequest orgName
85516
+ * @property {Array.<string>|null} [cc] orderExportIssueEmailRequest cc
85517
+ * @property {Array.<string>|null} [dayIds] orderExportIssueEmailRequest dayIds
85518
+ * @property {string|null} [timezone] orderExportIssueEmailRequest timezone
85519
+ * @property {string|null} [eventSubtitle] orderExportIssueEmailRequest eventSubtitle
85520
+ * @property {string|null} [cityState] orderExportIssueEmailRequest cityState
85521
+ * @property {string|null} [venueName] orderExportIssueEmailRequest venueName
85522
+ * @property {string|null} [eventDate] orderExportIssueEmailRequest eventDate
85523
+ * @property {string|null} [eventPosterImageUrl] orderExportIssueEmailRequest eventPosterImageUrl
85524
+ * @property {string|null} [orgLogoUrl] orderExportIssueEmailRequest orgLogoUrl
85525
+ * @property {string|null} [doorsAt] orderExportIssueEmailRequest doorsAt
85526
+ * @property {string|null} [showAt] orderExportIssueEmailRequest showAt
85527
+ * @property {Array.<IdayIdsTimeObj>|null} [dayIdsTime] orderExportIssueEmailRequest dayIdsTime
85528
+ */
85529
+
85530
+ /**
85531
+ * Constructs a new orderExportIssueEmailRequest.
85532
+ * @exports orderExportIssueEmailRequest
85533
+ * @classdesc Represents an orderExportIssueEmailRequest.
85534
+ * @implements IorderExportIssueEmailRequest
85535
+ * @constructor
85536
+ * @param {IorderExportIssueEmailRequest=} [properties] Properties to set
85537
+ */
85538
+ function orderExportIssueEmailRequest(properties) {
85539
+ this.cc = [];
85540
+ this.dayIds = [];
85541
+ this.dayIdsTime = [];
85542
+ if (properties)
85543
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
85544
+ if (properties[keys[i]] != null)
85545
+ this[keys[i]] = properties[keys[i]];
85546
+ }
85547
+
85548
+ /**
85549
+ * orderExportIssueEmailRequest eventName.
85550
+ * @member {string} eventName
85551
+ * @memberof orderExportIssueEmailRequest
85552
+ * @instance
85553
+ */
85554
+ orderExportIssueEmailRequest.prototype.eventName = "";
85555
+
85556
+ /**
85557
+ * orderExportIssueEmailRequest toAddress.
85558
+ * @member {string} toAddress
85559
+ * @memberof orderExportIssueEmailRequest
85560
+ * @instance
85561
+ */
85562
+ orderExportIssueEmailRequest.prototype.toAddress = "";
85563
+
85564
+ /**
85565
+ * orderExportIssueEmailRequest orgName.
85566
+ * @member {string} orgName
85567
+ * @memberof orderExportIssueEmailRequest
85568
+ * @instance
85569
+ */
85570
+ orderExportIssueEmailRequest.prototype.orgName = "";
85571
+
85572
+ /**
85573
+ * orderExportIssueEmailRequest cc.
85574
+ * @member {Array.<string>} cc
85575
+ * @memberof orderExportIssueEmailRequest
85576
+ * @instance
85577
+ */
85578
+ orderExportIssueEmailRequest.prototype.cc = $util.emptyArray;
85579
+
85580
+ /**
85581
+ * orderExportIssueEmailRequest dayIds.
85582
+ * @member {Array.<string>} dayIds
85583
+ * @memberof orderExportIssueEmailRequest
85584
+ * @instance
85585
+ */
85586
+ orderExportIssueEmailRequest.prototype.dayIds = $util.emptyArray;
85587
+
85588
+ /**
85589
+ * orderExportIssueEmailRequest timezone.
85590
+ * @member {string} timezone
85591
+ * @memberof orderExportIssueEmailRequest
85592
+ * @instance
85593
+ */
85594
+ orderExportIssueEmailRequest.prototype.timezone = "";
85595
+
85596
+ /**
85597
+ * orderExportIssueEmailRequest eventSubtitle.
85598
+ * @member {string} eventSubtitle
85599
+ * @memberof orderExportIssueEmailRequest
85600
+ * @instance
85601
+ */
85602
+ orderExportIssueEmailRequest.prototype.eventSubtitle = "";
85603
+
85604
+ /**
85605
+ * orderExportIssueEmailRequest cityState.
85606
+ * @member {string} cityState
85607
+ * @memberof orderExportIssueEmailRequest
85608
+ * @instance
85609
+ */
85610
+ orderExportIssueEmailRequest.prototype.cityState = "";
85611
+
85612
+ /**
85613
+ * orderExportIssueEmailRequest venueName.
85614
+ * @member {string} venueName
85615
+ * @memberof orderExportIssueEmailRequest
85616
+ * @instance
85617
+ */
85618
+ orderExportIssueEmailRequest.prototype.venueName = "";
85619
+
85620
+ /**
85621
+ * orderExportIssueEmailRequest eventDate.
85622
+ * @member {string} eventDate
85623
+ * @memberof orderExportIssueEmailRequest
85624
+ * @instance
85625
+ */
85626
+ orderExportIssueEmailRequest.prototype.eventDate = "";
85627
+
85628
+ /**
85629
+ * orderExportIssueEmailRequest eventPosterImageUrl.
85630
+ * @member {string} eventPosterImageUrl
85631
+ * @memberof orderExportIssueEmailRequest
85632
+ * @instance
85633
+ */
85634
+ orderExportIssueEmailRequest.prototype.eventPosterImageUrl = "";
85635
+
85636
+ /**
85637
+ * orderExportIssueEmailRequest orgLogoUrl.
85638
+ * @member {string} orgLogoUrl
85639
+ * @memberof orderExportIssueEmailRequest
85640
+ * @instance
85641
+ */
85642
+ orderExportIssueEmailRequest.prototype.orgLogoUrl = "";
85643
+
85644
+ /**
85645
+ * orderExportIssueEmailRequest doorsAt.
85646
+ * @member {string} doorsAt
85647
+ * @memberof orderExportIssueEmailRequest
85648
+ * @instance
85649
+ */
85650
+ orderExportIssueEmailRequest.prototype.doorsAt = "";
85651
+
85652
+ /**
85653
+ * orderExportIssueEmailRequest showAt.
85654
+ * @member {string} showAt
85655
+ * @memberof orderExportIssueEmailRequest
85656
+ * @instance
85657
+ */
85658
+ orderExportIssueEmailRequest.prototype.showAt = "";
85659
+
85660
+ /**
85661
+ * orderExportIssueEmailRequest dayIdsTime.
85662
+ * @member {Array.<IdayIdsTimeObj>} dayIdsTime
85663
+ * @memberof orderExportIssueEmailRequest
85664
+ * @instance
85665
+ */
85666
+ orderExportIssueEmailRequest.prototype.dayIdsTime = $util.emptyArray;
85667
+
85668
+ /**
85669
+ * Creates a new orderExportIssueEmailRequest instance using the specified properties.
85670
+ * @function create
85671
+ * @memberof orderExportIssueEmailRequest
85672
+ * @static
85673
+ * @param {IorderExportIssueEmailRequest=} [properties] Properties to set
85674
+ * @returns {orderExportIssueEmailRequest} orderExportIssueEmailRequest instance
85675
+ */
85676
+ orderExportIssueEmailRequest.create = function create(properties) {
85677
+ return new orderExportIssueEmailRequest(properties);
85678
+ };
85679
+
85680
+ /**
85681
+ * Encodes the specified orderExportIssueEmailRequest message. Does not implicitly {@link orderExportIssueEmailRequest.verify|verify} messages.
85682
+ * @function encode
85683
+ * @memberof orderExportIssueEmailRequest
85684
+ * @static
85685
+ * @param {IorderExportIssueEmailRequest} message orderExportIssueEmailRequest message or plain object to encode
85686
+ * @param {$protobuf.Writer} [writer] Writer to encode to
85687
+ * @returns {$protobuf.Writer} Writer
85688
+ */
85689
+ orderExportIssueEmailRequest.encode = function encode(message, writer) {
85690
+ if (!writer)
85691
+ writer = $Writer.create();
85692
+ if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName"))
85693
+ writer.uint32(/* id 0, wireType 2 =*/2).string(message.eventName);
85694
+ if (message.toAddress != null && Object.hasOwnProperty.call(message, "toAddress"))
85695
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.toAddress);
85696
+ if (message.orgName != null && Object.hasOwnProperty.call(message, "orgName"))
85697
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgName);
85698
+ if (message.cc != null && message.cc.length)
85699
+ for (var i = 0; i < message.cc.length; ++i)
85700
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.cc[i]);
85701
+ if (message.dayIds != null && message.dayIds.length)
85702
+ for (var i = 0; i < message.dayIds.length; ++i)
85703
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.dayIds[i]);
85704
+ if (message.timezone != null && Object.hasOwnProperty.call(message, "timezone"))
85705
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.timezone);
85706
+ if (message.eventSubtitle != null && Object.hasOwnProperty.call(message, "eventSubtitle"))
85707
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.eventSubtitle);
85708
+ if (message.cityState != null && Object.hasOwnProperty.call(message, "cityState"))
85709
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.cityState);
85710
+ if (message.venueName != null && Object.hasOwnProperty.call(message, "venueName"))
85711
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.venueName);
85712
+ if (message.eventDate != null && Object.hasOwnProperty.call(message, "eventDate"))
85713
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.eventDate);
85714
+ if (message.eventPosterImageUrl != null && Object.hasOwnProperty.call(message, "eventPosterImageUrl"))
85715
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.eventPosterImageUrl);
85716
+ if (message.orgLogoUrl != null && Object.hasOwnProperty.call(message, "orgLogoUrl"))
85717
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.orgLogoUrl);
85718
+ if (message.doorsAt != null && Object.hasOwnProperty.call(message, "doorsAt"))
85719
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.doorsAt);
85720
+ if (message.showAt != null && Object.hasOwnProperty.call(message, "showAt"))
85721
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.showAt);
85722
+ if (message.dayIdsTime != null && message.dayIdsTime.length)
85723
+ for (var i = 0; i < message.dayIdsTime.length; ++i)
85724
+ $root.dayIdsTimeObj.encode(message.dayIdsTime[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
85725
+ return writer;
85726
+ };
85727
+
85728
+ /**
85729
+ * Encodes the specified orderExportIssueEmailRequest message, length delimited. Does not implicitly {@link orderExportIssueEmailRequest.verify|verify} messages.
85730
+ * @function encodeDelimited
85731
+ * @memberof orderExportIssueEmailRequest
85732
+ * @static
85733
+ * @param {IorderExportIssueEmailRequest} message orderExportIssueEmailRequest message or plain object to encode
85734
+ * @param {$protobuf.Writer} [writer] Writer to encode to
85735
+ * @returns {$protobuf.Writer} Writer
85736
+ */
85737
+ orderExportIssueEmailRequest.encodeDelimited = function encodeDelimited(message, writer) {
85738
+ return this.encode(message, writer).ldelim();
85739
+ };
85740
+
85741
+ /**
85742
+ * Decodes an orderExportIssueEmailRequest message from the specified reader or buffer.
85743
+ * @function decode
85744
+ * @memberof orderExportIssueEmailRequest
85745
+ * @static
85746
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
85747
+ * @param {number} [length] Message length if known beforehand
85748
+ * @returns {orderExportIssueEmailRequest} orderExportIssueEmailRequest
85749
+ * @throws {Error} If the payload is not a reader or valid buffer
85750
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
85751
+ */
85752
+ orderExportIssueEmailRequest.decode = function decode(reader, length) {
85753
+ if (!(reader instanceof $Reader))
85754
+ reader = $Reader.create(reader);
85755
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.orderExportIssueEmailRequest();
85756
+ while (reader.pos < end) {
85757
+ var tag = reader.uint32();
85758
+ switch (tag >>> 3) {
85759
+ case 0:
85760
+ message.eventName = reader.string();
85761
+ break;
85762
+ case 1:
85763
+ message.toAddress = reader.string();
85764
+ break;
85765
+ case 2:
85766
+ message.orgName = reader.string();
85767
+ break;
85768
+ case 3:
85769
+ if (!(message.cc && message.cc.length))
85770
+ message.cc = [];
85771
+ message.cc.push(reader.string());
85772
+ break;
85773
+ case 4:
85774
+ if (!(message.dayIds && message.dayIds.length))
85775
+ message.dayIds = [];
85776
+ message.dayIds.push(reader.string());
85777
+ break;
85778
+ case 5:
85779
+ message.timezone = reader.string();
85780
+ break;
85781
+ case 6:
85782
+ message.eventSubtitle = reader.string();
85783
+ break;
85784
+ case 7:
85785
+ message.cityState = reader.string();
85786
+ break;
85787
+ case 8:
85788
+ message.venueName = reader.string();
85789
+ break;
85790
+ case 9:
85791
+ message.eventDate = reader.string();
85792
+ break;
85793
+ case 10:
85794
+ message.eventPosterImageUrl = reader.string();
85795
+ break;
85796
+ case 11:
85797
+ message.orgLogoUrl = reader.string();
85798
+ break;
85799
+ case 12:
85800
+ message.doorsAt = reader.string();
85801
+ break;
85802
+ case 13:
85803
+ message.showAt = reader.string();
85804
+ break;
85805
+ case 14:
85806
+ if (!(message.dayIdsTime && message.dayIdsTime.length))
85807
+ message.dayIdsTime = [];
85808
+ message.dayIdsTime.push($root.dayIdsTimeObj.decode(reader, reader.uint32()));
85809
+ break;
85810
+ default:
85811
+ reader.skipType(tag & 7);
85812
+ break;
85813
+ }
85814
+ }
85815
+ return message;
85816
+ };
85817
+
85818
+ /**
85819
+ * Decodes an orderExportIssueEmailRequest message from the specified reader or buffer, length delimited.
85820
+ * @function decodeDelimited
85821
+ * @memberof orderExportIssueEmailRequest
85822
+ * @static
85823
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
85824
+ * @returns {orderExportIssueEmailRequest} orderExportIssueEmailRequest
85825
+ * @throws {Error} If the payload is not a reader or valid buffer
85826
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
85827
+ */
85828
+ orderExportIssueEmailRequest.decodeDelimited = function decodeDelimited(reader) {
85829
+ if (!(reader instanceof $Reader))
85830
+ reader = new $Reader(reader);
85831
+ return this.decode(reader, reader.uint32());
85832
+ };
85833
+
85834
+ /**
85835
+ * Verifies an orderExportIssueEmailRequest message.
85836
+ * @function verify
85837
+ * @memberof orderExportIssueEmailRequest
85838
+ * @static
85839
+ * @param {Object.<string,*>} message Plain object to verify
85840
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
85841
+ */
85842
+ orderExportIssueEmailRequest.verify = function verify(message) {
85843
+ if (typeof message !== "object" || message === null)
85844
+ return "object expected";
85845
+ if (message.eventName != null && message.hasOwnProperty("eventName"))
85846
+ if (!$util.isString(message.eventName))
85847
+ return "eventName: string expected";
85848
+ if (message.toAddress != null && message.hasOwnProperty("toAddress"))
85849
+ if (!$util.isString(message.toAddress))
85850
+ return "toAddress: string expected";
85851
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
85852
+ if (!$util.isString(message.orgName))
85853
+ return "orgName: string expected";
85854
+ if (message.cc != null && message.hasOwnProperty("cc")) {
85855
+ if (!Array.isArray(message.cc))
85856
+ return "cc: array expected";
85857
+ for (var i = 0; i < message.cc.length; ++i)
85858
+ if (!$util.isString(message.cc[i]))
85859
+ return "cc: string[] expected";
85860
+ }
85861
+ if (message.dayIds != null && message.hasOwnProperty("dayIds")) {
85862
+ if (!Array.isArray(message.dayIds))
85863
+ return "dayIds: array expected";
85864
+ for (var i = 0; i < message.dayIds.length; ++i)
85865
+ if (!$util.isString(message.dayIds[i]))
85866
+ return "dayIds: string[] expected";
85867
+ }
85868
+ if (message.timezone != null && message.hasOwnProperty("timezone"))
85869
+ if (!$util.isString(message.timezone))
85870
+ return "timezone: string expected";
85871
+ if (message.eventSubtitle != null && message.hasOwnProperty("eventSubtitle"))
85872
+ if (!$util.isString(message.eventSubtitle))
85873
+ return "eventSubtitle: string expected";
85874
+ if (message.cityState != null && message.hasOwnProperty("cityState"))
85875
+ if (!$util.isString(message.cityState))
85876
+ return "cityState: string expected";
85877
+ if (message.venueName != null && message.hasOwnProperty("venueName"))
85878
+ if (!$util.isString(message.venueName))
85879
+ return "venueName: string expected";
85880
+ if (message.eventDate != null && message.hasOwnProperty("eventDate"))
85881
+ if (!$util.isString(message.eventDate))
85882
+ return "eventDate: string expected";
85883
+ if (message.eventPosterImageUrl != null && message.hasOwnProperty("eventPosterImageUrl"))
85884
+ if (!$util.isString(message.eventPosterImageUrl))
85885
+ return "eventPosterImageUrl: string expected";
85886
+ if (message.orgLogoUrl != null && message.hasOwnProperty("orgLogoUrl"))
85887
+ if (!$util.isString(message.orgLogoUrl))
85888
+ return "orgLogoUrl: string expected";
85889
+ if (message.doorsAt != null && message.hasOwnProperty("doorsAt"))
85890
+ if (!$util.isString(message.doorsAt))
85891
+ return "doorsAt: string expected";
85892
+ if (message.showAt != null && message.hasOwnProperty("showAt"))
85893
+ if (!$util.isString(message.showAt))
85894
+ return "showAt: string expected";
85895
+ if (message.dayIdsTime != null && message.hasOwnProperty("dayIdsTime")) {
85896
+ if (!Array.isArray(message.dayIdsTime))
85897
+ return "dayIdsTime: array expected";
85898
+ for (var i = 0; i < message.dayIdsTime.length; ++i) {
85899
+ var error = $root.dayIdsTimeObj.verify(message.dayIdsTime[i]);
85900
+ if (error)
85901
+ return "dayIdsTime." + error;
85902
+ }
85903
+ }
85904
+ return null;
85905
+ };
85906
+
85907
+ /**
85908
+ * Creates an orderExportIssueEmailRequest message from a plain object. Also converts values to their respective internal types.
85909
+ * @function fromObject
85910
+ * @memberof orderExportIssueEmailRequest
85911
+ * @static
85912
+ * @param {Object.<string,*>} object Plain object
85913
+ * @returns {orderExportIssueEmailRequest} orderExportIssueEmailRequest
85914
+ */
85915
+ orderExportIssueEmailRequest.fromObject = function fromObject(object) {
85916
+ if (object instanceof $root.orderExportIssueEmailRequest)
85917
+ return object;
85918
+ var message = new $root.orderExportIssueEmailRequest();
85919
+ if (object.eventName != null)
85920
+ message.eventName = String(object.eventName);
85921
+ if (object.toAddress != null)
85922
+ message.toAddress = String(object.toAddress);
85923
+ if (object.orgName != null)
85924
+ message.orgName = String(object.orgName);
85925
+ if (object.cc) {
85926
+ if (!Array.isArray(object.cc))
85927
+ throw TypeError(".orderExportIssueEmailRequest.cc: array expected");
85928
+ message.cc = [];
85929
+ for (var i = 0; i < object.cc.length; ++i)
85930
+ message.cc[i] = String(object.cc[i]);
85931
+ }
85932
+ if (object.dayIds) {
85933
+ if (!Array.isArray(object.dayIds))
85934
+ throw TypeError(".orderExportIssueEmailRequest.dayIds: array expected");
85935
+ message.dayIds = [];
85936
+ for (var i = 0; i < object.dayIds.length; ++i)
85937
+ message.dayIds[i] = String(object.dayIds[i]);
85938
+ }
85939
+ if (object.timezone != null)
85940
+ message.timezone = String(object.timezone);
85941
+ if (object.eventSubtitle != null)
85942
+ message.eventSubtitle = String(object.eventSubtitle);
85943
+ if (object.cityState != null)
85944
+ message.cityState = String(object.cityState);
85945
+ if (object.venueName != null)
85946
+ message.venueName = String(object.venueName);
85947
+ if (object.eventDate != null)
85948
+ message.eventDate = String(object.eventDate);
85949
+ if (object.eventPosterImageUrl != null)
85950
+ message.eventPosterImageUrl = String(object.eventPosterImageUrl);
85951
+ if (object.orgLogoUrl != null)
85952
+ message.orgLogoUrl = String(object.orgLogoUrl);
85953
+ if (object.doorsAt != null)
85954
+ message.doorsAt = String(object.doorsAt);
85955
+ if (object.showAt != null)
85956
+ message.showAt = String(object.showAt);
85957
+ if (object.dayIdsTime) {
85958
+ if (!Array.isArray(object.dayIdsTime))
85959
+ throw TypeError(".orderExportIssueEmailRequest.dayIdsTime: array expected");
85960
+ message.dayIdsTime = [];
85961
+ for (var i = 0; i < object.dayIdsTime.length; ++i) {
85962
+ if (typeof object.dayIdsTime[i] !== "object")
85963
+ throw TypeError(".orderExportIssueEmailRequest.dayIdsTime: object expected");
85964
+ message.dayIdsTime[i] = $root.dayIdsTimeObj.fromObject(object.dayIdsTime[i]);
85965
+ }
85966
+ }
85967
+ return message;
85968
+ };
85969
+
85970
+ /**
85971
+ * Creates a plain object from an orderExportIssueEmailRequest message. Also converts values to other types if specified.
85972
+ * @function toObject
85973
+ * @memberof orderExportIssueEmailRequest
85974
+ * @static
85975
+ * @param {orderExportIssueEmailRequest} message orderExportIssueEmailRequest
85976
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
85977
+ * @returns {Object.<string,*>} Plain object
85978
+ */
85979
+ orderExportIssueEmailRequest.toObject = function toObject(message, options) {
85980
+ if (!options)
85981
+ options = {};
85982
+ var object = {};
85983
+ if (options.arrays || options.defaults) {
85984
+ object.cc = [];
85985
+ object.dayIds = [];
85986
+ object.dayIdsTime = [];
85987
+ }
85988
+ if (options.defaults) {
85989
+ object.eventName = "";
85990
+ object.toAddress = "";
85991
+ object.orgName = "";
85992
+ object.timezone = "";
85993
+ object.eventSubtitle = "";
85994
+ object.cityState = "";
85995
+ object.venueName = "";
85996
+ object.eventDate = "";
85997
+ object.eventPosterImageUrl = "";
85998
+ object.orgLogoUrl = "";
85999
+ object.doorsAt = "";
86000
+ object.showAt = "";
86001
+ }
86002
+ if (message.eventName != null && message.hasOwnProperty("eventName"))
86003
+ object.eventName = message.eventName;
86004
+ if (message.toAddress != null && message.hasOwnProperty("toAddress"))
86005
+ object.toAddress = message.toAddress;
86006
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
86007
+ object.orgName = message.orgName;
86008
+ if (message.cc && message.cc.length) {
86009
+ object.cc = [];
86010
+ for (var j = 0; j < message.cc.length; ++j)
86011
+ object.cc[j] = message.cc[j];
86012
+ }
86013
+ if (message.dayIds && message.dayIds.length) {
86014
+ object.dayIds = [];
86015
+ for (var j = 0; j < message.dayIds.length; ++j)
86016
+ object.dayIds[j] = message.dayIds[j];
86017
+ }
86018
+ if (message.timezone != null && message.hasOwnProperty("timezone"))
86019
+ object.timezone = message.timezone;
86020
+ if (message.eventSubtitle != null && message.hasOwnProperty("eventSubtitle"))
86021
+ object.eventSubtitle = message.eventSubtitle;
86022
+ if (message.cityState != null && message.hasOwnProperty("cityState"))
86023
+ object.cityState = message.cityState;
86024
+ if (message.venueName != null && message.hasOwnProperty("venueName"))
86025
+ object.venueName = message.venueName;
86026
+ if (message.eventDate != null && message.hasOwnProperty("eventDate"))
86027
+ object.eventDate = message.eventDate;
86028
+ if (message.eventPosterImageUrl != null && message.hasOwnProperty("eventPosterImageUrl"))
86029
+ object.eventPosterImageUrl = message.eventPosterImageUrl;
86030
+ if (message.orgLogoUrl != null && message.hasOwnProperty("orgLogoUrl"))
86031
+ object.orgLogoUrl = message.orgLogoUrl;
86032
+ if (message.doorsAt != null && message.hasOwnProperty("doorsAt"))
86033
+ object.doorsAt = message.doorsAt;
86034
+ if (message.showAt != null && message.hasOwnProperty("showAt"))
86035
+ object.showAt = message.showAt;
86036
+ if (message.dayIdsTime && message.dayIdsTime.length) {
86037
+ object.dayIdsTime = [];
86038
+ for (var j = 0; j < message.dayIdsTime.length; ++j)
86039
+ object.dayIdsTime[j] = $root.dayIdsTimeObj.toObject(message.dayIdsTime[j], options);
86040
+ }
86041
+ return object;
86042
+ };
86043
+
86044
+ /**
86045
+ * Converts this orderExportIssueEmailRequest to JSON.
86046
+ * @function toJSON
86047
+ * @memberof orderExportIssueEmailRequest
86048
+ * @instance
86049
+ * @returns {Object.<string,*>} JSON object
86050
+ */
86051
+ orderExportIssueEmailRequest.prototype.toJSON = function toJSON() {
86052
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
86053
+ };
86054
+
86055
+ return orderExportIssueEmailRequest;
86056
+ })();
86057
+
85485
86058
  $root.EmailService = (function() {
85486
86059
 
85487
86060
  /**
@@ -86141,6 +86714,39 @@ $root.EmailService = (function() {
86141
86714
  * @variation 2
86142
86715
  */
86143
86716
 
86717
+ /**
86718
+ * Callback as used by {@link EmailService#orderExportIssueEmail}.
86719
+ * @memberof EmailService
86720
+ * @typedef orderExportIssueEmailCallback
86721
+ * @type {function}
86722
+ * @param {Error|null} error Error, if any
86723
+ * @param {google.protobuf.Empty} [response] Empty
86724
+ */
86725
+
86726
+ /**
86727
+ * Calls orderExportIssueEmail.
86728
+ * @function orderExportIssueEmail
86729
+ * @memberof EmailService
86730
+ * @instance
86731
+ * @param {IorderExportIssueEmailRequest} request orderExportIssueEmailRequest message or plain object
86732
+ * @param {EmailService.orderExportIssueEmailCallback} callback Node-style callback called with the error, if any, and Empty
86733
+ * @returns {undefined}
86734
+ * @variation 1
86735
+ */
86736
+ Object.defineProperty(EmailService.prototype.orderExportIssueEmail = function orderExportIssueEmail(request, callback) {
86737
+ return this.rpcCall(orderExportIssueEmail, $root.orderExportIssueEmailRequest, $root.google.protobuf.Empty, request, callback);
86738
+ }, "name", { value: "orderExportIssueEmail" });
86739
+
86740
+ /**
86741
+ * Calls orderExportIssueEmail.
86742
+ * @function orderExportIssueEmail
86743
+ * @memberof EmailService
86744
+ * @instance
86745
+ * @param {IorderExportIssueEmailRequest} request orderExportIssueEmailRequest message or plain object
86746
+ * @returns {Promise<google.protobuf.Empty>} Promise
86747
+ * @variation 2
86748
+ */
86749
+
86144
86750
  return EmailService;
86145
86751
  })();
86146
86752
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.356",
3
+ "version": "0.0.358",
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.356",
21
+ "@sellout/utils": "^0.0.358",
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": "530fb8a8d802220236951fea7ed301d7ba4d8578"
35
+ "gitHead": "5dd5efbda2cf659c0c9c3a34a2e1f58dbd531140"
36
36
  }
@@ -1,11 +1,12 @@
1
1
  import {gql} from "@apollo/client";
2
2
 
3
3
  const mutation = gql`
4
- mutation updateUserInfo($_id: String, $email: String, $phoneNumber: String) {
5
- updateUserInfo(_id: $_id, email: $email, phoneNumber: $phoneNumber) {
4
+ mutation updateUserInfo($_id: String, $email: String, $phoneNumber: String, $preferredLogin: String) {
5
+ updateUserInfo(_id: $_id, email: $email, phoneNumber: $phoneNumber,preferredLogin: $preferredLogin) {
6
6
  _id
7
7
  email
8
8
  phoneNumber
9
+ preferredLogin
9
10
  }
10
11
  }
11
12
  `;
@@ -405,6 +405,24 @@ message emailTicketHolderRequest {
405
405
  string replyTo = 38;
406
406
  }
407
407
 
408
+ message orderExportIssueEmailRequest {
409
+ string eventName = 0;
410
+ string toAddress = 1;
411
+ string orgName = 2;
412
+ repeated string cc = 3;
413
+ repeated string dayIds = 4;
414
+ string timezone = 5;
415
+ string eventSubtitle = 6;
416
+ string cityState = 7;
417
+ string venueName = 8;
418
+ string eventDate = 9;
419
+ string eventPosterImageUrl = 10;
420
+ string orgLogoUrl = 11;
421
+ string doorsAt = 12;
422
+ string showAt = 13;
423
+ repeated dayIdsTimeObj dayIdsTime = 14;
424
+ }
425
+
408
426
  service EmailService {
409
427
  // User
410
428
  rpc queueUserWelcomeEmail (QueueUserWelcomeEmailRequest) returns (google.protobuf.Empty) {}
@@ -427,4 +445,6 @@ service EmailService {
427
445
  rpc notifyEmail (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
428
446
  rpc immediateNotifyEmail (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
429
447
  rpc emailTicketHolder (emailTicketHolderRequest) returns (google.protobuf.Empty) {}
448
+ rpc orderExportIssueEmail (orderExportIssueEmailRequest) returns (google.protobuf.Empty) {}
449
+
430
450
  }
@@ -298,6 +298,7 @@ message UpdateUserInfoRequest {
298
298
  string _id = 2;
299
299
  string email = 3;
300
300
  string phoneNumber = 4;
301
+ string preferredLogin = 5;
301
302
  }
302
303
 
303
304
  message UpdateUserInfoResponse {