@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
|
@@ -0,0 +1,158 @@
|
|
|
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 { ApiKey, ApiKeyRequest, PatchApiKeyRequest } from '../models';
|
|
14
|
+
export interface CreateApiKeyRequest {
|
|
15
|
+
projectId: string;
|
|
16
|
+
apiKey: ApiKeyRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteApiKeyRequest {
|
|
19
|
+
projectId: string;
|
|
20
|
+
apiKey: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetApiKeyRequest {
|
|
23
|
+
projectId: string;
|
|
24
|
+
apiKey: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ListApiKeysRequest {
|
|
27
|
+
projectId: string;
|
|
28
|
+
active?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface UpdateApiKeyRequest {
|
|
31
|
+
projectId: string;
|
|
32
|
+
apiKey: string;
|
|
33
|
+
patchApiKeyRequest: PatchApiKeyRequest;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* APIKeyApi - interface
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
* @interface APIKeyApiInterface
|
|
40
|
+
*/
|
|
41
|
+
export interface APIKeyApiInterface {
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @summary Create a new API key
|
|
45
|
+
* @param {string} projectId
|
|
46
|
+
* @param {ApiKeyRequest} apiKey
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
* @memberof APIKeyApiInterface
|
|
50
|
+
*/
|
|
51
|
+
createApiKeyRaw(requestParameters: CreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKey>>;
|
|
52
|
+
/**
|
|
53
|
+
* Create a new API key
|
|
54
|
+
*/
|
|
55
|
+
createApiKey(requestParameters: CreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKey>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @summary Delete an API key
|
|
59
|
+
* @param {string} projectId
|
|
60
|
+
* @param {string} apiKey
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof APIKeyApiInterface
|
|
64
|
+
*/
|
|
65
|
+
deleteApiKeyRaw(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
66
|
+
/**
|
|
67
|
+
* Delete an API key
|
|
68
|
+
*/
|
|
69
|
+
deleteApiKey(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary Get an API key
|
|
73
|
+
* @param {string} projectId
|
|
74
|
+
* @param {string} apiKey
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
* @memberof APIKeyApiInterface
|
|
78
|
+
*/
|
|
79
|
+
getApiKeyRaw(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKey>>;
|
|
80
|
+
/**
|
|
81
|
+
* Get an API key
|
|
82
|
+
*/
|
|
83
|
+
getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKey>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @summary List API keys
|
|
87
|
+
* @param {string} projectId
|
|
88
|
+
* @param {boolean} [active] Whether to include only active API keys. If false, all API keys are included.
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
* @memberof APIKeyApiInterface
|
|
92
|
+
*/
|
|
93
|
+
listApiKeysRaw(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKey>>>;
|
|
94
|
+
/**
|
|
95
|
+
* List API keys
|
|
96
|
+
*/
|
|
97
|
+
listApiKeys(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKey>>;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Update an API key
|
|
101
|
+
* @param {string} projectId
|
|
102
|
+
* @param {string} apiKey
|
|
103
|
+
* @param {PatchApiKeyRequest} patchApiKeyRequest
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
* @memberof APIKeyApiInterface
|
|
107
|
+
*/
|
|
108
|
+
updateApiKeyRaw(requestParameters: UpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKey>>;
|
|
109
|
+
/**
|
|
110
|
+
* Update an API key
|
|
111
|
+
*/
|
|
112
|
+
updateApiKey(requestParameters: UpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKey>;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
export declare class APIKeyApi extends runtime.BaseAPI implements APIKeyApiInterface {
|
|
118
|
+
/**
|
|
119
|
+
* Create a new API key
|
|
120
|
+
*/
|
|
121
|
+
createApiKeyRaw(requestParameters: CreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKey>>;
|
|
122
|
+
/**
|
|
123
|
+
* Create a new API key
|
|
124
|
+
*/
|
|
125
|
+
createApiKey(requestParameters: CreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKey>;
|
|
126
|
+
/**
|
|
127
|
+
* Delete an API key
|
|
128
|
+
*/
|
|
129
|
+
deleteApiKeyRaw(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
130
|
+
/**
|
|
131
|
+
* Delete an API key
|
|
132
|
+
*/
|
|
133
|
+
deleteApiKey(requestParameters: DeleteApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Get an API key
|
|
136
|
+
*/
|
|
137
|
+
getApiKeyRaw(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKey>>;
|
|
138
|
+
/**
|
|
139
|
+
* Get an API key
|
|
140
|
+
*/
|
|
141
|
+
getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKey>;
|
|
142
|
+
/**
|
|
143
|
+
* List API keys
|
|
144
|
+
*/
|
|
145
|
+
listApiKeysRaw(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKey>>>;
|
|
146
|
+
/**
|
|
147
|
+
* List API keys
|
|
148
|
+
*/
|
|
149
|
+
listApiKeys(requestParameters: ListApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKey>>;
|
|
150
|
+
/**
|
|
151
|
+
* Update an API key
|
|
152
|
+
*/
|
|
153
|
+
updateApiKeyRaw(requestParameters: UpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKey>>;
|
|
154
|
+
/**
|
|
155
|
+
* Update an API key
|
|
156
|
+
*/
|
|
157
|
+
updateApiKey(requestParameters: UpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKey>;
|
|
158
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
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.APIKeyApi = void 0;
|
|
40
|
+
const runtime = __importStar(require("../runtime"));
|
|
41
|
+
const models_1 = require("../models");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
class APIKeyApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Create a new API key
|
|
48
|
+
*/
|
|
49
|
+
async createApiKeyRaw(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 createApiKey.');
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters.apiKey === null || requestParameters.apiKey === undefined) {
|
|
54
|
+
throw new runtime.RequiredError('apiKey', 'Required parameter requestParameters.apiKey was null or undefined when calling createApiKey.');
|
|
55
|
+
}
|
|
56
|
+
const queryParameters = {};
|
|
57
|
+
const headerParameters = {};
|
|
58
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
59
|
+
const response = await this.request({
|
|
60
|
+
path: `/projects/{projectId}/api-keys`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
61
|
+
method: 'POST',
|
|
62
|
+
headers: headerParameters,
|
|
63
|
+
query: queryParameters,
|
|
64
|
+
body: (0, models_1.ApiKeyRequestToJSON)(requestParameters.apiKey),
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiKeyFromJSON)(jsonValue));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Create a new API key
|
|
70
|
+
*/
|
|
71
|
+
async createApiKey(requestParameters, initOverrides) {
|
|
72
|
+
const response = await this.createApiKeyRaw(requestParameters, initOverrides);
|
|
73
|
+
return await response.value();
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Delete an API key
|
|
77
|
+
*/
|
|
78
|
+
async deleteApiKeyRaw(requestParameters, initOverrides) {
|
|
79
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
80
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteApiKey.');
|
|
81
|
+
}
|
|
82
|
+
if (requestParameters.apiKey === null || requestParameters.apiKey === undefined) {
|
|
83
|
+
throw new runtime.RequiredError('apiKey', 'Required parameter requestParameters.apiKey was null or undefined when calling deleteApiKey.');
|
|
84
|
+
}
|
|
85
|
+
const queryParameters = {};
|
|
86
|
+
const headerParameters = {};
|
|
87
|
+
const response = await this.request({
|
|
88
|
+
path: `/projects/{projectId}/api-keys/{apiKey}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"apiKey"}}`, encodeURIComponent(String(requestParameters.apiKey))),
|
|
89
|
+
method: 'DELETE',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
}, initOverrides);
|
|
93
|
+
return new runtime.VoidApiResponse(response);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Delete an API key
|
|
97
|
+
*/
|
|
98
|
+
async deleteApiKey(requestParameters, initOverrides) {
|
|
99
|
+
await this.deleteApiKeyRaw(requestParameters, initOverrides);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get an API key
|
|
103
|
+
*/
|
|
104
|
+
async getApiKeyRaw(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 getApiKey.');
|
|
107
|
+
}
|
|
108
|
+
if (requestParameters.apiKey === null || requestParameters.apiKey === undefined) {
|
|
109
|
+
throw new runtime.RequiredError('apiKey', 'Required parameter requestParameters.apiKey was null or undefined when calling getApiKey.');
|
|
110
|
+
}
|
|
111
|
+
const queryParameters = {};
|
|
112
|
+
const headerParameters = {};
|
|
113
|
+
const response = await this.request({
|
|
114
|
+
path: `/projects/{projectId}/api-keys/{apiKey}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"apiKey"}}`, encodeURIComponent(String(requestParameters.apiKey))),
|
|
115
|
+
method: 'GET',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiKeyFromJSON)(jsonValue));
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Get an API key
|
|
123
|
+
*/
|
|
124
|
+
async getApiKey(requestParameters, initOverrides) {
|
|
125
|
+
const response = await this.getApiKeyRaw(requestParameters, initOverrides);
|
|
126
|
+
return await response.value();
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* List API keys
|
|
130
|
+
*/
|
|
131
|
+
async listApiKeysRaw(requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
133
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling listApiKeys.');
|
|
134
|
+
}
|
|
135
|
+
const queryParameters = {};
|
|
136
|
+
if (requestParameters.active !== undefined) {
|
|
137
|
+
queryParameters['active'] = requestParameters.active;
|
|
138
|
+
}
|
|
139
|
+
const headerParameters = {};
|
|
140
|
+
const response = await this.request({
|
|
141
|
+
path: `/projects/{projectId}/api-keys`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
142
|
+
method: 'GET',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
}, initOverrides);
|
|
146
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.ApiKeyFromJSON));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* List API keys
|
|
150
|
+
*/
|
|
151
|
+
async listApiKeys(requestParameters, initOverrides) {
|
|
152
|
+
const response = await this.listApiKeysRaw(requestParameters, initOverrides);
|
|
153
|
+
return await response.value();
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Update an API key
|
|
157
|
+
*/
|
|
158
|
+
async updateApiKeyRaw(requestParameters, initOverrides) {
|
|
159
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
160
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateApiKey.');
|
|
161
|
+
}
|
|
162
|
+
if (requestParameters.apiKey === null || requestParameters.apiKey === undefined) {
|
|
163
|
+
throw new runtime.RequiredError('apiKey', 'Required parameter requestParameters.apiKey was null or undefined when calling updateApiKey.');
|
|
164
|
+
}
|
|
165
|
+
if (requestParameters.patchApiKeyRequest === null || requestParameters.patchApiKeyRequest === undefined) {
|
|
166
|
+
throw new runtime.RequiredError('patchApiKeyRequest', 'Required parameter requestParameters.patchApiKeyRequest was null or undefined when calling updateApiKey.');
|
|
167
|
+
}
|
|
168
|
+
const queryParameters = {};
|
|
169
|
+
const headerParameters = {};
|
|
170
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
171
|
+
const response = await this.request({
|
|
172
|
+
path: `/projects/{projectId}/api-keys/{apiKey}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"apiKey"}}`, encodeURIComponent(String(requestParameters.apiKey))),
|
|
173
|
+
method: 'PATCH',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
body: (0, models_1.PatchApiKeyRequestToJSON)(requestParameters.patchApiKeyRequest),
|
|
177
|
+
}, initOverrides);
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.ApiKeyFromJSON)(jsonValue));
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Update an API key
|
|
182
|
+
*/
|
|
183
|
+
async updateApiKey(requestParameters, initOverrides) {
|
|
184
|
+
const response = await this.updateApiKeyRaw(requestParameters, initOverrides);
|
|
185
|
+
return await response.value();
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.APIKeyApi = APIKeyApi;
|
|
@@ -10,15 +10,27 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Destination } from '../models';
|
|
14
|
-
export interface
|
|
13
|
+
import type { CreateDestinationRequest, Destination, UpdateDestinationRequest } from '../models';
|
|
14
|
+
export interface CreateDestinationOperationRequest {
|
|
15
15
|
projectId: string;
|
|
16
|
-
destination:
|
|
16
|
+
destination: CreateDestinationRequest;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteDestinationRequest {
|
|
19
|
+
projectId: string;
|
|
20
|
+
destinationId: string;
|
|
17
21
|
}
|
|
18
22
|
export interface GetDestinationRequest {
|
|
19
23
|
projectId: string;
|
|
20
24
|
destinationName: string;
|
|
21
25
|
}
|
|
26
|
+
export interface ListDestinationsRequest {
|
|
27
|
+
projectId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface UpdateDestinationOperationRequest {
|
|
30
|
+
projectId: string;
|
|
31
|
+
destinationId: string;
|
|
32
|
+
destinationUpdate: UpdateDestinationRequest;
|
|
33
|
+
}
|
|
22
34
|
/**
|
|
23
35
|
* DestinationApi - interface
|
|
24
36
|
*
|
|
@@ -30,16 +42,30 @@ export interface DestinationApiInterface {
|
|
|
30
42
|
*
|
|
31
43
|
* @summary Create a new destination
|
|
32
44
|
* @param {string} projectId
|
|
33
|
-
* @param {
|
|
45
|
+
* @param {CreateDestinationRequest} destination
|
|
34
46
|
* @param {*} [options] Override http request option.
|
|
35
47
|
* @throws {RequiredError}
|
|
36
48
|
* @memberof DestinationApiInterface
|
|
37
49
|
*/
|
|
38
|
-
createDestinationRaw(requestParameters:
|
|
50
|
+
createDestinationRaw(requestParameters: CreateDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Destination>>;
|
|
39
51
|
/**
|
|
40
52
|
* Create a new destination
|
|
41
53
|
*/
|
|
42
|
-
createDestination(requestParameters:
|
|
54
|
+
createDestination(requestParameters: CreateDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Destination>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @summary Delete a destination
|
|
58
|
+
* @param {string} projectId
|
|
59
|
+
* @param {string} destinationId
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
* @memberof DestinationApiInterface
|
|
63
|
+
*/
|
|
64
|
+
deleteDestinationRaw(requestParameters: DeleteDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
65
|
+
/**
|
|
66
|
+
* Delete a destination
|
|
67
|
+
*/
|
|
68
|
+
deleteDestination(requestParameters: DeleteDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
43
69
|
/**
|
|
44
70
|
*
|
|
45
71
|
* @summary Get a destination
|
|
@@ -54,6 +80,34 @@ export interface DestinationApiInterface {
|
|
|
54
80
|
* Get a destination
|
|
55
81
|
*/
|
|
56
82
|
getDestination(requestParameters: GetDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Destination>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @summary List destinations
|
|
86
|
+
* @param {string} projectId
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof DestinationApiInterface
|
|
90
|
+
*/
|
|
91
|
+
listDestinationsRaw(requestParameters: ListDestinationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Destination>>>;
|
|
92
|
+
/**
|
|
93
|
+
* List destinations
|
|
94
|
+
*/
|
|
95
|
+
listDestinations(requestParameters: ListDestinationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Destination>>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Update a destination
|
|
99
|
+
* @param {string} projectId
|
|
100
|
+
* @param {string} destinationId
|
|
101
|
+
* @param {UpdateDestinationRequest} destinationUpdate
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
* @memberof DestinationApiInterface
|
|
105
|
+
*/
|
|
106
|
+
updateDestinationRaw(requestParameters: UpdateDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Destination>>;
|
|
107
|
+
/**
|
|
108
|
+
* Update a destination
|
|
109
|
+
*/
|
|
110
|
+
updateDestination(requestParameters: UpdateDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Destination>;
|
|
57
111
|
}
|
|
58
112
|
/**
|
|
59
113
|
*
|
|
@@ -62,11 +116,19 @@ export declare class DestinationApi extends runtime.BaseAPI implements Destinati
|
|
|
62
116
|
/**
|
|
63
117
|
* Create a new destination
|
|
64
118
|
*/
|
|
65
|
-
createDestinationRaw(requestParameters:
|
|
119
|
+
createDestinationRaw(requestParameters: CreateDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Destination>>;
|
|
66
120
|
/**
|
|
67
121
|
* Create a new destination
|
|
68
122
|
*/
|
|
69
|
-
createDestination(requestParameters:
|
|
123
|
+
createDestination(requestParameters: CreateDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Destination>;
|
|
124
|
+
/**
|
|
125
|
+
* Delete a destination
|
|
126
|
+
*/
|
|
127
|
+
deleteDestinationRaw(requestParameters: DeleteDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
128
|
+
/**
|
|
129
|
+
* Delete a destination
|
|
130
|
+
*/
|
|
131
|
+
deleteDestination(requestParameters: DeleteDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
70
132
|
/**
|
|
71
133
|
* Get a destination
|
|
72
134
|
*/
|
|
@@ -75,4 +137,20 @@ export declare class DestinationApi extends runtime.BaseAPI implements Destinati
|
|
|
75
137
|
* Get a destination
|
|
76
138
|
*/
|
|
77
139
|
getDestination(requestParameters: GetDestinationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Destination>;
|
|
140
|
+
/**
|
|
141
|
+
* List destinations
|
|
142
|
+
*/
|
|
143
|
+
listDestinationsRaw(requestParameters: ListDestinationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Destination>>>;
|
|
144
|
+
/**
|
|
145
|
+
* List destinations
|
|
146
|
+
*/
|
|
147
|
+
listDestinations(requestParameters: ListDestinationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Destination>>;
|
|
148
|
+
/**
|
|
149
|
+
* Update a destination
|
|
150
|
+
*/
|
|
151
|
+
updateDestinationRaw(requestParameters: UpdateDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Destination>>;
|
|
152
|
+
/**
|
|
153
|
+
* Update a destination
|
|
154
|
+
*/
|
|
155
|
+
updateDestination(requestParameters: UpdateDestinationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Destination>;
|
|
78
156
|
}
|
|
@@ -61,15 +61,42 @@ class DestinationApi extends runtime.BaseAPI {
|
|
|
61
61
|
method: 'POST',
|
|
62
62
|
headers: headerParameters,
|
|
63
63
|
query: queryParameters,
|
|
64
|
-
body: (0, models_1.
|
|
64
|
+
body: (0, models_1.CreateDestinationRequestToJSON)(requestParameters.destination),
|
|
65
65
|
}, initOverrides);
|
|
66
|
-
return new runtime.
|
|
66
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DestinationFromJSON)(jsonValue));
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* Create a new destination
|
|
70
70
|
*/
|
|
71
71
|
async createDestination(requestParameters, initOverrides) {
|
|
72
|
-
await this.createDestinationRaw(requestParameters, initOverrides);
|
|
72
|
+
const response = await this.createDestinationRaw(requestParameters, initOverrides);
|
|
73
|
+
return await response.value();
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Delete a destination
|
|
77
|
+
*/
|
|
78
|
+
async deleteDestinationRaw(requestParameters, initOverrides) {
|
|
79
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
80
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteDestination.');
|
|
81
|
+
}
|
|
82
|
+
if (requestParameters.destinationId === null || requestParameters.destinationId === undefined) {
|
|
83
|
+
throw new runtime.RequiredError('destinationId', 'Required parameter requestParameters.destinationId was null or undefined when calling deleteDestination.');
|
|
84
|
+
}
|
|
85
|
+
const queryParameters = {};
|
|
86
|
+
const headerParameters = {};
|
|
87
|
+
const response = await this.request({
|
|
88
|
+
path: `/projects/{projectId}/destinations/{destinationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"destinationId"}}`, encodeURIComponent(String(requestParameters.destinationId))),
|
|
89
|
+
method: 'DELETE',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
}, initOverrides);
|
|
93
|
+
return new runtime.VoidApiResponse(response);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Delete a destination
|
|
97
|
+
*/
|
|
98
|
+
async deleteDestination(requestParameters, initOverrides) {
|
|
99
|
+
await this.deleteDestinationRaw(requestParameters, initOverrides);
|
|
73
100
|
}
|
|
74
101
|
/**
|
|
75
102
|
* Get a destination
|
|
@@ -98,5 +125,61 @@ class DestinationApi extends runtime.BaseAPI {
|
|
|
98
125
|
const response = await this.getDestinationRaw(requestParameters, initOverrides);
|
|
99
126
|
return await response.value();
|
|
100
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* List destinations
|
|
130
|
+
*/
|
|
131
|
+
async listDestinationsRaw(requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
133
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling listDestinations.');
|
|
134
|
+
}
|
|
135
|
+
const queryParameters = {};
|
|
136
|
+
const headerParameters = {};
|
|
137
|
+
const response = await this.request({
|
|
138
|
+
path: `/projects/{projectId}/destinations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
139
|
+
method: 'GET',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.DestinationFromJSON));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* List destinations
|
|
147
|
+
*/
|
|
148
|
+
async listDestinations(requestParameters, initOverrides) {
|
|
149
|
+
const response = await this.listDestinationsRaw(requestParameters, initOverrides);
|
|
150
|
+
return await response.value();
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Update a destination
|
|
154
|
+
*/
|
|
155
|
+
async updateDestinationRaw(requestParameters, initOverrides) {
|
|
156
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
157
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateDestination.');
|
|
158
|
+
}
|
|
159
|
+
if (requestParameters.destinationId === null || requestParameters.destinationId === undefined) {
|
|
160
|
+
throw new runtime.RequiredError('destinationId', 'Required parameter requestParameters.destinationId was null or undefined when calling updateDestination.');
|
|
161
|
+
}
|
|
162
|
+
if (requestParameters.destinationUpdate === null || requestParameters.destinationUpdate === undefined) {
|
|
163
|
+
throw new runtime.RequiredError('destinationUpdate', 'Required parameter requestParameters.destinationUpdate was null or undefined when calling updateDestination.');
|
|
164
|
+
}
|
|
165
|
+
const queryParameters = {};
|
|
166
|
+
const headerParameters = {};
|
|
167
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
168
|
+
const response = await this.request({
|
|
169
|
+
path: `/projects/{projectId}/destinations/{destinationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"destinationId"}}`, encodeURIComponent(String(requestParameters.destinationId))),
|
|
170
|
+
method: 'PATCH',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
body: (0, models_1.UpdateDestinationRequestToJSON)(requestParameters.destinationUpdate),
|
|
174
|
+
}, initOverrides);
|
|
175
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.DestinationFromJSON)(jsonValue));
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Update a destination
|
|
179
|
+
*/
|
|
180
|
+
async updateDestination(requestParameters, initOverrides) {
|
|
181
|
+
const response = await this.updateDestinationRaw(requestParameters, initOverrides);
|
|
182
|
+
return await response.value();
|
|
183
|
+
}
|
|
101
184
|
}
|
|
102
185
|
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
|
*/
|