@iblai/web-utils 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/data-layer/src/core/index.d.ts +2 -1
  2. package/dist/data-layer/src/features/analytics/api-slice.d.ts +1879 -122
  3. package/dist/data-layer/src/features/analytics/constants.d.ts +56 -1
  4. package/dist/data-layer/src/features/analytics/types.d.ts +327 -1
  5. package/dist/data-layer/src/features/api-keys/api-slice.d.ts +59 -70
  6. package/dist/data-layer/src/features/apps/api-slice.d.ts +73 -84
  7. package/dist/data-layer/src/features/auth/api-slice.d.ts +504 -2
  8. package/dist/data-layer/src/features/auth/constants.d.ts +13 -1
  9. package/dist/data-layer/src/features/auth/types.d.ts +20 -0
  10. package/dist/data-layer/src/features/billing/api-slice.d.ts +33 -33
  11. package/dist/data-layer/src/features/career/api-slice.d.ts +2345 -180
  12. package/dist/data-layer/src/features/catalog/api-slice.d.ts +2578 -562
  13. package/dist/data-layer/src/features/chat/api-slice.d.ts +150 -150
  14. package/dist/data-layer/src/features/chat-history/api-slice.d.ts +134 -134
  15. package/dist/data-layer/src/features/core/api-slice.d.ts +3484 -75
  16. package/dist/data-layer/src/features/core/constants.d.ts +40 -0
  17. package/dist/data-layer/src/features/core/custom-api-slice.d.ts +1458 -0
  18. package/dist/data-layer/src/features/core/types.d.ts +27 -0
  19. package/dist/data-layer/src/features/credentials/api-slice.d.ts +859 -221
  20. package/dist/data-layer/src/features/custom-domain/api-slice.d.ts +602 -0
  21. package/dist/data-layer/src/features/custom-domain/constants.d.ts +20 -0
  22. package/dist/data-layer/src/features/custom-domain/types.d.ts +46 -0
  23. package/dist/data-layer/src/features/datasets/api-slice.d.ts +56 -56
  24. package/dist/data-layer/src/features/disclaimers/api-slice.d.ts +912 -0
  25. package/dist/data-layer/src/features/disclaimers/constants.d.ts +27 -0
  26. package/dist/data-layer/src/features/disclaimers/types.d.ts +67 -0
  27. package/dist/data-layer/src/features/edx-proctoring/api-slice.d.ts +590 -0
  28. package/dist/data-layer/src/features/edx-proctoring/constants.d.ts +15 -0
  29. package/dist/data-layer/src/features/edx-proctoring/types.d.ts +61 -0
  30. package/dist/data-layer/src/features/llms/api-slice.d.ts +40 -40
  31. package/dist/data-layer/src/features/memory/api-slice.d.ts +2129 -0
  32. package/dist/data-layer/src/features/memory/constants.d.ts +50 -0
  33. package/dist/data-layer/src/features/memory/types.d.ts +122 -0
  34. package/dist/data-layer/src/features/mentor/api-slice.d.ts +1176 -470
  35. package/dist/data-layer/src/features/mentor/constants.d.ts +8 -0
  36. package/dist/data-layer/src/features/mentor/custom-api-slice.d.ts +529 -1
  37. package/dist/data-layer/src/features/mentor/types.d.ts +39 -0
  38. package/dist/data-layer/src/features/mentor-categories/api-slice.d.ts +436 -40
  39. package/dist/data-layer/src/features/notifications/api-slice.d.ts +750 -96
  40. package/dist/data-layer/src/features/notifications/constants.d.ts +20 -0
  41. package/dist/data-layer/src/features/notifications/custom-api-slice.d.ts +996 -0
  42. package/dist/data-layer/src/features/notifications/types.d.ts +46 -0
  43. package/dist/data-layer/src/features/per-learner/api-slice.d.ts +118 -118
  44. package/dist/data-layer/src/features/platform/api-slice.d.ts +345 -191
  45. package/dist/data-layer/src/features/platform/constants.d.ts +17 -0
  46. package/dist/data-layer/src/features/platform/custom-api-slice.d.ts +493 -0
  47. package/dist/data-layer/src/features/platform/types.d.ts +48 -0
  48. package/dist/data-layer/src/features/projects/api-slice.d.ts +2026 -0
  49. package/dist/data-layer/src/features/projects/constants.d.ts +51 -0
  50. package/dist/data-layer/src/features/projects/types.d.ts +79 -0
  51. package/dist/data-layer/src/features/prompts/api-slice.d.ts +193 -171
  52. package/dist/data-layer/src/features/reports/api-slice.d.ts +814 -0
  53. package/dist/data-layer/src/features/search/ai-search-api-slice.d.ts +1015 -0
  54. package/dist/data-layer/src/features/search/api-slice.d.ts +59 -59
  55. package/dist/data-layer/src/features/search/constants.d.ts +31 -0
  56. package/dist/data-layer/src/features/search/types.d.ts +89 -0
  57. package/dist/data-layer/src/features/sessions/api-slice.d.ts +72 -72
  58. package/dist/data-layer/src/features/skills/api-slice.d.ts +157 -157
  59. package/dist/data-layer/src/features/stripe/api-slice.d.ts +201 -40
  60. package/dist/data-layer/src/features/stripe/constants.d.ts +5 -1
  61. package/dist/data-layer/src/features/stripe/types.d.ts +10 -0
  62. package/dist/data-layer/src/features/tenant/api-slice.d.ts +77 -86
  63. package/dist/data-layer/src/features/tenant/types.d.ts +1 -0
  64. package/dist/data-layer/src/features/tools/api-slice.d.ts +84 -40
  65. package/dist/data-layer/src/features/training-documents/api-slice.d.ts +582 -75
  66. package/dist/data-layer/src/features/user/api-slice.d.ts +124 -124
  67. package/dist/data-layer/src/features/user/constants.d.ts +3 -1
  68. package/dist/data-layer/src/features/user-invitations/api-slice.d.ts +56 -56
  69. package/dist/data-layer/src/features/utils.d.ts +8 -5
  70. package/dist/data-layer/src/index.d.ts +75 -47
  71. package/dist/data-layer/src/reducers/skills.d.ts +2 -1148
  72. package/dist/data-layer/src/services/StorageService.d.ts +1 -1
  73. package/dist/index.d.ts +1021 -5
  74. package/dist/index.esm.js +3299 -453
  75. package/dist/index.esm.js.map +1 -1
  76. package/dist/index.js +3305 -448
  77. package/dist/index.js.map +1 -1
  78. package/dist/package.json +34 -18
  79. package/dist/web-utils/src/features/chat/slice.d.ts +12 -0
  80. package/dist/web-utils/src/features/index.d.ts +1 -0
  81. package/dist/web-utils/src/features/tracking/__tests__/time-tracker.test.d.ts +1 -0
  82. package/dist/web-utils/src/features/tracking/examples.d.ts +4 -0
  83. package/dist/web-utils/src/features/tracking/index.d.ts +6 -0
  84. package/dist/web-utils/src/features/tracking/time-tracker.d.ts +29 -0
  85. package/dist/web-utils/src/features/tracking/use-time-tracker-native.d.ts +14 -0
  86. package/dist/web-utils/src/features/tracking/use-time-tracker.d.ts +14 -0
  87. package/dist/web-utils/src/hooks/chat/use-advanced-chat.d.ts +2 -2
  88. package/dist/web-utils/src/hooks/chat/use-chat-v2.d.ts +9 -1
  89. package/dist/web-utils/src/hooks/chat/use-get-chat-details.d.ts +2 -1
  90. package/dist/web-utils/src/hooks/chat/use-mentor-tools.d.ts +3 -0
  91. package/dist/web-utils/src/hooks/index.d.ts +1 -0
  92. package/dist/web-utils/src/hooks/subscription/class-subscription-flow.d.ts +6 -6
  93. package/dist/web-utils/src/hooks/subscription-v2/class-subscription-flow.d.ts +9 -8
  94. package/dist/web-utils/src/hooks/subscription-v2/use-external-pricing-plan.d.ts +1 -1
  95. package/dist/web-utils/src/hooks/tenant-metadata/use-tenant-metadata.d.ts +2 -1
  96. package/dist/web-utils/src/hooks/use-mentor-settings.d.ts +1 -0
  97. package/dist/web-utils/src/index.mobile.d.ts +10 -0
  98. package/dist/web-utils/src/index.web.d.ts +12 -0
  99. package/dist/web-utils/src/providers/auth-provider.d.ts +55 -1
  100. package/dist/web-utils/src/providers/mentor-provider.d.ts +3 -1
  101. package/dist/web-utils/src/providers/tenant-provider.d.ts +10 -5
  102. package/dist/web-utils/src/types/index.d.ts +9 -0
  103. package/dist/web-utils/src/utils/constants.d.ts +4 -0
  104. package/dist/web-utils/src/utils/helpers.d.ts +1 -0
  105. package/dist/web-utils/src/utils/platform.d.ts +7 -0
  106. package/dist/web-utils/tests/hooks/subscription/class-subscription-flow.test.d.ts +1 -0
  107. package/dist/web-utils/tests/hooks/subscription/constants.test.d.ts +1 -0
  108. package/dist/web-utils/tests/hooks/subscription/use-subscription-handler.test.d.ts +1 -0
  109. package/dist/web-utils/tests/hooks/use-day-js.test.d.ts +1 -0
  110. package/dist/web-utils/tests/setupTests.d.ts +5 -0
  111. package/dist/web-utils/tsconfig.tsbuildinfo +1 -0
  112. package/package.json +31 -17
  113. package/dist/features/chat/slice.d.ts +0 -59
  114. package/dist/features/index.d.ts +0 -1
  115. package/dist/hooks/chat/use-advanced-chat.d.ts +0 -41
  116. package/dist/hooks/chat/use-chat-v2.d.ts +0 -53
  117. package/dist/hooks/chat/use-chat.d.ts +0 -52
  118. package/dist/hooks/chat/use-get-chat-details.d.ts +0 -13
  119. package/dist/hooks/index.d.ts +0 -10
  120. package/dist/hooks/subscription/class-subscription-flow.d.ts +0 -70
  121. package/dist/hooks/subscription/constants.d.ts +0 -4
  122. package/dist/hooks/subscription/use-subscription-handler.d.ts +0 -11
  123. package/dist/hooks/subscription-v2/class-subscription-flow.d.ts +0 -62
  124. package/dist/hooks/subscription-v2/constants.d.ts +0 -5
  125. package/dist/hooks/subscription-v2/use-external-pricing-plan.d.ts +0 -7
  126. package/dist/hooks/subscription-v2/use-subscription-handler.d.ts +0 -12
  127. package/dist/hooks/use-day-js.d.ts +0 -7
  128. package/dist/providers/auth-provider.d.ts +0 -63
  129. package/dist/providers/index.d.ts +0 -3
  130. package/dist/providers/mentor-provider.d.ts +0 -40
  131. package/dist/providers/tenant-provider.d.ts +0 -60
  132. package/dist/types/chat.d.ts +0 -1
  133. package/dist/types/index.d.ts +0 -55
  134. package/dist/types/subscription.d.ts +0 -18
  135. package/dist/utils/constants.d.ts +0 -13
  136. package/dist/utils/data/advanced-tab.d.ts +0 -62
  137. package/dist/utils/helpers.d.ts +0 -1
  138. package/dist/utils/index.d.ts +0 -3
