@gooddata/api-client-tiger 10.11.0-alpha.27 → 10.11.0-alpha.29
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.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/api-client-tiger.d.ts +534 -151
- package/esm/generated/metadata-json-api/api.d.ts +519 -147
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +459 -17
- package/esm/generated/metadata-json-api/api.js.map +1 -1
- package/esm/generated/metadata-json-api/openapi-spec.json +6882 -6782
- package/package.json +3 -3
|
@@ -976,6 +976,10 @@ export const JsonApiNotificationChannelOutAttributesDestinationTypeEnum = {
|
|
|
976
976
|
SMTP: "SMTP",
|
|
977
977
|
DEFAULT_SMTP: "DEFAULT_SMTP",
|
|
978
978
|
};
|
|
979
|
+
export const JsonApiNotificationChannelOutAttributesAllowedRecipientsEnum = {
|
|
980
|
+
CREATOR: "CREATOR",
|
|
981
|
+
INTERNAL: "INTERNAL",
|
|
982
|
+
};
|
|
979
983
|
export const JsonApiNotificationChannelOutAttributesTriggersTypeEnum = {
|
|
980
984
|
SCHEDULE: "SCHEDULE",
|
|
981
985
|
ALERT: "ALERT",
|
|
@@ -1012,6 +1016,23 @@ export const JsonApiOrganizationSettingInTypeEnum = {
|
|
|
1012
1016
|
export const JsonApiOrganizationSettingOutTypeEnum = {
|
|
1013
1017
|
ORGANIZATION_SETTING: "organizationSetting",
|
|
1014
1018
|
};
|
|
1019
|
+
export const JsonApiOrganizationSettingOutAttributesTypeEnum = {
|
|
1020
|
+
TIMEZONE: "TIMEZONE",
|
|
1021
|
+
ACTIVE_THEME: "ACTIVE_THEME",
|
|
1022
|
+
ACTIVE_COLOR_PALETTE: "ACTIVE_COLOR_PALETTE",
|
|
1023
|
+
WHITE_LABELING: "WHITE_LABELING",
|
|
1024
|
+
LOCALE: "LOCALE",
|
|
1025
|
+
METADATA_LOCALE: "METADATA_LOCALE",
|
|
1026
|
+
FORMAT_LOCALE: "FORMAT_LOCALE",
|
|
1027
|
+
MAPBOX_TOKEN: "MAPBOX_TOKEN",
|
|
1028
|
+
WEEK_START: "WEEK_START",
|
|
1029
|
+
SHOW_HIDDEN_CATALOG_ITEMS: "SHOW_HIDDEN_CATALOG_ITEMS",
|
|
1030
|
+
OPERATOR_OVERRIDES: "OPERATOR_OVERRIDES",
|
|
1031
|
+
TIMEZONE_VALIDATION_ENABLED: "TIMEZONE_VALIDATION_ENABLED",
|
|
1032
|
+
OPENAI_CONFIG: "OPENAI_CONFIG",
|
|
1033
|
+
ENABLE_FILE_ANALYTICS: "ENABLE_FILE_ANALYTICS",
|
|
1034
|
+
ALERT: "ALERT",
|
|
1035
|
+
};
|
|
1015
1036
|
export const JsonApiOrganizationSettingOutWithLinksTypeEnum = {
|
|
1016
1037
|
ORGANIZATION_SETTING: "organizationSetting",
|
|
1017
1038
|
};
|
|
@@ -1178,23 +1199,6 @@ export const JsonApiWorkspaceSettingOutWithLinksTypeEnum = {
|
|
|
1178
1199
|
export const JsonApiWorkspaceSettingPatchTypeEnum = {
|
|
1179
1200
|
WORKSPACE_SETTING: "workspaceSetting",
|
|
1180
1201
|
};
|
|
1181
|
-
export const JsonApiWorkspaceSettingPatchAttributesTypeEnum = {
|
|
1182
|
-
TIMEZONE: "TIMEZONE",
|
|
1183
|
-
ACTIVE_THEME: "ACTIVE_THEME",
|
|
1184
|
-
ACTIVE_COLOR_PALETTE: "ACTIVE_COLOR_PALETTE",
|
|
1185
|
-
WHITE_LABELING: "WHITE_LABELING",
|
|
1186
|
-
LOCALE: "LOCALE",
|
|
1187
|
-
METADATA_LOCALE: "METADATA_LOCALE",
|
|
1188
|
-
FORMAT_LOCALE: "FORMAT_LOCALE",
|
|
1189
|
-
MAPBOX_TOKEN: "MAPBOX_TOKEN",
|
|
1190
|
-
WEEK_START: "WEEK_START",
|
|
1191
|
-
SHOW_HIDDEN_CATALOG_ITEMS: "SHOW_HIDDEN_CATALOG_ITEMS",
|
|
1192
|
-
OPERATOR_OVERRIDES: "OPERATOR_OVERRIDES",
|
|
1193
|
-
TIMEZONE_VALIDATION_ENABLED: "TIMEZONE_VALIDATION_ENABLED",
|
|
1194
|
-
OPENAI_CONFIG: "OPENAI_CONFIG",
|
|
1195
|
-
ENABLE_FILE_ANALYTICS: "ENABLE_FILE_ANALYTICS",
|
|
1196
|
-
ALERT: "ALERT",
|
|
1197
|
-
};
|
|
1198
1202
|
export const JsonApiWorkspaceSettingPostOptionalIdTypeEnum = {
|
|
1199
1203
|
WORKSPACE_SETTING: "workspaceSetting",
|
|
1200
1204
|
};
|
|
@@ -2978,6 +2982,104 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
|
|
|
2978
2982
|
options: localVarRequestOptions,
|
|
2979
2983
|
};
|
|
2980
2984
|
},
|
|
2985
|
+
/**
|
|
2986
|
+
*
|
|
2987
|
+
* @summary Unsubscribe from all automations in all workspaces
|
|
2988
|
+
* @param {*} [options] Override http request option.
|
|
2989
|
+
* @throws {RequiredError}
|
|
2990
|
+
*/
|
|
2991
|
+
unsubscribeAllAutomations: async (options = {}) => {
|
|
2992
|
+
const localVarPath = `/api/v1/actions/organization/automations/unsubscribe`;
|
|
2993
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2994
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2995
|
+
let baseOptions;
|
|
2996
|
+
if (configuration) {
|
|
2997
|
+
baseOptions = configuration.baseOptions;
|
|
2998
|
+
}
|
|
2999
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
3000
|
+
const localVarHeaderParameter = {};
|
|
3001
|
+
const localVarQueryParameter = {};
|
|
3002
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3003
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3004
|
+
localVarRequestOptions.headers = {
|
|
3005
|
+
...localVarHeaderParameter,
|
|
3006
|
+
...headersFromBaseOptions,
|
|
3007
|
+
...options.headers,
|
|
3008
|
+
};
|
|
3009
|
+
return {
|
|
3010
|
+
url: toPathString(localVarUrlObj),
|
|
3011
|
+
options: localVarRequestOptions,
|
|
3012
|
+
};
|
|
3013
|
+
},
|
|
3014
|
+
/**
|
|
3015
|
+
*
|
|
3016
|
+
* @summary Unsubscribe from an automation
|
|
3017
|
+
* @param {string} workspaceId
|
|
3018
|
+
* @param {string} automationId
|
|
3019
|
+
* @param {*} [options] Override http request option.
|
|
3020
|
+
* @throws {RequiredError}
|
|
3021
|
+
*/
|
|
3022
|
+
unsubscribeAutomation: async (workspaceId, automationId, options = {}) => {
|
|
3023
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3024
|
+
assertParamExists("unsubscribeAutomation", "workspaceId", workspaceId);
|
|
3025
|
+
// verify required parameter 'automationId' is not null or undefined
|
|
3026
|
+
assertParamExists("unsubscribeAutomation", "automationId", automationId);
|
|
3027
|
+
const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/{automationId}/unsubscribe`
|
|
3028
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
3029
|
+
.replace(`{${"automationId"}}`, encodeURIComponent(String(automationId)));
|
|
3030
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3031
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3032
|
+
let baseOptions;
|
|
3033
|
+
if (configuration) {
|
|
3034
|
+
baseOptions = configuration.baseOptions;
|
|
3035
|
+
}
|
|
3036
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
3037
|
+
const localVarHeaderParameter = {};
|
|
3038
|
+
const localVarQueryParameter = {};
|
|
3039
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3040
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3041
|
+
localVarRequestOptions.headers = {
|
|
3042
|
+
...localVarHeaderParameter,
|
|
3043
|
+
...headersFromBaseOptions,
|
|
3044
|
+
...options.headers,
|
|
3045
|
+
};
|
|
3046
|
+
return {
|
|
3047
|
+
url: toPathString(localVarUrlObj),
|
|
3048
|
+
options: localVarRequestOptions,
|
|
3049
|
+
};
|
|
3050
|
+
},
|
|
3051
|
+
/**
|
|
3052
|
+
*
|
|
3053
|
+
* @summary Unsubscribe from all automations in the workspace
|
|
3054
|
+
* @param {string} workspaceId
|
|
3055
|
+
* @param {*} [options] Override http request option.
|
|
3056
|
+
* @throws {RequiredError}
|
|
3057
|
+
*/
|
|
3058
|
+
unsubscribeWorkspaceAutomations: async (workspaceId, options = {}) => {
|
|
3059
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
3060
|
+
assertParamExists("unsubscribeWorkspaceAutomations", "workspaceId", workspaceId);
|
|
3061
|
+
const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/unsubscribe`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
3062
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3063
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3064
|
+
let baseOptions;
|
|
3065
|
+
if (configuration) {
|
|
3066
|
+
baseOptions = configuration.baseOptions;
|
|
3067
|
+
}
|
|
3068
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
3069
|
+
const localVarHeaderParameter = {};
|
|
3070
|
+
const localVarQueryParameter = {};
|
|
3071
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3072
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3073
|
+
localVarRequestOptions.headers = {
|
|
3074
|
+
...localVarHeaderParameter,
|
|
3075
|
+
...headersFromBaseOptions,
|
|
3076
|
+
...options.headers,
|
|
3077
|
+
};
|
|
3078
|
+
return {
|
|
3079
|
+
url: toPathString(localVarUrlObj),
|
|
3080
|
+
options: localVarRequestOptions,
|
|
3081
|
+
};
|
|
3082
|
+
},
|
|
2981
3083
|
/**
|
|
2982
3084
|
* Resolves values for all settings in a workspace by current user, workspace, organization, or default settings.
|
|
2983
3085
|
* @summary Values for all settings.
|
|
@@ -3380,6 +3482,39 @@ export const ActionsApiFp = function (configuration) {
|
|
|
3380
3482
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setTranslations(workspaceId, xliff, options);
|
|
3381
3483
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3382
3484
|
},
|
|
3485
|
+
/**
|
|
3486
|
+
*
|
|
3487
|
+
* @summary Unsubscribe from all automations in all workspaces
|
|
3488
|
+
* @param {*} [options] Override http request option.
|
|
3489
|
+
* @throws {RequiredError}
|
|
3490
|
+
*/
|
|
3491
|
+
async unsubscribeAllAutomations(options) {
|
|
3492
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribeAllAutomations(options);
|
|
3493
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3494
|
+
},
|
|
3495
|
+
/**
|
|
3496
|
+
*
|
|
3497
|
+
* @summary Unsubscribe from an automation
|
|
3498
|
+
* @param {string} workspaceId
|
|
3499
|
+
* @param {string} automationId
|
|
3500
|
+
* @param {*} [options] Override http request option.
|
|
3501
|
+
* @throws {RequiredError}
|
|
3502
|
+
*/
|
|
3503
|
+
async unsubscribeAutomation(workspaceId, automationId, options) {
|
|
3504
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribeAutomation(workspaceId, automationId, options);
|
|
3505
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3506
|
+
},
|
|
3507
|
+
/**
|
|
3508
|
+
*
|
|
3509
|
+
* @summary Unsubscribe from all automations in the workspace
|
|
3510
|
+
* @param {string} workspaceId
|
|
3511
|
+
* @param {*} [options] Override http request option.
|
|
3512
|
+
* @throws {RequiredError}
|
|
3513
|
+
*/
|
|
3514
|
+
async unsubscribeWorkspaceAutomations(workspaceId, options) {
|
|
3515
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribeWorkspaceAutomations(workspaceId, options);
|
|
3516
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3517
|
+
},
|
|
3383
3518
|
/**
|
|
3384
3519
|
* Resolves values for all settings in a workspace by current user, workspace, organization, or default settings.
|
|
3385
3520
|
* @summary Values for all settings.
|
|
@@ -3736,6 +3871,39 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
3736
3871
|
.setTranslations(requestParameters.workspaceId, requestParameters.xliff, options)
|
|
3737
3872
|
.then((request) => request(axios, basePath));
|
|
3738
3873
|
},
|
|
3874
|
+
/**
|
|
3875
|
+
*
|
|
3876
|
+
* @summary Unsubscribe from all automations in all workspaces
|
|
3877
|
+
* @param {*} [options] Override http request option.
|
|
3878
|
+
* @throws {RequiredError}
|
|
3879
|
+
*/
|
|
3880
|
+
unsubscribeAllAutomations(options) {
|
|
3881
|
+
return localVarFp.unsubscribeAllAutomations(options).then((request) => request(axios, basePath));
|
|
3882
|
+
},
|
|
3883
|
+
/**
|
|
3884
|
+
*
|
|
3885
|
+
* @summary Unsubscribe from an automation
|
|
3886
|
+
* @param {ActionsApiUnsubscribeAutomationRequest} requestParameters Request parameters.
|
|
3887
|
+
* @param {*} [options] Override http request option.
|
|
3888
|
+
* @throws {RequiredError}
|
|
3889
|
+
*/
|
|
3890
|
+
unsubscribeAutomation(requestParameters, options) {
|
|
3891
|
+
return localVarFp
|
|
3892
|
+
.unsubscribeAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
|
|
3893
|
+
.then((request) => request(axios, basePath));
|
|
3894
|
+
},
|
|
3895
|
+
/**
|
|
3896
|
+
*
|
|
3897
|
+
* @summary Unsubscribe from all automations in the workspace
|
|
3898
|
+
* @param {ActionsApiUnsubscribeWorkspaceAutomationsRequest} requestParameters Request parameters.
|
|
3899
|
+
* @param {*} [options] Override http request option.
|
|
3900
|
+
* @throws {RequiredError}
|
|
3901
|
+
*/
|
|
3902
|
+
unsubscribeWorkspaceAutomations(requestParameters, options) {
|
|
3903
|
+
return localVarFp
|
|
3904
|
+
.unsubscribeWorkspaceAutomations(requestParameters.workspaceId, options)
|
|
3905
|
+
.then((request) => request(axios, basePath));
|
|
3906
|
+
},
|
|
3739
3907
|
/**
|
|
3740
3908
|
* Resolves values for all settings in a workspace by current user, workspace, organization, or default settings.
|
|
3741
3909
|
* @summary Values for all settings.
|
|
@@ -4127,6 +4295,44 @@ export class ActionsApi extends BaseAPI {
|
|
|
4127
4295
|
.setTranslations(requestParameters.workspaceId, requestParameters.xliff, options)
|
|
4128
4296
|
.then((request) => request(this.axios, this.basePath));
|
|
4129
4297
|
}
|
|
4298
|
+
/**
|
|
4299
|
+
*
|
|
4300
|
+
* @summary Unsubscribe from all automations in all workspaces
|
|
4301
|
+
* @param {*} [options] Override http request option.
|
|
4302
|
+
* @throws {RequiredError}
|
|
4303
|
+
* @memberof ActionsApi
|
|
4304
|
+
*/
|
|
4305
|
+
unsubscribeAllAutomations(options) {
|
|
4306
|
+
return ActionsApiFp(this.configuration)
|
|
4307
|
+
.unsubscribeAllAutomations(options)
|
|
4308
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4309
|
+
}
|
|
4310
|
+
/**
|
|
4311
|
+
*
|
|
4312
|
+
* @summary Unsubscribe from an automation
|
|
4313
|
+
* @param {ActionsApiUnsubscribeAutomationRequest} requestParameters Request parameters.
|
|
4314
|
+
* @param {*} [options] Override http request option.
|
|
4315
|
+
* @throws {RequiredError}
|
|
4316
|
+
* @memberof ActionsApi
|
|
4317
|
+
*/
|
|
4318
|
+
unsubscribeAutomation(requestParameters, options) {
|
|
4319
|
+
return ActionsApiFp(this.configuration)
|
|
4320
|
+
.unsubscribeAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
|
|
4321
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4322
|
+
}
|
|
4323
|
+
/**
|
|
4324
|
+
*
|
|
4325
|
+
* @summary Unsubscribe from all automations in the workspace
|
|
4326
|
+
* @param {ActionsApiUnsubscribeWorkspaceAutomationsRequest} requestParameters Request parameters.
|
|
4327
|
+
* @param {*} [options] Override http request option.
|
|
4328
|
+
* @throws {RequiredError}
|
|
4329
|
+
* @memberof ActionsApi
|
|
4330
|
+
*/
|
|
4331
|
+
unsubscribeWorkspaceAutomations(requestParameters, options) {
|
|
4332
|
+
return ActionsApiFp(this.configuration)
|
|
4333
|
+
.unsubscribeWorkspaceAutomations(requestParameters.workspaceId, options)
|
|
4334
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4335
|
+
}
|
|
4130
4336
|
/**
|
|
4131
4337
|
* Resolves values for all settings in a workspace by current user, workspace, organization, or default settings.
|
|
4132
4338
|
* @summary Values for all settings.
|
|
@@ -46726,6 +46932,242 @@ export class TranslationsApi extends BaseAPI {
|
|
|
46726
46932
|
.then((request) => request(this.axios, this.basePath));
|
|
46727
46933
|
}
|
|
46728
46934
|
}
|
|
46935
|
+
/**
|
|
46936
|
+
* UnsubscribeApi - axios parameter creator
|
|
46937
|
+
* @export
|
|
46938
|
+
*/
|
|
46939
|
+
export const UnsubscribeApiAxiosParamCreator = function (configuration) {
|
|
46940
|
+
return {
|
|
46941
|
+
/**
|
|
46942
|
+
*
|
|
46943
|
+
* @summary Unsubscribe from all automations in all workspaces
|
|
46944
|
+
* @param {*} [options] Override http request option.
|
|
46945
|
+
* @throws {RequiredError}
|
|
46946
|
+
*/
|
|
46947
|
+
unsubscribeAllAutomations: async (options = {}) => {
|
|
46948
|
+
const localVarPath = `/api/v1/actions/organization/automations/unsubscribe`;
|
|
46949
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46950
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46951
|
+
let baseOptions;
|
|
46952
|
+
if (configuration) {
|
|
46953
|
+
baseOptions = configuration.baseOptions;
|
|
46954
|
+
}
|
|
46955
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
46956
|
+
const localVarHeaderParameter = {};
|
|
46957
|
+
const localVarQueryParameter = {};
|
|
46958
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46959
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46960
|
+
localVarRequestOptions.headers = {
|
|
46961
|
+
...localVarHeaderParameter,
|
|
46962
|
+
...headersFromBaseOptions,
|
|
46963
|
+
...options.headers,
|
|
46964
|
+
};
|
|
46965
|
+
return {
|
|
46966
|
+
url: toPathString(localVarUrlObj),
|
|
46967
|
+
options: localVarRequestOptions,
|
|
46968
|
+
};
|
|
46969
|
+
},
|
|
46970
|
+
/**
|
|
46971
|
+
*
|
|
46972
|
+
* @summary Unsubscribe from an automation
|
|
46973
|
+
* @param {string} workspaceId
|
|
46974
|
+
* @param {string} automationId
|
|
46975
|
+
* @param {*} [options] Override http request option.
|
|
46976
|
+
* @throws {RequiredError}
|
|
46977
|
+
*/
|
|
46978
|
+
unsubscribeAutomation: async (workspaceId, automationId, options = {}) => {
|
|
46979
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
46980
|
+
assertParamExists("unsubscribeAutomation", "workspaceId", workspaceId);
|
|
46981
|
+
// verify required parameter 'automationId' is not null or undefined
|
|
46982
|
+
assertParamExists("unsubscribeAutomation", "automationId", automationId);
|
|
46983
|
+
const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/{automationId}/unsubscribe`
|
|
46984
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
46985
|
+
.replace(`{${"automationId"}}`, encodeURIComponent(String(automationId)));
|
|
46986
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46987
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46988
|
+
let baseOptions;
|
|
46989
|
+
if (configuration) {
|
|
46990
|
+
baseOptions = configuration.baseOptions;
|
|
46991
|
+
}
|
|
46992
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
46993
|
+
const localVarHeaderParameter = {};
|
|
46994
|
+
const localVarQueryParameter = {};
|
|
46995
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46996
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46997
|
+
localVarRequestOptions.headers = {
|
|
46998
|
+
...localVarHeaderParameter,
|
|
46999
|
+
...headersFromBaseOptions,
|
|
47000
|
+
...options.headers,
|
|
47001
|
+
};
|
|
47002
|
+
return {
|
|
47003
|
+
url: toPathString(localVarUrlObj),
|
|
47004
|
+
options: localVarRequestOptions,
|
|
47005
|
+
};
|
|
47006
|
+
},
|
|
47007
|
+
/**
|
|
47008
|
+
*
|
|
47009
|
+
* @summary Unsubscribe from all automations in the workspace
|
|
47010
|
+
* @param {string} workspaceId
|
|
47011
|
+
* @param {*} [options] Override http request option.
|
|
47012
|
+
* @throws {RequiredError}
|
|
47013
|
+
*/
|
|
47014
|
+
unsubscribeWorkspaceAutomations: async (workspaceId, options = {}) => {
|
|
47015
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
47016
|
+
assertParamExists("unsubscribeWorkspaceAutomations", "workspaceId", workspaceId);
|
|
47017
|
+
const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/automations/unsubscribe`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
47018
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47019
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47020
|
+
let baseOptions;
|
|
47021
|
+
if (configuration) {
|
|
47022
|
+
baseOptions = configuration.baseOptions;
|
|
47023
|
+
}
|
|
47024
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
47025
|
+
const localVarHeaderParameter = {};
|
|
47026
|
+
const localVarQueryParameter = {};
|
|
47027
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47028
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
47029
|
+
localVarRequestOptions.headers = {
|
|
47030
|
+
...localVarHeaderParameter,
|
|
47031
|
+
...headersFromBaseOptions,
|
|
47032
|
+
...options.headers,
|
|
47033
|
+
};
|
|
47034
|
+
return {
|
|
47035
|
+
url: toPathString(localVarUrlObj),
|
|
47036
|
+
options: localVarRequestOptions,
|
|
47037
|
+
};
|
|
47038
|
+
},
|
|
47039
|
+
};
|
|
47040
|
+
};
|
|
47041
|
+
/**
|
|
47042
|
+
* UnsubscribeApi - functional programming interface
|
|
47043
|
+
* @export
|
|
47044
|
+
*/
|
|
47045
|
+
export const UnsubscribeApiFp = function (configuration) {
|
|
47046
|
+
const localVarAxiosParamCreator = UnsubscribeApiAxiosParamCreator(configuration);
|
|
47047
|
+
return {
|
|
47048
|
+
/**
|
|
47049
|
+
*
|
|
47050
|
+
* @summary Unsubscribe from all automations in all workspaces
|
|
47051
|
+
* @param {*} [options] Override http request option.
|
|
47052
|
+
* @throws {RequiredError}
|
|
47053
|
+
*/
|
|
47054
|
+
async unsubscribeAllAutomations(options) {
|
|
47055
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribeAllAutomations(options);
|
|
47056
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
47057
|
+
},
|
|
47058
|
+
/**
|
|
47059
|
+
*
|
|
47060
|
+
* @summary Unsubscribe from an automation
|
|
47061
|
+
* @param {string} workspaceId
|
|
47062
|
+
* @param {string} automationId
|
|
47063
|
+
* @param {*} [options] Override http request option.
|
|
47064
|
+
* @throws {RequiredError}
|
|
47065
|
+
*/
|
|
47066
|
+
async unsubscribeAutomation(workspaceId, automationId, options) {
|
|
47067
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribeAutomation(workspaceId, automationId, options);
|
|
47068
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
47069
|
+
},
|
|
47070
|
+
/**
|
|
47071
|
+
*
|
|
47072
|
+
* @summary Unsubscribe from all automations in the workspace
|
|
47073
|
+
* @param {string} workspaceId
|
|
47074
|
+
* @param {*} [options] Override http request option.
|
|
47075
|
+
* @throws {RequiredError}
|
|
47076
|
+
*/
|
|
47077
|
+
async unsubscribeWorkspaceAutomations(workspaceId, options) {
|
|
47078
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsubscribeWorkspaceAutomations(workspaceId, options);
|
|
47079
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
47080
|
+
},
|
|
47081
|
+
};
|
|
47082
|
+
};
|
|
47083
|
+
/**
|
|
47084
|
+
* UnsubscribeApi - factory interface
|
|
47085
|
+
* @export
|
|
47086
|
+
*/
|
|
47087
|
+
export const UnsubscribeApiFactory = function (configuration, basePath, axios) {
|
|
47088
|
+
const localVarFp = UnsubscribeApiFp(configuration);
|
|
47089
|
+
return {
|
|
47090
|
+
/**
|
|
47091
|
+
*
|
|
47092
|
+
* @summary Unsubscribe from all automations in all workspaces
|
|
47093
|
+
* @param {*} [options] Override http request option.
|
|
47094
|
+
* @throws {RequiredError}
|
|
47095
|
+
*/
|
|
47096
|
+
unsubscribeAllAutomations(options) {
|
|
47097
|
+
return localVarFp.unsubscribeAllAutomations(options).then((request) => request(axios, basePath));
|
|
47098
|
+
},
|
|
47099
|
+
/**
|
|
47100
|
+
*
|
|
47101
|
+
* @summary Unsubscribe from an automation
|
|
47102
|
+
* @param {UnsubscribeApiUnsubscribeAutomationRequest} requestParameters Request parameters.
|
|
47103
|
+
* @param {*} [options] Override http request option.
|
|
47104
|
+
* @throws {RequiredError}
|
|
47105
|
+
*/
|
|
47106
|
+
unsubscribeAutomation(requestParameters, options) {
|
|
47107
|
+
return localVarFp
|
|
47108
|
+
.unsubscribeAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
|
|
47109
|
+
.then((request) => request(axios, basePath));
|
|
47110
|
+
},
|
|
47111
|
+
/**
|
|
47112
|
+
*
|
|
47113
|
+
* @summary Unsubscribe from all automations in the workspace
|
|
47114
|
+
* @param {UnsubscribeApiUnsubscribeWorkspaceAutomationsRequest} requestParameters Request parameters.
|
|
47115
|
+
* @param {*} [options] Override http request option.
|
|
47116
|
+
* @throws {RequiredError}
|
|
47117
|
+
*/
|
|
47118
|
+
unsubscribeWorkspaceAutomations(requestParameters, options) {
|
|
47119
|
+
return localVarFp
|
|
47120
|
+
.unsubscribeWorkspaceAutomations(requestParameters.workspaceId, options)
|
|
47121
|
+
.then((request) => request(axios, basePath));
|
|
47122
|
+
},
|
|
47123
|
+
};
|
|
47124
|
+
};
|
|
47125
|
+
/**
|
|
47126
|
+
* UnsubscribeApi - object-oriented interface
|
|
47127
|
+
* @export
|
|
47128
|
+
* @class UnsubscribeApi
|
|
47129
|
+
* @extends {BaseAPI}
|
|
47130
|
+
*/
|
|
47131
|
+
export class UnsubscribeApi extends BaseAPI {
|
|
47132
|
+
/**
|
|
47133
|
+
*
|
|
47134
|
+
* @summary Unsubscribe from all automations in all workspaces
|
|
47135
|
+
* @param {*} [options] Override http request option.
|
|
47136
|
+
* @throws {RequiredError}
|
|
47137
|
+
* @memberof UnsubscribeApi
|
|
47138
|
+
*/
|
|
47139
|
+
unsubscribeAllAutomations(options) {
|
|
47140
|
+
return UnsubscribeApiFp(this.configuration)
|
|
47141
|
+
.unsubscribeAllAutomations(options)
|
|
47142
|
+
.then((request) => request(this.axios, this.basePath));
|
|
47143
|
+
}
|
|
47144
|
+
/**
|
|
47145
|
+
*
|
|
47146
|
+
* @summary Unsubscribe from an automation
|
|
47147
|
+
* @param {UnsubscribeApiUnsubscribeAutomationRequest} requestParameters Request parameters.
|
|
47148
|
+
* @param {*} [options] Override http request option.
|
|
47149
|
+
* @throws {RequiredError}
|
|
47150
|
+
* @memberof UnsubscribeApi
|
|
47151
|
+
*/
|
|
47152
|
+
unsubscribeAutomation(requestParameters, options) {
|
|
47153
|
+
return UnsubscribeApiFp(this.configuration)
|
|
47154
|
+
.unsubscribeAutomation(requestParameters.workspaceId, requestParameters.automationId, options)
|
|
47155
|
+
.then((request) => request(this.axios, this.basePath));
|
|
47156
|
+
}
|
|
47157
|
+
/**
|
|
47158
|
+
*
|
|
47159
|
+
* @summary Unsubscribe from all automations in the workspace
|
|
47160
|
+
* @param {UnsubscribeApiUnsubscribeWorkspaceAutomationsRequest} requestParameters Request parameters.
|
|
47161
|
+
* @param {*} [options] Override http request option.
|
|
47162
|
+
* @throws {RequiredError}
|
|
47163
|
+
* @memberof UnsubscribeApi
|
|
47164
|
+
*/
|
|
47165
|
+
unsubscribeWorkspaceAutomations(requestParameters, options) {
|
|
47166
|
+
return UnsubscribeApiFp(this.configuration)
|
|
47167
|
+
.unsubscribeWorkspaceAutomations(requestParameters.workspaceId, options)
|
|
47168
|
+
.then((request) => request(this.axios, this.basePath));
|
|
47169
|
+
}
|
|
47170
|
+
}
|
|
46729
47171
|
/**
|
|
46730
47172
|
* UsageApi - axios parameter creator
|
|
46731
47173
|
* @export
|