@homespot-sdk/api 0.0.630 → 0.0.632

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 (33) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +7 -5
  3. package/dist/apis/AgencyQueryControllerApi.d.ts +5 -4
  4. package/dist/apis/AgencyQueryControllerApi.js +4 -2
  5. package/dist/esm/apis/AgencyQueryControllerApi.d.ts +5 -4
  6. package/dist/esm/apis/AgencyQueryControllerApi.js +4 -2
  7. package/dist/esm/models/AddressViewResponse.d.ts +56 -0
  8. package/dist/esm/models/AddressViewResponse.js +59 -0
  9. package/dist/esm/models/AgencyViewResponse.d.ts +69 -0
  10. package/dist/esm/models/AgencyViewResponse.js +68 -0
  11. package/dist/esm/models/index.d.ts +2 -0
  12. package/dist/esm/models/index.js +2 -0
  13. package/dist/esm/runtime.js +1 -1
  14. package/dist/models/AddressViewResponse.d.ts +56 -0
  15. package/dist/models/AddressViewResponse.js +66 -0
  16. package/dist/models/AgencyViewResponse.d.ts +69 -0
  17. package/dist/models/AgencyViewResponse.js +75 -0
  18. package/dist/models/index.d.ts +2 -0
  19. package/dist/models/index.js +2 -0
  20. package/dist/runtime.js +1 -1
  21. package/docs/AddressViewResponse.md +42 -0
  22. package/docs/AgencyControllerApi.md +1 -1
  23. package/docs/AgencyQueryControllerApi.md +4 -4
  24. package/docs/AgencyViewResponse.md +46 -0
  25. package/docs/InvitationControllerApi.md +1 -1
  26. package/docs/InvitationQueryControllerApi.md +1 -1
  27. package/docs/UserQueryControllerApi.md +1 -1
  28. package/package.json +1 -1
  29. package/src/apis/AgencyQueryControllerApi.ts +14 -6
  30. package/src/models/AddressViewResponse.ts +102 -0
  31. package/src/models/AgencyViewResponse.ts +128 -0
  32. package/src/models/index.ts +2 -0
  33. package/src/runtime.ts +1 -1
@@ -3,8 +3,10 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  docs/AddressRequest.md
6
+ docs/AddressViewResponse.md
6
7
  docs/AgencyControllerApi.md
7
8
  docs/AgencyQueryControllerApi.md
9
+ docs/AgencyViewResponse.md
8
10
  docs/CreateAgencyRequest.md
9
11
  docs/IdResponse.md
10
12
  docs/InvitationControllerApi.md
@@ -31,6 +33,8 @@ src/apis/UserQueryControllerApi.ts
31
33
  src/apis/index.ts
32
34
  src/index.ts
33
35
  src/models/AddressRequest.ts
36
+ src/models/AddressViewResponse.ts
37
+ src/models/AgencyViewResponse.ts
34
38
  src/models/CreateAgencyRequest.ts
35
39
  src/models/IdResponse.ts
36
40
  src/models/InvitationViewResponse.ts
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # @homespot-sdk/api@0.0.630
1
+ # @homespot-sdk/api@0.0.632
2
2
 
3
- A TypeScript SDK client for the localhost API.
3
+ A TypeScript SDK client for the gateway.dev.homespot.ge API.
4
4
 
5
5
  ## Usage
6
6
 
@@ -50,7 +50,7 @@ example().catch(console.error);
50
50
 
51
51
  ### API Endpoints
52
52
 
53
- All URIs are relative to *http://localhost:8080*
53
+ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
54
54
 
55
55
  | Class | Method | HTTP request | Description
56
56
  | ----- | ------ | ------------ | -------------
@@ -74,6 +74,8 @@ All URIs are relative to *http://localhost:8080*
74
74
  ### Models
75
75
 
76
76
  - [AddressRequest](docs/AddressRequest.md)
77
+ - [AddressViewResponse](docs/AddressViewResponse.md)
78
+ - [AgencyViewResponse](docs/AgencyViewResponse.md)
77
79
  - [CreateAgencyRequest](docs/CreateAgencyRequest.md)
