@homespot-sdk/api 0.0.629 → 0.0.631

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 (60) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +9 -3
  3. package/dist/apis/AgencyQueryControllerApi.d.ts +5 -4
  4. package/dist/apis/AgencyQueryControllerApi.js +4 -2
  5. package/dist/apis/UserQueryControllerApi.d.ts +42 -0
  6. package/dist/apis/UserQueryControllerApi.js +61 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/AgencyQueryControllerApi.d.ts +5 -4
  10. package/dist/esm/apis/AgencyQueryControllerApi.js +4 -2
  11. package/dist/esm/apis/UserQueryControllerApi.d.ts +42 -0
  12. package/dist/esm/apis/UserQueryControllerApi.js +57 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/AddressViewResponse.d.ts +56 -0
  16. package/dist/esm/models/AddressViewResponse.js +59 -0
  17. package/dist/esm/models/AgencyViewResponse.d.ts +69 -0
  18. package/dist/esm/models/AgencyViewResponse.js +68 -0
  19. package/dist/esm/models/InvitationViewResponse.d.ts +0 -1
  20. package/dist/esm/models/InvitationViewResponse.js +0 -1
  21. package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +100 -0
  22. package/dist/esm/models/OrganizationSummaryViewResponse.js +91 -0
  23. package/dist/esm/models/UserContextViewResponse.d.ts +40 -0
  24. package/dist/esm/models/UserContextViewResponse.js +49 -0
  25. package/dist/esm/models/UserSummaryViewResponse.d.ts +44 -0
  26. package/dist/esm/models/UserSummaryViewResponse.js +51 -0
  27. package/dist/esm/models/index.d.ts +5 -0
  28. package/dist/esm/models/index.js +5 -0
  29. package/dist/models/AddressViewResponse.d.ts +56 -0
  30. package/dist/models/AddressViewResponse.js +66 -0
  31. package/dist/models/AgencyViewResponse.d.ts +69 -0
  32. package/dist/models/AgencyViewResponse.js +75 -0
  33. package/dist/models/InvitationViewResponse.d.ts +0 -1
  34. package/dist/models/InvitationViewResponse.js +0 -1
  35. package/dist/models/OrganizationSummaryViewResponse.d.ts +100 -0
  36. package/dist/models/OrganizationSummaryViewResponse.js +99 -0
  37. package/dist/models/UserContextViewResponse.d.ts +40 -0
  38. package/dist/models/UserContextViewResponse.js +56 -0
  39. package/dist/models/UserSummaryViewResponse.d.ts +44 -0
  40. package/dist/models/UserSummaryViewResponse.js +58 -0
  41. package/dist/models/index.d.ts +5 -0
  42. package/dist/models/index.js +5 -0
  43. package/docs/AddressViewResponse.md +42 -0
  44. package/docs/AgencyQueryControllerApi.md +3 -3
  45. package/docs/AgencyViewResponse.md +46 -0
  46. package/docs/OrganizationSummaryViewResponse.md +50 -0
  47. package/docs/UserContextViewResponse.md +36 -0
  48. package/docs/UserQueryControllerApi.md +70 -0
  49. package/docs/UserSummaryViewResponse.md +38 -0
  50. package/package.json +1 -1
  51. package/src/apis/AgencyQueryControllerApi.ts +14 -6
  52. package/src/apis/UserQueryControllerApi.ts +83 -0
  53. package/src/apis/index.ts +1 -0
  54. package/src/models/AddressViewResponse.ts +102 -0
  55. package/src/models/AgencyViewResponse.ts +128 -0
  56. package/src/models/InvitationViewResponse.ts +0 -1
  57. package/src/models/OrganizationSummaryViewResponse.ts +161 -0
  58. package/src/models/UserContextViewResponse.ts +90 -0
  59. package/src/models/UserSummaryViewResponse.ts +84 -0
  60. package/src/models/index.ts +5 -0
