serene-core-server 0.1.4 → 0.1.5
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 +1 -7
- package/dist/src/apollo/resolvers/mutations/user-preferences.d.ts +1 -9
- package/dist/src/apollo/resolvers/mutations/users.d.ts +4 -24
- package/dist/src/apollo/resolvers/queries/access.d.ts +1 -7
- package/dist/src/apollo/resolvers/queries/profile.d.ts +1 -7
- package/dist/src/apollo/resolvers/queries/quotas.d.ts +1 -17
- package/dist/src/apollo/resolvers/queries/user-preferences.d.ts +1 -1
- package/dist/src/apollo/resolvers/queries/users.d.ts +2 -11
- package/dist/src/db.d.ts +1 -2
- package/dist/src/models/chat/chat-message-created-model.d.ts +2 -12
- package/dist/src/models/chat/chat-message-model.d.ts +4 -27
- package/dist/src/models/chat/chat-participant-model.d.ts +8 -33
- package/dist/src/models/chat/chat-session-model.d.ts +6 -84
- package/dist/src/models/chat/chat-settings-model.d.ts +5 -80
- package/dist/src/models/feature-flags/feature-flag-model.d.ts +6 -36
- package/dist/src/models/instances/instance-model.d.ts +6 -87
- package/dist/src/models/instances/instance-setting-model.d.ts +5 -33
- package/dist/src/models/mailing-lists/mailing-list-model.d.ts +4 -28
- package/dist/src/models/mailing-lists/mailing-list-subscriber-model.d.ts +3 -30
- package/dist/src/models/quotas/resource-quota-total-model.d.ts +6 -41
- package/dist/src/models/quotas/resource-quota-usage-model.d.ts +6 -46
- package/dist/src/models/tech/rate-limited-api-event-model.d.ts +4 -19
- package/dist/src/models/tech/rate-limited-api-model.d.ts +3 -15
- package/dist/src/models/tech/tech-model.d.ts +3 -36
- package/dist/src/models/tech/tech-provider-api-key-model.d.ts +4 -36
- package/dist/src/models/tech/tech-provider-model.d.ts +3 -21
- package/dist/src/models/users/external-user-integration-model.d.ts +5 -30
- package/dist/src/models/users/user-error-model.d.ts +6 -50
- package/dist/src/models/users/user-error-summary-model.d.ts +6 -41
- package/dist/src/models/users/user-group-member-model.d.ts +5 -35
- package/dist/src/models/users/user-group-model.d.ts +3 -21
- package/dist/src/models/users/user-model.d.ts +6 -42
- package/dist/src/models/users/user-preference-model.d.ts +6 -54
- package/dist/src/models/users/user-profile-model.d.ts +5 -50
- package/dist/src/services/access/access-service.d.ts +1 -2
- package/dist/src/services/api-usage/api-usage-base-service.d.ts +3 -6
- package/dist/src/services/mailing-lists/mailing-list-subscriber-service.d.ts +2 -4
- package/dist/src/services/quotas/query-service.d.ts +4 -4
- package/dist/src/services/user-preference/service.d.ts +1 -2
- package/dist/src/services/users/external-user-integration-service.d.ts +2 -4
- package/dist/src/services/users/profile-service.d.ts +4 -8
- package/dist/src/services/users/service.d.ts +9 -54
- package/dist/src/services/users/users-group-service.d.ts +2 -4
- package/package.json +2 -1
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
export declare function sereneCoreMailingListsMutationResolvers(): {
|
|
2
2
|
Mutation: {
|
|
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>;
|
|
3
|
+
upsertUserPreference: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
10
4
|
};
|
|
11
5
|
};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
export declare function sereneCoreUserPreferencesMutationResolvers(): {
|
|
2
2
|
Mutation: {
|
|
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>;
|
|
3
|
+
upsertUserPreference: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
12
4
|
};
|
|
13
5
|
};
|
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
export declare function sereneCoreUsersMutationResolvers(): {
|
|
2
2
|
Mutation: {
|
|
3
|
-
createBlankUser: (parent: any, args: any, context: any, info: any) => Promise<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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>;
|
|
3
|
+
createBlankUser: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
4
|
+
createUserByEmail: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
5
|
+
getOrCreateSignedOutUser: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
6
|
+
getOrCreateUserByEmail: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
27
7
|
};
|
|
28
8
|
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
export declare function sereneCoreAccessQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
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
|
-
}>;
|
|
3
|
+
isAdminUser: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
10
4
|
};
|
|
11
5
|
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
export declare function sereneCoreProfileQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
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
|
-
}>;
|
|
3
|
+
validateProfileCompleted: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
10
4
|
};
|
|
11
5
|
};
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
export declare function sereneCoreQuotasQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
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
|
-
}>;
|
|
3
|
+
getResourceQuotaUsage: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
20
4
|
};
|
|
21
5
|
};
|
|
@@ -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>;
|
|
4
4
|
};
|
|
5
5
|
};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
export declare function sereneCoreUsersQueryResolvers(): {
|
|
2
2
|
Query: {
|
|
3
|
-
userById: (parent: any, args: any, context: any, info: any) => Promise<
|
|
4
|
-
|
|
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>;
|
|
3
|
+
userById: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
4
|
+
verifySignedInUserProfileId: (parent: any, args: any, context: any, info: any) => Promise<any>;
|
|
14
5
|
};
|
|
15
6
|
};
|
package/dist/src/db.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import 'dotenv/config';
|
|
2
|
-
|
|
3
|
-
export declare const prisma: PrismaClient<import("@/prisma/index").Prisma.PrismaClientOptions, never, import("@/prisma/runtime/client").DefaultArgs>;
|
|
2
|
+
export declare const prisma: any;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { PrismaClient } from '@/prisma/client';
|
|
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<
|
|
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
|
-
}>;
|
|
4
|
+
countMessages(prisma: PrismaClient, userProfileId: string, instanceId: string | null | undefined, techId: string | undefined, startDate: Date, sentByAi: boolean): Promise<any>;
|
|
5
|
+
create(prisma: PrismaClient, userProfileId: string, instanceId: string | null, techId: string, sentByAi: boolean, inputTokens: number, outputTokens: number, costInCents: number): Promise<any>;
|
|
16
6
|
deleteByDaysAgo(prisma: PrismaClient, daysAgo: number): Promise<void>;
|
|
17
7
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { PrismaClient } from '@/prisma/client';
|
|
2
|
-
import { Encrypter } from '../../services/access/encrypt-service';
|
|
3
2
|
export declare class ChatMessageModel {
|
|
4
3
|
clName: string;
|
|
5
4
|
msPerMinute: number;
|
|
6
|
-
encrypter:
|
|
5
|
+
encrypter: any;
|
|
7
6
|
constructor(encryptionKey: string | undefined);
|
|
8
|
-
countMessages(prisma: PrismaClient, userProfileId: string, startDate: Date, sentByAi: boolean): Promise<
|
|
7
|
+
countMessages(prisma: PrismaClient, userProfileId: string, startDate: Date, sentByAi: boolean): Promise<any>;
|
|
9
8
|
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>;
|
|
10
9
|
deleteByChatSessionId(prisma: PrismaClient, chatSessionId: string): Promise<void>;
|
|
11
10
|
deleteById(prisma: PrismaClient, id: string): Promise<void>;
|
|
@@ -16,29 +15,7 @@ export declare class ChatMessageModel {
|
|
|
16
15
|
getEarliestUnread(prisma: PrismaClient, chatSession: any): Promise<any>;
|
|
17
16
|
getFirst(prisma: PrismaClient, chatSession: any): Promise<any>;
|
|
18
17
|
getLast(prisma: PrismaClient, chatSession: any): Promise<any>;
|
|
19
|
-
setExternalId(prisma: PrismaClient, id: string, externalId: string | null): Promise<
|
|
20
|
-
|
|
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
|
-
}>;
|
|
18
|
+
setExternalId(prisma: PrismaClient, id: string, externalId: string | null): Promise<any>;
|
|
19
|
+
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<any>;
|
|
43
20
|
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>;
|
|
44
21
|
}
|
|
@@ -1,39 +1,14 @@
|
|
|
1
1
|
import { PrismaClient } from '@/prisma/client';
|
|
2
|
-
import { UsersService } from '../../services/users/service';
|
|
3
2
|
export declare class ChatParticipantModel {
|
|
4
3
|
clName: string;
|
|
5
|
-
usersService:
|
|
6
|
-
create(prisma: PrismaClient, id: string | undefined, chatSessionId: string, userProfileId: string): Promise<
|
|
7
|
-
id: string;
|
|
8
|
-
userProfileId: string;
|
|
9
|
-
chatSessionId: string;
|
|
10
|
-
}>;
|
|
4
|
+
usersService: any;
|
|
5
|
+
create(prisma: PrismaClient, id: string | undefined, chatSessionId: string, userProfileId: string): Promise<any>;
|
|
11
6
|
deleteByChatSessionId(prisma: PrismaClient, chatSessionId: string): Promise<void>;
|
|
12
7
|
getById(prisma: PrismaClient, id: string): Promise<any>;
|
|
13
|
-
getByChatSessionId(prisma: PrismaClient, chatSessionId: string): Promise<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
}>;
|
|
8
|
+
getByChatSessionId(prisma: PrismaClient, chatSessionId: string): Promise<any>;
|
|
9
|
+
getByChatSessionIdAndOwnerType(prisma: PrismaClient, chatSessionId: string, ownerType: string): Promise<any>;
|
|
10
|
+
getByChatSessionIdAndUserProfileId(prisma: PrismaClient, chatSessionId: string, userProfileId: string): Promise<any>;
|
|
11
|
+
getParticipantTypeByUserProfileId(prisma: PrismaClient, userProfileId: string): Promise<any>;
|
|
12
|
+
update(prisma: PrismaClient, id: string, chatSessionId: string, userProfileId: string): Promise<any>;
|
|
13
|
+
upsert(prisma: PrismaClient, id: string | undefined, chatSessionId: string, userProfileId: string): Promise<any>;
|
|
39
14
|
}
|
|
@@ -1,92 +1,14 @@
|
|
|
1
1
|
import { PrismaClient } from '@/prisma/client';
|
|
2
2
|
export declare class ChatSessionModel {
|
|
3
3
|
clName: string;
|
|
4
|
-
create(prisma: PrismaClient, id: string | undefined, chatSettingsId: string, instanceId: string | null, status: string, isEncryptedAtRest: boolean, name: string | null, externalIntegration: string | null, externalId: string | null, createdById: string): Promise<
|
|
5
|
-
|
|
6
|
-
id: string;
|
|
7
|
-
status: string;
|
|
8
|
-
token: string;
|
|
9
|
-
externalIntegration: string | null;
|
|
10
|
-
created: Date;
|
|
11
|
-
updated: Date;
|
|
12
|
-
externalId: string | null;
|
|
13
|
-
instanceId: string | null;
|
|
14
|
-
chatSettingsId: string;
|
|
15
|
-
isEncryptedAtRest: boolean;
|
|
16
|
-
createdById: string;
|
|
17
|
-
}>;
|
|
18
|
-
deleteById(prisma: PrismaClient, id: string): Promise<{
|
|
19
|
-
name: string | null;
|
|
20
|
-
id: string;
|
|
21
|
-
status: string;
|
|
22
|
-
token: string;
|
|
23
|
-
externalIntegration: string | null;
|
|
24
|
-
created: Date;
|
|
25
|
-
updated: Date;
|
|
26
|
-
externalId: string | null;
|
|
27
|
-
instanceId: string | null;
|
|
28
|
-
chatSettingsId: string;
|
|
29
|
-
isEncryptedAtRest: boolean;
|
|
30
|
-
createdById: string;
|
|
31
|
-
}>;
|
|
4
|
+
create(prisma: PrismaClient, id: string | undefined, chatSettingsId: string, instanceId: string | null, status: string, isEncryptedAtRest: boolean, name: string | null, externalIntegration: string | null, externalId: string | null, createdById: string): Promise<any>;
|
|
5
|
+
deleteById(prisma: PrismaClient, id: string): Promise<any>;
|
|
32
6
|
deleteByIdCascade(prisma: PrismaClient, id: string): Promise<void>;
|
|
33
7
|
deleteByInstanceId(prisma: PrismaClient, instanceId: string): Promise<void>;
|
|
34
|
-
filter(prisma: PrismaClient, instanceId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, externalIntegration: string | null | undefined, createdById: string | undefined): Promise<
|
|
35
|
-
|
|
36
|
-
id: string;
|
|
37
|
-
status: string;
|
|
38
|
-
token: string;
|
|
39
|
-
externalIntegration: string | null;
|
|
40
|
-
created: Date;
|
|
41
|
-
updated: Date;
|
|
42
|
-
externalId: string | null;
|
|
43
|
-
instanceId: string | null;
|
|
44
|
-
chatSettingsId: string;
|
|
45
|
-
isEncryptedAtRest: boolean;
|
|
46
|
-
createdById: string;
|
|
47
|
-
}[] | undefined>;
|
|
48
|
-
getByDaysAgo(prisma: PrismaClient, daysAgo: number, status?: string | undefined): Promise<{
|
|
49
|
-
name: string | null;
|
|
50
|
-
id: string;
|
|
51
|
-
status: string;
|
|
52
|
-
token: string;
|
|
53
|
-
externalIntegration: string | null;
|
|
54
|
-
created: Date;
|
|
55
|
-
updated: Date;
|
|
56
|
-
externalId: string | null;
|
|
57
|
-
instanceId: string | null;
|
|
58
|
-
chatSettingsId: string;
|
|
59
|
-
isEncryptedAtRest: boolean;
|
|
60
|
-
createdById: string;
|
|
61
|
-
}[] | undefined>;
|
|
8
|
+
filter(prisma: PrismaClient, instanceId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, externalIntegration: string | null | undefined, createdById: string | undefined): Promise<any>;
|
|
9
|
+
getByDaysAgo(prisma: PrismaClient, daysAgo: number, status?: string | undefined): Promise<any>;
|
|
62
10
|
getByExternalIntegrationAndExternalId(prisma: PrismaClient, externalIntegration: string, externalId: string, includeChatSettings?: boolean): Promise<any>;
|
|
63
11
|
getById(prisma: PrismaClient, id: string, includeChatSettings?: boolean): Promise<any>;
|
|
64
|
-
update(prisma: PrismaClient, id: string, chatSettingsId: string | undefined, instanceId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, name: string | null | undefined, externalIntegration: string | null | undefined, externalId: string | null | undefined, createdById: string | undefined): Promise<
|
|
65
|
-
|
|
66
|
-
id: string;
|
|
67
|
-
status: string;
|
|
68
|
-
token: string;
|
|
69
|
-
externalIntegration: string | null;
|
|
70
|
-
created: Date;
|
|
71
|
-
updated: Date;
|
|
72
|
-
externalId: string | null;
|
|
73
|
-
instanceId: string | null;
|
|
74
|
-
chatSettingsId: string;
|
|
75
|
-
isEncryptedAtRest: boolean;
|
|
76
|
-
createdById: string;
|
|
77
|
-
}>;
|
|
78
|
-
upsert(prisma: PrismaClient, id: string, chatSettingsId: string | undefined, instanceId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, name: string | null | undefined, externalIntegration: string | null | undefined, externalId: string | null | undefined, createdById: string): Promise<{
|
|
79
|
-
name: string | null;
|
|
80
|
-
id: string;
|
|
81
|
-
status: string;
|
|
82
|
-
token: string;
|
|
83
|
-
externalIntegration: string | null;
|
|
84
|
-
created: Date;
|
|
85
|
-
updated: Date;
|
|
86
|
-
externalId: string | null;
|
|
87
|
-
instanceId: string | null;
|
|
88
|
-
chatSettingsId: string;
|
|
89
|
-
isEncryptedAtRest: boolean;
|
|
90
|
-
createdById: string;
|
|
91
|
-
}>;
|
|
12
|
+
update(prisma: PrismaClient, id: string, chatSettingsId: string | undefined, instanceId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, name: string | null | undefined, externalIntegration: string | null | undefined, externalId: string | null | undefined, createdById: string | undefined): Promise<any>;
|
|
13
|
+
upsert(prisma: PrismaClient, id: string, chatSettingsId: string | undefined, instanceId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, name: string | null | undefined, externalIntegration: string | null | undefined, externalId: string | null | undefined, createdById: string): Promise<any>;
|
|
92
14
|
}
|
|
@@ -1,87 +1,12 @@
|
|
|
1
1
|
import { PrismaClient } from '@/prisma/client';
|
|
2
2
|
export declare class ChatSettingsModel {
|
|
3
3
|
clName: string;
|
|
4
|
-
create(prisma: PrismaClient, baseChatSettingsId: string | null, status: string, isEncryptedAtRest: boolean, isJsonMode: boolean, isPinned: boolean, name: string | null, agentUserId: string, prompt: string | null, appCustom: any | null, createdById: string): Promise<
|
|
5
|
-
name: string | null;
|
|
6
|
-
id: string;
|
|
7
|
-
prompt: string | null;
|
|
8
|
-
status: string;
|
|
9
|
-
created: Date;
|
|
10
|
-
updated: Date;
|
|
11
|
-
isEncryptedAtRest: boolean;
|
|
12
|
-
createdById: string;
|
|
13
|
-
baseChatSettingsId: string | null;
|
|
14
|
-
isJsonMode: boolean;
|
|
15
|
-
isPinned: boolean;
|
|
16
|
-
agentUserId: string;
|
|
17
|
-
agentRole: string | null;
|
|
18
|
-
appCustom: import("@/prisma/runtime/client").JsonValue | null;
|
|
19
|
-
}>;
|
|
4
|
+
create(prisma: PrismaClient, baseChatSettingsId: string | null, status: string, isEncryptedAtRest: boolean, isJsonMode: boolean, isPinned: boolean, name: string | null, agentUserId: string, prompt: string | null, appCustom: any | null, createdById: string): Promise<any>;
|
|
20
5
|
deleteById(prisma: PrismaClient, id: string): Promise<void>;
|
|
21
6
|
getById(prisma: PrismaClient, id: string): Promise<any>;
|
|
22
7
|
getByName(prisma: PrismaClient, name: string): Promise<any>;
|
|
23
|
-
getByBaseChatSettingsId(prisma: PrismaClient, baseChatSettingsId: string | null | undefined): Promise<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
status: string;
|
|
28
|
-
created: Date;
|
|
29
|
-
updated: Date;
|
|
30
|
-
isEncryptedAtRest: boolean;
|
|
31
|
-
createdById: string;
|
|
32
|
-
baseChatSettingsId: string | null;
|
|
33
|
-
isJsonMode: boolean;
|
|
34
|
-
isPinned: boolean;
|
|
35
|
-
agentUserId: string;
|
|
36
|
-
agentRole: string | null;
|
|
37
|
-
appCustom: import("@/prisma/runtime/client").JsonValue | null;
|
|
38
|
-
}[]>;
|
|
39
|
-
getUnused(prisma: PrismaClient): Promise<{
|
|
40
|
-
name: string | null;
|
|
41
|
-
id: string;
|
|
42
|
-
prompt: string | null;
|
|
43
|
-
status: string;
|
|
44
|
-
created: Date;
|
|
45
|
-
updated: Date;
|
|
46
|
-
isEncryptedAtRest: boolean;
|
|
47
|
-
createdById: string;
|
|
48
|
-
baseChatSettingsId: string | null;
|
|
49
|
-
isJsonMode: boolean;
|
|
50
|
-
isPinned: boolean;
|
|
51
|
-
agentUserId: string;
|
|
52
|
-
agentRole: string | null;
|
|
53
|
-
appCustom: import("@/prisma/runtime/client").JsonValue | null;
|
|
54
|
-
}[]>;
|
|
55
|
-
update(prisma: PrismaClient, id: string, baseChatSettingsId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, isJsonMode: boolean | undefined, isPinned: boolean | undefined, name: string | null | undefined, agentUserId: string | undefined, prompt: string | null | undefined, appCustom: any | null | undefined, createdById: string | undefined): Promise<{
|
|
56
|
-
name: string | null;
|
|
57
|
-
id: string;
|
|
58
|
-
prompt: string | null;
|
|
59
|
-
status: string;
|
|
60
|
-
created: Date;
|
|
61
|
-
updated: Date;
|
|
62
|
-
isEncryptedAtRest: boolean;
|
|
63
|
-
createdById: string;
|
|
64
|
-
baseChatSettingsId: string | null;
|
|
65
|
-
isJsonMode: boolean;
|
|
66
|
-
isPinned: boolean;
|
|
67
|
-
agentUserId: string;
|
|
68
|
-
agentRole: string | null;
|
|
69
|
-
appCustom: import("@/prisma/runtime/client").JsonValue | null;
|
|
70
|
-
}>;
|
|
71
|
-
upsert(prisma: PrismaClient, id: string | undefined, baseChatSettingsId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, isJsonMode: boolean | undefined, isPinned: boolean | undefined, name: string | null | undefined, agentUserId: string | undefined, prompt: string | null | undefined, appCustom: any | null | undefined, createdById: string | undefined): Promise<{
|
|
72
|
-
name: string | null;
|
|
73
|
-
id: string;
|
|
74
|
-
prompt: string | null;
|
|
75
|
-
status: string;
|
|
76
|
-
created: Date;
|
|
77
|
-
updated: Date;
|
|
78
|
-
isEncryptedAtRest: boolean;
|
|
79
|
-
createdById: string;
|
|
80
|
-
baseChatSettingsId: string | null;
|
|
81
|
-
isJsonMode: boolean;
|
|
82
|
-
isPinned: boolean;
|
|
83
|
-
agentUserId: string;
|
|
84
|
-
agentRole: string | null;
|
|
85
|
-
appCustom: import("@/prisma/runtime/client").JsonValue | null;
|
|
86
|
-
}>;
|
|
8
|
+
getByBaseChatSettingsId(prisma: PrismaClient, baseChatSettingsId: string | null | undefined): Promise<any>;
|
|
9
|
+
getUnused(prisma: PrismaClient): Promise<any>;
|
|
10
|
+
update(prisma: PrismaClient, id: string, baseChatSettingsId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, isJsonMode: boolean | undefined, isPinned: boolean | undefined, name: string | null | undefined, agentUserId: string | undefined, prompt: string | null | undefined, appCustom: any | null | undefined, createdById: string | undefined): Promise<any>;
|
|
11
|
+
upsert(prisma: PrismaClient, id: string | undefined, baseChatSettingsId: string | null | undefined, status: string | undefined, isEncryptedAtRest: boolean | undefined, isJsonMode: boolean | undefined, isPinned: boolean | undefined, name: string | null | undefined, agentUserId: string | undefined, prompt: string | null | undefined, appCustom: any | null | undefined, createdById: string | undefined): Promise<any>;
|
|
87
12
|
}
|
|
@@ -1,40 +1,10 @@
|
|
|
1
1
|
import { Prisma } from '@/prisma/client';
|
|
2
2
|
export declare class FeatureFlagModel {
|
|
3
3
|
clName: string;
|
|
4
|
-
create(prisma: Prisma.TransactionClient, userProfileId: string | null, instanceId: string | null, name: string, enabled: boolean): Promise<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}>;
|
|
11
|
-
deleteByUserProfileId(prisma: Prisma.TransactionClient, userProfileId: string): Promise<Prisma.BatchPayload>;
|
|
12
|
-
filter(prisma: Prisma.TransactionClient, userProfileId?: string | null | undefined, instanceId?: string | null | undefined): Promise<{
|
|
13
|
-
name: string;
|
|
14
|
-
id: string;
|
|
15
|
-
userProfileId: string | null;
|
|
16
|
-
instanceId: string | null;
|
|
17
|
-
enabled: boolean;
|
|
18
|
-
}[]>;
|
|
19
|
-
getByUniqueKey(prisma: Prisma.TransactionClient, userProfileId: string | null, instanceId: string | null, name: string): Promise<{
|
|
20
|
-
name: string;
|
|
21
|
-
id: string;
|
|
22
|
-
userProfileId: string | null;
|
|
23
|
-
instanceId: string | null;
|
|
24
|
-
enabled: boolean;
|
|
25
|
-
} | null>;
|
|
26
|
-
update(prisma: Prisma.TransactionClient, id: string, userProfileId: string | null | undefined, instanceId: string | null | undefined, name: string | undefined, enabled: boolean | undefined): Promise<{
|
|
27
|
-
name: string;
|
|
28
|
-
id: string;
|
|
29
|
-
userProfileId: string | null;
|
|
30
|
-
instanceId: string | null;
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
upsert(prisma: Prisma.TransactionClient, id: string | undefined, userProfileId: string | null | undefined, instanceId: string | null | undefined, name: string | undefined, enabled: boolean | undefined): Promise<{
|
|
34
|
-
name: string;
|
|
35
|
-
id: string;
|
|
36
|
-
userProfileId: string | null;
|
|
37
|
-
instanceId: string | null;
|
|
38
|
-
enabled: boolean;
|
|
39
|
-
}>;
|
|
4
|
+
create(prisma: Prisma.TransactionClient, userProfileId: string | null, instanceId: string | null, name: string, enabled: boolean): Promise<any>;
|
|
5
|
+
deleteByUserProfileId(prisma: Prisma.TransactionClient, userProfileId: string): Promise<any>;
|
|
6
|
+
filter(prisma: Prisma.TransactionClient, userProfileId?: string | null | undefined, instanceId?: string | null | undefined): Promise<any>;
|
|
7
|
+
getByUniqueKey(prisma: Prisma.TransactionClient, userProfileId: string | null, instanceId: string | null, name: string): Promise<any>;
|
|
8
|
+
update(prisma: Prisma.TransactionClient, id: string, userProfileId: string | null | undefined, instanceId: string | null | undefined, name: string | undefined, enabled: boolean | undefined): Promise<any>;
|
|
9
|
+
upsert(prisma: Prisma.TransactionClient, id: string | undefined, userProfileId: string | null | undefined, instanceId: string | null | undefined, name: string | undefined, enabled: boolean | undefined): Promise<any>;
|
|
40
10
|
}
|
|
@@ -1,62 +1,9 @@
|
|
|
1
1
|
import { Prisma } from '@/prisma/client';
|
|
2
2
|
export declare class InstanceModel {
|
|
3
3
|
clName: string;
|
|
4
|
-
create(prisma: Prisma.TransactionClient, parentId: string | null, userProfileId: string, instanceType: string, projectType: string | null, isDemo: boolean, isDefault: boolean, status: string, publicAccess: string | null, key: string, name: string): Promise<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
id: string;
|
|
8
|
-
status: string;
|
|
9
|
-
userProfileId: string;
|
|
10
|
-
created: Date;
|
|
11
|
-
updated: Date;
|
|
12
|
-
parentId: string | null;
|
|
13
|
-
instanceType: string;
|
|
14
|
-
projectType: string | null;
|
|
15
|
-
isDefault: boolean;
|
|
16
|
-
isDemo: boolean;
|
|
17
|
-
publicAccess: string | null;
|
|
18
|
-
}>;
|
|
19
|
-
deleteById(prisma: Prisma.TransactionClient, id: string): Promise<{
|
|
20
|
-
name: string;
|
|
21
|
-
key: string;
|
|
22
|
-
id: string;
|
|
23
|
-
status: string;
|
|
24
|
-
userProfileId: string;
|
|
25
|
-
created: Date;
|
|
26
|
-
updated: Date;
|
|
27
|
-
parentId: string | null;
|
|
28
|
-
instanceType: string;
|
|
29
|
-
projectType: string | null;
|
|
30
|
-
isDefault: boolean;
|
|
31
|
-
isDemo: boolean;
|
|
32
|
-
publicAccess: string | null;
|
|
33
|
-
} | undefined>;
|
|
34
|
-
filter(prisma: Prisma.TransactionClient, parentId?: string | null | undefined, userProfileId?: string | undefined, instanceType?: string | undefined, projectType?: string | null | undefined, isDemo?: boolean | undefined, isDefault?: boolean | undefined, status?: string | undefined, publicAccess?: string | null | undefined, includeUserProfile?: boolean, includeUser?: boolean): Promise<({
|
|
35
|
-
userProfile: {
|
|
36
|
-
id: string;
|
|
37
|
-
userId: string | null;
|
|
38
|
-
created: Date;
|
|
39
|
-
updated: Date;
|
|
40
|
-
isAdmin: boolean;
|
|
41
|
-
ownerType: string | null;
|
|
42
|
-
roles: string[];
|
|
43
|
-
deletePending: Date | null;
|
|
44
|
-
};
|
|
45
|
-
} & {
|
|
46
|
-
name: string;
|
|
47
|
-
key: string;
|
|
48
|
-
id: string;
|
|
49
|
-
status: string;
|
|
50
|
-
userProfileId: string;
|
|
51
|
-
created: Date;
|
|
52
|
-
updated: Date;
|
|
53
|
-
parentId: string | null;
|
|
54
|
-
instanceType: string;
|
|
55
|
-
projectType: string | null;
|
|
56
|
-
isDefault: boolean;
|
|
57
|
-
isDemo: boolean;
|
|
58
|
-
publicAccess: string | null;
|
|
59
|
-
})[]>;
|
|
4
|
+
create(prisma: Prisma.TransactionClient, parentId: string | null, userProfileId: string, instanceType: string, projectType: string | null, isDemo: boolean, isDefault: boolean, status: string, publicAccess: string | null, key: string, name: string): Promise<any>;
|
|
5
|
+
deleteById(prisma: Prisma.TransactionClient, id: string): Promise<any>;
|
|
6
|
+
filter(prisma: Prisma.TransactionClient, parentId?: string | null | undefined, userProfileId?: string | undefined, instanceType?: string | undefined, projectType?: string | null | undefined, isDemo?: boolean | undefined, isDefault?: boolean | undefined, status?: string | undefined, publicAccess?: string | null | undefined, includeUserProfile?: boolean, includeUser?: boolean): Promise<any>;
|
|
60
7
|
getById(prisma: Prisma.TransactionClient, id: string, includeParent?: boolean, includeUserProfile?: boolean, includeUser?: boolean): Promise<any>;
|
|
61
8
|
getByNameAndIsAdminUserProfile(prisma: Prisma.TransactionClient, name: string): Promise<any>;
|
|
62
9
|
getByParentIdAndUserProfileIdAndIsDefault(prisma: Prisma.TransactionClient, parentId: string | null, userProfileId: string): Promise<any>;
|
|
@@ -66,35 +13,7 @@ export declare class InstanceModel {
|
|
|
66
13
|
getByParentIdAndNameAndUserProfileId(prisma: Prisma.TransactionClient, parentId: string | null, name: string, userProfileId: string): Promise<any>;
|
|
67
14
|
getByUserProfileIdAndName(prisma: Prisma.TransactionClient, userProfileId: string, name: string): Promise<any>;
|
|
68
15
|
getByUserProfileIdAndParentNameAndName(prisma: Prisma.TransactionClient, userProfileId: string, parentName: string, name: string): Promise<any>;
|
|
69
|
-
update(prisma: Prisma.TransactionClient, id: string, parentId: string | null | undefined, userProfileId: string | undefined, instanceType: string | undefined, projectType: string | null | undefined, isDemo: boolean | undefined, isDefault: boolean | undefined, status: string | undefined, publicAccess: string | null | undefined, key: string | undefined, name: string | undefined): Promise<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
id: string;
|
|
73
|
-
status: string;
|
|
74
|
-
userProfileId: string;
|
|
75
|
-
created: Date;
|
|
76
|
-
updated: Date;
|
|
77
|
-
parentId: string | null;
|
|
78
|
-
instanceType: string;
|
|
79
|
-
projectType: string | null;
|
|
80
|
-
isDefault: boolean;
|
|
81
|
-
isDemo: boolean;
|
|
82
|
-
publicAccess: string | null;
|
|
83
|
-
}>;
|
|
84
|
-
updateByParentId(prisma: Prisma.TransactionClient, parentId: string | null | undefined, userProfileId: string | undefined, instanceType: string | undefined, projectType: string | null | undefined, isDemo: boolean | undefined, isDefault: boolean | undefined, status: string | undefined, publicAccess: string | null | undefined, key: string | undefined, name: string | undefined): Promise<Prisma.BatchPayload>;
|
|
85
|
-
upsert(prisma: Prisma.TransactionClient, id: string | undefined, parentId: string | null | undefined, userProfileId: string | undefined, instanceType: string | undefined, projectType: string | null | undefined, isDemo: boolean | undefined, isDefault: boolean | undefined, status: string | undefined, publicAccess: string | null | undefined, key: string | undefined, name: string | undefined): Promise<{
|
|
86
|
-
name: string;
|
|
87
|
-
key: string;
|
|
88
|
-
id: string;
|
|
89
|
-
status: string;
|
|
90
|
-
userProfileId: string;
|
|
91
|
-
created: Date;
|
|
92
|
-
updated: Date;
|
|
93
|
-
parentId: string | null;
|
|
94
|
-
instanceType: string;
|
|
95
|
-
projectType: string | null;
|
|
96
|
-
isDefault: boolean;
|
|
97
|
-
isDemo: boolean;
|
|
98
|
-
publicAccess: string | null;
|
|
99
|
-
}>;
|
|
16
|
+
update(prisma: Prisma.TransactionClient, id: string, parentId: string | null | undefined, userProfileId: string | undefined, instanceType: string | undefined, projectType: string | null | undefined, isDemo: boolean | undefined, isDefault: boolean | undefined, status: string | undefined, publicAccess: string | null | undefined, key: string | undefined, name: string | undefined): Promise<any>;
|
|
17
|
+
updateByParentId(prisma: Prisma.TransactionClient, parentId: string | null | undefined, userProfileId: string | undefined, instanceType: string | undefined, projectType: string | null | undefined, isDemo: boolean | undefined, isDefault: boolean | undefined, status: string | undefined, publicAccess: string | null | undefined, key: string | undefined, name: string | undefined): Promise<any>;
|
|
18
|
+
upsert(prisma: Prisma.TransactionClient, id: string | undefined, parentId: string | null | undefined, userProfileId: string | undefined, instanceType: string | undefined, projectType: string | null | undefined, isDemo: boolean | undefined, isDefault: boolean | undefined, status: string | undefined, publicAccess: string | null | undefined, key: string | undefined, name: string | undefined): Promise<any>;
|
|
100
19
|
}
|