@sellout/models 0.0.124 → 0.0.126
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/fragments/event.fragment.d.ts +1 -0
- package/.dist/graphql/fragments/event.fragment.js +19 -1
- package/.dist/graphql/fragments/event.fragment.js.map +1 -1
- package/.dist/graphql/queries/promoCodeVerify.query.d.ts +2 -0
- package/.dist/graphql/queries/promoCodeVerify.query.js +30 -0
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +1 -0
- package/.dist/graphql/queries/publicEvent.query.js +1 -1
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
- package/.dist/graphql/queries/userExists.query.js +14 -2
- package/.dist/graphql/queries/userExists.query.js.map +1 -1
- package/.dist/sellout-proto.js +977 -7
- package/.dist/utils/EventUtil.js +3 -1
- package/.dist/utils/EventUtil.js.map +1 -1
- package/package.json +3 -3
- package/src/graphql/fragments/event.fragment.ts +20 -1
- package/src/graphql/queries/promoCodeVerify.query.ts +26 -0
- package/src/graphql/queries/publicEvent.query.ts +1 -1
- package/src/graphql/queries/userExists.query.ts +15 -3
- package/src/proto/event.proto +10 -1
- package/src/proto/order.proto +14 -0
- package/src/proto/user.proto +3 -0
- package/src/utils/EventUtil.ts +4 -1
|
@@ -20,6 +20,7 @@ const Event = {
|
|
|
20
20
|
webFlowEntity: {},
|
|
21
21
|
artists: {},
|
|
22
22
|
analytics: {},
|
|
23
|
+
purchasePortalPromotions: {},
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
26
|
Event.fragments = {
|
|
@@ -79,7 +80,6 @@ Event.fragments = {
|
|
|
79
80
|
visible
|
|
80
81
|
description
|
|
81
82
|
rollFees
|
|
82
|
-
promo
|
|
83
83
|
tiers {
|
|
84
84
|
_id
|
|
85
85
|
name
|
|
@@ -273,6 +273,24 @@ Event.fragments = {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
`,
|
|
276
|
+
purchasePortalPromotions: (0, graphql_tag_1.default) `
|
|
277
|
+
fragment EventPromotions on Event {
|
|
278
|
+
promotions {
|
|
279
|
+
_id
|
|
280
|
+
type
|
|
281
|
+
totalQty
|
|
282
|
+
remainingQty
|
|
283
|
+
ticketTypeIds
|
|
284
|
+
upgradeIds
|
|
285
|
+
active
|
|
286
|
+
startsAt
|
|
287
|
+
endsAt
|
|
288
|
+
useLimit
|
|
289
|
+
discountType
|
|
290
|
+
discountValue
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
`,
|
|
276
294
|
};
|
|
277
295
|
exports.default = Event;
|
|
278
296
|
// Event.fragments.event = gql`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.fragment.js","sourceRoot":"","sources":["../../../src/graphql/fragments/event.fragment.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;
|
|
1
|
+
{"version":3,"file":"event.fragment.js","sourceRoot":"","sources":["../../../src/graphql/fragments/event.fragment.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAwB9B,MAAM,KAAK,GAAkB;IAC3B,SAAS,EAAE;QACT,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,EAAE;QACf,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,aAAa,EAAE,EAAE;QACjB,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,EAAE;QACb,wBAAwB,EAAC,EAAE;KAC5B;CACF,CAAC;AAEF,KAAK,CAAC,SAAS,GAAG;IAChB,QAAQ,EAAE,IAAA,qBAAG,EAAA;;;;;;;;;;GAUZ;IACD,QAAQ,EAAE,IAAA,qBAAG,EAAA;;;;;;;;;;;;GAYZ;IACD,YAAY,EAAE,IAAA,qBAAG,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AAChC,kCAAkC;AAClC,oCAAoC;AACpC,gCAAgC;AAChC,4BAA4B;AAC5B,KAAK"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
|
+
const query = (0, graphql_tag_1.default) `
|
|
8
|
+
query eventTickets($eventId: String!, $promoCode: String!) {
|
|
9
|
+
eventTickets(eventId: $eventId, promoCode: $promoCode) {
|
|
10
|
+
promoType
|
|
11
|
+
eventTickets {
|
|
12
|
+
_id
|
|
13
|
+
name
|
|
14
|
+
totalQty
|
|
15
|
+
performanceIds
|
|
16
|
+
tiers {
|
|
17
|
+
_id
|
|
18
|
+
name
|
|
19
|
+
}
|
|
20
|
+
purchaseLimit
|
|
21
|
+
}
|
|
22
|
+
active
|
|
23
|
+
startsAt
|
|
24
|
+
endsAt
|
|
25
|
+
remainingQty
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
exports.default = query;
|
|
30
|
+
//# sourceMappingURL=promoCodeVerify.query.js.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;CAqBhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -60,7 +60,7 @@ const query = (0, graphql_tag_1.default) `
|
|
|
60
60
|
${event_fragment_1.default.fragments.performances}
|
|
61
61
|
${event_fragment_1.default.fragments.ticketTypes}
|
|
62
62
|
${event_fragment_1.default.fragments.upgrades}
|
|
63
|
-
${event_fragment_1.default.fragments.
|
|
63
|
+
${event_fragment_1.default.fragments.purchasePortalPromotions}
|
|
64
64
|
${event_fragment_1.default.fragments.customFields}
|
|
65
65
|
${event_fragment_1.default.fragments.fees}
|
|
66
66
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publicEvent.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/publicEvent.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkDb,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,WAAW;IAC3B,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"publicEvent.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/publicEvent.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkDb,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,WAAW;IAC3B,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,wBAAwB;IACxC,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,IAAI;CACvB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -5,8 +5,18 @@ 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
|
-
query userExists(
|
|
9
|
-
|
|
8
|
+
query userExists(
|
|
9
|
+
$email: String
|
|
10
|
+
$phoneNumber: String
|
|
11
|
+
$promoCode: String
|
|
12
|
+
$eventId: String
|
|
13
|
+
) {
|
|
14
|
+
userExists(
|
|
15
|
+
email: $email
|
|
16
|
+
phoneNumber: $phoneNumber
|
|
17
|
+
promoCode: $promoCode
|
|
18
|
+
eventId: $eventId
|
|
19
|
+
) {
|
|
10
20
|
userId
|
|
11
21
|
firstName
|
|
12
22
|
lastName
|
|
@@ -14,6 +24,8 @@ const query = (0, graphql_tag_1.default) `
|
|
|
14
24
|
hasPassword
|
|
15
25
|
phoneNumberVerifiedAt
|
|
16
26
|
preferredLogin
|
|
27
|
+
promoAvailable
|
|
28
|
+
__typename
|
|
17
29
|
}
|
|
18
30
|
}
|
|
19
31
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userExists.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userExists.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"userExists.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userExists.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;CAwBhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|