@amp-labs/react 1.0.1 → 1.1.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 (203) hide show
  1. package/build/generated-sources/api/src/apis/DefaultApi.d.ts +78 -6
  2. package/build/generated-sources/api/src/apis/DefaultApi.js +80 -3
  3. package/build/generated-sources/api/src/models/BaseConfigContent.d.ts +8 -1
  4. package/build/generated-sources/api/src/models/BaseConfigContent.js +4 -1
  5. package/build/generated-sources/api/src/models/BaseReadConfig.d.ts +1 -1
  6. package/build/generated-sources/api/src/models/BaseReadConfig.js +1 -1
  7. package/build/generated-sources/api/src/models/BaseReadConfigStandardObject.d.ts +2 -2
  8. package/build/generated-sources/api/src/models/BaseReadConfigStandardObject.js +1 -1
  9. package/build/generated-sources/api/src/models/BaseWriteConfig.d.ts +34 -0
  10. package/build/generated-sources/api/src/models/BaseWriteConfig.js +51 -0
  11. package/build/generated-sources/api/src/models/BaseWriteConfigObject.d.ts +31 -0
  12. package/build/generated-sources/api/src/models/BaseWriteConfigObject.js +50 -0
  13. package/build/generated-sources/api/src/models/BatchUpsertIntegrationsRequest.d.ts +1 -1
  14. package/build/generated-sources/api/src/models/BatchUpsertIntegrationsRequest.js +1 -1
  15. package/build/generated-sources/api/src/models/Config.d.ts +1 -1
  16. package/build/generated-sources/api/src/models/Config.js +1 -1
  17. package/build/generated-sources/api/src/models/ConfigContent.d.ts +7 -1
  18. package/build/generated-sources/api/src/models/ConfigContent.js +3 -1
  19. package/build/generated-sources/api/src/models/ConfigContentAllOf.d.ts +7 -1
  20. package/build/generated-sources/api/src/models/ConfigContentAllOf.js +3 -1
  21. package/build/generated-sources/api/src/models/Connection.d.ts +1 -1
  22. package/build/generated-sources/api/src/models/Connection.js +1 -1
  23. package/build/generated-sources/api/src/models/Consumer.d.ts +1 -1
  24. package/build/generated-sources/api/src/models/Consumer.js +1 -1
  25. package/build/generated-sources/api/src/models/CreateConsumerRequest.d.ts +1 -1
  26. package/build/generated-sources/api/src/models/CreateConsumerRequest.js +1 -1
  27. package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +1 -1
  28. package/build/generated-sources/api/src/models/CreateDestinationRequest.js +1 -1
  29. package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +1 -1
  30. package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.js +1 -1
  31. package/build/generated-sources/api/src/models/CreateGroupRequest.d.ts +1 -1
  32. package/build/generated-sources/api/src/models/CreateGroupRequest.js +1 -1
  33. package/build/generated-sources/api/src/models/CreateInstallationRequest.d.ts +3 -3
  34. package/build/generated-sources/api/src/models/CreateInstallationRequest.js +3 -3
  35. package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.d.ts +4 -4
  36. package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.js +4 -5
  37. package/build/generated-sources/api/src/models/CreateIntegrationRequest.d.ts +1 -1
  38. package/build/generated-sources/api/src/models/CreateIntegrationRequest.js +1 -1
  39. package/build/generated-sources/api/src/models/CreateIntegrationRequestLatestRevision.d.ts +1 -1
  40. package/build/generated-sources/api/src/models/CreateIntegrationRequestLatestRevision.js +1 -1
  41. package/build/generated-sources/api/src/models/CreateProjectRequest.d.ts +1 -1
  42. package/build/generated-sources/api/src/models/CreateProjectRequest.js +1 -1
  43. package/build/generated-sources/api/src/models/CreateProviderAppRequest.d.ts +7 -1
  44. package/build/generated-sources/api/src/models/CreateProviderAppRequest.js +3 -1
  45. package/build/generated-sources/api/src/models/Group.d.ts +1 -1
  46. package/build/generated-sources/api/src/models/Group.js +1 -1
  47. package/build/generated-sources/api/src/models/HydratedIntegration.d.ts +8 -1
  48. package/build/generated-sources/api/src/models/HydratedIntegration.js +4 -1
  49. package/build/generated-sources/api/src/models/HydratedIntegrationField.d.ts +1 -1
  50. package/build/generated-sources/api/src/models/HydratedIntegrationField.js +1 -1
  51. package/build/generated-sources/api/src/models/HydratedIntegrationFieldExistent.d.ts +1 -1
  52. package/build/generated-sources/api/src/models/HydratedIntegrationFieldExistent.js +1 -1
  53. package/build/generated-sources/api/src/models/HydratedIntegrationObject.d.ts +1 -1
  54. package/build/generated-sources/api/src/models/HydratedIntegrationObject.js +1 -1
  55. package/build/generated-sources/api/src/models/HydratedIntegrationRead.d.ts +1 -1
  56. package/build/generated-sources/api/src/models/HydratedIntegrationRead.js +1 -1
  57. package/build/generated-sources/api/src/models/HydratedIntegrationWrite.d.ts +32 -0
  58. package/build/generated-sources/api/src/models/HydratedIntegrationWrite.js +51 -0
  59. package/build/generated-sources/api/src/models/HydratedIntegrationWriteObject.d.ts +37 -0
  60. package/build/generated-sources/api/src/models/HydratedIntegrationWriteObject.js +53 -0
  61. package/build/generated-sources/api/src/models/HydratedRevision.d.ts +1 -1
  62. package/build/generated-sources/api/src/models/HydratedRevision.js +1 -1
  63. package/build/generated-sources/api/src/models/ImportConnectionRequest.d.ts +1 -7
  64. package/build/generated-sources/api/src/models/ImportConnectionRequest.js +1 -4
  65. package/build/generated-sources/api/src/models/ImportInstallationRequest.d.ts +7 -1
  66. package/build/generated-sources/api/src/models/ImportInstallationRequest.js +4 -1
  67. package/build/generated-sources/api/src/models/ImportInstallationRequestConfig.d.ts +1 -1
  68. package/build/generated-sources/api/src/models/ImportInstallationRequestConfig.js +1 -1
  69. package/build/generated-sources/api/src/models/Installation.d.ts +1 -1
  70. package/build/generated-sources/api/src/models/Installation.js +1 -1
  71. package/build/generated-sources/api/src/models/Integration.d.ts +1 -1
  72. package/build/generated-sources/api/src/models/Integration.js +1 -1
  73. package/build/generated-sources/api/src/models/Integration1.d.ts +8 -1
  74. package/build/generated-sources/api/src/models/Integration1.js +4 -1
  75. package/build/generated-sources/api/src/models/IntegrationField.d.ts +1 -1
  76. package/build/generated-sources/api/src/models/IntegrationField.js +1 -1
  77. package/build/generated-sources/api/src/models/IntegrationFieldExistent.d.ts +1 -1
  78. package/build/generated-sources/api/src/models/IntegrationFieldExistent.js +1 -1
  79. package/build/generated-sources/api/src/models/IntegrationFieldMapping.d.ts +1 -1
  80. package/build/generated-sources/api/src/models/IntegrationFieldMapping.js +1 -1
  81. package/build/generated-sources/api/src/models/IntegrationObject.d.ts +1 -1
  82. package/build/generated-sources/api/src/models/IntegrationObject.js +1 -1
  83. package/build/generated-sources/api/src/models/IntegrationRead.d.ts +1 -1
  84. package/build/generated-sources/api/src/models/IntegrationRead.js +1 -1
  85. package/build/generated-sources/api/src/models/IntegrationWrite.d.ts +32 -0
  86. package/build/generated-sources/api/src/models/IntegrationWrite.js +51 -0
  87. package/build/generated-sources/api/src/models/IntegrationWriteObject.d.ts +31 -0
  88. package/build/generated-sources/api/src/models/IntegrationWriteObject.js +50 -0
  89. package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +2 -2
  90. package/build/generated-sources/api/src/models/OauthConnectRequest.js +2 -3
  91. package/build/generated-sources/api/src/models/Operation.d.ts +7 -13
  92. package/build/generated-sources/api/src/models/Operation.js +4 -7
  93. package/build/generated-sources/api/src/models/OperationError.d.ts +1 -1
  94. package/build/generated-sources/api/src/models/OperationError.js +1 -1
  95. package/build/generated-sources/api/src/models/OptionalFieldsAutoOption.d.ts +1 -1
  96. package/build/generated-sources/api/src/models/OptionalFieldsAutoOption.js +1 -1
  97. package/build/generated-sources/api/src/models/Project.d.ts +1 -1
  98. package/build/generated-sources/api/src/models/Project.js +1 -1
  99. package/build/generated-sources/api/src/models/ProjectMembership.d.ts +1 -1
  100. package/build/generated-sources/api/src/models/ProjectMembership.js +1 -1
  101. package/build/generated-sources/api/src/models/ProviderApp.d.ts +1 -1
  102. package/build/generated-sources/api/src/models/ProviderApp.js +1 -1
  103. package/build/generated-sources/api/src/models/Revision.d.ts +1 -1
  104. package/build/generated-sources/api/src/models/Revision.js +1 -1
  105. package/build/generated-sources/api/src/models/SignedUrl.d.ts +43 -0
  106. package/build/generated-sources/api/src/models/SignedUrl.js +56 -0
  107. package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.d.ts +8 -1
  108. package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.js +4 -1
  109. package/build/generated-sources/api/src/models/UpdateInstallationRequest.d.ts +1 -1
  110. package/build/generated-sources/api/src/models/UpdateInstallationRequest.js +1 -1
  111. package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallation.d.ts +1 -1
  112. package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallation.js +1 -1
  113. package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.d.ts +1 -1
  114. package/build/generated-sources/api/src/models/UpdateInstallationRequestInstallationConfig.js +1 -1
  115. package/build/generated-sources/api/src/models/UpdateProjectRequest.d.ts +1 -1
  116. package/build/generated-sources/api/src/models/UpdateProjectRequest.js +1 -1
  117. package/build/generated-sources/api/src/models/UpdateProjectRequestProject.d.ts +1 -1
  118. package/build/generated-sources/api/src/models/UpdateProjectRequestProject.js +1 -1
  119. package/build/generated-sources/api/src/models/UpdateProviderAppRequest.d.ts +1 -1
  120. package/build/generated-sources/api/src/models/UpdateProviderAppRequest.js +1 -1
  121. package/build/generated-sources/api/src/models/UpdateProviderAppRequestProviderApp.d.ts +7 -1
  122. package/build/generated-sources/api/src/models/UpdateProviderAppRequestProviderApp.js +3 -1
  123. package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.d.ts +1 -1
  124. package/build/generated-sources/api/src/models/UpsertProjectMembershipRequest.js +1 -1
  125. package/build/generated-sources/api/src/models/index.d.ts +7 -0
  126. package/build/generated-sources/api/src/models/index.js +7 -0
  127. package/build/generated-sources/api/src/runtime.d.ts +1 -1
  128. package/build/generated-sources/api/src/runtime.js +1 -1
  129. package/build/src/assets/NavIcon.d.ts +1 -0
  130. package/build/src/assets/NavIcon.js +3 -2
  131. package/build/src/assets/TrashIcon.d.ts +1 -0
  132. package/build/src/assets/TrashIcon.js +9 -0
  133. package/build/src/components/AmpersandProvider/AmpersandProvider.js +2 -2
  134. package/build/src/components/Configure/ConfigureInstallationBase.js +14 -2
  135. package/build/src/components/Configure/CreateInstallation.js +11 -14
  136. package/build/src/components/Configure/InstallIntegration.js +1 -2
  137. package/build/src/components/Configure/ObjectManagementNav/UninstallInstallation.d.ts +7 -0
  138. package/build/src/components/Configure/ObjectManagementNav/UninstallInstallation.js +15 -0
  139. package/build/src/components/Configure/ObjectManagementNav/index.js +17 -9
  140. package/build/src/components/Configure/ProtectedConnectionLayout.d.ts +7 -2
  141. package/build/src/components/Configure/ProtectedConnectionLayout.js +15 -9
  142. package/build/src/components/Configure/UninstallContent.d.ts +1 -0
  143. package/build/src/components/Configure/UninstallContent.js +44 -0
  144. package/build/src/components/Configure/UpdateInstallation.js +10 -21
  145. package/build/src/components/Configure/fields/{FieldMapping.d.ts → FieldMappings/FieldMapping.d.ts} +2 -3
  146. package/build/src/components/Configure/fields/{FieldMapping.js → FieldMappings/FieldMapping.js} +12 -11
  147. package/build/src/components/Configure/fields/{RequiredFieldMappings.js → FieldMappings/RequiredFieldMappings.js} +9 -9
  148. package/build/src/components/Configure/fields/FieldMappings/index.d.ts +3 -0
  149. package/build/src/components/Configure/fields/FieldMappings/index.js +7 -0
  150. package/build/src/components/Configure/fields/FieldMappings/setFieldMapping.d.ts +3 -0
  151. package/build/src/components/Configure/fields/FieldMappings/setFieldMapping.js +18 -0
  152. package/build/src/components/Configure/fields/{OptionalFields.js → OptionalFields/OptionalFields.js} +8 -19
  153. package/build/src/components/Configure/fields/OptionalFields/index.d.ts +2 -0
  154. package/build/src/components/Configure/fields/OptionalFields/index.js +5 -0
  155. package/build/src/components/Configure/fields/OptionalFields/setOptionalField.d.ts +3 -0
  156. package/build/src/components/Configure/fields/OptionalFields/setOptionalField.js +21 -0
  157. package/build/src/components/Configure/state/ConfigurationStateProvider.d.ts +47 -1
  158. package/build/src/components/Configure/state/ConfigurationStateProvider.js +28 -6
  159. package/build/src/components/Configure/state/HydratedRevisionContext.js +3 -6
  160. package/build/src/components/Configure/state/utils.d.ts +4 -16
  161. package/build/src/components/Configure/state/utils.js +28 -63
  162. package/build/src/components/Configure/types.d.ts +6 -9
  163. package/build/src/components/Configure/utils.d.ts +6 -4
  164. package/build/src/components/Configure/utils.js +17 -16
  165. package/build/src/components/Connect/ConnectProvider.d.ts +9 -0
  166. package/build/src/components/Connect/ConnectProvider.js +18 -0
  167. package/build/src/components/{OAuthPopup → Connect}/OAuthPopup.js +3 -3
  168. package/build/src/components/Oauth/Hubspot/HubspotLandingContent.d.ts +7 -0
  169. package/build/src/components/Oauth/Hubspot/HubspotLandingContent.js +10 -0
  170. package/build/src/components/Oauth/Hubspot/HubspotOauthFlow.d.ts +15 -0
  171. package/build/src/components/Oauth/Hubspot/HubspotOauthFlow.js +50 -0
  172. package/build/src/components/Oauth/OAuthErrorAlert.d.ts +5 -0
  173. package/build/src/components/Oauth/OAuthErrorAlert.js +12 -0
  174. package/build/src/components/{Salesforce → Oauth/Salesforce}/SalesforceOauthFlow.d.ts +2 -2
  175. package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +57 -0
  176. package/build/src/components/Oauth/Salesforce/SubdomainEntry.d.ts +8 -0
  177. package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +12 -0
  178. package/build/src/components/Oauth/fetchOAuthCallbackURL.d.ts +1 -0
  179. package/build/src/components/Oauth/fetchOAuthCallbackURL.js +29 -0
  180. package/build/src/components/ThemeProvider/Button/buttonTheme.d.ts +13 -0
  181. package/build/src/components/ThemeProvider/Button/buttonTheme.js +17 -0
  182. package/build/src/components/ThemeProvider/Button/index.d.ts +2 -0
  183. package/build/src/components/ThemeProvider/Button/index.js +5 -0
  184. package/build/src/components/ThemeProvider/index.js +21 -0
  185. package/build/src/components/index.d.ts +1 -0
  186. package/build/src/components/index.js +1 -0
  187. package/build/src/constants.d.ts +1 -0
  188. package/build/src/constants.js +2 -1
  189. package/build/src/context/{ApiKeyContext.d.ts → ApiKeyProvider.d.ts} +1 -0
  190. package/build/src/context/ApiKeyProvider.js +14 -0
  191. package/build/src/context/ConnectionsContext.d.ts +5 -4
  192. package/build/src/context/ConnectionsContext.js +13 -5
  193. package/build/src/context/InstallIntegrationContext.d.ts +1 -0
  194. package/build/src/context/InstallIntegrationContext.js +15 -10
  195. package/build/src/context/IntegrationListContext.js +3 -3
  196. package/build/src/context/ProjectContext.js +3 -3
  197. package/build/src/hooks/useIsIntegrationInstalled.js +2 -2
  198. package/package.json +3 -2
  199. package/build/src/components/Salesforce/SalesforceOauthFlow.js +0 -78
  200. package/build/src/context/ApiKeyContext.js +0 -6
  201. /package/build/src/components/Configure/fields/{RequiredFieldMappings.d.ts → FieldMappings/RequiredFieldMappings.d.ts} +0 -0
  202. /package/build/src/components/Configure/fields/{OptionalFields.d.ts → OptionalFields/OptionalFields.d.ts} +0 -0
  203. /package/build/src/components/{OAuthPopup → Connect}/OAuthPopup.d.ts +0 -0
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -33,6 +33,7 @@ function ConfigContentAllOfFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'read': !(0, runtime_1.exists)(json, 'read') ? undefined : json['read'],
36
+ 'write': !(0, runtime_1.exists)(json, 'write') ? undefined : json['write'],
36
37
  };
