@or-sdk/hitl 0.36.3-beta.4070.0 → 0.36.3
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/CHANGELOG.md +9 -0
- package/dist/types/HITL.d.ts +13 -0
- package/dist/types/HITL.d.ts.map +1 -1
- package/dist/types/api/Agents.d.ts +347 -0
- package/dist/types/api/Agents.d.ts.map +1 -1
- package/dist/types/api/CannedMessages.d.ts +168 -0
- package/dist/types/api/CannedMessages.d.ts.map +1 -1
- package/dist/types/api/Commands.d.ts +46 -0
- package/dist/types/api/Commands.d.ts.map +1 -1
- package/dist/types/api/Conferences.d.ts +120 -0
- package/dist/types/api/Conferences.d.ts.map +1 -1
- package/dist/types/api/ContactRuleGroups.d.ts +131 -0
- package/dist/types/api/ContactRuleGroups.d.ts.map +1 -1
- package/dist/types/api/Contacts.d.ts +37 -0
- package/dist/types/api/Contacts.d.ts.map +1 -1
- package/dist/types/api/ContactsMeta.d.ts +33 -0
- package/dist/types/api/ContactsMeta.d.ts.map +1 -1
- package/dist/types/api/EventTemplates.d.ts +135 -0
- package/dist/types/api/EventTemplates.d.ts.map +1 -1
- package/dist/types/api/Filters.d.ts +215 -0
- package/dist/types/api/Filters.d.ts.map +1 -1
- package/dist/types/api/HITLBase.d.ts +5 -0
- package/dist/types/api/HITLBase.d.ts.map +1 -1
- package/dist/types/api/Helpers.d.ts +33 -0
- package/dist/types/api/Helpers.d.ts.map +1 -1
- package/dist/types/api/Listeners.d.ts +150 -0
- package/dist/types/api/Listeners.d.ts.map +1 -1
- package/dist/types/api/Migrations.d.ts +222 -0
- package/dist/types/api/Migrations.d.ts.map +1 -1
- package/dist/types/api/RuleGroups.d.ts +127 -0
- package/dist/types/api/RuleGroups.d.ts.map +1 -1
- package/dist/types/api/SessionEvents.d.ts +145 -0
- package/dist/types/api/SessionEvents.d.ts.map +1 -1
- package/dist/types/api/SessionRelations.d.ts +109 -0
- package/dist/types/api/SessionRelations.d.ts.map +1 -1
- package/dist/types/api/Sessions.d.ts +454 -0
- package/dist/types/api/Sessions.d.ts.map +1 -1
- package/dist/types/api/Settings.d.ts +145 -0
- package/dist/types/api/Settings.d.ts.map +1 -1
- package/dist/types/api/Tasks.d.ts +39 -0
- package/dist/types/api/Tasks.d.ts.map +1 -1
- package/dist/types/api/Versions.d.ts +80 -0
- package/dist/types/api/Versions.d.ts.map +1 -1
- package/dist/types/types/agents.d.ts +3 -0
- package/dist/types/types/agents.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -1,9 +1,129 @@
|
|
|
1
1
|
import { GetConferenceMembersOptions, GetConferenceMembersResponse, ConferenceMember, AddOrUpdateConferenceMemberOptions, CleanUpConferenceOptions } from '../types/conferences';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
+
/**
|
|
4
|
+
* Manages voice conference members in the system
|
|
5
|
+
*
|
|
6
|
+
* This class provides functionality to manage conference participants, including retrieving,
|
|
7
|
+
* adding, updating, and removing conference members.
|
|
8
|
+
*
|
|
9
|
+
* Key features:
|
|
10
|
+
* - Manage conference member states and statuses
|
|
11
|
+
* - Track member connection states
|
|
12
|
+
* - Support for cleanup operations
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* - All methods in this class interact with the `/conferences` endpoint
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
3
18
|
export declare class Conferences extends HITLBase {
|
|
4
19
|
protected static MODULE_URL: string;
|
|
20
|
+
/**
|
|
21
|
+
* Gets a list of conference members or a specific member
|
|
22
|
+
*
|
|
23
|
+
* @param options - Configuration parameters for the conference members request
|
|
24
|
+
*
|
|
25
|
+
* Required parameters:
|
|
26
|
+
* - `hitlSessionId` - (string) ID of the HitL session
|
|
27
|
+
*
|
|
28
|
+
* Optional parameters:
|
|
29
|
+
* - `memberId` - (string) Get specific member by ID
|
|
30
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
31
|
+
* - `version` - (string | number) API version to use
|
|
32
|
+
*
|
|
33
|
+
* @returns {Promise<GetConferenceMembersResponse | ConferenceMember>} Promise resolving to:
|
|
34
|
+
* - Either a list of conference members or a single member if memberId is provided
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* // Get all members in a conference
|
|
39
|
+
* const response = await hitlApi.conferences.getConferenceMembers({
|
|
40
|
+
* hitlSessionId: 'session-id'
|
|
41
|
+
* });
|
|
42
|
+
*
|
|
43
|
+
* // Get a specific member
|
|
44
|
+
* const member = await hitlApi.conferences.getConferenceMembers({
|
|
45
|
+
* hitlSessionId: 'session-id',
|
|
46
|
+
* memberId: 'member-id'
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Makes a GET request to the `/conferences` endpoint
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
5
54
|
static getConferenceMembers({ hitlSessionId, memberId, ...options }: GetConferenceMembersOptions): Promise<GetConferenceMembersResponse | ConferenceMember>;
|
|
55
|
+
/**
|
|
56
|
+
* Adds or updates a conference member
|
|
57
|
+
*
|
|
58
|
+
* @param options - Configuration parameters for adding/updating the conference member
|
|
59
|
+
*
|
|
60
|
+
* Required parameters:
|
|
61
|
+
* - `hitlSessionId` - (string) ID of the HitL session
|
|
62
|
+
* - `identifier` - (string) Unique identifier for the member
|
|
63
|
+
* - `type` - (string) Type of the conference member
|
|
64
|
+
*
|
|
65
|
+
* Optional parameters:
|
|
66
|
+
* - `memberId` - (string) ID of the member to update
|
|
67
|
+
* - `status` - (string) Member's status
|
|
68
|
+
* - `state` - (string) Member's state
|
|
69
|
+
* - `disconnectedAt` - (Date) Timestamp when member disconnected
|
|
70
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
71
|
+
* - `version` - (string | number) API version to use
|
|
72
|
+
*
|
|
73
|
+
* @returns {Promise<ConferenceMember>} Promise resolving to the created/updated conference member
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* const member = await hitlApi.conferences.addOrUpdateConferenceMember({
|
|
78
|
+
* hitlSessionId: 'session-id',
|
|
79
|
+
* identifier: '+1234567890',
|
|
80
|
+
* type: 'contact',
|
|
81
|
+
* status: 'JOINED',
|
|
82
|
+
* state: {
|
|
83
|
+
* isMuted: false,
|
|
84
|
+
* isOnHold: false
|
|
85
|
+
* }
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* Makes a POST request to the `/conferences` endpoint
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
6
93
|
static addOrUpdateConferenceMember({ hitlSessionId, memberId, identifier, type, status, state, disconnectedAt, ...options }: AddOrUpdateConferenceMemberOptions): Promise<ConferenceMember>;
|
|
94
|
+
/**
|
|
95
|
+
* Removes conference members from a session
|
|
96
|
+
*
|
|
97
|
+
* @param options - Configuration parameters for cleaning up the conference
|
|
98
|
+
*
|
|
99
|
+
* Required parameters:
|
|
100
|
+
* - `hitlSessionId` - (string) ID of the HitL session
|
|
101
|
+
*
|
|
102
|
+
* Optional parameters:
|
|
103
|
+
* - `memberId` - (string) Specific member to remove
|
|
104
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
105
|
+
* - `version` - (string | number) API version to use
|
|
106
|
+
*
|
|
107
|
+
* @returns {Promise<void>} Promise that resolves when cleanup is complete
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```typescript
|
|
111
|
+
* // Clean up all conference members
|
|
112
|
+
* await hitlApi.conferences.cleanUpConference({
|
|
113
|
+
* hitlSessionId: 'session-id'
|
|
114
|
+
* });
|
|
115
|
+
*
|
|
116
|
+
* // Remove specific member
|
|
117
|
+
* await hitlApi.conferences.cleanUpConference({
|
|
118
|
+
* hitlSessionId: 'session-id',
|
|
119
|
+
* memberId: 'member-id'
|
|
120
|
+
* });
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* @remarks
|
|
124
|
+
* Makes a DELETE request to the `/conferences` endpoint
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
7
127
|
static cleanUpConference({ hitlSessionId, memberId, ...options }: CleanUpConferenceOptions): Promise<void>;
|
|
8
128
|
}
|
|
9
129
|
//# sourceMappingURL=Conferences.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Conferences.d.ts","sourceRoot":"","sources":["../../../src/api/Conferences.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,gBAAgB,EAChB,kCAAkC,EAClC,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Conferences.d.ts","sourceRoot":"","sources":["../../../src/api/Conferences.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC5B,gBAAgB,EAChB,kCAAkC,EAClC,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,WAAY,SAAQ,QAAQ;IACvC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAiB;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;WACW,oBAAoB,CAChC,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,2BAA2B,GACnE,OAAO,CAAC,4BAA4B,GAAG,gBAAgB,CAAC;IAa3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;WACW,2BAA2B,CACvC,EACE,aAAa,EACb,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,MAAM,EACN,KAAK,EACL,cAAc,EACd,GAAG,OAAO,EACX,EAAE,kCAAkC,GACpC,OAAO,CAAC,gBAAgB,CAAC;IAmB5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;WACW,iBAAiB,CAC7B,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,wBAAwB,GAChE,OAAO,CAAC,IAAI,CAAC;CAajB"}
|
|
@@ -1,10 +1,141 @@
|
|
|
1
1
|
import { SearchRuleGroupsOptions, SearchRuleGroupsResponse, RuleGroup, CreateRuleGroupOptions, UpdateRuleGroupOptions, DeleteRuleGroupOptions } from '../types/rule-groups';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
+
/**
|
|
4
|
+
* Manages contact rule groups in the system
|
|
5
|
+
*
|
|
6
|
+
* This class provides functionality to manage contact rule groups, including searching,
|
|
7
|
+
* creating, updating, and deleting contact rule groups.
|
|
8
|
+
*
|
|
9
|
+
* Key features:
|
|
10
|
+
* - Search and retrieve contact rule groups
|
|
11
|
+
* - Create new contact rule groups
|
|
12
|
+
* - Update existing contact rule groups
|
|
13
|
+
* - Delete contact rule groups
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* - All methods in this class interact with the `/contact-rule-groups` endpoint
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
3
19
|
export declare class ContactRuleGroups extends HITLBase {
|
|
4
20
|
protected static MODULE_URL: string;
|
|
21
|
+
/**
|
|
22
|
+
* Searches for contact rule groups or retrieves specific groups
|
|
23
|
+
*
|
|
24
|
+
* @param options - Configuration parameters for the rule groups search
|
|
25
|
+
*
|
|
26
|
+
* Optional parameters:
|
|
27
|
+
* - `groupIdList` - (string[]) List of specific group IDs to retrieve
|
|
28
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
29
|
+
* - `version` - (string | number) API version to use
|
|
30
|
+
*
|
|
31
|
+
* @returns {Promise<SearchRuleGroupsResponse | RuleGroup>} Promise resolving to:
|
|
32
|
+
* - Either a list of rule groups or a single rule group if specific ID is provided
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* // Search all rule groups
|
|
37
|
+
* const response = await hitlApi.contactRuleGroups.searchContactRuleGroups();
|
|
38
|
+
*
|
|
39
|
+
* // Search specific rule groups
|
|
40
|
+
* const groups = await hitlApi.contactRuleGroups.searchContactRuleGroups({
|
|
41
|
+
* groupIdList: ['group-1', 'group-2']
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Makes a GET request to the `/contact-rule-groups` endpoint
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
5
49
|
static searchContactRuleGroups({ groupIdList, ...options }?: SearchRuleGroupsOptions): Promise<SearchRuleGroupsResponse | RuleGroup>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a new contact rule group
|
|
52
|
+
*
|
|
53
|
+
* @param options - Configuration parameters for creating the rule group
|
|
54
|
+
*
|
|
55
|
+
* Required parameters:
|
|
56
|
+
* - `groupId` - (string) Unique identifier for the group
|
|
57
|
+
* - `name` - (string) Name of the rule group
|
|
58
|
+
* - `rules` - (RuleDefinition[]) Array of rules for the group
|
|
59
|
+
*
|
|
60
|
+
* Optional parameters:
|
|
61
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
62
|
+
* - `version` - (string | number) API version to use
|
|
63
|
+
*
|
|
64
|
+
* @returns {Promise<RuleGroup>} Promise resolving to the created rule group
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```typescript
|
|
68
|
+
* const newGroup = await hitlApi.contactRuleGroups.createContactRuleGroup({
|
|
69
|
+
* groupId: 'group-1',
|
|
70
|
+
* name: 'Students',
|
|
71
|
+
* rules: [
|
|
72
|
+
* 'student', 'postgraduate student'
|
|
73
|
+
* ]
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @remarks
|
|
78
|
+
* Makes a POST request to the `/contact-rule-groups` endpoint
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
6
81
|
static createContactRuleGroup({ groupId, name, rules, ...options }: CreateRuleGroupOptions): Promise<RuleGroup>;
|
|
82
|
+
/**
|
|
83
|
+
* Updates an existing contact rule group
|
|
84
|
+
*
|
|
85
|
+
* @param options - Configuration parameters for updating the rule group
|
|
86
|
+
*
|
|
87
|
+
* Required parameters:
|
|
88
|
+
* - `groupId` - (string) ID of the group to update
|
|
89
|
+
* - `name` - (string) Updated name for the rule group
|
|
90
|
+
* - `rules` - (RuleDefinition[]) Updated array of rules
|
|
91
|
+
*
|
|
92
|
+
* Optional parameters:
|
|
93
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
94
|
+
* - `version` - (string | number) API version to use
|
|
95
|
+
*
|
|
96
|
+
* @returns {Promise<RuleGroup>} Promise resolving to the updated rule group
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* const updatedGroup = await hitlApi.contactRuleGroups.updateContactRuleGroup({
|
|
101
|
+
* groupId: 'group-1',
|
|
102
|
+
* name: 'Updated Students',
|
|
103
|
+
* rules: [
|
|
104
|
+
* 'student'
|
|
105
|
+
* ]
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* @remarks
|
|
110
|
+
* Makes a PUT request to the `/contact-rule-groups` endpoint
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
7
113
|
static updateContactRuleGroup({ groupId, name, rules, ...options }: UpdateRuleGroupOptions): Promise<RuleGroup>;
|
|
114
|
+
/**
|
|
115
|
+
* Deletes a contact rule group
|
|
116
|
+
*
|
|
117
|
+
* @param options - Configuration parameters for deleting the rule group
|
|
118
|
+
*
|
|
119
|
+
* Required parameters:
|
|
120
|
+
* - `groupId` - (string) ID of the group to delete
|
|
121
|
+
*
|
|
122
|
+
* Optional parameters:
|
|
123
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
124
|
+
* - `version` - (string | number) API version to use
|
|
125
|
+
*
|
|
126
|
+
* @returns {Promise<void>} Promise that resolves when deletion is complete
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```typescript
|
|
130
|
+
* await hitlApi.contactRuleGroups.deleteContactRuleGroup({
|
|
131
|
+
* groupId: 'group-1'
|
|
132
|
+
* });
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @remarks
|
|
136
|
+
* Makes a DELETE request to the `/contact-rule-groups` endpoint
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
8
139
|
static deleteContactRuleGroup({ groupId, ...options }: DeleteRuleGroupOptions): Promise<void>;
|
|
9
140
|
}
|
|
10
141
|
//# sourceMappingURL=ContactRuleGroups.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactRuleGroups.d.ts","sourceRoot":"","sources":["../../../src/api/ContactRuleGroups.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EACT,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ContactRuleGroups.d.ts","sourceRoot":"","sources":["../../../src/api/ContactRuleGroups.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EACT,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,SAAS,CAAC,MAAM,CAAC,UAAU,SAAyB;IAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;WACW,uBAAuB,CACnC,EAAE,WAAW,EAAE,GAAG,OAAO,EAAE,GAAE,uBAA4B,GACxD,OAAO,CAAC,wBAAwB,GAAG,SAAS,CAAC;IAchD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;WACW,sBAAsB,CAClC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,EAAE,sBAAsB,GAC3D,OAAO,CAAC,SAAS,CAAC;IAerB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;WACW,sBAAsB,CAClC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,EAAE,sBAAsB,GAC3D,OAAO,CAAC,SAAS,CAAC;IAerB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;WACW,sBAAsB,CAClC,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,sBAAsB,GAC9C,OAAO,CAAC,IAAI,CAAC;CAUjB"}
|
|
@@ -1,7 +1,44 @@
|
|
|
1
1
|
import { SearchContactsOptions, SearchContactsResponse } from '../types/contacts';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
+
/**
|
|
4
|
+
* This class provides functionality to search contacts with respect to
|
|
5
|
+
* agent's permissions and rule groups.
|
|
6
|
+
*
|
|
7
|
+
* Key features:
|
|
8
|
+
* - Search contacts with filtering based on agent's contact rule groups
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* - All methods in this class interact with the `/contacts` endpoint
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
3
14
|
export declare class Contacts extends HITLBase {
|
|
4
15
|
protected static MODULE_URL: string;
|
|
16
|
+
/**
|
|
17
|
+
* Searches for contacts limited by the agent's contact rule groups
|
|
18
|
+
*
|
|
19
|
+
* Filters out contact records not visible to a given agent, according
|
|
20
|
+
* to the contact rule groups the agent is a member of
|
|
21
|
+
*
|
|
22
|
+
* @param options - Configuration parameters for the contacts search
|
|
23
|
+
*
|
|
24
|
+
* Optional parameters:
|
|
25
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
26
|
+
* - `version` - (string | number) API version to use
|
|
27
|
+
*
|
|
28
|
+
* @returns {Promise<SearchContactsResponse>} Promise resolving to the search results
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const contacts = await hitlApi.contacts.searchContacts({
|
|
33
|
+
* contact_book: '0cc3f3bb-a064-4b2d-89d9-4c4846a061e2',
|
|
34
|
+
* contactIds: ['contact-id-1', 'contact-id-2']
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* Makes a POST request to the `/contacts` endpoint
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
5
42
|
static searchContacts(options: SearchContactsOptions): Promise<SearchContactsResponse>;
|
|
6
43
|
}
|
|
7
44
|
//# sourceMappingURL=Contacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contacts.d.ts","sourceRoot":"","sources":["../../../src/api/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Contacts.d.ts","sourceRoot":"","sources":["../../../src/api/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;;;;;;GAUG;AACH,qBAAa,QAAS,SAAQ,QAAQ;IACpC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAc;IAEzC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;WACiB,cAAc,CAChC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,sBAAsB,CAAC;CAUnC"}
|
|
@@ -1,8 +1,41 @@
|
|
|
1
1
|
import { SearchContactsMetaOptions, SearchContactsMetaResponse } from '../types/contacts-meta';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
+
/**
|
|
4
|
+
* This class provides functionality to retrieve metadata information about contacts.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* - All methods in this class interact with the `/contacts-meta` endpoint
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
3
10
|
export declare class ContactsMeta extends HITLBase {
|
|
4
11
|
protected static MODULE_URL: string;
|
|
5
12
|
protected static SEARCH_URL: string;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves HitL-specific contact parameters (metadata)
|
|
15
|
+
*
|
|
16
|
+
* @param options - Configuration parameters for the metadata search
|
|
17
|
+
*
|
|
18
|
+
* Required parameters:
|
|
19
|
+
* - `contactIds` - (string[]) List of specific contact IDs to retrieve
|
|
20
|
+
*
|
|
21
|
+
* Optional parameters:
|
|
22
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
23
|
+
* - `version` - (string | number) API version to use
|
|
24
|
+
*
|
|
25
|
+
* @returns {Promise<SearchContactsMetaResponse>} Promise resolving to:
|
|
26
|
+
* - `data` - Contact last event timestamps
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const metadata = await hitlApi.contactsMeta.searchContactsMeta({
|
|
31
|
+
* contactIds: ['contact-id-1', 'contact-id-2']
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Makes a POST request to the `/contacts-meta/search` endpoint
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
6
39
|
static searchContactsMeta(options: SearchContactsMetaOptions): Promise<SearchContactsMetaResponse>;
|
|
7
40
|
}
|
|
8
41
|
//# sourceMappingURL=ContactsMeta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsMeta.d.ts","sourceRoot":"","sources":["../../../src/api/ContactsMeta.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ContactsMeta.d.ts","sourceRoot":"","sources":["../../../src/api/ContactsMeta.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;;GAMG;AACH,qBAAa,YAAa,SAAQ,QAAQ;IACxC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAmB;IAC9C,SAAS,CAAC,MAAM,CAAC,UAAU,SAAY;IAEvC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;WACiB,kBAAkB,CACpC,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;CAcvC"}
|
|
@@ -1,10 +1,145 @@
|
|
|
1
1
|
import { GetEventTemplatesOptions, GetEventTemplatesResponse, CreateEventTemplateOptions, UpdateEventTemplateOptions, DeleteEventTemplateOptions, EventTemplate } from '../types/event-templates';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
+
/**
|
|
4
|
+
* Manages event templates in the system
|
|
5
|
+
*
|
|
6
|
+
* This class provides functionality to manage event templates, including retrieving,
|
|
7
|
+
* creating, updating, and deleting templates.
|
|
8
|
+
*
|
|
9
|
+
* Key features:
|
|
10
|
+
* - Retrieve event templates
|
|
11
|
+
* - Create new event templates
|
|
12
|
+
* - Update existing event templates
|
|
13
|
+
* - Delete event templates
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* - All methods in this class interact with the `/event-templates` endpoint
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
3
19
|
export declare class EventTemplates extends HITLBase {
|
|
4
20
|
protected static readonly MODULE_URL = "event-templates";
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves event templates or a specific template
|
|
23
|
+
*
|
|
24
|
+
* @param options - Configuration parameters for retrieving templates
|
|
25
|
+
*
|
|
26
|
+
* Optional parameters:
|
|
27
|
+
* - `templateId` - (string) Specific template ID to retrieve
|
|
28
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
29
|
+
* - `version` - (string | number) API version to use
|
|
30
|
+
*
|
|
31
|
+
* @returns {Promise<GetEventTemplatesResponse | EventTemplate>} Promise resolving to:
|
|
32
|
+
* - Either a list of templates or a single template if specific ID is provided
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* // Get all templates
|
|
37
|
+
* const templates = await hitlApi.eventTemplates.getEventTemplates();
|
|
38
|
+
*
|
|
39
|
+
* // Get specific template
|
|
40
|
+
* const template = await hitlApi.eventTemplates.getEventTemplates({
|
|
41
|
+
* templateId: 'template-1'
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Makes a GET request to the `/event-templates` endpoint
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
5
49
|
static getEventTemplates({ templateId, ...options }?: GetEventTemplatesOptions): Promise<GetEventTemplatesResponse | EventTemplate>;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a new event template
|
|
52
|
+
*
|
|
53
|
+
* @param options - Configuration parameters for creating the template
|
|
54
|
+
*
|
|
55
|
+
* Required parameters:
|
|
56
|
+
* - `eventType` - (string) Type of the event
|
|
57
|
+
* - `rule` - (string) Rule expression for the template
|
|
58
|
+
* - `template` - ({@link EventTemplateContent}) Content configuration for the template
|
|
59
|
+
*
|
|
60
|
+
* Optional parameters:
|
|
61
|
+
* - `isActive` - (boolean) Whether the template is active
|
|
62
|
+
* - `isVisible` - (boolean) Whether the template is visible
|
|
63
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
64
|
+
* - `version` - (string | number) API version to use
|
|
65
|
+
*
|
|
66
|
+
* @returns {Promise<EventTemplate>} Promise resolving to the created event template
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```typescript
|
|
70
|
+
* const template = await hitlApi.eventTemplates.createTemplate({
|
|
71
|
+
* eventType: "Custom",
|
|
72
|
+
* rule: "type == 'Transcript'",
|
|
73
|
+
* template: {
|
|
74
|
+
* html: '', js: 'return {}', sass: ''
|
|
75
|
+
* }
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* Makes a POST request to the `/event-templates` endpoint
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
6
83
|
static createEventTemplate(options: CreateEventTemplateOptions): Promise<EventTemplate>;
|
|
84
|
+
/**
|
|
85
|
+
* Updates an existing event template
|
|
86
|
+
*
|
|
87
|
+
* @param options - Configuration parameters for updating the template
|
|
88
|
+
*
|
|
89
|
+
* Required parameters:
|
|
90
|
+
* - `templateId` - (string) ID of the template to update
|
|
91
|
+
*
|
|
92
|
+
* Optional parameters:
|
|
93
|
+
* - `eventType` - (string) Type of the event
|
|
94
|
+
* - `isActive` - (boolean) Whether the template is active
|
|
95
|
+
* - `isVisible` - (boolean) Whether the template is visible
|
|
96
|
+
* - `rule` - (string) Rule expression for the template
|
|
97
|
+
* - `template` - ({@link EventTemplateContent}) Content configuration for the template
|
|
98
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
99
|
+
* - `version` - (string | number) API version to use
|
|
100
|
+
*
|
|
101
|
+
* @returns {Promise<EventTemplate>} Promise resolving to the updated template
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```typescript
|
|
105
|
+
* const updatedTemplate = await hitlApi.eventTemplates.updateEventTemplate({
|
|
106
|
+
* templateId: "template-1",
|
|
107
|
+
* eventType: "Custom",
|
|
108
|
+
* rule: "type == 'Transcript'",
|
|
109
|
+
* isVisible: true,
|
|
110
|
+
* });
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @remarks
|
|
114
|
+
* Makes a PUT request to the `/event-templates` endpoint
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
7
117
|
static updateEventTemplate(options: UpdateEventTemplateOptions): Promise<EventTemplate>;
|
|
118
|
+
/**
|
|
119
|
+
* Deletes an event template
|
|
120
|
+
*
|
|
121
|
+
* @param options - Configuration parameters for deleting the template
|
|
122
|
+
*
|
|
123
|
+
* Required parameters:
|
|
124
|
+
* - `templateId` - (string) ID of the template to delete
|
|
125
|
+
*
|
|
126
|
+
* Optional parameters:
|
|
127
|
+
* - `timeout` - (number) Request timeout in milliseconds
|
|
128
|
+
* - `version` - (string | number) API version to use
|
|
129
|
+
*
|
|
130
|
+
* @returns {Promise<void>} Promise that resolves when deletion is complete
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```typescript
|
|
134
|
+
* await hitlApi.eventTemplates.deleteEventTemplate({
|
|
135
|
+
* templateId: 'template-1'
|
|
136
|
+
* });
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* @remarks
|
|
140
|
+
* Makes a DELETE request to the `/event-templates` endpoint
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
8
143
|
static deleteEventTemplate({ templateId, ...options }: DeleteEventTemplateOptions): Promise<void>;
|
|
9
144
|
}
|
|
10
145
|
//# sourceMappingURL=EventTemplates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventTemplates.d.ts","sourceRoot":"","sources":["../../../src/api/EventTemplates.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EAGd,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"EventTemplates.d.ts","sourceRoot":"","sources":["../../../src/api/EventTemplates.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EAGd,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,qBAAqB;IAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;WACiB,iBAAiB,CACnC,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,GAAE,wBAA6B,GACxD,OAAO,CAAC,yBAAyB,GAAG,aAAa,CAAC;IAWrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;WACiB,mBAAmB,CACrC,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,aAAa,CAAC;IAczB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;WACiB,mBAAmB,CACrC,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,aAAa,CAAC;IAczB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;WACiB,mBAAmB,CACrC,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,EAAE,0BAA0B,GACrD,OAAO,CAAC,IAAI,CAAC;CAUjB"}
|