@randock/nameshift-api-client 0.0.445 → 0.0.446
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +2 -2
- package/dist/apis/AccountsApi.js +2 -2
- package/dist/apis/AdminApi.d.ts +16 -3
- package/dist/apis/AdminApi.js +59 -2
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +6 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +4 -0
- package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +2 -2
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +12 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +8 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +21 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +13 -1
- package/dist/models/CommissionConfigurationSimulationInput.d.ts +33 -0
- package/dist/models/CommissionConfigurationSimulationInput.js +52 -0
- package/dist/models/CommissionConfigurationSimulationInputPayload.d.ts +27 -0
- package/dist/models/CommissionConfigurationSimulationInputPayload.js +54 -0
- package/dist/models/CommissionDto.d.ts +12 -0
- package/dist/models/CommissionDto.js +8 -0
- package/dist/models/CommissionFactor.d.ts +1 -1
- package/dist/models/CommissionFactor.js +1 -1
- package/dist/models/CommissionPayloadInput.d.ts +12 -0
- package/dist/models/CommissionPayloadInput.js +4 -0
- package/dist/models/CommissionReasonDto.d.ts +33 -0
- package/dist/models/CommissionReasonDto.js +17 -1
- package/dist/models/CommissionSimulationItemInput.d.ts +123 -0
- package/dist/models/CommissionSimulationItemInput.js +113 -0
- package/dist/models/CommissionSimulationResultDto.d.ts +39 -0
- package/dist/models/CommissionSimulationResultDto.js +56 -0
- package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +39 -0
- package/dist/models/FixedCommissionPayloadSimulationInput.js +56 -0
- package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +1 -1
- package/dist/models/MozMetrics.d.ts +6 -0
- package/dist/models/MozMetrics.js +4 -0
- package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +40 -0
- package/dist/models/SalesCountCommissionPayloadSimulationInput.js +57 -0
- package/dist/models/SimulateCommissionInput.d.ts +67 -0
- package/dist/models/SimulateCommissionInput.js +78 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +2 -2
- package/src/apis/AdminApi.ts +58 -2
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +9 -0
- package/src/models/AccountNameshiftCommissionByTypeDto.ts +2 -2
- package/src/models/AccountNameshiftCommissionItemDto.ts +18 -0
- package/src/models/AccountNameshiftCommissionReasonDto.ts +26 -0
- package/src/models/CommissionConfigurationSimulationInput.ts +74 -0
- package/src/models/CommissionConfigurationSimulationInputPayload.ts +73 -0
- package/src/models/CommissionDto.ts +18 -0
- package/src/models/CommissionFactor.ts +1 -1
- package/src/models/CommissionPayloadInput.ts +16 -0
- package/src/models/CommissionReasonDto.ts +42 -0
- package/src/models/CommissionSimulationItemInput.ts +202 -0
- package/src/models/CommissionSimulationResultDto.ts +83 -0
- package/src/models/FixedCommissionPayloadSimulationInput.ts +85 -0
- package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +1 -1
- package/src/models/MozMetrics.ts +9 -0
- package/src/models/SalesCountCommissionPayloadSimulationInput.ts +92 -0
- package/src/models/SimulateCommissionInput.ts +123 -0
- package/src/models/index.ts +7 -0
|
@@ -20,7 +20,7 @@ exports.CommissionFactorFromJSONTyped = CommissionFactorFromJSONTyped;
|
|
|
20
20
|
exports.CommissionFactorToJSON = CommissionFactorToJSON;
|
|
21
21
|
exports.CommissionFactorToJSONTyped = CommissionFactorToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Commission factor (MONTHLY_SALES_COUNT)
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.CommissionFactor = {
|
|
@@ -70,6 +70,18 @@ export interface CommissionPayloadInput {
|
|
|
70
70
|
* @memberof CommissionPayloadInput
|
|
71
71
|
*/
|
|
72
72
|
excludedAccountIds: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Domain extensions this commission applies to (for example: "com", "net"). When empty, the commission applies to all extensions.
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof CommissionPayloadInput
|
|
77
|
+
*/
|
|
78
|
+
tlds?: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Domain extensions excluded from this commission.
|
|
81
|
+
* @type {Array<string>}
|
|
82
|
+
* @memberof CommissionPayloadInput
|
|
83
|
+
*/
|
|
84
|
+
excludedTlds?: Array<string>;
|
|
73
85
|
}
|
|
74
86
|
/**
|
|
75
87
|
* @export
|
|
@@ -77,6 +77,8 @@ function CommissionPayloadInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
77
|
'dateStart': (new Date(json['dateStart'])),
|
|
78
78
|
'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
|
|
79
79
|
'excludedAccountIds': json['excludedAccountIds'],
|
|
80
|
+
'tlds': json['tlds'] == null ? undefined : json['tlds'],
|
|
81
|
+
'excludedTlds': json['excludedTlds'] == null ? undefined : json['excludedTlds'],
|
|
80
82
|
};
|
|
81
83
|
}
|
|
82
84
|
function CommissionPayloadInputToJSON(json) {
|
|
@@ -97,5 +99,7 @@ function CommissionPayloadInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
97
99
|
'dateStart': ((value['dateStart']).toISOString()),
|
|
98
100
|
'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
|
|
99
101
|
'excludedAccountIds': value['excludedAccountIds'],
|
|
102
|
+
'tlds': value['tlds'],
|
|
103
|
+
'excludedTlds': value['excludedTlds'],
|
|
100
104
|
};
|
|
101
105
|
}
|
|
@@ -71,6 +71,18 @@ export interface CommissionReasonDto {
|
|
|
71
71
|
* @memberof CommissionReasonDto
|
|
72
72
|
*/
|
|
73
73
|
excludedAccountIds?: Array<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Domain extensions this commission applies to. When empty, the commission applies to all extensions.
|
|
76
|
+
* @type {Array<string>}
|
|
77
|
+
* @memberof CommissionReasonDto
|
|
78
|
+
*/
|
|
79
|
+
tlds?: Array<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Domain extensions excluded from this commission.
|
|
82
|
+
* @type {Array<string>}
|
|
83
|
+
* @memberof CommissionReasonDto
|
|
84
|
+
*/
|
|
85
|
+
excludedTlds?: Array<string>;
|
|
74
86
|
/**
|
|
75
87
|
* Selected commission percentage value.
|
|
76
88
|
* @type {number}
|
|
@@ -89,6 +101,18 @@ export interface CommissionReasonDto {
|
|
|
89
101
|
* @memberof CommissionReasonDto
|
|
90
102
|
*/
|
|
91
103
|
factorCountResult?: number | null;
|
|
104
|
+
/**
|
|
105
|
+
* How the commission was selected for the domain extension.
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof CommissionReasonDto
|
|
108
|
+
*/
|
|
109
|
+
tldMatchType?: CommissionReasonDtoTldMatchTypeEnum;
|
|
110
|
+
/**
|
|
111
|
+
* Domain extension used to select the commission, if any.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof CommissionReasonDto
|
|
114
|
+
*/
|
|
115
|
+
tldMatchedValue?: string | null;
|
|
92
116
|
}
|
|
93
117
|
/**
|
|
94
118
|
* @export
|
|
@@ -108,6 +132,15 @@ export declare const CommissionReasonDtoSubtypeEnum: {
|
|
|
108
132
|
readonly AUCTION: "auction";
|
|
109
133
|
};
|
|
110
134
|
export type CommissionReasonDtoSubtypeEnum = typeof CommissionReasonDtoSubtypeEnum[keyof typeof CommissionReasonDtoSubtypeEnum];
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export declare const CommissionReasonDtoTldMatchTypeEnum: {
|
|
139
|
+
readonly NULL_TLD_DEFAULT: "null_tld_default";
|
|
140
|
+
readonly INCLUDED_TLD_LIST: "included_tld_list";
|
|
141
|
+
readonly ALL_TLDS_DEFAULT: "all_tlds_default";
|
|
142
|
+
};
|
|
143
|
+
export type CommissionReasonDtoTldMatchTypeEnum = typeof CommissionReasonDtoTldMatchTypeEnum[keyof typeof CommissionReasonDtoTldMatchTypeEnum];
|
|
111
144
|
/**
|
|
112
145
|
* Check if a given object implements the CommissionReasonDto interface.
|
|
113
146
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CommissionReasonDtoSubtypeEnum = exports.CommissionReasonDtoTypeEnum = void 0;
|
|
16
|
+
exports.CommissionReasonDtoTldMatchTypeEnum = exports.CommissionReasonDtoSubtypeEnum = exports.CommissionReasonDtoTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfCommissionReasonDto = instanceOfCommissionReasonDto;
|
|
18
18
|
exports.CommissionReasonDtoFromJSON = CommissionReasonDtoFromJSON;
|
|
19
19
|
exports.CommissionReasonDtoFromJSONTyped = CommissionReasonDtoFromJSONTyped;
|
|
@@ -37,6 +37,14 @@ exports.CommissionReasonDtoSubtypeEnum = {
|
|
|
37
37
|
MANUAL_LEAD: 'manual_lead',
|
|
38
38
|
AUCTION: 'auction'
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.CommissionReasonDtoTldMatchTypeEnum = {
|
|
44
|
+
NULL_TLD_DEFAULT: 'null_tld_default',
|
|
45
|
+
INCLUDED_TLD_LIST: 'included_tld_list',
|
|
46
|
+
ALL_TLDS_DEFAULT: 'all_tlds_default'
|
|
47
|
+
};
|
|
40
48
|
/**
|
|
41
49
|
* Check if a given object implements the CommissionReasonDto interface.
|
|
42
50
|
*/
|
|
@@ -60,9 +68,13 @@ function CommissionReasonDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
68
|
'dateStart': json['dateStart'] == null ? undefined : json['dateStart'],
|
|
61
69
|
'dateEnd': json['dateEnd'] == null ? undefined : json['dateEnd'],
|
|
62
70
|
'excludedAccountIds': json['excludedAccountIds'] == null ? undefined : json['excludedAccountIds'],
|
|
71
|
+
'tlds': json['tlds'] == null ? undefined : json['tlds'],
|
|
72
|
+
'excludedTlds': json['excludedTlds'] == null ? undefined : json['excludedTlds'],
|
|
63
73
|
'selectedValue': json['selectedValue'] == null ? undefined : json['selectedValue'],
|
|
64
74
|
'selectedTier': json['selectedTier'] == null ? undefined : (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoFromJSON)(json['selectedTier']),
|
|
65
75
|
'factorCountResult': json['factorCountResult'] == null ? undefined : json['factorCountResult'],
|
|
76
|
+
'tldMatchType': json['tldMatchType'] == null ? undefined : json['tldMatchType'],
|
|
77
|
+
'tldMatchedValue': json['tldMatchedValue'] == null ? undefined : json['tldMatchedValue'],
|
|
66
78
|
};
|
|
67
79
|
}
|
|
68
80
|
function CommissionReasonDtoToJSON(json) {
|
|
@@ -83,8 +95,12 @@ function CommissionReasonDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
83
95
|
'dateStart': value['dateStart'],
|
|
84
96
|
'dateEnd': value['dateEnd'],
|
|
85
97
|
'excludedAccountIds': value['excludedAccountIds'],
|
|
98
|
+
'tlds': value['tlds'],
|
|
99
|
+
'excludedTlds': value['excludedTlds'],
|
|
86
100
|
'selectedValue': value['selectedValue'],
|
|
87
101
|
'selectedTier': (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoToJSON)(value['selectedTier']),
|
|
88
102
|
'factorCountResult': value['factorCountResult'],
|
|
103
|
+
'tldMatchType': value['tldMatchType'],
|
|
104
|
+
'tldMatchedValue': value['tldMatchedValue'],
|
|
89
105
|
};
|
|
90
106
|
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { CommissionConfigurationSimulationInput } from './CommissionConfigurationSimulationInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CommissionSimulationItemInput
|
|
17
|
+
*/
|
|
18
|
+
export interface CommissionSimulationItemInput {
|
|
19
|
+
/**
|
|
20
|
+
* Commission ID.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CommissionSimulationItemInput
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Account ID this commission applies to, or null for global rules.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CommissionSimulationItemInput
|
|
29
|
+
*/
|
|
30
|
+
account: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Commission type.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CommissionSimulationItemInput
|
|
35
|
+
*/
|
|
36
|
+
type: CommissionSimulationItemInputTypeEnum;
|
|
37
|
+
/**
|
|
38
|
+
* Commission subtype.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CommissionSimulationItemInput
|
|
41
|
+
*/
|
|
42
|
+
subtype: CommissionSimulationItemInputSubtypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Commission label.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CommissionSimulationItemInput
|
|
47
|
+
*/
|
|
48
|
+
label: string;
|
|
49
|
+
/**
|
|
50
|
+
* Commission configuration, or null.
|
|
51
|
+
* @type {CommissionConfigurationSimulationInput}
|
|
52
|
+
* @memberof CommissionSimulationItemInput
|
|
53
|
+
*/
|
|
54
|
+
config: CommissionConfigurationSimulationInput | null;
|
|
55
|
+
/**
|
|
56
|
+
* Commission effective start date.
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof CommissionSimulationItemInput
|
|
59
|
+
*/
|
|
60
|
+
dateStart: Date;
|
|
61
|
+
/**
|
|
62
|
+
* Commission effective end date, or null.
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof CommissionSimulationItemInput
|
|
65
|
+
*/
|
|
66
|
+
dateEnd: Date | null;
|
|
67
|
+
/**
|
|
68
|
+
* Account IDs excluded from this commission.
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof CommissionSimulationItemInput
|
|
71
|
+
*/
|
|
72
|
+
excludedAccountIds: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Domain extensions this commission applies to. When empty, the commission applies to all extensions.
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof CommissionSimulationItemInput
|
|
77
|
+
*/
|
|
78
|
+
tlds: Array<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Domain extensions excluded from this commission.
|
|
81
|
+
* @type {Array<string>}
|
|
82
|
+
* @memberof CommissionSimulationItemInput
|
|
83
|
+
*/
|
|
84
|
+
excludedTlds: Array<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Commission creation date.
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof CommissionSimulationItemInput
|
|
89
|
+
*/
|
|
90
|
+
createdAt?: Date | null;
|
|
91
|
+
/**
|
|
92
|
+
* Commission last update date.
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof CommissionSimulationItemInput
|
|
95
|
+
*/
|
|
96
|
+
updatedAt?: Date | null;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const CommissionSimulationItemInputTypeEnum: {
|
|
102
|
+
readonly NAMESHIFT_COMMISSIONS: "nameshift_commissions";
|
|
103
|
+
readonly AFFILIATE_COMMISSIONS: "affiliate_commissions";
|
|
104
|
+
};
|
|
105
|
+
export type CommissionSimulationItemInputTypeEnum = typeof CommissionSimulationItemInputTypeEnum[keyof typeof CommissionSimulationItemInputTypeEnum];
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export declare const CommissionSimulationItemInputSubtypeEnum: {
|
|
110
|
+
readonly POINTING: "pointing";
|
|
111
|
+
readonly NOT_POINTING: "not_pointing";
|
|
112
|
+
readonly MANUAL_LEAD: "manual_lead";
|
|
113
|
+
readonly AUCTION: "auction";
|
|
114
|
+
};
|
|
115
|
+
export type CommissionSimulationItemInputSubtypeEnum = typeof CommissionSimulationItemInputSubtypeEnum[keyof typeof CommissionSimulationItemInputSubtypeEnum];
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the CommissionSimulationItemInput interface.
|
|
118
|
+
*/
|
|
119
|
+
export declare function instanceOfCommissionSimulationItemInput(value: object): value is CommissionSimulationItemInput;
|
|
120
|
+
export declare function CommissionSimulationItemInputFromJSON(json: any): CommissionSimulationItemInput;
|
|
121
|
+
export declare function CommissionSimulationItemInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionSimulationItemInput;
|
|
122
|
+
export declare function CommissionSimulationItemInputToJSON(json: any): CommissionSimulationItemInput;
|
|
123
|
+
export declare function CommissionSimulationItemInputToJSONTyped(value?: CommissionSimulationItemInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.CommissionSimulationItemInputSubtypeEnum = exports.CommissionSimulationItemInputTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCommissionSimulationItemInput = instanceOfCommissionSimulationItemInput;
|
|
18
|
+
exports.CommissionSimulationItemInputFromJSON = CommissionSimulationItemInputFromJSON;
|
|
19
|
+
exports.CommissionSimulationItemInputFromJSONTyped = CommissionSimulationItemInputFromJSONTyped;
|
|
20
|
+
exports.CommissionSimulationItemInputToJSON = CommissionSimulationItemInputToJSON;
|
|
21
|
+
exports.CommissionSimulationItemInputToJSONTyped = CommissionSimulationItemInputToJSONTyped;
|
|
22
|
+
var CommissionConfigurationSimulationInput_1 = require("./CommissionConfigurationSimulationInput");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CommissionSimulationItemInputTypeEnum = {
|
|
27
|
+
NAMESHIFT_COMMISSIONS: 'nameshift_commissions',
|
|
28
|
+
AFFILIATE_COMMISSIONS: 'affiliate_commissions'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.CommissionSimulationItemInputSubtypeEnum = {
|
|
34
|
+
POINTING: 'pointing',
|
|
35
|
+
NOT_POINTING: 'not_pointing',
|
|
36
|
+
MANUAL_LEAD: 'manual_lead',
|
|
37
|
+
AUCTION: 'auction'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CommissionSimulationItemInput interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfCommissionSimulationItemInput(value) {
|
|
43
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('subtype' in value) || value['subtype'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('config' in value) || value['config'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('dateStart' in value) || value['dateStart'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('dateEnd' in value) || value['dateEnd'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('excludedAccountIds' in value) || value['excludedAccountIds'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('tlds' in value) || value['tlds'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('excludedTlds' in value) || value['excludedTlds'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
function CommissionSimulationItemInputFromJSON(json) {
|
|
68
|
+
return CommissionSimulationItemInputFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function CommissionSimulationItemInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': json['id'],
|
|
76
|
+
'account': json['account'],
|
|
77
|
+
'type': json['type'],
|
|
78
|
+
'subtype': json['subtype'],
|
|
79
|
+
'label': json['label'],
|
|
80
|
+
'config': (0, CommissionConfigurationSimulationInput_1.CommissionConfigurationSimulationInputFromJSON)(json['config']),
|
|
81
|
+
'dateStart': (new Date(json['dateStart'])),
|
|
82
|
+
'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
|
|
83
|
+
'excludedAccountIds': json['excludedAccountIds'],
|
|
84
|
+
'tlds': json['tlds'],
|
|
85
|
+
'excludedTlds': json['excludedTlds'],
|
|
86
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
87
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function CommissionSimulationItemInputToJSON(json) {
|
|
91
|
+
return CommissionSimulationItemInputToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
function CommissionSimulationItemInputToJSONTyped(value, ignoreDiscriminator) {
|
|
94
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
'id': value['id'],
|
|
100
|
+
'account': value['account'],
|
|
101
|
+
'type': value['type'],
|
|
102
|
+
'subtype': value['subtype'],
|
|
103
|
+
'label': value['label'],
|
|
104
|
+
'config': (0, CommissionConfigurationSimulationInput_1.CommissionConfigurationSimulationInputToJSON)(value['config']),
|
|
105
|
+
'dateStart': ((value['dateStart']).toISOString()),
|
|
106
|
+
'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
|
|
107
|
+
'excludedAccountIds': value['excludedAccountIds'],
|
|
108
|
+
'tlds': value['tlds'],
|
|
109
|
+
'excludedTlds': value['excludedTlds'],
|
|
110
|
+
'createdAt': value['createdAt'] == null ? undefined : (value['createdAt'].toISOString()),
|
|
111
|
+
'updatedAt': value['updatedAt'] == null ? undefined : (value['updatedAt'].toISOString()),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { CommissionReasonDto } from './CommissionReasonDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CommissionSimulationResultDto
|
|
17
|
+
*/
|
|
18
|
+
export interface CommissionSimulationResultDto {
|
|
19
|
+
/**
|
|
20
|
+
* Resolved commission percentage for the given scenario.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CommissionSimulationResultDto
|
|
23
|
+
*/
|
|
24
|
+
percentage: number;
|
|
25
|
+
/**
|
|
26
|
+
* Commission selection reason.
|
|
27
|
+
* @type {CommissionReasonDto}
|
|
28
|
+
* @memberof CommissionSimulationResultDto
|
|
29
|
+
*/
|
|
30
|
+
reason: CommissionReasonDto | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CommissionSimulationResultDto interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCommissionSimulationResultDto(value: object): value is CommissionSimulationResultDto;
|
|
36
|
+
export declare function CommissionSimulationResultDtoFromJSON(json: any): CommissionSimulationResultDto;
|
|
37
|
+
export declare function CommissionSimulationResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionSimulationResultDto;
|
|
38
|
+
export declare function CommissionSimulationResultDtoToJSON(json: any): CommissionSimulationResultDto;
|
|
39
|
+
export declare function CommissionSimulationResultDtoToJSONTyped(value?: CommissionSimulationResultDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfCommissionSimulationResultDto = instanceOfCommissionSimulationResultDto;
|
|
17
|
+
exports.CommissionSimulationResultDtoFromJSON = CommissionSimulationResultDtoFromJSON;
|
|
18
|
+
exports.CommissionSimulationResultDtoFromJSONTyped = CommissionSimulationResultDtoFromJSONTyped;
|
|
19
|
+
exports.CommissionSimulationResultDtoToJSON = CommissionSimulationResultDtoToJSON;
|
|
20
|
+
exports.CommissionSimulationResultDtoToJSONTyped = CommissionSimulationResultDtoToJSONTyped;
|
|
21
|
+
var CommissionReasonDto_1 = require("./CommissionReasonDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CommissionSimulationResultDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCommissionSimulationResultDto(value) {
|
|
26
|
+
if (!('percentage' in value) || value['percentage'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function CommissionSimulationResultDtoFromJSON(json) {
|
|
33
|
+
return CommissionSimulationResultDtoFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CommissionSimulationResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'percentage': json['percentage'],
|
|
41
|
+
'reason': (0, CommissionReasonDto_1.CommissionReasonDtoFromJSON)(json['reason']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function CommissionSimulationResultDtoToJSON(json) {
|
|
45
|
+
return CommissionSimulationResultDtoToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CommissionSimulationResultDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'percentage': value['percentage'],
|
|
54
|
+
'reason': (0, CommissionReasonDto_1.CommissionReasonDtoToJSON)(value['reason']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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 { CommissionFactor } from './CommissionFactor';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FixedCommissionPayloadSimulationInput
|
|
17
|
+
*/
|
|
18
|
+
export interface FixedCommissionPayloadSimulationInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CommissionFactor}
|
|
22
|
+
* @memberof FixedCommissionPayloadSimulationInput
|
|
23
|
+
*/
|
|
24
|
+
factor: CommissionFactor;
|
|
25
|
+
/**
|
|
26
|
+
* Fixed commission percentage
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof FixedCommissionPayloadSimulationInput
|
|
29
|
+
*/
|
|
30
|
+
value: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the FixedCommissionPayloadSimulationInput interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfFixedCommissionPayloadSimulationInput(value: object): value is FixedCommissionPayloadSimulationInput;
|
|
36
|
+
export declare function FixedCommissionPayloadSimulationInputFromJSON(json: any): FixedCommissionPayloadSimulationInput;
|
|
37
|
+
export declare function FixedCommissionPayloadSimulationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): FixedCommissionPayloadSimulationInput;
|
|
38
|
+
export declare function FixedCommissionPayloadSimulationInputToJSON(json: any): FixedCommissionPayloadSimulationInput;
|
|
39
|
+
export declare function FixedCommissionPayloadSimulationInputToJSONTyped(value?: FixedCommissionPayloadSimulationInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
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.instanceOfFixedCommissionPayloadSimulationInput = instanceOfFixedCommissionPayloadSimulationInput;
|
|
17
|
+
exports.FixedCommissionPayloadSimulationInputFromJSON = FixedCommissionPayloadSimulationInputFromJSON;
|
|
18
|
+
exports.FixedCommissionPayloadSimulationInputFromJSONTyped = FixedCommissionPayloadSimulationInputFromJSONTyped;
|
|
19
|
+
exports.FixedCommissionPayloadSimulationInputToJSON = FixedCommissionPayloadSimulationInputToJSON;
|
|
20
|
+
exports.FixedCommissionPayloadSimulationInputToJSONTyped = FixedCommissionPayloadSimulationInputToJSONTyped;
|
|
21
|
+
var CommissionFactor_1 = require("./CommissionFactor");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FixedCommissionPayloadSimulationInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFixedCommissionPayloadSimulationInput(value) {
|
|
26
|
+
if (!('factor' in value) || value['factor'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function FixedCommissionPayloadSimulationInputFromJSON(json) {
|
|
33
|
+
return FixedCommissionPayloadSimulationInputFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function FixedCommissionPayloadSimulationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'factor': (0, CommissionFactor_1.CommissionFactorFromJSON)(json['factor']),
|
|
41
|
+
'value': json['value'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function FixedCommissionPayloadSimulationInputToJSON(json) {
|
|
45
|
+
return FixedCommissionPayloadSimulationInputToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function FixedCommissionPayloadSimulationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'factor': (0, CommissionFactor_1.CommissionFactorToJSON)(value['factor']),
|
|
54
|
+
'value': value['value'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -24,7 +24,7 @@ export interface GetAccountNameshiftCommissionsResponseDto {
|
|
|
24
24
|
*/
|
|
25
25
|
current: AccountNameshiftCommissionBySubtypePercentagesDto;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Commission schedules for the account.
|
|
28
28
|
* @type {Array<AccountNameshiftCommissionItemDto>}
|
|
29
29
|
* @memberof GetAccountNameshiftCommissionsResponseDto
|
|
30
30
|
*/
|
|
@@ -45,6 +45,12 @@ export interface MozMetrics {
|
|
|
45
45
|
* @memberof MozMetrics
|
|
46
46
|
*/
|
|
47
47
|
spamScore: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* Timestamp when Moz metrics were last fetched, when available.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof MozMetrics
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: Date | null;
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Check if a given object implements the MozMetrics interface.
|
|
@@ -32,6 +32,8 @@ function instanceOfMozMetrics(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('spamScore' in value) || value['spamScore'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
return true;
|
|
36
38
|
}
|
|
37
39
|
function MozMetricsFromJSON(json) {
|
|
@@ -47,6 +49,7 @@ function MozMetricsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
'backlinks': json['backlinks'],
|
|
48
50
|
'rootDomains': json['rootDomains'],
|
|
49
51
|
'spamScore': json['spamScore'],
|
|
52
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
55
|
function MozMetricsToJSON(json) {
|
|
@@ -63,5 +66,6 @@ function MozMetricsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
66
|
'backlinks': value['backlinks'],
|
|
64
67
|
'rootDomains': value['rootDomains'],
|
|
65
68
|
'spamScore': value['spamScore'],
|
|
69
|
+
'updatedAt': (value['updatedAt'] == null ? null : value['updatedAt'].toISOString()),
|
|
66
70
|
};
|
|
67
71
|
}
|