@onereach/types-hitl-api 0.0.17 → 0.0.18
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/common.d.ts +10 -4
- package/dist/types/interfaces/conferences.d.ts +31 -0
- package/dist/types/interfaces/event-templates.d.ts +4 -6
- package/dist/types/interfaces/index.types.d.ts +1 -0
- package/dist/types/interfaces/migrations.d.ts +2 -2
- package/dist/types/interfaces/rule-groups.d.ts +1 -4
- package/dist/types/interfaces/settings.d.ts +2 -3
- package/package.json +1 -1
|
@@ -2,10 +2,16 @@ export declare type JSONProperty = string | boolean | number | null;
|
|
|
2
2
|
export declare type JSONType = JSONType[] | {
|
|
3
3
|
[key: string]: JSONProperty | JSONType;
|
|
4
4
|
};
|
|
5
|
+
export interface IDefaultPrimaryKey {
|
|
6
|
+
readonly id: number;
|
|
7
|
+
}
|
|
5
8
|
export interface ITimestamps {
|
|
6
|
-
readonly createdAt
|
|
7
|
-
readonly updatedAt
|
|
9
|
+
readonly createdAt?: Date;
|
|
10
|
+
readonly updatedAt?: Date;
|
|
8
11
|
}
|
|
9
|
-
export interface
|
|
10
|
-
readonly
|
|
12
|
+
export interface ITargetAccountId {
|
|
13
|
+
readonly accountId?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ITargetUserId {
|
|
16
|
+
readonly agentId?: string;
|
|
11
17
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ITargetAccountId } from './common';
|
|
2
|
+
import { CALL_MEMBER_STATUS, CALL_MEMBER_TYPE } from '../constants';
|
|
3
|
+
export interface IConferencesModel {
|
|
4
|
+
readonly hitlSessionId: string;
|
|
5
|
+
readonly memberId: string;
|
|
6
|
+
readonly identifier: string;
|
|
7
|
+
readonly type: CALL_MEMBER_TYPE;
|
|
8
|
+
readonly status: CALL_MEMBER_STATUS;
|
|
9
|
+
readonly state: IConferenceMemberState;
|
|
10
|
+
readonly joinedAt?: Date;
|
|
11
|
+
readonly disconnectedAt?: Date;
|
|
12
|
+
}
|
|
13
|
+
export interface IConferenceMemberState {
|
|
14
|
+
readonly isMuted: boolean;
|
|
15
|
+
readonly isOnHold: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface IGetConferenceMembersQuery extends ITargetAccountId {
|
|
18
|
+
readonly hitlSessionId: string;
|
|
19
|
+
readonly memberId?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IGetConferenceMembersResponse {
|
|
22
|
+
readonly data: IConferencesModel[];
|
|
23
|
+
}
|
|
24
|
+
export declare type IAddConferenceMemberQuery = ITargetAccountId;
|
|
25
|
+
export declare type IAddConferenceMemberBody = Omit<IConferencesModel, 'state' | 'joinedAt' | 'disconnectedAt'>;
|
|
26
|
+
export declare type IUpdateConferenceMemberQuery = ITargetAccountId;
|
|
27
|
+
export declare type IUpdateConferenceMemberBody = Pick<IConferencesModel, 'hitlSessionId' | 'memberId'> & Pick<Partial<IConferencesModel>, 'identifier' | 'status' | 'state' | 'disconnectedAt'>;
|
|
28
|
+
export interface ICleanUpConferenceQuery extends ITargetAccountId {
|
|
29
|
+
readonly memberId?: string;
|
|
30
|
+
readonly hitlSessionId?: string;
|
|
31
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ITargetAccountId } from './common';
|
|
1
2
|
export interface IEventTemplatesModel {
|
|
2
3
|
readonly templateId: string;
|
|
3
4
|
readonly eventType: string;
|
|
@@ -12,16 +13,13 @@ export interface IEventTemplateContent {
|
|
|
12
13
|
readonly css?: string;
|
|
13
14
|
readonly sass?: string;
|
|
14
15
|
}
|
|
15
|
-
export interface IGetEventTemplatesQuery {
|
|
16
|
+
export interface IGetEventTemplatesQuery extends ITargetAccountId {
|
|
16
17
|
readonly templateId?: string;
|
|
17
|
-
readonly accountId?: string;
|
|
18
18
|
}
|
|
19
19
|
export interface IGetEventTemplatesResponse {
|
|
20
20
|
readonly data: IEventTemplatesModel[];
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
readonly accountId?: string;
|
|
24
|
-
}
|
|
22
|
+
export declare type ICreateEventTemplateQuery = ITargetAccountId;
|
|
25
23
|
export interface ICreateEventTemplateBody {
|
|
26
24
|
readonly eventType: string;
|
|
27
25
|
readonly rule: string;
|
|
@@ -29,7 +27,7 @@ export interface ICreateEventTemplateBody {
|
|
|
29
27
|
readonly isActive?: boolean;
|
|
30
28
|
readonly isVisible?: boolean;
|
|
31
29
|
}
|
|
32
|
-
export declare type IUpdateEventTemplateQuery =
|
|
30
|
+
export declare type IUpdateEventTemplateQuery = ITargetAccountId;
|
|
33
31
|
export interface IUpdateEventTemplateBody extends Partial<ICreateEventTemplateBody> {
|
|
34
32
|
readonly templateId: string;
|
|
35
33
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ITargetAccountId } from './common';
|
|
1
2
|
export interface IMigration {
|
|
2
3
|
readonly file: string;
|
|
3
4
|
}
|
|
@@ -5,8 +6,7 @@ export interface IMigrationResult {
|
|
|
5
6
|
readonly migrations: IMigration[];
|
|
6
7
|
readonly method: 'up' | 'down';
|
|
7
8
|
}
|
|
8
|
-
export interface IGetMigrationsQuery {
|
|
9
|
-
readonly accountId?: string;
|
|
9
|
+
export interface IGetMigrationsQuery extends ITargetAccountId {
|
|
10
10
|
readonly appVersion?: string;
|
|
11
11
|
}
|
|
12
12
|
export interface IRunMigrationsQuery extends IGetMigrationsQuery {
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { ITimestamps } from './common';
|
|
1
|
+
import { ITimestamps, ITargetAccountId } from './common';
|
|
2
2
|
export interface IRuleGroupsModel extends ITimestamps {
|
|
3
3
|
readonly groupId: string;
|
|
4
4
|
readonly name: string;
|
|
5
5
|
readonly rules: string[];
|
|
6
6
|
}
|
|
7
|
-
export interface ITargetAccountId {
|
|
8
|
-
readonly accountId?: string;
|
|
9
|
-
}
|
|
10
7
|
export interface ISearchRuleGroupsQuery extends ITargetAccountId {
|
|
11
8
|
readonly groupId?: string;
|
|
12
9
|
readonly search?: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { JSONType } from './common';
|
|
1
|
+
import { ITargetAccountId, JSONType } from './common';
|
|
2
2
|
export interface ISettingsModel {
|
|
3
3
|
readonly category: string;
|
|
4
4
|
readonly userId: string;
|
|
5
5
|
readonly data: JSONType;
|
|
6
6
|
}
|
|
7
|
-
export interface IUpdateSettingsQuery {
|
|
7
|
+
export interface IUpdateSettingsQuery extends ITargetAccountId {
|
|
8
8
|
readonly isCommon?: boolean;
|
|
9
|
-
readonly accountId?: string;
|
|
10
9
|
}
|
|
11
10
|
export interface IGetSettingsQuery extends IUpdateSettingsQuery {
|
|
12
11
|
/** Skip this argument to return all saved settings */
|