@amp-labs/react 1.1.0 → 1.3.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 (216) hide show
  1. package/build/generated-sources/api/src/apis/AllowedDomainApi.d.ts +79 -0
  2. package/build/generated-sources/api/src/apis/AllowedDomainApi.js +101 -0
  3. package/build/generated-sources/api/src/apis/ConnectionApi.d.ts +82 -0
  4. package/build/generated-sources/api/src/apis/ConnectionApi.js +107 -0
  5. package/build/generated-sources/api/src/apis/ConsumerApi.d.ts +52 -0
  6. package/build/generated-sources/api/src/apis/ConsumerApi.js +75 -0
  7. package/build/generated-sources/api/src/apis/DestinationApi.d.ts +102 -0
  8. package/build/generated-sources/api/src/apis/DestinationApi.js +126 -0
  9. package/build/generated-sources/api/src/apis/GroupApi.d.ts +52 -0
  10. package/build/generated-sources/api/src/apis/GroupApi.js +75 -0
  11. package/build/generated-sources/api/src/apis/InstallationApi.d.ts +196 -0
  12. package/build/generated-sources/api/src/apis/InstallationApi.js +235 -0
  13. package/build/generated-sources/api/src/apis/IntegrationApi.d.ts +128 -0
  14. package/build/generated-sources/api/src/apis/IntegrationApi.js +151 -0
  15. package/build/generated-sources/api/src/apis/OAuthApi.d.ts +76 -0
  16. package/build/generated-sources/api/src/apis/OAuthApi.js +102 -0
  17. package/build/generated-sources/api/src/apis/OperationApi.d.ts +80 -0
  18. package/build/generated-sources/api/src/apis/OperationApi.js +104 -0
  19. package/build/generated-sources/api/src/apis/OperationLogApi.d.ts +55 -0
  20. package/build/generated-sources/api/src/apis/OperationLogApi.js +76 -0
  21. package/build/generated-sources/api/src/apis/ProjectApi.d.ts +124 -0
  22. package/build/generated-sources/api/src/apis/ProjectApi.js +148 -0
  23. package/build/generated-sources/api/src/apis/ProjectMembershipApi.d.ts +126 -0
  24. package/build/generated-sources/api/src/apis/ProjectMembershipApi.js +154 -0
  25. package/build/generated-sources/api/src/apis/ProviderAppApi.d.ts +130 -0
  26. package/build/generated-sources/api/src/apis/ProviderAppApi.js +158 -0
  27. package/build/generated-sources/api/src/apis/RevisionApi.d.ts +87 -0
  28. package/build/generated-sources/api/src/apis/RevisionApi.js +113 -0
  29. package/build/generated-sources/api/src/apis/UploadURLApi.d.ts +46 -0
  30. package/build/generated-sources/api/src/apis/UploadURLApi.js +68 -0
  31. package/build/generated-sources/api/src/apis/index.d.ts +15 -1
  32. package/build/generated-sources/api/src/apis/index.js +15 -1
  33. package/build/generated-sources/api/src/models/BaseConfigContent.d.ts +7 -0
  34. package/build/generated-sources/api/src/models/BaseConfigContent.js +3 -0
  35. package/build/generated-sources/api/src/models/BaseProxyConfig.d.ts +31 -0
  36. package/build/generated-sources/api/src/models/BaseProxyConfig.js +50 -0
  37. package/build/generated-sources/api/src/models/ConfigContent.d.ts +7 -0
  38. package/build/generated-sources/api/src/models/ConfigContent.js +3 -0
  39. package/build/generated-sources/api/src/models/Destination.d.ts +44 -0
  40. package/build/generated-sources/api/src/models/Destination.js +57 -0
  41. package/build/generated-sources/api/src/models/DestinationMetadata.d.ts +39 -0
  42. package/build/generated-sources/api/src/models/{CreateDestinationRequestMetadata.js → DestinationMetadata.js} +11 -11
  43. package/build/generated-sources/api/src/models/HydratedIntegration.d.ts +7 -0
  44. package/build/generated-sources/api/src/models/HydratedIntegration.js +3 -0
  45. package/build/generated-sources/api/src/models/HydratedIntegrationProxy.d.ts +31 -0
  46. package/build/generated-sources/api/src/models/HydratedIntegrationProxy.js +50 -0
  47. package/build/generated-sources/api/src/models/ImportConnectionRequest.d.ts +1 -1
  48. package/build/generated-sources/api/src/models/Integration1.d.ts +7 -0
  49. package/build/generated-sources/api/src/models/Integration1.js +3 -0
  50. package/build/generated-sources/api/src/models/IntegrationProxy.d.ts +31 -0
  51. package/build/generated-sources/api/src/models/IntegrationProxy.js +50 -0
  52. package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +6 -6
  53. package/build/generated-sources/api/src/models/OauthConnectRequest.js +1 -2
  54. package/build/generated-sources/api/src/models/Operation.d.ts +26 -9
  55. package/build/generated-sources/api/src/models/Operation.js +14 -7
  56. package/build/generated-sources/api/src/models/OperationLog.d.ts +43 -0
  57. package/build/generated-sources/api/src/models/OperationLog.js +56 -0
  58. package/build/generated-sources/api/src/models/ProviderApp.d.ts +6 -0
  59. package/build/generated-sources/api/src/models/ProviderApp.js +2 -0
  60. package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.d.ts +7 -0
  61. package/build/generated-sources/api/src/models/UpdateInstallationConfigContent.js +3 -0
  62. package/build/generated-sources/api/src/models/index.d.ts +6 -3
  63. package/build/generated-sources/api/src/models/index.js +6 -3
  64. package/build/src/assets/SuccessIcon.d.ts +1 -0
  65. package/build/src/assets/SuccessIcon.js +8 -0
  66. package/build/src/assets/TrashIcon.js +3 -1
  67. package/build/src/components/Configure/InstallIntegration.d.ts +4 -1
  68. package/build/src/components/Configure/InstallIntegration.js +11 -23
  69. package/build/src/components/Configure/actions/createInstallationReducer.d.ts +15 -0
  70. package/build/src/components/Configure/actions/createInstallationReducer.js +30 -0
  71. package/build/src/components/Configure/actions/onSaveReadCreateInstallation.d.ts +3 -0
  72. package/build/src/components/Configure/actions/{onSaveCreate.js → onSaveReadCreateInstallation.js} +13 -25
  73. package/build/src/components/Configure/actions/onSaveReadUpdateInstallation.d.ts +3 -0
  74. package/build/src/components/Configure/actions/{onSaveUpdate.js → onSaveReadUpdateInstallation.js} +13 -8
  75. package/build/src/components/Configure/actions/proxy/createInstallationProxyOnly.d.ts +8 -0
  76. package/build/src/components/Configure/actions/proxy/createInstallationProxyOnly.js +44 -0
  77. package/build/src/components/Configure/actions/write/generateConfigWriteObjects.d.ts +26 -0
  78. package/build/src/components/Configure/actions/write/generateConfigWriteObjects.js +41 -0
  79. package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.d.ts +3 -0
  80. package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +72 -0
  81. package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.d.ts +3 -0
  82. package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.js +60 -0
  83. package/build/src/components/Configure/{ConfigureInstallationBase.d.ts → content/ConfigureInstallationBase.d.ts} +2 -1
  84. package/build/src/components/Configure/content/ConfigureInstallationBase.js +36 -0
  85. package/build/src/components/Configure/content/CreateInstallation.js +83 -0
  86. package/build/src/components/Configure/content/InstallationContent.d.ts +1 -0
  87. package/build/src/components/Configure/content/InstallationContent.js +20 -0
  88. package/build/src/components/Configure/{UninstallContent.js → content/UninstallContent.js} +10 -9
  89. package/build/src/components/Configure/{UpdateInstallation.d.ts → content/UpdateInstallation.d.ts} +1 -1
  90. package/build/src/components/Configure/{UpdateInstallation.js → content/UpdateInstallation.js} +42 -28
  91. package/build/src/components/Configure/{fields → content/fields}/FieldMappings/FieldMapping.d.ts +1 -1
  92. package/build/src/components/Configure/{fields → content/fields}/FieldMappings/FieldMapping.js +4 -7
  93. package/build/src/components/Configure/{fields → content/fields}/FieldMappings/RequiredFieldMappings.js +10 -11
  94. package/build/src/components/Configure/{fields → content/fields}/FieldMappings/setFieldMapping.d.ts +1 -1
  95. package/build/src/components/Configure/content/fields/FieldMappings/setFieldMapping.js +21 -0
  96. package/build/src/components/Configure/{fields → content/fields}/OptionalFields/OptionalFields.js +9 -14
  97. package/build/src/components/Configure/{fields → content/fields}/OptionalFields/setOptionalField.d.ts +1 -1
  98. package/build/src/components/Configure/content/fields/OptionalFields/setOptionalField.js +27 -0
  99. package/build/src/components/Configure/content/fields/ReadFields.d.ts +1 -0
  100. package/build/src/components/Configure/content/fields/ReadFields.js +11 -0
  101. package/build/src/components/Configure/content/fields/RequiredFields.js +23 -0
  102. package/build/src/components/Configure/content/fields/WriteFields/WriteFields.d.ts +1 -0
  103. package/build/src/components/Configure/content/fields/WriteFields/WriteFields.js +22 -0
  104. package/build/src/components/Configure/content/fields/WriteFields/index.d.ts +2 -0
  105. package/build/src/components/Configure/content/fields/WriteFields/index.js +5 -0
  106. package/build/src/components/Configure/content/fields/WriteFields/setNonConfigurableWriteField.d.ts +3 -0
  107. package/build/src/components/Configure/content/fields/WriteFields/setNonConfigurableWriteField.js +32 -0
  108. package/build/src/components/Configure/content/useMutateInstallation.d.ts +23 -0
  109. package/build/src/components/Configure/content/useMutateInstallation.js +47 -0
  110. package/build/src/components/Configure/content/useSelectedConfigureState.d.ts +72 -0
  111. package/build/src/components/Configure/content/useSelectedConfigureState.js +24 -0
  112. package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.d.ts +11 -0
  113. package/build/src/components/Configure/layout/ConditionalProxyLayout/ConditionalProxyLayout.js +67 -0
  114. package/build/src/components/Configure/layout/ConditionalProxyLayout/InstalledSuccessBox.d.ts +5 -0
  115. package/build/src/components/Configure/layout/ConditionalProxyLayout/InstalledSuccessBox.js +11 -0
  116. package/build/src/components/Configure/{ProtectedConnectionLayout.d.ts → layout/ProtectedConnectionLayout.d.ts} +2 -1
  117. package/build/src/components/Configure/{ProtectedConnectionLayout.js → layout/ProtectedConnectionLayout.js} +13 -13
  118. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/NavObjectItem.d.ts +1 -0
  119. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/NavObjectItem.js +3 -3
  120. package/build/src/components/Configure/nav/ObjectManagementNav/OtherTab.d.ts +7 -0
  121. package/build/src/components/Configure/nav/ObjectManagementNav/OtherTab.js +11 -0
  122. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/UninstallInstallation.d.ts +1 -1
  123. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/UninstallInstallation.js +2 -2
  124. package/build/src/components/Configure/nav/ObjectManagementNav/constant.d.ts +1 -0
  125. package/build/src/components/Configure/nav/ObjectManagementNav/constant.js +4 -0
  126. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/index.d.ts +1 -0
  127. package/build/src/components/Configure/nav/ObjectManagementNav/index.js +61 -0
  128. package/build/src/components/Configure/state/ConfigurationStateProvider.d.ts +70 -42
  129. package/build/src/components/Configure/state/ConfigurationStateProvider.js +39 -17
  130. package/build/src/components/Configure/state/HydratedRevisionContext.js +11 -9
  131. package/build/src/components/Configure/state/utils.d.ts +2 -2
  132. package/build/src/components/Configure/state/utils.js +44 -19
  133. package/build/src/components/Configure/types.d.ts +22 -6
  134. package/build/src/components/Configure/utils.d.ts +3 -2
  135. package/build/src/components/Configure/utils.js +25 -5
  136. package/build/src/components/Connect/ConnectProvider.d.ts +3 -1
  137. package/build/src/components/Connect/ConnectProvider.js +6 -12
  138. package/build/src/components/Connect/ConnectedSuccessBox.d.ts +5 -0
  139. package/build/src/components/Connect/ConnectedSuccessBox.js +13 -0
  140. package/build/src/components/Connect/useConnectionHandler.d.ts +10 -0
  141. package/build/src/components/Connect/useConnectionHandler.js +24 -0
  142. package/build/src/components/ErrorTextBox.js +11 -0
  143. package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.d.ts +8 -0
  144. package/build/src/components/Oauth/{Hubspot/HubspotLandingContent.js → NoSubdomainEntry/LandingContent.js} +5 -4
  145. package/build/src/components/Oauth/NoSubdomainEntry/NoSubdomainOauthFlow.d.ts +16 -0
  146. package/build/src/components/Oauth/{Hubspot/HubspotOauthFlow.js → NoSubdomainEntry/NoSubdomainOauthFlow.js} +14 -14
  147. package/build/src/components/{Connect → Oauth}/OAuthPopup.js +8 -10
  148. package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +5 -5
  149. package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +1 -1
  150. package/build/src/components/Oauth/fetchOAuthCallbackURL.d.ts +1 -1
  151. package/build/src/components/Oauth/fetchOAuthCallbackURL.js +3 -4
  152. package/build/src/components/RedirectHandler/RedirectHandler.d.ts +15 -0
  153. package/build/src/components/RedirectHandler/RedirectHandler.js +31 -0
  154. package/build/src/components/RedirectHandler/index.d.ts +1 -0
  155. package/build/src/components/RedirectHandler/index.js +5 -0
  156. package/build/src/components/SuccessTextBox.d.ts +5 -0
  157. package/build/src/components/SuccessTextBox.js +10 -0
  158. package/build/src/{components/AmpersandProvider/AmpersandProvider.js → context/AmpersandContextProvider/AmpersandContextProvider.js} +6 -6
  159. package/build/src/context/AmpersandContextProvider/index.d.ts +1 -0
  160. package/build/src/{components/AmpersandProvider → context/AmpersandContextProvider}/index.js +1 -1
  161. package/build/src/context/{ConnectionsContext.js → ConnectionsContextProvider.js} +11 -10
  162. package/build/src/context/{InstallIntegrationContext.d.ts → InstallIntegrationContextProvider.d.ts} +7 -2
  163. package/build/src/context/{InstallIntegrationContext.js → InstallIntegrationContextProvider.js} +29 -14
  164. package/build/src/context/{IntegrationListContext.js → IntegrationListContextProvider.js} +4 -4
  165. package/build/src/context/{ProjectContext.js → ProjectContextProvider.js} +4 -4
  166. package/build/src/hooks/useIsIntegrationInstalled.js +7 -7
  167. package/build/src/index.d.ts +1 -2
  168. package/build/src/index.js +1 -2
  169. package/build/src/public/index.d.ts +7 -0
  170. package/build/src/{components → public}/index.js +7 -3
  171. package/build/src/services/ApiService.d.ts +27 -0
  172. package/build/src/services/ApiService.js +34 -0
  173. package/build/src/services/api.d.ts +5 -4
  174. package/build/src/services/api.js +26 -19
  175. package/package.json +2 -2
  176. package/build/generated-sources/api/src/apis/DefaultApi.d.ts +0 -930
  177. package/build/generated-sources/api/src/apis/DefaultApi.js +0 -1019
  178. package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +0 -44
  179. package/build/generated-sources/api/src/models/CreateDestinationRequest.js +0 -57
  180. package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +0 -39
  181. package/build/generated-sources/api/src/models/OperationError.d.ts +0 -49
  182. package/build/generated-sources/api/src/models/OperationError.js +0 -56
  183. package/build/src/components/AmpersandProvider/index.d.ts +0 -1
  184. package/build/src/components/CenteredTextBox/CenteredTextBox.d.ts +0 -5
  185. package/build/src/components/CenteredTextBox/CenteredTextBox.js +0 -8
  186. package/build/src/components/Configure/ConfigureInstallationBase.js +0 -29
  187. package/build/src/components/Configure/CreateInstallation.js +0 -70
  188. package/build/src/components/Configure/ErrorTextBox.js +0 -9
  189. package/build/src/components/Configure/ObjectManagementNav/index.js +0 -53
  190. package/build/src/components/Configure/actions/onSaveCreate.d.ts +0 -3
  191. package/build/src/components/Configure/actions/onSaveUpdate.d.ts +0 -3
  192. package/build/src/components/Configure/fields/FieldMappings/setFieldMapping.js +0 -18
  193. package/build/src/components/Configure/fields/OptionalFields/setOptionalField.js +0 -21
  194. package/build/src/components/Configure/fields/RequiredFields.js +0 -27
  195. package/build/src/components/Oauth/Hubspot/HubspotLandingContent.d.ts +0 -7
  196. package/build/src/components/Oauth/Hubspot/HubspotOauthFlow.d.ts +0 -15
  197. package/build/src/components/index.d.ts +0 -3
  198. /package/build/src/components/Configure/{CreateInstallation.d.ts → content/CreateInstallation.d.ts} +0 -0
  199. /package/build/src/components/Configure/{UninstallContent.d.ts → content/UninstallContent.d.ts} +0 -0
  200. /package/build/src/components/Configure/{fields → content/fields}/FieldHeader.d.ts +0 -0
  201. /package/build/src/components/Configure/{fields → content/fields}/FieldHeader.js +0 -0
  202. /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/RequiredFieldMappings.d.ts +0 -0
  203. /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/index.d.ts +0 -0
  204. /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/index.js +0 -0
  205. /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/OptionalFields.d.ts +0 -0
  206. /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/index.d.ts +0 -0
  207. /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/index.js +0 -0
  208. /package/build/src/components/Configure/{fields → content/fields}/RequiredFields.d.ts +0 -0
  209. /package/build/src/components/{Configure/ErrorTextBox.d.ts → ErrorTextBox.d.ts} +0 -0
  210. /package/build/src/components/{Connect → Oauth}/OAuthPopup.d.ts +0 -0
  211. /package/build/src/{components/AmpersandProvider/AmpersandProvider.d.ts → context/AmpersandContextProvider/AmpersandContextProvider.d.ts} +0 -0
  212. /package/build/src/context/{ApiKeyProvider.d.ts → ApiKeyContextProvider.d.ts} +0 -0
  213. /package/build/src/context/{ApiKeyProvider.js → ApiKeyContextProvider.js} +0 -0
  214. /package/build/src/context/{ConnectionsContext.d.ts → ConnectionsContextProvider.d.ts} +0 -0
  215. /package/build/src/context/{IntegrationListContext.d.ts → IntegrationListContextProvider.d.ts} +0 -0
  216. /package/build/src/context/{ProjectContext.d.ts → ProjectContextProvider.d.ts} +0 -0
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConfigContentToJSON = exports.ConfigContentFromJSONTyped = exports.ConfigContentFromJSON = exports.instanceOfConfigContent = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const BaseProxyConfig_1 = require("./BaseProxyConfig");
18
19
  /**
19
20
  * Check if a given object implements the ConfigContent interface.
20
21
  */
