@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.
Files changed (61) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +2 -2
  4. package/dist/apis/AccountsApi.js +2 -2
  5. package/dist/apis/AdminApi.d.ts +16 -3
  6. package/dist/apis/AdminApi.js +59 -2
  7. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +6 -0
  8. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +4 -0
  9. package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +2 -2
  10. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +12 -0
  11. package/dist/models/AccountNameshiftCommissionItemDto.js +8 -0
  12. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +21 -0
  13. package/dist/models/AccountNameshiftCommissionReasonDto.js +13 -1
  14. package/dist/models/CommissionConfigurationSimulationInput.d.ts +33 -0
  15. package/dist/models/CommissionConfigurationSimulationInput.js +52 -0
  16. package/dist/models/CommissionConfigurationSimulationInputPayload.d.ts +27 -0
  17. package/dist/models/CommissionConfigurationSimulationInputPayload.js +54 -0
  18. package/dist/models/CommissionDto.d.ts +12 -0
  19. package/dist/models/CommissionDto.js +8 -0
  20. package/dist/models/CommissionFactor.d.ts +1 -1
  21. package/dist/models/CommissionFactor.js +1 -1
  22. package/dist/models/CommissionPayloadInput.d.ts +12 -0
  23. package/dist/models/CommissionPayloadInput.js +4 -0
  24. package/dist/models/CommissionReasonDto.d.ts +33 -0
  25. package/dist/models/CommissionReasonDto.js +17 -1
  26. package/dist/models/CommissionSimulationItemInput.d.ts +123 -0
  27. package/dist/models/CommissionSimulationItemInput.js +113 -0
  28. package/dist/models/CommissionSimulationResultDto.d.ts +39 -0
  29. package/dist/models/CommissionSimulationResultDto.js +56 -0
  30. package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +39 -0
  31. package/dist/models/FixedCommissionPayloadSimulationInput.js +56 -0
  32. package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +1 -1
  33. package/dist/models/MozMetrics.d.ts +6 -0
  34. package/dist/models/MozMetrics.js +4 -0
  35. package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +40 -0
  36. package/dist/models/SalesCountCommissionPayloadSimulationInput.js +57 -0
  37. package/dist/models/SimulateCommissionInput.d.ts +67 -0
  38. package/dist/models/SimulateCommissionInput.js +78 -0
  39. package/dist/models/index.d.ts +7 -0
  40. package/dist/models/index.js +7 -0
  41. package/package.json +1 -1
  42. package/src/apis/AccountsApi.ts +2 -2
  43. package/src/apis/AdminApi.ts +58 -2
  44. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +9 -0
  45. package/src/models/AccountNameshiftCommissionByTypeDto.ts +2 -2
  46. package/src/models/AccountNameshiftCommissionItemDto.ts +18 -0
  47. package/src/models/AccountNameshiftCommissionReasonDto.ts +26 -0
  48. package/src/models/CommissionConfigurationSimulationInput.ts +74 -0
  49. package/src/models/CommissionConfigurationSimulationInputPayload.ts +73 -0
  50. package/src/models/CommissionDto.ts +18 -0
  51. package/src/models/CommissionFactor.ts +1 -1
  52. package/src/models/CommissionPayloadInput.ts +16 -0
  53. package/src/models/CommissionReasonDto.ts +42 -0
  54. package/src/models/CommissionSimulationItemInput.ts +202 -0
  55. package/src/models/CommissionSimulationResultDto.ts +83 -0
  56. package/src/models/FixedCommissionPayloadSimulationInput.ts +85 -0
  57. package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +1 -1
  58. package/src/models/MozMetrics.ts +9 -0
  59. package/src/models/SalesCountCommissionPayloadSimulationInput.ts +92 -0
  60. package/src/models/SimulateCommissionInput.ts +123 -0
  61. package/src/models/index.ts +7 -0
