@onereach/types-hitl-api 1.0.11-rc.5 → 1.0.11-rc.8

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.
@@ -20,4 +20,3 @@ export * as ContactRuleGroups from './contact-rule-groups';
20
20
  export * as SessionRelations from './session-relations';
21
21
  export * as Contacts from './contacts';
22
22
  export * as DraftMessages from './draft-messages';
23
- export * as AgentGroups from './agent-groups';
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.AgentGroups = exports.DraftMessages = exports.Contacts = 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;
39
+ exports.DraftMessages = exports.Contacts = 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;
40
40
  __exportStar(require("./common"), exports);
41
41
  exports.Settings = __importStar(require("./settings"));
42
42
  exports.Migrations = __importStar(require("./migrations"));
@@ -59,5 +59,4 @@ exports.ContactRuleGroups = __importStar(require("./contact-rule-groups"));
59
59
  exports.SessionRelations = __importStar(require("./session-relations"));
60
60
  exports.Contacts = __importStar(require("./contacts"));
61
61
  exports.DraftMessages = __importStar(require("./draft-messages"));
62
- exports.AgentGroups = __importStar(require("./agent-groups"));
63
62
  //# 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;AAC3D,wEAAwD;AACxD,uDAAuC;AACvC,kEAAkD;AAClD,8DAA8C"}
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;AACxD,uDAAuC;AACvC,kEAAkD"}
@@ -4,8 +4,6 @@ export interface ISession<Meta = any> extends ITimestamps {
4
4
  readonly hitlSessionId: string;
5
5
  readonly claimedBy: string[];
6
6
  readonly claimedByHistory: string[];
7
- readonly claimedByGroups: string[];
8
- readonly claimedByGroupAgents: string[];
9
7
  readonly contactId: string;
10
8
  readonly closedAt?: Date | null;
11
9
  readonly isArchived: boolean;
@@ -121,7 +119,6 @@ export interface ISearchSessionsOptions {
121
119
  readonly dateRange?: IDateRangeOptions;
122
120
  readonly claimedBy?: string;
123
121
  readonly claimedByHistory?: string;
124
- readonly claimedByGroups?: string;
125
122
  readonly tags?: string[] | ITagsQuery;
126
123
  readonly status?: string[];
127
124
  readonly needsAction?: boolean;
@@ -149,8 +146,8 @@ export interface ISessionSearchGroupedByContactsOptions {
149
146
  export interface ISearchSessionsGroupedByContactsOptions {
150
147
  readonly accountId: string;
151
148
  readonly agentId: string;
152
- readonly claimedByGroups?: string[];
153
149
  readonly claimedBy?: string[];
150
+ readonly claimedByAnyOf?: string[];
154
151
  readonly tags?: string[] | ITagsQuery;
155
152
  readonly needsAction?: boolean;
156
153
  readonly type?: string;
@@ -217,7 +214,6 @@ export interface ITriggersResponse {
217
214
  export type IGetInitTriggersResponse = ITriggersResponse[];
218
215
  export interface IClaimSessionQuery extends ITargetAccountId {
219
216
  readonly claimBy?: string[];
220
- readonly claimByGroups?: string[];
221
217
  }
222
218
  export interface IClaimSessionBody {
223
219
  readonly params?: object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "1.0.11-rc.5",
3
+ "version": "1.0.11-rc.8",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",
@@ -1,39 +0,0 @@
1
- import { ITargetAccountId, ITimestamps } from './common';
2
- export interface IAgentGroup extends ITimestamps {
3
- readonly id: string;
4
- readonly name: string;
5
- readonly meta: object;
6
- }
7
- export interface IAgentGroupMember {
8
- id: string;
9
- agentGroupId: string;
10
- agentId: string;
11
- }
12
- export interface IAgentGroupWithMembers extends IAgentGroup {
13
- readonly agentIds: string[];
14
- }
15
- export interface IGetAgentGroupQuery extends ITargetAccountId {
16
- readonly id?: string;
17
- readonly agentIds?: string[];
18
- readonly name?: string;
19
- readonly offset?: number;
20
- readonly limit?: number;
21
- readonly orderBy?: string;
22
- readonly order?: string;
23
- }
24
- export interface IGetAgentGroupsResponse {
25
- readonly data: IAgentGroupWithMembers[];
26
- }
27
- export type ICreateAgentGroupQuery = ITargetAccountId;
28
- export type ICreateAgentGroupBody = Omit<IAgentGroupWithMembers, 'id'>;
29
- export type IUpdateAgentGroupQuery = ITargetAccountId;
30
- export interface IPatchGroupMembers {
31
- readonly addAgentIds?: string[];
32
- readonly removeAgentIds?: string[];
33
- }
34
- export interface IUpdateAgentGroupBody extends IAgentGroup {
35
- readonly agentIds: string[] | IPatchGroupMembers;
36
- }
37
- export interface IDeleteAgentGroupQuery extends ITargetAccountId {
38
- readonly id: string;
39
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=agent-groups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agent-groups.js","sourceRoot":"","sources":["../../../../src/interfaces/api/agent-groups.ts"],"names":[],"mappings":""}