@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.
Files changed (78) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +80 -1
  4. package/dist/apis/AdminApi.js +382 -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/FeatureFlagListItemDto.d.ts +93 -0
  28. package/dist/models/FeatureFlagListItemDto.js +100 -0
  29. package/dist/models/GetAccountChallengeRewardUsagesListDto.d.ts +33 -0
  30. package/dist/models/GetAccountChallengeRewardUsagesListDto.js +52 -0
  31. package/dist/models/GetAllFeatureFlags200Response.d.ts +47 -0
  32. package/dist/models/GetAllFeatureFlags200Response.js +62 -0
  33. package/dist/models/GetSellerChallengesListDto.d.ts +33 -0
  34. package/dist/models/GetSellerChallengesListDto.js +52 -0
  35. package/dist/models/GetSellerChallengesListDtoChallengesInner.d.ts +27 -0
  36. package/dist/models/GetSellerChallengesListDtoChallengesInner.js +54 -0
  37. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +9 -0
  38. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +8 -1
  39. package/dist/models/ListAccountMetricsDto.d.ts +6 -0
  40. package/dist/models/ListAccountMetricsDto.js +4 -0
  41. package/dist/models/PrivateAccountGetMeResponse.d.ts +9 -0
  42. package/dist/models/PrivateAccountGetMeResponse.js +8 -1
  43. package/dist/models/SellerScaleChallengeListItemDto.d.ts +148 -0
  44. package/dist/models/SellerScaleChallengeListItemDto.js +142 -0
  45. package/dist/models/SellerTargetChallengeListItemDto.d.ts +154 -0
  46. package/dist/models/SellerTargetChallengeListItemDto.js +146 -0
  47. package/dist/models/UpdateChallengeInput.d.ts +44 -0
  48. package/dist/models/UpdateChallengeInput.js +53 -0
  49. package/dist/models/UpdateFeatureFlagInput.d.ts +44 -0
  50. package/dist/models/UpdateFeatureFlagInput.js +53 -0
  51. package/dist/models/index.d.ts +15 -0
  52. package/dist/models/index.js +15 -0
  53. package/package.json +1 -1
  54. package/src/apis/AdminApi.ts +358 -0
  55. package/src/apis/ChallengesApi.ts +156 -0
  56. package/src/apis/index.ts +1 -0
  57. package/src/models/AccountChallengeRewardUsageListItemDto.ts +119 -0
  58. package/src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts +65 -0
  59. package/src/models/AccountDto.ts +16 -0
  60. package/src/models/AccountMetricsDto.ts +9 -0
  61. package/src/models/AdminChallengeListDto.ts +74 -0
  62. package/src/models/AdminChallengeListItemDto.ts +185 -0
  63. package/src/models/AdminListAccountDto.ts +16 -0
  64. package/src/models/ChallengeRewardBalanceDto.ts +75 -0
  65. package/src/models/CreateChallengeInput.ts +109 -0
  66. package/src/models/FeatureFlagListItemDto.ts +148 -0
  67. package/src/models/GetAccountChallengeRewardUsagesListDto.ts +74 -0
  68. package/src/models/GetAllFeatureFlags200Response.ts +106 -0
  69. package/src/models/GetSellerChallengesListDto.ts +74 -0
  70. package/src/models/GetSellerChallengesListDtoChallengesInner.ts +73 -0
  71. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +19 -1
  72. package/src/models/ListAccountMetricsDto.ts +9 -0
  73. package/src/models/PrivateAccountGetMeResponse.ts +19 -1
  74. package/src/models/SellerScaleChallengeListItemDto.ts +221 -0
  75. package/src/models/SellerTargetChallengeListItemDto.ts +230 -0
  76. package/src/models/UpdateChallengeInput.ts +81 -0
  77. package/src/models/UpdateFeatureFlagInput.ts +81 -0
  78. package/src/models/index.ts +15 -0
