@epam/ai-dial-chat-hooks 1.4.0-dev.8 → 1.4.0-dev.82
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/attachment/useAttachmentAction/useAttachmentAction.d.ts +1 -1
- package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
- package/attachment/useAttachmentAction/useAttachmentAction.js +35 -44
- package/catalog/create-publish-api.d.ts +9 -1
- package/catalog/create-publish-api.d.ts.map +1 -1
- package/catalog/create-publish-api.js +8 -0
- package/catalog/entity-details.d.ts +5 -2
- package/catalog/entity-details.d.ts.map +1 -1
- package/catalog/map-entity-details-to-catalog.d.ts +4 -0
- package/catalog/map-entity-details-to-catalog.d.ts.map +1 -1
- package/catalog/map-entity-details-to-catalog.js +15 -13
- package/catalog/publish-dependency-icons.d.ts +22 -0
- package/catalog/publish-dependency-icons.d.ts.map +1 -0
- package/catalog/publish-dependency-icons.js +11 -0
- package/catalog/publish.d.ts +15 -2
- package/catalog/publish.d.ts.map +1 -1
- package/catalog/publish.js +15 -4
- package/catalog/use-publish-dependencies.d.ts +19 -0
- package/catalog/use-publish-dependencies.d.ts.map +1 -0
- package/catalog/use-publish-dependencies.js +25 -0
- package/catalog/useVersionHistory/useVersionHistory.d.ts +38 -0
- package/catalog/useVersionHistory/useVersionHistory.d.ts.map +1 -0
- package/catalog/useVersionHistory/useVersionHistory.js +49 -0
- package/catalog/useVersionHistory/useVersionHistorySection.d.ts +30 -0
- package/catalog/useVersionHistory/useVersionHistorySection.d.ts.map +1 -0
- package/catalog/useVersionHistory/useVersionHistorySection.js +31 -0
- package/catalog/version-history.d.ts +42 -0
- package/catalog/version-history.d.ts.map +1 -0
- package/catalog/version-history.js +27 -0
- package/catalog.js +36 -31
- package/conversation/announcement-message.d.ts +12 -0
- package/conversation/announcement-message.d.ts.map +1 -1
- package/conversation/announcement-message.js +16 -10
- package/conversation/useConversationStream/generation-resume.d.ts.map +1 -1
- package/conversation/useConversationStream/generation-resume.js +119 -96
- package/conversation.js +44 -44
- package/entry-points/catalog.d.ts +5 -0
- package/entry-points/catalog.d.ts.map +1 -1
- package/entry-points/file-manager.d.ts +1 -0
- package/entry-points/file-manager.d.ts.map +1 -1
- package/entry-points/project.d.ts +5 -0
- package/entry-points/project.d.ts.map +1 -1
- package/entry-points/scheduled-tasks.d.ts +1 -0
- package/entry-points/scheduled-tasks.d.ts.map +1 -1
- package/entry-points/utils.d.ts +3 -0
- package/entry-points/utils.d.ts.map +1 -1
- package/file-manager.js +33 -32
- package/files/annotation.d.ts +3 -3
- package/files/annotation.d.ts.map +1 -1
- package/files/annotation.js +12 -11
- package/files/attachment-canvas.d.ts +1 -1
- package/files/attachment-canvas.d.ts.map +1 -1
- package/files/attachment-canvas.js +135 -135
- package/files/attachment-type-labels.d.ts +3 -0
- package/files/attachment-type-labels.d.ts.map +1 -0
- package/files/attachment-type-labels.js +12 -0
- package/files/attachment-types.d.ts +0 -2
- package/files/attachment-types.d.ts.map +1 -1
- package/files/attachment-types.js +7 -14
- package/files/dial-file.d.ts +18 -0
- package/files/dial-file.d.ts.map +1 -1
- package/files/dial-file.js +30 -5
- package/index.d.ts +15 -0
- package/index.d.ts.map +1 -1
- package/index.js +255 -241
- package/org-units/models.d.ts +9 -0
- package/org-units/models.d.ts.map +1 -0
- package/org-units/types.d.ts +14 -0
- package/org-units/types.d.ts.map +1 -0
- package/org-units/types.js +6 -0
- package/org-units/useOrgUnits/useOrgUnits.d.ts +19 -0
- package/org-units/useOrgUnits/useOrgUnits.d.ts.map +1 -0
- package/org-units/useOrgUnits/useOrgUnits.js +34 -0
- package/package.json +19 -19
- package/project/project-sharing-client.d.ts +8 -0
- package/project/project-sharing-client.d.ts.map +1 -0
- package/project/project-sharing-client.js +11 -0
- package/project/project-sharing.d.ts +28 -0
- package/project/project-sharing.d.ts.map +1 -0
- package/project/project-sharing.js +22 -0
- package/project/use-pinned-project-chats.d.ts +4 -2
- package/project/use-pinned-project-chats.d.ts.map +1 -1
- package/project/use-pinned-project-chats.js +152 -96
- package/project/use-project-conversations.d.ts.map +1 -1
- package/project/use-project-conversations.js +2 -2
- package/project/use-project-remove-from-list.d.ts +30 -0
- package/project/use-project-remove-from-list.d.ts.map +1 -0
- package/project/use-project-remove-from-list.js +39 -0
- package/project/use-project-revoke-access.d.ts +15 -0
- package/project/use-project-revoke-access.d.ts.map +1 -0
- package/project/use-project-revoke-access.js +32 -0
- package/project/use-project-share-recipients.d.ts +7 -0
- package/project/use-project-share-recipients.d.ts.map +1 -0
- package/project/use-project-share-recipients.js +36 -0
- package/project/use-projects.d.ts +1 -0
- package/project/use-projects.d.ts.map +1 -1
- package/project/use-projects.js +2 -1
- package/project.js +7 -2
- package/scheduled-task/scheduled-task-description.d.ts +19 -13
- package/scheduled-task/scheduled-task-description.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-description.js +39 -55
- package/scheduled-task/scheduled-task-display.d.ts +19 -5
- package/scheduled-task/scheduled-task-display.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-display.js +43 -38
- package/scheduled-task/scheduled-task-next-occurrence.d.ts +7 -5
- package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-next-occurrence.js +15 -15
- package/scheduled-task/scheduled-task-trigger.d.ts +6 -4
- package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -1
- package/scheduled-task/scheduled-task-trigger.js +92 -115
- package/scheduled-tasks.js +14 -13
- package/shared/timezones.d.ts +30 -0
- package/shared/timezones.d.ts.map +1 -0
- package/shared/timezones.js +102 -0
- package/utils.js +5 -3
- package/shared/cron-day-of-month.d.ts +0 -21
- package/shared/cron-day-of-month.d.ts.map +0 -1
- package/shared/cron-day-of-month.js +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DisplayAttachment } from '@epam/ai-dial-chat-shared';
|
|
2
|
-
/** Resolves a DIAL Core file id to a downloadable URL. Host-owned — encodes the app's own file-download
|
|
2
|
+
/** Resolves a DIAL Core file id or project file id to a downloadable URL, or `undefined` when the host serves none. Host-owned — encodes the app's own file-download endpoints. */
|
|
3
3
|
export type ResolveDownloadUrl = (fileId: string) => string | undefined;
|
|
4
4
|
/** Parameters for {@link useAttachmentAction}. */
|
|
5
5
|
export interface UseAttachmentActionParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAttachmentAction.d.ts","sourceRoot":"","sources":["../../../src/attachment/useAttachmentAction/useAttachmentAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"useAttachmentAction.d.ts","sourceRoot":"","sources":["../../../src/attachment/useAttachmentAction/useAttachmentAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAC;AAWnC,mLAAmL;AACnL,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;AAExE,kDAAkD;AAClD,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,kBAAkB,EAAE,kBAAkB,CAAC;CACxC;AAED,mDAAmD;AACnD,MAAM,WAAW,yBAAyB;IACxC,kGAAkG;IAClG,qBAAqB,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAChE;AASD,oIAAoI;AACpI,eAAO,MAAM,wBAAwB,GACnC,YAAY,iBAAiB,KAC5B,OACkE,CAAC;AAEtE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,YAAY,iBAAiB,EAC7B,oBAAoB,kBAAkB,KACrC,OA0BF,CAAC;AAiCF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,yBAEjC,yBAAyB,KAAG,yBAmC9B,CAAC"}
|
|
@@ -1,43 +1,34 @@
|
|
|
1
|
-
import { isDialFileId as e, isDialFolderId as t } from "../../files/dial-file.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { isDialFileId as e, isDialFolderId as t, isDialProjectFileId as n, isDialStoredFileId as r } from "../../files/dial-file.js";
|
|
2
|
+
import { openAnnotationAttachment as i } from "../../files/annotation.js";
|
|
3
|
+
import { AttachmentContentType as a, useAttachmentCanvas as o } from "@epam/ai-dial-attachment-canvas";
|
|
4
|
+
import { MIMEType as s, base64ToBlob as c, ensureDownloadFilename as l, triggerAnchorDownload as u, triggerBlobDownload as d } from "@epam/ai-dial-chat-shared";
|
|
5
|
+
import { parsePdfPageReference as f } from "@epam/ai-dial-quotations";
|
|
6
|
+
import { useCallback as p } from "react";
|
|
6
7
|
//#region src/attachment/useAttachmentAction/useAttachmentAction.ts
|
|
7
|
-
var
|
|
8
|
-
let { url: n, name: r, contentType:
|
|
9
|
-
if (
|
|
8
|
+
var m = (r) => r != null && (e(r) && !t(r) || n(r)), h = (e) => m(e.url) || e.data != null, g = (e, t) => {
|
|
9
|
+
let { url: n, name: r, contentType: i, data: a } = e;
|
|
10
|
+
if (m(n)) {
|
|
10
11
|
let e = t(n);
|
|
11
|
-
return e != null && (
|
|
12
|
+
return e != null && (u(e, l(r, n, i)), !0);
|
|
12
13
|
}
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
let
|
|
16
|
-
if (
|
|
17
|
-
let i = r.
|
|
18
|
-
if (e(i)) {
|
|
19
|
-
let e = n(i);
|
|
20
|
-
if (e == null) return;
|
|
21
|
-
let r = t.title ?? i.split("/").pop() ?? "";
|
|
22
|
-
s(e, o(r, i, t.type));
|
|
23
|
-
} else window.open(r, "_blank", "noopener,noreferrer");
|
|
24
|
-
}, h = (t, r) => {
|
|
25
|
-
let i = l(t.url);
|
|
14
|
+
return a != null && (d(c(a, i || s.Plain), l(r, n, i)), !0);
|
|
15
|
+
}, _ = (e, t) => {
|
|
16
|
+
let n = f(e.url);
|
|
17
|
+
if (n == null) return null;
|
|
18
|
+
let i = r(n.baseUrl) ? t(n.baseUrl) : n.baseUrl;
|
|
26
19
|
if (i == null) return null;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
type: n.Pdf,
|
|
31
|
-
url: a
|
|
20
|
+
if (n.page == null) return {
|
|
21
|
+
type: a.Pdf,
|
|
22
|
+
url: i
|
|
32
23
|
};
|
|
33
|
-
let o = `reference-page-${
|
|
24
|
+
let o = `reference-page-${n.page}`;
|
|
34
25
|
return {
|
|
35
|
-
type:
|
|
36
|
-
url:
|
|
26
|
+
type: a.Pdf,
|
|
27
|
+
url: i,
|
|
37
28
|
highlights: [{
|
|
38
29
|
id: o,
|
|
39
30
|
bboxes: [{
|
|
40
|
-
page:
|
|
31
|
+
page: n.page,
|
|
41
32
|
x1: 0,
|
|
42
33
|
y1: 0,
|
|
43
34
|
x2: 0,
|
|
@@ -50,22 +41,22 @@ var d = (n) => n != null && e(n) && !t(n), f = (e) => d(e.url) || e.data != null
|
|
|
50
41
|
}],
|
|
51
42
|
selectedHighlightId: o
|
|
52
43
|
};
|
|
53
|
-
},
|
|
54
|
-
let { openCanvas: t } =
|
|
55
|
-
return { handleAttachmentClick:
|
|
56
|
-
let { url: r, referenceUrl:
|
|
57
|
-
if (r != null ||
|
|
58
|
-
|
|
44
|
+
}, v = ({ resolveDownloadUrl: e }) => {
|
|
45
|
+
let { openCanvas: t } = o();
|
|
46
|
+
return { handleAttachmentClick: p((n) => {
|
|
47
|
+
let { url: r, referenceUrl: a, data: o, name: s } = n;
|
|
48
|
+
if (r != null || o != null) {
|
|
49
|
+
g(n, e);
|
|
59
50
|
return;
|
|
60
51
|
}
|
|
61
|
-
if (
|
|
62
|
-
let
|
|
52
|
+
if (a == null) return;
|
|
53
|
+
let c = {
|
|
63
54
|
type: n.contentType,
|
|
64
|
-
url:
|
|
65
|
-
title:
|
|
66
|
-
},
|
|
67
|
-
|
|
55
|
+
url: a,
|
|
56
|
+
title: s
|
|
57
|
+
}, l = _(c, e);
|
|
58
|
+
l ? t(l, s) : i(c, e);
|
|
68
59
|
}, [t, e]) };
|
|
69
60
|
};
|
|
70
61
|
//#endregion
|
|
71
|
-
export {
|
|
62
|
+
export { g as downloadAttachment, h as isDownloadableAttachment, v as useAttachmentAction };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PublishApi, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRuleDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto } from '@epam/ai-dial-chat-api-client';
|
|
1
|
+
import { PublishApi, PublishCatalogEntityDto, PublishHistoryEntryDto, PublishResultDto, PublishRuleDto, ResourceDependenciesResultDto, UnpublishAccessDto, UnpublishCatalogEntityDto, UnpublishResultDto, VersionStatusEntryDto } from '@epam/ai-dial-chat-api-client';
|
|
2
2
|
import { PublicationRule } from '@epam/ai-dial-publish-panel';
|
|
3
3
|
import { CatalogPublishEntityType } from './publish';
|
|
4
4
|
/**
|
|
@@ -19,8 +19,16 @@ export interface PublishApiClient {
|
|
|
19
19
|
unpublishCatalogEntity: (entityType: CatalogPublishEntityType, entityId: string, body: UnpublishCatalogEntityDto) => Promise<UnpublishResultDto>;
|
|
20
20
|
/** Reads the folders one catalog entity is already published to. */
|
|
21
21
|
getCatalogPublishHistory: (entityType: CatalogPublishEntityType, entityId: string) => Promise<PublishHistoryEntryDto[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Reads the direct dependencies of one catalog entity that are not in the
|
|
24
|
+
* public bucket. Advisory: the backend answers an empty list when it cannot
|
|
25
|
+
* resolve them.
|
|
26
|
+
*/
|
|
27
|
+
getCatalogPublishDependencies: (entityType: CatalogPublishEntityType, entityId: string) => Promise<ResourceDependenciesResultDto>;
|
|
22
28
|
/** Reads whether the caller may request removal of one catalog entity. */
|
|
23
29
|
getCatalogUnpublishAccess: (entityType: CatalogPublishEntityType, entityId: string) => Promise<UnpublishAccessDto>;
|
|
30
|
+
/** Reads the publication status of every saved version of one application or toolset. */
|
|
31
|
+
getCatalogVersionStatuses: (entityType: CatalogPublishEntityType, entityId: string) => Promise<VersionStatusEntryDto[]>;
|
|
24
32
|
/** Reads a destination folder's already-configured access rules. */
|
|
25
33
|
getPublishRules: (folderPath: string) => Promise<PublicationRule[]>;
|
|
26
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-publish-api.d.ts","sourceRoot":"","sources":["../../src/catalog/create-publish-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"create-publish-api.d.ts","sourceRoot":"","sources":["../../src/catalog/create-publish-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,6BAA6B,EAC7B,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,eAAe,KAAG,cAIvD,CAAC;AAEH,+EAA+E;AAC/E,MAAM,WAAW,gBAAgB;IAC/B,8EAA8E;IAC9E,oBAAoB,EAAE,CACpB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,uBAAuB,KAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,EAAE,CACtB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,yBAAyB,KAC5B,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,oEAAoE;IACpE,wBAAwB,EAAE,CACxB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;IACvC;;;;OAIG;IACH,6BAA6B,EAAE,CAC7B,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC5C,0EAA0E;IAC1E,yBAAyB,EAAE,CACzB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,yFAAyF;IACzF,yBAAyB,EAAE,CACzB,UAAU,EAAE,wBAAwB,EACpC,QAAQ,EAAE,MAAM,KACb,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACtC,oEAAoE;IACpE,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;CACrE;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,UAAU,KACrB,gBA4BD,CAAC"}
|
|
@@ -18,10 +18,18 @@ var e = (e) => ({
|
|
|
18
18
|
entityType: t,
|
|
19
19
|
entityId: n
|
|
20
20
|
}),
|
|
21
|
+
getCatalogPublishDependencies: (t, n) => e.getCatalogPublishDependencies({
|
|
22
|
+
entityType: t,
|
|
23
|
+
entityId: n
|
|
24
|
+
}),
|
|
21
25
|
getCatalogUnpublishAccess: (t, n) => e.getCatalogUnpublishAccess({
|
|
22
26
|
entityType: t,
|
|
23
27
|
entityId: n
|
|
24
28
|
}),
|
|
29
|
+
getCatalogVersionStatuses: (t, n) => e.getCatalogVersionStatuses({
|
|
30
|
+
entityType: t,
|
|
31
|
+
entityId: n
|
|
32
|
+
}),
|
|
25
33
|
getPublishRules: async (t) => (await e.getPublishRules({ folderPath: t })).rules.map(({ function: e, ...t }) => ({
|
|
26
34
|
...t,
|
|
27
35
|
function: e
|
|
@@ -22,6 +22,7 @@ export interface ModelCapabilities {
|
|
|
22
22
|
}
|
|
23
23
|
/** Catalog-facing specification fields for a model deployment. */
|
|
24
24
|
export interface ModelSpecification {
|
|
25
|
+
/** Provider that hosts the model, from DIAL Core's top-level model `provider`, e.g. `Azure`. */
|
|
25
26
|
provider?: string;
|
|
26
27
|
vendor?: string;
|
|
27
28
|
license?: string;
|
|
@@ -32,6 +33,10 @@ export interface ModelSpecification {
|
|
|
32
33
|
inputTypes?: string[];
|
|
33
34
|
hostedBy?: string;
|
|
34
35
|
createdAt?: number;
|
|
36
|
+
/** Date the model is deprecated but still served, as DIAL Core sends it (documented as `YYYY-MM-DD`). */
|
|
37
|
+
deprecationDate?: string;
|
|
38
|
+
/** Date the provider stops serving the model, as DIAL Core sends it (documented as `YYYY-MM-DD`). */
|
|
39
|
+
endOfService?: string;
|
|
35
40
|
}
|
|
36
41
|
/** One priced unit for a model deployment. */
|
|
37
42
|
export interface ModelPriceRow {
|
|
@@ -62,7 +67,6 @@ export interface ModelEntityDetails {
|
|
|
62
67
|
}
|
|
63
68
|
/** Catalog-facing specification fields for an agent (application) deployment. */
|
|
64
69
|
export interface AgentSpecification {
|
|
65
|
-
provider?: string;
|
|
66
70
|
vendor?: string;
|
|
67
71
|
license?: string;
|
|
68
72
|
knowledgeCutoffDate?: string;
|
|
@@ -109,7 +113,6 @@ export interface ToolsetAuthStatusDetails {
|
|
|
109
113
|
}
|
|
110
114
|
/** Catalog-facing specification fields for a toolset. */
|
|
111
115
|
export interface ToolsetSpecification {
|
|
112
|
-
provider?: string;
|
|
113
116
|
vendor?: string;
|
|
114
117
|
license?: string;
|
|
115
118
|
knowledgeCutoffDate?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-details.d.ts","sourceRoot":"","sources":["../../src/catalog/entity-details.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,MAAM,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AC1D,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AASD,yFAAyF;AACzF,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAC"}
|
|
@@ -35,6 +35,10 @@ export interface EntityDetailsLabels {
|
|
|
35
35
|
hostedBy: string;
|
|
36
36
|
/** Default: `'Release date'`. */
|
|
37
37
|
releaseDate: string;
|
|
38
|
+
/** Default: `'Deprecation date'`. */
|
|
39
|
+
deprecationDate: string;
|
|
40
|
+
/** Default: `'End of service'`. */
|
|
41
|
+
endOfService: string;
|
|
38
42
|
/** Default: `'Context window'`. */
|
|
39
43
|
contextWindow: string;
|
|
40
44
|
/** Default: `'Max output tokens'`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-entity-details-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-entity-details-to-catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,sBAAsB,EAEtB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EAGL,KAAK,qBAAqB,EAI1B,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAC;AA+B1B;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mCAAmC;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,mGAAmG;AACnG,eAAO,MAAM,6BAA6B,EAAE,
|
|
1
|
+
{"version":3,"file":"map-entity-details-to-catalog.d.ts","sourceRoot":"","sources":["../../src/catalog/map-entity-details-to-catalog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,sBAAsB,EAEtB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EACV,oBAAoB,EAEr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AAqB,EAAE,MAAM,CAAC;IAC9B,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,mGAAmG;AACnG,eAAO,MAAM,6BAA6B,EAAE,mBA2B3C,CAAC;AAgRF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,EACjB,MAAM,oBAAoB,EAC1B,SAAS,OAAO,KACf,sBAAsB,GAAG,SAoB3B,CAAC;AA8EF;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,GAC3C,SAAS,qBAAqB,EAC9B,SAAS,OAAO,CAAC,mBAAmB,CAAC,KACpC,kBAUF,CAAC;AAmWF;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,GACjD,KAAK,oBAAoB,KACxB,qBASF,CAAC"}
|
|
@@ -25,6 +25,8 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
25
25
|
parameters: "Parameters",
|
|
26
26
|
hostedBy: "Hosted by",
|
|
27
27
|
releaseDate: "Release date",
|
|
28
|
+
deprecationDate: "Deprecation date",
|
|
29
|
+
endOfService: "End of service",
|
|
28
30
|
contextWindow: "Context window",
|
|
29
31
|
maxOutputTokens: "Max output tokens",
|
|
30
32
|
inputModalities: "Input modalities",
|
|
@@ -79,6 +81,12 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
79
81
|
}), a.createdAt != null && o.push({
|
|
80
82
|
label: t.releaseDate,
|
|
81
83
|
value: n(a.createdAt)
|
|
84
|
+
}), a.deprecationDate != null && o.push({
|
|
85
|
+
label: t.deprecationDate,
|
|
86
|
+
value: l(a.deprecationDate)
|
|
87
|
+
}), a.endOfService != null && o.push({
|
|
88
|
+
label: t.endOfService,
|
|
89
|
+
value: l(a.endOfService)
|
|
82
90
|
}), a.contextWindowTokens != null && o.push({
|
|
83
91
|
label: t.contextWindow,
|
|
84
92
|
value: c(a.contextWindowTokens)
|
|
@@ -144,10 +152,7 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
144
152
|
let r = [];
|
|
145
153
|
if (e.specification != null) {
|
|
146
154
|
let { specification: i } = e, a = [];
|
|
147
|
-
i.
|
|
148
|
-
label: t.provider,
|
|
149
|
-
value: i.provider
|
|
150
|
-
}), i.vendor != null && a.push({
|
|
155
|
+
i.vendor != null && a.push({
|
|
151
156
|
label: t.vendor,
|
|
152
157
|
value: i.vendor
|
|
153
158
|
}), i.license != null && a.push({
|
|
@@ -233,9 +238,6 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
233
238
|
i.authentication != null && a.push({
|
|
234
239
|
label: t.authentication,
|
|
235
240
|
value: i.authentication
|
|
236
|
-
}), i.provider != null && a.push({
|
|
237
|
-
label: t.provider,
|
|
238
|
-
value: i.provider
|
|
239
241
|
}), i.vendor != null && a.push({
|
|
240
242
|
label: t.vendor,
|
|
241
243
|
value: i.vendor
|
|
@@ -356,13 +358,13 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
356
358
|
unit: t
|
|
357
359
|
} : void 0;
|
|
358
360
|
}, I = (e) => {
|
|
359
|
-
let { limits: t, pricing: n, features: r, catalogProperties: i, owner: a, inputAttachmentTypes: o, defaultMaxTokens: s, createdAt: c } = e.modelDetails ?? {},
|
|
361
|
+
let { limits: t, pricing: n, features: r, catalogProperties: i, owner: a, inputAttachmentTypes: o, defaultMaxTokens: s, createdAt: c, provider: l, deprecationDate: u, endOfService: d } = e.modelDetails ?? {}, f = t != null || i != null || a != null || c != null || l != null || u != null || d != null || (o?.length ?? 0) > 0;
|
|
360
362
|
return {
|
|
361
363
|
type: "MODEL",
|
|
362
364
|
data: {
|
|
363
365
|
capabilities: O(r),
|
|
364
|
-
specification:
|
|
365
|
-
provider:
|
|
366
|
+
specification: f ? {
|
|
367
|
+
provider: l,
|
|
366
368
|
vendor: i?.vendor,
|
|
367
369
|
license: i?.license,
|
|
368
370
|
knowledgeCutoffDate: i?.knowledgeCutoffDate,
|
|
@@ -371,7 +373,9 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
371
373
|
maxOutputTokens: t?.maxCompletionTokens ?? s,
|
|
372
374
|
inputTypes: o,
|
|
373
375
|
hostedBy: a,
|
|
374
|
-
createdAt: c
|
|
376
|
+
createdAt: c,
|
|
377
|
+
deprecationDate: u,
|
|
378
|
+
endOfService: d
|
|
375
379
|
} : void 0,
|
|
376
380
|
pricing: F(n),
|
|
377
381
|
api: { modelId: e.id }
|
|
@@ -384,7 +388,6 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
384
388
|
data: {
|
|
385
389
|
capabilities: O(i),
|
|
386
390
|
specification: s ? {
|
|
387
|
-
provider: a?.provider,
|
|
388
391
|
vendor: a?.vendor,
|
|
389
392
|
license: a?.license,
|
|
390
393
|
knowledgeCutoffDate: a?.knowledgeCutoffDate,
|
|
@@ -416,7 +419,6 @@ var c = (e) => e >= 1e6 ? `${e / 1e6}M tokens` : e >= 1e3 ? `${e / 1e3}K tokens`
|
|
|
416
419
|
capabilities: O(t?.features),
|
|
417
420
|
specification: t == null ? void 0 : {
|
|
418
421
|
authentication: R(n) ? n : void 0,
|
|
419
|
-
provider: t.catalogProperties?.provider,
|
|
420
422
|
vendor: t.catalogProperties?.vendor,
|
|
421
423
|
license: t.catalogProperties?.license,
|
|
422
424
|
knowledgeCutoffDate: t.catalogProperties?.knowledgeCutoffDate,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeploymentItemDto, DialToolsetDto, ResourceDependencyDto } from '@epam/ai-dial-chat-api-client';
|
|
2
|
+
/** What {@link createPublishDependencyIconResolver} looks icons up in. */
|
|
3
|
+
export interface PublishDependencyIconSources {
|
|
4
|
+
/** The deployments the host has already loaded. */
|
|
5
|
+
deployments: DeploymentItemDto[];
|
|
6
|
+
/** The toolsets the host has already loaded. */
|
|
7
|
+
toolsets: DialToolsetDto[];
|
|
8
|
+
/** Turns a deployment's or toolset's raw `iconUrl` into a displayable URL. Host-owned. */
|
|
9
|
+
resolveIconUrl: (iconUrl: string | undefined) => string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Builds the lookup that gives a publish dependency the icon of the entity it
|
|
13
|
+
* names, from lists the host already holds, so no extra request is made. Only
|
|
14
|
+
* applications and toolsets have an icon; a prompt, a skill, a file, or an
|
|
15
|
+
* entity the host has not loaded gets none, and the row falls back to initials.
|
|
16
|
+
* Ids are compared in their normalized form, so a differently percent-encoded
|
|
17
|
+
* id still matches.
|
|
18
|
+
* @param sources - the loaded lists and the host's icon-URL resolver
|
|
19
|
+
* @returns a function from a dependency entry to its icon URL, if any
|
|
20
|
+
*/
|
|
21
|
+
export declare const createPublishDependencyIconResolver: ({ deployments, toolsets, resolveIconUrl }: PublishDependencyIconSources) => (dto: ResourceDependencyDto) => string | undefined;
|
|
22
|
+
//# sourceMappingURL=publish-dependency-icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-dependency-icons.d.ts","sourceRoot":"","sources":["../../src/catalog/publish-dependency-icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAMvC,0EAA0E;AAC1E,MAAM,WAAW,4BAA4B;IAC3C,mDAAmD;IACnD,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,gDAAgD;IAChD,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,0FAA0F;IAC1F,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;CACrE;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mCAAmC,GAC7C,2CAA2C,4BAA4B,MACvE,KAAK,qBAAqB,KAAG,MAAM,GAAG,SAetC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { findDeploymentByIdOrReference as e, normalizeDeploymentId as t } from "./deployment-id.js";
|
|
2
|
+
//#region src/catalog/publish-dependency-icons.ts
|
|
3
|
+
var n = ({ deployments: n, toolsets: r, resolveIconUrl: i }) => (a) => {
|
|
4
|
+
if (a.type === "application") return i(e(n, a.id)?.iconUrl);
|
|
5
|
+
if (a.type === "toolset") {
|
|
6
|
+
let e = t(a.id);
|
|
7
|
+
return i(r.find((n) => t(n.id) === e)?.iconUrl);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as createPublishDependencyIconResolver };
|
package/catalog/publish.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PublishConversationResultDto, PublishHistoryEntryDto } from '@epam/ai-dial-chat-api-client';
|
|
1
|
+
import { PublishConversationResultDto, PublishHistoryEntryDto, ResourceDependencyDto } from '@epam/ai-dial-chat-api-client';
|
|
2
2
|
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
3
|
-
import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
3
|
+
import { PublishDependency, PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
4
4
|
/**
|
|
5
5
|
* The publish API's entity-type path param values. Re-declared as a plain
|
|
6
6
|
* string-literal union rather than importing the generated
|
|
@@ -10,6 +10,8 @@ import { PublishHistoryEntry } from '@epam/ai-dial-publish-panel';
|
|
|
10
10
|
export type CatalogPublishEntityType = 'model' | 'toolset' | 'application' | 'prompt' | 'skill' | 'project';
|
|
11
11
|
/** Maps a catalog item's entity type to the publish API's entity-type path param, or `undefined` if that type is not publishable. */
|
|
12
12
|
export declare const toPublishEntityType: (type: CatalogEntityType) => CatalogPublishEntityType | undefined;
|
|
13
|
+
/** Whether a catalog entity type has saved versions, and so a Versions history section. */
|
|
14
|
+
export declare const isVersionedCatalogEntityType: (type: CatalogEntityType) => boolean;
|
|
13
15
|
/**
|
|
14
16
|
* Whether a catalog entity id addresses the shared `public` bucket
|
|
15
17
|
* (`{resourceType}/public/{folder…}/{name}`), i.e. the id names a published
|
|
@@ -32,4 +34,15 @@ export declare const getPublicCatalogEntityFolderPath: (entityId: string) => str
|
|
|
32
34
|
export declare const mapPublishHistoryEntryDto: (dto: PublishHistoryEntryDto) => PublishHistoryEntry;
|
|
33
35
|
/** Maps a conversation publish-history API response entry to the publish panel's `PublishHistoryEntry` model. */
|
|
34
36
|
export declare const mapPublishConversationResultDto: (dto: PublishConversationResultDto) => PublishHistoryEntry;
|
|
37
|
+
/**
|
|
38
|
+
* Maps a publish-dependencies API response entry to the publish panel's
|
|
39
|
+
* `PublishDependency` model. The two `type` sets hold the same string values;
|
|
40
|
+
* the enum is only a type here so this module takes no runtime dependency on the
|
|
41
|
+
* optional `@epam/ai-dial-publish-panel` peer. A file whose url ends with `/` is
|
|
42
|
+
* a folder attachment.
|
|
43
|
+
* @param dto - one entry of a publish-dependencies response
|
|
44
|
+
* @param resolveIconUrl - the host's lookup of a displayable icon URL for the entry, e.g. from
|
|
45
|
+
* {@link createPublishDependencyIconResolver}; omitted when the host shows no icons
|
|
46
|
+
*/
|
|
47
|
+
export declare const mapResourceDependencyDto: (dto: ResourceDependencyDto, resolveIconUrl?: (dto: ResourceDependencyDto) => string | undefined) => PublishDependency;
|
|
35
48
|
//# sourceMappingURL=publish.d.ts.map
|
package/catalog/publish.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/catalog/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/catalog/publish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAiB,MAAM,2BAA2B,CAAC;AAC7E,OAAO,KAAK,EACV,iBAAiB,EAEjB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAGrC;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAClC,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAYvE,qIAAqI;AACrI,eAAO,MAAM,mBAAmB,GAC9B,MAAM,iBAAiB,KACtB,wBAAwB,GAAG,SAA2C,CAAC;AAE1E,2FAA2F;AAC3F,eAAO,MAAM,4BAA4B,GACvC,MAAM,iBAAiB,KACtB,OACqE,CAAC;AAEzE;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,GAAI,UAAU,MAAM,KAAG,OACjB,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,GAAI,UAAU,MAAM,KAAG,MAAM,EAGlE,CAAC;AAET,kGAAkG;AAClG,eAAO,MAAM,yBAAyB,GACpC,KAAK,sBAAsB,KAC1B,mBAKD,CAAC;AAEH,iHAAiH;AACjH,eAAO,MAAM,+BAA+B,GAC1C,KAAK,4BAA4B,KAChC,mBAKD,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,GACnC,KAAK,qBAAqB,EAC1B,iBAAiB,CAAC,GAAG,EAAE,qBAAqB,KAAK,MAAM,GAAG,SAAS,KAClE,iBAWF,CAAC"}
|
package/catalog/publish.js
CHANGED
|
@@ -7,14 +7,25 @@ var r = {
|
|
|
7
7
|
[t.Agent]: "application",
|
|
8
8
|
[t.Prompt]: "prompt",
|
|
9
9
|
[t.Skill]: "skill"
|
|
10
|
-
}, i = (e) => r[e], a = (e) => e.split("/")[1] === n,
|
|
10
|
+
}, i = (e) => r[e], a = (e) => e === t.Agent || e === t.Toolset, o = (e) => e.split("/")[1] === n, s = (t) => o(t) ? t.split("/").slice(2, -1).map(e) : [], c = (e) => ({
|
|
11
11
|
version: e.version,
|
|
12
12
|
publishedAt: Date.parse(e.publishedAt),
|
|
13
13
|
folderPath: e.folderPath.split("/").filter(Boolean),
|
|
14
14
|
publishCredentials: e.publishCredentials
|
|
15
|
-
}),
|
|
15
|
+
}), l = (e) => ({
|
|
16
16
|
publishedAt: Date.parse(e.publishedAt),
|
|
17
17
|
folderPath: e.folderPath.split("/").filter(Boolean)
|
|
18
|
-
})
|
|
18
|
+
}), u = (e, t) => {
|
|
19
|
+
let n = t?.(e);
|
|
20
|
+
return {
|
|
21
|
+
id: e.id,
|
|
22
|
+
name: e.name,
|
|
23
|
+
...e.version == null ? {} : { version: e.version },
|
|
24
|
+
type: e.type,
|
|
25
|
+
location: e.location,
|
|
26
|
+
...n == null ? {} : { iconUrl: n },
|
|
27
|
+
...e.type === "file" && e.id.endsWith("/") ? { isFolder: !0 } : {}
|
|
28
|
+
};
|
|
29
|
+
};
|
|
19
30
|
//#endregion
|
|
20
|
-
export {
|
|
31
|
+
export { s as getPublicCatalogEntityFolderPath, o as isPublicCatalogEntityId, a as isVersionedCatalogEntityType, l as mapPublishConversationResultDto, c as mapPublishHistoryEntryDto, u as mapResourceDependencyDto, i as toPublishEntityType };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PublishDependency } from '@epam/ai-dial-publish-panel';
|
|
2
|
+
/** Host inputs of {@link usePublishDependencies}. */
|
|
3
|
+
export interface UsePublishDependenciesOptions {
|
|
4
|
+
/** Whether the publish panel is open; the dependencies are read each time it opens. */
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
/** Id of the entity being published; a change reads its dependencies again. */
|
|
7
|
+
entityId: string;
|
|
8
|
+
/** Reads the entity's private dependencies, already mapped to the panel's model; the host owns the request. */
|
|
9
|
+
loadDependencies: (entityId: string) => Promise<PublishDependency[]>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns the private dependencies of an entity for a publish panel, read again
|
|
13
|
+
* on every open so a dependency published since the last one drops off the
|
|
14
|
+
* list. The list is advisory: a failed read leaves it empty, a read that
|
|
15
|
+
* finishes after the panel closed or the entity changed is ignored, and another
|
|
16
|
+
* entity's list is never returned.
|
|
17
|
+
*/
|
|
18
|
+
export declare const usePublishDependencies: ({ isOpen, entityId, loadDependencies, }: UsePublishDependenciesOptions) => PublishDependency[];
|
|
19
|
+
//# sourceMappingURL=use-publish-dependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-publish-dependencies.d.ts","sourceRoot":"","sources":["../../src/catalog/use-publish-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAKrE,qDAAqD;AACrD,MAAM,WAAW,6BAA6B;IAC5C,uFAAuF;IACvF,MAAM,EAAE,OAAO,CAAC;IAChB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,+GAA+G;IAC/G,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;CACtE;AASD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,yCAIpC,6BAA6B,KAAG,iBAAiB,EA6BnD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
|
+
//#region src/catalog/use-publish-dependencies.ts
|
|
3
|
+
var r = [], i = ({ isOpen: i, entityId: a, loadDependencies: o }) => {
|
|
4
|
+
let [s, c] = n(), l = t(o);
|
|
5
|
+
return e(() => {
|
|
6
|
+
l.current = o;
|
|
7
|
+
}, [o]), e(() => {
|
|
8
|
+
if (!i) return;
|
|
9
|
+
let e = !1;
|
|
10
|
+
return (async () => {
|
|
11
|
+
let t = r;
|
|
12
|
+
try {
|
|
13
|
+
t = await l.current(a);
|
|
14
|
+
} catch {}
|
|
15
|
+
e || c({
|
|
16
|
+
entityId: a,
|
|
17
|
+
dependencies: t
|
|
18
|
+
});
|
|
19
|
+
})(), () => {
|
|
20
|
+
e = !0;
|
|
21
|
+
};
|
|
22
|
+
}, [i, a]), s?.entityId === a ? s.dependencies : r;
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { i as usePublishDependencies };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { VersionHistoryRow } from '@epam/ai-dial-publish-panel';
|
|
2
|
+
import { PublishApiClient } from '../create-publish-api';
|
|
3
|
+
import { CatalogPublishEntityType } from '../publish';
|
|
4
|
+
import { VersionHistoryFormatters, VersionHistoryListingItem } from '../version-history';
|
|
5
|
+
/** Parameters of {@link useVersionHistory}. */
|
|
6
|
+
export interface UseVersionHistoryParams {
|
|
7
|
+
/** Items of the already-loaded deployments or toolsets listing. */
|
|
8
|
+
items: readonly VersionHistoryListingItem[];
|
|
9
|
+
/** Id of the resource being edited or published. */
|
|
10
|
+
resourceId: string;
|
|
11
|
+
/** Publish API entity type of the resource. */
|
|
12
|
+
entityType: CatalogPublishEntityType;
|
|
13
|
+
/** Whether the panel showing the history is open; statuses load only while it is. */
|
|
14
|
+
isEnabled: boolean;
|
|
15
|
+
/** Configured client that reads the version statuses. */
|
|
16
|
+
client: Pick<PublishApiClient, 'getCatalogVersionStatuses'>;
|
|
17
|
+
/** Host text and date formatting; keep it referentially stable. */
|
|
18
|
+
formatters: VersionHistoryFormatters;
|
|
19
|
+
}
|
|
20
|
+
/** Result of {@link useVersionHistory}. */
|
|
21
|
+
export interface UseVersionHistoryResult {
|
|
22
|
+
/** The other saved versions of the resource, newest first; statuses fill in once loaded. */
|
|
23
|
+
rows: VersionHistoryRow[];
|
|
24
|
+
/** Whether the listing holds another version the section can show; the host renders no section when it is `false`. */
|
|
25
|
+
hasVersions: boolean;
|
|
26
|
+
/** Whether the statuses are being loaded. */
|
|
27
|
+
isLoading: boolean;
|
|
28
|
+
/** Whether the last statuses request failed. */
|
|
29
|
+
hasError: boolean;
|
|
30
|
+
/** Reloads the statuses. */
|
|
31
|
+
onRetry: () => void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Groups the listing by `versionGroupId`, builds the Versions history rows of the other versions and loads their publication statuses in the background while the panel is open.
|
|
35
|
+
* @param params - listing items, edited resource, open state, client and formatters
|
|
36
|
+
*/
|
|
37
|
+
export declare const useVersionHistory: ({ items, resourceId, entityType, isEnabled, client, formatters, }: UseVersionHistoryParams) => UseVersionHistoryResult;
|
|
38
|
+
//# sourceMappingURL=useVersionHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVersionHistory.d.ts","sourceRoot":"","sources":["../../../src/catalog/useVersionHistory/useVersionHistory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAGL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC/B,MAAM,oBAAoB,CAAC;AAE5B,+CAA+C;AAC/C,MAAM,WAAW,uBAAuB;IACtC,mEAAmE;IACnE,KAAK,EAAE,SAAS,yBAAyB,EAAE,CAAC;IAC5C,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,UAAU,EAAE,wBAAwB,CAAC;IACrC,qFAAqF;IACrF,SAAS,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC;IAC5D,mEAAmE;IACnE,UAAU,EAAE,wBAAwB,CAAC;CACtC;AAED,2CAA2C;AAC3C,MAAM,WAAW,uBAAuB;IACtC,4FAA4F;IAC5F,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAC1B,sHAAsH;IACtH,WAAW,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,SAAS,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAOD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,mEAO/B,uBAAuB,KAAG,uBA2D5B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { safeDecodeURIComponent as e } from "../../shared/string-utils.js";
|
|
2
|
+
import { buildVersionHistoryRows as t, selectOtherVersions as n } from "../version-history.js";
|
|
3
|
+
import { useCallback as r, useEffect as i, useMemo as a, useState as o } from "react";
|
|
4
|
+
//#region src/catalog/useVersionHistory/useVersionHistory.ts
|
|
5
|
+
var s = ({ items: s, resourceId: c, entityType: l, isEnabled: u, client: d, formatters: f }) => {
|
|
6
|
+
let p = a(() => n(s, c), [s, c]), m = p.length > 0, [h, g] = o(0), [_, v] = o(), [y, b] = o(), [x, S] = o(u);
|
|
7
|
+
x !== u && (S(u), u || (v(void 0), b(void 0)));
|
|
8
|
+
let C = `${l}:${c}:${h}`, w = u && m;
|
|
9
|
+
i(() => {
|
|
10
|
+
if (!w) return;
|
|
11
|
+
let t = !1;
|
|
12
|
+
return (async () => {
|
|
13
|
+
try {
|
|
14
|
+
let n = await d.getCatalogVersionStatuses(l, c);
|
|
15
|
+
if (t) return;
|
|
16
|
+
v({
|
|
17
|
+
key: C,
|
|
18
|
+
statuses: new Map(n.map((t) => [e(t.id), t]))
|
|
19
|
+
}), b(void 0);
|
|
20
|
+
} catch {
|
|
21
|
+
t || b(C);
|
|
22
|
+
}
|
|
23
|
+
})(), () => {
|
|
24
|
+
t = !0;
|
|
25
|
+
};
|
|
26
|
+
}, [
|
|
27
|
+
w,
|
|
28
|
+
d,
|
|
29
|
+
l,
|
|
30
|
+
c,
|
|
31
|
+
C
|
|
32
|
+
]);
|
|
33
|
+
let T = a(() => t(p, _?.statuses, f), [
|
|
34
|
+
p,
|
|
35
|
+
_,
|
|
36
|
+
f
|
|
37
|
+
]), E = w && y === C;
|
|
38
|
+
return {
|
|
39
|
+
rows: T,
|
|
40
|
+
hasVersions: m,
|
|
41
|
+
isLoading: w && !E && _?.key !== C,
|
|
42
|
+
hasError: E,
|
|
43
|
+
onRetry: r(() => {
|
|
44
|
+
b(void 0), g((e) => e + 1);
|
|
45
|
+
}, [])
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { s as useVersionHistory };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { VersionHistoryLabels, VersionHistorySectionProps } from '@epam/ai-dial-publish-panel';
|
|
3
|
+
import { VersionHistoryFormatters, VersionHistoryListingItem } from '../version-history';
|
|
4
|
+
import { UseVersionHistoryParams } from './useVersionHistory';
|
|
5
|
+
/** Parameters of {@link useVersionHistorySection}. */
|
|
6
|
+
export interface UseVersionHistorySectionParams {
|
|
7
|
+
/** Id of the resource being edited or published. */
|
|
8
|
+
resourceId: string;
|
|
9
|
+
/** Catalog type of the resource. */
|
|
10
|
+
resourceType: CatalogEntityType;
|
|
11
|
+
/** Whether the panel showing the section is open; statuses load only while it is. */
|
|
12
|
+
isEnabled: boolean;
|
|
13
|
+
/** Items of the already-loaded deployments listing, used for applications. */
|
|
14
|
+
applications: readonly VersionHistoryListingItem[];
|
|
15
|
+
/** Items of the already-loaded toolsets listing, used for toolsets. */
|
|
16
|
+
toolsets: readonly VersionHistoryListingItem[];
|
|
17
|
+
/** Configured client that reads the version statuses. */
|
|
18
|
+
client: UseVersionHistoryParams['client'];
|
|
19
|
+
/** Translated section labels, from the host. */
|
|
20
|
+
labels: VersionHistoryLabels;
|
|
21
|
+
/** Host text and date formatting; keep it referentially stable. */
|
|
22
|
+
formatters: VersionHistoryFormatters;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Builds the props of the Versions history section for an application or toolset from the listings the host already holds.
|
|
26
|
+
* @param params - listings, edited resource, open state, client, labels and formatters
|
|
27
|
+
* @returns the section props, or `undefined` for an unversioned resource type and while the listing holds no version the user owns
|
|
28
|
+
*/
|
|
29
|
+
export declare const useVersionHistorySection: ({ resourceId, resourceType, isEnabled, applications, toolsets, client, labels, formatters, }: UseVersionHistorySectionParams) => VersionHistorySectionProps | undefined;
|
|
30
|
+
//# sourceMappingURL=useVersionHistorySection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVersionHistorySection.d.ts","sourceRoot":"","sources":["../../../src/catalog/useVersionHistory/useVersionHistorySection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EACV,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAE7B,sDAAsD;AACtD,MAAM,WAAW,8BAA8B;IAC7C,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,YAAY,EAAE,iBAAiB,CAAC;IAChC,qFAAqF;IACrF,SAAS,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,YAAY,EAAE,SAAS,yBAAyB,EAAE,CAAC;IACnD,uEAAuE;IACvE,QAAQ,EAAE,SAAS,yBAAyB,EAAE,CAAC;IAC/C,yDAAyD;IACzD,MAAM,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC1C,gDAAgD;IAChD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,mEAAmE;IACnE,UAAU,EAAE,wBAAwB,CAAC;CACtC;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,8FAStC,8BAA8B,KAAG,0BAA0B,GAAG,SAqBhE,CAAC"}
|