motionmcp 2.1.1 → 2.2.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.
@@ -30,9 +30,9 @@ export declare const MotionWorkspaceSchema: z.ZodObject<{
30
30
  }>, "many">>;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  id: string;
33
+ type: string;
33
34
  name: string;
34
35
  teamId: string | null;
35
- type: string;
36
36
  labels: (string | {
37
37
  name: string;
38
38
  })[];
@@ -43,9 +43,9 @@ export declare const MotionWorkspaceSchema: z.ZodObject<{
43
43
  }[] | undefined;
44
44
  }, {
45
45
  id: string;
46
+ type: string;
46
47
  name: string;
47
48
  teamId: string | null;
48
- type: string;
49
49
  labels: (string | {
50
50
  name: string;
51
51
  })[];
@@ -200,9 +200,9 @@ export declare const MotionTaskSchema: z.ZodObject<{
200
200
  }>, "many">>;
201
201
  }, "strip", z.ZodTypeAny, {
202
202
  id: string;
203
+ type: string;
203
204
  name: string;
204
205
  teamId: string | null;
205
- type: string;
206
206
  labels: (string | {
207
207
  name: string;
208
208
  })[];
@@ -213,9 +213,9 @@ export declare const MotionTaskSchema: z.ZodObject<{
213
213
  }[] | undefined;
214
214
  }, {
215
215
  id: string;
216
+ type: string;
216
217
  name: string;
217
218
  teamId: string | null;
218
- type: string;
219
219
  labels: (string | {
220
220
  name: string;
221
221
  })[];
@@ -321,9 +321,9 @@ export declare const MotionTaskSchema: z.ZodObject<{
321
321
  schedulingIssue: boolean;
322
322
  workspace: {
323
323
  id: string;
324
+ type: string;
324
325
  name: string;
325
326
  teamId: string | null;
326
- type: string;
327
327
  labels: (string | {
328
328
  name: string;
329
329
  })[];
@@ -398,9 +398,9 @@ export declare const MotionTaskSchema: z.ZodObject<{
398
398
  schedulingIssue: boolean;
399
399
  workspace: {
400
400
  id: string;
401
+ type: string;
401
402
  name: string;
402
403
  teamId: string | null;
403
- type: string;
404
404
  labels: (string | {
405
405
  name: string;
406
406
  })[];
@@ -639,9 +639,9 @@ export declare const MotionRecurringTaskSchema: z.ZodObject<{
639
639
  }>, "many">>;
640
640
  }, "strip", z.ZodTypeAny, {
641
641
  id: string;
642
+ type: string;
642
643
  name: string;
643
644
  teamId: string | null;
644
- type: string;
645
645
  labels: (string | {
646
646
  name: string;
647
647
  })[];
@@ -652,9 +652,9 @@ export declare const MotionRecurringTaskSchema: z.ZodObject<{
652
652
  }[] | undefined;
653
653
  }, {
654
654
  id: string;
655
+ type: string;
655
656
  name: string;
656
657
  teamId: string | null;
657
- type: string;
658
658
  labels: (string | {
659
659
  name: string;
660
660
  })[];
@@ -704,9 +704,9 @@ export declare const MotionRecurringTaskSchema: z.ZodObject<{
704
704
  };
705
705
  workspace: {
706
706
  id: string;
707
+ type: string;
707
708
  name: string;
708
709
  teamId: string | null;
709
- type: string;
710
710
  labels: (string | {
711
711
  name: string;
712
712
  })[];
@@ -755,9 +755,9 @@ export declare const MotionRecurringTaskSchema: z.ZodObject<{
755
755
  };
756
756
  workspace: {
757
757
  id: string;
758
+ type: string;
758
759
  name: string;
759
760
  teamId: string | null;
760
- type: string;
761
761
  labels: (string | {
762
762
  name: string;
763
763
  })[];
@@ -1247,9 +1247,9 @@ export declare const TasksResponseSchema: z.ZodObject<{
1247
1247
  }>, "many">>;
1248
1248
  }, "strip", z.ZodTypeAny, {
1249
1249
  id: string;
1250
+ type: string;
1250
1251
  name: string;
1251
1252
  teamId: string | null;
1252
- type: string;
1253
1253
  labels: (string | {
1254
1254
  name: string;
1255
1255
  })[];
@@ -1260,9 +1260,9 @@ export declare const TasksResponseSchema: z.ZodObject<{
1260
1260
  }[] | undefined;
1261
1261
  }, {
1262
1262
  id: string;
1263
+ type: string;
1263
1264
  name: string;
1264
1265
  teamId: string | null;
1265
- type: string;
1266
1266
  labels: (string | {
1267
1267
  name: string;
1268
1268
  })[];
@@ -1368,9 +1368,9 @@ export declare const TasksResponseSchema: z.ZodObject<{
1368
1368
  schedulingIssue: boolean;
1369
1369
  workspace: {
1370
1370
  id: string;
1371
+ type: string;
1371
1372
  name: string;
1372
1373
  teamId: string | null;
1373
- type: string;
1374
1374
  labels: (string | {
1375
1375
  name: string;
1376
1376
  })[];
@@ -1445,9 +1445,9 @@ export declare const TasksResponseSchema: z.ZodObject<{
1445
1445
  schedulingIssue: boolean;
1446
1446
  workspace: {
1447
1447
  id: string;
1448
+ type: string;
1448
1449
  name: string;
1449
1450
  teamId: string | null;
1450
- type: string;
1451
1451
  labels: (string | {
1452
1452
  name: string;
1453
1453
  })[];
@@ -1524,9 +1524,9 @@ export declare const TasksResponseSchema: z.ZodObject<{
1524
1524
  schedulingIssue: boolean;
1525
1525
  workspace: {
1526
1526
  id: string;
1527
+ type: string;
1527
1528
  name: string;
1528
1529
  teamId: string | null;
1529
- type: string;
1530
1530
  labels: (string | {
1531
1531
  name: string;
1532
1532
  })[];
@@ -1607,9 +1607,9 @@ export declare const TasksResponseSchema: z.ZodObject<{
1607
1607
  schedulingIssue: boolean;
1608
1608
  workspace: {
1609
1609
  id: string;
1610
+ type: string;
1610
1611
  name: string;
1611
1612
  teamId: string | null;
1612
- type: string;
1613
1613
  labels: (string | {
1614
1614
  name: string;
1615
1615
  })[];
@@ -1918,9 +1918,9 @@ export declare const WorkspacesResponseSchema: z.ZodObject<{
1918
1918
  }>, "many">>;
1919
1919
  }, "strip", z.ZodTypeAny, {
1920
1920
  id: string;
1921
+ type: string;
1921
1922
  name: string;
1922
1923
  teamId: string | null;
1923
- type: string;
1924
1924
  labels: (string | {
1925
1925
  name: string;
1926
1926
  })[];
@@ -1931,9 +1931,9 @@ export declare const WorkspacesResponseSchema: z.ZodObject<{
1931
1931
  }[] | undefined;
1932
1932
  }, {
1933
1933
  id: string;
1934
+ type: string;
1934
1935
  name: string;
1935
1936
  teamId: string | null;
1936
- type: string;
1937
1937
  labels: (string | {
1938
1938
  name: string;
1939
1939
  })[];
@@ -1946,9 +1946,9 @@ export declare const WorkspacesResponseSchema: z.ZodObject<{
1946
1946
  }, "strip", z.ZodTypeAny, {
1947
1947
  workspaces: {
1948
1948
  id: string;
1949
+ type: string;
1949
1950
  name: string;
1950
1951
  teamId: string | null;
1951
- type: string;
1952
1952
  labels: (string | {
1953
1953
  name: string;
1954
1954
  })[];
@@ -1965,9 +1965,9 @@ export declare const WorkspacesResponseSchema: z.ZodObject<{
1965
1965
  }, {
1966
1966
  workspaces: {
1967
1967
  id: string;
1968
+ type: string;
1968
1969
  name: string;
1969
1970
  teamId: string | null;
1970
- type: string;
1971
1971
  labels: (string | {
1972
1972
  name: string;
1973
1973
  })[];
@@ -2106,9 +2106,9 @@ export declare const RecurringTasksResponseSchema: z.ZodObject<{
2106
2106
  }>, "many">>;
2107
2107
  }, "strip", z.ZodTypeAny, {
2108
2108
  id: string;
2109
+ type: string;
2109
2110
  name: string;
2110
2111
  teamId: string | null;
2111
- type: string;
2112
2112
  labels: (string | {
2113
2113
  name: string;
2114
2114
  })[];
@@ -2119,9 +2119,9 @@ export declare const RecurringTasksResponseSchema: z.ZodObject<{
2119
2119
  }[] | undefined;
2120
2120
  }, {
2121
2121
  id: string;
2122
+ type: string;
2122
2123
  name: string;
2123
2124
  teamId: string | null;
2124
- type: string;
2125
2125
  labels: (string | {
2126
2126
  name: string;
2127
2127
  })[];
@@ -2171,9 +2171,9 @@ export declare const RecurringTasksResponseSchema: z.ZodObject<{
2171
2171
  };
2172
2172
  workspace: {
2173
2173
  id: string;
2174
+ type: string;
2174
2175
  name: string;
2175
2176
  teamId: string | null;
2176
- type: string;
2177
2177
  labels: (string | {
2178
2178
  name: string;
2179
2179
  })[];
@@ -2222,9 +2222,9 @@ export declare const RecurringTasksResponseSchema: z.ZodObject<{
2222
2222
  };
2223
2223
  workspace: {
2224
2224
  id: string;
2225
+ type: string;
2225
2226
  name: string;
2226
2227
  teamId: string | null;
2227
- type: string;
2228
2228
  labels: (string | {
2229
2229
  name: string;
2230
2230
  })[];
@@ -2275,9 +2275,9 @@ export declare const RecurringTasksResponseSchema: z.ZodObject<{
2275
2275
  };
2276
2276
  workspace: {
2277
2277
  id: string;
2278
+ type: string;
2278
2279
  name: string;
2279
2280
  teamId: string | null;
2280
- type: string;
2281
2281
  labels: (string | {
2282
2282
  name: string;
2283
2283
  })[];
@@ -2332,9 +2332,9 @@ export declare const RecurringTasksResponseSchema: z.ZodObject<{
2332
2332
  };
2333
2333
  workspace: {
2334
2334
  id: string;
2335
+ type: string;
2335
2336
  name: string;
2336
2337
  teamId: string | null;
2337
- type: string;
2338
2338
  labels: (string | {
2339
2339
  name: string;
2340
2340
  })[];
@@ -3241,9 +3241,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3241
3241
  }>, "many">>;
3242
3242
  }, "strip", z.ZodTypeAny, {
3243
3243
  id: string;
3244
+ type: string;
3244
3245
  name: string;
3245
3246
  teamId: string | null;
3246
- type: string;
3247
3247
  labels: (string | {
3248
3248
  name: string;
3249
3249
  })[];
@@ -3254,9 +3254,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3254
3254
  }[] | undefined;
3255
3255
  }, {
3256
3256
  id: string;
3257
+ type: string;
3257
3258
  name: string;
3258
3259
  teamId: string | null;
3259
- type: string;
3260
3260
  labels: (string | {
3261
3261
  name: string;
3262
3262
  })[];
@@ -3362,9 +3362,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3362
3362
  schedulingIssue: boolean;
3363
3363
  workspace: {
3364
3364
  id: string;
3365
+ type: string;
3365
3366
  name: string;
3366
3367
  teamId: string | null;
3367
- type: string;
3368
3368
  labels: (string | {
3369
3369
  name: string;
3370
3370
  })[];
@@ -3439,9 +3439,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3439
3439
  schedulingIssue: boolean;
3440
3440
  workspace: {
3441
3441
  id: string;
3442
+ type: string;
3442
3443
  name: string;
3443
3444
  teamId: string | null;
3444
- type: string;
3445
3445
  labels: (string | {
3446
3446
  name: string;
3447
3447
  })[];
@@ -3518,9 +3518,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3518
3518
  schedulingIssue: boolean;
3519
3519
  workspace: {
3520
3520
  id: string;
3521
+ type: string;
3521
3522
  name: string;
3522
3523
  teamId: string | null;
3523
- type: string;
3524
3524
  labels: (string | {
3525
3525
  name: string;
3526
3526
  })[];
@@ -3601,9 +3601,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3601
3601
  schedulingIssue: boolean;
3602
3602
  workspace: {
3603
3603
  id: string;
3604
+ type: string;
3604
3605
  name: string;
3605
3606
  teamId: string | null;
3606
- type: string;
3607
3607
  labels: (string | {
3608
3608
  name: string;
3609
3609
  })[];
@@ -3753,9 +3753,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3753
3753
  }>, "many">>;
3754
3754
  }, "strip", z.ZodTypeAny, {
3755
3755
  id: string;
3756
+ type: string;
3756
3757
  name: string;
3757
3758
  teamId: string | null;
3758
- type: string;
3759
3759
  labels: (string | {
3760
3760
  name: string;
3761
3761
  })[];
@@ -3766,9 +3766,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3766
3766
  }[] | undefined;
3767
3767
  }, {
3768
3768
  id: string;
3769
+ type: string;
3769
3770
  name: string;
3770
3771
  teamId: string | null;
3771
- type: string;
3772
3772
  labels: (string | {
3773
3773
  name: string;
3774
3774
  })[];
@@ -3874,9 +3874,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3874
3874
  schedulingIssue: boolean;
3875
3875
  workspace: {
3876
3876
  id: string;
3877
+ type: string;
3877
3878
  name: string;
3878
3879
  teamId: string | null;
3879
- type: string;
3880
3880
  labels: (string | {
3881
3881
  name: string;
3882
3882
  })[];
@@ -3951,9 +3951,9 @@ export declare const TasksListResponseSchema: z.ZodUnion<[z.ZodObject<{
3951
3951
  schedulingIssue: boolean;
3952
3952
  workspace: {
3953
3953
  id: string;
3954
+ type: string;
3954
3955
  name: string;
3955
3956
  teamId: string | null;
3956
- type: string;
3957
3957
  labels: (string | {
3958
3958
  name: string;
3959
3959
  })[];
@@ -4055,9 +4055,9 @@ export declare const WorkspacesListResponseSchema: z.ZodUnion<[z.ZodObject<{
4055
4055
  }>, "many">>;
4056
4056
  }, "strip", z.ZodTypeAny, {
4057
4057
  id: string;
4058
+ type: string;
4058
4059
  name: string;
4059
4060
  teamId: string | null;
4060
- type: string;
4061
4061
  labels: (string | {
4062
4062
  name: string;
4063
4063
  })[];
@@ -4068,9 +4068,9 @@ export declare const WorkspacesListResponseSchema: z.ZodUnion<[z.ZodObject<{
4068
4068
  }[] | undefined;
4069
4069
  }, {
4070
4070
  id: string;
4071
+ type: string;
4071
4072
  name: string;
4072
4073
  teamId: string | null;
4073
- type: string;
4074
4074
  labels: (string | {
4075
4075
  name: string;
4076
4076
  })[];
@@ -4083,9 +4083,9 @@ export declare const WorkspacesListResponseSchema: z.ZodUnion<[z.ZodObject<{
4083
4083
  }, "strip", z.ZodTypeAny, {
4084
4084
  workspaces: {
4085
4085
  id: string;
4086
+ type: string;
4086
4087
  name: string;
4087
4088
  teamId: string | null;
4088
- type: string;
4089
4089
  labels: (string | {
4090
4090
  name: string;
4091
4091
  })[];
@@ -4102,9 +4102,9 @@ export declare const WorkspacesListResponseSchema: z.ZodUnion<[z.ZodObject<{
4102
4102
  }, {
4103
4103
  workspaces: {
4104
4104
  id: string;
4105
+ type: string;
4105
4106
  name: string;
4106
4107
  teamId: string | null;
4107
- type: string;
4108
4108
  labels: (string | {
4109
4109
  name: string;
4110
4110
  })[];
@@ -4145,9 +4145,9 @@ export declare const WorkspacesListResponseSchema: z.ZodUnion<[z.ZodObject<{
4145
4145
  }>, "many">>;
4146
4146
  }, "strip", z.ZodTypeAny, {
4147
4147
  id: string;
4148
+ type: string;
4148
4149
  name: string;
4149
4150
  teamId: string | null;
4150
- type: string;
4151
4151
  labels: (string | {
4152
4152
  name: string;
4153
4153
  })[];
@@ -4158,9 +4158,9 @@ export declare const WorkspacesListResponseSchema: z.ZodUnion<[z.ZodObject<{
4158
4158
  }[] | undefined;
4159
4159
  }, {
4160
4160
  id: string;
4161
+ type: string;
4161
4162
  name: string;
4162
4163
  teamId: string | null;
4163
- type: string;
4164
4164
  labels: (string | {
4165
4165
  name: string;
4166
4166
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"motionApi.d.ts","sourceRoot":"","sources":["../../src/services/motionApi.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,aAAa,EACb,UAAU,EACV,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACd,YAAY,EAIZ,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAqE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAuBtH,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,cAAc,CAAiC;IACvD,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,YAAY,CAA+B;IACnD,OAAO,CAAC,kBAAkB,CAA6B;IACvD,OAAO,CAAC,YAAY,CAAsD;IAC1E,OAAO,CAAC,gBAAgB,CAAmC;IAC3D,OAAO,CAAC,kBAAkB,CAAqC;IA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KG;IACG,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAmC/F;;;;;OAKG;IACG,iBAAiB,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAW,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAmDpG;;;;OAIG;IACG,mBAAmB,CAAC,QAAQ,EAAE,uBAAuB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAwD1F;;;;OAIG;IACG,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAgCjF;;;;OAIG;IACG,yBAAyB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IA4BxE;;;;;;OAMG;IACG,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IA6DpG;;;;;OAKG;IACG,WAAW,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAqDhE;;;OAGG;IACG,sBAAsB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;CA0FpE"}
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.MotionApiService = void 0;
37
37
  const axios_1 = __importStar(require("axios"));
38
38
  const constants_1 = require("../utils/constants");
39
+ const frequencyTransform_1 = require("../utils/frequencyTransform");
39
40
  const logger_1 = require("../utils/logger");
40
41
  const cache_1 = require("../utils/cache");
41
42
  const paginationNew_1 = require("../utils/paginationNew");
@@ -1659,15 +1660,30 @@ class MotionApiService {
1659
1660
  */
1660
1661
  async createRecurringTask(taskData) {
1661
1662
  try {
1663
+ // Validate frequency object before transformation
1664
+ const freqValidation = (0, frequencyTransform_1.validateFrequencyObject)(taskData.frequency);
1665
+ if (!freqValidation.valid) {
1666
+ throw new Error(`Invalid frequency object: ${freqValidation.reason || 'Unknown reason'}`);
1667
+ }
1668
+ // Transform frequency object to API string format
1669
+ const frequencyString = (0, frequencyTransform_1.transformFrequencyToApiString)(taskData.frequency);
1662
1670
  (0, logger_1.mcpLog)(constants_1.LOG_LEVELS.DEBUG, 'Creating recurring task in Motion API', {
1663
1671
  method: 'createRecurringTask',
1664
1672
  name: taskData.name,
1665
1673
  assigneeId: taskData.assigneeId,
1666
- frequency: taskData.frequency.type,
1674
+ frequency: frequencyString,
1675
+ originalFrequency: taskData.frequency,
1667
1676
  workspaceId: taskData.workspaceId
1668
1677
  });
1678
+ // Create payload with transformed frequency while preserving other frequency fields
1679
+ const apiPayload = {
1680
+ ...taskData,
1681
+ frequency: frequencyString,
1682
+ // Preserve endDate and other fields that should be sent separately to the API
1683
+ ...(taskData.frequency.endDate && { endDate: taskData.frequency.endDate })
1684
+ };
1669
1685
  // Create minimal payload by removing empty/null values to avoid validation errors
1670
- const minimalPayload = (0, constants_1.createMinimalPayload)(taskData);
1686
+ const minimalPayload = (0, constants_1.createMinimalPayload)(apiPayload);
1671
1687
  const response = await this.requestWithRetry(() => this.client.post('/recurring-tasks', minimalPayload));
1672
1688
  // Invalidate cache after successful creation
1673
1689
  this.recurringTaskCache.invalidate('recurring-tasks:');