serene-core-server 0.1.5 → 0.1.7
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/dist/src/apollo/resolvers/mutations/mailing-lists.d.ts +7 -1
- package/dist/src/apollo/resolvers/mutations/mailing-lists.js +1 -1
- package/dist/src/apollo/resolvers/mutations/user-preferences.d.ts +9 -1
- package/dist/src/apollo/resolvers/mutations/user-preferences.js +1 -1
- package/dist/src/apollo/resolvers/mutations/users.d.ts +24 -4
- package/dist/src/apollo/resolvers/mutations/users.js +1 -1
- package/dist/src/apollo/resolvers/queries/access.d.ts +7 -1
- package/dist/src/apollo/resolvers/queries/access.js +1 -1
- package/dist/src/apollo/resolvers/queries/profile.d.ts +7 -1
- package/dist/src/apollo/resolvers/queries/profile.js +1 -1
- package/dist/src/apollo/resolvers/queries/quotas.d.ts +17 -1
- package/dist/src/apollo/resolvers/queries/quotas.js +1 -1
- package/dist/src/apollo/resolvers/queries/tech.js +2 -2
- package/dist/src/apollo/resolvers/queries/user-preferences.d.ts +1 -1
- package/dist/src/apollo/resolvers/queries/user-preferences.js +1 -1
- package/dist/src/apollo/resolvers/queries/users.d.ts +11 -2
- package/dist/src/apollo/resolvers/queries/users.js +1 -1
- package/dist/src/db.d.ts +2 -1
- package/dist/src/db.js +1 -1
- package/dist/src/index.d.ts +55 -55
- package/dist/src/index.js +55 -55
- package/dist/src/models/chat/chat-message-created-model.d.ts +13 -3
- package/dist/src/models/chat/chat-message-created-model.js +1 -1
- package/dist/src/models/chat/chat-message-model.d.ts +28 -5
- package/dist/src/models/chat/chat-message-model.js +2 -2
- package/dist/src/models/chat/chat-participant-model.d.ts +34 -9
- package/dist/src/models/chat/chat-participant-model.js +2 -2
- package/dist/src/models/chat/chat-session-model.d.ts +85 -7
- package/dist/src/models/chat/chat-session-model.js +2 -2
- package/dist/src/models/chat/chat-settings-model.d.ts +81 -6
- package/dist/src/models/feature-flags/feature-flag-model.d.ts +37 -7
- package/dist/src/models/instances/instance-model.d.ts +88 -7
- package/dist/src/models/instances/instance-setting-model.d.ts +34 -6
- package/dist/src/models/mailing-lists/mailing-list-model.d.ts +29 -5
- package/dist/src/models/mailing-lists/mailing-list-subscriber-model.d.ts +31 -4
- package/dist/src/models/quotas/resource-quota-total-model.d.ts +42 -7
- package/dist/src/models/quotas/resource-quota-usage-model.d.ts +47 -7
- package/dist/src/models/tech/rate-limited-api-event-model.d.ts +20 -5
- package/dist/src/models/tech/rate-limited-api-model.d.ts +16 -4
- package/dist/src/models/tech/tech-model.d.ts +37 -4
- package/dist/src/models/tech/tech-model.js +1 -1
- package/dist/src/models/tech/tech-provider-api-key-model.d.ts +37 -5
- package/dist/src/models/tech/tech-provider-api-key-model.js +1 -1
- package/dist/src/models/tech/tech-provider-model.d.ts +22 -4
- package/dist/src/models/tech/tech-provider-model.js +1 -1
- package/dist/src/models/users/external-user-integration-model.d.ts +31 -6
- package/dist/src/models/users/user-error-model.d.ts +51 -7
- package/dist/src/models/users/user-error-summary-model.d.ts +42 -7
- package/dist/src/models/users/user-group-member-model.d.ts +36 -6
- package/dist/src/models/users/user-group-model.d.ts +22 -4
- package/dist/src/models/users/user-model.d.ts +43 -7
- package/dist/src/models/users/user-preference-model.d.ts +55 -7
- package/dist/src/models/users/user-profile-model.d.ts +51 -6
- package/dist/src/models/users/user-profile-model.js +1 -1
- package/dist/src/services/access/access-service.d.ts +3 -2
- package/dist/src/services/access/access-service.js +1 -1
- package/dist/src/services/api-usage/api-usage-base-service.d.ts +7 -4
- package/dist/src/services/api-usage/api-usage-base-service.js +4 -4
- package/dist/src/services/files/walk-dir-service.d.ts +1 -1
- package/dist/src/services/mailing-lists/mailing-list-subscriber-service.d.ts +5 -3
- package/dist/src/services/mailing-lists/mailing-list-subscriber-service.js +2 -2
- package/dist/src/services/quotas/mutate-service.d.ts +1 -1
- package/dist/src/services/quotas/mutate-service.js +1 -1
- package/dist/src/services/quotas/query-service.d.ts +5 -5
- package/dist/src/services/quotas/query-service.js +4 -4
- package/dist/src/services/tech/tech-provider-mutate-service.d.ts +1 -1
- package/dist/src/services/tech/tech-provider-mutate-service.js +3 -3
- package/dist/src/services/tech/tech-query-service.d.ts +1 -1
- package/dist/src/services/tech/tech-query-service.js +3 -3
- package/dist/src/services/user-preference/service.d.ts +3 -2
- package/dist/src/services/user-preference/service.js +2 -2
- package/dist/src/services/users/external-user-integration-service.d.ts +5 -3
- package/dist/src/services/users/external-user-integration-service.js +2 -2
- package/dist/src/services/users/profile-service.d.ts +9 -5
- package/dist/src/services/users/profile-service.js +6 -6
- package/dist/src/services/users/service.d.ts +55 -10
- package/dist/src/services/users/service.js +4 -4
- package/dist/src/services/users/user-error-service.d.ts +1 -1
- package/dist/src/services/users/user-error-service.js +2 -2
- package/dist/src/services/users/users-group-service.d.ts +5 -3
- package/dist/src/services/users/users-group-service.js +2 -2
- package/package.json +3 -4
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export declare function sereneCoreMailingListsMutationResolvers(): {
|
|
2
2
|
Mutation: {
|
|
3
|
-
upsertUserPreference: (parent: any, args: any, context: any, info: any) => Promise<
|
|
3
|
+
upsertUserPreference: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
4
|
+
verified: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
} | {
|
|
7
|
+
verified: boolean;
|
|
8
|
+
message?: undefined;
|
|
9
|
+
} | undefined>;
|
|
4
10
|
};
|
|
5
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MailingListSubscriberService } from '../../../services/mailing-lists/mailing-list-subscriber-service';
|
|
1
|
+
import { MailingListSubscriberService } from '../../../services/mailing-lists/mailing-list-subscriber-service.js';
|
|
2
2
|
// Services
|
|
3
3
|
const mailingListSubscriberService = new MailingListSubscriberService();
|
|
4
4
|
// Factory of resolvers
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export declare function sereneCoreUserPreferencesMutationResolvers(): {
|
|
2
2
|
Mutation: {
|
|
3
|
-
upsertUserPreference: (parent: any, args: any, context: any, info: any) => Promise<
|
|
3
|
+
upsertUserPreference: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
4
|
+
values: string[];
|
|
5
|
+
key: string;
|
|
6
|
+
id: string;
|
|
7
|
+
value: string | null;
|
|
8
|
+
userProfileId: string;
|
|
9
|
+
created: Date;
|
|
10
|
+
category: string;
|
|
11
|
+
} | undefined>;
|
|
4
12
|
};
|
|
5
13
|
};
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
export declare function sereneCoreUsersMutationResolvers(): {
|
|
2
2
|
Mutation: {
|
|
3
|
-
createBlankUser: (parent: any, args: any, context: any, info: any) => Promise<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
createBlankUser: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
4
|
+
id: string;
|
|
5
|
+
userId: string | null;
|
|
6
|
+
created: Date;
|
|
7
|
+
updated: Date;
|
|
8
|
+
isAdmin: boolean;
|
|
9
|
+
ownerType: string | null;
|
|
10
|
+
roles: string[];
|
|
11
|
+
deletePending: Date | null;
|
|
12
|
+
}>;
|
|
13
|
+
createUserByEmail: (parent: any, args: any, context: any, info: any) => Promise<string>;
|
|
14
|
+
getOrCreateSignedOutUser: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
15
|
+
id: string;
|
|
16
|
+
} | undefined>;
|
|
17
|
+
getOrCreateUserByEmail: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
18
|
+
id: string;
|
|
19
|
+
userId: string | null;
|
|
20
|
+
created: Date;
|
|
21
|
+
updated: Date;
|
|
22
|
+
isAdmin: boolean;
|
|
23
|
+
ownerType: string | null;
|
|
24
|
+
roles: string[];
|
|
25
|
+
deletePending: Date | null;
|
|
26
|
+
} | undefined>;
|
|
7
27
|
};
|
|
8
28
|
};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export declare function sereneCoreAccessQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
3
|
-
isAdminUser: (parent: any, args: any, context: any, info: any) => Promise<
|
|
3
|
+
isAdminUser: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
4
|
+
status: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
} | {
|
|
7
|
+
status: any;
|
|
8
|
+
message: null;
|
|
9
|
+
}>;
|
|
4
10
|
};
|
|
5
11
|
};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export declare function sereneCoreProfileQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
3
|
-
validateProfileCompleted: (parent: any, args: any, context: any, info: any) => Promise<
|
|
3
|
+
validateProfileCompleted: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
4
|
+
status: boolean;
|
|
5
|
+
message?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
status: boolean;
|
|
8
|
+
message: string;
|
|
9
|
+
}>;
|
|
4
10
|
};
|
|
5
11
|
};
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
export declare function sereneCoreQuotasQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
3
|
-
getResourceQuotaUsage: (parent: any, args: any, context: any, info: any) => Promise<
|
|
3
|
+
getResourceQuotaUsage: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
4
|
+
status: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
userProfileId?: undefined;
|
|
7
|
+
resource?: undefined;
|
|
8
|
+
day?: undefined;
|
|
9
|
+
quota?: undefined;
|
|
10
|
+
usage?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
userProfileId: string;
|
|
13
|
+
resource: string;
|
|
14
|
+
day: string;
|
|
15
|
+
quota: number;
|
|
16
|
+
usage: number;
|
|
17
|
+
status?: undefined;
|
|
18
|
+
message?: undefined;
|
|
19
|
+
}>;
|
|
4
20
|
};
|
|
5
21
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResourceQuotasQueryService } from '../../../services/quotas/query-service';
|
|
1
|
+
import { ResourceQuotasQueryService } from '../../../services/quotas/query-service.js';
|
|
2
2
|
// Services
|
|
3
3
|
const resourceQuotasService = new ResourceQuotasQueryService();
|
|
4
4
|
// Factory of resolvers
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TechQueryService } from '../../../services/tech/tech-query-service';
|
|
2
|
-
import { UsersService } from '../../../services/users/service';
|
|
1
|
+
import { TechQueryService } from '../../../services/tech/tech-query-service.js';
|
|
2
|
+
import { UsersService } from '../../../services/users/service.js';
|
|
3
3
|
// Services
|
|
4
4
|
const techQueryService = new TechQueryService();
|
|
5
5
|
const usersService = new UsersService();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function sereneCoreUserPreferencesQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
3
|
-
getUserPreferences: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
3
|
+
getUserPreferences: (parent: any, args: any, context: any, info: any) => Promise<any[] | undefined>;
|
|
4
4
|
};
|
|
5
5
|
};
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
export declare function sereneCoreUsersQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
3
|
-
userById: (parent: any, args: any, context: any, info: any) => Promise<
|
|
4
|
-
|
|
3
|
+
userById: (parent: any, args: any, context: any, info: any) => Promise<{
|
|
4
|
+
id: string;
|
|
5
|
+
userId: string | null;
|
|
6
|
+
created: Date;
|
|
7
|
+
updated: Date;
|
|
8
|
+
isAdmin: boolean;
|
|
9
|
+
ownerType: string | null;
|
|
10
|
+
roles: string[];
|
|
11
|
+
deletePending: Date | null;
|
|
12
|
+
} | null | undefined>;
|
|
13
|
+
verifySignedInUserProfileId: (parent: any, args: any, context: any, info: any) => Promise<boolean>;
|
|
5
14
|
};
|
|
6
15
|
};
|
package/dist/src/db.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import 'dotenv/config';
|
|
2
|
-
|
|
2
|
+
import { PrismaClient } from '@/../prisma/generated/prisma/client.js';
|
|
3
|
+
export declare const prisma: PrismaClient<import("@/prisma/index.js").Prisma.PrismaClientOptions, never, import("@/prisma/runtime/client.js").DefaultArgs>;
|
package/dist/src/db.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'dotenv/config';
|
|
2
2
|
import { PrismaPg } from '@prisma/adapter-pg';
|
|
3
|
-
import { PrismaClient } from '@/../prisma/generated/prisma/client';
|
|
3
|
+
import { PrismaClient } from '@/../prisma/generated/prisma/client.js';
|
|
4
4
|
const connectionString = process.env.DATABASE_URL;
|
|
5
5
|
const adapter = new PrismaPg({ connectionString });
|
|
6
6
|
const globalForPrisma = globalThis;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
export * from './apollo/resolvers/mutations/mailing-lists';
|
|
2
|
-
export * from './apollo/resolvers/mutations/user-preferences';
|
|
3
|
-
export * from './apollo/resolvers/mutations/users';
|
|
4
|
-
export * from './apollo/resolvers/queries/access';
|
|
5
|
-
export * from './apollo/resolvers/queries/profile';
|
|
6
|
-
export * from './apollo/resolvers/queries/quotas';
|
|
7
|
-
export * from './apollo/resolvers/queries/tech';
|
|
8
|
-
export * from './apollo/resolvers/queries/user-preferences';
|
|
9
|
-
export * from './apollo/resolvers/queries/users';
|
|
10
|
-
export * from './models/chat/chat-message-created-model';
|
|
11
|
-
export * from './models/chat/chat-message-model';
|
|
12
|
-
export * from './models/chat/chat-participant-model';
|
|
13
|
-
export * from './models/chat/chat-session-model';
|
|
14
|
-
export * from './models/chat/chat-settings-model';
|
|
15
|
-
export * from './models/feature-flags/feature-flag-model';
|
|
16
|
-
export * from './models/instances/instance-model';
|
|
17
|
-
export * from './models/instances/instance-setting-model';
|
|
18
|
-
export * from './models/quotas/resource-quota-total-model';
|
|
19
|
-
export * from './models/quotas/resource-quota-usage-model';
|
|
20
|
-
export * from './models/tech/rate-limited-api-event-model';
|
|
21
|
-
export * from './models/tech/rate-limited-api-model';
|
|
22
|
-
export * from './models/tech/tech-model';
|
|
23
|
-
export * from './models/tech/tech-provider-api-key-model';
|
|
24
|
-
export * from './models/tech/tech-provider-model';
|
|
25
|
-
export * from './models/users/external-user-integration-model';
|
|
26
|
-
export * from './models/users/user-error-model';
|
|
27
|
-
export * from './models/users/user-error-summary-model';
|
|
28
|
-
export * from './models/users/user-group-member-model';
|
|
29
|
-
export * from './models/users/user-group-model';
|
|
30
|
-
export * from './models/users/user-model';
|
|
31
|
-
export * from './models/users/user-preference-model';
|
|
32
|
-
export * from './models/users/user-profile-model';
|
|
33
|
-
export * from './services/access/access-service';
|
|
34
|
-
export * from './services/access/encrypt-service';
|
|
35
|
-
export * from './services/api-usage/api-usage-base-service';
|
|
36
|
-
export * from './services/db/pg/pg-estimate-size-service';
|
|
37
|
-
export * from './services/files/types';
|
|
38
|
-
export * from './services/files/walk-dir-service';
|
|
39
|
-
export * from './services/locale/countries';
|
|
40
|
-
export * from './services/process/sleep';
|
|
41
|
-
export * from './services/quotas/mutate-service';
|
|
42
|
-
export * from './services/quotas/query-service';
|
|
43
|
-
export * from './services/quotas/utils-service';
|
|
44
|
-
export * from './services/tech/tech-provider-mutate-service';
|
|
45
|
-
export * from './services/tech/tech-query-service';
|
|
46
|
-
export * from './services/user-preference/service';
|
|
47
|
-
export * from './services/users/external-user-integration-service';
|
|
48
|
-
export * from './services/users/profile-service';
|
|
49
|
-
export * from './services/users/service';
|
|
50
|
-
export * from './services/users/user-error-service';
|
|
51
|
-
export * from './services/users/users-group-service';
|
|
52
|
-
export * from './services/utils/field-naming-service';
|
|
53
|
-
export * from './services/utils/string-utils-service';
|
|
54
|
-
export * from './types/errors';
|
|
55
|
-
export * from './types/user-types';
|
|
1
|
+
export * from './apollo/resolvers/mutations/mailing-lists.js';
|
|
2
|
+
export * from './apollo/resolvers/mutations/user-preferences.js';
|
|
3
|
+
export * from './apollo/resolvers/mutations/users.js';
|
|
4
|
+
export * from './apollo/resolvers/queries/access.js';
|
|
5
|
+
export * from './apollo/resolvers/queries/profile.js';
|
|
6
|
+
export * from './apollo/resolvers/queries/quotas.js';
|
|
7
|
+
export * from './apollo/resolvers/queries/tech.js';
|
|
8
|
+
export * from './apollo/resolvers/queries/user-preferences.js';
|
|
9
|
+
export * from './apollo/resolvers/queries/users.js';
|
|
10
|
+
export * from './models/chat/chat-message-created-model.js';
|
|
11
|
+
export * from './models/chat/chat-message-model.js';
|
|
12
|
+
export * from './models/chat/chat-participant-model.js';
|
|
13
|
+
export * from './models/chat/chat-session-model.js';
|
|
14
|
+
export * from './models/chat/chat-settings-model.js';
|
|
15
|
+
export * from './models/feature-flags/feature-flag-model.js';
|
|
16
|
+
export * from './models/instances/instance-model.js';
|
|
17
|
+
export * from './models/instances/instance-setting-model.js';
|
|
18
|
+
export * from './models/quotas/resource-quota-total-model.js';
|
|
19
|
+
export * from './models/quotas/resource-quota-usage-model.js';
|
|
20
|
+
export * from './models/tech/rate-limited-api-event-model.js';
|
|
21
|
+
export * from './models/tech/rate-limited-api-model.js';
|
|
22
|
+
export * from './models/tech/tech-model.js';
|
|
23
|
+
export * from './models/tech/tech-provider-api-key-model.js';
|
|
24
|
+
export * from './models/tech/tech-provider-model.js';
|
|
25
|
+
export * from './models/users/external-user-integration-model.js';
|
|
26
|
+
export * from './models/users/user-error-model.js';
|
|
27
|
+
export * from './models/users/user-error-summary-model.js';
|
|
28
|
+
export * from './models/users/user-group-member-model.js';
|
|
29
|
+
export * from './models/users/user-group-model.js';
|
|
30
|
+
export * from './models/users/user-model.js';
|
|
31
|
+
export * from './models/users/user-preference-model.js';
|
|
32
|
+
export * from './models/users/user-profile-model.js';
|
|
33
|
+
export * from './services/access/access-service.js';
|
|
34
|
+
export * from './services/access/encrypt-service.js';
|
|
35
|
+
export * from './services/api-usage/api-usage-base-service.js';
|
|
36
|
+
export * from './services/db/pg/pg-estimate-size-service.js';
|
|
37
|
+
export * from './services/files/types.js';
|
|
38
|
+
export * from './services/files/walk-dir-service.js';
|
|
39
|
+
export * from './services/locale/countries.js';
|
|
40
|
+
export * from './services/process/sleep.js';
|
|
41
|
+
export * from './services/quotas/mutate-service.js';
|
|
42
|
+
export * from './services/quotas/query-service.js';
|
|
43
|
+
export * from './services/quotas/utils-service.js';
|
|
44
|
+
export * from './services/tech/tech-provider-mutate-service.js';
|
|
45
|
+
export * from './services/tech/tech-query-service.js';
|
|
46
|
+
export * from './services/user-preference/service.js';
|
|
47
|
+
export * from './services/users/external-user-integration-service.js';
|
|
48
|
+
export * from './services/users/profile-service.js';
|
|
49
|
+
export * from './services/users/service.js';
|
|
50
|
+
export * from './services/users/user-error-service.js';
|
|
51
|
+
export * from './services/users/users-group-service.js';
|
|
52
|
+
export * from './services/utils/field-naming-service.js';
|
|
53
|
+
export * from './services/utils/string-utils-service.js';
|
|
54
|
+
export * from './types/errors.js';
|
|
55
|
+
export * from './types/user-types.js';
|
package/dist/src/index.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
export * from './apollo/resolvers/mutations/mailing-lists';
|
|
2
|
-
export * from './apollo/resolvers/mutations/user-preferences';
|
|
3
|
-
export * from './apollo/resolvers/mutations/users';
|
|
4
|
-
export * from './apollo/resolvers/queries/access';
|
|
5
|
-
export * from './apollo/resolvers/queries/profile';
|
|
6
|
-
export * from './apollo/resolvers/queries/quotas';
|
|
7
|
-
export * from './apollo/resolvers/queries/tech';
|
|
8
|
-
export * from './apollo/resolvers/queries/user-preferences';
|
|
9
|
-
export * from './apollo/resolvers/queries/users';
|
|
10
|
-
export * from './models/chat/chat-message-created-model';
|
|
11
|
-
export * from './models/chat/chat-message-model';
|
|
12
|
-
export * from './models/chat/chat-participant-model';
|
|
13
|
-
export * from './models/chat/chat-session-model';
|
|
14
|
-
export * from './models/chat/chat-settings-model';
|
|
15
|
-
export * from './models/feature-flags/feature-flag-model';
|
|
16
|
-
export * from './models/instances/instance-model';
|
|
17
|
-
export * from './models/instances/instance-setting-model';
|
|
18
|
-
export * from './models/quotas/resource-quota-total-model';
|
|
19
|
-
export * from './models/quotas/resource-quota-usage-model';
|
|
20
|
-
export * from './models/tech/rate-limited-api-event-model';
|
|
21
|
-
export * from './models/tech/rate-limited-api-model';
|
|
22
|
-
export * from './models/tech/tech-model';
|
|
23
|
-
export * from './models/tech/tech-provider-api-key-model';
|
|
24
|
-
export * from './models/tech/tech-provider-model';
|
|
25
|
-
export * from './models/users/external-user-integration-model';
|
|
26
|
-
export * from './models/users/user-error-model';
|
|
27
|
-
export * from './models/users/user-error-summary-model';
|
|
28
|
-
export * from './models/users/user-group-member-model';
|
|
29
|
-
export * from './models/users/user-group-model';
|
|
30
|
-
export * from './models/users/user-model';
|
|
31
|
-
export * from './models/users/user-preference-model';
|
|
32
|
-
export * from './models/users/user-profile-model';
|
|
33
|
-
export * from './services/access/access-service';
|
|
34
|
-
export * from './services/access/encrypt-service';
|
|
35
|
-
export * from './services/api-usage/api-usage-base-service';
|
|
36
|
-
export * from './services/db/pg/pg-estimate-size-service';
|
|
37
|
-
export * from './services/files/types';
|
|
38
|
-
export * from './services/files/walk-dir-service';
|
|
39
|
-
export * from './services/locale/countries';
|
|
40
|
-
export * from './services/process/sleep';
|
|
41
|
-
export * from './services/quotas/mutate-service';
|
|
42
|
-
export * from './services/quotas/query-service';
|
|
43
|
-
export * from './services/quotas/utils-service';
|
|
44
|
-
export * from './services/tech/tech-provider-mutate-service';
|
|
45
|
-
export * from './services/tech/tech-query-service';
|
|
46
|
-
export * from './services/user-preference/service';
|
|
47
|
-
export * from './services/users/external-user-integration-service';
|
|
48
|
-
export * from './services/users/profile-service';
|
|
49
|
-
export * from './services/users/service';
|
|
50
|
-
export * from './services/users/user-error-service';
|
|
51
|
-
export * from './services/users/users-group-service';
|
|
52
|
-
export * from './services/utils/field-naming-service';
|
|
53
|
-
export * from './services/utils/string-utils-service';
|
|
54
|
-
export * from './types/errors';
|
|
55
|
-
export * from './types/user-types';
|
|
1
|
+
export * from './apollo/resolvers/mutations/mailing-lists.js';
|
|
2
|
+
export * from './apollo/resolvers/mutations/user-preferences.js';
|
|
3
|
+
export * from './apollo/resolvers/mutations/users.js';
|
|
4
|
+
export * from './apollo/resolvers/queries/access.js';
|
|
5
|
+
export * from './apollo/resolvers/queries/profile.js';
|
|
6
|
+
export * from './apollo/resolvers/queries/quotas.js';
|
|
7
|
+
export * from './apollo/resolvers/queries/tech.js';
|
|
8
|
+
export * from './apollo/resolvers/queries/user-preferences.js';
|
|
9
|
+
export * from './apollo/resolvers/queries/users.js';
|
|
10
|
+
export * from './models/chat/chat-message-created-model.js';
|
|
11
|
+
export * from './models/chat/chat-message-model.js';
|
|
12
|
+
export * from './models/chat/chat-participant-model.js';
|
|
13
|
+
export * from './models/chat/chat-session-model.js';
|
|
14
|
+
export * from './models/chat/chat-settings-model.js';
|
|
15
|
+
export * from './models/feature-flags/feature-flag-model.js';
|
|
16
|
+
export * from './models/instances/instance-model.js';
|
|
17
|
+
export * from './models/instances/instance-setting-model.js';
|
|
18
|
+
export * from './models/quotas/resource-quota-total-model.js';
|
|
19
|
+
export * from './models/quotas/resource-quota-usage-model.js';
|
|
20
|
+
export * from './models/tech/rate-limited-api-event-model.js';
|
|
21
|
+
export * from './models/tech/rate-limited-api-model.js';
|
|
22
|
+
export * from './models/tech/tech-model.js';
|
|
23
|
+
export * from './models/tech/tech-provider-api-key-model.js';
|
|
24
|
+
export * from './models/tech/tech-provider-model.js';
|
|
25
|
+
export * from './models/users/external-user-integration-model.js';
|
|
26
|
+
export * from './models/users/user-error-model.js';
|
|
27
|
+
export * from './models/users/user-error-summary-model.js';
|
|
28
|
+
export * from './models/users/user-group-member-model.js';
|
|
29
|
+
export * from './models/users/user-group-model.js';
|
|
30
|
+
export * from './models/users/user-model.js';
|
|
31
|
+
export * from './models/users/user-preference-model.js';
|
|
32
|
+
export * from './models/users/user-profile-model.js';
|
|
33
|
+
export * from './services/access/access-service.js';
|
|
34
|
+
export * from './services/access/encrypt-service.js';
|
|
35
|
+
export * from './services/api-usage/api-usage-base-service.js';
|
|
36
|
+
export * from './services/db/pg/pg-estimate-size-service.js';
|
|
37
|
+
export * from './services/files/types.js';
|
|
38
|
+
export * from './services/files/walk-dir-service.js';
|
|
39
|
+
export * from './services/locale/countries.js';
|
|
40
|
+
export * from './services/process/sleep.js';
|
|
41
|
+
export * from './services/quotas/mutate-service.js';
|
|
42
|
+
export * from './services/quotas/query-service.js';
|
|
43
|
+
export * from './services/quotas/utils-service.js';
|
|
44
|
+
export * from './services/tech/tech-provider-mutate-service.js';
|
|
45
|
+
export * from './services/tech/tech-query-service.js';
|
|
46
|
+
export * from './services/user-preference/service.js';
|
|
47
|
+
export * from './services/users/external-user-integration-service.js';
|
|
48
|
+
export * from './services/users/profile-service.js';
|
|
49
|
+
export * from './services/users/service.js';
|
|
50
|
+
export * from './services/users/user-error-service.js';
|
|
51
|
+
export * from './services/users/users-group-service.js';
|
|
52
|
+
export * from './services/utils/field-naming-service.js';
|
|
53
|
+
export * from './services/utils/string-utils-service.js';
|
|
54
|
+
export * from './types/errors.js';
|
|
55
|
+
export * from './types/user-types.js';
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import { PrismaClient } from '@/prisma/client';
|
|
1
|
+
import { PrismaClient } from '@/prisma/client.js';
|
|
2
2
|
export declare class ChatMessageCreatedModel {
|
|
3
3
|
clName: string;
|
|
4
|
-
countMessages(prisma: PrismaClient, userProfileId: string, instanceId: string | null | undefined, techId: string | undefined, startDate: Date, sentByAi: boolean): Promise<
|
|
5
|
-
create(prisma: PrismaClient, userProfileId: string, instanceId: string | null, techId: string, sentByAi: boolean, inputTokens: number, outputTokens: number, costInCents: number): Promise<
|
|
4
|
+
countMessages(prisma: PrismaClient, userProfileId: string, instanceId: string | null | undefined, techId: string | undefined, startDate: Date, sentByAi: boolean): Promise<number>;
|
|
5
|
+
create(prisma: PrismaClient, userProfileId: string, instanceId: string | null, techId: string, sentByAi: boolean, inputTokens: number, outputTokens: number, costInCents: number): Promise<{
|
|
6
|
+
id: string;
|
|
7
|
+
userProfileId: string;
|
|
8
|
+
created: Date;
|
|
9
|
+
sentByAi: boolean;
|
|
10
|
+
instanceId: string | null;
|
|
11
|
+
techId: string;
|
|
12
|
+
inputTokens: number;
|
|
13
|
+
outputTokens: number;
|
|
14
|
+
costInCents: number;
|
|
15
|
+
}>;
|
|
6
16
|
deleteByDaysAgo(prisma: PrismaClient, daysAgo: number): Promise<void>;
|
|
7
17
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { PrismaClient } from '@/prisma/client';
|
|
1
|
+
import { PrismaClient } from '@/prisma/client.js';
|
|
2
|
+
import { Encrypter } from '../../services/access/encrypt-service.js';
|
|
2
3
|
export declare class ChatMessageModel {
|
|
3
4
|
clName: string;
|
|
4
5
|
msPerMinute: number;
|
|
5
|
-
encrypter:
|
|
6
|
+
encrypter: Encrypter;
|
|
6
7
|
constructor(encryptionKey: string | undefined);
|
|
7
|
-
countMessages(prisma: PrismaClient, userProfileId: string, startDate: Date, sentByAi: boolean): Promise<
|
|
8
|
+
countMessages(prisma: PrismaClient, userProfileId: string, startDate: Date, sentByAi: boolean): Promise<number>;
|
|
8
9
|
create(prisma: PrismaClient, id: string | undefined, chatSession: any, replyToId: string | null, fromUserProfileId: string, fromChatParticipantId: string, toChatParticipantId: string, externalId: string | null, sentByAi: boolean, message: string): Promise<any>;
|
|
9
10
|
deleteByChatSessionId(prisma: PrismaClient, chatSessionId: string): Promise<void>;
|
|
10
11
|
deleteById(prisma: PrismaClient, id: string): Promise<void>;
|
|
@@ -15,7 +16,29 @@ export declare class ChatMessageModel {
|
|
|
15
16
|
getEarliestUnread(prisma: PrismaClient, chatSession: any): Promise<any>;
|
|
16
17
|
getFirst(prisma: PrismaClient, chatSession: any): Promise<any>;
|
|
17
18
|
getLast(prisma: PrismaClient, chatSession: any): Promise<any>;
|
|
18
|
-
setExternalId(prisma: PrismaClient, id: string, externalId: string | null): Promise<
|
|
19
|
-
|
|
19
|
+
setExternalId(prisma: PrismaClient, id: string, externalId: string | null): Promise<{
|
|
20
|
+
message: string;
|
|
21
|
+
id: string;
|
|
22
|
+
created: Date;
|
|
23
|
+
updated: Date;
|
|
24
|
+
chatSessionId: string | null;
|
|
25
|
+
replyToId: string | null;
|
|
26
|
+
fromChatParticipantId: string;
|
|
27
|
+
toChatParticipantId: string | null;
|
|
28
|
+
externalId: string | null;
|
|
29
|
+
sentByAi: boolean;
|
|
30
|
+
} | null>;
|
|
31
|
+
update(prisma: PrismaClient, id: string, chatSession: any, replyToId: string | null | undefined, fromChatParticipantId: string | undefined, toChatParticipantId: string | undefined, externalId: string | null | undefined, sentByAi: boolean | undefined, message: string | undefined): Promise<{
|
|
32
|
+
message: string;
|
|
33
|
+
id: string;
|
|
34
|
+
created: Date;
|
|
35
|
+
updated: Date;
|
|
36
|
+
chatSessionId: string | null;
|
|
37
|
+
replyToId: string | null;
|
|
38
|
+
fromChatParticipantId: string;
|
|
39
|
+
toChatParticipantId: string | null;
|
|
40
|
+
externalId: string | null;
|
|
41
|
+
sentByAi: boolean;
|
|
42
|
+
}>;
|
|
20
43
|
upsert(prisma: PrismaClient, id: string, chatSession: any, replyToId: string | null | undefined, fromUserProfileId: string | undefined, fromChatParticipantId: string | undefined, toChatParticipantId: string | undefined, externalId: string | null | undefined, sentByAi: boolean | undefined, message: string | undefined): Promise<any>;
|
|
21
44
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Encrypter } from '../../services/access/encrypt-service';
|
|
2
|
-
import { CustomError } from '../../types/errors';
|
|
1
|
+
import { Encrypter } from '../../services/access/encrypt-service.js';
|
|
2
|
+
import { CustomError } from '../../types/errors.js';
|
|
3
3
|
export class ChatMessageModel {
|
|
4
4
|
// Consts
|
|
5
5
|
clName = 'ChatMessageModel';
|
|
@@ -1,14 +1,39 @@
|
|
|
1
|
-
import { PrismaClient } from '@/prisma/client';
|
|
1
|
+
import { PrismaClient } from '@/prisma/client.js';
|
|
2
|
+
import { UsersService } from '../../services/users/service.js';
|
|
2
3
|
export declare class ChatParticipantModel {
|
|
3
4
|
clName: string;
|
|
4
|
-
usersService:
|
|
5
|
-
create(prisma: PrismaClient, id: string | undefined, chatSessionId: string, userProfileId: string): Promise<
|
|
5
|
+
usersService: UsersService;
|
|
6
|
+
create(prisma: PrismaClient, id: string | undefined, chatSessionId: string, userProfileId: string): Promise<{
|
|
7
|
+
id: string;
|
|
8
|
+
userProfileId: string;
|
|
9
|
+
chatSessionId: string;
|
|
10
|
+
}>;
|
|
6
11
|
deleteByChatSessionId(prisma: PrismaClient, chatSessionId: string): Promise<void>;
|
|
7
12
|
getById(prisma: PrismaClient, id: string): Promise<any>;
|
|
8
|
-
getByChatSessionId(prisma: PrismaClient, chatSessionId: string): Promise<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
getByChatSessionId(prisma: PrismaClient, chatSessionId: string): Promise<{
|
|
14
|
+
id: string;
|
|
15
|
+
userProfileId: string;
|
|
16
|
+
chatSessionId: string;
|
|
17
|
+
}[] | undefined>;
|
|
18
|
+
getByChatSessionIdAndOwnerType(prisma: PrismaClient, chatSessionId: string, ownerType: string): Promise<{
|
|
19
|
+
id: string;
|
|
20
|
+
userProfileId: string;
|
|
21
|
+
chatSessionId: string;
|
|
22
|
+
} | null | undefined>;
|
|
23
|
+
getByChatSessionIdAndUserProfileId(prisma: PrismaClient, chatSessionId: string, userProfileId: string): Promise<{
|
|
24
|
+
id: string;
|
|
25
|
+
userProfileId: string;
|
|
26
|
+
chatSessionId: string;
|
|
27
|
+
} | null | undefined>;
|
|
28
|
+
getParticipantTypeByUserProfileId(prisma: PrismaClient, userProfileId: string): Promise<string | null>;
|
|
29
|
+
update(prisma: PrismaClient, id: string, chatSessionId: string, userProfileId: string): Promise<{
|
|
30
|
+
id: string;
|
|
31
|
+
userProfileId: string;
|
|
32
|
+
chatSessionId: string;
|
|
33
|
+
}>;
|
|
34
|
+
upsert(prisma: PrismaClient, id: string | undefined, chatSessionId: string, userProfileId: string): Promise<{
|
|
35
|
+
id: string;
|
|
36
|
+
userProfileId: string;
|
|
37
|
+
chatSessionId: string;
|
|
38
|
+
}>;
|
|
14
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomError } from '../../types/errors';
|
|
2
|
-
import { UsersService } from '../../services/users/service';
|
|
1
|
+
import { CustomError } from '../../types/errors.js';
|
|
2
|
+
import { UsersService } from '../../services/users/service.js';
|
|
3
3
|
export class ChatParticipantModel {
|
|
4
4
|
// Consts
|
|
5
5
|
clName = 'ChatParticipantModel';
|