@knowledge-stack/ksapi 1.61.10 → 1.62.1
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 +24 -0
- package/README.md +26 -2
- package/dist/apis/FoldersApi.d.ts +4 -4
- package/dist/apis/FoldersApi.js +2 -2
- package/dist/apis/TenantGroupsApi.d.ts +667 -0
- package/dist/apis/TenantGroupsApi.js +717 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/FoldersApi.d.ts +4 -4
- package/dist/esm/apis/FoldersApi.js +2 -2
- package/dist/esm/apis/TenantGroupsApi.d.ts +667 -0
- package/dist/esm/apis/TenantGroupsApi.js +713 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AddMemberRequest.d.ts +47 -0
- package/dist/esm/models/AddMemberRequest.js +44 -0
- package/dist/esm/models/CreateGroupPermissionRequest.d.ts +54 -0
- package/dist/esm/models/CreateGroupPermissionRequest.js +49 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +53 -0
- package/dist/esm/models/CreateGroupRequest.js +54 -0
- package/dist/esm/models/GroupPermissionResponse.d.ts +90 -0
- package/dist/esm/models/GroupPermissionResponse.js +73 -0
- package/dist/esm/models/GroupResponse.d.ts +83 -0
- package/dist/esm/models/GroupResponse.js +66 -0
- package/dist/esm/models/MembershipResponse.d.ts +77 -0
- package/dist/esm/models/MembershipResponse.js +64 -0
- package/dist/esm/models/PaginatedResponseGroupPermissionResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseGroupPermissionResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseGroupResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseGroupResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseMembershipResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseMembershipResponse.js +70 -0
- package/dist/esm/models/UpdateGroupPermissionRequest.d.ts +54 -0
- package/dist/esm/models/UpdateGroupPermissionRequest.js +45 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +53 -0
- package/dist/esm/models/UpdateGroupRequest.js +49 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AddMemberRequest.d.ts +47 -0
- package/dist/models/AddMemberRequest.js +52 -0
- package/dist/models/CreateGroupPermissionRequest.d.ts +54 -0
- package/dist/models/CreateGroupPermissionRequest.js +57 -0
- package/dist/models/CreateGroupRequest.d.ts +53 -0
- package/dist/models/CreateGroupRequest.js +62 -0
- package/dist/models/GroupPermissionResponse.d.ts +90 -0
- package/dist/models/GroupPermissionResponse.js +81 -0
- package/dist/models/GroupResponse.d.ts +83 -0
- package/dist/models/GroupResponse.js +74 -0
- package/dist/models/MembershipResponse.d.ts +77 -0
- package/dist/models/MembershipResponse.js +72 -0
- package/dist/models/PaginatedResponseGroupPermissionResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseGroupPermissionResponse.js +78 -0
- package/dist/models/PaginatedResponseGroupResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseGroupResponse.js +78 -0
- package/dist/models/PaginatedResponseMembershipResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseMembershipResponse.js +78 -0
- package/dist/models/UpdateGroupPermissionRequest.d.ts +54 -0
- package/dist/models/UpdateGroupPermissionRequest.js +53 -0
- package/dist/models/UpdateGroupRequest.d.ts +53 -0
- package/dist/models/UpdateGroupRequest.js +57 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AddMemberRequest.md +34 -0
- package/docs/CreateGroupPermissionRequest.md +36 -0
- package/docs/CreateGroupRequest.md +36 -0
- package/docs/FoldersApi.md +1 -1
- package/docs/GroupPermissionResponse.md +48 -0
- package/docs/GroupResponse.md +46 -0
- package/docs/MembershipResponse.md +44 -0
- package/docs/PaginatedResponseGroupPermissionResponse.md +40 -0
- package/docs/PaginatedResponseGroupResponse.md +40 -0
- package/docs/PaginatedResponseMembershipResponse.md +40 -0
- package/docs/TenantGroupsApi.md +1052 -0
- package/docs/UpdateGroupPermissionRequest.md +36 -0
- package/docs/UpdateGroupRequest.md +36 -0
- package/package.json +1 -1
- package/src/apis/FoldersApi.ts +4 -4
- package/src/apis/TenantGroupsApi.ts +1449 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddMemberRequest.ts +83 -0
- package/src/models/CreateGroupPermissionRequest.ts +102 -0
- package/src/models/CreateGroupRequest.ts +98 -0
- package/src/models/GroupPermissionResponse.ts +156 -0
- package/src/models/GroupResponse.ts +136 -0
- package/src/models/MembershipResponse.ts +128 -0
- package/src/models/PaginatedResponseGroupPermissionResponse.ts +130 -0
- package/src/models/PaginatedResponseGroupResponse.ts +130 -0
- package/src/models/PaginatedResponseMembershipResponse.ts +130 -0
- package/src/models/UpdateGroupPermissionRequest.ts +100 -0
- package/src/models/UpdateGroupRequest.ts +94 -0
- package/src/models/index.ts +11 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GroupPermissionResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfGroupPermissionResponse = instanceOfGroupPermissionResponse;
|
|
18
|
+
exports.GroupPermissionResponseFromJSON = GroupPermissionResponseFromJSON;
|
|
19
|
+
exports.GroupPermissionResponseFromJSONTyped = GroupPermissionResponseFromJSONTyped;
|
|
20
|
+
exports.GroupPermissionResponseToJSON = GroupPermissionResponseToJSON;
|
|
21
|
+
exports.GroupPermissionResponseToJSONTyped = GroupPermissionResponseToJSONTyped;
|
|
22
|
+
const PermissionCapability_1 = require("./PermissionCapability");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GroupPermissionResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGroupPermissionResponse(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('capability' in value) || value['capability'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function GroupPermissionResponseFromJSON(json) {
|
|
46
|
+
return GroupPermissionResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GroupPermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': json['id'],
|
|
54
|
+
'tenantId': json['tenant_id'],
|
|
55
|
+
'groupId': json['group_id'],
|
|
56
|
+
'pathPartId': json['path_part_id'],
|
|
57
|
+
'materializedPath': json['materialized_path'],
|
|
58
|
+
'capability': (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
|
|
59
|
+
'createdAt': (new Date(json['created_at'])),
|
|
60
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function GroupPermissionResponseToJSON(json) {
|
|
64
|
+
return GroupPermissionResponseToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function GroupPermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'tenant_id': value['tenantId'],
|
|
73
|
+
'group_id': value['groupId'],
|
|
74
|
+
'path_part_id': value['pathPartId'],
|
|
75
|
+
'materialized_path': value['materializedPath'],
|
|
76
|
+
'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
|
|
77
|
+
'created_at': value['createdAt'].toISOString(),
|
|
78
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
exports.GroupPermissionResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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 GroupResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface GroupResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GroupResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GroupResponse
|
|
28
|
+
*/
|
|
29
|
+
tenantId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GroupResponse
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GroupResponse
|
|
40
|
+
*/
|
|
41
|
+
description: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GroupResponse
|
|
46
|
+
*/
|
|
47
|
+
memberCount?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof GroupResponse
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof GroupResponse
|
|
58
|
+
*/
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the GroupResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfGroupResponse(value: object): value is GroupResponse;
|
|
65
|
+
export declare function GroupResponseFromJSON(json: any): GroupResponse;
|
|
66
|
+
export declare function GroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupResponse;
|
|
67
|
+
export declare function GroupResponseToJSON(json: any): GroupResponse;
|
|
68
|
+
export declare function GroupResponseToJSONTyped(value?: GroupResponse | null, ignoreDiscriminator?: boolean): any;
|
|
69
|
+
export declare const GroupResponsePropertyValidationAttributesMap: {
|
|
70
|
+
[property: string]: {
|
|
71
|
+
maxLength?: number;
|
|
72
|
+
minLength?: number;
|
|
73
|
+
pattern?: string;
|
|
74
|
+
maximum?: number;
|
|
75
|
+
exclusiveMaximum?: boolean;
|
|
76
|
+
minimum?: number;
|
|
77
|
+
exclusiveMinimum?: boolean;
|
|
78
|
+
multipleOf?: number;
|
|
79
|
+
maxItems?: number;
|
|
80
|
+
minItems?: number;
|
|
81
|
+
uniqueItems?: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GroupResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfGroupResponse = instanceOfGroupResponse;
|
|
18
|
+
exports.GroupResponseFromJSON = GroupResponseFromJSON;
|
|
19
|
+
exports.GroupResponseFromJSONTyped = GroupResponseFromJSONTyped;
|
|
20
|
+
exports.GroupResponseToJSON = GroupResponseToJSON;
|
|
21
|
+
exports.GroupResponseToJSONTyped = GroupResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GroupResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGroupResponse(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function GroupResponseFromJSON(json) {
|
|
41
|
+
return GroupResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'tenantId': json['tenant_id'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'description': json['description'],
|
|
52
|
+
'memberCount': json['member_count'] == null ? undefined : json['member_count'],
|
|
53
|
+
'createdAt': (new Date(json['created_at'])),
|
|
54
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function GroupResponseToJSON(json) {
|
|
58
|
+
return GroupResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function GroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'tenant_id': value['tenantId'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'description': value['description'],
|
|
69
|
+
'member_count': value['memberCount'],
|
|
70
|
+
'created_at': value['createdAt'].toISOString(),
|
|
71
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
exports.GroupResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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 MembershipResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface MembershipResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MembershipResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MembershipResponse
|
|
28
|
+
*/
|
|
29
|
+
tenantId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MembershipResponse
|
|
34
|
+
*/
|
|
35
|
+
groupId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MembershipResponse
|
|
40
|
+
*/
|
|
41
|
+
userId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof MembershipResponse
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof MembershipResponse
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the MembershipResponse interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfMembershipResponse(value: object): value is MembershipResponse;
|
|
59
|
+
export declare function MembershipResponseFromJSON(json: any): MembershipResponse;
|
|
60
|
+
export declare function MembershipResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MembershipResponse;
|
|
61
|
+
export declare function MembershipResponseToJSON(json: any): MembershipResponse;
|
|
62
|
+
export declare function MembershipResponseToJSONTyped(value?: MembershipResponse | null, ignoreDiscriminator?: boolean): any;
|
|
63
|
+
export declare const MembershipResponsePropertyValidationAttributesMap: {
|
|
64
|
+
[property: string]: {
|
|
65
|
+
maxLength?: number;
|
|
66
|
+
minLength?: number;
|
|
67
|
+
pattern?: string;
|
|
68
|
+
maximum?: number;
|
|
69
|
+
exclusiveMaximum?: boolean;
|
|
70
|
+
minimum?: number;
|
|
71
|
+
exclusiveMinimum?: boolean;
|
|
72
|
+
multipleOf?: number;
|
|
73
|
+
maxItems?: number;
|
|
74
|
+
minItems?: number;
|
|
75
|
+
uniqueItems?: boolean;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MembershipResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfMembershipResponse = instanceOfMembershipResponse;
|
|
18
|
+
exports.MembershipResponseFromJSON = MembershipResponseFromJSON;
|
|
19
|
+
exports.MembershipResponseFromJSONTyped = MembershipResponseFromJSONTyped;
|
|
20
|
+
exports.MembershipResponseToJSON = MembershipResponseToJSON;
|
|
21
|
+
exports.MembershipResponseToJSONTyped = MembershipResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MembershipResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMembershipResponse(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function MembershipResponseFromJSON(json) {
|
|
41
|
+
return MembershipResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function MembershipResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'tenantId': json['tenant_id'],
|
|
50
|
+
'groupId': json['group_id'],
|
|
51
|
+
'userId': json['user_id'],
|
|
52
|
+
'createdAt': (new Date(json['created_at'])),
|
|
53
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function MembershipResponseToJSON(json) {
|
|
57
|
+
return MembershipResponseToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function MembershipResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'tenant_id': value['tenantId'],
|
|
66
|
+
'group_id': value['groupId'],
|
|
67
|
+
'user_id': value['userId'],
|
|
68
|
+
'created_at': value['createdAt'].toISOString(),
|
|
69
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
exports.MembershipResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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 { GroupPermissionResponse } from './GroupPermissionResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseGroupPermissionResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseGroupPermissionResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<GroupPermissionResponse>}
|
|
22
|
+
* @memberof PaginatedResponseGroupPermissionResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<GroupPermissionResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseGroupPermissionResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseGroupPermissionResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseGroupPermissionResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseGroupPermissionResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseGroupPermissionResponse(value: object): value is PaginatedResponseGroupPermissionResponse;
|
|
48
|
+
export declare function PaginatedResponseGroupPermissionResponseFromJSON(json: any): PaginatedResponseGroupPermissionResponse;
|
|
49
|
+
export declare function PaginatedResponseGroupPermissionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseGroupPermissionResponse;
|
|
50
|
+
export declare function PaginatedResponseGroupPermissionResponseToJSON(json: any): PaginatedResponseGroupPermissionResponse;
|
|
51
|
+
export declare function PaginatedResponseGroupPermissionResponseToJSONTyped(value?: PaginatedResponseGroupPermissionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseGroupPermissionResponsePropertyValidationAttributesMap: {
|
|
53
|
+
[property: string]: {
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
minLength?: number;
|
|
56
|
+
pattern?: string;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
exclusiveMaximum?: boolean;
|
|
59
|
+
minimum?: number;
|
|
60
|
+
exclusiveMinimum?: boolean;
|
|
61
|
+
multipleOf?: number;
|
|
62
|
+
maxItems?: number;
|
|
63
|
+
minItems?: number;
|
|
64
|
+
uniqueItems?: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedResponseGroupPermissionResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseGroupPermissionResponse = instanceOfPaginatedResponseGroupPermissionResponse;
|
|
18
|
+
exports.PaginatedResponseGroupPermissionResponseFromJSON = PaginatedResponseGroupPermissionResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseGroupPermissionResponseFromJSONTyped = PaginatedResponseGroupPermissionResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseGroupPermissionResponseToJSON = PaginatedResponseGroupPermissionResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseGroupPermissionResponseToJSONTyped = PaginatedResponseGroupPermissionResponseToJSONTyped;
|
|
22
|
+
const GroupPermissionResponse_1 = require("./GroupPermissionResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseGroupPermissionResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseGroupPermissionResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseGroupPermissionResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseGroupPermissionResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseGroupPermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(GroupPermissionResponse_1.GroupPermissionResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseGroupPermissionResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseGroupPermissionResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseGroupPermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(GroupPermissionResponse_1.GroupPermissionResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseGroupPermissionResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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 { GroupResponse } from './GroupResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseGroupResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseGroupResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<GroupResponse>}
|
|
22
|
+
* @memberof PaginatedResponseGroupResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<GroupResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseGroupResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseGroupResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseGroupResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseGroupResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseGroupResponse(value: object): value is PaginatedResponseGroupResponse;
|
|
48
|
+
export declare function PaginatedResponseGroupResponseFromJSON(json: any): PaginatedResponseGroupResponse;
|
|
49
|
+
export declare function PaginatedResponseGroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseGroupResponse;
|
|
50
|
+
export declare function PaginatedResponseGroupResponseToJSON(json: any): PaginatedResponseGroupResponse;
|
|
51
|
+
export declare function PaginatedResponseGroupResponseToJSONTyped(value?: PaginatedResponseGroupResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseGroupResponsePropertyValidationAttributesMap: {
|
|
53
|
+
[property: string]: {
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
minLength?: number;
|
|
56
|
+
pattern?: string;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
exclusiveMaximum?: boolean;
|
|
59
|
+
minimum?: number;
|
|
60
|
+
exclusiveMinimum?: boolean;
|
|
61
|
+
multipleOf?: number;
|
|
62
|
+
maxItems?: number;
|
|
63
|
+
minItems?: number;
|
|
64
|
+
uniqueItems?: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedResponseGroupResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseGroupResponse = instanceOfPaginatedResponseGroupResponse;
|
|
18
|
+
exports.PaginatedResponseGroupResponseFromJSON = PaginatedResponseGroupResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseGroupResponseFromJSONTyped = PaginatedResponseGroupResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseGroupResponseToJSON = PaginatedResponseGroupResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseGroupResponseToJSONTyped = PaginatedResponseGroupResponseToJSONTyped;
|
|
22
|
+
const GroupResponse_1 = require("./GroupResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseGroupResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseGroupResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseGroupResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseGroupResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseGroupResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(GroupResponse_1.GroupResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseGroupResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseGroupResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseGroupResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(GroupResponse_1.GroupResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseGroupResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|