@amp-labs/react 1.0.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 (205) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +138 -0
  3. package/build/generated-sources/api/src/apis/DefaultApi.d.ts +858 -0
  4. package/build/generated-sources/api/src/apis/DefaultApi.js +942 -0
  5. package/build/generated-sources/api/src/apis/index.d.ts +1 -0
  6. package/build/generated-sources/api/src/apis/index.js +19 -0
  7. package/build/generated-sources/api/src/index.d.ts +3 -0
  8. package/build/generated-sources/api/src/index.js +21 -0
  9. package/build/generated-sources/api/src/models/BaseConfigContent.d.ts +38 -0
  10. package/build/generated-sources/api/src/models/BaseConfigContent.js +53 -0
  11. package/build/generated-sources/api/src/models/BaseReadConfig.d.ts +34 -0
  12. package/build/generated-sources/api/src/models/BaseReadConfig.js +51 -0
  13. package/build/generated-sources/api/src/models/BaseReadConfigStandardObject.d.ts +59 -0
  14. package/build/generated-sources/api/src/models/BaseReadConfigStandardObject.js +58 -0
  15. package/build/generated-sources/api/src/models/BatchUpsertIntegrationsRequest.d.ts +31 -0
  16. package/build/generated-sources/api/src/models/BatchUpsertIntegrationsRequest.js +50 -0
  17. package/build/generated-sources/api/src/models/Config.d.ts +56 -0
  18. package/build/generated-sources/api/src/models/Config.js +63 -0
  19. package/build/generated-sources/api/src/models/ConfigContent.d.ts +37 -0
  20. package/build/generated-sources/api/src/models/ConfigContent.js +53 -0
  21. package/build/generated-sources/api/src/models/ConfigContentAllOf.d.ts +31 -0
  22. package/build/generated-sources/api/src/models/ConfigContentAllOf.js +50 -0
  23. package/build/generated-sources/api/src/models/Connection.d.ts +82 -0
  24. package/build/generated-sources/api/src/models/Connection.js +76 -0
  25. package/build/generated-sources/api/src/models/Consumer.d.ts +55 -0
  26. package/build/generated-sources/api/src/models/Consumer.js +62 -0
  27. package/build/generated-sources/api/src/models/CreateConsumerRequest.d.ts +37 -0
  28. package/build/generated-sources/api/src/models/CreateConsumerRequest.js +53 -0
  29. package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +44 -0
  30. package/build/generated-sources/api/src/models/CreateDestinationRequest.js +57 -0
  31. package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +39 -0
  32. package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.js +52 -0
  33. package/build/generated-sources/api/src/models/CreateGroupRequest.d.ts +37 -0
  34. package/build/generated-sources/api/src/models/CreateGroupRequest.js +53 -0
  35. package/build/generated-sources/api/src/models/CreateInstallationRequest.d.ts +44 -0
  36. package/build/generated-sources/api/src/models/CreateInstallationRequest.js +57 -0
  37. package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.d.ts +44 -0
  38. package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.js +57 -0
  39. package/build/generated-sources/api/src/models/CreateIntegrationRequest.d.ts +44 -0
  40. package/build/generated-sources/api/src/models/CreateIntegrationRequest.js +57 -0
  41. package/build/generated-sources/api/src/models/CreateIntegrationRequestLatestRevision.d.ts +31 -0
  42. package/build/generated-sources/api/src/models/CreateIntegrationRequestLatestRevision.js +50 -0
  43. package/build/generated-sources/api/src/models/CreateProjectRequest.d.ts +37 -0
  44. package/build/generated-sources/api/src/models/CreateProjectRequest.js +53 -0
  45. package/build/generated-sources/api/src/models/CreateProviderAppRequest.d.ts +49 -0
  46. package/build/generated-sources/api/src/models/CreateProviderAppRequest.js +59 -0
  47. package/build/generated-sources/api/src/models/Group.d.ts +55 -0
  48. package/build/generated-sources/api/src/models/Group.js +62 -0
  49. package/build/generated-sources/api/src/models/HydratedIntegration.d.ts +50 -0
  50. package/build/generated-sources/api/src/models/HydratedIntegration.js +59 -0
  51. package/build/generated-sources/api/src/models/HydratedIntegrationField.d.ts +22 -0
  52. package/build/generated-sources/api/src/models/HydratedIntegrationField.js +45 -0
  53. package/build/generated-sources/api/src/models/HydratedIntegrationFieldExistent.d.ts +37 -0
  54. package/build/generated-sources/api/src/models/HydratedIntegrationFieldExistent.js +53 -0
  55. package/build/generated-sources/api/src/models/HydratedIntegrationObject.d.ts +75 -0
  56. package/build/generated-sources/api/src/models/HydratedIntegrationObject.js +70 -0
  57. package/build/generated-sources/api/src/models/HydratedIntegrationRead.d.ts +32 -0
  58. package/build/generated-sources/api/src/models/HydratedIntegrationRead.js +51 -0
  59. package/build/generated-sources/api/src/models/HydratedRevision.d.ts +50 -0
  60. package/build/generated-sources/api/src/models/HydratedRevision.js +60 -0
  61. package/build/generated-sources/api/src/models/ImportConnectionRequest.d.ts +85 -0
  62. package/build/generated-sources/api/src/models/ImportConnectionRequest.js +75 -0
  63. package/build/generated-sources/api/src/models/ImportInstallationRequest.d.ts +39 -0
  64. package/build/generated-sources/api/src/models/ImportInstallationRequest.js +55 -0
  65. package/build/generated-sources/api/src/models/ImportInstallationRequestConfig.d.ts +38 -0
  66. package/build/generated-sources/api/src/models/ImportInstallationRequestConfig.js +54 -0
  67. package/build/generated-sources/api/src/models/Installation.d.ts +88 -0
  68. package/build/generated-sources/api/src/models/Installation.js +79 -0
  69. package/build/generated-sources/api/src/models/Integration.d.ts +68 -0
  70. package/build/generated-sources/api/src/models/Integration.js +69 -0
  71. package/build/generated-sources/api/src/models/Integration1.d.ts +50 -0
  72. package/build/generated-sources/api/src/models/Integration1.js +59 -0
  73. package/build/generated-sources/api/src/models/IntegrationField.d.ts +22 -0
  74. package/build/generated-sources/api/src/models/IntegrationField.js +45 -0
  75. package/build/generated-sources/api/src/models/IntegrationFieldExistent.d.ts +31 -0
  76. package/build/generated-sources/api/src/models/IntegrationFieldExistent.js +50 -0
  77. package/build/generated-sources/api/src/models/IntegrationFieldMapping.d.ts +49 -0
  78. package/build/generated-sources/api/src/models/IntegrationFieldMapping.js +57 -0
  79. package/build/generated-sources/api/src/models/IntegrationObject.d.ts +63 -0
  80. package/build/generated-sources/api/src/models/IntegrationObject.js +65 -0
  81. package/build/generated-sources/api/src/models/IntegrationRead.d.ts +32 -0
  82. package/build/generated-sources/api/src/models/IntegrationRead.js +51 -0
  83. package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +73 -0
  84. package/build/generated-sources/api/src/models/OauthConnectRequest.js +70 -0
  85. package/build/generated-sources/api/src/models/Operation.d.ts +80 -0
  86. package/build/generated-sources/api/src/models/Operation.js +73 -0
  87. package/build/generated-sources/api/src/models/OperationError.d.ts +49 -0
  88. package/build/generated-sources/api/src/models/OperationError.js +56 -0
  89. package/build/generated-sources/api/src/models/OptionalFieldsAutoOption.d.ts +22 -0
  90. package/build/generated-sources/api/src/models/OptionalFieldsAutoOption.js +35 -0
  91. package/build/generated-sources/api/src/models/Project.d.ts +55 -0
  92. package/build/generated-sources/api/src/models/Project.js +62 -0
  93. package/build/generated-sources/api/src/models/ProjectMembership.d.ts +56 -0
  94. package/build/generated-sources/api/src/models/ProjectMembership.js +63 -0
  95. package/build/generated-sources/api/src/models/ProviderApp.d.ts +67 -0
  96. package/build/generated-sources/api/src/models/ProviderApp.js +67 -0
  97. package/build/generated-sources/api/src/models/Revision.d.ts +50 -0
  98. package/build/generated-sources/api/src/models/Revision.js +60 -0
  99. package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.d.ts +38 -0
  100. package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.js +53 -0
  101. package/build/generated-sources/api/src/models/UpdateInstallationRequest.d.ts +38 -0
  102. package/build/generated-sources/api/src/models/UpdateInstallationRequest.js +54 -0
  103. package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallation.d.ts +38 -0
  104. package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallation.js +53 -0
  105. package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.d.ts +44 -0
  106. package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.js +55 -0
  107. package/build/generated-sources/api/src/models/UpdateProjectRequest.d.ts +38 -0
  108. package/build/generated-sources/api/src/models/UpdateProjectRequest.js +54 -0
  109. package/build/generated-sources/api/src/models/UpdateProjectRequestProject.d.ts +37 -0
  110. package/build/generated-sources/api/src/models/UpdateProjectRequestProject.js +52 -0
  111. package/build/generated-sources/api/src/models/UpdateProviderAppRequest.d.ts +38 -0
  112. package/build/generated-sources/api/src/models/UpdateProviderAppRequest.js +54 -0
  113. package/build/generated-sources/api/src/models/UpdateProviderAppRequestProviderApp.d.ts +49 -0
  114. package/build/generated-sources/api/src/models/UpdateProviderAppRequestProviderApp.js +56 -0
  115. package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.d.ts +37 -0
  116. package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.js +53 -0
  117. package/build/generated-sources/api/src/models/index.d.ts +54 -0
  118. package/build/generated-sources/api/src/models/index.js +72 -0
  119. package/build/generated-sources/api/src/runtime.d.ts +182 -0
  120. package/build/generated-sources/api/src/runtime.js +317 -0
  121. package/build/src/assets/LoadingIcon.d.ts +5 -0
  122. package/build/src/assets/LoadingIcon.js +9 -0
  123. package/build/src/assets/NavIcon.d.ts +1 -0
  124. package/build/src/assets/NavIcon.js +23 -0
  125. package/build/src/components/AmpersandProvider/AmpersandProvider.d.ts +19 -0
  126. package/build/src/components/AmpersandProvider/AmpersandProvider.js +31 -0
  127. package/build/src/components/AmpersandProvider/index.d.ts +1 -0
  128. package/build/src/components/AmpersandProvider/index.js +17 -0
  129. package/build/src/components/CenteredTextBox/CenteredTextBox.d.ts +5 -0
  130. package/build/src/components/CenteredTextBox/CenteredTextBox.js +8 -0
  131. package/build/src/components/Configure/ConfigureInstallationBase.d.ts +8 -0
  132. package/build/src/components/Configure/ConfigureInstallationBase.js +17 -0
  133. package/build/src/components/Configure/CreateInstallation.d.ts +1 -0
  134. package/build/src/components/Configure/CreateInstallation.js +73 -0
  135. package/build/src/components/Configure/ErrorTextBox.d.ts +5 -0
  136. package/build/src/components/Configure/ErrorTextBox.js +9 -0
  137. package/build/src/components/Configure/InstallIntegration.d.ts +9 -0
  138. package/build/src/components/Configure/InstallIntegration.js +40 -0
  139. package/build/src/components/Configure/ObjectManagementNav/NavObjectItem.d.ts +8 -0
  140. package/build/src/components/Configure/ObjectManagementNav/NavObjectItem.js +14 -0
  141. package/build/src/components/Configure/ObjectManagementNav/index.d.ts +9 -0
  142. package/build/src/components/Configure/ObjectManagementNav/index.js +45 -0
  143. package/build/src/components/Configure/ProtectedConnectionLayout.d.ts +6 -0
  144. package/build/src/components/Configure/ProtectedConnectionLayout.js +28 -0
  145. package/build/src/components/Configure/UpdateInstallation.d.ts +7 -0
  146. package/build/src/components/Configure/UpdateInstallation.js +87 -0
  147. package/build/src/components/Configure/actions/onSaveCreate.d.ts +3 -0
  148. package/build/src/components/Configure/actions/onSaveCreate.js +90 -0
  149. package/build/src/components/Configure/actions/onSaveUpdate.d.ts +3 -0
  150. package/build/src/components/Configure/actions/onSaveUpdate.js +74 -0
  151. package/build/src/components/Configure/fields/FieldHeader.d.ts +5 -0
  152. package/build/src/components/Configure/fields/FieldHeader.js +9 -0
  153. package/build/src/components/Configure/fields/FieldMapping.d.ts +10 -0
  154. package/build/src/components/Configure/fields/FieldMapping.js +28 -0
  155. package/build/src/components/Configure/fields/OptionalFields.d.ts +1 -0
  156. package/build/src/components/Configure/fields/OptionalFields.js +45 -0
  157. package/build/src/components/Configure/fields/RequiredFieldMappings.d.ts +1 -0
  158. package/build/src/components/Configure/fields/RequiredFieldMappings.js +40 -0
  159. package/build/src/components/Configure/fields/RequiredFields.d.ts +1 -0
  160. package/build/src/components/Configure/fields/RequiredFields.js +27 -0
  161. package/build/src/components/Configure/index.d.ts +1 -0
  162. package/build/src/components/Configure/index.js +5 -0
  163. package/build/src/components/Configure/state/ConfigurationStateProvider.d.ts +13 -0
  164. package/build/src/components/Configure/state/ConfigurationStateProvider.js +54 -0
  165. package/build/src/components/Configure/state/HydratedRevisionContext.d.ts +14 -0
  166. package/build/src/components/Configure/state/HydratedRevisionContext.js +82 -0
  167. package/build/src/components/Configure/state/utils.d.ts +34 -0
  168. package/build/src/components/Configure/state/utils.js +146 -0
  169. package/build/src/components/Configure/types.d.ts +31 -0
  170. package/build/src/components/Configure/types.js +2 -0
  171. package/build/src/components/Configure/utils.d.ts +24 -0
  172. package/build/src/components/Configure/utils.js +82 -0
  173. package/build/src/components/OAuthPopup/OAuthPopup.d.ts +14 -0
  174. package/build/src/components/OAuthPopup/OAuthPopup.js +85 -0
  175. package/build/src/components/Salesforce/SalesforceOauthFlow.d.ts +16 -0
  176. package/build/src/components/Salesforce/SalesforceOauthFlow.js +78 -0
  177. package/build/src/components/ThemeProvider/index.d.ts +6 -0
  178. package/build/src/components/ThemeProvider/index.js +37 -0
  179. package/build/src/components/index.d.ts +2 -0
  180. package/build/src/components/index.js +18 -0
  181. package/build/src/constants.d.ts +1 -0
  182. package/build/src/constants.js +4 -0
  183. package/build/src/context/ApiKeyContext.d.ts +3 -0
  184. package/build/src/context/ApiKeyContext.js +6 -0
  185. package/build/src/context/ConnectionsContext.d.ts +16 -0
  186. package/build/src/context/ConnectionsContext.js +57 -0
  187. package/build/src/context/ErrorContextProvider.d.ts +37 -0
  188. package/build/src/context/ErrorContextProvider.js +72 -0
  189. package/build/src/context/InstallIntegrationContext.d.ts +24 -0
  190. package/build/src/context/InstallIntegrationContext.js +90 -0
  191. package/build/src/context/IntegrationListContext.d.ts +13 -0
  192. package/build/src/context/IntegrationListContext.js +48 -0
  193. package/build/src/context/ProjectContext.d.ts +15 -0
  194. package/build/src/context/ProjectContext.js +50 -0
  195. package/build/src/hooks/index.d.ts +1 -0
  196. package/build/src/hooks/index.js +17 -0
  197. package/build/src/hooks/useIsIntegrationInstalled.d.ts +6 -0
  198. package/build/src/hooks/useIsIntegrationInstalled.js +48 -0
  199. package/build/src/index.d.ts +2 -0
  200. package/build/src/index.js +18 -0
  201. package/build/src/services/api.d.ts +9 -0
  202. package/build/src/services/api.js +64 -0
  203. package/build/src/utils/index.d.ts +10 -0
  204. package/build/src/utils/index.js +21 -0
  205. package/package.json +80 -0
