@homespot-sdk/api 0.0.636 → 0.0.638

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 (149) hide show
  1. package/.openapi-generator/FILES +38 -0
  2. package/README.md +33 -4
  3. package/dist/apis/AgencyQueryControllerApi.d.ts +46 -0
  4. package/dist/apis/AgencyQueryControllerApi.js +65 -0
  5. package/dist/apis/LeadControllerApi.d.ts +280 -0
  6. package/dist/apis/LeadControllerApi.js +452 -0
  7. package/dist/apis/LeadQueryControllerApi.d.ts +88 -0
  8. package/dist/apis/LeadQueryControllerApi.js +122 -0
  9. package/dist/apis/PublicAgencyControllerApi.d.ts +1 -21
  10. package/dist/apis/PublicAgencyControllerApi.js +0 -32
  11. package/dist/apis/PublicRoleControllerApi.js +1 -1
  12. package/dist/apis/index.d.ts +3 -0
  13. package/dist/apis/index.js +3 -0
  14. package/dist/esm/apis/AgencyQueryControllerApi.d.ts +46 -0
  15. package/dist/esm/apis/AgencyQueryControllerApi.js +61 -0
  16. package/dist/esm/apis/LeadControllerApi.d.ts +280 -0
  17. package/dist/esm/apis/LeadControllerApi.js +448 -0
  18. package/dist/esm/apis/LeadQueryControllerApi.d.ts +88 -0
  19. package/dist/esm/apis/LeadQueryControllerApi.js +118 -0
  20. package/dist/esm/apis/PublicAgencyControllerApi.d.ts +1 -21
  21. package/dist/esm/apis/PublicAgencyControllerApi.js +1 -33
  22. package/dist/esm/apis/PublicRoleControllerApi.js +1 -1
  23. package/dist/esm/apis/index.d.ts +3 -0
  24. package/dist/esm/apis/index.js +3 -0
  25. package/dist/esm/models/AddressRefRequest.d.ts +63 -0
  26. package/dist/esm/models/AddressRefRequest.js +54 -0
  27. package/dist/esm/models/AssignToMemberRequest.d.ts +32 -0
  28. package/dist/esm/models/AssignToMemberRequest.js +43 -0
  29. package/dist/esm/models/ChangeStatusRequest.d.ts +44 -0
  30. package/dist/esm/models/ChangeStatusRequest.js +54 -0
  31. package/dist/esm/models/ContactInfoRequest.d.ts +50 -0
  32. package/dist/esm/models/ContactInfoRequest.js +49 -0
  33. package/dist/esm/models/CoordinatesRequest.d.ts +38 -0
  34. package/dist/esm/models/CoordinatesRequest.js +47 -0
  35. package/dist/esm/models/CreateLeadRequest.d.ts +45 -0
  36. package/dist/esm/models/CreateLeadRequest.js +48 -0
  37. package/dist/esm/models/LeadProjectionResponse.d.ts +130 -0
  38. package/dist/esm/models/LeadProjectionResponse.js +94 -0
  39. package/dist/esm/models/ListingIntentRequest.d.ts +98 -0
  40. package/dist/esm/models/ListingIntentRequest.js +89 -0
  41. package/dist/esm/models/ListingIntentResponse.d.ts +138 -0
  42. package/dist/esm/models/ListingIntentResponse.js +101 -0
  43. package/dist/esm/models/LocationRefRequest.d.ts +56 -0
  44. package/dist/esm/models/LocationRefRequest.js +49 -0
  45. package/dist/esm/models/PageLeadProjectionResponse.d.ts +95 -0
  46. package/dist/esm/models/PageLeadProjectionResponse.js +64 -0
  47. package/dist/esm/models/PageRoleResponse.d.ts +6 -6
  48. package/dist/esm/models/PageRoleResponse.js +4 -4
  49. package/dist/esm/models/PageableObject.d.ts +6 -6
  50. package/dist/esm/models/PageableObject.js +2 -2
  51. package/dist/esm/models/PriceRangeRequest.d.ts +38 -0
  52. package/dist/esm/models/PriceRangeRequest.js +43 -0
  53. package/dist/esm/models/SearchIntentRequest.d.ts +98 -0
  54. package/dist/esm/models/SearchIntentRequest.js +89 -0
  55. package/dist/esm/models/SearchIntentResponse.d.ts +126 -0
  56. package/dist/esm/models/SearchIntentResponse.js +97 -0
  57. package/dist/esm/models/SourceRequest.d.ts +32 -0
  58. package/dist/esm/models/SourceRequest.js +43 -0
  59. package/dist/esm/models/UpdateNoteRequest.d.ts +32 -0
  60. package/dist/esm/models/UpdateNoteRequest.js +43 -0
  61. package/dist/esm/models/index.d.ts +16 -0
  62. package/dist/esm/models/index.js +16 -0
  63. package/dist/models/AddressRefRequest.d.ts +63 -0
  64. package/dist/models/AddressRefRequest.js +61 -0
  65. package/dist/models/AssignToMemberRequest.d.ts +32 -0
  66. package/dist/models/AssignToMemberRequest.js +50 -0
  67. package/dist/models/ChangeStatusRequest.d.ts +44 -0
  68. package/dist/models/ChangeStatusRequest.js +62 -0
  69. package/dist/models/ContactInfoRequest.d.ts +50 -0
  70. package/dist/models/ContactInfoRequest.js +56 -0
  71. package/dist/models/CoordinatesRequest.d.ts +38 -0
  72. package/dist/models/CoordinatesRequest.js +54 -0
  73. package/dist/models/CreateLeadRequest.d.ts +45 -0
  74. package/dist/models/CreateLeadRequest.js +55 -0
  75. package/dist/models/LeadProjectionResponse.d.ts +130 -0
  76. package/dist/models/LeadProjectionResponse.js +102 -0
  77. package/dist/models/ListingIntentRequest.d.ts +98 -0
  78. package/dist/models/ListingIntentRequest.js +97 -0
  79. package/dist/models/ListingIntentResponse.d.ts +138 -0
  80. package/dist/models/ListingIntentResponse.js +109 -0
  81. package/dist/models/LocationRefRequest.d.ts +56 -0
  82. package/dist/models/LocationRefRequest.js +56 -0
  83. package/dist/models/PageLeadProjectionResponse.d.ts +95 -0
  84. package/dist/models/PageLeadProjectionResponse.js +71 -0
  85. package/dist/models/PageRoleResponse.d.ts +6 -6
  86. package/dist/models/PageRoleResponse.js +4 -4
  87. package/dist/models/PageableObject.d.ts +6 -6
  88. package/dist/models/PageableObject.js +2 -2
  89. package/dist/models/PriceRangeRequest.d.ts +38 -0
  90. package/dist/models/PriceRangeRequest.js +50 -0
  91. package/dist/models/SearchIntentRequest.d.ts +98 -0
  92. package/dist/models/SearchIntentRequest.js +97 -0
  93. package/dist/models/SearchIntentResponse.d.ts +126 -0
  94. package/dist/models/SearchIntentResponse.js +105 -0
  95. package/dist/models/SourceRequest.d.ts +32 -0
  96. package/dist/models/SourceRequest.js +50 -0
  97. package/dist/models/UpdateNoteRequest.d.ts +32 -0
  98. package/dist/models/UpdateNoteRequest.js +50 -0
  99. package/dist/models/index.d.ts +16 -0
  100. package/dist/models/index.js +16 -0
  101. package/docs/AddressRefRequest.md +44 -0
  102. package/docs/AgencyQueryControllerApi.md +78 -0
  103. package/docs/AssignToMemberRequest.md +34 -0
  104. package/docs/ChangeStatusRequest.md +34 -0
  105. package/docs/ContactInfoRequest.md +40 -0
  106. package/docs/CoordinatesRequest.md +36 -0
  107. package/docs/CreateLeadRequest.md +38 -0
  108. package/docs/LeadControllerApi.md +817 -0
  109. package/docs/LeadProjectionResponse.md +62 -0
  110. package/docs/LeadQueryControllerApi.md +163 -0
  111. package/docs/ListingIntentRequest.md +44 -0
  112. package/docs/ListingIntentResponse.md +58 -0
  113. package/docs/LocationRefRequest.md +42 -0
  114. package/docs/PageLeadProjectionResponse.md +54 -0
  115. package/docs/PageRoleResponse.md +4 -4
  116. package/docs/PageableObject.md +2 -2
  117. package/docs/PriceRangeRequest.md +36 -0
  118. package/docs/PublicAgencyControllerApi.md +0 -70
  119. package/docs/PublicRoleControllerApi.md +1 -1
  120. package/docs/SearchIntentRequest.md +44 -0
  121. package/docs/SearchIntentResponse.md +54 -0
  122. package/docs/SourceRequest.md +34 -0
  123. package/docs/UpdateNoteRequest.md +34 -0
  124. package/package.json +1 -1
  125. package/src/apis/AgencyQueryControllerApi.ts +96 -0
  126. package/src/apis/LeadControllerApi.ts +851 -0
  127. package/src/apis/LeadQueryControllerApi.ts +195 -0
  128. package/src/apis/PublicAgencyControllerApi.ts +0 -60
  129. package/src/apis/PublicRoleControllerApi.ts +1 -1
  130. package/src/apis/index.ts +3 -0
  131. package/src/models/AddressRefRequest.ts +114 -0
  132. package/src/models/AssignToMemberRequest.ts +66 -0
  133. package/src/models/ChangeStatusRequest.ts +81 -0
  134. package/src/models/ContactInfoRequest.ts +90 -0
  135. package/src/models/CoordinatesRequest.ts +75 -0
  136. package/src/models/CreateLeadRequest.ts +90 -0
  137. package/src/models/LeadProjectionResponse.ts +213 -0
  138. package/src/models/ListingIntentRequest.ts +160 -0
  139. package/src/models/ListingIntentResponse.ts +201 -0
  140. package/src/models/LocationRefRequest.ts +97 -0
  141. package/src/models/PageLeadProjectionResponse.ts +167 -0
  142. package/src/models/PageRoleResponse.ts +10 -10
  143. package/src/models/PageableObject.ts +8 -8
  144. package/src/models/PriceRangeRequest.ts +73 -0
  145. package/src/models/SearchIntentRequest.ts +160 -0
  146. package/src/models/SearchIntentResponse.ts +185 -0
  147. package/src/models/SourceRequest.ts +66 -0
  148. package/src/models/UpdateNoteRequest.ts +66 -0
  149. package/src/models/index.ts +16 -0
