@randock/nameshift-api-client 0.0.445 → 0.0.447

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 (82) hide show
  1. package/.openapi-generator/FILES +9 -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/apis/MarketApi.d.ts +71 -0
  8. package/dist/apis/MarketApi.js +299 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +6 -0
  12. package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +4 -0
  13. package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +2 -2
  14. package/dist/models/AccountNameshiftCommissionItemDto.d.ts +12 -0
  15. package/dist/models/AccountNameshiftCommissionItemDto.js +8 -0
  16. package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +21 -0
  17. package/dist/models/AccountNameshiftCommissionReasonDto.js +13 -1
  18. package/dist/models/CommissionConfigurationSimulationInput.d.ts +33 -0
  19. package/dist/models/CommissionConfigurationSimulationInput.js +52 -0
  20. package/dist/models/CommissionConfigurationSimulationInputPayload.d.ts +27 -0
  21. package/dist/models/CommissionConfigurationSimulationInputPayload.js +54 -0
  22. package/dist/models/CommissionDto.d.ts +12 -0
  23. package/dist/models/CommissionDto.js +8 -0
  24. package/dist/models/CommissionFactor.d.ts +1 -1
  25. package/dist/models/CommissionFactor.js +1 -1
  26. package/dist/models/CommissionPayloadInput.d.ts +12 -0
  27. package/dist/models/CommissionPayloadInput.js +4 -0
  28. package/dist/models/CommissionReasonDto.d.ts +33 -0
  29. package/dist/models/CommissionReasonDto.js +17 -1
  30. package/dist/models/CommissionSimulationItemInput.d.ts +123 -0
  31. package/dist/models/CommissionSimulationItemInput.js +113 -0
  32. package/dist/models/CommissionSimulationResultDto.d.ts +39 -0
  33. package/dist/models/CommissionSimulationResultDto.js +56 -0
  34. package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +39 -0
  35. package/dist/models/FixedCommissionPayloadSimulationInput.js +56 -0
  36. package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +1 -1
  37. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +6 -0
  38. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +4 -0
  39. package/dist/models/LeadDto.d.ts +6 -0
  40. package/dist/models/LeadDto.js +4 -0
  41. package/dist/models/ListLeadsResultItem.d.ts +6 -0
  42. package/dist/models/ListLeadsResultItem.js +4 -0
  43. package/dist/models/MozMetrics.d.ts +6 -0
  44. package/dist/models/MozMetrics.js +4 -0
  45. package/dist/models/PopularCategoryDto.d.ts +44 -0
  46. package/dist/models/PopularCategoryDto.js +59 -0
  47. package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +40 -0
  48. package/dist/models/SalesCountCommissionPayloadSimulationInput.js +57 -0
  49. package/dist/models/SellerLeadDetails.d.ts +6 -0
  50. package/dist/models/SellerLeadDetails.js +4 -0
  51. package/dist/models/SimulateCommissionInput.d.ts +67 -0
  52. package/dist/models/SimulateCommissionInput.js +78 -0
  53. package/dist/models/index.d.ts +8 -0
  54. package/dist/models/index.js +8 -0
  55. package/package.json +1 -1
  56. package/src/apis/AccountsApi.ts +2 -2
  57. package/src/apis/AdminApi.ts +58 -2
  58. package/src/apis/MarketApi.ts +204 -0
  59. package/src/apis/index.ts +1 -0
  60. package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +9 -0
  61. package/src/models/AccountNameshiftCommissionByTypeDto.ts +2 -2
  62. package/src/models/AccountNameshiftCommissionItemDto.ts +18 -0
  63. package/src/models/AccountNameshiftCommissionReasonDto.ts +26 -0
  64. package/src/models/CommissionConfigurationSimulationInput.ts +74 -0
  65. package/src/models/CommissionConfigurationSimulationInputPayload.ts +73 -0
  66. package/src/models/CommissionDto.ts +18 -0
  67. package/src/models/CommissionFactor.ts +1 -1
  68. package/src/models/CommissionPayloadInput.ts +16 -0
  69. package/src/models/CommissionReasonDto.ts +42 -0
  70. package/src/models/CommissionSimulationItemInput.ts +202 -0
  71. package/src/models/CommissionSimulationResultDto.ts +83 -0
  72. package/src/models/FixedCommissionPayloadSimulationInput.ts +85 -0
  73. package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +1 -1
  74. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +9 -0
  75. package/src/models/LeadDto.ts +9 -0
  76. package/src/models/ListLeadsResultItem.ts +9 -0
  77. package/src/models/MozMetrics.ts +9 -0
  78. package/src/models/PopularCategoryDto.ts +84 -0
  79. package/src/models/SalesCountCommissionPayloadSimulationInput.ts +92 -0
  80. package/src/models/SellerLeadDetails.ts +9 -0
  81. package/src/models/SimulateCommissionInput.ts +123 -0
  82. 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
  */