@@ -0,0 +1,51 @@
1
+ import { SERVICES } from "@data-layer/constants";
2
+ export declare const PROJECTS_CUSTOM_REDUCER_PATH = "projectsCustomApiSlice";
3
+ export declare const PROJECTS_CUSTOM_ENDPOINTS: {
4
+ GET_USER_PROJECTS: {
5
+ service: SERVICES;
6
+ path: (tenantKey: string, username: string) => string;
7
+ };
8
+ GET_USER_PROJECT_DETAILS: {
9
+ service: SERVICES;
10
+ path: (tenantKey: string, username: string, id: number) => string;
11
+ };
12
+ CREATE_USER_PROJECT: {
13
+ service: SERVICES;
14
+ path: (tenantKey: string, username: string) => string;
15
+ };
16
+ UPDATE_USER_PROJECT: {
17
+ service: SERVICES;
18
+ path: (tenantKey: string, username: string, id: number) => string;
19
+ };
20
+ DELETE_USER_PROJECT: {
21
+ service: SERVICES;
22
+ path: (tenantKey: string, username: string, id: number) => string;
23
+ };
24
+ GET_ADMIN_PROJECTS: {
25
+ service: SERVICES;
26
+ path: (tenantKey: string) => string;
27
+ };
28
+ GET_ADMIN_PROJECT_DETAILS: {
29
+ service: SERVICES;
30
+ path: (tenantKey: string, id: number) => string;
31
+ };
32
+ CREATE_ADMIN_PROJECT: {
33
+ service: SERVICES;
34
+ path: (tenantKey: string) => string;
35
+ };
36
+ UPDATE_ADMIN_PROJECT: {
37
+ service: SERVICES;
38
+ path: (tenantKey: string, id: number) => string;
39
+ };
40
+ DELETE_ADMIN_PROJECT: {
41
+ service: SERVICES;
42
+ path: (tenantKey: string, id: number) => string;
43
+ };
44
+ };
45
+ export declare const PROJECTS_QUERY_KEYS: {
46
+ GET_PROJECTS: () => string[];
47
+ GET_PROJECT_DETAILS: () => string[];
48
+ CREATE_PROJECT: () => string[];
49
+ UPDATE_PROJECT: () => string[];
50
+ DELETE_PROJECT: () => string[];
51
+ };
@@ -0,0 +1,79 @@
1
+ export interface Project {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ shared: boolean;
6
+ owner: number;
7
+ owner_username: string;
8
+ platform: number;
9
+ platform_key: string;
10
+ platform_name: string;
11
+ mentor_count: number;
12
+ is_personal: boolean;
13
+ created_at: string;
14
+ updated_at: string;
15
+ mentors: Mentor[];
16
+ instructions?: string;
17
+ files?: File[];
18
+ }
19
+ export interface Mentor {
20
+ id: number;
21
+ name: string;
22
+ description: string;
23
+ unique_id: string;
24
+ slug: string;
25
+ created_at: string;
26
+ }
27
+ export type ProjectsFetchResponse = {
28
+ results: Project[];
29
+ count: number;
30
+ next: string | null;
31
+ previous: string | null;
32
+ };
33
+ export type GetProjectsParams = {
34
+ shared?: boolean;
35
+ search?: string;
36
+ sort?: string;
37
+ limit?: number;
38
+ offset?: number;
39
+ username?: string;
40
+ };
41
+ export type GetProjectsArgs = {
42
+ tenantKey: string;
43
+ username?: string;
44
+ params?: GetProjectsParams;
45
+ };
46
+ export type GetProjectDetailsArgs = {
47
+ tenantKey: string;
48
+ username?: string;
49
+ id: number;
50
+ };
51
+ export type CreateProjectData = {
52
+ name: string;
53
+ description: string;
54
+ shared: boolean;
55
+ mentors_to_add?: string[];
56
+ };
57
+ export type CreateProjectArgs = {
58
+ tenantKey: string;
59
+ username?: string;
60
+ data: CreateProjectData;
61
+ };
62
+ export type UpdateProjectData = {
63
+ name?: string;
64
+ description?: string;
65
+ shared?: boolean;
66
+ mentors_to_add?: string[];
67
+ mentors_to_remove?: string[];
68
+ };
69
+ export type UpdateProjectArgs = {
70
+ tenantKey: string;
71
+ username?: string;
72
+ id: number;
73
+ data: UpdateProjectData;
74
+ };
75
+ export type DeleteProjectArgs = {
76
+ tenantKey: string;
77
+ username?: string;
78
+ id: number;
79
+ };