bkper-js 2.33.1 → 2.34.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/dist/bkper.min.js +2 -2
- package/dist/bkper.min.js.map +3 -3
- package/lib/index.d.ts +36 -0
- package/lib/index.js +1 -1
- package/lib/model/App.js +22 -0
- package/lib/model/Enums.js +20 -0
- package/package.json +6 -3
package/lib/index.d.ts
CHANGED
|
@@ -580,15 +580,31 @@ export declare class App extends Resource<bkper.App> {
|
|
|
580
580
|
* @returns The menu text of this App
|
|
581
581
|
*/
|
|
582
582
|
getMenuText(): string | undefined;
|
|
583
|
+
/**
|
|
584
|
+
* Gets how the app menu opens.
|
|
585
|
+
*
|
|
586
|
+
* @returns The configured app menu open mode, defaults to SIDEBAR
|
|
587
|
+
*/
|
|
588
|
+
getMenuOpenMode(): MenuOpenMode;
|
|
589
|
+
/**
|
|
590
|
+
* Sets how the app menu opens.
|
|
591
|
+
*
|
|
592
|
+
* @param menuOpenMode - The app menu open mode to set
|
|
593
|
+
*
|
|
594
|
+
* @returns This App, for chaining
|
|
595
|
+
*/
|
|
596
|
+
setMenuOpenMode(menuOpenMode?: MenuOpenMode): App;
|
|
583
597
|
/**
|
|
584
598
|
* Gets the menu popup width of this App.
|
|
585
599
|
*
|
|
600
|
+
* @deprecated Use getMenuOpenMode() to decide how the app should open.
|
|
586
601
|
* @returns The menu popup width of this App
|
|
587
602
|
*/
|
|
588
603
|
getMenuPopupWidth(): string | undefined;
|
|
589
604
|
/**
|
|
590
605
|
* Gets the menu popup height of this App.
|
|
591
606
|
*
|
|
607
|
+
* @deprecated Use getMenuOpenMode() to decide how the app should open.
|
|
592
608
|
* @returns The menu popup height of this App
|
|
593
609
|
*/
|
|
594
610
|
getMenuPopupHeight(): string | undefined;
|
|
@@ -3181,6 +3197,26 @@ export declare class Integration extends ResourceProperty<bkper.Integration> {
|
|
|
3181
3197
|
remove(): Promise<Integration>;
|
|
3182
3198
|
}
|
|
3183
3199
|
|
|
3200
|
+
/**
|
|
3201
|
+
* Enum that represents how an App menu opens.
|
|
3202
|
+
*
|
|
3203
|
+
* @public
|
|
3204
|
+
*/
|
|
3205
|
+
export declare enum MenuOpenMode {
|
|
3206
|
+
/**
|
|
3207
|
+
* Open inside the sidebar panel.
|
|
3208
|
+
*/
|
|
3209
|
+
SIDEBAR = "SIDEBAR",
|
|
3210
|
+
/**
|
|
3211
|
+
* Open expanded inside the app panel.
|
|
3212
|
+
*/
|
|
3213
|
+
EXPANDED = "EXPANDED",
|
|
3214
|
+
/**
|
|
3215
|
+
* Open in a new browser tab.
|
|
3216
|
+
*/
|
|
3217
|
+
NEW_TAB = "NEW_TAB"
|
|
3218
|
+
}
|
|
3219
|
+
|
|
3184
3220
|
/**
|
|
3185
3221
|
* Enum that represents a Month.
|
|
3186
3222
|
*
|
package/lib/index.js
CHANGED
|
@@ -34,6 +34,6 @@ export { Event } from './model/Event.js';
|
|
|
34
34
|
export { BotResponse } from './model/BotResponse.js';
|
|
35
35
|
export { EventList } from './model/EventList.js';
|
|
36
36
|
export { User } from './model/User.js';
|
|
37
|
-
export { Periodicity, DecimalSeparator, Permission, Visibility, AccountType, BalanceType, Period, Month, EventType, BotResponseType, TransactionStatus, } from './model/Enums.js';
|
|
37
|
+
export { Periodicity, DecimalSeparator, Permission, Visibility, AccountType, BalanceType, Period, Month, EventType, BotResponseType, TransactionStatus, MenuOpenMode, } from './model/Enums.js';
|
|
38
38
|
export { BkperError } from './model/BkperError.js';
|
|
39
39
|
//# sourceMappingURL=index.js.map
|
package/lib/model/App.js
CHANGED
|
@@ -8,6 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import * as AppService from "../service/app-service.js";
|
|
11
|
+
import { MenuOpenMode } from "./Enums.js";
|
|
11
12
|
import { Resource } from "./Resource.js";
|
|
12
13
|
import { Bkper } from "./Bkper.js";
|
|
13
14
|
/**
|
|
@@ -153,9 +154,29 @@ export class App extends Resource {
|
|
|
153
154
|
getMenuText() {
|
|
154
155
|
return this.payload.menuText;
|
|
155
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Gets how the app menu opens.
|
|
159
|
+
*
|
|
160
|
+
* @returns The configured app menu open mode, defaults to SIDEBAR
|
|
161
|
+
*/
|
|
162
|
+
getMenuOpenMode() {
|
|
163
|
+
return this.payload.menuOpenMode || MenuOpenMode.SIDEBAR;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Sets how the app menu opens.
|
|
167
|
+
*
|
|
168
|
+
* @param menuOpenMode - The app menu open mode to set
|
|
169
|
+
*
|
|
170
|
+
* @returns This App, for chaining
|
|
171
|
+
*/
|
|
172
|
+
setMenuOpenMode(menuOpenMode) {
|
|
173
|
+
this.payload.menuOpenMode = menuOpenMode;
|
|
174
|
+
return this;
|
|
175
|
+
}
|
|
156
176
|
/**
|
|
157
177
|
* Gets the menu popup width of this App.
|
|
158
178
|
*
|
|
179
|
+
* @deprecated Use getMenuOpenMode() to decide how the app should open.
|
|
159
180
|
* @returns The menu popup width of this App
|
|
160
181
|
*/
|
|
161
182
|
getMenuPopupWidth() {
|
|
@@ -164,6 +185,7 @@ export class App extends Resource {
|
|
|
164
185
|
/**
|
|
165
186
|
* Gets the menu popup height of this App.
|
|
166
187
|
*
|
|
188
|
+
* @deprecated Use getMenuOpenMode() to decide how the app should open.
|
|
167
189
|
* @returns The menu popup height of this App
|
|
168
190
|
*/
|
|
169
191
|
getMenuPopupHeight() {
|
package/lib/model/Enums.js
CHANGED
|
@@ -190,6 +190,26 @@ export var TransactionStatus;
|
|
|
190
190
|
*/
|
|
191
191
|
TransactionStatus["CHECKED"] = "CHECKED";
|
|
192
192
|
})(TransactionStatus || (TransactionStatus = {}));
|
|
193
|
+
/**
|
|
194
|
+
* Enum that represents how an App menu opens.
|
|
195
|
+
*
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
198
|
+
export var MenuOpenMode;
|
|
199
|
+
(function (MenuOpenMode) {
|
|
200
|
+
/**
|
|
201
|
+
* Open inside the sidebar panel.
|
|
202
|
+
*/
|
|
203
|
+
MenuOpenMode["SIDEBAR"] = "SIDEBAR";
|
|
204
|
+
/**
|
|
205
|
+
* Open expanded inside the app panel.
|
|
206
|
+
*/
|
|
207
|
+
MenuOpenMode["EXPANDED"] = "EXPANDED";
|
|
208
|
+
/**
|
|
209
|
+
* Open in a new browser tab.
|
|
210
|
+
*/
|
|
211
|
+
MenuOpenMode["NEW_TAB"] = "NEW_TAB";
|
|
212
|
+
})(MenuOpenMode || (MenuOpenMode = {}));
|
|
193
213
|
/**
|
|
194
214
|
* Enum that represents the type of a Bot Response
|
|
195
215
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.34.1",
|
|
4
4
|
"description": "Javascript client for Bkper REST API",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -32,10 +32,13 @@
|
|
|
32
32
|
"build:clean-dist": "rimraf dist",
|
|
33
33
|
"build:bundle": "esbuild lib/index.js --bundle --format=iife --global-name=bkperjs --minify --sourcemap --target=es2015 --platform=browser --outfile=dist/bkper.min.js",
|
|
34
34
|
"dev": "tsc -w",
|
|
35
|
-
"upgrade:api": "bun update @bkper/bkper-api-types --latest"
|
|
35
|
+
"upgrade:api": "bun update @bkper/bkper-api-types --latest",
|
|
36
|
+
"release:patch": "npm version patch -m \"chore(release): v%s\"",
|
|
37
|
+
"release:minor": "npm version minor -m \"chore(release): v%s\"",
|
|
38
|
+
"release:major": "npm version major -m \"chore(release): v%s\""
|
|
36
39
|
},
|
|
37
40
|
"dependencies": {
|
|
38
|
-
"@bkper/bkper-api-types": "^5.40.
|
|
41
|
+
"@bkper/bkper-api-types": "^5.40.2",
|
|
39
42
|
"big.js": "^6.0.3",
|
|
40
43
|
"dayjs": "^1.10.3",
|
|
41
44
|
"luxon": "^1.25.0",
|