@@ -36,6 +37,7 @@ function ConfigContentFromJSONTyped(json, ignoreDiscriminator) {
36
37
  'provider': json['provider'],
37
38
  'read': !(0, runtime_1.exists)(json, 'read') ? undefined : json['read'],
38
39
  'write': !(0, runtime_1.exists)(json, 'write') ? undefined : json['write'],
40
+ 'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, BaseProxyConfig_1.BaseProxyConfigFromJSON)(json['proxy']),
39
41
  };
40
42
  }
41
43
  exports.ConfigContentFromJSONTyped = ConfigContentFromJSONTyped;
@@ -50,6 +52,7 @@ function ConfigContentToJSON(value) {
50
52
  'provider': value.provider,
51
53
  'read': value.read,
52
54
  'write': value.write,
55
+ 'proxy': (0, BaseProxyConfig_1.BaseProxyConfigToJSON)(value.proxy),
53
56
  };
54
57
  }
55
58
  exports.ConfigContentToJSON = ConfigContentToJSON;
@@ -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: 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 { DestinationMetadata } from './DestinationMetadata';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Destination
17
+ */
18
+ export interface Destination {
19
+ /**
20
+ * User-friendly name for the destination
21
+ * @type {string}
22
+ * @memberof Destination
23
+ */
24
+ name: string;
25
+ /**
26
+ * The type of the destination
27
+ * @type {string}
28
+ * @memberof Destination
29
+ */
30
+ type: string;
31
+ /**
32
+ *
33
+ * @type {DestinationMetadata}
34
+ * @memberof Destination
35
+ */
36
+ metadata: DestinationMetadata;
37
+ }
38
+ /**
39
+ * Check if a given object implements the Destination interface.
40
+ */
41
+ export declare function instanceOfDestination(value: object): boolean;
42
+ export declare function DestinationFromJSON(json: any): Destination;
43
+ export declare function DestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Destination;
44
+ export declare function DestinationToJSON(value?: Destination | 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: 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.DestinationToJSON = exports.DestinationFromJSONTyped = exports.DestinationFromJSON = exports.instanceOfDestination = void 0;
17
+ const DestinationMetadata_1 = require("./DestinationMetadata");
18
+ /**
19
+ * Check if a given object implements the Destination interface.
20
+ */
21
+ function instanceOfDestination(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "type" in value;
25
+ isInstance = isInstance && "metadata" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfDestination = instanceOfDestination;
29
+ function DestinationFromJSON(json) {
30
+ return DestinationFromJSONTyped(json, false);
31
+ }
32
+ exports.DestinationFromJSON = DestinationFromJSON;
33
+ function DestinationFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'type': json['type'],
40
+ 'metadata': (0, DestinationMetadata_1.DestinationMetadataFromJSON)(json['metadata']),
41
+ };
42
+ }
43
+ exports.DestinationFromJSONTyped = DestinationFromJSONTyped;
44
+ function DestinationToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'name': value.name,
53
+ 'type': value.type,
54
+ 'metadata': (0, DestinationMetadata_1.DestinationMetadataToJSON)(value.metadata),
55
+ };
56
+ }
57
+ exports.DestinationToJSON = DestinationToJSON;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DestinationMetadata
16
+ */
17
+ export interface DestinationMetadata {
18
+ /**
19
+ * Webhook URL
20
+ * @type {string}
21
+ * @memberof DestinationMetadata
22
+ */
23
+ url?: string;
24
+ /**
25
+ * Webhook headers to add
26
+ * @type {{ [key: string]: string; }}
27
+ * @memberof DestinationMetadata
28
+ */
29
+ headers?: {
30
+ [key: string]: string;
31
+ } | null;
32
+ }
33
+ /**
34
+ * Check if a given object implements the DestinationMetadata interface.
35
+ */
36
+ export declare function instanceOfDestinationMetadata(value: object): boolean;
37
+ export declare function DestinationMetadataFromJSON(json: any): DestinationMetadata;
38
+ export declare function DestinationMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationMetadata;
39
+ export declare function DestinationMetadataToJSON(value?: DestinationMetadata | null): any;
@@ -13,21 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateDestinationRequestMetadataToJSON = exports.CreateDestinationRequestMetadataFromJSONTyped = exports.CreateDestinationRequestMetadataFromJSON = exports.instanceOfCreateDestinationRequestMetadata = void 0;
16
+ exports.DestinationMetadataToJSON = exports.DestinationMetadataFromJSONTyped = exports.DestinationMetadataFromJSON = exports.instanceOfDestinationMetadata = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  /**
19
- * Check if a given object implements the CreateDestinationRequestMetadata interface.
19
+ * Check if a given object implements the DestinationMetadata interface.
20
20
  */