@@ -135,6 +135,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
135
135
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
136
136
  */
137
137
  unreadSellerMessagesNumber: number;
138
+ /**
139
+ * Maximum number of consecutive messages one side can send before waiting for a reply.
140
+ * @type {number}
141
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
142
+ */
143
+ messagesInRowLimit: number;
138
144
  /**
139
145
  * URL for completing order payment, if available.
140
146
  * @type {string}
@@ -271,6 +277,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
271
277
  if (!('domain' in value) || value['domain'] === undefined) return false;
272
278
  if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
273
279
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
280
+ if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
274
281
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
275
282
  if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
276
283
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
@@ -307,6 +314,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
307
314
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
308
315
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
309
316
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
317
+ 'messagesInRowLimit': json['messagesInRowLimit'],
310
318
  'orderPaymentUrl': json['orderPaymentUrl'],
311
319
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
312
320
  'manualType': json['manualType'],
@@ -344,6 +352,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
344
352
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
345
353
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
346
354
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
355
+ 'messagesInRowLimit': value['messagesInRowLimit'],
347
356
  'orderPaymentUrl': value['orderPaymentUrl'],
348
357
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
349
358
  'manualType': value['manualType'],
@@ -128,6 +128,12 @@ export interface LeadDto {
128
128
  * @memberof LeadDto
129
129
  */
130
130
  unreadSellerMessagesNumber: number;
131
+ /**
132
+ * Maximum number of consecutive messages one side can send before waiting for a reply.
133
+ * @type {number}
134
+ * @memberof LeadDto
135
+ */
136
+ messagesInRowLimit: number;
131
137
  /**
132
138
  * URL for completing order payment, if available.
133
139
  * @type {string}
@@ -258,6 +264,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
258
264
  if (!('domain' in value) || value['domain'] === undefined) return false;
259
265
  if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
260
266
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
267
+ if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
261
268
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
262
269
  if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
263
270
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
@@ -293,6 +300,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
293
300
  'domain': LeadDomainDtoFromJSON(json['domain']),
294
301
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
295
302
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
303
+ 'messagesInRowLimit': json['messagesInRowLimit'],
296
304
  'orderPaymentUrl': json['orderPaymentUrl'],
297
305
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
298
306
  'manualType': json['manualType'],
@@ -329,6 +337,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
329
337
  'domain': LeadDomainDtoToJSON(value['domain']),
330
338
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
331
339
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
340
+ 'messagesInRowLimit': value['messagesInRowLimit'],
332
341
  'orderPaymentUrl': value['orderPaymentUrl'],
333
342
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
334
343
  'manualType': value['manualType'],
@@ -135,6 +135,12 @@ export interface ListLeadsResultItem {
135
135
  * @memberof ListLeadsResultItem
136
136
  */
137
137
  unreadSellerMessagesNumber: number;
138
+ /**
139
+ * Maximum number of consecutive messages one side can send before waiting for a reply.
140
+ * @type {number}
141
+ * @memberof ListLeadsResultItem
142
+ */
143
+ messagesInRowLimit: number;
138
144
  /**
139
145
  * URL for completing order payment, if available.
140
146
  * @type {string}
@@ -336,6 +342,7 @@ export function instanceOfListLeadsResultItem(value: object): value is ListLeads
336
342
  if (!('domain' in value) || value['domain'] === undefined) return false;
337
343
  if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
338
344
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
345
+ if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
339
346
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
340
347
  if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
341
348
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
@@ -379,6 +386,7 @@ export function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator:
379
386
  'domain': LeadDomainDtoFromJSON(json['domain']),
380
387
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
381
388
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
389
+ 'messagesInRowLimit': json['messagesInRowLimit'],
382
390
  'orderPaymentUrl': json['orderPaymentUrl'],
383
391
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
384
392
  'manualType': json['manualType'],
@@ -423,6 +431,7 @@ export function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | nul
423
431
  'domain': LeadDomainDtoToJSON(value['domain']),
424
432
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
425
433
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
434
+ 'messagesInRowLimit': value['messagesInRowLimit'],
426
435
  'orderPaymentUrl': value['orderPaymentUrl'],
427
436
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
428
437
  'manualType': value['manualType'],
@@ -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