@wix/auto_sdk_app-management_app-permissions 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +3 -3
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +3 -3
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +1 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +5 -5
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +10 -11
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +1 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts +17 -18
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +5 -5
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +1 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +3 -3
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +3 -3
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +1 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +5 -5
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +10 -11
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +1 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts +17 -18
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +5 -5
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +1 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +3 -3
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +3 -3
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +1 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +5 -5
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +10 -11
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +1 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts +17 -18
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +5 -5
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +1 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +3 -3
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +3 -3
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +1 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +5 -5
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +10 -11
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +1 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts +17 -18
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +5 -5
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
2
|
+
/** Adds a permission to the specified app. */
|
|
3
3
|
export declare function createAppPermission(payload: object): RequestOptionsFactory<any>;
|
|
4
|
-
/** Lists
|
|
4
|
+
/** Lists all permissions for the specified app. */
|
|
5
5
|
export declare function listAppPermissions(payload: object): RequestOptionsFactory<any>;
|
|
6
|
-
/** Deletes the specified app
|
|
6
|
+
/** Deletes a permission from the specified app. */
|
|
7
7
|
export declare function deleteAppPermission(payload: object): RequestOptionsFactory<any>;
|
|
@@ -48,7 +48,7 @@ function resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl(opts) {
|
|
|
48
48
|
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
49
49
|
}
|
|
50
50
|
const PACKAGE_NAME = '@wix/auto_sdk_app-management_app-permissions';
|
|
51
|
-
/**
|
|
51
|
+
/** Adds a permission to the specified app. */
|
|
52
52
|
function createAppPermission(payload) {
|
|
53
53
|
function __createAppPermission({ host }) {
|
|
54
54
|
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
@@ -86,7 +86,7 @@ function createAppPermission(payload) {
|
|
|
86
86
|
return __createAppPermission;
|
|
87
87
|
}
|
|
88
88
|
exports.createAppPermission = createAppPermission;
|
|
89
|
-
/** Lists
|
|
89
|
+
/** Lists all permissions for the specified app. */
|
|
90
90
|
function listAppPermissions(payload) {
|
|
91
91
|
function __listAppPermissions({ host }) {
|
|
92
92
|
const metadata = {
|
|
@@ -115,7 +115,7 @@ function listAppPermissions(payload) {
|
|
|
115
115
|
return __listAppPermissions;
|
|
116
116
|
}
|
|
117
117
|
exports.listAppPermissions = listAppPermissions;
|
|
118
|
-
/** Deletes the specified app
|
|
118
|
+
/** Deletes a permission from the specified app. */
|
|
119
119
|
function deleteAppPermission(payload) {
|
|
120
120
|
function __deleteAppPermission({ host }) {
|
|
121
121
|
const metadata = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.http.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,4DAA4D,CACnE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,8CAA8C,CAAC;AAEpE,
|
|
1
|
+
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.http.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,4DAA4D,CACnE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,E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|
|
|
6
6
|
export declare function createAppPermission(httpClient: HttpClient): CreateAppPermissionSignature;
|
|
7
7
|
interface CreateAppPermissionSignature {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param -
|
|
11
|
-
* @returns Details of the
|
|
9
|
+
* Adds a permission to the specified app.
|
|
10
|
+
* @param - Permission to add to the specified app.
|
|
11
|
+
* @returns Details of permission that was added to the app.
|
|
12
12
|
*/
|
|
13
13
|
(appPermission: AppPermission): Promise<AppPermission>;
|
|
14
14
|
}
|
|
15
15
|
export declare function listAppPermissions(httpClient: HttpClient): ListAppPermissionsSignature;
|
|
16
16
|
interface ListAppPermissionsSignature {
|
|
17
17
|
/**
|
|
18
|
-
* Lists
|
|
18
|
+
* Lists all permissions for the specified app.
|
|
19
19
|
* @param - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
20
20
|
*
|
|
21
21
|
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
@@ -25,7 +25,7 @@ interface ListAppPermissionsSignature {
|
|
|
25
25
|
export declare function deleteAppPermission(httpClient: HttpClient): DeleteAppPermissionSignature;
|
|
26
26
|
interface DeleteAppPermissionSignature {
|
|
27
27
|
/**
|
|
28
|
-
* Deletes the specified app
|
|
28
|
+
* Deletes a permission from the specified app.
|
|
29
29
|
* @param - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
30
30
|
*
|
|
31
31
|
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/** AppPermission is the main entity of AppPermissionsService that define relation between app and permission */
|
|
2
1
|
export interface AppPermission {
|
|
3
2
|
/**
|
|
4
3
|
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
5
4
|
*
|
|
6
|
-
* You can find the app ID
|
|
5
|
+
* You can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).
|
|
7
6
|
* @format GUID
|
|
8
7
|
*/
|
|
9
8
|
appId?: string;
|
|
10
9
|
/**
|
|
11
|
-
* Permission
|
|
10
|
+
* Permission to configure.
|
|
12
11
|
*
|
|
13
12
|
* Learn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
14
13
|
*/
|
|
@@ -19,7 +18,7 @@ export interface AppPermission {
|
|
|
19
18
|
*/
|
|
20
19
|
createdDate?: Date | null;
|
|
21
20
|
/**
|
|
22
|
-
* When the permission was last updated
|
|
21
|
+
* When the permission was last updated.
|
|
23
22
|
* @readonly
|
|
24
23
|
*/
|
|
25
24
|
updatedDate?: Date | null;
|
|
@@ -28,18 +27,18 @@ export interface V1Permission {
|
|
|
28
27
|
/**
|
|
29
28
|
* Permission ID.
|
|
30
29
|
*
|
|
31
|
-
* To find the permission ID,
|
|
30
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
32
31
|
* @minLength 1
|
|
33
32
|
* @maxLength 164
|
|
34
33
|
*/
|
|
35
34
|
permissionId?: string;
|
|
36
35
|
}
|
|
37
36
|
export interface CreateAppPermissionRequest {
|
|
38
|
-
/**
|
|
37
|
+
/** Permission to add to the specified app. */
|
|
39
38
|
appPermission: AppPermission;
|
|
40
39
|
}
|
|
41
40
|
export interface CreateAppPermissionResponse {
|
|
42
|
-
/** Details of the
|
|
41
|
+
/** Details of permission that was added to the app. */
|
|
43
42
|
appPermission?: AppPermission;
|
|
44
43
|
}
|
|
45
44
|
export interface GetAppPermissionRequest {
|
|
@@ -53,7 +52,7 @@ export interface GetAppPermissionRequest {
|
|
|
53
52
|
/**
|
|
54
53
|
* Permission ID.
|
|
55
54
|
*
|
|
56
|
-
* To find the permission ID,
|
|
55
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
57
56
|
* @minLength 1
|
|
58
57
|
* @maxLength 164
|
|
59
58
|
*/
|
|
@@ -72,7 +71,7 @@ export interface ListAppPermissionsRequest {
|
|
|
72
71
|
*/
|
|
73
72
|
appId: string;
|
|
74
73
|
/**
|
|
75
|
-
* Whether to retrieve the most recent permissions information. This decreases performance but ensures the information
|
|
74
|
+
* Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.
|
|
76
75
|
*
|
|
77
76
|
* Default: `false`
|
|
78
77
|
*/
|
|
@@ -96,7 +95,7 @@ export interface CursorPaging {
|
|
|
96
95
|
cursor?: string | null;
|
|
97
96
|
}
|
|
98
97
|
export interface ListAppPermissionsResponse {
|
|
99
|
-
/**
|
|
98
|
+
/** List of permissions for the specified app. */
|
|
100
99
|
appPermissions?: AppPermission[];
|
|
101
100
|
/** Paging metadata. */
|
|
102
101
|
pagingMetadata?: CursorPagingMetadata;
|
|
@@ -137,7 +136,7 @@ export interface DeleteAppPermissionRequest {
|
|
|
137
136
|
/**
|
|
138
137
|
* Permission ID.
|
|
139
138
|
*
|
|
140
|
-
* To find the permission ID,
|
|
139
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
141
140
|
* @minLength 1
|
|
142
141
|
* @maxLength 164
|
|
143
142
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.types.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.types.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.types.ts"],"names":[],"mappings":";;;AAqKA,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,+DAAiD,CAAA;AACnD,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AA8FD,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;AACrB,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AAoED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
-
/** AppPermission is the main entity of AppPermissionsService that define relation between app and permission */
|
|
3
2
|
export interface AppPermission {
|
|
4
3
|
/**
|
|
5
4
|
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
6
5
|
*
|
|
7
|
-
* You can find the app ID
|
|
6
|
+
* You can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).
|
|
8
7
|
* @format GUID
|
|
9
8
|
*/
|
|
10
9
|
appId?: string;
|
|
11
10
|
/**
|
|
12
|
-
* Permission
|
|
11
|
+
* Permission to configure.
|
|
13
12
|
*
|
|
14
13
|
* Learn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
15
14
|
*/
|
|
@@ -20,7 +19,7 @@ export interface AppPermission {
|
|
|
20
19
|
*/
|
|
21
20
|
_createdDate?: Date | null;
|
|
22
21
|
/**
|
|
23
|
-
* When the permission was last updated
|
|
22
|
+
* When the permission was last updated.
|
|
24
23
|
* @readonly
|
|
25
24
|
*/
|
|
26
25
|
_updatedDate?: Date | null;
|
|
@@ -29,18 +28,18 @@ export interface V1Permission {
|
|
|
29
28
|
/**
|
|
30
29
|
* Permission ID.
|
|
31
30
|
*
|
|
32
|
-
* To find the permission ID,
|
|
31
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
33
32
|
* @minLength 1
|
|
34
33
|
* @maxLength 164
|
|
35
34
|
*/
|
|
36
35
|
permissionId?: string;
|
|
37
36
|
}
|
|
38
37
|
export interface CreateAppPermissionRequest {
|
|
39
|
-
/**
|
|
38
|
+
/** Permission to add to the specified app. */
|
|
40
39
|
appPermission: AppPermission;
|
|
41
40
|
}
|
|
42
41
|
export interface CreateAppPermissionResponse {
|
|
43
|
-
/** Details of the
|
|
42
|
+
/** Details of permission that was added to the app. */
|
|
44
43
|
appPermission?: AppPermission;
|
|
45
44
|
}
|
|
46
45
|
export interface GetAppPermissionRequest {
|
|
@@ -54,7 +53,7 @@ export interface GetAppPermissionRequest {
|
|
|
54
53
|
/**
|
|
55
54
|
* Permission ID.
|
|
56
55
|
*
|
|
57
|
-
* To find the permission ID,
|
|
56
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
58
57
|
* @minLength 1
|
|
59
58
|
* @maxLength 164
|
|
60
59
|
*/
|
|
@@ -73,7 +72,7 @@ export interface ListAppPermissionsRequest {
|
|
|
73
72
|
*/
|
|
74
73
|
appId: string;
|
|
75
74
|
/**
|
|
76
|
-
* Whether to retrieve the most recent permissions information. This decreases performance but ensures the information
|
|
75
|
+
* Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.
|
|
77
76
|
*
|
|
78
77
|
* Default: `false`
|
|
79
78
|
*/
|
|
@@ -97,7 +96,7 @@ export interface CursorPaging {
|
|
|
97
96
|
cursor?: string | null;
|
|
98
97
|
}
|
|
99
98
|
export interface ListAppPermissionsResponse {
|
|
100
|
-
/**
|
|
99
|
+
/** List of permissions for the specified app. */
|
|
101
100
|
appPermissions?: AppPermission[];
|
|
102
101
|
/** Paging metadata. */
|
|
103
102
|
pagingMetadata?: CursorPagingMetadata;
|
|
@@ -138,7 +137,7 @@ export interface DeleteAppPermissionRequest {
|
|
|
138
137
|
/**
|
|
139
138
|
* Permission ID.
|
|
140
139
|
*
|
|
141
|
-
* To find the permission ID,
|
|
140
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
142
141
|
* @minLength 1
|
|
143
142
|
* @maxLength 164
|
|
144
143
|
*/
|
|
@@ -376,8 +375,8 @@ export interface AppPermissionCreatedEnvelope {
|
|
|
376
375
|
export declare function onAppPermissionCreated(handler: (event: AppPermissionCreatedEnvelope) => void | Promise<void>): void;
|
|
377
376
|
type AppPermissionNonNullablePaths = `appId` | `permission.permissionId`;
|
|
378
377
|
/**
|
|
379
|
-
*
|
|
380
|
-
* @param appPermission -
|
|
378
|
+
* Adds a permission to the specified app.
|
|
379
|
+
* @param appPermission - Permission to add to the specified app.
|
|
381
380
|
* @public
|
|
382
381
|
* @documentationMaturity preview
|
|
383
382
|
* @requiredField appPermission
|
|
@@ -388,12 +387,12 @@ type AppPermissionNonNullablePaths = `appId` | `permission.permissionId`;
|
|
|
388
387
|
* @permissionScope Write Dev Center App Permissions
|
|
389
388
|
* @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
|
|
390
389
|
* @applicableIdentity APP
|
|
391
|
-
* @returns Details of the
|
|
390
|
+
* @returns Details of permission that was added to the app.
|
|
392
391
|
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission
|
|
393
392
|
*/
|
|
394
393
|
export declare function createAppPermission(appPermission: NonNullablePaths<AppPermission, `appId` | `permission` | `permission.permissionId`>): Promise<NonNullablePaths<AppPermission, AppPermissionNonNullablePaths>>;
|
|
395
394
|
/**
|
|
396
|
-
* Lists
|
|
395
|
+
* Lists all permissions for the specified app.
|
|
397
396
|
* @param appId - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
398
397
|
*
|
|
399
398
|
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
@@ -408,7 +407,7 @@ export declare function listAppPermissions(appId: string, options?: ListAppPermi
|
|
|
408
407
|
}[AppPermissionNonNullablePaths]>>;
|
|
409
408
|
export interface ListAppPermissionsOptions {
|
|
410
409
|
/**
|
|
411
|
-
* Whether to retrieve the most recent permissions information. This decreases performance but ensures the information
|
|
410
|
+
* Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.
|
|
412
411
|
*
|
|
413
412
|
* Default: `false`
|
|
414
413
|
*/
|
|
@@ -417,7 +416,7 @@ export interface ListAppPermissionsOptions {
|
|
|
417
416
|
paging?: CursorPaging;
|
|
418
417
|
}
|
|
419
418
|
/**
|
|
420
|
-
* Deletes the specified app
|
|
419
|
+
* Deletes a permission from the specified app.
|
|
421
420
|
* @param appId - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
422
421
|
*
|
|
423
422
|
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
@@ -437,7 +436,7 @@ export interface DeleteAppPermissionOptions {
|
|
|
437
436
|
/**
|
|
438
437
|
* Permission ID.
|
|
439
438
|
*
|
|
440
|
-
* To find the permission ID,
|
|
439
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
441
440
|
* @minLength 1
|
|
442
441
|
* @maxLength 164
|
|
443
442
|
*/
|
|
@@ -46,8 +46,8 @@ var WebhookIdentityType;
|
|
|
46
46
|
WebhookIdentityType["APP"] = "APP";
|
|
47
47
|
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @param appPermission -
|
|
49
|
+
* Adds a permission to the specified app.
|
|
50
|
+
* @param appPermission - Permission to add to the specified app.
|
|
51
51
|
* @public
|
|
52
52
|
* @documentationMaturity preview
|
|
53
53
|
* @requiredField appPermission
|
|
@@ -58,7 +58,7 @@ var WebhookIdentityType;
|
|
|
58
58
|
* @permissionScope Write Dev Center App Permissions
|
|
59
59
|
* @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
|
|
60
60
|
* @applicableIdentity APP
|
|
61
|
-
* @returns Details of the
|
|
61
|
+
* @returns Details of permission that was added to the app.
|
|
62
62
|
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission
|
|
63
63
|
*/
|
|
64
64
|
async function createAppPermission(appPermission) {
|
|
@@ -86,7 +86,7 @@ async function createAppPermission(appPermission) {
|
|
|
86
86
|
}
|
|
87
87
|
exports.createAppPermission = createAppPermission;
|
|
88
88
|
/**
|
|
89
|
-
* Lists
|
|
89
|
+
* Lists all permissions for the specified app.
|
|
90
90
|
* @param appId - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
91
91
|
*
|
|
92
92
|
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
@@ -127,7 +127,7 @@ async function listAppPermissions(appId, options) {
|
|
|
127
127
|
}
|
|
128
128
|
exports.listAppPermissions = listAppPermissions;
|
|
129
129
|
/**
|
|
130
|
-
* Deletes the specified app
|
|
130
|
+
* Deletes a permission from the specified app.
|
|
131
131
|
* @param appId - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
132
132
|
*
|
|
133
133
|
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.universal.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,sIAAwH;
|
|
1
|
+
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.universal.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,sIAAwH;AAuKxH,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,+DAAiD,CAAA;AACnD,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AA4FD,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;AACrB,CAAC,EAJW,MAAM,sBAAN,MAAM,QAIjB;AAoED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAyED;;;;;;;;;;;;;;;GAeG;AACI,KAAK,UAAU,mBAAmB,CACvC,aAGC;IAED,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,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AA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,KAAK,EAAE,MAAM;gBACb,YAAY,EAAE,mBAAmB;aAClC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAvCD,kDAuCC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
2
|
+
/** Adds a permission to the specified app. */
|
|
3
3
|
export declare function createAppPermission(payload: object): RequestOptionsFactory<any>;
|
|
4
|
-
/** Lists
|
|
4
|
+
/** Lists all permissions for the specified app. */
|
|
5
5
|
export declare function listAppPermissions(payload: object): RequestOptionsFactory<any>;
|
|
6
|
-
/** Deletes the specified app
|
|
6
|
+
/** Deletes a permission from the specified app. */
|
|
7
7
|
export declare function deleteAppPermission(payload: object): RequestOptionsFactory<any>;
|
|
@@ -45,7 +45,7 @@ function resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl(opts) {
|
|
|
45
45
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
46
46
|
}
|
|
47
47
|
const PACKAGE_NAME = '@wix/auto_sdk_app-management_app-permissions';
|
|
48
|
-
/**
|
|
48
|
+
/** Adds a permission to the specified app. */
|
|
49
49
|
export function createAppPermission(payload) {
|
|
50
50
|
function __createAppPermission({ host }) {
|
|
51
51
|
const serializedData = transformPaths(payload, [
|
|
@@ -82,7 +82,7 @@ export function createAppPermission(payload) {
|
|
|
82
82
|
}
|
|
83
83
|
return __createAppPermission;
|
|
84
84
|
}
|
|
85
|
-
/** Lists
|
|
85
|
+
/** Lists all permissions for the specified app. */
|
|
86
86
|
export function listAppPermissions(payload) {
|
|
87
87
|
function __listAppPermissions({ host }) {
|
|
88
88
|
const metadata = {
|
|
@@ -110,7 +110,7 @@ export function listAppPermissions(payload) {
|
|
|
110
110
|
}
|
|
111
111
|
return __listAppPermissions;
|
|
112
112
|
}
|
|
113
|
-
/** Deletes the specified app
|
|
113
|
+
/** Deletes a permission from the specified app. */
|
|
114
114
|
export function deleteAppPermission(payload) {
|
|
115
115
|
function __deleteAppPermission({ host }) {
|
|
116
116
|
const metadata = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.http.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,4DAA4D,CACnE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,8CAA8C,CAAC;AAEpE,
|
|
1
|
+
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.http.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,4DAA4D,CACnE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CA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D,CAAC;gBAChE,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,4BAA4B,EAAE;wBACtC,EAAE,IAAI,EAAE,4BAA4B,EAAE;qBACvC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAED,mDAAmD;AACnD,MAAM,UAAU,mBAAmB,CACjC,OAAe;IAEf,SAAS,qBAAqB,CAAC,EAAE,IAAI,EAAO;QAC1C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,sCAAsC;YAClD,MAAM,EAAE,QAAe;YACvB,SAAS,EACP,6EAA6E;YAC/E,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,4DAA4D,CAAC;gBAChE,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,qBAAqB,CAAC;AAC/B,CAAC"}
|
|
@@ -6,16 +6,16 @@ export declare const __metadata: {
|
|
|
6
6
|
export declare function createAppPermission(httpClient: HttpClient): CreateAppPermissionSignature;
|
|
7
7
|
interface CreateAppPermissionSignature {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param -
|
|
11
|
-
* @returns Details of the
|
|
9
|
+
* Adds a permission to the specified app.
|
|
10
|
+
* @param - Permission to add to the specified app.
|
|
11
|
+
* @returns Details of permission that was added to the app.
|
|
12
12
|
*/
|
|
13
13
|
(appPermission: AppPermission): Promise<AppPermission>;
|
|
14
14
|
}
|
|
15
15
|
export declare function listAppPermissions(httpClient: HttpClient): ListAppPermissionsSignature;
|
|
16
16
|
interface ListAppPermissionsSignature {
|
|
17
17
|
/**
|
|
18
|
-
* Lists
|
|
18
|
+
* Lists all permissions for the specified app.
|
|
19
19
|
* @param - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
20
20
|
*
|
|
21
21
|
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
@@ -25,7 +25,7 @@ interface ListAppPermissionsSignature {
|
|
|
25
25
|
export declare function deleteAppPermission(httpClient: HttpClient): DeleteAppPermissionSignature;
|
|
26
26
|
interface DeleteAppPermissionSignature {
|
|
27
27
|
/**
|
|
28
|
-
* Deletes the specified app
|
|
28
|
+
* Deletes a permission from the specified app.
|
|
29
29
|
* @param - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
30
30
|
*
|
|
31
31
|
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/** AppPermission is the main entity of AppPermissionsService that define relation between app and permission */
|
|
2
1
|
export interface AppPermission {
|
|
3
2
|
/**
|
|
4
3
|
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
5
4
|
*
|
|
6
|
-
* You can find the app ID
|
|
5
|
+
* You can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).
|
|
7
6
|
* @format GUID
|
|
8
7
|
*/
|
|
9
8
|
appId?: string;
|
|
10
9
|
/**
|
|
11
|
-
* Permission
|
|
10
|
+
* Permission to configure.
|
|
12
11
|
*
|
|
13
12
|
* Learn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
14
13
|
*/
|
|
@@ -19,7 +18,7 @@ export interface AppPermission {
|
|
|
19
18
|
*/
|
|
20
19
|
createdDate?: Date | null;
|
|
21
20
|
/**
|
|
22
|
-
* When the permission was last updated
|
|
21
|
+
* When the permission was last updated.
|
|
23
22
|
* @readonly
|
|
24
23
|
*/
|
|
25
24
|
updatedDate?: Date | null;
|
|
@@ -28,18 +27,18 @@ export interface V1Permission {
|
|
|
28
27
|
/**
|
|
29
28
|
* Permission ID.
|
|
30
29
|
*
|
|
31
|
-
* To find the permission ID,
|
|
30
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
32
31
|
* @minLength 1
|
|
33
32
|
* @maxLength 164
|
|
34
33
|
*/
|
|
35
34
|
permissionId?: string;
|
|
36
35
|
}
|
|
37
36
|
export interface CreateAppPermissionRequest {
|
|
38
|
-
/**
|
|
37
|
+
/** Permission to add to the specified app. */
|
|
39
38
|
appPermission: AppPermission;
|
|
40
39
|
}
|
|
41
40
|
export interface CreateAppPermissionResponse {
|
|
42
|
-
/** Details of the
|
|
41
|
+
/** Details of permission that was added to the app. */
|
|
43
42
|
appPermission?: AppPermission;
|
|
44
43
|
}
|
|
45
44
|
export interface GetAppPermissionRequest {
|
|
@@ -53,7 +52,7 @@ export interface GetAppPermissionRequest {
|
|
|
53
52
|
/**
|
|
54
53
|
* Permission ID.
|
|
55
54
|
*
|
|
56
|
-
* To find the permission ID,
|
|
55
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
57
56
|
* @minLength 1
|
|
58
57
|
* @maxLength 164
|
|
59
58
|
*/
|
|
@@ -72,7 +71,7 @@ export interface ListAppPermissionsRequest {
|
|
|
72
71
|
*/
|
|
73
72
|
appId: string;
|
|
74
73
|
/**
|
|
75
|
-
* Whether to retrieve the most recent permissions information. This decreases performance but ensures the information
|
|
74
|
+
* Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.
|
|
76
75
|
*
|
|
77
76
|
* Default: `false`
|
|
78
77
|
*/
|
|
@@ -96,7 +95,7 @@ export interface CursorPaging {
|
|
|
96
95
|
cursor?: string | null;
|
|
97
96
|
}
|
|
98
97
|
export interface ListAppPermissionsResponse {
|
|
99
|
-
/**
|
|
98
|
+
/** List of permissions for the specified app. */
|
|
100
99
|
appPermissions?: AppPermission[];
|
|
101
100
|
/** Paging metadata. */
|
|
102
101
|
pagingMetadata?: CursorPagingMetadata;
|
|
@@ -137,7 +136,7 @@ export interface DeleteAppPermissionRequest {
|
|
|
137
136
|
/**
|
|
138
137
|
* Permission ID.
|
|
139
138
|
*
|
|
140
|
-
* To find the permission ID,
|
|
139
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
141
140
|
* @minLength 1
|
|
142
141
|
* @maxLength 164
|
|
143
142
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.types.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.types.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.types.ts"],"names":[],"mappings":"AAqKA,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,+DAAiD,CAAA;AACnD,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB;AA8FD,MAAM,CAAN,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;IACnB,6BAAmB,CAAA;AACrB,CAAC,EAJW,MAAM,KAAN,MAAM,QAIjB;AAoED,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|