78
80
  - [IdResponse](docs/IdResponse.md)
79
81
  - [InvitationViewResponse](docs/InvitationViewResponse.md)
@@ -99,7 +101,7 @@ Authentication schemes defined for the API:
99
101
 
100
102
  - **Type**: OAuth
101
103
  - **Flow**: accessCode
102
- - **Authorization URL**: http://127.0.0.1:8088/realms/homespot/protocol/openid-connect/auth
104
+ - **Authorization URL**: https://keycloak.dev.homespot.ge/realms/homespot/protocol/openid-connect/auth
103
105
  - **Scopes**:
104
106
  - `openid`: OpenID Connect
105
107
  - `profile`: User profile
@@ -111,7 +113,7 @@ and is automatically generated by the
111
113
  [OpenAPI Generator](https://openapi-generator.tech) project:
112
114
 
113
115
  - API version: `v1`
114
- - Package version: `0.0.630`
116
+ - Package version: `0.0.632`
115
117
  - Generator version: `7.18.0`
116
118
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
117
119
 
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
+ import type { AgencyViewResponse } from '../models/index';
13
14
  export interface GetAgencyRequest {
14
15
  agencyId: string;
15
16
  }
@@ -27,10 +28,10 @@ export interface AgencyQueryControllerApiInterface {
27
28
  * @throws {RequiredError}
28
29
  * @memberof AgencyQueryControllerApiInterface
29
30
  */
30
- getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
31
+ getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
31
32
  /**
32
33
  */
33
- getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
34
+ getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
34
35
  }
35
36
  /**
36
37
  *
@@ -38,8 +39,8 @@ export interface AgencyQueryControllerApiInterface {
38
39
  export declare class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQueryControllerApiInterface {
39
40
  /**
40
41
  */
41
- getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
42
+ getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
42
43
  /**
43
44
  */
44
- getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
45
+ getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
45
46
  }
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.AgencyQueryControllerApi = void 0;
26
26
  const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
27
28
  /**
28
29
  *
29
30
  */
@@ -49,14 +50,15 @@ class AgencyQueryControllerApi extends runtime.BaseAPI {
49
50
  headers: headerParameters,
50
51
  query: queryParameters,
51
52
  }, initOverrides);
52
- return new runtime.VoidApiResponse(response);
53
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgencyViewResponseFromJSON)(jsonValue));
53
54
  });
54
55
  }
55
56
  /**
56
57
  */
57
58
  getAgency(requestParameters, initOverrides) {
58
59
  return __awaiter(this, void 0, void 0, function* () {
59
- yield this.getAgencyRaw(requestParameters, initOverrides);
60
+ const response = yield this.getAgencyRaw(requestParameters, initOverrides);
61
+ return yield response.value();
60
62
  });
61
63
  }
62
64
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
+ import type { AgencyViewResponse } from '../models/index';
13
14
  export interface GetAgencyRequest {
14
15
  agencyId: string;
15
16
  }
@@ -27,10 +28,10 @@ export interface AgencyQueryControllerApiInterface {
27
28
  * @throws {RequiredError}
28
29
  * @memberof AgencyQueryControllerApiInterface
29
30
  */
30
- getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
31
+ getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
31
32
  /**
32
33
  */
33
- getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
34
+ getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
34
35
  }
35
36
  /**
36
37
  *
@@ -38,8 +39,8 @@ export interface AgencyQueryControllerApiInterface {
38
39
  export declare class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQueryControllerApiInterface {
39
40
  /**
40
41
  */
41
- getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
42
+ getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
42
43
  /**
43
44
  */
44
- getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
45
+ getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
45
46
  }
@@ -21,6 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
+ import { AgencyViewResponseFromJSON, } from '../models/index';
24
25
  /**
25
26
  *
26
27
  */
@@ -46,14 +47,15 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI {
46
47
  headers: headerParameters,
47
48
  query: queryParameters,
48
49
  }, initOverrides);
