@wix/auto_sdk_app-management_app-permissions 1.0.17 → 1.0.19
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/{internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → cjs/devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.d.ts} +40 -115
- package/build/cjs/index.d.ts +58 -1
- package/build/cjs/index.js +348 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +143 -1
- package/build/cjs/meta.js +217 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → es/devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.d.mts} +40 -115
- package/build/es/index.d.mts +58 -0
- package/build/es/index.mjs +320 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/meta.d.mts +143 -0
- package/build/es/meta.mjs +191 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/{es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → internal/cjs/devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.d.ts} +40 -115
- package/build/internal/cjs/index.d.ts +58 -1
- package/build/internal/cjs/index.js +348 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +143 -1
- package/build/internal/cjs/meta.js +217 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.d.mts} +40 -115
- package/build/internal/es/index.d.mts +58 -0
- package/build/internal/es/index.mjs +320 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +143 -0
- package/build/internal/es/meta.mjs +191 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +9 -8
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -18
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -24
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -19
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -150
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -85
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -46
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -52
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -311
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -22
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -177
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -18
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -18
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -19
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -144
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -56
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -46
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -43
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -311
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -19
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -148
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -18
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -24
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -19
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -150
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -85
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -46
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -52
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -311
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -22
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -177
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -18
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -18
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -19
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -144
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -56
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -46
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -43
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -311
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -19
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -148
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface AppPermission {
|
|
1
|
+
interface AppPermission {
|
|
3
2
|
/**
|
|
4
3
|
* App ID.
|
|
5
4
|
*
|
|
@@ -24,7 +23,7 @@ export interface AppPermission {
|
|
|
24
23
|
*/
|
|
25
24
|
_updatedDate?: Date | null;
|
|
26
25
|
}
|
|
27
|
-
|
|
26
|
+
interface V1Permission {
|
|
28
27
|
/**
|
|
29
28
|
* Permission ID.
|
|
30
29
|
*
|
|
@@ -34,15 +33,15 @@ export interface V1Permission {
|
|
|
34
33
|
*/
|
|
35
34
|
permissionId?: string;
|
|
36
35
|
}
|
|
37
|
-
|
|
36
|
+
interface CreateAppPermissionRequest {
|
|
38
37
|
/** Permission to add to the specified app. */
|
|
39
38
|
appPermission: AppPermission;
|
|
40
39
|
}
|
|
41
|
-
|
|
40
|
+
interface CreateAppPermissionResponse {
|
|
42
41
|
/** Details of permission that was added to the app. */
|
|
43
42
|
appPermission?: AppPermission;
|
|
44
43
|
}
|
|
45
|
-
|
|
44
|
+
interface GetAppPermissionRequest {
|
|
46
45
|
/**
|
|
47
46
|
* App ID.
|
|
48
47
|
*
|
|
@@ -59,11 +58,11 @@ export interface GetAppPermissionRequest {
|
|
|
59
58
|
*/
|
|
60
59
|
permissionId?: string;
|
|
61
60
|
}
|
|
62
|
-
|
|
61
|
+
interface GetAppPermissionResponse {
|
|
63
62
|
/** Details of the retrieved app permission. */
|
|
64
63
|
appPermission?: AppPermission;
|
|
65
64
|
}
|
|
66
|
-
|
|
65
|
+
interface ListAppPermissionsRequest {
|
|
67
66
|
/**
|
|
68
67
|
* App ID.
|
|
69
68
|
*
|
|
@@ -80,7 +79,7 @@ export interface ListAppPermissionsRequest {
|
|
|
80
79
|
/** Paging configuration. */
|
|
81
80
|
paging?: CursorPaging;
|
|
82
81
|
}
|
|
83
|
-
|
|
82
|
+
interface CursorPaging {
|
|
84
83
|
/**
|
|
85
84
|
* Maximum number of items to return in the results.
|
|
86
85
|
* @max 100
|
|
@@ -95,13 +94,13 @@ export interface CursorPaging {
|
|
|
95
94
|
*/
|
|
96
95
|
cursor?: string | null;
|
|
97
96
|
}
|
|
98
|
-
|
|
97
|
+
interface ListAppPermissionsResponse {
|
|
99
98
|
/** List of permissions for the specified app. */
|
|
100
99
|
appPermissions?: AppPermission[];
|
|
101
100
|
/** Paging metadata. */
|
|
102
101
|
pagingMetadata?: CursorPagingMetadata;
|
|
103
102
|
}
|
|
104
|
-
|
|
103
|
+
interface CursorPagingMetadata {
|
|
105
104
|
/** Number of items returned in current page. */
|
|
106
105
|
count?: number | null;
|
|
107
106
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -114,7 +113,7 @@ export interface CursorPagingMetadata {
|
|
|
114
113
|
*/
|
|
115
114
|
hasNext?: boolean | null;
|
|
116
115
|
}
|
|
117
|
-
|
|
116
|
+
interface Cursors {
|
|
118
117
|
/**
|
|
119
118
|
* Cursor string pointing to the next page in the list of results.
|
|
120
119
|
* @maxLength 16000
|
|
@@ -126,7 +125,7 @@ export interface Cursors {
|
|
|
126
125
|
*/
|
|
127
126
|
prev?: string | null;
|
|
128
127
|
}
|
|
129
|
-
|
|
128
|
+
interface DeleteAppPermissionRequest {
|
|
130
129
|
/**
|
|
131
130
|
* App ID.
|
|
132
131
|
*
|
|
@@ -143,20 +142,20 @@ export interface DeleteAppPermissionRequest {
|
|
|
143
142
|
*/
|
|
144
143
|
permissionId: string;
|
|
145
144
|
}
|
|
146
|
-
|
|
145
|
+
interface DeleteAppPermissionResponse {
|
|
147
146
|
}
|
|
148
|
-
|
|
147
|
+
interface PermissionActionDomainEventEntity {
|
|
149
148
|
/** The permission that had an event */
|
|
150
149
|
appPermission?: AppPermission;
|
|
151
150
|
/** The action which happened */
|
|
152
151
|
actionType?: ActionTypeWithLiterals;
|
|
153
152
|
}
|
|
154
|
-
|
|
153
|
+
declare enum ActionType {
|
|
155
154
|
APP_PERMISSION_DELETED = "APP_PERMISSION_DELETED"
|
|
156
155
|
}
|
|
157
156
|
/** @enumType */
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
type ActionTypeWithLiterals = ActionType | 'APP_PERMISSION_DELETED';
|
|
158
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
160
159
|
createdEvent?: EntityCreatedEvent;
|
|
161
160
|
updatedEvent?: EntityUpdatedEvent;
|
|
162
161
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -191,19 +190,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
191
190
|
entityEventSequence?: string | null;
|
|
192
191
|
}
|
|
193
192
|
/** @oneof */
|
|
194
|
-
|
|
193
|
+
interface DomainEventBodyOneOf {
|
|
195
194
|
createdEvent?: EntityCreatedEvent;
|
|
196
195
|
updatedEvent?: EntityUpdatedEvent;
|
|
197
196
|
deletedEvent?: EntityDeletedEvent;
|
|
198
197
|
actionEvent?: ActionEvent;
|
|
199
198
|
}
|
|
200
|
-
|
|
199
|
+
interface EntityCreatedEvent {
|
|
201
200
|
entity?: string;
|
|
202
201
|
}
|
|
203
|
-
|
|
202
|
+
interface RestoreInfo {
|
|
204
203
|
deletedDate?: Date | null;
|
|
205
204
|
}
|
|
206
|
-
|
|
205
|
+
interface EntityUpdatedEvent {
|
|
207
206
|
/**
|
|
208
207
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
209
208
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -211,32 +210,32 @@ export interface EntityUpdatedEvent {
|
|
|
211
210
|
*/
|
|
212
211
|
currentEntity?: string;
|
|
213
212
|
}
|
|
214
|
-
|
|
213
|
+
interface EntityDeletedEvent {
|
|
215
214
|
/** Entity that was deleted. */
|
|
216
215
|
deletedEntity?: string | null;
|
|
217
216
|
}
|
|
218
|
-
|
|
217
|
+
interface ActionEvent {
|
|
219
218
|
body?: string;
|
|
220
219
|
}
|
|
221
|
-
|
|
220
|
+
interface Empty {
|
|
222
221
|
}
|
|
223
|
-
|
|
222
|
+
interface OldPermissionChangedEvent {
|
|
224
223
|
/** @format GUID */
|
|
225
224
|
appId?: string;
|
|
226
225
|
permission?: Permission;
|
|
227
226
|
action?: ActionWithLiterals;
|
|
228
227
|
}
|
|
229
|
-
|
|
228
|
+
interface Permission {
|
|
230
229
|
permissionId?: string;
|
|
231
230
|
}
|
|
232
|
-
|
|
231
|
+
declare enum Action {
|
|
233
232
|
CREATED = "CREATED",
|
|
234
233
|
UPDATED = "UPDATED",
|
|
235
234
|
DELETED = "DELETED"
|
|
236
235
|
}
|
|
237
236
|
/** @enumType */
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
type ActionWithLiterals = Action | 'CREATED' | 'UPDATED' | 'DELETED';
|
|
238
|
+
interface MessageEnvelope {
|
|
240
239
|
/**
|
|
241
240
|
* App instance ID.
|
|
242
241
|
* @format GUID
|
|
@@ -252,7 +251,7 @@ export interface MessageEnvelope {
|
|
|
252
251
|
/** Stringify payload. */
|
|
253
252
|
data?: string;
|
|
254
253
|
}
|
|
255
|
-
|
|
254
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
256
255
|
/**
|
|
257
256
|
* ID of a site visitor that has not logged in to the site.
|
|
258
257
|
* @format GUID
|
|
@@ -277,7 +276,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
277
276
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
278
277
|
}
|
|
279
278
|
/** @oneof */
|
|
280
|
-
|
|
279
|
+
interface IdentificationDataIdOneOf {
|
|
281
280
|
/**
|
|
282
281
|
* ID of a site visitor that has not logged in to the site.
|
|
283
282
|
* @format GUID
|
|
@@ -299,7 +298,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
299
298
|
*/
|
|
300
299
|
appId?: string;
|
|
301
300
|
}
|
|
302
|
-
|
|
301
|
+
declare enum WebhookIdentityType {
|
|
303
302
|
UNKNOWN = "UNKNOWN",
|
|
304
303
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
305
304
|
MEMBER = "MEMBER",
|
|
@@ -307,8 +306,8 @@ export declare enum WebhookIdentityType {
|
|
|
307
306
|
APP = "APP"
|
|
308
307
|
}
|
|
309
308
|
/** @enumType */
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
310
|
+
interface BaseEventMetadata {
|
|
312
311
|
/**
|
|
313
312
|
* App instance ID.
|
|
314
313
|
* @format GUID
|
|
@@ -322,7 +321,7 @@ export interface BaseEventMetadata {
|
|
|
322
321
|
/** The identification type and identity data. */
|
|
323
322
|
identity?: IdentificationData;
|
|
324
323
|
}
|
|
325
|
-
|
|
324
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
326
325
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
327
326
|
_id?: string;
|
|
328
327
|
/**
|
|
@@ -352,68 +351,14 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
352
351
|
*/
|
|
353
352
|
entityEventSequence?: string | null;
|
|
354
353
|
}
|
|
355
|
-
|
|
354
|
+
interface AppPermissionCreatedEnvelope {
|
|
356
355
|
entity: AppPermission;
|
|
357
356
|
metadata: EventMetadata;
|
|
358
357
|
}
|
|
359
|
-
|
|
360
|
-
* Triggered when a permission is added to an app.
|
|
361
|
-
* @permissionId DEV_CENTER.READ_APP_PERMISSIONS
|
|
362
|
-
* @webhook
|
|
363
|
-
* @eventType wix.devcenter.apps.v1.app_permission_created
|
|
364
|
-
* @slug created
|
|
365
|
-
* @documentationMaturity preview
|
|
366
|
-
*/
|
|
367
|
-
export declare function onAppPermissionCreated(handler: (event: AppPermissionCreatedEnvelope) => void | Promise<void>): void;
|
|
368
|
-
export interface AppPermissionDeletedEnvelope {
|
|
358
|
+
interface AppPermissionDeletedEnvelope {
|
|
369
359
|
metadata: EventMetadata;
|
|
370
360
|
}
|
|
371
|
-
|
|
372
|
-
* Triggered when a permission is deleted from an app.
|
|
373
|
-
* @permissionId DEV_CENTER.READ_APP_PERMISSIONS
|
|
374
|
-
* @webhook
|
|
375
|
-
* @eventType wix.devcenter.apps.v1.app_permission_deleted
|
|
376
|
-
* @slug deleted
|
|
377
|
-
* @documentationMaturity preview
|
|
378
|
-
*/
|
|
379
|
-
export declare function onAppPermissionDeleted(handler: (event: AppPermissionDeletedEnvelope) => void | Promise<void>): void;
|
|
380
|
-
type AppPermissionNonNullablePaths = `appId` | `permission.permissionId`;
|
|
381
|
-
/**
|
|
382
|
-
* Adds a permission to the specified app.
|
|
383
|
-
*
|
|
384
|
-
* When users install your app on a site, it requests this permission.
|
|
385
|
-
* @param appPermission - Permission to add to the specified app.
|
|
386
|
-
* @public
|
|
387
|
-
* @documentationMaturity preview
|
|
388
|
-
* @requiredField appPermission
|
|
389
|
-
* @requiredField appPermission.appId
|
|
390
|
-
* @requiredField appPermission.permission
|
|
391
|
-
* @requiredField appPermission.permission.permissionId
|
|
392
|
-
* @permissionId DEV_CENTER.CREATE_APP_PERMISSION
|
|
393
|
-
* @permissionScope Write Dev Center App Permissions
|
|
394
|
-
* @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
|
|
395
|
-
* @applicableIdentity APP
|
|
396
|
-
* @returns Details of permission that was added to the app.
|
|
397
|
-
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission
|
|
398
|
-
*/
|
|
399
|
-
export declare function createAppPermission(appPermission: NonNullablePaths<AppPermission, `appId` | `permission` | `permission.permissionId`>): Promise<NonNullablePaths<AppPermission, AppPermissionNonNullablePaths>>;
|
|
400
|
-
/**
|
|
401
|
-
* Lists all permissions for the specified app.
|
|
402
|
-
*
|
|
403
|
-
* These are the permissions your app requests when users install it on a site.
|
|
404
|
-
* @param appId - App ID.
|
|
405
|
-
*
|
|
406
|
-
* 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.
|
|
407
|
-
* @public
|
|
408
|
-
* @documentationMaturity preview
|
|
409
|
-
* @requiredField appId
|
|
410
|
-
* @permissionId DEV_CENTER.READ_APP_PERMISSIONS
|
|
411
|
-
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.ListAppPermissions
|
|
412
|
-
*/
|
|
413
|
-
export declare function listAppPermissions(appId: string, options?: ListAppPermissionsOptions): Promise<NonNullablePaths<ListAppPermissionsResponse, {
|
|
414
|
-
[P in AppPermissionNonNullablePaths]: `appPermissions.${number}.${P}`;
|
|
415
|
-
}[AppPermissionNonNullablePaths]>>;
|
|
416
|
-
export interface ListAppPermissionsOptions {
|
|
361
|
+
interface ListAppPermissionsOptions {
|
|
417
362
|
/**
|
|
418
363
|
* 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.
|
|
419
364
|
*
|
|
@@ -423,25 +368,5 @@ export interface ListAppPermissionsOptions {
|
|
|
423
368
|
/** Paging configuration. */
|
|
424
369
|
paging?: CursorPaging;
|
|
425
370
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
*
|
|
429
|
-
* After deleting a permission, your app no longer requests it when users install it on a site. As a result, the app can no longer make calls to APIs that require this permission.
|
|
430
|
-
* @param appId - App ID.
|
|
431
|
-
*
|
|
432
|
-
* 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.
|
|
433
|
-
* @param permissionId - Permission ID.
|
|
434
|
-
*
|
|
435
|
-
* 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).
|
|
436
|
-
* @public
|
|
437
|
-
* @documentationMaturity preview
|
|
438
|
-
* @requiredField appId
|
|
439
|
-
* @requiredField permissionId
|
|
440
|
-
* @permissionId DEV_CENTER.DELETE_APP_PERMISSION
|
|
441
|
-
* @permissionScope Write Dev Center App Permissions
|
|
442
|
-
* @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
|
|
443
|
-
* @applicableIdentity APP
|
|
444
|
-
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.DeleteAppPermission
|
|
445
|
-
*/
|
|
446
|
-
export declare function deleteAppPermission(appId: string, permissionId: string): Promise<void>;
|
|
447
|
-
export {};
|
|
371
|
+
|
|
372
|
+
export { type AppPermission as A, type BaseEventMetadata as B, type CreateAppPermissionRequest as C, type DeleteAppPermissionRequest as D, type EntityCreatedEvent as E, type GetAppPermissionRequest as G, type IdentificationData as I, type ListAppPermissionsOptions as L, type MessageEnvelope as M, type OldPermissionChangedEvent as O, type PermissionActionDomainEventEntity as P, type RestoreInfo as R, type V1Permission as V, WebhookIdentityType as W, type ListAppPermissionsResponse as a, type AppPermissionCreatedEnvelope as b, type AppPermissionDeletedEnvelope as c, ActionType as d, Action as e, type CreateAppPermissionResponse as f, type GetAppPermissionResponse as g, type ListAppPermissionsRequest as h, type CursorPaging as i, type CursorPagingMetadata as j, type Cursors as k, type DeleteAppPermissionResponse as l, type DomainEvent as m, type DomainEventBodyOneOf as n, type EntityUpdatedEvent as o, type EntityDeletedEvent as p, type ActionEvent as q, type Empty as r, type Permission as s, type IdentificationDataIdOneOf as t, type EventMetadata as u };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1 +1,58 @@
|
|
|
1
|
-
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { A as AppPermission, L as ListAppPermissionsOptions, a as ListAppPermissionsResponse, b as AppPermissionCreatedEnvelope, c as AppPermissionDeletedEnvelope } from './devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.js';
|
|
3
|
+
export { e as Action, q as ActionEvent, d as ActionType, B as BaseEventMetadata, C as CreateAppPermissionRequest, f as CreateAppPermissionResponse, i as CursorPaging, j as CursorPagingMetadata, k as Cursors, D as DeleteAppPermissionRequest, l as DeleteAppPermissionResponse, m as DomainEvent, n as DomainEventBodyOneOf, r as Empty, E as EntityCreatedEvent, p as EntityDeletedEvent, o as EntityUpdatedEvent, u as EventMetadata, G as GetAppPermissionRequest, g as GetAppPermissionResponse, I as IdentificationData, t as IdentificationDataIdOneOf, h as ListAppPermissionsRequest, M as MessageEnvelope, O as OldPermissionChangedEvent, s as Permission, P as PermissionActionDomainEventEntity, R as RestoreInfo, V as V1Permission, W as WebhookIdentityType } from './devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.js';
|
|
4
|
+
|
|
5
|
+
declare function createAppPermission$1(httpClient: HttpClient): CreateAppPermissionSignature;
|
|
6
|
+
interface CreateAppPermissionSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Adds a permission to the specified app.
|
|
9
|
+
*
|
|
10
|
+
* When users install your app on a site, it requests this permission.
|
|
11
|
+
* @param - Permission to add to the specified app.
|
|
12
|
+
* @returns Details of permission that was added to the app.
|
|
13
|
+
*/
|
|
14
|
+
(appPermission: AppPermission): Promise<AppPermission>;
|
|
15
|
+
}
|
|
16
|
+
declare function listAppPermissions$1(httpClient: HttpClient): ListAppPermissionsSignature;
|
|
17
|
+
interface ListAppPermissionsSignature {
|
|
18
|
+
/**
|
|
19
|
+
* Lists all permissions for the specified app.
|
|
20
|
+
*
|
|
21
|
+
* These are the permissions your app requests when users install it on a site.
|
|
22
|
+
* @param - App ID.
|
|
23
|
+
*
|
|
24
|
+
* 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
|
+
*/
|
|
26
|
+
(appId: string, options?: ListAppPermissionsOptions | undefined): Promise<ListAppPermissionsResponse>;
|
|
27
|
+
}
|
|
28
|
+
declare function deleteAppPermission$1(httpClient: HttpClient): DeleteAppPermissionSignature;
|
|
29
|
+
interface DeleteAppPermissionSignature {
|
|
30
|
+
/**
|
|
31
|
+
* Deletes a permission from the specified app.
|
|
32
|
+
*
|
|
33
|
+
* After deleting a permission, your app no longer requests it when users install it on a site. As a result, the app can no longer make calls to APIs that require this permission.
|
|
34
|
+
* @param - App ID.
|
|
35
|
+
*
|
|
36
|
+
* 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.
|
|
37
|
+
* @param - Permission ID.
|
|
38
|
+
*
|
|
39
|
+
* 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).
|
|
40
|
+
*/
|
|
41
|
+
(appId: string, permissionId: string): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
declare const onAppPermissionCreated$1: EventDefinition<AppPermissionCreatedEnvelope, "wix.devcenter.apps.v1.app_permission_created">;
|
|
44
|
+
declare const onAppPermissionDeleted$1: EventDefinition<AppPermissionDeletedEnvelope, "wix.devcenter.apps.v1.app_permission_deleted">;
|
|
45
|
+
|
|
46
|
+
declare const createAppPermission: MaybeContext<BuildRESTFunction<typeof createAppPermission$1> & typeof createAppPermission$1>;
|
|
47
|
+
declare const listAppPermissions: MaybeContext<BuildRESTFunction<typeof listAppPermissions$1> & typeof listAppPermissions$1>;
|
|
48
|
+
declare const deleteAppPermission: MaybeContext<BuildRESTFunction<typeof deleteAppPermission$1> & typeof deleteAppPermission$1>;
|
|
49
|
+
/**
|
|
50
|
+
* Triggered when a permission is added to an app.
|
|
51
|
+
*/
|
|
52
|
+
declare const onAppPermissionCreated: BuildEventDefinition<typeof onAppPermissionCreated$1>;
|
|
53
|
+
/**
|
|
54
|
+
* Triggered when a permission is deleted from an app.
|
|
55
|
+
*/
|
|
56
|
+
declare const onAppPermissionDeleted: BuildEventDefinition<typeof onAppPermissionDeleted$1>;
|
|
57
|
+
|
|
58
|
+
export { AppPermission, AppPermissionCreatedEnvelope, AppPermissionDeletedEnvelope, ListAppPermissionsOptions, ListAppPermissionsResponse, createAppPermission, deleteAppPermission, listAppPermissions, onAppPermissionCreated, onAppPermissionDeleted };
|