@homespot-sdk/api 0.0.640 → 0.0.641

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 (84) hide show
  1. package/.openapi-generator/FILES +4 -12
  2. package/README.md +6 -12
  3. package/dist/apis/LeadControllerApi.d.ts +15 -71
  4. package/dist/apis/LeadControllerApi.js +18 -109
  5. package/dist/esm/apis/LeadControllerApi.d.ts +15 -71
  6. package/dist/esm/apis/LeadControllerApi.js +18 -109
  7. package/dist/esm/models/IntentResponse.d.ts +136 -0
  8. package/dist/esm/models/{SearchIntentResponse.js → IntentResponse.js} +37 -26
  9. package/dist/esm/models/LeadIntentRequest.d.ts +114 -0
  10. package/dist/esm/models/{SearchIntentRequest.js → LeadIntentRequest.js} +35 -22
  11. package/dist/esm/models/LeadProjectionResponse.d.ts +6 -19
  12. package/dist/esm/models/LeadProjectionResponse.js +11 -16
  13. package/dist/esm/models/LocationRefRequest.d.ts +0 -6
  14. package/dist/esm/models/LocationRefRequest.js +0 -2
  15. package/dist/esm/models/PageLeadProjectionResponse.d.ts +6 -6
  16. package/dist/esm/models/PageLeadProjectionResponse.js +2 -2
  17. package/dist/esm/models/PageRoleResponse.d.ts +6 -6
  18. package/dist/esm/models/PageRoleResponse.js +2 -2
  19. package/dist/esm/models/PageableObject.d.ts +6 -6
  20. package/dist/esm/models/PageableObject.js +2 -2
  21. package/dist/esm/models/index.d.ts +2 -6
  22. package/dist/esm/models/index.js +2 -6
  23. package/dist/models/IntentResponse.d.ts +136 -0
  24. package/dist/models/{SearchIntentResponse.js → IntentResponse.js} +43 -32
  25. package/dist/models/LeadIntentRequest.d.ts +114 -0
  26. package/dist/models/{SearchIntentRequest.js → LeadIntentRequest.js} +41 -28
  27. package/dist/models/LeadProjectionResponse.d.ts +6 -19
  28. package/dist/models/LeadProjectionResponse.js +11 -16
  29. package/dist/models/LocationRefRequest.d.ts +0 -6
  30. package/dist/models/LocationRefRequest.js +0 -2
  31. package/dist/models/PageLeadProjectionResponse.d.ts +6 -6
  32. package/dist/models/PageLeadProjectionResponse.js +2 -2
  33. package/dist/models/PageRoleResponse.d.ts +6 -6
  34. package/dist/models/PageRoleResponse.js +2 -2
  35. package/dist/models/PageableObject.d.ts +6 -6
  36. package/dist/models/PageableObject.js +2 -2
  37. package/dist/models/index.d.ts +2 -6
  38. package/dist/models/index.js +2 -6
  39. package/docs/{SearchIntentResponse.md → IntentResponse.md} +12 -12
  40. package/docs/LeadControllerApi.md +19 -171
  41. package/docs/{SearchIntentRequest.md → LeadIntentRequest.md} +10 -8
  42. package/docs/LeadProjectionResponse.md +8 -12
  43. package/docs/LocationRefRequest.md +0 -2
  44. package/docs/PageLeadProjectionResponse.md +2 -2
  45. package/docs/PageRoleResponse.md +2 -2
  46. package/docs/PageableObject.md +2 -2
  47. package/package.json +1 -1
  48. package/src/apis/LeadControllerApi.ts +32 -206
  49. package/src/models/{SearchIntentResponse.ts → IntentResponse.ts} +60 -48
  50. package/src/models/{SearchIntentRequest.ts → LeadIntentRequest.ts} +55 -35
  51. package/src/models/LeadProjectionResponse.ts +21 -44
  52. package/src/models/LocationRefRequest.ts +0 -8
  53. package/src/models/PageLeadProjectionResponse.ts +8 -8
  54. package/src/models/PageRoleResponse.ts +8 -8
  55. package/src/models/PageableObject.ts +8 -8
  56. package/src/models/index.ts +2 -6
  57. package/dist/esm/models/AddressRefRequest.d.ts +0 -63
  58. package/dist/esm/models/AddressRefRequest.js +0 -54
  59. package/dist/esm/models/CoordinatesRequest.d.ts +0 -38
  60. package/dist/esm/models/CoordinatesRequest.js +0 -47
  61. package/dist/esm/models/ListingIntentRequest.d.ts +0 -98
  62. package/dist/esm/models/ListingIntentRequest.js +0 -89
  63. package/dist/esm/models/ListingIntentResponse.d.ts +0 -138
  64. package/dist/esm/models/ListingIntentResponse.js +0 -101
  65. package/dist/esm/models/SearchIntentRequest.d.ts +0 -98
  66. package/dist/esm/models/SearchIntentResponse.d.ts +0 -126
  67. package/dist/models/AddressRefRequest.d.ts +0 -63
  68. package/dist/models/AddressRefRequest.js +0 -61
  69. package/dist/models/CoordinatesRequest.d.ts +0 -38
  70. package/dist/models/CoordinatesRequest.js +0 -54
  71. package/dist/models/ListingIntentRequest.d.ts +0 -98
  72. package/dist/models/ListingIntentRequest.js +0 -97
  73. package/dist/models/ListingIntentResponse.d.ts +0 -138
  74. package/dist/models/ListingIntentResponse.js +0 -109
  75. package/dist/models/SearchIntentRequest.d.ts +0 -98
  76. package/dist/models/SearchIntentResponse.d.ts +0 -126
  77. package/docs/AddressRefRequest.md +0 -44
  78. package/docs/CoordinatesRequest.md +0 -36
  79. package/docs/ListingIntentRequest.md +0 -44
  80. package/docs/ListingIntentResponse.md +0 -58
  81. package/src/models/AddressRefRequest.ts +0 -114
  82. package/src/models/CoordinatesRequest.ts +0 -75
  83. package/src/models/ListingIntentRequest.ts +0 -160
  84. package/src/models/ListingIntentResponse.ts +0 -201
