yellowgrid-api-ts 3.2.298 → 3.2.300

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/README.md CHANGED
@@ -178,7 +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* | [**postSearchByPhone**](docs/CRMApi.md#postsearchbyphone) | **POST** /crm/contact/search |
181
+ *CRMApi* | [**postJournalCall**](docs/CRMApi.md#postjournalcall) | **POST** /crm/contact/{id}/journal |
182
182
  *Class3CXApi* | [**getGetLicenceDetails**](docs/Class3CXApi.md#getgetlicencedetails) | **GET** /tcx/licences/details | Get 3CX Licence Details
183
183
  *Class3CXApi* | [**getGetTcxCreditStatus**](docs/Class3CXApi.md#getgettcxcreditstatus) | **GET** /tcx/admin/credit | Get 3CX Credit Status
184
184
  *Class3CXApi* | [**getGetTcxExpiringKeys**](docs/Class3CXApi.md#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring | Get 3CX Expiring Keys
package/api.ts CHANGED
@@ -20080,12 +20080,17 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
20080
20080
  };
20081
20081
  },
20082
20082
  /**
20083
- * Search for contacts by phone number
20083
+ * Journal a phone call
20084
+ * @param {number} id Contact ID
20085
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
20084
20086
  * @param {*} [options] Override http request option.
20085
20087
  * @throws {RequiredError}
20086
20088
  */
20087
- postSearchByPhone: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20088
- const localVarPath = `/crm/contact/search`;
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)));
20089
20094
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20090
20095
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20091
20096
  let baseOptions;
@@ -20097,11 +20102,13 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
20097
20102
  const localVarHeaderParameter = {} as any;
20098
20103
  const localVarQueryParameter = {} as any;
20099
20104
 
20105
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20100
20106
  localVarHeaderParameter['Accept'] = 'application/json';
20101
20107
 
20102
20108
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20103
20109
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20104
20110
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20111
+ localVarRequestOptions.data = serializeDataIfNeeded(callJournalRequestModel, localVarRequestOptions, configuration)
20105
20112
 
20106
20113
  return {
20107
20114
  url: toPathString(localVarUrlObj),
@@ -20156,14 +20163,16 @@ export const CRMApiFp = function(configuration?: Configuration) {
20156
20163
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20157
20164
  },
20158
20165
  /**
20159
- * Search for contacts by phone number
20166
+ * Journal a phone call
20167
+ * @param {number} id Contact ID
20168
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
20160
20169
  * @param {*} [options] Override http request option.
20161
20170
  * @throws {RequiredError}
20162
20171
  */
20163
- async postSearchByPhone(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmContactDTO>> {
20164
- const localVarAxiosArgs = await localVarAxiosParamCreator.postSearchByPhone(options);
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);
20165
20174
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20166
- const localVarOperationServerBasePath = operationServerMap['CRMApi.postSearchByPhone']?.[localVarOperationServerIndex]?.url;
20175
+ const localVarOperationServerBasePath = operationServerMap['CRMApi.postJournalCall']?.[localVarOperationServerIndex]?.url;
20167
20176
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20168
20177
  },
20169
20178
  }
@@ -20205,12 +20214,14 @@ export const CRMApiFactory = function (configuration?: Configuration, basePath?:
20205
20214
  return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then((request) => request(axios, basePath));
20206
20215
  },
20207
20216
  /**
20208
- * Search for contacts by phone number
20217
+ * Journal a phone call
20218
+ * @param {number} id Contact ID
20219
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
20209
20220
  * @param {*} [options] Override http request option.
20210
20221
  * @throws {RequiredError}
20211
20222
  */
20212
- postSearchByPhone(options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO> {
20213
- return localVarFp.postSearchByPhone(options).then((request) => request(axios, basePath));
20223
+ postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO> {
20224
+ return localVarFp.postJournalCall(id, callJournalRequestModel, options).then((request) => request(axios, basePath));
20214
20225
  },
20215
20226
  };
20216
20227
  };
@@ -20252,12 +20263,14 @@ export class CRMApi extends BaseAPI {
20252
20263
  }
20253
20264
 
20254
20265
  /**
20255
- * Search for contacts by phone number
20266
+ * Journal a phone call
20267
+ * @param {number} id Contact ID
20268
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
20256
20269
  * @param {*} [options] Override http request option.
20257
20270
  * @throws {RequiredError}
20258
20271
  */
20259
- public postSearchByPhone(options?: RawAxiosRequestConfig) {
20260
- return CRMApiFp(this.configuration).postSearchByPhone(options).then((request) => request(this.axios, this.basePath));
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));
20261
20274
  }
20262
20275
  }
20263
20276
 
package/dist/api.d.ts CHANGED
@@ -15035,11 +15035,13 @@ export declare const CRMApiAxiosParamCreator: (configuration?: Configuration) =>
15035
15035
  */
