@seekora-ai/admin-api 1.1.33 → 1.1.35
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 +9 -7
- package/api.ts +472 -284
- package/dist/api.d.ts +284 -176
- package/dist/api.js +426 -285
- package/dist/esm/api.d.ts +284 -176
- package/dist/esm/api.js +415 -278
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.35.tgz +0 -0
- package/seekora-ai-admin-api-1.1.33.tgz +0 -0
package/api.ts
CHANGED
|
@@ -12021,6 +12021,12 @@ export interface DataTypesLoginResponse {
|
|
|
12021
12021
|
* @memberof DataTypesLoginResponse
|
|
12022
12022
|
*/
|
|
12023
12023
|
'onboardingStep'?: string;
|
|
12024
|
+
/**
|
|
12025
|
+
*
|
|
12026
|
+
* @type {number}
|
|
12027
|
+
* @memberof DataTypesLoginResponse
|
|
12028
|
+
*/
|
|
12029
|
+
'orgId'?: number;
|
|
12024
12030
|
/**
|
|
12025
12031
|
*
|
|
12026
12032
|
* @type {string}
|
|
@@ -20879,11 +20885,17 @@ export interface DataTypesUpdateRolePermissionsRequest {
|
|
|
20879
20885
|
*/
|
|
20880
20886
|
'fullAccess'?: boolean;
|
|
20881
20887
|
/**
|
|
20882
|
-
* Org-level menu/route permissions
|
|
20888
|
+
* Org-level menu/route permissions (flat format - for backward compatibility)
|
|
20883
20889
|
* @type {Array<DataTypesRoleRightRequestDto>}
|
|
20884
20890
|
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
20885
20891
|
*/
|
|
20886
20892
|
'orgLevelMenus'?: Array<DataTypesRoleRightRequestDto>;
|
|
20893
|
+
/**
|
|
20894
|
+
* Grouped structures (preferred format for frontend)
|
|
20895
|
+
* @type {DataTypesGroupedRolePermissions}
|
|
20896
|
+
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
20897
|
+
*/
|
|
20898
|
+
'orgLevelMenusGrouped'?: DataTypesGroupedRolePermissions;
|
|
20887
20899
|
/**
|
|
20888
20900
|
*
|
|
20889
20901
|
* @type {number}
|
|
@@ -20891,11 +20903,17 @@ export interface DataTypesUpdateRolePermissionsRequest {
|
|
|
20891
20903
|
*/
|
|
20892
20904
|
'roleId': number;
|
|
20893
20905
|
/**
|
|
20894
|
-
* Store-level menu/route permissions (
|
|
20906
|
+
* Store-level menu/route permissions (flat format - for backward compatibility)
|
|
20895
20907
|
* @type {Array<DataTypesStoreLevelMenuRight>}
|
|
20896
20908
|
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
20897
20909
|
*/
|
|
20898
20910
|
'storeAccess'?: Array<DataTypesStoreLevelMenuRight>;
|
|
20911
|
+
/**
|
|
20912
|
+
* Store-level menus grouped by module and parent
|
|
20913
|
+
* @type {Array<DataTypesGroupedStoreAccess>}
|
|
20914
|
+
* @memberof DataTypesUpdateRolePermissionsRequest
|
|
20915
|
+
*/
|
|
20916
|
+
'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
|
|
20899
20917
|
}
|
|
20900
20918
|
/**
|
|
20901
20919
|
*
|
|
@@ -21011,6 +21029,12 @@ export type DataTypesUpdateStoreAccessRequestAccessLevelEnum = typeof DataTypesU
|
|
|
21011
21029
|
* @interface DataTypesUpdateUserRolePermissionsRequest
|
|
21012
21030
|
*/
|
|
21013
21031
|
export interface DataTypesUpdateUserRolePermissionsRequest {
|
|
21032
|
+
/**
|
|
21033
|
+
* Full access to all stores for all users with this role
|
|
21034
|
+
* @type {boolean}
|
|
21035
|
+
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
21036
|
+
*/
|
|
21037
|
+
'allStoresFullAccess'?: boolean;
|
|
21014
21038
|
/**
|
|
21015
21039
|
* Full access at user-specific role level
|
|
21016
21040
|
* @type {boolean}
|
|
@@ -21018,17 +21042,29 @@ export interface DataTypesUpdateUserRolePermissionsRequest {
|
|
|
21018
21042
|
*/
|
|
21019
21043
|
'fullAccess'?: boolean;
|
|
21020
21044
|
/**
|
|
21021
|
-
* Org-level menu/route permissions
|
|
21045
|
+
* Org-level menu/route permissions (flat format - for backward compatibility)
|
|
21022
21046
|
* @type {Array<DataTypesRoleRightRequestDto>}
|
|
21023
21047
|
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
21024
21048
|
*/
|
|
21025
21049
|
'orgLevelMenus'?: Array<DataTypesRoleRightRequestDto>;
|
|
21026
21050
|
/**
|
|
21027
|
-
*
|
|
21051
|
+
* Grouped structures (preferred format for frontend)
|
|
21052
|
+
* @type {DataTypesGroupedRolePermissions}
|
|
21053
|
+
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
21054
|
+
*/
|
|
21055
|
+
'orgLevelMenusGrouped'?: DataTypesGroupedRolePermissions;
|
|
21056
|
+
/**
|
|
21057
|
+
* Store-level menu/route permissions (flat format - for backward compatibility)
|
|
21028
21058
|
* @type {Array<DataTypesStoreLevelMenuRight>}
|
|
21029
21059
|
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
21030
21060
|
*/
|
|
21031
21061
|
'storeAccess'?: Array<DataTypesStoreLevelMenuRight>;
|
|
21062
|
+
/**
|
|
21063
|
+
* Store-level menus grouped by module and parent
|
|
21064
|
+
* @type {Array<DataTypesGroupedStoreAccess>}
|
|
21065
|
+
* @memberof DataTypesUpdateUserRolePermissionsRequest
|
|
21066
|
+
*/
|
|
21067
|
+
'storeAccessGrouped'?: Array<DataTypesGroupedStoreAccess>;
|
|
21032
21068
|
/**
|
|
21033
21069
|
*
|
|
21034
21070
|
* @type {number}
|
|
@@ -26079,6 +26115,119 @@ export class AccountSettingsApi extends BaseAPI {
|
|
|
26079
26115
|
|
|
26080
26116
|
|
|
26081
26117
|
|
|
26118
|
+
/**
|
|
26119
|
+
* AdminAnalyticsApi - axios parameter creator
|
|
26120
|
+
* @export
|
|
26121
|
+
*/
|
|
26122
|
+
export const AdminAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26123
|
+
return {
|
|
26124
|
+
/**
|
|
26125
|
+
* Enables or disables test mode for analytics. When enabled, events will be published to analytics_events_test queue with detailed logging.
|
|
26126
|
+
* @summary Enable/Disable analytics test mode (Admin)
|
|
26127
|
+
* @param {object} body Test mode status
|
|
26128
|
+
* @param {*} [options] Override http request option.
|
|
26129
|
+
* @throws {RequiredError}
|
|
26130
|
+
*/
|
|
26131
|
+
v1AdminAnalyticsTestModePost: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26132
|
+
// verify required parameter 'body' is not null or undefined
|
|
26133
|
+
assertParamExists('v1AdminAnalyticsTestModePost', 'body', body)
|
|
26134
|
+
const localVarPath = `/v1/admin/analytics/test-mode`;
|
|
26135
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26136
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26137
|
+
let baseOptions;
|
|
26138
|
+
if (configuration) {
|
|
26139
|
+
baseOptions = configuration.baseOptions;
|
|
26140
|
+
}
|
|
26141
|
+
|
|
26142
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
26143
|
+
const localVarHeaderParameter = {} as any;
|
|
26144
|
+
const localVarQueryParameter = {} as any;
|
|
26145
|
+
|
|
26146
|
+
// authentication BearerAuth required
|
|
26147
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26148
|
+
|
|
26149
|
+
|
|
26150
|
+
|
|
26151
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26152
|
+
|
|
26153
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26154
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26155
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26156
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
26157
|
+
|
|
26158
|
+
return {
|
|
26159
|
+
url: toPathString(localVarUrlObj),
|
|
26160
|
+
options: localVarRequestOptions,
|
|
26161
|
+
};
|
|
26162
|
+
},
|
|
26163
|
+
}
|
|
26164
|
+
};
|
|
26165
|
+
|
|
26166
|
+
/**
|
|
26167
|
+
* AdminAnalyticsApi - functional programming interface
|
|
26168
|
+
* @export
|
|
26169
|
+
*/
|
|
26170
|
+
export const AdminAnalyticsApiFp = function(configuration?: Configuration) {
|
|
26171
|
+
const localVarAxiosParamCreator = AdminAnalyticsApiAxiosParamCreator(configuration)
|
|
26172
|
+
return {
|
|
26173
|
+
/**
|
|
26174
|
+
* Enables or disables test mode for analytics. When enabled, events will be published to analytics_events_test queue with detailed logging.
|
|
26175
|
+
* @summary Enable/Disable analytics test mode (Admin)
|
|
26176
|
+
* @param {object} body Test mode status
|
|
26177
|
+
* @param {*} [options] Override http request option.
|
|
26178
|
+
* @throws {RequiredError}
|
|
26179
|
+
*/
|
|
26180
|
+
async v1AdminAnalyticsTestModePost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
26181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminAnalyticsTestModePost(body, options);
|
|
26182
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26183
|
+
const localVarOperationServerBasePath = operationServerMap['AdminAnalyticsApi.v1AdminAnalyticsTestModePost']?.[localVarOperationServerIndex]?.url;
|
|
26184
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26185
|
+
},
|
|
26186
|
+
}
|
|
26187
|
+
};
|
|
26188
|
+
|
|
26189
|
+
/**
|
|
26190
|
+
* AdminAnalyticsApi - factory interface
|
|
26191
|
+
* @export
|
|
26192
|
+
*/
|
|
26193
|
+
export const AdminAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26194
|
+
const localVarFp = AdminAnalyticsApiFp(configuration)
|
|
26195
|
+
return {
|
|
26196
|
+
/**
|
|
26197
|
+
* Enables or disables test mode for analytics. When enabled, events will be published to analytics_events_test queue with detailed logging.
|
|
26198
|
+
* @summary Enable/Disable analytics test mode (Admin)
|
|
26199
|
+
* @param {object} body Test mode status
|
|
26200
|
+
* @param {*} [options] Override http request option.
|
|
26201
|
+
* @throws {RequiredError}
|
|
26202
|
+
*/
|
|
26203
|
+
v1AdminAnalyticsTestModePost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
26204
|
+
return localVarFp.v1AdminAnalyticsTestModePost(body, options).then((request) => request(axios, basePath));
|
|
26205
|
+
},
|
|
26206
|
+
};
|
|
26207
|
+
};
|
|
26208
|
+
|
|
26209
|
+
/**
|
|
26210
|
+
* AdminAnalyticsApi - object-oriented interface
|
|
26211
|
+
* @export
|
|
26212
|
+
* @class AdminAnalyticsApi
|
|
26213
|
+
* @extends {BaseAPI}
|
|
26214
|
+
*/
|
|
26215
|
+
export class AdminAnalyticsApi extends BaseAPI {
|
|
26216
|
+
/**
|
|
26217
|
+
* Enables or disables test mode for analytics. When enabled, events will be published to analytics_events_test queue with detailed logging.
|
|
26218
|
+
* @summary Enable/Disable analytics test mode (Admin)
|
|
26219
|
+
* @param {object} body Test mode status
|
|
26220
|
+
* @param {*} [options] Override http request option.
|
|
26221
|
+
* @throws {RequiredError}
|
|
26222
|
+
* @memberof AdminAnalyticsApi
|
|
26223
|
+
*/
|
|
26224
|
+
public v1AdminAnalyticsTestModePost(body: object, options?: RawAxiosRequestConfig) {
|
|
26225
|
+
return AdminAnalyticsApiFp(this.configuration).v1AdminAnalyticsTestModePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
26226
|
+
}
|
|
26227
|
+
}
|
|
26228
|
+
|
|
26229
|
+
|
|
26230
|
+
|
|
26082
26231
|
/**
|
|
26083
26232
|
* AdminNotificationTemplatesApi - axios parameter creator
|
|
26084
26233
|
* @export
|
|
@@ -26906,6 +27055,45 @@ export const AdminNotificationsApiAxiosParamCreator = function (configuration?:
|
|
|
26906
27055
|
options: localVarRequestOptions,
|
|
26907
27056
|
};
|
|
26908
27057
|
},
|
|
27058
|
+
/**
|
|
27059
|
+
* Enables or disables test mode for notifications. When enabled, notifications will be published to test queue with detailed logging.
|
|
27060
|
+
* @summary Enable/Disable notification test mode (Admin)
|
|
27061
|
+
* @param {object} body Test mode status
|
|
27062
|
+
* @param {*} [options] Override http request option.
|
|
27063
|
+
* @throws {RequiredError}
|
|
27064
|
+
*/
|
|
27065
|
+
v1AdminNotificationsTestModePost: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27066
|
+
// verify required parameter 'body' is not null or undefined
|
|
27067
|
+
assertParamExists('v1AdminNotificationsTestModePost', 'body', body)
|
|
27068
|
+
const localVarPath = `/v1/admin/notifications/test/mode`;
|
|
27069
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27070
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27071
|
+
let baseOptions;
|
|
27072
|
+
if (configuration) {
|
|
27073
|
+
baseOptions = configuration.baseOptions;
|
|
27074
|
+
}
|
|
27075
|
+
|
|
27076
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
27077
|
+
const localVarHeaderParameter = {} as any;
|
|
27078
|
+
const localVarQueryParameter = {} as any;
|
|
27079
|
+
|
|
27080
|
+
// authentication BearerAuth required
|
|
27081
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
27082
|
+
|
|
27083
|
+
|
|
27084
|
+
|
|
27085
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27086
|
+
|
|
27087
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27088
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27089
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27090
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
27091
|
+
|
|
27092
|
+
return {
|
|
27093
|
+
url: toPathString(localVarUrlObj),
|
|
27094
|
+
options: localVarRequestOptions,
|
|
27095
|
+
};
|
|
27096
|
+
},
|
|
26909
27097
|
/**
|
|
26910
27098
|
* Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
|
|
26911
27099
|
* @summary Send test notification (Admin)
|
|
@@ -27080,6 +27268,19 @@ export const AdminNotificationsApiFp = function(configuration?: Configuration) {
|
|
|
27080
27268
|
const localVarOperationServerBasePath = operationServerMap['AdminNotificationsApi.v1AdminNotificationsStatsGet']?.[localVarOperationServerIndex]?.url;
|
|
27081
27269
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27082
27270
|
},
|
|
27271
|
+
/**
|
|
27272
|
+
* Enables or disables test mode for notifications. When enabled, notifications will be published to test queue with detailed logging.
|
|
27273
|
+
* @summary Enable/Disable notification test mode (Admin)
|
|
27274
|
+
* @param {object} body Test mode status
|
|
27275
|
+
* @param {*} [options] Override http request option.
|
|
27276
|
+
* @throws {RequiredError}
|
|
27277
|
+
*/
|
|
27278
|
+
async v1AdminNotificationsTestModePost(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
27279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1AdminNotificationsTestModePost(body, options);
|
|
27280
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27281
|
+
const localVarOperationServerBasePath = operationServerMap['AdminNotificationsApi.v1AdminNotificationsTestModePost']?.[localVarOperationServerIndex]?.url;
|
|
27282
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27283
|
+
},
|
|
27083
27284
|
/**
|
|
27084
27285
|
* Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
|
|
27085
27286
|
* @summary Send test notification (Admin)
|
|
@@ -27194,6 +27395,16 @@ export const AdminNotificationsApiFactory = function (configuration?: Configurat
|
|
|
27194
27395
|
v1AdminNotificationsStatsGet(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesNotificationStatsResponse> {
|
|
27195
27396
|
return localVarFp.v1AdminNotificationsStatsGet(startDate, endDate, options).then((request) => request(axios, basePath));
|
|
27196
27397
|
},
|
|
27398
|
+
/**
|
|
27399
|
+
* Enables or disables test mode for notifications. When enabled, notifications will be published to test queue with detailed logging.
|
|
27400
|
+
* @summary Enable/Disable notification test mode (Admin)
|
|
27401
|
+
* @param {object} body Test mode status
|
|
27402
|
+
* @param {*} [options] Override http request option.
|
|
27403
|
+
* @throws {RequiredError}
|
|
27404
|
+
*/
|
|
27405
|
+
v1AdminNotificationsTestModePost(body: object, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
27406
|
+
return localVarFp.v1AdminNotificationsTestModePost(body, options).then((request) => request(axios, basePath));
|
|
27407
|
+
},
|
|
27197
27408
|
/**
|
|
27198
27409
|
* Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
|
|
27199
27410
|
* @summary Send test notification (Admin)
|
|
@@ -27323,6 +27534,18 @@ export class AdminNotificationsApi extends BaseAPI {
|
|
|
27323
27534
|
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsStatsGet(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
27324
27535
|
}
|
|
27325
27536
|
|
|
27537
|
+
/**
|
|
27538
|
+
* Enables or disables test mode for notifications. When enabled, notifications will be published to test queue with detailed logging.
|
|
27539
|
+
* @summary Enable/Disable notification test mode (Admin)
|
|
27540
|
+
* @param {object} body Test mode status
|
|
27541
|
+
* @param {*} [options] Override http request option.
|
|
27542
|
+
* @throws {RequiredError}
|
|
27543
|
+
* @memberof AdminNotificationsApi
|
|
27544
|
+
*/
|
|
27545
|
+
public v1AdminNotificationsTestModePost(body: object, options?: RawAxiosRequestConfig) {
|
|
27546
|
+
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsTestModePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
27547
|
+
}
|
|
27548
|
+
|
|
27326
27549
|
/**
|
|
27327
27550
|
* Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
|
|
27328
27551
|
* @summary Send test notification (Admin)
|
|
@@ -61752,17 +61975,17 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61752
61975
|
};
|
|
61753
61976
|
},
|
|
61754
61977
|
/**
|
|
61755
|
-
* Retrieves all
|
|
61756
|
-
* @summary Get
|
|
61757
|
-
* @param {number}
|
|
61978
|
+
* Retrieves all users with access to a store
|
|
61979
|
+
* @summary Get store access list
|
|
61980
|
+
* @param {number} storeId Store ID
|
|
61758
61981
|
* @param {*} [options] Override http request option.
|
|
61759
61982
|
* @throws {RequiredError}
|
|
61760
61983
|
*/
|
|
61761
|
-
|
|
61762
|
-
// verify required parameter '
|
|
61763
|
-
assertParamExists('
|
|
61764
|
-
const localVarPath = `/api/v1/
|
|
61765
|
-
.replace(`{${"
|
|
61984
|
+
apiV1StoresStoreIdAccessGet: async (storeId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61985
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
61986
|
+
assertParamExists('apiV1StoresStoreIdAccessGet', 'storeId', storeId)
|
|
61987
|
+
const localVarPath = `/api/v1/stores/{storeId}/access`
|
|
61988
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
61766
61989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61767
61990
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61768
61991
|
let baseOptions;
|
|
@@ -61789,17 +62012,20 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61789
62012
|
};
|
|
61790
62013
|
},
|
|
61791
62014
|
/**
|
|
61792
|
-
*
|
|
61793
|
-
* @summary
|
|
61794
|
-
* @param {number}
|
|
62015
|
+
* Grants a user access to a store
|
|
62016
|
+
* @summary Grant store access
|
|
62017
|
+
* @param {number} storeId Store ID
|
|
62018
|
+
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
61795
62019
|
* @param {*} [options] Override http request option.
|
|
61796
62020
|
* @throws {RequiredError}
|
|
61797
62021
|
*/
|
|
61798
|
-
|
|
61799
|
-
// verify required parameter '
|
|
61800
|
-
assertParamExists('
|
|
61801
|
-
|
|
61802
|
-
|
|
62022
|
+
apiV1StoresStoreIdAccessPost: async (storeId: number, dataTypesGrantStoreAccessRequest: DataTypesGrantStoreAccessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62023
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
62024
|
+
assertParamExists('apiV1StoresStoreIdAccessPost', 'storeId', storeId)
|
|
62025
|
+
// verify required parameter 'dataTypesGrantStoreAccessRequest' is not null or undefined
|
|
62026
|
+
assertParamExists('apiV1StoresStoreIdAccessPost', 'dataTypesGrantStoreAccessRequest', dataTypesGrantStoreAccessRequest)
|
|
62027
|
+
const localVarPath = `/api/v1/stores/{storeId}/access`
|
|
62028
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
61803
62029
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61804
62030
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61805
62031
|
let baseOptions;
|
|
@@ -61807,7 +62033,7 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61807
62033
|
baseOptions = configuration.baseOptions;
|
|
61808
62034
|
}
|
|
61809
62035
|
|
|
61810
|
-
const localVarRequestOptions = { method: '
|
|
62036
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61811
62037
|
const localVarHeaderParameter = {} as any;
|
|
61812
62038
|
const localVarQueryParameter = {} as any;
|
|
61813
62039
|
|
|
@@ -61816,9 +62042,12 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61816
62042
|
|
|
61817
62043
|
|
|
61818
62044
|
|
|
62045
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62046
|
+
|
|
61819
62047
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61820
62048
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61821
62049
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62050
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesGrantStoreAccessRequest, localVarRequestOptions, configuration)
|
|
61822
62051
|
|
|
61823
62052
|
return {
|
|
61824
62053
|
url: toPathString(localVarUrlObj),
|
|
@@ -61826,20 +62055,21 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61826
62055
|
};
|
|
61827
62056
|
},
|
|
61828
62057
|
/**
|
|
61829
|
-
*
|
|
61830
|
-
* @summary
|
|
61831
|
-
* @param {number}
|
|
61832
|
-
* @param {
|
|
62058
|
+
* Revokes a user\'s access to a store
|
|
62059
|
+
* @summary Revoke store access
|
|
62060
|
+
* @param {number} storeId Store ID
|
|
62061
|
+
* @param {number} userId User ID
|
|
61833
62062
|
* @param {*} [options] Override http request option.
|
|
61834
62063
|
* @throws {RequiredError}
|
|
61835
62064
|
*/
|
|
61836
|
-
|
|
61837
|
-
// verify required parameter '
|
|
61838
|
-
assertParamExists('
|
|
61839
|
-
// verify required parameter '
|
|
61840
|
-
assertParamExists('
|
|
61841
|
-
const localVarPath = `/api/v1/
|
|
61842
|
-
.replace(`{${"
|
|
62065
|
+
apiV1StoresStoreIdAccessUserIdDelete: async (storeId: number, userId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62066
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
62067
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdDelete', 'storeId', storeId)
|
|
62068
|
+
// verify required parameter 'userId' is not null or undefined
|
|
62069
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdDelete', 'userId', userId)
|
|
62070
|
+
const localVarPath = `/api/v1/stores/{storeId}/access/{userId}`
|
|
62071
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)))
|
|
62072
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
61843
62073
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61844
62074
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61845
62075
|
let baseOptions;
|
|
@@ -61847,7 +62077,7 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61847
62077
|
baseOptions = configuration.baseOptions;
|
|
61848
62078
|
}
|
|
61849
62079
|
|
|
61850
|
-
const localVarRequestOptions = { method: '
|
|
62080
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
61851
62081
|
const localVarHeaderParameter = {} as any;
|
|
61852
62082
|
const localVarQueryParameter = {} as any;
|
|
61853
62083
|
|
|
@@ -61856,12 +62086,9 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61856
62086
|
|
|
61857
62087
|
|
|
61858
62088
|
|
|
61859
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61860
|
-
|
|
61861
62089
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61862
62090
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61863
62091
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
61864
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesInviteMemberRequest, localVarRequestOptions, configuration)
|
|
61865
62092
|
|
|
61866
62093
|
return {
|
|
61867
62094
|
url: toPathString(localVarUrlObj),
|
|
@@ -61869,21 +62096,24 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61869
62096
|
};
|
|
61870
62097
|
},
|
|
61871
62098
|
/**
|
|
61872
|
-
*
|
|
61873
|
-
* @summary
|
|
61874
|
-
* @param {number}
|
|
61875
|
-
* @param {number}
|
|
62099
|
+
* Updates a user\'s access level to a store
|
|
62100
|
+
* @summary Update store access level
|
|
62101
|
+
* @param {number} storeId Store ID
|
|
62102
|
+
* @param {number} userId User ID
|
|
62103
|
+
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
61876
62104
|
* @param {*} [options] Override http request option.
|
|
61877
62105
|
* @throws {RequiredError}
|
|
61878
62106
|
*/
|
|
61879
|
-
|
|
61880
|
-
// verify required parameter '
|
|
61881
|
-
assertParamExists('
|
|
61882
|
-
// verify required parameter '
|
|
61883
|
-
assertParamExists('
|
|
61884
|
-
|
|
61885
|
-
|
|
61886
|
-
|
|
62107
|
+
apiV1StoresStoreIdAccessUserIdPut: async (storeId: number, userId: number, dataTypesUpdateStoreAccessRequest: DataTypesUpdateStoreAccessRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62108
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
62109
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdPut', 'storeId', storeId)
|
|
62110
|
+
// verify required parameter 'userId' is not null or undefined
|
|
62111
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdPut', 'userId', userId)
|
|
62112
|
+
// verify required parameter 'dataTypesUpdateStoreAccessRequest' is not null or undefined
|
|
62113
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdPut', 'dataTypesUpdateStoreAccessRequest', dataTypesUpdateStoreAccessRequest)
|
|
62114
|
+
const localVarPath = `/api/v1/stores/{storeId}/access/{userId}`
|
|
62115
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)))
|
|
62116
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
61887
62117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61888
62118
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61889
62119
|
let baseOptions;
|
|
@@ -61891,7 +62121,7 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61891
62121
|
baseOptions = configuration.baseOptions;
|
|
61892
62122
|
}
|
|
61893
62123
|
|
|
61894
|
-
const localVarRequestOptions = { method: '
|
|
62124
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
61895
62125
|
const localVarHeaderParameter = {} as any;
|
|
61896
62126
|
const localVarQueryParameter = {} as any;
|
|
61897
62127
|
|
|
@@ -61900,9 +62130,12 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61900
62130
|
|
|
61901
62131
|
|
|
61902
62132
|
|
|
62133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62134
|
+
|
|
61903
62135
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61904
62136
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61905
62137
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62138
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateStoreAccessRequest, localVarRequestOptions, configuration)
|
|
61906
62139
|
|
|
61907
62140
|
return {
|
|
61908
62141
|
url: toPathString(localVarUrlObj),
|
|
@@ -61910,24 +62143,13 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61910
62143
|
};
|
|
61911
62144
|
},
|
|
61912
62145
|
/**
|
|
61913
|
-
*
|
|
61914
|
-
* @summary
|
|
61915
|
-
* @param {number} orgId Organization ID
|
|
61916
|
-
* @param {number} memberId Member ID
|
|
61917
|
-
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
62146
|
+
* Retrieves all pending invitations for the user\'s organization
|
|
62147
|
+
* @summary Get pending invitations
|
|
61918
62148
|
* @param {*} [options] Override http request option.
|
|
61919
62149
|
* @throws {RequiredError}
|
|
61920
62150
|
*/
|
|
61921
|
-
|
|
61922
|
-
|
|
61923
|
-
assertParamExists('apiV1OrganizationsOrgIdMembersMemberIdRolePut', 'orgId', orgId)
|
|
61924
|
-
// verify required parameter 'memberId' is not null or undefined
|
|
61925
|
-
assertParamExists('apiV1OrganizationsOrgIdMembersMemberIdRolePut', 'memberId', memberId)
|
|
61926
|
-
// verify required parameter 'dataTypesUpdateMemberRoleRequest' is not null or undefined
|
|
61927
|
-
assertParamExists('apiV1OrganizationsOrgIdMembersMemberIdRolePut', 'dataTypesUpdateMemberRoleRequest', dataTypesUpdateMemberRoleRequest)
|
|
61928
|
-
const localVarPath = `/api/v1/organizations/{orgId}/members/{memberId}/role`
|
|
61929
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
61930
|
-
.replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
|
|
62151
|
+
apiV1TeamInvitationsGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62152
|
+
const localVarPath = `/api/v1/team/invitations`;
|
|
61931
62153
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61932
62154
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61933
62155
|
let baseOptions;
|
|
@@ -61935,7 +62157,7 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61935
62157
|
baseOptions = configuration.baseOptions;
|
|
61936
62158
|
}
|
|
61937
62159
|
|
|
61938
|
-
const localVarRequestOptions = { method: '
|
|
62160
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
61939
62161
|
const localVarHeaderParameter = {} as any;
|
|
61940
62162
|
const localVarQueryParameter = {} as any;
|
|
61941
62163
|
|
|
@@ -61944,12 +62166,9 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61944
62166
|
|
|
61945
62167
|
|
|
61946
62168
|
|
|
61947
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61948
|
-
|
|
61949
62169
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61950
62170
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61951
62171
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
61952
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateMemberRoleRequest, localVarRequestOptions, configuration)
|
|
61953
62172
|
|
|
61954
62173
|
return {
|
|
61955
62174
|
url: toPathString(localVarUrlObj),
|
|
@@ -61957,17 +62176,13 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61957
62176
|
};
|
|
61958
62177
|
},
|
|
61959
62178
|
/**
|
|
61960
|
-
* Retrieves all
|
|
61961
|
-
* @summary Get
|
|
61962
|
-
* @param {number} storeId Store ID
|
|
62179
|
+
* Retrieves all members of the user\'s organization with their details
|
|
62180
|
+
* @summary Get all members of an organization
|
|
61963
62181
|
* @param {*} [options] Override http request option.
|
|
61964
62182
|
* @throws {RequiredError}
|
|
61965
62183
|
*/
|
|
61966
|
-
|
|
61967
|
-
|
|
61968
|
-
assertParamExists('apiV1StoresStoreIdAccessGet', 'storeId', storeId)
|
|
61969
|
-
const localVarPath = `/api/v1/stores/{storeId}/access`
|
|
61970
|
-
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
62184
|
+
apiV1TeamMembersGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62185
|
+
const localVarPath = `/api/v1/team/members`;
|
|
61971
62186
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
61972
62187
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61973
62188
|
let baseOptions;
|
|
@@ -61994,20 +62209,16 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
61994
62209
|
};
|
|
61995
62210
|
},
|
|
61996
62211
|
/**
|
|
61997
|
-
*
|
|
61998
|
-
* @summary
|
|
61999
|
-
* @param {
|
|
62000
|
-
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
62212
|
+
* Sends an invitation to a user to join the user\'s organization
|
|
62213
|
+
* @summary Invite a member to join organization
|
|
62214
|
+
* @param {DataTypesInviteMemberRequest} dataTypesInviteMemberRequest Invitation details
|
|
62001
62215
|
* @param {*} [options] Override http request option.
|
|
62002
62216
|
* @throws {RequiredError}
|
|
62003
62217
|
*/
|
|
62004
|
-
|
|
62005
|
-
// verify required parameter '
|
|
62006
|
-
assertParamExists('
|
|
62007
|
-
|
|
62008
|
-
assertParamExists('apiV1StoresStoreIdAccessPost', 'dataTypesGrantStoreAccessRequest', dataTypesGrantStoreAccessRequest)
|
|
62009
|
-
const localVarPath = `/api/v1/stores/{storeId}/access`
|
|
62010
|
-
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
62218
|
+
apiV1TeamMembersInvitePost: async (dataTypesInviteMemberRequest: DataTypesInviteMemberRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62219
|
+
// verify required parameter 'dataTypesInviteMemberRequest' is not null or undefined
|
|
62220
|
+
assertParamExists('apiV1TeamMembersInvitePost', 'dataTypesInviteMemberRequest', dataTypesInviteMemberRequest)
|
|
62221
|
+
const localVarPath = `/api/v1/team/members/invite`;
|
|
62011
62222
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62012
62223
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
62013
62224
|
let baseOptions;
|
|
@@ -62029,7 +62240,7 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
62029
62240
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62030
62241
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62031
62242
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62032
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
62243
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesInviteMemberRequest, localVarRequestOptions, configuration)
|
|
62033
62244
|
|
|
62034
62245
|
return {
|
|
62035
62246
|
url: toPathString(localVarUrlObj),
|
|
@@ -62037,21 +62248,17 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
62037
62248
|
};
|
|
62038
62249
|
},
|
|
62039
62250
|
/**
|
|
62040
|
-
*
|
|
62041
|
-
* @summary
|
|
62042
|
-
* @param {number}
|
|
62043
|
-
* @param {number} userId User ID
|
|
62251
|
+
* Removes a member from the user\'s organization
|
|
62252
|
+
* @summary Remove member from organization
|
|
62253
|
+
* @param {number} memberId Member ID
|
|
62044
62254
|
* @param {*} [options] Override http request option.
|
|
62045
62255
|
* @throws {RequiredError}
|
|
62046
62256
|
*/
|
|
62047
|
-
|
|
62048
|
-
// verify required parameter '
|
|
62049
|
-
assertParamExists('
|
|
62050
|
-
|
|
62051
|
-
|
|
62052
|
-
const localVarPath = `/api/v1/stores/{storeId}/access/{userId}`
|
|
62053
|
-
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)))
|
|
62054
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
62257
|
+
apiV1TeamMembersMemberIdDelete: async (memberId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62258
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
62259
|
+
assertParamExists('apiV1TeamMembersMemberIdDelete', 'memberId', memberId)
|
|
62260
|
+
const localVarPath = `/api/v1/team/members/{memberId}`
|
|
62261
|
+
.replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
|
|
62055
62262
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62056
62263
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
62057
62264
|
let baseOptions;
|
|
@@ -62078,24 +62285,20 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
62078
62285
|
};
|
|
62079
62286
|
},
|
|
62080
62287
|
/**
|
|
62081
|
-
* Updates a user\'s
|
|
62082
|
-
* @summary Update
|
|
62083
|
-
* @param {number}
|
|
62084
|
-
* @param {
|
|
62085
|
-
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
62288
|
+
* Updates the role of a member in the user\'s organization
|
|
62289
|
+
* @summary Update member role
|
|
62290
|
+
* @param {number} memberId Member ID
|
|
62291
|
+
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
62086
62292
|
* @param {*} [options] Override http request option.
|
|
62087
62293
|
* @throws {RequiredError}
|
|
62088
62294
|
*/
|
|
62089
|
-
|
|
62090
|
-
// verify required parameter '
|
|
62091
|
-
assertParamExists('
|
|
62092
|
-
// verify required parameter '
|
|
62093
|
-
assertParamExists('
|
|
62094
|
-
|
|
62095
|
-
|
|
62096
|
-
const localVarPath = `/api/v1/stores/{storeId}/access/{userId}`
|
|
62097
|
-
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)))
|
|
62098
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
62295
|
+
apiV1TeamMembersMemberIdRolePut: async (memberId: number, dataTypesUpdateMemberRoleRequest: DataTypesUpdateMemberRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62296
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
62297
|
+
assertParamExists('apiV1TeamMembersMemberIdRolePut', 'memberId', memberId)
|
|
62298
|
+
// verify required parameter 'dataTypesUpdateMemberRoleRequest' is not null or undefined
|
|
62299
|
+
assertParamExists('apiV1TeamMembersMemberIdRolePut', 'dataTypesUpdateMemberRoleRequest', dataTypesUpdateMemberRoleRequest)
|
|
62300
|
+
const localVarPath = `/api/v1/team/members/{memberId}/role`
|
|
62301
|
+
.replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
|
|
62099
62302
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
62100
62303
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
62101
62304
|
let baseOptions;
|
|
@@ -62117,7 +62320,7 @@ export const TeamApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
62117
62320
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62118
62321
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62119
62322
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62120
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
62323
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateMemberRoleRequest, localVarRequestOptions, configuration)
|
|
62121
62324
|
|
|
62122
62325
|
return {
|
|
62123
62326
|
url: toPathString(localVarUrlObj),
|
|
@@ -62198,128 +62401,123 @@ export const TeamApiFp = function(configuration?: Configuration) {
|
|
|
62198
62401
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62199
62402
|
},
|
|
62200
62403
|
/**
|
|
62201
|
-
* Retrieves all
|
|
62202
|
-
* @summary Get
|
|
62203
|
-
* @param {number}
|
|
62404
|
+
* Retrieves all users with access to a store
|
|
62405
|
+
* @summary Get store access list
|
|
62406
|
+
* @param {number} storeId Store ID
|
|
62204
62407
|
* @param {*} [options] Override http request option.
|
|
62205
62408
|
* @throws {RequiredError}
|
|
62206
62409
|
*/
|
|
62207
|
-
async
|
|
62208
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62410
|
+
async apiV1StoresStoreIdAccessGet(storeId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreAccessResponse>> {
|
|
62411
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresStoreIdAccessGet(storeId, options);
|
|
62209
62412
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62210
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62413
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1StoresStoreIdAccessGet']?.[localVarOperationServerIndex]?.url;
|
|
62211
62414
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62212
62415
|
},
|
|
62213
62416
|
/**
|
|
62214
|
-
*
|
|
62215
|
-
* @summary
|
|
62216
|
-
* @param {number}
|
|
62417
|
+
* Grants a user access to a store
|
|
62418
|
+
* @summary Grant store access
|
|
62419
|
+
* @param {number} storeId Store ID
|
|
62420
|
+
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
62217
62421
|
* @param {*} [options] Override http request option.
|
|
62218
62422
|
* @throws {RequiredError}
|
|
62219
62423
|
*/
|
|
62220
|
-
async
|
|
62221
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62424
|
+
async apiV1StoresStoreIdAccessPost(storeId: number, dataTypesGrantStoreAccessRequest: DataTypesGrantStoreAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
62425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options);
|
|
62222
62426
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62223
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62427
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1StoresStoreIdAccessPost']?.[localVarOperationServerIndex]?.url;
|
|
62224
62428
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62225
62429
|
},
|
|
62226
62430
|
/**
|
|
62227
|
-
*
|
|
62228
|
-
* @summary
|
|
62229
|
-
* @param {number}
|
|
62230
|
-
* @param {
|
|
62431
|
+
* Revokes a user\'s access to a store
|
|
62432
|
+
* @summary Revoke store access
|
|
62433
|
+
* @param {number} storeId Store ID
|
|
62434
|
+
* @param {number} userId User ID
|
|
62231
62435
|
* @param {*} [options] Override http request option.
|
|
62232
62436
|
* @throws {RequiredError}
|
|
62233
62437
|
*/
|
|
62234
|
-
async
|
|
62235
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62438
|
+
async apiV1StoresStoreIdAccessUserIdDelete(storeId: number, userId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
62439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options);
|
|
62236
62440
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62237
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62441
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1StoresStoreIdAccessUserIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
62238
62442
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62239
62443
|
},
|
|
62240
62444
|
/**
|
|
62241
|
-
*
|
|
62242
|
-
* @summary
|
|
62243
|
-
* @param {number}
|
|
62244
|
-
* @param {number}
|
|
62445
|
+
* Updates a user\'s access level to a store
|
|
62446
|
+
* @summary Update store access level
|
|
62447
|
+
* @param {number} storeId Store ID
|
|
62448
|
+
* @param {number} userId User ID
|
|
62449
|
+
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
62245
62450
|
* @param {*} [options] Override http request option.
|
|
62246
62451
|
* @throws {RequiredError}
|
|
62247
62452
|
*/
|
|
62248
|
-
async
|
|
62249
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62453
|
+
async apiV1StoresStoreIdAccessUserIdPut(storeId: number, userId: number, dataTypesUpdateStoreAccessRequest: DataTypesUpdateStoreAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
62454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options);
|
|
62250
62455
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62251
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62456
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1StoresStoreIdAccessUserIdPut']?.[localVarOperationServerIndex]?.url;
|
|
62252
62457
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62253
62458
|
},
|
|
62254
62459
|
/**
|
|
62255
|
-
*
|
|
62256
|
-
* @summary
|
|
62257
|
-
* @param {number} orgId Organization ID
|
|
62258
|
-
* @param {number} memberId Member ID
|
|
62259
|
-
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
62460
|
+
* Retrieves all pending invitations for the user\'s organization
|
|
62461
|
+
* @summary Get pending invitations
|
|
62260
62462
|
* @param {*} [options] Override http request option.
|
|
62261
62463
|
* @throws {RequiredError}
|
|
62262
62464
|
*/
|
|
62263
|
-
async
|
|
62264
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62465
|
+
async apiV1TeamInvitationsGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesTeamInvitationsResponse>> {
|
|
62466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1TeamInvitationsGet(options);
|
|
62265
62467
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62266
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62468
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1TeamInvitationsGet']?.[localVarOperationServerIndex]?.url;
|
|
62267
62469
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62268
62470
|
},
|
|
62269
62471
|
/**
|
|
62270
|
-
* Retrieves all
|
|
62271
|
-
* @summary Get
|
|
62272
|
-
* @param {number} storeId Store ID
|
|
62472
|
+
* Retrieves all members of the user\'s organization with their details
|
|
62473
|
+
* @summary Get all members of an organization
|
|
62273
62474
|
* @param {*} [options] Override http request option.
|
|
62274
62475
|
* @throws {RequiredError}
|
|
62275
62476
|
*/
|
|
62276
|
-
async
|
|
62277
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62477
|
+
async apiV1TeamMembersGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesOrgMembersResponse>> {
|
|
62478
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1TeamMembersGet(options);
|
|
62278
62479
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62279
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62480
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1TeamMembersGet']?.[localVarOperationServerIndex]?.url;
|
|
62280
62481
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62281
62482
|
},
|
|
62282
62483
|
/**
|
|
62283
|
-
*
|
|
62284
|
-
* @summary
|
|
62285
|
-
* @param {
|
|
62286
|
-
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
62484
|
+
* Sends an invitation to a user to join the user\'s organization
|
|
62485
|
+
* @summary Invite a member to join organization
|
|
62486
|
+
* @param {DataTypesInviteMemberRequest} dataTypesInviteMemberRequest Invitation details
|
|
62287
62487
|
* @param {*} [options] Override http request option.
|
|
62288
62488
|
* @throws {RequiredError}
|
|
62289
62489
|
*/
|
|
62290
|
-
async
|
|
62291
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62490
|
+
async apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest: DataTypesInviteMemberRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesInvitationCreatedResponse>> {
|
|
62491
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options);
|
|
62292
62492
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62293
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62493
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1TeamMembersInvitePost']?.[localVarOperationServerIndex]?.url;
|
|
62294
62494
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62295
62495
|
},
|
|
62296
62496
|
/**
|
|
62297
|
-
*
|
|
62298
|
-
* @summary
|
|
62299
|
-
* @param {number}
|
|
62300
|
-
* @param {number} userId User ID
|
|
62497
|
+
* Removes a member from the user\'s organization
|
|
62498
|
+
* @summary Remove member from organization
|
|
62499
|
+
* @param {number} memberId Member ID
|
|
62301
62500
|
* @param {*} [options] Override http request option.
|
|
62302
62501
|
* @throws {RequiredError}
|
|
62303
62502
|
*/
|
|
62304
|
-
async
|
|
62305
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62503
|
+
async apiV1TeamMembersMemberIdDelete(memberId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
62504
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1TeamMembersMemberIdDelete(memberId, options);
|
|
62306
62505
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62307
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62506
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1TeamMembersMemberIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
62308
62507
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62309
62508
|
},
|
|
62310
62509
|
/**
|
|
62311
|
-
* Updates a user\'s
|
|
62312
|
-
* @summary Update
|
|
62313
|
-
* @param {number}
|
|
62314
|
-
* @param {
|
|
62315
|
-
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
62510
|
+
* Updates the role of a member in the user\'s organization
|
|
62511
|
+
* @summary Update member role
|
|
62512
|
+
* @param {number} memberId Member ID
|
|
62513
|
+
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
62316
62514
|
* @param {*} [options] Override http request option.
|
|
62317
62515
|
* @throws {RequiredError}
|
|
62318
62516
|
*/
|
|
62319
|
-
async
|
|
62320
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
62517
|
+
async apiV1TeamMembersMemberIdRolePut(memberId: number, dataTypesUpdateMemberRoleRequest: DataTypesUpdateMemberRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
62518
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options);
|
|
62321
62519
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
62322
|
-
const localVarOperationServerBasePath = operationServerMap['TeamApi.
|
|
62520
|
+
const localVarOperationServerBasePath = operationServerMap['TeamApi.apiV1TeamMembersMemberIdRolePut']?.[localVarOperationServerIndex]?.url;
|
|
62323
62521
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
62324
62522
|
},
|
|
62325
62523
|
/**
|
|
@@ -62366,102 +62564,97 @@ export const TeamApiFactory = function (configuration?: Configuration, basePath?
|
|
|
62366
62564
|
return localVarFp.apiV1InvitationsTokenAcceptPost(token, options).then((request) => request(axios, basePath));
|
|
62367
62565
|
},
|
|
62368
62566
|
/**
|
|
62369
|
-
* Retrieves all
|
|
62370
|
-
* @summary Get
|
|
62371
|
-
* @param {number}
|
|
62567
|
+
* Retrieves all users with access to a store
|
|
62568
|
+
* @summary Get store access list
|
|
62569
|
+
* @param {number} storeId Store ID
|
|
62372
62570
|
* @param {*} [options] Override http request option.
|
|
62373
62571
|
* @throws {RequiredError}
|
|
62374
62572
|
*/
|
|
62375
|
-
|
|
62376
|
-
return localVarFp.
|
|
62573
|
+
apiV1StoresStoreIdAccessGet(storeId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreAccessResponse> {
|
|
62574
|
+
return localVarFp.apiV1StoresStoreIdAccessGet(storeId, options).then((request) => request(axios, basePath));
|
|
62377
62575
|
},
|
|
62378
62576
|
/**
|
|
62379
|
-
*
|
|
62380
|
-
* @summary
|
|
62381
|
-
* @param {number}
|
|
62577
|
+
* Grants a user access to a store
|
|
62578
|
+
* @summary Grant store access
|
|
62579
|
+
* @param {number} storeId Store ID
|
|
62580
|
+
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
62382
62581
|
* @param {*} [options] Override http request option.
|
|
62383
62582
|
* @throws {RequiredError}
|
|
62384
62583
|
*/
|
|
62385
|
-
|
|
62386
|
-
return localVarFp.
|
|
62584
|
+
apiV1StoresStoreIdAccessPost(storeId: number, dataTypesGrantStoreAccessRequest: DataTypesGrantStoreAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
62585
|
+
return localVarFp.apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options).then((request) => request(axios, basePath));
|
|
62387
62586
|
},
|
|
62388
62587
|
/**
|
|
62389
|
-
*
|
|
62390
|
-
* @summary
|
|
62391
|
-
* @param {number}
|
|
62392
|
-
* @param {
|
|
62588
|
+
* Revokes a user\'s access to a store
|
|
62589
|
+
* @summary Revoke store access
|
|
62590
|
+
* @param {number} storeId Store ID
|
|
62591
|
+
* @param {number} userId User ID
|
|
62393
62592
|
* @param {*} [options] Override http request option.
|
|
62394
62593
|
* @throws {RequiredError}
|
|
62395
62594
|
*/
|
|
62396
|
-
|
|
62397
|
-
return localVarFp.
|
|
62595
|
+
apiV1StoresStoreIdAccessUserIdDelete(storeId: number, userId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
62596
|
+
return localVarFp.apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options).then((request) => request(axios, basePath));
|
|
62398
62597
|
},
|
|
62399
62598
|
/**
|
|
62400
|
-
*
|
|
62401
|
-
* @summary
|
|
62402
|
-
* @param {number}
|
|
62403
|
-
* @param {number}
|
|
62599
|
+
* Updates a user\'s access level to a store
|
|
62600
|
+
* @summary Update store access level
|
|
62601
|
+
* @param {number} storeId Store ID
|
|
62602
|
+
* @param {number} userId User ID
|
|
62603
|
+
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
62404
62604
|
* @param {*} [options] Override http request option.
|
|
62405
62605
|
* @throws {RequiredError}
|
|
62406
62606
|
*/
|
|
62407
|
-
|
|
62408
|
-
return localVarFp.
|
|
62607
|
+
apiV1StoresStoreIdAccessUserIdPut(storeId: number, userId: number, dataTypesUpdateStoreAccessRequest: DataTypesUpdateStoreAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
62608
|
+
return localVarFp.apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options).then((request) => request(axios, basePath));
|
|
62409
62609
|
},
|
|
62410
62610
|
/**
|
|
62411
|
-
*
|
|
62412
|
-
* @summary
|
|
62413
|
-
* @param {number} orgId Organization ID
|
|
62414
|
-
* @param {number} memberId Member ID
|
|
62415
|
-
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
62611
|
+
* Retrieves all pending invitations for the user\'s organization
|
|
62612
|
+
* @summary Get pending invitations
|
|
62416
62613
|
* @param {*} [options] Override http request option.
|
|
62417
62614
|
* @throws {RequiredError}
|
|
62418
62615
|
*/
|
|
62419
|
-
|
|
62420
|
-
return localVarFp.
|
|
62616
|
+
apiV1TeamInvitationsGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesTeamInvitationsResponse> {
|
|
62617
|
+
return localVarFp.apiV1TeamInvitationsGet(options).then((request) => request(axios, basePath));
|
|
62421
62618
|
},
|
|
62422
62619
|
/**
|
|
62423
|
-
* Retrieves all
|
|
62424
|
-
* @summary Get
|
|
62425
|
-
* @param {number} storeId Store ID
|
|
62620
|
+
* Retrieves all members of the user\'s organization with their details
|
|
62621
|
+
* @summary Get all members of an organization
|
|
62426
62622
|
* @param {*} [options] Override http request option.
|
|
62427
62623
|
* @throws {RequiredError}
|
|
62428
62624
|
*/
|
|
62429
|
-
|
|
62430
|
-
return localVarFp.
|
|
62625
|
+
apiV1TeamMembersGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesOrgMembersResponse> {
|
|
62626
|
+
return localVarFp.apiV1TeamMembersGet(options).then((request) => request(axios, basePath));
|
|
62431
62627
|
},
|
|
62432
62628
|
/**
|
|
62433
|
-
*
|
|
62434
|
-
* @summary
|
|
62435
|
-
* @param {
|
|
62436
|
-
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
62629
|
+
* Sends an invitation to a user to join the user\'s organization
|
|
62630
|
+
* @summary Invite a member to join organization
|
|
62631
|
+
* @param {DataTypesInviteMemberRequest} dataTypesInviteMemberRequest Invitation details
|
|
62437
62632
|
* @param {*} [options] Override http request option.
|
|
62438
62633
|
* @throws {RequiredError}
|
|
62439
62634
|
*/
|
|
62440
|
-
|
|
62441
|
-
return localVarFp.
|
|
62635
|
+
apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest: DataTypesInviteMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesInvitationCreatedResponse> {
|
|
62636
|
+
return localVarFp.apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options).then((request) => request(axios, basePath));
|
|
62442
62637
|
},
|
|
62443
62638
|
/**
|
|
62444
|
-
*
|
|
62445
|
-
* @summary
|
|
62446
|
-
* @param {number}
|
|
62447
|
-
* @param {number} userId User ID
|
|
62639
|
+
* Removes a member from the user\'s organization
|
|
62640
|
+
* @summary Remove member from organization
|
|
62641
|
+
* @param {number} memberId Member ID
|
|
62448
62642
|
* @param {*} [options] Override http request option.
|
|
62449
62643
|
* @throws {RequiredError}
|
|
62450
62644
|
*/
|
|
62451
|
-
|
|
62452
|
-
return localVarFp.
|
|
62645
|
+
apiV1TeamMembersMemberIdDelete(memberId: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
62646
|
+
return localVarFp.apiV1TeamMembersMemberIdDelete(memberId, options).then((request) => request(axios, basePath));
|
|
62453
62647
|
},
|
|
62454
62648
|
/**
|
|
62455
|
-
* Updates a user\'s
|
|
62456
|
-
* @summary Update
|
|
62457
|
-
* @param {number}
|
|
62458
|
-
* @param {
|
|
62459
|
-
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
62649
|
+
* Updates the role of a member in the user\'s organization
|
|
62650
|
+
* @summary Update member role
|
|
62651
|
+
* @param {number} memberId Member ID
|
|
62652
|
+
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
62460
62653
|
* @param {*} [options] Override http request option.
|
|
62461
62654
|
* @throws {RequiredError}
|
|
62462
62655
|
*/
|
|
62463
|
-
|
|
62464
|
-
return localVarFp.
|
|
62656
|
+
apiV1TeamMembersMemberIdRolePut(memberId: number, dataTypesUpdateMemberRoleRequest: DataTypesUpdateMemberRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
62657
|
+
return localVarFp.apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options).then((request) => request(axios, basePath));
|
|
62465
62658
|
},
|
|
62466
62659
|
/**
|
|
62467
62660
|
* Retrieves all stores accessible to a user
|
|
@@ -62508,119 +62701,114 @@ export class TeamApi extends BaseAPI {
|
|
|
62508
62701
|
}
|
|
62509
62702
|
|
|
62510
62703
|
/**
|
|
62511
|
-
* Retrieves all
|
|
62512
|
-
* @summary Get
|
|
62513
|
-
* @param {number}
|
|
62704
|
+
* Retrieves all users with access to a store
|
|
62705
|
+
* @summary Get store access list
|
|
62706
|
+
* @param {number} storeId Store ID
|
|
62514
62707
|
* @param {*} [options] Override http request option.
|
|
62515
62708
|
* @throws {RequiredError}
|
|
62516
62709
|
* @memberof TeamApi
|
|
62517
62710
|
*/
|
|
62518
|
-
public
|
|
62519
|
-
return TeamApiFp(this.configuration).
|
|
62711
|
+
public apiV1StoresStoreIdAccessGet(storeId: number, options?: RawAxiosRequestConfig) {
|
|
62712
|
+
return TeamApiFp(this.configuration).apiV1StoresStoreIdAccessGet(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
62520
62713
|
}
|
|
62521
62714
|
|
|
62522
62715
|
/**
|
|
62523
|
-
*
|
|
62524
|
-
* @summary
|
|
62525
|
-
* @param {number}
|
|
62716
|
+
* Grants a user access to a store
|
|
62717
|
+
* @summary Grant store access
|
|
62718
|
+
* @param {number} storeId Store ID
|
|
62719
|
+
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
62526
62720
|
* @param {*} [options] Override http request option.
|
|
62527
62721
|
* @throws {RequiredError}
|
|
62528
62722
|
* @memberof TeamApi
|
|
62529
62723
|
*/
|
|
62530
|
-
public
|
|
62531
|
-
return TeamApiFp(this.configuration).
|
|
62724
|
+
public apiV1StoresStoreIdAccessPost(storeId: number, dataTypesGrantStoreAccessRequest: DataTypesGrantStoreAccessRequest, options?: RawAxiosRequestConfig) {
|
|
62725
|
+
return TeamApiFp(this.configuration).apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
62532
62726
|
}
|
|
62533
62727
|
|
|
62534
62728
|
/**
|
|
62535
|
-
*
|
|
62536
|
-
* @summary
|
|
62537
|
-
* @param {number}
|
|
62538
|
-
* @param {
|
|
62729
|
+
* Revokes a user\'s access to a store
|
|
62730
|
+
* @summary Revoke store access
|
|
62731
|
+
* @param {number} storeId Store ID
|
|
62732
|
+
* @param {number} userId User ID
|
|
62539
62733
|
* @param {*} [options] Override http request option.
|
|
62540
62734
|
* @throws {RequiredError}
|
|
62541
62735
|
* @memberof TeamApi
|
|
62542
62736
|
*/
|
|
62543
|
-
public
|
|
62544
|
-
return TeamApiFp(this.configuration).
|
|
62737
|
+
public apiV1StoresStoreIdAccessUserIdDelete(storeId: number, userId: number, options?: RawAxiosRequestConfig) {
|
|
62738
|
+
return TeamApiFp(this.configuration).apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
62545
62739
|
}
|
|
62546
62740
|
|
|
62547
62741
|
/**
|
|
62548
|
-
*
|
|
62549
|
-
* @summary
|
|
62550
|
-
* @param {number}
|
|
62551
|
-
* @param {number}
|
|
62742
|
+
* Updates a user\'s access level to a store
|
|
62743
|
+
* @summary Update store access level
|
|
62744
|
+
* @param {number} storeId Store ID
|
|
62745
|
+
* @param {number} userId User ID
|
|
62746
|
+
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
62552
62747
|
* @param {*} [options] Override http request option.
|
|
62553
62748
|
* @throws {RequiredError}
|
|
62554
62749
|
* @memberof TeamApi
|
|
62555
62750
|
*/
|
|
62556
|
-
public
|
|
62557
|
-
return TeamApiFp(this.configuration).
|
|
62751
|
+
public apiV1StoresStoreIdAccessUserIdPut(storeId: number, userId: number, dataTypesUpdateStoreAccessRequest: DataTypesUpdateStoreAccessRequest, options?: RawAxiosRequestConfig) {
|
|
62752
|
+
return TeamApiFp(this.configuration).apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
62558
62753
|
}
|
|
62559
62754
|
|
|
62560
62755
|
/**
|
|
62561
|
-
*
|
|
62562
|
-
* @summary
|
|
62563
|
-
* @param {number} orgId Organization ID
|
|
62564
|
-
* @param {number} memberId Member ID
|
|
62565
|
-
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
62756
|
+
* Retrieves all pending invitations for the user\'s organization
|
|
62757
|
+
* @summary Get pending invitations
|
|
62566
62758
|
* @param {*} [options] Override http request option.
|
|
62567
62759
|
* @throws {RequiredError}
|
|
62568
62760
|
* @memberof TeamApi
|
|
62569
62761
|
*/
|
|
62570
|
-
public
|
|
62571
|
-
return TeamApiFp(this.configuration).
|
|
62762
|
+
public apiV1TeamInvitationsGet(options?: RawAxiosRequestConfig) {
|
|
62763
|
+
return TeamApiFp(this.configuration).apiV1TeamInvitationsGet(options).then((request) => request(this.axios, this.basePath));
|
|
62572
62764
|
}
|
|
62573
62765
|
|
|
62574
62766
|
/**
|
|
62575
|
-
* Retrieves all
|
|
62576
|
-
* @summary Get
|
|
62577
|
-
* @param {number} storeId Store ID
|
|
62767
|
+
* Retrieves all members of the user\'s organization with their details
|
|
62768
|
+
* @summary Get all members of an organization
|
|
62578
62769
|
* @param {*} [options] Override http request option.
|
|
62579
62770
|
* @throws {RequiredError}
|
|
62580
62771
|
* @memberof TeamApi
|
|
62581
62772
|
*/
|
|
62582
|
-
public
|
|
62583
|
-
return TeamApiFp(this.configuration).
|
|
62773
|
+
public apiV1TeamMembersGet(options?: RawAxiosRequestConfig) {
|
|
62774
|
+
return TeamApiFp(this.configuration).apiV1TeamMembersGet(options).then((request) => request(this.axios, this.basePath));
|
|
62584
62775
|
}
|
|
62585
62776
|
|
|
62586
62777
|
/**
|
|
62587
|
-
*
|
|
62588
|
-
* @summary
|
|
62589
|
-
* @param {
|
|
62590
|
-
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
62778
|
+
* Sends an invitation to a user to join the user\'s organization
|
|
62779
|
+
* @summary Invite a member to join organization
|
|
62780
|
+
* @param {DataTypesInviteMemberRequest} dataTypesInviteMemberRequest Invitation details
|
|
62591
62781
|
* @param {*} [options] Override http request option.
|
|
62592
62782
|
* @throws {RequiredError}
|
|
62593
62783
|
* @memberof TeamApi
|
|
62594
62784
|
*/
|
|
62595
|
-
public
|
|
62596
|
-
return TeamApiFp(this.configuration).
|
|
62785
|
+
public apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest: DataTypesInviteMemberRequest, options?: RawAxiosRequestConfig) {
|
|
62786
|
+
return TeamApiFp(this.configuration).apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
62597
62787
|
}
|
|
62598
62788
|
|
|
62599
62789
|
/**
|
|
62600
|
-
*
|
|
62601
|
-
* @summary
|
|
62602
|
-
* @param {number}
|
|
62603
|
-
* @param {number} userId User ID
|
|
62790
|
+
* Removes a member from the user\'s organization
|
|
62791
|
+
* @summary Remove member from organization
|
|
62792
|
+
* @param {number} memberId Member ID
|
|
62604
62793
|
* @param {*} [options] Override http request option.
|
|
62605
62794
|
* @throws {RequiredError}
|
|
62606
62795
|
* @memberof TeamApi
|
|
62607
62796
|
*/
|
|
62608
|
-
public
|
|
62609
|
-
return TeamApiFp(this.configuration).
|
|
62797
|
+
public apiV1TeamMembersMemberIdDelete(memberId: number, options?: RawAxiosRequestConfig) {
|
|
62798
|
+
return TeamApiFp(this.configuration).apiV1TeamMembersMemberIdDelete(memberId, options).then((request) => request(this.axios, this.basePath));
|
|
62610
62799
|
}
|
|
62611
62800
|
|
|
62612
62801
|
/**
|
|
62613
|
-
* Updates a user\'s
|
|
62614
|
-
* @summary Update
|
|
62615
|
-
* @param {number}
|
|
62616
|
-
* @param {
|
|
62617
|
-
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
62802
|
+
* Updates the role of a member in the user\'s organization
|
|
62803
|
+
* @summary Update member role
|
|
62804
|
+
* @param {number} memberId Member ID
|
|
62805
|
+
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
62618
62806
|
* @param {*} [options] Override http request option.
|
|
62619
62807
|
* @throws {RequiredError}
|
|
62620
62808
|
* @memberof TeamApi
|
|
62621
62809
|
*/
|
|
62622
|
-
public
|
|
62623
|
-
return TeamApiFp(this.configuration).
|
|
62810
|
+
public apiV1TeamMembersMemberIdRolePut(memberId: number, dataTypesUpdateMemberRoleRequest: DataTypesUpdateMemberRoleRequest, options?: RawAxiosRequestConfig) {
|
|
62811
|
+
return TeamApiFp(this.configuration).apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
62624
62812
|
}
|
|
62625
62813
|
|
|
62626
62814
|
/**
|