@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
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FeatureFlagListItemDtoNameEnum = void 0;
|
|
17
|
+
exports.instanceOfFeatureFlagListItemDto = instanceOfFeatureFlagListItemDto;
|
|
18
|
+
exports.FeatureFlagListItemDtoFromJSON = FeatureFlagListItemDtoFromJSON;
|
|
19
|
+
exports.FeatureFlagListItemDtoFromJSONTyped = FeatureFlagListItemDtoFromJSONTyped;
|
|
20
|
+
exports.FeatureFlagListItemDtoToJSON = FeatureFlagListItemDtoToJSON;
|
|
21
|
+
exports.FeatureFlagListItemDtoToJSONTyped = FeatureFlagListItemDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.FeatureFlagListItemDtoNameEnum = {
|
|
26
|
+
LEASE_TO_OWN: 'LEASE_TO_OWN',
|
|
27
|
+
RENT: 'RENT',
|
|
28
|
+
SEO_METRICS: 'SEO_METRICS',
|
|
29
|
+
BANK_PAYOUTS: 'BANK_PAYOUTS',
|
|
30
|
+
ZERO_COMMISSION: 'ZERO_COMMISSION',
|
|
31
|
+
COMMISSION_7_5: 'COMMISSION_7_5',
|
|
32
|
+
LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
|
|
33
|
+
AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
|
|
34
|
+
DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
|
|
35
|
+
SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD',
|
|
36
|
+
SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
|
|
37
|
+
NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER',
|
|
38
|
+
DOMAIN_AUCTIONS: 'DOMAIN_AUCTIONS',
|
|
39
|
+
CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
|
|
40
|
+
QUADERNO_TAXES: 'QUADERNO_TAXES',
|
|
41
|
+
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
42
|
+
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
43
|
+
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
44
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the FeatureFlagListItemDto interface.
|
|
48
|
+
*/
|
|
49
|
+
function instanceOfFeatureFlagListItemDto(value) {
|
|
50
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('whitelistedAccounts' in value) || value['whitelistedAccounts'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('blacklistedAccounts' in value) || value['blacklistedAccounts'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('availabilityStart' in value) || value['availabilityStart'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('availabilityEnd' in value) || value['availabilityEnd'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
function FeatureFlagListItemDtoFromJSON(json) {
|
|
67
|
+
return FeatureFlagListItemDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function FeatureFlagListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': json['id'],
|
|
75
|
+
'name': json['name'],
|
|
76
|
+
'enabled': json['enabled'],
|
|
77
|
+
'whitelistedAccounts': json['whitelistedAccounts'] == null ? null : json['whitelistedAccounts'],
|
|
78
|
+
'blacklistedAccounts': json['blacklistedAccounts'] == null ? null : json['blacklistedAccounts'],
|
|
79
|
+
'availabilityStart': (new Date(json['availabilityStart'])),
|
|
80
|
+
'availabilityEnd': (json['availabilityEnd'] == null ? null : new Date(json['availabilityEnd'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function FeatureFlagListItemDtoToJSON(json) {
|
|
84
|
+
return FeatureFlagListItemDtoToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
function FeatureFlagListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
87
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
'id': value['id'],
|
|
93
|
+
'name': value['name'],
|
|
94
|
+
'enabled': value['enabled'],
|
|
95
|
+
'whitelistedAccounts': value['whitelistedAccounts'],
|
|
96
|
+
'blacklistedAccounts': value['blacklistedAccounts'],
|
|
97
|
+
'availabilityStart': ((value['availabilityStart']).toISOString()),
|
|
98
|
+
'availabilityEnd': (value['availabilityEnd'] == null ? null : value['availabilityEnd'].toISOString()),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AccountChallengeRewardUsageListItemDto } from './AccountChallengeRewardUsageListItemDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetAccountChallengeRewardUsagesListDto
|
|
17
|
+
*/
|
|
18
|
+
export interface GetAccountChallengeRewardUsagesListDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AccountChallengeRewardUsageListItemDto>}
|
|
22
|
+
* @memberof GetAccountChallengeRewardUsagesListDto
|
|
23
|
+
*/
|
|
24
|
+
usages: Array<AccountChallengeRewardUsageListItemDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetAccountChallengeRewardUsagesListDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetAccountChallengeRewardUsagesListDto(value: object): value is GetAccountChallengeRewardUsagesListDto;
|
|
30
|
+
export declare function GetAccountChallengeRewardUsagesListDtoFromJSON(json: any): GetAccountChallengeRewardUsagesListDto;
|
|
31
|
+
export declare function GetAccountChallengeRewardUsagesListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAccountChallengeRewardUsagesListDto;
|
|
32
|
+
export declare function GetAccountChallengeRewardUsagesListDtoToJSON(json: any): GetAccountChallengeRewardUsagesListDto;
|
|
33
|
+
export declare function GetAccountChallengeRewardUsagesListDtoToJSONTyped(value?: GetAccountChallengeRewardUsagesListDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetAccountChallengeRewardUsagesListDto = instanceOfGetAccountChallengeRewardUsagesListDto;
|
|
17
|
+
exports.GetAccountChallengeRewardUsagesListDtoFromJSON = GetAccountChallengeRewardUsagesListDtoFromJSON;
|
|
18
|
+
exports.GetAccountChallengeRewardUsagesListDtoFromJSONTyped = GetAccountChallengeRewardUsagesListDtoFromJSONTyped;
|
|
19
|
+
exports.GetAccountChallengeRewardUsagesListDtoToJSON = GetAccountChallengeRewardUsagesListDtoToJSON;
|
|
20
|
+
exports.GetAccountChallengeRewardUsagesListDtoToJSONTyped = GetAccountChallengeRewardUsagesListDtoToJSONTyped;
|
|
21
|
+
var AccountChallengeRewardUsageListItemDto_1 = require("./AccountChallengeRewardUsageListItemDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetAccountChallengeRewardUsagesListDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetAccountChallengeRewardUsagesListDto(value) {
|
|
26
|
+
if (!('usages' in value) || value['usages'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function GetAccountChallengeRewardUsagesListDtoFromJSON(json) {
|
|
31
|
+
return GetAccountChallengeRewardUsagesListDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function GetAccountChallengeRewardUsagesListDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'usages': (json['usages'].map(AccountChallengeRewardUsageListItemDto_1.AccountChallengeRewardUsageListItemDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function GetAccountChallengeRewardUsagesListDtoToJSON(json) {
|
|
42
|
+
return GetAccountChallengeRewardUsagesListDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetAccountChallengeRewardUsagesListDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'usages': (value['usages'].map(AccountChallengeRewardUsageListItemDto_1.AccountChallengeRewardUsageListItemDtoToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { FeatureFlagListItemDto } from './FeatureFlagListItemDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetAllFeatureFlags200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface GetAllFeatureFlags200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<FeatureFlagListItemDto>}
|
|
24
|
+
* @memberof GetAllFeatureFlags200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<FeatureFlagListItemDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof GetAllFeatureFlags200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof GetAllFeatureFlags200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetAllFeatureFlags200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfGetAllFeatureFlags200Response(value: object): value is GetAllFeatureFlags200Response;
|
|
44
|
+
export declare function GetAllFeatureFlags200ResponseFromJSON(json: any): GetAllFeatureFlags200Response;
|
|
45
|
+
export declare function GetAllFeatureFlags200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllFeatureFlags200Response;
|
|
46
|
+
export declare function GetAllFeatureFlags200ResponseToJSON(json: any): GetAllFeatureFlags200Response;
|
|
47
|
+
export declare function GetAllFeatureFlags200ResponseToJSONTyped(value?: GetAllFeatureFlags200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetAllFeatureFlags200Response = instanceOfGetAllFeatureFlags200Response;
|
|
17
|
+
exports.GetAllFeatureFlags200ResponseFromJSON = GetAllFeatureFlags200ResponseFromJSON;
|
|
18
|
+
exports.GetAllFeatureFlags200ResponseFromJSONTyped = GetAllFeatureFlags200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetAllFeatureFlags200ResponseToJSON = GetAllFeatureFlags200ResponseToJSON;
|
|
20
|
+
exports.GetAllFeatureFlags200ResponseToJSONTyped = GetAllFeatureFlags200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var FeatureFlagListItemDto_1 = require("./FeatureFlagListItemDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetAllFeatureFlags200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetAllFeatureFlags200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetAllFeatureFlags200ResponseFromJSON(json) {
|
|
37
|
+
return GetAllFeatureFlags200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetAllFeatureFlags200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(FeatureFlagListItemDto_1.FeatureFlagListItemDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetAllFeatureFlags200ResponseToJSON(json) {
|
|
50
|
+
return GetAllFeatureFlags200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetAllFeatureFlags200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(FeatureFlagListItemDto_1.FeatureFlagListItemDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetSellerChallengesListDtoChallengesInner } from './GetSellerChallengesListDtoChallengesInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetSellerChallengesListDto
|
|
17
|
+
*/
|
|
18
|
+
export interface GetSellerChallengesListDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GetSellerChallengesListDtoChallengesInner>}
|
|
22
|
+
* @memberof GetSellerChallengesListDto
|
|
23
|
+
*/
|
|
24
|
+
challenges: Array<GetSellerChallengesListDtoChallengesInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetSellerChallengesListDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetSellerChallengesListDto(value: object): value is GetSellerChallengesListDto;
|
|
30
|
+
export declare function GetSellerChallengesListDtoFromJSON(json: any): GetSellerChallengesListDto;
|
|
31
|
+
export declare function GetSellerChallengesListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSellerChallengesListDto;
|
|
32
|
+
export declare function GetSellerChallengesListDtoToJSON(json: any): GetSellerChallengesListDto;
|
|
33
|
+
export declare function GetSellerChallengesListDtoToJSONTyped(value?: GetSellerChallengesListDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetSellerChallengesListDto = instanceOfGetSellerChallengesListDto;
|
|
17
|
+
exports.GetSellerChallengesListDtoFromJSON = GetSellerChallengesListDtoFromJSON;
|
|
18
|
+
exports.GetSellerChallengesListDtoFromJSONTyped = GetSellerChallengesListDtoFromJSONTyped;
|
|
19
|
+
exports.GetSellerChallengesListDtoToJSON = GetSellerChallengesListDtoToJSON;
|
|
20
|
+
exports.GetSellerChallengesListDtoToJSONTyped = GetSellerChallengesListDtoToJSONTyped;
|
|
21
|
+
var GetSellerChallengesListDtoChallengesInner_1 = require("./GetSellerChallengesListDtoChallengesInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetSellerChallengesListDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetSellerChallengesListDto(value) {
|
|
26
|
+
if (!('challenges' in value) || value['challenges'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function GetSellerChallengesListDtoFromJSON(json) {
|
|
31
|
+
return GetSellerChallengesListDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function GetSellerChallengesListDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'challenges': (json['challenges'].map(GetSellerChallengesListDtoChallengesInner_1.GetSellerChallengesListDtoChallengesInnerFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function GetSellerChallengesListDtoToJSON(json) {
|
|
42
|
+
return GetSellerChallengesListDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetSellerChallengesListDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'challenges': (value['challenges'].map(GetSellerChallengesListDtoChallengesInner_1.GetSellerChallengesListDtoChallengesInnerToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SellerScaleChallengeListItemDto } from './SellerScaleChallengeListItemDto';
|
|
13
|
+
import type { SellerTargetChallengeListItemDto } from './SellerTargetChallengeListItemDto';
|
|
14
|
+
/**
|
|
15
|
+
* @type GetSellerChallengesListDtoChallengesInner
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type GetSellerChallengesListDtoChallengesInner = {
|
|
20
|
+
rewardType: 'scale';
|
|
21
|
+
} & SellerScaleChallengeListItemDto | {
|
|
22
|
+
rewardType: 'target';
|
|
23
|
+
} & SellerTargetChallengeListItemDto;
|
|
24
|
+
export declare function GetSellerChallengesListDtoChallengesInnerFromJSON(json: any): GetSellerChallengesListDtoChallengesInner;
|
|
25
|
+
export declare function GetSellerChallengesListDtoChallengesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSellerChallengesListDtoChallengesInner;
|
|
26
|
+
export declare function GetSellerChallengesListDtoChallengesInnerToJSON(json: any): any;
|
|
27
|
+
export declare function GetSellerChallengesListDtoChallengesInnerToJSONTyped(value?: GetSellerChallengesListDtoChallengesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetSellerChallengesListDtoChallengesInnerFromJSON = GetSellerChallengesListDtoChallengesInnerFromJSON;
|
|
17
|
+
exports.GetSellerChallengesListDtoChallengesInnerFromJSONTyped = GetSellerChallengesListDtoChallengesInnerFromJSONTyped;
|
|
18
|
+
exports.GetSellerChallengesListDtoChallengesInnerToJSON = GetSellerChallengesListDtoChallengesInnerToJSON;
|
|
19
|
+
exports.GetSellerChallengesListDtoChallengesInnerToJSONTyped = GetSellerChallengesListDtoChallengesInnerToJSONTyped;
|
|
20
|
+
var SellerScaleChallengeListItemDto_1 = require("./SellerScaleChallengeListItemDto");
|
|
21
|
+
var SellerTargetChallengeListItemDto_1 = require("./SellerTargetChallengeListItemDto");
|
|
22
|
+
function GetSellerChallengesListDtoChallengesInnerFromJSON(json) {
|
|
23
|
+
return GetSellerChallengesListDtoChallengesInnerFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function GetSellerChallengesListDtoChallengesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
switch (json['rewardType']) {
|
|
30
|
+
case 'scale':
|
|
31
|
+
return Object.assign({}, (0, SellerScaleChallengeListItemDto_1.SellerScaleChallengeListItemDtoFromJSONTyped)(json, true), { rewardType: 'scale' });
|
|
32
|
+
case 'target':
|
|
33
|
+
return Object.assign({}, (0, SellerTargetChallengeListItemDto_1.SellerTargetChallengeListItemDtoFromJSONTyped)(json, true), { rewardType: 'target' });
|
|
34
|
+
default:
|
|
35
|
+
throw new Error("No variant of GetSellerChallengesListDtoChallengesInner exists with 'rewardType=".concat(json['rewardType'], "'"));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function GetSellerChallengesListDtoChallengesInnerToJSON(json) {
|
|
39
|
+
return GetSellerChallengesListDtoChallengesInnerToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetSellerChallengesListDtoChallengesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
switch (value['rewardType']) {
|
|
47
|
+
case 'scale':
|
|
48
|
+
return Object.assign({}, (0, SellerScaleChallengeListItemDto_1.SellerScaleChallengeListItemDtoToJSON)(value), { rewardType: 'scale' });
|
|
49
|
+
case 'target':
|
|
50
|
+
return Object.assign({}, (0, SellerTargetChallengeListItemDto_1.SellerTargetChallengeListItemDtoToJSON)(value), { rewardType: 'target' });
|
|
51
|
+
default:
|
|
52
|
+
throw new Error("No variant of GetSellerChallengesListDtoChallengesInner exists with 'rewardType=".concat(value['rewardType'], "'"));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { AccountPayoutDto } from './AccountPayoutDto';
|
|
13
13
|
import type { AccountOnboardingDto } from './AccountOnboardingDto';
|
|
14
14
|
import type { WithSettingsInner } from './WithSettingsInner';
|
|
15
|
+
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
15
16
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
16
17
|
import type { AccountNotificationDto } from './AccountNotificationDto';
|
|
17
18
|
import type { BillingInformationDto } from './BillingInformationDto';
|
|
@@ -33,6 +34,12 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
33
34
|
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
34
35
|
*/
|
|
35
36
|
identifier: string;
|
|
37
|
+
/**
|
|
38
|
+
* Challenge reward balance (available and used).
|
|
39
|
+
* @type {ChallengeRewardBalanceDto}
|
|
40
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
41
|
+
*/
|
|
42
|
+
challengeRewardBalance: ChallengeRewardBalanceDto;
|
|
36
43
|
/**
|
|
37
44
|
*
|
|
38
45
|
* @type {string}
|
|
@@ -115,6 +122,8 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
115
122
|
readonly QUADERNO_TAXES: "QUADERNO_TAXES";
|
|
116
123
|
readonly ACCOUNT_ALIAS_LINK: "ACCOUNT_ALIAS_LINK";
|
|
117
124
|
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
125
|
+
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
126
|
+
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
118
127
|
};
|
|
119
128
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
120
129
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -22,6 +22,7 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
22
22
|
var AccountPayoutDto_1 = require("./AccountPayoutDto");
|
|
23
23
|
var AccountOnboardingDto_1 = require("./AccountOnboardingDto");
|
|
24
24
|
var WithSettingsInner_1 = require("./WithSettingsInner");
|
|
25
|
+
var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
|
|
25
26
|
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
26
27
|
var AccountNotificationDto_1 = require("./AccountNotificationDto");
|
|
27
28
|
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
@@ -45,7 +46,9 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
45
46
|
CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
|
|
46
47
|
QUADERNO_TAXES: 'QUADERNO_TAXES',
|
|
47
48
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
48
|
-
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL'
|
|
49
|
+
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
50
|
+
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
51
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
49
52
|
};
|
|
50
53
|
/**
|
|
51
54
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -55,6 +58,8 @@ function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWith
|
|
|
55
58
|
return false;
|
|
56
59
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
57
60
|
return false;
|
|
61
|
+
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
|
|
62
|
+
return false;
|
|
58
63
|
if (!('name' in value) || value['name'] === undefined)
|
|
59
64
|
return false;
|
|
60
65
|
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
@@ -87,6 +92,7 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
|
|
|
87
92
|
return {
|
|
88
93
|
'id': json['id'],
|
|
89
94
|
'identifier': json['identifier'],
|
|
95
|
+
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
|
|
90
96
|
'name': json['name'],
|
|
91
97
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
|
|
92
98
|
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
|
|
@@ -110,6 +116,7 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
|
|
|
110
116
|
return {
|
|
111
117
|
'id': value['id'],
|
|
112
118
|
'identifier': value['identifier'],
|
|
119
|
+
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
|
|
113
120
|
'name': value['name'],
|
|
114
121
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
|
|
115
122
|
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
|
|
@@ -63,6 +63,12 @@ export interface ListAccountMetricsDto {
|
|
|
63
63
|
* @memberof ListAccountMetricsDto
|
|
64
64
|
*/
|
|
65
65
|
pointingDomainsNumber: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ListAccountMetricsDto
|
|
70
|
+
*/
|
|
71
|
+
pendingChallengesToCollectNumber: number;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* Check if a given object implements the ListAccountMetricsDto interface.
|
|
@@ -38,6 +38,8 @@ function instanceOfListAccountMetricsDto(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('pointingDomainsNumber' in value) || value['pointingDomainsNumber'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('pendingChallengesToCollectNumber' in value) || value['pendingChallengesToCollectNumber'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
return true;
|
|
42
44
|
}
|
|
43
45
|
function ListAccountMetricsDtoFromJSON(json) {
|
|
@@ -56,6 +58,7 @@ function ListAccountMetricsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'soldDomainsNumber': json['soldDomainsNumber'],
|
|
57
59
|
'referralsNumber': json['referralsNumber'],
|
|
58
60
|
'pointingDomainsNumber': json['pointingDomainsNumber'],
|
|
61
|
+
'pendingChallengesToCollectNumber': json['pendingChallengesToCollectNumber'],
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
function ListAccountMetricsDtoToJSON(json) {
|
|
@@ -75,5 +78,6 @@ function ListAccountMetricsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
78
|
'soldDomainsNumber': value['soldDomainsNumber'],
|
|
76
79
|
'referralsNumber': value['referralsNumber'],
|
|
77
80
|
'pointingDomainsNumber': value['pointingDomainsNumber'],
|
|
81
|
+
'pendingChallengesToCollectNumber': value['pendingChallengesToCollectNumber'],
|
|
78
82
|
};
|
|
79
83
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { AccountPayoutDto } from './AccountPayoutDto';
|
|
13
13
|
import type { AccountOnboardingDto } from './AccountOnboardingDto';
|
|
14
14
|
import type { WithSettingsInner } from './WithSettingsInner';
|
|
15
|
+
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
15
16
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
16
17
|
import type { AccountNotificationDto } from './AccountNotificationDto';
|
|
17
18
|
import type { BillingInformationDto } from './BillingInformationDto';
|
|
@@ -33,6 +34,12 @@ export interface PrivateAccountGetMeResponse {
|
|
|
33
34
|
* @memberof PrivateAccountGetMeResponse
|
|
34
35
|
*/
|
|
35
36
|
identifier: string;
|
|
37
|
+
/**
|
|
38
|
+
* Challenge reward balance (available and used).
|
|
39
|
+
* @type {ChallengeRewardBalanceDto}
|
|
40
|
+
* @memberof PrivateAccountGetMeResponse
|
|
41
|
+
*/
|
|
42
|
+
challengeRewardBalance: ChallengeRewardBalanceDto;
|
|
36
43
|
/**
|
|
37
44
|
*
|
|
38
45
|
* @type {string}
|
|
@@ -121,6 +128,8 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
|
|
|
121
128
|
readonly QUADERNO_TAXES: "QUADERNO_TAXES";
|
|
122
129
|
readonly ACCOUNT_ALIAS_LINK: "ACCOUNT_ALIAS_LINK";
|
|
123
130
|
readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
|
|
131
|
+
readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
|
|
132
|
+
readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
|
|
124
133
|
};
|
|
125
134
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
126
135
|
/**
|
|
@@ -22,6 +22,7 @@ exports.PrivateAccountGetMeResponseToJSONTyped = PrivateAccountGetMeResponseToJS
|
|
|
22
22
|
var AccountPayoutDto_1 = require("./AccountPayoutDto");
|
|
23
23
|
var AccountOnboardingDto_1 = require("./AccountOnboardingDto");
|
|
24
24
|
var WithSettingsInner_1 = require("./WithSettingsInner");
|
|
25
|
+
var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
|
|
25
26
|
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
26
27
|
var AccountNotificationDto_1 = require("./AccountNotificationDto");
|
|
27
28
|
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
@@ -45,7 +46,9 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
45
46
|
CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
|
|
46
47
|
QUADERNO_TAXES: 'QUADERNO_TAXES',
|
|
47
48
|
ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
|
|
48
|
-
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL'
|
|
49
|
+
BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
|
|
50
|
+
ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
|
|
51
|
+
ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
|
|
49
52
|
};
|
|
50
53
|
/**
|
|
51
54
|
* Check if a given object implements the PrivateAccountGetMeResponse interface.
|
|
@@ -55,6 +58,8 @@ function instanceOfPrivateAccountGetMeResponse(value) {
|
|
|
55
58
|
return false;
|
|
56
59
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
57
60
|
return false;
|
|
61
|
+
if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
|
|
62
|
+
return false;
|
|
58
63
|
if (!('name' in value) || value['name'] === undefined)
|
|
59
64
|
return false;
|
|
60
65
|
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
@@ -89,6 +94,7 @@ function PrivateAccountGetMeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
94
|
return {
|
|
90
95
|
'id': json['id'],
|
|
91
96
|
'identifier': json['identifier'],
|
|
97
|
+
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
|
|
92
98
|
'name': json['name'],
|
|
93
99
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
|
|
94
100
|
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
|
|
@@ -113,6 +119,7 @@ function PrivateAccountGetMeResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
113
119
|
return {
|
|
114
120
|
'id': value['id'],
|
|
115
121
|
'identifier': value['identifier'],
|
|
122
|
+
'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
|
|
116
123
|
'name': value['name'],
|
|
117
124
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
|
|
118
125
|
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
|