@sellout/models 0.0.78 → 0.0.80
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/mutations/publishEvent.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/publishEvent.mutation.js +74 -0
- package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -0
- package/.dist/graphql/queries/webflow.query.d.ts +2 -0
- package/.dist/graphql/queries/webflow.query.js +42 -0
- package/.dist/graphql/queries/webflow.query.js.map +1 -0
- package/.dist/interfaces/IEvent.d.ts +1 -1
- package/.dist/interfaces/IEvent.js +1 -1
- package/.dist/interfaces/IEvent.js.map +1 -1
- package/.dist/interfaces/IEventPromotion.d.ts +1 -1
- package/.dist/interfaces/IEventPromotion.js +1 -1
- package/.dist/interfaces/IEventPromotion.js.map +1 -1
- package/package.json +4 -4
- package/src/graphql/mutations/publishEvent.mutation.ts +70 -0
- package/src/graphql/queries/webflow.query.ts +38 -0
- package/src/interfaces/IEvent.ts +1 -1
- package/src/interfaces/IEventPromotion.ts +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
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 event_fragment_1 = __importDefault(require("../fragments/event.fragment"));
|
|
8
|
+
const mutation = graphql_tag_1.default `
|
|
9
|
+
mutation publishEvent(
|
|
10
|
+
$eventId: String!,
|
|
11
|
+
$publishSiteIds: [String],
|
|
12
|
+
$unpublishSiteIds: [String]
|
|
13
|
+
) {
|
|
14
|
+
publishEvent(
|
|
15
|
+
eventId: $eventId,
|
|
16
|
+
publishSiteIds: $publishSiteIds,
|
|
17
|
+
unpublishSiteIds: $unpublishSiteIds
|
|
18
|
+
) {
|
|
19
|
+
_id
|
|
20
|
+
orgId
|
|
21
|
+
type
|
|
22
|
+
name
|
|
23
|
+
subtitle
|
|
24
|
+
description
|
|
25
|
+
userAgreement
|
|
26
|
+
processAs
|
|
27
|
+
posterImageUrl
|
|
28
|
+
venueId
|
|
29
|
+
createdAt
|
|
30
|
+
publishable
|
|
31
|
+
seatingChartKey
|
|
32
|
+
age
|
|
33
|
+
sendQRCode
|
|
34
|
+
hasOrders
|
|
35
|
+
organization {
|
|
36
|
+
orgName
|
|
37
|
+
}
|
|
38
|
+
venue {
|
|
39
|
+
name
|
|
40
|
+
address {
|
|
41
|
+
state
|
|
42
|
+
city
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
...EventSchedule
|
|
46
|
+
...Location
|
|
47
|
+
...Performances
|
|
48
|
+
...TicketTypes
|
|
49
|
+
...TicketHolds
|
|
50
|
+
...EventUpgrades
|
|
51
|
+
...EventPromotions
|
|
52
|
+
...EventCustomFields
|
|
53
|
+
...TicketExchange
|
|
54
|
+
...Fees
|
|
55
|
+
...Artists
|
|
56
|
+
...WebFlowEntity
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
${event_fragment_1.default.fragments.schedule}
|
|
61
|
+
${event_fragment_1.default.fragments.location}
|
|
62
|
+
${event_fragment_1.default.fragments.performances}
|
|
63
|
+
${event_fragment_1.default.fragments.ticketTypes}
|
|
64
|
+
${event_fragment_1.default.fragments.holds}
|
|
65
|
+
${event_fragment_1.default.fragments.upgrades}
|
|
66
|
+
${event_fragment_1.default.fragments.promotions}
|
|
67
|
+
${event_fragment_1.default.fragments.customFields}
|
|
68
|
+
${event_fragment_1.default.fragments.exchange}
|
|
69
|
+
${event_fragment_1.default.fragments.fees}
|
|
70
|
+
${event_fragment_1.default.fragments.artists}
|
|
71
|
+
${event_fragment_1.default.fragments.webFlowEntity}
|
|
72
|
+
`;
|
|
73
|
+
exports.default = mutation;
|
|
74
|
+
//# sourceMappingURL=publishEvent.mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishEvent.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/publishEvent.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoDhB,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,KAAK;IACrB,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,UAAU;IAC1B,wBAAK,CAAC,SAAS,CAAC,YAAY;IAC5B,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,IAAI;IACpB,wBAAK,CAAC,SAAS,CAAC,OAAO;IACvB,wBAAK,CAAC,SAAS,CAAC,aAAa;CAChC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 webFlow {
|
|
9
|
+
webFlow {
|
|
10
|
+
_id
|
|
11
|
+
orgId
|
|
12
|
+
sites {
|
|
13
|
+
name
|
|
14
|
+
webFlowId
|
|
15
|
+
enabled
|
|
16
|
+
createdAt
|
|
17
|
+
updatedAt
|
|
18
|
+
previewUrl
|
|
19
|
+
domains {
|
|
20
|
+
lastPublishedAt
|
|
21
|
+
name
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
entities {
|
|
25
|
+
_id
|
|
26
|
+
name
|
|
27
|
+
selloutId
|
|
28
|
+
entityType
|
|
29
|
+
alwaysPublishTo
|
|
30
|
+
webFlowIds {
|
|
31
|
+
webFlowSiteId
|
|
32
|
+
webFlowEntityId
|
|
33
|
+
slug
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
createdAt
|
|
37
|
+
updatedAt
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
exports.default = query;
|
|
42
|
+
//# sourceMappingURL=webflow.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webflow.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/webflow.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -20,7 +20,7 @@ var EventTypeEnum;
|
|
|
20
20
|
})(EventTypeEnum = exports.EventTypeEnum || (exports.EventTypeEnum = {}));
|
|
21
21
|
var EventAgeEnum;
|
|
22
22
|
(function (EventAgeEnum) {
|
|
23
|
-
EventAgeEnum["AllAges"] = "All
|
|
23
|
+
EventAgeEnum["AllAges"] = "All ages welcome";
|
|
24
24
|
EventAgeEnum["EighteenPlus"] = "18+";
|
|
25
25
|
EventAgeEnum["TwentyOnePlus"] = "21+";
|
|
26
26
|
})(EventAgeEnum = exports.EventAgeEnum || (exports.EventAgeEnum = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEvent.js","sourceRoot":"","sources":["../../src/interfaces/IEvent.ts"],"names":[],"mappings":";;;AAgBA,IAAY,aAeX;AAfD,WAAY,aAAa;IACvB,sDAAsD;IACtD,2CAA0B,CAAA;IAC1B,oCAAmB,CAAA;IACnB,yBAAyB;IACzB,iBAAiB;IACjB,gCAAgC;IAChC,6BAA6B;IAC7B,oCAAoC;IACpC,kCAAkC;IAClC,oCAAoC;IACpC,mBAAmB;IACnB,kCAAkC;IAClC,mBAAmB;IACnB,yBAAyB;AAC3B,CAAC,EAfW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAexB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,
|
|
1
|
+
{"version":3,"file":"IEvent.js","sourceRoot":"","sources":["../../src/interfaces/IEvent.ts"],"names":[],"mappings":";;;AAgBA,IAAY,aAeX;AAfD,WAAY,aAAa;IACvB,sDAAsD;IACtD,2CAA0B,CAAA;IAC1B,oCAAmB,CAAA;IACnB,yBAAyB;IACzB,iBAAiB;IACjB,gCAAgC;IAChC,6BAA6B;IAC7B,oCAAoC;IACpC,kCAAkC;IAClC,oCAAoC;IACpC,mBAAmB;IACnB,kCAAkC;IAClC,mBAAmB;IACnB,yBAAyB;AAC3B,CAAC,EAfW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAexB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,4CAA4B,CAAA;IAC5B,oCAAoB,CAAA;IACpB,qCAAqB,CAAA;AACvB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,2CAAyB,CAAA;IACzB,0CAAwB,CAAA;IACxB,0DAAwC,CAAA;AAC1C,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,mCAAa,CAAA;IACb,mCAAa,CAAA;AACf,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EventPromotionDiscountTypeEnum = exports.EventPromotionTypeEnum = void 0;
|
|
4
4
|
var EventPromotionTypeEnum;
|
|
5
5
|
(function (EventPromotionTypeEnum) {
|
|
6
|
-
EventPromotionTypeEnum["PreSale"] = "
|
|
6
|
+
EventPromotionTypeEnum["PreSale"] = "Presale";
|
|
7
7
|
EventPromotionTypeEnum["Unlock"] = "Unlock";
|
|
8
8
|
EventPromotionTypeEnum["Discount"] = "Discount";
|
|
9
9
|
})(EventPromotionTypeEnum = exports.EventPromotionTypeEnum || (exports.EventPromotionTypeEnum = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEventPromotion.js","sourceRoot":"","sources":["../../src/interfaces/IEventPromotion.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,
|
|
1
|
+
{"version":3,"file":"IEventPromotion.js","sourceRoot":"","sources":["../../src/interfaces/IEventPromotion.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;AACvB,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,+CAAa,CAAA;IACb,qDAAmB,CAAA;AACrB,CAAC,EAHW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAGzC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"author": "samheutmaker@gmail.com",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sellout/service": "^0.0.
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
19
|
+
"@sellout/service": "^0.0.80",
|
|
20
|
+
"@sellout/utils": "^0.0.80",
|
|
21
21
|
"@types/shortid": "0.0.29",
|
|
22
22
|
"apollo-link-debounce": "^2.1.0",
|
|
23
23
|
"graphql": "^14.6.0",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"protobufjs": "~6.10.1",
|
|
31
31
|
"typescript": "^3.8.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "d483c256ea93fa924904c499e642a4af3e24c08f"
|
|
34
34
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
import Event from "../fragments/event.fragment";
|
|
3
|
+
|
|
4
|
+
const mutation = gql`
|
|
5
|
+
mutation publishEvent(
|
|
6
|
+
$eventId: String!,
|
|
7
|
+
$publishSiteIds: [String],
|
|
8
|
+
$unpublishSiteIds: [String]
|
|
9
|
+
) {
|
|
10
|
+
publishEvent(
|
|
11
|
+
eventId: $eventId,
|
|
12
|
+
publishSiteIds: $publishSiteIds,
|
|
13
|
+
unpublishSiteIds: $unpublishSiteIds
|
|
14
|
+
) {
|
|
15
|
+
_id
|
|
16
|
+
orgId
|
|
17
|
+
type
|
|
18
|
+
name
|
|
19
|
+
subtitle
|
|
20
|
+
description
|
|
21
|
+
userAgreement
|
|
22
|
+
processAs
|
|
23
|
+
posterImageUrl
|
|
24
|
+
venueId
|
|
25
|
+
createdAt
|
|
26
|
+
publishable
|
|
27
|
+
seatingChartKey
|
|
28
|
+
age
|
|
29
|
+
sendQRCode
|
|
30
|
+
hasOrders
|
|
31
|
+
organization {
|
|
32
|
+
orgName
|
|
33
|
+
}
|
|
34
|
+
venue {
|
|
35
|
+
name
|
|
36
|
+
address {
|
|
37
|
+
state
|
|
38
|
+
city
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
...EventSchedule
|
|
42
|
+
...Location
|
|
43
|
+
...Performances
|
|
44
|
+
...TicketTypes
|
|
45
|
+
...TicketHolds
|
|
46
|
+
...EventUpgrades
|
|
47
|
+
...EventPromotions
|
|
48
|
+
...EventCustomFields
|
|
49
|
+
...TicketExchange
|
|
50
|
+
...Fees
|
|
51
|
+
...Artists
|
|
52
|
+
...WebFlowEntity
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${Event.fragments.schedule}
|
|
57
|
+
${Event.fragments.location}
|
|
58
|
+
${Event.fragments.performances}
|
|
59
|
+
${Event.fragments.ticketTypes}
|
|
60
|
+
${Event.fragments.holds}
|
|
61
|
+
${Event.fragments.upgrades}
|
|
62
|
+
${Event.fragments.promotions}
|
|
63
|
+
${Event.fragments.customFields}
|
|
64
|
+
${Event.fragments.exchange}
|
|
65
|
+
${Event.fragments.fees}
|
|
66
|
+
${Event.fragments.artists}
|
|
67
|
+
${Event.fragments.webFlowEntity}
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
export default mutation;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query webFlow {
|
|
5
|
+
webFlow {
|
|
6
|
+
_id
|
|
7
|
+
orgId
|
|
8
|
+
sites {
|
|
9
|
+
name
|
|
10
|
+
webFlowId
|
|
11
|
+
enabled
|
|
12
|
+
createdAt
|
|
13
|
+
updatedAt
|
|
14
|
+
previewUrl
|
|
15
|
+
domains {
|
|
16
|
+
lastPublishedAt
|
|
17
|
+
name
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
entities {
|
|
21
|
+
_id
|
|
22
|
+
name
|
|
23
|
+
selloutId
|
|
24
|
+
entityType
|
|
25
|
+
alwaysPublishTo
|
|
26
|
+
webFlowIds {
|
|
27
|
+
webFlowSiteId
|
|
28
|
+
webFlowEntityId
|
|
29
|
+
slug
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
createdAt
|
|
33
|
+
updatedAt
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
export default query;
|
package/src/interfaces/IEvent.ts
CHANGED