@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,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetSellerChallengesListDto = instanceOfGetSellerChallengesListDto;
17
+ exports.GetSellerChallengesListDtoFromJSON = GetSellerChallengesListDtoFromJSON;
18
+ exports.GetSellerChallengesListDtoFromJSONTyped = GetSellerChallengesListDtoFromJSONTyped;
19
+ exports.GetSellerChallengesListDtoToJSON = GetSellerChallengesListDtoToJSON;
20
+ exports.GetSellerChallengesListDtoToJSONTyped = GetSellerChallengesListDtoToJSONTyped;
21
+ var GetSellerChallengesListDtoChallengesInner_1 = require("./GetSellerChallengesListDtoChallengesInner");
22
+ /**
23
+ * Check if a given object implements the GetSellerChallengesListDto interface.
24
+ */
25
+ function instanceOfGetSellerChallengesListDto(value) {
26
+ if (!('challenges' in value) || value['challenges'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function GetSellerChallengesListDtoFromJSON(json) {
31
+ return GetSellerChallengesListDtoFromJSONTyped(json, false);
32
+ }
33
+ function GetSellerChallengesListDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'challenges': (json['challenges'].map(GetSellerChallengesListDtoChallengesInner_1.GetSellerChallengesListDtoChallengesInnerFromJSON)),
39
+ };
40
+ }
41
+ function GetSellerChallengesListDtoToJSON(json) {
42
+ return GetSellerChallengesListDtoToJSONTyped(json, false);
43
+ }
44
+ function GetSellerChallengesListDtoToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'challenges': (value['challenges'].map(GetSellerChallengesListDtoChallengesInner_1.GetSellerChallengesListDtoChallengesInnerToJSON)),
51
+ };
52
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SellerScaleChallengeListItemDto } from './SellerScaleChallengeListItemDto';
13
+ import type { SellerTargetChallengeListItemDto } from './SellerTargetChallengeListItemDto';
14
+ /**
15
+ * @type GetSellerChallengesListDtoChallengesInner
16
+ *
17
+ * @export
18
+ */
19
+ export type GetSellerChallengesListDtoChallengesInner = {
20
+ rewardType: 'scale';
21
+ } & SellerScaleChallengeListItemDto | {
22
+ rewardType: 'target';
23
+ } & SellerTargetChallengeListItemDto;
24
+ export declare function GetSellerChallengesListDtoChallengesInnerFromJSON(json: any): GetSellerChallengesListDtoChallengesInner;
25
+ export declare function GetSellerChallengesListDtoChallengesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSellerChallengesListDtoChallengesInner;
26
+ export declare function GetSellerChallengesListDtoChallengesInnerToJSON(json: any): any;
27
+ export declare function GetSellerChallengesListDtoChallengesInnerToJSONTyped(value?: GetSellerChallengesListDtoChallengesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetSellerChallengesListDtoChallengesInnerFromJSON = GetSellerChallengesListDtoChallengesInnerFromJSON;
17
+ exports.GetSellerChallengesListDtoChallengesInnerFromJSONTyped = GetSellerChallengesListDtoChallengesInnerFromJSONTyped;
18
+ exports.GetSellerChallengesListDtoChallengesInnerToJSON = GetSellerChallengesListDtoChallengesInnerToJSON;
19
+ exports.GetSellerChallengesListDtoChallengesInnerToJSONTyped = GetSellerChallengesListDtoChallengesInnerToJSONTyped;
20
+ var SellerScaleChallengeListItemDto_1 = require("./SellerScaleChallengeListItemDto");
21
+ var SellerTargetChallengeListItemDto_1 = require("./SellerTargetChallengeListItemDto");
22
+ function GetSellerChallengesListDtoChallengesInnerFromJSON(json) {
23
+ return GetSellerChallengesListDtoChallengesInnerFromJSONTyped(json, false);
24
+ }
25
+ function GetSellerChallengesListDtoChallengesInnerFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ switch (json['rewardType']) {
30
+ case 'scale':
31
+ return Object.assign({}, (0, SellerScaleChallengeListItemDto_1.SellerScaleChallengeListItemDtoFromJSONTyped)(json, true), { rewardType: 'scale' });
32
+ case 'target':
33
+ return Object.assign({}, (0, SellerTargetChallengeListItemDto_1.SellerTargetChallengeListItemDtoFromJSONTyped)(json, true), { rewardType: 'target' });
34
+ default:
35
+ throw new Error("No variant of GetSellerChallengesListDtoChallengesInner exists with 'rewardType=".concat(json['rewardType'], "'"));
36
+ }
37
+ }
38
+ function GetSellerChallengesListDtoChallengesInnerToJSON(json) {
39
+ return GetSellerChallengesListDtoChallengesInnerToJSONTyped(json, false);
40
+ }
41
+ function GetSellerChallengesListDtoChallengesInnerToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ switch (value['rewardType']) {
47
+ case 'scale':
48
+ return Object.assign({}, (0, SellerScaleChallengeListItemDto_1.SellerScaleChallengeListItemDtoToJSON)(value), { rewardType: 'scale' });
49
+ case 'target':
50
+ return Object.assign({}, (0, SellerTargetChallengeListItemDto_1.SellerTargetChallengeListItemDtoToJSON)(value), { rewardType: 'target' });
51
+ default:
52
+ throw new Error("No variant of GetSellerChallengesListDtoChallengesInner exists with 'rewardType=".concat(value['rewardType'], "'"));
53
+ }
54
+ }
@@ -12,6 +12,7 @@
12
12
  import type { AccountPayoutDto } from './AccountPayoutDto';
