@frontegg/rest-api 2.10.70 → 2.10.73
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/CHANGELOG.md +6 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +4 -1
- package/dist/constants.js.map +1 -1
- package/dist/es2015/constants.d.ts +3 -0
- package/dist/es2015/constants.js +4 -1
- package/dist/es2015/constants.js.map +1 -1
- package/dist/es2015/index.d.ts +4 -0
- package/dist/es2015/index.js +4 -1
- package/dist/es2015/index.js.map +1 -1
- package/dist/es2015/routers.js +5 -0
- package/dist/es2015/routers.js.map +1 -1
- package/dist/es2015/sub-tenants/index.d.ts +3 -0
- package/dist/es2015/sub-tenants/index.js +25 -0
- package/dist/es2015/sub-tenants/index.js.map +1 -0
- package/dist/es2015/sub-tenants/interfaces.d.ts +61 -0
- package/dist/es2015/sub-tenants/interfaces.js +2 -0
- package/dist/es2015/sub-tenants/interfaces.js.map +1 -0
- package/dist/es2015/teams/interfaces.d.ts +1 -0
- package/dist/es2015/tenants/interfaces.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/routers.js +5 -0
- package/dist/routers.js.map +1 -1
- package/dist/sub-tenants/index.d.ts +3 -0
- package/dist/sub-tenants/index.js +29 -0
- package/dist/sub-tenants/index.js.map +1 -0
- package/dist/sub-tenants/interfaces.d.ts +61 -0
- package/dist/sub-tenants/interfaces.js +3 -0
- package/dist/sub-tenants/interfaces.js.map +1 -0
- package/dist/teams/interfaces.d.ts +1 -0
- package/dist/tenants/interfaces.d.ts +1 -0
- package/dist/umd/index.js +30 -2
- package/package.json +1 -1
- package/src/constants.ts +4 -1
- package/src/index.ts +4 -1
- package/src/routers.ts +5 -0
- package/src/sub-tenants/index.ts +27 -0
- package/src/sub-tenants/interfaces.ts +66 -0
- package/src/teams/interfaces.ts +1 -0
- package/src/tenants/interfaces.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.10.73](https://github.com/frontegg/typescript-rest-api/compare/v2.10.72...v2.10.73) (2022-06-19)
|
|
6
|
+
|
|
7
|
+
### [2.10.72](https://github.com/frontegg/typescript-rest-api/compare/v2.10.71...v2.10.72) (2022-05-31)
|
|
8
|
+
|
|
9
|
+
### [2.10.71](https://github.com/frontegg/typescript-rest-api/compare/v2.10.70...v2.10.71) (2022-05-31)
|
|
10
|
+
|
|
5
11
|
### [2.10.70](https://github.com/frontegg/typescript-rest-api/compare/v2.10.69...v2.10.70) (2022-05-30)
|
|
6
12
|
|
|
7
13
|
### [2.10.69](https://github.com/frontegg/typescript-rest-api/compare/v2.10.68...v2.10.69) (2022-05-30)
|
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -16,7 +16,7 @@ exports.urls = {
|
|
|
16
16
|
v2: '/identity/resources/users/v2',
|
|
17
17
|
apiTokens: {
|
|
18
18
|
v1: '/identity/resources/users/api-tokens/v1',
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
20
|
},
|
|
21
21
|
configurations: {
|
|
22
22
|
v1: '/identity/resources/configurations/v1'
|
|
@@ -48,6 +48,9 @@ exports.urls = {
|
|
|
48
48
|
roles: {
|
|
49
49
|
v1: '/identity/resources/roles/v1'
|
|
50
50
|
},
|
|
51
|
+
subTenants: {
|
|
52
|
+
v1: '/identity/resources/sub-tenants/users/v1'
|
|
53
|
+
}
|
|
51
54
|
},
|
|
52
55
|
team: {
|
|
53
56
|
sso: {
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,UAAU;IA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R,EAAE,EAAE,UAAU;KACf;IACD,KAAK,EAAE;QACL,EAAE,EAAE,QAAQ;KACb;CACF,CAAA"}
|
package/dist/es2015/constants.js
CHANGED
|
@@ -13,7 +13,7 @@ export const urls = {
|
|
|
13
13
|
v2: '/identity/resources/users/v2',
|
|
14
14
|
apiTokens: {
|
|
15
15
|
v1: '/identity/resources/users/api-tokens/v1',
|
|
16
|
-
}
|
|
16
|
+
},
|
|
17
17
|
},
|
|
18
18
|
configurations: {
|
|
19
19
|
v1: '/identity/resources/configurations/v1'
|
|
@@ -45,6 +45,9 @@ export const urls = {
|
|
|
45
45
|
roles: {
|
|
46
46
|
v1: '/identity/resources/roles/v1'
|
|
47
47
|
},
|
|
48
|
+
subTenants: {
|
|
49
|
+
v1: '/identity/resources/sub-tenants/users/v1'
|
|
50
|
+
}
|
|
48
51
|
},
|
|
49
52
|
team: {
|
|
50
53
|
sso: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,MAAM,EAAE,UAAU;IAClB,QAAQ,EAAE;QACR,eAAe,EAAE;YACf,EAAE,EAAE,+CAA+C;SACpD;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,6BAA6B;YACjC,EAAE,EAAE,6BAA6B;SAClC;QACD,KAAK,EAAE;YACL,EAAE,EAAE,8BAA8B;YAClC,EAAE,EAAE,8BAA8B;YAClC,SAAS,EAAE;gBACT,EAAE,EAAE,yCAAyC;aAC9C;SACF;QACD,cAAc,EAAE;YACd,EAAE,EAAE,uCAAuC;SAC5C;QACD,GAAG,EAAE;YACH,EAAE,EAAE,4BAA4B;YAChC,EAAE,EAAE,4BAA4B;SACjC;QACD,WAAW,EAAE;YACX,EAAE,EAAE,oCAAoC;SACzC;QACD,OAAO,EAAE;YACP,SAAS,EAAE;gBACT,EAAE,EAAE,2CAA2C;gBAC/C,EAAE,EA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BACpB,EAAE,EAAE,oFAAoF;qBACzF;oBACD,aAAa,EAAE;wBACb,EAAE,EAAE,4EAA4E;qBACjF;oBACD,YAAY,EAAE;wBACZ,EAAE,EAAE,4EAA4E;qBACjF;iBACF;aACF;SACF;QACD,gBAAgB,EAAE;YAChB,EAAE,EAAE,+CAA+C;SACpD;QACD,oBAAoB,EAAE;YACpB,EAAE,EAAE,2CAA2C;SAChD;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,EAAE,EAAE,+BAA+B;YACnC,EAAE,EAAE,+BAA+B;SACpC;QACD,OAAO,EAAE;YACP,EAAE,EAAE,uCAAuC;SAC5C;KACF;IACD,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;KACpB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,SAAS;KACd;IACD,MAAM,EAAE;QACN,cAAc,EAAE;YACd,EAAE,EAAE,oCAAoC;SACzC;KACF;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;KACf;IACD,KAAK,EAAE;QACL,EAAE,EAAE,QAAQ;KACb;CACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,MAAM,EAAE,UAAU;IAClB,QAAQ,EAAE;QACR,eAAe,EAAE;YACf,EAAE,EAAE,+CAA+C;SACpD;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,6BAA6B;YACjC,EAAE,EAAE,6BAA6B;SAClC;QACD,KAAK,EAAE;YACL,EAAE,EAAE,8BAA8B;YAClC,EAAE,EAAE,8BAA8B;YAClC,SAAS,EAAE;gBACT,EAAE,EAAE,yCAAyC;aAC9C;SACF;QACD,cAAc,EAAE;YACd,EAAE,EAAE,uCAAuC;SAC5C;QACD,GAAG,EAAE;YACH,EAAE,EAAE,4BAA4B;YAChC,EAAE,EAAE,4BAA4B;SACjC;QACD,WAAW,EAAE;YACX,EAAE,EAAE,o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EAAE,EAAE,2DAA2D;aAChE;YACD,gBAAgB,EAAE;gBAChB,MAAM,EAAE;oBACN,SAAS,EAAE;wBACT,EAAE,EAAE,wEAAwE;qBAC7E;oBACD,oBAAoB,EAAE;wBACpB,EAAE,EAAE,oFAAoF;qBACzF;oBACD,aAAa,EAAE;wBACb,EAAE,EAAE,4EAA4E;qBACjF;oBACD,YAAY,EAAE;wBACZ,EAAE,EAAE,4EAA4E;qBACjF;iBACF;aACF;SACF;QACD,gBAAgB,EAAE;YAChB,EAAE,EAAE,+CAA+C;SACpD;QACD,oBAAoB,EAAE;YACpB,EAAE,EAAE,2CAA2C;SAChD;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,EAAE,EAAE,+BAA+B;YACnC,EAAE,EAAE,+BAA+B;SACpC;QACD,OAAO,EAAE;YACP,EAAE,EAAE,uCAAuC;SAC5C;KACF;IACD,aAAa,EAAE;QACb,EAAE,EAAE,eAAe;KACpB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,SAAS;KACd;IACD,MAAM,EAAE;QACN,cAAc,EAAE;YACd,EAAE,EAAE,oCAAoC;SACzC;KACF;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;KACf;IACD,KAAK,EAAE;QACL,EAAE,EAAE,QAAQ;KACb;CACF,CAAA"}
|
package/dist/es2015/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import * as roles from './roles';
|
|
|
12
12
|
import * as subscriptions from './subscriptions';
|
|
13
13
|
import { FronteggApiError } from './error';
|
|
14
14
|
import * as vendor from './vendor';
|
|
15
|
+
import * as subTenants from './sub-tenants';
|
|
15
16
|
import { ContextHolder, FronteggContext } from './ContextHolder';
|
|
16
17
|
export * from './interfaces';
|
|
17
18
|
export * from './auth/interfaces';
|
|
@@ -26,6 +27,7 @@ export * from './account-settings/interfaces';
|
|
|
26
27
|
export * from './roles/interfaces';
|
|
27
28
|
export * from './subscriptions/interfaces';
|
|
28
29
|
export * from './vendor/interfaces';
|
|
30
|
+
export * from './sub-tenants/interfaces';
|
|
29
31
|
export * from './routers';
|
|
30
32
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
31
33
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
@@ -42,6 +44,7 @@ declare const api: {
|
|
|
42
44
|
roles: typeof roles;
|
|
43
45
|
subscriptions: typeof subscriptions;
|
|
44
46
|
vendor: typeof vendor;
|
|
47
|
+
subTenants: typeof subTenants;
|
|
45
48
|
};
|
|
46
49
|
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, };
|
|
47
50
|
declare const _default: {
|
|
@@ -67,6 +70,7 @@ declare const _default: {
|
|
|
67
70
|
roles: typeof roles;
|
|
68
71
|
subscriptions: typeof subscriptions;
|
|
69
72
|
vendor: typeof vendor;
|
|
73
|
+
subTenants: typeof subTenants;
|
|
70
74
|
};
|
|
71
75
|
FronteggApiError: typeof FronteggApiError;
|
|
72
76
|
AuthStrategyEnum: typeof auth.AuthStrategyEnum;
|
package/dist/es2015/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import * as roles from './roles';
|
|
|
12
12
|
import * as subscriptions from './subscriptions';
|
|
13
13
|
import { FronteggApiError } from './error';
|
|
14
14
|
import * as vendor from './vendor';
|
|
15
|
+
import * as subTenants from './sub-tenants';
|
|
15
16
|
import { ContextHolder, FronteggContext } from './ContextHolder';
|
|
16
17
|
export * from './interfaces';
|
|
17
18
|
export * from './auth/interfaces';
|
|
@@ -26,6 +27,7 @@ export * from './account-settings/interfaces';
|
|
|
26
27
|
export * from './roles/interfaces';
|
|
27
28
|
export * from './subscriptions/interfaces';
|
|
28
29
|
export * from './vendor/interfaces';
|
|
30
|
+
export * from './sub-tenants/interfaces';
|
|
29
31
|
export * from './routers';
|
|
30
32
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
31
33
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
@@ -41,7 +43,8 @@ const api = {
|
|
|
41
43
|
accountSettings,
|
|
42
44
|
roles,
|
|
43
45
|
subscriptions,
|
|
44
|
-
vendor
|
|
46
|
+
vendor,
|
|
47
|
+
subTenants
|
|
45
48
|
};
|
|
46
49
|
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, };
|
|
47
50
|
export default {
|
package/dist/es2015/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/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AExB,MAAM,GAAG,GAAG;IACV,IAAI;IACJ,KAAK;IACL,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,aAAa;IACb,MAAM;IACN,OAAO;IACP,eAAe;IACf,KAAK;IACL,aAAa;IACb,MAAM;IACN,UAAU;CACX,CAAC;AAEF,OAAO,EACL,KAAK,EACL,aAAa,EACb,eAAe,EACf,GAAG,EACH,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,+BAA+B,EAC/B,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,GACb,CAAC;AAEF,eAAe;IACb,KAAK;IACL,aAAa;IACb,eAAe;IACf,GAAG;IACH,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,+BAA+B;IAC/B,mBAAmB;IACnB,iBAAiB;IACjB,YAAY;CACb,CAAC"}
|
package/dist/es2015/routers.js
CHANGED
|
@@ -7,6 +7,11 @@ export const fronteggAuthApiRoutes = [
|
|
|
7
7
|
`${urls.identity.auth.v1}/user/mfa/verify`,
|
|
8
8
|
`${urls.identity.auth.v1}/user/token/refresh`,
|
|
9
9
|
`${urls.identity.users.v1}`,
|
|
10
|
+
`${urls.identity.auth.v1}/passwordless/magiclink/postlogin`,
|
|
11
|
+
`${urls.identity.auth.v1}/passwordless/code/postlogin`,
|
|
12
|
+
`${urls.identity.auth.v1}/passwordless/smscode/postlogin`,
|
|
13
|
+
`${urls.identity.users.v1}/activate`,
|
|
14
|
+
`${urls.identity.users.v1}/invitation/accept`
|
|
10
15
|
];
|
|
11
16
|
export const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
|
|
12
17
|
//# sourceMappingURL=routers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routers.js","sourceRoot":"","sources":["../../src/routers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,GAAG,IAAI,CA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AAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW;IACpC,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,oBAAoB;CAC9C,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { Get } from "../fetch";
|
|
11
|
+
import { urls } from "../constants";
|
|
12
|
+
export function loadAllUsers(params) {
|
|
13
|
+
var _a, _b, _c, _d, _e, _f;
|
|
14
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
const filters = (params.filter || []).reduce((p, n) => (Object.assign(Object.assign({}, p), { [n.id]: n.value })), {});
|
|
16
|
+
const sorts = ((_a = params.sort) === null || _a === void 0 ? void 0 : _a.length)
|
|
17
|
+
? {
|
|
18
|
+
sortBy: (_d = (_c = (_b = params.sort) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : "name",
|
|
19
|
+
sortDirection: ((_f = (_e = params.sort) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.desc) ? "desc" : "asc",
|
|
20
|
+
}
|
|
21
|
+
: null;
|
|
22
|
+
return Get(urls.identity.subTenants.v1, Object.assign(Object.assign({ pageOffset: params.pageOffset, pageSize: params.pageSize }, filters), sorts));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sub-tenants/index.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,MAAM,UAAgB,YAAY,CAChC,MAAqB;;;QAErB,MAAM,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,MAAM,CAC1C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,iCAAM,CAAC,KAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,IAAG,EACrC,EAAE,CACH,CAAC;QAEF,MAAM,KAAK,GAAG,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,MAAM;YAC/B,CAAC,CAAC;gBACE,MAAM,EAAE,MAAA,MAAA,MAAA,MAAM,CAAC,IAAI,0CAAG,CAAC,CAAC,0CAAE,EAAE,mCAAI,MAAM;gBACtC,aAAa,EAAE,CAAA,MAAA,MAAA,MAAM,CAAC,IAAI,0CAAG,CAAC,CAAC,0CAAE,IAAI,EAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK;aACvD;YACH,CAAC,CAAC,IAAI,CAAC;QAET,OAAO,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,gCACpC,UAAU,EAAE,MAAM,CAAC,UAAU,EAC7B,QAAQ,EAAE,MAAM,CAAC,QAAQ,IACtB,OAAO,GACP,KAAK,EACR,CAAC;;CACJ"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { QueryFilter, QuerySort } from "../interfaces";
|
|
2
|
+
export declare type ILoadAllUsers = {
|
|
3
|
+
silentLoading?: boolean;
|
|
4
|
+
filter?: QueryFilter[];
|
|
5
|
+
sort?: QuerySort[];
|
|
6
|
+
pageOffset: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare type ISubTenantUserRole = {
|
|
10
|
+
id: string;
|
|
11
|
+
vendorId: string;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
key: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
isDefault: boolean;
|
|
17
|
+
firstUserRole: boolean;
|
|
18
|
+
level: number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
permissions: string[];
|
|
22
|
+
};
|
|
23
|
+
export declare type ISubTenantUserPermission = {
|
|
24
|
+
id: string;
|
|
25
|
+
key: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
roleIds: string[];
|
|
31
|
+
categoryId: string;
|
|
32
|
+
fePermission: boolean;
|
|
33
|
+
};
|
|
34
|
+
export declare type ISubTenantUserTenant = {
|
|
35
|
+
tenantId: string;
|
|
36
|
+
roles: ISubTenantUserRole[];
|
|
37
|
+
};
|
|
38
|
+
export declare type ISubTenantUser = {
|
|
39
|
+
id: string;
|
|
40
|
+
sub: string;
|
|
41
|
+
email: string;
|
|
42
|
+
verified: boolean;
|
|
43
|
+
mfaEnrolled: boolean;
|
|
44
|
+
mfaBypass?: boolean;
|
|
45
|
+
name?: string;
|
|
46
|
+
phoneNumber?: string;
|
|
47
|
+
profilePictureUrl?: string;
|
|
48
|
+
roles: ISubTenantUserRole[];
|
|
49
|
+
permissions: ISubTenantUserPermission[];
|
|
50
|
+
provider: string;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
tenantIds: string[];
|
|
53
|
+
activatedForTenant?: boolean;
|
|
54
|
+
isLocked?: boolean;
|
|
55
|
+
tenants: ISubTenantUserTenant[];
|
|
56
|
+
invisible?: true;
|
|
57
|
+
superUser?: true;
|
|
58
|
+
metadata: string;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
lastLogin: Date;
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/sub-tenants/interfaces.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import * as roles from './roles';
|
|
|
12
12
|
import * as subscriptions from './subscriptions';
|
|
13
13
|
import { FronteggApiError } from './error';
|
|
14
14
|
import * as vendor from './vendor';
|
|
15
|
+
import * as subTenants from './sub-tenants';
|
|
15
16
|
import { ContextHolder, FronteggContext } from './ContextHolder';
|
|
16
17
|
export * from './interfaces';
|
|
17
18
|
export * from './auth/interfaces';
|
|
@@ -26,6 +27,7 @@ export * from './account-settings/interfaces';
|
|
|
26
27
|
export * from './roles/interfaces';
|
|
27
28
|
export * from './subscriptions/interfaces';
|
|
28
29
|
export * from './vendor/interfaces';
|
|
30
|
+
export * from './sub-tenants/interfaces';
|
|
29
31
|
export * from './routers';
|
|
30
32
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
31
33
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
@@ -42,6 +44,7 @@ declare const api: {
|
|
|
42
44
|
roles: typeof roles;
|
|
43
45
|
subscriptions: typeof subscriptions;
|
|
44
46
|
vendor: typeof vendor;
|
|
47
|
+
subTenants: typeof subTenants;
|
|
45
48
|
};
|
|
46
49
|
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, };
|
|
47
50
|
declare const _default: {
|
|
@@ -67,6 +70,7 @@ declare const _default: {
|
|
|
67
70
|
roles: typeof roles;
|
|
68
71
|
subscriptions: typeof subscriptions;
|
|
69
72
|
vendor: typeof vendor;
|
|
73
|
+
subTenants: typeof subTenants;
|
|
70
74
|
};
|
|
71
75
|
FronteggApiError: typeof FronteggApiError;
|
|
72
76
|
AuthStrategyEnum: typeof auth.AuthStrategyEnum;
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ const subscriptions = __importStar(require("./subscriptions"));
|
|
|
39
39
|
const error_1 = require("./error");
|
|
40
40
|
Object.defineProperty(exports, "FronteggApiError", { enumerable: true, get: function () { return error_1.FronteggApiError; } });
|
|
41
41
|
const vendor = __importStar(require("./vendor"));
|
|
42
|
+
const subTenants = __importStar(require("./sub-tenants"));
|
|
42
43
|
const ContextHolder_1 = require("./ContextHolder");
|
|
43
44
|
Object.defineProperty(exports, "ContextHolder", { enumerable: true, get: function () { return ContextHolder_1.ContextHolder; } });
|
|
44
45
|
Object.defineProperty(exports, "FronteggContext", { enumerable: true, get: function () { return ContextHolder_1.FronteggContext; } });
|
|
@@ -55,6 +56,7 @@ __exportStar(require("./account-settings/interfaces"), exports);
|
|
|
55
56
|
__exportStar(require("./roles/interfaces"), exports);
|
|
56
57
|
__exportStar(require("./subscriptions/interfaces"), exports);
|
|
57
58
|
__exportStar(require("./vendor/interfaces"), exports);
|
|
59
|
+
__exportStar(require("./sub-tenants/interfaces"), exports);
|
|
58
60
|
__exportStar(require("./routers"), exports);
|
|
59
61
|
const auth_1 = require("./auth");
|
|
60
62
|
Object.defineProperty(exports, "AuthStrategyEnum", { enumerable: true, get: function () { return auth_1.AuthStrategyEnum; } });
|
|
@@ -76,7 +78,8 @@ const api = {
|
|
|
76
78
|
accountSettings,
|
|
77
79
|
roles,
|
|
78
80
|
subscriptions,
|
|
79
|
-
vendor
|
|
81
|
+
vendor,
|
|
82
|
+
subTenants
|
|
80
83
|
};
|
|
81
84
|
exports.api = api;
|
|
82
85
|
exports.default = {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,+CAAiC;AACjC,qDAAuC;AACvC,mDAAqC;AACrC,+DAAiD;AACjD,iDAAmC;AACnC,+CAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,+CAAiC;AACjC,qDAAuC;AACvC,mDAAqC;AACrC,+DAAiD;AACjD,iDAAmC;AACnC,+CAAiC;AAqD/B,sBAAK;AApDP,6DAA+C;AAC/C,mDAAqC;AACrC,oEAAsD;AACtD,+CAAiC;AACjC,+DAAiD;AACjD,mCAAyC;AAmDvC,iGAnDM,wBAAgB,OAmDN;AAlDlB,iDAAmC;AACnC,0DAA4C;AAE5C,mDAA+D;AA4C7D,8FA5CM,6BAAa,OA4CN;AACb,gGA7CqB,+BAAe,OA6CrB;AA3CjB,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC;AACnC,wDAAsC;AACtC,uDAAqC;AACrC,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,gEAA8C;AAC9C,qDAAmC;AACnC,6DAA2C;AAC3C,sDAAoC;AACpC,2DAAyC;AACzC,4CAA0B;AAE1B,iCAA6D;AA8B3D,iGA9BM,uBAAgB,OA8BN;AAChB,qGA/BwB,2BAAoB,OA+BxB;AA9BtB,mDAKwB;AA0BtB,gHA9BA,+CAA+B,OA8BA;AAC/B,oGA9BA,mCAAmB,OA8BA;AACnB,kGA9BA,iCAAiB,OA8BA;AACjB,6FA9BA,4BAAY,OA8BA;AA3Bd,MAAM,GAAG,GAAG;IACV,IAAI;IACJ,KAAK;IACL,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,aAAa;IACb,MAAM;IACN,OAAO;IACP,eAAe;IACf,KAAK;IACL,aAAa;IACb,MAAM;IACN,UAAU;CACX,CAAC;AAMA,kBAAG;AAUL,kBAAe;IACb,KAAK;IACL,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,+BAAe;IACf,GAAG;IACH,gBAAgB,EAAhB,wBAAgB;IAChB,gBAAgB,EAAhB,uBAAgB;IAChB,oBAAoB,EAApB,2BAAoB;IACpB,+BAA+B,EAA/B,+CAA+B;IAC/B,mBAAmB,EAAnB,mCAAmB;IACnB,iBAAiB,EAAjB,iCAAiB;IACjB,YAAY,EAAZ,4BAAY;CACb,CAAC"}
|
package/dist/routers.js
CHANGED
|
@@ -10,6 +10,11 @@ exports.fronteggAuthApiRoutes = [
|
|
|
10
10
|
`${constants_1.urls.identity.auth.v1}/user/mfa/verify`,
|
|
11
11
|
`${constants_1.urls.identity.auth.v1}/user/token/refresh`,
|
|
12
12
|
`${constants_1.urls.identity.users.v1}`,
|
|
13
|
+
`${constants_1.urls.identity.auth.v1}/passwordless/magiclink/postlogin`,
|
|
14
|
+
`${constants_1.urls.identity.auth.v1}/passwordless/code/postlogin`,
|
|
15
|
+
`${constants_1.urls.identity.auth.v1}/passwordless/smscode/postlogin`,
|
|
16
|
+
`${constants_1.urls.identity.users.v1}/activate`,
|
|
17
|
+
`${constants_1.urls.identity.users.v1}/invitation/accept`
|
|
13
18
|
];
|
|
14
19
|
exports.fronteggRefreshTokenUrl = `${constants_1.urls.identity.auth.v1}/user/token/refresh`;
|
|
15
20
|
//# sourceMappingURL=routers.js.map
|
package/dist/routers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routers.js","sourceRoot":"","sources":["../src/routers.ts"],"names":[],"mappings":";;;AAAA,2CAAmC;AAEtB,QAAA,qBAAqB,GAAG;IACnC,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS;IACjC,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,sBAAsB;IAC9C,GAAG,gBAAI,CAAC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AG,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.loadAllUsers = void 0;
|
|
13
|
+
const fetch_1 = require("../fetch");
|
|
14
|
+
const constants_1 = require("../constants");
|
|
15
|
+
function loadAllUsers(params) {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f;
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
const filters = (params.filter || []).reduce((p, n) => (Object.assign(Object.assign({}, p), { [n.id]: n.value })), {});
|
|
19
|
+
const sorts = ((_a = params.sort) === null || _a === void 0 ? void 0 : _a.length)
|
|
20
|
+
? {
|
|
21
|
+
sortBy: (_d = (_c = (_b = params.sort) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : "name",
|
|
22
|
+
sortDirection: ((_f = (_e = params.sort) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.desc) ? "desc" : "asc",
|
|
23
|
+
}
|
|
24
|
+
: null;
|
|
25
|
+
return fetch_1.Get(constants_1.urls.identity.subTenants.v1, Object.assign(Object.assign({ pageOffset: params.pageOffset, pageSize: params.pageSize }, filters), sorts));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.loadAllUsers = loadAllUsers;
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sub-tenants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oCAA+B;AAC/B,4CAAoC;AAGpC,SAAsB,YAAY,CAChC,MAAqB;;;QAErB,MAAM,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,MAAM,CAC1C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,iCAAM,CAAC,KAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,IAAG,EACrC,EAAE,CACH,CAAC;QAEF,MAAM,KAAK,GAAG,CAAA,MAAA,MAAM,CAAC,IAAI,0CAAE,MAAM;YAC/B,CAAC,CAAC;gBACE,MAAM,EAAE,MAAA,MAAA,MAAA,MAAM,CAAC,IAAI,0CAAG,CAAC,CAAC,0CAAE,EAAE,mCAAI,MAAM;gBACtC,aAAa,EAAE,CAAA,MAAA,MAAA,MAAM,CAAC,IAAI,0CAAG,CAAC,CAAC,0CAAE,IAAI,EAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK;aACvD;YACH,CAAC,CAAC,IAAI,CAAC;QAET,OAAO,WAAG,CAAC,gBAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,gCACpC,UAAU,EAAE,MAAM,CAAC,UAAU,EAC7B,QAAQ,EAAE,MAAM,CAAC,QAAQ,IACtB,OAAO,GACP,KAAK,EACR,CAAC;;CACJ;AArBD,oCAqBC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { QueryFilter, QuerySort } from "../interfaces";
|
|
2
|
+
export declare type ILoadAllUsers = {
|
|
3
|
+
silentLoading?: boolean;
|
|
4
|
+
filter?: QueryFilter[];
|
|
5
|
+
sort?: QuerySort[];
|
|
6
|
+
pageOffset: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare type ISubTenantUserRole = {
|
|
10
|
+
id: string;
|
|
11
|
+
vendorId: string;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
key: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
isDefault: boolean;
|
|
17
|
+
firstUserRole: boolean;
|
|
18
|
+
level: number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
permissions: string[];
|
|
22
|
+
};
|
|
23
|
+
export declare type ISubTenantUserPermission = {
|
|
24
|
+
id: string;
|
|
25
|
+
key: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
roleIds: string[];
|
|
31
|
+
categoryId: string;
|
|
32
|
+
fePermission: boolean;
|
|
33
|
+
};
|
|
34
|
+
export declare type ISubTenantUserTenant = {
|
|
35
|
+
tenantId: string;
|
|
36
|
+
roles: ISubTenantUserRole[];
|
|
37
|
+
};
|
|
38
|
+
export declare type ISubTenantUser = {
|
|
39
|
+
id: string;
|
|
40
|
+
sub: string;
|
|
41
|
+
email: string;
|
|
42
|
+
verified: boolean;
|
|
43
|
+
mfaEnrolled: boolean;
|
|
44
|
+
mfaBypass?: boolean;
|
|
45
|
+
name?: string;
|
|
46
|
+
phoneNumber?: string;
|
|
47
|
+
profilePictureUrl?: string;
|
|
48
|
+
roles: ISubTenantUserRole[];
|
|
49
|
+
permissions: ISubTenantUserPermission[];
|
|
50
|
+
provider: string;
|
|
51
|
+
tenantId: string;
|
|
52
|
+
tenantIds: string[];
|
|
53
|
+
activatedForTenant?: boolean;
|
|
54
|
+
isLocked?: boolean;
|
|
55
|
+
tenants: ISubTenantUserTenant[];
|
|
56
|
+
invisible?: true;
|
|
57
|
+
superUser?: true;
|
|
58
|
+
metadata: string;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
lastLogin: Date;
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/sub-tenants/interfaces.ts"],"names":[],"mappings":""}
|
package/dist/umd/index.js
CHANGED
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
v2: '/identity/resources/users/v2',
|
|
309
309
|
apiTokens: {
|
|
310
310
|
v1: '/identity/resources/users/api-tokens/v1',
|
|
311
|
-
}
|
|
311
|
+
},
|
|
312
312
|
},
|
|
313
313
|
configurations: {
|
|
314
314
|
v1: '/identity/resources/configurations/v1'
|
|
@@ -340,6 +340,9 @@
|
|
|
340
340
|
roles: {
|
|
341
341
|
v1: '/identity/resources/roles/v1'
|
|
342
342
|
},
|
|
343
|
+
subTenants: {
|
|
344
|
+
v1: '/identity/resources/sub-tenants/users/v1'
|
|
345
|
+
}
|
|
343
346
|
},
|
|
344
347
|
team: {
|
|
345
348
|
sso: {
|
|
@@ -2649,6 +2652,25 @@
|
|
|
2649
2652
|
getVendorPublicInfo: getVendorPublicInfo
|
|
2650
2653
|
});
|
|
2651
2654
|
|
|
2655
|
+
function loadAllUsers(params) {
|
|
2656
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2658
|
+
const filters = (params.filter || []).reduce((p, n) => (Object.assign(Object.assign({}, p), { [n.id]: n.value })), {});
|
|
2659
|
+
const sorts = ((_a = params.sort) === null || _a === void 0 ? void 0 : _a.length)
|
|
2660
|
+
? {
|
|
2661
|
+
sortBy: (_d = (_c = (_b = params.sort) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : "name",
|
|
2662
|
+
sortDirection: ((_f = (_e = params.sort) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.desc) ? "desc" : "asc",
|
|
2663
|
+
}
|
|
2664
|
+
: null;
|
|
2665
|
+
return Get(urls.identity.subTenants.v1, Object.assign(Object.assign({ pageOffset: params.pageOffset, pageSize: params.pageSize }, filters), sorts));
|
|
2666
|
+
});
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
var subTenants = /*#__PURE__*/Object.freeze({
|
|
2670
|
+
__proto__: null,
|
|
2671
|
+
loadAllUsers: loadAllUsers
|
|
2672
|
+
});
|
|
2673
|
+
|
|
2652
2674
|
const fronteggAuthApiRoutes = [
|
|
2653
2675
|
`${urls.identity.auth.v1}/logout`,
|
|
2654
2676
|
`${urls.identity.auth.v1}/user/saml/postlogin`,
|
|
@@ -2657,6 +2679,11 @@
|
|
|
2657
2679
|
`${urls.identity.auth.v1}/user/mfa/verify`,
|
|
2658
2680
|
`${urls.identity.auth.v1}/user/token/refresh`,
|
|
2659
2681
|
`${urls.identity.users.v1}`,
|
|
2682
|
+
`${urls.identity.auth.v1}/passwordless/magiclink/postlogin`,
|
|
2683
|
+
`${urls.identity.auth.v1}/passwordless/code/postlogin`,
|
|
2684
|
+
`${urls.identity.auth.v1}/passwordless/smscode/postlogin`,
|
|
2685
|
+
`${urls.identity.users.v1}/activate`,
|
|
2686
|
+
`${urls.identity.users.v1}/invitation/accept`
|
|
2660
2687
|
];
|
|
2661
2688
|
const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
|
|
2662
2689
|
|
|
@@ -2672,7 +2699,8 @@
|
|
|
2672
2699
|
accountSettings,
|
|
2673
2700
|
roles,
|
|
2674
2701
|
subscriptions,
|
|
2675
|
-
vendor
|
|
2702
|
+
vendor,
|
|
2703
|
+
subTenants
|
|
2676
2704
|
};
|
|
2677
2705
|
var index = {
|
|
2678
2706
|
fetch: fetch$1,
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -13,7 +13,7 @@ export const urls = {
|
|
|
13
13
|
v2: '/identity/resources/users/v2',
|
|
14
14
|
apiTokens: {
|
|
15
15
|
v1: '/identity/resources/users/api-tokens/v1',
|
|
16
|
-
}
|
|
16
|
+
},
|
|
17
17
|
},
|
|
18
18
|
configurations: {
|
|
19
19
|
v1: '/identity/resources/configurations/v1'
|
|
@@ -45,6 +45,9 @@ export const urls = {
|
|
|
45
45
|
roles: {
|
|
46
46
|
v1: '/identity/resources/roles/v1'
|
|
47
47
|
},
|
|
48
|
+
subTenants: {
|
|
49
|
+
v1: '/identity/resources/sub-tenants/users/v1'
|
|
50
|
+
}
|
|
48
51
|
},
|
|
49
52
|
team: {
|
|
50
53
|
sso: {
|
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ import * as roles from './roles';
|
|
|
12
12
|
import * as subscriptions from './subscriptions';
|
|
13
13
|
import {FronteggApiError} from './error';
|
|
14
14
|
import * as vendor from './vendor';
|
|
15
|
+
import * as subTenants from './sub-tenants';
|
|
15
16
|
|
|
16
17
|
import {ContextHolder, FronteggContext} from './ContextHolder';
|
|
17
18
|
|
|
@@ -28,6 +29,7 @@ export * from './account-settings/interfaces';
|
|
|
28
29
|
export * from './roles/interfaces';
|
|
29
30
|
export * from './subscriptions/interfaces';
|
|
30
31
|
export * from './vendor/interfaces';
|
|
32
|
+
export * from './sub-tenants/interfaces';
|
|
31
33
|
export * from './routers';
|
|
32
34
|
|
|
33
35
|
import {AuthStrategyEnum, SocialLoginProviders} from './auth'
|
|
@@ -50,7 +52,8 @@ const api = {
|
|
|
50
52
|
accountSettings,
|
|
51
53
|
roles,
|
|
52
54
|
subscriptions,
|
|
53
|
-
vendor
|
|
55
|
+
vendor,
|
|
56
|
+
subTenants
|
|
54
57
|
};
|
|
55
58
|
|
|
56
59
|
export {
|
package/src/routers.ts
CHANGED
|
@@ -8,6 +8,11 @@ export const fronteggAuthApiRoutes = [
|
|
|
8
8
|
`${urls.identity.auth.v1}/user/mfa/verify`,
|
|
9
9
|
`${urls.identity.auth.v1}/user/token/refresh`,
|
|
10
10
|
`${urls.identity.users.v1}`,
|
|
11
|
+
`${urls.identity.auth.v1}/passwordless/magiclink/postlogin`,
|
|
12
|
+
`${urls.identity.auth.v1}/passwordless/code/postlogin`,
|
|
13
|
+
`${urls.identity.auth.v1}/passwordless/smscode/postlogin`,
|
|
14
|
+
`${urls.identity.users.v1}/activate`,
|
|
15
|
+
`${urls.identity.users.v1}/invitation/accept`
|
|
11
16
|
]
|
|
12
17
|
|
|
13
18
|
export const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PaginationResult } from "../interfaces";
|
|
2
|
+
import { Get } from "../fetch";
|
|
3
|
+
import { urls } from "../constants";
|
|
4
|
+
import { ILoadAllUsers, ISubTenantUser } from './interfaces';
|
|
5
|
+
|
|
6
|
+
export async function loadAllUsers(
|
|
7
|
+
params: ILoadAllUsers
|
|
8
|
+
): Promise<PaginationResult<ISubTenantUser>> {
|
|
9
|
+
const filters = (params.filter || []).reduce(
|
|
10
|
+
(p, n) => ({ ...p, [n.id]: n.value }),
|
|
11
|
+
{}
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const sorts = params.sort?.length
|
|
15
|
+
? {
|
|
16
|
+
sortBy: params.sort?.[0]?.id ?? "name",
|
|
17
|
+
sortDirection: params.sort?.[0]?.desc ? "desc" : "asc",
|
|
18
|
+
}
|
|
19
|
+
: null;
|
|
20
|
+
|
|
21
|
+
return Get(urls.identity.subTenants.v1, {
|
|
22
|
+
pageOffset: params.pageOffset,
|
|
23
|
+
pageSize: params.pageSize,
|
|
24
|
+
...filters,
|
|
25
|
+
...sorts,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { QueryFilter, QuerySort } from "../interfaces";
|
|
2
|
+
|
|
3
|
+
export type ILoadAllUsers = {
|
|
4
|
+
silentLoading?: boolean;
|
|
5
|
+
filter?: QueryFilter[];
|
|
6
|
+
sort?: QuerySort[];
|
|
7
|
+
pageOffset: number;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type ISubTenantUserRole = {
|
|
12
|
+
id: string;
|
|
13
|
+
vendorId: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
key: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
isDefault: boolean;
|
|
19
|
+
firstUserRole: boolean;
|
|
20
|
+
level: number;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
permissions: string[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type ISubTenantUserPermission = {
|
|
27
|
+
id: string;
|
|
28
|
+
key: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
roleIds: string[];
|
|
34
|
+
categoryId: string;
|
|
35
|
+
fePermission: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type ISubTenantUserTenant = {
|
|
39
|
+
tenantId: string;
|
|
40
|
+
roles: ISubTenantUserRole[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type ISubTenantUser = {
|
|
44
|
+
id: string;
|
|
45
|
+
sub: string;
|
|
46
|
+
email: string;
|
|
47
|
+
verified: boolean;
|
|
48
|
+
mfaEnrolled: boolean;
|
|
49
|
+
mfaBypass?: boolean;
|
|
50
|
+
name?: string;
|
|
51
|
+
phoneNumber?: string;
|
|
52
|
+
profilePictureUrl?: string;
|
|
53
|
+
roles: ISubTenantUserRole[];
|
|
54
|
+
permissions: ISubTenantUserPermission[];
|
|
55
|
+
provider: string; // 'local' | 'saml' | 'google' | 'facebook';
|
|
56
|
+
tenantId: string;
|
|
57
|
+
tenantIds: string[];
|
|
58
|
+
activatedForTenant?: boolean;
|
|
59
|
+
isLocked?: boolean;
|
|
60
|
+
tenants: ISubTenantUserTenant[];
|
|
61
|
+
invisible?: true;
|
|
62
|
+
superUser?: true;
|
|
63
|
+
metadata: string;
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
lastLogin: Date;
|
|
66
|
+
}
|
package/src/teams/interfaces.ts
CHANGED