@onereach/types-hitl-api 0.0.35-rc.12 → 0.0.35-rc.13
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/agents.d.ts +5 -7
- package/dist/types/interfaces/api/index.d.ts +0 -1
- package/dist/types/interfaces/api/index.js +1 -2
- package/dist/types/interfaces/api/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/interfaces/api/agents-meta.d.ts +0 -9
- package/dist/types/interfaces/api/agents-meta.js +0 -3
- package/dist/types/interfaces/api/agents-meta.js.map +0 -1
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { AGENT_STATUS, USER_ROLE } from '@/constants/api';
|
|
2
2
|
import { ITargetAccountId } from '@/interfaces/api/common';
|
|
3
3
|
export interface IAgent<T extends IMeta = IMeta> {
|
|
4
|
-
readonly accountId: string;
|
|
5
4
|
readonly id: string;
|
|
5
|
+
readonly agentId: string;
|
|
6
6
|
readonly multiUserId: string;
|
|
7
7
|
readonly role: USER_ROLE;
|
|
8
8
|
readonly email: string;
|
|
9
|
-
readonly username: string;
|
|
10
|
-
readonly data: object;
|
|
11
9
|
readonly ruleGroupIds: string[];
|
|
12
10
|
readonly statusData: Omit<IAgentStatus, 'agentId'>;
|
|
13
11
|
readonly meta: T;
|
|
14
12
|
}
|
|
15
13
|
export interface IMeta {
|
|
16
14
|
readonly name?: string;
|
|
17
|
-
readonly
|
|
15
|
+
readonly type?: string;
|
|
18
16
|
}
|
|
19
17
|
export interface IGetAgentsQuery extends ITargetAccountId {
|
|
20
18
|
readonly agentIds?: string[];
|
|
@@ -66,15 +64,15 @@ export interface IAgentStatusSettings {
|
|
|
66
64
|
readonly defaultLoginStatusReason?: string;
|
|
67
65
|
readonly busyStatusReasons?: string[];
|
|
68
66
|
}
|
|
69
|
-
export interface
|
|
67
|
+
export interface IPutAgentOptions {
|
|
70
68
|
readonly accountId: string;
|
|
71
69
|
readonly agentId: string;
|
|
72
70
|
readonly ruleGroupIds?: string[];
|
|
73
71
|
readonly meta?: object;
|
|
74
72
|
readonly transaction?: any;
|
|
75
73
|
}
|
|
76
|
-
export declare type
|
|
77
|
-
export interface
|
|
74
|
+
export declare type IPutAgentQuery = ISetAgentStatusQuery;
|
|
75
|
+
export interface IPutAgentBody {
|
|
78
76
|
readonly ruleGroupIds?: string[];
|
|
79
77
|
readonly meta?: object;
|
|
80
78
|
}
|
|
@@ -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.
|
|
29
|
+
exports.ContactsMeta = exports.Helpers = 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"));
|
|
@@ -43,5 +43,4 @@ exports.ReadEvents = __importStar(require("./read-events"));
|
|
|
43
43
|
exports.Commands = __importStar(require("./commands"));
|
|
44
44
|
exports.Helpers = __importStar(require("./helpers"));
|
|
45
45
|
exports.ContactsMeta = __importStar(require("./contacts-meta"));
|
|
46
|
-
exports.AgentsMeta = __importStar(require("./agents-meta"));
|
|
47
46
|
//# 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,qDAAqC;AACrC,gEAAgD
|
|
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,qDAAqC;AACrC,gEAAgD"}
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IAgentStatus } from '@/interfaces/api/agents';
|
|
2
|
-
import { ITimestamps } from '@/interfaces/api/common';
|
|
3
|
-
export interface IAgentMeta extends ITimestamps {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly agentId: string;
|
|
6
|
-
readonly ruleGroupIds: string[];
|
|
7
|
-
readonly statusData: Omit<IAgentStatus, 'agentId'>;
|
|
8
|
-
readonly meta: object;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agents-meta.js","sourceRoot":"","sources":["../../../../src/interfaces/api/agents-meta.ts"],"names":[],"mappings":""}
|