pyrus-api 2.0.0 → 2.1.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.
@@ -664,6 +664,12 @@ class ListsApi extends BaseApi {
664
664
  return yield this.fetchApi(yield this.getModulePath(), "PUT", JSON.stringify(request));
665
665
  });
666
666
  }
667
+ get(request) {
668
+ return __awaiter(this, void 0, void 0, function* () {
669
+ return yield this.fetchApi((yield this.getModulePath()) +
670
+ `/${request.id}`, "GET");
671
+ });
672
+ }
667
673
  delete(request) {
668
674
  return __awaiter(this, void 0, void 0, function* () {
669
675
  return yield this.fetchApi((yield this.getModulePath()) + `/${request.id}`, "DELETE", JSON.stringify(request));
@@ -662,6 +662,12 @@ class ListsApi extends BaseApi {
662
662
  return yield this.fetchApi(yield this.getModulePath(), "PUT", JSON.stringify(request));
663
663
  });
664
664
  }
665
+ get(request) {
666
+ return __awaiter(this, void 0, void 0, function* () {
667
+ return yield this.fetchApi((yield this.getModulePath()) +
668
+ `/${request.id}`, "GET");
669
+ });
670
+ }
665
671
  delete(request) {
666
672
  return __awaiter(this, void 0, void 0, function* () {
667
673
  return yield this.fetchApi((yield this.getModulePath()) + `/${request.id}`, "DELETE", JSON.stringify(request));
@@ -951,6 +951,7 @@ declare module "pyrus-api" {
951
951
  getTasksInList(listId: number, request?: TaskListRequest): Promise<TaskListResponse>;
952
952
  getInbox(request?: InboxRequest): Promise<TaskListResponse>;
953
953
  create(request: CreateListRequest): Promise<PlainTaskList>;
954
+ get(request: ById): Promise<TaskList>;
954
955
  delete(request: ById): Promise<void>;
955
956
  update(request: UpdateListRequest): Promise<PlainTaskList>;
956
957
  }
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
- {
2
- "name": "pyrus-api",
3
- "version": "2.0.0",
4
- "description": "Pyrus API client for TypeScript",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/simplygoodsoftware/pyrusapi-typescript.git"
8
- },
9
- "type": "module",
10
- "main": "./build/cjs/index.js",
11
- "module": "./build/esm/index.js",
12
- "types": "./build/types/index.d.ts",
13
- "exports": {
14
- "require": {
15
- "default": "./build/cjs/index.cjs"
16
- },
17
- "import": {
18
- "default": "./build/esm/index.js"
19
- },
20
- "types": {
21
- "default": "./build/types/index.d.ts"
22
- }
23
- },
24
- "scripts": {
25
- "build": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript && dts-bundle-generator --project tsconfig.types.json --no-banner -o ./build/types/index.d.ts index.ts && node ./module-wrapper.js",
26
- "prepare": "husky"
27
- },
28
- "author": {
29
- "name": "Pyrus",
30
- "email": "contact@pyrus.com"
31
- },
32
- "license": "MIT",
33
- "devDependencies": {
34
- "@rollup/plugin-typescript": "^11.1.6",
35
- "@types/node": "^22.5.4",
36
- "@types/rollup": "^0.54.0",
37
- "dts-bundle-generator": "^9.5.1",
38
- "husky": "^9.1.6",
39
- "lint-staged": "^15.2.10",
40
- "prettier": "2.5.1",
41
- "rollup": "^4.21.2",
42
- "rollup-plugin-cleandir": "^3.0.0",
43
- "rollup-plugin-typescript2": "^0.36.0"
44
- },
45
- "lint-staged": {
46
- "**/*": "prettier --write --ignore-unknown"
47
- }
48
- }
1
+ {
2
+ "name": "pyrus-api",
3
+ "version": "2.1.0",
4
+ "description": "Pyrus API client for TypeScript",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/simplygoodsoftware/pyrusapi-typescript.git"
8
+ },
9
+ "type": "module",
10
+ "main": "./build/cjs/index.js",
11
+ "module": "./build/esm/index.js",
12
+ "types": "./build/types/index.d.ts",
13
+ "exports": {
14
+ "require": {
15
+ "default": "./build/cjs/index.cjs"
16
+ },
17
+ "import": {
18
+ "default": "./build/esm/index.js"
19
+ },
20
+ "types": {
21
+ "default": "./build/types/index.d.ts"
22
+ }
23
+ },
24
+ "scripts": {
25
+ "build": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript && dts-bundle-generator --project tsconfig.types.json --no-banner -o ./build/types/index.d.ts index.ts && node ./module-wrapper.js",
26
+ "prepare": "husky"
27
+ },
28
+ "author": {
29
+ "name": "Pyrus",
30
+ "email": "contact@pyrus.com"
31
+ },
32
+ "license": "MIT",
33
+ "devDependencies": {
34
+ "@rollup/plugin-typescript": "^11.1.6",
35
+ "@types/node": "^22.5.4",
36
+ "@types/rollup": "^0.54.0",
37
+ "dts-bundle-generator": "^9.5.1",
38
+ "husky": "^9.1.6",
39
+ "lint-staged": "^15.2.10",
40
+ "prettier": "2.5.1",
41
+ "rollup": "^4.21.2",
42
+ "rollup-plugin-cleandir": "^3.0.0",
43
+ "rollup-plugin-typescript2": "^0.36.0"
44
+ },
45
+ "lint-staged": {
46
+ "**/*": "prettier --write --ignore-unknown"
47
+ }
48
+ }