bkper-js 1.34.5 → 1.34.7

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 CHANGED
@@ -249,6 +249,11 @@ export declare class Agent {
249
249
  * @returns The Agent logo url
250
250
  */
251
251
  getLogoUrl(): string | undefined;
252
+ /**
253
+ *
254
+ * @returns The Agent logo url in dark mode
255
+ */
256
+ getLogoUrlDark(): string | undefined;
252
257
  }
253
258
 
254
259
  /**
@@ -381,6 +386,10 @@ export declare class App {
381
386
  * @return The events bound to this App
382
387
  */
383
388
  getEvents(): EventType[] | undefined;
389
+ /**
390
+ * @return True if this App is published
391
+ */
392
+ isPublished(): boolean;
384
393
  /**
385
394
  * @return True if this App is conversational
386
395
  */
@@ -403,6 +412,18 @@ export declare class App {
403
412
  * @returns This App for chaining
404
413
  */
405
414
  setUserEmails(emails?: string): App;
415
+ /**
416
+ * @return The name of the owner of this App
417
+ */
418
+ getOwnerName(): string | undefined;
419
+ /**
420
+ * @return The logo url of the owner of this App
421
+ */
422
+ getOwnerLogoUrl(): string | undefined;
423
+ /**
424
+ * @return The file patterns the App handles - E.g *.pdf *.csv
425
+ */
426
+ getFilePatterns(): string[] | undefined;
406
427
  /**
407
428
  * Sets the developer email
408
429
  *
@@ -36,5 +36,12 @@ export class Agent {
36
36
  getLogoUrl() {
37
37
  return this.payload.logo;
38
38
  }
39
+ /**
40
+ *
41
+ * @returns The Agent logo url in dark mode
42
+ */
43
+ getLogoUrlDark() {
44
+ return this.payload.logoDark;
45
+ }
39
46
  }
40
47
  //# sourceMappingURL=Agent.js.map
package/lib/model/App.js CHANGED
@@ -71,6 +71,12 @@ export class App {
71
71
  getEvents() {
72
72
  return this.payload.events;
73
73
  }
74
+ /**
75
+ * @return True if this App is published
76
+ */
77
+ isPublished() {
78
+ return this.payload.published || false;
79
+ }
74
80
  /**
75
81
  * @return True if this App is conversational
76
82
  */
@@ -104,6 +110,24 @@ export class App {
104
110
  this.payload.userEmails = emails;
105
111
  return this;
106
112
  }
113
+ /**
114
+ * @return The name of the owner of this App
115
+ */
116
+ getOwnerName() {
117
+ return this.payload.ownerName;
118
+ }
119
+ /**
120
+ * @return The logo url of the owner of this App
121
+ */
122
+ getOwnerLogoUrl() {
123
+ return this.payload.ownerLogoUrl;
124
+ }
125
+ /**
126
+ * @return The file patterns the App handles - E.g *.pdf *.csv
127
+ */
128
+ getFilePatterns() {
129
+ return this.payload.filePatterns;
130
+ }
107
131
  /**
108
132
  * Sets the developer email
109
133
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "1.34.5",
3
+ "version": "1.34.7",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",