@seekora-ai/admin-api 1.1.29 → 1.1.31
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/README.md +4 -4
- package/api.ts +210 -149
- package/dist/api.d.ts +157 -93
- package/dist/api.js +113 -122
- package/dist/esm/api.d.ts +157 -93
- package/dist/esm/api.js +106 -115
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.31.tgz +0 -0
- package/seekora-ai-admin-api-1.1.29.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TeamApi = exports.TeamApiFactory = exports.TeamApiFp = exports.TeamApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = void 0;
|
|
25
|
+
exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.AdminNotificationsApi = exports.AdminNotificationsApiFactory = exports.AdminNotificationsApiFp = exports.AdminNotificationsApiAxiosParamCreator = exports.AdminNotificationTemplatesApi = exports.AdminNotificationTemplatesApiFactory = exports.AdminNotificationTemplatesApiFp = exports.AdminNotificationTemplatesApiAxiosParamCreator = exports.AccountSettingsApi = exports.AccountSettingsApiFactory = exports.AccountSettingsApiFp = exports.AccountSettingsApiAxiosParamCreator = exports.APICallsApi = exports.APICallsApiFactory = exports.APICallsApiFp = exports.APICallsApiAxiosParamCreator = exports.RefundRefundPreviewRequestDtoRefundTypeEnum = exports.DataTypesUpdateWordStatusRequestWordTypeEnum = exports.DataTypesUpdateStoreAccessRequestAccessLevelEnum = exports.DataTypesUpdatePluralDeclensionRequestTypeEnum = exports.DataTypesUpdateMemberRoleRequestMemberRoleEnum = exports.DataTypesStoreLevelMenuRightAccessLevelEnum = exports.DataTypesStoreAccessRequestAccessLevelEnum = exports.DataTypesRefundCalculationRequestDtoRefundTypeEnum = exports.DataTypesRefundApprovalDtoActionEnum = exports.DataTypesProcessRefundRequestDtoRefundTypeEnum = exports.DataTypesNotificationType = exports.DataTypesNotificationStatus = exports.DataTypesNotificationPriority = exports.DataTypesNotificationChannel = exports.DataTypesInviteMemberRequestMemberRoleEnum = exports.DataTypesGrantStoreAccessRequestAccessLevelEnum = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = exports.DataTypesCreateRefundRequestDtoRefundTypeEnum = exports.DataTypesCreatePluralDeclensionRequestTypeEnum = exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = exports.DataTypesCreateCustomWordListRequestTypeEnum = exports.DataTypesBillingAlertRequestThresholdUnitEnum = exports.DataTypesBillingAlertRequestAlertTypeEnum = exports.AnalyticsRuleType = exports.AnalyticsQuerySuggestionStatus = exports.AnalyticsQuerySuggestionSource = exports.AnalyticsBulkOperation = exports.AnalyticsBannedMatchType = void 0;
|
|
26
|
+
exports.AnalyticsRulesApiFactory = exports.AnalyticsRulesApiFp = exports.AnalyticsRulesApiAxiosParamCreator = exports.AnalyticsEventsApi = exports.AnalyticsEventsApiFactory = exports.AnalyticsEventsApiFp = exports.AnalyticsEventsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortByEnum = void 0;
|
|
27
|
+
exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.CompanyConfigApi = exports.CompanyConfigApiFactory = exports.CompanyConfigApiFp = exports.CompanyConfigApiAxiosParamCreator = exports.CommonApi = exports.CommonApiFactory = exports.CommonApiFp = exports.CommonApiAxiosParamCreator = exports.AdminBillingGraphsUsageBreakdownGetGranularityEnum = exports.AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum = exports.AdminBillingGraphsSearchRequestsGetGranularityEnum = exports.AdminBillingGraphsCreditsConsumedGetGranularityEnum = exports.BillingDashboardGraphsApi = exports.BillingDashboardGraphsApiFactory = exports.BillingDashboardGraphsApiFp = exports.BillingDashboardGraphsApiAxiosParamCreator = exports.AdminBillingUsageDetailsGetGranularityEnum = exports.AdminBillingPaymentTransactionsGetSortOrderEnum = exports.AdminBillingPaymentTransactionsGetSortByEnum = exports.AdminBillingOrdersGetSortOrderEnum = exports.AdminBillingOrdersGetSortByEnum = exports.AdminBillingInvoicesGetSortOrderEnum = exports.AdminBillingInvoicesGetSortByEnum = exports.AdminBillingCreditTransactionsGetSortOrderEnum = exports.AdminBillingCreditTransactionsGetSortByEnum = exports.AdminBillingCreditPurchasesGetSortOrderEnum = exports.AdminBillingCreditPurchasesGetSortByEnum = exports.AdminBillingCreditLedgerGetSortOrderEnum = exports.AdminBillingCreditLedgerGetSortByEnum = exports.BillingDashboardApi = exports.BillingDashboardApiFactory = exports.BillingDashboardApiFp = exports.BillingDashboardApiAxiosParamCreator = exports.AutomatedRefundManagementApi = exports.AutomatedRefundManagementApiFactory = exports.AutomatedRefundManagementApiFp = exports.AutomatedRefundManagementApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AnalyticsRulesApi = void 0;
|
|
28
|
+
exports.MenuRouteMetricsApiFactory = exports.MenuRouteMetricsApiFp = exports.MenuRouteMetricsApiAxiosParamCreator = exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetGroupByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.FeatureLimitsAdminApi = exports.FeatureLimitsAdminApiFactory = exports.FeatureLimitsAdminApiFp = exports.FeatureLimitsAdminApiAxiosParamCreator = exports.FeatureLimitsApi = exports.FeatureLimitsApiFactory = exports.FeatureLimitsApiFp = exports.FeatureLimitsApiAxiosParamCreator = exports.ExternalAPINotificationsApi = exports.ExternalAPINotificationsApiFactory = exports.ExternalAPINotificationsApiFp = exports.ExternalAPINotificationsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.CreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = void 0;
|
|
29
|
+
exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.V1NotificationsGetSortOrderEnum = exports.V1NotificationsGetSortByEnum = exports.V1NotificationsGetPriorityEnum = exports.V1NotificationsGetIsReadEnum = exports.V1NotificationsGetTypeEnum = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.NotificationPreferencesApi = exports.NotificationPreferencesApiFactory = exports.NotificationPreferencesApiFp = exports.NotificationPreferencesApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = exports.MenuRouteMetricsAdminApi = exports.MenuRouteMetricsAdminApiFactory = exports.MenuRouteMetricsAdminApiFp = exports.MenuRouteMetricsAdminApiAxiosParamCreator = exports.MenuRouteMetricGetFormnameEnum = exports.MenuRouteMetricGetRouteEnum = exports.MenuRouteMetricsApi = void 0;
|
|
30
|
+
exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = void 0;
|
|
31
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TeamApi = exports.TeamApiFactory = exports.TeamApiFp = exports.TeamApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -220,6 +220,11 @@ exports.DataTypesStoreAccessRequestAccessLevelEnum = {
|
|
|
220
220
|
Write: 'write',
|
|
221
221
|
Admin: 'admin'
|
|
222
222
|
};
|
|
223
|
+
exports.DataTypesStoreLevelMenuRightAccessLevelEnum = {
|
|
224
|
+
Read: 'read',
|
|
225
|
+
Write: 'write',
|
|
226
|
+
Admin: 'admin'
|
|
227
|
+
};
|
|
223
228
|
exports.DataTypesUpdateMemberRoleRequestMemberRoleEnum = {
|
|
224
229
|
Owner: 'owner',
|
|
225
230
|
Admin: 'admin',
|
|
@@ -29201,6 +29206,33 @@ exports.RoleRightsApi = RoleRightsApi;
|
|
|
29201
29206
|
*/
|
|
29202
29207
|
const RolesApiAxiosParamCreator = function (configuration) {
|
|
29203
29208
|
return {
|
|
29209
|
+
/**
|
|
29210
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
29211
|
+
* @summary Fetches list of all roles
|
|
29212
|
+
* @param {*} [options] Override http request option.
|
|
29213
|
+
* @throws {RequiredError}
|
|
29214
|
+
*/
|
|
29215
|
+
adminRolesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
29216
|
+
const localVarPath = `/admin/roles`;
|
|
29217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29218
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29219
|
+
let baseOptions;
|
|
29220
|
+
if (configuration) {
|
|
29221
|
+
baseOptions = configuration.baseOptions;
|
|
29222
|
+
}
|
|
29223
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
29224
|
+
const localVarHeaderParameter = {};
|
|
29225
|
+
const localVarQueryParameter = {};
|
|
29226
|
+
// authentication BearerAuth required
|
|
29227
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
29228
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
29229
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29230
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29231
|
+
return {
|
|
29232
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
29233
|
+
options: localVarRequestOptions,
|
|
29234
|
+
};
|
|
29235
|
+
}),
|
|
29204
29236
|
/**
|
|
29205
29237
|
* Deletes a role from the system by ID.
|
|
29206
29238
|
* @summary Delete a role
|
|
@@ -29269,51 +29301,48 @@ const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
29269
29301
|
};
|
|
29270
29302
|
}),
|
|
29271
29303
|
/**
|
|
29272
|
-
*
|
|
29273
|
-
* @summary
|
|
29274
|
-
* @param {
|
|
29304
|
+
* Adds a new role to the system
|
|
29305
|
+
* @summary Creates a new role
|
|
29306
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29275
29307
|
* @param {*} [options] Override http request option.
|
|
29276
29308
|
* @throws {RequiredError}
|
|
29277
29309
|
*/
|
|
29278
|
-
|
|
29279
|
-
// verify required parameter '
|
|
29280
|
-
(0, common_1.assertParamExists)('
|
|
29281
|
-
const localVarPath = `/admin/roles
|
|
29282
|
-
.replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)));
|
|
29310
|
+
adminRolesPost: (dataTypesCreateRoleRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRoleRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRoleRequestDto, options = {}) {
|
|
29311
|
+
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
29312
|
+
(0, common_1.assertParamExists)('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto);
|
|
29313
|
+
const localVarPath = `/admin/roles`;
|
|
29283
29314
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29284
29315
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29285
29316
|
let baseOptions;
|
|
29286
29317
|
if (configuration) {
|
|
29287
29318
|
baseOptions = configuration.baseOptions;
|
|
29288
29319
|
}
|
|
29289
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
29320
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
29290
29321
|
const localVarHeaderParameter = {};
|
|
29291
29322
|
const localVarQueryParameter = {};
|
|
29292
29323
|
// authentication BearerAuth required
|
|
29293
29324
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
29325
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29294
29326
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
29295
29327
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29296
29328
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29329
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration);
|
|
29297
29330
|
return {
|
|
29298
29331
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
29299
29332
|
options: localVarRequestOptions,
|
|
29300
29333
|
};
|
|
29301
29334
|
}),
|
|
29302
29335
|
/**
|
|
29303
|
-
* Fetches role by id
|
|
29336
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
29304
29337
|
* @summary Fetches role by id
|
|
29305
|
-
* @param {number} orgId Org ID
|
|
29306
29338
|
* @param {number} roleId RoleId ID
|
|
29307
29339
|
* @param {*} [options] Override http request option.
|
|
29308
29340
|
* @throws {RequiredError}
|
|
29309
29341
|
*/
|
|
29310
|
-
|
|
29311
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
29312
|
-
(0, common_1.assertParamExists)('adminRolesOrgIdRoleIdGet', 'orgId', orgId);
|
|
29342
|
+
adminRolesRoleIdGet: (roleId_1, ...args_1) => __awaiter(this, [roleId_1, ...args_1], void 0, function* (roleId, options = {}) {
|
|
29313
29343
|
// verify required parameter 'roleId' is not null or undefined
|
|
29314
|
-
(0, common_1.assertParamExists)('
|
|
29315
|
-
const localVarPath = `/admin/roles/{
|
|
29316
|
-
.replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)))
|
|
29344
|
+
(0, common_1.assertParamExists)('adminRolesRoleIdGet', 'roleId', roleId);
|
|
29345
|
+
const localVarPath = `/admin/roles/{RoleId}`
|
|
29317
29346
|
.replace(`{${"RoleId"}}`, encodeURIComponent(String(roleId)));
|
|
29318
29347
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29319
29348
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -29334,38 +29363,6 @@ const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
29334
29363
|
options: localVarRequestOptions,
|
|
29335
29364
|
};
|
|
29336
29365
|
}),
|
|
29337
|
-
/**
|
|
29338
|
-
* Adds a new role to the system
|
|
29339
|
-
* @summary Creates a new role
|
|
29340
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29341
|
-
* @param {*} [options] Override http request option.
|
|
29342
|
-
* @throws {RequiredError}
|
|
29343
|
-
*/
|
|
29344
|
-
adminRolesPost: (dataTypesCreateRoleRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRoleRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRoleRequestDto, options = {}) {
|
|
29345
|
-
// verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
|
|
29346
|
-
(0, common_1.assertParamExists)('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto);
|
|
29347
|
-
const localVarPath = `/admin/roles`;
|
|
29348
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29349
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29350
|
-
let baseOptions;
|
|
29351
|
-
if (configuration) {
|
|
29352
|
-
baseOptions = configuration.baseOptions;
|
|
29353
|
-
}
|
|
29354
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
29355
|
-
const localVarHeaderParameter = {};
|
|
29356
|
-
const localVarQueryParameter = {};
|
|
29357
|
-
// authentication BearerAuth required
|
|
29358
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
29359
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29360
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
29361
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29362
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29363
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration);
|
|
29364
|
-
return {
|
|
29365
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
29366
|
-
options: localVarRequestOptions,
|
|
29367
|
-
};
|
|
29368
|
-
}),
|
|
29369
29366
|
/**
|
|
29370
29367
|
* Retrieves role permissions separated by org-level and store-level menus/routes
|
|
29371
29368
|
* @summary Get role permissions with org-level and store-level separation
|
|
@@ -29443,6 +29440,21 @@ exports.RolesApiAxiosParamCreator = RolesApiAxiosParamCreator;
|
|
|
29443
29440
|
const RolesApiFp = function (configuration) {
|
|
29444
29441
|
const localVarAxiosParamCreator = (0, exports.RolesApiAxiosParamCreator)(configuration);
|
|
29445
29442
|
return {
|
|
29443
|
+
/**
|
|
29444
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
29445
|
+
* @summary Fetches list of all roles
|
|
29446
|
+
* @param {*} [options] Override http request option.
|
|
29447
|
+
* @throws {RequiredError}
|
|
29448
|
+
*/
|
|
29449
|
+
adminRolesGet(options) {
|
|
29450
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29451
|
+
var _a, _b, _c;
|
|
29452
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesGet(options);
|
|
29453
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29454
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RolesApi.adminRolesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29455
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29456
|
+
});
|
|
29457
|
+
},
|
|
29446
29458
|
/**
|
|
29447
29459
|
* Deletes a role from the system by ID.
|
|
29448
29460
|
* @summary Delete a role
|
|
@@ -29477,51 +29489,34 @@ const RolesApiFp = function (configuration) {
|
|
|
29477
29489
|
});
|
|
29478
29490
|
},
|
|
29479
29491
|
/**
|
|
29480
|
-
*
|
|
29481
|
-
* @summary
|
|
29482
|
-
* @param {
|
|
29492
|
+
* Adds a new role to the system
|
|
29493
|
+
* @summary Creates a new role
|
|
29494
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29483
29495
|
* @param {*} [options] Override http request option.
|
|
29484
29496
|
* @throws {RequiredError}
|
|
29485
29497
|
*/
|
|
29486
|
-
|
|
29498
|
+
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29487
29499
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29488
29500
|
var _a, _b, _c;
|
|
29489
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
29501
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
|
|
29490
29502
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29491
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RolesApi.
|
|
29503
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RolesApi.adminRolesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29492
29504
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29493
29505
|
});
|
|
29494
29506
|
},
|
|
29495
29507
|
/**
|
|
29496
|
-
* Fetches role by id
|
|
29508
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
29497
29509
|
* @summary Fetches role by id
|
|
29498
|
-
* @param {number} orgId Org ID
|
|
29499
29510
|
* @param {number} roleId RoleId ID
|
|
29500
29511
|
* @param {*} [options] Override http request option.
|
|
29501
29512
|
* @throws {RequiredError}
|
|
29502
29513
|
*/
|
|
29503
|
-
|
|
29514
|
+
adminRolesRoleIdGet(roleId, options) {
|
|
29504
29515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29505
29516
|
var _a, _b, _c;
|
|
29506
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
29517
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesRoleIdGet(roleId, options);
|
|
29507
29518
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29508
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RolesApi.
|
|
29509
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29510
|
-
});
|
|
29511
|
-
},
|
|
29512
|
-
/**
|
|
29513
|
-
* Adds a new role to the system
|
|
29514
|
-
* @summary Creates a new role
|
|
29515
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29516
|
-
* @param {*} [options] Override http request option.
|
|
29517
|
-
* @throws {RequiredError}
|
|
29518
|
-
*/
|
|
29519
|
-
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29520
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29521
|
-
var _a, _b, _c;
|
|
29522
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
|
|
29523
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29524
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RolesApi.adminRolesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29519
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RolesApi.adminRolesRoleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29525
29520
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29526
29521
|
});
|
|
29527
29522
|
},
|
|
@@ -29568,6 +29563,15 @@ exports.RolesApiFp = RolesApiFp;
|
|
|
29568
29563
|
const RolesApiFactory = function (configuration, basePath, axios) {
|
|
29569
29564
|
const localVarFp = (0, exports.RolesApiFp)(configuration);
|
|
29570
29565
|
return {
|
|
29566
|
+
/**
|
|
29567
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
29568
|
+
* @summary Fetches list of all roles
|
|
29569
|
+
* @param {*} [options] Override http request option.
|
|
29570
|
+
* @throws {RequiredError}
|
|
29571
|
+
*/
|
|
29572
|
+
adminRolesGet(options) {
|
|
29573
|
+
return localVarFp.adminRolesGet(options).then((request) => request(axios, basePath));
|
|
29574
|
+
},
|
|
29571
29575
|
/**
|
|
29572
29576
|
* Deletes a role from the system by ID.
|
|
29573
29577
|
* @summary Delete a role
|
|
@@ -29590,35 +29594,24 @@ const RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
29590
29594
|
return localVarFp.adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
29591
29595
|
},
|
|
29592
29596
|
/**
|
|
29593
|
-
*
|
|
29594
|
-
* @summary
|
|
29595
|
-
* @param {
|
|
29597
|
+
* Adds a new role to the system
|
|
29598
|
+
* @summary Creates a new role
|
|
29599
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29596
29600
|
* @param {*} [options] Override http request option.
|
|
29597
29601
|
* @throws {RequiredError}
|
|
29598
29602
|
*/
|
|
29599
|
-
|
|
29600
|
-
return localVarFp.
|
|
29603
|
+
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29604
|
+
return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
29601
29605
|
},
|
|
29602
29606
|
/**
|
|
29603
|
-
* Fetches role by id
|
|
29607
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
29604
29608
|
* @summary Fetches role by id
|
|
29605
|
-
* @param {number} orgId Org ID
|
|
29606
29609
|
* @param {number} roleId RoleId ID
|
|
29607
29610
|
* @param {*} [options] Override http request option.
|
|
29608
29611
|
* @throws {RequiredError}
|
|
29609
29612
|
*/
|
|
29610
|
-
|
|
29611
|
-
return localVarFp.
|
|
29612
|
-
},
|
|
29613
|
-
/**
|
|
29614
|
-
* Adds a new role to the system
|
|
29615
|
-
* @summary Creates a new role
|
|
29616
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29617
|
-
* @param {*} [options] Override http request option.
|
|
29618
|
-
* @throws {RequiredError}
|
|
29619
|
-
*/
|
|
29620
|
-
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29621
|
-
return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
|
|
29613
|
+
adminRolesRoleIdGet(roleId, options) {
|
|
29614
|
+
return localVarFp.adminRolesRoleIdGet(roleId, options).then((request) => request(axios, basePath));
|
|
29622
29615
|
},
|
|
29623
29616
|
/**
|
|
29624
29617
|
* Retrieves role permissions separated by org-level and store-level menus/routes
|
|
@@ -29651,6 +29644,16 @@ exports.RolesApiFactory = RolesApiFactory;
|
|
|
29651
29644
|
* @extends {BaseAPI}
|
|
29652
29645
|
*/
|
|
29653
29646
|
class RolesApi extends base_1.BaseAPI {
|
|
29647
|
+
/**
|
|
29648
|
+
* Fetches list of all roles for the authenticated user\'s organization
|
|
29649
|
+
* @summary Fetches list of all roles
|
|
29650
|
+
* @param {*} [options] Override http request option.
|
|
29651
|
+
* @throws {RequiredError}
|
|
29652
|
+
* @memberof RolesApi
|
|
29653
|
+
*/
|
|
29654
|
+
adminRolesGet(options) {
|
|
29655
|
+
return (0, exports.RolesApiFp)(this.configuration).adminRolesGet(options).then((request) => request(this.axios, this.basePath));
|
|
29656
|
+
}
|
|
29654
29657
|
/**
|
|
29655
29658
|
* Deletes a role from the system by ID.
|
|
29656
29659
|
* @summary Delete a role
|
|
@@ -29675,38 +29678,26 @@ class RolesApi extends base_1.BaseAPI {
|
|
|
29675
29678
|
return (0, exports.RolesApiFp)(this.configuration).adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
29676
29679
|
}
|
|
29677
29680
|
/**
|
|
29678
|
-
*
|
|
29679
|
-
* @summary
|
|
29680
|
-
* @param {
|
|
29681
|
+
* Adds a new role to the system
|
|
29682
|
+
* @summary Creates a new role
|
|
29683
|
+
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29681
29684
|
* @param {*} [options] Override http request option.
|
|
29682
29685
|
* @throws {RequiredError}
|
|
29683
29686
|
* @memberof RolesApi
|
|
29684
29687
|
*/
|
|
29685
|
-
|
|
29686
|
-
return (0, exports.RolesApiFp)(this.configuration).
|
|
29688
|
+
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29689
|
+
return (0, exports.RolesApiFp)(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
29687
29690
|
}
|
|
29688
29691
|
/**
|
|
29689
|
-
* Fetches role by id
|
|
29692
|
+
* Fetches role by id for the authenticated user\'s organization
|
|
29690
29693
|
* @summary Fetches role by id
|
|
29691
|
-
* @param {number} orgId Org ID
|
|
29692
29694
|
* @param {number} roleId RoleId ID
|
|
29693
29695
|
* @param {*} [options] Override http request option.
|
|
29694
29696
|
* @throws {RequiredError}
|
|
29695
29697
|
* @memberof RolesApi
|
|
29696
29698
|
*/
|
|
29697
|
-
|
|
29698
|
-
return (0, exports.RolesApiFp)(this.configuration).
|
|
29699
|
-
}
|
|
29700
|
-
/**
|
|
29701
|
-
* Adds a new role to the system
|
|
29702
|
-
* @summary Creates a new role
|
|
29703
|
-
* @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
|
|
29704
|
-
* @param {*} [options] Override http request option.
|
|
29705
|
-
* @throws {RequiredError}
|
|
29706
|
-
* @memberof RolesApi
|
|
29707
|
-
*/
|
|
29708
|
-
adminRolesPost(dataTypesCreateRoleRequestDto, options) {
|
|
29709
|
-
return (0, exports.RolesApiFp)(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
29699
|
+
adminRolesRoleIdGet(roleId, options) {
|
|
29700
|
+
return (0, exports.RolesApiFp)(this.configuration).adminRolesRoleIdGet(roleId, options).then((request) => request(this.axios, this.basePath));
|
|
29710
29701
|
}
|
|
29711
29702
|
/**
|
|
29712
29703
|
* Retrieves role permissions separated by org-level and store-level menus/routes
|