@@ -10,10 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AgencyProfileResponse, AgencySummaryResponse, PagedModelAgencySummaryResponse } from '../models/index';
14
- export interface GetAgencyRequest {
15
- agencyId: string;
16
- }
13
+ import type { AgencySummaryResponse, PagedModelAgencySummaryResponse } from '../models/index';
17
14
  export interface GetAgencyBySubdomainRequest {
18
15
  subDomain: string;
19
16
  }
@@ -30,17 +27,6 @@ export interface GetAllAgenciesRequest {
30
27
  * @interface PublicAgencyControllerApiInterface
31
28
  */
32
29
  export interface PublicAgencyControllerApiInterface {
33
- /**
34
- *
35
- * @param {string} agencyId
36
- * @param {*} [options] Override http request option.
37
- * @throws {RequiredError}
38
- * @memberof PublicAgencyControllerApiInterface
39
- */
40
- getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>>;
41
- /**
42
- */
43
- getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse>;
44
30
  /**
45
31
  *
46
32
  * @param {string} subDomain
@@ -71,12 +57,6 @@ export interface PublicAgencyControllerApiInterface {
71
57
  *
72
58
  */
73
59
  export declare class PublicAgencyControllerApi extends runtime.BaseAPI implements PublicAgencyControllerApiInterface {
74
- /**
75
- */
76
- getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>>;
77
- /**
78
- */
79
- getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse>;
80
60
  /**
81
61
  */
82
62
  getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencySummaryResponse>>;
@@ -21,43 +21,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AgencyProfileResponseFromJSON, AgencySummaryResponseFromJSON, PagedModelAgencySummaryResponseFromJSON, } from '../models/index';
24
+ import { AgencySummaryResponseFromJSON, PagedModelAgencySummaryResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class PublicAgencyControllerApi extends runtime.BaseAPI {
29
- /**
30
- */
31
- getAgencyRaw(requestParameters, initOverrides) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- if (requestParameters['agencyId'] == null) {
34
- throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling getAgency().');
35
- }
36
- const queryParameters = {};
37
- const headerParameters = {};
38
- if (this.configuration && this.configuration.accessToken) {
39
- // oauth required
40
- headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
41
- }
42
- let urlPath = `/public/agency/{agencyId}`;
43
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
44
- const response = yield this.request({
45
- path: urlPath,
46
- method: 'GET',
47
- headers: headerParameters,
48
- query: queryParameters,
49
- }, initOverrides);
50
- return new runtime.JSONApiResponse(response, (jsonValue) => AgencyProfileResponseFromJSON(jsonValue));
51
- });
52
- }
53
- /**
54
- */
55
- getAgency(requestParameters, initOverrides) {
56
- return __awaiter(this, void 0, void 0, function* () {
57
- const response = yield this.getAgencyRaw(requestParameters, initOverrides);
58
- return yield response.value();
59
- });
60
- }
61
29
  /**
62
30
  */
63
31
  getAgencyBySubdomainRaw(requestParameters, initOverrides) {
@@ -36,7 +36,7 @@ export class PublicRoleControllerApi extends runtime.BaseAPI {
36
36
  // oauth required
37
37
  headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
38
38
  }
39
- let urlPath = `/agency/roles/permissions`;
39
+ let urlPath = `/public/agency/roles/permissions`;
40
40
  const response = yield this.request({
41
41
  path: urlPath,
42
42
  method: 'GET',
@@ -1,6 +1,9 @@
1
1
  export * from './AgencyControllerApi';
2
+ export * from './AgencyQueryControllerApi';
2
3
  export * from './InvitationControllerApi';
3
4
  export * from './InvitationQueryControllerApi';
5
+ export * from './LeadControllerApi';
6
+ export * from './LeadQueryControllerApi';
4
7
  export * from './MemberControllerApi';
5
8
  export * from './MemberQueryControllerApi';
6
9
  export * from './PublicAgencyControllerApi';
@@ -1,8 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AgencyControllerApi';
4
+ export * from './AgencyQueryControllerApi';
4
5
  export * from './InvitationControllerApi';
5
6
  export * from './InvitationQueryControllerApi';
7
+ export * from './LeadControllerApi';
8
+ export * from './LeadQueryControllerApi';
6
9
  export * from './MemberControllerApi';
7
10
  export * from './MemberQueryControllerApi';
8
11
  export * from './PublicAgencyControllerApi';
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Service API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { CoordinatesRequest } from './CoordinatesRequest';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AddressRefRequest
17
+ */
18
+ export interface AddressRefRequest {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof AddressRefRequest
23
+ */
24
+ regionId?: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof AddressRefRequest
29
+ */
30
+ cityId?: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof AddressRefRequest
35
+ */
36
+ districtId?: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof AddressRefRequest
41
+ */
42
+ subDistrictId?: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof AddressRefRequest
47
+ */
48
+ streetId?: number;
49
+ /**
50
+ *
51
+ * @type {CoordinatesRequest}
52
+ * @memberof AddressRefRequest
53
+ */
54
+ coordinates: CoordinatesRequest;
55
+ }
56
+ /**
57
+ * Check if a given object implements the AddressRefRequest interface.
58
+ */
59
+ export declare function instanceOfAddressRefRequest(value: object): value is AddressRefRequest;
60
+ export declare function AddressRefRequestFromJSON(json: any): AddressRefRequest;
61
+ export declare function AddressRefRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressRefRequest;
62
+ export declare function AddressRefRequestToJSON(json: any): AddressRefRequest;
63
+ export declare function AddressRefRequestToJSONTyped(value?: AddressRefRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Service API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { CoordinatesRequestFromJSON, CoordinatesRequestToJSON, } from './CoordinatesRequest';
15
+ /**
16
+ * Check if a given object implements the AddressRefRequest interface.
17
+ */
18
+ export function instanceOfAddressRefRequest(value) {
19
+ if (!('coordinates' in value) || value['coordinates'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function AddressRefRequestFromJSON(json) {
24
+ return AddressRefRequestFromJSONTyped(json, false);
25
+ }
26
+ export function AddressRefRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'regionId': json['regionId'] == null ? undefined : json['regionId'],
32
+ 'cityId': json['cityId'] == null ? undefined : json['cityId'],
33
+ 'districtId': json['districtId'] == null ? undefined : json['districtId'],
34
+ 'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
35
+ 'streetId': json['streetId'] == null ? undefined : json['streetId'],
36
+ 'coordinates': CoordinatesRequestFromJSON(json['coordinates']),
37
+ };
38
+ }
39
+ export function AddressRefRequestToJSON(json) {
40
+ return AddressRefRequestToJSONTyped(json, false);
41
+ }
42
+ export function AddressRefRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'regionId': value['regionId'],
48
+ 'cityId': value['cityId'],
49
+ 'districtId': value['districtId'],
50
+ 'subDistrictId': value['subDistrictId'],
51
+ 'streetId': value['streetId'],
52
+ 'coordinates': CoordinatesRequestToJSON(value['coordinates']),
53
+ };
54
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Service API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 AssignToMemberRequest
16
+ */
17
+ export interface AssignToMemberRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AssignToMemberRequest
22
+ */
23
+ memberId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AssignToMemberRequest interface.
27
+ */
28
+ export declare function instanceOfAssignToMemberRequest(value: object): value is AssignToMemberRequest;
29
+ export declare function AssignToMemberRequestFromJSON(json: any): AssignToMemberRequest;
30
+ export declare function AssignToMemberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignToMemberRequest;
31
+ export declare function AssignToMemberRequestToJSON(json: any): AssignToMemberRequest;
32
+ export declare function AssignToMemberRequestToJSONTyped(value?: AssignToMemberRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Service API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the AssignToMemberRequest interface.
16
+ */
17
+ export function instanceOfAssignToMemberRequest(value) {
18
+ if (!('memberId' in value) || value['memberId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function AssignToMemberRequestFromJSON(json) {
23
+ return AssignToMemberRequestFromJSONTyped(json, false);
24
+ }
25
+ export function AssignToMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'memberId': json['memberId'],
31
+ };
32
+ }
33
+ export function AssignToMemberRequestToJSON(json) {
34
+ return AssignToMemberRequestToJSONTyped(json, false);
35
+ }
36
+ export function AssignToMemberRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'memberId': value['memberId'],
42
+ };
43
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Service API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 ChangeStatusRequest
16
+ */
17
+ export interface ChangeStatusRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ChangeStatusRequest
22
+ */
23
+ status: ChangeStatusRequestStatusEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const ChangeStatusRequestStatusEnum: {
29
+ readonly New: "NEW";
30
+ readonly AttemptedContact: "ATTEMPTED_CONTACT";
31
+ readonly Contacted: "CONTACTED";
32
+ readonly Disqualified: "DISQUALIFIED";
33
+ readonly Converted: "CONVERTED";
34
+ readonly Lost: "LOST";
35
+ };
36
+ export type ChangeStatusRequestStatusEnum = typeof ChangeStatusRequestStatusEnum[keyof typeof ChangeStatusRequestStatusEnum];
37
+ /**
38
+ * Check if a given object implements the ChangeStatusRequest interface.
39
+ */
40
+ export declare function instanceOfChangeStatusRequest(value: object): value is ChangeStatusRequest;
41
+ export declare function ChangeStatusRequestFromJSON(json: any): ChangeStatusRequest;
42
+ export declare function ChangeStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeStatusRequest;
43
+ export declare function ChangeStatusRequestToJSON(json: any): ChangeStatusRequest;
44
+ export declare function ChangeStatusRequestToJSONTyped(value?: ChangeStatusRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Service API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const ChangeStatusRequestStatusEnum = {
18
+ New: 'NEW',
19
+ AttemptedContact: 'ATTEMPTED_CONTACT',
20
+ Contacted: 'CONTACTED',
21
+ Disqualified: 'DISQUALIFIED',
22
+ Converted: 'CONVERTED',
23
+ Lost: 'LOST'
24
+ };
25
+ /**
26
+ * Check if a given object implements the ChangeStatusRequest interface.
27
+ */
28
+ export function instanceOfChangeStatusRequest(value) {
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function ChangeStatusRequestFromJSON(json) {
34
+ return ChangeStatusRequestFromJSONTyped(json, false);
35
+ }
36
+ export function ChangeStatusRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'status': json['status'],
42
+ };
43
+ }
44
+ export function ChangeStatusRequestToJSON(json) {
45
+ return ChangeStatusRequestToJSONTyped(json, false);
46
+ }
47
+ export function ChangeStatusRequestToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'status': value['status'],
53
+ };
54
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Service API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 ContactInfoRequest
16
+ */
17
+ export interface ContactInfoRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ContactInfoRequest
22
+ */
23
+ firstName?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ContactInfoRequest
28
+ */
29
+ lastName?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ContactInfoRequest
34
+ */
35
+ email?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ContactInfoRequest
40
+ */
41
+ phone: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the ContactInfoRequest interface.
45
+ */
46
+ export declare function instanceOfContactInfoRequest(value: object): value is ContactInfoRequest;
47
+ export declare function ContactInfoRequestFromJSON(json: any): ContactInfoRequest;
48
+ export declare function ContactInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInfoRequest;
49
+ export declare function ContactInfoRequestToJSON(json: any): ContactInfoRequest;
50
+ export declare function ContactInfoRequestToJSONTyped(value?: ContactInfoRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Service API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ContactInfoRequest interface.
16
+ */
17
+ export function instanceOfContactInfoRequest(value) {
18
+ if (!('phone' in value) || value['phone'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ContactInfoRequestFromJSON(json) {
23
+ return ContactInfoRequestFromJSONTyped(json, false);
24
+ }
25
+ export function ContactInfoRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
31
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
32
+ 'email': json['email'] == null ? undefined : json['email'],
33
+ 'phone': json['phone'],
34
+ };
35
+ }
36
+ export function ContactInfoRequestToJSON(json) {
37
+ return ContactInfoRequestToJSONTyped(json, false);
38
+ }
39
+ export function ContactInfoRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'firstName': value['firstName'],
45
+ 'lastName': value['lastName'],
46
+ 'email': value['email'],
47
+ 'phone': value['phone'],
48
+ };
49
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Service API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 CoordinatesRequest
16
+ */
17
+ export interface CoordinatesRequest {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof CoordinatesRequest
22
+ */
23
+ lat: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof CoordinatesRequest
28
+ */
29
+ lng: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CoordinatesRequest interface.
33
+ */
34
+ export declare function instanceOfCoordinatesRequest(value: object): value is CoordinatesRequest;
35
+ export declare function CoordinatesRequestFromJSON(json: any): CoordinatesRequest;
36
+ export declare function CoordinatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoordinatesRequest;
37
+ export declare function CoordinatesRequestToJSON(json: any): CoordinatesRequest;
38
+ export declare function CoordinatesRequestToJSONTyped(value?: CoordinatesRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Service API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the CoordinatesRequest interface.
16
+ */
17
+ export function instanceOfCoordinatesRequest(value) {
18
+ if (!('lat' in value) || value['lat'] === undefined)
19
+ return false;
20
+ if (!('lng' in value) || value['lng'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CoordinatesRequestFromJSON(json) {
25
+ return CoordinatesRequestFromJSONTyped(json, false);
26
+ }
27
+ export function CoordinatesRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'lat': json['lat'],
33
+ 'lng': json['lng'],
34
+ };
35
+ }
36
+ export function CoordinatesRequestToJSON(json) {
37
+ return CoordinatesRequestToJSONTyped(json, false);
38
+ }
39
+ export function CoordinatesRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'lat': value['lat'],
45
+ 'lng': value['lng'],
46
+ };
47
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Service API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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 { ContactInfoRequest } from './ContactInfoRequest';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateLeadRequest
17
+ */
18
+ export interface CreateLeadRequest {
19
+ /**
20
+ *
21
+ * @type {ContactInfoRequest}
22
+ * @memberof CreateLeadRequest
23
+ */
24
+ contactInfo: ContactInfoRequest;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CreateLeadRequest
29
+ */
30
+ note?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof CreateLeadRequest
35
+ */
36
+ sourceUrl?: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CreateLeadRequest interface.
40
+ */
41
+ export declare function instanceOfCreateLeadRequest(value: object): value is CreateLeadRequest;
42
+ export declare function CreateLeadRequestFromJSON(json: any): CreateLeadRequest;
43
+ export declare function CreateLeadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateLeadRequest;
44
+ export declare function CreateLeadRequestToJSON(json: any): CreateLeadRequest;
45
+ export declare function CreateLeadRequestToJSONTyped(value?: CreateLeadRequest | null, ignoreDiscriminator?: boolean): any;