@sellout/models 0.0.1 → 0.0.4

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.
Files changed (140) hide show
  1. package/.dist/interfaces/IArtist.d.ts +13 -0
  2. package/.dist/interfaces/IArtist.js +3 -0
  3. package/.dist/interfaces/IArtist.js.map +1 -0
  4. package/.dist/interfaces/IArtistContact.d.ts +8 -0
  5. package/.dist/interfaces/IArtistContact.js +3 -0
  6. package/.dist/interfaces/IArtistContact.js.map +1 -0
  7. package/.dist/interfaces/IArtistPressKit.d.ts +7 -0
  8. package/.dist/interfaces/IArtistPressKit.js +3 -0
  9. package/.dist/interfaces/IArtistPressKit.js.map +1 -0
  10. package/.dist/interfaces/IEvent.d.ts +57 -0
  11. package/.dist/interfaces/IEvent.js +26 -0
  12. package/.dist/interfaces/IEvent.js.map +1 -0
  13. package/.dist/interfaces/IEventCustomField.d.ts +15 -0
  14. package/.dist/interfaces/IEventCustomField.js +8 -0
  15. package/.dist/interfaces/IEventCustomField.js.map +1 -0
  16. package/.dist/interfaces/IEventPromotion.d.ts +14 -0
  17. package/.dist/interfaces/IEventPromotion.js +8 -0
  18. package/.dist/interfaces/IEventPromotion.js.map +1 -0
  19. package/.dist/interfaces/IEventSchedule.d.ts +7 -0
  20. package/.dist/interfaces/IEventSchedule.js +3 -0
  21. package/.dist/interfaces/IEventSchedule.js.map +1 -0
  22. package/.dist/interfaces/IEventUpgrade.d.ts +13 -0
  23. package/.dist/interfaces/IEventUpgrade.js +3 -0
  24. package/.dist/interfaces/IEventUpgrade.js.map +1 -0
  25. package/.dist/interfaces/IFee.d.ts +36 -0
  26. package/.dist/interfaces/IFee.js +28 -0
  27. package/.dist/interfaces/IFee.js.map +1 -0
  28. package/.dist/interfaces/IFile.d.ts +7 -0
  29. package/.dist/interfaces/IFile.js +3 -0
  30. package/.dist/interfaces/IFile.js.map +1 -0
  31. package/.dist/interfaces/IOrder.d.ts +31 -0
  32. package/.dist/interfaces/IOrder.js +4 -0
  33. package/.dist/interfaces/IOrder.js.map +1 -0
  34. package/.dist/interfaces/IOrderCustomField.d.ts +7 -0
  35. package/.dist/interfaces/IOrderCustomField.js +4 -0
  36. package/.dist/interfaces/IOrderCustomField.js.map +1 -0
  37. package/.dist/interfaces/IOrderState.d.ts +9 -0
  38. package/.dist/interfaces/IOrderState.js +25 -0
  39. package/.dist/interfaces/IOrderState.js.map +1 -0
  40. package/.dist/interfaces/IOrderSummary.d.ts +35 -0
  41. package/.dist/interfaces/IOrderSummary.js +3 -0
  42. package/.dist/interfaces/IOrderSummary.js.map +1 -0
  43. package/.dist/interfaces/IOrderTicket.d.ts +14 -0
  44. package/.dist/interfaces/IOrderTicket.js +4 -0
  45. package/.dist/interfaces/IOrderTicket.js.map +1 -0
  46. package/.dist/interfaces/IOrderType.d.ts +5 -0
  47. package/.dist/interfaces/IOrderType.js +10 -0
  48. package/.dist/interfaces/IOrderType.js.map +1 -0
  49. package/.dist/interfaces/IOrderUpgrade.d.ts +13 -0
  50. package/.dist/interfaces/IOrderUpgrade.js +3 -0
  51. package/.dist/interfaces/IOrderUpgrade.js.map +1 -0
  52. package/.dist/interfaces/IOrganization.d.ts +18 -0
  53. package/.dist/interfaces/IOrganization.js +3 -0
  54. package/.dist/interfaces/IOrganization.js.map +1 -0
  55. package/.dist/interfaces/IPerformance.d.ts +17 -0
  56. package/.dist/interfaces/IPerformance.js +3 -0
  57. package/.dist/interfaces/IPerformance.js.map +1 -0
  58. package/.dist/interfaces/IRefund.d.ts +6 -0
  59. package/.dist/interfaces/IRefund.js +3 -0
  60. package/.dist/interfaces/IRefund.js.map +1 -0
  61. package/.dist/interfaces/IRole.d.ts +16 -0
  62. package/.dist/interfaces/IRole.js +3 -0
  63. package/.dist/interfaces/IRole.js.map +1 -0
  64. package/.dist/interfaces/IScan.d.ts +5 -0
  65. package/.dist/interfaces/IScan.js +3 -0
  66. package/.dist/interfaces/IScan.js.map +1 -0
  67. package/.dist/interfaces/ISeating.d.ts +9 -0
  68. package/.dist/interfaces/ISeating.js +3 -0
  69. package/.dist/interfaces/ISeating.js.map +1 -0
  70. package/.dist/interfaces/ISocialAccountLink.d.ts +13 -0
  71. package/.dist/interfaces/ISocialAccountLink.js +13 -0
  72. package/.dist/interfaces/ISocialAccountLink.js.map +1 -0
  73. package/.dist/interfaces/ITask.d.ts +20 -0
  74. package/.dist/interfaces/ITask.js +8 -0
  75. package/.dist/interfaces/ITask.js.map +1 -0
  76. package/.dist/interfaces/ITicketExchange.d.ts +10 -0
  77. package/.dist/interfaces/ITicketExchange.js +10 -0
  78. package/.dist/interfaces/ITicketExchange.js.map +1 -0
  79. package/.dist/interfaces/ITicketHold.d.ts +6 -0
  80. package/.dist/interfaces/ITicketHold.js +3 -0
  81. package/.dist/interfaces/ITicketHold.js.map +1 -0
  82. package/.dist/interfaces/ITicketTier.d.ts +9 -0
  83. package/.dist/interfaces/ITicketTier.js +3 -0
  84. package/.dist/interfaces/ITicketTier.js.map +1 -0
  85. package/.dist/interfaces/ITicketType.d.ts +11 -0
  86. package/.dist/interfaces/ITicketType.js +3 -0
  87. package/.dist/interfaces/ITicketType.js.map +1 -0
  88. package/.dist/interfaces/IUser.d.ts +25 -0
  89. package/.dist/interfaces/IUser.js +9 -0
  90. package/.dist/interfaces/IUser.js.map +1 -0
  91. package/.dist/interfaces/IUserProfile.d.ts +19 -0
  92. package/.dist/interfaces/IUserProfile.js +3 -0
  93. package/.dist/interfaces/IUserProfile.js.map +1 -0
  94. package/.dist/interfaces/IVenue.d.ts +16 -0
  95. package/.dist/interfaces/IVenue.js +3 -0
  96. package/.dist/interfaces/IVenue.js.map +1 -0
  97. package/.dist/interfaces/IWebFlow.d.ts +50 -0
  98. package/.dist/interfaces/IWebFlow.js +10 -0
  99. package/.dist/interfaces/IWebFlow.js.map +1 -0
  100. package/.dist/schemas/Artist.d.ts +221 -0
  101. package/.dist/schemas/Artist.js +103 -0
  102. package/.dist/schemas/Artist.js.map +1 -0
  103. package/.dist/schemas/Event.d.ts +544 -0
  104. package/.dist/schemas/Event.js +392 -0
  105. package/.dist/schemas/Event.js.map +1 -0
  106. package/.dist/schemas/Fee.d.ts +73 -0
  107. package/.dist/schemas/Fee.js +76 -0
  108. package/.dist/schemas/Fee.js.map +1 -0
  109. package/.dist/schemas/Order.d.ts +278 -0
  110. package/.dist/schemas/Order.js +197 -0
  111. package/.dist/schemas/Order.js.map +1 -0
  112. package/.dist/schemas/Organization.d.ts +107 -0
  113. package/.dist/schemas/Organization.js +110 -0
  114. package/.dist/schemas/Organization.js.map +1 -0
  115. package/.dist/schemas/Role.d.ts +36 -0
  116. package/.dist/schemas/Role.js +39 -0
  117. package/.dist/schemas/Role.js.map +1 -0
  118. package/.dist/schemas/Seating.d.ts +33 -0
  119. package/.dist/schemas/Seating.js +36 -0
  120. package/.dist/schemas/Seating.js.map +1 -0
  121. package/.dist/schemas/User.d.ts +94 -0
  122. package/.dist/schemas/User.js +97 -0
  123. package/.dist/schemas/User.js.map +1 -0
  124. package/.dist/schemas/UserProfile.d.ts +249 -0
  125. package/.dist/schemas/UserProfile.js +69 -0
  126. package/.dist/schemas/UserProfile.js.map +1 -0
  127. package/.dist/schemas/Venue.d.ts +236 -0
  128. package/.dist/schemas/Venue.js +60 -0
  129. package/.dist/schemas/Venue.js.map +1 -0
  130. package/.dist/schemas/WebFlow.d.ts +121 -0
  131. package/.dist/schemas/WebFlow.js +130 -0
  132. package/.dist/schemas/WebFlow.js.map +1 -0
  133. package/package.json +5 -4
  134. package/src/interfaces/IArtist.ts +1 -1
  135. package/src/interfaces/IEvent.ts +2 -2
  136. package/src/interfaces/IOrder.ts +1 -1
  137. package/src/interfaces/IOrganization.ts +1 -1
  138. package/src/interfaces/IUserProfile.ts +2 -2
  139. package/src/interfaces/IVenue.ts +2 -2
  140. package/src/schemas/Event.ts +16 -14
