@amp-labs/react 1.2.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 +86 -8
- package/build/generated-sources/api/src/apis/DestinationApi.js +86 -3
- 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/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/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/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/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/{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/OauthConnectRequest.d.ts +6 -6
- package/build/generated-sources/api/src/models/OauthConnectRequest.js +1 -2
- 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/Operation.d.ts +26 -9
- package/build/generated-sources/api/src/models/Operation.js +14 -7
- 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/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 +18 -3
- package/build/generated-sources/api/src/models/index.js +18 -3
- 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/mutateAndSetState/createInstallationAndSetState.d.ts +15 -0
- package/build/src/components/Configure/actions/mutateAndSetState/createInstallationAndSetState.js +30 -0
- 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/onCreateInstallationProxyOnly.js +44 -0
- 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} +15 -22
- 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 +16 -22
- 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.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/Configure/layout/ProtectedConnectionLayout.js +2 -7
- package/build/src/components/Configure/state/utils.js +5 -5
- package/build/src/components/Connect/ConnectedSuccessBox.js +3 -3
- 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/SuccessTextBox.d.ts +5 -0
- package/build/src/components/SuccessTextBox.js +10 -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 +28 -21
- 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/generated-sources/api/src/models/OperationError.d.ts +0 -49
- package/build/generated-sources/api/src/models/OperationError.js +0 -56
- package/build/src/components/Configure/actions/onSaveReadUpdateInstallation.d.ts +0 -3
- 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
|
@@ -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,
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Operation } from '../models';
|
|
13
|
+
import type { Log, Operation } from '../models';
|
|
14
14
|
export interface GetOperationRequest {
|
|
15
15
|
projectId: string;
|
|
16
16
|
operationId: string;
|
|
17
17
|
}
|
|
18
|
+
export interface ListOperationLogsRequest {
|
|
19
|
+
projectId: string;
|
|
20
|
+
operationId: string;
|
|
21
|
+
}
|
|
18
22
|
export interface ListOperationsRequest {
|
|
19
23
|
projectId: string;
|
|
20
24
|
integrationId: string;
|
|
@@ -41,6 +45,20 @@ export interface OperationApiInterface {
|
|
|
41
45
|
* Get an operation
|
|
42
46
|
*/
|
|
43
47
|
getOperation(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Operation>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @summary List logs for an operation
|
|
51
|
+
* @param {string} projectId
|
|
52
|
+
* @param {string} operationId
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
* @memberof OperationApiInterface
|
|
56
|
+
*/
|
|
57
|
+
listOperationLogsRaw(requestParameters: ListOperationLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Log>>>;
|
|
58
|
+
/**
|
|
59
|
+
* List logs for an operation
|
|
60
|
+
*/
|
|
61
|
+
listOperationLogs(requestParameters: ListOperationLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Log>>;
|
|
44
62
|
/**
|
|
45
63
|
*
|
|
46
64
|
* @summary List operations
|
|
@@ -69,6 +87,14 @@ export declare class OperationApi extends runtime.BaseAPI implements OperationAp
|
|
|
69
87
|
* Get an operation
|
|
70
88
|
*/
|
|
71
89
|
getOperation(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Operation>;
|
|
90
|
+
/**
|
|
91
|
+
* List logs for an operation
|
|
92
|
+
*/
|
|
93
|
+
listOperationLogsRaw(requestParameters: ListOperationLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Log>>>;
|
|
94
|
+
/**
|
|
95
|
+
* List logs for an operation
|
|
96
|
+
*/
|
|
97
|
+
listOperationLogs(requestParameters: ListOperationLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Log>>;
|
|
72
98
|
/**
|
|
73
99
|
* List operations
|
|
74
100
|
*/
|
|
@@ -70,6 +70,33 @@ class OperationApi extends runtime.BaseAPI {
|
|
|
70
70
|
const response = await this.getOperationRaw(requestParameters, initOverrides);
|
|
71
71
|
return await response.value();
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* List logs for an operation
|
|
75
|
+
*/
|
|
76
|
+
async listOperationLogsRaw(requestParameters, initOverrides) {
|
|
77
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
78
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling listOperationLogs.');
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters.operationId === null || requestParameters.operationId === undefined) {
|
|
81
|
+
throw new runtime.RequiredError('operationId', 'Required parameter requestParameters.operationId was null or undefined when calling listOperationLogs.');
|
|
82
|
+
}
|
|
83
|
+
const queryParameters = {};
|
|
84
|
+
const headerParameters = {};
|
|
85
|
+
const response = await this.request({
|
|
86
|
+
path: `/projects/{projectId}/operations/{operationId}/logs`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"operationId"}}`, encodeURIComponent(String(requestParameters.operationId))),
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.LogFromJSON));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* List logs for an operation
|
|
95
|
+
*/
|
|
96
|
+
async listOperationLogs(requestParameters, initOverrides) {
|
|
97
|
+
const response = await this.listOperationLogsRaw(requestParameters, initOverrides);
|
|
98
|
+
return await response.value();
|
|
99
|
+
}
|
|
73
100
|
/**
|
|
74
101
|
* List operations
|
|
75
102
|
*/
|
|
@@ -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;
|