@doist/todoist-api-typescript 4.0.0-alpha.4 → 4.0.0-alpha.6
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/consts/endpoints.d.ts +2 -2
- package/dist/consts/endpoints.js +1 -1
- package/dist/testUtils/testDefaults.d.ts +0 -2
- package/dist/testUtils/testDefaults.js +0 -2
- package/dist/types/entities.d.ts +0 -6
- package/dist/types/entities.js +0 -2
- package/dist/utils/taskConverters.js +0 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const API_VERSION = "v9.
|
|
2
|
-
export declare const API_BASE_URI = "/api/v9.
|
|
1
|
+
export declare const API_VERSION = "v9.220";
|
|
2
|
+
export declare const API_BASE_URI = "/api/v9.220/";
|
|
3
3
|
export declare function getSyncBaseUri(domainBase?: string): string;
|
|
4
4
|
export declare function getAuthBaseUri(domainBase?: string): string;
|
|
5
5
|
export declare const ENDPOINT_REST_TASKS = "tasks";
|
package/dist/consts/endpoints.js
CHANGED
|
@@ -5,7 +5,7 @@ var BASE_URI = 'https://api.todoist.com';
|
|
|
5
5
|
var TODOIST_URI = 'https://todoist.com';
|
|
6
6
|
// The API version is not configurable, to ensure
|
|
7
7
|
// compatibility between the API and the client.
|
|
8
|
-
exports.API_VERSION = 'v9.
|
|
8
|
+
exports.API_VERSION = 'v9.220';
|
|
9
9
|
exports.API_BASE_URI = "/api/".concat(exports.API_VERSION, "/");
|
|
10
10
|
var API_AUTHORIZATION_BASE_URI = '/oauth/';
|
|
11
11
|
function getSyncBaseUri(domainBase) {
|
|
@@ -27,7 +27,6 @@ export declare const INVALID_TASK: {
|
|
|
27
27
|
isCompleted: boolean;
|
|
28
28
|
labels: string[];
|
|
29
29
|
priority: number;
|
|
30
|
-
commentCount: number;
|
|
31
30
|
creatorId: string;
|
|
32
31
|
createdAt: string;
|
|
33
32
|
url: string;
|
|
@@ -47,7 +46,6 @@ export declare const INVALID_PROJECT: {
|
|
|
47
46
|
id: string;
|
|
48
47
|
parentId: string | null;
|
|
49
48
|
order: number | null;
|
|
50
|
-
commentCount: number;
|
|
51
49
|
url: string;
|
|
52
50
|
color: string;
|
|
53
51
|
isShared: boolean;
|
|
@@ -89,7 +89,6 @@ exports.DEFAULT_TASK = {
|
|
|
89
89
|
isCompleted: false,
|
|
90
90
|
labels: DEFAULT_LABELS,
|
|
91
91
|
priority: DEFAULT_TASK_PRIORITY,
|
|
92
|
-
commentCount: 0,
|
|
93
92
|
createdAt: DEFAULT_DATE,
|
|
94
93
|
url: 'https://todoist.com/showTask?id=1234',
|
|
95
94
|
due: exports.DEFAULT_DUE_DATE,
|
|
@@ -107,7 +106,6 @@ exports.DEFAULT_PROJECT = {
|
|
|
107
106
|
color: DEFAULT_ENTITY_COLOR,
|
|
108
107
|
order: DEFAULT_ORDER,
|
|
109
108
|
parentId: DEFAULT_PROJECT_ID,
|
|
110
|
-
commentCount: 0,
|
|
111
109
|
isFavorite: false,
|
|
112
110
|
isShared: false,
|
|
113
111
|
isInboxProject: false,
|
package/dist/types/entities.d.ts
CHANGED
|
@@ -72,7 +72,6 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
72
72
|
isCompleted: z.ZodBoolean;
|
|
73
73
|
labels: z.ZodArray<z.ZodString, "many">;
|
|
74
74
|
priority: z.ZodNumber;
|
|
75
|
-
commentCount: z.ZodNumber;
|
|
76
75
|
creatorId: z.ZodString;
|
|
77
76
|
createdAt: z.ZodString;
|
|
78
77
|
due: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -132,7 +131,6 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
132
131
|
isCompleted: boolean;
|
|
133
132
|
labels: string[];
|
|
134
133
|
priority: number;
|
|
135
|
-
commentCount: number;
|
|
136
134
|
creatorId: string;
|
|
137
135
|
createdAt: string;
|
|
138
136
|
due: {
|
|
@@ -165,7 +163,6 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
165
163
|
isCompleted: boolean;
|
|
166
164
|
labels: string[];
|
|
167
165
|
priority: number;
|
|
168
|
-
commentCount: number;
|
|
169
166
|
creatorId: string;
|
|
170
167
|
createdAt: string;
|
|
171
168
|
due: {
|
|
@@ -198,7 +195,6 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
198
195
|
order: z.ZodNullable<z.ZodNumber>;
|
|
199
196
|
color: z.ZodString;
|
|
200
197
|
name: z.ZodString;
|
|
201
|
-
commentCount: z.ZodNumber;
|
|
202
198
|
isShared: z.ZodBoolean;
|
|
203
199
|
isFavorite: z.ZodBoolean;
|
|
204
200
|
isInboxProject: z.ZodBoolean;
|
|
@@ -209,7 +205,6 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
209
205
|
id: string;
|
|
210
206
|
parentId: string | null;
|
|
211
207
|
order: number | null;
|
|
212
|
-
commentCount: number;
|
|
213
208
|
url: string;
|
|
214
209
|
color: string;
|
|
215
210
|
name: string;
|
|
@@ -222,7 +217,6 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
222
217
|
id: string;
|
|
223
218
|
parentId: string | null;
|
|
224
219
|
order: number | null;
|
|
225
|
-
commentCount: number;
|
|
226
220
|
url: string;
|
|
227
221
|
color: string;
|
|
228
222
|
name: string;
|
package/dist/types/entities.js
CHANGED
|
@@ -34,7 +34,6 @@ exports.TaskSchema = zod_1.z.object({
|
|
|
34
34
|
isCompleted: zod_1.z.boolean(),
|
|
35
35
|
labels: zod_1.z.array(zod_1.z.string()),
|
|
36
36
|
priority: zod_1.z.number().int(),
|
|
37
|
-
commentCount: zod_1.z.number().int(),
|
|
38
37
|
creatorId: zod_1.z.string(),
|
|
39
38
|
createdAt: zod_1.z.string(),
|
|
40
39
|
due: exports.DueDateSchema.nullable(),
|
|
@@ -48,7 +47,6 @@ exports.ProjectSchema = zod_1.z.object({
|
|
|
48
47
|
order: zod_1.z.number().int().nullable(),
|
|
49
48
|
color: zod_1.z.string(),
|
|
50
49
|
name: zod_1.z.string(),
|
|
51
|
-
commentCount: zod_1.z.number().int(),
|
|
52
50
|
isShared: zod_1.z.boolean(),
|
|
53
51
|
isFavorite: zod_1.z.boolean(),
|
|
54
52
|
isInboxProject: zod_1.z.boolean(),
|
|
@@ -17,7 +17,6 @@ function getTaskFromQuickAddResponse(responseData) {
|
|
|
17
17
|
isCompleted: responseData.checked,
|
|
18
18
|
labels: responseData.labels,
|
|
19
19
|
priority: responseData.priority,
|
|
20
|
-
commentCount: 0, // Will always be 0 for a quick add
|
|
21
20
|
createdAt: responseData.addedAt,
|
|
22
21
|
url: getTaskUrlFromQuickAddResponse(responseData),
|
|
23
22
|
creatorId: (_a = responseData.addedByUid) !== null && _a !== void 0 ? _a : '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doist/todoist-api-typescript",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.6",
|
|
4
4
|
"description": "A typescript wrapper for the Todoist REST API.",
|
|
5
5
|
"author": "Doist developers",
|
|
6
6
|
"repository": "git@github.com:doist/todoist-api-typescript.git",
|