@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,123 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CommissionConfigurationSimulationInput } from './CommissionConfigurationSimulationInput';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionSimulationItemInput
17
+ */
18
+ export interface CommissionSimulationItemInput {
19
+ /**
20
+ * Commission ID.
21
+ * @type {string}
22
+ * @memberof CommissionSimulationItemInput
23
+ */
24
+ id: string;
25
+ /**
26
+ * Account ID this commission applies to, or null for global rules.
27
+ * @type {string}
28
+ * @memberof CommissionSimulationItemInput
29
+ */
30
+ account: string | null;
31
+ /**
32
+ * Commission type.
33
+ * @type {string}
34
+ * @memberof CommissionSimulationItemInput
35
+ */
36
+ type: CommissionSimulationItemInputTypeEnum;
37
+ /**
38
+ * Commission subtype.
39
+ * @type {string}
40
+ * @memberof CommissionSimulationItemInput
41
+ */
42
+ subtype: CommissionSimulationItemInputSubtypeEnum;
43
+ /**
44
+ * Commission label.
45
+ * @type {string}
46
+ * @memberof CommissionSimulationItemInput
47
+ */
48
+ label: string;
49
+ /**
50
+ * Commission configuration, or null.
51
+ * @type {CommissionConfigurationSimulationInput}
52
+ * @memberof CommissionSimulationItemInput
53
+ */
54
+ config: CommissionConfigurationSimulationInput | null;
55
+ /**
56
+ * Commission effective start date.
57
+ * @type {Date}
58
+ * @memberof CommissionSimulationItemInput
59
+ */
60
+ dateStart: Date;
61
+ /**
62
+ * Commission effective end date, or null.
63
+ * @type {Date}
64
+ * @memberof CommissionSimulationItemInput
65
+ */
66
+ dateEnd: Date | null;
67
+ /**
68
+ * Account IDs excluded from this commission.
69
+ * @type {Array<string>}
70
+ * @memberof CommissionSimulationItemInput
71
+ */
72
+ excludedAccountIds: Array<string>;
73
+ /**
74
+ * Domain extensions this commission applies to. When empty, the commission applies to all extensions.
75
+ * @type {Array<string>}
76
+ * @memberof CommissionSimulationItemInput
77
+ */
78
+ tlds: Array<string>;
79
+ /**
80
+ * Domain extensions excluded from this commission.
81
+ * @type {Array<string>}
82
+ * @memberof CommissionSimulationItemInput
83
+ */
84
+ excludedTlds: Array<string>;
85
+ /**
86
+ * Commission creation date.
87
+ * @type {Date}
88
+ * @memberof CommissionSimulationItemInput
89
+ */
90
+ createdAt?: Date | null;
91
+ /**
92
+ * Commission last update date.
93
+ * @type {Date}
94
+ * @memberof CommissionSimulationItemInput
95
+ */
96
+ updatedAt?: Date | null;
97
+ }
98
+ /**
99
+ * @export
100
+ */
101
+ export declare const CommissionSimulationItemInputTypeEnum: {
102
+ readonly NAMESHIFT_COMMISSIONS: "nameshift_commissions";
103
+ readonly AFFILIATE_COMMISSIONS: "affiliate_commissions";
104
+ };
105
+ export type CommissionSimulationItemInputTypeEnum = typeof CommissionSimulationItemInputTypeEnum[keyof typeof CommissionSimulationItemInputTypeEnum];
106
+ /**
107
+ * @export
108
+ */
109
+ export declare const CommissionSimulationItemInputSubtypeEnum: {
110
+ readonly POINTING: "pointing";
111
+ readonly NOT_POINTING: "not_pointing";
112
+ readonly MANUAL_LEAD: "manual_lead";
113
+ readonly AUCTION: "auction";
114
+ };
115
+ export type CommissionSimulationItemInputSubtypeEnum = typeof CommissionSimulationItemInputSubtypeEnum[keyof typeof CommissionSimulationItemInputSubtypeEnum];
116
+ /**
117
+ * Check if a given object implements the CommissionSimulationItemInput interface.
118
+ */
119
+ export declare function instanceOfCommissionSimulationItemInput(value: object): value is CommissionSimulationItemInput;
120
+ export declare function CommissionSimulationItemInputFromJSON(json: any): CommissionSimulationItemInput;
121
+ export declare function CommissionSimulationItemInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionSimulationItemInput;
122
+ export declare function CommissionSimulationItemInputToJSON(json: any): CommissionSimulationItemInput;
123
+ export declare function CommissionSimulationItemInputToJSONTyped(value?: CommissionSimulationItemInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CommissionSimulationItemInputSubtypeEnum = exports.CommissionSimulationItemInputTypeEnum = void 0;
17
+ exports.instanceOfCommissionSimulationItemInput = instanceOfCommissionSimulationItemInput;
18
+ exports.CommissionSimulationItemInputFromJSON = CommissionSimulationItemInputFromJSON;
19
+ exports.CommissionSimulationItemInputFromJSONTyped = CommissionSimulationItemInputFromJSONTyped;
20
+ exports.CommissionSimulationItemInputToJSON = CommissionSimulationItemInputToJSON;
21
+ exports.CommissionSimulationItemInputToJSONTyped = CommissionSimulationItemInputToJSONTyped;
22
+ var CommissionConfigurationSimulationInput_1 = require("./CommissionConfigurationSimulationInput");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.CommissionSimulationItemInputTypeEnum = {
27
+ NAMESHIFT_COMMISSIONS: 'nameshift_commissions',
28
+ AFFILIATE_COMMISSIONS: 'affiliate_commissions'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.CommissionSimulationItemInputSubtypeEnum = {
34
+ POINTING: 'pointing',
35
+ NOT_POINTING: 'not_pointing',
36
+ MANUAL_LEAD: 'manual_lead',
37
+ AUCTION: 'auction'
38
+ };
39
+ /**
40
+ * Check if a given object implements the CommissionSimulationItemInput interface.
41
+ */
42
+ function instanceOfCommissionSimulationItemInput(value) {
43
+ if (!('id' in value) || value['id'] === undefined)
44
+ return false;
45
+ if (!('account' in value) || value['account'] === undefined)
46
+ return false;
47
+ if (!('type' in value) || value['type'] === undefined)
48
+ return false;
49
+ if (!('subtype' in value) || value['subtype'] === undefined)
50
+ return false;
51
+ if (!('label' in value) || value['label'] === undefined)
52
+ return false;
53
+ if (!('config' in value) || value['config'] === undefined)
54
+ return false;
55
+ if (!('dateStart' in value) || value['dateStart'] === undefined)
56
+ return false;
57
+ if (!('dateEnd' in value) || value['dateEnd'] === undefined)
58
+ return false;
59
+ if (!('excludedAccountIds' in value) || value['excludedAccountIds'] === undefined)
60
+ return false;
61
+ if (!('tlds' in value) || value['tlds'] === undefined)
62
+ return false;
63
+ if (!('excludedTlds' in value) || value['excludedTlds'] === undefined)
64
+ return false;
65
+ return true;
66
+ }
67
+ function CommissionSimulationItemInputFromJSON(json) {
68
+ return CommissionSimulationItemInputFromJSONTyped(json, false);
69
+ }
70
+ function CommissionSimulationItemInputFromJSONTyped(json, ignoreDiscriminator) {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+ 'id': json['id'],
76
+ 'account': json['account'],
77
+ 'type': json['type'],
78
+ 'subtype': json['subtype'],
79
+ 'label': json['label'],
80
+ 'config': (0, CommissionConfigurationSimulationInput_1.CommissionConfigurationSimulationInputFromJSON)(json['config']),
81
+ 'dateStart': (new Date(json['dateStart'])),
82
+ 'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
83
+ 'excludedAccountIds': json['excludedAccountIds'],
84
+ 'tlds': json['tlds'],
85
+ 'excludedTlds': json['excludedTlds'],
86
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
87
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
88
+ };
89
+ }
90
+ function CommissionSimulationItemInputToJSON(json) {
91
+ return CommissionSimulationItemInputToJSONTyped(json, false);
92
+ }
93
+ function CommissionSimulationItemInputToJSONTyped(value, ignoreDiscriminator) {
94
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+ return {
99
+ 'id': value['id'],
100
+ 'account': value['account'],
101
+ 'type': value['type'],
102
+ 'subtype': value['subtype'],
103
+ 'label': value['label'],
104
+ 'config': (0, CommissionConfigurationSimulationInput_1.CommissionConfigurationSimulationInputToJSON)(value['config']),
105
+ 'dateStart': ((value['dateStart']).toISOString()),
106
+ 'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
107
+ 'excludedAccountIds': value['excludedAccountIds'],
108
+ 'tlds': value['tlds'],
109
+ 'excludedTlds': value['excludedTlds'],
110
+ 'createdAt': value['createdAt'] == null ? undefined : (value['createdAt'].toISOString()),
111
+ 'updatedAt': value['updatedAt'] == null ? undefined : (value['updatedAt'].toISOString()),
112
+ };
113
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CommissionReasonDto } from './CommissionReasonDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionSimulationResultDto
17
+ */
18
+ export interface CommissionSimulationResultDto {
19
+ /**
20
+ * Resolved commission percentage for the given scenario.
21
+ * @type {number}
22
+ * @memberof CommissionSimulationResultDto
23
+ */
24
+ percentage: number;
25
+ /**
26
+ * Commission selection reason.
27
+ * @type {CommissionReasonDto}
28
+ * @memberof CommissionSimulationResultDto
29
+ */
30
+ reason: CommissionReasonDto | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CommissionSimulationResultDto interface.
34
+ */
35
+ export declare function instanceOfCommissionSimulationResultDto(value: object): value is CommissionSimulationResultDto;
36
+ export declare function CommissionSimulationResultDtoFromJSON(json: any): CommissionSimulationResultDto;
37
+ export declare function CommissionSimulationResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionSimulationResultDto;
38
+ export declare function CommissionSimulationResultDtoToJSON(json: any): CommissionSimulationResultDto;
39
+ export declare function CommissionSimulationResultDtoToJSONTyped(value?: CommissionSimulationResultDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCommissionSimulationResultDto = instanceOfCommissionSimulationResultDto;
17
+ exports.CommissionSimulationResultDtoFromJSON = CommissionSimulationResultDtoFromJSON;
18
+ exports.CommissionSimulationResultDtoFromJSONTyped = CommissionSimulationResultDtoFromJSONTyped;
19
+ exports.CommissionSimulationResultDtoToJSON = CommissionSimulationResultDtoToJSON;
20
+ exports.CommissionSimulationResultDtoToJSONTyped = CommissionSimulationResultDtoToJSONTyped;
21
+ var CommissionReasonDto_1 = require("./CommissionReasonDto");
22
+ /**
23
+ * Check if a given object implements the CommissionSimulationResultDto interface.
24
+ */
25
+ function instanceOfCommissionSimulationResultDto(value) {
26
+ if (!('percentage' in value) || value['percentage'] === undefined)
27
+ return false;
28
+ if (!('reason' in value) || value['reason'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CommissionSimulationResultDtoFromJSON(json) {
33
+ return CommissionSimulationResultDtoFromJSONTyped(json, false);
34
+ }
35
+ function CommissionSimulationResultDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'percentage': json['percentage'],
41
+ 'reason': (0, CommissionReasonDto_1.CommissionReasonDtoFromJSON)(json['reason']),
42
+ };
43
+ }
44
+ function CommissionSimulationResultDtoToJSON(json) {
45
+ return CommissionSimulationResultDtoToJSONTyped(json, false);
46
+ }
47
+ function CommissionSimulationResultDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'percentage': value['percentage'],
54
+ 'reason': (0, CommissionReasonDto_1.CommissionReasonDtoToJSON)(value['reason']),
55
+ };
56
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CommissionFactor } from './CommissionFactor';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FixedCommissionPayloadSimulationInput
17
+ */
18
+ export interface FixedCommissionPayloadSimulationInput {
19
+ /**
20
+ *
21
+ * @type {CommissionFactor}
22
+ * @memberof FixedCommissionPayloadSimulationInput
23
+ */
24
+ factor: CommissionFactor;
25
+ /**
26
+ * Fixed commission percentage
27
+ * @type {number}
28
+ * @memberof FixedCommissionPayloadSimulationInput
29
+ */
30
+ value: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the FixedCommissionPayloadSimulationInput interface.
34
+ */
35
+ export declare function instanceOfFixedCommissionPayloadSimulationInput(value: object): value is FixedCommissionPayloadSimulationInput;
36
+ export declare function FixedCommissionPayloadSimulationInputFromJSON(json: any): FixedCommissionPayloadSimulationInput;
37
+ export declare function FixedCommissionPayloadSimulationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): FixedCommissionPayloadSimulationInput;
38
+ export declare function FixedCommissionPayloadSimulationInputToJSON(json: any): FixedCommissionPayloadSimulationInput;
39
+ export declare function FixedCommissionPayloadSimulationInputToJSONTyped(value?: FixedCommissionPayloadSimulationInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfFixedCommissionPayloadSimulationInput = instanceOfFixedCommissionPayloadSimulationInput;
17
+ exports.FixedCommissionPayloadSimulationInputFromJSON = FixedCommissionPayloadSimulationInputFromJSON;
18
+ exports.FixedCommissionPayloadSimulationInputFromJSONTyped = FixedCommissionPayloadSimulationInputFromJSONTyped;
19
+ exports.FixedCommissionPayloadSimulationInputToJSON = FixedCommissionPayloadSimulationInputToJSON;
20
+ exports.FixedCommissionPayloadSimulationInputToJSONTyped = FixedCommissionPayloadSimulationInputToJSONTyped;
21
+ var CommissionFactor_1 = require("./CommissionFactor");
22
+ /**
23
+ * Check if a given object implements the FixedCommissionPayloadSimulationInput interface.
24
+ */
25
+ function instanceOfFixedCommissionPayloadSimulationInput(value) {
26
+ if (!('factor' in value) || value['factor'] === undefined)
27
+ return false;
28
+ if (!('value' in value) || value['value'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function FixedCommissionPayloadSimulationInputFromJSON(json) {
33
+ return FixedCommissionPayloadSimulationInputFromJSONTyped(json, false);
34
+ }
35
+ function FixedCommissionPayloadSimulationInputFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'factor': (0, CommissionFactor_1.CommissionFactorFromJSON)(json['factor']),
41
+ 'value': json['value'],
42
+ };
43
+ }
44
+ function FixedCommissionPayloadSimulationInputToJSON(json) {
45
+ return FixedCommissionPayloadSimulationInputToJSONTyped(json, false);
46
+ }
47
+ function FixedCommissionPayloadSimulationInputToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'factor': (0, CommissionFactor_1.CommissionFactorToJSON)(value['factor']),
54
+ 'value': value['value'],
55
+ };
56
+ }
@@ -24,7 +24,7 @@ export interface GetAccountNameshiftCommissionsResponseDto {
24
24
  */
25
25
  current: AccountNameshiftCommissionBySubtypePercentagesDto;
26
26
  /**
27
- * List of nameshift commissions (not expired or not yet started)
27
+ * Commission schedules for the account.
28
28
  * @type {Array<AccountNameshiftCommissionItemDto>}
29
29
  * @memberof GetAccountNameshiftCommissionsResponseDto
30
30
  */
@@ -88,6 +88,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
88
88
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
89
89
  */
90
90
  unreadSellerMessagesNumber: number;
91
+ /**
92
+ * Maximum number of consecutive messages one side can send before waiting for a reply.
93
+ * @type {number}
94
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
95
+ */
96
+ messagesInRowLimit: number;
91
97
  /**
92
98
  * URL for completing order payment, if available.
93
99
  * @type {string}
@@ -89,6 +89,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
89
89
  return false;
90
90
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
91
91
  return false;
92
+ if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
93
+ return false;
92
94
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
93
95
  return false;
94
96
  if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
@@ -134,6 +136,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
134
136
  'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
135
137
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
136
138
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
139
+ 'messagesInRowLimit': json['messagesInRowLimit'],
137
140
  'orderPaymentUrl': json['orderPaymentUrl'],
138
141
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
139
142
  'manualType': json['manualType'],
@@ -168,6 +171,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
168
171
  'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
169
172
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
170
173
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
174
+ 'messagesInRowLimit': value['messagesInRowLimit'],
171
175
  'orderPaymentUrl': value['orderPaymentUrl'],
172
176
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
173
177
  'manualType': value['manualType'],
@@ -87,6 +87,12 @@ export interface LeadDto {
87
87
  * @memberof LeadDto
88
88
  */
89
89
  unreadSellerMessagesNumber: number;
90
+ /**
91
+ * Maximum number of consecutive messages one side can send before waiting for a reply.
92
+ * @type {number}
93
+ * @memberof LeadDto
94
+ */
95
+ messagesInRowLimit: number;
90
96
  /**
91
97
  * URL for completing order payment, if available.
92
98
  * @type {string}
@@ -88,6 +88,8 @@ function instanceOfLeadDto(value) {
88
88
  return false;
89
89
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
90
90
  return false;
91
+ if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
92
+ return false;
91
93
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
92
94
  return false;
93
95
  if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
@@ -131,6 +133,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
131
133
  'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
132
134
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
133
135
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
136
+ 'messagesInRowLimit': json['messagesInRowLimit'],
134
137
  'orderPaymentUrl': json['orderPaymentUrl'],
135
138
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
136
139
  'manualType': json['manualType'],
@@ -164,6 +167,7 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
164
167
  'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
165
168
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
166
169
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
170
+ 'messagesInRowLimit': value['messagesInRowLimit'],
167
171
  'orderPaymentUrl': value['orderPaymentUrl'],
168
172
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
169
173
  'manualType': value['manualType'],
@@ -88,6 +88,12 @@ export interface ListLeadsResultItem {
88
88
  * @memberof ListLeadsResultItem
89
89
  */
90
90
  unreadSellerMessagesNumber: number;
91
+ /**
92
+ * Maximum number of consecutive messages one side can send before waiting for a reply.
93
+ * @type {number}
94
+ * @memberof ListLeadsResultItem
95
+ */
96
+ messagesInRowLimit: number;
91
97
  /**
92
98
  * URL for completing order payment, if available.
93
99
  * @type {string}
@@ -108,6 +108,8 @@ function instanceOfListLeadsResultItem(value) {
108
108
  return false;
109
109
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
110
110
  return false;
111
+ if (!('messagesInRowLimit' in value) || value['messagesInRowLimit'] === undefined)
112
+ return false;
111
113
  if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
112
114
  return false;
113
115
  if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
@@ -167,6 +169,7 @@ function ListLeadsResultItemFromJSONTyped(json, ignoreDiscriminator) {
167
169
  'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
168
170
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
169
171
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
172
+ 'messagesInRowLimit': json['messagesInRowLimit'],
170
173
  'orderPaymentUrl': json['orderPaymentUrl'],
171
174
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
172
175
  'manualType': json['manualType'],
@@ -208,6 +211,7 @@ function ListLeadsResultItemToJSONTyped(value, ignoreDiscriminator) {
208
211
  'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
209
212
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
210
213
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
214
+ 'messagesInRowLimit': value['messagesInRowLimit'],
211
215
  'orderPaymentUrl': value['orderPaymentUrl'],
212
216
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
213
217
  'manualType': value['manualType'],
@@ -45,6 +45,12 @@ export interface MozMetrics {
45
45
  * @memberof MozMetrics
46
46
  */
47
47
  spamScore: number | null;
48
+ /**
49
+ * Timestamp when Moz metrics were last fetched, when available.
50
+ * @type {Date}
51
+ * @memberof MozMetrics
52
+ */
53
+ updatedAt: Date | null;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the MozMetrics interface.
@@ -32,6 +32,8 @@ function instanceOfMozMetrics(value) {
32
32
  return false;
33
33
  if (!('spamScore' in value) || value['spamScore'] === undefined)
34
34
  return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
35
37
  return true;
36
38
  }
37
39
  function MozMetricsFromJSON(json) {
@@ -47,6 +49,7 @@ function MozMetricsFromJSONTyped(json, ignoreDiscriminator) {
47
49
  'backlinks': json['backlinks'],
48
50
  'rootDomains': json['rootDomains'],
49
51
  'spamScore': json['spamScore'],
52
+ 'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
50
53
  };
51
54
  }
52
55
  function MozMetricsToJSON(json) {
@@ -63,5 +66,6 @@ function MozMetricsToJSONTyped(value, ignoreDiscriminator) {
63
66
  'backlinks': value['backlinks'],
64
67
  'rootDomains': value['rootDomains'],
65
68
  'spamScore': value['spamScore'],
69
+ 'updatedAt': (value['updatedAt'] == null ? null : value['updatedAt'].toISOString()),
66
70
  };
67
71
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PopularCategoryDto
16
+ */
17
+ export interface PopularCategoryDto {
18
+ /**
19
+ * Category ID.
20
+ * @type {string}
21
+ * @memberof PopularCategoryDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Category name.
26
+ * @type {string}
27
+ * @memberof PopularCategoryDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * Number of domains linked to the category.
32
+ * @type {number}
33
+ * @memberof PopularCategoryDto
34
+ */
35
+ domainCount: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PopularCategoryDto interface.
39
+ */
40
+ export declare function instanceOfPopularCategoryDto(value: object): value is PopularCategoryDto;
41
+ export declare function PopularCategoryDtoFromJSON(json: any): PopularCategoryDto;
42
+ export declare function PopularCategoryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PopularCategoryDto;
43
+ export declare function PopularCategoryDtoToJSON(json: any): PopularCategoryDto;
44
+ export declare function PopularCategoryDtoToJSONTyped(value?: PopularCategoryDto | null, ignoreDiscriminator?: boolean): any;