@homespot-sdk/api 0.0.637 → 0.0.639

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 (145) hide show
  1. package/.openapi-generator/FILES +38 -0
  2. package/README.md +32 -3
  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/index.d.ts +3 -0
  12. package/dist/apis/index.js +3 -0
  13. package/dist/esm/apis/AgencyQueryControllerApi.d.ts +46 -0
  14. package/dist/esm/apis/AgencyQueryControllerApi.js +61 -0
  15. package/dist/esm/apis/LeadControllerApi.d.ts +280 -0
  16. package/dist/esm/apis/LeadControllerApi.js +448 -0
  17. package/dist/esm/apis/LeadQueryControllerApi.d.ts +88 -0
  18. package/dist/esm/apis/LeadQueryControllerApi.js +118 -0
  19. package/dist/esm/apis/PublicAgencyControllerApi.d.ts +1 -21
  20. package/dist/esm/apis/PublicAgencyControllerApi.js +1 -33
  21. package/dist/esm/apis/index.d.ts +3 -0
  22. package/dist/esm/apis/index.js +3 -0
  23. package/dist/esm/models/AddressRefRequest.d.ts +63 -0
  24. package/dist/esm/models/AddressRefRequest.js +54 -0
  25. package/dist/esm/models/AssignToMemberRequest.d.ts +32 -0
  26. package/dist/esm/models/AssignToMemberRequest.js +43 -0
  27. package/dist/esm/models/ChangeStatusRequest.d.ts +44 -0
  28. package/dist/esm/models/ChangeStatusRequest.js +54 -0
  29. package/dist/esm/models/ContactInfoRequest.d.ts +50 -0
  30. package/dist/esm/models/ContactInfoRequest.js +49 -0
  31. package/dist/esm/models/CoordinatesRequest.d.ts +38 -0
  32. package/dist/esm/models/CoordinatesRequest.js +47 -0
  33. package/dist/esm/models/CreateLeadRequest.d.ts +45 -0
  34. package/dist/esm/models/CreateLeadRequest.js +48 -0
  35. package/dist/esm/models/LeadProjectionResponse.d.ts +130 -0
  36. package/dist/esm/models/LeadProjectionResponse.js +94 -0
  37. package/dist/esm/models/ListingIntentRequest.d.ts +98 -0
  38. package/dist/esm/models/ListingIntentRequest.js +89 -0
  39. package/dist/esm/models/ListingIntentResponse.d.ts +138 -0
  40. package/dist/esm/models/ListingIntentResponse.js +101 -0
  41. package/dist/esm/models/LocationRefRequest.d.ts +56 -0
  42. package/dist/esm/models/LocationRefRequest.js +49 -0
  43. package/dist/esm/models/PageLeadProjectionResponse.d.ts +95 -0
  44. package/dist/esm/models/PageLeadProjectionResponse.js +64 -0
  45. package/dist/esm/models/PageRoleResponse.d.ts +2 -2
  46. package/dist/esm/models/PageRoleResponse.js +2 -2
  47. package/dist/esm/models/PageableObject.d.ts +6 -6
  48. package/dist/esm/models/PageableObject.js +2 -2
  49. package/dist/esm/models/PriceRangeRequest.d.ts +38 -0
  50. package/dist/esm/models/PriceRangeRequest.js +43 -0
  51. package/dist/esm/models/SearchIntentRequest.d.ts +98 -0
  52. package/dist/esm/models/SearchIntentRequest.js +89 -0
  53. package/dist/esm/models/SearchIntentResponse.d.ts +126 -0
  54. package/dist/esm/models/SearchIntentResponse.js +97 -0
  55. package/dist/esm/models/SourceRequest.d.ts +32 -0
  56. package/dist/esm/models/SourceRequest.js +43 -0
  57. package/dist/esm/models/UpdateNoteRequest.d.ts +32 -0
  58. package/dist/esm/models/UpdateNoteRequest.js +43 -0
  59. package/dist/esm/models/index.d.ts +16 -0
  60. package/dist/esm/models/index.js +16 -0
  61. package/dist/models/AddressRefRequest.d.ts +63 -0
  62. package/dist/models/AddressRefRequest.js +61 -0
  63. package/dist/models/AssignToMemberRequest.d.ts +32 -0
  64. package/dist/models/AssignToMemberRequest.js +50 -0
  65. package/dist/models/ChangeStatusRequest.d.ts +44 -0
  66. package/dist/models/ChangeStatusRequest.js +62 -0
  67. package/dist/models/ContactInfoRequest.d.ts +50 -0
  68. package/dist/models/ContactInfoRequest.js +56 -0
  69. package/dist/models/CoordinatesRequest.d.ts +38 -0
  70. package/dist/models/CoordinatesRequest.js +54 -0
  71. package/dist/models/CreateLeadRequest.d.ts +45 -0
  72. package/dist/models/CreateLeadRequest.js +55 -0
  73. package/dist/models/LeadProjectionResponse.d.ts +130 -0
  74. package/dist/models/LeadProjectionResponse.js +102 -0
  75. package/dist/models/ListingIntentRequest.d.ts +98 -0
  76. package/dist/models/ListingIntentRequest.js +97 -0
  77. package/dist/models/ListingIntentResponse.d.ts +138 -0
  78. package/dist/models/ListingIntentResponse.js +109 -0
  79. package/dist/models/LocationRefRequest.d.ts +56 -0
  80. package/dist/models/LocationRefRequest.js +56 -0
  81. package/dist/models/PageLeadProjectionResponse.d.ts +95 -0
  82. package/dist/models/PageLeadProjectionResponse.js +71 -0
  83. package/dist/models/PageRoleResponse.d.ts +2 -2
  84. package/dist/models/PageRoleResponse.js +2 -2
  85. package/dist/models/PageableObject.d.ts +6 -6
  86. package/dist/models/PageableObject.js +2 -2
  87. package/dist/models/PriceRangeRequest.d.ts +38 -0
  88. package/dist/models/PriceRangeRequest.js +50 -0
  89. package/dist/models/SearchIntentRequest.d.ts +98 -0
  90. package/dist/models/SearchIntentRequest.js +97 -0
  91. package/dist/models/SearchIntentResponse.d.ts +126 -0
  92. package/dist/models/SearchIntentResponse.js +105 -0
  93. package/dist/models/SourceRequest.d.ts +32 -0
  94. package/dist/models/SourceRequest.js +50 -0
  95. package/dist/models/UpdateNoteRequest.d.ts +32 -0
  96. package/dist/models/UpdateNoteRequest.js +50 -0
  97. package/dist/models/index.d.ts +16 -0
  98. package/dist/models/index.js +16 -0
  99. package/docs/AddressRefRequest.md +44 -0
  100. package/docs/AgencyQueryControllerApi.md +78 -0
  101. package/docs/AssignToMemberRequest.md +34 -0
  102. package/docs/ChangeStatusRequest.md +34 -0
  103. package/docs/ContactInfoRequest.md +40 -0
  104. package/docs/CoordinatesRequest.md +36 -0
  105. package/docs/CreateLeadRequest.md +38 -0
  106. package/docs/LeadControllerApi.md +817 -0
  107. package/docs/LeadProjectionResponse.md +62 -0
  108. package/docs/LeadQueryControllerApi.md +163 -0
  109. package/docs/ListingIntentRequest.md +44 -0
  110. package/docs/ListingIntentResponse.md +58 -0
  111. package/docs/LocationRefRequest.md +42 -0
  112. package/docs/PageLeadProjectionResponse.md +54 -0
  113. package/docs/PageRoleResponse.md +2 -2
  114. package/docs/PageableObject.md +2 -2
  115. package/docs/PriceRangeRequest.md +36 -0
  116. package/docs/PublicAgencyControllerApi.md +0 -70
  117. package/docs/SearchIntentRequest.md +44 -0
  118. package/docs/SearchIntentResponse.md +54 -0
  119. package/docs/SourceRequest.md +34 -0
  120. package/docs/UpdateNoteRequest.md +34 -0
  121. package/package.json +1 -1
  122. package/src/apis/AgencyQueryControllerApi.ts +96 -0
  123. package/src/apis/LeadControllerApi.ts +851 -0
  124. package/src/apis/LeadQueryControllerApi.ts +195 -0
  125. package/src/apis/PublicAgencyControllerApi.ts +0 -60
  126. package/src/apis/index.ts +3 -0
  127. package/src/models/AddressRefRequest.ts +114 -0
  128. package/src/models/AssignToMemberRequest.ts +66 -0
  129. package/src/models/ChangeStatusRequest.ts +81 -0
  130. package/src/models/ContactInfoRequest.ts +90 -0
  131. package/src/models/CoordinatesRequest.ts +75 -0
  132. package/src/models/CreateLeadRequest.ts +90 -0
  133. package/src/models/LeadProjectionResponse.ts +213 -0
  134. package/src/models/ListingIntentRequest.ts +160 -0
  135. package/src/models/ListingIntentResponse.ts +201 -0
  136. package/src/models/LocationRefRequest.ts +97 -0
  137. package/src/models/PageLeadProjectionResponse.ts +167 -0
  138. package/src/models/PageRoleResponse.ts +4 -4
  139. package/src/models/PageableObject.ts +8 -8
  140. package/src/models/PriceRangeRequest.ts +73 -0
  141. package/src/models/SearchIntentRequest.ts +160 -0
  142. package/src/models/SearchIntentResponse.ts +185 -0
  143. package/src/models/SourceRequest.ts +66 -0
  144. package/src/models/UpdateNoteRequest.ts +66 -0
  145. package/src/models/index.ts +16 -0