37
38
  }
38
39
  exports.ConfigContentAllOfFromJSONTyped = ConfigContentAllOfFromJSONTyped;
@@ -45,6 +46,7 @@ function ConfigContentAllOfToJSON(value) {
45
46
  }
46
47
  return {
47
48
  'read': value.read,
49
+ 'write': value.write,
48
50
  };
49
51
  }
50
52
  exports.ConfigContentAllOfToJSON = ConfigContentAllOfToJSON;
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,11 +23,11 @@ export interface CreateInstallationRequest {
23
23
  */
24
24
  groupRef: string;
25
25
  /**
26
- * The ID of the SaaS connection tied to this installation.
26
+ * The ID of the SaaS connection tied to this installation. If omitted the default connection for this group will be used.
27
27
  * @type {string}
28
28
  * @memberof CreateInstallationRequest
29
29
  */
30
- connectionId: string;
30
+ connectionId?: string;
31
31
  /**
32
32
  *
33
33
  * @type {CreateInstallationRequestConfig}
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateInstallationRequestToJSON = exports.CreateInstallationRequestFromJSONTyped = exports.CreateInstallationRequestFromJSON = exports.instanceOfCreateInstallationRequest = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  const CreateInstallationRequestConfig_1 = require("./CreateInstallationRequestConfig");
18
19
  /**
19
20
  * Check if a given object implements the CreateInstallationRequest interface.
@@ -21,7 +22,6 @@ const CreateInstallationRequestConfig_1 = require("./CreateInstallationRequestCo
21
22
  function instanceOfCreateInstallationRequest(value) {
22
23
  let isInstance = true;
23
24
  isInstance = isInstance && "groupRef" in value;
24
- isInstance = isInstance && "connectionId" in value;
25
25
  isInstance = isInstance && "config" in value;
26
26
  return isInstance;
27
27
  }
@@ -36,7 +36,7 @@ function CreateInstallationRequestFromJSONTyped(json, ignoreDiscriminator) {
36
36
  }
37
37
  return {
38
38
  'groupRef': json['groupRef'],
39
- 'connectionId': json['connectionId'],
39
+ 'connectionId': !(0, runtime_1.exists)(json, 'connectionId') ? undefined : json['connectionId'],
40
40
  'config': (0, CreateInstallationRequestConfig_1.CreateInstallationRequestConfigFromJSON)(json['config']),
41
41
  };
42
42
  }
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,17 +17,17 @@ import type { ConfigContent } from './ConfigContent';
17
17
  */
18
18
  export interface CreateInstallationRequestConfig {
19
19
  /**
20
- * The ID of the revision that this config is based on.
20
+ * The ID of the revision that this config is based on. If omitted, the latest revision is assumed.
21
21
  * @type {string}
22
22
  * @memberof CreateInstallationRequestConfig
23
23
  */
24
- revisionId: string;
24
+ revisionId?: string;
25
25
  /**
26
26
  * The person who created the config, in the format of "consumer:{consumer-id}" or "builder:{builder-id}".
27
27
  * @type {string}
28
28
  * @memberof CreateInstallationRequestConfig
29
29
  */
30
- createdBy: string;
30
+ createdBy?: string;
31
31
  /**
32
32
  *
33
33
  * @type {ConfigContent}
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,14 +14,13 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateInstallationRequestConfigToJSON = exports.CreateInstallationRequestConfigFromJSONTyped = exports.CreateInstallationRequestConfigFromJSON = exports.instanceOfCreateInstallationRequestConfig = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  const ConfigContent_1 = require("./ConfigContent");
18
19
  /**
19
20
  * Check if a given object implements the CreateInstallationRequestConfig interface.
20
21
  */
21
22
  function instanceOfCreateInstallationRequestConfig(value) {
22
23
  let isInstance = true;
23
- isInstance = isInstance && "revisionId" in value;
24
- isInstance = isInstance && "createdBy" in value;
25
24
  isInstance = isInstance && "content" in value;
26
25
  return isInstance;
27
26
  }
@@ -35,8 +34,8 @@ function CreateInstallationRequestConfigFromJSONTyped(json, ignoreDiscriminator)
35
34
  return json;
36
35
  }
37
36
  return {
38
- 'revisionId': json['revisionId'],
39
- 'createdBy': json['createdBy'],
37
+ 'revisionId': !(0, runtime_1.exists)(json, 'revisionId') ? undefined : json['revisionId'],
38
+ 'createdBy': !(0, runtime_1.exists)(json, 'createdBy') ? undefined : json['createdBy'],
40
39
  'content': (0, ConfigContent_1.ConfigContentFromJSON)(json['content']),
41
40
  };
42
41
  }
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -39,6 +39,12 @@ export interface CreateProviderAppRequest {
39
39
  * @memberof CreateProviderAppRequest
40
40
  */
41
41
  clientSecret: string;
42
+ /**
43
+ * The OAuth scopes for this app.
44
+ * @type {Array<string>}
45
+ * @memberof CreateProviderAppRequest
46
+ */
47
+ scopes?: Array<string>;
42
48
  }