@@ -0,0 +1,236 @@
1
+ declare const _default: {
2
+ _id: {
3
+ type: StringConstructor;
4
+ default: any;
5
+ };
6
+ name: {
7
+ type: StringConstructor;
8
+ required: boolean;
9
+ };
10
+ description: {
11
+ type: StringConstructor;
12
+ default: null;
13
+ };
14
+ capacity: {
15
+ type: NumberConstructor;
16
+ default: null;
17
+ };
18
+ url: {
19
+ type: StringConstructor;
20
+ default: null;
21
+ };
22
+ imageUrls: {
23
+ type: StringConstructor;
24
+ }[];
25
+ seatingMapIds: {
26
+ type: StringConstructor;
27
+ }[];
28
+ venueGlobalId: {
29
+ type: StringConstructor;
30
+ default: null;
31
+ };
32
+ orgId: {
33
+ type: StringConstructor;
34
+ default: null;
35
+ };
36
+ venueFee: {
37
+ type: NumberConstructor;
38
+ default: null;
39
+ };
40
+ createdAt: {
41
+ type: NumberConstructor;
42
+ default: null;
43
+ };
44
+ createdBy: {
45
+ type: StringConstructor;
46
+ default: null;
47
+ };
48
+ address: {
49
+ address1: {
50
+ type: StringConstructor;
51
+ required: boolean;
52
+ default: null;
53
+ };
54
+ address2: {
55
+ type: StringConstructor;
56
+ required: boolean;
57
+ default: null;
58
+ };
59
+ city: {
60
+ type: StringConstructor;
61
+ required: boolean;
62
+ default: null;
63
+ };
64
+ state: {
65
+ type: StringConstructor;
66
+ required: boolean;
67
+ default: null;
68
+ };
69
+ zip: {
70
+ type: StringConstructor;
71
+ required: boolean;
72
+ default: null;
73
+ };
74
+ country: {
75
+ type: StringConstructor;
76
+ required: boolean;
77
+ default: null;
78
+ };
79
+ phone: {
80
+ type: StringConstructor;
81
+ required: boolean;
82
+ default: null;
83
+ };
84
+ lat: {
85
+ type: NumberConstructor;
86
+ required: boolean;
87
+ default: null;
88
+ };
89
+ lng: {
90
+ type: NumberConstructor;
91
+ required: boolean;
92
+ default: null;
93
+ };
94
+ placeId: {
95
+ type: StringConstructor;
96
+ required: boolean;
97
+ default: null;
98
+ };
99
+ timezone: {
100
+ type: StringConstructor;
101
+ required: boolean;
102
+ default: null;
103
+ };
104
+ };
105
+ metrics: {
106
+ orgId: {
107
+ type: StringConstructor;
108
+ required: boolean;
109
+ };
110
+ createdAt: {
111
+ type: NumberConstructor;
112
+ required: boolean;
113
+ };
114
+ lifeTimeValue: {
115
+ type: NumberConstructor;
116
+ required: boolean;
117
+ default: number;
118
+ };
119
+ yearToDateValue: {
120
+ type: NumberConstructor;
121
+ required: boolean;
122
+ default: number;
123
+ };
124
+ lifeTimeValueRefunded: {
125
+ type: NumberConstructor;
126
+ required: boolean;
127
+ default: number;
128
+ };
129
+ yearToDateValueRefunded: {
130
+ type: NumberConstructor;
131
+ required: boolean;
132
+ default: number;
133
+ };
134
+ lifeTimeValueComped: {
135
+ type: NumberConstructor;
136
+ required: boolean;
137
+ default: number;
138
+ };
139
+ yearToDateValueComped: {
140
+ type: NumberConstructor;
141
+ required: boolean;
142
+ default: number;
143
+ };
144
+ lifeTimeTicketsPurchased: {
145
+ type: NumberConstructor;
146
+ required: boolean;
147
+ default: number;
148
+ };
149
+ yearToDateTicketsPurchased: {
150
+ type: NumberConstructor;
151
+ required: boolean;
152
+ default: number;
153
+ };
154
+ lifeTimeTicketsRefunded: {
155
+ type: NumberConstructor;
156
+ required: boolean;
157
+ default: number;
158
+ };
159
+ yearToDateTicketsRefunded: {
160
+ type: NumberConstructor;
161
+ required: boolean;
162
+ default: number;
163
+ };
164
+ lifeTimeTicketsComped: {
165
+ type: NumberConstructor;
166
+ required: boolean;
167
+ default: number;
168
+ };
169
+ yearToDateTicketsComped: {
170
+ type: NumberConstructor;
171
+ required: boolean;
172
+ default: number;
173
+ };
174
+ lifeTimeUpgradesPurchased: {
175
+ type: NumberConstructor;
176
+ required: boolean;
177
+ default: number;
178
+ };
179
+ yearToDateUpgradesPurchased: {
180
+ type: NumberConstructor;
181
+ required: boolean;
182
+ default: number;
183
+ };
184
+ lifeTimeUpgradesRefunded: {
185
+ type: NumberConstructor;
186
+ required: boolean;
187
+ default: number;
188
+ };
189
+ yearToDateUpgradesRefunded: {
190
+ type: NumberConstructor;
191
+ required: boolean;
192
+ default: number;
193
+ };
194
+ lifeTimeUpgradesComped: {
195
+ type: NumberConstructor;
196
+ required: boolean;
197
+ default: number;
198
+ };
199
+ yearToDateUpgradesComped: {
200
+ type: NumberConstructor;
201
+ required: boolean;
202
+ default: number;
203
+ };
204
+ lifeTimeOrdersPurchased: {
205
+ type: NumberConstructor;
206
+ required: boolean;
207
+ default: number;
208
+ };
209
+ yearToDateOrdersPurchased: {
210
+ type: NumberConstructor;
211
+ required: boolean;
212
+ default: number;
213
+ };
214
+ lifeTimeOrdersRefunded: {
215
+ type: NumberConstructor;
216
+ required: boolean;
217
+ default: number;
218
+ };
219
+ yearToDateOrdersRefunded: {
220
+ type: NumberConstructor;
221
+ required: boolean;
222
+ default: number;
223
+ };
224
+ lifeTimeOrdersComped: {
225
+ type: NumberConstructor;
226
+ required: boolean;
227
+ default: number;
228
+ };
229
+ yearToDateOrdersComped: {
230
+ type: NumberConstructor;
231
+ required: boolean;
232
+ default: number;
233
+ };
234
+ };
235
+ };
236
+ export default _default;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const shortid_1 = require("shortid");
4
+ const Address_1 = require("./Address");
5
+ const Metrics_1 = require("./Metrics");
6
+ exports.default = {
7
+ _id: {
8
+ type: String,
9
+ default: shortid_1.default.generate,
10
+ },
11
+ name: {
12
+ type: String,
13
+ required: false,
14
+ },
15
+ description: {
16
+ type: String,
17
+ default: null,
18
+ },
19
+ capacity: {
20
+ type: Number,
21
+ default: null,
22
+ },
23
+ url: {
24
+ type: String,
25
+ default: null,
26
+ },
27
+ imageUrls: [
28
+ {
29
+ type: String,
30
+ },
31
+ ],
32
+ seatingMapIds: [
33
+ {
34
+ type: String,
35
+ },
36
+ ],
37
+ venueGlobalId: {
38
+ type: String,
39
+ default: null,
40
+ },
41
+ orgId: {
42
+ type: String,
43
+ default: null,
44
+ },
45
+ venueFee: {
46
+ type: Number,
47
+ default: null,
48
+ },
49
+ createdAt: {
50
+ type: Number,
51
+ default: null,
52
+ },
53
+ createdBy: {
54
+ type: String,
55
+ default: null,
56
+ },
57
+ address: Address_1.default,
58
+ metrics: Metrics_1.default,
59
+ };
60
+ //# sourceMappingURL=Venue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Venue.js","sourceRoot":"","sources":["../../src/schemas/Venue.ts"],"names":[],"mappings":";;AAAA,qCAA8B;AAC9B,uCAAgC;AAChC,uCAAgC;AAEhC,kBAAe;IACb,GAAG,EAAE;QACH,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iBAAO,CAAC,QAAQ;KAC1B;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;KACd;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACH,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACT;YACE,IAAI,EAAE,MAAM;SACb;KACF;IACD,aAAa,EAAE;QACb;YACE,IAAI,EAAE,MAAM;SACb;KACF;IACD,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;KACd;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;KACd;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;KACd;IACD,OAAO,EAAE,iBAAO;IAChB,OAAO,EAAE,iBAAO;CACjB,CAAC"}
@@ -0,0 +1,121 @@
1
+ declare const _default: {
2
+ _id: {
3
+ type: StringConstructor;
4
+ default: any;
5
+ };
6
+ orgId: {
7
+ type: StringConstructor;
8
+ required: boolean;
9
+ };
10
+ sites: {
11
+ name: {
12
+ type: StringConstructor;
13
+ required: boolean;
14
+ };
15
+ webFlowId: {
16
+ type: StringConstructor;
17
+ required: boolean;
18
+ };
19
+ enabled: {
20
+ type: BooleanConstructor;
21
+ required: boolean;
22
+ default: boolean;
23
+ };
24
+ eventCollectionId: {
25
+ type: StringConstructor;
26
+ required: boolean;
27
+ default: null;
28
+ };
29
+ venueCollectionId: {
30
+ type: StringConstructor;
31
+ required: boolean;
32
+ default: null;
33
+ };
34
+ artistCollectionId: {
35
+ type: StringConstructor;
36
+ required: boolean;
37
+ default: null;
38
+ };
39
+ organizationCollectionId: {
40
+ type: StringConstructor;
41
+ required: boolean;
42
+ default: null;
43
+ };
44
+ eventTypeCollectionId: {
45
+ type: StringConstructor;
46
+ required: boolean;
47
+ default: null;
48
+ };
49
+ previewUrl: {
50
+ type: StringConstructor;
51
+ required: boolean;
52
+ default: null;
53
+ };
54
+ domains: {
55
+ name: {
56
+ type: StringConstructor;
57
+ required: boolean;
58
+ };
59
+ lastPublishedAt: {
60
+ type: NumberConstructor;
61
+ required: boolean;
62
+ default: null;
63
+ };
64
+ }[];
65
+ createdAt: {
66
+ type: NumberConstructor;
67
+ required: boolean;
68
+ default: null;
69
+ };
70
+ updatedAt: {
71
+ type: NumberConstructor;
72
+ required: boolean;
73
+ default: null;
74
+ };
75
+ }[];
76
+ entities: {
77
+ entityType: {
78
+ type: StringConstructor;
79
+ required: boolean;
80
+ };
81
+ name: {
82
+ type: StringConstructor;
83
+ required: boolean;
84
+ };
85
+ selloutId: {
86
+ type: StringConstructor;
87
+ required: boolean;
88
+ };
89
+ webFlowIds: {
90
+ webFlowSiteId: StringConstructor;
91
+ webFlowEntityId: StringConstructor;
92
+ slug: StringConstructor;
93
+ }[];
94
+ alwaysPublishTo: {
95
+ type: StringConstructor;
96
+ required: boolean;
97
+ default: never[];
98
+ }[];
99
+ createdAt: {
100
+ type: NumberConstructor;
101
+ required: boolean;
102
+ default: null;
103
+ };
104
+ updatedAt: {
105
+ type: NumberConstructor;
106
+ required: boolean;
107
+ default: null;
108
+ };
109
+ }[];
110
+ createdAt: {
111
+ type: NumberConstructor;
112
+ required: boolean;
113
+ default: null;
114
+ };
115
+ updatedAt: {
116
+ type: NumberConstructor;
117
+ required: boolean;
118
+ default: null;
119
+ };
120
+ };
121
+ export default _default;
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const shortid_1 = require("shortid");
4
+ const WebFlowSiteDomain = {
5
+ name: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ lastPublishedAt: {
10
+ type: Number,
11
+ required: false,
12
+ default: null,
13
+ },
14
+ };
15
+ const WebFlowSite = {
16
+ name: {
17
+ type: String,
18
+ required: false,
19
+ },
20
+ webFlowId: {
21
+ type: String,
22
+ required: true,
23
+ },
24
+ enabled: {
25
+ type: Boolean,
26
+ required: true,
27
+ default: true,
28
+ },
29
+ eventCollectionId: {
30
+ type: String,
31
+ required: true,
32
+ default: null,
33
+ },
34
+ venueCollectionId: {
35
+ type: String,
36
+ required: true,
37
+ default: null,
38
+ },
39
+ artistCollectionId: {
40
+ type: String,
41
+ required: true,
42
+ default: null,
43
+ },
44
+ organizationCollectionId: {
45
+ type: String,
46
+ required: true,
47
+ default: null,
48
+ },
49
+ eventTypeCollectionId: {
50
+ type: String,
51
+ required: true,
52
+ default: null,
53
+ },
54
+ previewUrl: {
55
+ type: String,
56
+ required: true,
57
+ default: null,
58
+ },
59
+ domains: [WebFlowSiteDomain],
60
+ createdAt: {
61
+ type: Number,
62
+ required: true,
63
+ default: null,
64
+ },
65
+ updatedAt: {
66
+ type: Number,
67
+ required: false,
68
+ default: null,
69
+ },
70
+ };
71
+ const WebFlowEntityId = {
72
+ webFlowSiteId: String,
73
+ webFlowEntityId: String,
74
+ slug: String,
75
+ };
76
+ const WebFlowEntity = {
77
+ entityType: {
78
+ type: String,
79
+ required: true,
80
+ },
81
+ name: {
82
+ type: String,
83
+ required: false,
84
+ },
85
+ selloutId: {
86
+ type: String,
87
+ required: true,
88
+ },
89
+ webFlowIds: [WebFlowEntityId],
90
+ alwaysPublishTo: [
91
+ {
92
+ type: String,
93
+ required: false,
94
+ default: [],
95
+ },
96
+ ],
97
+ createdAt: {
98
+ type: Number,
99
+ required: true,
100
+ default: null,
101
+ },
102
+ updatedAt: {
103
+ type: Number,
104
+ required: false,
105
+ default: null,
106
+ },
107
+ };
108
+ exports.default = {
109
+ _id: {
110
+ type: String,
111
+ default: shortid_1.default.generate,
112
+ },
113
+ orgId: {
114
+ type: String,
115
+ required: true,
116
+ },
117
+ sites: [WebFlowSite],
118
+ entities: [WebFlowEntity],
119
+ createdAt: {
120
+ type: Number,
121
+ required: true,
122
+ default: null,
123
+ },
124
+ updatedAt: {
125
+ type: Number,
126
+ required: false,
127
+ default: null,
128
+ },
129
+ };
130
+ //# sourceMappingURL=WebFlow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebFlow.js","sourceRoot":"","sources":["../../src/schemas/WebFlow.ts"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
+ "prepare": "npm run build",
7
8
  "build": "tsc --project . && npm run build:pb",