21
- function instanceOfCreateDestinationRequestMetadata(value) {
21
+ function instanceOfDestinationMetadata(value) {
22
22
  let isInstance = true;
23
23
  return isInstance;
24
24
  }
25
- exports.instanceOfCreateDestinationRequestMetadata = instanceOfCreateDestinationRequestMetadata;
26
- function CreateDestinationRequestMetadataFromJSON(json) {
27
- return CreateDestinationRequestMetadataFromJSONTyped(json, false);
25
+ exports.instanceOfDestinationMetadata = instanceOfDestinationMetadata;
26
+ function DestinationMetadataFromJSON(json) {
27
+ return DestinationMetadataFromJSONTyped(json, false);
28
28
  }
29
- exports.CreateDestinationRequestMetadataFromJSON = CreateDestinationRequestMetadataFromJSON;
30
- function CreateDestinationRequestMetadataFromJSONTyped(json, ignoreDiscriminator) {
29
+ exports.DestinationMetadataFromJSON = DestinationMetadataFromJSON;
30
+ function DestinationMetadataFromJSONTyped(json, ignoreDiscriminator) {
31
31
  if ((json === undefined) || (json === null)) {
32
32
  return json;
33
33
  }
@@ -36,8 +36,8 @@ function CreateDestinationRequestMetadataFromJSONTyped(json, ignoreDiscriminator
36
36
  'headers': !(0, runtime_1.exists)(json, 'headers') ? undefined : json['headers'],
37
37
  };
38
38
  }
39
- exports.CreateDestinationRequestMetadataFromJSONTyped = CreateDestinationRequestMetadataFromJSONTyped;
40
- function CreateDestinationRequestMetadataToJSON(value) {
39
+ exports.DestinationMetadataFromJSONTyped = DestinationMetadataFromJSONTyped;
40
+ function DestinationMetadataToJSON(value) {
41
41
  if (value === undefined) {
42
42
  return undefined;
43
43
  }
@@ -49,4 +49,4 @@ function CreateDestinationRequestMetadataToJSON(value) {
49
49
  'headers': value.headers,
50
50
  };
51
51
  }
52
- exports.CreateDestinationRequestMetadataToJSON = CreateDestinationRequestMetadataToJSON;
52
+ exports.DestinationMetadataToJSON = DestinationMetadataToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { HydratedIntegrationProxy } from './HydratedIntegrationProxy';
12
13
  import type { HydratedIntegrationRead } from './HydratedIntegrationRead';
13
14
  import type { HydratedIntegrationWrite } from './HydratedIntegrationWrite';
14
15
  /**
@@ -47,6 +48,12 @@ export interface HydratedIntegration {
47
48
  * @memberof HydratedIntegration
48
49
  */
49
50
  write?: HydratedIntegrationWrite;
51
+ /**
52
+ *
53
+ * @type {HydratedIntegrationProxy}
54
+ * @memberof HydratedIntegration
55
+ */
56
+ proxy?: HydratedIntegrationProxy;
50
57
  }
51
58
  /**
52
59
  * Check if a given object implements the HydratedIntegration interface.
@@ -15,6 +15,7 @@
15
15
  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
+ const HydratedIntegrationProxy_1 = require("./HydratedIntegrationProxy");
18
19
  const HydratedIntegrationRead_1 = require("./HydratedIntegrationRead");
19
20
  const HydratedIntegrationWrite_1 = require("./HydratedIntegrationWrite");
20
21
  /**
@@ -41,6 +42,7 @@ function HydratedIntegrationFromJSONTyped(json, ignoreDiscriminator) {
41
42
  'provider': json['provider'],
42
43
  'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, HydratedIntegrationRead_1.HydratedIntegrationReadFromJSON)(json['read']),
43
44
  'write': !(0, runtime_1.exists)(json, 'write') ? undefined : (0, HydratedIntegrationWrite_1.HydratedIntegrationWriteFromJSON)(json['write']),
45
+ 'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, HydratedIntegrationProxy_1.HydratedIntegrationProxyFromJSON)(json['proxy']),
44
46
  };
45
47
  }
46
48
  exports.HydratedIntegrationFromJSONTyped = HydratedIntegrationFromJSONTyped;
@@ -57,6 +59,7 @@ function HydratedIntegrationToJSON(value) {
57
59
  'provider': value.provider,
58
60
  'read': (0, HydratedIntegrationRead_1.HydratedIntegrationReadToJSON)(value.read),
59
61
  'write': (0, HydratedIntegrationWrite_1.HydratedIntegrationWriteToJSON)(value.write),
62
+ 'proxy': (0, HydratedIntegrationProxy_1.HydratedIntegrationProxyToJSON)(value.proxy),
60
63
  };
61
64
  }
62
65
  exports.HydratedIntegrationToJSON = HydratedIntegrationToJSON;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface HydratedIntegrationProxy
16
+ */
17
+ export interface HydratedIntegrationProxy {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof HydratedIntegrationProxy
22
+ */
23
+ enabled?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the HydratedIntegrationProxy interface.
27
+ */
28
+ export declare function instanceOfHydratedIntegrationProxy(value: object): boolean;
29
+ export declare function HydratedIntegrationProxyFromJSON(json: any): HydratedIntegrationProxy;
30
+ export declare function HydratedIntegrationProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): HydratedIntegrationProxy;
31
+ export declare function HydratedIntegrationProxyToJSON(value?: HydratedIntegrationProxy | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.HydratedIntegrationProxyToJSON = exports.HydratedIntegrationProxyFromJSONTyped = exports.HydratedIntegrationProxyFromJSON = exports.instanceOfHydratedIntegrationProxy = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the HydratedIntegrationProxy interface.
20
+ */
21
+ function instanceOfHydratedIntegrationProxy(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfHydratedIntegrationProxy = instanceOfHydratedIntegrationProxy;
26
+ function HydratedIntegrationProxyFromJSON(json) {
27
+ return HydratedIntegrationProxyFromJSONTyped(json, false);
28
+ }
29
+ exports.HydratedIntegrationProxyFromJSON = HydratedIntegrationProxyFromJSON;
30
+ function HydratedIntegrationProxyFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
36
+ };
37
+ }
38
+ exports.HydratedIntegrationProxyFromJSONTyped = HydratedIntegrationProxyFromJSONTyped;
39
+ function HydratedIntegrationProxyToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'enabled': value.enabled,
48
+ };
49
+ }
50
+ exports.HydratedIntegrationProxyToJSON = HydratedIntegrationProxyToJSON;
@@ -64,7 +64,7 @@ export interface ImportConnectionRequest {
64
64
  */
65
65
  refreshToken: string;
66
66
  /**
67
- * The OAuth scopes for this token. If it is unknown, then leave this field empty.
67
+ * The OAuth scopes for this token. If omitted, will default to the scopes of the Provider App.
68
68
  * @type {Array<string>}
69
69
  * @memberof ImportConnectionRequest
70
70
  */
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { IntegrationProxy } from './IntegrationProxy';
12
13
  import type { IntegrationRead } from './IntegrationRead';
13
14
  import type { IntegrationWrite } from './IntegrationWrite';
14
15
  /**
@@ -47,6 +48,12 @@ export interface Integration1 {
47
48
  * @memberof Integration1
48
49
  */
49
50
  write?: IntegrationWrite;
51
+ /**
52
+ *
53
+ * @type {IntegrationProxy}
54
+ * @memberof Integration1
55
+ */
56
+ proxy?: IntegrationProxy;
50
57
  }
51
58
  /**
52
59
  * Check if a given object implements the Integration1 interface.
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Integration1ToJSON = exports.Integration1FromJSONTyped = exports.Integration1FromJSON = exports.instanceOfIntegration1 = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const IntegrationProxy_1 = require("./IntegrationProxy");
18
19
  const IntegrationRead_1 = require("./IntegrationRead");
19
20
  const IntegrationWrite_1 = require("./IntegrationWrite");
20
21
  /**
@@ -41,6 +42,7 @@ function Integration1FromJSONTyped(json, ignoreDiscriminator) {
41
42
  'provider': json['provider'],
42
43
  'read': !(0, runtime_1.exists)(json, 'read') ? undefined : (0, IntegrationRead_1.IntegrationReadFromJSON)(json['read']),
43
44
  'write': !(0, runtime_1.exists)(json, 'write') ? undefined : (0, IntegrationWrite_1.IntegrationWriteFromJSON)(json['write']),
45
+ 'proxy': !(0, runtime_1.exists)(json, 'proxy') ? undefined : (0, IntegrationProxy_1.IntegrationProxyFromJSON)(json['proxy']),
44
46
  };
45
47
  }
46
48
  exports.Integration1FromJSONTyped = Integration1FromJSONTyped;
@@ -57,6 +59,7 @@ function Integration1ToJSON(value) {
57
59
  'provider': value.provider,
58
60
  'read': (0, IntegrationRead_1.IntegrationReadToJSON)(value.read),
59
61
  'write': (0, IntegrationWrite_1.IntegrationWriteToJSON)(value.write),
62
+ 'proxy': (0, IntegrationProxy_1.IntegrationProxyToJSON)(value.proxy),
60
63
  };
61
64
  }
62
65
  exports.Integration1ToJSON = Integration1ToJSON;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Ampersand public API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface IntegrationProxy
16
+ */
17
+ export interface IntegrationProxy {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof IntegrationProxy
22
+ */
23
+ enabled?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the IntegrationProxy interface.
27
+ */
28
+ export declare function instanceOfIntegrationProxy(value: object): boolean;
29
+ export declare function IntegrationProxyFromJSON(json: any): IntegrationProxy;
30
+ export declare function IntegrationProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProxy;
31
+ export declare function IntegrationProxyToJSON(value?: IntegrationProxy | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ampersand public API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IntegrationProxyToJSON = exports.IntegrationProxyFromJSONTyped = exports.IntegrationProxyFromJSON = exports.instanceOfIntegrationProxy = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the IntegrationProxy interface.
20
+ */
21
+ function instanceOfIntegrationProxy(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfIntegrationProxy = instanceOfIntegrationProxy;
26
+ function IntegrationProxyFromJSON(json) {
27
+ return IntegrationProxyFromJSONTyped(json, false);
28
+ }
29
+ exports.IntegrationProxyFromJSON = IntegrationProxyFromJSON;
30
+ function IntegrationProxyFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
36
+ };
37
+ }
38
+ exports.IntegrationProxyFromJSONTyped = IntegrationProxyFromJSONTyped;
39
+ function IntegrationProxyToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'enabled': value.enabled,
48
+ };
49
+ }
50
+ exports.IntegrationProxyToJSON = IntegrationProxyToJSON;
@@ -16,19 +16,19 @@
16
16
  */
