@gooddata/api-client-tiger 11.69.0-alpha.0 → 11.69.0-alpha.2

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.
@@ -24127,6 +24127,64 @@ export async function DocumentControllerApiAxiosParamCreator_PatchEntityDocument
24127
24127
  };
24128
24128
  }
24129
24129
  // DocumentControllerApi FP - DocumentControllerApiAxiosParamCreator
24130
+ /**
24131
+ *
24132
+ * @summary The search endpoint
24133
+ * @param {string} workspaceId
24134
+ * @param {EntitySearchBody} entitySearchBody Search request body with filter, pagination, and sorting options
24135
+ * @param {'ALL' | 'PARENTS' | 'NATIVE'} [origin]
24136
+ * @param {boolean} [xGDCVALIDATERELATIONS]
24137
+ * @param {*} [options] Override http request option.
24138
+ * @param {Configuration} [configuration] Optional configuration.
24139
+ * @throws {RequiredError}
24140
+ */
24141
+ export async function DocumentControllerApiAxiosParamCreator_SearchEntitiesDocuments(workspaceId, entitySearchBody, origin, xGDCVALIDATERELATIONS, options = {}, configuration) {
24142
+ // verify required parameter 'workspaceId' is not null or undefined
24143
+ assertParamExists('searchEntitiesDocuments', 'workspaceId', workspaceId);
24144
+ // verify required parameter 'entitySearchBody' is not null or undefined
24145
+ assertParamExists('searchEntitiesDocuments', 'entitySearchBody', entitySearchBody);
24146
+ const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/documents/search`
24147
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
24148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
24149
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24150
+ let baseOptions;
24151
+ if (configuration) {
24152
+ baseOptions = configuration.baseOptions;
24153
+ }
24154
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
24155
+ const localVarHeaderParameter = {};
24156
+ const localVarQueryParameter = {};
24157
+ if (origin !== undefined) {
24158
+ localVarQueryParameter['origin'] = origin;
24159
+ }
24160
+ if (xGDCVALIDATERELATIONS !== undefined && xGDCVALIDATERELATIONS !== null) {
24161
+ localVarHeaderParameter['X-GDC-VALIDATE-RELATIONS'] = String(JSON.stringify(xGDCVALIDATERELATIONS));
24162
+ }
24163
+ const consumes = [
24164
+ 'application/json'
24165
+ ];
24166
+ // use application/json if present, otherwise fallback to the first one
24167
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
24168
+ ? 'application/json'
24169
+ : consumes[0];
24170
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
24171
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
24172
+ localVarRequestOptions.headers = {
24173
+ ...localVarHeaderParameter,
24174
+ ...headersFromBaseOptions,
24175
+ ...options.headers,
24176
+ };
24177
+ const needsSerialization = typeof entitySearchBody !== "string" ||
24178
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
24179
+ localVarRequestOptions.data = needsSerialization
24180
+ ? JSON.stringify(entitySearchBody !== undefined ? entitySearchBody : {})
24181
+ : entitySearchBody || "";
24182
+ return {
24183
+ url: toPathString(localVarUrlObj),
24184
+ options: localVarRequestOptions,
24185
+ };
24186
+ }
24187
+ // DocumentControllerApi FP - DocumentControllerApiAxiosParamCreator
24130
24188
  /**
24131
24189
  *
24132
24190
  * @summary Put a Document
@@ -24265,6 +24323,21 @@ export async function DocumentControllerApi_PatchEntityDocuments(axios, basePath
24265
24323
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
24266
24324
  }
24267
24325
  // DocumentControllerApi Api FP
24326
+ /**
24327
+ *
24328
+ * @summary The search endpoint
24329
+ * @param {AxiosInstance} axios Axios instance.
24330
+ * @param {string} basePath Base path.
24331
+ * @param {DocumentControllerApiSearchEntitiesDocumentsRequest} requestParameters Request parameters.
24332
+ * @param {*} [options] Override http request option.
24333
+ * @param {Configuration} [configuration] Optional configuration.
24334
+ * @throws {RequiredError}
24335
+ */
24336
+ export async function DocumentControllerApi_SearchEntitiesDocuments(axios, basePath, requestParameters, options, configuration) {
24337
+ const localVarAxiosArgs = await DocumentControllerApiAxiosParamCreator_SearchEntitiesDocuments(requestParameters.workspaceId, requestParameters.entitySearchBody, requestParameters.origin, requestParameters.xGDCVALIDATERELATIONS, options || {}, configuration);
24338
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
24339
+ }
24340
+ // DocumentControllerApi Api FP
24268
24341
  /**
24269
24342
  *
24270
24343
  * @summary Put a Document
@@ -24341,6 +24414,17 @@ export class DocumentControllerApi extends BaseAPI {
24341
24414
  patchEntityDocuments(requestParameters, options) {
24342
24415
  return DocumentControllerApi_PatchEntityDocuments(this.axios, this.basePath, requestParameters, options, this.configuration);
24343
24416
  }
24417
+ /**
24418
+ *
24419
+ * @summary The search endpoint
24420
+ * @param {DocumentControllerApiSearchEntitiesDocumentsRequest} requestParameters Request parameters.
24421
+ * @param {*} [options] Override http request option.
24422
+ * @throws {RequiredError}
24423
+ * @memberof DocumentControllerApi
24424
+ */
24425
+ searchEntitiesDocuments(requestParameters, options) {
24426
+ return DocumentControllerApi_SearchEntitiesDocuments(this.axios, this.basePath, requestParameters, options, this.configuration);
24427
+ }
24344
24428
  /**
24345
24429
  *
24346
24430
  * @summary Put a Document
@@ -39328,6 +39412,64 @@ export async function EntitiesApiAxiosParamCreator_SearchEntitiesDatasets(worksp
39328
39412
  };
39329
39413
  }
39330
39414
  // EntitiesApi FP - EntitiesApiAxiosParamCreator
39415
+ /**
39416
+ *
39417
+ * @summary The search endpoint
39418
+ * @param {string} workspaceId
39419
+ * @param {EntitySearchBody} entitySearchBody Search request body with filter, pagination, and sorting options
39420
+ * @param {'ALL' | 'PARENTS' | 'NATIVE'} [origin]
39421
+ * @param {boolean} [xGDCVALIDATERELATIONS]
39422
+ * @param {*} [options] Override http request option.
39423
+ * @param {Configuration} [configuration] Optional configuration.
39424
+ * @throws {RequiredError}
39425
+ */
39426
+ export async function EntitiesApiAxiosParamCreator_SearchEntitiesDocuments(workspaceId, entitySearchBody, origin, xGDCVALIDATERELATIONS, options = {}, configuration) {
39427
+ // verify required parameter 'workspaceId' is not null or undefined
39428
+ assertParamExists('searchEntitiesDocuments', 'workspaceId', workspaceId);
39429
+ // verify required parameter 'entitySearchBody' is not null or undefined
39430
+ assertParamExists('searchEntitiesDocuments', 'entitySearchBody', entitySearchBody);
39431
+ const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/documents/search`
39432
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
39433
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39434
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39435
+ let baseOptions;
39436
+ if (configuration) {
39437
+ baseOptions = configuration.baseOptions;
39438
+ }
39439
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
39440
+ const localVarHeaderParameter = {};
39441
+ const localVarQueryParameter = {};
39442
+ if (origin !== undefined) {
39443
+ localVarQueryParameter['origin'] = origin;
39444
+ }
39445
+ if (xGDCVALIDATERELATIONS !== undefined && xGDCVALIDATERELATIONS !== null) {
39446
+ localVarHeaderParameter['X-GDC-VALIDATE-RELATIONS'] = String(JSON.stringify(xGDCVALIDATERELATIONS));
39447
+ }
39448
+ const consumes = [
39449
+ 'application/json'
39450
+ ];
39451
+ // use application/json if present, otherwise fallback to the first one
39452
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
39453
+ ? 'application/json'
39454
+ : consumes[0];
39455
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39456
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
39457
+ localVarRequestOptions.headers = {
39458
+ ...localVarHeaderParameter,
39459
+ ...headersFromBaseOptions,
39460
+ ...options.headers,
39461
+ };
39462
+ const needsSerialization = typeof entitySearchBody !== "string" ||
39463
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
39464
+ localVarRequestOptions.data = needsSerialization
39465
+ ? JSON.stringify(entitySearchBody !== undefined ? entitySearchBody : {})
39466
+ : entitySearchBody || "";
39467
+ return {
39468
+ url: toPathString(localVarUrlObj),
39469
+ options: localVarRequestOptions,
39470
+ };
39471
+ }
39472
+ // EntitiesApi FP - EntitiesApiAxiosParamCreator
39331
39473
  /**
39332
39474
  *
39333
39475
  * @summary The search endpoint (beta)
@@ -47213,6 +47355,21 @@ export async function EntitiesApi_SearchEntitiesDatasets(axios, basePath, reques
47213
47355
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
47214
47356
  }
47215
47357
  // EntitiesApi Api FP
47358
+ /**
47359
+ *
47360
+ * @summary The search endpoint
47361
+ * @param {AxiosInstance} axios Axios instance.
47362
+ * @param {string} basePath Base path.
47363
+ * @param {EntitiesApiSearchEntitiesDocumentsRequest} requestParameters Request parameters.
47364
+ * @param {*} [options] Override http request option.
47365
+ * @param {Configuration} [configuration] Optional configuration.
47366
+ * @throws {RequiredError}
47367
+ */
47368
+ export async function EntitiesApi_SearchEntitiesDocuments(axios, basePath, requestParameters, options, configuration) {
47369
+ const localVarAxiosArgs = await EntitiesApiAxiosParamCreator_SearchEntitiesDocuments(requestParameters.workspaceId, requestParameters.entitySearchBody, requestParameters.origin, requestParameters.xGDCVALIDATERELATIONS, options || {}, configuration);
47370
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
47371
+ }
47372
+ // EntitiesApi Api FP
47216
47373
  /**
47217
47374
  *
47218
47375
  * @summary The search endpoint (beta)
@@ -51223,6 +51380,17 @@ export class EntitiesApi extends BaseAPI {
51223
51380
  searchEntitiesDatasets(requestParameters, options) {
51224
51381
  return EntitiesApi_SearchEntitiesDatasets(this.axios, this.basePath, requestParameters, options, this.configuration);
51225
51382
  }
51383
+ /**
51384
+ *
51385
+ * @summary The search endpoint
51386
+ * @param {EntitiesApiSearchEntitiesDocumentsRequest} requestParameters Request parameters.
51387
+ * @param {*} [options] Override http request option.
51388
+ * @throws {RequiredError}
51389
+ * @memberof EntitiesApi
51390
+ */
51391
+ searchEntitiesDocuments(requestParameters, options) {
51392
+ return EntitiesApi_SearchEntitiesDocuments(this.axios, this.basePath, requestParameters, options, this.configuration);
51393
+ }
51226
51394
  /**
51227
51395
  *
51228
51396
  * @summary The search endpoint (beta)
@@ -81776,6 +81944,64 @@ export async function PublisherDocumentsApiAxiosParamCreator_PatchEntityPageTemp
81776
81944
  };
81777
81945
  }
81778
81946
  // PublisherDocumentsApi FP - PublisherDocumentsApiAxiosParamCreator
81947
+ /**
81948
+ *
81949
+ * @summary The search endpoint
81950
+ * @param {string} workspaceId
81951
+ * @param {EntitySearchBody} entitySearchBody Search request body with filter, pagination, and sorting options
81952
+ * @param {'ALL' | 'PARENTS' | 'NATIVE'} [origin]
81953
+ * @param {boolean} [xGDCVALIDATERELATIONS]
81954
+ * @param {*} [options] Override http request option.
81955
+ * @param {Configuration} [configuration] Optional configuration.
81956
+ * @throws {RequiredError}
81957
+ */
81958
+ export async function PublisherDocumentsApiAxiosParamCreator_SearchEntitiesDocuments(workspaceId, entitySearchBody, origin, xGDCVALIDATERELATIONS, options = {}, configuration) {
81959
+ // verify required parameter 'workspaceId' is not null or undefined
81960
+ assertParamExists('searchEntitiesDocuments', 'workspaceId', workspaceId);
81961
+ // verify required parameter 'entitySearchBody' is not null or undefined
81962
+ assertParamExists('searchEntitiesDocuments', 'entitySearchBody', entitySearchBody);
81963
+ const localVarPath = `/api/v1/entities/workspaces/{workspaceId}/documents/search`
81964
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
81965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
81966
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
81967
+ let baseOptions;
81968
+ if (configuration) {
81969
+ baseOptions = configuration.baseOptions;
81970
+ }
81971
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
81972
+ const localVarHeaderParameter = {};
81973
+ const localVarQueryParameter = {};
81974
+ if (origin !== undefined) {
81975
+ localVarQueryParameter['origin'] = origin;
81976
+ }
81977
+ if (xGDCVALIDATERELATIONS !== undefined && xGDCVALIDATERELATIONS !== null) {
81978
+ localVarHeaderParameter['X-GDC-VALIDATE-RELATIONS'] = String(JSON.stringify(xGDCVALIDATERELATIONS));
81979
+ }
81980
+ const consumes = [
81981
+ 'application/json'
81982
+ ];
81983
+ // use application/json if present, otherwise fallback to the first one
81984
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
81985
+ ? 'application/json'
81986
+ : consumes[0];
81987
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
81988
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
81989
+ localVarRequestOptions.headers = {
81990
+ ...localVarHeaderParameter,
81991
+ ...headersFromBaseOptions,
81992
+ ...options.headers,
81993
+ };
81994
+ const needsSerialization = typeof entitySearchBody !== "string" ||
81995
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
81996
+ localVarRequestOptions.data = needsSerialization
81997
+ ? JSON.stringify(entitySearchBody !== undefined ? entitySearchBody : {})
81998
+ : entitySearchBody || "";
81999
+ return {
82000
+ url: toPathString(localVarUrlObj),
82001
+ options: localVarRequestOptions,
82002
+ };
82003
+ }
82004
+ // PublisherDocumentsApi FP - PublisherDocumentsApiAxiosParamCreator
81779
82005
  /**
81780
82006
  *
81781
82007
  * @summary Put a Document Template
@@ -82190,6 +82416,21 @@ export async function PublisherDocumentsApi_PatchEntityPageTemplates(axios, base
82190
82416
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
82191
82417
  }
82192
82418
  // PublisherDocumentsApi Api FP
82419
+ /**
82420
+ *
82421
+ * @summary The search endpoint
82422
+ * @param {AxiosInstance} axios Axios instance.
82423
+ * @param {string} basePath Base path.
82424
+ * @param {PublisherDocumentsApiSearchEntitiesDocumentsRequest} requestParameters Request parameters.
82425
+ * @param {*} [options] Override http request option.
82426
+ * @param {Configuration} [configuration] Optional configuration.
82427
+ * @throws {RequiredError}
82428
+ */
82429
+ export async function PublisherDocumentsApi_SearchEntitiesDocuments(axios, basePath, requestParameters, options, configuration) {
82430
+ const localVarAxiosArgs = await PublisherDocumentsApiAxiosParamCreator_SearchEntitiesDocuments(requestParameters.workspaceId, requestParameters.entitySearchBody, requestParameters.origin, requestParameters.xGDCVALIDATERELATIONS, options || {}, configuration);
82431
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
82432
+ }
82433
+ // PublisherDocumentsApi Api FP
82193
82434
  /**
82194
82435
  *
82195
82436
  * @summary Put a Document Template
@@ -82406,6 +82647,17 @@ export class PublisherDocumentsApi extends BaseAPI {
82406
82647
  patchEntityPageTemplates(requestParameters, options) {
82407
82648
  return PublisherDocumentsApi_PatchEntityPageTemplates(this.axios, this.basePath, requestParameters, options, this.configuration);
82408
82649
  }
82650
+ /**
82651
+ *
82652
+ * @summary The search endpoint
82653
+ * @param {PublisherDocumentsApiSearchEntitiesDocumentsRequest} requestParameters Request parameters.
82654
+ * @param {*} [options] Override http request option.
82655
+ * @throws {RequiredError}
82656
+ * @memberof PublisherDocumentsApi
82657
+ */
82658
+ searchEntitiesDocuments(requestParameters, options) {
82659
+ return PublisherDocumentsApi_SearchEntitiesDocuments(this.axios, this.basePath, requestParameters, options, this.configuration);
82660
+ }
82409
82661
  /**
82410
82662
  *
82411
82663
  * @summary Put a Document Template