@randock/nameshift-api-client 0.0.183 → 0.0.185
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 +20 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +9 -1
- package/dist/apis/AccountsApi.js +50 -0
- package/dist/apis/AdminApi.d.ts +27 -1
- package/dist/apis/AdminApi.js +119 -0
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/DomainsPublicApi.d.ts +1 -0
- package/dist/apis/DomainsPublicApi.js +3 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +52 -0
- package/dist/apis/SubscriptionsPublicApi.js +217 -0
- package/dist/apis/TasksApi.d.ts +3 -3
- package/dist/apis/TasksApi.js +1 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +21 -0
- package/dist/models/AccountSettingsDto.js +15 -0
- package/dist/models/AccountSettingsInput.d.ts +7 -0
- package/dist/models/AccountSettingsInput.js +3 -0
- package/dist/models/AccountSettingsLandingDto.d.ts +38 -0
- package/dist/models/AccountSettingsLandingDto.js +55 -0
- package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.d.ts +51 -0
- package/dist/models/AccountSettingsLeaseToOwnConfigurationDto.js +64 -0
- package/dist/models/AccountSettingsSidnDto.d.ts +32 -0
- package/dist/models/AccountSettingsSidnDto.js +51 -0
- package/dist/models/ChangeSubscriptionStatusInput.d.ts +42 -0
- package/dist/models/ChangeSubscriptionStatusInput.js +61 -0
- package/dist/models/CreateSubscriptionInput.d.ts +132 -0
- package/dist/models/CreateSubscriptionInput.js +102 -0
- package/dist/models/DomainDto.d.ts +7 -0
- package/dist/models/DomainDto.js +5 -0
- package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.d.ts +57 -0
- package/dist/models/DomainSalesInformationLeaseToOwnConfigurationDto.js +68 -0
- package/dist/models/GetAllSubscriptions200Response.d.ts +47 -0
- package/dist/models/GetAllSubscriptions200Response.js +62 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -0
- package/dist/models/LeaseToOwnConfigurationDto.d.ts +51 -0
- package/dist/models/LeaseToOwnConfigurationDto.js +64 -0
- package/dist/models/LeaseToOwnConfigurationInput.d.ts +44 -0
- package/dist/models/LeaseToOwnConfigurationInput.js +53 -0
- package/dist/models/LeaseToOwnConfigurationPresetsDto.d.ts +44 -0
- package/dist/models/LeaseToOwnConfigurationPresetsDto.js +59 -0
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/List200Response2.d.ts +3 -3
- package/dist/models/List200Response2.js +3 -3
- package/dist/models/SubscriptionCompanyInfoDto.d.ts +39 -0
- package/dist/models/SubscriptionCompanyInfoDto.js +56 -0
- package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +44 -0
- package/dist/models/SubscriptionCompanyTaxIdDto.js +59 -0
- package/dist/models/SubscriptionDomainDto.d.ts +38 -0
- package/dist/models/SubscriptionDomainDto.js +55 -0
- package/dist/models/SubscriptionDto.d.ts +165 -0
- package/dist/models/SubscriptionDto.js +148 -0
- package/dist/models/SubscriptionListItemDto.d.ts +102 -0
- package/dist/models/SubscriptionListItemDto.js +104 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +64 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.js +73 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.d.ts +44 -0
- package/dist/models/SubscriptionListItemDtoDomainInformation.js +59 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.d.ts +50 -0
- package/dist/models/SubscriptionListItemDtoSellerAccount.js +63 -0
- package/dist/models/UpdateDomainInput.d.ts +7 -0
- package/dist/models/UpdateDomainInput.js +3 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +112 -0
- package/dist/models/UpdateSubscriptionInput.js +81 -0
- package/dist/models/WithSettingsInner.d.ts +7 -0
- package/dist/models/WithSettingsInner.js +5 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +37 -0
- package/src/apis/AdminApi.ts +118 -0
- package/src/apis/DomainsApi.ts +9 -6
- package/src/apis/DomainsPublicApi.ts +5 -0
- package/src/apis/SubscriptionsPublicApi.ts +175 -0
- package/src/apis/TasksApi.ts +6 -6
- package/src/apis/index.ts +1 -0
- package/src/models/AccountSettingsDto.ts +48 -0
- package/src/models/AccountSettingsInput.ts +15 -0
- package/src/models/AccountSettingsLandingDto.ts +75 -0
- package/src/models/AccountSettingsLeaseToOwnConfigurationDto.ts +101 -0
- package/src/models/AccountSettingsSidnDto.ts +66 -0
- package/src/models/ChangeSubscriptionStatusInput.ts +79 -0
- package/src/models/CreateSubscriptionInput.ts +209 -0
- package/src/models/DomainDto.ts +16 -0
- package/src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts +110 -0
- package/src/models/GetAllSubscriptions200Response.ts +106 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +16 -0
- package/src/models/LeaseToOwnConfigurationDto.ts +101 -0
- package/src/models/LeaseToOwnConfigurationInput.ts +81 -0
- package/src/models/LeaseToOwnConfigurationPresetsDto.ts +84 -0
- package/src/models/List200Response1.ts +10 -10
- package/src/models/List200Response2.ts +10 -10
- package/src/models/SubscriptionCompanyInfoDto.ts +83 -0
- package/src/models/SubscriptionCompanyTaxIdDto.ts +84 -0
- package/src/models/SubscriptionDomainDto.ts +75 -0
- package/src/models/SubscriptionDto.ts +292 -0
- package/src/models/SubscriptionListItemDto.ts +189 -0
- package/src/models/SubscriptionListItemDtoBuyerInformation.ts +126 -0
- package/src/models/SubscriptionListItemDtoDomainInformation.ts +84 -0
- package/src/models/SubscriptionListItemDtoSellerAccount.ts +93 -0
- package/src/models/UpdateDomainInput.ts +15 -0
- package/src/models/UpdateSubscriptionInput.ts +179 -0
- package/src/models/WithSettingsInner.ts +16 -0
- package/src/models/index.ts +19 -0
|
@@ -0,0 +1,81 @@
|
|
|
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.UpdateSubscriptionInputPeriodicityUnitEnum = void 0;
|
|
17
|
+
exports.instanceOfUpdateSubscriptionInput = instanceOfUpdateSubscriptionInput;
|
|
18
|
+
exports.UpdateSubscriptionInputFromJSON = UpdateSubscriptionInputFromJSON;
|
|
19
|
+
exports.UpdateSubscriptionInputFromJSONTyped = UpdateSubscriptionInputFromJSONTyped;
|
|
20
|
+
exports.UpdateSubscriptionInputToJSON = UpdateSubscriptionInputToJSON;
|
|
21
|
+
exports.UpdateSubscriptionInputToJSONTyped = UpdateSubscriptionInputToJSONTyped;
|
|
22
|
+
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.UpdateSubscriptionInputPeriodicityUnitEnum = {
|
|
27
|
+
MONTH: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the UpdateSubscriptionInput interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfUpdateSubscriptionInput(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function UpdateSubscriptionInputFromJSON(json) {
|
|
36
|
+
return UpdateSubscriptionInputFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function UpdateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'locale': json['locale'] == null ? undefined : json['locale'],
|
|
44
|
+
'periodicity': json['periodicity'] == null ? undefined : json['periodicity'],
|
|
45
|
+
'periodicityUnit': json['periodicityUnit'] == null ? undefined : json['periodicityUnit'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
47
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
48
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
49
|
+
'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
|
|
50
|
+
'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
|
|
51
|
+
'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
|
|
52
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
53
|
+
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
54
|
+
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
55
|
+
'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function UpdateSubscriptionInputToJSON(json) {
|
|
59
|
+
return UpdateSubscriptionInputToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function UpdateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'locale': value['locale'],
|
|
68
|
+
'periodicity': value['periodicity'],
|
|
69
|
+
'periodicityUnit': value['periodicityUnit'],
|
|
70
|
+
'email': value['email'],
|
|
71
|
+
'firstName': value['firstName'],
|
|
72
|
+
'lastName': value['lastName'],
|
|
73
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
74
|
+
'addressStateCode': value['addressStateCode'],
|
|
75
|
+
'addressLine1': value['addressLine1'],
|
|
76
|
+
'addressLine2': value['addressLine2'],
|
|
77
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
78
|
+
'addressCity': value['addressCity'],
|
|
79
|
+
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MoneyDto } from './MoneyDto';
|
|
13
|
+
import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface WithSettingsInner {
|
|
|
46
47
|
* @memberof WithSettingsInner
|
|
47
48
|
*/
|
|
48
49
|
sidnIdcode: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AccountSettingsLeaseToOwnConfigurationDto}
|
|
53
|
+
* @memberof WithSettingsInner
|
|
54
|
+
*/
|
|
55
|
+
leaseToOwn: AccountSettingsLeaseToOwnConfigurationDto;
|
|
49
56
|
}
|
|
50
57
|
/**
|
|
51
58
|
* Check if a given object implements the WithSettingsInner interface.
|
|
@@ -19,6 +19,7 @@ exports.WithSettingsInnerFromJSONTyped = WithSettingsInnerFromJSONTyped;
|
|
|
19
19
|
exports.WithSettingsInnerToJSON = WithSettingsInnerToJSON;
|
|
20
20
|
exports.WithSettingsInnerToJSONTyped = WithSettingsInnerToJSONTyped;
|
|
21
21
|
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the WithSettingsInner interface.
|
|
24
25
|
*/
|
|
@@ -33,6 +34,8 @@ function instanceOfWithSettingsInner(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('sidnIdcode' in value) || value['sidnIdcode'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
return true;
|
|
37
40
|
}
|
|
38
41
|
function WithSettingsInnerFromJSON(json) {
|
|
@@ -48,6 +51,7 @@ function WithSettingsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
51
|
'anonymous': json['anonymous'],
|
|
49
52
|
'showRelatedDomains': json['showRelatedDomains'],
|
|
50
53
|
'sidnIdcode': json['sidnIdcode'],
|
|
54
|
+
'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
function WithSettingsInnerToJSON(json) {
|
|
@@ -64,5 +68,6 @@ function WithSettingsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
|
64
68
|
'anonymous': value['anonymous'],
|
|
65
69
|
'showRelatedDomains': value['showRelatedDomains'],
|
|
66
70
|
'sidnIdcode': value['sidnIdcode'],
|
|
71
|
+
'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
|
|
67
72
|
};
|
|
68
73
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export * from './AccountNotificationReadStatusDto';
|
|
|
5
5
|
export * from './AccountPaymentProviderSessionDto';
|
|
6
6
|
export * from './AccountSettingsDto';
|
|
7
7
|
export * from './AccountSettingsInput';
|
|
8
|
+
export * from './AccountSettingsLandingDto';
|
|
9
|
+
export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
10
|
+
export * from './AccountSettingsSidnDto';
|
|
8
11
|
export * from './AddressDto';
|
|
9
12
|
export * from './AdminAccountSettingsInput';
|
|
10
13
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
@@ -24,6 +27,7 @@ export * from './BuyerLeadListItemDomainDto';
|
|
|
24
27
|
export * from './BuyerLeadListItemDto';
|
|
25
28
|
export * from './BuyerSecurityUserDto';
|
|
26
29
|
export * from './ChangeOrderStatusInput';
|
|
30
|
+
export * from './ChangeSubscriptionStatusInput';
|
|
27
31
|
export * from './ChartDataPoint';
|
|
28
32
|
export * from './CompanyInformationDto';
|
|
29
33
|
export * from './CompanyTaxIdDto';
|
|
@@ -34,8 +38,10 @@ export * from './CreateLeadInput';
|
|
|
34
38
|
export * from './CreateLeadMessageInput';
|
|
35
39
|
export * from './CreateManualLeadInput';
|
|
36
40
|
export * from './CreateOrderInput';
|
|
41
|
+
export * from './CreateSubscriptionInput';
|
|
37
42
|
export * from './DeleteDomainsInput';
|
|
38
43
|
export * from './DomainDto';
|
|
44
|
+
export * from './DomainSalesInformationLeaseToOwnConfigurationDto';
|
|
39
45
|
export * from './DomainSellerDto';
|
|
40
46
|
export * from './DomainStats';
|
|
41
47
|
export * from './DomainTransferAgentDto';
|
|
@@ -62,6 +68,7 @@ export * from './GetAllDomainTransfers200Response';
|
|
|
62
68
|
export * from './GetAllInvoices200Response';
|
|
63
69
|
export * from './GetAllOrders200Response';
|
|
64
70
|
export * from './GetAllOwnedDomains200Response';
|
|
71
|
+
export * from './GetAllSubscriptions200Response';
|
|
65
72
|
export * from './GetBuyerLeads200Response';
|
|
66
73
|
export * from './GetBuyerTransfers200Response';
|
|
67
74
|
export * from './HttpException';
|
|
@@ -83,6 +90,9 @@ export * from './LeadDto';
|
|
|
83
90
|
export * from './LeadMessageData';
|
|
84
91
|
export * from './LeadMessageDto';
|
|
85
92
|
export * from './LeadStatusDto';
|
|
93
|
+
export * from './LeaseToOwnConfigurationDto';
|
|
94
|
+
export * from './LeaseToOwnConfigurationInput';
|
|
95
|
+
export * from './LeaseToOwnConfigurationPresetsDto';
|
|
86
96
|
export * from './List200Response';
|
|
87
97
|
export * from './List200Response1';
|
|
88
98
|
export * from './List200Response2';
|
|
@@ -131,6 +141,14 @@ export * from './SetDomainTransferConfirmationInput';
|
|
|
131
141
|
export * from './SetNewPasswordInput';
|
|
132
142
|
export * from './StoreBuyerLocaleInput';
|
|
133
143
|
export * from './StoreUserLocaleInput';
|
|
144
|
+
export * from './SubscriptionCompanyInfoDto';
|
|
145
|
+
export * from './SubscriptionCompanyTaxIdDto';
|
|
146
|
+
export * from './SubscriptionDomainDto';
|
|
147
|
+
export * from './SubscriptionDto';
|
|
148
|
+
export * from './SubscriptionListItemDto';
|
|
149
|
+
export * from './SubscriptionListItemDtoBuyerInformation';
|
|
150
|
+
export * from './SubscriptionListItemDtoDomainInformation';
|
|
151
|
+
export * from './SubscriptionListItemDtoSellerAccount';
|
|
134
152
|
export * from './TaskListDomainDto';
|
|
135
153
|
export * from './TaskListDomainTransferDto';
|
|
136
154
|
export * from './TaskListLeadDto';
|
|
@@ -140,6 +158,7 @@ export * from './UpdateDomainInput';
|
|
|
140
158
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
141
159
|
export * from './UpdateLeadInput';
|
|
142
160
|
export * from './UpdateOrderInput';
|
|
161
|
+
export * from './UpdateSubscriptionInput';
|
|
143
162
|
export * from './UserPasswordResetDto';
|
|
144
163
|
export * from './ValidationError';
|
|
145
164
|
export * from './ValidationException';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,9 @@ __exportStar(require("./AccountNotificationReadStatusDto"), exports);
|
|
|
23
23
|
__exportStar(require("./AccountPaymentProviderSessionDto"), exports);
|
|
24
24
|
__exportStar(require("./AccountSettingsDto"), exports);
|
|
25
25
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
26
|
+
__exportStar(require("./AccountSettingsLandingDto"), exports);
|
|
27
|
+
__exportStar(require("./AccountSettingsLeaseToOwnConfigurationDto"), exports);
|
|
28
|
+
__exportStar(require("./AccountSettingsSidnDto"), exports);
|
|
26
29
|
__exportStar(require("./AddressDto"), exports);
|
|
27
30
|
__exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
28
31
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
@@ -42,6 +45,7 @@ __exportStar(require("./BuyerLeadListItemDomainDto"), exports);
|
|
|
42
45
|
__exportStar(require("./BuyerLeadListItemDto"), exports);
|
|
43
46
|
__exportStar(require("./BuyerSecurityUserDto"), exports);
|
|
44
47
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
48
|
+
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
45
49
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
46
50
|
__exportStar(require("./CompanyInformationDto"), exports);
|
|
47
51
|
__exportStar(require("./CompanyTaxIdDto"), exports);
|
|
@@ -52,8 +56,10 @@ __exportStar(require("./CreateLeadInput"), exports);
|
|
|
52
56
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
53
57
|
__exportStar(require("./CreateManualLeadInput"), exports);
|
|
54
58
|
__exportStar(require("./CreateOrderInput"), exports);
|
|
59
|
+
__exportStar(require("./CreateSubscriptionInput"), exports);
|
|
55
60
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
56
61
|
__exportStar(require("./DomainDto"), exports);
|
|
62
|
+
__exportStar(require("./DomainSalesInformationLeaseToOwnConfigurationDto"), exports);
|
|
57
63
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
58
64
|
__exportStar(require("./DomainStats"), exports);
|
|
59
65
|
__exportStar(require("./DomainTransferAgentDto"), exports);
|
|
@@ -80,6 +86,7 @@ __exportStar(require("./GetAllDomainTransfers200Response"), exports);
|
|
|
80
86
|
__exportStar(require("./GetAllInvoices200Response"), exports);
|
|
81
87
|
__exportStar(require("./GetAllOrders200Response"), exports);
|
|
82
88
|
__exportStar(require("./GetAllOwnedDomains200Response"), exports);
|
|
89
|
+
__exportStar(require("./GetAllSubscriptions200Response"), exports);
|
|
83
90
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
84
91
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
85
92
|
__exportStar(require("./HttpException"), exports);
|
|
@@ -101,6 +108,9 @@ __exportStar(require("./LeadDto"), exports);
|
|
|
101
108
|
__exportStar(require("./LeadMessageData"), exports);
|
|
102
109
|
__exportStar(require("./LeadMessageDto"), exports);
|
|
103
110
|
__exportStar(require("./LeadStatusDto"), exports);
|
|
111
|
+
__exportStar(require("./LeaseToOwnConfigurationDto"), exports);
|
|
112
|
+
__exportStar(require("./LeaseToOwnConfigurationInput"), exports);
|
|
113
|
+
__exportStar(require("./LeaseToOwnConfigurationPresetsDto"), exports);
|
|
104
114
|
__exportStar(require("./List200Response"), exports);
|
|
105
115
|
__exportStar(require("./List200Response1"), exports);
|
|
106
116
|
__exportStar(require("./List200Response2"), exports);
|
|
@@ -149,6 +159,14 @@ __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
|
149
159
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
150
160
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
151
161
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
162
|
+
__exportStar(require("./SubscriptionCompanyInfoDto"), exports);
|
|
163
|
+
__exportStar(require("./SubscriptionCompanyTaxIdDto"), exports);
|
|
164
|
+
__exportStar(require("./SubscriptionDomainDto"), exports);
|
|
165
|
+
__exportStar(require("./SubscriptionDto"), exports);
|
|
166
|
+
__exportStar(require("./SubscriptionListItemDto"), exports);
|
|
167
|
+
__exportStar(require("./SubscriptionListItemDtoBuyerInformation"), exports);
|
|
168
|
+
__exportStar(require("./SubscriptionListItemDtoDomainInformation"), exports);
|
|
169
|
+
__exportStar(require("./SubscriptionListItemDtoSellerAccount"), exports);
|
|
152
170
|
__exportStar(require("./TaskListDomainDto"), exports);
|
|
153
171
|
__exportStar(require("./TaskListDomainTransferDto"), exports);
|
|
154
172
|
__exportStar(require("./TaskListLeadDto"), exports);
|
|
@@ -158,6 +176,7 @@ __exportStar(require("./UpdateDomainInput"), exports);
|
|
|
158
176
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
159
177
|
__exportStar(require("./UpdateLeadInput"), exports);
|
|
160
178
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
179
|
+
__exportStar(require("./UpdateSubscriptionInput"), exports);
|
|
161
180
|
__exportStar(require("./UserPasswordResetDto"), exports);
|
|
162
181
|
__exportStar(require("./ValidationError"), exports);
|
|
163
182
|
__exportStar(require("./ValidationException"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AccountPaymentProviderSessionDto,
|
|
19
|
+
AccountSettingsDto,
|
|
19
20
|
AccountSettingsInput,
|
|
20
21
|
BadRequestException,
|
|
21
22
|
IntersectionAccountDtoWithSettingsDtoWithNotificationsDto,
|
|
@@ -27,6 +28,8 @@ import type {
|
|
|
27
28
|
import {
|
|
28
29
|
AccountPaymentProviderSessionDtoFromJSON,
|
|
29
30
|
AccountPaymentProviderSessionDtoToJSON,
|
|
31
|
+
AccountSettingsDtoFromJSON,
|
|
32
|
+
AccountSettingsDtoToJSON,
|
|
30
33
|
AccountSettingsInputFromJSON,
|
|
31
34
|
AccountSettingsInputToJSON,
|
|
32
35
|
BadRequestExceptionFromJSON,
|
|
@@ -108,6 +111,40 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
108
111
|
return await response.value();
|
|
109
112
|
}
|
|
110
113
|
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
async getAccountSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSettingsDto>> {
|
|
118
|
+
const queryParameters: any = {};
|
|
119
|
+
|
|
120
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
121
|
+
|
|
122
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
123
|
+
const token = this.configuration.accessToken;
|
|
124
|
+
const tokenString = await token("bearer", []);
|
|
125
|
+
|
|
126
|
+
if (tokenString) {
|
|
127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: `/private/accounts/me/settings`,
|
|
132
|
+
method: 'GET',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountSettingsDtoFromJSON(jsonValue));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
async getAccountSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto> {
|
|
144
|
+
const response = await this.getAccountSettingsRaw(initOverrides);
|
|
145
|
+
return await response.value();
|
|
146
|
+
}
|
|
147
|
+
|
|
111
148
|
/**
|
|
112
149
|
*
|
|
113
150
|
*/
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -20,10 +20,12 @@ import type {
|
|
|
20
20
|
AdminGetAllDomainTransfers200Response,
|
|
21
21
|
BadRequestException,
|
|
22
22
|
ChangeOrderStatusInput,
|
|
23
|
+
ChangeSubscriptionStatusInput,
|
|
23
24
|
DomainTransferDetailsDto,
|
|
24
25
|
GetAllInvoices200Response,
|
|
25
26
|
GetAllOrders200Response,
|
|
26
27
|
GetAllOwnedDomains200Response,
|
|
28
|
+
GetAllSubscriptions200Response,
|
|
27
29
|
ListAccounts200Response,
|
|
28
30
|
ListDomains200Response,
|
|
29
31
|
NotFoundException,
|
|
@@ -41,6 +43,8 @@ import {
|
|
|
41
43
|
BadRequestExceptionToJSON,
|
|
42
44
|
ChangeOrderStatusInputFromJSON,
|
|
43
45
|
ChangeOrderStatusInputToJSON,
|
|
46
|
+
ChangeSubscriptionStatusInputFromJSON,
|
|
47
|
+
ChangeSubscriptionStatusInputToJSON,
|
|
44
48
|
DomainTransferDetailsDtoFromJSON,
|
|
45
49
|
DomainTransferDetailsDtoToJSON,
|
|
46
50
|
GetAllInvoices200ResponseFromJSON,
|
|
@@ -49,6 +53,8 @@ import {
|
|
|
49
53
|
GetAllOrders200ResponseToJSON,
|
|
50
54
|
GetAllOwnedDomains200ResponseFromJSON,
|
|
51
55
|
GetAllOwnedDomains200ResponseToJSON,
|
|
56
|
+
GetAllSubscriptions200ResponseFromJSON,
|
|
57
|
+
GetAllSubscriptions200ResponseToJSON,
|
|
52
58
|
ListAccounts200ResponseFromJSON,
|
|
53
59
|
ListAccounts200ResponseToJSON,
|
|
54
60
|
ListDomains200ResponseFromJSON,
|
|
@@ -73,6 +79,11 @@ export interface AdminApiChangeOrderStatusRequest {
|
|
|
73
79
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
74
80
|
}
|
|
75
81
|
|
|
82
|
+
export interface AdminApiChangeSubscriptionStatusRequest {
|
|
83
|
+
subscriptionId: string;
|
|
84
|
+
changeSubscriptionStatusInput: ChangeSubscriptionStatusInput;
|
|
85
|
+
}
|
|
86
|
+
|
|
76
87
|
export interface AdminApiDownloadInvoiceRequest {
|
|
77
88
|
invoiceId: string;
|
|
78
89
|
}
|
|
@@ -106,6 +117,13 @@ export interface AdminApiGetAllOwnedDomainsRequest {
|
|
|
106
117
|
sortBy?: Array<string>;
|
|
107
118
|
}
|
|
108
119
|
|
|
120
|
+
export interface AdminApiGetAllSubscriptionsRequest {
|
|
121
|
+
filter?: object;
|
|
122
|
+
page?: number;
|
|
123
|
+
limit?: number;
|
|
124
|
+
sortBy?: Array<string>;
|
|
125
|
+
}
|
|
126
|
+
|
|
109
127
|
export interface AdminApiListAccountsRequest {
|
|
110
128
|
filter?: object;
|
|
111
129
|
page?: number;
|
|
@@ -249,6 +267,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
249
267
|
await this.changeOrderStatusRaw(requestParameters, initOverrides);
|
|
250
268
|
}
|
|
251
269
|
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
273
|
+
async changeSubscriptionStatusRaw(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
274
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
275
|
+
throw new runtime.RequiredError(
|
|
276
|
+
'subscriptionId',
|
|
277
|
+
'Required parameter "subscriptionId" was null or undefined when calling changeSubscriptionStatus().'
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
if (requestParameters['changeSubscriptionStatusInput'] == null) {
|
|
282
|
+
throw new runtime.RequiredError(
|
|
283
|
+
'changeSubscriptionStatusInput',
|
|
284
|
+
'Required parameter "changeSubscriptionStatusInput" was null or undefined when calling changeSubscriptionStatus().'
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const queryParameters: any = {};
|
|
289
|
+
|
|
290
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
291
|
+
|
|
292
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
293
|
+
|
|
294
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
295
|
+
const token = this.configuration.accessToken;
|
|
296
|
+
const tokenString = await token("bearer", []);
|
|
297
|
+
|
|
298
|
+
if (tokenString) {
|
|
299
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
const response = await this.request({
|
|
303
|
+
path: `/admin/subscriptions/{subscriptionId}/status`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
304
|
+
method: 'PATCH',
|
|
305
|
+
headers: headerParameters,
|
|
306
|
+
query: queryParameters,
|
|
307
|
+
body: ChangeSubscriptionStatusInputToJSON(requestParameters['changeSubscriptionStatusInput']),
|
|
308
|
+
}, initOverrides);
|
|
309
|
+
|
|
310
|
+
return new runtime.VoidApiResponse(response);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
*/
|
|
316
|
+
async changeSubscriptionStatus(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
317
|
+
await this.changeSubscriptionStatusRaw(requestParameters, initOverrides);
|
|
318
|
+
}
|
|
319
|
+
|
|
252
320
|
/**
|
|
253
321
|
*
|
|
254
322
|
*/
|
|
@@ -522,6 +590,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
522
590
|
return await response.value();
|
|
523
591
|
}
|
|
524
592
|
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
*/
|
|
596
|
+
async getAllSubscriptionsRaw(requestParameters: AdminApiGetAllSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllSubscriptions200Response>> {
|
|
597
|
+
const queryParameters: any = {};
|
|
598
|
+
|
|
599
|
+
if (requestParameters['filter'] != null) {
|
|
600
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
if (requestParameters['page'] != null) {
|
|
604
|
+
queryParameters['page'] = requestParameters['page'];
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
if (requestParameters['limit'] != null) {
|
|
608
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (requestParameters['sortBy'] != null) {
|
|
612
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
616
|
+
|
|
617
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
618
|
+
const token = this.configuration.accessToken;
|
|
619
|
+
const tokenString = await token("bearer", []);
|
|
620
|
+
|
|
621
|
+
if (tokenString) {
|
|
622
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
const response = await this.request({
|
|
626
|
+
path: `/admin/subscriptions`,
|
|
627
|
+
method: 'GET',
|
|
628
|
+
headers: headerParameters,
|
|
629
|
+
query: queryParameters,
|
|
630
|
+
}, initOverrides);
|
|
631
|
+
|
|
632
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAllSubscriptions200ResponseFromJSON(jsonValue));
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
*/
|
|
638
|
+
async getAllSubscriptions(requestParameters: AdminApiGetAllSubscriptionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllSubscriptions200Response> {
|
|
639
|
+
const response = await this.getAllSubscriptionsRaw(requestParameters, initOverrides);
|
|
640
|
+
return await response.value();
|
|
641
|
+
}
|
|
642
|
+
|
|
525
643
|
/**
|
|
526
644
|
*
|
|
527
645
|
*/
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BadRequestException,
|
|
18
19
|
BatchImportPreviewDto,
|
|
19
20
|
BatchUpdateDomainsInput,
|
|
20
21
|
DeleteDomainsInput,
|
|
@@ -22,7 +23,7 @@ import type {
|
|
|
22
23
|
DomainUrlDto,
|
|
23
24
|
GetAllDomainTransfers200Response,
|
|
24
25
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
25
|
-
|
|
26
|
+
List200Response2,
|
|
26
27
|
NotFoundException,
|
|
27
28
|
SellerDomainTransferDto,
|
|
28
29
|
ThrottlerException,
|
|
@@ -31,6 +32,8 @@ import type {
|
|
|
31
32
|
ValidationException,
|
|
32
33
|
} from '../models/index';
|
|
33
34
|
import {
|
|
35
|
+
BadRequestExceptionFromJSON,
|
|
36
|
+
BadRequestExceptionToJSON,
|
|
34
37
|
BatchImportPreviewDtoFromJSON,
|
|
35
38
|
BatchImportPreviewDtoToJSON,
|
|
36
39
|
BatchUpdateDomainsInputFromJSON,
|
|
@@ -45,8 +48,8 @@ import {
|
|
|
45
48
|
GetAllDomainTransfers200ResponseToJSON,
|
|
46
49
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON,
|
|
47
50
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON,
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
List200Response2FromJSON,
|
|
52
|
+
List200Response2ToJSON,
|
|
50
53
|
NotFoundExceptionFromJSON,
|
|
51
54
|
NotFoundExceptionToJSON,
|
|
52
55
|
SellerDomainTransferDtoFromJSON,
|
|
@@ -571,7 +574,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
571
574
|
/**
|
|
572
575
|
*
|
|
573
576
|
*/
|
|
574
|
-
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
577
|
+
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response2>> {
|
|
575
578
|
const queryParameters: any = {};
|
|
576
579
|
|
|
577
580
|
if (requestParameters['filter'] != null) {
|
|
@@ -607,13 +610,13 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
607
610
|
query: queryParameters,
|
|
608
611
|
}, initOverrides);
|
|
609
612
|
|
|
610
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
613
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200Response2FromJSON(jsonValue));
|
|
611
614
|
}
|
|
612
615
|
|
|
613
616
|
/**
|
|
614
617
|
*
|
|
615
618
|
*/
|
|
616
|
-
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
619
|
+
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response2> {
|
|
617
620
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
618
621
|
return await response.value();
|
|
619
622
|
}
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
38
38
|
domainName: string;
|
|
39
39
|
includeStats?: boolean;
|
|
40
|
+
subscriptionPeriodicity?: number;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
export interface DomainsPublicApiListRequest {
|
|
@@ -68,6 +69,10 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
68
69
|
queryParameters['includeStats'] = requestParameters['includeStats'];
|
|
69
70
|
}
|
|
70
71
|
|
|
72
|
+
if (requestParameters['subscriptionPeriodicity'] != null) {
|
|
73
|
+
queryParameters['subscriptionPeriodicity'] = requestParameters['subscriptionPeriodicity'];
|
|
74
|
+
}
|
|
75
|
+
|
|
71
76
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
77
|
|
|
73
78
|
const response = await this.request({
|