@gooddata/sdk-backend-tiger 11.10.0-alpha.4 → 11.10.0-alpha.6

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 (242) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.js +1 -1
  3. package/esm/auth.d.ts.map +1 -1
  4. package/esm/auth.js +2 -1
  5. package/esm/auth.js.map +1 -1
  6. package/esm/backend/dataSources/index.d.ts.map +1 -1
  7. package/esm/backend/dataSources/index.js +5 -3
  8. package/esm/backend/dataSources/index.js.map +1 -1
  9. package/esm/backend/entitlements/index.d.ts.map +1 -1
  10. package/esm/backend/entitlements/index.js +4 -2
  11. package/esm/backend/entitlements/index.js.map +1 -1
  12. package/esm/backend/features/index.d.ts.map +1 -1
  13. package/esm/backend/features/index.js +4 -4
  14. package/esm/backend/features/index.js.map +1 -1
  15. package/esm/backend/index.d.ts.map +1 -1
  16. package/esm/backend/index.js +2 -2
  17. package/esm/backend/index.js.map +1 -1
  18. package/esm/backend/organization/automations/automationsQuery.d.ts.map +1 -1
  19. package/esm/backend/organization/automations/automationsQuery.js +2 -3
  20. package/esm/backend/organization/automations/automationsQuery.js.map +1 -1
  21. package/esm/backend/organization/automations/index.d.ts.map +1 -1
  22. package/esm/backend/organization/automations/index.js +5 -4
  23. package/esm/backend/organization/automations/index.js.map +1 -1
  24. package/esm/backend/organization/index.d.ts.map +1 -1
  25. package/esm/backend/organization/index.js +6 -4
  26. package/esm/backend/organization/index.js.map +1 -1
  27. package/esm/backend/organization/llmEndpoints.d.ts.map +1 -1
  28. package/esm/backend/organization/llmEndpoints.js +11 -9
  29. package/esm/backend/organization/llmEndpoints.js.map +1 -1
  30. package/esm/backend/organization/notificationChannels.d.ts.map +1 -1
  31. package/esm/backend/organization/notificationChannels.js +14 -10
  32. package/esm/backend/organization/notificationChannels.js.map +1 -1
  33. package/esm/backend/organization/notificationChannelsQuery.d.ts.map +1 -1
  34. package/esm/backend/organization/notificationChannelsQuery.js +3 -2
  35. package/esm/backend/organization/notificationChannelsQuery.js.map +1 -1
  36. package/esm/backend/organization/notifications.d.ts.map +1 -1
  37. package/esm/backend/organization/notifications.js +3 -2
  38. package/esm/backend/organization/notifications.js.map +1 -1
  39. package/esm/backend/organization/notificationsQuery.d.ts.map +1 -1
  40. package/esm/backend/organization/notificationsQuery.js +2 -1
  41. package/esm/backend/organization/notificationsQuery.js.map +1 -1
  42. package/esm/backend/organization/permissions.d.ts.map +1 -1
  43. package/esm/backend/organization/permissions.js +11 -9
  44. package/esm/backend/organization/permissions.js.map +1 -1
  45. package/esm/backend/organization/settings.d.ts.map +1 -1
  46. package/esm/backend/organization/settings.js +8 -5
  47. package/esm/backend/organization/settings.js.map +1 -1
  48. package/esm/backend/organization/styling.d.ts.map +1 -1
  49. package/esm/backend/organization/styling.js +13 -20
  50. package/esm/backend/organization/styling.js.map +1 -1
  51. package/esm/backend/organization/users.d.ts.map +1 -1
  52. package/esm/backend/organization/users.js +26 -31
  53. package/esm/backend/organization/users.js.map +1 -1
  54. package/esm/backend/tigerSpecificFunctions.d.ts +2 -2
  55. package/esm/backend/tigerSpecificFunctions.d.ts.map +1 -1
  56. package/esm/backend/tigerSpecificFunctions.js +116 -117
  57. package/esm/backend/tigerSpecificFunctions.js.map +1 -1
  58. package/esm/backend/user/index.d.ts.map +1 -1
  59. package/esm/backend/user/index.js +4 -2
  60. package/esm/backend/user/index.js.map +1 -1
  61. package/esm/backend/user/settings.d.ts.map +1 -1
  62. package/esm/backend/user/settings.js +14 -10
  63. package/esm/backend/user/settings.js.map +1 -1
  64. package/esm/backend/workspace/accessControl/index.d.ts.map +1 -1
  65. package/esm/backend/workspace/accessControl/index.js +11 -14
  66. package/esm/backend/workspace/accessControl/index.js.map +1 -1
  67. package/esm/backend/workspace/attributeHierarchies/index.d.ts.map +1 -1
  68. package/esm/backend/workspace/attributeHierarchies/index.js +9 -7
  69. package/esm/backend/workspace/attributeHierarchies/index.js.map +1 -1
  70. package/esm/backend/workspace/attributes/attributesQuery.d.ts.map +1 -1
  71. package/esm/backend/workspace/attributes/attributesQuery.js +2 -1
  72. package/esm/backend/workspace/attributes/attributesQuery.js.map +1 -1
  73. package/esm/backend/workspace/attributes/elements/index.d.ts.map +1 -1
  74. package/esm/backend/workspace/attributes/elements/index.js +7 -10
  75. package/esm/backend/workspace/attributes/elements/index.js.map +1 -1
  76. package/esm/backend/workspace/attributes/index.d.ts.map +1 -1
  77. package/esm/backend/workspace/attributes/index.js +13 -15
  78. package/esm/backend/workspace/attributes/index.js.map +1 -1
  79. package/esm/backend/workspace/automations/automationsQuery.d.ts.map +1 -1
  80. package/esm/backend/workspace/automations/automationsQuery.js +2 -1
  81. package/esm/backend/workspace/automations/automationsQuery.js.map +1 -1
  82. package/esm/backend/workspace/automations/index.d.ts.map +1 -1
  83. package/esm/backend/workspace/automations/index.js +18 -10
  84. package/esm/backend/workspace/automations/index.js.map +1 -1
  85. package/esm/backend/workspace/catalog/availableItemsFactory.d.ts.map +1 -1
  86. package/esm/backend/workspace/catalog/availableItemsFactory.js +6 -5
  87. package/esm/backend/workspace/catalog/availableItemsFactory.js.map +1 -1
  88. package/esm/backend/workspace/catalog/datasetLoader.d.ts +2 -2
  89. package/esm/backend/workspace/catalog/datasetLoader.d.ts.map +1 -1
  90. package/esm/backend/workspace/catalog/datasetLoader.js +4 -6
  91. package/esm/backend/workspace/catalog/datasetLoader.js.map +1 -1
  92. package/esm/backend/workspace/catalog/factory.d.ts.map +1 -1
  93. package/esm/backend/workspace/catalog/factory.js +3 -2
  94. package/esm/backend/workspace/catalog/factory.js.map +1 -1
  95. package/esm/backend/workspace/dashboards/dashboardsQuery.d.ts.map +1 -1
  96. package/esm/backend/workspace/dashboards/dashboardsQuery.js +2 -1
  97. package/esm/backend/workspace/dashboards/dashboardsQuery.js.map +1 -1
  98. package/esm/backend/workspace/dashboards/index.d.ts.map +1 -1
  99. package/esm/backend/workspace/dashboards/index.js +57 -59
  100. package/esm/backend/workspace/dashboards/index.js.map +1 -1
  101. package/esm/backend/workspace/dataFilters/index.d.ts.map +1 -1
  102. package/esm/backend/workspace/dataFilters/index.js +12 -13
  103. package/esm/backend/workspace/dataFilters/index.js.map +1 -1
  104. package/esm/backend/workspace/datasets/index.d.ts.map +1 -1
  105. package/esm/backend/workspace/datasets/index.js +3 -1
  106. package/esm/backend/workspace/datasets/index.js.map +1 -1
  107. package/esm/backend/workspace/dateFilterConfigs/index.d.ts.map +1 -1
  108. package/esm/backend/workspace/dateFilterConfigs/index.js +2 -1
  109. package/esm/backend/workspace/dateFilterConfigs/index.js.map +1 -1
  110. package/esm/backend/workspace/execution/executionResult.d.ts.map +1 -1
  111. package/esm/backend/workspace/execution/executionResult.js +21 -28
  112. package/esm/backend/workspace/execution/executionResult.js.map +1 -1
  113. package/esm/backend/workspace/execution/preparedExecution.d.ts.map +1 -1
  114. package/esm/backend/workspace/execution/preparedExecution.js +4 -2
  115. package/esm/backend/workspace/execution/preparedExecution.js.map +1 -1
  116. package/esm/backend/workspace/exportDefinitions/exportDefinitionsQuery.d.ts.map +1 -1
  117. package/esm/backend/workspace/exportDefinitions/exportDefinitionsQuery.js +2 -1
  118. package/esm/backend/workspace/exportDefinitions/exportDefinitionsQuery.js.map +1 -1
  119. package/esm/backend/workspace/exportDefinitions/index.d.ts.map +1 -1
  120. package/esm/backend/workspace/exportDefinitions/index.js +6 -5
  121. package/esm/backend/workspace/exportDefinitions/index.js.map +1 -1
  122. package/esm/backend/workspace/facts/factsQuery.d.ts.map +1 -1
  123. package/esm/backend/workspace/facts/factsQuery.js +2 -1
  124. package/esm/backend/workspace/facts/factsQuery.js.map +1 -1
  125. package/esm/backend/workspace/facts/index.d.ts.map +1 -1
  126. package/esm/backend/workspace/facts/index.js +6 -7
  127. package/esm/backend/workspace/facts/index.js.map +1 -1
  128. package/esm/backend/workspace/genAI/AnalyticsCatalogService.d.ts.map +1 -1
  129. package/esm/backend/workspace/genAI/AnalyticsCatalogService.js +3 -2
  130. package/esm/backend/workspace/genAI/AnalyticsCatalogService.js.map +1 -1
  131. package/esm/backend/workspace/genAI/ChatThread.d.ts.map +1 -1
  132. package/esm/backend/workspace/genAI/ChatThread.js +8 -7
  133. package/esm/backend/workspace/genAI/ChatThread.js.map +1 -1
  134. package/esm/backend/workspace/genAI/MemoryItemsQuery.d.ts.map +1 -1
  135. package/esm/backend/workspace/genAI/MemoryItemsQuery.js +2 -1
  136. package/esm/backend/workspace/genAI/MemoryItemsQuery.js.map +1 -1
  137. package/esm/backend/workspace/genAI/MemoryItemsService.d.ts.map +1 -1
  138. package/esm/backend/workspace/genAI/MemoryItemsService.js +10 -9
  139. package/esm/backend/workspace/genAI/MemoryItemsService.js.map +1 -1
  140. package/esm/backend/workspace/genAI/SemanticQualityService.d.ts.map +1 -1
  141. package/esm/backend/workspace/genAI/SemanticQualityService.js +5 -2
  142. package/esm/backend/workspace/genAI/SemanticQualityService.js.map +1 -1
  143. package/esm/backend/workspace/genAI/SemanticSearchQuery.d.ts.map +1 -1
  144. package/esm/backend/workspace/genAI/SemanticSearchQuery.js +2 -1
  145. package/esm/backend/workspace/genAI/SemanticSearchQuery.js.map +1 -1
  146. package/esm/backend/workspace/genAI/index.d.ts.map +1 -1
  147. package/esm/backend/workspace/genAI/index.js +2 -1
  148. package/esm/backend/workspace/genAI/index.js.map +1 -1
  149. package/esm/backend/workspace/index.d.ts.map +1 -1
  150. package/esm/backend/workspace/index.js +5 -3
  151. package/esm/backend/workspace/index.js.map +1 -1
  152. package/esm/backend/workspace/insights/index.d.ts.map +1 -1
  153. package/esm/backend/workspace/insights/index.js +19 -19
  154. package/esm/backend/workspace/insights/index.js.map +1 -1
  155. package/esm/backend/workspace/insights/insightsQuery.d.ts.map +1 -1
  156. package/esm/backend/workspace/insights/insightsQuery.js +2 -1
  157. package/esm/backend/workspace/insights/insightsQuery.js.map +1 -1
  158. package/esm/backend/workspace/keyDriverAnalysis/index.d.ts.map +1 -1
  159. package/esm/backend/workspace/keyDriverAnalysis/index.js +3 -2
  160. package/esm/backend/workspace/keyDriverAnalysis/index.js.map +1 -1
  161. package/esm/backend/workspace/ldm/index.d.ts.map +1 -1
  162. package/esm/backend/workspace/ldm/index.js +5 -3
  163. package/esm/backend/workspace/ldm/index.js.map +1 -1
  164. package/esm/backend/workspace/measures/index.d.ts.map +1 -1
  165. package/esm/backend/workspace/measures/index.js +18 -15
  166. package/esm/backend/workspace/measures/index.js.map +1 -1
  167. package/esm/backend/workspace/measures/measuresQuery.d.ts.map +1 -1
  168. package/esm/backend/workspace/measures/measuresQuery.js +2 -1
  169. package/esm/backend/workspace/measures/measuresQuery.js.map +1 -1
  170. package/esm/backend/workspace/permissions/index.d.ts.map +1 -1
  171. package/esm/backend/workspace/permissions/index.js +3 -1
  172. package/esm/backend/workspace/permissions/index.js.map +1 -1
  173. package/esm/backend/workspace/settings/index.d.ts.map +1 -1
  174. package/esm/backend/workspace/settings/index.js +17 -12
  175. package/esm/backend/workspace/settings/index.js.map +1 -1
  176. package/esm/backend/workspace/styling/index.d.ts.map +1 -1
  177. package/esm/backend/workspace/styling/index.js +3 -4
  178. package/esm/backend/workspace/styling/index.js.map +1 -1
  179. package/esm/backend/workspace/users/index.d.ts.map +1 -1
  180. package/esm/backend/workspace/users/index.js +2 -1
  181. package/esm/backend/workspace/users/index.js.map +1 -1
  182. package/esm/backend/workspaces/index.d.ts.map +1 -1
  183. package/esm/backend/workspaces/index.js +3 -2
  184. package/esm/backend/workspaces/index.js.map +1 -1
  185. package/esm/convertors/fromBackend/AutomationConverter.d.ts.map +1 -1
  186. package/esm/convertors/fromBackend/AutomationConverter.js +1 -2
  187. package/esm/convertors/fromBackend/AutomationConverter.js.map +1 -1
  188. package/esm/convertors/fromBackend/ExportDefinitionsConverter.d.ts +3 -3
  189. package/esm/convertors/fromBackend/ExportDefinitionsConverter.d.ts.map +1 -1
  190. package/esm/convertors/fromBackend/ExportDefinitionsConverter.js.map +1 -1
  191. package/esm/convertors/fromBackend/LabelTypeConverter.js +6 -7
  192. package/esm/convertors/fromBackend/LabelTypeConverter.js.map +1 -1
  193. package/esm/convertors/fromBackend/NotificationChannelsConvertor.d.ts.map +1 -1
  194. package/esm/convertors/fromBackend/NotificationChannelsConvertor.js +10 -11
  195. package/esm/convertors/fromBackend/NotificationChannelsConvertor.js.map +1 -1
  196. package/esm/convertors/fromBackend/ObjectInheritance.d.ts +3 -3
  197. package/esm/convertors/fromBackend/ObjectInheritance.d.ts.map +1 -1
  198. package/esm/convertors/fromBackend/ObjectInheritance.js.map +1 -1
  199. package/esm/convertors/fromBackend/afm/DimensionHeaderConverter.d.ts.map +1 -1
  200. package/esm/convertors/fromBackend/afm/DimensionHeaderConverter.js +20 -4
  201. package/esm/convertors/fromBackend/afm/DimensionHeaderConverter.js.map +1 -1
  202. package/esm/convertors/fromBackend/analyticalDashboards/v2/AnalyticalDashboardConverter.d.ts.map +1 -1
  203. package/esm/convertors/fromBackend/analyticalDashboards/v2/AnalyticalDashboardConverter.js +6 -5
  204. package/esm/convertors/fromBackend/analyticalDashboards/v2/AnalyticalDashboardConverter.js.map +1 -1
  205. package/esm/convertors/fromBackend/dateGranularityConversions.d.ts.map +1 -1
  206. package/esm/convertors/fromBackend/dateGranularityConversions.js +33 -34
  207. package/esm/convertors/fromBackend/dateGranularityConversions.js.map +1 -1
  208. package/esm/convertors/toBackend/AnalyticalDashboardConverter.js +4 -4
  209. package/esm/convertors/toBackend/AnalyticalDashboardConverter.js.map +1 -1
  210. package/esm/convertors/toBackend/AutomationConverter.js +1 -2
  211. package/esm/convertors/toBackend/AutomationConverter.js.map +1 -1
  212. package/esm/convertors/toBackend/ExportDefinitionsConverter.d.ts.map +1 -1
  213. package/esm/convertors/toBackend/ExportDefinitionsConverter.js +1 -2
  214. package/esm/convertors/toBackend/ExportDefinitionsConverter.js.map +1 -1
  215. package/esm/convertors/toBackend/NotificationChannelsConvertor.d.ts.map +1 -1
  216. package/esm/convertors/toBackend/NotificationChannelsConvertor.js +10 -14
  217. package/esm/convertors/toBackend/NotificationChannelsConvertor.js.map +1 -1
  218. package/esm/convertors/toBackend/afm/DimensionsConverter.d.ts.map +1 -1
  219. package/esm/convertors/toBackend/afm/DimensionsConverter.js +4 -7
  220. package/esm/convertors/toBackend/afm/DimensionsConverter.js.map +1 -1
  221. package/esm/convertors/toBackend/afm/MeasureConverter.js +13 -14
  222. package/esm/convertors/toBackend/afm/MeasureConverter.js.map +1 -1
  223. package/esm/convertors/toBackend/afm/TotalsConverter.js +6 -7
  224. package/esm/convertors/toBackend/afm/TotalsConverter.js.map +1 -1
  225. package/esm/index.d.ts +1 -2
  226. package/esm/index.d.ts.map +1 -1
  227. package/esm/index.js +0 -1
  228. package/esm/index.js.map +1 -1
  229. package/esm/sdk-backend-tiger.d.ts +2 -2
  230. package/esm/types/index.d.ts +2 -2
  231. package/esm/types/index.d.ts.map +1 -1
  232. package/esm/types/index.js +1 -0
  233. package/esm/types/index.js.map +1 -1
  234. package/esm/utils/exportPolling.d.ts +3 -3
  235. package/esm/utils/exportPolling.d.ts.map +1 -1
  236. package/esm/utils/exportPolling.js +6 -5
  237. package/esm/utils/exportPolling.js.map +1 -1
  238. package/esm/utils/ldmItemUpdate.d.ts +2 -2
  239. package/esm/utils/ldmItemUpdate.d.ts.map +1 -1
  240. package/esm/utils/ldmItemUpdate.js +3 -2
  241. package/esm/utils/ldmItemUpdate.js.map +1 -1
  242. package/package.json +9 -9
