@iblai/data-layer 0.2.0 → 0.3.1
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/index.d.ts +41476 -15632
- package/dist/index.esm.js +6764 -1863
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6947 -1859
- package/dist/index.js.map +1 -1
- package/dist/package.json +19 -17
- package/dist/src/__tests__/constants.test.d.ts +1 -0
- package/dist/src/core/index.d.ts +2 -1
- package/dist/src/features/analytics/api-slice.d.ts +1879 -122
- package/dist/src/features/analytics/constants.d.ts +56 -1
- package/dist/src/features/analytics/types.d.ts +327 -1
- package/dist/src/features/api-keys/api-slice.d.ts +25 -36
- package/dist/src/features/apps/api-slice.d.ts +25 -36
- package/dist/src/features/auth/api-slice.d.ts +504 -2
- package/dist/src/features/auth/constants.d.ts +13 -1
- package/dist/src/features/auth/types.d.ts +20 -0
- package/dist/src/features/billing/api-slice.d.ts +5 -5
- package/dist/src/features/career/api-slice.d.ts +2345 -180
- package/dist/src/features/catalog/api-slice.d.ts +2260 -244
- package/dist/src/features/chat/api-slice.d.ts +68 -68
- package/dist/src/features/chat-files/api-slice.d.ts +185 -0
- package/dist/src/features/chat-files/types.d.ts +32 -0
- package/dist/src/features/chat-history/api-slice.d.ts +60 -60
- package/dist/src/features/core/api-slice.d.ts +3793 -26
- package/dist/src/features/core/constants.d.ts +43 -0
- package/dist/src/features/core/custom-api-slice.d.ts +1458 -0
- package/dist/src/features/core/custom-public-image-asset-api-slice.d.ts +333 -0
- package/dist/src/features/core/types.d.ts +60 -0
- package/dist/src/features/credentials/api-slice.d.ts +766 -105
- package/dist/src/features/custom-domain/api-slice.d.ts +602 -0
- package/dist/src/features/custom-domain/constants.d.ts +20 -0
- package/dist/src/features/custom-domain/types.d.ts +46 -0
- package/dist/src/features/datasets/api-slice.d.ts +22 -22
- package/dist/src/features/disclaimers/api-slice.d.ts +912 -0
- package/dist/src/features/disclaimers/constants.d.ts +27 -0
- package/dist/src/features/disclaimers/index.d.ts +3 -0
- package/dist/src/features/disclaimers/types.d.ts +67 -0
- package/dist/src/features/edx-proctoring/api-slice.d.ts +590 -0
- package/dist/src/features/edx-proctoring/constants.d.ts +15 -0
- package/dist/src/features/edx-proctoring/types.d.ts +61 -0
- package/dist/src/features/llms/api-slice.d.ts +20 -20
- package/dist/src/features/memory/api-slice.d.ts +1437 -530
- package/dist/src/features/memory/constants.d.ts +50 -0
- package/dist/src/features/memory/index.d.ts +3 -0
- package/dist/src/features/memory/types.d.ts +122 -0
- package/dist/src/features/mentor/api-slice.d.ts +1738 -240
- package/dist/src/features/mentor/constants.d.ts +8 -0
- package/dist/src/features/mentor/custom-api-slice.d.ts +529 -1
- package/dist/src/features/mentor/types.d.ts +39 -0
- package/dist/src/features/mentor-categories/api-slice.d.ts +416 -20
- package/dist/src/features/notifications/api-slice.d.ts +696 -42
- package/dist/src/features/notifications/constants.d.ts +26 -0
- package/dist/src/features/notifications/custom-api-slice.d.ts +996 -0
- package/dist/src/features/notifications/types.d.ts +69 -0
- package/dist/src/features/per-learner/api-slice.d.ts +58 -58
- package/dist/src/features/platform/api-slice.d.ts +321 -167
- package/dist/src/features/platform/constants.d.ts +17 -0
- package/dist/src/features/platform/custom-api-slice.d.ts +493 -0
- package/dist/src/features/platform/types.d.ts +48 -0
- package/dist/src/features/projects/api-slice.d.ts +2026 -0
- package/dist/src/features/projects/constants.d.ts +51 -0
- package/dist/src/features/projects/types.d.ts +79 -0
- package/dist/src/features/prompts/api-slice.d.ts +105 -83
- package/dist/src/features/reports/api-slice.d.ts +814 -0
- package/dist/src/features/search/ai-search-api-slice.d.ts +1015 -0
- package/dist/src/features/search/api-slice.d.ts +39 -39
- package/dist/src/features/search/constants.d.ts +31 -0
- package/dist/src/features/search/types.d.ts +89 -0
- package/dist/src/features/sessions/api-slice.d.ts +24 -24
- package/dist/src/features/skills/api-slice.d.ts +77 -77
- package/dist/src/features/stripe/api-slice.d.ts +201 -40
- package/dist/src/features/stripe/constants.d.ts +5 -1
- package/dist/src/features/stripe/types.d.ts +10 -0
- package/dist/src/features/tenant/api-slice.d.ts +43 -52
- package/dist/src/features/tenant/types.d.ts +1 -0
- package/dist/src/features/tools/api-slice.d.ts +64 -20
- package/dist/src/features/training-documents/api-slice.d.ts +534 -27
- package/dist/src/features/user/api-slice.d.ts +124 -124
- package/dist/src/features/user/constants.d.ts +3 -1
- package/dist/src/features/user-invitations/api-slice.d.ts +22 -22
- package/dist/src/features/utils.d.ts +8 -5
- package/dist/src/index.d.ts +78 -47
- package/dist/src/reducers/skills.d.ts +2 -1128
- package/dist/src/services/StorageService.d.ts +1 -1
- package/dist/tests/setupTests.d.ts +1 -1
- package/package.json +16 -13
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { SERVICES } from '@data-layer/constants';
|
|
2
|
+
export declare const MEMORY_REDUCER_PATH = "memoryApiSlice";
|
|
3
|
+
export declare const MEMORY_ENDPOINTS: {
|
|
4
|
+
GET_MEMORIES: {
|
|
5
|
+
service: SERVICES;
|
|
6
|
+
path: (tenantKey: string, username: string) => string;
|
|
7
|
+
};
|
|
8
|
+
GET_MEMORY_CATEGORIES: {
|
|
9
|
+
service: SERVICES;
|
|
10
|
+
path: (tenantKey: string, username: string) => string;
|
|
11
|
+
};
|
|
12
|
+
GET_MENTOR_USER_SETTINGS: {
|
|
13
|
+
service: SERVICES;
|
|
14
|
+
path: (tenantKey: string, username: string, mentorId: string) => string;
|
|
15
|
+
};
|
|
16
|
+
UPDATE_MENTOR_USER_SETTINGS: {
|
|
17
|
+
service: SERVICES;
|
|
18
|
+
path: (tenantKey: string, username: string, mentorId: string) => string;
|
|
19
|
+
};
|
|
20
|
+
DELETE_MEMORY: {
|
|
21
|
+
service: SERVICES;
|
|
22
|
+
path: (tenantKey: string, username: string, memoryId: string) => string;
|
|
23
|
+
};
|
|
24
|
+
DELETE_MEMORY_BY_CATEGORY: {
|
|
25
|
+
service: SERVICES;
|
|
26
|
+
path: (tenantKey: string, username: string, category: string) => string;
|
|
27
|
+
};
|
|
28
|
+
UPDATE_MEMORY_ENTRY: {
|
|
29
|
+
service: SERVICES;
|
|
30
|
+
path: (tenantKey: string, username: string, entryId: string) => string;
|
|
31
|
+
};
|
|
32
|
+
CREATE_MEMORY: {
|
|
33
|
+
service: SERVICES;
|
|
34
|
+
path: (tenantKey: string, username: string) => string;
|
|
35
|
+
};
|
|
36
|
+
GET_MEMORY_FILTERS: {
|
|
37
|
+
service: SERVICES;
|
|
38
|
+
path: (tenantKey: string, username: string) => string;
|
|
39
|
+
};
|
|
40
|
+
GET_FILTERED_MEMORIES: {
|
|
41
|
+
service: SERVICES;
|
|
42
|
+
path: (tenantKey: string, username: string) => string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const MEMORY_QUERY_KEYS: {
|
|
46
|
+
GET_MEMORIES: () => string[];
|
|
47
|
+
GET_MEMORY_CATEGORIES: () => string[];
|
|
48
|
+
GET_MENTOR_USER_SETTINGS: () => string[];
|
|
49
|
+
GET_FILTERED_MEMORIES: () => string[];
|
|
50
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export interface MemoryEntry {
|
|
2
|
+
unique_id: string;
|
|
3
|
+
key: string;
|
|
4
|
+
value: string;
|
|
5
|
+
inserted_at: string;
|
|
6
|
+
updated_at: string;
|
|
7
|
+
expires_at: string | null;
|
|
8
|
+
category: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Memory {
|
|
11
|
+
mode: string;
|
|
12
|
+
name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
unique_id: string;
|
|
15
|
+
username: string;
|
|
16
|
+
platform: string;
|
|
17
|
+
mentor: string | null;
|
|
18
|
+
session_id: string | null;
|
|
19
|
+
catalog_item_type: string | null;
|
|
20
|
+
catalog_item_id: string | null;
|
|
21
|
+
entries: MemoryEntry[];
|
|
22
|
+
inserted_at: string;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
is_auto_generated: boolean;
|
|
25
|
+
category: string;
|
|
26
|
+
}
|
|
27
|
+
export type MemoriesFetchResponse = {
|
|
28
|
+
results: Memory[];
|
|
29
|
+
count: number;
|
|
30
|
+
next: string | null;
|
|
31
|
+
previous: string | null;
|
|
32
|
+
};
|
|
33
|
+
export type MemoryCategoriesResponse = {
|
|
34
|
+
categories: string[];
|
|
35
|
+
};
|
|
36
|
+
export type MentorUserSettings = {
|
|
37
|
+
reference_saved_memories: boolean;
|
|
38
|
+
};
|
|
39
|
+
export type GetMemoriesParams = {
|
|
40
|
+
category?: string;
|
|
41
|
+
limit?: number;
|
|
42
|
+
offset?: number;
|
|
43
|
+
};
|
|
44
|
+
export type GetMemoriesArgs = {
|
|
45
|
+
tenantKey: string;
|
|
46
|
+
username: string;
|
|
47
|
+
params?: GetMemoriesParams;
|
|
48
|
+
};
|
|
49
|
+
export type GetFilteredMemoriesParams = {
|
|
50
|
+
category?: string;
|
|
51
|
+
username?: string;
|
|
52
|
+
start_date?: string;
|
|
53
|
+
end_date?: string;
|
|
54
|
+
page?: number;
|
|
55
|
+
page_size?: number;
|
|
56
|
+
};
|
|
57
|
+
export type GetFilteredMemoriesArgs = {
|
|
58
|
+
tenantKey: string;
|
|
59
|
+
username: string;
|
|
60
|
+
params?: GetFilteredMemoriesParams;
|
|
61
|
+
};
|
|
62
|
+
export type GetMemoryCategoriesArgs = {
|
|
63
|
+
tenantKey: string;
|
|
64
|
+
username: string;
|
|
65
|
+
};
|
|
66
|
+
export type GetMentorUserSettingsArgs = {
|
|
67
|
+
tenantKey: string;
|
|
68
|
+
username: string;
|
|
69
|
+
mentorId: string;
|
|
70
|
+
};
|
|
71
|
+
export type UpdateMentorUserSettingsArgs = {
|
|
72
|
+
tenantKey: string;
|
|
73
|
+
username: string;
|
|
74
|
+
mentorId: string;
|
|
75
|
+
settings: Partial<MentorUserSettings>;
|
|
76
|
+
};
|
|
77
|
+
export type DeleteMemoryArgs = {
|
|
78
|
+
tenantKey: string;
|
|
79
|
+
username: string;
|
|
80
|
+
memoryId: string;
|
|
81
|
+
};
|
|
82
|
+
export type DeleteMemoryByCategoryArgs = {
|
|
83
|
+
tenantKey: string;
|
|
84
|
+
username: string;
|
|
85
|
+
category: string;
|
|
86
|
+
};
|
|
87
|
+
export type UpdateMemoryEntryArgs = {
|
|
88
|
+
tenantKey: string;
|
|
89
|
+
username: string;
|
|
90
|
+
entryId: string;
|
|
91
|
+
data: {
|
|
92
|
+
key?: string;
|
|
93
|
+
value?: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export type CreateMemoryRequest = {
|
|
97
|
+
name: string;
|
|
98
|
+
platform: string;
|
|
99
|
+
mentor_unique_id?: string;
|
|
100
|
+
entries: Array<{
|
|
101
|
+
key: string;
|
|
102
|
+
value: string;
|
|
103
|
+
}>;
|
|
104
|
+
category: string;
|
|
105
|
+
};
|
|
106
|
+
export type CreateMemoryArgs = {
|
|
107
|
+
tenantKey: string;
|
|
108
|
+
username: string;
|
|
109
|
+
data: CreateMemoryRequest;
|
|
110
|
+
};
|
|
111
|
+
export type GetMemoryFiltersArgs = {
|
|
112
|
+
tenantKey: string;
|
|
113
|
+
username: string;
|
|
114
|
+
};
|
|
115
|
+
export type MemoryFiltersResponse = {
|
|
116
|
+
categories: string[];
|
|
117
|
+
users: {
|
|
118
|
+
username: string;
|
|
119
|
+
email: string;
|
|
120
|
+
lti_email: string;
|
|
121
|
+
}[];
|
|
122
|
+
};
|