43
49
  /**
44
50
  * Check if a given object implements the CreateProviderAppRequest interface.
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -39,6 +39,7 @@ function CreateProviderAppRequestFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'provider': json['provider'],
40
40
  'clientId': json['clientId'],
41
41
  'clientSecret': json['clientSecret'],
42
+ 'scopes': !(0, runtime_1.exists)(json, 'scopes') ? undefined : json['scopes'],
42
43
  };
43
44
  }
44
45
  exports.CreateProviderAppRequestFromJSONTyped = CreateProviderAppRequestFromJSONTyped;
@@ -54,6 +55,7 @@ function CreateProviderAppRequestToJSON(value) {
54
55
  'provider': value.provider,
55
56
  'clientId': value.clientId,
56
57
  'clientSecret': value.clientSecret,
58
+ 'scopes': value.scopes,
57
59
  };
58
60
  }
59
61
  exports.CreateProviderAppRequestToJSON = CreateProviderAppRequestToJSON;
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { HydratedIntegrationRead } from './HydratedIntegrationRead';
13
+ import type { HydratedIntegrationWrite } from './HydratedIntegrationWrite';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -40,6 +41,12 @@ export interface HydratedIntegration {
40
41
  * @memberof HydratedIntegration
41
42
  */
42
43
  read?: HydratedIntegrationRead;
