@randock/nameshift-api-client 0.0.510 → 0.0.511

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
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.510
1
+ ## @randock/nameshift-api-client@0.0.511
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.510 --save
39
+ npm install @randock/nameshift-api-client@0.0.511 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 9fc9492f2ee12efed7ce9b25ea506b1849a810402b767f71961ecc39f68861a3ade5b8b36b8a5e70294520e48e1ace9a
47
+ 6ba965a8d2990598f8d6f0f3dddd6d46f41f5574cae209e4543897d25741b42c3aeb3d1ff92936d65a6048ae3597cb6a
@@ -108,12 +108,12 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
108
108
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
109
109
  * Update a lead
110
110
  */
111
- updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
111
+ updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
112
112
  /**
113
113
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
114
114
  * Update a lead
115
115
  */
116
- updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId | null | undefined>;
116
+ updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
117
117
  /**
118
118
  * Verifies a lead using the one-time code sent to the buyer email. No authentication required.
119
119
  * Verify a lead
@@ -390,7 +390,7 @@ var LeadsPublicApi = /** @class */ (function (_super) {
390
390
  }, initOverrides)];
391
391
  case 1:
392
392
  response = _a.sent();
393
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
393
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
394
394
  }
395
395
  });
396
396
  });
@@ -401,23 +401,12 @@ var LeadsPublicApi = /** @class */ (function (_super) {
401
401
  */
402
402
  LeadsPublicApi.prototype.updateLead = function (requestParameters, initOverrides) {
403
403
  return __awaiter(this, void 0, void 0, function () {
404
- var response, _a;
405
- return __generator(this, function (_b) {
406
- switch (_b.label) {
404
+ return __generator(this, function (_a) {
405
+ switch (_a.label) {
407
406
  case 0: return [4 /*yield*/, this.updateLeadRaw(requestParameters, initOverrides)];
408
407
  case 1:
409
- response = _b.sent();
410
- _a = response.raw.status;
411
- switch (_a) {
412
- case 202: return [3 /*break*/, 2];
413
- case 204: return [3 /*break*/, 4];
414
- }
415
- return [3 /*break*/, 5];
416
- case 2: return [4 /*yield*/, response.value()];
417
- case 3: return [2 /*return*/, _b.sent()];
418
- case 4: return [2 /*return*/, null];
419
- case 5: return [4 /*yield*/, response.value()];
420
- case 6: return [2 /*return*/, _b.sent()];
408
+ _a.sent();
409
+ return [2 /*return*/];
421
410
  }
422
411
  });
423
412
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.510",
3
+ "version": "0.0.511",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -327,7 +327,7 @@ export class LeadsPublicApi extends runtime.BaseAPI {
327
327
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
328
328
  * Update a lead
329
329
  */
330
- async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
330
+ async updateLeadRaw(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
331
331
  if (requestParameters['leadId'] == null) {
332
332
  throw new runtime.RequiredError(
333
333
  'leadId',
@@ -356,23 +356,15 @@ export class LeadsPublicApi extends runtime.BaseAPI {
356
356
  body: UpdateLeadInputToJSON(requestParameters['updateLeadInput']),
357
357
  }, initOverrides);
358
358
 
359
- return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
359
+ return new runtime.VoidApiResponse(response);
360
360
  }
361
361
 
362
362
  /**
363
363
  * Updates buyer contact details on an existing lead while it is still in an updatable status. No authentication required.
364
364
  * Update a lead
365
365
  */
366
- async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId | null | undefined > {
367
- const response = await this.updateLeadRaw(requestParameters, initOverrides);
368
- switch (response.raw.status) {
369
- case 202:
370
- return await response.value();
371
- case 204:
372
- return null;
373
- default:
374
- return await response.value();
375
- }
366
+ async updateLead(requestParameters: LeadsPublicApiUpdateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
367
+ await this.updateLeadRaw(requestParameters, initOverrides);
376
368
  }
377
369
 
378
370
  /**