@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,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.ProjectMembershipToJSON = exports.ProjectMembershipFromJSONTyped = exports.ProjectMembershipFromJSON = exports.instanceOfProjectMembership = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const Project_1 = require("./Project");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ProjectMembership interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfProjectMembership(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "project" in value;
|
|
25
|
+
isInstance = isInstance && "builderId" in value;
|
|
26
|
+
isInstance = isInstance && "role" in value;
|
|
27
|
+
isInstance = isInstance && "createTime" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfProjectMembership = instanceOfProjectMembership;
|
|
31
|
+
function ProjectMembershipFromJSON(json) {
|
|
32
|
+
return ProjectMembershipFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.ProjectMembershipFromJSON = ProjectMembershipFromJSON;
|
|
35
|
+
function ProjectMembershipFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'project': (0, Project_1.ProjectFromJSON)(json['project']),
|
|
41
|
+
'builderId': json['builderId'],
|
|
42
|
+
'role': json['role'],
|
|
43
|
+
'createTime': (new Date(json['createTime'])),
|
|
44
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ProjectMembershipFromJSONTyped = ProjectMembershipFromJSONTyped;
|
|
48
|
+
function ProjectMembershipToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'project': (0, Project_1.ProjectToJSON)(value.project),
|
|
57
|
+
'builderId': value.builderId,
|
|
58
|
+
'role': value.role,
|
|
59
|
+
'createTime': (value.createTime.toISOString()),
|
|
60
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.ProjectMembershipToJSON = ProjectMembershipToJSON;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 ProviderApp
|
|
16
|
+
*/
|
|
17
|
+
export interface ProviderApp {
|
|
18
|
+
/**
|
|
19
|
+
* The provider app ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProviderApp
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The Ampersand project ID.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProviderApp
|
|
28
|
+
*/
|
|
29
|
+
projectId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The ID used by the provider to identify the app (optional).
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProviderApp
|
|
34
|
+
*/
|
|
35
|
+
externalRef?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The SaaS provider that this app connects to.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProviderApp
|
|
40
|
+
*/
|
|
41
|
+
provider: string;
|
|
42
|
+
/**
|
|
43
|
+
* The OAuth client ID for this app.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ProviderApp
|
|
46
|
+
*/
|
|
47
|
+
clientId: string;
|
|
48
|
+
/**
|
|
49
|
+
* The time the provider app was created.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof ProviderApp
|
|
52
|
+
*/
|
|
53
|
+
createTime: Date;
|
|
54
|
+
/**
|
|
55
|
+
* The time the provider app was updated.
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof ProviderApp
|
|
58
|
+
*/
|
|
59
|
+
updateTime?: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ProviderApp interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfProviderApp(value: object): boolean;
|
|
65
|
+
export declare function ProviderAppFromJSON(json: any): ProviderApp;
|
|
66
|
+
export declare function ProviderAppFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderApp;
|
|
67
|
+
export declare function ProviderAppToJSON(value?: ProviderApp | null): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.ProviderAppToJSON = exports.ProviderAppFromJSONTyped = exports.ProviderAppFromJSON = exports.instanceOfProviderApp = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ProviderApp interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfProviderApp(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "projectId" in value;
|
|
25
|
+
isInstance = isInstance && "provider" in value;
|
|
26
|
+
isInstance = isInstance && "clientId" in value;
|
|
27
|
+
isInstance = isInstance && "createTime" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfProviderApp = instanceOfProviderApp;
|
|
31
|
+
function ProviderAppFromJSON(json) {
|
|
32
|
+
return ProviderAppFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.ProviderAppFromJSON = ProviderAppFromJSON;
|
|
35
|
+
function ProviderAppFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'projectId': json['projectId'],
|
|
42
|
+
'externalRef': !(0, runtime_1.exists)(json, 'externalRef') ? undefined : json['externalRef'],
|
|
43
|
+
'provider': json['provider'],
|
|
44
|
+
'clientId': json['clientId'],
|
|
45
|
+
'createTime': (new Date(json['createTime'])),
|
|
46
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.ProviderAppFromJSONTyped = ProviderAppFromJSONTyped;
|
|
50
|
+
function ProviderAppToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value.id,
|
|
59
|
+
'projectId': value.projectId,
|
|
60
|
+
'externalRef': value.externalRef,
|
|
61
|
+
'provider': value.provider,
|
|
62
|
+
'clientId': value.clientId,
|
|
63
|
+
'createTime': (value.createTime.toISOString()),
|
|
64
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.ProviderAppToJSON = ProviderAppToJSON;
|
|
@@ -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 { Integration1 } from './Integration1';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Revision
|
|
17
|
+
*/
|
|
18
|
+
export interface Revision {
|
|
19
|
+
/**
|
|
20
|
+
* The revision ID.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Revision
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The spec version string (e.g. "0.1.0").
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Revision
|
|
29
|
+
*/
|
|
30
|
+
specVersion: string;
|
|
31
|
+
/**
|
|
32
|
+
* The time the revision was created.
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof Revision
|
|
35
|
+
*/
|
|
36
|
+
createTime: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Integration1}
|
|
40
|
+
* @memberof Revision
|
|
41
|
+
*/
|
|
42
|
+
content: Integration1;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Revision interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfRevision(value: object): boolean;
|
|
48
|
+
export declare function RevisionFromJSON(json: any): Revision;
|
|
49
|
+
export declare function RevisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Revision;
|
|
50
|
+
export declare function RevisionToJSON(value?: Revision | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RevisionToJSON = exports.RevisionFromJSONTyped = exports.RevisionFromJSON = exports.instanceOfRevision = void 0;
|
|
17
|
+
const Integration1_1 = require("./Integration1");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Revision interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfRevision(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "specVersion" in value;
|
|
25
|
+
isInstance = isInstance && "createTime" in value;
|
|
26
|
+
isInstance = isInstance && "content" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfRevision = instanceOfRevision;
|
|
30
|
+
function RevisionFromJSON(json) {
|
|
31
|
+
return RevisionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.RevisionFromJSON = RevisionFromJSON;
|
|
34
|
+
function RevisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'specVersion': json['specVersion'],
|
|
41
|
+
'createTime': (new Date(json['createTime'])),
|
|
42
|
+
'content': (0, Integration1_1.Integration1FromJSON)(json['content']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.RevisionFromJSONTyped = RevisionFromJSONTyped;
|
|
46
|
+
function RevisionToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value.id,
|
|
55
|
+
'specVersion': value.specVersion,
|
|
56
|
+
'createTime': (value.createTime.toISOString()),
|
|
57
|
+
'content': (0, Integration1_1.Integration1ToJSON)(value.content),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.RevisionToJSON = RevisionToJSON;
|
|
@@ -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 UpdateInstallationConfigContent
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateInstallationConfigContent {
|
|
19
|
+
/**
|
|
20
|
+
* The SaaS API that we are integrating with.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateInstallationConfigContent
|
|
23
|
+
*/
|
|
24
|
+
provider?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {BaseReadConfig}
|
|
28
|
+
* @memberof UpdateInstallationConfigContent
|
|
29
|
+
*/
|
|
30
|
+
read?: BaseReadConfig;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateInstallationConfigContent interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateInstallationConfigContent(value: object): boolean;
|
|
36
|
+
export declare function UpdateInstallationConfigContentFromJSON(json: any): UpdateInstallationConfigContent;
|
|
37
|
+
export declare function UpdateInstallationConfigContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInstallationConfigContent;
|
|
38
|
+
export declare function UpdateInstallationConfigContentToJSON(value?: UpdateInstallationConfigContent | 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.UpdateInstallationConfigContentToJSON = exports.UpdateInstallationConfigContentFromJSONTyped = exports.UpdateInstallationConfigContentFromJSON = exports.instanceOfUpdateInstallationConfigContent = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const BaseReadConfig_1 = require("./BaseReadConfig");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the UpdateInstallationConfigContent interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfUpdateInstallationConfigContent(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfUpdateInstallationConfigContent = instanceOfUpdateInstallationConfigContent;
|
|
27
|
+
function UpdateInstallationConfigContentFromJSON(json) {
|
|
28
|
+
return UpdateInstallationConfigContentFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.UpdateInstallationConfigContentFromJSON = UpdateInstallationConfigContentFromJSON;
|
|
31
|
+
function UpdateInstallationConfigContentFromJSONTyped(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.UpdateInstallationConfigContentFromJSONTyped = UpdateInstallationConfigContentFromJSONTyped;
|
|
41
|
+
function UpdateInstallationConfigContentToJSON(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.UpdateInstallationConfigContentToJSON = UpdateInstallationConfigContentToJSON;
|
|
@@ -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 { UpdateInstallationRequestInstallation } from './UpdateInstallationRequestInstallation';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateInstallationRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateInstallationRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof UpdateInstallationRequest
|
|
23
|
+
*/
|
|
24
|
+
updateMask: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {UpdateInstallationRequestInstallation}
|
|
28
|
+
* @memberof UpdateInstallationRequest
|
|
29
|
+
*/
|
|
30
|
+
installation: UpdateInstallationRequestInstallation;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateInstallationRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateInstallationRequest(value: object): boolean;
|
|
36
|
+
export declare function UpdateInstallationRequestFromJSON(json: any): UpdateInstallationRequest;
|
|
37
|
+
export declare function UpdateInstallationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInstallationRequest;
|
|
38
|
+
export declare function UpdateInstallationRequestToJSON(value?: UpdateInstallationRequest | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateInstallationRequestToJSON = exports.UpdateInstallationRequestFromJSONTyped = exports.UpdateInstallationRequestFromJSON = exports.instanceOfUpdateInstallationRequest = void 0;
|
|
17
|
+
const UpdateInstallationRequestInstallation_1 = require("./UpdateInstallationRequestInstallation");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateInstallationRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateInstallationRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "updateMask" in value;
|
|
24
|
+
isInstance = isInstance && "installation" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfUpdateInstallationRequest = instanceOfUpdateInstallationRequest;
|
|
28
|
+
function UpdateInstallationRequestFromJSON(json) {
|
|
29
|
+
return UpdateInstallationRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.UpdateInstallationRequestFromJSON = UpdateInstallationRequestFromJSON;
|
|
32
|
+
function UpdateInstallationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'updateMask': json['updateMask'],
|
|
38
|
+
'installation': (0, UpdateInstallationRequestInstallation_1.UpdateInstallationRequestInstallationFromJSON)(json['installation']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.UpdateInstallationRequestFromJSONTyped = UpdateInstallationRequestFromJSONTyped;
|
|
42
|
+
function UpdateInstallationRequestToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'updateMask': value.updateMask,
|
|
51
|
+
'installation': (0, UpdateInstallationRequestInstallation_1.UpdateInstallationRequestInstallationToJSON)(value.installation),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.UpdateInstallationRequestToJSON = UpdateInstallationRequestToJSON;
|
|
@@ -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 { UpdateInstallationRequestInstallationConfig } from './UpdateInstallationRequestInstallationConfig';
|
|
13
|
+
/**
|
|
14
|
+
* The installation fields to update. (Only include the fields you'd like to update.)
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateInstallationRequestInstallation
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateInstallationRequestInstallation {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the SaaS connection tied to this installation.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateInstallationRequestInstallation
|
|
23
|
+
*/
|
|
24
|
+
connectionId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {UpdateInstallationRequestInstallationConfig}
|
|
28
|
+
* @memberof UpdateInstallationRequestInstallation
|
|
29
|
+
*/
|
|
30
|
+
config?: UpdateInstallationRequestInstallationConfig;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateInstallationRequestInstallation interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateInstallationRequestInstallation(value: object): boolean;
|
|
36
|
+
export declare function UpdateInstallationRequestInstallationFromJSON(json: any): UpdateInstallationRequestInstallation;
|
|
37
|
+
export declare function UpdateInstallationRequestInstallationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInstallationRequestInstallation;
|
|
38
|
+
export declare function UpdateInstallationRequestInstallationToJSON(value?: UpdateInstallationRequestInstallation | 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.UpdateInstallationRequestInstallationToJSON = exports.UpdateInstallationRequestInstallationFromJSONTyped = exports.UpdateInstallationRequestInstallationFromJSON = exports.instanceOfUpdateInstallationRequestInstallation = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const UpdateInstallationRequestInstallationConfig_1 = require("./UpdateInstallationRequestInstallationConfig");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the UpdateInstallationRequestInstallation interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfUpdateInstallationRequestInstallation(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfUpdateInstallationRequestInstallation = instanceOfUpdateInstallationRequestInstallation;
|
|
27
|
+
function UpdateInstallationRequestInstallationFromJSON(json) {
|
|
28
|
+
return UpdateInstallationRequestInstallationFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.UpdateInstallationRequestInstallationFromJSON = UpdateInstallationRequestInstallationFromJSON;
|
|
31
|
+
function UpdateInstallationRequestInstallationFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'connectionId': !(0, runtime_1.exists)(json, 'connectionId') ? undefined : json['connectionId'],
|
|
37
|
+
'config': !(0, runtime_1.exists)(json, 'config') ? undefined : (0, UpdateInstallationRequestInstallationConfig_1.UpdateInstallationRequestInstallationConfigFromJSON)(json['config']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.UpdateInstallationRequestInstallationFromJSONTyped = UpdateInstallationRequestInstallationFromJSONTyped;
|
|
41
|
+
function UpdateInstallationRequestInstallationToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'connectionId': value.connectionId,
|
|
50
|
+
'config': (0, UpdateInstallationRequestInstallationConfig_1.UpdateInstallationRequestInstallationConfigToJSON)(value.config),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.UpdateInstallationRequestInstallationToJSON = UpdateInstallationRequestInstallationToJSON;
|
package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 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 { UpdateInstallationConfigContent } from './UpdateInstallationConfigContent';
|
|
13
|
+
/**
|
|
14
|
+
* The config of the installation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateInstallationRequestInstallationConfig
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateInstallationRequestInstallationConfig {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the revision that this config is based on.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateInstallationRequestInstallationConfig
|
|
23
|
+
*/
|
|
24
|
+
revisionId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The person who created the config, in the format of "consumer:{consumer-id}" or "builder:{builder-id}".
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateInstallationRequestInstallationConfig
|
|
29
|
+
*/
|
|
30
|
+
createdBy?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {UpdateInstallationConfigContent}
|
|
34
|
+
* @memberof UpdateInstallationRequestInstallationConfig
|
|
35
|
+
*/
|
|
36
|
+
content?: UpdateInstallationConfigContent;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UpdateInstallationRequestInstallationConfig interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfUpdateInstallationRequestInstallationConfig(value: object): boolean;
|
|
42
|
+
export declare function UpdateInstallationRequestInstallationConfigFromJSON(json: any): UpdateInstallationRequestInstallationConfig;
|
|
43
|
+
export declare function UpdateInstallationRequestInstallationConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInstallationRequestInstallationConfig;
|
|
44
|
+
export declare function UpdateInstallationRequestInstallationConfigToJSON(value?: UpdateInstallationRequestInstallationConfig | null): any;
|