@randock/nameshift-api-client 0.0.13 → 0.0.15

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 (35) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/dist/apis/LeadsApi.d.ts +13 -1
  3. package/dist/apis/LeadsApi.js +58 -0
  4. package/dist/apis/LeadsPublicApi.d.ts +5 -3
  5. package/dist/apis/LeadsPublicApi.js +6 -4
  6. package/dist/models/CreateLeadMessageInput.d.ts +1 -22
  7. package/dist/models/CreateLeadMessageInput.js +1 -15
  8. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +22 -0
  9. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +16 -1
  10. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +37 -2
  11. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +23 -1
  12. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +32 -0
  13. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +51 -0
  14. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +37 -0
  15. package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +53 -0
  16. package/dist/models/LeadDto.d.ts +22 -0
  17. package/dist/models/LeadDto.js +16 -1
  18. package/dist/models/LeadMessageDto.d.ts +6 -0
  19. package/dist/models/LeadMessageDto.js +3 -0
  20. package/dist/models/PutLeadInput.d.ts +32 -0
  21. package/dist/models/PutLeadInput.js +51 -0
  22. package/dist/models/index.d.ts +3 -1
  23. package/dist/models/index.js +3 -1
  24. package/package.json +2 -1
  25. package/src/apis/LeadsApi.ts +53 -0
  26. package/src/apis/LeadsPublicApi.ts +10 -5
  27. package/src/models/CreateLeadMessageInput.ts +1 -37
  28. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +34 -0
  29. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +61 -2
  30. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +73 -0
  31. package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +75 -0
  32. package/src/models/LeadDto.ts +35 -0
  33. package/src/models/LeadMessageDto.ts +9 -0
  34. package/src/models/PutLeadInput.ts +73 -0
  35. package/src/models/index.ts +3 -1
@@ -19,7 +19,6 @@ src/models/BatchUpdate404Response.ts
19
19
  src/models/BatchUpdateDomainsInput.ts
20
20
  src/models/CreateLeadInput.ts
21
21
  src/models/CreateLeadMessageInput.ts
22
- src/models/CreateLeadMessageInputData.ts
23
22
  src/models/DeleteDomainsInput.ts
24
23
  src/models/DomainDto.ts
25
24
  src/models/ImportDomainsDto.ts
@@ -30,6 +29,8 @@ src/models/IntersectionAccountDtoWithSettingsDto.ts
30
29
  src/models/IntersectionDomainDtoWithAccountDto.ts
31
30
  src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
32
31
  src/models/IntersectionLeadDtoWithListFieldsDto.ts
32
+ src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts
33
+ src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts
33
34
  src/models/LeadDto.ts
34
35
  src/models/LeadMessageData.ts
35
36
  src/models/LeadMessageDto.ts
@@ -47,6 +48,7 @@ src/models/PaginateResponse.ts
47
48
  src/models/PaginateResponseLinks.ts
48
49
  src/models/PaginateResponseMeta.ts
49
50
  src/models/PublicDomainControllerGetDomainIdentifier404Response.ts
51
+ src/models/PutLeadInput.ts
50
52
  src/models/TokenDto.ts
51
53
  src/models/UpdateDomainInput.ts
52
54
  src/models/UpdateSettings401Response.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, IntersectionLeadDtoWithListFieldsDto, LeadMessageDto, ListLeadMessagesDto } from '../models/index';
