@sellout/models 0.0.367 → 0.0.369

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.
@@ -38,6 +38,7 @@ const query = (0, client_1.gql) `
38
38
  sendQRCode
39
39
  hasOrders
40
40
  taxDeduction
41
+ stub
41
42
  venue {
42
43
  _id
43
44
  name
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiDb,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,WAAW;IAC3B,wBAAK,CAAC,SAAS,CAAC,YAAY;CAC/B,CAAC;AAEF,kBAAe,KAAK,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkDb,wBAAK,CAAC,SAAS,CAAC,QAAQ;IACxB,wBAAK,CAAC,SAAS,CAAC,WAAW;IAC3B,wBAAK,CAAC,SAAS,CAAC,YAAY;CAC/B,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const query: import("@apollo/client").DocumentNode;
2
+ export default query;
@@ -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 client_1 = require("@apollo/client");
7
+ const event_fragment_1 = __importDefault(require("../fragments/event.fragment"));
8
+ const query = (0, client_1.gql) `
9
+ query eventsListOptimized($query: EventQueryInput, $pagination: PaginationInput) {
10
+ events(query: $query, pagination: $pagination) {
11
+ _id
12
+ name
13
+ subtitle
14
+ cancel
15
+ venueId
16
+ type
17
+ published
18
+ description
19
+ posterImageUrl {
20
+ original
21
+ medium
22
+ small
23
+ }
24
+ venue {
25
+ _id
26
+ name
27
+ address {
28
+ city
29
+ state
30
+ timezone
31
+ }
32
+ }
33
+ schedule {
34
+ startsAt
35
+ endsAt
36
+ }
37
+ performances {
38
+ _id
39
+ schedule {
40
+ startsAt
41
+ endsAt
42
+ doorsAt
43
+ }
44
+ }
45
+ ...TicketTypes
46
+ analytics {
47
+ segments {
48
+ coordinates {
49
+ x
50
+ y
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ ${event_fragment_1.default.fragments.ticketTypes}
57
+ `;
58
+ exports.default = query;
59
+ //# sourceMappingURL=eventsListOptimized.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventsListOptimized.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/eventsListOptimized.query.ts"],"names":[],"mappings":";;;;;AAAA,2CAAmC;AACnC,iFAAgD;AAEhD,MAAM,KAAK,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDV,wBAAK,CAAC,SAAS,CAAC,WAAW;CACjC,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const query: import("@apollo/client").DocumentNode;
2
+ export default query;
@@ -0,0 +1,81 @@
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 optimizedOrders($query: OrderQueryInput, $pagination: PaginationInput) {
6
+ orders(query: $query, pagination: $pagination) {
7
+ _id
8
+ eventName
9
+ printed
10
+ createdAt
11
+ state
12
+ channel
13
+ type
14
+ tax
15
+ refundedAmount
16
+ user {
17
+ email
18
+ firstName
19
+ lastName
20
+ }
21
+ event {
22
+ name
23
+ subtitle
24
+ isMultipleDays
25
+ posterImageUrl {
26
+ original
27
+ medium
28
+ small
29
+ }
30
+ schedule {
31
+ startsAt
32
+ endsAt
33
+ }
34
+ venue {
35
+ name
36
+ address {
37
+ timezone
38
+ }
39
+ }
40
+ }
41
+ season {
42
+ venue {
43
+ address {
44
+ timezone
45
+ }
46
+ }
47
+ }
48
+ fees {
49
+ amount
50
+ }
51
+ payments {
52
+ amount
53
+ }
54
+ orderIntegrationResponse {
55
+ success
56
+ createdAt
57
+ }
58
+ tickets {
59
+ state
60
+ values
61
+ price
62
+ paymentId
63
+ scan {
64
+ scanned
65
+ startsAt
66
+ }
67
+ }
68
+ upgrades {
69
+ state
70
+ price
71
+ paymentId
72
+ scan {
73
+ scanned
74
+ startsAt
75
+ }
76
+ }
77
+ }
78
+ }
79
+ `;
80
+ exports.default = query;
81
+ //# sourceMappingURL=ordersTableOptimized.query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ordersTableOptimized.query.js","sourceRoot":"","sources":["../../../src/graphql/queries/ordersTableOptimized.query.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAErC,MAAM,KAAK,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2EhB,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -97,7 +97,7 @@ export default interface IEvent {
97
97
  organization?: IOrganization;
98
98
  subscription: ISalesReport[];
99
99
  isHold?: boolean;
100
- stub?: string;
100
+ stub?: string | null;
101
101
  waitList: IWaitList[];
102
102
  eventEmailSubject?: IEmailHolders;
103
103
  eventEmailBody?: IEmailHolders;
@@ -3,8 +3,8 @@ export declare enum EventQuerySortByEnum {
3
3
  StartsAt = "schedule.startsAt"
4
4
  }
5
5
  export declare enum EventQueryOrderByEnum {
6
- Ascending = -1,
7
- Descending = 1
6
+ Ascending = 1,
7
+ Descending = -1
8
8
  }
9
9
  export default interface IEventQuery {
10
10
  orgId?: string;
@@ -20,4 +20,7 @@ export default interface IEventQuery {
20
20
  published?: boolean;
21
21
  cancel?: boolean;
22
22
  any?: boolean;
23
+ searchStartDate?: number;
24
+ searchEndDate?: number;
25
+ nameVenueOr?: boolean;
23
26
  }
@@ -9,7 +9,7 @@ var EventQuerySortByEnum;
9
9
  ;
10
10
  var EventQueryOrderByEnum;
11
11
  (function (EventQueryOrderByEnum) {
12
- EventQueryOrderByEnum[EventQueryOrderByEnum["Ascending"] = -1] = "Ascending";
13
- EventQueryOrderByEnum[EventQueryOrderByEnum["Descending"] = 1] = "Descending";
12
+ EventQueryOrderByEnum[EventQueryOrderByEnum["Ascending"] = 1] = "Ascending";
13
+ EventQueryOrderByEnum[EventQueryOrderByEnum["Descending"] = -1] = "Descending";
14
14
  })(EventQueryOrderByEnum = exports.EventQueryOrderByEnum || (exports.EventQueryOrderByEnum = {}));
15
15
  //# sourceMappingURL=IEventQuery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IEventQuery.js","sourceRoot":"","sources":["../../src/interfaces/IEventQuery.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,sDAA+B,CAAA;AACjC,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAAA,CAAC;AAEF,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,4EAAc,CAAA;IACd,6EAAc,CAAA;AAChB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
1
+ {"version":3,"file":"IEventQuery.js","sourceRoot":"","sources":["../../src/interfaces/IEventQuery.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,sDAA+B,CAAA;AACjC,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAAA,CAAC;AAEF,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,2EAAa,CAAA;IACb,8EAAe,CAAA;AACjB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
@@ -98130,6 +98130,9 @@ $root.EventQuery = (function() {
98130
98130
  * @property {boolean|null} [published] EventQuery published
98131
98131
  * @property {boolean|null} [any] EventQuery any
98132
98132
  * @property {boolean|null} [cancel] EventQuery cancel
98133
+ * @property {string|null} [venueName] EventQuery venueName
98134
+ * @property {number|null} [searchStartDate] EventQuery searchStartDate
98135
+ * @property {number|null} [searchEndDate] EventQuery searchEndDate
98133
98136
  */
98134
98137
 
98135
98138
  /**
@@ -98247,6 +98250,30 @@ $root.EventQuery = (function() {
98247
98250
  */
98248
98251
  EventQuery.prototype.cancel = false;
98249
98252
 
98253
+ /**
98254
+ * EventQuery venueName.
98255
+ * @member {string} venueName
98256
+ * @memberof EventQuery
98257
+ * @instance
98258
+ */
98259
+ EventQuery.prototype.venueName = "";
98260
+
98261
+ /**
98262
+ * EventQuery searchStartDate.
98263
+ * @member {number} searchStartDate
98264
+ * @memberof EventQuery
98265
+ * @instance
98266
+ */
98267
+ EventQuery.prototype.searchStartDate = 0;
98268
+
98269
+ /**
98270
+ * EventQuery searchEndDate.
98271
+ * @member {number} searchEndDate
98272
+ * @memberof EventQuery
98273
+ * @instance
98274
+ */
98275
+ EventQuery.prototype.searchEndDate = 0;
98276
+
98250
98277
  /**
98251
98278
  * Creates a new EventQuery instance using the specified properties.
98252
98279
  * @function create
@@ -98299,6 +98326,12 @@ $root.EventQuery = (function() {
98299
98326
  writer.uint32(/* id 10, wireType 0 =*/80).bool(message.any);
98300
98327
  if (message.cancel != null && Object.hasOwnProperty.call(message, "cancel"))
98301
98328
  writer.uint32(/* id 11, wireType 0 =*/88).bool(message.cancel);
98329
+ if (message.venueName != null && Object.hasOwnProperty.call(message, "venueName"))
98330
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.venueName);
98331
+ if (message.searchStartDate != null && Object.hasOwnProperty.call(message, "searchStartDate"))
98332
+ writer.uint32(/* id 13, wireType 0 =*/104).int32(message.searchStartDate);
98333
+ if (message.searchEndDate != null && Object.hasOwnProperty.call(message, "searchEndDate"))
98334
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.searchEndDate);
98302
98335
  return writer;
98303
98336
  };
98304
98337
 
@@ -98377,6 +98410,15 @@ $root.EventQuery = (function() {
98377
98410
  case 11:
98378
98411
  message.cancel = reader.bool();
98379
98412
  break;
98413
+ case 12:
98414
+ message.venueName = reader.string();
98415
+ break;
98416
+ case 13:
98417
+ message.searchStartDate = reader.int32();
98418
+ break;
98419
+ case 14:
98420
+ message.searchEndDate = reader.int32();
98421
+ break;
98380
98422
  default:
98381
98423
  reader.skipType(tag & 7);
98382
98424
  break;
@@ -98464,6 +98506,15 @@ $root.EventQuery = (function() {
98464
98506
  if (message.cancel != null && message.hasOwnProperty("cancel"))
98465
98507
  if (typeof message.cancel !== "boolean")
98466
98508
  return "cancel: boolean expected";
98509
+ if (message.venueName != null && message.hasOwnProperty("venueName"))
98510
+ if (!$util.isString(message.venueName))
98511
+ return "venueName: string expected";
98512
+ if (message.searchStartDate != null && message.hasOwnProperty("searchStartDate"))
98513
+ if (!$util.isInteger(message.searchStartDate))
98514
+ return "searchStartDate: integer expected";
98515
+ if (message.searchEndDate != null && message.hasOwnProperty("searchEndDate"))
98516
+ if (!$util.isInteger(message.searchEndDate))
98517
+ return "searchEndDate: integer expected";
98467
98518
  return null;
98468
98519
  };
98469
98520
 
@@ -98523,6 +98574,12 @@ $root.EventQuery = (function() {
98523
98574
  message.any = Boolean(object.any);
98524
98575
  if (object.cancel != null)
98525
98576
  message.cancel = Boolean(object.cancel);
98577
+ if (object.venueName != null)
98578
+ message.venueName = String(object.venueName);
98579
+ if (object.searchStartDate != null)
98580
+ message.searchStartDate = object.searchStartDate | 0;
98581
+ if (object.searchEndDate != null)
98582
+ message.searchEndDate = object.searchEndDate | 0;
98526
98583
  return message;
98527
98584
  };
98528
98585
 
@@ -98554,6 +98611,9 @@ $root.EventQuery = (function() {
98554
98611
  object.published = false;
98555
98612
  object.any = false;
98556
98613
  object.cancel = false;
98614
+ object.venueName = "";
98615
+ object.searchStartDate = 0;
98616
+ object.searchEndDate = 0;
98557
98617
  }
98558
98618
  if (message.name != null && message.hasOwnProperty("name"))
98559
98619
  object.name = message.name;
@@ -98591,6 +98651,12 @@ $root.EventQuery = (function() {
98591
98651
  object.any = message.any;
98592
98652
  if (message.cancel != null && message.hasOwnProperty("cancel"))
98593
98653
  object.cancel = message.cancel;
98654
+ if (message.venueName != null && message.hasOwnProperty("venueName"))
98655
+ object.venueName = message.venueName;
98656
+ if (message.searchStartDate != null && message.hasOwnProperty("searchStartDate"))
98657
+ object.searchStartDate = message.searchStartDate;
98658
+ if (message.searchEndDate != null && message.hasOwnProperty("searchEndDate"))
98659
+ object.searchEndDate = message.searchEndDate;
98594
98660
  return object;
98595
98661
  };
98596
98662
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.367",
3
+ "version": "0.0.369",
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.367",
21
+ "@sellout/utils": "^0.0.369",
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": "f077d68de4c1f1878031b689b8a59dd5dfc75530"
35
+ "gitHead": "7a339bf792fb27c067a0610ee39de38320aa0aa8"
36
36
  }
@@ -34,6 +34,7 @@ const query = gql`
34
34
  sendQRCode
35
35
  hasOrders
36
36
  taxDeduction
37
+ stub
37
38
  venue {
38
39
  _id
39
40
  name
@@ -0,0 +1,55 @@
1
+ import {gql} from "@apollo/client";
2
+ import Event from "../fragments/event.fragment";
3
+
4
+ const query = gql`
5
+ query eventsListOptimized($query: EventQueryInput, $pagination: PaginationInput) {
6
+ events(query: $query, pagination: $pagination) {
7
+ _id
8
+ name
9
+ subtitle
10
+ cancel
11
+ venueId
12
+ type
13
+ published
14
+ description
15
+ posterImageUrl {
16
+ original
17
+ medium
18
+ small
19
+ }
20
+ venue {
21
+ _id
22
+ name
23
+ address {
24
+ city
25
+ state
26
+ timezone
27
+ }
28
+ }
29
+ schedule {
30
+ startsAt
31
+ endsAt
32
+ }
33
+ performances {
34
+ _id
35
+ schedule {
36
+ startsAt
37
+ endsAt
38
+ doorsAt
39
+ }
40
+ }
41
+ ...TicketTypes
42
+ analytics {
43
+ segments {
44
+ coordinates {
45
+ x
46
+ y
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ ${Event.fragments.ticketTypes}
53
+ `;
54
+
55
+ export default query;
@@ -0,0 +1,80 @@
1
+ import { gql } from "@apollo/client";
2
+
3
+ const query = gql`
4
+ query optimizedOrders($query: OrderQueryInput, $pagination: PaginationInput) {
5
+ orders(query: $query, pagination: $pagination) {
6
+ _id
7
+ eventName
8
+ printed
9
+ createdAt
10
+ state
11
+ channel
12
+ type
13
+ tax
14
+ refundedAmount
15
+ user {
16
+ email
17
+ firstName
18
+ lastName
19
+ }
20
+ event {
21
+ name
22
+ subtitle
23
+ isMultipleDays
24
+ posterImageUrl {
25
+ original
26
+ medium
27
+ small
28
+ }
29
+ schedule {
30
+ startsAt
31
+ endsAt
32
+ }
33
+ venue {
34
+ name
35
+ address {
36
+ timezone
37
+ }
38
+ }
39
+ }
40
+ season {
41
+ venue {
42
+ address {
43
+ timezone
44
+ }
45
+ }
46
+ }
47
+ fees {
48
+ amount
49
+ }
50
+ payments {
51
+ amount
52
+ }
53
+ orderIntegrationResponse {
54
+ success
55
+ createdAt
56
+ }
57
+ tickets {
58
+ state
59
+ values
60
+ price
61
+ paymentId
62
+ scan {
63
+ scanned
64
+ startsAt
65
+ }
66
+ }
67
+ upgrades {
68
+ state
69
+ price
70
+ paymentId
71
+ scan {
72
+ scanned
73
+ startsAt
74
+ }
75
+ }
76
+ }
77
+ }
78
+ `;
79
+
80
+ export default query;
@@ -119,7 +119,7 @@ export default interface IEvent {
119
119
  organization?: IOrganization;
120
120
  subscription: ISalesReport[];
121
121
  isHold?: boolean;
122
- stub?: string;
122
+ stub?: string | null;
123
123
  waitList: IWaitList[];
124
124
  eventEmailSubject?: IEmailHolders;
125
125
  eventEmailBody?:IEmailHolders;
@@ -4,8 +4,8 @@ export enum EventQuerySortByEnum {
4
4
  };
5
5
 
6
6
  export enum EventQueryOrderByEnum {
7
- Ascending = -1,
8
- Descending = 1,
7
+ Ascending = 1,
8
+ Descending = -1,
9
9
  }
10
10
 
11
11
  export default interface IEventQuery {
@@ -22,4 +22,7 @@ export default interface IEventQuery {
22
22
  published?: boolean;
23
23
  cancel?: boolean;
24
24
  any?: boolean;
25
+ searchStartDate?: number;
26
+ searchEndDate?: number;
27
+ nameVenueOr?: boolean;
25
28
  }
@@ -349,6 +349,9 @@ message EventQuery {
349
349
  bool published = 9;
350
350
  bool any = 10;
351
351
  bool cancel = 11;
352
+ string venueName = 12;
353
+ int32 searchStartDate = 13;
354
+ int32 searchEndDate = 14;
352
355
  }
353
356
 
354
357
  message SearchQuery {