@flipdish/authorization 0.0.6-rc.1779812558 → 0.0.6-rc.1779813076
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 +2 -2
- package/api.ts +16 -16
- package/configuration.ts +1 -1
- package/dist/api.d.ts +8 -8
- package/dist/api.js +16 -16
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ const userPermissions = new UserPermissionsApi(
|
|
|
48
48
|
describe("Authorization Tests", () => {
|
|
49
49
|
describe("Authorization", () => {
|
|
50
50
|
test("List Permissions", async () => {
|
|
51
|
-
const permissionsResponse = await configurationData.
|
|
51
|
+
const permissionsResponse = await configurationData.configListPermissions();
|
|
52
52
|
expect(permissionsResponse.status).toBe(200);
|
|
53
53
|
expect(permissionsResponse.data.permissions).toBeDefined();
|
|
54
54
|
expect(permissionsResponse.data.permissions.length).toBeGreaterThan(0);
|
|
@@ -70,7 +70,7 @@ describe("Authorization Tests", () => {
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
test("List named roles", async () => {
|
|
73
|
-
const namedRolesResponse = await configurationData.
|
|
73
|
+
const namedRolesResponse = await configurationData.configListRoles();
|
|
74
74
|
expect(namedRolesResponse.status).toBe(200);
|
|
75
75
|
expect(namedRolesResponse.data.roles).toBeDefined();
|
|
76
76
|
expect(namedRolesResponse.data.roles.length).toBeGreaterThan(0);
|
package/api.ts
CHANGED
|
@@ -2333,7 +2333,7 @@ export const ConfigurationDataApiAxiosParamCreator = function (configuration?: C
|
|
|
2333
2333
|
* @param {*} [options] Override http request option.
|
|
2334
2334
|
* @throws {RequiredError}
|
|
2335
2335
|
*/
|
|
2336
|
-
|
|
2336
|
+
listPermissions: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2337
2337
|
const localVarPath = `/config/permissions`;
|
|
2338
2338
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2339
2339
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2366,7 +2366,7 @@ export const ConfigurationDataApiAxiosParamCreator = function (configuration?: C
|
|
|
2366
2366
|
* @param {*} [options] Override http request option.
|
|
2367
2367
|
* @throws {RequiredError}
|
|
2368
2368
|
*/
|
|
2369
|
-
|
|
2369
|
+
listRoles: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2370
2370
|
const localVarPath = `/config/roles`;
|
|
2371
2371
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2372
2372
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2409,10 +2409,10 @@ export const ConfigurationDataApiFp = function(configuration?: Configuration) {
|
|
|
2409
2409
|
* @param {*} [options] Override http request option.
|
|
2410
2410
|
* @throws {RequiredError}
|
|
2411
2411
|
*/
|
|
2412
|
-
async
|
|
2413
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2412
|
+
async listPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsSuccessResponse>> {
|
|
2413
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPermissions(options);
|
|
2414
2414
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2415
|
-
const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.
|
|
2415
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listPermissions']?.[localVarOperationServerIndex]?.url;
|
|
2416
2416
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2417
2417
|
},
|
|
2418
2418
|
/**
|
|
@@ -2421,10 +2421,10 @@ export const ConfigurationDataApiFp = function(configuration?: Configuration) {
|
|
|
2421
2421
|
* @param {*} [options] Override http request option.
|
|
2422
2422
|
* @throws {RequiredError}
|
|
2423
2423
|
*/
|
|
2424
|
-
async
|
|
2425
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2424
|
+
async listRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesSuccessResponse>> {
|
|
2425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(options);
|
|
2426
2426
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2427
|
-
const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.
|
|
2427
|
+
const localVarOperationServerBasePath = operationServerMap['ConfigurationDataApi.listRoles']?.[localVarOperationServerIndex]?.url;
|
|
2428
2428
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2429
2429
|
},
|
|
2430
2430
|
}
|
|
@@ -2443,8 +2443,8 @@ export const ConfigurationDataApiFactory = function (configuration?: Configurati
|
|
|
2443
2443
|
* @param {*} [options] Override http request option.
|
|
2444
2444
|
* @throws {RequiredError}
|
|
2445
2445
|
*/
|
|
2446
|
-
|
|
2447
|
-
return localVarFp.
|
|
2446
|
+
listPermissions(options?: RawAxiosRequestConfig): AxiosPromise<ListPermissionsSuccessResponse> {
|
|
2447
|
+
return localVarFp.listPermissions(options).then((request) => request(axios, basePath));
|
|
2448
2448
|
},
|
|
2449
2449
|
/**
|
|
2450
2450
|
* List the available roles
|
|
@@ -2452,8 +2452,8 @@ export const ConfigurationDataApiFactory = function (configuration?: Configurati
|
|
|
2452
2452
|
* @param {*} [options] Override http request option.
|
|
2453
2453
|
* @throws {RequiredError}
|
|
2454
2454
|
*/
|
|
2455
|
-
|
|
2456
|
-
return localVarFp.
|
|
2455
|
+
listRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListRolesSuccessResponse> {
|
|
2456
|
+
return localVarFp.listRoles(options).then((request) => request(axios, basePath));
|
|
2457
2457
|
},
|
|
2458
2458
|
};
|
|
2459
2459
|
};
|
|
@@ -2472,8 +2472,8 @@ export class ConfigurationDataApi extends BaseAPI {
|
|
|
2472
2472
|
* @throws {RequiredError}
|
|
2473
2473
|
* @memberof ConfigurationDataApi
|
|
2474
2474
|
*/
|
|
2475
|
-
public
|
|
2476
|
-
return ConfigurationDataApiFp(this.configuration).
|
|
2475
|
+
public listPermissions(options?: RawAxiosRequestConfig) {
|
|
2476
|
+
return ConfigurationDataApiFp(this.configuration).listPermissions(options).then((request) => request(this.axios, this.basePath));
|
|
2477
2477
|
}
|
|
2478
2478
|
|
|
2479
2479
|
/**
|
|
@@ -2483,8 +2483,8 @@ export class ConfigurationDataApi extends BaseAPI {
|
|
|
2483
2483
|
* @throws {RequiredError}
|
|
2484
2484
|
* @memberof ConfigurationDataApi
|
|
2485
2485
|
*/
|
|
2486
|
-
public
|
|
2487
|
-
return ConfigurationDataApiFp(this.configuration).
|
|
2486
|
+
public listRoles(options?: RawAxiosRequestConfig) {
|
|
2487
|
+
return ConfigurationDataApiFp(this.configuration).listRoles(options).then((request) => request(this.axios, this.basePath));
|
|
2488
2488
|
}
|
|
2489
2489
|
}
|
|
2490
2490
|
|
package/configuration.ts
CHANGED
|
@@ -100,7 +100,7 @@ export class Configuration {
|
|
|
100
100
|
|
|
101
101
|
const extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
102
102
|
headers: {
|
|
103
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.0.6-rc.
|
|
103
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.6-rc.1779813076"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1864,14 +1864,14 @@ export declare const ConfigurationDataApiAxiosParamCreator: (configuration?: Con
|
|
|
1864
1864
|
* @param {*} [options] Override http request option.
|
|
1865
1865
|
* @throws {RequiredError}
|
|
1866
1866
|
*/
|
|
1867
|
-
|
|
1867
|
+
listPermissions: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1868
1868
|
/**
|
|
1869
1869
|
* List the available roles
|
|
1870
1870
|
* @summary List Roles
|
|
1871
1871
|
* @param {*} [options] Override http request option.
|
|
1872
1872
|
* @throws {RequiredError}
|
|
1873
1873
|
*/
|
|
1874
|
-
|
|
1874
|
+
listRoles: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1875
1875
|
};
|
|
1876
1876
|
/**
|
|
1877
1877
|
* ConfigurationDataApi - functional programming interface
|
|
@@ -1884,14 +1884,14 @@ export declare const ConfigurationDataApiFp: (configuration?: Configuration) =>
|
|
|
1884
1884
|
* @param {*} [options] Override http request option.
|
|
1885
1885
|
* @throws {RequiredError}
|
|
1886
1886
|
*/
|
|
1887
|
-
|
|
1887
|
+
listPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPermissionsSuccessResponse>>;
|
|
1888
1888
|
/**
|
|
1889
1889
|
* List the available roles
|
|
1890
1890
|
* @summary List Roles
|
|
1891
1891
|
* @param {*} [options] Override http request option.
|
|
1892
1892
|
* @throws {RequiredError}
|
|
1893
1893
|
*/
|
|
1894
|
-
|
|
1894
|
+
listRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesSuccessResponse>>;
|
|
1895
1895
|
};
|
|
1896
1896
|
/**
|
|
1897
1897
|
* ConfigurationDataApi - factory interface
|
|
@@ -1904,14 +1904,14 @@ export declare const ConfigurationDataApiFactory: (configuration?: Configuration
|
|
|
1904
1904
|
* @param {*} [options] Override http request option.
|
|
1905
1905
|
* @throws {RequiredError}
|
|
1906
1906
|
*/
|
|
1907
|
-
|
|
1907
|
+
listPermissions(options?: RawAxiosRequestConfig): AxiosPromise<ListPermissionsSuccessResponse>;
|
|
1908
1908
|
/**
|
|
1909
1909
|
* List the available roles
|
|
1910
1910
|
* @summary List Roles
|
|
1911
1911
|
* @param {*} [options] Override http request option.
|
|
1912
1912
|
* @throws {RequiredError}
|
|
1913
1913
|
*/
|
|
1914
|
-
|
|
1914
|
+
listRoles(options?: RawAxiosRequestConfig): AxiosPromise<ListRolesSuccessResponse>;
|
|
1915
1915
|
};
|
|
1916
1916
|
/**
|
|
1917
1917
|
* ConfigurationDataApi - object-oriented interface
|
|
@@ -1927,7 +1927,7 @@ export declare class ConfigurationDataApi extends BaseAPI {
|
|
|
1927
1927
|
* @throws {RequiredError}
|
|
1928
1928
|
* @memberof ConfigurationDataApi
|
|
1929
1929
|
*/
|
|
1930
|
-
|
|
1930
|
+
listPermissions(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPermissionsSuccessResponse, any, {}>>;
|
|
1931
1931
|
/**
|
|
1932
1932
|
* List the available roles
|
|
1933
1933
|
* @summary List Roles
|
|
@@ -1935,7 +1935,7 @@ export declare class ConfigurationDataApi extends BaseAPI {
|
|
|
1935
1935
|
* @throws {RequiredError}
|
|
1936
1936
|
* @memberof ConfigurationDataApi
|
|
1937
1937
|
*/
|
|
1938
|
-
|
|
1938
|
+
listRoles(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRolesSuccessResponse, any, {}>>;
|
|
1939
1939
|
}
|
|
1940
1940
|
/**
|
|
1941
1941
|
* RoleAssignmentApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -1382,7 +1382,7 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1382
1382
|
* @param {*} [options] Override http request option.
|
|
1383
1383
|
* @throws {RequiredError}
|
|
1384
1384
|
*/
|
|
1385
|
-
|
|
1385
|
+
listPermissions: function () {
|
|
1386
1386
|
var args_1 = [];
|
|
1387
1387
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1388
1388
|
args_1[_i] = arguments[_i];
|
|
@@ -1423,7 +1423,7 @@ var ConfigurationDataApiAxiosParamCreator = function (configuration) {
|
|
|
1423
1423
|
* @param {*} [options] Override http request option.
|
|
1424
1424
|
* @throws {RequiredError}
|
|
1425
1425
|
*/
|
|
1426
|
-
|
|
1426
|
+
listRoles: function () {
|
|
1427
1427
|
var args_1 = [];
|
|
1428
1428
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1429
1429
|
args_1[_i] = arguments[_i];
|
|
@@ -1474,17 +1474,17 @@ var ConfigurationDataApiFp = function (configuration) {
|
|
|
1474
1474
|
* @param {*} [options] Override http request option.
|
|
1475
1475
|
* @throws {RequiredError}
|
|
1476
1476
|
*/
|
|
1477
|
-
|
|
1477
|
+
listPermissions: function (options) {
|
|
1478
1478
|
return __awaiter(this, void 0, void 0, function () {
|
|
1479
1479
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1480
1480
|
var _a, _b, _c;
|
|
1481
1481
|
return __generator(this, function (_d) {
|
|
1482
1482
|
switch (_d.label) {
|
|
1483
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1483
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPermissions(options)];
|
|
1484
1484
|
case 1:
|
|
1485
1485
|
localVarAxiosArgs = _d.sent();
|
|
1486
1486
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1487
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.
|
|
1487
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listPermissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1488
1488
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1489
1489
|
}
|
|
1490
1490
|
});
|
|
@@ -1496,17 +1496,17 @@ var ConfigurationDataApiFp = function (configuration) {
|
|
|
1496
1496
|
* @param {*} [options] Override http request option.
|
|
1497
1497
|
* @throws {RequiredError}
|
|
1498
1498
|
*/
|
|
1499
|
-
|
|
1499
|
+
listRoles: function (options) {
|
|
1500
1500
|
return __awaiter(this, void 0, void 0, function () {
|
|
1501
1501
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1502
1502
|
var _a, _b, _c;
|
|
1503
1503
|
return __generator(this, function (_d) {
|
|
1504
1504
|
switch (_d.label) {
|
|
1505
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1505
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(options)];
|
|
1506
1506
|
case 1:
|
|
1507
1507
|
localVarAxiosArgs = _d.sent();
|
|
1508
1508
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1509
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.
|
|
1509
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConfigurationDataApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1510
1510
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1511
1511
|
}
|
|
1512
1512
|
});
|
|
@@ -1528,8 +1528,8 @@ var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
|
|
|
1528
1528
|
* @param {*} [options] Override http request option.
|
|
1529
1529
|
* @throws {RequiredError}
|
|
1530
1530
|
*/
|
|
1531
|
-
|
|
1532
|
-
return localVarFp.
|
|
1531
|
+
listPermissions: function (options) {
|
|
1532
|
+
return localVarFp.listPermissions(options).then(function (request) { return request(axios, basePath); });
|
|
1533
1533
|
},
|
|
1534
1534
|
/**
|
|
1535
1535
|
* List the available roles
|
|
@@ -1537,8 +1537,8 @@ var ConfigurationDataApiFactory = function (configuration, basePath, axios) {
|
|
|
1537
1537
|
* @param {*} [options] Override http request option.
|
|
1538
1538
|
* @throws {RequiredError}
|
|
1539
1539
|
*/
|
|
1540
|
-
|
|
1541
|
-
return localVarFp.
|
|
1540
|
+
listRoles: function (options) {
|
|
1541
|
+
return localVarFp.listRoles(options).then(function (request) { return request(axios, basePath); });
|
|
1542
1542
|
},
|
|
1543
1543
|
};
|
|
1544
1544
|
};
|
|
@@ -1561,9 +1561,9 @@ var ConfigurationDataApi = /** @class */ (function (_super) {
|
|
|
1561
1561
|
* @throws {RequiredError}
|
|
1562
1562
|
* @memberof ConfigurationDataApi
|
|
1563
1563
|
*/
|
|
1564
|
-
ConfigurationDataApi.prototype.
|
|
1564
|
+
ConfigurationDataApi.prototype.listPermissions = function (options) {
|
|
1565
1565
|
var _this = this;
|
|
1566
|
-
return (0, exports.ConfigurationDataApiFp)(this.configuration).
|
|
1566
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1567
1567
|
};
|
|
1568
1568
|
/**
|
|
1569
1569
|
* List the available roles
|
|
@@ -1572,9 +1572,9 @@ var ConfigurationDataApi = /** @class */ (function (_super) {
|
|
|
1572
1572
|
* @throws {RequiredError}
|
|
1573
1573
|
* @memberof ConfigurationDataApi
|
|
1574
1574
|
*/
|
|
1575
|
-
ConfigurationDataApi.prototype.
|
|
1575
|
+
ConfigurationDataApi.prototype.listRoles = function (options) {
|
|
1576
1576
|
var _this = this;
|
|
1577
|
-
return (0, exports.ConfigurationDataApiFp)(this.configuration).
|
|
1577
|
+
return (0, exports.ConfigurationDataApiFp)(this.configuration).listRoles(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1578
1578
|
};
|
|
1579
1579
|
return ConfigurationDataApi;
|
|
1580
1580
|
}(base_1.BaseAPI));
|
package/dist/configuration.js
CHANGED
|
@@ -36,7 +36,7 @@ var Configuration = /** @class */ (function () {
|
|
|
36
36
|
this.serverIndex = param.serverIndex;
|
|
37
37
|
var extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
38
38
|
headers: {
|
|
39
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.0.6-rc.
|
|
39
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.6-rc.1779813076"
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
|