@randock/nameshift-api-client 0.0.210 → 0.0.211
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 +7 -2
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/AdminApi.d.ts +12 -1
- package/dist/apis/AdminApi.js +53 -0
- package/dist/apis/BankAccountsApi.d.ts +78 -0
- package/dist/apis/BankAccountsApi.js +356 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountBankAccountDto.d.ts +68 -0
- package/dist/models/AccountBankAccountDto.js +75 -0
- package/dist/models/AccountDto.d.ts +10 -3
- package/dist/models/AccountDto.js +9 -4
- package/dist/models/AccountOnboardingDto.d.ts +65 -0
- package/dist/models/AccountOnboardingDto.js +77 -0
- package/dist/models/AccountOnboardingSessionDto.d.ts +32 -0
- package/dist/models/AccountOnboardingSessionDto.js +51 -0
- package/dist/models/AccountPayoutDto.d.ts +46 -0
- package/dist/models/AccountPayoutDto.js +63 -0
- package/dist/models/AccountSettingsDto.d.ts +0 -6
- package/dist/models/AccountSettingsDto.js +0 -4
- package/dist/models/CreateBankAccountInput.d.ts +56 -0
- package/dist/models/CreateBankAccountInput.js +63 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +11 -3
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +11 -5
- package/dist/models/UpdateBankAccountInput.d.ts +56 -0
- package/dist/models/UpdateBankAccountInput.js +63 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +6 -6
- package/src/apis/AdminApi.ts +48 -0
- package/src/apis/BankAccountsApi.ts +309 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountBankAccountDto.ts +120 -0
- package/src/models/AccountDto.ts +27 -11
- package/src/models/AccountOnboardingDto.ts +112 -0
- package/src/models/AccountOnboardingSessionDto.ts +66 -0
- package/src/models/AccountPayoutDto.ts +86 -0
- package/src/models/AccountSettingsDto.ts +0 -9
- package/src/models/CreateBankAccountInput.ts +100 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +29 -12
- package/src/models/UpdateBankAccountInput.ts +100 -0
- package/src/models/index.ts +6 -2
- package/dist/models/AccountPaymentProviderSessionDto.d.ts +0 -32
- package/dist/models/AccountPaymentProviderSessionDto.js +0 -51
- package/dist/models/PaymentProviderDto.d.ts +0 -52
- package/dist/models/PaymentProviderDto.js +0 -67
- package/src/models/AccountPaymentProviderSessionDto.ts +0 -66
- package/src/models/PaymentProviderDto.ts +0 -95
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfCreateBankAccountInput = instanceOfCreateBankAccountInput;
|
|
17
|
+
exports.CreateBankAccountInputFromJSON = CreateBankAccountInputFromJSON;
|
|
18
|
+
exports.CreateBankAccountInputFromJSONTyped = CreateBankAccountInputFromJSONTyped;
|
|
19
|
+
exports.CreateBankAccountInputToJSON = CreateBankAccountInputToJSON;
|
|
20
|
+
exports.CreateBankAccountInputToJSONTyped = CreateBankAccountInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateBankAccountInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateBankAccountInput(value) {
|
|
25
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('bic' in value) || value['bic'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function CreateBankAccountInputFromJSON(json) {
|
|
34
|
+
return CreateBankAccountInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function CreateBankAccountInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'currencyCode': json['currencyCode'],
|
|
42
|
+
'countryCode': json['countryCode'],
|
|
43
|
+
'bic': json['bic'],
|
|
44
|
+
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
45
|
+
'bban': json['bban'] == null ? undefined : json['bban'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function CreateBankAccountInputToJSON(json) {
|
|
49
|
+
return CreateBankAccountInputToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function CreateBankAccountInputToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'currencyCode': value['currencyCode'],
|
|
58
|
+
'countryCode': value['countryCode'],
|
|
59
|
+
'bic': value['bic'],
|
|
60
|
+
'iban': value['iban'],
|
|
61
|
+
'bban': value['bban'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AccountPayoutDto } from './AccountPayoutDto';
|
|
13
|
+
import type { AccountOnboardingDto } from './AccountOnboardingDto';
|
|
13
14
|
import type { WithSettingsInner } from './WithSettingsInner';
|
|
14
15
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
15
16
|
import type { AccountNotificationDto } from './AccountNotificationDto';
|
|
@@ -46,10 +47,16 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
46
47
|
metrics: AccountMetricsDto;
|
|
47
48
|
/**
|
|
48
49
|
*
|
|
49
|
-
* @type {
|
|
50
|
+
* @type {AccountOnboardingDto}
|
|
50
51
|
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
51
52
|
*/
|
|
52
|
-
|
|
53
|
+
onboarding: AccountOnboardingDto | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {AccountPayoutDto}
|
|
57
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
58
|
+
*/
|
|
59
|
+
payout: AccountPayoutDto;
|
|
53
60
|
/**
|
|
54
61
|
*
|
|
55
62
|
* @type {BillingInformationDto}
|
|
@@ -81,6 +88,7 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
81
88
|
export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum: {
|
|
82
89
|
readonly LEASE_TO_OWN: "LEASE_TO_OWN";
|
|
83
90
|
readonly SEO_METRICS: "SEO_METRICS";
|
|
91
|
+
readonly BANK_PAYOUTS: "BANK_PAYOUTS";
|
|
84
92
|
};
|
|
85
93
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
86
94
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -19,7 +19,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
19
19
|
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSONTyped = IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSONTyped;
|
|
20
20
|
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON = IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON;
|
|
21
21
|
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSONTyped = IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSONTyped;
|
|
22
|
-
var
|
|
22
|
+
var AccountPayoutDto_1 = require("./AccountPayoutDto");
|
|
23
|
+
var AccountOnboardingDto_1 = require("./AccountOnboardingDto");
|
|
23
24
|
var WithSettingsInner_1 = require("./WithSettingsInner");
|
|
24
25
|
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
25
26
|
var AccountNotificationDto_1 = require("./AccountNotificationDto");
|
|
@@ -29,7 +30,8 @@ var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
|
29
30
|
*/
|
|
30
31
|
exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = {
|
|
31
32
|
LEASE_TO_OWN: 'LEASE_TO_OWN',
|
|
32
|
-
SEO_METRICS: 'SEO_METRICS'
|
|
33
|
+
SEO_METRICS: 'SEO_METRICS',
|
|
34
|
+
BANK_PAYOUTS: 'BANK_PAYOUTS'
|
|
33
35
|
};
|
|
34
36
|
/**
|
|
35
37
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -43,7 +45,9 @@ function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWith
|
|
|
43
45
|
return false;
|
|
44
46
|
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
45
47
|
return false;
|
|
46
|
-
if (!('
|
|
48
|
+
if (!('onboarding' in value) || value['onboarding'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('payout' in value) || value['payout'] === undefined)
|
|
47
51
|
return false;
|
|
48
52
|
if (!('billingInformation' in value) || value['billingInformation'] === undefined)
|
|
49
53
|
return false;
|
|
@@ -67,7 +71,8 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
|
|
|
67
71
|
'identifier': json['identifier'],
|
|
68
72
|
'name': json['name'],
|
|
69
73
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
|
|
70
|
-
'
|
|
74
|
+
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
|
|
75
|
+
'payout': (0, AccountPayoutDto_1.AccountPayoutDtoFromJSON)(json['payout']),
|
|
71
76
|
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
|
|
72
77
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
|
|
73
78
|
'notifications': (json['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoFromJSON)),
|
|
@@ -87,7 +92,8 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
|
|
|
87
92
|
'identifier': value['identifier'],
|
|
88
93
|
'name': value['name'],
|
|
89
94
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
|
|
90
|
-
'
|
|
95
|
+
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
|
|
96
|
+
'payout': (0, AccountPayoutDto_1.AccountPayoutDtoToJSON)(value['payout']),
|
|
91
97
|
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
|
|
92
98
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
|
|
93
99
|
'notifications': (value['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoToJSON)),
|
|
@@ -0,0 +1,56 @@
|
|
|
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 UpdateBankAccountInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateBankAccountInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateBankAccountInput
|
|
22
|
+
*/
|
|
23
|
+
currencyCode: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateBankAccountInput
|
|
28
|
+
*/
|
|
29
|
+
countryCode: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateBankAccountInput
|
|
34
|
+
*/
|
|
35
|
+
bic: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateBankAccountInput
|
|
40
|
+
*/
|
|
41
|
+
iban?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateBankAccountInput
|
|
46
|
+
*/
|
|
47
|
+
bban?: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the UpdateBankAccountInput interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfUpdateBankAccountInput(value: object): value is UpdateBankAccountInput;
|
|
53
|
+
export declare function UpdateBankAccountInputFromJSON(json: any): UpdateBankAccountInput;
|
|
54
|
+
export declare function UpdateBankAccountInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBankAccountInput;
|
|
55
|
+
export declare function UpdateBankAccountInputToJSON(json: any): UpdateBankAccountInput;
|
|
56
|
+
export declare function UpdateBankAccountInputToJSONTyped(value?: UpdateBankAccountInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfUpdateBankAccountInput = instanceOfUpdateBankAccountInput;
|
|
17
|
+
exports.UpdateBankAccountInputFromJSON = UpdateBankAccountInputFromJSON;
|
|
18
|
+
exports.UpdateBankAccountInputFromJSONTyped = UpdateBankAccountInputFromJSONTyped;
|
|
19
|
+
exports.UpdateBankAccountInputToJSON = UpdateBankAccountInputToJSON;
|
|
20
|
+
exports.UpdateBankAccountInputToJSONTyped = UpdateBankAccountInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateBankAccountInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateBankAccountInput(value) {
|
|
25
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('bic' in value) || value['bic'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function UpdateBankAccountInputFromJSON(json) {
|
|
34
|
+
return UpdateBankAccountInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function UpdateBankAccountInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'currencyCode': json['currencyCode'],
|
|
42
|
+
'countryCode': json['countryCode'],
|
|
43
|
+
'bic': json['bic'],
|
|
44
|
+
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
45
|
+
'bban': json['bban'] == null ? undefined : json['bban'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function UpdateBankAccountInputToJSON(json) {
|
|
49
|
+
return UpdateBankAccountInputToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function UpdateBankAccountInputToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'currencyCode': value['currencyCode'],
|
|
58
|
+
'countryCode': value['countryCode'],
|
|
59
|
+
'bic': value['bic'],
|
|
60
|
+
'iban': value['iban'],
|
|
61
|
+
'bban': value['bban'],
|
|
62
|
+
};
|
|
63
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export * from './AccountBankAccountDto';
|
|
1
2
|
export * from './AccountDto';
|
|
2
3
|
export * from './AccountMetricsDto';
|
|
3
4
|
export * from './AccountNotificationDto';
|
|
4
5
|
export * from './AccountNotificationReadStatusDto';
|
|
5
|
-
export * from './
|
|
6
|
+
export * from './AccountOnboardingDto';
|
|
7
|
+
export * from './AccountOnboardingSessionDto';
|
|
8
|
+
export * from './AccountPayoutDto';
|
|
6
9
|
export * from './AccountSettingsDto';
|
|
7
10
|
export * from './AccountSettingsInput';
|
|
8
11
|
export * from './AccountSettingsLeaseToOwnConfigurationDto';
|
|
@@ -36,6 +39,7 @@ export * from './CompanyInformationDto';
|
|
|
36
39
|
export * from './CompanyTaxIdDto';
|
|
37
40
|
export * from './ConcreteDomainTransferTaskData';
|
|
38
41
|
export * from './ConflictException';
|
|
42
|
+
export * from './CreateBankAccountInput';
|
|
39
43
|
export * from './CreateBuyerLeadMessageInput';
|
|
40
44
|
export * from './CreateLeadInput';
|
|
41
45
|
export * from './CreateLeadMessageInput';
|
|
@@ -135,7 +139,6 @@ export * from './PaginateResponse';
|
|
|
135
139
|
export * from './PaginateResponseLinks';
|
|
136
140
|
export * from './PaginateResponseMeta';
|
|
137
141
|
export * from './ParsedDomainDto';
|
|
138
|
-
export * from './PaymentProviderDto';
|
|
139
142
|
export * from './PublicDomainDto';
|
|
140
143
|
export * from './PublicDomainDtoSeo';
|
|
141
144
|
export * from './PublicDomainDtoSeoMoz';
|
|
@@ -179,6 +182,7 @@ export * from './TaskListDomainTransferDto';
|
|
|
179
182
|
export * from './TaskListLeadDto';
|
|
180
183
|
export * from './ThrottlerException';
|
|
181
184
|
export * from './UpdateAccountBillingInformationInput';
|
|
185
|
+
export * from './UpdateBankAccountInput';
|
|
182
186
|
export * from './UpdateDomainInput';
|
|
183
187
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
184
188
|
export * from './UpdateLeadInput';
|
package/dist/models/index.js
CHANGED
|
@@ -16,11 +16,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AccountBankAccountDto"), exports);
|
|
19
20
|
__exportStar(require("./AccountDto"), exports);
|
|
20
21
|
__exportStar(require("./AccountMetricsDto"), exports);
|
|
21
22
|
__exportStar(require("./AccountNotificationDto"), exports);
|
|
22
23
|
__exportStar(require("./AccountNotificationReadStatusDto"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./AccountOnboardingDto"), exports);
|
|
25
|
+
__exportStar(require("./AccountOnboardingSessionDto"), exports);
|
|
26
|
+
__exportStar(require("./AccountPayoutDto"), exports);
|
|
24
27
|
__exportStar(require("./AccountSettingsDto"), exports);
|
|
25
28
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
26
29
|
__exportStar(require("./AccountSettingsLeaseToOwnConfigurationDto"), exports);
|
|
@@ -54,6 +57,7 @@ __exportStar(require("./CompanyInformationDto"), exports);
|
|
|
54
57
|
__exportStar(require("./CompanyTaxIdDto"), exports);
|
|
55
58
|
__exportStar(require("./ConcreteDomainTransferTaskData"), exports);
|
|
56
59
|
__exportStar(require("./ConflictException"), exports);
|
|
60
|
+
__exportStar(require("./CreateBankAccountInput"), exports);
|
|
57
61
|
__exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
58
62
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
59
63
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
@@ -153,7 +157,6 @@ __exportStar(require("./PaginateResponse"), exports);
|
|
|
153
157
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
154
158
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
155
159
|
__exportStar(require("./ParsedDomainDto"), exports);
|
|
156
|
-
__exportStar(require("./PaymentProviderDto"), exports);
|
|
157
160
|
__exportStar(require("./PublicDomainDto"), exports);
|
|
158
161
|
__exportStar(require("./PublicDomainDtoSeo"), exports);
|
|
159
162
|
__exportStar(require("./PublicDomainDtoSeoMoz"), exports);
|
|
@@ -197,6 +200,7 @@ __exportStar(require("./TaskListDomainTransferDto"), exports);
|
|
|
197
200
|
__exportStar(require("./TaskListLeadDto"), exports);
|
|
198
201
|
__exportStar(require("./ThrottlerException"), exports);
|
|
199
202
|
__exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
203
|
+
__exportStar(require("./UpdateBankAccountInput"), exports);
|
|
200
204
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
201
205
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
202
206
|
__exportStar(require("./UpdateLeadInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
AccountOnboardingSessionDto,
|
|
19
19
|
AccountSettingsDto,
|
|
20
20
|
AccountSettingsInput,
|
|
21
21
|
BadRequestException,
|
|
@@ -26,8 +26,8 @@ import type {
|
|
|
26
26
|
ValidationException,
|
|
27
27
|
} from '../models/index';
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
AccountOnboardingSessionDtoFromJSON,
|
|
30
|
+
AccountOnboardingSessionDtoToJSON,
|
|
31
31
|
AccountSettingsDtoFromJSON,
|
|
32
32
|
AccountSettingsDtoToJSON,
|
|
33
33
|
AccountSettingsInputFromJSON,
|
|
@@ -78,7 +78,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
async getAccountPaymentProviderSessionRaw(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
81
|
+
async getAccountPaymentProviderSessionRaw(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOnboardingSessionDto>> {
|
|
82
82
|
if (requestParameters['accountId'] == null) {
|
|
83
83
|
throw new runtime.RequiredError(
|
|
84
84
|
'accountId',
|
|
@@ -105,13 +105,13 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
105
105
|
query: queryParameters,
|
|
106
106
|
}, initOverrides);
|
|
107
107
|
|
|
108
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOnboardingSessionDtoFromJSON(jsonValue));
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
113
|
*/
|
|
114
|
-
async getAccountPaymentProviderSession(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
114
|
+
async getAccountPaymentProviderSession(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOnboardingSessionDto> {
|
|
115
115
|
const response = await this.getAccountPaymentProviderSessionRaw(requestParameters, initOverrides);
|
|
116
116
|
return await response.value();
|
|
117
117
|
}
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -27,6 +27,7 @@ import type {
|
|
|
27
27
|
GetAllOrders200Response,
|
|
28
28
|
GetAllOwnedDomains200Response,
|
|
29
29
|
GetAllSubscriptions200Response,
|
|
30
|
+
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
|
|
30
31
|
ListAccounts200Response,
|
|
31
32
|
ListDomains200Response,
|
|
32
33
|
NotFoundException,
|
|
@@ -59,6 +60,8 @@ import {
|
|
|
59
60
|
GetAllOwnedDomains200ResponseToJSON,
|
|
60
61
|
GetAllSubscriptions200ResponseFromJSON,
|
|
61
62
|
GetAllSubscriptions200ResponseToJSON,
|
|
63
|
+
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON,
|
|
64
|
+
IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
|
|
62
65
|
ListAccounts200ResponseFromJSON,
|
|
63
66
|
ListAccounts200ResponseToJSON,
|
|
64
67
|
ListDomains200ResponseFromJSON,
|
|
@@ -94,6 +97,10 @@ export interface AdminApiDownloadInvoiceRequest {
|
|
|
94
97
|
invoiceId: string;
|
|
95
98
|
}
|
|
96
99
|
|
|
100
|
+
export interface AdminApiGetAccountMeRequest {
|
|
101
|
+
accountId: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
97
104
|
export interface AdminApiGetAccountSettingsRequest {
|
|
98
105
|
accountId: string;
|
|
99
106
|
}
|
|
@@ -372,6 +379,47 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
372
379
|
return await response.value();
|
|
373
380
|
}
|
|
374
381
|
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
*/
|
|
385
|
+
async getAccountMeRaw(requestParameters: AdminApiGetAccountMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>> {
|
|
386
|
+
if (requestParameters['accountId'] == null) {
|
|
387
|
+
throw new runtime.RequiredError(
|
|
388
|
+
'accountId',
|
|
389
|
+
'Required parameter "accountId" was null or undefined when calling getAccountMe().'
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
const queryParameters: any = {};
|
|
394
|
+
|
|
395
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
396
|
+
|
|
397
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
398
|
+
const token = this.configuration.accessToken;
|
|
399
|
+
const tokenString = await token("bearer", []);
|
|
400
|
+
|
|
401
|
+
if (tokenString) {
|
|
402
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
const response = await this.request({
|
|
406
|
+
path: `/admin/accounts/{accountId}/me`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
407
|
+
method: 'GET',
|
|
408
|
+
headers: headerParameters,
|
|
409
|
+
query: queryParameters,
|
|
410
|
+
}, initOverrides);
|
|
411
|
+
|
|
412
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON(jsonValue));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
*/
|
|
418
|
+
async getAccountMe(requestParameters: AdminApiGetAccountMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto> {
|
|
419
|
+
const response = await this.getAccountMeRaw(requestParameters, initOverrides);
|
|
420
|
+
return await response.value();
|
|
421
|
+
}
|
|
422
|
+
|
|
375
423
|
/**
|
|
376
424
|
*
|
|
377
425
|
*/
|