@sellout/models 0.0.319 → 0.0.320

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.
Files changed (38) hide show
  1. package/.dist/graphql/fragments/event.fragment.js +2 -0
  2. package/.dist/graphql/fragments/event.fragment.js.map +1 -1
  3. package/.dist/graphql/fragments/order.fragment.js +2 -0
  4. package/.dist/graphql/fragments/order.fragment.js.map +1 -1
  5. package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.js +1 -0
  6. package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.js.map +1 -1
  7. package/.dist/interfaces/ICreateOrderParams.d.ts +2 -0
  8. package/.dist/interfaces/IEventUpgrade.d.ts +1 -0
  9. package/.dist/interfaces/IOrder.d.ts +1 -0
  10. package/.dist/interfaces/IOrder.js.map +1 -1
  11. package/.dist/interfaces/IOrderState.d.ts +4 -0
  12. package/.dist/interfaces/IOrderState.js +8 -1
  13. package/.dist/interfaces/IOrderState.js.map +1 -1
  14. package/.dist/interfaces/IOrderTicket.d.ts +1 -0
  15. package/.dist/interfaces/IOrderUpgrade.d.ts +1 -0
  16. package/.dist/interfaces/ITicketType.d.ts +1 -0
  17. package/.dist/schemas/Event.d.ts +10 -0
  18. package/.dist/schemas/Event.js +11 -1
  19. package/.dist/schemas/Event.js.map +1 -1
  20. package/.dist/schemas/Order.d.ts +14 -0
  21. package/.dist/schemas/Order.js +16 -2
  22. package/.dist/schemas/Order.js.map +1 -1
  23. package/.dist/sellout-proto.js +176 -0
  24. package/package.json +3 -3
  25. package/src/graphql/fragments/event.fragment.ts +2 -0
  26. package/src/graphql/fragments/order.fragment.ts +2 -0
  27. package/src/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.ts +1 -0
  28. package/src/interfaces/ICreateOrderParams.ts +2 -0
  29. package/src/interfaces/IEventUpgrade.ts +1 -0
  30. package/src/interfaces/IOrder.ts +8 -7
  31. package/src/interfaces/IOrderState.ts +6 -1
  32. package/src/interfaces/IOrderTicket.ts +1 -0
  33. package/src/interfaces/IOrderUpgrade.ts +1 -0
  34. package/src/interfaces/ITicketType.ts +1 -0
  35. package/src/proto/event.proto +2 -0
  36. package/src/proto/order.proto +7 -2
  37. package/src/schemas/Event.ts +11 -1
  38. package/src/schemas/Order.ts +32 -18
@@ -13168,6 +13168,7 @@ $root.Order = (function() {
13168
13168
  * @property {string|null} [discountCode] Order discountCode
13169
13169
  * @property {number|null} [discountAmount] Order discountAmount
13170
13170
  * @property {Array.<IOrderIntegrationResponse>|null} [orderIntegrationResponse] Order orderIntegrationResponse
13171
+ * @property {string|null} [userAgreement] Order userAgreement
13171
13172
  */
13172
13173
 
13173
13174
  /**
@@ -13491,6 +13492,14 @@ $root.Order = (function() {
13491
13492
  */
13492
13493
  Order.prototype.orderIntegrationResponse = $util.emptyArray;
13493
13494
 
13495
+ /**
13496
+ * Order userAgreement.
13497
+ * @member {string} userAgreement
13498
+ * @memberof Order
13499
+ * @instance
13500
+ */
13501
+ Order.prototype.userAgreement = "";
13502
+
13494
13503
  /**
13495
13504
  * Creates a new Order instance using the specified properties.
13496
13505
  * @function create
@@ -13599,6 +13608,8 @@ $root.Order = (function() {
13599
13608
  if (message.orderIntegrationResponse != null && message.orderIntegrationResponse.length)
13600
13609
  for (var i = 0; i < message.orderIntegrationResponse.length; ++i)
13601
13610
  $root.OrderIntegrationResponse.encode(message.orderIntegrationResponse[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim();
13611
+ if (message.userAgreement != null && Object.hasOwnProperty.call(message, "userAgreement"))
13612
+ writer.uint32(/* id 37, wireType 2 =*/298).string(message.userAgreement);
13602
13613
  return writer;
13603
13614
  };
13604
13615
 
