@epam/ai-dial-chat-hooks 1.4.0-dev.122 → 1.4.0-dev.127
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/catalog/create-publish-api.d.ts +7 -1
- package/catalog/create-publish-api.d.ts.map +1 -1
- package/catalog/create-publish-api.js +1 -0
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts +22 -5
- package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts.map +1 -1
- package/catalog/useResourceSavePanel/useResourceSavePanel.js +181 -125
- package/file-manager.js +33 -33
- package/files/dial-file.d.ts +6 -0
- package/files/dial-file.d.ts.map +1 -1
- package/files/dial-file.js +17 -12
- package/index.js +262 -262
- package/org-units/org-unit-guards.d.ts +72 -1
- package/org-units/org-unit-guards.d.ts.map +1 -1
- package/org-units/org-unit-guards.js +53 -16
- package/org-units/useOrgUnits/useOrgUnits.d.ts +6 -4
- package/org-units/useOrgUnits/useOrgUnits.d.ts.map +1 -1
- package/org-units/useOrgUnits/useOrgUnits.js +37 -35
- package/package.json +17 -17
- package/project/project-conversation-data-source.js +4 -4
- package/scheduled-task/scheduled-task-display.d.ts +47 -0
- package/scheduled-task/scheduled-task-display.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-display.js +55 -39
- package/scheduled-task/scheduled-task-time-format.d.ts +5 -3
- package/scheduled-task/scheduled-task-time-format.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-time-format.js +3 -2
- package/scheduled-tasks.js +14 -14
- package/utils.js +18 -18
|
@@ -13,11 +13,12 @@ var e = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/, t = /^(\d{1,2}):(\d{2})$/, n = /* @__
|
|
|
13
13
|
dateStyle: "medium",
|
|
14
14
|
timeStyle: "short",
|
|
15
15
|
timeZone: "UTC"
|
|
16
|
-
}).format(/* @__PURE__ */ new Date(`${e}:00Z`)), a = (e, t) => {
|
|
16
|
+
}).format(/* @__PURE__ */ new Date(`${e}:00Z`)), a = (e, t, n) => {
|
|
17
17
|
try {
|
|
18
18
|
return new Intl.DateTimeFormat(t, {
|
|
19
19
|
dateStyle: "medium",
|
|
20
|
-
timeStyle: "short"
|
|
20
|
+
timeStyle: "short",
|
|
21
|
+
timeZone: n
|
|
21
22
|
}).format(new Date(e));
|
|
22
23
|
} catch {
|
|
23
24
|
return e;
|
package/scheduled-tasks.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { UnsupportedTriggerReason as e } from "./scheduled-task/scheduled-task-mapping.js";
|
|
2
2
|
import { ScheduledTaskTriggerDescriptionKind as t, describeScheduledTaskTrigger as n } from "./scheduled-task/scheduled-task-description.js";
|
|
3
3
|
import { UTC_TIMEZONE_ID as r, findTimezoneOption as i, getTimezoneOptions as a, isKnownTimezone as o, isSameTimezone as s } from "./shared/timezones.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { checkScheduledTaskAuthSessionError as
|
|
14
|
-
import { useScheduledTaskSkillDisplayNames as
|
|
15
|
-
import { ActiveScheduledTaskDetailState as
|
|
16
|
-
import { useActiveScheduledTaskDetails as
|
|
17
|
-
export {
|
|
4
|
+
import { getNextCronOccurrence as c, hasScheduledTaskWindowEnded as l } from "./scheduled-task/scheduled-task-next-occurrence.js";
|
|
5
|
+
import { SCHEDULED_TASK_WALL_DATE_TIME_PATTERN as u, ScheduledTaskWeekdayStyle as d, formatScheduledTaskClockTime as f, formatScheduledTaskInstant as p, formatScheduledTaskRunDate as m, formatScheduledTaskRunTime as h, formatScheduledTaskWeekday as g, formatScheduledTaskWeekdays as _, formatZonedDateTime as v } from "./scheduled-task/scheduled-task-time-format.js";
|
|
6
|
+
import { ScheduledTaskActivationBlock as y, ScheduledTaskDeleteErrorKind as b, classifyScheduledTaskDeleteError as x, formatScheduledTaskActiveWindow as S, formatScheduledTaskNextRunTime as C, formatScheduledTaskRunDuration as w, formatScheduledTaskRunTimestamp as T, formatScheduledTaskScheduleLabel as E, formatScheduledTaskTriggerTime as D, getScheduledTaskActivationBlock as O, selectScheduledTaskErrorMessage as k, toScheduledTaskItem as A, toScheduledTaskItems as j, toScheduledTaskRunItem as M, toScheduledTaskRunItems as N } from "./scheduled-task/scheduled-task-display.js";
|
|
7
|
+
import { mapFormValuesToCreateBody as P, mapFormValuesToUpdateBody as F, mapScheduledTaskDtoToFormValues as I } from "./scheduled-task/scheduled-task-trigger.js";
|
|
8
|
+
import { prepareScheduledTaskCreateBody as L, prepareScheduledTaskUpdateBody as R } from "./scheduled-task/scheduled-task-preparation.js";
|
|
9
|
+
import { createScheduledTasksApiClient as z } from "./scheduled-task/scheduled-tasks-api-client.js";
|
|
10
|
+
import { useScheduledTasks as B } from "./scheduled-task/use-scheduled-tasks.js";
|
|
11
|
+
import { mergeRunsById as V, useScheduledTaskRuns as H } from "./scheduled-task/use-scheduled-task-runs.js";
|
|
12
|
+
import { ScheduledTaskRunStatusFeedback as U, mergeScheduledTaskRuns as W, useStartScheduledTask as G } from "./scheduled-task/useStartScheduledTask.js";
|
|
13
|
+
import { checkScheduledTaskAuthSessionError as K } from "./scheduled-task/check-scheduled-task-auth-session-error.js";
|
|
14
|
+
import { useScheduledTaskSkillDisplayNames as q } from "./scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js";
|
|
15
|
+
import { ActiveScheduledTaskDetailState as J, ActiveScheduledTaskStatus as Y, resolveActiveScheduledTask as X } from "./scheduled-task/active-scheduled-task.js";
|
|
16
|
+
import { useActiveScheduledTaskDetails as Z } from "./scheduled-task/useActiveScheduledTaskDetails.js";
|
|
17
|
+
export { J as ActiveScheduledTaskDetailState, Y as ActiveScheduledTaskStatus, u as SCHEDULED_TASK_WALL_DATE_TIME_PATTERN, y as ScheduledTaskActivationBlock, b as ScheduledTaskDeleteErrorKind, U as ScheduledTaskRunStatusFeedback, t as ScheduledTaskTriggerDescriptionKind, d as ScheduledTaskWeekdayStyle, r as UTC_TIMEZONE_ID, e as UnsupportedTriggerReason, K as checkScheduledTaskAuthSessionError, x as classifyScheduledTaskDeleteError, z as createScheduledTasksApiClient, n as describeScheduledTaskTrigger, i as findTimezoneOption, S as formatScheduledTaskActiveWindow, f as formatScheduledTaskClockTime, p as formatScheduledTaskInstant, C as formatScheduledTaskNextRunTime, m as formatScheduledTaskRunDate, w as formatScheduledTaskRunDuration, h as formatScheduledTaskRunTime, T as formatScheduledTaskRunTimestamp, E as formatScheduledTaskScheduleLabel, D as formatScheduledTaskTriggerTime, g as formatScheduledTaskWeekday, _ as formatScheduledTaskWeekdays, v as formatZonedDateTime, c as getNextCronOccurrence, O as getScheduledTaskActivationBlock, a as getTimezoneOptions, l as hasScheduledTaskWindowEnded, o as isKnownTimezone, s as isSameTimezone, P as mapFormValuesToCreateBody, F as mapFormValuesToUpdateBody, I as mapScheduledTaskDtoToFormValues, V as mergeRunsById, W as mergeScheduledTaskRuns, L as prepareScheduledTaskCreateBody, R as prepareScheduledTaskUpdateBody, X as resolveActiveScheduledTask, k as selectScheduledTaskErrorMessage, A as toScheduledTaskItem, j as toScheduledTaskItems, M as toScheduledTaskRunItem, N as toScheduledTaskRunItems, Z as useActiveScheduledTaskDetails, H as useScheduledTaskRuns, q as useScheduledTaskSkillDisplayNames, B as useScheduledTasks, G as useStartScheduledTask };
|
package/utils.js
CHANGED
|
@@ -9,21 +9,21 @@ import { PromptSource as x, parsePromptResourceUrl as S } from "./prompt/prompt-
|
|
|
9
9
|
import { getRunnerSchemas as C, isCustomAppSchema as w, isQuickAppSchema as T } from "./shared/application-schema.js";
|
|
10
10
|
import { buildExternalServiceScopeId as E, getExternalServiceFallbackName as D, parseExternalServiceUrl as O } from "./shared/external-services.js";
|
|
11
11
|
import { SaveDestinationRoot as k } from "./catalog/save-destination-root.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { useFolderGuards as
|
|
29
|
-
export {
|
|
12
|
+
import { OrgUnitsStatus as A } from "./org-units/types.js";
|
|
13
|
+
import { OrgUnitFolderGuardPurpose as j, buildFolderGuards as M, getCatalogPublishDirectAvailability as N, getDependencyOrgUnitNamespaces as P, getDependencyTypeOfNamespace as F, getMissingDirectWriteNamespaces as I, getOrgUnitNamespace as L, getPublishDirectAvailability as R, toPublishDisabledReason as z } from "./org-units/org-unit-guards.js";
|
|
14
|
+
import { buildPromptExportEnvelope as B, buildPromptExportFileName as V, serializePromptExport as H } from "./prompt/export-prompt.js";
|
|
15
|
+
import { PROMPT_CONTENT_MAX_LENGTH as U, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as W, PROMPT_DESCRIPTION_MAX_LENGTH as G, PROMPT_FIELD_VALIDATORS as K, PROMPT_NAME_MAX_LENGTH as q, PromptFieldError as J, buildPromptPath as Y, getRemainingCharacters as X, validatePromptContent as Z, validatePromptDescription as Q, validatePromptName as $ } from "./prompt/prompt.js";
|
|
16
|
+
import { usePromptsState as ee } from "./prompt/usePromptsState/usePromptsState.js";
|
|
17
|
+
import { getBrowserTimezone as te } from "./shared/browser-timezone.js";
|
|
18
|
+
import { apSchedulerDayToJsDay as ne, jsDayToApSchedulerDay as re } from "./shared/cron-weekday.js";
|
|
19
|
+
import { isValidAbsoluteUrl as ie, isValidFeaturesData as ae, parseFeaturesData as oe } from "./shared/custom-apps.js";
|
|
20
|
+
import { EXTERNAL_SERVICE_SIGNIN_METHOD as se, PendingSigninEventKind as ce, TOOLSET_SIGNIN_METHOD as le } from "./shared/client-channel.js";
|
|
21
|
+
import { ColorScheme as ue, applyThemeColors as de, getOsPreferredTheme as fe } from "./shared/theme-colors.js";
|
|
22
|
+
import { useUsageData as pe } from "./usage/useUsageData/useUsageData.js";
|
|
23
|
+
import { triggerBrowserDownload as me } from "./files/browser-download.js";
|
|
24
|
+
import { usePersistedState as he } from "./shared/usePersistedState/usePersistedState.js";
|
|
25
|
+
import { useAppVersionCheck as ge } from "./shared/useAppVersionCheck/useAppVersionCheck.js";
|
|
26
|
+
import { getCleanedLocationTarget as _e } from "./shared/url-cleanup.js";
|
|
27
|
+
import { useOrgUnits as ve } from "./org-units/useOrgUnits/useOrgUnits.js";
|
|
28
|
+
import { useFolderGuards as ye } from "./org-units/useFolderGuards/useFolderGuards.js";
|
|
29
|
+
export { ue as ColorScheme, se as EXTERNAL_SERVICE_SIGNIN_METHOD, j as OrgUnitFolderGuardPurpose, A as OrgUnitsStatus, U as PROMPT_CONTENT_MAX_LENGTH, W as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, G as PROMPT_DESCRIPTION_MAX_LENGTH, K as PROMPT_FIELD_VALIDATORS, q as PROMPT_NAME_MAX_LENGTH, ce as PendingSigninEventKind, J as PromptFieldError, x as PromptSource, k as SaveDestinationRoot, le as TOOLSET_SIGNIN_METHOD, ne as apSchedulerDayToJsDay, p as appendLocaleCode, de as applyThemeColors, m as buildAdditionalLocaleOptions, E as buildExternalServiceScopeId, M as buildFolderGuards, B as buildPromptExportEnvelope, V as buildPromptExportFileName, Y as buildPromptPath, h as composeLocalePayload, o as createCsrfMiddleware, s as createUnauthorizedMiddleware, g as decomposeLocalizedFields, y as formatCalendarDate, e as getAcceptInvitationErrorItemName, t as getApiErrorDetails, n as getApiErrorMessage, r as getApiErrorStatus, te as getBrowserTimezone, N as getCatalogPublishDirectAvailability, _e as getCleanedLocationTarget, P as getDependencyOrgUnitNamespaces, F as getDependencyTypeOfNamespace, D as getExternalServiceFallbackName, I as getMissingDirectWriteNamespaces, L as getOrgUnitNamespace, fe as getOsPreferredTheme, R as getPublishDirectAvailability, X as getRemainingCharacters, C as getRunnerSchemas, c as includesIgnoreCase, i as isConversationNotFoundError, w as isCustomAppSchema, T as isQuickAppSchema, ie as isValidAbsoluteUrl, ae as isValidFeaturesData, re as jsDayToApSchedulerDay, b as padTwoDigits, O as parseExternalServiceUrl, oe as parseFeaturesData, S as parsePromptResourceUrl, _ as resolveLocalizedText, l as safeDecodeURI, u as safeDecodeURIComponent, H as serializePromptExport, d as stripSurroundingSlashes, f as stripTrailingSlashes, v as toBaseLocale, z as toPublishDisabledReason, me as triggerBrowserDownload, ge as useAppVersionCheck, ye as useFolderGuards, ve as useOrgUnits, he as usePersistedState, ee as usePromptsState, pe as useUsageData, Z as validatePromptContent, Q as validatePromptDescription, $ as validatePromptName, a as withApiErrorMapping };
|