@amp-labs/react 1.0.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/LICENSE.md +21 -0
- package/README.md +138 -0
- package/build/generated-sources/api/src/apis/DefaultApi.d.ts +858 -0
- package/build/generated-sources/api/src/apis/DefaultApi.js +942 -0
- package/build/generated-sources/api/src/apis/index.d.ts +1 -0
- package/build/generated-sources/api/src/apis/index.js +19 -0
- package/build/generated-sources/api/src/index.d.ts +3 -0
- package/build/generated-sources/api/src/index.js +21 -0
- package/build/generated-sources/api/src/models/BaseConfigContent.d.ts +38 -0
- package/build/generated-sources/api/src/models/BaseConfigContent.js +53 -0
- package/build/generated-sources/api/src/models/BaseReadConfig.d.ts +34 -0
- package/build/generated-sources/api/src/models/BaseReadConfig.js +51 -0
- package/build/generated-sources/api/src/models/BaseReadConfigStandardObject.d.ts +59 -0
- package/build/generated-sources/api/src/models/BaseReadConfigStandardObject.js +58 -0
- package/build/generated-sources/api/src/models/BatchUpsertIntegrationsRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/BatchUpsertIntegrationsRequest.js +50 -0
- package/build/generated-sources/api/src/models/Config.d.ts +56 -0
- package/build/generated-sources/api/src/models/Config.js +63 -0
- package/build/generated-sources/api/src/models/ConfigContent.d.ts +37 -0
- package/build/generated-sources/api/src/models/ConfigContent.js +53 -0
- package/build/generated-sources/api/src/models/ConfigContentAllOf.d.ts +31 -0
- package/build/generated-sources/api/src/models/ConfigContentAllOf.js +50 -0
- package/build/generated-sources/api/src/models/Connection.d.ts +82 -0
- package/build/generated-sources/api/src/models/Connection.js +76 -0
- package/build/generated-sources/api/src/models/Consumer.d.ts +55 -0
- package/build/generated-sources/api/src/models/Consumer.js +62 -0
- package/build/generated-sources/api/src/models/CreateConsumerRequest.d.ts +37 -0
- package/build/generated-sources/api/src/models/CreateConsumerRequest.js +53 -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/CreateDestinationRequestMetadata.js +52 -0
- package/build/generated-sources/api/src/models/CreateGroupRequest.d.ts +37 -0
- package/build/generated-sources/api/src/models/CreateGroupRequest.js +53 -0
- package/build/generated-sources/api/src/models/CreateInstallationRequest.d.ts +44 -0
- package/build/generated-sources/api/src/models/CreateInstallationRequest.js +57 -0
- package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.d.ts +44 -0
- package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.js +57 -0
- package/build/generated-sources/api/src/models/CreateIntegrationRequest.d.ts +44 -0
- package/build/generated-sources/api/src/models/CreateIntegrationRequest.js +57 -0
- package/build/generated-sources/api/src/models/CreateIntegrationRequestLatestRevision.d.ts +31 -0
- package/build/generated-sources/api/src/models/CreateIntegrationRequestLatestRevision.js +50 -0
- package/build/generated-sources/api/src/models/CreateProjectRequest.d.ts +37 -0
- package/build/generated-sources/api/src/models/CreateProjectRequest.js +53 -0
- package/build/generated-sources/api/src/models/CreateProviderAppRequest.d.ts +49 -0
- package/build/generated-sources/api/src/models/CreateProviderAppRequest.js +59 -0
- package/build/generated-sources/api/src/models/Group.d.ts +55 -0
- package/build/generated-sources/api/src/models/Group.js +62 -0
- package/build/generated-sources/api/src/models/HydratedIntegration.d.ts +50 -0
- package/build/generated-sources/api/src/models/HydratedIntegration.js +59 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationField.d.ts +22 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationField.js +45 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationFieldExistent.d.ts +37 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationFieldExistent.js +53 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationObject.d.ts +75 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationObject.js +70 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationRead.d.ts +32 -0
- package/build/generated-sources/api/src/models/HydratedIntegrationRead.js +51 -0
- package/build/generated-sources/api/src/models/HydratedRevision.d.ts +50 -0
- package/build/generated-sources/api/src/models/HydratedRevision.js +60 -0
- package/build/generated-sources/api/src/models/ImportConnectionRequest.d.ts +85 -0
- package/build/generated-sources/api/src/models/ImportConnectionRequest.js +75 -0
- package/build/generated-sources/api/src/models/ImportInstallationRequest.d.ts +39 -0
- package/build/generated-sources/api/src/models/ImportInstallationRequest.js +55 -0
- package/build/generated-sources/api/src/models/ImportInstallationRequestConfig.d.ts +38 -0
- package/build/generated-sources/api/src/models/ImportInstallationRequestConfig.js +54 -0
- package/build/generated-sources/api/src/models/Installation.d.ts +88 -0
- package/build/generated-sources/api/src/models/Installation.js +79 -0
- package/build/generated-sources/api/src/models/Integration.d.ts +68 -0
- package/build/generated-sources/api/src/models/Integration.js +69 -0
- package/build/generated-sources/api/src/models/Integration1.d.ts +50 -0
- package/build/generated-sources/api/src/models/Integration1.js +59 -0
- package/build/generated-sources/api/src/models/IntegrationField.d.ts +22 -0
- package/build/generated-sources/api/src/models/IntegrationField.js +45 -0
- package/build/generated-sources/api/src/models/IntegrationFieldExistent.d.ts +31 -0
- package/build/generated-sources/api/src/models/IntegrationFieldExistent.js +50 -0
- package/build/generated-sources/api/src/models/IntegrationFieldMapping.d.ts +49 -0
- package/build/generated-sources/api/src/models/IntegrationFieldMapping.js +57 -0
- package/build/generated-sources/api/src/models/IntegrationObject.d.ts +63 -0
- package/build/generated-sources/api/src/models/IntegrationObject.js +65 -0
- package/build/generated-sources/api/src/models/IntegrationRead.d.ts +32 -0
- package/build/generated-sources/api/src/models/IntegrationRead.js +51 -0
- package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +73 -0
- package/build/generated-sources/api/src/models/OauthConnectRequest.js +70 -0
- package/build/generated-sources/api/src/models/Operation.d.ts +80 -0
- package/build/generated-sources/api/src/models/Operation.js +73 -0
- package/build/generated-sources/api/src/models/OperationError.d.ts +49 -0
- package/build/generated-sources/api/src/models/OperationError.js +56 -0
- package/build/generated-sources/api/src/models/OptionalFieldsAutoOption.d.ts +22 -0
- package/build/generated-sources/api/src/models/OptionalFieldsAutoOption.js +35 -0
- package/build/generated-sources/api/src/models/Project.d.ts +55 -0
- package/build/generated-sources/api/src/models/Project.js +62 -0
- package/build/generated-sources/api/src/models/ProjectMembership.d.ts +56 -0
- package/build/generated-sources/api/src/models/ProjectMembership.js +63 -0
- package/build/generated-sources/api/src/models/ProviderApp.d.ts +67 -0
- package/build/generated-sources/api/src/models/ProviderApp.js +67 -0
- package/build/generated-sources/api/src/models/Revision.d.ts +50 -0
- package/build/generated-sources/api/src/models/Revision.js +60 -0
- package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.js +53 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallation.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallation.js +53 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.d.ts +44 -0
- package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.js +55 -0
- package/build/generated-sources/api/src/models/UpdateProjectRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateProjectRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateProjectRequestProject.d.ts +37 -0
- package/build/generated-sources/api/src/models/UpdateProjectRequestProject.js +52 -0
- package/build/generated-sources/api/src/models/UpdateProviderAppRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateProviderAppRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateProviderAppRequestProviderApp.d.ts +49 -0
- package/build/generated-sources/api/src/models/UpdateProviderAppRequestProviderApp.js +56 -0
- package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.d.ts +37 -0
- package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.js +53 -0
- package/build/generated-sources/api/src/models/index.d.ts +54 -0
- package/build/generated-sources/api/src/models/index.js +72 -0
- package/build/generated-sources/api/src/runtime.d.ts +182 -0
- package/build/generated-sources/api/src/runtime.js +317 -0
- package/build/src/assets/LoadingIcon.d.ts +5 -0
- package/build/src/assets/LoadingIcon.js +9 -0
- package/build/src/assets/NavIcon.d.ts +1 -0
- package/build/src/assets/NavIcon.js +23 -0
- package/build/src/components/AmpersandProvider/AmpersandProvider.d.ts +19 -0
- package/build/src/components/AmpersandProvider/AmpersandProvider.js +31 -0
- package/build/src/components/AmpersandProvider/index.d.ts +1 -0
- package/build/src/components/AmpersandProvider/index.js +17 -0
- package/build/src/components/CenteredTextBox/CenteredTextBox.d.ts +5 -0
- package/build/src/components/CenteredTextBox/CenteredTextBox.js +8 -0
- package/build/src/components/Configure/ConfigureInstallationBase.d.ts +8 -0
- package/build/src/components/Configure/ConfigureInstallationBase.js +17 -0
- package/build/src/components/Configure/CreateInstallation.d.ts +1 -0
- package/build/src/components/Configure/CreateInstallation.js +73 -0
- package/build/src/components/Configure/ErrorTextBox.d.ts +5 -0
- package/build/src/components/Configure/ErrorTextBox.js +9 -0
- package/build/src/components/Configure/InstallIntegration.d.ts +9 -0
- package/build/src/components/Configure/InstallIntegration.js +40 -0
- package/build/src/components/Configure/ObjectManagementNav/NavObjectItem.d.ts +8 -0
- package/build/src/components/Configure/ObjectManagementNav/NavObjectItem.js +14 -0
- package/build/src/components/Configure/ObjectManagementNav/index.d.ts +9 -0
- package/build/src/components/Configure/ObjectManagementNav/index.js +45 -0
- package/build/src/components/Configure/ProtectedConnectionLayout.d.ts +6 -0
- package/build/src/components/Configure/ProtectedConnectionLayout.js +28 -0
- package/build/src/components/Configure/UpdateInstallation.d.ts +7 -0
- package/build/src/components/Configure/UpdateInstallation.js +87 -0
- package/build/src/components/Configure/actions/onSaveCreate.d.ts +3 -0
- package/build/src/components/Configure/actions/onSaveCreate.js +90 -0
- package/build/src/components/Configure/actions/onSaveUpdate.d.ts +3 -0
- package/build/src/components/Configure/actions/onSaveUpdate.js +74 -0
- package/build/src/components/Configure/fields/FieldHeader.d.ts +5 -0
- package/build/src/components/Configure/fields/FieldHeader.js +9 -0
- package/build/src/components/Configure/fields/FieldMapping.d.ts +10 -0
- package/build/src/components/Configure/fields/FieldMapping.js +28 -0
- package/build/src/components/Configure/fields/OptionalFields.d.ts +1 -0
- package/build/src/components/Configure/fields/OptionalFields.js +45 -0
- package/build/src/components/Configure/fields/RequiredFieldMappings.d.ts +1 -0
- package/build/src/components/Configure/fields/RequiredFieldMappings.js +40 -0
- package/build/src/components/Configure/fields/RequiredFields.d.ts +1 -0
- package/build/src/components/Configure/fields/RequiredFields.js +27 -0
- package/build/src/components/Configure/index.d.ts +1 -0
- package/build/src/components/Configure/index.js +5 -0
- package/build/src/components/Configure/state/ConfigurationStateProvider.d.ts +13 -0
- package/build/src/components/Configure/state/ConfigurationStateProvider.js +54 -0
- package/build/src/components/Configure/state/HydratedRevisionContext.d.ts +14 -0
- package/build/src/components/Configure/state/HydratedRevisionContext.js +82 -0
- package/build/src/components/Configure/state/utils.d.ts +34 -0
- package/build/src/components/Configure/state/utils.js +146 -0
- package/build/src/components/Configure/types.d.ts +31 -0
- package/build/src/components/Configure/types.js +2 -0
- package/build/src/components/Configure/utils.d.ts +24 -0
- package/build/src/components/Configure/utils.js +82 -0
- package/build/src/components/OAuthPopup/OAuthPopup.d.ts +14 -0
- package/build/src/components/OAuthPopup/OAuthPopup.js +85 -0
- package/build/src/components/Salesforce/SalesforceOauthFlow.d.ts +16 -0
- package/build/src/components/Salesforce/SalesforceOauthFlow.js +78 -0
- package/build/src/components/ThemeProvider/index.d.ts +6 -0
- package/build/src/components/ThemeProvider/index.js +37 -0
- package/build/src/components/index.d.ts +2 -0
- package/build/src/components/index.js +18 -0
- package/build/src/constants.d.ts +1 -0
- package/build/src/constants.js +4 -0
- package/build/src/context/ApiKeyContext.d.ts +3 -0
- package/build/src/context/ApiKeyContext.js +6 -0
- package/build/src/context/ConnectionsContext.d.ts +16 -0
- package/build/src/context/ConnectionsContext.js +57 -0
- package/build/src/context/ErrorContextProvider.d.ts +37 -0
- package/build/src/context/ErrorContextProvider.js +72 -0
- package/build/src/context/InstallIntegrationContext.d.ts +24 -0
- package/build/src/context/InstallIntegrationContext.js +90 -0
- package/build/src/context/IntegrationListContext.d.ts +13 -0
- package/build/src/context/IntegrationListContext.js +48 -0
- package/build/src/context/ProjectContext.d.ts +15 -0
- package/build/src/context/ProjectContext.js +50 -0
- package/build/src/hooks/index.d.ts +1 -0
- package/build/src/hooks/index.js +17 -0
- package/build/src/hooks/useIsIntegrationInstalled.d.ts +6 -0
- package/build/src/hooks/useIsIntegrationInstalled.js +48 -0
- package/build/src/index.d.ts +2 -0
- package/build/src/index.js +18 -0
- package/build/src/services/api.d.ts +9 -0
- package/build/src/services/api.js +64 -0
- package/build/src/utils/index.d.ts +10 -0
- package/build/src/utils/index.js +21 -0
- package/package.json +80 -0
|
@@ -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: 0.1.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.ConfigContentAllOfToJSON = exports.ConfigContentAllOfFromJSONTyped = exports.ConfigContentAllOfFromJSON = exports.instanceOfConfigContentAllOf = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ConfigContentAllOf interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfConfigContentAllOf(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfConfigContentAllOf = instanceOfConfigContentAllOf;
|
|
26
|
+
function ConfigContentAllOfFromJSON(json) {
|
|
27
|
+
return ConfigContentAllOfFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ConfigContentAllOfFromJSON = ConfigContentAllOfFromJSON;
|
|
30
|
+
function ConfigContentAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'read': !(0, runtime_1.exists)(json, 'read') ? undefined : json['read'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ConfigContentAllOfFromJSONTyped = ConfigContentAllOfFromJSONTyped;
|
|
39
|
+
function ConfigContentAllOfToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'read': value.read,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.ConfigContentAllOfToJSON = ConfigContentAllOfToJSON;
|
|
@@ -0,0 +1,82 @@
|
|
|
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: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Consumer } from './Consumer';
|
|
13
|
+
import type { Group } from './Group';
|
|
14
|
+
import type { ProviderApp } from './ProviderApp';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Connection
|
|
19
|
+
*/
|
|
20
|
+
export interface Connection {
|
|
21
|
+
/**
|
|
22
|
+
* The connection ID.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Connection
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The Ampersand project ID.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Connection
|
|
31
|
+
*/
|
|
32
|
+
projectId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {ProviderApp}
|
|
36
|
+
* @memberof Connection
|
|
37
|
+
*/
|
|
38
|
+
providerApp: ProviderApp;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Group}
|
|
42
|
+
* @memberof Connection
|
|
43
|
+
*/
|
|
44
|
+
group: Group;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Consumer}
|
|
48
|
+
* @memberof Connection
|
|
49
|
+
*/
|
|
50
|
+
consumer: Consumer;
|
|
51
|
+
/**
|
|
52
|
+
* The identifier for the provider workspace (e.g. "salesforce-instance-domain")
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof Connection
|
|
55
|
+
*/
|
|
56
|
+
providerWorkspaceRef: string;
|
|
57
|
+
/**
|
|
58
|
+
* The ID that Salesforce/Hubspot uses to identify this user (e.g. Salesforce has IDs in the form of https://login.salesforce.com/id/00D4x0000019CQTEA2/0054x000000orJ4AA)
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof Connection
|
|
61
|
+
*/
|
|
62
|
+
providerConsumerRef?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The time the connection was created.
|
|
65
|
+
* @type {Date}
|
|
66
|
+
* @memberof Connection
|
|
67
|
+
*/
|
|
68
|
+
createTime: Date;
|
|
69
|
+
/**
|
|
70
|
+
* The time the connection was last updated.
|
|
71
|
+
* @type {Date}
|
|
72
|
+
* @memberof Connection
|
|
73
|
+
*/
|
|
74
|
+
updateTime?: Date;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the Connection interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfConnection(value: object): boolean;
|
|
80
|
+
export declare function ConnectionFromJSON(json: any): Connection;
|
|
81
|
+
export declare function ConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Connection;
|
|
82
|
+
export declare function ConnectionToJSON(value?: Connection | null): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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: 0.1.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.ConnectionToJSON = exports.ConnectionFromJSONTyped = exports.ConnectionFromJSON = exports.instanceOfConnection = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const Consumer_1 = require("./Consumer");
|
|
19
|
+
const Group_1 = require("./Group");
|
|
20
|
+
const ProviderApp_1 = require("./ProviderApp");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Connection interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfConnection(value) {
|
|
25
|
+
let isInstance = true;
|
|
26
|
+
isInstance = isInstance && "id" in value;
|
|
27
|
+
isInstance = isInstance && "projectId" in value;
|
|
28
|
+
isInstance = isInstance && "providerApp" in value;
|
|
29
|
+
isInstance = isInstance && "group" in value;
|
|
30
|
+
isInstance = isInstance && "consumer" in value;
|
|
31
|
+
isInstance = isInstance && "providerWorkspaceRef" in value;
|
|
32
|
+
isInstance = isInstance && "createTime" in value;
|
|
33
|
+
return isInstance;
|
|
34
|
+
}
|
|
35
|
+
exports.instanceOfConnection = instanceOfConnection;
|
|
36
|
+
function ConnectionFromJSON(json) {
|
|
37
|
+
return ConnectionFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
exports.ConnectionFromJSON = ConnectionFromJSON;
|
|
40
|
+
function ConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'projectId': json['projectId'],
|
|
47
|
+
'providerApp': (0, ProviderApp_1.ProviderAppFromJSON)(json['providerApp']),
|
|
48
|
+
'group': (0, Group_1.GroupFromJSON)(json['group']),
|
|
49
|
+
'consumer': (0, Consumer_1.ConsumerFromJSON)(json['consumer']),
|
|
50
|
+
'providerWorkspaceRef': json['providerWorkspaceRef'],
|
|
51
|
+
'providerConsumerRef': !(0, runtime_1.exists)(json, 'ProviderConsumerRef') ? undefined : json['ProviderConsumerRef'],
|
|
52
|
+
'createTime': (new Date(json['createTime'])),
|
|
53
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.ConnectionFromJSONTyped = ConnectionFromJSONTyped;
|
|
57
|
+
function ConnectionToJSON(value) {
|
|
58
|
+
if (value === undefined) {
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
if (value === null) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value.id,
|
|
66
|
+
'projectId': value.projectId,
|
|
67
|
+
'providerApp': (0, ProviderApp_1.ProviderAppToJSON)(value.providerApp),
|
|
68
|
+
'group': (0, Group_1.GroupToJSON)(value.group),
|
|
69
|
+
'consumer': (0, Consumer_1.ConsumerToJSON)(value.consumer),
|
|
70
|
+
'providerWorkspaceRef': value.providerWorkspaceRef,
|
|
71
|
+
'ProviderConsumerRef': value.providerConsumerRef,
|
|
72
|
+
'createTime': (value.createTime.toISOString()),
|
|
73
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
exports.ConnectionToJSON = ConnectionToJSON;
|
|
@@ -0,0 +1,55 @@
|
|
|
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: 0.1.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 Consumer
|
|
16
|
+
*/
|
|
17
|
+
export interface Consumer {
|
|
18
|
+
/**
|
|
19
|
+
* The consumer reference.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Consumer
|
|
22
|
+
*/
|
|
23
|
+
consumerRef: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the consumer.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Consumer
|
|
28
|
+
*/
|
|
29
|
+
consumerName: string;
|
|
30
|
+
/**
|
|
31
|
+
* The Ampersand project ID.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Consumer
|
|
34
|
+
*/
|
|
35
|
+
projectId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The time the consumer was created.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof Consumer
|
|
40
|
+
*/
|
|
41
|
+
createTime: Date;
|
|
42
|
+
/**
|
|
43
|
+
* The time the consumer was last updated.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof Consumer
|
|
46
|
+
*/
|
|
47
|
+
updateTime?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the Consumer interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfConsumer(value: object): boolean;
|
|
53
|
+
export declare function ConsumerFromJSON(json: any): Consumer;
|
|
54
|
+
export declare function ConsumerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Consumer;
|
|
55
|
+
export declare function ConsumerToJSON(value?: Consumer | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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: 0.1.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.ConsumerToJSON = exports.ConsumerFromJSONTyped = exports.ConsumerFromJSON = exports.instanceOfConsumer = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Consumer interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfConsumer(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "consumerRef" in value;
|
|
24
|
+
isInstance = isInstance && "consumerName" in value;
|
|
25
|
+
isInstance = isInstance && "projectId" in value;
|
|
26
|
+
isInstance = isInstance && "createTime" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfConsumer = instanceOfConsumer;
|
|
30
|
+
function ConsumerFromJSON(json) {
|
|
31
|
+
return ConsumerFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ConsumerFromJSON = ConsumerFromJSON;
|
|
34
|
+
function ConsumerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'consumerRef': json['consumerRef'],
|
|
40
|
+
'consumerName': json['consumerName'],
|
|
41
|
+
'projectId': json['projectId'],
|
|
42
|
+
'createTime': (new Date(json['createTime'])),
|
|
43
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.ConsumerFromJSONTyped = ConsumerFromJSONTyped;
|
|
47
|
+
function ConsumerToJSON(value) {
|
|
48
|
+
if (value === undefined) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'consumerRef': value.consumerRef,
|
|
56
|
+
'consumerName': value.consumerName,
|
|
57
|
+
'projectId': value.projectId,
|
|
58
|
+
'createTime': (value.createTime.toISOString()),
|
|
59
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.ConsumerToJSON = ConsumerToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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: 0.1.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 CreateConsumerRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateConsumerRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The consumer reference.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateConsumerRequest
|
|
22
|
+
*/
|
|
23
|
+
consumerRef: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the consumer that has access to this installation.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateConsumerRequest
|
|
28
|
+
*/
|
|
29
|
+
consumerName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateConsumerRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateConsumerRequest(value: object): boolean;
|
|
35
|
+
export declare function CreateConsumerRequestFromJSON(json: any): CreateConsumerRequest;
|
|
36
|
+
export declare function CreateConsumerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateConsumerRequest;
|
|
37
|
+
export declare function CreateConsumerRequestToJSON(value?: CreateConsumerRequest | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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: 0.1.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.CreateConsumerRequestToJSON = exports.CreateConsumerRequestFromJSONTyped = exports.CreateConsumerRequestFromJSON = exports.instanceOfCreateConsumerRequest = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CreateConsumerRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCreateConsumerRequest(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "consumerRef" in value;
|
|
23
|
+
isInstance = isInstance && "consumerName" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfCreateConsumerRequest = instanceOfCreateConsumerRequest;
|
|
27
|
+
function CreateConsumerRequestFromJSON(json) {
|
|
28
|
+
return CreateConsumerRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.CreateConsumerRequestFromJSON = CreateConsumerRequestFromJSON;
|
|
31
|
+
function CreateConsumerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'consumerRef': json['consumerRef'],
|
|
37
|
+
'consumerName': json['consumerName'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.CreateConsumerRequestFromJSONTyped = CreateConsumerRequestFromJSONTyped;
|
|
41
|
+
function CreateConsumerRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'consumerRef': value.consumerRef,
|
|
50
|
+
'consumerName': value.consumerName,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.CreateConsumerRequestToJSON = CreateConsumerRequestToJSON;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateDestinationRequestMetadata } from './CreateDestinationRequestMetadata';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateDestinationRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateDestinationRequest {
|
|
19
|
+
/**
|
|
20
|
+
* User-friendly name for the destination
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateDestinationRequest
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* The type of the destination
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateDestinationRequest
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {CreateDestinationRequestMetadata}
|
|
34
|
+
* @memberof CreateDestinationRequest
|
|
35
|
+
*/
|
|
36
|
+
metadata: CreateDestinationRequestMetadata;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CreateDestinationRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfCreateDestinationRequest(value: object): boolean;
|
|
42
|
+
export declare function CreateDestinationRequestFromJSON(json: any): CreateDestinationRequest;
|
|
43
|
+
export declare function CreateDestinationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDestinationRequest;
|
|
44
|
+
export declare function CreateDestinationRequestToJSON(value?: CreateDestinationRequest | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.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.CreateDestinationRequestToJSON = exports.CreateDestinationRequestFromJSONTyped = exports.CreateDestinationRequestFromJSON = exports.instanceOfCreateDestinationRequest = void 0;
|
|
17
|
+
const CreateDestinationRequestMetadata_1 = require("./CreateDestinationRequestMetadata");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CreateDestinationRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCreateDestinationRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
isInstance = isInstance && "type" in value;
|
|
25
|
+
isInstance = isInstance && "metadata" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfCreateDestinationRequest = instanceOfCreateDestinationRequest;
|
|
29
|
+
function CreateDestinationRequestFromJSON(json) {
|
|
30
|
+
return CreateDestinationRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.CreateDestinationRequestFromJSON = CreateDestinationRequestFromJSON;
|
|
33
|
+
function CreateDestinationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'metadata': (0, CreateDestinationRequestMetadata_1.CreateDestinationRequestMetadataFromJSON)(json['metadata']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.CreateDestinationRequestFromJSONTyped = CreateDestinationRequestFromJSONTyped;
|
|
44
|
+
function CreateDestinationRequestToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value.name,
|
|
53
|
+
'type': value.type,
|
|
54
|
+
'metadata': (0, CreateDestinationRequestMetadata_1.CreateDestinationRequestMetadataToJSON)(value.metadata),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.CreateDestinationRequestToJSON = CreateDestinationRequestToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.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 CreateDestinationRequestMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateDestinationRequestMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Webhook URL
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateDestinationRequestMetadata
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Webhook headers to add
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof CreateDestinationRequestMetadata
|
|
28
|
+
*/
|
|
29
|
+
headers?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
} | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CreateDestinationRequestMetadata interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCreateDestinationRequestMetadata(value: object): boolean;
|
|
37
|
+
export declare function CreateDestinationRequestMetadataFromJSON(json: any): CreateDestinationRequestMetadata;
|
|
38
|
+
export declare function CreateDestinationRequestMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDestinationRequestMetadata;
|
|
39
|
+
export declare function CreateDestinationRequestMetadataToJSON(value?: CreateDestinationRequestMetadata | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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: 0.1.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.CreateDestinationRequestMetadataToJSON = exports.CreateDestinationRequestMetadataFromJSONTyped = exports.CreateDestinationRequestMetadataFromJSON = exports.instanceOfCreateDestinationRequestMetadata = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CreateDestinationRequestMetadata interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCreateDestinationRequestMetadata(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCreateDestinationRequestMetadata = instanceOfCreateDestinationRequestMetadata;
|
|
26
|
+
function CreateDestinationRequestMetadataFromJSON(json) {
|
|
27
|
+
return CreateDestinationRequestMetadataFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CreateDestinationRequestMetadataFromJSON = CreateDestinationRequestMetadataFromJSON;
|
|
30
|
+
function CreateDestinationRequestMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
36
|
+
'headers': !(0, runtime_1.exists)(json, 'headers') ? undefined : json['headers'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CreateDestinationRequestMetadataFromJSONTyped = CreateDestinationRequestMetadataFromJSONTyped;
|
|
40
|
+
function CreateDestinationRequestMetadataToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'url': value.url,
|
|
49
|
+
'headers': value.headers,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.CreateDestinationRequestMetadataToJSON = CreateDestinationRequestMetadataToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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: 0.1.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 CreateGroupRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateGroupRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the user group that has access to this installation.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateGroupRequest
|
|
22
|
+
*/
|
|
23
|
+
groupRef: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the user group that has access to this installation.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateGroupRequest
|
|
28
|
+
*/
|
|
29
|
+
groupName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateGroupRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateGroupRequest(value: object): boolean;
|
|
35
|
+
export declare function CreateGroupRequestFromJSON(json: any): CreateGroupRequest;
|
|
36
|
+
export declare function CreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGroupRequest;
|
|
37
|
+
export declare function CreateGroupRequestToJSON(value?: CreateGroupRequest | null): any;
|