@sellout/models 0.0.368 → 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,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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.368",
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.368",
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": "25c9e4ec1555e538c36a9b3bfa21adf1228dd459"
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,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;