@randock/nameshift-api-client 0.0.383 → 0.0.384

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +54 -1
  4. package/dist/apis/AdminApi.js +263 -0
  5. package/dist/apis/ChallengesApi.d.ts +46 -0
  6. package/dist/apis/ChallengesApi.js +234 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AccountChallengeRewardUsageListItemDto.d.ts +63 -0
  10. package/dist/models/AccountChallengeRewardUsageListItemDto.js +72 -0
  11. package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.d.ts +32 -0
  12. package/dist/models/AccountChallengeRewardUsageListItemDtoMetadata.js +49 -0
  13. package/dist/models/AccountDto.d.ts +7 -0
  14. package/dist/models/AccountDto.js +5 -0
  15. package/dist/models/AccountMetricsDto.d.ts +6 -0
  16. package/dist/models/AccountMetricsDto.js +4 -0
  17. package/dist/models/AdminChallengeListDto.d.ts +33 -0
  18. package/dist/models/AdminChallengeListDto.js +52 -0
  19. package/dist/models/AdminChallengeListItemDto.d.ts +125 -0
  20. package/dist/models/AdminChallengeListItemDto.js +125 -0
  21. package/dist/models/AdminListAccountDto.d.ts +7 -0
  22. package/dist/models/AdminListAccountDto.js +5 -0
  23. package/dist/models/ChallengeRewardBalanceDto.d.ts +38 -0
  24. package/dist/models/ChallengeRewardBalanceDto.js +55 -0
  25. package/dist/models/CreateChallengeInput.d.ts +67 -0
  26. package/dist/models/CreateChallengeInput.js +80 -0
  27. package/dist/models/GetAccountChallengeRewardUsagesListDto.d.ts +33 -0
  28. package/dist/models/GetAccountChallengeRewardUsagesListDto.js +52 -0
  29. package/dist/models/GetSellerChallengesListDto.d.ts +33 -0
  30. package/dist/models/GetSellerChallengesListDto.js +52 -0
  31. package/dist/models/GetSellerChallengesListDtoChallengesInner.d.ts +27 -0
  32. package/dist/models/GetSellerChallengesListDtoChallengesInner.js +54 -0
  33. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +9 -0
  34. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +8 -1
  35. package/dist/models/PrivateAccountGetMeResponse.d.ts +9 -0
  36. package/dist/models/PrivateAccountGetMeResponse.js +8 -1
  37. package/dist/models/SellerScaleChallengeListItemDto.d.ts +148 -0
  38. package/dist/models/SellerScaleChallengeListItemDto.js +142 -0
  39. package/dist/models/SellerTargetChallengeListItemDto.d.ts +154 -0
  40. package/dist/models/SellerTargetChallengeListItemDto.js +146 -0
  41. package/dist/models/UpdateChallengeInput.d.ts +44 -0
  42. package/dist/models/UpdateChallengeInput.js +53 -0
  43. package/dist/models/index.d.ts +12 -0
  44. package/dist/models/index.js +12 -0
  45. package/package.json +1 -1
  46. package/src/apis/AdminApi.ts +240 -0
  47. package/src/apis/ChallengesApi.ts +156 -0
  48. package/src/apis/index.ts +1 -0
  49. package/src/models/AccountChallengeRewardUsageListItemDto.ts +119 -0
  50. package/src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts +65 -0
  51. package/src/models/AccountDto.ts +16 -0
  52. package/src/models/AccountMetricsDto.ts +9 -0
  53. package/src/models/AdminChallengeListDto.ts +74 -0
  54. package/src/models/AdminChallengeListItemDto.ts +185 -0
  55. package/src/models/AdminListAccountDto.ts +16 -0
  56. package/src/models/ChallengeRewardBalanceDto.ts +75 -0
  57. package/src/models/CreateChallengeInput.ts +109 -0
  58. package/src/models/GetAccountChallengeRewardUsagesListDto.ts +74 -0
  59. package/src/models/GetSellerChallengesListDto.ts +74 -0
  60. package/src/models/GetSellerChallengesListDtoChallengesInner.ts +73 -0
  61. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +19 -1
  62. package/src/models/PrivateAccountGetMeResponse.ts +19 -1
  63. package/src/models/SellerScaleChallengeListItemDto.ts +221 -0
  64. package/src/models/SellerTargetChallengeListItemDto.ts +230 -0
  65. package/src/models/UpdateChallengeInput.ts +81 -0
  66. package/src/models/index.ts +12 -0
@@ -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
+
@@ -4,6 +4,8 @@ export * from './AccountAliasDto';
4
4
  export * from './AccountAliasInput';