@@ -0,0 +1,148 @@
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 SellerScaleChallengeListItemDto
16
+ */
17
+ export interface SellerScaleChallengeListItemDto {
18
+ /**
19
+ * Challenge id
20
+ * @type {string}
21
+ * @memberof SellerScaleChallengeListItemDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Account progress id when the account has progress for this challenge
26
+ * @type {string}
27
+ * @memberof SellerScaleChallengeListItemDto
28
+ */
29
+ progressId: string | null;
30
+ /**
31
+ * Challenge type (e.g. keep_pointing_domains)
32
+ * @type {string}
33
+ * @memberof SellerScaleChallengeListItemDto
34
+ */
35
+ type: SellerScaleChallengeListItemDtoTypeEnum;
36
+ /**
37
+ * Challenge category: domains, account, auctions, sales
38
+ * @type {string}
39
+ * @memberof SellerScaleChallengeListItemDto
40
+ */
41
+ category: SellerScaleChallengeListItemDtoCategoryEnum;
42
+ /**
43
+ * Reward type: scale
44
+ * @type {string}
45
+ * @memberof SellerScaleChallengeListItemDto
46
+ */
47
+ rewardType: SellerScaleChallengeListItemDtoRewardTypeEnum;
48
+ /**
49
+ * Threshold -> reward points (e.g. { "10": 0.1, "50": 0.25, "250": 0.5 })
50
+ * @type {object}
51
+ * @memberof SellerScaleChallengeListItemDto
52
+ */
53
+ scale: object;
54
+ /**
55
+ * Current value for this period (e.g. for keep_pointing_domains: number of domains pointing to our server)
56
+ * @type {number}
57
+ * @memberof SellerScaleChallengeListItemDto
58
+ */
59
+ currentValue: number;
60
+ /**
61
+ * When the challenge is active: one_time, custom, weekly, monthly, yearly
62
+ * @type {string}
63
+ * @memberof SellerScaleChallengeListItemDto
64
+ */
65
+ timeScope: SellerScaleChallengeListItemDtoTimeScopeEnum;
66
+ /**
67
+ * Current period start (or challenge start for custom); null for one_time
68
+ * @type {string}
69
+ * @memberof SellerScaleChallengeListItemDto
70
+ */
71
+ startDate: string | null;
72
+ /**
73
+ * Current period end (or challenge end for custom); null for one_time
74
+ * @type {string}
75
+ * @memberof SellerScaleChallengeListItemDto
76
+ */
77
+ endDate: string | null;
78
+ /**
79
+ * Whether the challenge progress is completed
80
+ * @type {boolean}
81
+ * @memberof SellerScaleChallengeListItemDto
82
+ */
83
+ isCompleted: boolean;
84
+ /**
85
+ * Whether the reward has been collected
86
+ * @type {boolean}
87
+ * @memberof SellerScaleChallengeListItemDto
88
+ */
89
+ isCollected: boolean;
90
+ }
91
+ /**
92
+ * @export
93
+ */
94
+ export declare const SellerScaleChallengeListItemDtoTypeEnum: {
95
+ readonly NEW_POINTING_DOMAINS: "new_pointing_domains";
96
+ readonly ADD_FIRST_DOMAIN: "add_first_domain";
97
+ readonly NEW_VERIFIED_DOMAINS: "new_verified_domains";
98
+ readonly KEEP_POINTING_DOMAINS: "keep_pointing_domains";
99
+ readonly ADD_BANK_ACCOUNT: "add_bank_account";
100
+ readonly VERIFY_BANK_ACCOUNT: "verify_bank_account";
101
+ readonly SET_ACCOUNT_AVATAR: "set_account_avatar";
102
+ readonly SET_ACCOUNT_SHORT_DESCRIPTION: "set_account_short_description";
103
+ readonly SET_SIDN: "set_sidn";
104
+ readonly CONFIGURE_FAST_PAYOUT_FOR_TRANSFERS: "configure_fast_payout_for_transfers";
105
+ readonly RECEIVE_FIRST_PAYOUT: "receive_first_payout";
106
+ readonly FIRST_SALE_BY_LEAD: "first_sale_by_lead";
107
+ readonly FIRST_SALE_BY_IMPORTED_LEAD: "first_sale_by_imported_lead";
108
+ readonly FIRST_SALE_BY_LEASE_TO_OWN: "first_sale_by_lease_to_own";
109
+ readonly FIRST_SALE_BY_RENT: "first_sale_by_rent";
110
+ readonly FIRST_SALE_BY_AUCTION: "first_sale_by_auction";
111
+ readonly NEW_PAID_AUCTIONS: "new_paid_auctions";
112
+ };
113
+ export type SellerScaleChallengeListItemDtoTypeEnum = typeof SellerScaleChallengeListItemDtoTypeEnum[keyof typeof SellerScaleChallengeListItemDtoTypeEnum];
114
+ /**
115
+ * @export
116
+ */
117
+ export declare const SellerScaleChallengeListItemDtoCategoryEnum: {
118
+ readonly DOMAINS: "domains";
119
+ readonly ACCOUNT: "account";
120
+ readonly AUCTIONS: "auctions";
121
+ readonly SALES: "sales";
122
+ };
123
+ export type SellerScaleChallengeListItemDtoCategoryEnum = typeof SellerScaleChallengeListItemDtoCategoryEnum[keyof typeof SellerScaleChallengeListItemDtoCategoryEnum];
124
+ /**
125
+ * @export
126
+ */
127
+ export declare const SellerScaleChallengeListItemDtoRewardTypeEnum: {
128
+ readonly SCALE: "scale";
129
+ };
130
+ export type SellerScaleChallengeListItemDtoRewardTypeEnum = typeof SellerScaleChallengeListItemDtoRewardTypeEnum[keyof typeof SellerScaleChallengeListItemDtoRewardTypeEnum];
131
+ /**
132
+ * @export
133
+ */
134
+ export declare const SellerScaleChallengeListItemDtoTimeScopeEnum: {
135
+ readonly ONE_TIME: "one_time";
136
+ readonly WEEKLY: "weekly";
137
+ readonly MONTHLY: "monthly";
138
+ readonly YEARLY: "yearly";
139
+ };
140
+ export type SellerScaleChallengeListItemDtoTimeScopeEnum = typeof SellerScaleChallengeListItemDtoTimeScopeEnum[keyof typeof SellerScaleChallengeListItemDtoTimeScopeEnum];
141
+ /**
142
+ * Check if a given object implements the SellerScaleChallengeListItemDto interface.
143
+ */
144
+ export declare function instanceOfSellerScaleChallengeListItemDto(value: object): value is SellerScaleChallengeListItemDto;
145
+ export declare function SellerScaleChallengeListItemDtoFromJSON(json: any): SellerScaleChallengeListItemDto;
146
+ export declare function SellerScaleChallengeListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerScaleChallengeListItemDto;
147
+ export declare function SellerScaleChallengeListItemDtoToJSON(json: any): SellerScaleChallengeListItemDto;
148
+ export declare function SellerScaleChallengeListItemDtoToJSONTyped(value?: SellerScaleChallengeListItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,142 @@
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.SellerScaleChallengeListItemDtoTimeScopeEnum = exports.SellerScaleChallengeListItemDtoRewardTypeEnum = exports.SellerScaleChallengeListItemDtoCategoryEnum = exports.SellerScaleChallengeListItemDtoTypeEnum = void 0;
17
+ exports.instanceOfSellerScaleChallengeListItemDto = instanceOfSellerScaleChallengeListItemDto;
18
+ exports.SellerScaleChallengeListItemDtoFromJSON = SellerScaleChallengeListItemDtoFromJSON;
19
+ exports.SellerScaleChallengeListItemDtoFromJSONTyped = SellerScaleChallengeListItemDtoFromJSONTyped;
20
+ exports.SellerScaleChallengeListItemDtoToJSON = SellerScaleChallengeListItemDtoToJSON;
21
+ exports.SellerScaleChallengeListItemDtoToJSONTyped = SellerScaleChallengeListItemDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SellerScaleChallengeListItemDtoTypeEnum = {
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.SellerScaleChallengeListItemDtoCategoryEnum = {
48
+ DOMAINS: 'domains',
49
+ ACCOUNT: 'account',
50
+ AUCTIONS: 'auctions',
51
+ SALES: 'sales'
52
+ };
53
+ /**
54
+ * @export
55
+ */
56
+ exports.SellerScaleChallengeListItemDtoRewardTypeEnum = {
57
+ SCALE: 'scale'
58
+ };
59
+ /**
60
+ * @export
61
+ */
62
+ exports.SellerScaleChallengeListItemDtoTimeScopeEnum = {
63
+ ONE_TIME: 'one_time',
64
+ WEEKLY: 'weekly',
65
+ MONTHLY: 'monthly',
66
+ YEARLY: 'yearly'
67
+ };
68
+ /**
69
+ * Check if a given object implements the SellerScaleChallengeListItemDto interface.
70
+ */
71
+ function instanceOfSellerScaleChallengeListItemDto(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 (!('scale' in value) || value['scale'] === undefined)
83
+ return false;
84
+ if (!('currentValue' in value) || value['currentValue'] === undefined)
85
+ return false;
86
+ if (!('timeScope' in value) || value['timeScope'] === undefined)
87
+ return false;
88
+ if (!('startDate' in value) || value['startDate'] === undefined)
89
+ return false;
90
+ if (!('endDate' in value) || value['endDate'] === undefined)
91
+ return false;
92
+ if (!('isCompleted' in value) || value['isCompleted'] === undefined)
93
+ return false;
94
+ if (!('isCollected' in value) || value['isCollected'] === undefined)
95
+ return false;
96
+ return true;
97
+ }
98
+ function SellerScaleChallengeListItemDtoFromJSON(json) {
99
+ return SellerScaleChallengeListItemDtoFromJSONTyped(json, false);
100
+ }
101
+ function SellerScaleChallengeListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
102
+ if (json == null) {
103
+ return json;
104
+ }
105
+ return {
106
+ 'id': json['id'],
107
+ 'progressId': json['progressId'],
108
+ 'type': json['type'],
109
+ 'category': json['category'],
110
+ 'rewardType': json['rewardType'],
111
+ 'scale': json['scale'],
112
+ 'currentValue': json['currentValue'],
113
+ 'timeScope': json['timeScope'],
114
+ 'startDate': json['startDate'],
115
+ 'endDate': json['endDate'],
116
+ 'isCompleted': json['isCompleted'],
117
+ 'isCollected': json['isCollected'],
118
+ };
119
+ }
120
+ function SellerScaleChallengeListItemDtoToJSON(json) {
121
+ return SellerScaleChallengeListItemDtoToJSONTyped(json, false);
122
+ }
123
+ function SellerScaleChallengeListItemDtoToJSONTyped(value, ignoreDiscriminator) {
124
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
125
+ if (value == null) {
126
+ return value;
127
+ }
128
+ return {
129
+ 'id': value['id'],
130
+ 'progressId': value['progressId'],
131
+ 'type': value['type'],
132
+ 'category': value['category'],
133
+ 'rewardType': value['rewardType'],
134
+ 'scale': value['scale'],
135
+ 'currentValue': value['currentValue'],
136
+ 'timeScope': value['timeScope'],
137
+ 'startDate': value['startDate'],
138
+ 'endDate': value['endDate'],
139
+ 'isCompleted': value['isCompleted'],
140
+ 'isCollected': value['isCollected'],
141
+ };
142
+ }
@@ -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
+ }