@wix/auth-management 1.0.15 → 1.0.17
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/context.d.ts +1 -1
- package/build/cjs/context.js +1 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -1
- package/build/es/context.js +1 -1
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/package.json +11 -9
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -28
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/headless-v1-o-auth-app.context.d.ts +0 -6
- package/build/cjs/src/headless-v1-o-auth-app.context.js +0 -53
- package/build/cjs/src/headless-v1-o-auth-app.context.js.map +0 -1
- package/build/cjs/src/headless-v1-o-auth-app.http.d.ts +0 -35
- package/build/cjs/src/headless-v1-o-auth-app.http.js +0 -179
- package/build/cjs/src/headless-v1-o-auth-app.http.js.map +0 -1
- package/build/cjs/src/headless-v1-o-auth-app.meta.d.ts +0 -20
- package/build/cjs/src/headless-v1-o-auth-app.meta.js +0 -104
- package/build/cjs/src/headless-v1-o-auth-app.meta.js.map +0 -1
- package/build/cjs/src/headless-v1-o-auth-app.public.d.ts +0 -21
- package/build/cjs/src/headless-v1-o-auth-app.public.js +0 -40
- package/build/cjs/src/headless-v1-o-auth-app.public.js.map +0 -1
- package/build/cjs/src/headless-v1-o-auth-app.types.d.ts +0 -532
- package/build/cjs/src/headless-v1-o-auth-app.types.js +0 -100
- package/build/cjs/src/headless-v1-o-auth-app.types.js.map +0 -1
- package/build/cjs/src/headless-v1-o-auth-app.universal.d.ts +0 -697
- package/build/cjs/src/headless-v1-o-auth-app.universal.js +0 -405
- package/build/cjs/src/headless-v1-o-auth-app.universal.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/src/headless-v1-o-auth-app.context.d.ts +0 -6
- package/build/es/src/headless-v1-o-auth-app.context.js +0 -46
- package/build/es/src/headless-v1-o-auth-app.context.js.map +0 -1
- package/build/es/src/headless-v1-o-auth-app.http.d.ts +0 -35
- package/build/es/src/headless-v1-o-auth-app.http.js +0 -172
- package/build/es/src/headless-v1-o-auth-app.http.js.map +0 -1
- package/build/es/src/headless-v1-o-auth-app.meta.d.ts +0 -20
- package/build/es/src/headless-v1-o-auth-app.meta.js +0 -74
- package/build/es/src/headless-v1-o-auth-app.meta.js.map +0 -1
- package/build/es/src/headless-v1-o-auth-app.public.d.ts +0 -21
- package/build/es/src/headless-v1-o-auth-app.public.js +0 -25
- package/build/es/src/headless-v1-o-auth-app.public.js.map +0 -1
- package/build/es/src/headless-v1-o-auth-app.types.d.ts +0 -532
- package/build/es/src/headless-v1-o-auth-app.types.js +0 -97
- package/build/es/src/headless-v1-o-auth-app.types.js.map +0 -1
- package/build/es/src/headless-v1-o-auth-app.universal.d.ts +0 -697
- package/build/es/src/headless-v1-o-auth-app.universal.js +0 -375
- package/build/es/src/headless-v1-o-auth-app.universal.js.map +0 -1
package/build/cjs/context.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps/context';
|
package/build/cjs/context.js
CHANGED
|
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.oAuthApps = void 0;
|
|
27
|
-
exports.oAuthApps = __importStar(require("
|
|
27
|
+
exports.oAuthApps = __importStar(require("@wix/auth-management_o-auth-apps/context"));
|
|
28
28
|
//# sourceMappingURL=context.js.map
|
package/build/cjs/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sFAAsE"}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps';
|
package/build/cjs/index.js
CHANGED
|
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.oAuthApps = void 0;
|
|
27
|
-
exports.oAuthApps = __importStar(require("
|
|
27
|
+
exports.oAuthApps = __importStar(require("@wix/auth-management_o-auth-apps"));
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAA8D"}
|
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps/meta';
|
package/build/cjs/meta.js
CHANGED
|
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.oAuthApps = void 0;
|
|
27
|
-
exports.oAuthApps = __importStar(require("
|
|
27
|
+
exports.oAuthApps = __importStar(require("@wix/auth-management_o-auth-apps/meta"));
|
|
28
28
|
//# sourceMappingURL=meta.js.map
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAmE"}
|
package/build/es/context.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps/context';
|
package/build/es/context.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps/context';
|
|
2
2
|
//# sourceMappingURL=context.js.map
|
package/build/es/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,0CAA0C,CAAC"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps';
|
package/build/es/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAC"}
|
package/build/es/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps/meta';
|
package/build/es/meta.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as oAuthApps from '
|
|
1
|
+
export * as oAuthApps from '@wix/auth-management_o-auth-apps/meta';
|
|
2
2
|
//# sourceMappingURL=meta.js.map
|
package/build/es/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,uCAAuC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auth-management",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -16,14 +16,11 @@
|
|
|
16
16
|
"context"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@wix/
|
|
20
|
-
"@wix/sdk-types": "^1.5.9",
|
|
21
|
-
"@wix/sdk-runtime": "^0.2.7",
|
|
22
|
-
"@wix/motion-edm-autogen-query-wrapper": "^1.0.37"
|
|
19
|
+
"@wix/auth-management_o-auth-apps": "1.0.3"
|
|
23
20
|
},
|
|
24
21
|
"devDependencies": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
22
|
+
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
23
|
+
"typescript": "^5.3.2"
|
|
27
24
|
},
|
|
28
25
|
"scripts": {
|
|
29
26
|
"build": "tsc -b tsconfig.json tsconfig.esm.json",
|
|
@@ -31,9 +28,14 @@
|
|
|
31
28
|
},
|
|
32
29
|
"wix": {
|
|
33
30
|
"artifact": {
|
|
31
|
+
"groupId": "com.wixpress.public-sdk-autogen",
|
|
34
32
|
"artifactId": "auth-management-public-sdk-autogen",
|
|
35
|
-
"
|
|
33
|
+
"isRootPublicSdk": true
|
|
34
|
+
},
|
|
35
|
+
"sdkDependency": {
|
|
36
|
+
"fqdnNamespace": "",
|
|
37
|
+
"fqdn": ""
|
|
36
38
|
}
|
|
37
39
|
},
|
|
38
|
-
"falconPackageHash": "
|
|
40
|
+
"falconPackageHash": "a84544739b92020f37afceee0237fc6e77f1af12c0e2c276ac141839"
|
|
39
41
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as oAuthApps from './src/headless-v1-o-auth-app.universal';
|
|
@@ -1,28 +0,0 @@
|
|
|
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.oAuthApps = void 0;
|
|
27
|
-
exports.oAuthApps = __importStar(require("./src/headless-v1-o-auth-app.universal"));
|
|
28
|
-
//# sourceMappingURL=index.typings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oFAAoE"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { createOAuthApp as publicCreateOAuthApp, getOAuthApp as publicGetOAuthApp, updateOAuthApp as publicUpdateOAuthApp, queryOAuthApps as publicQueryOAuthApps } from './headless-v1-o-auth-app.public';
|
|
2
|
-
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
-
export declare const createOAuthApp: BuildRESTFunction<typeof publicCreateOAuthApp>;
|
|
4
|
-
export declare const getOAuthApp: BuildRESTFunction<typeof publicGetOAuthApp>;
|
|
5
|
-
export declare const updateOAuthApp: BuildRESTFunction<typeof publicUpdateOAuthApp>;
|
|
6
|
-
export declare const queryOAuthApps: BuildRESTFunction<typeof publicQueryOAuthApps>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.queryOAuthApps = exports.updateOAuthApp = exports.getOAuthApp = exports.createOAuthApp = void 0;
|
|
4
|
-
const headless_v1_o_auth_app_public_1 = require("./headless-v1-o-auth-app.public");
|
|
5
|
-
const createOAuthApp = (...args) => {
|
|
6
|
-
var _a;
|
|
7
|
-
// @ts-expect-error
|
|
8
|
-
if (!globalThis.__wix_context__) {
|
|
9
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
10
|
-
}
|
|
11
|
-
// @ts-expect-error
|
|
12
|
-
return globalThis.__wix_context__
|
|
13
|
-
.initWixModules(headless_v1_o_auth_app_public_1.createOAuthApp, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
14
|
-
.apply(undefined, args);
|
|
15
|
-
};
|
|
16
|
-
exports.createOAuthApp = createOAuthApp;
|
|
17
|
-
const getOAuthApp = (...args) => {
|
|
18
|
-
var _a;
|
|
19
|
-
// @ts-expect-error
|
|
20
|
-
if (!globalThis.__wix_context__) {
|
|
21
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
22
|
-
}
|
|
23
|
-
// @ts-expect-error
|
|
24
|
-
return globalThis.__wix_context__
|
|
25
|
-
.initWixModules(headless_v1_o_auth_app_public_1.getOAuthApp, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
26
|
-
.apply(undefined, args);
|
|
27
|
-
};
|
|
28
|
-
exports.getOAuthApp = getOAuthApp;
|
|
29
|
-
const updateOAuthApp = (...args) => {
|
|
30
|
-
var _a;
|
|
31
|
-
// @ts-expect-error
|
|
32
|
-
if (!globalThis.__wix_context__) {
|
|
33
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
34
|
-
}
|
|
35
|
-
// @ts-expect-error
|
|
36
|
-
return globalThis.__wix_context__
|
|
37
|
-
.initWixModules(headless_v1_o_auth_app_public_1.updateOAuthApp, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
38
|
-
.apply(undefined, args);
|
|
39
|
-
};
|
|
40
|
-
exports.updateOAuthApp = updateOAuthApp;
|
|
41
|
-
const queryOAuthApps = (...args) => {
|
|
42
|
-
var _a;
|
|
43
|
-
// @ts-expect-error
|
|
44
|
-
if (!globalThis.__wix_context__) {
|
|
45
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
46
|
-
}
|
|
47
|
-
// @ts-expect-error
|
|
48
|
-
return globalThis.__wix_context__
|
|
49
|
-
.initWixModules(headless_v1_o_auth_app_public_1.queryOAuthApps, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
50
|
-
.apply(undefined, args);
|
|
51
|
-
};
|
|
52
|
-
exports.queryOAuthApps = queryOAuthApps;
|
|
53
|
-
//# sourceMappingURL=headless-v1-o-auth-app.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-o-auth-app.context.js","sourceRoot":"","sources":["../../../src/headless-v1-o-auth-app.context.ts"],"names":[],"mappings":";;;AAAA,mFAKyC;AAGlC,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,8CAAoB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACzE,KAAK,CAAC,SAAS,EAAE,IAAI,CAA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AC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SACzE,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,cAAc,kBAazB"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new OAuth app for a Wix Headless client.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* An OAuth app authorizes an external client app or site, on any platform, to authenticate with a Wix site or project and manage its data.
|
|
7
|
-
*
|
|
8
|
-
* > **Note:** The OAuth app secret is returned only when creating the OAuth app, and can't be retrieved later. Store the secret in a secure location.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createOAuthApp(payload: object): RequestOptionsFactory<any>;
|
|
11
|
-
/** Retrieves an OAuth app by ID. */
|
|
12
|
-
export declare function getOAuthApp(payload: object): RequestOptionsFactory<any>;
|
|
13
|
-
/**
|
|
14
|
-
* Updates an OAuth app.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* Only fields provided in `mask` are updated.
|
|
18
|
-
*
|
|
19
|
-
* You can update the following fields:
|
|
20
|
-
* + `name`
|
|
21
|
-
* + `description`
|
|
22
|
-
* + `allowedDomain`
|
|
23
|
-
* + `loginUrl`
|
|
24
|
-
* + `logoutUrl`
|
|
25
|
-
*/
|
|
26
|
-
export declare function updateOAuthApp(payload: object): RequestOptionsFactory<any>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves a list of OAuth apps, given the provided paging, filtering, and sorting.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* Query OAuth Apps runs with these defaults, which you can override:
|
|
32
|
-
* + Results are sorted by `id` in descending order.
|
|
33
|
-
* + `paging.offset` is `0`.
|
|
34
|
-
*/
|
|
35
|
-
export declare function queryOAuthApps(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.queryOAuthApps = exports.updateOAuthApp = exports.getOAuthApp = exports.createOAuthApp = void 0;
|
|
4
|
-
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
5
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
-
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
8
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
9
|
-
const metro_runtime_2 = require("@wix/metro-runtime");
|
|
10
|
-
function resolveWixHeadlessV1OAuthAppServiceUrl(opts) {
|
|
11
|
-
const domainToMappings = {
|
|
12
|
-
'manage._base_domain_': [
|
|
13
|
-
{
|
|
14
|
-
srcPath: '/oauth-app-service',
|
|
15
|
-
destPath: '',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
srcPath: '/oauth-app',
|
|
19
|
-
destPath: '',
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
'www.wixapis.com': [
|
|
23
|
-
{
|
|
24
|
-
srcPath: '/oauth-app',
|
|
25
|
-
destPath: '',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
'api._api_base_domain_': [
|
|
29
|
-
{
|
|
30
|
-
srcPath: '/oauth-app-service',
|
|
31
|
-
destPath: '',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
};
|
|
35
|
-
return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Creates a new OAuth app for a Wix Headless client.
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* An OAuth app authorizes an external client app or site, on any platform, to authenticate with a Wix site or project and manage its data.
|
|
42
|
-
*
|
|
43
|
-
* > **Note:** The OAuth app secret is returned only when creating the OAuth app, and can't be retrieved later. Store the secret in a secure location.
|
|
44
|
-
*/
|
|
45
|
-
function createOAuthApp(payload) {
|
|
46
|
-
function __createOAuthApp({ host }) {
|
|
47
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
48
|
-
{
|
|
49
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
50
|
-
paths: [{ path: 'oAuthApp.createdDate' }],
|
|
51
|
-
},
|
|
52
|
-
]);
|
|
53
|
-
const metadata = {
|
|
54
|
-
entityFqdn: 'wix.headless.v1.o_auth_app',
|
|
55
|
-
method: 'POST',
|
|
56
|
-
methodFqn: 'wix.headless.v1.OAuthAppService.CreateOAuthApp',
|
|
57
|
-
url: resolveWixHeadlessV1OAuthAppServiceUrl({
|
|
58
|
-
protoPath: '/v1/oauth-apps',
|
|
59
|
-
data: serializedData,
|
|
60
|
-
host,
|
|
61
|
-
}),
|
|
62
|
-
data: serializedData,
|
|
63
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
64
|
-
{
|
|
65
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
66
|
-
paths: [{ path: 'oAuthApp.createdDate' }],
|
|
67
|
-
},
|
|
68
|
-
]),
|
|
69
|
-
};
|
|
70
|
-
return metadata;
|
|
71
|
-
}
|
|
72
|
-
return __createOAuthApp;
|
|
73
|
-
}
|
|
74
|
-
exports.createOAuthApp = createOAuthApp;
|
|
75
|
-
/** Retrieves an OAuth app by ID. */
|
|
76
|
-
function getOAuthApp(payload) {
|
|
77
|
-
function __getOAuthApp({ host }) {
|
|
78
|
-
const metadata = {
|
|
79
|
-
entityFqdn: 'wix.headless.v1.o_auth_app',
|
|
80
|
-
method: 'GET',
|
|
81
|
-
methodFqn: 'wix.headless.v1.OAuthAppService.GetOAuthApp',
|
|
82
|
-
url: resolveWixHeadlessV1OAuthAppServiceUrl({
|
|
83
|
-
protoPath: '/v1/oauth-apps/{oAuthAppId}',
|
|
84
|
-
data: payload,
|
|
85
|
-
host,
|
|
86
|
-
}),
|
|
87
|
-
params: (0, metro_runtime_1.toURLSearchParams)(payload),
|
|
88
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
89
|
-
{
|
|
90
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
91
|
-
paths: [{ path: 'oAuthApp.createdDate' }],
|
|
92
|
-
},
|
|
93
|
-
]),
|
|
94
|
-
};
|
|
95
|
-
return metadata;
|
|
96
|
-
}
|
|
97
|
-
return __getOAuthApp;
|
|
98
|
-
}
|
|
99
|
-
exports.getOAuthApp = getOAuthApp;
|
|
100
|
-
/**
|
|
101
|
-
* Updates an OAuth app.
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* Only fields provided in `mask` are updated.
|
|
105
|
-
*
|
|
106
|
-
* You can update the following fields:
|
|
107
|
-
* + `name`
|
|
108
|
-
* + `description`
|
|
109
|
-
* + `allowedDomain`
|
|
110
|
-
* + `loginUrl`
|
|
111
|
-
* + `logoutUrl`
|
|
112
|
-
*/
|
|
113
|
-
function updateOAuthApp(payload) {
|
|
114
|
-
function __updateOAuthApp({ host }) {
|
|
115
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
116
|
-
{
|
|
117
|
-
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
118
|
-
paths: [{ path: 'mask' }],
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
122
|
-
paths: [{ path: 'oAuthApp.createdDate' }],
|
|
123
|
-
},
|
|
124
|
-
]);
|
|
125
|
-
const metadata = {
|
|
126
|
-
entityFqdn: 'wix.headless.v1.o_auth_app',
|
|
127
|
-
method: 'PATCH',
|
|
128
|
-
methodFqn: 'wix.headless.v1.OAuthAppService.UpdateOAuthApp',
|
|
129
|
-
url: resolveWixHeadlessV1OAuthAppServiceUrl({
|
|
130
|
-
protoPath: '/v1/oauth-apps/{oAuthApp.id}',
|
|
131
|
-
data: serializedData,
|
|
132
|
-
host,
|
|
133
|
-
}),
|
|
134
|
-
data: serializedData,
|
|
135
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
136
|
-
{
|
|
137
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
138
|
-
paths: [{ path: 'oAuthApp.createdDate' }],
|
|
139
|
-
},
|
|
140
|
-
]),
|
|
141
|
-
};
|
|
142
|
-
return metadata;
|
|
143
|
-
}
|
|
144
|
-
return __updateOAuthApp;
|
|
145
|
-
}
|
|
146
|
-
exports.updateOAuthApp = updateOAuthApp;
|
|
147
|
-
/**
|
|
148
|
-
* Retrieves a list of OAuth apps, given the provided paging, filtering, and sorting.
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
* Query OAuth Apps runs with these defaults, which you can override:
|
|
152
|
-
* + Results are sorted by `id` in descending order.
|
|
153
|
-
* + `paging.offset` is `0`.
|
|
154
|
-
*/
|
|
155
|
-
function queryOAuthApps(payload) {
|
|
156
|
-
function __queryOAuthApps({ host }) {
|
|
157
|
-
const metadata = {
|
|
158
|
-
entityFqdn: 'wix.headless.v1.o_auth_app',
|
|
159
|
-
method: 'POST',
|
|
160
|
-
methodFqn: 'wix.headless.v1.OAuthAppService.QueryOAuthApps',
|
|
161
|
-
url: resolveWixHeadlessV1OAuthAppServiceUrl({
|
|
162
|
-
protoPath: '/v1/oauth-apps/query',
|
|
163
|
-
data: payload,
|
|
164
|
-
host,
|
|
165
|
-
}),
|
|
166
|
-
data: payload,
|
|
167
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
168
|
-
{
|
|
169
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
170
|
-
paths: [{ path: 'oAuthApps.createdDate' }],
|
|
171
|
-
},
|
|
172
|
-
]),
|
|
173
|
-
};
|
|
174
|
-
return metadata;
|
|
175
|
-
}
|
|
176
|
-
return __queryOAuthApps;
|
|
177
|
-
}
|
|
178
|
-
exports.queryOAuthApps = queryOAuthApps;
|
|
179
|
-
//# sourceMappingURL=headless-v1-o-auth-app.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-o-auth-app.http.js","sourceRoot":"","sources":["../../../src/headless-v1-o-auth-app.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,sDAAgD;AAIhD,SAAS,sCAAsC,CAC7C,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,YAAY;gBACrB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,YAAY;gBACrB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,OAAe;IAC5C,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,cAAc,GAAG,IAAA,gCAAc,EAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,gDAAoC;gBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;aAC1C;SACF,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4BAA4B;YACxC,MAAM,EAAE,M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C;oBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;iBAC3C;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAzBD,wCAyBC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixHeadlessV1OAuthAppTypes from './headless-v1-o-auth-app.types';
|
|
2
|
-
import * as ambassadorWixHeadlessV1OAuthAppUniversalTypes from './headless-v1-o-auth-app.universal';
|
|
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 createOAuthApp(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixHeadlessV1OAuthAppUniversalTypes.CreateOAuthAppRequest, ambassadorWixHeadlessV1OAuthAppTypes.CreateOAuthAppRequest, ambassadorWixHeadlessV1OAuthAppUniversalTypes.CreateOAuthAppResponse & ambassadorWixHeadlessV1OAuthAppUniversalTypes.CreateOAuthAppResponseNonNullableFields, ambassadorWixHeadlessV1OAuthAppTypes.CreateOAuthAppResponse & ambassadorWixHeadlessV1OAuthAppTypes.CreateOAuthAppResponseNonNullableFields>;
|
|
14
|
-
export declare function getOAuthApp(): __PublicMethodMetaInfo<'GET', {
|
|
15
|
-
oAuthAppId: string;
|
|
16
|
-
}, ambassadorWixHeadlessV1OAuthAppUniversalTypes.GetOAuthAppRequest, ambassadorWixHeadlessV1OAuthAppTypes.GetOAuthAppRequest, ambassadorWixHeadlessV1OAuthAppUniversalTypes.GetOAuthAppResponse & ambassadorWixHeadlessV1OAuthAppUniversalTypes.GetOAuthAppResponseNonNullableFields, ambassadorWixHeadlessV1OAuthAppTypes.GetOAuthAppResponse & ambassadorWixHeadlessV1OAuthAppTypes.GetOAuthAppResponseNonNullableFields>;
|
|
17
|
-
export declare function updateOAuthApp(): __PublicMethodMetaInfo<'PATCH', {
|
|
18
|
-
oAuthAppId: string;
|
|
19
|
-
}, ambassadorWixHeadlessV1OAuthAppUniversalTypes.UpdateOAuthAppRequest, ambassadorWixHeadlessV1OAuthAppTypes.UpdateOAuthAppRequest, ambassadorWixHeadlessV1OAuthAppUniversalTypes.UpdateOAuthAppResponse & ambassadorWixHeadlessV1OAuthAppUniversalTypes.UpdateOAuthAppResponseNonNullableFields, ambassadorWixHeadlessV1OAuthAppTypes.UpdateOAuthAppResponse & ambassadorWixHeadlessV1OAuthAppTypes.UpdateOAuthAppResponseNonNullableFields>;
|
|
20
|
-
export declare function queryOAuthApps(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixHeadlessV1OAuthAppUniversalTypes.QueryOAuthAppsRequest, ambassadorWixHeadlessV1OAuthAppTypes.QueryOAuthAppsRequest, ambassadorWixHeadlessV1OAuthAppUniversalTypes.QueryOAuthAppsResponse & ambassadorWixHeadlessV1OAuthAppUniversalTypes.QueryOAuthAppsResponseNonNullableFields, ambassadorWixHeadlessV1OAuthAppTypes.QueryOAuthAppsResponse & ambassadorWixHeadlessV1OAuthAppTypes.QueryOAuthAppsResponseNonNullableFields>;
|
|
@@ -1,104 +0,0 @@
|
|
|
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.queryOAuthApps = exports.updateOAuthApp = exports.getOAuthApp = exports.createOAuthApp = void 0;
|
|
27
|
-
const ambassadorWixHeadlessV1OAuthApp = __importStar(require("./headless-v1-o-auth-app.http"));
|
|
28
|
-
function createOAuthApp() {
|
|
29
|
-
const payload = {};
|
|
30
|
-
const getRequestOptions = ambassadorWixHeadlessV1OAuthApp.createOAuthApp(payload);
|
|
31
|
-
const getUrl = (context) => {
|
|
32
|
-
const { url } = getRequestOptions(context);
|
|
33
|
-
return url;
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
getUrl,
|
|
37
|
-
httpMethod: 'POST',
|
|
38
|
-
path: '/v1/oauth-apps',
|
|
39
|
-
pathParams: {},
|
|
40
|
-
__requestType: null,
|
|
41
|
-
__originalRequestType: null,
|
|
42
|
-
__responseType: null,
|
|
43
|
-
__originalResponseType: null,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.createOAuthApp = createOAuthApp;
|
|
47
|
-
function getOAuthApp() {
|
|
48
|
-
const payload = { oAuthAppId: ':oAuthAppId' };
|
|
49
|
-
const getRequestOptions = ambassadorWixHeadlessV1OAuthApp.getOAuthApp(payload);
|
|
50
|
-
const getUrl = (context) => {
|
|
51
|
-
const { url } = getRequestOptions(context);
|
|
52
|
-
return url;
|
|
53
|
-
};
|
|
54
|
-
return {
|
|
55
|
-
getUrl,
|
|
56
|
-
httpMethod: 'GET',
|
|
57
|
-
path: '/v1/oauth-apps/{oAuthAppId}',
|
|
58
|
-
pathParams: { oAuthAppId: 'oAuthAppId' },
|
|
59
|
-
__requestType: null,
|
|
60
|
-
__originalRequestType: null,
|
|
61
|
-
__responseType: null,
|
|
62
|
-
__originalResponseType: null,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
exports.getOAuthApp = getOAuthApp;
|
|
66
|
-
function updateOAuthApp() {
|
|
67
|
-
const payload = { oAuthApp: { id: ':oAuthAppId' } };
|
|
68
|
-
const getRequestOptions = ambassadorWixHeadlessV1OAuthApp.updateOAuthApp(payload);
|
|
69
|
-
const getUrl = (context) => {
|
|
70
|
-
const { url } = getRequestOptions(context);
|
|
71
|
-
return url;
|
|
72
|
-
};
|
|
73
|
-
return {
|
|
74
|
-
getUrl,
|
|
75
|
-
httpMethod: 'PATCH',
|
|
76
|
-
path: '/v1/oauth-apps/{oAuthApp.id}',
|
|
77
|
-
pathParams: { oAuthAppId: 'oAuthAppId' },
|
|
78
|
-
__requestType: null,
|
|
79
|
-
__originalRequestType: null,
|
|
80
|
-
__responseType: null,
|
|
81
|
-
__originalResponseType: null,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
exports.updateOAuthApp = updateOAuthApp;
|
|
85
|
-
function queryOAuthApps() {
|
|
86
|
-
const payload = {};
|
|
87
|
-
const getRequestOptions = ambassadorWixHeadlessV1OAuthApp.queryOAuthApps(payload);
|
|
88
|
-
const getUrl = (context) => {
|
|
89
|
-
const { url } = getRequestOptions(context);
|
|
90
|
-
return url;
|
|
91
|
-
};
|
|
92
|
-
return {
|
|
93
|
-
getUrl,
|
|
94
|
-
httpMethod: 'POST',
|
|
95
|
-
path: '/v1/oauth-apps/query',
|
|
96
|
-
pathParams: {},
|
|
97
|
-
__requestType: null,
|
|
98
|
-
__originalRequestType: null,
|
|
99
|
-
__responseType: null,
|
|
100
|
-
__originalResponseType: null,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
exports.queryOAuthApps = queryOAuthApps;
|
|
104
|
-
//# sourceMappingURL=headless-v1-o-auth-app.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headless-v1-o-auth-app.meta.js","sourceRoot":"","sources":["../../../src/headless-v1-o-auth-app.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+FAAiF;AAsBjF,SAAgB,cAAc;IAU5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+BAA+B,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAE1D,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,gBAAgB;QACtB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,wCA8BC;AAED,SAAgB,WAAW;IAUzB,MAAM,OAAO,GAAG,EAAE,UAAU,EAAE,aAAa,EAAS,CAAC;IAErD,MAAM,iBAAiB,GACrB,+BAA+B,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEvD,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,i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AAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,wCA8BC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { OAuthApp, UpdateOAuthApp } from './headless-v1-o-auth-app.universal';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function createOAuthApp(httpClient: HttpClient): (oAuthApp: OAuthApp) => Promise<OAuthApp & {
|
|
7
|
-
allowedRedirectUris: string[];
|
|
8
|
-
allowedRedirectDomains: string[];
|
|
9
|
-
}>;
|
|
10
|
-
export declare function getOAuthApp(httpClient: HttpClient): (oAuthAppId: string) => Promise<OAuthApp & {
|
|
11
|
-
allowedRedirectUris: string[];
|
|
12
|
-
allowedRedirectDomains: string[];
|
|
13
|
-
}>;
|
|
14
|
-
export declare function updateOAuthApp(httpClient: HttpClient): (_id: string | null, oAuthApp: UpdateOAuthApp) => Promise<OAuthApp & {
|
|
15
|
-
allowedRedirectUris: string[];
|
|
16
|
-
allowedRedirectDomains: string[];
|
|
17
|
-
}>;
|
|
18
|
-
export declare function queryOAuthApps(httpClient: HttpClient): () => import("./headless-v1-o-auth-app.universal").OAuthAppsQueryBuilder;
|
|
19
|
-
export { SortOrder, State, SiteCreatedContext, Namespace, DeleteStatus, } from './headless-v1-o-auth-app.universal';
|
|
20
|
-
export { OAuthApp, CreateOAuthAppRequest, CreateOAuthAppResponse, GetOAuthAppRequest, GetOAuthAppResponse, UpdateOAuthAppRequest, UpdateOAuthAppResponse, DeleteOAuthAppRequest, DeleteOAuthAppResponse, QueryOAuthAppsRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, Paging, CursorPaging, QueryOAuthAppsResponse, PagingMetadataV2, Cursors, GenerateOAuthAppSecretRequest, GenerateOAuthAppSecretResponse, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, Empty, DomainEvent, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, DomainActionEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, CreateOAuthAppResponseNonNullableFields, GetOAuthAppResponseNonNullableFields, UpdateOAuthAppResponseNonNullableFields, QueryOAuthAppsResponseNonNullableFields, UpdateOAuthApp, OAuthAppsQueryResult, OAuthAppsQueryBuilder, } from './headless-v1-o-auth-app.universal';
|
|
21
|
-
export { onOAuthAppCreated, onOAuthAppUpdated, onOAuthAppDeleted, } from './headless-v1-o-auth-app.universal';
|