@@ -13764,6 +13775,9 @@ $root.Order = (function() {
13764
13775
  message.orderIntegrationResponse = [];
13765
13776
  message.orderIntegrationResponse.push($root.OrderIntegrationResponse.decode(reader, reader.uint32()));
13766
13777
  break;
13778
+ case 37:
13779
+ message.userAgreement = reader.string();
13780
+ break;
13767
13781
  default:
13768
13782
  reader.skipType(tag & 7);
13769
13783
  break;
@@ -13968,6 +13982,9 @@ $root.Order = (function() {
13968
13982
  return "orderIntegrationResponse." + error;
13969
13983
  }
13970
13984
  }
13985
+ if (message.userAgreement != null && message.hasOwnProperty("userAgreement"))
13986
+ if (!$util.isString(message.userAgreement))
13987
+ return "userAgreement: string expected";
13971
13988
  return null;
13972
13989
  };
13973
13990
 
@@ -14134,6 +14151,8 @@ $root.Order = (function() {
14134
14151
  message.orderIntegrationResponse[i] = $root.OrderIntegrationResponse.fromObject(object.orderIntegrationResponse[i]);
14135
14152
  }
14136
14153
  }
14154
+ if (object.userAgreement != null)
14155
+ message.userAgreement = String(object.userAgreement);
14137
14156
  return message;
14138
14157
  };
14139
14158
 
