@sellout/models 0.0.271 → 0.0.273

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.
@@ -3,7 +3,8 @@ export declare enum TaskTypes {
3
3
  SendOrderQrCodeEmail = "SendOrderQrCodeEmail",
4
4
  UpdateWebFlowEvent = "UpdateWebFlowEvent",
5
5
  TicketOnDayofEvent = "TicketOnDayofEvent",
6
- SalesReport = "SalesReport"
6
+ SalesReport = "SalesReport",
7
+ NotifyEvent = "NotifyEvent"
7
8
  }
8
9
  export default interface ITask {
9
10
  _id?: string;
@@ -21,4 +22,5 @@ export default interface ITask {
21
22
  venueIds?: string[];
22
23
  artistIds?: string[];
23
24
  subscription?: ISalesReport;
25
+ email?: string;
24
26
  }
@@ -7,5 +7,6 @@ var TaskTypes;
7
7
  TaskTypes["UpdateWebFlowEvent"] = "UpdateWebFlowEvent";
8
8
  TaskTypes["TicketOnDayofEvent"] = "TicketOnDayofEvent";
9
9
  TaskTypes["SalesReport"] = "SalesReport";
10
+ TaskTypes["NotifyEvent"] = "NotifyEvent";
10
11
  })(TaskTypes = exports.TaskTypes || (exports.TaskTypes = {}));
11
12
  //# sourceMappingURL=ITask.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ITask.js","sourceRoot":"","sources":["../../src/interfaces/ITask.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,0DAA6C,CAAA;IAC7C,sDAAyC,CAAA;IACzC,sDAAyC,CAAA;IACzC,wCAA2B,CAAA;AAC7B,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB"}
1
+ {"version":3,"file":"ITask.js","sourceRoot":"","sources":["../../src/interfaces/ITask.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,0DAA6C,CAAA;IAC7C,sDAAyC,CAAA;IACzC,sDAAyC,CAAA;IACzC,wCAA2B,CAAA;IAC3B,wCAA2B,CAAA;AAC7B,CAAC,EANW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAMpB"}
@@ -41501,6 +41501,8 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
41501
41501
  * @property {string|null} [promoterFee] QueueOrderQRCodeEmailRequest promoterFee
41502
41502
  * @property {string|null} [processingFee] QueueOrderQRCodeEmailRequest processingFee
41503
41503
  * @property {string|null} [discount] QueueOrderQRCodeEmailRequest discount
41504
+ * @property {string|null} [url] QueueOrderQRCodeEmailRequest url
41505
+ * @property {string|null} [description] QueueOrderQRCodeEmailRequest description
41504
41506
  */
41505
41507
 
41506
41508
  /**
@@ -41833,6 +41835,22 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
41833
41835
  */
41834
41836
  QueueOrderQRCodeEmailRequest.prototype.discount = "";
41835
41837
 
41838
+ /**
41839
+ * QueueOrderQRCodeEmailRequest url.
41840
+ * @member {string} url
41841
+ * @memberof QueueOrderQRCodeEmailRequest
41842
+ * @instance
41843
+ */
41844
+ QueueOrderQRCodeEmailRequest.prototype.url = "";
41845
+
41846
+ /**
41847
+ * QueueOrderQRCodeEmailRequest description.
41848
+ * @member {string} description
41849
+ * @memberof QueueOrderQRCodeEmailRequest
41850
+ * @instance
41851
+ */
41852
+ QueueOrderQRCodeEmailRequest.prototype.description = "";
41853
+
41836
41854
  /**
41837
41855
  * Creates a new QueueOrderQRCodeEmailRequest instance using the specified properties.
41838
41856
  * @function create
@@ -41938,6 +41956,10 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
41938
41956
  writer.uint32(/* id 37, wireType 2 =*/298).string(message.processingFee);
41939
41957
  if (message.discount != null && Object.hasOwnProperty.call(message, "discount"))
41940
41958
  writer.uint32(/* id 38, wireType 2 =*/306).string(message.discount);
41959
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
41960
+ writer.uint32(/* id 39, wireType 2 =*/314).string(message.url);
41961
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
41962
+ writer.uint32(/* id 40, wireType 2 =*/322).string(message.description);
41941
41963
  return writer;
41942
41964
  };
41943
41965
 