49
- return new runtime.VoidApiResponse(response);
50
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgencyViewResponseFromJSON(jsonValue));
50
51
  });
51
52
  }
52
53
  /**
53
54
  */
54
55
  getAgency(requestParameters, initOverrides) {
55
56
  return __awaiter(this, void 0, void 0, function* () {
56
- yield this.getAgencyRaw(requestParameters, initOverrides);
57
+ const response = yield this.getAgencyRaw(requestParameters, initOverrides);
58
+ return yield response.value();
57
59
  });
58
60
  }
59
61
  }
@@ -0,0 +1,56 @@
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 AddressViewResponse
16
+ */
17
+ export interface AddressViewResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AddressViewResponse
22
+ */
23
+ country: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AddressViewResponse
28
+ */
29
+ city: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AddressViewResponse
34
+ */
35
+ district: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AddressViewResponse
40
+ */
41
+ subdistrict: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AddressViewResponse
46
+ */
47
+ street: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AddressViewResponse interface.
51
+ */
52
+ export declare function instanceOfAddressViewResponse(value: object): value is AddressViewResponse;
53
+ export declare function AddressViewResponseFromJSON(json: any): AddressViewResponse;
54
+ export declare function AddressViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressViewResponse;
55
+ export declare function AddressViewResponseToJSON(json: any): AddressViewResponse;
56
+ export declare function AddressViewResponseToJSONTyped(value?: AddressViewResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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 AddressViewResponse interface.
16
+ */
17
+ export function instanceOfAddressViewResponse(value) {
18
+ if (!('country' in value) || value['country'] === undefined)
19
+ return false;
20
+ if (!('city' in value) || value['city'] === undefined)
21
+ return false;
22
+ if (!('district' in value) || value['district'] === undefined)
23
+ return false;
24
+ if (!('subdistrict' in value) || value['subdistrict'] === undefined)
25
+ return false;
26
+ if (!('street' in value) || value['street'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function AddressViewResponseFromJSON(json) {
31
+ return AddressViewResponseFromJSONTyped(json, false);
32
+ }
33
+ export function AddressViewResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'country': json['country'],
39
+ 'city': json['city'],
40
+ 'district': json['district'],
41
+ 'subdistrict': json['subdistrict'],
42
+ 'street': json['street'],
43
+ };
44
+ }
45
+ export function AddressViewResponseToJSON(json) {
46
+ return AddressViewResponseToJSONTyped(json, false);
47
+ }
48
+ export function AddressViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'country': value['country'],
54
+ 'city': value['city'],
55
+ 'district': value['district'],
56
+ 'subdistrict': value['subdistrict'],
57
+ 'street': value['street'],
58
+ };
59
+ }
@@ -0,0 +1,69 @@
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 { AddressViewResponse } from './AddressViewResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AgencyViewResponse
17
+ */
18
+ export interface AgencyViewResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AgencyViewResponse
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AgencyViewResponse
29
+ */
30
+ email: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof AgencyViewResponse
35
+ */
36
+ seats: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AgencyViewResponse
41
+ */
42
+ subDomain: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AgencyViewResponse
47
+ */
48
+ phone: string;
49
+ /**
50
+ *
51
+ * @type {AddressViewResponse}
52
+ * @memberof AgencyViewResponse
53
+ */
54
+ address: AddressViewResponse;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof AgencyViewResponse
59
+ */
60
+ yearSince: number;
61
+ }
62
+ /**
63
+ * Check if a given object implements the AgencyViewResponse interface.
64
+ */
65
+ export declare function instanceOfAgencyViewResponse(value: object): value is AgencyViewResponse;
66
+ export declare function AgencyViewResponseFromJSON(json: any): AgencyViewResponse;
67
+ export declare function AgencyViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyViewResponse;
68
+ export declare function AgencyViewResponseToJSON(json: any): AgencyViewResponse;
69
+ export declare function AgencyViewResponseToJSONTyped(value?: AgencyViewResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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 { AddressViewResponseFromJSON, AddressViewResponseToJSON, } from './AddressViewResponse';
15
+ /**
16
+ * Check if a given object implements the AgencyViewResponse interface.
17
+ */
18
+ export function instanceOfAgencyViewResponse(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('email' in value) || value['email'] === undefined)
22
+ return false;
23
+ if (!('seats' in value) || value['seats'] === undefined)
24
+ return false;
25
+ if (!('subDomain' in value) || value['subDomain'] === undefined)
26
+ return false;
27
+ if (!('phone' in value) || value['phone'] === undefined)
28
+ return false;
29
+ if (!('address' in value) || value['address'] === undefined)
30
+ return false;
31
+ if (!('yearSince' in value) || value['yearSince'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function AgencyViewResponseFromJSON(json) {
36
+ return AgencyViewResponseFromJSONTyped(json, false);
37
+ }
38
+ export function AgencyViewResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'name': json['name'],
44
+ 'email': json['email'],
45
+ 'seats': json['seats'],
46
+ 'subDomain': json['subDomain'],
47
+ 'phone': json['phone'],
48
+ 'address': AddressViewResponseFromJSON(json['address']),
49
+ 'yearSince': json['yearSince'],
50
+ };
51
+ }
52
+ export function AgencyViewResponseToJSON(json) {
53
+ return AgencyViewResponseToJSONTyped(json, false);
54
+ }
55
+ export function AgencyViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'name': value['name'],
61
+ 'email': value['email'],
62
+ 'seats': value['seats'],
63
+ 'subDomain': value['subDomain'],
64
+ 'phone': value['phone'],
65
+ 'address': AddressViewResponseToJSON(value['address']),
66
+ 'yearSince': value['yearSince'],
67
+ };
68
+ }
@@ -1,4 +1,6 @@
1
1
  export * from './AddressRequest';
