@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.
- package/dist/cjs/todoist-api.js +21 -2
- package/dist/esm/todoist-api.js +21 -2
- package/dist/types/types/requests.d.ts +19 -10
- package/dist/types/types/sync/commands/filters.d.ts +3 -2
- package/dist/types/types/sync/commands/labels.d.ts +3 -2
- package/dist/types/types/sync/commands/projects.d.ts +3 -2
- package/dist/types/types/sync/commands/workspace-filters.d.ts +3 -2
- package/dist/types/utils/colors.d.ts +301 -160
- package/package.json +1 -1
package/dist/cjs/todoist-api.js
CHANGED
|
@@ -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
|
-
|
|
1078
|
-
|
|
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)({
|
package/dist/esm/todoist-api.js
CHANGED
|
@@ -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
|
-
|
|
1075
|
-
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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
|
-
*
|
|
482
|
+
* @deprecated Use `dateFrom` instead. Will be removed in the next major version.
|
|
472
483
|
*/
|
|
473
484
|
since?: Date;
|
|
474
485
|
/**
|
|
475
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
14
|
+
color?: ColorKey;
|
|
14
15
|
itemOrder?: number;
|
|
15
16
|
isFavorite?: boolean;
|
|
16
17
|
};
|
|
@@ -1,165 +1,306 @@
|
|
|
1
|
-
import { Color } from '../types/
|
|
2
|
-
export declare const berryRed:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export declare const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
24
|
-
key:
|
|
25
|
-
displayName:
|
|
26
|
-
name:
|
|
27
|
-
hexValue:
|
|
28
|
-
value:
|
|
29
|
-
}, {
|
|
30
|
-
id:
|
|
31
|
-
key:
|
|
32
|
-
displayName:
|
|
33
|
-
name:
|
|
34
|
-
hexValue:
|
|
35
|
-
value:
|
|
36
|
-
}, {
|
|
37
|
-
id:
|
|
38
|
-
key:
|
|
39
|
-
displayName:
|
|
40
|
-
name:
|
|
41
|
-
hexValue:
|
|
42
|
-
value:
|
|
43
|
-
}, {
|
|
44
|
-
id:
|
|
45
|
-
key:
|
|
46
|
-
displayName:
|
|
47
|
-
name:
|
|
48
|
-
hexValue:
|
|
49
|
-
value:
|
|
50
|
-
}, {
|
|
51
|
-
id:
|
|
52
|
-
key:
|
|
53
|
-
displayName:
|
|
54
|
-
name:
|
|
55
|
-
hexValue:
|
|
56
|
-
value:
|
|
57
|
-
}, {
|
|
58
|
-
id:
|
|
59
|
-
key:
|
|
60
|
-
displayName:
|
|
61
|
-
name:
|
|
62
|
-
hexValue:
|
|
63
|
-
value:
|
|
64
|
-
}, {
|
|
65
|
-
id:
|
|
66
|
-
key:
|
|
67
|
-
displayName:
|
|
68
|
-
name:
|
|
69
|
-
hexValue:
|
|
70
|
-
value:
|
|
71
|
-
}, {
|
|
72
|
-
id:
|
|
73
|
-
key:
|
|
74
|
-
displayName:
|
|
75
|
-
name:
|
|
76
|
-
hexValue:
|
|
77
|
-
value:
|
|
78
|
-
}, {
|
|
79
|
-
id:
|
|
80
|
-
key:
|
|
81
|
-
displayName:
|
|
82
|
-
name:
|
|
83
|
-
hexValue:
|
|
84
|
-
value:
|
|
85
|
-
}, {
|
|
86
|
-
id:
|
|
87
|
-
key:
|
|
88
|
-
displayName:
|
|
89
|
-
name:
|
|
90
|
-
hexValue:
|
|
91
|
-
value:
|
|
92
|
-
}, {
|
|
93
|
-
id:
|
|
94
|
-
key:
|
|
95
|
-
displayName:
|
|
96
|
-
name:
|
|
97
|
-
hexValue:
|
|
98
|
-
value:
|
|
99
|
-
}, {
|
|
100
|
-
id:
|
|
101
|
-
key:
|
|
102
|
-
displayName:
|
|
103
|
-
name:
|
|
104
|
-
hexValue:
|
|
105
|
-
value:
|
|
106
|
-
}, {
|
|
107
|
-
id:
|
|
108
|
-
key:
|
|
109
|
-
displayName:
|
|
110
|
-
name:
|
|
111
|
-
hexValue:
|
|
112
|
-
value:
|
|
113
|
-
}, {
|
|
114
|
-
id:
|
|
115
|
-
key:
|
|
116
|
-
displayName:
|
|
117
|
-
name:
|
|
118
|
-
hexValue:
|
|
119
|
-
value:
|
|
120
|
-
}, {
|
|
121
|
-
id:
|
|
122
|
-
key:
|
|
123
|
-
displayName:
|
|
124
|
-
name:
|
|
125
|
-
hexValue:
|
|
126
|
-
value:
|
|
127
|
-
}, {
|
|
128
|
-
id:
|
|
129
|
-
key:
|
|
130
|
-
displayName:
|
|
131
|
-
name:
|
|
132
|
-
hexValue:
|
|
133
|
-
value:
|
|
134
|
-
}, {
|
|
135
|
-
id:
|
|
136
|
-
key:
|
|
137
|
-
displayName:
|
|
138
|
-
name:
|
|
139
|
-
hexValue:
|
|
140
|
-
value:
|
|
141
|
-
}, {
|
|
142
|
-
id:
|
|
143
|
-
key:
|
|
144
|
-
displayName:
|
|
145
|
-
name:
|
|
146
|
-
hexValue:
|
|
147
|
-
value:
|
|
148
|
-
}, {
|
|
149
|
-
id:
|
|
150
|
-
key:
|
|
151
|
-
displayName:
|
|
152
|
-
name:
|
|
153
|
-
hexValue:
|
|
154
|
-
value:
|
|
155
|
-
}, {
|
|
156
|
-
id:
|
|
157
|
-
key:
|
|
158
|
-
displayName:
|
|
159
|
-
name:
|
|
160
|
-
hexValue:
|
|
161
|
-
value:
|
|
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