44
+ /**
45
+ *
46
+ * @type {HydratedIntegrationWrite}
47
+ * @memberof HydratedIntegration
48
+ */
49
+ write?: HydratedIntegrationWrite;
43
50
  }
44
51
  /**
45
52
  * Check if a given object implements the HydratedIntegration interface.
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.HydratedIntegrationToJSON = exports.HydratedIntegrationFromJSONTyped = exports.HydratedIntegrationFromJSON = exports.instanceOfHydratedIntegration = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const HydratedIntegrationRead_1 = require("./HydratedIntegrationRead");
19
+ const HydratedIntegrationWrite_1 = require("./HydratedIntegrationWrite");
19
20
  /**
20
21
  * Check if a given object implements the HydratedIntegration interface.
21
22
  */
@@ -39,6 +40,7 @@ function HydratedIntegrationFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'displayName': !(0, runtime_1.exists)(json, 'displayName') ? undefined : json['displayName'],
40
41
  'provider': json['provider'],
41
42
  'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, HydratedIntegrationRead_1.HydratedIntegrationReadFromJSON)(json['read']),
43
+ 'write': !(0, runtime_1.exists)(json, 'write') ? undefined : (0, HydratedIntegrationWrite_1.HydratedIntegrationWriteFromJSON)(json['write']),
42
44
  };
