@randock/nameshift-api-client 0.0.317 → 0.0.319

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.
@@ -227,6 +227,7 @@ src/models/PaginateResponse.ts
227
227
  src/models/PaginateResponseLinks.ts
228
228
  src/models/PaginateResponseMeta.ts
229
229
  src/models/ParsedDomainDto.ts
230
+ src/models/PrivateAccountGetMeResponse.ts
230
231
  src/models/PublicAccountInformationDto.ts
231
232
  src/models/PublicDomainDto.ts
232
233
  src/models/PublicDomainDtoSeo.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.317
1
+ ## @randock/nameshift-api-client@0.0.319
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.317 --save
39
+ npm install @randock/nameshift-api-client@0.0.319 --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
- 5ab6f7b25ddef8797ee452e2da8fad36ed5adf75b0a0750f9ace49863a1f9bac0c1541153d49b3d7112d0fe3463c3cda
47
+ e6979416bb32cea8367b3e5c9ef7ad45beb18fa09f400066782d9a4ac231823483abab4259a1a435d2df32e97e22d900
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, GetAllAffiliateCommissions200Response, GetAllReferrals200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, MoneyDto, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
13
+ import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, GetAllAffiliateCommissions200Response, GetAllReferrals200Response, MoneyDto, PrivateAccountGetMeResponse, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
14
14
  export interface AccountsApiGetAccountPaymentProviderSessionRequest {
15
15
  accountId: string;
16
16
  }
@@ -106,11 +106,11 @@ export declare class AccountsApi extends runtime.BaseAPI {
106
106
  /**
107
107
  *
108
108
  */
109
- meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>>;
109
+ meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PrivateAccountGetMeResponse>>;
110
110
  /**
111
111
  *
112
112
  */
113
- me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>;
113
+ me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PrivateAccountGetMeResponse>;
114
114
  /**
115
115
  *
116
116
  */
@@ -437,7 +437,7 @@ var AccountsApi = /** @class */ (function (_super) {
437
437
  }, initOverrides)];
438
438
  case 3:
439
439
  response = _a.sent();
440
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON)(jsonValue); })];
440
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PrivateAccountGetMeResponseFromJSON)(jsonValue); })];
441
441
  }
442
442
  });
443
443
  });
