@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.
Files changed (64) hide show
  1. package/.openapi-generator/FILES +8 -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 +30 -3
  6. package/dist/apis/AdminApi.js +117 -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/ChangeInvoiceStatusInput.d.ts +42 -0
  15. package/dist/models/ChangeInvoiceStatusInput.js +61 -0
  16. package/dist/models/CommissionConfigurationSimulationInput.d.ts +33 -0
  17. package/dist/models/CommissionConfigurationSimulationInput.js +52 -0
  18. package/dist/models/CommissionConfigurationSimulationInputPayload.d.ts +27 -0
  19. package/dist/models/CommissionConfigurationSimulationInputPayload.js +54 -0
  20. package/dist/models/CommissionDto.d.ts +12 -0
  21. package/dist/models/CommissionDto.js +8 -0
  22. package/dist/models/CommissionFactor.d.ts +1 -1
  23. package/dist/models/CommissionFactor.js +1 -1
  24. package/dist/models/CommissionPayloadInput.d.ts +12 -0
  25. package/dist/models/CommissionPayloadInput.js +4 -0
  26. package/dist/models/CommissionReasonDto.d.ts +33 -0
  27. package/dist/models/CommissionReasonDto.js +17 -1
  28. package/dist/models/CommissionSimulationItemInput.d.ts +123 -0
  29. package/dist/models/CommissionSimulationItemInput.js +113 -0
  30. package/dist/models/CommissionSimulationResultDto.d.ts +39 -0
  31. package/dist/models/CommissionSimulationResultDto.js +56 -0
  32. package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +39 -0
  33. package/dist/models/FixedCommissionPayloadSimulationInput.js +56 -0
  34. package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +1 -1
  35. package/dist/models/MozMetrics.d.ts +6 -0
  36. package/dist/models/MozMetrics.js +4 -0
  37. package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +40 -0
  38. package/dist/models/SalesCountCommissionPayloadSimulationInput.js +57 -0
  39. package/dist/models/SimulateCommissionInput.d.ts +67 -0
  40. package/dist/models/SimulateCommissionInput.js +78 -0
  41. package/dist/models/index.d.ts +8 -0
  42. package/dist/models/index.js +8 -0
  43. package/package.json +1 -1
  44. package/src/apis/AccountsApi.ts +2 -2
  45. package/src/apis/AdminApi.ts +118 -2
  46. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +9 -0
  47. package/src/models/AccountNameshiftCommissionByTypeDto.ts +2 -2
  48. package/src/models/AccountNameshiftCommissionItemDto.ts +18 -0
  49. package/src/models/AccountNameshiftCommissionReasonDto.ts +26 -0
  50. package/src/models/ChangeInvoiceStatusInput.ts +79 -0
  51. package/src/models/CommissionConfigurationSimulationInput.ts +74 -0
  52. package/src/models/CommissionConfigurationSimulationInputPayload.ts +73 -0
  53. package/src/models/CommissionDto.ts +18 -0
  54. package/src/models/CommissionFactor.ts +1 -1
  55. package/src/models/CommissionPayloadInput.ts +16 -0
  56. package/src/models/CommissionReasonDto.ts +42 -0
  57. package/src/models/CommissionSimulationItemInput.ts +202 -0
  58. package/src/models/CommissionSimulationResultDto.ts +83 -0
  59. package/src/models/FixedCommissionPayloadSimulationInput.ts +85 -0
  60. package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +1 -1
  61. package/src/models/MozMetrics.ts +9 -0
  62. package/src/models/SalesCountCommissionPayloadSimulationInput.ts +92 -0
  63. package/src/models/SimulateCommissionInput.ts +123 -0
  64. package/src/models/index.ts +8 -0
@@ -88,6 +88,18 @@ export interface CommissionReasonDto {
88
88
  * @memberof CommissionReasonDto
89
89
  */
90
90
  excludedAccountIds?: Array<string>;
91
+ /**
92
+ * Domain extensions this commission applies to. When empty, the commission applies to all extensions.
93
+ * @type {Array<string>}
94
+ * @memberof CommissionReasonDto
95
+ */
96
+ tlds?: Array<string>;
97
+ /**
98
+ * Domain extensions excluded from this commission.
99
+ * @type {Array<string>}
100
+ * @memberof CommissionReasonDto
101
+ */
102
+ excludedTlds?: Array<string>;
91
103
  /**
92
104
  * Selected commission percentage value.
93
105
  * @type {number}
@@ -106,6 +118,18 @@ export interface CommissionReasonDto {
106
118
  * @memberof CommissionReasonDto
107
119
  */
108
120
  factorCountResult?: number | null;
121
+ /**
122
+ * How the commission was selected for the domain extension.
123
+ * @type {string}
124
+ * @memberof CommissionReasonDto
125
+ */
126
+ tldMatchType?: CommissionReasonDtoTldMatchTypeEnum;
127
+ /**
128
+ * Domain extension used to select the commission, if any.
129
+ * @type {string}
130
+ * @memberof CommissionReasonDto
131
+ */
132
+ tldMatchedValue?: string | null;
109
133
  }
