@onereach/types-hitl-api 1.0.11-rc.11 → 1.0.11-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/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/dist/types/interfaces/api/read-events.d.ts +4 -0
- package/dist/types/interfaces/api/sessions.d.ts +0 -5
- package/package.json +1 -1
- package/dist/types/interfaces/api/agent-groups.d.ts +0 -39
- package/dist/types/interfaces/api/agent-groups.js +0 -3
- package/dist/types/interfaces/api/agent-groups.js.map +0 -1
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
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
|
|
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"}
|
|
@@ -22,3 +22,7 @@ export interface ISaveLastReadEventBody {
|
|
|
22
22
|
readonly eventId: string;
|
|
23
23
|
readonly eventTimestamp: string | number;
|
|
24
24
|
}
|
|
25
|
+
export interface IMarkAsUnreadEventsQuery extends ITargetAccountId, ITargetUserId {
|
|
26
|
+
readonly sessionId: string;
|
|
27
|
+
readonly eventTimestamp: string | number;
|
|
28
|
+
}
|
|
@@ -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,7 +146,6 @@ export interface ISessionSearchGroupedByContactsOptions {
|
|
|
149
146
|
export interface ISearchSessionsGroupedByContactsOptions {
|
|
150
147
|
readonly accountId: string;
|
|
151
148
|
readonly agentId: string;
|
|
152
|
-
readonly claimedByGroupsAnyOf?: string[];
|
|
153
149
|
readonly claimedBy?: string[];
|
|
154
150
|
readonly claimedByAnyOf?: string[];
|
|
155
151
|
readonly tags?: string[] | ITagsQuery;
|
|
@@ -218,7 +214,6 @@ export interface ITriggersResponse {
|
|
|
218
214
|
export type IGetInitTriggersResponse = ITriggersResponse[];
|
|
219
215
|
export interface IClaimSessionQuery extends ITargetAccountId {
|
|
220
216
|
readonly claimBy?: string[];
|
|
221
|
-
readonly claimByGroups?: string[];
|
|
222
217
|
}
|
|
223
218
|
export interface IClaimSessionBody {
|
|
224
219
|
readonly params?: object;
|
package/package.json
CHANGED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent-groups.js","sourceRoot":"","sources":["../../../../src/interfaces/api/agent-groups.ts"],"names":[],"mappings":""}
|