@randock/nameshift-api-client 0.0.512 → 0.0.514
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/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +1 -0
- package/dist/apis/AccountsPublicApi.js +6 -0
- package/dist/models/AdminListAccountDto.d.ts +14 -0
- package/dist/models/AdminListAccountDto.js +12 -1
- package/dist/models/CustomerSuccessListAccountDto.d.ts +14 -0
- package/dist/models/CustomerSuccessListAccountDto.js +12 -1
- package/dist/models/LandingPageInput.d.ts +14 -0
- package/dist/models/LandingPageInput.js +10 -1
- package/dist/models/LandingPageSettingsDto.d.ts +14 -0
- package/dist/models/LandingPageSettingsDto.js +12 -1
- package/package.json +1 -1
- package/src/apis/AccountsPublicApi.ts +12 -0
- package/src/models/AdminListAccountDto.ts +18 -0
- package/src/models/CustomerSuccessListAccountDto.ts +18 -0
- package/src/models/LandingPageInput.ts +17 -0
- package/src/models/LandingPageSettingsDto.ts +18 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.514
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.514 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
bdfea85df725f86998eb880790bb90bf77a17abe53c6371d18028f976121457a2f2cc85c4edcea427f06fcd6c849a629
|
|
@@ -131,12 +131,18 @@ var AccountsPublicApi = /** @class */ (function (_super) {
|
|
|
131
131
|
return __generator(this, function (_a) {
|
|
132
132
|
switch (_a.label) {
|
|
133
133
|
case 0:
|
|
134
|
+
if (requestParameters['xNsClient'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('xNsClient', 'Required parameter "xNsClient" was null or undefined when calling register().');
|
|
136
|
+
}
|
|
134
137
|
if (requestParameters['registerAccountInput'] == null) {
|
|
135
138
|
throw new runtime.RequiredError('registerAccountInput', 'Required parameter "registerAccountInput" was null or undefined when calling register().');
|
|
136
139
|
}
|
|
137
140
|
queryParameters = {};
|
|
138
141
|
headerParameters = {};
|
|
139
142
|
headerParameters['Content-Type'] = 'application/json';
|
|
143
|
+
if (requestParameters['xNsClient'] != null) {
|
|
144
|
+
headerParameters['x-ns-client'] = String(requestParameters['xNsClient']);
|
|
145
|
+
}
|
|
140
146
|
if (requestParameters['xRecaptchaToken'] != null) {
|
|
141
147
|
headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
|
|
142
148
|
}
|
|
@@ -140,6 +140,12 @@ export interface AdminListAccountDto {
|
|
|
140
140
|
* @memberof AdminListAccountDto
|
|
141
141
|
*/
|
|
142
142
|
companyName: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* Where the account registered from; null for accounts older than the field.
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof AdminListAccountDto
|
|
147
|
+
*/
|
|
148
|
+
registrationSource: AdminListAccountDtoRegistrationSourceEnum | null;
|
|
143
149
|
/**
|
|
144
150
|
* Whether third-party sales data sharing is allowed.
|
|
145
151
|
* @type {boolean}
|
|
@@ -187,6 +193,14 @@ export declare const AdminListAccountDtoPayoutProviderEnum: {
|
|
|
187
193
|
readonly BANK_ACCOUNT: "bank_account";
|
|
188
194
|
};
|
|
189
195
|
export type AdminListAccountDtoPayoutProviderEnum = typeof AdminListAccountDtoPayoutProviderEnum[keyof typeof AdminListAccountDtoPayoutProviderEnum];
|
|
196
|
+
/**
|
|
197
|
+
* @export
|
|
198
|
+
*/
|
|
199
|
+
export declare const AdminListAccountDtoRegistrationSourceEnum: {
|
|
200
|
+
readonly WEB: "web";
|
|
201
|
+
readonly MOBILE_APP: "mobile_app";
|
|
202
|
+
};
|
|
203
|
+
export type AdminListAccountDtoRegistrationSourceEnum = typeof AdminListAccountDtoRegistrationSourceEnum[keyof typeof AdminListAccountDtoRegistrationSourceEnum];
|
|
190
204
|
/**
|
|
191
205
|
* Check if a given object implements the AdminListAccountDto interface.
|
|
192
206
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AdminListAccountDtoPayoutProviderEnum = exports.AdminListAccountDtoOnboardingStatusEnum = exports.AdminListAccountDtoOnboardingProviderEnum = exports.AdminListAccountDtoAliasStatusEnum = void 0;
|
|
16
|
+
exports.AdminListAccountDtoRegistrationSourceEnum = exports.AdminListAccountDtoPayoutProviderEnum = exports.AdminListAccountDtoOnboardingStatusEnum = exports.AdminListAccountDtoOnboardingProviderEnum = exports.AdminListAccountDtoAliasStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfAdminListAccountDto = instanceOfAdminListAccountDto;
|
|
18
18
|
exports.AdminListAccountDtoFromJSON = AdminListAccountDtoFromJSON;
|
|
19
19
|
exports.AdminListAccountDtoFromJSONTyped = AdminListAccountDtoFromJSONTyped;
|
|
@@ -54,6 +54,13 @@ exports.AdminListAccountDtoPayoutProviderEnum = {
|
|
|
54
54
|
STRIPE: 'stripe',
|
|
55
55
|
BANK_ACCOUNT: 'bank_account'
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
exports.AdminListAccountDtoRegistrationSourceEnum = {
|
|
61
|
+
WEB: 'web',
|
|
62
|
+
MOBILE_APP: 'mobile_app'
|
|
63
|
+
};
|
|
57
64
|
/**
|
|
58
65
|
* Check if a given object implements the AdminListAccountDto interface.
|
|
59
66
|
*/
|
|
@@ -98,6 +105,8 @@ function instanceOfAdminListAccountDto(value) {
|
|
|
98
105
|
return false;
|
|
99
106
|
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
100
107
|
return false;
|
|
108
|
+
if (!('registrationSource' in value) || value['registrationSource'] === undefined)
|
|
109
|
+
return false;
|
|
101
110
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
|
|
102
111
|
return false;
|
|
103
112
|
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
|
|
@@ -132,6 +141,7 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
132
141
|
'affiliateId': json['affiliateId'],
|
|
133
142
|
'portfolioSize': (0, ListAccountPortfolioSizeDto_1.ListAccountPortfolioSizeDtoFromJSON)(json['portfolioSize']),
|
|
134
143
|
'companyName': json['companyName'],
|
|
144
|
+
'registrationSource': json['registrationSource'],
|
|
135
145
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
136
146
|
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
|
|
137
147
|
};
|
|
@@ -165,6 +175,7 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
165
175
|
'affiliateId': value['affiliateId'],
|
|
166
176
|
'portfolioSize': (0, ListAccountPortfolioSizeDto_1.ListAccountPortfolioSizeDtoToJSON)(value['portfolioSize']),
|
|
167
177
|
'companyName': value['companyName'],
|
|
178
|
+
'registrationSource': value['registrationSource'],
|
|
168
179
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
169
180
|
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
|
|
170
181
|
};
|
|
@@ -140,6 +140,12 @@ export interface CustomerSuccessListAccountDto {
|
|
|
140
140
|
* @memberof CustomerSuccessListAccountDto
|
|
141
141
|
*/
|
|
142
142
|
companyName: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* Where the account registered from; null for accounts older than the field.
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof CustomerSuccessListAccountDto
|
|
147
|
+
*/
|
|
148
|
+
registrationSource: CustomerSuccessListAccountDtoRegistrationSourceEnum | null;
|
|
143
149
|
/**
|
|
144
150
|
* Whether third-party sales data sharing is allowed.
|
|
145
151
|
* @type {boolean}
|
|
@@ -187,6 +193,14 @@ export declare const CustomerSuccessListAccountDtoPayoutProviderEnum: {
|
|
|
187
193
|
readonly BANK_ACCOUNT: "bank_account";
|
|
188
194
|
};
|
|
189
195
|
export type CustomerSuccessListAccountDtoPayoutProviderEnum = typeof CustomerSuccessListAccountDtoPayoutProviderEnum[keyof typeof CustomerSuccessListAccountDtoPayoutProviderEnum];
|
|
196
|
+
/**
|
|
197
|
+
* @export
|
|
198
|
+
*/
|
|
199
|
+
export declare const CustomerSuccessListAccountDtoRegistrationSourceEnum: {
|
|
200
|
+
readonly WEB: "web";
|
|
201
|
+
readonly MOBILE_APP: "mobile_app";
|
|
202
|
+
};
|
|
203
|
+
export type CustomerSuccessListAccountDtoRegistrationSourceEnum = typeof CustomerSuccessListAccountDtoRegistrationSourceEnum[keyof typeof CustomerSuccessListAccountDtoRegistrationSourceEnum];
|
|
190
204
|
/**
|
|
191
205
|
* Check if a given object implements the CustomerSuccessListAccountDto interface.
|
|
192
206
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CustomerSuccessListAccountDtoPayoutProviderEnum = exports.CustomerSuccessListAccountDtoOnboardingStatusEnum = exports.CustomerSuccessListAccountDtoOnboardingProviderEnum = exports.CustomerSuccessListAccountDtoAliasStatusEnum = void 0;
|
|
16
|
+
exports.CustomerSuccessListAccountDtoRegistrationSourceEnum = exports.CustomerSuccessListAccountDtoPayoutProviderEnum = exports.CustomerSuccessListAccountDtoOnboardingStatusEnum = exports.CustomerSuccessListAccountDtoOnboardingProviderEnum = exports.CustomerSuccessListAccountDtoAliasStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfCustomerSuccessListAccountDto = instanceOfCustomerSuccessListAccountDto;
|
|
18
18
|
exports.CustomerSuccessListAccountDtoFromJSON = CustomerSuccessListAccountDtoFromJSON;
|
|
19
19
|
exports.CustomerSuccessListAccountDtoFromJSONTyped = CustomerSuccessListAccountDtoFromJSONTyped;
|
|
@@ -54,6 +54,13 @@ exports.CustomerSuccessListAccountDtoPayoutProviderEnum = {
|
|
|
54
54
|
STRIPE: 'stripe',
|
|
55
55
|
BANK_ACCOUNT: 'bank_account'
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
exports.CustomerSuccessListAccountDtoRegistrationSourceEnum = {
|
|
61
|
+
WEB: 'web',
|
|
62
|
+
MOBILE_APP: 'mobile_app'
|
|
63
|
+
};
|
|
57
64
|
/**
|
|
58
65
|
* Check if a given object implements the CustomerSuccessListAccountDto interface.
|
|
59
66
|
*/
|
|
@@ -98,6 +105,8 @@ function instanceOfCustomerSuccessListAccountDto(value) {
|
|
|
98
105
|
return false;
|
|
99
106
|
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
100
107
|
return false;
|
|
108
|
+
if (!('registrationSource' in value) || value['registrationSource'] === undefined)
|
|
109
|
+
return false;
|
|
101
110
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
|
|
102
111
|
return false;
|
|
103
112
|
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
|
|
@@ -132,6 +141,7 @@ function CustomerSuccessListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
132
141
|
'affiliateId': json['affiliateId'],
|
|
133
142
|
'portfolioSize': (0, CustomerSuccessListAccountPortfolioSizeDto_1.CustomerSuccessListAccountPortfolioSizeDtoFromJSON)(json['portfolioSize']),
|
|
134
143
|
'companyName': json['companyName'],
|
|
144
|
+
'registrationSource': json['registrationSource'],
|
|
135
145
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
136
146
|
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
|
|
137
147
|
};
|
|
@@ -165,6 +175,7 @@ function CustomerSuccessListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
165
175
|
'affiliateId': value['affiliateId'],
|
|
166
176
|
'portfolioSize': (0, CustomerSuccessListAccountPortfolioSizeDto_1.CustomerSuccessListAccountPortfolioSizeDtoToJSON)(value['portfolioSize']),
|
|
167
177
|
'companyName': value['companyName'],
|
|
178
|
+
'registrationSource': value['registrationSource'],
|
|
168
179
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
169
180
|
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
|
|
170
181
|
};
|
|
@@ -70,6 +70,12 @@ export interface LandingPageInput {
|
|
|
70
70
|
* @memberof LandingPageInput
|
|
71
71
|
*/
|
|
72
72
|
domainNameTldCase?: LandingPageInputDomainNameTldCaseEnum | null;
|
|
73
|
+
/**
|
|
74
|
+
* How the landing page picks its language when the visitor has not chosen one: from the browser language or from the domain extension.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof LandingPageInput
|
|
77
|
+
*/
|
|
78
|
+
localeRedirect?: LandingPageInputLocaleRedirectEnum | null;
|
|
73
79
|
}
|
|
74
80
|
/**
|
|
75
81
|
* @export
|
|
@@ -109,6 +115,14 @@ export declare const LandingPageInputDomainNameTldCaseEnum: {
|
|
|
109
115
|
readonly UPPER: "upper";
|
|
110
116
|
};
|
|
111
117
|
export type LandingPageInputDomainNameTldCaseEnum = typeof LandingPageInputDomainNameTldCaseEnum[keyof typeof LandingPageInputDomainNameTldCaseEnum];
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export declare const LandingPageInputLocaleRedirectEnum: {
|
|
122
|
+
readonly ACCEPT_LANGUAGE: "accept_language";
|
|
123
|
+
readonly TLD: "tld";
|
|
124
|
+
};
|
|
125
|
+
export type LandingPageInputLocaleRedirectEnum = typeof LandingPageInputLocaleRedirectEnum[keyof typeof LandingPageInputLocaleRedirectEnum];
|
|
112
126
|
/**
|
|
113
127
|
* Check if a given object implements the LandingPageInput interface.
|
|
114
128
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LandingPageInputDomainNameTldCaseEnum = exports.LandingPageInputDomainNameCaseEnum = exports.LandingPageInputDesignEnum = exports.LandingPageInputRequestLeadBuyerPhoneNumberEnum = void 0;
|
|
16
|
+
exports.LandingPageInputLocaleRedirectEnum = exports.LandingPageInputDomainNameTldCaseEnum = exports.LandingPageInputDomainNameCaseEnum = exports.LandingPageInputDesignEnum = exports.LandingPageInputRequestLeadBuyerPhoneNumberEnum = void 0;
|
|
17
17
|
exports.instanceOfLandingPageInput = instanceOfLandingPageInput;
|
|
18
18
|
exports.LandingPageInputFromJSON = LandingPageInputFromJSON;
|
|
19
19
|
exports.LandingPageInputFromJSONTyped = LandingPageInputFromJSONTyped;
|
|
@@ -54,6 +54,13 @@ exports.LandingPageInputDomainNameTldCaseEnum = {
|
|
|
54
54
|
LOWER: 'lower',
|
|
55
55
|
UPPER: 'upper'
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
exports.LandingPageInputLocaleRedirectEnum = {
|
|
61
|
+
ACCEPT_LANGUAGE: 'accept_language',
|
|
62
|
+
TLD: 'tld'
|
|
63
|
+
};
|
|
57
64
|
/**
|
|
58
65
|
* Check if a given object implements the LandingPageInput interface.
|
|
59
66
|
*/
|
|
@@ -77,6 +84,7 @@ function LandingPageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
84
|
'domainNameCase': json['domainNameCase'] == null ? undefined : json['domainNameCase'],
|
|
78
85
|
'domainNameUppercaseThreshold': json['domainNameUppercaseThreshold'] == null ? undefined : json['domainNameUppercaseThreshold'],
|
|
79
86
|
'domainNameTldCase': json['domainNameTldCase'] == null ? undefined : json['domainNameTldCase'],
|
|
87
|
+
'localeRedirect': json['localeRedirect'] == null ? undefined : json['localeRedirect'],
|
|
80
88
|
};
|
|
81
89
|
}
|
|
82
90
|
function LandingPageInputToJSON(json) {
|
|
@@ -97,5 +105,6 @@ function LandingPageInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
97
105
|
'domainNameCase': value['domainNameCase'],
|
|
98
106
|
'domainNameUppercaseThreshold': value['domainNameUppercaseThreshold'],
|
|
99
107
|
'domainNameTldCase': value['domainNameTldCase'],
|
|
108
|
+
'localeRedirect': value['localeRedirect'],
|
|
100
109
|
};
|
|
101
110
|
}
|
|
@@ -70,6 +70,12 @@ export interface LandingPageSettingsDto {
|
|
|
70
70
|
* @memberof LandingPageSettingsDto
|
|
71
71
|
*/
|
|
72
72
|
domainNameTldCase: LandingPageSettingsDtoDomainNameTldCaseEnum | null;
|
|
73
|
+
/**
|
|
74
|
+
* How the landing page picks its language when the visitor has not chosen one: from the browser language or from the domain extension.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof LandingPageSettingsDto
|
|
77
|
+
*/
|
|
78
|
+
localeRedirect: LandingPageSettingsDtoLocaleRedirectEnum | null;
|
|
73
79
|
}
|
|
74
80
|
/**
|
|
75
81
|
* @export
|
|
@@ -109,6 +115,14 @@ export declare const LandingPageSettingsDtoDomainNameTldCaseEnum: {
|
|
|
109
115
|
readonly UPPER: "upper";
|
|
110
116
|
};
|
|
111
117
|
export type LandingPageSettingsDtoDomainNameTldCaseEnum = typeof LandingPageSettingsDtoDomainNameTldCaseEnum[keyof typeof LandingPageSettingsDtoDomainNameTldCaseEnum];
|
|
118
|
+
/**
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export declare const LandingPageSettingsDtoLocaleRedirectEnum: {
|
|
122
|
+
readonly ACCEPT_LANGUAGE: "accept_language";
|
|
123
|
+
readonly TLD: "tld";
|
|
124
|
+
};
|
|
125
|
+
export type LandingPageSettingsDtoLocaleRedirectEnum = typeof LandingPageSettingsDtoLocaleRedirectEnum[keyof typeof LandingPageSettingsDtoLocaleRedirectEnum];
|
|
112
126
|
/**
|
|
113
127
|
* Check if a given object implements the LandingPageSettingsDto interface.
|
|
114
128
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LandingPageSettingsDtoDomainNameTldCaseEnum = exports.LandingPageSettingsDtoDomainNameCaseEnum = exports.LandingPageSettingsDtoDesignEnum = exports.LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum = void 0;
|
|
16
|
+
exports.LandingPageSettingsDtoLocaleRedirectEnum = exports.LandingPageSettingsDtoDomainNameTldCaseEnum = exports.LandingPageSettingsDtoDomainNameCaseEnum = exports.LandingPageSettingsDtoDesignEnum = exports.LandingPageSettingsDtoRequestLeadBuyerPhoneNumberEnum = void 0;
|
|
17
17
|
exports.instanceOfLandingPageSettingsDto = instanceOfLandingPageSettingsDto;
|
|
18
18
|
exports.LandingPageSettingsDtoFromJSON = LandingPageSettingsDtoFromJSON;
|
|
19
19
|
exports.LandingPageSettingsDtoFromJSONTyped = LandingPageSettingsDtoFromJSONTyped;
|
|
@@ -54,6 +54,13 @@ exports.LandingPageSettingsDtoDomainNameTldCaseEnum = {
|
|
|
54
54
|
LOWER: 'lower',
|
|
55
55
|
UPPER: 'upper'
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
exports.LandingPageSettingsDtoLocaleRedirectEnum = {
|
|
61
|
+
ACCEPT_LANGUAGE: 'accept_language',
|
|
62
|
+
TLD: 'tld'
|
|
63
|
+
};
|
|
57
64
|
/**
|
|
58
65
|
* Check if a given object implements the LandingPageSettingsDto interface.
|
|
59
66
|
*/
|
|
@@ -76,6 +83,8 @@ function instanceOfLandingPageSettingsDto(value) {
|
|
|
76
83
|
return false;
|
|
77
84
|
if (!('domainNameTldCase' in value) || value['domainNameTldCase'] === undefined)
|
|
78
85
|
return false;
|
|
86
|
+
if (!('localeRedirect' in value) || value['localeRedirect'] === undefined)
|
|
87
|
+
return false;
|
|
79
88
|
return true;
|
|
80
89
|
}
|
|
81
90
|
function LandingPageSettingsDtoFromJSON(json) {
|
|
@@ -95,6 +104,7 @@ function LandingPageSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
104
|
'domainNameCase': json['domainNameCase'],
|
|
96
105
|
'domainNameUppercaseThreshold': json['domainNameUppercaseThreshold'],
|
|
97
106
|
'domainNameTldCase': json['domainNameTldCase'],
|
|
107
|
+
'localeRedirect': json['localeRedirect'],
|
|
98
108
|
};
|
|
99
109
|
}
|
|
100
110
|
function LandingPageSettingsDtoToJSON(json) {
|
|
@@ -115,5 +125,6 @@ function LandingPageSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
115
125
|
'domainNameCase': value['domainNameCase'],
|
|
116
126
|
'domainNameUppercaseThreshold': value['domainNameUppercaseThreshold'],
|
|
117
127
|
'domainNameTldCase': value['domainNameTldCase'],
|
|
128
|
+
'localeRedirect': value['localeRedirect'],
|
|
118
129
|
};
|
|
119
130
|
}
|
package/package.json
CHANGED
|
@@ -36,6 +36,7 @@ export interface AccountsPublicApiGetAccountInformationRequest {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export interface AccountsPublicApiRegisterRequest {
|
|
39
|
+
xNsClient: string;
|
|
39
40
|
registerAccountInput: RegisterAccountInput;
|
|
40
41
|
xRecaptchaToken?: string;
|
|
41
42
|
}
|
|
@@ -85,6 +86,13 @@ export class AccountsPublicApi extends runtime.BaseAPI {
|
|
|
85
86
|
* Register account
|
|
86
87
|
*/
|
|
87
88
|
async registerRaw(requestParameters: AccountsPublicApiRegisterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
89
|
+
if (requestParameters['xNsClient'] == null) {
|
|
90
|
+
throw new runtime.RequiredError(
|
|
91
|
+
'xNsClient',
|
|
92
|
+
'Required parameter "xNsClient" was null or undefined when calling register().'
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
88
96
|
if (requestParameters['registerAccountInput'] == null) {
|
|
89
97
|
throw new runtime.RequiredError(
|
|
90
98
|
'registerAccountInput',
|
|
@@ -98,6 +106,10 @@ export class AccountsPublicApi extends runtime.BaseAPI {
|
|
|
98
106
|
|
|
99
107
|
headerParameters['Content-Type'] = 'application/json';
|
|
100
108
|
|
|
109
|
+
if (requestParameters['xNsClient'] != null) {
|
|
110
|
+
headerParameters['x-ns-client'] = String(requestParameters['xNsClient']);
|
|
111
|
+
}
|
|
112
|
+
|
|
101
113
|
if (requestParameters['xRecaptchaToken'] != null) {
|
|
102
114
|
headerParameters['x-recaptcha-token'] = String(requestParameters['xRecaptchaToken']);
|
|
103
115
|
}
|
|
@@ -175,6 +175,12 @@ export interface AdminListAccountDto {
|
|
|
175
175
|
* @memberof AdminListAccountDto
|
|
176
176
|
*/
|
|
177
177
|
companyName: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* Where the account registered from; null for accounts older than the field.
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof AdminListAccountDto
|
|
182
|
+
*/
|
|
183
|
+
registrationSource: AdminListAccountDtoRegistrationSourceEnum | null;
|
|
178
184
|
/**
|
|
179
185
|
* Whether third-party sales data sharing is allowed.
|
|
180
186
|
* @type {boolean}
|
|
@@ -228,6 +234,15 @@ export const AdminListAccountDtoPayoutProviderEnum = {
|
|
|
228
234
|
} as const;
|
|
229
235
|
export type AdminListAccountDtoPayoutProviderEnum = typeof AdminListAccountDtoPayoutProviderEnum[keyof typeof AdminListAccountDtoPayoutProviderEnum];
|
|
230
236
|
|
|
237
|
+
/**
|
|
238
|
+
* @export
|
|
239
|
+
*/
|
|
240
|
+
export const AdminListAccountDtoRegistrationSourceEnum = {
|
|
241
|
+
WEB: 'web',
|
|
242
|
+
MOBILE_APP: 'mobile_app'
|
|
243
|
+
} as const;
|
|
244
|
+
export type AdminListAccountDtoRegistrationSourceEnum = typeof AdminListAccountDtoRegistrationSourceEnum[keyof typeof AdminListAccountDtoRegistrationSourceEnum];
|
|
245
|
+
|
|
231
246
|
|
|
232
247
|
/**
|
|
233
248
|
* Check if a given object implements the AdminListAccountDto interface.
|
|
@@ -253,6 +268,7 @@ export function instanceOfAdminListAccountDto(value: object): value is AdminList
|
|
|
253
268
|
if (!('affiliateId' in value) || value['affiliateId'] === undefined) return false;
|
|
254
269
|
if (!('portfolioSize' in value) || value['portfolioSize'] === undefined) return false;
|
|
255
270
|
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
271
|
+
if (!('registrationSource' in value) || value['registrationSource'] === undefined) return false;
|
|
256
272
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
257
273
|
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
|
|
258
274
|
return true;
|
|
@@ -288,6 +304,7 @@ export function AdminListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
288
304
|
'affiliateId': json['affiliateId'],
|
|
289
305
|
'portfolioSize': ListAccountPortfolioSizeDtoFromJSON(json['portfolioSize']),
|
|
290
306
|
'companyName': json['companyName'],
|
|
307
|
+
'registrationSource': json['registrationSource'],
|
|
291
308
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
292
309
|
'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
|
|
293
310
|
};
|
|
@@ -324,6 +341,7 @@ export function AdminListAccountDtoToJSONTyped(value?: AdminListAccountDto | nul
|
|
|
324
341
|
'affiliateId': value['affiliateId'],
|
|
325
342
|
'portfolioSize': ListAccountPortfolioSizeDtoToJSON(value['portfolioSize']),
|
|
326
343
|
'companyName': value['companyName'],
|
|
344
|
+
'registrationSource': value['registrationSource'],
|
|
327
345
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
328
346
|
'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
|
|
329
347
|
};
|
|
@@ -175,6 +175,12 @@ export interface CustomerSuccessListAccountDto {
|
|
|
175
175
|
* @memberof CustomerSuccessListAccountDto
|
|
176
176
|
*/
|
|
177
177
|
companyName: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* Where the account registered from; null for accounts older than the field.
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof CustomerSuccessListAccountDto
|
|
182
|
+
*/
|
|
183
|
+
registrationSource: CustomerSuccessListAccountDtoRegistrationSourceEnum | null;
|
|
178
184
|
/**
|
|
179
185
|
* Whether third-party sales data sharing is allowed.
|
|
180
186
|
* @type {boolean}
|
|
@@ -228,6 +234,15 @@ export const CustomerSuccessListAccountDtoPayoutProviderEnum = {
|
|
|
228
234
|
} as const;
|
|
229
235
|
export type CustomerSuccessListAccountDtoPayoutProviderEnum = typeof CustomerSuccessListAccountDtoPayoutProviderEnum[keyof typeof CustomerSuccessListAccountDtoPayoutProviderEnum];
|
|
230
236
|
|
|
237
|
+
/**
|
|
238
|
+
* @export
|
|
239
|
+
*/
|
|
240
|
+
export const CustomerSuccessListAccountDtoRegistrationSourceEnum = {
|
|
241
|
+
WEB: 'web',
|
|
242
|
+
MOBILE_APP: 'mobile_app'
|
|
243
|
+
} as const;
|
|
244
|
+
export type CustomerSuccessListAccountDtoRegistrationSourceEnum = typeof CustomerSuccessListAccountDtoRegistrationSourceEnum[keyof typeof CustomerSuccessListAccountDtoRegistrationSourceEnum];
|
|
245
|
+
|
|
231
246
|
|
|
232
247
|
/**
|
|
233
248
|
* Check if a given object implements the CustomerSuccessListAccountDto interface.
|
|
@@ -253,6 +268,7 @@ export function instanceOfCustomerSuccessListAccountDto(value: object): value is
|
|
|
253
268
|
if (!('affiliateId' in value) || value['affiliateId'] === undefined) return false;
|
|
254
269
|
if (!('portfolioSize' in value) || value['portfolioSize'] === undefined) return false;
|
|
255
270
|
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
271
|
+
if (!('registrationSource' in value) || value['registrationSource'] === undefined) return false;
|
|
256
272
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
257
273
|
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
|
|
258
274
|
return true;
|
|
@@ -288,6 +304,7 @@ export function CustomerSuccessListAccountDtoFromJSONTyped(json: any, ignoreDisc
|
|
|
288
304
|
'affiliateId': json['affiliateId'],
|
|
289
305
|
'portfolioSize': CustomerSuccessListAccountPortfolioSizeDtoFromJSON(json['portfolioSize']),
|
|
290
306
|
'companyName': json['companyName'],
|
|
307
|
+
'registrationSource': json['registrationSource'],
|
|
291
308
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
292
309
|
'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
|
|
293
310
|
};
|
|
@@ -324,6 +341,7 @@ export function CustomerSuccessListAccountDtoToJSONTyped(value?: CustomerSuccess
|
|
|
324
341
|
'affiliateId': value['affiliateId'],
|
|
325
342
|
'portfolioSize': CustomerSuccessListAccountPortfolioSizeDtoToJSON(value['portfolioSize']),
|
|
326
343
|
'companyName': value['companyName'],
|
|
344
|
+
'registrationSource': value['registrationSource'],
|
|
327
345
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
328
346
|
'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
|
|
329
347
|
};
|
|
@@ -81,6 +81,12 @@ export interface LandingPageInput {
|
|
|
81
81
|
* @memberof LandingPageInput
|
|
82
82
|
*/
|
|
83
83
|
domainNameTldCase?: LandingPageInputDomainNameTldCaseEnum | null;
|
|
84
|
+
/**
|
|
85
|
+
* How the landing page picks its language when the visitor has not chosen one: from the browser language or from the domain extension.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LandingPageInput
|
|
88
|
+
*/
|
|
89
|
+
localeRedirect?: LandingPageInputLocaleRedirectEnum | null;
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
|
|
@@ -126,6 +132,15 @@ export const LandingPageInputDomainNameTldCaseEnum = {
|
|
|
126
132
|
} as const;
|
|
127
133
|
export type LandingPageInputDomainNameTldCaseEnum = typeof LandingPageInputDomainNameTldCaseEnum[keyof typeof LandingPageInputDomainNameTldCaseEnum];
|
|
128
134
|
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export const LandingPageInputLocaleRedirectEnum = {
|
|
139
|
+
ACCEPT_LANGUAGE: 'accept_language',
|
|
140
|
+
TLD: 'tld'
|
|
141
|
+
} as const;
|
|
142
|
+
export type LandingPageInputLocaleRedirectEnum = typeof LandingPageInputLocaleRedirectEnum[keyof typeof LandingPageInputLocaleRedirectEnum];
|
|
143
|
+
|
|
129
144
|
|
|
130
145
|
/**
|
|
131
146
|
* Check if a given object implements the LandingPageInput interface.
|
|
@@ -153,6 +168,7 @@ export function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
153
168
|
'domainNameCase': json['domainNameCase'] == null ? undefined : json['domainNameCase'],
|
|
154
169
|
'domainNameUppercaseThreshold': json['domainNameUppercaseThreshold'] == null ? undefined : json['domainNameUppercaseThreshold'],
|
|
155
170
|
'domainNameTldCase': json['domainNameTldCase'] == null ? undefined : json['domainNameTldCase'],
|
|
171
|
+
'localeRedirect': json['localeRedirect'] == null ? undefined : json['localeRedirect'],
|
|
156
172
|
};
|
|
157
173
|
}
|
|
158
174
|
|
|
@@ -176,6 +192,7 @@ export function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ign
|
|
|
176
192
|
'domainNameCase': value['domainNameCase'],
|
|
177
193
|
'domainNameUppercaseThreshold': value['domainNameUppercaseThreshold'],
|
|
178
194
|
'domainNameTldCase': value['domainNameTldCase'],
|
|
195
|
+
'localeRedirect': value['localeRedirect'],
|
|
179
196
|
};
|
|
180
197
|
}
|
|
181
198
|
|
|
@@ -81,6 +81,12 @@ export interface LandingPageSettingsDto {
|
|
|
81
81
|
* @memberof LandingPageSettingsDto
|
|
82
82
|
*/
|
|
83
83
|
domainNameTldCase: LandingPageSettingsDtoDomainNameTldCaseEnum | null;
|
|
84
|
+
/**
|
|
85
|
+
* How the landing page picks its language when the visitor has not chosen one: from the browser language or from the domain extension.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LandingPageSettingsDto
|
|
88
|
+
*/
|
|
89
|
+
localeRedirect: LandingPageSettingsDtoLocaleRedirectEnum | null;
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
|
|
@@ -126,6 +132,15 @@ export const LandingPageSettingsDtoDomainNameTldCaseEnum = {
|
|
|
126
132
|
} as const;
|
|
127
133
|
export type LandingPageSettingsDtoDomainNameTldCaseEnum = typeof LandingPageSettingsDtoDomainNameTldCaseEnum[keyof typeof LandingPageSettingsDtoDomainNameTldCaseEnum];
|
|
128
134
|
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export const LandingPageSettingsDtoLocaleRedirectEnum = {
|
|
139
|
+
ACCEPT_LANGUAGE: 'accept_language',
|
|
140
|
+
TLD: 'tld'
|
|
141
|
+
} as const;
|
|
142
|
+
export type LandingPageSettingsDtoLocaleRedirectEnum = typeof LandingPageSettingsDtoLocaleRedirectEnum[keyof typeof LandingPageSettingsDtoLocaleRedirectEnum];
|
|
143
|
+
|
|
129
144
|
|
|
130
145
|
/**
|
|
131
146
|
* Check if a given object implements the LandingPageSettingsDto interface.
|
|
@@ -140,6 +155,7 @@ export function instanceOfLandingPageSettingsDto(value: object): value is Landin
|
|
|
140
155
|
if (!('domainNameCase' in value) || value['domainNameCase'] === undefined) return false;
|
|
141
156
|
if (!('domainNameUppercaseThreshold' in value) || value['domainNameUppercaseThreshold'] === undefined) return false;
|
|
142
157
|
if (!('domainNameTldCase' in value) || value['domainNameTldCase'] === undefined) return false;
|
|
158
|
+
if (!('localeRedirect' in value) || value['localeRedirect'] === undefined) return false;
|
|
143
159
|
return true;
|
|
144
160
|
}
|
|
145
161
|
|
|
@@ -162,6 +178,7 @@ export function LandingPageSettingsDtoFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
162
178
|
'domainNameCase': json['domainNameCase'],
|
|
163
179
|
'domainNameUppercaseThreshold': json['domainNameUppercaseThreshold'],
|
|
164
180
|
'domainNameTldCase': json['domainNameTldCase'],
|
|
181
|
+
'localeRedirect': json['localeRedirect'],
|
|
165
182
|
};
|
|
166
183
|
}
|
|
167
184
|
|
|
@@ -185,6 +202,7 @@ export function LandingPageSettingsDtoToJSONTyped(value?: LandingPageSettingsDto
|
|
|
185
202
|
'domainNameCase': value['domainNameCase'],
|
|
186
203
|
'domainNameUppercaseThreshold': value['domainNameUppercaseThreshold'],
|
|
187
204
|
'domainNameTldCase': value['domainNameTldCase'],
|
|
205
|
+
'localeRedirect': value['localeRedirect'],
|
|
188
206
|
};
|
|
189
207
|
}
|
|
190
208
|
|