@@ -0,0 +1,122 @@
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 { AccountPayoutDto } from './AccountPayoutDto';
13
+ import type { AccountOnboardingDto } from './AccountOnboardingDto';
14
+ import type { WithSettingsInner } from './WithSettingsInner';
15
+ import type { AccountMetricsDto } from './AccountMetricsDto';
16
+ import type { AccountNotificationDto } from './AccountNotificationDto';
17
+ import type { BillingInformationDto } from './BillingInformationDto';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface PrivateAccountGetMeResponse
22
+ */
23
+ export interface PrivateAccountGetMeResponse {
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PrivateAccountGetMeResponse
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PrivateAccountGetMeResponse
34
+ */
35
+ identifier: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PrivateAccountGetMeResponse
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {AccountMetricsDto}
45
+ * @memberof PrivateAccountGetMeResponse
46
+ */
47
+ metrics: AccountMetricsDto;
48
+ /**
49
+ *
50
+ * @type {AccountOnboardingDto}
51
+ * @memberof PrivateAccountGetMeResponse
52
+ */
53
+ onboarding: AccountOnboardingDto;
54
+ /**
55
+ *
56
+ * @type {AccountPayoutDto}
57
+ * @memberof PrivateAccountGetMeResponse
58
+ */
59
+ payout: AccountPayoutDto;
60
+ /**
61
+ *
62
+ * @type {BillingInformationDto}
63
+ * @memberof PrivateAccountGetMeResponse
64
+ */
65
+ billingInformation: BillingInformationDto | null;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof PrivateAccountGetMeResponse
70
+ */
71
+ leaseToOwnKickbackPercentage: number;
72
+ /**
73
+ *
74
+ * @type {WithSettingsInner}
75
+ * @memberof PrivateAccountGetMeResponse
76
+ */
77
+ settings: WithSettingsInner;
78
+ /**
79
+ *
80
+ * @type {Array<AccountNotificationDto>}
81
+ * @memberof PrivateAccountGetMeResponse
82
+ */
83
+ notifications: Array<AccountNotificationDto>;
84
+ /**
85
+ *
86
+ * @type {Array<string>}
87
+ * @memberof PrivateAccountGetMeResponse
88
+ */
89
+ enabledFeatures: Array<PrivateAccountGetMeResponseEnabledFeaturesEnum>;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof PrivateAccountGetMeResponse
94
+ */
95
+ unreadNotificationsNumber: number;
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
101
+ readonly LEASE_TO_OWN: "LEASE_TO_OWN";
102
+ readonly RENT: "RENT";
103
+ readonly SEO_METRICS: "SEO_METRICS";
104
+ readonly BANK_PAYOUTS: "BANK_PAYOUTS";
105
+ readonly ZERO_COMMISSION: "ZERO_COMMISSION";
106
+ readonly COMMISSION_7_5: "COMMISSION_7_5";
107
+ readonly LEAD_PRICE_NEGOTIATOR_AI_AGENT: "LEAD_PRICE_NEGOTIATOR_AI_AGENT";
108
+ readonly AFFILIATE_PROGRAM: "AFFILIATE_PROGRAM";
109
+ readonly DOMAIN_AFFILIATE_PROGRAM: "DOMAIN_AFFILIATE_PROGRAM";
110
+ readonly SELLER_STATS_DASHBOARD: "SELLER_STATS_DASHBOARD";
111
+ readonly SELLER_TRANSFER_COSTS_PAYMENT: "SELLER_TRANSFER_COSTS_PAYMENT";
112
+ readonly NOTIFICATIONS_MANAGER: "NOTIFICATIONS_MANAGER";
113
+ };
114
+ export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
115
+ /**
116
+ * Check if a given object implements the PrivateAccountGetMeResponse interface.
117
+ */
118
+ export declare function instanceOfPrivateAccountGetMeResponse(value: object): value is PrivateAccountGetMeResponse;
119
+ export declare function PrivateAccountGetMeResponseFromJSON(json: any): PrivateAccountGetMeResponse;
120
+ export declare function PrivateAccountGetMeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateAccountGetMeResponse;
121
+ export declare function PrivateAccountGetMeResponseToJSON(json: any): PrivateAccountGetMeResponse;
122
+ export declare function PrivateAccountGetMeResponseToJSONTyped(value?: PrivateAccountGetMeResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,119 @@
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.PrivateAccountGetMeResponseEnabledFeaturesEnum = void 0;
17
+ exports.instanceOfPrivateAccountGetMeResponse = instanceOfPrivateAccountGetMeResponse;
18
+ exports.PrivateAccountGetMeResponseFromJSON = PrivateAccountGetMeResponseFromJSON;
19
+ exports.PrivateAccountGetMeResponseFromJSONTyped = PrivateAccountGetMeResponseFromJSONTyped;
20
+ exports.PrivateAccountGetMeResponseToJSON = PrivateAccountGetMeResponseToJSON;
21
+ exports.PrivateAccountGetMeResponseToJSONTyped = PrivateAccountGetMeResponseToJSONTyped;
22
+ var AccountPayoutDto_1 = require("./AccountPayoutDto");
23
+ var AccountOnboardingDto_1 = require("./AccountOnboardingDto");
24
+ var WithSettingsInner_1 = require("./WithSettingsInner");
25
+ var AccountMetricsDto_1 = require("./AccountMetricsDto");
26
+ var AccountNotificationDto_1 = require("./AccountNotificationDto");
27
+ var BillingInformationDto_1 = require("./BillingInformationDto");
28
+ /**
29
+ * @export
30
+ */
31
+ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
32
+ LEASE_TO_OWN: 'LEASE_TO_OWN',
33
+ RENT: 'RENT',
34
+ SEO_METRICS: 'SEO_METRICS',
35
+ BANK_PAYOUTS: 'BANK_PAYOUTS',
36
+ ZERO_COMMISSION: 'ZERO_COMMISSION',
37
+ COMMISSION_7_5: 'COMMISSION_7_5',
38
+ LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
39
+ AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
40
+ DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
41
+ SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD',
42
+ SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
43
+ NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER'
44
+ };
45
+ /**
46
+ * Check if a given object implements the PrivateAccountGetMeResponse interface.
47
+ */
48
+ function instanceOfPrivateAccountGetMeResponse(value) {
49
+ if (!('id' in value) || value['id'] === undefined)
50
+ return false;
51
+ if (!('identifier' in value) || value['identifier'] === undefined)
52
+ return false;
53
+ if (!('name' in value) || value['name'] === undefined)
54
+ return false;
55
+ if (!('metrics' in value) || value['metrics'] === undefined)
56
+ return false;
57
+ if (!('onboarding' in value) || value['onboarding'] === undefined)
58
+ return false;
59
+ if (!('payout' in value) || value['payout'] === undefined)
60
+ return false;
61
+ if (!('billingInformation' in value) || value['billingInformation'] === undefined)
62
+ return false;
63
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined)
64
+ return false;
65
+ if (!('settings' in value) || value['settings'] === undefined)
66
+ return false;
67
+ if (!('notifications' in value) || value['notifications'] === undefined)
68
+ return false;
69
+ if (!('enabledFeatures' in value) || value['enabledFeatures'] === undefined)
70
+ return false;
71
+ if (!('unreadNotificationsNumber' in value) || value['unreadNotificationsNumber'] === undefined)
72
+ return false;
73
+ return true;
74
+ }
75
+ function PrivateAccountGetMeResponseFromJSON(json) {
76
+ return PrivateAccountGetMeResponseFromJSONTyped(json, false);
77
+ }
78
+ function PrivateAccountGetMeResponseFromJSONTyped(json, ignoreDiscriminator) {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+ 'id': json['id'],
84
+ 'identifier': json['identifier'],
85
+ 'name': json['name'],
86
+ 'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
87
+ 'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
88
+ 'payout': (0, AccountPayoutDto_1.AccountPayoutDtoFromJSON)(json['payout']),
89
+ 'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
90
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
91
+ 'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
92
+ 'notifications': (json['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoFromJSON)),
93
+ 'enabledFeatures': json['enabledFeatures'],
94
+ 'unreadNotificationsNumber': json['unreadNotificationsNumber'],
95
+ };
96
+ }
97
+ function PrivateAccountGetMeResponseToJSON(json) {
98
+ return PrivateAccountGetMeResponseToJSONTyped(json, false);
99
+ }
100
+ function PrivateAccountGetMeResponseToJSONTyped(value, ignoreDiscriminator) {
101
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
102
+ if (value == null) {
103
+ return value;
104
+ }
105
+ return {
106
+ 'id': value['id'],
107
+ 'identifier': value['identifier'],
108
+ 'name': value['name'],
109
+ 'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
110
+ 'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
111
+ 'payout': (0, AccountPayoutDto_1.AccountPayoutDtoToJSON)(value['payout']),
112
+ 'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
113
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
114
+ 'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
115
+ 'notifications': (value['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoToJSON)),
116
+ 'enabledFeatures': value['enabledFeatures'],
117
+ 'unreadNotificationsNumber': value['unreadNotificationsNumber'],
118
+ };
119
+ }
@@ -120,6 +120,7 @@ export declare const UserNotificationDtoTypeEnum: {
120
120
  readonly SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "seller_lease_to_own_installment_invoice";
121
121
  readonly SELLER_RENT_INSTALLMENT_INVOICE: "seller_rent_installment_invoice";
122
122
  readonly AFFILIATE_COMMISSIONS_INVOICE: "affiliate_commissions_invoice";
123
+ readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
123
124
  };
124
125
  export type UserNotificationDtoTypeEnum = typeof UserNotificationDtoTypeEnum[keyof typeof UserNotificationDtoTypeEnum];
125
126
  /**
@@ -80,7 +80,8 @@ exports.UserNotificationDtoTypeEnum = {
80
80
  SELLER_INVOICE: 'seller_invoice',
81
81
  SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'seller_lease_to_own_installment_invoice',
82
82
  SELLER_RENT_INSTALLMENT_INVOICE: 'seller_rent_installment_invoice',
83
- AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice'
83
+ AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice',
84
+ EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results'
84
85
  };
85
86
  /**
86
87
  * Check if a given object implements the UserNotificationDto interface.
@@ -113,6 +113,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
113
113
  readonly SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: "seller_lease_to_own_installment_invoice";
114
114
  readonly SELLER_RENT_INSTALLMENT_INVOICE: "seller_rent_installment_invoice";
115
115
  readonly AFFILIATE_COMMISSIONS_INVOICE: "affiliate_commissions_invoice";
116
+ readonly EPP_BATCH_UPDATE_DOMAINS_RESULTS: "epp.batch.update.domains.results";
116
117
  };
117
118
  export type UserNotificationListItemDtoTypeEnum = typeof UserNotificationListItemDtoTypeEnum[keyof typeof UserNotificationListItemDtoTypeEnum];
118
119
  /**
@@ -79,7 +79,8 @@ exports.UserNotificationListItemDtoTypeEnum = {
79
79
  SELLER_INVOICE: 'seller_invoice',
80
80
  SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'seller_lease_to_own_installment_invoice',
81
81
  SELLER_RENT_INSTALLMENT_INVOICE: 'seller_rent_installment_invoice',
82
- AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice'
82
+ AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice',
83
+ EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results'
83
84
  };
84
85
  /**
85
86
  * Check if a given object implements the UserNotificationListItemDto interface.
@@ -196,6 +196,7 @@ export * from './PaginateResponse';
196
196
  export * from './PaginateResponseLinks';
197
197
  export * from './PaginateResponseMeta';
198
198
  export * from './ParsedDomainDto';
199
+ export * from './PrivateAccountGetMeResponse';
199
200
  export * from './PublicAccountInformationDto';
200
201
  export * from './PublicDomainDto';
201
202
  export * from './PublicDomainDtoSeo';
@@ -214,6 +214,7 @@ __exportStar(require("./PaginateResponse"), exports);
214
214
  __exportStar(require("./PaginateResponseLinks"), exports);
215
215
  __exportStar(require("./PaginateResponseMeta"), exports);
216
216
  __exportStar(require("./ParsedDomainDto"), exports);
217
+ __exportStar(require("./PrivateAccountGetMeResponse"), exports);
217
218
  __exportStar(require("./PublicAccountInformationDto"), exports);
218
219
  __exportStar(require("./PublicDomainDto"), exports);
219
220
  __exportStar(require("./PublicDomainDtoSeo"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.317",
3
+ "version": "0.0.319",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -21,9 +21,9 @@ import type {
21
21
  BadRequestException,
22
22
  GetAllAffiliateCommissions200Response,
23
23
  GetAllReferrals200Response,
24
- IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
25
24
  MoneyDto,
26
25
  NotFoundException,
26
+ PrivateAccountGetMeResponse,
27
27
  SetPayoutProviderInput,
28
28
  ThrottlerException,
29
29
  UpdateAccountBillingInformationInput,
@@ -42,12 +42,12 @@ import {
42
42
  GetAllAffiliateCommissions200ResponseToJSON,
43
43
  GetAllReferrals200ResponseFromJSON,
44
44
  GetAllReferrals200ResponseToJSON,
45
- IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON,
46
- IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
47
45
  MoneyDtoFromJSON,
48
46
  MoneyDtoToJSON,
49
47
  NotFoundExceptionFromJSON,
50
48
  NotFoundExceptionToJSON,
49
+ PrivateAccountGetMeResponseFromJSON,
50
+ PrivateAccountGetMeResponseToJSON,
51
51
  SetPayoutProviderInputFromJSON,
52
52
  SetPayoutProviderInputToJSON,
53
53
  ThrottlerExceptionFromJSON,
@@ -378,7 +378,7 @@ export class AccountsApi extends runtime.BaseAPI {
378
378
  /**
379
379
  *
380
380
  */
381
- async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>> {
381
+ async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PrivateAccountGetMeResponse>> {
382
382
  const queryParameters: any = {};
383
383
 
384
384
  const headerParameters: runtime.HTTPHeaders = {};
@@ -398,13 +398,13 @@ export class AccountsApi extends runtime.BaseAPI {
398
398
  query: queryParameters,
399
399
  }, initOverrides);
400
400
 
401
- return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON(jsonValue));
401
+ return new runtime.JSONApiResponse(response, (jsonValue) => PrivateAccountGetMeResponseFromJSON(jsonValue));
402
402
  }
403
403
 
404
404
  /**
405
405
  *
406
406
  */
407
- async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto> {
407
+ async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PrivateAccountGetMeResponse> {
408
408
  const response = await this.meRaw(initOverrides);
409
409
  return await response.value();
410
410
  }
@@ -0,0 +1,229 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { AccountPayoutDto } from './AccountPayoutDto';
17
+ import {
18
+ AccountPayoutDtoFromJSON,
19
+ AccountPayoutDtoFromJSONTyped,
20
+ AccountPayoutDtoToJSON,
21
+ AccountPayoutDtoToJSONTyped,
22
+ } from './AccountPayoutDto';
23
+ import type { AccountOnboardingDto } from './AccountOnboardingDto';
24
+ import {
25
+ AccountOnboardingDtoFromJSON,
26
+ AccountOnboardingDtoFromJSONTyped,
27
+ AccountOnboardingDtoToJSON,
28
+ AccountOnboardingDtoToJSONTyped,
29
+ } from './AccountOnboardingDto';
30
+ import type { WithSettingsInner } from './WithSettingsInner';
31
+ import {
32
+ WithSettingsInnerFromJSON,
33
+ WithSettingsInnerFromJSONTyped,
34
+ WithSettingsInnerToJSON,
35
+ WithSettingsInnerToJSONTyped,
36
+ } from './WithSettingsInner';
37
+ import type { AccountMetricsDto } from './AccountMetricsDto';
38
+ import {
39
+ AccountMetricsDtoFromJSON,
40
+ AccountMetricsDtoFromJSONTyped,
41
+ AccountMetricsDtoToJSON,
42
+ AccountMetricsDtoToJSONTyped,
43
+ } from './AccountMetricsDto';
44
+ import type { AccountNotificationDto } from './AccountNotificationDto';
45
+ import {
46
+ AccountNotificationDtoFromJSON,
47
+ AccountNotificationDtoFromJSONTyped,
48
+ AccountNotificationDtoToJSON,
49
+ AccountNotificationDtoToJSONTyped,
50
+ } from './AccountNotificationDto';
51
+ import type { BillingInformationDto } from './BillingInformationDto';
52
+ import {
53
+ BillingInformationDtoFromJSON,
54
+ BillingInformationDtoFromJSONTyped,
55
+ BillingInformationDtoToJSON,
56
+ BillingInformationDtoToJSONTyped,
57
+ } from './BillingInformationDto';
58
+
59
+ /**
60
+ *
61
+ * @export
62
+ * @interface PrivateAccountGetMeResponse
63
+ */
64
+ export interface PrivateAccountGetMeResponse {
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof PrivateAccountGetMeResponse
69
+ */
70
+ id: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof PrivateAccountGetMeResponse
75
+ */
76
+ identifier: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof PrivateAccountGetMeResponse
81
+ */
82
+ name: string;
83
+ /**
84
+ *
85
+ * @type {AccountMetricsDto}
86
+ * @memberof PrivateAccountGetMeResponse
87
+ */
88
+ metrics: AccountMetricsDto;
89
+ /**
90
+ *
91
+ * @type {AccountOnboardingDto}
92
+ * @memberof PrivateAccountGetMeResponse
93
+ */
94
+ onboarding: AccountOnboardingDto;
95
+ /**
96
+ *
97
+ * @type {AccountPayoutDto}
98
+ * @memberof PrivateAccountGetMeResponse
99
+ */
100
+ payout: AccountPayoutDto;
101
+ /**
102
+ *
103
+ * @type {BillingInformationDto}
104
+ * @memberof PrivateAccountGetMeResponse
105
+ */
106
+ billingInformation: BillingInformationDto | null;
107
+ /**
108
+ *
109
+ * @type {number}
110
+ * @memberof PrivateAccountGetMeResponse
111
+ */
112
+ leaseToOwnKickbackPercentage: number;
113
+ /**
114
+ *
115
+ * @type {WithSettingsInner}
116
+ * @memberof PrivateAccountGetMeResponse
117
+ */
118
+ settings: WithSettingsInner;
119
+ /**
120
+ *
121
+ * @type {Array<AccountNotificationDto>}
122
+ * @memberof PrivateAccountGetMeResponse
123
+ */
124
+ notifications: Array<AccountNotificationDto>;
125
+ /**
126
+ *
127
+ * @type {Array<string>}
128
+ * @memberof PrivateAccountGetMeResponse
129
+ */
130
+ enabledFeatures: Array<PrivateAccountGetMeResponseEnabledFeaturesEnum>;
131
+ /**
132
+ *
133
+ * @type {number}
134
+ * @memberof PrivateAccountGetMeResponse
135
+ */
136
+ unreadNotificationsNumber: number;
137
+ }
138
+
139
+
140
+ /**
141
+ * @export
142
+ */
143
+ export const PrivateAccountGetMeResponseEnabledFeaturesEnum = {
144
+ LEASE_TO_OWN: 'LEASE_TO_OWN',
145
+ RENT: 'RENT',
146
+ SEO_METRICS: 'SEO_METRICS',
147
+ BANK_PAYOUTS: 'BANK_PAYOUTS',
148
+ ZERO_COMMISSION: 'ZERO_COMMISSION',
149
+ COMMISSION_7_5: 'COMMISSION_7_5',
150
+ LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
151
+ AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
152
+ DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
153
+ SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD',
154
+ SELLER_TRANSFER_COSTS_PAYMENT: 'SELLER_TRANSFER_COSTS_PAYMENT',
155
+ NOTIFICATIONS_MANAGER: 'NOTIFICATIONS_MANAGER'
156
+ } as const;
157
+ export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
158
+
159
+
160
+ /**
161
+ * Check if a given object implements the PrivateAccountGetMeResponse interface.
162
+ */
163
+ export function instanceOfPrivateAccountGetMeResponse(value: object): value is PrivateAccountGetMeResponse {
164
+ if (!('id' in value) || value['id'] === undefined) return false;
165
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
166
+ if (!('name' in value) || value['name'] === undefined) return false;
167
+ if (!('metrics' in value) || value['metrics'] === undefined) return false;
168
+ if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
169
+ if (!('payout' in value) || value['payout'] === undefined) return false;
170
+ if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
171
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined) return false;
172
+ if (!('settings' in value) || value['settings'] === undefined) return false;
173
+ if (!('notifications' in value) || value['notifications'] === undefined) return false;
174
+ if (!('enabledFeatures' in value) || value['enabledFeatures'] === undefined) return false;
175
+ if (!('unreadNotificationsNumber' in value) || value['unreadNotificationsNumber'] === undefined) return false;
176
+ return true;
177
+ }
178
+
179
+ export function PrivateAccountGetMeResponseFromJSON(json: any): PrivateAccountGetMeResponse {
180
+ return PrivateAccountGetMeResponseFromJSONTyped(json, false);
181
+ }
182
+
183
+ export function PrivateAccountGetMeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrivateAccountGetMeResponse {
184
+ if (json == null) {
185
+ return json;
186
+ }
187
+ return {
188
+
189
+ 'id': json['id'],
190
+ 'identifier': json['identifier'],
191
+ 'name': json['name'],
192
+ 'metrics': AccountMetricsDtoFromJSON(json['metrics']),
193
+ 'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
194
+ 'payout': AccountPayoutDtoFromJSON(json['payout']),
195
+ 'billingInformation': BillingInformationDtoFromJSON(json['billingInformation']),
196
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
197
+ 'settings': WithSettingsInnerFromJSON(json['settings']),
198
+ 'notifications': ((json['notifications'] as Array<any>).map(AccountNotificationDtoFromJSON)),
199
+ 'enabledFeatures': json['enabledFeatures'],
200
+ 'unreadNotificationsNumber': json['unreadNotificationsNumber'],
201
+ };
202
+ }
203
+
204
+ export function PrivateAccountGetMeResponseToJSON(json: any): PrivateAccountGetMeResponse {
205
+ return PrivateAccountGetMeResponseToJSONTyped(json, false);
206
+ }
207
+
208
+ export function PrivateAccountGetMeResponseToJSONTyped(value?: PrivateAccountGetMeResponse | null, ignoreDiscriminator: boolean = false): any {
209
+ if (value == null) {
210
+ return value;
211
+ }
212
+
213
+ return {
214
+
215
+ 'id': value['id'],
216
+ 'identifier': value['identifier'],
217
+ 'name': value['name'],
218
+ 'metrics': AccountMetricsDtoToJSON(value['metrics']),
219
+ 'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
220
+ 'payout': AccountPayoutDtoToJSON(value['payout']),
221
+ 'billingInformation': BillingInformationDtoToJSON(value['billingInformation']),
222
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
223
+ 'settings': WithSettingsInnerToJSON(value['settings']),
224
+ 'notifications': ((value['notifications'] as Array<any>).map(AccountNotificationDtoToJSON)),
225
+ 'enabledFeatures': value['enabledFeatures'],
226
+ 'unreadNotificationsNumber': value['unreadNotificationsNumber'],
227
+ };
228
+ }
229
+
@@ -132,7 +132,8 @@ export const UserNotificationDtoTypeEnum = {
132
132
  SELLER_INVOICE: 'seller_invoice',
133
133
  SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'seller_lease_to_own_installment_invoice',
134
134
  SELLER_RENT_INSTALLMENT_INVOICE: 'seller_rent_installment_invoice',
135
- AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice'
135
+ AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice',
136
+ EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results'
136
137
  } as const;
137
138
  export type UserNotificationDtoTypeEnum = typeof UserNotificationDtoTypeEnum[keyof typeof UserNotificationDtoTypeEnum];
138
139
 
@@ -118,7 +118,8 @@ export const UserNotificationListItemDtoTypeEnum = {
118
118
  SELLER_INVOICE: 'seller_invoice',
119
119
  SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'seller_lease_to_own_installment_invoice',
120
120
  SELLER_RENT_INSTALLMENT_INVOICE: 'seller_rent_installment_invoice',
121
- AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice'
121
+ AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice',
122
+ EPP_BATCH_UPDATE_DOMAINS_RESULTS: 'epp.batch.update.domains.results'
122
123
  } as const;
123
124
  export type UserNotificationListItemDtoTypeEnum = typeof UserNotificationListItemDtoTypeEnum[keyof typeof UserNotificationListItemDtoTypeEnum];
124
125
 
@@ -198,6 +198,7 @@ export * from './PaginateResponse';
198
198
  export * from './PaginateResponseLinks';
199
199
  export * from './PaginateResponseMeta';
200
200
  export * from './ParsedDomainDto';
201
+ export * from './PrivateAccountGetMeResponse';
201
202
  export * from './PublicAccountInformationDto';
202
203
  export * from './PublicDomainDto';
203
204
  export * from './PublicDomainDtoSeo';