@sellout/models 0.0.271 → 0.0.272
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/interfaces/ITask.d.ts +3 -1
- package/.dist/interfaces/ITask.js +1 -0
- package/.dist/interfaces/ITask.js.map +1 -1
- package/.dist/sellout-proto.js +81 -4
- package/package.json +3 -3
- package/src/interfaces/ITask.ts +2 -0
- package/src/proto/email.proto +2 -1
- package/src/proto/event.proto +3 -2
- package/src/proto/task.proto +1 -0
|
@@ -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,
|
|
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"}
|
package/.dist/sellout-proto.js
CHANGED
|
@@ -41501,6 +41501,7 @@ $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
|
|
41504
41505
|
*/
|
|
41505
41506
|
|
|
41506
41507
|
/**
|
|
@@ -41833,6 +41834,14 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
41833
41834
|
*/
|
|
41834
41835
|
QueueOrderQRCodeEmailRequest.prototype.discount = "";
|
|
41835
41836
|
|
|
41837
|
+
/**
|
|
41838
|
+
* QueueOrderQRCodeEmailRequest url.
|
|
41839
|
+
* @member {string} url
|
|
41840
|
+
* @memberof QueueOrderQRCodeEmailRequest
|
|
41841
|
+
* @instance
|
|
41842
|
+
*/
|
|
41843
|
+
QueueOrderQRCodeEmailRequest.prototype.url = "";
|
|
41844
|
+
|
|
41836
41845
|
/**
|
|
41837
41846
|
* Creates a new QueueOrderQRCodeEmailRequest instance using the specified properties.
|
|
41838
41847
|
* @function create
|
|
@@ -41938,6 +41947,8 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
41938
41947
|
writer.uint32(/* id 37, wireType 2 =*/298).string(message.processingFee);
|
|
41939
41948
|
if (message.discount != null && Object.hasOwnProperty.call(message, "discount"))
|
|
41940
41949
|
writer.uint32(/* id 38, wireType 2 =*/306).string(message.discount);
|
|
41950
|
+
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
41951
|
+
writer.uint32(/* id 39, wireType 2 =*/314).string(message.url);
|
|
41941
41952
|
return writer;
|
|
41942
41953
|
};
|
|
41943
41954
|
|
|
@@ -42095,6 +42106,9 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
42095
42106
|
case 38:
|
|
42096
42107
|
message.discount = reader.string();
|
|
42097
42108
|
break;
|
|
42109
|
+
case 39:
|
|
42110
|
+
message.url = reader.string();
|
|
42111
|
+
break;
|
|
42098
42112
|
default:
|
|
42099
42113
|
reader.skipType(tag & 7);
|
|
42100
42114
|
break;
|
|
@@ -42265,6 +42279,9 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
42265
42279
|
if (message.discount != null && message.hasOwnProperty("discount"))
|
|
42266
42280
|
if (!$util.isString(message.discount))
|
|
42267
42281
|
return "discount: string expected";
|
|
42282
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
42283
|
+
if (!$util.isString(message.url))
|
|
42284
|
+
return "url: string expected";
|
|
42268
42285
|
return null;
|
|
42269
42286
|
};
|
|
42270
42287
|
|
|
@@ -42382,6 +42399,8 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
42382
42399
|
message.processingFee = String(object.processingFee);
|
|
42383
42400
|
if (object.discount != null)
|
|
42384
42401
|
message.discount = String(object.discount);
|
|
42402
|
+
if (object.url != null)
|
|
42403
|
+
message.url = String(object.url);
|
|
42385
42404
|
return message;
|
|
42386
42405
|
};
|
|
42387
42406
|
|
|
@@ -42440,6 +42459,7 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
42440
42459
|
object.promoterFee = "";
|
|
42441
42460
|
object.processingFee = "";
|
|
42442
42461
|
object.discount = "";
|
|
42462
|
+
object.url = "";
|
|
42443
42463
|
}
|
|
42444
42464
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
42445
42465
|
object.spanContext = message.spanContext;
|
|
@@ -42528,6 +42548,8 @@ $root.QueueOrderQRCodeEmailRequest = (function() {
|
|
|
42528
42548
|
object.processingFee = message.processingFee;
|
|
42529
42549
|
if (message.discount != null && message.hasOwnProperty("discount"))
|
|
42530
42550
|
object.discount = message.discount;
|
|
42551
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
42552
|
+
object.url = message.url;
|
|
42531
42553
|
return object;
|
|
42532
42554
|
};
|
|
42533
42555
|
|
|
@@ -46262,6 +46284,39 @@ $root.EmailService = (function() {
|
|
|
46262
46284
|
* @variation 2
|
|
46263
46285
|
*/
|
|
46264
46286
|
|
|
46287
|
+
/**
|
|
46288
|
+
* Callback as used by {@link EmailService#notifyEmail}.
|
|
46289
|
+
* @memberof EmailService
|
|
46290
|
+
* @typedef notifyEmailCallback
|
|
46291
|
+
* @type {function}
|
|
46292
|
+
* @param {Error|null} error Error, if any
|
|
46293
|
+
* @param {google.protobuf.Empty} [response] Empty
|
|
46294
|
+
*/
|
|
46295
|
+
|
|
46296
|
+
/**
|
|
46297
|
+
* Calls notifyEmail.
|
|
46298
|
+
* @function notifyEmail
|
|
46299
|
+
* @memberof EmailService
|
|
46300
|
+
* @instance
|
|
46301
|
+
* @param {IQueueOrderQRCodeEmailRequest} request QueueOrderQRCodeEmailRequest message or plain object
|
|
46302
|
+
* @param {EmailService.notifyEmailCallback} callback Node-style callback called with the error, if any, and Empty
|
|
46303
|
+
* @returns {undefined}
|
|
46304
|
+
* @variation 1
|
|
46305
|
+
*/
|
|
46306
|
+
Object.defineProperty(EmailService.prototype.notifyEmail = function notifyEmail(request, callback) {
|
|
46307
|
+
return this.rpcCall(notifyEmail, $root.QueueOrderQRCodeEmailRequest, $root.google.protobuf.Empty, request, callback);
|
|
46308
|
+
}, "name", { value: "notifyEmail" });
|
|
46309
|
+
|
|
46310
|
+
/**
|
|
46311
|
+
* Calls notifyEmail.
|
|
46312
|
+
* @function notifyEmail
|
|
46313
|
+
* @memberof EmailService
|
|
46314
|
+
* @instance
|
|
46315
|
+
* @param {IQueueOrderQRCodeEmailRequest} request QueueOrderQRCodeEmailRequest message or plain object
|
|
46316
|
+
* @returns {Promise<google.protobuf.Empty>} Promise
|
|
46317
|
+
* @variation 2
|
|
46318
|
+
*/
|
|
46319
|
+
|
|
46265
46320
|
return EmailService;
|
|
46266
46321
|
})();
|
|
46267
46322
|
|
|
@@ -68222,7 +68277,7 @@ $root.EventService = (function() {
|
|
|
68222
68277
|
* @typedef notifyEventCallback
|
|
68223
68278
|
* @type {function}
|
|
68224
68279
|
* @param {Error|null} error Error, if any
|
|
68225
|
-
* @param {
|
|
68280
|
+
* @param {FindEventByIdResponse} [response] FindEventByIdResponse
|
|
68226
68281
|
*/
|
|
68227
68282
|
|
|
68228
68283
|
/**
|
|
@@ -68231,12 +68286,12 @@ $root.EventService = (function() {
|
|
|
68231
68286
|
* @memberof EventService
|
|
68232
68287
|
* @instance
|
|
68233
68288
|
* @param {INotifyMeReportRequest} request NotifyMeReportRequest message or plain object
|
|
68234
|
-
* @param {EventService.notifyEventCallback} callback Node-style callback called with the error, if any, and
|
|
68289
|
+
* @param {EventService.notifyEventCallback} callback Node-style callback called with the error, if any, and FindEventByIdResponse
|
|
68235
68290
|
* @returns {undefined}
|
|
68236
68291
|
* @variation 1
|
|
68237
68292
|
*/
|
|
68238
68293
|
Object.defineProperty(EventService.prototype.notifyEvent = function notifyEvent(request, callback) {
|
|
68239
|
-
return this.rpcCall(notifyEvent, $root.NotifyMeReportRequest, $root.
|
|
68294
|
+
return this.rpcCall(notifyEvent, $root.NotifyMeReportRequest, $root.FindEventByIdResponse, request, callback);
|
|
68240
68295
|
}, "name", { value: "notifyEvent" });
|
|
68241
68296
|
|
|
68242
68297
|
/**
|
|
@@ -68245,7 +68300,7 @@ $root.EventService = (function() {
|
|
|
68245
68300
|
* @memberof EventService
|
|
68246
68301
|
* @instance
|
|
68247
68302
|
* @param {INotifyMeReportRequest} request NotifyMeReportRequest message or plain object
|
|
68248
|
-
* @returns {Promise<
|
|
68303
|
+
* @returns {Promise<FindEventByIdResponse>} Promise
|
|
68249
68304
|
* @variation 2
|
|
68250
68305
|
*/
|
|
68251
68306
|
|
|
@@ -118051,6 +118106,7 @@ $root.Task = (function() {
|
|
|
118051
118106
|
* @property {Array.<string>|null} [venueIds] Task venueIds
|
|
118052
118107
|
* @property {Array.<string>|null} [artistIds] Task artistIds
|
|
118053
118108
|
* @property {ISubscription|null} [subscription] Task subscription
|
|
118109
|
+
* @property {string|null} [email] Task email
|
|
118054
118110
|
*/
|
|
118055
118111
|
|
|
118056
118112
|
/**
|
|
@@ -118182,6 +118238,14 @@ $root.Task = (function() {
|
|
|
118182
118238
|
*/
|
|
118183
118239
|
Task.prototype.subscription = null;
|
|
118184
118240
|
|
|
118241
|
+
/**
|
|
118242
|
+
* Task email.
|
|
118243
|
+
* @member {string} email
|
|
118244
|
+
* @memberof Task
|
|
118245
|
+
* @instance
|
|
118246
|
+
*/
|
|
118247
|
+
Task.prototype.email = "";
|
|
118248
|
+
|
|
118185
118249
|
/**
|
|
118186
118250
|
* Creates a new Task instance using the specified properties.
|
|
118187
118251
|
* @function create
|
|
@@ -118236,6 +118300,8 @@ $root.Task = (function() {
|
|
|
118236
118300
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.artistIds[i]);
|
|
118237
118301
|
if (message.subscription != null && Object.hasOwnProperty.call(message, "subscription"))
|
|
118238
118302
|
$root.Subscription.encode(message.subscription, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
118303
|
+
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
118304
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.email);
|
|
118239
118305
|
return writer;
|
|
118240
118306
|
};
|
|
118241
118307
|
|
|
@@ -118316,6 +118382,9 @@ $root.Task = (function() {
|
|
|
118316
118382
|
case 13:
|
|
118317
118383
|
message.subscription = $root.Subscription.decode(reader, reader.uint32());
|
|
118318
118384
|
break;
|
|
118385
|
+
case 14:
|
|
118386
|
+
message.email = reader.string();
|
|
118387
|
+
break;
|
|
118319
118388
|
default:
|
|
118320
118389
|
reader.skipType(tag & 7);
|
|
118321
118390
|
break;
|
|
@@ -118403,6 +118472,9 @@ $root.Task = (function() {
|
|
|
118403
118472
|
if (error)
|
|
118404
118473
|
return "subscription." + error;
|
|
118405
118474
|
}
|
|
118475
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
118476
|
+
if (!$util.isString(message.email))
|
|
118477
|
+
return "email: string expected";
|
|
118406
118478
|
return null;
|
|
118407
118479
|
};
|
|
118408
118480
|
|
|
@@ -118459,6 +118531,8 @@ $root.Task = (function() {
|
|
|
118459
118531
|
throw TypeError(".Task.subscription: object expected");
|
|
118460
118532
|
message.subscription = $root.Subscription.fromObject(object.subscription);
|
|
118461
118533
|
}
|
|
118534
|
+
if (object.email != null)
|
|
118535
|
+
message.email = String(object.email);
|
|
118462
118536
|
return message;
|
|
118463
118537
|
};
|
|
118464
118538
|
|
|
@@ -118492,6 +118566,7 @@ $root.Task = (function() {
|
|
|
118492
118566
|
object.eventId = "";
|
|
118493
118567
|
object.orderId = "";
|
|
118494
118568
|
object.subscription = null;
|
|
118569
|
+
object.email = "";
|
|
118495
118570
|
}
|
|
118496
118571
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
118497
118572
|
object._id = message._id;
|
|
@@ -118527,6 +118602,8 @@ $root.Task = (function() {
|
|
|
118527
118602
|
}
|
|
118528
118603
|
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
118529
118604
|
object.subscription = $root.Subscription.toObject(message.subscription, options);
|
|
118605
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
118606
|
+
object.email = message.email;
|
|
118530
118607
|
return object;
|
|
118531
118608
|
};
|
|
118532
118609
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.272",
|
|
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.
|
|
20
|
+
"@sellout/utils": "^0.0.272",
|
|
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": "
|
|
34
|
+
"gitHead": "cade57b16845524910a9f85ce8ea415db35259c1"
|
|
35
35
|
}
|
package/src/interfaces/ITask.ts
CHANGED
|
@@ -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
|
|
package/src/proto/email.proto
CHANGED
|
@@ -171,6 +171,7 @@ message QueueOrderQRCodeEmailRequest {
|
|
|
171
171
|
string promoterFee = 36;
|
|
172
172
|
string processingFee = 37;
|
|
173
173
|
string discount = 38;
|
|
174
|
+
string url = 39;
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
message QueueSeasonOrderReceiptEmailRequest {
|
|
@@ -311,5 +312,5 @@ service EmailService {
|
|
|
311
312
|
rpc salesReportEmail (salesReportEmailRequest) returns (google.protobuf.Empty) {}
|
|
312
313
|
rpc customerSheetEmail (customerSheetEmailRequest) returns (google.protobuf.Empty) {}
|
|
313
314
|
rpc waitListEmail (waitListEmailRequest) returns (google.protobuf.Empty) {}
|
|
314
|
-
|
|
315
|
+
rpc notifyEmail (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
|
|
315
316
|
}
|
package/src/proto/event.proto
CHANGED
|
@@ -647,8 +647,9 @@ service EventService {
|
|
|
647
647
|
|
|
648
648
|
// Sales report
|
|
649
649
|
rpc salesReport(SalesReportRequest) returns (SalesReportResponse) {}
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
|
|
651
|
+
// Notify Me
|
|
652
|
+
rpc notifyEvent(NotifyMeReportRequest) returns (FindEventByIdResponse) {}
|
|
652
653
|
|
|
653
654
|
// Wait List
|
|
654
655
|
rpc createWaitList(WaitListRequest) returns (WaitListResponse) {}
|