@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/esm/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/esm/api.js CHANGED
@@ -29016,6 +29016,33 @@ export class RoleRightsApi extends BaseAPI {
29016
29016
  */
29017
29017
  export const RolesApiAxiosParamCreator = function (configuration) {
29018
29018
  return {
29019
+ /**
29020
+ * Fetches list of all roles for the authenticated user\'s organization
29021
+ * @summary Fetches list of all roles
29022
+ * @param {*} [options] Override http request option.
29023
+ * @throws {RequiredError}
29024
+ */
29025
+ adminRolesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
29026
+ const localVarPath = `/admin/roles`;
29027
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29028
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29029
+ let baseOptions;
29030
+ if (configuration) {
29031
+ baseOptions = configuration.baseOptions;
29032
+ }
29033
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
29034
+ const localVarHeaderParameter = {};
29035
+ const localVarQueryParameter = {};
29036
+ // authentication BearerAuth required
29037
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
29038
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29039
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29040
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29041
+ return {
29042
+ url: toPathString(localVarUrlObj),
29043
+ options: localVarRequestOptions,
29044
+ };
29045
+ }),
29019
29046
  /**
29020
29047
  * Deletes a role from the system by ID.
29021
29048
  * @summary Delete a role
@@ -29084,51 +29111,48 @@ export const RolesApiAxiosParamCreator = function (configuration) {
29084
29111
  };
29085
29112
  }),
29086
29113
  /**
29087
- * Fetches list of all roles
29088
- * @summary Fetches list of all roles
29089
- * @param {number} orgId Org ID
29114
+ * Adds a new role to the system
29115
+ * @summary Creates a new role
29116
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29090
29117
  * @param {*} [options] Override http request option.
29091
29118
  * @throws {RequiredError}
29092
29119
  */
29093
- adminRolesOrgIdGet: (orgId_1, ...args_1) => __awaiter(this, [orgId_1, ...args_1], void 0, function* (orgId, options = {}) {
29094
- // verify required parameter 'orgId' is not null or undefined
29095
- assertParamExists('adminRolesOrgIdGet', 'orgId', orgId);
29096
- const localVarPath = `/admin/roles/{OrgId}`
29097
- .replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)));
29120
+ adminRolesPost: (dataTypesCreateRoleRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRoleRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRoleRequestDto, options = {}) {
29121
+ // verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
29122
+ assertParamExists('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto);
29123
+ const localVarPath = `/admin/roles`;
29098
29124
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29099
29125
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29100
29126
  let baseOptions;
29101
29127
  if (configuration) {
29102
29128
  baseOptions = configuration.baseOptions;
29103
29129
  }
29104
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
29130
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
29105
29131
  const localVarHeaderParameter = {};
29106
29132
  const localVarQueryParameter = {};
29107
29133
  // authentication BearerAuth required
29108
29134
  yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
29135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29109
29136
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29110
29137
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29111
29138
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29139
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration);
29112
29140
  return {
29113
29141
  url: toPathString(localVarUrlObj),
29114
29142
  options: localVarRequestOptions,
29115
29143
  };
29116
29144
  }),
29117
29145
  /**
29118
- * Fetches role by id
29146
+ * Fetches role by id for the authenticated user\'s organization
29119
29147
  * @summary Fetches role by id
29120
- * @param {number} orgId Org ID
29121
29148
  * @param {number} roleId RoleId ID
29122
29149
  * @param {*} [options] Override http request option.
29123
29150
  * @throws {RequiredError}
29124
29151
  */
