yellowgrid-api-ts 3.2.346 → 3.2.347

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/api.ts CHANGED
@@ -20423,10 +20423,13 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
20423
20423
  },
20424
20424
  /**
20425
20425
  * Search for contacts by phone number
20426
+ * @param {string} phone Phone Number
20426
20427
  * @param {*} [options] Override http request option.
20427
20428
  * @throws {RequiredError}
20428
20429
  */
20429
- getSearchByPhone: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20430
+ getSearchByPhone: async (phone: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20431
+ // verify required parameter 'phone' is not null or undefined
20432
+ assertParamExists('getSearchByPhone', 'phone', phone)
20430
20433
  const localVarPath = `/crm/contact/search`;
20431
20434
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20432
20435
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -20439,6 +20442,10 @@ export const CRMApiAxiosParamCreator = function (configuration?: Configuration)
20439
20442
  const localVarHeaderParameter = {} as any;
20440
20443
  const localVarQueryParameter = {} as any;
20441
20444
 
20445
+ if (phone !== undefined) {
20446
+ localVarQueryParameter['phone'] = phone;
20447
+ }
20448
+
20442
20449
  localVarHeaderParameter['Accept'] = 'application/json';
20443
20450
 
20444
20451
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -20547,11 +20554,12 @@ export const CRMApiFp = function(configuration?: Configuration) {
20547
20554
  },
20548
20555
  /**
20549
20556
  * Search for contacts by phone number
20557
+ * @param {string} phone Phone Number
20550
20558
  * @param {*} [options] Override http request option.
20551
20559
  * @throws {RequiredError}
20552
20560
  */
20553
- async getSearchByPhone(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmContactDTO>> {
20554
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchByPhone(options);
20561
+ async getSearchByPhone(phone: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmContactDTO>> {
20562
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchByPhone(phone, options);
20555
20563
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20556
20564
  const localVarOperationServerBasePath = operationServerMap['CRMApi.getSearchByPhone']?.[localVarOperationServerIndex]?.url;
20557
20565
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20604,11 +20612,12 @@ export const CRMApiFactory = function (configuration?: Configuration, basePath?:
20604
20612
  },
20605
20613
  /**
20606
20614
  * Search for contacts by phone number
20615
+ * @param {string} phone Phone Number
20607
20616
  * @param {*} [options] Override http request option.
20608
20617
  * @throws {RequiredError}
20609
20618
  */
20610
- getSearchByPhone(options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO> {
20611
- return localVarFp.getSearchByPhone(options).then((request) => request(axios, basePath));
20619
+ getSearchByPhone(phone: string, options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO> {
20620
+ return localVarFp.getSearchByPhone(phone, options).then((request) => request(axios, basePath));
20612
20621
  },
20613
20622
  /**
20614
20623
  * Create CRM Note
@@ -20651,11 +20660,12 @@ export class CRMApi extends BaseAPI {
20651
20660
 
20652
20661
  /**
20653
20662
  * Search for contacts by phone number
20663
+ * @param {string} phone Phone Number
20654
20664
  * @param {*} [options] Override http request option.
20655
20665
  * @throws {RequiredError}
20656
20666
  */
20657
- public getSearchByPhone(options?: RawAxiosRequestConfig) {
20658
- return CRMApiFp(this.configuration).getSearchByPhone(options).then((request) => request(this.axios, this.basePath));
20667
+ public getSearchByPhone(phone: string, options?: RawAxiosRequestConfig) {
20668
+ return CRMApiFp(this.configuration).getSearchByPhone(phone, options).then((request) => request(this.axios, this.basePath));
20659
20669
  }
20660
20670
 
20661
20671
  /**
package/dist/api.d.ts CHANGED
@@ -15337,10 +15337,11 @@ export declare const CRMApiAxiosParamCreator: (configuration?: Configuration) =>
15337
15337
  getGetCrmActivities: (id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15338
15338
  /**
15339
15339
  * Search for contacts by phone number
15340
+ * @param {string} phone Phone Number
15340
15341
  * @param {*} [options] Override http request option.
15341
15342
  * @throws {RequiredError}
15342
15343
  */
15343
- getSearchByPhone: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15344
+ getSearchByPhone: (phone: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15344
15345
  /**
15345
15346
  * Create CRM Note
15346
15347
  * @param {number} id Account ID
@@ -15373,10 +15374,11 @@ export declare const CRMApiFp: (configuration?: Configuration) => {
15373
15374
  getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmActivitiesResponseDTO>>;
15374
15375
  /**
15375
15376
  * Search for contacts by phone number
15377
+ * @param {string} phone Phone Number
15376
15378
  * @param {*} [options] Override http request option.
15377
15379
  * @throws {RequiredError}
15378
15380
  */
15379
- getSearchByPhone(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmContactDTO>>;
15381
+ getSearchByPhone(phone: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmContactDTO>>;
15380
15382
  /**
15381
15383
  * Create CRM Note
15382
15384
  * @param {number} id Account ID
@@ -15409,10 +15411,11 @@ export declare const CRMApiFactory: (configuration?: Configuration, basePath?: s
15409
15411
  getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig): AxiosPromise<CrmActivitiesResponseDTO>;
15410
15412
  /**
15411
15413
  * Search for contacts by phone number
15414
+ * @param {string} phone Phone Number
15412
15415
  * @param {*} [options] Override http request option.
15413
15416
  * @throws {RequiredError}
15414
15417
  */
15415
- getSearchByPhone(options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO>;
15418
+ getSearchByPhone(phone: string, options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO>;
15416
15419
  /**
15417
15420
  * Create CRM Note
15418
15421
  * @param {number} id Account ID
@@ -15445,10 +15448,11 @@ export declare class CRMApi extends BaseAPI {
15445
15448
  getGetCrmActivities(id: number, type?: GetGetCrmActivitiesTypeEnum, userId?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmActivitiesResponseDTO, any, {}, any>>;
15446
15449
  /**
15447
15450
  * Search for contacts by phone number
15451
+ * @param {string} phone Phone Number
15448
15452
  * @param {*} [options] Override http request option.
15449
15453
  * @throws {RequiredError}
15450
15454
  */
15451
- getSearchByPhone(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmContactDTO, any, {}, any>>;
15455
+ getSearchByPhone(phone: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CrmContactDTO, any, {}, any>>;
15452
15456
  /**
15453
15457
  * Create CRM Note
15454
15458
  * @param {number} id Account ID
package/dist/api.js CHANGED
@@ -11316,18 +11316,21 @@ var CRMApiAxiosParamCreator = function (configuration) {
11316
11316
  },
11317
11317
  /**
11318
11318
  * Search for contacts by phone number
11319
+ * @param {string} phone Phone Number
11319
11320
  * @param {*} [options] Override http request option.
11320
11321
  * @throws {RequiredError}
11321
11322
  */
11322
- getSearchByPhone: function () {
11323
+ getSearchByPhone: function (phone_1) {
11323
11324
  var args_1 = [];
11324
- for (var _i = 0; _i < arguments.length; _i++) {
11325
- args_1[_i] = arguments[_i];
11325
+ for (var _i = 1; _i < arguments.length; _i++) {
11326
+ args_1[_i - 1] = arguments[_i];
11326
11327
  }
11327
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
11328
+ return __awaiter(_this, __spreadArray([phone_1], args_1, true), void 0, function (phone, options) {
11328
11329
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11329
11330
  if (options === void 0) { options = {}; }
11330
11331
  return __generator(this, function (_a) {
11332
+ // verify required parameter 'phone' is not null or undefined
11333
+ (0, common_1.assertParamExists)('getSearchByPhone', 'phone', phone);
11331
11334
  localVarPath = "/crm/contact/search";
11332
11335
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11333
11336
  if (configuration) {
@@ -11336,6 +11339,9 @@ var CRMApiAxiosParamCreator = function (configuration) {
11336
11339
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
11337
11340
  localVarHeaderParameter = {};
11338
11341
  localVarQueryParameter = {};
11342
+ if (phone !== undefined) {
11343
+ localVarQueryParameter['phone'] = phone;
11344
+ }
11339
11345
  localVarHeaderParameter['Accept'] = 'application/json';
11340
11346
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11341
11347
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -11462,16 +11468,17 @@ var CRMApiFp = function (configuration) {
11462
11468
  },
11463
11469
  /**
11464
11470
  * Search for contacts by phone number
11471
+ * @param {string} phone Phone Number
11465
11472
  * @param {*} [options] Override http request option.
11466
11473
  * @throws {RequiredError}
11467
11474
  */
11468
- getSearchByPhone: function (options) {
11475
+ getSearchByPhone: function (phone, options) {
11469
11476
  return __awaiter(this, void 0, void 0, function () {
11470
11477
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11471
11478
  var _a, _b, _c;
11472
11479
  return __generator(this, function (_d) {
11473
11480
  switch (_d.label) {
11474
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchByPhone(options)];
11481
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchByPhone(phone, options)];
11475
11482
  case 1:
11476
11483
  localVarAxiosArgs = _d.sent();
11477
11484
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -11549,11 +11556,12 @@ var CRMApiFactory = function (configuration, basePath, axios) {
11549
11556
  },
11550
11557
  /**
11551
11558
  * Search for contacts by phone number
11559
+ * @param {string} phone Phone Number
11552
11560
  * @param {*} [options] Override http request option.
11553
11561
  * @throws {RequiredError}
11554
11562
  */
11555
- getSearchByPhone: function (options) {
11556
- return localVarFp.getSearchByPhone(options).then(function (request) { return request(axios, basePath); });
11563
+ getSearchByPhone: function (phone, options) {
11564
+ return localVarFp.getSearchByPhone(phone, options).then(function (request) { return request(axios, basePath); });
11557
11565
  },
11558
11566
  /**
11559
11567
  * Create CRM Note
@@ -11600,12 +11608,13 @@ var CRMApi = /** @class */ (function (_super) {
11600
11608
  };
11601
11609
  /**
11602
11610
  * Search for contacts by phone number
11611
+ * @param {string} phone Phone Number
11603
11612
  * @param {*} [options] Override http request option.
11604
11613
  * @throws {RequiredError}
11605
11614
  */
11606
- CRMApi.prototype.getSearchByPhone = function (options) {
11615
+ CRMApi.prototype.getSearchByPhone = function (phone, options) {
11607
11616
  var _this = this;
11608
- return (0, exports.CRMApiFp)(this.configuration).getSearchByPhone(options).then(function (request) { return request(_this.axios, _this.basePath); });
11617
+ return (0, exports.CRMApiFp)(this.configuration).getSearchByPhone(phone, options).then(function (request) { return request(_this.axios, _this.basePath); });
11609
11618
  };
11610
11619
  /**
11611
11620
  * Create CRM Note
package/docs/CRMApi.md CHANGED
@@ -85,11 +85,18 @@ import {
85
85
  const configuration = new Configuration();
86
86
  const apiInstance = new CRMApi(configuration);
87
87
 
88
- const { status, data } = await apiInstance.getSearchByPhone();
88
+ let phone: string; //Phone Number (default to undefined)
89
+
90
+ const { status, data } = await apiInstance.getSearchByPhone(
91
+ phone
92
+ );
89
93
  ```
90
94
 
91
95
  ### Parameters
92
- This endpoint does not have any parameters.
96
+
97
+ |Name | Type | Description | Notes|
98
+ |------------- | ------------- | ------------- | -------------|
99
+ | **phone** | [**string**] | Phone Number | defaults to undefined|
93
100
 
94
101
 
95
102
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.346",
3
+ "version": "3.2.347",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {