@randock/nameshift-api-client 0.0.257 → 0.0.258
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 +3 -3
- package/dist/apis/LeadsApi.d.ts +22 -0
- package/dist/apis/LeadsApi.js +102 -0
- package/dist/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.d.ts +6 -6
- package/dist/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.js +4 -4
- package/dist/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.d.ts +6 -0
- package/dist/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.js +2 -0
- package/dist/models/LeadPriceNegotiatorAiAgentConfigurationDto.d.ts +6 -0
- package/dist/models/LeadPriceNegotiatorAiAgentConfigurationDto.js +4 -0
- package/dist/models/LeadPriceNegotiatorAiAgentConfigurationInput.d.ts +6 -0
- package/dist/models/LeadPriceNegotiatorAiAgentConfigurationInput.js +2 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +88 -0
- package/src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts +9 -9
- package/src/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.ts +8 -0
- package/src/models/LeadPriceNegotiatorAiAgentConfigurationDto.ts +9 -0
- package/src/models/LeadPriceNegotiatorAiAgentConfigurationInput.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.258
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.258 --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
|
-
|
|
47
|
+
5ffb3a09c37a47f326b0ab9001ee48627bea091bf3f79b4fd69e794e2e900263649e716641a7e3ff5cd26dbe020d358c
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -43,10 +43,16 @@ export interface LeadsApiListRequest {
|
|
|
43
43
|
limit?: number;
|
|
44
44
|
sortBy?: Array<string>;
|
|
45
45
|
}
|
|
46
|
+
export interface LeadsApiPauseLeadPriceNegotiatorAgentRequest {
|
|
47
|
+
leadId: string;
|
|
48
|
+
}
|
|
46
49
|
export interface LeadsApiPutOfferRequest {
|
|
47
50
|
leadId: string;
|
|
48
51
|
putLeadOfferInput: PutLeadOfferInput;
|
|
49
52
|
}
|
|
53
|
+
export interface LeadsApiResumeLeadPriceNegotiatorAgentRequest {
|
|
54
|
+
leadId: string;
|
|
55
|
+
}
|
|
50
56
|
export interface LeadsApiUnarchiveLeadRequest {
|
|
51
57
|
leadId: string;
|
|
52
58
|
}
|
|
@@ -126,6 +132,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
126
132
|
*
|
|
127
133
|
*/
|
|
128
134
|
list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
pauseLeadPriceNegotiatorAgentRaw(requestParameters: LeadsApiPauseLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
pauseLeadPriceNegotiatorAgent(requestParameters: LeadsApiPauseLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
129
143
|
/**
|
|
130
144
|
*
|
|
131
145
|
*/
|
|
@@ -134,6 +148,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
134
148
|
*
|
|
135
149
|
*/
|
|
136
150
|
putOffer(requestParameters: LeadsApiPutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
resumeLeadPriceNegotiatorAgentRaw(requestParameters: LeadsApiResumeLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
*/
|
|
158
|
+
resumeLeadPriceNegotiatorAgent(requestParameters: LeadsApiResumeLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
137
159
|
/**
|
|
138
160
|
*
|
|
139
161
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -567,6 +567,57 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
567
567
|
});
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
*/
|
|
573
|
+
LeadsApi.prototype.pauseLeadPriceNegotiatorAgentRaw = function (requestParameters, initOverrides) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
575
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
576
|
+
return __generator(this, function (_a) {
|
|
577
|
+
switch (_a.label) {
|
|
578
|
+
case 0:
|
|
579
|
+
if (requestParameters['leadId'] == null) {
|
|
580
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling pauseLeadPriceNegotiatorAgent().');
|
|
581
|
+
}
|
|
582
|
+
queryParameters = {};
|
|
583
|
+
headerParameters = {};
|
|
584
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
585
|
+
token = this.configuration.accessToken;
|
|
586
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
587
|
+
case 1:
|
|
588
|
+
tokenString = _a.sent();
|
|
589
|
+
if (tokenString) {
|
|
590
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
591
|
+
}
|
|
592
|
+
_a.label = 2;
|
|
593
|
+
case 2: return [4 /*yield*/, this.request({
|
|
594
|
+
path: "/private/leads/{leadId}/price-negotiator-agent/pause".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
595
|
+
method: 'POST',
|
|
596
|
+
headers: headerParameters,
|
|
597
|
+
query: queryParameters,
|
|
598
|
+
}, initOverrides)];
|
|
599
|
+
case 3:
|
|
600
|
+
response = _a.sent();
|
|
601
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
};
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
*/
|
|
609
|
+
LeadsApi.prototype.pauseLeadPriceNegotiatorAgent = function (requestParameters, initOverrides) {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
611
|
+
return __generator(this, function (_a) {
|
|
612
|
+
switch (_a.label) {
|
|
613
|
+
case 0: return [4 /*yield*/, this.pauseLeadPriceNegotiatorAgentRaw(requestParameters, initOverrides)];
|
|
614
|
+
case 1:
|
|
615
|
+
_a.sent();
|
|
616
|
+
return [2 /*return*/];
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
});
|
|
620
|
+
};
|
|
570
621
|
/**
|
|
571
622
|
*
|
|
572
623
|
*/
|
|
@@ -623,6 +674,57 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
623
674
|
});
|
|
624
675
|
});
|
|
625
676
|
};
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
*/
|
|
680
|
+
LeadsApi.prototype.resumeLeadPriceNegotiatorAgentRaw = function (requestParameters, initOverrides) {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
682
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
683
|
+
return __generator(this, function (_a) {
|
|
684
|
+
switch (_a.label) {
|
|
685
|
+
case 0:
|
|
686
|
+
if (requestParameters['leadId'] == null) {
|
|
687
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling resumeLeadPriceNegotiatorAgent().');
|
|
688
|
+
}
|
|
689
|
+
queryParameters = {};
|
|
690
|
+
headerParameters = {};
|
|
691
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
692
|
+
token = this.configuration.accessToken;
|
|
693
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
694
|
+
case 1:
|
|
695
|
+
tokenString = _a.sent();
|
|
696
|
+
if (tokenString) {
|
|
697
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
698
|
+
}
|
|
699
|
+
_a.label = 2;
|
|
700
|
+
case 2: return [4 /*yield*/, this.request({
|
|
701
|
+
path: "/private/leads/{leadId}/price-negotiator-agent/resume".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
702
|
+
method: 'POST',
|
|
703
|
+
headers: headerParameters,
|
|
704
|
+
query: queryParameters,
|
|
705
|
+
}, initOverrides)];
|
|
706
|
+
case 3:
|
|
707
|
+
response = _a.sent();
|
|
708
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
*/
|
|
716
|
+
LeadsApi.prototype.resumeLeadPriceNegotiatorAgent = function (requestParameters, initOverrides) {
|
|
717
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
718
|
+
return __generator(this, function (_a) {
|
|
719
|
+
switch (_a.label) {
|
|
720
|
+
case 0: return [4 /*yield*/, this.resumeLeadPriceNegotiatorAgentRaw(requestParameters, initOverrides)];
|
|
721
|
+
case 1:
|
|
722
|
+
_a.sent();
|
|
723
|
+
return [2 /*return*/];
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
};
|
|
626
728
|
/**
|
|
627
729
|
*
|
|
628
730
|
*/
|
|
@@ -16,12 +16,6 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
16
16
|
* @interface DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
17
17
|
*/
|
|
18
18
|
export interface DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {MoneyDto}
|
|
22
|
-
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
23
|
-
*/
|
|
24
|
-
minOffer: MoneyDto | null;
|
|
25
19
|
/**
|
|
26
20
|
*
|
|
27
21
|
* @type {boolean}
|
|
@@ -34,6 +28,12 @@ export interface DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
|
34
28
|
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
35
29
|
*/
|
|
36
30
|
salesImportance: DomainLeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {MoneyDto}
|
|
34
|
+
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
35
|
+
*/
|
|
36
|
+
minOffer: MoneyDto | null;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* @export
|
|
@@ -32,12 +32,12 @@ exports.DomainLeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum = {
|
|
|
32
32
|
* Check if a given object implements the DomainLeadPriceNegotiatorAiAgentConfigurationDto interface.
|
|
33
33
|
*/
|
|
34
34
|
function instanceOfDomainLeadPriceNegotiatorAiAgentConfigurationDto(value) {
|
|
35
|
-
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
36
|
-
return false;
|
|
37
35
|
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
38
36
|
return false;
|
|
39
37
|
if (!('salesImportance' in value) || value['salesImportance'] === undefined)
|
|
40
38
|
return false;
|
|
39
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
40
|
+
return false;
|
|
41
41
|
return true;
|
|
42
42
|
}
|
|
43
43
|
function DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json) {
|
|
@@ -48,9 +48,9 @@ function DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped(json, ign
|
|
|
48
48
|
return json;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
52
51
|
'enabled': json['enabled'],
|
|
53
52
|
'salesImportance': json['salesImportance'],
|
|
53
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(json) {
|
|
@@ -62,8 +62,8 @@ function DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped(value, igno
|
|
|
62
62
|
return value;
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
|
-
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
66
65
|
'enabled': value['enabled'],
|
|
67
66
|
'salesImportance': value['salesImportance'],
|
|
67
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -28,6 +28,12 @@ export interface DomainLeadPriceNegotiatorAiAgentConfigurationInput {
|
|
|
28
28
|
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationInput
|
|
29
29
|
*/
|
|
30
30
|
enabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationInput
|
|
35
|
+
*/
|
|
36
|
+
enabledForNewDomains?: boolean;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {string}
|
|
@@ -44,6 +44,7 @@ function DomainLeadPriceNegotiatorAiAgentConfigurationInputFromJSONTyped(json, i
|
|
|
44
44
|
return {
|
|
45
45
|
'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
46
46
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
47
|
+
'enabledForNewDomains': json['enabledForNewDomains'] == null ? undefined : json['enabledForNewDomains'],
|
|
47
48
|
'salesImportance': json['salesImportance'] == null ? undefined : json['salesImportance'],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
@@ -58,6 +59,7 @@ function DomainLeadPriceNegotiatorAiAgentConfigurationInputToJSONTyped(value, ig
|
|
|
58
59
|
return {
|
|
59
60
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
60
61
|
'enabled': value['enabled'],
|
|
62
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
61
63
|
'salesImportance': value['salesImportance'],
|
|
62
64
|
};
|
|
63
65
|
}
|
|
@@ -21,6 +21,12 @@ export interface LeadPriceNegotiatorAiAgentConfigurationDto {
|
|
|
21
21
|
* @memberof LeadPriceNegotiatorAiAgentConfigurationDto
|
|
22
22
|
*/
|
|
23
23
|
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadPriceNegotiatorAiAgentConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
enabledForNewDomains: boolean;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -33,6 +33,8 @@ exports.LeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum = {
|
|
|
33
33
|
function instanceOfLeadPriceNegotiatorAiAgentConfigurationDto(value) {
|
|
34
34
|
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('enabledForNewDomains' in value) || value['enabledForNewDomains'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('salesImportance' in value) || value['salesImportance'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
return true;
|
|
@@ -46,6 +48,7 @@ function LeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped(json, ignoreDis
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'enabled': json['enabled'],
|
|
51
|
+
'enabledForNewDomains': json['enabledForNewDomains'],
|
|
49
52
|
'salesImportance': json['salesImportance'],
|
|
50
53
|
};
|
|
51
54
|
}
|
|
@@ -59,6 +62,7 @@ function LeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped(value, ignoreDisc
|
|
|
59
62
|
}
|
|
60
63
|
return {
|
|
61
64
|
'enabled': value['enabled'],
|
|
65
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
62
66
|
'salesImportance': value['salesImportance'],
|
|
63
67
|
};
|
|
64
68
|
}
|
|
@@ -21,6 +21,12 @@ export interface LeadPriceNegotiatorAiAgentConfigurationInput {
|
|
|
21
21
|
* @memberof LeadPriceNegotiatorAiAgentConfigurationInput
|
|
22
22
|
*/
|
|
23
23
|
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadPriceNegotiatorAiAgentConfigurationInput
|
|
28
|
+
*/
|
|
29
|
+
enabledForNewDomains?: boolean;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -42,6 +42,7 @@ function LeadPriceNegotiatorAiAgentConfigurationInputFromJSONTyped(json, ignoreD
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
45
|
+
'enabledForNewDomains': json['enabledForNewDomains'] == null ? undefined : json['enabledForNewDomains'],
|
|
45
46
|
'salesImportance': json['salesImportance'] == null ? undefined : json['salesImportance'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
@@ -55,6 +56,7 @@ function LeadPriceNegotiatorAiAgentConfigurationInputToJSONTyped(value, ignoreDi
|
|
|
55
56
|
}
|
|
56
57
|
return {
|
|
57
58
|
'enabled': value['enabled'],
|
|
59
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
58
60
|
'salesImportance': value['salesImportance'],
|
|
59
61
|
};
|
|
60
62
|
}
|
package/package.json
CHANGED
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -96,11 +96,19 @@ export interface LeadsApiListRequest {
|
|
|
96
96
|
sortBy?: Array<string>;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
export interface LeadsApiPauseLeadPriceNegotiatorAgentRequest {
|
|
100
|
+
leadId: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
99
103
|
export interface LeadsApiPutOfferRequest {
|
|
100
104
|
leadId: string;
|
|
101
105
|
putLeadOfferInput: PutLeadOfferInput;
|
|
102
106
|
}
|
|
103
107
|
|
|
108
|
+
export interface LeadsApiResumeLeadPriceNegotiatorAgentRequest {
|
|
109
|
+
leadId: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
104
112
|
export interface LeadsApiUnarchiveLeadRequest {
|
|
105
113
|
leadId: string;
|
|
106
114
|
}
|
|
@@ -504,6 +512,46 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
504
512
|
return await response.value();
|
|
505
513
|
}
|
|
506
514
|
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
*/
|
|
518
|
+
async pauseLeadPriceNegotiatorAgentRaw(requestParameters: LeadsApiPauseLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
519
|
+
if (requestParameters['leadId'] == null) {
|
|
520
|
+
throw new runtime.RequiredError(
|
|
521
|
+
'leadId',
|
|
522
|
+
'Required parameter "leadId" was null or undefined when calling pauseLeadPriceNegotiatorAgent().'
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
const queryParameters: any = {};
|
|
527
|
+
|
|
528
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
529
|
+
|
|
530
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
531
|
+
const token = this.configuration.accessToken;
|
|
532
|
+
const tokenString = await token("bearer", []);
|
|
533
|
+
|
|
534
|
+
if (tokenString) {
|
|
535
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
const response = await this.request({
|
|
539
|
+
path: `/private/leads/{leadId}/price-negotiator-agent/pause`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
540
|
+
method: 'POST',
|
|
541
|
+
headers: headerParameters,
|
|
542
|
+
query: queryParameters,
|
|
543
|
+
}, initOverrides);
|
|
544
|
+
|
|
545
|
+
return new runtime.VoidApiResponse(response);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
*
|
|
550
|
+
*/
|
|
551
|
+
async pauseLeadPriceNegotiatorAgent(requestParameters: LeadsApiPauseLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
552
|
+
await this.pauseLeadPriceNegotiatorAgentRaw(requestParameters, initOverrides);
|
|
553
|
+
}
|
|
554
|
+
|
|
507
555
|
/**
|
|
508
556
|
*
|
|
509
557
|
*/
|
|
@@ -554,6 +602,46 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
554
602
|
await this.putOfferRaw(requestParameters, initOverrides);
|
|
555
603
|
}
|
|
556
604
|
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
*/
|
|
608
|
+
async resumeLeadPriceNegotiatorAgentRaw(requestParameters: LeadsApiResumeLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
609
|
+
if (requestParameters['leadId'] == null) {
|
|
610
|
+
throw new runtime.RequiredError(
|
|
611
|
+
'leadId',
|
|
612
|
+
'Required parameter "leadId" was null or undefined when calling resumeLeadPriceNegotiatorAgent().'
|
|
613
|
+
);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
const queryParameters: any = {};
|
|
617
|
+
|
|
618
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
619
|
+
|
|
620
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
621
|
+
const token = this.configuration.accessToken;
|
|
622
|
+
const tokenString = await token("bearer", []);
|
|
623
|
+
|
|
624
|
+
if (tokenString) {
|
|
625
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
const response = await this.request({
|
|
629
|
+
path: `/private/leads/{leadId}/price-negotiator-agent/resume`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
630
|
+
method: 'POST',
|
|
631
|
+
headers: headerParameters,
|
|
632
|
+
query: queryParameters,
|
|
633
|
+
}, initOverrides);
|
|
634
|
+
|
|
635
|
+
return new runtime.VoidApiResponse(response);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
*/
|
|
641
|
+
async resumeLeadPriceNegotiatorAgent(requestParameters: LeadsApiResumeLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
642
|
+
await this.resumeLeadPriceNegotiatorAgentRaw(requestParameters, initOverrides);
|
|
643
|
+
}
|
|
644
|
+
|
|
557
645
|
/**
|
|
558
646
|
*
|
|
559
647
|
*/
|
|
@@ -27,12 +27,6 @@ import {
|
|
|
27
27
|
* @interface DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
28
28
|
*/
|
|
29
29
|
export interface DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {MoneyDto}
|
|
33
|
-
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
34
|
-
*/
|
|
35
|
-
minOffer: MoneyDto | null;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
32
|
* @type {boolean}
|
|
@@ -45,6 +39,12 @@ export interface DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
|
45
39
|
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
46
40
|
*/
|
|
47
41
|
salesImportance: DomainLeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {MoneyDto}
|
|
45
|
+
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
46
|
+
*/
|
|
47
|
+
minOffer: MoneyDto | null;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
|
|
@@ -63,9 +63,9 @@ export type DomainLeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum
|
|
|
63
63
|
* Check if a given object implements the DomainLeadPriceNegotiatorAiAgentConfigurationDto interface.
|
|
64
64
|
*/
|
|
65
65
|
export function instanceOfDomainLeadPriceNegotiatorAiAgentConfigurationDto(value: object): value is DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
66
|
-
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
67
66
|
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
68
67
|
if (!('salesImportance' in value) || value['salesImportance'] === undefined) return false;
|
|
68
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
69
69
|
return true;
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -79,9 +79,9 @@ export function DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped(js
|
|
|
79
79
|
}
|
|
80
80
|
return {
|
|
81
81
|
|
|
82
|
-
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
83
82
|
'enabled': json['enabled'],
|
|
84
83
|
'salesImportance': json['salesImportance'],
|
|
84
|
+
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -96,9 +96,9 @@ export function DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped(valu
|
|
|
96
96
|
|
|
97
97
|
return {
|
|
98
98
|
|
|
99
|
-
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
100
99
|
'enabled': value['enabled'],
|
|
101
100
|
'salesImportance': value['salesImportance'],
|
|
101
|
+
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -39,6 +39,12 @@ export interface DomainLeadPriceNegotiatorAiAgentConfigurationInput {
|
|
|
39
39
|
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationInput
|
|
40
40
|
*/
|
|
41
41
|
enabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationInput
|
|
46
|
+
*/
|
|
47
|
+
enabledForNewDomains?: boolean;
|
|
42
48
|
/**
|
|
43
49
|
*
|
|
44
50
|
* @type {string}
|
|
@@ -78,6 +84,7 @@ export function DomainLeadPriceNegotiatorAiAgentConfigurationInputFromJSONTyped(
|
|
|
78
84
|
|
|
79
85
|
'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
|
|
80
86
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
87
|
+
'enabledForNewDomains': json['enabledForNewDomains'] == null ? undefined : json['enabledForNewDomains'],
|
|
81
88
|
'salesImportance': json['salesImportance'] == null ? undefined : json['salesImportance'],
|
|
82
89
|
};
|
|
83
90
|
}
|
|
@@ -95,6 +102,7 @@ export function DomainLeadPriceNegotiatorAiAgentConfigurationInputToJSONTyped(va
|
|
|
95
102
|
|
|
96
103
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
97
104
|
'enabled': value['enabled'],
|
|
105
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
98
106
|
'salesImportance': value['salesImportance'],
|
|
99
107
|
};
|
|
100
108
|
}
|
|
@@ -25,6 +25,12 @@ export interface LeadPriceNegotiatorAiAgentConfigurationDto {
|
|
|
25
25
|
* @memberof LeadPriceNegotiatorAiAgentConfigurationDto
|
|
26
26
|
*/
|
|
27
27
|
enabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof LeadPriceNegotiatorAiAgentConfigurationDto
|
|
32
|
+
*/
|
|
33
|
+
enabledForNewDomains: boolean;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -50,6 +56,7 @@ export type LeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum = type
|
|
|
50
56
|
*/
|
|
51
57
|
export function instanceOfLeadPriceNegotiatorAiAgentConfigurationDto(value: object): value is LeadPriceNegotiatorAiAgentConfigurationDto {
|
|
52
58
|
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
59
|
+
if (!('enabledForNewDomains' in value) || value['enabledForNewDomains'] === undefined) return false;
|
|
53
60
|
if (!('salesImportance' in value) || value['salesImportance'] === undefined) return false;
|
|
54
61
|
return true;
|
|
55
62
|
}
|
|
@@ -65,6 +72,7 @@ export function LeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped(json: an
|
|
|
65
72
|
return {
|
|
66
73
|
|
|
67
74
|
'enabled': json['enabled'],
|
|
75
|
+
'enabledForNewDomains': json['enabledForNewDomains'],
|
|
68
76
|
'salesImportance': json['salesImportance'],
|
|
69
77
|
};
|
|
70
78
|
}
|
|
@@ -81,6 +89,7 @@ export function LeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped(value?: Le
|
|
|
81
89
|
return {
|
|
82
90
|
|
|
83
91
|
'enabled': value['enabled'],
|
|
92
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
84
93
|
'salesImportance': value['salesImportance'],
|
|
85
94
|
};
|
|
86
95
|
}
|
|
@@ -25,6 +25,12 @@ export interface LeadPriceNegotiatorAiAgentConfigurationInput {
|
|
|
25
25
|
* @memberof LeadPriceNegotiatorAiAgentConfigurationInput
|
|
26
26
|
*/
|
|
27
27
|
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof LeadPriceNegotiatorAiAgentConfigurationInput
|
|
32
|
+
*/
|
|
33
|
+
enabledForNewDomains?: boolean;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -63,6 +69,7 @@ export function LeadPriceNegotiatorAiAgentConfigurationInputFromJSONTyped(json:
|
|
|
63
69
|
return {
|
|
64
70
|
|
|
65
71
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
72
|
+
'enabledForNewDomains': json['enabledForNewDomains'] == null ? undefined : json['enabledForNewDomains'],
|
|
66
73
|
'salesImportance': json['salesImportance'] == null ? undefined : json['salesImportance'],
|
|
67
74
|
};
|
|
68
75
|
}
|
|
@@ -79,6 +86,7 @@ export function LeadPriceNegotiatorAiAgentConfigurationInputToJSONTyped(value?:
|
|
|
79
86
|
return {
|
|
80
87
|
|
|
81
88
|
'enabled': value['enabled'],
|
|
89
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
82
90
|
'salesImportance': value['salesImportance'],
|
|
83
91
|
};
|
|
84
92
|
}
|