@amp-labs/react 1.2.0 → 1.3.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/DestinationApi.d.ts +24 -0
- package/build/generated-sources/api/src/apis/DestinationApi.js +24 -0
- package/build/generated-sources/api/src/apis/InstallationApi.d.ts +28 -0
- package/build/generated-sources/api/src/apis/InstallationApi.js +30 -0
- package/build/generated-sources/api/src/apis/IntegrationApi.js +1 -4
- package/build/generated-sources/api/src/models/BaseConfigContent.d.ts +7 -0
- package/build/generated-sources/api/src/models/BaseConfigContent.js +3 -0
- package/build/generated-sources/api/src/models/BaseProxyConfig.d.ts +31 -0
- package/build/generated-sources/api/src/models/BaseProxyConfig.js +50 -0
- package/build/generated-sources/api/src/models/ConfigContent.d.ts +7 -0
- package/build/generated-sources/api/src/models/ConfigContent.js +3 -0
- package/build/generated-sources/api/src/models/HydratedIntegration.d.ts +7 -0
- package/build/generated-sources/api/src/models/HydratedIntegration.js +3 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationProxy.d.ts +31 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationProxy.js +50 -0
- package/build/generated-sources/api/src/models/ImportConnectionRequest.d.ts +1 -1
- package/build/generated-sources/api/src/models/Integration1.d.ts +7 -0
- package/build/generated-sources/api/src/models/Integration1.js +3 -0
- package/build/generated-sources/api/src/models/IntegrationProxy.d.ts +31 -0
- package/build/generated-sources/api/src/models/IntegrationProxy.js +50 -0
- package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +6 -6
- package/build/generated-sources/api/src/models/OauthConnectRequest.js +1 -2
- package/build/generated-sources/api/src/models/Operation.d.ts +26 -9
- package/build/generated-sources/api/src/models/Operation.js +14 -7
- package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.d.ts +7 -0
- package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.js +3 -0
- package/build/generated-sources/api/src/models/index.d.ts +3 -1
- package/build/generated-sources/api/src/models/index.js +3 -1
- package/build/src/assets/SuccessIcon.d.ts +1 -0
- package/build/src/assets/SuccessIcon.js +8 -0
- package/build/src/components/Configure/InstallIntegration.js +2 -1
- package/build/src/components/Configure/actions/createInstallationReducer.d.ts +15 -0
- package/build/src/components/Configure/actions/createInstallationReducer.js +30 -0
- package/build/src/components/Configure/actions/onSaveReadCreateInstallation.js +8 -21
- package/build/src/components/Configure/actions/proxy/createInstallationProxyOnly.d.ts +8 -0
- package/build/src/components/Configure/actions/proxy/createInstallationProxyOnly.js +44 -0
- package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +8 -21
- package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.d.ts +11 -0
- package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +67 -0
- package/build/src/components/Configure/layout/ConditionalProxyLayout/InstalledSuccessBox.d.ts +5 -0
- package/build/src/components/Configure/layout/ConditionalProxyLayout/InstalledSuccessBox.js +11 -0
- package/build/src/components/Connect/ConnectedSuccessBox.js +3 -3
- package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +1 -1
- package/build/src/components/SuccessTextBox.d.ts +5 -0
- package/build/src/components/SuccessTextBox.js +10 -0
- package/build/src/services/api.js +23 -21
- package/package.json +1 -1
- package/build/generated-sources/api/src/models/OperationError.d.ts +0 -49
- package/build/generated-sources/api/src/models/OperationError.js +0 -56
|
@@ -19,6 +19,9 @@ export interface GetDestinationRequest {
|
|
|
19
19
|
projectId: string;
|
|
20
20
|
destinationName: string;
|
|
21
21
|
}
|
|
22
|
+
export interface ListDestinationsRequest {
|
|
23
|
+
projectId: string;
|
|
24
|
+
}
|
|
22
25
|
/**
|
|
23
26
|
* DestinationApi - interface
|
|
24
27
|
*
|
|
@@ -54,6 +57,19 @@ export interface DestinationApiInterface {
|
|
|
54
57
|
* Get a destination
|
|
55
58
|
*/
|
|
56
59
|
getDestination(requestParameters: GetDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Destination>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @summary List destinations
|
|
63
|
+
* @param {string} projectId
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof DestinationApiInterface
|
|
67
|
+
*/
|
|
68
|
+
listDestinationsRaw(requestParameters: ListDestinationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Destination>>>;
|
|
69
|
+
/**
|
|
70
|
+
* List destinations
|
|
71
|
+
*/
|
|
72
|
+
listDestinations(requestParameters: ListDestinationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Destination>>;
|
|
57
73
|
}
|
|
58
74
|
/**
|
|
59
75
|
*
|
|
@@ -75,4 +91,12 @@ export declare class DestinationApi extends runtime.BaseAPI implements Destinati
|
|
|
75
91
|
* Get a destination
|
|
76
92
|
*/
|
|
77
93
|
getDestination(requestParameters: GetDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Destination>;
|
|
94
|
+
/**
|
|
95
|
+
* List destinations
|
|
96
|
+
*/
|
|
97
|
+
listDestinationsRaw(requestParameters: ListDestinationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Destination>>>;
|
|
98
|
+
/**
|
|
99
|
+
* List destinations
|
|
100
|
+
*/
|
|
101
|
+
listDestinations(requestParameters: ListDestinationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Destination>>;
|
|
78
102
|
}
|
|
@@ -98,5 +98,29 @@ class DestinationApi extends runtime.BaseAPI {
|
|
|
98
98
|
const response = await this.getDestinationRaw(requestParameters, initOverrides);
|
|
99
99
|
return await response.value();
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* List destinations
|
|
103
|
+
*/
|
|
104
|
+
async listDestinationsRaw(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 listDestinations.');
|
|
107
|
+
}
|
|
108
|
+
const queryParameters = {};
|
|
109
|
+
const headerParameters = {};
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: `/projects/{projectId}/destinations`.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.DestinationFromJSON));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* List destinations
|
|
120
|
+
*/
|
|
121
|
+
async listDestinations(requestParameters, initOverrides) {
|
|
122
|
+
const response = await this.listDestinationsRaw(requestParameters, initOverrides);
|
|
123
|
+
return await response.value();
|
|
124
|
+
}
|
|
101
125
|
}
|
|
102
126
|
exports.DestinationApi = DestinationApi;
|
|
@@ -21,6 +21,11 @@ export interface DeleteInstallationRequest {
|
|
|
21
21
|
integrationId: string;
|
|
22
22
|
installationId: string;
|
|
23
23
|
}
|
|
24
|
+
export interface GetInstallationRequest {
|
|
25
|
+
projectId: string;
|
|
26
|
+
integrationId: string;
|
|
27
|
+
installationId: string;
|
|
28
|
+
}
|
|
24
29
|
export interface ImportInstallationOperationRequest {
|
|
25
30
|
projectId: string;
|
|
26
31
|
integrationId: string;
|
|
@@ -74,6 +79,21 @@ export interface InstallationApiInterface {
|
|
|
74
79
|
* Delete an installation
|
|
75
80
|
*/
|
|
76
81
|
deleteInstallation(requestParameters: DeleteInstallationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary Get an installation
|
|
85
|
+
* @param {string} projectId
|
|
86
|
+
* @param {string} integrationId
|
|
87
|
+
* @param {string} installationId
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
* @memberof InstallationApiInterface
|
|
91
|
+
*/
|
|
92
|
+
getInstallationRaw(requestParameters: GetInstallationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Installation>>;
|
|
93
|
+
/**
|
|
94
|
+
* Get an installation
|
|
95
|
+
*/
|
|
96
|
+
getInstallation(requestParameters: GetInstallationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Installation>;
|
|
77
97
|
/**
|
|
78
98
|
*
|
|
79
99
|
* @summary Import an existing installation
|
|
@@ -141,6 +161,14 @@ export declare class InstallationApi extends runtime.BaseAPI implements Installa
|
|
|
141
161
|
* Delete an installation
|
|
142
162
|
*/
|
|
143
163
|
deleteInstallation(requestParameters: DeleteInstallationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
164
|
+
/**
|
|
165
|
+
* Get an installation
|
|
166
|
+
*/
|
|
167
|
+
getInstallationRaw(requestParameters: GetInstallationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Installation>>;
|
|
168
|
+
/**
|
|
169
|
+
* Get an installation
|
|
170
|
+
*/
|
|
171
|
+
getInstallation(requestParameters: GetInstallationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Installation>;
|
|
144
172
|
/**
|
|
145
173
|
* Import an existing installation
|
|
146
174
|
*/
|
|
@@ -104,6 +104,36 @@ class InstallationApi extends runtime.BaseAPI {
|
|
|
104
104
|
async deleteInstallation(requestParameters, initOverrides) {
|
|
105
105
|
await this.deleteInstallationRaw(requestParameters, initOverrides);
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Get an installation
|
|
109
|
+
*/
|
|
110
|
+
async getInstallationRaw(requestParameters, initOverrides) {
|
|
111
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
112
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getInstallation.');
|
|
113
|
+
}
|
|
114
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
115
|
+
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling getInstallation.');
|
|
116
|
+
}
|
|
117
|
+
if (requestParameters.installationId === null || requestParameters.installationId === undefined) {
|
|
118
|
+
throw new runtime.RequiredError('installationId', 'Required parameter requestParameters.installationId was null or undefined when calling getInstallation.');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
const headerParameters = {};
|
|
122
|
+
const response = await this.request({
|
|
123
|
+
path: `/projects/{projectId}/integrations/{integrationId}/installations/{installationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))).replace(`{${"installationId"}}`, encodeURIComponent(String(requestParameters.installationId))),
|
|
124
|
+
method: 'GET',
|
|
125
|
+
headers: headerParameters,
|
|
126
|
+
query: queryParameters,
|
|
127
|
+
}, initOverrides);
|
|
128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.InstallationFromJSON)(jsonValue));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get an installation
|
|
132
|
+
*/
|
|
133
|
+
async getInstallation(requestParameters, initOverrides) {
|
|
134
|
+
const response = await this.getInstallationRaw(requestParameters, initOverrides);
|
|
135
|
+
return await response.value();
|
|
136
|
+
}
|
|
107
137
|
/**
|
|
108
138
|
* Import an existing installation
|
|
109
139
|
*/
|
|
@@ -108,12 +108,9 @@ class IntegrationApi extends runtime.BaseAPI {
|
|
|
108
108
|
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling deleteIntegration.');
|
|
109
109
|
}
|
|
110
110
|
const queryParameters = {};
|
|
111
|
-
if (requestParameters.integrationId !== undefined) {
|
|
112
|
-
queryParameters['integrationId'] = requestParameters.integrationId;
|
|
113
|
-
}
|
|
114
111
|
const headerParameters = {};
|
|
115
112
|
const response = await this.request({
|
|
116
|
-
path: `/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
113
|
+
path: `/projects/{projectId}/integrations/{integrationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))),
|
|
117
114
|
method: 'DELETE',
|
|
118
115
|
headers: headerParameters,
|
|
119
116
|
query: queryParameters,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { BaseProxyConfig } from './BaseProxyConfig';
|
|
12
13
|
import type { BaseReadConfig } from './BaseReadConfig';
|
|
13
14
|
import type { BaseWriteConfig } from './BaseWriteConfig';
|
|
14
15
|
/**
|
|
@@ -35,6 +36,12 @@ export interface BaseConfigContent {
|
|
|
35
36
|
* @memberof BaseConfigContent
|
|
36
37
|
*/
|
|
37
38
|
write?: BaseWriteConfig;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {BaseProxyConfig}
|
|
42
|
+
* @memberof BaseConfigContent
|
|
43
|
+
*/
|
|
44
|
+
proxy?: BaseProxyConfig;
|
|
38
45
|
}
|
|
39
46
|
/**
|
|
40
47
|
* Check if a given object implements the BaseConfigContent interface.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BaseConfigContentToJSON = exports.BaseConfigContentFromJSONTyped = exports.BaseConfigContentFromJSON = exports.instanceOfBaseConfigContent = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const BaseProxyConfig_1 = require("./BaseProxyConfig");
|
|
18
19
|
const BaseReadConfig_1 = require("./BaseReadConfig");
|
|
19
20
|
const BaseWriteConfig_1 = require("./BaseWriteConfig");
|
|
20
21
|
/**
|
|
@@ -37,6 +38,7 @@ function BaseConfigContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
'provider': !(0, runtime_1.exists)(json, 'provider') ? undefined : json['provider'],
|
|
38
39
|
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, BaseReadConfig_1.BaseReadConfigFromJSON)(json['read']),
|
|
39
40
|
'write': !(0, runtime_1.exists)(json, 'write') ? undefined : (0, BaseWriteConfig_1.BaseWriteConfigFromJSON)(json['write']),
|
|
41
|
+
'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, BaseProxyConfig_1.BaseProxyConfigFromJSON)(json['proxy']),
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
exports.BaseConfigContentFromJSONTyped = BaseConfigContentFromJSONTyped;
|
|
@@ -51,6 +53,7 @@ function BaseConfigContentToJSON(value) {
|
|
|
51
53
|
'provider': value.provider,
|
|
52
54
|
'read': (0, BaseReadConfig_1.BaseReadConfigToJSON)(value.read),
|
|
53
55
|
'write': (0, BaseWriteConfig_1.BaseWriteConfigToJSON)(value.write),
|
|
56
|
+
'proxy': (0, BaseProxyConfig_1.BaseProxyConfigToJSON)(value.proxy),
|
|
54
57
|
};
|
|
55
58
|
}
|
|
56
59
|
exports.BaseConfigContentToJSON = BaseConfigContentToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 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 BaseProxyConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface BaseProxyConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof BaseProxyConfig
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BaseProxyConfig interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBaseProxyConfig(value: object): boolean;
|
|
29
|
+
export declare function BaseProxyConfigFromJSON(json: any): BaseProxyConfig;
|
|
30
|
+
export declare function BaseProxyConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseProxyConfig;
|
|
31
|
+
export declare function BaseProxyConfigToJSON(value?: BaseProxyConfig | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 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.BaseProxyConfigToJSON = exports.BaseProxyConfigFromJSONTyped = exports.BaseProxyConfigFromJSON = exports.instanceOfBaseProxyConfig = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the BaseProxyConfig interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfBaseProxyConfig(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfBaseProxyConfig = instanceOfBaseProxyConfig;
|
|
26
|
+
function BaseProxyConfigFromJSON(json) {
|
|
27
|
+
return BaseProxyConfigFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.BaseProxyConfigFromJSON = BaseProxyConfigFromJSON;
|
|
30
|
+
function BaseProxyConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.BaseProxyConfigFromJSONTyped = BaseProxyConfigFromJSONTyped;
|
|
39
|
+
function BaseProxyConfigToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'enabled': value.enabled,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.BaseProxyConfigToJSON = BaseProxyConfigToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { BaseProxyConfig } from './BaseProxyConfig';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -33,6 +34,12 @@ export interface ConfigContent {
|
|
|
33
34
|
* @memberof ConfigContent
|
|
34
35
|
*/
|
|
35
36
|
write?: any | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {BaseProxyConfig}
|
|
40
|
+
* @memberof ConfigContent
|
|
41
|
+
*/
|
|
42
|
+
proxy?: BaseProxyConfig;
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* Check if a given object implements the ConfigContent interface.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ConfigContentToJSON = exports.ConfigContentFromJSONTyped = exports.ConfigContentFromJSON = exports.instanceOfConfigContent = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const BaseProxyConfig_1 = require("./BaseProxyConfig");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the ConfigContent interface.
|
|
20
21
|
*/
|
|
@@ -36,6 +37,7 @@ function ConfigContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'provider': json['provider'],
|
|
37
38
|
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : json['read'],
|
|
38
39
|
'write': !(0, runtime_1.exists)(json, 'write') ? undefined : json['write'],
|
|
40
|
+
'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, BaseProxyConfig_1.BaseProxyConfigFromJSON)(json['proxy']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
exports.ConfigContentFromJSONTyped = ConfigContentFromJSONTyped;
|
|
@@ -50,6 +52,7 @@ function ConfigContentToJSON(value) {
|
|
|
50
52
|
'provider': value.provider,
|
|
51
53
|
'read': value.read,
|
|
52
54
|
'write': value.write,
|
|
55
|
+
'proxy': (0, BaseProxyConfig_1.BaseProxyConfigToJSON)(value.proxy),
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
exports.ConfigContentToJSON = ConfigContentToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { HydratedIntegrationProxy } from './HydratedIntegrationProxy';
|
|
12
13
|
import type { HydratedIntegrationRead } from './HydratedIntegrationRead';
|
|
13
14
|
import type { HydratedIntegrationWrite } from './HydratedIntegrationWrite';
|
|
14
15
|
/**
|
|
@@ -47,6 +48,12 @@ export interface HydratedIntegration {
|
|
|
47
48
|
* @memberof HydratedIntegration
|
|
48
49
|
*/
|
|
49
50
|
write?: HydratedIntegrationWrite;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {HydratedIntegrationProxy}
|
|
54
|
+
* @memberof HydratedIntegration
|
|
55
|
+
*/
|
|
56
|
+
proxy?: HydratedIntegrationProxy;
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
59
|
* Check if a given object implements the HydratedIntegration interface.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.HydratedIntegrationToJSON = exports.HydratedIntegrationFromJSONTyped = exports.HydratedIntegrationFromJSON = exports.instanceOfHydratedIntegration = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const HydratedIntegrationProxy_1 = require("./HydratedIntegrationProxy");
|
|
18
19
|
const HydratedIntegrationRead_1 = require("./HydratedIntegrationRead");
|
|
19
20
|
const HydratedIntegrationWrite_1 = require("./HydratedIntegrationWrite");
|
|
20
21
|
/**
|
|
@@ -41,6 +42,7 @@ function HydratedIntegrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'provider': json['provider'],
|
|
42
43
|
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, HydratedIntegrationRead_1.HydratedIntegrationReadFromJSON)(json['read']),
|
|
43
44
|
'write': !(0, runtime_1.exists)(json, 'write') ? undefined : (0, HydratedIntegrationWrite_1.HydratedIntegrationWriteFromJSON)(json['write']),
|
|
45
|
+
'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, HydratedIntegrationProxy_1.HydratedIntegrationProxyFromJSON)(json['proxy']),
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.HydratedIntegrationFromJSONTyped = HydratedIntegrationFromJSONTyped;
|
|
@@ -57,6 +59,7 @@ function HydratedIntegrationToJSON(value) {
|
|
|
57
59
|
'provider': value.provider,
|
|
58
60
|
'read': (0, HydratedIntegrationRead_1.HydratedIntegrationReadToJSON)(value.read),
|
|
59
61
|
'write': (0, HydratedIntegrationWrite_1.HydratedIntegrationWriteToJSON)(value.write),
|
|
62
|
+
'proxy': (0, HydratedIntegrationProxy_1.HydratedIntegrationProxyToJSON)(value.proxy),
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
exports.HydratedIntegrationToJSON = HydratedIntegrationToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 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 HydratedIntegrationProxy
|
|
16
|
+
*/
|
|
17
|
+
export interface HydratedIntegrationProxy {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof HydratedIntegrationProxy
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the HydratedIntegrationProxy interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfHydratedIntegrationProxy(value: object): boolean;
|
|
29
|
+
export declare function HydratedIntegrationProxyFromJSON(json: any): HydratedIntegrationProxy;
|
|
30
|
+
export declare function HydratedIntegrationProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegrationProxy;
|
|
31
|
+
export declare function HydratedIntegrationProxyToJSON(value?: HydratedIntegrationProxy | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 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.HydratedIntegrationProxyToJSON = exports.HydratedIntegrationProxyFromJSONTyped = exports.HydratedIntegrationProxyFromJSON = exports.instanceOfHydratedIntegrationProxy = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the HydratedIntegrationProxy interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfHydratedIntegrationProxy(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfHydratedIntegrationProxy = instanceOfHydratedIntegrationProxy;
|
|
26
|
+
function HydratedIntegrationProxyFromJSON(json) {
|
|
27
|
+
return HydratedIntegrationProxyFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.HydratedIntegrationProxyFromJSON = HydratedIntegrationProxyFromJSON;
|
|
30
|
+
function HydratedIntegrationProxyFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.HydratedIntegrationProxyFromJSONTyped = HydratedIntegrationProxyFromJSONTyped;
|
|
39
|
+
function HydratedIntegrationProxyToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'enabled': value.enabled,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.HydratedIntegrationProxyToJSON = HydratedIntegrationProxyToJSON;
|
|
@@ -64,7 +64,7 @@ export interface ImportConnectionRequest {
|
|
|
64
64
|
*/
|
|
65
65
|
refreshToken: string;
|
|
66
66
|
/**
|
|
67
|
-
* The OAuth scopes for this token. If
|
|
67
|
+
* The OAuth scopes for this token. If omitted, will default to the scopes of the Provider App.
|
|
68
68
|
* @type {Array<string>}
|
|
69
69
|
* @memberof ImportConnectionRequest
|
|
70
70
|
*/
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { IntegrationProxy } from './IntegrationProxy';
|
|
12
13
|
import type { IntegrationRead } from './IntegrationRead';
|
|
13
14
|
import type { IntegrationWrite } from './IntegrationWrite';
|
|
14
15
|
/**
|
|
@@ -47,6 +48,12 @@ export interface Integration1 {
|
|
|
47
48
|
* @memberof Integration1
|
|
48
49
|
*/
|
|
49
50
|
write?: IntegrationWrite;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {IntegrationProxy}
|
|
54
|
+
* @memberof Integration1
|
|
55
|
+
*/
|
|
56
|
+
proxy?: IntegrationProxy;
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
59
|
* Check if a given object implements the Integration1 interface.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Integration1ToJSON = exports.Integration1FromJSONTyped = exports.Integration1FromJSON = exports.instanceOfIntegration1 = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const IntegrationProxy_1 = require("./IntegrationProxy");
|
|
18
19
|
const IntegrationRead_1 = require("./IntegrationRead");
|
|
19
20
|
const IntegrationWrite_1 = require("./IntegrationWrite");
|
|
20
21
|
/**
|
|
@@ -41,6 +42,7 @@ function Integration1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
42
|
'provider': json['provider'],
|
|
42
43
|
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, IntegrationRead_1.IntegrationReadFromJSON)(json['read']),
|
|
43
44
|
'write': !(0, runtime_1.exists)(json, 'write') ? undefined : (0, IntegrationWrite_1.IntegrationWriteFromJSON)(json['write']),
|
|
45
|
+
'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, IntegrationProxy_1.IntegrationProxyFromJSON)(json['proxy']),
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.Integration1FromJSONTyped = Integration1FromJSONTyped;
|
|
@@ -57,6 +59,7 @@ function Integration1ToJSON(value) {
|
|
|
57
59
|
'provider': value.provider,
|
|
58
60
|
'read': (0, IntegrationRead_1.IntegrationReadToJSON)(value.read),
|
|
59
61
|
'write': (0, IntegrationWrite_1.IntegrationWriteToJSON)(value.write),
|
|
62
|
+
'proxy': (0, IntegrationProxy_1.IntegrationProxyToJSON)(value.proxy),
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
exports.Integration1ToJSON = Integration1ToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 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 IntegrationProxy
|
|
16
|
+
*/
|
|
17
|
+
export interface IntegrationProxy {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof IntegrationProxy
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IntegrationProxy interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIntegrationProxy(value: object): boolean;
|
|
29
|
+
export declare function IntegrationProxyFromJSON(json: any): IntegrationProxy;
|
|
30
|
+
export declare function IntegrationProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProxy;
|
|
31
|
+
export declare function IntegrationProxyToJSON(value?: IntegrationProxy | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 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.IntegrationProxyToJSON = exports.IntegrationProxyFromJSONTyped = exports.IntegrationProxyFromJSON = exports.instanceOfIntegrationProxy = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the IntegrationProxy interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfIntegrationProxy(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfIntegrationProxy = instanceOfIntegrationProxy;
|
|
26
|
+
function IntegrationProxyFromJSON(json) {
|
|
27
|
+
return IntegrationProxyFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.IntegrationProxyFromJSON = IntegrationProxyFromJSON;
|
|
30
|
+
function IntegrationProxyFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.IntegrationProxyFromJSONTyped = IntegrationProxyFromJSONTyped;
|
|
39
|
+
function IntegrationProxyToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'enabled': value.enabled,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.IntegrationProxyToJSON = IntegrationProxyToJSON;
|
|
@@ -16,19 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface OauthConnectRequest {
|
|
18
18
|
/**
|
|
19
|
-
* The identifier for the provider workspace
|
|
19
|
+
* The identifier for the provider workspace
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof OauthConnectRequest
|
|
22
22
|
*/
|
|
23
23
|
providerWorkspaceRef?: string;
|
|
24
24
|
/**
|
|
25
|
-
* The project ID.
|
|
25
|
+
* The Ampersand project ID.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof OauthConnectRequest
|
|
28
28
|
*/
|
|
29
29
|
projectId: string;
|
|
30
30
|
/**
|
|
31
|
-
* The group
|
|
31
|
+
* The ID that your app uses to identify the group of users for this Connection, this can be an Org ID, workspace ID, etc.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof OauthConnectRequest
|
|
34
34
|
*/
|
|
@@ -40,7 +40,7 @@ export interface OauthConnectRequest {
|
|
|
40
40
|
*/
|
|
41
41
|
groupName?: string;
|
|
42
42
|
/**
|
|
43
|
-
* The
|
|
43
|
+
* The ID that your app uses to identify the user whose SaaS credential will be used for this OAuth flow.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof OauthConnectRequest
|
|
46
46
|
*/
|
|
@@ -52,11 +52,11 @@ export interface OauthConnectRequest {
|
|
|
52
52
|
*/
|
|
53
53
|
consumerName?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* ID of the provider app (e.g. Salesforce connected app), returned from a CreateProviderApp call. If omitted, the default provider app that was set up on the Ampersand Console is assumed.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OauthConnectRequest
|
|
58
58
|
*/
|
|
59
|
-
providerAppId
|
|
59
|
+
providerAppId?: string;
|
|
60
60
|
/**
|
|
61
61
|
* The provider that this app connects to.
|
|
62
62
|
* @type {string}
|