@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 @@
|
|
|
1
|
+
export * from './DefaultApi';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./DefaultApi"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis"), exports);
|
|
21
|
+
__exportStar(require("./models"), exports);
|
|
@@ -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 { BaseReadConfig } from './BaseReadConfig';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BaseConfigContent
|
|
17
|
+
*/
|
|
18
|
+
export interface BaseConfigContent {
|
|
19
|
+
/**
|
|
20
|
+
* The SaaS API that we are integrating with.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BaseConfigContent
|
|
23
|
+
*/
|
|
24
|
+
provider?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {BaseReadConfig}
|
|
28
|
+
* @memberof BaseConfigContent
|
|
29
|
+
*/
|
|
30
|
+
read?: BaseReadConfig;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the BaseConfigContent interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfBaseConfigContent(value: object): boolean;
|
|
36
|
+
export declare function BaseConfigContentFromJSON(json: any): BaseConfigContent;
|
|
37
|
+
export declare function BaseConfigContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseConfigContent;
|
|
38
|
+
export declare function BaseConfigContentToJSON(value?: BaseConfigContent | 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.BaseConfigContentToJSON = exports.BaseConfigContentFromJSONTyped = exports.BaseConfigContentFromJSON = exports.instanceOfBaseConfigContent = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const BaseReadConfig_1 = require("./BaseReadConfig");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the BaseConfigContent interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfBaseConfigContent(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfBaseConfigContent = instanceOfBaseConfigContent;
|
|
27
|
+
function BaseConfigContentFromJSON(json) {
|
|
28
|
+
return BaseConfigContentFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.BaseConfigContentFromJSON = BaseConfigContentFromJSON;
|
|
31
|
+
function BaseConfigContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'provider': !(0, runtime_1.exists)(json, 'provider') ? undefined : json['provider'],
|
|
37
|
+
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, BaseReadConfig_1.BaseReadConfigFromJSON)(json['read']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.BaseConfigContentFromJSONTyped = BaseConfigContentFromJSONTyped;
|
|
41
|
+
function BaseConfigContentToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'provider': value.provider,
|
|
50
|
+
'read': (0, BaseReadConfig_1.BaseReadConfigToJSON)(value.read),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.BaseConfigContentToJSON = BaseConfigContentToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { BaseReadConfigStandardObject } from './BaseReadConfigStandardObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BaseReadConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface BaseReadConfig {
|
|
19
|
+
/**
|
|
20
|
+
* This is a map of object names to their configuration.
|
|
21
|
+
* @type {{ [key: string]: BaseReadConfigStandardObject; }}
|
|
22
|
+
* @memberof BaseReadConfig
|
|
23
|
+
*/
|
|
24
|
+
standardObjects?: {
|
|
25
|
+
[key: string]: BaseReadConfigStandardObject;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the BaseReadConfig interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfBaseReadConfig(value: object): boolean;
|
|
32
|
+
export declare function BaseReadConfigFromJSON(json: any): BaseReadConfig;
|
|
33
|
+
export declare function BaseReadConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseReadConfig;
|
|
34
|
+
export declare function BaseReadConfigToJSON(value?: BaseReadConfig | 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.BaseReadConfigToJSON = exports.BaseReadConfigFromJSONTyped = exports.BaseReadConfigFromJSON = exports.instanceOfBaseReadConfig = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const BaseReadConfigStandardObject_1 = require("./BaseReadConfigStandardObject");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the BaseReadConfig interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfBaseReadConfig(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfBaseReadConfig = instanceOfBaseReadConfig;
|
|
27
|
+
function BaseReadConfigFromJSON(json) {
|
|
28
|
+
return BaseReadConfigFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.BaseReadConfigFromJSON = BaseReadConfigFromJSON;
|
|
31
|
+
function BaseReadConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'standardObjects': !(0, runtime_1.exists)(json, 'standardObjects') ? undefined : ((0, runtime_1.mapValues)(json['standardObjects'], BaseReadConfigStandardObject_1.BaseReadConfigStandardObjectFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.BaseReadConfigFromJSONTyped = BaseReadConfigFromJSONTyped;
|
|
40
|
+
function BaseReadConfigToJSON(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 : ((0, runtime_1.mapValues)(value.standardObjects, BaseReadConfigStandardObject_1.BaseReadConfigStandardObjectToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.BaseReadConfigToJSON = BaseReadConfigToJSON;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 BaseReadConfigStandardObject
|
|
16
|
+
*/
|
|
17
|
+
export interface BaseReadConfigStandardObject {
|
|
18
|
+
/**
|
|
19
|
+
* The name of the object to read from.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BaseReadConfigStandardObject
|
|
22
|
+
*/
|
|
23
|
+
objectName?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BaseReadConfigStandardObject
|
|
28
|
+
*/
|
|
29
|
+
schedule?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the destination that the result should be sent to.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BaseReadConfigStandardObject
|
|
34
|
+
*/
|
|
35
|
+
destination?: string;
|
|
36
|
+
/**
|
|
37
|
+
* This is a map of field names to booleans indicating whether they should be read.
|
|
38
|
+
* @type {{ [key: string]: boolean; }}
|
|
39
|
+
* @memberof BaseReadConfigStandardObject
|
|
40
|
+
*/
|
|
41
|
+
selectedFields?: {
|
|
42
|
+
[key: string]: boolean;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* This is a map of mapToNames to field names. (A mapTo name is the name the builder wants to map a field to when it lands in their destination.)
|
|
46
|
+
* @type {{ [key: string]: string; }}
|
|
47
|
+
* @memberof BaseReadConfigStandardObject
|
|
48
|
+
*/
|
|
49
|
+
selectedFieldMappings?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the BaseReadConfigStandardObject interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfBaseReadConfigStandardObject(value: object): boolean;
|
|
57
|
+
export declare function BaseReadConfigStandardObjectFromJSON(json: any): BaseReadConfigStandardObject;
|
|
58
|
+
export declare function BaseReadConfigStandardObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseReadConfigStandardObject;
|
|
59
|
+
export declare function BaseReadConfigStandardObjectToJSON(value?: BaseReadConfigStandardObject | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.BaseReadConfigStandardObjectToJSON = exports.BaseReadConfigStandardObjectFromJSONTyped = exports.BaseReadConfigStandardObjectFromJSON = exports.instanceOfBaseReadConfigStandardObject = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the BaseReadConfigStandardObject interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfBaseReadConfigStandardObject(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfBaseReadConfigStandardObject = instanceOfBaseReadConfigStandardObject;
|
|
26
|
+
function BaseReadConfigStandardObjectFromJSON(json) {
|
|
27
|
+
return BaseReadConfigStandardObjectFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.BaseReadConfigStandardObjectFromJSON = BaseReadConfigStandardObjectFromJSON;
|
|
30
|
+
function BaseReadConfigStandardObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'objectName': !(0, runtime_1.exists)(json, 'objectName') ? undefined : json['objectName'],
|
|
36
|
+
'schedule': !(0, runtime_1.exists)(json, 'schedule') ? undefined : json['schedule'],
|
|
37
|
+
'destination': !(0, runtime_1.exists)(json, 'destination') ? undefined : json['destination'],
|
|
38
|
+
'selectedFields': !(0, runtime_1.exists)(json, 'selectedFields') ? undefined : json['selectedFields'],
|
|
39
|
+
'selectedFieldMappings': !(0, runtime_1.exists)(json, 'selectedFieldMappings') ? undefined : json['selectedFieldMappings'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.BaseReadConfigStandardObjectFromJSONTyped = BaseReadConfigStandardObjectFromJSONTyped;
|
|
43
|
+
function BaseReadConfigStandardObjectToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'objectName': value.objectName,
|
|
52
|
+
'schedule': value.schedule,
|
|
53
|
+
'destination': value.destination,
|
|
54
|
+
'selectedFields': value.selectedFields,
|
|
55
|
+
'selectedFieldMappings': value.selectedFieldMappings,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.BaseReadConfigStandardObjectToJSON = BaseReadConfigStandardObjectToJSON;
|
|
@@ -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 BatchUpsertIntegrationsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchUpsertIntegrationsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* URL of where a zip of the source files can be downloaded (e.g. Google Cloud Storage URL).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BatchUpsertIntegrationsRequest
|
|
22
|
+
*/
|
|
23
|
+
sourceZipUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BatchUpsertIntegrationsRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBatchUpsertIntegrationsRequest(value: object): boolean;
|
|
29
|
+
export declare function BatchUpsertIntegrationsRequestFromJSON(json: any): BatchUpsertIntegrationsRequest;
|
|
30
|
+
export declare function BatchUpsertIntegrationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpsertIntegrationsRequest;
|
|
31
|
+
export declare function BatchUpsertIntegrationsRequestToJSON(value?: BatchUpsertIntegrationsRequest | 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.BatchUpsertIntegrationsRequestToJSON = exports.BatchUpsertIntegrationsRequestFromJSONTyped = exports.BatchUpsertIntegrationsRequestFromJSON = exports.instanceOfBatchUpsertIntegrationsRequest = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the BatchUpsertIntegrationsRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfBatchUpsertIntegrationsRequest(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "sourceZipUrl" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfBatchUpsertIntegrationsRequest = instanceOfBatchUpsertIntegrationsRequest;
|
|
26
|
+
function BatchUpsertIntegrationsRequestFromJSON(json) {
|
|
27
|
+
return BatchUpsertIntegrationsRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.BatchUpsertIntegrationsRequestFromJSON = BatchUpsertIntegrationsRequestFromJSON;
|
|
30
|
+
function BatchUpsertIntegrationsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'sourceZipUrl': json['sourceZipUrl'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.BatchUpsertIntegrationsRequestFromJSONTyped = BatchUpsertIntegrationsRequestFromJSONTyped;
|
|
39
|
+
function BatchUpsertIntegrationsRequestToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'sourceZipUrl': value.sourceZipUrl,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.BatchUpsertIntegrationsRequestToJSON = BatchUpsertIntegrationsRequestToJSON;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 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
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Config
|
|
17
|
+
*/
|
|
18
|
+
export interface Config {
|
|
19
|
+
/**
|
|
20
|
+
* The config ID.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Config
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the revision that this config is based on.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Config
|
|
29
|
+
*/
|
|
30
|
+
revisionId: string;
|
|
31
|
+
/**
|
|
32
|
+
* The time the config was created.
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof Config
|
|
35
|
+
*/
|
|
36
|
+
createTime: Date;
|
|
37
|
+
/**
|
|
38
|
+
* The person who created the config, in the format of "consumer:{consumer-id}" or "builder:{builder-id}".
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Config
|
|
41
|
+
*/
|
|
42
|
+
createdBy: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ConfigContent}
|
|
46
|
+
* @memberof Config
|
|
47
|
+
*/
|
|
48
|
+
content: ConfigContent;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the Config interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfConfig(value: object): boolean;
|
|
54
|
+
export declare function ConfigFromJSON(json: any): Config;
|
|
55
|
+
export declare function ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): Config;
|
|
56
|
+
export declare function ConfigToJSON(value?: Config | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 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.ConfigToJSON = exports.ConfigFromJSONTyped = exports.ConfigFromJSON = exports.instanceOfConfig = void 0;
|
|
17
|
+
const ConfigContent_1 = require("./ConfigContent");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Config interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfConfig(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "revisionId" in value;
|
|
25
|
+
isInstance = isInstance && "createTime" in value;
|
|
26
|
+
isInstance = isInstance && "createdBy" in value;
|
|
27
|
+
isInstance = isInstance && "content" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfConfig = instanceOfConfig;
|
|
31
|
+
function ConfigFromJSON(json) {
|
|
32
|
+
return ConfigFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.ConfigFromJSON = ConfigFromJSON;
|
|
35
|
+
function ConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'revisionId': json['revisionId'],
|
|
42
|
+
'createTime': (new Date(json['createTime'])),
|
|
43
|
+
'createdBy': json['createdBy'],
|
|
44
|
+
'content': (0, ConfigContent_1.ConfigContentFromJSON)(json['content']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ConfigFromJSONTyped = ConfigFromJSONTyped;
|
|
48
|
+
function ConfigToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': value.id,
|
|
57
|
+
'revisionId': value.revisionId,
|
|
58
|
+
'createTime': (value.createTime.toISOString()),
|
|
59
|
+
'createdBy': value.createdBy,
|
|
60
|
+
'content': (0, ConfigContent_1.ConfigContentToJSON)(value.content),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.ConfigToJSON = ConfigToJSON;
|
|
@@ -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 ConfigContent
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfigContent {
|
|
18
|
+
/**
|
|
19
|
+
* The SaaS API that we are integrating with.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ConfigContent
|
|
22
|
+
*/
|
|
23
|
+
provider: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {any}
|
|
27
|
+
* @memberof ConfigContent
|
|
28
|
+
*/
|
|
29
|
+
read?: any | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ConfigContent interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfConfigContent(value: object): boolean;
|
|
35
|
+
export declare function ConfigContentFromJSON(json: any): ConfigContent;
|
|
36
|
+
export declare function ConfigContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigContent;
|
|
37
|
+
export declare function ConfigContentToJSON(value?: ConfigContent | 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.ConfigContentToJSON = exports.ConfigContentFromJSONTyped = exports.ConfigContentFromJSON = exports.instanceOfConfigContent = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ConfigContent interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfConfigContent(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "provider" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfConfigContent = instanceOfConfigContent;
|
|
27
|
+
function ConfigContentFromJSON(json) {
|
|
28
|
+
return ConfigContentFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ConfigContentFromJSON = ConfigContentFromJSON;
|
|
31
|
+
function ConfigContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'provider': json['provider'],
|
|
37
|
+
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : json['read'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.ConfigContentFromJSONTyped = ConfigContentFromJSONTyped;
|
|
41
|
+
function ConfigContentToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'provider': value.provider,
|
|
50
|
+
'read': value.read,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.ConfigContentToJSON = ConfigContentToJSON;
|
|
@@ -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 ConfigContentAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface ConfigContentAllOf {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {any}
|
|
21
|
+
* @memberof ConfigContentAllOf
|
|
22
|
+
*/
|
|
23
|
+
read?: any | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ConfigContentAllOf interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfConfigContentAllOf(value: object): boolean;
|
|
29
|
+
export declare function ConfigContentAllOfFromJSON(json: any): ConfigContentAllOf;
|
|
30
|
+
export declare function ConfigContentAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigContentAllOf;
|
|
31
|
+
export declare function ConfigContentAllOfToJSON(value?: ConfigContentAllOf | null): any;
|