8
9
  "build:pb": "pbjs -t static-module -w commonjs -o ./.dist/sellout-proto.js src/proto/*.proto",
9
10
  "start": "nodemon --watch src -e json,js,ts -x \"npm run build\""
@@ -15,8 +16,8 @@
15
16
  "author": "samheutmaker@gmail.com",
16
17
  "license": "MIT",
17
18
  "dependencies": {
18
- "@sellout/service": "^0.0.1",
19
- "@sellout/utils": "^0.0.1",
19
+ "@sellout/service": "^0.0.4",
20
+ "@sellout/utils": "^0.0.4",
20
21
  "shortid": "^2.2.15"
21
22
  },
22
23
  "devDependencies": {
@@ -25,5 +26,5 @@
25
26
  "protobufjs": "~6.8.8",
26
27
  "typescript": "^3.8.3"
27
28
  },
28
- "gitHead": "5f577126fcc59699bc5447b62f0ee56aa4b9759b"
29
+ "gitHead": "d36767558266a771f23bb068af3eb93650f511d6"
29
30
  }
@@ -1,4 +1,4 @@
1
- import IMetrics from "@sellout/models/.dist/interfaces/IMetrics";
1
+ import IMetrics from "./IMetrics";
2
2
  import { ISocialAccountLink } from './ISocialAccountLink';