@@ -1,7 +1,13 @@
1
1
  // (C) 2022-2025 GoodData Corporation
2
2
  import { backOff } from "exponential-backoff";
3
3
  import { isEmpty, uniq } from "lodash-es";
4
- import { JsonApiApiTokenInTypeEnum, JsonApiCspDirectiveInTypeEnum, JsonApiCustomApplicationSettingOutTypeEnum, JsonApiDataSourceInTypeEnum, JsonApiOrganizationPatchTypeEnum, JsonApiWorkspaceInTypeEnum, MetadataUtilities, OrganizationUtilities, jsonApiHeaders, } from "@gooddata/api-client-tiger";
4
+ import { MetadataUtilities, OrganizationUtilities, jsonApiHeaders, } from "@gooddata/api-client-tiger";
5
+ import { ActionsApi_AllPlatformUsage, ActionsApi_CheckEntityOverrides, ActionsApi_GenerateLogicalModel, ActionsApi_GetDependentEntitiesGraph, ActionsApi_GetDependentEntitiesGraphFromEntryPoints, ActionsApi_RegisterUploadNotification, ActionsApi_ResolveAllEntitlements, } from "@gooddata/api-client-tiger/actions";
6
+ import { AuthApi_ProcessInvitation } from "@gooddata/api-client-tiger/authActions";
7
+ import { EntitiesApi_CreateEntityApiTokens, EntitiesApi_CreateEntityCspDirectives, EntitiesApi_CreateEntityCustomApplicationSettings, EntitiesApi_CreateEntityDataSources, EntitiesApi_CreateEntityWorkspaceDataFilterSettings, EntitiesApi_CreateEntityWorkspaceDataFilters, EntitiesApi_CreateEntityWorkspaces, EntitiesApi_DeleteEntityApiTokens, EntitiesApi_DeleteEntityCspDirectives, EntitiesApi_DeleteEntityCustomApplicationSettings, EntitiesApi_DeleteEntityDataSources, EntitiesApi_DeleteEntityWorkspaces, EntitiesApi_GetAllEntitiesApiTokens, EntitiesApi_GetAllEntitiesCspDirectives, EntitiesApi_GetAllEntitiesCustomApplicationSettings, EntitiesApi_GetAllEntitiesDataSourceIdentifiers, EntitiesApi_GetAllEntitiesDataSources, EntitiesApi_GetAllEntitiesDatasets, EntitiesApi_GetAllEntitiesEntitlements, EntitiesApi_GetAllEntitiesWorkspaces, EntitiesApi_GetEntityCspDirectives, EntitiesApi_GetEntityCustomApplicationSettings, EntitiesApi_GetEntityDataSourceIdentifiers, EntitiesApi_GetEntityDataSources, EntitiesApi_GetEntityOrganizations, EntitiesApi_GetEntityUsers, EntitiesApi_GetEntityWorkspaceDataFilterSettings, EntitiesApi_GetEntityWorkspaceDataFilters, EntitiesApi_PatchEntityDataSources, EntitiesApi_PatchEntityOrganizations, EntitiesApi_PatchEntityWorkspaces, EntitiesApi_UpdateEntityCspDirectives, EntitiesApi_UpdateEntityDataSources, } from "@gooddata/api-client-tiger/entitiesObjects";
8
+ import { LayoutApi_GetLogicalModel, LayoutApi_GetWorkspaceDataFiltersLayout, LayoutApi_PutWorkspaceLayout, LayoutApi_SetLogicalModel, LayoutApi_SetWorkspaceDataFiltersLayout, } from "@gooddata/api-client-tiger/layout";
9
+ import { ResultApi_AnalyzeCsv, ResultApi_DeleteFiles, ResultApi_ImportCsv, ResultApi_ListFiles, ResultApi_ReadCsvFileManifests, ResultApi_StagingUpload, } from "@gooddata/api-client-tiger/result";
10
+ import { ScanModelApi_GetDataSourceSchemata, ScanModelApi_ScanDataSource, ScanModelApi_ScanSql, ScanModelApi_TestDataSource, ScanModelApi_TestDataSourceDefinition, } from "@gooddata/api-client-tiger/scanModel";
5
11
  import { UnexpectedError, isUnexpectedResponseError, } from "@gooddata/sdk-backend-spi";
