@hahnpro/hpc-api 2026.4.5 → 2026.4.6
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/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/src/lib/interfaces/index.d.ts +18 -19
- package/src/lib/interfaces/index.js +33 -30
- package/src/lib/interfaces/reference.interface.d.ts +5 -1
- package/src/lib/interfaces/reference.interface.js +4 -0
- package/src/lib/interfaces/resource.interface.d.ts +2 -1
- package/src/lib/interfaces/resource.interface.js +1 -0
- package/src/lib/interfaces/task.interface.d.ts +3 -0
- package/src/lib/interfaces/task.interface.js +12 -1
- package/src/lib/interfaces/type-guards.d.ts +2 -0
- package/src/lib/interfaces/type-guards.js +18 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hahnpro/hpc-api",
|
|
3
|
-
"version": "2026.4.
|
|
3
|
+
"version": "2026.4.6",
|
|
4
4
|
"description": "Module for easy access to the HahnPRO Cloud API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@microsoft/fetch-event-source": "2.0.1",
|
|
12
|
-
"axios": "1.15.
|
|
12
|
+
"axios": "1.15.2",
|
|
13
13
|
"eventsource": "4.1.0",
|
|
14
14
|
"jose": "5.10.0",
|
|
15
15
|
"jwt-decode": "4.0.0",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export type { AiAssistant, AssetResourceSelectionOption, AssistantMessage, DocumentResourceSelectionOption, GenericResourceSelectionOption, LogbookEntryResourceSelectionOption, Message, ResourceSelectionOption, ResourceSelectionRejected, SpeechToken, SystemMessage, Thread, ThreadPopulated, ToolMessage, ToolNameType, UserMessage, } from './ai.interface';
|
|
2
2
|
export type { Alert, AlertCondition, TimeSeriesReference, UpdatedField } from './alert.interface';
|
|
3
3
|
export type { Api, Change, ChangeSubject, ObjectIdLike } from './api.interface';
|
|
4
|
-
export type {
|
|
5
|
-
export type { AddToProperty, Asset, AssetChange, AssetSubject, AssetRevision, AssetTimeSeriesValue, AssetType, AssetTypeRevision, AssetTypeSearchResult, Attachment, EventCause, EventLevelOverride, RemoveFromProperty, Template, } from './asset.interface';
|
|
6
|
-
export type { Author } from './author.interface';
|
|
4
|
+
export type { AddToProperty, Asset, AssetChange, AssetRevision, AssetSubject, AssetTimeSeriesValue, AssetType, AssetTypeRevision, AssetTypeSearchResult, Attachment, EventCause, EventLevelOverride, RemoveFromProperty, Template, } from './asset.interface';
|
|
7
5
|
export type { Audit } from './audit.interface';
|
|
6
|
+
export type { Author } from './author.interface';
|
|
7
|
+
export type { AzureBillingEvent, AzureBillingResult, Billing, BillingEvent, BillingResource, BillingSubscription, BillingValues, OnceBilledResources, RegularlyBilledResources, } from './billing.interface';
|
|
8
8
|
export type { Content, ContentAnalysis, ContentChange, ContentSearchResult, IndexingStatusData, ReindexStatusSsePayload, } from './content.interface';
|
|
9
|
-
export type { CrmImportJsonRequest, CrmImportParser, CrmImportResponse } from './crm.interface';
|
|
9
|
+
export type { CompanyCandidate, ContactCandidate, CrmImportJsonRequest, CrmImportParser, CrmImportResponse, ImportResult, ImportResultStats, MatchResult, MeetingReport, ReportActivity, ReportParticipant, ReportSummary, TouchpointCandidate, } from './crm.interface';
|
|
10
10
|
export type { DataInterface, Filter, Paginated, RequestParameter } from './data.interface';
|
|
11
11
|
export type { EdgeDeviceRequestResponse, EdgeDeviceResult, WebIOData } from './edge-device.interface';
|
|
12
12
|
export type { AdditionalNotificationData, Endpoint, EndpointConfig, EndpointLog, NotificationEndpoint, NotificationEndpointLog, NotificationLogType, NotificationPayload, SearchEndpointResult, } from './endpoint.interface';
|
|
13
13
|
export type { CreateEventDto, Event, EventCountByAsset } from './event.interface';
|
|
14
14
|
export type { FlowConnection, FlowDeploymentMetrics, FlowDeploymentStatistic, FlowElement, FlowLog, FlowModel, Metrics, Stats, StatsValues, } from './flow-deployment.interface';
|
|
15
|
-
export type { FlowFunction, FlowFunctionDto, FlowFunctionRevision, SearchFlowTypeResult, Stream, DataDescription, } from './flow-function.interface';
|
|
16
|
-
export type { FlowModule, FlowModuleArtifact } from './flow-module.interface';
|
|
17
|
-
export type { DashboardItem, FlowDto, FlowRevision, FlowDeploymentDto, Function2ModuleMap, FlowChange, FlowPopulated, } from './flow.interface';
|
|
18
15
|
export type { BillingEventsData, DeploymentId, DeploymentTriggerResponse, Executor, ExecutorEnvironment, ExecutorEventType, ExecutorId, ExecutorStats, WorkerId, } from './flow-executor.interface';
|
|
16
|
+
export type { DataDescription, FlowFunction, FlowFunctionDto, FlowFunctionRevision, SearchFlowTypeResult, Stream, } from './flow-function.interface';
|
|
17
|
+
export type { FlowModule, FlowModuleArtifact } from './flow-module.interface';
|
|
18
|
+
export type { DashboardItem, FlowChange, FlowDeploymentDto, FlowDto, FlowPopulated, FlowRevision, Function2ModuleMap, } from './flow.interface';
|
|
19
19
|
export type { Config, Issuer, TokenOption } from './http.interface';
|
|
20
20
|
export type { InvitationRepresentation } from './invitation-representation.interface';
|
|
21
21
|
export type { KeycloakProfile } from './keycloak-profile.interface';
|
|
@@ -23,7 +23,6 @@ export type { CreateLabelDto, Label, LabelColor, UpdateLabelDto } from './label.
|
|
|
23
23
|
export type { MeteredQuantity, MeteringDimension, Plan, PlanComponents, RecurrentBillingTerm, SourceOffer, Subscription, SubscriptionInfo, Term, } from './marketplace.interface';
|
|
24
24
|
export type { NotificationRule, StatusRule, TagRule } from './notification-rule.interface';
|
|
25
25
|
export type { Notification, NotificationType } from './notification.interface';
|
|
26
|
-
export type { RoleRepresentation } from './role.interface';
|
|
27
26
|
export type { OrganizationRoleRepresentation } from './organization-role-representation.interface';
|
|
28
27
|
export type { CreateOrganizationDto, Organization, OrganizationData, OrganizationDataKind, OrganizationDomain, OrganizationExtraProperties, OrganizationName, OrganizationRolesAdjustment, OrganizationSearchQuery, UserWithOrgRoles, } from './organization.interface';
|
|
29
28
|
export type { CreateOrgWithResourcesDto, OrganizationResourcesProgress, OrganizationResourcesProgressDto, OrganizationResourcesProgressErrorDto, } from './organizations-resources.interface';
|
|
@@ -31,27 +30,28 @@ export type { Owner } from './owner.interface';
|
|
|
31
30
|
export type { DeleteAssetQuery, DeleteAssetTypeQuery, DeleteQuery } from './query.interface';
|
|
32
31
|
export type { CreateReferenceDto, ObjectReference, ReferencesQuery } from './reference.interface';
|
|
33
32
|
export type { ConnectedResources, ConnectedResourceType, OrgResourcePermission, Populated, ResolvedResourceReference, Resource, ResourceReference, Rollback, SharedResources, } from './resource.interface';
|
|
33
|
+
export type { RoleRepresentation } from './role.interface';
|
|
34
34
|
export type { JsonSchema, JsonSchemaArray, JsonSchemaData, JsonSchemaForm, JsonSchemaType, JsonSchemaTypeName } from './schema.interface';
|
|
35
35
|
export type { SearchMatchReason, SearchMatchReasonContentPart, SearchOptions, SearchResult, SearchResultItem, SearchSortOption, SortableField, } from './search.interface';
|
|
36
36
|
export type { Secret } from './secret.interface';
|
|
37
37
|
export type { ServerSentEvent } from './sse.interface';
|
|
38
38
|
export type { Artifact, FileType, Storage, StorageProvider } from './storage.interface';
|
|
39
39
|
export type { Assignee, LogbookEntry, LogbookEntryDto, Task } from './task.interface';
|
|
40
|
-
export type { Retention, SearchTimeSeriesResult, SelectedField, TimeSeries, TimeSeriesBucket, TimeseriesChange,
|
|
40
|
+
export type { Retention, SearchTimeSeriesResult, SelectedField, TimeSeries, TimeSeriesBucket, TimeseriesChange, TimeSeriesCondition, TimeseriesSubject, TimeSeriesValue, TS_GROUPS, } from './timeseries.interface';
|
|
41
41
|
export type { Translation, TranslationData } from './translation.interface';
|
|
42
42
|
export type { Application, Consent, Permission, TableSetting, TableSettingProfile, UserSettings } from './user-settings.interface';
|
|
43
43
|
export type { KVSecretVersion, VaultSecret } from './vault.interface';
|
|
44
44
|
export { AgentId, AiAssistantId, AssistantMessageStatus, AvailableLanguages, FinishReason, HandOffTool, ReferenceType, ReturnToReferrerTool, Role, ToolMessageStatus, ToolName, ToolType, } from './ai.interface';
|
|
45
|
+
export { AlertLevel, AlertStatus, AlertType, DEFAULT_DEADMAN_CONDITION, DEFAULT_RELATIVE_CONDITION, DEFAULT_THRESHOLD_CONDITION, } from './alert.interface';
|
|
45
46
|
export { ChangeAction } from './api.interface';
|
|
46
47
|
export { BillingResourceType } from './billing.interface';
|
|
47
|
-
export { AlertLevel, AlertStatus, AlertType, DEFAULT_THRESHOLD_CONDITION, DEFAULT_RELATIVE_CONDITION, DEFAULT_DEADMAN_CONDITION, } from './alert.interface';
|
|
48
48
|
export { IndexingStatus, ReturnType } from './content.interface';
|
|
49
49
|
export { instanceOfTimePeriod } from './data.interface';
|
|
50
|
-
export { NotificationEndpointStatus, NotificationEndpointType
|
|
51
|
-
export {
|
|
52
|
-
export { Flow, FlowDiagram } from './flow.interface';
|
|
53
|
-
export { FlowDeployment } from './flow-deployment.interface';
|
|
50
|
+
export { NotificationEndpointSpamProtection, NotificationEndpointStatus, NotificationEndpointType } from './endpoint.interface';
|
|
51
|
+
export { EventLevel, EventLevelOverrideWrapper, eventLevels } from './event.interface';
|
|
54
52
|
export { ERROR_STATES, FlowDeploymentStatus, PROCESSING_STATES, RUNNING_STATES, STOPPED_STATES, UNKOWN_STATES, } from './flow-deployment-status.interface';
|
|
53
|
+
export { FlowDeployment } from './flow-deployment.interface';
|
|
54
|
+
export { Flow, FlowDiagram } from './flow.interface';
|
|
55
55
|
export { LABEL_COLORS } from './label.interface';
|
|
56
56
|
export { SubscriptionType } from './marketplace.interface';
|
|
57
57
|
export { NatsConsumers, natsFlowsPrefix, natsHpcPrefix, NatsStreams } from './nats.interface';
|
|
@@ -59,11 +59,10 @@ export { NotificationRuleStatus } from './notification-rule.interface';
|
|
|
59
59
|
export { OrganizationMembersInviteOrAdd } from './organization.interface';
|
|
60
60
|
export { OwnerType } from './owner.interface';
|
|
61
61
|
export { ObjectReferenceType } from './reference.interface';
|
|
62
|
-
export { arePopulated, isPopulated } from './resource.interface';
|
|
63
|
-
export {
|
|
64
|
-
export { isAsset, isAssignee, isAuthor, isContent, isContentAnalysis, isEvent, isLogbookEntry, isOwner, isStorage, isTask, } from './type-guards';
|
|
65
|
-
export { AssigneeType, Priority, TaskStatus } from './task.interface';
|
|
66
|
-
export { TranslationEditData } from './translation.interface';
|
|
62
|
+
export { arePopulated, CommandType, EventType, isPopulated, PermissionType, ResourceApiPath, resourceApiPathToTypeMap, ResourceType, } from './resource.interface';
|
|
63
|
+
export { ACTIVE_TASK_STATUSES, AssigneeType, buildTaskStatusFilter, INACTIVE_TASK_STATUSES, Priority, TaskStatus } from './task.interface';
|
|
67
64
|
export { RETENTION_VALUES } from './timeseries.interface';
|
|
65
|
+
export { TranslationEditData } from './translation.interface';
|
|
66
|
+
export { isAsset, isAssignee, isAuthor, isContent, isContentAnalysis, isEvent, isLogbookEntry, isOwner, isStorage, isTask, isUserMessage, } from './type-guards';
|
|
68
67
|
export { SecretType } from './vault.interface';
|
|
69
68
|
export { WebSocketMessageType } from './websockets.interface';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.WebSocketMessageType = exports.SecretType = exports.
|
|
3
|
+
exports.CommandType = exports.arePopulated = exports.ObjectReferenceType = exports.OwnerType = exports.OrganizationMembersInviteOrAdd = exports.NotificationRuleStatus = exports.NatsStreams = exports.natsHpcPrefix = exports.natsFlowsPrefix = exports.NatsConsumers = exports.SubscriptionType = exports.LABEL_COLORS = exports.FlowDiagram = exports.Flow = exports.FlowDeployment = exports.UNKOWN_STATES = exports.STOPPED_STATES = exports.RUNNING_STATES = exports.PROCESSING_STATES = exports.FlowDeploymentStatus = exports.ERROR_STATES = exports.eventLevels = exports.EventLevelOverrideWrapper = exports.EventLevel = exports.NotificationEndpointType = exports.NotificationEndpointStatus = exports.NotificationEndpointSpamProtection = exports.instanceOfTimePeriod = exports.ReturnType = exports.IndexingStatus = exports.BillingResourceType = exports.ChangeAction = exports.DEFAULT_THRESHOLD_CONDITION = exports.DEFAULT_RELATIVE_CONDITION = exports.DEFAULT_DEADMAN_CONDITION = exports.AlertType = exports.AlertStatus = exports.AlertLevel = exports.ToolType = exports.ToolName = exports.ToolMessageStatus = exports.Role = exports.ReturnToReferrerTool = exports.ReferenceType = exports.HandOffTool = exports.FinishReason = exports.AvailableLanguages = exports.AssistantMessageStatus = exports.AiAssistantId = exports.AgentId = void 0;
|
|
4
|
+
exports.WebSocketMessageType = exports.SecretType = exports.isUserMessage = exports.isTask = exports.isStorage = exports.isOwner = exports.isLogbookEntry = exports.isEvent = exports.isContentAnalysis = exports.isContent = exports.isAuthor = exports.isAssignee = exports.isAsset = exports.TranslationEditData = exports.RETENTION_VALUES = exports.TaskStatus = exports.Priority = exports.INACTIVE_TASK_STATUSES = exports.buildTaskStatusFilter = exports.AssigneeType = exports.ACTIVE_TASK_STATUSES = exports.ResourceType = exports.resourceApiPathToTypeMap = exports.ResourceApiPath = exports.PermissionType = exports.isPopulated = exports.EventType = void 0;
|
|
5
5
|
var ai_interface_1 = require("./ai.interface");
|
|
6
6
|
Object.defineProperty(exports, "AgentId", { enumerable: true, get: function () { return ai_interface_1.AgentId; } });
|
|
7
7
|
Object.defineProperty(exports, "AiAssistantId", { enumerable: true, get: function () { return ai_interface_1.AiAssistantId; } });
|
|
@@ -15,35 +15,30 @@ Object.defineProperty(exports, "Role", { enumerable: true, get: function () { re
|
|
|
15
15
|
Object.defineProperty(exports, "ToolMessageStatus", { enumerable: true, get: function () { return ai_interface_1.ToolMessageStatus; } });
|
|
16
16
|
Object.defineProperty(exports, "ToolName", { enumerable: true, get: function () { return ai_interface_1.ToolName; } });
|
|
17
17
|
Object.defineProperty(exports, "ToolType", { enumerable: true, get: function () { return ai_interface_1.ToolType; } });
|
|
18
|
-
var api_interface_1 = require("./api.interface");
|
|
19
|
-
Object.defineProperty(exports, "ChangeAction", { enumerable: true, get: function () { return api_interface_1.ChangeAction; } });
|
|
20
|
-
var billing_interface_1 = require("./billing.interface");
|
|
21
|
-
Object.defineProperty(exports, "BillingResourceType", { enumerable: true, get: function () { return billing_interface_1.BillingResourceType; } });
|
|
22
18
|
var alert_interface_1 = require("./alert.interface");
|
|
23
19
|
Object.defineProperty(exports, "AlertLevel", { enumerable: true, get: function () { return alert_interface_1.AlertLevel; } });
|
|
24
20
|
Object.defineProperty(exports, "AlertStatus", { enumerable: true, get: function () { return alert_interface_1.AlertStatus; } });
|
|
25
21
|
Object.defineProperty(exports, "AlertType", { enumerable: true, get: function () { return alert_interface_1.AlertType; } });
|
|
26
|
-
Object.defineProperty(exports, "DEFAULT_THRESHOLD_CONDITION", { enumerable: true, get: function () { return alert_interface_1.DEFAULT_THRESHOLD_CONDITION; } });
|
|
27
|
-
Object.defineProperty(exports, "DEFAULT_RELATIVE_CONDITION", { enumerable: true, get: function () { return alert_interface_1.DEFAULT_RELATIVE_CONDITION; } });
|
|
28
22
|
Object.defineProperty(exports, "DEFAULT_DEADMAN_CONDITION", { enumerable: true, get: function () { return alert_interface_1.DEFAULT_DEADMAN_CONDITION; } });
|
|
23
|
+
Object.defineProperty(exports, "DEFAULT_RELATIVE_CONDITION", { enumerable: true, get: function () { return alert_interface_1.DEFAULT_RELATIVE_CONDITION; } });
|
|
24
|
+
Object.defineProperty(exports, "DEFAULT_THRESHOLD_CONDITION", { enumerable: true, get: function () { return alert_interface_1.DEFAULT_THRESHOLD_CONDITION; } });
|
|
25
|
+
var api_interface_1 = require("./api.interface");
|
|
26
|
+
Object.defineProperty(exports, "ChangeAction", { enumerable: true, get: function () { return api_interface_1.ChangeAction; } });
|
|
27
|
+
var billing_interface_1 = require("./billing.interface");
|
|
28
|
+
Object.defineProperty(exports, "BillingResourceType", { enumerable: true, get: function () { return billing_interface_1.BillingResourceType; } });
|
|
29
29
|
var content_interface_1 = require("./content.interface");
|
|
30
30
|
Object.defineProperty(exports, "IndexingStatus", { enumerable: true, get: function () { return content_interface_1.IndexingStatus; } });
|
|
31
31
|
Object.defineProperty(exports, "ReturnType", { enumerable: true, get: function () { return content_interface_1.ReturnType; } });
|
|
32
32
|
var data_interface_1 = require("./data.interface");
|
|
33
33
|
Object.defineProperty(exports, "instanceOfTimePeriod", { enumerable: true, get: function () { return data_interface_1.instanceOfTimePeriod; } });
|
|
34
34
|
var endpoint_interface_1 = require("./endpoint.interface");
|
|
35
|
+
Object.defineProperty(exports, "NotificationEndpointSpamProtection", { enumerable: true, get: function () { return endpoint_interface_1.NotificationEndpointSpamProtection; } });
|
|
35
36
|
Object.defineProperty(exports, "NotificationEndpointStatus", { enumerable: true, get: function () { return endpoint_interface_1.NotificationEndpointStatus; } });
|
|
36
37
|
Object.defineProperty(exports, "NotificationEndpointType", { enumerable: true, get: function () { return endpoint_interface_1.NotificationEndpointType; } });
|
|
37
|
-
Object.defineProperty(exports, "NotificationEndpointSpamProtection", { enumerable: true, get: function () { return endpoint_interface_1.NotificationEndpointSpamProtection; } });
|
|
38
38
|
var event_interface_1 = require("./event.interface");
|
|
39
|
-
Object.defineProperty(exports, "eventLevels", { enumerable: true, get: function () { return event_interface_1.eventLevels; } });
|
|
40
39
|
Object.defineProperty(exports, "EventLevel", { enumerable: true, get: function () { return event_interface_1.EventLevel; } });
|
|
41
40
|
Object.defineProperty(exports, "EventLevelOverrideWrapper", { enumerable: true, get: function () { return event_interface_1.EventLevelOverrideWrapper; } });
|
|
42
|
-
|
|
43
|
-
Object.defineProperty(exports, "Flow", { enumerable: true, get: function () { return flow_interface_1.Flow; } });
|
|
44
|
-
Object.defineProperty(exports, "FlowDiagram", { enumerable: true, get: function () { return flow_interface_1.FlowDiagram; } });
|
|
45
|
-
var flow_deployment_interface_1 = require("./flow-deployment.interface");
|
|
46
|
-
Object.defineProperty(exports, "FlowDeployment", { enumerable: true, get: function () { return flow_deployment_interface_1.FlowDeployment; } });
|
|
41
|
+
Object.defineProperty(exports, "eventLevels", { enumerable: true, get: function () { return event_interface_1.eventLevels; } });
|
|
47
42
|
var flow_deployment_status_interface_1 = require("./flow-deployment-status.interface");
|
|
48
43
|
Object.defineProperty(exports, "ERROR_STATES", { enumerable: true, get: function () { return flow_deployment_status_interface_1.ERROR_STATES; } });
|
|
49
44
|
Object.defineProperty(exports, "FlowDeploymentStatus", { enumerable: true, get: function () { return flow_deployment_status_interface_1.FlowDeploymentStatus; } });
|
|
@@ -51,6 +46,11 @@ Object.defineProperty(exports, "PROCESSING_STATES", { enumerable: true, get: fun
|
|
|
51
46
|
Object.defineProperty(exports, "RUNNING_STATES", { enumerable: true, get: function () { return flow_deployment_status_interface_1.RUNNING_STATES; } });
|
|
52
47
|
Object.defineProperty(exports, "STOPPED_STATES", { enumerable: true, get: function () { return flow_deployment_status_interface_1.STOPPED_STATES; } });
|
|
53
48
|
Object.defineProperty(exports, "UNKOWN_STATES", { enumerable: true, get: function () { return flow_deployment_status_interface_1.UNKOWN_STATES; } });
|
|
49
|
+
var flow_deployment_interface_1 = require("./flow-deployment.interface");
|
|
50
|
+
Object.defineProperty(exports, "FlowDeployment", { enumerable: true, get: function () { return flow_deployment_interface_1.FlowDeployment; } });
|
|
51
|
+
var flow_interface_1 = require("./flow.interface");
|
|
52
|
+
Object.defineProperty(exports, "Flow", { enumerable: true, get: function () { return flow_interface_1.Flow; } });
|
|
53
|
+
Object.defineProperty(exports, "FlowDiagram", { enumerable: true, get: function () { return flow_interface_1.FlowDiagram; } });
|
|
54
54
|
var label_interface_1 = require("./label.interface");
|
|
55
55
|
Object.defineProperty(exports, "LABEL_COLORS", { enumerable: true, get: function () { return label_interface_1.LABEL_COLORS; } });
|
|
56
56
|
var marketplace_interface_1 = require("./marketplace.interface");
|
|
@@ -70,14 +70,24 @@ var reference_interface_1 = require("./reference.interface");
|
|
|
70
70
|
Object.defineProperty(exports, "ObjectReferenceType", { enumerable: true, get: function () { return reference_interface_1.ObjectReferenceType; } });
|
|
71
71
|
var resource_interface_1 = require("./resource.interface");
|
|
72
72
|
Object.defineProperty(exports, "arePopulated", { enumerable: true, get: function () { return resource_interface_1.arePopulated; } });
|
|
73
|
+
Object.defineProperty(exports, "CommandType", { enumerable: true, get: function () { return resource_interface_1.CommandType; } });
|
|
74
|
+
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return resource_interface_1.EventType; } });
|
|
73
75
|
Object.defineProperty(exports, "isPopulated", { enumerable: true, get: function () { return resource_interface_1.isPopulated; } });
|
|
74
|
-
|
|
75
|
-
Object.defineProperty(exports, "
|
|
76
|
-
Object.defineProperty(exports, "
|
|
77
|
-
Object.defineProperty(exports, "
|
|
78
|
-
|
|
79
|
-
Object.defineProperty(exports, "
|
|
80
|
-
Object.defineProperty(exports, "
|
|
76
|
+
Object.defineProperty(exports, "PermissionType", { enumerable: true, get: function () { return resource_interface_1.PermissionType; } });
|
|
77
|
+
Object.defineProperty(exports, "ResourceApiPath", { enumerable: true, get: function () { return resource_interface_1.ResourceApiPath; } });
|
|
78
|
+
Object.defineProperty(exports, "resourceApiPathToTypeMap", { enumerable: true, get: function () { return resource_interface_1.resourceApiPathToTypeMap; } });
|
|
79
|
+
Object.defineProperty(exports, "ResourceType", { enumerable: true, get: function () { return resource_interface_1.ResourceType; } });
|
|
80
|
+
var task_interface_1 = require("./task.interface");
|
|
81
|
+
Object.defineProperty(exports, "ACTIVE_TASK_STATUSES", { enumerable: true, get: function () { return task_interface_1.ACTIVE_TASK_STATUSES; } });
|
|
82
|
+
Object.defineProperty(exports, "AssigneeType", { enumerable: true, get: function () { return task_interface_1.AssigneeType; } });
|
|
83
|
+
Object.defineProperty(exports, "buildTaskStatusFilter", { enumerable: true, get: function () { return task_interface_1.buildTaskStatusFilter; } });
|
|
84
|
+
Object.defineProperty(exports, "INACTIVE_TASK_STATUSES", { enumerable: true, get: function () { return task_interface_1.INACTIVE_TASK_STATUSES; } });
|
|
85
|
+
Object.defineProperty(exports, "Priority", { enumerable: true, get: function () { return task_interface_1.Priority; } });
|
|
86
|
+
Object.defineProperty(exports, "TaskStatus", { enumerable: true, get: function () { return task_interface_1.TaskStatus; } });
|
|
87
|
+
var timeseries_interface_1 = require("./timeseries.interface");
|
|
88
|
+
Object.defineProperty(exports, "RETENTION_VALUES", { enumerable: true, get: function () { return timeseries_interface_1.RETENTION_VALUES; } });
|
|
89
|
+
var translation_interface_1 = require("./translation.interface");
|
|
90
|
+
Object.defineProperty(exports, "TranslationEditData", { enumerable: true, get: function () { return translation_interface_1.TranslationEditData; } });
|
|
81
91
|
var type_guards_1 = require("./type-guards");
|
|
82
92
|
Object.defineProperty(exports, "isAsset", { enumerable: true, get: function () { return type_guards_1.isAsset; } });
|
|
83
93
|
Object.defineProperty(exports, "isAssignee", { enumerable: true, get: function () { return type_guards_1.isAssignee; } });
|
|
@@ -89,14 +99,7 @@ Object.defineProperty(exports, "isLogbookEntry", { enumerable: true, get: functi
|
|
|
89
99
|
Object.defineProperty(exports, "isOwner", { enumerable: true, get: function () { return type_guards_1.isOwner; } });
|
|
90
100
|
Object.defineProperty(exports, "isStorage", { enumerable: true, get: function () { return type_guards_1.isStorage; } });
|
|
91
101
|
Object.defineProperty(exports, "isTask", { enumerable: true, get: function () { return type_guards_1.isTask; } });
|
|
92
|
-
|
|
93
|
-
Object.defineProperty(exports, "AssigneeType", { enumerable: true, get: function () { return task_interface_1.AssigneeType; } });
|
|
94
|
-
Object.defineProperty(exports, "Priority", { enumerable: true, get: function () { return task_interface_1.Priority; } });
|
|
95
|
-
Object.defineProperty(exports, "TaskStatus", { enumerable: true, get: function () { return task_interface_1.TaskStatus; } });
|
|
96
|
-
var translation_interface_1 = require("./translation.interface");
|
|
97
|
-
Object.defineProperty(exports, "TranslationEditData", { enumerable: true, get: function () { return translation_interface_1.TranslationEditData; } });
|
|
98
|
-
var timeseries_interface_1 = require("./timeseries.interface");
|
|
99
|
-
Object.defineProperty(exports, "RETENTION_VALUES", { enumerable: true, get: function () { return timeseries_interface_1.RETENTION_VALUES; } });
|
|
102
|
+
Object.defineProperty(exports, "isUserMessage", { enumerable: true, get: function () { return type_guards_1.isUserMessage; } });
|
|
100
103
|
var vault_interface_1 = require("./vault.interface");
|
|
101
104
|
Object.defineProperty(exports, "SecretType", { enumerable: true, get: function () { return vault_interface_1.SecretType; } });
|
|
102
105
|
var websockets_interface_1 = require("./websockets.interface");
|
|
@@ -16,7 +16,11 @@ export declare enum ObjectReferenceType {
|
|
|
16
16
|
/**
|
|
17
17
|
* Marks an Object as being part of the 'Weber Engineering - Flange Skill Control' to link the assets
|
|
18
18
|
*/
|
|
19
|
-
FLANGE_SKILL_CONTROL_EXAMINEE_BOOKED_TIME_SLOT_IN_EXAMINATION = "flange_skill_control_examinee_booked_time_slot_in_examination"
|
|
19
|
+
FLANGE_SKILL_CONTROL_EXAMINEE_BOOKED_TIME_SLOT_IN_EXAMINATION = "flange_skill_control_examinee_booked_time_slot_in_examination",
|
|
20
|
+
/**
|
|
21
|
+
* Marks an Content as being referenced in an user message.
|
|
22
|
+
*/
|
|
23
|
+
USER_MESSAGE_ATTACHMENT = "user_message_attachment"
|
|
20
24
|
}
|
|
21
25
|
export interface ObjectReference {
|
|
22
26
|
id: number;
|
|
@@ -21,4 +21,8 @@ var ObjectReferenceType;
|
|
|
21
21
|
* Marks an Object as being part of the 'Weber Engineering - Flange Skill Control' to link the assets
|
|
22
22
|
*/
|
|
23
23
|
ObjectReferenceType["FLANGE_SKILL_CONTROL_EXAMINEE_BOOKED_TIME_SLOT_IN_EXAMINATION"] = "flange_skill_control_examinee_booked_time_slot_in_examination";
|
|
24
|
+
/**
|
|
25
|
+
* Marks an Content as being referenced in an user message.
|
|
26
|
+
*/
|
|
27
|
+
ObjectReferenceType["USER_MESSAGE_ATTACHMENT"] = "user_message_attachment";
|
|
24
28
|
})(ObjectReferenceType || (exports.ObjectReferenceType = ObjectReferenceType = {}));
|
|
@@ -23,6 +23,7 @@ var ResourceType;
|
|
|
23
23
|
ResourceType["THREAD"] = "thread";
|
|
24
24
|
ResourceType["TASK"] = "task";
|
|
25
25
|
ResourceType["UNKNOWN"] = "unknown";
|
|
26
|
+
ResourceType["USERMESSAGE"] = "usermessage";
|
|
26
27
|
})(ResourceType || (exports.ResourceType = ResourceType = {}));
|
|
27
28
|
var ResourceApiPath;
|
|
28
29
|
(function (ResourceApiPath) {
|
|
@@ -16,6 +16,9 @@ export declare enum TaskStatus {
|
|
|
16
16
|
EXPIRED = "EXPIRED",
|
|
17
17
|
IN_PROGRESS = "IN PROGRESS"
|
|
18
18
|
}
|
|
19
|
+
export declare const ACTIVE_TASK_STATUSES: readonly TaskStatus[];
|
|
20
|
+
export declare const INACTIVE_TASK_STATUSES: readonly TaskStatus[];
|
|
21
|
+
export declare function buildTaskStatusFilter(statuses: readonly TaskStatus[]): string;
|
|
19
22
|
export declare enum Priority {
|
|
20
23
|
LOW = "LOW",
|
|
21
24
|
MEDIUM = "MEDIUM",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Priority = exports.TaskStatus = exports.AssigneeType = void 0;
|
|
3
|
+
exports.Priority = exports.INACTIVE_TASK_STATUSES = exports.ACTIVE_TASK_STATUSES = exports.TaskStatus = exports.AssigneeType = void 0;
|
|
4
|
+
exports.buildTaskStatusFilter = buildTaskStatusFilter;
|
|
4
5
|
var AssigneeType;
|
|
5
6
|
(function (AssigneeType) {
|
|
6
7
|
AssigneeType["USER"] = "user";
|
|
@@ -16,6 +17,16 @@ var TaskStatus;
|
|
|
16
17
|
TaskStatus["EXPIRED"] = "EXPIRED";
|
|
17
18
|
TaskStatus["IN_PROGRESS"] = "IN PROGRESS";
|
|
18
19
|
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
20
|
+
exports.ACTIVE_TASK_STATUSES = [TaskStatus.OPENED, TaskStatus.ACCEPTED, TaskStatus.IN_PROGRESS];
|
|
21
|
+
exports.INACTIVE_TASK_STATUSES = [
|
|
22
|
+
TaskStatus.CLOSED,
|
|
23
|
+
TaskStatus.REJECTED,
|
|
24
|
+
TaskStatus.SOLVED,
|
|
25
|
+
TaskStatus.EXPIRED,
|
|
26
|
+
];
|
|
27
|
+
function buildTaskStatusFilter(statuses) {
|
|
28
|
+
return `status=@${statuses.join(',')}`;
|
|
29
|
+
}
|
|
19
30
|
var Priority;
|
|
20
31
|
(function (Priority) {
|
|
21
32
|
Priority["LOW"] = "LOW";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type UserMessage } from './ai.interface';
|
|
1
2
|
import type { Asset } from './asset.interface';
|
|
2
3
|
import type { Author } from './author.interface';
|
|
3
4
|
import type { Content, ContentAnalysis } from './content.interface';
|
|
@@ -15,3 +16,4 @@ export declare function isEvent(value: unknown): value is Event;
|
|
|
15
16
|
export declare function isAssignee(value: unknown): value is Assignee;
|
|
16
17
|
export declare function isLogbookEntry(value: unknown): value is LogbookEntry;
|
|
17
18
|
export declare function isTask(value: unknown): value is Task;
|
|
19
|
+
export declare function isUserMessage(value: unknown): value is UserMessage;
|
|
@@ -10,6 +10,8 @@ exports.isEvent = isEvent;
|
|
|
10
10
|
exports.isAssignee = isAssignee;
|
|
11
11
|
exports.isLogbookEntry = isLogbookEntry;
|
|
12
12
|
exports.isTask = isTask;
|
|
13
|
+
exports.isUserMessage = isUserMessage;
|
|
14
|
+
const ai_interface_1 = require("./ai.interface");
|
|
13
15
|
const event_interface_1 = require("./event.interface");
|
|
14
16
|
const owner_interface_1 = require("./owner.interface");
|
|
15
17
|
const task_interface_1 = require("./task.interface");
|
|
@@ -18,10 +20,12 @@ function isRecord(value) {
|
|
|
18
20
|
}
|
|
19
21
|
const isString = (value) => typeof value === 'string';
|
|
20
22
|
const isNumber = (value) => typeof value === 'number';
|
|
23
|
+
const isBoolean = (value) => typeof value === 'boolean';
|
|
21
24
|
const isDate = (value) => value instanceof Date;
|
|
22
25
|
const isOptional = (value, predicate) => value === undefined || predicate(value);
|
|
23
26
|
const isOptionalString = (value) => isOptional(value, isString);
|
|
24
27
|
const isOptionalNumber = (value) => isOptional(value, isNumber);
|
|
28
|
+
const isOptionalBoolean = (value) => isOptional(value, isBoolean);
|
|
25
29
|
const isOptionalDateOrString = (value) => value === undefined || isDate(value) || isString(value);
|
|
26
30
|
const isArrayOf = (value, predicate) => Array.isArray(value) && value.every(predicate);
|
|
27
31
|
const isOptionalArrayOf = (value, predicate) => value === undefined || isArrayOf(value, predicate);
|
|
@@ -201,3 +205,17 @@ function isTask(value) {
|
|
|
201
205
|
isOptionalString(value.reason) &&
|
|
202
206
|
isOptionalString(value.logbookSchema));
|
|
203
207
|
}
|
|
208
|
+
function isUserMessage(value) {
|
|
209
|
+
if (!isRecord(value)) {
|
|
210
|
+
return false;
|
|
211
|
+
}
|
|
212
|
+
return (isString(value.thread) &&
|
|
213
|
+
value.role === ai_interface_1.Role.USER &&
|
|
214
|
+
isOptionalString(value.id) &&
|
|
215
|
+
isOptionalString(value.responseId) &&
|
|
216
|
+
isOptionalString(value.createdAt) &&
|
|
217
|
+
isOptionalString(value.updatedAt) &&
|
|
218
|
+
isOptionalString(value.content) &&
|
|
219
|
+
isOptionalBoolean(value.hidden) &&
|
|
220
|
+
isOptionalBoolean(value.useWebSearch));
|
|
221
|
+
}
|