@homespot-sdk/api 0.0.6
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 +43 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +149 -0
- package/dist/apis/AgencyControllerApi.d.ts +222 -0
- package/dist/apis/AgencyControllerApi.js +356 -0
- package/dist/apis/AgencyQueryControllerApi.d.ts +45 -0
- package/dist/apis/AgencyQueryControllerApi.js +63 -0
- package/dist/apis/InvitationControllerApi.d.ts +70 -0
- package/dist/apis/InvitationControllerApi.js +104 -0
- package/dist/apis/InvitationQueryControllerApi.d.ts +46 -0
- package/dist/apis/InvitationQueryControllerApi.js +65 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +22 -0
- package/dist/esm/apis/AgencyControllerApi.d.ts +222 -0
- package/dist/esm/apis/AgencyControllerApi.js +352 -0
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +45 -0
- package/dist/esm/apis/AgencyQueryControllerApi.js +59 -0
- package/dist/esm/apis/InvitationControllerApi.d.ts +70 -0
- package/dist/esm/apis/InvitationControllerApi.js +100 -0
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +46 -0
- package/dist/esm/apis/InvitationQueryControllerApi.js +61 -0
- package/dist/esm/apis/index.d.ts +4 -0
- package/dist/esm/apis/index.js +6 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AddressRequest.d.ts +56 -0
- package/dist/esm/models/AddressRequest.js +59 -0
- package/dist/esm/models/CreateAgencyRequest.d.ts +69 -0
- package/dist/esm/models/CreateAgencyRequest.js +68 -0
- package/dist/esm/models/IdResponse.d.ts +32 -0
- package/dist/esm/models/IdResponse.js +43 -0
- package/dist/esm/models/InvitationViewResponse.d.ts +79 -0
- package/dist/esm/models/InvitationViewResponse.js +73 -0
- package/dist/esm/models/InviteMemberRequest.d.ts +32 -0
- package/dist/esm/models/InviteMemberRequest.js +43 -0
- package/dist/esm/models/PhotoRequest.d.ts +60 -0
- package/dist/esm/models/PhotoRequest.js +62 -0
- package/dist/esm/models/PresignedUrlResponse.d.ts +44 -0
- package/dist/esm/models/PresignedUrlResponse.js +51 -0
- package/dist/esm/models/PresignedUrlsResponse.d.ts +33 -0
- package/dist/esm/models/PresignedUrlsResponse.js +44 -0
- package/dist/esm/models/RolesRequest.d.ts +54 -0
- package/dist/esm/models/RolesRequest.js +60 -0
- package/dist/esm/models/SocialMediaRequest.d.ts +49 -0
- package/dist/esm/models/SocialMediaRequest.js +55 -0
- package/dist/esm/models/SocialMediasRequest.d.ts +33 -0
- package/dist/esm/models/SocialMediasRequest.js +44 -0
- package/dist/esm/models/UploadAcknowledgmentResponse.d.ts +38 -0
- package/dist/esm/models/UploadAcknowledgmentResponse.js +47 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AddressRequest.d.ts +56 -0
- package/dist/models/AddressRequest.js +66 -0
- package/dist/models/CreateAgencyRequest.d.ts +69 -0
- package/dist/models/CreateAgencyRequest.js +75 -0
- package/dist/models/IdResponse.d.ts +32 -0
- package/dist/models/IdResponse.js +50 -0
- package/dist/models/InvitationViewResponse.d.ts +79 -0
- package/dist/models/InvitationViewResponse.js +81 -0
- package/dist/models/InviteMemberRequest.d.ts +32 -0
- package/dist/models/InviteMemberRequest.js +50 -0
- package/dist/models/PhotoRequest.d.ts +60 -0
- package/dist/models/PhotoRequest.js +70 -0
- package/dist/models/PresignedUrlResponse.d.ts +44 -0
- package/dist/models/PresignedUrlResponse.js +58 -0
- package/dist/models/PresignedUrlsResponse.d.ts +33 -0
- package/dist/models/PresignedUrlsResponse.js +51 -0
- package/dist/models/RolesRequest.d.ts +54 -0
- package/dist/models/RolesRequest.js +68 -0
- package/dist/models/SocialMediaRequest.d.ts +49 -0
- package/dist/models/SocialMediaRequest.js +63 -0
- package/dist/models/SocialMediasRequest.d.ts +33 -0
- package/dist/models/SocialMediasRequest.js +51 -0
- package/dist/models/UploadAcknowledgmentResponse.d.ts +38 -0
- package/dist/models/UploadAcknowledgmentResponse.js +54 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +30 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/docs/AddressRequest.md +42 -0
- package/docs/AgencyControllerApi.md +662 -0
- package/docs/AgencyQueryControllerApi.md +78 -0
- package/docs/CreateAgencyRequest.md +46 -0
- package/docs/IdResponse.md +34 -0
- package/docs/InvitationControllerApi.md +154 -0
- package/docs/InvitationQueryControllerApi.md +78 -0
- package/docs/InvitationViewResponse.md +46 -0
- package/docs/InviteMemberRequest.md +34 -0
- package/docs/PhotoRequest.md +40 -0
- package/docs/PresignedUrlResponse.md +38 -0
- package/docs/PresignedUrlsResponse.md +34 -0
- package/docs/RolesRequest.md +38 -0
- package/docs/SocialMediaRequest.md +36 -0
- package/docs/SocialMediasRequest.md +34 -0
- package/docs/UploadAcknowledgmentResponse.md +36 -0
- package/package.json +21 -0
- package/src/apis/AgencyControllerApi.ts +660 -0
- package/src/apis/AgencyQueryControllerApi.ts +88 -0
- package/src/apis/InvitationControllerApi.ts +173 -0
- package/src/apis/InvitationQueryControllerApi.ts +96 -0
- package/src/apis/index.ts +6 -0
- package/src/index.ts +5 -0
- package/src/models/AddressRequest.ts +102 -0
- package/src/models/CreateAgencyRequest.ts +128 -0
- package/src/models/IdResponse.ts +66 -0
- package/src/models/InvitationViewResponse.ts +132 -0
- package/src/models/InviteMemberRequest.ts +66 -0
- package/src/models/PhotoRequest.ts +105 -0
- package/src/models/PresignedUrlResponse.ts +84 -0
- package/src/models/PresignedUrlsResponse.ts +74 -0
- package/src/models/RolesRequest.ts +97 -0
- package/src/models/SocialMediaRequest.ts +88 -0
- package/src/models/SocialMediasRequest.ts +74 -0
- package/src/models/UploadAcknowledgmentResponse.ts +75 -0
- package/src/models/index.ts +14 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { InvitationViewResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class InvitationQueryControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
getAllInvitationsRaw(requestParameters, initOverrides) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['agencyId'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling getAllInvitations().');
|
|
35
|
+
}
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
39
|
+
// oauth required
|
|
40
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
41
|
+
}
|
|
42
|
+
let urlPath = `/agency/{agencyId}/invitation`;
|
|
43
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
44
|
+
const response = yield this.request({
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'GET',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
}, initOverrides);
|
|
50
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(InvitationViewResponseFromJSON));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
*/
|
|
55
|
+
getAllInvitations(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const response = yield this.getAllInvitationsRaw(requestParameters, initOverrides);
|
|
58
|
+
return yield response.value();
|
|
59
|
+
});
|
|
60
|
+
}
|
|
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 AddressRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AddressRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddressRequest
|
|
22
|
+
*/
|
|
23
|
+
country: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddressRequest
|
|
28
|
+
*/
|
|
29
|
+
city: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddressRequest
|
|
34
|
+
*/
|
|
35
|
+
district: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AddressRequest
|
|
40
|
+
*/
|
|
41
|
+
subdistrict: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AddressRequest
|
|
46
|
+
*/
|
|
47
|
+
street: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AddressRequest interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAddressRequest(value: object): value is AddressRequest;
|
|
53
|
+
export declare function AddressRequestFromJSON(json: any): AddressRequest;
|
|
54
|
+
export declare function AddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressRequest;
|
|
55
|
+
export declare function AddressRequestToJSON(json: any): AddressRequest;
|
|
56
|
+
export declare function AddressRequestToJSONTyped(value?: AddressRequest | 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 AddressRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAddressRequest(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 AddressRequestFromJSON(json) {
|
|
31
|
+
return AddressRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function AddressRequestFromJSONTyped(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 AddressRequestToJSON(json) {
|
|
46
|
+
return AddressRequestToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function AddressRequestToJSONTyped(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 { AddressRequest } from './AddressRequest';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateAgencyRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateAgencyRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateAgencyRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateAgencyRequest
|
|
29
|
+
*/
|
|
30
|
+
email: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof CreateAgencyRequest
|
|
35
|
+
*/
|
|
36
|
+
seats: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateAgencyRequest
|
|
41
|
+
*/
|
|
42
|
+
subDomain: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateAgencyRequest
|
|
47
|
+
*/
|
|
48
|
+
phone: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {AddressRequest}
|
|
52
|
+
* @memberof CreateAgencyRequest
|
|
53
|
+
*/
|
|
54
|
+
address: AddressRequest;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof CreateAgencyRequest
|
|
59
|
+
*/
|
|
60
|
+
yearSince: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the CreateAgencyRequest interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfCreateAgencyRequest(value: object): value is CreateAgencyRequest;
|
|
66
|
+
export declare function CreateAgencyRequestFromJSON(json: any): CreateAgencyRequest;
|
|
67
|
+
export declare function CreateAgencyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgencyRequest;
|
|
68
|
+
export declare function CreateAgencyRequestToJSON(json: any): CreateAgencyRequest;
|
|
69
|
+
export declare function CreateAgencyRequestToJSONTyped(value?: CreateAgencyRequest | 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 { AddressRequestFromJSON, AddressRequestToJSON, } from './AddressRequest';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CreateAgencyRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCreateAgencyRequest(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 CreateAgencyRequestFromJSON(json) {
|
|
36
|
+
return CreateAgencyRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function CreateAgencyRequestFromJSONTyped(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': AddressRequestFromJSON(json['address']),
|
|
49
|
+
'yearSince': json['yearSince'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function CreateAgencyRequestToJSON(json) {
|
|
53
|
+
return CreateAgencyRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function CreateAgencyRequestToJSONTyped(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': AddressRequestToJSON(value['address']),
|
|
66
|
+
'yearSince': value['yearSince'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 IdResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface IdResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IdResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IdResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIdResponse(value: object): value is IdResponse;
|
|
29
|
+
export declare function IdResponseFromJSON(json: any): IdResponse;
|
|
30
|
+
export declare function IdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdResponse;
|
|
31
|
+
export declare function IdResponseToJSON(json: any): IdResponse;
|
|
32
|
+
export declare function IdResponseToJSONTyped(value?: IdResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 IdResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIdResponse(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function IdResponseFromJSON(json) {
|
|
23
|
+
return IdResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function IdResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': json['id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function IdResponseToJSON(json) {
|
|
34
|
+
return IdResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function IdResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': value['id'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 InvitationViewResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface InvitationViewResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvitationViewResponse
|
|
22
|
+
*/
|
|
23
|
+
invitationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvitationViewResponse
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvitationViewResponse
|
|
34
|
+
*/
|
|
35
|
+
status: InvitationViewResponseStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof InvitationViewResponse
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof InvitationViewResponse
|
|
46
|
+
*/
|
|
47
|
+
expiresAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof InvitationViewResponse
|
|
52
|
+
*/
|
|
53
|
+
acceptedAt?: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof InvitationViewResponse
|
|
58
|
+
*/
|
|
59
|
+
acceptedBy?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const InvitationViewResponseStatusEnum: {
|
|
65
|
+
readonly Pending: "PENDING";
|
|
66
|
+
readonly Accepted: "ACCEPTED";
|
|
67
|
+
readonly Rejected: "REJECTED";
|
|
68
|
+
readonly Cancelled: "CANCELLED";
|
|
69
|
+
readonly Expired: "EXPIRED";
|
|
70
|
+
};
|
|
71
|
+
export type InvitationViewResponseStatusEnum = typeof InvitationViewResponseStatusEnum[keyof typeof InvitationViewResponseStatusEnum];
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the InvitationViewResponse interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfInvitationViewResponse(value: object): value is InvitationViewResponse;
|
|
76
|
+
export declare function InvitationViewResponseFromJSON(json: any): InvitationViewResponse;
|
|
77
|
+
export declare function InvitationViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationViewResponse;
|
|
78
|
+
export declare function InvitationViewResponseToJSON(json: any): InvitationViewResponse;
|
|
79
|
+
export declare function InvitationViewResponseToJSONTyped(value?: InvitationViewResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const InvitationViewResponseStatusEnum = {
|
|
18
|
+
Pending: 'PENDING',
|
|
19
|
+
Accepted: 'ACCEPTED',
|
|
20
|
+
Rejected: 'REJECTED',
|
|
21
|
+
Cancelled: 'CANCELLED',
|
|
22
|
+
Expired: 'EXPIRED'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the InvitationViewResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfInvitationViewResponse(value) {
|
|
28
|
+
if (!('invitationId' in value) || value['invitationId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function InvitationViewResponseFromJSON(json) {
|
|
41
|
+
return InvitationViewResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function InvitationViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'invitationId': json['invitationId'],
|
|
49
|
+
'email': json['email'],
|
|
50
|
+
'status': json['status'],
|
|
51
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
52
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
53
|
+
'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
|
|
54
|
+
'acceptedBy': json['acceptedBy'] == null ? undefined : json['acceptedBy'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export function InvitationViewResponseToJSON(json) {
|
|
58
|
+
return InvitationViewResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function InvitationViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'invitationId': value['invitationId'],
|
|
66
|
+
'email': value['email'],
|
|
67
|
+
'status': value['status'],
|
|
68
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
69
|
+
'expiresAt': value['expiresAt'].toISOString(),
|
|
70
|
+
'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
|
|
71
|
+
'acceptedBy': value['acceptedBy'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 InviteMemberRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface InviteMemberRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof InviteMemberRequest
|
|
22
|
+
*/
|
|
23
|
+
emails: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the InviteMemberRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfInviteMemberRequest(value: object): value is InviteMemberRequest;
|
|
29
|
+
export declare function InviteMemberRequestFromJSON(json: any): InviteMemberRequest;
|
|
30
|
+
export declare function InviteMemberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteMemberRequest;
|
|
31
|
+
export declare function InviteMemberRequestToJSON(json: any): InviteMemberRequest;
|
|
32
|
+
export declare function InviteMemberRequestToJSONTyped(value?: InviteMemberRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 InviteMemberRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfInviteMemberRequest(value) {
|
|
18
|
+
if (!('emails' in value) || value['emails'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function InviteMemberRequestFromJSON(json) {
|
|
23
|
+
return InviteMemberRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function InviteMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'emails': json['emails'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function InviteMemberRequestToJSON(json) {
|
|
34
|
+
return InviteMemberRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function InviteMemberRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'emails': value['emails'],
|
|
42
|
+
};
|
|
43
|
+
}
|