13
+ import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, IntersectionLeadDtoWithListFieldsDto, LeadMessageDto, ListLeadMessagesDto, PutLeadInput } from '../models/index';
14
14
  export interface CreateMessageRequest {
15
15
  leadId: string;
16
16
  createLeadMessageInput: CreateLeadMessageInput;
@@ -21,6 +21,10 @@ export interface GetRequest {
21
21
  export interface GetMessagesRequest {
22
22
  leadId: string;
23
23
  }
24
+ export interface PutOfferRequest {
25
+ leadId: string;
26
+ putLeadInput: PutLeadInput;
27
+ }
24
28
  /**
25
29
  *
26
30
  */
@@ -57,4 +61,12 @@ export declare class LeadsApi extends runtime.BaseAPI {
57
61
  *
58
62
  */
59
63
  listLeads(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>>;
64
+ /**
65
+ *
66
+ */
67
+ putOfferRaw(requestParameters: PutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadMessageDto>>;
68
+ /**
69
+ *
70
+ */
71
+ putOffer(requestParameters: PutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadMessageDto>;
60
72
  }
@@ -289,6 +289,64 @@ var LeadsApi = /** @class */ (function (_super) {
289
289
  });
290
290
  });
291
291
  };
292
+ /**
293
+ *
294
+ */
295
+ LeadsApi.prototype.putOfferRaw = function (requestParameters, initOverrides) {
296
+ return __awaiter(this, void 0, void 0, function () {
297
+ var queryParameters, headerParameters, token, tokenString, response;
298
+ return __generator(this, function (_a) {
299
+ switch (_a.label) {
300
+ case 0:
301
+ if (requestParameters.leadId === null || requestParameters.leadId === undefined) {
302
+ throw new runtime.RequiredError('leadId', 'Required parameter requestParameters.leadId was null or undefined when calling putOffer.');
303
+ }
304
+ if (requestParameters.putLeadInput === null || requestParameters.putLeadInput === undefined) {
305
+ throw new runtime.RequiredError('putLeadInput', 'Required parameter requestParameters.putLeadInput was null or undefined when calling putOffer.');
306
+ }
307
+ queryParameters = {};
308
+ headerParameters = {};
309
+ headerParameters['Content-Type'] = 'application/json';
310
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
311
+ token = this.configuration.accessToken;
312
+ return [4 /*yield*/, token("bearer", [])];
313
+ case 1:
314
+ tokenString = _a.sent();
315
+ if (tokenString) {
316
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
317
+ }
318
+ _a.label = 2;
319
+ case 2: return [4 /*yield*/, this.request({
320
+ path: "/leads/{leadId}/offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters.leadId))),
321
+ method: 'PUT',
322
+ headers: headerParameters,
323
+ query: queryParameters,
324
+ body: (0, index_1.PutLeadInputToJSON)(requestParameters.putLeadInput),
325
+ }, initOverrides)];
326
+ case 3:
327
+ response = _a.sent();
328
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadMessageDtoFromJSON)(jsonValue); })];
329
+ }
330
+ });
331
+ });
332
+ };
333
+ /**
334
+ *
335
+ */
336
+ LeadsApi.prototype.putOffer = function (requestParameters, initOverrides) {
337
+ return __awaiter(this, void 0, void 0, function () {
338
+ var response;
339
+ return __generator(this, function (_a) {
340
+ switch (_a.label) {
341
+ case 0: return [4 /*yield*/, this.putOfferRaw(requestParameters, initOverrides)];
342
+ case 1:
343
+ response = _a.sent();
344
+ return [4 /*yield*/, response.value()];
345
+ case 2: return [2 /*return*/, _a.sent()];
346
+ }
347
+ });
348
+ });
349
+ };
292
350
  return LeadsApi;
293
351
  }(runtime.BaseAPI));
