@amp-labs/react 1.2.0 → 1.4.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/generated-sources/api/src/apis/APIKeyApi.d.ts +158 -0
- package/build/generated-sources/api/src/apis/APIKeyApi.js +188 -0
- package/build/generated-sources/api/src/apis/DestinationApi.d.ts +86 -8
- package/build/generated-sources/api/src/apis/DestinationApi.js +86 -3
- package/build/generated-sources/api/src/apis/InstallationApi.d.ts +28 -0
- package/build/generated-sources/api/src/apis/InstallationApi.js +30 -0
- package/build/generated-sources/api/src/apis/IntegrationApi.js +1 -4
- package/build/generated-sources/api/src/apis/OperationApi.d.ts +27 -1
- package/build/generated-sources/api/src/apis/OperationApi.js +27 -0
- package/build/generated-sources/api/src/apis/OperationEventApi.d.ts +84 -0
- package/build/generated-sources/api/src/apis/OperationEventApi.js +110 -0
- package/build/generated-sources/api/src/apis/ProviderApi.d.ts +78 -0
- package/build/generated-sources/api/src/apis/{OperationLogApi.js → ProviderApi.js} +33 -17
- package/build/generated-sources/api/src/apis/index.d.ts +3 -1
- package/build/generated-sources/api/src/apis/index.js +3 -1
- package/build/generated-sources/api/src/models/ApiKey.d.ts +49 -0
- package/build/generated-sources/api/src/models/ApiKey.js +59 -0
- package/build/generated-sources/api/src/models/ApiKeyRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/ApiKeyRequest.js +50 -0
- package/build/generated-sources/api/src/models/AuthType.d.ts +22 -0
- package/build/generated-sources/api/src/models/AuthType.js +35 -0
- package/build/generated-sources/api/src/models/BaseConfigContent.d.ts +7 -0
- package/build/generated-sources/api/src/models/BaseConfigContent.js +3 -0
- package/build/generated-sources/api/src/models/BaseProxyConfig.d.ts +31 -0
- package/build/generated-sources/api/src/models/BaseProxyConfig.js +50 -0
- package/build/generated-sources/api/src/models/ConfigContent.d.ts +7 -0
- package/build/generated-sources/api/src/models/ConfigContent.js +3 -0
- package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +44 -0
- package/build/generated-sources/api/src/models/CreateDestinationRequest.js +57 -0
- package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +39 -0
- package/build/generated-sources/api/src/models/{DestinationMetadata.js → CreateDestinationRequestMetadata.js} +11 -11
- package/build/generated-sources/api/src/models/Destination.d.ts +22 -4
- package/build/generated-sources/api/src/models/Destination.js +12 -3
- package/build/generated-sources/api/src/models/HydratedIntegration.d.ts +7 -0
- package/build/generated-sources/api/src/models/HydratedIntegration.js +3 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationProxy.d.ts +31 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationProxy.js +50 -0
- package/build/generated-sources/api/src/models/ImportConnectionRequest.d.ts +1 -1
- package/build/generated-sources/api/src/models/Integration1.d.ts +7 -0
- package/build/generated-sources/api/src/models/Integration1.js +3 -0
- package/build/generated-sources/api/src/models/IntegrationProxy.d.ts +31 -0
- package/build/generated-sources/api/src/models/IntegrationProxy.js +50 -0
- package/build/generated-sources/api/src/models/{OperationLog.d.ts → Log.d.ts} +12 -12
- package/build/generated-sources/api/src/models/{OperationLog.js → Log.js} +11 -11
- package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +6 -6
- package/build/generated-sources/api/src/models/OauthConnectRequest.js +1 -2
- package/build/generated-sources/api/src/models/OauthOpts.d.ts +56 -0
- package/build/generated-sources/api/src/models/OauthOpts.js +63 -0
- package/build/generated-sources/api/src/models/Operation.d.ts +26 -9
- package/build/generated-sources/api/src/models/Operation.js +14 -7
- package/build/generated-sources/api/src/models/OperationEvent.d.ts +61 -0
- package/build/generated-sources/api/src/models/OperationEvent.js +64 -0
- package/build/generated-sources/api/src/models/PatchApiKeyRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/PatchApiKeyRequest.js +54 -0
- package/build/generated-sources/api/src/models/PatchApiKeyRequestApiKey.d.ts +37 -0
- package/build/generated-sources/api/src/models/PatchApiKeyRequestApiKey.js +52 -0
- package/build/generated-sources/api/src/models/ProviderInfo.d.ts +60 -0
- package/build/generated-sources/api/src/models/ProviderInfo.js +65 -0
- package/build/generated-sources/api/src/models/Support.d.ts +55 -0
- package/build/generated-sources/api/src/models/Support.js +62 -0
- package/build/generated-sources/api/src/models/TokenMetadataFields.d.ts +43 -0
- package/build/generated-sources/api/src/models/TokenMetadataFields.js +54 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.js +53 -0
- package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.d.ts +7 -0
- package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.js +3 -0
- package/build/generated-sources/api/src/models/index.d.ts +18 -3
- package/build/generated-sources/api/src/models/index.js +18 -3
- package/build/src/assets/SuccessIcon.d.ts +1 -0
- package/build/src/assets/SuccessIcon.js +8 -0
- package/build/src/components/Configure/InstallIntegration.js +2 -1
- package/build/src/components/Configure/actions/mutateAndSetState/createInstallationAndSetState.d.ts +15 -0
- package/build/src/components/Configure/actions/mutateAndSetState/createInstallationAndSetState.js +30 -0
- package/build/src/components/Configure/actions/mutateAndSetState/updateInstallationAndSetState.d.ts +15 -0
- package/build/src/components/Configure/actions/mutateAndSetState/updateInstallationAndSetState.js +33 -0
- package/build/src/components/Configure/actions/proxy/isProxyEnabled.d.ts +2 -0
- package/build/src/components/Configure/actions/proxy/isProxyEnabled.js +8 -0
- package/build/src/components/Configure/actions/proxy/onCreateInstallationProxyOnly.d.ts +8 -0
- package/build/src/components/Configure/actions/proxy/onCreateInstallationProxyOnly.js +44 -0
- package/build/src/components/Configure/actions/{onSaveReadCreateInstallation.d.ts → read/onSaveReadCreateInstallation.d.ts} +2 -2
- package/build/src/components/Configure/actions/{onSaveReadCreateInstallation.js → read/onSaveReadCreateInstallation.js} +15 -22
- package/build/src/components/Configure/actions/read/onSaveReadUpdateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/{onSaveReadUpdateInstallation.js → read/onSaveReadUpdateInstallation.js} +20 -28
- package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +16 -22
- package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.d.ts +2 -2
- package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.js +11 -3
- package/build/src/components/Configure/content/CreateInstallation.js +1 -1
- package/build/src/components/Configure/content/UpdateInstallation.js +5 -5
- package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.d.ts +11 -0
- package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +67 -0
- package/build/src/components/Configure/layout/ConditionalProxyLayout/InstalledSuccessBox.d.ts +5 -0
- package/build/src/components/Configure/layout/ConditionalProxyLayout/InstalledSuccessBox.js +11 -0
- package/build/src/components/Configure/layout/ProtectedConnectionLayout.js +2 -7
- package/build/src/components/Configure/state/utils.js +5 -5
- package/build/src/components/Connect/ConnectedSuccessBox.js +3 -3
- package/build/src/components/Oauth/NoWorkspaceEntry/LandingContent.js +12 -0
- package/build/src/components/Oauth/{NoSubdomainEntry/NoSubdomainOauthFlow.d.ts → NoWorkspaceEntry/NoWorkspaceOauthFlow.d.ts} +4 -4
- package/build/src/components/Oauth/{NoSubdomainEntry/NoSubdomainOauthFlow.js → NoWorkspaceEntry/NoWorkspaceOauthFlow.js} +6 -8
- package/build/src/components/Oauth/OAuthPopup.js +1 -5
- package/build/src/components/Oauth/OauthCardLayout.d.ts +6 -0
- package/build/src/components/Oauth/OauthCardLayout.js +9 -0
- package/build/src/components/Oauth/OauthFlow/OauthFlow.d.ts +9 -0
- package/build/src/components/Oauth/OauthFlow/OauthFlow.js +33 -0
- package/build/src/components/Oauth/Salesforce/SalesforceSubdomainEntry.d.ts +13 -0
- package/build/src/components/Oauth/Salesforce/SalesforceSubdomainEntry.js +18 -0
- package/build/src/components/Oauth/WorkspaceEntry/WorkspaceEntry.d.ts +9 -0
- package/build/src/components/Oauth/WorkspaceEntry/WorkspaceEntry.js +12 -0
- package/build/src/components/Oauth/WorkspaceEntry/WorkspaceOauthFlow.d.ts +14 -0
- package/build/src/components/Oauth/WorkspaceEntry/WorkspaceOauthFlow.js +58 -0
- package/build/src/components/SuccessTextBox.d.ts +5 -0
- package/build/src/components/SuccessTextBox.js +10 -0
- package/build/src/components/ThemeProvider/Button/buttonTheme.js +3 -3
- package/build/src/components/ThemeProvider/index.js +6 -6
- package/build/src/services/ApiService.d.ts +2 -2
- package/build/src/services/ApiService.js +1 -1
- package/build/src/services/api.d.ts +2 -2
- package/build/src/services/api.js +28 -21
- package/build/src/services/version.d.ts +1 -0
- package/build/src/services/version.js +4 -0
- package/package.json +2 -2
- package/build/generated-sources/api/src/apis/OperationLogApi.d.ts +0 -55
- package/build/generated-sources/api/src/models/DestinationMetadata.d.ts +0 -39
- package/build/generated-sources/api/src/models/OperationError.d.ts +0 -49
- package/build/generated-sources/api/src/models/OperationError.js +0 -56
- package/build/src/components/Configure/actions/onSaveReadUpdateInstallation.d.ts +0 -3
- package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.js +0 -11
- package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.d.ts +0 -16
- package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +0 -57
- package/build/src/components/Oauth/Salesforce/SubdomainEntry.d.ts +0 -8
- package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +0 -12
- package/build/src/constants.d.ts +0 -2
- package/build/src/constants.js +0 -5
- /package/build/src/components/Oauth/{NoSubdomainEntry → NoWorkspaceEntry}/LandingContent.d.ts +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.HydratedIntegrationProxyToJSON = exports.HydratedIntegrationProxyFromJSONTyped = exports.HydratedIntegrationProxyFromJSON = exports.instanceOfHydratedIntegrationProxy = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the HydratedIntegrationProxy interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfHydratedIntegrationProxy(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfHydratedIntegrationProxy = instanceOfHydratedIntegrationProxy;
|
|
26
|
+
function HydratedIntegrationProxyFromJSON(json) {
|
|
27
|
+
return HydratedIntegrationProxyFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.HydratedIntegrationProxyFromJSON = HydratedIntegrationProxyFromJSON;
|
|
30
|
+
function HydratedIntegrationProxyFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.HydratedIntegrationProxyFromJSONTyped = HydratedIntegrationProxyFromJSONTyped;
|
|
39
|
+
function HydratedIntegrationProxyToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'enabled': value.enabled,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.HydratedIntegrationProxyToJSON = HydratedIntegrationProxyToJSON;
|
|
@@ -64,7 +64,7 @@ export interface ImportConnectionRequest {
|
|
|
64
64
|
*/
|
|
65
65
|
refreshToken: string;
|
|
66
66
|
/**
|
|
67
|
-
* The OAuth scopes for this token. If
|
|
67
|
+
* The OAuth scopes for this token. If omitted, will default to the scopes of the Provider App.
|
|
68
68
|
* @type {Array<string>}
|
|
69
69
|
* @memberof ImportConnectionRequest
|
|
70
70
|
*/
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { IntegrationProxy } from './IntegrationProxy';
|
|
12
13
|
import type { IntegrationRead } from './IntegrationRead';
|
|
13
14
|
import type { IntegrationWrite } from './IntegrationWrite';
|
|
14
15
|
/**
|
|
@@ -47,6 +48,12 @@ export interface Integration1 {
|
|
|
47
48
|
* @memberof Integration1
|
|
48
49
|
*/
|
|
49
50
|
write?: IntegrationWrite;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {IntegrationProxy}
|
|
54
|
+
* @memberof Integration1
|
|
55
|
+
*/
|
|
56
|
+
proxy?: IntegrationProxy;
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
59
|
* Check if a given object implements the Integration1 interface.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Integration1ToJSON = exports.Integration1FromJSONTyped = exports.Integration1FromJSON = exports.instanceOfIntegration1 = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const IntegrationProxy_1 = require("./IntegrationProxy");
|
|
18
19
|
const IntegrationRead_1 = require("./IntegrationRead");
|
|
19
20
|
const IntegrationWrite_1 = require("./IntegrationWrite");
|
|
20
21
|
/**
|
|
@@ -41,6 +42,7 @@ function Integration1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'provider': json['provider'],
|
|
42
43
|
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, IntegrationRead_1.IntegrationReadFromJSON)(json['read']),
|
|
43
44
|
'write': !(0, runtime_1.exists)(json, 'write') ? undefined : (0, IntegrationWrite_1.IntegrationWriteFromJSON)(json['write']),
|
|
45
|
+
'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, IntegrationProxy_1.IntegrationProxyFromJSON)(json['proxy']),
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.Integration1FromJSONTyped = Integration1FromJSONTyped;
|
|
@@ -57,6 +59,7 @@ function Integration1ToJSON(value) {
|
|
|
57
59
|
'provider': value.provider,
|
|
58
60
|
'read': (0, IntegrationRead_1.IntegrationReadToJSON)(value.read),
|
|
59
61
|
'write': (0, IntegrationWrite_1.IntegrationWriteToJSON)(value.write),
|
|
62
|
+
'proxy': (0, IntegrationProxy_1.IntegrationProxyToJSON)(value.proxy),
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
exports.Integration1ToJSON = Integration1ToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IntegrationProxy
|
|
16
|
+
*/
|
|
17
|
+
export interface IntegrationProxy {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof IntegrationProxy
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IntegrationProxy interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIntegrationProxy(value: object): boolean;
|
|
29
|
+
export declare function IntegrationProxyFromJSON(json: any): IntegrationProxy;
|
|
30
|
+
export declare function IntegrationProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProxy;
|
|
31
|
+
export declare function IntegrationProxyToJSON(value?: IntegrationProxy | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IntegrationProxyToJSON = exports.IntegrationProxyFromJSONTyped = exports.IntegrationProxyFromJSON = exports.instanceOfIntegrationProxy = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the IntegrationProxy interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfIntegrationProxy(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfIntegrationProxy = instanceOfIntegrationProxy;
|
|
26
|
+
function IntegrationProxyFromJSON(json) {
|
|
27
|
+
return IntegrationProxyFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.IntegrationProxyFromJSON = IntegrationProxyFromJSON;
|
|
30
|
+
function IntegrationProxyFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.IntegrationProxyFromJSONTyped = IntegrationProxyFromJSONTyped;
|
|
39
|
+
function IntegrationProxyToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'enabled': value.enabled,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.IntegrationProxyToJSON = IntegrationProxyToJSON;
|
|
@@ -12,32 +12,32 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface Log
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface Log {
|
|
18
18
|
/**
|
|
19
19
|
* The time the log was created.
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof Log
|
|
22
22
|
*/
|
|
23
23
|
timestamp: string;
|
|
24
24
|
/**
|
|
25
25
|
* The log message.
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof Log
|
|
28
28
|
*/
|
|
29
|
-
message:
|
|
29
|
+
message: object;
|
|
30
30
|
/**
|
|
31
31
|
* The severity of the log.
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof Log
|
|
34
34
|
*/
|
|
35
35
|
severity: string;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* Check if a given object implements the
|
|
38
|
+
* Check if a given object implements the Log interface.
|
|
39
39
|
*/
|
|
40
|
-
export declare function
|
|
41
|
-
export declare function
|
|
42
|
-
export declare function
|
|
43
|
-
export declare function
|
|
40
|
+
export declare function instanceOfLog(value: object): boolean;
|
|
41
|
+
export declare function LogFromJSON(json: any): Log;
|
|
42
|
+
export declare function LogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Log;
|
|
43
|
+
export declare function LogToJSON(value?: Log | null): any;
|
|
@@ -13,23 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.LogToJSON = exports.LogFromJSONTyped = exports.LogFromJSON = exports.instanceOfLog = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the Log interface.
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
20
|
+
function instanceOfLog(value) {
|
|
21
21
|
let isInstance = true;
|
|
22
22
|
isInstance = isInstance && "timestamp" in value;
|
|
23
23
|
isInstance = isInstance && "message" in value;
|
|
24
24
|
isInstance = isInstance && "severity" in value;
|
|
25
25
|
return isInstance;
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
28
|
-
function
|
|
29
|
-
return
|
|
27
|
+
exports.instanceOfLog = instanceOfLog;
|
|
28
|
+
function LogFromJSON(json) {
|
|
29
|
+
return LogFromJSONTyped(json, false);
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
31
|
+
exports.LogFromJSON = LogFromJSON;
|
|
32
|
+
function LogFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if ((json === undefined) || (json === null)) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
@@ -39,8 +39,8 @@ function OperationLogFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'severity': json['severity'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.LogFromJSONTyped = LogFromJSONTyped;
|
|
43
|
+
function LogToJSON(value) {
|
|
44
44
|
if (value === undefined) {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
@@ -53,4 +53,4 @@ function OperationLogToJSON(value) {
|
|
|
53
53
|
'severity': value.severity,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
exports.
|
|
56
|
+
exports.LogToJSON = LogToJSON;
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface OauthConnectRequest {
|
|
18
18
|
/**
|
|
19
|
-
* The identifier for the provider workspace
|
|
19
|
+
* The identifier for the provider workspace
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof OauthConnectRequest
|
|
22
22
|
*/
|
|
23
23
|
providerWorkspaceRef?: string;
|
|
24
24
|
/**
|
|
25
|
-
* The project ID.
|
|
25
|
+
* The Ampersand project ID.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof OauthConnectRequest
|
|
28
28
|
*/
|
|
29
29
|
projectId: string;
|
|
30
30
|
/**
|
|
31
|
-
* The group
|
|
31
|
+
* The ID that your app uses to identify the group of users for this Connection, this can be an Org ID, workspace ID, etc.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof OauthConnectRequest
|
|
34
34
|
*/
|
|
@@ -40,7 +40,7 @@ export interface OauthConnectRequest {
|
|
|
40
40
|
*/
|
|
41
41
|
groupName?: string;
|
|
42
42
|
/**
|
|
43
|
-
* The
|
|
43
|
+
* The ID that your app uses to identify the user whose SaaS credential will be used for this OAuth flow.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof OauthConnectRequest
|
|
46
46
|
*/
|
|
@@ -52,11 +52,11 @@ export interface OauthConnectRequest {
|
|
|
52
52
|
*/
|
|
53
53
|
consumerName?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* ID of the provider app (e.g. Salesforce connected app), returned from a CreateProviderApp call. If omitted, the default provider app that was set up on the Ampersand Console is assumed.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OauthConnectRequest
|
|
58
58
|
*/
|
|
59
|
-
providerAppId
|
|
59
|
+
providerAppId?: string;
|
|
60
60
|
/**
|
|
61
61
|
* The provider that this app connects to.
|
|
62
62
|
* @type {string}
|
|
@@ -23,7 +23,6 @@ function instanceOfOauthConnectRequest(value) {
|
|
|
23
23
|
isInstance = isInstance && "projectId" in value;
|
|
24
24
|
isInstance = isInstance && "groupRef" in value;
|
|
25
25
|
isInstance = isInstance && "consumerRef" in value;
|
|
26
|
-
isInstance = isInstance && "providerAppId" in value;
|
|
27
26
|
isInstance = isInstance && "provider" in value;
|
|
28
27
|
return isInstance;
|
|
29
28
|
}
|
|
@@ -43,7 +42,7 @@ function OauthConnectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
42
|
'groupName': !(0, runtime_1.exists)(json, 'groupName') ? undefined : json['groupName'],
|
|
44
43
|
'consumerRef': json['consumerRef'],
|
|
45
44
|
'consumerName': !(0, runtime_1.exists)(json, 'consumerName') ? undefined : json['consumerName'],
|
|
46
|
-
'providerAppId': json['providerAppId'],
|
|
45
|
+
'providerAppId': !(0, runtime_1.exists)(json, 'providerAppId') ? undefined : json['providerAppId'],
|
|
47
46
|
'provider': json['provider'],
|
|
48
47
|
};
|
|
49
48
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TokenMetadataFields } from './TokenMetadataFields';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OauthOpts
|
|
17
|
+
*/
|
|
18
|
+
export interface OauthOpts {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OauthOpts
|
|
23
|
+
*/
|
|
24
|
+
authURL: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof OauthOpts
|
|
29
|
+
*/
|
|
30
|
+
tokenURL: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof OauthOpts
|
|
35
|
+
*/
|
|
36
|
+
explicitScopesRequired: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof OauthOpts
|
|
41
|
+
*/
|
|
42
|
+
explicitWorkspaceRequired: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {TokenMetadataFields}
|
|
46
|
+
* @memberof OauthOpts
|
|
47
|
+
*/
|
|
48
|
+
tokenMetadataFields: TokenMetadataFields;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the OauthOpts interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfOauthOpts(value: object): boolean;
|
|
54
|
+
export declare function OauthOptsFromJSON(json: any): OauthOpts;
|
|
55
|
+
export declare function OauthOptsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OauthOpts;
|
|
56
|
+
export declare function OauthOptsToJSON(value?: OauthOpts | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OauthOptsToJSON = exports.OauthOptsFromJSONTyped = exports.OauthOptsFromJSON = exports.instanceOfOauthOpts = void 0;
|
|
17
|
+
const TokenMetadataFields_1 = require("./TokenMetadataFields");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the OauthOpts interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfOauthOpts(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "authURL" in value;
|
|
24
|
+
isInstance = isInstance && "tokenURL" in value;
|
|
25
|
+
isInstance = isInstance && "explicitScopesRequired" in value;
|
|
26
|
+
isInstance = isInstance && "explicitWorkspaceRequired" in value;
|
|
27
|
+
isInstance = isInstance && "tokenMetadataFields" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfOauthOpts = instanceOfOauthOpts;
|
|
31
|
+
function OauthOptsFromJSON(json) {
|
|
32
|
+
return OauthOptsFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.OauthOptsFromJSON = OauthOptsFromJSON;
|
|
35
|
+
function OauthOptsFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'authURL': json['authURL'],
|
|
41
|
+
'tokenURL': json['tokenURL'],
|
|
42
|
+
'explicitScopesRequired': json['explicitScopesRequired'],
|
|
43
|
+
'explicitWorkspaceRequired': json['explicitWorkspaceRequired'],
|
|
44
|
+
'tokenMetadataFields': (0, TokenMetadataFields_1.TokenMetadataFieldsFromJSON)(json['tokenMetadataFields']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.OauthOptsFromJSONTyped = OauthOptsFromJSONTyped;
|
|
48
|
+
function OauthOptsToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'authURL': value.authURL,
|
|
57
|
+
'tokenURL': value.tokenURL,
|
|
58
|
+
'explicitScopesRequired': value.explicitScopesRequired,
|
|
59
|
+
'explicitWorkspaceRequired': value.explicitWorkspaceRequired,
|
|
60
|
+
'tokenMetadataFields': (0, TokenMetadataFields_1.TokenMetadataFieldsToJSON)(value.tokenMetadataFields),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.OauthOptsToJSON = OauthOptsToJSON;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { OperationError } from './OperationError';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -23,17 +22,23 @@ export interface Operation {
|
|
|
23
22
|
*/
|
|
24
23
|
projectId: string;
|
|
25
24
|
/**
|
|
26
|
-
* The
|
|
25
|
+
* The integration ID.
|
|
27
26
|
* @type {string}
|
|
28
27
|
* @memberof Operation
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
integrationId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The config ID.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Operation
|
|
34
|
+
*/
|
|
35
|
+
configId: string;
|
|
31
36
|
/**
|
|
32
|
-
* The
|
|
37
|
+
* The action type to perform for the given object.
|
|
33
38
|
* @type {string}
|
|
34
39
|
* @memberof Operation
|
|
35
40
|
*/
|
|
36
|
-
|
|
41
|
+
actionType: string;
|
|
37
42
|
/**
|
|
38
43
|
* The operation ID.
|
|
39
44
|
* @type {string}
|
|
@@ -51,13 +56,25 @@ export interface Operation {
|
|
|
51
56
|
* @type {string}
|
|
52
57
|
* @memberof Operation
|
|
53
58
|
*/
|
|
54
|
-
status
|
|
59
|
+
status: string;
|
|
60
|
+
/**
|
|
61
|
+
* The result of the operation.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Operation
|
|
64
|
+
*/
|
|
65
|
+
result?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The latest operation event ID.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Operation
|
|
70
|
+
*/
|
|
71
|
+
latestOperationEventId?: string;
|
|
55
72
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {
|
|
73
|
+
* Metadata associated with the operation.
|
|
74
|
+
* @type {object}
|
|
58
75
|
* @memberof Operation
|
|
59
76
|
*/
|
|
60
|
-
|
|
77
|
+
metadata?: object;
|
|
61
78
|
/**
|
|
62
79
|
* The time the operation was created.
|
|
63
80
|
* @type {Date}
|
|
@@ -15,17 +15,18 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.OperationToJSON = exports.OperationFromJSONTyped = exports.OperationFromJSON = exports.instanceOfOperation = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
-
const OperationError_1 = require("./OperationError");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the Operation interface.
|
|
21
20
|
*/
|
|
22
21
|
function instanceOfOperation(value) {
|
|
23
22
|
let isInstance = true;
|
|
24
23
|
isInstance = isInstance && "projectId" in value;
|
|
24
|
+
isInstance = isInstance && "integrationId" in value;
|
|
25
|
+
isInstance = isInstance && "configId" in value;
|
|
25
26
|
isInstance = isInstance && "actionType" in value;
|
|
26
|
-
isInstance = isInstance && "objectName" in value;
|
|
27
27
|
isInstance = isInstance && "id" in value;
|
|
28
28
|
isInstance = isInstance && "installationId" in value;
|
|
29
|
+
isInstance = isInstance && "status" in value;
|
|
29
30
|
return isInstance;
|
|
30
31
|
}
|
|
31
32
|
exports.instanceOfOperation = instanceOfOperation;
|
|
@@ -39,12 +40,15 @@ function OperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
'projectId': json['projectId'],
|
|
43
|
+
'integrationId': json['integrationId'],
|
|
44
|
+
'configId': json['configId'],
|
|
42
45
|
'actionType': json['actionType'],
|
|
43
|
-
'objectName': json['objectName'],
|
|
44
46
|
'id': json['id'],
|
|
45
47
|
'installationId': json['installationId'],
|
|
46
|
-
'status':
|
|
47
|
-
'
|
|
48
|
+
'status': json['status'],
|
|
49
|
+
'result': !(0, runtime_1.exists)(json, 'result') ? undefined : json['result'],
|
|
50
|
+
'latestOperationEventId': !(0, runtime_1.exists)(json, 'latestOperationEventId') ? undefined : json['latestOperationEventId'],
|
|
51
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
|
|
48
52
|
'createTime': !(0, runtime_1.exists)(json, 'createTime') ? undefined : (new Date(json['createTime'])),
|
|
49
53
|
};
|
|
50
54
|
}
|
|
@@ -58,12 +62,15 @@ function OperationToJSON(value) {
|
|
|
58
62
|
}
|
|
59
63
|
return {
|
|
60
64
|
'projectId': value.projectId,
|
|
65
|
+
'integrationId': value.integrationId,
|
|
66
|
+
'configId': value.configId,
|
|
61
67
|
'actionType': value.actionType,
|
|
62
|
-
'objectName': value.objectName,
|
|
63
68
|
'id': value.id,
|
|
64
69
|
'installationId': value.installationId,
|
|
65
70
|
'status': value.status,
|
|
66
|
-
'
|
|
71
|
+
'result': value.result,
|
|
72
|
+
'latestOperationEventId': value.latestOperationEventId,
|
|
73
|
+
'metadata': value.metadata,
|
|
67
74
|
'createTime': value.createTime === undefined ? undefined : (value.createTime.toISOString()),
|
|
68
75
|
};
|
|
69
76
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OperationEvent
|
|
16
|
+
*/
|
|
17
|
+
export interface OperationEvent {
|
|
18
|
+
/**
|
|
19
|
+
* The operation event ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OperationEvent
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The operation ID.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OperationEvent
|
|
28
|
+
*/
|
|
29
|
+
operationId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The operation event type.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OperationEvent
|
|
34
|
+
*/
|
|
35
|
+
type: string;
|
|
36
|
+
/**
|
|
37
|
+
* The status of the operation event.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OperationEvent
|
|
40
|
+
*/
|
|
41
|
+
status: string;
|
|
42
|
+
/**
|
|
43
|
+
* The result of the operation event.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OperationEvent
|
|
46
|
+
*/
|
|
47
|
+
result?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The time the operation event was created.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof OperationEvent
|
|
52
|
+
*/
|
|
53
|
+
createTime?: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the OperationEvent interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfOperationEvent(value: object): boolean;
|
|
59
|
+
export declare function OperationEventFromJSON(json: any): OperationEvent;
|
|
60
|
+
export declare function OperationEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationEvent;
|
|
61
|
+
export declare function OperationEventToJSON(value?: OperationEvent | null): any;
|