@@ -0,0 +1,85 @@
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 { CommissionFactor } from './CommissionFactor';
17
+ import {
18
+ CommissionFactorFromJSON,
19
+ CommissionFactorFromJSONTyped,
20
+ CommissionFactorToJSON,
21
+ CommissionFactorToJSONTyped,
22
+ } from './CommissionFactor';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface FixedCommissionPayloadSimulationInput
28
+ */
29
+ export interface FixedCommissionPayloadSimulationInput {
30
+ /**
31
+ *
32
+ * @type {CommissionFactor}
33
+ * @memberof FixedCommissionPayloadSimulationInput
34
+ */
35
+ factor: CommissionFactor;
36
+ /**
37
+ * Fixed commission percentage
38
+ * @type {number}
39
+ * @memberof FixedCommissionPayloadSimulationInput
40
+ */
41
+ value: number;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the FixedCommissionPayloadSimulationInput interface.
48
+ */
49
+ export function instanceOfFixedCommissionPayloadSimulationInput(value: object): value is FixedCommissionPayloadSimulationInput {
50
+ if (!('factor' in value) || value['factor'] === undefined) return false;
51
+ if (!('value' in value) || value['value'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function FixedCommissionPayloadSimulationInputFromJSON(json: any): FixedCommissionPayloadSimulationInput {
56
+ return FixedCommissionPayloadSimulationInputFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function FixedCommissionPayloadSimulationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): FixedCommissionPayloadSimulationInput {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'factor': CommissionFactorFromJSON(json['factor']),
66
+ 'value': json['value'],
67
+ };
68
+ }
69
+
70
+ export function FixedCommissionPayloadSimulationInputToJSON(json: any): FixedCommissionPayloadSimulationInput {
71
+ return FixedCommissionPayloadSimulationInputToJSONTyped(json, false);
72
+ }
73
+
74
+ export function FixedCommissionPayloadSimulationInputToJSONTyped(value?: FixedCommissionPayloadSimulationInput | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'factor': CommissionFactorToJSON(value['factor']),
82
+ 'value': value['value'],
83
+ };
84
+ }
85
+
@@ -41,7 +41,7 @@ export interface GetAccountNameshiftCommissionsResponseDto {
41
41
  */
42
42
  current: AccountNameshiftCommissionBySubtypePercentagesDto;
43
43
  /**
44
- * List of nameshift commissions (not expired or not yet started)
44
+ * Commission schedules for the account.
45
45
  * @type {Array<AccountNameshiftCommissionItemDto>}
46
46
  * @memberof GetAccountNameshiftCommissionsResponseDto
47
47
  */
@@ -49,6 +49,12 @@ export interface MozMetrics {
49
49
  * @memberof MozMetrics
50
50
  */
51
51
  spamScore: number | null;
52
+ /**
53
+ * Timestamp when Moz metrics were last fetched, when available.
54
+ * @type {Date}
55
+ * @memberof MozMetrics
56
+ */
57
+ updatedAt: Date | null;
52
58
  }
53
59
 
54
60
  /**
@@ -60,6 +66,7 @@ export function instanceOfMozMetrics(value: object): value is MozMetrics {
60
66
  if (!('backlinks' in value) || value['backlinks'] === undefined) return false;
61
67
  if (!('rootDomains' in value) || value['rootDomains'] === undefined) return false;
62
68
  if (!('spamScore' in value) || value['spamScore'] === undefined) return false;
69
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
63
70
  return true;
64
71
  }
65
72
 
@@ -78,6 +85,7 @@ export function MozMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean)
78
85
  'backlinks': json['backlinks'],
79
86
  'rootDomains': json['rootDomains'],
80
87
  'spamScore': json['spamScore'],
88
+ 'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
81
89
  };
82
90
  }
83
91
 
@@ -97,6 +105,7 @@ export function MozMetricsToJSONTyped(value?: MozMetrics | null, ignoreDiscrimin
97
105
  'backlinks': value['backlinks'],
98
106
  'rootDomains': value['rootDomains'],
99
107
  'spamScore': value['spamScore'],
108
+ 'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
100
109
  };
101
110
  }
102
111
 
@@ -0,0 +1,92 @@
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 { CommissionFactor } from './CommissionFactor';
17
+ import {
18
+ CommissionFactorFromJSON,
19
+ CommissionFactorFromJSONTyped,
20
+ CommissionFactorToJSON,
21
+ CommissionFactorToJSONTyped,
22
+ } from './CommissionFactor';
23
+ import type { CommissionPercentageRangeInput } from './CommissionPercentageRangeInput';
24
+ import {
25
+ CommissionPercentageRangeInputFromJSON,
26
+ CommissionPercentageRangeInputFromJSONTyped,
27
+ CommissionPercentageRangeInputToJSON,
28
+ CommissionPercentageRangeInputToJSONTyped,
29
+ } from './CommissionPercentageRangeInput';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SalesCountCommissionPayloadSimulationInput
35
+ */
36
+ export interface SalesCountCommissionPayloadSimulationInput {
37
+ /**
38
+ *
39
+ * @type {CommissionFactor}
40
+ * @memberof SalesCountCommissionPayloadSimulationInput
41
+ */
42
+ factor: CommissionFactor;
43
+ /**
44
+ * Commission tiers based on monthly sales count
45
+ * @type {Array<CommissionPercentageRangeInput>}
46
+ * @memberof SalesCountCommissionPayloadSimulationInput
47
+ */
48
+ value: Array<CommissionPercentageRangeInput>;
49
+ }
50
+
51
+
52
+
53
+ /**
54
+ * Check if a given object implements the SalesCountCommissionPayloadSimulationInput interface.
55
+ */
56
+ export function instanceOfSalesCountCommissionPayloadSimulationInput(value: object): value is SalesCountCommissionPayloadSimulationInput {
57
+ if (!('factor' in value) || value['factor'] === undefined) return false;
58
+ if (!('value' in value) || value['value'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function SalesCountCommissionPayloadSimulationInputFromJSON(json: any): SalesCountCommissionPayloadSimulationInput {
63
+ return SalesCountCommissionPayloadSimulationInputFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function SalesCountCommissionPayloadSimulationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SalesCountCommissionPayloadSimulationInput {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'factor': CommissionFactorFromJSON(json['factor']),
73
+ 'value': ((json['value'] as Array<any>).map(CommissionPercentageRangeInputFromJSON)),
74
+ };
75
+ }
76
+
77
+ export function SalesCountCommissionPayloadSimulationInputToJSON(json: any): SalesCountCommissionPayloadSimulationInput {
78
+ return SalesCountCommissionPayloadSimulationInputToJSONTyped(json, false);
79
+ }
80
+
81
+ export function SalesCountCommissionPayloadSimulationInputToJSONTyped(value?: SalesCountCommissionPayloadSimulationInput | null, ignoreDiscriminator: boolean = false): any {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+
86
+ return {
87
+
88
+ 'factor': CommissionFactorToJSON(value['factor']),
89
+ 'value': ((value['value'] as Array<any>).map(CommissionPercentageRangeInputToJSON)),
90
+ };
91
+ }
92
+
@@ -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
+
@@ -140,6 +140,8 @@ export * from './CommissionAddUpdateActionInput';
140
140
  export * from './CommissionConfigurationDto';
141
141
  export * from './CommissionConfigurationDtoPayload';
142
142
  export * from './CommissionConfigurationInput';
143
+ export * from './CommissionConfigurationSimulationInput';
144
+ export * from './CommissionConfigurationSimulationInputPayload';
143
145
  export * from './CommissionDeleteActionInput';
144
146
  export * from './CommissionDto';
145
147
  export * from './CommissionFactor';
@@ -151,6 +153,8 @@ export * from './CommissionPercentageRangeInput';
151
153
  export * from './CommissionReasonConfigDto';
152
154
  export * from './CommissionReasonConfigDtoPayload';
153
155
  export * from './CommissionReasonDto';
156
+ export * from './CommissionSimulationItemInput';
157
+ export * from './CommissionSimulationResultDto';
154
158
  export * from './CommissionsStatsDto';
155
159
  export * from './CompanyInformationDto';
156
160
  export * from './CompanyTaxIdDto';
@@ -218,6 +222,7 @@ export * from './EppBatchUpdateInput';
218
222
  export * from './FeatureFlagListItemDto';
219
223
  export * from './FixedCommissionPayloadDto';
220
224
  export * from './FixedCommissionPayloadInput';
225
+ export * from './FixedCommissionPayloadSimulationInput';
221
226
  export * from './FixedCommissionReasonPayloadDto';
222
227
  export * from './ForgotPasswordRequestInput';
223
228
  export * from './GetAccountChallengeRewardUsagesListDto';
@@ -385,6 +390,7 @@ export * from './RequestEmailOtpInput';
385
390
  export * from './RequestUserEmailChangeOtpInput';
386
391
  export * from './SalesCountCommissionPayloadDto';
387
392
  export * from './SalesCountCommissionPayloadInput';
393
+ export * from './SalesCountCommissionPayloadSimulationInput';
388
394
  export * from './SalesCountCommissionReasonPayloadDto';
389
395
  export * from './SeBankAccountDetails';
390
396
  export * from './SellerAccountReferralListItemDto';
@@ -424,6 +430,7 @@ export * from './SepaBankAccountDetails';
424
430
  export * from './SetDomainTransferConfirmationInput';
425
431
  export * from './SetNewPasswordInput';
426
432
  export * from './SetPayoutProviderInput';
433
+ export * from './SimulateCommissionInput';
427
434
  export * from './StartAuctionInput';
428
435
  export * from './StateDto';
429
436
  export * from './StatsFilterInputDateRange';