@randock/nameshift-api-client 0.0.196 → 0.0.198
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 +5 -1
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/SubscriptionsApi.d.ts +32 -0
- package/dist/apis/SubscriptionsApi.js +143 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountSettingsLandingDto.d.ts +6 -0
- package/dist/models/AccountSettingsLandingDto.js +4 -0
- package/dist/models/GetAllSubscriptions200Response1.d.ts +47 -0
- package/dist/models/GetAllSubscriptions200Response1.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/SellerSubscriptionListItemDto.d.ts +89 -0
- package/dist/models/SellerSubscriptionListItemDto.js +95 -0
- package/dist/models/SellerSubscriptionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SellerSubscriptionListItemDtoDomainInformation.js +59 -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/SubscriptionsApi.ts +93 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountSettingsLandingDto.ts +9 -0
- package/src/models/GetAllSubscriptions200Response1.ts +106 -0
- package/src/models/{IntersectionAccountDtoWithSettingsDtoWithNotificationsDto.ts → IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts} +38 -18
- package/src/models/LandingPageInput.ts +8 -0
- package/src/models/SellerSubscriptionListItemDto.ts +158 -0
- package/src/models/SellerSubscriptionListItemDtoDomainInformation.ts +84 -0
- package/src/models/index.ts +4 -1
|
@@ -0,0 +1,89 @@
|
|
|
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 { SellerSubscriptionListItemDtoDomainInformation } from './SellerSubscriptionListItemDtoDomainInformation';
|
|
13
|
+
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SellerSubscriptionListItemDto
|
|
18
|
+
*/
|
|
19
|
+
export interface SellerSubscriptionListItemDto {
|
|
20
|
+
/**
|
|
21
|
+
* The subscription ID
|
|
22
|
+
* @type {object}
|
|
23
|
+
* @memberof SellerSubscriptionListItemDto
|
|
24
|
+
*/
|
|
25
|
+
id: object;
|
|
26
|
+
/**
|
|
27
|
+
* The subscription status
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SellerSubscriptionListItemDto
|
|
30
|
+
*/
|
|
31
|
+
status: SellerSubscriptionListItemDtoStatusEnum;
|
|
32
|
+
/**
|
|
33
|
+
* The subscription type
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof SellerSubscriptionListItemDto
|
|
36
|
+
*/
|
|
37
|
+
type: SellerSubscriptionListItemDtoTypeEnum;
|
|
38
|
+
/**
|
|
39
|
+
* The subscription start date
|
|
40
|
+
* @type {Date}
|
|
41
|
+
* @memberof SellerSubscriptionListItemDto
|
|
42
|
+
*/
|
|
43
|
+
startedAt: Date | null;
|
|
44
|
+
/**
|
|
45
|
+
* The subscription creation date
|
|
46
|
+
* @type {Date}
|
|
47
|
+
* @memberof SellerSubscriptionListItemDto
|
|
48
|
+
*/
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
/**
|
|
51
|
+
* The subscription domain information
|
|
52
|
+
* @type {SellerSubscriptionListItemDtoDomainInformation}
|
|
53
|
+
* @memberof SellerSubscriptionListItemDto
|
|
54
|
+
*/
|
|
55
|
+
domain: SellerSubscriptionListItemDtoDomainInformation;
|
|
56
|
+
/**
|
|
57
|
+
* The subscription base price
|
|
58
|
+
* @type {MoneyDto}
|
|
59
|
+
* @memberof SellerSubscriptionListItemDto
|
|
60
|
+
*/
|
|
61
|
+
basePrice: MoneyDto | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const SellerSubscriptionListItemDtoStatusEnum: {
|
|
67
|
+
readonly DRAFT: "draft";
|
|
68
|
+
readonly ACTIVE: "active";
|
|
69
|
+
readonly PAUSED: "paused";
|
|
70
|
+
readonly CANCELLED: "cancelled";
|
|
71
|
+
readonly FINISHED: "finished";
|
|
72
|
+
};
|
|
73
|
+
export type SellerSubscriptionListItemDtoStatusEnum = typeof SellerSubscriptionListItemDtoStatusEnum[keyof typeof SellerSubscriptionListItemDtoStatusEnum];
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const SellerSubscriptionListItemDtoTypeEnum: {
|
|
78
|
+
readonly RENT: "rent";
|
|
79
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
80
|
+
};
|
|
81
|
+
export type SellerSubscriptionListItemDtoTypeEnum = typeof SellerSubscriptionListItemDtoTypeEnum[keyof typeof SellerSubscriptionListItemDtoTypeEnum];
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the SellerSubscriptionListItemDto interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfSellerSubscriptionListItemDto(value: object): value is SellerSubscriptionListItemDto;
|
|
86
|
+
export declare function SellerSubscriptionListItemDtoFromJSON(json: any): SellerSubscriptionListItemDto;
|
|
87
|
+
export declare function SellerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSubscriptionListItemDto;
|
|
88
|
+
export declare function SellerSubscriptionListItemDtoToJSON(json: any): SellerSubscriptionListItemDto;
|
|
89
|
+
export declare function SellerSubscriptionListItemDtoToJSONTyped(value?: SellerSubscriptionListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
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.SellerSubscriptionListItemDtoTypeEnum = exports.SellerSubscriptionListItemDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfSellerSubscriptionListItemDto = instanceOfSellerSubscriptionListItemDto;
|
|
18
|
+
exports.SellerSubscriptionListItemDtoFromJSON = SellerSubscriptionListItemDtoFromJSON;
|
|
19
|
+
exports.SellerSubscriptionListItemDtoFromJSONTyped = SellerSubscriptionListItemDtoFromJSONTyped;
|
|
20
|
+
exports.SellerSubscriptionListItemDtoToJSON = SellerSubscriptionListItemDtoToJSON;
|
|
21
|
+
exports.SellerSubscriptionListItemDtoToJSONTyped = SellerSubscriptionListItemDtoToJSONTyped;
|
|
22
|
+
var SellerSubscriptionListItemDtoDomainInformation_1 = require("./SellerSubscriptionListItemDtoDomainInformation");
|
|
23
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.SellerSubscriptionListItemDtoStatusEnum = {
|
|
28
|
+
DRAFT: 'draft',
|
|
29
|
+
ACTIVE: 'active',
|
|
30
|
+
PAUSED: 'paused',
|
|
31
|
+
CANCELLED: 'cancelled',
|
|
32
|
+
FINISHED: 'finished'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.SellerSubscriptionListItemDtoTypeEnum = {
|
|
38
|
+
RENT: 'rent',
|
|
39
|
+
LEASE_TO_OWN: 'lease_to_own'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the SellerSubscriptionListItemDto interface.
|
|
43
|
+
*/
|
|
44
|
+
function instanceOfSellerSubscriptionListItemDto(value) {
|
|
45
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
function SellerSubscriptionListItemDtoFromJSON(json) {
|
|
62
|
+
return SellerSubscriptionListItemDtoFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function SellerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'status': json['status'],
|
|
71
|
+
'type': json['type'],
|
|
72
|
+
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
73
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
74
|
+
'domain': (0, SellerSubscriptionListItemDtoDomainInformation_1.SellerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
|
|
75
|
+
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function SellerSubscriptionListItemDtoToJSON(json) {
|
|
79
|
+
return SellerSubscriptionListItemDtoToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function SellerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
82
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'status': value['status'],
|
|
89
|
+
'type': value['type'],
|
|
90
|
+
'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
|
|
91
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
92
|
+
'domain': (0, SellerSubscriptionListItemDtoDomainInformation_1.SellerSubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
|
|
93
|
+
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SellerSubscriptionListItemDtoDomainInformation
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerSubscriptionListItemDtoDomainInformation {
|
|
18
|
+
/**
|
|
19
|
+
* The subscription domain TLD
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SellerSubscriptionListItemDtoDomainInformation
|
|
22
|
+
*/
|
|
23
|
+
tld: string;
|
|
24
|
+
/**
|
|
25
|
+
* The subscription domain name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SellerSubscriptionListItemDtoDomainInformation
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The subscription domain name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellerSubscriptionListItemDtoDomainInformation
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SellerSubscriptionListItemDtoDomainInformation interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSellerSubscriptionListItemDtoDomainInformation(value: object): value is SellerSubscriptionListItemDtoDomainInformation;
|
|
41
|
+
export declare function SellerSubscriptionListItemDtoDomainInformationFromJSON(json: any): SellerSubscriptionListItemDtoDomainInformation;
|
|
42
|
+
export declare function SellerSubscriptionListItemDtoDomainInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerSubscriptionListItemDtoDomainInformation;
|
|
43
|
+
export declare function SellerSubscriptionListItemDtoDomainInformationToJSON(json: any): SellerSubscriptionListItemDtoDomainInformation;
|
|
44
|
+
export declare function SellerSubscriptionListItemDtoDomainInformationToJSONTyped(value?: SellerSubscriptionListItemDtoDomainInformation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfSellerSubscriptionListItemDtoDomainInformation = instanceOfSellerSubscriptionListItemDtoDomainInformation;
|
|
17
|
+
exports.SellerSubscriptionListItemDtoDomainInformationFromJSON = SellerSubscriptionListItemDtoDomainInformationFromJSON;
|
|
18
|
+
exports.SellerSubscriptionListItemDtoDomainInformationFromJSONTyped = SellerSubscriptionListItemDtoDomainInformationFromJSONTyped;
|
|
19
|
+
exports.SellerSubscriptionListItemDtoDomainInformationToJSON = SellerSubscriptionListItemDtoDomainInformationToJSON;
|
|
20
|
+
exports.SellerSubscriptionListItemDtoDomainInformationToJSONTyped = SellerSubscriptionListItemDtoDomainInformationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SellerSubscriptionListItemDtoDomainInformation interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSellerSubscriptionListItemDtoDomainInformation(value) {
|
|
25
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SellerSubscriptionListItemDtoDomainInformationFromJSON(json) {
|
|
34
|
+
return SellerSubscriptionListItemDtoDomainInformationFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SellerSubscriptionListItemDtoDomainInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'tld': json['tld'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'displayName': json['displayName'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SellerSubscriptionListItemDtoDomainInformationToJSON(json) {
|
|
47
|
+
return SellerSubscriptionListItemDtoDomainInformationToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SellerSubscriptionListItemDtoDomainInformationToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'tld': value['tld'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'displayName': value['displayName'],
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -73,10 +73,11 @@ export * from './GetAllInvoices200Response';
|
|
|
73
73
|
export * from './GetAllOrders200Response';
|
|
74
74
|
export * from './GetAllOwnedDomains200Response';
|
|
75
75
|
export * from './GetAllSubscriptions200Response';
|
|
76
|
+
export * from './GetAllSubscriptions200Response1';
|
|
76
77
|
export * from './GetBuyerLeads200Response';
|
|
77
78
|
export * from './GetBuyerTransfers200Response';
|
|
78
79
|
export * from './HttpException';
|
|
79
|
-
export * from './
|
|
80
|
+
export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
|
|
80
81
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
81
82
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
82
83
|
export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
|
|
@@ -142,6 +143,8 @@ export * from './SellerDomainTransferListItemDomainDto';
|
|
|
142
143
|
export * from './SellerDomainTransferListItemDto';
|
|
143
144
|
export * from './SellerSecurityUserAccountDto';
|
|
144
145
|
export * from './SellerSecurityUserDto';
|
|
146
|
+
export * from './SellerSubscriptionListItemDto';
|
|
147
|
+
export * from './SellerSubscriptionListItemDtoDomainInformation';
|
|
145
148
|
export * from './SetDomainTransferConfirmationInput';
|
|
146
149
|
export * from './SetNewPasswordInput';
|
|
147
150
|
export * from './StoreBuyerLocaleInput';
|
package/dist/models/index.js
CHANGED
|
@@ -91,10 +91,11 @@ __exportStar(require("./GetAllInvoices200Response"), exports);
|
|
|
91
91
|
__exportStar(require("./GetAllOrders200Response"), exports);
|
|
92
92
|
__exportStar(require("./GetAllOwnedDomains200Response"), exports);
|
|
93
93
|
__exportStar(require("./GetAllSubscriptions200Response"), exports);
|
|
94
|
+
__exportStar(require("./GetAllSubscriptions200Response1"), exports);
|
|
94
95
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
95
96
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
96
97
|
__exportStar(require("./HttpException"), exports);
|
|
97
|
-
__exportStar(require("./
|
|
98
|
+
__exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto"), exports);
|
|
98
99
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
99
100
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
100
101
|
__exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDto"), exports);
|
|
@@ -160,6 +161,8 @@ __exportStar(require("./SellerDomainTransferListItemDomainDto"), exports);
|
|
|
160
161
|
__exportStar(require("./SellerDomainTransferListItemDto"), exports);
|
|
161
162
|
__exportStar(require("./SellerSecurityUserAccountDto"), exports);
|
|
162
163
|
__exportStar(require("./SellerSecurityUserDto"), exports);
|
|
164
|
+
__exportStar(require("./SellerSubscriptionListItemDto"), exports);
|
|
165
|
+
__exportStar(require("./SellerSubscriptionListItemDtoDomainInformation"), exports);
|
|
163
166
|
__exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
164
167
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
165
168
|
__exportStar(require("./StoreBuyerLocaleInput"), 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
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
GetAllSubscriptions200Response1,
|
|
19
|
+
ThrottlerException,
|
|
20
|
+
ValidationException,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
GetAllSubscriptions200Response1FromJSON,
|
|
24
|
+
GetAllSubscriptions200Response1ToJSON,
|
|
25
|
+
ThrottlerExceptionFromJSON,
|
|
26
|
+
ThrottlerExceptionToJSON,
|
|
27
|
+
ValidationExceptionFromJSON,
|
|
28
|
+
ValidationExceptionToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface SubscriptionsApiGetAllSubscriptionsRequest {
|
|
32
|
+
filter?: object;
|
|
33
|
+
page?: number;
|
|
34
|
+
limit?: number;
|
|
35
|
+
sortBy?: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class SubscriptionsApi extends runtime.BaseAPI {
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
async getAllSubscriptionsRaw(requestParameters: SubscriptionsApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response1>> {
|
|
47
|
+
const queryParameters: any = {};
|
|
48
|
+
|
|
49
|
+
if (requestParameters['filter'] != null) {
|
|
50
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (requestParameters['page'] != null) {
|
|
54
|
+
queryParameters['page'] = requestParameters['page'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (requestParameters['limit'] != null) {
|
|
58
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (requestParameters['sortBy'] != null) {
|
|
62
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
|
+
|
|
67
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
68
|
+
const token = this.configuration.accessToken;
|
|
69
|
+
const tokenString = await token("bearer", []);
|
|
70
|
+
|
|
71
|
+
if (tokenString) {
|
|
72
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const response = await this.request({
|
|
76
|
+
path: `/private/subscriptions`,
|
|
77
|
+
method: 'GET',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
}, initOverrides);
|
|
81
|
+
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAllSubscriptions200Response1FromJSON(jsonValue));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
async getAllSubscriptions(requestParameters: SubscriptionsApiGetAllSubscriptionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response1> {
|
|
89
|
+
const response = await this.getAllSubscriptionsRaw(requestParameters, initOverrides);
|
|
90
|
+
return await response.value();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './LeadsApi';
|
|
|
13
13
|
export * from './LeadsPublicApi';
|
|
14
14
|
export * from './OrdersPublicApi';
|
|
15
15
|
export * from './StripePublicApi';
|
|
16
|
+
export * from './SubscriptionsApi';
|
|
16
17
|
export * from './SubscriptionsPublicApi';
|
|
17
18
|
export * from './TasksApi';
|
|
18
19
|
export * from './UsersApi';
|
|
@@ -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,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 { SellerSubscriptionListItemDto } from './SellerSubscriptionListItemDto';
|
|
24
|
+
import {
|
|
25
|
+
SellerSubscriptionListItemDtoFromJSON,
|
|
26
|
+
SellerSubscriptionListItemDtoFromJSONTyped,
|
|
27
|
+
SellerSubscriptionListItemDtoToJSON,
|
|
28
|
+
SellerSubscriptionListItemDtoToJSONTyped,
|
|
29
|
+
} from './SellerSubscriptionListItemDto';
|
|
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 GetAllSubscriptions200Response1
|
|
42
|
+
*/
|
|
43
|
+
export interface GetAllSubscriptions200Response1 {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<SellerSubscriptionListItemDto>}
|
|
47
|
+
* @memberof GetAllSubscriptions200Response1
|
|
48
|
+
*/
|
|
49
|
+
data: Array<SellerSubscriptionListItemDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof GetAllSubscriptions200Response1
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof GetAllSubscriptions200Response1
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetAllSubscriptions200Response1 interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGetAllSubscriptions200Response1(value: object): value is GetAllSubscriptions200Response1 {
|
|
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 GetAllSubscriptions200Response1FromJSON(json: any): GetAllSubscriptions200Response1 {
|
|
75
|
+
return GetAllSubscriptions200Response1FromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetAllSubscriptions200Response1FromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllSubscriptions200Response1 {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(SellerSubscriptionListItemDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetAllSubscriptions200Response1ToJSON(json: any): GetAllSubscriptions200Response1 {
|
|
91
|
+
return GetAllSubscriptions200Response1ToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetAllSubscriptions200Response1ToJSONTyped(value?: GetAllSubscriptions200Response1 | 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(SellerSubscriptionListItemDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|