2
+ export * from './AddressViewResponse';
3
+ export * from './AgencyViewResponse';
2
4
  export * from './CreateAgencyRequest';
3
5
  export * from './IdResponse';
4
6
  export * from './InvitationViewResponse';
@@ -1,6 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AddressRequest';
4
+ export * from './AddressViewResponse';
5
+ export * from './AgencyViewResponse';
4
6
  export * from './CreateAgencyRequest';
5
7
  export * from './IdResponse';
6
8
  export * from './InvitationViewResponse';
@@ -20,7 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  step((generator = generator.apply(thisArg, _arguments || [])).next());
21
21
  });
22
22
  };
23
- export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, "");
23
+ export const BASE_PATH = "https://gateway.dev.homespot.ge/rem".replace(/\/+$/, "");
24
24
  export class Configuration {
25
25
  constructor(configuration = {}) {
26
26
  this.configuration = configuration;
@@ -0,0 +1,56 @@
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 AddressViewResponse
16
+ */
17
+ export interface AddressViewResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AddressViewResponse
22
+ */
23
+ country: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AddressViewResponse
28
+ */
29
+ city: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AddressViewResponse
34
+ */
35
+ district: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AddressViewResponse
40
+ */
41
+ subdistrict: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AddressViewResponse
46
+ */
47
+ street: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AddressViewResponse interface.
51
+ */
52
+ export declare function instanceOfAddressViewResponse(value: object): value is AddressViewResponse;
53
+ export declare function AddressViewResponseFromJSON(json: any): AddressViewResponse;
54
+ export declare function AddressViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressViewResponse;
55
+ export declare function AddressViewResponseToJSON(json: any): AddressViewResponse;
56
+ export declare function AddressViewResponseToJSONTyped(value?: AddressViewResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Service API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
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.instanceOfAddressViewResponse = instanceOfAddressViewResponse;
17
+ exports.AddressViewResponseFromJSON = AddressViewResponseFromJSON;
18
+ exports.AddressViewResponseFromJSONTyped = AddressViewResponseFromJSONTyped;
19
+ exports.AddressViewResponseToJSON = AddressViewResponseToJSON;
20
+ exports.AddressViewResponseToJSONTyped = AddressViewResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AddressViewResponse interface.
23
+ */
24
+ function instanceOfAddressViewResponse(value) {
25
+ if (!('country' in value) || value['country'] === undefined)
26
+ return false;
27
+ if (!('city' in value) || value['city'] === undefined)
28
+ return false;
29
+ if (!('district' in value) || value['district'] === undefined)
30
+ return false;
31
+ if (!('subdistrict' in value) || value['subdistrict'] === undefined)
32
+ return false;
33
+ if (!('street' in value) || value['street'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AddressViewResponseFromJSON(json) {
38
+ return AddressViewResponseFromJSONTyped(json, false);
39
+ }
40
+ function AddressViewResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'country': json['country'],
46
+ 'city': json['city'],
47
+ 'district': json['district'],
48
+ 'subdistrict': json['subdistrict'],
49
+ 'street': json['street'],
50
+ };
51
+ }
52
+ function AddressViewResponseToJSON(json) {
53
+ return AddressViewResponseToJSONTyped(json, false);
54
+ }
55
+ function AddressViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'country': value['country'],
61
+ 'city': value['city'],
62
+ 'district': value['district'],
63
+ 'subdistrict': value['subdistrict'],
64
+ 'street': value['street'],
65
+ };
66
+ }
@@ -0,0 +1,69 @@
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 { AddressViewResponse } from './AddressViewResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AgencyViewResponse
17
+ */
18
+ export interface AgencyViewResponse {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AgencyViewResponse
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AgencyViewResponse
29
+ */
30
+ email: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof AgencyViewResponse
35
+ */
36
+ seats: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AgencyViewResponse
41
+ */
42
+ subDomain: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AgencyViewResponse
47
+ */
48
+ phone: string;
49
+ /**
50
+ *
51
+ * @type {AddressViewResponse}
52
+ * @memberof AgencyViewResponse
53
+ */
54
+ address: AddressViewResponse;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof AgencyViewResponse
59
+ */
60
+ yearSince: number;
61
+ }
62
+ /**
63
+ * Check if a given object implements the AgencyViewResponse interface.
64
+ */
65
+ export declare function instanceOfAgencyViewResponse(value: object): value is AgencyViewResponse;
66
+ export declare function AgencyViewResponseFromJSON(json: any): AgencyViewResponse;
67
+ export declare function AgencyViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyViewResponse;
68
+ export declare function AgencyViewResponseToJSON(json: any): AgencyViewResponse;
69
+ export declare function AgencyViewResponseToJSONTyped(value?: AgencyViewResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Service API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
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.instanceOfAgencyViewResponse = instanceOfAgencyViewResponse;
17
+ exports.AgencyViewResponseFromJSON = AgencyViewResponseFromJSON;
18
+ exports.AgencyViewResponseFromJSONTyped = AgencyViewResponseFromJSONTyped;
19
+ exports.AgencyViewResponseToJSON = AgencyViewResponseToJSON;
20
+ exports.AgencyViewResponseToJSONTyped = AgencyViewResponseToJSONTyped;
21
+ const AddressViewResponse_1 = require("./AddressViewResponse");
22
+ /**
23
+ * Check if a given object implements the AgencyViewResponse interface.
24
+ */
25
+ function instanceOfAgencyViewResponse(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('email' in value) || value['email'] === undefined)
29
+ return false;
30
+ if (!('seats' in value) || value['seats'] === undefined)
31
+ return false;
32
+ if (!('subDomain' in value) || value['subDomain'] === undefined)
33
+ return false;
34
+ if (!('phone' in value) || value['phone'] === undefined)
35
+ return false;
36
+ if (!('address' in value) || value['address'] === undefined)
37
+ return false;
38
+ if (!('yearSince' in value) || value['yearSince'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AgencyViewResponseFromJSON(json) {
43
+ return AgencyViewResponseFromJSONTyped(json, false);
44
+ }
45
+ function AgencyViewResponseFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'name': json['name'],
51
+ 'email': json['email'],
52
+ 'seats': json['seats'],
53
+ 'subDomain': json['subDomain'],
54
+ 'phone': json['phone'],
55
+ 'address': (0, AddressViewResponse_1.AddressViewResponseFromJSON)(json['address']),
56
+ 'yearSince': json['yearSince'],
57
+ };
58
+ }
59
+ function AgencyViewResponseToJSON(json) {
60
+ return AgencyViewResponseToJSONTyped(json, false);
61
+ }
62
+ function AgencyViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'name': value['name'],
68
+ 'email': value['email'],
69
+ 'seats': value['seats'],
70
+ 'subDomain': value['subDomain'],
71
+ 'phone': value['phone'],
72
+ 'address': (0, AddressViewResponse_1.AddressViewResponseToJSON)(value['address']),
73
+ 'yearSince': value['yearSince'],
74
+ };
75
+ }
@@ -1,4 +1,6 @@
1
1
  export * from './AddressRequest';
2
+ export * from './AddressViewResponse';
3
+ export * from './AgencyViewResponse';
2
4
  export * from './CreateAgencyRequest';
3
5
  export * from './IdResponse';
4
6
  export * from './InvitationViewResponse';
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AddressRequest"), exports);
20
+ __exportStar(require("./AddressViewResponse"), exports);
21
+ __exportStar(require("./AgencyViewResponse"), exports);
20
22
  __exportStar(require("./CreateAgencyRequest"), exports);
21
23
  __exportStar(require("./IdResponse"), exports);
22
24
  __exportStar(require("./InvitationViewResponse"), exports);
package/dist/runtime.js CHANGED
@@ -27,7 +27,7 @@ exports.querystring = querystring;
27
27
  exports.exists = exists;
28
28
  exports.mapValues = mapValues;
29
29
  exports.canConsumeForm = canConsumeForm;
30
- exports.BASE_PATH = "http://localhost:8080".replace(/\/+$/, "");
30
+ exports.BASE_PATH = "https://gateway.dev.homespot.ge/rem".replace(/\/+$/, "");
31
31
  class Configuration {
32
32
  constructor(configuration = {}) {
33
33
  this.configuration = configuration;
@@ -0,0 +1,42 @@
1
+
2
+ # AddressViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `country` | string
10
+ `city` | string
11
+ `district` | string
12
+ `subdistrict` | string
13
+ `street` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { AddressViewResponse } from '@homespot-sdk/api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "country": null,
23
+ "city": null,
24
+ "district": null,
25
+ "subdistrict": null,
26
+ "street": null,
27
+ } satisfies AddressViewResponse
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as AddressViewResponse
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -1,6 +1,6 @@
1
1
  # AgencyControllerApi
2
2
 
3
- All URIs are relative to *http://localhost:8080*
3
+ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
@@ -1,6 +1,6 @@
1
1
  # AgencyQueryControllerApi
2
2
 
3
- All URIs are relative to *http://localhost:8080*
3
+ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
@@ -10,7 +10,7 @@ All URIs are relative to *http://localhost:8080*
10
10
 
11
11
  ## getAgency
12
12
 
13
- > getAgency(agencyId)
13
+ > AgencyViewResponse getAgency(agencyId)
14
14
 
15
15
 
16
16
 
@@ -57,7 +57,7 @@ example().catch(console.error);
57
57
 
58
58
  ### Return type
59
59
 
60
- `void` (Empty response body)
60
+ [**AgencyViewResponse**](AgencyViewResponse.md)
61
61
 
62
62
  ### Authorization
63
63
 
@@ -66,7 +66,7 @@ example().catch(console.error);
66
66
  ### HTTP request headers
67
67
 
68
68
  - **Content-Type**: Not defined
69
- - **Accept**: Not defined
69
+ - **Accept**: `*/*`
70
70
 
71
71
 
72
72
  ### HTTP response details
@@ -0,0 +1,46 @@
1
+
2
+ # AgencyViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `email` | string
11
+ `seats` | number
12
+ `subDomain` | string
13
+ `phone` | string
14
+ `address` | [AddressViewResponse](AddressViewResponse.md)
15
+ `yearSince` | number
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { AgencyViewResponse } from '@homespot-sdk/api'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "name": null,
25
+ "email": null,
26
+ "seats": null,
27
+ "subDomain": null,
28
+ "phone": null,
29
+ "address": null,
30
+ "yearSince": null,
31
+ } satisfies AgencyViewResponse
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as AgencyViewResponse
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -1,6 +1,6 @@
1
1
  # InvitationControllerApi
2
2
 
3
- All URIs are relative to *http://localhost:8080*
3
+ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
@@ -1,6 +1,6 @@
1
1
  # InvitationQueryControllerApi
2
2
 
3
- All URIs are relative to *http://localhost:8080*
3
+ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
@@ -1,6 +1,6 @@
1
1
  # UserQueryControllerApi
2
2
 
3
- All URIs are relative to *http://localhost:8080*
3
+ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespot-sdk/api",
3
- "version": "0.0.630",
3
+ "version": "0.0.632",
4
4
  "description": "OpenAPI client for @homespot-sdk/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -14,6 +14,13 @@
14
14
 
15
15
 
16
16
  import * as runtime from '../runtime';
17
+ import type {
18
+ AgencyViewResponse,
19
+ } from '../models/index';
20
+ import {
21
+ AgencyViewResponseFromJSON,
22
+ AgencyViewResponseToJSON,
23
+ } from '../models/index';
17
24
 
18
25
  export interface GetAgencyRequest {
19
26
  agencyId: string;
@@ -33,11 +40,11 @@ export interface AgencyQueryControllerApiInterface {
33
40
  * @throws {RequiredError}
34
41
  * @memberof AgencyQueryControllerApiInterface
35
42
  */
36
- getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
43
+ getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
37
44
 
38
45
  /**
39
46
  */
40
- getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
47
+ getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
41
48
 
42
49
  }
43
50
 
@@ -48,7 +55,7 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
48
55
 
49
56
  /**
50
57
  */
51
- async getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
58
+ async getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>> {
52
59
  if (requestParameters['agencyId'] == null) {
53
60
  throw new runtime.RequiredError(
54
61
  'agencyId',
@@ -76,13 +83,14 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQ
76
83
  query: queryParameters,
77
84
  }, initOverrides);
78
85
 
79
- return new runtime.VoidApiResponse(response);
86
+ return new runtime.JSONApiResponse(response, (jsonValue) => AgencyViewResponseFromJSON(jsonValue));
80
87
  }
81
88
 
82
89
  /**
83
90
  */
84
- async getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
85
- await this.getAgencyRaw(requestParameters, initOverrides);
91
+ async getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse> {
92
+ const response = await this.getAgencyRaw(requestParameters, initOverrides);
93
+ return await response.value();
86
94
  }
87
95
 
88
96
  }
@@ -0,0 +1,102 @@
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 AddressViewResponse
20
+ */
21
+ export interface AddressViewResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AddressViewResponse
26
+ */
27
+ country: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AddressViewResponse
32
+ */
33
+ city: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AddressViewResponse
38
+ */
39
+ district: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AddressViewResponse
44
+ */
45
+ subdistrict: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AddressViewResponse
50
+ */
51
+ street: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the AddressViewResponse interface.
56
+ */
57
+ export function instanceOfAddressViewResponse(value: object): value is AddressViewResponse {
58
+ if (!('country' in value) || value['country'] === undefined) return false;
59
+ if (!('city' in value) || value['city'] === undefined) return false;
60
+ if (!('district' in value) || value['district'] === undefined) return false;
61
+ if (!('subdistrict' in value) || value['subdistrict'] === undefined) return false;
62
+ if (!('street' in value) || value['street'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function AddressViewResponseFromJSON(json: any): AddressViewResponse {
67
+ return AddressViewResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function AddressViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressViewResponse {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'country': json['country'],
77
+ 'city': json['city'],
78
+ 'district': json['district'],
79
+ 'subdistrict': json['subdistrict'],
80
+ 'street': json['street'],
81
+ };
82
+ }
83
+
84
+ export function AddressViewResponseToJSON(json: any): AddressViewResponse {
85
+ return AddressViewResponseToJSONTyped(json, false);
86
+ }
87
+
88
+ export function AddressViewResponseToJSONTyped(value?: AddressViewResponse | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'country': value['country'],
96
+ 'city': value['city'],
97
+ 'district': value['district'],
98
+ 'subdistrict': value['subdistrict'],
99
+ 'street': value['street'],
100
+ };
101
+ }
102
+
@@ -0,0 +1,128 @@
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 { AddressViewResponse } from './AddressViewResponse';
17
+ import {
18
+ AddressViewResponseFromJSON,
19
+ AddressViewResponseFromJSONTyped,
20
+ AddressViewResponseToJSON,
21
+ AddressViewResponseToJSONTyped,
22
+ } from './AddressViewResponse';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AgencyViewResponse
28
+ */
29
+ export interface AgencyViewResponse {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AgencyViewResponse
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AgencyViewResponse
40
+ */
41
+ email: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AgencyViewResponse
46
+ */
47
+ seats: number;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AgencyViewResponse
52
+ */
53
+ subDomain: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof AgencyViewResponse
58
+ */
59
+ phone: string;
60
+ /**
61
+ *
62
+ * @type {AddressViewResponse}
63
+ * @memberof AgencyViewResponse
64
+ */
65
+ address: AddressViewResponse;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof AgencyViewResponse
70
+ */
71
+ yearSince: number;
72
+ }
73
+
74
+ /**
75
+ * Check if a given object implements the AgencyViewResponse interface.
76
+ */
77
+ export function instanceOfAgencyViewResponse(value: object): value is AgencyViewResponse {
78
+ if (!('name' in value) || value['name'] === undefined) return false;
79
+ if (!('email' in value) || value['email'] === undefined) return false;
80
+ if (!('seats' in value) || value['seats'] === undefined) return false;
81
+ if (!('subDomain' in value) || value['subDomain'] === undefined) return false;
82
+ if (!('phone' in value) || value['phone'] === undefined) return false;
83
+ if (!('address' in value) || value['address'] === undefined) return false;
84
+ if (!('yearSince' in value) || value['yearSince'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function AgencyViewResponseFromJSON(json: any): AgencyViewResponse {
89
+ return AgencyViewResponseFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function AgencyViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyViewResponse {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'name': json['name'],
99
+ 'email': json['email'],
100
+ 'seats': json['seats'],
101
+ 'subDomain': json['subDomain'],
102
+ 'phone': json['phone'],
103
+ 'address': AddressViewResponseFromJSON(json['address']),
104
+ 'yearSince': json['yearSince'],
105
+ };
106
+ }
107
+
108
+ export function AgencyViewResponseToJSON(json: any): AgencyViewResponse {
109
+ return AgencyViewResponseToJSONTyped(json, false);
110
+ }
111
+
112
+ export function AgencyViewResponseToJSONTyped(value?: AgencyViewResponse | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'name': value['name'],
120
+ 'email': value['email'],
121
+ 'seats': value['seats'],
122
+ 'subDomain': value['subDomain'],
123
+ 'phone': value['phone'],
124
+ 'address': AddressViewResponseToJSON(value['address']),
125
+ 'yearSince': value['yearSince'],
126
+ };
127
+ }
128
+
@@ -1,6 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AddressRequest';
4
+ export * from './AddressViewResponse';
5
+ export * from './AgencyViewResponse';
4
6
  export * from './CreateAgencyRequest';
5
7
  export * from './IdResponse';
6
8
  export * from './InvitationViewResponse';
package/src/runtime.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, "");
16
+ export const BASE_PATH = "https://gateway.dev.homespot.ge/rem".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path