@sellout/models 0.0.1 → 0.0.5

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 (150) 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 +106 -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 +395 -0
  105. package/.dist/schemas/Event.js.map +1 -0
  106. package/.dist/{mongo/Address.d.ts → schemas/Fee.d.ts} +34 -19
  107. package/.dist/schemas/Fee.js +79 -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 +200 -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 +113 -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 +42 -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 +39 -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 +100 -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 +72 -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 +63 -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 +133 -0
  132. package/.dist/schemas/WebFlow.js.map +1 -0
  133. package/.dist/utils/EventUtil.js +8 -1
  134. package/.dist/utils/EventUtil.js.map +1 -1
  135. package/.dist/utils/OrderUtil.js +4 -1
  136. package/.dist/utils/OrderUtil.js.map +1 -1
  137. package/package.json +6 -4
  138. package/src/interfaces/IArtist.ts +1 -1
  139. package/src/interfaces/IEvent.ts +2 -2
  140. package/src/interfaces/IOrder.ts +1 -1
  141. package/src/interfaces/IOrganization.ts +1 -1
  142. package/src/interfaces/IUserProfile.ts +2 -2
  143. package/src/interfaces/IVenue.ts +2 -2
  144. package/src/schemas/Event.ts +17 -15
  145. package/tsconfig.json +1 -0
  146. package/.dist/mongo/Address.js +0 -60
  147. package/.dist/mongo/Address.js.map +0 -1
  148. package/.dist/mongo/Metrics.d.ts +0 -131
  149. package/.dist/mongo/Metrics.js +0 -137
  150. package/.dist/mongo/Metrics.js.map +0 -1
