@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
@@ -0,0 +1,84 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface PopularCategoryDto
20
+ */
21
+ export interface PopularCategoryDto {
22
+ /**
23
+ * Category ID.
24
+ * @type {string}
25
+ * @memberof PopularCategoryDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Category name.
30
+ * @type {string}
31
+ * @memberof PopularCategoryDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * Number of domains linked to the category.
36
+ * @type {number}
37
+ * @memberof PopularCategoryDto
38
+ */
39
+ domainCount: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PopularCategoryDto interface.
44
+ */
45
+ export function instanceOfPopularCategoryDto(value: object): value is PopularCategoryDto {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('domainCount' in value) || value['domainCount'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function PopularCategoryDtoFromJSON(json: any): PopularCategoryDto {
53
+ return PopularCategoryDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function PopularCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PopularCategoryDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'name': json['name'],
64
+ 'domainCount': json['domainCount'],
65
+ };
66
+ }
67
+
68
+ export function PopularCategoryDtoToJSON(json: any): PopularCategoryDto {
69
+ return PopularCategoryDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function PopularCategoryDtoToJSONTyped(value?: PopularCategoryDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'id': value['id'],
80
+ 'name': value['name'],
81
+ 'domainCount': value['domainCount'],
82
+ };
83
+ }
84
+
@@ -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
+
@@ -142,6 +142,12 @@ export interface SellerLeadDetails {
142
142
  * @memberof SellerLeadDetails
143
143
  */
144
144
  unreadSellerMessagesNumber: number;
145
+ /**
146
+ * Maximum number of consecutive messages one side can send before waiting for a reply.
147
+ * @type {number}
148
+ * @memberof SellerLeadDetails
149
+ */
150
+ messagesInRowLimit: number;
145
151
  /**
146
152
  * URL for completing order payment, if available.
147
153
  * @type {string}
@@ -290,6 +296,7 @@ export function instanceOfSellerLeadDetails(value: object): value is SellerLeadD
290
296
  if (!('domain' in value) || value['domain'] === undefined) return false;
291
297
  if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
292
298
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
299
+ if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined) return false;
293
300
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
294
301
  if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
295
302
  if (!('manualType' in value) || value['manualType'] === undefined) return false;
@@ -328,6 +335,7 @@ export function SellerLeadDetailsFromJSONTyped(json: any, ignoreDiscriminator: b
328
335
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON(json['domain']),
329
336
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
330
337
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
338
+ 'messagesInRowLimit': json['messagesInRowLimit'],
331
339
  'orderPaymentUrl': json['orderPaymentUrl'],
332
340
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
333
341
  'manualType': json['manualType'],
@@ -367,6 +375,7 @@ export function SellerLeadDetailsToJSONTyped(value?: SellerLeadDetails | null, i
367
375
  'domain': IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON(value['domain']),
368
376
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
369
377
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
378
+ 'messagesInRowLimit': value['messagesInRowLimit'],
370
379
  'orderPaymentUrl': value['orderPaymentUrl'],
371
380
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
372
381
  'manualType': value['manualType'],
@@ -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';
@@ -351,6 +356,7 @@ export * from './PartnerAuctionDto';
351
356
  export * from './PartnerDomainFindDto';
352
357
  export * from './PayAccountPaymentInput';
353
358
  export * from './PaymentMethodsStatsDto';
359
+ export * from './PopularCategoryDto';
354
360
  export * from './PrivateAccountGetMeResponse';
355
361
  export * from './PublicAccountInformationDto';
356
362
  export * from './PublicAuctionListItemDto';
@@ -385,6 +391,7 @@ export * from './RequestEmailOtpInput';
385
391
  export * from './RequestUserEmailChangeOtpInput';
386
392
  export * from './SalesCountCommissionPayloadDto';
387
393
  export * from './SalesCountCommissionPayloadInput';
394
+ export * from './SalesCountCommissionPayloadSimulationInput';
388
395
  export * from './SalesCountCommissionReasonPayloadDto';
389
396
  export * from './SeBankAccountDetails';
390
397
  export * from './SellerAccountReferralListItemDto';
@@ -424,6 +431,7 @@ export * from './SepaBankAccountDetails';
424
431
  export * from './SetDomainTransferConfirmationInput';
425
432
  export * from './SetNewPasswordInput';
426
433
  export * from './SetPayoutProviderInput';
434
+ export * from './SimulateCommissionInput';
427
435
  export * from './StartAuctionInput';
428
436
  export * from './StateDto';
429
437
  export * from './StatsFilterInputDateRange';