@sellout/models 0.0.31 → 0.0.34

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,52 @@
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 createEvent($event: EventInput!) {
10
+ createEvent(event: $event) {
11
+ _id
12
+ orgId
13
+ type
14
+ name
15
+ subtitle
16
+ description
17
+ userAgreement
18
+ processAs
19
+ posterImageUrl
20
+ venueId
21
+ createdAt
22
+ publishable
23
+ seatingChartKey
24
+ age
25
+ sendQRCode
26
+ ...EventSchedule
27
+ ...Location
28
+ ...Performances
29
+ ...TicketTypes
30
+ ...TicketHolds
31
+ ...EventUpgrades
32
+ ...EventPromotions
33
+ ...EventCustomFields
34
+ ...TicketExchange
35
+ ...Fees
36
+ }
37
+ }
38
+
39
+ ${event_fragment_1.default.fragments.schedule}
40
+ ${event_fragment_1.default.fragments.location}
41
+ ${event_fragment_1.default.fragments.performances}
42
+ ${event_fragment_1.default.fragments.ticketTypes}
43
+ ${event_fragment_1.default.fragments.holds}
44
+ ${event_fragment_1.default.fragments.upgrades}
45
+ ${event_fragment_1.default.fragments.promotions}
46
+ ${event_fragment_1.default.fragments.customFields}
47
+ ${event_fragment_1.default.fragments.exchange}
48
+ ${event_fragment_1.default.fragments.fees}
49
+
50
+ `;
51
+ exports.default = mutation;
52
+ //# sourceMappingURL=createEvent.mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createEvent.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/createEvent.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+BhB,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;;CAEvB,CAAC;AAEF,kBAAe,QAAQ,CAAA"}
@@ -0,0 +1,2 @@
1
+ declare const mutation: import("graphql").DocumentNode;
2
+ export default mutation;
@@ -0,0 +1,59 @@
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 updateEvent($event: EventInput!) {
10
+ updateEvent(event: $event) {
11
+ _id
12
+ orgId
13
+ type
14
+ name
15
+ subtitle
16
+ description
17
+ userAgreement
18
+ processAs
19
+ posterImageUrl
20
+ venueId
21
+ createdAt
22
+ publishable
23
+ seatingChartKey
24
+ age
25
+ sendQRCode
26
+ venue {
27
+ name
28
+ address {
29
+ state
30
+ city
31
+ }
32
+ }
33
+ ...EventSchedule
34
+ ...Location
35
+ ...Performances
36
+ ...TicketTypes
37
+ ...TicketHolds
38
+ ...EventUpgrades
39
+ ...EventPromotions
40
+ ...EventCustomFields
41
+ ...TicketExchange
42
+ ...Fees
43
+ }
44
+ }
45
+
46
+ ${event_fragment_1.default.fragments.schedule}
47
+ ${event_fragment_1.default.fragments.location}
48
+ ${event_fragment_1.default.fragments.performances}
49
+ ${event_fragment_1.default.fragments.ticketTypes}
50
+ ${event_fragment_1.default.fragments.holds}
51
+ ${event_fragment_1.default.fragments.upgrades}
52
+ ${event_fragment_1.default.fragments.promotions}
53
+ ${event_fragment_1.default.fragments.customFields}
54
+ ${event_fragment_1.default.fragments.exchange}
55
+ ${event_fragment_1.default.fragments.fees}
56
+
57
+ `;
58
+ exports.default = mutation;
59
+ //# sourceMappingURL=updateEvent.mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateEvent.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/updateEvent.mutation.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsChB,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;;CAEvB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const mutation: import("graphql").DocumentNode;
2
+ export default mutation;
@@ -0,0 +1,52 @@
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 createEvent($event: EventInput!) {
10
+ createEvent(event: $event) {
11
+ _id
12
+ orgId
13
+ type
14
+ name
15
+ subtitle
16
+ description
17
+ userAgreement
18
+ processAs
19
+ posterImageUrl
20
+ venueId
21
+ createdAt
22
+ publishable
23
+ seatingChartKey
24
+ age
25
+ sendQRCode
26
+ ...EventSchedule
27
+ ...Location
28
+ ...Performances
29
+ ...TicketTypes
30
+ ...TicketHolds
31
+ ...EventUpgrades
32
+ ...EventPromotions
33
+ ...EventCustomFields
34
+ ...TicketExchange
35
+ ...Fees
36
+ }
37
+ }
38
+
39
+ ${event_fragment_1.default.fragments.schedule}
40
+ ${event_fragment_1.default.fragments.location}
41
+ ${event_fragment_1.default.fragments.performances}
42
+ ${event_fragment_1.default.fragments.ticketTypes}
43
+ ${event_fragment_1.default.fragments.holds}
44
+ ${event_fragment_1.default.fragments.upgrades}
45
+ ${event_fragment_1.default.fragments.promotions}
46
+ ${event_fragment_1.default.fragments.customFields}
47
+ ${event_fragment_1.default.fragments.exchange}
48
+ ${event_fragment_1.default.fragments.fees}
49
+
50
+ `;
51
+ exports.default = mutation;
52
+ //# sourceMappingURL=what.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"what.js","sourceRoot":"","sources":["../../../src/graphql/mutations/what.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAC9B,iFAAgD;AAEhD,MAAM,QAAQ,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+BhB,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;;CAEvB,CAAC;AAEF,kBAAe,QAAQ,CAAA"}
@@ -0,0 +1,2 @@
1
+ declare const query: import("graphql").DocumentNode;
2
+ export default query;
@@ -0,0 +1,51 @@
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 artists($query: ArtistQueryInput, $pagination: PaginationInput) {
9
+ artists(query: $query, pagination: $pagination) {
10
+ _id
11
+ name
12
+ genres
13
+ socialAccounts {
14
+ _id
15
+ platform
16
+ link
17
+ }
18
+ pressKits {
19
+ _id
20
+ title
21
+ description
22
+ posterImageUrls
23
+ links {
24
+ platform
25
+ link
26
+ }
27
+ }
28
+ metrics {
29
+ lifeTimeTicketsPurchased
30
+ lifeTimeTicketsRefunded
31
+ lifeTimeUpgradesPurchased
32
+ lifeTimeUpgradesRefunded
33
+ lifeTimeValue
34
+ lifeTimeValueRefunded
35
+ }
36
+ contacts {
37
+ _id
38
+ firstName
39
+ lastName
40
+ title
41
+ company
42
+ email
43
+ phoneNumber
44
+ }
45
+ artistGlobalId
46
+ orgId
47
+ }
48
+ }
49
+ `;
50
+ exports.default = query;
51
+ //# sourceMappingURL=artists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artists.js","sourceRoot":"","sources":["../../../src/graphql/queries/artists.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const query: import("graphql").DocumentNode;
2
+ export default query;
@@ -0,0 +1,51 @@
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 artists($query: ArtistQueryInput, $pagination: PaginationInput) {
9
+ artists(query: $query, pagination: $pagination) {
10
+ _id
11
+ name
12
+ genres
13
+ socialAccounts {
14
+ _id
15
+ platform
16
+ link
17
+ }
18
+ pressKits {
19
+ _id
20
+ title
21
+ description
22
+ posterImageUrls
23
+ links {
24
+ platform
25
+ link
26
+ }
27
+ }
28
+ metrics {
29
+ lifeTimeTicketsPurchased
30
+ lifeTimeTicketsRefunded
31
+ lifeTimeUpgradesPurchased
32
+ lifeTimeUpgradesRefunded
33
+ lifeTimeValue
34
+ lifeTimeValueRefunded
35
+ }
36
+ contacts {
37
+ _id
38
+ firstName
39
+ lastName
40
+ title
41
+ company
42
+ email
43
+ phoneNumber
44
+ }
45
+ artistGlobalId
46
+ orgId
47
+ }
48
+ }
49
+ `;
50
+ exports.default = query;
51
+ //# sourceMappingURL=listArtists.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listArtists.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/listArtists.query.ts"],"names":[],"mappings":";;;;;AAAA,8DAA8B;AAE9B,MAAM,KAAK,GAAG,qBAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ChB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.31",
3
+ "version": "0.0.34",
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.31",
20
- "@sellout/utils": "^0.0.31",
19
+ "@sellout/service": "^0.0.34",
20
+ "@sellout/utils": "^0.0.34",
21
21
  "@types/shortid": "0.0.29",
22
22
  "graphql": "^14.6.0",
23
23
  "graphql-tag": "^2.10.3",
@@ -29,5 +29,5 @@
29
29
  "protobufjs": "~6.8.8",
30
30
  "typescript": "^3.8.3"
31
31
  },
32
- "gitHead": "e424148c90ea5d7d92e628e71feeddb544018e40"
32
+ "gitHead": "596ef3fc7c26a4f6dc832160e0169d155cf04189"
33
33
  }
@@ -0,0 +1,48 @@
1
+ import gql from 'graphql-tag';
2
+ import Event from '../fragments/event.fragment';
3
+
4
+ const mutation = gql`
5
+ mutation createEvent($event: EventInput!) {
6
+ createEvent(event: $event) {
7
+ _id
8
+ orgId
9
+ type
10
+ name
11
+ subtitle
12
+ description
13
+ userAgreement
14
+ processAs
15
+ posterImageUrl
16
+ venueId
17
+ createdAt
18
+ publishable
19
+ seatingChartKey
20
+ age
21
+ sendQRCode
22
+ ...EventSchedule
23
+ ...Location
24
+ ...Performances
25
+ ...TicketTypes
26
+ ...TicketHolds
27
+ ...EventUpgrades
28
+ ...EventPromotions
29
+ ...EventCustomFields
30
+ ...TicketExchange
31
+ ...Fees
32
+ }
33
+ }
34
+
35
+ ${Event.fragments.schedule}
36
+ ${Event.fragments.location}
37
+ ${Event.fragments.performances}
38
+ ${Event.fragments.ticketTypes}
39
+ ${Event.fragments.holds}
40
+ ${Event.fragments.upgrades}
41
+ ${Event.fragments.promotions}
42
+ ${Event.fragments.customFields}
43
+ ${Event.fragments.exchange}
44
+ ${Event.fragments.fees}
45
+
46
+ `;
47
+
48
+ export default mutation
@@ -0,0 +1,55 @@
1
+ import gql from 'graphql-tag';
2
+ import Event from '../fragments/event.fragment';
3
+
4
+ const mutation = gql`
5
+ mutation updateEvent($event: EventInput!) {
6
+ updateEvent(event: $event) {
7
+ _id
8
+ orgId
9
+ type
10
+ name
11
+ subtitle
12
+ description
13
+ userAgreement
14
+ processAs
15
+ posterImageUrl
16
+ venueId
17
+ createdAt
18
+ publishable
19
+ seatingChartKey
20
+ age
21
+ sendQRCode
22
+ venue {
23
+ name
24
+ address {
25
+ state
26
+ city
27
+ }
28
+ }
29
+ ...EventSchedule
30
+ ...Location
31
+ ...Performances
32
+ ...TicketTypes
33
+ ...TicketHolds
34
+ ...EventUpgrades
35
+ ...EventPromotions
36
+ ...EventCustomFields
37
+ ...TicketExchange
38
+ ...Fees
39
+ }
40
+ }
41
+
42
+ ${Event.fragments.schedule}
43
+ ${Event.fragments.location}
44
+ ${Event.fragments.performances}
45
+ ${Event.fragments.ticketTypes}
46
+ ${Event.fragments.holds}
47
+ ${Event.fragments.upgrades}
48
+ ${Event.fragments.promotions}
49
+ ${Event.fragments.customFields}
50
+ ${Event.fragments.exchange}
51
+ ${Event.fragments.fees}
52
+
53
+ `;
54
+
55
+ export default mutation;