43
45
  }
44
46
  exports.HydratedIntegrationFromJSONTyped = HydratedIntegrationFromJSONTyped;
@@ -54,6 +56,7 @@ function HydratedIntegrationToJSON(value) {
54
56
  'displayName': value.displayName,
55
57
  'provider': value.provider,
56
58
  'read': (0, HydratedIntegrationRead_1.HydratedIntegrationReadToJSON)(value.read),
59
+ 'write': (0, HydratedIntegrationWrite_1.HydratedIntegrationWriteToJSON)(value.write),
57
60
  };
58
61
  }
59
62
  exports.HydratedIntegrationToJSON = HydratedIntegrationToJSON;
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Ampersand public API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.0
5
+ * The version of the OpenAPI document: 1.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Ampersand public API
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.0
8
+ * The version of the OpenAPI document: 1.0.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { HydratedIntegrationWriteObject } from './HydratedIntegrationWriteObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface HydratedIntegrationWrite
17
+ */
18
+ export interface HydratedIntegrationWrite {
19
+ /**
20
+ *
21
+ * @type {Array<HydratedIntegrationWriteObject>}
22
+ * @memberof HydratedIntegrationWrite
23
+ */
24
+ objects?: Array<HydratedIntegrationWriteObject>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the HydratedIntegrationWrite interface.
28
+ */
29
+ export declare function instanceOfHydratedIntegrationWrite(value: object): boolean;
30
+ export declare function HydratedIntegrationWriteFromJSON(json: any): HydratedIntegrationWrite;
31
+ export declare function HydratedIntegrationWriteFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegrationWrite;
32
+ export declare function HydratedIntegrationWriteToJSON(value?: HydratedIntegrationWrite | 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: 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.HydratedIntegrationWriteToJSON = exports.HydratedIntegrationWriteFromJSONTyped = exports.HydratedIntegrationWriteFromJSON = exports.instanceOfHydratedIntegrationWrite = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const HydratedIntegrationWriteObject_1 = require("./HydratedIntegrationWriteObject");
19
+ /**
20
+ * Check if a given object implements the HydratedIntegrationWrite interface.
21
+ */
22
+ function instanceOfHydratedIntegrationWrite(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfHydratedIntegrationWrite = instanceOfHydratedIntegrationWrite;
27
+ function HydratedIntegrationWriteFromJSON(json) {
28
+ return HydratedIntegrationWriteFromJSONTyped(json, false);
29
+ }
30
+ exports.HydratedIntegrationWriteFromJSON = HydratedIntegrationWriteFromJSON;
31
+ function HydratedIntegrationWriteFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'objects': !(0, runtime_1.exists)(json, 'objects') ? undefined : (json['objects'].map(HydratedIntegrationWriteObject_1.HydratedIntegrationWriteObjectFromJSON)),
37
+ };
38
+ }
39
+ exports.HydratedIntegrationWriteFromJSONTyped = HydratedIntegrationWriteFromJSONTyped;
40
+ function HydratedIntegrationWriteToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'objects': value.objects === undefined ? undefined : (value.objects.map(HydratedIntegrationWriteObject_1.HydratedIntegrationWriteObjectToJSON)),
49
+ };
50
+ }
51
+ exports.HydratedIntegrationWriteToJSON = HydratedIntegrationWriteToJSON;