@opencloud-eu/web-client 2.3.0 → 3.1.0
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/functions-BCZphZWf.cjs +1 -0
- package/dist/functions-gLZtPuF8.js +1177 -0
- package/dist/index-B0DQP5k7.cjs +1 -0
- package/dist/{index-DcTD5HFk.js → index-BTGj2rHD.js} +69 -67
- package/dist/{index-43W1CNwK.cjs → index-C-U4KVPG.cjs} +5 -5
- package/dist/{index-Bx7ChFWK.cjs → index-D5plj7J1.cjs} +2 -2
- package/dist/{index-DjQzHOD1.js → index-DRNBPoWu.js} +3 -3
- package/dist/index-kED1r0rQ.js +693 -0
- package/dist/src/graph/drives/types.d.ts +9 -7
- package/dist/src/graph/generated/api.d.ts +284 -20
- package/dist/src/graph/generated/configuration.d.ts +1 -1
- package/dist/src/graph/generated/index.d.ts +1 -1
- package/dist/src/graph/index.d.ts +2 -0
- package/dist/src/graph/permissions/types.d.ts +3 -0
- package/dist/src/graph/photos/index.d.ts +2 -0
- package/dist/src/graph/photos/photo.d.ts +3 -0
- package/dist/src/graph/photos/types.d.ts +7 -0
- package/dist/src/graph/types.d.ts +2 -1
- package/dist/src/helpers/space/functions.d.ts +4 -6
- package/dist/src/helpers/space/types.d.ts +2 -8
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +2369 -2050
- package/dist/web-client/graph.cjs +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.cjs +5 -5
- package/dist/web-client/ocs.js +301 -295
- package/dist/web-client/webdav.cjs +1 -1
- package/dist/web-client/webdav.js +3 -3
- package/dist/web-client.cjs +1 -1
- package/dist/web-client.js +35 -36
- package/package.json +1 -1
- package/dist/functions-DJR5h-q5.cjs +0 -1
- package/dist/functions-l5kdzi5h.js +0 -1230
- package/dist/index-Cjn81zI6.cjs +0 -1
- package/dist/index-mFyj5iN2.js +0 -670
|
@@ -521,6 +521,12 @@ export interface CollectionOfPermissionsWithAllowedValues {
|
|
|
521
521
|
* @memberof CollectionOfPermissionsWithAllowedValues
|
|
522
522
|
*/
|
|
523
523
|
'value'?: Array<Permission>;
|
|
524
|
+
/**
|
|
525
|
+
* The total number of permissions available, only present if the `count` query parameter is set to true.
|
|
526
|
+
* @type {number}
|
|
527
|
+
* @memberof CollectionOfPermissionsWithAllowedValues
|
|
528
|
+
*/
|
|
529
|
+
'@odata.count'?: number;
|
|
524
530
|
}
|
|
525
531
|
/**
|
|
526
532
|
*
|
|
@@ -1225,7 +1231,7 @@ export interface EducationUser {
|
|
|
1225
1231
|
*/
|
|
1226
1232
|
'identities'?: Array<ObjectIdentity>;
|
|
1227
1233
|
/**
|
|
1228
|
-
* The SMTP address for the user, for example, \'
|
|
1234
|
+
* The SMTP address for the user, for example, \'jeff@contoso.opencloud.com\'. Returned by default.
|
|
1229
1235
|
* @type {string}
|
|
1230
1236
|
* @memberof EducationUser
|
|
1231
1237
|
*/
|
|
@@ -1486,7 +1492,7 @@ export interface Identity {
|
|
|
1486
1492
|
*/
|
|
1487
1493
|
'id'?: string;
|
|
1488
1494
|
/**
|
|
1489
|
-
* The type of the identity. This can be either \"Member\" for regular user, \"Guest\" for guest users or \"Federated\" for users imported from a federated instance. Can be used by clients to indicate the type of user. For more details, clients should look up and cache the user at the /users
|
|
1495
|
+
* The type of the identity. This can be either \"Member\" for regular user, \"Guest\" for guest users or \"Federated\" for users imported from a federated instance. Can be used by clients to indicate the type of user. For more details, clients should look up and cache the user at the /users endpoint.
|
|
1490
1496
|
* @type {string}
|
|
1491
1497
|
* @memberof Identity
|
|
1492
1498
|
*/
|
|
@@ -2144,6 +2150,19 @@ export declare const SharingLinkType: {
|
|
|
2144
2150
|
readonly BlocksDownload: "blocksDownload";
|
|
2145
2151
|
};
|
|
2146
2152
|
export type SharingLinkType = typeof SharingLinkType[keyof typeof SharingLinkType];
|
|
2153
|
+
/**
|
|
2154
|
+
* Provides the last successful sign-in attempt for a user
|
|
2155
|
+
* @export
|
|
2156
|
+
* @interface SignInActivity
|
|
2157
|
+
*/
|
|
2158
|
+
export interface SignInActivity {
|
|
2159
|
+
/**
|
|
2160
|
+
* The date and time of the last successful sign-in for the user.
|
|
2161
|
+
* @type {string}
|
|
2162
|
+
* @memberof SignInActivity
|
|
2163
|
+
*/
|
|
2164
|
+
'lastSuccessfulSignInDateTime'?: string;
|
|
2165
|
+
}
|
|
2147
2166
|
/**
|
|
2148
2167
|
* If the current item is also available as a special folder, this facet is returned. Read-only
|
|
2149
2168
|
* @export
|
|
@@ -2393,7 +2412,7 @@ export interface User {
|
|
|
2393
2412
|
*/
|
|
2394
2413
|
'identities'?: Array<ObjectIdentity>;
|
|
2395
2414
|
/**
|
|
2396
|
-
* The SMTP address for the user, for example, \'
|
|
2415
|
+
* The SMTP address for the user, for example, \'jeff@contoso.opencloud.com\'. Returned by default.
|
|
2397
2416
|
* @type {string}
|
|
2398
2417
|
* @memberof User
|
|
2399
2418
|
*/
|
|
@@ -2440,6 +2459,12 @@ export interface User {
|
|
|
2440
2459
|
* @memberof User
|
|
2441
2460
|
*/
|
|
2442
2461
|
'preferredLanguage'?: string;
|
|
2462
|
+
/**
|
|
2463
|
+
*
|
|
2464
|
+
* @type {SignInActivity}
|
|
2465
|
+
* @memberof User
|
|
2466
|
+
*/
|
|
2467
|
+
'signInActivity'?: SignInActivity;
|
|
2443
2468
|
}
|
|
2444
2469
|
/**
|
|
2445
2470
|
* Represents updates to an Active Directory user object.
|
|
@@ -2490,7 +2515,7 @@ export interface UserUpdate {
|
|
|
2490
2515
|
*/
|
|
2491
2516
|
'identities'?: Array<ObjectIdentity>;
|
|
2492
2517
|
/**
|
|
2493
|
-
* The SMTP address for the user, for example, \'
|
|
2518
|
+
* The SMTP address for the user, for example, \'jeff@contoso.opencloud.com\'. Returned by default.
|
|
2494
2519
|
* @type {string}
|
|
2495
2520
|
* @memberof UserUpdate
|
|
2496
2521
|
*/
|
|
@@ -2537,6 +2562,12 @@ export interface UserUpdate {
|
|
|
2537
2562
|
* @memberof UserUpdate
|
|
2538
2563
|
*/
|
|
2539
2564
|
'preferredLanguage'?: string;
|
|
2565
|
+
/**
|
|
2566
|
+
*
|
|
2567
|
+
* @type {SignInActivity}
|
|
2568
|
+
* @memberof UserUpdate
|
|
2569
|
+
*/
|
|
2570
|
+
'signInActivity'?: SignInActivity;
|
|
2540
2571
|
}
|
|
2541
2572
|
/**
|
|
2542
2573
|
* The video resource groups video-related data items into a single structure. If a driveItem has a non-null video facet, the item represents a video file. The properties of the video resource are populated by extracting metadata from the file.
|
|
@@ -3078,10 +3109,11 @@ export declare const DrivesGetDrivesApiAxiosParamCreator: (configuration?: Confi
|
|
|
3078
3109
|
* @summary Alias for \'/v1.0/drives\', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
|
|
3079
3110
|
* @param {string} [$orderby] The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
|
|
3080
3111
|
* @param {string} [$filter] Filter items by property values
|
|
3112
|
+
* @param {string} [$expand] Expand related entities
|
|
3081
3113
|
* @param {*} [options] Override http request option.
|
|
3082
3114
|
* @throws {RequiredError}
|
|
3083
3115
|
*/
|
|
3084
|
-
listAllDrivesBeta: ($orderby?: string, $filter?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3116
|
+
listAllDrivesBeta: ($orderby?: string, $filter?: string, $expand?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3085
3117
|
};
|
|
3086
3118
|
/**
|
|
3087
3119
|
* DrivesGetDrivesApi - functional programming interface
|
|
@@ -3102,10 +3134,11 @@ export declare const DrivesGetDrivesApiFp: (configuration?: Configuration) => {
|
|
|
3102
3134
|
* @summary Alias for \'/v1.0/drives\', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
|
|
3103
3135
|
* @param {string} [$orderby] The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
|
|
3104
3136
|
* @param {string} [$filter] Filter items by property values
|
|
3137
|
+
* @param {string} [$expand] Expand related entities
|
|
3105
3138
|
* @param {*} [options] Override http request option.
|
|
3106
3139
|
* @throws {RequiredError}
|
|
3107
3140
|
*/
|
|
3108
|
-
listAllDrivesBeta($orderby?: string, $filter?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionOfDrives1>>;
|
|
3141
|
+
listAllDrivesBeta($orderby?: string, $filter?: string, $expand?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionOfDrives1>>;
|
|
3109
3142
|
};
|
|
3110
3143
|
/**
|
|
3111
3144
|
* DrivesGetDrivesApi - factory interface
|
|
@@ -3126,10 +3159,11 @@ export declare const DrivesGetDrivesApiFactory: (configuration?: Configuration,
|
|
|
3126
3159
|
* @summary Alias for \'/v1.0/drives\', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
|
|
3127
3160
|
* @param {string} [$orderby] The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
|
|
3128
3161
|
* @param {string} [$filter] Filter items by property values
|
|
3162
|
+
* @param {string} [$expand] Expand related entities
|
|
3129
3163
|
* @param {*} [options] Override http request option.
|
|
3130
3164
|
* @throws {RequiredError}
|
|
3131
3165
|
*/
|
|
3132
|
-
listAllDrivesBeta($orderby?: string, $filter?: string, options?: RawAxiosRequestConfig): AxiosPromise<CollectionOfDrives1>;
|
|
3166
|
+
listAllDrivesBeta($orderby?: string, $filter?: string, $expand?: string, options?: RawAxiosRequestConfig): AxiosPromise<CollectionOfDrives1>;
|
|
3133
3167
|
};
|
|
3134
3168
|
/**
|
|
3135
3169
|
* DrivesGetDrivesApi - object-oriented interface
|
|
@@ -3153,11 +3187,12 @@ export declare class DrivesGetDrivesApi extends BaseAPI {
|
|
|
3153
3187
|
* @summary Alias for \'/v1.0/drives\', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
|
|
3154
3188
|
* @param {string} [$orderby] The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
|
|
3155
3189
|
* @param {string} [$filter] Filter items by property values
|
|
3190
|
+
* @param {string} [$expand] Expand related entities
|
|
3156
3191
|
* @param {*} [options] Override http request option.
|
|
3157
3192
|
* @throws {RequiredError}
|
|
3158
3193
|
* @memberof DrivesGetDrivesApi
|
|
3159
3194
|
*/
|
|
3160
|
-
listAllDrivesBeta($orderby?: string, $filter?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfDrives1, any>>;
|
|
3195
|
+
listAllDrivesBeta($orderby?: string, $filter?: string, $expand?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfDrives1, any>>;
|
|
3161
3196
|
}
|
|
3162
3197
|
/**
|
|
3163
3198
|
* DrivesPermissionsApi - axios parameter creator
|
|
@@ -3211,10 +3246,12 @@ export declare const DrivesPermissionsApiAxiosParamCreator: (configuration?: Con
|
|
|
3211
3246
|
* @param {string} itemId key: id of item
|
|
3212
3247
|
* @param {string} [$filter] Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
|
|
3213
3248
|
* @param {Set<ListPermissionsSelectEnum>} [$select] Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
|
|
3249
|
+
* @param {boolean} [$count] Include count of items
|
|
3250
|
+
* @param {number} [$top] Show only the first n items
|
|
3214
3251
|
* @param {*} [options] Override http request option.
|
|
3215
3252
|
* @throws {RequiredError}
|
|
3216
3253
|
*/
|
|
3217
|
-
listPermissions: (driveId: string, itemId: string, $filter?: string, $select?: Set<ListPermissionsSelectEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3254
|
+
listPermissions: (driveId: string, itemId: string, $filter?: string, $select?: Set<ListPermissionsSelectEnum>, $count?: boolean, $top?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3218
3255
|
/**
|
|
3219
3256
|
* Set the password of a sharing permission. Only the `password` property can be modified this way.
|
|
3220
3257
|
* @summary Set sharing link password
|
|
@@ -3290,10 +3327,12 @@ export declare const DrivesPermissionsApiFp: (configuration?: Configuration) =>
|
|
|
3290
3327
|
* @param {string} itemId key: id of item
|
|
3291
3328
|
* @param {string} [$filter] Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
|
|
3292
3329
|
* @param {Set<ListPermissionsSelectEnum>} [$select] Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
|
|
3330
|
+
* @param {boolean} [$count] Include count of items
|
|
3331
|
+
* @param {number} [$top] Show only the first n items
|
|
3293
3332
|
* @param {*} [options] Override http request option.
|
|
3294
3333
|
* @throws {RequiredError}
|
|
3295
3334
|
*/
|
|
3296
|
-
listPermissions(driveId: string, itemId: string, $filter?: string, $select?: Set<ListPermissionsSelectEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionOfPermissionsWithAllowedValues>>;
|
|
3335
|
+
listPermissions(driveId: string, itemId: string, $filter?: string, $select?: Set<ListPermissionsSelectEnum>, $count?: boolean, $top?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionOfPermissionsWithAllowedValues>>;
|
|
3297
3336
|
/**
|
|
3298
3337
|
* Set the password of a sharing permission. Only the `password` property can be modified this way.
|
|
3299
3338
|
* @summary Set sharing link password
|
|
@@ -3369,10 +3408,12 @@ export declare const DrivesPermissionsApiFactory: (configuration?: Configuration
|
|
|
3369
3408
|
* @param {string} itemId key: id of item
|
|
3370
3409
|
* @param {string} [$filter] Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
|
|
3371
3410
|
* @param {Set<ListPermissionsSelectEnum>} [$select] Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
|
|
3411
|
+
* @param {boolean} [$count] Include count of items
|
|
3412
|
+
* @param {number} [$top] Show only the first n items
|
|
3372
3413
|
* @param {*} [options] Override http request option.
|
|
3373
3414
|
* @throws {RequiredError}
|
|
3374
3415
|
*/
|
|
3375
|
-
listPermissions(driveId: string, itemId: string, $filter?: string, $select?: Set<ListPermissionsSelectEnum>, options?: RawAxiosRequestConfig): AxiosPromise<CollectionOfPermissionsWithAllowedValues>;
|
|
3416
|
+
listPermissions(driveId: string, itemId: string, $filter?: string, $select?: Set<ListPermissionsSelectEnum>, $count?: boolean, $top?: number, options?: RawAxiosRequestConfig): AxiosPromise<CollectionOfPermissionsWithAllowedValues>;
|
|
3376
3417
|
/**
|
|
3377
3418
|
* Set the password of a sharing permission. Only the `password` property can be modified this way.
|
|
3378
3419
|
* @summary Set sharing link password
|
|
@@ -3454,11 +3495,13 @@ export declare class DrivesPermissionsApi extends BaseAPI {
|
|
|
3454
3495
|
* @param {string} itemId key: id of item
|
|
3455
3496
|
* @param {string} [$filter] Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
|
|
3456
3497
|
* @param {Set<ListPermissionsSelectEnum>} [$select] Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
|
|
3498
|
+
* @param {boolean} [$count] Include count of items
|
|
3499
|
+
* @param {number} [$top] Show only the first n items
|
|
3457
3500
|
* @param {*} [options] Override http request option.
|
|
3458
3501
|
* @throws {RequiredError}
|
|
3459
3502
|
* @memberof DrivesPermissionsApi
|
|
3460
3503
|
*/
|
|
3461
|
-
listPermissions(driveId: string, itemId: string, $filter?: string, $select?: Set<ListPermissionsSelectEnum>, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfPermissionsWithAllowedValues, any>>;
|
|
3504
|
+
listPermissions(driveId: string, itemId: string, $filter?: string, $select?: Set<ListPermissionsSelectEnum>, $count?: boolean, $top?: number, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfPermissionsWithAllowedValues, any>>;
|
|
3462
3505
|
/**
|
|
3463
3506
|
* Set the password of a sharing permission. Only the `password` property can be modified this way.
|
|
3464
3507
|
* @summary Set sharing link password
|
|
@@ -3557,10 +3600,12 @@ export declare const DrivesRootApiAxiosParamCreator: (configuration?: Configurat
|
|
|
3557
3600
|
* @param {string} driveId key: id of drive
|
|
3558
3601
|
* @param {string} [$filter] Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
|
|
3559
3602
|
* @param {Set<ListPermissionsSpaceRootSelectEnum>} [$select] Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
|
|
3603
|
+
* @param {boolean} [$count] Include count of items
|
|
3604
|
+
* @param {number} [$top] Show only the first n items
|
|
3560
3605
|
* @param {*} [options] Override http request option.
|
|
3561
3606
|
* @throws {RequiredError}
|
|
3562
3607
|
*/
|
|
3563
|
-
listPermissionsSpaceRoot: (driveId: string, $filter?: string, $select?: Set<ListPermissionsSpaceRootSelectEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3608
|
+
listPermissionsSpaceRoot: (driveId: string, $filter?: string, $select?: Set<ListPermissionsSpaceRootSelectEnum>, $count?: boolean, $top?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3564
3609
|
/**
|
|
3565
3610
|
* Set the password of a sharing permission. Only the `password` property can be modified this way.
|
|
3566
3611
|
* @summary Set sharing link password for the root item of a drive
|
|
@@ -3646,10 +3691,12 @@ export declare const DrivesRootApiFp: (configuration?: Configuration) => {
|
|
|
3646
3691
|
* @param {string} driveId key: id of drive
|
|
3647
3692
|
* @param {string} [$filter] Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
|
|
3648
3693
|
* @param {Set<ListPermissionsSpaceRootSelectEnum>} [$select] Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
|
|
3694
|
+
* @param {boolean} [$count] Include count of items
|
|
3695
|
+
* @param {number} [$top] Show only the first n items
|
|
3649
3696
|
* @param {*} [options] Override http request option.
|
|
3650
3697
|
* @throws {RequiredError}
|
|
3651
3698
|
*/
|
|
3652
|
-
listPermissionsSpaceRoot(driveId: string, $filter?: string, $select?: Set<ListPermissionsSpaceRootSelectEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionOfPermissionsWithAllowedValues>>;
|
|
3699
|
+
listPermissionsSpaceRoot(driveId: string, $filter?: string, $select?: Set<ListPermissionsSpaceRootSelectEnum>, $count?: boolean, $top?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionOfPermissionsWithAllowedValues>>;
|
|
3653
3700
|
/**
|
|
3654
3701
|
* Set the password of a sharing permission. Only the `password` property can be modified this way.
|
|
3655
3702
|
* @summary Set sharing link password for the root item of a drive
|
|
@@ -3735,10 +3782,12 @@ export declare const DrivesRootApiFactory: (configuration?: Configuration, baseP
|
|
|
3735
3782
|
* @param {string} driveId key: id of drive
|
|
3736
3783
|
* @param {string} [$filter] Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
|
|
3737
3784
|
* @param {Set<ListPermissionsSpaceRootSelectEnum>} [$select] Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
|
|
3785
|
+
* @param {boolean} [$count] Include count of items
|
|
3786
|
+
* @param {number} [$top] Show only the first n items
|
|
3738
3787
|
* @param {*} [options] Override http request option.
|
|
3739
3788
|
* @throws {RequiredError}
|
|
3740
3789
|
*/
|
|
3741
|
-
listPermissionsSpaceRoot(driveId: string, $filter?: string, $select?: Set<ListPermissionsSpaceRootSelectEnum>, options?: RawAxiosRequestConfig): AxiosPromise<CollectionOfPermissionsWithAllowedValues>;
|
|
3790
|
+
listPermissionsSpaceRoot(driveId: string, $filter?: string, $select?: Set<ListPermissionsSpaceRootSelectEnum>, $count?: boolean, $top?: number, options?: RawAxiosRequestConfig): AxiosPromise<CollectionOfPermissionsWithAllowedValues>;
|
|
3742
3791
|
/**
|
|
3743
3792
|
* Set the password of a sharing permission. Only the `password` property can be modified this way.
|
|
3744
3793
|
* @summary Set sharing link password for the root item of a drive
|
|
@@ -3832,11 +3881,13 @@ export declare class DrivesRootApi extends BaseAPI {
|
|
|
3832
3881
|
* @param {string} driveId key: id of drive
|
|
3833
3882
|
* @param {string} [$filter] Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
|
|
3834
3883
|
* @param {Set<ListPermissionsSpaceRootSelectEnum>} [$select] Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
|
|
3884
|
+
* @param {boolean} [$count] Include count of items
|
|
3885
|
+
* @param {number} [$top] Show only the first n items
|
|
3835
3886
|
* @param {*} [options] Override http request option.
|
|
3836
3887
|
* @throws {RequiredError}
|
|
3837
3888
|
* @memberof DrivesRootApi
|
|
3838
3889
|
*/
|
|
3839
|
-
listPermissionsSpaceRoot(driveId: string, $filter?: string, $select?: Set<ListPermissionsSpaceRootSelectEnum>, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfPermissionsWithAllowedValues, any>>;
|
|
3890
|
+
listPermissionsSpaceRoot(driveId: string, $filter?: string, $select?: Set<ListPermissionsSpaceRootSelectEnum>, $count?: boolean, $top?: number, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfPermissionsWithAllowedValues, any>>;
|
|
3840
3891
|
/**
|
|
3841
3892
|
* Set the password of a sharing permission. Only the `password` property can be modified this way.
|
|
3842
3893
|
* @summary Set sharing link password for the root item of a drive
|
|
@@ -5634,10 +5685,11 @@ export declare const MeDrivesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
5634
5685
|
* @summary Alias for \'/v1.0/drives\', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
|
|
5635
5686
|
* @param {string} [$orderby] The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
|
|
5636
5687
|
* @param {string} [$filter] Filter items by property values
|
|
5688
|
+
* @param {string} [$expand] Expand related entities
|
|
5637
5689
|
* @param {*} [options] Override http request option.
|
|
5638
5690
|
* @throws {RequiredError}
|
|
5639
5691
|
*/
|
|
5640
|
-
listMyDrivesBeta: ($orderby?: string, $filter?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5692
|
+
listMyDrivesBeta: ($orderby?: string, $filter?: string, $expand?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5641
5693
|
};
|
|
5642
5694
|
/**
|
|
5643
5695
|
* MeDrivesApi - functional programming interface
|
|
@@ -5658,10 +5710,11 @@ export declare const MeDrivesApiFp: (configuration?: Configuration) => {
|
|
|
5658
5710
|
* @summary Alias for \'/v1.0/drives\', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
|
|
5659
5711
|
* @param {string} [$orderby] The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
|
|
5660
5712
|
* @param {string} [$filter] Filter items by property values
|
|
5713
|
+
* @param {string} [$expand] Expand related entities
|
|
5661
5714
|
* @param {*} [options] Override http request option.
|
|
5662
5715
|
* @throws {RequiredError}
|
|
5663
5716
|
*/
|
|
5664
|
-
listMyDrivesBeta($orderby?: string, $filter?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionOfDrives>>;
|
|
5717
|
+
listMyDrivesBeta($orderby?: string, $filter?: string, $expand?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CollectionOfDrives>>;
|
|
5665
5718
|
};
|
|
5666
5719
|
/**
|
|
5667
5720
|
* MeDrivesApi - factory interface
|
|
@@ -5682,10 +5735,11 @@ export declare const MeDrivesApiFactory: (configuration?: Configuration, basePat
|
|
|
5682
5735
|
* @summary Alias for \'/v1.0/drives\', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
|
|
5683
5736
|
* @param {string} [$orderby] The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
|
|
5684
5737
|
* @param {string} [$filter] Filter items by property values
|
|
5738
|
+
* @param {string} [$expand] Expand related entities
|
|
5685
5739
|
* @param {*} [options] Override http request option.
|
|
5686
5740
|
* @throws {RequiredError}
|
|
5687
5741
|
*/
|
|
5688
|
-
listMyDrivesBeta($orderby?: string, $filter?: string, options?: RawAxiosRequestConfig): AxiosPromise<CollectionOfDrives>;
|
|
5742
|
+
listMyDrivesBeta($orderby?: string, $filter?: string, $expand?: string, options?: RawAxiosRequestConfig): AxiosPromise<CollectionOfDrives>;
|
|
5689
5743
|
};
|
|
5690
5744
|
/**
|
|
5691
5745
|
* MeDrivesApi - object-oriented interface
|
|
@@ -5709,11 +5763,162 @@ export declare class MeDrivesApi extends BaseAPI {
|
|
|
5709
5763
|
* @summary Alias for \'/v1.0/drives\', the difference is that grantedtoV2 is used and roles contain unified roles instead of cs3 roles
|
|
5710
5764
|
* @param {string} [$orderby] The $orderby system query option allows clients to request resources in either ascending order using asc or descending order using desc.
|
|
5711
5765
|
* @param {string} [$filter] Filter items by property values
|
|
5766
|
+
* @param {string} [$expand] Expand related entities
|
|
5712
5767
|
* @param {*} [options] Override http request option.
|
|
5713
5768
|
* @throws {RequiredError}
|
|
5714
5769
|
* @memberof MeDrivesApi
|
|
5715
5770
|
*/
|
|
5716
|
-
listMyDrivesBeta($orderby?: string, $filter?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfDrives, any>>;
|
|
5771
|
+
listMyDrivesBeta($orderby?: string, $filter?: string, $expand?: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfDrives, any>>;
|
|
5772
|
+
}
|
|
5773
|
+
/**
|
|
5774
|
+
* MePhotoApi - axios parameter creator
|
|
5775
|
+
* @export
|
|
5776
|
+
*/
|
|
5777
|
+
export declare const MePhotoApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5778
|
+
/**
|
|
5779
|
+
*
|
|
5780
|
+
* @summary Delete the current user\'s profile photo
|
|
5781
|
+
* @param {*} [options] Override http request option.
|
|
5782
|
+
* @throws {RequiredError}
|
|
5783
|
+
*/
|
|
5784
|
+
deleteOwnUserPhoto: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5785
|
+
/**
|
|
5786
|
+
*
|
|
5787
|
+
* @summary Get the current user\'s profile photo
|
|
5788
|
+
* @param {*} [options] Override http request option.
|
|
5789
|
+
* @throws {RequiredError}
|
|
5790
|
+
*/
|
|
5791
|
+
getOwnUserPhoto: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5792
|
+
/**
|
|
5793
|
+
*
|
|
5794
|
+
* @summary Update the current user\'s profile photo
|
|
5795
|
+
* @param {File} [body] New user photo
|
|
5796
|
+
* @param {*} [options] Override http request option.
|
|
5797
|
+
* @throws {RequiredError}
|
|
5798
|
+
*/
|
|
5799
|
+
updateOwnUserPhotoPatch: (body?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5800
|
+
/**
|
|
5801
|
+
*
|
|
5802
|
+
* @summary Update the current user\'s profile photo
|
|
5803
|
+
* @param {File} [body] New user photo
|
|
5804
|
+
* @param {*} [options] Override http request option.
|
|
5805
|
+
* @throws {RequiredError}
|
|
5806
|
+
*/
|
|
5807
|
+
updateOwnUserPhotoPut: (body?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5808
|
+
};
|
|
5809
|
+
/**
|
|
5810
|
+
* MePhotoApi - functional programming interface
|
|
5811
|
+
* @export
|
|
5812
|
+
*/
|
|
5813
|
+
export declare const MePhotoApiFp: (configuration?: Configuration) => {
|
|
5814
|
+
/**
|
|
5815
|
+
*
|
|
5816
|
+
* @summary Delete the current user\'s profile photo
|
|
5817
|
+
* @param {*} [options] Override http request option.
|
|
5818
|
+
* @throws {RequiredError}
|
|
5819
|
+
*/
|
|
5820
|
+
deleteOwnUserPhoto(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5821
|
+
/**
|
|
5822
|
+
*
|
|
5823
|
+
* @summary Get the current user\'s profile photo
|
|
5824
|
+
* @param {*} [options] Override http request option.
|
|
5825
|
+
* @throws {RequiredError}
|
|
5826
|
+
*/
|
|
5827
|
+
getOwnUserPhoto(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
5828
|
+
/**
|
|
5829
|
+
*
|
|
5830
|
+
* @summary Update the current user\'s profile photo
|
|
5831
|
+
* @param {File} [body] New user photo
|
|
5832
|
+
* @param {*} [options] Override http request option.
|
|
5833
|
+
* @throws {RequiredError}
|
|
5834
|
+
*/
|
|
5835
|
+
updateOwnUserPhotoPatch(body?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5836
|
+
/**
|
|
5837
|
+
*
|
|
5838
|
+
* @summary Update the current user\'s profile photo
|
|
5839
|
+
* @param {File} [body] New user photo
|
|
5840
|
+
* @param {*} [options] Override http request option.
|
|
5841
|
+
* @throws {RequiredError}
|
|
5842
|
+
*/
|
|
5843
|
+
updateOwnUserPhotoPut(body?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5844
|
+
};
|
|
5845
|
+
/**
|
|
5846
|
+
* MePhotoApi - factory interface
|
|
5847
|
+
* @export
|
|
5848
|
+
*/
|
|
5849
|
+
export declare const MePhotoApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5850
|
+
/**
|
|
5851
|
+
*
|
|
5852
|
+
* @summary Delete the current user\'s profile photo
|
|
5853
|
+
* @param {*} [options] Override http request option.
|
|
5854
|
+
* @throws {RequiredError}
|
|
5855
|
+
*/
|
|
5856
|
+
deleteOwnUserPhoto(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5857
|
+
/**
|
|
5858
|
+
*
|
|
5859
|
+
* @summary Get the current user\'s profile photo
|
|
5860
|
+
* @param {*} [options] Override http request option.
|
|
5861
|
+
* @throws {RequiredError}
|
|
5862
|
+
*/
|
|
5863
|
+
getOwnUserPhoto(options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
5864
|
+
/**
|
|
5865
|
+
*
|
|
5866
|
+
* @summary Update the current user\'s profile photo
|
|
5867
|
+
* @param {File} [body] New user photo
|
|
5868
|
+
* @param {*} [options] Override http request option.
|
|
5869
|
+
* @throws {RequiredError}
|
|
5870
|
+
*/
|
|
5871
|
+
updateOwnUserPhotoPatch(body?: File, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5872
|
+
/**
|
|
5873
|
+
*
|
|
5874
|
+
* @summary Update the current user\'s profile photo
|
|
5875
|
+
* @param {File} [body] New user photo
|
|
5876
|
+
* @param {*} [options] Override http request option.
|
|
5877
|
+
* @throws {RequiredError}
|
|
5878
|
+
*/
|
|
5879
|
+
updateOwnUserPhotoPut(body?: File, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5880
|
+
};
|
|
5881
|
+
/**
|
|
5882
|
+
* MePhotoApi - object-oriented interface
|
|
5883
|
+
* @export
|
|
5884
|
+
* @class MePhotoApi
|
|
5885
|
+
* @extends {BaseAPI}
|
|
5886
|
+
*/
|
|
5887
|
+
export declare class MePhotoApi extends BaseAPI {
|
|
5888
|
+
/**
|
|
5889
|
+
*
|
|
5890
|
+
* @summary Delete the current user\'s profile photo
|
|
5891
|
+
* @param {*} [options] Override http request option.
|
|
5892
|
+
* @throws {RequiredError}
|
|
5893
|
+
* @memberof MePhotoApi
|
|
5894
|
+
*/
|
|
5895
|
+
deleteOwnUserPhoto(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<void, any>>;
|
|
5896
|
+
/**
|
|
5897
|
+
*
|
|
5898
|
+
* @summary Get the current user\'s profile photo
|
|
5899
|
+
* @param {*} [options] Override http request option.
|
|
5900
|
+
* @throws {RequiredError}
|
|
5901
|
+
* @memberof MePhotoApi
|
|
5902
|
+
*/
|
|
5903
|
+
getOwnUserPhoto(options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<File, any>>;
|
|
5904
|
+
/**
|
|
5905
|
+
*
|
|
5906
|
+
* @summary Update the current user\'s profile photo
|
|
5907
|
+
* @param {File} [body] New user photo
|
|
5908
|
+
* @param {*} [options] Override http request option.
|
|
5909
|
+
* @throws {RequiredError}
|
|
5910
|
+
* @memberof MePhotoApi
|
|
5911
|
+
*/
|
|
5912
|
+
updateOwnUserPhotoPatch(body?: File, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<void, any>>;
|
|
5913
|
+
/**
|
|
5914
|
+
*
|
|
5915
|
+
* @summary Update the current user\'s profile photo
|
|
5916
|
+
* @param {File} [body] New user photo
|
|
5917
|
+
* @param {*} [options] Override http request option.
|
|
5918
|
+
* @throws {RequiredError}
|
|
5919
|
+
* @memberof MePhotoApi
|
|
5920
|
+
*/
|
|
5921
|
+
updateOwnUserPhotoPut(body?: File, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<void, any>>;
|
|
5717
5922
|
}
|
|
5718
5923
|
/**
|
|
5719
5924
|
* MeUserApi - axios parameter creator
|
|
@@ -6362,6 +6567,65 @@ export declare class UserAppRoleAssignmentApi extends BaseAPI {
|
|
|
6362
6567
|
*/
|
|
6363
6568
|
userListAppRoleAssignments(userId: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<CollectionOfAppRoleAssignments, any>>;
|
|
6364
6569
|
}
|
|
6570
|
+
/**
|
|
6571
|
+
* UserPhotoApi - axios parameter creator
|
|
6572
|
+
* @export
|
|
6573
|
+
*/
|
|
6574
|
+
export declare const UserPhotoApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6575
|
+
/**
|
|
6576
|
+
*
|
|
6577
|
+
* @summary Get the photo of a user
|
|
6578
|
+
* @param {string} userId key: id or name of user
|
|
6579
|
+
* @param {*} [options] Override http request option.
|
|
6580
|
+
* @throws {RequiredError}
|
|
6581
|
+
*/
|
|
6582
|
+
getUserPhoto: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6583
|
+
};
|
|
6584
|
+
/**
|
|
6585
|
+
* UserPhotoApi - functional programming interface
|
|
6586
|
+
* @export
|
|
6587
|
+
*/
|
|
6588
|
+
export declare const UserPhotoApiFp: (configuration?: Configuration) => {
|
|
6589
|
+
/**
|
|
6590
|
+
*
|
|
6591
|
+
* @summary Get the photo of a user
|
|
6592
|
+
* @param {string} userId key: id or name of user
|
|
6593
|
+
* @param {*} [options] Override http request option.
|
|
6594
|
+
* @throws {RequiredError}
|
|
6595
|
+
*/
|
|
6596
|
+
getUserPhoto(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
6597
|
+
};
|
|
6598
|
+
/**
|
|
6599
|
+
* UserPhotoApi - factory interface
|
|
6600
|
+
* @export
|
|
6601
|
+
*/
|
|
6602
|
+
export declare const UserPhotoApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6603
|
+
/**
|
|
6604
|
+
*
|
|
6605
|
+
* @summary Get the photo of a user
|
|
6606
|
+
* @param {string} userId key: id or name of user
|
|
6607
|
+
* @param {*} [options] Override http request option.
|
|
6608
|
+
* @throws {RequiredError}
|
|
6609
|
+
*/
|
|
6610
|
+
getUserPhoto(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
6611
|
+
};
|
|
6612
|
+
/**
|
|
6613
|
+
* UserPhotoApi - object-oriented interface
|
|
6614
|
+
* @export
|
|
6615
|
+
* @class UserPhotoApi
|
|
6616
|
+
* @extends {BaseAPI}
|
|
6617
|
+
*/
|
|
6618
|
+
export declare class UserPhotoApi extends BaseAPI {
|
|
6619
|
+
/**
|
|
6620
|
+
*
|
|
6621
|
+
* @summary Get the photo of a user
|
|
6622
|
+
* @param {string} userId key: id or name of user
|
|
6623
|
+
* @param {*} [options] Override http request option.
|
|
6624
|
+
* @throws {RequiredError}
|
|
6625
|
+
* @memberof UserPhotoApi
|
|
6626
|
+
*/
|
|
6627
|
+
getUserPhoto(userId: string, options?: RawAxiosRequestConfig): Promise<import('axios').AxiosResponse<File, any>>;
|
|
6628
|
+
}
|
|
6365
6629
|
/**
|
|
6366
6630
|
* UsersApi - axios parameter creator
|
|
6367
6631
|
* @export
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Libre Graph API
|
|
3
3
|
* Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: v1.0.
|
|
5
|
+
* The version of the OpenAPI document: v1.0.8
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Libre Graph API
|
|
3
3
|
* Libre Graph is a free API for cloud collaboration inspired by the MS Graph API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: v1.0.
|
|
5
|
+
* The version of the OpenAPI document: v1.0.8
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -7,6 +7,7 @@ import { GraphDriveItems } from './driveItems';
|
|
|
7
7
|
import { GraphTags } from './tags';
|
|
8
8
|
import { GraphActivities } from './activities';
|
|
9
9
|
import { GraphPermissions } from './permissions';
|
|
10
|
+
import { GraphPhotos } from './photos';
|
|
10
11
|
export interface Graph {
|
|
11
12
|
activities: GraphActivities;
|
|
12
13
|
applications: GraphApplications;
|
|
@@ -16,5 +17,6 @@ export interface Graph {
|
|
|
16
17
|
users: GraphUsers;
|
|
17
18
|
groups: GraphGroups;
|
|
18
19
|
permissions: GraphPermissions;
|
|
20
|
+
photos: GraphPhotos;
|
|
19
21
|
}
|
|
20
22
|
export declare const graph: (baseURI: string, axiosClient: AxiosInstance) => Graph;
|
|
@@ -6,12 +6,15 @@ type ListPermissionsResponse = {
|
|
|
6
6
|
shares: Share[];
|
|
7
7
|
allowedActions: string[];
|
|
8
8
|
allowedRoles: UnifiedRoleDefinition[];
|
|
9
|
+
count?: number;
|
|
9
10
|
};
|
|
10
11
|
export interface GraphPermissions {
|
|
11
12
|
getPermission<T extends Share>(driveId: string, itemId: string, permId: string, graphRoles?: Record<string, ShareRole>, requestOptions?: GraphRequestOptions): Promise<T>;
|
|
12
13
|
listPermissions(driveId: string, itemId: string, graphRoles?: Record<string, ShareRole>, options?: {
|
|
13
14
|
filter?: string;
|
|
14
15
|
select?: Array<ListPermissionsSpaceRootSelectEnum>;
|
|
16
|
+
count?: boolean;
|
|
17
|
+
top?: number;
|
|
15
18
|
}, requestOptions?: GraphRequestOptions): Promise<ListPermissionsResponse>;
|
|
16
19
|
updatePermission<T extends Share>(driveId: string, itemId: string, permId: string, data: Permission, graphRoles?: Record<string, ShareRole>, requestOptions?: GraphRequestOptions): Promise<T>;
|
|
17
20
|
deletePermission(driveId: string, itemId: string, permId: string, requestOptions?: GraphRequestOptions): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GraphRequestOptions } from '../types';
|
|
2
|
+
export interface GraphPhotos {
|
|
3
|
+
getOwnUserPhoto: (requestOptions?: GraphRequestOptions) => Promise<File>;
|
|
4
|
+
deleteOwnUserPhoto: (requestOptions?: GraphRequestOptions) => Promise<void>;
|
|
5
|
+
updateOwnUserPhotoPatch: (body: File, requestOptions?: GraphRequestOptions) => Promise<void>;
|
|
6
|
+
getUserPhoto: (userId: string, requestOptions?: GraphRequestOptions) => Promise<File>;
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from 'axios';
|
|
1
|
+
import { AxiosInstance, ResponseType } from 'axios';
|
|
2
2
|
import { Configuration } from './generated';
|
|
3
3
|
export interface GraphFactoryOptions {
|
|
4
4
|
axiosClient: AxiosInstance;
|
|
@@ -8,4 +8,5 @@ export interface GraphRequestOptions {
|
|
|
8
8
|
headers?: Record<string, string>;
|
|
9
9
|
params?: Record<string, string>;
|
|
10
10
|
signal?: AbortSignal;
|
|
11
|
+
responseType?: ResponseType;
|
|
11
12
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { User } from '../../graph/generated';
|
|
2
1
|
import { Resource } from '../resource';
|
|
3
|
-
import { PublicSpaceResource, ShareSpaceResource,
|
|
2
|
+
import { PublicSpaceResource, ShareSpaceResource, SpaceResource } from './types';
|
|
4
3
|
import { Drive } from '@opencloud-eu/web-client/graph/generated';
|
|
5
|
-
import {
|
|
4
|
+
import { CollaboratorShare } from '../share';
|
|
6
5
|
export declare function buildWebDavSpacesPath(storageId: string, path?: string): string;
|
|
7
6
|
export declare function buildWebDavSpacesTrashPath(storageId: string, path?: string): string;
|
|
8
7
|
export declare function getRelativeSpecialFolderSpacePath(space: SpaceResource, type: 'image' | 'readme'): string;
|
|
9
|
-
export declare function
|
|
8
|
+
export declare function isManager(share: CollaboratorShare): boolean;
|
|
10
9
|
export type PublicLinkType = 'ocm' | 'public-link';
|
|
11
10
|
export declare function buildPublicSpaceResource(data: any & {
|
|
12
11
|
publicLinkType: PublicLinkType;
|
|
@@ -22,6 +21,5 @@ export declare function buildSpace(data: Drive & {
|
|
|
22
21
|
serverUrl?: string;
|
|
23
22
|
webDavPath?: string;
|
|
24
23
|
webDavTrashPath?: string;
|
|
25
|
-
}
|
|
24
|
+
}): SpaceResource;
|
|
26
25
|
export declare function buildSpaceImageResource(space: SpaceResource): Resource;
|
|
27
|
-
export declare function getPermissionsForSpaceMember(space: SpaceResource, user: User): string[];
|