@@ -1,98 +0,0 @@
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 { LocationRefRequest } from './LocationRefRequest';
13
- import type { PriceRangeRequest } from './PriceRangeRequest';
14
- /**
15
- *
16
- * @export
17
- * @interface SearchIntentRequest
18
- */
19
- export interface SearchIntentRequest {
20
- /**
21
- *
22
- * @type {string}
23
- * @memberof SearchIntentRequest
24
- */
25
- propertyType: SearchIntentRequestPropertyTypeEnum;
26
- /**
27
- *
28
- * @type {string}
29
- * @memberof SearchIntentRequest
30
- */
31
- dealType: SearchIntentRequestDealTypeEnum;
32
- /**
33
- *
34
- * @type {PriceRangeRequest}
35
- * @memberof SearchIntentRequest
36
- */
37
- budget?: PriceRangeRequest;
38
- /**
39
- *
40
- * @type {LocationRefRequest}
41
- * @memberof SearchIntentRequest
42
- */
43
- targetLocation?: LocationRefRequest;
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof SearchIntentRequest
48
- */
49
- area?: number;
50
- /**
51
- *
52
- * @type {number}
53
- * @memberof SearchIntentRequest
54
- */
55
- numberOfRooms?: number;
56
- }
57
- /**
58
- * @export
59
- */
60
- export declare const SearchIntentRequestPropertyTypeEnum: {
61
- readonly House: "HOUSE";
62
- readonly TownHouse: "TOWN_HOUSE";
63
- readonly CountryHouse: "COUNTRY_HOUSE";
64
- readonly Villa: "VILLA";
65
- readonly Cottage: "COTTAGE";
66
- readonly Apartment: "APARTMENT";
67
- readonly Duplex: "DUPLEX";
68
- readonly Triplex: "TRIPLEX";
69
- readonly SemiBasement: "SEMI_BASEMENT";
70
- readonly Attic: "ATTIC";
71
- readonly AgriculturalLand: "AGRICULTURAL_LAND";
72
- readonly ResidentialLand: "RESIDENTIAL_LAND";
73
- readonly HotelRoom: "HOTEL_ROOM";
74
- readonly MotelRoom: "MOTEL_ROOM";
75
- readonly CoLivingSpace: "CO_LIVING_SPACE";
76
- readonly Office: "OFFICE";
77
- readonly CommercialSpace: "COMMERCIAL_SPACE";
78
- readonly CoWorkingSpace: "CO_WORKING_SPACE";
79
- readonly Warehouse: "WAREHOUSE";
80
- readonly Garage: "GARAGE";
81
- };
82
- export type SearchIntentRequestPropertyTypeEnum = typeof SearchIntentRequestPropertyTypeEnum[keyof typeof SearchIntentRequestPropertyTypeEnum];
83
- /**
84
- * @export
85
- */
86
- export declare const SearchIntentRequestDealTypeEnum: {
87
- readonly Buy: "BUY";
88
- readonly Rent: "RENT";
89
- };
90
- export type SearchIntentRequestDealTypeEnum = typeof SearchIntentRequestDealTypeEnum[keyof typeof SearchIntentRequestDealTypeEnum];
91
- /**
92
- * Check if a given object implements the SearchIntentRequest interface.
93
- */
94
- export declare function instanceOfSearchIntentRequest(value: object): value is SearchIntentRequest;
95
- export declare function SearchIntentRequestFromJSON(json: any): SearchIntentRequest;
96
- export declare function SearchIntentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchIntentRequest;
97
- export declare function SearchIntentRequestToJSON(json: any): SearchIntentRequest;
98
- export declare function SearchIntentRequestToJSONTyped(value?: SearchIntentRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,126 +0,0 @@
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 SearchIntentResponse
16
- */
17
- export interface SearchIntentResponse {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SearchIntentResponse
22
- */
23
- propertyType: SearchIntentResponsePropertyTypeEnum;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof SearchIntentResponse
28
- */
29
- dealType: SearchIntentResponseDealTypeEnum;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof SearchIntentResponse
34
- */
35
- budgetMin?: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof SearchIntentResponse
40
- */
41
- budgetMax?: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof SearchIntentResponse
46
- */
47
- regionId?: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof SearchIntentResponse
52
- */
53
- cityId?: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof SearchIntentResponse
58
- */
59
- districtId?: number;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof SearchIntentResponse
64
- */
65
- subDistrictId?: number;
66
- /**
67
- *
68
- * @type {number}
69
- * @memberof SearchIntentResponse
70
- */
71
- streetId?: number;
72
- /**
73
- *
74
- * @type {number}
75
- * @memberof SearchIntentResponse
76
- */
77
- area?: number;
78
- /**
79
- *
80
- * @type {number}
81
- * @memberof SearchIntentResponse
82
- */
83
- numberOfRooms?: number;
84
- }
85
- /**
86
- * @export
87
- */
88
- export declare const SearchIntentResponsePropertyTypeEnum: {
89
- readonly House: "HOUSE";
90
- readonly TownHouse: "TOWN_HOUSE";
91
- readonly CountryHouse: "COUNTRY_HOUSE";
92
- readonly Villa: "VILLA";
93
- readonly Cottage: "COTTAGE";
94
- readonly Apartment: "APARTMENT";
95
- readonly Duplex: "DUPLEX";
96
- readonly Triplex: "TRIPLEX";
97
- readonly SemiBasement: "SEMI_BASEMENT";
98
- readonly Attic: "ATTIC";
99
- readonly AgriculturalLand: "AGRICULTURAL_LAND";
100
- readonly ResidentialLand: "RESIDENTIAL_LAND";
101
- readonly HotelRoom: "HOTEL_ROOM";
102
- readonly MotelRoom: "MOTEL_ROOM";
103
- readonly CoLivingSpace: "CO_LIVING_SPACE";
104
- readonly Office: "OFFICE";
105
- readonly CommercialSpace: "COMMERCIAL_SPACE";
106
- readonly CoWorkingSpace: "CO_WORKING_SPACE";
107
- readonly Warehouse: "WAREHOUSE";
108
- readonly Garage: "GARAGE";
109
- };
110
- export type SearchIntentResponsePropertyTypeEnum = typeof SearchIntentResponsePropertyTypeEnum[keyof typeof SearchIntentResponsePropertyTypeEnum];
111
- /**
112
- * @export
113
- */
114
- export declare const SearchIntentResponseDealTypeEnum: {
115
- readonly Buy: "BUY";
116
- readonly Rent: "RENT";
117
- };
118
- export type SearchIntentResponseDealTypeEnum = typeof SearchIntentResponseDealTypeEnum[keyof typeof SearchIntentResponseDealTypeEnum];
119
- /**
120
- * Check if a given object implements the SearchIntentResponse interface.
121
- */
122
- export declare function instanceOfSearchIntentResponse(value: object): value is SearchIntentResponse;
123
- export declare function SearchIntentResponseFromJSON(json: any): SearchIntentResponse;
124
- export declare function SearchIntentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchIntentResponse;
125
- export declare function SearchIntentResponseToJSON(json: any): SearchIntentResponse;
126
- export declare function SearchIntentResponseToJSONTyped(value?: SearchIntentResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,44 +0,0 @@
1
-
2
- # AddressRefRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `regionId` | number
10
- `cityId` | number
11
- `districtId` | number
12
- `subDistrictId` | number
13
- `streetId` | number
14
- `coordinates` | [CoordinatesRequest](CoordinatesRequest.md)
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import type { AddressRefRequest } from '@homespot-sdk/api'
20
-
21
- // TODO: Update the object below with actual values
22
- const example = {
23
- "regionId": null,
24
- "cityId": null,
25
- "districtId": null,
26
- "subDistrictId": null,
27
- "streetId": null,
28
- "coordinates": null,
29
- } satisfies AddressRefRequest
30
-
31
- console.log(example)
32
-
33
- // Convert the instance to a JSON string
34
- const exampleJSON: string = JSON.stringify(example)
35
- console.log(exampleJSON)
36
-
37
- // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as AddressRefRequest
39
- console.log(exampleParsed)
40
- ```
41
-
42
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
-
44
-
@@ -1,36 +0,0 @@
1
-
2
- # CoordinatesRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `lat` | number
10
- `lng` | number
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { CoordinatesRequest } from '@homespot-sdk/api'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "lat": null,
20
- "lng": null,
21
- } satisfies CoordinatesRequest
22
-
23
- console.log(example)
24
-
25
- // Convert the instance to a JSON string
26
- const exampleJSON: string = JSON.stringify(example)
27
- console.log(exampleJSON)
28
-
29
- // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as CoordinatesRequest
31
- console.log(exampleParsed)
32
- ```
33
-
34
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
-
36
-
@@ -1,44 +0,0 @@
1
-
2
- # ListingIntentRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `propertyType` | string
10
- `dealType` | string
11
- `desiredPrice` | [PriceRangeRequest](PriceRangeRequest.md)
12
- `address` | [AddressRefRequest](AddressRefRequest.md)
13
- `area` | number
14
- `numberOfRooms` | number
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import type { ListingIntentRequest } from '@homespot-sdk/api'
20
-
21
- // TODO: Update the object below with actual values
22
- const example = {
23
- "propertyType": null,
24
- "dealType": null,
25
- "desiredPrice": null,
26
- "address": null,
27
- "area": null,
28
- "numberOfRooms": null,
29
- } satisfies ListingIntentRequest
30
-
31
- console.log(example)
32
-
33
- // Convert the instance to a JSON string
34
- const exampleJSON: string = JSON.stringify(example)
35
- console.log(exampleJSON)
36
-
37
- // Parse the JSON string back to an object
38
- const exampleParsed = JSON.parse(exampleJSON) as ListingIntentRequest
39
- console.log(exampleParsed)
40
- ```
41
-
42
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
-
44
-
@@ -1,58 +0,0 @@
1
-
2
- # ListingIntentResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `propertyType` | string
10
- `dealType` | string
11
- `desiredPriceMin` | number
12
- `desiredPriceMax` | number
13
- `regionId` | number
14
- `cityId` | number
15
- `districtId` | number
16
- `subDistrictId` | number
17
- `streetId` | number
18
- `lat` | number
19
- `lng` | number
20
- `area` | number
21
- `numberOfRooms` | number
22
-
23
- ## Example
24
-
25
- ```typescript
26
- import type { ListingIntentResponse } from '@homespot-sdk/api'
27
-
28
- // TODO: Update the object below with actual values
29
- const example = {
30
- "propertyType": null,
31
- "dealType": null,
32
- "desiredPriceMin": null,
33
- "desiredPriceMax": null,
34
- "regionId": null,
35
- "cityId": null,
36
- "districtId": null,
37
- "subDistrictId": null,
38
- "streetId": null,
39
- "lat": null,
40
- "lng": null,
41
- "area": null,
42
- "numberOfRooms": null,
43
- } satisfies ListingIntentResponse
44
-
45
- console.log(example)
46
-
47
- // Convert the instance to a JSON string
48
- const exampleJSON: string = JSON.stringify(example)
49
- console.log(exampleJSON)
50
-
51
- // Parse the JSON string back to an object
52
- const exampleParsed = JSON.parse(exampleJSON) as ListingIntentResponse
53
- console.log(exampleParsed)
54
- ```
55
-
56
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
57
-
58
-
@@ -1,114 +0,0 @@
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
-
@@ -1,75 +0,0 @@
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 CoordinatesRequest
20
- */
21
- export interface CoordinatesRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof CoordinatesRequest
26
- */
27
- lat: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof CoordinatesRequest
32
- */
33
- lng: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CoordinatesRequest interface.
38
- */
39
- export function instanceOfCoordinatesRequest(value: object): value is CoordinatesRequest {
40
- if (!('lat' in value) || value['lat'] === undefined) return false;
41
- if (!('lng' in value) || value['lng'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function CoordinatesRequestFromJSON(json: any): CoordinatesRequest {
46
- return CoordinatesRequestFromJSONTyped(json, false);
47
- }
48
-
49
- export function CoordinatesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoordinatesRequest {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'lat': json['lat'],
56
- 'lng': json['lng'],
57
- };
58
- }
59
-
60
- export function CoordinatesRequestToJSON(json: any): CoordinatesRequest {
61
- return CoordinatesRequestToJSONTyped(json, false);
62
- }
63
-
64
- export function CoordinatesRequestToJSONTyped(value?: CoordinatesRequest | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'lat': value['lat'],
72
- 'lng': value['lng'],
73
- };
74
- }
75
-