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