@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/dist/esm/api.js
CHANGED
|
@@ -1182,6 +1182,109 @@ export class AccountSettingsApi extends BaseAPI {
|
|
|
1182
1182
|
return AccountSettingsApiFp(this.configuration).accountSettingsSetPasswordPut(dataTypesSetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
+
/**
|
|
1186
|
+
* AdminAnalyticsApi - axios parameter creator
|
|
1187
|
+
* @export
|
|
1188
|
+
*/
|
|
1189
|
+
export const AdminAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
1190
|
+
return {
|
|
1191
|
+
/**
|
|
1192
|
+
* Enables or disables test mode for analytics. When enabled, events will be published to analytics_events_test queue with detailed logging.
|
|
1193
|
+
* @summary Enable/Disable analytics test mode (Admin)
|
|
1194
|
+
* @param {object} body Test mode status
|
|
1195
|
+
* @param {*} [options] Override http request option.
|
|
1196
|
+
* @throws {RequiredError}
|
|
1197
|
+
*/
|
|
1198
|
+
v1AdminAnalyticsTestModePost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1199
|
+
// verify required parameter 'body' is not null or undefined
|
|
1200
|
+
assertParamExists('v1AdminAnalyticsTestModePost', 'body', body);
|
|
1201
|
+
const localVarPath = `/v1/admin/analytics/test-mode`;
|
|
1202
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1203
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1204
|
+
let baseOptions;
|
|
1205
|
+
if (configuration) {
|
|
1206
|
+
baseOptions = configuration.baseOptions;
|
|
1207
|
+
}
|
|
1208
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1209
|
+
const localVarHeaderParameter = {};
|
|
1210
|
+
const localVarQueryParameter = {};
|
|
1211
|
+
// authentication BearerAuth required
|
|
1212
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1213
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1216
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1217
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1218
|
+
return {
|
|
1219
|
+
url: toPathString(localVarUrlObj),
|
|
1220
|
+
options: localVarRequestOptions,
|
|
1221
|
+
};
|
|
1222
|
+
}),
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
/**
|
|
1226
|
+
* AdminAnalyticsApi - functional programming interface
|
|
1227
|
+
* @export
|
|
1228
|
+
*/
|
|
1229
|
+
export const AdminAnalyticsApiFp = function (configuration) {
|
|
1230
|
+
const localVarAxiosParamCreator = AdminAnalyticsApiAxiosParamCreator(configuration);
|
|
1231
|
+
return {
|
|
1232
|
+
/**
|
|
1233
|
+
* Enables or disables test mode for analytics. When enabled, events will be published to analytics_events_test queue with detailed logging.
|
|
1234
|
+
* @summary Enable/Disable analytics test mode (Admin)
|
|
1235
|
+
* @param {object} body Test mode status
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
v1AdminAnalyticsTestModePost(body, options) {
|
|
1240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1241
|
+
var _a, _b, _c;
|
|
1242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminAnalyticsTestModePost(body, options);
|
|
1243
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1244
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminAnalyticsApi.v1AdminAnalyticsTestModePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1245
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1246
|
+
});
|
|
1247
|
+
},
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
/**
|
|
1251
|
+
* AdminAnalyticsApi - factory interface
|
|
1252
|
+
* @export
|
|
1253
|
+
*/
|
|
1254
|
+
export const AdminAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
1255
|
+
const localVarFp = AdminAnalyticsApiFp(configuration);
|
|
1256
|
+
return {
|
|
1257
|
+
/**
|
|
1258
|
+
* Enables or disables test mode for analytics. When enabled, events will be published to analytics_events_test queue with detailed logging.
|
|
1259
|
+
* @summary Enable/Disable analytics test mode (Admin)
|
|
1260
|
+
* @param {object} body Test mode status
|
|
1261
|
+
* @param {*} [options] Override http request option.
|
|
1262
|
+
* @throws {RequiredError}
|
|
1263
|
+
*/
|
|
1264
|
+
v1AdminAnalyticsTestModePost(body, options) {
|
|
1265
|
+
return localVarFp.v1AdminAnalyticsTestModePost(body, options).then((request) => request(axios, basePath));
|
|
1266
|
+
},
|
|
1267
|
+
};
|
|
1268
|
+
};
|
|
1269
|
+
/**
|
|
1270
|
+
* AdminAnalyticsApi - object-oriented interface
|
|
1271
|
+
* @export
|
|
1272
|
+
* @class AdminAnalyticsApi
|
|
1273
|
+
* @extends {BaseAPI}
|
|
1274
|
+
*/
|
|
1275
|
+
export class AdminAnalyticsApi extends BaseAPI {
|
|
1276
|
+
/**
|
|
1277
|
+
* Enables or disables test mode for analytics. When enabled, events will be published to analytics_events_test queue with detailed logging.
|
|
1278
|
+
* @summary Enable/Disable analytics test mode (Admin)
|
|
1279
|
+
* @param {object} body Test mode status
|
|
1280
|
+
* @param {*} [options] Override http request option.
|
|
1281
|
+
* @throws {RequiredError}
|
|
1282
|
+
* @memberof AdminAnalyticsApi
|
|
1283
|
+
*/
|
|
1284
|
+
v1AdminAnalyticsTestModePost(body, options) {
|
|
1285
|
+
return AdminAnalyticsApiFp(this.configuration).v1AdminAnalyticsTestModePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1185
1288
|
/**
|
|
1186
1289
|
* AdminNotificationTemplatesApi - axios parameter creator
|
|
1187
1290
|
* @export
|
|
@@ -1918,6 +2021,38 @@ export const AdminNotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
1918
2021
|
options: localVarRequestOptions,
|
|
1919
2022
|
};
|
|
1920
2023
|
}),
|
|
2024
|
+
/**
|
|
2025
|
+
* Enables or disables test mode for notifications. When enabled, notifications will be published to test queue with detailed logging.
|
|
2026
|
+
* @summary Enable/Disable notification test mode (Admin)
|
|
2027
|
+
* @param {object} body Test mode status
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
*/
|
|
2031
|
+
v1AdminNotificationsTestModePost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
2032
|
+
// verify required parameter 'body' is not null or undefined
|
|
2033
|
+
assertParamExists('v1AdminNotificationsTestModePost', 'body', body);
|
|
2034
|
+
const localVarPath = `/v1/admin/notifications/test/mode`;
|
|
2035
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2036
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2037
|
+
let baseOptions;
|
|
2038
|
+
if (configuration) {
|
|
2039
|
+
baseOptions = configuration.baseOptions;
|
|
2040
|
+
}
|
|
2041
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2042
|
+
const localVarHeaderParameter = {};
|
|
2043
|
+
const localVarQueryParameter = {};
|
|
2044
|
+
// authentication BearerAuth required
|
|
2045
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2046
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2047
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2048
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2049
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2050
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
2051
|
+
return {
|
|
2052
|
+
url: toPathString(localVarUrlObj),
|
|
2053
|
+
options: localVarRequestOptions,
|
|
2054
|
+
};
|
|
2055
|
+
}),
|
|
1921
2056
|
/**
|
|
1922
2057
|
* Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
|
|
1923
2058
|
* @summary Send test notification (Admin)
|
|
@@ -2109,6 +2244,22 @@ export const AdminNotificationsApiFp = function (configuration) {
|
|
|
2109
2244
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2110
2245
|
});
|
|
2111
2246
|
},
|
|
2247
|
+
/**
|
|
2248
|
+
* Enables or disables test mode for notifications. When enabled, notifications will be published to test queue with detailed logging.
|
|
2249
|
+
* @summary Enable/Disable notification test mode (Admin)
|
|
2250
|
+
* @param {object} body Test mode status
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
*/
|
|
2254
|
+
v1AdminNotificationsTestModePost(body, options) {
|
|
2255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2256
|
+
var _a, _b, _c;
|
|
2257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminNotificationsTestModePost(body, options);
|
|
2258
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2259
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AdminNotificationsApi.v1AdminNotificationsTestModePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2260
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2261
|
+
});
|
|
2262
|
+
},
|
|
2112
2263
|
/**
|
|
2113
2264
|
* Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
|
|
2114
2265
|
* @summary Send test notification (Admin)
|
|
@@ -2225,6 +2376,16 @@ export const AdminNotificationsApiFactory = function (configuration, basePath, a
|
|
|
2225
2376
|
v1AdminNotificationsStatsGet(startDate, endDate, options) {
|
|
2226
2377
|
return localVarFp.v1AdminNotificationsStatsGet(startDate, endDate, options).then((request) => request(axios, basePath));
|
|
2227
2378
|
},
|
|
2379
|
+
/**
|
|
2380
|
+
* Enables or disables test mode for notifications. When enabled, notifications will be published to test queue with detailed logging.
|
|
2381
|
+
* @summary Enable/Disable notification test mode (Admin)
|
|
2382
|
+
* @param {object} body Test mode status
|
|
2383
|
+
* @param {*} [options] Override http request option.
|
|
2384
|
+
* @throws {RequiredError}
|
|
2385
|
+
*/
|
|
2386
|
+
v1AdminNotificationsTestModePost(body, options) {
|
|
2387
|
+
return localVarFp.v1AdminNotificationsTestModePost(body, options).then((request) => request(axios, basePath));
|
|
2388
|
+
},
|
|
2228
2389
|
/**
|
|
2229
2390
|
* Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
|
|
2230
2391
|
* @summary Send test notification (Admin)
|
|
@@ -2344,6 +2505,17 @@ export class AdminNotificationsApi extends BaseAPI {
|
|
|
2344
2505
|
v1AdminNotificationsStatsGet(startDate, endDate, options) {
|
|
2345
2506
|
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsStatsGet(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
2346
2507
|
}
|
|
2508
|
+
/**
|
|
2509
|
+
* Enables or disables test mode for notifications. When enabled, notifications will be published to test queue with detailed logging.
|
|
2510
|
+
* @summary Enable/Disable notification test mode (Admin)
|
|
2511
|
+
* @param {object} body Test mode status
|
|
2512
|
+
* @param {*} [options] Override http request option.
|
|
2513
|
+
* @throws {RequiredError}
|
|
2514
|
+
* @memberof AdminNotificationsApi
|
|
2515
|
+
*/
|
|
2516
|
+
v1AdminNotificationsTestModePost(body, options) {
|
|
2517
|
+
return AdminNotificationsApiFp(this.configuration).v1AdminNotificationsTestModePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
2518
|
+
}
|
|
2347
2519
|
/**
|
|
2348
2520
|
* Sends a test notification event to RabbitMQ to verify go-consumer is working. Supports different notification types via template_code parameter.
|
|
2349
2521
|
* @summary Send test notification (Admin)
|
|
@@ -34259,17 +34431,17 @@ export const TeamApiAxiosParamCreator = function (configuration) {
|
|
|
34259
34431
|
};
|
|
34260
34432
|
}),
|
|
34261
34433
|
/**
|
|
34262
|
-
* Retrieves all
|
|
34263
|
-
* @summary Get
|
|
34264
|
-
* @param {number}
|
|
34434
|
+
* Retrieves all users with access to a store
|
|
34435
|
+
* @summary Get store access list
|
|
34436
|
+
* @param {number} storeId Store ID
|
|
34265
34437
|
* @param {*} [options] Override http request option.
|
|
34266
34438
|
* @throws {RequiredError}
|
|
34267
34439
|
*/
|
|
34268
|
-
|
|
34269
|
-
// verify required parameter '
|
|
34270
|
-
assertParamExists('
|
|
34271
|
-
const localVarPath = `/api/v1/
|
|
34272
|
-
.replace(`{${"
|
|
34440
|
+
apiV1StoresStoreIdAccessGet: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
|
|
34441
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
34442
|
+
assertParamExists('apiV1StoresStoreIdAccessGet', 'storeId', storeId);
|
|
34443
|
+
const localVarPath = `/api/v1/stores/{storeId}/access`
|
|
34444
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
34273
34445
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34274
34446
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34275
34447
|
let baseOptions;
|
|
@@ -34290,159 +34462,151 @@ export const TeamApiAxiosParamCreator = function (configuration) {
|
|
|
34290
34462
|
};
|
|
34291
34463
|
}),
|
|
34292
34464
|
/**
|
|
34293
|
-
*
|
|
34294
|
-
* @summary
|
|
34295
|
-
* @param {number}
|
|
34465
|
+
* Grants a user access to a store
|
|
34466
|
+
* @summary Grant store access
|
|
34467
|
+
* @param {number} storeId Store ID
|
|
34468
|
+
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
34296
34469
|
* @param {*} [options] Override http request option.
|
|
34297
34470
|
* @throws {RequiredError}
|
|
34298
34471
|
*/
|
|
34299
|
-
|
|
34300
|
-
// verify required parameter '
|
|
34301
|
-
assertParamExists('
|
|
34302
|
-
|
|
34303
|
-
|
|
34472
|
+
apiV1StoresStoreIdAccessPost: (storeId_1, dataTypesGrantStoreAccessRequest_1, ...args_1) => __awaiter(this, [storeId_1, dataTypesGrantStoreAccessRequest_1, ...args_1], void 0, function* (storeId, dataTypesGrantStoreAccessRequest, options = {}) {
|
|
34473
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
34474
|
+
assertParamExists('apiV1StoresStoreIdAccessPost', 'storeId', storeId);
|
|
34475
|
+
// verify required parameter 'dataTypesGrantStoreAccessRequest' is not null or undefined
|
|
34476
|
+
assertParamExists('apiV1StoresStoreIdAccessPost', 'dataTypesGrantStoreAccessRequest', dataTypesGrantStoreAccessRequest);
|
|
34477
|
+
const localVarPath = `/api/v1/stores/{storeId}/access`
|
|
34478
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
34304
34479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34305
34480
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34306
34481
|
let baseOptions;
|
|
34307
34482
|
if (configuration) {
|
|
34308
34483
|
baseOptions = configuration.baseOptions;
|
|
34309
34484
|
}
|
|
34310
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
34485
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
34311
34486
|
const localVarHeaderParameter = {};
|
|
34312
34487
|
const localVarQueryParameter = {};
|
|
34313
34488
|
// authentication BearerAuth required
|
|
34314
34489
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
34490
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34315
34491
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34316
34492
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34317
34493
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34494
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesGrantStoreAccessRequest, localVarRequestOptions, configuration);
|
|
34318
34495
|
return {
|
|
34319
34496
|
url: toPathString(localVarUrlObj),
|
|
34320
34497
|
options: localVarRequestOptions,
|
|
34321
34498
|
};
|
|
34322
34499
|
}),
|
|
34323
34500
|
/**
|
|
34324
|
-
*
|
|
34325
|
-
* @summary
|
|
34326
|
-
* @param {number}
|
|
34327
|
-
* @param {
|
|
34501
|
+
* Revokes a user\'s access to a store
|
|
34502
|
+
* @summary Revoke store access
|
|
34503
|
+
* @param {number} storeId Store ID
|
|
34504
|
+
* @param {number} userId User ID
|
|
34328
34505
|
* @param {*} [options] Override http request option.
|
|
34329
34506
|
* @throws {RequiredError}
|
|
34330
34507
|
*/
|
|
34331
|
-
|
|
34332
|
-
// verify required parameter '
|
|
34333
|
-
assertParamExists('
|
|
34334
|
-
// verify required parameter '
|
|
34335
|
-
assertParamExists('
|
|
34336
|
-
const localVarPath = `/api/v1/
|
|
34337
|
-
.replace(`{${"
|
|
34508
|
+
apiV1StoresStoreIdAccessUserIdDelete: (storeId_1, userId_1, ...args_1) => __awaiter(this, [storeId_1, userId_1, ...args_1], void 0, function* (storeId, userId, options = {}) {
|
|
34509
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
34510
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdDelete', 'storeId', storeId);
|
|
34511
|
+
// verify required parameter 'userId' is not null or undefined
|
|
34512
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdDelete', 'userId', userId);
|
|
34513
|
+
const localVarPath = `/api/v1/stores/{storeId}/access/{userId}`
|
|
34514
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)))
|
|
34515
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
34338
34516
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34339
34517
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34340
34518
|
let baseOptions;
|
|
34341
34519
|
if (configuration) {
|
|
34342
34520
|
baseOptions = configuration.baseOptions;
|
|
34343
34521
|
}
|
|
34344
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
34522
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
34345
34523
|
const localVarHeaderParameter = {};
|
|
34346
34524
|
const localVarQueryParameter = {};
|
|
34347
34525
|
// authentication BearerAuth required
|
|
34348
34526
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
34349
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34350
34527
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34351
34528
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34352
34529
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34353
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesInviteMemberRequest, localVarRequestOptions, configuration);
|
|
34354
34530
|
return {
|
|
34355
34531
|
url: toPathString(localVarUrlObj),
|
|
34356
34532
|
options: localVarRequestOptions,
|
|
34357
34533
|
};
|
|
34358
34534
|
}),
|
|
34359
34535
|
/**
|
|
34360
|
-
*
|
|
34361
|
-
* @summary
|
|
34362
|
-
* @param {number}
|
|
34363
|
-
* @param {number}
|
|
34536
|
+
* Updates a user\'s access level to a store
|
|
34537
|
+
* @summary Update store access level
|
|
34538
|
+
* @param {number} storeId Store ID
|
|
34539
|
+
* @param {number} userId User ID
|
|
34540
|
+
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
34364
34541
|
* @param {*} [options] Override http request option.
|
|
34365
34542
|
* @throws {RequiredError}
|
|
34366
34543
|
*/
|
|
34367
|
-
|
|
34368
|
-
// verify required parameter '
|
|
34369
|
-
assertParamExists('
|
|
34370
|
-
// verify required parameter '
|
|
34371
|
-
assertParamExists('
|
|
34372
|
-
|
|
34373
|
-
|
|
34374
|
-
|
|
34544
|
+
apiV1StoresStoreIdAccessUserIdPut: (storeId_1, userId_1, dataTypesUpdateStoreAccessRequest_1, ...args_1) => __awaiter(this, [storeId_1, userId_1, dataTypesUpdateStoreAccessRequest_1, ...args_1], void 0, function* (storeId, userId, dataTypesUpdateStoreAccessRequest, options = {}) {
|
|
34545
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
34546
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdPut', 'storeId', storeId);
|
|
34547
|
+
// verify required parameter 'userId' is not null or undefined
|
|
34548
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdPut', 'userId', userId);
|
|
34549
|
+
// verify required parameter 'dataTypesUpdateStoreAccessRequest' is not null or undefined
|
|
34550
|
+
assertParamExists('apiV1StoresStoreIdAccessUserIdPut', 'dataTypesUpdateStoreAccessRequest', dataTypesUpdateStoreAccessRequest);
|
|
34551
|
+
const localVarPath = `/api/v1/stores/{storeId}/access/{userId}`
|
|
34552
|
+
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)))
|
|
34553
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
34375
34554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34376
34555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34377
34556
|
let baseOptions;
|
|
34378
34557
|
if (configuration) {
|
|
34379
34558
|
baseOptions = configuration.baseOptions;
|
|
34380
34559
|
}
|
|
34381
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
34560
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
34382
34561
|
const localVarHeaderParameter = {};
|
|
34383
34562
|
const localVarQueryParameter = {};
|
|
34384
34563
|
// authentication BearerAuth required
|
|
34385
34564
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
34565
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34386
34566
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34387
34567
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34388
34568
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34569
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateStoreAccessRequest, localVarRequestOptions, configuration);
|
|
34389
34570
|
return {
|
|
34390
34571
|
url: toPathString(localVarUrlObj),
|
|
34391
34572
|
options: localVarRequestOptions,
|
|
34392
34573
|
};
|
|
34393
34574
|
}),
|
|
34394
34575
|
/**
|
|
34395
|
-
*
|
|
34396
|
-
* @summary
|
|
34397
|
-
* @param {number} orgId Organization ID
|
|
34398
|
-
* @param {number} memberId Member ID
|
|
34399
|
-
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
34576
|
+
* Retrieves all pending invitations for the user\'s organization
|
|
34577
|
+
* @summary Get pending invitations
|
|
34400
34578
|
* @param {*} [options] Override http request option.
|
|
34401
34579
|
* @throws {RequiredError}
|
|
34402
34580
|
*/
|
|
34403
|
-
|
|
34404
|
-
|
|
34405
|
-
assertParamExists('apiV1OrganizationsOrgIdMembersMemberIdRolePut', 'orgId', orgId);
|
|
34406
|
-
// verify required parameter 'memberId' is not null or undefined
|
|
34407
|
-
assertParamExists('apiV1OrganizationsOrgIdMembersMemberIdRolePut', 'memberId', memberId);
|
|
34408
|
-
// verify required parameter 'dataTypesUpdateMemberRoleRequest' is not null or undefined
|
|
34409
|
-
assertParamExists('apiV1OrganizationsOrgIdMembersMemberIdRolePut', 'dataTypesUpdateMemberRoleRequest', dataTypesUpdateMemberRoleRequest);
|
|
34410
|
-
const localVarPath = `/api/v1/organizations/{orgId}/members/{memberId}/role`
|
|
34411
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
34412
|
-
.replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
|
|
34581
|
+
apiV1TeamInvitationsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
34582
|
+
const localVarPath = `/api/v1/team/invitations`;
|
|
34413
34583
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34414
34584
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34415
34585
|
let baseOptions;
|
|
34416
34586
|
if (configuration) {
|
|
34417
34587
|
baseOptions = configuration.baseOptions;
|
|
34418
34588
|
}
|
|
34419
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
34589
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
34420
34590
|
const localVarHeaderParameter = {};
|
|
34421
34591
|
const localVarQueryParameter = {};
|
|
34422
34592
|
// authentication BearerAuth required
|
|
34423
34593
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
34424
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34425
34594
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34426
34595
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34427
34596
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34428
|
-
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateMemberRoleRequest, localVarRequestOptions, configuration);
|
|
34429
34597
|
return {
|
|
34430
34598
|
url: toPathString(localVarUrlObj),
|
|
34431
34599
|
options: localVarRequestOptions,
|
|
34432
34600
|
};
|
|
34433
34601
|
}),
|
|
34434
34602
|
/**
|
|
34435
|
-
* Retrieves all
|
|
34436
|
-
* @summary Get
|
|
34437
|
-
* @param {number} storeId Store ID
|
|
34603
|
+
* Retrieves all members of the user\'s organization with their details
|
|
34604
|
+
* @summary Get all members of an organization
|
|
34438
34605
|
* @param {*} [options] Override http request option.
|
|
34439
34606
|
* @throws {RequiredError}
|
|
34440
34607
|
*/
|
|
34441
|
-
|
|
34442
|
-
|
|
34443
|
-
assertParamExists('apiV1StoresStoreIdAccessGet', 'storeId', storeId);
|
|
34444
|
-
const localVarPath = `/api/v1/stores/{storeId}/access`
|
|
34445
|
-
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
34608
|
+
apiV1TeamMembersGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
34609
|
+
const localVarPath = `/api/v1/team/members`;
|
|
34446
34610
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34447
34611
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34448
34612
|
let baseOptions;
|
|
@@ -34463,20 +34627,16 @@ export const TeamApiAxiosParamCreator = function (configuration) {
|
|
|
34463
34627
|
};
|
|
34464
34628
|
}),
|
|
34465
34629
|
/**
|
|
34466
|
-
*
|
|
34467
|
-
* @summary
|
|
34468
|
-
* @param {
|
|
34469
|
-
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
34630
|
+
* Sends an invitation to a user to join the user\'s organization
|
|
34631
|
+
* @summary Invite a member to join organization
|
|
34632
|
+
* @param {DataTypesInviteMemberRequest} dataTypesInviteMemberRequest Invitation details
|
|
34470
34633
|
* @param {*} [options] Override http request option.
|
|
34471
34634
|
* @throws {RequiredError}
|
|
34472
34635
|
*/
|
|
34473
|
-
|
|
34474
|
-
// verify required parameter '
|
|
34475
|
-
assertParamExists('
|
|
34476
|
-
|
|
34477
|
-
assertParamExists('apiV1StoresStoreIdAccessPost', 'dataTypesGrantStoreAccessRequest', dataTypesGrantStoreAccessRequest);
|
|
34478
|
-
const localVarPath = `/api/v1/stores/{storeId}/access`
|
|
34479
|
-
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
|
|
34636
|
+
apiV1TeamMembersInvitePost: (dataTypesInviteMemberRequest_1, ...args_1) => __awaiter(this, [dataTypesInviteMemberRequest_1, ...args_1], void 0, function* (dataTypesInviteMemberRequest, options = {}) {
|
|
34637
|
+
// verify required parameter 'dataTypesInviteMemberRequest' is not null or undefined
|
|
34638
|
+
assertParamExists('apiV1TeamMembersInvitePost', 'dataTypesInviteMemberRequest', dataTypesInviteMemberRequest);
|
|
34639
|
+
const localVarPath = `/api/v1/team/members/invite`;
|
|
34480
34640
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34481
34641
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34482
34642
|
let baseOptions;
|
|
@@ -34492,28 +34652,24 @@ export const TeamApiAxiosParamCreator = function (configuration) {
|
|
|
34492
34652
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34493
34653
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34494
34654
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34495
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
34655
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesInviteMemberRequest, localVarRequestOptions, configuration);
|
|
34496
34656
|
return {
|
|
34497
34657
|
url: toPathString(localVarUrlObj),
|
|
34498
34658
|
options: localVarRequestOptions,
|
|
34499
34659
|
};
|
|
34500
34660
|
}),
|
|
34501
34661
|
/**
|
|
34502
|
-
*
|
|
34503
|
-
* @summary
|
|
34504
|
-
* @param {number}
|
|
34505
|
-
* @param {number} userId User ID
|
|
34662
|
+
* Removes a member from the user\'s organization
|
|
34663
|
+
* @summary Remove member from organization
|
|
34664
|
+
* @param {number} memberId Member ID
|
|
34506
34665
|
* @param {*} [options] Override http request option.
|
|
34507
34666
|
* @throws {RequiredError}
|
|
34508
34667
|
*/
|
|
34509
|
-
|
|
34510
|
-
// verify required parameter '
|
|
34511
|
-
assertParamExists('
|
|
34512
|
-
|
|
34513
|
-
|
|
34514
|
-
const localVarPath = `/api/v1/stores/{storeId}/access/{userId}`
|
|
34515
|
-
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)))
|
|
34516
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
34668
|
+
apiV1TeamMembersMemberIdDelete: (memberId_1, ...args_1) => __awaiter(this, [memberId_1, ...args_1], void 0, function* (memberId, options = {}) {
|
|
34669
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
34670
|
+
assertParamExists('apiV1TeamMembersMemberIdDelete', 'memberId', memberId);
|
|
34671
|
+
const localVarPath = `/api/v1/team/members/{memberId}`
|
|
34672
|
+
.replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
|
|
34517
34673
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34518
34674
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34519
34675
|
let baseOptions;
|
|
@@ -34534,24 +34690,20 @@ export const TeamApiAxiosParamCreator = function (configuration) {
|
|
|
34534
34690
|
};
|
|
34535
34691
|
}),
|
|
34536
34692
|
/**
|
|
34537
|
-
* Updates a user\'s
|
|
34538
|
-
* @summary Update
|
|
34539
|
-
* @param {number}
|
|
34540
|
-
* @param {
|
|
34541
|
-
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
34693
|
+
* Updates the role of a member in the user\'s organization
|
|
34694
|
+
* @summary Update member role
|
|
34695
|
+
* @param {number} memberId Member ID
|
|
34696
|
+
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
34542
34697
|
* @param {*} [options] Override http request option.
|
|
34543
34698
|
* @throws {RequiredError}
|
|
34544
34699
|
*/
|
|
34545
|
-
|
|
34546
|
-
// verify required parameter '
|
|
34547
|
-
assertParamExists('
|
|
34548
|
-
// verify required parameter '
|
|
34549
|
-
assertParamExists('
|
|
34550
|
-
|
|
34551
|
-
|
|
34552
|
-
const localVarPath = `/api/v1/stores/{storeId}/access/{userId}`
|
|
34553
|
-
.replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)))
|
|
34554
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
34700
|
+
apiV1TeamMembersMemberIdRolePut: (memberId_1, dataTypesUpdateMemberRoleRequest_1, ...args_1) => __awaiter(this, [memberId_1, dataTypesUpdateMemberRoleRequest_1, ...args_1], void 0, function* (memberId, dataTypesUpdateMemberRoleRequest, options = {}) {
|
|
34701
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
34702
|
+
assertParamExists('apiV1TeamMembersMemberIdRolePut', 'memberId', memberId);
|
|
34703
|
+
// verify required parameter 'dataTypesUpdateMemberRoleRequest' is not null or undefined
|
|
34704
|
+
assertParamExists('apiV1TeamMembersMemberIdRolePut', 'dataTypesUpdateMemberRoleRequest', dataTypesUpdateMemberRoleRequest);
|
|
34705
|
+
const localVarPath = `/api/v1/team/members/{memberId}/role`
|
|
34706
|
+
.replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
|
|
34555
34707
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34556
34708
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34557
34709
|
let baseOptions;
|
|
@@ -34567,7 +34719,7 @@ export const TeamApiAxiosParamCreator = function (configuration) {
|
|
|
34567
34719
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34568
34720
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34569
34721
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34570
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
34722
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesUpdateMemberRoleRequest, localVarRequestOptions, configuration);
|
|
34571
34723
|
return {
|
|
34572
34724
|
url: toPathString(localVarUrlObj),
|
|
34573
34725
|
options: localVarRequestOptions,
|
|
@@ -34646,154 +34798,149 @@ export const TeamApiFp = function (configuration) {
|
|
|
34646
34798
|
});
|
|
34647
34799
|
},
|
|
34648
34800
|
/**
|
|
34649
|
-
* Retrieves all
|
|
34650
|
-
* @summary Get
|
|
34651
|
-
* @param {number}
|
|
34801
|
+
* Retrieves all users with access to a store
|
|
34802
|
+
* @summary Get store access list
|
|
34803
|
+
* @param {number} storeId Store ID
|
|
34652
34804
|
* @param {*} [options] Override http request option.
|
|
34653
34805
|
* @throws {RequiredError}
|
|
34654
34806
|
*/
|
|
34655
|
-
|
|
34807
|
+
apiV1StoresStoreIdAccessGet(storeId, options) {
|
|
34656
34808
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34657
34809
|
var _a, _b, _c;
|
|
34658
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34810
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresStoreIdAccessGet(storeId, options);
|
|
34659
34811
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34660
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34812
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1StoresStoreIdAccessGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34661
34813
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34662
34814
|
});
|
|
34663
34815
|
},
|
|
34664
34816
|
/**
|
|
34665
|
-
*
|
|
34666
|
-
* @summary
|
|
34667
|
-
* @param {number}
|
|
34817
|
+
* Grants a user access to a store
|
|
34818
|
+
* @summary Grant store access
|
|
34819
|
+
* @param {number} storeId Store ID
|
|
34820
|
+
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
34668
34821
|
* @param {*} [options] Override http request option.
|
|
34669
34822
|
* @throws {RequiredError}
|
|
34670
34823
|
*/
|
|
34671
|
-
|
|
34824
|
+
apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options) {
|
|
34672
34825
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34673
34826
|
var _a, _b, _c;
|
|
34674
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34827
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options);
|
|
34675
34828
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34676
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34829
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1StoresStoreIdAccessPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34677
34830
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34678
34831
|
});
|
|
34679
34832
|
},
|
|
34680
34833
|
/**
|
|
34681
|
-
*
|
|
34682
|
-
* @summary
|
|
34683
|
-
* @param {number}
|
|
34684
|
-
* @param {
|
|
34834
|
+
* Revokes a user\'s access to a store
|
|
34835
|
+
* @summary Revoke store access
|
|
34836
|
+
* @param {number} storeId Store ID
|
|
34837
|
+
* @param {number} userId User ID
|
|
34685
34838
|
* @param {*} [options] Override http request option.
|
|
34686
34839
|
* @throws {RequiredError}
|
|
34687
34840
|
*/
|
|
34688
|
-
|
|
34841
|
+
apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options) {
|
|
34689
34842
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34690
34843
|
var _a, _b, _c;
|
|
34691
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34844
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options);
|
|
34692
34845
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34693
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34846
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1StoresStoreIdAccessUserIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34694
34847
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34695
34848
|
});
|
|
34696
34849
|
},
|
|
34697
34850
|
/**
|
|
34698
|
-
*
|
|
34699
|
-
* @summary
|
|
34700
|
-
* @param {number}
|
|
34701
|
-
* @param {number}
|
|
34851
|
+
* Updates a user\'s access level to a store
|
|
34852
|
+
* @summary Update store access level
|
|
34853
|
+
* @param {number} storeId Store ID
|
|
34854
|
+
* @param {number} userId User ID
|
|
34855
|
+
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
34702
34856
|
* @param {*} [options] Override http request option.
|
|
34703
34857
|
* @throws {RequiredError}
|
|
34704
34858
|
*/
|
|
34705
|
-
|
|
34859
|
+
apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options) {
|
|
34706
34860
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34707
34861
|
var _a, _b, _c;
|
|
34708
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34862
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options);
|
|
34709
34863
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34710
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34864
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1StoresStoreIdAccessUserIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34711
34865
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34712
34866
|
});
|
|
34713
34867
|
},
|
|
34714
34868
|
/**
|
|
34715
|
-
*
|
|
34716
|
-
* @summary
|
|
34717
|
-
* @param {number} orgId Organization ID
|
|
34718
|
-
* @param {number} memberId Member ID
|
|
34719
|
-
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
34869
|
+
* Retrieves all pending invitations for the user\'s organization
|
|
34870
|
+
* @summary Get pending invitations
|
|
34720
34871
|
* @param {*} [options] Override http request option.
|
|
34721
34872
|
* @throws {RequiredError}
|
|
34722
34873
|
*/
|
|
34723
|
-
|
|
34874
|
+
apiV1TeamInvitationsGet(options) {
|
|
34724
34875
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34725
34876
|
var _a, _b, _c;
|
|
34726
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34877
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1TeamInvitationsGet(options);
|
|
34727
34878
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34728
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34879
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1TeamInvitationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34729
34880
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34730
34881
|
});
|
|
34731
34882
|
},
|
|
34732
34883
|
/**
|
|
34733
|
-
* Retrieves all
|
|
34734
|
-
* @summary Get
|
|
34735
|
-
* @param {number} storeId Store ID
|
|
34884
|
+
* Retrieves all members of the user\'s organization with their details
|
|
34885
|
+
* @summary Get all members of an organization
|
|
34736
34886
|
* @param {*} [options] Override http request option.
|
|
34737
34887
|
* @throws {RequiredError}
|
|
34738
34888
|
*/
|
|
34739
|
-
|
|
34889
|
+
apiV1TeamMembersGet(options) {
|
|
34740
34890
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34741
34891
|
var _a, _b, _c;
|
|
34742
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34892
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1TeamMembersGet(options);
|
|
34743
34893
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34744
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34894
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1TeamMembersGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34745
34895
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34746
34896
|
});
|
|
34747
34897
|
},
|
|
34748
34898
|
/**
|
|
34749
|
-
*
|
|
34750
|
-
* @summary
|
|
34751
|
-
* @param {
|
|
34752
|
-
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
34899
|
+
* Sends an invitation to a user to join the user\'s organization
|
|
34900
|
+
* @summary Invite a member to join organization
|
|
34901
|
+
* @param {DataTypesInviteMemberRequest} dataTypesInviteMemberRequest Invitation details
|
|
34753
34902
|
* @param {*} [options] Override http request option.
|
|
34754
34903
|
* @throws {RequiredError}
|
|
34755
34904
|
*/
|
|
34756
|
-
|
|
34905
|
+
apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options) {
|
|
34757
34906
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34758
34907
|
var _a, _b, _c;
|
|
34759
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34908
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options);
|
|
34760
34909
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34761
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34910
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1TeamMembersInvitePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34762
34911
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34763
34912
|
});
|
|
34764
34913
|
},
|
|
34765
34914
|
/**
|
|
34766
|
-
*
|
|
34767
|
-
* @summary
|
|
34768
|
-
* @param {number}
|
|
34769
|
-
* @param {number} userId User ID
|
|
34915
|
+
* Removes a member from the user\'s organization
|
|
34916
|
+
* @summary Remove member from organization
|
|
34917
|
+
* @param {number} memberId Member ID
|
|
34770
34918
|
* @param {*} [options] Override http request option.
|
|
34771
34919
|
* @throws {RequiredError}
|
|
34772
34920
|
*/
|
|
34773
|
-
|
|
34921
|
+
apiV1TeamMembersMemberIdDelete(memberId, options) {
|
|
34774
34922
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34775
34923
|
var _a, _b, _c;
|
|
34776
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34924
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1TeamMembersMemberIdDelete(memberId, options);
|
|
34777
34925
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34778
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34926
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1TeamMembersMemberIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34779
34927
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34780
34928
|
});
|
|
34781
34929
|
},
|
|
34782
34930
|
/**
|
|
34783
|
-
* Updates a user\'s
|
|
34784
|
-
* @summary Update
|
|
34785
|
-
* @param {number}
|
|
34786
|
-
* @param {
|
|
34787
|
-
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
34931
|
+
* Updates the role of a member in the user\'s organization
|
|
34932
|
+
* @summary Update member role
|
|
34933
|
+
* @param {number} memberId Member ID
|
|
34934
|
+
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
34788
34935
|
* @param {*} [options] Override http request option.
|
|
34789
34936
|
* @throws {RequiredError}
|
|
34790
34937
|
*/
|
|
34791
|
-
|
|
34938
|
+
apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options) {
|
|
34792
34939
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34793
34940
|
var _a, _b, _c;
|
|
34794
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
34941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options);
|
|
34795
34942
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34796
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.
|
|
34943
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.apiV1TeamMembersMemberIdRolePut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34797
34944
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34798
34945
|
});
|
|
34799
34946
|
},
|
|
@@ -34843,102 +34990,97 @@ export const TeamApiFactory = function (configuration, basePath, axios) {
|
|
|
34843
34990
|
return localVarFp.apiV1InvitationsTokenAcceptPost(token, options).then((request) => request(axios, basePath));
|
|
34844
34991
|
},
|
|
34845
34992
|
/**
|
|
34846
|
-
* Retrieves all
|
|
34847
|
-
* @summary Get
|
|
34848
|
-
* @param {number}
|
|
34993
|
+
* Retrieves all users with access to a store
|
|
34994
|
+
* @summary Get store access list
|
|
34995
|
+
* @param {number} storeId Store ID
|
|
34849
34996
|
* @param {*} [options] Override http request option.
|
|
34850
34997
|
* @throws {RequiredError}
|
|
34851
34998
|
*/
|
|
34852
|
-
|
|
34853
|
-
return localVarFp.
|
|
34999
|
+
apiV1StoresStoreIdAccessGet(storeId, options) {
|
|
35000
|
+
return localVarFp.apiV1StoresStoreIdAccessGet(storeId, options).then((request) => request(axios, basePath));
|
|
34854
35001
|
},
|
|
34855
35002
|
/**
|
|
34856
|
-
*
|
|
34857
|
-
* @summary
|
|
34858
|
-
* @param {number}
|
|
35003
|
+
* Grants a user access to a store
|
|
35004
|
+
* @summary Grant store access
|
|
35005
|
+
* @param {number} storeId Store ID
|
|
35006
|
+
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
34859
35007
|
* @param {*} [options] Override http request option.
|
|
34860
35008
|
* @throws {RequiredError}
|
|
34861
35009
|
*/
|
|
34862
|
-
|
|
34863
|
-
return localVarFp.
|
|
35010
|
+
apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options) {
|
|
35011
|
+
return localVarFp.apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options).then((request) => request(axios, basePath));
|
|
34864
35012
|
},
|
|
34865
35013
|
/**
|
|
34866
|
-
*
|
|
34867
|
-
* @summary
|
|
34868
|
-
* @param {number}
|
|
34869
|
-
* @param {
|
|
35014
|
+
* Revokes a user\'s access to a store
|
|
35015
|
+
* @summary Revoke store access
|
|
35016
|
+
* @param {number} storeId Store ID
|
|
35017
|
+
* @param {number} userId User ID
|
|
34870
35018
|
* @param {*} [options] Override http request option.
|
|
34871
35019
|
* @throws {RequiredError}
|
|
34872
35020
|
*/
|
|
34873
|
-
|
|
34874
|
-
return localVarFp.
|
|
35021
|
+
apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options) {
|
|
35022
|
+
return localVarFp.apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options).then((request) => request(axios, basePath));
|
|
34875
35023
|
},
|
|
34876
35024
|
/**
|
|
34877
|
-
*
|
|
34878
|
-
* @summary
|
|
34879
|
-
* @param {number}
|
|
34880
|
-
* @param {number}
|
|
35025
|
+
* Updates a user\'s access level to a store
|
|
35026
|
+
* @summary Update store access level
|
|
35027
|
+
* @param {number} storeId Store ID
|
|
35028
|
+
* @param {number} userId User ID
|
|
35029
|
+
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
34881
35030
|
* @param {*} [options] Override http request option.
|
|
34882
35031
|
* @throws {RequiredError}
|
|
34883
35032
|
*/
|
|
34884
|
-
|
|
34885
|
-
return localVarFp.
|
|
35033
|
+
apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options) {
|
|
35034
|
+
return localVarFp.apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options).then((request) => request(axios, basePath));
|
|
34886
35035
|
},
|
|
34887
35036
|
/**
|
|
34888
|
-
*
|
|
34889
|
-
* @summary
|
|
34890
|
-
* @param {number} orgId Organization ID
|
|
34891
|
-
* @param {number} memberId Member ID
|
|
34892
|
-
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
35037
|
+
* Retrieves all pending invitations for the user\'s organization
|
|
35038
|
+
* @summary Get pending invitations
|
|
34893
35039
|
* @param {*} [options] Override http request option.
|
|
34894
35040
|
* @throws {RequiredError}
|
|
34895
35041
|
*/
|
|
34896
|
-
|
|
34897
|
-
return localVarFp.
|
|
35042
|
+
apiV1TeamInvitationsGet(options) {
|
|
35043
|
+
return localVarFp.apiV1TeamInvitationsGet(options).then((request) => request(axios, basePath));
|
|
34898
35044
|
},
|
|
34899
35045
|
/**
|
|
34900
|
-
* Retrieves all
|
|
34901
|
-
* @summary Get
|
|
34902
|
-
* @param {number} storeId Store ID
|
|
35046
|
+
* Retrieves all members of the user\'s organization with their details
|
|
35047
|
+
* @summary Get all members of an organization
|
|
34903
35048
|
* @param {*} [options] Override http request option.
|
|
34904
35049
|
* @throws {RequiredError}
|
|
34905
35050
|
*/
|
|
34906
|
-
|
|
34907
|
-
return localVarFp.
|
|
35051
|
+
apiV1TeamMembersGet(options) {
|
|
35052
|
+
return localVarFp.apiV1TeamMembersGet(options).then((request) => request(axios, basePath));
|
|
34908
35053
|
},
|
|
34909
35054
|
/**
|
|
34910
|
-
*
|
|
34911
|
-
* @summary
|
|
34912
|
-
* @param {
|
|
34913
|
-
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
35055
|
+
* Sends an invitation to a user to join the user\'s organization
|
|
35056
|
+
* @summary Invite a member to join organization
|
|
35057
|
+
* @param {DataTypesInviteMemberRequest} dataTypesInviteMemberRequest Invitation details
|
|
34914
35058
|
* @param {*} [options] Override http request option.
|
|
34915
35059
|
* @throws {RequiredError}
|
|
34916
35060
|
*/
|
|
34917
|
-
|
|
34918
|
-
return localVarFp.
|
|
35061
|
+
apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options) {
|
|
35062
|
+
return localVarFp.apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options).then((request) => request(axios, basePath));
|
|
34919
35063
|
},
|
|
34920
35064
|
/**
|
|
34921
|
-
*
|
|
34922
|
-
* @summary
|
|
34923
|
-
* @param {number}
|
|
34924
|
-
* @param {number} userId User ID
|
|
35065
|
+
* Removes a member from the user\'s organization
|
|
35066
|
+
* @summary Remove member from organization
|
|
35067
|
+
* @param {number} memberId Member ID
|
|
34925
35068
|
* @param {*} [options] Override http request option.
|
|
34926
35069
|
* @throws {RequiredError}
|
|
34927
35070
|
*/
|
|
34928
|
-
|
|
34929
|
-
return localVarFp.
|
|
35071
|
+
apiV1TeamMembersMemberIdDelete(memberId, options) {
|
|
35072
|
+
return localVarFp.apiV1TeamMembersMemberIdDelete(memberId, options).then((request) => request(axios, basePath));
|
|
34930
35073
|
},
|
|
34931
35074
|
/**
|
|
34932
|
-
* Updates a user\'s
|
|
34933
|
-
* @summary Update
|
|
34934
|
-
* @param {number}
|
|
34935
|
-
* @param {
|
|
34936
|
-
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
35075
|
+
* Updates the role of a member in the user\'s organization
|
|
35076
|
+
* @summary Update member role
|
|
35077
|
+
* @param {number} memberId Member ID
|
|
35078
|
+
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
34937
35079
|
* @param {*} [options] Override http request option.
|
|
34938
35080
|
* @throws {RequiredError}
|
|
34939
35081
|
*/
|
|
34940
|
-
|
|
34941
|
-
return localVarFp.
|
|
35082
|
+
apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options) {
|
|
35083
|
+
return localVarFp.apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options).then((request) => request(axios, basePath));
|
|
34942
35084
|
},
|
|
34943
35085
|
/**
|
|
34944
35086
|
* Retrieves all stores accessible to a user
|
|
@@ -34982,111 +35124,106 @@ export class TeamApi extends BaseAPI {
|
|
|
34982
35124
|
return TeamApiFp(this.configuration).apiV1InvitationsTokenAcceptPost(token, options).then((request) => request(this.axios, this.basePath));
|
|
34983
35125
|
}
|
|
34984
35126
|
/**
|
|
34985
|
-
* Retrieves all
|
|
34986
|
-
* @summary Get
|
|
34987
|
-
* @param {number}
|
|
35127
|
+
* Retrieves all users with access to a store
|
|
35128
|
+
* @summary Get store access list
|
|
35129
|
+
* @param {number} storeId Store ID
|
|
34988
35130
|
* @param {*} [options] Override http request option.
|
|
34989
35131
|
* @throws {RequiredError}
|
|
34990
35132
|
* @memberof TeamApi
|
|
34991
35133
|
*/
|
|
34992
|
-
|
|
34993
|
-
return TeamApiFp(this.configuration).
|
|
35134
|
+
apiV1StoresStoreIdAccessGet(storeId, options) {
|
|
35135
|
+
return TeamApiFp(this.configuration).apiV1StoresStoreIdAccessGet(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
34994
35136
|
}
|
|
34995
35137
|
/**
|
|
34996
|
-
*
|
|
34997
|
-
* @summary
|
|
34998
|
-
* @param {number}
|
|
35138
|
+
* Grants a user access to a store
|
|
35139
|
+
* @summary Grant store access
|
|
35140
|
+
* @param {number} storeId Store ID
|
|
35141
|
+
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
34999
35142
|
* @param {*} [options] Override http request option.
|
|
35000
35143
|
* @throws {RequiredError}
|
|
35001
35144
|
* @memberof TeamApi
|
|
35002
35145
|
*/
|
|
35003
|
-
|
|
35004
|
-
return TeamApiFp(this.configuration).
|
|
35146
|
+
apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options) {
|
|
35147
|
+
return TeamApiFp(this.configuration).apiV1StoresStoreIdAccessPost(storeId, dataTypesGrantStoreAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35005
35148
|
}
|
|
35006
35149
|
/**
|
|
35007
|
-
*
|
|
35008
|
-
* @summary
|
|
35009
|
-
* @param {number}
|
|
35010
|
-
* @param {
|
|
35150
|
+
* Revokes a user\'s access to a store
|
|
35151
|
+
* @summary Revoke store access
|
|
35152
|
+
* @param {number} storeId Store ID
|
|
35153
|
+
* @param {number} userId User ID
|
|
35011
35154
|
* @param {*} [options] Override http request option.
|
|
35012
35155
|
* @throws {RequiredError}
|
|
35013
35156
|
* @memberof TeamApi
|
|
35014
35157
|
*/
|
|
35015
|
-
|
|
35016
|
-
return TeamApiFp(this.configuration).
|
|
35158
|
+
apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options) {
|
|
35159
|
+
return TeamApiFp(this.configuration).apiV1StoresStoreIdAccessUserIdDelete(storeId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
35017
35160
|
}
|
|
35018
35161
|
/**
|
|
35019
|
-
*
|
|
35020
|
-
* @summary
|
|
35021
|
-
* @param {number}
|
|
35022
|
-
* @param {number}
|
|
35162
|
+
* Updates a user\'s access level to a store
|
|
35163
|
+
* @summary Update store access level
|
|
35164
|
+
* @param {number} storeId Store ID
|
|
35165
|
+
* @param {number} userId User ID
|
|
35166
|
+
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
35023
35167
|
* @param {*} [options] Override http request option.
|
|
35024
35168
|
* @throws {RequiredError}
|
|
35025
35169
|
* @memberof TeamApi
|
|
35026
35170
|
*/
|
|
35027
|
-
|
|
35028
|
-
return TeamApiFp(this.configuration).
|
|
35171
|
+
apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options) {
|
|
35172
|
+
return TeamApiFp(this.configuration).apiV1StoresStoreIdAccessUserIdPut(storeId, userId, dataTypesUpdateStoreAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35029
35173
|
}
|
|
35030
35174
|
/**
|
|
35031
|
-
*
|
|
35032
|
-
* @summary
|
|
35033
|
-
* @param {number} orgId Organization ID
|
|
35034
|
-
* @param {number} memberId Member ID
|
|
35035
|
-
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
35175
|
+
* Retrieves all pending invitations for the user\'s organization
|
|
35176
|
+
* @summary Get pending invitations
|
|
35036
35177
|
* @param {*} [options] Override http request option.
|
|
35037
35178
|
* @throws {RequiredError}
|
|
35038
35179
|
* @memberof TeamApi
|
|
35039
35180
|
*/
|
|
35040
|
-
|
|
35041
|
-
return TeamApiFp(this.configuration).
|
|
35181
|
+
apiV1TeamInvitationsGet(options) {
|
|
35182
|
+
return TeamApiFp(this.configuration).apiV1TeamInvitationsGet(options).then((request) => request(this.axios, this.basePath));
|
|
35042
35183
|
}
|
|
35043
35184
|
/**
|
|
35044
|
-
* Retrieves all
|
|
35045
|
-
* @summary Get
|
|
35046
|
-
* @param {number} storeId Store ID
|
|
35185
|
+
* Retrieves all members of the user\'s organization with their details
|
|
35186
|
+
* @summary Get all members of an organization
|
|
35047
35187
|
* @param {*} [options] Override http request option.
|
|
35048
35188
|
* @throws {RequiredError}
|
|
35049
35189
|
* @memberof TeamApi
|
|
35050
35190
|
*/
|
|
35051
|
-
|
|
35052
|
-
return TeamApiFp(this.configuration).
|
|
35191
|
+
apiV1TeamMembersGet(options) {
|
|
35192
|
+
return TeamApiFp(this.configuration).apiV1TeamMembersGet(options).then((request) => request(this.axios, this.basePath));
|
|
35053
35193
|
}
|
|
35054
35194
|
/**
|
|
35055
|
-
*
|
|
35056
|
-
* @summary
|
|
35057
|
-
* @param {
|
|
35058
|
-
* @param {DataTypesGrantStoreAccessRequest} dataTypesGrantStoreAccessRequest Access details
|
|
35195
|
+
* Sends an invitation to a user to join the user\'s organization
|
|
35196
|
+
* @summary Invite a member to join organization
|
|
35197
|
+
* @param {DataTypesInviteMemberRequest} dataTypesInviteMemberRequest Invitation details
|
|
35059
35198
|
* @param {*} [options] Override http request option.
|
|
35060
35199
|
* @throws {RequiredError}
|
|
35061
35200
|
* @memberof TeamApi
|
|
35062
35201
|
*/
|
|
35063
|
-
|
|
35064
|
-
return TeamApiFp(this.configuration).
|
|
35202
|
+
apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options) {
|
|
35203
|
+
return TeamApiFp(this.configuration).apiV1TeamMembersInvitePost(dataTypesInviteMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35065
35204
|
}
|
|
35066
35205
|
/**
|
|
35067
|
-
*
|
|
35068
|
-
* @summary
|
|
35069
|
-
* @param {number}
|
|
35070
|
-
* @param {number} userId User ID
|
|
35206
|
+
* Removes a member from the user\'s organization
|
|
35207
|
+
* @summary Remove member from organization
|
|
35208
|
+
* @param {number} memberId Member ID
|
|
35071
35209
|
* @param {*} [options] Override http request option.
|
|
35072
35210
|
* @throws {RequiredError}
|
|
35073
35211
|
* @memberof TeamApi
|
|
35074
35212
|
*/
|
|
35075
|
-
|
|
35076
|
-
return TeamApiFp(this.configuration).
|
|
35213
|
+
apiV1TeamMembersMemberIdDelete(memberId, options) {
|
|
35214
|
+
return TeamApiFp(this.configuration).apiV1TeamMembersMemberIdDelete(memberId, options).then((request) => request(this.axios, this.basePath));
|
|
35077
35215
|
}
|
|
35078
35216
|
/**
|
|
35079
|
-
* Updates a user\'s
|
|
35080
|
-
* @summary Update
|
|
35081
|
-
* @param {number}
|
|
35082
|
-
* @param {
|
|
35083
|
-
* @param {DataTypesUpdateStoreAccessRequest} dataTypesUpdateStoreAccessRequest New access level
|
|
35217
|
+
* Updates the role of a member in the user\'s organization
|
|
35218
|
+
* @summary Update member role
|
|
35219
|
+
* @param {number} memberId Member ID
|
|
35220
|
+
* @param {DataTypesUpdateMemberRoleRequest} dataTypesUpdateMemberRoleRequest New role
|
|
35084
35221
|
* @param {*} [options] Override http request option.
|
|
35085
35222
|
* @throws {RequiredError}
|
|
35086
35223
|
* @memberof TeamApi
|
|
35087
35224
|
*/
|
|
35088
|
-
|
|
35089
|
-
return TeamApiFp(this.configuration).
|
|
35225
|
+
apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options) {
|
|
35226
|
+
return TeamApiFp(this.configuration).apiV1TeamMembersMemberIdRolePut(memberId, dataTypesUpdateMemberRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35090
35227
|
}
|
|
35091
35228
|
/**
|
|
35092
35229
|
* Retrieves all stores accessible to a user
|