@homespot-sdk/api 0.0.632 → 0.0.634
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.
- package/.openapi-generator/FILES +20 -0
- package/README.md +27 -13
- package/dist/apis/AgencyControllerApi.d.ts +0 -14
- package/dist/apis/AgencyControllerApi.js +10 -38
- package/dist/apis/AgencyQueryControllerApi.d.ts +53 -1
- package/dist/apis/AgencyQueryControllerApi.js +79 -1
- package/dist/apis/InvitationControllerApi.d.ts +0 -2
- package/dist/apis/InvitationControllerApi.js +5 -7
- package/dist/apis/InvitationQueryControllerApi.d.ts +27 -5
- package/dist/apis/InvitationQueryControllerApi.js +45 -5
- package/dist/apis/MemberQueryControllerApi.d.ts +46 -0
- package/dist/apis/MemberQueryControllerApi.js +67 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AgencyControllerApi.d.ts +0 -14
- package/dist/esm/apis/AgencyControllerApi.js +10 -38
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +53 -1
- package/dist/esm/apis/AgencyQueryControllerApi.js +79 -1
- package/dist/esm/apis/InvitationControllerApi.d.ts +0 -2
- package/dist/esm/apis/InvitationControllerApi.js +5 -7
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +27 -5
- package/dist/esm/apis/InvitationQueryControllerApi.js +46 -6
- package/dist/esm/apis/MemberQueryControllerApi.d.ts +46 -0
- package/dist/esm/apis/MemberQueryControllerApi.js +63 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgencyPeekViewResponse.d.ts +102 -0
- package/dist/esm/models/AgencyPeekViewResponse.js +88 -0
- package/dist/esm/models/InvitationDetailsRequest.d.ts +38 -0
- package/dist/esm/models/InvitationDetailsRequest.js +47 -0
- package/dist/esm/models/InvitationDetailsResponse.d.ts +72 -0
- package/dist/esm/models/InvitationDetailsResponse.js +70 -0
- package/dist/esm/models/InviteMemberRequest.d.ts +3 -2
- package/dist/esm/models/InviteMemberRequest.js +3 -2
- package/dist/esm/models/MemberViewResponse.d.ts +74 -0
- package/dist/esm/models/MemberViewResponse.js +69 -0
- package/dist/esm/models/PageMetadata.d.ts +50 -0
- package/dist/esm/models/PageMetadata.js +47 -0
- package/dist/esm/models/Pageable.d.ts +44 -0
- package/dist/esm/models/Pageable.js +45 -0
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.js +45 -0
- package/dist/esm/models/PagedModelInvitationViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelInvitationViewResponse.js +45 -0
- package/dist/esm/models/PagedModelMemberViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelMemberViewResponse.js +45 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/AgencyPeekViewResponse.d.ts +102 -0
- package/dist/models/AgencyPeekViewResponse.js +96 -0
- package/dist/models/InvitationDetailsRequest.d.ts +38 -0
- package/dist/models/InvitationDetailsRequest.js +54 -0
- package/dist/models/InvitationDetailsResponse.d.ts +72 -0
- package/dist/models/InvitationDetailsResponse.js +78 -0
- package/dist/models/InviteMemberRequest.d.ts +3 -2
- package/dist/models/InviteMemberRequest.js +3 -2
- package/dist/models/MemberViewResponse.d.ts +74 -0
- package/dist/models/MemberViewResponse.js +76 -0
- package/dist/models/PageMetadata.d.ts +50 -0
- package/dist/models/PageMetadata.js +54 -0
- package/dist/models/Pageable.d.ts +44 -0
- package/dist/models/Pageable.js +52 -0
- package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
- package/dist/models/PagedModelAgencyPeekViewResponse.js +52 -0
- package/dist/models/PagedModelInvitationViewResponse.d.ts +40 -0
- package/dist/models/PagedModelInvitationViewResponse.js +52 -0
- package/dist/models/PagedModelMemberViewResponse.d.ts +40 -0
- package/dist/models/PagedModelMemberViewResponse.js +52 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AgencyControllerApi.md +20 -41
- package/docs/AgencyPeekViewResponse.md +54 -0
- package/docs/AgencyQueryControllerApi.md +143 -0
- package/docs/InvitationControllerApi.md +3 -6
- package/docs/InvitationDetailsRequest.md +36 -0
- package/docs/InvitationDetailsResponse.md +44 -0
- package/docs/InvitationQueryControllerApi.md +78 -5
- package/docs/InviteMemberRequest.md +1 -1
- package/docs/MemberQueryControllerApi.md +78 -0
- package/docs/MemberViewResponse.md +48 -0
- package/docs/PageMetadata.md +40 -0
- package/docs/Pageable.md +38 -0
- package/docs/PagedModelAgencyPeekViewResponse.md +36 -0
- package/docs/PagedModelInvitationViewResponse.md +36 -0
- package/docs/PagedModelMemberViewResponse.md +36 -0
- package/package.json +1 -1
- package/src/apis/AgencyControllerApi.ts +10 -80
- package/src/apis/AgencyQueryControllerApi.ts +143 -0
- package/src/apis/InvitationControllerApi.ts +6 -13
- package/src/apis/InvitationQueryControllerApi.ts +91 -12
- package/src/apis/MemberQueryControllerApi.ts +102 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AgencyPeekViewResponse.ts +167 -0
- package/src/models/InvitationDetailsRequest.ts +75 -0
- package/src/models/InvitationDetailsResponse.ts +123 -0
- package/src/models/InviteMemberRequest.ts +12 -4
- package/src/models/MemberViewResponse.ts +128 -0
- package/src/models/PageMetadata.ts +89 -0
- package/src/models/Pageable.ts +81 -0
- package/src/models/PagedModelAgencyPeekViewResponse.ts +88 -0
- package/src/models/PagedModelInvitationViewResponse.ts +88 -0
- package/src/models/PagedModelMemberViewResponse.ts +88 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,75 @@
|
|
|
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 InvitationDetailsRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface InvitationDetailsRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InvitationDetailsRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof InvitationDetailsRequest
|
|
32
|
+
*/
|
|
33
|
+
roleId: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the InvitationDetailsRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfInvitationDetailsRequest(value: object): value is InvitationDetailsRequest {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('roleId' in value) || value['roleId'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function InvitationDetailsRequestFromJSON(json: any): InvitationDetailsRequest {
|
|
46
|
+
return InvitationDetailsRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function InvitationDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationDetailsRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'roleId': json['roleId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function InvitationDetailsRequestToJSON(json: any): InvitationDetailsRequest {
|
|
61
|
+
return InvitationDetailsRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function InvitationDetailsRequestToJSONTyped(value?: InvitationDetailsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'roleId': value['roleId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,123 @@
|
|
|
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 InvitationDetailsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface InvitationDetailsResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InvitationDetailsResponse
|
|
26
|
+
*/
|
|
27
|
+
invitationId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof InvitationDetailsResponse
|
|
32
|
+
*/
|
|
33
|
+
agencyId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof InvitationDetailsResponse
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof InvitationDetailsResponse
|
|
44
|
+
*/
|
|
45
|
+
status: InvitationDetailsResponseStatusEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof InvitationDetailsResponse
|
|
50
|
+
*/
|
|
51
|
+
agencyName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof InvitationDetailsResponse
|
|
56
|
+
*/
|
|
57
|
+
agencyLogo?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const InvitationDetailsResponseStatusEnum = {
|
|
65
|
+
Pending: 'PENDING',
|
|
66
|
+
Accepted: 'ACCEPTED',
|
|
67
|
+
Cancelled: 'CANCELLED',
|
|
68
|
+
Expired: 'EXPIRED'
|
|
69
|
+
} as const;
|
|
70
|
+
export type InvitationDetailsResponseStatusEnum = typeof InvitationDetailsResponseStatusEnum[keyof typeof InvitationDetailsResponseStatusEnum];
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the InvitationDetailsResponse interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfInvitationDetailsResponse(value: object): value is InvitationDetailsResponse {
|
|
77
|
+
if (!('invitationId' in value) || value['invitationId'] === undefined) return false;
|
|
78
|
+
if (!('agencyId' in value) || value['agencyId'] === undefined) return false;
|
|
79
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
80
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
81
|
+
if (!('agencyName' in value) || value['agencyName'] === undefined) return false;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function InvitationDetailsResponseFromJSON(json: any): InvitationDetailsResponse {
|
|
86
|
+
return InvitationDetailsResponseFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function InvitationDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationDetailsResponse {
|
|
90
|
+
if (json == null) {
|
|
91
|
+
return json;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'invitationId': json['invitationId'],
|
|
96
|
+
'agencyId': json['agencyId'],
|
|
97
|
+
'email': json['email'],
|
|
98
|
+
'status': json['status'],
|
|
99
|
+
'agencyName': json['agencyName'],
|
|
100
|
+
'agencyLogo': json['agencyLogo'] == null ? undefined : json['agencyLogo'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function InvitationDetailsResponseToJSON(json: any): InvitationDetailsResponse {
|
|
105
|
+
return InvitationDetailsResponseToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function InvitationDetailsResponseToJSONTyped(value?: InvitationDetailsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'invitationId': value['invitationId'],
|
|
116
|
+
'agencyId': value['agencyId'],
|
|
117
|
+
'email': value['email'],
|
|
118
|
+
'status': value['status'],
|
|
119
|
+
'agencyName': value['agencyName'],
|
|
120
|
+
'agencyLogo': value['agencyLogo'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { InvitationDetailsRequest } from './InvitationDetailsRequest';
|
|
17
|
+
import {
|
|
18
|
+
InvitationDetailsRequestFromJSON,
|
|
19
|
+
InvitationDetailsRequestFromJSONTyped,
|
|
20
|
+
InvitationDetailsRequestToJSON,
|
|
21
|
+
InvitationDetailsRequestToJSONTyped,
|
|
22
|
+
} from './InvitationDetailsRequest';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
|
|
|
21
29
|
export interface InviteMemberRequest {
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
|
-
* @type {Array<
|
|
32
|
+
* @type {Array<InvitationDetailsRequest>}
|
|
25
33
|
* @memberof InviteMemberRequest
|
|
26
34
|
*/
|
|
27
|
-
emails: Array<
|
|
35
|
+
emails: Array<InvitationDetailsRequest>;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
/**
|
|
@@ -45,7 +53,7 @@ export function InviteMemberRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
45
53
|
}
|
|
46
54
|
return {
|
|
47
55
|
|
|
48
|
-
'emails': json['emails'],
|
|
56
|
+
'emails': ((json['emails'] as Array<any>).map(InvitationDetailsRequestFromJSON)),
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
|
|
@@ -60,7 +68,7 @@ export function InviteMemberRequestToJSONTyped(value?: InviteMemberRequest | nul
|
|
|
60
68
|
|
|
61
69
|
return {
|
|
62
70
|
|
|
63
|
-
'emails': value['emails'],
|
|
71
|
+
'emails': ((value['emails'] as Array<any>).map(InvitationDetailsRequestToJSON)),
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MemberViewResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface MemberViewResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MemberViewResponse
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MemberViewResponse
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MemberViewResponse
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MemberViewResponse
|
|
44
|
+
*/
|
|
45
|
+
phone?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof MemberViewResponse
|
|
50
|
+
*/
|
|
51
|
+
email: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof MemberViewResponse
|
|
56
|
+
*/
|
|
57
|
+
roleId: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof MemberViewResponse
|
|
62
|
+
*/
|
|
63
|
+
roleName: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof MemberViewResponse
|
|
68
|
+
*/
|
|
69
|
+
joinedAt: Date;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the MemberViewResponse interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfMemberViewResponse(value: object): value is MemberViewResponse {
|
|
76
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
77
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
78
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
79
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
80
|
+
if (!('roleId' in value) || value['roleId'] === undefined) return false;
|
|
81
|
+
if (!('roleName' in value) || value['roleName'] === undefined) return false;
|
|
82
|
+
if (!('joinedAt' in value) || value['joinedAt'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function MemberViewResponseFromJSON(json: any): MemberViewResponse {
|
|
87
|
+
return MemberViewResponseFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function MemberViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberViewResponse {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'userId': json['userId'],
|
|
97
|
+
'firstName': json['firstName'],
|
|
98
|
+
'lastName': json['lastName'],
|
|
99
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
100
|
+
'email': json['email'],
|
|
101
|
+
'roleId': json['roleId'],
|
|
102
|
+
'roleName': json['roleName'],
|
|
103
|
+
'joinedAt': (new Date(json['joinedAt'])),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function MemberViewResponseToJSON(json: any): MemberViewResponse {
|
|
108
|
+
return MemberViewResponseToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function MemberViewResponseToJSONTyped(value?: MemberViewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'userId': value['userId'],
|
|
119
|
+
'firstName': value['firstName'],
|
|
120
|
+
'lastName': value['lastName'],
|
|
121
|
+
'phone': value['phone'],
|
|
122
|
+
'email': value['email'],
|
|
123
|
+
'roleId': value['roleId'],
|
|
124
|
+
'roleName': value['roleName'],
|
|
125
|
+
'joinedAt': value['joinedAt'].toISOString(),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 PageMetadata
|
|
20
|
+
*/
|
|
21
|
+
export interface PageMetadata {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PageMetadata
|
|
26
|
+
*/
|
|
27
|
+
size?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PageMetadata
|
|
32
|
+
*/
|
|
33
|
+
number?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PageMetadata
|
|
38
|
+
*/
|
|
39
|
+
totalElements?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PageMetadata
|
|
44
|
+
*/
|
|
45
|
+
totalPages?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PageMetadata interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPageMetadata(value: object): value is PageMetadata {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PageMetadataFromJSON(json: any): PageMetadata {
|
|
56
|
+
return PageMetadataFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PageMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageMetadata {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
66
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
67
|
+
'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
|
|
68
|
+
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PageMetadataToJSON(json: any): PageMetadata {
|
|
73
|
+
return PageMetadataToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PageMetadataToJSONTyped(value?: PageMetadata | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'size': value['size'],
|
|
84
|
+
'number': value['number'],
|
|
85
|
+
'totalElements': value['totalElements'],
|
|
86
|
+
'totalPages': value['totalPages'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Pageable
|
|
20
|
+
*/
|
|
21
|
+
export interface Pageable {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Pageable
|
|
26
|
+
*/
|
|
27
|
+
page?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof Pageable
|
|
32
|
+
*/
|
|
33
|
+
size?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof Pageable
|
|
38
|
+
*/
|
|
39
|
+
sort?: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the Pageable interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPageable(value: object): value is Pageable {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PageableFromJSON(json: any): Pageable {
|
|
50
|
+
return PageableFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PageableFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pageable {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
60
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
61
|
+
'sort': json['sort'] == null ? undefined : json['sort'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PageableToJSON(json: any): Pageable {
|
|
66
|
+
return PageableToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PageableToJSONTyped(value?: Pageable | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'page': value['page'],
|
|
77
|
+
'size': value['size'],
|
|
78
|
+
'sort': value['sort'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { PageMetadata } from './PageMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PageMetadataFromJSON,
|
|
19
|
+
PageMetadataFromJSONTyped,
|
|
20
|
+
PageMetadataToJSON,
|
|
21
|
+
PageMetadataToJSONTyped,
|
|
22
|
+
} from './PageMetadata';
|
|
23
|
+
import type { AgencyPeekViewResponse } from './AgencyPeekViewResponse';
|
|
24
|
+
import {
|
|
25
|
+
AgencyPeekViewResponseFromJSON,
|
|
26
|
+
AgencyPeekViewResponseFromJSONTyped,
|
|
27
|
+
AgencyPeekViewResponseToJSON,
|
|
28
|
+
AgencyPeekViewResponseToJSONTyped,
|
|
29
|
+
} from './AgencyPeekViewResponse';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PagedModelAgencyPeekViewResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PagedModelAgencyPeekViewResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<AgencyPeekViewResponse>}
|
|
40
|
+
* @memberof PagedModelAgencyPeekViewResponse
|
|
41
|
+
*/
|
|
42
|
+
content?: Array<AgencyPeekViewResponse>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PageMetadata}
|
|
46
|
+
* @memberof PagedModelAgencyPeekViewResponse
|
|
47
|
+
*/
|
|
48
|
+
page?: PageMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PagedModelAgencyPeekViewResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPagedModelAgencyPeekViewResponse(value: object): value is PagedModelAgencyPeekViewResponse {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PagedModelAgencyPeekViewResponseFromJSON(json: any): PagedModelAgencyPeekViewResponse {
|
|
59
|
+
return PagedModelAgencyPeekViewResponseFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PagedModelAgencyPeekViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedModelAgencyPeekViewResponse {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'content': json['content'] == null ? undefined : ((json['content'] as Array<any>).map(AgencyPeekViewResponseFromJSON)),
|
|
69
|
+
'page': json['page'] == null ? undefined : PageMetadataFromJSON(json['page']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PagedModelAgencyPeekViewResponseToJSON(json: any): PagedModelAgencyPeekViewResponse {
|
|
74
|
+
return PagedModelAgencyPeekViewResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PagedModelAgencyPeekViewResponseToJSONTyped(value?: PagedModelAgencyPeekViewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'content': value['content'] == null ? undefined : ((value['content'] as Array<any>).map(AgencyPeekViewResponseToJSON)),
|
|
85
|
+
'page': PageMetadataToJSON(value['page']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|