bkper-js 1.29.0 → 1.30.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.
- package/lib/index.d.ts +11 -0
- package/lib/model/App.js +17 -6
- package/lib/model/Book.js +2 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -357,6 +357,13 @@ export declare class App {
|
|
|
357
357
|
* @returns This App, for chainning.
|
|
358
358
|
*/
|
|
359
359
|
setWebhookUrlDev(webhookUrlDev: string): App;
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* Sets the conversation url for development.
|
|
363
|
+
*
|
|
364
|
+
* @returns This App, for chainning.
|
|
365
|
+
*/
|
|
366
|
+
setConversationUrlDev(conversationUrlDev: string): App;
|
|
360
367
|
/**
|
|
361
368
|
*
|
|
362
369
|
* @returns The App universal identifier
|
|
@@ -378,6 +385,10 @@ export declare class App {
|
|
|
378
385
|
* @return The logo url of this App
|
|
379
386
|
*/
|
|
380
387
|
getLogoUrl(): string | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* @return The logo url of this App in dark mode
|
|
390
|
+
*/
|
|
391
|
+
getLogoUrlDark(): string | undefined;
|
|
381
392
|
/**
|
|
382
393
|
* @return The description of this App
|
|
383
394
|
*/
|
package/lib/model/App.js
CHANGED
|
@@ -32,12 +32,17 @@ export class App {
|
|
|
32
32
|
* @returns This App, for chainning.
|
|
33
33
|
*/
|
|
34
34
|
setWebhookUrlDev(webhookUrlDev) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
this.payload.webhookUrlDev = webhookUrlDev;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* Sets the conversation url for development.
|
|
41
|
+
*
|
|
42
|
+
* @returns This App, for chainning.
|
|
43
|
+
*/
|
|
44
|
+
setConversationUrlDev(conversationUrlDev) {
|
|
45
|
+
this.payload.conversationUrlDev = conversationUrlDev;
|
|
41
46
|
return this;
|
|
42
47
|
}
|
|
43
48
|
/**
|
|
@@ -72,6 +77,12 @@ export class App {
|
|
|
72
77
|
getLogoUrl() {
|
|
73
78
|
return this.payload.logoUrl;
|
|
74
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* @return The logo url of this App in dark mode
|
|
82
|
+
*/
|
|
83
|
+
getLogoUrlDark() {
|
|
84
|
+
return this.payload.logoUrlDark;
|
|
85
|
+
}
|
|
75
86
|
/**
|
|
76
87
|
* @return The description of this App
|
|
77
88
|
*/
|
package/lib/model/Book.js
CHANGED
|
@@ -430,7 +430,8 @@ export class Book {
|
|
|
430
430
|
*/
|
|
431
431
|
batchReplayEvents(events, errorOnly) {
|
|
432
432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
-
const
|
|
433
|
+
const eventIds = events.map(event => event.getId());
|
|
434
|
+
const eventPayloads = eventIds.map(id => ({ id: id }));
|
|
434
435
|
const eventList = { items: eventPayloads };
|
|
435
436
|
yield EventService.replayEventsBatch(this, eventList, errorOnly);
|
|
436
437
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "Javascript client for Bkper REST API",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\""
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@bkper/bkper-api-types": "^5.
|
|
37
|
+
"@bkper/bkper-api-types": "^5.15.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@google-cloud/local-auth": "^3.0.1",
|