13
13
  import type { AccountOnboardingDto } from './AccountOnboardingDto';
14
14
  import type { WithSettingsInner } from './WithSettingsInner';
15
+ import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
15
16
  import type { AccountMetricsDto } from './AccountMetricsDto';
16
17
  import type { AccountNotificationDto } from './AccountNotificationDto';
17
18
  import type { BillingInformationDto } from './BillingInformationDto';
@@ -33,6 +34,12 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
33
34
  * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
34
35
  */
35
36
  identifier: string;
37
+ /**
38
+ * Challenge reward balance (available and used).
39
+ * @type {ChallengeRewardBalanceDto}
40
+ * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
41
+ */
42
+ challengeRewardBalance: ChallengeRewardBalanceDto;
36
43
  /**
37
44
  *
38
45
  * @type {string}
@@ -115,6 +122,8 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
115
122
  readonly QUADERNO_TAXES: "QUADERNO_TAXES";
116
123
  readonly ACCOUNT_ALIAS_LINK: "ACCOUNT_ALIAS_LINK";
117
124
  readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
125
+ readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
126
+ readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
118
127
  };
119
128
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
120
129
  /**
@@ -22,6 +22,7 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
22
22
  var AccountPayoutDto_1 = require("./AccountPayoutDto");
23
23
  var AccountOnboardingDto_1 = require("./AccountOnboardingDto");
24
24
  var WithSettingsInner_1 = require("./WithSettingsInner");
25
+ var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
25
26
  var AccountMetricsDto_1 = require("./AccountMetricsDto");
26
27
  var AccountNotificationDto_1 = require("./AccountNotificationDto");
27
28
  var BillingInformationDto_1 = require("./BillingInformationDto");
@@ -45,7 +46,9 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
45
46
  CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
46
47
  QUADERNO_TAXES: 'QUADERNO_TAXES',
47
48
  ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
48
- BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL'
49
+ BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
50
+ ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
51
+ ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
49
52
  };
50
53
  /**
51
54
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
@@ -55,6 +58,8 @@ function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWith
55
58
  return false;
56
59
  if (!('identifier' in value) || value['identifier'] === undefined)
57
60
  return false;
61
+ if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
62
+ return false;
58
63
  if (!('name' in value) || value['name'] === undefined)
59
64
  return false;
60
65
  if (!('metrics' in value) || value['metrics'] === undefined)
@@ -87,6 +92,7 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
87
92
  return {
88
93
  'id': json['id'],
89
94
  'identifier': json['identifier'],
95
+ 'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
90
96
  'name': json['name'],
91
97
  'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
92
98
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
@@ -110,6 +116,7 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
110
116
  return {
111
117
  'id': value['id'],
112
118
  'identifier': value['identifier'],
119
+ 'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
113
120
  'name': value['name'],
114
121
  'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
115
122
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
@@ -12,6 +12,7 @@
12
12
  import type { AccountPayoutDto } from './AccountPayoutDto';
13
13
  import type { AccountOnboardingDto } from './AccountOnboardingDto';
14
14
  import type { WithSettingsInner } from './WithSettingsInner';
15
+ import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
15
16
  import type { AccountMetricsDto } from './AccountMetricsDto';
16
17
  import type { AccountNotificationDto } from './AccountNotificationDto';
17
18
  import type { BillingInformationDto } from './BillingInformationDto';
@@ -33,6 +34,12 @@ export interface PrivateAccountGetMeResponse {
33
34
  * @memberof PrivateAccountGetMeResponse
34
35
  */
