@seekora-ai/admin-api 1.1.29 → 1.1.30

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/dist/api.d.ts CHANGED
@@ -15735,6 +15735,12 @@ export interface DataTypesOnboardingStatus {
15735
15735
  * @memberof DataTypesOnboardingStatus
15736
15736
  */
15737
15737
  'missing_components'?: Array<string>;
15738
+ /**
15739
+ * Step in create store flow to redirect to
15740
+ * @type {string}
15741
+ * @memberof DataTypesOnboardingStatus
15742
+ */
15743
+ 'redirect_to_step'?: string;
15738
15744
  }
15739
15745
  /**
15740
15746
  *
@@ -40045,6 +40051,13 @@ export declare class RoleRightsApi extends BaseAPI {
40045
40051
  * @export
40046
40052
  */
40047
40053
  export declare const RolesApiAxiosParamCreator: (configuration?: Configuration) => {
40054
+ /**
40055
+ * Fetches list of all roles for the authenticated user\'s organization
40056
+ * @summary Fetches list of all roles
40057
+ * @param {*} [options] Override http request option.
40058
+ * @throws {RequiredError}
40059
+ */
40060
+ adminRolesGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40048
40061
  /**
40049
40062
  * Deletes a role from the system by ID.
40050
40063
  * @summary Delete a role
@@ -40063,30 +40076,21 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
40063
40076
  */
40064
40077
  adminRolesIdPut: (id: number, dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40065
40078
  /**
40066
- * Fetches list of all roles
40067
- * @summary Fetches list of all roles
40068
- * @param {number} orgId Org ID
40079
+ * Adds a new role to the system
40080
+ * @summary Creates a new role
40081
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
40069
40082
  * @param {*} [options] Override http request option.
40070
40083
  * @throws {RequiredError}
40071
40084
  */
40072
- adminRolesOrgIdGet: (orgId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40085
+ adminRolesPost: (dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40073
40086
  /**
40074
- * Fetches role by id
40087
+ * Fetches role by id for the authenticated user\'s organization
40075
40088
  * @summary Fetches role by id
40076
- * @param {number} orgId Org ID
40077
40089
  * @param {number} roleId RoleId ID
40078
40090
  * @param {*} [options] Override http request option.
40079
40091
  * @throws {RequiredError}
40080
40092
  */
40081
- adminRolesOrgIdRoleIdGet: (orgId: number, roleId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40082
- /**
40083
- * Adds a new role to the system
40084
- * @summary Creates a new role
40085
- * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
40086
- * @param {*} [options] Override http request option.
40087
- * @throws {RequiredError}
40088
- */
40089
- adminRolesPost: (dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40093
+ adminRolesRoleIdGet: (roleId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40090
40094
  /**
40091
40095
  * Retrieves role permissions separated by org-level and store-level menus/routes
40092
40096
  * @summary Get role permissions with org-level and store-level separation
@@ -40110,6 +40114,13 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
40110
40114
  * @export
40111
40115
  */
40112
40116
  export declare const RolesApiFp: (configuration?: Configuration) => {
40117
+ /**
40118
+ * Fetches list of all roles for the authenticated user\'s organization
40119
+ * @summary Fetches list of all roles
40120
+ * @param {*} [options] Override http request option.
40121
+ * @throws {RequiredError}
40122
+ */
40123
+ adminRolesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRolesListResponse>>;
40113
40124
  /**
40114
40125
  * Deletes a role from the system by ID.
40115
40126
  * @summary Delete a role
@@ -40128,30 +40139,21 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
40128
40139
  */
40129
40140
  adminRolesIdPut(id: number, dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
40130
40141
  /**
40131
- * Fetches list of all roles
40132
- * @summary Fetches list of all roles
40133
- * @param {number} orgId Org ID
40142
+ * Adds a new role to the system
40143
+ * @summary Creates a new role
40144
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
40134
40145
  * @param {*} [options] Override http request option.
40135
40146
  * @throws {RequiredError}
40136
40147
  */
40137
- adminRolesOrgIdGet(orgId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRolesListResponse>>;
40148
+ adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
40138
40149
  /**
40139
- * Fetches role by id
40150
+ * Fetches role by id for the authenticated user\'s organization
40140
40151
  * @summary Fetches role by id
40141
- * @param {number} orgId Org ID
40142
40152
  * @param {number} roleId RoleId ID
40143
40153
  * @param {*} [options] Override http request option.
40144
40154
  * @throws {RequiredError}
40145
40155
  */
40146
- adminRolesOrgIdRoleIdGet(orgId: number, roleId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRoleResponse>>;
40147
- /**
40148
- * Adds a new role to the system
40149
- * @summary Creates a new role
40150
- * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
40151
- * @param {*} [options] Override http request option.
40152
- * @throws {RequiredError}
40153
- */
40154
- adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
40156
+ adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesRoleResponse>>;
40155
40157
  /**
40156
40158
  * Retrieves role permissions separated by org-level and store-level menus/routes
40157
40159
  * @summary Get role permissions with org-level and store-level separation
@@ -40175,6 +40177,13 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
40175
40177
  * @export
40176
40178
  */
40177
40179
  export declare const RolesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
40180
+ /**
40181
+ * Fetches list of all roles for the authenticated user\'s organization
40182
+ * @summary Fetches list of all roles
40183
+ * @param {*} [options] Override http request option.
40184
+ * @throws {RequiredError}
40185
+ */
40186
+ adminRolesGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRolesListResponse>;
40178
40187
  /**
40179
40188
  * Deletes a role from the system by ID.
40180
40189
  * @summary Delete a role
@@ -40193,30 +40202,21 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
40193
40202
  */
40194
40203
  adminRolesIdPut(id: number, dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
40195
40204
  /**
40196
- * Fetches list of all roles
40197
- * @summary Fetches list of all roles
40198
- * @param {number} orgId Org ID
40205
+ * Adds a new role to the system
40206
+ * @summary Creates a new role
40207
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
40199
40208
  * @param {*} [options] Override http request option.
40200
40209
  * @throws {RequiredError}
40201
40210
  */
40202
- adminRolesOrgIdGet(orgId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRolesListResponse>;
40211
+ adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
40203
40212
  /**
40204
- * Fetches role by id
40213
+ * Fetches role by id for the authenticated user\'s organization
40205
40214
  * @summary Fetches role by id
40206
- * @param {number} orgId Org ID
40207
40215
  * @param {number} roleId RoleId ID
40208
40216
  * @param {*} [options] Override http request option.
40209
40217
  * @throws {RequiredError}
40210
40218
  */
40211
- adminRolesOrgIdRoleIdGet(orgId: number, roleId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRoleResponse>;
40212
- /**
40213
- * Adds a new role to the system
40214
- * @summary Creates a new role
40215
- * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
40216
- * @param {*} [options] Override http request option.
40217
- * @throws {RequiredError}
40218
- */
40219
- adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
40219
+ adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesRoleResponse>;
40220
40220
  /**
40221
40221
  * Retrieves role permissions separated by org-level and store-level menus/routes
40222
40222
  * @summary Get role permissions with org-level and store-level separation
@@ -40242,6 +40242,14 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
40242
40242
  * @extends {BaseAPI}
40243
40243
  */
40244
40244
  export declare class RolesApi extends BaseAPI {
40245
+ /**
40246
+ * Fetches list of all roles for the authenticated user\'s organization
40247
+ * @summary Fetches list of all roles
40248
+ * @param {*} [options] Override http request option.
40249
+ * @throws {RequiredError}
40250
+ * @memberof RolesApi
40251
+ */
40252
+ adminRolesGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesRolesListResponse, any, {}>>;
40245
40253
  /**
40246
40254
  * Deletes a role from the system by ID.
40247
40255
  * @summary Delete a role
@@ -40262,33 +40270,23 @@ export declare class RolesApi extends BaseAPI {
40262
40270
  */
40263
40271
  adminRolesIdPut(id: number, dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
40264
40272
  /**
40265
- * Fetches list of all roles
40266
- * @summary Fetches list of all roles
40267
- * @param {number} orgId Org ID
40273
+ * Adds a new role to the system
40274
+ * @summary Creates a new role
40275
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
40268
40276
  * @param {*} [options] Override http request option.
40269
40277
  * @throws {RequiredError}
40270
40278
  * @memberof RolesApi
40271
40279
  */
40272
- adminRolesOrgIdGet(orgId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesRolesListResponse, any, {}>>;
40280
+ adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
40273
40281
  /**
40274
- * Fetches role by id
40282
+ * Fetches role by id for the authenticated user\'s organization
40275
40283
  * @summary Fetches role by id
40276
- * @param {number} orgId Org ID
40277
40284
  * @param {number} roleId RoleId ID
40278
40285
  * @param {*} [options] Override http request option.
40279
40286
  * @throws {RequiredError}
40280
40287
  * @memberof RolesApi
40281
40288
  */
40282
- adminRolesOrgIdRoleIdGet(orgId: number, roleId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesRoleResponse, any, {}>>;
40283
- /**
40284
- * Adds a new role to the system
40285
- * @summary Creates a new role
40286
- * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
40287
- * @param {*} [options] Override http request option.
40288
- * @throws {RequiredError}
40289
- * @memberof RolesApi
40290
- */
40291
- adminRolesPost(dataTypesCreateRoleRequestDto: DataTypesCreateRoleRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
40289
+ adminRolesRoleIdGet(roleId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesRoleResponse, any, {}>>;
40292
40290
  /**
40293
40291
  * Retrieves role permissions separated by org-level and store-level menus/routes
40294
40292
  * @summary Get role permissions with org-level and store-level separation
package/dist/api.js CHANGED
@@ -29201,6 +29201,33 @@ exports.RoleRightsApi = RoleRightsApi;
29201
29201
  */
29202
29202
  const RolesApiAxiosParamCreator = function (configuration) {
29203
29203
  return {
29204
+ /**
29205
+ * Fetches list of all roles for the authenticated user\'s organization
29206
+ * @summary Fetches list of all roles
29207
+ * @param {*} [options] Override http request option.
29208
+ * @throws {RequiredError}
29209
+ */
29210
+ adminRolesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
29211
+ const localVarPath = `/admin/roles`;
29212
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29213
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
29214
+ let baseOptions;
29215
+ if (configuration) {
29216
+ baseOptions = configuration.baseOptions;
29217
+ }
29218
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
29219
+ const localVarHeaderParameter = {};
29220
+ const localVarQueryParameter = {};
29221
+ // authentication BearerAuth required
29222
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
29223
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
29224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29225
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29226
+ return {
29227
+ url: (0, common_1.toPathString)(localVarUrlObj),
29228
+ options: localVarRequestOptions,
29229
+ };
29230
+ }),
29204
29231
  /**
29205
29232
  * Deletes a role from the system by ID.
29206
29233
  * @summary Delete a role
@@ -29269,51 +29296,48 @@ const RolesApiAxiosParamCreator = function (configuration) {
29269
29296
  };
29270
29297
  }),
29271
29298
  /**
29272
- * Fetches list of all roles
29273
- * @summary Fetches list of all roles
29274
- * @param {number} orgId Org ID
29299
+ * Adds a new role to the system
29300
+ * @summary Creates a new role
29301
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29275
29302
  * @param {*} [options] Override http request option.
29276
29303
  * @throws {RequiredError}
29277
29304
  */
29278
- adminRolesOrgIdGet: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
29279
- // verify required parameter 'orgId' is not null or undefined
29280
- (0, common_1.assertParamExists)('adminRolesOrgIdGet', 'orgId', orgId);
29281
- const localVarPath = `/admin/roles/{OrgId}`
29282
- .replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)));
29305
+ adminRolesPost: (dataTypesCreateRoleRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRoleRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRoleRequestDto, options = {}) {
29306
+ // verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
29307
+ (0, common_1.assertParamExists)('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto);
29308
+ const localVarPath = `/admin/roles`;
29283
29309
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29284
29310
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
29285
29311
  let baseOptions;
29286
29312
  if (configuration) {
29287
29313
  baseOptions = configuration.baseOptions;
29288
29314
  }
29289
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
29315
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
29290
29316
  const localVarHeaderParameter = {};
29291
29317
  const localVarQueryParameter = {};
29292
29318
  // authentication BearerAuth required
29293
29319
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
29320
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29294
29321
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
29295
29322
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29296
29323
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29324
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration);
29297
29325
  return {
29298
29326
  url: (0, common_1.toPathString)(localVarUrlObj),
29299
29327
  options: localVarRequestOptions,
29300
29328
  };
29301
29329
  }),
29302
29330
  /**
29303
- * Fetches role by id
29331
+ * Fetches role by id for the authenticated user\'s organization
29304
29332
  * @summary Fetches role by id
29305
- * @param {number} orgId Org ID
29306
29333
  * @param {number} roleId RoleId ID
29307
29334
  * @param {*} [options] Override http request option.
29308
29335
  * @throws {RequiredError}
29309
29336
  */
29310
- adminRolesOrgIdRoleIdGet: (orgId_1, roleId_1, ...args_1) => __awaiter(this, [orgId_1, roleId_1, ...args_1], void 0, function* (orgId, roleId, options = {}) {
29311
- // verify required parameter 'orgId' is not null or undefined
29312
- (0, common_1.assertParamExists)('adminRolesOrgIdRoleIdGet', 'orgId', orgId);
29337
+ adminRolesRoleIdGet: (roleId_1, ...args_1) => __awaiter(this, [roleId_1, ...args_1], void 0, function* (roleId, options = {}) {
29313
29338
  // verify required parameter 'roleId' is not null or undefined
29314
- (0, common_1.assertParamExists)('adminRolesOrgIdRoleIdGet', 'roleId', roleId);
29315
- const localVarPath = `/admin/roles/{OrgId}/{RoleId}`
29316
- .replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)))
29339
+ (0, common_1.assertParamExists)('adminRolesRoleIdGet', 'roleId', roleId);
29340
+ const localVarPath = `/admin/roles/{RoleId}`
29317
29341
  .replace(`{${"RoleId"}}`, encodeURIComponent(String(roleId)));
29318
29342
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29319
29343
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -29334,38 +29358,6 @@ const RolesApiAxiosParamCreator = function (configuration) {
29334
29358
  options: localVarRequestOptions,
29335
29359
  };
29336
29360
  }),
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
29361
  /**
29370
29362
  * Retrieves role permissions separated by org-level and store-level menus/routes
29371
29363
  * @summary Get role permissions with org-level and store-level separation
@@ -29443,6 +29435,21 @@ exports.RolesApiAxiosParamCreator = RolesApiAxiosParamCreator;
29443
29435
  const RolesApiFp = function (configuration) {
29444
29436
  const localVarAxiosParamCreator = (0, exports.RolesApiAxiosParamCreator)(configuration);
29445
29437
  return {
29438
+ /**
29439
+ * Fetches list of all roles for the authenticated user\'s organization
29440
+ * @summary Fetches list of all roles
29441
+ * @param {*} [options] Override http request option.
29442
+ * @throws {RequiredError}
29443
+ */
29444
+ adminRolesGet(options) {
29445
+ return __awaiter(this, void 0, void 0, function* () {
29446
+ var _a, _b, _c;
29447
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesGet(options);
29448
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29449
+ 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;
29450
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29451
+ });
29452
+ },
29446
29453
  /**
29447
29454
  * Deletes a role from the system by ID.
29448
29455
  * @summary Delete a role
@@ -29477,51 +29484,34 @@ const RolesApiFp = function (configuration) {
29477
29484
  });
29478
29485
  },
29479
29486
  /**
29480
- * Fetches list of all roles
29481
- * @summary Fetches list of all roles
29482
- * @param {number} orgId Org ID
29487
+ * Adds a new role to the system
29488
+ * @summary Creates a new role
29489
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29483
29490
  * @param {*} [options] Override http request option.
29484
29491
  * @throws {RequiredError}
29485
29492
  */
29486
- adminRolesOrgIdGet(orgId, options) {
29493
+ adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29487
29494
  return __awaiter(this, void 0, void 0, function* () {
29488
29495
  var _a, _b, _c;
29489
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesOrgIdGet(orgId, options);
29496
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
29490
29497
  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.adminRolesOrgIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29498
+ 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
29499
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29493
29500
  });
29494
29501
  },
29495
29502
  /**
29496
- * Fetches role by id
29503
+ * Fetches role by id for the authenticated user\'s organization
29497
29504
  * @summary Fetches role by id
29498
- * @param {number} orgId Org ID
29499
29505
  * @param {number} roleId RoleId ID
29500
29506
  * @param {*} [options] Override http request option.
29501
29507
  * @throws {RequiredError}
29502
29508
  */
29503
- adminRolesOrgIdRoleIdGet(orgId, roleId, options) {
29504
- return __awaiter(this, void 0, void 0, function* () {
29505
- var _a, _b, _c;
29506
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesOrgIdRoleIdGet(orgId, roleId, options);
29507
- 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.adminRolesOrgIdRoleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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) {
29509
+ adminRolesRoleIdGet(roleId, options) {
29520
29510
  return __awaiter(this, void 0, void 0, function* () {
29521
29511
  var _a, _b, _c;
29522
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
29512
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesRoleIdGet(roleId, options);
29523
29513
  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;
29514
+ 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
29515
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29526
29516
  });
29527
29517
  },
@@ -29568,6 +29558,15 @@ exports.RolesApiFp = RolesApiFp;
29568
29558
  const RolesApiFactory = function (configuration, basePath, axios) {
29569
29559
  const localVarFp = (0, exports.RolesApiFp)(configuration);
29570
29560
  return {
29561
+ /**
29562
+ * Fetches list of all roles for the authenticated user\'s organization
29563
+ * @summary Fetches list of all roles
29564
+ * @param {*} [options] Override http request option.
29565
+ * @throws {RequiredError}
29566
+ */
29567
+ adminRolesGet(options) {
29568
+ return localVarFp.adminRolesGet(options).then((request) => request(axios, basePath));
29569
+ },
29571
29570
  /**
29572
29571
  * Deletes a role from the system by ID.
29573
29572
  * @summary Delete a role
@@ -29590,35 +29589,24 @@ const RolesApiFactory = function (configuration, basePath, axios) {
29590
29589
  return localVarFp.adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
29591
29590
  },
29592
29591
  /**
29593
- * Fetches list of all roles
29594
- * @summary Fetches list of all roles
29595
- * @param {number} orgId Org ID
29592
+ * Adds a new role to the system
29593
+ * @summary Creates a new role
29594
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29596
29595
  * @param {*} [options] Override http request option.
29597
29596
  * @throws {RequiredError}
29598
29597
  */
29599
- adminRolesOrgIdGet(orgId, options) {
29600
- return localVarFp.adminRolesOrgIdGet(orgId, options).then((request) => request(axios, basePath));
29598
+ adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29599
+ return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
29601
29600
  },
29602
29601
  /**
29603
- * Fetches role by id
29602
+ * Fetches role by id for the authenticated user\'s organization
29604
29603
  * @summary Fetches role by id
29605
- * @param {number} orgId Org ID
29606
29604
  * @param {number} roleId RoleId ID
29607
29605
  * @param {*} [options] Override http request option.
29608
29606
  * @throws {RequiredError}
29609
29607
  */
29610
- adminRolesOrgIdRoleIdGet(orgId, roleId, options) {
29611
- return localVarFp.adminRolesOrgIdRoleIdGet(orgId, roleId, options).then((request) => request(axios, basePath));
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));
29608
+ adminRolesRoleIdGet(roleId, options) {
29609
+ return localVarFp.adminRolesRoleIdGet(roleId, options).then((request) => request(axios, basePath));
29622
29610
  },
29623
29611
  /**
29624
29612
  * Retrieves role permissions separated by org-level and store-level menus/routes
@@ -29651,6 +29639,16 @@ exports.RolesApiFactory = RolesApiFactory;
29651
29639
  * @extends {BaseAPI}
29652
29640
  */
29653
29641
  class RolesApi extends base_1.BaseAPI {
29642
+ /**
29643
+ * Fetches list of all roles for the authenticated user\'s organization
29644
+ * @summary Fetches list of all roles
29645
+ * @param {*} [options] Override http request option.
29646
+ * @throws {RequiredError}
29647
+ * @memberof RolesApi
29648
+ */
29649
+ adminRolesGet(options) {
29650
+ return (0, exports.RolesApiFp)(this.configuration).adminRolesGet(options).then((request) => request(this.axios, this.basePath));
29651
+ }
29654
29652
  /**
29655
29653
  * Deletes a role from the system by ID.
29656
29654
  * @summary Delete a role
@@ -29675,38 +29673,26 @@ class RolesApi extends base_1.BaseAPI {
29675
29673
  return (0, exports.RolesApiFp)(this.configuration).adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
29676
29674
  }
29677
29675
  /**
29678
- * Fetches list of all roles
29679
- * @summary Fetches list of all roles
29680
- * @param {number} orgId Org ID
29676
+ * Adds a new role to the system
29677
+ * @summary Creates a new role
29678
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29681
29679
  * @param {*} [options] Override http request option.
29682
29680
  * @throws {RequiredError}
29683
29681
  * @memberof RolesApi
29684
29682
  */
29685
- adminRolesOrgIdGet(orgId, options) {
29686
- return (0, exports.RolesApiFp)(this.configuration).adminRolesOrgIdGet(orgId, options).then((request) => request(this.axios, this.basePath));
29683
+ adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29684
+ return (0, exports.RolesApiFp)(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
29687
29685
  }
29688
29686
  /**
29689
- * Fetches role by id
29687
+ * Fetches role by id for the authenticated user\'s organization
29690
29688
  * @summary Fetches role by id
29691
- * @param {number} orgId Org ID
29692
29689
  * @param {number} roleId RoleId ID
29693
29690
  * @param {*} [options] Override http request option.
29694
29691
  * @throws {RequiredError}
29695
29692
  * @memberof RolesApi
29696
29693
  */
29697
- adminRolesOrgIdRoleIdGet(orgId, roleId, options) {
29698
- return (0, exports.RolesApiFp)(this.configuration).adminRolesOrgIdRoleIdGet(orgId, roleId, options).then((request) => request(this.axios, this.basePath));
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));
29694
+ adminRolesRoleIdGet(roleId, options) {
29695
+ return (0, exports.RolesApiFp)(this.configuration).adminRolesRoleIdGet(roleId, options).then((request) => request(this.axios, this.basePath));
29710
29696
  }
29711
29697
  /**
29712
29698
  * Retrieves role permissions separated by org-level and store-level menus/routes