@amp-labs/react 1.0.2 → 1.2.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 (196) hide show
  1. package/README.md +1 -1
  2. package/build/generated-sources/api/src/apis/AllowedDomainApi.d.ts +79 -0
  3. package/build/generated-sources/api/src/apis/AllowedDomainApi.js +101 -0
  4. package/build/generated-sources/api/src/apis/ConnectionApi.d.ts +82 -0
  5. package/build/generated-sources/api/src/apis/ConnectionApi.js +107 -0
  6. package/build/generated-sources/api/src/apis/ConsumerApi.d.ts +52 -0
  7. package/build/generated-sources/api/src/apis/ConsumerApi.js +75 -0
  8. package/build/generated-sources/api/src/apis/DestinationApi.d.ts +78 -0
  9. package/build/generated-sources/api/src/apis/DestinationApi.js +102 -0
  10. package/build/generated-sources/api/src/apis/GroupApi.d.ts +52 -0
  11. package/build/generated-sources/api/src/apis/GroupApi.js +75 -0
  12. package/build/generated-sources/api/src/apis/InstallationApi.d.ts +168 -0
  13. package/build/generated-sources/api/src/apis/InstallationApi.js +205 -0
  14. package/build/generated-sources/api/src/apis/IntegrationApi.d.ts +128 -0
  15. package/build/generated-sources/api/src/apis/IntegrationApi.js +154 -0
  16. package/build/generated-sources/api/src/apis/OAuthApi.d.ts +76 -0
  17. package/build/generated-sources/api/src/apis/OAuthApi.js +102 -0
  18. package/build/generated-sources/api/src/apis/OperationApi.d.ts +80 -0
  19. package/build/generated-sources/api/src/apis/OperationApi.js +104 -0
  20. package/build/generated-sources/api/src/apis/OperationLogApi.d.ts +55 -0
  21. package/build/generated-sources/api/src/apis/OperationLogApi.js +76 -0
  22. package/build/generated-sources/api/src/apis/ProjectApi.d.ts +124 -0
  23. package/build/generated-sources/api/src/apis/ProjectApi.js +148 -0
  24. package/build/generated-sources/api/src/apis/ProjectMembershipApi.d.ts +126 -0
  25. package/build/generated-sources/api/src/apis/ProjectMembershipApi.js +154 -0
  26. package/build/generated-sources/api/src/apis/ProviderAppApi.d.ts +130 -0
  27. package/build/generated-sources/api/src/apis/ProviderAppApi.js +158 -0
  28. package/build/generated-sources/api/src/apis/RevisionApi.d.ts +87 -0
  29. package/build/generated-sources/api/src/apis/RevisionApi.js +113 -0
  30. package/build/generated-sources/api/src/apis/UploadURLApi.d.ts +46 -0
  31. package/build/generated-sources/api/src/apis/UploadURLApi.js +68 -0
  32. package/build/generated-sources/api/src/apis/index.d.ts +15 -1
  33. package/build/generated-sources/api/src/apis/index.js +15 -1
  34. package/build/generated-sources/api/src/models/CreateInstallationRequest.d.ts +2 -2
  35. package/build/generated-sources/api/src/models/CreateInstallationRequest.js +2 -2
  36. package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.d.ts +3 -3
  37. package/build/generated-sources/api/src/models/CreateInstallationRequestConfig.js +3 -4
  38. package/build/generated-sources/api/src/models/Destination.d.ts +44 -0
  39. package/build/generated-sources/api/src/models/Destination.js +57 -0
  40. package/build/generated-sources/api/src/models/DestinationMetadata.d.ts +39 -0
  41. package/build/generated-sources/api/src/models/{CreateDestinationRequestMetadata.js → DestinationMetadata.js} +11 -11
  42. package/build/generated-sources/api/src/models/OauthConnectRequest.d.ts +1 -1
  43. package/build/generated-sources/api/src/models/OauthConnectRequest.js +1 -2
  44. package/build/generated-sources/api/src/models/Operation.d.ts +6 -12
  45. package/build/generated-sources/api/src/models/Operation.js +3 -6
  46. package/build/generated-sources/api/src/models/OperationLog.d.ts +43 -0
  47. package/build/generated-sources/api/src/models/OperationLog.js +56 -0
  48. package/build/generated-sources/api/src/models/ProviderApp.d.ts +6 -0
  49. package/build/generated-sources/api/src/models/ProviderApp.js +2 -0
  50. package/build/generated-sources/api/src/models/index.d.ts +3 -2
  51. package/build/generated-sources/api/src/models/index.js +3 -2
  52. package/build/src/assets/TrashIcon.js +3 -1
  53. package/build/src/components/Configure/InstallIntegration.d.ts +4 -1
  54. package/build/src/components/Configure/InstallIntegration.js +10 -23
  55. package/build/src/components/Configure/actions/onSaveReadCreateInstallation.d.ts +3 -0
  56. package/build/src/components/Configure/actions/{onSaveCreate.js → onSaveReadCreateInstallation.js} +7 -6
  57. package/build/src/components/Configure/actions/onSaveReadUpdateInstallation.d.ts +3 -0
  58. package/build/src/components/Configure/actions/{onSaveUpdate.js → onSaveReadUpdateInstallation.js} +13 -8
  59. package/build/src/components/Configure/actions/write/generateConfigWriteObjects.d.ts +26 -0
  60. package/build/src/components/Configure/actions/write/generateConfigWriteObjects.js +41 -0
  61. package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.d.ts +3 -0
  62. package/build/src/components/Configure/actions/write/onSaveWriteCreateInstallation.js +85 -0
  63. package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.d.ts +3 -0
  64. package/build/src/components/Configure/actions/write/onSaveWriteUpdateInstallation.js +60 -0
  65. package/build/src/components/Configure/{ConfigureInstallationBase.d.ts → content/ConfigureInstallationBase.d.ts} +2 -1
  66. package/build/src/components/Configure/content/ConfigureInstallationBase.js +36 -0
  67. package/build/src/components/Configure/content/CreateInstallation.js +83 -0
  68. package/build/src/components/Configure/content/InstallationContent.d.ts +1 -0
  69. package/build/src/components/Configure/content/InstallationContent.js +20 -0
  70. package/build/src/components/Configure/{UninstallContent.js → content/UninstallContent.js} +15 -7
  71. package/build/src/components/Configure/{UpdateInstallation.d.ts → content/UpdateInstallation.d.ts} +1 -1
  72. package/build/src/components/Configure/{UpdateInstallation.js → content/UpdateInstallation.js} +42 -28
  73. package/build/src/components/Configure/{fields → content/fields}/FieldMappings/FieldMapping.d.ts +1 -1
  74. package/build/src/components/Configure/{fields → content/fields}/FieldMappings/FieldMapping.js +4 -7
  75. package/build/src/components/Configure/{fields → content/fields}/FieldMappings/RequiredFieldMappings.js +10 -11
  76. package/build/src/components/Configure/{fields → content/fields}/FieldMappings/setFieldMapping.d.ts +1 -1
  77. package/build/src/components/Configure/content/fields/FieldMappings/setFieldMapping.js +21 -0
  78. package/build/src/components/Configure/{fields → content/fields}/OptionalFields/OptionalFields.js +9 -14
  79. package/build/src/components/Configure/{fields → content/fields}/OptionalFields/setOptionalField.d.ts +1 -1
  80. package/build/src/components/Configure/content/fields/OptionalFields/setOptionalField.js +27 -0
  81. package/build/src/components/Configure/content/fields/ReadFields.d.ts +1 -0
  82. package/build/src/components/Configure/content/fields/ReadFields.js +11 -0
  83. package/build/src/components/Configure/content/fields/RequiredFields.js +23 -0
  84. package/build/src/components/Configure/content/fields/WriteFields/WriteFields.d.ts +1 -0
  85. package/build/src/components/Configure/content/fields/WriteFields/WriteFields.js +22 -0
  86. package/build/src/components/Configure/content/fields/WriteFields/index.d.ts +2 -0
  87. package/build/src/components/Configure/content/fields/WriteFields/index.js +5 -0
  88. package/build/src/components/Configure/content/fields/WriteFields/setNonConfigurableWriteField.d.ts +3 -0
  89. package/build/src/components/Configure/content/fields/WriteFields/setNonConfigurableWriteField.js +32 -0
  90. package/build/src/components/Configure/content/useMutateInstallation.d.ts +23 -0
  91. package/build/src/components/Configure/content/useMutateInstallation.js +47 -0
  92. package/build/src/components/Configure/content/useSelectedConfigureState.d.ts +72 -0
  93. package/build/src/components/Configure/content/useSelectedConfigureState.js +24 -0
  94. package/build/src/components/Configure/{ProtectedConnectionLayout.d.ts → layout/ProtectedConnectionLayout.d.ts} +2 -1
  95. package/build/src/components/Configure/layout/ProtectedConnectionLayout.js +34 -0
  96. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/NavObjectItem.d.ts +1 -0
  97. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/NavObjectItem.js +3 -3
  98. package/build/src/components/Configure/nav/ObjectManagementNav/OtherTab.d.ts +7 -0
  99. package/build/src/components/Configure/nav/ObjectManagementNav/OtherTab.js +11 -0
  100. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/UninstallInstallation.d.ts +1 -1
  101. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/UninstallInstallation.js +2 -2
  102. package/build/src/components/Configure/nav/ObjectManagementNav/constant.d.ts +1 -0
  103. package/build/src/components/Configure/nav/ObjectManagementNav/constant.js +4 -0
  104. package/build/src/components/Configure/{ObjectManagementNav → nav/ObjectManagementNav}/index.d.ts +1 -0
  105. package/build/src/components/Configure/nav/ObjectManagementNav/index.js +61 -0
  106. package/build/src/components/Configure/state/ConfigurationStateProvider.d.ts +70 -42
  107. package/build/src/components/Configure/state/ConfigurationStateProvider.js +39 -17
  108. package/build/src/components/Configure/state/HydratedRevisionContext.js +11 -9
  109. package/build/src/components/Configure/state/utils.d.ts +2 -2
  110. package/build/src/components/Configure/state/utils.js +44 -19
  111. package/build/src/components/Configure/types.d.ts +22 -6
  112. package/build/src/components/Configure/utils.d.ts +3 -2
  113. package/build/src/components/Configure/utils.js +25 -5
  114. package/build/src/components/Connect/ConnectProvider.d.ts +3 -1
  115. package/build/src/components/Connect/ConnectProvider.js +6 -12
  116. package/build/src/components/Connect/ConnectedSuccessBox.d.ts +5 -0
  117. package/build/src/components/Connect/ConnectedSuccessBox.js +13 -0
  118. package/build/src/components/Connect/useConnectionHandler.d.ts +10 -0
  119. package/build/src/components/Connect/useConnectionHandler.js +24 -0
  120. package/build/src/components/ErrorTextBox.js +11 -0
  121. package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.d.ts +8 -0
  122. package/build/src/components/Oauth/NoSubdomainEntry/LandingContent.js +11 -0
  123. package/build/src/components/Oauth/NoSubdomainEntry/NoSubdomainOauthFlow.d.ts +16 -0
  124. package/build/src/components/Oauth/NoSubdomainEntry/NoSubdomainOauthFlow.js +50 -0
  125. package/build/src/components/Oauth/OAuthErrorAlert.d.ts +5 -0
  126. package/build/src/components/Oauth/OAuthErrorAlert.js +12 -0
  127. package/build/src/components/{Connect → Oauth}/OAuthPopup.js +8 -10
  128. package/build/src/components/{Salesforce → Oauth/Salesforce}/SalesforceOauthFlow.d.ts +2 -2
  129. package/build/src/components/Oauth/Salesforce/SalesforceOauthFlow.js +57 -0
  130. package/build/src/components/Oauth/Salesforce/SubdomainEntry.d.ts +8 -0
  131. package/build/src/components/Oauth/Salesforce/SubdomainEntry.js +12 -0
  132. package/build/src/components/Oauth/fetchOAuthCallbackURL.d.ts +1 -0
  133. package/build/src/components/Oauth/fetchOAuthCallbackURL.js +28 -0
  134. package/build/src/components/RedirectHandler/RedirectHandler.d.ts +15 -0
  135. package/build/src/components/RedirectHandler/RedirectHandler.js +31 -0
  136. package/build/src/components/RedirectHandler/index.d.ts +1 -0
  137. package/build/src/components/RedirectHandler/index.js +5 -0
  138. package/build/src/constants.d.ts +1 -0
  139. package/build/src/constants.js +2 -1
  140. package/build/src/{components/AmpersandProvider/AmpersandProvider.js → context/AmpersandContextProvider/AmpersandContextProvider.js} +6 -6
  141. package/build/src/context/AmpersandContextProvider/index.d.ts +1 -0
  142. package/build/src/{components/AmpersandProvider → context/AmpersandContextProvider}/index.js +1 -1
  143. package/build/src/context/{ConnectionsContext.js → ConnectionsContextProvider.js} +11 -10
  144. package/build/src/context/{InstallIntegrationContext.d.ts → InstallIntegrationContextProvider.d.ts} +7 -2
  145. package/build/src/context/{InstallIntegrationContext.js → InstallIntegrationContextProvider.js} +29 -14
  146. package/build/src/context/{IntegrationListContext.js → IntegrationListContextProvider.js} +4 -4
  147. package/build/src/context/{ProjectContext.js → ProjectContextProvider.js} +4 -4
  148. package/build/src/hooks/useIsIntegrationInstalled.js +7 -7
  149. package/build/src/index.d.ts +1 -2
  150. package/build/src/index.js +1 -2
  151. package/build/src/public/index.d.ts +7 -0
  152. package/build/src/{components → public}/index.js +7 -3
  153. package/build/src/services/ApiService.d.ts +27 -0
  154. package/build/src/services/ApiService.js +34 -0
  155. package/build/src/services/api.d.ts +5 -4
  156. package/build/src/services/api.js +11 -6
  157. package/package.json +3 -3
  158. package/build/generated-sources/api/src/apis/DefaultApi.d.ts +0 -904
  159. package/build/generated-sources/api/src/apis/DefaultApi.js +0 -992
  160. package/build/generated-sources/api/src/models/CreateDestinationRequest.d.ts +0 -44
  161. package/build/generated-sources/api/src/models/CreateDestinationRequest.js +0 -57
  162. package/build/generated-sources/api/src/models/CreateDestinationRequestMetadata.d.ts +0 -39
  163. package/build/src/components/AmpersandProvider/index.d.ts +0 -1
  164. package/build/src/components/CenteredTextBox/CenteredTextBox.d.ts +0 -5
  165. package/build/src/components/CenteredTextBox/CenteredTextBox.js +0 -8
  166. package/build/src/components/Configure/ConfigureInstallationBase.js +0 -29
  167. package/build/src/components/Configure/CreateInstallation.js +0 -70
  168. package/build/src/components/Configure/ErrorTextBox.js +0 -9
  169. package/build/src/components/Configure/ObjectManagementNav/index.js +0 -52
  170. package/build/src/components/Configure/ProtectedConnectionLayout.js +0 -33
  171. package/build/src/components/Configure/actions/onSaveCreate.d.ts +0 -3
  172. package/build/src/components/Configure/actions/onSaveUpdate.d.ts +0 -3
  173. package/build/src/components/Configure/fields/FieldMappings/setFieldMapping.js +0 -18
  174. package/build/src/components/Configure/fields/OptionalFields/setOptionalField.js +0 -21
  175. package/build/src/components/Configure/fields/RequiredFields.js +0 -27
  176. package/build/src/components/Salesforce/SalesforceOauthFlow.js +0 -89
  177. package/build/src/components/index.d.ts +0 -3
  178. /package/build/src/components/Configure/{CreateInstallation.d.ts → content/CreateInstallation.d.ts} +0 -0
  179. /package/build/src/components/Configure/{UninstallContent.d.ts → content/UninstallContent.d.ts} +0 -0
  180. /package/build/src/components/Configure/{fields → content/fields}/FieldHeader.d.ts +0 -0
  181. /package/build/src/components/Configure/{fields → content/fields}/FieldHeader.js +0 -0
  182. /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/RequiredFieldMappings.d.ts +0 -0
  183. /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/index.d.ts +0 -0
  184. /package/build/src/components/Configure/{fields → content/fields}/FieldMappings/index.js +0 -0
  185. /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/OptionalFields.d.ts +0 -0
  186. /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/index.d.ts +0 -0
  187. /package/build/src/components/Configure/{fields → content/fields}/OptionalFields/index.js +0 -0
  188. /package/build/src/components/Configure/{fields → content/fields}/RequiredFields.d.ts +0 -0
  189. /package/build/src/components/{Configure/ErrorTextBox.d.ts → ErrorTextBox.d.ts} +0 -0
  190. /package/build/src/components/{Connect → Oauth}/OAuthPopup.d.ts +0 -0
  191. /package/build/src/{components/AmpersandProvider/AmpersandProvider.d.ts → context/AmpersandContextProvider/AmpersandContextProvider.d.ts} +0 -0
  192. /package/build/src/context/{ApiKeyProvider.d.ts → ApiKeyContextProvider.d.ts} +0 -0
  193. /package/build/src/context/{ApiKeyProvider.js → ApiKeyContextProvider.js} +0 -0
  194. /package/build/src/context/{ConnectionsContext.d.ts → ConnectionsContextProvider.d.ts} +0 -0
  195. /package/build/src/context/{IntegrationListContext.d.ts → IntegrationListContextProvider.d.ts} +0 -0
  196. /package/build/src/context/{ProjectContext.d.ts → ProjectContextProvider.d.ts} +0 -0
