@randock/nameshift-api-client 0.0.88 → 0.0.90

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 (105) hide show
  1. package/.openapi-generator/FILES +9 -11
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/dist/apis/BuyersApi.d.ts +84 -1
  5. package/dist/apis/BuyersApi.js +390 -0
  6. package/dist/apis/LeadsApi.d.ts +13 -1
  7. package/dist/apis/LeadsApi.js +56 -0
  8. package/dist/models/AccountSettingsInput.d.ts +3 -3
  9. package/dist/models/AccountSettingsInput.js +3 -3
  10. package/dist/models/BatchReadBuyerLeadMessageInput.d.ts +31 -0
  11. package/dist/models/BatchReadBuyerLeadMessageInput.js +46 -0
  12. package/dist/models/BatchReadSellerLeadMessageInput.d.ts +31 -0
  13. package/dist/models/BatchReadSellerLeadMessageInput.js +46 -0
  14. package/dist/models/BuyerLeadListItemDomainDto.d.ts +43 -0
  15. package/dist/models/BuyerLeadListItemDomainDto.js +54 -0
  16. package/dist/models/BuyerLeadListItemDto.d.ts +84 -0
  17. package/dist/models/BuyerLeadListItemDto.js +88 -0
  18. package/dist/models/CreateBuyerLeadMessageInput.d.ts +31 -0
  19. package/dist/models/CreateBuyerLeadMessageInput.js +46 -0
  20. package/dist/models/DomainTransferDetailsDto.d.ts +4 -4
  21. package/dist/models/DomainTransferDetailsDto.js +3 -3
  22. package/dist/models/DomainTransferDto.d.ts +4 -4
  23. package/dist/models/DomainTransferDto.js +3 -3
  24. package/dist/models/GetBuyerLeads200Response.d.ts +46 -0
  25. package/dist/models/GetBuyerLeads200Response.js +57 -0
  26. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -8
  27. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -6
  28. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +5 -5
  29. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +3 -3
  30. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +18 -9
  31. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +13 -6
  32. package/dist/models/LeadDomainDto.d.ts +43 -0
  33. package/dist/models/{DomainTransferDtoAgent.js → LeadDomainDto.js} +14 -10
  34. package/dist/models/LeadDto.d.ts +84 -0
  35. package/dist/models/LeadDto.js +88 -0
  36. package/dist/models/LeadMessageDto.d.ts +24 -10
  37. package/dist/models/LeadMessageDto.js +16 -6
  38. package/dist/models/OrderListItemDto.d.ts +4 -4
  39. package/dist/models/OrderListItemDto.js +3 -3
  40. package/dist/models/PublicLeadDto.d.ts +4 -4
  41. package/dist/models/PublicLeadDto.js +3 -3
  42. package/dist/models/PutBuyerLeadOfferInput.d.ts +32 -0
  43. package/dist/models/PutBuyerLeadOfferInput.js +47 -0
  44. package/dist/models/SellerDomainTransferDto.d.ts +4 -4
  45. package/dist/models/SellerDomainTransferDto.js +3 -3
  46. package/dist/models/UpdateDomainInput.d.ts +5 -5
  47. package/dist/models/UpdateDomainInput.js +5 -5
  48. package/dist/models/index.d.ts +9 -11
  49. package/dist/models/index.js +9 -11
  50. package/package.json +1 -1
  51. package/src/apis/BuyersApi.ts +378 -0
  52. package/src/apis/LeadsApi.ts +61 -0
  53. package/src/models/AccountSettingsInput.ts +9 -9
  54. package/src/models/BatchReadBuyerLeadMessageInput.ts +61 -0
  55. package/src/models/BatchReadSellerLeadMessageInput.ts +61 -0
  56. package/src/models/BuyerLeadListItemDomainDto.ts +79 -0
  57. package/src/models/BuyerLeadListItemDto.ts +144 -0
  58. package/src/models/CreateBuyerLeadMessageInput.ts +61 -0
  59. package/src/models/DomainTransferDetailsDto.ts +11 -11
  60. package/src/models/DomainTransferDto.ts +10 -10
  61. package/src/models/GetBuyerLeads200Response.ts +98 -0
  62. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +15 -21
  63. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +11 -11
  64. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +38 -21
  65. package/src/models/LeadDomainDto.ts +79 -0
  66. package/src/models/LeadDto.ts +144 -0
  67. package/src/models/LeadMessageDto.ts +39 -19
  68. package/src/models/OrderListItemDto.ts +11 -11
  69. package/src/models/PublicLeadDto.ts +10 -10
  70. package/src/models/PutBuyerLeadOfferInput.ts +68 -0
  71. package/src/models/SellerDomainTransferDto.ts +10 -10
  72. package/src/models/UpdateDomainInput.ts +13 -13
  73. package/src/models/index.ts +9 -11
  74. package/dist/models/DomainTransferDetailsDtoAuthCode.d.ts +0 -37
  75. package/dist/models/DomainTransferDetailsDtoAuthCode.js +0 -50
  76. package/dist/models/DomainTransferDtoAgent.d.ts +0 -37
  77. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.d.ts +0 -37
  78. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.js +0 -50
  79. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.d.ts +0 -37
  80. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.js +0 -50
  81. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +0 -32
  82. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +0 -47
  83. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +0 -37
  84. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +0 -50
  85. package/dist/models/LeadMessageDtoData.d.ts +0 -32
  86. package/dist/models/LeadMessageDtoData.js +0 -47
  87. package/dist/models/MoneyInput.d.ts +0 -37
  88. package/dist/models/MoneyInput.js +0 -50
  89. package/dist/models/OrderListItemDtoBasePrice.d.ts +0 -37
  90. package/dist/models/OrderListItemDtoBasePrice.js +0 -50
  91. package/dist/models/PublicLeadDtoLastOffer.d.ts +0 -37
  92. package/dist/models/PublicLeadDtoLastOffer.js +0 -50
  93. package/dist/models/SellerDomainTransferDtoAuthCode.d.ts +0 -37
  94. package/dist/models/SellerDomainTransferDtoAuthCode.js +0 -50
  95. package/src/models/DomainTransferDetailsDtoAuthCode.ts +0 -70
  96. package/src/models/DomainTransferDtoAgent.ts +0 -70
  97. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.ts +0 -70
  98. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.ts +0 -70
  99. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +0 -68
  100. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +0 -70
  101. package/src/models/LeadMessageDtoData.ts +0 -68
  102. package/src/models/MoneyInput.ts +0 -70
  103. package/src/models/OrderListItemDtoBasePrice.ts +0 -70
  104. package/src/models/PublicLeadDtoLastOffer.ts +0 -70
  105. package/src/models/SellerDomainTransferDtoAuthCode.ts +0 -70
