turf-common 1.1.1-beta.39 → 1.1.1-beta.40
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.
|
@@ -9,7 +9,7 @@ export declare enum OrganizationStatus {
|
|
|
9
9
|
ACCOUNT_ACTIVE = "account_active",
|
|
10
10
|
ACCOUNT_SUSPENDED = "account_suspended"
|
|
11
11
|
}
|
|
12
|
-
export declare namespace
|
|
12
|
+
export declare namespace OrganizationStatus {
|
|
13
13
|
function allowPermissionSuperAdmin(): OrganizationStatus[];
|
|
14
14
|
function allowPermissionOwner(): OrganizationStatus[];
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OrganizationStatus = void 0;
|
|
4
4
|
var OrganizationStatus;
|
|
5
5
|
(function (OrganizationStatus) {
|
|
6
6
|
OrganizationStatus["REGISTRATION"] = "registration";
|
|
@@ -14,19 +14,18 @@ var OrganizationStatus;
|
|
|
14
14
|
OrganizationStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
15
15
|
})(OrganizationStatus || (exports.OrganizationStatus = OrganizationStatus = {}));
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
17
|
-
|
|
18
|
-
(function (OrganizationStatuss) {
|
|
17
|
+
(function (OrganizationStatus) {
|
|
19
18
|
function allowPermissionSuperAdmin() {
|
|
20
19
|
return Object.values(OrganizationStatus).filter(function (status) {
|
|
21
20
|
return status !== OrganizationStatus.SETUP_DONE &&
|
|
22
21
|
status !== OrganizationStatus.REGISTRATION;
|
|
23
22
|
});
|
|
24
23
|
}
|
|
25
|
-
|
|
24
|
+
OrganizationStatus.allowPermissionSuperAdmin = allowPermissionSuperAdmin;
|
|
26
25
|
function allowPermissionOwner() {
|
|
27
26
|
return Object.values(OrganizationStatus).filter(function (status) {
|
|
28
27
|
return status === OrganizationStatus.SETUP_DONE;
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
|
-
|
|
32
|
-
})(
|
|
30
|
+
OrganizationStatus.allowPermissionOwner = allowPermissionOwner;
|
|
31
|
+
})(OrganizationStatus || (exports.OrganizationStatus = OrganizationStatus = {}));
|