@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,55 @@
|
|
|
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 Group
|
|
16
|
+
*/
|
|
17
|
+
export interface Group {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the user group that has access to this installation.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Group
|
|
22
|
+
*/
|
|
23
|
+
groupRef: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the user group that has access to this installation.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Group
|
|
28
|
+
*/
|
|
29
|
+
groupName: string;
|
|
30
|
+
/**
|
|
31
|
+
* The Ampersand project ID.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Group
|
|
34
|
+
*/
|
|
35
|
+
projectId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The time the group was created.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof Group
|
|
40
|
+
*/
|
|
41
|
+
createTime: Date;
|
|
42
|
+
/**
|
|
43
|
+
* The time the group was last updated.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof Group
|
|
46
|
+
*/
|
|
47
|
+
updateTime?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the Group interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGroup(value: object): boolean;
|
|
53
|
+
export declare function GroupFromJSON(json: any): Group;
|
|
54
|
+
export declare function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Group;
|
|
55
|
+
export declare function GroupToJSON(value?: Group | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.GroupToJSON = exports.GroupFromJSONTyped = exports.GroupFromJSON = exports.instanceOfGroup = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Group interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfGroup(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "groupRef" in value;
|
|
24
|
+
isInstance = isInstance && "groupName" in value;
|
|
25
|
+
isInstance = isInstance && "projectId" in value;
|
|
26
|
+
isInstance = isInstance && "createTime" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfGroup = instanceOfGroup;
|
|
30
|
+
function GroupFromJSON(json) {
|
|
31
|
+
return GroupFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.GroupFromJSON = GroupFromJSON;
|
|
34
|
+
function GroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'groupRef': json['groupRef'],
|
|
40
|
+
'groupName': json['groupName'],
|
|
41
|
+
'projectId': json['projectId'],
|
|
42
|
+
'createTime': (new Date(json['createTime'])),
|
|
43
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.GroupFromJSONTyped = GroupFromJSONTyped;
|
|
47
|
+
function GroupToJSON(value) {
|
|
48
|
+
if (value === undefined) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'groupRef': value.groupRef,
|
|
56
|
+
'groupName': value.groupName,
|
|
57
|
+
'projectId': value.projectId,
|
|
58
|
+
'createTime': (value.createTime.toISOString()),
|
|
59
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.GroupToJSON = GroupToJSON;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { HydratedIntegrationRead } from './HydratedIntegrationRead';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface HydratedIntegration
|
|
17
|
+
*/
|
|
18
|
+
export interface HydratedIntegration {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof HydratedIntegration
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof HydratedIntegration
|
|
29
|
+
*/
|
|
30
|
+
displayName?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof HydratedIntegration
|
|
35
|
+
*/
|
|
36
|
+
provider: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {HydratedIntegrationRead}
|
|
40
|
+
* @memberof HydratedIntegration
|
|
41
|
+
*/
|
|
42
|
+
read?: HydratedIntegrationRead;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the HydratedIntegration interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfHydratedIntegration(value: object): boolean;
|
|
48
|
+
export declare function HydratedIntegrationFromJSON(json: any): HydratedIntegration;
|
|
49
|
+
export declare function HydratedIntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegration;
|
|
50
|
+
export declare function HydratedIntegrationToJSON(value?: HydratedIntegration | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.HydratedIntegrationToJSON = exports.HydratedIntegrationFromJSONTyped = exports.HydratedIntegrationFromJSON = exports.instanceOfHydratedIntegration = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const HydratedIntegrationRead_1 = require("./HydratedIntegrationRead");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the HydratedIntegration interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfHydratedIntegration(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "provider" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfHydratedIntegration = instanceOfHydratedIntegration;
|
|
29
|
+
function HydratedIntegrationFromJSON(json) {
|
|
30
|
+
return HydratedIntegrationFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.HydratedIntegrationFromJSON = HydratedIntegrationFromJSON;
|
|
33
|
+
function HydratedIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'displayName': !(0, runtime_1.exists)(json, 'displayName') ? undefined : json['displayName'],
|
|
40
|
+
'provider': json['provider'],
|
|
41
|
+
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, HydratedIntegrationRead_1.HydratedIntegrationReadFromJSON)(json['read']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.HydratedIntegrationFromJSONTyped = HydratedIntegrationFromJSONTyped;
|
|
45
|
+
function HydratedIntegrationToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value.name,
|
|
54
|
+
'displayName': value.displayName,
|
|
55
|
+
'provider': value.provider,
|
|
56
|
+
'read': (0, HydratedIntegrationRead_1.HydratedIntegrationReadToJSON)(value.read),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.HydratedIntegrationToJSON = HydratedIntegrationToJSON;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { HydratedIntegrationFieldExistent } from './HydratedIntegrationFieldExistent';
|
|
13
|
+
import { IntegrationFieldMapping } from './IntegrationFieldMapping';
|
|
14
|
+
/**
|
|
15
|
+
* @type HydratedIntegrationField
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type HydratedIntegrationField = HydratedIntegrationFieldExistent | IntegrationFieldMapping;
|
|
20
|
+
export declare function HydratedIntegrationFieldFromJSON(json: any): HydratedIntegrationField;
|
|
21
|
+
export declare function HydratedIntegrationFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegrationField;
|
|
22
|
+
export declare function HydratedIntegrationFieldToJSON(value?: HydratedIntegrationField | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.HydratedIntegrationFieldToJSON = exports.HydratedIntegrationFieldFromJSONTyped = exports.HydratedIntegrationFieldFromJSON = void 0;
|
|
17
|
+
const HydratedIntegrationFieldExistent_1 = require("./HydratedIntegrationFieldExistent");
|
|
18
|
+
const IntegrationFieldMapping_1 = require("./IntegrationFieldMapping");
|
|
19
|
+
function HydratedIntegrationFieldFromJSON(json) {
|
|
20
|
+
return HydratedIntegrationFieldFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.HydratedIntegrationFieldFromJSON = HydratedIntegrationFieldFromJSON;
|
|
23
|
+
function HydratedIntegrationFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return Object.assign(Object.assign({}, (0, HydratedIntegrationFieldExistent_1.HydratedIntegrationFieldExistentFromJSONTyped)(json, true)), (0, IntegrationFieldMapping_1.IntegrationFieldMappingFromJSONTyped)(json, true));
|
|
28
|
+
}
|
|
29
|
+
exports.HydratedIntegrationFieldFromJSONTyped = HydratedIntegrationFieldFromJSONTyped;
|
|
30
|
+
function HydratedIntegrationFieldToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
if ((0, HydratedIntegrationFieldExistent_1.instanceOfHydratedIntegrationFieldExistent)(value)) {
|
|
38
|
+
return (0, HydratedIntegrationFieldExistent_1.HydratedIntegrationFieldExistentToJSON)(value);
|
|
39
|
+
}
|
|
40
|
+
if ((0, IntegrationFieldMapping_1.instanceOfIntegrationFieldMapping)(value)) {
|
|
41
|
+
return (0, IntegrationFieldMapping_1.IntegrationFieldMappingToJSON)(value);
|
|
42
|
+
}
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
45
|
+
exports.HydratedIntegrationFieldToJSON = HydratedIntegrationFieldToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 HydratedIntegrationFieldExistent
|
|
16
|
+
*/
|
|
17
|
+
export interface HydratedIntegrationFieldExistent {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HydratedIntegrationFieldExistent
|
|
22
|
+
*/
|
|
23
|
+
fieldName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof HydratedIntegrationFieldExistent
|
|
28
|
+
*/
|
|
29
|
+
displayName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the HydratedIntegrationFieldExistent interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfHydratedIntegrationFieldExistent(value: object): boolean;
|
|
35
|
+
export declare function HydratedIntegrationFieldExistentFromJSON(json: any): HydratedIntegrationFieldExistent;
|
|
36
|
+
export declare function HydratedIntegrationFieldExistentFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegrationFieldExistent;
|
|
37
|
+
export declare function HydratedIntegrationFieldExistentToJSON(value?: HydratedIntegrationFieldExistent | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.HydratedIntegrationFieldExistentToJSON = exports.HydratedIntegrationFieldExistentFromJSONTyped = exports.HydratedIntegrationFieldExistentFromJSON = exports.instanceOfHydratedIntegrationFieldExistent = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the HydratedIntegrationFieldExistent interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfHydratedIntegrationFieldExistent(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "fieldName" in value;
|
|
23
|
+
isInstance = isInstance && "displayName" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfHydratedIntegrationFieldExistent = instanceOfHydratedIntegrationFieldExistent;
|
|
27
|
+
function HydratedIntegrationFieldExistentFromJSON(json) {
|
|
28
|
+
return HydratedIntegrationFieldExistentFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.HydratedIntegrationFieldExistentFromJSON = HydratedIntegrationFieldExistentFromJSON;
|
|
31
|
+
function HydratedIntegrationFieldExistentFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'fieldName': json['fieldName'],
|
|
37
|
+
'displayName': json['displayName'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.HydratedIntegrationFieldExistentFromJSONTyped = HydratedIntegrationFieldExistentFromJSONTyped;
|
|
41
|
+
function HydratedIntegrationFieldExistentToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'fieldName': value.fieldName,
|
|
50
|
+
'displayName': value.displayName,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.HydratedIntegrationFieldExistentToJSON = HydratedIntegrationFieldExistentToJSON;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { HydratedIntegrationField } from './HydratedIntegrationField';
|
|
13
|
+
import type { OptionalFieldsAutoOption } from './OptionalFieldsAutoOption';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface HydratedIntegrationObject
|
|
18
|
+
*/
|
|
19
|
+
export interface HydratedIntegrationObject {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof HydratedIntegrationObject
|
|
24
|
+
*/
|
|
25
|
+
objectName: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof HydratedIntegrationObject
|
|
30
|
+
*/
|
|
31
|
+
displayName: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof HydratedIntegrationObject
|
|
36
|
+
*/
|
|
37
|
+
destination: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof HydratedIntegrationObject
|
|
42
|
+
*/
|
|
43
|
+
schedule: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<HydratedIntegrationField>}
|
|
47
|
+
* @memberof HydratedIntegrationObject
|
|
48
|
+
*/
|
|
49
|
+
requiredFields?: Array<HydratedIntegrationField>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<HydratedIntegrationField>}
|
|
53
|
+
* @memberof HydratedIntegrationObject
|
|
54
|
+
*/
|
|
55
|
+
optionalFields?: Array<HydratedIntegrationField>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {OptionalFieldsAutoOption}
|
|
59
|
+
* @memberof HydratedIntegrationObject
|
|
60
|
+
*/
|
|
61
|
+
optionalFieldsAuto?: OptionalFieldsAutoOption;
|
|
62
|
+
/**
|
|
63
|
+
* This is a list of all fields on the object for a particular SaaS instance. This is used to populate the UI during configuration.
|
|
64
|
+
* @type {Array<HydratedIntegrationField>}
|
|
65
|
+
* @memberof HydratedIntegrationObject
|
|
66
|
+
*/
|
|
67
|
+
allFields?: Array<HydratedIntegrationField>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the HydratedIntegrationObject interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfHydratedIntegrationObject(value: object): boolean;
|
|
73
|
+
export declare function HydratedIntegrationObjectFromJSON(json: any): HydratedIntegrationObject;
|
|
74
|
+
export declare function HydratedIntegrationObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegrationObject;
|
|
75
|
+
export declare function HydratedIntegrationObjectToJSON(value?: HydratedIntegrationObject | null): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.HydratedIntegrationObjectToJSON = exports.HydratedIntegrationObjectFromJSONTyped = exports.HydratedIntegrationObjectFromJSON = exports.instanceOfHydratedIntegrationObject = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const HydratedIntegrationField_1 = require("./HydratedIntegrationField");
|
|
19
|
+
const OptionalFieldsAutoOption_1 = require("./OptionalFieldsAutoOption");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the HydratedIntegrationObject interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfHydratedIntegrationObject(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "objectName" in value;
|
|
26
|
+
isInstance = isInstance && "displayName" in value;
|
|
27
|
+
isInstance = isInstance && "destination" in value;
|
|
28
|
+
isInstance = isInstance && "schedule" in value;
|
|
29
|
+
return isInstance;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfHydratedIntegrationObject = instanceOfHydratedIntegrationObject;
|
|
32
|
+
function HydratedIntegrationObjectFromJSON(json) {
|
|
33
|
+
return HydratedIntegrationObjectFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.HydratedIntegrationObjectFromJSON = HydratedIntegrationObjectFromJSON;
|
|
36
|
+
function HydratedIntegrationObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if ((json === undefined) || (json === null)) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'objectName': json['objectName'],
|
|
42
|
+
'displayName': json['displayName'],
|
|
43
|
+
'destination': json['destination'],
|
|
44
|
+
'schedule': json['schedule'],
|
|
45
|
+
'requiredFields': !(0, runtime_1.exists)(json, 'requiredFields') ? undefined : (json['requiredFields'].map(HydratedIntegrationField_1.HydratedIntegrationFieldFromJSON)),
|
|
46
|
+
'optionalFields': !(0, runtime_1.exists)(json, 'optionalFields') ? undefined : (json['optionalFields'].map(HydratedIntegrationField_1.HydratedIntegrationFieldFromJSON)),
|
|
47
|
+
'optionalFieldsAuto': !(0, runtime_1.exists)(json, 'optionalFieldsAuto') ? undefined : (0, OptionalFieldsAutoOption_1.OptionalFieldsAutoOptionFromJSON)(json['optionalFieldsAuto']),
|
|
48
|
+
'allFields': !(0, runtime_1.exists)(json, 'allFields') ? undefined : (json['allFields'].map(HydratedIntegrationField_1.HydratedIntegrationFieldFromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.HydratedIntegrationObjectFromJSONTyped = HydratedIntegrationObjectFromJSONTyped;
|
|
52
|
+
function HydratedIntegrationObjectToJSON(value) {
|
|
53
|
+
if (value === undefined) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
if (value === null) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'objectName': value.objectName,
|
|
61
|
+
'displayName': value.displayName,
|
|
62
|
+
'destination': value.destination,
|
|
63
|
+
'schedule': value.schedule,
|
|
64
|
+
'requiredFields': value.requiredFields === undefined ? undefined : (value.requiredFields.map(HydratedIntegrationField_1.HydratedIntegrationFieldToJSON)),
|
|
65
|
+
'optionalFields': value.optionalFields === undefined ? undefined : (value.optionalFields.map(HydratedIntegrationField_1.HydratedIntegrationFieldToJSON)),
|
|
66
|
+
'optionalFieldsAuto': (0, OptionalFieldsAutoOption_1.OptionalFieldsAutoOptionToJSON)(value.optionalFieldsAuto),
|
|
67
|
+
'allFields': value.allFields === undefined ? undefined : (value.allFields.map(HydratedIntegrationField_1.HydratedIntegrationFieldToJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
exports.HydratedIntegrationObjectToJSON = HydratedIntegrationObjectToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { HydratedIntegrationObject } from './HydratedIntegrationObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface HydratedIntegrationRead
|
|
17
|
+
*/
|
|
18
|
+
export interface HydratedIntegrationRead {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<HydratedIntegrationObject>}
|
|
22
|
+
* @memberof HydratedIntegrationRead
|
|
23
|
+
*/
|
|
24
|
+
standardObjects?: Array<HydratedIntegrationObject>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the HydratedIntegrationRead interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfHydratedIntegrationRead(value: object): boolean;
|
|
30
|
+
export declare function HydratedIntegrationReadFromJSON(json: any): HydratedIntegrationRead;
|
|
31
|
+
export declare function HydratedIntegrationReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegrationRead;
|
|
32
|
+
export declare function HydratedIntegrationReadToJSON(value?: HydratedIntegrationRead | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.HydratedIntegrationReadToJSON = exports.HydratedIntegrationReadFromJSONTyped = exports.HydratedIntegrationReadFromJSON = exports.instanceOfHydratedIntegrationRead = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const HydratedIntegrationObject_1 = require("./HydratedIntegrationObject");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the HydratedIntegrationRead interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfHydratedIntegrationRead(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfHydratedIntegrationRead = instanceOfHydratedIntegrationRead;
|
|
27
|
+
function HydratedIntegrationReadFromJSON(json) {
|
|
28
|
+
return HydratedIntegrationReadFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.HydratedIntegrationReadFromJSON = HydratedIntegrationReadFromJSON;
|
|
31
|
+
function HydratedIntegrationReadFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'standardObjects': !(0, runtime_1.exists)(json, 'standardObjects') ? undefined : (json['standardObjects'].map(HydratedIntegrationObject_1.HydratedIntegrationObjectFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.HydratedIntegrationReadFromJSONTyped = HydratedIntegrationReadFromJSONTyped;
|
|
40
|
+
function HydratedIntegrationReadToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'standardObjects': value.standardObjects === undefined ? undefined : (value.standardObjects.map(HydratedIntegrationObject_1.HydratedIntegrationObjectToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.HydratedIntegrationReadToJSON = HydratedIntegrationReadToJSON;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { HydratedIntegration } from './HydratedIntegration';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface HydratedRevision
|
|
17
|
+
*/
|
|
18
|
+
export interface HydratedRevision {
|
|
19
|
+
/**
|
|
20
|
+
* The revision ID.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof HydratedRevision
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The spec version string (e.g. "0.1.0").
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof HydratedRevision
|
|
29
|
+
*/
|
|
30
|
+
specVersion: string;
|
|
31
|
+
/**
|
|
32
|
+
* The time the revision was created.
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof HydratedRevision
|
|
35
|
+
*/
|
|
36
|
+
createTime: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {HydratedIntegration}
|
|
40
|
+
* @memberof HydratedRevision
|
|
41
|
+
*/
|
|
42
|
+
content: HydratedIntegration;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the HydratedRevision interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfHydratedRevision(value: object): boolean;
|
|
48
|
+
export declare function HydratedRevisionFromJSON(json: any): HydratedRevision;
|
|
49
|
+
export declare function HydratedRevisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedRevision;
|
|
50
|
+
export declare function HydratedRevisionToJSON(value?: HydratedRevision | null): any;
|