@randock/nameshift-api-client 0.0.486 → 0.0.487

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.486
1
+ ## @randock/nameshift-api-client@0.0.487
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.486 --save
39
+ npm install @randock/nameshift-api-client@0.0.487 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- f29b6d7edb528b035bf08f552355713baff1d1d22e2e249d91eb6ba0095797383a73fb4181bcdd194c893a86f7ace1c2
47
+ 5320f7be02b6f9e34f1833de86db2dc45c99c152d643189c44b1a8737a46d5baca7f0eced39dbd7c991da695efaf088b
@@ -298,6 +298,9 @@ export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
298
298
  export interface AdminApiPurgeDomainCdnCacheRequest {
299
299
  domainId: string;
300
300
  }
301
+ export interface AdminApiRejectAccountAliasRequest {
302
+ accountId: string;
303
+ }
301
304
  export interface AdminApiRemoveDomainLockRequest {
302
305
  domainId: string;
303
306
  lockId: string;
@@ -982,6 +985,16 @@ export declare class AdminApi extends runtime.BaseAPI {
982
985
  * Purge domain CDN cache
983
986
  */
984
987
  purgeDomainCdnCache(requestParameters: AdminApiPurgeDomainCdnCacheRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
988
+ /**
989
+ * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
990
+ * Reject account alias
991
+ */
992
+ rejectAccountAliasRaw(requestParameters: AdminApiRejectAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
993
+ /**
994
+ * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
995
+ * Reject account alias
996
+ */
997
+ rejectAccountAlias(requestParameters: AdminApiRejectAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
985
998
  /**
986
999
  * Removes a specific lock from a domain.
987
1000
  * Remove domain lock
@@ -1133,12 +1146,12 @@ export declare class AdminApi extends runtime.BaseAPI {
1133
1146
  */
1134
1147
  updateSubscriptionBuyerInformation(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1135
1148
  /**
1136
- * Marks the account alias as verified.
1149
+ * Marks the account alias as verified, so it is shown on the landing pages instead of the official name. Also lifts a previous rejection.
1137
1150
  * Verify account alias
1138
1151
  */
1139
1152
  verifyAccountAliasRaw(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1140
1153
  /**
1141
- * Marks the account alias as verified.
1154
+ * Marks the account alias as verified, so it is shown on the landing pages instead of the official name. Also lifts a previous rejection.
1142
1155
  * Verify account alias
1143
1156
  */
1144
1157
  verifyAccountAlias(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -3730,6 +3730,59 @@ var AdminApi = /** @class */ (function (_super) {
3730
3730
  });
3731
3731
  });
3732
3732
  };
3733
+ /**
3734
+ * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
3735
+ * Reject account alias
3736
+ */
3737
+ AdminApi.prototype.rejectAccountAliasRaw = function (requestParameters, initOverrides) {
3738
+ return __awaiter(this, void 0, void 0, function () {
3739
+ var queryParameters, headerParameters, token, tokenString, response;
3740
+ return __generator(this, function (_a) {
3741
+ switch (_a.label) {
3742
+ case 0:
3743
+ if (requestParameters['accountId'] == null) {
3744
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling rejectAccountAlias().');
3745
+ }
3746
+ queryParameters = {};
3747
+ headerParameters = {};
3748
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3749
+ token = this.configuration.accessToken;
3750
+ return [4 /*yield*/, token("bearer", [])];
3751
+ case 1:
3752
+ tokenString = _a.sent();
3753
+ if (tokenString) {
3754
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3755
+ }
3756
+ _a.label = 2;
3757
+ case 2: return [4 /*yield*/, this.request({
3758
+ path: "/admin/accounts/{accountId}/alias/reject".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
3759
+ method: 'POST',
3760
+ headers: headerParameters,
3761
+ query: queryParameters,
3762
+ }, initOverrides)];
3763
+ case 3:
3764
+ response = _a.sent();
3765
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
3766
+ }
3767
+ });
3768
+ });
3769
+ };
3770
+ /**
3771
+ * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
3772
+ * Reject account alias
3773
+ */
3774
+ AdminApi.prototype.rejectAccountAlias = function (requestParameters, initOverrides) {
3775
+ return __awaiter(this, void 0, void 0, function () {
3776
+ return __generator(this, function (_a) {
3777
+ switch (_a.label) {
3778
+ case 0: return [4 /*yield*/, this.rejectAccountAliasRaw(requestParameters, initOverrides)];
3779
+ case 1:
3780
+ _a.sent();
3781
+ return [2 /*return*/];
3782
+ }
3783
+ });
3784
+ });
3785
+ };
3733
3786
  /**
3734
3787
  * Removes a specific lock from a domain.
3735
3788
  * Remove domain lock
@@ -4571,7 +4624,7 @@ var AdminApi = /** @class */ (function (_super) {
4571
4624
  });
4572
4625
  };
4573
4626
  /**
4574
- * Marks the account alias as verified.
4627
+ * Marks the account alias as verified, so it is shown on the landing pages instead of the official name. Also lifts a previous rejection.
4575
4628
  * Verify account alias
4576
4629
  */
4577
4630
  AdminApi.prototype.verifyAccountAliasRaw = function (requestParameters, initOverrides) {
@@ -4608,7 +4661,7 @@ var AdminApi = /** @class */ (function (_super) {
4608
4661
  });
4609
4662
  };
4610
4663
  /**
4611
- * Marks the account alias as verified.
4664
+ * Marks the account alias as verified, so it is shown on the landing pages instead of the official name. Also lifts a previous rejection.
4612
4665
  * Verify account alias
4613
4666
  */
4614
4667
  AdminApi.prototype.verifyAccountAlias = function (requestParameters, initOverrides) {
@@ -16,18 +16,33 @@
16
16
  */
17
17
  export interface AccountAliasDto {
18
18
  /**
19
- * Account alias string.
19
+ * Account alias string; null when no alias is set.
20
20
  * @type {string}
21
21
  * @memberof AccountAliasDto
22
22
  */
23
- alias: string;
23
+ alias: string | null;
24
24
  /**
25
- * Whether the alias has been verified.
25
+ * Deprecated, use status. Whether the alias has been verified.
26
26
  * @type {boolean}
27
27
  * @memberof AccountAliasDto
28
28
  */
29
29
  verified: boolean;
30
+ /**
31
+ * Review status of the alias: pending review, verified (shown on the landing pages) or rejected by an admin. Null when no alias is set.
32
+ * @type {string}
33
+ * @memberof AccountAliasDto
34
+ */
35
+ status: AccountAliasDtoStatusEnum | null;
30
36
  }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const AccountAliasDtoStatusEnum: {
41
+ readonly PENDING: "pending";
42
+ readonly VERIFIED: "verified";
43
+ readonly REJECTED: "rejected";
44
+ };
45
+ export type AccountAliasDtoStatusEnum = typeof AccountAliasDtoStatusEnum[keyof typeof AccountAliasDtoStatusEnum];
31
46
  /**
32
47
  * Check if a given object implements the AccountAliasDto interface.
33
48
  */
@@ -13,11 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountAliasDtoStatusEnum = void 0;
16
17
  exports.instanceOfAccountAliasDto = instanceOfAccountAliasDto;
17
18
  exports.AccountAliasDtoFromJSON = AccountAliasDtoFromJSON;
18
19
  exports.AccountAliasDtoFromJSONTyped = AccountAliasDtoFromJSONTyped;
19
20
  exports.AccountAliasDtoToJSON = AccountAliasDtoToJSON;
20
21
  exports.AccountAliasDtoToJSONTyped = AccountAliasDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AccountAliasDtoStatusEnum = {
26
+ PENDING: 'pending',
27
+ VERIFIED: 'verified',
28
+ REJECTED: 'rejected'
29
+ };
21
30
  /**
22
31
  * Check if a given object implements the AccountAliasDto interface.
23
32
  */
@@ -26,6 +35,8 @@ function instanceOfAccountAliasDto(value) {
26
35
  return false;
27
36
  if (!('verified' in value) || value['verified'] === undefined)
28
37
  return false;
38
+ if (!('status' in value) || value['status'] === undefined)
39
+ return false;
29
40
  return true;
30
41
  }
31
42
  function AccountAliasDtoFromJSON(json) {
@@ -38,6 +49,7 @@ function AccountAliasDtoFromJSONTyped(json, ignoreDiscriminator) {
38
49
  return {
39
50
  'alias': json['alias'],
40
51
  'verified': json['verified'],
52
+ 'status': json['status'],
41
53
  };
42
54
  }
43
55
  function AccountAliasDtoToJSON(json) {
@@ -51,5 +63,6 @@ function AccountAliasDtoToJSONTyped(value, ignoreDiscriminator) {
51
63
  return {
52
64
  'alias': value['alias'],
53
65
  'verified': value['verified'],
66
+ 'status': value['status'],
54
67
  };
55
68
  }
@@ -16,18 +16,33 @@
16
16
  */
17
17
  export interface AccountSettingsAliasDto {
18
18
  /**
19
- * Account alias string.
19
+ * Account alias string; null when no alias is set.
20
20
  * @type {string}
21
21
  * @memberof AccountSettingsAliasDto
22
22
  */
23
- alias: string;
23
+ alias: string | null;
24
24
  /**
25
- * Whether the alias has been verified.
25
+ * Deprecated, use status. Whether the alias has been verified.
26
26
  * @type {boolean}
27
27
  * @memberof AccountSettingsAliasDto
28
28
  */
29
29
  verified: boolean;
30
+ /**
31
+ * Review status of the alias: pending review, verified (shown on the landing pages) or rejected by an admin. Null when no alias is set.
32
+ * @type {string}
33
+ * @memberof AccountSettingsAliasDto
34
+ */
35
+ status: AccountSettingsAliasDtoStatusEnum | null;
30
36
  }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const AccountSettingsAliasDtoStatusEnum: {
41
+ readonly PENDING: "pending";
42
+ readonly VERIFIED: "verified";
43
+ readonly REJECTED: "rejected";
44
+ };
45
+ export type AccountSettingsAliasDtoStatusEnum = typeof AccountSettingsAliasDtoStatusEnum[keyof typeof AccountSettingsAliasDtoStatusEnum];
31
46
  /**
32
47
  * Check if a given object implements the AccountSettingsAliasDto interface.
33
48
  */
@@ -13,11 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountSettingsAliasDtoStatusEnum = void 0;
16
17
  exports.instanceOfAccountSettingsAliasDto = instanceOfAccountSettingsAliasDto;
17
18
  exports.AccountSettingsAliasDtoFromJSON = AccountSettingsAliasDtoFromJSON;
18
19
  exports.AccountSettingsAliasDtoFromJSONTyped = AccountSettingsAliasDtoFromJSONTyped;
19
20
  exports.AccountSettingsAliasDtoToJSON = AccountSettingsAliasDtoToJSON;
20
21
  exports.AccountSettingsAliasDtoToJSONTyped = AccountSettingsAliasDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AccountSettingsAliasDtoStatusEnum = {
26
+ PENDING: 'pending',
27
+ VERIFIED: 'verified',
28
+ REJECTED: 'rejected'
29
+ };
21
30
  /**
22
31
  * Check if a given object implements the AccountSettingsAliasDto interface.
23
32
  */
@@ -26,6 +35,8 @@ function instanceOfAccountSettingsAliasDto(value) {
26
35
  return false;
27
36
  if (!('verified' in value) || value['verified'] === undefined)
28
37
  return false;
38
+ if (!('status' in value) || value['status'] === undefined)
39
+ return false;
29
40
  return true;
30
41
  }
31
42
  function AccountSettingsAliasDtoFromJSON(json) {
@@ -38,6 +49,7 @@ function AccountSettingsAliasDtoFromJSONTyped(json, ignoreDiscriminator) {
38
49
  return {
39
50
  'alias': json['alias'],
40
51
  'verified': json['verified'],
52
+ 'status': json['status'],
41
53
  };
42
54
  }
43
55
  function AccountSettingsAliasDtoToJSON(json) {
@@ -51,5 +63,6 @@ function AccountSettingsAliasDtoToJSONTyped(value, ignoreDiscriminator) {
51
63
  return {
52
64
  'alias': value['alias'],
53
65
  'verified': value['verified'],
66
+ 'status': value['status'],
54
67
  };
55
68
  }
@@ -75,11 +75,17 @@ export interface AdminListAccountDto {
75
75
  */
76
76
  alias: string | null;
77
77
  /**
78
- * Whether the alias is verified.
78
+ * Deprecated, use aliasStatus. Whether the alias is verified.
79
79
  * @type {boolean}
80
80
  * @memberof AdminListAccountDto
81
81
  */
82
82
  aliasVerified: boolean;
83
+ /**
84
+ * Review status of the alias: pending review, verified or rejected. Null when no alias is set.
85
+ * @type {string}
86
+ * @memberof AdminListAccountDto
87
+ */
88
+ aliasStatus: AdminListAccountDtoAliasStatusEnum | null;
83
89
  /**
84
90
  * Account metrics.
85
91
  * @type {ListAccountMetricsDto}
@@ -147,6 +153,15 @@ export interface AdminListAccountDto {
147
153
  */
148
154
  challengeRewardBalance: ChallengeRewardBalanceDto;
149
155
  }
156
+ /**
157
+ * @export
158
+ */
159
+ export declare const AdminListAccountDtoAliasStatusEnum: {
160
+ readonly PENDING: "pending";
161
+ readonly VERIFIED: "verified";
162
+ readonly REJECTED: "rejected";
163
+ };
164
+ export type AdminListAccountDtoAliasStatusEnum = typeof AdminListAccountDtoAliasStatusEnum[keyof typeof AdminListAccountDtoAliasStatusEnum];
150
165
  /**
151
166
  * @export
152
167
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AdminListAccountDtoPayoutProviderEnum = exports.AdminListAccountDtoOnboardingStatusEnum = exports.AdminListAccountDtoOnboardingProviderEnum = void 0;
16
+ exports.AdminListAccountDtoPayoutProviderEnum = exports.AdminListAccountDtoOnboardingStatusEnum = exports.AdminListAccountDtoOnboardingProviderEnum = exports.AdminListAccountDtoAliasStatusEnum = void 0;
17
17
  exports.instanceOfAdminListAccountDto = instanceOfAdminListAccountDto;
18
18
  exports.AdminListAccountDtoFromJSON = AdminListAccountDtoFromJSON;
19
19
  exports.AdminListAccountDtoFromJSONTyped = AdminListAccountDtoFromJSONTyped;
@@ -24,6 +24,14 @@ var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
24
24
  var AccountBankAccountSummaryDto_1 = require("./AccountBankAccountSummaryDto");
25
25
  var ListAccountPortfolioSizeDto_1 = require("./ListAccountPortfolioSizeDto");
26
26
  var ListAccountUserDto_1 = require("./ListAccountUserDto");
27
+ /**
28
+ * @export
29
+ */
30
+ exports.AdminListAccountDtoAliasStatusEnum = {
31
+ PENDING: 'pending',
32
+ VERIFIED: 'verified',
33
+ REJECTED: 'rejected'
34
+ };
27
35
  /**
28
36
  * @export
29
37
  */
@@ -70,6 +78,8 @@ function instanceOfAdminListAccountDto(value) {
70
78
  return false;
71
79
  if (!('aliasVerified' in value) || value['aliasVerified'] === undefined)
72
80
  return false;
81
+ if (!('aliasStatus' in value) || value['aliasStatus'] === undefined)
82
+ return false;
73
83
  if (!('metrics' in value) || value['metrics'] === undefined)
74
84
  return false;
75
85
  if (!('lastOnline' in value) || value['lastOnline'] === undefined)
@@ -112,6 +122,7 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
112
122
  'type': json['type'],
113
123
  'alias': json['alias'],
114
124
  'aliasVerified': json['aliasVerified'],
125
+ 'aliasStatus': json['aliasStatus'],
115
126
  'metrics': (0, ListAccountMetricsDto_1.ListAccountMetricsDtoFromJSON)(json['metrics']),
116
127
  'lastOnline': (new Date(json['lastOnline'])),
117
128
  'users': (json['users'].map(ListAccountUserDto_1.ListAccountUserDtoFromJSON)),
@@ -144,6 +155,7 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
144
155
  'type': value['type'],
145
156
  'alias': value['alias'],
146
157
  'aliasVerified': value['aliasVerified'],
158
+ 'aliasStatus': value['aliasStatus'],
147
159
  'metrics': (0, ListAccountMetricsDto_1.ListAccountMetricsDtoToJSON)(value['metrics']),
148
160
  'lastOnline': ((value['lastOnline']).toISOString()),
149
161
  'users': (value['users'].map(ListAccountUserDto_1.ListAccountUserDtoToJSON)),
@@ -68,6 +68,7 @@ export declare const BuyerNotificationDtoTypeEnum: {
68
68
  readonly ACCOUNT_ONBOARDING_FINISHED: "account_onboarding_finished";
69
69
  readonly ACCOUNT_ONBOARDING_REJECTED: "account_onboarding_rejected";
70
70
  readonly ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: "account_bank_account_verification_succeeded";
71
+ readonly ACCOUNT_ALIAS_REJECTED: "account_alias_rejected";
71
72
  readonly BUYER_ACCESS_TOKEN: "buyer_access_token";
72
73
  readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: "domain_transfer.request_auth_code_to_seller";
73
74
  readonly DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: "domain_transfer_validation_required_by_buyer_email";
@@ -29,6 +29,7 @@ exports.BuyerNotificationDtoTypeEnum = {
29
29
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
30
30
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
31
31
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
32
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
32
33
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
33
34
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
34
35
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
@@ -61,6 +61,7 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
61
61
  readonly ACCOUNT_ONBOARDING_FINISHED: "account_onboarding_finished";
62
62
  readonly ACCOUNT_ONBOARDING_REJECTED: "account_onboarding_rejected";
63
63
  readonly ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: "account_bank_account_verification_succeeded";
64
+ readonly ACCOUNT_ALIAS_REJECTED: "account_alias_rejected";
64
65
  readonly BUYER_ACCESS_TOKEN: "buyer_access_token";
65
66
  readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: "domain_transfer.request_auth_code_to_seller";
66
67
  readonly DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: "domain_transfer_validation_required_by_buyer_email";
@@ -28,6 +28,7 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
28
28
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
29
29
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
30
30
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
31
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
31
32
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
32
33
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
33
34
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
@@ -75,11 +75,17 @@ export interface CustomerSuccessListAccountDto {
75
75
  */
76
76
  alias: string | null;
77
77
  /**
78
- * Whether the alias is verified.
78
+ * Deprecated, use aliasStatus. Whether the alias is verified.
79
79
  * @type {boolean}
80
80
  * @memberof CustomerSuccessListAccountDto
81
81
  */
82
82
  aliasVerified: boolean;
83
+ /**
84
+ * Review status of the alias: pending review, verified or rejected. Null when no alias is set.
85
+ * @type {string}
86
+ * @memberof CustomerSuccessListAccountDto
87
+ */
88
+ aliasStatus: CustomerSuccessListAccountDtoAliasStatusEnum | null;
83
89
  /**
84
90
  * Account metrics.
85
91
  * @type {CustomerSuccessListAccountMetricsDto}
@@ -147,6 +153,15 @@ export interface CustomerSuccessListAccountDto {
147
153
  */
148
154
  challengeRewardBalance: ChallengeRewardBalanceDto;
149
155
  }
156
+ /**
157
+ * @export
158
+ */
159
+ export declare const CustomerSuccessListAccountDtoAliasStatusEnum: {
160
+ readonly PENDING: "pending";
161
+ readonly VERIFIED: "verified";
162
+ readonly REJECTED: "rejected";
163
+ };
164
+ export type CustomerSuccessListAccountDtoAliasStatusEnum = typeof CustomerSuccessListAccountDtoAliasStatusEnum[keyof typeof CustomerSuccessListAccountDtoAliasStatusEnum];
150
165
  /**
151
166
  * @export
152
167
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CustomerSuccessListAccountDtoPayoutProviderEnum = exports.CustomerSuccessListAccountDtoOnboardingStatusEnum = exports.CustomerSuccessListAccountDtoOnboardingProviderEnum = void 0;
16
+ exports.CustomerSuccessListAccountDtoPayoutProviderEnum = exports.CustomerSuccessListAccountDtoOnboardingStatusEnum = exports.CustomerSuccessListAccountDtoOnboardingProviderEnum = exports.CustomerSuccessListAccountDtoAliasStatusEnum = void 0;
17
17
  exports.instanceOfCustomerSuccessListAccountDto = instanceOfCustomerSuccessListAccountDto;
18
18
  exports.CustomerSuccessListAccountDtoFromJSON = CustomerSuccessListAccountDtoFromJSON;
19
19
  exports.CustomerSuccessListAccountDtoFromJSONTyped = CustomerSuccessListAccountDtoFromJSONTyped;
@@ -24,6 +24,14 @@ var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
24
24
  var CustomerSuccessListAccountMetricsDto_1 = require("./CustomerSuccessListAccountMetricsDto");
25
25
  var CustomerSuccessListAccountPortfolioSizeDto_1 = require("./CustomerSuccessListAccountPortfolioSizeDto");
26
26
  var AccountBankAccountSummaryDto_1 = require("./AccountBankAccountSummaryDto");
27
+ /**
28
+ * @export
29
+ */
30
+ exports.CustomerSuccessListAccountDtoAliasStatusEnum = {
31
+ PENDING: 'pending',
32
+ VERIFIED: 'verified',
33
+ REJECTED: 'rejected'
34
+ };
27
35
  /**
28
36
  * @export
29
37
  */
@@ -70,6 +78,8 @@ function instanceOfCustomerSuccessListAccountDto(value) {
70
78
  return false;
71
79
  if (!('aliasVerified' in value) || value['aliasVerified'] === undefined)
72
80
  return false;
81
+ if (!('aliasStatus' in value) || value['aliasStatus'] === undefined)
82
+ return false;
73
83
  if (!('metrics' in value) || value['metrics'] === undefined)
74
84
  return false;
75
85
  if (!('lastOnline' in value) || value['lastOnline'] === undefined)
@@ -112,6 +122,7 @@ function CustomerSuccessListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
112
122
  'type': json['type'],
113
123
  'alias': json['alias'],
114
124
  'aliasVerified': json['aliasVerified'],
125
+ 'aliasStatus': json['aliasStatus'],
115
126
  'metrics': (0, CustomerSuccessListAccountMetricsDto_1.CustomerSuccessListAccountMetricsDtoFromJSON)(json['metrics']),
116
127
  'lastOnline': (new Date(json['lastOnline'])),
117
128
  'users': (json['users'].map(CustomerSuccessListAccountUserDto_1.CustomerSuccessListAccountUserDtoFromJSON)),
@@ -144,6 +155,7 @@ function CustomerSuccessListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
144
155
  'type': value['type'],
145
156
  'alias': value['alias'],
146
157
  'aliasVerified': value['aliasVerified'],
158
+ 'aliasStatus': value['aliasStatus'],
147
159
  'metrics': (0, CustomerSuccessListAccountMetricsDto_1.CustomerSuccessListAccountMetricsDtoToJSON)(value['metrics']),
148
160
  'lastOnline': ((value['lastOnline']).toISOString()),
149
161
  'users': (value['users'].map(CustomerSuccessListAccountUserDto_1.CustomerSuccessListAccountUserDtoToJSON)),
@@ -68,6 +68,7 @@ export declare const UserNotificationDtoTypeEnum: {
68
68
  readonly ACCOUNT_ONBOARDING_FINISHED: "account_onboarding_finished";
69
69
  readonly ACCOUNT_ONBOARDING_REJECTED: "account_onboarding_rejected";
70
70
  readonly ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: "account_bank_account_verification_succeeded";
71
+ readonly ACCOUNT_ALIAS_REJECTED: "account_alias_rejected";
71
72
  readonly BUYER_ACCESS_TOKEN: "buyer_access_token";
72
73
  readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: "domain_transfer.request_auth_code_to_seller";
73
74
  readonly DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: "domain_transfer_validation_required_by_buyer_email";
@@ -29,6 +29,7 @@ exports.UserNotificationDtoTypeEnum = {
29
29
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
30
30
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
31
31
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
32
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
32
33
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
33
34
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
34
35
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
@@ -61,6 +61,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
61
61
  readonly ACCOUNT_ONBOARDING_FINISHED: "account_onboarding_finished";
62
62
  readonly ACCOUNT_ONBOARDING_REJECTED: "account_onboarding_rejected";
63
63
  readonly ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: "account_bank_account_verification_succeeded";
64
+ readonly ACCOUNT_ALIAS_REJECTED: "account_alias_rejected";
64
65
  readonly BUYER_ACCESS_TOKEN: "buyer_access_token";
65
66
  readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: "domain_transfer.request_auth_code_to_seller";
66
67
  readonly DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: "domain_transfer_validation_required_by_buyer_email";
@@ -28,6 +28,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
28
28
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
29
29
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
30
30
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
31
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
31
32
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
32
33
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
33
34
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.486",
3
+ "version": "0.0.487",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -534,6 +534,10 @@ export interface AdminApiPurgeDomainCdnCacheRequest {
534
534
  domainId: string;
535
535
  }
536
536
 
537
+ export interface AdminApiRejectAccountAliasRequest {
538
+ accountId: string;
539
+ }
540
+
537
541
  export interface AdminApiRemoveDomainLockRequest {
538
542
  domainId: string;
539
543
  lockId: string;
@@ -3605,6 +3609,48 @@ export class AdminApi extends runtime.BaseAPI {
3605
3609
  await this.purgeDomainCdnCacheRaw(requestParameters, initOverrides);
3606
3610
  }
3607
3611
 
3612
+ /**
3613
+ * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
3614
+ * Reject account alias
3615
+ */
3616
+ async rejectAccountAliasRaw(requestParameters: AdminApiRejectAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3617
+ if (requestParameters['accountId'] == null) {
3618
+ throw new runtime.RequiredError(
3619
+ 'accountId',
3620
+ 'Required parameter "accountId" was null or undefined when calling rejectAccountAlias().'
3621
+ );
3622
+ }
3623
+
3624
+ const queryParameters: any = {};
3625
+
3626
+ const headerParameters: runtime.HTTPHeaders = {};
3627
+
3628
+ if (this.configuration && this.configuration.accessToken) {
3629
+ const token = this.configuration.accessToken;
3630
+ const tokenString = await token("bearer", []);
3631
+
3632
+ if (tokenString) {
3633
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3634
+ }
3635
+ }
3636
+ const response = await this.request({
3637
+ path: `/admin/accounts/{accountId}/alias/reject`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
3638
+ method: 'POST',
3639
+ headers: headerParameters,
3640
+ query: queryParameters,
3641
+ }, initOverrides);
3642
+
3643
+ return new runtime.VoidApiResponse(response);
3644
+ }
3645
+
3646
+ /**
3647
+ * Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
3648
+ * Reject account alias
3649
+ */
3650
+ async rejectAccountAlias(requestParameters: AdminApiRejectAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3651
+ await this.rejectAccountAliasRaw(requestParameters, initOverrides);
3652
+ }
3653
+
3608
3654
  /**
3609
3655
  * Removes a specific lock from a domain.
3610
3656
  * Remove domain lock
@@ -4324,7 +4370,7 @@ export class AdminApi extends runtime.BaseAPI {
4324
4370
  }
4325
4371
 
4326
4372
  /**
4327
- * Marks the account alias as verified.
4373
+ * Marks the account alias as verified, so it is shown on the landing pages instead of the official name. Also lifts a previous rejection.
4328
4374
  * Verify account alias
4329
4375
  */
4330
4376
  async verifyAccountAliasRaw(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -4358,7 +4404,7 @@ export class AdminApi extends runtime.BaseAPI {
4358
4404
  }
4359
4405
 
4360
4406
  /**
4361
- * Marks the account alias as verified.
4407
+ * Marks the account alias as verified, so it is shown on the landing pages instead of the official name. Also lifts a previous rejection.
4362
4408
  * Verify account alias
4363
4409
  */
4364
4410
  async verifyAccountAlias(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -20,25 +20,44 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface AccountAliasDto {
22
22
  /**
23
- * Account alias string.
23
+ * Account alias string; null when no alias is set.
24
24
  * @type {string}
25
25
  * @memberof AccountAliasDto
26
26
  */
27
- alias: string;
27
+ alias: string | null;
28
28
  /**
29
- * Whether the alias has been verified.
29
+ * Deprecated, use status. Whether the alias has been verified.
30
30
  * @type {boolean}
31
31
  * @memberof AccountAliasDto
32
32
  */
33
33
  verified: boolean;
34
+ /**
35
+ * Review status of the alias: pending review, verified (shown on the landing pages) or rejected by an admin. Null when no alias is set.
36
+ * @type {string}
37
+ * @memberof AccountAliasDto
38
+ */
39
+ status: AccountAliasDtoStatusEnum | null;
34
40
  }
35
41
 
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const AccountAliasDtoStatusEnum = {
47
+ PENDING: 'pending',
48
+ VERIFIED: 'verified',
49
+ REJECTED: 'rejected'
50
+ } as const;
51
+ export type AccountAliasDtoStatusEnum = typeof AccountAliasDtoStatusEnum[keyof typeof AccountAliasDtoStatusEnum];
52
+
53
+
36
54
  /**
37
55
  * Check if a given object implements the AccountAliasDto interface.
38
56
  */
39
57
  export function instanceOfAccountAliasDto(value: object): value is AccountAliasDto {
40
58
  if (!('alias' in value) || value['alias'] === undefined) return false;
41
59
  if (!('verified' in value) || value['verified'] === undefined) return false;
60
+ if (!('status' in value) || value['status'] === undefined) return false;
42
61
  return true;
43
62
  }
44
63
 
@@ -54,6 +73,7 @@ export function AccountAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
54
73
 
55
74
  'alias': json['alias'],
56
75
  'verified': json['verified'],
76
+ 'status': json['status'],
57
77
  };
58
78
  }
59
79
 
@@ -70,6 +90,7 @@ export function AccountAliasDtoToJSONTyped(value?: AccountAliasDto | null, ignor
70
90
 
71
91
  'alias': value['alias'],
72
92
  'verified': value['verified'],
93
+ 'status': value['status'],
73
94
  };
74
95
  }
75
96
 
@@ -20,25 +20,44 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface AccountSettingsAliasDto {
22
22
  /**
23
- * Account alias string.
23
+ * Account alias string; null when no alias is set.
24
24
  * @type {string}
25
25
  * @memberof AccountSettingsAliasDto
26
26
  */
27
- alias: string;
27
+ alias: string | null;
28
28
  /**
29
- * Whether the alias has been verified.
29
+ * Deprecated, use status. Whether the alias has been verified.
30
30
  * @type {boolean}
31
31
  * @memberof AccountSettingsAliasDto
32
32
  */
33
33
  verified: boolean;
34
+ /**
35
+ * Review status of the alias: pending review, verified (shown on the landing pages) or rejected by an admin. Null when no alias is set.
36
+ * @type {string}
37
+ * @memberof AccountSettingsAliasDto
38
+ */
39
+ status: AccountSettingsAliasDtoStatusEnum | null;
34
40
  }
35
41
 
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const AccountSettingsAliasDtoStatusEnum = {
47
+ PENDING: 'pending',
48
+ VERIFIED: 'verified',
49
+ REJECTED: 'rejected'
50
+ } as const;
51
+ export type AccountSettingsAliasDtoStatusEnum = typeof AccountSettingsAliasDtoStatusEnum[keyof typeof AccountSettingsAliasDtoStatusEnum];
52
+
53
+
36
54
  /**
37
55
  * Check if a given object implements the AccountSettingsAliasDto interface.
38
56
  */
39
57
  export function instanceOfAccountSettingsAliasDto(value: object): value is AccountSettingsAliasDto {
40
58
  if (!('alias' in value) || value['alias'] === undefined) return false;
41
59
  if (!('verified' in value) || value['verified'] === undefined) return false;
60
+ if (!('status' in value) || value['status'] === undefined) return false;
42
61
  return true;
43
62
  }
44
63
 
@@ -54,6 +73,7 @@ export function AccountSettingsAliasDtoFromJSONTyped(json: any, ignoreDiscrimina
54
73
 
55
74
  'alias': json['alias'],
56
75
  'verified': json['verified'],
76
+ 'status': json['status'],
57
77
  };
58
78
  }
59
79
 
@@ -70,6 +90,7 @@ export function AccountSettingsAliasDtoToJSONTyped(value?: AccountSettingsAliasD
70
90
 
71
91
  'alias': value['alias'],
72
92
  'verified': value['verified'],
93
+ 'status': value['status'],
73
94
  };
74
95
  }
75
96
 
@@ -110,11 +110,17 @@ export interface AdminListAccountDto {
110
110
  */
111
111
  alias: string | null;
112
112
  /**
113
- * Whether the alias is verified.
113
+ * Deprecated, use aliasStatus. Whether the alias is verified.
114
114
  * @type {boolean}
115
115
  * @memberof AdminListAccountDto
116
116
  */
117
117
  aliasVerified: boolean;
118
+ /**
119
+ * Review status of the alias: pending review, verified or rejected. Null when no alias is set.
120
+ * @type {string}
121
+ * @memberof AdminListAccountDto
122
+ */
123
+ aliasStatus: AdminListAccountDtoAliasStatusEnum | null;
118
124
  /**
119
125
  * Account metrics.
120
126
  * @type {ListAccountMetricsDto}
@@ -184,6 +190,16 @@ export interface AdminListAccountDto {
184
190
  }
185
191
 
186
192
 
193
+ /**
194
+ * @export
195
+ */
196
+ export const AdminListAccountDtoAliasStatusEnum = {
197
+ PENDING: 'pending',
198
+ VERIFIED: 'verified',
199
+ REJECTED: 'rejected'
200
+ } as const;
201
+ export type AdminListAccountDtoAliasStatusEnum = typeof AdminListAccountDtoAliasStatusEnum[keyof typeof AdminListAccountDtoAliasStatusEnum];
202
+
187
203
  /**
188
204
  * @export
189
205
  */
@@ -227,6 +243,7 @@ export function instanceOfAdminListAccountDto(value: object): value is AdminList
227
243
  if (!('type' in value) || value['type'] === undefined) return false;
228
244
  if (!('alias' in value) || value['alias'] === undefined) return false;
229
245
  if (!('aliasVerified' in value) || value['aliasVerified'] === undefined) return false;
246
+ if (!('aliasStatus' in value) || value['aliasStatus'] === undefined) return false;
230
247
  if (!('metrics' in value) || value['metrics'] === undefined) return false;
231
248
  if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
232
249
  if (!('users' in value) || value['users'] === undefined) return false;
@@ -261,6 +278,7 @@ export function AdminListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
261
278
  'type': json['type'],
262
279
  'alias': json['alias'],
263
280
  'aliasVerified': json['aliasVerified'],
281
+ 'aliasStatus': json['aliasStatus'],
264
282
  'metrics': ListAccountMetricsDtoFromJSON(json['metrics']),
265
283
  'lastOnline': (new Date(json['lastOnline'])),
266
284
  'users': ((json['users'] as Array<any>).map(ListAccountUserDtoFromJSON)),
@@ -296,6 +314,7 @@ export function AdminListAccountDtoToJSONTyped(value?: AdminListAccountDto | nul
296
314
  'type': value['type'],
297
315
  'alias': value['alias'],
298
316
  'aliasVerified': value['aliasVerified'],
317
+ 'aliasStatus': value['aliasStatus'],
299
318
  'metrics': ListAccountMetricsDtoToJSON(value['metrics']),
300
319
  'lastOnline': ((value['lastOnline']).toISOString()),
301
320
  'users': ((value['users'] as Array<any>).map(ListAccountUserDtoToJSON)),
@@ -81,6 +81,7 @@ export const BuyerNotificationDtoTypeEnum = {
81
81
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
82
82
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
83
83
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
84
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
84
85
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
85
86
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
86
87
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
@@ -67,6 +67,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
67
67
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
68
68
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
69
69
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
70
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
70
71
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
71
72
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
72
73
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
@@ -110,11 +110,17 @@ export interface CustomerSuccessListAccountDto {
110
110
  */
111
111
  alias: string | null;
112
112
  /**
113
- * Whether the alias is verified.
113
+ * Deprecated, use aliasStatus. Whether the alias is verified.
114
114
  * @type {boolean}
115
115
  * @memberof CustomerSuccessListAccountDto
116
116
  */
117
117
  aliasVerified: boolean;
118
+ /**
119
+ * Review status of the alias: pending review, verified or rejected. Null when no alias is set.
120
+ * @type {string}
121
+ * @memberof CustomerSuccessListAccountDto
122
+ */
123
+ aliasStatus: CustomerSuccessListAccountDtoAliasStatusEnum | null;
118
124
  /**
119
125
  * Account metrics.
120
126
  * @type {CustomerSuccessListAccountMetricsDto}
@@ -184,6 +190,16 @@ export interface CustomerSuccessListAccountDto {
184
190
  }
185
191
 
186
192
 
193
+ /**
194
+ * @export
195
+ */
196
+ export const CustomerSuccessListAccountDtoAliasStatusEnum = {
197
+ PENDING: 'pending',
198
+ VERIFIED: 'verified',
199
+ REJECTED: 'rejected'
200
+ } as const;
201
+ export type CustomerSuccessListAccountDtoAliasStatusEnum = typeof CustomerSuccessListAccountDtoAliasStatusEnum[keyof typeof CustomerSuccessListAccountDtoAliasStatusEnum];
202
+
187
203
  /**
188
204
  * @export
189
205
  */
@@ -227,6 +243,7 @@ export function instanceOfCustomerSuccessListAccountDto(value: object): value is
227
243
  if (!('type' in value) || value['type'] === undefined) return false;
228
244
  if (!('alias' in value) || value['alias'] === undefined) return false;
229
245
  if (!('aliasVerified' in value) || value['aliasVerified'] === undefined) return false;
246
+ if (!('aliasStatus' in value) || value['aliasStatus'] === undefined) return false;
230
247
  if (!('metrics' in value) || value['metrics'] === undefined) return false;
231
248
  if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
232
249
  if (!('users' in value) || value['users'] === undefined) return false;
@@ -261,6 +278,7 @@ export function CustomerSuccessListAccountDtoFromJSONTyped(json: any, ignoreDisc
261
278
  'type': json['type'],
262
279
  'alias': json['alias'],
263
280
  'aliasVerified': json['aliasVerified'],
281
+ 'aliasStatus': json['aliasStatus'],
264
282
  'metrics': CustomerSuccessListAccountMetricsDtoFromJSON(json['metrics']),
265
283
  'lastOnline': (new Date(json['lastOnline'])),
266
284
  'users': ((json['users'] as Array<any>).map(CustomerSuccessListAccountUserDtoFromJSON)),
@@ -296,6 +314,7 @@ export function CustomerSuccessListAccountDtoToJSONTyped(value?: CustomerSuccess
296
314
  'type': value['type'],
297
315
  'alias': value['alias'],
298
316
  'aliasVerified': value['aliasVerified'],
317
+ 'aliasStatus': value['aliasStatus'],
299
318
  'metrics': CustomerSuccessListAccountMetricsDtoToJSON(value['metrics']),
300
319
  'lastOnline': ((value['lastOnline']).toISOString()),
301
320
  'users': ((value['users'] as Array<any>).map(CustomerSuccessListAccountUserDtoToJSON)),
@@ -81,6 +81,7 @@ export const UserNotificationDtoTypeEnum = {
81
81
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
82
82
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
83
83
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
84
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
84
85
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
85
86
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
86
87
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
@@ -67,6 +67,7 @@ export const UserNotificationListItemDtoTypeEnum = {
67
67
  ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
68
68
  ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
69
69
  ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
70
+ ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
70
71
  BUYER_ACCESS_TOKEN: 'buyer_access_token',
71
72
  DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
72
73
  DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',