@codecks/fetch 1.0.1 → 2.0.0
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.
- package/README.md +79 -32
- package/dist/_exploration/api-requester.d.ts +3 -4
- package/dist/_exploration/api-requester.js +2 -2
- package/dist/_exploration/create-hooks.d.ts +4313 -13097
- package/dist/_exploration/create-hooks.js +1 -1
- package/dist/_exploration/loader.d.ts +2 -2
- package/dist/_exploration/loader.js +1 -1
- package/dist/_exploration/store.d.ts +5 -4
- package/dist/_exploration/store.js +1 -1
- package/dist/{collection-utils-KmtGUuXm.js → collection-utils-Ia_ahcpI.js} +2 -1
- package/dist/index-g5c30upI.d.ts +39 -0
- package/dist/index.d.ts +4 -19
- package/dist/index.js +26 -15
- package/dist/{loader-types-fd5tV0FD.d.ts → loader-types-D2Pf8qzH.d.ts} +1 -1
- package/dist/loader-utils-BZWanWDZ.d.ts +2218 -0
- package/dist/query-helpers-DndWBcMF.js +1203 -0
- package/dist/{query-type-BqQ9oX_U.d.ts → query-type-DPNcQFpZ.d.ts} +27 -13
- package/dist/store-ztk8y6Pm.d.ts +1203 -0
- package/package.json +2 -1
- package/schema/actions.md +789 -0
- package/schema/models/account.md +57 -90
- package/schema/models/attachment.md +15 -11
- package/schema/models/card.md +91 -65
- package/schema/models/cardHistory.md +15 -9
- package/schema/models/deck.md +41 -36
- package/schema/models/file.md +13 -15
- package/schema/models/handCard.md +8 -5
- package/schema/models/milestone.md +27 -22
- package/schema/models/milestoneProgress.md +9 -3
- package/schema/models/milestoneProject.md +6 -4
- package/schema/models/project.md +15 -39
- package/schema/models/projectTag.md +12 -7
- package/schema/models/queueEntry.md +12 -8
- package/schema/models/release.md +8 -6
- package/schema/models/resolvable.md +19 -15
- package/schema/models/resolvableEntry.md +16 -13
- package/schema/models/resolvableEntryReaction.md +16 -12
- package/schema/models/sprint.md +35 -25
- package/schema/models/sprintConfig.md +24 -20
- package/schema/models/sprintConfigProgress.md +9 -3
- package/schema/models/sprintProgress.md +9 -3
- package/schema/models/sprintProject.md +7 -5
- package/schema/models/user.md +15 -56
- package/schema/models/workflowItem.md +47 -31
- package/schema/overview.md +40 -93
- package/schema/query-syntax.md +1 -1
- package/schema/types.md +103 -0
- package/dist/_root-BW9uzB79.d.ts +0 -34
- package/dist/index-k-KPWV9R.d.ts +0 -2680
- package/dist/loader-utils-hvdC-xsQ.d.ts +0 -42
- package/dist/query-helpers-iX1fiqLv.js +0 -3062
- package/dist/store-BvEJzUVp.d.ts +0 -2667
- package/schema/models/accountOnboarding.md +0 -15
- package/schema/models/accountOnboardingStep.md +0 -14
- package/schema/models/accountRole.md +0 -19
- package/schema/models/accountUserAchievement.md +0 -17
- package/schema/models/accountUserSetting.md +0 -20
- package/schema/models/activeTimeTracker.md +0 -19
- package/schema/models/activity.md +0 -30
- package/schema/models/affiliateCode.md +0 -30
- package/schema/models/affiliateCodeStat.md +0 -19
- package/schema/models/app.md +0 -10
- package/schema/models/appInstallation.md +0 -19
- package/schema/models/assigneeAssignment.md +0 -18
- package/schema/models/assigneeDeckAssignment.md +0 -20
- package/schema/models/autoFinishedTimeTrackingSegment.md +0 -20
- package/schema/models/cardDiffNotification.md +0 -22
- package/schema/models/cardOrder.md +0 -17
- package/schema/models/cardOrderInDeck.md +0 -18
- package/schema/models/cardPreset.md +0 -19
- package/schema/models/cardSubscription.md +0 -19
- package/schema/models/cardUpvote.md +0 -21
- package/schema/models/cardsEffortHistory.md +0 -9
- package/schema/models/cardsFinishedHistory.md +0 -16
- package/schema/models/cardsStatusHistory.md +0 -9
- package/schema/models/cardsTimeToFinished.md +0 -18
- package/schema/models/dailyDiscordGuildVoteMembership.md +0 -15
- package/schema/models/dailyPublicProjectMembership.md +0 -15
- package/schema/models/deckAssignment.md +0 -18
- package/schema/models/deckGuardian.md +0 -17
- package/schema/models/deckSubscription.md +0 -18
- package/schema/models/discordGuild.md +0 -30
- package/schema/models/discordMember.md +0 -21
- package/schema/models/discordProjectNotification.md +0 -19
- package/schema/models/discordSlashCommand.md +0 -28
- package/schema/models/dueCard.md +0 -18
- package/schema/models/integration.md +0 -23
- package/schema/models/invoice.md +0 -21
- package/schema/models/lastSeenCardUpvote.md +0 -17
- package/schema/models/pinnedMilestone.md +0 -22
- package/schema/models/projectOrder.md +0 -18
- package/schema/models/projectSelection.md +0 -18
- package/schema/models/projectUser.md +0 -18
- package/schema/models/projectUserSetting.md +0 -15
- package/schema/models/publicProjectInfo.md +0 -20
- package/schema/models/publicProjectMembership.md +0 -17
- package/schema/models/publicProjectVisit.md +0 -16
- package/schema/models/queueSelection.md +0 -19
- package/schema/models/resolvableEntryHistory.md +0 -20
- package/schema/models/resolvableNotification.md +0 -30
- package/schema/models/resolvableParticipant.md +0 -25
- package/schema/models/resolvableParticipantHistory.md +0 -23
- package/schema/models/savedSearch.md +0 -18
- package/schema/models/stripeAccountSync.md +0 -29
- package/schema/models/timeTrackingSegment.md +0 -24
- package/schema/models/timeTrackingSum.md +0 -18
- package/schema/models/userDismissedHint.md +0 -16
- package/schema/models/userEmail.md +0 -18
- package/schema/models/userInvitation.md +0 -20
- package/schema/models/userInviteCode.md +0 -23
- package/schema/models/userOnboarding.md +0 -14
- package/schema/models/userProjectAccess.md +0 -17
- package/schema/models/userReportEmail.md +0 -19
- package/schema/models/userReportSetting.md +0 -23
- package/schema/models/userReportToken.md +0 -18
- package/schema/models/userTag.md +0 -18
- package/schema/models/visionBoard.md +0 -21
- package/schema/models/visionBoardQuery.md +0 -22
- package/schema/models/wizard.md +0 -19
- package/schema/models/workflowItemHistory.md +0 -18
package/schema/models/account.md
CHANGED
|
@@ -1,104 +1,71 @@
|
|
|
1
1
|
# account
|
|
2
2
|
|
|
3
|
+
An organization and its settings.
|
|
4
|
+
|
|
3
5
|
Key: `id`
|
|
4
6
|
|
|
5
7
|
## Fields
|
|
6
8
|
|
|
7
|
-
- `
|
|
8
|
-
|
|
9
|
-
- `
|
|
10
|
-
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
13
|
-
- `
|
|
14
|
-
- `
|
|
15
|
-
|
|
16
|
-
- `
|
|
17
|
-
|
|
18
|
-
- `
|
|
19
|
-
|
|
20
|
-
- `
|
|
21
|
-
- `
|
|
22
|
-
|
|
23
|
-
- `milestonesEnabled`:
|
|
24
|
-
- `
|
|
25
|
-
- `priorityLabels`:
|
|
26
|
-
|
|
27
|
-
- `
|
|
28
|
-
|
|
29
|
-
- `
|
|
30
|
-
|
|
31
|
-
- `
|
|
32
|
-
|
|
33
|
-
- `
|
|
34
|
-
|
|
35
|
-
- `
|
|
36
|
-
|
|
37
|
-
- `
|
|
38
|
-
|
|
39
|
-
- `
|
|
40
|
-
- `
|
|
41
|
-
|
|
42
|
-
- `
|
|
43
|
-
|
|
44
|
-
- `offeringTrial`: boolean
|
|
45
|
-
- `coupon`: object, optional
|
|
46
|
-
- `hideCompletedCardCountForDecks`: boolean
|
|
47
|
-
- `visionBoardEnabled`: boolean
|
|
48
|
-
- `fallbackEffort`: number
|
|
49
|
-
- `timelineScaleType`: string
|
|
50
|
-
- `startWeekday`: string
|
|
51
|
-
- `disabledById`: string (foreign key ID) → user, optional
|
|
9
|
+
- `allowInheritHeroCover`: `boolean` — **preview**
|
|
10
|
+
`true` makes the web app show a hero card's cover image on its sub cards, in place of their own.
|
|
11
|
+
- `attachmentCoverMode`: `"none" | "first" | "last" | (string & {})` — **preview**
|
|
12
|
+
Which uploaded image attachment becomes the card's `coverFile`. `first` only sets it if the card has no cover yet, `last` always uses the newest image, `none` never sets it.
|
|
13
|
+
- `createdAt`: `Date` (sent as an ISO timestamp)
|
|
14
|
+
- `dependenciesEnabled`: `boolean`
|
|
15
|
+
- `dueDateEnabled`: `boolean`
|
|
16
|
+
- `effortScale`: `number[]`
|
|
17
|
+
The effort values the web app offers for a card. A card's `effort` may still be any other number.
|
|
18
|
+
- `fallbackEffort`: `number` — **preview**
|
|
19
|
+
The effort the web app counts for cards without an `effort`, e.g. in charts, hero cards and run capacity.
|
|
20
|
+
- `hideCompletedCardCountForDecks`: `boolean` — **preview**
|
|
21
|
+
`true` hides the number of done cards on decks in the web app.
|
|
22
|
+
- `id`: `AccountId`
|
|
23
|
+
- `maxHandSlotCount`: `number` — **preview**
|
|
24
|
+
How many cards that aren't done each user may have in their Hand, between 7 and 28. `handQueue/addCardsToHand`, `handQueue/setCardOrders` and `cards/create` with `putInQueue` fail beyond it. Starting a card and hand sync can still go beyond it.
|
|
25
|
+
- `milestonesEnabled`: `boolean`
|
|
26
|
+
- `name`: `string`
|
|
27
|
+
- `priorityLabels`: `{a: string; b: string; c: string}`
|
|
28
|
+
The names the web app shows for the card priorities `a`, `b` and `c`.
|
|
29
|
+
- `sprintsEnabled`: `boolean`
|
|
30
|
+
Whether the organization uses runs.
|
|
31
|
+
- `startWeekday`: [`StartWeekday`](../types.md#startweekday)
|
|
32
|
+
The first day of the week in the calendar and timeline. Users can override it for themselves.
|
|
33
|
+
- `statusChangeDurations`: `{snooze: number; archive: number | null}` — **preview**
|
|
34
|
+
In seconds. A started card without changes for `snooze` seconds becomes `snoozing`. A done card without changes and open comment threads for `archive` seconds gets archived. `archive` is `null` when done cards never get archived.
|
|
35
|
+
- `subdomain`: `string`
|
|
36
|
+
The part before `.codecks.io` in the organization's web address.
|
|
37
|
+
- `timeTrackingMode`: [`TimeTrackingMode`](../types.md#timetrackingmode) — **preview**
|
|
38
|
+
`none` turns time tracking off. `manual` allows only manual time entries. `strict` also adds a timer that users start with the play button on a card.
|
|
39
|
+
- `timelineScaleType`: [`TimelineScaleType`](../types.md#timelinescaletype) — **preview**
|
|
40
|
+
Whether the timeline shows days or weeks. Users can override it for themselves.
|
|
41
|
+
- `visionBoardEnabled`: `boolean` — **preview**
|
|
42
|
+
- `workdays`: [`Workdays`](../types.md#workdays)
|
|
43
|
+
The days the team works. The web app only counts these days, e.g. for the days left until a milestone.
|
|
44
|
+
- `workflowMode`: [`WorkflowMode`](../types.md#workflowmode) — **preview**
|
|
45
|
+
`journeys` when the organization uses journeys, `only_parent_cards` when not.
|
|
52
46
|
|
|
53
47
|
## Relations
|
|
54
48
|
|
|
55
|
-
### belongsTo
|
|
56
|
-
|
|
57
|
-
- `disabledBy` → [user](user.md) (via `disabledById`)
|
|
58
|
-
|
|
59
|
-
### hasOne
|
|
60
|
-
|
|
61
|
-
- `githubIntegration` → [integration](integration.md)
|
|
62
|
-
- `slackIntegration` → [integration](integration.md)
|
|
63
|
-
- `stripeAccountSync` → [stripeAccountSync](stripeAccountSync.md)
|
|
64
|
-
- `accountOnboarding` → [accountOnboarding](accountOnboarding.md)
|
|
65
|
-
|
|
66
49
|
### hasMany
|
|
67
50
|
|
|
68
|
-
- `
|
|
69
|
-
- `invoices` → [invoice](invoice.md)
|
|
70
|
-
- `cardPresets` → [cardPreset](cardPreset.md)
|
|
51
|
+
- `archivedProjects` → [project](project.md)
|
|
71
52
|
- `attachments` → [attachment](attachment.md)
|
|
72
|
-
- `
|
|
73
|
-
- `timeTrackingSegments` → [timeTrackingSegment](timeTrackingSegment.md)
|
|
74
|
-
- `workflowItems` → [workflowItem](workflowItem.md)
|
|
75
|
-
- `deckAssignments` → [deckAssignment](deckAssignment.md)
|
|
76
|
-
- `assigneeAssignments` → [assigneeAssignment](assigneeAssignment.md)
|
|
77
|
-
- `assigneeDeckAssignments` → [assigneeDeckAssignment](assigneeDeckAssignment.md)
|
|
78
|
-
- `wizards` → [wizard](wizard.md)
|
|
79
|
-
- `milestones` → [milestone](milestone.md)
|
|
80
|
-
- `sprints` → [sprint](sprint.md)
|
|
81
|
-
- `sprintConfigs` → [sprintConfig](sprintConfig.md)
|
|
82
|
-
- `handCards` → [handCard](handCard.md)
|
|
83
|
-
- `resolvables` → [resolvable](resolvable.md)
|
|
84
|
-
- `cardUpvotes` → [cardUpvote](cardUpvote.md)
|
|
85
|
-
- `resolvableParticipants` → [resolvableParticipant](resolvableParticipant.md)
|
|
86
|
-
- `userReportSettings` → [userReportSetting](userReportSetting.md)
|
|
87
|
-
- `cardOrders` → [cardOrder](cardOrder.md)
|
|
88
|
-
- `accountUserAchievements` → [accountUserAchievement](accountUserAchievement.md)
|
|
89
|
-
- `userInviteCodes` → [userInviteCode](userInviteCode.md)
|
|
90
|
-
- `visionBoards` → [visionBoard](visionBoard.md)
|
|
91
|
-
- `deckSubscriptions` → [deckSubscription](deckSubscription.md)
|
|
92
|
-
- `appInstallations` → [appInstallation](appInstallation.md)
|
|
93
|
-
- `files` → [file](file.md)
|
|
53
|
+
- `cards` → [card](card.md)
|
|
94
54
|
- `decks` → [deck](deck.md)
|
|
95
|
-
|
|
96
|
-
- `
|
|
97
|
-
- `
|
|
55
|
+
Without deleted decks.
|
|
56
|
+
- `files` → [file](file.md)
|
|
57
|
+
- `handCards` → [handCard](handCard.md)
|
|
58
|
+
The bookmarked cards of all users.
|
|
59
|
+
- `milestones` → [milestone](milestone.md)
|
|
98
60
|
- `projects` → [project](project.md)
|
|
99
|
-
|
|
100
|
-
- `
|
|
101
|
-
|
|
102
|
-
- `
|
|
103
|
-
|
|
104
|
-
- `
|
|
61
|
+
Projects that are neither archived nor deleted.
|
|
62
|
+
- `queueEntries` → [queueEntry](queueEntry.md)
|
|
63
|
+
The cards in the Card Hand of all users.
|
|
64
|
+
- `resolvables` → [resolvable](resolvable.md)
|
|
65
|
+
The comment threads of all cards.
|
|
66
|
+
- `sprintConfigs` → [sprintConfig](sprintConfig.md)
|
|
67
|
+
The organization's run configs.
|
|
68
|
+
- `sprints` → [sprint](sprint.md)
|
|
69
|
+
The organization's runs.
|
|
70
|
+
- `workflowItems` → [workflowItem](workflowItem.md) — **preview**
|
|
71
|
+
The organization's journey steps.
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
# attachment
|
|
2
2
|
|
|
3
|
+
A file attached to a card.
|
|
4
|
+
|
|
3
5
|
Key: `id`
|
|
4
6
|
|
|
5
7
|
## Fields
|
|
6
8
|
|
|
7
|
-
- `
|
|
8
|
-
- `
|
|
9
|
-
- `
|
|
10
|
-
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
13
|
-
- `
|
|
14
|
-
- `
|
|
9
|
+
- `accountId`: [`AccountId`](account.md), foreign key of `account`
|
|
10
|
+
- `cardId`: [`CardId`](card.md), foreign key of `card`
|
|
11
|
+
- `content`: `string`
|
|
12
|
+
The attachment's label as markdown. It starts as the file name.
|
|
13
|
+
- `createdAt`: `Date` (sent as an ISO timestamp)
|
|
14
|
+
- `creatorId`: [`UserId`](user.md)` | null`, foreign key of `creator`
|
|
15
|
+
- `fileId`: [`FileId`](file.md), foreign key of `file`
|
|
16
|
+
- `id`: `AttachmentId`
|
|
17
|
+
- `title`: `string`
|
|
18
|
+
The first line of `content` as plain text, cut to 80 characters.
|
|
15
19
|
|
|
16
20
|
## Relations
|
|
17
21
|
|
|
18
22
|
### belongsTo
|
|
19
23
|
|
|
20
|
-
- `file` → [file](file.md) (via `fileId`)
|
|
21
|
-
- `card` → [card](card.md) (via `cardId`)
|
|
22
24
|
- `account` → [account](account.md) (via `accountId`)
|
|
23
|
-
- `
|
|
25
|
+
- `card` → [card](card.md) (via `cardId`)
|
|
26
|
+
- `creator` → [user](user.md) (via `creatorId`), optional
|
|
27
|
+
- `file` → [file](file.md) (via `fileId`)
|
package/schema/models/card.md
CHANGED
|
@@ -1,82 +1,108 @@
|
|
|
1
1
|
# card
|
|
2
2
|
|
|
3
|
+
A task or a document card when `isDoc` is set or a hero card if it contains sub cards.
|
|
4
|
+
The card's color is derived from `status`, `visibility`, `isDoc` and whether it has sub cards or open block or review conversations.
|
|
5
|
+
|
|
3
6
|
Key: `cardId`
|
|
4
7
|
|
|
5
8
|
## Fields
|
|
6
9
|
|
|
7
|
-
- `
|
|
8
|
-
- `
|
|
9
|
-
|
|
10
|
-
- `
|
|
11
|
-
|
|
12
|
-
- `
|
|
13
|
-
- `
|
|
14
|
-
|
|
15
|
-
- `
|
|
16
|
-
|
|
17
|
-
- `
|
|
18
|
-
|
|
19
|
-
- `
|
|
20
|
-
|
|
21
|
-
- `
|
|
22
|
-
- `
|
|
23
|
-
|
|
24
|
-
- `
|
|
25
|
-
|
|
26
|
-
- `
|
|
27
|
-
|
|
28
|
-
- `
|
|
29
|
-
- `
|
|
30
|
-
|
|
31
|
-
- `
|
|
32
|
-
|
|
33
|
-
- `
|
|
34
|
-
|
|
35
|
-
- `
|
|
36
|
-
|
|
37
|
-
- `
|
|
38
|
-
|
|
39
|
-
- `
|
|
40
|
-
|
|
41
|
-
- `
|
|
42
|
-
|
|
43
|
-
- `
|
|
10
|
+
- `accountId`: [`AccountId`](account.md), foreign key of `account`
|
|
11
|
+
- `accountSeq`: `number`
|
|
12
|
+
The card's number within the organization. It's stored as a plain number starting at 1. The web app shows it encoded as a short code after a `$`, like `$12a`. Check [this gist](https://gist.github.com/danielberndt/19857421171dbb07a3681f0ea6634049) for how to translate the number into the shown string and vice versa.
|
|
13
|
+
- `assigneeId`: [`UserId`](user.md)` | null`, foreign key of `assignee`
|
|
14
|
+
The card's owner.
|
|
15
|
+
- `cardId`: `CardId`
|
|
16
|
+
- `checkboxInfo`: [`Checkbox`](../types.md#checkbox)`[]` — **preview**
|
|
17
|
+
The checkboxes in `content`, in order.
|
|
18
|
+
- `checkboxStats`: [`CheckboxStats`](../types.md#checkboxstats)
|
|
19
|
+
How many checkboxes `content` has, and how many of them are checked.
|
|
20
|
+
- `content`: `string`
|
|
21
|
+
The card's text as markdown. Its first line is the `title`. Tags, mentions, checkboxes and card references in it fill `tags`, `masterTags`, `mentionedUsers`, `checkboxStats`, `checkboxInfo` and `cardReferences`.
|
|
22
|
+
- `coverFileId`: [`FileId`](file.md)` | null`, foreign key of `coverFile`
|
|
23
|
+
The image shown on the card's front.
|
|
24
|
+
- `createdAt`: `Date` (sent as an ISO timestamp)
|
|
25
|
+
- `creatorId`: [`UserId`](user.md)` | null`, foreign key of `creator`
|
|
26
|
+
`null` for cards an import created.
|
|
27
|
+
- `deckId`: [`DeckId`](deck.md)` | null`, foreign key of `deck`
|
|
28
|
+
`null` for a private card, which only its creator sees.
|
|
29
|
+
- `derivedStatus`: [`DerivedStatus`](../types.md#derivedstatus) — **preview**
|
|
30
|
+
The state the web app shows, combining `status`, `visibility`, `isDoc`, open review and blocker threads, the assignee and whether it's a hero card: e.g. `blocked` for an open blocker thread, `unassigned` for a not started card without an assignee.
|
|
31
|
+
- `dueDate`: `{year: number; month: number; day: number} | null` (sent as `YYYY-MM-DD`)
|
|
32
|
+
- `effort`: `number | null`
|
|
33
|
+
On the organization's scale, `account.effortScale`.
|
|
34
|
+
- `hasBlockingDeps`: `boolean` — **preview**
|
|
35
|
+
One of `inDeps` isn't done yet.
|
|
36
|
+
- `isBlockingDep`: `boolean` — **preview**
|
|
37
|
+
The card isn't done yet, and one of its `outDeps` isn't either.
|
|
38
|
+
- `isDoc`: `boolean | null`
|
|
39
|
+
`true` for a document card: it holds information instead of a task, so it's never started or done.
|
|
40
|
+
- `lastUpdatedAt`: `Date` (sent as an ISO timestamp)
|
|
41
|
+
When the card last changed.
|
|
42
|
+
- `masterTags`: `string[]`
|
|
43
|
+
The card's project tags: the tags from the project's tag list, whether written as `#tag` in `content` or set directly, plus the deck's auto-tag. Writing them may change `content`.
|
|
44
|
+
- `mentionedUsers`: [`UserId`](user.md)`[]` — **preview**
|
|
45
|
+
The users mentioned in `content`.
|
|
46
|
+
- `milestoneId`: [`MilestoneId`](milestone.md)` | null`, foreign key of `milestone`
|
|
47
|
+
- `parentCardId`: `CardId | null`, foreign key of `parentCard`
|
|
48
|
+
The hero card this card is a sub card of.
|
|
49
|
+
- `priority`: [`Priority`](../types.md#priority)` | null`
|
|
50
|
+
`a`, `b` or `c`: High, Medium and Low, unless the organization renamed them (`account.priorityLabels`).
|
|
51
|
+
- `sourceWorkflowItemId`: [`WorkflowItemId`](workflowItem.md)` | null`, foreign key of `sourceWorkflowItem` — **preview**
|
|
52
|
+
The journey step the card was created from.
|
|
53
|
+
- `sprintId`: [`SprintId`](sprint.md)` | null`, foreign key of `sprint`
|
|
54
|
+
The run the card is planned into.
|
|
55
|
+
- `status`: `"not_started" | "started" | "snoozing" | "done" | (string & {})`
|
|
56
|
+
`snoozing` is only set on a `started` card that nobody changed for the organization's snooze time (`account.statusChangeDurations`). It can't be written. `derivedStatus` is the state the web app shows.
|
|
57
|
+
- `tags`: `string[]`
|
|
58
|
+
Every tag on the card: the `#tags` in `content` and the `masterTags`, each once.
|
|
59
|
+
- `title`: `string`
|
|
60
|
+
The first line of `content` as plain text, without markdown and cut to 80 characters. Write `content` to change it.
|
|
61
|
+
- `version`: `number`
|
|
62
|
+
Goes up with every change to the card.
|
|
63
|
+
- `visibility`: [`CardVisibility`](../types.md#cardvisibility)
|
|
64
|
+
`archived` cards are put away, `deleted` ones are in the trash. Both stay readable.
|
|
44
65
|
|
|
45
66
|
## Relations
|
|
46
67
|
|
|
47
68
|
### belongsTo
|
|
48
69
|
|
|
49
70
|
- `account` → [account](account.md) (via `accountId`)
|
|
50
|
-
- `
|
|
51
|
-
|
|
52
|
-
- `
|
|
53
|
-
|
|
54
|
-
- `
|
|
55
|
-
|
|
56
|
-
- `
|
|
57
|
-
|
|
58
|
-
- `
|
|
59
|
-
- `
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
- `assignee` → [user](user.md) (via `assigneeId`), optional
|
|
72
|
+
The card's owner.
|
|
73
|
+
- `coverFile` → [file](file.md) (via `coverFileId`), optional
|
|
74
|
+
The image shown on the card's front.
|
|
75
|
+
- `creator` → [user](user.md) (via `creatorId`), optional
|
|
76
|
+
`null` for cards an import created.
|
|
77
|
+
- `deck` → [deck](deck.md) (via `deckId`), optional
|
|
78
|
+
`null` for a private card, which only its creator sees.
|
|
79
|
+
- `milestone` → [milestone](milestone.md) (via `milestoneId`), optional
|
|
80
|
+
- `parentCard` → [card](card.md) (via `parentCardId`), optional
|
|
81
|
+
The hero card this card is a sub card of.
|
|
82
|
+
- `sourceWorkflowItem` → [workflowItem](workflowItem.md) (via `sourceWorkflowItemId`), optional — **preview**
|
|
83
|
+
The journey step the card was created from.
|
|
84
|
+
- `sprint` → [sprint](sprint.md) (via `sprintId`), optional
|
|
85
|
+
The run the card is planned into.
|
|
65
86
|
|
|
66
87
|
### hasMany
|
|
67
88
|
|
|
68
|
-
- `resolvables` → [resolvable](resolvable.md)
|
|
69
|
-
- `handCards` → [handCard](handCard.md)
|
|
70
|
-
- `timeTrackingSegments` → [timeTrackingSegment](timeTrackingSegment.md)
|
|
71
|
-
- `cardSubscriptions` → [cardSubscription](cardSubscription.md)
|
|
72
|
-
- `cardOrders` → [cardOrder](cardOrder.md)
|
|
73
|
-
- `resolvableEntries` → [resolvableEntry](resolvableEntry.md)
|
|
74
|
-
- `queueEntries` → [queueEntry](queueEntry.md)
|
|
75
89
|
- `attachments` → [attachment](attachment.md) — `fkAsArray` (plain selection + `count`/`exists` only; no `filter`/`orderBy`/`limit`/`offset`/`first`)
|
|
76
|
-
|
|
77
|
-
- `
|
|
90
|
+
In the order the card shows them.
|
|
91
|
+
- `cardReferences` → [card](card.md) — `fkAsArray` (plain selection + `count`/`exists` only; no `filter`/`orderBy`/`limit`/`offset`/`first`) — **preview**
|
|
92
|
+
The cards that `content` links to.
|
|
78
93
|
- `childCards` → [card](card.md) — `fkAsArray` (plain selection + `count`/`exists` only; no `filter`/`orderBy`/`limit`/`offset`/`first`)
|
|
79
|
-
|
|
80
|
-
- `
|
|
81
|
-
|
|
82
|
-
- `
|
|
94
|
+
A hero card's sub cards, in order.
|
|
95
|
+
- `diffs` → [cardHistory](cardHistory.md) — **preview**
|
|
96
|
+
The card's change history.
|
|
97
|
+
- `handCards` → [handCard](handCard.md)
|
|
98
|
+
One entry per user who bookmarked the card.
|
|
99
|
+
- `inDeps` → [card](card.md) — `fkAsArray` (plain selection + `count`/`exists` only; no `filter`/`orderBy`/`limit`/`offset`/`first`) — **preview**
|
|
100
|
+
The cards that have to be done before this one.
|
|
101
|
+
- `outDeps` → [card](card.md) — `fkAsArray` (plain selection + `count`/`exists` only; no `filter`/`orderBy`/`limit`/`offset`/`first`) — **preview**
|
|
102
|
+
The cards that wait for this one. The counterpart of their `inDeps`.
|
|
103
|
+
- `queueEntries` → [queueEntry](queueEntry.md)
|
|
104
|
+
One entry per user who has the card in their Card Hand.
|
|
105
|
+
- `resolvableEntries` → [resolvableEntry](resolvableEntry.md)
|
|
106
|
+
Every comment on the card, across its threads.
|
|
107
|
+
- `resolvables` → [resolvable](resolvable.md)
|
|
108
|
+
The card's comment threads, including reviews and blockers (`context`).
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
# cardHistory
|
|
2
2
|
|
|
3
|
+
One version of a card and what changed in it. The web app shows these in the card's history.
|
|
4
|
+
|
|
5
|
+
**preview**: this model may change in any release. Each change is listed in the [API changelog](https://manual.codecks.io/api-changelog/).
|
|
6
|
+
|
|
3
7
|
Key: `cardId`, `version`
|
|
4
8
|
|
|
5
9
|
## Fields
|
|
6
10
|
|
|
7
|
-
- `
|
|
8
|
-
- `
|
|
9
|
-
- `
|
|
10
|
-
- `
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
11
|
+
- `accountId`: [`AccountId`](account.md), foreign key of `account` — **preview**
|
|
12
|
+
- `cardId`: [`CardId`](card.md), foreign key of `card` — **preview**
|
|
13
|
+
- `changerId`: [`UserId`](user.md)` | null`, foreign key of `changer` — **preview**
|
|
14
|
+
- `diff`: `{[key: string]: unknown}` — **preview**
|
|
15
|
+
The changed fields: `[old, new]` for single values, `{"+": added, "-": removed}` for lists, and an encoded text diff for `content` and `title`.
|
|
16
|
+
- `version`: `number` — **preview**
|
|
17
|
+
The card's `version` after this change.
|
|
18
|
+
- `versionCreatedAt`: `Date` (sent as an ISO timestamp) — **preview**
|
|
13
19
|
|
|
14
20
|
## Relations
|
|
15
21
|
|
|
16
22
|
### belongsTo
|
|
17
23
|
|
|
18
|
-
- `account` → [account](account.md) (via `accountId`)
|
|
19
|
-
- `card` → [card](card.md) (via `cardId`)
|
|
20
|
-
- `changer` → [user](user.md) (via `changerId`)
|
|
24
|
+
- `account` → [account](account.md) (via `accountId`) — **preview**
|
|
25
|
+
- `card` → [card](card.md) (via `cardId`) — **preview**
|
|
26
|
+
- `changer` → [user](user.md) (via `changerId`), optional — **preview**
|
package/schema/models/deck.md
CHANGED
|
@@ -1,53 +1,58 @@
|
|
|
1
1
|
# deck
|
|
2
2
|
|
|
3
|
+
A list of cards within a project. `deckType` says which kind of cards it is meant for.
|
|
4
|
+
|
|
3
5
|
Key: `id`
|
|
4
6
|
|
|
5
7
|
## Fields
|
|
6
8
|
|
|
7
|
-
- `
|
|
8
|
-
- `
|
|
9
|
-
|
|
10
|
-
- `
|
|
11
|
-
|
|
12
|
-
- `
|
|
13
|
-
- `
|
|
14
|
-
- `
|
|
15
|
-
- `
|
|
16
|
-
|
|
17
|
-
- `defaultCard`:
|
|
18
|
-
|
|
19
|
-
- `
|
|
20
|
-
|
|
21
|
-
- `
|
|
22
|
-
- `
|
|
23
|
-
|
|
24
|
-
- `
|
|
25
|
-
|
|
26
|
-
- `
|
|
27
|
-
- `
|
|
28
|
-
- `
|
|
29
|
-
|
|
30
|
-
- `
|
|
31
|
-
|
|
32
|
-
- `
|
|
33
|
-
- `
|
|
9
|
+
- `accountId`: [`AccountId`](account.md), foreign key of `account`
|
|
10
|
+
- `accountSeq`: `number`
|
|
11
|
+
The deck's number within the organization. The web app uses it in the deck's URL, like `/decks/12-my-deck`.
|
|
12
|
+
- `coverColor`: `string | null` — **preview**
|
|
13
|
+
A hex color like `#ff8800`.
|
|
14
|
+
- `coverFileId`: [`FileId`](file.md)` | null`, foreign key of `coverFile` — **preview**
|
|
15
|
+
- `createdAt`: `Date` (sent as an ISO timestamp)
|
|
16
|
+
- `creatorId`: [`UserId`](user.md), foreign key of `creator`
|
|
17
|
+
- `deckType`: `"task" | "hero" | "doc" | "mixed" | (string & {})`
|
|
18
|
+
The web app calls these Task (`task`), Asset (`hero`), Knowledge (`doc`) and Mixed (`mixed`) decks. Cards in a `hero` deck count as hero cards unless they are docs or sub cards. A started card that moves into a `hero` or `doc` deck goes back to `not_started`.
|
|
19
|
+
- `defaultCard`: [`DefaultCard`](../types.md#defaultcard) — **preview**
|
|
20
|
+
The deck's Template Card. The web app fills in these values when you create a card in this deck. `cards/create` doesn't use them.
|
|
21
|
+
- `defaultProjectTagId`: [`ProjectTagId`](projectTag.md)` | null`, foreign key of `defaultProjectTag`
|
|
22
|
+
The deck's auto tag. Cards that are created in or moved into the deck get this project tag.
|
|
23
|
+
- `description`: `string`
|
|
24
|
+
- `handSyncEnabled`: `boolean` — **preview**
|
|
25
|
+
Cards in this deck that have an assignee go into the assignee's Hand. This happens when a card is created, moved into the deck or gets a new assignee.
|
|
26
|
+
- `hasGuardians`: `boolean` — **preview**
|
|
27
|
+
The deck has [guardians](https://manual.codecks.io/guardians/). Then only guardians, producers and admins may mark its cards as done or not done, archive, delete, restore or move them.
|
|
28
|
+
- `id`: `DeckId`
|
|
29
|
+
- `isDeleted`: `boolean`
|
|
30
|
+
- `manualOrderLabels`: `(string | null)[]` — **preview**
|
|
31
|
+
The names of the zones in the deck's manual order, in order. `null` is a zone without a name. A card's zone is the `label` of its `cardOrder` in the `deck` context.
|
|
32
|
+
- `milestoneId`: [`MilestoneId`](milestone.md)` | null`, foreign key of `milestone`
|
|
33
|
+
Setting it also puts the deck's cards into this milestone.
|
|
34
|
+
- `projectId`: [`ProjectId`](project.md), foreign key of `project`
|
|
35
|
+
- `sortValue`: `string` — **preview**
|
|
36
|
+
Decks within a space are sorted by it. Change it with `decks/addToSpaceAfter` or `decks/addToSpaceBefore`.
|
|
37
|
+
- `spaceId`: `number | null` — **preview**
|
|
38
|
+
The space of the project the deck is in, one of the ids in `project.spaces`.
|
|
39
|
+
- `title`: `string`
|
|
34
40
|
|
|
35
41
|
## Relations
|
|
36
42
|
|
|
37
43
|
### belongsTo
|
|
38
44
|
|
|
39
|
-
- `project` → [project](project.md) (via `projectId`)
|
|
40
45
|
- `account` → [account](account.md) (via `accountId`)
|
|
41
|
-
- `
|
|
46
|
+
- `coverFile` → [file](file.md) (via `coverFileId`), optional — **preview**
|
|
42
47
|
- `creator` → [user](user.md) (via `creatorId`)
|
|
43
|
-
- `
|
|
44
|
-
|
|
45
|
-
- `
|
|
48
|
+
- `defaultProjectTag` → [projectTag](projectTag.md) (via `defaultProjectTagId`), optional
|
|
49
|
+
The deck's auto tag. Cards that are created in or moved into the deck get this project tag.
|
|
50
|
+
- `milestone` → [milestone](milestone.md) (via `milestoneId`), optional
|
|
51
|
+
Setting it also puts the deck's cards into this milestone.
|
|
52
|
+
- `project` → [project](project.md) (via `projectId`)
|
|
46
53
|
|
|
47
54
|
### hasMany
|
|
48
55
|
|
|
49
56
|
- `cards` → [card](card.md)
|
|
50
|
-
- `workflowItems` → [workflowItem](workflowItem.md)
|
|
51
|
-
|
|
52
|
-
- `activities` → [activity](activity.md)
|
|
53
|
-
- `guardians` → [deckGuardian](deckGuardian.md)
|
|
57
|
+
- `workflowItems` → [workflowItem](workflowItem.md) — **preview**
|
|
58
|
+
The steps of the deck's journey.
|
package/schema/models/file.md
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
# file
|
|
2
2
|
|
|
3
|
+
An uploaded file, like a card attachment or a cover image.
|
|
4
|
+
|
|
3
5
|
Key: `id`
|
|
4
6
|
|
|
5
7
|
## Fields
|
|
6
8
|
|
|
7
|
-
- `
|
|
8
|
-
- `
|
|
9
|
-
- `
|
|
10
|
-
- `
|
|
11
|
-
- `
|
|
12
|
-
|
|
13
|
-
- `
|
|
14
|
-
- `
|
|
15
|
-
|
|
16
|
-
- `accountId`: string (foreign key ID) → account
|
|
17
|
-
- `uploaderId`: string (foreign key ID) → user
|
|
18
|
-
- `deletedById`: string (foreign key ID) → user
|
|
9
|
+
- `accountId`: [`AccountId`](account.md)` | null`, foreign key of `account`
|
|
10
|
+
- `createdAt`: `Date` (sent as an ISO timestamp)
|
|
11
|
+
- `id`: `FileId`
|
|
12
|
+
- `name`: `string`
|
|
13
|
+
- `size`: `number`
|
|
14
|
+
In bytes. `0` once the file is deleted.
|
|
15
|
+
- `uploaderId`: [`UserId`](user.md)` | null`, foreign key of `uploader`
|
|
16
|
+
- `url`: `string`
|
|
17
|
+
Where to download the file. `""` once the file is deleted.
|
|
19
18
|
|
|
20
19
|
## Relations
|
|
21
20
|
|
|
22
21
|
### belongsTo
|
|
23
22
|
|
|
24
|
-
- `account` → [account](account.md) (via `accountId`)
|
|
25
|
-
- `uploader` → [user](user.md) (via `uploaderId`)
|
|
26
|
-
- `deletedBy` → [user](user.md) (via `deletedById`)
|
|
23
|
+
- `account` → [account](account.md) (via `accountId`), optional
|
|
24
|
+
- `uploader` → [user](user.md) (via `uploaderId`), optional
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
# handCard
|
|
2
2
|
|
|
3
|
+
A card a user bookmarked. Deleting the card removes its bookmarks.
|
|
4
|
+
|
|
3
5
|
Key: `cardId`, `userId`, `accountId`
|
|
4
6
|
|
|
5
7
|
## Fields
|
|
6
8
|
|
|
7
|
-
- `
|
|
8
|
-
- `
|
|
9
|
-
- `
|
|
10
|
-
|
|
9
|
+
- `accountId`: [`AccountId`](account.md), foreign key of `account`
|
|
10
|
+
- `cardId`: [`CardId`](card.md), foreign key of `card`
|
|
11
|
+
- `sortIndex`: `number`
|
|
12
|
+
Bookmarks are listed by ascending `sortIndex`. There may be gaps.
|
|
13
|
+
- `userId`: [`UserId`](user.md), foreign key of `user`
|
|
11
14
|
|
|
12
15
|
## Relations
|
|
13
16
|
|
|
14
17
|
### belongsTo
|
|
15
18
|
|
|
16
|
-
- `user` → [user](user.md) (via `userId`)
|
|
17
19
|
- `account` → [account](account.md) (via `accountId`)
|
|
18
20
|
- `card` → [card](card.md) (via `cardId`)
|
|
21
|
+
- `user` → [user](user.md) (via `userId`)
|