@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.
@@ -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_BROADC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tC,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,gBAAgB;IACxB,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 declare type IGetAgentsQuery = Partial<IGetAgentsOptions>;
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 declare type ISearchAgentsQuery = ITargetAccountId;
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 declare type IPutAgentQuery = ISetAgentStatusQuery;
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 declare type IPutAgentRuleGroupsQuery = ISetAgentStatusQuery;
97
- export declare type IPutAgentRuleGroupsBody = Omit<IPutAgentRuleGroupsOptions, 'accountId' | 'agentId'>;
98
- export declare type IPutAgentMetaQuery = ISetAgentStatusQuery;
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 declare type ISetAgentStatusBody = Omit<ISetAgentStatusOptions, 'accountId' | 'agentId'>;
118
- export declare type IUpdateAgentsStatusQuery = ITargetAccountId;
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 declare type ISyncAgentsQuery = ITargetAccountId;
128
- export declare type ISyncAgentsBody = Partial<ISyncAgentsOptions>;
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 declare type ICreateCannedMessageBody = Pick<ICannedMessage, 'category' | 'text'> & Pick<Partial<ICannedMessage>, 'label' | 'ruleTags' | 'attachments'>;
27
- export declare type IUpdateCannedMessageQuery = ITargetAccountId;
28
- export declare type IUpdateCannedMessageBody = Pick<ICannedMessage, 'id'> & Omit<Partial<ICannedMessage>, 'id' | 'userId'>;
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 declare type ITargetSessionId = Partial<ISessionId>;
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 declare type IDateToString<T> = {
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 declare type IAddOrUpdateConferenceMemberQuery = ITargetAccountId;
25
- export declare type IAddOrUpdateConferenceMemberBody = ITargetAccountId & Pick<IConferenceMember, 'hitlSessionId' | 'memberId'> & Omit<Partial<IConferenceMember>, 'hitlSessionId' | 'memberId' | 'joinedAt'>;
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 declare type ISearchContactsMetaQuery = ITargetAccountId;
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 declare type ICreateEventTemplateQuery = ITargetAccountId;
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 declare type IUpdateEventTemplateQuery = ITargetAccountId;
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 declare type ICreateFilterBody = Pick<IFilter, 'name' | 'settings' | 'order' | 'isDefault'>;
21
- export declare type IUpdateFilterQuery = ITargetAccountId;
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
  }
@@ -19,3 +19,7 @@ export interface ICleanUpDuplicatesResponse {
19
19
  delContactIds: string[];
20
20
  };
21
21
  }
22
+ export interface IContactBook {
23
+ readonly schema?: object;
24
+ readonly name?: string;
25
+ }
@@ -22,14 +22,14 @@ export declare enum CALLBACK_TYPE {
22
22
  EVENT = "event",
23
23
  APPS = "apps"
24
24
  }
25
- export declare type ITargetCallbackId = Partial<ICallbackId>;
25
+ export type ITargetCallbackId = Partial<ICallbackId>;
26
26
  export interface ICallbackId {
27
27
  readonly callbackId: string;
28
28
  }
29
- export declare type IGetListenersQuery = ITargetAccountId & ITargetUserId;
30
- export declare type IGetListenersResponse = ICommonArrayResponse<IListener>;
31
- export declare type ICreateListenerQuery = ITargetAccountId & ITargetUserId;
32
- export declare type ICreateListenerBody = {
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 declare type IUpdateListenerBody = Pick<IListener, 'sessionIds'>;
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 declare type ICreateDefaultRecordsQuery = ITargetAccountId;
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 declare type IGetRunMigrationsStatusQuery = ITargetAccountId;
40
- export declare type IGetRunMigrationsStatusResponse = ISequelizeLock | Record<string, never>;
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 declare type IGetNewEventsCountQuery = ITargetAccountId & ITargetUserId;
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 declare type ISaveLastReadEventQuery = ITargetAccountId & ITargetUserId;
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 declare type ICreateRuleGroupQuery = ITargetAccountId;
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 declare type IUpdateRuleGroupQuery = ITargetAccountId;
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 declare type IGetSessionEventsQuery = ITargetAccountId & ISessionId;
20
- export declare type IGetSessionEventsResponse = ICommonArrayResponse<ISessionEvent>;
21
- export declare type IAddEventsBySessionIdQuery = ITargetAccountId & ISessionId;
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 declare type IAddEventsBySessionIdResponse = ICommonArrayResponse<ISessionEvent>;
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 declare type IGetSessionsQuery = Partial<IGetSessionsOptions>;
67
- export declare type IGetSessionByIdQuery = Partial<Omit<IGetSessionByIdOptions, 'sessionId'>>;
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 declare type ISearchSessionsQuery = ITargetAccountId & ITargetUserId;
116
- export declare type ISearchSessionsBody = Omit<ISearchSessionsOptions, 'accountId' | 'agentId' | 'ignoreRuleTags'>;
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 declare type ISearchSessionsWithContactsQuery = ITargetAccountId & ITargetUserId;
147
- export declare type ISearchSessionsWithContactsBody = Omit<ISearchSessionsWithContactsOptions, 'accountId' | 'agentId' | 'token' | 'ignoreRuleTags'>;
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 declare type IGetQueueSessionQuery = Partial<IGetQueueSessionOptions> & ITargetAccountId;
154
+ export type IGetQueueSessionQuery = Partial<IGetQueueSessionOptions> & ITargetAccountId;
155
155
  export interface IGetQueueSessionResponse {
156
156
  readonly data: ISession | null;
157
157
  }
158
- export declare type IGetInitTriggersResponse = ITriggersResponse[];
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 declare type ITransferToBotQuery = ITargetAccountId & ITargetUserId;
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 declare type ICreateSessionsBody = {
174
+ export type ICreateSessionsBody = {
175
175
  readonly sessions: Partial<ISession>[];
176
176
  };
177
177
  export interface ICreateSessionsResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/types-hitl-api",
3
- "version": "0.0.51",
3
+ "version": "0.0.52-rc.0",
4
4
  "author": "OneReach.ai",
5
5
  "main": "dist/types/index.types.js",
6
6
  "types": "dist/types/index.types.d.ts",