@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,123 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CommissionSimulationItemInput } from './CommissionSimulationItemInput';
|
|
17
|
+
import {
|
|
18
|
+
CommissionSimulationItemInputFromJSON,
|
|
19
|
+
CommissionSimulationItemInputFromJSONTyped,
|
|
20
|
+
CommissionSimulationItemInputToJSON,
|
|
21
|
+
CommissionSimulationItemInputToJSONTyped,
|
|
22
|
+
} from './CommissionSimulationItemInput';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SimulateCommissionInput
|
|
28
|
+
*/
|
|
29
|
+
export interface SimulateCommissionInput {
|
|
30
|
+
/**
|
|
31
|
+
* Seller account ID for the simulation, or null.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SimulateCommissionInput
|
|
34
|
+
*/
|
|
35
|
+
account: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Simulation date (YYYY-MM-DD).
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof SimulateCommissionInput
|
|
40
|
+
*/
|
|
41
|
+
date: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Domain extension used for the simulation (for example: "be").
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SimulateCommissionInput
|
|
46
|
+
*/
|
|
47
|
+
tld: string;
|
|
48
|
+
/**
|
|
49
|
+
* Commission subtype.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SimulateCommissionInput
|
|
52
|
+
*/
|
|
53
|
+
subtype: SimulateCommissionInputSubtypeEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Full commission rule set to evaluate.
|
|
56
|
+
* @type {Array<CommissionSimulationItemInput>}
|
|
57
|
+
* @memberof SimulateCommissionInput
|
|
58
|
+
*/
|
|
59
|
+
commissions: Array<CommissionSimulationItemInput>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export const SimulateCommissionInputSubtypeEnum = {
|
|
67
|
+
POINTING: 'pointing',
|
|
68
|
+
NOT_POINTING: 'not_pointing',
|
|
69
|
+
MANUAL_LEAD: 'manual_lead',
|
|
70
|
+
AUCTION: 'auction'
|
|
71
|
+
} as const;
|
|
72
|
+
export type SimulateCommissionInputSubtypeEnum = typeof SimulateCommissionInputSubtypeEnum[keyof typeof SimulateCommissionInputSubtypeEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the SimulateCommissionInput interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfSimulateCommissionInput(value: object): value is SimulateCommissionInput {
|
|
79
|
+
if (!('account' in value) || value['account'] === undefined) return false;
|
|
80
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
81
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
82
|
+
if (!('subtype' in value) || value['subtype'] === undefined) return false;
|
|
83
|
+
if (!('commissions' in value) || value['commissions'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function SimulateCommissionInputFromJSON(json: any): SimulateCommissionInput {
|
|
88
|
+
return SimulateCommissionInputFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function SimulateCommissionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulateCommissionInput {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'account': json['account'],
|
|
98
|
+
'date': (new Date(json['date'])),
|
|
99
|
+
'tld': json['tld'],
|
|
100
|
+
'subtype': json['subtype'],
|
|
101
|
+
'commissions': ((json['commissions'] as Array<any>).map(CommissionSimulationItemInputFromJSON)),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function SimulateCommissionInputToJSON(json: any): SimulateCommissionInput {
|
|
106
|
+
return SimulateCommissionInputToJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function SimulateCommissionInputToJSONTyped(value?: SimulateCommissionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
110
|
+
if (value == null) {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'account': value['account'],
|
|
117
|
+
'date': ((value['date']).toISOString().substring(0,10)),
|
|
118
|
+
'tld': value['tld'],
|
|
119
|
+
'subtype': value['subtype'],
|
|
120
|
+
'commissions': ((value['commissions'] as Array<any>).map(CommissionSimulationItemInputToJSON)),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -128,6 +128,7 @@ export * from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
|
128
128
|
export * from './BuyerTaskDetailsDto';
|
|
129
129
|
export * from './CaBankAccountDetails';
|
|
130
130
|
export * from './ChallengeRewardBalanceDto';
|
|
131
|
+
export * from './ChangeInvoiceStatusInput';
|
|
131
132
|
export * from './ChangeOrderStatusInput';
|
|
132
133
|
export * from './ChangeSubscriptionStatusInput';
|
|
133
134
|
export * from './ChangeUserEmailWithOtpInput';
|
|
@@ -139,6 +140,8 @@ export * from './CommissionAddUpdateActionInput';
|
|
|
139
140
|
export * from './CommissionConfigurationDto';
|
|
140
141
|
export * from './CommissionConfigurationDtoPayload';
|
|
141
142
|
export * from './CommissionConfigurationInput';
|
|
143
|
+
export * from './CommissionConfigurationSimulationInput';
|
|
144
|
+
export * from './CommissionConfigurationSimulationInputPayload';
|
|
142
145
|
export * from './CommissionDeleteActionInput';
|
|
143
146
|
export * from './CommissionDto';
|
|
144
147
|
export * from './CommissionFactor';
|
|
@@ -150,6 +153,8 @@ export * from './CommissionPercentageRangeInput';
|
|
|
150
153
|
export * from './CommissionReasonConfigDto';
|
|
151
154
|
export * from './CommissionReasonConfigDtoPayload';
|
|
152
155
|
export * from './CommissionReasonDto';
|
|
156
|
+
export * from './CommissionSimulationItemInput';
|
|
157
|
+
export * from './CommissionSimulationResultDto';
|
|
153
158
|
export * from './CommissionsStatsDto';
|
|
154
159
|
export * from './CompanyInformationDto';
|
|
155
160
|
export * from './CompanyTaxIdDto';
|
|
@@ -217,6 +222,7 @@ export * from './EppBatchUpdateInput';
|
|
|
217
222
|
export * from './FeatureFlagListItemDto';
|
|
218
223
|
export * from './FixedCommissionPayloadDto';
|
|
219
224
|
export * from './FixedCommissionPayloadInput';
|
|
225
|
+
export * from './FixedCommissionPayloadSimulationInput';
|
|
220
226
|
export * from './FixedCommissionReasonPayloadDto';
|
|
221
227
|
export * from './ForgotPasswordRequestInput';
|
|
222
228
|
export * from './GetAccountChallengeRewardUsagesListDto';
|
|
@@ -384,6 +390,7 @@ export * from './RequestEmailOtpInput';
|
|
|
384
390
|
export * from './RequestUserEmailChangeOtpInput';
|
|
385
391
|
export * from './SalesCountCommissionPayloadDto';
|
|
386
392
|
export * from './SalesCountCommissionPayloadInput';
|
|
393
|
+
export * from './SalesCountCommissionPayloadSimulationInput';
|
|
387
394
|
export * from './SalesCountCommissionReasonPayloadDto';
|
|
388
395
|
export * from './SeBankAccountDetails';
|
|
389
396
|
export * from './SellerAccountReferralListItemDto';
|
|
@@ -423,6 +430,7 @@ export * from './SepaBankAccountDetails';
|
|
|
423
430
|
export * from './SetDomainTransferConfirmationInput';
|
|
424
431
|
export * from './SetNewPasswordInput';
|
|
425
432
|
export * from './SetPayoutProviderInput';
|
|
433
|
+
export * from './SimulateCommissionInput';
|
|
426
434
|
export * from './StartAuctionInput';
|
|
427
435
|
export * from './StateDto';
|
|
428
436
|
export * from './StatsFilterInputDateRange';
|