@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,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
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
import type { CommissionPercentageRangeInput } from './CommissionPercentageRangeInput';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SalesCountCommissionPayloadSimulationInput
|
|
18
|
+
*/
|
|
19
|
+
export interface SalesCountCommissionPayloadSimulationInput {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CommissionFactor}
|
|
23
|
+
* @memberof SalesCountCommissionPayloadSimulationInput
|
|
24
|
+
*/
|
|
25
|
+
factor: CommissionFactor;
|
|
26
|
+
/**
|
|
27
|
+
* Commission tiers based on monthly sales count
|
|
28
|
+
* @type {Array<CommissionPercentageRangeInput>}
|
|
29
|
+
* @memberof SalesCountCommissionPayloadSimulationInput
|
|
30
|
+
*/
|
|
31
|
+
value: Array<CommissionPercentageRangeInput>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the SalesCountCommissionPayloadSimulationInput interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfSalesCountCommissionPayloadSimulationInput(value: object): value is SalesCountCommissionPayloadSimulationInput;
|
|
37
|
+
export declare function SalesCountCommissionPayloadSimulationInputFromJSON(json: any): SalesCountCommissionPayloadSimulationInput;
|
|
38
|
+
export declare function SalesCountCommissionPayloadSimulationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SalesCountCommissionPayloadSimulationInput;
|
|
39
|
+
export declare function SalesCountCommissionPayloadSimulationInputToJSON(json: any): SalesCountCommissionPayloadSimulationInput;
|
|
40
|
+
export declare function SalesCountCommissionPayloadSimulationInputToJSONTyped(value?: SalesCountCommissionPayloadSimulationInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfSalesCountCommissionPayloadSimulationInput = instanceOfSalesCountCommissionPayloadSimulationInput;
|
|
17
|
+
exports.SalesCountCommissionPayloadSimulationInputFromJSON = SalesCountCommissionPayloadSimulationInputFromJSON;
|
|
18
|
+
exports.SalesCountCommissionPayloadSimulationInputFromJSONTyped = SalesCountCommissionPayloadSimulationInputFromJSONTyped;
|
|
19
|
+
exports.SalesCountCommissionPayloadSimulationInputToJSON = SalesCountCommissionPayloadSimulationInputToJSON;
|
|
20
|
+
exports.SalesCountCommissionPayloadSimulationInputToJSONTyped = SalesCountCommissionPayloadSimulationInputToJSONTyped;
|
|
21
|
+
var CommissionFactor_1 = require("./CommissionFactor");
|
|
22
|
+
var CommissionPercentageRangeInput_1 = require("./CommissionPercentageRangeInput");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the SalesCountCommissionPayloadSimulationInput interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfSalesCountCommissionPayloadSimulationInput(value) {
|
|
27
|
+
if (!('factor' in value) || value['factor'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SalesCountCommissionPayloadSimulationInputFromJSON(json) {
|
|
34
|
+
return SalesCountCommissionPayloadSimulationInputFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SalesCountCommissionPayloadSimulationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'factor': (0, CommissionFactor_1.CommissionFactorFromJSON)(json['factor']),
|
|
42
|
+
'value': (json['value'].map(CommissionPercentageRangeInput_1.CommissionPercentageRangeInputFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function SalesCountCommissionPayloadSimulationInputToJSON(json) {
|
|
46
|
+
return SalesCountCommissionPayloadSimulationInputToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function SalesCountCommissionPayloadSimulationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'factor': (0, CommissionFactor_1.CommissionFactorToJSON)(value['factor']),
|
|
55
|
+
'value': (value['value'].map(CommissionPercentageRangeInput_1.CommissionPercentageRangeInputToJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 { CommissionSimulationItemInput } from './CommissionSimulationItemInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SimulateCommissionInput
|
|
17
|
+
*/
|
|
18
|
+
export interface SimulateCommissionInput {
|
|
19
|
+
/**
|
|
20
|
+
* Seller account ID for the simulation, or null.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SimulateCommissionInput
|
|
23
|
+
*/
|
|
24
|
+
account: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Simulation date (YYYY-MM-DD).
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof SimulateCommissionInput
|
|
29
|
+
*/
|
|
30
|
+
date: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Domain extension used for the simulation (for example: "be").
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SimulateCommissionInput
|
|
35
|
+
*/
|
|
36
|
+
tld: string;
|
|
37
|
+
/**
|
|
38
|
+
* Commission subtype.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SimulateCommissionInput
|
|
41
|
+
*/
|
|
42
|
+
subtype: SimulateCommissionInputSubtypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Full commission rule set to evaluate.
|
|
45
|
+
* @type {Array<CommissionSimulationItemInput>}
|
|
46
|
+
* @memberof SimulateCommissionInput
|
|
47
|
+
*/
|
|
48
|
+
commissions: Array<CommissionSimulationItemInput>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const SimulateCommissionInputSubtypeEnum: {
|
|
54
|
+
readonly POINTING: "pointing";
|
|
55
|
+
readonly NOT_POINTING: "not_pointing";
|
|
56
|
+
readonly MANUAL_LEAD: "manual_lead";
|
|
57
|
+
readonly AUCTION: "auction";
|
|
58
|
+
};
|
|
59
|
+
export type SimulateCommissionInputSubtypeEnum = typeof SimulateCommissionInputSubtypeEnum[keyof typeof SimulateCommissionInputSubtypeEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the SimulateCommissionInput interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfSimulateCommissionInput(value: object): value is SimulateCommissionInput;
|
|
64
|
+
export declare function SimulateCommissionInputFromJSON(json: any): SimulateCommissionInput;
|
|
65
|
+
export declare function SimulateCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulateCommissionInput;
|
|
66
|
+
export declare function SimulateCommissionInputToJSON(json: any): SimulateCommissionInput;
|
|
67
|
+
export declare function SimulateCommissionInputToJSONTyped(value?: SimulateCommissionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.SimulateCommissionInputSubtypeEnum = void 0;
|
|
17
|
+
exports.instanceOfSimulateCommissionInput = instanceOfSimulateCommissionInput;
|
|
18
|
+
exports.SimulateCommissionInputFromJSON = SimulateCommissionInputFromJSON;
|
|
19
|
+
exports.SimulateCommissionInputFromJSONTyped = SimulateCommissionInputFromJSONTyped;
|
|
20
|
+
exports.SimulateCommissionInputToJSON = SimulateCommissionInputToJSON;
|
|
21
|
+
exports.SimulateCommissionInputToJSONTyped = SimulateCommissionInputToJSONTyped;
|
|
22
|
+
var CommissionSimulationItemInput_1 = require("./CommissionSimulationItemInput");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SimulateCommissionInputSubtypeEnum = {
|
|
27
|
+
POINTING: 'pointing',
|
|
28
|
+
NOT_POINTING: 'not_pointing',
|
|
29
|
+
MANUAL_LEAD: 'manual_lead',
|
|
30
|
+
AUCTION: 'auction'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SimulateCommissionInput interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfSimulateCommissionInput(value) {
|
|
36
|
+
if (!('account' in value) || value['account'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('subtype' in value) || value['subtype'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('commissions' in value) || value['commissions'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function SimulateCommissionInputFromJSON(json) {
|
|
49
|
+
return SimulateCommissionInputFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function SimulateCommissionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'account': json['account'],
|
|
57
|
+
'date': (new Date(json['date'])),
|
|
58
|
+
'tld': json['tld'],
|
|
59
|
+
'subtype': json['subtype'],
|
|
60
|
+
'commissions': (json['commissions'].map(CommissionSimulationItemInput_1.CommissionSimulationItemInputFromJSON)),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function SimulateCommissionInputToJSON(json) {
|
|
64
|
+
return SimulateCommissionInputToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function SimulateCommissionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'account': value['account'],
|
|
73
|
+
'date': ((value['date']).toISOString().substring(0, 10)),
|
|
74
|
+
'tld': value['tld'],
|
|
75
|
+
'subtype': value['subtype'],
|
|
76
|
+
'commissions': (value['commissions'].map(CommissionSimulationItemInput_1.CommissionSimulationItemInputToJSON)),
|
|
77
|
+
};
|
|
78
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
|
126
126
|
export * from './BuyerTaskDetailsDto';
|
|
127
127
|
export * from './CaBankAccountDetails';
|
|
128
128
|
export * from './ChallengeRewardBalanceDto';
|
|
129
|
+
export * from './ChangeInvoiceStatusInput';
|
|
129
130
|
export * from './ChangeOrderStatusInput';
|
|
130
131
|
export * from './ChangeSubscriptionStatusInput';
|
|
131
132
|
export * from './ChangeUserEmailWithOtpInput';
|
|
@@ -137,6 +138,8 @@ export * from './CommissionAddUpdateActionInput';
|
|
|
137
138
|
export * from './CommissionConfigurationDto';
|
|
138
139
|
export * from './CommissionConfigurationDtoPayload';
|
|
139
140
|
export * from './CommissionConfigurationInput';
|
|
141
|
+
export * from './CommissionConfigurationSimulationInput';
|
|
142
|
+
export * from './CommissionConfigurationSimulationInputPayload';
|
|
140
143
|
export * from './CommissionDeleteActionInput';
|
|
141
144
|
export * from './CommissionDto';
|
|
142
145
|
export * from './CommissionFactor';
|
|
@@ -148,6 +151,8 @@ export * from './CommissionPercentageRangeInput';
|
|
|
148
151
|
export * from './CommissionReasonConfigDto';
|
|
149
152
|
export * from './CommissionReasonConfigDtoPayload';
|
|
150
153
|
export * from './CommissionReasonDto';
|
|
154
|
+
export * from './CommissionSimulationItemInput';
|
|
155
|
+
export * from './CommissionSimulationResultDto';
|
|
151
156
|
export * from './CommissionsStatsDto';
|
|
152
157
|
export * from './CompanyInformationDto';
|
|
153
158
|
export * from './CompanyTaxIdDto';
|
|
@@ -215,6 +220,7 @@ export * from './EppBatchUpdateInput';
|
|
|
215
220
|
export * from './FeatureFlagListItemDto';
|
|
216
221
|
export * from './FixedCommissionPayloadDto';
|
|
217
222
|
export * from './FixedCommissionPayloadInput';
|
|
223
|
+
export * from './FixedCommissionPayloadSimulationInput';
|
|
218
224
|
export * from './FixedCommissionReasonPayloadDto';
|
|
219
225
|
export * from './ForgotPasswordRequestInput';
|
|
220
226
|
export * from './GetAccountChallengeRewardUsagesListDto';
|
|
@@ -382,6 +388,7 @@ export * from './RequestEmailOtpInput';
|
|
|
382
388
|
export * from './RequestUserEmailChangeOtpInput';
|
|
383
389
|
export * from './SalesCountCommissionPayloadDto';
|
|
384
390
|
export * from './SalesCountCommissionPayloadInput';
|
|
391
|
+
export * from './SalesCountCommissionPayloadSimulationInput';
|
|
385
392
|
export * from './SalesCountCommissionReasonPayloadDto';
|
|
386
393
|
export * from './SeBankAccountDetails';
|
|
387
394
|
export * from './SellerAccountReferralListItemDto';
|
|
@@ -421,6 +428,7 @@ export * from './SepaBankAccountDetails';
|
|
|
421
428
|
export * from './SetDomainTransferConfirmationInput';
|
|
422
429
|
export * from './SetNewPasswordInput';
|
|
423
430
|
export * from './SetPayoutProviderInput';
|
|
431
|
+
export * from './SimulateCommissionInput';
|
|
424
432
|
export * from './StartAuctionInput';
|
|
425
433
|
export * from './StateDto';
|
|
426
434
|
export * from './StatsFilterInputDateRange';
|
package/dist/models/index.js
CHANGED
|
@@ -144,6 +144,7 @@ __exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports
|
|
|
144
144
|
__exportStar(require("./BuyerTaskDetailsDto"), exports);
|
|
145
145
|
__exportStar(require("./CaBankAccountDetails"), exports);
|
|
146
146
|
__exportStar(require("./ChallengeRewardBalanceDto"), exports);
|
|
147
|
+
__exportStar(require("./ChangeInvoiceStatusInput"), exports);
|
|
147
148
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
148
149
|
__exportStar(require("./ChangeSubscriptionStatusInput"), exports);
|
|
149
150
|
__exportStar(require("./ChangeUserEmailWithOtpInput"), exports);
|
|
@@ -155,6 +156,8 @@ __exportStar(require("./CommissionAddUpdateActionInput"), exports);
|
|
|
155
156
|
__exportStar(require("./CommissionConfigurationDto"), exports);
|
|
156
157
|
__exportStar(require("./CommissionConfigurationDtoPayload"), exports);
|
|
157
158
|
__exportStar(require("./CommissionConfigurationInput"), exports);
|
|
159
|
+
__exportStar(require("./CommissionConfigurationSimulationInput"), exports);
|
|
160
|
+
__exportStar(require("./CommissionConfigurationSimulationInputPayload"), exports);
|
|
158
161
|
__exportStar(require("./CommissionDeleteActionInput"), exports);
|
|
159
162
|
__exportStar(require("./CommissionDto"), exports);
|
|
160
163
|
__exportStar(require("./CommissionFactor"), exports);
|
|
@@ -166,6 +169,8 @@ __exportStar(require("./CommissionPercentageRangeInput"), exports);
|
|
|
166
169
|
__exportStar(require("./CommissionReasonConfigDto"), exports);
|
|
167
170
|
__exportStar(require("./CommissionReasonConfigDtoPayload"), exports);
|
|
168
171
|
__exportStar(require("./CommissionReasonDto"), exports);
|
|
172
|
+
__exportStar(require("./CommissionSimulationItemInput"), exports);
|
|
173
|
+
__exportStar(require("./CommissionSimulationResultDto"), exports);
|
|
169
174
|
__exportStar(require("./CommissionsStatsDto"), exports);
|
|
170
175
|
__exportStar(require("./CompanyInformationDto"), exports);
|
|
171
176
|
__exportStar(require("./CompanyTaxIdDto"), exports);
|
|
@@ -233,6 +238,7 @@ __exportStar(require("./EppBatchUpdateInput"), exports);
|
|
|
233
238
|
__exportStar(require("./FeatureFlagListItemDto"), exports);
|
|
234
239
|
__exportStar(require("./FixedCommissionPayloadDto"), exports);
|
|
235
240
|
__exportStar(require("./FixedCommissionPayloadInput"), exports);
|
|
241
|
+
__exportStar(require("./FixedCommissionPayloadSimulationInput"), exports);
|
|
236
242
|
__exportStar(require("./FixedCommissionReasonPayloadDto"), exports);
|
|
237
243
|
__exportStar(require("./ForgotPasswordRequestInput"), exports);
|
|
238
244
|
__exportStar(require("./GetAccountChallengeRewardUsagesListDto"), exports);
|
|
@@ -400,6 +406,7 @@ __exportStar(require("./RequestEmailOtpInput"), exports);
|
|
|
400
406
|
__exportStar(require("./RequestUserEmailChangeOtpInput"), exports);
|
|
401
407
|
__exportStar(require("./SalesCountCommissionPayloadDto"), exports);
|
|
402
408
|
__exportStar(require("./SalesCountCommissionPayloadInput"), exports);
|
|
409
|
+
__exportStar(require("./SalesCountCommissionPayloadSimulationInput"), exports);
|
|
403
410
|
__exportStar(require("./SalesCountCommissionReasonPayloadDto"), exports);
|
|
404
411
|
__exportStar(require("./SeBankAccountDetails"), exports);
|
|
405
412
|
__exportStar(require("./SellerAccountReferralListItemDto"), exports);
|
|
@@ -439,6 +446,7 @@ __exportStar(require("./SepaBankAccountDetails"), exports);
|
|
|
439
446
|
__exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
440
447
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
441
448
|
__exportStar(require("./SetPayoutProviderInput"), exports);
|
|
449
|
+
__exportStar(require("./SimulateCommissionInput"), exports);
|
|
442
450
|
__exportStar(require("./StartAuctionInput"), exports);
|
|
443
451
|
__exportStar(require("./StateDto"), exports);
|
|
444
452
|
__exportStar(require("./StatsFilterInputDateRange"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -655,7 +655,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
/**
|
|
658
|
-
* Returns
|
|
658
|
+
* Returns Nameshift commission percentages and schedules for the current account.
|
|
659
659
|
* Get Nameshift commissions
|
|
660
660
|
*/
|
|
661
661
|
async getNameshiftCommissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAccountNameshiftCommissionsResponseDto>> {
|
|
@@ -682,7 +682,7 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
/**
|
|
685
|
-
* Returns
|
|
685
|
+
* Returns Nameshift commission percentages and schedules for the current account.
|
|
686
686
|
* Get Nameshift commissions
|
|
687
687
|
*/
|
|
688
688
|
async getNameshiftCommissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAccountNameshiftCommissionsResponseDto> {
|