@amp-labs/react 1.3.0 → 1.4.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/APIKeyApi.d.ts +158 -0
- package/build/generated-sources/api/src/apis/APIKeyApi.js +188 -0
- package/build/generated-sources/api/src/apis/DestinationApi.d.ts +62 -8
- package/build/generated-sources/api/src/apis/DestinationApi.js +62 -3
- package/build/generated-sources/api/src/apis/OperationApi.d.ts +27 -1
- package/build/generated-sources/api/src/apis/OperationApi.js +27 -0
- package/build/generated-sources/api/src/apis/OperationEventApi.d.ts +84 -0
- package/build/generated-sources/api/src/apis/OperationEventApi.js +110 -0
- package/build/generated-sources/api/src/apis/ProviderApi.d.ts +78 -0
- package/build/generated-sources/api/src/apis/{OperationLogApi.js → ProviderApi.js} +33 -17
- package/build/generated-sources/api/src/apis/index.d.ts +3 -1
- package/build/generated-sources/api/src/apis/index.js +3 -1
- package/build/generated-sources/api/src/models/ApiKey.d.ts +49 -0
- package/build/generated-sources/api/src/models/ApiKey.js +59 -0
- package/build/generated-sources/api/src/models/ApiKeyRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/ApiKeyRequest.js +50 -0
- package/build/generated-sources/api/src/models/AuthType.d.ts +22 -0
- package/build/generated-sources/api/src/models/AuthType.js +35 -0
- package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +44 -0
- package/build/generated-sources/api/src/models/CreateDestinationRequest.js +57 -0
- package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +39 -0
- package/build/generated-sources/api/src/models/{DestinationMetadata.js → CreateDestinationRequestMetadata.js} +11 -11
- package/build/generated-sources/api/src/models/Destination.d.ts +22 -4
- package/build/generated-sources/api/src/models/Destination.js +12 -3
- package/build/generated-sources/api/src/models/{OperationLog.d.ts → Log.d.ts} +12 -12
- package/build/generated-sources/api/src/models/{OperationLog.js → Log.js} +11 -11
- package/build/generated-sources/api/src/models/OauthOpts.d.ts +56 -0
- package/build/generated-sources/api/src/models/OauthOpts.js +63 -0
- package/build/generated-sources/api/src/models/OperationEvent.d.ts +61 -0
- package/build/generated-sources/api/src/models/OperationEvent.js +64 -0
- package/build/generated-sources/api/src/models/PatchApiKeyRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/PatchApiKeyRequest.js +54 -0
- package/build/generated-sources/api/src/models/PatchApiKeyRequestApiKey.d.ts +37 -0
- package/build/generated-sources/api/src/models/PatchApiKeyRequestApiKey.js +52 -0
- package/build/generated-sources/api/src/models/ProviderInfo.d.ts +60 -0
- package/build/generated-sources/api/src/models/ProviderInfo.js +65 -0
- package/build/generated-sources/api/src/models/Support.d.ts +55 -0
- package/build/generated-sources/api/src/models/Support.js +62 -0
- package/build/generated-sources/api/src/models/TokenMetadataFields.d.ts +43 -0
- package/build/generated-sources/api/src/models/TokenMetadataFields.js +54 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.js +53 -0
- package/build/generated-sources/api/src/models/index.d.ts +15 -2
- package/build/generated-sources/api/src/models/index.js +15 -2
- package/build/src/components/Configure/actions/{createInstallationReducer.d.ts → mutateAndSetState/createInstallationAndSetState.d.ts} +3 -3
- package/build/src/components/Configure/actions/{createInstallationReducer.js → mutateAndSetState/createInstallationAndSetState.js} +4 -4
- package/build/src/components/Configure/actions/mutateAndSetState/updateInstallationAndSetState.d.ts +15 -0
- package/build/src/components/Configure/actions/mutateAndSetState/updateInstallationAndSetState.js +33 -0
- package/build/src/components/Configure/actions/proxy/isProxyEnabled.d.ts +2 -0
- package/build/src/components/Configure/actions/proxy/isProxyEnabled.js +8 -0
- package/build/src/components/Configure/actions/proxy/onCreateInstallationProxyOnly.d.ts +8 -0
- package/build/src/components/Configure/actions/proxy/{createInstallationProxyOnly.js → onCreateInstallationProxyOnly.js} +5 -5
- package/build/src/components/Configure/actions/{onSaveReadCreateInstallation.d.ts → read/onSaveReadCreateInstallation.d.ts} +2 -2
- package/build/src/components/Configure/actions/{onSaveReadCreateInstallation.js → read/onSaveReadCreateInstallation.js} +9 -3
- package/build/src/components/Configure/actions/read/onSaveReadUpdateInstallation.d.ts +3 -0
- package/build/src/components/Configure/actions/{onSaveReadUpdateInstallation.js → read/onSaveReadUpdateInstallation.js} +20 -28
- package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +10 -3
- package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.d.ts +2 -2
- package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.js +11 -3
- package/build/src/components/Configure/content/CreateInstallation.js +1 -1
- package/build/src/components/Configure/content/UpdateInstallation.js +5 -5
- package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +2 -2
- package/build/src/components/Configure/layout/ProtectedConnectionLayout.js +2 -7
- package/build/src/components/Configure/state/utils.js +5 -5
- package/build/src/components/Oauth/NoWorkspaceEntry/LandingContent.js +12 -0
- package/build/src/components/Oauth/{NoSubdomainEntry/NoSubdomainOauthFlow.d.ts → NoWorkspaceEntry/NoWorkspaceOauthFlow.d.ts} +4 -4
- package/build/src/components/Oauth/{NoSubdomainEntry/NoSubdomainOauthFlow.js → NoWorkspaceEntry/NoWorkspaceOauthFlow.js} +6 -8
- package/build/src/components/Oauth/OAuthPopup.js +1 -5
- package/build/src/components/Oauth/OauthCardLayout.d.ts +6 -0
- package/build/src/components/Oauth/OauthCardLayout.js +9 -0
- package/build/src/components/Oauth/OauthFlow/OauthFlow.d.ts +9 -0
- package/build/src/components/Oauth/OauthFlow/OauthFlow.js +33 -0
- package/build/src/components/Oauth/Salesforce/SalesforceSubdomainEntry.d.ts +13 -0
- package/build/src/components/Oauth/Salesforce/SalesforceSubdomainEntry.js +18 -0
- package/build/src/components/Oauth/WorkspaceEntry/WorkspaceEntry.d.ts +9 -0
- package/build/src/components/Oauth/WorkspaceEntry/WorkspaceEntry.js +12 -0
- package/build/src/components/Oauth/WorkspaceEntry/WorkspaceOauthFlow.d.ts +14 -0
- package/build/src/components/Oauth/WorkspaceEntry/WorkspaceOauthFlow.js +58 -0
- package/build/src/components/ThemeProvider/Button/buttonTheme.js +3 -3
- package/build/src/components/ThemeProvider/index.js +6 -6
- package/build/src/services/ApiService.d.ts +2 -2
- package/build/src/services/ApiService.js +1 -1
- package/build/src/services/api.d.ts +2 -2
- package/build/src/services/api.js +5 -0
- package/build/src/services/version.d.ts +1 -0
- package/build/src/services/version.js +4 -0
- package/package.json +2 -2
- package/build/generated-sources/api/src/apis/OperationLogApi.d.ts +0 -55
- package/build/generated-sources/api/src/models/DestinationMetadata.d.ts +0 -39
- package/build/src/components/Configure/actions/onSaveReadUpdateInstallation.d.ts +0 -3
- package/build/src/components/Configure/actions/proxy/createInstallationProxyOnly.d.ts +0 -8
- package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.js +0 -11
- package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.d.ts +0 -16
- package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +0 -57
- package/build/src/components/Oauth/Salesforce/SubdomainEntry.d.ts +0 -8
- package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +0 -12
- package/build/src/constants.d.ts +0 -2
- package/build/src/constants.js +0 -5
- /package/build/src/components/Oauth/{NoSubdomainEntry → NoWorkspaceEntry}/LandingContent.d.ts +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
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 { Log, OperationEvent } from '../models';
|
|
14
|
+
export interface ListOperationEventLogsRequest {
|
|
15
|
+
projectId: string;
|
|
16
|
+
operationId: string;
|
|
17
|
+
eventId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ListOperationEventsRequest {
|
|
20
|
+
projectId: string;
|
|
21
|
+
integrationId: string;
|
|
22
|
+
installationId: string;
|
|
23
|
+
operationId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* OperationEventApi - interface
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface OperationEventApiInterface
|
|
30
|
+
*/
|
|
31
|
+
export interface OperationEventApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary List logs for an operation event
|
|
35
|
+
* @param {string} projectId
|
|
36
|
+
* @param {string} operationId
|
|
37
|
+
* @param {string} eventId
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof OperationEventApiInterface
|
|
41
|
+
*/
|
|
42
|
+
listOperationEventLogsRaw(requestParameters: ListOperationEventLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Log>>>;
|
|
43
|
+
/**
|
|
44
|
+
* List logs for an operation event
|
|
45
|
+
*/
|
|
46
|
+
listOperationEventLogs(requestParameters: ListOperationEventLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Log>>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @summary List events for an operation
|
|
50
|
+
* @param {string} projectId
|
|
51
|
+
* @param {string} integrationId
|
|
52
|
+
* @param {string} installationId
|
|
53
|
+
* @param {string} operationId
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
* @memberof OperationEventApiInterface
|
|
57
|
+
*/
|
|
58
|
+
listOperationEventsRaw(requestParameters: ListOperationEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OperationEvent>>>;
|
|
59
|
+
/**
|
|
60
|
+
* List events for an operation
|
|
61
|
+
*/
|
|
62
|
+
listOperationEvents(requestParameters: ListOperationEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OperationEvent>>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
export declare class OperationEventApi extends runtime.BaseAPI implements OperationEventApiInterface {
|
|
68
|
+
/**
|
|
69
|
+
* List logs for an operation event
|
|
70
|
+
*/
|
|
71
|
+
listOperationEventLogsRaw(requestParameters: ListOperationEventLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Log>>>;
|
|
72
|
+
/**
|
|
73
|
+
* List logs for an operation event
|
|
74
|
+
*/
|
|
75
|
+
listOperationEventLogs(requestParameters: ListOperationEventLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Log>>;
|
|
76
|
+
/**
|
|
77
|
+
* List events for an operation
|
|
78
|
+
*/
|
|
79
|
+
listOperationEventsRaw(requestParameters: ListOperationEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OperationEvent>>>;
|
|
80
|
+
/**
|
|
81
|
+
* List events for an operation
|
|
82
|
+
*/
|
|
83
|
+
listOperationEvents(requestParameters: ListOperationEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OperationEvent>>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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.OperationEventApi = void 0;
|
|
40
|
+
const runtime = __importStar(require("../runtime"));
|
|
41
|
+
const models_1 = require("../models");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
class OperationEventApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* List logs for an operation event
|
|
48
|
+
*/
|
|
49
|
+
async listOperationEventLogsRaw(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 listOperationEventLogs.');
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters.operationId === null || requestParameters.operationId === undefined) {
|
|
54
|
+
throw new runtime.RequiredError('operationId', 'Required parameter requestParameters.operationId was null or undefined when calling listOperationEventLogs.');
|
|
55
|
+
}
|
|
56
|
+
if (requestParameters.eventId === null || requestParameters.eventId === undefined) {
|
|
57
|
+
throw new runtime.RequiredError('eventId', 'Required parameter requestParameters.eventId was null or undefined when calling listOperationEventLogs.');
|
|
58
|
+
}
|
|
59
|
+
const queryParameters = {};
|
|
60
|
+
const headerParameters = {};
|
|
61
|
+
const response = await this.request({
|
|
62
|
+
path: `/projects/{projectId}/operations/{operationId}/events/{eventId}/logs`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"operationId"}}`, encodeURIComponent(String(requestParameters.operationId))).replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters.eventId))),
|
|
63
|
+
method: 'GET',
|
|
64
|
+
headers: headerParameters,
|
|
65
|
+
query: queryParameters,
|
|
66
|
+
}, initOverrides);
|
|
67
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.LogFromJSON));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* List logs for an operation event
|
|
71
|
+
*/
|
|
72
|
+
async listOperationEventLogs(requestParameters, initOverrides) {
|
|
73
|
+
const response = await this.listOperationEventLogsRaw(requestParameters, initOverrides);
|
|
74
|
+
return await response.value();
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* List events for an operation
|
|
78
|
+
*/
|
|
79
|
+
async listOperationEventsRaw(requestParameters, initOverrides) {
|
|
80
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
81
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling listOperationEvents.');
|
|
82
|
+
}
|
|
83
|
+
if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
|
|
84
|
+
throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling listOperationEvents.');
|
|
85
|
+
}
|
|
86
|
+
if (requestParameters.installationId === null || requestParameters.installationId === undefined) {
|
|
87
|
+
throw new runtime.RequiredError('installationId', 'Required parameter requestParameters.installationId was null or undefined when calling listOperationEvents.');
|
|
88
|
+
}
|
|
89
|
+
if (requestParameters.operationId === null || requestParameters.operationId === undefined) {
|
|
90
|
+
throw new runtime.RequiredError('operationId', 'Required parameter requestParameters.operationId was null or undefined when calling listOperationEvents.');
|
|
91
|
+
}
|
|
92
|
+
const queryParameters = {};
|
|
93
|
+
const headerParameters = {};
|
|
94
|
+
const response = await this.request({
|
|
95
|
+
path: `/projects/{projectId}/integrations/{integrationId}/installations/{installationId}/operations/{operationId}/events`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))).replace(`{${"installationId"}}`, encodeURIComponent(String(requestParameters.installationId))).replace(`{${"operationId"}}`, encodeURIComponent(String(requestParameters.operationId))),
|
|
96
|
+
method: 'GET',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
}, initOverrides);
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.OperationEventFromJSON));
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* List events for an operation
|
|
104
|
+
*/
|
|
105
|
+
async listOperationEvents(requestParameters, initOverrides) {
|
|
106
|
+
const response = await this.listOperationEventsRaw(requestParameters, initOverrides);
|
|
107
|
+
return await response.value();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.OperationEventApi = OperationEventApi;
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { ProviderInfo } from '../models';
|
|
14
|
+
export interface GetProviderRequest {
|
|
15
|
+
provider: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* ProviderApi - interface
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ProviderApiInterface
|
|
22
|
+
*/
|
|
23
|
+
export interface ProviderApiInterface {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary Get provider
|
|
27
|
+
* @param {string} provider
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
* @memberof ProviderApiInterface
|
|
31
|
+
*/
|
|
32
|
+
getProviderRaw(requestParameters: GetProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProviderInfo>>;
|
|
33
|
+
/**
|
|
34
|
+
* Get provider
|
|
35
|
+
*/
|
|
36
|
+
getProvider(requestParameters: GetProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProviderInfo>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary List providers
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
* @memberof ProviderApiInterface
|
|
43
|
+
*/
|
|
44
|
+
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
45
|
+
[key: string]: ProviderInfo;
|
|
46
|
+
}>>;
|
|
47
|
+
/**
|
|
48
|
+
* List providers
|
|
49
|
+
*/
|
|
50
|
+
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
51
|
+
[key: string]: ProviderInfo;
|
|
52
|
+
}>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
export declare class ProviderApi extends runtime.BaseAPI implements ProviderApiInterface {
|
|
58
|
+
/**
|
|
59
|
+
* Get provider
|
|
60
|
+
*/
|
|
61
|
+
getProviderRaw(requestParameters: GetProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProviderInfo>>;
|
|
62
|
+
/**
|
|
63
|
+
* Get provider
|
|
64
|
+
*/
|
|
65
|
+
getProvider(requestParameters: GetProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProviderInfo>;
|
|
66
|
+
/**
|
|
67
|
+
* List providers
|
|
68
|
+
*/
|
|
69
|
+
listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
|
|
70
|
+
[key: string]: ProviderInfo;
|
|
71
|
+
}>>;
|
|
72
|
+
/**
|
|
73
|
+
* List providers
|
|
74
|
+
*/
|
|
75
|
+
listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
|
|
76
|
+
[key: string]: ProviderInfo;
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
@@ -36,41 +36,57 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
return result;
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.ProviderApi = void 0;
|
|
40
40
|
const runtime = __importStar(require("../runtime"));
|
|
41
41
|
const models_1 = require("../models");
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
|
-
class
|
|
45
|
+
class ProviderApi extends runtime.BaseAPI {
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* List logs for an operation
|
|
47
|
+
* Get provider
|
|
49
48
|
*/
|
|
50
|
-
async
|
|
51
|
-
if (requestParameters.
|
|
52
|
-
throw new runtime.RequiredError('
|
|
53
|
-
}
|
|
54
|
-
if (requestParameters.operationId === null || requestParameters.operationId === undefined) {
|
|
55
|
-
throw new runtime.RequiredError('operationId', 'Required parameter requestParameters.operationId was null or undefined when calling listOperationLogs.');
|
|
49
|
+
async getProviderRaw(requestParameters, initOverrides) {
|
|
50
|
+
if (requestParameters.provider === null || requestParameters.provider === undefined) {
|
|
51
|
+
throw new runtime.RequiredError('provider', 'Required parameter requestParameters.provider was null or undefined when calling getProvider.');
|
|
56
52
|
}
|
|
57
53
|
const queryParameters = {};
|
|
58
54
|
const headerParameters = {};
|
|
59
55
|
const response = await this.request({
|
|
60
|
-
path: `/
|
|
56
|
+
path: `/providers/{provider}`.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters.provider))),
|
|
57
|
+
method: 'GET',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ProviderInfoFromJSON)(jsonValue));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get provider
|
|
65
|
+
*/
|
|
66
|
+
async getProvider(requestParameters, initOverrides) {
|
|
67
|
+
const response = await this.getProviderRaw(requestParameters, initOverrides);
|
|
68
|
+
return await response.value();
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* List providers
|
|
72
|
+
*/
|
|
73
|
+
async listProvidersRaw(initOverrides) {
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
const response = await this.request({
|
|
77
|
+
path: `/providers`,
|
|
61
78
|
method: 'GET',
|
|
62
79
|
headers: headerParameters,
|
|
63
80
|
query: queryParameters,
|
|
64
81
|
}, initOverrides);
|
|
65
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, models_1.ProviderInfoFromJSON));
|
|
66
83
|
}
|
|
67
84
|
/**
|
|
68
|
-
* List
|
|
69
|
-
* List logs for an operation
|
|
85
|
+
* List providers
|
|
70
86
|
*/
|
|
71
|
-
async
|
|
72
|
-
const response = await this.
|
|
87
|
+
async listProviders(initOverrides) {
|
|
88
|
+
const response = await this.listProvidersRaw(initOverrides);
|
|
73
89
|
return await response.value();
|
|
74
90
|
}
|
|
75
91
|
}
|
|
76
|
-
exports.
|
|
92
|
+
exports.ProviderApi = ProviderApi;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './APIKeyApi';
|
|
1
2
|
export * from './AllowedDomainApi';
|
|
2
3
|
export * from './ConnectionApi';
|
|
3
4
|
export * from './ConsumerApi';
|
|
@@ -7,9 +8,10 @@ export * from './InstallationApi';
|
|
|
7
8
|
export * from './IntegrationApi';
|
|
8
9
|
export * from './OAuthApi';
|
|
9
10
|
export * from './OperationApi';
|
|
10
|
-
export * from './
|
|
11
|
+
export * from './OperationEventApi';
|
|
11
12
|
export * from './ProjectApi';
|
|
12
13
|
export * from './ProjectMembershipApi';
|
|
14
|
+
export * from './ProviderApi';
|
|
13
15
|
export * from './ProviderAppApi';
|
|
14
16
|
export * from './RevisionApi';
|
|
15
17
|
export * from './UploadURLApi';
|
|
@@ -16,6 +16,7 @@ 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("./APIKeyApi"), exports);
|
|
19
20
|
__exportStar(require("./AllowedDomainApi"), exports);
|
|
20
21
|
__exportStar(require("./ConnectionApi"), exports);
|
|
21
22
|
__exportStar(require("./ConsumerApi"), exports);
|
|
@@ -25,9 +26,10 @@ __exportStar(require("./InstallationApi"), exports);
|
|
|
25
26
|
__exportStar(require("./IntegrationApi"), exports);
|
|
26
27
|
__exportStar(require("./OAuthApi"), exports);
|
|
27
28
|
__exportStar(require("./OperationApi"), exports);
|
|
28
|
-
__exportStar(require("./
|
|
29
|
+
__exportStar(require("./OperationEventApi"), exports);
|
|
29
30
|
__exportStar(require("./ProjectApi"), exports);
|
|
30
31
|
__exportStar(require("./ProjectMembershipApi"), exports);
|
|
32
|
+
__exportStar(require("./ProviderApi"), exports);
|
|
31
33
|
__exportStar(require("./ProviderAppApi"), exports);
|
|
32
34
|
__exportStar(require("./RevisionApi"), exports);
|
|
33
35
|
__exportStar(require("./UploadURLApi"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ApiKey
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiKey {
|
|
18
|
+
/**
|
|
19
|
+
* The API key.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiKey
|
|
22
|
+
*/
|
|
23
|
+
key: string;
|
|
24
|
+
/**
|
|
25
|
+
* A short name for the API key.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiKey
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* The project ID.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiKey
|
|
34
|
+
*/
|
|
35
|
+
projectId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the API key is active.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ApiKey
|
|
40
|
+
*/
|
|
41
|
+
active?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ApiKey interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfApiKey(value: object): boolean;
|
|
47
|
+
export declare function ApiKeyFromJSON(json: any): ApiKey;
|
|
48
|
+
export declare function ApiKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKey;
|
|
49
|
+
export declare function ApiKeyToJSON(value?: ApiKey | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.ApiKeyToJSON = exports.ApiKeyFromJSONTyped = exports.ApiKeyFromJSON = exports.instanceOfApiKey = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ApiKey interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfApiKey(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "key" in value;
|
|
24
|
+
isInstance = isInstance && "label" in value;
|
|
25
|
+
isInstance = isInstance && "projectId" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfApiKey = instanceOfApiKey;
|
|
29
|
+
function ApiKeyFromJSON(json) {
|
|
30
|
+
return ApiKeyFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.ApiKeyFromJSON = ApiKeyFromJSON;
|
|
33
|
+
function ApiKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'key': json['key'],
|
|
39
|
+
'label': json['label'],
|
|
40
|
+
'projectId': json['projectId'],
|
|
41
|
+
'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.ApiKeyFromJSONTyped = ApiKeyFromJSONTyped;
|
|
45
|
+
function ApiKeyToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'key': value.key,
|
|
54
|
+
'label': value.label,
|
|
55
|
+
'projectId': value.projectId,
|
|
56
|
+
'active': value.active,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.ApiKeyToJSON = ApiKeyToJSON;
|
|
@@ -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 ApiKeyRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiKeyRequest {
|
|
18
|
+
/**
|
|
19
|
+
* A short name for the API key.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiKeyRequest
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiKeyRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiKeyRequest(value: object): boolean;
|
|
29
|
+
export declare function ApiKeyRequestFromJSON(json: any): ApiKeyRequest;
|
|
30
|
+
export declare function ApiKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyRequest;
|
|
31
|
+
export declare function ApiKeyRequestToJSON(value?: ApiKeyRequest | 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.ApiKeyRequestToJSON = exports.ApiKeyRequestFromJSONTyped = exports.ApiKeyRequestFromJSON = exports.instanceOfApiKeyRequest = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ApiKeyRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfApiKeyRequest(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "label" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfApiKeyRequest = instanceOfApiKeyRequest;
|
|
26
|
+
function ApiKeyRequestFromJSON(json) {
|
|
27
|
+
return ApiKeyRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ApiKeyRequestFromJSON = ApiKeyRequestFromJSON;
|
|
30
|
+
function ApiKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'label': json['label'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ApiKeyRequestFromJSONTyped = ApiKeyRequestFromJSONTyped;
|
|
39
|
+
function ApiKeyRequestToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'label': value.label,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.ApiKeyRequestToJSON = ApiKeyRequestToJSON;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const AuthType: {
|
|
17
|
+
readonly Oauth2: "oauth2";
|
|
18
|
+
};
|
|
19
|
+
export type AuthType = typeof AuthType[keyof typeof AuthType];
|
|
20
|
+
export declare function AuthTypeFromJSON(json: any): AuthType;
|
|
21
|
+
export declare function AuthTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthType;
|
|
22
|
+
export declare function AuthTypeToJSON(value?: AuthType | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
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.AuthTypeToJSON = exports.AuthTypeFromJSONTyped = exports.AuthTypeFromJSON = exports.AuthType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.AuthType = {
|
|
22
|
+
Oauth2: 'oauth2'
|
|
23
|
+
};
|
|
24
|
+
function AuthTypeFromJSON(json) {
|
|
25
|
+
return AuthTypeFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.AuthTypeFromJSON = AuthTypeFromJSON;
|
|
28
|
+
function AuthTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
exports.AuthTypeFromJSONTyped = AuthTypeFromJSONTyped;
|
|
32
|
+
function AuthTypeToJSON(value) {
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
exports.AuthTypeToJSON = AuthTypeToJSON;
|