@@ -0,0 +1 @@
1
+ export * from './DefaultApi';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./DefaultApi"), exports);
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis';
3
+ export * from './models';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./apis"), exports);
21
+ __exportStar(require("./models"), exports);
@@ -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: 0.1.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 { BaseReadConfig } from './BaseReadConfig';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BaseConfigContent
17
+ */
18
+ export interface BaseConfigContent {
19
+ /**
20
+ * The SaaS API that we are integrating with.
21
+ * @type {string}
22
+ * @memberof BaseConfigContent
23
+ */
24
+ provider?: string;
25
+ /**
26
+ *
27
+ * @type {BaseReadConfig}
28
+ * @memberof BaseConfigContent
29
+ */
30
+ read?: BaseReadConfig;
31
+ }
32
+ /**
33
+ * Check if a given object implements the BaseConfigContent interface.
34
+ */
35
+ export declare function instanceOfBaseConfigContent(value: object): boolean;
36
+ export declare function BaseConfigContentFromJSON(json: any): BaseConfigContent;
37
+ export declare function BaseConfigContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseConfigContent;
38
+ export declare function BaseConfigContentToJSON(value?: BaseConfigContent | null): any;
@@ -0,0 +1,53 @@
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: 0.1.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.BaseConfigContentToJSON = exports.BaseConfigContentFromJSONTyped = exports.BaseConfigContentFromJSON = exports.instanceOfBaseConfigContent = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const BaseReadConfig_1 = require("./BaseReadConfig");
19
+ /**
20
+ * Check if a given object implements the BaseConfigContent interface.
21
+ */
22
+ function instanceOfBaseConfigContent(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfBaseConfigContent = instanceOfBaseConfigContent;
27
+ function BaseConfigContentFromJSON(json) {
28
+ return BaseConfigContentFromJSONTyped(json, false);
29
+ }
30
+ exports.BaseConfigContentFromJSON = BaseConfigContentFromJSON;
31
+ function BaseConfigContentFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'provider': !(0, runtime_1.exists)(json, 'provider') ? undefined : json['provider'],
37
+ 'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, BaseReadConfig_1.BaseReadConfigFromJSON)(json['read']),
38
+ };
39
+ }
40
+ exports.BaseConfigContentFromJSONTyped = BaseConfigContentFromJSONTyped;
41
+ function BaseConfigContentToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'provider': value.provider,
50
+ 'read': (0, BaseReadConfig_1.BaseReadConfigToJSON)(value.read),
51
+ };
52
+ }
53
+ exports.BaseConfigContentToJSON = BaseConfigContentToJSON;
@@ -0,0 +1,34 @@
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: 0.1.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 { BaseReadConfigStandardObject } from './BaseReadConfigStandardObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface BaseReadConfig
17
+ */
18
+ export interface BaseReadConfig {
19
+ /**
20
+ * This is a map of object names to their configuration.
21
+ * @type {{ [key: string]: BaseReadConfigStandardObject; }}
22
+ * @memberof BaseReadConfig
23
+ */
24
+ standardObjects?: {
25
+ [key: string]: BaseReadConfigStandardObject;
26
+ };
27
+ }
28
+ /**
29
+ * Check if a given object implements the BaseReadConfig interface.
30
+ */
31
+ export declare function instanceOfBaseReadConfig(value: object): boolean;
32
+ export declare function BaseReadConfigFromJSON(json: any): BaseReadConfig;
33
+ export declare function BaseReadConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseReadConfig;
34
+ export declare function BaseReadConfigToJSON(value?: BaseReadConfig | null): any;
@@ -0,0 +1,51 @@
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: 0.1.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.BaseReadConfigToJSON = exports.BaseReadConfigFromJSONTyped = exports.BaseReadConfigFromJSON = exports.instanceOfBaseReadConfig = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const BaseReadConfigStandardObject_1 = require("./BaseReadConfigStandardObject");
19
+ /**
20
+ * Check if a given object implements the BaseReadConfig interface.
21
+ */
22
+ function instanceOfBaseReadConfig(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfBaseReadConfig = instanceOfBaseReadConfig;
27
+ function BaseReadConfigFromJSON(json) {
28
+ return BaseReadConfigFromJSONTyped(json, false);
29
+ }
30
+ exports.BaseReadConfigFromJSON = BaseReadConfigFromJSON;
31
+ function BaseReadConfigFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'standardObjects': !(0, runtime_1.exists)(json, 'standardObjects') ? undefined : ((0, runtime_1.mapValues)(json['standardObjects'], BaseReadConfigStandardObject_1.BaseReadConfigStandardObjectFromJSON)),
37
+ };
38
+ }
39
+ exports.BaseReadConfigFromJSONTyped = BaseReadConfigFromJSONTyped;
40
+ function BaseReadConfigToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'standardObjects': value.standardObjects === undefined ? undefined : ((0, runtime_1.mapValues)(value.standardObjects, BaseReadConfigStandardObject_1.BaseReadConfigStandardObjectToJSON)),
49
+ };
50
+ }
51
+ exports.BaseReadConfigToJSON = BaseReadConfigToJSON;
@@ -0,0 +1,59 @@
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: 0.1.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 BaseReadConfigStandardObject
16
+ */
17
+ export interface BaseReadConfigStandardObject {
18
+ /**
19
+ * The name of the object to read from.
20
+ * @type {string}
21
+ * @memberof BaseReadConfigStandardObject
22
+ */
23
+ objectName?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BaseReadConfigStandardObject
28
+ */
29
+ schedule?: string;
30
+ /**
31
+ * The name of the destination that the result should be sent to.
32
+ * @type {string}
33
+ * @memberof BaseReadConfigStandardObject
34
+ */
35
+ destination?: string;
36
+ /**
37
+ * This is a map of field names to booleans indicating whether they should be read.
38
+ * @type {{ [key: string]: boolean; }}
39
+ * @memberof BaseReadConfigStandardObject
40
+ */
41
+ selectedFields?: {
42
+ [key: string]: boolean;
43
+ };
44
+ /**
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
+ * @type {{ [key: string]: string; }}
47
+ * @memberof BaseReadConfigStandardObject
48
+ */
49
+ selectedFieldMappings?: {
50
+ [key: string]: string;
51
+ };
52
+ }
53
+ /**
54
+ * Check if a given object implements the BaseReadConfigStandardObject interface.
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;
@@ -0,0 +1,58 @@
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: 0.1.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.BaseReadConfigStandardObjectToJSON = exports.BaseReadConfigStandardObjectFromJSONTyped = exports.BaseReadConfigStandardObjectFromJSON = exports.instanceOfBaseReadConfigStandardObject = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the BaseReadConfigStandardObject interface.
20
+ */
21
+ function instanceOfBaseReadConfigStandardObject(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfBaseReadConfigStandardObject = instanceOfBaseReadConfigStandardObject;
26
+ function BaseReadConfigStandardObjectFromJSON(json) {
27
+ return BaseReadConfigStandardObjectFromJSONTyped(json, false);
28
+ }
29
+ exports.BaseReadConfigStandardObjectFromJSON = BaseReadConfigStandardObjectFromJSON;
30
+ function BaseReadConfigStandardObjectFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'objectName': !(0, runtime_1.exists)(json, 'objectName') ? undefined : json['objectName'],
36
+ 'schedule': !(0, runtime_1.exists)(json, 'schedule') ? undefined : json['schedule'],
37
+ 'destination': !(0, runtime_1.exists)(json, 'destination') ? undefined : json['destination'],
38
+ 'selectedFields': !(0, runtime_1.exists)(json, 'selectedFields') ? undefined : json['selectedFields'],
39
+ 'selectedFieldMappings': !(0, runtime_1.exists)(json, 'selectedFieldMappings') ? undefined : json['selectedFieldMappings'],
40
+ };
41
+ }
42
+ exports.BaseReadConfigStandardObjectFromJSONTyped = BaseReadConfigStandardObjectFromJSONTyped;
43
+ function BaseReadConfigStandardObjectToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'objectName': value.objectName,
52
+ 'schedule': value.schedule,
53
+ 'destination': value.destination,
54
+ 'selectedFields': value.selectedFields,
55
+ 'selectedFieldMappings': value.selectedFieldMappings,
56
+ };
57
+ }
58
+ exports.BaseReadConfigStandardObjectToJSON = BaseReadConfigStandardObjectToJSON;
@@ -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: 0.1.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 BatchUpsertIntegrationsRequest
16
+ */
17
+ export interface BatchUpsertIntegrationsRequest {
18
+ /**
19
+ * URL of where a zip of the source files can be downloaded (e.g. Google Cloud Storage URL).
20
+ * @type {string}
21
+ * @memberof BatchUpsertIntegrationsRequest
22
+ */
23
+ sourceZipUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the BatchUpsertIntegrationsRequest interface.
27
+ */
28
+ export declare function instanceOfBatchUpsertIntegrationsRequest(value: object): boolean;
29
+ export declare function BatchUpsertIntegrationsRequestFromJSON(json: any): BatchUpsertIntegrationsRequest;
30
+ export declare function BatchUpsertIntegrationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpsertIntegrationsRequest;
31
+ export declare function BatchUpsertIntegrationsRequestToJSON(value?: BatchUpsertIntegrationsRequest | 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: 0.1.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.BatchUpsertIntegrationsRequestToJSON = exports.BatchUpsertIntegrationsRequestFromJSONTyped = exports.BatchUpsertIntegrationsRequestFromJSON = exports.instanceOfBatchUpsertIntegrationsRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the BatchUpsertIntegrationsRequest interface.
19
+ */
20
+ function instanceOfBatchUpsertIntegrationsRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "sourceZipUrl" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfBatchUpsertIntegrationsRequest = instanceOfBatchUpsertIntegrationsRequest;
26
+ function BatchUpsertIntegrationsRequestFromJSON(json) {
27
+ return BatchUpsertIntegrationsRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.BatchUpsertIntegrationsRequestFromJSON = BatchUpsertIntegrationsRequestFromJSON;
30
+ function BatchUpsertIntegrationsRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'sourceZipUrl': json['sourceZipUrl'],
36
+ };
37
+ }
38
+ exports.BatchUpsertIntegrationsRequestFromJSONTyped = BatchUpsertIntegrationsRequestFromJSONTyped;
39
+ function BatchUpsertIntegrationsRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'sourceZipUrl': value.sourceZipUrl,
48
+ };
49
+ }
50
+ exports.BatchUpsertIntegrationsRequestToJSON = BatchUpsertIntegrationsRequestToJSON;
@@ -0,0 +1,56 @@
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: 0.1.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 { ConfigContent } from './ConfigContent';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Config
17
+ */
18
+ export interface Config {
19
+ /**
20
+ * The config ID.
21
+ * @type {string}
22
+ * @memberof Config
23
+ */
24
+ id: string;
25
+ /**
26
+ * The ID of the revision that this config is based on.
27
+ * @type {string}
28
+ * @memberof Config
29
+ */
30
+ revisionId: string;
31
+ /**
32
+ * The time the config was created.
33
+ * @type {Date}
34
+ * @memberof Config
35
+ */
36
+ createTime: Date;
37
+ /**
38
+ * The person who created the config, in the format of "consumer:{consumer-id}" or "builder:{builder-id}".
39
+ * @type {string}
40
+ * @memberof Config
41
+ */
42
+ createdBy: string;
43
+ /**
44
+ *
45
+ * @type {ConfigContent}
46
+ * @memberof Config
47
+ */
48
+ content: ConfigContent;
49
+ }
50
+ /**
51
+ * Check if a given object implements the Config interface.
52
+ */
53
+ export declare function instanceOfConfig(value: object): boolean;
54
+ export declare function ConfigFromJSON(json: any): Config;
55
+ export declare function ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): Config;
56
+ export declare function ConfigToJSON(value?: Config | null): any;
@@ -0,0 +1,63 @@
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: 0.1.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.ConfigToJSON = exports.ConfigFromJSONTyped = exports.ConfigFromJSON = exports.instanceOfConfig = void 0;
17
+ const ConfigContent_1 = require("./ConfigContent");
18
+ /**
19
+ * Check if a given object implements the Config interface.
20
+ */
21
+ function instanceOfConfig(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "id" in value;
24
+ isInstance = isInstance && "revisionId" in value;
25
+ isInstance = isInstance && "createTime" in value;
26
+ isInstance = isInstance && "createdBy" in value;
27
+ isInstance = isInstance && "content" in value;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfConfig = instanceOfConfig;
31
+ function ConfigFromJSON(json) {
32
+ return ConfigFromJSONTyped(json, false);
33
+ }
34
+ exports.ConfigFromJSON = ConfigFromJSON;
35
+ function ConfigFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'revisionId': json['revisionId'],
42
+ 'createTime': (new Date(json['createTime'])),
43
+ 'createdBy': json['createdBy'],
44
+ 'content': (0, ConfigContent_1.ConfigContentFromJSON)(json['content']),
45
+ };
46
+ }
47
+ exports.ConfigFromJSONTyped = ConfigFromJSONTyped;
48
+ function ConfigToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'id': value.id,
57
+ 'revisionId': value.revisionId,
58
+ 'createTime': (value.createTime.toISOString()),
59
+ 'createdBy': value.createdBy,
60
+ 'content': (0, ConfigContent_1.ConfigContentToJSON)(value.content),
61
+ };
62
+ }
63
+ exports.ConfigToJSON = ConfigToJSON;
@@ -0,0 +1,37 @@
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: 0.1.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 ConfigContent
16
+ */
17
+ export interface ConfigContent {
18
+ /**
19
+ * The SaaS API that we are integrating with.
20
+ * @type {string}
21
+ * @memberof ConfigContent
22
+ */
23
+ provider: string;
24
+ /**
25
+ *
26
+ * @type {any}
27
+ * @memberof ConfigContent
28
+ */
29
+ read?: any | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ConfigContent interface.
33
+ */
34
+ export declare function instanceOfConfigContent(value: object): boolean;
35
+ export declare function ConfigContentFromJSON(json: any): ConfigContent;
36
+ export declare function ConfigContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigContent;
37
+ export declare function ConfigContentToJSON(value?: ConfigContent | null): any;
@@ -0,0 +1,53 @@
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: 0.1.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.ConfigContentToJSON = exports.ConfigContentFromJSONTyped = exports.ConfigContentFromJSON = exports.instanceOfConfigContent = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ConfigContent interface.
20
+ */
21
+ function instanceOfConfigContent(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "provider" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfConfigContent = instanceOfConfigContent;
27
+ function ConfigContentFromJSON(json) {
28
+ return ConfigContentFromJSONTyped(json, false);
29
+ }
30
+ exports.ConfigContentFromJSON = ConfigContentFromJSON;
31
+ function ConfigContentFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'provider': json['provider'],
37
+ 'read': !(0, runtime_1.exists)(json, 'read') ? undefined : json['read'],
38
+ };
39
+ }
40
+ exports.ConfigContentFromJSONTyped = ConfigContentFromJSONTyped;
41
+ function ConfigContentToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'provider': value.provider,
50
+ 'read': value.read,
51
+ };
52
+ }
53
+ exports.ConfigContentToJSON = ConfigContentToJSON;
@@ -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: 0.1.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 ConfigContentAllOf
16
+ */
17
+ export interface ConfigContentAllOf {
18
+ /**
19
+ *
20
+ * @type {any}
21
+ * @memberof ConfigContentAllOf
22
+ */
23
+ read?: any | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ConfigContentAllOf interface.
27
+ */
28
+ export declare function instanceOfConfigContentAllOf(value: object): boolean;
29
+ export declare function ConfigContentAllOfFromJSON(json: any): ConfigContentAllOf;
30
+ export declare function ConfigContentAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigContentAllOf;
31
+ export declare function ConfigContentAllOfToJSON(value?: ConfigContentAllOf | null): any;