3
3
  import IArtistPressKit from './IArtistPressKit';
4
4
  import IArtistContact from './IArtistContact';
@@ -1,5 +1,5 @@
1
- import IAddress from "@sellout/models/.dist/interfaces/IAddress";
2
- import IMetrics from "@sellout/models/.dist/interfaces/IMetrics";
1
+ import IAddress from "./IAddress";
2
+ import IMetrics from "./IMetrics";
3
3
  import ITicketType from './ITicketType';
4
4
  import IEventSchedule from './IEventSchedule';
5
5
  import ITicketExchange from './ITicketExchange';
@@ -1,4 +1,4 @@
1
- import IAddress from "@sellout/models/.dist/interfaces/IAddress";
1
+ import IAddress from "./IAddress";
2
2
  import IOrderTicket from './IOrderTicket';
3
3
  import IOrderUpgrade from './IOrderUpgrade';
4
4
  import IOrderCustomField from './IOrderCustomField'
@@ -1,4 +1,4 @@
1
- import IAddress from "@sellout/models/.dist/interfaces/IAddress";
1
+ import IAddress from "./IAddress";
2
2
 
3
3
  export default interface IOrganization {
4
4
  _id?: string;
@@ -1,5 +1,5 @@
1
- import IAddress from "@sellout/models/.dist/interfaces/IAddress";
2
- import IMetrics from "@sellout/models/.dist/interfaces/IMetrics";
1
+ import IAddress from "./IAddress";
2
+ import IMetrics from "./IMetrics";
3
3
 
4
4
  export default interface IUserProfile {
5
5
  _id?: string;
@@ -1,5 +1,5 @@
1
- import IAddress from "@sellout/models/.dist/interfaces/IAddress";
2
- import IMetrics from "@sellout/models/.dist/interfaces/IMetrics";
1
+ import IAddress from "./IAddress";
2
+ import IMetrics from "./IMetrics";
3
3
 
4
4
  export default interface IVenue {
5
5
  _id?: string;
@@ -90,20 +90,22 @@ const EventPromotion = {
90
90
  }
91
91
  };
92
92
 
93
- const EventFee = {
94
- name: {
95
- type: String,
96
- required: true,
97
- },
98
- type: {
99
- type: String,
100
- required: true,
101
- },
102
- amount: {
103
- type: Number,
104
- required: true,
105
- },
106
- };
93
+ // I'm not sure why this is here or if we need it
94
+ // but it's currently not used so I'm commenting it out
95
+ // const EventFee = {
96
+ // name: {
97
+ // type: String,
98
+ // required: true,
99
+ // },
100
+ // type: {
101
+ // type: String,
102
+ // required: true,
103
+ // },
104
+ // amount: {
105
+ // type: Number,
106
+ // required: true,
107
+ // },
108
+ // };
107
109
 
108
110
  const EventSchedule = {
109
111
  announceAt: {