bkper-js 1.34.6 → 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
@@ -386,6 +386,10 @@ export declare class App {
386
386
  * @return The events bound to this App
387
387
  */
388
388
  getEvents(): EventType[] | undefined;
389
+ /**
390
+ * @return True if this App is published
391
+ */
392
+ isPublished(): boolean;
389
393
  /**
390
394
  * @return True if this App is conversational
391
395
  */
@@ -408,6 +412,18 @@ export declare class App {
408
412
  * @returns This App for chaining
409
413
  */
410
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;
411
427
  /**
412
428
  * Sets the developer email
413
429
  *
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.6",
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",