@amp-labs/react 1.4.3 → 1.5.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/OperationEventApi.d.ts +28 -0
- package/build/generated-sources/api/src/apis/OperationEventApi.js +30 -0
- package/build/generated-sources/api/src/apis/OrgApi.d.ts +226 -0
- package/build/generated-sources/api/src/apis/OrgApi.js +253 -0
- package/build/generated-sources/api/src/apis/ProjectApi.d.ts +4 -4
- package/build/generated-sources/api/src/apis/ProjectApi.js +3 -2
- package/build/generated-sources/api/src/apis/UserApi.d.ts +70 -0
- package/build/generated-sources/api/src/apis/{AllowedDomainApi.js → UserApi.js} +23 -30
- package/build/generated-sources/api/src/apis/index.d.ts +2 -2
- package/build/generated-sources/api/src/apis/index.js +2 -2
- package/build/generated-sources/api/src/models/AcceptInviteRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/AcceptInviteRequest.js +50 -0
- package/build/generated-sources/api/src/models/ApiProblem.d.ts +130 -0
- package/build/generated-sources/api/src/models/ApiProblem.js +82 -0
- package/build/generated-sources/api/src/models/AuthType.d.ts +1 -0
- package/build/generated-sources/api/src/models/AuthType.js +2 -1
- package/build/generated-sources/api/src/models/BaseReadConfig.d.ts +4 -4
- package/build/generated-sources/api/src/models/BaseReadConfig.js +3 -3
- package/build/generated-sources/api/src/models/{BaseReadConfigStandardObject.d.ts → BaseReadConfigObject.d.ts} +12 -12
- package/build/generated-sources/api/src/models/{BaseReadConfigStandardObject.js → BaseReadConfigObject.js} +11 -11
- package/build/generated-sources/api/src/models/Builder.d.ts +73 -0
- package/build/generated-sources/api/src/models/Builder.js +68 -0
- package/build/generated-sources/api/src/models/BuilderInfo.d.ts +48 -0
- package/build/generated-sources/api/src/models/BuilderInfo.js +59 -0
- package/build/generated-sources/api/src/models/BuilderInfoOrgRole.d.ts +58 -0
- package/build/generated-sources/api/src/models/BuilderInfoOrgRole.js +67 -0
- package/build/generated-sources/api/src/models/BuilderInfoProjectRolesValue.d.ts +58 -0
- package/build/generated-sources/api/src/models/BuilderInfoProjectRolesValue.js +67 -0
- package/build/generated-sources/api/src/models/BulkWriteSupport.d.ts +49 -0
- package/build/generated-sources/api/src/models/BulkWriteSupport.js +59 -0
- package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +1 -1
- package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +1 -1
- package/build/generated-sources/api/src/models/CreateOrgInviteRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/CreateOrgInviteRequest.js +50 -0
- package/build/generated-sources/api/src/models/CreateOrgRequest.d.ts +31 -0
- package/build/generated-sources/api/src/models/CreateOrgRequest.js +50 -0
- package/build/generated-sources/api/src/models/CreateProjectRequest.d.ts +6 -0
- package/build/generated-sources/api/src/models/CreateProjectRequest.js +3 -0
- package/build/generated-sources/api/src/models/Destination.d.ts +3 -3
- package/build/generated-sources/api/src/models/Destination.js +3 -3
- package/build/generated-sources/api/src/models/HydratedIntegrationRead.d.ts +1 -1
- package/build/generated-sources/api/src/models/HydratedIntegrationRead.js +2 -2
- package/build/generated-sources/api/src/models/InputValidationIssue.d.ts +89 -0
- package/build/generated-sources/api/src/models/InputValidationIssue.js +75 -0
- package/build/generated-sources/api/src/models/InputValidationProblem.d.ts +68 -0
- package/build/generated-sources/api/src/models/InputValidationProblem.js +63 -0
- package/build/generated-sources/api/src/models/IntegrationRead.d.ts +1 -1
- package/build/generated-sources/api/src/models/IntegrationRead.js +2 -2
- package/build/generated-sources/api/src/models/Invite.d.ts +84 -0
- package/build/generated-sources/api/src/models/Invite.js +83 -0
- package/build/generated-sources/api/src/models/Log.d.ts +4 -3
- package/build/generated-sources/api/src/models/Log.js +3 -2
- package/build/generated-sources/api/src/models/LogMessage.d.ts +43 -0
- package/build/generated-sources/api/src/models/LogMessage.js +55 -0
- package/build/generated-sources/api/src/models/OauthOpts.d.ts +15 -0
- package/build/generated-sources/api/src/models/OauthOpts.js +12 -1
- package/build/generated-sources/api/src/models/Org.d.ts +55 -0
- package/build/generated-sources/api/src/models/Org.js +62 -0
- package/build/generated-sources/api/src/models/Problem.d.ts +63 -0
- package/build/generated-sources/api/src/models/Problem.js +60 -0
- package/build/generated-sources/api/src/models/Project.d.ts +6 -0
- package/build/generated-sources/api/src/models/Project.js +2 -0
- package/build/generated-sources/api/src/models/ProviderInfo.d.ts +12 -0
- package/build/generated-sources/api/src/models/ProviderInfo.js +5 -0
- package/build/generated-sources/api/src/models/Support.d.ts +3 -2
- package/build/generated-sources/api/src/models/Support.js +3 -2
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.d.ts +3 -3
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestination.js +3 -3
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.d.ts +39 -0
- package/build/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.js +52 -0
- package/build/generated-sources/api/src/models/UpdateOrgRequest.d.ts +38 -0
- package/build/generated-sources/api/src/models/UpdateOrgRequest.js +54 -0
- package/build/generated-sources/api/src/models/UpdateOrgRequestOrg.d.ts +31 -0
- package/build/generated-sources/api/src/models/UpdateOrgRequestOrg.js +50 -0
- package/build/generated-sources/api/src/models/index.d.ts +19 -2
- package/build/generated-sources/api/src/models/index.js +19 -2
- package/build/src/components/Configure/actions/mutateAndSetState/updateInstallationAndSetState.js +1 -1
- package/build/src/components/Configure/actions/read/onSaveReadCreateInstallation.js +3 -3
- package/build/src/components/Configure/actions/read/onSaveReadUpdateInstallation.js +1 -1
- package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +2 -2
- package/build/src/components/Configure/content/UpdateInstallation.js +1 -1
- package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +2 -2
- package/build/src/components/Configure/state/utils.js +3 -3
- package/build/src/components/Configure/utils.d.ts +1 -1
- package/build/src/components/Configure/utils.js +7 -7
- package/build/src/services/ApiService.d.ts +1 -3
- package/build/src/services/ApiService.js +0 -2
- package/build/src/services/version.d.ts +1 -1
- package/build/src/services/version.js +1 -1
- package/package.json +1 -1
- package/build/generated-sources/api/src/apis/AllowedDomainApi.d.ts +0 -79
- package/build/generated-sources/api/src/apis/ProjectMembershipApi.d.ts +0 -126
- package/build/generated-sources/api/src/apis/ProjectMembershipApi.js +0 -154
- package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.d.ts +0 -37
- package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.js +0 -53
|
@@ -36,66 +36,59 @@ 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.UserApi = void 0;
|
|
40
40
|
const runtime = __importStar(require("../runtime"));
|
|
41
|
+
const models_1 = require("../models");
|
|
41
42
|
/**
|
|
42
43
|
*
|
|
43
44
|
*/
|
|
44
|
-
class
|
|
45
|
+
class UserApi extends runtime.BaseAPI {
|
|
45
46
|
/**
|
|
46
|
-
*
|
|
47
|
-
* List allowed domains for project
|
|
47
|
+
* Accept an invite
|
|
48
48
|
*/
|
|
49
|
-
async
|
|
50
|
-
if (requestParameters.
|
|
51
|
-
throw new runtime.RequiredError('
|
|
49
|
+
async acceptInviteRaw(requestParameters, initOverrides) {
|
|
50
|
+
if (requestParameters.acceptInviteRequest === null || requestParameters.acceptInviteRequest === undefined) {
|
|
51
|
+
throw new runtime.RequiredError('acceptInviteRequest', 'Required parameter requestParameters.acceptInviteRequest was null or undefined when calling acceptInvite.');
|
|
52
52
|
}
|
|
53
53
|
const queryParameters = {};
|
|
54
54
|
const headerParameters = {};
|
|
55
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
55
56
|
const response = await this.request({
|
|
56
|
-
path: `/
|
|
57
|
-
method: '
|
|
57
|
+
path: `/invites:accept`,
|
|
58
|
+
method: 'POST',
|
|
58
59
|
headers: headerParameters,
|
|
59
60
|
query: queryParameters,
|
|
61
|
+
body: (0, models_1.AcceptInviteRequestToJSON)(requestParameters.acceptInviteRequest),
|
|
60
62
|
}, initOverrides);
|
|
61
|
-
return new runtime.JSONApiResponse(response);
|
|
63
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BuilderInfoFromJSON)(jsonValue));
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
64
|
-
*
|
|
65
|
-
* List allowed domains for project
|
|
66
|
+
* Accept an invite
|
|
66
67
|
*/
|
|
67
|
-
async
|
|
68
|
-
const response = await this.
|
|
68
|
+
async acceptInvite(requestParameters, initOverrides) {
|
|
69
|
+
const response = await this.acceptInviteRaw(requestParameters, initOverrides);
|
|
69
70
|
return await response.value();
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
|
-
*
|
|
73
|
-
* List projects allowed for domain
|
|
73
|
+
* Get information about the current user
|
|
74
74
|
*/
|
|
75
|
-
async
|
|
76
|
-
if (requestParameters.domain === null || requestParameters.domain === undefined) {
|
|
77
|
-
throw new runtime.RequiredError('domain', 'Required parameter requestParameters.domain was null or undefined when calling listAllowedProjectsForDomain.');
|
|
78
|
-
}
|
|
75
|
+
async getMyInfoRaw(initOverrides) {
|
|
79
76
|
const queryParameters = {};
|
|
80
|
-
if (requestParameters.domain !== undefined) {
|
|
81
|
-
queryParameters['domain'] = requestParameters.domain;
|
|
82
|
-
}
|
|
83
77
|
const headerParameters = {};
|
|
84
78
|
const response = await this.request({
|
|
85
|
-
path: `/
|
|
79
|
+
path: `/my-info`,
|
|
86
80
|
method: 'GET',
|
|
87
81
|
headers: headerParameters,
|
|
88
82
|
query: queryParameters,
|
|
89
83
|
}, initOverrides);
|
|
90
|
-
return new runtime.JSONApiResponse(response);
|
|
84
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.BuilderInfoFromJSON)(jsonValue));
|
|
91
85
|
}
|
|
92
86
|
/**
|
|
93
|
-
*
|
|
94
|
-
* List projects allowed for domain
|
|
87
|
+
* Get information about the current user
|
|
95
88
|
*/
|
|
96
|
-
async
|
|
97
|
-
const response = await this.
|
|
89
|
+
async getMyInfo(initOverrides) {
|
|
90
|
+
const response = await this.getMyInfoRaw(initOverrides);
|
|
98
91
|
return await response.value();
|
|
99
92
|
}
|
|
100
93
|
}
|
|
101
|
-
exports.
|
|
94
|
+
exports.UserApi = UserApi;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './APIKeyApi';
|
|
2
|
-
export * from './AllowedDomainApi';
|
|
3
2
|
export * from './ConnectionApi';
|
|
4
3
|
export * from './ConsumerApi';
|
|
5
4
|
export * from './DestinationApi';
|
|
@@ -9,9 +8,10 @@ export * from './IntegrationApi';
|
|
|
9
8
|
export * from './OAuthApi';
|
|
10
9
|
export * from './OperationApi';
|
|
11
10
|
export * from './OperationEventApi';
|
|
11
|
+
export * from './OrgApi';
|
|
12
12
|
export * from './ProjectApi';
|
|
13
|
-
export * from './ProjectMembershipApi';
|
|
14
13
|
export * from './ProviderApi';
|
|
15
14
|
export * from './ProviderAppApi';
|
|
16
15
|
export * from './RevisionApi';
|
|
17
16
|
export * from './UploadURLApi';
|
|
17
|
+
export * from './UserApi';
|
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./APIKeyApi"), exports);
|
|
20
|
-
__exportStar(require("./AllowedDomainApi"), exports);
|
|
21
20
|
__exportStar(require("./ConnectionApi"), exports);
|
|
22
21
|
__exportStar(require("./ConsumerApi"), exports);
|
|
23
22
|
__exportStar(require("./DestinationApi"), exports);
|
|
@@ -27,9 +26,10 @@ __exportStar(require("./IntegrationApi"), exports);
|
|
|
27
26
|
__exportStar(require("./OAuthApi"), exports);
|
|
28
27
|
__exportStar(require("./OperationApi"), exports);
|
|
29
28
|
__exportStar(require("./OperationEventApi"), exports);
|
|
29
|
+
__exportStar(require("./OrgApi"), exports);
|
|
30
30
|
__exportStar(require("./ProjectApi"), exports);
|
|
31
|
-
__exportStar(require("./ProjectMembershipApi"), exports);
|
|
32
31
|
__exportStar(require("./ProviderApi"), exports);
|
|
33
32
|
__exportStar(require("./ProviderAppApi"), exports);
|
|
34
33
|
__exportStar(require("./RevisionApi"), exports);
|
|
35
34
|
__exportStar(require("./UploadURLApi"), exports);
|
|
35
|
+
__exportStar(require("./UserApi"), exports);
|
|
@@ -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 AcceptInviteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AcceptInviteRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The email address that the invite was sent to
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AcceptInviteRequest
|
|
22
|
+
*/
|
|
23
|
+
invitedEmail: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AcceptInviteRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAcceptInviteRequest(value: object): boolean;
|
|
29
|
+
export declare function AcceptInviteRequestFromJSON(json: any): AcceptInviteRequest;
|
|
30
|
+
export declare function AcceptInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptInviteRequest;
|
|
31
|
+
export declare function AcceptInviteRequestToJSON(value?: AcceptInviteRequest | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AcceptInviteRequestToJSON = exports.AcceptInviteRequestFromJSONTyped = exports.AcceptInviteRequestFromJSON = exports.instanceOfAcceptInviteRequest = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the AcceptInviteRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfAcceptInviteRequest(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "invitedEmail" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfAcceptInviteRequest = instanceOfAcceptInviteRequest;
|
|
26
|
+
function AcceptInviteRequestFromJSON(json) {
|
|
27
|
+
return AcceptInviteRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.AcceptInviteRequestFromJSON = AcceptInviteRequestFromJSON;
|
|
30
|
+
function AcceptInviteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'invitedEmail': json['invitedEmail'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.AcceptInviteRequestFromJSONTyped = AcceptInviteRequestFromJSONTyped;
|
|
39
|
+
function AcceptInviteRequestToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'invitedEmail': value.invitedEmail,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.AcceptInviteRequestToJSON = AcceptInviteRequestToJSON;
|
|
@@ -0,0 +1,130 @@
|
|
|
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 ApiProblem
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiProblem {
|
|
18
|
+
/**
|
|
19
|
+
* The subsystem that generated the problem
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiProblem
|
|
22
|
+
*/
|
|
23
|
+
subsystem?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The time the problem occurred, formatted as RFC-3339
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof ApiProblem
|
|
28
|
+
*/
|
|
29
|
+
time?: Date;
|
|
30
|
+
/**
|
|
31
|
+
* A unique identifier for the request, useful for debugging
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiProblem
|
|
34
|
+
*/
|
|
35
|
+
requestId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* A list of problems that caused this problem. This can be used to represent multiple
|
|
38
|
+
* root causes. There is no guaranteed ordering of the causes.
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof ApiProblem
|
|
41
|
+
*/
|
|
42
|
+
causes?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* A brief description of how to resolve the problem
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiProblem
|
|
47
|
+
*/
|
|
48
|
+
remedy?: string;
|
|
49
|
+
/**
|
|
50
|
+
* An email address to contact for support
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ApiProblem
|
|
53
|
+
*/
|
|
54
|
+
supportEmail?: string;
|
|
55
|
+
/**
|
|
56
|
+
* A phone number to contact for support
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ApiProblem
|
|
59
|
+
*/
|
|
60
|
+
supportPhone?: string;
|
|
61
|
+
/**
|
|
62
|
+
* A URL to contact for support
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ApiProblem
|
|
65
|
+
*/
|
|
66
|
+
supportUrl?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the request can be retried
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof ApiProblem
|
|
71
|
+
*/
|
|
72
|
+
retryable?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* A timestamp after which the request can be retried, formatted as RFC-3339
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof ApiProblem
|
|
77
|
+
*/
|
|
78
|
+
retryAfter?: Date;
|
|
79
|
+
/**
|
|
80
|
+
* Additional context for the problem
|
|
81
|
+
* @type {{ [key: string]: any; }}
|
|
82
|
+
* @memberof ApiProblem
|
|
83
|
+
*/
|
|
84
|
+
context?: {
|
|
85
|
+
[key: string]: any;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* An absolute URI that identifies the problem type
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof ApiProblem
|
|
91
|
+
*/
|
|
92
|
+
type?: string;
|
|
93
|
+
/**
|
|
94
|
+
* An absolute URI that, when dereferenced, provides human-readable documentation for the problem type (e.g. using HTML).
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof ApiProblem
|
|
97
|
+
*/
|
|
98
|
+
href?: string;
|
|
99
|
+
/**
|
|
100
|
+
* A short summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized).
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof ApiProblem
|
|
103
|
+
*/
|
|
104
|
+
title?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The HTTP status code generated by the origin server for this occurrence of the problem.
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof ApiProblem
|
|
109
|
+
*/
|
|
110
|
+
status?: number;
|
|
111
|
+
/**
|
|
112
|
+
* A human-readable explanation specific to this occurrence of the problem
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof ApiProblem
|
|
115
|
+
*/
|
|
116
|
+
detail?: string;
|
|
117
|
+
/**
|
|
118
|
+
* An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof ApiProblem
|
|
121
|
+
*/
|
|
122
|
+
instance?: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Check if a given object implements the ApiProblem interface.
|
|
126
|
+
*/
|
|
127
|
+
export declare function instanceOfApiProblem(value: object): boolean;
|
|
128
|
+
export declare function ApiProblemFromJSON(json: any): ApiProblem;
|
|
129
|
+
export declare function ApiProblemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiProblem;
|
|
130
|
+
export declare function ApiProblemToJSON(value?: ApiProblem | null): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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.ApiProblemToJSON = exports.ApiProblemFromJSONTyped = exports.ApiProblemFromJSON = exports.instanceOfApiProblem = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ApiProblem interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfApiProblem(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfApiProblem = instanceOfApiProblem;
|
|
26
|
+
function ApiProblemFromJSON(json) {
|
|
27
|
+
return ApiProblemFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ApiProblemFromJSON = ApiProblemFromJSON;
|
|
30
|
+
function ApiProblemFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'subsystem': !(0, runtime_1.exists)(json, 'subsystem') ? undefined : json['subsystem'],
|
|
36
|
+
'time': !(0, runtime_1.exists)(json, 'time') ? undefined : (new Date(json['time'])),
|
|
37
|
+
'requestId': !(0, runtime_1.exists)(json, 'requestId') ? undefined : json['requestId'],
|
|
38
|
+
'causes': !(0, runtime_1.exists)(json, 'causes') ? undefined : json['causes'],
|
|
39
|
+
'remedy': !(0, runtime_1.exists)(json, 'remedy') ? undefined : json['remedy'],
|
|
40
|
+
'supportEmail': !(0, runtime_1.exists)(json, 'supportEmail') ? undefined : json['supportEmail'],
|
|
41
|
+
'supportPhone': !(0, runtime_1.exists)(json, 'supportPhone') ? undefined : json['supportPhone'],
|
|
42
|
+
'supportUrl': !(0, runtime_1.exists)(json, 'supportUrl') ? undefined : json['supportUrl'],
|
|
43
|
+
'retryable': !(0, runtime_1.exists)(json, 'retryable') ? undefined : json['retryable'],
|
|
44
|
+
'retryAfter': !(0, runtime_1.exists)(json, 'retryAfter') ? undefined : (new Date(json['retryAfter'])),
|
|
45
|
+
'context': !(0, runtime_1.exists)(json, 'context') ? undefined : json['context'],
|
|
46
|
+
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
47
|
+
'href': !(0, runtime_1.exists)(json, 'href') ? undefined : json['href'],
|
|
48
|
+
'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
|
|
49
|
+
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
50
|
+
'detail': !(0, runtime_1.exists)(json, 'detail') ? undefined : json['detail'],
|
|
51
|
+
'instance': !(0, runtime_1.exists)(json, 'instance') ? undefined : json['instance'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.ApiProblemFromJSONTyped = ApiProblemFromJSONTyped;
|
|
55
|
+
function ApiProblemToJSON(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (value === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'subsystem': value.subsystem,
|
|
64
|
+
'time': value.time === undefined ? undefined : (value.time.toISOString()),
|
|
65
|
+
'requestId': value.requestId,
|
|
66
|
+
'causes': value.causes,
|
|
67
|
+
'remedy': value.remedy,
|
|
68
|
+
'supportEmail': value.supportEmail,
|
|
69
|
+
'supportPhone': value.supportPhone,
|
|
70
|
+
'supportUrl': value.supportUrl,
|
|
71
|
+
'retryable': value.retryable,
|
|
72
|
+
'retryAfter': value.retryAfter === undefined ? undefined : (value.retryAfter.toISOString()),
|
|
73
|
+
'context': value.context,
|
|
74
|
+
'type': value.type,
|
|
75
|
+
'href': value.href,
|
|
76
|
+
'title': value.title,
|
|
77
|
+
'status': value.status,
|
|
78
|
+
'detail': value.detail,
|
|
79
|
+
'instance': value.instance,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
exports.ApiProblemToJSON = ApiProblemToJSON;
|
|
@@ -19,7 +19,8 @@ exports.AuthTypeToJSON = exports.AuthTypeFromJSONTyped = exports.AuthTypeFromJSO
|
|
|
19
19
|
* @export
|
|
20
20
|
*/
|
|
21
21
|
exports.AuthType = {
|
|
22
|
-
Oauth2: 'oauth2'
|
|
22
|
+
Oauth2: 'oauth2',
|
|
23
|
+
None: 'none'
|
|
23
24
|
};
|
|
24
25
|
function AuthTypeFromJSON(json) {
|
|
25
26
|
return AuthTypeFromJSONTyped(json, false);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { BaseReadConfigObject } from './BaseReadConfigObject';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,11 +18,11 @@ import type { BaseReadConfigStandardObject } from './BaseReadConfigStandardObjec
|
|
|
18
18
|
export interface BaseReadConfig {
|
|
19
19
|
/**
|
|
20
20
|
* This is a map of object names to their configuration.
|
|
21
|
-
* @type {{ [key: string]:
|
|
21
|
+
* @type {{ [key: string]: BaseReadConfigObject; }}
|
|
22
22
|
* @memberof BaseReadConfig
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
[key: string]:
|
|
24
|
+
objects?: {
|
|
25
|
+
[key: string]: BaseReadConfigObject;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BaseReadConfigToJSON = exports.BaseReadConfigFromJSONTyped = exports.BaseReadConfigFromJSON = exports.instanceOfBaseReadConfig = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
-
const
|
|
18
|
+
const BaseReadConfigObject_1 = require("./BaseReadConfigObject");
|
|
19
19
|
/**
|
|
20
20
|
* Check if a given object implements the BaseReadConfig interface.
|
|
21
21
|
*/
|
|
@@ -33,7 +33,7 @@ function BaseReadConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
-
'
|
|
36
|
+
'objects': !(0, runtime_1.exists)(json, 'objects') ? undefined : ((0, runtime_1.mapValues)(json['objects'], BaseReadConfigObject_1.BaseReadConfigObjectFromJSON)),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
exports.BaseReadConfigFromJSONTyped = BaseReadConfigFromJSONTyped;
|
|
@@ -45,7 +45,7 @@ function BaseReadConfigToJSON(value) {
|
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
'
|
|
48
|
+
'objects': value.objects === undefined ? undefined : ((0, runtime_1.mapValues)(value.objects, BaseReadConfigObject_1.BaseReadConfigObjectToJSON)),
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
exports.BaseReadConfigToJSON = BaseReadConfigToJSON;
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface BaseReadConfigObject
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface BaseReadConfigObject {
|
|
18
18
|
/**
|
|
19
19
|
* The name of the object to read from.
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof BaseReadConfigObject
|
|
22
22
|
*/
|
|
23
23
|
objectName?: string;
|
|
24
24
|
/**
|
|
25
25
|
* The schedule for reading the object, in cron syntax.
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof BaseReadConfigObject
|
|
28
28
|
*/
|
|
29
29
|
schedule?: string;
|
|
30
30
|
/**
|
|
31
31
|
* The name of the destination that the result should be sent to.
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof BaseReadConfigObject
|
|
34
34
|
*/
|
|
35
35
|
destination?: string;
|
|
36
36
|
/**
|
|
37
37
|
* This is a map of field names to booleans indicating whether they should be read.
|
|
38
38
|
* @type {{ [key: string]: boolean; }}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof BaseReadConfigObject
|
|
40
40
|
*/
|
|
41
41
|
selectedFields?: {
|
|
42
42
|
[key: string]: boolean;
|
|
@@ -44,16 +44,16 @@ export interface BaseReadConfigStandardObject {
|
|
|
44
44
|
/**
|
|
45
45
|
* This is a map of mapToNames to field names. (A mapTo name is the name the builder wants to map a field to when it lands in their destination.)
|
|
46
46
|
* @type {{ [key: string]: string; }}
|
|
47
|
-
* @memberof
|
|
47
|
+
* @memberof BaseReadConfigObject
|
|
48
48
|
*/
|
|
49
49
|
selectedFieldMappings?: {
|
|
50
50
|
[key: string]: string;
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* Check if a given object implements the
|
|
54
|
+
* Check if a given object implements the BaseReadConfigObject interface.
|
|
55
55
|
*/
|
|
56
|
-
export declare function
|
|
57
|
-
export declare function
|
|
58
|
-
export declare function
|
|
59
|
-
export declare function
|
|
56
|
+
export declare function instanceOfBaseReadConfigObject(value: object): boolean;
|
|
57
|
+
export declare function BaseReadConfigObjectFromJSON(json: any): BaseReadConfigObject;
|
|
58
|
+
export declare function BaseReadConfigObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseReadConfigObject;
|
|
59
|
+
export declare function BaseReadConfigObjectToJSON(value?: BaseReadConfigObject | null): any;
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.BaseReadConfigObjectToJSON = exports.BaseReadConfigObjectFromJSONTyped = exports.BaseReadConfigObjectFromJSON = exports.instanceOfBaseReadConfigObject = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
/**
|
|
19
|
-
* Check if a given object implements the
|
|
19
|
+
* Check if a given object implements the BaseReadConfigObject interface.
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
21
|
+
function instanceOfBaseReadConfigObject(value) {
|
|
22
22
|
let isInstance = true;
|
|
23
23
|
return isInstance;
|
|
24
24
|
}
|
|
25
|
-
exports.
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
exports.instanceOfBaseReadConfigObject = instanceOfBaseReadConfigObject;
|
|
26
|
+
function BaseReadConfigObjectFromJSON(json) {
|
|
27
|
+
return BaseReadConfigObjectFromJSONTyped(json, false);
|
|
28
28
|
}
|
|
29
|
-
exports.
|
|
30
|
-
function
|
|
29
|
+
exports.BaseReadConfigObjectFromJSON = BaseReadConfigObjectFromJSON;
|
|
30
|
+
function BaseReadConfigObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if ((json === undefined) || (json === null)) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
@@ -39,8 +39,8 @@ function BaseReadConfigStandardObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'selectedFieldMappings': !(0, runtime_1.exists)(json, 'selectedFieldMappings') ? undefined : json['selectedFieldMappings'],
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
function
|
|
42
|
+
exports.BaseReadConfigObjectFromJSONTyped = BaseReadConfigObjectFromJSONTyped;
|
|
43
|
+
function BaseReadConfigObjectToJSON(value) {
|
|
44
44
|
if (value === undefined) {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
@@ -55,4 +55,4 @@ function BaseReadConfigStandardObjectToJSON(value) {
|
|
|
55
55
|
'selectedFieldMappings': value.selectedFieldMappings,
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
exports.
|
|
58
|
+
exports.BaseReadConfigObjectToJSON = BaseReadConfigObjectToJSON;
|