@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,69 @@
|
|
|
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.IntegrationToJSON = exports.IntegrationFromJSONTyped = exports.IntegrationFromJSON = exports.instanceOfIntegration = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const Revision_1 = require("./Revision");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the Integration interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfIntegration(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "id" in value;
|
|
25
|
+
isInstance = isInstance && "projectId" in value;
|
|
26
|
+
isInstance = isInstance && "name" in value;
|
|
27
|
+
isInstance = isInstance && "provider" in value;
|
|
28
|
+
isInstance = isInstance && "createTime" in value;
|
|
29
|
+
isInstance = isInstance && "latestRevision" in value;
|
|
30
|
+
return isInstance;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfIntegration = instanceOfIntegration;
|
|
33
|
+
function IntegrationFromJSON(json) {
|
|
34
|
+
return IntegrationFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.IntegrationFromJSON = IntegrationFromJSON;
|
|
37
|
+
function IntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if ((json === undefined) || (json === null)) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'projectId': json['projectId'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'provider': json['provider'],
|
|
46
|
+
'createTime': (new Date(json['createTime'])),
|
|
47
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
48
|
+
'latestRevision': (0, Revision_1.RevisionFromJSON)(json['latestRevision']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.IntegrationFromJSONTyped = IntegrationFromJSONTyped;
|
|
52
|
+
function IntegrationToJSON(value) {
|
|
53
|
+
if (value === undefined) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
if (value === null) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value.id,
|
|
61
|
+
'projectId': value.projectId,
|
|
62
|
+
'name': value.name,
|
|
63
|
+
'provider': value.provider,
|
|
64
|
+
'createTime': (value.createTime.toISOString()),
|
|
65
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
66
|
+
'latestRevision': (0, Revision_1.RevisionToJSON)(value.latestRevision),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
exports.IntegrationToJSON = IntegrationToJSON;
|
|
@@ -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 { IntegrationRead } from './IntegrationRead';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Integration1
|
|
17
|
+
*/
|
|
18
|
+
export interface Integration1 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Integration1
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Integration1
|
|
29
|
+
*/
|
|
30
|
+
displayName?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Integration1
|
|
35
|
+
*/
|
|
36
|
+
provider: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {IntegrationRead}
|
|
40
|
+
* @memberof Integration1
|
|
41
|
+
*/
|
|
42
|
+
read?: IntegrationRead;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Integration1 interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfIntegration1(value: object): boolean;
|
|
48
|
+
export declare function Integration1FromJSON(json: any): Integration1;
|
|
49
|
+
export declare function Integration1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration1;
|
|
50
|
+
export declare function Integration1ToJSON(value?: Integration1 | 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.Integration1ToJSON = exports.Integration1FromJSONTyped = exports.Integration1FromJSON = exports.instanceOfIntegration1 = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const IntegrationRead_1 = require("./IntegrationRead");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the Integration1 interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfIntegration1(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "provider" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfIntegration1 = instanceOfIntegration1;
|
|
29
|
+
function Integration1FromJSON(json) {
|
|
30
|
+
return Integration1FromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.Integration1FromJSON = Integration1FromJSON;
|
|
33
|
+
function Integration1FromJSONTyped(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, IntegrationRead_1.IntegrationReadFromJSON)(json['read']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.Integration1FromJSONTyped = Integration1FromJSONTyped;
|
|
45
|
+
function Integration1ToJSON(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, IntegrationRead_1.IntegrationReadToJSON)(value.read),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.Integration1ToJSON = Integration1ToJSON;
|
|
@@ -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 { IntegrationFieldExistent } from './IntegrationFieldExistent';
|
|
13
|
+
import { IntegrationFieldMapping } from './IntegrationFieldMapping';
|
|
14
|
+
/**
|
|
15
|
+
* @type IntegrationField
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type IntegrationField = IntegrationFieldExistent | IntegrationFieldMapping;
|
|
20
|
+
export declare function IntegrationFieldFromJSON(json: any): IntegrationField;
|
|
21
|
+
export declare function IntegrationFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationField;
|
|
22
|
+
export declare function IntegrationFieldToJSON(value?: IntegrationField | 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.IntegrationFieldToJSON = exports.IntegrationFieldFromJSONTyped = exports.IntegrationFieldFromJSON = void 0;
|
|
17
|
+
const IntegrationFieldExistent_1 = require("./IntegrationFieldExistent");
|
|
18
|
+
const IntegrationFieldMapping_1 = require("./IntegrationFieldMapping");
|
|
19
|
+
function IntegrationFieldFromJSON(json) {
|
|
20
|
+
return IntegrationFieldFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.IntegrationFieldFromJSON = IntegrationFieldFromJSON;
|
|
23
|
+
function IntegrationFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return Object.assign(Object.assign({}, (0, IntegrationFieldExistent_1.IntegrationFieldExistentFromJSONTyped)(json, true)), (0, IntegrationFieldMapping_1.IntegrationFieldMappingFromJSONTyped)(json, true));
|
|
28
|
+
}
|
|
29
|
+
exports.IntegrationFieldFromJSONTyped = IntegrationFieldFromJSONTyped;
|
|
30
|
+
function IntegrationFieldToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
if ((0, IntegrationFieldExistent_1.instanceOfIntegrationFieldExistent)(value)) {
|
|
38
|
+
return (0, IntegrationFieldExistent_1.IntegrationFieldExistentToJSON)(value);
|
|
39
|
+
}
|
|
40
|
+
if ((0, IntegrationFieldMapping_1.instanceOfIntegrationFieldMapping)(value)) {
|
|
41
|
+
return (0, IntegrationFieldMapping_1.IntegrationFieldMappingToJSON)(value);
|
|
42
|
+
}
|
|
43
|
+
return {};
|
|
44
|
+
}
|
|
45
|
+
exports.IntegrationFieldToJSON = IntegrationFieldToJSON;
|
|
@@ -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: 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 IntegrationFieldExistent
|
|
16
|
+
*/
|
|
17
|
+
export interface IntegrationFieldExistent {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IntegrationFieldExistent
|
|
22
|
+
*/
|
|
23
|
+
fieldName: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IntegrationFieldExistent interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIntegrationFieldExistent(value: object): boolean;
|
|
29
|
+
export declare function IntegrationFieldExistentFromJSON(json: any): IntegrationFieldExistent;
|
|
30
|
+
export declare function IntegrationFieldExistentFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationFieldExistent;
|
|
31
|
+
export declare function IntegrationFieldExistentToJSON(value?: IntegrationFieldExistent | 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: 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.IntegrationFieldExistentToJSON = exports.IntegrationFieldExistentFromJSONTyped = exports.IntegrationFieldExistentFromJSON = exports.instanceOfIntegrationFieldExistent = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the IntegrationFieldExistent interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfIntegrationFieldExistent(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "fieldName" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfIntegrationFieldExistent = instanceOfIntegrationFieldExistent;
|
|
26
|
+
function IntegrationFieldExistentFromJSON(json) {
|
|
27
|
+
return IntegrationFieldExistentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.IntegrationFieldExistentFromJSON = IntegrationFieldExistentFromJSON;
|
|
30
|
+
function IntegrationFieldExistentFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'fieldName': json['fieldName'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.IntegrationFieldExistentFromJSONTyped = IntegrationFieldExistentFromJSONTyped;
|
|
39
|
+
function IntegrationFieldExistentToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'fieldName': value.fieldName,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.IntegrationFieldExistentToJSON = IntegrationFieldExistentToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 IntegrationFieldMapping
|
|
16
|
+
*/
|
|
17
|
+
export interface IntegrationFieldMapping {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IntegrationFieldMapping
|
|
22
|
+
*/
|
|
23
|
+
mapToName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IntegrationFieldMapping
|
|
28
|
+
*/
|
|
29
|
+
mapToDisplayName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IntegrationFieldMapping
|
|
34
|
+
*/
|
|
35
|
+
_default?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof IntegrationFieldMapping
|
|
40
|
+
*/
|
|
41
|
+
prompt?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the IntegrationFieldMapping interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfIntegrationFieldMapping(value: object): boolean;
|
|
47
|
+
export declare function IntegrationFieldMappingFromJSON(json: any): IntegrationFieldMapping;
|
|
48
|
+
export declare function IntegrationFieldMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationFieldMapping;
|
|
49
|
+
export declare function IntegrationFieldMappingToJSON(value?: IntegrationFieldMapping | 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: 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.IntegrationFieldMappingToJSON = exports.IntegrationFieldMappingFromJSONTyped = exports.IntegrationFieldMappingFromJSON = exports.instanceOfIntegrationFieldMapping = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the IntegrationFieldMapping interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfIntegrationFieldMapping(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "mapToName" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfIntegrationFieldMapping = instanceOfIntegrationFieldMapping;
|
|
27
|
+
function IntegrationFieldMappingFromJSON(json) {
|
|
28
|
+
return IntegrationFieldMappingFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.IntegrationFieldMappingFromJSON = IntegrationFieldMappingFromJSON;
|
|
31
|
+
function IntegrationFieldMappingFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'mapToName': json['mapToName'],
|
|
37
|
+
'mapToDisplayName': !(0, runtime_1.exists)(json, 'mapToDisplayName') ? undefined : json['mapToDisplayName'],
|
|
38
|
+
'_default': !(0, runtime_1.exists)(json, 'default') ? undefined : json['default'],
|
|
39
|
+
'prompt': !(0, runtime_1.exists)(json, 'prompt') ? undefined : json['prompt'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.IntegrationFieldMappingFromJSONTyped = IntegrationFieldMappingFromJSONTyped;
|
|
43
|
+
function IntegrationFieldMappingToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'mapToName': value.mapToName,
|
|
52
|
+
'mapToDisplayName': value.mapToDisplayName,
|
|
53
|
+
'default': value._default,
|
|
54
|
+
'prompt': value.prompt,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.IntegrationFieldMappingToJSON = IntegrationFieldMappingToJSON;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { IntegrationField } from './IntegrationField';
|
|
13
|
+
import type { OptionalFieldsAutoOption } from './OptionalFieldsAutoOption';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IntegrationObject
|
|
18
|
+
*/
|
|
19
|
+
export interface IntegrationObject {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IntegrationObject
|
|
24
|
+
*/
|
|
25
|
+
objectName: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof IntegrationObject
|
|
30
|
+
*/
|
|
31
|
+
destination: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof IntegrationObject
|
|
36
|
+
*/
|
|
37
|
+
schedule: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<IntegrationField>}
|
|
41
|
+
* @memberof IntegrationObject
|
|
42
|
+
*/
|
|
43
|
+
requiredFields?: Array<IntegrationField>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<IntegrationField>}
|
|
47
|
+
* @memberof IntegrationObject
|
|
48
|
+
*/
|
|
49
|
+
optionalFields?: Array<IntegrationField>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {OptionalFieldsAutoOption}
|
|
53
|
+
* @memberof IntegrationObject
|
|
54
|
+
*/
|
|
55
|
+
optionalFieldsAuto?: OptionalFieldsAutoOption;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the IntegrationObject interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfIntegrationObject(value: object): boolean;
|
|
61
|
+
export declare function IntegrationObjectFromJSON(json: any): IntegrationObject;
|
|
62
|
+
export declare function IntegrationObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationObject;
|
|
63
|
+
export declare function IntegrationObjectToJSON(value?: IntegrationObject | null): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.IntegrationObjectToJSON = exports.IntegrationObjectFromJSONTyped = exports.IntegrationObjectFromJSON = exports.instanceOfIntegrationObject = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const IntegrationField_1 = require("./IntegrationField");
|
|
19
|
+
const OptionalFieldsAutoOption_1 = require("./OptionalFieldsAutoOption");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the IntegrationObject interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfIntegrationObject(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "objectName" in value;
|
|
26
|
+
isInstance = isInstance && "destination" in value;
|
|
27
|
+
isInstance = isInstance && "schedule" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfIntegrationObject = instanceOfIntegrationObject;
|
|
31
|
+
function IntegrationObjectFromJSON(json) {
|
|
32
|
+
return IntegrationObjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.IntegrationObjectFromJSON = IntegrationObjectFromJSON;
|
|
35
|
+
function IntegrationObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'objectName': json['objectName'],
|
|
41
|
+
'destination': json['destination'],
|
|
42
|
+
'schedule': json['schedule'],
|
|
43
|
+
'requiredFields': !(0, runtime_1.exists)(json, 'requiredFields') ? undefined : (json['requiredFields'].map(IntegrationField_1.IntegrationFieldFromJSON)),
|
|
44
|
+
'optionalFields': !(0, runtime_1.exists)(json, 'optionalFields') ? undefined : (json['optionalFields'].map(IntegrationField_1.IntegrationFieldFromJSON)),
|
|
45
|
+
'optionalFieldsAuto': !(0, runtime_1.exists)(json, 'optionalFieldsAuto') ? undefined : (0, OptionalFieldsAutoOption_1.OptionalFieldsAutoOptionFromJSON)(json['optionalFieldsAuto']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.IntegrationObjectFromJSONTyped = IntegrationObjectFromJSONTyped;
|
|
49
|
+
function IntegrationObjectToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'objectName': value.objectName,
|
|
58
|
+
'destination': value.destination,
|
|
59
|
+
'schedule': value.schedule,
|
|
60
|
+
'requiredFields': value.requiredFields === undefined ? undefined : (value.requiredFields.map(IntegrationField_1.IntegrationFieldToJSON)),
|
|
61
|
+
'optionalFields': value.optionalFields === undefined ? undefined : (value.optionalFields.map(IntegrationField_1.IntegrationFieldToJSON)),
|
|
62
|
+
'optionalFieldsAuto': (0, OptionalFieldsAutoOption_1.OptionalFieldsAutoOptionToJSON)(value.optionalFieldsAuto),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.IntegrationObjectToJSON = IntegrationObjectToJSON;
|
|
@@ -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 { IntegrationObject } from './IntegrationObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IntegrationRead
|
|
17
|
+
*/
|
|
18
|
+
export interface IntegrationRead {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IntegrationObject>}
|
|
22
|
+
* @memberof IntegrationRead
|
|
23
|
+
*/
|
|
24
|
+
standardObjects?: Array<IntegrationObject>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IntegrationRead interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIntegrationRead(value: object): boolean;
|
|
30
|
+
export declare function IntegrationReadFromJSON(json: any): IntegrationRead;
|
|
31
|
+
export declare function IntegrationReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationRead;
|
|
32
|
+
export declare function IntegrationReadToJSON(value?: IntegrationRead | 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.IntegrationReadToJSON = exports.IntegrationReadFromJSONTyped = exports.IntegrationReadFromJSON = exports.instanceOfIntegrationRead = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const IntegrationObject_1 = require("./IntegrationObject");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the IntegrationRead interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfIntegrationRead(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfIntegrationRead = instanceOfIntegrationRead;
|
|
27
|
+
function IntegrationReadFromJSON(json) {
|
|
28
|
+
return IntegrationReadFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.IntegrationReadFromJSON = IntegrationReadFromJSON;
|
|
31
|
+
function IntegrationReadFromJSONTyped(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(IntegrationObject_1.IntegrationObjectFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.IntegrationReadFromJSONTyped = IntegrationReadFromJSONTyped;
|
|
40
|
+
function IntegrationReadToJSON(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(IntegrationObject_1.IntegrationObjectToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.IntegrationReadToJSON = IntegrationReadToJSON;
|