@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
|
@@ -0,0 +1,83 @@
|
|
|
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.InviteToJSON = exports.InviteFromJSONTyped = exports.InviteFromJSON = exports.instanceOfInvite = exports.InviteStatusEnum = exports.InviteParentTypeEnum = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.InviteParentTypeEnum = {
|
|
22
|
+
Org: 'org'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.InviteStatusEnum = {
|
|
28
|
+
Pending: 'pending',
|
|
29
|
+
Accepted: 'accepted',
|
|
30
|
+
Revoked: 'revoked',
|
|
31
|
+
Expired: 'expired'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the Invite interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfInvite(value) {
|
|
37
|
+
let isInstance = true;
|
|
38
|
+
isInstance = isInstance && "id" in value;
|
|
39
|
+
isInstance = isInstance && "invitedEmail" in value;
|
|
40
|
+
isInstance = isInstance && "parentType" in value;
|
|
41
|
+
isInstance = isInstance && "parentId" in value;
|
|
42
|
+
isInstance = isInstance && "status" in value;
|
|
43
|
+
isInstance = isInstance && "createTime" in value;
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
exports.instanceOfInvite = instanceOfInvite;
|
|
47
|
+
function InviteFromJSON(json) {
|
|
48
|
+
return InviteFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
exports.InviteFromJSON = InviteFromJSON;
|
|
51
|
+
function InviteFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'invitedEmail': json['invitedEmail'],
|
|
58
|
+
'parentType': json['parentType'],
|
|
59
|
+
'parentId': json['parentId'],
|
|
60
|
+
'status': json['status'],
|
|
61
|
+
'createTime': (new Date(json['createTime'])),
|
|
62
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.InviteFromJSONTyped = InviteFromJSONTyped;
|
|
66
|
+
function InviteToJSON(value) {
|
|
67
|
+
if (value === undefined) {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
if (value === null) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value.id,
|
|
75
|
+
'invitedEmail': value.invitedEmail,
|
|
76
|
+
'parentType': value.parentType,
|
|
77
|
+
'parentId': value.parentId,
|
|
78
|
+
'status': value.status,
|
|
79
|
+
'createTime': (value.createTime.toISOString()),
|
|
80
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.InviteToJSON = InviteToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LogMessage } from './LogMessage';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -22,11 +23,11 @@ export interface Log {
|
|
|
22
23
|
*/
|
|
23
24
|
timestamp: string;
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
26
|
+
*
|
|
27
|
+
* @type {LogMessage}
|
|
27
28
|
* @memberof Log
|
|
28
29
|
*/
|
|
29
|
-
message:
|
|
30
|
+
message: LogMessage;
|
|
30
31
|
/**
|
|
31
32
|
* The severity of the log.
|
|
32
33
|
* @type {string}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.LogToJSON = exports.LogFromJSONTyped = exports.LogFromJSON = exports.instanceOfLog = void 0;
|
|
17
|
+
const LogMessage_1 = require("./LogMessage");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the Log interface.
|
|
19
20
|
*/
|
|
@@ -35,7 +36,7 @@ function LogFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
}
|
|
36
37
|
return {
|
|
37
38
|
'timestamp': json['timestamp'],
|
|
38
|
-
'message': json['message'],
|
|
39
|
+
'message': (0, LogMessage_1.LogMessageFromJSON)(json['message']),
|
|
39
40
|
'severity': json['severity'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
@@ -49,7 +50,7 @@ function LogToJSON(value) {
|
|
|
49
50
|
}
|
|
50
51
|
return {
|
|
51
52
|
'timestamp': value.timestamp,
|
|
52
|
-
'message': value.message,
|
|
53
|
+
'message': (0, LogMessage_1.LogMessageToJSON)(value.message),
|
|
53
54
|
'severity': value.severity,
|
|
54
55
|
};
|
|
55
56
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* The log message object.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LogMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface LogMessage {
|
|
18
|
+
/**
|
|
19
|
+
* The use-readable message.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LogMessage
|
|
22
|
+
*/
|
|
23
|
+
msg: string;
|
|
24
|
+
/**
|
|
25
|
+
* The operation event ID.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LogMessage
|
|
28
|
+
*/
|
|
29
|
+
operationEventId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The operation ID.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LogMessage
|
|
34
|
+
*/
|
|
35
|
+
operationId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the LogMessage interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfLogMessage(value: object): boolean;
|
|
41
|
+
export declare function LogMessageFromJSON(json: any): LogMessage;
|
|
42
|
+
export declare function LogMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogMessage;
|
|
43
|
+
export declare function LogMessageToJSON(value?: LogMessage | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.LogMessageToJSON = exports.LogMessageFromJSONTyped = exports.LogMessageFromJSON = exports.instanceOfLogMessage = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the LogMessage interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfLogMessage(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "msg" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfLogMessage = instanceOfLogMessage;
|
|
27
|
+
function LogMessageFromJSON(json) {
|
|
28
|
+
return LogMessageFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.LogMessageFromJSON = LogMessageFromJSON;
|
|
31
|
+
function LogMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'msg': json['msg'],
|
|
37
|
+
'operationEventId': !(0, runtime_1.exists)(json, 'operation_event_id') ? undefined : json['operation_event_id'],
|
|
38
|
+
'operationId': !(0, runtime_1.exists)(json, 'operation_id') ? undefined : json['operation_id'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.LogMessageFromJSONTyped = LogMessageFromJSONTyped;
|
|
42
|
+
function LogMessageToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'msg': value.msg,
|
|
51
|
+
'operation_event_id': value.operationEventId,
|
|
52
|
+
'operation_id': value.operationId,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.LogMessageToJSON = LogMessageToJSON;
|
|
@@ -16,6 +16,12 @@ import type { TokenMetadataFields } from './TokenMetadataFields';
|
|
|
16
16
|
* @interface OauthOpts
|
|
17
17
|
*/
|
|
18
18
|
export interface OauthOpts {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof OauthOpts
|
|
23
|
+
*/
|
|
24
|
+
grantType: OauthOptsGrantTypeEnum;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -47,6 +53,15 @@ export interface OauthOpts {
|
|
|
47
53
|
*/
|
|
48
54
|
tokenMetadataFields: TokenMetadataFields;
|
|
49
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const OauthOptsGrantTypeEnum: {
|
|
60
|
+
readonly AuthorizationCode: "authorizationCode";
|
|
61
|
+
readonly ClientCredentials: "clientCredentials";
|
|
62
|
+
readonly Pkce: "PKCE";
|
|
63
|
+
};
|
|
64
|
+
export type OauthOptsGrantTypeEnum = typeof OauthOptsGrantTypeEnum[keyof typeof OauthOptsGrantTypeEnum];
|
|
50
65
|
/**
|
|
51
66
|
* Check if a given object implements the OauthOpts interface.
|
|
52
67
|
*/
|
|
@@ -13,13 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OauthOptsToJSON = exports.OauthOptsFromJSONTyped = exports.OauthOptsFromJSON = exports.instanceOfOauthOpts = void 0;
|
|
16
|
+
exports.OauthOptsToJSON = exports.OauthOptsFromJSONTyped = exports.OauthOptsFromJSON = exports.instanceOfOauthOpts = exports.OauthOptsGrantTypeEnum = void 0;
|
|
17
17
|
const TokenMetadataFields_1 = require("./TokenMetadataFields");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.OauthOptsGrantTypeEnum = {
|
|
22
|
+
AuthorizationCode: 'authorizationCode',
|
|
23
|
+
ClientCredentials: 'clientCredentials',
|
|
24
|
+
Pkce: 'PKCE'
|
|
25
|
+
};
|
|
18
26
|
/**
|
|
19
27
|
* Check if a given object implements the OauthOpts interface.
|
|
20
28
|
*/
|
|
21
29
|
function instanceOfOauthOpts(value) {
|
|
22
30
|
let isInstance = true;
|
|
31
|
+
isInstance = isInstance && "grantType" in value;
|
|
23
32
|
isInstance = isInstance && "authURL" in value;
|
|
24
33
|
isInstance = isInstance && "tokenURL" in value;
|
|
25
34
|
isInstance = isInstance && "explicitScopesRequired" in value;
|
|
@@ -37,6 +46,7 @@ function OauthOptsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
46
|
return json;
|
|
38
47
|
}
|
|
39
48
|
return {
|
|
49
|
+
'grantType': json['grantType'],
|
|
40
50
|
'authURL': json['authURL'],
|
|
41
51
|
'tokenURL': json['tokenURL'],
|
|
42
52
|
'explicitScopesRequired': json['explicitScopesRequired'],
|
|
@@ -53,6 +63,7 @@ function OauthOptsToJSON(value) {
|
|
|
53
63
|
return null;
|
|
54
64
|
}
|
|
55
65
|
return {
|
|
66
|
+
'grantType': value.grantType,
|
|
56
67
|
'authURL': value.authURL,
|
|
57
68
|
'tokenURL': value.tokenURL,
|
|
58
69
|
'explicitScopesRequired': value.explicitScopesRequired,
|
|
@@ -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: 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 Org
|
|
16
|
+
*/
|
|
17
|
+
export interface Org {
|
|
18
|
+
/**
|
|
19
|
+
* The organization ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Org
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The organization label.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Org
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the Everyone team for the org.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Org
|
|
34
|
+
*/
|
|
35
|
+
defaultTeamId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The time the organization was created.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof Org
|
|
40
|
+
*/
|
|
41
|
+
createTime: Date;
|
|
42
|
+
/**
|
|
43
|
+
* The time the organization was updated.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof Org
|
|
46
|
+
*/
|
|
47
|
+
updateTime?: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the Org interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfOrg(value: object): boolean;
|
|
53
|
+
export declare function OrgFromJSON(json: any): Org;
|
|
54
|
+
export declare function OrgFromJSONTyped(json: any, ignoreDiscriminator: boolean): Org;
|
|
55
|
+
export declare function OrgToJSON(value?: Org | 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: 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.OrgToJSON = exports.OrgFromJSONTyped = exports.OrgFromJSON = exports.instanceOfOrg = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Org interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfOrg(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "label" in value;
|
|
25
|
+
isInstance = isInstance && "defaultTeamId" in value;
|
|
26
|
+
isInstance = isInstance && "createTime" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfOrg = instanceOfOrg;
|
|
30
|
+
function OrgFromJSON(json) {
|
|
31
|
+
return OrgFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.OrgFromJSON = OrgFromJSON;
|
|
34
|
+
function OrgFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'label': json['label'],
|
|
41
|
+
'defaultTeamId': json['defaultTeamId'],
|
|
42
|
+
'createTime': (new Date(json['createTime'])),
|
|
43
|
+
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.OrgFromJSONTyped = OrgFromJSONTyped;
|
|
47
|
+
function OrgToJSON(value) {
|
|
48
|
+
if (value === undefined) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value.id,
|
|
56
|
+
'label': value.label,
|
|
57
|
+
'defaultTeamId': value.defaultTeamId,
|
|
58
|
+
'createTime': (value.createTime.toISOString()),
|
|
59
|
+
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.OrgToJSON = OrgToJSON;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* A Problem Details object (RFC 9457).
|
|
14
|
+
*
|
|
15
|
+
* Additional properties specific to the problem type may be present.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface Problem
|
|
18
|
+
*/
|
|
19
|
+
export interface Problem {
|
|
20
|
+
/**
|
|
21
|
+
* An absolute URI that identifies the problem type
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof Problem
|
|
24
|
+
*/
|
|
25
|
+
type?: string;
|
|
26
|
+
/**
|
|
27
|
+
* An absolute URI that, when dereferenced, provides human-readable documentation for the problem type (e.g. using HTML).
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof Problem
|
|
30
|
+
*/
|
|
31
|
+
href?: string;
|
|
32
|
+
/**
|
|
33
|
+
* A short summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized).
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Problem
|
|
36
|
+
*/
|
|
37
|
+
title?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The HTTP status code generated by the origin server for this occurrence of the problem.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof Problem
|
|
42
|
+
*/
|
|
43
|
+
status?: number;
|
|
44
|
+
/**
|
|
45
|
+
* A human-readable explanation specific to this occurrence of the problem
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Problem
|
|
48
|
+
*/
|
|
49
|
+
detail?: string;
|
|
50
|
+
/**
|
|
51
|
+
* An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Problem
|
|
54
|
+
*/
|
|
55
|
+
instance?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the Problem interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfProblem(value: object): boolean;
|
|
61
|
+
export declare function ProblemFromJSON(json: any): Problem;
|
|
62
|
+
export declare function ProblemFromJSONTyped(json: any, ignoreDiscriminator: boolean): Problem;
|
|
63
|
+
export declare function ProblemToJSON(value?: Problem | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.ProblemToJSON = exports.ProblemFromJSONTyped = exports.ProblemFromJSON = exports.instanceOfProblem = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Problem interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfProblem(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfProblem = instanceOfProblem;
|
|
26
|
+
function ProblemFromJSON(json) {
|
|
27
|
+
return ProblemFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ProblemFromJSON = ProblemFromJSON;
|
|
30
|
+
function ProblemFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
36
|
+
'href': !(0, runtime_1.exists)(json, 'href') ? undefined : json['href'],
|
|
37
|
+
'title': !(0, runtime_1.exists)(json, 'title') ? undefined : json['title'],
|
|
38
|
+
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
|
|
39
|
+
'detail': !(0, runtime_1.exists)(json, 'detail') ? undefined : json['detail'],
|
|
40
|
+
'instance': !(0, runtime_1.exists)(json, 'instance') ? undefined : json['instance'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.ProblemFromJSONTyped = ProblemFromJSONTyped;
|
|
44
|
+
function ProblemToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'type': value.type,
|
|
53
|
+
'href': value.href,
|
|
54
|
+
'title': value.title,
|
|
55
|
+
'status': value.status,
|
|
56
|
+
'detail': value.detail,
|
|
57
|
+
'instance': value.instance,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.ProblemToJSON = ProblemToJSON;
|
|
@@ -33,6 +33,12 @@ export interface Project {
|
|
|
33
33
|
* @memberof Project
|
|
34
34
|
*/
|
|
35
35
|
appName: string;
|
|
36
|
+
/**
|
|
37
|
+
* The organization ID that this project belongs to.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Project
|
|
40
|
+
*/
|
|
41
|
+
orgId?: string;
|
|
36
42
|
/**
|
|
37
43
|
* The time the project was created.
|
|
38
44
|
* @type {Date}
|
|
@@ -39,6 +39,7 @@ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'id': json['id'],
|
|
40
40
|
'name': json['name'],
|
|
41
41
|
'appName': json['appName'],
|
|
42
|
+
'orgId': !(0, runtime_1.exists)(json, 'orgId') ? undefined : json['orgId'],
|
|
42
43
|
'createTime': (new Date(json['createTime'])),
|
|
43
44
|
'updateTime': !(0, runtime_1.exists)(json, 'updateTime') ? undefined : (new Date(json['updateTime'])),
|
|
44
45
|
};
|
|
@@ -55,6 +56,7 @@ function ProjectToJSON(value) {
|
|
|
55
56
|
'id': value.id,
|
|
56
57
|
'name': value.name,
|
|
57
58
|
'appName': value.appName,
|
|
59
|
+
'orgId': value.orgId,
|
|
58
60
|
'createTime': (value.createTime.toISOString()),
|
|
59
61
|
'updateTime': value.updateTime === undefined ? undefined : (value.updateTime.toISOString()),
|
|
60
62
|
};
|
|
@@ -50,6 +50,18 @@ export interface ProviderInfo {
|
|
|
50
50
|
providerOpts: {
|
|
51
51
|
[key: string]: string;
|
|
52
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* The display name of the provider, if omitted, defaults to provider name.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ProviderInfo
|
|
57
|
+
*/
|
|
58
|
+
displayName?: string;
|
|
59
|
+
/**
|
|
60
|
+
* If true, we require additional information after auth to start making requests.
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof ProviderInfo
|
|
63
|
+
*/
|
|
64
|
+
postAuthInfoNeeded?: boolean;
|
|
53
65
|
}
|
|
54
66
|
/**
|
|
55
67
|
* Check if a given object implements the ProviderInfo interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProviderInfoToJSON = exports.ProviderInfoFromJSONTyped = exports.ProviderInfoFromJSON = exports.instanceOfProviderInfo = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
17
18
|
const AuthType_1 = require("./AuthType");
|
|
18
19
|
const OauthOpts_1 = require("./OauthOpts");
|
|
19
20
|
const Support_1 = require("./Support");
|
|
@@ -44,6 +45,8 @@ function ProviderInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
'oauthOpts': (0, OauthOpts_1.OauthOptsFromJSON)(json['oauthOpts']),
|
|
45
46
|
'support': (0, Support_1.SupportFromJSON)(json['support']),
|
|
46
47
|
'providerOpts': json['providerOpts'],
|
|
48
|
+
'displayName': !(0, runtime_1.exists)(json, 'displayName') ? undefined : json['displayName'],
|
|
49
|
+
'postAuthInfoNeeded': !(0, runtime_1.exists)(json, 'postAuthInfoNeeded') ? undefined : json['postAuthInfoNeeded'],
|
|
47
50
|
};
|
|
48
51
|
}
|
|
49
52
|
exports.ProviderInfoFromJSONTyped = ProviderInfoFromJSONTyped;
|
|
@@ -60,6 +63,8 @@ function ProviderInfoToJSON(value) {
|
|
|
60
63
|
'oauthOpts': (0, OauthOpts_1.OauthOptsToJSON)(value.oauthOpts),
|
|
61
64
|
'support': (0, Support_1.SupportToJSON)(value.support),
|
|
62
65
|
'providerOpts': value.providerOpts,
|
|
66
|
+
'displayName': value.displayName,
|
|
67
|
+
'postAuthInfoNeeded': value.postAuthInfoNeeded,
|
|
63
68
|
};
|
|
64
69
|
}
|
|
65
70
|
exports.ProviderInfoToJSON = ProviderInfoToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { BulkWriteSupport } from './BulkWriteSupport';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,10 +18,10 @@
|
|
|
17
18
|
export interface Support {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {BulkWriteSupport}
|
|
21
22
|
* @memberof Support
|
|
22
23
|
*/
|
|
23
|
-
bulkWrite:
|
|
24
|
+
bulkWrite: BulkWriteSupport;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @type {boolean}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SupportToJSON = exports.SupportFromJSONTyped = exports.SupportFromJSON = exports.instanceOfSupport = void 0;
|
|
17
|
+
const BulkWriteSupport_1 = require("./BulkWriteSupport");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the Support interface.
|
|
19
20
|
*/
|
|
@@ -36,7 +37,7 @@ function SupportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
return json;
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
|
-
'bulkWrite': json['bulkWrite'],
|
|
40
|
+
'bulkWrite': (0, BulkWriteSupport_1.BulkWriteSupportFromJSON)(json['bulkWrite']),
|
|
40
41
|
'proxy': json['proxy'],
|
|
41
42
|
'read': json['read'],
|
|
42
43
|
'subscribe': json['subscribe'],
|
|
@@ -52,7 +53,7 @@ function SupportToJSON(value) {
|
|
|
52
53
|
return null;
|
|
53
54
|
}
|
|
54
55
|
return {
|
|
55
|
-
'bulkWrite': value.bulkWrite,
|
|
56
|
+
'bulkWrite': (0, BulkWriteSupport_1.BulkWriteSupportToJSON)(value.bulkWrite),
|
|
56
57
|
'proxy': value.proxy,
|
|
57
58
|
'read': value.read,
|
|
58
59
|
'subscribe': value.subscribe,
|