294
352
  exports.LeadsApi = LeadsApi;
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { CreateLeadInput, LeadDto } from '../models/index';
14
- export interface PublicLeadControllerPostLeadRequest {
14
+ export interface CreateLeadRequest {
15
15
  createLeadInput: CreateLeadInput;
16
16
  }
17
17
  /**
@@ -19,9 +19,11 @@ export interface PublicLeadControllerPostLeadRequest {
19
19
  */
20
20
  export declare class LeadsPublicApi extends runtime.BaseAPI {
21
21
  /**
22
+ *
22
23
  */
23
- publicLeadControllerPostLeadRaw(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>>;
24
+ createLeadRaw(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadDto>>;
24
25
  /**
26
+ *
25
27
  */
26
- publicLeadControllerPostLead(requestParameters: PublicLeadControllerPostLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto>;
28
+ createLead(requestParameters: CreateLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadDto>;
27
29
  }
@@ -76,15 +76,16 @@ var LeadsPublicApi = /** @class */ (function (_super) {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
78
  /**
79
+ *
79
80
  */
80
- LeadsPublicApi.prototype.publicLeadControllerPostLeadRaw = function (requestParameters, initOverrides) {
81
+ LeadsPublicApi.prototype.createLeadRaw = function (requestParameters, initOverrides) {
81
82
  return __awaiter(this, void 0, void 0, function () {
82
83
  var queryParameters, headerParameters, response;
83
84
  return __generator(this, function (_a) {
84
85
  switch (_a.label) {
85
86
  case 0:
86
87
  if (requestParameters.createLeadInput === null || requestParameters.createLeadInput === undefined) {
87
- throw new runtime.RequiredError('createLeadInput', 'Required parameter requestParameters.createLeadInput was null or undefined when calling publicLeadControllerPostLead.');
88
+ throw new runtime.RequiredError('createLeadInput', 'Required parameter requestParameters.createLeadInput was null or undefined when calling createLead.');
88
89
  }
89
90
  queryParameters = {};
90
91
  headerParameters = {};
@@ -104,13 +105,14 @@ var LeadsPublicApi = /** @class */ (function (_super) {
104
105
  });
105
106
  };
106
107
  /**
108
+ *
107
109
  */
108
- LeadsPublicApi.prototype.publicLeadControllerPostLead = function (requestParameters, initOverrides) {
110
+ LeadsPublicApi.prototype.createLead = function (requestParameters, initOverrides) {
109
111
  return __awaiter(this, void 0, void 0, function () {
110
112
  var response;
111
113
  return __generator(this, function (_a) {
112
114
  switch (_a.label) {
113
- case 0: return [4 /*yield*/, this.publicLeadControllerPostLeadRaw(requestParameters, initOverrides)];
115
+ case 0: return [4 /*yield*/, this.createLeadRaw(requestParameters, initOverrides)];
114
116
  case 1:
115
117
  response = _a.sent();
116
118
  return [4 /*yield*/, response.value()];
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CreateLeadMessageInputData } from './CreateLeadMessageInputData';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -21,28 +20,8 @@ export interface CreateLeadMessageInput {
21
20
  * @type {string}
22
21
  * @memberof CreateLeadMessageInput
23
22
  */
24
- type: CreateLeadMessageInputTypeEnum;
25
- /**
26
- *
27
- * @type {CreateLeadMessageInputData}
28
- * @memberof CreateLeadMessageInput
29
- */
30
- data: CreateLeadMessageInputData | null;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof CreateLeadMessageInput
35
- */
36
- message: string | null;
23
+ message: string;
37
24
  }
38
- /**
39
- * @export
40
- */
41
- export declare const CreateLeadMessageInputTypeEnum: {
42
- readonly OFFER: "offer";
43
- readonly MESSAGE: "message";
44
- };
45
- export type CreateLeadMessageInputTypeEnum = typeof CreateLeadMessageInputTypeEnum[keyof typeof CreateLeadMessageInputTypeEnum];
46
25
  /**
47
26
  * Check if a given object implements the CreateLeadMessageInput interface.
48
27
  */
@@ -13,22 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateLeadMessageInputToJSON = exports.CreateLeadMessageInputFromJSONTyped = exports.CreateLeadMessageInputFromJSON = exports.instanceOfCreateLeadMessageInput = exports.CreateLeadMessageInputTypeEnum = void 0;
17
- var CreateLeadMessageInputData_1 = require("./CreateLeadMessageInputData");
18
- /**
19
- * @export
20
- */
21
- exports.CreateLeadMessageInputTypeEnum = {
22
- OFFER: 'offer',
23
- MESSAGE: 'message'
24
- };
16
+ exports.CreateLeadMessageInputToJSON = exports.CreateLeadMessageInputFromJSONTyped = exports.CreateLeadMessageInputFromJSON = exports.instanceOfCreateLeadMessageInput = void 0;
25
17
  /**
26
18
  * Check if a given object implements the CreateLeadMessageInput interface.
27
19
  */
28
20
  function instanceOfCreateLeadMessageInput(value) {
29
21
  var isInstance = true;
30
- isInstance = isInstance && "type" in value;
31
- isInstance = isInstance && "data" in value;
32
22
  isInstance = isInstance && "message" in value;
33
23
  return isInstance;
34
24
  }
@@ -42,8 +32,6 @@ function CreateLeadMessageInputFromJSONTyped(json, ignoreDiscriminator) {
42
32
  return json;
43
33
  }
44
34
  return {
45
- 'type': json['type'],
46
- 'data': (0, CreateLeadMessageInputData_1.CreateLeadMessageInputDataFromJSON)(json['data']),
47
35
  'message': json['message'],
48
36
  };
49
37
  }
@@ -56,8 +44,6 @@ function CreateLeadMessageInputToJSON(value) {
56
44
  return null;
57
45
  }
58
46
  return {
59
- 'type': value.type,
60
- 'data': (0, CreateLeadMessageInputData_1.CreateLeadMessageInputDataToJSON)(value.data),
61
47
  'message': value.message,
62
48
  };
63
49
  }
@@ -10,6 +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
14
  /**
14
15
  *
15
16
  * @export
@@ -28,6 +29,18 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
28
29
  * @memberof IntersectionLeadDtoWithLeadDetailsDto
29
30
  */
30
31
  status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
32
+ /**
33
+ *
34
+ * @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
35
+ * @memberof IntersectionLeadDtoWithLeadDetailsDto
36
+ */
37
+ lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof IntersectionLeadDtoWithLeadDetailsDto
42
+ */
43
+ lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum | null;
31
44
  /**
32
45
  *
33
46
  * @type {IntersectionDomainDtoWithAccountDto}
@@ -50,6 +63,15 @@ export declare const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum: {
50
63
  readonly ARCHIVED: "archived";
51
64
  };
52
65
  export type IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum];
66
+ /**
67
+ * @export
68
+ */
69
+ export declare const IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum: {
70
+ readonly BUYER: "buyer";
71
+ readonly SELLER: "seller";
72
+ readonly ADMIN: "admin";
73
+ };
74
+ export type IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum];
53
75
  /**
54
76
  * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
55
77
  */
@@ -13,8 +13,9 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = void 0;
16
+ exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = exports.IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = void 0;
17
17
  var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
18
+ var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastOffer");
18
19
  /**
19
20
  * @export
20
21
  */
@@ -23,6 +24,14 @@ exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
23
24
  DELETED: 'deleted',
24
25
  ARCHIVED: 'archived'
25
26
  };
27
+ /**
28
+ * @export
29
+ */
30
+ exports.IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = {
31
+ BUYER: 'buyer',
32
+ SELLER: 'seller',
33
+ ADMIN: 'admin'
34
+ };
26
35
  /**
27
36
  * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
28
37
  */
@@ -30,6 +39,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
30
39
  var isInstance = true;
31
40
  isInstance = isInstance && "id" in value;
32
41
  isInstance = isInstance && "status" in value;
42
+ isInstance = isInstance && "lastOffer" in value;
43
+ isInstance = isInstance && "lastOfferBy" in value;
33
44
  isInstance = isInstance && "domain" in value;
34
45
  isInstance = isInstance && "createdAt" in value;
35
46
  return isInstance;
@@ -46,6 +57,8 @@ function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscrimi
46
57
  return {
47
58
  'id': json['id'],
48
59
  'status': json['status'],
60
+ 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON)(json['lastOffer']),
61
+ 'lastOfferBy': json['lastOfferBy'],
49
62
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
50
63
  'createdAt': (new Date(json['createdAt'])),
51
64
  };
@@ -61,6 +74,8 @@ function IntersectionLeadDtoWithLeadDetailsDtoToJSON(value) {
61
74
  return {
62
75
  'id': value.id,
63
76
  'status': value.status,
77
+ 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value.lastOffer),
78
+ 'lastOfferBy': value.lastOfferBy,
64
79
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value.domain),
65
80
  'createdAt': (value.createdAt.toISOString()),
66
81
  };
@@ -9,6 +9,8 @@
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
14
  /**
13
15
  *
14
16
  * @export
@@ -27,6 +29,18 @@ export interface IntersectionLeadDtoWithListFieldsDto {
27
29
  * @memberof IntersectionLeadDtoWithListFieldsDto
28
30
  */
29
31
  status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
32
+ /**
33
+ *
34
+ * @type {IntersectionLeadDtoWithListFieldsDtoLastOffer}
35
+ * @memberof IntersectionLeadDtoWithListFieldsDto
36
+ */
37
+ lastOffer: IntersectionLeadDtoWithListFieldsDtoLastOffer | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof IntersectionLeadDtoWithListFieldsDto
42
+ */
43
+ lastOfferBy: IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum | null;
30
44
  /**
31
45
  *
32
46
  * @type {string}
@@ -39,6 +53,12 @@ export interface IntersectionLeadDtoWithListFieldsDto {
39
53
  * @memberof IntersectionLeadDtoWithListFieldsDto
40
54
  */
41
55
  lastMessageType: IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum;
56
+ /**
57
+ *
58
+ * @type {IntersectionLeadDtoWithListFieldsDtoLastMessageData}
59
+ * @memberof IntersectionLeadDtoWithListFieldsDto
60
+ */
61
+ lastMessageData: IntersectionLeadDtoWithListFieldsDtoLastMessageData | null;
42
62
  /**
43
63
  * Created at date
44
64
  * @type {Date}
@@ -58,11 +78,17 @@ export interface IntersectionLeadDtoWithListFieldsDto {
58
78
  */
59
79
  buyerInitials: string;
60
80
  /**
61
- *
81
+ * The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
62
82
  * @type {string}
63
83
  * @memberof IntersectionLeadDtoWithListFieldsDto
64
84
  */
65
- lastMessageMessage: string;
85
+ lastMessageMessage: string | null;
86
+ /**
87
+ * The creation date of the message
88
+ * @type {Date}
89
+ * @memberof IntersectionLeadDtoWithListFieldsDto
90
+ */
91
+ lastMessageDate: Date;
66
92
  }
67
93
  /**
68
94
  * @export
@@ -73,6 +99,15 @@ export declare const IntersectionLeadDtoWithListFieldsDtoStatusEnum: {
73
99
  readonly ARCHIVED: "archived";
74
100
  };
75
101
  export type IntersectionLeadDtoWithListFieldsDtoStatusEnum = typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoStatusEnum];
102
+ /**
103
+ * @export
104
+ */
105
+ export declare const IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum: {
106
+ readonly BUYER: "buyer";
107
+ readonly SELLER: "seller";
108
+ readonly ADMIN: "admin";
109
+ };
110
+ export type IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum];
76
111
  /**
77
112
  * @export
78
113
  */
@@ -13,7 +13,9 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IntersectionLeadDtoWithListFieldsDtoToJSON = exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = exports.instanceOfIntersectionLeadDtoWithListFieldsDto = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = void 0;
16
+ exports.IntersectionLeadDtoWithListFieldsDtoToJSON = exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = exports.IntersectionLeadDtoWithListFieldsDtoFromJSON = exports.instanceOfIntersectionLeadDtoWithListFieldsDto = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = exports.IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = void 0;
17
+ var IntersectionLeadDtoWithListFieldsDtoLastMessageData_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastMessageData");
18
+ var IntersectionLeadDtoWithListFieldsDtoLastOffer_1 = require("./IntersectionLeadDtoWithListFieldsDtoLastOffer");
17
19
  /**
18
20
  * @export
19
21
  */
@@ -22,6 +24,14 @@ exports.IntersectionLeadDtoWithListFieldsDtoStatusEnum = {
22
24
  DELETED: 'deleted',
23
25
  ARCHIVED: 'archived'
24
26
  };
27
+ /**
28
+ * @export
29
+ */
30
+ exports.IntersectionLeadDtoWithListFieldsDtoLastOfferByEnum = {
31
+ BUYER: 'buyer',
32
+ SELLER: 'seller',
33
+ ADMIN: 'admin'
34
+ };
25
35
  /**
26
36
  * @export
27
37
  */
@@ -44,12 +54,16 @@ function instanceOfIntersectionLeadDtoWithListFieldsDto(value) {
44
54
  var isInstance = true;
45
55
  isInstance = isInstance && "id" in value;
46
56
  isInstance = isInstance && "status" in value;
57
+ isInstance = isInstance && "lastOffer" in value;
58
+ isInstance = isInstance && "lastOfferBy" in value;
47
59
  isInstance = isInstance && "lastMessageFrom" in value;
48
60
  isInstance = isInstance && "lastMessageType" in value;
61
+ isInstance = isInstance && "lastMessageData" in value;
49
62
  isInstance = isInstance && "createdAt" in value;
50
63
  isInstance = isInstance && "domainName" in value;
51
64
  isInstance = isInstance && "buyerInitials" in value;
52
65
  isInstance = isInstance && "lastMessageMessage" in value;
66
+ isInstance = isInstance && "lastMessageDate" in value;
53
67
  return isInstance;
54
68
  }
55
69
  exports.instanceOfIntersectionLeadDtoWithListFieldsDto = instanceOfIntersectionLeadDtoWithListFieldsDto;
@@ -64,12 +78,16 @@ function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json, ignoreDiscrimin
64
78
  return {
65
79
  'id': json['id'],
66
80
  'status': json['status'],
81
+ 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON)(json['lastOffer']),
82
+ 'lastOfferBy': json['lastOfferBy'],
67
83
  'lastMessageFrom': json['lastMessageFrom'],
68
84
  'lastMessageType': json['lastMessageType'],
85
+ 'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON)(json['lastMessageData']),
69
86
  'createdAt': (new Date(json['createdAt'])),
70
87
  'domainName': json['domainName'],
71
88
  'buyerInitials': json['buyerInitials'],
72
89
  'lastMessageMessage': json['lastMessageMessage'],
90
+ 'lastMessageDate': (new Date(json['lastMessageDate'])),
73
91
  };
74
92
  }
75
93
  exports.IntersectionLeadDtoWithListFieldsDtoFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoFromJSONTyped;
@@ -83,12 +101,16 @@ function IntersectionLeadDtoWithListFieldsDtoToJSON(value) {
83
101
  return {
84
102
  'id': value.id,
85
103
  'status': value.status,
104
+ 'lastOffer': (0, IntersectionLeadDtoWithListFieldsDtoLastOffer_1.IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON)(value.lastOffer),
105
+ 'lastOfferBy': value.lastOfferBy,
86
106
  'lastMessageFrom': value.lastMessageFrom,
87
107
  'lastMessageType': value.lastMessageType,
108
+ 'lastMessageData': (0, IntersectionLeadDtoWithListFieldsDtoLastMessageData_1.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON)(value.lastMessageData),
88
109
  'createdAt': (value.createdAt.toISOString()),
89
110
  'domainName': value.domainName,
90
111
  'buyerInitials': value.buyerInitials,
91
112
  'lastMessageMessage': value.lastMessageMessage,
113
+ 'lastMessageDate': (value.lastMessageDate.toISOString()),
92
114
  };
93
115
  }
94
116
  exports.IntersectionLeadDtoWithListFieldsDtoToJSON = IntersectionLeadDtoWithListFieldsDtoToJSON;
@@ -0,0 +1,32 @@
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 { MoneyDto } from './MoneyDto';
13
+ /**
14
+ * The data
15
+ * @export
16
+ * @interface IntersectionLeadDtoWithListFieldsDtoLastMessageData
17
+ */
18
+ export interface IntersectionLeadDtoWithListFieldsDtoLastMessageData {
19
+ /**
20
+ *
21
+ * @type {MoneyDto}
22
+ * @memberof IntersectionLeadDtoWithListFieldsDtoLastMessageData
23
+ */
24
+ price: MoneyDto;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastMessageData interface.
28
+ */
29
+ export declare function instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData(value: object): boolean;
30
+ export declare function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastMessageData;
31
+ export declare function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastMessageData;
32
+ export declare function IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastMessageData | null): any;
@@ -0,0 +1,51 @@
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.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped = exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON = exports.instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData = void 0;
17
+ var MoneyDto_1 = require("./MoneyDto");
18
+ /**
19
+ * Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastMessageData interface.
20
+ */
21
+ function instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "price" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData = instanceOfIntersectionLeadDtoWithListFieldsDtoLastMessageData;
27
+ function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON(json) {
28
+ return IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json, false);
29
+ }
30
+ exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON = IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSON;
31
+ function IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
37
+ };
38
+ }
39
+ exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped = IntersectionLeadDtoWithListFieldsDtoLastMessageDataFromJSONTyped;
40
+ function IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'price': (0, MoneyDto_1.MoneyDtoToJSON)(value.price),
49
+ };
50
+ }
51
+ exports.IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON = IntersectionLeadDtoWithListFieldsDtoLastMessageDataToJSON;
@@ -0,0 +1,37 @@
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 IntersectionLeadDtoWithListFieldsDtoLastOffer
16
+ */
17
+ export interface IntersectionLeadDtoWithListFieldsDtoLastOffer {
18
+ /**
19
+ * Monetary amount, represented as an integer without scale/decimals.
20
+ * @type {number}
21
+ * @memberof IntersectionLeadDtoWithListFieldsDtoLastOffer
22
+ */
23
+ amount: number;
24
+ /**
25
+ * Three letter ISO currency code
26
+ * @type {string}
27
+ * @memberof IntersectionLeadDtoWithListFieldsDtoLastOffer
28
+ */
29
+ currencyCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the IntersectionLeadDtoWithListFieldsDtoLastOffer interface.
33
+ */
34
+ export declare function instanceOfIntersectionLeadDtoWithListFieldsDtoLastOffer(value: object): boolean;
35
+ export declare function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSON(json: any): IntersectionLeadDtoWithListFieldsDtoLastOffer;
36
+ export declare function IntersectionLeadDtoWithListFieldsDtoLastOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithListFieldsDtoLastOffer;
37
+ export declare function IntersectionLeadDtoWithListFieldsDtoLastOfferToJSON(value?: IntersectionLeadDtoWithListFieldsDtoLastOffer | null): any;