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