@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,125 @@
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 AdminChallengeListItemDto
16
+ */
17
+ export interface AdminChallengeListItemDto {
18
+ /**
19
+ * Challenge id
20
+ * @type {string}
21
+ * @memberof AdminChallengeListItemDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Challenge type
26
+ * @type {string}
27
+ * @memberof AdminChallengeListItemDto
28
+ */
29
+ type: AdminChallengeListItemDtoTypeEnum;
30
+ /**
31
+ * Challenge category
32
+ * @type {string}
33
+ * @memberof AdminChallengeListItemDto
34
+ */
35
+ category: AdminChallengeListItemDtoCategoryEnum;
36
+ /**
37
+ * Time scope (e.g. one_time)
38
+ * @type {string}
39
+ * @memberof AdminChallengeListItemDto
40
+ */
41
+ timeScope: AdminChallengeListItemDtoTimeScopeEnum;
42
+ /**
43
+ * Reward type (target or scale)
44
+ * @type {string}
45
+ * @memberof AdminChallengeListItemDto
46
+ */
47
+ rewardType: AdminChallengeListItemDtoRewardTypeEnum;
48
+ /**
49
+ * Target count to complete the challenge
50
+ * @type {number}
51
+ * @memberof AdminChallengeListItemDto
52
+ */
53
+ targetCount: number;
54
+ /**
55
+ * Reward points
56
+ * @type {number}
57
+ * @memberof AdminChallengeListItemDto
58
+ */
59
+ rewardPoints: number;
60
+ /**
61
+ * Scale (threshold -> reward points); only when rewardType is scale
62
+ * @type {object}
63
+ * @memberof AdminChallengeListItemDto
64
+ */
65
+ scale?: object;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const AdminChallengeListItemDtoTypeEnum: {
71
+ readonly NEW_POINTING_DOMAINS: "new_pointing_domains";
72
+ readonly ADD_FIRST_DOMAIN: "add_first_domain";
73
+ readonly NEW_VERIFIED_DOMAINS: "new_verified_domains";
74
+ readonly KEEP_POINTING_DOMAINS: "keep_pointing_domains";
75
+ readonly ADD_BANK_ACCOUNT: "add_bank_account";
76
+ readonly VERIFY_BANK_ACCOUNT: "verify_bank_account";
77
+ readonly SET_ACCOUNT_AVATAR: "set_account_avatar";
78
+ readonly SET_ACCOUNT_SHORT_DESCRIPTION: "set_account_short_description";
79
+ readonly SET_SIDN: "set_sidn";
80
+ readonly CONFIGURE_FAST_PAYOUT_FOR_TRANSFERS: "configure_fast_payout_for_transfers";
81
+ readonly RECEIVE_FIRST_PAYOUT: "receive_first_payout";
82
+ readonly FIRST_SALE_BY_LEAD: "first_sale_by_lead";
83
+ readonly FIRST_SALE_BY_IMPORTED_LEAD: "first_sale_by_imported_lead";
84
+ readonly FIRST_SALE_BY_LEASE_TO_OWN: "first_sale_by_lease_to_own";
85
+ readonly FIRST_SALE_BY_RENT: "first_sale_by_rent";
86
+ readonly FIRST_SALE_BY_AUCTION: "first_sale_by_auction";
87
+ readonly NEW_PAID_AUCTIONS: "new_paid_auctions";
88
+ };
89
+ export type AdminChallengeListItemDtoTypeEnum = typeof AdminChallengeListItemDtoTypeEnum[keyof typeof AdminChallengeListItemDtoTypeEnum];
90
+ /**
91
+ * @export
92
+ */
93
+ export declare const AdminChallengeListItemDtoCategoryEnum: {
94
+ readonly DOMAINS: "domains";
95
+ readonly ACCOUNT: "account";
96
+ readonly AUCTIONS: "auctions";
97
+ readonly SALES: "sales";
98
+ };
99
+ export type AdminChallengeListItemDtoCategoryEnum = typeof AdminChallengeListItemDtoCategoryEnum[keyof typeof AdminChallengeListItemDtoCategoryEnum];
100
+ /**
101
+ * @export
102
+ */
103
+ export declare const AdminChallengeListItemDtoTimeScopeEnum: {
104
+ readonly ONE_TIME: "one_time";
105
+ readonly WEEKLY: "weekly";
106
+ readonly MONTHLY: "monthly";
107
+ readonly YEARLY: "yearly";
108
+ };
109
+ export type AdminChallengeListItemDtoTimeScopeEnum = typeof AdminChallengeListItemDtoTimeScopeEnum[keyof typeof AdminChallengeListItemDtoTimeScopeEnum];
110
+ /**
111
+ * @export
112
+ */
113
+ export declare const AdminChallengeListItemDtoRewardTypeEnum: {
114
+ readonly TARGET: "target";
115
+ readonly SCALE: "scale";
116
+ };
117
+ export type AdminChallengeListItemDtoRewardTypeEnum = typeof AdminChallengeListItemDtoRewardTypeEnum[keyof typeof AdminChallengeListItemDtoRewardTypeEnum];
118
+ /**
119
+ * Check if a given object implements the AdminChallengeListItemDto interface.
120
+ */
121
+ export declare function instanceOfAdminChallengeListItemDto(value: object): value is AdminChallengeListItemDto;
122
+ export declare function AdminChallengeListItemDtoFromJSON(json: any): AdminChallengeListItemDto;
123
+ export declare function AdminChallengeListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChallengeListItemDto;
124
+ export declare function AdminChallengeListItemDtoToJSON(json: any): AdminChallengeListItemDto;
125
+ export declare function AdminChallengeListItemDtoToJSONTyped(value?: AdminChallengeListItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,125 @@
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.AdminChallengeListItemDtoRewardTypeEnum = exports.AdminChallengeListItemDtoTimeScopeEnum = exports.AdminChallengeListItemDtoCategoryEnum = exports.AdminChallengeListItemDtoTypeEnum = void 0;
17
+ exports.instanceOfAdminChallengeListItemDto = instanceOfAdminChallengeListItemDto;
18
+ exports.AdminChallengeListItemDtoFromJSON = AdminChallengeListItemDtoFromJSON;
19
+ exports.AdminChallengeListItemDtoFromJSONTyped = AdminChallengeListItemDtoFromJSONTyped;
20
+ exports.AdminChallengeListItemDtoToJSON = AdminChallengeListItemDtoToJSON;
21
+ exports.AdminChallengeListItemDtoToJSONTyped = AdminChallengeListItemDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AdminChallengeListItemDtoTypeEnum = {
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.AdminChallengeListItemDtoCategoryEnum = {
48
+ DOMAINS: 'domains',
49
+ ACCOUNT: 'account',
50
+ AUCTIONS: 'auctions',
51
+ SALES: 'sales'
52
+ };
53
+ /**
54
+ * @export
55
+ */
56
+ exports.AdminChallengeListItemDtoTimeScopeEnum = {
57
+ ONE_TIME: 'one_time',
58
+ WEEKLY: 'weekly',
59
+ MONTHLY: 'monthly',
60
+ YEARLY: 'yearly'
61
+ };
62
+ /**
63
+ * @export
64
+ */
65
+ exports.AdminChallengeListItemDtoRewardTypeEnum = {
66
+ TARGET: 'target',
67
+ SCALE: 'scale'
68
+ };
69
+ /**
70
+ * Check if a given object implements the AdminChallengeListItemDto interface.
71
+ */
72
+ function instanceOfAdminChallengeListItemDto(value) {
73
+ if (!('id' in value) || value['id'] === undefined)
74
+ return false;
75
+ if (!('type' in value) || value['type'] === undefined)
76
+ return false;
77
+ if (!('category' in value) || value['category'] === undefined)
78
+ return false;
79
+ if (!('timeScope' in value) || value['timeScope'] === undefined)
80
+ return false;
81
+ if (!('rewardType' in value) || value['rewardType'] === undefined)
82
+ return false;
83
+ if (!('targetCount' in value) || value['targetCount'] === undefined)
84
+ return false;
85
+ if (!('rewardPoints' in value) || value['rewardPoints'] === undefined)
86
+ return false;
87
+ return true;
88
+ }
89
+ function AdminChallengeListItemDtoFromJSON(json) {
90
+ return AdminChallengeListItemDtoFromJSONTyped(json, false);
91
+ }
92
+ function AdminChallengeListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+ 'id': json['id'],
98
+ 'type': json['type'],
99
+ 'category': json['category'],
100
+ 'timeScope': json['timeScope'],
101
+ 'rewardType': json['rewardType'],
102
+ 'targetCount': json['targetCount'],
103
+ 'rewardPoints': json['rewardPoints'],
104
+ 'scale': json['scale'] == null ? undefined : json['scale'],
105
+ };
106
+ }
107
+ function AdminChallengeListItemDtoToJSON(json) {
108
+ return AdminChallengeListItemDtoToJSONTyped(json, false);
109
+ }
110
+ function AdminChallengeListItemDtoToJSONTyped(value, ignoreDiscriminator) {
111
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
112
+ if (value == null) {
113
+ return value;
114
+ }
115
+ return {
116
+ 'id': value['id'],
117
+ 'type': value['type'],
118
+ 'category': value['category'],
119
+ 'timeScope': value['timeScope'],
120
+ 'rewardType': value['rewardType'],
121
+ 'targetCount': value['targetCount'],
122
+ 'rewardPoints': value['rewardPoints'],
123
+ 'scale': value['scale'],
124
+ };
125
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ListAccountMetricsDto } from './ListAccountMetricsDto';
13
+ import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
13
14
  import type { ListAccountPortfolioSizeDto } from './ListAccountPortfolioSizeDto';
14
15
  import type { ListAccountUserDto } from './ListAccountUserDto';
15
16
  /**
@@ -72,6 +73,12 @@ export interface AdminListAccountDto {
72
73
  * @memberof AdminListAccountDto
73
74
  */
74
75
  companyName: string | null;
76
+ /**
77
+ * Challenge reward balance (available and used).
78
+ * @type {ChallengeRewardBalanceDto}
79
+ * @memberof AdminListAccountDto
80
+ */
81
+ challengeRewardBalance: ChallengeRewardBalanceDto;
75
82
  /**
76
83
  *
77
84
  * @type {string}
@@ -20,6 +20,7 @@ exports.AdminListAccountDtoFromJSONTyped = AdminListAccountDtoFromJSONTyped;
20
20
  exports.AdminListAccountDtoToJSON = AdminListAccountDtoToJSON;
21
21
  exports.AdminListAccountDtoToJSONTyped = AdminListAccountDtoToJSONTyped;
22
22
  var ListAccountMetricsDto_1 = require("./ListAccountMetricsDto");
23
+ var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
23
24
  var ListAccountPortfolioSizeDto_1 = require("./ListAccountPortfolioSizeDto");
24
25
  var ListAccountUserDto_1 = require("./ListAccountUserDto");
25
26
  /**
@@ -66,6 +67,8 @@ function instanceOfAdminListAccountDto(value) {
66
67
  return false;
67
68
  if (!('companyName' in value) || value['companyName'] === undefined)
68
69
  return false;
70
+ if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
71
+ return false;
69
72
  if (!('identifier' in value) || value['identifier'] === undefined)
70
73
  return false;
71
74
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -99,6 +102,7 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
99
102
  'affiliateId': json['affiliateId'],
100
103
  'portfolioSize': (0, ListAccountPortfolioSizeDto_1.ListAccountPortfolioSizeDtoFromJSON)(json['portfolioSize']),
101
104
  'companyName': json['companyName'],
105
+ 'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
102
106
  'identifier': json['identifier'],
103
107
  'createdAt': (new Date(json['createdAt'])),
104
108
  'name': json['name'],
@@ -126,6 +130,7 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
126
130
  'affiliateId': value['affiliateId'],
127
131
  'portfolioSize': (0, ListAccountPortfolioSizeDto_1.ListAccountPortfolioSizeDtoToJSON)(value['portfolioSize']),
128
132
  'companyName': value['companyName'],
133
+ 'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
129
134
  'identifier': value['identifier'],
130
135
  'createdAt': ((value['createdAt']).toISOString()),
131
136
  'name': value['name'],
@@ -0,0 +1,38 @@
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 ChallengeRewardBalanceDto
16
+ */
17
+ export interface ChallengeRewardBalanceDto {
18
+ /**
19
+ * Available challenge reward balance (points) that can be applied to reduce commission.
20
+ * @type {number}
21
+ * @memberof ChallengeRewardBalanceDto
22
+ */
23
+ balancePoints: number;
24
+ /**
25
+ * Challenge reward balance (points) already used to reduce commission.
26
+ * @type {number}
27
+ * @memberof ChallengeRewardBalanceDto
28
+ */
29
+ usedPoints: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ChallengeRewardBalanceDto interface.
33
+ */
34
+ export declare function instanceOfChallengeRewardBalanceDto(value: object): value is ChallengeRewardBalanceDto;
35
+ export declare function ChallengeRewardBalanceDtoFromJSON(json: any): ChallengeRewardBalanceDto;
36
+ export declare function ChallengeRewardBalanceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChallengeRewardBalanceDto;
37
+ export declare function ChallengeRewardBalanceDtoToJSON(json: any): ChallengeRewardBalanceDto;
38
+ export declare function ChallengeRewardBalanceDtoToJSONTyped(value?: ChallengeRewardBalanceDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfChallengeRewardBalanceDto = instanceOfChallengeRewardBalanceDto;
17
+ exports.ChallengeRewardBalanceDtoFromJSON = ChallengeRewardBalanceDtoFromJSON;
18
+ exports.ChallengeRewardBalanceDtoFromJSONTyped = ChallengeRewardBalanceDtoFromJSONTyped;
19
+ exports.ChallengeRewardBalanceDtoToJSON = ChallengeRewardBalanceDtoToJSON;
20
+ exports.ChallengeRewardBalanceDtoToJSONTyped = ChallengeRewardBalanceDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChallengeRewardBalanceDto interface.
23
+ */
24
+ function instanceOfChallengeRewardBalanceDto(value) {
25
+ if (!('balancePoints' in value) || value['balancePoints'] === undefined)
26
+ return false;
27
+ if (!('usedPoints' in value) || value['usedPoints'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ChallengeRewardBalanceDtoFromJSON(json) {
32
+ return ChallengeRewardBalanceDtoFromJSONTyped(json, false);
33
+ }
34
+ function ChallengeRewardBalanceDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'balancePoints': json['balancePoints'],
40
+ 'usedPoints': json['usedPoints'],
41
+ };
42
+ }
43
+ function ChallengeRewardBalanceDtoToJSON(json) {
44
+ return ChallengeRewardBalanceDtoToJSONTyped(json, false);
45
+ }
46
+ function ChallengeRewardBalanceDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'balancePoints': value['balancePoints'],
53
+ 'usedPoints': value['usedPoints'],
54
+ };
55
+ }
@@ -0,0 +1,67 @@
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 CreateChallengeInput
16
+ */
17
+ export interface CreateChallengeInput {
18
+ /**
19
+ * Challenge type
20
+ * @type {string}
21
+ * @memberof CreateChallengeInput
22
+ */
23
+ type: CreateChallengeInputTypeEnum;
24
+ /**
25
+ * Reward points
26
+ * @type {number}
27
+ * @memberof CreateChallengeInput
28
+ */
29
+ rewardPoints: number;
30
+ /**
31
+ * Target count (required for multi-count challenge types: new_pointing_domains, new_verified_domains, new_paid_auctions)
32
+ * @type {number}
33
+ * @memberof CreateChallengeInput
34
+ */
35
+ targetCount?: number;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const CreateChallengeInputTypeEnum: {
41
+ readonly NEW_POINTING_DOMAINS: "new_pointing_domains";
42
+ readonly ADD_FIRST_DOMAIN: "add_first_domain";
43
+ readonly NEW_VERIFIED_DOMAINS: "new_verified_domains";
44
+ readonly KEEP_POINTING_DOMAINS: "keep_pointing_domains";
45
+ readonly ADD_BANK_ACCOUNT: "add_bank_account";
46
+ readonly VERIFY_BANK_ACCOUNT: "verify_bank_account";
47
+ readonly SET_ACCOUNT_AVATAR: "set_account_avatar";
48
+ readonly SET_ACCOUNT_SHORT_DESCRIPTION: "set_account_short_description";
49
+ readonly SET_SIDN: "set_sidn";
50
+ readonly CONFIGURE_FAST_PAYOUT_FOR_TRANSFERS: "configure_fast_payout_for_transfers";
51
+ readonly RECEIVE_FIRST_PAYOUT: "receive_first_payout";
52
+ readonly FIRST_SALE_BY_LEAD: "first_sale_by_lead";
53
+ readonly FIRST_SALE_BY_IMPORTED_LEAD: "first_sale_by_imported_lead";
54
+ readonly FIRST_SALE_BY_LEASE_TO_OWN: "first_sale_by_lease_to_own";
55
+ readonly FIRST_SALE_BY_RENT: "first_sale_by_rent";
56
+ readonly FIRST_SALE_BY_AUCTION: "first_sale_by_auction";
57
+ readonly NEW_PAID_AUCTIONS: "new_paid_auctions";
58
+ };
59
+ export type CreateChallengeInputTypeEnum = typeof CreateChallengeInputTypeEnum[keyof typeof CreateChallengeInputTypeEnum];
60
+ /**
61
+ * Check if a given object implements the CreateChallengeInput interface.
62
+ */
63
+ export declare function instanceOfCreateChallengeInput(value: object): value is CreateChallengeInput;
64
+ export declare function CreateChallengeInputFromJSON(json: any): CreateChallengeInput;
65
+ export declare function CreateChallengeInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChallengeInput;
66
+ export declare function CreateChallengeInputToJSON(json: any): CreateChallengeInput;
67
+ export declare function CreateChallengeInputToJSONTyped(value?: CreateChallengeInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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.CreateChallengeInputTypeEnum = void 0;
17
+ exports.instanceOfCreateChallengeInput = instanceOfCreateChallengeInput;
18
+ exports.CreateChallengeInputFromJSON = CreateChallengeInputFromJSON;
19
+ exports.CreateChallengeInputFromJSONTyped = CreateChallengeInputFromJSONTyped;
20
+ exports.CreateChallengeInputToJSON = CreateChallengeInputToJSON;
21
+ exports.CreateChallengeInputToJSONTyped = CreateChallengeInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreateChallengeInputTypeEnum = {
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
+ * Check if a given object implements the CreateChallengeInput interface.
46
+ */
47
+ function instanceOfCreateChallengeInput(value) {
48
+ if (!('type' in value) || value['type'] === undefined)
49
+ return false;
50
+ if (!('rewardPoints' in value) || value['rewardPoints'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ function CreateChallengeInputFromJSON(json) {
55
+ return CreateChallengeInputFromJSONTyped(json, false);
56
+ }
57
+ function CreateChallengeInputFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'type': json['type'],
63
+ 'rewardPoints': json['rewardPoints'],
64
+ 'targetCount': json['targetCount'] == null ? undefined : json['targetCount'],
65
+ };
66
+ }
67
+ function CreateChallengeInputToJSON(json) {
68
+ return CreateChallengeInputToJSONTyped(json, false);
69
+ }
70
+ function CreateChallengeInputToJSONTyped(value, ignoreDiscriminator) {
71
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ 'type': value['type'],
77
+ 'rewardPoints': value['rewardPoints'],
78
+ 'targetCount': value['targetCount'],
79
+ };
80
+ }
@@ -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,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;