@randock/nameshift-api-client 0.0.289 → 0.0.291

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 (27) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +15 -1
  4. package/dist/apis/AccountsApi.js +63 -0
  5. package/dist/models/GetAllReferrals200Response.d.ts +47 -0
  6. package/dist/models/GetAllReferrals200Response.js +62 -0
  7. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  8. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  9. package/dist/models/RegisterAccountInput.d.ts +6 -0
  10. package/dist/models/RegisterAccountInput.js +2 -0
  11. package/dist/models/SellerAccountReferralListItemDto.d.ts +71 -0
  12. package/dist/models/SellerAccountReferralListItemDto.js +80 -0
  13. package/dist/models/SellerDomainTransferListItemAuthCodeDto.d.ts +38 -0
  14. package/dist/models/SellerDomainTransferListItemAuthCodeDto.js +55 -0
  15. package/dist/models/SellerDomainTransferListItemDto.d.ts +13 -0
  16. package/dist/models/SellerDomainTransferListItemDto.js +9 -0
  17. package/dist/models/index.d.ts +3 -0
  18. package/dist/models/index.js +3 -0
  19. package/package.json +1 -1
  20. package/src/apis/AccountsApi.ts +60 -0
  21. package/src/models/GetAllReferrals200Response.ts +106 -0
  22. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  23. package/src/models/RegisterAccountInput.ts +8 -0
  24. package/src/models/SellerAccountReferralListItemDto.ts +123 -0
  25. package/src/models/SellerDomainTransferListItemAuthCodeDto.ts +75 -0
  26. package/src/models/SellerDomainTransferListItemDto.ts +25 -0
  27. package/src/models/index.ts +3 -0
@@ -133,6 +133,7 @@ src/models/GetAllDomainTransfers200Response.ts
133
133
  src/models/GetAllInvoices200Response.ts
134
134
  src/models/GetAllOrders200Response.ts
135
135
  src/models/GetAllOwnedDomains200Response.ts
136
+ src/models/GetAllReferrals200Response.ts
136
137
  src/models/GetAllSubscriptions200Response.ts
137
138
  src/models/GetAllSubscriptions200Response1.ts
138
139
  src/models/GetBuyerLeads200Response.ts
@@ -223,9 +224,11 @@ src/models/RentConfigurationInput.ts
223
224
  src/models/RentConfigurationPresetsDto.ts
224
225
  src/models/RentDto.ts
225
226
  src/models/RequestAccessTokenInput.ts
227
+ src/models/SellerAccountReferralListItemDto.ts
226
228
  src/models/SellerDomainTransferAuthCodeDto.ts
227
229
  src/models/SellerDomainTransferDomainDto.ts
228
230
  src/models/SellerDomainTransferDto.ts
231
+ src/models/SellerDomainTransferListItemAuthCodeDto.ts
229
232
  src/models/SellerDomainTransferListItemDomainDto.ts
230
233
  src/models/SellerDomainTransferListItemDto.ts
231
234
  src/models/SellerSecurityUserAccountDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.289
1
+ ## @randock/nameshift-api-client@0.0.291
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.289 --save
39
+ npm install @randock/nameshift-api-client@0.0.291 --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
- ac713834710c212581d568cf90cd4d4213c282639b087d52878fb0f383da51897578f2558438cf7984254ba8e1e8e5c8
47
+ 6cb2ace7dcd6347a0d2ee9d31380a440b0e78c59ea5d6f98a0ea0afbad9c42ec0afd422c2e95e7a5fde66e40ca2c4ec0
@@ -10,10 +10,16 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
13
+ import type { AccountOnboardingSessionDto, AccountSettingsDto, AccountSettingsInput, GetAllReferrals200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
14
14
  export interface AccountsApiGetAccountPaymentProviderSessionRequest {
15
15
  accountId: string;
16
16
  }
17
+ export interface AccountsApiGetAllReferralsRequest {
18
+ filter?: object;
19
+ page?: number;
20
+ limit?: number;
21
+ sortBy?: Array<string>;
22
+ }
17
23
  export interface AccountsApiPostBillingInformationRequest {
18
24
  accountId: string;
19
25
  updateAccountBillingInformationInput: UpdateAccountBillingInformationInput;
@@ -62,6 +68,14 @@ export declare class AccountsApi extends runtime.BaseAPI {
62
68
  *
63
69
  */
64
70
  getAccountSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto>;
71
+ /**
72
+ *
73
+ */
74
+ getAllReferralsRaw(requestParameters: AccountsApiGetAllReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllReferrals200Response>>;
75
+ /**
76
+ *
77
+ */
78
+ getAllReferrals(requestParameters?: AccountsApiGetAllReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllReferrals200Response>;
65
79
  /**
66
80
  *
67
81
  */
@@ -226,6 +226,69 @@ var AccountsApi = /** @class */ (function (_super) {
226
226
  });
227
227
  });
228
228
  };
229
+ /**
230
+ *
231
+ */
232
+ AccountsApi.prototype.getAllReferralsRaw = function (requestParameters, initOverrides) {
233
+ return __awaiter(this, void 0, void 0, function () {
234
+ var queryParameters, headerParameters, token, tokenString, response;
235
+ return __generator(this, function (_a) {
236
+ switch (_a.label) {
237
+ case 0:
238
+ queryParameters = {};
239
+ if (requestParameters['filter'] != null) {
240
+ queryParameters['filter'] = requestParameters['filter'];
241
+ }
242
+ if (requestParameters['page'] != null) {
243
+ queryParameters['page'] = requestParameters['page'];
244
+ }
245
+ if (requestParameters['limit'] != null) {
246
+ queryParameters['limit'] = requestParameters['limit'];
247
+ }
248
+ if (requestParameters['sortBy'] != null) {
249
+ queryParameters['sortBy'] = requestParameters['sortBy'];
250
+ }
251
+ headerParameters = {};
252
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
253
+ token = this.configuration.accessToken;
254
+ return [4 /*yield*/, token("bearer", [])];
255
+ case 1:
256
+ tokenString = _a.sent();
257
+ if (tokenString) {
258
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
259
+ }
260
+ _a.label = 2;
261
+ case 2: return [4 /*yield*/, this.request({
262
+ path: "/private/accounts/{accountId}/referrals",
263
+ method: 'GET',
264
+ headers: headerParameters,
265
+ query: queryParameters,
266
+ }, initOverrides)];
267
+ case 3:
268
+ response = _a.sent();
269
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllReferrals200ResponseFromJSON)(jsonValue); })];
270
+ }
271
+ });
272
+ });
273
+ };
274
+ /**
275
+ *
276
+ */
277
+ AccountsApi.prototype.getAllReferrals = function () {
278
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
279
+ var response;
280
+ if (requestParameters === void 0) { requestParameters = {}; }
281
+ return __generator(this, function (_a) {
282
+ switch (_a.label) {
283
+ case 0: return [4 /*yield*/, this.getAllReferralsRaw(requestParameters, initOverrides)];
284
+ case 1:
285
+ response = _a.sent();
286
+ return [4 /*yield*/, response.value()];
287
+ case 2: return [2 /*return*/, _a.sent()];
288
+ }
289
+ });
290
+ });
291
+ };
229
292
  /**
230
293
  *
231
294
  */
