jamespot-user-api 1.0.188 → 1.0.190
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/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +14 -14
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBbbApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDatasourceApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +7 -6
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +12 -12
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JObjectApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JSocialActionApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +7 -7
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JWidgetApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/BookmarkType.html +1 -1
- package/documentation/enums/Format.html +1 -1
- package/documentation/enums/GroupModerateStatus.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WidgetType.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +11 -11
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/drive/drive.d.ts +25 -8
- package/lib/src/apis/drive/drive.mock.d.ts +1 -1
- package/lib/src/apis/file/file.d.ts +27 -10
- package/lib/src/types/drive.d.ts +132 -48
- package/lib/src/types/uri.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,25 +1,42 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { ApiWrapper, DriveAccount, DriveGetAccount, DriveGetAccountParams, DriveGetDocumentParams,
|
|
2
|
+
import { ApiWrapper, DriveAccount, DriveGetAccount, DriveGetAccountParams, DriveGetDocumentParams, MSGetDocumentsParams, DriveGetGroupsParams, DriveGetTenantsParams, DriveLogoutParams, DriveSetDefaultAccountParams, FormatList, jFileLittle, MSDocumentEntity, MSGroupEntity, MSSiteEntity, MSTenantEntity, DropboxDocumentEntity, DropboxGetDocumentsParams } from '../../types';
|
|
3
3
|
export declare class JDriveApi extends JBaseApi {
|
|
4
4
|
/**
|
|
5
5
|
* Microsoft graph only
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
tenants(params?: DriveGetTenantsParams
|
|
8
|
+
tenants(params?: DriveGetTenantsParams, options?: {
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
}): Promise<ApiWrapper<MSTenantEntity[]>>;
|
|
9
11
|
/**
|
|
10
12
|
* Microsoft graph only
|
|
11
13
|
* @returns
|
|
12
14
|
*/
|
|
13
|
-
groups(params: DriveGetGroupsParams
|
|
15
|
+
groups(params: DriveGetGroupsParams, options?: {
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
}): Promise<ApiWrapper<MSGroupEntity[]>>;
|
|
14
18
|
/**
|
|
15
19
|
* Microsoft graph only
|
|
16
20
|
* @returns
|
|
17
21
|
*/
|
|
18
|
-
sites(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
sites(options?: {
|
|
23
|
+
signal?: AbortSignal;
|
|
24
|
+
}): Promise<ApiWrapper<MSSiteEntity[]>>;
|
|
25
|
+
listAccount(service: string, options?: {
|
|
26
|
+
signal?: AbortSignal;
|
|
27
|
+
}): Promise<ApiWrapper<DriveAccount[]>>;
|
|
28
|
+
isAccountLogged(service: string, id: string, options?: {
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
}): Promise<ApiWrapper<boolean>>;
|
|
31
|
+
checkAccountToken(service: string, options?: {
|
|
32
|
+
signal?: AbortSignal;
|
|
33
|
+
}): Promise<ApiWrapper<boolean>>;
|
|
34
|
+
msDocuments(params: MSGetDocumentsParams, options?: {
|
|
35
|
+
signal?: AbortSignal;
|
|
36
|
+
}): Promise<ApiWrapper<MSDocumentEntity[]>>;
|
|
37
|
+
dropboxDocuments(params: DropboxGetDocumentsParams, options?: {
|
|
38
|
+
signal?: AbortSignal;
|
|
39
|
+
}): Promise<ApiWrapper<DropboxDocumentEntity[]>>;
|
|
23
40
|
getDocument<T extends jFileLittle = jFileLittle>(params: DriveGetDocumentParams, options?: {
|
|
24
41
|
signal?: AbortSignal;
|
|
25
42
|
format?: FormatList;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiWrapper, BaseMessages, DriveGetAccount, DriveItemType, jFileLittle, MSGroupEntity, MSTenantEntity } from '../../types';
|
|
2
2
|
export declare const driveGetTenants: ApiWrapper<MSTenantEntity[], BaseMessages>;
|
|
3
3
|
export declare const driveGetGroups: ApiWrapper<MSGroupEntity[], BaseMessages>;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const driveMsDocuments: ApiWrapper<DriveItemType[], BaseMessages>;
|
|
5
5
|
export declare const driveGetDocument: ApiWrapper<jFileLittle>;
|
|
6
6
|
export declare const driveLogout: ApiWrapper<boolean>;
|
|
7
7
|
export declare const driveGetAccount: ApiWrapper<DriveGetAccount>;
|
|
@@ -23,9 +23,7 @@ export declare class JFileApi extends JBaseApi {
|
|
|
23
23
|
}>;
|
|
24
24
|
/**
|
|
25
25
|
* Upload a list of files to the server. use the same token to link the file to an article
|
|
26
|
-
* @param
|
|
27
|
-
* @param files files
|
|
28
|
-
* @param token token
|
|
26
|
+
* @param configArray
|
|
29
27
|
*/
|
|
30
28
|
uploadMany(configArray: Array<UploadConfig>): Promise<{
|
|
31
29
|
response: ApiWrapper<{
|
|
@@ -43,9 +41,15 @@ export declare class JFileApi extends JBaseApi {
|
|
|
43
41
|
}, import("../../types").BaseMessages>;
|
|
44
42
|
token: string;
|
|
45
43
|
}[]>;
|
|
46
|
-
get<T extends jFileLittle>(idFile: number, format?: FormatList
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
get<T extends jFileLittle>(idFile: number, format?: FormatList, options?: {
|
|
45
|
+
signal?: AbortSignal;
|
|
46
|
+
}): Promise<ApiWrapper<T>>;
|
|
47
|
+
getParent<T extends jObjectLittle>(idFile: number, format?: FormatList, options?: {
|
|
48
|
+
signal?: AbortSignal;
|
|
49
|
+
}): Promise<ApiWrapper<T>>;
|
|
50
|
+
getWithHash<T extends jFileLittle>(idFile: number, hash: string, format?: FormatList, options?: {
|
|
51
|
+
signal?: AbortSignal;
|
|
52
|
+
}): Promise<ApiWrapper<T>>;
|
|
49
53
|
duplicate(idFile: number, title: string, publishTo?: string[]): Promise<ApiWrapper<{
|
|
50
54
|
idFile: number;
|
|
51
55
|
article: jObjectLittle;
|
|
@@ -53,10 +57,15 @@ export declare class JFileApi extends JBaseApi {
|
|
|
53
57
|
updateFile(idFile: number, title: string): Promise<ApiWrapper<boolean>>;
|
|
54
58
|
/**
|
|
55
59
|
* Crop an image
|
|
60
|
+
* @param idFile
|
|
61
|
+
* @param type
|
|
56
62
|
* @param config crop configuration
|
|
63
|
+
* @param options
|
|
57
64
|
* @returns
|
|
58
65
|
*/
|
|
59
|
-
update(idFile: number | string, type: string, config: FileCropConfig
|
|
66
|
+
update(idFile: number | string, type: string, config: FileCropConfig, options?: {
|
|
67
|
+
signal?: AbortSignal;
|
|
68
|
+
}): Promise<ApiWrapper<{
|
|
60
69
|
type: string;
|
|
61
70
|
id: number;
|
|
62
71
|
mainType: string;
|
|
@@ -84,6 +93,7 @@ export declare class JFileApi extends JBaseApi {
|
|
|
84
93
|
* @param idFile file id
|
|
85
94
|
* @param attrName attribute name
|
|
86
95
|
* @param token token
|
|
96
|
+
* @param signal
|
|
87
97
|
* @returns
|
|
88
98
|
*/
|
|
89
99
|
deleteFile(idFile: number | string, attrName: string, token: string, signal?: AbortSignal): Promise<ApiWrapper<boolean, import("../../types").BaseMessages>>;
|
|
@@ -91,16 +101,23 @@ export declare class JFileApi extends JBaseApi {
|
|
|
91
101
|
* delete the image associated with a content. This action is permanent. There is no two step process with a token
|
|
92
102
|
* @param id content id
|
|
93
103
|
* @param type content type
|
|
104
|
+
* @param options
|
|
94
105
|
* @returns
|
|
95
106
|
*/
|
|
96
|
-
deleteImage(id: number | string, type: string
|
|
107
|
+
deleteImage(id: number | string, type: string, options?: {
|
|
108
|
+
signal?: AbortSignal;
|
|
109
|
+
}): Promise<ApiWrapper<{
|
|
97
110
|
id: number;
|
|
98
111
|
}, import("../../types").BaseMessages>>;
|
|
99
|
-
getDownload(id: number
|
|
112
|
+
getDownload(id: number, options?: {
|
|
113
|
+
signal?: AbortSignal;
|
|
114
|
+
}): Promise<ApiWrapper<{
|
|
100
115
|
count: number;
|
|
101
116
|
list: UserDownload[];
|
|
102
117
|
}>>;
|
|
103
|
-
generatePreview(id: number
|
|
118
|
+
generatePreview(id: number, options?: {
|
|
119
|
+
signal?: AbortSignal;
|
|
120
|
+
}): Promise<ApiWrapper<boolean>>;
|
|
104
121
|
copy<T extends jFileLittle = jFileLittle>(params: FileCopyParams, options?: {
|
|
105
122
|
format?: FormatList;
|
|
106
123
|
signal?: AbortSignal;
|
package/lib/src/types/drive.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const msTenantsSchema: z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">, z.ZodLiteral<"me">]>;
|
|
3
3
|
export type MSTenants = z.infer<typeof msTenantsSchema>;
|
|
4
|
-
export
|
|
5
|
-
title: z.ZodString;
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
type: z.ZodString;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
type: string;
|
|
10
|
-
id: string;
|
|
4
|
+
export type BaseEntity = {
|
|
11
5
|
title: string;
|
|
12
|
-
}, {
|
|
13
|
-
type: string;
|
|
14
6
|
id: string;
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const baseEntitySchema: z.ZodObject<{
|
|
10
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
11
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
12
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, BaseEntity, BaseEntity>;
|
|
18
14
|
export declare const msTenantEntitySchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
19
|
-
title: z.
|
|
20
|
-
id: z.
|
|
21
|
-
type: z.
|
|
15
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
16
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
17
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
22
18
|
}, "id">, {
|
|
23
19
|
name: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">, z.ZodLiteral<"me">]>>;
|
|
24
20
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -32,41 +28,57 @@ export declare const msTenantEntitySchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
32
28
|
}>;
|
|
33
29
|
export type MSTenantEntity = z.infer<typeof msTenantEntitySchema>;
|
|
34
30
|
export declare const msSiteEntitySchema: z.ZodIntersection<z.ZodObject<{
|
|
35
|
-
title: z.
|
|
36
|
-
id: z.
|
|
37
|
-
type: z.
|
|
38
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
32
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
33
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, BaseEntity, BaseEntity>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
35
|
+
export type MSSiteEntity = z.infer<typeof msSiteEntitySchema>;
|
|
36
|
+
export declare const msGroupEntitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
37
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
38
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
39
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
40
|
+
}, {
|
|
41
|
+
visibility: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"private">]>>;
|
|
42
|
+
}>, "strip", z.ZodTypeAny, {
|
|
39
43
|
type: string;
|
|
40
44
|
id: string;
|
|
41
45
|
title: string;
|
|
46
|
+
visibility?: "public" | "private" | undefined;
|
|
42
47
|
}, {
|
|
43
48
|
type: string;
|
|
44
49
|
id: string;
|
|
45
50
|
title: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
visibility?: "public" | "private" | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
export type MSGroupEntity = z.infer<typeof msGroupEntitySchema>;
|
|
54
|
+
export declare const documentEntitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
55
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
56
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
57
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
52
58
|
}, {
|
|
53
|
-
|
|
59
|
+
mimetype: z.ZodOptional<z.ZodString>;
|
|
60
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
61
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
54
62
|
}>, "strip", z.ZodTypeAny, {
|
|
55
63
|
type: string;
|
|
56
64
|
id: string;
|
|
57
65
|
title: string;
|
|
58
|
-
|
|
66
|
+
mimetype?: string | undefined;
|
|
67
|
+
size?: number | undefined;
|
|
68
|
+
webUrl?: string | undefined;
|
|
59
69
|
}, {
|
|
60
70
|
type: string;
|
|
61
71
|
id: string;
|
|
62
72
|
title: string;
|
|
63
|
-
|
|
73
|
+
mimetype?: string | undefined;
|
|
74
|
+
size?: number | undefined;
|
|
75
|
+
webUrl?: string | undefined;
|
|
64
76
|
}>;
|
|
65
|
-
export type
|
|
77
|
+
export type DocumentEntity = z.infer<typeof documentEntitySchema>;
|
|
66
78
|
export declare const msDocumentEntitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
67
|
-
title: z.
|
|
68
|
-
id: z.
|
|
69
|
-
type: z.
|
|
79
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
80
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
81
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
70
82
|
}, {
|
|
71
83
|
mimetype: z.ZodOptional<z.ZodString>;
|
|
72
84
|
webUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -87,10 +99,48 @@ export declare const msDocumentEntitySchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
87
99
|
webUrl?: string | undefined;
|
|
88
100
|
}>;
|
|
89
101
|
export type MSDocumentEntity = z.infer<typeof msDocumentEntitySchema>;
|
|
102
|
+
export declare const dropboxDocumentEntitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
103
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
104
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
105
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
106
|
+
}, {
|
|
107
|
+
mimetype: z.ZodOptional<z.ZodString>;
|
|
108
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
109
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
}>, {
|
|
111
|
+
_extend: z.ZodObject<{
|
|
112
|
+
path: z.ZodString;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
path: string;
|
|
115
|
+
}, {
|
|
116
|
+
path: string;
|
|
117
|
+
}>;
|
|
118
|
+
}>, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: string;
|
|
120
|
+
id: string;
|
|
121
|
+
title: string;
|
|
122
|
+
_extend: {
|
|
123
|
+
path: string;
|
|
124
|
+
};
|
|
125
|
+
mimetype?: string | undefined;
|
|
126
|
+
size?: number | undefined;
|
|
127
|
+
webUrl?: string | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
type: string;
|
|
130
|
+
id: string;
|
|
131
|
+
title: string;
|
|
132
|
+
_extend: {
|
|
133
|
+
path: string;
|
|
134
|
+
};
|
|
135
|
+
mimetype?: string | undefined;
|
|
136
|
+
size?: number | undefined;
|
|
137
|
+
webUrl?: string | undefined;
|
|
138
|
+
}>;
|
|
139
|
+
export type DropboxDocumentEntity = z.infer<typeof dropboxDocumentEntitySchema>;
|
|
90
140
|
export declare const msUnifiedEntitySchema: z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<{
|
|
91
|
-
title: z.
|
|
92
|
-
id: z.
|
|
93
|
-
type: z.
|
|
141
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
142
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
143
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
94
144
|
}, {
|
|
95
145
|
visibility: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"public">, z.ZodLiteral<"private">]>>;
|
|
96
146
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -104,9 +154,9 @@ export declare const msUnifiedEntitySchema: z.ZodIntersection<z.ZodObject<z.obje
|
|
|
104
154
|
title: string;
|
|
105
155
|
visibility?: "public" | "private" | undefined;
|
|
106
156
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
107
|
-
title: z.
|
|
108
|
-
id: z.
|
|
109
|
-
type: z.
|
|
157
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
158
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
159
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
110
160
|
}, {
|
|
111
161
|
mimetype: z.ZodOptional<z.ZodString>;
|
|
112
162
|
webUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -164,7 +214,7 @@ export declare const driveItemTypeSchema: z.ZodObject<{
|
|
|
164
214
|
webUrl?: string | undefined;
|
|
165
215
|
}>;
|
|
166
216
|
export type DriveItemType = z.infer<typeof driveItemTypeSchema>;
|
|
167
|
-
export declare const
|
|
217
|
+
export declare const msDocumentParamsSchema: z.ZodObject<{
|
|
168
218
|
msTenant: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">, z.ZodLiteral<"me">]>, z.ZodUndefined]>;
|
|
169
219
|
msId: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
170
220
|
idFolder: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
@@ -186,7 +236,18 @@ export declare const driveDocumentParamsSchema: z.ZodObject<{
|
|
|
186
236
|
msId?: string | undefined;
|
|
187
237
|
idFolder?: string | undefined;
|
|
188
238
|
}>;
|
|
189
|
-
export type
|
|
239
|
+
export type MSDocumentParams = z.infer<typeof msDocumentParamsSchema>;
|
|
240
|
+
export declare const dropboxDocumentParamsSchema: z.ZodObject<{
|
|
241
|
+
path_lower: z.ZodString;
|
|
242
|
+
query: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
243
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
path_lower: string;
|
|
245
|
+
query?: string | null | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
path_lower: string;
|
|
248
|
+
query?: string | null | undefined;
|
|
249
|
+
}>;
|
|
250
|
+
export type DropboxDocumentParams = z.infer<typeof dropboxDocumentParamsSchema>;
|
|
190
251
|
export declare const driveTmpFileSchema: z.ZodObject<{
|
|
191
252
|
id: z.ZodNumber;
|
|
192
253
|
name: z.ZodString;
|
|
@@ -219,9 +280,9 @@ export declare const driveGetDocumentParamsSchema: z.ZodObject<{
|
|
|
219
280
|
title: z.ZodString;
|
|
220
281
|
mimetype: z.ZodOptional<z.ZodString>;
|
|
221
282
|
_document: z.ZodObject<z.objectUtil.extendShape<{
|
|
222
|
-
title: z.
|
|
223
|
-
id: z.
|
|
224
|
-
type: z.
|
|
283
|
+
title: z.ZodType<string, z.ZodTypeDef, string>;
|
|
284
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
285
|
+
type: z.ZodType<string, z.ZodTypeDef, string>;
|
|
225
286
|
}, {
|
|
226
287
|
mimetype: z.ZodOptional<z.ZodString>;
|
|
227
288
|
webUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -381,8 +442,7 @@ export declare const driveGetTenantsParamsSchema: z.ZodObject<{
|
|
|
381
442
|
allow?: ("groups" | "me")[] | undefined;
|
|
382
443
|
}>;
|
|
383
444
|
export type DriveGetTenantsParams = z.infer<typeof driveGetTenantsParamsSchema>;
|
|
384
|
-
export declare const
|
|
385
|
-
service: z.ZodString;
|
|
445
|
+
export declare const msGetDocumentsParamsSchema: z.ZodObject<{
|
|
386
446
|
id: z.ZodString;
|
|
387
447
|
documentParams: z.ZodObject<{
|
|
388
448
|
msTenant: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"groups">, z.ZodLiteral<"sites">, z.ZodLiteral<"onedrive">, z.ZodLiteral<"group">, z.ZodLiteral<"documents">, z.ZodLiteral<"me">]>, z.ZodUndefined]>;
|
|
@@ -408,7 +468,6 @@ export declare const driveGetDocumentsParamsSchema: z.ZodObject<{
|
|
|
408
468
|
}>;
|
|
409
469
|
}, "strip", z.ZodTypeAny, {
|
|
410
470
|
id: string;
|
|
411
|
-
service: string;
|
|
412
471
|
documentParams: {
|
|
413
472
|
limit: number;
|
|
414
473
|
page: number;
|
|
@@ -419,7 +478,6 @@ export declare const driveGetDocumentsParamsSchema: z.ZodObject<{
|
|
|
419
478
|
};
|
|
420
479
|
}, {
|
|
421
480
|
id: string;
|
|
422
|
-
service: string;
|
|
423
481
|
documentParams: {
|
|
424
482
|
limit: number;
|
|
425
483
|
page: number;
|
|
@@ -429,7 +487,33 @@ export declare const driveGetDocumentsParamsSchema: z.ZodObject<{
|
|
|
429
487
|
idFolder?: string | undefined;
|
|
430
488
|
};
|
|
431
489
|
}>;
|
|
432
|
-
export type
|
|
490
|
+
export type MSGetDocumentsParams = z.infer<typeof msGetDocumentsParamsSchema>;
|
|
491
|
+
export declare const dropboxGetDocumentsParamsSchema: z.ZodObject<{
|
|
492
|
+
id: z.ZodString;
|
|
493
|
+
documentParams: z.ZodObject<{
|
|
494
|
+
path_lower: z.ZodString;
|
|
495
|
+
query: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
496
|
+
}, "strip", z.ZodTypeAny, {
|
|
497
|
+
path_lower: string;
|
|
498
|
+
query?: string | null | undefined;
|
|
499
|
+
}, {
|
|
500
|
+
path_lower: string;
|
|
501
|
+
query?: string | null | undefined;
|
|
502
|
+
}>;
|
|
503
|
+
}, "strip", z.ZodTypeAny, {
|
|
504
|
+
id: string;
|
|
505
|
+
documentParams: {
|
|
506
|
+
path_lower: string;
|
|
507
|
+
query?: string | null | undefined;
|
|
508
|
+
};
|
|
509
|
+
}, {
|
|
510
|
+
id: string;
|
|
511
|
+
documentParams: {
|
|
512
|
+
path_lower: string;
|
|
513
|
+
query?: string | null | undefined;
|
|
514
|
+
};
|
|
515
|
+
}>;
|
|
516
|
+
export type DropboxGetDocumentsParams = z.infer<typeof dropboxGetDocumentsParamsSchema>;
|
|
433
517
|
export declare const driveGetGroupsParamsSchema: z.ZodObject<{
|
|
434
518
|
query: z.ZodOptional<z.ZodString>;
|
|
435
519
|
filter: z.ZodOptional<z.ZodString>;
|
package/lib/src/types/uri.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const typeIdSchema: z.ZodObject<{
|
|
|
15
15
|
recordId: string | number;
|
|
16
16
|
}>;
|
|
17
17
|
export type TypeId = z.infer<typeof typeIdSchema>;
|
|
18
|
-
export declare const ensureTypeId: (o: unknown) => o is {
|
|
18
|
+
export declare const ensureTypeId: (o: unknown, passThrough?: boolean) => o is {
|
|
19
19
|
type: string;
|
|
20
20
|
recordId: string | number;
|
|
21
21
|
};
|
|
@@ -30,7 +30,7 @@ export declare const uriSchema: z.ZodObject<{
|
|
|
30
30
|
uri: string;
|
|
31
31
|
}>;
|
|
32
32
|
export type Uri = z.infer<typeof uriSchema>;
|
|
33
|
-
export declare const ensureUri: (o: unknown) => o is {
|
|
33
|
+
export declare const ensureUri: (o: unknown, passThrough?: boolean) => o is {
|
|
34
34
|
uri: string;
|
|
35
35
|
};
|
|
36
36
|
/**
|