110
134
 
111
135
 
@@ -129,6 +153,16 @@ export const CommissionReasonDtoSubtypeEnum = {
129
153
  } as const;
130
154
  export type CommissionReasonDtoSubtypeEnum = typeof CommissionReasonDtoSubtypeEnum[keyof typeof CommissionReasonDtoSubtypeEnum];
131
155
 
156
+ /**
157
+ * @export
158
+ */
159
+ export const CommissionReasonDtoTldMatchTypeEnum = {
160
+ NULL_TLD_DEFAULT: 'null_tld_default',
161
+ INCLUDED_TLD_LIST: 'included_tld_list',
162
+ ALL_TLDS_DEFAULT: 'all_tlds_default'
163
+ } as const;
164
+ export type CommissionReasonDtoTldMatchTypeEnum = typeof CommissionReasonDtoTldMatchTypeEnum[keyof typeof CommissionReasonDtoTldMatchTypeEnum];
165
+
132
166
 
133
167
  /**
134
168
  * Check if a given object implements the CommissionReasonDto interface.
@@ -156,9 +190,13 @@ export function CommissionReasonDtoFromJSONTyped(json: any, ignoreDiscriminator:
156
190
  'dateStart': json['dateStart'] == null ? undefined : json['dateStart'],
157
191
  'dateEnd': json['dateEnd'] == null ? undefined : json['dateEnd'],
158
192
  'excludedAccountIds': json['excludedAccountIds'] == null ? undefined : json['excludedAccountIds'],
193
+ 'tlds': json['tlds'] == null ? undefined : json['tlds'],
194
+ 'excludedTlds': json['excludedTlds'] == null ? undefined : json['excludedTlds'],
159
195
  'selectedValue': json['selectedValue'] == null ? undefined : json['selectedValue'],
160
196
  'selectedTier': json['selectedTier'] == null ? undefined : CommissionPercentageRangeDtoFromJSON(json['selectedTier']),
161
197
  'factorCountResult': json['factorCountResult'] == null ? undefined : json['factorCountResult'],
198
+ 'tldMatchType': json['tldMatchType'] == null ? undefined : json['tldMatchType'],
199
+ 'tldMatchedValue': json['tldMatchedValue'] == null ? undefined : json['tldMatchedValue'],
162
200
  };
163
201
  }
164
202
 
@@ -182,9 +220,13 @@ export function CommissionReasonDtoToJSONTyped(value?: CommissionReasonDto | nul
182
220
  'dateStart': value['dateStart'],
183
221
  'dateEnd': value['dateEnd'],
184
222
  'excludedAccountIds': value['excludedAccountIds'],
223
+ 'tlds': value['tlds'],
224
+ 'excludedTlds': value['excludedTlds'],
185
225
  'selectedValue': value['selectedValue'],
186
226
  'selectedTier': CommissionPercentageRangeDtoToJSON(value['selectedTier']),
187
227
  'factorCountResult': value['factorCountResult'],
228
+ 'tldMatchType': value['tldMatchType'],
229
+ 'tldMatchedValue': value['tldMatchedValue'],
188
230
  };
189
231
  }
190
232
 
@@ -0,0 +1,202 @@
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 { CommissionConfigurationSimulationInput } from './CommissionConfigurationSimulationInput';
17
+ import {
18
+ CommissionConfigurationSimulationInputFromJSON,
19
+ CommissionConfigurationSimulationInputFromJSONTyped,
20
+ CommissionConfigurationSimulationInputToJSON,
21
+ CommissionConfigurationSimulationInputToJSONTyped,
22
+ } from './CommissionConfigurationSimulationInput';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CommissionSimulationItemInput
28
+ */
29
+ export interface CommissionSimulationItemInput {
30
+ /**
31
+ * Commission ID.
32
+ * @type {string}
33
+ * @memberof CommissionSimulationItemInput
34
+ */
35
+ id: string;
36
+ /**
37
+ * Account ID this commission applies to, or null for global rules.
38
+ * @type {string}
39
+ * @memberof CommissionSimulationItemInput
40
+ */
41
+ account: string | null;
42
+ /**
43
+ * Commission type.
44
+ * @type {string}
45
+ * @memberof CommissionSimulationItemInput
46
+ */
47
+ type: CommissionSimulationItemInputTypeEnum;
48
+ /**
49
+ * Commission subtype.
50
+ * @type {string}
51
+ * @memberof CommissionSimulationItemInput
52
+ */
53
+ subtype: CommissionSimulationItemInputSubtypeEnum;
54
+ /**
55
+ * Commission label.
56
+ * @type {string}
57
+ * @memberof CommissionSimulationItemInput
58
+ */
59
+ label: string;
60
+ /**
61
+ * Commission configuration, or null.
62
+ * @type {CommissionConfigurationSimulationInput}
63
+ * @memberof CommissionSimulationItemInput
64
+ */
65
+ config: CommissionConfigurationSimulationInput | null;
66
+ /**
67
+ * Commission effective start date.
68
+ * @type {Date}
69
+ * @memberof CommissionSimulationItemInput
70
+ */
71
+ dateStart: Date;
72
+ /**
73
+ * Commission effective end date, or null.
74
+ * @type {Date}
75
+ * @memberof CommissionSimulationItemInput
76
+ */
77
+ dateEnd: Date | null;
78
+ /**
79
+ * Account IDs excluded from this commission.
80
+ * @type {Array<string>}
81
+ * @memberof CommissionSimulationItemInput
82
+ */
83
+ excludedAccountIds: Array<string>;
84
+ /**
85
+ * Domain extensions this commission applies to. When empty, the commission applies to all extensions.
86
+ * @type {Array<string>}
87
+ * @memberof CommissionSimulationItemInput
88
+ */
89
+ tlds: Array<string>;
90
+ /**
91
+ * Domain extensions excluded from this commission.
92
+ * @type {Array<string>}
93
+ * @memberof CommissionSimulationItemInput
94
+ */
95
+ excludedTlds: Array<string>;
96
+ /**
97
+ * Commission creation date.
98
+ * @type {Date}
99
+ * @memberof CommissionSimulationItemInput
100
+ */
101
+ createdAt?: Date | null;
102
+ /**
103
+ * Commission last update date.
104
+ * @type {Date}
105
+ * @memberof CommissionSimulationItemInput
106
+ */
107
+ updatedAt?: Date | null;
108
+ }
109
+
110
+
111
+ /**
112
+ * @export
113
+ */
114
+ export const CommissionSimulationItemInputTypeEnum = {
115
+ NAMESHIFT_COMMISSIONS: 'nameshift_commissions',
116
+ AFFILIATE_COMMISSIONS: 'affiliate_commissions'
117
+ } as const;
118
+ export type CommissionSimulationItemInputTypeEnum = typeof CommissionSimulationItemInputTypeEnum[keyof typeof CommissionSimulationItemInputTypeEnum];
119
+
120
+ /**
121
+ * @export
122
+ */
123
+ export const CommissionSimulationItemInputSubtypeEnum = {
124
+ POINTING: 'pointing',
125
+ NOT_POINTING: 'not_pointing',
126
+ MANUAL_LEAD: 'manual_lead',
127
+ AUCTION: 'auction'
128
+ } as const;
129
+ export type CommissionSimulationItemInputSubtypeEnum = typeof CommissionSimulationItemInputSubtypeEnum[keyof typeof CommissionSimulationItemInputSubtypeEnum];
130
+
131
+
132
+ /**
133
+ * Check if a given object implements the CommissionSimulationItemInput interface.
134
+ */
135
+ export function instanceOfCommissionSimulationItemInput(value: object): value is CommissionSimulationItemInput {
136
+ if (!('id' in value) || value['id'] === undefined) return false;
137
+ if (!('account' in value) || value['account'] === undefined) return false;
138
+ if (!('type' in value) || value['type'] === undefined) return false;
139
+ if (!('subtype' in value) || value['subtype'] === undefined) return false;
140
+ if (!('label' in value) || value['label'] === undefined) return false;
141
+ if (!('config' in value) || value['config'] === undefined) return false;
142
+ if (!('dateStart' in value) || value['dateStart'] === undefined) return false;
143
+ if (!('dateEnd' in value) || value['dateEnd'] === undefined) return false;
144
+ if (!('excludedAccountIds' in value) || value['excludedAccountIds'] === undefined) return false;
145
+ if (!('tlds' in value) || value['tlds'] === undefined) return false;
146
+ if (!('excludedTlds' in value) || value['excludedTlds'] === undefined) return false;
147
+ return true;
148
+ }
149
+
150
+ export function CommissionSimulationItemInputFromJSON(json: any): CommissionSimulationItemInput {
151
+ return CommissionSimulationItemInputFromJSONTyped(json, false);
152
+ }
153
+
154
+ export function CommissionSimulationItemInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionSimulationItemInput {
155
+ if (json == null) {
156
+ return json;
157
+ }
158
+ return {
159
+
160
+ 'id': json['id'],
161
+ 'account': json['account'],
162
+ 'type': json['type'],
163
+ 'subtype': json['subtype'],
164
+ 'label': json['label'],
165
+ 'config': CommissionConfigurationSimulationInputFromJSON(json['config']),
166
+ 'dateStart': (new Date(json['dateStart'])),
167
+ 'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
168
+ 'excludedAccountIds': json['excludedAccountIds'],
169
+ 'tlds': json['tlds'],
170
+ 'excludedTlds': json['excludedTlds'],
171
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
172
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
173
+ };
174
+ }
175
+
176
+ export function CommissionSimulationItemInputToJSON(json: any): CommissionSimulationItemInput {
177
+ return CommissionSimulationItemInputToJSONTyped(json, false);
178
+ }
179
+
180
+ export function CommissionSimulationItemInputToJSONTyped(value?: CommissionSimulationItemInput | null, ignoreDiscriminator: boolean = false): any {
181
+ if (value == null) {
182
+ return value;
183
+ }
184
+
185
+ return {
186
+
187
+ 'id': value['id'],
188
+ 'account': value['account'],
189
+ 'type': value['type'],
190
+ 'subtype': value['subtype'],
191
+ 'label': value['label'],
192
+ 'config': CommissionConfigurationSimulationInputToJSON(value['config']),
193
+ 'dateStart': ((value['dateStart']).toISOString()),
194
+ 'dateEnd': (value['dateEnd'] == null ? null : (value['dateEnd'] as any).toISOString()),
195
+ 'excludedAccountIds': value['excludedAccountIds'],
196
+ 'tlds': value['tlds'],
197
+ 'excludedTlds': value['excludedTlds'],
198
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt'] as any).toISOString()),
199
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()),
200
+ };
201
+ }
202
+
@@ -0,0 +1,83 @@
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 { CommissionReasonDto } from './CommissionReasonDto';
17
+ import {
18
+ CommissionReasonDtoFromJSON,
19
+ CommissionReasonDtoFromJSONTyped,
20
+ CommissionReasonDtoToJSON,
21
+ CommissionReasonDtoToJSONTyped,
22
+ } from './CommissionReasonDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CommissionSimulationResultDto
28
+ */
29
+ export interface CommissionSimulationResultDto {
30
+ /**
31
+ * Resolved commission percentage for the given scenario.
32
+ * @type {number}
33
+ * @memberof CommissionSimulationResultDto
34
+ */
35
+ percentage: number;
36
+ /**
37
+ * Commission selection reason.
38
+ * @type {CommissionReasonDto}
39
+ * @memberof CommissionSimulationResultDto
40
+ */
41
+ reason: CommissionReasonDto | null;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the CommissionSimulationResultDto interface.
46
+ */
47
+ export function instanceOfCommissionSimulationResultDto(value: object): value is CommissionSimulationResultDto {
48
+ if (!('percentage' in value) || value['percentage'] === undefined) return false;
49
+ if (!('reason' in value) || value['reason'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function CommissionSimulationResultDtoFromJSON(json: any): CommissionSimulationResultDto {
54
+ return CommissionSimulationResultDtoFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function CommissionSimulationResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionSimulationResultDto {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'percentage': json['percentage'],
64
+ 'reason': CommissionReasonDtoFromJSON(json['reason']),
65
+ };
66
+ }
67
+
68
+ export function CommissionSimulationResultDtoToJSON(json: any): CommissionSimulationResultDto {
69
+ return CommissionSimulationResultDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function CommissionSimulationResultDtoToJSONTyped(value?: CommissionSimulationResultDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'percentage': value['percentage'],
80
+ 'reason': CommissionReasonDtoToJSON(value['reason']),
81
+ };
82
+ }
83
+
@@ -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
+