@forteplatforms/sdk 1.0.141 → 1.0.147
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/dist/generated/apis/ProjectsServerApi.d.ts +84 -1
- package/dist/generated/apis/ProjectsServerApi.js +374 -0
- package/dist/generated/apis/UsersServerApi.d.ts +133 -1
- package/dist/generated/apis/UsersServerApi.js +631 -0
- package/dist/generated/models/CompleteOtpLoginRequest.d.ts +32 -0
- package/dist/generated/models/CompleteOtpLoginRequest.js +51 -0
- package/dist/generated/models/ContentObject.d.ts +116 -0
- package/dist/generated/models/ContentObject.js +99 -0
- package/dist/generated/models/ContentShare.d.ts +46 -0
- package/dist/generated/models/ContentShare.js +63 -0
- package/dist/generated/models/ContentShareRequestItem.d.ts +46 -0
- package/dist/generated/models/ContentShareRequestItem.js +63 -0
- package/dist/generated/models/CreateContentUploadLinkRequest.d.ts +52 -0
- package/dist/generated/models/CreateContentUploadLinkRequest.js +59 -0
- package/dist/generated/models/CreateContentUploadLinkResponse.d.ts +57 -0
- package/dist/generated/models/CreateContentUploadLinkResponse.js +68 -0
- package/dist/generated/models/CreateOtpLoginRequest.d.ts +44 -0
- package/dist/generated/models/CreateOtpLoginRequest.js +53 -0
- package/dist/generated/models/CreateOtpLoginResponse.d.ts +38 -0
- package/dist/generated/models/CreateOtpLoginResponse.js +55 -0
- package/dist/generated/models/CreateUserInviteRequest.d.ts +32 -0
- package/dist/generated/models/CreateUserInviteRequest.js +51 -0
- package/dist/generated/models/ForteApiException.d.ts +10 -0
- package/dist/generated/models/ForteApiException.js +11 -1
- package/dist/generated/models/GetContentDownloadLinkResponse.d.ts +38 -0
- package/dist/generated/models/GetContentDownloadLinkResponse.js +55 -0
- package/dist/generated/models/ListContentResponse.d.ts +39 -0
- package/dist/generated/models/ListContentResponse.js +54 -0
- package/dist/generated/models/ListUserInvitesResponse.d.ts +33 -0
- package/dist/generated/models/ListUserInvitesResponse.js +50 -0
- package/dist/generated/models/NotificationTemplatesConfig.d.ts +30 -0
- package/dist/generated/models/NotificationTemplatesConfig.js +10 -0
- package/dist/generated/models/PendingUserInviteObject.d.ts +80 -0
- package/dist/generated/models/PendingUserInviteObject.js +65 -0
- package/dist/generated/models/RequiredUploadHeaders.d.ts +38 -0
- package/dist/generated/models/RequiredUploadHeaders.js +55 -0
- package/dist/generated/models/UpdateContentSharesRequest.d.ts +33 -0
- package/dist/generated/models/UpdateContentSharesRequest.js +52 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.d.ts +30 -0
- package/dist/generated/models/UpdateNotificationTemplatesRequest.js +10 -0
- package/dist/generated/models/UserActionLogObject.d.ts +4 -0
- package/dist/generated/models/UserActionLogObject.js +4 -0
- package/dist/generated/models/UserObject.d.ts +6 -0
- package/dist/generated/models/UserObject.js +2 -0
- package/dist/generated/models/index.d.ts +15 -0
- package/dist/generated/models/index.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 CompleteOtpLoginRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CompleteOtpLoginRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CompleteOtpLoginRequest
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CompleteOtpLoginRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCompleteOtpLoginRequest(value: object): value is CompleteOtpLoginRequest;
|
|
29
|
+
export declare function CompleteOtpLoginRequestFromJSON(json: any): CompleteOtpLoginRequest;
|
|
30
|
+
export declare function CompleteOtpLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompleteOtpLoginRequest;
|
|
31
|
+
export declare function CompleteOtpLoginRequestToJSON(json: any): CompleteOtpLoginRequest;
|
|
32
|
+
export declare function CompleteOtpLoginRequestToJSONTyped(value?: CompleteOtpLoginRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.instanceOfCompleteOtpLoginRequest = instanceOfCompleteOtpLoginRequest;
|
|
17
|
+
exports.CompleteOtpLoginRequestFromJSON = CompleteOtpLoginRequestFromJSON;
|
|
18
|
+
exports.CompleteOtpLoginRequestFromJSONTyped = CompleteOtpLoginRequestFromJSONTyped;
|
|
19
|
+
exports.CompleteOtpLoginRequestToJSON = CompleteOtpLoginRequestToJSON;
|
|
20
|
+
exports.CompleteOtpLoginRequestToJSONTyped = CompleteOtpLoginRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CompleteOtpLoginRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCompleteOtpLoginRequest(value) {
|
|
25
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CompleteOtpLoginRequestFromJSON(json) {
|
|
30
|
+
return CompleteOtpLoginRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CompleteOtpLoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'code': json['code'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function CompleteOtpLoginRequestToJSON(json) {
|
|
41
|
+
return CompleteOtpLoginRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CompleteOtpLoginRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'code': value['code'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 { ContentShare } from './ContentShare';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContentObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ContentObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ContentObject
|
|
23
|
+
*/
|
|
24
|
+
contentId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ContentObject
|
|
29
|
+
*/
|
|
30
|
+
projectId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ContentObject
|
|
35
|
+
*/
|
|
36
|
+
userId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ContentObject
|
|
41
|
+
*/
|
|
42
|
+
state: ContentObjectStateType;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ContentObject
|
|
47
|
+
*/
|
|
48
|
+
contentType: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ContentObject
|
|
53
|
+
*/
|
|
54
|
+
sizeBytes: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ContentObject
|
|
59
|
+
*/
|
|
60
|
+
fileName?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {{ [key: string]: any; }}
|
|
64
|
+
* @memberof ContentObject
|
|
65
|
+
*/
|
|
66
|
+
metadata: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<ContentShare>}
|
|
72
|
+
* @memberof ContentObject
|
|
73
|
+
*/
|
|
74
|
+
sharedWith: Array<ContentShare>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof ContentObject
|
|
79
|
+
*/
|
|
80
|
+
createdAt: Date;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof ContentObject
|
|
85
|
+
*/
|
|
86
|
+
updatedAt?: Date;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof ContentObject
|
|
91
|
+
*/
|
|
92
|
+
validatedAt?: Date;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof ContentObject
|
|
97
|
+
*/
|
|
98
|
+
expiresAt?: Date;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export declare const ContentObjectStateType: {
|
|
104
|
+
readonly PENDING: "PENDING";
|
|
105
|
+
readonly VALID: "VALID";
|
|
106
|
+
readonly DELETED: "DELETED";
|
|
107
|
+
};
|
|
108
|
+
export type ContentObjectStateType = typeof ContentObjectStateType[keyof typeof ContentObjectStateType];
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the ContentObject interface.
|
|
111
|
+
*/
|
|
112
|
+
export declare function instanceOfContentObject(value: object): value is ContentObject;
|
|
113
|
+
export declare function ContentObjectFromJSON(json: any): ContentObject;
|
|
114
|
+
export declare function ContentObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentObject;
|
|
115
|
+
export declare function ContentObjectToJSON(json: any): ContentObject;
|
|
116
|
+
export declare function ContentObjectToJSONTyped(value?: ContentObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.ContentObjectStateType = void 0;
|
|
17
|
+
exports.instanceOfContentObject = instanceOfContentObject;
|
|
18
|
+
exports.ContentObjectFromJSON = ContentObjectFromJSON;
|
|
19
|
+
exports.ContentObjectFromJSONTyped = ContentObjectFromJSONTyped;
|
|
20
|
+
exports.ContentObjectToJSON = ContentObjectToJSON;
|
|
21
|
+
exports.ContentObjectToJSONTyped = ContentObjectToJSONTyped;
|
|
22
|
+
var ContentShare_1 = require("./ContentShare");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ContentObjectStateType = {
|
|
27
|
+
PENDING: 'PENDING',
|
|
28
|
+
VALID: 'VALID',
|
|
29
|
+
DELETED: 'DELETED'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ContentObject interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfContentObject(value) {
|
|
35
|
+
if (!('projectId' in value) || value['projectId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('sharedWith' in value) || value['sharedWith'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function ContentObjectFromJSON(json) {
|
|
54
|
+
return ContentObjectFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ContentObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'contentId': json['contentId'] == null ? undefined : json['contentId'],
|
|
62
|
+
'projectId': json['projectId'],
|
|
63
|
+
'userId': json['userId'],
|
|
64
|
+
'state': json['state'],
|
|
65
|
+
'contentType': json['contentType'],
|
|
66
|
+
'sizeBytes': json['sizeBytes'],
|
|
67
|
+
'fileName': json['fileName'] == null ? undefined : json['fileName'],
|
|
68
|
+
'metadata': json['metadata'],
|
|
69
|
+
'sharedWith': (json['sharedWith'].map(ContentShare_1.ContentShareFromJSON)),
|
|
70
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
71
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
72
|
+
'validatedAt': json['validatedAt'] == null ? undefined : (new Date(json['validatedAt'])),
|
|
73
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function ContentObjectToJSON(json) {
|
|
77
|
+
return ContentObjectToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function ContentObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
80
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'contentId': value['contentId'],
|
|
86
|
+
'projectId': value['projectId'],
|
|
87
|
+
'userId': value['userId'],
|
|
88
|
+
'state': value['state'],
|
|
89
|
+
'contentType': value['contentType'],
|
|
90
|
+
'sizeBytes': value['sizeBytes'],
|
|
91
|
+
'fileName': value['fileName'],
|
|
92
|
+
'metadata': value['metadata'],
|
|
93
|
+
'sharedWith': (value['sharedWith'].map(ContentShare_1.ContentShareToJSON)),
|
|
94
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
95
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
96
|
+
'validatedAt': value['validatedAt'] == null ? value['validatedAt'] : value['validatedAt'].toISOString(),
|
|
97
|
+
'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 ContentShare
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentShare {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContentShare
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContentShare
|
|
28
|
+
*/
|
|
29
|
+
permission: ContentSharePermissionType;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ContentSharePermissionType: {
|
|
35
|
+
readonly VIEWER: "VIEWER";
|
|
36
|
+
readonly EDITOR: "EDITOR";
|
|
37
|
+
};
|
|
38
|
+
export type ContentSharePermissionType = typeof ContentSharePermissionType[keyof typeof ContentSharePermissionType];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ContentShare interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfContentShare(value: object): value is ContentShare;
|
|
43
|
+
export declare function ContentShareFromJSON(json: any): ContentShare;
|
|
44
|
+
export declare function ContentShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentShare;
|
|
45
|
+
export declare function ContentShareToJSON(json: any): ContentShare;
|
|
46
|
+
export declare function ContentShareToJSONTyped(value?: ContentShare | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.ContentSharePermissionType = void 0;
|
|
17
|
+
exports.instanceOfContentShare = instanceOfContentShare;
|
|
18
|
+
exports.ContentShareFromJSON = ContentShareFromJSON;
|
|
19
|
+
exports.ContentShareFromJSONTyped = ContentShareFromJSONTyped;
|
|
20
|
+
exports.ContentShareToJSON = ContentShareToJSON;
|
|
21
|
+
exports.ContentShareToJSONTyped = ContentShareToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ContentSharePermissionType = {
|
|
26
|
+
VIEWER: 'VIEWER',
|
|
27
|
+
EDITOR: 'EDITOR'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ContentShare interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfContentShare(value) {
|
|
33
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('permission' in value) || value['permission'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ContentShareFromJSON(json) {
|
|
40
|
+
return ContentShareFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ContentShareFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'userId': json['userId'],
|
|
48
|
+
'permission': json['permission'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ContentShareToJSON(json) {
|
|
52
|
+
return ContentShareToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ContentShareToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'userId': value['userId'],
|
|
61
|
+
'permission': value['permission'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 ContentShareRequestItem
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentShareRequestItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContentShareRequestItem
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContentShareRequestItem
|
|
28
|
+
*/
|
|
29
|
+
permission: ContentShareRequestItemPermissionType;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ContentShareRequestItemPermissionType: {
|
|
35
|
+
readonly VIEWER: "VIEWER";
|
|
36
|
+
readonly EDITOR: "EDITOR";
|
|
37
|
+
};
|
|
38
|
+
export type ContentShareRequestItemPermissionType = typeof ContentShareRequestItemPermissionType[keyof typeof ContentShareRequestItemPermissionType];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ContentShareRequestItem interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfContentShareRequestItem(value: object): value is ContentShareRequestItem;
|
|
43
|
+
export declare function ContentShareRequestItemFromJSON(json: any): ContentShareRequestItem;
|
|
44
|
+
export declare function ContentShareRequestItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentShareRequestItem;
|
|
45
|
+
export declare function ContentShareRequestItemToJSON(json: any): ContentShareRequestItem;
|
|
46
|
+
export declare function ContentShareRequestItemToJSONTyped(value?: ContentShareRequestItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.ContentShareRequestItemPermissionType = void 0;
|
|
17
|
+
exports.instanceOfContentShareRequestItem = instanceOfContentShareRequestItem;
|
|
18
|
+
exports.ContentShareRequestItemFromJSON = ContentShareRequestItemFromJSON;
|
|
19
|
+
exports.ContentShareRequestItemFromJSONTyped = ContentShareRequestItemFromJSONTyped;
|
|
20
|
+
exports.ContentShareRequestItemToJSON = ContentShareRequestItemToJSON;
|
|
21
|
+
exports.ContentShareRequestItemToJSONTyped = ContentShareRequestItemToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ContentShareRequestItemPermissionType = {
|
|
26
|
+
VIEWER: 'VIEWER',
|
|
27
|
+
EDITOR: 'EDITOR'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ContentShareRequestItem interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfContentShareRequestItem(value) {
|
|
33
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('permission' in value) || value['permission'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ContentShareRequestItemFromJSON(json) {
|
|
40
|
+
return ContentShareRequestItemFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ContentShareRequestItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'userId': json['userId'],
|
|
48
|
+
'permission': json['permission'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ContentShareRequestItemToJSON(json) {
|
|
52
|
+
return ContentShareRequestItemToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ContentShareRequestItemToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'userId': value['userId'],
|
|
61
|
+
'permission': value['permission'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 CreateContentUploadLinkRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateContentUploadLinkRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateContentUploadLinkRequest
|
|
22
|
+
*/
|
|
23
|
+
contentType: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CreateContentUploadLinkRequest
|
|
28
|
+
*/
|
|
29
|
+
sizeBytes: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateContentUploadLinkRequest
|
|
34
|
+
*/
|
|
35
|
+
fileName?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof CreateContentUploadLinkRequest
|
|
40
|
+
*/
|
|
41
|
+
metadata?: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CreateContentUploadLinkRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCreateContentUploadLinkRequest(value: object): value is CreateContentUploadLinkRequest;
|
|
49
|
+
export declare function CreateContentUploadLinkRequestFromJSON(json: any): CreateContentUploadLinkRequest;
|
|
50
|
+
export declare function CreateContentUploadLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateContentUploadLinkRequest;
|
|
51
|
+
export declare function CreateContentUploadLinkRequestToJSON(json: any): CreateContentUploadLinkRequest;
|
|
52
|
+
export declare function CreateContentUploadLinkRequestToJSONTyped(value?: CreateContentUploadLinkRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
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.instanceOfCreateContentUploadLinkRequest = instanceOfCreateContentUploadLinkRequest;
|
|
17
|
+
exports.CreateContentUploadLinkRequestFromJSON = CreateContentUploadLinkRequestFromJSON;
|
|
18
|
+
exports.CreateContentUploadLinkRequestFromJSONTyped = CreateContentUploadLinkRequestFromJSONTyped;
|
|
19
|
+
exports.CreateContentUploadLinkRequestToJSON = CreateContentUploadLinkRequestToJSON;
|
|
20
|
+
exports.CreateContentUploadLinkRequestToJSONTyped = CreateContentUploadLinkRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateContentUploadLinkRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateContentUploadLinkRequest(value) {
|
|
25
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function CreateContentUploadLinkRequestFromJSON(json) {
|
|
32
|
+
return CreateContentUploadLinkRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function CreateContentUploadLinkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'contentType': json['contentType'],
|
|
40
|
+
'sizeBytes': json['sizeBytes'],
|
|
41
|
+
'fileName': json['fileName'] == null ? undefined : json['fileName'],
|
|
42
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function CreateContentUploadLinkRequestToJSON(json) {
|
|
46
|
+
return CreateContentUploadLinkRequestToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function CreateContentUploadLinkRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'contentType': value['contentType'],
|
|
55
|
+
'sizeBytes': value['sizeBytes'],
|
|
56
|
+
'fileName': value['fileName'],
|
|
57
|
+
'metadata': value['metadata'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
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 { RequiredUploadHeaders } from './RequiredUploadHeaders';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateContentUploadLinkResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateContentUploadLinkResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateContentUploadLinkResponse
|
|
23
|
+
*/
|
|
24
|
+
contentId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateContentUploadLinkResponse
|
|
29
|
+
*/
|
|
30
|
+
uploadUrl: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RequiredUploadHeaders}
|
|
34
|
+
* @memberof CreateContentUploadLinkResponse
|
|
35
|
+
*/
|
|
36
|
+
requiredHeaders: RequiredUploadHeaders;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof CreateContentUploadLinkResponse
|
|
41
|
+
*/
|
|
42
|
+
uploadUrlExpiresAt: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof CreateContentUploadLinkResponse
|
|
47
|
+
*/
|
|
48
|
+
contentExpiresAt: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the CreateContentUploadLinkResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfCreateContentUploadLinkResponse(value: object): value is CreateContentUploadLinkResponse;
|
|
54
|
+
export declare function CreateContentUploadLinkResponseFromJSON(json: any): CreateContentUploadLinkResponse;
|
|
55
|
+
export declare function CreateContentUploadLinkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateContentUploadLinkResponse;
|
|
56
|
+
export declare function CreateContentUploadLinkResponseToJSON(json: any): CreateContentUploadLinkResponse;
|
|
57
|
+
export declare function CreateContentUploadLinkResponseToJSONTyped(value?: CreateContentUploadLinkResponse | null, ignoreDiscriminator?: boolean): any;
|