@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.
@@ -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 email: string;
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 IPutAgentMetaOptions {
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 IPutAgentMetaQuery = ISetAgentStatusQuery;
77
- export interface IPutAgentMetaBody {
74
+ export declare type IPutAgentQuery = ISetAgentStatusQuery;
75
+ export interface IPutAgentBody {
78
76
  readonly ruleGroupIds?: string[];
79
77
  readonly meta?: object;
80
78
  }
@@ -14,4 +14,3 @@ export * as ReadEvents from './read-events';
14
14
  export * as Commands from './commands';
15
15
  export * as Helpers from './helpers';
16
16
  export * as ContactsMeta from './contacts-meta';
17
- export * as AgentsMeta from './agents-meta';
@@ -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.AgentsMeta = 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;
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;AAChD,4DAA4C"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.35-rc.12",
3
+ "version": "0.0.35-rc.13",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",
@@ -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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=agents-meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents-meta.js","sourceRoot":"","sources":["../../../../src/interfaces/api/agents-meta.ts"],"names":[],"mappings":""}