@randock/nameshift-api-client 0.0.310 → 0.0.311

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.
@@ -240,6 +240,8 @@ src/models/RentDto.ts
240
240
  src/models/RequestAccessTokenInput.ts
241
241
  src/models/SellerAccountReferralListItemDto.ts
242
242
  src/models/SellerAffiliateCommissionDto.ts
243
+ src/models/SellerDomainAffiliateCommissionDto.ts
244
+ src/models/SellerDomainAffiliateCommissionDtoDomain.ts
243
245
  src/models/SellerDomainTransferAuthCodeDto.ts
244
246
  src/models/SellerDomainTransferDomainDto.ts
245
247
  src/models/SellerDomainTransferDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.310
1
+ ## @randock/nameshift-api-client@0.0.311
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.310 --save
39
+ npm install @randock/nameshift-api-client@0.0.311 --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
- b0f298c0fb4a6ffe61c5a8d7b23876cacc5b2e0c09e54a4d60704f8844838ac0cfb400b05f92d0e11dd155ec40d19699
47
+ 0c28e53b9d8f4f78c4a00ae06fee14d8201eb765eaa244817679d0de72e297a3c0cf021de84625e0b497f78fc9386599
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
13
+ import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
14
14
  export interface DomainsApiBatchImportRequest {
15
15
  file?: Blob | null;
16
16
  domains?: Array<string>;
@@ -27,6 +27,9 @@ export interface DomainsApiCheckDnsRequest {
27
27
  export interface DomainsApiDeleteDomainsRequest {
28
28
  deleteDomainsInput: DeleteDomainsInput;
29
29
  }
30
+ export interface DomainsApiGetAffiliateCommissionRequest {
31
+ domainName: string;
32
+ }
30
33
  export interface DomainsApiGetAllDomainTransfersRequest {
31
34
  filter?: object;
32
35
  page?: number;
@@ -115,6 +118,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
115
118
  *
116
119
  */
117
120
  exportDomains(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
121
+ /**
122
+ *
123
+ */
124
+ getAffiliateCommissionRaw(requestParameters: DomainsApiGetAffiliateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerDomainAffiliateCommissionDto>>;
125
+ /**
126
+ *
127
+ */
128
+ getAffiliateCommission(requestParameters: DomainsApiGetAffiliateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerDomainAffiliateCommissionDto>;
118
129
  /**
119
130
  *
120
131
  */
@@ -419,6 +419,62 @@ var DomainsApi = /** @class */ (function (_super) {
419
419
  });
420
420
  });
421
421
  };
422
+ /**
423
+ *
424
+ */
425
+ DomainsApi.prototype.getAffiliateCommissionRaw = function (requestParameters, initOverrides) {
426
+ return __awaiter(this, void 0, void 0, function () {
427
+ var queryParameters, headerParameters, token, tokenString, response;
428
+ return __generator(this, function (_a) {
429
+ switch (_a.label) {
430
+ case 0:
431
+ if (requestParameters['domainName'] == null) {
432
+ throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getAffiliateCommission().');
433
+ }
434
+ queryParameters = {};
435
+ if (requestParameters['domainName'] != null) {
436
+ queryParameters['domainName'] = requestParameters['domainName'];
437
+ }
438
+ headerParameters = {};
439
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
440
+ token = this.configuration.accessToken;
441
+ return [4 /*yield*/, token("bearer", [])];
442
+ case 1:
443
+ tokenString = _a.sent();
444
+ if (tokenString) {
445
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
446
+ }
447
+ _a.label = 2;
448
+ case 2: return [4 /*yield*/, this.request({
449
+ path: "/private/domains/affiliate-commission",
450
+ method: 'GET',
451
+ headers: headerParameters,
452
+ query: queryParameters,
453
+ }, initOverrides)];
454
+ case 3:
455
+ response = _a.sent();
456
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SellerDomainAffiliateCommissionDtoFromJSON)(jsonValue); })];
457
+ }
458
+ });
459
+ });
460
+ };
461
+ /**
462
+ *
463
+ */
464
+ DomainsApi.prototype.getAffiliateCommission = function (requestParameters, initOverrides) {
465
+ return __awaiter(this, void 0, void 0, function () {
466
+ var response;
467
+ return __generator(this, function (_a) {
468
+ switch (_a.label) {
469
+ case 0: return [4 /*yield*/, this.getAffiliateCommissionRaw(requestParameters, initOverrides)];
470
+ case 1:
471
+ response = _a.sent();
472
+ return [4 /*yield*/, response.value()];
473
+ case 2: return [2 /*return*/, _a.sent()];
474
+ }
475
+ });
476
+ });
477
+ };
422
478
  /**
423
479
  *
424
480
  */
