@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
|
@@ -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
|
@@ -138,6 +138,8 @@ export * from './CommissionAddUpdateActionInput';
|
|
|
138
138
|
export * from './CommissionConfigurationDto';
|
|
139
139
|
export * from './CommissionConfigurationDtoPayload';
|
|
140
140
|
export * from './CommissionConfigurationInput';
|
|
141
|
+
export * from './CommissionConfigurationSimulationInput';
|
|
142
|
+
export * from './CommissionConfigurationSimulationInputPayload';
|
|
141
143
|
export * from './CommissionDeleteActionInput';
|
|
142
144
|
export * from './CommissionDto';
|
|
143
145
|
export * from './CommissionFactor';
|
|
@@ -149,6 +151,8 @@ export * from './CommissionPercentageRangeInput';
|
|
|
149
151
|
export * from './CommissionReasonConfigDto';
|
|
150
152
|
export * from './CommissionReasonConfigDtoPayload';
|
|
151
153
|
export * from './CommissionReasonDto';
|
|
154
|
+
export * from './CommissionSimulationItemInput';
|
|
155
|
+
export * from './CommissionSimulationResultDto';
|
|
152
156
|
export * from './CommissionsStatsDto';
|
|
153
157
|
export * from './CompanyInformationDto';
|
|
154
158
|
export * from './CompanyTaxIdDto';
|
|
@@ -216,6 +220,7 @@ export * from './EppBatchUpdateInput';
|
|
|
216
220
|
export * from './FeatureFlagListItemDto';
|
|
217
221
|
export * from './FixedCommissionPayloadDto';
|
|
218
222
|
export * from './FixedCommissionPayloadInput';
|
|
223
|
+
export * from './FixedCommissionPayloadSimulationInput';
|
|
219
224
|
export * from './FixedCommissionReasonPayloadDto';
|
|
220
225
|
export * from './ForgotPasswordRequestInput';
|
|
221
226
|
export * from './GetAccountChallengeRewardUsagesListDto';
|
|
@@ -383,6 +388,7 @@ export * from './RequestEmailOtpInput';
|
|
|
383
388
|
export * from './RequestUserEmailChangeOtpInput';
|
|
384
389
|
export * from './SalesCountCommissionPayloadDto';
|
|
385
390
|
export * from './SalesCountCommissionPayloadInput';
|
|
391
|
+
export * from './SalesCountCommissionPayloadSimulationInput';
|
|
386
392
|
export * from './SalesCountCommissionReasonPayloadDto';
|
|
387
393
|
export * from './SeBankAccountDetails';
|
|
388
394
|
export * from './SellerAccountReferralListItemDto';
|
|
@@ -422,6 +428,7 @@ export * from './SepaBankAccountDetails';
|
|
|
422
428
|
export * from './SetDomainTransferConfirmationInput';
|
|
423
429
|
export * from './SetNewPasswordInput';
|
|
424
430
|
export * from './SetPayoutProviderInput';
|
|
431
|
+
export * from './SimulateCommissionInput';
|
|
425
432
|
export * from './StartAuctionInput';
|
|
426
433
|
export * from './StateDto';
|
|
427
434
|
export * from './StatsFilterInputDateRange';
|
package/dist/models/index.js
CHANGED
|
@@ -156,6 +156,8 @@ __exportStar(require("./CommissionAddUpdateActionInput"), exports);
|
|
|
156
156
|
__exportStar(require("./CommissionConfigurationDto"), exports);
|
|
157
157
|
__exportStar(require("./CommissionConfigurationDtoPayload"), exports);
|
|
158
158
|
__exportStar(require("./CommissionConfigurationInput"), exports);
|
|
159
|
+
__exportStar(require("./CommissionConfigurationSimulationInput"), exports);
|
|
160
|
+
__exportStar(require("./CommissionConfigurationSimulationInputPayload"), exports);
|
|
159
161
|
__exportStar(require("./CommissionDeleteActionInput"), exports);
|
|
160
162
|
__exportStar(require("./CommissionDto"), exports);
|
|
161
163
|
__exportStar(require("./CommissionFactor"), exports);
|
|
@@ -167,6 +169,8 @@ __exportStar(require("./CommissionPercentageRangeInput"), exports);
|
|
|
167
169
|
__exportStar(require("./CommissionReasonConfigDto"), exports);
|
|
168
170
|
__exportStar(require("./CommissionReasonConfigDtoPayload"), exports);
|
|
169
171
|
__exportStar(require("./CommissionReasonDto"), exports);
|
|
172
|
+
__exportStar(require("./CommissionSimulationItemInput"), exports);
|
|
173
|
+
__exportStar(require("./CommissionSimulationResultDto"), exports);
|
|
170
174
|
__exportStar(require("./CommissionsStatsDto"), exports);
|
|
171
175
|
__exportStar(require("./CompanyInformationDto"), exports);
|
|
172
176
|
__exportStar(require("./CompanyTaxIdDto"), exports);
|
|
@@ -234,6 +238,7 @@ __exportStar(require("./EppBatchUpdateInput"), exports);
|
|
|
234
238
|
__exportStar(require("./FeatureFlagListItemDto"), exports);
|
|
235
239
|
__exportStar(require("./FixedCommissionPayloadDto"), exports);
|
|
236
240
|
__exportStar(require("./FixedCommissionPayloadInput"), exports);
|
|
241
|
+
__exportStar(require("./FixedCommissionPayloadSimulationInput"), exports);
|
|
237
242
|
__exportStar(require("./FixedCommissionReasonPayloadDto"), exports);
|
|
238
243
|
__exportStar(require("./ForgotPasswordRequestInput"), exports);
|
|
239
244
|
__exportStar(require("./GetAccountChallengeRewardUsagesListDto"), exports);
|
|
@@ -401,6 +406,7 @@ __exportStar(require("./RequestEmailOtpInput"), exports);
|
|
|
401
406
|
__exportStar(require("./RequestUserEmailChangeOtpInput"), exports);
|
|
402
407
|
__exportStar(require("./SalesCountCommissionPayloadDto"), exports);
|
|
403
408
|
__exportStar(require("./SalesCountCommissionPayloadInput"), exports);
|
|
409
|
+
__exportStar(require("./SalesCountCommissionPayloadSimulationInput"), exports);
|
|
404
410
|
__exportStar(require("./SalesCountCommissionReasonPayloadDto"), exports);
|
|
405
411
|
__exportStar(require("./SeBankAccountDetails"), exports);
|
|
406
412
|
__exportStar(require("./SellerAccountReferralListItemDto"), exports);
|
|
@@ -440,6 +446,7 @@ __exportStar(require("./SepaBankAccountDetails"), exports);
|
|
|
440
446
|
__exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
441
447
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
442
448
|
__exportStar(require("./SetPayoutProviderInput"), exports);
|
|
449
|
+
__exportStar(require("./SimulateCommissionInput"), exports);
|
|
443
450
|
__exportStar(require("./StartAuctionInput"), exports);
|
|
444
451
|
__exportStar(require("./StateDto"), exports);
|
|
445
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> {
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -31,6 +31,7 @@ import type {
|
|
|
31
31
|
ChangeOrderStatusInput,
|
|
32
32
|
ChangeSubscriptionStatusInput,
|
|
33
33
|
CommissionListDto,
|
|
34
|
+
CommissionSimulationResultDto,
|
|
34
35
|
ConflictException,
|
|
35
36
|
CreateChallengeInput,
|
|
36
37
|
DomainLockDto,
|
|
@@ -59,6 +60,7 @@ import type {
|
|
|
59
60
|
SellerSalesByTldStatsItemDto,
|
|
60
61
|
SellerSalesCountStatsItemDto,
|
|
61
62
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
|
|
63
|
+
SimulateCommissionInput,
|
|
62
64
|
SubscriptionDetailsDto,
|
|
63
65
|
UpdateAccountChallengeRewardBalanceInput,
|
|
64
66
|
UpdateChallengeInput,
|
|
@@ -98,6 +100,8 @@ import {
|
|
|
98
100
|
ChangeSubscriptionStatusInputToJSON,
|
|
99
101
|
CommissionListDtoFromJSON,
|
|
100
102
|
CommissionListDtoToJSON,
|
|
103
|
+
CommissionSimulationResultDtoFromJSON,
|
|
104
|
+
CommissionSimulationResultDtoToJSON,
|
|
101
105
|
ConflictExceptionFromJSON,
|
|
102
106
|
ConflictExceptionToJSON,
|
|
103
107
|
CreateChallengeInputFromJSON,
|
|
@@ -154,6 +158,8 @@ import {
|
|
|
154
158
|
SellerSalesCountStatsItemDtoToJSON,
|
|
155
159
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON,
|
|
156
160
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON,
|
|
161
|
+
SimulateCommissionInputFromJSON,
|
|
162
|
+
SimulateCommissionInputToJSON,
|
|
157
163
|
SubscriptionDetailsDtoFromJSON,
|
|
158
164
|
SubscriptionDetailsDtoToJSON,
|
|
159
165
|
UpdateAccountChallengeRewardBalanceInputFromJSON,
|
|
@@ -446,6 +452,10 @@ export interface AdminApiRemoveDomainLockRequest {
|
|
|
446
452
|
lockId: string;
|
|
447
453
|
}
|
|
448
454
|
|
|
455
|
+
export interface AdminApiSimulateCommissionRequest {
|
|
456
|
+
simulateCommissionInput: SimulateCommissionInput;
|
|
457
|
+
}
|
|
458
|
+
|
|
449
459
|
export interface AdminApiSyncAccountStatsRequest {
|
|
450
460
|
accountId: string;
|
|
451
461
|
}
|
|
@@ -1180,7 +1190,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1180
1190
|
}
|
|
1181
1191
|
|
|
1182
1192
|
/**
|
|
1183
|
-
* Returns
|
|
1193
|
+
* Returns Nameshift commission percentages and schedules for the account.
|
|
1184
1194
|
* Get Nameshift commissions
|
|
1185
1195
|
*/
|
|
1186
1196
|
async getAccountNameshiftCommissionsRaw(requestParameters: AdminApiGetAccountNameshiftCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNameshiftCommissionByTypeDto>> {
|
|
@@ -1214,7 +1224,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1214
1224
|
}
|
|
1215
1225
|
|
|
1216
1226
|
/**
|
|
1217
|
-
* Returns
|
|
1227
|
+
* Returns Nameshift commission percentages and schedules for the account.
|
|
1218
1228
|
* Get Nameshift commissions
|
|
1219
1229
|
*/
|
|
1220
1230
|
async getAccountNameshiftCommissions(requestParameters: AdminApiGetAccountNameshiftCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNameshiftCommissionByTypeDto> {
|
|
@@ -3053,6 +3063,52 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3053
3063
|
await this.removeDomainLockRaw(requestParameters, initOverrides);
|
|
3054
3064
|
}
|
|
3055
3065
|
|
|
3066
|
+
/**
|
|
3067
|
+
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
3068
|
+
* Simulate commission percentage
|
|
3069
|
+
*/
|
|
3070
|
+
async simulateCommissionRaw(requestParameters: AdminApiSimulateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CommissionSimulationResultDto>> {
|
|
3071
|
+
if (requestParameters['simulateCommissionInput'] == null) {
|
|
3072
|
+
throw new runtime.RequiredError(
|
|
3073
|
+
'simulateCommissionInput',
|
|
3074
|
+
'Required parameter "simulateCommissionInput" was null or undefined when calling simulateCommission().'
|
|
3075
|
+
);
|
|
3076
|
+
}
|
|
3077
|
+
|
|
3078
|
+
const queryParameters: any = {};
|
|
3079
|
+
|
|
3080
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3081
|
+
|
|
3082
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3083
|
+
|
|
3084
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3085
|
+
const token = this.configuration.accessToken;
|
|
3086
|
+
const tokenString = await token("bearer", []);
|
|
3087
|
+
|
|
3088
|
+
if (tokenString) {
|
|
3089
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
const response = await this.request({
|
|
3093
|
+
path: `/admin/commissions/simulate`,
|
|
3094
|
+
method: 'POST',
|
|
3095
|
+
headers: headerParameters,
|
|
3096
|
+
query: queryParameters,
|
|
3097
|
+
body: SimulateCommissionInputToJSON(requestParameters['simulateCommissionInput']),
|
|
3098
|
+
}, initOverrides);
|
|
3099
|
+
|
|
3100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CommissionSimulationResultDtoFromJSON(jsonValue));
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
/**
|
|
3104
|
+
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
3105
|
+
* Simulate commission percentage
|
|
3106
|
+
*/
|
|
3107
|
+
async simulateCommission(requestParameters: AdminApiSimulateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CommissionSimulationResultDto> {
|
|
3108
|
+
const response = await this.simulateCommissionRaw(requestParameters, initOverrides);
|
|
3109
|
+
return await response.value();
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3056
3112
|
/**
|
|
3057
3113
|
* Triggers a synchronization of account metrics and statistics.
|
|
3058
3114
|
* Sync account statistics
|
|
@@ -33,6 +33,12 @@ export interface AccountNameshiftCommissionBySubtypeDto {
|
|
|
33
33
|
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
34
34
|
*/
|
|
35
35
|
subtype: AccountNameshiftCommissionBySubtypeDtoSubtypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Domain extensions this current commission applies to. Null means all other extensions.
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
40
|
+
*/
|
|
41
|
+
tlds: Array<string> | null;
|
|
36
42
|
/**
|
|
37
43
|
* Effective commission percentage.
|
|
38
44
|
* @type {number}
|
|
@@ -65,6 +71,7 @@ export type AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = typeof AccountNa
|
|
|
65
71
|
*/
|
|
66
72
|
export function instanceOfAccountNameshiftCommissionBySubtypeDto(value: object): value is AccountNameshiftCommissionBySubtypeDto {
|
|
67
73
|
if (!('subtype' in value) || value['subtype'] === undefined) return false;
|
|
74
|
+
if (!('tlds' in value) || value['tlds'] === undefined) return false;
|
|
68
75
|
if (!('percentage' in value) || value['percentage'] === undefined) return false;
|
|
69
76
|
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
70
77
|
return true;
|
|
@@ -81,6 +88,7 @@ export function AccountNameshiftCommissionBySubtypeDtoFromJSONTyped(json: any, i
|
|
|
81
88
|
return {
|
|
82
89
|
|
|
83
90
|
'subtype': json['subtype'],
|
|
91
|
+
'tlds': json['tlds'] == null ? null : json['tlds'],
|
|
84
92
|
'percentage': json['percentage'],
|
|
85
93
|
'reason': CommissionReasonDtoFromJSON(json['reason']),
|
|
86
94
|
};
|
|
@@ -98,6 +106,7 @@ export function AccountNameshiftCommissionBySubtypeDtoToJSONTyped(value?: Accoun
|
|
|
98
106
|
return {
|
|
99
107
|
|
|
100
108
|
'subtype': value['subtype'],
|
|
109
|
+
'tlds': value['tlds'],
|
|
101
110
|
'percentage': value['percentage'],
|
|
102
111
|
'reason': CommissionReasonDtoToJSON(value['reason']),
|
|
103
112
|
};
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
*/
|
|
36
36
|
export interface AccountNameshiftCommissionByTypeDto {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Current commissions by subtype and domain extension group.
|
|
39
39
|
* @type {Array<AccountNameshiftCommissionBySubtypeDto>}
|
|
40
40
|
* @memberof AccountNameshiftCommissionByTypeDto
|
|
41
41
|
*/
|
|
42
42
|
commissions: Array<AccountNameshiftCommissionBySubtypeDto>;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Commission schedules for the account.
|
|
45
45
|
* @type {Array<AccountNameshiftCommissionItemDto>}
|
|
46
46
|
* @memberof AccountNameshiftCommissionByTypeDto
|
|
47
47
|
*/
|
|
@@ -63,6 +63,18 @@ export interface AccountNameshiftCommissionItemDto {
|
|
|
63
63
|
* @memberof AccountNameshiftCommissionItemDto
|
|
64
64
|
*/
|
|
65
65
|
dateEnd: Date | null;
|
|
66
|
+
/**
|
|
67
|
+
* Domain extensions this commission applies to. When empty, the commission applies to all extensions.
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
70
|
+
*/
|
|
71
|
+
tlds: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Domain extensions excluded from this commission.
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
76
|
+
*/
|
|
77
|
+
excludedTlds: Array<string>;
|
|
66
78
|
}
|
|
67
79
|
|
|
68
80
|
|
|
@@ -88,6 +100,8 @@ export function instanceOfAccountNameshiftCommissionItemDto(value: object): valu
|
|
|
88
100
|
if (!('config' in value) || value['config'] === undefined) return false;
|
|
89
101
|
if (!('dateStart' in value) || value['dateStart'] === undefined) return false;
|
|
90
102
|
if (!('dateEnd' in value) || value['dateEnd'] === undefined) return false;
|
|
103
|
+
if (!('tlds' in value) || value['tlds'] === undefined) return false;
|
|
104
|
+
if (!('excludedTlds' in value) || value['excludedTlds'] === undefined) return false;
|
|
91
105
|
return true;
|
|
92
106
|
}
|
|
93
107
|
|
|
@@ -107,6 +121,8 @@ export function AccountNameshiftCommissionItemDtoFromJSONTyped(json: any, ignore
|
|
|
107
121
|
'config': CommissionConfigurationDtoFromJSON(json['config']),
|
|
108
122
|
'dateStart': (new Date(json['dateStart'])),
|
|
109
123
|
'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
|
|
124
|
+
'tlds': json['tlds'],
|
|
125
|
+
'excludedTlds': json['excludedTlds'],
|
|
110
126
|
};
|
|
111
127
|
}
|
|
112
128
|
|
|
@@ -127,6 +143,8 @@ export function AccountNameshiftCommissionItemDtoToJSONTyped(value?: AccountName
|
|
|
127
143
|
'config': CommissionConfigurationDtoToJSON(value['config']),
|
|
128
144
|
'dateStart': ((value['dateStart']).toISOString()),
|
|
129
145
|
'dateEnd': (value['dateEnd'] == null ? null : (value['dateEnd'] as any).toISOString()),
|
|
146
|
+
'tlds': value['tlds'],
|
|
147
|
+
'excludedTlds': value['excludedTlds'],
|
|
130
148
|
};
|
|
131
149
|
}
|
|
132
150
|
|
|
@@ -100,6 +100,18 @@ export interface AccountNameshiftCommissionReasonDto {
|
|
|
100
100
|
* @memberof AccountNameshiftCommissionReasonDto
|
|
101
101
|
*/
|
|
102
102
|
factorCountResult?: number | null;
|
|
103
|
+
/**
|
|
104
|
+
* How the commission was selected for the domain extension.
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
107
|
+
*/
|
|
108
|
+
tldMatchType?: AccountNameshiftCommissionReasonDtoTldMatchTypeEnum;
|
|
109
|
+
/**
|
|
110
|
+
* Domain extension used to select the commission, if any.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
113
|
+
*/
|
|
114
|
+
tldMatchedValue?: string | null;
|
|
103
115
|
}
|
|
104
116
|
|
|
105
117
|
|
|
@@ -123,6 +135,16 @@ export const AccountNameshiftCommissionReasonDtoSubtypeEnum = {
|
|
|
123
135
|
} as const;
|
|
124
136
|
export type AccountNameshiftCommissionReasonDtoSubtypeEnum = typeof AccountNameshiftCommissionReasonDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoSubtypeEnum];
|
|
125
137
|
|
|
138
|
+
/**
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export const AccountNameshiftCommissionReasonDtoTldMatchTypeEnum = {
|
|
142
|
+
NULL_TLD_DEFAULT: 'null_tld_default',
|
|
143
|
+
INCLUDED_TLD_LIST: 'included_tld_list',
|
|
144
|
+
ALL_TLDS_DEFAULT: 'all_tlds_default'
|
|
145
|
+
} as const;
|
|
146
|
+
export type AccountNameshiftCommissionReasonDtoTldMatchTypeEnum = typeof AccountNameshiftCommissionReasonDtoTldMatchTypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoTldMatchTypeEnum];
|
|
147
|
+
|
|
126
148
|
|
|
127
149
|
/**
|
|
128
150
|
* Check if a given object implements the AccountNameshiftCommissionReasonDto interface.
|
|
@@ -152,6 +174,8 @@ export function AccountNameshiftCommissionReasonDtoFromJSONTyped(json: any, igno
|
|
|
152
174
|
'selectedValue': json['selectedValue'] == null ? undefined : json['selectedValue'],
|
|
153
175
|
'selectedTier': json['selectedTier'] == null ? undefined : CommissionPercentageRangeDtoFromJSON(json['selectedTier']),
|
|
154
176
|
'factorCountResult': json['factorCountResult'] == null ? undefined : json['factorCountResult'],
|
|
177
|
+
'tldMatchType': json['tldMatchType'] == null ? undefined : json['tldMatchType'],
|
|
178
|
+
'tldMatchedValue': json['tldMatchedValue'] == null ? undefined : json['tldMatchedValue'],
|
|
155
179
|
};
|
|
156
180
|
}
|
|
157
181
|
|
|
@@ -177,6 +201,8 @@ export function AccountNameshiftCommissionReasonDtoToJSONTyped(value?: AccountNa
|
|
|
177
201
|
'selectedValue': value['selectedValue'],
|
|
178
202
|
'selectedTier': CommissionPercentageRangeDtoToJSON(value['selectedTier']),
|
|
179
203
|
'factorCountResult': value['factorCountResult'],
|
|
204
|
+
'tldMatchType': value['tldMatchType'],
|
|
205
|
+
'tldMatchedValue': value['tldMatchedValue'],
|
|
180
206
|
};
|
|
181
207
|
}
|
|
182
208
|
|