@@ -18,10 +18,10 @@ exports.instanceOfDomainTransferDetailsDto = instanceOfDomainTransferDetailsDto;
18
18
  exports.DomainTransferDetailsDtoFromJSON = DomainTransferDetailsDtoFromJSON;
19
19
  exports.DomainTransferDetailsDtoFromJSONTyped = DomainTransferDetailsDtoFromJSONTyped;
20
20
  exports.DomainTransferDetailsDtoToJSON = DomainTransferDetailsDtoToJSON;
21
- var DomainTransferDetailsDtoAuthCode_1 = require("./DomainTransferDetailsDtoAuthCode");
22
21
  var DomainTransferDetailsOrderDto_1 = require("./DomainTransferDetailsOrderDto");
23
22
  var DomainTransferDetailsValidationDto_1 = require("./DomainTransferDetailsValidationDto");
24
23
  var DomainTransferDetailWorkflowStepDto_1 = require("./DomainTransferDetailWorkflowStepDto");
24
+ var DomainTransferDetailsAuthCodeDto_1 = require("./DomainTransferDetailsAuthCodeDto");
25
25
  var DomainTransferDetailsDomainDto_1 = require("./DomainTransferDetailsDomainDto");
26
26
  /**
27
27
  * @export
@@ -70,7 +70,7 @@ function DomainTransferDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
70
70
  'domain': (0, DomainTransferDetailsDomainDto_1.DomainTransferDetailsDomainDtoFromJSON)(json['domain']),
71
71
  'order': (0, DomainTransferDetailsOrderDto_1.DomainTransferDetailsOrderDtoFromJSON)(json['order']),
72
72
  'status': json['status'],
73
- 'authCode': (0, DomainTransferDetailsDtoAuthCode_1.DomainTransferDetailsDtoAuthCodeFromJSON)(json['authCode']),
73
+ 'authCode': (0, DomainTransferDetailsAuthCodeDto_1.DomainTransferDetailsAuthCodeDtoFromJSON)(json['authCode']),
74
74
  'validations': (json['validations'].map(DomainTransferDetailsValidationDto_1.DomainTransferDetailsValidationDtoFromJSON)),
75
75
  'createdAt': (new Date(json['createdAt'])),
76
76
  'workflow': (json['workflow'].map(DomainTransferDetailWorkflowStepDto_1.DomainTransferDetailWorkflowStepDtoFromJSON)),
@@ -86,7 +86,7 @@ function DomainTransferDetailsDtoToJSON(value) {
86
86
  'domain': (0, DomainTransferDetailsDomainDto_1.DomainTransferDetailsDomainDtoToJSON)(value['domain']),
87
87
  'order': (0, DomainTransferDetailsOrderDto_1.DomainTransferDetailsOrderDtoToJSON)(value['order']),
88
88
  'status': value['status'],
89
- 'authCode': (0, DomainTransferDetailsDtoAuthCode_1.DomainTransferDetailsDtoAuthCodeToJSON)(value['authCode']),
89
+ 'authCode': (0, DomainTransferDetailsAuthCodeDto_1.DomainTransferDetailsAuthCodeDtoToJSON)(value['authCode']),
90
90
  'validations': (value['validations'].map(DomainTransferDetailsValidationDto_1.DomainTransferDetailsValidationDtoToJSON)),
91
91
  'createdAt': ((value['createdAt']).toISOString()),
92
92
  'workflow': (value['workflow'].map(DomainTransferDetailWorkflowStepDto_1.DomainTransferDetailWorkflowStepDtoToJSON)),
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { DomainTransferDomainDto } from './DomainTransferDomainDto';
13
13
  import type { DomainTransferOrderDto } from './DomainTransferOrderDto';
14
- import type { DomainTransferDtoAgent } from './DomainTransferDtoAgent';
14
+ import type { DomainTransferAgentDto } from './DomainTransferAgentDto';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -43,11 +43,11 @@ export interface DomainTransferDto {
43
43
  */
