@amp-labs/react 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +138 -0
- package/build/generated-sources/api/src/apis/DefaultApi.d.ts +858 -0
- package/build/generated-sources/api/src/apis/DefaultApi.js +942 -0
- package/build/generated-sources/api/src/apis/index.d.ts +1 -0
- package/build/generated-sources/api/src/apis/index.js +19 -0
- package/build/generated-sources/api/src/index.d.ts +3 -0
- package/build/generated-sources/api/src/index.js +21 -0
- package/build/generated-sources/api/src/models/BaseConfigContent.d.ts +38 -0
- package/build/generated-sources/api/src/models/BaseConfigContent.js +53 -0
- package/build/generated-sources/api/src/models/BaseReadConfig.d.ts +34 -0
- package/build/generated-sources/api/src/models/BaseReadConfig.js +51 -0
- package/build/generated-sources/api/src/models/BaseReadConfigStandardObject.d.ts +59 -0
- package/build/generated-sources/api/src/models/BaseReadConfigStandardObject.js +58 -0
- package/build/generated-sources/api/src/models/BatchUpsertIntegrationsRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/BatchUpsertIntegrationsRequest.js +50 -0
- package/build/generated-sources/api/src/models/Config.d.ts +56 -0
- package/build/generated-sources/api/src/models/Config.js +63 -0
- package/build/generated-sources/api/src/models/ConfigContent.d.ts +37 -0
- package/build/generated-sources/api/src/models/ConfigContent.js +53 -0
- package/build/generated-sources/api/src/models/ConfigContentAllOf.d.ts +31 -0
- package/build/generated-sources/api/src/models/ConfigContentAllOf.js +50 -0
- package/build/generated-sources/api/src/models/Connection.d.ts +82 -0
- package/build/generated-sources/api/src/models/Connection.js +76 -0
- package/build/generated-sources/api/src/models/Consumer.d.ts +55 -0
- package/build/generated-sources/api/src/models/Consumer.js +62 -0
- package/build/generated-sources/api/src/models/CreateConsumerRequest.d.ts +37 -0
- package/build/generated-sources/api/src/models/CreateConsumerRequest.js +53 -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/CreateDestinationRequestMetadata.js +52 -0
- package/build/generated-sources/api/src/models/CreateGroupRequest.d.ts +37 -0
- package/build/generated-sources/api/src/models/CreateGroupRequest.js +53 -0
- package/build/generated-sources/api/src/models/CreateInstallationRequest.d.ts +44 -0
- package/build/generated-sources/api/src/models/CreateInstallationRequest.js +57 -0
- package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.d.ts +44 -0
- package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.js +57 -0
- package/build/generated-sources/api/src/models/CreateIntegrationRequest.d.ts +44 -0
- package/build/generated-sources/api/src/models/CreateIntegrationRequest.js +57 -0
- package/build/generated-sources/api/src/models/CreateIntegrationRequestLatestRevision.d.ts +31 -0
- package/build/generated-sources/api/src/models/CreateIntegrationRequestLatestRevision.js +50 -0
- package/build/generated-sources/api/src/models/CreateProjectRequest.d.ts +37 -0
- package/build/generated-sources/api/src/models/CreateProjectRequest.js +53 -0
- package/build/generated-sources/api/src/models/CreateProviderAppRequest.d.ts +49 -0
- package/build/generated-sources/api/src/models/CreateProviderAppRequest.js +59 -0
- package/build/generated-sources/api/src/models/Group.d.ts +55 -0
- package/build/generated-sources/api/src/models/Group.js +62 -0
- package/build/generated-sources/api/src/models/HydratedIntegration.d.ts +50 -0
- package/build/generated-sources/api/src/models/HydratedIntegration.js +59 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationField.d.ts +22 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationField.js +45 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationFieldExistent.d.ts +37 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationFieldExistent.js +53 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationObject.d.ts +75 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationObject.js +70 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationRead.d.ts +32 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationRead.js +51 -0
- package/build/generated-sources/api/src/models/HydratedRevision.d.ts +50 -0
- package/build/generated-sources/api/src/models/HydratedRevision.js +60 -0
- package/build/generated-sources/api/src/models/ImportConnectionRequest.d.ts +85 -0
- package/build/generated-sources/api/src/models/ImportConnectionRequest.js +75 -0
- package/build/generated-sources/api/src/models/ImportInstallationRequest.d.ts +39 -0
- package/build/generated-sources/api/src/models/ImportInstallationRequest.js +55 -0
- package/build/generated-sources/api/src/models/ImportInstallationRequestConfig.d.ts +38 -0
- package/build/generated-sources/api/src/models/ImportInstallationRequestConfig.js +54 -0
- package/build/generated-sources/api/src/models/Installation.d.ts +88 -0
- package/build/generated-sources/api/src/models/Installation.js +79 -0
- package/build/generated-sources/api/src/models/Integration.d.ts +68 -0
- package/build/generated-sources/api/src/models/Integration.js +69 -0
- package/build/generated-sources/api/src/models/Integration1.d.ts +50 -0
- package/build/generated-sources/api/src/models/Integration1.js +59 -0
- package/build/generated-sources/api/src/models/IntegrationField.d.ts +22 -0
- package/build/generated-sources/api/src/models/IntegrationField.js +45 -0
- package/build/generated-sources/api/src/models/IntegrationFieldExistent.d.ts +31 -0
- package/build/generated-sources/api/src/models/IntegrationFieldExistent.js +50 -0
- package/build/generated-sources/api/src/models/IntegrationFieldMapping.d.ts +49 -0
- package/build/generated-sources/api/src/models/IntegrationFieldMapping.js +57 -0
- package/build/generated-sources/api/src/models/IntegrationObject.d.ts +63 -0
- package/build/generated-sources/api/src/models/IntegrationObject.js +65 -0
- package/build/generated-sources/api/src/models/IntegrationRead.d.ts +32 -0
- package/build/generated-sources/api/src/models/IntegrationRead.js +51 -0
- package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +73 -0
- package/build/generated-sources/api/src/models/OauthConnectRequest.js +70 -0
- package/build/generated-sources/api/src/models/Operation.d.ts +80 -0
- package/build/generated-sources/api/src/models/Operation.js +73 -0
- package/build/generated-sources/api/src/models/OperationError.d.ts +49 -0
- package/build/generated-sources/api/src/models/OperationError.js +56 -0
- package/build/generated-sources/api/src/models/OptionalFieldsAutoOption.d.ts +22 -0
- package/build/generated-sources/api/src/models/OptionalFieldsAutoOption.js +35 -0
- package/build/generated-sources/api/src/models/Project.d.ts +55 -0
- package/build/generated-sources/api/src/models/Project.js +62 -0
- package/build/generated-sources/api/src/models/ProjectMembership.d.ts +56 -0
- package/build/generated-sources/api/src/models/ProjectMembership.js +63 -0
- package/build/generated-sources/api/src/models/ProviderApp.d.ts +67 -0
- package/build/generated-sources/api/src/models/ProviderApp.js +67 -0
- package/build/generated-sources/api/src/models/Revision.d.ts +50 -0
- package/build/generated-sources/api/src/models/Revision.js +60 -0
- package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.js +53 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallation.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallation.js +53 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.d.ts +44 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.js +55 -0
- package/build/generated-sources/api/src/models/UpdateProjectRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateProjectRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateProjectRequestProject.d.ts +37 -0
- package/build/generated-sources/api/src/models/UpdateProjectRequestProject.js +52 -0
- package/build/generated-sources/api/src/models/UpdateProviderAppRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateProviderAppRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateProviderAppRequestProviderApp.d.ts +49 -0
- package/build/generated-sources/api/src/models/UpdateProviderAppRequestProviderApp.js +56 -0
- package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.d.ts +37 -0
- package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.js +53 -0
- package/build/generated-sources/api/src/models/index.d.ts +54 -0
- package/build/generated-sources/api/src/models/index.js +72 -0
- package/build/generated-sources/api/src/runtime.d.ts +182 -0
- package/build/generated-sources/api/src/runtime.js +317 -0
- package/build/src/assets/LoadingIcon.d.ts +5 -0
- package/build/src/assets/LoadingIcon.js +9 -0
- package/build/src/assets/NavIcon.d.ts +1 -0
- package/build/src/assets/NavIcon.js +23 -0
- package/build/src/components/AmpersandProvider/AmpersandProvider.d.ts +19 -0
- package/build/src/components/AmpersandProvider/AmpersandProvider.js +31 -0
- package/build/src/components/AmpersandProvider/index.d.ts +1 -0
- package/build/src/components/AmpersandProvider/index.js +17 -0
- package/build/src/components/CenteredTextBox/CenteredTextBox.d.ts +5 -0
- package/build/src/components/CenteredTextBox/CenteredTextBox.js +8 -0
- package/build/src/components/Configure/ConfigureInstallationBase.d.ts +8 -0
- package/build/src/components/Configure/ConfigureInstallationBase.js +17 -0
- package/build/src/components/Configure/CreateInstallation.d.ts +1 -0
- package/build/src/components/Configure/CreateInstallation.js +73 -0
- package/build/src/components/Configure/ErrorTextBox.d.ts +5 -0
- package/build/src/components/Configure/ErrorTextBox.js +9 -0
- package/build/src/components/Configure/InstallIntegration.d.ts +9 -0
- package/build/src/components/Configure/InstallIntegration.js +40 -0
- package/build/src/components/Configure/ObjectManagementNav/NavObjectItem.d.ts +8 -0
- package/build/src/components/Configure/ObjectManagementNav/NavObjectItem.js +14 -0
- package/build/src/components/Configure/ObjectManagementNav/index.d.ts +9 -0
- package/build/src/components/Configure/ObjectManagementNav/index.js +45 -0
- package/build/src/components/Configure/ProtectedConnectionLayout.d.ts +6 -0
- package/build/src/components/Configure/ProtectedConnectionLayout.js +28 -0
- package/build/src/components/Configure/UpdateInstallation.d.ts +7 -0
- package/build/src/components/Configure/UpdateInstallation.js +87 -0
- package/build/src/components/Configure/actions/onSaveCreate.d.ts +3 -0
- package/build/src/components/Configure/actions/onSaveCreate.js +90 -0
- package/build/src/components/Configure/actions/onSaveUpdate.d.ts +3 -0
- package/build/src/components/Configure/actions/onSaveUpdate.js +74 -0
- package/build/src/components/Configure/fields/FieldHeader.d.ts +5 -0
- package/build/src/components/Configure/fields/FieldHeader.js +9 -0
- package/build/src/components/Configure/fields/FieldMapping.d.ts +10 -0
- package/build/src/components/Configure/fields/FieldMapping.js +28 -0
- package/build/src/components/Configure/fields/OptionalFields.d.ts +1 -0
- package/build/src/components/Configure/fields/OptionalFields.js +45 -0
- package/build/src/components/Configure/fields/RequiredFieldMappings.d.ts +1 -0
- package/build/src/components/Configure/fields/RequiredFieldMappings.js +40 -0
- package/build/src/components/Configure/fields/RequiredFields.d.ts +1 -0
- package/build/src/components/Configure/fields/RequiredFields.js +27 -0
- package/build/src/components/Configure/index.d.ts +1 -0
- package/build/src/components/Configure/index.js +5 -0
- package/build/src/components/Configure/state/ConfigurationStateProvider.d.ts +13 -0
- package/build/src/components/Configure/state/ConfigurationStateProvider.js +54 -0
- package/build/src/components/Configure/state/HydratedRevisionContext.d.ts +14 -0
- package/build/src/components/Configure/state/HydratedRevisionContext.js +82 -0
- package/build/src/components/Configure/state/utils.d.ts +34 -0
- package/build/src/components/Configure/state/utils.js +146 -0
- package/build/src/components/Configure/types.d.ts +31 -0
- package/build/src/components/Configure/types.js +2 -0
- package/build/src/components/Configure/utils.d.ts +24 -0
- package/build/src/components/Configure/utils.js +82 -0
- package/build/src/components/OAuthPopup/OAuthPopup.d.ts +14 -0
- package/build/src/components/OAuthPopup/OAuthPopup.js +85 -0
- package/build/src/components/Salesforce/SalesforceOauthFlow.d.ts +16 -0
- package/build/src/components/Salesforce/SalesforceOauthFlow.js +78 -0
- package/build/src/components/ThemeProvider/index.d.ts +6 -0
- package/build/src/components/ThemeProvider/index.js +37 -0
- package/build/src/components/index.d.ts +2 -0
- package/build/src/components/index.js +18 -0
- package/build/src/constants.d.ts +1 -0
- package/build/src/constants.js +4 -0
- package/build/src/context/ApiKeyContext.d.ts +3 -0
- package/build/src/context/ApiKeyContext.js +6 -0
- package/build/src/context/ConnectionsContext.d.ts +16 -0
- package/build/src/context/ConnectionsContext.js +57 -0
- package/build/src/context/ErrorContextProvider.d.ts +37 -0
- package/build/src/context/ErrorContextProvider.js +72 -0
- package/build/src/context/InstallIntegrationContext.d.ts +24 -0
- package/build/src/context/InstallIntegrationContext.js +90 -0
- package/build/src/context/IntegrationListContext.d.ts +13 -0
- package/build/src/context/IntegrationListContext.js +48 -0
- package/build/src/context/ProjectContext.d.ts +15 -0
- package/build/src/context/ProjectContext.js +50 -0
- package/build/src/hooks/index.d.ts +1 -0
- package/build/src/hooks/index.js +17 -0
- package/build/src/hooks/useIsIntegrationInstalled.d.ts +6 -0
- package/build/src/hooks/useIsIntegrationInstalled.js +48 -0
- package/build/src/index.d.ts +2 -0
- package/build/src/index.js +18 -0
- package/build/src/services/api.d.ts +9 -0
- package/build/src/services/api.js +64 -0
- package/build/src/utils/index.d.ts +10 -0
- package/build/src/utils/index.js +21 -0
- package/package.json +80 -0
|
@@ -0,0 +1,60 @@
|
|
|
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: 0.1.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.HydratedRevisionToJSON = exports.HydratedRevisionFromJSONTyped = exports.HydratedRevisionFromJSON = exports.instanceOfHydratedRevision = void 0;
|
|
17
|
+
const HydratedIntegration_1 = require("./HydratedIntegration");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the HydratedRevision interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfHydratedRevision(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "specVersion" in value;
|
|
25
|
+
isInstance = isInstance && "createTime" in value;
|
|
26
|
+
isInstance = isInstance && "content" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfHydratedRevision = instanceOfHydratedRevision;
|
|
30
|
+
function HydratedRevisionFromJSON(json) {
|
|
31
|
+
return HydratedRevisionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.HydratedRevisionFromJSON = HydratedRevisionFromJSON;
|
|
34
|
+
function HydratedRevisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'specVersion': json['specVersion'],
|
|
41
|
+
'createTime': (new Date(json['createTime'])),
|
|
42
|
+
'content': (0, HydratedIntegration_1.HydratedIntegrationFromJSON)(json['content']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.HydratedRevisionFromJSONTyped = HydratedRevisionFromJSONTyped;
|
|
46
|
+
function HydratedRevisionToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value.id,
|
|
55
|
+
'specVersion': value.specVersion,
|
|
56
|
+
'createTime': (value.createTime.toISOString()),
|
|
57
|
+
'content': (0, HydratedIntegration_1.HydratedIntegrationToJSON)(value.content),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.HydratedRevisionToJSON = HydratedRevisionToJSON;
|
|
@@ -0,0 +1,85 @@
|
|
|
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: 0.1.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 ImportConnectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ImportConnectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The SaaS provider that this installation connects to.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ImportConnectionRequest
|
|
22
|
+
*/
|
|
23
|
+
provider: string;
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ImportConnectionRequest
|
|
28
|
+
*/
|
|
29
|
+
providerAppId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the user group that has access to this installation. This is any ID that your app uses to identify a group of users - such as an org, team, or workspace.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ImportConnectionRequest
|
|
34
|
+
*/
|
|
35
|
+
groupRef: string;
|
|
36
|
+
/**
|
|
37
|
+
* The display name of the user group that has access to this installation.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ImportConnectionRequest
|
|
40
|
+
*/
|
|
41
|
+
groupName: string;
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the user whose credential was used for this connection. This is the ID that your app uses to identify a user - such as a user ID or username.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ImportConnectionRequest
|
|
46
|
+
*/
|
|
47
|
+
consumerRef: string;
|
|
48
|
+
/**
|
|
49
|
+
* The display name of the user whose credential was used for this connection.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ImportConnectionRequest
|
|
52
|
+
*/
|
|
53
|
+
consumerName: string;
|
|
54
|
+
/**
|
|
55
|
+
* The identifier for the provider workspace (e.g. the Salesforce subdomain)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ImportConnectionRequest
|
|
58
|
+
*/
|
|
59
|
+
providerWorkspaceRef: string;
|
|
60
|
+
/**
|
|
61
|
+
* The ID that Salesforce/Hubspot uses to identify this user (e.g. Salesforce has IDs in the form of https://login.salesforce.com/id/00D4x0000019CQTEA2/0054x000000orJ4AA)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ImportConnectionRequest
|
|
64
|
+
*/
|
|
65
|
+
providerConsumerRef?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The refresh token.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ImportConnectionRequest
|
|
70
|
+
*/
|
|
71
|
+
refreshToken: string;
|
|
72
|
+
/**
|
|
73
|
+
* The OAuth scopes for this token. If it is unknown, then leave this field empty.
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof ImportConnectionRequest
|
|
76
|
+
*/
|
|
77
|
+
scopes?: Array<string>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the ImportConnectionRequest interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfImportConnectionRequest(value: object): boolean;
|
|
83
|
+
export declare function ImportConnectionRequestFromJSON(json: any): ImportConnectionRequest;
|
|
84
|
+
export declare function ImportConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportConnectionRequest;
|
|
85
|
+
export declare function ImportConnectionRequestToJSON(value?: ImportConnectionRequest | null): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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: 0.1.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.ImportConnectionRequestToJSON = exports.ImportConnectionRequestFromJSONTyped = exports.ImportConnectionRequestFromJSON = exports.instanceOfImportConnectionRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ImportConnectionRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfImportConnectionRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "provider" in value;
|
|
24
|
+
isInstance = isInstance && "groupRef" in value;
|
|
25
|
+
isInstance = isInstance && "groupName" in value;
|
|
26
|
+
isInstance = isInstance && "consumerRef" in value;
|
|
27
|
+
isInstance = isInstance && "consumerName" in value;
|
|
28
|
+
isInstance = isInstance && "providerWorkspaceRef" in value;
|
|
29
|
+
isInstance = isInstance && "refreshToken" in value;
|
|
30
|
+
return isInstance;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfImportConnectionRequest = instanceOfImportConnectionRequest;
|
|
33
|
+
function ImportConnectionRequestFromJSON(json) {
|
|
34
|
+
return ImportConnectionRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.ImportConnectionRequestFromJSON = ImportConnectionRequestFromJSON;
|
|
37
|
+
function ImportConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if ((json === undefined) || (json === null)) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'provider': json['provider'],
|
|
43
|
+
'providerAppId': !(0, runtime_1.exists)(json, 'providerAppId') ? undefined : json['providerAppId'],
|
|
44
|
+
'groupRef': json['groupRef'],
|
|
45
|
+
'groupName': json['groupName'],
|
|
46
|
+
'consumerRef': json['consumerRef'],
|
|
47
|
+
'consumerName': json['consumerName'],
|
|
48
|
+
'providerWorkspaceRef': json['providerWorkspaceRef'],
|
|
49
|
+
'providerConsumerRef': !(0, runtime_1.exists)(json, 'providerConsumerRef') ? undefined : json['providerConsumerRef'],
|
|
50
|
+
'refreshToken': json['refreshToken'],
|
|
51
|
+
'scopes': !(0, runtime_1.exists)(json, 'scopes') ? undefined : json['scopes'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ImportConnectionRequestFromJSONTyped = ImportConnectionRequestFromJSONTyped;
|
|
55
|
+
function ImportConnectionRequestToJSON(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (value === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'provider': value.provider,
|
|
64
|
+
'providerAppId': value.providerAppId,
|
|
65
|
+
'groupRef': value.groupRef,
|
|
66
|
+
'groupName': value.groupName,
|
|
67
|
+
'consumerRef': value.consumerRef,
|
|
68
|
+
'consumerName': value.consumerName,
|
|
69
|
+
'providerWorkspaceRef': value.providerWorkspaceRef,
|
|
70
|
+
'providerConsumerRef': value.providerConsumerRef,
|
|
71
|
+
'refreshToken': value.refreshToken,
|
|
72
|
+
'scopes': value.scopes,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
exports.ImportConnectionRequestToJSON = ImportConnectionRequestToJSON;
|
|
@@ -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: 0.1.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 { ImportConnectionRequest } from './ImportConnectionRequest';
|
|
13
|
+
import type { ImportInstallationRequestConfig } from './ImportInstallationRequestConfig';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ImportInstallationRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface ImportInstallationRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ImportConnectionRequest}
|
|
23
|
+
* @memberof ImportInstallationRequest
|
|
24
|
+
*/
|
|
25
|
+
connection: ImportConnectionRequest;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ImportInstallationRequestConfig}
|
|
29
|
+
* @memberof ImportInstallationRequest
|
|
30
|
+
*/
|
|
31
|
+
config: ImportInstallationRequestConfig;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ImportInstallationRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfImportInstallationRequest(value: object): boolean;
|
|
37
|
+
export declare function ImportInstallationRequestFromJSON(json: any): ImportInstallationRequest;
|
|
38
|
+
export declare function ImportInstallationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportInstallationRequest;
|
|
39
|
+
export declare function ImportInstallationRequestToJSON(value?: ImportInstallationRequest | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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: 0.1.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.ImportInstallationRequestToJSON = exports.ImportInstallationRequestFromJSONTyped = exports.ImportInstallationRequestFromJSON = exports.instanceOfImportInstallationRequest = void 0;
|
|
17
|
+
const ImportConnectionRequest_1 = require("./ImportConnectionRequest");
|
|
18
|
+
const ImportInstallationRequestConfig_1 = require("./ImportInstallationRequestConfig");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ImportInstallationRequest interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfImportInstallationRequest(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "connection" in value;
|
|
25
|
+
isInstance = isInstance && "config" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfImportInstallationRequest = instanceOfImportInstallationRequest;
|
|
29
|
+
function ImportInstallationRequestFromJSON(json) {
|
|
30
|
+
return ImportInstallationRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.ImportInstallationRequestFromJSON = ImportInstallationRequestFromJSON;
|
|
33
|
+
function ImportInstallationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'connection': (0, ImportConnectionRequest_1.ImportConnectionRequestFromJSON)(json['connection']),
|
|
39
|
+
'config': (0, ImportInstallationRequestConfig_1.ImportInstallationRequestConfigFromJSON)(json['config']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.ImportInstallationRequestFromJSONTyped = ImportInstallationRequestFromJSONTyped;
|
|
43
|
+
function ImportInstallationRequestToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'connection': (0, ImportConnectionRequest_1.ImportConnectionRequestToJSON)(value.connection),
|
|
52
|
+
'config': (0, ImportInstallationRequestConfig_1.ImportInstallationRequestConfigToJSON)(value.config),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.ImportInstallationRequestToJSON = ImportInstallationRequestToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
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: 0.1.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 { ConfigContent } from './ConfigContent';
|
|
13
|
+
/**
|
|
14
|
+
* The config of the installation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ImportInstallationRequestConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface ImportInstallationRequestConfig {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the integration revision that this config is based on. If omitted, the latest revision is assumed.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ImportInstallationRequestConfig
|
|
23
|
+
*/
|
|
24
|
+
revisionId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ConfigContent}
|
|
28
|
+
* @memberof ImportInstallationRequestConfig
|
|
29
|
+
*/
|
|
30
|
+
content: ConfigContent;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ImportInstallationRequestConfig interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfImportInstallationRequestConfig(value: object): boolean;
|
|
36
|
+
export declare function ImportInstallationRequestConfigFromJSON(json: any): ImportInstallationRequestConfig;
|
|
37
|
+
export declare function ImportInstallationRequestConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportInstallationRequestConfig;
|
|
38
|
+
export declare function ImportInstallationRequestConfigToJSON(value?: ImportInstallationRequestConfig | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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: 0.1.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.ImportInstallationRequestConfigToJSON = exports.ImportInstallationRequestConfigFromJSONTyped = exports.ImportInstallationRequestConfigFromJSON = exports.instanceOfImportInstallationRequestConfig = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const ConfigContent_1 = require("./ConfigContent");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ImportInstallationRequestConfig interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfImportInstallationRequestConfig(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "content" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfImportInstallationRequestConfig = instanceOfImportInstallationRequestConfig;
|
|
28
|
+
function ImportInstallationRequestConfigFromJSON(json) {
|
|
29
|
+
return ImportInstallationRequestConfigFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.ImportInstallationRequestConfigFromJSON = ImportInstallationRequestConfigFromJSON;
|
|
32
|
+
function ImportInstallationRequestConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'revisionId': !(0, runtime_1.exists)(json, 'revisionId') ? undefined : json['revisionId'],
|
|
38
|
+
'content': (0, ConfigContent_1.ConfigContentFromJSON)(json['content']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.ImportInstallationRequestConfigFromJSONTyped = ImportInstallationRequestConfigFromJSONTyped;
|
|
42
|
+
function ImportInstallationRequestConfigToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'revisionId': value.revisionId,
|
|
51
|
+
'content': (0, ConfigContent_1.ConfigContentToJSON)(value.content),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ImportInstallationRequestConfigToJSON = ImportInstallationRequestConfigToJSON;
|
|
@@ -0,0 +1,88 @@
|
|
|
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: 0.1.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 { Config } from './Config';
|
|
13
|
+
import type { Connection } from './Connection';
|
|
14
|
+
import type { Group } from './Group';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Installation
|
|
19
|
+
*/
|
|
20
|
+
export interface Installation {
|
|
21
|
+
/**
|
|
22
|
+
* The installation ID.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Installation
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The Ampersand project ID.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Installation
|
|
31
|
+
*/
|
|
32
|
+
projectId: string;
|
|
33
|
+
/**
|
|
34
|
+
* The integration ID.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof Installation
|
|
37
|
+
*/
|
|
38
|
+
integrationId: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Group}
|
|
42
|
+
* @memberof Installation
|
|
43
|
+
*/
|
|
44
|
+
group?: Group;
|
|
45
|
+
/**
|
|
46
|
+
* The health status of the installation ("healthy", "unhealthy").
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof Installation
|
|
49
|
+
*/
|
|
50
|
+
healthStatus: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Connection}
|
|
54
|
+
* @memberof Installation
|
|
55
|
+
*/
|
|
56
|
+
connection: Connection;
|
|
57
|
+
/**
|
|
58
|
+
* The time the integration was first installed.
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof Installation
|
|
61
|
+
*/
|
|
62
|
+
createTime: Date;
|
|
63
|
+
/**
|
|
64
|
+
* The person who did the installation, in the format of "consumer:{consumer-id}".
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof Installation
|
|
67
|
+
*/
|
|
68
|
+
createdBy: string;
|
|
69
|
+
/**
|
|
70
|
+
* The time the installation was last updated with a new config.
|
|
71
|
+
* @type {Date}
|
|
72
|
+
* @memberof Installation
|
|
73
|
+
*/
|
|
74
|
+
updateTime?: Date;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Config}
|
|
78
|
+
* @memberof Installation
|
|
79
|
+
*/
|
|
80
|
+
config: Config;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the Installation interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfInstallation(value: object): boolean;
|
|
86
|
+
export declare function InstallationFromJSON(json: any): Installation;
|
|
87
|
+
export declare function InstallationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Installation;
|
|
88
|
+
export declare function InstallationToJSON(value?: Installation | null): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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: 0.1.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.InstallationToJSON = exports.InstallationFromJSONTyped = exports.InstallationFromJSON = exports.instanceOfInstallation = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const Config_1 = require("./Config");
|
|
19
|
+
const Connection_1 = require("./Connection");
|
|
20
|
+
const Group_1 = require("./Group");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Installation interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfInstallation(value) {
|
|
25
|
+
let isInstance = true;
|
|
26
|
+
isInstance = isInstance && "id" in value;
|
|
27
|
+
isInstance = isInstance && "projectId" in value;
|
|
28
|
+
isInstance = isInstance && "integrationId" in value;
|
|
29
|
+
isInstance = isInstance && "healthStatus" in value;
|
|
30
|
+
isInstance = isInstance && "connection" in value;
|
|
31
|
+
isInstance = isInstance && "createTime" in value;
|
|
32
|
+
isInstance = isInstance && "createdBy" in value;
|
|
33
|
+
isInstance = isInstance && "config" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfInstallation = instanceOfInstallation;
|
|
37
|
+
function InstallationFromJSON(json) {
|
|
38
|
+
return InstallationFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.InstallationFromJSON = InstallationFromJSON;
|
|
41
|
+
function InstallationFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'projectId': json['projectId'],
|
|
48
|
+
'integrationId': json['integrationId'],
|
|
49
|
+
'group': !(0, runtime_1.exists)(json, 'group') ? undefined : (0, Group_1.GroupFromJSON)(json['group']),
|
|
50
|
+
'healthStatus': json['healthStatus'],
|
|
51
|
+
'connection': (0, Connection_1.ConnectionFromJSON)(json['connection']),
|
|
52
|
+
'createTime': (new Date(json['createTime'])),
|
|
53
|
+
'createdBy': json['createdBy'],
|
|
54
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
55
|
+
'config': (0, Config_1.ConfigFromJSON)(json['config']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.InstallationFromJSONTyped = InstallationFromJSONTyped;
|
|
59
|
+
function InstallationToJSON(value) {
|
|
60
|
+
if (value === undefined) {
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
if (value === null) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value.id,
|
|
68
|
+
'projectId': value.projectId,
|
|
69
|
+
'integrationId': value.integrationId,
|
|
70
|
+
'group': (0, Group_1.GroupToJSON)(value.group),
|
|
71
|
+
'healthStatus': value.healthStatus,
|
|
72
|
+
'connection': (0, Connection_1.ConnectionToJSON)(value.connection),
|
|
73
|
+
'createTime': (value.createTime.toISOString()),
|
|
74
|
+
'createdBy': value.createdBy,
|
|
75
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
76
|
+
'config': (0, Config_1.ConfigToJSON)(value.config),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
exports.InstallationToJSON = InstallationToJSON;
|
|
@@ -0,0 +1,68 @@
|
|
|
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: 0.1.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 { Revision } from './Revision';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Integration
|
|
17
|
+
*/
|
|
18
|
+
export interface Integration {
|
|
19
|
+
/**
|
|
20
|
+
* The integration ID.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Integration
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The Ampersand project ID.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Integration
|
|
29
|
+
*/
|
|
30
|
+
projectId: string;
|
|
31
|
+
/**
|
|
32
|
+
* The integration name.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Integration
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* The SaaS provider that this integration connects to.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Integration
|
|
41
|
+
*/
|
|
42
|
+
provider: string;
|
|
43
|
+
/**
|
|
44
|
+
* The time the integration was created.
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof Integration
|
|
47
|
+
*/
|
|
48
|
+
createTime: Date;
|
|
49
|
+
/**
|
|
50
|
+
* The time the integration was last updated.
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof Integration
|
|
53
|
+
*/
|
|
54
|
+
updateTime?: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Revision}
|
|
58
|
+
* @memberof Integration
|
|
59
|
+
*/
|
|
60
|
+
latestRevision: Revision;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the Integration interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfIntegration(value: object): boolean;
|
|
66
|
+
export declare function IntegrationFromJSON(json: any): Integration;
|
|
67
|
+
export declare function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration;
|
|
68
|
+
export declare function IntegrationToJSON(value?: Integration | null): any;
|