@allthings/sdk 4.5.0 → 4.8.1
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/README.md +29 -7
- package/dist/cli.js +134 -106
- package/dist/lib.cjs.js +149 -106
- package/dist/lib.esm.js +94 -77
- package/dist/lib.umd.min.js +1 -1
- package/dist/src/rest/methods/app.d.ts +6 -0
- package/dist/src/rest/methods/booking.d.ts +15 -0
- package/dist/src/rest/methods/booking.test.d.ts +1 -0
- package/dist/src/rest/methods/ticket.d.ts +8 -0
- package/dist/src/rest/types.d.ts +5 -1
- package/dist/test/constants.d.ts +1 -0
- package/package.json +20 -30
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ const client = allthings.restClient({
|
|
|
28
28
|
|
|
29
29
|
client
|
|
30
30
|
.getCurrentUser()
|
|
31
|
-
.then(viewer => console.log(`Welcome back ${viewer.username}!`))
|
|
31
|
+
.then((viewer) => console.log(`Welcome back ${viewer.username}!`))
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
<!--
|
|
@@ -83,7 +83,7 @@ const client = allthings.restClient({
|
|
|
83
83
|
|
|
84
84
|
client
|
|
85
85
|
.getCurrentUser()
|
|
86
|
-
.then(viewer => console.log(`Welcome back ${viewer.username}!`))
|
|
86
|
+
.then((viewer) => console.log(`Welcome back ${viewer.username}!`))
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
## OAuth Authorization Code Grant Example
|
|
@@ -249,12 +249,17 @@ export interface IAllthingsRestClient {
|
|
|
249
249
|
*/
|
|
250
250
|
readonly appCreate: MethodAppCreate
|
|
251
251
|
|
|
252
|
-
//
|
|
252
|
+
// Booking
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
|
-
*
|
|
255
|
+
* Get a booking by its ID
|
|
256
256
|
*/
|
|
257
|
-
readonly
|
|
257
|
+
readonly bookingGetById: MethodBookingGetById
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Update a booking by its ID
|
|
261
|
+
*/
|
|
262
|
+
readonly bookingUpdateById: MethodBookingUpdateById
|
|
258
263
|
|
|
259
264
|
// Group
|
|
260
265
|
|
|
@@ -273,6 +278,13 @@ export interface IAllthingsRestClient {
|
|
|
273
278
|
*/
|
|
274
279
|
readonly groupUpdateById: MethodGroupUpdateById
|
|
275
280
|
|
|
281
|
+
// ID Lookup
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Map one or more externalId's to API ObjectId's within the scope of a specified App
|
|
285
|
+
*/
|
|
286
|
+
readonly lookupIds: MethodLookupIds
|
|
287
|
+
|
|
276
288
|
// Notification
|
|
277
289
|
|
|
278
290
|
/**
|
|
@@ -443,5 +455,15 @@ export interface IAllthingsRestClient {
|
|
|
443
455
|
|
|
444
456
|
## Release management & versioning
|
|
445
457
|
|
|
446
|
-
|
|
447
|
-
|
|
458
|
+
!! DO NOT `npm version` !!
|
|
459
|
+
|
|
460
|
+
The Allthings SDK makes use of [semantic-release](https://github.com/semantic-release/semantic-release) which automates the whole package release workflow including:
|
|
461
|
+
|
|
462
|
+
- determining the next version number
|
|
463
|
+
- generating the release notes and publishing the package.
|
|
464
|
+
|
|
465
|
+
This repository is also configured to `squash-merge` ([see here](https://github.blog/2016-04-01-squash-your-commits/)).
|
|
466
|
+
When you squash merge, GitHub takes the title of the PR for the squash-merge's commit subject.
|
|
467
|
+
|
|
468
|
+
By choosing a proper PR title e.g. `feat: my new feature` your merged PR will trigger a new release.
|
|
469
|
+
See semantic-releases [docs](https://github.com/semantic-release/semantic-release#how-does-it-work) for available prefixes.
|