yellowgrid-api-ts 3.2.297 → 3.2.299
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -0
- package/api.ts +123 -0
- package/dist/api.d.ts +85 -0
- package/dist/api.js +84 -0
- package/docs/CRMApi.md +59 -0
- package/docs/CallJournalRequestModel.md +35 -0
- package/docs/CrmActivityDTO.md +8 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -178,6 +178,7 @@ Class | Method | HTTP request | Description
|
|
|
178
178
|
*CRMApi* | [**getGetCrmActivities**](docs/CRMApi.md#getgetcrmactivities) | **GET** /admin/crm/{id}/activities |
|
|
179
179
|
*CRMApi* | [**getSearchByPhone**](docs/CRMApi.md#getsearchbyphone) | **GET** /crm/contact/search |
|
|
180
180
|
*CRMApi* | [**postCreateCrmNote**](docs/CRMApi.md#postcreatecrmnote) | **POST** /admin/crm/{id}/activities/note |
|
|
181
|
+
*CRMApi* | [**postJournalCall**](docs/CRMApi.md#postjournalcall) | **POST** /crm/contact/{id}/journal |
|
|
181
182
|
*Class3CXApi* | [**getGetLicenceDetails**](docs/Class3CXApi.md#getgetlicencedetails) | **GET** /tcx/licences/details | Get 3CX Licence Details
|
|
182
183
|
*Class3CXApi* | [**getGetTcxCreditStatus**](docs/Class3CXApi.md#getgettcxcreditstatus) | **GET** /tcx/admin/credit | Get 3CX Credit Status
|
|
183
184
|
*Class3CXApi* | [**getGetTcxExpiringKeys**](docs/Class3CXApi.md#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring | Get 3CX Expiring Keys
|
|
@@ -491,6 +492,7 @@ Class | Method | HTTP request | Description
|
|
|
491
492
|
- [Bundle](docs/Bundle.md)
|
|
492
493
|
- [BundleCustomer](docs/BundleCustomer.md)
|
|
493
494
|
- [CallBarringModel](docs/CallBarringModel.md)
|
|
495
|
+
- [CallJournalRequestModel](docs/CallJournalRequestModel.md)
|
|
494
496
|
- [CallTariff](docs/CallTariff.md)
|
|
495
497
|
- [CallTariffPlan](docs/CallTariffPlan.md)
|
|
496
498
|
- [CallTariffResponse](docs/CallTariffResponse.md)
|
package/api.ts
CHANGED
|
@@ -1736,6 +1736,43 @@ export interface CallBarringModel {
|
|
|
1736
1736
|
*/
|
|
1737
1737
|
'block087Calls': boolean;
|
|
1738
1738
|
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Call Journal Request Model
|
|
1741
|
+
*/
|
|
1742
|
+
export interface CallJournalRequestModel {
|
|
1743
|
+
/**
|
|
1744
|
+
* User Email
|
|
1745
|
+
*/
|
|
1746
|
+
'userEmail': string;
|
|
1747
|
+
/**
|
|
1748
|
+
* Call Note
|
|
1749
|
+
*/
|
|
1750
|
+
'note': string;
|
|
1751
|
+
/**
|
|
1752
|
+
* Call Timestamp
|
|
1753
|
+
*/
|
|
1754
|
+
'timestamp': string;
|
|
1755
|
+
/**
|
|
1756
|
+
* Call Duration
|
|
1757
|
+
*/
|
|
1758
|
+
'duration': string;
|
|
1759
|
+
/**
|
|
1760
|
+
* Call Recording URL
|
|
1761
|
+
*/
|
|
1762
|
+
'recordingUrl': string;
|
|
1763
|
+
/**
|
|
1764
|
+
* Call Transcription
|
|
1765
|
+
*/
|
|
1766
|
+
'transcription': string;
|
|
1767
|
+
/**
|
|
1768
|
+
* Call Summary
|
|
1769
|
+
*/
|
|
1770
|
+
'summary': string;
|
|
1771
|
+
/**
|
|
1772
|
+
* Call Sentiment
|
|
1773
|
+
*/
|
|
1774
|
+
'sentiment': number;
|
|
1775
|
+
}
|
|
1739
1776
|
export interface CallTariff {
|
|
1740
1777
|
'createdDate'?: string;
|
|
1741
1778
|
'id'?: number;
|
|
@@ -2387,6 +2424,22 @@ export interface CrmActivityDTO {
|
|
|
2387
2424
|
* Activity Order ID
|
|
2388
2425
|
*/
|
|
2389
2426
|
'orderId'?: number | null;
|
|
2427
|
+
/**
|
|
2428
|
+
* Call Recording URL
|
|
2429
|
+
*/
|
|
2430
|
+
'recordingUrl'?: string | null;
|
|
2431
|
+
/**
|
|
2432
|
+
* Call Transcription
|
|
2433
|
+
*/
|
|
2434
|
+
'transcription'?: string | null;
|
|
2435
|
+
/**
|
|
2436
|
+
* Call Summary
|
|
2437
|
+
*/
|
|
2438
|
+
'summary'?: string | null;
|
|
2439
|
+
/**
|
|
2440
|
+
* Call Sentiment
|
|
2441
|
+
*/
|
|
2442
|
+
'sentiment'?: number | null;
|
|
2390
2443
|
}
|
|
2391
2444
|
/**
|
|
2392
2445
|
* CRM Contact
|
|
@@ -20021,6 +20074,42 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
20021
20074
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20022
20075
|
localVarRequestOptions.data = serializeDataIfNeeded(createCrmNoteBody, localVarRequestOptions, configuration)
|
|
20023
20076
|
|
|
20077
|
+
return {
|
|
20078
|
+
url: toPathString(localVarUrlObj),
|
|
20079
|
+
options: localVarRequestOptions,
|
|
20080
|
+
};
|
|
20081
|
+
},
|
|
20082
|
+
/**
|
|
20083
|
+
* Journal a phone call
|
|
20084
|
+
* @param {number} id Contact ID
|
|
20085
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
20086
|
+
* @param {*} [options] Override http request option.
|
|
20087
|
+
* @throws {RequiredError}
|
|
20088
|
+
*/
|
|
20089
|
+
postJournalCall: async (id: number, callJournalRequestModel?: CallJournalRequestModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20090
|
+
// verify required parameter 'id' is not null or undefined
|
|
20091
|
+
assertParamExists('postJournalCall', 'id', id)
|
|
20092
|
+
const localVarPath = `/crm/contact/{id}/journal`
|
|
20093
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
20094
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20095
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20096
|
+
let baseOptions;
|
|
20097
|
+
if (configuration) {
|
|
20098
|
+
baseOptions = configuration.baseOptions;
|
|
20099
|
+
}
|
|
20100
|
+
|
|
20101
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20102
|
+
const localVarHeaderParameter = {} as any;
|
|
20103
|
+
const localVarQueryParameter = {} as any;
|
|
20104
|
+
|
|
20105
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20106
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
20107
|
+
|
|
20108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20110
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20111
|
+
localVarRequestOptions.data = serializeDataIfNeeded(callJournalRequestModel, localVarRequestOptions, configuration)
|
|
20112
|
+
|
|
20024
20113
|
return {
|
|
20025
20114
|
url: toPathString(localVarUrlObj),
|
|
20026
20115
|
options: localVarRequestOptions,
|
|
@@ -20073,6 +20162,19 @@ export const CRMApiFp = function(configuration?: Configuration) {
|
|
|
20073
20162
|
const localVarOperationServerBasePath = operationServerMap['CRMApi.postCreateCrmNote']?.[localVarOperationServerIndex]?.url;
|
|
20074
20163
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20075
20164
|
},
|
|
20165
|
+
/**
|
|
20166
|
+
* Journal a phone call
|
|
20167
|
+
* @param {number} id Contact ID
|
|
20168
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
20169
|
+
* @param {*} [options] Override http request option.
|
|
20170
|
+
* @throws {RequiredError}
|
|
20171
|
+
*/
|
|
20172
|
+
async postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivityDTO>> {
|
|
20173
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postJournalCall(id, callJournalRequestModel, options);
|
|
20174
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20175
|
+
const localVarOperationServerBasePath = operationServerMap['CRMApi.postJournalCall']?.[localVarOperationServerIndex]?.url;
|
|
20176
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20177
|
+
},
|
|
20076
20178
|
}
|
|
20077
20179
|
};
|
|
20078
20180
|
|
|
@@ -20111,6 +20213,16 @@ export const CRMApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
20111
20213
|
postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO> {
|
|
20112
20214
|
return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then((request) => request(axios, basePath));
|
|
20113
20215
|
},
|
|
20216
|
+
/**
|
|
20217
|
+
* Journal a phone call
|
|
20218
|
+
* @param {number} id Contact ID
|
|
20219
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
20220
|
+
* @param {*} [options] Override http request option.
|
|
20221
|
+
* @throws {RequiredError}
|
|
20222
|
+
*/
|
|
20223
|
+
postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO> {
|
|
20224
|
+
return localVarFp.postJournalCall(id, callJournalRequestModel, options).then((request) => request(axios, basePath));
|
|
20225
|
+
},
|
|
20114
20226
|
};
|
|
20115
20227
|
};
|
|
20116
20228
|
|
|
@@ -20149,6 +20261,17 @@ export class CRMApi extends BaseAPI {
|
|
|
20149
20261
|
public postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig) {
|
|
20150
20262
|
return CRMApiFp(this.configuration).postCreateCrmNote(id, createCrmNoteBody, options).then((request) => request(this.axios, this.basePath));
|
|
20151
20263
|
}
|
|
20264
|
+
|
|
20265
|
+
/**
|
|
20266
|
+
* Journal a phone call
|
|
20267
|
+
* @param {number} id Contact ID
|
|
20268
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
20269
|
+
* @param {*} [options] Override http request option.
|
|
20270
|
+
* @throws {RequiredError}
|
|
20271
|
+
*/
|
|
20272
|
+
public postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig) {
|
|
20273
|
+
return CRMApiFp(this.configuration).postJournalCall(id, callJournalRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
20274
|
+
}
|
|
20152
20275
|
}
|
|
20153
20276
|
|
|
20154
20277
|
export const GetGetCrmActivitiesTypeEnum = {
|
package/dist/api.d.ts
CHANGED
|
@@ -1694,6 +1694,43 @@ export interface CallBarringModel {
|
|
|
1694
1694
|
*/
|
|
1695
1695
|
'block087Calls': boolean;
|
|
1696
1696
|
}
|
|
1697
|
+
/**
|
|
1698
|
+
* Call Journal Request Model
|
|
1699
|
+
*/
|
|
1700
|
+
export interface CallJournalRequestModel {
|
|
1701
|
+
/**
|
|
1702
|
+
* User Email
|
|
1703
|
+
*/
|
|
1704
|
+
'userEmail': string;
|
|
1705
|
+
/**
|
|
1706
|
+
* Call Note
|
|
1707
|
+
*/
|
|
1708
|
+
'note': string;
|
|
1709
|
+
/**
|
|
1710
|
+
* Call Timestamp
|
|
1711
|
+
*/
|
|
1712
|
+
'timestamp': string;
|
|
1713
|
+
/**
|
|
1714
|
+
* Call Duration
|
|
1715
|
+
*/
|
|
1716
|
+
'duration': string;
|
|
1717
|
+
/**
|
|
1718
|
+
* Call Recording URL
|
|
1719
|
+
*/
|
|
1720
|
+
'recordingUrl': string;
|
|
1721
|
+
/**
|
|
1722
|
+
* Call Transcription
|
|
1723
|
+
*/
|
|
1724
|
+
'transcription': string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Call Summary
|
|
1727
|
+
*/
|
|
1728
|
+
'summary': string;
|
|
1729
|
+
/**
|
|
1730
|
+
* Call Sentiment
|
|
1731
|
+
*/
|
|
1732
|
+
'sentiment': number;
|
|
1733
|
+
}
|
|
1697
1734
|
export interface CallTariff {
|
|
1698
1735
|
'createdDate'?: string;
|
|
1699
1736
|
'id'?: number;
|
|
@@ -2345,6 +2382,22 @@ export interface CrmActivityDTO {
|
|
|
2345
2382
|
* Activity Order ID
|
|
2346
2383
|
*/
|
|
2347
2384
|
'orderId'?: number | null;
|
|
2385
|
+
/**
|
|
2386
|
+
* Call Recording URL
|
|
2387
|
+
*/
|
|
2388
|
+
'recordingUrl'?: string | null;
|
|
2389
|
+
/**
|
|
2390
|
+
* Call Transcription
|
|
2391
|
+
*/
|
|
2392
|
+
'transcription'?: string | null;
|
|
2393
|
+
/**
|
|
2394
|
+
* Call Summary
|
|
2395
|
+
*/
|
|
2396
|
+
'summary'?: string | null;
|
|
2397
|
+
/**
|
|
2398
|
+
* Call Sentiment
|
|
2399
|
+
*/
|
|
2400
|
+
'sentiment'?: number | null;
|
|
2348
2401
|
}
|
|
2349
2402
|
/**
|
|
2350
2403
|
* CRM Contact
|
|
@@ -14981,6 +15034,14 @@ export declare const CRMApiAxiosParamCreator: (configuration?: Configuration) =>
|
|
|
14981
15034
|
* @throws {RequiredError}
|
|
14982
15035
|
*/
|
|
14983
15036
|
postCreateCrmNote: (id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15037
|
+
/**
|
|
15038
|
+
* Journal a phone call
|
|
15039
|
+
* @param {number} id Contact ID
|
|
15040
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
15041
|
+
* @param {*} [options] Override http request option.
|
|
15042
|
+
* @throws {RequiredError}
|
|
15043
|
+
*/
|
|
15044
|
+
postJournalCall: (id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14984
15045
|
};
|
|
14985
15046
|
/**
|
|
14986
15047
|
* CRMApi - functional programming interface
|
|
@@ -15009,6 +15070,14 @@ export declare const CRMApiFp: (configuration?: Configuration) => {
|
|
|
15009
15070
|
* @throws {RequiredError}
|
|
15010
15071
|
*/
|
|
15011
15072
|
postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivityDTO>>;
|
|
15073
|
+
/**
|
|
15074
|
+
* Journal a phone call
|
|
15075
|
+
* @param {number} id Contact ID
|
|
15076
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
15077
|
+
* @param {*} [options] Override http request option.
|
|
15078
|
+
* @throws {RequiredError}
|
|
15079
|
+
*/
|
|
15080
|
+
postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivityDTO>>;
|
|
15012
15081
|
};
|
|
15013
15082
|
/**
|
|
15014
15083
|
* CRMApi - factory interface
|
|
@@ -15037,6 +15106,14 @@ export declare const CRMApiFactory: (configuration?: Configuration, basePath?: s
|
|
|
15037
15106
|
* @throws {RequiredError}
|
|
15038
15107
|
*/
|
|
15039
15108
|
postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO>;
|
|
15109
|
+
/**
|
|
15110
|
+
* Journal a phone call
|
|
15111
|
+
* @param {number} id Contact ID
|
|
15112
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
15113
|
+
* @param {*} [options] Override http request option.
|
|
15114
|
+
* @throws {RequiredError}
|
|
15115
|
+
*/
|
|
15116
|
+
postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO>;
|
|
15040
15117
|
};
|
|
15041
15118
|
/**
|
|
15042
15119
|
* CRMApi - object-oriented interface
|
|
@@ -15065,6 +15142,14 @@ export declare class CRMApi extends BaseAPI {
|
|
|
15065
15142
|
* @throws {RequiredError}
|
|
15066
15143
|
*/
|
|
15067
15144
|
postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmActivityDTO, any, {}>>;
|
|
15145
|
+
/**
|
|
15146
|
+
* Journal a phone call
|
|
15147
|
+
* @param {number} id Contact ID
|
|
15148
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
15149
|
+
* @param {*} [options] Override http request option.
|
|
15150
|
+
* @throws {RequiredError}
|
|
15151
|
+
*/
|
|
15152
|
+
postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmActivityDTO, any, {}>>;
|
|
15068
15153
|
}
|
|
15069
15154
|
export declare const GetGetCrmActivitiesTypeEnum: {
|
|
15070
15155
|
readonly Alert: "alert";
|
package/dist/api.js
CHANGED
|
@@ -11148,6 +11148,46 @@ var CRMApiAxiosParamCreator = function (configuration) {
|
|
|
11148
11148
|
});
|
|
11149
11149
|
});
|
|
11150
11150
|
},
|
|
11151
|
+
/**
|
|
11152
|
+
* Journal a phone call
|
|
11153
|
+
* @param {number} id Contact ID
|
|
11154
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
11155
|
+
* @param {*} [options] Override http request option.
|
|
11156
|
+
* @throws {RequiredError}
|
|
11157
|
+
*/
|
|
11158
|
+
postJournalCall: function (id_1, callJournalRequestModel_1) {
|
|
11159
|
+
var args_1 = [];
|
|
11160
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
11161
|
+
args_1[_i - 2] = arguments[_i];
|
|
11162
|
+
}
|
|
11163
|
+
return __awaiter(_this, __spreadArray([id_1, callJournalRequestModel_1], args_1, true), void 0, function (id, callJournalRequestModel, options) {
|
|
11164
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
11165
|
+
if (options === void 0) { options = {}; }
|
|
11166
|
+
return __generator(this, function (_a) {
|
|
11167
|
+
// verify required parameter 'id' is not null or undefined
|
|
11168
|
+
(0, common_1.assertParamExists)('postJournalCall', 'id', id);
|
|
11169
|
+
localVarPath = "/crm/contact/{id}/journal"
|
|
11170
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
11171
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11172
|
+
if (configuration) {
|
|
11173
|
+
baseOptions = configuration.baseOptions;
|
|
11174
|
+
}
|
|
11175
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
11176
|
+
localVarHeaderParameter = {};
|
|
11177
|
+
localVarQueryParameter = {};
|
|
11178
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11179
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11180
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11181
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11182
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11183
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(callJournalRequestModel, localVarRequestOptions, configuration);
|
|
11184
|
+
return [2 /*return*/, {
|
|
11185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11186
|
+
options: localVarRequestOptions,
|
|
11187
|
+
}];
|
|
11188
|
+
});
|
|
11189
|
+
});
|
|
11190
|
+
},
|
|
11151
11191
|
};
|
|
11152
11192
|
};
|
|
11153
11193
|
exports.CRMApiAxiosParamCreator = CRMApiAxiosParamCreator;
|
|
@@ -11225,6 +11265,29 @@ var CRMApiFp = function (configuration) {
|
|
|
11225
11265
|
});
|
|
11226
11266
|
});
|
|
11227
11267
|
},
|
|
11268
|
+
/**
|
|
11269
|
+
* Journal a phone call
|
|
11270
|
+
* @param {number} id Contact ID
|
|
11271
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
11272
|
+
* @param {*} [options] Override http request option.
|
|
11273
|
+
* @throws {RequiredError}
|
|
11274
|
+
*/
|
|
11275
|
+
postJournalCall: function (id, callJournalRequestModel, options) {
|
|
11276
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11277
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
11278
|
+
var _a, _b, _c;
|
|
11279
|
+
return __generator(this, function (_d) {
|
|
11280
|
+
switch (_d.label) {
|
|
11281
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postJournalCall(id, callJournalRequestModel, options)];
|
|
11282
|
+
case 1:
|
|
11283
|
+
localVarAxiosArgs = _d.sent();
|
|
11284
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11285
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.postJournalCall']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11286
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
11287
|
+
}
|
|
11288
|
+
});
|
|
11289
|
+
});
|
|
11290
|
+
},
|
|
11228
11291
|
};
|
|
11229
11292
|
};
|
|
11230
11293
|
exports.CRMApiFp = CRMApiFp;
|
|
@@ -11263,6 +11326,16 @@ var CRMApiFactory = function (configuration, basePath, axios) {
|
|
|
11263
11326
|
postCreateCrmNote: function (id, createCrmNoteBody, options) {
|
|
11264
11327
|
return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(axios, basePath); });
|
|
11265
11328
|
},
|
|
11329
|
+
/**
|
|
11330
|
+
* Journal a phone call
|
|
11331
|
+
* @param {number} id Contact ID
|
|
11332
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
11333
|
+
* @param {*} [options] Override http request option.
|
|
11334
|
+
* @throws {RequiredError}
|
|
11335
|
+
*/
|
|
11336
|
+
postJournalCall: function (id, callJournalRequestModel, options) {
|
|
11337
|
+
return localVarFp.postJournalCall(id, callJournalRequestModel, options).then(function (request) { return request(axios, basePath); });
|
|
11338
|
+
},
|
|
11266
11339
|
};
|
|
11267
11340
|
};
|
|
11268
11341
|
exports.CRMApiFactory = CRMApiFactory;
|
|
@@ -11306,6 +11379,17 @@ var CRMApi = /** @class */ (function (_super) {
|
|
|
11306
11379
|
var _this = this;
|
|
11307
11380
|
return (0, exports.CRMApiFp)(this.configuration).postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11308
11381
|
};
|
|
11382
|
+
/**
|
|
11383
|
+
* Journal a phone call
|
|
11384
|
+
* @param {number} id Contact ID
|
|
11385
|
+
* @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
|
|
11386
|
+
* @param {*} [options] Override http request option.
|
|
11387
|
+
* @throws {RequiredError}
|
|
11388
|
+
*/
|
|
11389
|
+
CRMApi.prototype.postJournalCall = function (id, callJournalRequestModel, options) {
|
|
11390
|
+
var _this = this;
|
|
11391
|
+
return (0, exports.CRMApiFp)(this.configuration).postJournalCall(id, callJournalRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11392
|
+
};
|
|
11309
11393
|
return CRMApi;
|
|
11310
11394
|
}(base_1.BaseAPI));
|
|
11311
11395
|
exports.CRMApi = CRMApi;
|
package/docs/CRMApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
7
7
|
|[**getGetCrmActivities**](#getgetcrmactivities) | **GET** /admin/crm/{id}/activities | |
|
|
8
8
|
|[**getSearchByPhone**](#getsearchbyphone) | **GET** /crm/contact/search | |
|
|
9
9
|
|[**postCreateCrmNote**](#postcreatecrmnote) | **POST** /admin/crm/{id}/activities/note | |
|
|
10
|
+
|[**postJournalCall**](#postjournalcall) | **POST** /crm/contact/{id}/journal | |
|
|
10
11
|
|
|
11
12
|
# **getGetCrmActivities**
|
|
12
13
|
> CrmActivitiesResponseDTO getGetCrmActivities()
|
|
@@ -173,3 +174,61 @@ No authorization required
|
|
|
173
174
|
|
|
174
175
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
175
176
|
|
|
177
|
+
# **postJournalCall**
|
|
178
|
+
> CrmActivityDTO postJournalCall()
|
|
179
|
+
|
|
180
|
+
Journal a phone call
|
|
181
|
+
|
|
182
|
+
### Example
|
|
183
|
+
|
|
184
|
+
```typescript
|
|
185
|
+
import {
|
|
186
|
+
CRMApi,
|
|
187
|
+
Configuration,
|
|
188
|
+
CallJournalRequestModel
|
|
189
|
+
} from 'yellowgrid-api-ts';
|
|
190
|
+
|
|
191
|
+
const configuration = new Configuration();
|
|
192
|
+
const apiInstance = new CRMApi(configuration);
|
|
193
|
+
|
|
194
|
+
let id: number; //Contact ID (default to undefined)
|
|
195
|
+
let callJournalRequestModel: CallJournalRequestModel; //Journal Call Request (optional)
|
|
196
|
+
|
|
197
|
+
const { status, data } = await apiInstance.postJournalCall(
|
|
198
|
+
id,
|
|
199
|
+
callJournalRequestModel
|
|
200
|
+
);
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
|Name | Type | Description | Notes|
|
|
206
|
+
|------------- | ------------- | ------------- | -------------|
|
|
207
|
+
| **callJournalRequestModel** | **CallJournalRequestModel**| Journal Call Request | |
|
|
208
|
+
| **id** | [**number**] | Contact ID | defaults to undefined|
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### Return type
|
|
212
|
+
|
|
213
|
+
**CrmActivityDTO**
|
|
214
|
+
|
|
215
|
+
### Authorization
|
|
216
|
+
|
|
217
|
+
No authorization required
|
|
218
|
+
|
|
219
|
+
### HTTP request headers
|
|
220
|
+
|
|
221
|
+
- **Content-Type**: application/json
|
|
222
|
+
- **Accept**: application/json
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
### HTTP response details
|
|
226
|
+
| Status code | Description | Response headers |
|
|
227
|
+
|-------------|-------------|------------------|
|
|
228
|
+
|**200** | CRM Contact | - |
|
|
229
|
+
|**400** | Bad Request | - |
|
|
230
|
+
|**401** | Unauthorised | - |
|
|
231
|
+
|**403** | Access Denied | - |
|
|
232
|
+
|
|
233
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
234
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# CallJournalRequestModel
|
|
2
|
+
|
|
3
|
+
Call Journal Request Model
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**userEmail** | **string** | User Email | [default to undefined]
|
|
10
|
+
**note** | **string** | Call Note | [default to undefined]
|
|
11
|
+
**timestamp** | **string** | Call Timestamp | [default to undefined]
|
|
12
|
+
**duration** | **string** | Call Duration | [default to undefined]
|
|
13
|
+
**recordingUrl** | **string** | Call Recording URL | [default to undefined]
|
|
14
|
+
**transcription** | **string** | Call Transcription | [default to undefined]
|
|
15
|
+
**summary** | **string** | Call Summary | [default to undefined]
|
|
16
|
+
**sentiment** | **number** | Call Sentiment | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { CallJournalRequestModel } from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const instance: CallJournalRequestModel = {
|
|
24
|
+
userEmail,
|
|
25
|
+
note,
|
|
26
|
+
timestamp,
|
|
27
|
+
duration,
|
|
28
|
+
recordingUrl,
|
|
29
|
+
transcription,
|
|
30
|
+
summary,
|
|
31
|
+
sentiment,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/CrmActivityDTO.md
CHANGED
|
@@ -13,6 +13,10 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**user** | **string** | Activity User Name | [optional] [default to undefined]
|
|
14
14
|
**contact** | **string** | Activity Contact Name | [optional] [default to undefined]
|
|
15
15
|
**orderId** | **number** | Activity Order ID | [optional] [default to undefined]
|
|
16
|
+
**recordingUrl** | **string** | Call Recording URL | [optional] [default to undefined]
|
|
17
|
+
**transcription** | **string** | Call Transcription | [optional] [default to undefined]
|
|
18
|
+
**summary** | **string** | Call Summary | [optional] [default to undefined]
|
|
19
|
+
**sentiment** | **number** | Call Sentiment | [optional] [default to undefined]
|
|
16
20
|
|
|
17
21
|
## Example
|
|
18
22
|
|
|
@@ -27,6 +31,10 @@ const instance: CrmActivityDTO = {
|
|
|
27
31
|
user,
|
|
28
32
|
contact,
|
|
29
33
|
orderId,
|
|
34
|
+
recordingUrl,
|
|
35
|
+
transcription,
|
|
36
|
+
summary,
|
|
37
|
+
sentiment,
|
|
30
38
|
};
|
|
31
39
|
```
|
|
32
40
|
|