@@ -0,0 +1,195 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ LeadProjectionResponse,
19
+ PageLeadProjectionResponse,
20
+ } from '../models/index';
21
+ import {
22
+ LeadProjectionResponseFromJSON,
23
+ LeadProjectionResponseToJSON,
24
+ PageLeadProjectionResponseFromJSON,
25
+ PageLeadProjectionResponseToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface GetLeadByIdRequest {
29
+ leadId: string;
30
+ }
31
+
32
+ export interface SearchLeadsRequest {
33
+ status?: SearchLeadsStatusEnum;
34
+ isSearcher?: boolean;
35
+ isLister?: boolean;
36
+ page?: number;
37
+ size?: number;
38
+ sort?: Array<string>;
39
+ }
40
+
41
+ /**
42
+ * LeadQueryControllerApi - interface
43
+ *
44
+ * @export
45
+ * @interface LeadQueryControllerApiInterface
46
+ */
47
+ export interface LeadQueryControllerApiInterface {
48
+ /**
49
+ *
50
+ * @param {string} leadId
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ * @memberof LeadQueryControllerApiInterface
54
+ */
55
+ getLeadByIdRaw(requestParameters: GetLeadByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadProjectionResponse>>;
56
+
57
+ /**
58
+ */
59
+ getLeadById(requestParameters: GetLeadByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadProjectionResponse>;
60
+
61
+ /**
62
+ *
63
+ * @param {'NEW' | 'ATTEMPTED_CONTACT' | 'CONTACTED' | 'DISQUALIFIED' | 'CONVERTED' | 'LOST'} [status]
64
+ * @param {boolean} [isSearcher]
65
+ * @param {boolean} [isLister]
66
+ * @param {number} [page] Zero-based page index (0..N)
67
+ * @param {number} [size] The size of the page to be returned
68
+ * @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ * @memberof LeadQueryControllerApiInterface
72
+ */
73
+ searchLeadsRaw(requestParameters: SearchLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageLeadProjectionResponse>>;
74
+
75
+ /**
76
+ */
77
+ searchLeads(requestParameters: SearchLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageLeadProjectionResponse>;
78
+
79
+ }
80
+
81
+ /**
82
+ *
83
+ */
84
+ export class LeadQueryControllerApi extends runtime.BaseAPI implements LeadQueryControllerApiInterface {
85
+
86
+ /**
87
+ */
88
+ async getLeadByIdRaw(requestParameters: GetLeadByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadProjectionResponse>> {
89
+ if (requestParameters['leadId'] == null) {
90
+ throw new runtime.RequiredError(
91
+ 'leadId',
92
+ 'Required parameter "leadId" was null or undefined when calling getLeadById().'
93
+ );
94
+ }
95
+
96
+ const queryParameters: any = {};
97
+
98
+ const headerParameters: runtime.HTTPHeaders = {};
99
+
100
+ if (this.configuration && this.configuration.accessToken) {
101
+ // oauth required
102
+ headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
103
+ }
104
+
105
+
106
+ let urlPath = `/lead/{leadId}`;
107
+ urlPath = urlPath.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId'])));
108
+
109
+ const response = await this.request({
110
+ path: urlPath,
111
+ method: 'GET',
112
+ headers: headerParameters,
113
+ query: queryParameters,
114
+ }, initOverrides);
115
+
116
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadProjectionResponseFromJSON(jsonValue));
117
+ }
118
+
119
+ /**
120
+ */
121
+ async getLeadById(requestParameters: GetLeadByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadProjectionResponse> {
122
+ const response = await this.getLeadByIdRaw(requestParameters, initOverrides);
123
+ return await response.value();
124
+ }
125
+
126
+ /**
127
+ */
128
+ async searchLeadsRaw(requestParameters: SearchLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageLeadProjectionResponse>> {
129
+ const queryParameters: any = {};
130
+
131
+ if (requestParameters['status'] != null) {
132
+ queryParameters['status'] = requestParameters['status'];
133
+ }
134
+
135
+ if (requestParameters['isSearcher'] != null) {
136
+ queryParameters['isSearcher'] = requestParameters['isSearcher'];
137
+ }
138
+
139
+ if (requestParameters['isLister'] != null) {
140
+ queryParameters['isLister'] = requestParameters['isLister'];
141
+ }
142
+
143
+ if (requestParameters['page'] != null) {
144
+ queryParameters['page'] = requestParameters['page'];
145
+ }
146
+
147
+ if (requestParameters['size'] != null) {
148
+ queryParameters['size'] = requestParameters['size'];
149
+ }
150
+
151
+ if (requestParameters['sort'] != null) {
152
+ queryParameters['sort'] = requestParameters['sort'];
153
+ }
154
+
155
+ const headerParameters: runtime.HTTPHeaders = {};
156
+
157
+ if (this.configuration && this.configuration.accessToken) {
158
+ // oauth required
159
+ headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
160
+ }
161
+
162
+
163
+ let urlPath = `/lead`;
164
+
165
+ const response = await this.request({
166
+ path: urlPath,
167
+ method: 'GET',
168
+ headers: headerParameters,
169
+ query: queryParameters,
170
+ }, initOverrides);
171
+
172
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageLeadProjectionResponseFromJSON(jsonValue));
173
+ }
174
+
175
+ /**
176
+ */
177
+ async searchLeads(requestParameters: SearchLeadsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageLeadProjectionResponse> {
178
+ const response = await this.searchLeadsRaw(requestParameters, initOverrides);
179
+ return await response.value();
180
+ }
181
+
182
+ }
183
+
184
+ /**
185
+ * @export
186
+ */
187
+ export const SearchLeadsStatusEnum = {
188
+ New: 'NEW',
189
+ AttemptedContact: 'ATTEMPTED_CONTACT',
190
+ Contacted: 'CONTACTED',
191
+ Disqualified: 'DISQUALIFIED',
192
+ Converted: 'CONVERTED',
193
+ Lost: 'LOST'
194
+ } as const;
195
+ export type SearchLeadsStatusEnum = typeof SearchLeadsStatusEnum[keyof typeof SearchLeadsStatusEnum];
@@ -15,23 +15,16 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- AgencyProfileResponse,
19
18
  AgencySummaryResponse,
20
19
  PagedModelAgencySummaryResponse,
21
20
  } from '../models/index';
22
21
  import {
23
- AgencyProfileResponseFromJSON,
24
- AgencyProfileResponseToJSON,
25
22
  AgencySummaryResponseFromJSON,
26
23
  AgencySummaryResponseToJSON,
27
24
  PagedModelAgencySummaryResponseFromJSON,
28
25
  PagedModelAgencySummaryResponseToJSON,
29
26
  } from '../models/index';
30
27
 
31
- export interface GetAgencyRequest {
32
- agencyId: string;
33
- }
34
-
35
28
  export interface GetAgencyBySubdomainRequest {
36
29
  subDomain: string;
37
30
  }
@@ -50,19 +43,6 @@ export interface GetAllAgenciesRequest {
50
43
  * @interface PublicAgencyControllerApiInterface
51
44
  */
52
45
  export interface PublicAgencyControllerApiInterface {
53
- /**
54
- *
55
- * @param {string} agencyId
56
- * @param {*} [options] Override http request option.
57
- * @throws {RequiredError}
58
- * @memberof PublicAgencyControllerApiInterface
59
- */
60
- getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>>;
61
-
62
- /**
63
- */
64
- getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse>;
65
-
66
46
  /**
67
47
  *
68
48
  * @param {string} subDomain
@@ -99,46 +79,6 @@ export interface PublicAgencyControllerApiInterface {
99
79
  */
100
80
  export class PublicAgencyControllerApi extends runtime.BaseAPI implements PublicAgencyControllerApiInterface {
101
81
 
102
- /**
103
- */
104
- async getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyProfileResponse>> {
105
- if (requestParameters['agencyId'] == null) {
106
- throw new runtime.RequiredError(
107
- 'agencyId',
108
- 'Required parameter "agencyId" was null or undefined when calling getAgency().'
109
- );
110
- }
111
-
112
- const queryParameters: any = {};
113
-
114
- const headerParameters: runtime.HTTPHeaders = {};
115
-
116
- if (this.configuration && this.configuration.accessToken) {
117
- // oauth required
118
- headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
119
- }
120
-
121
-
122
- let urlPath = `/public/agency/{agencyId}`;
123
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
124
-
125
- const response = await this.request({
126
- path: urlPath,
127
- method: 'GET',
128
- headers: headerParameters,
129
- query: queryParameters,
130
- }, initOverrides);
131
-
132
- return new runtime.JSONApiResponse(response, (jsonValue) => AgencyProfileResponseFromJSON(jsonValue));
133
- }
134
-
135
- /**
136
- */
137
- async getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyProfileResponse> {
138
- const response = await this.getAgencyRaw(requestParameters, initOverrides);
139
- return await response.value();
140
- }
141
-
142
82
  /**
143
83
  */
144
84
  async getAgencyBySubdomainRaw(requestParameters: GetAgencyBySubdomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencySummaryResponse>> {
package/src/apis/index.ts CHANGED
@@ -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,114 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { CoordinatesRequest } from './CoordinatesRequest';
17
+ import {
18
+ CoordinatesRequestFromJSON,
19
+ CoordinatesRequestFromJSONTyped,
20
+ CoordinatesRequestToJSON,
21
+ CoordinatesRequestToJSONTyped,
22
+ } from './CoordinatesRequest';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AddressRefRequest
28
+ */
29
+ export interface AddressRefRequest {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AddressRefRequest
34
+ */
35
+ regionId?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AddressRefRequest
40
+ */
41
+ cityId?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AddressRefRequest
46
+ */
47
+ districtId?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AddressRefRequest
52
+ */
53
+ subDistrictId?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof AddressRefRequest
58
+ */
59
+ streetId?: number;
60
+ /**
61
+ *
62
+ * @type {CoordinatesRequest}
63
+ * @memberof AddressRefRequest
64
+ */
65
+ coordinates: CoordinatesRequest;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the AddressRefRequest interface.
70
+ */
71
+ export function instanceOfAddressRefRequest(value: object): value is AddressRefRequest {
72
+ if (!('coordinates' in value) || value['coordinates'] === undefined) return false;
73
+ return true;
74
+ }
75
+
76
+ export function AddressRefRequestFromJSON(json: any): AddressRefRequest {
77
+ return AddressRefRequestFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function AddressRefRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressRefRequest {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'regionId': json['regionId'] == null ? undefined : json['regionId'],
87
+ 'cityId': json['cityId'] == null ? undefined : json['cityId'],
88
+ 'districtId': json['districtId'] == null ? undefined : json['districtId'],
89
+ 'subDistrictId': json['subDistrictId'] == null ? undefined : json['subDistrictId'],
90
+ 'streetId': json['streetId'] == null ? undefined : json['streetId'],
91
+ 'coordinates': CoordinatesRequestFromJSON(json['coordinates']),
92
+ };
93
+ }
94
+
95
+ export function AddressRefRequestToJSON(json: any): AddressRefRequest {
96
+ return AddressRefRequestToJSONTyped(json, false);
97
+ }
98
+
99
+ export function AddressRefRequestToJSONTyped(value?: AddressRefRequest | null, ignoreDiscriminator: boolean = false): any {
100
+ if (value == null) {
101
+ return value;
102
+ }
103
+
104
+ return {
105
+
106
+ 'regionId': value['regionId'],
107
+ 'cityId': value['cityId'],
108
+ 'districtId': value['districtId'],
109
+ 'subDistrictId': value['subDistrictId'],
110
+ 'streetId': value['streetId'],
111
+ 'coordinates': CoordinatesRequestToJSON(value['coordinates']),
112
+ };
113
+ }
114
+
@@ -0,0 +1,66 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AssignToMemberRequest
20
+ */
21
+ export interface AssignToMemberRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AssignToMemberRequest
26
+ */
27
+ memberId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AssignToMemberRequest interface.
32
+ */
33
+ export function instanceOfAssignToMemberRequest(value: object): value is AssignToMemberRequest {
34
+ if (!('memberId' in value) || value['memberId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AssignToMemberRequestFromJSON(json: any): AssignToMemberRequest {
39
+ return AssignToMemberRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AssignToMemberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignToMemberRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'memberId': json['memberId'],
49
+ };
50
+ }
51
+
52
+ export function AssignToMemberRequestToJSON(json: any): AssignToMemberRequest {
53
+ return AssignToMemberRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AssignToMemberRequestToJSONTyped(value?: AssignToMemberRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'memberId': value['memberId'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,81 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ChangeStatusRequest
20
+ */
21
+ export interface ChangeStatusRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ChangeStatusRequest
26
+ */
27
+ status: ChangeStatusRequestStatusEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const ChangeStatusRequestStatusEnum = {
35
+ New: 'NEW',
36
+ AttemptedContact: 'ATTEMPTED_CONTACT',
37
+ Contacted: 'CONTACTED',
38
+ Disqualified: 'DISQUALIFIED',
39
+ Converted: 'CONVERTED',
40
+ Lost: 'LOST'
41
+ } as const;
42
+ export type ChangeStatusRequestStatusEnum = typeof ChangeStatusRequestStatusEnum[keyof typeof ChangeStatusRequestStatusEnum];
43
+
44
+
45
+ /**
46
+ * Check if a given object implements the ChangeStatusRequest interface.
47
+ */
48
+ export function instanceOfChangeStatusRequest(value: object): value is ChangeStatusRequest {
49
+ if (!('status' in value) || value['status'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function ChangeStatusRequestFromJSON(json: any): ChangeStatusRequest {
54
+ return ChangeStatusRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ChangeStatusRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeStatusRequest {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'status': json['status'],
64
+ };
65
+ }
66
+
67
+ export function ChangeStatusRequestToJSON(json: any): ChangeStatusRequest {
68
+ return ChangeStatusRequestToJSONTyped(json, false);
69
+ }
70
+
71
+ export function ChangeStatusRequestToJSONTyped(value?: ChangeStatusRequest | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'status': value['status'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,90 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ContactInfoRequest
20
+ */
21
+ export interface ContactInfoRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ContactInfoRequest
26
+ */
27
+ firstName?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ContactInfoRequest
32
+ */
33
+ lastName?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ContactInfoRequest
38
+ */
39
+ email?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ContactInfoRequest
44
+ */
45
+ phone: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ContactInfoRequest interface.
50
+ */
51
+ export function instanceOfContactInfoRequest(value: object): value is ContactInfoRequest {
52
+ if (!('phone' in value) || value['phone'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function ContactInfoRequestFromJSON(json: any): ContactInfoRequest {
57
+ return ContactInfoRequestFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function ContactInfoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInfoRequest {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
67
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
68
+ 'email': json['email'] == null ? undefined : json['email'],
69
+ 'phone': json['phone'],
70
+ };
71
+ }
72
+
73
+ export function ContactInfoRequestToJSON(json: any): ContactInfoRequest {
74
+ return ContactInfoRequestToJSONTyped(json, false);
75
+ }
76
+
77
+ export function ContactInfoRequestToJSONTyped(value?: ContactInfoRequest | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'firstName': value['firstName'],
85
+ 'lastName': value['lastName'],
86
+ 'email': value['email'],
87
+ 'phone': value['phone'],
88
+ };
89
+ }
90
+