@acomo/cli 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +69 -0
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5163,6 +5163,10 @@ __export(src_exports, {
|
|
|
5163
5163
|
UserEntityToJSON: () => UserEntityToJSON,
|
|
5164
5164
|
UserEntityToJSONTyped: () => UserEntityToJSONTyped,
|
|
5165
5165
|
UserEntityTypeEnum: () => UserEntityTypeEnum,
|
|
5166
|
+
UserLicenseUsageEntityFromJSON: () => UserLicenseUsageEntityFromJSON,
|
|
5167
|
+
UserLicenseUsageEntityFromJSONTyped: () => UserLicenseUsageEntityFromJSONTyped,
|
|
5168
|
+
UserLicenseUsageEntityToJSON: () => UserLicenseUsageEntityToJSON,
|
|
5169
|
+
UserLicenseUsageEntityToJSONTyped: () => UserLicenseUsageEntityToJSONTyped,
|
|
5166
5170
|
UsersApi: () => UsersApi,
|
|
5167
5171
|
ValidateWorkflowModelSchemaRequestFromJSON: () => ValidateWorkflowModelSchemaRequestFromJSON,
|
|
5168
5172
|
ValidateWorkflowModelSchemaRequestFromJSONTyped: () => ValidateWorkflowModelSchemaRequestFromJSONTyped,
|
|
@@ -5241,6 +5245,7 @@ __export(src_exports, {
|
|
|
5241
5245
|
instanceOfUrlEntity: () => instanceOfUrlEntity,
|
|
5242
5246
|
instanceOfUserAuthInfoEntity: () => instanceOfUserAuthInfoEntity,
|
|
5243
5247
|
instanceOfUserEntity: () => instanceOfUserEntity,
|
|
5248
|
+
instanceOfUserLicenseUsageEntity: () => instanceOfUserLicenseUsageEntity,
|
|
5244
5249
|
instanceOfValidateWorkflowModelSchemaRequest: () => instanceOfValidateWorkflowModelSchemaRequest,
|
|
5245
5250
|
instanceOfWorkflowModelEntity: () => instanceOfWorkflowModelEntity,
|
|
5246
5251
|
instanceOfWorkflowProcessEntity: () => instanceOfWorkflowProcessEntity,
|
|
@@ -8255,6 +8260,39 @@ function UserAuthInfoEntityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
8255
8260
|
};
|
|
8256
8261
|
}
|
|
8257
8262
|
|
|
8263
|
+
// ../acomo-client/dist/src/client/models/UserLicenseUsageEntity.js
|
|
8264
|
+
function instanceOfUserLicenseUsageEntity(value) {
|
|
8265
|
+
if (!("enabledUserCount" in value) || value["enabledUserCount"] === void 0)
|
|
8266
|
+
return false;
|
|
8267
|
+
if (!("maxUsers" in value) || value["maxUsers"] === void 0)
|
|
8268
|
+
return false;
|
|
8269
|
+
return true;
|
|
8270
|
+
}
|
|
8271
|
+
function UserLicenseUsageEntityFromJSON(json) {
|
|
8272
|
+
return UserLicenseUsageEntityFromJSONTyped(json, false);
|
|
8273
|
+
}
|
|
8274
|
+
function UserLicenseUsageEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
8275
|
+
if (json == null) {
|
|
8276
|
+
return json;
|
|
8277
|
+
}
|
|
8278
|
+
return {
|
|
8279
|
+
"enabledUserCount": json["enabledUserCount"],
|
|
8280
|
+
"maxUsers": json["maxUsers"]
|
|
8281
|
+
};
|
|
8282
|
+
}
|
|
8283
|
+
function UserLicenseUsageEntityToJSON(json) {
|
|
8284
|
+
return UserLicenseUsageEntityToJSONTyped(json, false);
|
|
8285
|
+
}
|
|
8286
|
+
function UserLicenseUsageEntityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8287
|
+
if (value == null) {
|
|
8288
|
+
return value;
|
|
8289
|
+
}
|
|
8290
|
+
return {
|
|
8291
|
+
"enabledUserCount": value["enabledUserCount"],
|
|
8292
|
+
"maxUsers": value["maxUsers"]
|
|
8293
|
+
};
|
|
8294
|
+
}
|
|
8295
|
+
|
|
8258
8296
|
// ../acomo-client/dist/src/client/models/ValidateWorkflowModelSchemaRequest.js
|
|
8259
8297
|
function instanceOfValidateWorkflowModelSchemaRequest(value) {
|
|
8260
8298
|
return true;
|
|
@@ -12019,6 +12057,31 @@ var UsersApi = class extends BaseAPI {
|
|
|
12019
12057
|
const response = await this.getUserAuthInfoRaw(requestParameters, initOverrides);
|
|
12020
12058
|
return await response.value();
|
|
12021
12059
|
}
|
|
12060
|
+
async getUserLicenseUsageRaw(initOverrides) {
|
|
12061
|
+
const queryParameters = {};
|
|
12062
|
+
const headerParameters = {};
|
|
12063
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
12064
|
+
const token = this.configuration.accessToken;
|
|
12065
|
+
const tokenString = await token("Authorization", []);
|
|
12066
|
+
if (tokenString) {
|
|
12067
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
12068
|
+
}
|
|
12069
|
+
}
|
|
12070
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12071
|
+
headerParameters["x-tenant-id"] = await this.configuration.apiKey("x-tenant-id");
|
|
12072
|
+
}
|
|
12073
|
+
const response = await this.request({
|
|
12074
|
+
path: `/api/v1/users/license-usage`,
|
|
12075
|
+
method: "GET",
|
|
12076
|
+
headers: headerParameters,
|
|
12077
|
+
query: queryParameters
|
|
12078
|
+
}, initOverrides);
|
|
12079
|
+
return new JSONApiResponse(response, (jsonValue) => UserLicenseUsageEntityFromJSON(jsonValue));
|
|
12080
|
+
}
|
|
12081
|
+
async getUserLicenseUsage(initOverrides) {
|
|
12082
|
+
const response = await this.getUserLicenseUsageRaw(initOverrides);
|
|
12083
|
+
return await response.value();
|
|
12084
|
+
}
|
|
12022
12085
|
async listGroupsByUserRaw(requestParameters, initOverrides) {
|
|
12023
12086
|
if (requestParameters["userId"] == null) {
|
|
12024
12087
|
throw new RequiredError("userId", 'Required parameter "userId" was null or undefined when calling listGroupsByUser().');
|
|
@@ -12925,6 +12988,7 @@ var operationDescriptions = {
|
|
|
12925
12988
|
"getTenantPlanStatus": "\u5229\u7528\u3057\u305F\u7121\u6599\u30C8\u30E9\u30A4\u30A2\u30EB\u306E\u30B5\u30D6\u30B9\u30AF\u30EA\u30D7\u30B7\u30E7\u30F3\u3092\u53D6\u5F97\u3059\u308B",
|
|
12926
12989
|
"getUser": "\u30E6\u30FC\u30B6\u30FC\u30921\u4EF6\u53D6\u5F97\u3059\u308B\u3002",
|
|
12927
12990
|
"getUserAuthInfo": "\u30E6\u30FC\u30B6\u30FC\u8A8D\u8A3C\u60C5\u5831\u30921\u4EF6\u53D6\u5F97\u3059\u308B\u3002",
|
|
12991
|
+
"getUserLicenseUsage": "\u30E9\u30A4\u30BB\u30F3\u30B9\u306B\u57FA\u3065\u304F\u30E6\u30FC\u30B6\u30FC\u6570\u4E0A\u9650\u3068\u6709\u52B9\u30E6\u30FC\u30B6\u30FC\u6570\u3092\u53D6\u5F97\u3059\u308B\u3002",
|
|
12928
12992
|
"getWorkflowModel": "\u516C\u958B\u4E2D\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u30E2\u30C7\u30EB\u30921\u4EF6\u53D6\u5F97\u3059\u308B\u3002\u516C\u958B\u4E2D\u306E\u30E2\u30C7\u30EB\u304C\u306A\u3044\u5834\u5408\u306F\u3001\u30E2\u30C7\u30EB\u5B9A\u7FA9\u306F\u7A7A\u306B\u306A\u308B\u3002",
|
|
12929
12993
|
"getWorkflowModelSchemas": "\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u30E2\u30C7\u30EB\u306EJSON Schema\u3092\u8FD4\u3059\u3002type\u3092\u6307\u5B9A\u3059\u308B\u3068\u90E8\u5206\u53D6\u5F97\u3067\u304D\u308B\u3002",
|
|
12930
12994
|
"getWorkflowModelWithLatestModelHistory": "\u7DE8\u96C6\u4E2D\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u30E2\u30C7\u30EB\u30921\u4EF6\u53D6\u5F97\u3059\u308B\u3002",
|
|
@@ -13512,6 +13576,11 @@ var operationParams = {
|
|
|
13512
13576
|
{ name: "userId", in: "path", required: true, type: "string", description: "" }
|
|
13513
13577
|
]
|
|
13514
13578
|
},
|
|
13579
|
+
"getUserLicenseUsage": {
|
|
13580
|
+
httpMethod: "GET",
|
|
13581
|
+
path: "/api/v1/users/license-usage",
|
|
13582
|
+
params: []
|
|
13583
|
+
},
|
|
13515
13584
|
"getWorkflowModel": {
|
|
13516
13585
|
httpMethod: "GET",
|
|
13517
13586
|
path: "/api/v1/models/{modelId}",
|