@randock/nameshift-api-client 0.0.392 → 0.0.394
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/.openapi-generator/FILES +2 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +11 -0
- package/dist/apis/AdminApi.js +51 -0
- package/dist/apis/LeadsApi.d.ts +16 -1
- package/dist/apis/LeadsApi.js +65 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/ListRelatedLeads200Response.d.ts +47 -0
- package/dist/models/ListRelatedLeads200Response.js +62 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/RelatedLeadDto.d.ts +84 -0
- package/dist/models/RelatedLeadDto.js +92 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +44 -0
- package/src/apis/LeadsApi.ts +68 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/ListRelatedLeads200Response.ts +106 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/RelatedLeadDto.ts +144 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -316,6 +316,7 @@ src/models/ListDomainsWithUpdatedPricing200Response.ts
|
|
|
316
316
|
src/models/ListLeadMessagesDto.ts
|
|
317
317
|
src/models/ListLeadsResultItem.ts
|
|
318
318
|
src/models/ListNotifications200Response.ts
|
|
319
|
+
src/models/ListRelatedLeads200Response.ts
|
|
319
320
|
src/models/LockConfigurationInput.ts
|
|
320
321
|
src/models/LockDurationDto.ts
|
|
321
322
|
src/models/LockDurationInput.ts
|
|
@@ -370,6 +371,7 @@ src/models/RegisterAccountPortfolioSizeInput.ts
|
|
|
370
371
|
src/models/RegisterAuctionBuyerPhoneInput.ts
|
|
371
372
|
src/models/RegisterInput.ts
|
|
372
373
|
src/models/RelatedDomainsDto.ts
|
|
374
|
+
src/models/RelatedLeadDto.ts
|
|
373
375
|
src/models/RelatedSellerDomain.ts
|
|
374
376
|
src/models/RemoveSubscriptionDomainRecordInput.ts
|
|
375
377
|
src/models/RentConfigurationDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.394
|
|
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.394 --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
|
+
124cd933f28afa475577f86da87eb9c2fb9aba3552aeef03aea765ea80827be83eec8b147003470fc032daad6d4e4958
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -182,6 +182,9 @@ export interface AdminApiSyncAccountStatsRequest {
|
|
|
182
182
|
export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
183
183
|
accountId: string;
|
|
184
184
|
}
|
|
185
|
+
export interface AdminApiSyncOwnedDomainFromRegistryRequest {
|
|
186
|
+
id: string;
|
|
187
|
+
}
|
|
185
188
|
export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
|
|
186
189
|
accountId: string;
|
|
187
190
|
updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
|
|
@@ -568,6 +571,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
568
571
|
*
|
|
569
572
|
*/
|
|
570
573
|
syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
*/
|
|
577
|
+
syncOwnedDomainFromRegistryRaw(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
*/
|
|
581
|
+
syncOwnedDomainFromRegistry(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
571
582
|
/**
|
|
572
583
|
*
|
|
573
584
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -2577,6 +2577,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2577
2577
|
});
|
|
2578
2578
|
});
|
|
2579
2579
|
};
|
|
2580
|
+
/**
|
|
2581
|
+
*
|
|
2582
|
+
*/
|
|
2583
|
+
AdminApi.prototype.syncOwnedDomainFromRegistryRaw = function (requestParameters, initOverrides) {
|
|
2584
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2585
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2586
|
+
return __generator(this, function (_a) {
|
|
2587
|
+
switch (_a.label) {
|
|
2588
|
+
case 0:
|
|
2589
|
+
if (requestParameters['id'] == null) {
|
|
2590
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling syncOwnedDomainFromRegistry().');
|
|
2591
|
+
}
|
|
2592
|
+
queryParameters = {};
|
|
2593
|
+
headerParameters = {};
|
|
2594
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2595
|
+
token = this.configuration.accessToken;
|
|
2596
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2597
|
+
case 1:
|
|
2598
|
+
tokenString = _a.sent();
|
|
2599
|
+
if (tokenString) {
|
|
2600
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2601
|
+
}
|
|
2602
|
+
_a.label = 2;
|
|
2603
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2604
|
+
path: "/admin/owned-domains/{id}/sync-from-registry".replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id']))),
|
|
2605
|
+
method: 'POST',
|
|
2606
|
+
headers: headerParameters,
|
|
2607
|
+
query: queryParameters,
|
|
2608
|
+
}, initOverrides)];
|
|
2609
|
+
case 3:
|
|
2610
|
+
response = _a.sent();
|
|
2611
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2612
|
+
}
|
|
2613
|
+
});
|
|
2614
|
+
});
|
|
2615
|
+
};
|
|
2616
|
+
/**
|
|
2617
|
+
*
|
|
2618
|
+
*/
|
|
2619
|
+
AdminApi.prototype.syncOwnedDomainFromRegistry = function (requestParameters, initOverrides) {
|
|
2620
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2621
|
+
return __generator(this, function (_a) {
|
|
2622
|
+
switch (_a.label) {
|
|
2623
|
+
case 0: return [4 /*yield*/, this.syncOwnedDomainFromRegistryRaw(requestParameters, initOverrides)];
|
|
2624
|
+
case 1:
|
|
2625
|
+
_a.sent();
|
|
2626
|
+
return [2 /*return*/];
|
|
2627
|
+
}
|
|
2628
|
+
});
|
|
2629
|
+
});
|
|
2630
|
+
};
|
|
2580
2631
|
/**
|
|
2581
2632
|
*
|
|
2582
2633
|
*/
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
13
|
+
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, List200Response, ListLeadMessagesDto, ListRelatedLeads200Response, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -46,6 +46,13 @@ export interface LeadsApiListRequest {
|
|
|
46
46
|
limit?: number;
|
|
47
47
|
sortBy?: Array<string>;
|
|
48
48
|
}
|
|
49
|
+
export interface LeadsApiListRelatedLeadsRequest {
|
|
50
|
+
leadId: string;
|
|
51
|
+
filter?: object;
|
|
52
|
+
page?: number;
|
|
53
|
+
limit?: number;
|
|
54
|
+
sortBy?: Array<string>;
|
|
55
|
+
}
|
|
49
56
|
export interface LeadsApiPauseLeadPriceNegotiatorAgentRequest {
|
|
50
57
|
leadId: string;
|
|
51
58
|
}
|
|
@@ -163,6 +170,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
163
170
|
*
|
|
164
171
|
*/
|
|
165
172
|
list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
listRelatedLeadsRaw(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListRelatedLeads200Response>>;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
listRelatedLeads(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRelatedLeads200Response>;
|
|
166
181
|
/**
|
|
167
182
|
*
|
|
168
183
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -667,6 +667,71 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
667
667
|
});
|
|
668
668
|
});
|
|
669
669
|
};
|
|
670
|
+
/**
|
|
671
|
+
*
|
|
672
|
+
*/
|
|
673
|
+
LeadsApi.prototype.listRelatedLeadsRaw = function (requestParameters, initOverrides) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
675
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
676
|
+
return __generator(this, function (_a) {
|
|
677
|
+
switch (_a.label) {
|
|
678
|
+
case 0:
|
|
679
|
+
if (requestParameters['leadId'] == null) {
|
|
680
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling listRelatedLeads().');
|
|
681
|
+
}
|
|
682
|
+
queryParameters = {};
|
|
683
|
+
if (requestParameters['filter'] != null) {
|
|
684
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
685
|
+
}
|
|
686
|
+
if (requestParameters['page'] != null) {
|
|
687
|
+
queryParameters['page'] = requestParameters['page'];
|
|
688
|
+
}
|
|
689
|
+
if (requestParameters['limit'] != null) {
|
|
690
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
691
|
+
}
|
|
692
|
+
if (requestParameters['sortBy'] != null) {
|
|
693
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
694
|
+
}
|
|
695
|
+
headerParameters = {};
|
|
696
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
697
|
+
token = this.configuration.accessToken;
|
|
698
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
699
|
+
case 1:
|
|
700
|
+
tokenString = _a.sent();
|
|
701
|
+
if (tokenString) {
|
|
702
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
703
|
+
}
|
|
704
|
+
_a.label = 2;
|
|
705
|
+
case 2: return [4 /*yield*/, this.request({
|
|
706
|
+
path: "/private/leads/{leadId}/related".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
707
|
+
method: 'GET',
|
|
708
|
+
headers: headerParameters,
|
|
709
|
+
query: queryParameters,
|
|
710
|
+
}, initOverrides)];
|
|
711
|
+
case 3:
|
|
712
|
+
response = _a.sent();
|
|
713
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListRelatedLeads200ResponseFromJSON)(jsonValue); })];
|
|
714
|
+
}
|
|
715
|
+
});
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
/**
|
|
719
|
+
*
|
|
720
|
+
*/
|
|
721
|
+
LeadsApi.prototype.listRelatedLeads = function (requestParameters, initOverrides) {
|
|
722
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
723
|
+
var response;
|
|
724
|
+
return __generator(this, function (_a) {
|
|
725
|
+
switch (_a.label) {
|
|
726
|
+
case 0: return [4 /*yield*/, this.listRelatedLeadsRaw(requestParameters, initOverrides)];
|
|
727
|
+
case 1:
|
|
728
|
+
response = _a.sent();
|
|
729
|
+
return [4 /*yield*/, response.value()];
|
|
730
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
});
|
|
734
|
+
};
|
|
670
735
|
/**
|
|
671
736
|
*
|
|
672
737
|
*/
|
|
@@ -81,6 +81,7 @@ export declare const FeatureFlagListItemDtoNameEnum: {
|
|
|
81
81
|
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
82
82
|
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
83
83
|
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
84
|
+
readonly UI_LEAD_LAYOUT_V2: "UI_LEAD_LAYOUT_V2";
|
|
84
85
|
};
|
|
85
86
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
86
87
|
/**
|
|
@@ -41,7 +41,8 @@ exports.FeatureFlagListItemDtoNameEnum = {
|
|
|
41
41
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
42
42
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
43
43
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
44
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
44
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
45
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
45
46
|
};
|
|
46
47
|
/**
|
|
47
48
|
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
@@ -124,6 +124,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
124
124
|
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
125
125
|
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
126
126
|
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
127
|
+
readonly UI_LEAD_LAYOUT_V2: "UI_LEAD_LAYOUT_V2";
|
|
127
128
|
};
|
|
128
129
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
129
130
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -48,7 +48,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
48
48
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
49
49
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
50
50
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
51
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
51
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
52
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
54
55
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { RelatedLeadDto } from './RelatedLeadDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListRelatedLeads200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface ListRelatedLeads200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<RelatedLeadDto>}
|
|
24
|
+
* @memberof ListRelatedLeads200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<RelatedLeadDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof ListRelatedLeads200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof ListRelatedLeads200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ListRelatedLeads200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfListRelatedLeads200Response(value: object): value is ListRelatedLeads200Response;
|
|
44
|
+
export declare function ListRelatedLeads200ResponseFromJSON(json: any): ListRelatedLeads200Response;
|
|
45
|
+
export declare function ListRelatedLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListRelatedLeads200Response;
|
|
46
|
+
export declare function ListRelatedLeads200ResponseToJSON(json: any): ListRelatedLeads200Response;
|
|
47
|
+
export declare function ListRelatedLeads200ResponseToJSONTyped(value?: ListRelatedLeads200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfListRelatedLeads200Response = instanceOfListRelatedLeads200Response;
|
|
17
|
+
exports.ListRelatedLeads200ResponseFromJSON = ListRelatedLeads200ResponseFromJSON;
|
|
18
|
+
exports.ListRelatedLeads200ResponseFromJSONTyped = ListRelatedLeads200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListRelatedLeads200ResponseToJSON = ListRelatedLeads200ResponseToJSON;
|
|
20
|
+
exports.ListRelatedLeads200ResponseToJSONTyped = ListRelatedLeads200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var RelatedLeadDto_1 = require("./RelatedLeadDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ListRelatedLeads200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfListRelatedLeads200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ListRelatedLeads200ResponseFromJSON(json) {
|
|
37
|
+
return ListRelatedLeads200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ListRelatedLeads200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(RelatedLeadDto_1.RelatedLeadDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ListRelatedLeads200ResponseToJSON(json) {
|
|
50
|
+
return ListRelatedLeads200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ListRelatedLeads200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(RelatedLeadDto_1.RelatedLeadDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -130,6 +130,7 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
|
|
|
130
130
|
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
131
131
|
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
132
132
|
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
133
|
+
readonly UI_LEAD_LAYOUT_V2: "UI_LEAD_LAYOUT_V2";
|
|
133
134
|
};
|
|
134
135
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
135
136
|
/**
|
|
@@ -48,7 +48,8 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
48
48
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
49
49
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
50
50
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
51
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
51
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
52
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
54
55
|
* Check if a given object implements the PrivateAccountGetMeResponse interface.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LeadOfferDto } from './LeadOfferDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RelatedLeadDto
|
|
17
|
+
*/
|
|
18
|
+
export interface RelatedLeadDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RelatedLeadDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RelatedLeadDto
|
|
29
|
+
*/
|
|
30
|
+
status: RelatedLeadDtoStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {LeadOfferDto}
|
|
34
|
+
* @memberof RelatedLeadDto
|
|
35
|
+
*/
|
|
36
|
+
lastSellerOffer: LeadOfferDto | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {LeadOfferDto}
|
|
40
|
+
* @memberof RelatedLeadDto
|
|
41
|
+
*/
|
|
42
|
+
lastBuyerOffer: LeadOfferDto | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof RelatedLeadDto
|
|
47
|
+
*/
|
|
48
|
+
lastOfferBy: RelatedLeadDtoLastOfferByEnum | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof RelatedLeadDto
|
|
53
|
+
*/
|
|
54
|
+
lastOfferDate: Date | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const RelatedLeadDtoStatusEnum: {
|
|
60
|
+
readonly UNVERIFIED: "unverified";
|
|
61
|
+
readonly ACTIVE: "active";
|
|
62
|
+
readonly ACCEPTED: "accepted";
|
|
63
|
+
readonly FINISHED: "finished";
|
|
64
|
+
readonly CLOSED: "closed";
|
|
65
|
+
};
|
|
66
|
+
export type RelatedLeadDtoStatusEnum = typeof RelatedLeadDtoStatusEnum[keyof typeof RelatedLeadDtoStatusEnum];
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const RelatedLeadDtoLastOfferByEnum: {
|
|
71
|
+
readonly BUYER: "buyer";
|
|
72
|
+
readonly SELLER: "seller";
|
|
73
|
+
readonly AI: "ai";
|
|
74
|
+
readonly ADMIN: "admin";
|
|
75
|
+
};
|
|
76
|
+
export type RelatedLeadDtoLastOfferByEnum = typeof RelatedLeadDtoLastOfferByEnum[keyof typeof RelatedLeadDtoLastOfferByEnum];
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the RelatedLeadDto interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfRelatedLeadDto(value: object): value is RelatedLeadDto;
|
|
81
|
+
export declare function RelatedLeadDtoFromJSON(json: any): RelatedLeadDto;
|
|
82
|
+
export declare function RelatedLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedLeadDto;
|
|
83
|
+
export declare function RelatedLeadDtoToJSON(json: any): RelatedLeadDto;
|
|
84
|
+
export declare function RelatedLeadDtoToJSONTyped(value?: RelatedLeadDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RelatedLeadDtoLastOfferByEnum = exports.RelatedLeadDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfRelatedLeadDto = instanceOfRelatedLeadDto;
|
|
18
|
+
exports.RelatedLeadDtoFromJSON = RelatedLeadDtoFromJSON;
|
|
19
|
+
exports.RelatedLeadDtoFromJSONTyped = RelatedLeadDtoFromJSONTyped;
|
|
20
|
+
exports.RelatedLeadDtoToJSON = RelatedLeadDtoToJSON;
|
|
21
|
+
exports.RelatedLeadDtoToJSONTyped = RelatedLeadDtoToJSONTyped;
|
|
22
|
+
var LeadOfferDto_1 = require("./LeadOfferDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.RelatedLeadDtoStatusEnum = {
|
|
27
|
+
UNVERIFIED: 'unverified',
|
|
28
|
+
ACTIVE: 'active',
|
|
29
|
+
ACCEPTED: 'accepted',
|
|
30
|
+
FINISHED: 'finished',
|
|
31
|
+
CLOSED: 'closed'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.RelatedLeadDtoLastOfferByEnum = {
|
|
37
|
+
BUYER: 'buyer',
|
|
38
|
+
SELLER: 'seller',
|
|
39
|
+
AI: 'ai',
|
|
40
|
+
ADMIN: 'admin'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the RelatedLeadDto interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfRelatedLeadDto(value) {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('lastOfferDate' in value) || value['lastOfferDate'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function RelatedLeadDtoFromJSON(json) {
|
|
61
|
+
return RelatedLeadDtoFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function RelatedLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': json['id'],
|
|
69
|
+
'status': json['status'],
|
|
70
|
+
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
|
|
71
|
+
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
|
|
72
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
73
|
+
'lastOfferDate': (json['lastOfferDate'] == null ? null : new Date(json['lastOfferDate'])),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function RelatedLeadDtoToJSON(json) {
|
|
77
|
+
return RelatedLeadDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function RelatedLeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
80
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'status': value['status'],
|
|
87
|
+
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
|
|
88
|
+
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
|
|
89
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
90
|
+
'lastOfferDate': (value['lastOfferDate'] == null ? null : value['lastOfferDate'].toISOString()),
|
|
91
|
+
};
|
|
92
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -280,6 +280,7 @@ export * from './ListDomainsWithUpdatedPricing200Response';
|
|
|
280
280
|
export * from './ListLeadMessagesDto';
|
|
281
281
|
export * from './ListLeadsResultItem';
|
|
282
282
|
export * from './ListNotifications200Response';
|
|
283
|
+
export * from './ListRelatedLeads200Response';
|
|
283
284
|
export * from './LockConfigurationInput';
|
|
284
285
|
export * from './LockDurationDto';
|
|
285
286
|
export * from './LockDurationInput';
|
|
@@ -334,6 +335,7 @@ export * from './RegisterAccountPortfolioSizeInput';
|
|
|
334
335
|
export * from './RegisterAuctionBuyerPhoneInput';
|
|
335
336
|
export * from './RegisterInput';
|
|
336
337
|
export * from './RelatedDomainsDto';
|
|
338
|
+
export * from './RelatedLeadDto';
|
|
337
339
|
export * from './RelatedSellerDomain';
|
|
338
340
|
export * from './RemoveSubscriptionDomainRecordInput';
|
|
339
341
|
export * from './RentConfigurationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -298,6 +298,7 @@ __exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
|
|
|
298
298
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
299
299
|
__exportStar(require("./ListLeadsResultItem"), exports);
|
|
300
300
|
__exportStar(require("./ListNotifications200Response"), exports);
|
|
301
|
+
__exportStar(require("./ListRelatedLeads200Response"), exports);
|
|
301
302
|
__exportStar(require("./LockConfigurationInput"), exports);
|
|
302
303
|
__exportStar(require("./LockDurationDto"), exports);
|
|
303
304
|
__exportStar(require("./LockDurationInput"), exports);
|
|
@@ -352,6 +353,7 @@ __exportStar(require("./RegisterAccountPortfolioSizeInput"), exports);
|
|
|
352
353
|
__exportStar(require("./RegisterAuctionBuyerPhoneInput"), exports);
|
|
353
354
|
__exportStar(require("./RegisterInput"), exports);
|
|
354
355
|
__exportStar(require("./RelatedDomainsDto"), exports);
|
|
356
|
+
__exportStar(require("./RelatedLeadDto"), exports);
|
|
355
357
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
356
358
|
__exportStar(require("./RemoveSubscriptionDomainRecordInput"), exports);
|
|
357
359
|
__exportStar(require("./RentConfigurationDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -360,6 +360,10 @@ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
|
360
360
|
accountId: string;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
+
export interface AdminApiSyncOwnedDomainFromRegistryRequest {
|
|
364
|
+
id: string;
|
|
365
|
+
}
|
|
366
|
+
|
|
363
367
|
export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
|
|
364
368
|
accountId: string;
|
|
365
369
|
updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
|
|
@@ -2381,6 +2385,46 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2381
2385
|
await this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
|
|
2382
2386
|
}
|
|
2383
2387
|
|
|
2388
|
+
/**
|
|
2389
|
+
*
|
|
2390
|
+
*/
|
|
2391
|
+
async syncOwnedDomainFromRegistryRaw(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2392
|
+
if (requestParameters['id'] == null) {
|
|
2393
|
+
throw new runtime.RequiredError(
|
|
2394
|
+
'id',
|
|
2395
|
+
'Required parameter "id" was null or undefined when calling syncOwnedDomainFromRegistry().'
|
|
2396
|
+
);
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
const queryParameters: any = {};
|
|
2400
|
+
|
|
2401
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2402
|
+
|
|
2403
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2404
|
+
const token = this.configuration.accessToken;
|
|
2405
|
+
const tokenString = await token("bearer", []);
|
|
2406
|
+
|
|
2407
|
+
if (tokenString) {
|
|
2408
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
const response = await this.request({
|
|
2412
|
+
path: `/admin/owned-domains/{id}/sync-from-registry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
2413
|
+
method: 'POST',
|
|
2414
|
+
headers: headerParameters,
|
|
2415
|
+
query: queryParameters,
|
|
2416
|
+
}, initOverrides);
|
|
2417
|
+
|
|
2418
|
+
return new runtime.VoidApiResponse(response);
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
/**
|
|
2422
|
+
*
|
|
2423
|
+
*/
|
|
2424
|
+
async syncOwnedDomainFromRegistry(requestParameters: AdminApiSyncOwnedDomainFromRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2425
|
+
await this.syncOwnedDomainFromRegistryRaw(requestParameters, initOverrides);
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2384
2428
|
/**
|
|
2385
2429
|
*
|
|
2386
2430
|
*/
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
LeadOfferExpirationConfigurationInput,
|
|
25
25
|
List200Response,
|
|
26
26
|
ListLeadMessagesDto,
|
|
27
|
+
ListRelatedLeads200Response,
|
|
27
28
|
LockConfigurationInput,
|
|
28
29
|
ObjectId,
|
|
29
30
|
PutLeadOfferInput,
|
|
@@ -50,6 +51,8 @@ import {
|
|
|
50
51
|
List200ResponseToJSON,
|
|
51
52
|
ListLeadMessagesDtoFromJSON,
|
|
52
53
|
ListLeadMessagesDtoToJSON,
|
|
54
|
+
ListRelatedLeads200ResponseFromJSON,
|
|
55
|
+
ListRelatedLeads200ResponseToJSON,
|
|
53
56
|
LockConfigurationInputFromJSON,
|
|
54
57
|
LockConfigurationInputToJSON,
|
|
55
58
|
ObjectIdFromJSON,
|
|
@@ -109,6 +112,14 @@ export interface LeadsApiListRequest {
|
|
|
109
112
|
sortBy?: Array<string>;
|
|
110
113
|
}
|
|
111
114
|
|
|
115
|
+
export interface LeadsApiListRelatedLeadsRequest {
|
|
116
|
+
leadId: string;
|
|
117
|
+
filter?: object;
|
|
118
|
+
page?: number;
|
|
119
|
+
limit?: number;
|
|
120
|
+
sortBy?: Array<string>;
|
|
121
|
+
}
|
|
122
|
+
|
|
112
123
|
export interface LeadsApiPauseLeadPriceNegotiatorAgentRequest {
|
|
113
124
|
leadId: string;
|
|
114
125
|
}
|
|
@@ -617,6 +628,63 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
617
628
|
return await response.value();
|
|
618
629
|
}
|
|
619
630
|
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
*/
|
|
634
|
+
async listRelatedLeadsRaw(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListRelatedLeads200Response>> {
|
|
635
|
+
if (requestParameters['leadId'] == null) {
|
|
636
|
+
throw new runtime.RequiredError(
|
|
637
|
+
'leadId',
|
|
638
|
+
'Required parameter "leadId" was null or undefined when calling listRelatedLeads().'
|
|
639
|
+
);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
const queryParameters: any = {};
|
|
643
|
+
|
|
644
|
+
if (requestParameters['filter'] != null) {
|
|
645
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if (requestParameters['page'] != null) {
|
|
649
|
+
queryParameters['page'] = requestParameters['page'];
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
if (requestParameters['limit'] != null) {
|
|
653
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
if (requestParameters['sortBy'] != null) {
|
|
657
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
661
|
+
|
|
662
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
663
|
+
const token = this.configuration.accessToken;
|
|
664
|
+
const tokenString = await token("bearer", []);
|
|
665
|
+
|
|
666
|
+
if (tokenString) {
|
|
667
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
const response = await this.request({
|
|
671
|
+
path: `/private/leads/{leadId}/related`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
672
|
+
method: 'GET',
|
|
673
|
+
headers: headerParameters,
|
|
674
|
+
query: queryParameters,
|
|
675
|
+
}, initOverrides);
|
|
676
|
+
|
|
677
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListRelatedLeads200ResponseFromJSON(jsonValue));
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
*/
|
|
683
|
+
async listRelatedLeads(requestParameters: LeadsApiListRelatedLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRelatedLeads200Response> {
|
|
684
|
+
const response = await this.listRelatedLeadsRaw(requestParameters, initOverrides);
|
|
685
|
+
return await response.value();
|
|
686
|
+
}
|
|
687
|
+
|
|
620
688
|
/**
|
|
621
689
|
*
|
|
622
690
|
*/
|
|
@@ -86,7 +86,8 @@ export const FeatureFlagListItemDtoNameEnum = {
|
|
|
86
86
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
87
87
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
88
88
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
89
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
89
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
90
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
90
91
|
} as const;
|
|
91
92
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
92
93
|
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -172,7 +172,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
|
|
|
172
172
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
173
173
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
174
174
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
175
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
175
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
176
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
176
177
|
} as const;
|
|
177
178
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
178
179
|
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { RelatedLeadDto } from './RelatedLeadDto';
|
|
24
|
+
import {
|
|
25
|
+
RelatedLeadDtoFromJSON,
|
|
26
|
+
RelatedLeadDtoFromJSONTyped,
|
|
27
|
+
RelatedLeadDtoToJSON,
|
|
28
|
+
RelatedLeadDtoToJSONTyped,
|
|
29
|
+
} from './RelatedLeadDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ListRelatedLeads200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface ListRelatedLeads200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<RelatedLeadDto>}
|
|
47
|
+
* @memberof ListRelatedLeads200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<RelatedLeadDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof ListRelatedLeads200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof ListRelatedLeads200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the ListRelatedLeads200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfListRelatedLeads200Response(value: object): value is ListRelatedLeads200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ListRelatedLeads200ResponseFromJSON(json: any): ListRelatedLeads200Response {
|
|
75
|
+
return ListRelatedLeads200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ListRelatedLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListRelatedLeads200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(RelatedLeadDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListRelatedLeads200ResponseToJSON(json: any): ListRelatedLeads200Response {
|
|
91
|
+
return ListRelatedLeads200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListRelatedLeads200ResponseToJSONTyped(value?: ListRelatedLeads200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(RelatedLeadDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -178,7 +178,8 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
178
178
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
179
179
|
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
180
180
|
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
181
|
-
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
181
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE',
|
|
182
|
+
UI_LEAD_LAYOUT_V2: 'UI_LEAD_LAYOUT_V2'
|
|
182
183
|
} as const;
|
|
183
184
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
184
185
|
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LeadOfferDto } from './LeadOfferDto';
|
|
17
|
+
import {
|
|
18
|
+
LeadOfferDtoFromJSON,
|
|
19
|
+
LeadOfferDtoFromJSONTyped,
|
|
20
|
+
LeadOfferDtoToJSON,
|
|
21
|
+
LeadOfferDtoToJSONTyped,
|
|
22
|
+
} from './LeadOfferDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RelatedLeadDto
|
|
28
|
+
*/
|
|
29
|
+
export interface RelatedLeadDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RelatedLeadDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RelatedLeadDto
|
|
40
|
+
*/
|
|
41
|
+
status: RelatedLeadDtoStatusEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {LeadOfferDto}
|
|
45
|
+
* @memberof RelatedLeadDto
|
|
46
|
+
*/
|
|
47
|
+
lastSellerOffer: LeadOfferDto | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {LeadOfferDto}
|
|
51
|
+
* @memberof RelatedLeadDto
|
|
52
|
+
*/
|
|
53
|
+
lastBuyerOffer: LeadOfferDto | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof RelatedLeadDto
|
|
58
|
+
*/
|
|
59
|
+
lastOfferBy: RelatedLeadDtoLastOfferByEnum | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof RelatedLeadDto
|
|
64
|
+
*/
|
|
65
|
+
lastOfferDate: Date | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const RelatedLeadDtoStatusEnum = {
|
|
73
|
+
UNVERIFIED: 'unverified',
|
|
74
|
+
ACTIVE: 'active',
|
|
75
|
+
ACCEPTED: 'accepted',
|
|
76
|
+
FINISHED: 'finished',
|
|
77
|
+
CLOSED: 'closed'
|
|
78
|
+
} as const;
|
|
79
|
+
export type RelatedLeadDtoStatusEnum = typeof RelatedLeadDtoStatusEnum[keyof typeof RelatedLeadDtoStatusEnum];
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const RelatedLeadDtoLastOfferByEnum = {
|
|
85
|
+
BUYER: 'buyer',
|
|
86
|
+
SELLER: 'seller',
|
|
87
|
+
AI: 'ai',
|
|
88
|
+
ADMIN: 'admin'
|
|
89
|
+
} as const;
|
|
90
|
+
export type RelatedLeadDtoLastOfferByEnum = typeof RelatedLeadDtoLastOfferByEnum[keyof typeof RelatedLeadDtoLastOfferByEnum];
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the RelatedLeadDto interface.
|
|
95
|
+
*/
|
|
96
|
+
export function instanceOfRelatedLeadDto(value: object): value is RelatedLeadDto {
|
|
97
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
98
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
99
|
+
if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined) return false;
|
|
100
|
+
if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined) return false;
|
|
101
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
102
|
+
if (!('lastOfferDate' in value) || value['lastOfferDate'] === undefined) return false;
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function RelatedLeadDtoFromJSON(json: any): RelatedLeadDto {
|
|
107
|
+
return RelatedLeadDtoFromJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function RelatedLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelatedLeadDto {
|
|
111
|
+
if (json == null) {
|
|
112
|
+
return json;
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'id': json['id'],
|
|
117
|
+
'status': json['status'],
|
|
118
|
+
'lastSellerOffer': LeadOfferDtoFromJSON(json['lastSellerOffer']),
|
|
119
|
+
'lastBuyerOffer': LeadOfferDtoFromJSON(json['lastBuyerOffer']),
|
|
120
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
121
|
+
'lastOfferDate': (json['lastOfferDate'] == null ? null : new Date(json['lastOfferDate'])),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function RelatedLeadDtoToJSON(json: any): RelatedLeadDto {
|
|
126
|
+
return RelatedLeadDtoToJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function RelatedLeadDtoToJSONTyped(value?: RelatedLeadDto | null, ignoreDiscriminator: boolean = false): any {
|
|
130
|
+
if (value == null) {
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'id': value['id'],
|
|
137
|
+
'status': value['status'],
|
|
138
|
+
'lastSellerOffer': LeadOfferDtoToJSON(value['lastSellerOffer']),
|
|
139
|
+
'lastBuyerOffer': LeadOfferDtoToJSON(value['lastBuyerOffer']),
|
|
140
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
141
|
+
'lastOfferDate': (value['lastOfferDate'] == null ? null : (value['lastOfferDate'] as any).toISOString()),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -282,6 +282,7 @@ export * from './ListDomainsWithUpdatedPricing200Response';
|
|
|
282
282
|
export * from './ListLeadMessagesDto';
|
|
283
283
|
export * from './ListLeadsResultItem';
|
|
284
284
|
export * from './ListNotifications200Response';
|
|
285
|
+
export * from './ListRelatedLeads200Response';
|
|
285
286
|
export * from './LockConfigurationInput';
|
|
286
287
|
export * from './LockDurationDto';
|
|
287
288
|
export * from './LockDurationInput';
|
|
@@ -336,6 +337,7 @@ export * from './RegisterAccountPortfolioSizeInput';
|
|
|
336
337
|
export * from './RegisterAuctionBuyerPhoneInput';
|
|
337
338
|
export * from './RegisterInput';
|
|
338
339
|
export * from './RelatedDomainsDto';
|
|
340
|
+
export * from './RelatedLeadDto';
|
|
339
341
|
export * from './RelatedSellerDomain';
|
|
340
342
|
export * from './RemoveSubscriptionDomainRecordInput';
|
|
341
343
|
export * from './RentConfigurationDto';
|