@gooddata/api-client-tiger 11.63.0-alpha.0 → 11.63.0-alpha.1

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.
@@ -1656,7 +1656,65 @@ export async function ConversationsAiAxiosParamCreator_PatchDashboardApiV1AiWork
1656
1656
  }
1657
1657
  // ConversationsAi FP - ConversationsAiAxiosParamCreator
1658
1658
  /**
1659
- * Records the report entity the user saved the conversation\'s report draft as.
1659
+ * Records the document the user saved the conversation\'s document draft as.
1660
+ * @summary Link a saved document
1661
+ * @param {string} workspaceId
1662
+ * @param {string} conversationId
1663
+ * @param {string} documentRef
1664
+ * @param {AiPublisherDocumentIdUpdateRequest} aiPublisherDocumentIdUpdateRequest
1665
+ * @param {*} [options] Override http request option.
1666
+ * @param {Configuration} [configuration] Optional configuration.
1667
+ * @throws {RequiredError}
1668
+ */
1669
+ export async function ConversationsAiAxiosParamCreator_PatchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch(workspaceId, conversationId, documentRef, aiPublisherDocumentIdUpdateRequest, options = {}, configuration) {
1670
+ // verify required parameter 'workspaceId' is not null or undefined
1671
+ assertParamExists('patchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch', 'workspaceId', workspaceId);
1672
+ // verify required parameter 'conversationId' is not null or undefined
1673
+ assertParamExists('patchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch', 'conversationId', conversationId);
1674
+ // verify required parameter 'documentRef' is not null or undefined
1675
+ assertParamExists('patchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch', 'documentRef', documentRef);
1676
+ // verify required parameter 'aiPublisherDocumentIdUpdateRequest' is not null or undefined
1677
+ assertParamExists('patchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch', 'aiPublisherDocumentIdUpdateRequest', aiPublisherDocumentIdUpdateRequest);
1678
+ const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/documents/{document_ref}`
1679
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
1680
+ .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
1681
+ .replace(`{${"document_ref"}}`, encodeURIComponent(String(documentRef)));
1682
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1683
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1684
+ let baseOptions;
1685
+ if (configuration) {
1686
+ baseOptions = configuration.baseOptions;
1687
+ }
1688
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
1689
+ const localVarHeaderParameter = {};
1690
+ const localVarQueryParameter = {};
1691
+ const consumes = [
1692
+ 'application/json'
1693
+ ];
1694
+ // use application/json if present, otherwise fallback to the first one
1695
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
1696
+ ? 'application/json'
1697
+ : consumes[0];
1698
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1699
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
1700
+ localVarRequestOptions.headers = {
1701
+ ...localVarHeaderParameter,
1702
+ ...headersFromBaseOptions,
1703
+ ...options.headers,
1704
+ };
1705
+ const needsSerialization = typeof aiPublisherDocumentIdUpdateRequest !== "string" ||
1706
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
1707
+ localVarRequestOptions.data = needsSerialization
1708
+ ? JSON.stringify(aiPublisherDocumentIdUpdateRequest !== undefined ? aiPublisherDocumentIdUpdateRequest : {})
1709
+ : aiPublisherDocumentIdUpdateRequest || "";
1710
+ return {
1711
+ url: toPathString(localVarUrlObj),
1712
+ options: localVarRequestOptions,
1713
+ };
1714
+ }
1715
+ // ConversationsAi FP - ConversationsAiAxiosParamCreator
1716
+ /**
1717
+ * Deprecated: call `PATCH .../conversations/{conversation_id}/documents/{document_ref}` instead. Records the report entity the user saved the conversation\'s report draft as.
1660
1718
  * @summary Link a saved report
1661
1719
  * @param {string} workspaceId
1662
1720
  * @param {string} conversationId
@@ -2203,7 +2261,22 @@ export async function ConversationsAi_PatchDashboardApiV1AiWorkspacesWorkspaceId
2203
2261
  }
2204
2262
  // ConversationsAi Api FP
2205
2263
  /**
2206
- * Records the report entity the user saved the conversation\'s report draft as.
2264
+ * Records the document the user saved the conversation\'s document draft as.
2265
+ * @summary Link a saved document
2266
+ * @param {AxiosInstance} axios Axios instance.
2267
+ * @param {string} basePath Base path.
2268
+ * @param {ConversationsAiPatchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatchRequest} requestParameters Request parameters.
2269
+ * @param {*} [options] Override http request option.
2270
+ * @param {Configuration} [configuration] Optional configuration.
2271
+ * @throws {RequiredError}
2272
+ */
2273
+ export async function ConversationsAi_PatchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch(axios, basePath, requestParameters, options, configuration) {
2274
+ const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PatchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.documentRef, requestParameters.aiPublisherDocumentIdUpdateRequest, options || {}, configuration);
2275
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
2276
+ }
2277
+ // ConversationsAi Api FP
2278
+ /**
2279
+ * Deprecated: call `PATCH .../conversations/{conversation_id}/documents/{document_ref}` instead. Records the report entity the user saved the conversation\'s report draft as.
2207
2280
  * @summary Link a saved report
2208
2281
  * @param {AxiosInstance} axios Axios instance.
2209
2282
  * @param {string} basePath Base path.
@@ -2417,10 +2490,22 @@ export class ConversationsAi extends BaseAPI {
2417
2490
  return ConversationsAi_PatchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
2418
2491
  }
2419
2492
  /**
2420
- * Records the report entity the user saved the conversation\'s report draft as.
2493
+ * Records the document the user saved the conversation\'s document draft as.
2494
+ * @summary Link a saved document
2495
+ * @param {ConversationsAiPatchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatchRequest} requestParameters Request parameters.
2496
+ * @param {*} [options] Override http request option.
2497
+ * @throws {RequiredError}
2498
+ * @memberof ConversationsAi
2499
+ */
2500
+ patchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch(requestParameters, options) {
2501
+ return ConversationsAi_PatchDocumentApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDocumentsDocumentRefPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
2502
+ }
2503
+ /**
2504
+ * Deprecated: call `PATCH .../conversations/{conversation_id}/documents/{document_ref}` instead. Records the report entity the user saved the conversation\'s report draft as.
2421
2505
  * @summary Link a saved report
2422
2506
  * @param {ConversationsAiPatchReportApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdReportsReportRefPatchRequest} requestParameters Request parameters.
2423
2507
  * @param {*} [options] Override http request option.
2508
+ * @deprecated
2424
2509
  * @throws {RequiredError}
2425
2510
  * @memberof ConversationsAi
2426
2511
  */
@@ -60,7 +60,7 @@ export interface AutomationAbsoluteDateFilterAbsoluteDateFilter {
60
60
  }
61
61
  export type AutomationAbsoluteDateFilterAbsoluteDateFilterEmptyValueHandlingEnum = 'INCLUDE' | 'EXCLUDE' | 'ONLY';
62
62
  /**
63
- * An absolute date range filter defined at a specific granularity. The \'from\'/\'to\' literals must match the format of the chosen granularity (e.g. \'2020\' for YEAR, \'2012-05\' for MONTH, \'2012-3\' for QUARTER, \'1996-01\' for WEEK, \'2010-10-30\' for DAY, or a plain ordinal like \'6\' for periodical granularities such as MONTH_OF_YEAR). At least one of \'from\'/\'to\' must be provided; specifying only one yields an open-ended range.
63
+ * An absolute date range filter defined at a specific granularity. The \'from\'/\'to\' literals must match the format of the chosen granularity (e.g. \'2020\' for YEAR, \'2012-05\' for MONTH, \'2012-3\' for QUARTER, \'1996-01\' for WEEK, \'2010-10-30\' for DAY, \'2010-10-30 13\' for HOUR, \'2010-10-30 13:30\' for MINUTE, \'2010-10-30 13:30:45\' for SECOND, or a plain ordinal like \'6\' for periodical granularities such as MONTH_OF_YEAR). At least one of \'from\'/\'to\' must be provided; specifying only one yields an open-ended range.
64
64
  */
65
65
  export interface AutomationAbsoluteGranularityDateFilter {
66
66
  'absoluteGranularityDateFilter': AutomationAbsoluteGranularityDateFilterAbsoluteGranularityDateFilter;