@@ -14190,6 +14209,7 @@ $root.Order = (function() {
14190
14209
  object.email = "";
14191
14210
  object.discountCode = "";
14192
14211
  object.discountAmount = 0;
14212
+ object.userAgreement = "";
14193
14213
  }
14194
14214
  if (message._id != null && message.hasOwnProperty("_id"))
14195
14215
  object._id = message._id;
@@ -14295,6 +14315,8 @@ $root.Order = (function() {
14295
14315
  for (var j = 0; j < message.orderIntegrationResponse.length; ++j)
14296
14316
  object.orderIntegrationResponse[j] = $root.OrderIntegrationResponse.toObject(message.orderIntegrationResponse[j], options);
14297
14317
  }
14318
+ if (message.userAgreement != null && message.hasOwnProperty("userAgreement"))
14319
+ object.userAgreement = message.userAgreement;
14298
14320
  return object;
14299
14321
  };
14300
14322
 
@@ -14873,6 +14895,7 @@ $root.OrderTicket = (function() {
14873
14895
  * @property {ITeiMemberInfoParams|null} [teiMemberInfo] OrderTicket teiMemberInfo
14874
14896
  * @property {boolean|null} [guestTicket] OrderTicket guestTicket
14875
14897
  * @property {number|null} [origionalPrice] OrderTicket origionalPrice
14898
+ * @property {boolean|null} [isTicketSharing] OrderTicket isTicketSharing
14876
14899
  */
14877
14900
 
14878
14901
  /**
@@ -15052,6 +15075,14 @@ $root.OrderTicket = (function() {
15052
15075
  */
15053
15076
  OrderTicket.prototype.origionalPrice = 0;
15054
15077
 
15078
+ /**
15079
+ * OrderTicket isTicketSharing.
15080
+ * @member {boolean} isTicketSharing
15081
+ * @memberof OrderTicket
15082
+ * @instance
15083
+ */
15084
+ OrderTicket.prototype.isTicketSharing = false;
15085
+
15055
15086
  /**
15056
15087
  * Creates a new OrderTicket instance using the specified properties.
15057
15088
  * @function create
@@ -15118,6 +15149,8 @@ $root.OrderTicket = (function() {
15118
15149
  writer.uint32(/* id 18, wireType 0 =*/144).bool(message.guestTicket);
15119
15150
  if (message.origionalPrice != null && Object.hasOwnProperty.call(message, "origionalPrice"))
15120
15151
  writer.uint32(/* id 19, wireType 0 =*/152).int32(message.origionalPrice);
15152
+ if (message.isTicketSharing != null && Object.hasOwnProperty.call(message, "isTicketSharing"))
15153
+ writer.uint32(/* id 20, wireType 0 =*/160).bool(message.isTicketSharing);
15121
15154
  return writer;
15122
15155
  };
15123
15156
 
@@ -15216,6 +15249,9 @@ $root.OrderTicket = (function() {
15216
15249
  case 19:
15217
15250
  message.origionalPrice = reader.int32();
15218
15251
  break;
15252
+ case 20:
15253
+ message.isTicketSharing = reader.bool();
15254
+ break;
15219
15255
  default:
15220
15256
  reader.skipType(tag & 7);
15221
15257
  break;
@@ -15325,6 +15361,9 @@ $root.OrderTicket = (function() {
15325
15361
  if (message.origionalPrice != null && message.hasOwnProperty("origionalPrice"))
15326
15362
  if (!$util.isInteger(message.origionalPrice))
15327
15363
  return "origionalPrice: integer expected";
15364
+ if (message.isTicketSharing != null && message.hasOwnProperty("isTicketSharing"))
15365
+ if (typeof message.isTicketSharing !== "boolean")
15366
+ return "isTicketSharing: boolean expected";
15328
15367
  return null;
15329
15368
  };
15330
15369
 
@@ -15399,6 +15438,8 @@ $root.OrderTicket = (function() {
15399
15438
  message.guestTicket = Boolean(object.guestTicket);
15400
15439
  if (object.origionalPrice != null)
15401
15440
  message.origionalPrice = object.origionalPrice | 0;
15441
+ if (object.isTicketSharing != null)
15442
+ message.isTicketSharing = Boolean(object.isTicketSharing);
15402
15443
  return message;
15403
15444
  };
15404
15445
 
@@ -15438,6 +15479,7 @@ $root.OrderTicket = (function() {
15438
15479
  object.teiMemberInfo = null;
15439
15480
  object.guestTicket = false;
15440
15481
  object.origionalPrice = 0;
15482
+ object.isTicketSharing = false;
15441
15483
  }
15442
15484
  if (message._id != null && message.hasOwnProperty("_id"))
15443
15485
  object._id = message._id;
@@ -15485,6 +15527,8 @@ $root.OrderTicket = (function() {
15485
15527
  object.guestTicket = message.guestTicket;
15486
15528
  if (message.origionalPrice != null && message.hasOwnProperty("origionalPrice"))
15487
15529
  object.origionalPrice = message.origionalPrice;
15530
+ if (message.isTicketSharing != null && message.hasOwnProperty("isTicketSharing"))
15531
+ object.isTicketSharing = message.isTicketSharing;
15488
15532
  return object;
15489
15533
  };
15490
15534
 
@@ -16352,6 +16396,7 @@ $root.OrderUpgrade = (function() {
16352
16396
  * @property {string|null} [state] OrderUpgrade state
16353
16397
  * @property {string|null} [qrCodeUrl] OrderUpgrade qrCodeUrl
16354
16398
  * @property {string|null} [values] OrderUpgrade values
16399
+ * @property {boolean|null} [isAddOnsSharing] OrderUpgrade isAddOnsSharing
16355
16400
  */
16356
16401
 
16357
16402
  /**
@@ -16457,6 +16502,14 @@ $root.OrderUpgrade = (function() {
16457
16502
  */
16458
16503
  OrderUpgrade.prototype.values = "";
16459
16504
 
16505
+ /**
16506
+ * OrderUpgrade isAddOnsSharing.
16507
+ * @member {boolean} isAddOnsSharing
16508
+ * @memberof OrderUpgrade
16509
+ * @instance
16510
+ */
16511
+ OrderUpgrade.prototype.isAddOnsSharing = false;
16512
+
16460
16513
  /**
16461
16514
  * Creates a new OrderUpgrade instance using the specified properties.
16462
16515
  * @function create
@@ -16503,6 +16556,8 @@ $root.OrderUpgrade = (function() {
16503
16556
  writer.uint32(/* id 9, wireType 2 =*/74).string(message.qrCodeUrl);
16504
16557
  if (message.values != null && Object.hasOwnProperty.call(message, "values"))
16505
16558
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.values);
16559
+ if (message.isAddOnsSharing != null && Object.hasOwnProperty.call(message, "isAddOnsSharing"))
16560
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isAddOnsSharing);
16506
16561
  return writer;
16507
16562
  };
16508
16563
 
@@ -16570,6 +16625,9 @@ $root.OrderUpgrade = (function() {
16570
16625
  case 10:
16571
16626
  message.values = reader.string();
16572
16627
  break;
16628
+ case 11:
16629
+ message.isAddOnsSharing = reader.bool();
16630
+ break;
16573
16631
  default:
16574
16632
  reader.skipType(tag & 7);
16575
16633
  break;
@@ -16642,6 +16700,9 @@ $root.OrderUpgrade = (function() {
16642
16700
  if (message.values != null && message.hasOwnProperty("values"))
16643
16701
  if (!$util.isString(message.values))
16644
16702
  return "values: string expected";
16703
+ if (message.isAddOnsSharing != null && message.hasOwnProperty("isAddOnsSharing"))
16704
+ if (typeof message.isAddOnsSharing !== "boolean")
16705
+ return "isAddOnsSharing: boolean expected";
16645
16706
  return null;
16646
16707
  };
16647
16708
 
@@ -16685,6 +16746,8 @@ $root.OrderUpgrade = (function() {
16685
16746
  message.qrCodeUrl = String(object.qrCodeUrl);
16686
16747
  if (object.values != null)
16687
16748
  message.values = String(object.values);
16749
+ if (object.isAddOnsSharing != null)
16750
+ message.isAddOnsSharing = Boolean(object.isAddOnsSharing);
16688
16751
  return message;
16689
16752
  };
16690
16753
 
@@ -16713,6 +16776,7 @@ $root.OrderUpgrade = (function() {
16713
16776
  object.state = "";
16714
16777
  object.qrCodeUrl = "";
16715
16778
  object.values = "";
16779
+ object.isAddOnsSharing = false;
16716
16780
  }
16717
16781
  if (message._id != null && message.hasOwnProperty("_id"))
16718
16782
  object._id = message._id;
@@ -16736,6 +16800,8 @@ $root.OrderUpgrade = (function() {
16736
16800
  object.qrCodeUrl = message.qrCodeUrl;
16737
16801
  if (message.values != null && message.hasOwnProperty("values"))
16738
16802
  object.values = message.values;
16803
+ if (message.isAddOnsSharing != null && message.hasOwnProperty("isAddOnsSharing"))
16804
+ object.isAddOnsSharing = message.isAddOnsSharing;
16739
16805
  return object;
16740
16806
  };
16741
16807
 
@@ -19193,6 +19259,7 @@ $root.CreateOrderTicketParams = (function() {
19193
19259
  * @property {ITeiMemberInfoParams|null} [teiMemberInfo] CreateOrderTicketParams teiMemberInfo
19194
19260
  * @property {boolean|null} [guestTicket] CreateOrderTicketParams guestTicket
19195
19261
  * @property {number|null} [origionalPrice] CreateOrderTicketParams origionalPrice
19262
+ * @property {boolean|null} [isTicketSharing] CreateOrderTicketParams isTicketSharing
19196
19263
  */
19197
19264
 
19198
19265
  /**
@@ -19331,6 +19398,14 @@ $root.CreateOrderTicketParams = (function() {
19331
19398
  */
19332
19399
  CreateOrderTicketParams.prototype.origionalPrice = 0;
19333
19400
 
19401
+ /**
19402
+ * CreateOrderTicketParams isTicketSharing.
19403
+ * @member {boolean} isTicketSharing
19404
+ * @memberof CreateOrderTicketParams
19405
+ * @instance
19406
+ */
19407
+ CreateOrderTicketParams.prototype.isTicketSharing = false;
19408
+
19334
19409
  /**
19335
19410
  * Creates a new CreateOrderTicketParams instance using the specified properties.
19336
19411
  * @function create
@@ -19386,6 +19461,8 @@ $root.CreateOrderTicketParams = (function() {
19386
19461
  writer.uint32(/* id 13, wireType 0 =*/104).bool(message.guestTicket);
19387
19462
  if (message.origionalPrice != null && Object.hasOwnProperty.call(message, "origionalPrice"))
19388
19463
  writer.uint32(/* id 14, wireType 0 =*/112).int32(message.origionalPrice);
19464
+ if (message.isTicketSharing != null && Object.hasOwnProperty.call(message, "isTicketSharing"))
19465
+ writer.uint32(/* id 15, wireType 0 =*/120).bool(message.isTicketSharing);
19389
19466
  return writer;
19390
19467
  };
19391
19468
 
@@ -19467,6 +19544,9 @@ $root.CreateOrderTicketParams = (function() {
19467
19544
  case 14:
19468
19545
  message.origionalPrice = reader.int32();
19469
19546
  break;
19547
+ case 15:
19548
+ message.isTicketSharing = reader.bool();
19549
+ break;
19470
19550
  default:
19471
19551
  reader.skipType(tag & 7);
19472
19552
  break;
@@ -19553,6 +19633,9 @@ $root.CreateOrderTicketParams = (function() {
19553
19633
  if (message.origionalPrice != null && message.hasOwnProperty("origionalPrice"))
19554
19634
  if (!$util.isInteger(message.origionalPrice))
19555
19635
  return "origionalPrice: integer expected";
19636
+ if (message.isTicketSharing != null && message.hasOwnProperty("isTicketSharing"))
19637
+ if (typeof message.isTicketSharing !== "boolean")
19638
+ return "isTicketSharing: boolean expected";
19556
19639
  return null;
19557
19640
  };
19558
19641
 
@@ -19606,6 +19689,8 @@ $root.CreateOrderTicketParams = (function() {
19606
19689
  message.guestTicket = Boolean(object.guestTicket);
19607
19690
  if (object.origionalPrice != null)
19608
19691
  message.origionalPrice = object.origionalPrice | 0;
19692
+ if (object.isTicketSharing != null)
19693
+ message.isTicketSharing = Boolean(object.isTicketSharing);
19609
19694
  return message;
19610
19695
  };
19611
19696
 
@@ -19639,6 +19724,7 @@ $root.CreateOrderTicketParams = (function() {
19639
19724
  object.teiMemberInfo = null;
19640
19725
  object.guestTicket = false;
19641
19726
  object.origionalPrice = 0;
19727
+ object.isTicketSharing = false;
19642
19728
  }
19643
19729
  if (message.name != null && message.hasOwnProperty("name"))
19644
19730
  object.name = message.name;
@@ -19673,6 +19759,8 @@ $root.CreateOrderTicketParams = (function() {
19673
19759
  object.guestTicket = message.guestTicket;
19674
19760
  if (message.origionalPrice != null && message.hasOwnProperty("origionalPrice"))
19675
19761
  object.origionalPrice = message.origionalPrice;
19762
+ if (message.isTicketSharing != null && message.hasOwnProperty("isTicketSharing"))
19763
+ object.isTicketSharing = message.isTicketSharing;
19676
19764
  return object;
19677
19765
  };
19678
19766
 
@@ -19700,6 +19788,7 @@ $root.CreateOrderUpgradeParams = (function() {
19700
19788
  * @property {string|null} [upgradeId] CreateOrderUpgradeParams upgradeId
19701
19789
  * @property {number|null} [price] CreateOrderUpgradeParams price
19702
19790
  * @property {boolean|null} [rollFees] CreateOrderUpgradeParams rollFees
19791
+ * @property {boolean|null} [isAddOnsSharing] CreateOrderUpgradeParams isAddOnsSharing
19703
19792
  */
19704
19793
 
19705
19794
  /**
@@ -19749,6 +19838,14 @@ $root.CreateOrderUpgradeParams = (function() {
19749
19838
  */
19750
19839
  CreateOrderUpgradeParams.prototype.rollFees = false;
19751
19840
 
19841
+ /**
19842
+ * CreateOrderUpgradeParams isAddOnsSharing.
19843
+ * @member {boolean} isAddOnsSharing
19844
+ * @memberof CreateOrderUpgradeParams
19845
+ * @instance
19846
+ */
19847
+ CreateOrderUpgradeParams.prototype.isAddOnsSharing = false;
19848
+
19752
19849
  /**
19753
19850
  * Creates a new CreateOrderUpgradeParams instance using the specified properties.
19754
19851
  * @function create
@@ -19781,6 +19878,8 @@ $root.CreateOrderUpgradeParams = (function() {
19781
19878
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.price);
19782
19879
  if (message.rollFees != null && Object.hasOwnProperty.call(message, "rollFees"))
19783
19880
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.rollFees);
19881
+ if (message.isAddOnsSharing != null && Object.hasOwnProperty.call(message, "isAddOnsSharing"))
19882
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isAddOnsSharing);
19784
19883
  return writer;
19785
19884
  };
19786
19885
 
@@ -19827,6 +19926,9 @@ $root.CreateOrderUpgradeParams = (function() {
19827
19926
  case 3:
19828
19927
  message.rollFees = reader.bool();
19829
19928
  break;
19929
+ case 4:
19930
+ message.isAddOnsSharing = reader.bool();
19931
+ break;
19830
19932
  default:
19831
19933
  reader.skipType(tag & 7);
19832
19934
  break;
@@ -19874,6 +19976,9 @@ $root.CreateOrderUpgradeParams = (function() {
19874
19976
  if (message.rollFees != null && message.hasOwnProperty("rollFees"))
19875
19977
  if (typeof message.rollFees !== "boolean")
19876
19978
  return "rollFees: boolean expected";
19979
+ if (message.isAddOnsSharing != null && message.hasOwnProperty("isAddOnsSharing"))
19980
+ if (typeof message.isAddOnsSharing !== "boolean")
19981
+ return "isAddOnsSharing: boolean expected";
19877
19982
  return null;
19878
19983
  };
19879
19984
 
@@ -19897,6 +20002,8 @@ $root.CreateOrderUpgradeParams = (function() {
19897
20002
  message.price = object.price | 0;
19898
20003
  if (object.rollFees != null)
19899
20004
  message.rollFees = Boolean(object.rollFees);
20005
+ if (object.isAddOnsSharing != null)
20006
+ message.isAddOnsSharing = Boolean(object.isAddOnsSharing);
19900
20007
  return message;
19901
20008
  };
19902
20009
 
@@ -19918,6 +20025,7 @@ $root.CreateOrderUpgradeParams = (function() {
19918
20025
  object.upgradeId = "";
19919
20026
  object.price = 0;
19920
20027
  object.rollFees = false;
20028
+ object.isAddOnsSharing = false;
19921
20029
  }
19922
20030
  if (message.name != null && message.hasOwnProperty("name"))
19923
20031
  object.name = message.name;
@@ -19927,6 +20035,8 @@ $root.CreateOrderUpgradeParams = (function() {
19927
20035
  object.price = message.price;
19928
20036
  if (message.rollFees != null && message.hasOwnProperty("rollFees"))
19929
20037
  object.rollFees = message.rollFees;
20038
+ if (message.isAddOnsSharing != null && message.hasOwnProperty("isAddOnsSharing"))
20039
+ object.isAddOnsSharing = message.isAddOnsSharing;
19930
20040
  return object;
19931
20041
  };
19932
20042
 
@@ -40131,6 +40241,7 @@ $root.SharingOrderData = (function() {
40131
40241
  * @property {string|null} [firstName] SharingOrderData firstName
40132
40242
  * @property {string|null} [lastName] SharingOrderData lastName
40133
40243
  * @property {string|null} [_id] SharingOrderData _id
40244
+ * @property {string|null} [userAgreement] SharingOrderData userAgreement
40134
40245
  */
40135
40246
 
40136
40247
  /**
@@ -40198,6 +40309,14 @@ $root.SharingOrderData = (function() {
40198
40309
  */
40199
40310
  SharingOrderData.prototype._id = "";
40200
40311
 
40312
+ /**
40313
+ * SharingOrderData userAgreement.
40314
+ * @member {string} userAgreement
40315
+ * @memberof SharingOrderData
40316
+ * @instance
40317
+ */
40318
+ SharingOrderData.prototype.userAgreement = "";
40319
+
40201
40320
  /**
40202
40321
  * Creates a new SharingOrderData instance using the specified properties.
40203
40322
  * @function create
@@ -40236,6 +40355,8 @@ $root.SharingOrderData = (function() {
40236
40355
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastName);
40237
40356
  if (message._id != null && Object.hasOwnProperty.call(message, "_id"))
40238
40357
  writer.uint32(/* id 5, wireType 2 =*/42).string(message._id);
40358
+ if (message.userAgreement != null && Object.hasOwnProperty.call(message, "userAgreement"))
40359
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.userAgreement);
40239
40360
  return writer;
40240
40361
  };
40241
40362
 
@@ -40292,6 +40413,9 @@ $root.SharingOrderData = (function() {
40292
40413
  case 5:
40293
40414
  message._id = reader.string();
40294
40415
  break;
40416
+ case 6:
40417
+ message.userAgreement = reader.string();
40418
+ break;
40295
40419
  default:
40296
40420
  reader.skipType(tag & 7);
40297
40421
  break;
@@ -40359,6 +40483,9 @@ $root.SharingOrderData = (function() {
40359
40483
  if (message._id != null && message.hasOwnProperty("_id"))
40360
40484
  if (!$util.isString(message._id))
40361
40485
  return "_id: string expected";
40486
+ if (message.userAgreement != null && message.hasOwnProperty("userAgreement"))
40487
+ if (!$util.isString(message.userAgreement))
40488
+ return "userAgreement: string expected";
40362
40489
  return null;
40363
40490
  };
40364
40491
 
@@ -40405,6 +40532,8 @@ $root.SharingOrderData = (function() {
40405
40532
  message.lastName = String(object.lastName);
40406
40533
  if (object._id != null)
40407
40534
  message._id = String(object._id);
40535
+ if (object.userAgreement != null)
40536
+ message.userAgreement = String(object.userAgreement);
40408
40537
  return message;
40409
40538
  };
40410
40539
 
@@ -40430,6 +40559,7 @@ $root.SharingOrderData = (function() {
40430
40559
  object.firstName = "";
40431
40560
  object.lastName = "";
40432
40561
  object._id = "";
40562
+ object.userAgreement = "";
40433
40563
  }
40434
40564
  if (message.sharing != null && message.hasOwnProperty("sharing"))
40435
40565
  object.sharing = $root.SharingOrderInfo.toObject(message.sharing, options);
@@ -40449,6 +40579,8 @@ $root.SharingOrderData = (function() {
40449
40579
  object.lastName = message.lastName;
40450
40580
  if (message._id != null && message.hasOwnProperty("_id"))
40451
40581
  object._id = message._id;
40582
+ if (message.userAgreement != null && message.hasOwnProperty("userAgreement"))
40583
+ object.userAgreement = message.userAgreement;
40452
40584
  return object;
40453
40585
  };
40454
40586
 
@@ -58179,6 +58311,7 @@ $root.TicketType = (function() {
58179
58311
  * @property {string|null} [promo] TicketType promo
58180
58312
  * @property {string|null} [values] TicketType values
58181
58313
  * @property {Array.<string>|null} [dayIds] TicketType dayIds
58314
+ * @property {boolean|null} [isTicketSharing] TicketType isTicketSharing
58182
58315
  */
58183
58316
 
58184
58317
  /**
@@ -58303,6 +58436,14 @@ $root.TicketType = (function() {
58303
58436
  */
58304
58437
  TicketType.prototype.dayIds = $util.emptyArray;
58305
58438
 
58439
+ /**
58440
+ * TicketType isTicketSharing.
58441
+ * @member {boolean} isTicketSharing
58442
+ * @memberof TicketType
58443
+ * @instance
58444
+ */
58445
+ TicketType.prototype.isTicketSharing = false;
58446
+
58306
58447
  /**
58307
58448
  * Creates a new TicketType instance using the specified properties.
58308
58449
  * @function create
@@ -58356,6 +58497,8 @@ $root.TicketType = (function() {
58356
58497
  if (message.dayIds != null && message.dayIds.length)
58357
58498
  for (var i = 0; i < message.dayIds.length; ++i)
58358
58499
  writer.uint32(/* id 13, wireType 2 =*/106).string(message.dayIds[i]);
58500
+ if (message.isTicketSharing != null && Object.hasOwnProperty.call(message, "isTicketSharing"))
58501
+ writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isTicketSharing);
58359
58502
  return writer;
58360
58503
  };
58361
58504
 
@@ -58435,6 +58578,9 @@ $root.TicketType = (function() {
58435
58578
  message.dayIds = [];
58436
58579
  message.dayIds.push(reader.string());
58437
58580
  break;
58581
+ case 14:
58582
+ message.isTicketSharing = reader.bool();
58583
+ break;
58438
58584
  default:
58439
58585
  reader.skipType(tag & 7);
58440
58586
  break;
@@ -58523,6 +58669,9 @@ $root.TicketType = (function() {
58523
58669
  if (!$util.isString(message.dayIds[i]))
58524
58670
  return "dayIds: string[] expected";
58525
58671
  }
58672
+ if (message.isTicketSharing != null && message.hasOwnProperty("isTicketSharing"))
58673
+ if (typeof message.isTicketSharing !== "boolean")
58674
+ return "isTicketSharing: boolean expected";
58526
58675
  return null;
58527
58676
  };
58528
58677
 
@@ -58582,6 +58731,8 @@ $root.TicketType = (function() {
58582
58731
  for (var i = 0; i < object.dayIds.length; ++i)
58583
58732
  message.dayIds[i] = String(object.dayIds[i]);
58584
58733
  }
58734
+ if (object.isTicketSharing != null)
58735
+ message.isTicketSharing = Boolean(object.isTicketSharing);
58585
58736
  return message;
58586
58737
  };
58587
58738
 
@@ -58614,6 +58765,7 @@ $root.TicketType = (function() {
58614
58765
  object.rollFees = false;
58615
58766
  object.promo = "";
58616
58767
  object.values = "";
58768
+ object.isTicketSharing = false;
58617
58769
  }
58618
58770
  if (message._id != null && message.hasOwnProperty("_id"))
58619
58771
  object._id = message._id;
@@ -58650,6 +58802,8 @@ $root.TicketType = (function() {
58650
58802
  for (var j = 0; j < message.dayIds.length; ++j)
58651
58803
  object.dayIds[j] = message.dayIds[j];
58652
58804
  }
58805
+ if (message.isTicketSharing != null && message.hasOwnProperty("isTicketSharing"))
58806
+ object.isTicketSharing = message.isTicketSharing;
58653
58807
  return object;
58654
58808
  };
58655
58809
 
@@ -59372,6 +59526,7 @@ $root.EventUpgrade = (function() {
59372
59526
  * @property {boolean|null} [visible] EventUpgrade visible
59373
59527
  * @property {boolean|null} [rollFees] EventUpgrade rollFees
59374
59528
  * @property {string|null} [values] EventUpgrade values
59529
+ * @property {boolean|null} [isAddOnsSharing] EventUpgrade isAddOnsSharing
59375
59530
  */
59376
59531
 
59377
59532
  /**
@@ -59510,6 +59665,14 @@ $root.EventUpgrade = (function() {
59510
59665
  */
59511
59666
  EventUpgrade.prototype.values = "";
59512
59667
 
59668
+ /**
59669
+ * EventUpgrade isAddOnsSharing.
59670
+ * @member {boolean} isAddOnsSharing
59671
+ * @memberof EventUpgrade
59672
+ * @instance
59673
+ */
59674
+ EventUpgrade.prototype.isAddOnsSharing = false;
59675
+
59513
59676
  /**
59514
59677
  * Creates a new EventUpgrade instance using the specified properties.
59515
59678
  * @function create
@@ -59565,6 +59728,8 @@ $root.EventUpgrade = (function() {
59565
59728
  writer.uint32(/* id 13, wireType 0 =*/104).bool(message.rollFees);
59566
59729
  if (message.values != null && Object.hasOwnProperty.call(message, "values"))
59567
59730
  writer.uint32(/* id 14, wireType 2 =*/114).string(message.values);
59731
+ if (message.isAddOnsSharing != null && Object.hasOwnProperty.call(message, "isAddOnsSharing"))
59732
+ writer.uint32(/* id 15, wireType 0 =*/120).bool(message.isAddOnsSharing);
59568
59733
  return writer;
59569
59734
  };
59570
59735
 
@@ -59646,6 +59811,9 @@ $root.EventUpgrade = (function() {
59646
59811
  case 14:
59647
59812
  message.values = reader.string();
59648
59813
  break;
59814
+ case 15:
59815
+ message.isAddOnsSharing = reader.bool();
59816
+ break;
59649
59817
  default:
59650
59818
  reader.skipType(tag & 7);
59651
59819
  break;
@@ -59730,6 +59898,9 @@ $root.EventUpgrade = (function() {
59730
59898
  if (message.values != null && message.hasOwnProperty("values"))
59731
59899
  if (!$util.isString(message.values))
59732
59900
  return "values: string expected";
59901
+ if (message.isAddOnsSharing != null && message.hasOwnProperty("isAddOnsSharing"))
59902
+ if (typeof message.isAddOnsSharing !== "boolean")
59903
+ return "isAddOnsSharing: boolean expected";
59733
59904
  return null;
59734
59905
  };
59735
59906
 
@@ -59780,6 +59951,8 @@ $root.EventUpgrade = (function() {
59780
59951
  message.rollFees = Boolean(object.rollFees);
59781
59952
  if (object.values != null)
59782
59953
  message.values = String(object.values);
59954
+ if (object.isAddOnsSharing != null)
59955
+ message.isAddOnsSharing = Boolean(object.isAddOnsSharing);
59783
59956
  return message;
59784
59957
  };
59785
59958
 
@@ -59813,6 +59986,7 @@ $root.EventUpgrade = (function() {
59813
59986
  object.visible = false;
59814
59987
  object.rollFees = false;
59815
59988
  object.values = "";
59989
+ object.isAddOnsSharing = false;
59816
59990
  }
59817
59991
  if (message._id != null && message.hasOwnProperty("_id"))
59818
59992
  object._id = message._id;
@@ -59847,6 +60021,8 @@ $root.EventUpgrade = (function() {
59847
60021
  object.rollFees = message.rollFees;
59848
60022
  if (message.values != null && message.hasOwnProperty("values"))
59849
60023
  object.values = message.values;
60024
+ if (message.isAddOnsSharing != null && message.hasOwnProperty("isAddOnsSharing"))
60025
+ object.isAddOnsSharing = message.isAddOnsSharing;
59850
60026
  return object;
59851
60027
  };
59852
60028
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.319",
3
+ "version": "0.0.320",
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.319",
21
+ "@sellout/utils": "^0.0.320",
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": "c665ac4456b2a13d5ba10a3b37b2775853076ab6"
35
+ "gitHead": "834fcc168cca833eed3b1b35303444fea48ae51c"
36
36
  }
@@ -103,6 +103,7 @@ Event.fragments = {
103
103
  rollFees
104
104
  values
105
105
  dayIds
106
+ isTicketSharing
106
107
  tiers {
107
108
  _id
108
109
  name
@@ -145,6 +146,7 @@ Event.fragments = {
145
146
  ticketTypeIds
146
147
  imageUrl
147
148
  description
149
+ isAddOnsSharing
148
150
  rollFees
149
151
  visible
150
152
  }
@@ -32,6 +32,7 @@ Order.fragments = {
32
32
  origionalPrice
33
33
  values
34
34
  seat
35
+ isTicketSharing
35
36
  dayIds
36
37
  qrCodeUrl
37
38
  paymentId
@@ -62,6 +63,7 @@ Order.fragments = {
62
63
  qrCodeUrl
63
64
  paymentId
64
65
  state
66
+ isAddOnsSharing
65
67
  refund {
66
68
  refunded
67
69
  refundedAt
@@ -20,6 +20,7 @@ query getSharedTicketsByEmailPhoneNumber($email: String, $phoneNumber:String) {
20
20
  upgrades {
21
21
  name
22
22
  }
23
+ userAgreement
23
24
  }
24
25
 
25
26
  }
@@ -47,6 +47,7 @@ export interface ICreateOrderTicketParams {
47
47
  scan?: IScan[];
48
48
  teiMemberInfo?:ITeiMemberInfo;
49
49
  guestTicket? : boolean;
50
+ isTicketSharing?:boolean;
50
51
  }
51
52
 
52
53
  export interface ICreateOrderUpgradeParams {
@@ -55,6 +56,7 @@ export interface ICreateOrderUpgradeParams {
55
56
  price: number;
56
57
  rollFees: boolean;
57
58
  description?: string;
59
+ isAddOnsSharing?:boolean;
58
60
  }
59
61
 
60
62
  export interface IOrderTicketRestrictedParams {