@sellout/models 0.0.126 → 0.0.128
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.
|
@@ -5,26 +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
|
|
24
|
+
remainingQty
|
|
21
25
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
endsAt
|
|
25
|
-
remainingQty
|
|
26
|
+
purchaseLimit
|
|
27
|
+
visible
|
|
26
28
|
}
|
|
29
|
+
active
|
|
30
|
+
startsAt
|
|
31
|
+
endsAt
|
|
32
|
+
remainingQty
|
|
27
33
|
}
|
|
34
|
+
}
|
|
28
35
|
`;
|
|
29
36
|
exports.default = query;
|
|
30
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
|
@@ -17223,6 +17223,7 @@ $root.CreateOrderPaymentIntentParams = (function() {
|
|
|
17223
17223
|
* @property {string|null} [paymentMethodType] CreateOrderPaymentIntentParams paymentMethodType
|
|
17224
17224
|
* @property {string|null} [paymentMethodId] CreateOrderPaymentIntentParams paymentMethodId
|
|
17225
17225
|
* @property {string|null} [stalePaymentIntentId] CreateOrderPaymentIntentParams stalePaymentIntentId
|
|
17226
|
+
* @property {string|null} [channel] CreateOrderPaymentIntentParams channel
|
|
17226
17227
|
*/
|
|
17227
17228
|
|
|
17228
17229
|
/**
|
|
@@ -17314,6 +17315,14 @@ $root.CreateOrderPaymentIntentParams = (function() {
|
|
|
17314
17315
|
*/
|
|
17315
17316
|
CreateOrderPaymentIntentParams.prototype.stalePaymentIntentId = "";
|
|
17316
17317
|
|
|
17318
|
+
/**
|
|
17319
|
+
* CreateOrderPaymentIntentParams channel.
|
|
17320
|
+
* @member {string} channel
|
|
17321
|
+
* @memberof CreateOrderPaymentIntentParams
|
|
17322
|
+
* @instance
|
|
17323
|
+
*/
|
|
17324
|
+
CreateOrderPaymentIntentParams.prototype.channel = "";
|
|
17325
|
+
|
|
17317
17326
|
/**
|
|
17318
17327
|
* Creates a new CreateOrderPaymentIntentParams instance using the specified properties.
|
|
17319
17328
|
* @function create
|
|
@@ -17358,6 +17367,8 @@ $root.CreateOrderPaymentIntentParams = (function() {
|
|
|
17358
17367
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.paymentMethodId);
|
|
17359
17368
|
if (message.stalePaymentIntentId != null && Object.hasOwnProperty.call(message, "stalePaymentIntentId"))
|
|
17360
17369
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.stalePaymentIntentId);
|
|
17370
|
+
if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
|
|
17371
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.channel);
|
|
17361
17372
|
return writer;
|
|
17362
17373
|
};
|
|
17363
17374
|
|
|
@@ -17423,6 +17434,9 @@ $root.CreateOrderPaymentIntentParams = (function() {
|
|
|
17423
17434
|
case 8:
|
|
17424
17435
|
message.stalePaymentIntentId = reader.string();
|
|
17425
17436
|
break;
|
|
17437
|
+
case 9:
|
|
17438
|
+
message.channel = reader.string();
|
|
17439
|
+
break;
|
|
17426
17440
|
default:
|
|
17427
17441
|
reader.skipType(tag & 7);
|
|
17428
17442
|
break;
|
|
@@ -17497,6 +17511,9 @@ $root.CreateOrderPaymentIntentParams = (function() {
|
|
|
17497
17511
|
if (message.stalePaymentIntentId != null && message.hasOwnProperty("stalePaymentIntentId"))
|
|
17498
17512
|
if (!$util.isString(message.stalePaymentIntentId))
|
|
17499
17513
|
return "stalePaymentIntentId: string expected";
|
|
17514
|
+
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
17515
|
+
if (!$util.isString(message.channel))
|
|
17516
|
+
return "channel: string expected";
|
|
17500
17517
|
return null;
|
|
17501
17518
|
};
|
|
17502
17519
|
|
|
@@ -17546,6 +17563,8 @@ $root.CreateOrderPaymentIntentParams = (function() {
|
|
|
17546
17563
|
message.paymentMethodId = String(object.paymentMethodId);
|
|
17547
17564
|
if (object.stalePaymentIntentId != null)
|
|
17548
17565
|
message.stalePaymentIntentId = String(object.stalePaymentIntentId);
|
|
17566
|
+
if (object.channel != null)
|
|
17567
|
+
message.channel = String(object.channel);
|
|
17549
17568
|
return message;
|
|
17550
17569
|
};
|
|
17551
17570
|
|
|
@@ -17574,6 +17593,7 @@ $root.CreateOrderPaymentIntentParams = (function() {
|
|
|
17574
17593
|
object.paymentMethodType = "";
|
|
17575
17594
|
object.paymentMethodId = "";
|
|
17576
17595
|
object.stalePaymentIntentId = "";
|
|
17596
|
+
object.channel = "";
|
|
17577
17597
|
}
|
|
17578
17598
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
17579
17599
|
object.userId = message.userId;
|
|
@@ -17599,6 +17619,8 @@ $root.CreateOrderPaymentIntentParams = (function() {
|
|
|
17599
17619
|
object.paymentMethodId = message.paymentMethodId;
|
|
17600
17620
|
if (message.stalePaymentIntentId != null && message.hasOwnProperty("stalePaymentIntentId"))
|
|
17601
17621
|
object.stalePaymentIntentId = message.stalePaymentIntentId;
|
|
17622
|
+
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
17623
|
+
object.channel = message.channel;
|
|
17602
17624
|
return object;
|
|
17603
17625
|
};
|
|
17604
17626
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.128",
|
|
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.128",
|
|
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": "e84566889663db8bb73bb5e349de871a74beb938"
|
|
35
35
|
}
|
|
@@ -1,26 +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
|
|
20
|
+
remainingQty
|
|
17
21
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
endsAt
|
|
21
|
-
remainingQty
|
|
22
|
+
purchaseLimit
|
|
23
|
+
visible
|
|
22
24
|
}
|
|
25
|
+
active
|
|
26
|
+
startsAt
|
|
27
|
+
endsAt
|
|
28
|
+
remainingQty
|
|
23
29
|
}
|
|
30
|
+
}
|
|
24
31
|
`;
|
|
25
32
|
|
|
26
33
|
export default query;
|
package/src/proto/order.proto
CHANGED