@amp-labs/react 1.1.0 → 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/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/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/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} +10 -9
- 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/{ProtectedConnectionLayout.js → layout/ProtectedConnectionLayout.js} +13 -13
- 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/{Hubspot/HubspotLandingContent.js → NoSubdomainEntry/LandingContent.js} +5 -4
- package/build/src/components/Oauth/NoSubdomainEntry/NoSubdomainOauthFlow.d.ts +16 -0
- package/build/src/components/Oauth/{Hubspot/HubspotOauthFlow.js → NoSubdomainEntry/NoSubdomainOauthFlow.js} +14 -14
- package/build/src/components/{Connect → Oauth}/OAuthPopup.js +8 -10
- package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +5 -5
- package/build/src/components/Oauth/fetchOAuthCallbackURL.d.ts +1 -1
- package/build/src/components/Oauth/fetchOAuthCallbackURL.js +3 -4
- 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/{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 +2 -2
- package/build/generated-sources/api/src/apis/DefaultApi.d.ts +0 -930
- package/build/generated-sources/api/src/apis/DefaultApi.js +0 -1019
- 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 -53
- 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/Oauth/Hubspot/HubspotLandingContent.d.ts +0 -7
- package/build/src/components/Oauth/Hubspot/HubspotOauthFlow.d.ts +0 -15
- 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,158 @@
|
|
|
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.ProviderAppApi = void 0;
|
|
40
|
+
const runtime = __importStar(require("../runtime"));
|
|
41
|
+
const models_1 = require("../models");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
class ProviderAppApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Create a new provider app
|
|
48
|
+
*/
|
|
49
|
+
async createProviderAppRaw(requestParameters, initOverrides) {
|
|
50
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
51
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling createProviderApp.');
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters.providerApp === null || requestParameters.providerApp === undefined) {
|
|
54
|
+
throw new runtime.RequiredError('providerApp', 'Required parameter requestParameters.providerApp was null or undefined when calling createProviderApp.');
|
|
55
|
+
}
|
|
56
|
+
const queryParameters = {};
|
|
57
|
+
const headerParameters = {};
|
|
58
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
59
|
+
const response = await this.request({
|
|
60
|
+
path: `/projects/{projectId}/provider-apps`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
61
|
+
method: 'POST',
|
|
62
|
+
headers: headerParameters,
|
|
63
|
+
query: queryParameters,
|
|
64
|
+
body: (0, models_1.CreateProviderAppRequestToJSON)(requestParameters.providerApp),
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ProviderAppFromJSON)(jsonValue));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Create a new provider app
|
|
70
|
+
*/
|
|
71
|
+
async createProviderApp(requestParameters, initOverrides) {
|
|
72
|
+
const response = await this.createProviderAppRaw(requestParameters, initOverrides);
|
|
73
|
+
return await response.value();
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Delete a provider app
|
|
77
|
+
*/
|
|
78
|
+
async deleteProviderAppRaw(requestParameters, initOverrides) {
|
|
79
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
80
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteProviderApp.');
|
|
81
|
+
}
|
|
82
|
+
if (requestParameters.providerAppId === null || requestParameters.providerAppId === undefined) {
|
|
83
|
+
throw new runtime.RequiredError('providerAppId', 'Required parameter requestParameters.providerAppId was null or undefined when calling deleteProviderApp.');
|
|
84
|
+
}
|
|
85
|
+
const queryParameters = {};
|
|
86
|
+
const headerParameters = {};
|
|
87
|
+
const response = await this.request({
|
|
88
|
+
path: `/projects/{projectId}/provider-apps/{providerAppId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"providerAppId"}}`, encodeURIComponent(String(requestParameters.providerAppId))),
|
|
89
|
+
method: 'DELETE',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
}, initOverrides);
|
|
93
|
+
return new runtime.VoidApiResponse(response);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Delete a provider app
|
|
97
|
+
*/
|
|
98
|
+
async deleteProviderApp(requestParameters, initOverrides) {
|
|
99
|
+
await this.deleteProviderAppRaw(requestParameters, initOverrides);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* List provider apps
|
|
103
|
+
*/
|
|
104
|
+
async listProviderAppsRaw(requestParameters, initOverrides) {
|
|
105
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
106
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling listProviderApps.');
|
|
107
|
+
}
|
|
108
|
+
const queryParameters = {};
|
|
109
|
+
const headerParameters = {};
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: `/projects/{projectId}/provider-apps`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides);
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.ProviderAppFromJSON));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* List provider apps
|
|
120
|
+
*/
|
|
121
|
+
async listProviderApps(requestParameters, initOverrides) {
|
|
122
|
+
const response = await this.listProviderAppsRaw(requestParameters, initOverrides);
|
|
123
|
+
return await response.value();
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Update a provider app
|
|
127
|
+
*/
|
|
128
|
+
async updateProviderAppRaw(requestParameters, initOverrides) {
|
|
129
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
130
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProviderApp.');
|
|
131
|
+
}
|
|
132
|
+
if (requestParameters.providerAppId === null || requestParameters.providerAppId === undefined) {
|
|
133
|
+
throw new runtime.RequiredError('providerAppId', 'Required parameter requestParameters.providerAppId was null or undefined when calling updateProviderApp.');
|
|
134
|
+
}
|
|
135
|
+
if (requestParameters.providerAppUpdate === null || requestParameters.providerAppUpdate === undefined) {
|
|
136
|
+
throw new runtime.RequiredError('providerAppUpdate', 'Required parameter requestParameters.providerAppUpdate was null or undefined when calling updateProviderApp.');
|
|
137
|
+
}
|
|
138
|
+
const queryParameters = {};
|
|
139
|
+
const headerParameters = {};
|
|
140
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
141
|
+
const response = await this.request({
|
|
142
|
+
path: `/projects/{projectId}/provider-apps/{providerAppId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"providerAppId"}}`, encodeURIComponent(String(requestParameters.providerAppId))),
|
|
143
|
+
method: 'PATCH',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
body: (0, models_1.UpdateProviderAppRequestToJSON)(requestParameters.providerAppUpdate),
|
|
147
|
+
}, initOverrides);
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ProviderAppFromJSON)(jsonValue));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Update a provider app
|
|
152
|
+
*/
|
|
153
|
+
async updateProviderApp(requestParameters, initOverrides) {
|
|
154
|
+
const response = await this.updateProviderAppRaw(requestParameters, initOverrides);
|
|
155
|
+
return await response.value();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.ProviderAppApi = ProviderAppApi;
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { BatchUpsertIntegrationsRequest, HydratedRevision } from '../models';
|
|
14
|
+
export interface CreateRevisionRequest {
|
|
15
|
+
projectId: string;
|
|
16
|
+
integrationId: string;
|
|
17
|
+
revision?: BatchUpsertIntegrationsRequest;
|
|
18
|
+
}
|
|
19
|
+
export interface GetHydratedRevisionRequest {
|
|
20
|
+
projectId: string;
|
|
21
|
+
integrationId: string;
|
|
22
|
+
revisionId: string;
|
|
23
|
+
connectionId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* RevisionApi - interface
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface RevisionApiInterface
|
|
30
|
+
*/
|
|
31
|
+
export interface RevisionApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Create a new revision
|
|
35
|
+
* @param {string} projectId
|
|
36
|
+
* @param {string} integrationId
|
|
37
|
+
* @param {BatchUpsertIntegrationsRequest} [revision]
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof RevisionApiInterface
|
|
41
|
+
*/
|
|
42
|
+
createRevisionRaw(requestParameters: CreateRevisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
|
+
/**
|
|
44
|
+
* Create a new revision
|
|
45
|
+
*/
|
|
46
|
+
createRevision(requestParameters: CreateRevisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Hydrate a revision with information from the consumer\'s SaaS instance.
|
|
49
|
+
* @summary Hydrate a revision
|
|
50
|
+
* @param {string} projectId
|
|
51
|
+
* @param {string} integrationId
|
|
52
|
+
* @param {string} revisionId
|
|
53
|
+
* @param {string} connectionId
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
* @memberof RevisionApiInterface
|
|
57
|
+
*/
|
|
58
|
+
getHydratedRevisionRaw(requestParameters: GetHydratedRevisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HydratedRevision>>;
|
|
59
|
+
/**
|
|
60
|
+
* Hydrate a revision with information from the consumer\'s SaaS instance.
|
|
61
|
+
* Hydrate a revision
|
|
62
|
+
*/
|
|
63
|
+
getHydratedRevision(requestParameters: GetHydratedRevisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HydratedRevision>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export declare class RevisionApi extends runtime.BaseAPI implements RevisionApiInterface {
|
|
69
|
+
/**
|
|
70
|
+
* Create a new revision
|
|
71
|
+
*/
|
|
72
|
+
createRevisionRaw(requestParameters: CreateRevisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
73
|
+
/**
|
|
74
|
+
* Create a new revision
|
|
75
|
+
*/
|
|
76
|
+
createRevision(requestParameters: CreateRevisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Hydrate a revision with information from the consumer\'s SaaS instance.
|
|
79
|
+
* Hydrate a revision
|
|
80
|
+
*/
|
|
81
|
+
getHydratedRevisionRaw(requestParameters: GetHydratedRevisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HydratedRevision>>;
|
|
82
|
+
/**
|
|
83
|
+
* Hydrate a revision with information from the consumer\'s SaaS instance.
|
|
84
|
+
* Hydrate a revision
|
|
85
|
+
*/
|
|
86
|
+
getHydratedRevision(requestParameters: GetHydratedRevisionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HydratedRevision>;
|
|
87
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
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.RevisionApi = void 0;
|
|
40
|
+
const runtime = __importStar(require("../runtime"));
|
|
41
|
+
const models_1 = require("../models");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
class RevisionApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Create a new revision
|
|
48
|
+
*/
|
|
49
|
+
async createRevisionRaw(requestParameters, initOverrides) {
|
|
50
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
51
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling createRevision.');
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
54
|
+
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling createRevision.');
|
|
55
|
+
}
|
|
56
|
+
const queryParameters = {};
|
|
57
|
+
const headerParameters = {};
|
|
58
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
59
|
+
const response = await this.request({
|
|
60
|
+
path: `/projects/{projectId}/integrations/{integrationId}/revisions`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
61
|
+
method: 'POST',
|
|
62
|
+
headers: headerParameters,
|
|
63
|
+
query: queryParameters,
|
|
64
|
+
body: (0, models_1.BatchUpsertIntegrationsRequestToJSON)(requestParameters.revision),
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
return new runtime.VoidApiResponse(response);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Create a new revision
|
|
70
|
+
*/
|
|
71
|
+
async createRevision(requestParameters, initOverrides) {
|
|
72
|
+
await this.createRevisionRaw(requestParameters, initOverrides);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Hydrate a revision with information from the consumer\'s SaaS instance.
|
|
76
|
+
* Hydrate a revision
|
|
77
|
+
*/
|
|
78
|
+
async getHydratedRevisionRaw(requestParameters, initOverrides) {
|
|
79
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
80
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getHydratedRevision.');
|
|
81
|
+
}
|
|
82
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
83
|
+
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling getHydratedRevision.');
|
|
84
|
+
}
|
|
85
|
+
if (requestParameters.revisionId === null || requestParameters.revisionId === undefined) {
|
|
86
|
+
throw new runtime.RequiredError('revisionId', 'Required parameter requestParameters.revisionId was null or undefined when calling getHydratedRevision.');
|
|
87
|
+
}
|
|
88
|
+
if (requestParameters.connectionId === null || requestParameters.connectionId === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('connectionId', 'Required parameter requestParameters.connectionId was null or undefined when calling getHydratedRevision.');
|
|
90
|
+
}
|
|
91
|
+
const queryParameters = {};
|
|
92
|
+
if (requestParameters.connectionId !== undefined) {
|
|
93
|
+
queryParameters['connectionId'] = requestParameters.connectionId;
|
|
94
|
+
}
|
|
95
|
+
const headerParameters = {};
|
|
96
|
+
const response = await this.request({
|
|
97
|
+
path: `/projects/{projectId}/integrations/{integrationId}/revisions/{revisionId}:hydrate`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))).replace(`{${"revisionId"}}`, encodeURIComponent(String(requestParameters.revisionId))),
|
|
98
|
+
method: 'GET',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.HydratedRevisionFromJSON)(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Hydrate a revision with information from the consumer\'s SaaS instance.
|
|
106
|
+
* Hydrate a revision
|
|
107
|
+
*/
|
|
108
|
+
async getHydratedRevision(requestParameters, initOverrides) {
|
|
109
|
+
const response = await this.getHydratedRevisionRaw(requestParameters, initOverrides);
|
|
110
|
+
return await response.value();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.RevisionApi = RevisionApi;
|
|
@@ -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);
|
|
@@ -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;
|