@gooddata/api-client-tiger 10.6.0-alpha.7 → 10.6.0-alpha.8

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.
@@ -1,15 +1,4 @@
1
- /* eslint-disable */
2
- /**
3
- * OpenAPI definition
4
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
- *
6
- * The version of the OpenAPI document: v0
7
- *
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
1
+ // (C) 2024 GoodData Corporation
13
2
  import globalAxios from "axios";
14
3
  // Some imports not used depending on template conditions, we also need prettier-ignore so that the import does not get split and ts-ignore still works
15
4
  // prettier-ignore
@@ -542,6 +531,10 @@ export const JsonApiDataSourceIdentifierOutAttributesTypeEnum = {
542
531
  SINGLESTORE: "SINGLESTORE",
543
532
  MOTHERDUCK: "MOTHERDUCK",
544
533
  };
534
+ export const JsonApiDataSourceIdentifierOutMetaPermissionsEnum = {
535
+ MANAGE: "MANAGE",
536
+ USE: "USE",
537
+ };
545
538
  export const JsonApiDataSourceIdentifierOutWithLinksTypeEnum = {
546
539
  DATA_SOURCE_IDENTIFIER: "dataSourceIdentifier",
547
540
  };
@@ -607,10 +600,6 @@ export const JsonApiDataSourceOutAttributesCacheStrategyEnum = {
607
600
  ALWAYS: "ALWAYS",
608
601
  NEVER: "NEVER",
609
602
  };
610
- export const JsonApiDataSourceOutMetaPermissionsEnum = {
611
- MANAGE: "MANAGE",
612
- USE: "USE",
613
- };
614
603
  export const JsonApiDataSourceOutWithLinksTypeEnum = {
615
604
  DATA_SOURCE: "dataSource",
616
605
  };
@@ -814,6 +803,10 @@ export const JsonApiNotificationChannelLinkageTypeEnum = {
814
803
  export const JsonApiNotificationChannelOutTypeEnum = {
815
804
  NOTIFICATION_CHANNEL: "notificationChannel",
816
805
  };
806
+ export const JsonApiNotificationChannelOutAttributesTriggersTypeEnum = {
807
+ SCHEDULE: "SCHEDULE",
808
+ ALERT: "ALERT",
809
+ };
817
810
  export const JsonApiNotificationChannelOutWithLinksTypeEnum = {
818
811
  NOTIFICATION_CHANNEL: "notificationChannel",
819
812
  };
@@ -823,10 +816,6 @@ export const JsonApiNotificationChannelPatchTypeEnum = {
823
816
  export const JsonApiNotificationChannelPostOptionalIdTypeEnum = {
824
817
  NOTIFICATION_CHANNEL: "notificationChannel",
825
818
  };
826
- export const JsonApiNotificationChannelPostOptionalIdAttributesTriggersTypeEnum = {
827
- SCHEDULE: "SCHEDULE",
828
- ALERT: "ALERT",
829
- };
830
819
  export const JsonApiOrganizationInTypeEnum = {
831
820
  ORGANIZATION: "organization",
832
821
  };
@@ -847,7 +836,10 @@ export const JsonApiOrganizationPatchTypeEnum = {
847
836
  export const JsonApiOrganizationSettingInTypeEnum = {
848
837
  ORGANIZATION_SETTING: "organizationSetting",
849
838
  };
850
- export const JsonApiOrganizationSettingInAttributesTypeEnum = {
839
+ export const JsonApiOrganizationSettingOutTypeEnum = {
840
+ ORGANIZATION_SETTING: "organizationSetting",
841
+ };
842
+ export const JsonApiOrganizationSettingOutAttributesTypeEnum = {
851
843
  TIMEZONE: "TIMEZONE",
852
844
  ACTIVE_THEME: "ACTIVE_THEME",
853
845
  ACTIVE_COLOR_PALETTE: "ACTIVE_COLOR_PALETTE",
@@ -863,9 +855,6 @@ export const JsonApiOrganizationSettingInAttributesTypeEnum = {
863
855
  OPENAI_CONFIG: "OPENAI_CONFIG",
864
856
  ENABLE_FILE_ANALYTICS: "ENABLE_FILE_ANALYTICS",
865
857
  };
866
- export const JsonApiOrganizationSettingOutTypeEnum = {
867
- ORGANIZATION_SETTING: "organizationSetting",
868
- };
869
858
  export const JsonApiOrganizationSettingOutWithLinksTypeEnum = {
870
859
  ORGANIZATION_SETTING: "organizationSetting",
871
860
  };
@@ -1931,6 +1920,92 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
1931
1920
  options: localVarRequestOptions,
1932
1921
  };
1933
1922
  },
1923
+ /**
1924
+ *
1925
+ * @param {string} workspaceId
1926
+ * @param {number} [page] Zero-based page index (0..N)
1927
+ * @param {number} [size] The size of the page to be returned.
1928
+ * @param {string} [name] Filter by user name. Note that user name is case insensitive.
1929
+ * @param {*} [options] Override http request option.
1930
+ * @throws {RequiredError}
1931
+ */
1932
+ listWorkspaceUserGroups: async (workspaceId, page, size, name, options = {}) => {
1933
+ // verify required parameter 'workspaceId' is not null or undefined
1934
+ assertParamExists("listWorkspaceUserGroups", "workspaceId", workspaceId);
1935
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/userGroups`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1936
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1937
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1938
+ let baseOptions;
1939
+ if (configuration) {
1940
+ baseOptions = configuration.baseOptions;
1941
+ }
1942
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1943
+ const localVarHeaderParameter = {};
1944
+ const localVarQueryParameter = {};
1945
+ if (page !== undefined) {
1946
+ localVarQueryParameter["page"] = page;
1947
+ }
1948
+ if (size !== undefined) {
1949
+ localVarQueryParameter["size"] = size;
1950
+ }
1951
+ if (name !== undefined) {
1952
+ localVarQueryParameter["name"] = name;
1953
+ }
1954
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1955
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1956
+ localVarRequestOptions.headers = {
1957
+ ...localVarHeaderParameter,
1958
+ ...headersFromBaseOptions,
1959
+ ...options.headers,
1960
+ };
1961
+ return {
1962
+ url: toPathString(localVarUrlObj),
1963
+ options: localVarRequestOptions,
1964
+ };
1965
+ },
1966
+ /**
1967
+ *
1968
+ * @param {string} workspaceId
1969
+ * @param {number} [page] Zero-based page index (0..N)
1970
+ * @param {number} [size] The size of the page to be returned.
1971
+ * @param {string} [name] Filter by user name. Note that user name is case insensitive.
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ listWorkspaceUsers: async (workspaceId, page, size, name, options = {}) => {
1976
+ // verify required parameter 'workspaceId' is not null or undefined
1977
+ assertParamExists("listWorkspaceUsers", "workspaceId", workspaceId);
1978
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/users`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1979
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1980
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1981
+ let baseOptions;
1982
+ if (configuration) {
1983
+ baseOptions = configuration.baseOptions;
1984
+ }
1985
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1986
+ const localVarHeaderParameter = {};
1987
+ const localVarQueryParameter = {};
1988
+ if (page !== undefined) {
1989
+ localVarQueryParameter["page"] = page;
1990
+ }
1991
+ if (size !== undefined) {
1992
+ localVarQueryParameter["size"] = size;
1993
+ }
1994
+ if (name !== undefined) {
1995
+ localVarQueryParameter["name"] = name;
1996
+ }
1997
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1998
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1999
+ localVarRequestOptions.headers = {
2000
+ ...localVarHeaderParameter,
2001
+ ...headersFromBaseOptions,
2002
+ ...options.headers,
2003
+ };
2004
+ return {
2005
+ url: toPathString(localVarUrlObj),
2006
+ options: localVarRequestOptions,
2007
+ };
2008
+ },
1934
2009
  /**
1935
2010
  *
1936
2011
  * @summary Manage Permissions for a Dashboard
@@ -2625,6 +2700,32 @@ export const ActionsApiFp = function (configuration) {
2625
2700
  const localVarAxiosArgs = await localVarAxiosParamCreator.inheritedEntityPrefixes(workspaceId, options);
2626
2701
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2627
2702
  },
2703
+ /**
2704
+ *
2705
+ * @param {string} workspaceId
2706
+ * @param {number} [page] Zero-based page index (0..N)
2707
+ * @param {number} [size] The size of the page to be returned.
2708
+ * @param {string} [name] Filter by user name. Note that user name is case insensitive.
2709
+ * @param {*} [options] Override http request option.
2710
+ * @throws {RequiredError}
2711
+ */
2712
+ async listWorkspaceUserGroups(workspaceId, page, size, name, options) {
2713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaceUserGroups(workspaceId, page, size, name, options);
2714
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2715
+ },
2716
+ /**
2717
+ *
2718
+ * @param {string} workspaceId
2719
+ * @param {number} [page] Zero-based page index (0..N)
2720
+ * @param {number} [size] The size of the page to be returned.
2721
+ * @param {string} [name] Filter by user name. Note that user name is case insensitive.
2722
+ * @param {*} [options] Override http request option.
2723
+ * @throws {RequiredError}
2724
+ */
2725
+ async listWorkspaceUsers(workspaceId, page, size, name, options) {
2726
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaceUsers(workspaceId, page, size, name, options);
2727
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2728
+ },
2628
2729
  /**
2629
2730
  *
2630
2731
  * @summary Manage Permissions for a Dashboard
@@ -2933,6 +3034,28 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
2933
3034
  .inheritedEntityPrefixes(requestParameters.workspaceId, options)
2934
3035
  .then((request) => request(axios, basePath));
2935
3036
  },
3037
+ /**
3038
+ *
3039
+ * @param {ActionsApiListWorkspaceUserGroupsRequest} requestParameters Request parameters.
3040
+ * @param {*} [options] Override http request option.
3041
+ * @throws {RequiredError}
3042
+ */
3043
+ listWorkspaceUserGroups(requestParameters, options) {
3044
+ return localVarFp
3045
+ .listWorkspaceUserGroups(requestParameters.workspaceId, requestParameters.page, requestParameters.size, requestParameters.name, options)
3046
+ .then((request) => request(axios, basePath));
3047
+ },
3048
+ /**
3049
+ *
3050
+ * @param {ActionsApiListWorkspaceUsersRequest} requestParameters Request parameters.
3051
+ * @param {*} [options] Override http request option.
3052
+ * @throws {RequiredError}
3053
+ */
3054
+ listWorkspaceUsers(requestParameters, options) {
3055
+ return localVarFp
3056
+ .listWorkspaceUsers(requestParameters.workspaceId, requestParameters.page, requestParameters.size, requestParameters.name, options)
3057
+ .then((request) => request(axios, basePath));
3058
+ },
2936
3059
  /**
2937
3060
  *
2938
3061
  * @summary Manage Permissions for a Dashboard
@@ -3260,6 +3383,30 @@ export class ActionsApi extends BaseAPI {
3260
3383
  .inheritedEntityPrefixes(requestParameters.workspaceId, options)
3261
3384
  .then((request) => request(this.axios, this.basePath));
3262
3385
  }
3386
+ /**
3387
+ *
3388
+ * @param {ActionsApiListWorkspaceUserGroupsRequest} requestParameters Request parameters.
3389
+ * @param {*} [options] Override http request option.
3390
+ * @throws {RequiredError}
3391
+ * @memberof ActionsApi
3392
+ */
3393
+ listWorkspaceUserGroups(requestParameters, options) {
3394
+ return ActionsApiFp(this.configuration)
3395
+ .listWorkspaceUserGroups(requestParameters.workspaceId, requestParameters.page, requestParameters.size, requestParameters.name, options)
3396
+ .then((request) => request(this.axios, this.basePath));
3397
+ }
3398
+ /**
3399
+ *
3400
+ * @param {ActionsApiListWorkspaceUsersRequest} requestParameters Request parameters.
3401
+ * @param {*} [options] Override http request option.
3402
+ * @throws {RequiredError}
3403
+ * @memberof ActionsApi
3404
+ */
3405
+ listWorkspaceUsers(requestParameters, options) {
3406
+ return ActionsApiFp(this.configuration)
3407
+ .listWorkspaceUsers(requestParameters.workspaceId, requestParameters.page, requestParameters.size, requestParameters.name, options)
3408
+ .then((request) => request(this.axios, this.basePath));
3409
+ }
3263
3410
  /**
3264
3411
  *
3265
3412
  * @summary Manage Permissions for a Dashboard