5
5
  export * from './AccountBankAccountDto';
6
6
  export * from './AccountBankAccountDtoDetails';
7
+ export * from './AccountChallengeRewardUsageListItemDto';
8
+ export * from './AccountChallengeRewardUsageListItemDtoMetadata';
7
9
  export * from './AccountCommissionByDateRangeDto';
8
10
  export * from './AccountCountryStatsDto';
9
11
  export * from './AccountDto';
@@ -44,6 +46,8 @@ export * from './AdminAuctionCommissionByDateRangeInput';
44
46
  export * from './AdminAuctionConfigurationInput';
45
47
  export * from './AdminBankAccountDto';
46
48
  export * from './AdminBuyerLoginDto';
49
+ export * from './AdminChallengeListDto';
50
+ export * from './AdminChallengeListItemDto';
47
51
  export * from './AdminCompanyStatsDto';
48
52
  export * from './AdminCompanyStatsLedger';
49
53
  export * from './AdminDashboardStatsDto';
@@ -114,6 +118,7 @@ export * from './BuyerSubscriptionListItemDto';
114
118
  export * from './BuyerSubscriptionListItemDtoDomainInformation';
115
119
  export * from './BuyerTaskDetailsDto';
116
120
  export * from './CaBankAccountDetails';
121
+ export * from './ChallengeRewardBalanceDto';
117
122
  export * from './ChangeOrderStatusInput';
118
123
  export * from './ChangeSubscriptionStatusInput';
119
124
  export * from './ChartDataPoint';
@@ -143,6 +148,7 @@ export * from './CreateAccountPaymentInput';
143
148
  export * from './CreateAccountPaymentManualTransactionInput';
144
149
  export * from './CreateBankAccountInput';
145
150
  export * from './CreateBuyerLeadMessageInput';
151
+ export * from './CreateChallengeInput';
146
152
  export * from './CreateLeadInput';
147
153
  export * from './CreateLeadMessageInput';
148
154
  export * from './CreateManualLeadInput';
@@ -197,6 +203,7 @@ export * from './FixedCommissionPayloadDto';
197
203
  export * from './FixedCommissionPayloadInput';
198
204
  export * from './FixedCommissionReasonPayloadDto';
199
205
  export * from './ForgotPasswordRequestInput';
206
+ export * from './GetAccountChallengeRewardUsagesListDto';
200
207
  export * from './GetAccountNameshiftCommissionsResponseDto';
201
208
  export * from './GetAllAffiliateCommissions200Response';
202
209
  export * from './GetAllAuctions200Response';
@@ -214,6 +221,8 @@ export * from './GetBuyerLeads200Response';
214
221
  export * from './GetBuyerSubscriptions200Response';
215
222
  export * from './GetBuyerTransfers200Response';
216
223
  export * from './GetInvoices200Response';
224
+ export * from './GetSellerChallengesListDto';
225
+ export * from './GetSellerChallengesListDtoChallengesInner';
217
226
  export * from './HistoricalMetrics';
218
227
  export * from './HttpException';
219
228
  export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
@@ -357,10 +366,12 @@ export * from './SellerLeadDetails';
357
366
  export * from './SellerPendingPayoutsByCurrencyStatsItemDto';
358
367
  export * from './SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto';
359
368
  export * from './SellerSalesCountStatsItemDto';
369
+ export * from './SellerScaleChallengeListItemDto';
360
370
  export * from './SellerSecurityUserAccountDto';
361
371
  export * from './SellerSecurityUserDto';
362
372
  export * from './SellerSubscriptionListItemDto';
363
373
  export * from './SellerSubscriptionListItemDtoDomainInformation';
374
+ export * from './SellerTargetChallengeListItemDto';
364
375
  export * from './SellerTotalEarningsByCurrencyOverTimeStatsItemDto';
365
376
  export * from './SellerTotalEarningsByCurrencyStatsItemDto';
366
377
  export * from './SellerTotalRentMonthlyIncomeByCurrencyStatsItemDto';
@@ -408,6 +419,7 @@ export * from './UpdateAccountBillingInformationInput';
408
419
  export * from './UpdateAuctionMuteStatusInput';
409
420
  export * from './UpdateBuyerDomainTransferIpsTagInputDto';
410
421
  export * from './UpdateBuyerNotificationSettingsInput';
422
+ export * from './UpdateChallengeInput';
411
423
  export * from './UpdateDomainInput';
412
424
  export * from './UpdateDomainTransferAuthCodeInput';
413
425
  export * from './UpdateDomainTransferIpsTagInput';