retell-sdk 5.63.0 → 5.65.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/CHANGELOG.md +42 -0
- package/README.md +29 -0
- package/client.d.mts +20 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -8
- package/client.d.ts.map +1 -1
- package/client.js +12 -0
- package/client.js.map +1 -1
- package/client.mjs +12 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +102 -12
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +102 -12
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +32 -4
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +32 -4
- package/resources/agent.mjs.map +1 -1
- package/resources/app.d.mts +439 -0
- package/resources/app.d.mts.map +1 -0
- package/resources/app.d.ts +439 -0
- package/resources/app.d.ts.map +1 -0
- package/resources/app.js +69 -0
- package/resources/app.js.map +1 -0
- package/resources/app.mjs +65 -0
- package/resources/app.mjs.map +1 -0
- package/resources/asset.d.mts +53 -0
- package/resources/asset.d.mts.map +1 -0
- package/resources/asset.d.ts +53 -0
- package/resources/asset.d.ts.map +1 -0
- package/resources/asset.js +20 -0
- package/resources/asset.js.map +1 -0
- package/resources/asset.mjs +16 -0
- package/resources/asset.mjs.map +1 -0
- package/resources/batch-call.d.mts +4 -2
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +4 -2
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +221 -27
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +221 -27
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +37 -5
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +37 -5
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +4 -10
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +4 -10
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +2 -8
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +2 -8
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/chat.d.mts +24 -11
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +24 -11
- package/resources/chat.d.ts.map +1 -1
- package/resources/contact.d.mts +669 -0
- package/resources/contact.d.mts.map +1 -0
- package/resources/contact.d.ts +669 -0
- package/resources/contact.d.ts.map +1 -0
- package/resources/contact.js +100 -0
- package/resources/contact.js.map +1 -0
- package/resources/contact.mjs +96 -0
- package/resources/contact.mjs.map +1 -0
- package/resources/conversation-flow-component.d.mts +56 -8
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +56 -8
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +120 -16
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +120 -16
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/conversation-flow.js +3 -1
- package/resources/conversation-flow.js.map +1 -1
- package/resources/conversation-flow.mjs +3 -1
- package/resources/conversation-flow.mjs.map +1 -1
- package/resources/crm.d.mts +226 -0
- package/resources/crm.d.mts.map +1 -0
- package/resources/crm.d.ts +226 -0
- package/resources/crm.d.ts.map +1 -0
- package/resources/crm.js +46 -0
- package/resources/crm.js.map +1 -0
- package/resources/crm.mjs +42 -0
- package/resources/crm.mjs.map +1 -0
- package/resources/export-request.d.mts +2 -2
- package/resources/export-request.d.mts.map +1 -1
- package/resources/export-request.d.ts +2 -2
- package/resources/export-request.d.ts.map +1 -1
- package/resources/index.d.mts +8 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/knowledge-base.d.mts +16 -8
- package/resources/knowledge-base.d.mts.map +1 -1
- package/resources/knowledge-base.d.ts +16 -8
- package/resources/knowledge-base.d.ts.map +1 -1
- package/resources/llm.d.mts +66 -10
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +66 -10
- package/resources/llm.d.ts.map +1 -1
- package/resources/llm.js +3 -1
- package/resources/llm.js.map +1 -1
- package/resources/llm.mjs +3 -1
- package/resources/llm.mjs.map +1 -1
- package/resources/phone-number.d.mts +14 -8
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +14 -8
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/tests.d.mts +6 -6
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +6 -6
- package/resources/tests.d.ts.map +1 -1
- package/resources/voice.d.mts +4 -4
- package/resources/voice.d.mts.map +1 -1
- package/resources/voice.d.ts +4 -4
- package/resources/voice.d.ts.map +1 -1
- package/src/client.ts +116 -0
- package/src/resources/agent.ts +141 -9
- package/src/resources/app.ts +593 -0
- package/src/resources/asset.ts +69 -0
- package/src/resources/batch-call.ts +6 -1
- package/src/resources/call.ts +289 -25
- package/src/resources/chat-agent.ts +4 -10
- package/src/resources/chat.ts +28 -11
- package/src/resources/contact.ts +910 -0
- package/src/resources/conversation-flow-component.ts +56 -8
- package/src/resources/conversation-flow.ts +127 -15
- package/src/resources/crm.ts +298 -0
- package/src/resources/export-request.ts +2 -2
- package/src/resources/index.ts +50 -0
- package/src/resources/knowledge-base.ts +16 -8
- package/src/resources/llm.ts +73 -9
- package/src/resources/phone-number.ts +14 -8
- package/src/resources/tests.ts +6 -6
- package/src/resources/voice.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -87,8 +87,10 @@ class ConversationFlow extends resource_1.APIResource {
|
|
|
87
87
|
* );
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
|
-
delete(conversationFlowID, options) {
|
|
90
|
+
delete(conversationFlowID, params = {}, options) {
|
|
91
|
+
const { force_delete } = params ?? {};
|
|
91
92
|
return this._client.delete((0, path_1.path) `/delete-conversation-flow/${conversationFlowID}`, {
|
|
93
|
+
query: { force_delete },
|
|
92
94
|
...options,
|
|
93
95
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
94
96
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-flow.js","sourceRoot":"","sources":["../src/resources/conversation-flow.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAkC,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,kBAA0B,EAC1B,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,kBAAkB,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,kBAA0B,EAC1B,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,6BAA6B,kBAAkB,EAAE,EAAE;YAC/E,KAAK,EAAE,EAAE,OAAO,EAAE;YAClB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF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GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,kBAA0B,EAC1B,SAA0D,EAAE,EAC5D,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,6BAA6B,kBAAkB,EAAE,EAAE;YAChF,KAAK,EAAE,EAAE,YAAY,EAAE;YACvB,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA7GD,4CA6GC"}
|
|
@@ -84,8 +84,10 @@ export class ConversationFlow extends APIResource {
|
|
|
84
84
|
* );
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
|
-
delete(conversationFlowID, options) {
|
|
87
|
+
delete(conversationFlowID, params = {}, options) {
|
|
88
|
+
const { force_delete } = params ?? {};
|
|
88
89
|
return this._client.delete(path `/delete-conversation-flow/${conversationFlowID}`, {
|
|
90
|
+
query: { force_delete },
|
|
89
91
|
...options,
|
|
90
92
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
91
93
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-flow.mjs","sourceRoot":"","sources":["../src/resources/conversation-flow.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAkC,E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AAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class CRM extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the organization's CRM configuration: which CRM app is linked, the custom
|
|
7
|
+
* contact fields defined for it, and how post-call analysis data is written back
|
|
8
|
+
* to contacts. Returns an empty configuration when nothing has been set up yet.
|
|
9
|
+
*/
|
|
10
|
+
getConfig(options?: RequestOptions): APIPromise<CRMConfig>;
|
|
11
|
+
/**
|
|
12
|
+
* Get the contact schema of the connected CRM: the fields available on its contact
|
|
13
|
+
* object, which are the values that sync mappings can reference.
|
|
14
|
+
*/
|
|
15
|
+
getSchema(query?: CRMGetSchemaParams | null | undefined, options?: RequestOptions): APIPromise<CRMGetSchemaResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get the status of the organization's contact sync, whether it was started
|
|
18
|
+
* manually or by the schedule. Returns status `idle` when no sync is running.
|
|
19
|
+
*/
|
|
20
|
+
getSyncJobStatus(options?: RequestOptions): APIPromise<CRMGetSyncJobStatusResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Start a contact sync with the linked CRM app immediately, instead of waiting for
|
|
23
|
+
* the scheduled sync. One sync runs per organization at a time: starting another
|
|
24
|
+
* while one is in flight is rejected. Poll get-sync-job-status for progress.
|
|
25
|
+
*/
|
|
26
|
+
runSyncJob(options?: RequestOptions): APIPromise<CRMRunSyncJobResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Update the organization's CRM configuration. Omitted fields stay as they are; a
|
|
29
|
+
* field that is sent replaces its stored value in full.
|
|
30
|
+
*/
|
|
31
|
+
updateConfig(body: CRMUpdateConfigParams, options?: RequestOptions): APIPromise<CRMConfig>;
|
|
32
|
+
}
|
|
33
|
+
export interface CRMConfig {
|
|
34
|
+
org_id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The connected CRM integration app ID.
|
|
37
|
+
*/
|
|
38
|
+
app_id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Preferred display order of contact fields, for clients that render contacts as a
|
|
41
|
+
* table. Not used by the API itself.
|
|
42
|
+
*/
|
|
43
|
+
contact_columns_order?: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Tags available to contacts in this organization.
|
|
46
|
+
*/
|
|
47
|
+
contact_tags?: Array<string>;
|
|
48
|
+
crm_analysis_data_mappings?: Array<CRMConfig.CRMAnalysisDataMapping>;
|
|
49
|
+
custom_fields?: Array<CRMConfig.CustomField>;
|
|
50
|
+
/**
|
|
51
|
+
* Epoch milliseconds of the last successful sync.
|
|
52
|
+
*/
|
|
53
|
+
last_sync_timestamp?: number;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace CRMConfig {
|
|
56
|
+
interface CRMAnalysisDataMapping {
|
|
57
|
+
/**
|
|
58
|
+
* Name of the post-call analysis field to read the value from. A value that does
|
|
59
|
+
* not match the contact field's type is skipped rather than failing the
|
|
60
|
+
* conversation.
|
|
61
|
+
*/
|
|
62
|
+
analysis_data_name: string;
|
|
63
|
+
/**
|
|
64
|
+
* Contact field to write to. Must be an existing built-in or custom contact field,
|
|
65
|
+
* and cannot be phone_number, which identifies the contact.
|
|
66
|
+
*/
|
|
67
|
+
field_name: string;
|
|
68
|
+
/**
|
|
69
|
+
* How to reconcile the new value with what the contact already holds. `overwrite`
|
|
70
|
+
* always replaces it, `fill_if_empty` writes only when the field is empty, and
|
|
71
|
+
* `merge` combines the existing text with the new value. `merge` is available on
|
|
72
|
+
* string fields only.
|
|
73
|
+
*/
|
|
74
|
+
update_mode: 'overwrite' | 'fill_if_empty' | 'merge';
|
|
75
|
+
}
|
|
76
|
+
interface CustomField {
|
|
77
|
+
name: string;
|
|
78
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
79
|
+
description?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Display label for the field.
|
|
82
|
+
*/
|
|
83
|
+
label?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
86
|
+
* it appears here; ignored for every other type.
|
|
87
|
+
*/
|
|
88
|
+
options?: Array<string>;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export interface CRMGetSchemaResponse {
|
|
92
|
+
fields: Array<CRMGetSchemaResponse.Field>;
|
|
93
|
+
/**
|
|
94
|
+
* CRM provider name.
|
|
95
|
+
*/
|
|
96
|
+
provider: string;
|
|
97
|
+
}
|
|
98
|
+
export declare namespace CRMGetSchemaResponse {
|
|
99
|
+
interface Field {
|
|
100
|
+
name: string;
|
|
101
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
102
|
+
description?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Display label for the field.
|
|
105
|
+
*/
|
|
106
|
+
label?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
109
|
+
* it appears here; ignored for every other type.
|
|
110
|
+
*/
|
|
111
|
+
options?: Array<string>;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export interface CRMGetSyncJobStatusResponse {
|
|
115
|
+
status: 'queued' | 'running' | 'idle';
|
|
116
|
+
/**
|
|
117
|
+
* Number of items that errored so far.
|
|
118
|
+
*/
|
|
119
|
+
failed?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Epoch milliseconds when the job started.
|
|
122
|
+
*/
|
|
123
|
+
start_timestamp?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Number of items processed successfully so far.
|
|
126
|
+
*/
|
|
127
|
+
succeeded?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
130
|
+
* scheduled sync (`cron`).
|
|
131
|
+
*/
|
|
132
|
+
triggered_by?: 'manual' | 'cron';
|
|
133
|
+
}
|
|
134
|
+
export interface CRMRunSyncJobResponse {
|
|
135
|
+
status: 'queued' | 'running' | 'idle';
|
|
136
|
+
/**
|
|
137
|
+
* Number of items that errored so far.
|
|
138
|
+
*/
|
|
139
|
+
failed?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Epoch milliseconds when the job started.
|
|
142
|
+
*/
|
|
143
|
+
start_timestamp?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Number of items processed successfully so far.
|
|
146
|
+
*/
|
|
147
|
+
succeeded?: number;
|
|
148
|
+
/**
|
|
149
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
150
|
+
* scheduled sync (`cron`).
|
|
151
|
+
*/
|
|
152
|
+
triggered_by?: 'manual' | 'cron';
|
|
153
|
+
}
|
|
154
|
+
export interface CRMGetSchemaParams {
|
|
155
|
+
/**
|
|
156
|
+
* ID of the CRM app to read the schema from. Defaults to the app linked in the
|
|
157
|
+
* organization's CRM configuration. Naming a different app additionally requires
|
|
158
|
+
* the App.Read scope.
|
|
159
|
+
*/
|
|
160
|
+
app_id?: string;
|
|
161
|
+
}
|
|
162
|
+
export interface CRMUpdateConfigParams {
|
|
163
|
+
/**
|
|
164
|
+
* ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it
|
|
165
|
+
* resets the sync cursor, so the next sync re-reads every contact from the new
|
|
166
|
+
* CRM.
|
|
167
|
+
*/
|
|
168
|
+
app_id?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Preferred display order of contact fields, for clients that render contacts as a
|
|
171
|
+
* table. Not used by the API itself.
|
|
172
|
+
*/
|
|
173
|
+
contact_columns_order?: Array<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Replaces the stored list.
|
|
176
|
+
*/
|
|
177
|
+
crm_analysis_data_mappings?: Array<CRMUpdateConfigParams.CRMAnalysisDataMapping>;
|
|
178
|
+
/**
|
|
179
|
+
* Replaces the stored list. Names must be snake_case and cannot collide with a
|
|
180
|
+
* built-in contact field or start with `contact`/`external`. Removing a field that
|
|
181
|
+
* an analysis data mapping still targets is rejected — send
|
|
182
|
+
* crm_analysis_data_mappings in the same request to retarget or drop those
|
|
183
|
+
* mappings.
|
|
184
|
+
*/
|
|
185
|
+
custom_fields?: Array<CRMUpdateConfigParams.CustomField>;
|
|
186
|
+
}
|
|
187
|
+
export declare namespace CRMUpdateConfigParams {
|
|
188
|
+
interface CRMAnalysisDataMapping {
|
|
189
|
+
/**
|
|
190
|
+
* Name of the post-call analysis field to read the value from. A value that does
|
|
191
|
+
* not match the contact field's type is skipped rather than failing the
|
|
192
|
+
* conversation.
|
|
193
|
+
*/
|
|
194
|
+
analysis_data_name: string;
|
|
195
|
+
/**
|
|
196
|
+
* Contact field to write to. Must be an existing built-in or custom contact field,
|
|
197
|
+
* and cannot be phone_number, which identifies the contact.
|
|
198
|
+
*/
|
|
199
|
+
field_name: string;
|
|
200
|
+
/**
|
|
201
|
+
* How to reconcile the new value with what the contact already holds. `overwrite`
|
|
202
|
+
* always replaces it, `fill_if_empty` writes only when the field is empty, and
|
|
203
|
+
* `merge` combines the existing text with the new value. `merge` is available on
|
|
204
|
+
* string fields only.
|
|
205
|
+
*/
|
|
206
|
+
update_mode: 'overwrite' | 'fill_if_empty' | 'merge';
|
|
207
|
+
}
|
|
208
|
+
interface CustomField {
|
|
209
|
+
name: string;
|
|
210
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
211
|
+
description?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Display label for the field.
|
|
214
|
+
*/
|
|
215
|
+
label?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
218
|
+
* it appears here; ignored for every other type.
|
|
219
|
+
*/
|
|
220
|
+
options?: Array<string>;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export declare namespace CRM {
|
|
224
|
+
export { type CRMConfig as CRMConfig, type CRMGetSchemaResponse as CRMGetSchemaResponse, type CRMGetSyncJobStatusResponse as CRMGetSyncJobStatusResponse, type CRMRunSyncJobResponse as CRMRunSyncJobResponse, type CRMGetSchemaParams as CRMGetSchemaParams, type CRMUpdateConfigParams as CRMUpdateConfigParams, };
|
|
225
|
+
}
|
|
226
|
+
//# sourceMappingURL=crm.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.d.mts","sourceRoot":"","sources":["../src/resources/crm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;OAIG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAI1D;;;OAGG;IACH,SAAS,CACP,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;OAGG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAInF;;;;OAIG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIvE;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG3F;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,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AI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;QAErE,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACzB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class CRM extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the organization's CRM configuration: which CRM app is linked, the custom
|
|
7
|
+
* contact fields defined for it, and how post-call analysis data is written back
|
|
8
|
+
* to contacts. Returns an empty configuration when nothing has been set up yet.
|
|
9
|
+
*/
|
|
10
|
+
getConfig(options?: RequestOptions): APIPromise<CRMConfig>;
|
|
11
|
+
/**
|
|
12
|
+
* Get the contact schema of the connected CRM: the fields available on its contact
|
|
13
|
+
* object, which are the values that sync mappings can reference.
|
|
14
|
+
*/
|
|
15
|
+
getSchema(query?: CRMGetSchemaParams | null | undefined, options?: RequestOptions): APIPromise<CRMGetSchemaResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get the status of the organization's contact sync, whether it was started
|
|
18
|
+
* manually or by the schedule. Returns status `idle` when no sync is running.
|
|
19
|
+
*/
|
|
20
|
+
getSyncJobStatus(options?: RequestOptions): APIPromise<CRMGetSyncJobStatusResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Start a contact sync with the linked CRM app immediately, instead of waiting for
|
|
23
|
+
* the scheduled sync. One sync runs per organization at a time: starting another
|
|
24
|
+
* while one is in flight is rejected. Poll get-sync-job-status for progress.
|
|
25
|
+
*/
|
|
26
|
+
runSyncJob(options?: RequestOptions): APIPromise<CRMRunSyncJobResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Update the organization's CRM configuration. Omitted fields stay as they are; a
|
|
29
|
+
* field that is sent replaces its stored value in full.
|
|
30
|
+
*/
|
|
31
|
+
updateConfig(body: CRMUpdateConfigParams, options?: RequestOptions): APIPromise<CRMConfig>;
|
|
32
|
+
}
|
|
33
|
+
export interface CRMConfig {
|
|
34
|
+
org_id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The connected CRM integration app ID.
|
|
37
|
+
*/
|
|
38
|
+
app_id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Preferred display order of contact fields, for clients that render contacts as a
|
|
41
|
+
* table. Not used by the API itself.
|
|
42
|
+
*/
|
|
43
|
+
contact_columns_order?: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Tags available to contacts in this organization.
|
|
46
|
+
*/
|
|
47
|
+
contact_tags?: Array<string>;
|
|
48
|
+
crm_analysis_data_mappings?: Array<CRMConfig.CRMAnalysisDataMapping>;
|
|
49
|
+
custom_fields?: Array<CRMConfig.CustomField>;
|
|
50
|
+
/**
|
|
51
|
+
* Epoch milliseconds of the last successful sync.
|
|
52
|
+
*/
|
|
53
|
+
last_sync_timestamp?: number;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace CRMConfig {
|
|
56
|
+
interface CRMAnalysisDataMapping {
|
|
57
|
+
/**
|
|
58
|
+
* Name of the post-call analysis field to read the value from. A value that does
|
|
59
|
+
* not match the contact field's type is skipped rather than failing the
|
|
60
|
+
* conversation.
|
|
61
|
+
*/
|
|
62
|
+
analysis_data_name: string;
|
|
63
|
+
/**
|
|
64
|
+
* Contact field to write to. Must be an existing built-in or custom contact field,
|
|
65
|
+
* and cannot be phone_number, which identifies the contact.
|
|
66
|
+
*/
|
|
67
|
+
field_name: string;
|
|
68
|
+
/**
|
|
69
|
+
* How to reconcile the new value with what the contact already holds. `overwrite`
|
|
70
|
+
* always replaces it, `fill_if_empty` writes only when the field is empty, and
|
|
71
|
+
* `merge` combines the existing text with the new value. `merge` is available on
|
|
72
|
+
* string fields only.
|
|
73
|
+
*/
|
|
74
|
+
update_mode: 'overwrite' | 'fill_if_empty' | 'merge';
|
|
75
|
+
}
|
|
76
|
+
interface CustomField {
|
|
77
|
+
name: string;
|
|
78
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
79
|
+
description?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Display label for the field.
|
|
82
|
+
*/
|
|
83
|
+
label?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
86
|
+
* it appears here; ignored for every other type.
|
|
87
|
+
*/
|
|
88
|
+
options?: Array<string>;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export interface CRMGetSchemaResponse {
|
|
92
|
+
fields: Array<CRMGetSchemaResponse.Field>;
|
|
93
|
+
/**
|
|
94
|
+
* CRM provider name.
|
|
95
|
+
*/
|
|
96
|
+
provider: string;
|
|
97
|
+
}
|
|
98
|
+
export declare namespace CRMGetSchemaResponse {
|
|
99
|
+
interface Field {
|
|
100
|
+
name: string;
|
|
101
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
102
|
+
description?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Display label for the field.
|
|
105
|
+
*/
|
|
106
|
+
label?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
109
|
+
* it appears here; ignored for every other type.
|
|
110
|
+
*/
|
|
111
|
+
options?: Array<string>;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export interface CRMGetSyncJobStatusResponse {
|
|
115
|
+
status: 'queued' | 'running' | 'idle';
|
|
116
|
+
/**
|
|
117
|
+
* Number of items that errored so far.
|
|
118
|
+
*/
|
|
119
|
+
failed?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Epoch milliseconds when the job started.
|
|
122
|
+
*/
|
|
123
|
+
start_timestamp?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Number of items processed successfully so far.
|
|
126
|
+
*/
|
|
127
|
+
succeeded?: number;
|
|
128
|
+
/**
|
|
129
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
130
|
+
* scheduled sync (`cron`).
|
|
131
|
+
*/
|
|
132
|
+
triggered_by?: 'manual' | 'cron';
|
|
133
|
+
}
|
|
134
|
+
export interface CRMRunSyncJobResponse {
|
|
135
|
+
status: 'queued' | 'running' | 'idle';
|
|
136
|
+
/**
|
|
137
|
+
* Number of items that errored so far.
|
|
138
|
+
*/
|
|
139
|
+
failed?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Epoch milliseconds when the job started.
|
|
142
|
+
*/
|
|
143
|
+
start_timestamp?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Number of items processed successfully so far.
|
|
146
|
+
*/
|
|
147
|
+
succeeded?: number;
|
|
148
|
+
/**
|
|
149
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
150
|
+
* scheduled sync (`cron`).
|
|
151
|
+
*/
|
|
152
|
+
triggered_by?: 'manual' | 'cron';
|
|
153
|
+
}
|
|
154
|
+
export interface CRMGetSchemaParams {
|
|
155
|
+
/**
|
|
156
|
+
* ID of the CRM app to read the schema from. Defaults to the app linked in the
|
|
157
|
+
* organization's CRM configuration. Naming a different app additionally requires
|
|
158
|
+
* the App.Read scope.
|
|
159
|
+
*/
|
|
160
|
+
app_id?: string;
|
|
161
|
+
}
|
|
162
|
+
export interface CRMUpdateConfigParams {
|
|
163
|
+
/**
|
|
164
|
+
* ID of the CRM app to link. Pass null to unlink, which stops syncing. Changing it
|
|
165
|
+
* resets the sync cursor, so the next sync re-reads every contact from the new
|
|
166
|
+
* CRM.
|
|
167
|
+
*/
|
|
168
|
+
app_id?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Preferred display order of contact fields, for clients that render contacts as a
|
|
171
|
+
* table. Not used by the API itself.
|
|
172
|
+
*/
|
|
173
|
+
contact_columns_order?: Array<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Replaces the stored list.
|
|
176
|
+
*/
|
|
177
|
+
crm_analysis_data_mappings?: Array<CRMUpdateConfigParams.CRMAnalysisDataMapping>;
|
|
178
|
+
/**
|
|
179
|
+
* Replaces the stored list. Names must be snake_case and cannot collide with a
|
|
180
|
+
* built-in contact field or start with `contact`/`external`. Removing a field that
|
|
181
|
+
* an analysis data mapping still targets is rejected — send
|
|
182
|
+
* crm_analysis_data_mappings in the same request to retarget or drop those
|
|
183
|
+
* mappings.
|
|
184
|
+
*/
|
|
185
|
+
custom_fields?: Array<CRMUpdateConfigParams.CustomField>;
|
|
186
|
+
}
|
|
187
|
+
export declare namespace CRMUpdateConfigParams {
|
|
188
|
+
interface CRMAnalysisDataMapping {
|
|
189
|
+
/**
|
|
190
|
+
* Name of the post-call analysis field to read the value from. A value that does
|
|
191
|
+
* not match the contact field's type is skipped rather than failing the
|
|
192
|
+
* conversation.
|
|
193
|
+
*/
|
|
194
|
+
analysis_data_name: string;
|
|
195
|
+
/**
|
|
196
|
+
* Contact field to write to. Must be an existing built-in or custom contact field,
|
|
197
|
+
* and cannot be phone_number, which identifies the contact.
|
|
198
|
+
*/
|
|
199
|
+
field_name: string;
|
|
200
|
+
/**
|
|
201
|
+
* How to reconcile the new value with what the contact already holds. `overwrite`
|
|
202
|
+
* always replaces it, `fill_if_empty` writes only when the field is empty, and
|
|
203
|
+
* `merge` combines the existing text with the new value. `merge` is available on
|
|
204
|
+
* string fields only.
|
|
205
|
+
*/
|
|
206
|
+
update_mode: 'overwrite' | 'fill_if_empty' | 'merge';
|
|
207
|
+
}
|
|
208
|
+
interface CustomField {
|
|
209
|
+
name: string;
|
|
210
|
+
type: 'string' | 'number' | 'boolean' | 'date' | 'datetime' | 'enum';
|
|
211
|
+
description?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Display label for the field.
|
|
214
|
+
*/
|
|
215
|
+
label?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Allowed values. Required when `type` is `enum`, where a value is rejected unless
|
|
218
|
+
* it appears here; ignored for every other type.
|
|
219
|
+
*/
|
|
220
|
+
options?: Array<string>;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export declare namespace CRM {
|
|
224
|
+
export { type CRMConfig as CRMConfig, type CRMGetSchemaResponse as CRMGetSchemaResponse, type CRMGetSyncJobStatusResponse as CRMGetSyncJobStatusResponse, type CRMRunSyncJobResponse as CRMRunSyncJobResponse, type CRMGetSchemaParams as CRMGetSchemaParams, type CRMUpdateConfigParams as CRMUpdateConfigParams, };
|
|
225
|
+
}
|
|
226
|
+
//# sourceMappingURL=crm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.d.ts","sourceRoot":"","sources":["../src/resources/crm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;OAIG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAI1D;;;OAGG;IACH,SAAS,CACP,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;OAGG;IACH,gBAAgB,CAAC,OAAO,CAA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G;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtC;;OAEG;IACH,0BAA0B,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,CAAC;IAEjF;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;CAC1D;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,sBAAsB;QACrC;;;;WAIG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;;;WAKG;QACH,WAAW,EAAE,WAAW,GAAG,eAAe,GAAG,OAAO,CAAC;KACtD;IAED,UAAiB,WAAW;QAC1B,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;QAErE,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACzB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/crm.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CRM = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class CRM extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get the organization's CRM configuration: which CRM app is linked, the custom
|
|
9
|
+
* contact fields defined for it, and how post-call analysis data is written back
|
|
10
|
+
* to contacts. Returns an empty configuration when nothing has been set up yet.
|
|
11
|
+
*/
|
|
12
|
+
getConfig(options) {
|
|
13
|
+
return this._client.get('/get-crm-config', options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get the contact schema of the connected CRM: the fields available on its contact
|
|
17
|
+
* object, which are the values that sync mappings can reference.
|
|
18
|
+
*/
|
|
19
|
+
getSchema(query = {}, options) {
|
|
20
|
+
return this._client.get('/get-crm-schema', { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get the status of the organization's contact sync, whether it was started
|
|
24
|
+
* manually or by the schedule. Returns status `idle` when no sync is running.
|
|
25
|
+
*/
|
|
26
|
+
getSyncJobStatus(options) {
|
|
27
|
+
return this._client.get('/get-sync-job-status', options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Start a contact sync with the linked CRM app immediately, instead of waiting for
|
|
31
|
+
* the scheduled sync. One sync runs per organization at a time: starting another
|
|
32
|
+
* while one is in flight is rejected. Poll get-sync-job-status for progress.
|
|
33
|
+
*/
|
|
34
|
+
runSyncJob(options) {
|
|
35
|
+
return this._client.post('/run-sync-job', options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Update the organization's CRM configuration. Omitted fields stay as they are; a
|
|
39
|
+
* field that is sent replaces its stored value in full.
|
|
40
|
+
*/
|
|
41
|
+
updateConfig(body, options) {
|
|
42
|
+
return this._client.post('/update-crm-config', { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CRM = CRM;
|
|
46
|
+
//# sourceMappingURL=crm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.js","sourceRoot":"","sources":["../src/resources/crm.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,GAAI,SAAQ,sBAAW;IAClC;;;;OAIG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,IAA2B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AA7CD,kBA6CC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class CRM extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get the organization's CRM configuration: which CRM app is linked, the custom
|
|
6
|
+
* contact fields defined for it, and how post-call analysis data is written back
|
|
7
|
+
* to contacts. Returns an empty configuration when nothing has been set up yet.
|
|
8
|
+
*/
|
|
9
|
+
getConfig(options) {
|
|
10
|
+
return this._client.get('/get-crm-config', options);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get the contact schema of the connected CRM: the fields available on its contact
|
|
14
|
+
* object, which are the values that sync mappings can reference.
|
|
15
|
+
*/
|
|
16
|
+
getSchema(query = {}, options) {
|
|
17
|
+
return this._client.get('/get-crm-schema', { query, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get the status of the organization's contact sync, whether it was started
|
|
21
|
+
* manually or by the schedule. Returns status `idle` when no sync is running.
|
|
22
|
+
*/
|
|
23
|
+
getSyncJobStatus(options) {
|
|
24
|
+
return this._client.get('/get-sync-job-status', options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Start a contact sync with the linked CRM app immediately, instead of waiting for
|
|
28
|
+
* the scheduled sync. One sync runs per organization at a time: starting another
|
|
29
|
+
* while one is in flight is rejected. Poll get-sync-job-status for progress.
|
|
30
|
+
*/
|
|
31
|
+
runSyncJob(options) {
|
|
32
|
+
return this._client.post('/run-sync-job', options);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Update the organization's CRM configuration. Omitted fields stay as they are; a
|
|
36
|
+
* field that is sent replaces its stored value in full.
|
|
37
|
+
*/
|
|
38
|
+
updateConfig(body, options) {
|
|
39
|
+
return this._client.post('/update-crm-config', { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=crm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crm.mjs","sourceRoot":"","sources":["../src/resources/crm.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;;;OAIG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,IAA2B,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -11,8 +11,8 @@ export interface ExportRequestListResponse {
|
|
|
11
11
|
/**
|
|
12
12
|
* Whether more results are available.
|
|
13
13
|
*/
|
|
14
|
-
has_more
|
|
15
|
-
items
|
|
14
|
+
has_more: boolean;
|
|
15
|
+
items: Array<ExportRequestListResponse.Item>;
|
|
16
16
|
/**
|
|
17
17
|
* Pagination key for the next page.
|
|
18
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-request.d.mts","sourceRoot":"","sources":["../src/resources/export-request.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB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B,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -11,8 +11,8 @@ export interface ExportRequestListResponse {
|
|
|
11
11
|
/**
|
|
12
12
|
* Whether more results are available.
|
|
13
13
|
*/
|
|
14
|
-
has_more
|
|
15
|
-
items
|
|
14
|
+
has_more: boolean;
|
|
15
|
+
items: Array<ExportRequestListResponse.Item>;
|
|
16
16
|
/**
|
|
17
17
|
* Pagination key for the next page.
|
|
18
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-request.d.ts","sourceRoot":"","sources":["../src/resources/export-request.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,
|
|
1
|
+
{"version":3,"file":"export-request.d.ts","sourceRoot":"","sources":["../src/resources/export-request.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB,KAAK,EAAE,KAAK,CAAC,yB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