@@ -42095,6 +42117,12 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
42095
42117
  case 38:
42096
42118
  message.discount = reader.string();
42097
42119
  break;
42120
+ case 39:
42121
+ message.url = reader.string();
42122
+ break;
42123
+ case 40:
42124
+ message.description = reader.string();
42125
+ break;
42098
42126
  default:
42099
42127
  reader.skipType(tag & 7);
42100
42128
  break;
@@ -42265,6 +42293,12 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
42265
42293
  if (message.discount != null && message.hasOwnProperty("discount"))
42266
42294
  if (!$util.isString(message.discount))
42267
42295
  return "discount: string expected";
42296
+ if (message.url != null && message.hasOwnProperty("url"))
42297
+ if (!$util.isString(message.url))
42298
+ return "url: string expected";
42299
+ if (message.description != null && message.hasOwnProperty("description"))
42300
+ if (!$util.isString(message.description))
42301
+ return "description: string expected";
42268
42302
  return null;
42269
42303
  };
42270
42304
 
@@ -42382,6 +42416,10 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
42382
42416
  message.processingFee = String(object.processingFee);
42383
42417
  if (object.discount != null)
42384
42418
  message.discount = String(object.discount);
42419
+ if (object.url != null)
42420
+ message.url = String(object.url);
42421
+ if (object.description != null)
42422
+ message.description = String(object.description);
42385
42423
  return message;
42386
42424
  };
42387
42425
 
@@ -42440,6 +42478,8 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
42440
42478
  object.promoterFee = "";
42441
42479
  object.processingFee = "";
42442
42480
  object.discount = "";
42481
+ object.url = "";
42482
+ object.description = "";
42443
42483
  }
42444
42484
  if (message.spanContext != null && message.hasOwnProperty("spanContext"))
42445
42485
  object.spanContext = message.spanContext;
@@ -42528,6 +42568,10 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
42528
42568
  object.processingFee = message.processingFee;
42529
42569
  if (message.discount != null && message.hasOwnProperty("discount"))
42530
42570
  object.discount = message.discount;
42571
+ if (message.url != null && message.hasOwnProperty("url"))
42572
+ object.url = message.url;
42573
+ if (message.description != null && message.hasOwnProperty("description"))
42574
+ object.description = message.description;
42531
42575
  return object;
42532
42576
  };
42533
42577
 
@@ -46262,6 +46306,39 @@ $root.EmailService = (function() {
46262
46306
  * @variation 2
46263
46307
  */
46264
46308
 
46309
+ /**
46310
+ * Callback as used by {@link EmailService#notifyEmail}.
46311
+ * @memberof EmailService
46312
+ * @typedef notifyEmailCallback
46313
+ * @type {function}
46314
+ * @param {Error|null} error Error, if any
46315
+ * @param {google.protobuf.Empty} [response] Empty
46316
+ */
46317
+
46318
+ /**
46319
+ * Calls notifyEmail.
46320
+ * @function notifyEmail
46321
+ * @memberof EmailService
46322
+ * @instance
46323
+ * @param {IQueueOrderQRCodeEmailRequest} request QueueOrderQRCodeEmailRequest message or plain object
46324
+ * @param {EmailService.notifyEmailCallback} callback Node-style callback called with the error, if any, and Empty
46325
+ * @returns {undefined}
46326
+ * @variation 1
46327
+ */
46328
+ Object.defineProperty(EmailService.prototype.notifyEmail = function notifyEmail(request, callback) {
46329
+ return this.rpcCall(notifyEmail, $root.QueueOrderQRCodeEmailRequest, $root.google.protobuf.Empty, request, callback);
46330
+ }, "name", { value: "notifyEmail" });
46331
+
46332
+ /**
46333
+ * Calls notifyEmail.
46334
+ * @function notifyEmail
46335
+ * @memberof EmailService
46336
+ * @instance
46337
+ * @param {IQueueOrderQRCodeEmailRequest} request QueueOrderQRCodeEmailRequest message or plain object
46338
+ * @returns {Promise<google.protobuf.Empty>} Promise
46339
+ * @variation 2
46340
+ */
46341
+
46265
46342
  return EmailService;
46266
46343
  })();
46267
46344
 
