@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,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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/** Creates new AppPermission */
|
|
3
|
+
export declare function createAppPermission(payload: object): RequestOptionsFactory<any>;
|
|
4
|
+
/** List AppPermissions by App ID */
|
|
5
|
+
export declare function listAppPermissions(payload: object): RequestOptionsFactory<any>;
|
|
6
|
+
/** Delete AppPermission by App ID and Permission ID */
|
|
7
|
+
export declare function deleteAppPermission(payload: object): RequestOptionsFactory<any>;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
|
|
2
|
+
import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
3
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
4
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
|
+
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
6
|
+
function resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl(opts) {
|
|
7
|
+
const domainToMappings = {
|
|
8
|
+
'dev._base_domain_': [
|
|
9
|
+
{
|
|
10
|
+
srcPath: '/app-permissions-service',
|
|
11
|
+
destPath: '',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
'manage._base_domain_': [
|
|
15
|
+
{
|
|
16
|
+
srcPath: '/_api/app-permissions-service',
|
|
17
|
+
destPath: '',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
'www._base_domain_': [
|
|
21
|
+
{
|
|
22
|
+
srcPath: '/_api/app-permissions-service',
|
|
23
|
+
destPath: '',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
};
|
|
27
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
28
|
+
}
|
|
29
|
+
const PACKAGE_NAME = '@wix/auto_sdk_app-management_app-permissions';
|
|
30
|
+
/** Creates new AppPermission */
|
|
31
|
+
export function createAppPermission(payload) {
|
|
32
|
+
function __createAppPermission({ host }) {
|
|
33
|
+
const serializedData = transformPaths(payload, [
|
|
34
|
+
{
|
|
35
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
36
|
+
paths: [
|
|
37
|
+
{ path: 'appPermission.createdDate' },
|
|
38
|
+
{ path: 'appPermission.updatedDate' },
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
]);
|
|
42
|
+
const metadata = {
|
|
43
|
+
entityFqdn: 'wix.devcenter.apps.v1.app_permission',
|
|
44
|
+
method: 'POST',
|
|
45
|
+
methodFqn: 'wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission',
|
|
46
|
+
packageName: PACKAGE_NAME,
|
|
47
|
+
url: resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl({
|
|
48
|
+
protoPath: '/v1/app-permissions',
|
|
49
|
+
data: serializedData,
|
|
50
|
+
host,
|
|
51
|
+
}),
|
|
52
|
+
data: serializedData,
|
|
53
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
54
|
+
{
|
|
55
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
56
|
+
paths: [
|
|
57
|
+
{ path: 'appPermission.createdDate' },
|
|
58
|
+
{ path: 'appPermission.updatedDate' },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
]),
|
|
62
|
+
};
|
|
63
|
+
return metadata;
|
|
64
|
+
}
|
|
65
|
+
return __createAppPermission;
|
|
66
|
+
}
|
|
67
|
+
/** List AppPermissions by App ID */
|
|
68
|
+
export function listAppPermissions(payload) {
|
|
69
|
+
function __listAppPermissions({ host }) {
|
|
70
|
+
const metadata = {
|
|
71
|
+
entityFqdn: 'wix.devcenter.apps.v1.app_permission',
|
|
72
|
+
method: 'GET',
|
|
73
|
+
methodFqn: 'wix.devcenter.apps.permissions.v1.AppPermissionsService.ListAppPermissions',
|
|
74
|
+
packageName: PACKAGE_NAME,
|
|
75
|
+
url: resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl({
|
|
76
|
+
protoPath: '/v1/app-permissions',
|
|
77
|
+
data: payload,
|
|
78
|
+
host,
|
|
79
|
+
}),
|
|
80
|
+
params: toURLSearchParams(payload),
|
|
81
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
82
|
+
{
|
|
83
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
84
|
+
paths: [
|
|
85
|
+
{ path: 'appPermissions.createdDate' },
|
|
86
|
+
{ path: 'appPermissions.updatedDate' },
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
]),
|
|
90
|
+
};
|
|
91
|
+
return metadata;
|
|
92
|
+
}
|
|
93
|
+
return __listAppPermissions;
|
|
94
|
+
}
|
|
95
|
+
/** Delete AppPermission by App ID and Permission ID */
|
|
96
|
+
export function deleteAppPermission(payload) {
|
|
97
|
+
function __deleteAppPermission({ host }) {
|
|
98
|
+
const metadata = {
|
|
99
|
+
entityFqdn: 'wix.devcenter.apps.v1.app_permission',
|
|
100
|
+
method: 'DELETE',
|
|
101
|
+
methodFqn: 'wix.devcenter.apps.permissions.v1.AppPermissionsService.DeleteAppPermission',
|
|
102
|
+
packageName: PACKAGE_NAME,
|
|
103
|
+
url: resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl({
|
|
104
|
+
protoPath: '/v1/app-permissions',
|
|
105
|
+
data: payload,
|
|
106
|
+
host,
|
|
107
|
+
}),
|
|
108
|
+
params: toURLSearchParams(payload),
|
|
109
|
+
};
|
|
110
|
+
return metadata;
|
|
111
|
+
}
|
|
112
|
+
return __deleteAppPermission;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=devcenter-apps-v1-app-permission-app-permissions.http.js.map
|
|
@@ -0,0 +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":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as ambassadorWixDevcenterAppsV1AppPermissionTypes from './devcenter-apps-v1-app-permission-app-permissions.types.js';
|
|
2
|
+
import * as ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes from './devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function createAppPermission(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes.CreateAppPermissionRequest, ambassadorWixDevcenterAppsV1AppPermissionTypes.CreateAppPermissionRequest, ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes.CreateAppPermissionResponse & ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes.CreateAppPermissionResponseNonNullableFields, ambassadorWixDevcenterAppsV1AppPermissionTypes.CreateAppPermissionResponse & ambassadorWixDevcenterAppsV1AppPermissionTypes.CreateAppPermissionResponseNonNullableFields>;
|
|
14
|
+
export declare function listAppPermissions(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes.ListAppPermissionsRequest, ambassadorWixDevcenterAppsV1AppPermissionTypes.ListAppPermissionsRequest, ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes.ListAppPermissionsResponse & ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes.ListAppPermissionsResponseNonNullableFields, ambassadorWixDevcenterAppsV1AppPermissionTypes.ListAppPermissionsResponse & ambassadorWixDevcenterAppsV1AppPermissionTypes.ListAppPermissionsResponseNonNullableFields>;
|
|
15
|
+
export declare function deleteAppPermission(): __PublicMethodMetaInfo<'DELETE', {}, ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes.DeleteAppPermissionRequest, ambassadorWixDevcenterAppsV1AppPermissionTypes.DeleteAppPermissionRequest, ambassadorWixDevcenterAppsV1AppPermissionUniversalTypes.DeleteAppPermissionResponse, ambassadorWixDevcenterAppsV1AppPermissionTypes.DeleteAppPermissionResponse>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as ambassadorWixDevcenterAppsV1AppPermission from './devcenter-apps-v1-app-permission-app-permissions.http.js';
|
|
2
|
+
export function createAppPermission() {
|
|
3
|
+
const payload = {};
|
|
4
|
+
const getRequestOptions = ambassadorWixDevcenterAppsV1AppPermission.createAppPermission(payload);
|
|
5
|
+
const getUrl = (context) => {
|
|
6
|
+
const { url } = getRequestOptions(context);
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl,
|
|
11
|
+
httpMethod: 'POST',
|
|
12
|
+
path: '/v1/app-permissions',
|
|
13
|
+
pathParams: {},
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function listAppPermissions() {
|
|
21
|
+
const payload = {};
|
|
22
|
+
const getRequestOptions = ambassadorWixDevcenterAppsV1AppPermission.listAppPermissions(payload);
|
|
23
|
+
const getUrl = (context) => {
|
|
24
|
+
const { url } = getRequestOptions(context);
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
getUrl,
|
|
29
|
+
httpMethod: 'GET',
|
|
30
|
+
path: '/v1/app-permissions',
|
|
31
|
+
pathParams: {},
|
|
32
|
+
__requestType: null,
|
|
33
|
+
__originalRequestType: null,
|
|
34
|
+
__responseType: null,
|
|
35
|
+
__originalResponseType: null,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function deleteAppPermission() {
|
|
39
|
+
const payload = {};
|
|
40
|
+
const getRequestOptions = ambassadorWixDevcenterAppsV1AppPermission.deleteAppPermission(payload);
|
|
41
|
+
const getUrl = (context) => {
|
|
42
|
+
const { url } = getRequestOptions(context);
|
|
43
|
+
return url;
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
getUrl,
|
|
47
|
+
httpMethod: 'DELETE',
|
|
48
|
+
path: '/v1/app-permissions',
|
|
49
|
+
pathParams: {},
|
|
50
|
+
__requestType: null,
|
|
51
|
+
__originalRequestType: null,
|
|
52
|
+
__responseType: null,
|
|
53
|
+
__originalResponseType: null,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=devcenter-apps-v1-app-permission-app-permissions.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.meta.js","sourceRoot":"","sources":["../../../../src/devcenter-apps-v1-app-permission-app-permissions.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,yCAAyC,MAAM,4DAA4D,CAAC;AAsBxH,MAAM,UAAU,mBAAmB;IAUjC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,yCAAyC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB;IAUhC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,yCAAyC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB;IAQjC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,yCAAyC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { AppPermission, AppPermissionCreatedEnvelope, AppPermissionNonNullableFields, AppPermissionPermissionActionDomainEventEntityEnvelope, DeleteAppPermissionOptions, ListAppPermissionsOptions, ListAppPermissionsResponse, ListAppPermissionsResponseNonNullableFields } from './devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createAppPermission(httpClient: HttpClient): CreateAppPermissionSignature;
|
|
7
|
+
interface CreateAppPermissionSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates new AppPermission
|
|
10
|
+
* @param - AppPermission to be created
|
|
11
|
+
* @returns The created AppPermission
|
|
12
|
+
*/
|
|
13
|
+
(appPermission: AppPermission): Promise<AppPermission & AppPermissionNonNullableFields>;
|
|
14
|
+
}
|
|
15
|
+
export declare function listAppPermissions(httpClient: HttpClient): ListAppPermissionsSignature;
|
|
16
|
+
interface ListAppPermissionsSignature {
|
|
17
|
+
/**
|
|
18
|
+
* List AppPermissions by App ID
|
|
19
|
+
* @param - App ID
|
|
20
|
+
*/
|
|
21
|
+
(appId: string, options?: ListAppPermissionsOptions | undefined): Promise<ListAppPermissionsResponse & ListAppPermissionsResponseNonNullableFields>;
|
|
22
|
+
}
|
|
23
|
+
export declare function deleteAppPermission(httpClient: HttpClient): DeleteAppPermissionSignature;
|
|
24
|
+
interface DeleteAppPermissionSignature {
|
|
25
|
+
/**
|
|
26
|
+
* Delete AppPermission by App ID and Permission ID
|
|
27
|
+
* @param - App ID
|
|
28
|
+
*/
|
|
29
|
+
(appId: string, options: DeleteAppPermissionOptions): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
export declare const onAppPermissionCreated: EventDefinition<AppPermissionCreatedEnvelope, "wix.devcenter.apps.v1.app_permission_created">;
|
|
32
|
+
export declare const onAppPermissionPermissionActionDomainEventEntity: EventDefinition<AppPermissionPermissionActionDomainEventEntityEnvelope, "wix.devcenter.apps.v1.app_permission_permission_action_domain_event_entity">;
|
|
33
|
+
export { Action, ActionEvent, ActionType, AppPermission, AppPermissionCreatedEnvelope, AppPermissionNonNullableFields, AppPermissionPermissionActionDomainEventEntityEnvelope, BaseEventMetadata, CreateAppPermissionRequest, CreateAppPermissionResponse, CreateAppPermissionResponseNonNullableFields, CursorPaging, CursorPagingMetadata, Cursors, DeleteAppPermissionOptions, DeleteAppPermissionRequest, DeleteAppPermissionResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetAppPermissionRequest, GetAppPermissionResponse, IdentificationData, IdentificationDataIdOneOf, ListAppPermissionsOptions, ListAppPermissionsRequest, ListAppPermissionsResponse, ListAppPermissionsResponseNonNullableFields, MessageEnvelope, OldPermissionChangedEvent, Permission, PermissionActionDomainEventEntity, RestoreInfo, V1Permission, WebhookIdentityType, } from './devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
2
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
3
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
4
|
+
import { EventDefinition } from '@wix/sdk-types';
|
|
5
|
+
import { createAppPermission as universalCreateAppPermission, deleteAppPermission as universalDeleteAppPermission, listAppPermissions as universalListAppPermissions, } from './devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
6
|
+
export const __metadata = { PACKAGE_NAME: '@wix/app-management' };
|
|
7
|
+
export function createAppPermission(httpClient) {
|
|
8
|
+
return (appPermission) => universalCreateAppPermission(appPermission,
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
{ httpClient });
|
|
11
|
+
}
|
|
12
|
+
export function listAppPermissions(httpClient) {
|
|
13
|
+
return (appId, options) => universalListAppPermissions(appId, options,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
export function deleteAppPermission(httpClient) {
|
|
18
|
+
return (appId, options) => universalDeleteAppPermission(appId, options,
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
{ httpClient });
|
|
21
|
+
}
|
|
22
|
+
export const onAppPermissionCreated = EventDefinition('wix.devcenter.apps.v1.app_permission_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
23
|
+
{
|
|
24
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
25
|
+
paths: [
|
|
26
|
+
{ path: 'entity.createdDate' },
|
|
27
|
+
{ path: 'entity.updatedDate' },
|
|
28
|
+
{ path: 'metadata.eventTime' },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
])))();
|
|
32
|
+
export const onAppPermissionPermissionActionDomainEventEntity = EventDefinition('wix.devcenter.apps.v1.app_permission_permission_action_domain_event_entity', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
33
|
+
{
|
|
34
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
35
|
+
paths: [
|
|
36
|
+
{ path: 'data.appPermission.createdDate' },
|
|
37
|
+
{ path: 'data.appPermission.updatedDate' },
|
|
38
|
+
{ path: 'metadata.eventTime' },
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
])))();
|
|
42
|
+
export { Action, ActionType, WebhookIdentityType, } from './devcenter-apps-v1-app-permission-app-permissions.universal.js';
|
|
43
|
+
//# sourceMappingURL=devcenter-apps-v1-app-permission-app-permissions.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devcenter-apps-v1-app-permission-app-permissions.public.js","sourceRoot":"","sources":["../../../../src/devcenter-apps-v1-app-permission-app-permissions.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EASL,mBAAmB,IAAI,4BAA4B,EACnD,mBAAmB,IAAI,4BAA4B,EACnD,kBAAkB,IAAI,2BAA2B,GAClD,MAAM,iEAAiE,CAAC;AAEzE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAElE,MAAM,UAAU,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,aAA4B,EAAE,EAAE,CACtC,4BAA4B,CAC1B,aAAa;IACb,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,MAAM,UAAU,kBAAkB,CAChC,UAAsB;IAEtB,OAAO,CAAC,KAAa,EAAE,OAAmC,EAAE,EAAE,CAC5D,2BAA2B,CACzB,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAYD,MAAM,UAAU,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,KAAa,EAAE,OAAmC,EAAE,EAAE,CAC5D,4BAA4B,CAC1B,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAUD,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CACnD,8CAA8C,EAC9C,IAAI,EACJ,CAAC,KAAmC,EAAE,EAAE,CACtC,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC9B,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAAgC,CAAC;AAClC,MAAM,CAAC,MAAM,gDAAgD,GAAG,eAAe,CAC7E,4EAA4E,EAC5E,IAAI,EACJ,CAAC,KAA6D,EAAE,EAAE,CAChE,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE;YACL,EAAE,IAAI,EAAE,gCAAgC,EAAE;YAC1C,EAAE,IAAI,EAAE,gCAAgC,EAAE;YAC1C,EAAE,IAAI,EAAE,oBAAoB,EAAE;SAC/B;KACF;CACF,CAAC,CACH,CACJ,EAA0D,CAAC;AAE5D,OAAO,EACL,MAAM,EAEN,UAAU,EAoCV,mBAAmB,GACpB,MAAM,iEAAiE,CAAC"}
|
|
@@ -0,0 +1,306 @@
|
|
|
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
|
+
entityAsJson?: string;
|
|
186
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
187
|
+
restoreInfo?: RestoreInfo;
|
|
188
|
+
}
|
|
189
|
+
export interface RestoreInfo {
|
|
190
|
+
deletedDate?: Date | null;
|
|
191
|
+
}
|
|
192
|
+
export interface EntityUpdatedEvent {
|
|
193
|
+
/**
|
|
194
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
195
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
196
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
197
|
+
*/
|
|
198
|
+
currentEntityAsJson?: string;
|
|
199
|
+
}
|
|
200
|
+
export interface EntityDeletedEvent {
|
|
201
|
+
/** Entity that was deleted */
|
|
202
|
+
deletedEntityAsJson?: string | null;
|
|
203
|
+
}
|
|
204
|
+
export interface ActionEvent {
|
|
205
|
+
bodyAsJson?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface Empty {
|
|
208
|
+
}
|
|
209
|
+
export interface OldPermissionChangedEvent {
|
|
210
|
+
/** @format GUID */
|
|
211
|
+
appId?: string;
|
|
212
|
+
permission?: Permission;
|
|
213
|
+
action?: Action;
|
|
214
|
+
}
|
|
215
|
+
export interface Permission {
|
|
216
|
+
permissionId?: string;
|
|
217
|
+
}
|
|
218
|
+
export declare enum Action {
|
|
219
|
+
CREATED = "CREATED",
|
|
220
|
+
UPDATED = "UPDATED",
|
|
221
|
+
DELETED = "DELETED"
|
|
222
|
+
}
|
|
223
|
+
export interface MessageEnvelope {
|
|
224
|
+
/**
|
|
225
|
+
* App instance ID.
|
|
226
|
+
* @format GUID
|
|
227
|
+
*/
|
|
228
|
+
instanceId?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* Event type.
|
|
231
|
+
* @maxLength 150
|
|
232
|
+
*/
|
|
233
|
+
eventType?: string;
|
|
234
|
+
/** The identification type and identity data. */
|
|
235
|
+
identity?: IdentificationData;
|
|
236
|
+
/** Stringify payload. */
|
|
237
|
+
data?: string;
|
|
238
|
+
}
|
|
239
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
240
|
+
/**
|
|
241
|
+
* ID of a site visitor that has not logged in to the site.
|
|
242
|
+
* @format GUID
|
|
243
|
+
*/
|
|
244
|
+
anonymousVisitorId?: string;
|
|
245
|
+
/**
|
|
246
|
+
* ID of a site visitor that has logged in to the site.
|
|
247
|
+
* @format GUID
|
|
248
|
+
*/
|
|
249
|
+
memberId?: string;
|
|
250
|
+
/**
|
|
251
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
252
|
+
* @format GUID
|
|
253
|
+
*/
|
|
254
|
+
wixUserId?: string;
|
|
255
|
+
/**
|
|
256
|
+
* ID of an app.
|
|
257
|
+
* @format GUID
|
|
258
|
+
*/
|
|
259
|
+
appId?: string;
|
|
260
|
+
/** @readonly */
|
|
261
|
+
identityType?: WebhookIdentityType;
|
|
262
|
+
}
|
|
263
|
+
/** @oneof */
|
|
264
|
+
export interface IdentificationDataIdOneOf {
|
|
265
|
+
/**
|
|
266
|
+
* ID of a site visitor that has not logged in to the site.
|
|
267
|
+
* @format GUID
|
|
268
|
+
*/
|
|
269
|
+
anonymousVisitorId?: string;
|
|
270
|
+
/**
|
|
271
|
+
* ID of a site visitor that has logged in to the site.
|
|
272
|
+
* @format GUID
|
|
273
|
+
*/
|
|
274
|
+
memberId?: string;
|
|
275
|
+
/**
|
|
276
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
277
|
+
* @format GUID
|
|
278
|
+
*/
|
|
279
|
+
wixUserId?: string;
|
|
280
|
+
/**
|
|
281
|
+
* ID of an app.
|
|
282
|
+
* @format GUID
|
|
283
|
+
*/
|
|
284
|
+
appId?: string;
|
|
285
|
+
}
|
|
286
|
+
export declare enum WebhookIdentityType {
|
|
287
|
+
UNKNOWN = "UNKNOWN",
|
|
288
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
289
|
+
MEMBER = "MEMBER",
|
|
290
|
+
WIX_USER = "WIX_USER",
|
|
291
|
+
APP = "APP"
|
|
292
|
+
}
|
|
293
|
+
interface V1PermissionNonNullableFields {
|
|
294
|
+
permissionId: string;
|
|
295
|
+
}
|
|
296
|
+
interface AppPermissionNonNullableFields {
|
|
297
|
+
appId: string;
|
|
298
|
+
permission?: V1PermissionNonNullableFields;
|
|
299
|
+
}
|
|
300
|
+
export interface CreateAppPermissionResponseNonNullableFields {
|
|
301
|
+
appPermission?: AppPermissionNonNullableFields;
|
|
302
|
+
}
|
|
303
|
+
export interface ListAppPermissionsResponseNonNullableFields {
|
|
304
|
+
appPermissions: AppPermissionNonNullableFields[];
|
|
305
|
+
}
|
|
306
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export var ActionType;
|
|
2
|
+
(function (ActionType) {
|
|
3
|
+
ActionType["APP_PERMISSION_DELETED"] = "APP_PERMISSION_DELETED";
|
|
4
|
+
})(ActionType || (ActionType = {}));
|
|
5
|
+
export var Action;
|
|
6
|
+
(function (Action) {
|
|
7
|
+
Action["CREATED"] = "CREATED";
|
|
8
|
+
Action["UPDATED"] = "UPDATED";
|
|
9
|
+
Action["DELETED"] = "DELETED";
|
|
10
|
+
})(Action || (Action = {}));
|
|
11
|
+
export var WebhookIdentityType;
|
|
12
|
+
(function (WebhookIdentityType) {
|
|
13
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
14
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
15
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
16
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
17
|
+
WebhookIdentityType["APP"] = "APP";
|
|
18
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
19
|
+
//# sourceMappingURL=devcenter-apps-v1-app-permission-app-permissions.types.js.map
|
|
@@ -0,0 +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":"AAgJA,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"}
|