@friggframework/core 2.0.0--canary.545.e7becd9.0 → 2.0.0--canary.545.5ec2975.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/admin-scripts/repositories/admin-api-key-repository-factory.js +4 -8
- package/admin-scripts/repositories/admin-process-repository-factory.js +2 -2
- package/admin-scripts/repositories/script-execution-repository-factory.js +4 -8
- package/admin-scripts/repositories/script-schedule-repository-factory.js +2 -2
- package/credential/repositories/credential-repository-factory.js +2 -2
- package/database/repositories/health-check-repository-factory.js +4 -8
- package/index.js +12 -23
- package/integrations/repositories/integration-mapping-repository-factory.js +4 -8
- package/integrations/repositories/integration-repository-factory.js +4 -8
- package/integrations/repositories/process-repository-factory.js +2 -2
- package/modules/repositories/authorization-session-repository-factory.js +2 -4
- package/modules/repositories/module-repository-factory.js +2 -2
- package/package.json +5 -5
- package/syncs/repositories/sync-repository-factory.js +4 -4
- package/token/repositories/token-repository-factory.js +4 -4
- package/user/repositories/user-repository-factory.js +4 -4
- package/websocket/repositories/websocket-connection-repository-factory.js +4 -8
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
const {
|
|
2
|
-
AdminApiKeyRepositoryMongo,
|
|
3
|
-
} = require('./admin-api-key-repository-mongo');
|
|
4
1
|
const {
|
|
5
2
|
AdminApiKeyRepositoryPostgres,
|
|
6
3
|
} = require('./admin-api-key-repository-postgres');
|
|
7
|
-
const {
|
|
8
|
-
AdminApiKeyRepositoryDocumentDB,
|
|
9
|
-
} = require('./admin-api-key-repository-documentdb');
|
|
10
4
|
const config = require('../../database/config');
|
|
11
5
|
|
|
12
6
|
/**
|
|
@@ -31,12 +25,14 @@ function createAdminApiKeyRepository() {
|
|
|
31
25
|
|
|
32
26
|
switch (dbType) {
|
|
33
27
|
case 'mongodb':
|
|
28
|
+
const { AdminApiKeyRepositoryMongo } = require('./admin-api-key-repository-mongo');
|
|
34
29
|
return new AdminApiKeyRepositoryMongo();
|
|
35
30
|
|
|
36
31
|
case 'postgresql':
|
|
37
32
|
return new AdminApiKeyRepositoryPostgres();
|
|
38
33
|
|
|
39
34
|
case 'documentdb':
|
|
35
|
+
const { AdminApiKeyRepositoryDocumentDB } = require('./admin-api-key-repository-documentdb');
|
|
40
36
|
return new AdminApiKeyRepositoryDocumentDB();
|
|
41
37
|
|
|
42
38
|
default:
|
|
@@ -49,7 +45,7 @@ function createAdminApiKeyRepository() {
|
|
|
49
45
|
module.exports = {
|
|
50
46
|
createAdminApiKeyRepository,
|
|
51
47
|
// Export adapters for direct testing
|
|
52
|
-
AdminApiKeyRepositoryMongo,
|
|
48
|
+
get AdminApiKeyRepositoryMongo() { return require('./admin-api-key-repository-mongo').AdminApiKeyRepositoryMongo; },
|
|
53
49
|
AdminApiKeyRepositoryPostgres,
|
|
54
|
-
AdminApiKeyRepositoryDocumentDB,
|
|
50
|
+
get AdminApiKeyRepositoryDocumentDB() { return require('./admin-api-key-repository-documentdb').AdminApiKeyRepositoryDocumentDB; },
|
|
55
51
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const { AdminProcessRepositoryMongo } = require('./admin-process-repository-mongo');
|
|
2
1
|
const { AdminProcessRepositoryPostgres } = require('./admin-process-repository-postgres');
|
|
3
2
|
const {
|
|
4
3
|
AdminProcessRepositoryDocumentDB,
|
|
@@ -27,6 +26,7 @@ function createAdminProcessRepository() {
|
|
|
27
26
|
|
|
28
27
|
switch (dbType) {
|
|
29
28
|
case 'mongodb':
|
|
29
|
+
const { AdminProcessRepositoryMongo } = require('./admin-process-repository-mongo');
|
|
30
30
|
return new AdminProcessRepositoryMongo();
|
|
31
31
|
|
|
32
32
|
case 'postgresql':
|
|
@@ -45,7 +45,7 @@ function createAdminProcessRepository() {
|
|
|
45
45
|
module.exports = {
|
|
46
46
|
createAdminProcessRepository,
|
|
47
47
|
// Export adapters for direct testing
|
|
48
|
-
AdminProcessRepositoryMongo,
|
|
48
|
+
get AdminProcessRepositoryMongo() { return require('./admin-process-repository-mongo').AdminProcessRepositoryMongo; },
|
|
49
49
|
AdminProcessRepositoryPostgres,
|
|
50
50
|
AdminProcessRepositoryDocumentDB,
|
|
51
51
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
const {
|
|
2
|
-
ScriptExecutionRepositoryMongo,
|
|
3
|
-
} = require('./script-execution-repository-mongo');
|
|
4
1
|
const {
|
|
5
2
|
ScriptExecutionRepositoryPostgres,
|
|
6
3
|
} = require('./script-execution-repository-postgres');
|
|
7
|
-
const {
|
|
8
|
-
ScriptExecutionRepositoryDocumentDB,
|
|
9
|
-
} = require('./script-execution-repository-documentdb');
|
|
10
4
|
const config = require('../../database/config');
|
|
11
5
|
|
|
12
6
|
/**
|
|
@@ -31,12 +25,14 @@ function createScriptExecutionRepository() {
|
|
|
31
25
|
|
|
32
26
|
switch (dbType) {
|
|
33
27
|
case 'mongodb':
|
|
28
|
+
const { ScriptExecutionRepositoryMongo } = require('./script-execution-repository-mongo');
|
|
34
29
|
return new ScriptExecutionRepositoryMongo();
|
|
35
30
|
|
|
36
31
|
case 'postgresql':
|
|
37
32
|
return new ScriptExecutionRepositoryPostgres();
|
|
38
33
|
|
|
39
34
|
case 'documentdb':
|
|
35
|
+
const { ScriptExecutionRepositoryDocumentDB } = require('./script-execution-repository-documentdb');
|
|
40
36
|
return new ScriptExecutionRepositoryDocumentDB();
|
|
41
37
|
|
|
42
38
|
default:
|
|
@@ -49,7 +45,7 @@ function createScriptExecutionRepository() {
|
|
|
49
45
|
module.exports = {
|
|
50
46
|
createScriptExecutionRepository,
|
|
51
47
|
// Export adapters for direct testing
|
|
52
|
-
ScriptExecutionRepositoryMongo,
|
|
48
|
+
get ScriptExecutionRepositoryMongo() { return require('./script-execution-repository-mongo').ScriptExecutionRepositoryMongo; },
|
|
53
49
|
ScriptExecutionRepositoryPostgres,
|
|
54
|
-
ScriptExecutionRepositoryDocumentDB,
|
|
50
|
+
get ScriptExecutionRepositoryDocumentDB() { return require('./script-execution-repository-documentdb').ScriptExecutionRepositoryDocumentDB; },
|
|
55
51
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const { ScriptScheduleRepositoryMongo } = require('./script-schedule-repository-mongo');
|
|
2
1
|
const { ScriptScheduleRepositoryPostgres } = require('./script-schedule-repository-postgres');
|
|
3
2
|
const {
|
|
4
3
|
ScriptScheduleRepositoryDocumentDB,
|
|
@@ -27,6 +26,7 @@ function createScriptScheduleRepository() {
|
|
|
27
26
|
|
|
28
27
|
switch (dbType) {
|
|
29
28
|
case 'mongodb':
|
|
29
|
+
const { ScriptScheduleRepositoryMongo } = require('./script-schedule-repository-mongo');
|
|
30
30
|
return new ScriptScheduleRepositoryMongo();
|
|
31
31
|
|
|
32
32
|
case 'postgresql':
|
|
@@ -45,7 +45,7 @@ function createScriptScheduleRepository() {
|
|
|
45
45
|
module.exports = {
|
|
46
46
|
createScriptScheduleRepository,
|
|
47
47
|
// Export adapters for direct testing
|
|
48
|
-
ScriptScheduleRepositoryMongo,
|
|
48
|
+
get ScriptScheduleRepositoryMongo() { return require('./script-schedule-repository-mongo').ScriptScheduleRepositoryMongo; },
|
|
49
49
|
ScriptScheduleRepositoryPostgres,
|
|
50
50
|
ScriptScheduleRepositoryDocumentDB,
|
|
51
51
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const { CredentialRepositoryMongo } = require('./credential-repository-mongo');
|
|
2
1
|
const {
|
|
3
2
|
CredentialRepositoryPostgres,
|
|
4
3
|
} = require('./credential-repository-postgres');
|
|
@@ -30,6 +29,7 @@ function createCredentialRepository() {
|
|
|
30
29
|
|
|
31
30
|
switch (dbType) {
|
|
32
31
|
case 'mongodb':
|
|
32
|
+
const { CredentialRepositoryMongo } = require('./credential-repository-mongo');
|
|
33
33
|
return new CredentialRepositoryMongo();
|
|
34
34
|
|
|
35
35
|
case 'postgresql':
|
|
@@ -48,7 +48,7 @@ function createCredentialRepository() {
|
|
|
48
48
|
module.exports = {
|
|
49
49
|
createCredentialRepository,
|
|
50
50
|
// Export adapters for direct testing
|
|
51
|
-
CredentialRepositoryMongo,
|
|
51
|
+
get CredentialRepositoryMongo() { return require('./credential-repository-mongo').CredentialRepositoryMongo; },
|
|
52
52
|
CredentialRepositoryPostgres,
|
|
53
53
|
CredentialRepositoryDocumentDB,
|
|
54
54
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
const {
|
|
2
|
-
HealthCheckRepositoryMongoDB,
|
|
3
|
-
} = require('./health-check-repository-mongodb');
|
|
4
1
|
const {
|
|
5
2
|
HealthCheckRepositoryPostgreSQL,
|
|
6
3
|
} = require('./health-check-repository-postgres');
|
|
7
|
-
const {
|
|
8
|
-
HealthCheckRepositoryDocumentDB,
|
|
9
|
-
} = require('./health-check-repository-documentdb');
|
|
10
4
|
const config = require('../config');
|
|
11
5
|
|
|
12
6
|
/**
|
|
@@ -31,12 +25,14 @@ function createHealthCheckRepository({ prismaClient } = {}) {
|
|
|
31
25
|
|
|
32
26
|
switch (dbType) {
|
|
33
27
|
case 'mongodb':
|
|
28
|
+
const { HealthCheckRepositoryMongoDB } = require('./health-check-repository-mongodb');
|
|
34
29
|
return new HealthCheckRepositoryMongoDB({ prismaClient });
|
|
35
30
|
|
|
36
31
|
case 'postgresql':
|
|
37
32
|
return new HealthCheckRepositoryPostgreSQL({ prismaClient });
|
|
38
33
|
|
|
39
34
|
case 'documentdb':
|
|
35
|
+
const { HealthCheckRepositoryDocumentDB } = require('./health-check-repository-documentdb');
|
|
40
36
|
return new HealthCheckRepositoryDocumentDB({ prismaClient });
|
|
41
37
|
|
|
42
38
|
default:
|
|
@@ -48,7 +44,7 @@ function createHealthCheckRepository({ prismaClient } = {}) {
|
|
|
48
44
|
|
|
49
45
|
module.exports = {
|
|
50
46
|
createHealthCheckRepository,
|
|
51
|
-
HealthCheckRepositoryMongoDB,
|
|
47
|
+
get HealthCheckRepositoryMongoDB() { return require('./health-check-repository-mongodb').HealthCheckRepositoryMongoDB; },
|
|
52
48
|
HealthCheckRepositoryPostgreSQL,
|
|
53
|
-
HealthCheckRepositoryDocumentDB,
|
|
49
|
+
get HealthCheckRepositoryDocumentDB() { return require('./health-check-repository-documentdb').HealthCheckRepositoryDocumentDB; },
|
|
54
50
|
};
|
package/index.js
CHANGED
|
@@ -14,23 +14,12 @@ const {
|
|
|
14
14
|
createHandler,
|
|
15
15
|
} = require('./core/index');
|
|
16
16
|
const {
|
|
17
|
-
mongoose,
|
|
18
|
-
connectToDatabase,
|
|
19
|
-
disconnectFromDatabase,
|
|
20
|
-
createObjectId,
|
|
21
|
-
IndividualUser,
|
|
22
|
-
OrganizationUser,
|
|
23
|
-
State,
|
|
24
|
-
Token,
|
|
25
|
-
UserModel,
|
|
26
|
-
WebsocketConnection,
|
|
27
17
|
prisma,
|
|
28
18
|
TokenRepository,
|
|
29
19
|
WebsocketConnectionRepository,
|
|
30
20
|
} = require('./database/index');
|
|
31
21
|
const {
|
|
32
22
|
createUserRepository,
|
|
33
|
-
UserRepositoryMongo,
|
|
34
23
|
UserRepositoryPostgres,
|
|
35
24
|
} = require('./user/repositories/user-repository-factory');
|
|
36
25
|
const {
|
|
@@ -134,22 +123,22 @@ module.exports = {
|
|
|
134
123
|
loadInstalledModules,
|
|
135
124
|
createHandler,
|
|
136
125
|
|
|
137
|
-
// database
|
|
138
|
-
mongoose,
|
|
139
|
-
connectToDatabase,
|
|
140
|
-
disconnectFromDatabase,
|
|
141
|
-
createObjectId,
|
|
142
|
-
IndividualUser,
|
|
143
|
-
OrganizationUser,
|
|
144
|
-
State,
|
|
145
|
-
Token,
|
|
146
|
-
UserModel,
|
|
147
|
-
WebsocketConnection,
|
|
126
|
+
// database (lazy-loaded: MongoDB/Mongoose symbols only resolve when accessed)
|
|
127
|
+
get mongoose() { return require('./database/index').mongoose; },
|
|
128
|
+
get connectToDatabase() { return require('./database/index').connectToDatabase; },
|
|
129
|
+
get disconnectFromDatabase() { return require('./database/index').disconnectFromDatabase; },
|
|
130
|
+
get createObjectId() { return require('./database/index').createObjectId; },
|
|
131
|
+
get IndividualUser() { return require('./database/index').IndividualUser; },
|
|
132
|
+
get OrganizationUser() { return require('./database/index').OrganizationUser; },
|
|
133
|
+
get State() { return require('./database/index').State; },
|
|
134
|
+
get Token() { return require('./database/index').Token; },
|
|
135
|
+
get UserModel() { return require('./database/index').UserModel; },
|
|
136
|
+
get WebsocketConnection() { return require('./database/index').WebsocketConnection; },
|
|
148
137
|
prisma,
|
|
149
138
|
TokenRepository,
|
|
150
139
|
WebsocketConnectionRepository,
|
|
151
140
|
createUserRepository,
|
|
152
|
-
UserRepositoryMongo,
|
|
141
|
+
get UserRepositoryMongo() { return require('./user/repositories/user-repository-factory').UserRepositoryMongo; },
|
|
153
142
|
UserRepositoryPostgres,
|
|
154
143
|
GetUserFromXFriggHeaders,
|
|
155
144
|
GetUserFromAdopterJwt,
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
const {
|
|
2
|
-
IntegrationMappingRepositoryMongo,
|
|
3
|
-
} = require('./integration-mapping-repository-mongo');
|
|
4
1
|
const {
|
|
5
2
|
IntegrationMappingRepositoryPostgres,
|
|
6
3
|
} = require('./integration-mapping-repository-postgres');
|
|
7
|
-
const {
|
|
8
|
-
IntegrationMappingRepositoryDocumentDB,
|
|
9
|
-
} = require('./integration-mapping-repository-documentdb');
|
|
10
4
|
const config = require('../../database/config');
|
|
11
5
|
|
|
12
6
|
/**
|
|
@@ -33,12 +27,14 @@ function createIntegrationMappingRepository() {
|
|
|
33
27
|
|
|
34
28
|
switch (dbType) {
|
|
35
29
|
case 'mongodb':
|
|
30
|
+
const { IntegrationMappingRepositoryMongo } = require('./integration-mapping-repository-mongo');
|
|
36
31
|
return new IntegrationMappingRepositoryMongo();
|
|
37
32
|
|
|
38
33
|
case 'postgresql':
|
|
39
34
|
return new IntegrationMappingRepositoryPostgres();
|
|
40
35
|
|
|
41
36
|
case 'documentdb':
|
|
37
|
+
const { IntegrationMappingRepositoryDocumentDB } = require('./integration-mapping-repository-documentdb');
|
|
42
38
|
return new IntegrationMappingRepositoryDocumentDB();
|
|
43
39
|
|
|
44
40
|
default:
|
|
@@ -51,7 +47,7 @@ function createIntegrationMappingRepository() {
|
|
|
51
47
|
module.exports = {
|
|
52
48
|
createIntegrationMappingRepository,
|
|
53
49
|
// Export adapters for direct testing
|
|
54
|
-
IntegrationMappingRepositoryMongo,
|
|
50
|
+
get IntegrationMappingRepositoryMongo() { return require('./integration-mapping-repository-mongo').IntegrationMappingRepositoryMongo; },
|
|
55
51
|
IntegrationMappingRepositoryPostgres,
|
|
56
|
-
IntegrationMappingRepositoryDocumentDB,
|
|
52
|
+
get IntegrationMappingRepositoryDocumentDB() { return require('./integration-mapping-repository-documentdb').IntegrationMappingRepositoryDocumentDB; },
|
|
57
53
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
const {
|
|
2
|
-
IntegrationRepositoryMongo,
|
|
3
|
-
} = require('./integration-repository-mongo');
|
|
4
1
|
const {
|
|
5
2
|
IntegrationRepositoryPostgres,
|
|
6
3
|
} = require('./integration-repository-postgres');
|
|
7
|
-
const {
|
|
8
|
-
IntegrationRepositoryDocumentDB,
|
|
9
|
-
} = require('./integration-repository-documentdb');
|
|
10
4
|
const config = require('../../database/config');
|
|
11
5
|
|
|
12
6
|
/**
|
|
@@ -31,12 +25,14 @@ function createIntegrationRepository() {
|
|
|
31
25
|
|
|
32
26
|
switch (dbType) {
|
|
33
27
|
case 'mongodb':
|
|
28
|
+
const { IntegrationRepositoryMongo } = require('./integration-repository-mongo');
|
|
34
29
|
return new IntegrationRepositoryMongo();
|
|
35
30
|
|
|
36
31
|
case 'postgresql':
|
|
37
32
|
return new IntegrationRepositoryPostgres();
|
|
38
33
|
|
|
39
34
|
case 'documentdb':
|
|
35
|
+
const { IntegrationRepositoryDocumentDB } = require('./integration-repository-documentdb');
|
|
40
36
|
return new IntegrationRepositoryDocumentDB();
|
|
41
37
|
|
|
42
38
|
default:
|
|
@@ -49,7 +45,7 @@ function createIntegrationRepository() {
|
|
|
49
45
|
module.exports = {
|
|
50
46
|
createIntegrationRepository,
|
|
51
47
|
// Export adapters for direct testing
|
|
52
|
-
IntegrationRepositoryMongo,
|
|
48
|
+
get IntegrationRepositoryMongo() { return require('./integration-repository-mongo').IntegrationRepositoryMongo; },
|
|
53
49
|
IntegrationRepositoryPostgres,
|
|
54
|
-
IntegrationRepositoryDocumentDB,
|
|
50
|
+
get IntegrationRepositoryDocumentDB() { return require('./integration-repository-documentdb').IntegrationRepositoryDocumentDB; },
|
|
55
51
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const { ProcessRepositoryMongo } = require('./process-repository-mongo');
|
|
2
1
|
const { ProcessRepositoryPostgres } = require('./process-repository-postgres');
|
|
3
2
|
const {
|
|
4
3
|
ProcessRepositoryDocumentDB,
|
|
@@ -28,6 +27,7 @@ function createProcessRepository() {
|
|
|
28
27
|
|
|
29
28
|
switch (dbType) {
|
|
30
29
|
case 'mongodb':
|
|
30
|
+
const { ProcessRepositoryMongo } = require('./process-repository-mongo');
|
|
31
31
|
return new ProcessRepositoryMongo();
|
|
32
32
|
|
|
33
33
|
case 'postgresql':
|
|
@@ -46,7 +46,7 @@ function createProcessRepository() {
|
|
|
46
46
|
module.exports = {
|
|
47
47
|
createProcessRepository,
|
|
48
48
|
// Export adapters for direct testing
|
|
49
|
-
ProcessRepositoryMongo,
|
|
49
|
+
get ProcessRepositoryMongo() { return require('./process-repository-mongo').ProcessRepositoryMongo; },
|
|
50
50
|
ProcessRepositoryPostgres,
|
|
51
51
|
ProcessRepositoryDocumentDB,
|
|
52
52
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
const {
|
|
2
|
-
AuthorizationSessionRepositoryMongo,
|
|
3
|
-
} = require('./authorization-session-repository-mongo');
|
|
4
1
|
const {
|
|
5
2
|
AuthorizationSessionRepositoryPostgres,
|
|
6
3
|
} = require('./authorization-session-repository-postgres');
|
|
@@ -35,6 +32,7 @@ function createAuthorizationSessionRepository(prismaClient) {
|
|
|
35
32
|
|
|
36
33
|
switch (dbType) {
|
|
37
34
|
case 'mongodb':
|
|
35
|
+
const { AuthorizationSessionRepositoryMongo } = require('./authorization-session-repository-mongo');
|
|
38
36
|
return new AuthorizationSessionRepositoryMongo(prismaClient);
|
|
39
37
|
|
|
40
38
|
case 'postgresql':
|
|
@@ -50,6 +48,6 @@ function createAuthorizationSessionRepository(prismaClient) {
|
|
|
50
48
|
module.exports = {
|
|
51
49
|
createAuthorizationSessionRepository,
|
|
52
50
|
// Export adapters for direct testing
|
|
53
|
-
AuthorizationSessionRepositoryMongo,
|
|
51
|
+
get AuthorizationSessionRepositoryMongo() { return require('./authorization-session-repository-mongo').AuthorizationSessionRepositoryMongo; },
|
|
54
52
|
AuthorizationSessionRepositoryPostgres,
|
|
55
53
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const { ModuleRepositoryMongo } = require('./module-repository-mongo');
|
|
2
1
|
const { ModuleRepositoryPostgres } = require('./module-repository-postgres');
|
|
3
2
|
const {
|
|
4
3
|
ModuleRepositoryDocumentDB,
|
|
@@ -16,6 +15,7 @@ function createModuleRepository() {
|
|
|
16
15
|
|
|
17
16
|
switch (dbType) {
|
|
18
17
|
case 'mongodb':
|
|
18
|
+
const { ModuleRepositoryMongo } = require('./module-repository-mongo');
|
|
19
19
|
return new ModuleRepositoryMongo();
|
|
20
20
|
|
|
21
21
|
case 'postgresql':
|
|
@@ -34,7 +34,7 @@ function createModuleRepository() {
|
|
|
34
34
|
module.exports = {
|
|
35
35
|
createModuleRepository,
|
|
36
36
|
// Export adapters for direct testing
|
|
37
|
-
ModuleRepositoryMongo,
|
|
37
|
+
get ModuleRepositoryMongo() { return require('./module-repository-mongo').ModuleRepositoryMongo; },
|
|
38
38
|
ModuleRepositoryPostgres,
|
|
39
39
|
ModuleRepositoryDocumentDB,
|
|
40
40
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.545.
|
|
4
|
+
"version": "2.0.0--canary.545.5ec2975.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hapi/boom": "^10.0.1",
|
|
7
7
|
"bcryptjs": "^2.4.3",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@friggframework/eslint-config": "2.0.0--canary.545.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.545.
|
|
39
|
-
"@friggframework/test": "2.0.0--canary.545.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.545.5ec2975.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.545.5ec2975.0",
|
|
39
|
+
"@friggframework/test": "2.0.0--canary.545.5ec2975.0",
|
|
40
40
|
"@prisma/client": "^6.17.0",
|
|
41
41
|
"@types/lodash": "4.17.15",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "5ec297501f029724d187a2ccb57a6ab6730d9f6a"
|
|
81
81
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
const { SyncRepositoryMongo } = require('./sync-repository-mongo');
|
|
2
1
|
const { SyncRepositoryPostgres } = require('./sync-repository-postgres');
|
|
3
|
-
const { SyncRepositoryDocumentDB } = require('./sync-repository-documentdb');
|
|
4
2
|
const config = require('../../database/config');
|
|
5
3
|
|
|
6
4
|
/**
|
|
@@ -19,12 +17,14 @@ function createSyncRepository() {
|
|
|
19
17
|
|
|
20
18
|
switch (dbType) {
|
|
21
19
|
case 'mongodb':
|
|
20
|
+
const { SyncRepositoryMongo } = require('./sync-repository-mongo');
|
|
22
21
|
return new SyncRepositoryMongo();
|
|
23
22
|
|
|
24
23
|
case 'postgresql':
|
|
25
24
|
return new SyncRepositoryPostgres();
|
|
26
25
|
|
|
27
26
|
case 'documentdb':
|
|
27
|
+
const { SyncRepositoryDocumentDB } = require('./sync-repository-documentdb');
|
|
28
28
|
return new SyncRepositoryDocumentDB();
|
|
29
29
|
|
|
30
30
|
default:
|
|
@@ -37,7 +37,7 @@ function createSyncRepository() {
|
|
|
37
37
|
module.exports = {
|
|
38
38
|
createSyncRepository,
|
|
39
39
|
// Export adapters for direct testing
|
|
40
|
-
SyncRepositoryMongo,
|
|
40
|
+
get SyncRepositoryMongo() { return require('./sync-repository-mongo').SyncRepositoryMongo; },
|
|
41
41
|
SyncRepositoryPostgres,
|
|
42
|
-
SyncRepositoryDocumentDB,
|
|
42
|
+
get SyncRepositoryDocumentDB() { return require('./sync-repository-documentdb').SyncRepositoryDocumentDB; },
|
|
43
43
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
const { TokenRepositoryMongo } = require('./token-repository-mongo');
|
|
2
1
|
const { TokenRepositoryPostgres } = require('./token-repository-postgres');
|
|
3
|
-
const { TokenRepositoryDocumentDB } = require('./token-repository-documentdb');
|
|
4
2
|
const config = require('../../database/config');
|
|
5
3
|
|
|
6
4
|
/**
|
|
@@ -14,12 +12,14 @@ function createTokenRepository() {
|
|
|
14
12
|
|
|
15
13
|
switch (dbType) {
|
|
16
14
|
case 'mongodb':
|
|
15
|
+
const { TokenRepositoryMongo } = require('./token-repository-mongo');
|
|
17
16
|
return new TokenRepositoryMongo();
|
|
18
17
|
|
|
19
18
|
case 'postgresql':
|
|
20
19
|
return new TokenRepositoryPostgres();
|
|
21
20
|
|
|
22
21
|
case 'documentdb':
|
|
22
|
+
const { TokenRepositoryDocumentDB } = require('./token-repository-documentdb');
|
|
23
23
|
return new TokenRepositoryDocumentDB();
|
|
24
24
|
|
|
25
25
|
default:
|
|
@@ -32,7 +32,7 @@ function createTokenRepository() {
|
|
|
32
32
|
module.exports = {
|
|
33
33
|
createTokenRepository,
|
|
34
34
|
// Export adapters for direct testing
|
|
35
|
-
TokenRepositoryMongo,
|
|
35
|
+
get TokenRepositoryMongo() { return require('./token-repository-mongo').TokenRepositoryMongo; },
|
|
36
36
|
TokenRepositoryPostgres,
|
|
37
|
-
TokenRepositoryDocumentDB,
|
|
37
|
+
get TokenRepositoryDocumentDB() { return require('./token-repository-documentdb').TokenRepositoryDocumentDB; },
|
|
38
38
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
const { UserRepositoryMongo } = require('./user-repository-mongo');
|
|
2
1
|
const { UserRepositoryPostgres } = require('./user-repository-postgres');
|
|
3
|
-
const { UserRepositoryDocumentDB } = require('./user-repository-documentdb');
|
|
4
2
|
const databaseConfig = require('../../database/config');
|
|
5
3
|
|
|
6
4
|
/**
|
|
@@ -28,12 +26,14 @@ function createUserRepository() {
|
|
|
28
26
|
|
|
29
27
|
switch (dbType) {
|
|
30
28
|
case 'mongodb':
|
|
29
|
+
const { UserRepositoryMongo } = require('./user-repository-mongo');
|
|
31
30
|
return new UserRepositoryMongo();
|
|
32
31
|
|
|
33
32
|
case 'postgresql':
|
|
34
33
|
return new UserRepositoryPostgres();
|
|
35
34
|
|
|
36
35
|
case 'documentdb':
|
|
36
|
+
const { UserRepositoryDocumentDB } = require('./user-repository-documentdb');
|
|
37
37
|
return new UserRepositoryDocumentDB();
|
|
38
38
|
|
|
39
39
|
default:
|
|
@@ -46,7 +46,7 @@ function createUserRepository() {
|
|
|
46
46
|
module.exports = {
|
|
47
47
|
createUserRepository,
|
|
48
48
|
// Export adapters for direct testing
|
|
49
|
-
UserRepositoryMongo,
|
|
49
|
+
get UserRepositoryMongo() { return require('./user-repository-mongo').UserRepositoryMongo; },
|
|
50
50
|
UserRepositoryPostgres,
|
|
51
|
-
UserRepositoryDocumentDB,
|
|
51
|
+
get UserRepositoryDocumentDB() { return require('./user-repository-documentdb').UserRepositoryDocumentDB; },
|
|
52
52
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
const {
|
|
2
|
-
WebsocketConnectionRepositoryMongo,
|
|
3
|
-
} = require('./websocket-connection-repository-mongo');
|
|
4
1
|
const {
|
|
5
2
|
WebsocketConnectionRepositoryPostgres,
|
|
6
3
|
} = require('./websocket-connection-repository-postgres');
|
|
7
|
-
const {
|
|
8
|
-
WebsocketConnectionRepositoryDocumentDB,
|
|
9
|
-
} = require('./websocket-connection-repository-documentdb');
|
|
10
4
|
const config = require('../../database/config');
|
|
11
5
|
|
|
12
6
|
/**
|
|
@@ -20,12 +14,14 @@ function createWebsocketConnectionRepository() {
|
|
|
20
14
|
|
|
21
15
|
switch (dbType) {
|
|
22
16
|
case 'mongodb':
|
|
17
|
+
const { WebsocketConnectionRepositoryMongo } = require('./websocket-connection-repository-mongo');
|
|
23
18
|
return new WebsocketConnectionRepositoryMongo();
|
|
24
19
|
|
|
25
20
|
case 'postgresql':
|
|
26
21
|
return new WebsocketConnectionRepositoryPostgres();
|
|
27
22
|
|
|
28
23
|
case 'documentdb':
|
|
24
|
+
const { WebsocketConnectionRepositoryDocumentDB } = require('./websocket-connection-repository-documentdb');
|
|
29
25
|
return new WebsocketConnectionRepositoryDocumentDB();
|
|
30
26
|
|
|
31
27
|
default:
|
|
@@ -38,7 +34,7 @@ function createWebsocketConnectionRepository() {
|
|
|
38
34
|
module.exports = {
|
|
39
35
|
createWebsocketConnectionRepository,
|
|
40
36
|
// Export adapters for direct testing
|
|
41
|
-
WebsocketConnectionRepositoryMongo,
|
|
37
|
+
get WebsocketConnectionRepositoryMongo() { return require('./websocket-connection-repository-mongo').WebsocketConnectionRepositoryMongo; },
|
|
42
38
|
WebsocketConnectionRepositoryPostgres,
|
|
43
|
-
WebsocketConnectionRepositoryDocumentDB,
|
|
39
|
+
get WebsocketConnectionRepositoryDocumentDB() { return require('./websocket-connection-repository-documentdb').WebsocketConnectionRepositoryDocumentDB; },
|
|
44
40
|
};
|