29125
- adminRolesOrgIdRoleIdGet: (orgId_1, roleId_1, ...args_1) => __awaiter(this, [orgId_1, roleId_1, ...args_1], void 0, function* (orgId, roleId, options = {}) {
29126
- // verify required parameter 'orgId' is not null or undefined
29127
- assertParamExists('adminRolesOrgIdRoleIdGet', 'orgId', orgId);
29152
+ adminRolesRoleIdGet: (roleId_1, ...args_1) => __awaiter(this, [roleId_1, ...args_1], void 0, function* (roleId, options = {}) {
29128
29153
  // verify required parameter 'roleId' is not null or undefined
29129
- assertParamExists('adminRolesOrgIdRoleIdGet', 'roleId', roleId);
29130
- const localVarPath = `/admin/roles/{OrgId}/{RoleId}`
29131
- .replace(`{${"OrgId"}}`, encodeURIComponent(String(orgId)))
29154
+ assertParamExists('adminRolesRoleIdGet', 'roleId', roleId);
29155
+ const localVarPath = `/admin/roles/{RoleId}`
29132
29156
  .replace(`{${"RoleId"}}`, encodeURIComponent(String(roleId)));
29133
29157
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
29134
29158
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -29149,38 +29173,6 @@ export const RolesApiAxiosParamCreator = function (configuration) {
29149
29173
  options: localVarRequestOptions,
29150
29174
  };
29151
29175
  }),
29152
- /**
29153
- * Adds a new role to the system
29154
- * @summary Creates a new role
29155
- * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29156
- * @param {*} [options] Override http request option.
29157
- * @throws {RequiredError}
29158
- */
29159
- adminRolesPost: (dataTypesCreateRoleRequestDto_1, ...args_1) => __awaiter(this, [dataTypesCreateRoleRequestDto_1, ...args_1], void 0, function* (dataTypesCreateRoleRequestDto, options = {}) {
29160
- // verify required parameter 'dataTypesCreateRoleRequestDto' is not null or undefined
29161
- assertParamExists('adminRolesPost', 'dataTypesCreateRoleRequestDto', dataTypesCreateRoleRequestDto);
29162
- const localVarPath = `/admin/roles`;
29163
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
29164
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29165
- let baseOptions;
29166
- if (configuration) {
29167
- baseOptions = configuration.baseOptions;
29168
- }
29169
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
29170
- const localVarHeaderParameter = {};
29171
- const localVarQueryParameter = {};
29172
- // authentication BearerAuth required
29173
- yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
29174
- localVarHeaderParameter['Content-Type'] = 'application/json';
29175
- setSearchParams(localVarUrlObj, localVarQueryParameter);
29176
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29177
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
29178
- localVarRequestOptions.data = serializeDataIfNeeded(dataTypesCreateRoleRequestDto, localVarRequestOptions, configuration);
29179
- return {
29180
- url: toPathString(localVarUrlObj),
29181
- options: localVarRequestOptions,
29182
- };
29183
- }),
29184
29176
  /**
29185
29177
  * Retrieves role permissions separated by org-level and store-level menus/routes
29186
29178
  * @summary Get role permissions with org-level and store-level separation
@@ -29257,6 +29249,21 @@ export const RolesApiAxiosParamCreator = function (configuration) {
29257
29249
  export const RolesApiFp = function (configuration) {
29258
29250
  const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration);
29259
29251
  return {
29252
+ /**
29253
+ * Fetches list of all roles for the authenticated user\'s organization
29254
+ * @summary Fetches list of all roles
29255
+ * @param {*} [options] Override http request option.
29256
+ * @throws {RequiredError}
29257
+ */
29258
+ adminRolesGet(options) {
29259
+ return __awaiter(this, void 0, void 0, function* () {
29260
+ var _a, _b, _c;
29261
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesGet(options);
29262
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29263
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29264
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29265
+ });
29266
+ },
29260
29267
  /**
29261
29268
  * Deletes a role from the system by ID.
29262
29269
  * @summary Delete a role
@@ -29291,51 +29298,34 @@ export const RolesApiFp = function (configuration) {
29291
29298
  });
29292
29299
  },
29293
29300
  /**
29294
- * Fetches list of all roles
29295
- * @summary Fetches list of all roles
29296
- * @param {number} orgId Org ID
29301
+ * Adds a new role to the system
29302
+ * @summary Creates a new role
29303
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29297
29304
  * @param {*} [options] Override http request option.
29298
29305
  * @throws {RequiredError}
29299
29306
  */
29300
- adminRolesOrgIdGet(orgId, options) {
29307
+ adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29301
29308
  return __awaiter(this, void 0, void 0, function* () {
29302
29309
  var _a, _b, _c;
29303
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesOrgIdGet(orgId, options);
29310
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
29304
29311
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29305
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesOrgIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29312
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29306
29313
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29307
29314
  });
29308
29315
  },
29309
29316
  /**
29310
- * Fetches role by id
29317
+ * Fetches role by id for the authenticated user\'s organization
29311
29318
  * @summary Fetches role by id
29312
- * @param {number} orgId Org ID
29313
29319
  * @param {number} roleId RoleId ID
29314
29320
  * @param {*} [options] Override http request option.
29315
29321
  * @throws {RequiredError}
29316
29322
  */
29317
- adminRolesOrgIdRoleIdGet(orgId, roleId, options) {
29318
- return __awaiter(this, void 0, void 0, function* () {
29319
- var _a, _b, _c;
29320
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesOrgIdRoleIdGet(orgId, roleId, options);
29321
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29322
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesOrgIdRoleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29323
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29324
- });
29325
- },
29326
- /**
29327
- * Adds a new role to the system
29328
- * @summary Creates a new role
29329
- * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29330
- * @param {*} [options] Override http request option.
29331
- * @throws {RequiredError}
29332
- */
29333
- adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29323
+ adminRolesRoleIdGet(roleId, options) {
29334
29324
  return __awaiter(this, void 0, void 0, function* () {
29335
29325
  var _a, _b, _c;
29336
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesPost(dataTypesCreateRoleRequestDto, options);
29326
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRolesRoleIdGet(roleId, options);
29337
29327
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29338
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29328
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.adminRolesRoleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29339
29329
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29340
29330
  });
29341
29331
  },
@@ -29381,6 +29371,15 @@ export const RolesApiFp = function (configuration) {
29381
29371
  export const RolesApiFactory = function (configuration, basePath, axios) {
29382
29372
  const localVarFp = RolesApiFp(configuration);
29383
29373
  return {
29374
+ /**
29375
+ * Fetches list of all roles for the authenticated user\'s organization
29376
+ * @summary Fetches list of all roles
29377
+ * @param {*} [options] Override http request option.
29378
+ * @throws {RequiredError}
29379
+ */
29380
+ adminRolesGet(options) {
29381
+ return localVarFp.adminRolesGet(options).then((request) => request(axios, basePath));
29382
+ },
29384
29383
  /**
29385
29384
  * Deletes a role from the system by ID.
29386
29385
  * @summary Delete a role
@@ -29403,35 +29402,24 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
29403
29402
  return localVarFp.adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
29404
29403
  },
29405
29404
  /**
29406
- * Fetches list of all roles
29407
- * @summary Fetches list of all roles
29408
- * @param {number} orgId Org ID
29405
+ * Adds a new role to the system
29406
+ * @summary Creates a new role
29407
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29409
29408
  * @param {*} [options] Override http request option.
29410
29409
  * @throws {RequiredError}
29411
29410
  */
29412
- adminRolesOrgIdGet(orgId, options) {
29413
- return localVarFp.adminRolesOrgIdGet(orgId, options).then((request) => request(axios, basePath));
29411
+ adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29412
+ return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
29414
29413
  },
29415
29414
  /**
29416
- * Fetches role by id
29415
+ * Fetches role by id for the authenticated user\'s organization
29417
29416
  * @summary Fetches role by id
29418
- * @param {number} orgId Org ID
29419
29417
  * @param {number} roleId RoleId ID
29420
29418
  * @param {*} [options] Override http request option.
29421
29419
  * @throws {RequiredError}
29422
29420
  */
29423
- adminRolesOrgIdRoleIdGet(orgId, roleId, options) {
29424
- return localVarFp.adminRolesOrgIdRoleIdGet(orgId, roleId, options).then((request) => request(axios, basePath));
29425
- },
29426
- /**
29427
- * Adds a new role to the system
29428
- * @summary Creates a new role
29429
- * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29430
- * @param {*} [options] Override http request option.
29431
- * @throws {RequiredError}
29432
- */
29433
- adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29434
- return localVarFp.adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(axios, basePath));
29421
+ adminRolesRoleIdGet(roleId, options) {
29422
+ return localVarFp.adminRolesRoleIdGet(roleId, options).then((request) => request(axios, basePath));
29435
29423
  },
29436
29424
  /**
29437
29425
  * Retrieves role permissions separated by org-level and store-level menus/routes
@@ -29463,6 +29451,16 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
29463
29451
  * @extends {BaseAPI}
29464
29452
  */
29465
29453
  export class RolesApi extends BaseAPI {
29454
+ /**
29455
+ * Fetches list of all roles for the authenticated user\'s organization
29456
+ * @summary Fetches list of all roles
29457
+ * @param {*} [options] Override http request option.
29458
+ * @throws {RequiredError}
29459
+ * @memberof RolesApi
29460
+ */
29461
+ adminRolesGet(options) {
29462
+ return RolesApiFp(this.configuration).adminRolesGet(options).then((request) => request(this.axios, this.basePath));
29463
+ }
29466
29464
  /**
29467
29465
  * Deletes a role from the system by ID.
29468
29466
  * @summary Delete a role
@@ -29487,38 +29485,26 @@ export class RolesApi extends BaseAPI {
29487
29485
  return RolesApiFp(this.configuration).adminRolesIdPut(id, dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
29488
29486
  }
29489
29487
  /**
29490
- * Fetches list of all roles
29491
- * @summary Fetches list of all roles
29492
- * @param {number} orgId Org ID
29488
+ * Adds a new role to the system
29489
+ * @summary Creates a new role
29490
+ * @param {DataTypesCreateRoleRequestDto} dataTypesCreateRoleRequestDto data
29493
29491
  * @param {*} [options] Override http request option.
29494
29492
  * @throws {RequiredError}
29495
29493
  * @memberof RolesApi
29496
29494
  */
29497
- adminRolesOrgIdGet(orgId, options) {
29498
- return RolesApiFp(this.configuration).adminRolesOrgIdGet(orgId, options).then((request) => request(this.axios, this.basePath));
29495
+ adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29496
+ return RolesApiFp(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
29499
29497
  }
29500
29498
  /**
29501
- * Fetches role by id
29499
+ * Fetches role by id for the authenticated user\'s organization
29502
29500
  * @summary Fetches role by id
29503
- * @param {number} orgId Org ID
29504
29501
  * @param {number} roleId RoleId ID
29505
29502
  * @param {*} [options] Override http request option.
29506
29503
  * @throws {RequiredError}
29507
29504
  * @memberof RolesApi
29508
29505
  */
29509
- adminRolesOrgIdRoleIdGet(orgId, roleId, options) {
29510
- return RolesApiFp(this.configuration).adminRolesOrgIdRoleIdGet(orgId, roleId, options).then((request) => request(this.axios, this.basePath));
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
- * @memberof RolesApi
29519
- */
29520
- adminRolesPost(dataTypesCreateRoleRequestDto, options) {
29521
- return RolesApiFp(this.configuration).adminRolesPost(dataTypesCreateRoleRequestDto, options).then((request) => request(this.axios, this.basePath));
29506
+ adminRolesRoleIdGet(roleId, options) {
29507
+ return RolesApiFp(this.configuration).adminRolesRoleIdGet(roleId, options).then((request) => request(this.axios, this.basePath));
29522
29508
  }
29523
29509
  /**
29524
29510
  * Retrieves role permissions separated by org-level and store-level menus/routes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file