@@ -0,0 +1,395 @@
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 shortid_1 = __importDefault(require("shortid"));
7
+ const IEvent_1 = require("../interfaces/IEvent");
8
+ const Address_1 = __importDefault(require("./Address"));
9
+ const Metrics_1 = __importDefault(require("./Metrics"));
10
+ const EventCustomFields = {
11
+ _id: {
12
+ type: String,
13
+ default: shortid_1.default.generate
14
+ },
15
+ label: {
16
+ type: String,
17
+ required: false
18
+ },
19
+ type: {
20
+ type: String,
21
+ required: true
22
+ },
23
+ minLength: {
24
+ type: Number,
25
+ required: true,
26
+ default: 0
27
+ },
28
+ maxLength: {
29
+ type: Number,
30
+ required: false,
31
+ default: null,
32
+ },
33
+ minValue: {
34
+ type: Number,
35
+ required: true,
36
+ default: 0
37
+ },
38
+ maxValue: {
39
+ type: Number,
40
+ required: false,
41
+ default: null
42
+ },
43
+ required: {
44
+ type: Boolean,
45
+ required: true,
46
+ default: false,
47
+ },
48
+ active: {
49
+ type: Boolean,
50
+ required: true,
51
+ default: true
52
+ }
53
+ };
54
+ const EventPromotion = {
55
+ _id: {
56
+ type: String,
57
+ default: shortid_1.default.generate,
58
+ },
59
+ code: {
60
+ type: String,
61
+ required: true,
62
+ },
63
+ type: {
64
+ type: String,
65
+ required: true
66
+ },
67
+ totalQty: {
68
+ type: Number,
69
+ required: true
70
+ },
71
+ remainingQty: {
72
+ type: Number,
73
+ required: true
74
+ },
75
+ ticketTypeIds: [
76
+ {
77
+ type: String,
78
+ required: true,
79
+ default: []
80
+ }
81
+ ],
82
+ upgradeIds: [
83
+ {
84
+ type: String,
85
+ required: true,
86
+ default: []
87
+ }
88
+ ],
89
+ active: {
90
+ type: Boolean,
91
+ required: true,
92
+ default: true,
93
+ }
94
+ };
95
+ // I'm not sure why this is here or if we need it
96
+ // but it's currently not used so I'm commenting it out
97
+ // const EventFee = {
98
+ // name: {
99
+ // type: String,
100
+ // required: true,
101
+ // },
102
+ // type: {
103
+ // type: String,
104
+ // required: true,
105
+ // },
106
+ // amount: {
107
+ // type: Number,
108
+ // required: true,
109
+ // },
110
+ // };
111
+ const EventSchedule = {
112
+ announceAt: {
113
+ type: Number,
114
+ required: false,
115
+ },
116
+ ticketsAt: {
117
+ type: Number,
118
+ required: false,
119
+ },
120
+ ticketsEndAt: {
121
+ type: Number,
122
+ required: false,
123
+ },
124
+ startsAt: {
125
+ type: Number,
126
+ required: false,
127
+ },
128
+ endsAt: {
129
+ type: Number,
130
+ required: false,
131
+ },
132
+ };
133
+ const EventUpgrade = {
134
+ name: {
135
+ type: String,
136
+ required: true,
137
+ },
138
+ price: {
139
+ type: Number,
140
+ required: true,
141
+ },
142
+ totalQty: {
143
+ type: Number,
144
+ required: true,
145
+ },
146
+ remainingQty: {
147
+ type: Number,
148
+ required: true,
149
+ },
150
+ purchaseLimit: {
151
+ type: Number,
152
+ required: true,
153
+ default: 8,
154
+ },
155
+ complimentary: {
156
+ type: Boolean,
157
+ required: true,
158
+ default: false,
159
+ },
160
+ ticketTypeIds: [
161
+ {
162
+ type: String,
163
+ required: true,
164
+ }
165
+ ],
166
+ imageUrl: {
167
+ type: String,
168
+ required: false,
169
+ },
170
+ description: {
171
+ type: String,
172
+ required: false,
173
+ },
174
+ visible: {
175
+ type: Boolean,
176
+ required: true,
177
+ default: true,
178
+ },
179
+ };
180
+ exports.PerformanceSchedule = {
181
+ doorsAt: {
182
+ type: Number,
183
+ required: false,
184
+ },
185
+ startsAt: {
186
+ type: Number,
187
+ required: false,
188
+ },
189
+ };
190
+ const Performance = {
191
+ name: {
192
+ type: String,
193
+ required: false,
194
+ },
195
+ headliningArtistIds: [
196
+ {
197
+ type: String,
198
+ required: false,
199
+ }
200
+ ],
201
+ openingArtistIds: [
202
+ {
203
+ type: String,
204
+ requird: false,
205
+ }
206
+ ],
207
+ venueId: {
208
+ type: String,
209
+ required: false,
210
+ },
211
+ venueStageId: {
212
+ type: String,
213
+ required: false,
214
+ },
215
+ price: {
216
+ type: Number,
217
+ required: false,
218
+ default: 0,
219
+ },
220
+ posterImageUrl: {
221
+ type: String,
222
+ required: false,
223
+ },
224
+ videoLink: {
225
+ type: String,
226
+ required: false,
227
+ },
228
+ songLink: {
229
+ type: String,
230
+ required: false,
231
+ },
232
+ schedule: exports.PerformanceSchedule,
233
+ };
234
+ const TicketExchange = {
235
+ allowed: {
236
+ type: String,
237
+ required: false,
238
+ },
239
+ percent: {
240
+ type: String,
241
+ required: false,
242
+ },
243
+ };
244
+ const TicketHold = {
245
+ name: {
246
+ type: String,
247
+ required: true,
248
+ },
249
+ qty: {
250
+ type: Number,
251
+ required: true,
252
+ },
253
+ ticketTypeId: {
254
+ type: String,
255
+ required: true,
256
+ },
257
+ };
258
+ const TicketTier = {
259
+ name: {
260
+ type: String,
261
+ required: true,
262
+ },
263
+ price: {
264
+ type: Number,
265
+ required: true,
266
+ },
267
+ startsAt: {
268
+ type: Number,
269
+ required: true,
270
+ },
271
+ endsAt: {
272
+ type: Number,
273
+ required: true,
274
+ },
275
+ totalQty: {
276
+ type: Number,
277
+ required: true,
278
+ },
279
+ remainingQty: {
280
+ type: Number,
281
+ required: true,
282
+ },
283
+ };
284
+ const TicketType = {
285
+ name: {
286
+ type: String,
287
+ required: true,
288
+ },
289
+ totalQty: {
290
+ type: Number,
291
+ required: true,
292
+ },
293
+ remainingQty: {
294
+ type: Number,
295
+ required: true,
296
+ },
297
+ purchaseLimit: {
298
+ type: Number,
299
+ required: true,
300
+ default: 8,
301
+ },
302
+ visible: {
303
+ type: Boolean,
304
+ required: true,
305
+ default: true,
306
+ },
307
+ performanceIds: [
308
+ {
309
+ type: String,
310
+ required: false,
311
+ default: [],
312
+ }
313
+ ],
314
+ tiers: [TicketTier]
315
+ };
316
+ exports.default = {
317
+ _id: {
318
+ type: String,
319
+ default: shortid_1.default.generate
320
+ },
321
+ orgId: {
322
+ type: String,
323
+ required: true
324
+ },
325
+ type: {
326
+ type: String,
327
+ required: false
328
+ },
329
+ name: {
330
+ type: String,
331
+ required: false
332
+ },
333
+ subtitle: {
334
+ type: String,
335
+ required: false
336
+ },
337
+ description: {
338
+ type: String,
339
+ required: false
340
+ },
341
+ posterImageUrl: {
342
+ type: String,
343
+ required: false
344
+ },
345
+ venueId: {
346
+ type: String,
347
+ required: false
348
+ },
349
+ createdAt: {
350
+ type: Number,
351
+ required: true
352
+ },
353
+ publishable: {
354
+ type: Boolean,
355
+ required: true,
356
+ default: false
357
+ },
358
+ seatingChartKey: {
359
+ type: String,
360
+ required: false,
361
+ },
362
+ age: {
363
+ type: String,
364
+ required: true,
365
+ default: IEvent_1.EventAgeEnum.AllAges
366
+ },
367
+ active: {
368
+ type: Boolean,
369
+ default: true
370
+ },
371
+ userAgreement: {
372
+ type: String,
373
+ required: false
374
+ },
375
+ processAs: {
376
+ type: String,
377
+ required: true,
378
+ default: IEvent_1.EventProcessAsEnum.Paid,
379
+ },
380
+ sendQRCode: {
381
+ type: String,
382
+ default: IEvent_1.SendQRCodeEnum.UponOrder,
383
+ },
384
+ location: Address_1.default,
385
+ schedule: EventSchedule,
386
+ performances: [Performance],
387
+ ticketTypes: [TicketType],
388
+ holds: [TicketHold],
389
+ upgrades: [EventUpgrade],
390
+ promotions: [EventPromotion],
391
+ customFields: [EventCustomFields],
392
+ exchange: TicketExchange,
393
+ metrics: Metrics_1.default
394
+ };
395
+ //# sourceMappingURL=Event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/schemas/Event.ts"],"names":[],"mappings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;KACf;IACD,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,GAAG,EAAE;QACH,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,qBAAY,CAAC,OAAO;KAC9B;IACD,MAAM,EAAE;QACN,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,2BAAkB,CAAC,IAAI;KACjC;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,uBAAc,CAAC,SAAS;KAClC;IACD,QAAQ,EAAE,iBAAO;IACjB,QAAQ,EAAE,aAAa;IACvB,YAAY,EAAE,CAAC,WAAW,CAAC;IAC3B,WAAW,EAAE,CAAC,UAAU,CAAC;IACzB,KAAK,EAAE,CAAC,UAAU,CAAC;IACnB,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,UAAU,EAAE,CAAC,cAAc,CAAC;IAC5B,YAAY,EAAE,CAAC,iBAAiB,CAAC;IACjC,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,iBAAO;CACjB,CAAC"}
@@ -1,58 +1,73 @@
1
1
  declare const _default: {
2
- address1: {
2
+ _id: {
3
3
  type: StringConstructor;
4
- required: boolean;
5
- default: null;
4
+ default: () => string;
6
5
  };
7
- address2: {
6
+ name: {
8
7
  type: StringConstructor;
9
8
  required: boolean;
10
- default: null;
11
9
  };
12
- city: {
10
+ orgId: {
13
11
  type: StringConstructor;
14
12
  required: boolean;
15
13
  default: null;
16
14
  };
17
- state: {
15
+ eventId: {
18
16
  type: StringConstructor;
19
17
  required: boolean;
20
18
  default: null;
21
19
  };
22
- zip: {
20
+ type: {
23
21
  type: StringConstructor;
24
22
  required: boolean;
25
- default: null;
26
23
  };
27
- country: {
24
+ value: {
25
+ type: NumberConstructor;
26
+ required: boolean;
27
+ };
28
+ appliedTo: {
28
29
  type: StringConstructor;
29
30
  required: boolean;
30
- default: null;
31
31
  };
32
- phone: {
32
+ appliedBy: {
33
33
  type: StringConstructor;
34
34
  required: boolean;
35
- default: null;
36
35
  };
37
- lat: {
36
+ minAppliedToPrice: {
38
37
  type: NumberConstructor;
39
38
  required: boolean;
40
39
  default: null;
41
40
  };
42
- lng: {
41
+ maxAppliedToPrice: {
43
42
  type: NumberConstructor;
44
43
  required: boolean;
45
44
  default: null;
46
45
  };
47
- placeId: {
46
+ filters: {
47
+ type: StringConstructor;
48
+ required: boolean;
49
+ default: never[];
50
+ }[];
51
+ createdBy: {
48
52
  type: StringConstructor;
49
53
  required: boolean;
50
- default: null;
51
54
  };
52
- timezone: {
55
+ createdAt: {
56
+ type: NumberConstructor;
57
+ required: boolean;
58
+ };
59
+ updatedBy: {
53
60
  type: StringConstructor;
54
61
  required: boolean;
55
- default: null;
62
+ };
63
+ updatedAt: {
64
+ type: NumberConstructor;
65
+ required: boolean;
66
+ };
67
+ disabled: {
68
+ type: BooleanConstructor;
69
+ required: boolean;
70
+ default: boolean;
56
71
  };
57
72
  };
58
73
  export default _default;
@@ -0,0 +1,79 @@
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 shortid_1 = __importDefault(require("shortid"));
7
+ exports.default = {
8
+ _id: {
9
+ type: String,
10
+ default: shortid_1.default.generate,
11
+ },
12
+ name: {
13
+ type: String,
14
+ required: true,
15
+ },
16
+ orgId: {
17
+ type: String,
18
+ required: false,
19
+ default: null,
20
+ },
21
+ eventId: {
22
+ type: String,
23
+ required: false,
24
+ default: null,
25
+ },
26
+ type: {
27
+ type: String,
28
+ required: true,
29
+ },
30
+ value: {
31
+ type: Number,
32
+ required: true,
33
+ },
34
+ appliedTo: {
35
+ type: String,
36
+ required: true,
37
+ },
38
+ appliedBy: {
39
+ type: String,
40
+ required: true,
41
+ },
42
+ minAppliedToPrice: {
43
+ type: Number,
44
+ required: false,
45
+ default: null,
46
+ },
47
+ maxAppliedToPrice: {
48
+ type: Number,
49
+ required: false,
50
+ default: null,
51
+ },
52
+ filters: [{
53
+ type: String,
54
+ required: false,
55
+ default: [],
56
+ }],
57
+ createdBy: {
58
+ type: String,
59
+ required: true,
60
+ },
61
+ createdAt: {
62
+ type: Number,
63
+ required: true,
64
+ },
65
+ updatedBy: {
66
+ type: String,
67
+ required: true,
68
+ },
69
+ updatedAt: {
70
+ type: Number,
71
+ required: true,
72
+ },
73
+ disabled: {
74
+ type: Boolean,
75
+ required: true,
76
+ default: false,
77
+ },
78
+ };
79
+ //# sourceMappingURL=Fee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Fee.js","sourceRoot":"","sources":["../../src/schemas/Fee.ts"],"names":[],"mappings":";;;;;AAAA,sDAA8B;AAE9B,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,IAAI;KACf;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EA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