@randock/nameshift-api-client 0.0.383 → 0.0.385
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 +16 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +80 -1
- package/dist/apis/AdminApi.js +382 -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/FeatureFlagListItemDto.d.ts +93 -0
- package/dist/models/FeatureFlagListItemDto.js +100 -0
- package/dist/models/GetAccountChallengeRewardUsagesListDto.d.ts +33 -0
- package/dist/models/GetAccountChallengeRewardUsagesListDto.js +52 -0
- package/dist/models/GetAllFeatureFlags200Response.d.ts +47 -0
- package/dist/models/GetAllFeatureFlags200Response.js +62 -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/ListAccountMetricsDto.d.ts +6 -0
- package/dist/models/ListAccountMetricsDto.js +4 -0
- 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/UpdateFeatureFlagInput.d.ts +44 -0
- package/dist/models/UpdateFeatureFlagInput.js +53 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +358 -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/FeatureFlagListItemDto.ts +148 -0
- package/src/models/GetAccountChallengeRewardUsagesListDto.ts +74 -0
- package/src/models/GetAllFeatureFlags200Response.ts +106 -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/ListAccountMetricsDto.ts +9 -0
- 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/UpdateFeatureFlagInput.ts +81 -0
- package/src/models/index.ts +15 -0
|
@@ -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
|
+
|
|
@@ -0,0 +1,230 @@
|
|
|
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 SellerTargetChallengeListItemDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SellerTargetChallengeListItemDto {
|
|
22
|
+
/**
|
|
23
|
+
* Challenge id
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Account progress id when the account has progress for this challenge
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
32
|
+
*/
|
|
33
|
+
progressId: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Challenge type (e.g. new_pointing_domains)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
38
|
+
*/
|
|
39
|
+
type: SellerTargetChallengeListItemDtoTypeEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Challenge category: domains, account, auctions, sales
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
44
|
+
*/
|
|
45
|
+
category: SellerTargetChallengeListItemDtoCategoryEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Reward type: target
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
50
|
+
*/
|
|
51
|
+
rewardType: SellerTargetChallengeListItemDtoRewardTypeEnum;
|
|
52
|
+
/**
|
|
53
|
+
* Reward points for completing the challenge
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
56
|
+
*/
|
|
57
|
+
rewardPoints: number;
|
|
58
|
+
/**
|
|
59
|
+
* Target count to complete the challenge
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
62
|
+
*/
|
|
63
|
+
targetCount: number;
|
|
64
|
+
/**
|
|
65
|
+
* Progress as percentage 0–100
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
68
|
+
*/
|
|
69
|
+
progressPercent: number;
|
|
70
|
+
/**
|
|
71
|
+
* When the challenge is active: one_time, custom, weekly, monthly, yearly
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
74
|
+
*/
|
|
75
|
+
timeScope: SellerTargetChallengeListItemDtoTimeScopeEnum;
|
|
76
|
+
/**
|
|
77
|
+
* Current period start (or challenge start for custom); null for one_time
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
80
|
+
*/
|
|
81
|
+
startDate: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Current period end (or challenge end for custom); null for one_time
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
86
|
+
*/
|
|
87
|
+
endDate: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the challenge progress is completed
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
92
|
+
*/
|
|
93
|
+
isCompleted: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the reward has been collected
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
98
|
+
*/
|
|
99
|
+
isCollected: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export const SellerTargetChallengeListItemDtoTypeEnum = {
|
|
107
|
+
NEW_POINTING_DOMAINS: 'new_pointing_domains',
|
|
108
|
+
ADD_FIRST_DOMAIN: 'add_first_domain',
|
|
109
|
+
NEW_VERIFIED_DOMAINS: 'new_verified_domains',
|
|
110
|
+
KEEP_POINTING_DOMAINS: 'keep_pointing_domains',
|
|
111
|
+
ADD_BANK_ACCOUNT: 'add_bank_account',
|
|
112
|
+
VERIFY_BANK_ACCOUNT: 'verify_bank_account',
|
|
113
|
+
SET_ACCOUNT_AVATAR: 'set_account_avatar',
|
|
114
|
+
SET_ACCOUNT_SHORT_DESCRIPTION: 'set_account_short_description',
|
|
115
|
+
SET_SIDN: 'set_sidn',
|
|
116
|
+
CONFIGURE_FAST_PAYOUT_FOR_TRANSFERS: 'configure_fast_payout_for_transfers',
|
|
117
|
+
RECEIVE_FIRST_PAYOUT: 'receive_first_payout',
|
|
118
|
+
FIRST_SALE_BY_LEAD: 'first_sale_by_lead',
|
|
119
|
+
FIRST_SALE_BY_IMPORTED_LEAD: 'first_sale_by_imported_lead',
|
|
120
|
+
FIRST_SALE_BY_LEASE_TO_OWN: 'first_sale_by_lease_to_own',
|
|
121
|
+
FIRST_SALE_BY_RENT: 'first_sale_by_rent',
|
|
122
|
+
FIRST_SALE_BY_AUCTION: 'first_sale_by_auction',
|
|
123
|
+
NEW_PAID_AUCTIONS: 'new_paid_auctions'
|
|
124
|
+
} as const;
|
|
125
|
+
export type SellerTargetChallengeListItemDtoTypeEnum = typeof SellerTargetChallengeListItemDtoTypeEnum[keyof typeof SellerTargetChallengeListItemDtoTypeEnum];
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export const SellerTargetChallengeListItemDtoCategoryEnum = {
|
|
131
|
+
DOMAINS: 'domains',
|
|
132
|
+
ACCOUNT: 'account',
|
|
133
|
+
AUCTIONS: 'auctions',
|
|
134
|
+
SALES: 'sales'
|
|
135
|
+
} as const;
|
|
136
|
+
export type SellerTargetChallengeListItemDtoCategoryEnum = typeof SellerTargetChallengeListItemDtoCategoryEnum[keyof typeof SellerTargetChallengeListItemDtoCategoryEnum];
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export const SellerTargetChallengeListItemDtoRewardTypeEnum = {
|
|
142
|
+
TARGET: 'target'
|
|
143
|
+
} as const;
|
|
144
|
+
export type SellerTargetChallengeListItemDtoRewardTypeEnum = typeof SellerTargetChallengeListItemDtoRewardTypeEnum[keyof typeof SellerTargetChallengeListItemDtoRewardTypeEnum];
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @export
|
|
148
|
+
*/
|
|
149
|
+
export const SellerTargetChallengeListItemDtoTimeScopeEnum = {
|
|
150
|
+
ONE_TIME: 'one_time',
|
|
151
|
+
WEEKLY: 'weekly',
|
|
152
|
+
MONTHLY: 'monthly',
|
|
153
|
+
YEARLY: 'yearly'
|
|
154
|
+
} as const;
|
|
155
|
+
export type SellerTargetChallengeListItemDtoTimeScopeEnum = typeof SellerTargetChallengeListItemDtoTimeScopeEnum[keyof typeof SellerTargetChallengeListItemDtoTimeScopeEnum];
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Check if a given object implements the SellerTargetChallengeListItemDto interface.
|
|
160
|
+
*/
|
|
161
|
+
export function instanceOfSellerTargetChallengeListItemDto(value: object): value is SellerTargetChallengeListItemDto {
|
|
162
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
163
|
+
if (!('progressId' in value) || value['progressId'] === undefined) return false;
|
|
164
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
165
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
166
|
+
if (!('rewardType' in value) || value['rewardType'] === undefined) return false;
|
|
167
|
+
if (!('rewardPoints' in value) || value['rewardPoints'] === undefined) return false;
|
|
168
|
+
if (!('targetCount' in value) || value['targetCount'] === undefined) return false;
|
|
169
|
+
if (!('progressPercent' in value) || value['progressPercent'] === undefined) return false;
|
|
170
|
+
if (!('timeScope' in value) || value['timeScope'] === undefined) return false;
|
|
171
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
172
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
173
|
+
if (!('isCompleted' in value) || value['isCompleted'] === undefined) return false;
|
|
174
|
+
if (!('isCollected' in value) || value['isCollected'] === undefined) return false;
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export function SellerTargetChallengeListItemDtoFromJSON(json: any): SellerTargetChallengeListItemDto {
|
|
179
|
+
return SellerTargetChallengeListItemDtoFromJSONTyped(json, false);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function SellerTargetChallengeListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerTargetChallengeListItemDto {
|
|
183
|
+
if (json == null) {
|
|
184
|
+
return json;
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
|
|
188
|
+
'id': json['id'],
|
|
189
|
+
'progressId': json['progressId'],
|
|
190
|
+
'type': json['type'],
|
|
191
|
+
'category': json['category'],
|
|
192
|
+
'rewardType': json['rewardType'],
|
|
193
|
+
'rewardPoints': json['rewardPoints'],
|
|
194
|
+
'targetCount': json['targetCount'],
|
|
195
|
+
'progressPercent': json['progressPercent'],
|
|
196
|
+
'timeScope': json['timeScope'],
|
|
197
|
+
'startDate': json['startDate'],
|
|
198
|
+
'endDate': json['endDate'],
|
|
199
|
+
'isCompleted': json['isCompleted'],
|
|
200
|
+
'isCollected': json['isCollected'],
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function SellerTargetChallengeListItemDtoToJSON(json: any): SellerTargetChallengeListItemDto {
|
|
205
|
+
return SellerTargetChallengeListItemDtoToJSONTyped(json, false);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function SellerTargetChallengeListItemDtoToJSONTyped(value?: SellerTargetChallengeListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
209
|
+
if (value == null) {
|
|
210
|
+
return value;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return {
|
|
214
|
+
|
|
215
|
+
'id': value['id'],
|
|
216
|
+
'progressId': value['progressId'],
|
|
217
|
+
'type': value['type'],
|
|
218
|
+
'category': value['category'],
|
|
219
|
+
'rewardType': value['rewardType'],
|
|
220
|
+
'rewardPoints': value['rewardPoints'],
|
|
221
|
+
'targetCount': value['targetCount'],
|
|
222
|
+
'progressPercent': value['progressPercent'],
|
|
223
|
+
'timeScope': value['timeScope'],
|
|
224
|
+
'startDate': value['startDate'],
|
|
225
|
+
'endDate': value['endDate'],
|
|
226
|
+
'isCompleted': value['isCompleted'],
|
|
227
|
+
'isCollected': value['isCollected'],
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 UpdateChallengeInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateChallengeInput {
|
|
22
|
+
/**
|
|
23
|
+
* Target count (only for rewardType=target; multi-count types: new_pointing_domains, new_verified_domains, new_paid_auctions)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UpdateChallengeInput
|
|
26
|
+
*/
|
|
27
|
+
targetCount?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Reward points (only for rewardType=target)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdateChallengeInput
|
|
32
|
+
*/
|
|
33
|
+
rewardPoints?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Scale object: threshold -> reward points (only for rewardType=scale). E.g. { "1": 0.1, "5": 0.5, "10": 1 }. Send the full scale, not a single item.
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof UpdateChallengeInput
|
|
38
|
+
*/
|
|
39
|
+
scale?: object;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UpdateChallengeInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUpdateChallengeInput(value: object): value is UpdateChallengeInput {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UpdateChallengeInputFromJSON(json: any): UpdateChallengeInput {
|
|
50
|
+
return UpdateChallengeInputFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UpdateChallengeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChallengeInput {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'targetCount': json['targetCount'] == null ? undefined : json['targetCount'],
|
|
60
|
+
'rewardPoints': json['rewardPoints'] == null ? undefined : json['rewardPoints'],
|
|
61
|
+
'scale': json['scale'] == null ? undefined : json['scale'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function UpdateChallengeInputToJSON(json: any): UpdateChallengeInput {
|
|
66
|
+
return UpdateChallengeInputToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UpdateChallengeInputToJSONTyped(value?: UpdateChallengeInput | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'targetCount': value['targetCount'],
|
|
77
|
+
'rewardPoints': value['rewardPoints'],
|
|
78
|
+
'scale': value['scale'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 UpdateFeatureFlagInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateFeatureFlagInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof UpdateFeatureFlagInput
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof UpdateFeatureFlagInput
|
|
32
|
+
*/
|
|
33
|
+
whitelistedAccounts?: Array<string> | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof UpdateFeatureFlagInput
|
|
38
|
+
*/
|
|
39
|
+
blacklistedAccounts?: Array<string> | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UpdateFeatureFlagInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUpdateFeatureFlagInput(value: object): value is UpdateFeatureFlagInput {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UpdateFeatureFlagInputFromJSON(json: any): UpdateFeatureFlagInput {
|
|
50
|
+
return UpdateFeatureFlagInputFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UpdateFeatureFlagInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFeatureFlagInput {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
60
|
+
'whitelistedAccounts': json['whitelistedAccounts'] == null ? undefined : json['whitelistedAccounts'],
|
|
61
|
+
'blacklistedAccounts': json['blacklistedAccounts'] == null ? undefined : json['blacklistedAccounts'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function UpdateFeatureFlagInputToJSON(json: any): UpdateFeatureFlagInput {
|
|
66
|
+
return UpdateFeatureFlagInputToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UpdateFeatureFlagInputToJSONTyped(value?: UpdateFeatureFlagInput | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'enabled': value['enabled'],
|
|
77
|
+
'whitelistedAccounts': value['whitelistedAccounts'],
|
|
78
|
+
'blacklistedAccounts': value['blacklistedAccounts'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|