@doist/todoist-api-typescript 3.0.0 → 3.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.
@@ -51,6 +51,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
53
  exports.request = exports.isSuccess = exports.paramsSerializer = void 0;
54
+ // eslint-disable-next-line import/no-named-as-default
54
55
  var axios_1 = __importDefault(require("axios"));
55
56
  var axios_case_converter_1 = __importDefault(require("axios-case-converter"));
56
57
  var errors_1 = require("./types/errors");
@@ -137,7 +138,9 @@ function request(httpMethod, baseUri, relativePath, apiToken, payload, requestId
137
138
  return [3 /*break*/, 8];
138
139
  case 2: return [4 /*yield*/, axiosClient.get(relativePath, {
139
140
  params: payload,
140
- paramsSerializer: paramsSerializer,
141
+ paramsSerializer: {
142
+ serialize: paramsSerializer,
143
+ },
141
144
  })];
142
145
  case 3: return [2 /*return*/, _b.sent()];
143
146
  case 4: return [4 /*yield*/, axiosClient.post(relativePath, payload)];
@@ -33,10 +33,10 @@ export declare const INVALID_TASK: {
33
33
  createdAt: string;
34
34
  url: string;
35
35
  creatorId: string;
36
- duration: {
36
+ duration?: {
37
37
  amount: number;
38
38
  unit: "minute" | "day";
39
- } | null;
39
+ } | null | undefined;
40
40
  assigneeId?: string | null | undefined;
41
41
  assignerId?: string | null | undefined;
42
42
  parentId?: string | null | undefined;
@@ -37,10 +37,6 @@ export declare const Task: import("runtypes").Intersect<[Record<{
37
37
  createdAt: String;
38
38
  url: String;
39
39
  creatorId: String;
40
- duration: Union<[Record<{
41
- amount: import("runtypes").Constraint<NumberRunType, number, unknown>;
42
- unit: Union<[Literal<"minute">, Literal<"day">]>;
43
- }, false>, Literal<null>]>;
44
40
  }, false>, Partial<{
45
41
  due: Union<[import("runtypes").Intersect<[Record<{
46
42
  isRecurring: Boolean;
@@ -51,6 +47,10 @@ export declare const Task: import("runtypes").Intersect<[Record<{
51
47
  timezone: Union<[String, Literal<null>]>;
52
48
  lang: Union<[String, Literal<null>]>;
53
49
  }, false>]>, Literal<null>]>;
50
+ duration: Union<[Record<{
51
+ amount: import("runtypes").Constraint<NumberRunType, number, unknown>;
52
+ unit: Union<[Literal<"minute">, Literal<"day">]>;
53
+ }, false>, Literal<null>]>;
54
54
  assigneeId: Union<[String, Literal<null>]>;
55
55
  assignerId: Union<[String, Literal<null>]>;
56
56
  parentId: Union<[String, Literal<null>]>;
@@ -29,9 +29,9 @@ exports.Task = (0, runtypes_1.Record)({
29
29
  createdAt: runtypes_1.String,
30
30
  url: runtypes_1.String,
31
31
  creatorId: runtypes_1.String,
32
- duration: exports.Duration.Or(runtypes_1.Null),
33
32
  }).And((0, runtypes_1.Partial)({
34
33
  due: exports.DueDate.Or(runtypes_1.Null),
34
+ duration: exports.Duration.Or(runtypes_1.Null),
35
35
  assigneeId: runtypes_1.String.Or(runtypes_1.Null),
36
36
  assignerId: runtypes_1.String.Or(runtypes_1.Null),
37
37
  parentId: runtypes_1.String.Or(runtypes_1.Null),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-api-typescript",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
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",
@@ -24,8 +24,8 @@
24
24
  "prepare": "npm run build"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "^0.27.0",
28
- "axios-case-converter": "^0.11.0",
27
+ "axios": "^1.0.0",
28
+ "axios-case-converter": "^1.0.0",
29
29
  "axios-retry": "^3.1.9",
30
30
  "runtypes": "^6.5.0",
31
31
  "ts-custom-error": "^3.2.0",
@@ -34,9 +34,8 @@
34
34
  "devDependencies": {
35
35
  "@doist/eslint-config": "8.1.3",
36
36
  "@doist/prettier-config": "3.0.5",
37
- "@types/axios": "0.14.0",
38
37
  "@types/jest": "29.4.0",
39
- "@types/uuid": "8.3.4",
38
+ "@types/uuid": "9.0.7",
40
39
  "@typescript-eslint/eslint-plugin": "5.54.1",
41
40
  "@typescript-eslint/parser": "5.54.1",
42
41
  "eslint": "8.35.0",