@onereach/types-hitl-api 0.0.51 → 0.0.52-rc.0
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/constants/api.d.ts +3 -0
- package/dist/types/constants/api.js +3 -0
- package/dist/types/constants/api.js.map +1 -1
- package/dist/types/interfaces/api/agents.d.ts +10 -10
- package/dist/types/interfaces/api/canned-messages.d.ts +3 -3
- package/dist/types/interfaces/api/common.d.ts +2 -2
- package/dist/types/interfaces/api/conferences.d.ts +2 -2
- package/dist/types/interfaces/api/contacts-meta.d.ts +1 -1
- package/dist/types/interfaces/api/event-templates.d.ts +2 -2
- package/dist/types/interfaces/api/filters.d.ts +2 -2
- package/dist/types/interfaces/api/helpers.d.ts +4 -0
- package/dist/types/interfaces/api/listeners.d.ts +6 -6
- package/dist/types/interfaces/api/migrations.d.ts +4 -3
- package/dist/types/interfaces/api/read-events.d.ts +2 -2
- package/dist/types/interfaces/api/rule-groups.d.ts +2 -2
- package/dist/types/interfaces/api/session-events.d.ts +4 -4
- package/dist/types/interfaces/api/sessions.d.ts +10 -10
- package/package.json +1 -1
|
@@ -42,6 +42,7 @@ export declare enum APP_ERROR_TYPE {
|
|
|
42
42
|
INPUT_VALIDATION = "input-validation",
|
|
43
43
|
MIGRATION_CONFLICT = "migrations-already-running",
|
|
44
44
|
MIGRATION_DATA_COPY = "migration-data-copy",
|
|
45
|
+
MIGRATION_DATA_CLEAN_UP = "migration-data-clean-up",
|
|
45
46
|
MIGRATION_ABORTED = "migration-aborted"
|
|
46
47
|
}
|
|
47
48
|
/** These events are received by clients, usually using WebSocket */
|
|
@@ -60,6 +61,8 @@ export declare const BROADCAST_EVENTS: {
|
|
|
60
61
|
export declare const CONTACT_BROADCAST_EVENTS: {
|
|
61
62
|
DELETE: string;
|
|
62
63
|
UPSERT: string;
|
|
64
|
+
CREATE: string;
|
|
65
|
+
UPDATE: string;
|
|
63
66
|
MERGE: string;
|
|
64
67
|
};
|
|
65
68
|
export declare const AGENT_BROADCAST_EVENTS: {
|
|
@@ -51,6 +51,7 @@ var APP_ERROR_TYPE;
|
|
|
51
51
|
APP_ERROR_TYPE["INPUT_VALIDATION"] = "input-validation";
|
|
52
52
|
APP_ERROR_TYPE["MIGRATION_CONFLICT"] = "migrations-already-running";
|
|
53
53
|
APP_ERROR_TYPE["MIGRATION_DATA_COPY"] = "migration-data-copy";
|
|
54
|
+
APP_ERROR_TYPE["MIGRATION_DATA_CLEAN_UP"] = "migration-data-clean-up";
|
|
54
55
|
APP_ERROR_TYPE["MIGRATION_ABORTED"] = "migration-aborted";
|
|
55
56
|
})(APP_ERROR_TYPE = exports.APP_ERROR_TYPE || (exports.APP_ERROR_TYPE = {}));
|
|
56
57
|
/** These events are received by clients, usually using WebSocket */
|
|
@@ -69,6 +70,8 @@ exports.BROADCAST_EVENTS = {
|
|
|
69
70
|
exports.CONTACT_BROADCAST_EVENTS = {
|
|
70
71
|
DELETE: 'DELETE_CONTACT',
|
|
71
72
|
UPSERT: 'UPSERT_CONTACT',
|
|
73
|
+
CREATE: 'CREATE_CONTACT',
|
|
74
|
+
UPDATE: 'UPDATE_CONTACT',
|
|
72
75
|
MERGE: 'MERGE_CONTACTS',
|
|
73
76
|
};
|
|
74
77
|
exports.AGENT_BROADCAST_EVENTS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/constants/api.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,6BAAa,CAAA;IACb,mCAAmB,CAAA;AACrB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,wCAA2B,CAAA;AAC7B,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB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MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,gBAAgB;CACxB,CAAC;AAEW,QAAA,sBAAsB,GAAG;IACpC,gBAAgB,EAAE,kBAAkB;CACrC,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;CACjC,CAAC"}
|
|
@@ -22,7 +22,7 @@ export interface IGetAgentsOptions extends ITargetAccountId {
|
|
|
22
22
|
readonly orderBy?: string;
|
|
23
23
|
readonly offset?: number;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type IGetAgentsQuery = Partial<IGetAgentsOptions>;
|
|
26
26
|
export interface IGetAgentsResponse {
|
|
27
27
|
readonly data: Partial<IAgent>[];
|
|
28
28
|
}
|
|
@@ -32,7 +32,7 @@ export interface IGetCompleteAgentByIdParams {
|
|
|
32
32
|
export interface IGetCompleteAgentByIdQuery extends ITargetAccountId {
|
|
33
33
|
readonly multiUserId?: string;
|
|
34
34
|
}
|
|
35
|
-
export
|
|
35
|
+
export type ISearchAgentsQuery = ITargetAccountId;
|
|
36
36
|
export interface IAgentsStatusForSearch {
|
|
37
37
|
readonly status: string;
|
|
38
38
|
readonly busyReason?: string;
|
|
@@ -82,7 +82,7 @@ export interface IUpdateAgentOptions {
|
|
|
82
82
|
readonly metaActionType?: 'merge' | 'replace';
|
|
83
83
|
readonly updateType?: 'update' | 'upsert';
|
|
84
84
|
}
|
|
85
|
-
export
|
|
85
|
+
export type IPutAgentQuery = ISetAgentStatusQuery;
|
|
86
86
|
export interface IPutAgentBody {
|
|
87
87
|
readonly ruleGroupIds?: string[];
|
|
88
88
|
readonly meta?: object;
|
|
@@ -93,9 +93,9 @@ export interface IPutAgentRuleGroupsOptions {
|
|
|
93
93
|
readonly addRuleGroupIds?: string[];
|
|
94
94
|
readonly removeRuleGroupIds?: string[];
|
|
95
95
|
}
|
|
96
|
-
export
|
|
97
|
-
export
|
|
98
|
-
export
|
|
96
|
+
export type IPutAgentRuleGroupsQuery = ISetAgentStatusQuery;
|
|
97
|
+
export type IPutAgentRuleGroupsBody = Omit<IPutAgentRuleGroupsOptions, 'accountId' | 'agentId'>;
|
|
98
|
+
export type IPutAgentMetaQuery = ISetAgentStatusQuery;
|
|
99
99
|
export interface IPutAgentMetaBody {
|
|
100
100
|
readonly meta: object;
|
|
101
101
|
}
|
|
@@ -114,8 +114,8 @@ export interface ISetAgentStatusOptions<T extends IStatusChangeContext = IStatus
|
|
|
114
114
|
export interface ISetAgentStatusQuery extends ITargetAccountId {
|
|
115
115
|
agentId: string;
|
|
116
116
|
}
|
|
117
|
-
export
|
|
118
|
-
export
|
|
117
|
+
export type ISetAgentStatusBody = Omit<ISetAgentStatusOptions, 'accountId' | 'agentId'>;
|
|
118
|
+
export type IUpdateAgentsStatusQuery = ITargetAccountId;
|
|
119
119
|
export interface IUpdateAgentsStatusBody<T extends IStatusChangeContext = IStatusChangeContext> {
|
|
120
120
|
readonly query: string;
|
|
121
121
|
readonly statusChangeContext?: T;
|
|
@@ -124,8 +124,8 @@ export interface ISyncAgentsOptions {
|
|
|
124
124
|
readonly accountId: string;
|
|
125
125
|
readonly agentIds?: string[];
|
|
126
126
|
}
|
|
127
|
-
export
|
|
128
|
-
export
|
|
127
|
+
export type ISyncAgentsQuery = ITargetAccountId;
|
|
128
|
+
export type ISyncAgentsBody = Partial<ISyncAgentsOptions>;
|
|
129
129
|
export interface ISyncAgentsResponse {
|
|
130
130
|
readonly data: Partial<IAgent>[];
|
|
131
131
|
}
|
|
@@ -23,9 +23,9 @@ export interface IGetCannedMessagesResponse {
|
|
|
23
23
|
export interface ICreateCannedMessageQuery extends ITargetAccountId, ITargetUserId {
|
|
24
24
|
readonly isCommon?: boolean;
|
|
25
25
|
}
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
26
|
+
export type ICreateCannedMessageBody = Pick<ICannedMessage, 'category' | 'text'> & Pick<Partial<ICannedMessage>, 'label' | 'ruleTags' | 'attachments'>;
|
|
27
|
+
export type IUpdateCannedMessageQuery = ITargetAccountId;
|
|
28
|
+
export type IUpdateCannedMessageBody = Pick<ICannedMessage, 'id'> & Omit<Partial<ICannedMessage>, 'id' | 'userId'>;
|
|
29
29
|
export interface IDeleteCannedMessageQuery {
|
|
30
30
|
readonly id: string;
|
|
31
31
|
}
|
|
@@ -12,7 +12,7 @@ export interface ITargetUserId {
|
|
|
12
12
|
readonly agentId?: string;
|
|
13
13
|
}
|
|
14
14
|
/** Common names for a property that references session */
|
|
15
|
-
export
|
|
15
|
+
export type ITargetSessionId = Partial<ISessionId>;
|
|
16
16
|
export interface ISessionId {
|
|
17
17
|
readonly sessionId: string;
|
|
18
18
|
}
|
|
@@ -31,6 +31,6 @@ export interface ICommonArrayResponse<T = object> {
|
|
|
31
31
|
readonly data: T[];
|
|
32
32
|
}
|
|
33
33
|
/** Dates are serialized into strings when sent by network */
|
|
34
|
-
export
|
|
34
|
+
export type IDateToString<T> = {
|
|
35
35
|
[Property in keyof T]: T[Property] extends Date | undefined ? string : T[Property];
|
|
36
36
|
};
|
|
@@ -21,8 +21,8 @@ export interface IGetConferenceMembersQuery extends ITargetAccountId {
|
|
|
21
21
|
export interface IGetConferenceMembersResponse {
|
|
22
22
|
readonly data: IConferenceMember[];
|
|
23
23
|
}
|
|
24
|
-
export
|
|
25
|
-
export
|
|
24
|
+
export type IAddOrUpdateConferenceMemberQuery = ITargetAccountId;
|
|
25
|
+
export type IAddOrUpdateConferenceMemberBody = ITargetAccountId & Pick<IConferenceMember, 'hitlSessionId' | 'memberId'> & Omit<Partial<IConferenceMember>, 'hitlSessionId' | 'memberId' | 'joinedAt'>;
|
|
26
26
|
export interface ICleanUpConferenceQuery extends ITargetAccountId {
|
|
27
27
|
readonly memberId?: string;
|
|
28
28
|
readonly hitlSessionId?: string;
|
|
@@ -3,7 +3,7 @@ export interface IContactMeta extends ITimestamps {
|
|
|
3
3
|
readonly contactId: string;
|
|
4
4
|
readonly eventTimestamp: Date;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type ISearchContactsMetaQuery = ITargetAccountId;
|
|
7
7
|
export interface ISearchContactsMetaBody {
|
|
8
8
|
readonly contactIds: string[];
|
|
9
9
|
}
|
|
@@ -19,7 +19,7 @@ export interface IGetEventTemplatesQuery extends ITargetAccountId {
|
|
|
19
19
|
export interface IGetEventTemplatesResponse {
|
|
20
20
|
readonly data: IEventTemplate[];
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type ICreateEventTemplateQuery = ITargetAccountId;
|
|
23
23
|
export interface ICreateEventTemplateBody {
|
|
24
24
|
readonly eventType: string;
|
|
25
25
|
readonly rule: string;
|
|
@@ -27,7 +27,7 @@ export interface ICreateEventTemplateBody {
|
|
|
27
27
|
readonly isActive?: boolean;
|
|
28
28
|
readonly isVisible?: boolean;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type IUpdateEventTemplateQuery = ITargetAccountId;
|
|
31
31
|
export interface IUpdateEventTemplateBody extends Partial<ICreateEventTemplateBody> {
|
|
32
32
|
readonly templateId: string;
|
|
33
33
|
}
|
|
@@ -17,8 +17,8 @@ export interface IGetFiltersResponse {
|
|
|
17
17
|
export interface ICreateFilterQuery extends ITargetAccountId, ITargetUserId {
|
|
18
18
|
readonly isCommon?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
21
|
-
export
|
|
20
|
+
export type ICreateFilterBody = Pick<IFilter, 'name' | 'settings' | 'order' | 'isDefault'>;
|
|
21
|
+
export type IUpdateFilterQuery = ITargetAccountId;
|
|
22
22
|
export interface IUpdateFilterBody extends Partial<ICreateFilterBody> {
|
|
23
23
|
readonly id: string;
|
|
24
24
|
}
|
|
@@ -22,14 +22,14 @@ export declare enum CALLBACK_TYPE {
|
|
|
22
22
|
EVENT = "event",
|
|
23
23
|
APPS = "apps"
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type ITargetCallbackId = Partial<ICallbackId>;
|
|
26
26
|
export interface ICallbackId {
|
|
27
27
|
readonly callbackId: string;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
29
|
+
export type IGetListenersQuery = ITargetAccountId & ITargetUserId;
|
|
30
|
+
export type IGetListenersResponse = ICommonArrayResponse<IListener>;
|
|
31
|
+
export type ICreateListenerQuery = ITargetAccountId & ITargetUserId;
|
|
32
|
+
export type ICreateListenerBody = {
|
|
33
33
|
callback: Partial<IListenerCallback>;
|
|
34
34
|
} & Pick<Partial<IListener>, 'type' | 'version' | 'sessionIds'>;
|
|
35
|
-
export
|
|
35
|
+
export type IUpdateListenerBody = Pick<IListener, 'sessionIds'>;
|
|
@@ -14,6 +14,7 @@ export interface ISequelizeLock extends IDefaultPrimaryKey, ITimestamps {
|
|
|
14
14
|
stack?: string;
|
|
15
15
|
details?: any;
|
|
16
16
|
} | null;
|
|
17
|
+
readonly reports?: object;
|
|
17
18
|
readonly method?: string;
|
|
18
19
|
readonly iterations: number;
|
|
19
20
|
}
|
|
@@ -29,12 +30,12 @@ export interface IGetMigrationsResponse {
|
|
|
29
30
|
readonly executed: IMigration[];
|
|
30
31
|
readonly pending: IMigration[];
|
|
31
32
|
}
|
|
32
|
-
export
|
|
33
|
+
export type ICreateDefaultRecordsQuery = ITargetAccountId;
|
|
33
34
|
export interface ICreateDefaultRecordsResponse {
|
|
34
35
|
readonly tables: string[];
|
|
35
36
|
}
|
|
36
37
|
export interface IGetMigrationsInfoResponse {
|
|
37
38
|
readonly migrationsByAppVersion: Record<string, string>;
|
|
38
39
|
}
|
|
39
|
-
export
|
|
40
|
-
export
|
|
40
|
+
export type IGetRunMigrationsStatusQuery = ITargetAccountId;
|
|
41
|
+
export type IGetRunMigrationsStatusResponse = ISequelizeLock | Record<string, never>;
|
|
@@ -5,7 +5,7 @@ export interface IReadEvent {
|
|
|
5
5
|
readonly eventTimestamp: Date;
|
|
6
6
|
readonly sessionId: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type IGetNewEventsCountQuery = ITargetAccountId & ITargetUserId;
|
|
9
9
|
export interface IGetNewEventsCountBody {
|
|
10
10
|
readonly sessionIds: string[];
|
|
11
11
|
}
|
|
@@ -16,7 +16,7 @@ export interface IGetNewEventsCountResponse {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type ISaveLastReadEventQuery = ITargetAccountId & ITargetUserId;
|
|
20
20
|
export interface ISaveLastReadEventBody {
|
|
21
21
|
readonly sessionId: string;
|
|
22
22
|
readonly eventId: string;
|
|
@@ -21,13 +21,13 @@ export interface ISearchRuleGroupsBody {
|
|
|
21
21
|
export interface ISearchRuleGroupsResponse {
|
|
22
22
|
readonly data: IRuleGroup[];
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export type ICreateRuleGroupQuery = ITargetAccountId;
|
|
25
25
|
export interface ICreateRuleGroupBody {
|
|
26
26
|
readonly accountId: string;
|
|
27
27
|
readonly name: string;
|
|
28
28
|
readonly rules: string[];
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type IUpdateRuleGroupQuery = ITargetAccountId;
|
|
31
31
|
export interface IUpdateRuleGroupBody extends ICreateRuleGroupBody {
|
|
32
32
|
readonly groupId: string;
|
|
33
33
|
}
|
|
@@ -16,10 +16,10 @@ export interface ISessionEvent {
|
|
|
16
16
|
readonly transactionId?: string;
|
|
17
17
|
readonly version?: number;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
19
|
+
export type IGetSessionEventsQuery = ITargetAccountId & ISessionId;
|
|
20
|
+
export type IGetSessionEventsResponse = ICommonArrayResponse<ISessionEvent>;
|
|
21
|
+
export type IAddEventsBySessionIdQuery = ITargetAccountId & ISessionId;
|
|
22
22
|
export interface IAddEventsBySessionIdBody {
|
|
23
23
|
readonly events: Partial<ISessionEvent>[];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type IAddEventsBySessionIdResponse = ICommonArrayResponse<ISessionEvent>;
|
|
@@ -63,8 +63,8 @@ export interface IGetSessionsOptions {
|
|
|
63
63
|
readonly page?: IPageOptions;
|
|
64
64
|
readonly ignoreRuleTags: boolean;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
67
|
-
export
|
|
66
|
+
export type IGetSessionsQuery = Partial<IGetSessionsOptions>;
|
|
67
|
+
export type IGetSessionByIdQuery = Partial<Omit<IGetSessionByIdOptions, 'sessionId'>>;
|
|
68
68
|
export interface IGetSessionsResponse {
|
|
69
69
|
readonly data: ISession[];
|
|
70
70
|
readonly page?: {
|
|
@@ -112,8 +112,8 @@ export interface ISearchSessionsOptions {
|
|
|
112
112
|
readonly sessionsSearchOptions?: ISessionSearchOptions;
|
|
113
113
|
readonly ignoreRuleTags: boolean;
|
|
114
114
|
}
|
|
115
|
-
export
|
|
116
|
-
export
|
|
115
|
+
export type ISearchSessionsQuery = ITargetAccountId & ITargetUserId;
|
|
116
|
+
export type ISearchSessionsBody = Omit<ISearchSessionsOptions, 'accountId' | 'agentId' | 'ignoreRuleTags'>;
|
|
117
117
|
export interface ISearchSessionsWithContactsResponse {
|
|
118
118
|
readonly data: ISession[];
|
|
119
119
|
readonly page?: {
|
|
@@ -143,26 +143,26 @@ export interface ISearchSessionsWithContactsOptions {
|
|
|
143
143
|
readonly contactsSearchOptions?: IContactSearchOptions;
|
|
144
144
|
readonly ignoreRuleTags: boolean;
|
|
145
145
|
}
|
|
146
|
-
export
|
|
147
|
-
export
|
|
146
|
+
export type ISearchSessionsWithContactsQuery = ITargetAccountId & ITargetUserId;
|
|
147
|
+
export type ISearchSessionsWithContactsBody = Omit<ISearchSessionsWithContactsOptions, 'accountId' | 'agentId' | 'token' | 'ignoreRuleTags'>;
|
|
148
148
|
export interface IGetQueueSessionOptions {
|
|
149
149
|
readonly accountId: string;
|
|
150
150
|
readonly agentId: string;
|
|
151
151
|
readonly ruleTags?: string[];
|
|
152
152
|
readonly ignoreRuleTags: boolean;
|
|
153
153
|
}
|
|
154
|
-
export
|
|
154
|
+
export type IGetQueueSessionQuery = Partial<IGetQueueSessionOptions> & ITargetAccountId;
|
|
155
155
|
export interface IGetQueueSessionResponse {
|
|
156
156
|
readonly data: ISession | null;
|
|
157
157
|
}
|
|
158
|
-
export
|
|
158
|
+
export type IGetInitTriggersResponse = ITriggersResponse[];
|
|
159
159
|
export interface IClaimSessionQuery extends ITargetAccountId {
|
|
160
160
|
readonly claimBy?: string[];
|
|
161
161
|
}
|
|
162
162
|
export interface IClaimSessionBody {
|
|
163
163
|
readonly params?: object;
|
|
164
164
|
}
|
|
165
|
-
export
|
|
165
|
+
export type ITransferToBotQuery = ITargetAccountId & ITargetUserId;
|
|
166
166
|
export interface ITransferToBotBody {
|
|
167
167
|
readonly params?: object;
|
|
168
168
|
}
|
|
@@ -171,7 +171,7 @@ export interface IUpdateSessionBody<Meta = any> {
|
|
|
171
171
|
readonly tags?: string[];
|
|
172
172
|
readonly contactId?: string;
|
|
173
173
|
}
|
|
174
|
-
export
|
|
174
|
+
export type ICreateSessionsBody = {
|
|
175
175
|
readonly sessions: Partial<ISession>[];
|
|
176
176
|
};
|
|
177
177
|
export interface ICreateSessionsResponse {
|