44
44
  order: DomainTransferOrderDto;
45
45
  /**
46
- *
47
- * @type {DomainTransferDtoAgent}
46
+ * The domain transfer order
47
+ * @type {DomainTransferAgentDto}
48
48
  * @memberof DomainTransferDto
49
49
  */
50
- agent: DomainTransferDtoAgent | null;
50
+ agent: DomainTransferAgentDto | null;
51
51
  /**
52
52
  * The domain transfer creation date
53
53
  * @type {Date}
@@ -20,7 +20,7 @@ exports.DomainTransferDtoFromJSONTyped = DomainTransferDtoFromJSONTyped;
20
20
  exports.DomainTransferDtoToJSON = DomainTransferDtoToJSON;
21
21
  var DomainTransferDomainDto_1 = require("./DomainTransferDomainDto");
22
22
  var DomainTransferOrderDto_1 = require("./DomainTransferOrderDto");
23
- var DomainTransferDtoAgent_1 = require("./DomainTransferDtoAgent");
23
+ var DomainTransferAgentDto_1 = require("./DomainTransferAgentDto");
24
24
  /**
25
25
  * @export
26
26
  */
@@ -61,7 +61,7 @@ function DomainTransferDtoFromJSONTyped(json, ignoreDiscriminator) {
61
61
  'domain': (0, DomainTransferDomainDto_1.DomainTransferDomainDtoFromJSON)(json['domain']),
62
62
  'status': json['status'],
63
63
  'order': (0, DomainTransferOrderDto_1.DomainTransferOrderDtoFromJSON)(json['order']),
64
- 'agent': (0, DomainTransferDtoAgent_1.DomainTransferDtoAgentFromJSON)(json['agent']),
64
+ 'agent': (0, DomainTransferAgentDto_1.DomainTransferAgentDtoFromJSON)(json['agent']),
65
65
  'createdAt': (new Date(json['createdAt'])),
66
66
  };
