@sellout/models 0.0.127 → 0.0.129
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/graphql/queries/promoCodeVerify.query.js +21 -15
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +1 -1
- package/.dist/sellout-proto.js +287 -0
- package/package.json +3 -3
- package/src/graphql/queries/promoCodeVerify.query.ts +21 -15
- package/src/proto/email.proto +8 -0
- package/src/proto/order.proto +1 -0
|
@@ -5,27 +5,33 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
7
|
const query = (0, graphql_tag_1.default) `
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
query eventTickets($eventId: String!, $promoCode: String!) {
|
|
9
|
+
eventTickets(eventId: $eventId, promoCode: $promoCode) {
|
|
10
|
+
promoType
|
|
11
|
+
eventTickets {
|
|
12
|
+
_id
|
|
13
|
+
name
|
|
14
|
+
description
|
|
15
|
+
totalQty
|
|
16
|
+
performanceIds
|
|
17
|
+
tiers {
|
|
12
18
|
_id
|
|
13
19
|
name
|
|
20
|
+
price
|
|
21
|
+
startsAt
|
|
22
|
+
endsAt
|
|
14
23
|
totalQty
|
|
15
|
-
|
|
16
|
-
tiers {
|
|
17
|
-
_id
|
|
18
|
-
name
|
|
19
|
-
}
|
|
20
|
-
purchaseLimit
|
|
21
|
-
visible
|
|
24
|
+
remainingQty
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
endsAt
|
|
26
|
-
remainingQty
|
|
26
|
+
purchaseLimit
|
|
27
|
+
visible
|
|
27
28
|
}
|
|
29
|
+
active
|
|
30
|
+
startsAt
|
|
31
|
+
endsAt
|
|
32
|
+
remainingQty
|
|
28
33
|
}
|
|
34
|
+
}
|
|
29
35
|
`;
|
|
30
36
|
exports.default = query;
|
|
31
37
|
//# sourceMappingURL=promoCodeVerify.query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promoCodeVerify.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/promoCodeVerify.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"promoCodeVerify.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/promoCodeVerify.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
package/.dist/sellout-proto.js
CHANGED
|
@@ -21694,6 +21694,7 @@ $root.GenerateOrderReportRequest = (function() {
|
|
|
21694
21694
|
* @property {string|null} [spanContext] GenerateOrderReportRequest spanContext
|
|
21695
21695
|
* @property {string|null} [orgId] GenerateOrderReportRequest orgId
|
|
21696
21696
|
* @property {IOrderQuery|null} [query] GenerateOrderReportRequest query
|
|
21697
|
+
* @property {string|null} [userId] GenerateOrderReportRequest userId
|
|
21697
21698
|
*/
|
|
21698
21699
|
|
|
21699
21700
|
/**
|
|
@@ -21735,6 +21736,14 @@ $root.GenerateOrderReportRequest = (function() {
|
|
|
21735
21736
|
*/
|
|
21736
21737
|
GenerateOrderReportRequest.prototype.query = null;
|
|
21737
21738
|
|
|
21739
|
+
/**
|
|
21740
|
+
* GenerateOrderReportRequest userId.
|
|
21741
|
+
* @member {string} userId
|
|
21742
|
+
* @memberof GenerateOrderReportRequest
|
|
21743
|
+
* @instance
|
|
21744
|
+
*/
|
|
21745
|
+
GenerateOrderReportRequest.prototype.userId = "";
|
|
21746
|
+
|
|
21738
21747
|
/**
|
|
21739
21748
|
* Creates a new GenerateOrderReportRequest instance using the specified properties.
|
|
21740
21749
|
* @function create
|
|
@@ -21765,6 +21774,8 @@ $root.GenerateOrderReportRequest = (function() {
|
|
|
21765
21774
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
21766
21775
|
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
21767
21776
|
$root.OrderQuery.encode(message.query, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
21777
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
21778
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
21768
21779
|
return writer;
|
|
21769
21780
|
};
|
|
21770
21781
|
|
|
@@ -21808,6 +21819,9 @@ $root.GenerateOrderReportRequest = (function() {
|
|
|
21808
21819
|
case 2:
|
|
21809
21820
|
message.query = $root.OrderQuery.decode(reader, reader.uint32());
|
|
21810
21821
|
break;
|
|
21822
|
+
case 3:
|
|
21823
|
+
message.userId = reader.string();
|
|
21824
|
+
break;
|
|
21811
21825
|
default:
|
|
21812
21826
|
reader.skipType(tag & 7);
|
|
21813
21827
|
break;
|
|
@@ -21854,6 +21868,9 @@ $root.GenerateOrderReportRequest = (function() {
|
|
|
21854
21868
|
if (error)
|
|
21855
21869
|
return "query." + error;
|
|
21856
21870
|
}
|
|
21871
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
21872
|
+
if (!$util.isString(message.userId))
|
|
21873
|
+
return "userId: string expected";
|
|
21857
21874
|
return null;
|
|
21858
21875
|
};
|
|
21859
21876
|
|
|
@@ -21878,6 +21895,8 @@ $root.GenerateOrderReportRequest = (function() {
|
|
|
21878
21895
|
throw TypeError(".GenerateOrderReportRequest.query: object expected");
|
|
21879
21896
|
message.query = $root.OrderQuery.fromObject(object.query);
|
|
21880
21897
|
}
|
|
21898
|
+
if (object.userId != null)
|
|
21899
|
+
message.userId = String(object.userId);
|
|
21881
21900
|
return message;
|
|
21882
21901
|
};
|
|
21883
21902
|
|
|
@@ -21898,6 +21917,7 @@ $root.GenerateOrderReportRequest = (function() {
|
|
|
21898
21917
|
object.spanContext = "";
|
|
21899
21918
|
object.orgId = "";
|
|
21900
21919
|
object.query = null;
|
|
21920
|
+
object.userId = "";
|
|
21901
21921
|
}
|
|
21902
21922
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
21903
21923
|
object.spanContext = message.spanContext;
|
|
@@ -21905,6 +21925,8 @@ $root.GenerateOrderReportRequest = (function() {
|
|
|
21905
21925
|
object.orgId = message.orgId;
|
|
21906
21926
|
if (message.query != null && message.hasOwnProperty("query"))
|
|
21907
21927
|
object.query = $root.OrderQuery.toObject(message.query, options);
|
|
21928
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
21929
|
+
object.userId = message.userId;
|
|
21908
21930
|
return object;
|
|
21909
21931
|
};
|
|
21910
21932
|
|
|
@@ -28641,6 +28663,238 @@ $root.OrderRefundItem = (function() {
|
|
|
28641
28663
|
return OrderRefundItem;
|
|
28642
28664
|
})();
|
|
28643
28665
|
|
|
28666
|
+
$root.orderSheetEmailRequest = (function() {
|
|
28667
|
+
|
|
28668
|
+
/**
|
|
28669
|
+
* Properties of an orderSheetEmailRequest.
|
|
28670
|
+
* @exports IorderSheetEmailRequest
|
|
28671
|
+
* @interface IorderSheetEmailRequest
|
|
28672
|
+
* @property {string|null} [toAddress] orderSheetEmailRequest toAddress
|
|
28673
|
+
* @property {string|null} [orgName] orderSheetEmailRequest orgName
|
|
28674
|
+
* @property {string|null} [url] orderSheetEmailRequest url
|
|
28675
|
+
*/
|
|
28676
|
+
|
|
28677
|
+
/**
|
|
28678
|
+
* Constructs a new orderSheetEmailRequest.
|
|
28679
|
+
* @exports orderSheetEmailRequest
|
|
28680
|
+
* @classdesc Represents an orderSheetEmailRequest.
|
|
28681
|
+
* @implements IorderSheetEmailRequest
|
|
28682
|
+
* @constructor
|
|
28683
|
+
* @param {IorderSheetEmailRequest=} [properties] Properties to set
|
|
28684
|
+
*/
|
|
28685
|
+
function orderSheetEmailRequest(properties) {
|
|
28686
|
+
if (properties)
|
|
28687
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28688
|
+
if (properties[keys[i]] != null)
|
|
28689
|
+
this[keys[i]] = properties[keys[i]];
|
|
28690
|
+
}
|
|
28691
|
+
|
|
28692
|
+
/**
|
|
28693
|
+
* orderSheetEmailRequest toAddress.
|
|
28694
|
+
* @member {string} toAddress
|
|
28695
|
+
* @memberof orderSheetEmailRequest
|
|
28696
|
+
* @instance
|
|
28697
|
+
*/
|
|
28698
|
+
orderSheetEmailRequest.prototype.toAddress = "";
|
|
28699
|
+
|
|
28700
|
+
/**
|
|
28701
|
+
* orderSheetEmailRequest orgName.
|
|
28702
|
+
* @member {string} orgName
|
|
28703
|
+
* @memberof orderSheetEmailRequest
|
|
28704
|
+
* @instance
|
|
28705
|
+
*/
|
|
28706
|
+
orderSheetEmailRequest.prototype.orgName = "";
|
|
28707
|
+
|
|
28708
|
+
/**
|
|
28709
|
+
* orderSheetEmailRequest url.
|
|
28710
|
+
* @member {string} url
|
|
28711
|
+
* @memberof orderSheetEmailRequest
|
|
28712
|
+
* @instance
|
|
28713
|
+
*/
|
|
28714
|
+
orderSheetEmailRequest.prototype.url = "";
|
|
28715
|
+
|
|
28716
|
+
/**
|
|
28717
|
+
* Creates a new orderSheetEmailRequest instance using the specified properties.
|
|
28718
|
+
* @function create
|
|
28719
|
+
* @memberof orderSheetEmailRequest
|
|
28720
|
+
* @static
|
|
28721
|
+
* @param {IorderSheetEmailRequest=} [properties] Properties to set
|
|
28722
|
+
* @returns {orderSheetEmailRequest} orderSheetEmailRequest instance
|
|
28723
|
+
*/
|
|
28724
|
+
orderSheetEmailRequest.create = function create(properties) {
|
|
28725
|
+
return new orderSheetEmailRequest(properties);
|
|
28726
|
+
};
|
|
28727
|
+
|
|
28728
|
+
/**
|
|
28729
|
+
* Encodes the specified orderSheetEmailRequest message. Does not implicitly {@link orderSheetEmailRequest.verify|verify} messages.
|
|
28730
|
+
* @function encode
|
|
28731
|
+
* @memberof orderSheetEmailRequest
|
|
28732
|
+
* @static
|
|
28733
|
+
* @param {IorderSheetEmailRequest} message orderSheetEmailRequest message or plain object to encode
|
|
28734
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28735
|
+
* @returns {$protobuf.Writer} Writer
|
|
28736
|
+
*/
|
|
28737
|
+
orderSheetEmailRequest.encode = function encode(message, writer) {
|
|
28738
|
+
if (!writer)
|
|
28739
|
+
writer = $Writer.create();
|
|
28740
|
+
if (message.toAddress != null && Object.hasOwnProperty.call(message, "toAddress"))
|
|
28741
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.toAddress);
|
|
28742
|
+
if (message.orgName != null && Object.hasOwnProperty.call(message, "orgName"))
|
|
28743
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgName);
|
|
28744
|
+
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
28745
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
|
|
28746
|
+
return writer;
|
|
28747
|
+
};
|
|
28748
|
+
|
|
28749
|
+
/**
|
|
28750
|
+
* Encodes the specified orderSheetEmailRequest message, length delimited. Does not implicitly {@link orderSheetEmailRequest.verify|verify} messages.
|
|
28751
|
+
* @function encodeDelimited
|
|
28752
|
+
* @memberof orderSheetEmailRequest
|
|
28753
|
+
* @static
|
|
28754
|
+
* @param {IorderSheetEmailRequest} message orderSheetEmailRequest message or plain object to encode
|
|
28755
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28756
|
+
* @returns {$protobuf.Writer} Writer
|
|
28757
|
+
*/
|
|
28758
|
+
orderSheetEmailRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28759
|
+
return this.encode(message, writer).ldelim();
|
|
28760
|
+
};
|
|
28761
|
+
|
|
28762
|
+
/**
|
|
28763
|
+
* Decodes an orderSheetEmailRequest message from the specified reader or buffer.
|
|
28764
|
+
* @function decode
|
|
28765
|
+
* @memberof orderSheetEmailRequest
|
|
28766
|
+
* @static
|
|
28767
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28768
|
+
* @param {number} [length] Message length if known beforehand
|
|
28769
|
+
* @returns {orderSheetEmailRequest} orderSheetEmailRequest
|
|
28770
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28771
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28772
|
+
*/
|
|
28773
|
+
orderSheetEmailRequest.decode = function decode(reader, length) {
|
|
28774
|
+
if (!(reader instanceof $Reader))
|
|
28775
|
+
reader = $Reader.create(reader);
|
|
28776
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.orderSheetEmailRequest();
|
|
28777
|
+
while (reader.pos < end) {
|
|
28778
|
+
var tag = reader.uint32();
|
|
28779
|
+
switch (tag >>> 3) {
|
|
28780
|
+
case 0:
|
|
28781
|
+
message.toAddress = reader.string();
|
|
28782
|
+
break;
|
|
28783
|
+
case 1:
|
|
28784
|
+
message.orgName = reader.string();
|
|
28785
|
+
break;
|
|
28786
|
+
case 2:
|
|
28787
|
+
message.url = reader.string();
|
|
28788
|
+
break;
|
|
28789
|
+
default:
|
|
28790
|
+
reader.skipType(tag & 7);
|
|
28791
|
+
break;
|
|
28792
|
+
}
|
|
28793
|
+
}
|
|
28794
|
+
return message;
|
|
28795
|
+
};
|
|
28796
|
+
|
|
28797
|
+
/**
|
|
28798
|
+
* Decodes an orderSheetEmailRequest message from the specified reader or buffer, length delimited.
|
|
28799
|
+
* @function decodeDelimited
|
|
28800
|
+
* @memberof orderSheetEmailRequest
|
|
28801
|
+
* @static
|
|
28802
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28803
|
+
* @returns {orderSheetEmailRequest} orderSheetEmailRequest
|
|
28804
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28805
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28806
|
+
*/
|
|
28807
|
+
orderSheetEmailRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
28808
|
+
if (!(reader instanceof $Reader))
|
|
28809
|
+
reader = new $Reader(reader);
|
|
28810
|
+
return this.decode(reader, reader.uint32());
|
|
28811
|
+
};
|
|
28812
|
+
|
|
28813
|
+
/**
|
|
28814
|
+
* Verifies an orderSheetEmailRequest message.
|
|
28815
|
+
* @function verify
|
|
28816
|
+
* @memberof orderSheetEmailRequest
|
|
28817
|
+
* @static
|
|
28818
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28819
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28820
|
+
*/
|
|
28821
|
+
orderSheetEmailRequest.verify = function verify(message) {
|
|
28822
|
+
if (typeof message !== "object" || message === null)
|
|
28823
|
+
return "object expected";
|
|
28824
|
+
if (message.toAddress != null && message.hasOwnProperty("toAddress"))
|
|
28825
|
+
if (!$util.isString(message.toAddress))
|
|
28826
|
+
return "toAddress: string expected";
|
|
28827
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
28828
|
+
if (!$util.isString(message.orgName))
|
|
28829
|
+
return "orgName: string expected";
|
|
28830
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
28831
|
+
if (!$util.isString(message.url))
|
|
28832
|
+
return "url: string expected";
|
|
28833
|
+
return null;
|
|
28834
|
+
};
|
|
28835
|
+
|
|
28836
|
+
/**
|
|
28837
|
+
* Creates an orderSheetEmailRequest message from a plain object. Also converts values to their respective internal types.
|
|
28838
|
+
* @function fromObject
|
|
28839
|
+
* @memberof orderSheetEmailRequest
|
|
28840
|
+
* @static
|
|
28841
|
+
* @param {Object.<string,*>} object Plain object
|
|
28842
|
+
* @returns {orderSheetEmailRequest} orderSheetEmailRequest
|
|
28843
|
+
*/
|
|
28844
|
+
orderSheetEmailRequest.fromObject = function fromObject(object) {
|
|
28845
|
+
if (object instanceof $root.orderSheetEmailRequest)
|
|
28846
|
+
return object;
|
|
28847
|
+
var message = new $root.orderSheetEmailRequest();
|
|
28848
|
+
if (object.toAddress != null)
|
|
28849
|
+
message.toAddress = String(object.toAddress);
|
|
28850
|
+
if (object.orgName != null)
|
|
28851
|
+
message.orgName = String(object.orgName);
|
|
28852
|
+
if (object.url != null)
|
|
28853
|
+
message.url = String(object.url);
|
|
28854
|
+
return message;
|
|
28855
|
+
};
|
|
28856
|
+
|
|
28857
|
+
/**
|
|
28858
|
+
* Creates a plain object from an orderSheetEmailRequest message. Also converts values to other types if specified.
|
|
28859
|
+
* @function toObject
|
|
28860
|
+
* @memberof orderSheetEmailRequest
|
|
28861
|
+
* @static
|
|
28862
|
+
* @param {orderSheetEmailRequest} message orderSheetEmailRequest
|
|
28863
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28864
|
+
* @returns {Object.<string,*>} Plain object
|
|
28865
|
+
*/
|
|
28866
|
+
orderSheetEmailRequest.toObject = function toObject(message, options) {
|
|
28867
|
+
if (!options)
|
|
28868
|
+
options = {};
|
|
28869
|
+
var object = {};
|
|
28870
|
+
if (options.defaults) {
|
|
28871
|
+
object.toAddress = "";
|
|
28872
|
+
object.orgName = "";
|
|
28873
|
+
object.url = "";
|
|
28874
|
+
}
|
|
28875
|
+
if (message.toAddress != null && message.hasOwnProperty("toAddress"))
|
|
28876
|
+
object.toAddress = message.toAddress;
|
|
28877
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
28878
|
+
object.orgName = message.orgName;
|
|
28879
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
28880
|
+
object.url = message.url;
|
|
28881
|
+
return object;
|
|
28882
|
+
};
|
|
28883
|
+
|
|
28884
|
+
/**
|
|
28885
|
+
* Converts this orderSheetEmailRequest to JSON.
|
|
28886
|
+
* @function toJSON
|
|
28887
|
+
* @memberof orderSheetEmailRequest
|
|
28888
|
+
* @instance
|
|
28889
|
+
* @returns {Object.<string,*>} JSON object
|
|
28890
|
+
*/
|
|
28891
|
+
orderSheetEmailRequest.prototype.toJSON = function toJSON() {
|
|
28892
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28893
|
+
};
|
|
28894
|
+
|
|
28895
|
+
return orderSheetEmailRequest;
|
|
28896
|
+
})();
|
|
28897
|
+
|
|
28644
28898
|
$root.QueueOrderReceiptEmailRequest = (function() {
|
|
28645
28899
|
|
|
28646
28900
|
/**
|
|
@@ -32120,6 +32374,39 @@ $root.EmailService = (function() {
|
|
|
32120
32374
|
* @variation 2
|
|
32121
32375
|
*/
|
|
32122
32376
|
|
|
32377
|
+
/**
|
|
32378
|
+
* Callback as used by {@link EmailService#orderSheetEmail}.
|
|
32379
|
+
* @memberof EmailService
|
|
32380
|
+
* @typedef orderSheetEmailCallback
|
|
32381
|
+
* @type {function}
|
|
32382
|
+
* @param {Error|null} error Error, if any
|
|
32383
|
+
* @param {google.protobuf.Empty} [response] Empty
|
|
32384
|
+
*/
|
|
32385
|
+
|
|
32386
|
+
/**
|
|
32387
|
+
* Calls orderSheetEmail.
|
|
32388
|
+
* @function orderSheetEmail
|
|
32389
|
+
* @memberof EmailService
|
|
32390
|
+
* @instance
|
|
32391
|
+
* @param {IorderSheetEmailRequest} request orderSheetEmailRequest message or plain object
|
|
32392
|
+
* @param {EmailService.orderSheetEmailCallback} callback Node-style callback called with the error, if any, and Empty
|
|
32393
|
+
* @returns {undefined}
|
|
32394
|
+
* @variation 1
|
|
32395
|
+
*/
|
|
32396
|
+
Object.defineProperty(EmailService.prototype.orderSheetEmail = function orderSheetEmail(request, callback) {
|
|
32397
|
+
return this.rpcCall(orderSheetEmail, $root.orderSheetEmailRequest, $root.google.protobuf.Empty, request, callback);
|
|
32398
|
+
}, "name", { value: "orderSheetEmail" });
|
|
32399
|
+
|
|
32400
|
+
/**
|
|
32401
|
+
* Calls orderSheetEmail.
|
|
32402
|
+
* @function orderSheetEmail
|
|
32403
|
+
* @memberof EmailService
|
|
32404
|
+
* @instance
|
|
32405
|
+
* @param {IorderSheetEmailRequest} request orderSheetEmailRequest message or plain object
|
|
32406
|
+
* @returns {Promise<google.protobuf.Empty>} Promise
|
|
32407
|
+
* @variation 2
|
|
32408
|
+
*/
|
|
32409
|
+
|
|
32123
32410
|
return EmailService;
|
|
32124
32411
|
})();
|
|
32125
32412
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.129",
|
|
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.129",
|
|
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": "dcd12af2db6aaf0ad2d7b8ea209d193fe5b8c1d4"
|
|
35
35
|
}
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
2
|
|
|
3
3
|
const query = gql`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
query eventTickets($eventId: String!, $promoCode: String!) {
|
|
5
|
+
eventTickets(eventId: $eventId, promoCode: $promoCode) {
|
|
6
|
+
promoType
|
|
7
|
+
eventTickets {
|
|
8
|
+
_id
|
|
9
|
+
name
|
|
10
|
+
description
|
|
11
|
+
totalQty
|
|
12
|
+
performanceIds
|
|
13
|
+
tiers {
|
|
8
14
|
_id
|
|
9
15
|
name
|
|
16
|
+
price
|
|
17
|
+
startsAt
|
|
18
|
+
endsAt
|
|
10
19
|
totalQty
|
|
11
|
-
|
|
12
|
-
tiers {
|
|
13
|
-
_id
|
|
14
|
-
name
|
|
15
|
-
}
|
|
16
|
-
purchaseLimit
|
|
17
|
-
visible
|
|
20
|
+
remainingQty
|
|
18
21
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
endsAt
|
|
22
|
-
remainingQty
|
|
22
|
+
purchaseLimit
|
|
23
|
+
visible
|
|
23
24
|
}
|
|
25
|
+
active
|
|
26
|
+
startsAt
|
|
27
|
+
endsAt
|
|
28
|
+
remainingQty
|
|
24
29
|
}
|
|
30
|
+
}
|
|
25
31
|
`;
|
|
26
32
|
|
|
27
33
|
export default query;
|
package/src/proto/email.proto
CHANGED
|
@@ -45,6 +45,12 @@ message OrderRefundItem {
|
|
|
45
45
|
string refundedAmount = 1;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
message orderSheetEmailRequest {
|
|
49
|
+
string toAddress = 0;
|
|
50
|
+
string orgName = 1;
|
|
51
|
+
string url = 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
48
54
|
message QueueOrderReceiptEmailRequest {
|
|
49
55
|
string spanContext = 0;
|
|
50
56
|
string toAddress = 1;
|
|
@@ -179,4 +185,6 @@ service EmailService {
|
|
|
179
185
|
rpc queueOrderQRCodeEmail (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
|
|
180
186
|
rpc queueOrderRefundEmail (QueueOrderRefundEmailRequest) returns (google.protobuf.Empty) {}
|
|
181
187
|
rpc queueOrderCanceledEmail (QueueOrderCanceledEmailRequest) returns (google.protobuf.Empty) {}
|
|
188
|
+
rpc orderSheetEmail (orderSheetEmailRequest) returns (google.protobuf.Empty) {}
|
|
189
|
+
|
|
182
190
|
}
|