@randock/nameshift-api-client 0.0.444 → 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 +8 -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 +30 -3
- package/dist/apis/AdminApi.js +117 -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/ChangeInvoiceStatusInput.d.ts +42 -0
- package/dist/models/ChangeInvoiceStatusInput.js +61 -0
- 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 +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +2 -2
- package/src/apis/AdminApi.ts +118 -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/ChangeInvoiceStatusInput.ts +79 -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 +8 -0
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfCommissionConfigurationSimulationInput = instanceOfCommissionConfigurationSimulationInput;
|
|
17
|
+
exports.CommissionConfigurationSimulationInputFromJSON = CommissionConfigurationSimulationInputFromJSON;
|
|
18
|
+
exports.CommissionConfigurationSimulationInputFromJSONTyped = CommissionConfigurationSimulationInputFromJSONTyped;
|
|
19
|
+
exports.CommissionConfigurationSimulationInputToJSON = CommissionConfigurationSimulationInputToJSON;
|
|
20
|
+
exports.CommissionConfigurationSimulationInputToJSONTyped = CommissionConfigurationSimulationInputToJSONTyped;
|
|
21
|
+
var CommissionConfigurationSimulationInputPayload_1 = require("./CommissionConfigurationSimulationInputPayload");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CommissionConfigurationSimulationInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCommissionConfigurationSimulationInput(value) {
|
|
26
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function CommissionConfigurationSimulationInputFromJSON(json) {
|
|
31
|
+
return CommissionConfigurationSimulationInputFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function CommissionConfigurationSimulationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'payload': (0, CommissionConfigurationSimulationInputPayload_1.CommissionConfigurationSimulationInputPayloadFromJSON)(json['payload']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function CommissionConfigurationSimulationInputToJSON(json) {
|
|
42
|
+
return CommissionConfigurationSimulationInputToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function CommissionConfigurationSimulationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'payload': (0, CommissionConfigurationSimulationInputPayload_1.CommissionConfigurationSimulationInputPayloadToJSON)(value['payload']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { FixedCommissionPayloadSimulationInput } from './FixedCommissionPayloadSimulationInput';
|
|
13
|
+
import type { SalesCountCommissionPayloadSimulationInput } from './SalesCountCommissionPayloadSimulationInput';
|
|
14
|
+
/**
|
|
15
|
+
* @type CommissionConfigurationSimulationInputPayload
|
|
16
|
+
* Commission configuration payload. Shape depends on `factor`.
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type CommissionConfigurationSimulationInputPayload = {
|
|
20
|
+
factor: 'fixed';
|
|
21
|
+
} & FixedCommissionPayloadSimulationInput | {
|
|
22
|
+
factor: 'monthly_sales_count';
|
|
23
|
+
} & SalesCountCommissionPayloadSimulationInput;
|
|
24
|
+
export declare function CommissionConfigurationSimulationInputPayloadFromJSON(json: any): CommissionConfigurationSimulationInputPayload;
|
|
25
|
+
export declare function CommissionConfigurationSimulationInputPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationSimulationInputPayload;
|
|
26
|
+
export declare function CommissionConfigurationSimulationInputPayloadToJSON(json: any): any;
|
|
27
|
+
export declare function CommissionConfigurationSimulationInputPayloadToJSONTyped(value?: CommissionConfigurationSimulationInputPayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.CommissionConfigurationSimulationInputPayloadFromJSON = CommissionConfigurationSimulationInputPayloadFromJSON;
|
|
17
|
+
exports.CommissionConfigurationSimulationInputPayloadFromJSONTyped = CommissionConfigurationSimulationInputPayloadFromJSONTyped;
|
|
18
|
+
exports.CommissionConfigurationSimulationInputPayloadToJSON = CommissionConfigurationSimulationInputPayloadToJSON;
|
|
19
|
+
exports.CommissionConfigurationSimulationInputPayloadToJSONTyped = CommissionConfigurationSimulationInputPayloadToJSONTyped;
|
|
20
|
+
var FixedCommissionPayloadSimulationInput_1 = require("./FixedCommissionPayloadSimulationInput");
|
|
21
|
+
var SalesCountCommissionPayloadSimulationInput_1 = require("./SalesCountCommissionPayloadSimulationInput");
|
|
22
|
+
function CommissionConfigurationSimulationInputPayloadFromJSON(json) {
|
|
23
|
+
return CommissionConfigurationSimulationInputPayloadFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function CommissionConfigurationSimulationInputPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
switch (json['factor']) {
|
|
30
|
+
case 'fixed':
|
|
31
|
+
return Object.assign({}, (0, FixedCommissionPayloadSimulationInput_1.FixedCommissionPayloadSimulationInputFromJSONTyped)(json, true), { factor: 'fixed' });
|
|
32
|
+
case 'monthly_sales_count':
|
|
33
|
+
return Object.assign({}, (0, SalesCountCommissionPayloadSimulationInput_1.SalesCountCommissionPayloadSimulationInputFromJSONTyped)(json, true), { factor: 'monthly_sales_count' });
|
|
34
|
+
default:
|
|
35
|
+
throw new Error("No variant of CommissionConfigurationSimulationInputPayload exists with 'factor=".concat(json['factor'], "'"));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function CommissionConfigurationSimulationInputPayloadToJSON(json) {
|
|
39
|
+
return CommissionConfigurationSimulationInputPayloadToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CommissionConfigurationSimulationInputPayloadToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
switch (value['factor']) {
|
|
47
|
+
case 'fixed':
|
|
48
|
+
return Object.assign({}, (0, FixedCommissionPayloadSimulationInput_1.FixedCommissionPayloadSimulationInputToJSON)(value), { factor: 'fixed' });
|
|
49
|
+
case 'monthly_sales_count':
|
|
50
|
+
return Object.assign({}, (0, SalesCountCommissionPayloadSimulationInput_1.SalesCountCommissionPayloadSimulationInputToJSON)(value), { factor: 'monthly_sales_count' });
|
|
51
|
+
default:
|
|
52
|
+
throw new Error("No variant of CommissionConfigurationSimulationInputPayload exists with 'factor=".concat(value['factor'], "'"));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -71,6 +71,18 @@ export interface CommissionDto {
|
|
|
71
71
|
* @memberof CommissionDto
|
|
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 CommissionDto
|
|
78
|
+
*/
|
|
79
|
+
tlds: Array<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Domain extensions excluded from this commission.
|
|
82
|
+
* @type {Array<string>}
|
|
83
|
+
* @memberof CommissionDto
|
|
84
|
+
*/
|
|
85
|
+
excludedTlds: Array<string>;
|
|
74
86
|
/**
|
|
75
87
|
* Commission creation date.
|
|
76
88
|
* @type {Date}
|
|
@@ -59,6 +59,10 @@ function instanceOfCommissionDto(value) {
|
|
|
59
59
|
return false;
|
|
60
60
|
if (!('excludedAccountIds' in value) || value['excludedAccountIds'] === undefined)
|
|
61
61
|
return false;
|
|
62
|
+
if (!('tlds' in value) || value['tlds'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('excludedTlds' in value) || value['excludedTlds'] === undefined)
|
|
65
|
+
return false;
|
|
62
66
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
63
67
|
return false;
|
|
64
68
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -82,6 +86,8 @@ function CommissionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
86
|
'dateStart': (new Date(json['dateStart'])),
|
|
83
87
|
'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
|
|
84
88
|
'excludedAccountIds': json['excludedAccountIds'],
|
|
89
|
+
'tlds': json['tlds'],
|
|
90
|
+
'excludedTlds': json['excludedTlds'],
|
|
85
91
|
'createdAt': (new Date(json['createdAt'])),
|
|
86
92
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
87
93
|
};
|
|
@@ -104,6 +110,8 @@ function CommissionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
104
110
|
'dateStart': ((value['dateStart']).toISOString()),
|
|
105
111
|
'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
|
|
106
112
|
'excludedAccountIds': value['excludedAccountIds'],
|
|
113
|
+
'tlds': value['tlds'],
|
|
114
|
+
'excludedTlds': value['excludedTlds'],
|
|
107
115
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
108
116
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
109
117
|
};
|
|
@@ -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;
|