@@ -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
+
@@ -0,0 +1,50 @@
1
+
2
+ # OrganizationSummaryViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `agencyId` | string
10
+ `isOwner` | boolean
11
+ `agencyName` | string
12
+ `subDomain` | string
13
+ `roleId` | number
14
+ `memberId` | string
15
+ `roleName` | string
16
+ `authorities` | Array<string>
17
+ `status` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { OrganizationSummaryViewResponse } from '@homespot-sdk/api'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "agencyId": null,
27
+ "isOwner": null,
28
+ "agencyName": null,
29
+ "subDomain": null,
30
+ "roleId": null,
31
+ "memberId": null,
32
+ "roleName": null,
33
+ "authorities": null,
34
+ "status": null,
35
+ } satisfies OrganizationSummaryViewResponse
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as OrganizationSummaryViewResponse
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,36 @@
1
+
2
+ # UserContextViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `user` | [UserSummaryViewResponse](UserSummaryViewResponse.md)
10
+ `organizations` | [Array<OrganizationSummaryViewResponse>](OrganizationSummaryViewResponse.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { UserContextViewResponse } from '@homespot-sdk/api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "user": null,
20
+ "organizations": null,
21
+ } satisfies UserContextViewResponse
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 UserContextViewResponse
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
+
@@ -0,0 +1,70 @@
1
+ # UserQueryControllerApi
2
+
3
+ All URIs are relative to *http://localhost:8080*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getMe**](UserQueryControllerApi.md#getme) | **GET** /user/me | |
8
+
9
+
10
+
11
+ ## getMe
12
+
13
+ > UserContextViewResponse getMe()
14
+
15
+
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ UserQueryControllerApi,
23
+ } from '@homespot-sdk/api';
24
+ import type { GetMeRequest } from '@homespot-sdk/api';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
28
+ const config = new Configuration({
29
+ // To configure OAuth2 access token for authorization: keycloak accessCode
30
+ accessToken: "YOUR ACCESS TOKEN",
31
+ });
32
+ const api = new UserQueryControllerApi(config);
33
+
34
+ try {
35
+ const data = await api.getMe();
36
+ console.log(data);
37
+ } catch (error) {
38
+ console.error(error);
39
+ }
40
+ }
41
+
42
+ // Run the test
43
+ example().catch(console.error);
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ This endpoint does not need any parameter.
49
+
50
+ ### Return type
51
+
52
+ [**UserContextViewResponse**](UserContextViewResponse.md)
53
+
54
+ ### Authorization
55
+
56
+ [keycloak accessCode](../README.md#keycloak-accessCode)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: Not defined
61
+ - **Accept**: `*/*`
62
+
63
+
64
+ ### HTTP response details
65
+ | Status code | Description | Response headers |
66
+ |-------------|-------------|------------------|
67
+ | **200** | OK | - |
68
+
69
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
70
+
@@ -0,0 +1,38 @@
1
+
2
+ # UserSummaryViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `email` | string
10
+ `firstName` | string
11
+ `lastName` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { UserSummaryViewResponse } from '@homespot-sdk/api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "email": null,
21
+ "firstName": null,
22
+ "lastName": null,
23
+ } satisfies UserSummaryViewResponse
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as UserSummaryViewResponse
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespot-sdk/api",
3
- "version": "0.0.629",
3
+ "version": "0.0.631",
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,83 @@
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
+ UserContextViewResponse,
19
+ } from '../models/index';
20
+ import {
21
+ UserContextViewResponseFromJSON,
22
+ UserContextViewResponseToJSON,
23
+ } from '../models/index';
24
+
25
+ /**
26
+ * UserQueryControllerApi - interface
27
+ *
28
+ * @export
29
+ * @interface UserQueryControllerApiInterface
30
+ */
31
+ export interface UserQueryControllerApiInterface {
32
+ /**
33
+ *
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ * @memberof UserQueryControllerApiInterface
37
+ */
38
+ getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserContextViewResponse>>;
39
+
40
+ /**
41
+ */
42
+ getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserContextViewResponse>;
43
+
44
+ }
45
+
46
+ /**
47
+ *
48
+ */
49
+ export class UserQueryControllerApi extends runtime.BaseAPI implements UserQueryControllerApiInterface {
50
+
51
+ /**
52
+ */
53
+ async getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserContextViewResponse>> {
54
+ const queryParameters: any = {};
55
+
56
+ const headerParameters: runtime.HTTPHeaders = {};
57
+
58
+ if (this.configuration && this.configuration.accessToken) {
59
+ // oauth required
60
+ headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
61
+ }
62
+
63
+
64
+ let urlPath = `/user/me`;
65
+
66
+ const response = await this.request({
67
+ path: urlPath,
68
+ method: 'GET',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+
73
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserContextViewResponseFromJSON(jsonValue));
74
+ }
75
+
76
+ /**
77
+ */
78
+ async getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserContextViewResponse> {
79
+ const response = await this.getMeRaw(initOverrides);
80
+ return await response.value();
81
+ }
82
+
83
+ }
package/src/apis/index.ts CHANGED
@@ -4,3 +4,4 @@ export * from './AgencyControllerApi';
4
4
  export * from './AgencyQueryControllerApi';
5
5
  export * from './InvitationControllerApi';
6
6
  export * from './InvitationQueryControllerApi';
7
+ export * from './UserQueryControllerApi';
@@ -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
+
@@ -70,7 +70,6 @@ export interface InvitationViewResponse {
70
70
  export const InvitationViewResponseStatusEnum = {
71
71
  Pending: 'PENDING',
72
72
  Accepted: 'ACCEPTED',
73
- Rejected: 'REJECTED',
74
73
  Cancelled: 'CANCELLED',
75
74
  Expired: 'EXPIRED'
76
75
  } as const;