@sellout/models 0.0.363 → 0.0.364
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/queries/eventCalenderOrganizations.query.d.ts +2 -0
- package/.dist/graphql/queries/eventCalenderOrganizations.query.js +17 -0
- package/.dist/graphql/queries/eventCalenderOrganizations.query.js.map +1 -0
- package/.dist/graphql/queries/eventsAdminCalender.query.d.ts +2 -0
- package/.dist/graphql/queries/eventsAdminCalender.query.js +58 -0
- package/.dist/graphql/queries/eventsAdminCalender.query.js.map +1 -0
- package/.dist/sellout-proto.js +33 -0
- package/package.json +3 -3
- package/src/graphql/queries/eventCalenderOrganizations.query.ts +16 -0
- package/src/graphql/queries/eventsAdminCalender.query.ts +54 -0
- package/src/proto/event.proto +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const client_1 = require("@apollo/client");
|
|
4
|
+
const query = (0, client_1.gql) `
|
|
5
|
+
query organizations(
|
|
6
|
+
$query: OrganizationQueryInput
|
|
7
|
+
$pagination: PaginationInput
|
|
8
|
+
) {
|
|
9
|
+
organizations(query: $query, pagination: $pagination) {
|
|
10
|
+
_id
|
|
11
|
+
orgName
|
|
12
|
+
createdAt
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
exports.default = query;
|
|
17
|
+
//# sourceMappingURL=eventCalenderOrganizations.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventCalenderOrganizations.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/eventCalenderOrganizations.query.ts"],"names":[],"mappings":";;AAAA,2CAAmC;AAEnC,MAAM,KAAK,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;CAWhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 client_1 = require("@apollo/client");
|
|
7
|
+
const event_fragment_1 = __importDefault(require("../fragments/event.fragment"));
|
|
8
|
+
const query = (0, client_1.gql) `
|
|
9
|
+
query eventsAdmin(
|
|
10
|
+
$query: EventQueryInput
|
|
11
|
+
$pagination: PaginationInput
|
|
12
|
+
$orgId: String
|
|
13
|
+
) {
|
|
14
|
+
eventsAdmin(query: $query, pagination: $pagination, orgId: $orgId) {
|
|
15
|
+
_id
|
|
16
|
+
orgId
|
|
17
|
+
type
|
|
18
|
+
name
|
|
19
|
+
seasonId
|
|
20
|
+
subtitle
|
|
21
|
+
description
|
|
22
|
+
userAgreement
|
|
23
|
+
processAs
|
|
24
|
+
posterImageUrl
|
|
25
|
+
venueId
|
|
26
|
+
createdAt
|
|
27
|
+
publishable
|
|
28
|
+
published
|
|
29
|
+
seatingChartKey
|
|
30
|
+
age
|
|
31
|
+
isMultipleDays
|
|
32
|
+
totalDays
|
|
33
|
+
cancel
|
|
34
|
+
sendQRCode
|
|
35
|
+
hasOrders
|
|
36
|
+
taxDeduction
|
|
37
|
+
venue {
|
|
38
|
+
_id
|
|
39
|
+
name
|
|
40
|
+
tax
|
|
41
|
+
address {
|
|
42
|
+
state
|
|
43
|
+
city
|
|
44
|
+
timezone
|
|
45
|
+
}
|
|
46
|
+
imageUrls
|
|
47
|
+
}
|
|
48
|
+
...EventSchedule
|
|
49
|
+
...TicketTypes
|
|
50
|
+
...Performances
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
${event_fragment_1.default.fragments.schedule}
|
|
54
|
+
${event_fragment_1.default.fragments.ticketTypes}
|
|
55
|
+
${event_fragment_1.default.fragments.performances}
|
|
56
|
+
`;
|
|
57
|
+
exports.default = query;
|
|
58
|
+
//# sourceMappingURL=eventsAdminCalender.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventsAdminCalender.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/eventsAdminCalender.query.ts"],"names":[],"mappings":";;;;;AAAA,2CAAqC;AACrC,iFAAgD;AAEhD,MAAM,KAAK,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6Cb,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,WAAW;IAC3B,wBAAK,CAAC,SAAS,CAAC,YAAY;CAC/B,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
package/.dist/sellout-proto.js
CHANGED
|
@@ -114307,6 +114307,39 @@ $root.EventService = (function() {
|
|
|
114307
114307
|
* @variation 2
|
|
114308
114308
|
*/
|
|
114309
114309
|
|
|
114310
|
+
/**
|
|
114311
|
+
* Callback as used by {@link EventService#queryEventsAdmin}.
|
|
114312
|
+
* @memberof EventService
|
|
114313
|
+
* @typedef queryEventsAdminCallback
|
|
114314
|
+
* @type {function}
|
|
114315
|
+
* @param {Error|null} error Error, if any
|
|
114316
|
+
* @param {QueryEventsResponse} [response] QueryEventsResponse
|
|
114317
|
+
*/
|
|
114318
|
+
|
|
114319
|
+
/**
|
|
114320
|
+
* Calls queryEventsAdmin.
|
|
114321
|
+
* @function queryEventsAdmin
|
|
114322
|
+
* @memberof EventService
|
|
114323
|
+
* @instance
|
|
114324
|
+
* @param {IQueryEventsRequest} request QueryEventsRequest message or plain object
|
|
114325
|
+
* @param {EventService.queryEventsAdminCallback} callback Node-style callback called with the error, if any, and QueryEventsResponse
|
|
114326
|
+
* @returns {undefined}
|
|
114327
|
+
* @variation 1
|
|
114328
|
+
*/
|
|
114329
|
+
Object.defineProperty(EventService.prototype.queryEventsAdmin = function queryEventsAdmin(request, callback) {
|
|
114330
|
+
return this.rpcCall(queryEventsAdmin, $root.QueryEventsRequest, $root.QueryEventsResponse, request, callback);
|
|
114331
|
+
}, "name", { value: "queryEventsAdmin" });
|
|
114332
|
+
|
|
114333
|
+
/**
|
|
114334
|
+
* Calls queryEventsAdmin.
|
|
114335
|
+
* @function queryEventsAdmin
|
|
114336
|
+
* @memberof EventService
|
|
114337
|
+
* @instance
|
|
114338
|
+
* @param {IQueryEventsRequest} request QueryEventsRequest message or plain object
|
|
114339
|
+
* @returns {Promise<QueryEventsResponse>} Promise
|
|
114340
|
+
* @variation 2
|
|
114341
|
+
*/
|
|
114342
|
+
|
|
114310
114343
|
return EventService;
|
|
114311
114344
|
})();
|
|
114312
114345
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.364",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@apollo/client": "^3.9.6",
|
|
20
20
|
"@hapi/joi": "^17.1.1",
|
|
21
|
-
"@sellout/utils": "^0.0.
|
|
21
|
+
"@sellout/utils": "^0.0.364",
|
|
22
22
|
"@types/hapi__joi": "^16.0.1",
|
|
23
23
|
"@types/shortid": "^0.0.29",
|
|
24
24
|
"@types/zen-observable": "^0.8.7",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"protobufjs": "^6.11.2",
|
|
33
33
|
"typescript": "^4.9.5"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "dfc72b3238a00556440534e452055d3b252ddcd9"
|
|
36
36
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {gql} from "@apollo/client";
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query organizations(
|
|
5
|
+
$query: OrganizationQueryInput
|
|
6
|
+
$pagination: PaginationInput
|
|
7
|
+
) {
|
|
8
|
+
organizations(query: $query, pagination: $pagination) {
|
|
9
|
+
_id
|
|
10
|
+
orgName
|
|
11
|
+
createdAt
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
export default query;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { gql } from "@apollo/client";
|
|
2
|
+
import Event from "../fragments/event.fragment";
|
|
3
|
+
|
|
4
|
+
const query = gql`
|
|
5
|
+
query eventsAdmin(
|
|
6
|
+
$query: EventQueryInput
|
|
7
|
+
$pagination: PaginationInput
|
|
8
|
+
$orgId: String
|
|
9
|
+
) {
|
|
10
|
+
eventsAdmin(query: $query, pagination: $pagination, orgId: $orgId) {
|
|
11
|
+
_id
|
|
12
|
+
orgId
|
|
13
|
+
type
|
|
14
|
+
name
|
|
15
|
+
seasonId
|
|
16
|
+
subtitle
|
|
17
|
+
description
|
|
18
|
+
userAgreement
|
|
19
|
+
processAs
|
|
20
|
+
posterImageUrl
|
|
21
|
+
venueId
|
|
22
|
+
createdAt
|
|
23
|
+
publishable
|
|
24
|
+
published
|
|
25
|
+
seatingChartKey
|
|
26
|
+
age
|
|
27
|
+
isMultipleDays
|
|
28
|
+
totalDays
|
|
29
|
+
cancel
|
|
30
|
+
sendQRCode
|
|
31
|
+
hasOrders
|
|
32
|
+
taxDeduction
|
|
33
|
+
venue {
|
|
34
|
+
_id
|
|
35
|
+
name
|
|
36
|
+
tax
|
|
37
|
+
address {
|
|
38
|
+
state
|
|
39
|
+
city
|
|
40
|
+
timezone
|
|
41
|
+
}
|
|
42
|
+
imageUrls
|
|
43
|
+
}
|
|
44
|
+
...EventSchedule
|
|
45
|
+
...TicketTypes
|
|
46
|
+
...Performances
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
${Event.fragments.schedule}
|
|
50
|
+
${Event.fragments.ticketTypes}
|
|
51
|
+
${Event.fragments.performances}
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
export default query;
|
package/src/proto/event.proto
CHANGED
|
@@ -764,4 +764,5 @@ service EventService {
|
|
|
764
764
|
rpc deleteTicketHold(DeleteTicketHoldRequest) returns (DeleteTicketHoldResponse) {}
|
|
765
765
|
rpc clearExpiredEventQrCodes(ClearExpiredEventQrCodesRequest) returns (ClearExpiredEventQrCodesResponse) {}
|
|
766
766
|
rpc generateEventQRCode(GenerateEventQRCodeRequest) returns (GenerateEventQRCodeResponse) {}
|
|
767
|
+
rpc queryEventsAdmin(QueryEventsRequest) returns (QueryEventsResponse) {}
|
|
767
768
|
}
|