@allthings/sdk 4.7.0 → 5.0.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.
@@ -12,10 +12,12 @@ export declare type CreateAppResult = Promise<IApp>;
12
12
  export declare type MethodAppCreate = (userId: string, data: PartialApp & {
13
13
  readonly name: string;
14
14
  readonly siteUrl: string;
15
+ readonly notificationsEmailAddress: string;
15
16
  }) => CreateAppResult;
16
17
  export declare function appCreate(client: IAllthingsRestClient, userId: string, data: PartialApp & {
17
18
  readonly name: string;
18
19
  readonly siteUrl: string;
20
+ readonly notificationsEmailAddress: string;
19
21
  }): CreateAppResult;
20
22
  export declare type MethodAppGetById = (appId: string) => AppResult;
21
23
  export declare function appGetById(client: IAllthingsRestClient, appId: string): AppResult;
@@ -0,0 +1,15 @@
1
+ import { IAllthingsRestClient } from '../types';
2
+ export interface IBooking {
3
+ readonly additionalInformation: string;
4
+ readonly dateFrom: string;
5
+ readonly dateTo: string;
6
+ readonly id: string;
7
+ readonly message: string;
8
+ readonly phoneNumber: string;
9
+ }
10
+ export declare type PartialBooking = Partial<IBooking>;
11
+ export declare type BookingResult = Promise<IBooking>;
12
+ export declare type MethodBookingGetById = (bookingId: string) => BookingResult;
13
+ export declare function bookingGetById(client: IAllthingsRestClient, bookingId: string): BookingResult;
14
+ export declare type MethodBookingUpdateById = (bookingId: string, data: PartialBooking) => BookingResult;
15
+ export declare function bookingUpdateById(client: IAllthingsRestClient, bookingId: string, data: PartialBooking): BookingResult;
@@ -0,0 +1 @@
1
+ export {};
@@ -21,6 +21,7 @@ import { MethodUtilisationPeriodAddRegistrationCode, MethodUtilisationPeriodChec
21
21
  import { MethodHttpPatch } from './patch';
22
22
  import { MethodHttpPost } from './post';
23
23
  import { MethodHttpPut } from './put';
24
+ import { MethodBookingGetById, MethodBookingUpdateById } from './methods/booking';
24
25
  export declare enum EnumResource {
25
26
  group = "group",
26
27
  property = "property",
@@ -181,4 +182,6 @@ export interface IAllthingsRestClient {
181
182
  readonly utilisationPeriodCheckInUser: MethodUtilisationPeriodCheckInUser;
182
183
  readonly utilisationPeriodCheckOutUser: MethodUtilisationPeriodCheckOutUser;
183
184
  readonly utilisationPeriodAddRegistrationCode: MethodUtilisationPeriodAddRegistrationCode;
185
+ readonly bookingGetById: MethodBookingGetById;
186
+ readonly bookingUpdateById: MethodBookingUpdateById;
184
187
  }
@@ -13,3 +13,4 @@ export declare const INPUT_CHANNEL = EnumInputChannel.EMAIL;
13
13
  export declare const SERVICE_PROVIDER_ID = "5a818c07ef5f2f00441146a2";
14
14
  export declare const USER_ID = "50f66beaeabc88ab0e000000";
15
15
  export declare const UTILISATION_PERIOD_ID = "5a9d65cd0ecb330045742be3";
16
+ export declare const BOOKING_ID = "5aa68870d4959e00447d6f87";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/sdk",
3
- "version": "4.7.0",
3
+ "version": "5.0.0",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "maintainers": [
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "homepage": "https://github.com/allthings/node-sdk",
22
22
  "engines": {
23
- "node": ">= 8.10"
23
+ "node": ">=14.19"
24
24
  },
25
25
  "main": "dist/lib.cjs.js",
26
26
  "module": "dist/lib.esm.js",
@@ -46,9 +46,10 @@
46
46
  "prebuild": "npm run clean",
47
47
  "build": "tsc -d && cp package.json dist/ && rollup -c && rm dist/package.json",
48
48
  "dev": "tsc -w",
49
+ "prepare": "husky install",
49
50
  "prepublishOnly": "npm run build",
50
51
  "prettier": "prettier --write",
51
- "security-check": "yarn audit",
52
+ "security-check": "yarn audit --groups dependencies --level high || test $? -lt 7",
52
53
  "upgrade-dependencies": "yarn upgrade-interactive --latest --exact",
53
54
  "semantic-release": "echo \"Setting npm unsafe-perm to true due to our Docker/Buildkite root permissions\" && npm set unsafe-perm true && semantic-release",
54
55
  "serve": "npx serve -l 3333",
@@ -57,36 +58,37 @@
57
58
  },
58
59
  "dependencies": {
59
60
  "bottleneck": "2.19.5",
60
- "cross-fetch": "3.1.0",
61
+ "cross-fetch": "3.1.5",
61
62
  "query-string": "6.14.1"
62
63
  },
63
64
  "devDependencies": {
64
65
  "@allthings/tslint-preset": "2.0.0",
65
- "@commitlint/cli": "8.3.5",
66
- "@commitlint/config-conventional": "8.3.4",
67
- "@types/form-data": "2.2.1",
68
- "@types/jest": "26.0.20",
69
- "@types/node": "10.17.55",
70
- "@types/query-string": "6.2.0",
71
- "coveralls": "3.1.0",
72
- "form-data": "3.0.1",
73
- "husky": "4.3.8",
66
+ "@commitlint/cli": "16.2.4",
67
+ "@commitlint/config-conventional": "16.2.4",
68
+ "@types/form-data": "2.5.0",
69
+ "@types/jest": "26.0.24",
70
+ "@types/node": "17.0.31",
71
+ "@types/query-string": "6.3.0",
72
+ "coveralls": "3.1.1",
73
+ "form-data": "4.0.0",
74
+ "husky": "8.0.1",
74
75
  "jest": "26.6.3",
75
- "lint-staged": "10.5.4",
76
- "nanoid": "3.1.21",
77
- "prettier": "2.2.1",
76
+ "jest-environment-jsdom": "26.6.2",
77
+ "lint-staged": "12.4.1",
78
+ "nanoid": "3.3.4",
79
+ "prettier": "2.6.2",
78
80
  "rimraf": "3.0.2",
79
- "rollup": "2.41.2",
81
+ "rollup": "2.72.1",
80
82
  "rollup-plugin-commonjs": "10.1.0",
81
- "rollup-plugin-hashbang": "2.2.2",
83
+ "rollup-plugin-hashbang": "3.0.0",
82
84
  "rollup-plugin-json": "4.0.0",
83
85
  "rollup-plugin-node-resolve": "5.2.0",
84
86
  "rollup-plugin-replace": "2.2.0",
85
- "rollup-plugin-terser": "5.3.1",
86
- "semantic-release": "17.4.2",
87
- "ts-jest": "26.5.3",
88
- "tslint": "5.20.1",
89
- "typescript": "4.2.3"
87
+ "rollup-plugin-terser": "7.0.2",
88
+ "semantic-release": "19.0.2",
89
+ "ts-jest": "26.5.6",
90
+ "tslint": "6.1.3",
91
+ "typescript": "4.6.4"
90
92
  },
91
93
  "prettier": {
92
94
  "printWidth": 80,
@@ -149,25 +151,8 @@
149
151
  "/test/"
150
152
  ]
151
153
  },
152
- "husky": {
153
- "hooks": {
154
- "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
155
- "pre-commit": "lint-staged"
156
- }
157
- },
158
154
  "release": {
159
155
  "branch": "master",
160
156
  "repositoryUrl": "https://github.com/allthings/node-sdk.git"
161
- },
162
- "resolutions": {
163
- "lodash": ">=4.17.21",
164
- "hosted-git-info": ">=2.8.9 <3.0.0 || >=3.0.8",
165
- "handlebars": ">=4.7.7",
166
- "y18n": ">=5.0.5||>=4.0.1 <5.0.0||>=3.2.2 <4.0.0",
167
- "ssri": ">=6.0.2 <7.0.0 || >=8.0.1",
168
- "yargs-parser": ">=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2",
169
- "dot-prop": ">=4.2.1 <5.0.0 || >=5.1.1",
170
- "minimist": ">=1.2.3",
171
- "set-value": ">=2.0.1"
172
157
  }
173
158
  }