@codecks/fetch 0.1.1 → 0.1.3

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.
@@ -0,0 +1,2569 @@
1
+ import { ModelDesc, ModelQuery, RelationEntry, TypedField } from "./query-type-Dx5ZCv5N.js";
2
+ import { AccountId, AccountOnboardingStepId, ActiveTimeTrackerId, ActivityId, AffiliateCodeId, AppId, AppInstallationId, AttachmentId, CardId, CardPresetId, CardSubscriptionId, CardUpvoteId, DeckId, DeckSubscriptionId, DiscordGuildId, DiscordMemberId, DiscordProjectNotificationId, DiscordSlashCommandId, FileId, IntegrationId, InvoiceId, MilestoneId, PinnedMilestoneId, ProjectId, ProjectSelectionId, ProjectTagId, QueueEntryId, QueueSelectionId, ReleaseId, ResolvableEntryId, ResolvableEntryReactionId, ResolvableId, SavedSearchId, SprintConfigId, SprintId, TimeTrackingSegmentId, UserEmailId, UserId, UserInvitationId, UserInviteCodeId, UserReportEmailId, UserReportSettingId, UserReportTokenId, UserTagId, VisionBoardId, VisionBoardQueryId, WizardId, WorkflowItemId, modelMap$1 as modelMap } from "./index-DUBsesYl.js";
3
+ import { BaseLoader, LoaderResult } from "./loader-types-CMF96Ae1.js";
4
+
5
+ //#region src/_exploration/immediate-cache.d.ts
6
+ type FieldMeta = {
7
+ state: "fresh";
8
+ } | {
9
+ state: "dirty";
10
+ };
11
+ interface FieldCache<T = any> {
12
+ value: T;
13
+ partKeys: string[];
14
+ meta: FieldMeta;
15
+ }
16
+ type ModelInstance = Map<string, FieldCache>;
17
+ type ModelCache = Map<string, ModelInstance>;
18
+ declare class ImmediateCache {
19
+ cache: ModelCache;
20
+ partKeyToFields: Map<string, FieldCache<any>[]>;
21
+ private getInstanceKey;
22
+ get(model: string, key: string, field: string): FieldCache | undefined;
23
+ set(model: string, key: string, partialInstance: Record<string, {
24
+ value: unknown;
25
+ partKeys: string[];
26
+ }>, meta: FieldMeta): void;
27
+ setMetaByPartKeys(partKeys: string[], meta: FieldMeta): void;
28
+ }
29
+ //#endregion
30
+ //#region src/_exploration/store.d.ts
31
+ type ModelMap = typeof modelMap;
32
+ declare class Store {
33
+ private loader;
34
+ cache: ImmediateCache;
35
+ modelMap: {
36
+ _root: ModelDesc<"_root", {}, {
37
+ releases: RelationEntry<"release", {
38
+ readonly type: "hasMany";
39
+ }>;
40
+ accountOnboardingSteps: RelationEntry<"accountOnboardingStep", {
41
+ readonly type: "hasMany";
42
+ }>;
43
+ apps: RelationEntry<"app", {
44
+ readonly type: "hasMany";
45
+ }>;
46
+ account: RelationEntry<"account", {
47
+ readonly type: "hasOne";
48
+ }>;
49
+ loggedInUser: RelationEntry<"user", {
50
+ readonly type: "hasOne";
51
+ }>;
52
+ cardsStatusHistory: RelationEntry<"cardsStatusHistory", {
53
+ readonly type: "hasMany";
54
+ }>;
55
+ cardsEffortHistory: RelationEntry<"cardsEffortHistory", {
56
+ readonly type: "hasMany";
57
+ }>;
58
+ cardsFinishedHistory: RelationEntry<"cardsFinishedHistory", {
59
+ readonly type: "hasMany";
60
+ }>;
61
+ cardsTimeToFinished: RelationEntry<"cardsTimeToFinished", {
62
+ readonly type: "hasMany";
63
+ }>;
64
+ }, []>;
65
+ accountOnboardingStep: ModelDesc<"accountOnboardingStep", {
66
+ key: TypedField<"id", AccountOnboardingStepId, {}>;
67
+ title: TypedField<"string", string, {}>;
68
+ description: TypedField<"string", string, {}>;
69
+ chapter: TypedField<"string", string, {}>;
70
+ sortValue: TypedField<"string", string, {}>;
71
+ variants: TypedField<"array", any[], {}>;
72
+ xp: TypedField<"int", number, {}>;
73
+ milestone: TypedField<"string", string, {}>;
74
+ }, {}, ["key"]>;
75
+ accountOnboarding: ModelDesc<"accountOnboarding", {
76
+ variants: TypedField<"array", any[], {}>;
77
+ steps: TypedField<"obj", any, {}>;
78
+ accountId: TypedField<"belongsTo", AccountId, {}>;
79
+ }, {
80
+ account: RelationEntry<"account", {
81
+ readonly type: "belongsTo";
82
+ readonly fk: "accountId";
83
+ }>;
84
+ }, ["accountId"]>;
85
+ accountRole: ModelDesc<"accountRole", {
86
+ role: TypedField<"string", string, {}>;
87
+ createdAt: TypedField<"date", Date, {}>;
88
+ lastChangedAt: TypedField<"date", Date, {}>;
89
+ roleAsPrio: TypedField<"int", number, {}>;
90
+ userId: TypedField<"belongsTo", UserId, {}>;
91
+ accountId: TypedField<"belongsTo", AccountId, {}>;
92
+ }, {
93
+ user: RelationEntry<"user", {
94
+ readonly type: "belongsTo";
95
+ readonly fk: "userId";
96
+ }>;
97
+ account: RelationEntry<"account", {
98
+ readonly type: "belongsTo";
99
+ readonly fk: "accountId";
100
+ }>;
101
+ }, ["accountId", "userId"]>;
102
+ accountUserAchievement: ModelDesc<"accountUserAchievement", {
103
+ value: TypedField<"obj", any, {}>;
104
+ context: TypedField<"obj", any, {}>;
105
+ accountId: TypedField<"belongsTo", AccountId, {}>;
106
+ userId: TypedField<"belongsTo", UserId, {}>;
107
+ }, {
108
+ account: RelationEntry<"account", {
109
+ readonly type: "belongsTo";
110
+ readonly fk: "accountId";
111
+ }>;
112
+ user: RelationEntry<"user", {
113
+ readonly type: "belongsTo";
114
+ readonly fk: "userId";
115
+ }>;
116
+ }, ["accountId", "userId", "key"]>;
117
+ accountUserSetting: ModelDesc<"accountUserSetting", {
118
+ wantsWeeklyDigestMail: TypedField<"bool", boolean, {}>;
119
+ timelineScaleTypeOverwrite: TypedField<"string", string, {}>;
120
+ startWeekdayOverwrite: TypedField<"string", string, {}>;
121
+ accountId: TypedField<"belongsTo", AccountId, {}>;
122
+ userId: TypedField<"belongsTo", UserId, {}>;
123
+ inboxDeckId: TypedField<"belongsTo", DeckId, {}>;
124
+ }, {
125
+ account: RelationEntry<"account", {
126
+ readonly type: "belongsTo";
127
+ readonly fk: "accountId";
128
+ }>;
129
+ user: RelationEntry<"user", {
130
+ readonly type: "belongsTo";
131
+ readonly fk: "userId";
132
+ }>;
133
+ inboxDeck: RelationEntry<"deck", {
134
+ readonly type: "belongsTo";
135
+ readonly fk: "inboxDeckId";
136
+ }>;
137
+ }, ["accountId", "userId"]>;
138
+ account: ModelDesc<"account", {
139
+ id: TypedField<"id", AccountId, {}>;
140
+ subdomain: TypedField<"string", string, {}>;
141
+ name: TypedField<"string", string, {}>;
142
+ billingName: TypedField<"string", string, {
143
+ readonly optional: true;
144
+ }>;
145
+ billingLine1: TypedField<"string", string, {
146
+ readonly optional: true;
147
+ }>;
148
+ billingLine2: TypedField<"string", string, {
149
+ readonly optional: true;
150
+ }>;
151
+ billingZip: TypedField<"string", string, {
152
+ readonly optional: true;
153
+ }>;
154
+ billingCity: TypedField<"string", string, {
155
+ readonly optional: true;
156
+ }>;
157
+ billingCountryCode: TypedField<"string", string, {
158
+ readonly optional: true;
159
+ }>;
160
+ billingEmail: TypedField<"string", string, {
161
+ readonly optional: true;
162
+ }>;
163
+ netGiftAmount: TypedField<"int", number, {}>;
164
+ persona: TypedField<"string", string, {
165
+ readonly optional: true;
166
+ }>;
167
+ createdAt: TypedField<"date", Date, {}>;
168
+ disabledAt: TypedField<"date", Date, {
169
+ readonly optional: true;
170
+ }>;
171
+ totalMediaByteUsage: TypedField<"bigint", bigint, {}>;
172
+ isDisabled: TypedField<"string", string, {}>;
173
+ milestonesEnabled: TypedField<"string", string, {}>;
174
+ sprintsEnabled: TypedField<"string", string, {}>;
175
+ priorityLabels: TypedField<"obj", any, {}>;
176
+ effortScale: TypedField<"obj", any, {}>;
177
+ statusChangeDurations: TypedField<"obj", any, {}>;
178
+ activeFeatureFlags: TypedField<"obj", any, {}>;
179
+ timeTrackingMode: TypedField<"string", string, {}>;
180
+ maxTimeTrackingSegmentMsDuration: TypedField<"int", number, {}>;
181
+ timeTrackingSwimLaneInfo: TypedField<"bool", boolean, {}>;
182
+ workdays: TypedField<"string", string, {}>;
183
+ workflowMode: TypedField<"string", string, {}>;
184
+ isLearning: TypedField<"bool", boolean, {}>;
185
+ isNonProfit: TypedField<"bool", boolean, {}>;
186
+ dependenciesEnabled: TypedField<"bool", boolean, {}>;
187
+ maxHandSlotCount: TypedField<"int", number, {}>;
188
+ seats: TypedField<"int", number, {}>;
189
+ activeProjectCount: TypedField<"int", number, {}>;
190
+ billingType: TypedField<"string", string, {}>;
191
+ allowInheritHeroCover: TypedField<"bool", boolean, {}>;
192
+ attachmentCoverMode: TypedField<"string", string, {}>;
193
+ staffPermission: TypedField<"string", string, {}>;
194
+ offeringTrial: TypedField<"bool", boolean, {}>;
195
+ coupon: TypedField<"obj", any, {
196
+ readonly optional: true;
197
+ }>;
198
+ hideCompletedCardCountForDecks: TypedField<"bool", boolean, {}>;
199
+ visionBoardEnabled: TypedField<"bool", boolean, {}>;
200
+ fallbackEffort: TypedField<"int", number, {}>;
201
+ timelineScaleType: TypedField<"string", string, {}>;
202
+ startWeekday: TypedField<"string", string, {}>;
203
+ disabledById: TypedField<"belongsTo", UserId, {
204
+ readonly optional: true;
205
+ }>;
206
+ }, {
207
+ disabledBy: RelationEntry<"user", {
208
+ readonly type: "belongsTo";
209
+ readonly fk: "disabledById";
210
+ }>;
211
+ cards: RelationEntry<"card", {
212
+ readonly type: "hasMany";
213
+ }>;
214
+ invoices: RelationEntry<"invoice", {
215
+ readonly type: "hasMany";
216
+ }>;
217
+ cardPresets: RelationEntry<"cardPreset", {
218
+ readonly type: "hasMany";
219
+ }>;
220
+ attachments: RelationEntry<"attachment", {
221
+ readonly type: "hasMany";
222
+ }>;
223
+ discordGuilds: RelationEntry<"discordGuild", {
224
+ readonly type: "hasMany";
225
+ }>;
226
+ timeTrackingSegments: RelationEntry<"timeTrackingSegment", {
227
+ readonly type: "hasMany";
228
+ }>;
229
+ workflowItems: RelationEntry<"workflowItem", {
230
+ readonly type: "hasMany";
231
+ }>;
232
+ deckAssignments: RelationEntry<"deckAssignment", {
233
+ readonly type: "hasMany";
234
+ }>;
235
+ assigneeAssignments: RelationEntry<"assigneeAssignment", {
236
+ readonly type: "hasMany";
237
+ }>;
238
+ assigneeDeckAssignments: RelationEntry<"assigneeDeckAssignment", {
239
+ readonly type: "hasMany";
240
+ }>;
241
+ wizards: RelationEntry<"wizard", {
242
+ readonly type: "hasMany";
243
+ }>;
244
+ milestones: RelationEntry<"milestone", {
245
+ readonly type: "hasMany";
246
+ }>;
247
+ sprints: RelationEntry<"sprint", {
248
+ readonly type: "hasMany";
249
+ }>;
250
+ sprintConfigs: RelationEntry<"sprintConfig", {
251
+ readonly type: "hasMany";
252
+ }>;
253
+ handCards: RelationEntry<"handCard", {
254
+ readonly type: "hasMany";
255
+ }>;
256
+ resolvables: RelationEntry<"resolvable", {
257
+ readonly type: "hasMany";
258
+ }>;
259
+ cardUpvotes: RelationEntry<"cardUpvote", {
260
+ readonly type: "hasMany";
261
+ }>;
262
+ resolvableParticipants: RelationEntry<"resolvableParticipant", {
263
+ readonly type: "hasMany";
264
+ }>;
265
+ userReportSettings: RelationEntry<"userReportSetting", {
266
+ readonly type: "hasMany";
267
+ }>;
268
+ cardOrders: RelationEntry<"cardOrder", {
269
+ readonly type: "hasMany";
270
+ }>;
271
+ accountUserAchievements: RelationEntry<"accountUserAchievement", {
272
+ readonly type: "hasMany";
273
+ }>;
274
+ userInviteCodes: RelationEntry<"userInviteCode", {
275
+ readonly type: "hasMany";
276
+ }>;
277
+ visionBoards: RelationEntry<"visionBoard", {
278
+ readonly type: "hasMany";
279
+ }>;
280
+ deckSubscriptions: RelationEntry<"deckSubscription", {
281
+ readonly type: "hasMany";
282
+ }>;
283
+ appInstallations: RelationEntry<"appInstallation", {
284
+ readonly type: "hasMany";
285
+ }>;
286
+ files: RelationEntry<"file", {
287
+ readonly type: "hasMany";
288
+ }>;
289
+ decks: RelationEntry<"deck", {
290
+ readonly type: "hasMany";
291
+ }>;
292
+ queueEntries: RelationEntry<"queueEntry", {
293
+ readonly type: "hasMany";
294
+ }>;
295
+ visionBoardQueries: RelationEntry<"visionBoardQuery", {
296
+ readonly type: "hasMany";
297
+ }>;
298
+ anyDecks: RelationEntry<"deck", {
299
+ readonly type: "hasMany";
300
+ }>;
301
+ projects: RelationEntry<"project", {
302
+ readonly type: "hasMany";
303
+ }>;
304
+ archivedProjects: RelationEntry<"project", {
305
+ readonly type: "hasMany";
306
+ }>;
307
+ anyProjects: RelationEntry<"project", {
308
+ readonly type: "hasMany";
309
+ }>;
310
+ roles: RelationEntry<"accountRole", {
311
+ readonly type: "hasMany";
312
+ }>;
313
+ invitations: RelationEntry<"userInvitation", {
314
+ readonly type: "hasMany";
315
+ }>;
316
+ githubIntegration: RelationEntry<"integration", {
317
+ readonly type: "hasOne";
318
+ }>;
319
+ slackIntegration: RelationEntry<"integration", {
320
+ readonly type: "hasOne";
321
+ }>;
322
+ affiliateCodes: RelationEntry<"affiliateCode", {
323
+ readonly type: "hasMany";
324
+ }>;
325
+ activities: RelationEntry<"activity", {
326
+ readonly type: "hasMany";
327
+ }>;
328
+ stripeAccountSync: RelationEntry<"stripeAccountSync", {
329
+ readonly type: "hasOne";
330
+ }>;
331
+ accountOnboarding: RelationEntry<"accountOnboarding", {
332
+ readonly type: "hasOne";
333
+ }>;
334
+ }, ["id"]>;
335
+ activeTimeTracker: ModelDesc<"activeTimeTracker", {
336
+ id: TypedField<"id", ActiveTimeTrackerId, {}>;
337
+ createdAt: TypedField<"date", Date, {}>;
338
+ cardId: TypedField<"belongsTo", CardId, {}>;
339
+ userId: TypedField<"belongsTo", UserId, {}>;
340
+ accountId: TypedField<"belongsTo", AccountId, {}>;
341
+ }, {
342
+ card: RelationEntry<"card", {
343
+ readonly type: "belongsTo";
344
+ readonly fk: "cardId";
345
+ }>;
346
+ user: RelationEntry<"user", {
347
+ readonly type: "belongsTo";
348
+ readonly fk: "userId";
349
+ }>;
350
+ account: RelationEntry<"account", {
351
+ readonly type: "belongsTo";
352
+ readonly fk: "accountId";
353
+ }>;
354
+ }, ["id"]>;
355
+ activity: ModelDesc<"activity", {
356
+ id: TypedField<"id", ActivityId, {}>;
357
+ type: TypedField<"string", string, {}>;
358
+ data: TypedField<"obj", any, {}>;
359
+ isRemovedFromDeckEntry: TypedField<"bool", boolean, {}>;
360
+ isRemovedFromMilestoneEntry: TypedField<"bool", boolean, {}>;
361
+ isRemovedFromSprintEntry: TypedField<"bool", boolean, {}>;
362
+ createdAt: TypedField<"date", Date, {}>;
363
+ cardId: TypedField<"belongsTo", CardId, {}>;
364
+ deckId: TypedField<"belongsTo", DeckId, {}>;
365
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
366
+ milestoneId: TypedField<"belongsTo", MilestoneId, {}>;
367
+ sprintId: TypedField<"belongsTo", SprintId, {}>;
368
+ changerId: TypedField<"belongsTo", UserId, {}>;
369
+ }, {
370
+ card: RelationEntry<"card", {
371
+ readonly type: "belongsTo";
372
+ readonly fk: "cardId";
373
+ }>;
374
+ deck: RelationEntry<"deck", {
375
+ readonly type: "belongsTo";
376
+ readonly fk: "deckId";
377
+ }>;
378
+ project: RelationEntry<"project", {
379
+ readonly type: "belongsTo";
380
+ readonly fk: "projectId";
381
+ }>;
382
+ milestone: RelationEntry<"milestone", {
383
+ readonly type: "belongsTo";
384
+ readonly fk: "milestoneId";
385
+ }>;
386
+ sprint: RelationEntry<"sprint", {
387
+ readonly type: "belongsTo";
388
+ readonly fk: "sprintId";
389
+ }>;
390
+ changer: RelationEntry<"user", {
391
+ readonly type: "belongsTo";
392
+ readonly fk: "changerId";
393
+ }>;
394
+ }, ["id"]>;
395
+ affiliateCodeStat: ModelDesc<"affiliateCodeStat", {
396
+ month: TypedField<"int", number, {}>;
397
+ year: TypedField<"int", number, {}>;
398
+ visits: TypedField<"int", number, {}>;
399
+ newVisitors: TypedField<"int", number, {}>;
400
+ signups: TypedField<"int", number, {}>;
401
+ revenue: TypedField<"int", number, {}>;
402
+ affiliateCodeId: TypedField<"belongsTo", AffiliateCodeId, {}>;
403
+ }, {
404
+ affiliateCode: RelationEntry<"affiliateCode", {
405
+ readonly type: "belongsTo";
406
+ readonly fk: "affiliateCodeId";
407
+ }>;
408
+ }, ["affiliateCodeId", "month"]>;
409
+ affiliateCode: ModelDesc<"affiliateCode", {
410
+ id: TypedField<"id", AffiliateCodeId, {}>;
411
+ code: TypedField<"string", string, {}>;
412
+ vanityUrl: TypedField<"string", string, {}>;
413
+ message: TypedField<"string", string, {}>;
414
+ label: TypedField<"string", string, {}>;
415
+ isDisabled: TypedField<"string", string, {}>;
416
+ isDeleted: TypedField<"string", string, {}>;
417
+ validUntil: TypedField<"string", string, {}>;
418
+ remainingRedemptions: TypedField<"string", string, {}>;
419
+ reward: TypedField<"obj", any, {}>;
420
+ createdAt: TypedField<"date", Date, {}>;
421
+ accountId: TypedField<"belongsTo", AccountId, {}>;
422
+ creatorId: TypedField<"belongsTo", UserId, {}>;
423
+ }, {
424
+ account: RelationEntry<"account", {
425
+ readonly type: "belongsTo";
426
+ readonly fk: "accountId";
427
+ }>;
428
+ creator: RelationEntry<"user", {
429
+ readonly type: "belongsTo";
430
+ readonly fk: "creatorId";
431
+ }>;
432
+ stats: RelationEntry<"affiliateCodeStat", {
433
+ readonly type: "hasMany";
434
+ }>;
435
+ }, ["id"]>;
436
+ appInstallation: ModelDesc<"appInstallation", {
437
+ id: TypedField<"id", AppInstallationId, {}>;
438
+ createdAt: TypedField<"date", Date, {}>;
439
+ accountId: TypedField<"belongsTo", AccountId, {}>;
440
+ appId: TypedField<"belongsTo", AppId, {}>;
441
+ installerId: TypedField<"belongsTo", UserId, {}>;
442
+ }, {
443
+ account: RelationEntry<"account", {
444
+ readonly type: "belongsTo";
445
+ readonly fk: "accountId";
446
+ }>;
447
+ app: RelationEntry<"app", {
448
+ readonly type: "belongsTo";
449
+ readonly fk: "appId";
450
+ }>;
451
+ installer: RelationEntry<"user", {
452
+ readonly type: "belongsTo";
453
+ readonly fk: "installerId";
454
+ }>;
455
+ }, ["id"]>;
456
+ app: ModelDesc<"app", {
457
+ id: TypedField<"id", AppId, {}>;
458
+ name: TypedField<"string", string, {}>;
459
+ createdAt: TypedField<"date", Date, {}>;
460
+ payload: TypedField<"obj", any, {}>;
461
+ }, {}, ["id"]>;
462
+ assigneeAssignment: ModelDesc<"assigneeAssignment", {
463
+ lastAssignedAt: TypedField<"date", Date, {}>;
464
+ accountId: TypedField<"belongsTo", AccountId, {}>;
465
+ assigneeId: TypedField<"belongsTo", UserId, {}>;
466
+ assignedById: TypedField<"belongsTo", UserId, {}>;
467
+ }, {
468
+ account: RelationEntry<"account", {
469
+ readonly type: "belongsTo";
470
+ readonly fk: "accountId";
471
+ }>;
472
+ assignee: RelationEntry<"user", {
473
+ readonly type: "belongsTo";
474
+ readonly fk: "assigneeId";
475
+ }>;
476
+ assignedBy: RelationEntry<"user", {
477
+ readonly type: "belongsTo";
478
+ readonly fk: "assignedById";
479
+ }>;
480
+ }, ["assigneeId", "assignedById"]>;
481
+ assigneeDeckAssignment: ModelDesc<"assigneeDeckAssignment", {
482
+ lastAssignedAt: TypedField<"date", Date, {}>;
483
+ accountId: TypedField<"belongsTo", AccountId, {}>;
484
+ deckId: TypedField<"belongsTo", DeckId, {}>;
485
+ assigneeId: TypedField<"belongsTo", UserId, {}>;
486
+ assignedById: TypedField<"belongsTo", UserId, {}>;
487
+ }, {
488
+ account: RelationEntry<"account", {
489
+ readonly type: "belongsTo";
490
+ readonly fk: "accountId";
491
+ }>;
492
+ deck: RelationEntry<"deck", {
493
+ readonly type: "belongsTo";
494
+ readonly fk: "deckId";
495
+ }>;
496
+ assignee: RelationEntry<"user", {
497
+ readonly type: "belongsTo";
498
+ readonly fk: "assigneeId";
499
+ }>;
500
+ assignedBy: RelationEntry<"user", {
501
+ readonly type: "belongsTo";
502
+ readonly fk: "assignedById";
503
+ }>;
504
+ }, ["assigneeId", "assignedById", "deckId"]>;
505
+ attachment: ModelDesc<"attachment", {
506
+ id: TypedField<"id", AttachmentId, {}>;
507
+ content: TypedField<"string", string, {}>;
508
+ title: TypedField<"string", string, {}>;
509
+ createdAt: TypedField<"date", Date, {}>;
510
+ fileId: TypedField<"belongsTo", FileId, {}>;
511
+ cardId: TypedField<"belongsTo", CardId, {}>;
512
+ accountId: TypedField<"belongsTo", AccountId, {}>;
513
+ creatorId: TypedField<"belongsTo", UserId, {}>;
514
+ }, {
515
+ file: RelationEntry<"file", {
516
+ readonly type: "belongsTo";
517
+ readonly fk: "fileId";
518
+ }>;
519
+ card: RelationEntry<"card", {
520
+ readonly type: "belongsTo";
521
+ readonly fk: "cardId";
522
+ }>;
523
+ account: RelationEntry<"account", {
524
+ readonly type: "belongsTo";
525
+ readonly fk: "accountId";
526
+ }>;
527
+ creator: RelationEntry<"user", {
528
+ readonly type: "belongsTo";
529
+ readonly fk: "creatorId";
530
+ }>;
531
+ }, ["id"]>;
532
+ autoFinishedTimeTrackingSegment: ModelDesc<"autoFinishedTimeTrackingSegment", {
533
+ createdAt: TypedField<"date", Date, {}>;
534
+ userId: TypedField<"belongsTo", UserId, {}>;
535
+ accountId: TypedField<"belongsTo", AccountId, {}>;
536
+ cardId: TypedField<"belongsTo", CardId, {}>;
537
+ timeTrackingSegmentId: TypedField<"belongsTo", TimeTrackingSegmentId, {}>;
538
+ }, {
539
+ user: RelationEntry<"user", {
540
+ readonly type: "belongsTo";
541
+ readonly fk: "userId";
542
+ }>;
543
+ account: RelationEntry<"account", {
544
+ readonly type: "belongsTo";
545
+ readonly fk: "accountId";
546
+ }>;
547
+ card: RelationEntry<"card", {
548
+ readonly type: "belongsTo";
549
+ readonly fk: "cardId";
550
+ }>;
551
+ timeTrackingSegment: RelationEntry<"timeTrackingSegment", {
552
+ readonly type: "belongsTo";
553
+ readonly fk: "timeTrackingSegmentId";
554
+ }>;
555
+ }, ["userId", "accountId"]>;
556
+ cardDiffNotification: ModelDesc<"cardDiffNotification", {
557
+ changes: TypedField<"obj", any, {}>;
558
+ asOwner: TypedField<"bool", boolean, {}>;
559
+ changers: TypedField<"array", any[], {}>;
560
+ lastUpdatedAt: TypedField<"date", Date, {}>;
561
+ createdAt: TypedField<"date", Date, {}>;
562
+ userId: TypedField<"belongsTo", UserId, {}>;
563
+ cardId: TypedField<"belongsTo", CardId, {}>;
564
+ accountId: TypedField<"belongsTo", AccountId, {}>;
565
+ }, {
566
+ user: RelationEntry<"user", {
567
+ readonly type: "belongsTo";
568
+ readonly fk: "userId";
569
+ }>;
570
+ card: RelationEntry<"card", {
571
+ readonly type: "belongsTo";
572
+ readonly fk: "cardId";
573
+ }>;
574
+ account: RelationEntry<"account", {
575
+ readonly type: "belongsTo";
576
+ readonly fk: "accountId";
577
+ }>;
578
+ }, ["userId", "cardId"]>;
579
+ cardHistory: ModelDesc<"cardHistory", {
580
+ diff: TypedField<"obj", any, {}>;
581
+ versionCreatedAt: TypedField<"date", Date, {}>;
582
+ version: TypedField<"int", number, {}>;
583
+ accountId: TypedField<"belongsTo", AccountId, {}>;
584
+ cardId: TypedField<"belongsTo", CardId, {}>;
585
+ changerId: TypedField<"belongsTo", UserId, {}>;
586
+ }, {
587
+ account: RelationEntry<"account", {
588
+ readonly type: "belongsTo";
589
+ readonly fk: "accountId";
590
+ }>;
591
+ card: RelationEntry<"card", {
592
+ readonly type: "belongsTo";
593
+ readonly fk: "cardId";
594
+ }>;
595
+ changer: RelationEntry<"user", {
596
+ readonly type: "belongsTo";
597
+ readonly fk: "changerId";
598
+ }>;
599
+ }, ["cardId", "version"]>;
600
+ cardOrderInDeck: ModelDesc<"cardOrderInDeck", {
601
+ sortIndex: TypedField<"string", string, {}>;
602
+ cardId: TypedField<"belongsTo", CardId, {}>;
603
+ deckId: TypedField<"belongsTo", DeckId, {}>;
604
+ changerId: TypedField<"belongsTo", UserId, {}>;
605
+ }, {
606
+ card: RelationEntry<"card", {
607
+ readonly type: "belongsTo";
608
+ readonly fk: "cardId";
609
+ }>;
610
+ deck: RelationEntry<"deck", {
611
+ readonly type: "belongsTo";
612
+ readonly fk: "deckId";
613
+ }>;
614
+ changer: RelationEntry<"user", {
615
+ readonly type: "belongsTo";
616
+ readonly fk: "changerId";
617
+ }>;
618
+ }, ["cardId", "deckId"]>;
619
+ cardOrder: ModelDesc<"cardOrder", {
620
+ sortValue: TypedField<"string", string, {}>;
621
+ label: TypedField<"string", string, {}>;
622
+ cardId: TypedField<"belongsTo", CardId, {}>;
623
+ accountId: TypedField<"belongsTo", AccountId, {}>;
624
+ }, {
625
+ card: RelationEntry<"card", {
626
+ readonly type: "belongsTo";
627
+ readonly fk: "cardId";
628
+ }>;
629
+ account: RelationEntry<"account", {
630
+ readonly type: "belongsTo";
631
+ readonly fk: "accountId";
632
+ }>;
633
+ }, ["context", "cardId"]>;
634
+ cardPreset: ModelDesc<"cardPreset", {
635
+ id: TypedField<"id", CardPresetId, {}>;
636
+ name: TypedField<"string", string, {}>;
637
+ data: TypedField<"obj", any, {}>;
638
+ createdAt: TypedField<"date", Date, {}>;
639
+ accountId: TypedField<"belongsTo", AccountId, {}>;
640
+ creatorId: TypedField<"belongsTo", UserId, {}>;
641
+ }, {
642
+ account: RelationEntry<"account", {
643
+ readonly type: "belongsTo";
644
+ readonly fk: "accountId";
645
+ }>;
646
+ creator: RelationEntry<"user", {
647
+ readonly type: "belongsTo";
648
+ readonly fk: "creatorId";
649
+ }>;
650
+ }, ["id"]>;
651
+ cardSubscription: ModelDesc<"cardSubscription", {
652
+ id: TypedField<"id", CardSubscriptionId, {}>;
653
+ createdAt: TypedField<"date", Date, {}>;
654
+ userId: TypedField<"belongsTo", UserId, {}>;
655
+ cardId: TypedField<"belongsTo", CardId, {}>;
656
+ accountId: TypedField<"belongsTo", AccountId, {}>;
657
+ }, {
658
+ user: RelationEntry<"user", {
659
+ readonly type: "belongsTo";
660
+ readonly fk: "userId";
661
+ }>;
662
+ card: RelationEntry<"card", {
663
+ readonly type: "belongsTo";
664
+ readonly fk: "cardId";
665
+ }>;
666
+ account: RelationEntry<"account", {
667
+ readonly type: "belongsTo";
668
+ readonly fk: "accountId";
669
+ }>;
670
+ }, ["id"]>;
671
+ cardUpvote: ModelDesc<"cardUpvote", {
672
+ id: TypedField<"id", CardUpvoteId, {}>;
673
+ type: TypedField<"string", string, {}>;
674
+ createdAt: TypedField<"date", Date, {}>;
675
+ discordUserInfo: TypedField<"obj", any, {}>;
676
+ userId: TypedField<"belongsTo", UserId, {}>;
677
+ accountId: TypedField<"belongsTo", AccountId, {}>;
678
+ cardId: TypedField<"belongsTo", CardId, {}>;
679
+ }, {
680
+ user: RelationEntry<"user", {
681
+ readonly type: "belongsTo";
682
+ readonly fk: "userId";
683
+ }>;
684
+ account: RelationEntry<"account", {
685
+ readonly type: "belongsTo";
686
+ readonly fk: "accountId";
687
+ }>;
688
+ card: RelationEntry<"card", {
689
+ readonly type: "belongsTo";
690
+ readonly fk: "cardId";
691
+ }>;
692
+ }, ["id"]>;
693
+ card: ModelDesc<"card", {
694
+ cardId: TypedField<"id", CardId, {}>;
695
+ version: TypedField<"int", number, {}>;
696
+ accountSeq: TypedField<"int", number, {}>;
697
+ content: TypedField<"string", string, {}>;
698
+ status: TypedField<"string", string, {}>;
699
+ derivedStatus: TypedField<"string", string, {}>;
700
+ createdAt: TypedField<"date", Date, {}>;
701
+ lastUpdatedAt: TypedField<"date", Date, {}>;
702
+ tags: TypedField<"array", any[], {}>;
703
+ masterTags: TypedField<"array", any[], {}>;
704
+ mentionedUsers: TypedField<"array", any[], {}>;
705
+ title: TypedField<"string", string, {}>;
706
+ priority: TypedField<"string", string, {
707
+ readonly optional: true;
708
+ }>;
709
+ effort: TypedField<"int", number, {
710
+ readonly optional: true;
711
+ }>;
712
+ checkboxStats: TypedField<"obj", any, {}>;
713
+ checkboxInfo: TypedField<"array", any[], {}>;
714
+ visibility: TypedField<"string", string, {}>;
715
+ legacyProjectSeq: TypedField<"int", number, {
716
+ readonly optional: true;
717
+ }>;
718
+ meta: TypedField<"obj", any, {}>;
719
+ embeds: TypedField<"obj", any, {}>;
720
+ isPublic: TypedField<"bool", boolean, {}>;
721
+ hasBlockingDeps: TypedField<"bool", boolean, {}>;
722
+ dueDate: TypedField<"day", {
723
+ day: number;
724
+ month: number;
725
+ year: number;
726
+ }, {
727
+ readonly optional: true;
728
+ }>;
729
+ isDoc: TypedField<"bool", boolean, {
730
+ readonly optional: true;
731
+ }>;
732
+ childCardInfo: TypedField<"string", string, {}>;
733
+ accountId: TypedField<"belongsTo", AccountId, {}>;
734
+ deckId: TypedField<"belongsTo", DeckId, {
735
+ readonly optional: true;
736
+ }>;
737
+ assigneeId: TypedField<"belongsTo", UserId, {
738
+ readonly optional: true;
739
+ }>;
740
+ creatorId: TypedField<"belongsTo", UserId, {
741
+ readonly optional: true;
742
+ }>;
743
+ milestoneId: TypedField<"belongsTo", MilestoneId, {
744
+ readonly optional: true;
745
+ }>;
746
+ sprintId: TypedField<"belongsTo", SprintId, {
747
+ readonly optional: true;
748
+ }>;
749
+ legacyProjectId: TypedField<"belongsTo", ProjectId, {
750
+ readonly optional: true;
751
+ }>;
752
+ coverFileId: TypedField<"belongsTo", FileId, {
753
+ readonly optional: true;
754
+ }>;
755
+ parentCardId: TypedField<"belongsTo", CardId, {
756
+ readonly optional: true;
757
+ }>;
758
+ sourceWorkflowItemId: TypedField<"belongsTo", WorkflowItemId, {
759
+ readonly optional: true;
760
+ }>;
761
+ discordGuildId: TypedField<"belongsTo", DiscordGuildId, {}>;
762
+ visionBoardId: TypedField<"belongsTo", VisionBoardId, {
763
+ readonly optional: true;
764
+ }>;
765
+ }, {
766
+ account: RelationEntry<"account", {
767
+ readonly type: "belongsTo";
768
+ readonly fk: "accountId";
769
+ }>;
770
+ deck: RelationEntry<"deck", {
771
+ readonly type: "belongsTo";
772
+ readonly fk: "deckId";
773
+ }>;
774
+ assignee: RelationEntry<"user", {
775
+ readonly type: "belongsTo";
776
+ readonly fk: "assigneeId";
777
+ }>;
778
+ creator: RelationEntry<"user", {
779
+ readonly type: "belongsTo";
780
+ readonly fk: "creatorId";
781
+ }>;
782
+ milestone: RelationEntry<"milestone", {
783
+ readonly type: "belongsTo";
784
+ readonly fk: "milestoneId";
785
+ }>;
786
+ sprint: RelationEntry<"sprint", {
787
+ readonly type: "belongsTo";
788
+ readonly fk: "sprintId";
789
+ }>;
790
+ legacyProject: RelationEntry<"project", {
791
+ readonly type: "belongsTo";
792
+ readonly fk: "legacyProjectId";
793
+ }>;
794
+ coverFile: RelationEntry<"file", {
795
+ readonly type: "belongsTo";
796
+ readonly fk: "coverFileId";
797
+ }>;
798
+ parentCard: RelationEntry<"card", {
799
+ readonly type: "belongsTo";
800
+ readonly fk: "parentCardId";
801
+ }>;
802
+ sourceWorkflowItem: RelationEntry<"workflowItem", {
803
+ readonly type: "belongsTo";
804
+ readonly fk: "sourceWorkflowItemId";
805
+ }>;
806
+ discordGuild: RelationEntry<"discordGuild", {
807
+ readonly type: "belongsTo";
808
+ readonly fk: "discordGuildId";
809
+ }>;
810
+ visionBoard: RelationEntry<"visionBoard", {
811
+ readonly type: "belongsTo";
812
+ readonly fk: "visionBoardId";
813
+ }>;
814
+ resolvables: RelationEntry<"resolvable", {
815
+ readonly type: "hasMany";
816
+ }>;
817
+ handCards: RelationEntry<"handCard", {
818
+ readonly type: "hasMany";
819
+ }>;
820
+ timeTrackingSegments: RelationEntry<"timeTrackingSegment", {
821
+ readonly type: "hasMany";
822
+ }>;
823
+ cardSubscriptions: RelationEntry<"cardSubscription", {
824
+ readonly type: "hasMany";
825
+ }>;
826
+ cardOrders: RelationEntry<"cardOrder", {
827
+ readonly type: "hasMany";
828
+ }>;
829
+ resolvableEntries: RelationEntry<"resolvableEntry", {
830
+ readonly type: "hasMany";
831
+ }>;
832
+ queueEntries: RelationEntry<"queueEntry", {
833
+ readonly type: "hasMany";
834
+ }>;
835
+ attachments: RelationEntry<"attachment", {
836
+ readonly type: "hasMany";
837
+ }>;
838
+ diffs: RelationEntry<"cardHistory", {
839
+ readonly type: "hasMany";
840
+ }>;
841
+ totalTimeTrackingSums: RelationEntry<"timeTrackingSum", {
842
+ readonly type: "hasOne";
843
+ }>;
844
+ userTimeTrackingSums: RelationEntry<"timeTrackingSum", {
845
+ readonly type: "hasMany";
846
+ }>;
847
+ childCards: RelationEntry<"card", {
848
+ readonly type: "hasMany";
849
+ }>;
850
+ inDeps: RelationEntry<"card", {
851
+ readonly type: "hasMany";
852
+ }>;
853
+ outDeps: RelationEntry<"card", {
854
+ readonly type: "hasMany";
855
+ }>;
856
+ cardReferences: RelationEntry<"card", {
857
+ readonly type: "hasMany";
858
+ }>;
859
+ upvotes: RelationEntry<"cardUpvote", {
860
+ readonly type: "hasMany";
861
+ }>;
862
+ }, ["cardId"]>;
863
+ cardsEffortHistory: ModelDesc<"cardsEffortHistory", {
864
+ effortSum: TypedField<"bigint", bigint, {}>;
865
+ cardCount: TypedField<"bigint", bigint, {}>;
866
+ date: TypedField<"day", {
867
+ day: number;
868
+ month: number;
869
+ year: number;
870
+ }, {}>;
871
+ }, {}, ["date", "effortSum", "cardCount"]>;
872
+ cardsFinishedHistory: ModelDesc<"cardsFinishedHistory", {
873
+ effortSum: TypedField<"bigint", bigint, {}>;
874
+ cardCount: TypedField<"bigint", bigint, {}>;
875
+ date: TypedField<"day", {
876
+ day: number;
877
+ month: number;
878
+ year: number;
879
+ }, {}>;
880
+ assigneeId: TypedField<"belongsTo", UserId, {}>;
881
+ }, {
882
+ assignee: RelationEntry<"user", {
883
+ readonly type: "belongsTo";
884
+ readonly fk: "assigneeId";
885
+ }>;
886
+ }, ["date", "effortSum", "cardCount", "assigneeId"]>;
887
+ cardsStatusHistory: ModelDesc<"cardsStatusHistory", {
888
+ status: TypedField<"string", string, {}>;
889
+ count: TypedField<"int", number, {}>;
890
+ date: TypedField<"day", {
891
+ day: number;
892
+ month: number;
893
+ year: number;
894
+ }, {}>;
895
+ }, {}, ["date", "status", "count"]>;
896
+ cardsTimeToFinished: ModelDesc<"cardsTimeToFinished", {
897
+ effort: TypedField<"int", number, {}>;
898
+ startedAt: TypedField<"date", Date, {}>;
899
+ doneAt: TypedField<"date", Date, {}>;
900
+ cardId: TypedField<"belongsTo", CardId, {}>;
901
+ assigneeId: TypedField<"belongsTo", UserId, {}>;
902
+ }, {
903
+ card: RelationEntry<"card", {
904
+ readonly type: "belongsTo";
905
+ readonly fk: "cardId";
906
+ }>;
907
+ assignee: RelationEntry<"user", {
908
+ readonly type: "belongsTo";
909
+ readonly fk: "assigneeId";
910
+ }>;
911
+ }, ["cardId", "startedAt", "doneAt", "effort", "assigneeId"]>;
912
+ dailyDiscordGuildVoteMembership: ModelDesc<"dailyDiscordGuildVoteMembership", {
913
+ t: TypedField<"date", Date, {}>;
914
+ membershipCount: TypedField<"int", number, {}>;
915
+ discordGuildId: TypedField<"belongsTo", DiscordGuildId, {}>;
916
+ }, {
917
+ discordGuild: RelationEntry<"discordGuild", {
918
+ readonly type: "belongsTo";
919
+ readonly fk: "discordGuildId";
920
+ }>;
921
+ }, ["t", "guildId"]>;
922
+ dailyPublicProjectMembership: ModelDesc<"dailyPublicProjectMembership", {
923
+ t: TypedField<"date", Date, {}>;
924
+ membershipCount: TypedField<"int", number, {}>;
925
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
926
+ }, {
927
+ project: RelationEntry<"project", {
928
+ readonly type: "belongsTo";
929
+ readonly fk: "projectId";
930
+ }>;
931
+ }, ["t", "projectId"]>;
932
+ publicProjectVisit: ModelDesc<"publicProjectVisit", {
933
+ t: TypedField<"date", Date, {}>;
934
+ topReferrers: TypedField<"obj", any, {}>;
935
+ visitCounts: TypedField<"int", number, {}>;
936
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
937
+ }, {
938
+ project: RelationEntry<"project", {
939
+ readonly type: "belongsTo";
940
+ readonly fk: "projectId";
941
+ }>;
942
+ }, ["t", "projectId"]>;
943
+ deckAssignment: ModelDesc<"deckAssignment", {
944
+ lastAssignedAt: TypedField<"date", Date, {}>;
945
+ deckId: TypedField<"belongsTo", DeckId, {}>;
946
+ userId: TypedField<"belongsTo", UserId, {}>;
947
+ accountId: TypedField<"belongsTo", AccountId, {}>;
948
+ }, {
949
+ deck: RelationEntry<"deck", {
950
+ readonly type: "belongsTo";
951
+ readonly fk: "deckId";
952
+ }>;
953
+ user: RelationEntry<"user", {
954
+ readonly type: "belongsTo";
955
+ readonly fk: "userId";
956
+ }>;
957
+ account: RelationEntry<"account", {
958
+ readonly type: "belongsTo";
959
+ readonly fk: "accountId";
960
+ }>;
961
+ }, ["userId", "deckId"]>;
962
+ deckGuardian: ModelDesc<"deckGuardian", {
963
+ userId: TypedField<"belongsTo", UserId, {}>;
964
+ accountId: TypedField<"belongsTo", AccountId, {}>;
965
+ deckId: TypedField<"belongsTo", DeckId, {}>;
966
+ }, {
967
+ user: RelationEntry<"user", {
968
+ readonly type: "belongsTo";
969
+ readonly fk: "userId";
970
+ }>;
971
+ account: RelationEntry<"account", {
972
+ readonly type: "belongsTo";
973
+ readonly fk: "accountId";
974
+ }>;
975
+ deck: RelationEntry<"deck", {
976
+ readonly type: "belongsTo";
977
+ readonly fk: "deckId";
978
+ }>;
979
+ }, ["deckId", "userId"]>;
980
+ deckSubscription: ModelDesc<"deckSubscription", {
981
+ id: TypedField<"id", DeckSubscriptionId, {}>;
982
+ userId: TypedField<"belongsTo", UserId, {}>;
983
+ deckId: TypedField<"belongsTo", DeckId, {}>;
984
+ accountId: TypedField<"belongsTo", AccountId, {}>;
985
+ }, {
986
+ user: RelationEntry<"user", {
987
+ readonly type: "belongsTo";
988
+ readonly fk: "userId";
989
+ }>;
990
+ deck: RelationEntry<"deck", {
991
+ readonly type: "belongsTo";
992
+ readonly fk: "deckId";
993
+ }>;
994
+ account: RelationEntry<"account", {
995
+ readonly type: "belongsTo";
996
+ readonly fk: "accountId";
997
+ }>;
998
+ }, ["id"]>;
999
+ deck: ModelDesc<"deck", {
1000
+ id: TypedField<"id", DeckId, {}>;
1001
+ content: TypedField<"string", string, {}>;
1002
+ description: TypedField<"string", string, {}>;
1003
+ title: TypedField<"string", string, {}>;
1004
+ sortValue: TypedField<"string", string, {}>;
1005
+ preferredOrder: TypedField<"string", string, {
1006
+ readonly optional: true;
1007
+ }>;
1008
+ coverColor: TypedField<"string", string, {
1009
+ readonly optional: true;
1010
+ }>;
1011
+ isDeleted: TypedField<"string", string, {}>;
1012
+ accountSeq: TypedField<"int", number, {}>;
1013
+ spaceId: TypedField<"int", number, {
1014
+ readonly optional: true;
1015
+ }>;
1016
+ defaultCard: TypedField<"obj", any, {}>;
1017
+ isOnboardingDeck: TypedField<"bool", boolean, {}>;
1018
+ handSyncEnabled: TypedField<"string", string, {}>;
1019
+ stickyDefaultProjectTag: TypedField<"string", string, {}>;
1020
+ manualOrderLabels: TypedField<"string", string, {}>;
1021
+ workflowItemOrderLabels: TypedField<"string", string, {}>;
1022
+ createdAt: TypedField<"date", Date, {}>;
1023
+ stats: TypedField<"obj", any, {}>;
1024
+ hasGuardians: TypedField<"string", string, {}>;
1025
+ allowedCardTypes: TypedField<"string", string, {}>;
1026
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1027
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1028
+ milestoneId: TypedField<"belongsTo", MilestoneId, {
1029
+ readonly optional: true;
1030
+ }>;
1031
+ creatorId: TypedField<"belongsTo", UserId, {}>;
1032
+ coverFileId: TypedField<"belongsTo", FileId, {
1033
+ readonly optional: true;
1034
+ }>;
1035
+ descriptionCoverFileId: TypedField<"belongsTo", FileId, {
1036
+ readonly optional: true;
1037
+ }>;
1038
+ defaultProjectTagId: TypedField<"belongsTo", ProjectTagId, {
1039
+ readonly optional: true;
1040
+ }>;
1041
+ }, {
1042
+ project: RelationEntry<"project", {
1043
+ readonly type: "belongsTo";
1044
+ readonly fk: "projectId";
1045
+ }>;
1046
+ account: RelationEntry<"account", {
1047
+ readonly type: "belongsTo";
1048
+ readonly fk: "accountId";
1049
+ }>;
1050
+ milestone: RelationEntry<"milestone", {
1051
+ readonly type: "belongsTo";
1052
+ readonly fk: "milestoneId";
1053
+ }>;
1054
+ creator: RelationEntry<"user", {
1055
+ readonly type: "belongsTo";
1056
+ readonly fk: "creatorId";
1057
+ }>;
1058
+ coverFile: RelationEntry<"file", {
1059
+ readonly type: "belongsTo";
1060
+ readonly fk: "coverFileId";
1061
+ }>;
1062
+ descriptionCoverFile: RelationEntry<"file", {
1063
+ readonly type: "belongsTo";
1064
+ readonly fk: "descriptionCoverFileId";
1065
+ }>;
1066
+ defaultProjectTag: RelationEntry<"projectTag", {
1067
+ readonly type: "belongsTo";
1068
+ readonly fk: "defaultProjectTagId";
1069
+ }>;
1070
+ cards: RelationEntry<"card", {
1071
+ readonly type: "hasMany";
1072
+ }>;
1073
+ workflowItems: RelationEntry<"workflowItem", {
1074
+ readonly type: "hasMany";
1075
+ }>;
1076
+ cardOrderInDecks: RelationEntry<"cardOrderInDeck", {
1077
+ readonly type: "hasMany";
1078
+ }>;
1079
+ activities: RelationEntry<"activity", {
1080
+ readonly type: "hasMany";
1081
+ }>;
1082
+ guardians: RelationEntry<"deckGuardian", {
1083
+ readonly type: "hasMany";
1084
+ }>;
1085
+ }, ["id"]>;
1086
+ discordGuild: ModelDesc<"discordGuild", {
1087
+ id: TypedField<"id", DiscordGuildId, {}>;
1088
+ discordGuildId: TypedField<"string", string, {}>;
1089
+ guildName: TypedField<"string", string, {}>;
1090
+ guildIconId: TypedField<"string", string, {}>;
1091
+ scope: TypedField<"string", string, {}>;
1092
+ karmaRoleThresholds: TypedField<"obj", any, {}>;
1093
+ removeCommandEnabled: TypedField<"string", string, {}>;
1094
+ removeCommandEmoji: TypedField<"string", string, {}>;
1095
+ removeCommandRoleId: TypedField<"string", string, {}>;
1096
+ createdAt: TypedField<"date", Date, {}>;
1097
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1098
+ }, {
1099
+ account: RelationEntry<"account", {
1100
+ readonly type: "belongsTo";
1101
+ readonly fk: "accountId";
1102
+ }>;
1103
+ slashCommands: RelationEntry<"discordSlashCommand", {
1104
+ readonly type: "hasMany";
1105
+ }>;
1106
+ projectNotifications: RelationEntry<"discordProjectNotification", {
1107
+ readonly type: "hasMany";
1108
+ }>;
1109
+ dailyDiscordGuildVoteMemberships: RelationEntry<"dailyDiscordGuildVoteMembership", {
1110
+ readonly type: "hasMany";
1111
+ }>;
1112
+ members: RelationEntry<"discordMember", {
1113
+ readonly type: "hasMany";
1114
+ }>;
1115
+ }, ["id"]>;
1116
+ discordMember: ModelDesc<"discordMember", {
1117
+ id: TypedField<"id", DiscordMemberId, {}>;
1118
+ discordUserId: TypedField<"string", string, {}>;
1119
+ name: TypedField<"string", string, {}>;
1120
+ nick: TypedField<"string", string, {}>;
1121
+ avatar: TypedField<"string", string, {}>;
1122
+ discriminator: TypedField<"string", string, {}>;
1123
+ createdAt: TypedField<"date", Date, {}>;
1124
+ deckyScore: TypedField<"int", number, {}>;
1125
+ discordGuildId: TypedField<"belongsTo", DiscordGuildId, {}>;
1126
+ }, {
1127
+ discordGuild: RelationEntry<"discordGuild", {
1128
+ readonly type: "belongsTo";
1129
+ readonly fk: "discordGuildId";
1130
+ }>;
1131
+ }, ["id"]>;
1132
+ discordProjectNotification: ModelDesc<"discordProjectNotification", {
1133
+ id: TypedField<"id", DiscordProjectNotificationId, {}>;
1134
+ discordChannelId: TypedField<"string", string, {}>;
1135
+ disabledTypes: TypedField<"obj", any, {}>;
1136
+ createdAt: TypedField<"date", Date, {}>;
1137
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1138
+ discordGuildId: TypedField<"belongsTo", DiscordGuildId, {}>;
1139
+ }, {
1140
+ project: RelationEntry<"project", {
1141
+ readonly type: "belongsTo";
1142
+ readonly fk: "projectId";
1143
+ }>;
1144
+ discordGuild: RelationEntry<"discordGuild", {
1145
+ readonly type: "belongsTo";
1146
+ readonly fk: "discordGuildId";
1147
+ }>;
1148
+ }, ["id"]>;
1149
+ discordSlashCommand: ModelDesc<"discordSlashCommand", {
1150
+ id: TypedField<"id", DiscordSlashCommandId, {}>;
1151
+ channelId: TypedField<"string", string, {}>;
1152
+ statusTargetChannelId: TypedField<"string", string, {}>;
1153
+ reaction: TypedField<"string", string, {}>;
1154
+ name: TypedField<"string", string, {}>;
1155
+ description: TypedField<"string", string, {}>;
1156
+ autoAddRoleToThread: TypedField<"string", string, {}>;
1157
+ leaderboard: TypedField<"obj", any, {}>;
1158
+ reactionThreshold: TypedField<"int", number, {}>;
1159
+ karmaForCompletion: TypedField<"int", number, {}>;
1160
+ maxFileSizeInBytes: TypedField<"int", number, {}>;
1161
+ statusMessages: TypedField<"obj", any, {}>;
1162
+ permissions: TypedField<"obj", any, {}>;
1163
+ deckId: TypedField<"belongsTo", DeckId, {}>;
1164
+ discordGuildId: TypedField<"belongsTo", DiscordGuildId, {}>;
1165
+ }, {
1166
+ deck: RelationEntry<"deck", {
1167
+ readonly type: "belongsTo";
1168
+ readonly fk: "deckId";
1169
+ }>;
1170
+ discordGuild: RelationEntry<"discordGuild", {
1171
+ readonly type: "belongsTo";
1172
+ readonly fk: "discordGuildId";
1173
+ }>;
1174
+ }, ["id"]>;
1175
+ dueCard: ModelDesc<"dueCard", {
1176
+ createdAt: TypedField<"date", Date, {}>;
1177
+ userId: TypedField<"belongsTo", UserId, {}>;
1178
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1179
+ cardId: TypedField<"belongsTo", CardId, {}>;
1180
+ }, {
1181
+ user: RelationEntry<"user", {
1182
+ readonly type: "belongsTo";
1183
+ readonly fk: "userId";
1184
+ }>;
1185
+ account: RelationEntry<"account", {
1186
+ readonly type: "belongsTo";
1187
+ readonly fk: "accountId";
1188
+ }>;
1189
+ card: RelationEntry<"card", {
1190
+ readonly type: "belongsTo";
1191
+ readonly fk: "cardId";
1192
+ }>;
1193
+ }, ["userId", "cardId"]>;
1194
+ file: ModelDesc<"file", {
1195
+ id: TypedField<"id", FileId, {}>;
1196
+ name: TypedField<"string", string, {}>;
1197
+ url: TypedField<"string", string, {}>;
1198
+ size: TypedField<"string", string, {}>;
1199
+ isDeleted: TypedField<"string", string, {}>;
1200
+ meta: TypedField<"obj", any, {}>;
1201
+ createdAt: TypedField<"date", Date, {}>;
1202
+ deletedAt: TypedField<"date", Date, {}>;
1203
+ selfHosted: TypedField<"string", string, {}>;
1204
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1205
+ uploaderId: TypedField<"belongsTo", UserId, {}>;
1206
+ deletedById: TypedField<"belongsTo", UserId, {}>;
1207
+ }, {
1208
+ account: RelationEntry<"account", {
1209
+ readonly type: "belongsTo";
1210
+ readonly fk: "accountId";
1211
+ }>;
1212
+ uploader: RelationEntry<"user", {
1213
+ readonly type: "belongsTo";
1214
+ readonly fk: "uploaderId";
1215
+ }>;
1216
+ deletedBy: RelationEntry<"user", {
1217
+ readonly type: "belongsTo";
1218
+ readonly fk: "deletedById";
1219
+ }>;
1220
+ }, ["id"]>;
1221
+ handCard: ModelDesc<"handCard", {
1222
+ sortIndex: TypedField<"int", number, {}>;
1223
+ userId: TypedField<"belongsTo", UserId, {}>;
1224
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1225
+ cardId: TypedField<"belongsTo", CardId, {}>;
1226
+ }, {
1227
+ user: RelationEntry<"user", {
1228
+ readonly type: "belongsTo";
1229
+ readonly fk: "userId";
1230
+ }>;
1231
+ account: RelationEntry<"account", {
1232
+ readonly type: "belongsTo";
1233
+ readonly fk: "accountId";
1234
+ }>;
1235
+ card: RelationEntry<"card", {
1236
+ readonly type: "belongsTo";
1237
+ readonly fk: "cardId";
1238
+ }>;
1239
+ }, ["cardId", "userId", "accountId"]>;
1240
+ integration: ModelDesc<"integration", {
1241
+ id: TypedField<"id", IntegrationId, {}>;
1242
+ type: TypedField<"string", string, {}>;
1243
+ disabled: TypedField<"string", string, {}>;
1244
+ userData: TypedField<"obj", any, {}>;
1245
+ createdAt: TypedField<"date", Date, {}>;
1246
+ version: TypedField<"int", number, {}>;
1247
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1248
+ userId: TypedField<"belongsTo", UserId, {}>;
1249
+ creatorId: TypedField<"belongsTo", UserId, {}>;
1250
+ }, {
1251
+ account: RelationEntry<"account", {
1252
+ readonly type: "belongsTo";
1253
+ readonly fk: "accountId";
1254
+ }>;
1255
+ user: RelationEntry<"user", {
1256
+ readonly type: "belongsTo";
1257
+ readonly fk: "userId";
1258
+ }>;
1259
+ creator: RelationEntry<"user", {
1260
+ readonly type: "belongsTo";
1261
+ readonly fk: "creatorId";
1262
+ }>;
1263
+ }, ["id"]>;
1264
+ invoice: ModelDesc<"invoice", {
1265
+ id: TypedField<"id", InvoiceId, {}>;
1266
+ invoiceNumber: TypedField<"string", string, {}>;
1267
+ url: TypedField<"string", string, {}>;
1268
+ createdAt: TypedField<"date", Date, {}>;
1269
+ total: TypedField<"int", number, {}>;
1270
+ subtotal: TypedField<"int", number, {}>;
1271
+ charged: TypedField<"int", number, {}>;
1272
+ chargeData: TypedField<"obj", any, {}>;
1273
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1274
+ }, {
1275
+ account: RelationEntry<"account", {
1276
+ readonly type: "belongsTo";
1277
+ readonly fk: "accountId";
1278
+ }>;
1279
+ }, ["id"]>;
1280
+ lastSeenCardUpvote: ModelDesc<"lastSeenCardUpvote", {
1281
+ lastSeenAt: TypedField<"date", Date, {}>;
1282
+ createdAt: TypedField<"date", Date, {}>;
1283
+ userId: TypedField<"belongsTo", UserId, {}>;
1284
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1285
+ }, {
1286
+ user: RelationEntry<"user", {
1287
+ readonly type: "belongsTo";
1288
+ readonly fk: "userId";
1289
+ }>;
1290
+ account: RelationEntry<"account", {
1291
+ readonly type: "belongsTo";
1292
+ readonly fk: "accountId";
1293
+ }>;
1294
+ }, ["userId", "accountId"]>;
1295
+ milestoneProgress: ModelDesc<"milestoneProgress", {
1296
+ progress: TypedField<"obj", any, {}>;
1297
+ milestoneId: TypedField<"belongsTo", MilestoneId, {}>;
1298
+ }, {
1299
+ milestone: RelationEntry<"milestone", {
1300
+ readonly type: "belongsTo";
1301
+ readonly fk: "milestoneId";
1302
+ }>;
1303
+ }, ["milestoneId", "date"]>;
1304
+ milestoneProject: ModelDesc<"milestoneProject", {
1305
+ milestoneId: TypedField<"belongsTo", MilestoneId, {}>;
1306
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1307
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1308
+ }, {
1309
+ milestone: RelationEntry<"milestone", {
1310
+ readonly type: "belongsTo";
1311
+ readonly fk: "milestoneId";
1312
+ }>;
1313
+ project: RelationEntry<"project", {
1314
+ readonly type: "belongsTo";
1315
+ readonly fk: "projectId";
1316
+ }>;
1317
+ account: RelationEntry<"account", {
1318
+ readonly type: "belongsTo";
1319
+ readonly fk: "accountId";
1320
+ }>;
1321
+ }, ["milestoneId", "projectId"]>;
1322
+ milestone: ModelDesc<"milestone", {
1323
+ id: TypedField<"id", MilestoneId, {}>;
1324
+ name: TypedField<"string", string, {}>;
1325
+ color: TypedField<"string", string, {}>;
1326
+ date: TypedField<"day", {
1327
+ day: number;
1328
+ month: number;
1329
+ year: number;
1330
+ }, {}>;
1331
+ startDate: TypedField<"day", {
1332
+ day: number;
1333
+ month: number;
1334
+ year: number;
1335
+ }, {
1336
+ readonly optional: true;
1337
+ }>;
1338
+ createdAt: TypedField<"date", Date, {}>;
1339
+ accountSeq: TypedField<"int", number, {}>;
1340
+ description: TypedField<"string", string, {
1341
+ readonly optional: true;
1342
+ }>;
1343
+ isGlobal: TypedField<"string", string, {}>;
1344
+ handSyncEnabled: TypedField<"string", string, {}>;
1345
+ manualOrderLabels: TypedField<"string", string, {}>;
1346
+ stats: TypedField<"obj", any, {}>;
1347
+ userCapacities: TypedField<"obj", any, {}>;
1348
+ isDeleted: TypedField<"bool", boolean, {}>;
1349
+ preferredOrder: TypedField<"string", string, {
1350
+ readonly optional: true;
1351
+ }>;
1352
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1353
+ creatorId: TypedField<"belongsTo", UserId, {}>;
1354
+ coverFileId: TypedField<"belongsTo", FileId, {
1355
+ readonly optional: true;
1356
+ }>;
1357
+ }, {
1358
+ account: RelationEntry<"account", {
1359
+ readonly type: "belongsTo";
1360
+ readonly fk: "accountId";
1361
+ }>;
1362
+ creator: RelationEntry<"user", {
1363
+ readonly type: "belongsTo";
1364
+ readonly fk: "creatorId";
1365
+ }>;
1366
+ coverFile: RelationEntry<"file", {
1367
+ readonly type: "belongsTo";
1368
+ readonly fk: "coverFileId";
1369
+ }>;
1370
+ milestoneProjects: RelationEntry<"milestoneProject", {
1371
+ readonly type: "hasMany";
1372
+ }>;
1373
+ cards: RelationEntry<"card", {
1374
+ readonly type: "hasMany";
1375
+ }>;
1376
+ activities: RelationEntry<"activity", {
1377
+ readonly type: "hasMany";
1378
+ }>;
1379
+ progress: RelationEntry<"milestoneProgress", {
1380
+ readonly type: "hasMany";
1381
+ }>;
1382
+ }, ["id"]>;
1383
+ pinnedMilestone: ModelDesc<"pinnedMilestone", {
1384
+ id: TypedField<"id", PinnedMilestoneId, {}>;
1385
+ autoAssignStartedCard: TypedField<"bool", boolean, {}>;
1386
+ autoAssignNewCard: TypedField<"bool", boolean, {}>;
1387
+ userId: TypedField<"belongsTo", UserId, {}>;
1388
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1389
+ sprintId: TypedField<"belongsTo", SprintId, {}>;
1390
+ milestoneId: TypedField<"belongsTo", MilestoneId, {}>;
1391
+ }, {
1392
+ user: RelationEntry<"user", {
1393
+ readonly type: "belongsTo";
1394
+ readonly fk: "userId";
1395
+ }>;
1396
+ account: RelationEntry<"account", {
1397
+ readonly type: "belongsTo";
1398
+ readonly fk: "accountId";
1399
+ }>;
1400
+ sprint: RelationEntry<"sprint", {
1401
+ readonly type: "belongsTo";
1402
+ readonly fk: "sprintId";
1403
+ }>;
1404
+ milestone: RelationEntry<"milestone", {
1405
+ readonly type: "belongsTo";
1406
+ readonly fk: "milestoneId";
1407
+ }>;
1408
+ }, ["id"]>;
1409
+ projectOrder: ModelDesc<"projectOrder", {
1410
+ sortIndex: TypedField<"int", number, {}>;
1411
+ userId: TypedField<"belongsTo", UserId, {}>;
1412
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1413
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1414
+ }, {
1415
+ user: RelationEntry<"user", {
1416
+ readonly type: "belongsTo";
1417
+ readonly fk: "userId";
1418
+ }>;
1419
+ account: RelationEntry<"account", {
1420
+ readonly type: "belongsTo";
1421
+ readonly fk: "accountId";
1422
+ }>;
1423
+ project: RelationEntry<"project", {
1424
+ readonly type: "belongsTo";
1425
+ readonly fk: "projectId";
1426
+ }>;
1427
+ }, ["projectId", "userId", "accountId"]>;
1428
+ projectSelection: ModelDesc<"projectSelection", {
1429
+ id: TypedField<"id", ProjectSelectionId, {}>;
1430
+ userId: TypedField<"belongsTo", UserId, {}>;
1431
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1432
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1433
+ }, {
1434
+ user: RelationEntry<"user", {
1435
+ readonly type: "belongsTo";
1436
+ readonly fk: "userId";
1437
+ }>;
1438
+ account: RelationEntry<"account", {
1439
+ readonly type: "belongsTo";
1440
+ readonly fk: "accountId";
1441
+ }>;
1442
+ project: RelationEntry<"project", {
1443
+ readonly type: "belongsTo";
1444
+ readonly fk: "projectId";
1445
+ }>;
1446
+ }, ["id"]>;
1447
+ projectTag: ModelDesc<"projectTag", {
1448
+ id: TypedField<"id", ProjectTagId, {}>;
1449
+ tag: TypedField<"string", string, {}>;
1450
+ color: TypedField<"string", string, {
1451
+ readonly optional: true;
1452
+ }>;
1453
+ emoji: TypedField<"string", string, {
1454
+ readonly optional: true;
1455
+ }>;
1456
+ description: TypedField<"string", string, {
1457
+ readonly optional: true;
1458
+ }>;
1459
+ createdAt: TypedField<"date", Date, {}>;
1460
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1461
+ }, {
1462
+ project: RelationEntry<"project", {
1463
+ readonly type: "belongsTo";
1464
+ readonly fk: "projectId";
1465
+ }>;
1466
+ }, ["id"]>;
1467
+ projectUserSetting: ModelDesc<"projectUserSetting", {
1468
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1469
+ userId: TypedField<"belongsTo", UserId, {}>;
1470
+ }, {
1471
+ project: RelationEntry<"project", {
1472
+ readonly type: "belongsTo";
1473
+ readonly fk: "projectId";
1474
+ }>;
1475
+ user: RelationEntry<"user", {
1476
+ readonly type: "belongsTo";
1477
+ readonly fk: "userId";
1478
+ }>;
1479
+ }, ["projectId", "userId"]>;
1480
+ projectUser: ModelDesc<"projectUser", {
1481
+ projectRole: TypedField<"string", string, {}>;
1482
+ userId: TypedField<"belongsTo", UserId, {}>;
1483
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1484
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1485
+ }, {
1486
+ user: RelationEntry<"user", {
1487
+ readonly type: "belongsTo";
1488
+ readonly fk: "userId";
1489
+ }>;
1490
+ project: RelationEntry<"project", {
1491
+ readonly type: "belongsTo";
1492
+ readonly fk: "projectId";
1493
+ }>;
1494
+ account: RelationEntry<"account", {
1495
+ readonly type: "belongsTo";
1496
+ readonly fk: "accountId";
1497
+ }>;
1498
+ }, ["projectId", "userId"]>;
1499
+ project: ModelDesc<"project", {
1500
+ id: TypedField<"id", ProjectId, {}>;
1501
+ name: TypedField<"string", string, {}>;
1502
+ visibility: TypedField<"string", string, {}>;
1503
+ defaultUserAccess: TypedField<"string", string, {}>;
1504
+ createdAt: TypedField<"date", Date, {}>;
1505
+ accountSeq: TypedField<"int", number, {}>;
1506
+ allowUpvotes: TypedField<"string", string, {}>;
1507
+ isPublic: TypedField<"string", string, {}>;
1508
+ commentsArePublic: TypedField<"string", string, {}>;
1509
+ publicRegistryAgreement: TypedField<"string", string, {
1510
+ readonly optional: true;
1511
+ }>;
1512
+ publicLayoutVersion: TypedField<"string", string, {}>;
1513
+ publicIsExplicit: TypedField<"string", string, {}>;
1514
+ markerColor: TypedField<"string", string, {
1515
+ readonly optional: true;
1516
+ }>;
1517
+ effortIcon: TypedField<"string", string, {
1518
+ readonly optional: true;
1519
+ }>;
1520
+ spaces: TypedField<"string", string, {}>;
1521
+ publicPath: TypedField<"string", string, {
1522
+ readonly optional: true;
1523
+ }>;
1524
+ publicMessage: TypedField<"string", string, {
1525
+ readonly optional: true;
1526
+ }>;
1527
+ publicHeading: TypedField<"string", string, {
1528
+ readonly optional: true;
1529
+ }>;
1530
+ publicBackgroundColor: TypedField<"string", string, {
1531
+ readonly optional: true;
1532
+ }>;
1533
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1534
+ coverFileId: TypedField<"belongsTo", FileId, {
1535
+ readonly optional: true;
1536
+ }>;
1537
+ publicBannerFileId: TypedField<"belongsTo", FileId, {
1538
+ readonly optional: true;
1539
+ }>;
1540
+ publicTileFileId: TypedField<"belongsTo", FileId, {
1541
+ readonly optional: true;
1542
+ }>;
1543
+ publicBackgroundImageId: TypedField<"belongsTo", FileId, {
1544
+ readonly optional: true;
1545
+ }>;
1546
+ }, {
1547
+ account: RelationEntry<"account", {
1548
+ readonly type: "belongsTo";
1549
+ readonly fk: "accountId";
1550
+ }>;
1551
+ coverFile: RelationEntry<"file", {
1552
+ readonly type: "belongsTo";
1553
+ readonly fk: "coverFileId";
1554
+ }>;
1555
+ publicBannerFile: RelationEntry<"file", {
1556
+ readonly type: "belongsTo";
1557
+ readonly fk: "publicBannerFileId";
1558
+ }>;
1559
+ publicTileFile: RelationEntry<"file", {
1560
+ readonly type: "belongsTo";
1561
+ readonly fk: "publicTileFileId";
1562
+ }>;
1563
+ publicBackgroundImage: RelationEntry<"file", {
1564
+ readonly type: "belongsTo";
1565
+ readonly fk: "publicBackgroundImageId";
1566
+ }>;
1567
+ decks: RelationEntry<"deck", {
1568
+ readonly type: "hasMany";
1569
+ }>;
1570
+ milestoneProjects: RelationEntry<"milestoneProject", {
1571
+ readonly type: "hasMany";
1572
+ }>;
1573
+ sprintProjects: RelationEntry<"sprintProject", {
1574
+ readonly type: "hasMany";
1575
+ }>;
1576
+ publicProjectVisits: RelationEntry<"publicProjectVisit", {
1577
+ readonly type: "hasMany";
1578
+ }>;
1579
+ dailyPublicProjectMembership: RelationEntry<"dailyPublicProjectMembership", {
1580
+ readonly type: "hasMany";
1581
+ }>;
1582
+ publicProjectMemberships: RelationEntry<"publicProjectMembership", {
1583
+ readonly type: "hasMany";
1584
+ }>;
1585
+ cardUpvotes: RelationEntry<"cardUpvote", {
1586
+ readonly type: "hasMany";
1587
+ }>;
1588
+ tags: RelationEntry<"projectTag", {
1589
+ readonly type: "hasMany";
1590
+ }>;
1591
+ activities: RelationEntry<"activity", {
1592
+ readonly type: "hasMany";
1593
+ }>;
1594
+ explicitProjectUsers: RelationEntry<"projectUser", {
1595
+ readonly type: "hasMany";
1596
+ }>;
1597
+ access: RelationEntry<"userProjectAccess", {
1598
+ readonly type: "hasMany";
1599
+ }>;
1600
+ publicProjectInfo: RelationEntry<"publicProjectInfo", {
1601
+ readonly type: "hasOne";
1602
+ }>;
1603
+ }, ["id"]>;
1604
+ publicProjectInfo: ModelDesc<"publicProjectInfo", {
1605
+ lastActivityAt: TypedField<"string", string, {}>;
1606
+ activities7d: TypedField<"string", string, {}>;
1607
+ cardCount: TypedField<"string", string, {}>;
1608
+ visits7d: TypedField<"string", string, {}>;
1609
+ cardDoneStreak: TypedField<"string", string, {}>;
1610
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1611
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1612
+ }, {
1613
+ project: RelationEntry<"project", {
1614
+ readonly type: "belongsTo";
1615
+ readonly fk: "projectId";
1616
+ }>;
1617
+ account: RelationEntry<"account", {
1618
+ readonly type: "belongsTo";
1619
+ readonly fk: "accountId";
1620
+ }>;
1621
+ }, ["projectId"]>;
1622
+ publicProjectMembership: ModelDesc<"publicProjectMembership", {
1623
+ digestFrequencyInDays: TypedField<"int", number, {}>;
1624
+ createdAt: TypedField<"date", Date, {}>;
1625
+ userId: TypedField<"belongsTo", UserId, {}>;
1626
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1627
+ }, {
1628
+ user: RelationEntry<"user", {
1629
+ readonly type: "belongsTo";
1630
+ readonly fk: "userId";
1631
+ }>;
1632
+ project: RelationEntry<"project", {
1633
+ readonly type: "belongsTo";
1634
+ readonly fk: "projectId";
1635
+ }>;
1636
+ }, ["userId", "projectId"]>;
1637
+ queueEntry: ModelDesc<"queueEntry", {
1638
+ id: TypedField<"id", QueueEntryId, {}>;
1639
+ sortIndex: TypedField<"int", number, {}>;
1640
+ cardDoneAt: TypedField<"date", Date, {}>;
1641
+ createdAt: TypedField<"date", Date, {}>;
1642
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1643
+ userId: TypedField<"belongsTo", UserId, {}>;
1644
+ cardId: TypedField<"belongsTo", CardId, {}>;
1645
+ }, {
1646
+ account: RelationEntry<"account", {
1647
+ readonly type: "belongsTo";
1648
+ readonly fk: "accountId";
1649
+ }>;
1650
+ user: RelationEntry<"user", {
1651
+ readonly type: "belongsTo";
1652
+ readonly fk: "userId";
1653
+ }>;
1654
+ card: RelationEntry<"card", {
1655
+ readonly type: "belongsTo";
1656
+ readonly fk: "cardId";
1657
+ }>;
1658
+ }, ["id"]>;
1659
+ queueSelection: ModelDesc<"queueSelection", {
1660
+ id: TypedField<"id", QueueSelectionId, {}>;
1661
+ sortIndex: TypedField<"int", number, {}>;
1662
+ userId: TypedField<"belongsTo", UserId, {}>;
1663
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1664
+ queueUserId: TypedField<"belongsTo", UserId, {}>;
1665
+ }, {
1666
+ user: RelationEntry<"user", {
1667
+ readonly type: "belongsTo";
1668
+ readonly fk: "userId";
1669
+ }>;
1670
+ account: RelationEntry<"account", {
1671
+ readonly type: "belongsTo";
1672
+ readonly fk: "accountId";
1673
+ }>;
1674
+ queueUser: RelationEntry<"user", {
1675
+ readonly type: "belongsTo";
1676
+ readonly fk: "queueUserId";
1677
+ }>;
1678
+ }, ["id"]>;
1679
+ release: ModelDesc<"release", {
1680
+ id: TypedField<"id", ReleaseId, {}>;
1681
+ version: TypedField<"string", string, {}>;
1682
+ isLive: TypedField<"string", string, {}>;
1683
+ content: TypedField<"string", string, {}>;
1684
+ title: TypedField<"string", string, {}>;
1685
+ createdAt: TypedField<"date", Date, {}>;
1686
+ }, {}, ["id"]>;
1687
+ resolvableEntryHistory: ModelDesc<"resolvableEntryHistory", {
1688
+ content: TypedField<"string", string, {}>;
1689
+ lastChangedAt: TypedField<"date", Date, {}>;
1690
+ version: TypedField<"int", number, {}>;
1691
+ resolvableId: TypedField<"belongsTo", ResolvableId, {}>;
1692
+ authorId: TypedField<"belongsTo", UserId, {}>;
1693
+ entryId: TypedField<"belongsTo", ResolvableEntryId, {}>;
1694
+ }, {
1695
+ resolvable: RelationEntry<"resolvable", {
1696
+ readonly type: "belongsTo";
1697
+ readonly fk: "resolvableId";
1698
+ }>;
1699
+ author: RelationEntry<"user", {
1700
+ readonly type: "belongsTo";
1701
+ readonly fk: "authorId";
1702
+ }>;
1703
+ entry: RelationEntry<"resolvableEntry", {
1704
+ readonly type: "belongsTo";
1705
+ readonly fk: "entryId";
1706
+ }>;
1707
+ }, ["entryId", "version"]>;
1708
+ resolvableEntryReaction: ModelDesc<"resolvableEntryReaction", {
1709
+ id: TypedField<"id", ResolvableEntryReactionId, {}>;
1710
+ value: TypedField<"obj", any, {}>;
1711
+ createdAt: TypedField<"date", Date, {}>;
1712
+ isPublic: TypedField<"bool", boolean, {}>;
1713
+ resolvableEntryId: TypedField<"belongsTo", ResolvableEntryId, {}>;
1714
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1715
+ userId: TypedField<"belongsTo", UserId, {}>;
1716
+ resolvableId: TypedField<"belongsTo", ResolvableId, {}>;
1717
+ }, {
1718
+ resolvableEntry: RelationEntry<"resolvableEntry", {
1719
+ readonly type: "belongsTo";
1720
+ readonly fk: "resolvableEntryId";
1721
+ }>;
1722
+ account: RelationEntry<"account", {
1723
+ readonly type: "belongsTo";
1724
+ readonly fk: "accountId";
1725
+ }>;
1726
+ user: RelationEntry<"user", {
1727
+ readonly type: "belongsTo";
1728
+ readonly fk: "userId";
1729
+ }>;
1730
+ resolvable: RelationEntry<"resolvable", {
1731
+ readonly type: "belongsTo";
1732
+ readonly fk: "resolvableId";
1733
+ }>;
1734
+ }, ["id"]>;
1735
+ resolvableEntry: ModelDesc<"resolvableEntry", {
1736
+ entryId: TypedField<"id", ResolvableEntryId, {}>;
1737
+ content: TypedField<"string", string, {}>;
1738
+ lastChangedAt: TypedField<"date", Date, {}>;
1739
+ createdAt: TypedField<"date", Date, {}>;
1740
+ version: TypedField<"int", number, {}>;
1741
+ meta: TypedField<"obj", any, {}>;
1742
+ resolvableId: TypedField<"belongsTo", ResolvableId, {}>;
1743
+ cardId: TypedField<"belongsTo", CardId, {}>;
1744
+ authorId: TypedField<"belongsTo", UserId, {}>;
1745
+ }, {
1746
+ resolvable: RelationEntry<"resolvable", {
1747
+ readonly type: "belongsTo";
1748
+ readonly fk: "resolvableId";
1749
+ }>;
1750
+ card: RelationEntry<"card", {
1751
+ readonly type: "belongsTo";
1752
+ readonly fk: "cardId";
1753
+ }>;
1754
+ author: RelationEntry<"user", {
1755
+ readonly type: "belongsTo";
1756
+ readonly fk: "authorId";
1757
+ }>;
1758
+ reactions: RelationEntry<"resolvableEntryReaction", {
1759
+ readonly type: "hasMany";
1760
+ }>;
1761
+ histories: RelationEntry<"resolvableEntryHistory", {
1762
+ readonly type: "hasMany";
1763
+ }>;
1764
+ }, ["entryId"]>;
1765
+ resolvableNotification: ModelDesc<"resolvableNotification", {
1766
+ isParticipating: TypedField<"bool", boolean, {}>;
1767
+ isSnoozing: TypedField<"bool", boolean, {}>;
1768
+ unseenEntryCount: TypedField<"int", number, {}>;
1769
+ unseenAuthors: TypedField<"array", any[], {}>;
1770
+ isLastParticipant: TypedField<"bool", boolean, {}>;
1771
+ lastUpdatedAt: TypedField<"date", Date, {}>;
1772
+ snoozeUntil: TypedField<"date", Date, {
1773
+ readonly optional: true;
1774
+ }>;
1775
+ remindMeOn: TypedField<"date", Date, {
1776
+ readonly optional: true;
1777
+ }>;
1778
+ createdAt: TypedField<"date", Date, {}>;
1779
+ userId: TypedField<"belongsTo", UserId, {}>;
1780
+ resolvableId: TypedField<"belongsTo", ResolvableId, {}>;
1781
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1782
+ latestEntryId: TypedField<"belongsTo", ResolvableEntryId, {}>;
1783
+ latestSeenEntryId: TypedField<"belongsTo", ResolvableEntryId, {}>;
1784
+ }, {
1785
+ user: RelationEntry<"user", {
1786
+ readonly type: "belongsTo";
1787
+ readonly fk: "userId";
1788
+ }>;
1789
+ resolvable: RelationEntry<"resolvable", {
1790
+ readonly type: "belongsTo";
1791
+ readonly fk: "resolvableId";
1792
+ }>;
1793
+ account: RelationEntry<"account", {
1794
+ readonly type: "belongsTo";
1795
+ readonly fk: "accountId";
1796
+ }>;
1797
+ latestEntry: RelationEntry<"resolvableEntry", {
1798
+ readonly type: "belongsTo";
1799
+ readonly fk: "latestEntryId";
1800
+ }>;
1801
+ latestSeenEntry: RelationEntry<"resolvableEntry", {
1802
+ readonly type: "belongsTo";
1803
+ readonly fk: "latestSeenEntryId";
1804
+ }>;
1805
+ }, ["userId", "resolvableId"]>;
1806
+ resolvableParticipantHistory: ModelDesc<"resolvableParticipantHistory", {
1807
+ firstJoinedAt: TypedField<"string", string, {}>;
1808
+ done: TypedField<"string", string, {}>;
1809
+ status: TypedField<"string", string, {}>;
1810
+ lastChangedAt: TypedField<"date", Date, {}>;
1811
+ version: TypedField<"int", number, {}>;
1812
+ reaction: TypedField<"string", string, {}>;
1813
+ resolvableId: TypedField<"belongsTo", ResolvableId, {}>;
1814
+ userId: TypedField<"belongsTo", UserId, {}>;
1815
+ addedById: TypedField<"belongsTo", UserId, {}>;
1816
+ }, {
1817
+ resolvable: RelationEntry<"resolvable", {
1818
+ readonly type: "belongsTo";
1819
+ readonly fk: "resolvableId";
1820
+ }>;
1821
+ user: RelationEntry<"user", {
1822
+ readonly type: "belongsTo";
1823
+ readonly fk: "userId";
1824
+ }>;
1825
+ addedBy: RelationEntry<"user", {
1826
+ readonly type: "belongsTo";
1827
+ readonly fk: "addedById";
1828
+ }>;
1829
+ }, ["participantId", "resolvableId", "version"]>;
1830
+ resolvableParticipant: ModelDesc<"resolvableParticipant", {
1831
+ firstJoinedAt: TypedField<"date", Date, {}>;
1832
+ lastChangedAt: TypedField<"date", Date, {}>;
1833
+ done: TypedField<"bool", boolean, {}>;
1834
+ status: TypedField<"string", string, {}>;
1835
+ discordUserId: TypedField<"string", string, {}>;
1836
+ resolvableIsClosed: TypedField<"bool", boolean, {}>;
1837
+ resolvableId: TypedField<"belongsTo", ResolvableId, {}>;
1838
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1839
+ userId: TypedField<"belongsTo", UserId, {}>;
1840
+ addedById: TypedField<"belongsTo", UserId, {}>;
1841
+ }, {
1842
+ resolvable: RelationEntry<"resolvable", {
1843
+ readonly type: "belongsTo";
1844
+ readonly fk: "resolvableId";
1845
+ }>;
1846
+ account: RelationEntry<"account", {
1847
+ readonly type: "belongsTo";
1848
+ readonly fk: "accountId";
1849
+ }>;
1850
+ user: RelationEntry<"user", {
1851
+ readonly type: "belongsTo";
1852
+ readonly fk: "userId";
1853
+ }>;
1854
+ addedBy: RelationEntry<"user", {
1855
+ readonly type: "belongsTo";
1856
+ readonly fk: "addedById";
1857
+ }>;
1858
+ }, ["participantId", "resolvableId"]>;
1859
+ resolvable: ModelDesc<"resolvable", {
1860
+ id: TypedField<"id", ResolvableId, {}>;
1861
+ context: TypedField<"string", string, {}>;
1862
+ contextAsPrio: TypedField<"int", number, {}>;
1863
+ isClosed: TypedField<"bool", boolean, {}>;
1864
+ closedAt: TypedField<"date", Date, {
1865
+ readonly optional: true;
1866
+ }>;
1867
+ createdAt: TypedField<"date", Date, {}>;
1868
+ isPublic: TypedField<"bool", boolean, {}>;
1869
+ cardId: TypedField<"belongsTo", CardId, {}>;
1870
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1871
+ creatorId: TypedField<"belongsTo", UserId, {}>;
1872
+ closedById: TypedField<"belongsTo", UserId, {
1873
+ readonly optional: true;
1874
+ }>;
1875
+ }, {
1876
+ card: RelationEntry<"card", {
1877
+ readonly type: "belongsTo";
1878
+ readonly fk: "cardId";
1879
+ }>;
1880
+ account: RelationEntry<"account", {
1881
+ readonly type: "belongsTo";
1882
+ readonly fk: "accountId";
1883
+ }>;
1884
+ creator: RelationEntry<"user", {
1885
+ readonly type: "belongsTo";
1886
+ readonly fk: "creatorId";
1887
+ }>;
1888
+ closedBy: RelationEntry<"user", {
1889
+ readonly type: "belongsTo";
1890
+ readonly fk: "closedById";
1891
+ }>;
1892
+ participants: RelationEntry<"resolvableParticipant", {
1893
+ readonly type: "hasMany";
1894
+ }>;
1895
+ participantHistories: RelationEntry<"resolvableParticipantHistory", {
1896
+ readonly type: "hasMany";
1897
+ }>;
1898
+ entries: RelationEntry<"resolvableEntry", {
1899
+ readonly type: "hasMany";
1900
+ }>;
1901
+ }, ["id"]>;
1902
+ savedSearch: ModelDesc<"savedSearch", {
1903
+ id: TypedField<"id", SavedSearchId, {}>;
1904
+ tokens: TypedField<"array", any[], {}>;
1905
+ forceOr: TypedField<"bool", boolean, {}>;
1906
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1907
+ ownerId: TypedField<"belongsTo", UserId, {}>;
1908
+ }, {
1909
+ account: RelationEntry<"account", {
1910
+ readonly type: "belongsTo";
1911
+ readonly fk: "accountId";
1912
+ }>;
1913
+ owner: RelationEntry<"user", {
1914
+ readonly type: "belongsTo";
1915
+ readonly fk: "ownerId";
1916
+ }>;
1917
+ }, ["id"]>;
1918
+ sprintConfigProgress: ModelDesc<"sprintConfigProgress", {
1919
+ progress: TypedField<"obj", any, {}>;
1920
+ sprintConfigId: TypedField<"belongsTo", SprintConfigId, {}>;
1921
+ }, {
1922
+ sprintConfig: RelationEntry<"sprintConfig", {
1923
+ readonly type: "belongsTo";
1924
+ readonly fk: "sprintConfigId";
1925
+ }>;
1926
+ }, ["sprintConfigId", "date"]>;
1927
+ sprintConfig: ModelDesc<"sprintConfig", {
1928
+ id: TypedField<"id", SprintConfigId, {}>;
1929
+ name: TypedField<"string", string, {}>;
1930
+ color: TypedField<"string", string, {}>;
1931
+ stopOn: TypedField<"day", {
1932
+ day: number;
1933
+ month: number;
1934
+ year: number;
1935
+ }, {
1936
+ readonly optional: true;
1937
+ }>;
1938
+ isGlobal: TypedField<"string", string, {}>;
1939
+ upcomingSprints: TypedField<"int", number, {}>;
1940
+ sprintDurationWeeks: TypedField<"int", number, {}>;
1941
+ sprintStartWeekday: TypedField<"int", number, {}>;
1942
+ endHour: TypedField<"int", number, {}>;
1943
+ endHourTimezone: TypedField<"string", string, {}>;
1944
+ createdAt: TypedField<"date", Date, {}>;
1945
+ preferredOrder: TypedField<"string", string, {
1946
+ readonly optional: true;
1947
+ }>;
1948
+ moveOnFinish: TypedField<"string", string, {}>;
1949
+ autoBeastModeDurationHours: TypedField<"int", number, {
1950
+ readonly optional: true;
1951
+ }>;
1952
+ autoAssignStartedCard: TypedField<"bool", boolean, {}>;
1953
+ autoAssignNewCard: TypedField<"bool", boolean, {}>;
1954
+ beastGracePeriodHours: TypedField<"int", number, {}>;
1955
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1956
+ creatorId: TypedField<"belongsTo", UserId, {}>;
1957
+ }, {
1958
+ account: RelationEntry<"account", {
1959
+ readonly type: "belongsTo";
1960
+ readonly fk: "accountId";
1961
+ }>;
1962
+ creator: RelationEntry<"user", {
1963
+ readonly type: "belongsTo";
1964
+ readonly fk: "creatorId";
1965
+ }>;
1966
+ sprintProjects: RelationEntry<"sprintProject", {
1967
+ readonly type: "hasMany";
1968
+ }>;
1969
+ sprints: RelationEntry<"sprint", {
1970
+ readonly type: "hasMany";
1971
+ }>;
1972
+ progress: RelationEntry<"sprintConfigProgress", {
1973
+ readonly type: "hasMany";
1974
+ }>;
1975
+ }, ["id"]>;
1976
+ sprintProgress: ModelDesc<"sprintProgress", {
1977
+ progress: TypedField<"obj", any, {}>;
1978
+ sprintId: TypedField<"belongsTo", SprintId, {}>;
1979
+ }, {
1980
+ sprint: RelationEntry<"sprint", {
1981
+ readonly type: "belongsTo";
1982
+ readonly fk: "sprintId";
1983
+ }>;
1984
+ }, ["sprintId", "date"]>;
1985
+ sprintProject: ModelDesc<"sprintProject", {
1986
+ sprintConfigId: TypedField<"belongsTo", SprintConfigId, {}>;
1987
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
1988
+ accountId: TypedField<"belongsTo", AccountId, {}>;
1989
+ }, {
1990
+ sprintConfig: RelationEntry<"sprintConfig", {
1991
+ readonly type: "belongsTo";
1992
+ readonly fk: "sprintConfigId";
1993
+ }>;
1994
+ project: RelationEntry<"project", {
1995
+ readonly type: "belongsTo";
1996
+ readonly fk: "projectId";
1997
+ }>;
1998
+ account: RelationEntry<"account", {
1999
+ readonly type: "belongsTo";
2000
+ readonly fk: "accountId";
2001
+ }>;
2002
+ }, ["sprintConfigId", "projectId"]>;
2003
+ sprint: ModelDesc<"sprint", {
2004
+ id: TypedField<"id", SprintId, {}>;
2005
+ description: TypedField<"string", string, {}>;
2006
+ name: TypedField<"string", string, {
2007
+ readonly optional: true;
2008
+ }>;
2009
+ accountSeq: TypedField<"int", number, {}>;
2010
+ index: TypedField<"int", number, {}>;
2011
+ startDate: TypedField<"day", {
2012
+ day: number;
2013
+ month: number;
2014
+ year: number;
2015
+ }, {}>;
2016
+ endDate: TypedField<"day", {
2017
+ day: number;
2018
+ month: number;
2019
+ year: number;
2020
+ }, {}>;
2021
+ stats: TypedField<"obj", any, {}>;
2022
+ manualOrderLabels: TypedField<"string", string, {}>;
2023
+ userCapacities: TypedField<"obj", any, {}>;
2024
+ handSyncEnabled: TypedField<"string", string, {}>;
2025
+ createdAt: TypedField<"date", Date, {}>;
2026
+ isDeleted: TypedField<"bool", boolean, {}>;
2027
+ completedAt: TypedField<"date", Date, {
2028
+ readonly optional: true;
2029
+ }>;
2030
+ lockedAt: TypedField<"date", Date, {
2031
+ readonly optional: true;
2032
+ }>;
2033
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2034
+ sprintConfigId: TypedField<"belongsTo", SprintConfigId, {}>;
2035
+ creatorId: TypedField<"belongsTo", UserId, {}>;
2036
+ coverFileId: TypedField<"belongsTo", FileId, {
2037
+ readonly optional: true;
2038
+ }>;
2039
+ autoMilestoneId: TypedField<"belongsTo", MilestoneId, {
2040
+ readonly optional: true;
2041
+ }>;
2042
+ }, {
2043
+ account: RelationEntry<"account", {
2044
+ readonly type: "belongsTo";
2045
+ readonly fk: "accountId";
2046
+ }>;
2047
+ sprintConfig: RelationEntry<"sprintConfig", {
2048
+ readonly type: "belongsTo";
2049
+ readonly fk: "sprintConfigId";
2050
+ }>;
2051
+ creator: RelationEntry<"user", {
2052
+ readonly type: "belongsTo";
2053
+ readonly fk: "creatorId";
2054
+ }>;
2055
+ coverFile: RelationEntry<"file", {
2056
+ readonly type: "belongsTo";
2057
+ readonly fk: "coverFileId";
2058
+ }>;
2059
+ autoMilestone: RelationEntry<"milestone", {
2060
+ readonly type: "belongsTo";
2061
+ readonly fk: "autoMilestoneId";
2062
+ }>;
2063
+ cards: RelationEntry<"card", {
2064
+ readonly type: "hasMany";
2065
+ }>;
2066
+ progress: RelationEntry<"sprintProgress", {
2067
+ readonly type: "hasMany";
2068
+ }>;
2069
+ activities: RelationEntry<"activity", {
2070
+ readonly type: "hasMany";
2071
+ }>;
2072
+ }, ["id"]>;
2073
+ stripeAccountSync: ModelDesc<"stripeAccountSync", {
2074
+ status: TypedField<"string", string, {}>;
2075
+ euVatIdData: TypedField<"obj", any, {}>;
2076
+ vatCountryCode: TypedField<"string", string, {}>;
2077
+ vatTaxPercentage: TypedField<"int", number, {}>;
2078
+ centsPerSeat: TypedField<"int", number, {}>;
2079
+ billingCycleStart: TypedField<"date", Date, {}>;
2080
+ billingCycleEnd: TypedField<"date", Date, {}>;
2081
+ grossActualBalance: TypedField<"int", number, {}>;
2082
+ grossBonusBalance: TypedField<"int", number, {}>;
2083
+ netGiftBalance: TypedField<"int", number, {}>;
2084
+ paymentMethod: TypedField<"obj", any, {}>;
2085
+ hasBeenCancelledAt: TypedField<"date", Date, {}>;
2086
+ planType: TypedField<"string", string, {}>;
2087
+ planName: TypedField<"string", string, {}>;
2088
+ pendingPlanType: TypedField<"string", string, {}>;
2089
+ repeatingCoupon: TypedField<"obj", any, {}>;
2090
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2091
+ }, {
2092
+ account: RelationEntry<"account", {
2093
+ readonly type: "belongsTo";
2094
+ readonly fk: "accountId";
2095
+ }>;
2096
+ }, ["accountId"]>;
2097
+ timeTrackingSegment: ModelDesc<"timeTrackingSegment", {
2098
+ id: TypedField<"id", TimeTrackingSegmentId, {}>;
2099
+ createdAt: TypedField<"date", Date, {}>;
2100
+ finishedAt: TypedField<"date", Date, {
2101
+ readonly optional: true;
2102
+ }>;
2103
+ startedAt: TypedField<"date", Date, {}>;
2104
+ modifyDurationMsBy: TypedField<"int", number, {}>;
2105
+ addedManually: TypedField<"string", string, {}>;
2106
+ autoFinishedState: TypedField<"string", string, {}>;
2107
+ cardId: TypedField<"belongsTo", CardId, {}>;
2108
+ userId: TypedField<"belongsTo", UserId, {}>;
2109
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2110
+ }, {
2111
+ card: RelationEntry<"card", {
2112
+ readonly type: "belongsTo";
2113
+ readonly fk: "cardId";
2114
+ }>;
2115
+ user: RelationEntry<"user", {
2116
+ readonly type: "belongsTo";
2117
+ readonly fk: "userId";
2118
+ }>;
2119
+ account: RelationEntry<"account", {
2120
+ readonly type: "belongsTo";
2121
+ readonly fk: "accountId";
2122
+ }>;
2123
+ }, ["id"]>;
2124
+ timeTrackingSum: ModelDesc<"timeTrackingSum", {
2125
+ sumMs: TypedField<"int", number, {}>;
2126
+ runningStartedAt: TypedField<"date", Date, {}>;
2127
+ runningModifyDurationMsBy: TypedField<"int", number, {}>;
2128
+ cardId: TypedField<"belongsTo", CardId, {}>;
2129
+ userId: TypedField<"belongsTo", UserId, {}>;
2130
+ }, {
2131
+ card: RelationEntry<"card", {
2132
+ readonly type: "belongsTo";
2133
+ readonly fk: "cardId";
2134
+ }>;
2135
+ user: RelationEntry<"user", {
2136
+ readonly type: "belongsTo";
2137
+ readonly fk: "userId";
2138
+ }>;
2139
+ }, ["cardId", "userId"]>;
2140
+ userDismissedHint: ModelDesc<"userDismissedHint", {
2141
+ hintKey: TypedField<"string", string, {}>;
2142
+ createdAt: TypedField<"date", Date, {}>;
2143
+ returnAt: TypedField<"date", Date, {}>;
2144
+ userId: TypedField<"belongsTo", UserId, {}>;
2145
+ }, {
2146
+ user: RelationEntry<"user", {
2147
+ readonly type: "belongsTo";
2148
+ readonly fk: "userId";
2149
+ }>;
2150
+ }, ["userId", "hintKey"]>;
2151
+ userEmail: ModelDesc<"userEmail", {
2152
+ id: TypedField<"id", UserEmailId, {}>;
2153
+ email: TypedField<"string", string, {}>;
2154
+ createdAt: TypedField<"date", Date, {}>;
2155
+ isPrimary: TypedField<"bool", boolean, {}>;
2156
+ isVerified: TypedField<"bool", boolean, {}>;
2157
+ userId: TypedField<"belongsTo", UserId, {}>;
2158
+ }, {
2159
+ user: RelationEntry<"user", {
2160
+ readonly type: "belongsTo";
2161
+ readonly fk: "userId";
2162
+ }>;
2163
+ }, ["id"]>;
2164
+ userInvitation: ModelDesc<"userInvitation", {
2165
+ id: TypedField<"id", UserInvitationId, {}>;
2166
+ email: TypedField<"string", string, {}>;
2167
+ role: TypedField<"string", string, {}>;
2168
+ accessToProjectIds: TypedField<"array", any[], {}>;
2169
+ createdAt: TypedField<"date", Date, {}>;
2170
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2171
+ inviterId: TypedField<"belongsTo", UserId, {}>;
2172
+ }, {
2173
+ account: RelationEntry<"account", {
2174
+ readonly type: "belongsTo";
2175
+ readonly fk: "accountId";
2176
+ }>;
2177
+ inviter: RelationEntry<"user", {
2178
+ readonly type: "belongsTo";
2179
+ readonly fk: "inviterId";
2180
+ }>;
2181
+ }, ["id"]>;
2182
+ userInviteCode: ModelDesc<"userInviteCode", {
2183
+ id: TypedField<"id", UserInviteCodeId, {}>;
2184
+ token: TypedField<"string", string, {}>;
2185
+ role: TypedField<"string", string, {}>;
2186
+ useCount: TypedField<"string", string, {}>;
2187
+ isActive: TypedField<"string", string, {}>;
2188
+ accessToProjectIds: TypedField<"array", any[], {}>;
2189
+ validUntil: TypedField<"date", Date, {}>;
2190
+ createdAt: TypedField<"date", Date, {}>;
2191
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2192
+ creatorId: TypedField<"belongsTo", UserId, {}>;
2193
+ }, {
2194
+ account: RelationEntry<"account", {
2195
+ readonly type: "belongsTo";
2196
+ readonly fk: "accountId";
2197
+ }>;
2198
+ creator: RelationEntry<"user", {
2199
+ readonly type: "belongsTo";
2200
+ readonly fk: "creatorId";
2201
+ }>;
2202
+ }, ["id"]>;
2203
+ userOnboarding: ModelDesc<"userOnboarding", {
2204
+ steps: TypedField<"obj", any, {}>;
2205
+ userId: TypedField<"belongsTo", UserId, {}>;
2206
+ }, {
2207
+ user: RelationEntry<"user", {
2208
+ readonly type: "belongsTo";
2209
+ readonly fk: "userId";
2210
+ }>;
2211
+ }, ["userId"]>;
2212
+ userProjectAccess: ModelDesc<"userProjectAccess", {
2213
+ role: TypedField<"string", string, {}>;
2214
+ projectRole: TypedField<"string", string, {}>;
2215
+ userId: TypedField<"belongsTo", UserId, {}>;
2216
+ projectId: TypedField<"belongsTo", ProjectId, {}>;
2217
+ }, {
2218
+ user: RelationEntry<"user", {
2219
+ readonly type: "belongsTo";
2220
+ readonly fk: "userId";
2221
+ }>;
2222
+ project: RelationEntry<"project", {
2223
+ readonly type: "belongsTo";
2224
+ readonly fk: "projectId";
2225
+ }>;
2226
+ }, ["projectId", "userId"]>;
2227
+ userTag: ModelDesc<"userTag", {
2228
+ id: TypedField<"id", UserTagId, {}>;
2229
+ tag: TypedField<"string", string, {}>;
2230
+ createdAt: TypedField<"date", Date, {}>;
2231
+ userId: TypedField<"belongsTo", UserId, {}>;
2232
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2233
+ }, {
2234
+ user: RelationEntry<"user", {
2235
+ readonly type: "belongsTo";
2236
+ readonly fk: "userId";
2237
+ }>;
2238
+ account: RelationEntry<"account", {
2239
+ readonly type: "belongsTo";
2240
+ readonly fk: "accountId";
2241
+ }>;
2242
+ }, ["id"]>;
2243
+ user: ModelDesc<"user", {
2244
+ id: TypedField<"id", UserId, {}>;
2245
+ name: TypedField<"string", string, {}>;
2246
+ fullName: TypedField<"string", string, {
2247
+ readonly optional: true;
2248
+ }>;
2249
+ timezone: TypedField<"string", string, {
2250
+ readonly optional: true;
2251
+ }>;
2252
+ createdAt: TypedField<"date", Date, {}>;
2253
+ hasPassword: TypedField<"bool", boolean, {}>;
2254
+ showCardIdInTimer: TypedField<"bool", boolean, {}>;
2255
+ disableMovingImages: TypedField<"bool", boolean, {}>;
2256
+ autoMeFilterCardLimit: TypedField<"int", number, {
2257
+ readonly optional: true;
2258
+ }>;
2259
+ isIntegration: TypedField<"bool", boolean, {}>;
2260
+ statusColorPalette: TypedField<"string", string, {}>;
2261
+ wantsNewsletter: TypedField<"bool", boolean, {
2262
+ readonly optional: true;
2263
+ }>;
2264
+ wantsDailyDigestMail: TypedField<"bool", boolean, {
2265
+ readonly optional: true;
2266
+ }>;
2267
+ wantsConvoDigestMail: TypedField<"bool", boolean, {
2268
+ readonly optional: true;
2269
+ }>;
2270
+ disableAnimations: TypedField<"bool", boolean, {}>;
2271
+ enableClickToEditCards: TypedField<"bool", boolean, {}>;
2272
+ cdxRole: TypedField<"string", string, {}>;
2273
+ profileImageId: TypedField<"belongsTo", FileId, {
2274
+ readonly optional: true;
2275
+ }>;
2276
+ lastSeenReleaseId: TypedField<"belongsTo", ReleaseId, {}>;
2277
+ }, {
2278
+ profileImage: RelationEntry<"file", {
2279
+ readonly type: "belongsTo";
2280
+ readonly fk: "profileImageId";
2281
+ }>;
2282
+ lastSeenRelease: RelationEntry<"release", {
2283
+ readonly type: "belongsTo";
2284
+ readonly fk: "lastSeenReleaseId";
2285
+ }>;
2286
+ projectOrders: RelationEntry<"projectOrder", {
2287
+ readonly type: "hasMany";
2288
+ }>;
2289
+ projectSelections: RelationEntry<"projectSelection", {
2290
+ readonly type: "hasMany";
2291
+ }>;
2292
+ queueSelections: RelationEntry<"queueSelection", {
2293
+ readonly type: "hasMany";
2294
+ }>;
2295
+ accountRoles: RelationEntry<"accountRole", {
2296
+ readonly type: "hasMany";
2297
+ }>;
2298
+ cardDiffNotifications: RelationEntry<"cardDiffNotification", {
2299
+ readonly type: "hasMany";
2300
+ }>;
2301
+ resolvableNotifications: RelationEntry<"resolvableNotification", {
2302
+ readonly type: "hasMany";
2303
+ }>;
2304
+ publicProjectMembership: RelationEntry<"publicProjectMembership", {
2305
+ readonly type: "hasMany";
2306
+ }>;
2307
+ lastSeenCardUpvotes: RelationEntry<"lastSeenCardUpvote", {
2308
+ readonly type: "hasMany";
2309
+ }>;
2310
+ dueCards: RelationEntry<"dueCard", {
2311
+ readonly type: "hasMany";
2312
+ }>;
2313
+ assigneeDeckAssignments: RelationEntry<"assigneeDeckAssignment", {
2314
+ readonly type: "hasMany";
2315
+ }>;
2316
+ autoFinishedTimeTrackingSegments: RelationEntry<"autoFinishedTimeTrackingSegment", {
2317
+ readonly type: "hasMany";
2318
+ }>;
2319
+ savedSearches: RelationEntry<"savedSearch", {
2320
+ readonly type: "hasMany";
2321
+ }>;
2322
+ activities: RelationEntry<"activity", {
2323
+ readonly type: "hasMany";
2324
+ }>;
2325
+ emails: RelationEntry<"userEmail", {
2326
+ readonly type: "hasMany";
2327
+ }>;
2328
+ tags: RelationEntry<"userTag", {
2329
+ readonly type: "hasMany";
2330
+ }>;
2331
+ unverifiedEmails: RelationEntry<"userEmail", {
2332
+ readonly type: "hasMany";
2333
+ }>;
2334
+ primaryEmail: RelationEntry<"userEmail", {
2335
+ readonly type: "hasOne";
2336
+ }>;
2337
+ pinnedMilestoneNext: RelationEntry<"pinnedMilestone", {
2338
+ readonly type: "hasOne";
2339
+ }>;
2340
+ projectAccess: RelationEntry<"projectUser", {
2341
+ readonly type: "hasMany";
2342
+ }>;
2343
+ explicitProjectAccess: RelationEntry<"projectUser", {
2344
+ readonly type: "hasMany";
2345
+ }>;
2346
+ withProjectAccess: RelationEntry<"userProjectAccess", {
2347
+ readonly type: "hasMany";
2348
+ }>;
2349
+ projectSettings: RelationEntry<"projectUserSetting", {
2350
+ readonly type: "hasMany";
2351
+ }>;
2352
+ accountSettings: RelationEntry<"accountUserSetting", {
2353
+ readonly type: "hasMany";
2354
+ }>;
2355
+ dismissedHints: RelationEntry<"userDismissedHint", {
2356
+ readonly type: "hasMany";
2357
+ }>;
2358
+ slackIntegrations: RelationEntry<"integration", {
2359
+ readonly type: "hasMany";
2360
+ }>;
2361
+ activeTimeTracker: RelationEntry<"activeTimeTracker", {
2362
+ readonly type: "hasOne";
2363
+ }>;
2364
+ participations: RelationEntry<"resolvableParticipant", {
2365
+ readonly type: "hasMany";
2366
+ }>;
2367
+ upvotes: RelationEntry<"cardUpvote", {
2368
+ readonly type: "hasMany";
2369
+ }>;
2370
+ userOnboarding: RelationEntry<"userOnboarding", {
2371
+ readonly type: "hasOne";
2372
+ }>;
2373
+ }, ["id"]>;
2374
+ userReportEmail: ModelDesc<"userReportEmail", {
2375
+ id: TypedField<"id", UserReportEmailId, {}>;
2376
+ email: TypedField<"string", string, {}>;
2377
+ createdAt: TypedField<"date", Date, {}>;
2378
+ enabled: TypedField<"string", string, {}>;
2379
+ userReportSettingId: TypedField<"belongsTo", UserReportSettingId, {}>;
2380
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2381
+ }, {
2382
+ userReportSetting: RelationEntry<"userReportSetting", {
2383
+ readonly type: "belongsTo";
2384
+ readonly fk: "userReportSettingId";
2385
+ }>;
2386
+ account: RelationEntry<"account", {
2387
+ readonly type: "belongsTo";
2388
+ readonly fk: "accountId";
2389
+ }>;
2390
+ }, ["id"]>;
2391
+ userReportSetting: ModelDesc<"userReportSetting", {
2392
+ id: TypedField<"id", UserReportSettingId, {}>;
2393
+ name: TypedField<"string", string, {}>;
2394
+ fileSizeBytesLimit: TypedField<"bigint", bigint, {}>;
2395
+ createdAt: TypedField<"date", Date, {}>;
2396
+ deckMapping: TypedField<"obj", any, {}>;
2397
+ prioMapping: TypedField<"obj", any, {}>;
2398
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2399
+ }, {
2400
+ account: RelationEntry<"account", {
2401
+ readonly type: "belongsTo";
2402
+ readonly fk: "accountId";
2403
+ }>;
2404
+ reportTokens: RelationEntry<"userReportToken", {
2405
+ readonly type: "hasMany";
2406
+ }>;
2407
+ }, ["id"]>;
2408
+ userReportToken: ModelDesc<"userReportToken", {
2409
+ token: TypedField<"id", UserReportTokenId, {}>;
2410
+ label: TypedField<"string", string, {}>;
2411
+ reportCount: TypedField<"int", number, {}>;
2412
+ createdAt: TypedField<"date", Date, {}>;
2413
+ enabled: TypedField<"string", string, {}>;
2414
+ userReportSettingId: TypedField<"belongsTo", UserReportSettingId, {}>;
2415
+ }, {
2416
+ userReportSetting: RelationEntry<"userReportSetting", {
2417
+ readonly type: "belongsTo";
2418
+ readonly fk: "userReportSettingId";
2419
+ }>;
2420
+ }, ["token"]>;
2421
+ visionBoardQuery: ModelDesc<"visionBoardQuery", {
2422
+ id: TypedField<"id", VisionBoardQueryId, {}>;
2423
+ query: TypedField<"obj", any, {}>;
2424
+ lastUsedAt: TypedField<"date", Date, {}>;
2425
+ isStale: TypedField<"bool", boolean, {}>;
2426
+ type: TypedField<"string", string, {}>;
2427
+ payload: TypedField<"obj", any, {}>;
2428
+ createdAt: TypedField<"date", Date, {}>;
2429
+ cardId: TypedField<"belongsTo", CardId, {}>;
2430
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2431
+ }, {
2432
+ card: RelationEntry<"card", {
2433
+ readonly type: "belongsTo";
2434
+ readonly fk: "cardId";
2435
+ }>;
2436
+ account: RelationEntry<"account", {
2437
+ readonly type: "belongsTo";
2438
+ readonly fk: "accountId";
2439
+ }>;
2440
+ }, ["id"]>;
2441
+ visionBoard: ModelDesc<"visionBoard", {
2442
+ id: TypedField<"id", VisionBoardId, {}>;
2443
+ accountSeq: TypedField<"int", number, {}>;
2444
+ createdAt: TypedField<"date", Date, {}>;
2445
+ isDeleted: TypedField<"bool", boolean, {}>;
2446
+ cardId: TypedField<"belongsTo", CardId, {}>;
2447
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2448
+ creatorId: TypedField<"belongsTo", UserId, {}>;
2449
+ }, {
2450
+ card: RelationEntry<"card", {
2451
+ readonly type: "belongsTo";
2452
+ readonly fk: "cardId";
2453
+ }>;
2454
+ account: RelationEntry<"account", {
2455
+ readonly type: "belongsTo";
2456
+ readonly fk: "accountId";
2457
+ }>;
2458
+ creator: RelationEntry<"user", {
2459
+ readonly type: "belongsTo";
2460
+ readonly fk: "creatorId";
2461
+ }>;
2462
+ }, ["id"]>;
2463
+ wizard: ModelDesc<"wizard", {
2464
+ id: TypedField<"id", WizardId, {}>;
2465
+ name: TypedField<"string", string, {}>;
2466
+ currentStep: TypedField<"string", string, {}>;
2467
+ data: TypedField<"obj", any, {}>;
2468
+ createdAt: TypedField<"date", Date, {}>;
2469
+ finishedAt: TypedField<"date", Date, {}>;
2470
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2471
+ }, {
2472
+ account: RelationEntry<"account", {
2473
+ readonly type: "belongsTo";
2474
+ readonly fk: "accountId";
2475
+ }>;
2476
+ }, ["id"]>;
2477
+ workflowItemHistory: ModelDesc<"workflowItemHistory", {
2478
+ diff: TypedField<"obj", any, {}>;
2479
+ versionCreatedAt: TypedField<"date", Date, {}>;
2480
+ version: TypedField<"int", number, {}>;
2481
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2482
+ changerId: TypedField<"belongsTo", UserId, {}>;
2483
+ }, {
2484
+ account: RelationEntry<"account", {
2485
+ readonly type: "belongsTo";
2486
+ readonly fk: "accountId";
2487
+ }>;
2488
+ changer: RelationEntry<"user", {
2489
+ readonly type: "belongsTo";
2490
+ readonly fk: "changerId";
2491
+ }>;
2492
+ }, ["itemId", "version"]>;
2493
+ workflowItem: ModelDesc<"workflowItem", {
2494
+ itemId: TypedField<"id", WorkflowItemId, {}>;
2495
+ version: TypedField<"string", string, {}>;
2496
+ sortOrder: TypedField<"string", string, {}>;
2497
+ sortValue: TypedField<"string", string, {}>;
2498
+ priority: TypedField<"string", string, {
2499
+ readonly optional: true;
2500
+ }>;
2501
+ content: TypedField<"string", string, {}>;
2502
+ createdAt: TypedField<"date", Date, {}>;
2503
+ lastUpdatedAt: TypedField<"date", Date, {}>;
2504
+ tags: TypedField<"array", any[], {}>;
2505
+ masterTags: TypedField<"array", any[], {}>;
2506
+ mentionedUsers: TypedField<"array", any[], {}>;
2507
+ title: TypedField<"string", string, {}>;
2508
+ effort: TypedField<"int", number, {
2509
+ readonly optional: true;
2510
+ }>;
2511
+ label: TypedField<"string", string, {
2512
+ readonly optional: true;
2513
+ }>;
2514
+ checkboxStats: TypedField<"obj", any, {}>;
2515
+ accountSeq: TypedField<"int", number, {}>;
2516
+ checkboxInfo: TypedField<"array", any[], {}>;
2517
+ visibility: TypedField<"string", string, {}>;
2518
+ accountId: TypedField<"belongsTo", AccountId, {}>;
2519
+ deckId: TypedField<"belongsTo", DeckId, {}>;
2520
+ targetDeckId: TypedField<"belongsTo", DeckId, {
2521
+ readonly optional: true;
2522
+ }>;
2523
+ assigneeId: TypedField<"belongsTo", UserId, {
2524
+ readonly optional: true;
2525
+ }>;
2526
+ creatorId: TypedField<"belongsTo", UserId, {}>;
2527
+ }, {
2528
+ account: RelationEntry<"account", {
2529
+ readonly type: "belongsTo";
2530
+ readonly fk: "accountId";
2531
+ }>;
2532
+ deck: RelationEntry<"deck", {
2533
+ readonly type: "belongsTo";
2534
+ readonly fk: "deckId";
2535
+ }>;
2536
+ targetDeck: RelationEntry<"deck", {
2537
+ readonly type: "belongsTo";
2538
+ readonly fk: "targetDeckId";
2539
+ }>;
2540
+ assignee: RelationEntry<"user", {
2541
+ readonly type: "belongsTo";
2542
+ readonly fk: "assigneeId";
2543
+ }>;
2544
+ creator: RelationEntry<"user", {
2545
+ readonly type: "belongsTo";
2546
+ readonly fk: "creatorId";
2547
+ }>;
2548
+ diffs: RelationEntry<"workflowItemHistory", {
2549
+ readonly type: "hasMany";
2550
+ }>;
2551
+ inDeps: RelationEntry<"workflowItem", {
2552
+ readonly type: "hasMany";
2553
+ }>;
2554
+ outDeps: RelationEntry<"workflowItem", {
2555
+ readonly type: "hasMany";
2556
+ }>;
2557
+ }, ["itemId"]>;
2558
+ };
2559
+ constructor(loader: BaseLoader);
2560
+ loadData(model: keyof ModelMap, ids: string[], q: ModelQuery<any, any>, acceptDirty?: boolean, iteration?: number): LoaderResult;
2561
+ onLoaded(model: string, key: string, partialInstance: Record<string, unknown>): void;
2562
+ /**
2563
+ * Recursively check if query data is in cache
2564
+ * Accumulates missing requests in the missingRequests array
2565
+ */
2566
+ private checkQueryRecursive;
2567
+ }
2568
+ //#endregion
2569
+ export { Store };