@@ -68222,7 +68299,7 @@ $root.EventService = (function() {
68222
68299
  * @typedef notifyEventCallback
68223
68300
  * @type {function}
68224
68301
  * @param {Error|null} error Error, if any
68225
- * @param {NotifyMeReportResponse} [response] NotifyMeReportResponse
68302
+ * @param {FindEventByIdResponse} [response] FindEventByIdResponse
68226
68303
  */
68227
68304
 
68228
68305
  /**
@@ -68231,12 +68308,12 @@ $root.EventService = (function() {
68231
68308
  * @memberof EventService
68232
68309
  * @instance
68233
68310
  * @param {INotifyMeReportRequest} request NotifyMeReportRequest message or plain object
68234
- * @param {EventService.notifyEventCallback} callback Node-style callback called with the error, if any, and NotifyMeReportResponse
68311
+ * @param {EventService.notifyEventCallback} callback Node-style callback called with the error, if any, and FindEventByIdResponse
68235
68312
  * @returns {undefined}
68236
68313
  * @variation 1
68237
68314
  */
68238
68315
  Object.defineProperty(EventService.prototype.notifyEvent = function notifyEvent(request, callback) {
68239
- return this.rpcCall(notifyEvent, $root.NotifyMeReportRequest, $root.NotifyMeReportResponse, request, callback);
68316
+ return this.rpcCall(notifyEvent, $root.NotifyMeReportRequest, $root.FindEventByIdResponse, request, callback);
68240
68317
  }, "name", { value: "notifyEvent" });
68241
68318
 
68242
68319
  /**
@@ -68245,7 +68322,7 @@ $root.EventService = (function() {
68245
68322
  * @memberof EventService
68246
68323
  * @instance
68247
68324
  * @param {INotifyMeReportRequest} request NotifyMeReportRequest message or plain object
68248
- * @returns {Promise<NotifyMeReportResponse>} Promise
68325
+ * @returns {Promise<FindEventByIdResponse>} Promise
68249
68326
  * @variation 2
68250
68327
  */
68251
68328
 
@@ -118051,6 +118128,7 @@ $root.Task = (function() {
118051
118128
  * @property {Array.<string>|null} [venueIds] Task venueIds
118052
118129
  * @property {Array.<string>|null} [artistIds] Task artistIds
118053
118130
  * @property {ISubscription|null} [subscription] Task subscription
118131
+ * @property {string|null} [email] Task email
118054
118132
  */
118055
118133
 
118056
118134
  /**
@@ -118182,6 +118260,14 @@ $root.Task = (function() {
118182
118260
  */
118183
118261
  Task.prototype.subscription = null;
118184
118262
 
118263
+ /**
118264
+ * Task email.
118265
+ * @member {string} email
118266
+ * @memberof Task
118267
+ * @instance
118268
+ */
118269
+ Task.prototype.email = "";
118270
+
118185
118271
  /**
118186
118272
  * Creates a new Task instance using the specified properties.
118187
118273
  * @function create
@@ -118236,6 +118322,8 @@ $root.Task = (function() {
118236
118322
  writer.uint32(/* id 12, wireType 2 =*/98).string(message.artistIds[i]);
118237
118323
  if (message.subscription != null && Object.hasOwnProperty.call(message, "subscription"))
118238
118324
  $root.Subscription.encode(message.subscription, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
118325
+ if (message.email != null && Object.hasOwnProperty.call(message, "email"))
118326
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.email);
118239
118327
  return writer;
118240
118328
  };
118241
118329
 
@@ -118316,6 +118404,9 @@ $root.Task = (function() {
118316
118404
  case 13:
118317
118405
  message.subscription = $root.Subscription.decode(reader, reader.uint32());
118318
118406
  break;
118407
+ case 14:
118408
+ message.email = reader.string();
118409
+ break;
118319
118410
  default:
118320
118411
  reader.skipType(tag & 7);
118321
118412
  break;
@@ -118403,6 +118494,9 @@ $root.Task = (function() {
118403
118494
  if (error)
118404
118495
  return "subscription." + error;
118405
118496
  }
118497
+ if (message.email != null && message.hasOwnProperty("email"))
118498
+ if (!$util.isString(message.email))
118499
+ return "email: string expected";
118406
118500
  return null;
118407
118501
  };
118408
118502
 
@@ -118459,6 +118553,8 @@ $root.Task = (function() {
118459
118553
  throw TypeError(".Task.subscription: object expected");
118460
118554
  message.subscription = $root.Subscription.fromObject(object.subscription);
118461
118555
  }
118556
+ if (object.email != null)
118557
+ message.email = String(object.email);
118462
118558
  return message;
118463
118559
  };
118464
118560
 
@@ -118492,6 +118588,7 @@ $root.Task = (function() {
118492
118588
  object.eventId = "";
118493
118589
  object.orderId = "";
118494
118590
  object.subscription = null;
118591
+ object.email = "";
118495
118592
  }
118496
118593
  if (message._id != null && message.hasOwnProperty("_id"))
118497
118594
  object._id = message._id;
@@ -118527,6 +118624,8 @@ $root.Task = (function() {
118527
118624
  }
118528
118625
  if (message.subscription != null && message.hasOwnProperty("subscription"))
118529
118626
  object.subscription = $root.Subscription.toObject(message.subscription, options);
118627
+ if (message.email != null && message.hasOwnProperty("email"))
118628
+ object.email = message.email;
118530
118629
  return object;
118531
118630
  };
118532
118631
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.271",
3
+ "version": "0.0.273",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
19
  "@hapi/joi": "^16.1.7",
20
- "@sellout/utils": "^0.0.271",
20
+ "@sellout/utils": "^0.0.273",
21
21
  "@types/hapi__joi": "^16.0.1",
22
22
  "@types/shortid": "^0.0.29",
23
23
  "apollo-link-debounce": "^2.1.0",
@@ -31,5 +31,5 @@
31
31
  "protobufjs": "^6.11.2",
32
32
  "typescript": "^4.4.2"
33
33
  },
34
- "gitHead": "e66075e231fa8b26daf0d1e8b20516e6cd340454"
34
+ "gitHead": "f6214cf057def460f76906073e94948a53579cd2"
35
35
  }
@@ -5,6 +5,7 @@ export enum TaskTypes {
5
5
  UpdateWebFlowEvent = 'UpdateWebFlowEvent',
6
6
  TicketOnDayofEvent = 'TicketOnDayofEvent',
7
7
  SalesReport = 'SalesReport',
8
+ NotifyEvent = "NotifyEvent"
8
9
  }
9
10
 
10
11
  export default interface ITask {
@@ -23,5 +24,6 @@ export default interface ITask {
23
24
  venueIds?: string[];
24
25
  artistIds?: string[];
25
26
  subscription?: ISalesReport;
27
+ email?: string
26
28
  }
27
29
 
@@ -171,6 +171,8 @@ message QueueOrderQRCodeEmailRequest {
171
171
  string promoterFee = 36;
172
172
  string processingFee = 37;
173
173
  string discount = 38;
174
+ string url = 39;
175
+ string description = 40;
174
176
  }
175
177
 
176
178
  message QueueSeasonOrderReceiptEmailRequest {
@@ -311,5 +313,5 @@ service EmailService {
311
313
  rpc salesReportEmail (salesReportEmailRequest) returns (google.protobuf.Empty) {}
312
314
  rpc customerSheetEmail (customerSheetEmailRequest) returns (google.protobuf.Empty) {}
313
315
  rpc waitListEmail (waitListEmailRequest) returns (google.protobuf.Empty) {}
314
-
316
+ rpc notifyEmail (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
315
317
  }
@@ -647,8 +647,9 @@ service EventService {
647
647
 
648
648
  // Sales report
649
649
  rpc salesReport(SalesReportRequest) returns (SalesReportResponse) {}
650
- rpc notifyEvent(NotifyMeReportRequest) returns (NotifyMeReportResponse) {}
651
-
650
+
651
+ // Notify Me
652
+ rpc notifyEvent(NotifyMeReportRequest) returns (FindEventByIdResponse) {}
652
653
 
653
654
  // Wait List
654
655
  rpc createWaitList(WaitListRequest) returns (WaitListResponse) {}
@@ -27,6 +27,7 @@ message Task {
27
27
  repeated string venueIds = 11;
28
28
  repeated string artistIds = 12;
29
29
  Subscription subscription = 13;
30
+ string email = 14;
30
31
  }
31
32
 
32
33
  message DeleteTaskRequest{