@randock/nameshift-api-client 0.0.383 → 0.0.384
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 +13 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +54 -1
- package/dist/apis/AdminApi.js +263 -0
- package/dist/apis/ChallengesApi.d.ts +46 -0
- package/dist/apis/ChallengesApi.js +234 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountChallengeRewardUsageListItemDto.d.ts +63 -0
- package/dist/models/AccountChallengeRewardUsageListItemDto.js +72 -0
- package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.d.ts +32 -0
- package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.js +49 -0
- package/dist/models/AccountDto.d.ts +7 -0
- package/dist/models/AccountDto.js +5 -0
- package/dist/models/AccountMetricsDto.d.ts +6 -0
- package/dist/models/AccountMetricsDto.js +4 -0
- package/dist/models/AdminChallengeListDto.d.ts +33 -0
- package/dist/models/AdminChallengeListDto.js +52 -0
- package/dist/models/AdminChallengeListItemDto.d.ts +125 -0
- package/dist/models/AdminChallengeListItemDto.js +125 -0
- package/dist/models/AdminListAccountDto.d.ts +7 -0
- package/dist/models/AdminListAccountDto.js +5 -0
- package/dist/models/ChallengeRewardBalanceDto.d.ts +38 -0
- package/dist/models/ChallengeRewardBalanceDto.js +55 -0
- package/dist/models/CreateChallengeInput.d.ts +67 -0
- package/dist/models/CreateChallengeInput.js +80 -0
- package/dist/models/GetAccountChallengeRewardUsagesListDto.d.ts +33 -0
- package/dist/models/GetAccountChallengeRewardUsagesListDto.js +52 -0
- package/dist/models/GetSellerChallengesListDto.d.ts +33 -0
- package/dist/models/GetSellerChallengesListDto.js +52 -0
- package/dist/models/GetSellerChallengesListDtoChallengesInner.d.ts +27 -0
- package/dist/models/GetSellerChallengesListDtoChallengesInner.js +54 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +9 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +8 -1
- package/dist/models/PrivateAccountGetMeResponse.d.ts +9 -0
- package/dist/models/PrivateAccountGetMeResponse.js +8 -1
- package/dist/models/SellerScaleChallengeListItemDto.d.ts +148 -0
- package/dist/models/SellerScaleChallengeListItemDto.js +142 -0
- package/dist/models/SellerTargetChallengeListItemDto.d.ts +154 -0
- package/dist/models/SellerTargetChallengeListItemDto.js +146 -0
- package/dist/models/UpdateChallengeInput.d.ts +44 -0
- package/dist/models/UpdateChallengeInput.js +53 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +240 -0
- package/src/apis/ChallengesApi.ts +156 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountChallengeRewardUsageListItemDto.ts +119 -0
- package/src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts +65 -0
- package/src/models/AccountDto.ts +16 -0
- package/src/models/AccountMetricsDto.ts +9 -0
- package/src/models/AdminChallengeListDto.ts +74 -0
- package/src/models/AdminChallengeListItemDto.ts +185 -0
- package/src/models/AdminListAccountDto.ts +16 -0
- package/src/models/ChallengeRewardBalanceDto.ts +75 -0
- package/src/models/CreateChallengeInput.ts +109 -0
- package/src/models/GetAccountChallengeRewardUsagesListDto.ts +74 -0
- package/src/models/GetSellerChallengesListDto.ts +74 -0
- package/src/models/GetSellerChallengesListDtoChallengesInner.ts +73 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +19 -1
- package/src/models/PrivateAccountGetMeResponse.ts +19 -1
- package/src/models/SellerScaleChallengeListItemDto.ts +221 -0
- package/src/models/SellerTargetChallengeListItemDto.ts +230 -0
- package/src/models/UpdateChallengeInput.ts +81 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetSellerChallengesListDtoChallengesInner } from './GetSellerChallengesListDtoChallengesInner';
|
|
17
|
+
import {
|
|
18
|
+
GetSellerChallengesListDtoChallengesInnerFromJSON,
|
|
19
|
+
GetSellerChallengesListDtoChallengesInnerFromJSONTyped,
|
|
20
|
+
GetSellerChallengesListDtoChallengesInnerToJSON,
|
|
21
|
+
GetSellerChallengesListDtoChallengesInnerToJSONTyped,
|
|
22
|
+
} from './GetSellerChallengesListDtoChallengesInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetSellerChallengesListDto
|
|
28
|
+
*/
|
|
29
|
+
export interface GetSellerChallengesListDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GetSellerChallengesListDtoChallengesInner>}
|
|
33
|
+
* @memberof GetSellerChallengesListDto
|
|
34
|
+
*/
|
|
35
|
+
challenges: Array<GetSellerChallengesListDtoChallengesInner>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetSellerChallengesListDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetSellerChallengesListDto(value: object): value is GetSellerChallengesListDto {
|
|
42
|
+
if (!('challenges' in value) || value['challenges'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetSellerChallengesListDtoFromJSON(json: any): GetSellerChallengesListDto {
|
|
47
|
+
return GetSellerChallengesListDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetSellerChallengesListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSellerChallengesListDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'challenges': ((json['challenges'] as Array<any>).map(GetSellerChallengesListDtoChallengesInnerFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetSellerChallengesListDtoToJSON(json: any): GetSellerChallengesListDto {
|
|
61
|
+
return GetSellerChallengesListDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetSellerChallengesListDtoToJSONTyped(value?: GetSellerChallengesListDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'challenges': ((value['challenges'] as Array<any>).map(GetSellerChallengesListDtoChallengesInnerToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { SellerScaleChallengeListItemDto } from './SellerScaleChallengeListItemDto';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfSellerScaleChallengeListItemDto,
|
|
18
|
+
SellerScaleChallengeListItemDtoFromJSON,
|
|
19
|
+
SellerScaleChallengeListItemDtoFromJSONTyped,
|
|
20
|
+
SellerScaleChallengeListItemDtoToJSON,
|
|
21
|
+
} from './SellerScaleChallengeListItemDto';
|
|
22
|
+
import type { SellerTargetChallengeListItemDto } from './SellerTargetChallengeListItemDto';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfSellerTargetChallengeListItemDto,
|
|
25
|
+
SellerTargetChallengeListItemDtoFromJSON,
|
|
26
|
+
SellerTargetChallengeListItemDtoFromJSONTyped,
|
|
27
|
+
SellerTargetChallengeListItemDtoToJSON,
|
|
28
|
+
} from './SellerTargetChallengeListItemDto';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type GetSellerChallengesListDtoChallengesInner
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type GetSellerChallengesListDtoChallengesInner = { rewardType: 'scale' } & SellerScaleChallengeListItemDto | { rewardType: 'target' } & SellerTargetChallengeListItemDto;
|
|
36
|
+
|
|
37
|
+
export function GetSellerChallengesListDtoChallengesInnerFromJSON(json: any): GetSellerChallengesListDtoChallengesInner {
|
|
38
|
+
return GetSellerChallengesListDtoChallengesInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function GetSellerChallengesListDtoChallengesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSellerChallengesListDtoChallengesInner {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['rewardType']) {
|
|
46
|
+
case 'scale':
|
|
47
|
+
return Object.assign({}, SellerScaleChallengeListItemDtoFromJSONTyped(json, true), { rewardType: 'scale' } as const);
|
|
48
|
+
case 'target':
|
|
49
|
+
return Object.assign({}, SellerTargetChallengeListItemDtoFromJSONTyped(json, true), { rewardType: 'target' } as const);
|
|
50
|
+
default:
|
|
51
|
+
throw new Error(`No variant of GetSellerChallengesListDtoChallengesInner exists with 'rewardType=${json['rewardType']}'`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function GetSellerChallengesListDtoChallengesInnerToJSON(json: any): any {
|
|
56
|
+
return GetSellerChallengesListDtoChallengesInnerToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetSellerChallengesListDtoChallengesInnerToJSONTyped(value?: GetSellerChallengesListDtoChallengesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['rewardType']) {
|
|
64
|
+
case 'scale':
|
|
65
|
+
return Object.assign({}, SellerScaleChallengeListItemDtoToJSON(value), { rewardType: 'scale' } as const);
|
|
66
|
+
case 'target':
|
|
67
|
+
return Object.assign({}, SellerTargetChallengeListItemDtoToJSON(value), { rewardType: 'target' } as const);
|
|
68
|
+
default:
|
|
69
|
+
throw new Error(`No variant of GetSellerChallengesListDtoChallengesInner exists with 'rewardType=${value['rewardType']}'`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
WithSettingsInnerToJSON,
|
|
35
35
|
WithSettingsInnerToJSONTyped,
|
|
36
36
|
} from './WithSettingsInner';
|
|
37
|
+
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
38
|
+
import {
|
|
39
|
+
ChallengeRewardBalanceDtoFromJSON,
|
|
40
|
+
ChallengeRewardBalanceDtoFromJSONTyped,
|
|
41
|
+
ChallengeRewardBalanceDtoToJSON,
|
|
42
|
+
ChallengeRewardBalanceDtoToJSONTyped,
|
|
43
|
+
} from './ChallengeRewardBalanceDto';
|
|
37
44
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
38
45
|
import {
|
|
39
46
|
AccountMetricsDtoFromJSON,
|
|
@@ -74,6 +81,12 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
74
81
|
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
75
82
|
*/
|
|
76
83
|
identifier: string;
|
|
84
|
+
/**
|
|
85
|
+
* Challenge reward balance (available and used).
|
|
86
|
+
* @type {ChallengeRewardBalanceDto}
|
|
87
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
88
|
+
*/
|
|
89
|
+
challengeRewardBalance: ChallengeRewardBalanceDto;
|
|
77
90
|
/**
|
|
78
91
|
*
|
|
79
92
|
* @type {string}
|
|
@@ -157,7 +170,9 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
|
|
|
157
170
|
CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
|
|
158
171
|
QUADERNO_TAXES: 'QUADERNO_TAXES',
|
|
159
172
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
160
|
-
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL'
|
|
173
|
+
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
174
|
+
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
175
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
161
176
|
} as const;
|
|
162
177
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
163
178
|
|
|
@@ -168,6 +183,7 @@ export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeature
|
|
|
168
183
|
export function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto(value: object): value is IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto {
|
|
169
184
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
170
185
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
186
|
+
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
|
|
171
187
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
172
188
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
173
189
|
if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
|
|
@@ -193,6 +209,7 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
|
|
|
193
209
|
|
|
194
210
|
'id': json['id'],
|
|
195
211
|
'identifier': json['identifier'],
|
|
212
|
+
'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
|
|
196
213
|
'name': json['name'],
|
|
197
214
|
'metrics': AccountMetricsDtoFromJSON(json['metrics']),
|
|
198
215
|
'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
|
|
@@ -219,6 +236,7 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
|
|
|
219
236
|
|
|
220
237
|
'id': value['id'],
|
|
221
238
|
'identifier': value['identifier'],
|
|
239
|
+
'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
|
|
222
240
|
'name': value['name'],
|
|
223
241
|
'metrics': AccountMetricsDtoToJSON(value['metrics']),
|
|
224
242
|
'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
WithSettingsInnerToJSON,
|
|
35
35
|
WithSettingsInnerToJSONTyped,
|
|
36
36
|
} from './WithSettingsInner';
|
|
37
|
+
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
38
|
+
import {
|
|
39
|
+
ChallengeRewardBalanceDtoFromJSON,
|
|
40
|
+
ChallengeRewardBalanceDtoFromJSONTyped,
|
|
41
|
+
ChallengeRewardBalanceDtoToJSON,
|
|
42
|
+
ChallengeRewardBalanceDtoToJSONTyped,
|
|
43
|
+
} from './ChallengeRewardBalanceDto';
|
|
37
44
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
38
45
|
import {
|
|
39
46
|
AccountMetricsDtoFromJSON,
|
|
@@ -74,6 +81,12 @@ export interface PrivateAccountGetMeResponse {
|
|
|
74
81
|
* @memberof PrivateAccountGetMeResponse
|
|
75
82
|
*/
|
|
76
83
|
identifier: string;
|
|
84
|
+
/**
|
|
85
|
+
* Challenge reward balance (available and used).
|
|
86
|
+
* @type {ChallengeRewardBalanceDto}
|
|
87
|
+
* @memberof PrivateAccountGetMeResponse
|
|
88
|
+
*/
|
|
89
|
+
challengeRewardBalance: ChallengeRewardBalanceDto;
|
|
77
90
|
/**
|
|
78
91
|
*
|
|
79
92
|
* @type {string}
|
|
@@ -163,7 +176,9 @@ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
163
176
|
CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
|
|
164
177
|
QUADERNO_TAXES: 'QUADERNO_TAXES',
|
|
165
178
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
166
|
-
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL'
|
|
179
|
+
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
180
|
+
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
181
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
167
182
|
} as const;
|
|
168
183
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
169
184
|
|
|
@@ -174,6 +189,7 @@ export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccou
|
|
|
174
189
|
export function instanceOfPrivateAccountGetMeResponse(value: object): value is PrivateAccountGetMeResponse {
|
|
175
190
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
176
191
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
192
|
+
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined) return false;
|
|
177
193
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
178
194
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
179
195
|
if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
|
|
@@ -200,6 +216,7 @@ export function PrivateAccountGetMeResponseFromJSONTyped(json: any, ignoreDiscri
|
|
|
200
216
|
|
|
201
217
|
'id': json['id'],
|
|
202
218
|
'identifier': json['identifier'],
|
|
219
|
+
'challengeRewardBalance': ChallengeRewardBalanceDtoFromJSON(json['challengeRewardBalance']),
|
|
203
220
|
'name': json['name'],
|
|
204
221
|
'metrics': AccountMetricsDtoFromJSON(json['metrics']),
|
|
205
222
|
'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
|
|
@@ -227,6 +244,7 @@ export function PrivateAccountGetMeResponseToJSONTyped(value?: PrivateAccountGet
|
|
|
227
244
|
|
|
228
245
|
'id': value['id'],
|
|
229
246
|
'identifier': value['identifier'],
|
|
247
|
+
'challengeRewardBalance': ChallengeRewardBalanceDtoToJSON(value['challengeRewardBalance']),
|
|
230
248
|
'name': value['name'],
|
|
231
249
|
'metrics': AccountMetricsDtoToJSON(value['metrics']),
|
|
232
250
|
'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SellerScaleChallengeListItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SellerScaleChallengeListItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* Challenge id
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Account progress id when the account has progress for this challenge
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
32
|
+
*/
|
|
33
|
+
progressId: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Challenge type (e.g. keep_pointing_domains)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
38
|
+
*/
|
|
39
|
+
type: SellerScaleChallengeListItemDtoTypeEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Challenge category: domains, account, auctions, sales
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
44
|
+
*/
|
|
45
|
+
category: SellerScaleChallengeListItemDtoCategoryEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Reward type: scale
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
50
|
+
*/
|
|
51
|
+
rewardType: SellerScaleChallengeListItemDtoRewardTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
* Threshold -> reward points (e.g. { "10": 0.1, "50": 0.25, "250": 0.5 })
|
|
54
|
+
* @type {object}
|
|
55
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
56
|
+
*/
|
|
57
|
+
scale: object;
|
|
58
|
+
/**
|
|
59
|
+
* Current value for this period (e.g. for keep_pointing_domains: number of domains pointing to our server)
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
62
|
+
*/
|
|
63
|
+
currentValue: number;
|
|
64
|
+
/**
|
|
65
|
+
* When the challenge is active: one_time, custom, weekly, monthly, yearly
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
68
|
+
*/
|
|
69
|
+
timeScope: SellerScaleChallengeListItemDtoTimeScopeEnum;
|
|
70
|
+
/**
|
|
71
|
+
* Current period start (or challenge start for custom); null for one_time
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
74
|
+
*/
|
|
75
|
+
startDate: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Current period end (or challenge end for custom); null for one_time
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
80
|
+
*/
|
|
81
|
+
endDate: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the challenge progress is completed
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
86
|
+
*/
|
|
87
|
+
isCompleted: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the reward has been collected
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof SellerScaleChallengeListItemDto
|
|
92
|
+
*/
|
|
93
|
+
isCollected: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const SellerScaleChallengeListItemDtoTypeEnum = {
|
|
101
|
+
NEW_POINTING_DOMAINS: 'new_pointing_domains',
|
|
102
|
+
ADD_FIRST_DOMAIN: 'add_first_domain',
|
|
103
|
+
NEW_VERIFIED_DOMAINS: 'new_verified_domains',
|
|
104
|
+
KEEP_POINTING_DOMAINS: 'keep_pointing_domains',
|
|
105
|
+
ADD_BANK_ACCOUNT: 'add_bank_account',
|
|
106
|
+
VERIFY_BANK_ACCOUNT: 'verify_bank_account',
|
|
107
|
+
SET_ACCOUNT_AVATAR: 'set_account_avatar',
|
|
108
|
+
SET_ACCOUNT_SHORT_DESCRIPTION: 'set_account_short_description',
|
|
109
|
+
SET_SIDN: 'set_sidn',
|
|
110
|
+
CONFIGURE_FAST_PAYOUT_FOR_TRANSFERS: 'configure_fast_payout_for_transfers',
|
|
111
|
+
RECEIVE_FIRST_PAYOUT: 'receive_first_payout',
|
|
112
|
+
FIRST_SALE_BY_LEAD: 'first_sale_by_lead',
|
|
113
|
+
FIRST_SALE_BY_IMPORTED_LEAD: 'first_sale_by_imported_lead',
|
|
114
|
+
FIRST_SALE_BY_LEASE_TO_OWN: 'first_sale_by_lease_to_own',
|
|
115
|
+
FIRST_SALE_BY_RENT: 'first_sale_by_rent',
|
|
116
|
+
FIRST_SALE_BY_AUCTION: 'first_sale_by_auction',
|
|
117
|
+
NEW_PAID_AUCTIONS: 'new_paid_auctions'
|
|
118
|
+
} as const;
|
|
119
|
+
export type SellerScaleChallengeListItemDtoTypeEnum = typeof SellerScaleChallengeListItemDtoTypeEnum[keyof typeof SellerScaleChallengeListItemDtoTypeEnum];
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @export
|
|
123
|
+
*/
|
|
124
|
+
export const SellerScaleChallengeListItemDtoCategoryEnum = {
|
|
125
|
+
DOMAINS: 'domains',
|
|
126
|
+
ACCOUNT: 'account',
|
|
127
|
+
AUCTIONS: 'auctions',
|
|
128
|
+
SALES: 'sales'
|
|
129
|
+
} as const;
|
|
130
|
+
export type SellerScaleChallengeListItemDtoCategoryEnum = typeof SellerScaleChallengeListItemDtoCategoryEnum[keyof typeof SellerScaleChallengeListItemDtoCategoryEnum];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export const SellerScaleChallengeListItemDtoRewardTypeEnum = {
|
|
136
|
+
SCALE: 'scale'
|
|
137
|
+
} as const;
|
|
138
|
+
export type SellerScaleChallengeListItemDtoRewardTypeEnum = typeof SellerScaleChallengeListItemDtoRewardTypeEnum[keyof typeof SellerScaleChallengeListItemDtoRewardTypeEnum];
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @export
|
|
142
|
+
*/
|
|
143
|
+
export const SellerScaleChallengeListItemDtoTimeScopeEnum = {
|
|
144
|
+
ONE_TIME: 'one_time',
|
|
145
|
+
WEEKLY: 'weekly',
|
|
146
|
+
MONTHLY: 'monthly',
|
|
147
|
+
YEARLY: 'yearly'
|
|
148
|
+
} as const;
|
|
149
|
+
export type SellerScaleChallengeListItemDtoTimeScopeEnum = typeof SellerScaleChallengeListItemDtoTimeScopeEnum[keyof typeof SellerScaleChallengeListItemDtoTimeScopeEnum];
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Check if a given object implements the SellerScaleChallengeListItemDto interface.
|
|
154
|
+
*/
|
|
155
|
+
export function instanceOfSellerScaleChallengeListItemDto(value: object): value is SellerScaleChallengeListItemDto {
|
|
156
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
157
|
+
if (!('progressId' in value) || value['progressId'] === undefined) return false;
|
|
158
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
159
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
160
|
+
if (!('rewardType' in value) || value['rewardType'] === undefined) return false;
|
|
161
|
+
if (!('scale' in value) || value['scale'] === undefined) return false;
|
|
162
|
+
if (!('currentValue' in value) || value['currentValue'] === undefined) return false;
|
|
163
|
+
if (!('timeScope' in value) || value['timeScope'] === undefined) return false;
|
|
164
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
165
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
166
|
+
if (!('isCompleted' in value) || value['isCompleted'] === undefined) return false;
|
|
167
|
+
if (!('isCollected' in value) || value['isCollected'] === undefined) return false;
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function SellerScaleChallengeListItemDtoFromJSON(json: any): SellerScaleChallengeListItemDto {
|
|
172
|
+
return SellerScaleChallengeListItemDtoFromJSONTyped(json, false);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function SellerScaleChallengeListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerScaleChallengeListItemDto {
|
|
176
|
+
if (json == null) {
|
|
177
|
+
return json;
|
|
178
|
+
}
|
|
179
|
+
return {
|
|
180
|
+
|
|
181
|
+
'id': json['id'],
|
|
182
|
+
'progressId': json['progressId'],
|
|
183
|
+
'type': json['type'],
|
|
184
|
+
'category': json['category'],
|
|
185
|
+
'rewardType': json['rewardType'],
|
|
186
|
+
'scale': json['scale'],
|
|
187
|
+
'currentValue': json['currentValue'],
|
|
188
|
+
'timeScope': json['timeScope'],
|
|
189
|
+
'startDate': json['startDate'],
|
|
190
|
+
'endDate': json['endDate'],
|
|
191
|
+
'isCompleted': json['isCompleted'],
|
|
192
|
+
'isCollected': json['isCollected'],
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function SellerScaleChallengeListItemDtoToJSON(json: any): SellerScaleChallengeListItemDto {
|
|
197
|
+
return SellerScaleChallengeListItemDtoToJSONTyped(json, false);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function SellerScaleChallengeListItemDtoToJSONTyped(value?: SellerScaleChallengeListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
201
|
+
if (value == null) {
|
|
202
|
+
return value;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return {
|
|
206
|
+
|
|
207
|
+
'id': value['id'],
|
|
208
|
+
'progressId': value['progressId'],
|
|
209
|
+
'type': value['type'],
|
|
210
|
+
'category': value['category'],
|
|
211
|
+
'rewardType': value['rewardType'],
|
|
212
|
+
'scale': value['scale'],
|
|
213
|
+
'currentValue': value['currentValue'],
|
|
214
|
+
'timeScope': value['timeScope'],
|
|
215
|
+
'startDate': value['startDate'],
|
|
216
|
+
'endDate': value['endDate'],
|
|
217
|
+
'isCompleted': value['isCompleted'],
|
|
218
|
+
'isCollected': value['isCollected'],
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|