@doist/todoist-api-typescript 6.8.0 → 6.9.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.
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
14
  exports.TodoistApi = void 0;
4
15
  const rest_client_1 = require("./rest-client");
@@ -1074,8 +1085,16 @@ class TodoistApi {
1074
1085
  * @returns A promise that resolves to a paginated response of activity events.
1075
1086
  */
1076
1087
  async getActivityLogs(args = {}) {
1077
- // Convert Date objects to YYYY-MM-DD strings and modern object types to legacy API types
1078
- const processedArgs = Object.assign(Object.assign(Object.assign(Object.assign({}, args), (args.since instanceof Date ? { since: (0, url_helpers_1.formatDateToYYYYMMDD)(args.since) } : {})), (args.until instanceof Date ? { until: (0, url_helpers_1.formatDateToYYYYMMDD)(args.until) } : {})), spreadIfDefined(args.objectType, (v) => ({
1088
+ var _a, _b;
1089
+ // Resolve dateFrom: prefer new param, fall back to deprecated `since`
1090
+ const rawDateFrom = (_a = args.dateFrom) !== null && _a !== void 0 ? _a : args.since;
1091
+ const rawDateTo = (_b = args.dateTo) !== null && _b !== void 0 ? _b : args.until;
1092
+ // Convert Date objects to YYYY-MM-DD strings
1093
+ const dateFrom = rawDateFrom instanceof Date ? (0, url_helpers_1.formatDateToYYYYMMDD)(rawDateFrom) : rawDateFrom;
1094
+ const dateTo = rawDateTo instanceof Date ? (0, url_helpers_1.formatDateToYYYYMMDD)(rawDateTo) : rawDateTo;
1095
+ // Destructure out deprecated and raw date fields so they don't leak into the payload
1096
+ const { since: _since, until: _until, dateFrom: _dateFrom, dateTo: _dateTo } = args, rest = __rest(args, ["since", "until", "dateFrom", "dateTo"]);
1097
+ const processedArgs = Object.assign(Object.assign(Object.assign(Object.assign({}, rest), (dateFrom !== undefined ? { dateFrom } : {})), (dateTo !== undefined ? { dateTo } : {})), spreadIfDefined(args.objectType, (v) => ({
1079
1098
  objectType: (0, activity_helpers_1.normalizeObjectTypeForApi)(v),
1080
1099
  })));
1081
1100
  const { data: { results, nextCursor }, } = await (0, rest_client_1.request)({
@@ -1,3 +1,14 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
1
12
  import { request, isSuccess } from './rest-client.js';
2
13
  import { getSyncBaseUri, ENDPOINT_REST_TASKS, ENDPOINT_REST_TASKS_FILTER, ENDPOINT_REST_TASKS_COMPLETED_BY_COMPLETION_DATE, ENDPOINT_REST_TASKS_COMPLETED_BY_DUE_DATE, ENDPOINT_REST_TASKS_COMPLETED_SEARCH, ENDPOINT_REST_PROJECTS, ENDPOINT_REST_PROJECTS_SEARCH, ENDPOINT_SYNC_QUICK_ADD, ENDPOINT_REST_TASK_CLOSE, ENDPOINT_REST_TASK_REOPEN, ENDPOINT_REST_TASK_MOVE, ENDPOINT_REST_LABELS, ENDPOINT_REST_LABELS_SEARCH, ENDPOINT_REST_PROJECT_COLLABORATORS, ENDPOINT_REST_SECTIONS, ENDPOINT_REST_SECTIONS_SEARCH, ENDPOINT_REST_COMMENTS, ENDPOINT_REST_LABELS_SHARED, ENDPOINT_REST_LABELS_SHARED_RENAME, ENDPOINT_REST_LABELS_SHARED_REMOVE, ENDPOINT_SYNC, PROJECT_ARCHIVE, PROJECT_UNARCHIVE, ENDPOINT_REST_PROJECTS_MOVE_TO_WORKSPACE, ENDPOINT_REST_PROJECTS_MOVE_TO_PERSONAL, ENDPOINT_REST_PROJECTS_ARCHIVED, ENDPOINT_REST_USER, ENDPOINT_REST_PRODUCTIVITY, ENDPOINT_REST_ACTIVITIES, ENDPOINT_REST_UPLOADS, ENDPOINT_WORKSPACE_INVITATIONS, ENDPOINT_WORKSPACE_INVITATIONS_ALL, ENDPOINT_WORKSPACE_INVITATIONS_DELETE, getWorkspaceInvitationAcceptEndpoint, getWorkspaceInvitationRejectEndpoint, ENDPOINT_WORKSPACE_JOIN, ENDPOINT_WORKSPACE_LOGO, ENDPOINT_WORKSPACE_PLAN_DETAILS, ENDPOINT_WORKSPACE_USERS, getWorkspaceActiveProjectsEndpoint, getWorkspaceArchivedProjectsEndpoint, } from './consts/endpoints.js';
3
14
  import { validateAttachment, validateComment, validateCommentArray, validateCurrentUser, validateLabel, validateLabelArray, validateProject, validateProjectArray, validateSection, validateSectionArray, validateTask, validateTaskArray, validateUserArray, validateProductivityStats, validateActivityEventArray, validateWorkspaceUserArray, validateWorkspaceInvitation, validateWorkspaceInvitationArray, validateWorkspacePlanDetails, validateJoinWorkspaceResult, validateWorkspaceArray, } from './utils/validators.js';
@@ -1071,8 +1082,16 @@ export class TodoistApi {
1071
1082
  * @returns A promise that resolves to a paginated response of activity events.
1072
1083
  */
1073
1084
  async getActivityLogs(args = {}) {
1074
- // Convert Date objects to YYYY-MM-DD strings and modern object types to legacy API types
1075
- const processedArgs = Object.assign(Object.assign(Object.assign(Object.assign({}, args), (args.since instanceof Date ? { since: formatDateToYYYYMMDD(args.since) } : {})), (args.until instanceof Date ? { until: formatDateToYYYYMMDD(args.until) } : {})), spreadIfDefined(args.objectType, (v) => ({
1085
+ var _a, _b;
1086
+ // Resolve dateFrom: prefer new param, fall back to deprecated `since`
1087
+ const rawDateFrom = (_a = args.dateFrom) !== null && _a !== void 0 ? _a : args.since;
1088
+ const rawDateTo = (_b = args.dateTo) !== null && _b !== void 0 ? _b : args.until;
1089
+ // Convert Date objects to YYYY-MM-DD strings
1090
+ const dateFrom = rawDateFrom instanceof Date ? formatDateToYYYYMMDD(rawDateFrom) : rawDateFrom;
1091
+ const dateTo = rawDateTo instanceof Date ? formatDateToYYYYMMDD(rawDateTo) : rawDateTo;
1092
+ // Destructure out deprecated and raw date fields so they don't leak into the payload
1093
+ const { since: _since, until: _until, dateFrom: _dateFrom, dateTo: _dateTo } = args, rest = __rest(args, ["since", "until", "dateFrom", "dateTo"]);
1094
+ const processedArgs = Object.assign(Object.assign(Object.assign(Object.assign({}, rest), (dateFrom !== undefined ? { dateFrom } : {})), (dateTo !== undefined ? { dateTo } : {})), spreadIfDefined(args.objectType, (v) => ({
1076
1095
  objectType: normalizeObjectTypeForApi(v),
1077
1096
  })));
1078
1097
  const { data: { results, nextCursor }, } = await request({
@@ -1,4 +1,5 @@
1
1
  import type { RequireAllOrNone, RequireOneOrNone, RequireExactlyOne } from 'type-fest';
2
+ import type { ColorKey } from '../utils/colors.js';
2
3
  import type { ActivityEvent, ActivityEventType, ActivityObjectType, Comment, Duration, Label, PersonalProject, ProjectViewStyle, ProjectVisibility, Section, Task, User, WorkspaceProject } from './entities.js';
3
4
  /**
4
5
  * Arguments for creating a new task.
@@ -200,7 +201,7 @@ export type GetArchivedProjectsResponse = {
200
201
  export type AddProjectArgs = {
201
202
  name: string;
202
203
  parentId?: string;
203
- color?: string | number;
204
+ color?: ColorKey;
204
205
  isFavorite?: boolean;
205
206
  viewStyle?: ProjectViewStyle;
206
207
  };
@@ -210,7 +211,7 @@ export type AddProjectArgs = {
210
211
  */
211
212
  export type UpdateProjectArgs = {
212
213
  name?: string;
213
- color?: string;
214
+ color?: ColorKey;
214
215
  isFavorite?: boolean;
215
216
  viewStyle?: ProjectViewStyle;
216
217
  };
@@ -296,7 +297,7 @@ export type GetLabelsResponse = {
296
297
  export type AddLabelArgs = {
297
298
  name: string;
298
299
  order?: number | null;
299
- color?: string | number;
300
+ color?: ColorKey;
300
301
  isFavorite?: boolean;
301
302
  };
302
303
  /**
@@ -306,7 +307,7 @@ export type AddLabelArgs = {
306
307
  export type UpdateLabelArgs = {
307
308
  name?: string;
308
309
  order?: number | null;
309
- color?: string;
310
+ color?: ColorKey;
310
311
  isFavorite?: boolean;
311
312
  };
312
313
  /**
@@ -465,14 +466,24 @@ type GetActivityLogsArgsBase = {
465
466
  * Maximum number of results to return per page.
466
467
  */
467
468
  limit?: number;
469
+ /**
470
+ * Start date for filtering events (inclusive). Replaces deprecated `since`.
471
+ * Accepts a Date object or YYYY-MM-DD string.
472
+ */
473
+ dateFrom?: Date | string;
474
+ /**
475
+ * End date for filtering events (inclusive). Replaces deprecated `until`.
476
+ * Accepts a Date object or YYYY-MM-DD string.
477
+ */
478
+ dateTo?: Date | string;
468
479
  };
469
480
  type GetActivityLogsArgsWithDate = GetActivityLogsArgsBase & {
470
481
  /**
471
- * Start date for filtering events (inclusive).
482
+ * @deprecated Use `dateFrom` instead. Will be removed in the next major version.
472
483
  */
473
484
  since?: Date;
474
485
  /**
475
- * End date for filtering events (inclusive).
486
+ * @deprecated Use `dateTo` instead. Will be removed in the next major version.
476
487
  */
477
488
  until?: Date;
478
489
  };
@@ -482,13 +493,11 @@ type GetActivityLogsArgsWithDate = GetActivityLogsArgsBase & {
482
493
  */
483
494
  type GetActivityLogsArgsWithString = GetActivityLogsArgsBase & {
484
495
  /**
485
- * Start date for filtering events in YYYY-MM-DD format (inclusive).
486
- * @deprecated Use Date object instead. String format will be removed in the next major version.
496
+ * @deprecated Use `dateFrom` instead. Will be removed in the next major version.
487
497
  */
488
498
  since?: string;
489
499
  /**
490
- * End date for filtering events in YYYY-MM-DD format (inclusive).
491
- * @deprecated Use Date object instead. String format will be removed in the next major version.
500
+ * @deprecated Use `dateTo` instead. Will be removed in the next major version.
492
501
  */
493
502
  until?: string;
494
503
  };
@@ -1,7 +1,8 @@
1
+ import type { ColorKey } from '../../../utils/colors.js';
1
2
  export type FilterAddArgs = {
2
3
  name: string;
3
4
  query: string;
4
- color?: string;
5
+ color?: ColorKey;
5
6
  itemOrder?: number;
6
7
  isFavorite?: boolean;
7
8
  };
@@ -9,7 +10,7 @@ export type FilterUpdateArgs = {
9
10
  id: string;
10
11
  name?: string;
11
12
  query?: string;
12
- color?: string;
13
+ color?: ColorKey;
13
14
  itemOrder?: number;
14
15
  isFavorite?: boolean;
15
16
  };
@@ -1,6 +1,7 @@
1
+ import type { ColorKey } from '../../../utils/colors.js';
1
2
  export type LabelAddArgs = {
2
3
  name: string;
3
- color?: string;
4
+ color?: ColorKey;
4
5
  itemOrder?: number;
5
6
  isFavorite?: boolean;
6
7
  };
@@ -11,7 +12,7 @@ export type LabelRenameArgs = {
11
12
  export type LabelUpdateArgs = {
12
13
  id: string;
13
14
  name?: string;
14
- color?: string;
15
+ color?: ColorKey;
15
16
  itemOrder?: number;
16
17
  isFavorite?: boolean;
17
18
  };
@@ -1,5 +1,6 @@
1
1
  import type { ProjectViewStyle, ProjectVisibility, WorkspaceRole } from '../../entities.js';
2
2
  import type { ProjectStatus, CollaboratorRole } from './shared.js';
3
+ import type { ColorKey } from '../../../utils/colors.js';
3
4
  export type ProjectAccessConfig = {
4
5
  visibility: ProjectVisibility;
5
6
  configuration?: {
@@ -14,7 +15,7 @@ export type ProjectAddArgs = {
14
15
  folderId?: string | null;
15
16
  childOrder?: number;
16
17
  defaultOrder?: number;
17
- color?: string;
18
+ color?: ColorKey;
18
19
  description?: string;
19
20
  isFavorite?: boolean;
20
21
  isInviteOnly?: boolean;
@@ -28,7 +29,7 @@ export type ProjectUpdateArgs = {
28
29
  id: string;
29
30
  folderId?: string | null;
30
31
  name?: string;
31
- color?: string;
32
+ color?: ColorKey;
32
33
  description?: string;
33
34
  isFavorite?: boolean;
34
35
  isCollapsed?: boolean;
@@ -1,8 +1,9 @@
1
+ import type { ColorKey } from '../../../utils/colors.js';
1
2
  export type WorkspaceFilterAddArgs = {
2
3
  workspaceId: string;
3
4
  name: string;
4
5
  query: string;
5
- color?: string;
6
+ color?: ColorKey;
6
7
  itemOrder?: number;
7
8
  isFavorite?: boolean;
8
9
  };
@@ -10,7 +11,7 @@ export type WorkspaceFilterUpdateArgs = {
10
11
  id: string;
11
12
  name?: string;
12
13
  query?: string;
13
- color?: string;
14
+ color?: ColorKey;
14
15
  itemOrder?: number;
15
16
  isFavorite?: boolean;
16
17
  };
@@ -1,165 +1,306 @@
1
- import { Color } from '../types/index.js';
2
- export declare const berryRed: Color;
3
- export declare const red: Color;
4
- export declare const orange: Color;
5
- export declare const yellow: Color;
6
- export declare const oliveGreen: Color;
7
- export declare const limeGreen: Color;
8
- export declare const green: Color;
9
- export declare const mintGreen: Color;
10
- export declare const turquoise: Color;
11
- export declare const skyBlue: Color;
12
- export declare const lightBlue: Color;
13
- export declare const blue: Color;
14
- export declare const grape: Color;
15
- export declare const violet: Color;
16
- export declare const lavender: Color;
17
- export declare const magenta: Color;
18
- export declare const salmon: Color;
19
- export declare const charcoal: Color;
20
- export declare const gray: Color;
21
- export declare const taupe: Color;
1
+ import type { Color } from '../types/entities.js';
2
+ export declare const berryRed: {
3
+ readonly id: 30;
4
+ readonly key: "berry_red";
5
+ readonly displayName: "Berry Red";
6
+ readonly name: "Berry Red";
7
+ readonly hexValue: "#b8255f";
8
+ readonly value: "#b8255f";
9
+ };
10
+ export declare const red: {
11
+ readonly id: 31;
12
+ readonly key: "red";
13
+ readonly displayName: "Red";
14
+ readonly name: "Red";
15
+ readonly hexValue: "#db4035";
16
+ readonly value: "#db4035";
17
+ };
18
+ export declare const orange: {
19
+ readonly id: 32;
20
+ readonly key: "orange";
21
+ readonly displayName: "Orange";
22
+ readonly name: "Orange";
23
+ readonly hexValue: "#ff9933";
24
+ readonly value: "#ff9933";
25
+ };
26
+ export declare const yellow: {
27
+ readonly id: 33;
28
+ readonly key: "yellow";
29
+ readonly displayName: "Yellow";
30
+ readonly name: "Yellow";
31
+ readonly hexValue: "#fad000";
32
+ readonly value: "#fad000";
33
+ };
34
+ export declare const oliveGreen: {
35
+ readonly id: 34;
36
+ readonly key: "olive_green";
37
+ readonly displayName: "Olive Green";
38
+ readonly name: "Olive Green";
39
+ readonly hexValue: "#afb83b";
40
+ readonly value: "#afb83b";
41
+ };
42
+ export declare const limeGreen: {
43
+ readonly id: 35;
44
+ readonly key: "lime_green";
45
+ readonly displayName: "Lime Green";
46
+ readonly name: "Lime Green";
47
+ readonly hexValue: "#7ecc49";
48
+ readonly value: "#7ecc49";
49
+ };
50
+ export declare const green: {
51
+ readonly id: 36;
52
+ readonly key: "green";
53
+ readonly displayName: "Green";
54
+ readonly name: "Green";
55
+ readonly hexValue: "#299438";
56
+ readonly value: "#299438";
57
+ };
58
+ export declare const mintGreen: {
59
+ readonly id: 37;
60
+ readonly key: "mint_green";
61
+ readonly displayName: "Mint Green";
62
+ readonly name: "Mint Green";
63
+ readonly hexValue: "#6accbc";
64
+ readonly value: "#6accbc";
65
+ };
66
+ export declare const turquoise: {
67
+ readonly id: 38;
68
+ readonly key: "turquoise";
69
+ readonly displayName: "Turquoise";
70
+ readonly name: "Turquoise";
71
+ readonly hexValue: "#158fad";
72
+ readonly value: "#158fad";
73
+ };
74
+ export declare const skyBlue: {
75
+ readonly id: 39;
76
+ readonly key: "sky_blue";
77
+ readonly displayName: "Sky Blue";
78
+ readonly name: "Sky Blue";
79
+ readonly hexValue: "#14aaf5";
80
+ readonly value: "#14aaf5";
81
+ };
82
+ export declare const lightBlue: {
83
+ readonly id: 40;
84
+ readonly key: "light_blue";
85
+ readonly displayName: "Light Blue";
86
+ readonly name: "Light Blue";
87
+ readonly hexValue: "#96c3eb";
88
+ readonly value: "#96c3eb";
89
+ };
90
+ export declare const blue: {
91
+ readonly id: 41;
92
+ readonly key: "blue";
93
+ readonly displayName: "Blue";
94
+ readonly name: "Blue";
95
+ readonly hexValue: "#4073ff";
96
+ readonly value: "#4073ff";
97
+ };
98
+ export declare const grape: {
99
+ readonly id: 42;
100
+ readonly key: "grape";
101
+ readonly displayName: "Grape";
102
+ readonly name: "Grape";
103
+ readonly hexValue: "#884dff";
104
+ readonly value: "#884dff";
105
+ };
106
+ export declare const violet: {
107
+ readonly id: 43;
108
+ readonly key: "violet";
109
+ readonly displayName: "Violet";
110
+ readonly name: "Violet";
111
+ readonly hexValue: "#af38eb";
112
+ readonly value: "#af38eb";
113
+ };
114
+ export declare const lavender: {
115
+ readonly id: 44;
116
+ readonly key: "lavender";
117
+ readonly displayName: "Lavender";
118
+ readonly name: "Lavender";
119
+ readonly hexValue: "#eb96eb";
120
+ readonly value: "#eb96eb";
121
+ };
122
+ export declare const magenta: {
123
+ readonly id: 45;
124
+ readonly key: "magenta";
125
+ readonly displayName: "Magenta";
126
+ readonly name: "Magenta";
127
+ readonly hexValue: "#e05194";
128
+ readonly value: "#e05194";
129
+ };
130
+ export declare const salmon: {
131
+ readonly id: 46;
132
+ readonly key: "salmon";
133
+ readonly displayName: "Salmon";
134
+ readonly name: "Salmon";
135
+ readonly hexValue: "#ff8d85";
136
+ readonly value: "#ff8d85";
137
+ };
138
+ export declare const charcoal: {
139
+ readonly id: 47;
140
+ readonly key: "charcoal";
141
+ readonly displayName: "Charcoal";
142
+ readonly name: "Charcoal";
143
+ readonly hexValue: "#808080";
144
+ readonly value: "#808080";
145
+ };
146
+ export declare const gray: {
147
+ readonly id: 48;
148
+ readonly key: "gray";
149
+ readonly displayName: "Gray";
150
+ readonly name: "Gray";
151
+ readonly hexValue: "#b8b8b8";
152
+ readonly value: "#b8b8b8";
153
+ };
154
+ export declare const taupe: {
155
+ readonly id: 49;
156
+ readonly key: "taupe";
157
+ readonly displayName: "Taupe";
158
+ readonly name: "Taupe";
159
+ readonly hexValue: "#ccac93";
160
+ readonly value: "#ccac93";
161
+ };
22
162
  export declare const colors: readonly [{
23
- id: number;
24
- key: string;
25
- displayName: string;
26
- name: string;
27
- hexValue: string;
28
- value: string;
29
- }, {
30
- id: number;
31
- key: string;
32
- displayName: string;
33
- name: string;
34
- hexValue: string;
35
- value: string;
36
- }, {
37
- id: number;
38
- key: string;
39
- displayName: string;
40
- name: string;
41
- hexValue: string;
42
- value: string;
43
- }, {
44
- id: number;
45
- key: string;
46
- displayName: string;
47
- name: string;
48
- hexValue: string;
49
- value: string;
50
- }, {
51
- id: number;
52
- key: string;
53
- displayName: string;
54
- name: string;
55
- hexValue: string;
56
- value: string;
57
- }, {
58
- id: number;
59
- key: string;
60
- displayName: string;
61
- name: string;
62
- hexValue: string;
63
- value: string;
64
- }, {
65
- id: number;
66
- key: string;
67
- displayName: string;
68
- name: string;
69
- hexValue: string;
70
- value: string;
71
- }, {
72
- id: number;
73
- key: string;
74
- displayName: string;
75
- name: string;
76
- hexValue: string;
77
- value: string;
78
- }, {
79
- id: number;
80
- key: string;
81
- displayName: string;
82
- name: string;
83
- hexValue: string;
84
- value: string;
85
- }, {
86
- id: number;
87
- key: string;
88
- displayName: string;
89
- name: string;
90
- hexValue: string;
91
- value: string;
92
- }, {
93
- id: number;
94
- key: string;
95
- displayName: string;
96
- name: string;
97
- hexValue: string;
98
- value: string;
99
- }, {
100
- id: number;
101
- key: string;
102
- displayName: string;
103
- name: string;
104
- hexValue: string;
105
- value: string;
106
- }, {
107
- id: number;
108
- key: string;
109
- displayName: string;
110
- name: string;
111
- hexValue: string;
112
- value: string;
113
- }, {
114
- id: number;
115
- key: string;
116
- displayName: string;
117
- name: string;
118
- hexValue: string;
119
- value: string;
120
- }, {
121
- id: number;
122
- key: string;
123
- displayName: string;
124
- name: string;
125
- hexValue: string;
126
- value: string;
127
- }, {
128
- id: number;
129
- key: string;
130
- displayName: string;
131
- name: string;
132
- hexValue: string;
133
- value: string;
134
- }, {
135
- id: number;
136
- key: string;
137
- displayName: string;
138
- name: string;
139
- hexValue: string;
140
- value: string;
141
- }, {
142
- id: number;
143
- key: string;
144
- displayName: string;
145
- name: string;
146
- hexValue: string;
147
- value: string;
148
- }, {
149
- id: number;
150
- key: string;
151
- displayName: string;
152
- name: string;
153
- hexValue: string;
154
- value: string;
155
- }, {
156
- id: number;
157
- key: string;
158
- displayName: string;
159
- name: string;
160
- hexValue: string;
161
- value: string;
163
+ readonly id: 30;
164
+ readonly key: "berry_red";
165
+ readonly displayName: "Berry Red";
166
+ readonly name: "Berry Red";
167
+ readonly hexValue: "#b8255f";
168
+ readonly value: "#b8255f";
169
+ }, {
170
+ readonly id: 31;
171
+ readonly key: "red";
172
+ readonly displayName: "Red";
173
+ readonly name: "Red";
174
+ readonly hexValue: "#db4035";
175
+ readonly value: "#db4035";
176
+ }, {
177
+ readonly id: 32;
178
+ readonly key: "orange";
179
+ readonly displayName: "Orange";
180
+ readonly name: "Orange";
181
+ readonly hexValue: "#ff9933";
182
+ readonly value: "#ff9933";
183
+ }, {
184
+ readonly id: 33;
185
+ readonly key: "yellow";
186
+ readonly displayName: "Yellow";
187
+ readonly name: "Yellow";
188
+ readonly hexValue: "#fad000";
189
+ readonly value: "#fad000";
190
+ }, {
191
+ readonly id: 34;
192
+ readonly key: "olive_green";
193
+ readonly displayName: "Olive Green";
194
+ readonly name: "Olive Green";
195
+ readonly hexValue: "#afb83b";
196
+ readonly value: "#afb83b";
197
+ }, {
198
+ readonly id: 35;
199
+ readonly key: "lime_green";
200
+ readonly displayName: "Lime Green";
201
+ readonly name: "Lime Green";
202
+ readonly hexValue: "#7ecc49";
203
+ readonly value: "#7ecc49";
204
+ }, {
205
+ readonly id: 36;
206
+ readonly key: "green";
207
+ readonly displayName: "Green";
208
+ readonly name: "Green";
209
+ readonly hexValue: "#299438";
210
+ readonly value: "#299438";
211
+ }, {
212
+ readonly id: 37;
213
+ readonly key: "mint_green";
214
+ readonly displayName: "Mint Green";
215
+ readonly name: "Mint Green";
216
+ readonly hexValue: "#6accbc";
217
+ readonly value: "#6accbc";
218
+ }, {
219
+ readonly id: 38;
220
+ readonly key: "turquoise";
221
+ readonly displayName: "Turquoise";
222
+ readonly name: "Turquoise";
223
+ readonly hexValue: "#158fad";
224
+ readonly value: "#158fad";
225
+ }, {
226
+ readonly id: 39;
227
+ readonly key: "sky_blue";
228
+ readonly displayName: "Sky Blue";
229
+ readonly name: "Sky Blue";
230
+ readonly hexValue: "#14aaf5";
231
+ readonly value: "#14aaf5";
232
+ }, {
233
+ readonly id: 40;
234
+ readonly key: "light_blue";
235
+ readonly displayName: "Light Blue";
236
+ readonly name: "Light Blue";
237
+ readonly hexValue: "#96c3eb";
238
+ readonly value: "#96c3eb";
239
+ }, {
240
+ readonly id: 41;
241
+ readonly key: "blue";
242
+ readonly displayName: "Blue";
243
+ readonly name: "Blue";
244
+ readonly hexValue: "#4073ff";
245
+ readonly value: "#4073ff";
246
+ }, {
247
+ readonly id: 42;
248
+ readonly key: "grape";
249
+ readonly displayName: "Grape";
250
+ readonly name: "Grape";
251
+ readonly hexValue: "#884dff";
252
+ readonly value: "#884dff";
253
+ }, {
254
+ readonly id: 43;
255
+ readonly key: "violet";
256
+ readonly displayName: "Violet";
257
+ readonly name: "Violet";
258
+ readonly hexValue: "#af38eb";
259
+ readonly value: "#af38eb";
260
+ }, {
261
+ readonly id: 44;
262
+ readonly key: "lavender";
263
+ readonly displayName: "Lavender";
264
+ readonly name: "Lavender";
265
+ readonly hexValue: "#eb96eb";
266
+ readonly value: "#eb96eb";
267
+ }, {
268
+ readonly id: 45;
269
+ readonly key: "magenta";
270
+ readonly displayName: "Magenta";
271
+ readonly name: "Magenta";
272
+ readonly hexValue: "#e05194";
273
+ readonly value: "#e05194";
274
+ }, {
275
+ readonly id: 46;
276
+ readonly key: "salmon";
277
+ readonly displayName: "Salmon";
278
+ readonly name: "Salmon";
279
+ readonly hexValue: "#ff8d85";
280
+ readonly value: "#ff8d85";
281
+ }, {
282
+ readonly id: 47;
283
+ readonly key: "charcoal";
284
+ readonly displayName: "Charcoal";
285
+ readonly name: "Charcoal";
286
+ readonly hexValue: "#808080";
287
+ readonly value: "#808080";
288
+ }, {
289
+ readonly id: 48;
290
+ readonly key: "gray";
291
+ readonly displayName: "Gray";
292
+ readonly name: "Gray";
293
+ readonly hexValue: "#b8b8b8";
294
+ readonly value: "#b8b8b8";
295
+ }, {
296
+ readonly id: 49;
297
+ readonly key: "taupe";
298
+ readonly displayName: "Taupe";
299
+ readonly name: "Taupe";
300
+ readonly hexValue: "#ccac93";
301
+ readonly value: "#ccac93";
162
302
  }];
303
+ export type ColorKey = (typeof colors)[number]['key'];
163
304
  export declare const defaultColor: Color;
164
305
  /**
165
306
  * @private
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-api-typescript",
3
- "version": "6.8.0",
3
+ "version": "6.9.0",
4
4
  "description": "A typescript wrapper for the Todoist REST API.",
5
5
  "author": "Doist developers",
6
6
  "repository": "https://github.com/Doist/todoist-api-typescript",