@onereach/types-hitl-api 0.0.57 → 0.0.58-rc.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.
- package/dist/types/interfaces/api/index.d.ts +1 -0
- package/dist/types/interfaces/api/index.js +2 -1
- package/dist/types/interfaces/api/index.js.map +1 -1
- package/dist/types/interfaces/api/listeners.d.ts +1 -1
- package/dist/types/interfaces/api/session-relations.d.ts +30 -0
- package/dist/types/interfaces/api/session-relations.js +3 -0
- package/dist/types/interfaces/api/session-relations.js.map +1 -0
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ContactRuleGroups = exports.Versions = exports.ContactsMeta = exports.Helpers = exports.Tasks = exports.Commands = exports.ReadEvents = exports.SessionEvents = exports.Sessions = exports.Listeners = exports.CannedMessages = exports.Filters = exports.Conferences = exports.EventTemplates = exports.RuleGroups = exports.Agents = exports.Migrations = exports.Settings = void 0;
|
|
29
|
+
exports.SessionRelations = exports.ContactRuleGroups = exports.Versions = exports.ContactsMeta = exports.Helpers = exports.Tasks = exports.Commands = exports.ReadEvents = exports.SessionEvents = exports.Sessions = exports.Listeners = exports.CannedMessages = exports.Filters = exports.Conferences = exports.EventTemplates = exports.RuleGroups = exports.Agents = exports.Migrations = exports.Settings = void 0;
|
|
30
30
|
__exportStar(require("./common"), exports);
|
|
31
31
|
exports.Settings = __importStar(require("./settings"));
|
|
32
32
|
exports.Migrations = __importStar(require("./migrations"));
|
|
@@ -46,4 +46,5 @@ exports.Helpers = __importStar(require("./helpers"));
|
|
|
46
46
|
exports.ContactsMeta = __importStar(require("./contacts-meta"));
|
|
47
47
|
exports.Versions = __importStar(require("./versions"));
|
|
48
48
|
exports.ContactRuleGroups = __importStar(require("./contact-rule-groups"));
|
|
49
|
+
exports.SessionRelations = __importStar(require("./session-relations"));
|
|
49
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,uDAAuC;AACvC,2DAA2C;AAC3C,mDAAmC;AACnC,4DAA4C;AAC5C,oEAAoD;AACpD,6DAA6C;AAC7C,qDAAqC;AACrC,oEAAoD;AACpD,yDAAyC;AACzC,uDAAuC;AACvC,kEAAkD;AAClD,4DAA4C;AAC5C,uDAAuC;AACvC,iDAAiC;AACjC,qDAAqC;AACrC,gEAAgD;AAChD,uDAAuC;AACvC,2EAA2D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,uDAAuC;AACvC,2DAA2C;AAC3C,mDAAmC;AACnC,4DAA4C;AAC5C,oEAAoD;AACpD,6DAA6C;AAC7C,qDAAqC;AACrC,oEAAoD;AACpD,yDAAyC;AACzC,uDAAuC;AACvC,kEAAkD;AAClD,4DAA4C;AAC5C,uDAAuC;AACvC,iDAAiC;AACjC,qDAAqC;AACrC,gEAAgD;AAChD,uDAAuC;AACvC,2EAA2D;AAC3D,wEAAwD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChannelType } from '@onereach/orbes/services/channels/channel';
|
|
1
|
+
import { ChannelType } from '@onereach/orbes/dist/services/channels/channel.js';
|
|
2
2
|
import { ITargetAccountId, ITargetUserId, ITimestamps, ICommonArrayResponse } from './common';
|
|
3
3
|
export interface IListener extends ITimestamps {
|
|
4
4
|
readonly callbackId: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ITargetAccountId } from '@/interfaces/api/common';
|
|
2
|
+
import { ISession } from '@/interfaces/api/sessions';
|
|
3
|
+
export interface SessionRelation {
|
|
4
|
+
readonly aSessionId: string;
|
|
5
|
+
readonly bSessionId: string;
|
|
6
|
+
readonly relation: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetSessionRelationsQuery extends ITargetAccountId {
|
|
9
|
+
readonly sessionIds: string[];
|
|
10
|
+
readonly relations?: string[];
|
|
11
|
+
readonly skipSessions?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface SessionRelationsWithSessions {
|
|
14
|
+
readonly sessions?: Record<string, ISession>;
|
|
15
|
+
readonly relations: Record<string, SessionRelation>;
|
|
16
|
+
}
|
|
17
|
+
export interface GetSessionRelationsResponse {
|
|
18
|
+
readonly data: SessionRelationsWithSessions;
|
|
19
|
+
}
|
|
20
|
+
export type CreateSessionRelationsQuery = ITargetAccountId;
|
|
21
|
+
export interface CreateSessionRelationsBody {
|
|
22
|
+
readonly relations: SessionRelation[];
|
|
23
|
+
}
|
|
24
|
+
export interface CreateSessionRelationsResponse {
|
|
25
|
+
readonly data: SessionRelation[];
|
|
26
|
+
}
|
|
27
|
+
export type DeleteSessionRelationsQuery = ITargetAccountId;
|
|
28
|
+
export interface DeleteSessionRelationsBody {
|
|
29
|
+
readonly relations: SessionRelation[];
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-relations.js","sourceRoot":"","sources":["../../../../src/interfaces/api/session-relations.ts"],"names":[],"mappings":""}
|