@doist/todoist-sdk 13.0.1 → 13.0.2
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/clients/task-client.js +1 -1
- package/dist/cjs/types/insights/types.js +1 -1
- package/dist/esm/clients/task-client.js +1 -1
- package/dist/esm/types/insights/types.js +1 -1
- package/dist/types/types/insights/types.d.ts +1 -1
- package/dist/types/utils/validators.d.ts +1 -1
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ class TaskClient extends base_client_1.BaseClient {
|
|
|
47
47
|
relativePath: endpoints_1.ENDPOINT_REST_TASKS,
|
|
48
48
|
apiToken: this.authToken,
|
|
49
49
|
customFetch: this.customFetch,
|
|
50
|
-
payload: args,
|
|
50
|
+
payload: Object.assign(Object.assign({}, args), (0, request_helpers_1.spreadIfDefined)(args.ids, (ids) => ({ ids: ids.join(',') }))),
|
|
51
51
|
});
|
|
52
52
|
return {
|
|
53
53
|
results: (0, validators_1.validateTaskArray)(results),
|
|
@@ -81,6 +81,6 @@ exports.ProjectInsightSchema = zod_1.z.object({
|
|
|
81
81
|
progress: exports.ProjectProgressSchema.nullable(),
|
|
82
82
|
});
|
|
83
83
|
exports.WorkspaceInsightsSchema = zod_1.z.object({
|
|
84
|
-
folderId: zod_1.z.string().nullable(),
|
|
84
|
+
folderId: zod_1.z.string().nullable().optional(),
|
|
85
85
|
projectInsights: zod_1.z.array(exports.ProjectInsightSchema),
|
|
86
86
|
});
|
|
@@ -44,7 +44,7 @@ export class TaskClient extends BaseClient {
|
|
|
44
44
|
relativePath: ENDPOINT_REST_TASKS,
|
|
45
45
|
apiToken: this.authToken,
|
|
46
46
|
customFetch: this.customFetch,
|
|
47
|
-
payload: args,
|
|
47
|
+
payload: Object.assign(Object.assign({}, args), spreadIfDefined(args.ids, (ids) => ({ ids: ids.join(',') }))),
|
|
48
48
|
});
|
|
49
49
|
return {
|
|
50
50
|
results: validateTaskArray(results),
|
|
@@ -78,6 +78,6 @@ export const ProjectInsightSchema = z.object({
|
|
|
78
78
|
progress: ProjectProgressSchema.nullable(),
|
|
79
79
|
});
|
|
80
80
|
export const WorkspaceInsightsSchema = z.object({
|
|
81
|
-
folderId: z.string().nullable(),
|
|
81
|
+
folderId: z.string().nullable().optional(),
|
|
82
82
|
projectInsights: z.array(ProjectInsightSchema),
|
|
83
83
|
});
|
|
@@ -151,7 +151,7 @@ export declare const ProjectInsightSchema: z.ZodObject<{
|
|
|
151
151
|
/** Insight data for a single project within a workspace. */
|
|
152
152
|
export type ProjectInsight = z.infer<typeof ProjectInsightSchema>;
|
|
153
153
|
export declare const WorkspaceInsightsSchema: z.ZodObject<{
|
|
154
|
-
folderId: z.ZodNullable<z.ZodString
|
|
154
|
+
folderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
155
|
projectInsights: z.ZodArray<z.ZodObject<{
|
|
156
156
|
projectId: z.ZodString;
|
|
157
157
|
health: z.ZodNullable<z.ZodObject<{
|
|
@@ -705,7 +705,6 @@ export declare const validateProjectProgress: (input: unknown) => {
|
|
|
705
705
|
progressPercent: number;
|
|
706
706
|
};
|
|
707
707
|
export declare const validateWorkspaceInsights: (input: unknown) => {
|
|
708
|
-
folderId: string | null;
|
|
709
708
|
projectInsights: {
|
|
710
709
|
projectId: string;
|
|
711
710
|
health: {
|
|
@@ -728,6 +727,7 @@ export declare const validateWorkspaceInsights: (input: unknown) => {
|
|
|
728
727
|
progressPercent: number;
|
|
729
728
|
} | null;
|
|
730
729
|
}[];
|
|
730
|
+
folderId?: string | null | undefined;
|
|
731
731
|
};
|
|
732
732
|
export declare const validateBackup: (input: unknown) => {
|
|
733
733
|
version: string;
|
package/package.json
CHANGED