@amp-labs/react 1.0.2 → 1.2.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/README.md +1 -1
- package/build/generated-sources/api/src/apis/AllowedDomainApi.d.ts +79 -0
- package/build/generated-sources/api/src/apis/AllowedDomainApi.js +101 -0
- package/build/generated-sources/api/src/apis/ConnectionApi.d.ts +82 -0
- package/build/generated-sources/api/src/apis/ConnectionApi.js +107 -0
- package/build/generated-sources/api/src/apis/ConsumerApi.d.ts +52 -0
- package/build/generated-sources/api/src/apis/ConsumerApi.js +75 -0
- package/build/generated-sources/api/src/apis/DestinationApi.d.ts +78 -0
- package/build/generated-sources/api/src/apis/DestinationApi.js +102 -0
- package/build/generated-sources/api/src/apis/GroupApi.d.ts +52 -0
- package/build/generated-sources/api/src/apis/GroupApi.js +75 -0
- package/build/generated-sources/api/src/apis/InstallationApi.d.ts +168 -0
- package/build/generated-sources/api/src/apis/InstallationApi.js +205 -0
- package/build/generated-sources/api/src/apis/IntegrationApi.d.ts +128 -0
- package/build/generated-sources/api/src/apis/IntegrationApi.js +154 -0
- package/build/generated-sources/api/src/apis/OAuthApi.d.ts +76 -0
- package/build/generated-sources/api/src/apis/OAuthApi.js +102 -0
- package/build/generated-sources/api/src/apis/OperationApi.d.ts +80 -0
- package/build/generated-sources/api/src/apis/OperationApi.js +104 -0
- package/build/generated-sources/api/src/apis/OperationLogApi.d.ts +55 -0
- package/build/generated-sources/api/src/apis/OperationLogApi.js +76 -0
- package/build/generated-sources/api/src/apis/ProjectApi.d.ts +124 -0
- package/build/generated-sources/api/src/apis/ProjectApi.js +148 -0
- package/build/generated-sources/api/src/apis/ProjectMembershipApi.d.ts +126 -0
- package/build/generated-sources/api/src/apis/ProjectMembershipApi.js +154 -0
- package/build/generated-sources/api/src/apis/ProviderAppApi.d.ts +130 -0
- package/build/generated-sources/api/src/apis/ProviderAppApi.js +158 -0
- package/build/generated-sources/api/src/apis/RevisionApi.d.ts +87 -0
- package/build/generated-sources/api/src/apis/RevisionApi.js +113 -0
- package/build/generated-sources/api/src/apis/UploadURLApi.d.ts +46 -0
- package/build/generated-sources/api/src/apis/UploadURLApi.js +68 -0
- package/build/generated-sources/api/src/apis/index.d.ts +15 -1
- package/build/generated-sources/api/src/apis/index.js +15 -1
- package/build/generated-sources/api/src/models/CreateInstallationRequest.d.ts +2 -2
- package/build/generated-sources/api/src/models/CreateInstallationRequest.js +2 -2
- package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.d.ts +3 -3
- package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.js +3 -4
- package/build/generated-sources/api/src/models/Destination.d.ts +44 -0
- package/build/generated-sources/api/src/models/Destination.js +57 -0
- package/build/generated-sources/api/src/models/DestinationMetadata.d.ts +39 -0
- package/build/generated-sources/api/src/models/{CreateDestinationRequestMetadata.js → DestinationMetadata.js} +11 -11
- package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +1 -1
- package/build/generated-sources/api/src/models/OauthConnectRequest.js +1 -2
- package/build/generated-sources/api/src/models/Operation.d.ts +6 -12
- package/build/generated-sources/api/src/models/Operation.js +3 -6
- package/build/generated-sources/api/src/models/OperationLog.d.ts +43 -0
- package/build/generated-sources/api/src/models/OperationLog.js +56 -0
- package/build/generated-sources/api/src/models/ProviderApp.d.ts +6 -0
- package/build/generated-sources/api/src/models/ProviderApp.js +2 -0
- package/build/generated-sources/api/src/models/index.d.ts +3 -2
- package/build/generated-sources/api/src/models/index.js +3 -2
- package/build/src/assets/TrashIcon.js +3 -1
- package/build/src/components/Configure/InstallIntegration.d.ts +4 -1
- package/build/src/components/Configure/InstallIntegration.js +10 -23
- package/build/src/components/Configure/actions/onSaveReadCreateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/{onSaveCreate.js → onSaveReadCreateInstallation.js} +7 -6
- package/build/src/components/Configure/actions/onSaveReadUpdateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/{onSaveUpdate.js → onSaveReadUpdateInstallation.js} +13 -8
- package/build/src/components/Configure/actions/write/generateConfigWriteObjects.d.ts +26 -0
- package/build/src/components/Configure/actions/write/generateConfigWriteObjects.js +41 -0
- package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +85 -0
- package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.js +60 -0
- package/build/src/components/Configure/{ConfigureInstallationBase.d.ts → content/ConfigureInstallationBase.d.ts} +2 -1
- package/build/src/components/Configure/content/ConfigureInstallationBase.js +36 -0
- package/build/src/components/Configure/content/CreateInstallation.js +83 -0
- package/build/src/components/Configure/content/InstallationContent.d.ts +1 -0
- package/build/src/components/Configure/content/InstallationContent.js +20 -0
- package/build/src/components/Configure/{UninstallContent.js → content/UninstallContent.js} +15 -7
- package/build/src/components/Configure/{UpdateInstallation.d.ts → content/UpdateInstallation.d.ts} +1 -1
- package/build/src/components/Configure/{UpdateInstallation.js → content/UpdateInstallation.js} +42 -28
- package/build/src/components/Configure/{fields → content/fields}/FieldMappings/FieldMapping.d.ts +1 -1
- package/build/src/components/Configure/{fields → content/fields}/FieldMappings/FieldMapping.js +4 -7
- package/build/src/components/Configure/{fields → content/fields}/FieldMappings/RequiredFieldMappings.js +10 -11
- package/build/src/components/Configure/{fields → content/fields}/FieldMappings/setFieldMapping.d.ts +1 -1
- package/build/src/components/Configure/content/fields/FieldMappings/setFieldMapping.js +21 -0
- package/build/src/components/Configure/{fields → content/fields}/OptionalFields/OptionalFields.js +9 -14
- package/build/src/components/Configure/{fields → content/fields}/OptionalFields/setOptionalField.d.ts +1 -1
- package/build/src/components/Configure/content/fields/OptionalFields/setOptionalField.js +27 -0
- package/build/src/components/Configure/content/fields/ReadFields.d.ts +1 -0
- package/build/src/components/Configure/content/fields/ReadFields.js +11 -0
- package/build/src/components/Configure/content/fields/RequiredFields.js +23 -0
- package/build/src/components/Configure/content/fields/WriteFields/WriteFields.d.ts +1 -0
- package/build/src/components/Configure/content/fields/WriteFields/WriteFields.js +22 -0
- package/build/src/components/Configure/content/fields/WriteFields/index.d.ts +2 -0
- package/build/src/components/Configure/content/fields/WriteFields/index.js +5 -0
- package/build/src/components/Configure/content/fields/WriteFields/setNonConfigurableWriteField.d.ts +3 -0
- package/build/src/components/Configure/content/fields/WriteFields/setNonConfigurableWriteField.js +32 -0
- package/build/src/components/Configure/content/useMutateInstallation.d.ts +23 -0
- package/build/src/components/Configure/content/useMutateInstallation.js +47 -0
- package/build/src/components/Configure/content/useSelectedConfigureState.d.ts +72 -0
- package/build/src/components/Configure/content/useSelectedConfigureState.js +24 -0
- package/build/src/components/Configure/{ProtectedConnectionLayout.d.ts → layout/ProtectedConnectionLayout.d.ts} +2 -1
- package/build/src/components/Configure/layout/ProtectedConnectionLayout.js +34 -0
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/NavObjectItem.d.ts +1 -0
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/NavObjectItem.js +3 -3
- package/build/src/components/Configure/nav/ObjectManagementNav/OtherTab.d.ts +7 -0
- package/build/src/components/Configure/nav/ObjectManagementNav/OtherTab.js +11 -0
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/UninstallInstallation.d.ts +1 -1
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/UninstallInstallation.js +2 -2
- package/build/src/components/Configure/nav/ObjectManagementNav/constant.d.ts +1 -0
- package/build/src/components/Configure/nav/ObjectManagementNav/constant.js +4 -0
- package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/index.d.ts +1 -0
- package/build/src/components/Configure/nav/ObjectManagementNav/index.js +61 -0
- package/build/src/components/Configure/state/ConfigurationStateProvider.d.ts +70 -42
- package/build/src/components/Configure/state/ConfigurationStateProvider.js +39 -17
- package/build/src/components/Configure/state/HydratedRevisionContext.js +11 -9
- package/build/src/components/Configure/state/utils.d.ts +2 -2
- package/build/src/components/Configure/state/utils.js +44 -19
- package/build/src/components/Configure/types.d.ts +22 -6
- package/build/src/components/Configure/utils.d.ts +3 -2
- package/build/src/components/Configure/utils.js +25 -5
- package/build/src/components/Connect/ConnectProvider.d.ts +3 -1
- package/build/src/components/Connect/ConnectProvider.js +6 -12
- package/build/src/components/Connect/ConnectedSuccessBox.d.ts +5 -0
- package/build/src/components/Connect/ConnectedSuccessBox.js +13 -0
- package/build/src/components/Connect/useConnectionHandler.d.ts +10 -0
- package/build/src/components/Connect/useConnectionHandler.js +24 -0
- package/build/src/components/ErrorTextBox.js +11 -0
- package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.d.ts +8 -0
- package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.js +11 -0
- package/build/src/components/Oauth/NoSubdomainEntry/NoSubdomainOauthFlow.d.ts +16 -0
- package/build/src/components/Oauth/NoSubdomainEntry/NoSubdomainOauthFlow.js +50 -0
- package/build/src/components/Oauth/OAuthErrorAlert.d.ts +5 -0
- package/build/src/components/Oauth/OAuthErrorAlert.js +12 -0
- package/build/src/components/{Connect → Oauth}/OAuthPopup.js +8 -10
- package/build/src/components/{Salesforce → Oauth/Salesforce}/SalesforceOauthFlow.d.ts +2 -2
- package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +57 -0
- package/build/src/components/Oauth/Salesforce/SubdomainEntry.d.ts +8 -0
- package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +12 -0
- package/build/src/components/Oauth/fetchOAuthCallbackURL.d.ts +1 -0
- package/build/src/components/Oauth/fetchOAuthCallbackURL.js +28 -0
- package/build/src/components/RedirectHandler/RedirectHandler.d.ts +15 -0
- package/build/src/components/RedirectHandler/RedirectHandler.js +31 -0
- package/build/src/components/RedirectHandler/index.d.ts +1 -0
- package/build/src/components/RedirectHandler/index.js +5 -0
- package/build/src/constants.d.ts +1 -0
- package/build/src/constants.js +2 -1
- package/build/src/{components/AmpersandProvider/AmpersandProvider.js → context/AmpersandContextProvider/AmpersandContextProvider.js} +6 -6
- package/build/src/context/AmpersandContextProvider/index.d.ts +1 -0
- package/build/src/{components/AmpersandProvider → context/AmpersandContextProvider}/index.js +1 -1
- package/build/src/context/{ConnectionsContext.js → ConnectionsContextProvider.js} +11 -10
- package/build/src/context/{InstallIntegrationContext.d.ts → InstallIntegrationContextProvider.d.ts} +7 -2
- package/build/src/context/{InstallIntegrationContext.js → InstallIntegrationContextProvider.js} +29 -14
- package/build/src/context/{IntegrationListContext.js → IntegrationListContextProvider.js} +4 -4
- package/build/src/context/{ProjectContext.js → ProjectContextProvider.js} +4 -4
- package/build/src/hooks/useIsIntegrationInstalled.js +7 -7
- package/build/src/index.d.ts +1 -2
- package/build/src/index.js +1 -2
- package/build/src/public/index.d.ts +7 -0
- package/build/src/{components → public}/index.js +7 -3
- package/build/src/services/ApiService.d.ts +27 -0
- package/build/src/services/ApiService.js +34 -0
- package/build/src/services/api.d.ts +5 -4
- package/build/src/services/api.js +11 -6
- package/package.json +3 -3
- package/build/generated-sources/api/src/apis/DefaultApi.d.ts +0 -904
- package/build/generated-sources/api/src/apis/DefaultApi.js +0 -992
- package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +0 -44
- package/build/generated-sources/api/src/models/CreateDestinationRequest.js +0 -57
- package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +0 -39
- package/build/src/components/AmpersandProvider/index.d.ts +0 -1
- package/build/src/components/CenteredTextBox/CenteredTextBox.d.ts +0 -5
- package/build/src/components/CenteredTextBox/CenteredTextBox.js +0 -8
- package/build/src/components/Configure/ConfigureInstallationBase.js +0 -29
- package/build/src/components/Configure/CreateInstallation.js +0 -70
- package/build/src/components/Configure/ErrorTextBox.js +0 -9
- package/build/src/components/Configure/ObjectManagementNav/index.js +0 -52
- package/build/src/components/Configure/ProtectedConnectionLayout.js +0 -33
- package/build/src/components/Configure/actions/onSaveCreate.d.ts +0 -3
- package/build/src/components/Configure/actions/onSaveUpdate.d.ts +0 -3
- package/build/src/components/Configure/fields/FieldMappings/setFieldMapping.js +0 -18
- package/build/src/components/Configure/fields/OptionalFields/setOptionalField.js +0 -21
- package/build/src/components/Configure/fields/RequiredFields.js +0 -27
- package/build/src/components/Salesforce/SalesforceOauthFlow.js +0 -89
- package/build/src/components/index.d.ts +0 -3
- /package/build/src/components/Configure/{CreateInstallation.d.ts → content/CreateInstallation.d.ts} +0 -0
- /package/build/src/components/Configure/{UninstallContent.d.ts → content/UninstallContent.d.ts} +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldHeader.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldHeader.js +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/RequiredFieldMappings.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/index.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/index.js +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/OptionalFields.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/index.d.ts +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/index.js +0 -0
- /package/build/src/components/Configure/{fields → content/fields}/RequiredFields.d.ts +0 -0
- /package/build/src/components/{Configure/ErrorTextBox.d.ts → ErrorTextBox.d.ts} +0 -0
- /package/build/src/components/{Connect → Oauth}/OAuthPopup.d.ts +0 -0
- /package/build/src/{components/AmpersandProvider/AmpersandProvider.d.ts → context/AmpersandContextProvider/AmpersandContextProvider.d.ts} +0 -0
- /package/build/src/context/{ApiKeyProvider.d.ts → ApiKeyContextProvider.d.ts} +0 -0
- /package/build/src/context/{ApiKeyProvider.js → ApiKeyContextProvider.js} +0 -0
- /package/build/src/context/{ConnectionsContext.d.ts → ConnectionsContextProvider.d.ts} +0 -0
- /package/build/src/context/{IntegrationListContext.d.ts → IntegrationListContextProvider.d.ts} +0 -0
- /package/build/src/context/{ProjectContext.d.ts → ProjectContextProvider.d.ts} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
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: 1.0.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 * as runtime from '../runtime';
|
|
13
|
+
import type { SignedUrl } from '../models';
|
|
14
|
+
/**
|
|
15
|
+
* UploadURLApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface UploadURLApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface UploadURLApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Generate a signed URL to upload a zip file to.
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
* @memberof UploadURLApiInterface
|
|
27
|
+
*/
|
|
28
|
+
generateUploadUrlRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignedUrl>>;
|
|
29
|
+
/**
|
|
30
|
+
* Generate a signed URL to upload a zip file to.
|
|
31
|
+
*/
|
|
32
|
+
generateUploadUrl(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignedUrl>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export declare class UploadURLApi extends runtime.BaseAPI implements UploadURLApiInterface {
|
|
38
|
+
/**
|
|
39
|
+
* Generate a signed URL to upload a zip file to.
|
|
40
|
+
*/
|
|
41
|
+
generateUploadUrlRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignedUrl>>;
|
|
42
|
+
/**
|
|
43
|
+
* Generate a signed URL to upload a zip file to.
|
|
44
|
+
*/
|
|
45
|
+
generateUploadUrl(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignedUrl>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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: 1.0.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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UploadURLApi = void 0;
|
|
40
|
+
const runtime = __importStar(require("../runtime"));
|
|
41
|
+
const models_1 = require("../models");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
class UploadURLApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Generate a signed URL to upload a zip file to.
|
|
48
|
+
*/
|
|
49
|
+
async generateUploadUrlRaw(initOverrides) {
|
|
50
|
+
const queryParameters = {};
|
|
51
|
+
const headerParameters = {};
|
|
52
|
+
const response = await this.request({
|
|
53
|
+
path: `/generate-upload-url`,
|
|
54
|
+
method: 'GET',
|
|
55
|
+
headers: headerParameters,
|
|
56
|
+
query: queryParameters,
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.SignedUrlFromJSON)(jsonValue));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Generate a signed URL to upload a zip file to.
|
|
62
|
+
*/
|
|
63
|
+
async generateUploadUrl(initOverrides) {
|
|
64
|
+
const response = await this.generateUploadUrlRaw(initOverrides);
|
|
65
|
+
return await response.value();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.UploadURLApi = UploadURLApi;
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './AllowedDomainApi';
|
|
2
|
+
export * from './ConnectionApi';
|
|
3
|
+
export * from './ConsumerApi';
|
|
4
|
+
export * from './DestinationApi';
|
|
5
|
+
export * from './GroupApi';
|
|
6
|
+
export * from './InstallationApi';
|
|
7
|
+
export * from './IntegrationApi';
|
|
8
|
+
export * from './OAuthApi';
|
|
9
|
+
export * from './OperationApi';
|
|
10
|
+
export * from './OperationLogApi';
|
|
11
|
+
export * from './ProjectApi';
|
|
12
|
+
export * from './ProjectMembershipApi';
|
|
13
|
+
export * from './ProviderAppApi';
|
|
14
|
+
export * from './RevisionApi';
|
|
15
|
+
export * from './UploadURLApi';
|
|
@@ -16,4 +16,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./AllowedDomainApi"), exports);
|
|
20
|
+
__exportStar(require("./ConnectionApi"), exports);
|
|
21
|
+
__exportStar(require("./ConsumerApi"), exports);
|
|
22
|
+
__exportStar(require("./DestinationApi"), exports);
|
|
23
|
+
__exportStar(require("./GroupApi"), exports);
|
|
24
|
+
__exportStar(require("./InstallationApi"), exports);
|
|
25
|
+
__exportStar(require("./IntegrationApi"), exports);
|
|
26
|
+
__exportStar(require("./OAuthApi"), exports);
|
|
27
|
+
__exportStar(require("./OperationApi"), exports);
|
|
28
|
+
__exportStar(require("./OperationLogApi"), exports);
|
|
29
|
+
__exportStar(require("./ProjectApi"), exports);
|
|
30
|
+
__exportStar(require("./ProjectMembershipApi"), exports);
|
|
31
|
+
__exportStar(require("./ProviderAppApi"), exports);
|
|
32
|
+
__exportStar(require("./RevisionApi"), exports);
|
|
33
|
+
__exportStar(require("./UploadURLApi"), exports);
|
|
@@ -23,11 +23,11 @@ export interface CreateInstallationRequest {
|
|
|
23
23
|
*/
|
|
24
24
|
groupRef: string;
|
|
25
25
|
/**
|
|
26
|
-
* The ID of the SaaS connection tied to this installation.
|
|
26
|
+
* The ID of the SaaS connection tied to this installation. If omitted the default connection for this group will be used.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof CreateInstallationRequest
|
|
29
29
|
*/
|
|
30
|
-
connectionId
|
|
30
|
+
connectionId?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {CreateInstallationRequestConfig}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateInstallationRequestToJSON = exports.CreateInstallationRequestFromJSONTyped = exports.CreateInstallationRequestFromJSON = exports.instanceOfCreateInstallationRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
const CreateInstallationRequestConfig_1 = require("./CreateInstallationRequestConfig");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the CreateInstallationRequest interface.
|
|
@@ -21,7 +22,6 @@ const CreateInstallationRequestConfig_1 = require("./CreateInstallationRequestCo
|
|
|
21
22
|
function instanceOfCreateInstallationRequest(value) {
|
|
22
23
|
let isInstance = true;
|
|
23
24
|
isInstance = isInstance && "groupRef" in value;
|
|
24
|
-
isInstance = isInstance && "connectionId" in value;
|
|
25
25
|
isInstance = isInstance && "config" in value;
|
|
26
26
|
return isInstance;
|
|
27
27
|
}
|
|
@@ -36,7 +36,7 @@ function CreateInstallationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'groupRef': json['groupRef'],
|
|
39
|
-
'connectionId': json['connectionId'],
|
|
39
|
+
'connectionId': !(0, runtime_1.exists)(json, 'connectionId') ? undefined : json['connectionId'],
|
|
40
40
|
'config': (0, CreateInstallationRequestConfig_1.CreateInstallationRequestConfigFromJSON)(json['config']),
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -17,17 +17,17 @@ import type { ConfigContent } from './ConfigContent';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateInstallationRequestConfig {
|
|
19
19
|
/**
|
|
20
|
-
* The ID of the revision that this config is based on.
|
|
20
|
+
* The ID of the revision that this config is based on. If omitted, the latest revision is assumed.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof CreateInstallationRequestConfig
|
|
23
23
|
*/
|
|
24
|
-
revisionId
|
|
24
|
+
revisionId?: string;
|
|
25
25
|
/**
|
|
26
26
|
* The person who created the config, in the format of "consumer:{consumer-id}" or "builder:{builder-id}".
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof CreateInstallationRequestConfig
|
|
29
29
|
*/
|
|
30
|
-
createdBy
|
|
30
|
+
createdBy?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {ConfigContent}
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateInstallationRequestConfigToJSON = exports.CreateInstallationRequestConfigFromJSONTyped = exports.CreateInstallationRequestConfigFromJSON = exports.instanceOfCreateInstallationRequestConfig = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
const ConfigContent_1 = require("./ConfigContent");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the CreateInstallationRequestConfig interface.
|
|
20
21
|
*/
|
|
21
22
|
function instanceOfCreateInstallationRequestConfig(value) {
|
|
22
23
|
let isInstance = true;
|
|
23
|
-
isInstance = isInstance && "revisionId" in value;
|
|
24
|
-
isInstance = isInstance && "createdBy" in value;
|
|
25
24
|
isInstance = isInstance && "content" in value;
|
|
26
25
|
return isInstance;
|
|
27
26
|
}
|
|
@@ -35,8 +34,8 @@ function CreateInstallationRequestConfigFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
34
|
return json;
|
|
36
35
|
}
|
|
37
36
|
return {
|
|
38
|
-
'revisionId': json['revisionId'],
|
|
39
|
-
'createdBy': json['createdBy'],
|
|
37
|
+
'revisionId': !(0, runtime_1.exists)(json, 'revisionId') ? undefined : json['revisionId'],
|
|
38
|
+
'createdBy': !(0, runtime_1.exists)(json, 'createdBy') ? undefined : json['createdBy'],
|
|
40
39
|
'content': (0, ConfigContent_1.ConfigContentFromJSON)(json['content']),
|
|
41
40
|
};
|
|
42
41
|
}
|
|
@@ -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: 1.0.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 { DestinationMetadata } from './DestinationMetadata';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Destination
|
|
17
|
+
*/
|
|
18
|
+
export interface Destination {
|
|
19
|
+
/**
|
|
20
|
+
* User-friendly name for the destination
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Destination
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* The type of the destination
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Destination
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {DestinationMetadata}
|
|
34
|
+
* @memberof Destination
|
|
35
|
+
*/
|
|
36
|
+
metadata: DestinationMetadata;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the Destination interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfDestination(value: object): boolean;
|
|
42
|
+
export declare function DestinationFromJSON(json: any): Destination;
|
|
43
|
+
export declare function DestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Destination;
|
|
44
|
+
export declare function DestinationToJSON(value?: Destination | 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: 1.0.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.DestinationToJSON = exports.DestinationFromJSONTyped = exports.DestinationFromJSON = exports.instanceOfDestination = void 0;
|
|
17
|
+
const DestinationMetadata_1 = require("./DestinationMetadata");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Destination interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfDestination(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
isInstance = isInstance && "type" in value;
|
|
25
|
+
isInstance = isInstance && "metadata" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfDestination = instanceOfDestination;
|
|
29
|
+
function DestinationFromJSON(json) {
|
|
30
|
+
return DestinationFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.DestinationFromJSON = DestinationFromJSON;
|
|
33
|
+
function DestinationFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'metadata': (0, DestinationMetadata_1.DestinationMetadataFromJSON)(json['metadata']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.DestinationFromJSONTyped = DestinationFromJSONTyped;
|
|
44
|
+
function DestinationToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value.name,
|
|
53
|
+
'type': value.type,
|
|
54
|
+
'metadata': (0, DestinationMetadata_1.DestinationMetadataToJSON)(value.metadata),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.DestinationToJSON = DestinationToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 DestinationMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface DestinationMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Webhook URL
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DestinationMetadata
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Webhook headers to add
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof DestinationMetadata
|
|
28
|
+
*/
|
|
29
|
+
headers?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
} | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the DestinationMetadata interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfDestinationMetadata(value: object): boolean;
|
|
37
|
+
export declare function DestinationMetadataFromJSON(json: any): DestinationMetadata;
|
|
38
|
+
export declare function DestinationMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationMetadata;
|
|
39
|
+
export declare function DestinationMetadataToJSON(value?: DestinationMetadata | null): any;
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.DestinationMetadataToJSON = exports.DestinationMetadataFromJSONTyped = exports.DestinationMetadataFromJSON = exports.instanceOfDestinationMetadata = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
/**
|
|
19
|
-
* Check if a given object implements the
|
|
19
|
+
* Check if a given object implements the DestinationMetadata interface.
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
21
|
+
function instanceOfDestinationMetadata(value) {
|
|
22
22
|
let isInstance = true;
|
|
23
23
|
return isInstance;
|
|
24
24
|
}
|
|
25
|
-
exports.
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
exports.instanceOfDestinationMetadata = instanceOfDestinationMetadata;
|
|
26
|
+
function DestinationMetadataFromJSON(json) {
|
|
27
|
+
return DestinationMetadataFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
exports.
|
|
30
|
-
function
|
|
29
|
+
exports.DestinationMetadataFromJSON = DestinationMetadataFromJSON;
|
|
30
|
+
function DestinationMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if ((json === undefined) || (json === null)) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
@@ -36,8 +36,8 @@ function CreateDestinationRequestMetadataFromJSONTyped(json, ignoreDiscriminator
|
|
|
36
36
|
'headers': !(0, runtime_1.exists)(json, 'headers') ? undefined : json['headers'],
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
exports.
|
|
40
|
-
function
|
|
39
|
+
exports.DestinationMetadataFromJSONTyped = DestinationMetadataFromJSONTyped;
|
|
40
|
+
function DestinationMetadataToJSON(value) {
|
|
41
41
|
if (value === undefined) {
|
|
42
42
|
return undefined;
|
|
43
43
|
}
|
|
@@ -49,4 +49,4 @@ function CreateDestinationRequestMetadataToJSON(value) {
|
|
|
49
49
|
'headers': value.headers,
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
exports.
|
|
52
|
+
exports.DestinationMetadataToJSON = DestinationMetadataToJSON;
|
|
@@ -20,7 +20,6 @@ const runtime_1 = require("../runtime");
|
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfOauthConnectRequest(value) {
|
|
22
22
|
let isInstance = true;
|
|
23
|
-
isInstance = isInstance && "providerWorkspaceRef" in value;
|
|
24
23
|
isInstance = isInstance && "projectId" in value;
|
|
25
24
|
isInstance = isInstance && "groupRef" in value;
|
|
26
25
|
isInstance = isInstance && "consumerRef" in value;
|
|
@@ -38,7 +37,7 @@ function OauthConnectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
37
|
return json;
|
|
39
38
|
}
|
|
40
39
|
return {
|
|
41
|
-
'providerWorkspaceRef': json['providerWorkspaceRef'],
|
|
40
|
+
'providerWorkspaceRef': !(0, runtime_1.exists)(json, 'providerWorkspaceRef') ? undefined : json['providerWorkspaceRef'],
|
|
42
41
|
'projectId': json['projectId'],
|
|
43
42
|
'groupRef': json['groupRef'],
|
|
44
43
|
'groupName': !(0, runtime_1.exists)(json, 'groupName') ? undefined : json['groupName'],
|
|
@@ -35,29 +35,23 @@ export interface Operation {
|
|
|
35
35
|
*/
|
|
36
36
|
objectName: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Operation
|
|
41
|
-
*/
|
|
42
|
-
installationId: string;
|
|
43
|
-
/**
|
|
44
|
-
* The status of the operation.
|
|
38
|
+
* The operation ID.
|
|
45
39
|
* @type {string}
|
|
46
40
|
* @memberof Operation
|
|
47
41
|
*/
|
|
48
|
-
|
|
42
|
+
id: string;
|
|
49
43
|
/**
|
|
50
|
-
* The
|
|
44
|
+
* The Ampersand installation ID.
|
|
51
45
|
* @type {string}
|
|
52
46
|
* @memberof Operation
|
|
53
47
|
*/
|
|
54
|
-
|
|
48
|
+
installationId: string;
|
|
55
49
|
/**
|
|
56
|
-
* The
|
|
50
|
+
* The status of the operation.
|
|
57
51
|
* @type {string}
|
|
58
52
|
* @memberof Operation
|
|
59
53
|
*/
|
|
60
|
-
|
|
54
|
+
status?: string;
|
|
61
55
|
/**
|
|
62
56
|
* The error history of the operation.
|
|
63
57
|
* @type {Array<OperationError>}
|
|
@@ -24,9 +24,8 @@ function instanceOfOperation(value) {
|
|
|
24
24
|
isInstance = isInstance && "projectId" in value;
|
|
25
25
|
isInstance = isInstance && "actionType" in value;
|
|
26
26
|
isInstance = isInstance && "objectName" in value;
|
|
27
|
+
isInstance = isInstance && "id" in value;
|
|
27
28
|
isInstance = isInstance && "installationId" in value;
|
|
28
|
-
isInstance = isInstance && "workflowRef" in value;
|
|
29
|
-
isInstance = isInstance && "runRef" in value;
|
|
30
29
|
return isInstance;
|
|
31
30
|
}
|
|
32
31
|
exports.instanceOfOperation = instanceOfOperation;
|
|
@@ -42,10 +41,9 @@ function OperationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
41
|
'projectId': json['projectId'],
|
|
43
42
|
'actionType': json['actionType'],
|
|
44
43
|
'objectName': json['objectName'],
|
|
44
|
+
'id': json['id'],
|
|
45
45
|
'installationId': json['installationId'],
|
|
46
46
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
47
|
-
'workflowRef': json['workflowRef'],
|
|
48
|
-
'runRef': json['runRef'],
|
|
49
47
|
'errorHistory': !(0, runtime_1.exists)(json, 'errorHistory') ? undefined : (json['errorHistory'].map(OperationError_1.OperationErrorFromJSON)),
|
|
50
48
|
'createTime': !(0, runtime_1.exists)(json, 'createTime') ? undefined : (new Date(json['createTime'])),
|
|
51
49
|
};
|
|
@@ -62,10 +60,9 @@ function OperationToJSON(value) {
|
|
|
62
60
|
'projectId': value.projectId,
|
|
63
61
|
'actionType': value.actionType,
|
|
64
62
|
'objectName': value.objectName,
|
|
63
|
+
'id': value.id,
|
|
65
64
|
'installationId': value.installationId,
|
|
66
65
|
'status': value.status,
|
|
67
|
-
'workflowRef': value.workflowRef,
|
|
68
|
-
'runRef': value.runRef,
|
|
69
66
|
'errorHistory': value.errorHistory === undefined ? undefined : (value.errorHistory.map(OperationError_1.OperationErrorToJSON)),
|
|
70
67
|
'createTime': value.createTime === undefined ? undefined : (value.createTime.toISOString()),
|
|
71
68
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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: 1.0.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 OperationLog
|
|
16
|
+
*/
|
|
17
|
+
export interface OperationLog {
|
|
18
|
+
/**
|
|
19
|
+
* The time the log was created.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OperationLog
|
|
22
|
+
*/
|
|
23
|
+
timestamp: string;
|
|
24
|
+
/**
|
|
25
|
+
* The log message.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OperationLog
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
* The severity of the log.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OperationLog
|
|
34
|
+
*/
|
|
35
|
+
severity: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the OperationLog interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfOperationLog(value: object): boolean;
|
|
41
|
+
export declare function OperationLogFromJSON(json: any): OperationLog;
|
|
42
|
+
export declare function OperationLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationLog;
|
|
43
|
+
export declare function OperationLogToJSON(value?: OperationLog | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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: 1.0.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.OperationLogToJSON = exports.OperationLogFromJSONTyped = exports.OperationLogFromJSON = exports.instanceOfOperationLog = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the OperationLog interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfOperationLog(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "timestamp" in value;
|
|
23
|
+
isInstance = isInstance && "message" in value;
|
|
24
|
+
isInstance = isInstance && "severity" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfOperationLog = instanceOfOperationLog;
|
|
28
|
+
function OperationLogFromJSON(json) {
|
|
29
|
+
return OperationLogFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.OperationLogFromJSON = OperationLogFromJSON;
|
|
32
|
+
function OperationLogFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'timestamp': json['timestamp'],
|
|
38
|
+
'message': json['message'],
|
|
39
|
+
'severity': json['severity'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.OperationLogFromJSONTyped = OperationLogFromJSONTyped;
|
|
43
|
+
function OperationLogToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'timestamp': value.timestamp,
|
|
52
|
+
'message': value.message,
|
|
53
|
+
'severity': value.severity,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.OperationLogToJSON = OperationLogToJSON;
|
|
@@ -45,6 +45,12 @@ export interface ProviderApp {
|
|
|
45
45
|
* @memberof ProviderApp
|
|
46
46
|
*/
|
|
47
47
|
clientId: string;
|
|
48
|
+
/**
|
|
49
|
+
* The OAuth scopes for this app.
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof ProviderApp
|
|
52
|
+
*/
|
|
53
|
+
scopes?: Array<string>;
|
|
48
54
|
/**
|
|
49
55
|
* The time the provider app was created.
|
|
50
56
|
* @type {Date}
|
|
@@ -42,6 +42,7 @@ function ProviderAppFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'externalRef': !(0, runtime_1.exists)(json, 'externalRef') ? undefined : json['externalRef'],
|
|
43
43
|
'provider': json['provider'],
|
|
44
44
|
'clientId': json['clientId'],
|
|
45
|
+
'scopes': !(0, runtime_1.exists)(json, 'scopes') ? undefined : json['scopes'],
|
|
45
46
|
'createTime': (new Date(json['createTime'])),
|
|
46
47
|
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
47
48
|
};
|
|
@@ -60,6 +61,7 @@ function ProviderAppToJSON(value) {
|
|
|
60
61
|
'externalRef': value.externalRef,
|
|
61
62
|
'provider': value.provider,
|
|
62
63
|
'clientId': value.clientId,
|
|
64
|
+
'scopes': value.scopes,
|
|
63
65
|
'createTime': (value.createTime.toISOString()),
|
|
64
66
|
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
65
67
|
};
|