@amp-labs/react 1.1.0 → 1.3.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/AllowedDomainApi.d.ts +79 -0
- package/build/generated-sources/api/src/apis/AllowedDomainApi.js +101 -0
- package/build/generated-sources/api/src/apis/ConnectionApi.d.ts +82 -0
- package/build/generated-sources/api/src/apis/ConnectionApi.js +107 -0
- package/build/generated-sources/api/src/apis/ConsumerApi.d.ts +52 -0
- package/build/generated-sources/api/src/apis/ConsumerApi.js +75 -0
- package/build/generated-sources/api/src/apis/DestinationApi.d.ts +102 -0
- package/build/generated-sources/api/src/apis/DestinationApi.js +126 -0
- package/build/generated-sources/api/src/apis/GroupApi.d.ts +52 -0
- package/build/generated-sources/api/src/apis/GroupApi.js +75 -0
- package/build/generated-sources/api/src/apis/InstallationApi.d.ts +196 -0
- package/build/generated-sources/api/src/apis/InstallationApi.js +235 -0
- package/build/generated-sources/api/src/apis/IntegrationApi.d.ts +128 -0
- package/build/generated-sources/api/src/apis/IntegrationApi.js +151 -0
- package/build/generated-sources/api/src/apis/OAuthApi.d.ts +76 -0
- package/build/generated-sources/api/src/apis/OAuthApi.js +102 -0
- package/build/generated-sources/api/src/apis/OperationApi.d.ts +80 -0
- package/build/generated-sources/api/src/apis/OperationApi.js +104 -0
- package/build/generated-sources/api/src/apis/OperationLogApi.d.ts +55 -0
- package/build/generated-sources/api/src/apis/OperationLogApi.js +76 -0
- package/build/generated-sources/api/src/apis/ProjectApi.d.ts +124 -0
- package/build/generated-sources/api/src/apis/ProjectApi.js +148 -0
- package/build/generated-sources/api/src/apis/ProjectMembershipApi.d.ts +126 -0
- package/build/generated-sources/api/src/apis/ProjectMembershipApi.js +154 -0
- package/build/generated-sources/api/src/apis/ProviderAppApi.d.ts +130 -0
- package/build/generated-sources/api/src/apis/ProviderAppApi.js +158 -0
- package/build/generated-sources/api/src/apis/RevisionApi.d.ts +87 -0
- package/build/generated-sources/api/src/apis/RevisionApi.js +113 -0
- package/build/generated-sources/api/src/apis/UploadURLApi.d.ts +46 -0
- package/build/generated-sources/api/src/apis/UploadURLApi.js +68 -0
- package/build/generated-sources/api/src/apis/index.d.ts +15 -1
- package/build/generated-sources/api/src/apis/index.js +15 -1
- 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/Destination.d.ts +44 -0
- package/build/generated-sources/api/src/models/Destination.js +57 -0
- package/build/generated-sources/api/src/models/DestinationMetadata.d.ts +39 -0
- package/build/generated-sources/api/src/models/{CreateDestinationRequestMetadata.js → DestinationMetadata.js} +11 -11
- 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/OauthConnectRequest.d.ts +6 -6
- package/build/generated-sources/api/src/models/OauthConnectRequest.js +1 -2
- 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/OperationLog.d.ts +43 -0
- package/build/generated-sources/api/src/models/OperationLog.js +56 -0
- package/build/generated-sources/api/src/models/ProviderApp.d.ts +6 -0
- package/build/generated-sources/api/src/models/ProviderApp.js +2 -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 +6 -3
- package/build/generated-sources/api/src/models/index.js +6 -3
- package/build/src/assets/SuccessIcon.d.ts +1 -0
- package/build/src/assets/SuccessIcon.js +8 -0
- package/build/src/assets/TrashIcon.js +3 -1
- package/build/src/components/Configure/InstallIntegration.d.ts +4 -1
- package/build/src/components/Configure/InstallIntegration.js +11 -23
- package/build/src/components/Configure/actions/createInstallationReducer.d.ts +15 -0
- package/build/src/components/Configure/actions/createInstallationReducer.js +30 -0
- package/build/src/components/Configure/actions/onSaveReadCreateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/{onSaveCreate.js → onSaveReadCreateInstallation.js} +13 -25
- package/build/src/components/Configure/actions/onSaveReadUpdateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/{onSaveUpdate.js → onSaveReadUpdateInstallation.js} +13 -8
- package/build/src/components/Configure/actions/proxy/createInstallationProxyOnly.d.ts +8 -0
- package/build/src/components/Configure/actions/proxy/createInstallationProxyOnly.js +44 -0
- package/build/src/components/Configure/actions/write/generateConfigWriteObjects.d.ts +26 -0
- package/build/src/components/Configure/actions/write/generateConfigWriteObjects.js +41 -0
- package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +72 -0
- package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.js +60 -0
- package/build/src/components/Configure/{ConfigureInstallationBase.d.ts → content/ConfigureInstallationBase.d.ts} +2 -1
- package/build/src/components/Configure/content/ConfigureInstallationBase.js +36 -0
- package/build/src/components/Configure/content/CreateInstallation.js +83 -0
- package/build/src/components/Configure/content/InstallationContent.d.ts +1 -0
- package/build/src/components/Configure/content/InstallationContent.js +20 -0
- package/build/src/components/Configure/{UninstallContent.js → content/UninstallContent.js} +10 -9
- package/build/src/components/Configure/{UpdateInstallation.d.ts → content/UpdateInstallation.d.ts} +1 -1
- package/build/src/components/Configure/{UpdateInstallation.js → content/UpdateInstallation.js} +42 -28
- package/build/src/components/Configure/{fields → content/fields}/FieldMappings/FieldMapping.d.ts +1 -1
- package/build/src/components/Configure/{fields → content/fields}/FieldMappings/FieldMapping.js +4 -7
- package/build/src/components/Configure/{fields → content/fields}/FieldMappings/RequiredFieldMappings.js +10 -11
- package/build/src/components/Configure/{fields → content/fields}/FieldMappings/setFieldMapping.d.ts +1 -1
- package/build/src/components/Configure/content/fields/FieldMappings/setFieldMapping.js +21 -0
- package/build/src/components/Configure/{fields → content/fields}/OptionalFields/OptionalFields.js +9 -14
- package/build/src/components/Configure/{fields → content/fields}/OptionalFields/setOptionalField.d.ts +1 -1
- package/build/src/components/Configure/content/fields/OptionalFields/setOptionalField.js +27 -0
- package/build/src/components/Configure/content/fields/ReadFields.d.ts +1 -0
- package/build/src/components/Configure/content/fields/ReadFields.js +11 -0
- package/build/src/components/Configure/content/fields/RequiredFields.js +23 -0
- package/build/src/components/Configure/content/fields/WriteFields/WriteFields.d.ts +1 -0
- package/build/src/components/Configure/content/fields/WriteFields/WriteFields.js +22 -0
- package/build/src/components/Configure/content/fields/WriteFields/index.d.ts +2 -0
- package/build/src/components/Configure/content/fields/WriteFields/index.js +5 -0
- package/build/src/components/Configure/content/fields/WriteFields/setNonConfigurableWriteField.d.ts +3 -0
- package/build/src/components/Configure/content/fields/WriteFields/setNonConfigurableWriteField.js +32 -0
- package/build/src/components/Configure/content/useMutateInstallation.d.ts +23 -0
- package/build/src/components/Configure/content/useMutateInstallation.js +47 -0
- package/build/src/components/Configure/content/useSelectedConfigureState.d.ts +72 -0
- package/build/src/components/Configure/content/useSelectedConfigureState.js +24 -0
- 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/{ProtectedConnectionLayout.d.ts → layout/ProtectedConnectionLayout.d.ts} +2 -1
- package/build/src/components/Configure/{ProtectedConnectionLayout.js → layout/ProtectedConnectionLayout.js} +13 -13
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/NavObjectItem.d.ts +1 -0
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/NavObjectItem.js +3 -3
- package/build/src/components/Configure/nav/ObjectManagementNav/OtherTab.d.ts +7 -0
- package/build/src/components/Configure/nav/ObjectManagementNav/OtherTab.js +11 -0
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/UninstallInstallation.d.ts +1 -1
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/UninstallInstallation.js +2 -2
- package/build/src/components/Configure/nav/ObjectManagementNav/constant.d.ts +1 -0
- package/build/src/components/Configure/nav/ObjectManagementNav/constant.js +4 -0
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/index.d.ts +1 -0
- package/build/src/components/Configure/nav/ObjectManagementNav/index.js +61 -0
- package/build/src/components/Configure/state/ConfigurationStateProvider.d.ts +70 -42
- package/build/src/components/Configure/state/ConfigurationStateProvider.js +39 -17
- package/build/src/components/Configure/state/HydratedRevisionContext.js +11 -9
- package/build/src/components/Configure/state/utils.d.ts +2 -2
- package/build/src/components/Configure/state/utils.js +44 -19
- package/build/src/components/Configure/types.d.ts +22 -6
- package/build/src/components/Configure/utils.d.ts +3 -2
- package/build/src/components/Configure/utils.js +25 -5
- package/build/src/components/Connect/ConnectProvider.d.ts +3 -1
- package/build/src/components/Connect/ConnectProvider.js +6 -12
- package/build/src/components/Connect/ConnectedSuccessBox.d.ts +5 -0
- package/build/src/components/Connect/ConnectedSuccessBox.js +13 -0
- package/build/src/components/Connect/useConnectionHandler.d.ts +10 -0
- package/build/src/components/Connect/useConnectionHandler.js +24 -0
- package/build/src/components/ErrorTextBox.js +11 -0
- package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.d.ts +8 -0
- package/build/src/components/Oauth/{Hubspot/HubspotLandingContent.js → NoSubdomainEntry/LandingContent.js} +5 -4
- package/build/src/components/Oauth/NoSubdomainEntry/NoSubdomainOauthFlow.d.ts +16 -0
- package/build/src/components/Oauth/{Hubspot/HubspotOauthFlow.js → NoSubdomainEntry/NoSubdomainOauthFlow.js} +14 -14
- package/build/src/components/{Connect → Oauth}/OAuthPopup.js +8 -10
- package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +5 -5
- package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +1 -1
- package/build/src/components/Oauth/fetchOAuthCallbackURL.d.ts +1 -1
- package/build/src/components/Oauth/fetchOAuthCallbackURL.js +3 -4
- package/build/src/components/RedirectHandler/RedirectHandler.d.ts +15 -0
- package/build/src/components/RedirectHandler/RedirectHandler.js +31 -0
- package/build/src/components/RedirectHandler/index.d.ts +1 -0
- package/build/src/components/RedirectHandler/index.js +5 -0
- package/build/src/components/SuccessTextBox.d.ts +5 -0
- package/build/src/components/SuccessTextBox.js +10 -0
- package/build/src/{components/AmpersandProvider/AmpersandProvider.js → context/AmpersandContextProvider/AmpersandContextProvider.js} +6 -6
- package/build/src/context/AmpersandContextProvider/index.d.ts +1 -0
- package/build/src/{components/AmpersandProvider → context/AmpersandContextProvider}/index.js +1 -1
- package/build/src/context/{ConnectionsContext.js → ConnectionsContextProvider.js} +11 -10
- package/build/src/context/{InstallIntegrationContext.d.ts → InstallIntegrationContextProvider.d.ts} +7 -2
- package/build/src/context/{InstallIntegrationContext.js → InstallIntegrationContextProvider.js} +29 -14
- package/build/src/context/{IntegrationListContext.js → IntegrationListContextProvider.js} +4 -4
- package/build/src/context/{ProjectContext.js → ProjectContextProvider.js} +4 -4
- package/build/src/hooks/useIsIntegrationInstalled.js +7 -7
- package/build/src/index.d.ts +1 -2
- package/build/src/index.js +1 -2
- package/build/src/public/index.d.ts +7 -0
- package/build/src/{components → public}/index.js +7 -3
- package/build/src/services/ApiService.d.ts +27 -0
- package/build/src/services/ApiService.js +34 -0
- package/build/src/services/api.d.ts +5 -4
- package/build/src/services/api.js +26 -19
- package/package.json +2 -2
- package/build/generated-sources/api/src/apis/DefaultApi.d.ts +0 -930
- package/build/generated-sources/api/src/apis/DefaultApi.js +0 -1019
- package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +0 -44
- package/build/generated-sources/api/src/models/CreateDestinationRequest.js +0 -57
- package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.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/AmpersandProvider/index.d.ts +0 -1
- package/build/src/components/CenteredTextBox/CenteredTextBox.d.ts +0 -5
- package/build/src/components/CenteredTextBox/CenteredTextBox.js +0 -8
- package/build/src/components/Configure/ConfigureInstallationBase.js +0 -29
- package/build/src/components/Configure/CreateInstallation.js +0 -70
- package/build/src/components/Configure/ErrorTextBox.js +0 -9
- package/build/src/components/Configure/ObjectManagementNav/index.js +0 -53
- package/build/src/components/Configure/actions/onSaveCreate.d.ts +0 -3
- package/build/src/components/Configure/actions/onSaveUpdate.d.ts +0 -3
- package/build/src/components/Configure/fields/FieldMappings/setFieldMapping.js +0 -18
- package/build/src/components/Configure/fields/OptionalFields/setOptionalField.js +0 -21
- package/build/src/components/Configure/fields/RequiredFields.js +0 -27
- package/build/src/components/Oauth/Hubspot/HubspotLandingContent.d.ts +0 -7
- package/build/src/components/Oauth/Hubspot/HubspotOauthFlow.d.ts +0 -15
- package/build/src/components/index.d.ts +0 -3
- /package/build/src/components/Configure/{CreateInstallation.d.ts → content/CreateInstallation.d.ts} +0 -0
- /package/build/src/components/Configure/{UninstallContent.d.ts → content/UninstallContent.d.ts} +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldHeader.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldHeader.js +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/RequiredFieldMappings.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/index.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/index.js +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/OptionalFields.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/index.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/index.js +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/RequiredFields.d.ts +0 -0
- /package/build/src/components/{Configure/ErrorTextBox.d.ts → ErrorTextBox.d.ts} +0 -0
- /package/build/src/components/{Connect → Oauth}/OAuthPopup.d.ts +0 -0
- /package/build/src/{components/AmpersandProvider/AmpersandProvider.d.ts → context/AmpersandContextProvider/AmpersandContextProvider.d.ts} +0 -0
- /package/build/src/context/{ApiKeyProvider.d.ts → ApiKeyContextProvider.d.ts} +0 -0
- /package/build/src/context/{ApiKeyProvider.js → ApiKeyContextProvider.js} +0 -0
- /package/build/src/context/{ConnectionsContext.d.ts → ConnectionsContextProvider.d.ts} +0 -0
- /package/build/src/context/{IntegrationListContext.d.ts → IntegrationListContextProvider.d.ts} +0 -0
- /package/build/src/context/{ProjectContext.d.ts → ProjectContextProvider.d.ts} +0 -0
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConfigContentToJSON = exports.ConfigContentFromJSONTyped = exports.ConfigContentFromJSON = exports.instanceOfConfigContent = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const BaseProxyConfig_1 = require("./BaseProxyConfig");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the ConfigContent interface.
|
|
20
21
|
*/
|
|
@@ -36,6 +37,7 @@ function ConfigContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'provider': json['provider'],
|
|
37
38
|
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : json['read'],
|
|
38
39
|
'write': !(0, runtime_1.exists)(json, 'write') ? undefined : json['write'],
|
|
40
|
+
'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, BaseProxyConfig_1.BaseProxyConfigFromJSON)(json['proxy']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
exports.ConfigContentFromJSONTyped = ConfigContentFromJSONTyped;
|
|
@@ -50,6 +52,7 @@ function ConfigContentToJSON(value) {
|
|
|
50
52
|
'provider': value.provider,
|
|
51
53
|
'read': value.read,
|
|
52
54
|
'write': value.write,
|
|
55
|
+
'proxy': (0, BaseProxyConfig_1.BaseProxyConfigToJSON)(value.proxy),
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
exports.ConfigContentToJSON = ConfigContentToJSON;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { DestinationMetadata } from './DestinationMetadata';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Destination
|
|
17
|
+
*/
|
|
18
|
+
export interface Destination {
|
|
19
|
+
/**
|
|
20
|
+
* User-friendly name for the destination
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Destination
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* The type of the destination
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Destination
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DestinationMetadata}
|
|
34
|
+
* @memberof Destination
|
|
35
|
+
*/
|
|
36
|
+
metadata: DestinationMetadata;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the Destination interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfDestination(value: object): boolean;
|
|
42
|
+
export declare function DestinationFromJSON(json: any): Destination;
|
|
43
|
+
export declare function DestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Destination;
|
|
44
|
+
export declare function DestinationToJSON(value?: Destination | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.DestinationToJSON = exports.DestinationFromJSONTyped = exports.DestinationFromJSON = exports.instanceOfDestination = void 0;
|
|
17
|
+
const DestinationMetadata_1 = require("./DestinationMetadata");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Destination interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfDestination(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
isInstance = isInstance && "type" in value;
|
|
25
|
+
isInstance = isInstance && "metadata" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfDestination = instanceOfDestination;
|
|
29
|
+
function DestinationFromJSON(json) {
|
|
30
|
+
return DestinationFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.DestinationFromJSON = DestinationFromJSON;
|
|
33
|
+
function DestinationFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'metadata': (0, DestinationMetadata_1.DestinationMetadataFromJSON)(json['metadata']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.DestinationFromJSONTyped = DestinationFromJSONTyped;
|
|
44
|
+
function DestinationToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value.name,
|
|
53
|
+
'type': value.type,
|
|
54
|
+
'metadata': (0, DestinationMetadata_1.DestinationMetadataToJSON)(value.metadata),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.DestinationToJSON = DestinationToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 DestinationMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface DestinationMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Webhook URL
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DestinationMetadata
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Webhook headers to add
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof DestinationMetadata
|
|
28
|
+
*/
|
|
29
|
+
headers?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
} | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the DestinationMetadata interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfDestinationMetadata(value: object): boolean;
|
|
37
|
+
export declare function DestinationMetadataFromJSON(json: any): DestinationMetadata;
|
|
38
|
+
export declare function DestinationMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationMetadata;
|
|
39
|
+
export declare function DestinationMetadataToJSON(value?: DestinationMetadata | null): any;
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.DestinationMetadataToJSON = exports.DestinationMetadataFromJSONTyped = exports.DestinationMetadataFromJSON = exports.instanceOfDestinationMetadata = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
/**
|
|
19
|
-
* Check if a given object implements the
|
|
19
|
+
* Check if a given object implements the DestinationMetadata interface.
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
21
|
+
function instanceOfDestinationMetadata(value) {
|
|
22
22
|
let isInstance = true;
|
|
23
23
|
return isInstance;
|
|
24
24
|
}
|
|
25
|
-
exports.
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
exports.instanceOfDestinationMetadata = instanceOfDestinationMetadata;
|
|
26
|
+
function DestinationMetadataFromJSON(json) {
|
|
27
|
+
return DestinationMetadataFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
exports.
|
|
30
|
-
function
|
|
29
|
+
exports.DestinationMetadataFromJSON = DestinationMetadataFromJSON;
|
|
30
|
+
function DestinationMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if ((json === undefined) || (json === null)) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
@@ -36,8 +36,8 @@ function CreateDestinationRequestMetadataFromJSONTyped(json, ignoreDiscriminator
|
|
|
36
36
|
'headers': !(0, runtime_1.exists)(json, 'headers') ? undefined : json['headers'],
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
exports.
|
|
40
|
-
function
|
|
39
|
+
exports.DestinationMetadataFromJSONTyped = DestinationMetadataFromJSONTyped;
|
|
40
|
+
function DestinationMetadataToJSON(value) {
|
|
41
41
|
if (value === undefined) {
|
|
42
42
|
return undefined;
|
|
43
43
|
}
|
|
@@ -49,4 +49,4 @@ function CreateDestinationRequestMetadataToJSON(value) {
|
|
|
49
49
|
'headers': value.headers,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
exports.
|
|
52
|
+
exports.DestinationMetadataToJSON = DestinationMetadataToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HydratedIntegrationProxy } from './HydratedIntegrationProxy';
|
|
12
13
|
import type { HydratedIntegrationRead } from './HydratedIntegrationRead';
|
|
13
14
|
import type { HydratedIntegrationWrite } from './HydratedIntegrationWrite';
|
|
14
15
|
/**
|
|
@@ -47,6 +48,12 @@ export interface HydratedIntegration {
|
|
|
47
48
|
* @memberof HydratedIntegration
|
|
48
49
|
*/
|
|
49
50
|
write?: HydratedIntegrationWrite;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {HydratedIntegrationProxy}
|
|
54
|
+
* @memberof HydratedIntegration
|
|
55
|
+
*/
|
|
56
|
+
proxy?: HydratedIntegrationProxy;
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
59
|
* Check if a given object implements the HydratedIntegration interface.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.HydratedIntegrationToJSON = exports.HydratedIntegrationFromJSONTyped = exports.HydratedIntegrationFromJSON = exports.instanceOfHydratedIntegration = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const HydratedIntegrationProxy_1 = require("./HydratedIntegrationProxy");
|
|
18
19
|
const HydratedIntegrationRead_1 = require("./HydratedIntegrationRead");
|
|
19
20
|
const HydratedIntegrationWrite_1 = require("./HydratedIntegrationWrite");
|
|
20
21
|
/**
|
|
@@ -41,6 +42,7 @@ function HydratedIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'provider': json['provider'],
|
|
42
43
|
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, HydratedIntegrationRead_1.HydratedIntegrationReadFromJSON)(json['read']),
|
|
43
44
|
'write': !(0, runtime_1.exists)(json, 'write') ? undefined : (0, HydratedIntegrationWrite_1.HydratedIntegrationWriteFromJSON)(json['write']),
|
|
45
|
+
'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, HydratedIntegrationProxy_1.HydratedIntegrationProxyFromJSON)(json['proxy']),
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.HydratedIntegrationFromJSONTyped = HydratedIntegrationFromJSONTyped;
|
|
@@ -57,6 +59,7 @@ function HydratedIntegrationToJSON(value) {
|
|
|
57
59
|
'provider': value.provider,
|
|
58
60
|
'read': (0, HydratedIntegrationRead_1.HydratedIntegrationReadToJSON)(value.read),
|
|
59
61
|
'write': (0, HydratedIntegrationWrite_1.HydratedIntegrationWriteToJSON)(value.write),
|
|
62
|
+
'proxy': (0, HydratedIntegrationProxy_1.HydratedIntegrationProxyToJSON)(value.proxy),
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
exports.HydratedIntegrationToJSON = HydratedIntegrationToJSON;
|
|
@@ -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 HydratedIntegrationProxy
|
|
16
|
+
*/
|
|
17
|
+
export interface HydratedIntegrationProxy {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof HydratedIntegrationProxy
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the HydratedIntegrationProxy interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfHydratedIntegrationProxy(value: object): boolean;
|
|
29
|
+
export declare function HydratedIntegrationProxyFromJSON(json: any): HydratedIntegrationProxy;
|
|
30
|
+
export declare function HydratedIntegrationProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegrationProxy;
|
|
31
|
+
export declare function HydratedIntegrationProxyToJSON(value?: HydratedIntegrationProxy | 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.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;
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|