15036
15036
  postCreateCrmNote: (id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15037
15037
  /**
15038
- * Search for contacts by phone number
15038
+ * Journal a phone call
15039
+ * @param {number} id Contact ID
15040
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
15039
15041
  * @param {*} [options] Override http request option.
15040
15042
  * @throws {RequiredError}
15041
15043
  */
15042
- postSearchByPhone: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15044
+ postJournalCall: (id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15043
15045
  };
15044
15046
  /**
15045
15047
  * CRMApi - functional programming interface
@@ -15069,11 +15071,13 @@ export declare const CRMApiFp: (configuration?: Configuration) => {
15069
15071
  */
15070
15072
  postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivityDTO>>;
15071
15073
  /**
15072
- * Search for contacts by phone number
15074
+ * Journal a phone call
15075
+ * @param {number} id Contact ID
15076
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
15073
15077
  * @param {*} [options] Override http request option.
15074
15078
  * @throws {RequiredError}
15075
15079
  */
15076
- postSearchByPhone(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmContactDTO>>;
15080
+ postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivityDTO>>;
15077
15081
  };
15078
15082
  /**
15079
15083
  * CRMApi - factory interface
@@ -15103,11 +15107,13 @@ export declare const CRMApiFactory: (configuration?: Configuration, basePath?: s
15103
15107
  */
15104
15108
  postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO>;
15105
15109
  /**
15106
- * Search for contacts by phone number
15110
+ * Journal a phone call
15111
+ * @param {number} id Contact ID
15112
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
15107
15113
  * @param {*} [options] Override http request option.
15108
15114
  * @throws {RequiredError}
15109
15115
  */
15110
- postSearchByPhone(options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO>;
15116
+ postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivityDTO>;
15111
15117
  };
15112
15118
  /**
15113
15119
  * CRMApi - object-oriented interface
@@ -15137,11 +15143,13 @@ export declare class CRMApi extends BaseAPI {
15137
15143
  */
15138
15144
  postCreateCrmNote(id: number, createCrmNoteBody?: CreateCrmNoteBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmActivityDTO, any, {}>>;
15139
15145
  /**
15140
- * Search for contacts by phone number
15146
+ * Journal a phone call
15147
+ * @param {number} id Contact ID
15148
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
15141
15149
  * @param {*} [options] Override http request option.
15142
15150
  * @throws {RequiredError}
15143
15151
  */
15144
- postSearchByPhone(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmContactDTO, any, {}>>;
15152
+ postJournalCall(id: number, callJournalRequestModel?: CallJournalRequestModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmActivityDTO, any, {}>>;
15145
15153
  }
15146
15154
  export declare const GetGetCrmActivitiesTypeEnum: {
15147
15155
  readonly Alert: "alert";
package/dist/api.js CHANGED
@@ -11149,20 +11149,25 @@ var CRMApiAxiosParamCreator = function (configuration) {
11149
11149
  });
11150
11150
  },
11151
11151
  /**
11152
- * Search for contacts by phone number
11152
+ * Journal a phone call
11153
+ * @param {number} id Contact ID
11154
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
11153
11155
  * @param {*} [options] Override http request option.
11154
11156
  * @throws {RequiredError}
11155
11157
  */
11156
- postSearchByPhone: function () {
11158
+ postJournalCall: function (id_1, callJournalRequestModel_1) {
11157
11159
  var args_1 = [];
11158
- for (var _i = 0; _i < arguments.length; _i++) {
11159
- args_1[_i] = arguments[_i];
11160
+ for (var _i = 2; _i < arguments.length; _i++) {
11161
+ args_1[_i - 2] = arguments[_i];
11160
11162
  }
11161
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
11163
+ return __awaiter(_this, __spreadArray([id_1, callJournalRequestModel_1], args_1, true), void 0, function (id, callJournalRequestModel, options) {
11162
11164
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11163
11165
  if (options === void 0) { options = {}; }
11164
11166
  return __generator(this, function (_a) {
11165
- localVarPath = "/crm/contact/search";
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)));
11166
11171
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11167
11172
  if (configuration) {
11168
11173
  baseOptions = configuration.baseOptions;
@@ -11170,10 +11175,12 @@ var CRMApiAxiosParamCreator = function (configuration) {
11170
11175
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
11171
11176
  localVarHeaderParameter = {};
11172
11177
  localVarQueryParameter = {};
11178
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11173
11179
  localVarHeaderParameter['Accept'] = 'application/json';
11174
11180
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11175
11181
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11176
11182
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11183
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(callJournalRequestModel, localVarRequestOptions, configuration);
11177
11184
  return [2 /*return*/, {
11178
11185
  url: (0, common_1.toPathString)(localVarUrlObj),
11179
11186
  options: localVarRequestOptions,
@@ -11259,21 +11266,23 @@ var CRMApiFp = function (configuration) {
11259
11266
  });
11260
11267
  },
11261
11268
  /**
11262
- * Search for contacts by phone number
11269
+ * Journal a phone call
11270
+ * @param {number} id Contact ID
11271
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
11263
11272
  * @param {*} [options] Override http request option.
11264
11273
  * @throws {RequiredError}
11265
11274
  */
11266
- postSearchByPhone: function (options) {
11275
+ postJournalCall: function (id, callJournalRequestModel, options) {
11267
11276
  return __awaiter(this, void 0, void 0, function () {
11268
11277
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11269
11278
  var _a, _b, _c;
11270
11279
  return __generator(this, function (_d) {
11271
11280
  switch (_d.label) {
11272
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSearchByPhone(options)];
11281
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postJournalCall(id, callJournalRequestModel, options)];
11273
11282
  case 1:
11274
11283
  localVarAxiosArgs = _d.sent();
11275
11284
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11276
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CRMApi.postSearchByPhone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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;
11277
11286
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11278
11287
  }
11279
11288
  });
@@ -11318,12 +11327,14 @@ var CRMApiFactory = function (configuration, basePath, axios) {
11318
11327
  return localVarFp.postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(axios, basePath); });
11319
11328
  },
11320
11329
  /**
11321
- * Search for contacts by phone number
11330
+ * Journal a phone call
11331
+ * @param {number} id Contact ID
11332
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
11322
11333
  * @param {*} [options] Override http request option.
11323
11334
  * @throws {RequiredError}
11324
11335
  */
11325
- postSearchByPhone: function (options) {
11326
- return localVarFp.postSearchByPhone(options).then(function (request) { return request(axios, basePath); });
11336
+ postJournalCall: function (id, callJournalRequestModel, options) {
11337
+ return localVarFp.postJournalCall(id, callJournalRequestModel, options).then(function (request) { return request(axios, basePath); });
11327
11338
  },
11328
11339
  };
11329
11340
  };
@@ -11369,13 +11380,15 @@ var CRMApi = /** @class */ (function (_super) {
11369
11380
  return (0, exports.CRMApiFp)(this.configuration).postCreateCrmNote(id, createCrmNoteBody, options).then(function (request) { return request(_this.axios, _this.basePath); });
11370
11381
  };
11371
11382
  /**
11372
- * Search for contacts by phone number
11383
+ * Journal a phone call
11384
+ * @param {number} id Contact ID
11385
+ * @param {CallJournalRequestModel} [callJournalRequestModel] Journal Call Request
11373
11386
  * @param {*} [options] Override http request option.
11374
11387
  * @throws {RequiredError}
11375
11388
  */
11376
- CRMApi.prototype.postSearchByPhone = function (options) {
11389
+ CRMApi.prototype.postJournalCall = function (id, callJournalRequestModel, options) {
11377
11390
  var _this = this;
11378
- return (0, exports.CRMApiFp)(this.configuration).postSearchByPhone(options).then(function (request) { return request(_this.axios, _this.basePath); });
11391
+ return (0, exports.CRMApiFp)(this.configuration).postJournalCall(id, callJournalRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
11379
11392
  };
11380
11393
  return CRMApi;
11381
11394
  }(base_1.BaseAPI));
package/docs/CRMApi.md CHANGED
@@ -7,7 +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
- |[**postSearchByPhone**](#postsearchbyphone) | **POST** /crm/contact/search | |
10
+ |[**postJournalCall**](#postjournalcall) | **POST** /crm/contact/{id}/journal | |
11
11
 
12
12
  # **getGetCrmActivities**
13
13
  > CrmActivitiesResponseDTO getGetCrmActivities()
@@ -174,32 +174,43 @@ No authorization required
174
174
 
175
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)
176
176
 
177
- # **postSearchByPhone**
178
- > CrmContactDTO postSearchByPhone()
177
+ # **postJournalCall**
178
+ > CrmActivityDTO postJournalCall()
179
179
 
180
- Search for contacts by phone number
180
+ Journal a phone call
181
181
 
182
182
  ### Example
183
183
 
184
184
  ```typescript
185
185
  import {
186
186
  CRMApi,
187
- Configuration
187
+ Configuration,
188
+ CallJournalRequestModel
188
189
  } from 'yellowgrid-api-ts';
189
190
 
190
191
  const configuration = new Configuration();
191
192
  const apiInstance = new CRMApi(configuration);
192
193
 
193
- const { status, data } = await apiInstance.postSearchByPhone();
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
+ );
194
201
  ```
195
202
 
196
203
  ### Parameters
197
- This endpoint does not have any parameters.
204
+
205
+ |Name | Type | Description | Notes|
206
+ |------------- | ------------- | ------------- | -------------|
207
+ | **callJournalRequestModel** | **CallJournalRequestModel**| Journal Call Request | |
208
+ | **id** | [**number**] | Contact ID | defaults to undefined|
198
209
 
199
210
 
200
211
  ### Return type
201
212
 
202
- **CrmContactDTO**
213
+ **CrmActivityDTO**
203
214
 
204
215
  ### Authorization
205
216
 
@@ -207,7 +218,7 @@ No authorization required
207
218
 
208
219
  ### HTTP request headers
209
220
 
210
- - **Content-Type**: Not defined
221
+ - **Content-Type**: application/json
211
222
  - **Accept**: application/json
212
223
 
213
224
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.298",
3
+ "version": "3.2.300",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {