@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,73 @@
|
|
|
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 Builder
|
|
16
|
+
*/
|
|
17
|
+
export interface Builder {
|
|
18
|
+
/**
|
|
19
|
+
* The builder ID.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Builder
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The identity provider
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Builder
|
|
28
|
+
*/
|
|
29
|
+
idpProvider: string;
|
|
30
|
+
/**
|
|
31
|
+
* ID used by the identity provider
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Builder
|
|
34
|
+
*/
|
|
35
|
+
idpRef: string;
|
|
36
|
+
/**
|
|
37
|
+
* The time that the builder joined Ampersand.
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof Builder
|
|
40
|
+
*/
|
|
41
|
+
createTime: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Builder
|
|
46
|
+
*/
|
|
47
|
+
firstName?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Builder
|
|
52
|
+
*/
|
|
53
|
+
lastName?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Builder
|
|
58
|
+
*/
|
|
59
|
+
fullName?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Builder
|
|
64
|
+
*/
|
|
65
|
+
primaryEmail?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the Builder interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfBuilder(value: object): boolean;
|
|
71
|
+
export declare function BuilderFromJSON(json: any): Builder;
|
|
72
|
+
export declare function BuilderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Builder;
|
|
73
|
+
export declare function BuilderToJSON(value?: Builder | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.BuilderToJSON = exports.BuilderFromJSONTyped = exports.BuilderFromJSON = exports.instanceOfBuilder = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Builder interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfBuilder(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "idpProvider" in value;
|
|
25
|
+
isInstance = isInstance && "idpRef" in value;
|
|
26
|
+
isInstance = isInstance && "createTime" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfBuilder = instanceOfBuilder;
|
|
30
|
+
function BuilderFromJSON(json) {
|
|
31
|
+
return BuilderFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.BuilderFromJSON = BuilderFromJSON;
|
|
34
|
+
function BuilderFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'idpProvider': json['idpProvider'],
|
|
41
|
+
'idpRef': json['idpRef'],
|
|
42
|
+
'createTime': (new Date(json['createTime'])),
|
|
43
|
+
'firstName': !(0, runtime_1.exists)(json, 'firstName') ? undefined : json['firstName'],
|
|
44
|
+
'lastName': !(0, runtime_1.exists)(json, 'lastName') ? undefined : json['lastName'],
|
|
45
|
+
'fullName': !(0, runtime_1.exists)(json, 'fullName') ? undefined : json['fullName'],
|
|
46
|
+
'primaryEmail': !(0, runtime_1.exists)(json, 'primaryEmail') ? undefined : json['primaryEmail'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.BuilderFromJSONTyped = BuilderFromJSONTyped;
|
|
50
|
+
function BuilderToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value.id,
|
|
59
|
+
'idpProvider': value.idpProvider,
|
|
60
|
+
'idpRef': value.idpRef,
|
|
61
|
+
'createTime': (value.createTime.toISOString()),
|
|
62
|
+
'firstName': value.firstName,
|
|
63
|
+
'lastName': value.lastName,
|
|
64
|
+
'fullName': value.fullName,
|
|
65
|
+
'primaryEmail': value.primaryEmail,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.BuilderToJSON = BuilderToJSON;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Builder } from './Builder';
|
|
13
|
+
import type { BuilderInfoOrgRole } from './BuilderInfoOrgRole';
|
|
14
|
+
import type { BuilderInfoProjectRolesValue } from './BuilderInfoProjectRolesValue';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface BuilderInfo
|
|
19
|
+
*/
|
|
20
|
+
export interface BuilderInfo {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Builder}
|
|
24
|
+
* @memberof BuilderInfo
|
|
25
|
+
*/
|
|
26
|
+
builder: Builder;
|
|
27
|
+
/**
|
|
28
|
+
* A map of project IDs to project roles for the builder.
|
|
29
|
+
* @type {{ [key: string]: BuilderInfoProjectRolesValue; }}
|
|
30
|
+
* @memberof BuilderInfo
|
|
31
|
+
*/
|
|
32
|
+
projectRoles: {
|
|
33
|
+
[key: string]: BuilderInfoProjectRolesValue;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {BuilderInfoOrgRole}
|
|
38
|
+
* @memberof BuilderInfo
|
|
39
|
+
*/
|
|
40
|
+
orgRole?: BuilderInfoOrgRole;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BuilderInfo interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfBuilderInfo(value: object): boolean;
|
|
46
|
+
export declare function BuilderInfoFromJSON(json: any): BuilderInfo;
|
|
47
|
+
export declare function BuilderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuilderInfo;
|
|
48
|
+
export declare function BuilderInfoToJSON(value?: BuilderInfo | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BuilderInfoToJSON = exports.BuilderInfoFromJSONTyped = exports.BuilderInfoFromJSON = exports.instanceOfBuilderInfo = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const Builder_1 = require("./Builder");
|
|
19
|
+
const BuilderInfoOrgRole_1 = require("./BuilderInfoOrgRole");
|
|
20
|
+
const BuilderInfoProjectRolesValue_1 = require("./BuilderInfoProjectRolesValue");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BuilderInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBuilderInfo(value) {
|
|
25
|
+
let isInstance = true;
|
|
26
|
+
isInstance = isInstance && "builder" in value;
|
|
27
|
+
isInstance = isInstance && "projectRoles" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfBuilderInfo = instanceOfBuilderInfo;
|
|
31
|
+
function BuilderInfoFromJSON(json) {
|
|
32
|
+
return BuilderInfoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.BuilderInfoFromJSON = BuilderInfoFromJSON;
|
|
35
|
+
function BuilderInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'builder': (0, Builder_1.BuilderFromJSON)(json['builder']),
|
|
41
|
+
'projectRoles': ((0, runtime_1.mapValues)(json['projectRoles'], BuilderInfoProjectRolesValue_1.BuilderInfoProjectRolesValueFromJSON)),
|
|
42
|
+
'orgRole': !(0, runtime_1.exists)(json, 'orgRole') ? undefined : (0, BuilderInfoOrgRole_1.BuilderInfoOrgRoleFromJSON)(json['orgRole']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.BuilderInfoFromJSONTyped = BuilderInfoFromJSONTyped;
|
|
46
|
+
function BuilderInfoToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'builder': (0, Builder_1.BuilderToJSON)(value.builder),
|
|
55
|
+
'projectRoles': ((0, runtime_1.mapValues)(value.projectRoles, BuilderInfoProjectRolesValue_1.BuilderInfoProjectRolesValueToJSON)),
|
|
56
|
+
'orgRole': (0, BuilderInfoOrgRole_1.BuilderInfoOrgRoleToJSON)(value.orgRole),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.BuilderInfoToJSON = BuilderInfoToJSON;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Org } from './Org';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BuilderInfoOrgRole
|
|
17
|
+
*/
|
|
18
|
+
export interface BuilderInfoOrgRole {
|
|
19
|
+
/**
|
|
20
|
+
* The role of the builder in the org.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BuilderInfoOrgRole
|
|
23
|
+
*/
|
|
24
|
+
role: string;
|
|
25
|
+
/**
|
|
26
|
+
* The type of the principal.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BuilderInfoOrgRole
|
|
29
|
+
*/
|
|
30
|
+
principalType: BuilderInfoOrgRolePrincipalTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the team or builder.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BuilderInfoOrgRole
|
|
35
|
+
*/
|
|
36
|
+
principalId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Org}
|
|
40
|
+
* @memberof BuilderInfoOrgRole
|
|
41
|
+
*/
|
|
42
|
+
org: Org;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const BuilderInfoOrgRolePrincipalTypeEnum: {
|
|
48
|
+
readonly Team: "team";
|
|
49
|
+
readonly Builder: "builder";
|
|
50
|
+
};
|
|
51
|
+
export type BuilderInfoOrgRolePrincipalTypeEnum = typeof BuilderInfoOrgRolePrincipalTypeEnum[keyof typeof BuilderInfoOrgRolePrincipalTypeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the BuilderInfoOrgRole interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfBuilderInfoOrgRole(value: object): boolean;
|
|
56
|
+
export declare function BuilderInfoOrgRoleFromJSON(json: any): BuilderInfoOrgRole;
|
|
57
|
+
export declare function BuilderInfoOrgRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuilderInfoOrgRole;
|
|
58
|
+
export declare function BuilderInfoOrgRoleToJSON(value?: BuilderInfoOrgRole | null): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.BuilderInfoOrgRoleToJSON = exports.BuilderInfoOrgRoleFromJSONTyped = exports.BuilderInfoOrgRoleFromJSON = exports.instanceOfBuilderInfoOrgRole = exports.BuilderInfoOrgRolePrincipalTypeEnum = void 0;
|
|
17
|
+
const Org_1 = require("./Org");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.BuilderInfoOrgRolePrincipalTypeEnum = {
|
|
22
|
+
Team: 'team',
|
|
23
|
+
Builder: 'builder'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BuilderInfoOrgRole interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfBuilderInfoOrgRole(value) {
|
|
29
|
+
let isInstance = true;
|
|
30
|
+
isInstance = isInstance && "role" in value;
|
|
31
|
+
isInstance = isInstance && "principalType" in value;
|
|
32
|
+
isInstance = isInstance && "principalId" in value;
|
|
33
|
+
isInstance = isInstance && "org" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfBuilderInfoOrgRole = instanceOfBuilderInfoOrgRole;
|
|
37
|
+
function BuilderInfoOrgRoleFromJSON(json) {
|
|
38
|
+
return BuilderInfoOrgRoleFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.BuilderInfoOrgRoleFromJSON = BuilderInfoOrgRoleFromJSON;
|
|
41
|
+
function BuilderInfoOrgRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'role': json['role'],
|
|
47
|
+
'principalType': json['principalType'],
|
|
48
|
+
'principalId': json['principalId'],
|
|
49
|
+
'org': (0, Org_1.OrgFromJSON)(json['org']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.BuilderInfoOrgRoleFromJSONTyped = BuilderInfoOrgRoleFromJSONTyped;
|
|
53
|
+
function BuilderInfoOrgRoleToJSON(value) {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'role': value.role,
|
|
62
|
+
'principalType': value.principalType,
|
|
63
|
+
'principalId': value.principalId,
|
|
64
|
+
'org': (0, Org_1.OrgToJSON)(value.org),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.BuilderInfoOrgRoleToJSON = BuilderInfoOrgRoleToJSON;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Project } from './Project';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BuilderInfoProjectRolesValue
|
|
17
|
+
*/
|
|
18
|
+
export interface BuilderInfoProjectRolesValue {
|
|
19
|
+
/**
|
|
20
|
+
* The role of the builder in the project.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BuilderInfoProjectRolesValue
|
|
23
|
+
*/
|
|
24
|
+
role: string;
|
|
25
|
+
/**
|
|
26
|
+
* The type of the principal.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BuilderInfoProjectRolesValue
|
|
29
|
+
*/
|
|
30
|
+
principalType: BuilderInfoProjectRolesValuePrincipalTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the team or builder.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BuilderInfoProjectRolesValue
|
|
35
|
+
*/
|
|
36
|
+
principalId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Project}
|
|
40
|
+
* @memberof BuilderInfoProjectRolesValue
|
|
41
|
+
*/
|
|
42
|
+
project: Project;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const BuilderInfoProjectRolesValuePrincipalTypeEnum: {
|
|
48
|
+
readonly Team: "team";
|
|
49
|
+
readonly Builder: "builder";
|
|
50
|
+
};
|
|
51
|
+
export type BuilderInfoProjectRolesValuePrincipalTypeEnum = typeof BuilderInfoProjectRolesValuePrincipalTypeEnum[keyof typeof BuilderInfoProjectRolesValuePrincipalTypeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the BuilderInfoProjectRolesValue interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfBuilderInfoProjectRolesValue(value: object): boolean;
|
|
56
|
+
export declare function BuilderInfoProjectRolesValueFromJSON(json: any): BuilderInfoProjectRolesValue;
|
|
57
|
+
export declare function BuilderInfoProjectRolesValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuilderInfoProjectRolesValue;
|
|
58
|
+
export declare function BuilderInfoProjectRolesValueToJSON(value?: BuilderInfoProjectRolesValue | null): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.BuilderInfoProjectRolesValueToJSON = exports.BuilderInfoProjectRolesValueFromJSONTyped = exports.BuilderInfoProjectRolesValueFromJSON = exports.instanceOfBuilderInfoProjectRolesValue = exports.BuilderInfoProjectRolesValuePrincipalTypeEnum = void 0;
|
|
17
|
+
const Project_1 = require("./Project");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.BuilderInfoProjectRolesValuePrincipalTypeEnum = {
|
|
22
|
+
Team: 'team',
|
|
23
|
+
Builder: 'builder'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BuilderInfoProjectRolesValue interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfBuilderInfoProjectRolesValue(value) {
|
|
29
|
+
let isInstance = true;
|
|
30
|
+
isInstance = isInstance && "role" in value;
|
|
31
|
+
isInstance = isInstance && "principalType" in value;
|
|
32
|
+
isInstance = isInstance && "principalId" in value;
|
|
33
|
+
isInstance = isInstance && "project" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfBuilderInfoProjectRolesValue = instanceOfBuilderInfoProjectRolesValue;
|
|
37
|
+
function BuilderInfoProjectRolesValueFromJSON(json) {
|
|
38
|
+
return BuilderInfoProjectRolesValueFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.BuilderInfoProjectRolesValueFromJSON = BuilderInfoProjectRolesValueFromJSON;
|
|
41
|
+
function BuilderInfoProjectRolesValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'role': json['role'],
|
|
47
|
+
'principalType': json['principalType'],
|
|
48
|
+
'principalId': json['principalId'],
|
|
49
|
+
'project': (0, Project_1.ProjectFromJSON)(json['project']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.BuilderInfoProjectRolesValueFromJSONTyped = BuilderInfoProjectRolesValueFromJSONTyped;
|
|
53
|
+
function BuilderInfoProjectRolesValueToJSON(value) {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'role': value.role,
|
|
62
|
+
'principalType': value.principalType,
|
|
63
|
+
'principalId': value.principalId,
|
|
64
|
+
'project': (0, Project_1.ProjectToJSON)(value.project),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.BuilderInfoProjectRolesValueToJSON = BuilderInfoProjectRolesValueToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BulkWriteSupport
|
|
16
|
+
*/
|
|
17
|
+
export interface BulkWriteSupport {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof BulkWriteSupport
|
|
22
|
+
*/
|
|
23
|
+
insert: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof BulkWriteSupport
|
|
28
|
+
*/
|
|
29
|
+
update: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof BulkWriteSupport
|
|
34
|
+
*/
|
|
35
|
+
upsert: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof BulkWriteSupport
|
|
40
|
+
*/
|
|
41
|
+
_delete: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the BulkWriteSupport interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfBulkWriteSupport(value: object): boolean;
|
|
47
|
+
export declare function BulkWriteSupportFromJSON(json: any): BulkWriteSupport;
|
|
48
|
+
export declare function BulkWriteSupportFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkWriteSupport;
|
|
49
|
+
export declare function BulkWriteSupportToJSON(value?: BulkWriteSupport | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BulkWriteSupportToJSON = exports.BulkWriteSupportFromJSONTyped = exports.BulkWriteSupportFromJSON = exports.instanceOfBulkWriteSupport = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the BulkWriteSupport interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfBulkWriteSupport(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "insert" in value;
|
|
23
|
+
isInstance = isInstance && "update" in value;
|
|
24
|
+
isInstance = isInstance && "upsert" in value;
|
|
25
|
+
isInstance = isInstance && "_delete" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfBulkWriteSupport = instanceOfBulkWriteSupport;
|
|
29
|
+
function BulkWriteSupportFromJSON(json) {
|
|
30
|
+
return BulkWriteSupportFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.BulkWriteSupportFromJSON = BulkWriteSupportFromJSON;
|
|
33
|
+
function BulkWriteSupportFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'insert': json['insert'],
|
|
39
|
+
'update': json['update'],
|
|
40
|
+
'upsert': json['upsert'],
|
|
41
|
+
'_delete': json['delete'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.BulkWriteSupportFromJSONTyped = BulkWriteSupportFromJSONTyped;
|
|
45
|
+
function BulkWriteSupportToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'insert': value.insert,
|
|
54
|
+
'update': value.update,
|
|
55
|
+
'upsert': value.upsert,
|
|
56
|
+
'delete': value._delete,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.BulkWriteSupportToJSON = BulkWriteSupportToJSON;
|
|
@@ -17,7 +17,7 @@ import type { CreateDestinationRequestMetadata } from './CreateDestinationReques
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateDestinationRequest {
|
|
19
19
|
/**
|
|
20
|
-
* Name for the new destination
|
|
20
|
+
* Name for the new destination. Must be unique within the project and can only contain letters, numbers and dashes.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof CreateDestinationRequest
|
|
23
23
|
*/
|
|
@@ -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 CreateOrgInviteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateOrgInviteRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The email address of the user to invite.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateOrgInviteRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateOrgInviteRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateOrgInviteRequest(value: object): boolean;
|
|
29
|
+
export declare function CreateOrgInviteRequestFromJSON(json: any): CreateOrgInviteRequest;
|
|
30
|
+
export declare function CreateOrgInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrgInviteRequest;
|
|
31
|
+
export declare function CreateOrgInviteRequestToJSON(value?: CreateOrgInviteRequest | null): any;
|