17
17
  export interface OauthConnectRequest {
18
18
  /**
19
- * The identifier for the provider workspace (e.g. "salesforce-instance-domain")
19
+ * The identifier for the provider workspace
20
20
  * @type {string}
21
21
  * @memberof OauthConnectRequest
22
22
  */
23
23
  providerWorkspaceRef?: string;
24
24
  /**
25
- * The project ID.
25
+ * The Ampersand project ID.
26
26
  * @type {string}
27
27
  * @memberof OauthConnectRequest
28
28
  */
29
29
  projectId: string;
30
30
  /**
31
- * The group reference that will be used along with projectId as unique identifier.
31
+ * The ID that your app uses to identify the group of users for this Connection, this can be an Org ID, workspace ID, etc.
32
32
  * @type {string}
33
33
  * @memberof OauthConnectRequest
34
34
  */
@@ -40,7 +40,7 @@ export interface OauthConnectRequest {
40
40
  */
41
41
  groupName?: string;
42
42
  /**
43
- * The consumer reference.
43
+ * The ID that your app uses to identify the user whose SaaS credential will be used for this OAuth flow.
44
44
  * @type {string}
45
45
  * @memberof OauthConnectRequest
46
46
  */
@@ -52,11 +52,11 @@ export interface OauthConnectRequest {
52
52
  */
53
53
  consumerName?: string;
54
54
  /**
55
- * The provider app ID.
55
+ * ID of the provider app (e.g. Salesforce connected app), returned from a CreateProviderApp call. If omitted, the default provider app that was set up on the Ampersand Console is assumed.
56
56
  * @type {string}
57
57
  * @memberof OauthConnectRequest
58
58
  */
59
- providerAppId: string;
59
+ providerAppId?: string;
60
60
  /**
61
61
  * The provider that this app connects to.
62
62
  * @type {string}
@@ -23,7 +23,6 @@ function instanceOfOauthConnectRequest(value) {
23
23
  isInstance = isInstance && "projectId" in value;
24
24
  isInstance = isInstance && "groupRef" in value;
25
25
  isInstance = isInstance && "consumerRef" in value;
26
- isInstance = isInstance && "providerAppId" in value;
27
26
  isInstance = isInstance && "provider" in value;
28
27
  return isInstance;
29
28
  }
@@ -43,7 +42,7 @@ function OauthConnectRequestFromJSONTyped(json, ignoreDiscriminator) {
43
42
  'groupName': !(0, runtime_1.exists)(json, 'groupName') ? undefined : json['groupName'],
44
43
  'consumerRef': json['consumerRef'],
45
44
  'consumerName': !(0, runtime_1.exists)(json, 'consumerName') ? undefined : json['consumerName'],
46
- 'providerAppId': json['providerAppId'],
45
+ 'providerAppId': !(0, runtime_1.exists)(json, 'providerAppId') ? undefined : json['providerAppId'],
47
46
  'provider': json['provider'],
48
47
  };
49
48
  }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { OperationError } from './OperationError';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -23,17 +22,23 @@ export interface Operation {
23
22
  */
24
23
  projectId: string;
25
24
  /**
26
- * The action type to perform for the given object.
25
+ * The integration ID.
27
26
  * @type {string}
28
27
  * @memberof Operation
29
28
  */
30
- actionType: string;
29
+ integrationId: string;
30
+ /**
31
+ * The config ID.
32
+ * @type {string}
33
+ * @memberof Operation
34
+ */
35
+ configId: string;
31
36
  /**
32
- * The provider object name to perform the action for
37
+ * The action type to perform for the given object.
33
38
  * @type {string}
34
39
  * @memberof Operation
35
40
  */
36
- objectName: string;
41
+ actionType: string;
37
42
  /**
38
43
  * The operation ID.
39
44
  * @type {string}
@@ -51,13 +56,25 @@ export interface Operation {
51
56
  * @type {string}
52
57
  * @memberof Operation
53
58
  */
54
- status?: string;
59
+ status: string;
60
+ /**
61
+ * The result of the operation.
62
+ * @type {string}
63
+ * @memberof Operation
64
+ */
65
+ result?: string;
66
+ /**
67
+ * The latest operation event ID.
68
+ * @type {string}
69
+ * @memberof Operation
70
+ */
71
+ latestOperationEventId?: string;
55
72
  /**
56
- * The error history of the operation.
57
- * @type {Array<OperationError>}
73
+ * Metadata associated with the operation.
74
+ * @type {object}
58
75
  * @memberof Operation
59
76
  */
60
- errorHistory?: Array<OperationError>;
77
+ metadata?: object;
61
78
  /**
62
79
  * The time the operation was created.
63
80
  * @type {Date}
@@ -15,17 +15,18 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OperationToJSON = exports.OperationFromJSONTyped = exports.OperationFromJSON = exports.instanceOfOperation = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const OperationError_1 = require("./OperationError");
19
18
  /**
20
19
  * Check if a given object implements the Operation interface.
21
20
  */
22
21
  function instanceOfOperation(value) {
23
22
  let isInstance = true;
24
23
  isInstance = isInstance && "projectId" in value;
24
+ isInstance = isInstance && "integrationId" in value;
25
+ isInstance = isInstance && "configId" in value;
25
26
  isInstance = isInstance && "actionType" in value;
26
- isInstance = isInstance && "objectName" in value;
27
27
  isInstance = isInstance && "id" in value;
28
28
  isInstance = isInstance && "installationId" in value;
29
+ isInstance = isInstance && "status" in value;
29
30
  return isInstance;
30
31
  }
31
32
  exports.instanceOfOperation = instanceOfOperation;
@@ -39,12 +40,15 @@ function OperationFromJSONTyped(json, ignoreDiscriminator) {
39
40
  }
40
41
  return {
41
42
  'projectId': json['projectId'],
43
+ 'integrationId': json['integrationId'],
44
+ 'configId': json['configId'],
42
45
  'actionType': json['actionType'],
43
- 'objectName': json['objectName'],
44
46
  'id': json['id'],
45
47
  'installationId': json['installationId'],
46
- 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
47
- 'errorHistory': !(0, runtime_1.exists)(json, 'errorHistory') ? undefined : (json['errorHistory'].map(OperationError_1.OperationErrorFromJSON)),
48
+ 'status': json['status'],
49
+ 'result': !(0, runtime_1.exists)(json, 'result') ? undefined : json['result'],
50
+ 'latestOperationEventId': !(0, runtime_1.exists)(json, 'latestOperationEventId') ? undefined : json['latestOperationEventId'],
51
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
48
52
  'createTime': !(0, runtime_1.exists)(json, 'createTime') ? undefined : (new Date(json['createTime'])),
49
53
  };
50
54
  }
@@ -58,12 +62,15 @@ function OperationToJSON(value) {
58
62
  }
59
63
  return {
60
64
  'projectId': value.projectId,
65
+ 'integrationId': value.integrationId,
66
+ 'configId': value.configId,
61
67
  'actionType': value.actionType,
62
- 'objectName': value.objectName,
63
68
  'id': value.id,
64
69
  'installationId': value.installationId,
65
70
  'status': value.status,
66
- 'errorHistory': value.errorHistory === undefined ? undefined : (value.errorHistory.map(OperationError_1.OperationErrorToJSON)),
71
+ 'result': value.result,
72
+ 'latestOperationEventId': value.latestOperationEventId,
73
+ 'metadata': value.metadata,
67
74
  'createTime': value.createTime === undefined ? undefined : (value.createTime.toISOString()),
68
75
  };
69
76
  }