@amp-labs/react 1.4.2 → 1.4.4
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/UserApi.js +94 -0
- package/build/generated-sources/api/src/apis/index.d.ts +2 -0
- package/build/generated-sources/api/src/apis/index.js +2 -0
- 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/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/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/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/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 +18 -0
- package/build/generated-sources/api/src/models/index.js +18 -0
- package/build/src/components/Configure/content/ConfigureInstallationBase.js +1 -1
- package/build/src/components/Configure/content/fields/OptionalFields/OptionalFields.js +2 -2
- package/build/src/components/Configure/content/fields/WriteFields/WriteFields.js +14 -2
- package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +2 -2
- package/build/src/services/version.d.ts +1 -1
- package/build/src/services/version.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -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,
|
|
@@ -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 { UpdateDestinationRequestDestinationMetadata } from './UpdateDestinationRequestDestinationMetadata';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -24,10 +24,10 @@ export interface UpdateDestinationRequestDestination {
|
|
|
24
24
|
name?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {UpdateDestinationRequestDestinationMetadata}
|
|
28
28
|
* @memberof UpdateDestinationRequestDestination
|
|
29
29
|
*/
|
|
30
|
-
metadata?:
|
|
30
|
+
metadata?: UpdateDestinationRequestDestinationMetadata;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the UpdateDestinationRequestDestination interface.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UpdateDestinationRequestDestinationToJSON = exports.UpdateDestinationRequestDestinationFromJSONTyped = exports.UpdateDestinationRequestDestinationFromJSON = exports.instanceOfUpdateDestinationRequestDestination = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
-
const
|
|
18
|
+
const UpdateDestinationRequestDestinationMetadata_1 = require("./UpdateDestinationRequestDestinationMetadata");
|
|
19
19
|
/**
|
|
20
20
|
* Check if a given object implements the UpdateDestinationRequestDestination interface.
|
|
21
21
|
*/
|
|
@@ -34,7 +34,7 @@ function UpdateDestinationRequestDestinationFromJSONTyped(json, ignoreDiscrimina
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
37
|
-
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0,
|
|
37
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, UpdateDestinationRequestDestinationMetadata_1.UpdateDestinationRequestDestinationMetadataFromJSON)(json['metadata']),
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
exports.UpdateDestinationRequestDestinationFromJSONTyped = UpdateDestinationRequestDestinationFromJSONTyped;
|
|
@@ -47,7 +47,7 @@ function UpdateDestinationRequestDestinationToJSON(value) {
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'name': value.name,
|
|
50
|
-
'metadata': (0,
|
|
50
|
+
'metadata': (0, UpdateDestinationRequestDestinationMetadata_1.UpdateDestinationRequestDestinationMetadataToJSON)(value.metadata),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
exports.UpdateDestinationRequestDestinationToJSON = UpdateDestinationRequestDestinationToJSON;
|
package/build/generated-sources/api/src/models/UpdateDestinationRequestDestinationMetadata.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ampersand public API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 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 UpdateDestinationRequestDestinationMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateDestinationRequestDestinationMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Webhook URL
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateDestinationRequestDestinationMetadata
|
|
22
|
+
*/
|
|
23
|
+
url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Additional headers to add when Ampersand sends a webhook message
|
|
26
|
+
* @type {{ [key: string]: string; }}
|
|
27
|
+
* @memberof UpdateDestinationRequestDestinationMetadata
|
|
28
|
+
*/
|
|
29
|
+
headers?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
} | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the UpdateDestinationRequestDestinationMetadata interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfUpdateDestinationRequestDestinationMetadata(value: object): boolean;
|
|
37
|
+
export declare function UpdateDestinationRequestDestinationMetadataFromJSON(json: any): UpdateDestinationRequestDestinationMetadata;
|
|
38
|
+
export declare function UpdateDestinationRequestDestinationMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationRequestDestinationMetadata;
|
|
39
|
+
export declare function UpdateDestinationRequestDestinationMetadataToJSON(value?: UpdateDestinationRequestDestinationMetadata | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Ampersand public API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 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.UpdateDestinationRequestDestinationMetadataToJSON = exports.UpdateDestinationRequestDestinationMetadataFromJSONTyped = exports.UpdateDestinationRequestDestinationMetadataFromJSON = exports.instanceOfUpdateDestinationRequestDestinationMetadata = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateDestinationRequestDestinationMetadata interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateDestinationRequestDestinationMetadata(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfUpdateDestinationRequestDestinationMetadata = instanceOfUpdateDestinationRequestDestinationMetadata;
|
|
26
|
+
function UpdateDestinationRequestDestinationMetadataFromJSON(json) {
|
|
27
|
+
return UpdateDestinationRequestDestinationMetadataFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.UpdateDestinationRequestDestinationMetadataFromJSON = UpdateDestinationRequestDestinationMetadataFromJSON;
|
|
30
|
+
function UpdateDestinationRequestDestinationMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
|
|
36
|
+
'headers': !(0, runtime_1.exists)(json, 'headers') ? undefined : json['headers'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.UpdateDestinationRequestDestinationMetadataFromJSONTyped = UpdateDestinationRequestDestinationMetadataFromJSONTyped;
|
|
40
|
+
function UpdateDestinationRequestDestinationMetadataToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'url': value.url,
|
|
49
|
+
'headers': value.headers,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.UpdateDestinationRequestDestinationMetadataToJSON = UpdateDestinationRequestDestinationMetadataToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { UpdateOrgRequestOrg } from './UpdateOrgRequestOrg';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateOrgRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateOrgRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof UpdateOrgRequest
|
|
23
|
+
*/
|
|
24
|
+
updateMask: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {UpdateOrgRequestOrg}
|
|
28
|
+
* @memberof UpdateOrgRequest
|
|
29
|
+
*/
|
|
30
|
+
org: UpdateOrgRequestOrg;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateOrgRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateOrgRequest(value: object): boolean;
|
|
36
|
+
export declare function UpdateOrgRequestFromJSON(json: any): UpdateOrgRequest;
|
|
37
|
+
export declare function UpdateOrgRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrgRequest;
|
|
38
|
+
export declare function UpdateOrgRequestToJSON(value?: UpdateOrgRequest | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.UpdateOrgRequestToJSON = exports.UpdateOrgRequestFromJSONTyped = exports.UpdateOrgRequestFromJSON = exports.instanceOfUpdateOrgRequest = void 0;
|
|
17
|
+
const UpdateOrgRequestOrg_1 = require("./UpdateOrgRequestOrg");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateOrgRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateOrgRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "updateMask" in value;
|
|
24
|
+
isInstance = isInstance && "org" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfUpdateOrgRequest = instanceOfUpdateOrgRequest;
|
|
28
|
+
function UpdateOrgRequestFromJSON(json) {
|
|
29
|
+
return UpdateOrgRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.UpdateOrgRequestFromJSON = UpdateOrgRequestFromJSON;
|
|
32
|
+
function UpdateOrgRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'updateMask': json['updateMask'],
|
|
38
|
+
'org': (0, UpdateOrgRequestOrg_1.UpdateOrgRequestOrgFromJSON)(json['org']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.UpdateOrgRequestFromJSONTyped = UpdateOrgRequestFromJSONTyped;
|
|
42
|
+
function UpdateOrgRequestToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'updateMask': value.updateMask,
|
|
51
|
+
'org': (0, UpdateOrgRequestOrg_1.UpdateOrgRequestOrgToJSON)(value.org),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.UpdateOrgRequestToJSON = UpdateOrgRequestToJSON;
|
|
@@ -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 UpdateOrgRequestOrg
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateOrgRequestOrg {
|
|
18
|
+
/**
|
|
19
|
+
* The organization label.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateOrgRequestOrg
|
|
22
|
+
*/
|
|
23
|
+
label?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateOrgRequestOrg interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateOrgRequestOrg(value: object): boolean;
|
|
29
|
+
export declare function UpdateOrgRequestOrgFromJSON(json: any): UpdateOrgRequestOrg;
|
|
30
|
+
export declare function UpdateOrgRequestOrgFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrgRequestOrg;
|
|
31
|
+
export declare function UpdateOrgRequestOrgToJSON(value?: UpdateOrgRequestOrg | 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.UpdateOrgRequestOrgToJSON = exports.UpdateOrgRequestOrgFromJSONTyped = exports.UpdateOrgRequestOrgFromJSON = exports.instanceOfUpdateOrgRequestOrg = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateOrgRequestOrg interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateOrgRequestOrg(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfUpdateOrgRequestOrg = instanceOfUpdateOrgRequestOrg;
|
|
26
|
+
function UpdateOrgRequestOrgFromJSON(json) {
|
|
27
|
+
return UpdateOrgRequestOrgFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.UpdateOrgRequestOrgFromJSON = UpdateOrgRequestOrgFromJSON;
|
|
30
|
+
function UpdateOrgRequestOrgFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.UpdateOrgRequestOrgFromJSONTyped = UpdateOrgRequestOrgFromJSONTyped;
|
|
39
|
+
function UpdateOrgRequestOrgToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'label': value.label,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.UpdateOrgRequestOrgToJSON = UpdateOrgRequestOrgToJSON;
|