@randock/nameshift-api-client 0.0.197 → 0.0.199
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 +4 -1
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/BuyersApi.d.ts +15 -1
- package/dist/apis/BuyersApi.js +63 -0
- package/dist/models/AccountSettingsLandingDto.d.ts +6 -0
- package/dist/models/AccountSettingsLandingDto.js +4 -0
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +89 -0
- package/dist/models/BuyerSubscriptionListItemDto.js +95 -0
- package/dist/models/BuyerSubscriptionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/BuyerSubscriptionListItemDtoDomainInformation.js +59 -0
- package/dist/models/GetBuyerSubscriptions200Response.d.ts +47 -0
- package/dist/models/GetBuyerSubscriptions200Response.js +62 -0
- package/dist/models/{IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.d.ts → IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts} +30 -16
- package/dist/models/{IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.js → IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js} +25 -13
- package/dist/models/LandingPageInput.d.ts +6 -0
- package/dist/models/LandingPageInput.js +2 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +6 -6
- package/src/apis/BuyersApi.ts +60 -0
- package/src/models/AccountSettingsLandingDto.ts +9 -0
- package/src/models/BuyerSubscriptionListItemDto.ts +158 -0
- package/src/models/BuyerSubscriptionListItemDtoDomainInformation.ts +84 -0
- package/src/models/GetBuyerSubscriptions200Response.ts +106 -0
- package/src/models/{IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.ts → IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts} +38 -18
- package/src/models/LandingPageInput.ts +8 -0
- package/src/models/index.ts +4 -1
|
@@ -17,63 +17,77 @@ import type { BillingInformationDto } from './BillingInformationDto';
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto {
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @type {string}
|
|
26
|
-
* @memberof
|
|
26
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
27
27
|
*/
|
|
28
28
|
id: string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
33
33
|
*/
|
|
34
34
|
identifier: string;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
39
39
|
*/
|
|
40
40
|
name: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {AccountMetricsDto}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
45
45
|
*/
|
|
46
46
|
metrics: AccountMetricsDto;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {PaymentProviderDto}
|
|
50
|
-
* @memberof
|
|
50
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
51
51
|
*/
|
|
52
52
|
paymentProvider: PaymentProviderDto | null;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {BillingInformationDto}
|
|
56
|
-
* @memberof
|
|
56
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
57
57
|
*/
|
|
58
58
|
billingInformation: BillingInformationDto | null;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {WithSettingsInner}
|
|
62
|
-
* @memberof
|
|
62
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
63
63
|
*/
|
|
64
64
|
settings: WithSettingsInner;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {Array<AccountNotificationDto>}
|
|
68
|
-
* @memberof
|
|
68
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
69
69
|
*/
|
|
70
70
|
notifications: Array<AccountNotificationDto>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<string>}
|
|
74
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
75
|
+
*/
|
|
76
|
+
enabledFeatures: Array<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum>;
|
|
71
77
|
}
|
|
72
78
|
/**
|
|
73
|
-
*
|
|
79
|
+
* @export
|
|
80
|
+
*/
|
|
81
|
+
export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum: {
|
|
82
|
+
readonly LEASE_TO_OWN: "LEASE_TO_OWN";
|
|
83
|
+
readonly SEO_METRICS: "SEO_METRICS";
|
|
84
|
+
};
|
|
85
|
+
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
74
88
|
*/
|
|
75
|
-
export declare function
|
|
76
|
-
export declare function
|
|
77
|
-
export declare function
|
|
78
|
-
export declare function
|
|
79
|
-
export declare function
|
|
89
|
+
export declare function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto(value: object): value is IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto;
|
|
90
|
+
export declare function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON(json: any): IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto;
|
|
91
|
+
export declare function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto;
|
|
92
|
+
export declare function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON(json: any): IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto;
|
|
93
|
+
export declare function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSONTyped(value?: IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,20 +13,28 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = void 0;
|
|
17
|
+
exports.instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto = instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto;
|
|
18
|
+
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON = IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON;
|
|
19
|
+
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSONTyped = IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSONTyped;
|
|
20
|
+
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON = IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON;
|
|
21
|
+
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSONTyped = IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSONTyped;
|
|
21
22
|
var PaymentProviderDto_1 = require("./PaymentProviderDto");
|
|
22
23
|
var WithSettingsInner_1 = require("./WithSettingsInner");
|
|
23
24
|
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
24
25
|
var AccountNotificationDto_1 = require("./AccountNotificationDto");
|
|
25
26
|
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
+
* @export
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
+
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = {
|
|
31
|
+
LEASE_TO_OWN: 'LEASE_TO_OWN',
|
|
32
|
+
SEO_METRICS: 'SEO_METRICS'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto(value) {
|
|
30
38
|
if (!('id' in value) || value['id'] === undefined)
|
|
31
39
|
return false;
|
|
32
40
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
@@ -43,12 +51,14 @@ function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDto(val
|
|
|
43
51
|
return false;
|
|
44
52
|
if (!('notifications' in value) || value['notifications'] === undefined)
|
|
45
53
|
return false;
|
|
54
|
+
if (!('enabledFeatures' in value) || value['enabledFeatures'] === undefined)
|
|
55
|
+
return false;
|
|
46
56
|
return true;
|
|
47
57
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
58
|
+
function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON(json) {
|
|
59
|
+
return IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSONTyped(json, false);
|
|
50
60
|
}
|
|
51
|
-
function
|
|
61
|
+
function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
62
|
if (json == null) {
|
|
53
63
|
return json;
|
|
54
64
|
}
|
|
@@ -61,12 +71,13 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoFromJSONTyped(
|
|
|
61
71
|
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
|
|
62
72
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
|
|
63
73
|
'notifications': (json['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoFromJSON)),
|
|
74
|
+
'enabledFeatures': json['enabledFeatures'],
|
|
64
75
|
};
|
|
65
76
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
77
|
+
function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON(json) {
|
|
78
|
+
return IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSONTyped(json, false);
|
|
68
79
|
}
|
|
69
|
-
function
|
|
80
|
+
function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
70
81
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
71
82
|
if (value == null) {
|
|
72
83
|
return value;
|
|
@@ -80,5 +91,6 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoToJSONTyped(va
|
|
|
80
91
|
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
|
|
81
92
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
|
|
82
93
|
'notifications': (value['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoToJSON)),
|
|
94
|
+
'enabledFeatures': value['enabledFeatures'],
|
|
83
95
|
};
|
|
84
96
|
}
|
|
@@ -34,6 +34,7 @@ function LandingPageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
|
|
36
36
|
'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
|
|
37
|
+
'seoMetrics': json['seoMetrics'] == null ? undefined : json['seoMetrics'],
|
|
37
38
|
'description': json['description'] == null ? undefined : json['description'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -48,6 +49,7 @@ function LandingPageInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
48
49
|
return {
|
|
49
50
|
'anonymous': value['anonymous'],
|
|
50
51
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
52
|
+
'seoMetrics': value['seoMetrics'],
|
|
51
53
|
'description': value['description'],
|
|
52
54
|
};
|
|
53
55
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export * from './BuyerDto';
|
|
|
27
27
|
export * from './BuyerLeadListItemDomainDto';
|
|
28
28
|
export * from './BuyerLeadListItemDto';
|
|
29
29
|
export * from './BuyerSecurityUserDto';
|
|
30
|
+
export * from './BuyerSubscriptionListItemDto';
|
|
31
|
+
export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
30
32
|
export * from './ChangeOrderStatusInput';
|
|
31
33
|
export * from './ChangeSubscriptionStatusInput';
|
|
32
34
|
export * from './ChartDataPoint';
|
|
@@ -75,9 +77,10 @@ export * from './GetAllOwnedDomains200Response';
|
|
|
75
77
|
export * from './GetAllSubscriptions200Response';
|
|
76
78
|
export * from './GetAllSubscriptions200Response1';
|
|
77
79
|
export * from './GetBuyerLeads200Response';
|
|
80
|
+
export * from './GetBuyerSubscriptions200Response';
|
|
78
81
|
export * from './GetBuyerTransfers200Response';
|
|
79
82
|
export * from './HttpException';
|
|
80
|
-
export * from './
|
|
83
|
+
export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
|
|
81
84
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
82
85
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
83
86
|
export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
|
package/dist/models/index.js
CHANGED
|
@@ -45,6 +45,8 @@ __exportStar(require("./BuyerDto"), exports);
|
|
|
45
45
|
__exportStar(require("./BuyerLeadListItemDomainDto"), exports);
|
|
46
46
|
__exportStar(require("./BuyerLeadListItemDto"), exports);
|
|
47
47
|
__exportStar(require("./BuyerSecurityUserDto"), exports);
|
|
48
|
+
__exportStar(require("./BuyerSubscriptionListItemDto"), exports);
|
|
49
|
+
__exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports);
|
|
48
50
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
49
51
|
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
50
52
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
@@ -93,9 +95,10 @@ __exportStar(require("./GetAllOwnedDomains200Response"), exports);
|
|
|
93
95
|
__exportStar(require("./GetAllSubscriptions200Response"), exports);
|
|
94
96
|
__exportStar(require("./GetAllSubscriptions200Response1"), exports);
|
|
95
97
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
98
|
+
__exportStar(require("./GetBuyerSubscriptions200Response"), exports);
|
|
96
99
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
97
100
|
__exportStar(require("./HttpException"), exports);
|
|
98
|
-
__exportStar(require("./
|
|
101
|
+
__exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto"), exports);
|
|
99
102
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
100
103
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
101
104
|
__exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -19,7 +19,7 @@ import type {
|
|
|
19
19
|
AccountSettingsDto,
|
|
20
20
|
AccountSettingsInput,
|
|
21
21
|
BadRequestException,
|
|
22
|
-
|
|
22
|
+
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
|
|
23
23
|
NotFoundException,
|
|
24
24
|
ThrottlerException,
|
|
25
25
|
UpdateAccountBillingInformationInput,
|
|
@@ -34,8 +34,8 @@ import {
|
|
|
34
34
|
AccountSettingsInputToJSON,
|
|
35
35
|
BadRequestExceptionFromJSON,
|
|
36
36
|
BadRequestExceptionToJSON,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON,
|
|
38
|
+
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
|
|
39
39
|
NotFoundExceptionFromJSON,
|
|
40
40
|
NotFoundExceptionToJSON,
|
|
41
41
|
ThrottlerExceptionFromJSON,
|
|
@@ -153,7 +153,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
153
153
|
/**
|
|
154
154
|
*
|
|
155
155
|
*/
|
|
156
|
-
async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
156
|
+
async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>> {
|
|
157
157
|
const queryParameters: any = {};
|
|
158
158
|
|
|
159
159
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -173,13 +173,13 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
173
173
|
query: queryParameters,
|
|
174
174
|
}, initOverrides);
|
|
175
175
|
|
|
176
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
176
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON(jsonValue));
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
*
|
|
181
181
|
*/
|
|
182
|
-
async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
182
|
+
async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto> {
|
|
183
183
|
const response = await this.meRaw(initOverrides);
|
|
184
184
|
return await response.value();
|
|
185
185
|
}
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
CreateBuyerLeadMessageInput,
|
|
25
25
|
GetAllInvoices200Response,
|
|
26
26
|
GetBuyerLeads200Response,
|
|
27
|
+
GetBuyerSubscriptions200Response,
|
|
27
28
|
GetBuyerTransfers200Response,
|
|
28
29
|
LeadDto,
|
|
29
30
|
LeadMessageDto,
|
|
@@ -54,6 +55,8 @@ import {
|
|
|
54
55
|
GetAllInvoices200ResponseToJSON,
|
|
55
56
|
GetBuyerLeads200ResponseFromJSON,
|
|
56
57
|
GetBuyerLeads200ResponseToJSON,
|
|
58
|
+
GetBuyerSubscriptions200ResponseFromJSON,
|
|
59
|
+
GetBuyerSubscriptions200ResponseToJSON,
|
|
57
60
|
GetBuyerTransfers200ResponseFromJSON,
|
|
58
61
|
GetBuyerTransfers200ResponseToJSON,
|
|
59
62
|
LeadDtoFromJSON,
|
|
@@ -124,6 +127,13 @@ export interface BuyersApiGetBuyerLeadsRequest {
|
|
|
124
127
|
sortBy?: Array<string>;
|
|
125
128
|
}
|
|
126
129
|
|
|
130
|
+
export interface BuyersApiGetBuyerSubscriptionsRequest {
|
|
131
|
+
filter?: object;
|
|
132
|
+
page?: number;
|
|
133
|
+
limit?: number;
|
|
134
|
+
sortBy?: Array<string>;
|
|
135
|
+
}
|
|
136
|
+
|
|
127
137
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
128
138
|
filter?: object;
|
|
129
139
|
page?: number;
|
|
@@ -642,6 +652,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
642
652
|
return await response.value();
|
|
643
653
|
}
|
|
644
654
|
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
*/
|
|
658
|
+
async getBuyerSubscriptionsRaw(requestParameters: BuyersApiGetBuyerSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerSubscriptions200Response>> {
|
|
659
|
+
const queryParameters: any = {};
|
|
660
|
+
|
|
661
|
+
if (requestParameters['filter'] != null) {
|
|
662
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
if (requestParameters['page'] != null) {
|
|
666
|
+
queryParameters['page'] = requestParameters['page'];
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
if (requestParameters['limit'] != null) {
|
|
670
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if (requestParameters['sortBy'] != null) {
|
|
674
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
678
|
+
|
|
679
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
680
|
+
const token = this.configuration.accessToken;
|
|
681
|
+
const tokenString = await token("bearer", []);
|
|
682
|
+
|
|
683
|
+
if (tokenString) {
|
|
684
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
const response = await this.request({
|
|
688
|
+
path: `/buyers/private/subscriptions`,
|
|
689
|
+
method: 'GET',
|
|
690
|
+
headers: headerParameters,
|
|
691
|
+
query: queryParameters,
|
|
692
|
+
}, initOverrides);
|
|
693
|
+
|
|
694
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetBuyerSubscriptions200ResponseFromJSON(jsonValue));
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
*/
|
|
700
|
+
async getBuyerSubscriptions(requestParameters: BuyersApiGetBuyerSubscriptionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerSubscriptions200Response> {
|
|
701
|
+
const response = await this.getBuyerSubscriptionsRaw(requestParameters, initOverrides);
|
|
702
|
+
return await response.value();
|
|
703
|
+
}
|
|
704
|
+
|
|
645
705
|
/**
|
|
646
706
|
*
|
|
647
707
|
*/
|
|
@@ -31,6 +31,12 @@ export interface AccountSettingsLandingDto {
|
|
|
31
31
|
* @memberof AccountSettingsLandingDto
|
|
32
32
|
*/
|
|
33
33
|
showRelatedDomains: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof AccountSettingsLandingDto
|
|
38
|
+
*/
|
|
39
|
+
seoMetrics: boolean;
|
|
34
40
|
/**
|
|
35
41
|
*
|
|
36
42
|
* @type {string}
|
|
@@ -51,6 +57,7 @@ export interface AccountSettingsLandingDto {
|
|
|
51
57
|
export function instanceOfAccountSettingsLandingDto(value: object): value is AccountSettingsLandingDto {
|
|
52
58
|
if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
|
|
53
59
|
if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined) return false;
|
|
60
|
+
if (!('seoMetrics' in value) || value['seoMetrics'] === undefined) return false;
|
|
54
61
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
55
62
|
if (!('avatar' in value) || value['avatar'] === undefined) return false;
|
|
56
63
|
return true;
|
|
@@ -68,6 +75,7 @@ export function AccountSettingsLandingDtoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
68
75
|
|
|
69
76
|
'anonymous': json['anonymous'],
|
|
70
77
|
'showRelatedDomains': json['showRelatedDomains'],
|
|
78
|
+
'seoMetrics': json['seoMetrics'],
|
|
71
79
|
'description': json['description'],
|
|
72
80
|
'avatar': json['avatar'],
|
|
73
81
|
};
|
|
@@ -86,6 +94,7 @@ export function AccountSettingsLandingDtoToJSONTyped(value?: AccountSettingsLand
|
|
|
86
94
|
|
|
87
95
|
'anonymous': value['anonymous'],
|
|
88
96
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
97
|
+
'seoMetrics': value['seoMetrics'],
|
|
89
98
|
'description': value['description'],
|
|
90
99
|
'avatar': value['avatar'],
|
|
91
100
|
};
|
|
@@ -0,0 +1,158 @@
|
|
|
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 { BuyerSubscriptionListItemDtoDomainInformation } from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
17
|
+
import {
|
|
18
|
+
BuyerSubscriptionListItemDtoDomainInformationFromJSON,
|
|
19
|
+
BuyerSubscriptionListItemDtoDomainInformationFromJSONTyped,
|
|
20
|
+
BuyerSubscriptionListItemDtoDomainInformationToJSON,
|
|
21
|
+
BuyerSubscriptionListItemDtoDomainInformationToJSONTyped,
|
|
22
|
+
} from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
23
|
+
import type { MoneyDto } from './MoneyDto';
|
|
24
|
+
import {
|
|
25
|
+
MoneyDtoFromJSON,
|
|
26
|
+
MoneyDtoFromJSONTyped,
|
|
27
|
+
MoneyDtoToJSON,
|
|
28
|
+
MoneyDtoToJSONTyped,
|
|
29
|
+
} from './MoneyDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface BuyerSubscriptionListItemDto
|
|
35
|
+
*/
|
|
36
|
+
export interface BuyerSubscriptionListItemDto {
|
|
37
|
+
/**
|
|
38
|
+
* The subscription ID
|
|
39
|
+
* @type {object}
|
|
40
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
41
|
+
*/
|
|
42
|
+
id: object;
|
|
43
|
+
/**
|
|
44
|
+
* The subscription status
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
47
|
+
*/
|
|
48
|
+
status: BuyerSubscriptionListItemDtoStatusEnum;
|
|
49
|
+
/**
|
|
50
|
+
* The subscription type
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
53
|
+
*/
|
|
54
|
+
type: BuyerSubscriptionListItemDtoTypeEnum;
|
|
55
|
+
/**
|
|
56
|
+
* The subscription start date
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
59
|
+
*/
|
|
60
|
+
startedAt: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
* The subscription creation date
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
* The subscription domain information
|
|
69
|
+
* @type {BuyerSubscriptionListItemDtoDomainInformation}
|
|
70
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
71
|
+
*/
|
|
72
|
+
domain: BuyerSubscriptionListItemDtoDomainInformation;
|
|
73
|
+
/**
|
|
74
|
+
* The subscription base price
|
|
75
|
+
* @type {MoneyDto}
|
|
76
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
77
|
+
*/
|
|
78
|
+
basePrice: MoneyDto | null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export const BuyerSubscriptionListItemDtoStatusEnum = {
|
|
86
|
+
DRAFT: 'draft',
|
|
87
|
+
ACTIVE: 'active',
|
|
88
|
+
PAUSED: 'paused',
|
|
89
|
+
CANCELLED: 'cancelled',
|
|
90
|
+
FINISHED: 'finished'
|
|
91
|
+
} as const;
|
|
92
|
+
export type BuyerSubscriptionListItemDtoStatusEnum = typeof BuyerSubscriptionListItemDtoStatusEnum[keyof typeof BuyerSubscriptionListItemDtoStatusEnum];
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export const BuyerSubscriptionListItemDtoTypeEnum = {
|
|
98
|
+
RENT: 'rent',
|
|
99
|
+
LEASE_TO_OWN: 'lease_to_own'
|
|
100
|
+
} as const;
|
|
101
|
+
export type BuyerSubscriptionListItemDtoTypeEnum = typeof BuyerSubscriptionListItemDtoTypeEnum[keyof typeof BuyerSubscriptionListItemDtoTypeEnum];
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the BuyerSubscriptionListItemDto interface.
|
|
106
|
+
*/
|
|
107
|
+
export function instanceOfBuyerSubscriptionListItemDto(value: object): value is BuyerSubscriptionListItemDto {
|
|
108
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
109
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
110
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
111
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
|
|
112
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
113
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
114
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function BuyerSubscriptionListItemDtoFromJSON(json: any): BuyerSubscriptionListItemDto {
|
|
119
|
+
return BuyerSubscriptionListItemDtoFromJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSubscriptionListItemDto {
|
|
123
|
+
if (json == null) {
|
|
124
|
+
return json;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'id': json['id'],
|
|
129
|
+
'status': json['status'],
|
|
130
|
+
'type': json['type'],
|
|
131
|
+
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
132
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
133
|
+
'domain': BuyerSubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
|
|
134
|
+
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function BuyerSubscriptionListItemDtoToJSON(json: any): BuyerSubscriptionListItemDto {
|
|
139
|
+
return BuyerSubscriptionListItemDtoToJSONTyped(json, false);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptionListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
+
if (value == null) {
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'id': value['id'],
|
|
150
|
+
'status': value['status'],
|
|
151
|
+
'type': value['type'],
|
|
152
|
+
'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
|
|
153
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
154
|
+
'domain': BuyerSubscriptionListItemDtoDomainInformationToJSON(value['domain']),
|
|
155
|
+
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BuyerSubscriptionListItemDtoDomainInformation
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerSubscriptionListItemDtoDomainInformation {
|
|
22
|
+
/**
|
|
23
|
+
* The subscription domain TLD
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerSubscriptionListItemDtoDomainInformation
|
|
26
|
+
*/
|
|
27
|
+
tld: string;
|
|
28
|
+
/**
|
|
29
|
+
* The subscription domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerSubscriptionListItemDtoDomainInformation
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The subscription domain name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerSubscriptionListItemDtoDomainInformation
|
|
38
|
+
*/
|
|
39
|
+
displayName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BuyerSubscriptionListItemDtoDomainInformation interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBuyerSubscriptionListItemDtoDomainInformation(value: object): value is BuyerSubscriptionListItemDtoDomainInformation {
|
|
46
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerSubscriptionListItemDtoDomainInformationFromJSON(json: any): BuyerSubscriptionListItemDtoDomainInformation {
|
|
53
|
+
return BuyerSubscriptionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerSubscriptionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSubscriptionListItemDtoDomainInformation {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'tld': json['tld'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'displayName': json['displayName'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function BuyerSubscriptionListItemDtoDomainInformationToJSON(json: any): BuyerSubscriptionListItemDtoDomainInformation {
|
|
69
|
+
return BuyerSubscriptionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function BuyerSubscriptionListItemDtoDomainInformationToJSONTyped(value?: BuyerSubscriptionListItemDtoDomainInformation | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'tld': value['tld'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'displayName': value['displayName'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|