@randock/nameshift-api-client 0.0.382 → 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 +10 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +9 -1
- package/dist/models/PrivateAccountGetMeResponse.d.ts +10 -0
- package/dist/models/PrivateAccountGetMeResponse.js +9 -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 +20 -1
- package/src/models/PrivateAccountGetMeResponse.ts +20 -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,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SellerTargetChallengeListItemDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerTargetChallengeListItemDto {
|
|
18
|
+
/**
|
|
19
|
+
* Challenge id
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Account progress id when the account has progress for this challenge
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
28
|
+
*/
|
|
29
|
+
progressId: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Challenge type (e.g. new_pointing_domains)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
34
|
+
*/
|
|
35
|
+
type: SellerTargetChallengeListItemDtoTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Challenge category: domains, account, auctions, sales
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
40
|
+
*/
|
|
41
|
+
category: SellerTargetChallengeListItemDtoCategoryEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Reward type: target
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
46
|
+
*/
|
|
47
|
+
rewardType: SellerTargetChallengeListItemDtoRewardTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Reward points for completing the challenge
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
52
|
+
*/
|
|
53
|
+
rewardPoints: number;
|
|
54
|
+
/**
|
|
55
|
+
* Target count to complete the challenge
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
58
|
+
*/
|
|
59
|
+
targetCount: number;
|
|
60
|
+
/**
|
|
61
|
+
* Progress as percentage 0–100
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
64
|
+
*/
|
|
65
|
+
progressPercent: number;
|
|
66
|
+
/**
|
|
67
|
+
* When the challenge is active: one_time, custom, weekly, monthly, yearly
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
70
|
+
*/
|
|
71
|
+
timeScope: SellerTargetChallengeListItemDtoTimeScopeEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Current period start (or challenge start for custom); null for one_time
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
76
|
+
*/
|
|
77
|
+
startDate: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Current period end (or challenge end for custom); null for one_time
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
82
|
+
*/
|
|
83
|
+
endDate: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the challenge progress is completed
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
88
|
+
*/
|
|
89
|
+
isCompleted: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the reward has been collected
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof SellerTargetChallengeListItemDto
|
|
94
|
+
*/
|
|
95
|
+
isCollected: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const SellerTargetChallengeListItemDtoTypeEnum: {
|
|
101
|
+
readonly NEW_POINTING_DOMAINS: "new_pointing_domains";
|
|
102
|
+
readonly ADD_FIRST_DOMAIN: "add_first_domain";
|
|
103
|
+
readonly NEW_VERIFIED_DOMAINS: "new_verified_domains";
|
|
104
|
+
readonly KEEP_POINTING_DOMAINS: "keep_pointing_domains";
|
|
105
|
+
readonly ADD_BANK_ACCOUNT: "add_bank_account";
|
|
106
|
+
readonly VERIFY_BANK_ACCOUNT: "verify_bank_account";
|
|
107
|
+
readonly SET_ACCOUNT_AVATAR: "set_account_avatar";
|
|
108
|
+
readonly SET_ACCOUNT_SHORT_DESCRIPTION: "set_account_short_description";
|
|
109
|
+
readonly SET_SIDN: "set_sidn";
|
|
110
|
+
readonly CONFIGURE_FAST_PAYOUT_FOR_TRANSFERS: "configure_fast_payout_for_transfers";
|
|
111
|
+
readonly RECEIVE_FIRST_PAYOUT: "receive_first_payout";
|
|
112
|
+
readonly FIRST_SALE_BY_LEAD: "first_sale_by_lead";
|
|
113
|
+
readonly FIRST_SALE_BY_IMPORTED_LEAD: "first_sale_by_imported_lead";
|
|
114
|
+
readonly FIRST_SALE_BY_LEASE_TO_OWN: "first_sale_by_lease_to_own";
|
|
115
|
+
readonly FIRST_SALE_BY_RENT: "first_sale_by_rent";
|
|
116
|
+
readonly FIRST_SALE_BY_AUCTION: "first_sale_by_auction";
|
|
117
|
+
readonly NEW_PAID_AUCTIONS: "new_paid_auctions";
|
|
118
|
+
};
|
|
119
|
+
export type SellerTargetChallengeListItemDtoTypeEnum = typeof SellerTargetChallengeListItemDtoTypeEnum[keyof typeof SellerTargetChallengeListItemDtoTypeEnum];
|
|
120
|
+
/**
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export declare const SellerTargetChallengeListItemDtoCategoryEnum: {
|
|
124
|
+
readonly DOMAINS: "domains";
|
|
125
|
+
readonly ACCOUNT: "account";
|
|
126
|
+
readonly AUCTIONS: "auctions";
|
|
127
|
+
readonly SALES: "sales";
|
|
128
|
+
};
|
|
129
|
+
export type SellerTargetChallengeListItemDtoCategoryEnum = typeof SellerTargetChallengeListItemDtoCategoryEnum[keyof typeof SellerTargetChallengeListItemDtoCategoryEnum];
|
|
130
|
+
/**
|
|
131
|
+
* @export
|
|
132
|
+
*/
|
|
133
|
+
export declare const SellerTargetChallengeListItemDtoRewardTypeEnum: {
|
|
134
|
+
readonly TARGET: "target";
|
|
135
|
+
};
|
|
136
|
+
export type SellerTargetChallengeListItemDtoRewardTypeEnum = typeof SellerTargetChallengeListItemDtoRewardTypeEnum[keyof typeof SellerTargetChallengeListItemDtoRewardTypeEnum];
|
|
137
|
+
/**
|
|
138
|
+
* @export
|
|
139
|
+
*/
|
|
140
|
+
export declare const SellerTargetChallengeListItemDtoTimeScopeEnum: {
|
|
141
|
+
readonly ONE_TIME: "one_time";
|
|
142
|
+
readonly WEEKLY: "weekly";
|
|
143
|
+
readonly MONTHLY: "monthly";
|
|
144
|
+
readonly YEARLY: "yearly";
|
|
145
|
+
};
|
|
146
|
+
export type SellerTargetChallengeListItemDtoTimeScopeEnum = typeof SellerTargetChallengeListItemDtoTimeScopeEnum[keyof typeof SellerTargetChallengeListItemDtoTimeScopeEnum];
|
|
147
|
+
/**
|
|
148
|
+
* Check if a given object implements the SellerTargetChallengeListItemDto interface.
|
|
149
|
+
*/
|
|
150
|
+
export declare function instanceOfSellerTargetChallengeListItemDto(value: object): value is SellerTargetChallengeListItemDto;
|
|
151
|
+
export declare function SellerTargetChallengeListItemDtoFromJSON(json: any): SellerTargetChallengeListItemDto;
|
|
152
|
+
export declare function SellerTargetChallengeListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerTargetChallengeListItemDto;
|
|
153
|
+
export declare function SellerTargetChallengeListItemDtoToJSON(json: any): SellerTargetChallengeListItemDto;
|
|
154
|
+
export declare function SellerTargetChallengeListItemDtoToJSONTyped(value?: SellerTargetChallengeListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,146 @@
|
|
|
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.SellerTargetChallengeListItemDtoTimeScopeEnum = exports.SellerTargetChallengeListItemDtoRewardTypeEnum = exports.SellerTargetChallengeListItemDtoCategoryEnum = exports.SellerTargetChallengeListItemDtoTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfSellerTargetChallengeListItemDto = instanceOfSellerTargetChallengeListItemDto;
|
|
18
|
+
exports.SellerTargetChallengeListItemDtoFromJSON = SellerTargetChallengeListItemDtoFromJSON;
|
|
19
|
+
exports.SellerTargetChallengeListItemDtoFromJSONTyped = SellerTargetChallengeListItemDtoFromJSONTyped;
|
|
20
|
+
exports.SellerTargetChallengeListItemDtoToJSON = SellerTargetChallengeListItemDtoToJSON;
|
|
21
|
+
exports.SellerTargetChallengeListItemDtoToJSONTyped = SellerTargetChallengeListItemDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SellerTargetChallengeListItemDtoTypeEnum = {
|
|
26
|
+
NEW_POINTING_DOMAINS: 'new_pointing_domains',
|
|
27
|
+
ADD_FIRST_DOMAIN: 'add_first_domain',
|
|
28
|
+
NEW_VERIFIED_DOMAINS: 'new_verified_domains',
|
|
29
|
+
KEEP_POINTING_DOMAINS: 'keep_pointing_domains',
|
|
30
|
+
ADD_BANK_ACCOUNT: 'add_bank_account',
|
|
31
|
+
VERIFY_BANK_ACCOUNT: 'verify_bank_account',
|
|
32
|
+
SET_ACCOUNT_AVATAR: 'set_account_avatar',
|
|
33
|
+
SET_ACCOUNT_SHORT_DESCRIPTION: 'set_account_short_description',
|
|
34
|
+
SET_SIDN: 'set_sidn',
|
|
35
|
+
CONFIGURE_FAST_PAYOUT_FOR_TRANSFERS: 'configure_fast_payout_for_transfers',
|
|
36
|
+
RECEIVE_FIRST_PAYOUT: 'receive_first_payout',
|
|
37
|
+
FIRST_SALE_BY_LEAD: 'first_sale_by_lead',
|
|
38
|
+
FIRST_SALE_BY_IMPORTED_LEAD: 'first_sale_by_imported_lead',
|
|
39
|
+
FIRST_SALE_BY_LEASE_TO_OWN: 'first_sale_by_lease_to_own',
|
|
40
|
+
FIRST_SALE_BY_RENT: 'first_sale_by_rent',
|
|
41
|
+
FIRST_SALE_BY_AUCTION: 'first_sale_by_auction',
|
|
42
|
+
NEW_PAID_AUCTIONS: 'new_paid_auctions'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
exports.SellerTargetChallengeListItemDtoCategoryEnum = {
|
|
48
|
+
DOMAINS: 'domains',
|
|
49
|
+
ACCOUNT: 'account',
|
|
50
|
+
AUCTIONS: 'auctions',
|
|
51
|
+
SALES: 'sales'
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
exports.SellerTargetChallengeListItemDtoRewardTypeEnum = {
|
|
57
|
+
TARGET: 'target'
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
exports.SellerTargetChallengeListItemDtoTimeScopeEnum = {
|
|
63
|
+
ONE_TIME: 'one_time',
|
|
64
|
+
WEEKLY: 'weekly',
|
|
65
|
+
MONTHLY: 'monthly',
|
|
66
|
+
YEARLY: 'yearly'
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the SellerTargetChallengeListItemDto interface.
|
|
70
|
+
*/
|
|
71
|
+
function instanceOfSellerTargetChallengeListItemDto(value) {
|
|
72
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('progressId' in value) || value['progressId'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
79
|
+
return false;
|
|
80
|
+
if (!('rewardType' in value) || value['rewardType'] === undefined)
|
|
81
|
+
return false;
|
|
82
|
+
if (!('rewardPoints' in value) || value['rewardPoints'] === undefined)
|
|
83
|
+
return false;
|
|
84
|
+
if (!('targetCount' in value) || value['targetCount'] === undefined)
|
|
85
|
+
return false;
|
|
86
|
+
if (!('progressPercent' in value) || value['progressPercent'] === undefined)
|
|
87
|
+
return false;
|
|
88
|
+
if (!('timeScope' in value) || value['timeScope'] === undefined)
|
|
89
|
+
return false;
|
|
90
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
91
|
+
return false;
|
|
92
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
93
|
+
return false;
|
|
94
|
+
if (!('isCompleted' in value) || value['isCompleted'] === undefined)
|
|
95
|
+
return false;
|
|
96
|
+
if (!('isCollected' in value) || value['isCollected'] === undefined)
|
|
97
|
+
return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
function SellerTargetChallengeListItemDtoFromJSON(json) {
|
|
101
|
+
return SellerTargetChallengeListItemDtoFromJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
function SellerTargetChallengeListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
104
|
+
if (json == null) {
|
|
105
|
+
return json;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
'id': json['id'],
|
|
109
|
+
'progressId': json['progressId'],
|
|
110
|
+
'type': json['type'],
|
|
111
|
+
'category': json['category'],
|
|
112
|
+
'rewardType': json['rewardType'],
|
|
113
|
+
'rewardPoints': json['rewardPoints'],
|
|
114
|
+
'targetCount': json['targetCount'],
|
|
115
|
+
'progressPercent': json['progressPercent'],
|
|
116
|
+
'timeScope': json['timeScope'],
|
|
117
|
+
'startDate': json['startDate'],
|
|
118
|
+
'endDate': json['endDate'],
|
|
119
|
+
'isCompleted': json['isCompleted'],
|
|
120
|
+
'isCollected': json['isCollected'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function SellerTargetChallengeListItemDtoToJSON(json) {
|
|
124
|
+
return SellerTargetChallengeListItemDtoToJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
function SellerTargetChallengeListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
127
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
128
|
+
if (value == null) {
|
|
129
|
+
return value;
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
'id': value['id'],
|
|
133
|
+
'progressId': value['progressId'],
|
|
134
|
+
'type': value['type'],
|
|
135
|
+
'category': value['category'],
|
|
136
|
+
'rewardType': value['rewardType'],
|
|
137
|
+
'rewardPoints': value['rewardPoints'],
|
|
138
|
+
'targetCount': value['targetCount'],
|
|
139
|
+
'progressPercent': value['progressPercent'],
|
|
140
|
+
'timeScope': value['timeScope'],
|
|
141
|
+
'startDate': value['startDate'],
|
|
142
|
+
'endDate': value['endDate'],
|
|
143
|
+
'isCompleted': value['isCompleted'],
|
|
144
|
+
'isCollected': value['isCollected'],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateChallengeInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateChallengeInput {
|
|
18
|
+
/**
|
|
19
|
+
* Target count (only for rewardType=target; multi-count types: new_pointing_domains, new_verified_domains, new_paid_auctions)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateChallengeInput
|
|
22
|
+
*/
|
|
23
|
+
targetCount?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Reward points (only for rewardType=target)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateChallengeInput
|
|
28
|
+
*/
|
|
29
|
+
rewardPoints?: number;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof UpdateChallengeInput
|
|
34
|
+
*/
|
|
35
|
+
scale?: object;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UpdateChallengeInput interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUpdateChallengeInput(value: object): value is UpdateChallengeInput;
|
|
41
|
+
export declare function UpdateChallengeInputFromJSON(json: any): UpdateChallengeInput;
|
|
42
|
+
export declare function UpdateChallengeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChallengeInput;
|
|
43
|
+
export declare function UpdateChallengeInputToJSON(json: any): UpdateChallengeInput;
|
|
44
|
+
export declare function UpdateChallengeInputToJSONTyped(value?: UpdateChallengeInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfUpdateChallengeInput = instanceOfUpdateChallengeInput;
|
|
17
|
+
exports.UpdateChallengeInputFromJSON = UpdateChallengeInputFromJSON;
|
|
18
|
+
exports.UpdateChallengeInputFromJSONTyped = UpdateChallengeInputFromJSONTyped;
|
|
19
|
+
exports.UpdateChallengeInputToJSON = UpdateChallengeInputToJSON;
|
|
20
|
+
exports.UpdateChallengeInputToJSONTyped = UpdateChallengeInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateChallengeInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateChallengeInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateChallengeInputFromJSON(json) {
|
|
28
|
+
return UpdateChallengeInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateChallengeInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'targetCount': json['targetCount'] == null ? undefined : json['targetCount'],
|
|
36
|
+
'rewardPoints': json['rewardPoints'] == null ? undefined : json['rewardPoints'],
|
|
37
|
+
'scale': json['scale'] == null ? undefined : json['scale'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateChallengeInputToJSON(json) {
|
|
41
|
+
return UpdateChallengeInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateChallengeInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'targetCount': value['targetCount'],
|
|
50
|
+
'rewardPoints': value['rewardPoints'],
|
|
51
|
+
'scale': value['scale'],
|
|
52
|
+
};
|
|
53
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * from './AccountAliasDto';
|
|
|
2
2
|
export * from './AccountAliasInput';
|
|
3
3
|
export * from './AccountBankAccountDto';
|
|
4
4
|
export * from './AccountBankAccountDtoDetails';
|
|
5
|
+
export * from './AccountChallengeRewardUsageListItemDto';
|
|
6
|
+
export * from './AccountChallengeRewardUsageListItemDtoMetadata';
|
|
5
7
|
export * from './AccountCommissionByDateRangeDto';
|
|
6
8
|
export * from './AccountCountryStatsDto';
|
|
7
9
|
export * from './AccountDto';
|
|
@@ -42,6 +44,8 @@ export * from './AdminAuctionCommissionByDateRangeInput';
|
|
|
42
44
|
export * from './AdminAuctionConfigurationInput';
|
|
43
45
|
export * from './AdminBankAccountDto';
|
|
44
46
|
export * from './AdminBuyerLoginDto';
|
|
47
|
+
export * from './AdminChallengeListDto';
|
|
48
|
+
export * from './AdminChallengeListItemDto';
|
|
45
49
|
export * from './AdminCompanyStatsDto';
|
|
46
50
|
export * from './AdminCompanyStatsLedger';
|
|
47
51
|
export * from './AdminDashboardStatsDto';
|
|
@@ -112,6 +116,7 @@ export * from './BuyerSubscriptionListItemDto';
|
|
|
112
116
|
export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
113
117
|
export * from './BuyerTaskDetailsDto';
|
|
114
118
|
export * from './CaBankAccountDetails';
|
|
119
|
+
export * from './ChallengeRewardBalanceDto';
|
|
115
120
|
export * from './ChangeOrderStatusInput';
|
|
116
121
|
export * from './ChangeSubscriptionStatusInput';
|
|
117
122
|
export * from './ChartDataPoint';
|
|
@@ -141,6 +146,7 @@ export * from './CreateAccountPaymentInput';
|
|
|
141
146
|
export * from './CreateAccountPaymentManualTransactionInput';
|
|
142
147
|
export * from './CreateBankAccountInput';
|
|
143
148
|
export * from './CreateBuyerLeadMessageInput';
|
|
149
|
+
export * from './CreateChallengeInput';
|
|
144
150
|
export * from './CreateLeadInput';
|
|
145
151
|
export * from './CreateLeadMessageInput';
|
|
146
152
|
export * from './CreateManualLeadInput';
|
|
@@ -195,6 +201,7 @@ export * from './FixedCommissionPayloadDto';
|
|
|
195
201
|
export * from './FixedCommissionPayloadInput';
|
|
196
202
|
export * from './FixedCommissionReasonPayloadDto';
|
|
197
203
|
export * from './ForgotPasswordRequestInput';
|
|
204
|
+
export * from './GetAccountChallengeRewardUsagesListDto';
|
|
198
205
|
export * from './GetAccountNameshiftCommissionsResponseDto';
|
|
199
206
|
export * from './GetAllAffiliateCommissions200Response';
|
|
200
207
|
export * from './GetAllAuctions200Response';
|
|
@@ -212,6 +219,8 @@ export * from './GetBuyerLeads200Response';
|
|
|
212
219
|
export * from './GetBuyerSubscriptions200Response';
|
|
213
220
|
export * from './GetBuyerTransfers200Response';
|
|
214
221
|
export * from './GetInvoices200Response';
|
|
222
|
+
export * from './GetSellerChallengesListDto';
|
|
223
|
+
export * from './GetSellerChallengesListDtoChallengesInner';
|
|
215
224
|
export * from './HistoricalMetrics';
|
|
216
225
|
export * from './HttpException';
|
|
217
226
|
export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
|
|
@@ -355,10 +364,12 @@ export * from './SellerLeadDetails';
|
|
|
355
364
|
export * from './SellerPendingPayoutsByCurrencyStatsItemDto';
|
|
356
365
|
export * from './SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto';
|
|
357
366
|
export * from './SellerSalesCountStatsItemDto';
|
|
367
|
+
export * from './SellerScaleChallengeListItemDto';
|
|
358
368
|
export * from './SellerSecurityUserAccountDto';
|
|
359
369
|
export * from './SellerSecurityUserDto';
|
|
360
370
|
export * from './SellerSubscriptionListItemDto';
|
|
361
371
|
export * from './SellerSubscriptionListItemDtoDomainInformation';
|
|
372
|
+
export * from './SellerTargetChallengeListItemDto';
|
|
362
373
|
export * from './SellerTotalEarningsByCurrencyOverTimeStatsItemDto';
|
|
363
374
|
export * from './SellerTotalEarningsByCurrencyStatsItemDto';
|
|
364
375
|
export * from './SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto';
|
|
@@ -406,6 +417,7 @@ export * from './UpdateAccountBillingInformationInput';
|
|
|
406
417
|
export * from './UpdateAuctionMuteStatusInput';
|
|
407
418
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
408
419
|
export * from './UpdateBuyerNotificationSettingsInput';
|
|
420
|
+
export * from './UpdateChallengeInput';
|
|
409
421
|
export * from './UpdateDomainInput';
|
|
410
422
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
411
423
|
export * from './UpdateDomainTransferIpsTagInput';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,8 @@ __exportStar(require("./AccountAliasDto"), exports);
|
|
|
20
20
|
__exportStar(require("./AccountAliasInput"), exports);
|
|
21
21
|
__exportStar(require("./AccountBankAccountDto"), exports);
|
|
22
22
|
__exportStar(require("./AccountBankAccountDtoDetails"), exports);
|
|
23
|
+
__exportStar(require("./AccountChallengeRewardUsageListItemDto"), exports);
|
|
24
|
+
__exportStar(require("./AccountChallengeRewardUsageListItemDtoMetadata"), exports);
|
|
23
25
|
__exportStar(require("./AccountCommissionByDateRangeDto"), exports);
|
|
24
26
|
__exportStar(require("./AccountCountryStatsDto"), exports);
|
|
25
27
|
__exportStar(require("./AccountDto"), exports);
|
|
@@ -60,6 +62,8 @@ __exportStar(require("./AdminAuctionCommissionByDateRangeInput"), exports);
|
|
|
60
62
|
__exportStar(require("./AdminAuctionConfigurationInput"), exports);
|
|
61
63
|
__exportStar(require("./AdminBankAccountDto"), exports);
|
|
62
64
|
__exportStar(require("./AdminBuyerLoginDto"), exports);
|
|
65
|
+
__exportStar(require("./AdminChallengeListDto"), exports);
|
|
66
|
+
__exportStar(require("./AdminChallengeListItemDto"), exports);
|
|
63
67
|
__exportStar(require("./AdminCompanyStatsDto"), exports);
|
|
64
68
|
__exportStar(require("./AdminCompanyStatsLedger"), exports);
|
|
65
69
|
__exportStar(require("./AdminDashboardStatsDto"), exports);
|
|
@@ -130,6 +134,7 @@ __exportStar(require("./BuyerSubscriptionListItemDto"), exports);
|
|
|
130
134
|
__exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports);
|
|
131
135
|
__exportStar(require("./BuyerTaskDetailsDto"), exports);
|
|
132
136
|
__exportStar(require("./CaBankAccountDetails"), exports);
|
|
137
|
+
__exportStar(require("./ChallengeRewardBalanceDto"), exports);
|
|
133
138
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
134
139
|
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
135
140
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
@@ -159,6 +164,7 @@ __exportStar(require("./CreateAccountPaymentInput"), exports);
|
|
|
159
164
|
__exportStar(require("./CreateAccountPaymentManualTransactionInput"), exports);
|
|
160
165
|
__exportStar(require("./CreateBankAccountInput"), exports);
|
|
161
166
|
__exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
167
|
+
__exportStar(require("./CreateChallengeInput"), exports);
|
|
162
168
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
163
169
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
164
170
|
__exportStar(require("./CreateManualLeadInput"), exports);
|
|
@@ -213,6 +219,7 @@ __exportStar(require("./FixedCommissionPayloadDto"), exports);
|
|
|
213
219
|
__exportStar(require("./FixedCommissionPayloadInput"), exports);
|
|
214
220
|
__exportStar(require("./FixedCommissionReasonPayloadDto"), exports);
|
|
215
221
|
__exportStar(require("./ForgotPasswordRequestInput"), exports);
|
|
222
|
+
__exportStar(require("./GetAccountChallengeRewardUsagesListDto"), exports);
|
|
216
223
|
__exportStar(require("./GetAccountNameshiftCommissionsResponseDto"), exports);
|
|
217
224
|
__exportStar(require("./GetAllAffiliateCommissions200Response"), exports);
|
|
218
225
|
__exportStar(require("./GetAllAuctions200Response"), exports);
|
|
@@ -230,6 +237,8 @@ __exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
|
230
237
|
__exportStar(require("./GetBuyerSubscriptions200Response"), exports);
|
|
231
238
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
232
239
|
__exportStar(require("./GetInvoices200Response"), exports);
|
|
240
|
+
__exportStar(require("./GetSellerChallengesListDto"), exports);
|
|
241
|
+
__exportStar(require("./GetSellerChallengesListDtoChallengesInner"), exports);
|
|
233
242
|
__exportStar(require("./HistoricalMetrics"), exports);
|
|
234
243
|
__exportStar(require("./HttpException"), exports);
|
|
235
244
|
__exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto"), exports);
|
|
@@ -373,10 +382,12 @@ __exportStar(require("./SellerLeadDetails"), exports);
|
|
|
373
382
|
__exportStar(require("./SellerPendingPayoutsByCurrencyStatsItemDto"), exports);
|
|
374
383
|
__exportStar(require("./SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto"), exports);
|
|
375
384
|
__exportStar(require("./SellerSalesCountStatsItemDto"), exports);
|
|
385
|
+
__exportStar(require("./SellerScaleChallengeListItemDto"), exports);
|
|
376
386
|
__exportStar(require("./SellerSecurityUserAccountDto"), exports);
|
|
377
387
|
__exportStar(require("./SellerSecurityUserDto"), exports);
|
|
378
388
|
__exportStar(require("./SellerSubscriptionListItemDto"), exports);
|
|
379
389
|
__exportStar(require("./SellerSubscriptionListItemDtoDomainInformation"), exports);
|
|
390
|
+
__exportStar(require("./SellerTargetChallengeListItemDto"), exports);
|
|
380
391
|
__exportStar(require("./SellerTotalEarningsByCurrencyOverTimeStatsItemDto"), exports);
|
|
381
392
|
__exportStar(require("./SellerTotalEarningsByCurrencyStatsItemDto"), exports);
|
|
382
393
|
__exportStar(require("./SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto"), exports);
|
|
@@ -424,6 +435,7 @@ __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
|
424
435
|
__exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
|
|
425
436
|
__exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
|
|
426
437
|
__exportStar(require("./UpdateBuyerNotificationSettingsInput"), exports);
|
|
438
|
+
__exportStar(require("./UpdateChallengeInput"), exports);
|
|
427
439
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
428
440
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
429
441
|
__exportStar(require("./UpdateDomainTransferIpsTagInput"), exports);
|