@@ -0,0 +1,47 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { SellerAccountReferralListItemDto } from './SellerAccountReferralListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetAllReferrals200Response
19
+ */
20
+ export interface GetAllReferrals200Response {
21
+ /**
22
+ *
23
+ * @type {Array<SellerAccountReferralListItemDto>}
24
+ * @memberof GetAllReferrals200Response
25
+ */
26
+ data: Array<SellerAccountReferralListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetAllReferrals200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetAllReferrals200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetAllReferrals200Response interface.
42
+ */
43
+ export declare function instanceOfGetAllReferrals200Response(value: object): value is GetAllReferrals200Response;
44
+ export declare function GetAllReferrals200ResponseFromJSON(json: any): GetAllReferrals200Response;
45
+ export declare function GetAllReferrals200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllReferrals200Response;
46
+ export declare function GetAllReferrals200ResponseToJSON(json: any): GetAllReferrals200Response;
47
+ export declare function GetAllReferrals200ResponseToJSONTyped(value?: GetAllReferrals200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfGetAllReferrals200Response = instanceOfGetAllReferrals200Response;
17
+ exports.GetAllReferrals200ResponseFromJSON = GetAllReferrals200ResponseFromJSON;
18
+ exports.GetAllReferrals200ResponseFromJSONTyped = GetAllReferrals200ResponseFromJSONTyped;
19
+ exports.GetAllReferrals200ResponseToJSON = GetAllReferrals200ResponseToJSON;
20
+ exports.GetAllReferrals200ResponseToJSONTyped = GetAllReferrals200ResponseToJSONTyped;
21
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
22
+ var SellerAccountReferralListItemDto_1 = require("./SellerAccountReferralListItemDto");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the GetAllReferrals200Response interface.
26
+ */
27
+ function instanceOfGetAllReferrals200Response(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function GetAllReferrals200ResponseFromJSON(json) {
37
+ return GetAllReferrals200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function GetAllReferrals200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(SellerAccountReferralListItemDto_1.SellerAccountReferralListItemDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function GetAllReferrals200ResponseToJSON(json) {
50
+ return GetAllReferrals200ResponseToJSONTyped(json, false);
51
+ }
52
+ function GetAllReferrals200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(SellerAccountReferralListItemDto_1.SellerAccountReferralListItemDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -98,6 +98,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
98
98
  readonly BANK_PAYOUTS: "BANK_PAYOUTS";
99
99
  readonly ZERO_COMMISSION: "ZERO_COMMISSION";
100
100
  readonly LEAD_PRICE_NEGOTIATOR_AI_AGENT: "LEAD_PRICE_NEGOTIATOR_AI_AGENT";
101
+ readonly AFFILIATE_PROGRAM: "AFFILIATE_PROGRAM";
101
102
  };
102
103
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
103
104
  /**
@@ -34,7 +34,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
34
34
  SEO_METRICS: 'SEO_METRICS',
35
35
  BANK_PAYOUTS: 'BANK_PAYOUTS',
36
36
  ZERO_COMMISSION: 'ZERO_COMMISSION',
37
- LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT'
37
+ LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
38
+ AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM'
38
39
  };
39
40
  /**
40
41
  * Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
@@ -69,6 +69,12 @@ export interface RegisterAccountInput {
69
69
  * @memberof RegisterAccountInput
70
70
  */
71
71
  timezone?: string;
72
+ /**
73
+ *
74
+ * @type {object}
75
+ * @memberof RegisterAccountInput
76
+ */
77
+ affiliateIdentifier?: object | null;
72
78
  }
73
79
  /**
74
80
  * @export
@@ -60,6 +60,7 @@ function RegisterAccountInputFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'adProgram': json['adProgram'] == null ? undefined : json['adProgram'],
61
61
  'adId': json['adId'] == null ? undefined : json['adId'],
62
62
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
63
+ 'affiliateIdentifier': json['affiliateIdentifier'] == null ? undefined : json['affiliateIdentifier'],
63
64
  };
64
65
  }
65
66
  function RegisterAccountInputToJSON(json) {
@@ -80,5 +81,6 @@ function RegisterAccountInputToJSONTyped(value, ignoreDiscriminator) {
80
81
  'adProgram': value['adProgram'],
81
82
  'adId': value['adId'],
82
83
  'timezone': value['timezone'],
84
+ 'affiliateIdentifier': value['affiliateIdentifier'],
83
85
  };
84
86
  }
@@ -0,0 +1,71 @@
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 SellerAccountReferralListItemDto
16
+ */
17
+ export interface SellerAccountReferralListItemDto {
18
+ /**
19
+ * The unique identifier of the referral
20
+ * @type {string}
21
+ * @memberof SellerAccountReferralListItemDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * The referral account identifier
26
+ * @type {string}
27
+ * @memberof SellerAccountReferralListItemDto
28
+ */
29
+ identifier: string;
30
+ /**
31
+ * The full name of the referral account owner
32
+ * @type {string}
33
+ * @memberof SellerAccountReferralListItemDto
34
+ */
35
+ name: string;
36
+ /**
37
+ * The email address of the referral account owner
38
+ * @type {string}
39
+ * @memberof SellerAccountReferralListItemDto
40
+ */
41
+ email: string;
42
+ /**
43
+ * The status of the referral account
44
+ * @type {string}
45
+ * @memberof SellerAccountReferralListItemDto
46
+ */
47
+ status: SellerAccountReferralListItemDtoStatusEnum;
48
+ /**
49
+ * The creation date
50
+ * @type {Date}
51
+ * @memberof SellerAccountReferralListItemDto
52
+ */
53
+ createdAt: Date;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const SellerAccountReferralListItemDtoStatusEnum: {
59
+ readonly ACTIVE: "active";
60
+ readonly PENDING_ONBOARDING: "pending_onboarding";
61
+ readonly DELETED: "deleted";
62
+ };
63
+ export type SellerAccountReferralListItemDtoStatusEnum = typeof SellerAccountReferralListItemDtoStatusEnum[keyof typeof SellerAccountReferralListItemDtoStatusEnum];
64
+ /**
65
+ * Check if a given object implements the SellerAccountReferralListItemDto interface.
66
+ */
67
+ export declare function instanceOfSellerAccountReferralListItemDto(value: object): value is SellerAccountReferralListItemDto;
68
+ export declare function SellerAccountReferralListItemDtoFromJSON(json: any): SellerAccountReferralListItemDto;
69
+ export declare function SellerAccountReferralListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerAccountReferralListItemDto;
70
+ export declare function SellerAccountReferralListItemDtoToJSON(json: any): SellerAccountReferralListItemDto;
71
+ export declare function SellerAccountReferralListItemDtoToJSONTyped(value?: SellerAccountReferralListItemDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SellerAccountReferralListItemDtoStatusEnum = void 0;
17
+ exports.instanceOfSellerAccountReferralListItemDto = instanceOfSellerAccountReferralListItemDto;
18
+ exports.SellerAccountReferralListItemDtoFromJSON = SellerAccountReferralListItemDtoFromJSON;
19
+ exports.SellerAccountReferralListItemDtoFromJSONTyped = SellerAccountReferralListItemDtoFromJSONTyped;
20
+ exports.SellerAccountReferralListItemDtoToJSON = SellerAccountReferralListItemDtoToJSON;
21
+ exports.SellerAccountReferralListItemDtoToJSONTyped = SellerAccountReferralListItemDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SellerAccountReferralListItemDtoStatusEnum = {
26
+ ACTIVE: 'active',
27
+ PENDING_ONBOARDING: 'pending_onboarding',
28
+ DELETED: 'deleted'
29
+ };
30
+ /**
31
+ * Check if a given object implements the SellerAccountReferralListItemDto interface.
32
+ */
33
+ function instanceOfSellerAccountReferralListItemDto(value) {
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('identifier' in value) || value['identifier'] === undefined)
37
+ return false;
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('email' in value) || value['email'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function SellerAccountReferralListItemDtoFromJSON(json) {
49
+ return SellerAccountReferralListItemDtoFromJSONTyped(json, false);
50
+ }
51
+ function SellerAccountReferralListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'identifier': json['identifier'],
58
+ 'name': json['name'],
59
+ 'email': json['email'],
60
+ 'status': json['status'],
61
+ 'createdAt': (new Date(json['createdAt'])),
62
+ };
63
+ }
64
+ function SellerAccountReferralListItemDtoToJSON(json) {
65
+ return SellerAccountReferralListItemDtoToJSONTyped(json, false);
66
+ }
67
+ function SellerAccountReferralListItemDtoToJSONTyped(value, ignoreDiscriminator) {
68
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'id': value['id'],
74
+ 'identifier': value['identifier'],
75
+ 'name': value['name'],
76
+ 'email': value['email'],
77
+ 'status': value['status'],
78
+ 'createdAt': ((value['createdAt']).toISOString()),
79
+ };
80
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SellerDomainTransferListItemAuthCodeDto
16
+ */
17
+ export interface SellerDomainTransferListItemAuthCodeDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SellerDomainTransferListItemAuthCodeDto
22
+ */
23
+ value: string;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof SellerDomainTransferListItemAuthCodeDto
28
+ */
29
+ updatedAt: Date;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SellerDomainTransferListItemAuthCodeDto interface.
33
+ */
34
+ export declare function instanceOfSellerDomainTransferListItemAuthCodeDto(value: object): value is SellerDomainTransferListItemAuthCodeDto;
35
+ export declare function SellerDomainTransferListItemAuthCodeDtoFromJSON(json: any): SellerDomainTransferListItemAuthCodeDto;
36
+ export declare function SellerDomainTransferListItemAuthCodeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainTransferListItemAuthCodeDto;
37
+ export declare function SellerDomainTransferListItemAuthCodeDtoToJSON(json: any): SellerDomainTransferListItemAuthCodeDto;
38
+ export declare function SellerDomainTransferListItemAuthCodeDtoToJSONTyped(value?: SellerDomainTransferListItemAuthCodeDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSellerDomainTransferListItemAuthCodeDto = instanceOfSellerDomainTransferListItemAuthCodeDto;
17
+ exports.SellerDomainTransferListItemAuthCodeDtoFromJSON = SellerDomainTransferListItemAuthCodeDtoFromJSON;
18
+ exports.SellerDomainTransferListItemAuthCodeDtoFromJSONTyped = SellerDomainTransferListItemAuthCodeDtoFromJSONTyped;
19
+ exports.SellerDomainTransferListItemAuthCodeDtoToJSON = SellerDomainTransferListItemAuthCodeDtoToJSON;
20
+ exports.SellerDomainTransferListItemAuthCodeDtoToJSONTyped = SellerDomainTransferListItemAuthCodeDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SellerDomainTransferListItemAuthCodeDto interface.
23
+ */
24
+ function instanceOfSellerDomainTransferListItemAuthCodeDto(value) {
25
+ if (!('value' in value) || value['value'] === undefined)
26
+ return false;
27
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SellerDomainTransferListItemAuthCodeDtoFromJSON(json) {
32
+ return SellerDomainTransferListItemAuthCodeDtoFromJSONTyped(json, false);
33
+ }
34
+ function SellerDomainTransferListItemAuthCodeDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'value': json['value'],
40
+ 'updatedAt': (new Date(json['updatedAt'])),
41
+ };
42
+ }
43
+ function SellerDomainTransferListItemAuthCodeDtoToJSON(json) {
44
+ return SellerDomainTransferListItemAuthCodeDtoToJSONTyped(json, false);
45
+ }
46
+ function SellerDomainTransferListItemAuthCodeDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'value': value['value'],
53
+ 'updatedAt': ((value['updatedAt']).toISOString()),
54
+ };
55
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SellerDomainTransferListItemAuthCodeDto } from './SellerDomainTransferListItemAuthCodeDto';
12
13
  import type { SellerDomainTransferListItemDomainDto } from './SellerDomainTransferListItemDomainDto';
13
14
  /**
14
15
  *
@@ -46,6 +47,18 @@ export interface SellerDomainTransferListItemDto {
46
47
  * @memberof SellerDomainTransferListItemDto
47
48
  */
48
49
  createdAt: Date;
50
+ /**
51
+ *
52
+ * @type {SellerDomainTransferListItemAuthCodeDto}
53
+ * @memberof SellerDomainTransferListItemDto
54
+ */
55
+ authCode: SellerDomainTransferListItemAuthCodeDto | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof SellerDomainTransferListItemDto
60
+ */
61
+ ipsTag: string | null;
49
62
  }
50
63
  /**
51
64
  * @export
@@ -19,6 +19,7 @@ exports.SellerDomainTransferListItemDtoFromJSON = SellerDomainTransferListItemDt
19
19
  exports.SellerDomainTransferListItemDtoFromJSONTyped = SellerDomainTransferListItemDtoFromJSONTyped;
20
20
  exports.SellerDomainTransferListItemDtoToJSON = SellerDomainTransferListItemDtoToJSON;
21
21
  exports.SellerDomainTransferListItemDtoToJSONTyped = SellerDomainTransferListItemDtoToJSONTyped;
22
+ var SellerDomainTransferListItemAuthCodeDto_1 = require("./SellerDomainTransferListItemAuthCodeDto");
22
23
  var SellerDomainTransferListItemDomainDto_1 = require("./SellerDomainTransferListItemDomainDto");
23
24
  /**
24
25
  * @export
@@ -44,6 +45,10 @@ function instanceOfSellerDomainTransferListItemDto(value) {
44
45
  return false;
45
46
  if (!('createdAt' in value) || value['createdAt'] === undefined)
46
47
  return false;
48
+ if (!('authCode' in value) || value['authCode'] === undefined)
49
+ return false;
50
+ if (!('ipsTag' in value) || value['ipsTag'] === undefined)
51
+ return false;
47
52
  return true;
48
53
  }
49
54
  function SellerDomainTransferListItemDtoFromJSON(json) {
@@ -59,6 +64,8 @@ function SellerDomainTransferListItemDtoFromJSONTyped(json, ignoreDiscriminator)
59
64
  'domain': (0, SellerDomainTransferListItemDomainDto_1.SellerDomainTransferListItemDomainDtoFromJSON)(json['domain']),
60
65
  'status': json['status'],
61
66
  'createdAt': (new Date(json['createdAt'])),
67
+ 'authCode': (0, SellerDomainTransferListItemAuthCodeDto_1.SellerDomainTransferListItemAuthCodeDtoFromJSON)(json['authCode']),
68
+ 'ipsTag': json['ipsTag'],
62
69
  };
63
70
  }
64
71
  function SellerDomainTransferListItemDtoToJSON(json) {
@@ -75,5 +82,7 @@ function SellerDomainTransferListItemDtoToJSONTyped(value, ignoreDiscriminator)
75
82
  'domain': (0, SellerDomainTransferListItemDomainDto_1.SellerDomainTransferListItemDomainDtoToJSON)(value['domain']),
76
83
  'status': value['status'],
77
84
  'createdAt': ((value['createdAt']).toISOString()),
85
+ 'authCode': (0, SellerDomainTransferListItemAuthCodeDto_1.SellerDomainTransferListItemAuthCodeDtoToJSON)(value['authCode']),
86
+ 'ipsTag': value['ipsTag'],
78
87
  };
79
88
  }
@@ -105,6 +105,7 @@ export * from './GetAllDomainTransfers200Response';
105
105
  export * from './GetAllInvoices200Response';
106
106
  export * from './GetAllOrders200Response';
107
107
  export * from './GetAllOwnedDomains200Response';
108
+ export * from './GetAllReferrals200Response';
108
109
  export * from './GetAllSubscriptions200Response';
109
110
  export * from './GetAllSubscriptions200Response1';
110
111
  export * from './GetBuyerLeads200Response';
@@ -195,9 +196,11 @@ export * from './RentConfigurationInput';
195
196
  export * from './RentConfigurationPresetsDto';
196
197
  export * from './RentDto';
197
198
  export * from './RequestAccessTokenInput';
199
+ export * from './SellerAccountReferralListItemDto';
198
200
  export * from './SellerDomainTransferAuthCodeDto';
199
201
  export * from './SellerDomainTransferDomainDto';
200
202
  export * from './SellerDomainTransferDto';
203
+ export * from './SellerDomainTransferListItemAuthCodeDto';
201
204
  export * from './SellerDomainTransferListItemDomainDto';
202
205
  export * from './SellerDomainTransferListItemDto';
203
206
  export * from './SellerSecurityUserAccountDto';
@@ -123,6 +123,7 @@ __exportStar(require("./GetAllDomainTransfers200Response"), exports);
123
123
  __exportStar(require("./GetAllInvoices200Response"), exports);
124
124
  __exportStar(require("./GetAllOrders200Response"), exports);
125
125
  __exportStar(require("./GetAllOwnedDomains200Response"), exports);
126
+ __exportStar(require("./GetAllReferrals200Response"), exports);
126
127
  __exportStar(require("./GetAllSubscriptions200Response"), exports);
127
128
  __exportStar(require("./GetAllSubscriptions200Response1"), exports);
128
129
  __exportStar(require("./GetBuyerLeads200Response"), exports);
@@ -213,9 +214,11 @@ __exportStar(require("./RentConfigurationInput"), exports);
213
214
  __exportStar(require("./RentConfigurationPresetsDto"), exports);
214
215
  __exportStar(require("./RentDto"), exports);
215
216
  __exportStar(require("./RequestAccessTokenInput"), exports);
217
+ __exportStar(require("./SellerAccountReferralListItemDto"), exports);
216
218
  __exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
217
219
  __exportStar(require("./SellerDomainTransferDomainDto"), exports);
218
220
  __exportStar(require("./SellerDomainTransferDto"), exports);
221
+ __exportStar(require("./SellerDomainTransferListItemAuthCodeDto"), exports);
219
222
  __exportStar(require("./SellerDomainTransferListItemDomainDto"), exports);
220
223
  __exportStar(require("./SellerDomainTransferListItemDto"), exports);
221
224
  __exportStar(require("./SellerSecurityUserAccountDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.289",
3
+ "version": "0.0.291",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,6 +19,7 @@ import type {
19
19
  AccountSettingsDto,
20
20
  AccountSettingsInput,
21
21
  BadRequestException,
22
+ GetAllReferrals200Response,
22
23
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
23
24
  NotFoundException,
24
25
  SetPayoutProviderInput,
@@ -35,6 +36,8 @@ import {
35
36
  AccountSettingsInputToJSON,
36
37
  BadRequestExceptionFromJSON,
37
38
  BadRequestExceptionToJSON,
39
+ GetAllReferrals200ResponseFromJSON,
40
+ GetAllReferrals200ResponseToJSON,
38
41
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoFromJSON,
39
42
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
40
43
  NotFoundExceptionFromJSON,
@@ -53,6 +56,13 @@ export interface AccountsApiGetAccountPaymentProviderSessionRequest {
53
56
  accountId: string;
54
57
  }
55
58
 
59
+ export interface AccountsApiGetAllReferralsRequest {
60
+ filter?: object;
61
+ page?: number;
62
+ limit?: number;
63
+ sortBy?: Array<string>;
64
+ }
65
+
56
66
  export interface AccountsApiPostBillingInformationRequest {
57
67
  accountId: string;
58
68
  updateAccountBillingInformationInput: UpdateAccountBillingInformationInput;
@@ -191,6 +201,56 @@ export class AccountsApi extends runtime.BaseAPI {
191
201
  return await response.value();
192
202
  }
193
203
 
204
+ /**
205
+ *
206
+ */
207
+ async getAllReferralsRaw(requestParameters: AccountsApiGetAllReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllReferrals200Response>> {
208
+ const queryParameters: any = {};
209
+
210
+ if (requestParameters['filter'] != null) {
211
+ queryParameters['filter'] = requestParameters['filter'];
212
+ }
213
+
214
+ if (requestParameters['page'] != null) {
215
+ queryParameters['page'] = requestParameters['page'];
216
+ }
217
+
218
+ if (requestParameters['limit'] != null) {
219
+ queryParameters['limit'] = requestParameters['limit'];
220
+ }
221
+
222
+ if (requestParameters['sortBy'] != null) {
223
+ queryParameters['sortBy'] = requestParameters['sortBy'];
224
+ }
225
+
226
+ const headerParameters: runtime.HTTPHeaders = {};
227
+
228
+ if (this.configuration && this.configuration.accessToken) {
229
+ const token = this.configuration.accessToken;
230
+ const tokenString = await token("bearer", []);
231
+
232
+ if (tokenString) {
233
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
234
+ }
235
+ }
236
+ const response = await this.request({
237
+ path: `/private/accounts/{accountId}/referrals`,
238
+ method: 'GET',
239
+ headers: headerParameters,
240
+ query: queryParameters,
241
+ }, initOverrides);
242
+
243
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetAllReferrals200ResponseFromJSON(jsonValue));
244
+ }
245
+
246
+ /**
247
+ *
248
+ */
249
+ async getAllReferrals(requestParameters: AccountsApiGetAllReferralsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllReferrals200Response> {
250
+ const response = await this.getAllReferralsRaw(requestParameters, initOverrides);
251
+ return await response.value();
252
+ }
253
+
194
254
  /**
195
255
  *
196
256
  */
@@ -0,0 +1,106 @@
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 { PaginateResponseLinks } from './PaginateResponseLinks';
17
+ import {
18
+ PaginateResponseLinksFromJSON,
19
+ PaginateResponseLinksFromJSONTyped,
20
+ PaginateResponseLinksToJSON,
21
+ PaginateResponseLinksToJSONTyped,
22
+ } from './PaginateResponseLinks';
23
+ import type { SellerAccountReferralListItemDto } from './SellerAccountReferralListItemDto';
24
+ import {
25
+ SellerAccountReferralListItemDtoFromJSON,
26
+ SellerAccountReferralListItemDtoFromJSONTyped,
27
+ SellerAccountReferralListItemDtoToJSON,
28
+ SellerAccountReferralListItemDtoToJSONTyped,
29
+ } from './SellerAccountReferralListItemDto';
30
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
31
+ import {
32
+ PaginateResponseMetaFromJSON,
33
+ PaginateResponseMetaFromJSONTyped,
34
+ PaginateResponseMetaToJSON,
35
+ PaginateResponseMetaToJSONTyped,
36
+ } from './PaginateResponseMeta';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface GetAllReferrals200Response
42
+ */
43
+ export interface GetAllReferrals200Response {
44
+ /**
45
+ *
46
+ * @type {Array<SellerAccountReferralListItemDto>}
47
+ * @memberof GetAllReferrals200Response
48
+ */
49
+ data: Array<SellerAccountReferralListItemDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof GetAllReferrals200Response
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof GetAllReferrals200Response
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the GetAllReferrals200Response interface.
66
+ */
67
+ export function instanceOfGetAllReferrals200Response(value: object): value is GetAllReferrals200Response {
68
+ if (!('data' in value) || value['data'] === undefined) return false;
69
+ if (!('meta' in value) || value['meta'] === undefined) return false;
70
+ if (!('links' in value) || value['links'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetAllReferrals200ResponseFromJSON(json: any): GetAllReferrals200Response {
75
+ return GetAllReferrals200ResponseFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetAllReferrals200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllReferrals200Response {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(SellerAccountReferralListItemDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function GetAllReferrals200ResponseToJSON(json: any): GetAllReferrals200Response {
91
+ return GetAllReferrals200ResponseToJSONTyped(json, false);
92
+ }
93
+
94
+ export function GetAllReferrals200ResponseToJSONTyped(value?: GetAllReferrals200Response | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'data': ((value['data'] as Array<any>).map(SellerAccountReferralListItemDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+
@@ -140,7 +140,8 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
140
140
  SEO_METRICS: 'SEO_METRICS',
141
141
  BANK_PAYOUTS: 'BANK_PAYOUTS',
142
142
  ZERO_COMMISSION: 'ZERO_COMMISSION',
143
- LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT'
143
+ LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
144
+ AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM'
144
145
  } as const;
145
146
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
146
147
 
@@ -73,6 +73,12 @@ export interface RegisterAccountInput {
73
73
  * @memberof RegisterAccountInput
74
74
  */
75
75
  timezone?: string;
76
+ /**
77
+ *
78
+ * @type {object}
79
+ * @memberof RegisterAccountInput
80
+ */
81
+ affiliateIdentifier?: object | null;
76
82
  }
77
83
 
78
84
 
@@ -118,6 +124,7 @@ export function RegisterAccountInputFromJSONTyped(json: any, ignoreDiscriminator
118
124
  'adProgram': json['adProgram'] == null ? undefined : json['adProgram'],
119
125
  'adId': json['adId'] == null ? undefined : json['adId'],
120
126
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
127
+ 'affiliateIdentifier': json['affiliateIdentifier'] == null ? undefined : json['affiliateIdentifier'],
121
128
  };
122
129
  }
123
130
 
@@ -141,6 +148,7 @@ export function RegisterAccountInputToJSONTyped(value?: RegisterAccountInput | n
141
148
  'adProgram': value['adProgram'],
142
149
  'adId': value['adId'],
143
150
  'timezone': value['timezone'],
151
+ 'affiliateIdentifier': value['affiliateIdentifier'],
144
152
  };
145
153
  }
146
154
 
@@ -0,0 +1,123 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface SellerAccountReferralListItemDto
20
+ */
21
+ export interface SellerAccountReferralListItemDto {
22
+ /**
23
+ * The unique identifier of the referral
24
+ * @type {string}
25
+ * @memberof SellerAccountReferralListItemDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * The referral account identifier
30
+ * @type {string}
31
+ * @memberof SellerAccountReferralListItemDto
32
+ */
33
+ identifier: string;
34
+ /**
35
+ * The full name of the referral account owner
36
+ * @type {string}
37
+ * @memberof SellerAccountReferralListItemDto
38
+ */
39
+ name: string;
40
+ /**
41
+ * The email address of the referral account owner
42
+ * @type {string}
43
+ * @memberof SellerAccountReferralListItemDto
44
+ */
45
+ email: string;
46
+ /**
47
+ * The status of the referral account
48
+ * @type {string}
49
+ * @memberof SellerAccountReferralListItemDto
50
+ */
51
+ status: SellerAccountReferralListItemDtoStatusEnum;
52
+ /**
53
+ * The creation date
54
+ * @type {Date}
55
+ * @memberof SellerAccountReferralListItemDto
56
+ */
57
+ createdAt: Date;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const SellerAccountReferralListItemDtoStatusEnum = {
65
+ ACTIVE: 'active',
66
+ PENDING_ONBOARDING: 'pending_onboarding',
67
+ DELETED: 'deleted'
68
+ } as const;
69
+ export type SellerAccountReferralListItemDtoStatusEnum = typeof SellerAccountReferralListItemDtoStatusEnum[keyof typeof SellerAccountReferralListItemDtoStatusEnum];
70
+
71
+
72
+ /**
73
+ * Check if a given object implements the SellerAccountReferralListItemDto interface.
74
+ */
75
+ export function instanceOfSellerAccountReferralListItemDto(value: object): value is SellerAccountReferralListItemDto {
76
+ if (!('id' in value) || value['id'] === undefined) return false;
77
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
78
+ if (!('name' in value) || value['name'] === undefined) return false;
79
+ if (!('email' in value) || value['email'] === undefined) return false;
80
+ if (!('status' in value) || value['status'] === undefined) return false;
81
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
82
+ return true;
83
+ }
84
+
85
+ export function SellerAccountReferralListItemDtoFromJSON(json: any): SellerAccountReferralListItemDto {
86
+ return SellerAccountReferralListItemDtoFromJSONTyped(json, false);
87
+ }
88
+
89
+ export function SellerAccountReferralListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerAccountReferralListItemDto {
90
+ if (json == null) {
91
+ return json;
92
+ }
93
+ return {
94
+
95
+ 'id': json['id'],
96
+ 'identifier': json['identifier'],
97
+ 'name': json['name'],
98
+ 'email': json['email'],
99
+ 'status': json['status'],
100
+ 'createdAt': (new Date(json['createdAt'])),
101
+ };
102
+ }
103
+
104
+ export function SellerAccountReferralListItemDtoToJSON(json: any): SellerAccountReferralListItemDto {
105
+ return SellerAccountReferralListItemDtoToJSONTyped(json, false);
106
+ }
107
+
108
+ export function SellerAccountReferralListItemDtoToJSONTyped(value?: SellerAccountReferralListItemDto | null, ignoreDiscriminator: boolean = false): any {
109
+ if (value == null) {
110
+ return value;
111
+ }
112
+
113
+ return {
114
+
115
+ 'id': value['id'],
116
+ 'identifier': value['identifier'],
117
+ 'name': value['name'],
118
+ 'email': value['email'],
119
+ 'status': value['status'],
120
+ 'createdAt': ((value['createdAt']).toISOString()),
121
+ };
122
+ }
123
+
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface SellerDomainTransferListItemAuthCodeDto
20
+ */
21
+ export interface SellerDomainTransferListItemAuthCodeDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SellerDomainTransferListItemAuthCodeDto
26
+ */
27
+ value: string;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof SellerDomainTransferListItemAuthCodeDto
32
+ */
33
+ updatedAt: Date;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SellerDomainTransferListItemAuthCodeDto interface.
38
+ */
39
+ export function instanceOfSellerDomainTransferListItemAuthCodeDto(value: object): value is SellerDomainTransferListItemAuthCodeDto {
40
+ if (!('value' in value) || value['value'] === undefined) return false;
41
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SellerDomainTransferListItemAuthCodeDtoFromJSON(json: any): SellerDomainTransferListItemAuthCodeDto {
46
+ return SellerDomainTransferListItemAuthCodeDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SellerDomainTransferListItemAuthCodeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainTransferListItemAuthCodeDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'value': json['value'],
56
+ 'updatedAt': (new Date(json['updatedAt'])),
57
+ };
58
+ }
59
+
60
+ export function SellerDomainTransferListItemAuthCodeDtoToJSON(json: any): SellerDomainTransferListItemAuthCodeDto {
61
+ return SellerDomainTransferListItemAuthCodeDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SellerDomainTransferListItemAuthCodeDtoToJSONTyped(value?: SellerDomainTransferListItemAuthCodeDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'value': value['value'],
72
+ 'updatedAt': ((value['updatedAt']).toISOString()),
73
+ };
74
+ }
75
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { SellerDomainTransferListItemAuthCodeDto } from './SellerDomainTransferListItemAuthCodeDto';
17
+ import {
18
+ SellerDomainTransferListItemAuthCodeDtoFromJSON,
19
+ SellerDomainTransferListItemAuthCodeDtoFromJSONTyped,
20
+ SellerDomainTransferListItemAuthCodeDtoToJSON,
21
+ SellerDomainTransferListItemAuthCodeDtoToJSONTyped,
22
+ } from './SellerDomainTransferListItemAuthCodeDto';
16
23
  import type { SellerDomainTransferListItemDomainDto } from './SellerDomainTransferListItemDomainDto';
17
24
  import {
18
25
  SellerDomainTransferListItemDomainDtoFromJSON,
@@ -57,6 +64,18 @@ export interface SellerDomainTransferListItemDto {
57
64
  * @memberof SellerDomainTransferListItemDto
58
65
  */
59
66
  createdAt: Date;
67
+ /**
68
+ *
69
+ * @type {SellerDomainTransferListItemAuthCodeDto}
70
+ * @memberof SellerDomainTransferListItemDto
71
+ */
72
+ authCode: SellerDomainTransferListItemAuthCodeDto | null;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof SellerDomainTransferListItemDto
77
+ */
78
+ ipsTag: string | null;
60
79
  }
61
80
 
62
81
 
@@ -82,6 +101,8 @@ export function instanceOfSellerDomainTransferListItemDto(value: object): value
82
101
  if (!('domain' in value) || value['domain'] === undefined) return false;
83
102
  if (!('status' in value) || value['status'] === undefined) return false;
84
103
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
104
+ if (!('authCode' in value) || value['authCode'] === undefined) return false;
105
+ if (!('ipsTag' in value) || value['ipsTag'] === undefined) return false;
85
106
  return true;
86
107
  }
87
108
 
@@ -100,6 +121,8 @@ export function SellerDomainTransferListItemDtoFromJSONTyped(json: any, ignoreDi
100
121
  'domain': SellerDomainTransferListItemDomainDtoFromJSON(json['domain']),
101
122
  'status': json['status'],
102
123
  'createdAt': (new Date(json['createdAt'])),
124
+ 'authCode': SellerDomainTransferListItemAuthCodeDtoFromJSON(json['authCode']),
125
+ 'ipsTag': json['ipsTag'],
103
126
  };
104
127
  }
105
128
 
@@ -119,6 +142,8 @@ export function SellerDomainTransferListItemDtoToJSONTyped(value?: SellerDomainT
119
142
  'domain': SellerDomainTransferListItemDomainDtoToJSON(value['domain']),
120
143
  'status': value['status'],
121
144
  'createdAt': ((value['createdAt']).toISOString()),
145
+ 'authCode': SellerDomainTransferListItemAuthCodeDtoToJSON(value['authCode']),
146
+ 'ipsTag': value['ipsTag'],
122
147
  };
123
148
  }
124
149
 
@@ -107,6 +107,7 @@ export * from './GetAllDomainTransfers200Response';
107
107
  export * from './GetAllInvoices200Response';
108
108
  export * from './GetAllOrders200Response';
109
109
  export * from './GetAllOwnedDomains200Response';
110
+ export * from './GetAllReferrals200Response';
110
111
  export * from './GetAllSubscriptions200Response';
111
112
  export * from './GetAllSubscriptions200Response1';
112
113
  export * from './GetBuyerLeads200Response';
@@ -197,9 +198,11 @@ export * from './RentConfigurationInput';
197
198
  export * from './RentConfigurationPresetsDto';
198
199
  export * from './RentDto';
199
200
  export * from './RequestAccessTokenInput';
201
+ export * from './SellerAccountReferralListItemDto';
200
202
  export * from './SellerDomainTransferAuthCodeDto';
201
203
  export * from './SellerDomainTransferDomainDto';
202
204
  export * from './SellerDomainTransferDto';
205
+ export * from './SellerDomainTransferListItemAuthCodeDto';
203
206
  export * from './SellerDomainTransferListItemDomainDto';
204
207
  export * from './SellerDomainTransferListItemDto';
205
208
  export * from './SellerSecurityUserAccountDto';