67
67
  }
@@ -74,7 +74,7 @@ function DomainTransferDtoToJSON(value) {
74
74
  'domain': (0, DomainTransferDomainDto_1.DomainTransferDomainDtoToJSON)(value['domain']),
75
75
  'status': value['status'],
76
76
  'order': (0, DomainTransferOrderDto_1.DomainTransferOrderDtoToJSON)(value['order']),
77
- 'agent': (0, DomainTransferDtoAgent_1.DomainTransferDtoAgentToJSON)(value['agent']),
77
+ 'agent': (0, DomainTransferAgentDto_1.DomainTransferAgentDtoToJSON)(value['agent']),
78
78
  'createdAt': ((value['createdAt']).toISOString()),
79
79
  };
80
80
  }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { BuyerLeadListItemDto } from './BuyerLeadListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetBuyerLeads200Response
19
+ */
20
+ export interface GetBuyerLeads200Response {
21
+ /**
22
+ *
23
+ * @type {Array<BuyerLeadListItemDto>}
24
+ * @memberof GetBuyerLeads200Response
25
+ */
26
+ data: Array<BuyerLeadListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetBuyerLeads200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetBuyerLeads200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetBuyerLeads200Response interface.
42
+ */
43
+ export declare function instanceOfGetBuyerLeads200Response(value: object): value is GetBuyerLeads200Response;
44
+ export declare function GetBuyerLeads200ResponseFromJSON(json: any): GetBuyerLeads200Response;
45
+ export declare function GetBuyerLeads200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBuyerLeads200Response;
46
+ export declare function GetBuyerLeads200ResponseToJSON(value?: GetBuyerLeads200Response | null): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.instanceOfGetBuyerLeads200Response = instanceOfGetBuyerLeads200Response;
17
+ exports.GetBuyerLeads200ResponseFromJSON = GetBuyerLeads200ResponseFromJSON;
18
+ exports.GetBuyerLeads200ResponseFromJSONTyped = GetBuyerLeads200ResponseFromJSONTyped;
19
+ exports.GetBuyerLeads200ResponseToJSON = GetBuyerLeads200ResponseToJSON;
20
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
21
+ var BuyerLeadListItemDto_1 = require("./BuyerLeadListItemDto");
22
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
23
+ /**
24
+ * Check if a given object implements the GetBuyerLeads200Response interface.
25
+ */
26
+ function instanceOfGetBuyerLeads200Response(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ if (!('links' in value) || value['links'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function GetBuyerLeads200ResponseFromJSON(json) {
36
+ return GetBuyerLeads200ResponseFromJSONTyped(json, false);
37
+ }
38
+ function GetBuyerLeads200ResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'data': (json['data'].map(BuyerLeadListItemDto_1.BuyerLeadListItemDtoFromJSON)),
44
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
45
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
46
+ };
47
+ }
48
+ function GetBuyerLeads200ResponseToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'data': (value['data'].map(BuyerLeadListItemDto_1.BuyerLeadListItemDtoToJSON)),
54
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
55
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
56
+ };
57
+ }
@@ -9,10 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice } from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice';
13
12
  import type { DomainSellerDto } from './DomainSellerDto';
14
13
  import type { DomainStats } from './DomainStats';
15
- import type { IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice } from './IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice';
14
+ import type { MoneyDto } from './MoneyDto';
16
15
  /**
17
16
  *
18
17
  * @export
@@ -38,17 +37,17 @@ export interface IntersectionDomainSalesInformationDtoWithDomainStatsDto {
38
37
  */
39
38
  domainDisplayName: string;
40
39
  /**
41
- *
42
- * @type {IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice}
40
+ * Buy now price or null if buy now is not enabled
41
+ * @type {MoneyDto}
43
42
  * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
44
43
  */
