@sellout/models 0.0.77 → 0.0.79

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.
@@ -0,0 +1,2 @@
1
+ declare const mutation: import("graphql").DocumentNode;
2
+ export default mutation;
@@ -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,2 @@
1
+ declare const query: import("graphql").DocumentNode;
2
+ export default query;
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
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.77",
20
- "@sellout/utils": "^0.0.77",
19
+ "@sellout/service": "^0.0.79",
20
+ "@sellout/utils": "^0.0.79",
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": "b9d04ab7c0e6dfb340e542b24a0df779d57e14ec"
33
+ "gitHead": "b3e60a2f774a64bb48b0b496f83813a02db0c2c1"
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;