6
12
  import { convertApiError } from "../utils/errorHandling.js";
7
13
  const getDataSourceErrorMessage = (error) => {
@@ -67,7 +73,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
67
73
  isCommunityEdition: async () => {
68
74
  try {
69
75
  return await authApiCall(async (sdk) => {
70
- const response = await sdk.entities.getAllEntitiesWorkspaces({ page: 0, size: 1 }, { headers: jsonApiHeaders });
76
+ const response = await EntitiesApi_GetAllEntitiesWorkspaces(sdk.axios, "", { page: 0, size: 1 }, { headers: jsonApiHeaders });
71
77
  // the header name are all lowercase in this object
72
78
  return response.headers["gooddata-deployment"] === "aio";
73
79
  });
@@ -80,7 +86,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
80
86
  try {
81
87
  const orgPermissions = await authApiCall(async (sdk) => {
82
88
  const { organizationId } = await backend.organizations().getCurrentOrganization();
83
- const response = await sdk.entities.getEntityOrganizations({
89
+ const response = await EntitiesApi_GetEntityOrganizations(sdk.axios, sdk.basePath, {
84
90
  id: organizationId,
85
91
  metaInclude: ["permissions"],
86
92
  });
@@ -96,7 +102,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
96
102
  organizationExpiredDate: async () => {
97
103
  try {
98
104
  return await authApiCall(async (sdk) => {
99
- const response = await sdk.entities.getAllEntitiesEntitlements({});
105
+ const response = await EntitiesApi_GetAllEntitiesEntitlements(sdk.axios, sdk.basePath, {});
100
106
  const contractEntitlement = response.data.data.find((item) => item.id === "Contract");
101
107
  return contractEntitlement?.attributes?.expiry || "";
102
108
  });
@@ -108,7 +114,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
108
114
  getOrganizationAllowedOrigins: async (organizationId) => {
109
115
  try {
110
116
  return await authApiCall(async (sdk) => {
111
- const result = await sdk.entities.getEntityOrganizations({ id: organizationId });
117
+ const result = await EntitiesApi_GetEntityOrganizations(sdk.axios, sdk.basePath, {
118
+ id: organizationId,
119
+ });
112
120
  return result.data?.data?.attributes?.allowedOrigins || [];
113
121
  });
114
122
  }
@@ -119,7 +127,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
119
127
  getOrganizationPermissions: async (organizationId) => {
120
128
  try {
121
129
  return await authApiCall(async (sdk) => {
122
- const result = await sdk.entities.getEntityOrganizations({
130
+ const result = await EntitiesApi_GetEntityOrganizations(sdk.axios, sdk.basePath, {
123
131
  id: organizationId,
124
132
  metaInclude: ["permissions"],
125
133
  });
@@ -144,12 +152,12 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
144
152
  };
145
153
  try {
146
154
  return await authApiCall(async (sdk) => {
147
- const result = await sdk.entities.patchEntityOrganizations({
155
+ const result = await EntitiesApi_PatchEntityOrganizations(sdk.axios, sdk.basePath, {
148
156
  id: organizationId,
149
157
  jsonApiOrganizationPatchDocument: {
150
158
  data: {
151
159
  id: organizationId,
152
- type: JsonApiOrganizationPatchTypeEnum.ORGANIZATION,
160
+ type: "organization",
153
161
  attributes: {
154
162
  allowedOrigins: updatedOrigins,
155
163
  },
@@ -192,7 +200,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
192
200
  };
193
201
  try {
194
202
  return await authApiCall(async (sdk) => {
195
- return await MetadataUtilities.getAllPagesOf(sdk, sdk.entities.getAllEntitiesApiTokens, {
203
+ return await MetadataUtilities.getAllPagesOf(sdk, EntitiesApi_GetAllEntitiesApiTokens, {
196
204
  userId,
197
205
  })
198
206
  .then(MetadataUtilities.mergeEntitiesResults)
@@ -209,10 +217,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
209
217
  const apiTokenDocument = {
210
218
  data: {
211
219
  id: tokenId,
212
- type: JsonApiApiTokenInTypeEnum.API_TOKEN,
220
+ type: "apiToken",
213
221
  },
214
222
  };
215
- const result = await sdk.entities.createEntityApiTokens({
223
+ const result = await EntitiesApi_CreateEntityApiTokens(sdk.axios, sdk.basePath, {
216
224
  userId: userId,
217
225
  jsonApiApiTokenInDocument: apiTokenDocument,
218
226
  });
@@ -229,7 +237,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
229
237
  deleteApiToken: async (userId, tokenId) => {
230
238
  try {
231
239
  await authApiCall(async (sdk) => {
232
- await sdk.entities.deleteEntityApiTokens({ userId: userId, id: tokenId });
240
+ await EntitiesApi_DeleteEntityApiTokens(sdk.axios, sdk.basePath, {
241
+ userId: userId,
242
+ id: tokenId,
243
+ });
233
244
  });
234
245
  }
235
246
  catch (error) {
@@ -239,8 +250,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
239
250
  someDataSourcesExists: async (filter) => {
240
251
  return await authApiCall(async (sdk) => {
241
252
  const requestParams = filter ? { filter } : {};
242
- return sdk.entities
243
- .getAllEntitiesDataSources(requestParams)
253
+ return EntitiesApi_GetAllEntitiesDataSources(sdk.axios, sdk.basePath, requestParams)
244
254
  .then((axiosResponse) => axiosResponse.data.data?.length > 0)
245
255
  .catch(() => {
246
256
  return false;
@@ -250,12 +260,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
250
260
  generateLogicalModel: async (dataSourceId, generateLdmRequest) => {
251
261
  try {
252
262
  return await authApiCall(async (sdk) => {
253
- return sdk.actions
254
- .generateLogicalModel({
263
+ return ActionsApi_GenerateLogicalModel(sdk.axios, sdk.basePath, {
255
264
  dataSourceId,
256
265
  generateLdmRequest,
257
- })
258
- .then((axiosResponse) => axiosResponse.data);
266
+ }).then((axiosResponse) => axiosResponse.data);
259
267
  });
260
268
  }
261
269
  catch (error) {
@@ -265,12 +273,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
265
273
  scanDataSource: async (dataSourceId, scanRequest) => {
266
274
  try {
267
275
  return await authApiCall(async (sdk) => {
268
- return await sdk.scanModel
269
- .scanDataSource({
276
+ return await ScanModelApi_ScanDataSource(sdk.axios, sdk.basePath, {
270
277
  dataSourceId,
271
278
  scanRequest,
272
- })
273
- .then((res) => {
279
+ }).then((res) => {
274
280
  return res?.data;
275
281
  });
276
282
  });
@@ -282,7 +288,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
282
288
  createDemoWorkspace: async (sampleWorkspace) => {
283
289
  try {
284
290
  return await authApiCall(async (sdk) => {
285
- const result = await sdk.entities.createEntityWorkspaces({
291
+ const result = await EntitiesApi_CreateEntityWorkspaces(sdk.axios, sdk.basePath, {
286
292
  jsonApiWorkspaceInDocument: sampleWorkspace,
287
293
  });
288
294
  return result.data.data.id;
@@ -295,7 +301,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
295
301
  createDemoDataSource: async (sampleDataSource) => {
296
302
  try {
297
303
  return await authApiCall(async (sdk) => {
298
- const result = await sdk.entities.createEntityDataSources({
304
+ const result = await EntitiesApi_CreateEntityDataSources(sdk.axios, sdk.basePath, {
299
305
  jsonApiDataSourceInDocument: sampleDataSource,
300
306
  });
301
307
  return result.data.data.id;
@@ -308,20 +314,20 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
308
314
  createWorkspace: async (id, name, parentId) => {
309
315
  try {
310
316
  return await authApiCall(async (sdk) => {
311
- const result = await sdk.entities.createEntityWorkspaces({
317
+ const result = await EntitiesApi_CreateEntityWorkspaces(sdk.axios, sdk.basePath, {
312
318
  jsonApiWorkspaceInDocument: {
313
319
  data: {
314
320
  attributes: {
315
321
  name,
316
322
  },
317
323
  id,
318
- type: JsonApiWorkspaceInTypeEnum.WORKSPACE,
324
+ type: "workspace",
319
325
  relationships: parentId
320
326
  ? {
321
327
  parent: {
322
328
  data: {
323
329
  id: parentId,
324
- type: JsonApiWorkspaceInTypeEnum.WORKSPACE,
330
+ type: "workspace",
325
331
  },
326
332
  },
327
333
  }
@@ -339,7 +345,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
339
345
  updateWorkspaceTitle: async (id, name) => {
340
346
  try {
341
347
  return await authApiCall(async (sdk) => {
342
- await sdk.entities.patchEntityWorkspaces({
348
+ await EntitiesApi_PatchEntityWorkspaces(sdk.axios, sdk.basePath, {
343
349
  id,
344
350
  jsonApiWorkspacePatchDocument: {
345
351
  data: {
@@ -347,7 +353,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
347
353
  name,
348
354
  },
349
355
  id,
350
- type: JsonApiWorkspaceInTypeEnum.WORKSPACE,
356
+ type: "workspace",
351
357
  },
352
358
  },
353
359
  });
@@ -360,7 +366,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
360
366
  deleteWorkspace: async (id) => {
361
367
  try {
362
368
  return await authApiCall(async (sdk) => {
363
- await sdk.entities.deleteEntityWorkspaces({ id });
369
+ await EntitiesApi_DeleteEntityWorkspaces(sdk.axios, sdk.basePath, { id });
364
370
  });
365
371
  }
366
372
  catch (error) {
@@ -370,7 +376,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
370
376
  canDeleteWorkspace: async (id) => {
371
377
  try {
372
378
  return await authApiCall(async (sdk) => {
373
- const childWorkspaces = (await sdk.entities.getAllEntitiesWorkspaces({
379
+ const childWorkspaces = (await EntitiesApi_GetAllEntitiesWorkspaces(sdk.axios, sdk.basePath, {
374
380
  include: ["workspaces"],
375
381
  filter: `parent.id==${id}`,
376
382
  })).data.data;
@@ -384,7 +390,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
384
390
  getWorkspaceLogicalModel: async (workspaceId, includeParents = false) => {
385
391
  try {
386
392
  return await authApiCall(async (sdk) => {
387
- const result = await sdk.declarativeLayout.getLogicalModel({ workspaceId, includeParents });
393
+ const result = await LayoutApi_GetLogicalModel(sdk.axios, sdk.basePath, {
394
+ workspaceId,
395
+ includeParents,
396
+ });
388
397
  return result.data;
389
398
  });
390
399
  }
@@ -395,7 +404,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
395
404
  getWorkspaceEntitiesDatasets: async (workspaceId) => {
396
405
  try {
397
406
  return await authApiCall(async (sdk) => {
398
- const result = await sdk.entities.getAllEntitiesDatasets({ workspaceId });
407
+ const result = await EntitiesApi_GetAllEntitiesDatasets(sdk.axios, sdk.basePath, {
408
+ workspaceId,
409
+ });
399
410
  return result.data;
400
411
  });
401
412
  }
@@ -406,7 +417,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
406
417
  putWorkspaceLayout: async (requestParameters) => {
407
418
  try {
408
419
  return await authApiCall(async (sdk) => {
409
- await sdk.declarativeLayout.putWorkspaceLayout(requestParameters);
420
+ await LayoutApi_PutWorkspaceLayout(sdk.axios, sdk.basePath, requestParameters);
410
421
  });
411
422
  }
412
423
  catch (error) {
@@ -416,7 +427,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
416
427
  getEntitlements: async () => {
417
428
  try {
418
429
  return await authApiCall(async (sdk) => {
419
- const result = await sdk.entities.getAllEntitiesEntitlements({});
430
+ const result = await EntitiesApi_GetAllEntitiesEntitlements(sdk.axios, sdk.basePath, {});
420
431
  return result.data.data.map((entitlement) => ({
421
432
  id: entitlement.id,
422
433
  value: entitlement.attributes?.value,
@@ -431,11 +442,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
431
442
  getDataSourceById: async (id) => {
432
443
  try {
433
444
  return await authApiCall(async (sdk) => {
434
- return sdk.entities
435
- .getEntityDataSources({
445
+ return EntitiesApi_GetEntityDataSources(sdk.axios, sdk.basePath, {
436
446
  id,
437
- })
438
- .then((axiosResponse) => ({
447
+ }).then((axiosResponse) => ({
439
448
  data: dataSourceResponseAsDataSourceConnectionInfo(axiosResponse.data),
440
449
  }));
441
450
  });
@@ -447,11 +456,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
447
456
  getDataSourceIdentifierById: async (id) => {
448
457
  try {
449
458
  return await authApiCall(async (sdk) => {
450
- return sdk.entities
451
- .getEntityDataSourceIdentifiers({
459
+ return EntitiesApi_GetEntityDataSourceIdentifiers(sdk.axios, sdk.basePath, {
452
460
  id,
453
- })
454
- .then((axiosResponse) => ({
461
+ }).then((axiosResponse) => ({
455
462
  data: dataSourceIdentifierOutDocumentAsDataSourceConnectionInfo(axiosResponse.data),
456
463
  }));
457
464
  });
@@ -464,8 +471,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
464
471
  const { id, name, password, schema, token, type, url, username, parameters, cacheStrategy, privateKey, privateKeyPassphrase, clientId, clientSecret, } = requestData;
465
472
  try {
466
473
  return await authApiCall(async (sdk) => {
467
- return sdk.entities
468
- .createEntityDataSources({
474
+ return EntitiesApi_CreateEntityDataSources(sdk.axios, sdk.basePath, {
469
475
  jsonApiDataSourceInDocument: {
470
476
  data: {
471
477
  attributes: {
@@ -484,11 +490,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
484
490
  clientSecret,
485
491
  },
486
492
  id,
487
- type: JsonApiDataSourceInTypeEnum.DATA_SOURCE,
493
+ type: "dataSource",
488
494
  },
489
495
  },
490
- })
491
- .then((axiosResponse) => ({
496
+ }).then((axiosResponse) => ({
492
497
  data: dataSourceResponseAsDataSourceConnectionInfo(axiosResponse.data),
493
498
  }));
494
499
  });
@@ -501,8 +506,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
501
506
  const { id: requestDataId, name, password, schema, token, type, url, username, parameters, cacheStrategy, privateKey, privateKeyPassphrase, clientId, clientSecret, } = requestData;
502
507
  try {
503
508
  return await authApiCall(async (sdk) => {
504
- return sdk.entities
505
- .updateEntityDataSources({
509
+ return EntitiesApi_UpdateEntityDataSources(sdk.axios, sdk.basePath, {
506
510
  id,
507
511
  jsonApiDataSourceInDocument: {
508
512
  data: {
@@ -522,11 +526,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
522
526
  clientSecret,
523
527
  },
524
528
  id: requestDataId,
525
- type: JsonApiDataSourceInTypeEnum.DATA_SOURCE,
529
+ type: "dataSource",
526
530
  },
527
531
  },
528
- })
529
- .then((axiosResponse) => ({
532
+ }).then((axiosResponse) => ({
530
533
  data: dataSourceResponseAsDataSourceConnectionInfo(axiosResponse.data),
531
534
  }));
532
535
  });
@@ -539,8 +542,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
539
542
  const { id: requestDataId, name, password, schema, token, type, url, username, parameters, cacheStrategy, privateKey, privateKeyPassphrase, clientId, clientSecret, } = requestData;
540
543
  try {
541
544
  return await authApiCall(async (sdk) => {
542
- return sdk.entities
543
- .patchEntityDataSources({
545
+ return EntitiesApi_PatchEntityDataSources(sdk.axios, sdk.basePath, {
544
546
  id,
545
547
  jsonApiDataSourcePatchDocument: {
546
548
  data: {
@@ -560,11 +562,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
560
562
  clientSecret,
561
563
  },
562
564
  id: requestDataId,
563
- type: JsonApiDataSourceInTypeEnum.DATA_SOURCE,
565
+ type: "dataSource",
564
566
  },
565
567
  },
566
- })
567
- .then((axiosResponse) => ({
568
+ }).then((axiosResponse) => ({
568
569
  data: dataSourceResponseAsDataSourceConnectionInfo(axiosResponse.data),
569
570
  }));
570
571
  });
@@ -576,7 +577,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
576
577
  deleteDataSource: async (id) => {
577
578
  try {
578
579
  return await authApiCall(async (sdk) => {
579
- await sdk.entities.deleteEntityDataSources({
580
+ await EntitiesApi_DeleteEntityDataSources(sdk.axios, sdk.basePath, {
580
581
  id,
581
582
  });
582
583
  return { successful: true };
@@ -590,11 +591,11 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
590
591
  try {
591
592
  return await authApiCall(async (sdk) => {
592
593
  const promise = id
593
- ? sdk.scanModel.testDataSource({
594
+ ? ScanModelApi_TestDataSource(sdk.axios, sdk.basePath, {
594
595
  dataSourceId: id,
595
596
  testRequest: connectionData,
596
597
  })
597
- : sdk.scanModel.testDataSourceDefinition({
598
+ : ScanModelApi_TestDataSourceDefinition(sdk.axios, sdk.basePath, {
598
599
  testDefinitionRequest: connectionData,
599
600
  });
600
601
  return await promise.then((axiosResponse) => axiosResponse.data);
@@ -609,14 +610,16 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
609
610
  },
610
611
  getDataSourceSchemata: async (dataSourceId) => {
611
612
  return await authApiCall(async (sdk) => {
612
- return await sdk.scanModel.getDataSourceSchemata({ dataSourceId }).then((res) => {
613
+ return await ScanModelApi_GetDataSourceSchemata(sdk.axios, sdk.basePath, {
614
+ dataSourceId,
615
+ }).then((res) => {
613
616
  return res?.data.schemaNames;
614
617
  });
615
618
  });
616
619
  },
617
620
  getAllDataSources: async () => {
618
621
  return await authApiCall(async (sdk) => {
619
- return OrganizationUtilities.getAllPagesOf(sdk, sdk.entities.getAllEntitiesDataSourceIdentifiers, {
622
+ return OrganizationUtilities.getAllPagesOf(sdk, EntitiesApi_GetAllEntitiesDataSourceIdentifiers, {
620
623
  sort: ["name"],
621
624
  metaInclude: ["permissions"],
622
625
  })
@@ -628,7 +631,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
628
631
  },
629
632
  publishLogicalModel: async (workspaceId, declarativeModel) => {
630
633
  return await authApiCall(async (sdk) => {
631
- await sdk.declarativeLayout.setLogicalModel({
634
+ await LayoutApi_SetLogicalModel(sdk.axios, sdk.basePath, {
632
635
  workspaceId,
633
636
  declarativeModel,
634
637
  });
@@ -637,11 +640,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
637
640
  getDependentEntitiesGraph: async (workspaceId) => {
638
641
  try {
639
642
  return await authApiCall(async (sdk) => {
640
- return await sdk.actions
641
- .getDependentEntitiesGraph({
643
+ return await ActionsApi_GetDependentEntitiesGraph(sdk.axios, sdk.basePath, {
642
644
  workspaceId,
643
- })
644
- .then((res) => {
645
+ }).then((res) => {
645
646
  return res?.data;
646
647
  });
647
648
  });
@@ -653,12 +654,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
653
654
  getDependentEntitiesGraphFromEntryPoints: async (workspaceId, dependentEntitiesGraphRequest) => {
654
655
  try {
655
656
  return await authApiCall(async (sdk) => {
656
- return await sdk.actions
657
- .getDependentEntitiesGraphFromEntryPoints({
657
+ return await ActionsApi_GetDependentEntitiesGraphFromEntryPoints(sdk.axios, sdk.basePath, {
658
658
  workspaceId,
659
659
  dependentEntitiesRequest: dependentEntitiesGraphRequest,
660
- })
661
- .then((res) => {
660
+ }).then((res) => {
662
661
  return res?.data;
663
662
  });
664
663
  });
@@ -668,14 +667,14 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
668
667
  }
669
668
  },
670
669
  resolveAllEntitlements: async () => {
671
- return authApiCall(async (sdk) => sdk.actions.resolveAllEntitlements().then((res) => res.data));
670
+ return authApiCall(async (sdk) => ActionsApi_ResolveAllEntitlements(sdk.axios, sdk.basePath).then((res) => res.data));
672
671
  },
673
672
  getAllPlatformUsage: async () => {
674
- return authApiCall(async (sdk) => sdk.actions.allPlatformUsage().then((res) => res.data));
673
+ return authApiCall(async (sdk) => ActionsApi_AllPlatformUsage(sdk.axios, sdk.basePath).then((res) => res.data));
675
674
  },
676
675
  inviteUser: async (requestParameters, options) => {
677
676
  return authApiCall(async (sdk) => {
678
- return sdk.authActions.processInvitation(requestParameters, options).then((res) => {
677
+ return AuthApi_ProcessInvitation(sdk.axios, sdk.basePath, requestParameters, options).then((res) => {
679
678
  if (res.status == 204) {
680
679
  return {
681
680
  successful: true,
@@ -693,7 +692,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
693
692
  getWorkspaceDataFiltersLayout: async () => {
694
693
  try {
695
694
  return await authApiCall(async (sdk) => {
696
- const result = await sdk.declarativeLayout.getWorkspaceDataFiltersLayout();
695
+ const result = await LayoutApi_GetWorkspaceDataFiltersLayout(sdk.axios, sdk.basePath);
697
696
  return result.data;
698
697
  });
699
698
  }
@@ -703,7 +702,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
703
702
  },
704
703
  setWorkspaceDataFiltersLayout: async (workspaceDataFiltersLayout) => {
705
704
  return await authApiCall(async (sdk) => {
706
- await sdk.declarativeLayout.setWorkspaceDataFiltersLayout({
705
+ await LayoutApi_SetWorkspaceDataFiltersLayout(sdk.axios, sdk.basePath, {
707
706
  declarativeWorkspaceDataFilters: workspaceDataFiltersLayout,
708
707
  });
709
708
  });
@@ -711,7 +710,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
711
710
  getWorkspaceDataFilter: async (workspaceId, objectId) => {
712
711
  try {
713
712
  return await authApiCall(async (sdk) => {
714
- const result = await sdk.entities.getEntityWorkspaceDataFilters({
713
+ const result = await EntitiesApi_GetEntityWorkspaceDataFilters(sdk.axios, sdk.basePath, {
715
714
  workspaceId,
716
715
  objectId,
717
716
  });
@@ -724,7 +723,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
724
723
  },
725
724
  setWorkspaceDataFilter: async (workspaceId, workspaceDataFilter) => {
726
725
  return authApiCall(async (sdk) => {
727
- await sdk.entities.createEntityWorkspaceDataFilters({
726
+ await EntitiesApi_CreateEntityWorkspaceDataFilters(sdk.axios, sdk.basePath, {
728
727
  workspaceId,
729
728
  jsonApiWorkspaceDataFilterInDocument: workspaceDataFilter,
730
729
  });
@@ -733,7 +732,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
733
732
  getWorkspaceDataFilterSetting: async (workspaceId, objectId) => {
734
733
  try {
735
734
  return await authApiCall(async (sdk) => {
736
- const result = await sdk.entities.getEntityWorkspaceDataFilterSettings({
735
+ const result = await EntitiesApi_GetEntityWorkspaceDataFilterSettings(sdk.axios, sdk.basePath, {
737
736
  workspaceId,
738
737
  objectId,
739
738
  });
@@ -746,7 +745,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
746
745
  },
747
746
  setWorkspaceDataFilterSetting: async (workspaceId, workspaceDataFilterSetting) => {
748
747
  return await authApiCall(async (sdk) => {
749
- await sdk.entities.createEntityWorkspaceDataFilterSettings({
748
+ await EntitiesApi_CreateEntityWorkspaceDataFilterSettings(sdk.axios, sdk.basePath, {
750
749
  workspaceId,
751
750
  jsonApiWorkspaceDataFilterSettingInDocument: workspaceDataFilterSetting,
752
751
  });
@@ -755,7 +754,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
755
754
  getAllCSPDirectives: async () => {
756
755
  try {
757
756
  return await authApiCall(async (sdk) => {
758
- const result = await sdk.entities.getAllEntitiesCspDirectives({});
757
+ const result = await EntitiesApi_GetAllEntitiesCspDirectives(sdk.axios, sdk.basePath, {});
759
758
  return result.data?.data || [];
760
759
  });
761
760
  }
@@ -766,7 +765,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
766
765
  getCSPDirective: async (directiveId) => {
767
766
  try {
768
767
  return await authApiCall(async (sdk) => {
769
- const result = await sdk.entities.getEntityCspDirectives({ id: directiveId });
768
+ const result = await EntitiesApi_GetEntityCspDirectives(sdk.axios, sdk.basePath, {
769
+ id: directiveId,
770
+ });
770
771
  return result.data?.data;
771
772
  });
772
773
  }
@@ -780,11 +781,11 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
780
781
  const jsonApiCspDirectiveInDocument = {
781
782
  data: {
782
783
  id: requestData.id,
783
- type: JsonApiCspDirectiveInTypeEnum.CSP_DIRECTIVE,
784
+ type: "cspDirective",
784
785
  attributes: requestData.attributes,
785
786
  },
786
787
  };
787
- const result = await sdk.entities.createEntityCspDirectives({
788
+ const result = await EntitiesApi_CreateEntityCspDirectives(sdk.axios, sdk.basePath, {
788
789
  jsonApiCspDirectiveInDocument,
789
790
  });
790
791
  return result.data?.data;
@@ -806,11 +807,11 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
806
807
  const jsonApiCspDirectiveInDocument = {
807
808
  data: {
808
809
  id: requestData.id,
809
- type: JsonApiCspDirectiveInTypeEnum.CSP_DIRECTIVE,
810
+ type: "cspDirective",
810
811
  attributes: requestData.attributes,
811
812
  },
812
813
  };
813
- const result = await sdk.entities.updateEntityCspDirectives({
814
+ const result = await EntitiesApi_UpdateEntityCspDirectives(sdk.axios, sdk.basePath, {
814
815
  id: directiveId,
815
816
  jsonApiCspDirectiveInDocument,
816
817
  });
@@ -830,7 +831,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
830
831
  deleteCSPDirective: async (directiveId) => {
831
832
  try {
832
833
  await authApiCall(async (sdk) => {
833
- await sdk.entities.deleteEntityCspDirectives({ id: directiveId });
834
+ await EntitiesApi_DeleteEntityCspDirectives(sdk.axios, sdk.basePath, {
835
+ id: directiveId,
836
+ });
834
837
  });
835
838
  }
836
839
  catch (error) {
@@ -839,7 +842,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
839
842
  },
840
843
  getWorkspaceCustomAppSettings: async (workspaceId, applicationName) => {
841
844
  return await authApiCall(async (sdk) => {
842
- const result = await sdk.entities.getAllEntitiesCustomApplicationSettings({
845
+ const result = await EntitiesApi_GetAllEntitiesCustomApplicationSettings(sdk.axios, sdk.basePath, {
843
846
  workspaceId,
844
847
  });
845
848
  const responseData = result.data;
@@ -852,7 +855,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
852
855
  getWorkspaceCustomAppSetting: async (workspaceId, settingId) => {
853
856
  try {
854
857
  return await authApiCall(async (sdk) => {
855
- const result = await sdk.entities.getEntityCustomApplicationSettings({
858
+ const result = await EntitiesApi_GetEntityCustomApplicationSettings(sdk.axios, sdk.basePath, {
856
859
  objectId: settingId,
857
860
  workspaceId,
858
861
  });
@@ -865,11 +868,11 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
865
868
  },
866
869
  createWorkspaceCustomAppSetting: async (workspaceId, applicationName, content, settingId) => {
867
870
  return await authApiCall(async (sdk) => {
868
- const result = await sdk.entities.createEntityCustomApplicationSettings({
871
+ const result = await EntitiesApi_CreateEntityCustomApplicationSettings(sdk.axios, sdk.basePath, {
869
872
  workspaceId,
870
873
  jsonApiCustomApplicationSettingPostOptionalIdDocument: {
871
874
  data: {
872
- type: JsonApiCustomApplicationSettingOutTypeEnum.CUSTOM_APPLICATION_SETTING,
875
+ type: "customApplicationSetting",
873
876
  id: settingId,
874
877
  attributes: {
875
878
  applicationName,
@@ -884,7 +887,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
884
887
  deleteWorkspaceCustomAppSetting: async (workspaceId, settingId) => {
885
888
  try {
886
889
  return await authApiCall(async (sdk) => {
887
- await sdk.entities.deleteEntityCustomApplicationSettings({
890
+ await EntitiesApi_DeleteEntityCustomApplicationSettings(sdk.axios, sdk.basePath, {
888
891
  objectId: settingId,
889
892
  workspaceId,
890
893
  });
@@ -897,7 +900,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
897
900
  getEntityUser: async (id) => {
898
901
  try {
899
902
  return await authApiCall(async (sdk) => {
900
- const result = await sdk.entities.getEntityUsers({
903
+ const result = await EntitiesApi_GetEntityUsers(sdk.axios, sdk.basePath, {
901
904
  id,
902
905
  });
903
906
  const { firstname, lastname, ...userInfo } = result.data?.data.attributes || {};
@@ -914,7 +917,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
914
917
  },
915
918
  registerUploadNotification: async (dataSourceId) => {
916
919
  return await authApiCall(async (sdk) => {
917
- await sdk.actions.registerUploadNotification({
920
+ await ActionsApi_RegisterUploadNotification(sdk.axios, sdk.basePath, {
918
921
  dataSourceId,
919
922
  });
920
923
  });
@@ -922,7 +925,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
922
925
  scanSql: async (dataSourceId, sql) => {
923
926
  try {
924
927
  return await authApiCall(async (sdk) => {
925
- return sdk.scanModel.scanSql({ dataSourceId, scanSqlRequest: { sql } }).then((response) => {
928
+ return ScanModelApi_ScanSql(sdk.axios, sdk.basePath, {
929
+ dataSourceId,
930
+ scanSqlRequest: { sql },
931
+ }).then((response) => {
926
932
  return response.data;
927
933
  });
928
934
  });
@@ -934,9 +940,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
934
940
  checkEntityOverrides: async (workspaceId, hierarchyObjectIdentification) => {
935
941
  try {
936
942
  return await authApiCall(async (sdk) => {
937
- return sdk.actions
938
- .checkEntityOverrides({ workspaceId, hierarchyObjectIdentification })
939
- .then((response) => {
943
+ return ActionsApi_CheckEntityOverrides(sdk.axios, sdk.basePath, {
944
+ workspaceId,
945
+ hierarchyObjectIdentification,
946
+ }).then((response) => {
940
947
  return response.data;
941
948
  });
942
949
  });
@@ -952,11 +959,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
952
959
  * On any other error, we throw the error right away: no retries there.
953
960
  */
954
961
  const body = async () => await authApiCall(async (sdk) => {
955
- return await sdk.result
956
- .stagingUpload({
962
+ return await ResultApi_StagingUpload(sdk.axios, sdk.basePath, {
957
963
  file,
958
- })
959
- .then((res) => {
964
+ }).then((res) => {
960
965
  return res?.data;
961
966
  });
962
967
  });
@@ -987,11 +992,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
987
992
  analyzeCsv: async (analyzeCsvRequest) => {
988
993
  try {
989
994
  return await authApiCall(async (sdk) => {
990
- return await sdk.result
991
- .analyzeCsv({
995
+ return await ResultApi_AnalyzeCsv(sdk.axios, sdk.basePath, {
992
996
  analyzeCsvRequest: analyzeCsvRequest,
993
- })
994
- .then((res) => {
997
+ }).then((res) => {
995
998
  return res?.data;
996
999
  });
997
1000
  });
@@ -1003,12 +1006,10 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
1003
1006
  importCsv: async (dataSourceId, importCsvRequest) => {
1004
1007
  try {
1005
1008
  return await authApiCall(async (sdk) => {
1006
- return await sdk.result
1007
- .importCsv({
1009
+ return await ResultApi_ImportCsv(sdk.axios, sdk.basePath, {
1008
1010
  dataSourceId: dataSourceId,
1009
1011
  importCsvRequest: importCsvRequest,
1010
- })
1011
- .then((res) => {
1012
+ }).then((res) => {
1012
1013
  return res?.data;
1013
1014
  });
1014
1015
  });
@@ -1020,11 +1021,9 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
1020
1021
  listFiles: async (dataSourceId) => {
1021
1022
  try {
1022
1023
  return await authApiCall(async (sdk) => {
1023
- return await sdk.result
1024
- .listFiles({
1024
+ return await ResultApi_ListFiles(sdk.axios, sdk.basePath, {
1025
1025
  dataSourceId: dataSourceId,
1026
- })
1027
- .then((res) => {
1026
+ }).then((res) => {
1028
1027
  return res?.data;
1029
1028
  });
1030
1029
  });
@@ -1036,7 +1035,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
1036
1035
  deleteFiles: async (dataSourceId, fileNames) => {
1037
1036
  try {
1038
1037
  return await authApiCall(async (sdk) => {
1039
- await sdk.result.deleteFiles({
1038
+ await ResultApi_DeleteFiles(sdk.axios, sdk.basePath, {
1040
1039
  dataSourceId: dataSourceId,
1041
1040
  deleteFilesRequest: {
1042
1041
  fileNames: fileNames,
@@ -1059,7 +1058,7 @@ export const buildTigerSpecificFunctions = (backend, authApiCall) => ({
1059
1058
  })),
1060
1059
  },
1061
1060
  };
1062
- return await sdk.result.readCsvFileManifests(request).then((res) => {
1061
+ return await ResultApi_ReadCsvFileManifests(sdk.axios, sdk.basePath, request).then((res) => {
1063
1062
  return res?.data;
1064
1063
  });
1065
1064
  });