@randock/nameshift-api-client 0.0.489 → 0.0.490

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.489
1
+ ## @randock/nameshift-api-client@0.0.490
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.489 --save
39
+ npm install @randock/nameshift-api-client@0.0.490 --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
- 6bc0a0755481a1ae596ce013f11a3614ef494885ad3e2357f6a73ad224aed19d1fc514ebfb290d4fabc4b18f5edfc99d
47
+ 380daf7fa7dd0f79d64bd6257b2cfb85160137d343c7cd9bbfbb344522d0f87d737451e68182e97ca33c5faf7bceaf33
@@ -310,6 +310,9 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
310
310
  export interface AdminApiPurgeDomainCdnCacheRequest {
311
311
  domainId: string;
312
312
  }
313
+ export interface AdminApiRefreshAdminLeadEnrichmentRequest {
314
+ leadId: string;
315
+ }
313
316
  export interface AdminApiRejectAccountAliasRequest {
314
317
  accountId: string;
315
318
  }
@@ -1007,6 +1010,16 @@ export declare class AdminApi extends runtime.BaseAPI {
1007
1010
  * Purge domain CDN cache
1008
1011
  */
1009
1012
  purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1013
+ /**
1014
+ * Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
1015
+ * Request the buyer enrichment of a lead again
1016
+ */
1017
+ refreshAdminLeadEnrichmentRaw(requestParameters: AdminApiRefreshAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1018
+ /**
1019
+ * Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
1020
+ * Request the buyer enrichment of a lead again
1021
+ */
1022
+ refreshAdminLeadEnrichment(requestParameters: AdminApiRefreshAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1010
1023
  /**
1011
1024
  * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
1012
1025
  * Reject account alias
@@ -3807,6 +3807,59 @@ var AdminApi = /** @class */ (function (_super) {
3807
3807
  });
3808
3808
  });
3809
3809
  };
3810
+ /**
3811
+ * Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
3812
+ * Request the buyer enrichment of a lead again
3813
+ */
3814
+ AdminApi.prototype.refreshAdminLeadEnrichmentRaw = function (requestParameters, initOverrides) {
3815
+ return __awaiter(this, void 0, void 0, function () {
3816
+ var queryParameters, headerParameters, token, tokenString, response;
3817
+ return __generator(this, function (_a) {
3818
+ switch (_a.label) {
3819
+ case 0:
3820
+ if (requestParameters['leadId'] == null) {
3821
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling refreshAdminLeadEnrichment().');
3822
+ }
3823
+ queryParameters = {};
3824
+ headerParameters = {};
3825
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3826
+ token = this.configuration.accessToken;
3827
+ return [4 /*yield*/, token("bearer", [])];
3828
+ case 1:
3829
+ tokenString = _a.sent();
3830
+ if (tokenString) {
3831
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3832
+ }
3833
+ _a.label = 2;
3834
+ case 2: return [4 /*yield*/, this.request({
3835
+ path: "/admin/leads/{leadId}/enrichment/refresh".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
3836
+ method: 'POST',
3837
+ headers: headerParameters,
3838
+ query: queryParameters,
3839
+ }, initOverrides)];
3840
+ case 3:
3841
+ response = _a.sent();
3842
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
3843
+ }
3844
+ });
3845
+ });
3846
+ };
3847
+ /**
3848
+ * Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
3849
+ * Request the buyer enrichment of a lead again
3850
+ */
3851
+ AdminApi.prototype.refreshAdminLeadEnrichment = function (requestParameters, initOverrides) {
3852
+ return __awaiter(this, void 0, void 0, function () {
3853
+ return __generator(this, function (_a) {
3854
+ switch (_a.label) {
3855
+ case 0: return [4 /*yield*/, this.refreshAdminLeadEnrichmentRaw(requestParameters, initOverrides)];
3856
+ case 1:
3857
+ _a.sent();
3858
+ return [2 /*return*/];
3859
+ }
3860
+ });
3861
+ });
3862
+ };
3810
3863
  /**
3811
3864
  * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
3812
3865
  * Reject account alias
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.489",
3
+ "version": "0.0.490",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -548,6 +548,10 @@ export interface AdminApiPurgeDomainCdnCacheRequest {
548
548
  domainId: string;
549
549
  }
550
550
 
551
+ export interface AdminApiRefreshAdminLeadEnrichmentRequest {
552
+ leadId: string;
553
+ }
554
+
551
555
  export interface AdminApiRejectAccountAliasRequest {
552
556
  accountId: string;
553
557
  }
@@ -3691,6 +3695,48 @@ export class AdminApi extends runtime.BaseAPI {
3691
3695
  await this.purgeDomainCdnCacheRaw(requestParameters, initOverrides);
3692
3696
  }
3693
3697
 
3698
+ /**
3699
+ * Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
3700
+ * Request the buyer enrichment of a lead again
3701
+ */
3702
+ async refreshAdminLeadEnrichmentRaw(requestParameters: AdminApiRefreshAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3703
+ if (requestParameters['leadId'] == null) {
3704
+ throw new runtime.RequiredError(
3705
+ 'leadId',
3706
+ 'Required parameter "leadId" was null or undefined when calling refreshAdminLeadEnrichment().'
3707
+ );
3708
+ }
3709
+
3710
+ const queryParameters: any = {};
3711
+
3712
+ const headerParameters: runtime.HTTPHeaders = {};
3713
+
3714
+ if (this.configuration && this.configuration.accessToken) {
3715
+ const token = this.configuration.accessToken;
3716
+ const tokenString = await token("bearer", []);
3717
+
3718
+ if (tokenString) {
3719
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3720
+ }
3721
+ }
3722
+ const response = await this.request({
3723
+ path: `/admin/leads/{leadId}/enrichment/refresh`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
3724
+ method: 'POST',
3725
+ headers: headerParameters,
3726
+ query: queryParameters,
3727
+ }, initOverrides);
3728
+
3729
+ return new runtime.VoidApiResponse(response);
3730
+ }
3731
+
3732
+ /**
3733
+ * Sends the buyer inquiry of a lead to the enrichment service again, for any account. The service ignores it while what it holds for the lead is still fresh or in progress. Requires admin bearer authentication.
3734
+ * Request the buyer enrichment of a lead again
3735
+ */
3736
+ async refreshAdminLeadEnrichment(requestParameters: AdminApiRefreshAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3737
+ await this.refreshAdminLeadEnrichmentRaw(requestParameters, initOverrides);
3738
+ }
3739
+
3694
3740
  /**
3695
3741
  * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
3696
3742
  * Reject account alias