45
- buyNowPrice: IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice | null;
44
+ buyNowPrice: MoneyDto | null;
46
45
  /**
47
- *
48
- * @type {IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice}
46
+ * min offer price or null if offers are not enabled
47
+ * @type {MoneyDto}
49
48
  * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
50
49
  */
51
- minOfferPrice: IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice | null;
50
+ minOfferPrice: MoneyDto | null;
52
51
  /**
53
52
  * The domain seller information
54
53
  * @type {DomainSellerDto}
@@ -17,10 +17,9 @@ exports.instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto = inst
17
17
  exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON = IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON;
18
18
  exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped = IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped;
19
19
  exports.IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON = IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON;
20
- var IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice_1 = require("./IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice");
21
20
  var DomainSellerDto_1 = require("./DomainSellerDto");
22
21
  var DomainStats_1 = require("./DomainStats");
23
- var IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice_1 = require("./IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice");
22
+ var MoneyDto_1 = require("./MoneyDto");
24
23
  /**
25
24
  * Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDto interface.
26
25
  */
@@ -50,8 +49,8 @@ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(js
50
49
  'stats': (0, DomainStats_1.DomainStatsFromJSON)(json['stats']),
51
50
  'domain': json['domain'],
52
51
  'domainDisplayName': json['domainDisplayName'],
53
- 'buyNowPrice': (0, IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice_1.IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceFromJSON)(json['buyNowPrice']),
54
- 'minOfferPrice': (0, IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice_1.IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceFromJSON)(json['minOfferPrice']),
52
+ 'buyNowPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNowPrice']),
53
+ 'minOfferPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOfferPrice']),
55
54
  'seller': (0, DomainSellerDto_1.DomainSellerDtoFromJSON)(json['seller']),
56
55
  };
57
56
  }
@@ -63,8 +62,8 @@ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(value) {
63
62
  'stats': (0, DomainStats_1.DomainStatsToJSON)(value['stats']),
64
63
  'domain': value['domain'],
65
64
  'domainDisplayName': value['domainDisplayName'],
66
- 'buyNowPrice': (0, IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice_1.IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPriceToJSON)(value['buyNowPrice']),
67
- 'minOfferPrice': (0, IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice_1.IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPriceToJSON)(value['minOfferPrice']),
65
+ 'buyNowPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNowPrice']),
66
+ 'minOfferPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOfferPrice']),
68
67
  'seller': (0, DomainSellerDto_1.DomainSellerDtoToJSON)(value['seller']),
69
68
  };
70
69
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
13
- import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
13
+ import type { MoneyDto } from './MoneyDto';
14
14
  /**
15
15
  *
16
16
  * @export
@@ -18,7 +18,7 @@ import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './Intersecti
18
18
  */