35
36
  identifier: string;
37
+ /**
38
+ * Challenge reward balance (available and used).
39
+ * @type {ChallengeRewardBalanceDto}
40
+ * @memberof PrivateAccountGetMeResponse
41
+ */
42
+ challengeRewardBalance: ChallengeRewardBalanceDto;
36
43
  /**
37
44
  *
38
45
  * @type {string}
@@ -121,6 +128,8 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
121
128
  readonly QUADERNO_TAXES: "QUADERNO_TAXES";
122
129
  readonly ACCOUNT_ALIAS_LINK: "ACCOUNT_ALIAS_LINK";
123
130
  readonly BUYER_DOMAIN_DNS_PANEL: "BUYER_DOMAIN_DNS_PANEL";
131
+ readonly ACCOUNT_CHALLENGES: "ACCOUNT_CHALLENGES";
132
+ readonly ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: "ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE";
124
133
  };
125
134
  export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
126
135
  /**
@@ -22,6 +22,7 @@ exports.PrivateAccountGetMeResponseToJSONTyped = PrivateAccountGetMeResponseToJS
22
22
  var AccountPayoutDto_1 = require("./AccountPayoutDto");
23
23
  var AccountOnboardingDto_1 = require("./AccountOnboardingDto");
24
24
  var WithSettingsInner_1 = require("./WithSettingsInner");
25
+ var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
25
26
  var AccountMetricsDto_1 = require("./AccountMetricsDto");
26
27
  var AccountNotificationDto_1 = require("./AccountNotificationDto");
27
28
  var BillingInformationDto_1 = require("./BillingInformationDto");
@@ -45,7 +46,9 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
45
46
  CRYPTO_PAYMENT_METHOD: 'CRYPTO_PAYMENT_METHOD',
46
47
  QUADERNO_TAXES: 'QUADERNO_TAXES',
47
48
  ACCOUNT_ALIAS_LINK: 'ACCOUNT_ALIAS_LINK',
48
- BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL'
49
+ BUYER_DOMAIN_DNS_PANEL: 'BUYER_DOMAIN_DNS_PANEL',
50
+ ACCOUNT_CHALLENGES: 'ACCOUNT_CHALLENGES',
51
+ ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE: 'ACCOUNT_CHALLENGE_REWARD_POINTS_USAGE'
49
52
  };
50
53
  /**
51
54
  * Check if a given object implements the PrivateAccountGetMeResponse interface.
@@ -55,6 +58,8 @@ function instanceOfPrivateAccountGetMeResponse(value) {
55
58
  return false;
56
59
  if (!('identifier' in value) || value['identifier'] === undefined)
57
60
  return false;
61
+ if (!('challengeRewardBalance' in value) || value['challengeRewardBalance'] === undefined)
62
+ return false;
58
63
  if (!('name' in value) || value['name'] === undefined)
59
64
  return false;
60
65
  if (!('metrics' in value) || value['metrics'] === undefined)
@@ -89,6 +94,7 @@ function PrivateAccountGetMeResponseFromJSONTyped(json, ignoreDiscriminator) {
89
94
  return {
90
95
  'id': json['id'],
91
96
  'identifier': json['identifier'],
97
+ 'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoFromJSON)(json['challengeRewardBalance']),
92
98
  'name': json['name'],
93
99
  'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
94
100
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
@@ -113,6 +119,7 @@ function PrivateAccountGetMeResponseToJSONTyped(value, ignoreDiscriminator) {
113
119
  return {
114
120
  'id': value['id'],
115
121
  'identifier': value['identifier'],
122
+ 'challengeRewardBalance': (0, ChallengeRewardBalanceDto_1.ChallengeRewardBalanceDtoToJSON)(value['challengeRewardBalance']),
116
123
  'name': value['name'],
117
124
  'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
118
125
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
@@ -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
+ }