@forklaunch/implementation-iam-base 0.3.2 → 0.3.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.
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // schemas/index.ts
20
+ // domain/schemas/index.ts
21
21
  var schemas_exports = {};
22
22
  __export(schemas_exports, {
23
23
  BaseOrganizationServiceSchemas: () => BaseOrganizationServiceSchemas3,
@@ -27,19 +27,19 @@ __export(schemas_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(schemas_exports);
29
29
 
30
- // schemas/organization.schema.ts
30
+ // domain/schemas/organization.schema.ts
31
31
  var import_internal = require("@forklaunch/internal");
32
32
 
33
- // schemas/typebox/organization.schema.ts
33
+ // domain/schemas/typebox/organization.schema.ts
34
34
  var import_typebox4 = require("@forklaunch/validator/typebox");
35
35
 
36
- // schemas/typebox/user.schema.ts
36
+ // domain/schemas/typebox/user.schema.ts
37
37
  var import_typebox3 = require("@forklaunch/validator/typebox");
38
38
 
39
- // schemas/typebox/role.schema.ts
39
+ // domain/schemas/typebox/role.schema.ts
40
40
  var import_typebox2 = require("@forklaunch/validator/typebox");
41
41
 
42
- // schemas/typebox/permission.schema.ts
42
+ // domain/schemas/typebox/permission.schema.ts
43
43
  var import_typebox = require("@forklaunch/validator/typebox");
44
44
  var CreatePermissionSchema = {
45
45
  slug: import_typebox.string,
@@ -66,7 +66,7 @@ var BasePermissionServiceSchemas = (options) => ({
66
66
  PermissionSchema: PermissionSchema(options)
67
67
  });
68
68
 
69
- // schemas/typebox/role.schema.ts
69
+ // domain/schemas/typebox/role.schema.ts
70
70
  var CreateRoleSchema = {
71
71
  name: import_typebox2.string,
72
72
  permissionIds: (0, import_typebox2.optional)((0, import_typebox2.array)(import_typebox2.string)),
@@ -92,7 +92,7 @@ var BaseRoleServiceSchemas = (options) => ({
92
92
  RoleSchema: RoleSchema(options)
93
93
  });
94
94
 
95
- // schemas/typebox/user.schema.ts
95
+ // domain/schemas/typebox/user.schema.ts
96
96
  var CreateUserSchema = {
97
97
  email: import_typebox3.email,
98
98
  password: import_typebox3.string,
@@ -133,7 +133,7 @@ var BaseUserServiceSchemas = (options) => ({
133
133
  UserSchema: UserSchema(options)
134
134
  });
135
135
 
136
- // schemas/typebox/organization.schema.ts
136
+ // domain/schemas/typebox/organization.schema.ts
137
137
  var CreateOrganizationSchema = {
138
138
  name: import_typebox4.string,
139
139
  domain: import_typebox4.string,
@@ -167,16 +167,16 @@ var BaseOrganizationServiceSchemas = (options) => ({
167
167
  OrganizationSchema: OrganizationSchema(options)
168
168
  });
169
169
 
170
- // schemas/zod/organization.schema.ts
170
+ // domain/schemas/zod/organization.schema.ts
171
171
  var import_zod4 = require("@forklaunch/validator/zod");
172
172
 
173
- // schemas/zod/user.schema.ts
173
+ // domain/schemas/zod/user.schema.ts
174
174
  var import_zod3 = require("@forklaunch/validator/zod");
175
175
 
176
- // schemas/zod/role.schema.ts
176
+ // domain/schemas/zod/role.schema.ts
177
177
  var import_zod2 = require("@forklaunch/validator/zod");
178
178
 
179
- // schemas/zod/permission.schema.ts
179
+ // domain/schemas/zod/permission.schema.ts
180
180
  var import_zod = require("@forklaunch/validator/zod");
181
181
  var CreatePermissionSchema2 = {
182
182
  slug: import_zod.string,
@@ -203,7 +203,7 @@ var BasePermissionServiceSchemas2 = (options) => ({
203
203
  PermissionSchema: PermissionSchema2(options)
204
204
  });
205
205
 
206
- // schemas/zod/role.schema.ts
206
+ // domain/schemas/zod/role.schema.ts
207
207
  var CreateRoleSchema2 = {
208
208
  name: import_zod2.string,
209
209
  permissionIds: (0, import_zod2.optional)((0, import_zod2.array)(import_zod2.string)),
@@ -229,7 +229,7 @@ var BaseRoleServiceSchemas2 = (options) => ({
229
229
  RoleSchema: RoleSchema2(options)
230
230
  });
231
231
 
232
- // schemas/zod/user.schema.ts
232
+ // domain/schemas/zod/user.schema.ts
233
233
  var CreateUserSchema2 = {
234
234
  email: import_zod3.email,
235
235
  password: import_zod3.string,
@@ -270,7 +270,7 @@ var BaseUserServiceSchemas2 = (options) => ({
270
270
  UserSchema: UserSchema2(options)
271
271
  });
272
272
 
273
- // schemas/zod/organization.schema.ts
273
+ // domain/schemas/zod/organization.schema.ts
274
274
  var CreateOrganizationSchema2 = {
275
275
  name: import_zod4.string,
276
276
  domain: import_zod4.string,
@@ -304,27 +304,27 @@ var BaseOrganizationServiceSchemas2 = (options) => ({
304
304
  OrganizationSchema: OrganizationSchema2(options)
305
305
  });
306
306
 
307
- // schemas/organization.schema.ts
307
+ // domain/schemas/organization.schema.ts
308
308
  var BaseOrganizationServiceSchemas3 = (0, import_internal.serviceSchemaResolver)(
309
309
  BaseOrganizationServiceSchemas,
310
310
  BaseOrganizationServiceSchemas2
311
311
  );
312
312
 
313
- // schemas/permission.schema.ts
313
+ // domain/schemas/permission.schema.ts
314
314
  var import_internal2 = require("@forklaunch/internal");
315
315
  var BasePermissionServiceSchemas3 = (0, import_internal2.serviceSchemaResolver)(
316
316
  BasePermissionServiceSchemas,
317
317
  BasePermissionServiceSchemas2
318
318
  );
319
319
 
320
- // schemas/role.schema.ts
320
+ // domain/schemas/role.schema.ts
321
321
  var import_internal3 = require("@forklaunch/internal");
322
322
  var BaseRoleServiceSchemas3 = (0, import_internal3.serviceSchemaResolver)(
323
323
  BaseRoleServiceSchemas,
324
324
  BaseRoleServiceSchemas2
325
325
  );
326
326
 
327
- // schemas/user.schema.ts
327
+ // domain/schemas/user.schema.ts
328
328
  var import_internal4 = require("@forklaunch/internal");
329
329
  var BaseUserServiceSchemas3 = (0, import_internal4.serviceSchemaResolver)(
330
330
  BaseUserServiceSchemas,
@@ -1,7 +1,7 @@
1
- // schemas/organization.schema.ts
1
+ // domain/schemas/organization.schema.ts
2
2
  import { serviceSchemaResolver } from "@forklaunch/internal";
3
3
 
4
- // schemas/typebox/organization.schema.ts
4
+ // domain/schemas/typebox/organization.schema.ts
5
5
  import {
6
6
  array as array4,
7
7
  date as date4,
@@ -12,7 +12,7 @@ import {
12
12
  uuid as uuid4
13
13
  } from "@forklaunch/validator/typebox";
14
14
 
15
- // schemas/typebox/user.schema.ts
15
+ // domain/schemas/typebox/user.schema.ts
16
16
  import {
17
17
  array as array3,
18
18
  date as date3,
@@ -23,7 +23,7 @@ import {
23
23
  uuid as uuid3
24
24
  } from "@forklaunch/validator/typebox";
25
25
 
26
- // schemas/typebox/role.schema.ts
26
+ // domain/schemas/typebox/role.schema.ts
27
27
  import {
28
28
  array as array2,
29
29
  date as date2,
@@ -33,7 +33,7 @@ import {
33
33
  uuid as uuid2
34
34
  } from "@forklaunch/validator/typebox";
35
35
 
36
- // schemas/typebox/permission.schema.ts
36
+ // domain/schemas/typebox/permission.schema.ts
37
37
  import {
38
38
  array,
39
39
  date,
@@ -67,7 +67,7 @@ var BasePermissionServiceSchemas = (options) => ({
67
67
  PermissionSchema: PermissionSchema(options)
68
68
  });
69
69
 
70
- // schemas/typebox/role.schema.ts
70
+ // domain/schemas/typebox/role.schema.ts
71
71
  var CreateRoleSchema = {
72
72
  name: string2,
73
73
  permissionIds: optional2(array2(string2)),
@@ -93,7 +93,7 @@ var BaseRoleServiceSchemas = (options) => ({
93
93
  RoleSchema: RoleSchema(options)
94
94
  });
95
95
 
96
- // schemas/typebox/user.schema.ts
96
+ // domain/schemas/typebox/user.schema.ts
97
97
  var CreateUserSchema = {
98
98
  email,
99
99
  password: string3,
@@ -134,7 +134,7 @@ var BaseUserServiceSchemas = (options) => ({
134
134
  UserSchema: UserSchema(options)
135
135
  });
136
136
 
137
- // schemas/typebox/organization.schema.ts
137
+ // domain/schemas/typebox/organization.schema.ts
138
138
  var CreateOrganizationSchema = {
139
139
  name: string4,
140
140
  domain: string4,
@@ -168,7 +168,7 @@ var BaseOrganizationServiceSchemas = (options) => ({
168
168
  OrganizationSchema: OrganizationSchema(options)
169
169
  });
170
170
 
171
- // schemas/zod/organization.schema.ts
171
+ // domain/schemas/zod/organization.schema.ts
172
172
  import {
173
173
  array as array8,
174
174
  date as date8,
@@ -179,7 +179,7 @@ import {
179
179
  uuid as uuid8
180
180
  } from "@forklaunch/validator/zod";
181
181
 
182
- // schemas/zod/user.schema.ts
182
+ // domain/schemas/zod/user.schema.ts
183
183
  import {
184
184
  array as array7,
185
185
  date as date7,
@@ -190,7 +190,7 @@ import {
190
190
  uuid as uuid7
191
191
  } from "@forklaunch/validator/zod";
192
192
 
193
- // schemas/zod/role.schema.ts
193
+ // domain/schemas/zod/role.schema.ts
194
194
  import {
195
195
  array as array6,
196
196
  date as date6,
@@ -200,7 +200,7 @@ import {
200
200
  uuid as uuid6
201
201
  } from "@forklaunch/validator/zod";
202
202
 
203
- // schemas/zod/permission.schema.ts
203
+ // domain/schemas/zod/permission.schema.ts
204
204
  import {
205
205
  array as array5,
206
206
  date as date5,
@@ -234,7 +234,7 @@ var BasePermissionServiceSchemas2 = (options) => ({
234
234
  PermissionSchema: PermissionSchema2(options)
235
235
  });
236
236
 
237
- // schemas/zod/role.schema.ts
237
+ // domain/schemas/zod/role.schema.ts
238
238
  var CreateRoleSchema2 = {
239
239
  name: string6,
240
240
  permissionIds: optional6(array6(string6)),
@@ -260,7 +260,7 @@ var BaseRoleServiceSchemas2 = (options) => ({
260
260
  RoleSchema: RoleSchema2(options)
261
261
  });
262
262
 
263
- // schemas/zod/user.schema.ts
263
+ // domain/schemas/zod/user.schema.ts
264
264
  var CreateUserSchema2 = {
265
265
  email: email2,
266
266
  password: string7,
@@ -301,7 +301,7 @@ var BaseUserServiceSchemas2 = (options) => ({
301
301
  UserSchema: UserSchema2(options)
302
302
  });
303
303
 
304
- // schemas/zod/organization.schema.ts
304
+ // domain/schemas/zod/organization.schema.ts
305
305
  var CreateOrganizationSchema2 = {
306
306
  name: string8,
307
307
  domain: string8,
@@ -335,27 +335,27 @@ var BaseOrganizationServiceSchemas2 = (options) => ({
335
335
  OrganizationSchema: OrganizationSchema2(options)
336
336
  });
337
337
 
338
- // schemas/organization.schema.ts
338
+ // domain/schemas/organization.schema.ts
339
339
  var BaseOrganizationServiceSchemas3 = serviceSchemaResolver(
340
340
  BaseOrganizationServiceSchemas,
341
341
  BaseOrganizationServiceSchemas2
342
342
  );
343
343
 
344
- // schemas/permission.schema.ts
344
+ // domain/schemas/permission.schema.ts
345
345
  import { serviceSchemaResolver as serviceSchemaResolver2 } from "@forklaunch/internal";
346
346
  var BasePermissionServiceSchemas3 = serviceSchemaResolver2(
347
347
  BasePermissionServiceSchemas,
348
348
  BasePermissionServiceSchemas2
349
349
  );
350
350
 
351
- // schemas/role.schema.ts
351
+ // domain/schemas/role.schema.ts
352
352
  import { serviceSchemaResolver as serviceSchemaResolver3 } from "@forklaunch/internal";
353
353
  var BaseRoleServiceSchemas3 = serviceSchemaResolver3(
354
354
  BaseRoleServiceSchemas,
355
355
  BaseRoleServiceSchemas2
356
356
  );
357
357
 
358
- // schemas/user.schema.ts
358
+ // domain/schemas/user.schema.ts
359
359
  import { serviceSchemaResolver as serviceSchemaResolver4 } from "@forklaunch/internal";
360
360
  var BaseUserServiceSchemas3 = serviceSchemaResolver4(
361
361
  BaseUserServiceSchemas,
@@ -7,7 +7,7 @@ import {
7
7
  string,
8
8
  unknown,
9
9
  uuid
10
- } from '@{{app_name}}/core';
10
+ } from '@forklaunch/validator/zod';
11
11
  import { UserSchema } from './user.schema';
12
12
 
13
13
  export const CreateOrganizationSchema = {
@@ -5,7 +5,7 @@ import {
5
5
  string,
6
6
  unknown,
7
7
  uuid
8
- } from '@{{app_name}}/core';
8
+ } from '@forklaunch/validator/zod';
9
9
 
10
10
  export const CreatePermissionSchema = {
11
11
  slug: string,
@@ -5,7 +5,7 @@ import {
5
5
  string,
6
6
  unknown,
7
7
  uuid
8
- } from '@{{app_name}}/core';
8
+ } from '@forklaunch/validator/zod';
9
9
  import { PermissionSchema } from './permission.schema';
10
10
 
11
11
  export const CreateRoleSchema = {
@@ -6,7 +6,7 @@ import {
6
6
  string,
7
7
  unknown,
8
8
  uuid
9
- } from '@{{app_name}}/core';
9
+ } from '@forklaunch/validator/zod';
10
10
  import { RoleSchema } from './role.schema';
11
11
 
12
12
  export const CreateUserSchema = {
@@ -14,8 +14,8 @@ import {
14
14
  } from '@forklaunch/internal';
15
15
  import { AnySchemaValidator } from '@forklaunch/validator';
16
16
  import { EntityManager } from '@mikro-orm/core';
17
- import { OrganizationDtos } from '../types/iamDto.types';
18
- import { OrganizationEntities } from '../types/iamEntities.types';
17
+ import { OrganizationDtos } from '../domain/types/iamDto.types';
18
+ import { OrganizationEntities } from '../domain/types/iamEntities.types';
19
19
 
20
20
  export class BaseOrganizationService<
21
21
  SchemaValidator extends AnySchemaValidator,
@@ -18,8 +18,8 @@ import {
18
18
  } from '@forklaunch/internal';
19
19
  import { AnySchemaValidator } from '@forklaunch/validator';
20
20
  import { EntityManager } from '@mikro-orm/core';
21
- import { PermissionDtos } from '../types/iamDto.types';
22
- import { PermissionEntities } from '../types/iamEntities.types';
21
+ import { PermissionDtos } from '../domain/types/iamDto.types';
22
+ import { PermissionEntities } from '../domain/types/iamEntities.types';
23
23
 
24
24
  export class BasePermissionService<
25
25
  SchemaValidator extends AnySchemaValidator,
@@ -16,8 +16,8 @@ import {
16
16
  transformIntoInternalMapper
17
17
  } from '@forklaunch/internal';
18
18
  import { AnySchemaValidator } from '@forklaunch/validator';
19
- import { RoleDtos } from '../types/iamDto.types';
20
- import { RoleEntities } from '../types/iamEntities.types';
19
+ import { RoleDtos } from '../domain/types/iamDto.types';
20
+ import { RoleEntities } from '../domain/types/iamEntities.types';
21
21
 
22
22
  export class BaseRoleService<
23
23
  SchemaValidator extends AnySchemaValidator,
@@ -20,8 +20,8 @@ import {
20
20
  } from '@forklaunch/internal';
21
21
  import { AnySchemaValidator } from '@forklaunch/validator';
22
22
  import { EntityManager } from '@mikro-orm/core';
23
- import { UserDtos } from '../types/iamDto.types';
24
- import { UserEntities } from '../types/iamEntities.types';
23
+ import { UserDtos } from '../domain/types/iamDto.types';
24
+ import { UserEntities } from '../domain/types/iamEntities.types';
25
25
 
26
26
  export class BaseUserService<
27
27
  SchemaValidator extends AnySchemaValidator,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/implementation-iam-base",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Billing basic implementation for forklaunch",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -14,16 +14,22 @@
14
14
  "author": "Forklift Technologies, Inc.",
15
15
  "exports": {
16
16
  "./schemas": {
17
- "types": "./lib/schemas/index.d.ts",
18
- "import": "./lib/schemas/index.mjs",
19
- "require": "./lib/schemas/index.js",
20
- "default": "./lib/schemas/index.js"
17
+ "types": "./lib/domain/schemas/index.d.ts",
18
+ "import": "./lib/domain/schemas/index.mjs",
19
+ "require": "./lib/domain/schemas/index.js",
20
+ "default": "./lib/domain/schemas/index.js"
21
21
  },
22
22
  "./services": {
23
23
  "types": "./lib/services/index.d.ts",
24
24
  "import": "./lib/services/index.mjs",
25
25
  "require": "./lib/services/index.js",
26
26
  "default": "./lib/services/index.js"
27
+ },
28
+ "./types": {
29
+ "types": "./lib/domain/types/index.d.ts",
30
+ "import": "./lib/domain/types/index.mjs",
31
+ "require": "./lib/domain/types/index.js",
32
+ "default": "./lib/domain/types/index.js"
27
33
  }
28
34
  },
29
35
  "files": [
@@ -47,7 +53,7 @@
47
53
  "typedoc": "^0.28.5"
48
54
  },
49
55
  "scripts": {
50
- "build": "tsc --noEmit && tsup schemas/index.ts services/index.ts --format cjs,esm --no-splitting --dts --tsconfig tsconfig.json --out-dir lib --clean && if [ -f eject-package.bash ]; then pnpm package:eject; fi",
56
+ "build": "tsc --noEmit && tsup domain/schemas/index.ts services/index.ts domain/types/index.ts --format cjs,esm --no-splitting --dts --tsconfig tsconfig.json --out-dir lib --clean && if [ -f eject-package.bash ]; then pnpm package:eject; fi",
51
57
  "clean": "rm -rf lib pnpm.lock.yaml node_modules",
52
58
  "docs": "typedoc --out docs *",
53
59
  "format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.{ts,tsx,json}' --write",
File without changes
File without changes