@@ -99,6 +99,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
99
99
  readonly ZERO_COMMISSION: "ZERO_COMMISSION";
100
100
  readonly LEAD_PRICE_NEGOTIATOR_AI_AGENT: "LEAD_PRICE_NEGOTIATOR_AI_AGENT";
101
101
  readonly AFFILIATE_PROGRAM: "AFFILIATE_PROGRAM";
102
+ readonly DOMAIN_AFFILIATE_PROGRAM: "DOMAIN_AFFILIATE_PROGRAM";
102
103
  readonly SELLER_STATS_DASHBOARD: "SELLER_STATS_DASHBOARD";
103
104
  };
104
105
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
@@ -36,6 +36,7 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
36
36
  ZERO_COMMISSION: 'ZERO_COMMISSION',
37
37
  LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
38
38
  AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
39
+ DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
39
40
  SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD'
40
41
  };
41
42
  /**
@@ -0,0 +1,89 @@
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 { SellerDomainAffiliateCommissionDtoDomain } from './SellerDomainAffiliateCommissionDtoDomain';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SellerDomainAffiliateCommissionDto
17
+ */
18
+ export interface SellerDomainAffiliateCommissionDto {
19
+ /**
20
+ *
21
+ * @type {SellerDomainAffiliateCommissionDtoDomain}
22
+ * @memberof SellerDomainAffiliateCommissionDto
23
+ */
24
+ domain: SellerDomainAffiliateCommissionDtoDomain;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof SellerDomainAffiliateCommissionDto
29
+ */
30
+ commissionPercentageLeaseToOwn: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof SellerDomainAffiliateCommissionDto
35
+ */
36
+ commissionPercentageLeaseToOwnShared: number | null;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof SellerDomainAffiliateCommissionDto
41
+ */
42
+ commissionPercentageRent: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof SellerDomainAffiliateCommissionDto
47
+ */
48
+ commissionPercentageRentShared: number | null;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof SellerDomainAffiliateCommissionDto
53
+ */
54
+ commissionPercentageOrder: number;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof SellerDomainAffiliateCommissionDto
59
+ */
60
+ commissionPercentageOrderShared: number | null;
61
+ /**
62
+ *
63
+ * @type {Array<string>}
64
+ * @memberof SellerDomainAffiliateCommissionDto
65
+ */
66
+ commissionReasons: Array<SellerDomainAffiliateCommissionDtoCommissionReasonsEnum>;
67
+ /**
68
+ *
69
+ * @type {Date}
70
+ * @memberof SellerDomainAffiliateCommissionDto
71
+ */
72
+ endDate: Date | null;
73
+ }
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const SellerDomainAffiliateCommissionDtoCommissionReasonsEnum: {
78
+ readonly DATE_RANGE: "DATE_RANGE";
79
+ readonly SHARED: "SHARED";
80
+ };
81
+ export type SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = typeof SellerDomainAffiliateCommissionDtoCommissionReasonsEnum[keyof typeof SellerDomainAffiliateCommissionDtoCommissionReasonsEnum];
82
+ /**
83
+ * Check if a given object implements the SellerDomainAffiliateCommissionDto interface.
84
+ */
85
+ export declare function instanceOfSellerDomainAffiliateCommissionDto(value: object): value is SellerDomainAffiliateCommissionDto;
86
+ export declare function SellerDomainAffiliateCommissionDtoFromJSON(json: any): SellerDomainAffiliateCommissionDto;
87
+ export declare function SellerDomainAffiliateCommissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainAffiliateCommissionDto;
88
+ export declare function SellerDomainAffiliateCommissionDtoToJSON(json: any): SellerDomainAffiliateCommissionDto;
89
+ export declare function SellerDomainAffiliateCommissionDtoToJSONTyped(value?: SellerDomainAffiliateCommissionDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,92 @@
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.SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = void 0;
17
+ exports.instanceOfSellerDomainAffiliateCommissionDto = instanceOfSellerDomainAffiliateCommissionDto;
18
+ exports.SellerDomainAffiliateCommissionDtoFromJSON = SellerDomainAffiliateCommissionDtoFromJSON;
19
+ exports.SellerDomainAffiliateCommissionDtoFromJSONTyped = SellerDomainAffiliateCommissionDtoFromJSONTyped;
20
+ exports.SellerDomainAffiliateCommissionDtoToJSON = SellerDomainAffiliateCommissionDtoToJSON;
21
+ exports.SellerDomainAffiliateCommissionDtoToJSONTyped = SellerDomainAffiliateCommissionDtoToJSONTyped;
22
+ var SellerDomainAffiliateCommissionDtoDomain_1 = require("./SellerDomainAffiliateCommissionDtoDomain");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = {
27
+ DATE_RANGE: 'DATE_RANGE',
28
+ SHARED: 'SHARED'
29
+ };
30
+ /**
31
+ * Check if a given object implements the SellerDomainAffiliateCommissionDto interface.
32
+ */
33
+ function instanceOfSellerDomainAffiliateCommissionDto(value) {
34
+ if (!('domain' in value) || value['domain'] === undefined)
35
+ return false;
36
+ if (!('commissionPercentageLeaseToOwn' in value) || value['commissionPercentageLeaseToOwn'] === undefined)
37
+ return false;
38
+ if (!('commissionPercentageLeaseToOwnShared' in value) || value['commissionPercentageLeaseToOwnShared'] === undefined)
39
+ return false;
40
+ if (!('commissionPercentageRent' in value) || value['commissionPercentageRent'] === undefined)
41
+ return false;
42
+ if (!('commissionPercentageRentShared' in value) || value['commissionPercentageRentShared'] === undefined)
43
+ return false;
44
+ if (!('commissionPercentageOrder' in value) || value['commissionPercentageOrder'] === undefined)
45
+ return false;
46
+ if (!('commissionPercentageOrderShared' in value) || value['commissionPercentageOrderShared'] === undefined)
47
+ return false;
48
+ if (!('commissionReasons' in value) || value['commissionReasons'] === undefined)
49
+ return false;
50
+ if (!('endDate' in value) || value['endDate'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ function SellerDomainAffiliateCommissionDtoFromJSON(json) {
55
+ return SellerDomainAffiliateCommissionDtoFromJSONTyped(json, false);
56
+ }
57
+ function SellerDomainAffiliateCommissionDtoFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'domain': (0, SellerDomainAffiliateCommissionDtoDomain_1.SellerDomainAffiliateCommissionDtoDomainFromJSON)(json['domain']),
63
+ 'commissionPercentageLeaseToOwn': json['commissionPercentageLeaseToOwn'],
64
+ 'commissionPercentageLeaseToOwnShared': json['commissionPercentageLeaseToOwnShared'],
65
+ 'commissionPercentageRent': json['commissionPercentageRent'],
66
+ 'commissionPercentageRentShared': json['commissionPercentageRentShared'],
67
+ 'commissionPercentageOrder': json['commissionPercentageOrder'],
68
+ 'commissionPercentageOrderShared': json['commissionPercentageOrderShared'],
69
+ 'commissionReasons': json['commissionReasons'],
70
+ 'endDate': (json['endDate'] == null ? null : new Date(json['endDate'])),
71
+ };
72
+ }
73
+ function SellerDomainAffiliateCommissionDtoToJSON(json) {
74
+ return SellerDomainAffiliateCommissionDtoToJSONTyped(json, false);
75
+ }
76
+ function SellerDomainAffiliateCommissionDtoToJSONTyped(value, ignoreDiscriminator) {
77
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+ return {
82
+ 'domain': (0, SellerDomainAffiliateCommissionDtoDomain_1.SellerDomainAffiliateCommissionDtoDomainToJSON)(value['domain']),
83
+ 'commissionPercentageLeaseToOwn': value['commissionPercentageLeaseToOwn'],
84
+ 'commissionPercentageLeaseToOwnShared': value['commissionPercentageLeaseToOwnShared'],
85
+ 'commissionPercentageRent': value['commissionPercentageRent'],
86
+ 'commissionPercentageRentShared': value['commissionPercentageRentShared'],
87
+ 'commissionPercentageOrder': value['commissionPercentageOrder'],
88
+ 'commissionPercentageOrderShared': value['commissionPercentageOrderShared'],
89
+ 'commissionReasons': value['commissionReasons'],
90
+ 'endDate': (value['endDate'] == null ? null : value['endDate'].toISOString()),
91
+ };
92
+ }
@@ -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 SellerDomainAffiliateCommissionDtoDomain
16
+ */
17
+ export interface SellerDomainAffiliateCommissionDtoDomain {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SellerDomainAffiliateCommissionDtoDomain
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SellerDomainAffiliateCommissionDtoDomain
28
+ */
29
+ displayName: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SellerDomainAffiliateCommissionDtoDomain interface.
33
+ */
34
+ export declare function instanceOfSellerDomainAffiliateCommissionDtoDomain(value: object): value is SellerDomainAffiliateCommissionDtoDomain;
35
+ export declare function SellerDomainAffiliateCommissionDtoDomainFromJSON(json: any): SellerDomainAffiliateCommissionDtoDomain;
36
+ export declare function SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainAffiliateCommissionDtoDomain;
37
+ export declare function SellerDomainAffiliateCommissionDtoDomainToJSON(json: any): SellerDomainAffiliateCommissionDtoDomain;
38
+ export declare function SellerDomainAffiliateCommissionDtoDomainToJSONTyped(value?: SellerDomainAffiliateCommissionDtoDomain | 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.instanceOfSellerDomainAffiliateCommissionDtoDomain = instanceOfSellerDomainAffiliateCommissionDtoDomain;
17
+ exports.SellerDomainAffiliateCommissionDtoDomainFromJSON = SellerDomainAffiliateCommissionDtoDomainFromJSON;
18
+ exports.SellerDomainAffiliateCommissionDtoDomainFromJSONTyped = SellerDomainAffiliateCommissionDtoDomainFromJSONTyped;
19
+ exports.SellerDomainAffiliateCommissionDtoDomainToJSON = SellerDomainAffiliateCommissionDtoDomainToJSON;
20
+ exports.SellerDomainAffiliateCommissionDtoDomainToJSONTyped = SellerDomainAffiliateCommissionDtoDomainToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SellerDomainAffiliateCommissionDtoDomain interface.
23
+ */
24
+ function instanceOfSellerDomainAffiliateCommissionDtoDomain(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('displayName' in value) || value['displayName'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SellerDomainAffiliateCommissionDtoDomainFromJSON(json) {
32
+ return SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json, false);
33
+ }
34
+ function SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'displayName': json['displayName'],
41
+ };
42
+ }
43
+ function SellerDomainAffiliateCommissionDtoDomainToJSON(json) {
44
+ return SellerDomainAffiliateCommissionDtoDomainToJSONTyped(json, false);
45
+ }
46
+ function SellerDomainAffiliateCommissionDtoDomainToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'name': value['name'],
53
+ 'displayName': value['displayName'],
54
+ };
55
+ }
@@ -211,6 +211,8 @@ export * from './RentDto';
211
211
  export * from './RequestAccessTokenInput';
212
212
  export * from './SellerAccountReferralListItemDto';
213
213
  export * from './SellerAffiliateCommissionDto';
214
+ export * from './SellerDomainAffiliateCommissionDto';
215
+ export * from './SellerDomainAffiliateCommissionDtoDomain';
214
216
  export * from './SellerDomainTransferAuthCodeDto';
215
217
  export * from './SellerDomainTransferDomainDto';
216
218
  export * from './SellerDomainTransferDto';
@@ -229,6 +229,8 @@ __exportStar(require("./RentDto"), exports);
229
229
  __exportStar(require("./RequestAccessTokenInput"), exports);
230
230
  __exportStar(require("./SellerAccountReferralListItemDto"), exports);
231
231
  __exportStar(require("./SellerAffiliateCommissionDto"), exports);
232
+ __exportStar(require("./SellerDomainAffiliateCommissionDto"), exports);
233
+ __exportStar(require("./SellerDomainAffiliateCommissionDtoDomain"), exports);
232
234
  __exportStar(require("./SellerDomainTransferAuthCodeDto"), exports);
233
235
  __exportStar(require("./SellerDomainTransferDomainDto"), exports);
234
236
  __exportStar(require("./SellerDomainTransferDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.310",
3
+ "version": "0.0.311",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -25,6 +25,7 @@ import type {
25
25
  IntersectionDomainDtoWithHijackerDtoWithAccountDto,
26
26
  List200Response2,
27
27
  NotFoundException,
28
+ SellerDomainAffiliateCommissionDto,
28
29
  SellerDomainTransferDto,
29
30
  ThrottlerException,
30
31
  UpdateDomainInput,
@@ -53,6 +54,8 @@ import {
53
54
  List200Response2ToJSON,
54
55
  NotFoundExceptionFromJSON,
55
56
  NotFoundExceptionToJSON,
57
+ SellerDomainAffiliateCommissionDtoFromJSON,
58
+ SellerDomainAffiliateCommissionDtoToJSON,
56
59
  SellerDomainTransferDtoFromJSON,
57
60
  SellerDomainTransferDtoToJSON,
58
61
  ThrottlerExceptionFromJSON,
@@ -88,6 +91,10 @@ export interface DomainsApiDeleteDomainsRequest {
88
91
  deleteDomainsInput: DeleteDomainsInput;
89
92
  }
90
93
 
94
+ export interface DomainsApiGetAffiliateCommissionRequest {
95
+ domainName: string;
96
+ }
97
+
91
98
  export interface DomainsApiGetAllDomainTransfersRequest {
92
99
  filter?: object;
93
100
  page?: number;
@@ -410,6 +417,51 @@ export class DomainsApi extends runtime.BaseAPI {
410
417
  await this.exportDomainsRaw(initOverrides);
411
418
  }
412
419
 
420
+ /**
421
+ *
422
+ */
423
+ async getAffiliateCommissionRaw(requestParameters: DomainsApiGetAffiliateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerDomainAffiliateCommissionDto>> {
424
+ if (requestParameters['domainName'] == null) {
425
+ throw new runtime.RequiredError(
426
+ 'domainName',
427
+ 'Required parameter "domainName" was null or undefined when calling getAffiliateCommission().'
428
+ );
429
+ }
430
+
431
+ const queryParameters: any = {};
432
+
433
+ if (requestParameters['domainName'] != null) {
434
+ queryParameters['domainName'] = requestParameters['domainName'];
435
+ }
436
+
437
+ const headerParameters: runtime.HTTPHeaders = {};
438
+
439
+ if (this.configuration && this.configuration.accessToken) {
440
+ const token = this.configuration.accessToken;
441
+ const tokenString = await token("bearer", []);
442
+
443
+ if (tokenString) {
444
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
445
+ }
446
+ }
447
+ const response = await this.request({
448
+ path: `/private/domains/affiliate-commission`,
449
+ method: 'GET',
450
+ headers: headerParameters,
451
+ query: queryParameters,
452
+ }, initOverrides);
453
+
454
+ return new runtime.JSONApiResponse(response, (jsonValue) => SellerDomainAffiliateCommissionDtoFromJSON(jsonValue));
455
+ }
456
+
457
+ /**
458
+ *
459
+ */
460
+ async getAffiliateCommission(requestParameters: DomainsApiGetAffiliateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerDomainAffiliateCommissionDto> {
461
+ const response = await this.getAffiliateCommissionRaw(requestParameters, initOverrides);
462
+ return await response.value();
463
+ }
464
+
413
465
  /**
414
466
  *
415
467
  */
@@ -142,6 +142,7 @@ export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatur
142
142
  ZERO_COMMISSION: 'ZERO_COMMISSION',
143
143
  LEAD_PRICE_NEGOTIATOR_AI_AGENT: 'LEAD_PRICE_NEGOTIATOR_AI_AGENT',
144
144
  AFFILIATE_PROGRAM: 'AFFILIATE_PROGRAM',
145
+ DOMAIN_AFFILIATE_PROGRAM: 'DOMAIN_AFFILIATE_PROGRAM',
145
146
  SELLER_STATS_DASHBOARD: 'SELLER_STATS_DASHBOARD'
146
147
  } as const;
147
148
  export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
@@ -0,0 +1,157 @@
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 { SellerDomainAffiliateCommissionDtoDomain } from './SellerDomainAffiliateCommissionDtoDomain';
17
+ import {
18
+ SellerDomainAffiliateCommissionDtoDomainFromJSON,
19
+ SellerDomainAffiliateCommissionDtoDomainFromJSONTyped,
20
+ SellerDomainAffiliateCommissionDtoDomainToJSON,
21
+ SellerDomainAffiliateCommissionDtoDomainToJSONTyped,
22
+ } from './SellerDomainAffiliateCommissionDtoDomain';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SellerDomainAffiliateCommissionDto
28
+ */
29
+ export interface SellerDomainAffiliateCommissionDto {
30
+ /**
31
+ *
32
+ * @type {SellerDomainAffiliateCommissionDtoDomain}
33
+ * @memberof SellerDomainAffiliateCommissionDto
34
+ */
35
+ domain: SellerDomainAffiliateCommissionDtoDomain;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof SellerDomainAffiliateCommissionDto
40
+ */
41
+ commissionPercentageLeaseToOwn: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof SellerDomainAffiliateCommissionDto
46
+ */
47
+ commissionPercentageLeaseToOwnShared: number | null;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof SellerDomainAffiliateCommissionDto
52
+ */
53
+ commissionPercentageRent: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof SellerDomainAffiliateCommissionDto
58
+ */
59
+ commissionPercentageRentShared: number | null;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof SellerDomainAffiliateCommissionDto
64
+ */
65
+ commissionPercentageOrder: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof SellerDomainAffiliateCommissionDto
70
+ */
71
+ commissionPercentageOrderShared: number | null;
72
+ /**
73
+ *
74
+ * @type {Array<string>}
75
+ * @memberof SellerDomainAffiliateCommissionDto
76
+ */
77
+ commissionReasons: Array<SellerDomainAffiliateCommissionDtoCommissionReasonsEnum>;
78
+ /**
79
+ *
80
+ * @type {Date}
81
+ * @memberof SellerDomainAffiliateCommissionDto
82
+ */
83
+ endDate: Date | null;
84
+ }
85
+
86
+
87
+ /**
88
+ * @export
89
+ */
90
+ export const SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = {
91
+ DATE_RANGE: 'DATE_RANGE',
92
+ SHARED: 'SHARED'
93
+ } as const;
94
+ export type SellerDomainAffiliateCommissionDtoCommissionReasonsEnum = typeof SellerDomainAffiliateCommissionDtoCommissionReasonsEnum[keyof typeof SellerDomainAffiliateCommissionDtoCommissionReasonsEnum];
95
+
96
+
97
+ /**
98
+ * Check if a given object implements the SellerDomainAffiliateCommissionDto interface.
99
+ */
100
+ export function instanceOfSellerDomainAffiliateCommissionDto(value: object): value is SellerDomainAffiliateCommissionDto {
101
+ if (!('domain' in value) || value['domain'] === undefined) return false;
102
+ if (!('commissionPercentageLeaseToOwn' in value) || value['commissionPercentageLeaseToOwn'] === undefined) return false;
103
+ if (!('commissionPercentageLeaseToOwnShared' in value) || value['commissionPercentageLeaseToOwnShared'] === undefined) return false;
104
+ if (!('commissionPercentageRent' in value) || value['commissionPercentageRent'] === undefined) return false;
105
+ if (!('commissionPercentageRentShared' in value) || value['commissionPercentageRentShared'] === undefined) return false;
106
+ if (!('commissionPercentageOrder' in value) || value['commissionPercentageOrder'] === undefined) return false;
107
+ if (!('commissionPercentageOrderShared' in value) || value['commissionPercentageOrderShared'] === undefined) return false;
108
+ if (!('commissionReasons' in value) || value['commissionReasons'] === undefined) return false;
109
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
110
+ return true;
111
+ }
112
+
113
+ export function SellerDomainAffiliateCommissionDtoFromJSON(json: any): SellerDomainAffiliateCommissionDto {
114
+ return SellerDomainAffiliateCommissionDtoFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function SellerDomainAffiliateCommissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainAffiliateCommissionDto {
118
+ if (json == null) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'domain': SellerDomainAffiliateCommissionDtoDomainFromJSON(json['domain']),
124
+ 'commissionPercentageLeaseToOwn': json['commissionPercentageLeaseToOwn'],
125
+ 'commissionPercentageLeaseToOwnShared': json['commissionPercentageLeaseToOwnShared'],
126
+ 'commissionPercentageRent': json['commissionPercentageRent'],
127
+ 'commissionPercentageRentShared': json['commissionPercentageRentShared'],
128
+ 'commissionPercentageOrder': json['commissionPercentageOrder'],
129
+ 'commissionPercentageOrderShared': json['commissionPercentageOrderShared'],
130
+ 'commissionReasons': json['commissionReasons'],
131
+ 'endDate': (json['endDate'] == null ? null : new Date(json['endDate'])),
132
+ };
133
+ }
134
+
135
+ export function SellerDomainAffiliateCommissionDtoToJSON(json: any): SellerDomainAffiliateCommissionDto {
136
+ return SellerDomainAffiliateCommissionDtoToJSONTyped(json, false);
137
+ }
138
+
139
+ export function SellerDomainAffiliateCommissionDtoToJSONTyped(value?: SellerDomainAffiliateCommissionDto | null, ignoreDiscriminator: boolean = false): any {
140
+ if (value == null) {
141
+ return value;
142
+ }
143
+
144
+ return {
145
+
146
+ 'domain': SellerDomainAffiliateCommissionDtoDomainToJSON(value['domain']),
147
+ 'commissionPercentageLeaseToOwn': value['commissionPercentageLeaseToOwn'],
148
+ 'commissionPercentageLeaseToOwnShared': value['commissionPercentageLeaseToOwnShared'],
149
+ 'commissionPercentageRent': value['commissionPercentageRent'],
150
+ 'commissionPercentageRentShared': value['commissionPercentageRentShared'],
151
+ 'commissionPercentageOrder': value['commissionPercentageOrder'],
152
+ 'commissionPercentageOrderShared': value['commissionPercentageOrderShared'],
153
+ 'commissionReasons': value['commissionReasons'],
154
+ 'endDate': (value['endDate'] == null ? null : (value['endDate'] as any).toISOString()),
155
+ };
156
+ }
157
+
@@ -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 SellerDomainAffiliateCommissionDtoDomain
20
+ */
21
+ export interface SellerDomainAffiliateCommissionDtoDomain {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SellerDomainAffiliateCommissionDtoDomain
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SellerDomainAffiliateCommissionDtoDomain
32
+ */
33
+ displayName: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SellerDomainAffiliateCommissionDtoDomain interface.
38
+ */
39
+ export function instanceOfSellerDomainAffiliateCommissionDtoDomain(value: object): value is SellerDomainAffiliateCommissionDtoDomain {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SellerDomainAffiliateCommissionDtoDomainFromJSON(json: any): SellerDomainAffiliateCommissionDtoDomain {
46
+ return SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SellerDomainAffiliateCommissionDtoDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerDomainAffiliateCommissionDtoDomain {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'displayName': json['displayName'],
57
+ };
58
+ }
59
+
60
+ export function SellerDomainAffiliateCommissionDtoDomainToJSON(json: any): SellerDomainAffiliateCommissionDtoDomain {
61
+ return SellerDomainAffiliateCommissionDtoDomainToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SellerDomainAffiliateCommissionDtoDomainToJSONTyped(value?: SellerDomainAffiliateCommissionDtoDomain | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'displayName': value['displayName'],
73
+ };
74
+ }
75
+
@@ -213,6 +213,8 @@ export * from './RentDto';
213
213
  export * from './RequestAccessTokenInput';
214
214
  export * from './SellerAccountReferralListItemDto';
215
215
  export * from './SellerAffiliateCommissionDto';
216
+ export * from './SellerDomainAffiliateCommissionDto';
217
+ export * from './SellerDomainAffiliateCommissionDtoDomain';
216
218
  export * from './SellerDomainTransferAuthCodeDto';
217
219
  export * from './SellerDomainTransferDomainDto';
218
220
  export * from './SellerDomainTransferDto';