@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,161 @@
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 OrganizationSummaryViewResponse
20
+ */
21
+ export interface OrganizationSummaryViewResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof OrganizationSummaryViewResponse
26
+ */
27
+ agencyId: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof OrganizationSummaryViewResponse
32
+ */
33
+ isOwner: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof OrganizationSummaryViewResponse
38
+ */
39
+ agencyName: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof OrganizationSummaryViewResponse
44
+ */
45
+ subDomain: string;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof OrganizationSummaryViewResponse
50
+ */
51
+ roleId?: number;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof OrganizationSummaryViewResponse
56
+ */
57
+ memberId: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof OrganizationSummaryViewResponse
62
+ */
63
+ roleName: string;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof OrganizationSummaryViewResponse
68
+ */
69
+ authorities: Array<OrganizationSummaryViewResponseAuthoritiesEnum>;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof OrganizationSummaryViewResponse
74
+ */
75
+ status: OrganizationSummaryViewResponseStatusEnum;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const OrganizationSummaryViewResponseAuthoritiesEnum = {
83
+ PropertiesRead: 'properties_read',
84
+ PropertiesWrite: 'properties_write',
85
+ AgentsRead: 'agents_read',
86
+ AgentsWrite: 'agents_write'
87
+ } as const;
88
+ export type OrganizationSummaryViewResponseAuthoritiesEnum = typeof OrganizationSummaryViewResponseAuthoritiesEnum[keyof typeof OrganizationSummaryViewResponseAuthoritiesEnum];
89
+
90
+ /**
91
+ * @export
92
+ */
93
+ export const OrganizationSummaryViewResponseStatusEnum = {
94
+ New: 'NEW',
95
+ Active: 'ACTIVE',
96
+ PaymentFailed: 'PAYMENT_FAILED',
97
+ Inactive: 'INACTIVE'
98
+ } as const;
99
+ export type OrganizationSummaryViewResponseStatusEnum = typeof OrganizationSummaryViewResponseStatusEnum[keyof typeof OrganizationSummaryViewResponseStatusEnum];
100
+
101
+
102
+ /**
103
+ * Check if a given object implements the OrganizationSummaryViewResponse interface.
104
+ */
105
+ export function instanceOfOrganizationSummaryViewResponse(value: object): value is OrganizationSummaryViewResponse {
106
+ if (!('agencyId' in value) || value['agencyId'] === undefined) return false;
107
+ if (!('isOwner' in value) || value['isOwner'] === undefined) return false;
108
+ if (!('agencyName' in value) || value['agencyName'] === undefined) return false;
109
+ if (!('subDomain' in value) || value['subDomain'] === undefined) return false;
110
+ if (!('memberId' in value) || value['memberId'] === undefined) return false;
111
+ if (!('roleName' in value) || value['roleName'] === undefined) return false;
112
+ if (!('authorities' in value) || value['authorities'] === undefined) return false;
113
+ if (!('status' in value) || value['status'] === undefined) return false;
114
+ return true;
115
+ }
116
+
117
+ export function OrganizationSummaryViewResponseFromJSON(json: any): OrganizationSummaryViewResponse {
118
+ return OrganizationSummaryViewResponseFromJSONTyped(json, false);
119
+ }
120
+
121
+ export function OrganizationSummaryViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationSummaryViewResponse {
122
+ if (json == null) {
123
+ return json;
124
+ }
125
+ return {
126
+
127
+ 'agencyId': json['agencyId'],
128
+ 'isOwner': json['isOwner'],
129
+ 'agencyName': json['agencyName'],
130
+ 'subDomain': json['subDomain'],
131
+ 'roleId': json['roleId'] == null ? undefined : json['roleId'],
132
+ 'memberId': json['memberId'],
133
+ 'roleName': json['roleName'],
134
+ 'authorities': json['authorities'],
135
+ 'status': json['status'],
136
+ };
137
+ }
138
+
139
+ export function OrganizationSummaryViewResponseToJSON(json: any): OrganizationSummaryViewResponse {
140
+ return OrganizationSummaryViewResponseToJSONTyped(json, false);
141
+ }
142
+
143
+ export function OrganizationSummaryViewResponseToJSONTyped(value?: OrganizationSummaryViewResponse | null, ignoreDiscriminator: boolean = false): any {
144
+ if (value == null) {
145
+ return value;
146
+ }
147
+
148
+ return {
149
+
150
+ 'agencyId': value['agencyId'],
151
+ 'isOwner': value['isOwner'],
152
+ 'agencyName': value['agencyName'],
153
+ 'subDomain': value['subDomain'],
154
+ 'roleId': value['roleId'],
155
+ 'memberId': value['memberId'],
156
+ 'roleName': value['roleName'],
157
+ 'authorities': value['authorities'],
158
+ 'status': value['status'],
159
+ };
160
+ }
161
+
@@ -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
+ import type { OrganizationSummaryViewResponse } from './OrganizationSummaryViewResponse';
17
+ import {
18
+ OrganizationSummaryViewResponseFromJSON,
19
+ OrganizationSummaryViewResponseFromJSONTyped,
20
+ OrganizationSummaryViewResponseToJSON,
21
+ OrganizationSummaryViewResponseToJSONTyped,
22
+ } from './OrganizationSummaryViewResponse';
23
+ import type { UserSummaryViewResponse } from './UserSummaryViewResponse';
24
+ import {
25
+ UserSummaryViewResponseFromJSON,
26
+ UserSummaryViewResponseFromJSONTyped,
27
+ UserSummaryViewResponseToJSON,
28
+ UserSummaryViewResponseToJSONTyped,
29
+ } from './UserSummaryViewResponse';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface UserContextViewResponse
35
+ */
36
+ export interface UserContextViewResponse {
37
+ /**
38
+ *
39
+ * @type {UserSummaryViewResponse}
40
+ * @memberof UserContextViewResponse
41
+ */
42
+ user: UserSummaryViewResponse;
43
+ /**
44
+ *
45
+ * @type {Array<OrganizationSummaryViewResponse>}
46
+ * @memberof UserContextViewResponse
47
+ */
48
+ organizations: Array<OrganizationSummaryViewResponse>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the UserContextViewResponse interface.
53
+ */
54
+ export function instanceOfUserContextViewResponse(value: object): value is UserContextViewResponse {
55
+ if (!('user' in value) || value['user'] === undefined) return false;
56
+ if (!('organizations' in value) || value['organizations'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function UserContextViewResponseFromJSON(json: any): UserContextViewResponse {
61
+ return UserContextViewResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function UserContextViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserContextViewResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'user': UserSummaryViewResponseFromJSON(json['user']),
71
+ 'organizations': ((json['organizations'] as Array<any>).map(OrganizationSummaryViewResponseFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function UserContextViewResponseToJSON(json: any): UserContextViewResponse {
76
+ return UserContextViewResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function UserContextViewResponseToJSONTyped(value?: UserContextViewResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'user': UserSummaryViewResponseToJSON(value['user']),
87
+ 'organizations': ((value['organizations'] as Array<any>).map(OrganizationSummaryViewResponseToJSON)),
88
+ };
89
+ }
90
+
@@ -0,0 +1,84 @@
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 UserSummaryViewResponse
20
+ */
21
+ export interface UserSummaryViewResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UserSummaryViewResponse
26
+ */
27
+ email: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UserSummaryViewResponse
32
+ */
33
+ firstName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UserSummaryViewResponse
38
+ */
39
+ lastName: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UserSummaryViewResponse interface.
44
+ */
45
+ export function instanceOfUserSummaryViewResponse(value: object): value is UserSummaryViewResponse {
46
+ if (!('email' in value) || value['email'] === undefined) return false;
47
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
48
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function UserSummaryViewResponseFromJSON(json: any): UserSummaryViewResponse {
53
+ return UserSummaryViewResponseFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function UserSummaryViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSummaryViewResponse {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'email': json['email'],
63
+ 'firstName': json['firstName'],
64
+ 'lastName': json['lastName'],
65
+ };
66
+ }
67
+
68
+ export function UserSummaryViewResponseToJSON(json: any): UserSummaryViewResponse {
69
+ return UserSummaryViewResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function UserSummaryViewResponseToJSONTyped(value?: UserSummaryViewResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'email': value['email'],
80
+ 'firstName': value['firstName'],
81
+ 'lastName': value['lastName'],
82
+ };
83
+ }
84
+
@@ -1,10 +1,13 @@
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';
7
9
  export * from './InviteMemberRequest';
10
+ export * from './OrganizationSummaryViewResponse';
8
11
  export * from './PhotoRequest';
9
12
  export * from './PresignedUrlResponse';
10
13
  export * from './PresignedUrlsResponse';
@@ -12,3 +15,5 @@ export * from './RolesRequest';
12
15
  export * from './SocialMediaRequest';
13
16
  export * from './SocialMediasRequest';
14
17
  export * from './UploadAcknowledgmentResponse';
18
+ export * from './UserContextViewResponse';
19
+ export * from './UserSummaryViewResponse';