@@ -0,0 +1,128 @@
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 * as runtime from '../runtime';
13
+ import type { BatchUpsertIntegrationsRequest, CreateIntegrationRequest, Integration } from '../models';
14
+ export interface BatchUpsertIntegrationsOperationRequest {
15
+ projectId: string;
16
+ batchUpsertIntegrationsRequest?: BatchUpsertIntegrationsRequest;
17
+ }
18
+ export interface CreateIntegrationOperationRequest {
19
+ projectId: string;
20
+ integration: CreateIntegrationRequest;
21
+ }
22
+ export interface DeleteIntegrationRequest {
23
+ projectId: string;
24
+ integrationId: string;
25
+ }
26
+ export interface ListIntegrationsRequest {
27
+ projectId: string;
28
+ }
29
+ /**
30
+ * IntegrationApi - interface
31
+ *
32
+ * @export
33
+ * @interface IntegrationApiInterface
34
+ */
35
+ export interface IntegrationApiInterface {
36
+ /**
37
+ *
38
+ * @summary Batch upsert a group of integrations
39
+ * @param {string} projectId
40
+ * @param {BatchUpsertIntegrationsRequest} [batchUpsertIntegrationsRequest]
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ * @memberof IntegrationApiInterface
44
+ */
45
+ batchUpsertIntegrationsRaw(requestParameters: BatchUpsertIntegrationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Integration>>>;
46
+ /**
47
+ * Batch upsert a group of integrations
48
+ */
49
+ batchUpsertIntegrations(requestParameters: BatchUpsertIntegrationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Integration>>;
50
+ /**
51
+ *
52
+ * @summary Create a new integration
53
+ * @param {string} projectId
54
+ * @param {CreateIntegrationRequest} integration
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ * @memberof IntegrationApiInterface
58
+ */
59
+ createIntegrationRaw(requestParameters: CreateIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
60
+ /**
61
+ * Create a new integration
62
+ */
63
+ createIntegration(requestParameters: CreateIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
64
+ /**
65
+ *
66
+ * @summary Delete an integration
67
+ * @param {string} projectId
68
+ * @param {string} integrationId
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ * @memberof IntegrationApiInterface
72
+ */
73
+ deleteIntegrationRaw(requestParameters: DeleteIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
74
+ /**
75
+ * Delete an integration
76
+ */
77
+ deleteIntegration(requestParameters: DeleteIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
78
+ /**
79
+ *
80
+ * @summary List integrations
81
+ * @param {string} projectId
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ * @memberof IntegrationApiInterface
85
+ */
86
+ listIntegrationsRaw(requestParameters: ListIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Integration>>>;
87
+ /**
88
+ * List integrations
89
+ */
90
+ listIntegrations(requestParameters: ListIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Integration>>;
91
+ }
92
+ /**
93
+ *
94
+ */
95
+ export declare class IntegrationApi extends runtime.BaseAPI implements IntegrationApiInterface {
96
+ /**
97
+ * Batch upsert a group of integrations
98
+ */
99
+ batchUpsertIntegrationsRaw(requestParameters: BatchUpsertIntegrationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Integration>>>;
100
+ /**
101
+ * Batch upsert a group of integrations
102
+ */
103
+ batchUpsertIntegrations(requestParameters: BatchUpsertIntegrationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Integration>>;
104
+ /**
105
+ * Create a new integration
106
+ */
107
+ createIntegrationRaw(requestParameters: CreateIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
108
+ /**
109
+ * Create a new integration
110
+ */
111
+ createIntegration(requestParameters: CreateIntegrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
112
+ /**
113
+ * Delete an integration
114
+ */
115
+ deleteIntegrationRaw(requestParameters: DeleteIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
116
+ /**
117
+ * Delete an integration
118
+ */
119
+ deleteIntegration(requestParameters: DeleteIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
120
+ /**
121
+ * List integrations
122
+ */
123
+ listIntegrationsRaw(requestParameters: ListIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Integration>>>;
124
+ /**
125
+ * List integrations
126
+ */
127
+ listIntegrations(requestParameters: ListIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Integration>>;
128
+ }
@@ -0,0 +1,154 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.IntegrationApi = void 0;
40
+ const runtime = __importStar(require("../runtime"));
41
+ const models_1 = require("../models");
42
+ /**
43
+ *
44
+ */
45
+ class IntegrationApi extends runtime.BaseAPI {
46
+ /**
47
+ * Batch upsert a group of integrations
48
+ */
49
+ async batchUpsertIntegrationsRaw(requestParameters, initOverrides) {
50
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
51
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling batchUpsertIntegrations.');
52
+ }
53
+ const queryParameters = {};
54
+ const headerParameters = {};
55
+ headerParameters['Content-Type'] = 'application/json';
56
+ const response = await this.request({
57
+ path: `/projects/{projectId}/integrations:batch`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
58
+ method: 'PUT',
59
+ headers: headerParameters,
60
+ query: queryParameters,
61
+ body: (0, models_1.BatchUpsertIntegrationsRequestToJSON)(requestParameters.batchUpsertIntegrationsRequest),
62
+ }, initOverrides);
63
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.IntegrationFromJSON));
64
+ }
65
+ /**
66
+ * Batch upsert a group of integrations
67
+ */
68
+ async batchUpsertIntegrations(requestParameters, initOverrides) {
69
+ const response = await this.batchUpsertIntegrationsRaw(requestParameters, initOverrides);
70
+ return await response.value();
71
+ }
72
+ /**
73
+ * Create a new integration
74
+ */
75
+ async createIntegrationRaw(requestParameters, initOverrides) {
76
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
77
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling createIntegration.');
78
+ }
79
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
80
+ throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling createIntegration.');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ headerParameters['Content-Type'] = 'application/json';
85
+ const response = await this.request({
86
+ path: `/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
87
+ method: 'POST',
88
+ headers: headerParameters,
89
+ query: queryParameters,
90
+ body: (0, models_1.CreateIntegrationRequestToJSON)(requestParameters.integration),
91
+ }, initOverrides);
92
+ return new runtime.VoidApiResponse(response);
93
+ }
94
+ /**
95
+ * Create a new integration
96
+ */
97
+ async createIntegration(requestParameters, initOverrides) {
98
+ await this.createIntegrationRaw(requestParameters, initOverrides);
99
+ }
100
+ /**
101
+ * Delete an integration
102
+ */
103
+ async deleteIntegrationRaw(requestParameters, initOverrides) {
104
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
105
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteIntegration.');
106
+ }
107
+ if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
108
+ throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling deleteIntegration.');
109
+ }
110
+ const queryParameters = {};
111
+ if (requestParameters.integrationId !== undefined) {
112
+ queryParameters['integrationId'] = requestParameters.integrationId;
113
+ }
114
+ const headerParameters = {};
115
+ const response = await this.request({
116
+ path: `/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
117
+ method: 'DELETE',
118
+ headers: headerParameters,
119
+ query: queryParameters,
120
+ }, initOverrides);
121
+ return new runtime.VoidApiResponse(response);
122
+ }
123
+ /**
124
+ * Delete an integration
125
+ */
126
+ async deleteIntegration(requestParameters, initOverrides) {
127
+ await this.deleteIntegrationRaw(requestParameters, initOverrides);
128
+ }
129
+ /**
130
+ * List integrations
131
+ */
132
+ async listIntegrationsRaw(requestParameters, initOverrides) {
133
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
134
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling listIntegrations.');
135
+ }
136
+ const queryParameters = {};
137
+ const headerParameters = {};
138
+ const response = await this.request({
139
+ path: `/projects/{projectId}/integrations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
140
+ method: 'GET',
141
+ headers: headerParameters,
142
+ query: queryParameters,
143
+ }, initOverrides);
144
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.IntegrationFromJSON));
145
+ }
146
+ /**
147
+ * List integrations
148
+ */
149
+ async listIntegrations(requestParameters, initOverrides) {
150
+ const response = await this.listIntegrationsRaw(requestParameters, initOverrides);
151
+ return await response.value();
152
+ }
153
+ }
154
+ exports.IntegrationApi = IntegrationApi;
@@ -0,0 +1,76 @@
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 * as runtime from '../runtime';
13
+ import type { OauthConnectRequest } from '../models';
14
+ export interface OauthConnectOperationRequest {
15
+ connectOAuthParams: OauthConnectRequest;
16
+ }
17
+ /**
18
+ * OAuthApi - interface
19
+ *
20
+ * @export
21
+ * @interface OAuthApiInterface
22
+ */
23
+ export interface OAuthApiInterface {
24
+ /**
25
+ * Generate a URL for the browser to render to kick off OAuth flow.
26
+ * @summary Get URL for OAuth flow
27
+ * @param {OauthConnectRequest} connectOAuthParams
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ * @memberof OAuthApiInterface
31
+ */
32
+ oauthConnectRaw(requestParameters: OauthConnectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
33
+ /**
34
+ * Generate a URL for the browser to render to kick off OAuth flow.
35
+ * Get URL for OAuth flow
36
+ */
37
+ oauthConnect(requestParameters: OauthConnectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
38
+ /**
39
+ * Options endpoint for CORS preflight request
40
+ * @summary Options endpoint
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ * @memberof OAuthApiInterface
44
+ */
45
+ oauthConnectCorsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
46
+ /**
47
+ * Options endpoint for CORS preflight request
48
+ * Options endpoint
49
+ */
50
+ oauthConnectCors(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
+ }
52
+ /**
53
+ *
54
+ */
55
+ export declare class OAuthApi extends runtime.BaseAPI implements OAuthApiInterface {
56
+ /**
57
+ * Generate a URL for the browser to render to kick off OAuth flow.
58
+ * Get URL for OAuth flow
59
+ */
60
+ oauthConnectRaw(requestParameters: OauthConnectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
61
+ /**
62
+ * Generate a URL for the browser to render to kick off OAuth flow.
63
+ * Get URL for OAuth flow
64
+ */
65
+ oauthConnect(requestParameters: OauthConnectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
66
+ /**
67
+ * Options endpoint for CORS preflight request
68
+ * Options endpoint
69
+ */
70
+ oauthConnectCorsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
71
+ /**
72
+ * Options endpoint for CORS preflight request
73
+ * Options endpoint
74
+ */
75
+ oauthConnectCors(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
76
+ }
@@ -0,0 +1,102 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.OAuthApi = void 0;
40
+ const runtime = __importStar(require("../runtime"));
41
+ const models_1 = require("../models");
42
+ /**
43
+ *
44
+ */
45
+ class OAuthApi extends runtime.BaseAPI {
46
+ /**
47
+ * Generate a URL for the browser to render to kick off OAuth flow.
48
+ * Get URL for OAuth flow
49
+ */
50
+ async oauthConnectRaw(requestParameters, initOverrides) {
51
+ if (requestParameters.connectOAuthParams === null || requestParameters.connectOAuthParams === undefined) {
52
+ throw new runtime.RequiredError('connectOAuthParams', 'Required parameter requestParameters.connectOAuthParams was null or undefined when calling oauthConnect.');
53
+ }
54
+ const queryParameters = {};
55
+ const headerParameters = {};
56
+ headerParameters['Content-Type'] = 'application/json';
57
+ const response = await this.request({
58
+ path: `/oauth-connect`,
59
+ method: 'POST',
60
+ headers: headerParameters,
61
+ query: queryParameters,
62
+ body: (0, models_1.OauthConnectRequestToJSON)(requestParameters.connectOAuthParams),
63
+ }, initOverrides);
64
+ if (this.isJsonMime(response.headers.get('content-type'))) {
65
+ return new runtime.JSONApiResponse(response);
66
+ }
67
+ else {
68
+ return new runtime.TextApiResponse(response);
69
+ }
70
+ }
71
+ /**
72
+ * Generate a URL for the browser to render to kick off OAuth flow.
73
+ * Get URL for OAuth flow
74
+ */
75
+ async oauthConnect(requestParameters, initOverrides) {
76
+ const response = await this.oauthConnectRaw(requestParameters, initOverrides);
77
+ return await response.value();
78
+ }
79
+ /**
80
+ * Options endpoint for CORS preflight request
81
+ * Options endpoint
82
+ */
83
+ async oauthConnectCorsRaw(initOverrides) {
84
+ const queryParameters = {};
85
+ const headerParameters = {};
86
+ const response = await this.request({
87
+ path: `/oauth-connect`,
88
+ method: 'OPTIONS',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ }, initOverrides);
92
+ return new runtime.VoidApiResponse(response);
93
+ }
94
+ /**
95
+ * Options endpoint for CORS preflight request
96
+ * Options endpoint
97
+ */
98
+ async oauthConnectCors(initOverrides) {
99
+ await this.oauthConnectCorsRaw(initOverrides);
100
+ }
101
+ }
102
+ exports.OAuthApi = OAuthApi;
@@ -0,0 +1,80 @@
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 * as runtime from '../runtime';
13
+ import type { Operation } from '../models';
14
+ export interface GetOperationRequest {
15
+ projectId: string;
16
+ operationId: string;
17
+ }
18
+ export interface ListOperationsRequest {
19
+ projectId: string;
20
+ integrationId: string;
21
+ installationId: string;
22
+ }
23
+ /**
24
+ * OperationApi - interface
25
+ *
26
+ * @export
27
+ * @interface OperationApiInterface
28
+ */
29
+ export interface OperationApiInterface {
30
+ /**
31
+ *
32
+ * @summary Get an operation
33
+ * @param {string} projectId
34
+ * @param {string} operationId
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ * @memberof OperationApiInterface
38
+ */
39
+ getOperationRaw(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Operation>>;
40
+ /**
41
+ * Get an operation
42
+ */
43
+ getOperation(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Operation>;
44
+ /**
45
+ *
46
+ * @summary List operations
47
+ * @param {string} projectId
48
+ * @param {string} integrationId
49
+ * @param {string} installationId
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ * @memberof OperationApiInterface
53
+ */
54
+ listOperationsRaw(requestParameters: ListOperationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Operation>>>;
55
+ /**
56
+ * List operations
57
+ */
58
+ listOperations(requestParameters: ListOperationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Operation>>;
59
+ }
60
+ /**
61
+ *
62
+ */
63
+ export declare class OperationApi extends runtime.BaseAPI implements OperationApiInterface {
64
+ /**
65
+ * Get an operation
66
+ */
67
+ getOperationRaw(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Operation>>;
68
+ /**
69
+ * Get an operation
70
+ */
71
+ getOperation(requestParameters: GetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Operation>;
72
+ /**
73
+ * List operations
74
+ */
75
+ listOperationsRaw(requestParameters: ListOperationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Operation>>>;
76
+ /**
77
+ * List operations
78
+ */
79
+ listOperations(requestParameters: ListOperationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Operation>>;
80
+ }
@@ -0,0 +1,104 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.OperationApi = void 0;
40
+ const runtime = __importStar(require("../runtime"));
41
+ const models_1 = require("../models");
42
+ /**
43
+ *
44
+ */
45
+ class OperationApi extends runtime.BaseAPI {
46
+ /**
47
+ * Get an operation
48
+ */
49
+ async getOperationRaw(requestParameters, initOverrides) {
50
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
51
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getOperation.');
52
+ }
53
+ if (requestParameters.operationId === null || requestParameters.operationId === undefined) {
54
+ throw new runtime.RequiredError('operationId', 'Required parameter requestParameters.operationId was null or undefined when calling getOperation.');
55
+ }
56
+ const queryParameters = {};
57
+ const headerParameters = {};
58
+ const response = await this.request({
59
+ path: `/projects/{projectId}/operations/{operationId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"operationId"}}`, encodeURIComponent(String(requestParameters.operationId))),
60
+ method: 'GET',
61
+ headers: headerParameters,
62
+ query: queryParameters,
63
+ }, initOverrides);
64
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OperationFromJSON)(jsonValue));
65
+ }
66
+ /**
67
+ * Get an operation
68
+ */
69
+ async getOperation(requestParameters, initOverrides) {
70
+ const response = await this.getOperationRaw(requestParameters, initOverrides);
71
+ return await response.value();
72
+ }
73
+ /**
74
+ * List operations
75
+ */
76
+ async listOperationsRaw(requestParameters, initOverrides) {
77
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
78
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling listOperations.');
79
+ }
80
+ if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
81
+ throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling listOperations.');
82
+ }
83
+ if (requestParameters.installationId === null || requestParameters.installationId === undefined) {
84
+ throw new runtime.RequiredError('installationId', 'Required parameter requestParameters.installationId was null or undefined when calling listOperations.');
85
+ }
86
+ const queryParameters = {};
87
+ const headerParameters = {};
88
+ const response = await this.request({
89
+ path: `/projects/{projectId}/integrations/{integrationId}/installations/{installationId}/operations`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"integrationId"}}`, encodeURIComponent(String(requestParameters.integrationId))).replace(`{${"installationId"}}`, encodeURIComponent(String(requestParameters.installationId))),
90
+ method: 'GET',
91
+ headers: headerParameters,
92
+ query: queryParameters,
93
+ }, initOverrides);
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.OperationFromJSON));
95
+ }
96
+ /**
97
+ * List operations
98
+ */
99
+ async listOperations(requestParameters, initOverrides) {
100
+ const response = await this.listOperationsRaw(requestParameters, initOverrides);
101
+ return await response.value();
102
+ }
103
+ }
104
+ exports.OperationApi = OperationApi;