@wix/auto_sdk_app-management_app-permissions 1.0.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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +14 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +20 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +1 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +7 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +120 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +1 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +15 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +85 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +1 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +33 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +52 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +1 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +306 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js +22 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +1 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts +428 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +162 -0
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +14 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +14 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +1 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +7 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +114 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +1 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +15 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +56 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +1 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +33 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +43 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +1 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +306 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js +19 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +1 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts +428 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +133 -0
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +14 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +20 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +1 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +7 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +120 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +1 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +15 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +85 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +1 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +33 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +52 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +1 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +306 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js +22 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +1 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts +428 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +162 -0
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +14 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +14 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +1 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +7 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +114 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +1 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +15 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +56 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +1 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +33 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +43 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +1 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +306 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js +19 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +1 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts +428 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +133 -0
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
/** AppPermission is the main entity of AppPermissionsService that define relation between app and permission */
|
|
2
|
+
export interface AppPermission {
|
|
3
|
+
/**
|
|
4
|
+
* App ID
|
|
5
|
+
* @format GUID
|
|
6
|
+
*/
|
|
7
|
+
appId?: string;
|
|
8
|
+
/** Permission object */
|
|
9
|
+
permission?: V1Permission;
|
|
10
|
+
/**
|
|
11
|
+
* Represents the time this AppPermission was created
|
|
12
|
+
* @readonly
|
|
13
|
+
*/
|
|
14
|
+
_createdDate?: Date | null;
|
|
15
|
+
/**
|
|
16
|
+
* Represents the time this AppPermission was updated
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
_updatedDate?: Date | null;
|
|
20
|
+
}
|
|
21
|
+
export interface V1Permission {
|
|
22
|
+
/**
|
|
23
|
+
* Permission ID
|
|
24
|
+
* @minLength 1
|
|
25
|
+
* @maxLength 164
|
|
26
|
+
*/
|
|
27
|
+
permissionId?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface CreateAppPermissionRequest {
|
|
30
|
+
/** AppPermission to be created */
|
|
31
|
+
appPermission: AppPermission;
|
|
32
|
+
}
|
|
33
|
+
export interface CreateAppPermissionResponse {
|
|
34
|
+
/** The created AppPermission */
|
|
35
|
+
appPermission?: AppPermission;
|
|
36
|
+
}
|
|
37
|
+
export interface GetAppPermissionRequest {
|
|
38
|
+
/**
|
|
39
|
+
* App ID
|
|
40
|
+
* @format GUID
|
|
41
|
+
*/
|
|
42
|
+
appId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Permission ID
|
|
45
|
+
* @minLength 1
|
|
46
|
+
* @maxLength 164
|
|
47
|
+
*/
|
|
48
|
+
permissionId?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface GetAppPermissionResponse {
|
|
51
|
+
/** The retrieved AppPermission */
|
|
52
|
+
appPermission?: AppPermission;
|
|
53
|
+
}
|
|
54
|
+
export interface ListAppPermissionsRequest {
|
|
55
|
+
/**
|
|
56
|
+
* App ID
|
|
57
|
+
* @format GUID
|
|
58
|
+
*/
|
|
59
|
+
appId: string;
|
|
60
|
+
/** Fetch consistent data */
|
|
61
|
+
consistent?: boolean;
|
|
62
|
+
/** Paging */
|
|
63
|
+
paging?: CursorPaging;
|
|
64
|
+
}
|
|
65
|
+
export interface CursorPaging {
|
|
66
|
+
/**
|
|
67
|
+
* Maximum number of items to return in the results.
|
|
68
|
+
* @max 100
|
|
69
|
+
*/
|
|
70
|
+
limit?: number | null;
|
|
71
|
+
/**
|
|
72
|
+
* Pointer to the next or previous page in the list of results.
|
|
73
|
+
*
|
|
74
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
75
|
+
* Not relevant for the first request.
|
|
76
|
+
* @maxLength 16000
|
|
77
|
+
*/
|
|
78
|
+
cursor?: string | null;
|
|
79
|
+
}
|
|
80
|
+
export interface ListAppPermissionsResponse {
|
|
81
|
+
/** AppPermissions list */
|
|
82
|
+
appPermissions?: AppPermission[];
|
|
83
|
+
/** Paging */
|
|
84
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
85
|
+
}
|
|
86
|
+
export interface CursorPagingMetadata {
|
|
87
|
+
/** Number of items returned in current page. */
|
|
88
|
+
count?: number | null;
|
|
89
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
90
|
+
cursors?: Cursors;
|
|
91
|
+
/**
|
|
92
|
+
* Whether there are more pages to retrieve following the current page.
|
|
93
|
+
*
|
|
94
|
+
* + `true`: Another page of results can be retrieved.
|
|
95
|
+
* + `false`: This is the last page.
|
|
96
|
+
*/
|
|
97
|
+
hasNext?: boolean | null;
|
|
98
|
+
}
|
|
99
|
+
export interface Cursors {
|
|
100
|
+
/**
|
|
101
|
+
* Cursor string pointing to the next page in the list of results.
|
|
102
|
+
* @maxLength 16000
|
|
103
|
+
*/
|
|
104
|
+
next?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Cursor pointing to the previous page in the list of results.
|
|
107
|
+
* @maxLength 16000
|
|
108
|
+
*/
|
|
109
|
+
prev?: string | null;
|
|
110
|
+
}
|
|
111
|
+
export interface DeleteAppPermissionRequest {
|
|
112
|
+
/**
|
|
113
|
+
* App ID
|
|
114
|
+
* @format GUID
|
|
115
|
+
*/
|
|
116
|
+
appId: string;
|
|
117
|
+
/**
|
|
118
|
+
* Permission ID
|
|
119
|
+
* @minLength 1
|
|
120
|
+
* @maxLength 164
|
|
121
|
+
*/
|
|
122
|
+
permissionId: string;
|
|
123
|
+
}
|
|
124
|
+
export interface DeleteAppPermissionResponse {
|
|
125
|
+
}
|
|
126
|
+
export interface PermissionActionDomainEventEntity {
|
|
127
|
+
/** The permission that had an event */
|
|
128
|
+
appPermission?: AppPermission;
|
|
129
|
+
/** The action which happened */
|
|
130
|
+
actionType?: ActionType;
|
|
131
|
+
}
|
|
132
|
+
export declare enum ActionType {
|
|
133
|
+
APP_PERMISSION_DELETED = "APP_PERMISSION_DELETED"
|
|
134
|
+
}
|
|
135
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
136
|
+
createdEvent?: EntityCreatedEvent;
|
|
137
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
138
|
+
deletedEvent?: EntityDeletedEvent;
|
|
139
|
+
actionEvent?: ActionEvent;
|
|
140
|
+
/**
|
|
141
|
+
* Unique event ID.
|
|
142
|
+
* Allows clients to ignore duplicate webhooks.
|
|
143
|
+
*/
|
|
144
|
+
_id?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Assumes actions are also always typed to an entity_type
|
|
147
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
148
|
+
*/
|
|
149
|
+
entityFqdn?: string;
|
|
150
|
+
/**
|
|
151
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
152
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
153
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
154
|
+
*/
|
|
155
|
+
slug?: string;
|
|
156
|
+
/** ID of the entity associated with the event. */
|
|
157
|
+
entityId?: string;
|
|
158
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
159
|
+
eventTime?: Date | null;
|
|
160
|
+
/**
|
|
161
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
162
|
+
* (for example, GDPR).
|
|
163
|
+
*/
|
|
164
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
165
|
+
/** If present, indicates the action that triggered the event. */
|
|
166
|
+
originatedFrom?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
169
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
170
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
171
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
172
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
173
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
174
|
+
*/
|
|
175
|
+
entityEventSequence?: string | null;
|
|
176
|
+
}
|
|
177
|
+
/** @oneof */
|
|
178
|
+
export interface DomainEventBodyOneOf {
|
|
179
|
+
createdEvent?: EntityCreatedEvent;
|
|
180
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
181
|
+
deletedEvent?: EntityDeletedEvent;
|
|
182
|
+
actionEvent?: ActionEvent;
|
|
183
|
+
}
|
|
184
|
+
export interface EntityCreatedEvent {
|
|
185
|
+
entity?: string;
|
|
186
|
+
}
|
|
187
|
+
export interface RestoreInfo {
|
|
188
|
+
deletedDate?: Date | null;
|
|
189
|
+
}
|
|
190
|
+
export interface EntityUpdatedEvent {
|
|
191
|
+
/**
|
|
192
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
193
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
194
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
195
|
+
*/
|
|
196
|
+
currentEntity?: string;
|
|
197
|
+
}
|
|
198
|
+
export interface EntityDeletedEvent {
|
|
199
|
+
/** Entity that was deleted */
|
|
200
|
+
deletedEntity?: string | null;
|
|
201
|
+
}
|
|
202
|
+
export interface ActionEvent {
|
|
203
|
+
body?: string;
|
|
204
|
+
}
|
|
205
|
+
export interface Empty {
|
|
206
|
+
}
|
|
207
|
+
export interface OldPermissionChangedEvent {
|
|
208
|
+
/** @format GUID */
|
|
209
|
+
appId?: string;
|
|
210
|
+
permission?: Permission;
|
|
211
|
+
action?: Action;
|
|
212
|
+
}
|
|
213
|
+
export interface Permission {
|
|
214
|
+
permissionId?: string;
|
|
215
|
+
}
|
|
216
|
+
export declare enum Action {
|
|
217
|
+
CREATED = "CREATED",
|
|
218
|
+
UPDATED = "UPDATED",
|
|
219
|
+
DELETED = "DELETED"
|
|
220
|
+
}
|
|
221
|
+
export interface MessageEnvelope {
|
|
222
|
+
/**
|
|
223
|
+
* App instance ID.
|
|
224
|
+
* @format GUID
|
|
225
|
+
*/
|
|
226
|
+
instanceId?: string | null;
|
|
227
|
+
/**
|
|
228
|
+
* Event type.
|
|
229
|
+
* @maxLength 150
|
|
230
|
+
*/
|
|
231
|
+
eventType?: string;
|
|
232
|
+
/** The identification type and identity data. */
|
|
233
|
+
identity?: IdentificationData;
|
|
234
|
+
/** Stringify payload. */
|
|
235
|
+
data?: string;
|
|
236
|
+
}
|
|
237
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
238
|
+
/**
|
|
239
|
+
* ID of a site visitor that has not logged in to the site.
|
|
240
|
+
* @format GUID
|
|
241
|
+
*/
|
|
242
|
+
anonymousVisitorId?: string;
|
|
243
|
+
/**
|
|
244
|
+
* ID of a site visitor that has logged in to the site.
|
|
245
|
+
* @format GUID
|
|
246
|
+
*/
|
|
247
|
+
memberId?: string;
|
|
248
|
+
/**
|
|
249
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
250
|
+
* @format GUID
|
|
251
|
+
*/
|
|
252
|
+
wixUserId?: string;
|
|
253
|
+
/**
|
|
254
|
+
* ID of an app.
|
|
255
|
+
* @format GUID
|
|
256
|
+
*/
|
|
257
|
+
appId?: string;
|
|
258
|
+
/** @readonly */
|
|
259
|
+
identityType?: WebhookIdentityType;
|
|
260
|
+
}
|
|
261
|
+
/** @oneof */
|
|
262
|
+
export interface IdentificationDataIdOneOf {
|
|
263
|
+
/**
|
|
264
|
+
* ID of a site visitor that has not logged in to the site.
|
|
265
|
+
* @format GUID
|
|
266
|
+
*/
|
|
267
|
+
anonymousVisitorId?: string;
|
|
268
|
+
/**
|
|
269
|
+
* ID of a site visitor that has logged in to the site.
|
|
270
|
+
* @format GUID
|
|
271
|
+
*/
|
|
272
|
+
memberId?: string;
|
|
273
|
+
/**
|
|
274
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
275
|
+
* @format GUID
|
|
276
|
+
*/
|
|
277
|
+
wixUserId?: string;
|
|
278
|
+
/**
|
|
279
|
+
* ID of an app.
|
|
280
|
+
* @format GUID
|
|
281
|
+
*/
|
|
282
|
+
appId?: string;
|
|
283
|
+
}
|
|
284
|
+
export declare enum WebhookIdentityType {
|
|
285
|
+
UNKNOWN = "UNKNOWN",
|
|
286
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
287
|
+
MEMBER = "MEMBER",
|
|
288
|
+
WIX_USER = "WIX_USER",
|
|
289
|
+
APP = "APP"
|
|
290
|
+
}
|
|
291
|
+
interface V1PermissionNonNullableFields {
|
|
292
|
+
permissionId: string;
|
|
293
|
+
}
|
|
294
|
+
export interface AppPermissionNonNullableFields {
|
|
295
|
+
appId: string;
|
|
296
|
+
permission?: V1PermissionNonNullableFields;
|
|
297
|
+
}
|
|
298
|
+
export interface CreateAppPermissionResponseNonNullableFields {
|
|
299
|
+
appPermission?: AppPermissionNonNullableFields;
|
|
300
|
+
}
|
|
301
|
+
export interface ListAppPermissionsResponseNonNullableFields {
|
|
302
|
+
appPermissions: AppPermissionNonNullableFields[];
|
|
303
|
+
}
|
|
304
|
+
export interface BaseEventMetadata {
|
|
305
|
+
/**
|
|
306
|
+
* App instance ID.
|
|
307
|
+
* @format GUID
|
|
308
|
+
*/
|
|
309
|
+
instanceId?: string | null;
|
|
310
|
+
/**
|
|
311
|
+
* Event type.
|
|
312
|
+
* @maxLength 150
|
|
313
|
+
*/
|
|
314
|
+
eventType?: string;
|
|
315
|
+
/** The identification type and identity data. */
|
|
316
|
+
identity?: IdentificationData;
|
|
317
|
+
}
|
|
318
|
+
export interface EventMetadata extends BaseEventMetadata {
|
|
319
|
+
/**
|
|
320
|
+
* Unique event ID.
|
|
321
|
+
* Allows clients to ignore duplicate webhooks.
|
|
322
|
+
*/
|
|
323
|
+
_id?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Assumes actions are also always typed to an entity_type
|
|
326
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
327
|
+
*/
|
|
328
|
+
entityFqdn?: string;
|
|
329
|
+
/**
|
|
330
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
331
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
332
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
333
|
+
*/
|
|
334
|
+
slug?: string;
|
|
335
|
+
/** ID of the entity associated with the event. */
|
|
336
|
+
entityId?: string;
|
|
337
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
338
|
+
eventTime?: Date | null;
|
|
339
|
+
/**
|
|
340
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
341
|
+
* (for example, GDPR).
|
|
342
|
+
*/
|
|
343
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
344
|
+
/** If present, indicates the action that triggered the event. */
|
|
345
|
+
originatedFrom?: string | null;
|
|
346
|
+
/**
|
|
347
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
348
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
349
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
350
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
351
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
352
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
353
|
+
*/
|
|
354
|
+
entityEventSequence?: string | null;
|
|
355
|
+
}
|
|
356
|
+
export interface AppPermissionCreatedEnvelope {
|
|
357
|
+
entity: AppPermission;
|
|
358
|
+
metadata: EventMetadata;
|
|
359
|
+
}
|
|
360
|
+
/** @webhook
|
|
361
|
+
* @eventType wix.devcenter.apps.v1.app_permission_created
|
|
362
|
+
* @serviceIdentifier wix.devcenter.apps.permissions.v1.AppPermissionsService
|
|
363
|
+
* @slug created
|
|
364
|
+
* @documentationMaturity preview
|
|
365
|
+
*/
|
|
366
|
+
export declare function onAppPermissionCreated(handler: (event: AppPermissionCreatedEnvelope) => void | Promise<void>): void;
|
|
367
|
+
export interface AppPermissionPermissionActionDomainEventEntityEnvelope {
|
|
368
|
+
data: PermissionActionDomainEventEntity;
|
|
369
|
+
metadata: EventMetadata;
|
|
370
|
+
}
|
|
371
|
+
/** @webhook
|
|
372
|
+
* @eventType wix.devcenter.apps.v1.app_permission_permission_action_domain_event_entity
|
|
373
|
+
* @serviceIdentifier wix.devcenter.apps.permissions.v1.AppPermissionsService
|
|
374
|
+
* @slug permission_action_domain_event_entity
|
|
375
|
+
* @documentationMaturity preview
|
|
376
|
+
*/
|
|
377
|
+
export declare function onAppPermissionPermissionActionDomainEventEntity(handler: (event: AppPermissionPermissionActionDomainEventEntityEnvelope) => void | Promise<void>): void;
|
|
378
|
+
/**
|
|
379
|
+
* Creates new AppPermission
|
|
380
|
+
* @param appPermission - AppPermission to be created
|
|
381
|
+
* @public
|
|
382
|
+
* @documentationMaturity preview
|
|
383
|
+
* @requiredField appPermission
|
|
384
|
+
* @requiredField appPermission.appId
|
|
385
|
+
* @requiredField appPermission.permission
|
|
386
|
+
* @requiredField appPermission.permission.permissionId
|
|
387
|
+
* @permissionId DEV_CENTER.CREATE_APP_PERMISSION
|
|
388
|
+
* @returns The created AppPermission
|
|
389
|
+
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission
|
|
390
|
+
*/
|
|
391
|
+
export declare function createAppPermission(appPermission: AppPermission): Promise<AppPermission & AppPermissionNonNullableFields>;
|
|
392
|
+
/**
|
|
393
|
+
* List AppPermissions by App ID
|
|
394
|
+
* @param appId - App ID
|
|
395
|
+
* @public
|
|
396
|
+
* @documentationMaturity preview
|
|
397
|
+
* @requiredField appId
|
|
398
|
+
* @permissionId DEV_CENTER.READ_APP_PERMISSIONS
|
|
399
|
+
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.ListAppPermissions
|
|
400
|
+
*/
|
|
401
|
+
export declare function listAppPermissions(appId: string, options?: ListAppPermissionsOptions): Promise<ListAppPermissionsResponse & ListAppPermissionsResponseNonNullableFields>;
|
|
402
|
+
export interface ListAppPermissionsOptions {
|
|
403
|
+
/** Fetch consistent data */
|
|
404
|
+
consistent?: boolean;
|
|
405
|
+
/** Paging */
|
|
406
|
+
paging?: CursorPaging;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Delete AppPermission by App ID and Permission ID
|
|
410
|
+
* @param appId - App ID
|
|
411
|
+
* @public
|
|
412
|
+
* @documentationMaturity preview
|
|
413
|
+
* @requiredField appId
|
|
414
|
+
* @requiredField options
|
|
415
|
+
* @requiredField options.permissionId
|
|
416
|
+
* @permissionId DEV_CENTER.DELETE_APP_PERMISSION
|
|
417
|
+
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.DeleteAppPermission
|
|
418
|
+
*/
|
|
419
|
+
export declare function deleteAppPermission(appId: string, options: DeleteAppPermissionOptions): Promise<void>;
|
|
420
|
+
export interface DeleteAppPermissionOptions {
|
|
421
|
+
/**
|
|
422
|
+
* Permission ID
|
|
423
|
+
* @minLength 1
|
|
424
|
+
* @maxLength 164
|
|
425
|
+
*/
|
|
426
|
+
permissionId: string;
|
|
427
|
+
}
|
|
428
|
+
export {};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.deleteAppPermission = exports.listAppPermissions = exports.createAppPermission = exports.WebhookIdentityType = exports.Action = exports.ActionType = void 0;
|
|
27
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
29
|
+
const ambassadorWixDevcenterAppsV1AppPermission = __importStar(require("./devcenter-apps-v1-app-permission-app-permissions.http.js"));
|
|
30
|
+
var ActionType;
|
|
31
|
+
(function (ActionType) {
|
|
32
|
+
ActionType["APP_PERMISSION_DELETED"] = "APP_PERMISSION_DELETED";
|
|
33
|
+
})(ActionType || (exports.ActionType = ActionType = {}));
|
|
34
|
+
var Action;
|
|
35
|
+
(function (Action) {
|
|
36
|
+
Action["CREATED"] = "CREATED";
|
|
37
|
+
Action["UPDATED"] = "UPDATED";
|
|
38
|
+
Action["DELETED"] = "DELETED";
|
|
39
|
+
})(Action || (exports.Action = Action = {}));
|
|
40
|
+
var WebhookIdentityType;
|
|
41
|
+
(function (WebhookIdentityType) {
|
|
42
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
43
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
44
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
45
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
46
|
+
WebhookIdentityType["APP"] = "APP";
|
|
47
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
48
|
+
/**
|
|
49
|
+
* Creates new AppPermission
|
|
50
|
+
* @param appPermission - AppPermission to be created
|
|
51
|
+
* @public
|
|
52
|
+
* @documentationMaturity preview
|
|
53
|
+
* @requiredField appPermission
|
|
54
|
+
* @requiredField appPermission.appId
|
|
55
|
+
* @requiredField appPermission.permission
|
|
56
|
+
* @requiredField appPermission.permission.permissionId
|
|
57
|
+
* @permissionId DEV_CENTER.CREATE_APP_PERMISSION
|
|
58
|
+
* @returns The created AppPermission
|
|
59
|
+
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission
|
|
60
|
+
*/
|
|
61
|
+
async function createAppPermission(appPermission) {
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
64
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
65
|
+
appPermission: appPermission,
|
|
66
|
+
});
|
|
67
|
+
const reqOpts = ambassadorWixDevcenterAppsV1AppPermission.createAppPermission(payload);
|
|
68
|
+
sideEffects?.onSiteCall?.();
|
|
69
|
+
try {
|
|
70
|
+
const result = await httpClient.request(reqOpts);
|
|
71
|
+
sideEffects?.onSuccess?.(result);
|
|
72
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.appPermission;
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
76
|
+
spreadPathsToArguments: {},
|
|
77
|
+
explicitPathsToArguments: { appPermission: '$[0]' },
|
|
78
|
+
singleArgumentUnchanged: false,
|
|
79
|
+
}, ['appPermission']);
|
|
80
|
+
sideEffects?.onError?.(err);
|
|
81
|
+
throw transformedError;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.createAppPermission = createAppPermission;
|
|
85
|
+
/**
|
|
86
|
+
* List AppPermissions by App ID
|
|
87
|
+
* @param appId - App ID
|
|
88
|
+
* @public
|
|
89
|
+
* @documentationMaturity preview
|
|
90
|
+
* @requiredField appId
|
|
91
|
+
* @permissionId DEV_CENTER.READ_APP_PERMISSIONS
|
|
92
|
+
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.ListAppPermissions
|
|
93
|
+
*/
|
|
94
|
+
async function listAppPermissions(appId, options) {
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
97
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
98
|
+
appId: appId,
|
|
99
|
+
consistent: options?.consistent,
|
|
100
|
+
paging: options?.paging,
|
|
101
|
+
});
|
|
102
|
+
const reqOpts = ambassadorWixDevcenterAppsV1AppPermission.listAppPermissions(payload);
|
|
103
|
+
sideEffects?.onSiteCall?.();
|
|
104
|
+
try {
|
|
105
|
+
const result = await httpClient.request(reqOpts);
|
|
106
|
+
sideEffects?.onSuccess?.(result);
|
|
107
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
108
|
+
}
|
|
109
|
+
catch (err) {
|
|
110
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
111
|
+
spreadPathsToArguments: {},
|
|
112
|
+
explicitPathsToArguments: {
|
|
113
|
+
appId: '$[0]',
|
|
114
|
+
consistent: '$[1].consistent',
|
|
115
|
+
paging: '$[1].paging',
|
|
116
|
+
},
|
|
117
|
+
singleArgumentUnchanged: false,
|
|
118
|
+
}, ['appId', 'options']);
|
|
119
|
+
sideEffects?.onError?.(err);
|
|
120
|
+
throw transformedError;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.listAppPermissions = listAppPermissions;
|
|
124
|
+
/**
|
|
125
|
+
* Delete AppPermission by App ID and Permission ID
|
|
126
|
+
* @param appId - App ID
|
|
127
|
+
* @public
|
|
128
|
+
* @documentationMaturity preview
|
|
129
|
+
* @requiredField appId
|
|
130
|
+
* @requiredField options
|
|
131
|
+
* @requiredField options.permissionId
|
|
132
|
+
* @permissionId DEV_CENTER.DELETE_APP_PERMISSION
|
|
133
|
+
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.DeleteAppPermission
|
|
134
|
+
*/
|
|
135
|
+
async function deleteAppPermission(appId, options) {
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
138
|
+
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
139
|
+
appId: appId,
|
|
140
|
+
permissionId: options?.permissionId,
|
|
141
|
+
});
|
|
142
|
+
const reqOpts = ambassadorWixDevcenterAppsV1AppPermission.deleteAppPermission(payload);
|
|
143
|
+
sideEffects?.onSiteCall?.();
|
|
144
|
+
try {
|
|
145
|
+
const result = await httpClient.request(reqOpts);
|
|
146
|
+
sideEffects?.onSuccess?.(result);
|
|
147
|
+
}
|
|
148
|
+
catch (err) {
|
|
149
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
150
|
+
spreadPathsToArguments: {},
|
|
151
|
+
explicitPathsToArguments: {
|
|
152
|
+
appId: '$[0]',
|
|
153
|
+
permissionId: '$[1].permissionId',
|
|
154
|
+
},
|
|
155
|
+
singleArgumentUnchanged: false,
|
|
156
|
+
}, ['appId', 'options']);
|
|
157
|
+
sideEffects?.onError?.(err);
|
|
158
|
+
throw transformedError;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.deleteAppPermission = deleteAppPermission;
|
|
162
|
+
//# sourceMappingURL=devcenter-apps-v1-app-permission-app-permissions.universal.js.map
|
|
@@ -0,0 +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":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/devcenter-apps-v1-app-permission-app-permissions.context.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,qEAAqE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/devcenter-apps-v1-app-permission-app-permissions.meta.js';
|
package/build/es/meta.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,gEAAgE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createAppPermission as publicCreateAppPermission, listAppPermissions as publicListAppPermissions, deleteAppPermission as publicDeleteAppPermission } from './devcenter-apps-v1-app-permission-app-permissions.public.js';
|
|
2
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
+
import { onAppPermissionCreated as publicOnAppPermissionCreated } from './devcenter-apps-v1-app-permission-app-permissions.public.js';
|
|
5
|
+
import { onAppPermissionPermissionActionDomainEventEntity as publicOnAppPermissionPermissionActionDomainEventEntity } from './devcenter-apps-v1-app-permission-app-permissions.public.js';
|
|
6
|
+
export declare const createAppPermission: MaybeContext<BuildRESTFunction<typeof publicCreateAppPermission> & typeof publicCreateAppPermission>;
|
|
7
|
+
export declare const listAppPermissions: MaybeContext<BuildRESTFunction<typeof publicListAppPermissions> & typeof publicListAppPermissions>;
|
|
8
|
+
export declare const deleteAppPermission: MaybeContext<BuildRESTFunction<typeof publicDeleteAppPermission> & typeof publicDeleteAppPermission>;
|
|
9
|
+
/** */
|
|
10
|
+
export declare const onAppPermissionCreated: ReturnType<typeof createEventModule<typeof publicOnAppPermissionCreated>>;
|
|
11
|
+
/** */
|
|
12
|
+
export declare const onAppPermissionPermissionActionDomainEventEntity: ReturnType<typeof createEventModule<typeof publicOnAppPermissionPermissionActionDomainEventEntity>>;
|
|
13
|
+
export { ActionType, Action, WebhookIdentityType, } from './devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
14
|
+
export { AppPermission, V1Permission, CreateAppPermissionRequest, CreateAppPermissionResponse, GetAppPermissionRequest, GetAppPermissionResponse, ListAppPermissionsRequest, CursorPaging, ListAppPermissionsResponse, CursorPagingMetadata, Cursors, DeleteAppPermissionRequest, DeleteAppPermissionResponse, PermissionActionDomainEventEntity, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, OldPermissionChangedEvent, Permission, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, AppPermissionNonNullableFields, CreateAppPermissionResponseNonNullableFields, ListAppPermissionsResponseNonNullableFields, BaseEventMetadata, EventMetadata, AppPermissionCreatedEnvelope, AppPermissionPermissionActionDomainEventEntityEnvelope, ListAppPermissionsOptions, DeleteAppPermissionOptions, } from './devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createAppPermission as publicCreateAppPermission, listAppPermissions as publicListAppPermissions, deleteAppPermission as publicDeleteAppPermission, } from './devcenter-apps-v1-app-permission-app-permissions.public.js';
|
|
2
|
+
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
4
|
+
import { onAppPermissionCreated as publicOnAppPermissionCreated } from './devcenter-apps-v1-app-permission-app-permissions.public.js';
|
|
5
|
+
import { onAppPermissionPermissionActionDomainEventEntity as publicOnAppPermissionPermissionActionDomainEventEntity } from './devcenter-apps-v1-app-permission-app-permissions.public.js';
|
|
6
|
+
export const createAppPermission = /*#__PURE__*/ createRESTModule(publicCreateAppPermission);
|
|
7
|
+
export const listAppPermissions = /*#__PURE__*/ createRESTModule(publicListAppPermissions);
|
|
8
|
+
export const deleteAppPermission = /*#__PURE__*/ createRESTModule(publicDeleteAppPermission);
|
|
9
|
+
/** */
|
|
10
|
+
export const onAppPermissionCreated = createEventModule(publicOnAppPermissionCreated);
|
|
11
|
+
/** */
|
|
12
|
+
export const onAppPermissionPermissionActionDomainEventEntity = createEventModule(publicOnAppPermissionPermissionActionDomainEventEntity);
|
|
13
|
+
export { ActionType, Action, WebhookIdentityType, } from './devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
14
|
+
//# sourceMappingURL=devcenter-apps-v1-app-permission-app-permissions.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.context.js","sourceRoot":"","sources":["../../../src/devcenter-apps-v1-app-permission-app-permissions.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,IAAI,yBAAyB,EAChD,kBAAkB,IAAI,wBAAwB,EAC9C,mBAAmB,IAAI,yBAAyB,GACjD,MAAM,8DAA8D,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AACtI,OAAO,EAAE,gDAAgD,IAAI,sDAAsD,EAAE,MAAM,8DAA8D,CAAC;AAE1L,MAAM,CAAC,MAAM,mBAAmB,GAG5B,aAAa,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,kBAAkB,GAG3B,aAAa,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,mBAAmB,GAG5B,aAAa,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;AAC9D,MAAM;AACN,MAAM,CAAC,MAAM,sBAAsB,GAE/B,iBAAiB,CAAC,4BAA4B,CAAC,CAAC;AACpD,MAAM;AACN,MAAM,CAAC,MAAM,gDAAgD,GAIzD,iBAAiB,CAAC,sDAAsD,CAAC,CAAC;AAE9E,OAAO,EACL,UAAU,EACV,MAAM,EACN,mBAAmB,GACpB,MAAM,iEAAiE,CAAC"}
|