@forklaunch/implementation-iam-base 0.7.2 → 0.7.4
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/services/index.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IdDto, IdsDto } from '@forklaunch/common';
|
|
2
2
|
import { OpenTelemetryCollector, MetricsDefinition, TelemetryOptions } from '@forklaunch/core/http';
|
|
3
3
|
import { OrganizationService, PermissionService, RoleService, UserService } from '@forklaunch/interfaces-iam/interfaces';
|
|
4
|
+
export * from '@forklaunch/interfaces-iam/interfaces';
|
|
4
5
|
import { CreateOrganizationDto, UpdateOrganizationDto, CreatePermissionDto, UpdatePermissionDto, CreateRoleDto, RoleDto, UpdateRoleDto, CreateUserDto, UpdateUserDto } from '@forklaunch/interfaces-iam/types';
|
|
6
|
+
export * from '@forklaunch/interfaces-iam/types';
|
|
5
7
|
import { AnySchemaValidator } from '@forklaunch/validator';
|
|
6
8
|
import { EntityManager, FilterQuery } from '@mikro-orm/core';
|
|
7
9
|
import { OrganizationEntities, OrganizationDtos, OrganizationMappers, PermissionEntities, PermissionDtos, PermissionMappers, RoleEntities, RoleDtos, RoleMappers, UserEntities, UserDtos, UserMappers } from '../domain/types/index.mjs';
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IdDto, IdsDto } from '@forklaunch/common';
|
|
2
2
|
import { OpenTelemetryCollector, MetricsDefinition, TelemetryOptions } from '@forklaunch/core/http';
|
|
3
3
|
import { OrganizationService, PermissionService, RoleService, UserService } from '@forklaunch/interfaces-iam/interfaces';
|
|
4
|
+
export * from '@forklaunch/interfaces-iam/interfaces';
|
|
4
5
|
import { CreateOrganizationDto, UpdateOrganizationDto, CreatePermissionDto, UpdatePermissionDto, CreateRoleDto, RoleDto, UpdateRoleDto, CreateUserDto, UpdateUserDto } from '@forklaunch/interfaces-iam/types';
|
|
6
|
+
export * from '@forklaunch/interfaces-iam/types';
|
|
5
7
|
import { AnySchemaValidator } from '@forklaunch/validator';
|
|
6
8
|
import { EntityManager, FilterQuery } from '@mikro-orm/core';
|
|
7
9
|
import { OrganizationEntities, OrganizationDtos, OrganizationMappers, PermissionEntities, PermissionDtos, PermissionMappers, RoleEntities, RoleDtos, RoleMappers, UserEntities, UserDtos, UserMappers } from '../domain/types/index.js';
|
package/lib/services/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
20
|
|
|
20
21
|
// services/index.ts
|
|
@@ -664,10 +665,16 @@ var BaseUserService = class {
|
|
|
664
665
|
return user.roles.map((role) => role.permissions).flat();
|
|
665
666
|
}
|
|
666
667
|
};
|
|
668
|
+
|
|
669
|
+
// services/index.ts
|
|
670
|
+
__reExport(services_exports, require("@forklaunch/interfaces-iam/interfaces"), module.exports);
|
|
671
|
+
__reExport(services_exports, require("@forklaunch/interfaces-iam/types"), module.exports);
|
|
667
672
|
// Annotate the CommonJS export names for ESM import in node:
|
|
668
673
|
0 && (module.exports = {
|
|
669
674
|
BaseOrganizationService,
|
|
670
675
|
BasePermissionService,
|
|
671
676
|
BaseRoleService,
|
|
672
|
-
BaseUserService
|
|
677
|
+
BaseUserService,
|
|
678
|
+
...require("@forklaunch/interfaces-iam/interfaces"),
|
|
679
|
+
...require("@forklaunch/interfaces-iam/types")
|
|
673
680
|
});
|
package/lib/services/index.mjs
CHANGED
|
@@ -643,6 +643,10 @@ var BaseUserService = class {
|
|
|
643
643
|
return user.roles.map((role) => role.permissions).flat();
|
|
644
644
|
}
|
|
645
645
|
};
|
|
646
|
+
|
|
647
|
+
// services/index.ts
|
|
648
|
+
export * from "@forklaunch/interfaces-iam/interfaces";
|
|
649
|
+
export * from "@forklaunch/interfaces-iam/types";
|
|
646
650
|
export {
|
|
647
651
|
BaseOrganizationService,
|
|
648
652
|
BasePermissionService,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-iam-base",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Billing basic implementation for forklaunch",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@sinclair/typebox": "^0.34.41",
|
|
45
45
|
"ajv": "^8.17.1",
|
|
46
46
|
"zod": "^4.1.11",
|
|
47
|
-
"@forklaunch/interfaces-iam": "0.7.
|
|
47
|
+
"@forklaunch/interfaces-iam": "0.7.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@typescript/native-preview": "7.0.0-dev.20250930.1",
|