@iblai/mcp 1.0.0 → 1.1.3
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/README.md +95 -142
- package/dist/index.js +129 -97
- package/dist/index.js.map +1 -1
- package/dist/prompts/create-playwright-test.d.ts +2 -0
- package/dist/prompts/create-playwright-test.d.ts.map +1 -0
- package/dist/prompts/create-playwright-test.js +99 -0
- package/dist/prompts/create-playwright-test.js.map +1 -0
- package/dist/prompts/index.d.ts +4 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +4 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/setup-e2e-testing.d.ts +2 -0
- package/dist/prompts/setup-e2e-testing.d.ts.map +1 -0
- package/dist/prompts/setup-e2e-testing.js +162 -0
- package/dist/prompts/setup-e2e-testing.js.map +1 -0
- package/dist/prompts/setup-new-app.d.ts +2 -0
- package/dist/prompts/setup-new-app.d.ts.map +1 -0
- package/dist/prompts/setup-new-app.js +226 -0
- package/dist/prompts/setup-new-app.js.map +1 -0
- package/dist/resources/data-layer.js +14 -14
- package/dist/resources/guides-layout.js +5 -5
- package/dist/resources/guides-playwright.d.ts +8 -0
- package/dist/resources/guides-playwright.d.ts.map +1 -0
- package/dist/resources/guides-playwright.js +235 -0
- package/dist/resources/guides-playwright.js.map +1 -0
- package/dist/resources/guides-rbac.js +2 -2
- package/dist/resources/guides-theme.js +4 -4
- package/dist/resources/index.d.ts +3 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +5 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/packages-overview.d.ts.map +1 -1
- package/dist/resources/packages-overview.js +12 -6
- package/dist/resources/packages-overview.js.map +1 -1
- package/dist/resources/packages-playwright.d.ts +8 -0
- package/dist/resources/packages-playwright.d.ts.map +1 -0
- package/dist/resources/packages-playwright.js +161 -0
- package/dist/resources/packages-playwright.js.map +1 -0
- package/dist/resources/web-containers.d.ts.map +1 -1
- package/dist/resources/web-containers.js +82 -22
- package/dist/resources/web-containers.js.map +1 -1
- package/dist/resources/web-utils.d.ts.map +1 -1
- package/dist/resources/web-utils.js +46 -9
- package/dist/resources/web-utils.js.map +1 -1
- package/dist/tools/api-query-info.d.ts.map +1 -1
- package/dist/tools/api-query-info.js +248 -238
- package/dist/tools/api-query-info.js.map +1 -1
- package/dist/tools/component-info.d.ts.map +1 -1
- package/dist/tools/component-info.js +945 -469
- package/dist/tools/component-info.js.map +1 -1
- package/dist/tools/hook-info.d.ts.map +1 -1
- package/dist/tools/hook-info.js +229 -98
- package/dist/tools/hook-info.js.map +1 -1
- package/dist/tools/index.d.ts +15 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/page-template.js +8 -8
- package/dist/tools/page-template.js.map +1 -1
- package/dist/tools/playwright-helper-info.d.ts +16 -0
- package/dist/tools/playwright-helper-info.d.ts.map +1 -0
- package/dist/tools/playwright-helper-info.js +849 -0
- package/dist/tools/playwright-helper-info.js.map +1 -0
- package/dist/tools/provider-setup.js +4 -4
- package/dist/tools/provider-setup.js.map +1 -1
- package/package.json +19 -6
|
@@ -18,12 +18,12 @@ const queries = {
|
|
|
18
18
|
// ============================================================================
|
|
19
19
|
useGetMentorsQuery: `# useGetMentorsQuery
|
|
20
20
|
|
|
21
|
-
**Package**: \`@iblai/data-layer\`
|
|
21
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
22
22
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
23
23
|
**Feature**: Mentor Management
|
|
24
24
|
|
|
25
25
|
\`\`\`typescript
|
|
26
|
-
import { useGetMentorsQuery } from '@iblai/data-layer';
|
|
26
|
+
import { useGetMentorsQuery } from '@iblai/iblai-js/data-layer';
|
|
27
27
|
|
|
28
28
|
const { data, isLoading, error, refetch, isFetching } = useGetMentorsQuery({
|
|
29
29
|
org: string, // Tenant key (required)
|
|
@@ -55,12 +55,12 @@ interface Mentor {
|
|
|
55
55
|
**Cache Tags**: \`['Mentors']\``,
|
|
56
56
|
useGetMentorDetailsQuery: `# useGetMentorDetailsQuery
|
|
57
57
|
|
|
58
|
-
**Package**: \`@iblai/data-layer\`
|
|
58
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
59
59
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
60
60
|
**Feature**: Mentor Management
|
|
61
61
|
|
|
62
62
|
\`\`\`typescript
|
|
63
|
-
import { useGetMentorDetailsQuery } from '@iblai/data-layer';
|
|
63
|
+
import { useGetMentorDetailsQuery } from '@iblai/iblai-js/data-layer';
|
|
64
64
|
|
|
65
65
|
const { data: mentor, isLoading, error } = useGetMentorDetailsQuery({
|
|
66
66
|
org: string, // Tenant key
|
|
@@ -78,14 +78,14 @@ const { data: mentor, isLoading, error } = useGetMentorDetailsQuery({
|
|
|
78
78
|
**Cache Tags**: \`['MentorDetails', mentorId]\``,
|
|
79
79
|
useGetMentorSettingsQuery: `# useGetMentorSettingsQuery
|
|
80
80
|
|
|
81
|
-
**Package**: \`@iblai/data-layer\`
|
|
81
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
82
82
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
83
83
|
**Feature**: Mentor Management
|
|
84
84
|
|
|
85
85
|
Fetches mentor settings for **authenticated users**.
|
|
86
86
|
|
|
87
87
|
\`\`\`typescript
|
|
88
|
-
import { useGetMentorSettingsQuery } from '@iblai/data-layer';
|
|
88
|
+
import { useGetMentorSettingsQuery } from '@iblai/iblai-js/data-layer';
|
|
89
89
|
|
|
90
90
|
const { data: settings, isLoading } = useGetMentorSettingsQuery({
|
|
91
91
|
org: string, // Tenant key
|
|
@@ -112,14 +112,14 @@ interface MentorSettings {
|
|
|
112
112
|
\`\`\``,
|
|
113
113
|
useGetMentorPublicSettingsQuery: `# useGetMentorPublicSettingsQuery
|
|
114
114
|
|
|
115
|
-
**Package**: \`@iblai/data-layer\`
|
|
115
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
116
116
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
117
117
|
**Feature**: Mentor Management
|
|
118
118
|
|
|
119
119
|
Fetches mentor settings for **anonymous/unauthenticated users**.
|
|
120
120
|
|
|
121
121
|
\`\`\`typescript
|
|
122
|
-
import { useGetMentorPublicSettingsQuery } from '@iblai/data-layer';
|
|
122
|
+
import { useGetMentorPublicSettingsQuery } from '@iblai/iblai-js/data-layer';
|
|
123
123
|
|
|
124
124
|
const { data: settings, isLoading } = useGetMentorPublicSettingsQuery({
|
|
125
125
|
org: string, // Tenant key
|
|
@@ -131,12 +131,12 @@ const { data: settings, isLoading } = useGetMentorPublicSettingsQuery({
|
|
|
131
131
|
\`\`\``,
|
|
132
132
|
useCreateMentorMutation: `# useCreateMentorMutation
|
|
133
133
|
|
|
134
|
-
**Package**: \`@iblai/data-layer\`
|
|
134
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
135
135
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
136
136
|
**Feature**: Mentor Management
|
|
137
137
|
|
|
138
138
|
\`\`\`typescript
|
|
139
|
-
import { useCreateMentorMutation } from '@iblai/data-layer';
|
|
139
|
+
import { useCreateMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
140
140
|
|
|
141
141
|
const [createMentor, { isLoading, error, isSuccess }] = useCreateMentorMutation();
|
|
142
142
|
|
|
@@ -155,12 +155,12 @@ const newMentor = await createMentor({
|
|
|
155
155
|
**Invalidates Cache Tags**: \`['Mentors']\``,
|
|
156
156
|
useEditMentorMutation: `# useEditMentorMutation
|
|
157
157
|
|
|
158
|
-
**Package**: \`@iblai/data-layer\`
|
|
158
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
159
159
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
160
160
|
**Feature**: Mentor Management
|
|
161
161
|
|
|
162
162
|
\`\`\`typescript
|
|
163
|
-
import { useEditMentorMutation } from '@iblai/data-layer';
|
|
163
|
+
import { useEditMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
164
164
|
|
|
165
165
|
const [editMentor, { isLoading }] = useEditMentorMutation();
|
|
166
166
|
|
|
@@ -181,12 +181,12 @@ await editMentor({
|
|
|
181
181
|
**Invalidates Cache Tags**: \`['Mentors', 'MentorDetails']\``,
|
|
182
182
|
useDeleteMentorMutation: `# useDeleteMentorMutation
|
|
183
183
|
|
|
184
|
-
**Package**: \`@iblai/data-layer\`
|
|
184
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
185
185
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
186
186
|
**Feature**: Mentor Management
|
|
187
187
|
|
|
188
188
|
\`\`\`typescript
|
|
189
|
-
import { useDeleteMentorMutation } from '@iblai/data-layer';
|
|
189
|
+
import { useDeleteMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
190
190
|
|
|
191
191
|
const [deleteMentor, { isLoading }] = useDeleteMentorMutation();
|
|
192
192
|
|
|
@@ -200,14 +200,14 @@ await deleteMentor({
|
|
|
200
200
|
**Warning**: This permanently deletes the mentor and all associated data.`,
|
|
201
201
|
useForkMentorMutation: `# useForkMentorMutation
|
|
202
202
|
|
|
203
|
-
**Package**: \`@iblai/data-layer\`
|
|
203
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
204
204
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
205
205
|
**Feature**: Mentor Management
|
|
206
206
|
|
|
207
207
|
Creates a copy of an existing mentor with a new unique ID.
|
|
208
208
|
|
|
209
209
|
\`\`\`typescript
|
|
210
|
-
import { useForkMentorMutation } from '@iblai/data-layer';
|
|
210
|
+
import { useForkMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
211
211
|
|
|
212
212
|
const [forkMentor, { isLoading }] = useForkMentorMutation();
|
|
213
213
|
|
|
@@ -221,12 +221,12 @@ const newMentor = await forkMentor({
|
|
|
221
221
|
**Invalidates Cache Tags**: \`['Mentors']\``,
|
|
222
222
|
useStarMentorMutation: `# useStarMentorMutation
|
|
223
223
|
|
|
224
|
-
**Package**: \`@iblai/data-layer\`
|
|
224
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
225
225
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
226
226
|
**Feature**: Mentor Favorites
|
|
227
227
|
|
|
228
228
|
\`\`\`typescript
|
|
229
|
-
import { useStarMentorMutation } from '@iblai/data-layer';
|
|
229
|
+
import { useStarMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
230
230
|
|
|
231
231
|
const [starMentor, { isLoading }] = useStarMentorMutation();
|
|
232
232
|
|
|
@@ -239,12 +239,12 @@ await starMentor({
|
|
|
239
239
|
**Invalidates Cache Tags**: \`['StarredMentors']\``,
|
|
240
240
|
useUnstarMentorMutation: `# useUnstarMentorMutation
|
|
241
241
|
|
|
242
|
-
**Package**: \`@iblai/data-layer\`
|
|
242
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
243
243
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
244
244
|
**Feature**: Mentor Favorites
|
|
245
245
|
|
|
246
246
|
\`\`\`typescript
|
|
247
|
-
import { useUnstarMentorMutation } from '@iblai/data-layer';
|
|
247
|
+
import { useUnstarMentorMutation } from '@iblai/iblai-js/data-layer';
|
|
248
248
|
|
|
249
249
|
const [unstarMentor, { isLoading }] = useUnstarMentorMutation();
|
|
250
250
|
|
|
@@ -257,12 +257,12 @@ await unstarMentor({
|
|
|
257
257
|
**Invalidates Cache Tags**: \`['StarredMentors']\``,
|
|
258
258
|
useStarredMentorsQuery: `# useStarredMentorsQuery
|
|
259
259
|
|
|
260
|
-
**Package**: \`@iblai/data-layer\`
|
|
260
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
261
261
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
262
262
|
**Feature**: Mentor Favorites
|
|
263
263
|
|
|
264
264
|
\`\`\`typescript
|
|
265
|
-
import { useStarredMentorsQuery } from '@iblai/data-layer';
|
|
265
|
+
import { useStarredMentorsQuery } from '@iblai/iblai-js/data-layer';
|
|
266
266
|
|
|
267
267
|
const { data: starredMentors, isLoading } = useStarredMentorsQuery({
|
|
268
268
|
org: string, // Tenant key
|
|
@@ -275,12 +275,12 @@ const { data: starredMentors, isLoading } = useStarredMentorsQuery({
|
|
|
275
275
|
**Cache Tags**: \`['StarredMentors']\``,
|
|
276
276
|
useGetRecentlyAccessedMentorsQuery: `# useGetRecentlyAccessedMentorsQuery
|
|
277
277
|
|
|
278
|
-
**Package**: \`@iblai/data-layer\`
|
|
278
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
279
279
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
280
280
|
**Feature**: Mentor History
|
|
281
281
|
|
|
282
282
|
\`\`\`typescript
|
|
283
|
-
import { useGetRecentlyAccessedMentorsQuery } from '@iblai/data-layer';
|
|
283
|
+
import { useGetRecentlyAccessedMentorsQuery } from '@iblai/iblai-js/data-layer';
|
|
284
284
|
|
|
285
285
|
const { data: recentMentors, isLoading } = useGetRecentlyAccessedMentorsQuery({
|
|
286
286
|
org: string, // Tenant key
|
|
@@ -292,12 +292,12 @@ const { data: recentMentors, isLoading } = useGetRecentlyAccessedMentorsQuery({
|
|
|
292
292
|
\`\`\``,
|
|
293
293
|
useGetFreeUsageCountQuery: `# useGetFreeUsageCountQuery
|
|
294
294
|
|
|
295
|
-
**Package**: \`@iblai/data-layer\`
|
|
295
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
296
296
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
297
297
|
**Feature**: Subscription/Billing
|
|
298
298
|
|
|
299
299
|
\`\`\`typescript
|
|
300
|
-
import { useGetFreeUsageCountQuery } from '@iblai/data-layer';
|
|
300
|
+
import { useGetFreeUsageCountQuery } from '@iblai/iblai-js/data-layer';
|
|
301
301
|
|
|
302
302
|
const { data, isLoading } = useGetFreeUsageCountQuery({
|
|
303
303
|
org: string, // Tenant key
|
|
@@ -315,14 +315,14 @@ interface FreeUsageCount {
|
|
|
315
315
|
**Used for**: Trial banners, usage limits, subscription prompts`,
|
|
316
316
|
useSeedMentorsMutation: `# useSeedMentorsMutation
|
|
317
317
|
|
|
318
|
-
**Package**: \`@iblai/data-layer\`
|
|
318
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
319
319
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
320
320
|
**Feature**: Tenant Setup
|
|
321
321
|
|
|
322
322
|
Seeds default/template mentors for a new tenant (admin only).
|
|
323
323
|
|
|
324
324
|
\`\`\`typescript
|
|
325
|
-
import { useSeedMentorsMutation } from '@iblai/data-layer';
|
|
325
|
+
import { useSeedMentorsMutation } from '@iblai/iblai-js/data-layer';
|
|
326
326
|
|
|
327
327
|
const [seedMentors, { isLoading }] = useSeedMentorsMutation();
|
|
328
328
|
|
|
@@ -335,12 +335,12 @@ await seedMentors({
|
|
|
335
335
|
**Invalidates Cache Tags**: \`['Mentors']\``,
|
|
336
336
|
useGetModerationLogsQuery: `# useGetModerationLogsQuery
|
|
337
337
|
|
|
338
|
-
**Package**: \`@iblai/data-layer\`
|
|
338
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
339
339
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
340
340
|
**Feature**: Moderation
|
|
341
341
|
|
|
342
342
|
\`\`\`typescript
|
|
343
|
-
import { useGetModerationLogsQuery } from '@iblai/data-layer';
|
|
343
|
+
import { useGetModerationLogsQuery } from '@iblai/iblai-js/data-layer';
|
|
344
344
|
|
|
345
345
|
const { data: logs, isLoading } = useGetModerationLogsQuery({
|
|
346
346
|
org: string, // Tenant key
|
|
@@ -351,34 +351,44 @@ const { data: logs, isLoading } = useGetModerationLogsQuery({
|
|
|
351
351
|
|
|
352
352
|
// Returns moderation logs for content flagging
|
|
353
353
|
\`\`\``,
|
|
354
|
-
|
|
354
|
+
useEditMentorAndRefreshListMutation: `# useEditMentorAndRefreshListMutation
|
|
355
355
|
|
|
356
|
-
**Package**: \`@iblai/data-layer\`
|
|
356
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
357
357
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
358
358
|
**Feature**: Mentor Management
|
|
359
359
|
|
|
360
|
+
Edits mentor settings and automatically refreshes mentor lists. Use this mutation when you need
|
|
361
|
+
the mentor list to update after editing (e.g., toggling featured status).
|
|
362
|
+
|
|
360
363
|
\`\`\`typescript
|
|
361
|
-
import {
|
|
364
|
+
import { useEditMentorAndRefreshListMutation } from '@iblai/iblai-js/data-layer';
|
|
362
365
|
|
|
363
|
-
const [
|
|
366
|
+
const [editMentorAndRefresh, { isLoading }] = useEditMentorAndRefreshListMutation();
|
|
364
367
|
|
|
365
|
-
await
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
368
|
+
await editMentorAndRefresh({
|
|
369
|
+
mentor: string, // Mentor unique ID
|
|
370
|
+
org: string, // Tenant key
|
|
371
|
+
userId: string, // Current user
|
|
372
|
+
formData: {
|
|
373
|
+
featured?: boolean,
|
|
374
|
+
// ... other settings
|
|
375
|
+
},
|
|
369
376
|
}).unwrap();
|
|
370
|
-
|
|
377
|
+
\`\`\`
|
|
378
|
+
|
|
379
|
+
**Cache Tags Invalidated**: \`['mentor', 'mentorSettings', 'mentorPublicSettings']\`
|
|
380
|
+
**Also Invalidates**: Search queries (GET_MENTORS, GET_PERSONNALIZED_MENTORS)`,
|
|
371
381
|
// ============================================================================
|
|
372
382
|
// SHAREABLE LINKS API ENDPOINTS
|
|
373
383
|
// ============================================================================
|
|
374
384
|
useCreateShareableLinkMutation: `# useCreateShareableLinkMutation
|
|
375
385
|
|
|
376
|
-
**Package**: \`@iblai/data-layer\`
|
|
386
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
377
387
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
378
388
|
**Feature**: Mentor Sharing
|
|
379
389
|
|
|
380
390
|
\`\`\`typescript
|
|
381
|
-
import { useCreateShareableLinkMutation } from '@iblai/data-layer';
|
|
391
|
+
import { useCreateShareableLinkMutation } from '@iblai/iblai-js/data-layer';
|
|
382
392
|
|
|
383
393
|
const [createLink, { isLoading }] = useCreateShareableLinkMutation();
|
|
384
394
|
|
|
@@ -393,12 +403,12 @@ const { link, token } = await createLink({
|
|
|
393
403
|
\`\`\``,
|
|
394
404
|
useUpdateShareableLinkMutation: `# useUpdateShareableLinkMutation
|
|
395
405
|
|
|
396
|
-
**Package**: \`@iblai/data-layer\`
|
|
406
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
397
407
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
398
408
|
**Feature**: Mentor Sharing
|
|
399
409
|
|
|
400
410
|
\`\`\`typescript
|
|
401
|
-
import { useUpdateShareableLinkMutation } from '@iblai/data-layer';
|
|
411
|
+
import { useUpdateShareableLinkMutation } from '@iblai/iblai-js/data-layer';
|
|
402
412
|
|
|
403
413
|
const [updateLink, { isLoading }] = useUpdateShareableLinkMutation();
|
|
404
414
|
|
|
@@ -411,12 +421,12 @@ await updateLink({
|
|
|
411
421
|
\`\`\``,
|
|
412
422
|
useRevokeShareableLinkMutation: `# useRevokeShareableLinkMutation
|
|
413
423
|
|
|
414
|
-
**Package**: \`@iblai/data-layer\`
|
|
424
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
415
425
|
**File**: \`packages/data-layer/src/features/mentor/api-slice.ts\`
|
|
416
426
|
**Feature**: Mentor Sharing
|
|
417
427
|
|
|
418
428
|
\`\`\`typescript
|
|
419
|
-
import { useRevokeShareableLinkMutation } from '@iblai/data-layer';
|
|
429
|
+
import { useRevokeShareableLinkMutation } from '@iblai/iblai-js/data-layer';
|
|
420
430
|
|
|
421
431
|
const [revokeLink, { isLoading }] = useRevokeShareableLinkMutation();
|
|
422
432
|
|
|
@@ -431,12 +441,12 @@ await revokeLink({
|
|
|
431
441
|
// ============================================================================
|
|
432
442
|
useGetUserMetadataQuery: `# useGetUserMetadataQuery
|
|
433
443
|
|
|
434
|
-
**Package**: \`@iblai/data-layer\`
|
|
444
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
435
445
|
**File**: \`packages/data-layer/src/features/user/api-slice.ts\`
|
|
436
446
|
**Feature**: User Profile
|
|
437
447
|
|
|
438
448
|
\`\`\`typescript
|
|
439
|
-
import { useGetUserMetadataQuery } from '@iblai/data-layer';
|
|
449
|
+
import { useGetUserMetadataQuery } from '@iblai/iblai-js/data-layer';
|
|
440
450
|
|
|
441
451
|
const { data: user, isLoading, error } = useGetUserMetadataQuery({
|
|
442
452
|
params: { username: string },
|
|
@@ -468,12 +478,12 @@ interface UserProfile {
|
|
|
468
478
|
**Cache Tags**: \`['UserMetadata', username]\``,
|
|
469
479
|
useUpdateUserMetadataMutation: `# useUpdateUserMetadataMutation
|
|
470
480
|
|
|
471
|
-
**Package**: \`@iblai/data-layer\`
|
|
481
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
472
482
|
**File**: \`packages/data-layer/src/features/user/api-slice.ts\`
|
|
473
483
|
**Feature**: User Profile
|
|
474
484
|
|
|
475
485
|
\`\`\`typescript
|
|
476
|
-
import { useUpdateUserMetadataMutation } from '@iblai/data-layer';
|
|
486
|
+
import { useUpdateUserMetadataMutation } from '@iblai/iblai-js/data-layer';
|
|
477
487
|
|
|
478
488
|
const [updateUser, { isLoading }] = useUpdateUserMetadataMutation();
|
|
479
489
|
|
|
@@ -493,12 +503,12 @@ await updateUser({
|
|
|
493
503
|
**Invalidates Cache Tags**: \`['UserMetadata']\``,
|
|
494
504
|
useUpdateUserAccountMutation: `# useUpdateUserAccountMutation
|
|
495
505
|
|
|
496
|
-
**Package**: \`@iblai/data-layer\`
|
|
506
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
497
507
|
**File**: \`packages/data-layer/src/features/user/api-slice.ts\`
|
|
498
508
|
**Feature**: User Account
|
|
499
509
|
|
|
500
510
|
\`\`\`typescript
|
|
501
|
-
import { useUpdateUserAccountMutation } from '@iblai/data-layer';
|
|
511
|
+
import { useUpdateUserAccountMutation } from '@iblai/iblai-js/data-layer';
|
|
502
512
|
|
|
503
513
|
const [updateAccount, { isLoading }] = useUpdateUserAccountMutation();
|
|
504
514
|
|
|
@@ -510,12 +520,12 @@ await updateAccount({
|
|
|
510
520
|
\`\`\``,
|
|
511
521
|
useResetPasswordMutation: `# useResetPasswordMutation
|
|
512
522
|
|
|
513
|
-
**Package**: \`@iblai/data-layer\`
|
|
523
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
514
524
|
**File**: \`packages/data-layer/src/features/user/api-slice.ts\`
|
|
515
525
|
**Feature**: Authentication
|
|
516
526
|
|
|
517
527
|
\`\`\`typescript
|
|
518
|
-
import { useResetPasswordMutation } from '@iblai/data-layer';
|
|
528
|
+
import { useResetPasswordMutation } from '@iblai/iblai-js/data-layer';
|
|
519
529
|
|
|
520
530
|
const [resetPassword, { isLoading, isSuccess }] = useResetPasswordMutation();
|
|
521
531
|
|
|
@@ -527,12 +537,12 @@ await resetPassword({
|
|
|
527
537
|
\`\`\``,
|
|
528
538
|
useUploadProfileImageMutation: `# useUploadProfileImageMutation
|
|
529
539
|
|
|
530
|
-
**Package**: \`@iblai/data-layer\`
|
|
540
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
531
541
|
**File**: \`packages/data-layer/src/features/user/api-slice.ts\`
|
|
532
542
|
**Feature**: User Profile
|
|
533
543
|
|
|
534
544
|
\`\`\`typescript
|
|
535
|
-
import { useUploadProfileImageMutation } from '@iblai/data-layer';
|
|
545
|
+
import { useUploadProfileImageMutation } from '@iblai/iblai-js/data-layer';
|
|
536
546
|
|
|
537
547
|
const [uploadImage, { isLoading }] = useUploadProfileImageMutation();
|
|
538
548
|
|
|
@@ -547,12 +557,12 @@ const { url } = await uploadImage({
|
|
|
547
557
|
**Invalidates Cache Tags**: \`['UserMetadata']\``,
|
|
548
558
|
useRemoveProfileImageMutation: `# useRemoveProfileImageMutation
|
|
549
559
|
|
|
550
|
-
**Package**: \`@iblai/data-layer\`
|
|
560
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
551
561
|
**File**: \`packages/data-layer/src/features/user/api-slice.ts\`
|
|
552
562
|
**Feature**: User Profile
|
|
553
563
|
|
|
554
564
|
\`\`\`typescript
|
|
555
|
-
import { useRemoveProfileImageMutation } from '@iblai/data-layer';
|
|
565
|
+
import { useRemoveProfileImageMutation } from '@iblai/iblai-js/data-layer';
|
|
556
566
|
|
|
557
567
|
const [removeImage, { isLoading }] = useRemoveProfileImageMutation();
|
|
558
568
|
|
|
@@ -564,12 +574,12 @@ await removeImage({
|
|
|
564
574
|
**Invalidates Cache Tags**: \`['UserMetadata']\``,
|
|
565
575
|
useUpdateUserRoleMutation: `# useUpdateUserRoleMutation
|
|
566
576
|
|
|
567
|
-
**Package**: \`@iblai/data-layer\`
|
|
577
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
568
578
|
**File**: \`packages/data-layer/src/features/user/api-slice.ts\`
|
|
569
579
|
**Feature**: User Management
|
|
570
580
|
|
|
571
581
|
\`\`\`typescript
|
|
572
|
-
import { useUpdateUserRoleMutation } from '@iblai/data-layer';
|
|
582
|
+
import { useUpdateUserRoleMutation } from '@iblai/iblai-js/data-layer';
|
|
573
583
|
|
|
574
584
|
const [updateRole, { isLoading }] = useUpdateUserRoleMutation();
|
|
575
585
|
|
|
@@ -583,12 +593,12 @@ await updateRole({
|
|
|
583
593
|
// ============================================================================
|
|
584
594
|
useGetPlatformUsersQuery: `# useGetPlatformUsersQuery
|
|
585
595
|
|
|
586
|
-
**Package**: \`@iblai/data-layer\`
|
|
596
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
587
597
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
588
598
|
**Feature**: Platform Administration
|
|
589
599
|
|
|
590
600
|
\`\`\`typescript
|
|
591
|
-
import { useGetPlatformUsersQuery } from '@iblai/data-layer';
|
|
601
|
+
import { useGetPlatformUsersQuery } from '@iblai/iblai-js/data-layer';
|
|
592
602
|
|
|
593
603
|
const { data, isLoading, error } = useGetPlatformUsersQuery({
|
|
594
604
|
platformKey: string, // Tenant key
|
|
@@ -621,12 +631,12 @@ interface PlatformUser {
|
|
|
621
631
|
**Cache Tags**: \`['PlatformUsers']\``,
|
|
622
632
|
usePlatformUserGroupsQuery: `# usePlatformUserGroupsQuery
|
|
623
633
|
|
|
624
|
-
**Package**: \`@iblai/data-layer\`
|
|
634
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
625
635
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
626
636
|
**Feature**: Team Management
|
|
627
637
|
|
|
628
638
|
\`\`\`typescript
|
|
629
|
-
import { usePlatformUserGroupsQuery } from '@iblai/data-layer';
|
|
639
|
+
import { usePlatformUserGroupsQuery } from '@iblai/iblai-js/data-layer';
|
|
630
640
|
|
|
631
641
|
const { data: groups, isLoading } = usePlatformUserGroupsQuery({
|
|
632
642
|
platformKey: string,
|
|
@@ -648,12 +658,12 @@ interface PlatformUserGroup {
|
|
|
648
658
|
**Cache Tags**: \`['PlatformUserGroups']\``,
|
|
649
659
|
useGetPlatformUserGroupDetailsQuery: `# useGetPlatformUserGroupDetailsQuery
|
|
650
660
|
|
|
651
|
-
**Package**: \`@iblai/data-layer\`
|
|
661
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
652
662
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
653
663
|
**Feature**: Team Management
|
|
654
664
|
|
|
655
665
|
\`\`\`typescript
|
|
656
|
-
import { useGetPlatformUserGroupDetailsQuery } from '@iblai/data-layer';
|
|
666
|
+
import { useGetPlatformUserGroupDetailsQuery } from '@iblai/iblai-js/data-layer';
|
|
657
667
|
|
|
658
668
|
const { data: group, isLoading } = useGetPlatformUserGroupDetailsQuery({
|
|
659
669
|
id: number, // Group ID
|
|
@@ -672,12 +682,12 @@ interface PlatformUserGroupDetailsResponse {
|
|
|
672
682
|
\`\`\``,
|
|
673
683
|
useCreatePlatformUserGroupMutation: `# useCreatePlatformUserGroupMutation
|
|
674
684
|
|
|
675
|
-
**Package**: \`@iblai/data-layer\`
|
|
685
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
676
686
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
677
687
|
**Feature**: Team Management
|
|
678
688
|
|
|
679
689
|
\`\`\`typescript
|
|
680
|
-
import { useCreatePlatformUserGroupMutation } from '@iblai/data-layer';
|
|
690
|
+
import { useCreatePlatformUserGroupMutation } from '@iblai/iblai-js/data-layer';
|
|
681
691
|
|
|
682
692
|
const [createGroup, { isLoading }] = useCreatePlatformUserGroupMutation();
|
|
683
693
|
|
|
@@ -691,12 +701,12 @@ const newGroup = await createGroup({
|
|
|
691
701
|
**Invalidates Cache Tags**: \`['PlatformUserGroups']\``,
|
|
692
702
|
useUpdatePlatformUserGroupMutation: `# useUpdatePlatformUserGroupMutation
|
|
693
703
|
|
|
694
|
-
**Package**: \`@iblai/data-layer\`
|
|
704
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
695
705
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
696
706
|
**Feature**: Team Management
|
|
697
707
|
|
|
698
708
|
\`\`\`typescript
|
|
699
|
-
import { useUpdatePlatformUserGroupMutation } from '@iblai/data-layer';
|
|
709
|
+
import { useUpdatePlatformUserGroupMutation } from '@iblai/iblai-js/data-layer';
|
|
700
710
|
|
|
701
711
|
const [updateGroup, { isLoading }] = useUpdatePlatformUserGroupMutation();
|
|
702
712
|
|
|
@@ -711,12 +721,12 @@ await updateGroup({
|
|
|
711
721
|
**Invalidates Cache Tags**: \`['PlatformUserGroups']\``,
|
|
712
722
|
useDeletePlatformUserGroupMutation: `# useDeletePlatformUserGroupMutation
|
|
713
723
|
|
|
714
|
-
**Package**: \`@iblai/data-layer\`
|
|
724
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
715
725
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
716
726
|
**Feature**: Team Management
|
|
717
727
|
|
|
718
728
|
\`\`\`typescript
|
|
719
|
-
import { useDeletePlatformUserGroupMutation } from '@iblai/data-layer';
|
|
729
|
+
import { useDeletePlatformUserGroupMutation } from '@iblai/iblai-js/data-layer';
|
|
720
730
|
|
|
721
731
|
const [deleteGroup, { isLoading }] = useDeletePlatformUserGroupMutation();
|
|
722
732
|
|
|
@@ -729,12 +739,12 @@ await deleteGroup({
|
|
|
729
739
|
**Invalidates Cache Tags**: \`['PlatformUserGroups']\``,
|
|
730
740
|
useInviteUserMutation: `# useInviteUserMutation
|
|
731
741
|
|
|
732
|
-
**Package**: \`@iblai/data-layer\`
|
|
742
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
733
743
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
734
744
|
**Feature**: User Invitations
|
|
735
745
|
|
|
736
746
|
\`\`\`typescript
|
|
737
|
-
import { useInviteUserMutation } from '@iblai/data-layer';
|
|
747
|
+
import { useInviteUserMutation } from '@iblai/iblai-js/data-layer';
|
|
738
748
|
|
|
739
749
|
const [inviteUser, { isLoading, isSuccess }] = useInviteUserMutation();
|
|
740
750
|
|
|
@@ -750,12 +760,12 @@ await inviteUser({
|
|
|
750
760
|
**Sends invitation email to user**`,
|
|
751
761
|
useUpdatePlatformUserRoleWithPoliciesMutation: `# useUpdatePlatformUserRoleWithPoliciesMutation
|
|
752
762
|
|
|
753
|
-
**Package**: \`@iblai/data-layer\`
|
|
763
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
754
764
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
755
765
|
**Feature**: Platform Administration
|
|
756
766
|
|
|
757
767
|
\`\`\`typescript
|
|
758
|
-
import { useUpdatePlatformUserRoleWithPoliciesMutation } from '@iblai/data-layer';
|
|
768
|
+
import { useUpdatePlatformUserRoleWithPoliciesMutation } from '@iblai/iblai-js/data-layer';
|
|
759
769
|
|
|
760
770
|
const [updateRole, { isLoading }] = useUpdatePlatformUserRoleWithPoliciesMutation();
|
|
761
771
|
|
|
@@ -770,12 +780,12 @@ await updateRole({
|
|
|
770
780
|
**Invalidates Cache Tags**: \`['PlatformUsers']\``,
|
|
771
781
|
usePlatformInvitationsQuery: `# usePlatformInvitationsQuery
|
|
772
782
|
|
|
773
|
-
**Package**: \`@iblai/data-layer\`
|
|
783
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
774
784
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
775
785
|
**Feature**: User Invitations
|
|
776
786
|
|
|
777
787
|
\`\`\`typescript
|
|
778
|
-
import { usePlatformInvitationsQuery } from '@iblai/data-layer';
|
|
788
|
+
import { usePlatformInvitationsQuery } from '@iblai/iblai-js/data-layer';
|
|
779
789
|
|
|
780
790
|
const { data: invitations, isLoading } = usePlatformInvitationsQuery({
|
|
781
791
|
platformKey: string,
|
|
@@ -786,12 +796,12 @@ const { data: invitations, isLoading } = usePlatformInvitationsQuery({
|
|
|
786
796
|
\`\`\``,
|
|
787
797
|
useUsersGradesPassedQuery: `# useUsersGradesPassedQuery
|
|
788
798
|
|
|
789
|
-
**Package**: \`@iblai/data-layer\`
|
|
799
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
790
800
|
**File**: \`packages/data-layer/src/features/platform/api-slice.ts\`
|
|
791
801
|
**Feature**: Learning Analytics
|
|
792
802
|
|
|
793
803
|
\`\`\`typescript
|
|
794
|
-
import { useUsersGradesPassedQuery } from '@iblai/data-layer';
|
|
804
|
+
import { useUsersGradesPassedQuery } from '@iblai/iblai-js/data-layer';
|
|
795
805
|
|
|
796
806
|
const { data, isLoading } = useUsersGradesPassedQuery({
|
|
797
807
|
platformKey: string,
|
|
@@ -805,12 +815,12 @@ const { data, isLoading } = useUsersGradesPassedQuery({
|
|
|
805
815
|
// ============================================================================
|
|
806
816
|
useGetTenantMetadataQuery: `# useGetTenantMetadataQuery
|
|
807
817
|
|
|
808
|
-
**Package**: \`@iblai/data-layer\`
|
|
818
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
809
819
|
**File**: \`packages/data-layer/src/features/tenant/api-slice.ts\`
|
|
810
820
|
**Feature**: Tenant Configuration
|
|
811
821
|
|
|
812
822
|
\`\`\`typescript
|
|
813
|
-
import { useGetTenantMetadataQuery } from '@iblai/data-layer';
|
|
823
|
+
import { useGetTenantMetadataQuery } from '@iblai/iblai-js/data-layer';
|
|
814
824
|
|
|
815
825
|
const { data: metadata, isLoading } = useGetTenantMetadataQuery({
|
|
816
826
|
org: string, // Tenant key
|
|
@@ -843,12 +853,12 @@ interface TenantMetadata {
|
|
|
843
853
|
**Cache Tags**: \`['TenantMetadata', org]\``,
|
|
844
854
|
useUpdateTenantMetadataMutation: `# useUpdateTenantMetadataMutation
|
|
845
855
|
|
|
846
|
-
**Package**: \`@iblai/data-layer\`
|
|
856
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
847
857
|
**File**: \`packages/data-layer/src/features/tenant/api-slice.ts\`
|
|
848
858
|
**Feature**: Tenant Configuration
|
|
849
859
|
|
|
850
860
|
\`\`\`typescript
|
|
851
|
-
import { useUpdateTenantMetadataMutation } from '@iblai/data-layer';
|
|
861
|
+
import { useUpdateTenantMetadataMutation } from '@iblai/iblai-js/data-layer';
|
|
852
862
|
|
|
853
863
|
const [updateMetadata, { isLoading }] = useUpdateTenantMetadataMutation();
|
|
854
864
|
|
|
@@ -865,12 +875,12 @@ await updateMetadata({
|
|
|
865
875
|
**Requires**: Admin permissions`,
|
|
866
876
|
useGetUserTenantsQuery: `# useGetUserTenantsQuery
|
|
867
877
|
|
|
868
|
-
**Package**: \`@iblai/data-layer\`
|
|
878
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
869
879
|
**File**: \`packages/data-layer/src/features/tenant/api-slice.ts\`
|
|
870
880
|
**Feature**: Multi-tenancy
|
|
871
881
|
|
|
872
882
|
\`\`\`typescript
|
|
873
|
-
import { useGetUserTenantsQuery } from '@iblai/data-layer';
|
|
883
|
+
import { useGetUserTenantsQuery } from '@iblai/iblai-js/data-layer';
|
|
874
884
|
|
|
875
885
|
const { data: tenants, isLoading } = useGetUserTenantsQuery();
|
|
876
886
|
|
|
@@ -891,12 +901,12 @@ interface Tenant {
|
|
|
891
901
|
// ============================================================================
|
|
892
902
|
useGetRbacGroupsQuery: `# useGetRbacGroupsQuery
|
|
893
903
|
|
|
894
|
-
**Package**: \`@iblai/data-layer\`
|
|
904
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
895
905
|
**File**: \`packages/data-layer/src/features/core/api-slice.ts\`
|
|
896
906
|
**Feature**: RBAC (Role-Based Access Control)
|
|
897
907
|
|
|
898
908
|
\`\`\`typescript
|
|
899
|
-
import { useGetRbacGroupsQuery } from '@iblai/data-layer';
|
|
909
|
+
import { useGetRbacGroupsQuery } from '@iblai/iblai-js/data-layer';
|
|
900
910
|
|
|
901
911
|
const { data: groups, isLoading } = useGetRbacGroupsQuery({
|
|
902
912
|
platformKey: string,
|
|
@@ -913,12 +923,12 @@ interface RbacGroup {
|
|
|
913
923
|
\`\`\``,
|
|
914
924
|
useGetRbacPermissionsQuery: `# useGetRbacPermissionsQuery
|
|
915
925
|
|
|
916
|
-
**Package**: \`@iblai/data-layer\`
|
|
926
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
917
927
|
**File**: \`packages/data-layer/src/features/core/api-slice.ts\`
|
|
918
928
|
**Feature**: RBAC (Role-Based Access Control)
|
|
919
929
|
|
|
920
930
|
\`\`\`typescript
|
|
921
|
-
import { useGetRbacPermissionsQuery } from '@iblai/data-layer';
|
|
931
|
+
import { useGetRbacPermissionsQuery } from '@iblai/iblai-js/data-layer';
|
|
922
932
|
|
|
923
933
|
const { data: permissions, isLoading } = useGetRbacPermissionsQuery({
|
|
924
934
|
platformKey: string,
|
|
@@ -929,12 +939,12 @@ const { data: permissions, isLoading } = useGetRbacPermissionsQuery({
|
|
|
929
939
|
\`\`\``,
|
|
930
940
|
useGetRedirectTokenQuery: `# useGetRedirectTokenQuery
|
|
931
941
|
|
|
932
|
-
**Package**: \`@iblai/data-layer\`
|
|
942
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
933
943
|
**File**: \`packages/data-layer/src/features/core/api-slice.ts\`
|
|
934
944
|
**Feature**: Authentication
|
|
935
945
|
|
|
936
946
|
\`\`\`typescript
|
|
937
|
-
import { useGetRedirectTokenQuery } from '@iblai/data-layer';
|
|
947
|
+
import { useGetRedirectTokenQuery } from '@iblai/iblai-js/data-layer';
|
|
938
948
|
|
|
939
949
|
const { data, isLoading } = useGetRedirectTokenQuery({
|
|
940
950
|
platformKey: string,
|
|
@@ -944,12 +954,12 @@ const { data, isLoading } = useGetRedirectTokenQuery({
|
|
|
944
954
|
\`\`\``,
|
|
945
955
|
useGetPlatformInfoQuery: `# useGetPlatformInfoQuery
|
|
946
956
|
|
|
947
|
-
**Package**: \`@iblai/data-layer\`
|
|
957
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
948
958
|
**File**: \`packages/data-layer/src/features/core/api-slice.ts\`
|
|
949
959
|
**Feature**: Platform Info
|
|
950
960
|
|
|
951
961
|
\`\`\`typescript
|
|
952
|
-
import { useGetPlatformInfoQuery } from '@iblai/data-layer';
|
|
962
|
+
import { useGetPlatformInfoQuery } from '@iblai/iblai-js/data-layer';
|
|
953
963
|
|
|
954
964
|
const { data: info, isLoading } = useGetPlatformInfoQuery({
|
|
955
965
|
platformKey: string,
|
|
@@ -959,12 +969,12 @@ const { data: info, isLoading } = useGetPlatformInfoQuery({
|
|
|
959
969
|
\`\`\``,
|
|
960
970
|
useGetUserStatusQuery: `# useGetUserStatusQuery
|
|
961
971
|
|
|
962
|
-
**Package**: \`@iblai/data-layer\`
|
|
972
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
963
973
|
**File**: \`packages/data-layer/src/features/core/api-slice.ts\`
|
|
964
974
|
**Feature**: User Status
|
|
965
975
|
|
|
966
976
|
\`\`\`typescript
|
|
967
|
-
import { useGetUserStatusQuery } from '@iblai/data-layer';
|
|
977
|
+
import { useGetUserStatusQuery } from '@iblai/iblai-js/data-layer';
|
|
968
978
|
|
|
969
979
|
const { data: status, isLoading } = useGetUserStatusQuery({
|
|
970
980
|
platformKey: string,
|
|
@@ -974,12 +984,12 @@ const { data: status, isLoading } = useGetUserStatusQuery({
|
|
|
974
984
|
\`\`\``,
|
|
975
985
|
useGetStudentMentorCreationStatusQuery: `# useGetStudentMentorCreationStatusQuery
|
|
976
986
|
|
|
977
|
-
**Package**: \`@iblai/data-layer\`
|
|
987
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
978
988
|
**File**: \`packages/data-layer/src/features/core/api-slice.ts\`
|
|
979
989
|
**Feature**: Mentor Creation
|
|
980
990
|
|
|
981
991
|
\`\`\`typescript
|
|
982
|
-
import { useGetStudentMentorCreationStatusQuery } from '@iblai/data-layer';
|
|
992
|
+
import { useGetStudentMentorCreationStatusQuery } from '@iblai/iblai-js/data-layer';
|
|
983
993
|
|
|
984
994
|
const { data, isLoading } = useGetStudentMentorCreationStatusQuery({
|
|
985
995
|
platformKey: string,
|
|
@@ -992,12 +1002,12 @@ const { data, isLoading } = useGetStudentMentorCreationStatusQuery({
|
|
|
992
1002
|
// ============================================================================
|
|
993
1003
|
useGetMemoriesQuery: `# useGetMemoriesQuery
|
|
994
1004
|
|
|
995
|
-
**Package**: \`@iblai/data-layer\`
|
|
1005
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
996
1006
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
997
1007
|
**Feature**: Mentor Memory/RAG
|
|
998
1008
|
|
|
999
1009
|
\`\`\`typescript
|
|
1000
|
-
import { useGetMemoriesQuery } from '@iblai/data-layer';
|
|
1010
|
+
import { useGetMemoriesQuery } from '@iblai/iblai-js/data-layer';
|
|
1001
1011
|
|
|
1002
1012
|
const { data: memories, isLoading } = useGetMemoriesQuery({
|
|
1003
1013
|
org: string,
|
|
@@ -1023,12 +1033,12 @@ interface Memory {
|
|
|
1023
1033
|
\`\`\``,
|
|
1024
1034
|
useGetMemoryCategoriesQuery: `# useGetMemoryCategoriesQuery
|
|
1025
1035
|
|
|
1026
|
-
**Package**: \`@iblai/data-layer\`
|
|
1036
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1027
1037
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
1028
1038
|
**Feature**: Mentor Memory/RAG
|
|
1029
1039
|
|
|
1030
1040
|
\`\`\`typescript
|
|
1031
|
-
import { useGetMemoryCategoriesQuery } from '@iblai/data-layer';
|
|
1041
|
+
import { useGetMemoryCategoriesQuery } from '@iblai/iblai-js/data-layer';
|
|
1032
1042
|
|
|
1033
1043
|
const { data: categories, isLoading } = useGetMemoryCategoriesQuery({
|
|
1034
1044
|
org: string,
|
|
@@ -1039,12 +1049,12 @@ const { data: categories, isLoading } = useGetMemoryCategoriesQuery({
|
|
|
1039
1049
|
\`\`\``,
|
|
1040
1050
|
useCreateMemoryMutation: `# useCreateMemoryMutation
|
|
1041
1051
|
|
|
1042
|
-
**Package**: \`@iblai/data-layer\`
|
|
1052
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1043
1053
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
1044
1054
|
**Feature**: Mentor Memory/RAG
|
|
1045
1055
|
|
|
1046
1056
|
\`\`\`typescript
|
|
1047
|
-
import { useCreateMemoryMutation } from '@iblai/data-layer';
|
|
1057
|
+
import { useCreateMemoryMutation } from '@iblai/iblai-js/data-layer';
|
|
1048
1058
|
|
|
1049
1059
|
const [createMemory, { isLoading }] = useCreateMemoryMutation();
|
|
1050
1060
|
|
|
@@ -1057,12 +1067,12 @@ const newMemory = await createMemory({
|
|
|
1057
1067
|
\`\`\``,
|
|
1058
1068
|
useUpdateMemoryEntryMutation: `# useUpdateMemoryEntryMutation
|
|
1059
1069
|
|
|
1060
|
-
**Package**: \`@iblai/data-layer\`
|
|
1070
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1061
1071
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
1062
1072
|
**Feature**: Mentor Memory/RAG
|
|
1063
1073
|
|
|
1064
1074
|
\`\`\`typescript
|
|
1065
|
-
import { useUpdateMemoryEntryMutation } from '@iblai/data-layer';
|
|
1075
|
+
import { useUpdateMemoryEntryMutation } from '@iblai/iblai-js/data-layer';
|
|
1066
1076
|
|
|
1067
1077
|
const [updateMemory, { isLoading }] = useUpdateMemoryEntryMutation();
|
|
1068
1078
|
|
|
@@ -1076,12 +1086,12 @@ await updateMemory({
|
|
|
1076
1086
|
\`\`\``,
|
|
1077
1087
|
useDeleteMemoryMutation: `# useDeleteMemoryMutation
|
|
1078
1088
|
|
|
1079
|
-
**Package**: \`@iblai/data-layer\`
|
|
1089
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1080
1090
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
1081
1091
|
**Feature**: Mentor Memory/RAG
|
|
1082
1092
|
|
|
1083
1093
|
\`\`\`typescript
|
|
1084
|
-
import { useDeleteMemoryMutation } from '@iblai/data-layer';
|
|
1094
|
+
import { useDeleteMemoryMutation } from '@iblai/iblai-js/data-layer';
|
|
1085
1095
|
|
|
1086
1096
|
const [deleteMemory, { isLoading }] = useDeleteMemoryMutation();
|
|
1087
1097
|
|
|
@@ -1093,12 +1103,12 @@ await deleteMemory({
|
|
|
1093
1103
|
\`\`\``,
|
|
1094
1104
|
useGetMentorUserSettingsQuery: `# useGetMentorUserSettingsQuery
|
|
1095
1105
|
|
|
1096
|
-
**Package**: \`@iblai/data-layer\`
|
|
1106
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1097
1107
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
1098
1108
|
**Feature**: User Preferences
|
|
1099
1109
|
|
|
1100
1110
|
\`\`\`typescript
|
|
1101
|
-
import { useGetMentorUserSettingsQuery } from '@iblai/data-layer';
|
|
1111
|
+
import { useGetMentorUserSettingsQuery } from '@iblai/iblai-js/data-layer';
|
|
1102
1112
|
|
|
1103
1113
|
const { data: settings, isLoading } = useGetMentorUserSettingsQuery({
|
|
1104
1114
|
org: string,
|
|
@@ -1109,12 +1119,12 @@ const { data: settings, isLoading } = useGetMentorUserSettingsQuery({
|
|
|
1109
1119
|
\`\`\``,
|
|
1110
1120
|
useUpdateMentorUserSettingsMutation: `# useUpdateMentorUserSettingsMutation
|
|
1111
1121
|
|
|
1112
|
-
**Package**: \`@iblai/data-layer\`
|
|
1122
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1113
1123
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
1114
1124
|
**Feature**: User Preferences
|
|
1115
1125
|
|
|
1116
1126
|
\`\`\`typescript
|
|
1117
|
-
import { useUpdateMentorUserSettingsMutation } from '@iblai/data-layer';
|
|
1127
|
+
import { useUpdateMentorUserSettingsMutation } from '@iblai/iblai-js/data-layer';
|
|
1118
1128
|
|
|
1119
1129
|
const [updateSettings, { isLoading }] = useUpdateMentorUserSettingsMutation();
|
|
1120
1130
|
|
|
@@ -1126,12 +1136,12 @@ await updateSettings({
|
|
|
1126
1136
|
\`\`\``,
|
|
1127
1137
|
useGetMemoryFiltersQuery: `# useGetMemoryFiltersQuery
|
|
1128
1138
|
|
|
1129
|
-
**Package**: \`@iblai/data-layer\`
|
|
1139
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1130
1140
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
1131
1141
|
**Feature**: Mentor Memory/RAG
|
|
1132
1142
|
|
|
1133
1143
|
\`\`\`typescript
|
|
1134
|
-
import { useGetMemoryFiltersQuery } from '@iblai/data-layer';
|
|
1144
|
+
import { useGetMemoryFiltersQuery } from '@iblai/iblai-js/data-layer';
|
|
1135
1145
|
|
|
1136
1146
|
const { data: filters, isLoading } = useGetMemoryFiltersQuery({
|
|
1137
1147
|
org: string,
|
|
@@ -1142,12 +1152,12 @@ const { data: filters, isLoading } = useGetMemoryFiltersQuery({
|
|
|
1142
1152
|
\`\`\``,
|
|
1143
1153
|
useGetFilteredMemoriesQuery: `# useGetFilteredMemoriesQuery
|
|
1144
1154
|
|
|
1145
|
-
**Package**: \`@iblai/data-layer\`
|
|
1155
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1146
1156
|
**File**: \`packages/data-layer/src/features/memory/api-slice.ts\`
|
|
1147
1157
|
**Feature**: Mentor Memory/RAG
|
|
1148
1158
|
|
|
1149
1159
|
\`\`\`typescript
|
|
1150
|
-
import { useGetFilteredMemoriesQuery } from '@iblai/data-layer';
|
|
1160
|
+
import { useGetFilteredMemoriesQuery } from '@iblai/iblai-js/data-layer';
|
|
1151
1161
|
|
|
1152
1162
|
const { data: memories, isLoading } = useGetFilteredMemoriesQuery({
|
|
1153
1163
|
org: string,
|
|
@@ -1162,12 +1172,12 @@ const { data: memories, isLoading } = useGetFilteredMemoriesQuery({
|
|
|
1162
1172
|
// ============================================================================
|
|
1163
1173
|
useGetMCPServersQuery: `# useGetMCPServersQuery
|
|
1164
1174
|
|
|
1165
|
-
**Package**: \`@iblai/data-layer\`
|
|
1175
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1166
1176
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1167
1177
|
**Feature**: Model Context Protocol
|
|
1168
1178
|
|
|
1169
1179
|
\`\`\`typescript
|
|
1170
|
-
import { useGetMCPServersQuery } from '@iblai/data-layer';
|
|
1180
|
+
import { useGetMCPServersQuery } from '@iblai/iblai-js/data-layer';
|
|
1171
1181
|
|
|
1172
1182
|
const { data: servers, isLoading } = useGetMCPServersQuery({
|
|
1173
1183
|
org: string,
|
|
@@ -1185,12 +1195,12 @@ interface MCPServer {
|
|
|
1185
1195
|
\`\`\``,
|
|
1186
1196
|
useCreateMCPServerMutation: `# useCreateMCPServerMutation
|
|
1187
1197
|
|
|
1188
|
-
**Package**: \`@iblai/data-layer\`
|
|
1198
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1189
1199
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1190
1200
|
**Feature**: Model Context Protocol
|
|
1191
1201
|
|
|
1192
1202
|
\`\`\`typescript
|
|
1193
|
-
import { useCreateMCPServerMutation } from '@iblai/data-layer';
|
|
1203
|
+
import { useCreateMCPServerMutation } from '@iblai/iblai-js/data-layer';
|
|
1194
1204
|
|
|
1195
1205
|
const [createServer, { isLoading }] = useCreateMCPServerMutation();
|
|
1196
1206
|
|
|
@@ -1204,12 +1214,12 @@ const server = await createServer({
|
|
|
1204
1214
|
\`\`\``,
|
|
1205
1215
|
useUpdateMCPServerMutation: `# useUpdateMCPServerMutation
|
|
1206
1216
|
|
|
1207
|
-
**Package**: \`@iblai/data-layer\`
|
|
1217
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1208
1218
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1209
1219
|
**Feature**: Model Context Protocol
|
|
1210
1220
|
|
|
1211
1221
|
\`\`\`typescript
|
|
1212
|
-
import { useUpdateMCPServerMutation } from '@iblai/data-layer';
|
|
1222
|
+
import { useUpdateMCPServerMutation } from '@iblai/iblai-js/data-layer';
|
|
1213
1223
|
|
|
1214
1224
|
const [updateServer, { isLoading }] = useUpdateMCPServerMutation();
|
|
1215
1225
|
|
|
@@ -1222,12 +1232,12 @@ await updateServer({
|
|
|
1222
1232
|
\`\`\``,
|
|
1223
1233
|
useDeleteMCPServerMutation: `# useDeleteMCPServerMutation
|
|
1224
1234
|
|
|
1225
|
-
**Package**: \`@iblai/data-layer\`
|
|
1235
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1226
1236
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1227
1237
|
**Feature**: Model Context Protocol
|
|
1228
1238
|
|
|
1229
1239
|
\`\`\`typescript
|
|
1230
|
-
import { useDeleteMCPServerMutation } from '@iblai/data-layer';
|
|
1240
|
+
import { useDeleteMCPServerMutation } from '@iblai/iblai-js/data-layer';
|
|
1231
1241
|
|
|
1232
1242
|
const [deleteServer, { isLoading }] = useDeleteMCPServerMutation();
|
|
1233
1243
|
|
|
@@ -1238,12 +1248,12 @@ await deleteServer({
|
|
|
1238
1248
|
\`\`\``,
|
|
1239
1249
|
useGetOAuthServicesQuery: `# useGetOAuthServicesQuery
|
|
1240
1250
|
|
|
1241
|
-
**Package**: \`@iblai/data-layer\`
|
|
1251
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1242
1252
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1243
1253
|
**Feature**: OAuth Integration
|
|
1244
1254
|
|
|
1245
1255
|
\`\`\`typescript
|
|
1246
|
-
import { useGetOAuthServicesQuery } from '@iblai/data-layer';
|
|
1256
|
+
import { useGetOAuthServicesQuery } from '@iblai/iblai-js/data-layer';
|
|
1247
1257
|
|
|
1248
1258
|
const { data: services, isLoading } = useGetOAuthServicesQuery({
|
|
1249
1259
|
org: string,
|
|
@@ -1253,12 +1263,12 @@ const { data: services, isLoading } = useGetOAuthServicesQuery({
|
|
|
1253
1263
|
\`\`\``,
|
|
1254
1264
|
useGetConnectedServicesQuery: `# useGetConnectedServicesQuery
|
|
1255
1265
|
|
|
1256
|
-
**Package**: \`@iblai/data-layer\`
|
|
1266
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1257
1267
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1258
1268
|
**Feature**: OAuth Integration
|
|
1259
1269
|
|
|
1260
1270
|
\`\`\`typescript
|
|
1261
|
-
import { useGetConnectedServicesQuery } from '@iblai/data-layer';
|
|
1271
|
+
import { useGetConnectedServicesQuery } from '@iblai/iblai-js/data-layer';
|
|
1262
1272
|
|
|
1263
1273
|
const { data: connected, isLoading } = useGetConnectedServicesQuery({
|
|
1264
1274
|
org: string,
|
|
@@ -1268,12 +1278,12 @@ const { data: connected, isLoading } = useGetConnectedServicesQuery({
|
|
|
1268
1278
|
\`\`\``,
|
|
1269
1279
|
useStartOAuthFlowMutation: `# useStartOAuthFlowMutation
|
|
1270
1280
|
|
|
1271
|
-
**Package**: \`@iblai/data-layer\`
|
|
1281
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1272
1282
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1273
1283
|
**Feature**: OAuth Integration
|
|
1274
1284
|
|
|
1275
1285
|
\`\`\`typescript
|
|
1276
|
-
import { useStartOAuthFlowMutation } from '@iblai/data-layer';
|
|
1286
|
+
import { useStartOAuthFlowMutation } from '@iblai/iblai-js/data-layer';
|
|
1277
1287
|
|
|
1278
1288
|
const [startOAuth, { isLoading }] = useStartOAuthFlowMutation();
|
|
1279
1289
|
|
|
@@ -1288,12 +1298,12 @@ window.location.href = authUrl;
|
|
|
1288
1298
|
\`\`\``,
|
|
1289
1299
|
useCreateMCPServerConnectionMutation: `# useCreateMCPServerConnectionMutation
|
|
1290
1300
|
|
|
1291
|
-
**Package**: \`@iblai/data-layer\`
|
|
1301
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1292
1302
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1293
1303
|
**Feature**: Model Context Protocol
|
|
1294
1304
|
|
|
1295
1305
|
\`\`\`typescript
|
|
1296
|
-
import { useCreateMCPServerConnectionMutation } from '@iblai/data-layer';
|
|
1306
|
+
import { useCreateMCPServerConnectionMutation } from '@iblai/iblai-js/data-layer';
|
|
1297
1307
|
|
|
1298
1308
|
const [createConnection, { isLoading }] = useCreateMCPServerConnectionMutation();
|
|
1299
1309
|
|
|
@@ -1305,12 +1315,12 @@ await createConnection({
|
|
|
1305
1315
|
\`\`\``,
|
|
1306
1316
|
useDisconnectServiceMutation: `# useDisconnectServiceMutation
|
|
1307
1317
|
|
|
1308
|
-
**Package**: \`@iblai/data-layer\`
|
|
1318
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1309
1319
|
**File**: \`packages/data-layer/src/features/mcp/api-slice.ts\`
|
|
1310
1320
|
**Feature**: OAuth Integration
|
|
1311
1321
|
|
|
1312
1322
|
\`\`\`typescript
|
|
1313
|
-
import { useDisconnectServiceMutation } from '@iblai/data-layer';
|
|
1323
|
+
import { useDisconnectServiceMutation } from '@iblai/iblai-js/data-layer';
|
|
1314
1324
|
|
|
1315
1325
|
const [disconnect, { isLoading }] = useDisconnectServiceMutation();
|
|
1316
1326
|
|
|
@@ -1324,12 +1334,12 @@ await disconnect({
|
|
|
1324
1334
|
// ============================================================================
|
|
1325
1335
|
useGetNotificationsQuery: `# useGetNotificationsQuery
|
|
1326
1336
|
|
|
1327
|
-
**Package**: \`@iblai/data-layer\`
|
|
1337
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1328
1338
|
**File**: \`packages/data-layer/src/features/notifications/api-slice.ts\`
|
|
1329
1339
|
**Feature**: Notifications
|
|
1330
1340
|
|
|
1331
1341
|
\`\`\`typescript
|
|
1332
|
-
import { useGetNotificationsQuery } from '@iblai/data-layer';
|
|
1342
|
+
import { useGetNotificationsQuery } from '@iblai/iblai-js/data-layer';
|
|
1333
1343
|
|
|
1334
1344
|
const { data: notifications, isLoading, refetch } = useGetNotificationsQuery({
|
|
1335
1345
|
page?: number,
|
|
@@ -1354,12 +1364,12 @@ interface Notification {
|
|
|
1354
1364
|
\`\`\``,
|
|
1355
1365
|
useGetNotificationsCountQuery: `# useGetNotificationsCountQuery
|
|
1356
1366
|
|
|
1357
|
-
**Package**: \`@iblai/data-layer\`
|
|
1367
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1358
1368
|
**File**: \`packages/data-layer/src/features/notifications/api-slice.ts\`
|
|
1359
1369
|
**Feature**: Notifications
|
|
1360
1370
|
|
|
1361
1371
|
\`\`\`typescript
|
|
1362
|
-
import { useGetNotificationsCountQuery } from '@iblai/data-layer';
|
|
1372
|
+
import { useGetNotificationsCountQuery } from '@iblai/iblai-js/data-layer';
|
|
1363
1373
|
|
|
1364
1374
|
const { data, isLoading } = useGetNotificationsCountQuery();
|
|
1365
1375
|
|
|
@@ -1368,12 +1378,12 @@ const { data, isLoading } = useGetNotificationsCountQuery();
|
|
|
1368
1378
|
\`\`\``,
|
|
1369
1379
|
useMarkAllAsReadMutation: `# useMarkAllAsReadMutation
|
|
1370
1380
|
|
|
1371
|
-
**Package**: \`@iblai/data-layer\`
|
|
1381
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1372
1382
|
**File**: \`packages/data-layer/src/features/notifications/api-slice.ts\`
|
|
1373
1383
|
**Feature**: Notifications
|
|
1374
1384
|
|
|
1375
1385
|
\`\`\`typescript
|
|
1376
|
-
import { useMarkAllAsReadMutation } from '@iblai/data-layer';
|
|
1386
|
+
import { useMarkAllAsReadMutation } from '@iblai/iblai-js/data-layer';
|
|
1377
1387
|
|
|
1378
1388
|
const [markAllRead, { isLoading }] = useMarkAllAsReadMutation();
|
|
1379
1389
|
|
|
@@ -1383,12 +1393,12 @@ await markAllRead().unwrap();
|
|
|
1383
1393
|
\`\`\``,
|
|
1384
1394
|
useGetNotificationContextQuery: `# useGetNotificationContextQuery
|
|
1385
1395
|
|
|
1386
|
-
**Package**: \`@iblai/data-layer\`
|
|
1396
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1387
1397
|
**File**: \`packages/data-layer/src/features/notifications/api-slice.ts\`
|
|
1388
1398
|
**Feature**: Notification Builder
|
|
1389
1399
|
|
|
1390
1400
|
\`\`\`typescript
|
|
1391
|
-
import { useGetNotificationContextQuery } from '@iblai/data-layer';
|
|
1401
|
+
import { useGetNotificationContextQuery } from '@iblai/iblai-js/data-layer';
|
|
1392
1402
|
|
|
1393
1403
|
const { data: context, isLoading } = useGetNotificationContextQuery({
|
|
1394
1404
|
org: string,
|
|
@@ -1398,12 +1408,12 @@ const { data: context, isLoading } = useGetNotificationContextQuery({
|
|
|
1398
1408
|
\`\`\``,
|
|
1399
1409
|
useCreateNotificationPreviewMutation: `# useCreateNotificationPreviewMutation
|
|
1400
1410
|
|
|
1401
|
-
**Package**: \`@iblai/data-layer\`
|
|
1411
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1402
1412
|
**File**: \`packages/data-layer/src/features/notifications/api-slice.ts\`
|
|
1403
1413
|
**Feature**: Notification Builder
|
|
1404
1414
|
|
|
1405
1415
|
\`\`\`typescript
|
|
1406
|
-
import { useCreateNotificationPreviewMutation } from '@iblai/data-layer';
|
|
1416
|
+
import { useCreateNotificationPreviewMutation } from '@iblai/iblai-js/data-layer';
|
|
1407
1417
|
|
|
1408
1418
|
const [createPreview, { isLoading }] = useCreateNotificationPreviewMutation();
|
|
1409
1419
|
|
|
@@ -1415,12 +1425,12 @@ const preview = await createPreview({
|
|
|
1415
1425
|
\`\`\``,
|
|
1416
1426
|
useSendNotificationMutation: `# useSendNotificationMutation
|
|
1417
1427
|
|
|
1418
|
-
**Package**: \`@iblai/data-layer\`
|
|
1428
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1419
1429
|
**File**: \`packages/data-layer/src/features/notifications/api-slice.ts\`
|
|
1420
1430
|
**Feature**: Notifications
|
|
1421
1431
|
|
|
1422
1432
|
\`\`\`typescript
|
|
1423
|
-
import { useSendNotificationMutation } from '@iblai/data-layer';
|
|
1433
|
+
import { useSendNotificationMutation } from '@iblai/iblai-js/data-layer';
|
|
1424
1434
|
|
|
1425
1435
|
const [sendNotification, { isLoading, isSuccess }] = useSendNotificationMutation();
|
|
1426
1436
|
|
|
@@ -1437,12 +1447,12 @@ await sendNotification({
|
|
|
1437
1447
|
// ============================================================================
|
|
1438
1448
|
usePinnedMessagesQuery: `# usePinnedMessagesQuery
|
|
1439
1449
|
|
|
1440
|
-
**Package**: \`@iblai/data-layer\`
|
|
1450
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1441
1451
|
**File**: \`packages/data-layer/src/features/chat/api-slice.ts\`
|
|
1442
1452
|
**Feature**: Chat
|
|
1443
1453
|
|
|
1444
1454
|
\`\`\`typescript
|
|
1445
|
-
import { usePinnedMessagesQuery } from '@iblai/data-layer';
|
|
1455
|
+
import { usePinnedMessagesQuery } from '@iblai/iblai-js/data-layer';
|
|
1446
1456
|
|
|
1447
1457
|
const { data: pinnedMessages, isLoading } = usePinnedMessagesQuery({
|
|
1448
1458
|
org: string,
|
|
@@ -1454,12 +1464,12 @@ const { data: pinnedMessages, isLoading } = usePinnedMessagesQuery({
|
|
|
1454
1464
|
\`\`\``,
|
|
1455
1465
|
useUpdateMessageFeedbackMutation: `# useUpdateMessageFeedbackMutation
|
|
1456
1466
|
|
|
1457
|
-
**Package**: \`@iblai/data-layer\`
|
|
1467
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1458
1468
|
**File**: \`packages/data-layer/src/features/chat/api-slice.ts\`
|
|
1459
1469
|
**Feature**: Chat
|
|
1460
1470
|
|
|
1461
1471
|
\`\`\`typescript
|
|
1462
|
-
import { useUpdateMessageFeedbackMutation } from '@iblai/data-layer';
|
|
1472
|
+
import { useUpdateMessageFeedbackMutation } from '@iblai/iblai-js/data-layer';
|
|
1463
1473
|
|
|
1464
1474
|
const [updateFeedback, { isLoading }] = useUpdateMessageFeedbackMutation();
|
|
1465
1475
|
|
|
@@ -1472,12 +1482,12 @@ await updateFeedback({
|
|
|
1472
1482
|
\`\`\``,
|
|
1473
1483
|
useAudioToTextMutation: `# useAudioToTextMutation
|
|
1474
1484
|
|
|
1475
|
-
**Package**: \`@iblai/data-layer\`
|
|
1485
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1476
1486
|
**File**: \`packages/data-layer/src/features/chat/api-slice.ts\`
|
|
1477
1487
|
**Feature**: Chat (Speech-to-Text)
|
|
1478
1488
|
|
|
1479
1489
|
\`\`\`typescript
|
|
1480
|
-
import { useAudioToTextMutation } from '@iblai/data-layer';
|
|
1490
|
+
import { useAudioToTextMutation } from '@iblai/iblai-js/data-layer';
|
|
1481
1491
|
|
|
1482
1492
|
const [convertAudio, { isLoading }] = useAudioToTextMutation();
|
|
1483
1493
|
|
|
@@ -1491,12 +1501,12 @@ const { text } = await convertAudio({
|
|
|
1491
1501
|
// ============================================================================
|
|
1492
1502
|
useGetChatHistoryQuery: `# useGetChatHistoryQuery
|
|
1493
1503
|
|
|
1494
|
-
**Package**: \`@iblai/data-layer\`
|
|
1504
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1495
1505
|
**File**: \`packages/data-layer/src/features/chat-history/api-slice.ts\`
|
|
1496
1506
|
**Feature**: Chat History
|
|
1497
1507
|
|
|
1498
1508
|
\`\`\`typescript
|
|
1499
|
-
import { useGetChatHistoryQuery } from '@iblai/data-layer';
|
|
1509
|
+
import { useGetChatHistoryQuery } from '@iblai/iblai-js/data-layer';
|
|
1500
1510
|
|
|
1501
1511
|
const { data: history, isLoading } = useGetChatHistoryQuery({
|
|
1502
1512
|
org: string,
|
|
@@ -1508,12 +1518,12 @@ const { data: history, isLoading } = useGetChatHistoryQuery({
|
|
|
1508
1518
|
\`\`\``,
|
|
1509
1519
|
useGetSessionsQuery: `# useGetSessionsQuery
|
|
1510
1520
|
|
|
1511
|
-
**Package**: \`@iblai/data-layer\`
|
|
1521
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1512
1522
|
**File**: \`packages/data-layer/src/features/chat-history/api-slice.ts\`
|
|
1513
1523
|
**Feature**: Chat History
|
|
1514
1524
|
|
|
1515
1525
|
\`\`\`typescript
|
|
1516
|
-
import { useGetSessionsQuery } from '@iblai/data-layer';
|
|
1526
|
+
import { useGetSessionsQuery } from '@iblai/iblai-js/data-layer';
|
|
1517
1527
|
|
|
1518
1528
|
const { data: sessions, isLoading } = useGetSessionsQuery({
|
|
1519
1529
|
org: string,
|
|
@@ -1534,12 +1544,12 @@ interface ChatSession {
|
|
|
1534
1544
|
// ============================================================================
|
|
1535
1545
|
useGetReportedSkillsQuery: `# useGetReportedSkillsQuery
|
|
1536
1546
|
|
|
1537
|
-
**Package**: \`@iblai/data-layer\`
|
|
1547
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1538
1548
|
**File**: \`packages/data-layer/src/features/skills/api-slice.ts\`
|
|
1539
1549
|
**Feature**: Skills Tracking
|
|
1540
1550
|
|
|
1541
1551
|
\`\`\`typescript
|
|
1542
|
-
import { useGetReportedSkillsQuery } from '@iblai/data-layer';
|
|
1552
|
+
import { useGetReportedSkillsQuery } from '@iblai/iblai-js/data-layer';
|
|
1543
1553
|
|
|
1544
1554
|
const { data: skills, isLoading } = useGetReportedSkillsQuery({
|
|
1545
1555
|
org: string,
|
|
@@ -1550,12 +1560,12 @@ const { data: skills, isLoading } = useGetReportedSkillsQuery({
|
|
|
1550
1560
|
\`\`\``,
|
|
1551
1561
|
useGetDesiredSkillsQuery: `# useGetDesiredSkillsQuery
|
|
1552
1562
|
|
|
1553
|
-
**Package**: \`@iblai/data-layer\`
|
|
1563
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1554
1564
|
**File**: \`packages/data-layer/src/features/skills/api-slice.ts\`
|
|
1555
1565
|
**Feature**: Skills Tracking
|
|
1556
1566
|
|
|
1557
1567
|
\`\`\`typescript
|
|
1558
|
-
import { useGetDesiredSkillsQuery } from '@iblai/data-layer';
|
|
1568
|
+
import { useGetDesiredSkillsQuery } from '@iblai/iblai-js/data-layer';
|
|
1559
1569
|
|
|
1560
1570
|
const { data: skills, isLoading } = useGetDesiredSkillsQuery({
|
|
1561
1571
|
org: string,
|
|
@@ -1566,12 +1576,12 @@ const { data: skills, isLoading } = useGetDesiredSkillsQuery({
|
|
|
1566
1576
|
\`\`\``,
|
|
1567
1577
|
useGetSkillsPointsPercentileQuery: `# useGetSkillsPointsPercentileQuery
|
|
1568
1578
|
|
|
1569
|
-
**Package**: \`@iblai/data-layer\`
|
|
1579
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1570
1580
|
**File**: \`packages/data-layer/src/features/skills/api-slice.ts\`
|
|
1571
1581
|
**Feature**: Skills Leaderboard
|
|
1572
1582
|
|
|
1573
1583
|
\`\`\`typescript
|
|
1574
|
-
import { useGetSkillsPointsPercentileQuery } from '@iblai/data-layer';
|
|
1584
|
+
import { useGetSkillsPointsPercentileQuery } from '@iblai/iblai-js/data-layer';
|
|
1575
1585
|
|
|
1576
1586
|
const { data, isLoading } = useGetSkillsPointsPercentileQuery({
|
|
1577
1587
|
org: string,
|
|
@@ -1583,12 +1593,12 @@ const { data, isLoading } = useGetSkillsPointsPercentileQuery({
|
|
|
1583
1593
|
\`\`\``,
|
|
1584
1594
|
useGetUserEarnedSkillsQuery: `# useGetUserEarnedSkillsQuery
|
|
1585
1595
|
|
|
1586
|
-
**Package**: \`@iblai/data-layer\`
|
|
1596
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1587
1597
|
**File**: \`packages/data-layer/src/features/skills/api-slice.ts\`
|
|
1588
1598
|
**Feature**: Skills Tracking
|
|
1589
1599
|
|
|
1590
1600
|
\`\`\`typescript
|
|
1591
|
-
import { useGetUserEarnedSkillsQuery } from '@iblai/data-layer';
|
|
1601
|
+
import { useGetUserEarnedSkillsQuery } from '@iblai/iblai-js/data-layer';
|
|
1592
1602
|
|
|
1593
1603
|
const { data: skills, isLoading } = useGetUserEarnedSkillsQuery({
|
|
1594
1604
|
org: string,
|
|
@@ -1602,12 +1612,12 @@ const { data: skills, isLoading } = useGetUserEarnedSkillsQuery({
|
|
|
1602
1612
|
// ============================================================================
|
|
1603
1613
|
useGetUserReportedSkillsQuery: `# useGetUserReportedSkillsQuery
|
|
1604
1614
|
|
|
1605
|
-
**Package**: \`@iblai/data-layer\`
|
|
1615
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1606
1616
|
**File**: \`packages/data-layer/src/features/catalog/api-slice.ts\`
|
|
1607
1617
|
**Feature**: Skills Catalog
|
|
1608
1618
|
|
|
1609
1619
|
\`\`\`typescript
|
|
1610
|
-
import { useGetUserReportedSkillsQuery } from '@iblai/data-layer';
|
|
1620
|
+
import { useGetUserReportedSkillsQuery } from '@iblai/iblai-js/data-layer';
|
|
1611
1621
|
|
|
1612
1622
|
const { data: skills, isLoading } = useGetUserReportedSkillsQuery({
|
|
1613
1623
|
org: string,
|
|
@@ -1616,12 +1626,12 @@ const { data: skills, isLoading } = useGetUserReportedSkillsQuery({
|
|
|
1616
1626
|
\`\`\``,
|
|
1617
1627
|
useGetUserDesiredSkillsQuery: `# useGetUserDesiredSkillsQuery
|
|
1618
1628
|
|
|
1619
|
-
**Package**: \`@iblai/data-layer\`
|
|
1629
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1620
1630
|
**File**: \`packages/data-layer/src/features/catalog/api-slice.ts\`
|
|
1621
1631
|
**Feature**: Skills Catalog
|
|
1622
1632
|
|
|
1623
1633
|
\`\`\`typescript
|
|
1624
|
-
import { useGetUserDesiredSkillsQuery } from '@iblai/data-layer';
|
|
1634
|
+
import { useGetUserDesiredSkillsQuery } from '@iblai/iblai-js/data-layer';
|
|
1625
1635
|
|
|
1626
1636
|
const { data: skills, isLoading } = useGetUserDesiredSkillsQuery({
|
|
1627
1637
|
org: string,
|
|
@@ -1630,12 +1640,12 @@ const { data: skills, isLoading } = useGetUserDesiredSkillsQuery({
|
|
|
1630
1640
|
\`\`\``,
|
|
1631
1641
|
useGetUserSkillsPointsQuery: `# useGetUserSkillsPointsQuery
|
|
1632
1642
|
|
|
1633
|
-
**Package**: \`@iblai/data-layer\`
|
|
1643
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1634
1644
|
**File**: \`packages/data-layer/src/features/catalog/api-slice.ts\`
|
|
1635
1645
|
**Feature**: Skills Points
|
|
1636
1646
|
|
|
1637
1647
|
\`\`\`typescript
|
|
1638
|
-
import { useGetUserSkillsPointsQuery } from '@iblai/data-layer';
|
|
1648
|
+
import { useGetUserSkillsPointsQuery } from '@iblai/iblai-js/data-layer';
|
|
1639
1649
|
|
|
1640
1650
|
const { data, isLoading } = useGetUserSkillsPointsQuery({
|
|
1641
1651
|
org: string,
|
|
@@ -1646,12 +1656,12 @@ const { data, isLoading } = useGetUserSkillsPointsQuery({
|
|
|
1646
1656
|
\`\`\``,
|
|
1647
1657
|
useGetUserAssignedPathwaysQuery: `# useGetUserAssignedPathwaysQuery
|
|
1648
1658
|
|
|
1649
|
-
**Package**: \`@iblai/data-layer\`
|
|
1659
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1650
1660
|
**File**: \`packages/data-layer/src/features/catalog/api-slice.ts\`
|
|
1651
1661
|
**Feature**: Learning Pathways
|
|
1652
1662
|
|
|
1653
1663
|
\`\`\`typescript
|
|
1654
|
-
import { useGetUserAssignedPathwaysQuery } from '@iblai/data-layer';
|
|
1664
|
+
import { useGetUserAssignedPathwaysQuery } from '@iblai/iblai-js/data-layer';
|
|
1655
1665
|
|
|
1656
1666
|
const { data: pathways, isLoading } = useGetUserAssignedPathwaysQuery({
|
|
1657
1667
|
org: string,
|
|
@@ -1662,12 +1672,12 @@ const { data: pathways, isLoading } = useGetUserAssignedPathwaysQuery({
|
|
|
1662
1672
|
\`\`\``,
|
|
1663
1673
|
useGetUserEnrolledPathwaysQuery: `# useGetUserEnrolledPathwaysQuery
|
|
1664
1674
|
|
|
1665
|
-
**Package**: \`@iblai/data-layer\`
|
|
1675
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1666
1676
|
**File**: \`packages/data-layer/src/features/catalog/api-slice.ts\`
|
|
1667
1677
|
**Feature**: Learning Pathways
|
|
1668
1678
|
|
|
1669
1679
|
\`\`\`typescript
|
|
1670
|
-
import { useGetUserEnrolledPathwaysQuery } from '@iblai/data-layer';
|
|
1680
|
+
import { useGetUserEnrolledPathwaysQuery } from '@iblai/iblai-js/data-layer';
|
|
1671
1681
|
|
|
1672
1682
|
const { data: pathways, isLoading } = useGetUserEnrolledPathwaysQuery({
|
|
1673
1683
|
org: string,
|
|
@@ -1678,12 +1688,12 @@ const { data: pathways, isLoading } = useGetUserEnrolledPathwaysQuery({
|
|
|
1678
1688
|
\`\`\``,
|
|
1679
1689
|
useGetCatalogRolesQuery: `# useGetCatalogRolesQuery
|
|
1680
1690
|
|
|
1681
|
-
**Package**: \`@iblai/data-layer\`
|
|
1691
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1682
1692
|
**File**: \`packages/data-layer/src/features/catalog/api-slice.ts\`
|
|
1683
1693
|
**Feature**: Catalog
|
|
1684
1694
|
|
|
1685
1695
|
\`\`\`typescript
|
|
1686
|
-
import { useGetCatalogRolesQuery } from '@iblai/data-layer';
|
|
1696
|
+
import { useGetCatalogRolesQuery } from '@iblai/iblai-js/data-layer';
|
|
1687
1697
|
|
|
1688
1698
|
const { data: roles, isLoading } = useGetCatalogRolesQuery({
|
|
1689
1699
|
org: string,
|
|
@@ -1693,12 +1703,12 @@ const { data: roles, isLoading } = useGetCatalogRolesQuery({
|
|
|
1693
1703
|
\`\`\``,
|
|
1694
1704
|
useGetUserEnrolledProgramsQuery: `# useGetUserEnrolledProgramsQuery
|
|
1695
1705
|
|
|
1696
|
-
**Package**: \`@iblai/data-layer\`
|
|
1706
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1697
1707
|
**File**: \`packages/data-layer/src/features/catalog/api-slice.ts\`
|
|
1698
1708
|
**Feature**: Programs
|
|
1699
1709
|
|
|
1700
1710
|
\`\`\`typescript
|
|
1701
|
-
import { useGetUserEnrolledProgramsQuery } from '@iblai/data-layer';
|
|
1711
|
+
import { useGetUserEnrolledProgramsQuery } from '@iblai/iblai-js/data-layer';
|
|
1702
1712
|
|
|
1703
1713
|
const { data: programs, isLoading } = useGetUserEnrolledProgramsQuery({
|
|
1704
1714
|
org: string,
|
|
@@ -1712,12 +1722,12 @@ const { data: programs, isLoading } = useGetUserEnrolledProgramsQuery({
|
|
|
1712
1722
|
// ============================================================================
|
|
1713
1723
|
useGetPersonnalizedSearchQuery: `# useGetPersonnalizedSearchQuery
|
|
1714
1724
|
|
|
1715
|
-
**Package**: \`@iblai/data-layer\`
|
|
1725
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1716
1726
|
**File**: \`packages/data-layer/src/features/search/api-slice.ts\`
|
|
1717
1727
|
**Feature**: Search
|
|
1718
1728
|
|
|
1719
1729
|
\`\`\`typescript
|
|
1720
|
-
import { useGetPersonnalizedSearchQuery } from '@iblai/data-layer';
|
|
1730
|
+
import { useGetPersonnalizedSearchQuery } from '@iblai/iblai-js/data-layer';
|
|
1721
1731
|
|
|
1722
1732
|
const { data: results, isLoading } = useGetPersonnalizedSearchQuery({
|
|
1723
1733
|
org: string,
|
|
@@ -1729,12 +1739,12 @@ const { data: results, isLoading } = useGetPersonnalizedSearchQuery({
|
|
|
1729
1739
|
\`\`\``,
|
|
1730
1740
|
useGetCatalogSearchQuery: `# useGetCatalogSearchQuery
|
|
1731
1741
|
|
|
1732
|
-
**Package**: \`@iblai/data-layer\`
|
|
1742
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1733
1743
|
**File**: \`packages/data-layer/src/features/search/api-slice.ts\`
|
|
1734
1744
|
**Feature**: Search
|
|
1735
1745
|
|
|
1736
1746
|
\`\`\`typescript
|
|
1737
|
-
import { useGetCatalogSearchQuery } from '@iblai/data-layer';
|
|
1747
|
+
import { useGetCatalogSearchQuery } from '@iblai/iblai-js/data-layer';
|
|
1738
1748
|
|
|
1739
1749
|
const { data: results, isLoading } = useGetCatalogSearchQuery({
|
|
1740
1750
|
org: string,
|
|
@@ -1745,12 +1755,12 @@ const { data: results, isLoading } = useGetCatalogSearchQuery({
|
|
|
1745
1755
|
\`\`\``,
|
|
1746
1756
|
useGetAiSearchMentorsQuery: `# useGetAiSearchMentorsQuery
|
|
1747
1757
|
|
|
1748
|
-
**Package**: \`@iblai/data-layer\`
|
|
1758
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1749
1759
|
**File**: \`packages/data-layer/src/features/search/ai-search-api-slice.ts\`
|
|
1750
1760
|
**Feature**: AI Search
|
|
1751
1761
|
|
|
1752
1762
|
\`\`\`typescript
|
|
1753
|
-
import { useGetAiSearchMentorsQuery } from '@iblai/data-layer';
|
|
1763
|
+
import { useGetAiSearchMentorsQuery } from '@iblai/iblai-js/data-layer';
|
|
1754
1764
|
|
|
1755
1765
|
const { data: mentors, isLoading } = useGetAiSearchMentorsQuery({
|
|
1756
1766
|
org: string,
|
|
@@ -1761,12 +1771,12 @@ const { data: mentors, isLoading } = useGetAiSearchMentorsQuery({
|
|
|
1761
1771
|
\`\`\``,
|
|
1762
1772
|
useGetRecommendationsAiSearchQuery: `# useGetRecommendationsAiSearchQuery
|
|
1763
1773
|
|
|
1764
|
-
**Package**: \`@iblai/data-layer\`
|
|
1774
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1765
1775
|
**File**: \`packages/data-layer/src/features/search/ai-search-api-slice.ts\`
|
|
1766
1776
|
**Feature**: AI Recommendations
|
|
1767
1777
|
|
|
1768
1778
|
\`\`\`typescript
|
|
1769
|
-
import { useGetRecommendationsAiSearchQuery } from '@iblai/data-layer';
|
|
1779
|
+
import { useGetRecommendationsAiSearchQuery } from '@iblai/iblai-js/data-layer';
|
|
1770
1780
|
|
|
1771
1781
|
const { data: recommendations, isLoading } = useGetRecommendationsAiSearchQuery({
|
|
1772
1782
|
org: string,
|
|
@@ -1777,12 +1787,12 @@ const { data: recommendations, isLoading } = useGetRecommendationsAiSearchQuery(
|
|
|
1777
1787
|
\`\`\``,
|
|
1778
1788
|
useGetRecommendedPromptsListQuery: `# useGetRecommendedPromptsListQuery
|
|
1779
1789
|
|
|
1780
|
-
**Package**: \`@iblai/data-layer\`
|
|
1790
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1781
1791
|
**File**: \`packages/data-layer/src/features/search/ai-search-api-slice.ts\`
|
|
1782
1792
|
**Feature**: Guided Prompts
|
|
1783
1793
|
|
|
1784
1794
|
\`\`\`typescript
|
|
1785
|
-
import { useGetRecommendedPromptsListQuery } from '@iblai/data-layer';
|
|
1795
|
+
import { useGetRecommendedPromptsListQuery } from '@iblai/iblai-js/data-layer';
|
|
1786
1796
|
|
|
1787
1797
|
const { data: prompts, isLoading } = useGetRecommendedPromptsListQuery({
|
|
1788
1798
|
org: string,
|
|
@@ -1793,12 +1803,12 @@ const { data: prompts, isLoading } = useGetRecommendedPromptsListQuery({
|
|
|
1793
1803
|
\`\`\``,
|
|
1794
1804
|
useCreateRecommendedPromptMutation: `# useCreateRecommendedPromptMutation
|
|
1795
1805
|
|
|
1796
|
-
**Package**: \`@iblai/data-layer\`
|
|
1806
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1797
1807
|
**File**: \`packages/data-layer/src/features/search/ai-search-api-slice.ts\`
|
|
1798
1808
|
**Feature**: Guided Prompts
|
|
1799
1809
|
|
|
1800
1810
|
\`\`\`typescript
|
|
1801
|
-
import { useCreateRecommendedPromptMutation } from '@iblai/data-layer';
|
|
1811
|
+
import { useCreateRecommendedPromptMutation } from '@iblai/iblai-js/data-layer';
|
|
1802
1812
|
|
|
1803
1813
|
const [createPrompt, { isLoading }] = useCreateRecommendedPromptMutation();
|
|
1804
1814
|
|
|
@@ -1810,12 +1820,12 @@ await createPrompt({
|
|
|
1810
1820
|
\`\`\``,
|
|
1811
1821
|
useUpdateRecommendedPromptMutation: `# useUpdateRecommendedPromptMutation
|
|
1812
1822
|
|
|
1813
|
-
**Package**: \`@iblai/data-layer\`
|
|
1823
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1814
1824
|
**File**: \`packages/data-layer/src/features/search/ai-search-api-slice.ts\`
|
|
1815
1825
|
**Feature**: Guided Prompts
|
|
1816
1826
|
|
|
1817
1827
|
\`\`\`typescript
|
|
1818
|
-
import { useUpdateRecommendedPromptMutation } from '@iblai/data-layer';
|
|
1828
|
+
import { useUpdateRecommendedPromptMutation } from '@iblai/iblai-js/data-layer';
|
|
1819
1829
|
|
|
1820
1830
|
const [updatePrompt, { isLoading }] = useUpdateRecommendedPromptMutation();
|
|
1821
1831
|
|
|
@@ -1828,12 +1838,12 @@ await updatePrompt({
|
|
|
1828
1838
|
\`\`\``,
|
|
1829
1839
|
useDeleteRecommendedPromptMutation: `# useDeleteRecommendedPromptMutation
|
|
1830
1840
|
|
|
1831
|
-
**Package**: \`@iblai/data-layer\`
|
|
1841
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1832
1842
|
**File**: \`packages/data-layer/src/features/search/ai-search-api-slice.ts\`
|
|
1833
1843
|
**Feature**: Guided Prompts
|
|
1834
1844
|
|
|
1835
1845
|
\`\`\`typescript
|
|
1836
|
-
import { useDeleteRecommendedPromptMutation } from '@iblai/data-layer';
|
|
1846
|
+
import { useDeleteRecommendedPromptMutation } from '@iblai/iblai-js/data-layer';
|
|
1837
1847
|
|
|
1838
1848
|
const [deletePrompt, { isLoading }] = useDeleteRecommendedPromptMutation();
|
|
1839
1849
|
|
|
@@ -1848,12 +1858,12 @@ await deletePrompt({
|
|
|
1848
1858
|
// ============================================================================
|
|
1849
1859
|
useGetUserProjectsQuery: `# useGetUserProjectsQuery
|
|
1850
1860
|
|
|
1851
|
-
**Package**: \`@iblai/data-layer\`
|
|
1861
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1852
1862
|
**File**: \`packages/data-layer/src/features/projects/api-slice.ts\`
|
|
1853
1863
|
**Feature**: Projects
|
|
1854
1864
|
|
|
1855
1865
|
\`\`\`typescript
|
|
1856
|
-
import { useGetUserProjectsQuery } from '@iblai/data-layer';
|
|
1866
|
+
import { useGetUserProjectsQuery } from '@iblai/iblai-js/data-layer';
|
|
1857
1867
|
|
|
1858
1868
|
const { data: projects, isLoading } = useGetUserProjectsQuery({
|
|
1859
1869
|
org: string,
|
|
@@ -1864,12 +1874,12 @@ const { data: projects, isLoading } = useGetUserProjectsQuery({
|
|
|
1864
1874
|
\`\`\``,
|
|
1865
1875
|
useGetUserProjectDetailsQuery: `# useGetUserProjectDetailsQuery
|
|
1866
1876
|
|
|
1867
|
-
**Package**: \`@iblai/data-layer\`
|
|
1877
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1868
1878
|
**File**: \`packages/data-layer/src/features/projects/api-slice.ts\`
|
|
1869
1879
|
**Feature**: Projects
|
|
1870
1880
|
|
|
1871
1881
|
\`\`\`typescript
|
|
1872
|
-
import { useGetUserProjectDetailsQuery } from '@iblai/data-layer';
|
|
1882
|
+
import { useGetUserProjectDetailsQuery } from '@iblai/iblai-js/data-layer';
|
|
1873
1883
|
|
|
1874
1884
|
const { data: project, isLoading } = useGetUserProjectDetailsQuery({
|
|
1875
1885
|
org: string,
|
|
@@ -1880,12 +1890,12 @@ const { data: project, isLoading } = useGetUserProjectDetailsQuery({
|
|
|
1880
1890
|
\`\`\``,
|
|
1881
1891
|
useCreateUserProjectMutation: `# useCreateUserProjectMutation
|
|
1882
1892
|
|
|
1883
|
-
**Package**: \`@iblai/data-layer\`
|
|
1893
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1884
1894
|
**File**: \`packages/data-layer/src/features/projects/api-slice.ts\`
|
|
1885
1895
|
**Feature**: Projects
|
|
1886
1896
|
|
|
1887
1897
|
\`\`\`typescript
|
|
1888
|
-
import { useCreateUserProjectMutation } from '@iblai/data-layer';
|
|
1898
|
+
import { useCreateUserProjectMutation } from '@iblai/iblai-js/data-layer';
|
|
1889
1899
|
|
|
1890
1900
|
const [createProject, { isLoading }] = useCreateUserProjectMutation();
|
|
1891
1901
|
|
|
@@ -1897,12 +1907,12 @@ const project = await createProject({
|
|
|
1897
1907
|
\`\`\``,
|
|
1898
1908
|
useUpdateUserProjectMutation: `# useUpdateUserProjectMutation
|
|
1899
1909
|
|
|
1900
|
-
**Package**: \`@iblai/data-layer\`
|
|
1910
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1901
1911
|
**File**: \`packages/data-layer/src/features/projects/api-slice.ts\`
|
|
1902
1912
|
**Feature**: Projects
|
|
1903
1913
|
|
|
1904
1914
|
\`\`\`typescript
|
|
1905
|
-
import { useUpdateUserProjectMutation } from '@iblai/data-layer';
|
|
1915
|
+
import { useUpdateUserProjectMutation } from '@iblai/iblai-js/data-layer';
|
|
1906
1916
|
|
|
1907
1917
|
const [updateProject, { isLoading }] = useUpdateUserProjectMutation();
|
|
1908
1918
|
|
|
@@ -1915,12 +1925,12 @@ await updateProject({
|
|
|
1915
1925
|
\`\`\``,
|
|
1916
1926
|
useDeleteUserProjectMutation: `# useDeleteUserProjectMutation
|
|
1917
1927
|
|
|
1918
|
-
**Package**: \`@iblai/data-layer\`
|
|
1928
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1919
1929
|
**File**: \`packages/data-layer/src/features/projects/api-slice.ts\`
|
|
1920
1930
|
**Feature**: Projects
|
|
1921
1931
|
|
|
1922
1932
|
\`\`\`typescript
|
|
1923
|
-
import { useDeleteUserProjectMutation } from '@iblai/data-layer';
|
|
1933
|
+
import { useDeleteUserProjectMutation } from '@iblai/iblai-js/data-layer';
|
|
1924
1934
|
|
|
1925
1935
|
const [deleteProject, { isLoading }] = useDeleteUserProjectMutation();
|
|
1926
1936
|
|
|
@@ -1934,12 +1944,12 @@ await deleteProject({
|
|
|
1934
1944
|
// ============================================================================
|
|
1935
1945
|
useExchangeAppleTokenMutation: `# useExchangeAppleTokenMutation
|
|
1936
1946
|
|
|
1937
|
-
**Package**: \`@iblai/data-layer\`
|
|
1947
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1938
1948
|
**File**: \`packages/data-layer/src/features/auth/api-slice.ts\`
|
|
1939
1949
|
**Feature**: Authentication (Apple Sign-In)
|
|
1940
1950
|
|
|
1941
1951
|
\`\`\`typescript
|
|
1942
|
-
import { useExchangeAppleTokenMutation } from '@iblai/data-layer';
|
|
1952
|
+
import { useExchangeAppleTokenMutation } from '@iblai/iblai-js/data-layer';
|
|
1943
1953
|
|
|
1944
1954
|
const [exchangeToken, { isLoading }] = useExchangeAppleTokenMutation();
|
|
1945
1955
|
|
|
@@ -1950,12 +1960,12 @@ const { access_token, refresh_token, user } = await exchangeToken({
|
|
|
1950
1960
|
\`\`\``,
|
|
1951
1961
|
useRefreshJwtTokenMutation: `# useRefreshJwtTokenMutation
|
|
1952
1962
|
|
|
1953
|
-
**Package**: \`@iblai/data-layer\`
|
|
1963
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1954
1964
|
**File**: \`packages/data-layer/src/features/auth/api-slice.ts\`
|
|
1955
1965
|
**Feature**: Authentication
|
|
1956
1966
|
|
|
1957
1967
|
\`\`\`typescript
|
|
1958
|
-
import { useRefreshJwtTokenMutation } from '@iblai/data-layer';
|
|
1968
|
+
import { useRefreshJwtTokenMutation } from '@iblai/iblai-js/data-layer';
|
|
1959
1969
|
|
|
1960
1970
|
const [refreshToken, { isLoading }] = useRefreshJwtTokenMutation();
|
|
1961
1971
|
|
|
@@ -1965,12 +1975,12 @@ const { access_token } = await refreshToken({
|
|
|
1965
1975
|
\`\`\``,
|
|
1966
1976
|
useGetMfeContextQuery: `# useGetMfeContextQuery
|
|
1967
1977
|
|
|
1968
|
-
**Package**: \`@iblai/data-layer\`
|
|
1978
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1969
1979
|
**File**: \`packages/data-layer/src/features/auth/api-slice.ts\`
|
|
1970
1980
|
**Feature**: Micro Frontend
|
|
1971
1981
|
|
|
1972
1982
|
\`\`\`typescript
|
|
1973
|
-
import { useGetMfeContextQuery } from '@iblai/data-layer';
|
|
1983
|
+
import { useGetMfeContextQuery } from '@iblai/iblai-js/data-layer';
|
|
1974
1984
|
|
|
1975
1985
|
const { data: context, isLoading } = useGetMfeContextQuery({
|
|
1976
1986
|
appId: string,
|
|
@@ -1980,12 +1990,12 @@ const { data: context, isLoading } = useGetMfeContextQuery({
|
|
|
1980
1990
|
\`\`\``,
|
|
1981
1991
|
useGetAppTokenQuery: `# useGetAppTokenQuery
|
|
1982
1992
|
|
|
1983
|
-
**Package**: \`@iblai/data-layer\`
|
|
1993
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
1984
1994
|
**File**: \`packages/data-layer/src/features/auth/api-slice.ts\`
|
|
1985
1995
|
**Feature**: Authentication
|
|
1986
1996
|
|
|
1987
1997
|
\`\`\`typescript
|
|
1988
|
-
import { useGetAppTokenQuery } from '@iblai/data-layer';
|
|
1998
|
+
import { useGetAppTokenQuery } from '@iblai/iblai-js/data-layer';
|
|
1989
1999
|
|
|
1990
2000
|
const { data, isLoading } = useGetAppTokenQuery({
|
|
1991
2001
|
appId: string,
|
|
@@ -1998,12 +2008,12 @@ const { data, isLoading } = useGetAppTokenQuery({
|
|
|
1998
2008
|
// ============================================================================
|
|
1999
2009
|
useGetBillingInfoQuery: `# useGetBillingInfoQuery
|
|
2000
2010
|
|
|
2001
|
-
**Package**: \`@iblai/data-layer\`
|
|
2011
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2002
2012
|
**File**: \`packages/data-layer/src/features/billing/api-slice.ts\`
|
|
2003
2013
|
**Feature**: Billing
|
|
2004
2014
|
|
|
2005
2015
|
\`\`\`typescript
|
|
2006
|
-
import { useGetBillingInfoQuery } from '@iblai/data-layer';
|
|
2016
|
+
import { useGetBillingInfoQuery } from '@iblai/iblai-js/data-layer';
|
|
2007
2017
|
|
|
2008
2018
|
const { data: billing, isLoading } = useGetBillingInfoQuery({
|
|
2009
2019
|
org: string,
|
|
@@ -2013,12 +2023,12 @@ const { data: billing, isLoading } = useGetBillingInfoQuery({
|
|
|
2013
2023
|
\`\`\``,
|
|
2014
2024
|
useCreateCheckoutSessionMutation: `# useCreateCheckoutSessionMutation
|
|
2015
2025
|
|
|
2016
|
-
**Package**: \`@iblai/data-layer\`
|
|
2026
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2017
2027
|
**File**: \`packages/data-layer/src/features/stripe/api-slice.ts\`
|
|
2018
2028
|
**Feature**: Stripe Payments
|
|
2019
2029
|
|
|
2020
2030
|
\`\`\`typescript
|
|
2021
|
-
import { useCreateCheckoutSessionMutation } from '@iblai/data-layer';
|
|
2031
|
+
import { useCreateCheckoutSessionMutation } from '@iblai/iblai-js/data-layer';
|
|
2022
2032
|
|
|
2023
2033
|
const [createSession, { isLoading }] = useCreateCheckoutSessionMutation();
|
|
2024
2034
|
|
|
@@ -2034,12 +2044,12 @@ window.location.href = sessionUrl;
|
|
|
2034
2044
|
\`\`\``,
|
|
2035
2045
|
useCreatePortalSessionMutation: `# useCreatePortalSessionMutation
|
|
2036
2046
|
|
|
2037
|
-
**Package**: \`@iblai/data-layer\`
|
|
2047
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2038
2048
|
**File**: \`packages/data-layer/src/features/stripe/api-slice.ts\`
|
|
2039
2049
|
**Feature**: Stripe Billing Portal
|
|
2040
2050
|
|
|
2041
2051
|
\`\`\`typescript
|
|
2042
|
-
import { useCreatePortalSessionMutation } from '@iblai/data-layer';
|
|
2052
|
+
import { useCreatePortalSessionMutation } from '@iblai/iblai-js/data-layer';
|
|
2043
2053
|
|
|
2044
2054
|
const [createPortal, { isLoading }] = useCreatePortalSessionMutation();
|
|
2045
2055
|
|
|
@@ -2056,12 +2066,12 @@ window.location.href = portalUrl;
|
|
|
2056
2066
|
// ============================================================================
|
|
2057
2067
|
useGetTrainingDocumentsQuery: `# useGetTrainingDocumentsQuery
|
|
2058
2068
|
|
|
2059
|
-
**Package**: \`@iblai/data-layer\`
|
|
2069
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2060
2070
|
**File**: \`packages/data-layer/src/features/training-documents/api-slice.ts\`
|
|
2061
2071
|
**Feature**: Mentor Training
|
|
2062
2072
|
|
|
2063
2073
|
\`\`\`typescript
|
|
2064
|
-
import { useGetTrainingDocumentsQuery } from '@iblai/data-layer';
|
|
2074
|
+
import { useGetTrainingDocumentsQuery } from '@iblai/iblai-js/data-layer';
|
|
2065
2075
|
|
|
2066
2076
|
const { data: documents, isLoading } = useGetTrainingDocumentsQuery({
|
|
2067
2077
|
org: string,
|
|
@@ -2080,12 +2090,12 @@ interface TrainingDocument {
|
|
|
2080
2090
|
\`\`\``,
|
|
2081
2091
|
useUploadTrainingDocumentMutation: `# useUploadTrainingDocumentMutation
|
|
2082
2092
|
|
|
2083
|
-
**Package**: \`@iblai/data-layer\`
|
|
2093
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2084
2094
|
**File**: \`packages/data-layer/src/features/training-documents/api-slice.ts\`
|
|
2085
2095
|
**Feature**: Mentor Training
|
|
2086
2096
|
|
|
2087
2097
|
\`\`\`typescript
|
|
2088
|
-
import { useUploadTrainingDocumentMutation } from '@iblai/data-layer';
|
|
2098
|
+
import { useUploadTrainingDocumentMutation } from '@iblai/iblai-js/data-layer';
|
|
2089
2099
|
|
|
2090
2100
|
const [uploadDocument, { isLoading }] = useUploadTrainingDocumentMutation();
|
|
2091
2101
|
|
|
@@ -2098,12 +2108,12 @@ const doc = await uploadDocument({
|
|
|
2098
2108
|
\`\`\``,
|
|
2099
2109
|
useDeleteTrainingDocumentMutation: `# useDeleteTrainingDocumentMutation
|
|
2100
2110
|
|
|
2101
|
-
**Package**: \`@iblai/data-layer\`
|
|
2111
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2102
2112
|
**File**: \`packages/data-layer/src/features/training-documents/api-slice.ts\`
|
|
2103
2113
|
**Feature**: Mentor Training
|
|
2104
2114
|
|
|
2105
2115
|
\`\`\`typescript
|
|
2106
|
-
import { useDeleteTrainingDocumentMutation } from '@iblai/data-layer';
|
|
2116
|
+
import { useDeleteTrainingDocumentMutation } from '@iblai/iblai-js/data-layer';
|
|
2107
2117
|
|
|
2108
2118
|
const [deleteDocument, { isLoading }] = useDeleteTrainingDocumentMutation();
|
|
2109
2119
|
|
|
@@ -2118,12 +2128,12 @@ await deleteDocument({
|
|
|
2118
2128
|
// ============================================================================
|
|
2119
2129
|
useGetUserCredentialsQuery: `# useGetUserCredentialsQuery
|
|
2120
2130
|
|
|
2121
|
-
**Package**: \`@iblai/data-layer\`
|
|
2131
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2122
2132
|
**File**: \`packages/data-layer/src/features/credentials/api-slice.ts\`
|
|
2123
2133
|
**Feature**: Credentials
|
|
2124
2134
|
|
|
2125
2135
|
\`\`\`typescript
|
|
2126
|
-
import { useGetUserCredentialsQuery } from '@iblai/data-layer';
|
|
2136
|
+
import { useGetUserCredentialsQuery } from '@iblai/iblai-js/data-layer';
|
|
2127
2137
|
|
|
2128
2138
|
const { data: credentials, isLoading } = useGetUserCredentialsQuery({
|
|
2129
2139
|
org: string,
|
|
@@ -2134,12 +2144,12 @@ const { data: credentials, isLoading } = useGetUserCredentialsQuery({
|
|
|
2134
2144
|
\`\`\``,
|
|
2135
2145
|
useGetIntegrationCredentialsQuery: `# useGetIntegrationCredentialsQuery
|
|
2136
2146
|
|
|
2137
|
-
**Package**: \`@iblai/data-layer\`
|
|
2147
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2138
2148
|
**File**: \`packages/data-layer/src/features/credentials/api-slice.ts\`
|
|
2139
2149
|
**Feature**: Integrations
|
|
2140
2150
|
|
|
2141
2151
|
\`\`\`typescript
|
|
2142
|
-
import { useGetIntegrationCredentialsQuery } from '@iblai/data-layer';
|
|
2152
|
+
import { useGetIntegrationCredentialsQuery } from '@iblai/iblai-js/data-layer';
|
|
2143
2153
|
|
|
2144
2154
|
const { data: credentials, isLoading } = useGetIntegrationCredentialsQuery({
|
|
2145
2155
|
org: string,
|
|
@@ -2149,12 +2159,12 @@ const { data: credentials, isLoading } = useGetIntegrationCredentialsQuery({
|
|
|
2149
2159
|
\`\`\``,
|
|
2150
2160
|
useGetOAuthCredentialsQuery: `# useGetOAuthCredentialsQuery
|
|
2151
2161
|
|
|
2152
|
-
**Package**: \`@iblai/data-layer\`
|
|
2162
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2153
2163
|
**File**: \`packages/data-layer/src/features/credentials/api-slice.ts\`
|
|
2154
2164
|
**Feature**: OAuth
|
|
2155
2165
|
|
|
2156
2166
|
\`\`\`typescript
|
|
2157
|
-
import { useGetOAuthCredentialsQuery } from '@iblai/data-layer';
|
|
2167
|
+
import { useGetOAuthCredentialsQuery } from '@iblai/iblai-js/data-layer';
|
|
2158
2168
|
|
|
2159
2169
|
const { data: credentials, isLoading } = useGetOAuthCredentialsQuery({
|
|
2160
2170
|
org: string,
|
|
@@ -2167,12 +2177,12 @@ const { data: credentials, isLoading } = useGetOAuthCredentialsQuery({
|
|
|
2167
2177
|
// ============================================================================
|
|
2168
2178
|
useGetLLMProvidersQuery: `# useGetLLMProvidersQuery
|
|
2169
2179
|
|
|
2170
|
-
**Package**: \`@iblai/data-layer\`
|
|
2180
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2171
2181
|
**File**: \`packages/data-layer/src/features/llms/api-slice.ts\`
|
|
2172
2182
|
**Feature**: LLM Configuration
|
|
2173
2183
|
|
|
2174
2184
|
\`\`\`typescript
|
|
2175
|
-
import { useGetLLMProvidersQuery } from '@iblai/data-layer';
|
|
2185
|
+
import { useGetLLMProvidersQuery } from '@iblai/iblai-js/data-layer';
|
|
2176
2186
|
|
|
2177
2187
|
const { data: providers, isLoading } = useGetLLMProvidersQuery({
|
|
2178
2188
|
org: string,
|
|
@@ -2182,12 +2192,12 @@ const { data: providers, isLoading } = useGetLLMProvidersQuery({
|
|
|
2182
2192
|
\`\`\``,
|
|
2183
2193
|
useGetLLMModelsQuery: `# useGetLLMModelsQuery
|
|
2184
2194
|
|
|
2185
|
-
**Package**: \`@iblai/data-layer\`
|
|
2195
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2186
2196
|
**File**: \`packages/data-layer/src/features/llms/api-slice.ts\`
|
|
2187
2197
|
**Feature**: LLM Configuration
|
|
2188
2198
|
|
|
2189
2199
|
\`\`\`typescript
|
|
2190
|
-
import { useGetLLMModelsQuery } from '@iblai/data-layer';
|
|
2200
|
+
import { useGetLLMModelsQuery } from '@iblai/iblai-js/data-layer';
|
|
2191
2201
|
|
|
2192
2202
|
const { data: models, isLoading } = useGetLLMModelsQuery({
|
|
2193
2203
|
org: string,
|
|
@@ -2201,12 +2211,12 @@ const { data: models, isLoading } = useGetLLMModelsQuery({
|
|
|
2201
2211
|
// ============================================================================
|
|
2202
2212
|
useGetChatFilesQuery: `# useGetChatFilesQuery
|
|
2203
2213
|
|
|
2204
|
-
**Package**: \`@iblai/data-layer\`
|
|
2214
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2205
2215
|
**File**: \`packages/data-layer/src/features/chat-files/api-slice.ts\`
|
|
2206
2216
|
**Feature**: Chat Files
|
|
2207
2217
|
|
|
2208
2218
|
\`\`\`typescript
|
|
2209
|
-
import { useGetChatFilesQuery } from '@iblai/data-layer';
|
|
2219
|
+
import { useGetChatFilesQuery } from '@iblai/iblai-js/data-layer';
|
|
2210
2220
|
|
|
2211
2221
|
const { data: files, isLoading } = useGetChatFilesQuery({
|
|
2212
2222
|
org: string,
|
|
@@ -2218,12 +2228,12 @@ const { data: files, isLoading } = useGetChatFilesQuery({
|
|
|
2218
2228
|
\`\`\``,
|
|
2219
2229
|
useUploadChatFileMutation: `# useUploadChatFileMutation
|
|
2220
2230
|
|
|
2221
|
-
**Package**: \`@iblai/data-layer\`
|
|
2231
|
+
**Package**: \`@iblai/iblai-js/data-layer\`
|
|
2222
2232
|
**File**: \`packages/data-layer/src/features/chat-files/api-slice.ts\`
|
|
2223
2233
|
**Feature**: Chat Files
|
|
2224
2234
|
|
|
2225
2235
|
\`\`\`typescript
|
|
2226
|
-
import { useUploadChatFileMutation } from '@iblai/data-layer';
|
|
2236
|
+
import { useUploadChatFileMutation } from '@iblai/iblai-js/data-layer';
|
|
2227
2237
|
|
|
2228
2238
|
const [uploadFile, { isLoading }] = useUploadChatFileMutation();
|
|
2229
2239
|
|
|
@@ -2258,7 +2268,7 @@ export function getApiQueryInfo(queryName) {
|
|
|
2258
2268
|
- useGetFreeUsageCountQuery - Free usage count
|
|
2259
2269
|
- useSeedMentorsMutation - Seed default mentors
|
|
2260
2270
|
- useGetModerationLogsQuery - Moderation logs
|
|
2261
|
-
-
|
|
2271
|
+
- useEditMentorAndRefreshListMutation - Edit mentor and refresh lists
|
|
2262
2272
|
|
|
2263
2273
|
**Shareable Links:**
|
|
2264
2274
|
- useCreateShareableLinkMutation - Create share link
|