bkper-js 1.36.0 → 1.37.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 +14 -0
- package/lib/model/Group.js +22 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1764,6 +1764,20 @@ export declare class Group {
|
|
|
1764
1764
|
* @returns This Group, for chainning.
|
|
1765
1765
|
*/
|
|
1766
1766
|
setName(name: string): Group;
|
|
1767
|
+
/**
|
|
1768
|
+
* Tells if the Group is locked by the Book owner.
|
|
1769
|
+
*
|
|
1770
|
+
* @returns True if the Group is locked.
|
|
1771
|
+
*/
|
|
1772
|
+
isLocked(): boolean;
|
|
1773
|
+
/**
|
|
1774
|
+
* Sets the locked state of the Group.
|
|
1775
|
+
*
|
|
1776
|
+
* @param locked - The locked state of the Group.
|
|
1777
|
+
*
|
|
1778
|
+
* @returns This Group, for chainning.
|
|
1779
|
+
*/
|
|
1780
|
+
setLocked(locked: boolean): Group;
|
|
1767
1781
|
/**
|
|
1768
1782
|
* @returns The name of this group without spaces and special characters
|
|
1769
1783
|
*/
|
package/lib/model/Group.js
CHANGED
|
@@ -55,6 +55,28 @@ export class Group {
|
|
|
55
55
|
this.payload.name = name;
|
|
56
56
|
return this;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Tells if the Group is locked by the Book owner.
|
|
60
|
+
*
|
|
61
|
+
* @returns True if the Group is locked.
|
|
62
|
+
*/
|
|
63
|
+
isLocked() {
|
|
64
|
+
if (this.payload.locked == null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return this.payload.locked;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Sets the locked state of the Group.
|
|
71
|
+
*
|
|
72
|
+
* @param locked - The locked state of the Group.
|
|
73
|
+
*
|
|
74
|
+
* @returns This Group, for chainning.
|
|
75
|
+
*/
|
|
76
|
+
setLocked(locked) {
|
|
77
|
+
this.payload.locked = locked;
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
58
80
|
/**
|
|
59
81
|
* @returns The name of this group without spaces and special characters
|
|
60
82
|
*/
|