@sellout/models 0.0.63 → 0.0.65
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/enums/OrderChannelEnum.d.ts +4 -0
- package/.dist/enums/OrderChannelEnum.js +10 -0
- package/.dist/enums/OrderChannelEnum.js.map +1 -0
- package/.dist/enums/OrderItemTypeEnum.d.ts +4 -0
- package/.dist/enums/OrderItemTypeEnum.js +10 -0
- package/.dist/enums/OrderItemTypeEnum.js.map +1 -0
- package/.dist/enums/PaymentMethodEnum.d.ts +5 -0
- package/.dist/enums/PaymentMethodEnum.js +10 -0
- package/.dist/enums/PaymentMethodEnum.js.map +1 -0
- package/.dist/graphql/fragments/order.fragment.js +2 -0
- package/.dist/graphql/fragments/order.fragment.js.map +1 -1
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js +10 -1
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js.map +1 -1
- package/.dist/graphql/mutations/breakApartOrder.js +1 -8
- package/.dist/graphql/mutations/breakApartOrder.js.map +1 -1
- package/.dist/graphql/mutations/createOrder.mutation.js +0 -3
- package/.dist/graphql/mutations/createOrder.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js +16 -0
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createStripeSetupIntent.d.ts +2 -0
- package/.dist/graphql/mutations/{setUserOrgContextId.js → createStripeSetupIntent.js} +3 -5
- package/.dist/graphql/mutations/createStripeSetupIntent.js.map +1 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.js +21 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.mutation.js.map +1 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.d.ts +2 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.js +21 -0
- package/.dist/graphql/mutations/listStripeTerminalReaders.query.js.map +1 -0
- package/.dist/graphql/mutations/register.mutation.js +2 -9
- package/.dist/graphql/mutations/register.mutation.js.map +1 -1
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.js +13 -0
- package/.dist/graphql/mutations/registerStripeTermainlReader.mutation.js.map +1 -0
- package/.dist/graphql/mutations/registerStripeTerminalReader.d.ts +2 -0
- package/.dist/graphql/mutations/registerStripeTerminalReader.js +13 -0
- package/.dist/graphql/mutations/registerStripeTerminalReader.js.map +1 -0
- package/.dist/graphql/mutations/verifyPhoneAuthentication.mutation.js +15 -0
- package/.dist/graphql/mutations/verifyPhoneAuthentication.mutation.js.map +1 -0
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.js +15 -0
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.js.map +1 -0
- package/.dist/graphql/queries/metrics.query.js +29 -0
- package/.dist/graphql/queries/metrics.query.js.map +1 -0
- package/.dist/graphql/queries/metricsData.query.d.ts +2 -0
- package/.dist/graphql/queries/metricsData.query.js +29 -0
- package/.dist/graphql/queries/metricsData.query.js.map +1 -0
- package/.dist/graphql/queries/order.query.js +1 -0
- package/.dist/graphql/queries/order.query.js.map +1 -1
- package/.dist/graphql/queries/publicEvent.query.js +1 -0
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
- package/.dist/graphql/queries/userProfile.query.js +3 -2
- package/.dist/graphql/queries/userProfile.query.js.map +1 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +3 -2
- package/.dist/interfaces/IMetricData.d.ts +57 -0
- package/.dist/interfaces/IMetricData.js +70 -0
- package/.dist/interfaces/IMetricData.js.map +1 -0
- package/.dist/interfaces/IOrder.d.ts +2 -2
- package/.dist/interfaces/IStripe.d.ts +9 -0
- package/.dist/interfaces/{ISecondaryEmail.js → IStripe.js} +1 -1
- package/.dist/interfaces/IStripe.js.map +1 -0
- package/.dist/interfaces/IStripeCustomer.d.ts +2 -2
- package/.dist/interfaces/IStripePaymentMethod.d.ts +10 -0
- package/.dist/interfaces/IStripePaymentMethod.js +3 -0
- package/.dist/interfaces/IStripePaymentMethod.js.map +1 -0
- package/.dist/interfaces/IStripeSource.d.ts +1 -1
- package/.dist/schemas/Order.d.ts +4 -4
- package/.dist/schemas/Order.js +4 -4
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/sellout-proto.js +5554 -3087
- package/.dist/utils/MetricsUtil.d.ts +7 -0
- package/.dist/utils/MetricsUtil.js +29 -0
- package/.dist/utils/MetricsUtil.js.map +1 -0
- package/.dist/utils/PaymentUtil.js +6 -6
- package/.dist/utils/PaymentUtil.js.map +1 -1
- package/.dist/utils/fee-util-broken-but-why.d.ts +8 -0
- package/.dist/utils/fee-util-broken-but-why.js +38 -0
- package/.dist/utils/fee-util-broken-but-why.js.map +1 -0
- package/package.json +4 -4
- package/src/enums/OrderChannelEnum.ts +4 -0
- package/src/enums/OrderItemTypeEnum.ts +4 -0
- package/src/graphql/fragments/order.fragment.ts +2 -0
- package/src/graphql/mutations/attachStripePaymentMethod.mutation.ts +10 -1
- package/src/graphql/mutations/breakApartOrder.ts +1 -8
- package/src/graphql/mutations/createOrder.mutation.ts +0 -3
- package/src/graphql/mutations/createOrderPaymentIntent.mutation.ts +12 -0
- package/src/graphql/mutations/register.mutation.ts +2 -9
- package/src/graphql/queries/order.query.ts +1 -0
- package/src/graphql/queries/publicEvent.query.ts +1 -0
- package/src/graphql/queries/userProfile.query.ts +3 -2
- package/src/interfaces/ICreateOrderParams.ts +3 -2
- package/src/interfaces/IOrder.ts +2 -2
- package/src/interfaces/IStripeCustomer.ts +2 -2
- package/src/interfaces/{IStripeSource.ts → IStripePaymentMethod.ts} +2 -2
- package/src/proto/order.proto +45 -13
- package/src/proto/stripe.proto +38 -3
- package/src/schemas/Order.ts +4 -4
- package/src/utils/PaymentUtil.ts +6 -7
- package/.dist/graphql/mutations/setUserOrgContextId.js.map +0 -1
- package/.dist/graphql/queries/customerProfile.js +0 -42
- package/.dist/graphql/queries/customerProfile.js.map +0 -1
- package/.dist/graphql/queries/organization.query.js +0 -49
- package/.dist/graphql/queries/organization.query.js.map +0 -1
- package/.dist/graphql/queries/organizations.js +0 -49
- package/.dist/graphql/queries/organizations.js.map +0 -1
- package/.dist/interfaces/ISecondaryEmail.d.ts +0 -4
- package/.dist/interfaces/ISecondaryEmail.js.map +0 -1
- package/.dist/schemas/SecondaryEmail.d.ts +0 -12
- package/.dist/schemas/SecondaryEmail.js +0 -14
- package/.dist/schemas/SecondaryEmail.js.map +0 -1
- package/src/enums/OrderDeliveryMethodEnum.ts +0 -5
- /package/.dist/graphql/mutations/{setUserOrgContextId.d.ts → createOrderPaymentIntent.mutation.d.ts} +0 -0
- /package/.dist/graphql/{queries/customerProfile.d.ts → mutations/verifyPhoneAuthentication.mutation.d.ts} +0 -0
- /package/.dist/graphql/{queries/organization.query.d.ts → mutations/verifyUserPhoneAuthentication.d.ts} +0 -0
- /package/.dist/graphql/queries/{organizations.d.ts → metrics.query.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderChannelEnum = void 0;
|
|
4
|
+
var OrderChannelEnum;
|
|
5
|
+
(function (OrderChannelEnum) {
|
|
6
|
+
OrderChannelEnum["Online"] = "Online";
|
|
7
|
+
OrderChannelEnum["BoxOffice"] = "BoxOffice";
|
|
8
|
+
})(OrderChannelEnum = exports.OrderChannelEnum || (exports.OrderChannelEnum = {}));
|
|
9
|
+
;
|
|
10
|
+
//# sourceMappingURL=OrderChannelEnum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderChannelEnum.js","sourceRoot":"","sources":["../../src/enums/OrderChannelEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;AACzB,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAAA,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderItemTypeEnum = void 0;
|
|
4
|
+
var OrderItemTypeEnum;
|
|
5
|
+
(function (OrderItemTypeEnum) {
|
|
6
|
+
OrderItemTypeEnum["Upgrade"] = "Upgrade";
|
|
7
|
+
OrderItemTypeEnum["Ticket"] = "Ticket";
|
|
8
|
+
})(OrderItemTypeEnum = exports.OrderItemTypeEnum || (exports.OrderItemTypeEnum = {}));
|
|
9
|
+
;
|
|
10
|
+
//# sourceMappingURL=OrderItemTypeEnum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderItemTypeEnum.js","sourceRoot":"","sources":["../../src/enums/OrderItemTypeEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;AACnB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AAAA,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethodEnum = void 0;
|
|
4
|
+
var PaymentMethodEnum;
|
|
5
|
+
(function (PaymentMethodEnum) {
|
|
6
|
+
PaymentMethodEnum["CardEntry"] = "Card Entry";
|
|
7
|
+
PaymentMethodEnum["CardReader"] = "Card Reader";
|
|
8
|
+
PaymentMethodEnum["Cash"] = "Cash";
|
|
9
|
+
})(PaymentMethodEnum = exports.PaymentMethodEnum || (exports.PaymentMethodEnum = {}));
|
|
10
|
+
//# sourceMappingURL=PaymentMethodEnum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMethodEnum.js","sourceRoot":"","sources":["../../src/enums/PaymentMethodEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,6CAAwB,CAAA;IACxB,+CAA0B,CAAA;IAC1B,kCAAa,CAAA;AACf,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.fragment.js","sourceRoot":"","sources":["../../../src/graphql/fragments/order.fragment.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAW9B,MAAM,KAAK,GAAkB;IAC3B,SAAS,EAAE;QACT,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,EAAE;KACb;CACF,CAAC;AAEF,kBAAe,KAAK,CAAC;AAErB,KAAK,CAAC,SAAS,GAAG;IAChB,OAAO,EAAE,qBAAG,CAAA
|
|
1
|
+
{"version":3,"file":"order.fragment.js","sourceRoot":"","sources":["../../../src/graphql/fragments/order.fragment.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAW9B,MAAM,KAAK,GAAkB;IAC3B,SAAS,EAAE;QACT,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,EAAE;KACb;CACF,CAAC;AAEF,kBAAe,KAAK,CAAC;AAErB,KAAK,CAAC,SAAS,GAAG;IAChB,OAAO,EAAE,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBX;IACD,QAAQ,EAAE,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;GAsBZ;CACF,CAAC"}
|
|
@@ -6,7 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
7
7
|
const mutation = graphql_tag_1.default `
|
|
8
8
|
mutation attachStripePaymentMethod($paymentMethodId: String!) {
|
|
9
|
-
attachStripePaymentMethod(paymentMethodId: $paymentMethodId)
|
|
9
|
+
attachStripePaymentMethod(paymentMethodId: $paymentMethodId) {
|
|
10
|
+
paymentMethodId
|
|
11
|
+
brand
|
|
12
|
+
last4
|
|
13
|
+
expMonth
|
|
14
|
+
expYear
|
|
15
|
+
funding
|
|
16
|
+
country
|
|
17
|
+
type
|
|
18
|
+
}
|
|
10
19
|
}
|
|
11
20
|
`;
|
|
12
21
|
exports.default = mutation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachStripePaymentMethod.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/attachStripePaymentMethod.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA
|
|
1
|
+
{"version":3,"file":"attachStripePaymentMethod.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/attachStripePaymentMethod.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;CAanB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -12,17 +12,13 @@ const mutation = graphql_tag_1.default `
|
|
|
12
12
|
event {
|
|
13
13
|
_id
|
|
14
14
|
name
|
|
15
|
-
|
|
16
|
-
sendQRCode
|
|
15
|
+
subtitle
|
|
17
16
|
performances {
|
|
18
17
|
schedule {
|
|
19
18
|
doorsAt
|
|
20
19
|
startsAt
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
|
-
schedule {
|
|
24
|
-
startsAt
|
|
25
|
-
}
|
|
26
22
|
venue {
|
|
27
23
|
name
|
|
28
24
|
address {
|
|
@@ -35,9 +31,6 @@ const mutation = graphql_tag_1.default `
|
|
|
35
31
|
}
|
|
36
32
|
}
|
|
37
33
|
state
|
|
38
|
-
refundedAmount
|
|
39
|
-
refundReason
|
|
40
|
-
promotionCode
|
|
41
34
|
type
|
|
42
35
|
...OrderTickets
|
|
43
36
|
...OrderUpgrades
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakApartOrder.js","sourceRoot":"","sources":["../../../src/graphql/mutations/breakApartOrder.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,QAAQ,GAAG,qBAAG,CAAA
|
|
1
|
+
{"version":3,"file":"breakApartOrder.js","sourceRoot":"","sources":["../../../src/graphql/mutations/breakApartOrder.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+BhB,wBAAK,CAAC,SAAS,CAAC,OAAO;IACvB,wBAAK,CAAC,SAAS,CAAC,QAAQ;CAC3B,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -7,8 +7,6 @@ const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
|
7
7
|
const mutation = graphql_tag_1.default `
|
|
8
8
|
mutation createOrder($params: OrderInput!) {
|
|
9
9
|
createOrder(params: $params) {
|
|
10
|
-
clientSecret
|
|
11
|
-
order {
|
|
12
10
|
_id
|
|
13
11
|
userId
|
|
14
12
|
orgId
|
|
@@ -52,7 +50,6 @@ const mutation = graphql_tag_1.default `
|
|
|
52
50
|
scannedBy
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
|
-
}
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
55
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOrder.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/createOrder.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA
|
|
1
|
+
{"version":3,"file":"createOrder.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/createOrder.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 mutation = graphql_tag_1.default `
|
|
8
|
+
mutation createOrderPaymentIntent($params: OrderPaymentIntentInput!) {
|
|
9
|
+
createOrderPaymentIntent(params: $params) {
|
|
10
|
+
paymentIntentId
|
|
11
|
+
clientSecret
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
exports.default = mutation;
|
|
16
|
+
//# sourceMappingURL=createOrderPaymentIntent.mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createOrderPaymentIntent.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/createOrderPaymentIntent.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;CAOnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -5,11 +5,9 @@ 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 mutation = graphql_tag_1.default `
|
|
8
|
-
mutation
|
|
9
|
-
|
|
10
|
-
token
|
|
11
|
-
}
|
|
8
|
+
mutation createStripeSetupIntent {
|
|
9
|
+
createStripeSetupIntent
|
|
12
10
|
}
|
|
13
11
|
`;
|
|
14
12
|
exports.default = mutation;
|
|
15
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=createStripeSetupIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStripeSetupIntent.js","sourceRoot":"","sources":["../../../src/graphql/mutations/createStripeSetupIntent.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 mutation = graphql_tag_1.default `
|
|
8
|
+
mutation listStripeTerminalReaders {
|
|
9
|
+
listStripeTerminalReaders {
|
|
10
|
+
id
|
|
11
|
+
label
|
|
12
|
+
type
|
|
13
|
+
location
|
|
14
|
+
serialNumber
|
|
15
|
+
status
|
|
16
|
+
ipAddress
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
exports.default = mutation;
|
|
21
|
+
//# sourceMappingURL=listStripeTerminalReaders.mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listStripeTerminalReaders.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/listStripeTerminalReaders.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;CAYnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 mutation = graphql_tag_1.default `
|
|
8
|
+
mutation listStripeTerminalReaders {
|
|
9
|
+
listStripeTerminalReaders {
|
|
10
|
+
id
|
|
11
|
+
label
|
|
12
|
+
type
|
|
13
|
+
location
|
|
14
|
+
serialNumber
|
|
15
|
+
status
|
|
16
|
+
ipAddress
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
exports.default = mutation;
|
|
21
|
+
//# sourceMappingURL=listStripeTerminalReaders.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listStripeTerminalReaders.query.js","sourceRoot":"","sources":["../../../src/graphql/mutations/listStripeTerminalReaders.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;CAYnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -7,15 +7,8 @@ const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
|
7
7
|
const mutation = graphql_tag_1.default `
|
|
8
8
|
mutation Register($user: UserInput!) {
|
|
9
9
|
register(user: $user) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
firstName
|
|
13
|
-
lastName
|
|
14
|
-
email
|
|
15
|
-
phoneNumber
|
|
16
|
-
createdAt
|
|
17
|
-
}
|
|
18
|
-
token
|
|
10
|
+
registered
|
|
11
|
+
emailVerified
|
|
19
12
|
}
|
|
20
13
|
}
|
|
21
14
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/register.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA
|
|
1
|
+
{"version":3,"file":"register.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/register.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;CAOnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 mutation = graphql_tag_1.default `
|
|
8
|
+
mutation registerStripeTerminalReader(label: String, registrationCode: String) {
|
|
9
|
+
registerStripeTerminalReader(label: $label, registrationCode: $registrationCode)
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
exports.default = mutation;
|
|
13
|
+
//# sourceMappingURL=registerStripeTermainlReader.mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerStripeTermainlReader.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/registerStripeTermainlReader.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 mutation = graphql_tag_1.default `
|
|
8
|
+
mutation registerStripeTerminalReader(label: String, registrationCode: String) {
|
|
9
|
+
registerStripeTerminalReader(label: $label, registrationCode: $registrationCode)
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
exports.default = mutation;
|
|
13
|
+
//# sourceMappingURL=registerStripeTerminalReader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerStripeTerminalReader.js","sourceRoot":"","sources":["../../../src/graphql/mutations/registerStripeTerminalReader.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;CAInB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 = graphql_tag_1.default `
|
|
8
|
+
mutation verifyUserPhoneAuthentication($email: String, $phoneNumber: String, $phoneVerificationToken: String!){
|
|
9
|
+
verifyUserPhoneAuthentication(email: $email, phoneNumber: $phoneNumber, phoneVerificationToken: $phoneVerificationToken) {
|
|
10
|
+
token
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
exports.default = query;
|
|
15
|
+
//# sourceMappingURL=verifyPhoneAuthentication.mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyPhoneAuthentication.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyPhoneAuthentication.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;CAMhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 = graphql_tag_1.default `
|
|
8
|
+
mutation verifyUserPhoneAuthentication($email: String, $phoneNumber: String, $phoneVerificationToken: String!){
|
|
9
|
+
verifyUserPhoneAuthentication(email: $email, phoneNumber: $phoneNumber, phoneVerificationToken: $phoneVerificationToken) {
|
|
10
|
+
token
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
exports.default = query;
|
|
15
|
+
//# sourceMappingURL=verifyUserPhoneAuthentication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyUserPhoneAuthentication.js","sourceRoot":"","sources":["../../../src/graphql/mutations/verifyUserPhoneAuthentication.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;CAMhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 = graphql_tag_1.default `
|
|
8
|
+
query metrics($params: MetricParamsInput!) {
|
|
9
|
+
metrics(params: $params) {
|
|
10
|
+
label
|
|
11
|
+
type
|
|
12
|
+
interval
|
|
13
|
+
coordinates {
|
|
14
|
+
x
|
|
15
|
+
y
|
|
16
|
+
}
|
|
17
|
+
segments {
|
|
18
|
+
label
|
|
19
|
+
type
|
|
20
|
+
coordinates {
|
|
21
|
+
x
|
|
22
|
+
y
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
exports.default = query;
|
|
29
|
+
//# sourceMappingURL=metrics.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metrics.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/metrics.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 = graphql_tag_1.default `
|
|
8
|
+
query Analytics($params: MetricParamsInput!) {
|
|
9
|
+
analytics(params: $params) {
|
|
10
|
+
label
|
|
11
|
+
type
|
|
12
|
+
interval
|
|
13
|
+
coordinates {
|
|
14
|
+
x
|
|
15
|
+
y
|
|
16
|
+
}
|
|
17
|
+
segments {
|
|
18
|
+
label
|
|
19
|
+
type
|
|
20
|
+
coordinates {
|
|
21
|
+
x
|
|
22
|
+
y
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
exports.default = query;
|
|
29
|
+
//# sourceMappingURL=metricsData.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metricsData.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/metricsData.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/order.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,KAAK,GAAG,qBAAG,CAAA
|
|
1
|
+
{"version":3,"file":"order.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/order.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwFb,wBAAK,CAAC,SAAS,CAAC,OAAO;IACvB,wBAAK,CAAC,SAAS,CAAC,QAAQ;CAC3B,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -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,qBAAG,CAAA
|
|
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,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwCb,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,UAAU;IAC1B,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,IAAI;CACvB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -8,6 +8,7 @@ const query = graphql_tag_1.default `
|
|
|
8
8
|
query userProfile {
|
|
9
9
|
userProfile {
|
|
10
10
|
user {
|
|
11
|
+
_id
|
|
11
12
|
firstName
|
|
12
13
|
lastName
|
|
13
14
|
phoneNumber
|
|
@@ -15,8 +16,8 @@ const query = graphql_tag_1.default `
|
|
|
15
16
|
}
|
|
16
17
|
stripeCustomerId
|
|
17
18
|
stripeCustomer {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
paymentMethods {
|
|
20
|
+
paymentMethodId
|
|
20
21
|
brand
|
|
21
22
|
last4
|
|
22
23
|
expMonth
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userProfile.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userProfile.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA
|
|
1
|
+
{"version":3,"file":"userProfile.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/userProfile.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyBhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import IOrderCustomField from "../interfaces/IOrderCustomField";
|
|
2
2
|
import { OrderTypeEnum } from "../interfaces/IOrderType";
|
|
3
|
-
import {
|
|
3
|
+
import { OrderChannelEnum } from '../enums/OrderChannelEnum';
|
|
4
4
|
import { PaymentMethodTypeEnum } from '../enums/PaymentMethodTypeEnum';
|
|
5
5
|
export default interface ICreateOrderParams {
|
|
6
6
|
userId: string;
|
|
@@ -9,10 +9,11 @@ export default interface ICreateOrderParams {
|
|
|
9
9
|
tickets: ICreateOrderTicketParams[];
|
|
10
10
|
upgrades: ICreateOrderUpgradeParams[];
|
|
11
11
|
type: OrderTypeEnum;
|
|
12
|
+
channel: OrderChannelEnum;
|
|
12
13
|
promotionCode: string;
|
|
13
14
|
customFields: IOrderCustomField[];
|
|
14
|
-
deliveryMethod: OrderDeliveryMethodEnum;
|
|
15
15
|
paymentMethodType: PaymentMethodTypeEnum;
|
|
16
|
+
paymentIntentId: string;
|
|
16
17
|
holdToken?: string;
|
|
17
18
|
}
|
|
18
19
|
export interface ICreateOrderTicketParams {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare enum MetricDataIntervalEnum {
|
|
2
|
+
Hour = "Hour",
|
|
3
|
+
Day = "Day",
|
|
4
|
+
Week = "Week",
|
|
5
|
+
Month = "Month",
|
|
6
|
+
Year = "Year"
|
|
7
|
+
}
|
|
8
|
+
declare enum MetricDataDurationEnum {
|
|
9
|
+
AllTime = "All Time",
|
|
10
|
+
Today = "Today",
|
|
11
|
+
OneWeek = "One Week",
|
|
12
|
+
OneMonth = "One Month",
|
|
13
|
+
MonthToDate = "MTD",
|
|
14
|
+
YearToDate = "YTD",
|
|
15
|
+
OneYear = "One Year",
|
|
16
|
+
Custom = "Custom"
|
|
17
|
+
}
|
|
18
|
+
declare enum MetricDataCardTypeEnum {
|
|
19
|
+
TicketSales = "Ticket Sales",
|
|
20
|
+
UpgradeSales = "Upgrades Sales",
|
|
21
|
+
ExtraFeeRevenue = "Extra Fee Revenue",
|
|
22
|
+
TicketsSold = "Tickets Sold",
|
|
23
|
+
TotalOrders = "Total Orders",
|
|
24
|
+
Promotions = "Promotioins",
|
|
25
|
+
TicketComps = "Ticket Comps",
|
|
26
|
+
UpgradeComps = "Upgrade Comps",
|
|
27
|
+
OnlineSessions = "Online Sessions",
|
|
28
|
+
OnlineConversationRate = "Online Converstation Rate",
|
|
29
|
+
AvgOrderValue = "Avg. Order Value"
|
|
30
|
+
}
|
|
31
|
+
declare enum MetricDataValueTypeEnum {
|
|
32
|
+
Quantity = "Quantity",
|
|
33
|
+
Currency = "Currency",
|
|
34
|
+
Percent = "Percent"
|
|
35
|
+
}
|
|
36
|
+
interface IMetricDataParams {
|
|
37
|
+
eventId?: string;
|
|
38
|
+
venueId?: string;
|
|
39
|
+
artistId?: string;
|
|
40
|
+
startAt?: number;
|
|
41
|
+
endAt?: number;
|
|
42
|
+
interval?: MetricDataIntervalEnum;
|
|
43
|
+
types: MetricDataCardTypeEnum[];
|
|
44
|
+
}
|
|
45
|
+
interface Coordinate {
|
|
46
|
+
x: number;
|
|
47
|
+
y: number;
|
|
48
|
+
}
|
|
49
|
+
interface DataPoint {
|
|
50
|
+
label: string;
|
|
51
|
+
interval?: MetricDataIntervalEnum;
|
|
52
|
+
coordinates?: Coordinate[];
|
|
53
|
+
segments?: DataPoint[];
|
|
54
|
+
type: MetricDataValueTypeEnum;
|
|
55
|
+
totalValue?: number;
|
|
56
|
+
}
|
|
57
|
+
declare const TicketSalesCard: DataPoint;
|