@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,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.CreateGroupRequestToJSON = exports.CreateGroupRequestFromJSONTyped = exports.CreateGroupRequestFromJSON = exports.instanceOfCreateGroupRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the CreateGroupRequest interface.
19
+ */
20
+ function instanceOfCreateGroupRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "groupRef" in value;
23
+ isInstance = isInstance && "groupName" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfCreateGroupRequest = instanceOfCreateGroupRequest;
27
+ function CreateGroupRequestFromJSON(json) {
28
+ return CreateGroupRequestFromJSONTyped(json, false);
29
+ }
30
+ exports.CreateGroupRequestFromJSON = CreateGroupRequestFromJSON;
31
+ function CreateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'groupRef': json['groupRef'],
37
+ 'groupName': json['groupName'],
38
+ };
39
+ }
40
+ exports.CreateGroupRequestFromJSONTyped = CreateGroupRequestFromJSONTyped;
41
+ function CreateGroupRequestToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'groupRef': value.groupRef,
50
+ 'groupName': value.groupName,
51
+ };
52
+ }
53
+ exports.CreateGroupRequestToJSON = CreateGroupRequestToJSON;
@@ -0,0 +1,44 @@
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 { CreateInstallationRequestConfig } from './CreateInstallationRequestConfig';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateInstallationRequest
17
+ */
18
+ export interface CreateInstallationRequest {
19
+ /**
20
+ * The ID of the user group that has access to this installation.
21
+ * @type {string}
22
+ * @memberof CreateInstallationRequest
23
+ */
24
+ groupRef: string;
25
+ /**
26
+ * The ID of the SaaS connection tied to this installation.
27
+ * @type {string}
28
+ * @memberof CreateInstallationRequest
29
+ */
30
+ connectionId: string;
31
+ /**
32
+ *
33
+ * @type {CreateInstallationRequestConfig}
34
+ * @memberof CreateInstallationRequest
35
+ */
36
+ config: CreateInstallationRequestConfig;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CreateInstallationRequest interface.
40
+ */
41
+ export declare function instanceOfCreateInstallationRequest(value: object): boolean;
42
+ export declare function CreateInstallationRequestFromJSON(json: any): CreateInstallationRequest;
43
+ export declare function CreateInstallationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInstallationRequest;
44
+ export declare function CreateInstallationRequestToJSON(value?: CreateInstallationRequest | null): any;
@@ -0,0 +1,57 @@
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.CreateInstallationRequestToJSON = exports.CreateInstallationRequestFromJSONTyped = exports.CreateInstallationRequestFromJSON = exports.instanceOfCreateInstallationRequest = void 0;
17
+ const CreateInstallationRequestConfig_1 = require("./CreateInstallationRequestConfig");
18
+ /**
19
+ * Check if a given object implements the CreateInstallationRequest interface.
20
+ */
21
+ function instanceOfCreateInstallationRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "groupRef" in value;
24
+ isInstance = isInstance && "connectionId" in value;
25
+ isInstance = isInstance && "config" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfCreateInstallationRequest = instanceOfCreateInstallationRequest;
29
+ function CreateInstallationRequestFromJSON(json) {
30
+ return CreateInstallationRequestFromJSONTyped(json, false);
31
+ }
32
+ exports.CreateInstallationRequestFromJSON = CreateInstallationRequestFromJSON;
33
+ function CreateInstallationRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'groupRef': json['groupRef'],
39
+ 'connectionId': json['connectionId'],
40
+ 'config': (0, CreateInstallationRequestConfig_1.CreateInstallationRequestConfigFromJSON)(json['config']),
41
+ };
42
+ }
43
+ exports.CreateInstallationRequestFromJSONTyped = CreateInstallationRequestFromJSONTyped;
44
+ function CreateInstallationRequestToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'groupRef': value.groupRef,
53
+ 'connectionId': value.connectionId,
54
+ 'config': (0, CreateInstallationRequestConfig_1.CreateInstallationRequestConfigToJSON)(value.config),
55
+ };
56
+ }
57
+ exports.CreateInstallationRequestToJSON = CreateInstallationRequestToJSON;
@@ -0,0 +1,44 @@
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
+ * The config of the installation.
15
+ * @export
16
+ * @interface CreateInstallationRequestConfig
17
+ */
18
+ export interface CreateInstallationRequestConfig {
19
+ /**
20
+ * The ID of the revision that this config is based on.
21
+ * @type {string}
22
+ * @memberof CreateInstallationRequestConfig
23
+ */
24
+ revisionId: string;
25
+ /**
26
+ * The person who created the config, in the format of "consumer:{consumer-id}" or "builder:{builder-id}".
27
+ * @type {string}
28
+ * @memberof CreateInstallationRequestConfig
29
+ */
30
+ createdBy: string;
31
+ /**
32
+ *
33
+ * @type {ConfigContent}
34
+ * @memberof CreateInstallationRequestConfig
35
+ */
36
+ content: ConfigContent;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CreateInstallationRequestConfig interface.
40
+ */
41
+ export declare function instanceOfCreateInstallationRequestConfig(value: object): boolean;
42
+ export declare function CreateInstallationRequestConfigFromJSON(json: any): CreateInstallationRequestConfig;
43
+ export declare function CreateInstallationRequestConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInstallationRequestConfig;
44
+ export declare function CreateInstallationRequestConfigToJSON(value?: CreateInstallationRequestConfig | null): any;
@@ -0,0 +1,57 @@
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.CreateInstallationRequestConfigToJSON = exports.CreateInstallationRequestConfigFromJSONTyped = exports.CreateInstallationRequestConfigFromJSON = exports.instanceOfCreateInstallationRequestConfig = void 0;
17
+ const ConfigContent_1 = require("./ConfigContent");
18
+ /**
19
+ * Check if a given object implements the CreateInstallationRequestConfig interface.
20
+ */
21
+ function instanceOfCreateInstallationRequestConfig(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "revisionId" in value;
24
+ isInstance = isInstance && "createdBy" in value;
25
+ isInstance = isInstance && "content" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfCreateInstallationRequestConfig = instanceOfCreateInstallationRequestConfig;
29
+ function CreateInstallationRequestConfigFromJSON(json) {
30
+ return CreateInstallationRequestConfigFromJSONTyped(json, false);
31
+ }
32
+ exports.CreateInstallationRequestConfigFromJSON = CreateInstallationRequestConfigFromJSON;
33
+ function CreateInstallationRequestConfigFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'revisionId': json['revisionId'],
39
+ 'createdBy': json['createdBy'],
40
+ 'content': (0, ConfigContent_1.ConfigContentFromJSON)(json['content']),
41
+ };
42
+ }
43
+ exports.CreateInstallationRequestConfigFromJSONTyped = CreateInstallationRequestConfigFromJSONTyped;
44
+ function CreateInstallationRequestConfigToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'revisionId': value.revisionId,
53
+ 'createdBy': value.createdBy,
54
+ 'content': (0, ConfigContent_1.ConfigContentToJSON)(value.content),
55
+ };
56
+ }
57
+ exports.CreateInstallationRequestConfigToJSON = CreateInstallationRequestConfigToJSON;
@@ -0,0 +1,44 @@
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 { CreateIntegrationRequestLatestRevision } from './CreateIntegrationRequestLatestRevision';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateIntegrationRequest
17
+ */
18
+ export interface CreateIntegrationRequest {
19
+ /**
20
+ * The integration name.
21
+ * @type {string}
22
+ * @memberof CreateIntegrationRequest
23
+ */
24
+ name: string;
25
+ /**
26
+ * The provider name (e.g. "salesforce", "hubspot")
27
+ * @type {string}
28
+ * @memberof CreateIntegrationRequest
29
+ */
30
+ provider: string;
31
+ /**
32
+ *
33
+ * @type {CreateIntegrationRequestLatestRevision}
34
+ * @memberof CreateIntegrationRequest
35
+ */
36
+ latestRevision?: CreateIntegrationRequestLatestRevision;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CreateIntegrationRequest interface.
40
+ */
41
+ export declare function instanceOfCreateIntegrationRequest(value: object): boolean;
42
+ export declare function CreateIntegrationRequestFromJSON(json: any): CreateIntegrationRequest;
43
+ export declare function CreateIntegrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateIntegrationRequest;
44
+ export declare function CreateIntegrationRequestToJSON(value?: CreateIntegrationRequest | null): any;
@@ -0,0 +1,57 @@
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.CreateIntegrationRequestToJSON = exports.CreateIntegrationRequestFromJSONTyped = exports.CreateIntegrationRequestFromJSON = exports.instanceOfCreateIntegrationRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const CreateIntegrationRequestLatestRevision_1 = require("./CreateIntegrationRequestLatestRevision");
19
+ /**
20
+ * Check if a given object implements the CreateIntegrationRequest interface.
21
+ */
22
+ function instanceOfCreateIntegrationRequest(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "provider" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfCreateIntegrationRequest = instanceOfCreateIntegrationRequest;
29
+ function CreateIntegrationRequestFromJSON(json) {
30
+ return CreateIntegrationRequestFromJSONTyped(json, false);
31
+ }
32
+ exports.CreateIntegrationRequestFromJSON = CreateIntegrationRequestFromJSON;
33
+ function CreateIntegrationRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'provider': json['provider'],
40
+ 'latestRevision': !(0, runtime_1.exists)(json, 'latestRevision') ? undefined : (0, CreateIntegrationRequestLatestRevision_1.CreateIntegrationRequestLatestRevisionFromJSON)(json['latestRevision']),
41
+ };
42
+ }
43
+ exports.CreateIntegrationRequestFromJSONTyped = CreateIntegrationRequestFromJSONTyped;
44
+ function CreateIntegrationRequestToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'name': value.name,
53
+ 'provider': value.provider,
54
+ 'latestRevision': (0, CreateIntegrationRequestLatestRevision_1.CreateIntegrationRequestLatestRevisionToJSON)(value.latestRevision),
55
+ };
56
+ }
57
+ exports.CreateIntegrationRequestToJSON = CreateIntegrationRequestToJSON;
@@ -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
+ * If included, creating this integration will also create a new revision of the integration.
14
+ * @export
15
+ * @interface CreateIntegrationRequestLatestRevision
16
+ */
17
+ export interface CreateIntegrationRequestLatestRevision {
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 CreateIntegrationRequestLatestRevision
22
+ */
23
+ sourceZipUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateIntegrationRequestLatestRevision interface.
27
+ */
28
+ export declare function instanceOfCreateIntegrationRequestLatestRevision(value: object): boolean;
29
+ export declare function CreateIntegrationRequestLatestRevisionFromJSON(json: any): CreateIntegrationRequestLatestRevision;
30
+ export declare function CreateIntegrationRequestLatestRevisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateIntegrationRequestLatestRevision;
31
+ export declare function CreateIntegrationRequestLatestRevisionToJSON(value?: CreateIntegrationRequestLatestRevision | 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.CreateIntegrationRequestLatestRevisionToJSON = exports.CreateIntegrationRequestLatestRevisionFromJSONTyped = exports.CreateIntegrationRequestLatestRevisionFromJSON = exports.instanceOfCreateIntegrationRequestLatestRevision = void 0;
17
+ /**
18
+ * Check if a given object implements the CreateIntegrationRequestLatestRevision interface.
19
+ */
20
+ function instanceOfCreateIntegrationRequestLatestRevision(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "sourceZipUrl" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfCreateIntegrationRequestLatestRevision = instanceOfCreateIntegrationRequestLatestRevision;
26
+ function CreateIntegrationRequestLatestRevisionFromJSON(json) {
27
+ return CreateIntegrationRequestLatestRevisionFromJSONTyped(json, false);
28
+ }
29
+ exports.CreateIntegrationRequestLatestRevisionFromJSON = CreateIntegrationRequestLatestRevisionFromJSON;
30
+ function CreateIntegrationRequestLatestRevisionFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'sourceZipUrl': json['sourceZipUrl'],
36
+ };
37
+ }
38
+ exports.CreateIntegrationRequestLatestRevisionFromJSONTyped = CreateIntegrationRequestLatestRevisionFromJSONTyped;
39
+ function CreateIntegrationRequestLatestRevisionToJSON(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.CreateIntegrationRequestLatestRevisionToJSON = CreateIntegrationRequestLatestRevisionToJSON;
@@ -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 CreateProjectRequest
16
+ */
17
+ export interface CreateProjectRequest {
18
+ /**
19
+ * The app name.
20
+ * @type {string}
21
+ * @memberof CreateProjectRequest
22
+ */
23
+ appName: string;
24
+ /**
25
+ * The project name.
26
+ * @type {string}
27
+ * @memberof CreateProjectRequest
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreateProjectRequest interface.
33
+ */
34
+ export declare function instanceOfCreateProjectRequest(value: object): boolean;
35
+ export declare function CreateProjectRequestFromJSON(json: any): CreateProjectRequest;
36
+ export declare function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest;
37
+ export declare function CreateProjectRequestToJSON(value?: CreateProjectRequest | 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.CreateProjectRequestToJSON = exports.CreateProjectRequestFromJSONTyped = exports.CreateProjectRequestFromJSON = exports.instanceOfCreateProjectRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the CreateProjectRequest interface.
19
+ */
20
+ function instanceOfCreateProjectRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "appName" in value;
23
+ isInstance = isInstance && "name" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfCreateProjectRequest = instanceOfCreateProjectRequest;
27
+ function CreateProjectRequestFromJSON(json) {
28
+ return CreateProjectRequestFromJSONTyped(json, false);
29
+ }
30
+ exports.CreateProjectRequestFromJSON = CreateProjectRequestFromJSON;
31
+ function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'appName': json['appName'],
37
+ 'name': json['name'],
38
+ };
39
+ }
40
+ exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
41
+ function CreateProjectRequestToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'appName': value.appName,
50
+ 'name': value.name,
51
+ };
52
+ }
53
+ exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 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 CreateProviderAppRequest
16
+ */
17
+ export interface CreateProviderAppRequest {
18
+ /**
19
+ * The ID used by the provider to identify the app (optional).
20
+ * @type {string}
21
+ * @memberof CreateProviderAppRequest
22
+ */
23
+ externalRef?: string;
24
+ /**
25
+ * The SaaS provider that this app connects to.
26
+ * @type {string}
27
+ * @memberof CreateProviderAppRequest
28
+ */
29
+ provider: string;
30
+ /**
31
+ * The OAuth client ID for this app.
32
+ * @type {string}
33
+ * @memberof CreateProviderAppRequest
34
+ */
35
+ clientId: string;
36
+ /**
37
+ * The OAuth client secret for this app.
38
+ * @type {string}
39
+ * @memberof CreateProviderAppRequest
40
+ */
41
+ clientSecret: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CreateProviderAppRequest interface.
45
+ */
46
+ export declare function instanceOfCreateProviderAppRequest(value: object): boolean;
47
+ export declare function CreateProviderAppRequestFromJSON(json: any): CreateProviderAppRequest;
48
+ export declare function CreateProviderAppRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProviderAppRequest;
49
+ export declare function CreateProviderAppRequestToJSON(value?: CreateProviderAppRequest | 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: 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.CreateProviderAppRequestToJSON = exports.CreateProviderAppRequestFromJSONTyped = exports.CreateProviderAppRequestFromJSON = exports.instanceOfCreateProviderAppRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the CreateProviderAppRequest interface.
20
+ */
21
+ function instanceOfCreateProviderAppRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "provider" in value;
24
+ isInstance = isInstance && "clientId" in value;
25
+ isInstance = isInstance && "clientSecret" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfCreateProviderAppRequest = instanceOfCreateProviderAppRequest;
29
+ function CreateProviderAppRequestFromJSON(json) {
30
+ return CreateProviderAppRequestFromJSONTyped(json, false);
31
+ }
32
+ exports.CreateProviderAppRequestFromJSON = CreateProviderAppRequestFromJSON;
33
+ function CreateProviderAppRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'externalRef': !(0, runtime_1.exists)(json, 'externalRef') ? undefined : json['externalRef'],
39
+ 'provider': json['provider'],
40
+ 'clientId': json['clientId'],
41
+ 'clientSecret': json['clientSecret'],
42
+ };
43
+ }
44
+ exports.CreateProviderAppRequestFromJSONTyped = CreateProviderAppRequestFromJSONTyped;
45
+ function CreateProviderAppRequestToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'externalRef': value.externalRef,
54
+ 'provider': value.provider,
55
+ 'clientId': value.clientId,
56
+ 'clientSecret': value.clientSecret,
57
+ };
58
+ }
59
+ exports.CreateProviderAppRequestToJSON = CreateProviderAppRequestToJSON;