19
19
  export interface IntersectionLeadDtoWithLeadDetailsDto {
20
20
  /**
21
- * The current id
21
+ * The lead id
22
22
  * @type {string}
23
23
  * @memberof IntersectionLeadDtoWithLeadDetailsDto
24
24
  */
@@ -30,11 +30,11 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
30
30
  */
31
31
  status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
32
32
  /**
33
- *
34
- * @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
33
+ * The lead last offer amount
34
+ * @type {MoneyDto}
35
35
  * @memberof IntersectionLeadDtoWithLeadDetailsDto
36
36
  */
37
- lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
37
+ lastOffer: MoneyDto | null;
38
38
  /**
39
39
  *
40
40
  * @type {string}
@@ -19,7 +19,7 @@ exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = IntersectionLeadDtoWithL
19
19
  exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped;
20
20
  exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoToJSON;
21
21
  var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
22
- var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastOffer");
22
+ var MoneyDto_1 = require("./MoneyDto");
23
23
  /**
24
24
  * @export
25
25
  */
@@ -67,7 +67,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscrimi
67
67
  return {
68
68
  'id': json['id'],
69
69
  'status': json['status'],
70
- 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON)(json['lastOffer']),
70
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
71
71
  'lastOfferBy': json['lastOfferBy'],
72
72
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
73
73
  'createdAt': (new Date(json['createdAt'])),
@@ -80,7 +80,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value) {
80
80
  return {
81
81
  'id': value['id'],
82
82
  'status': value['status'],
83
- 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value['lastOffer']),
83
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
84
84
  'lastOfferBy': value['lastOfferBy'],
85
85
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
86
86
  'createdAt': ((value['createdAt']).toISOString()),
@@ -9,8 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { IntersectionLeadDtoWithListFieldsDtoLastMessageData } from './IntersectionLeadDtoWithListFieldsDtoLastMessageData';
13
- import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './IntersectionLeadDtoWithListFieldsDtoLastOffer';
12
+ import type { LeadMessageData } from './LeadMessageData';
13
+ import type { LeadDomainDto } from './LeadDomainDto';
14
+ import type { MoneyDto } from './MoneyDto';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -18,7 +19,7 @@ import type { IntersectionLeadDtoWithListFieldsDtoLastOffer } from './Intersecti
18
19
  */
19
20
  export interface IntersectionLeadDtoWithListFieldsDto {
20
21
  /**
21
- * The current id
22
+ * The lead id
22
23
  * @type {string}
23
24
  * @memberof IntersectionLeadDtoWithListFieldsDto
24
25
  */
@@ -30,11 +31,11 @@ export interface IntersectionLeadDtoWithListFieldsDto {
30
31
  */
31
32
  status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
32
33
  /**
33
- *
34
- * @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
34
+ * The lead last offer amount
35
+ * @type {MoneyDto}
35
36
  * @memberof IntersectionLeadDtoWithListFieldsDto
36
37
  */
37
- lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
38
+ lastOffer: MoneyDto | null;
38
39
  /**
39
40
  *
40
41
  * @type {string}
@@ -54,17 +55,23 @@ export interface IntersectionLeadDtoWithListFieldsDto {
54
55
  */
55
56
  lastMessageType: IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum;
56
57
  /**
57
- *
58
- * @type {IntersectionLeadDtoWithListFieldsDtoLastMessageData}
58
+ * The data
59
+ * @type {LeadMessageData}
59
60
  * @memberof IntersectionLeadDtoWithListFieldsDto
60
61
  */
61
- lastMessageData: IntersectionLeadDtoWithListFieldsDtoLastMessageData | null;
62
+ lastMessageData: LeadMessageData | null;
62
63
  /**
63
64
  * Created at date
64
65
  * @type {Date}
65
66
  * @memberof IntersectionLeadDtoWithListFieldsDto
66
67
  */
67
68
  createdAt: Date;
69
+ /**
70
+ * Domain information
71
+ * @type {LeadDomainDto}
72
+ * @memberof IntersectionLeadDtoWithListFieldsDto
73
+ */
74
+ domain: LeadDomainDto;
68
75
  /**
69
76
  *
70
77
  * @type {string}
@@ -125,6 +132,8 @@ export type IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = typeof Int
125
132
  */
126
133
  export declare const IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum: {
127
134
  readonly OFFER: "offer";
135
+ readonly OFFER_WITHDRAWN: "offer_withdrawn";
136
+ readonly OFFER_REJECTED: "offer_rejected";
128
137
  readonly MESSAGE: "message";
129
138
  };
130
139
  export type IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum];
@@ -18,8 +18,9 @@ exports.instanceOfIntersectionLeadDtoWithListFieldsDto = instanceOfIntersectionL
18
18
  exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = IntersectionLeadDtoWithListFieldsDtoFromJSON;
19
19
  exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoFromJSONTyped;
20
20
  exports.IntersectionLeadDtoWithListFieldsDtoToJSON = IntersectionLeadDtoWithListFieldsDtoToJSON;
21
- var IntersectionLeadDtoWithListFieldsDtoLastMessageData_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastMessageData");
22
- var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastOffer");
21
+ var LeadMessageData_1 = require("./LeadMessageData");
22
+ var LeadDomainDto_1 = require("./LeadDomainDto");
23
+ var MoneyDto_1 = require("./MoneyDto");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -52,6 +53,8 @@ exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = {
52
53
  */
53
54
  exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = {
54
55
  OFFER: 'offer',
56
+ OFFER_WITHDRAWN: 'offer_withdrawn',
57
+ OFFER_REJECTED: 'offer_rejected',
55
58
  MESSAGE: 'message'
56
59
  };
57
60
  /**
@@ -74,6 +77,8 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
74
77
  return false;
75
78
  if (!('createdAt' in value) || value['createdAt'] === undefined)
76
79
  return false;
80
+ if (!('domain' in value) || value['domain'] === undefined)
81
+ return false;
77
82
  if (!('domainName' in value) || value['domainName'] === undefined)
78
83
  return false;
79
84
  if (!('buyerInitials' in value) || value['buyerInitials'] === undefined)
@@ -94,12 +99,13 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
94
99
  return {
95
100
  'id': json['id'],
96
101
  'status': json['status'],
97
- 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON)(json['lastOffer']),
102
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
98
103
  'lastOfferBy': json['lastOfferBy'],
99
104
  'lastMessageFrom': json['lastMessageFrom'],
100
105
  'lastMessageType': json['lastMessageType'],
101
- 'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON)(json['lastMessageData']),
106
+ 'lastMessageData': (0, LeadMessageData_1.LeadMessageDataFromJSON)(json['lastMessageData']),
102
107
  'createdAt': (new Date(json['createdAt'])),
108
+ 'domain': (0, LeadDomainDto_1.LeadDomainDtoFromJSON)(json['domain']),
103
109
  'domainName': json['domainName'],
104
110
  'buyerInitials': json['buyerInitials'],
105
111
  'lastMessageMessage': json['lastMessageMessage'],
@@ -113,12 +119,13 @@ function IntersectionLeadDtoWithListFieldsDtoToJSON(value) {
113
119
  return {
114
120
  'id': value['id'],
115
121
  'status': value['status'],
116
- 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value['lastOffer']),
122
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
117
123
  'lastOfferBy': value['lastOfferBy'],
118
124
  'lastMessageFrom': value['lastMessageFrom'],
119
125
  'lastMessageType': value['lastMessageType'],
120
- 'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON)(value['lastMessageData']),
126
+ 'lastMessageData': (0, LeadMessageData_1.LeadMessageDataToJSON)(value['lastMessageData']),
121
127
  'createdAt': ((value['createdAt']).toISOString()),
128
+ 'domain': (0, LeadDomainDto_1.LeadDomainDtoToJSON)(value['domain']),
122
129
  'domainName': value['domainName'],
123
130
  'buyerInitials': value['buyerInitials'],
124
131
  'lastMessageMessage': value['lastMessageMessage'],
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 LeadDomainDto
16
+ */
17
+ export interface LeadDomainDto {
18
+ /**
19
+ * The domain id
20
+ * @type {string}
21
+ * @memberof LeadDomainDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * Domain name
26
+ * @type {string}
27
+ * @memberof LeadDomainDto
28
+ */
29
+ name: string;
30
+ /**
31
+ * Domain currency code
32
+ * @type {string}
33
+ * @memberof LeadDomainDto
34
+ */
35
+ currencyCode: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the LeadDomainDto interface.
39
+ */
40
+ export declare function instanceOfLeadDomainDto(value: object): value is LeadDomainDto;
41
+ export declare function LeadDomainDtoFromJSON(json: any): LeadDomainDto;
42
+ export declare function LeadDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDomainDto;
43
+ export declare function LeadDomainDtoToJSON(value?: LeadDomainDto | null): any;
@@ -13,38 +13,42 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfDomainTransferDtoAgent = instanceOfDomainTransferDtoAgent;
17
- exports.DomainTransferDtoAgentFromJSON = DomainTransferDtoAgentFromJSON;
18
- exports.DomainTransferDtoAgentFromJSONTyped = DomainTransferDtoAgentFromJSONTyped;
19
- exports.DomainTransferDtoAgentToJSON = DomainTransferDtoAgentToJSON;
16
+ exports.instanceOfLeadDomainDto = instanceOfLeadDomainDto;
17
+ exports.LeadDomainDtoFromJSON = LeadDomainDtoFromJSON;
18
+ exports.LeadDomainDtoFromJSONTyped = LeadDomainDtoFromJSONTyped;
19
+ exports.LeadDomainDtoToJSON = LeadDomainDtoToJSON;
20
20
  /**
21
- * Check if a given object implements the DomainTransferDtoAgent interface.
21
+ * Check if a given object implements the LeadDomainDto interface.
22
22
  */
23
- function instanceOfDomainTransferDtoAgent(value) {
23
+ function instanceOfLeadDomainDto(value) {
24
24
  if (!('id' in value) || value['id'] === undefined)
25
25
  return false;
26
26
  if (!('name' in value) || value['name'] === undefined)
27
27
  return false;
28
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
29
+ return false;
28
30
  return true;
29
31
  }
30
- function DomainTransferDtoAgentFromJSON(json) {
31
- return DomainTransferDtoAgentFromJSONTyped(json, false);
32
+ function LeadDomainDtoFromJSON(json) {
33
+ return LeadDomainDtoFromJSONTyped(json, false);
32
34
  }
33
- function DomainTransferDtoAgentFromJSONTyped(json, ignoreDiscriminator) {
35
+ function LeadDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
34
36
  if (json == null) {
35
37
  return json;
36
38
  }
37
39
  return {
38
40
  'id': json['id'],
39
41
  'name': json['name'],
42
+ 'currencyCode': json['currencyCode'],
40
43
  };
41
44
  }
42
- function DomainTransferDtoAgentToJSON(value) {
45
+ function LeadDomainDtoToJSON(value) {
43
46
  if (value == null) {
44
47
  return value;
45
48
  }
46
49
  return {
47
50
  'id': value['id'],
48
51
  'name': value['name'],
52
+ 'currencyCode': value['currencyCode'],
49
53
  };
50
54
  }
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 { LeadDomainDto } from './LeadDomainDto';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface LeadDto
18
+ */
19
+ export interface LeadDto {
20
+ /**
21
+ * The lead id
22
+ * @type {string}
23
+ * @memberof LeadDto
24
+ */
25
+ id: string;
26
+ /**
27
+ * The current lead status
28
+ * @type {string}
29
+ * @memberof LeadDto
30
+ */
31
+ status: LeadDtoStatusEnum;
32
+ /**
33
+ * The lead last offer amount
34
+ * @type {MoneyDto}
35
+ * @memberof LeadDto
36
+ */
37
+ lastOffer: MoneyDto | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof LeadDto
42
+ */
43
+ lastOfferBy: LeadDtoLastOfferByEnum | null;
44
+ /**
45
+ * Created at date
46
+ * @type {Date}
47
+ * @memberof LeadDto
48
+ */
49
+ createdAt: Date;
50
+ /**
51
+ * Domain information
52
+ * @type {LeadDomainDto}
53
+ * @memberof LeadDto
54
+ */
55
+ domain: LeadDomainDto;
56
+ }
57
+ /**
58
+ * @export
59
+ */
60
+ export declare const LeadDtoStatusEnum: {
61
+ readonly UNVERIFIED: "unverified";
62
+ readonly ACTIVE: "active";
63
+ readonly ACCEPTED: "accepted";
64
+ readonly FINISHED: "finished";
65
+ readonly DELETED: "deleted";
66
+ readonly ARCHIVED: "archived";
67
+ };
68
+ export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
69
+ /**
70
+ * @export
71
+ */
72
+ export declare const LeadDtoLastOfferByEnum: {
73
+ readonly BUYER: "buyer";
74
+ readonly SELLER: "seller";
75
+ readonly ADMIN: "admin";
76
+ };
77
+ export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
78
+ /**
79
+ * Check if a given object implements the LeadDto interface.
80
+ */
81
+ export declare function instanceOfLeadDto(value: object): value is LeadDto;
82
+ export declare function LeadDtoFromJSON(json: any): LeadDto;
83
+ export declare function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDto;
84
+ export declare function LeadDtoToJSON(value?: LeadDto | null): any;