@uipath/platform-tool 1.198.0-preview.88 → 1.199.0-preview.91
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/tool.js +1936 -32
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -21395,7 +21395,7 @@ var require_runtime = __commonJS((exports) => {
|
|
|
21395
21395
|
}
|
|
21396
21396
|
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
21397
21397
|
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
21398
|
-
headers["X-UiPath-ApiClient-Info"] = "UiPath.LicenseAccountant.Client,1.1.
|
|
21398
|
+
headers["X-UiPath-ApiClient-Info"] = "UiPath.LicenseAccountant.Client,1.1.37,typescript";
|
|
21399
21399
|
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : () => __awaiter(this, undefined, undefined, function* () {
|
|
21400
21400
|
return initOverrides;
|
|
21401
21401
|
});
|
|
@@ -26242,6 +26242,8 @@ var require_FolderConsumptionItemDto = __commonJS((exports) => {
|
|
|
26242
26242
|
isInstance = isInstance && "parentFolderKey" in value;
|
|
26243
26243
|
isInstance = isInstance && "consumedBySelf" in value;
|
|
26244
26244
|
isInstance = isInstance && "processCountSelf" in value;
|
|
26245
|
+
isInstance = isInstance && "isPersonalWorkspace" in value;
|
|
26246
|
+
isInstance = isInstance && "isDeletedFolder" in value;
|
|
26245
26247
|
return isInstance;
|
|
26246
26248
|
}
|
|
26247
26249
|
exports.instanceOfFolderConsumptionItemDto = instanceOfFolderConsumptionItemDto;
|
|
@@ -26258,7 +26260,9 @@ var require_FolderConsumptionItemDto = __commonJS((exports) => {
|
|
|
26258
26260
|
folderName: !(0, runtime_1.exists)(json2, "folderName") ? undefined : json2["folderName"],
|
|
26259
26261
|
parentFolderKey: !(0, runtime_1.exists)(json2, "parentFolderKey") ? undefined : json2["parentFolderKey"],
|
|
26260
26262
|
consumedBySelf: !(0, runtime_1.exists)(json2, "consumedBySelf") ? undefined : json2["consumedBySelf"],
|
|
26261
|
-
processCountSelf: !(0, runtime_1.exists)(json2, "processCountSelf") ? undefined : json2["processCountSelf"]
|
|
26263
|
+
processCountSelf: !(0, runtime_1.exists)(json2, "processCountSelf") ? undefined : json2["processCountSelf"],
|
|
26264
|
+
isPersonalWorkspace: !(0, runtime_1.exists)(json2, "isPersonalWorkspace") ? undefined : json2["isPersonalWorkspace"],
|
|
26265
|
+
isDeletedFolder: !(0, runtime_1.exists)(json2, "isDeletedFolder") ? undefined : json2["isDeletedFolder"]
|
|
26262
26266
|
};
|
|
26263
26267
|
}
|
|
26264
26268
|
exports.FolderConsumptionItemDtoFromJSONTyped = FolderConsumptionItemDtoFromJSONTyped;
|
|
@@ -26274,12 +26278,55 @@ var require_FolderConsumptionItemDto = __commonJS((exports) => {
|
|
|
26274
26278
|
folderName: value.folderName,
|
|
26275
26279
|
parentFolderKey: value.parentFolderKey,
|
|
26276
26280
|
consumedBySelf: value.consumedBySelf,
|
|
26277
|
-
processCountSelf: value.processCountSelf
|
|
26281
|
+
processCountSelf: value.processCountSelf,
|
|
26282
|
+
isPersonalWorkspace: value.isPersonalWorkspace,
|
|
26283
|
+
isDeletedFolder: value.isDeletedFolder
|
|
26278
26284
|
};
|
|
26279
26285
|
}
|
|
26280
26286
|
exports.FolderConsumptionItemDtoToJSON = FolderConsumptionItemDtoToJSON;
|
|
26281
26287
|
});
|
|
26282
26288
|
|
|
26289
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/FolderFltConfigurationDto.js
|
|
26290
|
+
var require_FolderFltConfigurationDto = __commonJS((exports) => {
|
|
26291
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26292
|
+
exports.FolderFltConfigurationDtoToJSON = exports.FolderFltConfigurationDtoFromJSONTyped = exports.FolderFltConfigurationDtoFromJSON = exports.instanceOfFolderFltConfigurationDto = undefined;
|
|
26293
|
+
var runtime_1 = require_runtime();
|
|
26294
|
+
function instanceOfFolderFltConfigurationDto(value) {
|
|
26295
|
+
let isInstance = true;
|
|
26296
|
+
isInstance = isInstance && "folderKey" in value;
|
|
26297
|
+
isInstance = isInstance && "isFltEnabled" in value;
|
|
26298
|
+
return isInstance;
|
|
26299
|
+
}
|
|
26300
|
+
exports.instanceOfFolderFltConfigurationDto = instanceOfFolderFltConfigurationDto;
|
|
26301
|
+
function FolderFltConfigurationDtoFromJSON(json2) {
|
|
26302
|
+
return FolderFltConfigurationDtoFromJSONTyped(json2, false);
|
|
26303
|
+
}
|
|
26304
|
+
exports.FolderFltConfigurationDtoFromJSON = FolderFltConfigurationDtoFromJSON;
|
|
26305
|
+
function FolderFltConfigurationDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
26306
|
+
if (json2 === undefined || json2 === null) {
|
|
26307
|
+
return json2;
|
|
26308
|
+
}
|
|
26309
|
+
return {
|
|
26310
|
+
folderKey: !(0, runtime_1.exists)(json2, "folderKey") ? undefined : json2["folderKey"],
|
|
26311
|
+
isFltEnabled: !(0, runtime_1.exists)(json2, "isFltEnabled") ? undefined : json2["isFltEnabled"]
|
|
26312
|
+
};
|
|
26313
|
+
}
|
|
26314
|
+
exports.FolderFltConfigurationDtoFromJSONTyped = FolderFltConfigurationDtoFromJSONTyped;
|
|
26315
|
+
function FolderFltConfigurationDtoToJSON(value) {
|
|
26316
|
+
if (value === undefined) {
|
|
26317
|
+
return;
|
|
26318
|
+
}
|
|
26319
|
+
if (value === null) {
|
|
26320
|
+
return null;
|
|
26321
|
+
}
|
|
26322
|
+
return {
|
|
26323
|
+
folderKey: value.folderKey,
|
|
26324
|
+
isFltEnabled: value.isFltEnabled
|
|
26325
|
+
};
|
|
26326
|
+
}
|
|
26327
|
+
exports.FolderFltConfigurationDtoToJSON = FolderFltConfigurationDtoToJSON;
|
|
26328
|
+
});
|
|
26329
|
+
|
|
26283
26330
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/GetConsumptionLeaseResponseUsage.js
|
|
26284
26331
|
var require_GetConsumptionLeaseResponseUsage = __commonJS((exports) => {
|
|
26285
26332
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -26527,6 +26574,7 @@ var require_GetTenantConsumptionByFolderQuery = __commonJS((exports) => {
|
|
|
26527
26574
|
isInstance = isInstance && "consumableCode" in value;
|
|
26528
26575
|
isInstance = isInstance && "tenantId" in value;
|
|
26529
26576
|
isInstance = isInstance && "aggregateByOwnership" in value;
|
|
26577
|
+
isInstance = isInstance && "processPersonalWorkspaces" in value;
|
|
26530
26578
|
return isInstance;
|
|
26531
26579
|
}
|
|
26532
26580
|
exports.instanceOfGetTenantConsumptionByFolderQuery = instanceOfGetTenantConsumptionByFolderQuery;
|
|
@@ -26543,7 +26591,8 @@ var require_GetTenantConsumptionByFolderQuery = __commonJS((exports) => {
|
|
|
26543
26591
|
endDate: json2["endDate"],
|
|
26544
26592
|
consumableCode: json2["consumableCode"],
|
|
26545
26593
|
tenantId: json2["tenantId"],
|
|
26546
|
-
aggregateByOwnership: !(0, runtime_1.exists)(json2, "aggregateByOwnership") ? undefined : json2["aggregateByOwnership"]
|
|
26594
|
+
aggregateByOwnership: !(0, runtime_1.exists)(json2, "aggregateByOwnership") ? undefined : json2["aggregateByOwnership"],
|
|
26595
|
+
processPersonalWorkspaces: !(0, runtime_1.exists)(json2, "processPersonalWorkspaces") ? undefined : json2["processPersonalWorkspaces"]
|
|
26547
26596
|
};
|
|
26548
26597
|
}
|
|
26549
26598
|
exports.GetTenantConsumptionByFolderQueryFromJSONTyped = GetTenantConsumptionByFolderQueryFromJSONTyped;
|
|
@@ -26559,7 +26608,8 @@ var require_GetTenantConsumptionByFolderQuery = __commonJS((exports) => {
|
|
|
26559
26608
|
endDate: value.endDate,
|
|
26560
26609
|
consumableCode: value.consumableCode,
|
|
26561
26610
|
tenantId: value.tenantId,
|
|
26562
|
-
aggregateByOwnership: value.aggregateByOwnership
|
|
26611
|
+
aggregateByOwnership: value.aggregateByOwnership,
|
|
26612
|
+
processPersonalWorkspaces: value.processPersonalWorkspaces
|
|
26563
26613
|
};
|
|
26564
26614
|
}
|
|
26565
26615
|
exports.GetTenantConsumptionByFolderQueryToJSON = GetTenantConsumptionByFolderQueryToJSON;
|
|
@@ -26832,6 +26882,7 @@ var require_TenantPoolConsumptionItemDto = __commonJS((exports) => {
|
|
|
26832
26882
|
isInstance = isInstance && "tenantId" in value;
|
|
26833
26883
|
isInstance = isInstance && "consumedFromTenantPool" in value;
|
|
26834
26884
|
isInstance = isInstance && "consumedFromOrgPool" in value;
|
|
26885
|
+
isInstance = isInstance && "consumedByTopUp" in value;
|
|
26835
26886
|
return isInstance;
|
|
26836
26887
|
}
|
|
26837
26888
|
exports.instanceOfTenantPoolConsumptionItemDto = instanceOfTenantPoolConsumptionItemDto;
|
|
@@ -26846,7 +26897,8 @@ var require_TenantPoolConsumptionItemDto = __commonJS((exports) => {
|
|
|
26846
26897
|
return {
|
|
26847
26898
|
tenantId: !(0, runtime_1.exists)(json2, "tenantId") ? undefined : json2["tenantId"],
|
|
26848
26899
|
consumedFromTenantPool: !(0, runtime_1.exists)(json2, "consumedFromTenantPool") ? undefined : json2["consumedFromTenantPool"],
|
|
26849
|
-
consumedFromOrgPool: !(0, runtime_1.exists)(json2, "consumedFromOrgPool") ? undefined : json2["consumedFromOrgPool"]
|
|
26900
|
+
consumedFromOrgPool: !(0, runtime_1.exists)(json2, "consumedFromOrgPool") ? undefined : json2["consumedFromOrgPool"],
|
|
26901
|
+
consumedByTopUp: !(0, runtime_1.exists)(json2, "consumedByTopUp") ? undefined : json2["consumedByTopUp"]
|
|
26850
26902
|
};
|
|
26851
26903
|
}
|
|
26852
26904
|
exports.TenantPoolConsumptionItemDtoFromJSONTyped = TenantPoolConsumptionItemDtoFromJSONTyped;
|
|
@@ -26860,7 +26912,8 @@ var require_TenantPoolConsumptionItemDto = __commonJS((exports) => {
|
|
|
26860
26912
|
return {
|
|
26861
26913
|
tenantId: value.tenantId,
|
|
26862
26914
|
consumedFromTenantPool: value.consumedFromTenantPool,
|
|
26863
|
-
consumedFromOrgPool: value.consumedFromOrgPool
|
|
26915
|
+
consumedFromOrgPool: value.consumedFromOrgPool,
|
|
26916
|
+
consumedByTopUp: value.consumedByTopUp
|
|
26864
26917
|
};
|
|
26865
26918
|
}
|
|
26866
26919
|
exports.TenantPoolConsumptionItemDtoToJSON = TenantPoolConsumptionItemDtoToJSON;
|
|
@@ -26876,6 +26929,7 @@ var require_GetTenantConsumptionSummaryDto = __commonJS((exports) => {
|
|
|
26876
26929
|
let isInstance = true;
|
|
26877
26930
|
isInstance = isInstance && "consumedFromOrgWithoutTenant" in value;
|
|
26878
26931
|
isInstance = isInstance && "tenantConsumptionItems" in value;
|
|
26932
|
+
isInstance = isInstance && "consumedByTopUp" in value;
|
|
26879
26933
|
return isInstance;
|
|
26880
26934
|
}
|
|
26881
26935
|
exports.instanceOfGetTenantConsumptionSummaryDto = instanceOfGetTenantConsumptionSummaryDto;
|
|
@@ -26889,7 +26943,8 @@ var require_GetTenantConsumptionSummaryDto = __commonJS((exports) => {
|
|
|
26889
26943
|
}
|
|
26890
26944
|
return {
|
|
26891
26945
|
consumedFromOrgWithoutTenant: !(0, runtime_1.exists)(json2, "consumedFromOrgWithoutTenant") ? undefined : json2["consumedFromOrgWithoutTenant"],
|
|
26892
|
-
tenantConsumptionItems: !(0, runtime_1.exists)(json2, "tenantConsumptionItems") ? undefined : json2["tenantConsumptionItems"] === null ? null : json2["tenantConsumptionItems"].map(TenantPoolConsumptionItemDto_1.TenantPoolConsumptionItemDtoFromJSON)
|
|
26946
|
+
tenantConsumptionItems: !(0, runtime_1.exists)(json2, "tenantConsumptionItems") ? undefined : json2["tenantConsumptionItems"] === null ? null : json2["tenantConsumptionItems"].map(TenantPoolConsumptionItemDto_1.TenantPoolConsumptionItemDtoFromJSON),
|
|
26947
|
+
consumedByTopUp: !(0, runtime_1.exists)(json2, "consumedByTopUp") ? undefined : json2["consumedByTopUp"]
|
|
26893
26948
|
};
|
|
26894
26949
|
}
|
|
26895
26950
|
exports.GetTenantConsumptionSummaryDtoFromJSONTyped = GetTenantConsumptionSummaryDtoFromJSONTyped;
|
|
@@ -26902,7 +26957,8 @@ var require_GetTenantConsumptionSummaryDto = __commonJS((exports) => {
|
|
|
26902
26957
|
}
|
|
26903
26958
|
return {
|
|
26904
26959
|
consumedFromOrgWithoutTenant: value.consumedFromOrgWithoutTenant,
|
|
26905
|
-
tenantConsumptionItems: value.tenantConsumptionItems === undefined ? undefined : value.tenantConsumptionItems === null ? null : value.tenantConsumptionItems.map(TenantPoolConsumptionItemDto_1.TenantPoolConsumptionItemDtoToJSON)
|
|
26960
|
+
tenantConsumptionItems: value.tenantConsumptionItems === undefined ? undefined : value.tenantConsumptionItems === null ? null : value.tenantConsumptionItems.map(TenantPoolConsumptionItemDto_1.TenantPoolConsumptionItemDtoToJSON),
|
|
26961
|
+
consumedByTopUp: value.consumedByTopUp
|
|
26906
26962
|
};
|
|
26907
26963
|
}
|
|
26908
26964
|
exports.GetTenantConsumptionSummaryDtoToJSON = GetTenantConsumptionSummaryDtoToJSON;
|
|
@@ -26919,6 +26975,7 @@ var require_GetTenantConsumptionSummaryQuery = __commonJS((exports) => {
|
|
|
26919
26975
|
isInstance = isInstance && "startDate" in value;
|
|
26920
26976
|
isInstance = isInstance && "endDate" in value;
|
|
26921
26977
|
isInstance = isInstance && "consumableCode" in value;
|
|
26978
|
+
isInstance = isInstance && "includeTopUpBreakdown" in value;
|
|
26922
26979
|
return isInstance;
|
|
26923
26980
|
}
|
|
26924
26981
|
exports.instanceOfGetTenantConsumptionSummaryQuery = instanceOfGetTenantConsumptionSummaryQuery;
|
|
@@ -26934,7 +26991,8 @@ var require_GetTenantConsumptionSummaryQuery = __commonJS((exports) => {
|
|
|
26934
26991
|
tenantId: !(0, runtime_1.exists)(json2, "tenantId") ? undefined : json2["tenantId"],
|
|
26935
26992
|
startDate: json2["startDate"],
|
|
26936
26993
|
endDate: json2["endDate"],
|
|
26937
|
-
consumableCode: json2["consumableCode"]
|
|
26994
|
+
consumableCode: json2["consumableCode"],
|
|
26995
|
+
includeTopUpBreakdown: !(0, runtime_1.exists)(json2, "includeTopUpBreakdown") ? undefined : json2["includeTopUpBreakdown"]
|
|
26938
26996
|
};
|
|
26939
26997
|
}
|
|
26940
26998
|
exports.GetTenantConsumptionSummaryQueryFromJSONTyped = GetTenantConsumptionSummaryQueryFromJSONTyped;
|
|
@@ -26949,7 +27007,8 @@ var require_GetTenantConsumptionSummaryQuery = __commonJS((exports) => {
|
|
|
26949
27007
|
tenantId: value.tenantId,
|
|
26950
27008
|
startDate: value.startDate,
|
|
26951
27009
|
endDate: value.endDate,
|
|
26952
|
-
consumableCode: value.consumableCode
|
|
27010
|
+
consumableCode: value.consumableCode,
|
|
27011
|
+
includeTopUpBreakdown: value.includeTopUpBreakdown
|
|
26953
27012
|
};
|
|
26954
27013
|
}
|
|
26955
27014
|
exports.GetTenantConsumptionSummaryQueryToJSON = GetTenantConsumptionSummaryQueryToJSON;
|
|
@@ -30077,6 +30136,47 @@ var require_ScopeUsageDto = __commonJS((exports) => {
|
|
|
30077
30136
|
exports.ScopeUsageDtoToJSON = ScopeUsageDtoToJSON;
|
|
30078
30137
|
});
|
|
30079
30138
|
|
|
30139
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/ServiceConsumptionDto.js
|
|
30140
|
+
var require_ServiceConsumptionDto = __commonJS((exports) => {
|
|
30141
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30142
|
+
exports.ServiceConsumptionDtoToJSON = exports.ServiceConsumptionDtoFromJSONTyped = exports.ServiceConsumptionDtoFromJSON = exports.instanceOfServiceConsumptionDto = undefined;
|
|
30143
|
+
var runtime_1 = require_runtime();
|
|
30144
|
+
function instanceOfServiceConsumptionDto(value) {
|
|
30145
|
+
let isInstance = true;
|
|
30146
|
+
isInstance = isInstance && "service" in value;
|
|
30147
|
+
isInstance = isInstance && "percentOfPool" in value;
|
|
30148
|
+
return isInstance;
|
|
30149
|
+
}
|
|
30150
|
+
exports.instanceOfServiceConsumptionDto = instanceOfServiceConsumptionDto;
|
|
30151
|
+
function ServiceConsumptionDtoFromJSON(json2) {
|
|
30152
|
+
return ServiceConsumptionDtoFromJSONTyped(json2, false);
|
|
30153
|
+
}
|
|
30154
|
+
exports.ServiceConsumptionDtoFromJSON = ServiceConsumptionDtoFromJSON;
|
|
30155
|
+
function ServiceConsumptionDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
30156
|
+
if (json2 === undefined || json2 === null) {
|
|
30157
|
+
return json2;
|
|
30158
|
+
}
|
|
30159
|
+
return {
|
|
30160
|
+
service: !(0, runtime_1.exists)(json2, "service") ? undefined : json2["service"],
|
|
30161
|
+
percentOfPool: !(0, runtime_1.exists)(json2, "percentOfPool") ? undefined : json2["percentOfPool"]
|
|
30162
|
+
};
|
|
30163
|
+
}
|
|
30164
|
+
exports.ServiceConsumptionDtoFromJSONTyped = ServiceConsumptionDtoFromJSONTyped;
|
|
30165
|
+
function ServiceConsumptionDtoToJSON(value) {
|
|
30166
|
+
if (value === undefined) {
|
|
30167
|
+
return;
|
|
30168
|
+
}
|
|
30169
|
+
if (value === null) {
|
|
30170
|
+
return null;
|
|
30171
|
+
}
|
|
30172
|
+
return {
|
|
30173
|
+
service: value.service,
|
|
30174
|
+
percentOfPool: value.percentOfPool
|
|
30175
|
+
};
|
|
30176
|
+
}
|
|
30177
|
+
exports.ServiceConsumptionDtoToJSON = ServiceConsumptionDtoToJSON;
|
|
30178
|
+
});
|
|
30179
|
+
|
|
30080
30180
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/ServiceSelfEnforcementConfigurationDto.js
|
|
30081
30181
|
var require_ServiceSelfEnforcementConfigurationDto = __commonJS((exports) => {
|
|
30082
30182
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -30117,6 +30217,44 @@ var require_ServiceSelfEnforcementConfigurationDto = __commonJS((exports) => {
|
|
|
30117
30217
|
exports.ServiceSelfEnforcementConfigurationDtoToJSON = ServiceSelfEnforcementConfigurationDtoToJSON;
|
|
30118
30218
|
});
|
|
30119
30219
|
|
|
30220
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/SetFolderFltConfigurationRequestDto.js
|
|
30221
|
+
var require_SetFolderFltConfigurationRequestDto = __commonJS((exports) => {
|
|
30222
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30223
|
+
exports.SetFolderFltConfigurationRequestDtoToJSON = exports.SetFolderFltConfigurationRequestDtoFromJSONTyped = exports.SetFolderFltConfigurationRequestDtoFromJSON = exports.instanceOfSetFolderFltConfigurationRequestDto = undefined;
|
|
30224
|
+
var runtime_1 = require_runtime();
|
|
30225
|
+
function instanceOfSetFolderFltConfigurationRequestDto(value) {
|
|
30226
|
+
let isInstance = true;
|
|
30227
|
+
isInstance = isInstance && "isFltEnabled" in value;
|
|
30228
|
+
return isInstance;
|
|
30229
|
+
}
|
|
30230
|
+
exports.instanceOfSetFolderFltConfigurationRequestDto = instanceOfSetFolderFltConfigurationRequestDto;
|
|
30231
|
+
function SetFolderFltConfigurationRequestDtoFromJSON(json2) {
|
|
30232
|
+
return SetFolderFltConfigurationRequestDtoFromJSONTyped(json2, false);
|
|
30233
|
+
}
|
|
30234
|
+
exports.SetFolderFltConfigurationRequestDtoFromJSON = SetFolderFltConfigurationRequestDtoFromJSON;
|
|
30235
|
+
function SetFolderFltConfigurationRequestDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
30236
|
+
if (json2 === undefined || json2 === null) {
|
|
30237
|
+
return json2;
|
|
30238
|
+
}
|
|
30239
|
+
return {
|
|
30240
|
+
isFltEnabled: !(0, runtime_1.exists)(json2, "isFltEnabled") ? undefined : json2["isFltEnabled"]
|
|
30241
|
+
};
|
|
30242
|
+
}
|
|
30243
|
+
exports.SetFolderFltConfigurationRequestDtoFromJSONTyped = SetFolderFltConfigurationRequestDtoFromJSONTyped;
|
|
30244
|
+
function SetFolderFltConfigurationRequestDtoToJSON(value) {
|
|
30245
|
+
if (value === undefined) {
|
|
30246
|
+
return;
|
|
30247
|
+
}
|
|
30248
|
+
if (value === null) {
|
|
30249
|
+
return null;
|
|
30250
|
+
}
|
|
30251
|
+
return {
|
|
30252
|
+
isFltEnabled: value.isFltEnabled
|
|
30253
|
+
};
|
|
30254
|
+
}
|
|
30255
|
+
exports.SetFolderFltConfigurationRequestDtoToJSON = SetFolderFltConfigurationRequestDtoToJSON;
|
|
30256
|
+
});
|
|
30257
|
+
|
|
30120
30258
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/SoftEnforcementConfigurationDto.js
|
|
30121
30259
|
var require_SoftEnforcementConfigurationDto = __commonJS((exports) => {
|
|
30122
30260
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -30538,6 +30676,99 @@ var require_UsageSummariesDto = __commonJS((exports) => {
|
|
|
30538
30676
|
exports.UsageSummariesDtoToJSON = UsageSummariesDtoToJSON;
|
|
30539
30677
|
});
|
|
30540
30678
|
|
|
30679
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserTopupMonthlyAggregationDto.js
|
|
30680
|
+
var require_UserTopupMonthlyAggregationDto = __commonJS((exports) => {
|
|
30681
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30682
|
+
exports.UserTopupMonthlyAggregationDtoToJSON = exports.UserTopupMonthlyAggregationDtoFromJSONTyped = exports.UserTopupMonthlyAggregationDtoFromJSON = exports.instanceOfUserTopupMonthlyAggregationDto = undefined;
|
|
30683
|
+
var runtime_1 = require_runtime();
|
|
30684
|
+
function instanceOfUserTopupMonthlyAggregationDto(value) {
|
|
30685
|
+
let isInstance = true;
|
|
30686
|
+
isInstance = isInstance && "month" in value;
|
|
30687
|
+
isInstance = isInstance && "topupCount" in value;
|
|
30688
|
+
return isInstance;
|
|
30689
|
+
}
|
|
30690
|
+
exports.instanceOfUserTopupMonthlyAggregationDto = instanceOfUserTopupMonthlyAggregationDto;
|
|
30691
|
+
function UserTopupMonthlyAggregationDtoFromJSON(json2) {
|
|
30692
|
+
return UserTopupMonthlyAggregationDtoFromJSONTyped(json2, false);
|
|
30693
|
+
}
|
|
30694
|
+
exports.UserTopupMonthlyAggregationDtoFromJSON = UserTopupMonthlyAggregationDtoFromJSON;
|
|
30695
|
+
function UserTopupMonthlyAggregationDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
30696
|
+
if (json2 === undefined || json2 === null) {
|
|
30697
|
+
return json2;
|
|
30698
|
+
}
|
|
30699
|
+
return {
|
|
30700
|
+
month: !(0, runtime_1.exists)(json2, "month") ? undefined : new Date(json2["month"]),
|
|
30701
|
+
topupCount: !(0, runtime_1.exists)(json2, "topupCount") ? undefined : json2["topupCount"]
|
|
30702
|
+
};
|
|
30703
|
+
}
|
|
30704
|
+
exports.UserTopupMonthlyAggregationDtoFromJSONTyped = UserTopupMonthlyAggregationDtoFromJSONTyped;
|
|
30705
|
+
function UserTopupMonthlyAggregationDtoToJSON(value) {
|
|
30706
|
+
if (value === undefined) {
|
|
30707
|
+
return;
|
|
30708
|
+
}
|
|
30709
|
+
if (value === null) {
|
|
30710
|
+
return null;
|
|
30711
|
+
}
|
|
30712
|
+
return {
|
|
30713
|
+
month: value.month === undefined ? undefined : value.month.toISOString(),
|
|
30714
|
+
topupCount: value.topupCount
|
|
30715
|
+
};
|
|
30716
|
+
}
|
|
30717
|
+
exports.UserTopupMonthlyAggregationDtoToJSON = UserTopupMonthlyAggregationDtoToJSON;
|
|
30718
|
+
});
|
|
30719
|
+
|
|
30720
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserAllocationDto.js
|
|
30721
|
+
var require_UserAllocationDto = __commonJS((exports) => {
|
|
30722
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30723
|
+
exports.UserAllocationDtoToJSON = exports.UserAllocationDtoFromJSONTyped = exports.UserAllocationDtoFromJSON = exports.instanceOfUserAllocationDto = undefined;
|
|
30724
|
+
var runtime_1 = require_runtime();
|
|
30725
|
+
var ServiceConsumptionDto_1 = require_ServiceConsumptionDto();
|
|
30726
|
+
var UserTopupMonthlyAggregationDto_1 = require_UserTopupMonthlyAggregationDto();
|
|
30727
|
+
function instanceOfUserAllocationDto(value) {
|
|
30728
|
+
let isInstance = true;
|
|
30729
|
+
isInstance = isInstance && "monthlyPercentConsumed" in value;
|
|
30730
|
+
isInstance = isInstance && "services" in value;
|
|
30731
|
+
isInstance = isInstance && "firstGrantedOn" in value;
|
|
30732
|
+
isInstance = isInstance && "topups" in value;
|
|
30733
|
+
isInstance = isInstance && "topupCountPerMonth" in value;
|
|
30734
|
+
return isInstance;
|
|
30735
|
+
}
|
|
30736
|
+
exports.instanceOfUserAllocationDto = instanceOfUserAllocationDto;
|
|
30737
|
+
function UserAllocationDtoFromJSON(json2) {
|
|
30738
|
+
return UserAllocationDtoFromJSONTyped(json2, false);
|
|
30739
|
+
}
|
|
30740
|
+
exports.UserAllocationDtoFromJSON = UserAllocationDtoFromJSON;
|
|
30741
|
+
function UserAllocationDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
30742
|
+
if (json2 === undefined || json2 === null) {
|
|
30743
|
+
return json2;
|
|
30744
|
+
}
|
|
30745
|
+
return {
|
|
30746
|
+
monthlyPercentConsumed: !(0, runtime_1.exists)(json2, "monthlyPercentConsumed") ? undefined : json2["monthlyPercentConsumed"],
|
|
30747
|
+
services: !(0, runtime_1.exists)(json2, "services") ? undefined : json2["services"] === null ? null : json2["services"].map(ServiceConsumptionDto_1.ServiceConsumptionDtoFromJSON),
|
|
30748
|
+
firstGrantedOn: !(0, runtime_1.exists)(json2, "firstGrantedOn") ? undefined : new Date(json2["firstGrantedOn"]),
|
|
30749
|
+
topups: !(0, runtime_1.exists)(json2, "topups") ? undefined : json2["topups"],
|
|
30750
|
+
topupCountPerMonth: !(0, runtime_1.exists)(json2, "topupCountPerMonth") ? undefined : json2["topupCountPerMonth"] === null ? null : json2["topupCountPerMonth"].map(UserTopupMonthlyAggregationDto_1.UserTopupMonthlyAggregationDtoFromJSON)
|
|
30751
|
+
};
|
|
30752
|
+
}
|
|
30753
|
+
exports.UserAllocationDtoFromJSONTyped = UserAllocationDtoFromJSONTyped;
|
|
30754
|
+
function UserAllocationDtoToJSON(value) {
|
|
30755
|
+
if (value === undefined) {
|
|
30756
|
+
return;
|
|
30757
|
+
}
|
|
30758
|
+
if (value === null) {
|
|
30759
|
+
return null;
|
|
30760
|
+
}
|
|
30761
|
+
return {
|
|
30762
|
+
monthlyPercentConsumed: value.monthlyPercentConsumed,
|
|
30763
|
+
services: value.services === undefined ? undefined : value.services === null ? null : value.services.map(ServiceConsumptionDto_1.ServiceConsumptionDtoToJSON),
|
|
30764
|
+
firstGrantedOn: value.firstGrantedOn === undefined ? undefined : value.firstGrantedOn.toISOString(),
|
|
30765
|
+
topups: value.topups,
|
|
30766
|
+
topupCountPerMonth: value.topupCountPerMonth === undefined ? undefined : value.topupCountPerMonth === null ? null : value.topupCountPerMonth.map(UserTopupMonthlyAggregationDto_1.UserTopupMonthlyAggregationDtoToJSON)
|
|
30767
|
+
};
|
|
30768
|
+
}
|
|
30769
|
+
exports.UserAllocationDtoToJSON = UserAllocationDtoToJSON;
|
|
30770
|
+
});
|
|
30771
|
+
|
|
30541
30772
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserAllocationsDto.js
|
|
30542
30773
|
var require_UserAllocationsDto = __commonJS((exports) => {
|
|
30543
30774
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -30949,6 +31180,97 @@ var require_UserBundleLeaseDto = __commonJS((exports) => {
|
|
|
30949
31180
|
exports.UserBundleLeaseDtoToJSON = UserBundleLeaseDtoToJSON;
|
|
30950
31181
|
});
|
|
30951
31182
|
|
|
31183
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserConsumableDto.js
|
|
31184
|
+
var require_UserConsumableDto = __commonJS((exports) => {
|
|
31185
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31186
|
+
exports.UserConsumableDtoToJSON = exports.UserConsumableDtoFromJSONTyped = exports.UserConsumableDtoFromJSON = exports.instanceOfUserConsumableDto = undefined;
|
|
31187
|
+
var runtime_1 = require_runtime();
|
|
31188
|
+
var ServiceConsumptionDto_1 = require_ServiceConsumptionDto();
|
|
31189
|
+
var UserAllocationDto_1 = require_UserAllocationDto();
|
|
31190
|
+
function instanceOfUserConsumableDto(value) {
|
|
31191
|
+
let isInstance = true;
|
|
31192
|
+
isInstance = isInstance && "entitlement" in value;
|
|
31193
|
+
isInstance = isInstance && "monthlyPercentConsumed" in value;
|
|
31194
|
+
isInstance = isInstance && "resetsOn" in value;
|
|
31195
|
+
isInstance = isInstance && "services" in value;
|
|
31196
|
+
isInstance = isInstance && "userAllocation" in value;
|
|
31197
|
+
return isInstance;
|
|
31198
|
+
}
|
|
31199
|
+
exports.instanceOfUserConsumableDto = instanceOfUserConsumableDto;
|
|
31200
|
+
function UserConsumableDtoFromJSON(json2) {
|
|
31201
|
+
return UserConsumableDtoFromJSONTyped(json2, false);
|
|
31202
|
+
}
|
|
31203
|
+
exports.UserConsumableDtoFromJSON = UserConsumableDtoFromJSON;
|
|
31204
|
+
function UserConsumableDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
31205
|
+
if (json2 === undefined || json2 === null) {
|
|
31206
|
+
return json2;
|
|
31207
|
+
}
|
|
31208
|
+
return {
|
|
31209
|
+
entitlement: !(0, runtime_1.exists)(json2, "entitlement") ? undefined : json2["entitlement"],
|
|
31210
|
+
monthlyPercentConsumed: !(0, runtime_1.exists)(json2, "monthlyPercentConsumed") ? undefined : json2["monthlyPercentConsumed"],
|
|
31211
|
+
resetsOn: !(0, runtime_1.exists)(json2, "resetsOn") ? undefined : json2["resetsOn"] === null ? null : new Date(json2["resetsOn"]),
|
|
31212
|
+
services: !(0, runtime_1.exists)(json2, "services") ? undefined : json2["services"] === null ? null : json2["services"].map(ServiceConsumptionDto_1.ServiceConsumptionDtoFromJSON),
|
|
31213
|
+
userAllocation: !(0, runtime_1.exists)(json2, "userAllocation") ? undefined : (0, UserAllocationDto_1.UserAllocationDtoFromJSON)(json2["userAllocation"])
|
|
31214
|
+
};
|
|
31215
|
+
}
|
|
31216
|
+
exports.UserConsumableDtoFromJSONTyped = UserConsumableDtoFromJSONTyped;
|
|
31217
|
+
function UserConsumableDtoToJSON(value) {
|
|
31218
|
+
if (value === undefined) {
|
|
31219
|
+
return;
|
|
31220
|
+
}
|
|
31221
|
+
if (value === null) {
|
|
31222
|
+
return null;
|
|
31223
|
+
}
|
|
31224
|
+
return {
|
|
31225
|
+
entitlement: value.entitlement,
|
|
31226
|
+
monthlyPercentConsumed: value.monthlyPercentConsumed,
|
|
31227
|
+
resetsOn: value.resetsOn === undefined ? undefined : value.resetsOn === null ? null : value.resetsOn.toISOString(),
|
|
31228
|
+
services: value.services === undefined ? undefined : value.services === null ? null : value.services.map(ServiceConsumptionDto_1.ServiceConsumptionDtoToJSON),
|
|
31229
|
+
userAllocation: (0, UserAllocationDto_1.UserAllocationDtoToJSON)(value.userAllocation)
|
|
31230
|
+
};
|
|
31231
|
+
}
|
|
31232
|
+
exports.UserConsumableDtoToJSON = UserConsumableDtoToJSON;
|
|
31233
|
+
});
|
|
31234
|
+
|
|
31235
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserConsumablesDto.js
|
|
31236
|
+
var require_UserConsumablesDto = __commonJS((exports) => {
|
|
31237
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31238
|
+
exports.UserConsumablesDtoToJSON = exports.UserConsumablesDtoFromJSONTyped = exports.UserConsumablesDtoFromJSON = exports.instanceOfUserConsumablesDto = undefined;
|
|
31239
|
+
var runtime_1 = require_runtime();
|
|
31240
|
+
var UserConsumableDto_1 = require_UserConsumableDto();
|
|
31241
|
+
function instanceOfUserConsumablesDto(value) {
|
|
31242
|
+
let isInstance = true;
|
|
31243
|
+
isInstance = isInstance && "consumables" in value;
|
|
31244
|
+
return isInstance;
|
|
31245
|
+
}
|
|
31246
|
+
exports.instanceOfUserConsumablesDto = instanceOfUserConsumablesDto;
|
|
31247
|
+
function UserConsumablesDtoFromJSON(json2) {
|
|
31248
|
+
return UserConsumablesDtoFromJSONTyped(json2, false);
|
|
31249
|
+
}
|
|
31250
|
+
exports.UserConsumablesDtoFromJSON = UserConsumablesDtoFromJSON;
|
|
31251
|
+
function UserConsumablesDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
31252
|
+
if (json2 === undefined || json2 === null) {
|
|
31253
|
+
return json2;
|
|
31254
|
+
}
|
|
31255
|
+
return {
|
|
31256
|
+
consumables: !(0, runtime_1.exists)(json2, "consumables") ? undefined : json2["consumables"] === null ? null : json2["consumables"].map(UserConsumableDto_1.UserConsumableDtoFromJSON)
|
|
31257
|
+
};
|
|
31258
|
+
}
|
|
31259
|
+
exports.UserConsumablesDtoFromJSONTyped = UserConsumablesDtoFromJSONTyped;
|
|
31260
|
+
function UserConsumablesDtoToJSON(value) {
|
|
31261
|
+
if (value === undefined) {
|
|
31262
|
+
return;
|
|
31263
|
+
}
|
|
31264
|
+
if (value === null) {
|
|
31265
|
+
return null;
|
|
31266
|
+
}
|
|
31267
|
+
return {
|
|
31268
|
+
consumables: value.consumables === undefined ? undefined : value.consumables === null ? null : value.consumables.map(UserConsumableDto_1.UserConsumableDtoToJSON)
|
|
31269
|
+
};
|
|
31270
|
+
}
|
|
31271
|
+
exports.UserConsumablesDtoToJSON = UserConsumablesDtoToJSON;
|
|
31272
|
+
});
|
|
31273
|
+
|
|
30952
31274
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserExplicitAllocationDto.js
|
|
30953
31275
|
var require_UserExplicitAllocationDto = __commonJS((exports) => {
|
|
30954
31276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -31526,6 +31848,210 @@ var require_UserSessionDto = __commonJS((exports) => {
|
|
|
31526
31848
|
exports.UserSessionDtoToJSON = UserSessionDtoToJSON;
|
|
31527
31849
|
});
|
|
31528
31850
|
|
|
31851
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserStrongestLicenseDto.js
|
|
31852
|
+
var require_UserStrongestLicenseDto = __commonJS((exports) => {
|
|
31853
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31854
|
+
exports.UserStrongestLicenseDtoToJSON = exports.UserStrongestLicenseDtoFromJSONTyped = exports.UserStrongestLicenseDtoFromJSON = exports.instanceOfUserStrongestLicenseDto = undefined;
|
|
31855
|
+
var runtime_1 = require_runtime();
|
|
31856
|
+
function instanceOfUserStrongestLicenseDto(value) {
|
|
31857
|
+
let isInstance = true;
|
|
31858
|
+
isInstance = isInstance && "licenseType" in value;
|
|
31859
|
+
return isInstance;
|
|
31860
|
+
}
|
|
31861
|
+
exports.instanceOfUserStrongestLicenseDto = instanceOfUserStrongestLicenseDto;
|
|
31862
|
+
function UserStrongestLicenseDtoFromJSON(json2) {
|
|
31863
|
+
return UserStrongestLicenseDtoFromJSONTyped(json2, false);
|
|
31864
|
+
}
|
|
31865
|
+
exports.UserStrongestLicenseDtoFromJSON = UserStrongestLicenseDtoFromJSON;
|
|
31866
|
+
function UserStrongestLicenseDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
31867
|
+
if (json2 === undefined || json2 === null) {
|
|
31868
|
+
return json2;
|
|
31869
|
+
}
|
|
31870
|
+
return {
|
|
31871
|
+
licenseType: !(0, runtime_1.exists)(json2, "licenseType") ? undefined : json2["licenseType"]
|
|
31872
|
+
};
|
|
31873
|
+
}
|
|
31874
|
+
exports.UserStrongestLicenseDtoFromJSONTyped = UserStrongestLicenseDtoFromJSONTyped;
|
|
31875
|
+
function UserStrongestLicenseDtoToJSON(value) {
|
|
31876
|
+
if (value === undefined) {
|
|
31877
|
+
return;
|
|
31878
|
+
}
|
|
31879
|
+
if (value === null) {
|
|
31880
|
+
return null;
|
|
31881
|
+
}
|
|
31882
|
+
return {
|
|
31883
|
+
licenseType: value.licenseType
|
|
31884
|
+
};
|
|
31885
|
+
}
|
|
31886
|
+
exports.UserStrongestLicenseDtoToJSON = UserStrongestLicenseDtoToJSON;
|
|
31887
|
+
});
|
|
31888
|
+
|
|
31889
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserUsageOrgSummaryDto.js
|
|
31890
|
+
var require_UserUsageOrgSummaryDto = __commonJS((exports) => {
|
|
31891
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31892
|
+
exports.UserUsageOrgSummaryDtoToJSON = exports.UserUsageOrgSummaryDtoFromJSONTyped = exports.UserUsageOrgSummaryDtoFromJSON = exports.instanceOfUserUsageOrgSummaryDto = undefined;
|
|
31893
|
+
var runtime_1 = require_runtime();
|
|
31894
|
+
function instanceOfUserUsageOrgSummaryDto(value) {
|
|
31895
|
+
let isInstance = true;
|
|
31896
|
+
isInstance = isInstance && "totalUsersWithConsumption" in value;
|
|
31897
|
+
return isInstance;
|
|
31898
|
+
}
|
|
31899
|
+
exports.instanceOfUserUsageOrgSummaryDto = instanceOfUserUsageOrgSummaryDto;
|
|
31900
|
+
function UserUsageOrgSummaryDtoFromJSON(json2) {
|
|
31901
|
+
return UserUsageOrgSummaryDtoFromJSONTyped(json2, false);
|
|
31902
|
+
}
|
|
31903
|
+
exports.UserUsageOrgSummaryDtoFromJSON = UserUsageOrgSummaryDtoFromJSON;
|
|
31904
|
+
function UserUsageOrgSummaryDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
31905
|
+
if (json2 === undefined || json2 === null) {
|
|
31906
|
+
return json2;
|
|
31907
|
+
}
|
|
31908
|
+
return {
|
|
31909
|
+
totalUsersWithConsumption: !(0, runtime_1.exists)(json2, "totalUsersWithConsumption") ? undefined : json2["totalUsersWithConsumption"]
|
|
31910
|
+
};
|
|
31911
|
+
}
|
|
31912
|
+
exports.UserUsageOrgSummaryDtoFromJSONTyped = UserUsageOrgSummaryDtoFromJSONTyped;
|
|
31913
|
+
function UserUsageOrgSummaryDtoToJSON(value) {
|
|
31914
|
+
if (value === undefined) {
|
|
31915
|
+
return;
|
|
31916
|
+
}
|
|
31917
|
+
if (value === null) {
|
|
31918
|
+
return null;
|
|
31919
|
+
}
|
|
31920
|
+
return {
|
|
31921
|
+
totalUsersWithConsumption: value.totalUsersWithConsumption
|
|
31922
|
+
};
|
|
31923
|
+
}
|
|
31924
|
+
exports.UserUsageOrgSummaryDtoToJSON = UserUsageOrgSummaryDtoToJSON;
|
|
31925
|
+
});
|
|
31926
|
+
|
|
31927
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserUsageUserStatus.js
|
|
31928
|
+
var require_UserUsageUserStatus = __commonJS((exports) => {
|
|
31929
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31930
|
+
exports.UserUsageUserStatusToJSON = exports.UserUsageUserStatusFromJSONTyped = exports.UserUsageUserStatusFromJSON = exports.UserUsageUserStatus = undefined;
|
|
31931
|
+
exports.UserUsageUserStatus = {
|
|
31932
|
+
NUMBER_0: 0,
|
|
31933
|
+
NUMBER_1: 1,
|
|
31934
|
+
NUMBER_2: 2
|
|
31935
|
+
};
|
|
31936
|
+
function UserUsageUserStatusFromJSON(json2) {
|
|
31937
|
+
return UserUsageUserStatusFromJSONTyped(json2, false);
|
|
31938
|
+
}
|
|
31939
|
+
exports.UserUsageUserStatusFromJSON = UserUsageUserStatusFromJSON;
|
|
31940
|
+
function UserUsageUserStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
31941
|
+
return json2;
|
|
31942
|
+
}
|
|
31943
|
+
exports.UserUsageUserStatusFromJSONTyped = UserUsageUserStatusFromJSONTyped;
|
|
31944
|
+
function UserUsageUserStatusToJSON(value) {
|
|
31945
|
+
return value;
|
|
31946
|
+
}
|
|
31947
|
+
exports.UserUsageUserStatusToJSON = UserUsageUserStatusToJSON;
|
|
31948
|
+
});
|
|
31949
|
+
|
|
31950
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserUsageUserConsumptionDto.js
|
|
31951
|
+
var require_UserUsageUserConsumptionDto = __commonJS((exports) => {
|
|
31952
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31953
|
+
exports.UserUsageUserConsumptionDtoToJSON = exports.UserUsageUserConsumptionDtoFromJSONTyped = exports.UserUsageUserConsumptionDtoFromJSON = exports.instanceOfUserUsageUserConsumptionDto = undefined;
|
|
31954
|
+
var runtime_1 = require_runtime();
|
|
31955
|
+
var UserUsageUserStatus_1 = require_UserUsageUserStatus();
|
|
31956
|
+
function instanceOfUserUsageUserConsumptionDto(value) {
|
|
31957
|
+
let isInstance = true;
|
|
31958
|
+
isInstance = isInstance && "userId" in value;
|
|
31959
|
+
isInstance = isInstance && "email" in value;
|
|
31960
|
+
isInstance = isInstance && "displayName" in value;
|
|
31961
|
+
isInstance = isInstance && "licenses" in value;
|
|
31962
|
+
isInstance = isInstance && "strongestLicense" in value;
|
|
31963
|
+
isInstance = isInstance && "entitlementPoolPercentConsumed" in value;
|
|
31964
|
+
isInstance = isInstance && "userPoolPercentConsumed" in value;
|
|
31965
|
+
isInstance = isInstance && "topups" in value;
|
|
31966
|
+
isInstance = isInstance && "status" in value;
|
|
31967
|
+
return isInstance;
|
|
31968
|
+
}
|
|
31969
|
+
exports.instanceOfUserUsageUserConsumptionDto = instanceOfUserUsageUserConsumptionDto;
|
|
31970
|
+
function UserUsageUserConsumptionDtoFromJSON(json2) {
|
|
31971
|
+
return UserUsageUserConsumptionDtoFromJSONTyped(json2, false);
|
|
31972
|
+
}
|
|
31973
|
+
exports.UserUsageUserConsumptionDtoFromJSON = UserUsageUserConsumptionDtoFromJSON;
|
|
31974
|
+
function UserUsageUserConsumptionDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
31975
|
+
if (json2 === undefined || json2 === null) {
|
|
31976
|
+
return json2;
|
|
31977
|
+
}
|
|
31978
|
+
return {
|
|
31979
|
+
userId: !(0, runtime_1.exists)(json2, "userId") ? undefined : json2["userId"],
|
|
31980
|
+
email: !(0, runtime_1.exists)(json2, "email") ? undefined : json2["email"],
|
|
31981
|
+
displayName: !(0, runtime_1.exists)(json2, "displayName") ? undefined : json2["displayName"],
|
|
31982
|
+
licenses: !(0, runtime_1.exists)(json2, "licenses") ? undefined : json2["licenses"],
|
|
31983
|
+
strongestLicense: !(0, runtime_1.exists)(json2, "strongestLicense") ? undefined : json2["strongestLicense"],
|
|
31984
|
+
entitlementPoolPercentConsumed: !(0, runtime_1.exists)(json2, "entitlementPoolPercentConsumed") ? undefined : json2["entitlementPoolPercentConsumed"],
|
|
31985
|
+
userPoolPercentConsumed: !(0, runtime_1.exists)(json2, "userPoolPercentConsumed") ? undefined : json2["userPoolPercentConsumed"],
|
|
31986
|
+
topups: !(0, runtime_1.exists)(json2, "topups") ? undefined : json2["topups"],
|
|
31987
|
+
status: !(0, runtime_1.exists)(json2, "status") ? undefined : (0, UserUsageUserStatus_1.UserUsageUserStatusFromJSON)(json2["status"])
|
|
31988
|
+
};
|
|
31989
|
+
}
|
|
31990
|
+
exports.UserUsageUserConsumptionDtoFromJSONTyped = UserUsageUserConsumptionDtoFromJSONTyped;
|
|
31991
|
+
function UserUsageUserConsumptionDtoToJSON(value) {
|
|
31992
|
+
if (value === undefined) {
|
|
31993
|
+
return;
|
|
31994
|
+
}
|
|
31995
|
+
if (value === null) {
|
|
31996
|
+
return null;
|
|
31997
|
+
}
|
|
31998
|
+
return {
|
|
31999
|
+
userId: value.userId,
|
|
32000
|
+
email: value.email,
|
|
32001
|
+
displayName: value.displayName,
|
|
32002
|
+
licenses: value.licenses,
|
|
32003
|
+
strongestLicense: value.strongestLicense,
|
|
32004
|
+
entitlementPoolPercentConsumed: value.entitlementPoolPercentConsumed,
|
|
32005
|
+
userPoolPercentConsumed: value.userPoolPercentConsumed,
|
|
32006
|
+
topups: value.topups,
|
|
32007
|
+
status: (0, UserUsageUserStatus_1.UserUsageUserStatusToJSON)(value.status)
|
|
32008
|
+
};
|
|
32009
|
+
}
|
|
32010
|
+
exports.UserUsageUserConsumptionDtoToJSON = UserUsageUserConsumptionDtoToJSON;
|
|
32011
|
+
});
|
|
32012
|
+
|
|
32013
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/UserUsageUserConsumptionDtoPagedResult.js
|
|
32014
|
+
var require_UserUsageUserConsumptionDtoPagedResult = __commonJS((exports) => {
|
|
32015
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32016
|
+
exports.UserUsageUserConsumptionDtoPagedResultToJSON = exports.UserUsageUserConsumptionDtoPagedResultFromJSONTyped = exports.UserUsageUserConsumptionDtoPagedResultFromJSON = exports.instanceOfUserUsageUserConsumptionDtoPagedResult = undefined;
|
|
32017
|
+
var runtime_1 = require_runtime();
|
|
32018
|
+
var UserUsageUserConsumptionDto_1 = require_UserUsageUserConsumptionDto();
|
|
32019
|
+
function instanceOfUserUsageUserConsumptionDtoPagedResult(value) {
|
|
32020
|
+
let isInstance = true;
|
|
32021
|
+
isInstance = isInstance && "totalCount" in value;
|
|
32022
|
+
isInstance = isInstance && "results" in value;
|
|
32023
|
+
return isInstance;
|
|
32024
|
+
}
|
|
32025
|
+
exports.instanceOfUserUsageUserConsumptionDtoPagedResult = instanceOfUserUsageUserConsumptionDtoPagedResult;
|
|
32026
|
+
function UserUsageUserConsumptionDtoPagedResultFromJSON(json2) {
|
|
32027
|
+
return UserUsageUserConsumptionDtoPagedResultFromJSONTyped(json2, false);
|
|
32028
|
+
}
|
|
32029
|
+
exports.UserUsageUserConsumptionDtoPagedResultFromJSON = UserUsageUserConsumptionDtoPagedResultFromJSON;
|
|
32030
|
+
function UserUsageUserConsumptionDtoPagedResultFromJSONTyped(json2, ignoreDiscriminator) {
|
|
32031
|
+
if (json2 === undefined || json2 === null) {
|
|
32032
|
+
return json2;
|
|
32033
|
+
}
|
|
32034
|
+
return {
|
|
32035
|
+
totalCount: !(0, runtime_1.exists)(json2, "totalCount") ? undefined : json2["totalCount"],
|
|
32036
|
+
results: !(0, runtime_1.exists)(json2, "results") ? undefined : json2["results"] === null ? null : json2["results"].map(UserUsageUserConsumptionDto_1.UserUsageUserConsumptionDtoFromJSON)
|
|
32037
|
+
};
|
|
32038
|
+
}
|
|
32039
|
+
exports.UserUsageUserConsumptionDtoPagedResultFromJSONTyped = UserUsageUserConsumptionDtoPagedResultFromJSONTyped;
|
|
32040
|
+
function UserUsageUserConsumptionDtoPagedResultToJSON(value) {
|
|
32041
|
+
if (value === undefined) {
|
|
32042
|
+
return;
|
|
32043
|
+
}
|
|
32044
|
+
if (value === null) {
|
|
32045
|
+
return null;
|
|
32046
|
+
}
|
|
32047
|
+
return {
|
|
32048
|
+
totalCount: value.totalCount,
|
|
32049
|
+
results: value.results === undefined ? undefined : value.results === null ? null : value.results.map(UserUsageUserConsumptionDto_1.UserUsageUserConsumptionDtoToJSON)
|
|
32050
|
+
};
|
|
32051
|
+
}
|
|
32052
|
+
exports.UserUsageUserConsumptionDtoPagedResultToJSON = UserUsageUserConsumptionDtoPagedResultToJSON;
|
|
32053
|
+
});
|
|
32054
|
+
|
|
31529
32055
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/models/index.js
|
|
31530
32056
|
var require_models = __commonJS((exports) => {
|
|
31531
32057
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -31607,6 +32133,7 @@ var require_models = __commonJS((exports) => {
|
|
|
31607
32133
|
__exportStar(require_FieldInfo(), exports);
|
|
31608
32134
|
__exportStar(require_FinalizeRequest(), exports);
|
|
31609
32135
|
__exportStar(require_FolderConsumptionItemDto(), exports);
|
|
32136
|
+
__exportStar(require_FolderFltConfigurationDto(), exports);
|
|
31610
32137
|
__exportStar(require_GenericParameterAttributes(), exports);
|
|
31611
32138
|
__exportStar(require_GetConsumptionLeaseResponseDto(), exports);
|
|
31612
32139
|
__exportStar(require_GetConsumptionLeaseResponseUsage(), exports);
|
|
@@ -31708,8 +32235,10 @@ var require_models = __commonJS((exports) => {
|
|
|
31708
32235
|
__exportStar(require_RuntimeTypeHandle(), exports);
|
|
31709
32236
|
__exportStar(require_ScopeUsageDto(), exports);
|
|
31710
32237
|
__exportStar(require_SecurityRuleSet(), exports);
|
|
32238
|
+
__exportStar(require_ServiceConsumptionDto(), exports);
|
|
31711
32239
|
__exportStar(require_ServiceConsumptionItemDto(), exports);
|
|
31712
32240
|
__exportStar(require_ServiceSelfEnforcementConfigurationDto(), exports);
|
|
32241
|
+
__exportStar(require_SetFolderFltConfigurationRequestDto(), exports);
|
|
31713
32242
|
__exportStar(require_SoftEnforcementConfigurationDto(), exports);
|
|
31714
32243
|
__exportStar(require_SoftEnforcementConfigurationResponseDto(), exports);
|
|
31715
32244
|
__exportStar(require_SortOrder(), exports);
|
|
@@ -31732,12 +32261,15 @@ var require_models = __commonJS((exports) => {
|
|
|
31732
32261
|
__exportStar(require_UsageForTenantsDto(), exports);
|
|
31733
32262
|
__exportStar(require_UsagePoolSummaryDto(), exports);
|
|
31734
32263
|
__exportStar(require_UsageSummariesDto(), exports);
|
|
32264
|
+
__exportStar(require_UserAllocationDto(), exports);
|
|
31735
32265
|
__exportStar(require_UserAllocationsDto(), exports);
|
|
31736
32266
|
__exportStar(require_UserAllocationsDtoPagedResult(), exports);
|
|
31737
32267
|
__exportStar(require_UserBundleDeallocationRequestDto(), exports);
|
|
31738
32268
|
__exportStar(require_UserBundleDeallocationResponseDto(), exports);
|
|
31739
32269
|
__exportStar(require_UserBundleLease(), exports);
|
|
31740
32270
|
__exportStar(require_UserBundleLeaseDto(), exports);
|
|
32271
|
+
__exportStar(require_UserConsumableDto(), exports);
|
|
32272
|
+
__exportStar(require_UserConsumablesDto(), exports);
|
|
31741
32273
|
__exportStar(require_UserExplicitAllocationDto(), exports);
|
|
31742
32274
|
__exportStar(require_UserExplicitAllocationDtoPagedResult(), exports);
|
|
31743
32275
|
__exportStar(require_UserIdsRequestDto(), exports);
|
|
@@ -31753,6 +32285,12 @@ var require_models = __commonJS((exports) => {
|
|
|
31753
32285
|
__exportStar(require_UserSessionDto(), exports);
|
|
31754
32286
|
__exportStar(require_UserSessionSummary(), exports);
|
|
31755
32287
|
__exportStar(require_UserSessionUserBundleLease(), exports);
|
|
32288
|
+
__exportStar(require_UserStrongestLicenseDto(), exports);
|
|
32289
|
+
__exportStar(require_UserTopupMonthlyAggregationDto(), exports);
|
|
32290
|
+
__exportStar(require_UserUsageOrgSummaryDto(), exports);
|
|
32291
|
+
__exportStar(require_UserUsageUserConsumptionDto(), exports);
|
|
32292
|
+
__exportStar(require_UserUsageUserConsumptionDtoPagedResult(), exports);
|
|
32293
|
+
__exportStar(require_UserUsageUserStatus(), exports);
|
|
31756
32294
|
});
|
|
31757
32295
|
|
|
31758
32296
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/apis/CopyAssignmentsAPI.js
|
|
@@ -32278,6 +32816,117 @@ var require_FallbackConfigurationAPI = __commonJS((exports) => {
|
|
|
32278
32816
|
exports.FallbackConfigurationAPI = FallbackConfigurationAPI;
|
|
32279
32817
|
});
|
|
32280
32818
|
|
|
32819
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/apis/FolderConfigurationAPI.js
|
|
32820
|
+
var require_FolderConfigurationAPI = __commonJS((exports) => {
|
|
32821
|
+
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
32822
|
+
function adopt(value) {
|
|
32823
|
+
return value instanceof P ? value : new P(function(resolve2) {
|
|
32824
|
+
resolve2(value);
|
|
32825
|
+
});
|
|
32826
|
+
}
|
|
32827
|
+
return new (P || (P = Promise))(function(resolve2, reject) {
|
|
32828
|
+
function fulfilled(value) {
|
|
32829
|
+
try {
|
|
32830
|
+
step(generator.next(value));
|
|
32831
|
+
} catch (e) {
|
|
32832
|
+
reject(e);
|
|
32833
|
+
}
|
|
32834
|
+
}
|
|
32835
|
+
function rejected(value) {
|
|
32836
|
+
try {
|
|
32837
|
+
step(generator["throw"](value));
|
|
32838
|
+
} catch (e) {
|
|
32839
|
+
reject(e);
|
|
32840
|
+
}
|
|
32841
|
+
}
|
|
32842
|
+
function step(result) {
|
|
32843
|
+
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
32844
|
+
}
|
|
32845
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32846
|
+
});
|
|
32847
|
+
};
|
|
32848
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32849
|
+
exports.FolderConfigurationAPI = undefined;
|
|
32850
|
+
var runtime = require_runtime();
|
|
32851
|
+
var models_1 = require_models();
|
|
32852
|
+
|
|
32853
|
+
class FolderConfigurationAPI extends runtime.BaseAPI {
|
|
32854
|
+
getFolderFltConfigurationRaw(requestParameters, initOverrides) {
|
|
32855
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
32856
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
32857
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling getFolderFltConfiguration.");
|
|
32858
|
+
}
|
|
32859
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
32860
|
+
throw new runtime.RequiredError("tenantId", "Required parameter requestParameters.tenantId was null or undefined when calling getFolderFltConfiguration.");
|
|
32861
|
+
}
|
|
32862
|
+
if (requestParameters.folderKey === null || requestParameters.folderKey === undefined) {
|
|
32863
|
+
throw new runtime.RequiredError("folderKey", "Required parameter requestParameters.folderKey was null or undefined when calling getFolderFltConfiguration.");
|
|
32864
|
+
}
|
|
32865
|
+
const queryParameters = {};
|
|
32866
|
+
const headerParameters = {};
|
|
32867
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
32868
|
+
const token = this.configuration.accessToken;
|
|
32869
|
+
const tokenString = yield token("bearerAuth", []);
|
|
32870
|
+
if (tokenString) {
|
|
32871
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
32872
|
+
}
|
|
32873
|
+
}
|
|
32874
|
+
const response = yield this.request({
|
|
32875
|
+
path: `/api/folder-configurations/{organizationId}/{tenantId}/flt/{folderKey}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"tenantId"}}`, encodeURIComponent(String(requestParameters.tenantId))).replace(`{${"folderKey"}}`, encodeURIComponent(String(requestParameters.folderKey))),
|
|
32876
|
+
method: "GET",
|
|
32877
|
+
headers: headerParameters,
|
|
32878
|
+
query: queryParameters
|
|
32879
|
+
}, initOverrides);
|
|
32880
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FolderFltConfigurationDtoFromJSON)(jsonValue));
|
|
32881
|
+
});
|
|
32882
|
+
}
|
|
32883
|
+
getFolderFltConfiguration(requestParameters, initOverrides) {
|
|
32884
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
32885
|
+
const response = yield this.getFolderFltConfigurationRaw(requestParameters, initOverrides);
|
|
32886
|
+
return yield response.value();
|
|
32887
|
+
});
|
|
32888
|
+
}
|
|
32889
|
+
setFolderFltConfigurationRaw(requestParameters, initOverrides) {
|
|
32890
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
32891
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
32892
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling setFolderFltConfiguration.");
|
|
32893
|
+
}
|
|
32894
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
32895
|
+
throw new runtime.RequiredError("tenantId", "Required parameter requestParameters.tenantId was null or undefined when calling setFolderFltConfiguration.");
|
|
32896
|
+
}
|
|
32897
|
+
if (requestParameters.folderKey === null || requestParameters.folderKey === undefined) {
|
|
32898
|
+
throw new runtime.RequiredError("folderKey", "Required parameter requestParameters.folderKey was null or undefined when calling setFolderFltConfiguration.");
|
|
32899
|
+
}
|
|
32900
|
+
const queryParameters = {};
|
|
32901
|
+
const headerParameters = {};
|
|
32902
|
+
headerParameters["Content-Type"] = "application/json";
|
|
32903
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
32904
|
+
const token = this.configuration.accessToken;
|
|
32905
|
+
const tokenString = yield token("bearerAuth", []);
|
|
32906
|
+
if (tokenString) {
|
|
32907
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
32908
|
+
}
|
|
32909
|
+
}
|
|
32910
|
+
const response = yield this.request({
|
|
32911
|
+
path: `/api/folder-configurations/{organizationId}/{tenantId}/flt/{folderKey}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"tenantId"}}`, encodeURIComponent(String(requestParameters.tenantId))).replace(`{${"folderKey"}}`, encodeURIComponent(String(requestParameters.folderKey))),
|
|
32912
|
+
method: "PUT",
|
|
32913
|
+
headers: headerParameters,
|
|
32914
|
+
query: queryParameters,
|
|
32915
|
+
body: (0, models_1.SetFolderFltConfigurationRequestDtoToJSON)(requestParameters.setFolderFltConfigurationRequestDto)
|
|
32916
|
+
}, initOverrides);
|
|
32917
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FolderFltConfigurationDtoFromJSON)(jsonValue));
|
|
32918
|
+
});
|
|
32919
|
+
}
|
|
32920
|
+
setFolderFltConfiguration(requestParameters, initOverrides) {
|
|
32921
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
32922
|
+
const response = yield this.setFolderFltConfigurationRaw(requestParameters, initOverrides);
|
|
32923
|
+
return yield response.value();
|
|
32924
|
+
});
|
|
32925
|
+
}
|
|
32926
|
+
}
|
|
32927
|
+
exports.FolderConfigurationAPI = FolderConfigurationAPI;
|
|
32928
|
+
});
|
|
32929
|
+
|
|
32281
32930
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/apis/LeaseAPI.js
|
|
32282
32931
|
var require_LeaseAPI = __commonJS((exports) => {
|
|
32283
32932
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -32637,6 +33286,40 @@ var require_LeaseAPI = __commonJS((exports) => {
|
|
|
32637
33286
|
return yield response.value();
|
|
32638
33287
|
});
|
|
32639
33288
|
}
|
|
33289
|
+
computeUsageForTenantConsumablesRaw(requestParameters, initOverrides) {
|
|
33290
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
33291
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
33292
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling computeUsageForTenantConsumables.");
|
|
33293
|
+
}
|
|
33294
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
33295
|
+
throw new runtime.RequiredError("tenantId", "Required parameter requestParameters.tenantId was null or undefined when calling computeUsageForTenantConsumables.");
|
|
33296
|
+
}
|
|
33297
|
+
const queryParameters = {};
|
|
33298
|
+
const headerParameters = {};
|
|
33299
|
+
headerParameters["Content-Type"] = "application/json";
|
|
33300
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
33301
|
+
const token = this.configuration.accessToken;
|
|
33302
|
+
const tokenString = yield token("bearerAuth", []);
|
|
33303
|
+
if (tokenString) {
|
|
33304
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
33305
|
+
}
|
|
33306
|
+
}
|
|
33307
|
+
const response = yield this.request({
|
|
33308
|
+
path: `/api/lease/{organizationId}/tenant/{tenantId}/consumables`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"tenantId"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
33309
|
+
method: "PUT",
|
|
33310
|
+
headers: headerParameters,
|
|
33311
|
+
query: queryParameters,
|
|
33312
|
+
body: (0, models_1.ConsumableRequestDtoToJSON)(requestParameters.consumableRequestDto)
|
|
33313
|
+
}, initOverrides);
|
|
33314
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.ConsumableUsageDtoFromJSON));
|
|
33315
|
+
});
|
|
33316
|
+
}
|
|
33317
|
+
computeUsageForTenantConsumables(requestParameters, initOverrides) {
|
|
33318
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
33319
|
+
const response = yield this.computeUsageForTenantConsumablesRaw(requestParameters, initOverrides);
|
|
33320
|
+
return yield response.value();
|
|
33321
|
+
});
|
|
33322
|
+
}
|
|
32640
33323
|
createLeaseRaw(requestParameters, initOverrides) {
|
|
32641
33324
|
return __awaiter(this, undefined, undefined, function* () {
|
|
32642
33325
|
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
@@ -34987,6 +35670,40 @@ var require_UsageAPI = __commonJS((exports) => {
|
|
|
34987
35670
|
return yield response.value();
|
|
34988
35671
|
});
|
|
34989
35672
|
}
|
|
35673
|
+
getTenantConsumptionSummaryByTenantRaw(requestParameters, initOverrides) {
|
|
35674
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
35675
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
35676
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling getTenantConsumptionSummaryByTenant.");
|
|
35677
|
+
}
|
|
35678
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
35679
|
+
throw new runtime.RequiredError("tenantId", "Required parameter requestParameters.tenantId was null or undefined when calling getTenantConsumptionSummaryByTenant.");
|
|
35680
|
+
}
|
|
35681
|
+
const queryParameters = {};
|
|
35682
|
+
const headerParameters = {};
|
|
35683
|
+
headerParameters["Content-Type"] = "application/json";
|
|
35684
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
35685
|
+
const token = this.configuration.accessToken;
|
|
35686
|
+
const tokenString = yield token("bearerAuth", []);
|
|
35687
|
+
if (tokenString) {
|
|
35688
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
35689
|
+
}
|
|
35690
|
+
}
|
|
35691
|
+
const response = yield this.request({
|
|
35692
|
+
path: `/api/usage/{organizationId}/tenants/{tenantId}/consumption-summary`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"tenantId"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
35693
|
+
method: "POST",
|
|
35694
|
+
headers: headerParameters,
|
|
35695
|
+
query: queryParameters,
|
|
35696
|
+
body: (0, models_1.GetTenantConsumptionSummaryQueryToJSON)(requestParameters.getTenantConsumptionSummaryQuery)
|
|
35697
|
+
}, initOverrides);
|
|
35698
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.GetTenantConsumptionSummaryDtoFromJSON)(jsonValue));
|
|
35699
|
+
});
|
|
35700
|
+
}
|
|
35701
|
+
getTenantConsumptionSummaryByTenant(requestParameters, initOverrides) {
|
|
35702
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
35703
|
+
const response = yield this.getTenantConsumptionSummaryByTenantRaw(requestParameters, initOverrides);
|
|
35704
|
+
return yield response.value();
|
|
35705
|
+
});
|
|
35706
|
+
}
|
|
34990
35707
|
getTenantDailyConsumptionByServiceRaw(requestParameters, initOverrides) {
|
|
34991
35708
|
return __awaiter(this, undefined, undefined, function* () {
|
|
34992
35709
|
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
@@ -35111,6 +35828,40 @@ var require_UsageAPI = __commonJS((exports) => {
|
|
|
35111
35828
|
return yield response.value();
|
|
35112
35829
|
});
|
|
35113
35830
|
}
|
|
35831
|
+
getUsageForServicesByTenantRaw(requestParameters, initOverrides) {
|
|
35832
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
35833
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
35834
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling getUsageForServicesByTenant.");
|
|
35835
|
+
}
|
|
35836
|
+
if (requestParameters.tenantId === null || requestParameters.tenantId === undefined) {
|
|
35837
|
+
throw new runtime.RequiredError("tenantId", "Required parameter requestParameters.tenantId was null or undefined when calling getUsageForServicesByTenant.");
|
|
35838
|
+
}
|
|
35839
|
+
const queryParameters = {};
|
|
35840
|
+
const headerParameters = {};
|
|
35841
|
+
headerParameters["Content-Type"] = "application/json";
|
|
35842
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
35843
|
+
const token = this.configuration.accessToken;
|
|
35844
|
+
const tokenString = yield token("bearerAuth", []);
|
|
35845
|
+
if (tokenString) {
|
|
35846
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
35847
|
+
}
|
|
35848
|
+
}
|
|
35849
|
+
const response = yield this.request({
|
|
35850
|
+
path: `/api/usage/{organizationId}/tenants/{tenantId}/services`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"tenantId"}}`, encodeURIComponent(String(requestParameters.tenantId))),
|
|
35851
|
+
method: "PUT",
|
|
35852
|
+
headers: headerParameters,
|
|
35853
|
+
query: queryParameters,
|
|
35854
|
+
body: (0, models_1.GetUsageForServicesQueryToJSON)(requestParameters.getUsageForServicesQuery)
|
|
35855
|
+
}, initOverrides);
|
|
35856
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UsageForServicesDtoFromJSON)(jsonValue));
|
|
35857
|
+
});
|
|
35858
|
+
}
|
|
35859
|
+
getUsageForServicesByTenant(requestParameters, initOverrides) {
|
|
35860
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
35861
|
+
const response = yield this.getUsageForServicesByTenantRaw(requestParameters, initOverrides);
|
|
35862
|
+
return yield response.value();
|
|
35863
|
+
});
|
|
35864
|
+
}
|
|
35114
35865
|
getUsageForTenantsRaw(requestParameters, initOverrides) {
|
|
35115
35866
|
return __awaiter(this, undefined, undefined, function* () {
|
|
35116
35867
|
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
@@ -35173,6 +35924,72 @@ var require_UsageAPI = __commonJS((exports) => {
|
|
|
35173
35924
|
return yield response.value();
|
|
35174
35925
|
});
|
|
35175
35926
|
}
|
|
35927
|
+
getUserConsumablesRaw(requestParameters, initOverrides) {
|
|
35928
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
35929
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
35930
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling getUserConsumables.");
|
|
35931
|
+
}
|
|
35932
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
35933
|
+
throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling getUserConsumables.");
|
|
35934
|
+
}
|
|
35935
|
+
const queryParameters = {};
|
|
35936
|
+
const headerParameters = {};
|
|
35937
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
35938
|
+
const token = this.configuration.accessToken;
|
|
35939
|
+
const tokenString = yield token("bearerAuth", []);
|
|
35940
|
+
if (tokenString) {
|
|
35941
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
35942
|
+
}
|
|
35943
|
+
}
|
|
35944
|
+
const response = yield this.request({
|
|
35945
|
+
path: `/api/usage/{organizationId}/user/{userId}/consumables`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
35946
|
+
method: "GET",
|
|
35947
|
+
headers: headerParameters,
|
|
35948
|
+
query: queryParameters
|
|
35949
|
+
}, initOverrides);
|
|
35950
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserConsumablesDtoFromJSON)(jsonValue));
|
|
35951
|
+
});
|
|
35952
|
+
}
|
|
35953
|
+
getUserConsumables(requestParameters, initOverrides) {
|
|
35954
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
35955
|
+
const response = yield this.getUserConsumablesRaw(requestParameters, initOverrides);
|
|
35956
|
+
return yield response.value();
|
|
35957
|
+
});
|
|
35958
|
+
}
|
|
35959
|
+
getUserFreeConsumablesSummaryRaw(requestParameters, initOverrides) {
|
|
35960
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
35961
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
35962
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling getUserFreeConsumablesSummary.");
|
|
35963
|
+
}
|
|
35964
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
35965
|
+
throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling getUserFreeConsumablesSummary.");
|
|
35966
|
+
}
|
|
35967
|
+
const queryParameters = {};
|
|
35968
|
+
const headerParameters = {};
|
|
35969
|
+
headerParameters["Content-Type"] = "application/json";
|
|
35970
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
35971
|
+
const token = this.configuration.accessToken;
|
|
35972
|
+
const tokenString = yield token("bearerAuth", []);
|
|
35973
|
+
if (tokenString) {
|
|
35974
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
35975
|
+
}
|
|
35976
|
+
}
|
|
35977
|
+
const response = yield this.request({
|
|
35978
|
+
path: `/api/usage/{organizationId}/user/{userId}/summary/free-consumables`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
35979
|
+
method: "PUT",
|
|
35980
|
+
headers: headerParameters,
|
|
35981
|
+
query: queryParameters,
|
|
35982
|
+
body: (0, models_1.GetUsageSummaryCommandToJSON)(requestParameters.getUsageSummaryCommand)
|
|
35983
|
+
}, initOverrides);
|
|
35984
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UsageSummariesDtoFromJSON)(jsonValue));
|
|
35985
|
+
});
|
|
35986
|
+
}
|
|
35987
|
+
getUserFreeConsumablesSummary(requestParameters, initOverrides) {
|
|
35988
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
35989
|
+
const response = yield this.getUserFreeConsumablesSummaryRaw(requestParameters, initOverrides);
|
|
35990
|
+
return yield response.value();
|
|
35991
|
+
});
|
|
35992
|
+
}
|
|
35176
35993
|
retrieveBandwidthForOperationRaw(requestParameters, initOverrides) {
|
|
35177
35994
|
return __awaiter(this, undefined, undefined, function* () {
|
|
35178
35995
|
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
@@ -36403,6 +37220,38 @@ var require_UserLicenseAPI = __commonJS((exports) => {
|
|
|
36403
37220
|
return yield response.value();
|
|
36404
37221
|
});
|
|
36405
37222
|
}
|
|
37223
|
+
getUserStrongestLicenseRaw(requestParameters, initOverrides) {
|
|
37224
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
37225
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
37226
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling getUserStrongestLicense.");
|
|
37227
|
+
}
|
|
37228
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
37229
|
+
throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling getUserStrongestLicense.");
|
|
37230
|
+
}
|
|
37231
|
+
const queryParameters = {};
|
|
37232
|
+
const headerParameters = {};
|
|
37233
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
37234
|
+
const token = this.configuration.accessToken;
|
|
37235
|
+
const tokenString = yield token("bearerAuth", []);
|
|
37236
|
+
if (tokenString) {
|
|
37237
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
37238
|
+
}
|
|
37239
|
+
}
|
|
37240
|
+
const response = yield this.request({
|
|
37241
|
+
path: `/api/account/{organizationId}/user-license/{userId}/strongest-license`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
37242
|
+
method: "GET",
|
|
37243
|
+
headers: headerParameters,
|
|
37244
|
+
query: queryParameters
|
|
37245
|
+
}, initOverrides);
|
|
37246
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserStrongestLicenseDtoFromJSON)(jsonValue));
|
|
37247
|
+
});
|
|
37248
|
+
}
|
|
37249
|
+
getUserStrongestLicense(requestParameters, initOverrides) {
|
|
37250
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
37251
|
+
const response = yield this.getUserStrongestLicenseRaw(requestParameters, initOverrides);
|
|
37252
|
+
return yield response.value();
|
|
37253
|
+
});
|
|
37254
|
+
}
|
|
36406
37255
|
getUsersWithAExplicitAllocationsRaw(requestParameters, initOverrides) {
|
|
36407
37256
|
return __awaiter(this, undefined, undefined, function* () {
|
|
36408
37257
|
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
@@ -36893,6 +37742,150 @@ var require_UserLicensingAPI = __commonJS((exports) => {
|
|
|
36893
37742
|
exports.UserLicensingAPI = UserLicensingAPI;
|
|
36894
37743
|
});
|
|
36895
37744
|
|
|
37745
|
+
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/apis/UserUsageAPI.js
|
|
37746
|
+
var require_UserUsageAPI = __commonJS((exports) => {
|
|
37747
|
+
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
37748
|
+
function adopt(value) {
|
|
37749
|
+
return value instanceof P ? value : new P(function(resolve2) {
|
|
37750
|
+
resolve2(value);
|
|
37751
|
+
});
|
|
37752
|
+
}
|
|
37753
|
+
return new (P || (P = Promise))(function(resolve2, reject) {
|
|
37754
|
+
function fulfilled(value) {
|
|
37755
|
+
try {
|
|
37756
|
+
step(generator.next(value));
|
|
37757
|
+
} catch (e) {
|
|
37758
|
+
reject(e);
|
|
37759
|
+
}
|
|
37760
|
+
}
|
|
37761
|
+
function rejected(value) {
|
|
37762
|
+
try {
|
|
37763
|
+
step(generator["throw"](value));
|
|
37764
|
+
} catch (e) {
|
|
37765
|
+
reject(e);
|
|
37766
|
+
}
|
|
37767
|
+
}
|
|
37768
|
+
function step(result) {
|
|
37769
|
+
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
37770
|
+
}
|
|
37771
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37772
|
+
});
|
|
37773
|
+
};
|
|
37774
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37775
|
+
exports.UserUsageAPI = undefined;
|
|
37776
|
+
var runtime = require_runtime();
|
|
37777
|
+
var models_1 = require_models();
|
|
37778
|
+
|
|
37779
|
+
class UserUsageAPI extends runtime.BaseAPI {
|
|
37780
|
+
countUsersWithConsumptionRaw(requestParameters, initOverrides) {
|
|
37781
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
37782
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
37783
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling countUsersWithConsumption.");
|
|
37784
|
+
}
|
|
37785
|
+
const queryParameters = {};
|
|
37786
|
+
const headerParameters = {};
|
|
37787
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
37788
|
+
const token = this.configuration.accessToken;
|
|
37789
|
+
const tokenString = yield token("bearerAuth", []);
|
|
37790
|
+
if (tokenString) {
|
|
37791
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
37792
|
+
}
|
|
37793
|
+
}
|
|
37794
|
+
const response = yield this.request({
|
|
37795
|
+
path: `/api/user-usage/{organizationId}/users/count`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
37796
|
+
method: "GET",
|
|
37797
|
+
headers: headerParameters,
|
|
37798
|
+
query: queryParameters
|
|
37799
|
+
}, initOverrides);
|
|
37800
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserUsageOrgSummaryDtoFromJSON)(jsonValue));
|
|
37801
|
+
});
|
|
37802
|
+
}
|
|
37803
|
+
countUsersWithConsumption(requestParameters, initOverrides) {
|
|
37804
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
37805
|
+
const response = yield this.countUsersWithConsumptionRaw(requestParameters, initOverrides);
|
|
37806
|
+
return yield response.value();
|
|
37807
|
+
});
|
|
37808
|
+
}
|
|
37809
|
+
getUserUsageSingleUserConsumptionRaw(requestParameters, initOverrides) {
|
|
37810
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
37811
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
37812
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling getUserUsageSingleUserConsumption.");
|
|
37813
|
+
}
|
|
37814
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
37815
|
+
throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling getUserUsageSingleUserConsumption.");
|
|
37816
|
+
}
|
|
37817
|
+
const queryParameters = {};
|
|
37818
|
+
const headerParameters = {};
|
|
37819
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
37820
|
+
const token = this.configuration.accessToken;
|
|
37821
|
+
const tokenString = yield token("bearerAuth", []);
|
|
37822
|
+
if (tokenString) {
|
|
37823
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
37824
|
+
}
|
|
37825
|
+
}
|
|
37826
|
+
const response = yield this.request({
|
|
37827
|
+
path: `/api/user-usage/{organizationId}/users/{userId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
37828
|
+
method: "GET",
|
|
37829
|
+
headers: headerParameters,
|
|
37830
|
+
query: queryParameters
|
|
37831
|
+
}, initOverrides);
|
|
37832
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserUsageUserConsumptionDtoFromJSON)(jsonValue));
|
|
37833
|
+
});
|
|
37834
|
+
}
|
|
37835
|
+
getUserUsageSingleUserConsumption(requestParameters, initOverrides) {
|
|
37836
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
37837
|
+
const response = yield this.getUserUsageSingleUserConsumptionRaw(requestParameters, initOverrides);
|
|
37838
|
+
return yield response.value();
|
|
37839
|
+
});
|
|
37840
|
+
}
|
|
37841
|
+
getUserUsageUsersConsumptionRaw(requestParameters, initOverrides) {
|
|
37842
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
37843
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
37844
|
+
throw new runtime.RequiredError("organizationId", "Required parameter requestParameters.organizationId was null or undefined when calling getUserUsageUsersConsumption.");
|
|
37845
|
+
}
|
|
37846
|
+
const queryParameters = {};
|
|
37847
|
+
if (requestParameters.top !== undefined) {
|
|
37848
|
+
queryParameters["top"] = requestParameters.top;
|
|
37849
|
+
}
|
|
37850
|
+
if (requestParameters.skip !== undefined) {
|
|
37851
|
+
queryParameters["skip"] = requestParameters.skip;
|
|
37852
|
+
}
|
|
37853
|
+
if (requestParameters.sortBy !== undefined) {
|
|
37854
|
+
queryParameters["sortBy"] = requestParameters.sortBy;
|
|
37855
|
+
}
|
|
37856
|
+
if (requestParameters.sortOrder !== undefined) {
|
|
37857
|
+
queryParameters["sortOrder"] = requestParameters.sortOrder;
|
|
37858
|
+
}
|
|
37859
|
+
if (requestParameters.userBundleLicenseCodes) {
|
|
37860
|
+
queryParameters["userBundleLicenseCodes"] = requestParameters.userBundleLicenseCodes;
|
|
37861
|
+
}
|
|
37862
|
+
const headerParameters = {};
|
|
37863
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
37864
|
+
const token = this.configuration.accessToken;
|
|
37865
|
+
const tokenString = yield token("bearerAuth", []);
|
|
37866
|
+
if (tokenString) {
|
|
37867
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
37868
|
+
}
|
|
37869
|
+
}
|
|
37870
|
+
const response = yield this.request({
|
|
37871
|
+
path: `/api/user-usage/{organizationId}/users`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
37872
|
+
method: "GET",
|
|
37873
|
+
headers: headerParameters,
|
|
37874
|
+
query: queryParameters
|
|
37875
|
+
}, initOverrides);
|
|
37876
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.UserUsageUserConsumptionDtoPagedResultFromJSON)(jsonValue));
|
|
37877
|
+
});
|
|
37878
|
+
}
|
|
37879
|
+
getUserUsageUsersConsumption(requestParameters, initOverrides) {
|
|
37880
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
37881
|
+
const response = yield this.getUserUsageUsersConsumptionRaw(requestParameters, initOverrides);
|
|
37882
|
+
return yield response.value();
|
|
37883
|
+
});
|
|
37884
|
+
}
|
|
37885
|
+
}
|
|
37886
|
+
exports.UserUsageAPI = UserUsageAPI;
|
|
37887
|
+
});
|
|
37888
|
+
|
|
36896
37889
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/apis/index.js
|
|
36897
37890
|
var require_apis = __commonJS((exports) => {
|
|
36898
37891
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -36921,6 +37914,7 @@ var require_apis = __commonJS((exports) => {
|
|
|
36921
37914
|
__exportStar(require_DeploymentTypeAPI(), exports);
|
|
36922
37915
|
__exportStar(require_EntitlementsAPI(), exports);
|
|
36923
37916
|
__exportStar(require_FallbackConfigurationAPI(), exports);
|
|
37917
|
+
__exportStar(require_FolderConfigurationAPI(), exports);
|
|
36924
37918
|
__exportStar(require_LeaseAPI(), exports);
|
|
36925
37919
|
__exportStar(require_LicenseAccountantAPI(), exports);
|
|
36926
37920
|
__exportStar(require_LicenseChangedEventAPI(), exports);
|
|
@@ -36938,6 +37932,7 @@ var require_apis = __commonJS((exports) => {
|
|
|
36938
37932
|
__exportStar(require_UsageEventAPI(), exports);
|
|
36939
37933
|
__exportStar(require_UserLicenseAPI(), exports);
|
|
36940
37934
|
__exportStar(require_UserLicensingAPI(), exports);
|
|
37935
|
+
__exportStar(require_UserUsageAPI(), exports);
|
|
36941
37936
|
});
|
|
36942
37937
|
|
|
36943
37938
|
// ../../node_modules/@uipath/license.accountant.typescript.client/dist/index.js
|
|
@@ -37136,7 +38131,7 @@ var require_runtime2 = __commonJS((exports) => {
|
|
|
37136
38131
|
}
|
|
37137
38132
|
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
37138
38133
|
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
37139
|
-
headers["X-UiPath-ApiClient-Info"] = "UiPath.LicenseResourceManager.Client,1.1.
|
|
38134
|
+
headers["X-UiPath-ApiClient-Info"] = "UiPath.LicenseResourceManager.Client,1.1.15,typescript";
|
|
37140
38135
|
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : () => __awaiter(this, undefined, undefined, function* () {
|
|
37141
38136
|
return initOverrides;
|
|
37142
38137
|
});
|
|
@@ -38051,6 +39046,59 @@ var require_CompatibilityReportResponse2 = __commonJS((exports) => {
|
|
|
38051
39046
|
exports.CompatibilityReportResponseToJSON = CompatibilityReportResponseToJSON;
|
|
38052
39047
|
});
|
|
38053
39048
|
|
|
39049
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/ConsumableSummaryDto.js
|
|
39050
|
+
var require_ConsumableSummaryDto = __commonJS((exports) => {
|
|
39051
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39052
|
+
exports.ConsumableSummaryDtoToJSON = exports.ConsumableSummaryDtoFromJSONTyped = exports.ConsumableSummaryDtoFromJSON = exports.instanceOfConsumableSummaryDto = undefined;
|
|
39053
|
+
var runtime_1 = require_runtime2();
|
|
39054
|
+
function instanceOfConsumableSummaryDto(value) {
|
|
39055
|
+
let isInstance = true;
|
|
39056
|
+
isInstance = isInstance && "code" in value;
|
|
39057
|
+
isInstance = isInstance && "total" in value;
|
|
39058
|
+
isInstance = isInstance && "allocated" in value;
|
|
39059
|
+
isInstance = isInstance && "used" in value;
|
|
39060
|
+
isInstance = isInstance && "startDate" in value;
|
|
39061
|
+
isInstance = isInstance && "endDate" in value;
|
|
39062
|
+
return isInstance;
|
|
39063
|
+
}
|
|
39064
|
+
exports.instanceOfConsumableSummaryDto = instanceOfConsumableSummaryDto;
|
|
39065
|
+
function ConsumableSummaryDtoFromJSON(json2) {
|
|
39066
|
+
return ConsumableSummaryDtoFromJSONTyped(json2, false);
|
|
39067
|
+
}
|
|
39068
|
+
exports.ConsumableSummaryDtoFromJSON = ConsumableSummaryDtoFromJSON;
|
|
39069
|
+
function ConsumableSummaryDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
39070
|
+
if (json2 === undefined || json2 === null) {
|
|
39071
|
+
return json2;
|
|
39072
|
+
}
|
|
39073
|
+
return {
|
|
39074
|
+
code: !(0, runtime_1.exists)(json2, "code") ? undefined : json2["code"],
|
|
39075
|
+
total: !(0, runtime_1.exists)(json2, "total") ? undefined : json2["total"],
|
|
39076
|
+
allocated: !(0, runtime_1.exists)(json2, "allocated") ? undefined : json2["allocated"],
|
|
39077
|
+
used: !(0, runtime_1.exists)(json2, "used") ? undefined : json2["used"],
|
|
39078
|
+
startDate: !(0, runtime_1.exists)(json2, "startDate") ? undefined : json2["startDate"],
|
|
39079
|
+
endDate: !(0, runtime_1.exists)(json2, "endDate") ? undefined : json2["endDate"]
|
|
39080
|
+
};
|
|
39081
|
+
}
|
|
39082
|
+
exports.ConsumableSummaryDtoFromJSONTyped = ConsumableSummaryDtoFromJSONTyped;
|
|
39083
|
+
function ConsumableSummaryDtoToJSON(value) {
|
|
39084
|
+
if (value === undefined) {
|
|
39085
|
+
return;
|
|
39086
|
+
}
|
|
39087
|
+
if (value === null) {
|
|
39088
|
+
return null;
|
|
39089
|
+
}
|
|
39090
|
+
return {
|
|
39091
|
+
code: value.code,
|
|
39092
|
+
total: value.total,
|
|
39093
|
+
allocated: value.allocated,
|
|
39094
|
+
used: value.used,
|
|
39095
|
+
startDate: value.startDate,
|
|
39096
|
+
endDate: value.endDate
|
|
39097
|
+
};
|
|
39098
|
+
}
|
|
39099
|
+
exports.ConsumableSummaryDtoToJSON = ConsumableSummaryDtoToJSON;
|
|
39100
|
+
});
|
|
39101
|
+
|
|
38054
39102
|
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/CreateOrUpdateQuotaDefinitionRequest.js
|
|
38055
39103
|
var require_CreateOrUpdateQuotaDefinitionRequest = __commonJS((exports) => {
|
|
38056
39104
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -38449,6 +39497,7 @@ var require_DistributionIntervalDto = __commonJS((exports) => {
|
|
|
38449
39497
|
isInstance = isInstance && "endDate" in value;
|
|
38450
39498
|
isInstance = isInstance && "quantity" in value;
|
|
38451
39499
|
isInstance = isInstance && "isIntervalFromTrial" in value;
|
|
39500
|
+
isInstance = isInstance && "sourcePoolCode" in value;
|
|
38452
39501
|
return isInstance;
|
|
38453
39502
|
}
|
|
38454
39503
|
exports.instanceOfDistributionIntervalDto = instanceOfDistributionIntervalDto;
|
|
@@ -38464,7 +39513,8 @@ var require_DistributionIntervalDto = __commonJS((exports) => {
|
|
|
38464
39513
|
startDate: !(0, runtime_1.exists)(json2, "startDate") ? undefined : json2["startDate"],
|
|
38465
39514
|
endDate: !(0, runtime_1.exists)(json2, "endDate") ? undefined : json2["endDate"],
|
|
38466
39515
|
quantity: !(0, runtime_1.exists)(json2, "quantity") ? undefined : json2["quantity"],
|
|
38467
|
-
isIntervalFromTrial: !(0, runtime_1.exists)(json2, "isIntervalFromTrial") ? undefined : json2["isIntervalFromTrial"]
|
|
39516
|
+
isIntervalFromTrial: !(0, runtime_1.exists)(json2, "isIntervalFromTrial") ? undefined : json2["isIntervalFromTrial"],
|
|
39517
|
+
sourcePoolCode: !(0, runtime_1.exists)(json2, "sourcePoolCode") ? undefined : json2["sourcePoolCode"]
|
|
38468
39518
|
};
|
|
38469
39519
|
}
|
|
38470
39520
|
exports.DistributionIntervalDtoFromJSONTyped = DistributionIntervalDtoFromJSONTyped;
|
|
@@ -38479,7 +39529,8 @@ var require_DistributionIntervalDto = __commonJS((exports) => {
|
|
|
38479
39529
|
startDate: value.startDate,
|
|
38480
39530
|
endDate: value.endDate,
|
|
38481
39531
|
quantity: value.quantity,
|
|
38482
|
-
isIntervalFromTrial: value.isIntervalFromTrial
|
|
39532
|
+
isIntervalFromTrial: value.isIntervalFromTrial,
|
|
39533
|
+
sourcePoolCode: value.sourcePoolCode
|
|
38483
39534
|
};
|
|
38484
39535
|
}
|
|
38485
39536
|
exports.DistributionIntervalDtoToJSON = DistributionIntervalDtoToJSON;
|
|
@@ -39129,6 +40180,141 @@ var require_MigrationStatusDto = __commonJS((exports) => {
|
|
|
39129
40180
|
exports.MigrationStatusDtoToJSON = MigrationStatusDtoToJSON;
|
|
39130
40181
|
});
|
|
39131
40182
|
|
|
40183
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/RobotAllocationSummaryDto.js
|
|
40184
|
+
var require_RobotAllocationSummaryDto = __commonJS((exports) => {
|
|
40185
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40186
|
+
exports.RobotAllocationSummaryDtoToJSON = exports.RobotAllocationSummaryDtoFromJSONTyped = exports.RobotAllocationSummaryDtoFromJSON = exports.instanceOfRobotAllocationSummaryDto = undefined;
|
|
40187
|
+
var runtime_1 = require_runtime2();
|
|
40188
|
+
function instanceOfRobotAllocationSummaryDto(value) {
|
|
40189
|
+
let isInstance = true;
|
|
40190
|
+
isInstance = isInstance && "code" in value;
|
|
40191
|
+
isInstance = isInstance && "total" in value;
|
|
40192
|
+
isInstance = isInstance && "allocated" in value;
|
|
40193
|
+
return isInstance;
|
|
40194
|
+
}
|
|
40195
|
+
exports.instanceOfRobotAllocationSummaryDto = instanceOfRobotAllocationSummaryDto;
|
|
40196
|
+
function RobotAllocationSummaryDtoFromJSON(json2) {
|
|
40197
|
+
return RobotAllocationSummaryDtoFromJSONTyped(json2, false);
|
|
40198
|
+
}
|
|
40199
|
+
exports.RobotAllocationSummaryDtoFromJSON = RobotAllocationSummaryDtoFromJSON;
|
|
40200
|
+
function RobotAllocationSummaryDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
40201
|
+
if (json2 === undefined || json2 === null) {
|
|
40202
|
+
return json2;
|
|
40203
|
+
}
|
|
40204
|
+
return {
|
|
40205
|
+
code: !(0, runtime_1.exists)(json2, "code") ? undefined : json2["code"],
|
|
40206
|
+
total: !(0, runtime_1.exists)(json2, "total") ? undefined : json2["total"],
|
|
40207
|
+
allocated: !(0, runtime_1.exists)(json2, "allocated") ? undefined : json2["allocated"]
|
|
40208
|
+
};
|
|
40209
|
+
}
|
|
40210
|
+
exports.RobotAllocationSummaryDtoFromJSONTyped = RobotAllocationSummaryDtoFromJSONTyped;
|
|
40211
|
+
function RobotAllocationSummaryDtoToJSON(value) {
|
|
40212
|
+
if (value === undefined) {
|
|
40213
|
+
return;
|
|
40214
|
+
}
|
|
40215
|
+
if (value === null) {
|
|
40216
|
+
return null;
|
|
40217
|
+
}
|
|
40218
|
+
return {
|
|
40219
|
+
code: value.code,
|
|
40220
|
+
total: value.total,
|
|
40221
|
+
allocated: value.allocated
|
|
40222
|
+
};
|
|
40223
|
+
}
|
|
40224
|
+
exports.RobotAllocationSummaryDtoToJSON = RobotAllocationSummaryDtoToJSON;
|
|
40225
|
+
});
|
|
40226
|
+
|
|
40227
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/UserLicenseSummaryDto.js
|
|
40228
|
+
var require_UserLicenseSummaryDto = __commonJS((exports) => {
|
|
40229
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40230
|
+
exports.UserLicenseSummaryDtoToJSON = exports.UserLicenseSummaryDtoFromJSONTyped = exports.UserLicenseSummaryDtoFromJSON = exports.instanceOfUserLicenseSummaryDto = undefined;
|
|
40231
|
+
var runtime_1 = require_runtime2();
|
|
40232
|
+
function instanceOfUserLicenseSummaryDto(value) {
|
|
40233
|
+
let isInstance = true;
|
|
40234
|
+
isInstance = isInstance && "code" in value;
|
|
40235
|
+
isInstance = isInstance && "total" in value;
|
|
40236
|
+
isInstance = isInstance && "used" in value;
|
|
40237
|
+
return isInstance;
|
|
40238
|
+
}
|
|
40239
|
+
exports.instanceOfUserLicenseSummaryDto = instanceOfUserLicenseSummaryDto;
|
|
40240
|
+
function UserLicenseSummaryDtoFromJSON(json2) {
|
|
40241
|
+
return UserLicenseSummaryDtoFromJSONTyped(json2, false);
|
|
40242
|
+
}
|
|
40243
|
+
exports.UserLicenseSummaryDtoFromJSON = UserLicenseSummaryDtoFromJSON;
|
|
40244
|
+
function UserLicenseSummaryDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
40245
|
+
if (json2 === undefined || json2 === null) {
|
|
40246
|
+
return json2;
|
|
40247
|
+
}
|
|
40248
|
+
return {
|
|
40249
|
+
code: !(0, runtime_1.exists)(json2, "code") ? undefined : json2["code"],
|
|
40250
|
+
total: !(0, runtime_1.exists)(json2, "total") ? undefined : json2["total"],
|
|
40251
|
+
used: !(0, runtime_1.exists)(json2, "used") ? undefined : json2["used"]
|
|
40252
|
+
};
|
|
40253
|
+
}
|
|
40254
|
+
exports.UserLicenseSummaryDtoFromJSONTyped = UserLicenseSummaryDtoFromJSONTyped;
|
|
40255
|
+
function UserLicenseSummaryDtoToJSON(value) {
|
|
40256
|
+
if (value === undefined) {
|
|
40257
|
+
return;
|
|
40258
|
+
}
|
|
40259
|
+
if (value === null) {
|
|
40260
|
+
return null;
|
|
40261
|
+
}
|
|
40262
|
+
return {
|
|
40263
|
+
code: value.code,
|
|
40264
|
+
total: value.total,
|
|
40265
|
+
used: value.used
|
|
40266
|
+
};
|
|
40267
|
+
}
|
|
40268
|
+
exports.UserLicenseSummaryDtoToJSON = UserLicenseSummaryDtoToJSON;
|
|
40269
|
+
});
|
|
40270
|
+
|
|
40271
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/OrganizationLicenseSummaryDto.js
|
|
40272
|
+
var require_OrganizationLicenseSummaryDto = __commonJS((exports) => {
|
|
40273
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40274
|
+
exports.OrganizationLicenseSummaryDtoToJSON = exports.OrganizationLicenseSummaryDtoFromJSONTyped = exports.OrganizationLicenseSummaryDtoFromJSON = exports.instanceOfOrganizationLicenseSummaryDto = undefined;
|
|
40275
|
+
var runtime_1 = require_runtime2();
|
|
40276
|
+
var ConsumableSummaryDto_1 = require_ConsumableSummaryDto();
|
|
40277
|
+
var RobotAllocationSummaryDto_1 = require_RobotAllocationSummaryDto();
|
|
40278
|
+
var UserLicenseSummaryDto_1 = require_UserLicenseSummaryDto();
|
|
40279
|
+
function instanceOfOrganizationLicenseSummaryDto(value) {
|
|
40280
|
+
let isInstance = true;
|
|
40281
|
+
isInstance = isInstance && "robots" in value;
|
|
40282
|
+
isInstance = isInstance && "userLicenses" in value;
|
|
40283
|
+
isInstance = isInstance && "consumables" in value;
|
|
40284
|
+
return isInstance;
|
|
40285
|
+
}
|
|
40286
|
+
exports.instanceOfOrganizationLicenseSummaryDto = instanceOfOrganizationLicenseSummaryDto;
|
|
40287
|
+
function OrganizationLicenseSummaryDtoFromJSON(json2) {
|
|
40288
|
+
return OrganizationLicenseSummaryDtoFromJSONTyped(json2, false);
|
|
40289
|
+
}
|
|
40290
|
+
exports.OrganizationLicenseSummaryDtoFromJSON = OrganizationLicenseSummaryDtoFromJSON;
|
|
40291
|
+
function OrganizationLicenseSummaryDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
40292
|
+
if (json2 === undefined || json2 === null) {
|
|
40293
|
+
return json2;
|
|
40294
|
+
}
|
|
40295
|
+
return {
|
|
40296
|
+
robots: !(0, runtime_1.exists)(json2, "robots") ? undefined : json2["robots"] === null ? null : json2["robots"].map(RobotAllocationSummaryDto_1.RobotAllocationSummaryDtoFromJSON),
|
|
40297
|
+
userLicenses: !(0, runtime_1.exists)(json2, "userLicenses") ? undefined : json2["userLicenses"] === null ? null : json2["userLicenses"].map(UserLicenseSummaryDto_1.UserLicenseSummaryDtoFromJSON),
|
|
40298
|
+
consumables: !(0, runtime_1.exists)(json2, "consumables") ? undefined : json2["consumables"] === null ? null : json2["consumables"].map(ConsumableSummaryDto_1.ConsumableSummaryDtoFromJSON)
|
|
40299
|
+
};
|
|
40300
|
+
}
|
|
40301
|
+
exports.OrganizationLicenseSummaryDtoFromJSONTyped = OrganizationLicenseSummaryDtoFromJSONTyped;
|
|
40302
|
+
function OrganizationLicenseSummaryDtoToJSON(value) {
|
|
40303
|
+
if (value === undefined) {
|
|
40304
|
+
return;
|
|
40305
|
+
}
|
|
40306
|
+
if (value === null) {
|
|
40307
|
+
return null;
|
|
40308
|
+
}
|
|
40309
|
+
return {
|
|
40310
|
+
robots: value.robots === undefined ? undefined : value.robots === null ? null : value.robots.map(RobotAllocationSummaryDto_1.RobotAllocationSummaryDtoToJSON),
|
|
40311
|
+
userLicenses: value.userLicenses === undefined ? undefined : value.userLicenses === null ? null : value.userLicenses.map(UserLicenseSummaryDto_1.UserLicenseSummaryDtoToJSON),
|
|
40312
|
+
consumables: value.consumables === undefined ? undefined : value.consumables === null ? null : value.consumables.map(ConsumableSummaryDto_1.ConsumableSummaryDtoToJSON)
|
|
40313
|
+
};
|
|
40314
|
+
}
|
|
40315
|
+
exports.OrganizationLicenseSummaryDtoToJSON = OrganizationLicenseSummaryDtoToJSON;
|
|
40316
|
+
});
|
|
40317
|
+
|
|
39132
40318
|
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/ProductAvailabilityDto.js
|
|
39133
40319
|
var require_ProductAvailabilityDto = __commonJS((exports) => {
|
|
39134
40320
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -39226,6 +40412,95 @@ var require_OrganizationLicenseWithAvailableProducts = __commonJS((exports) => {
|
|
|
39226
40412
|
exports.OrganizationLicenseWithAvailableProductsToJSON = OrganizationLicenseWithAvailableProductsToJSON;
|
|
39227
40413
|
});
|
|
39228
40414
|
|
|
40415
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/TenantAllocationItemDto.js
|
|
40416
|
+
var require_TenantAllocationItemDto = __commonJS((exports) => {
|
|
40417
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40418
|
+
exports.TenantAllocationItemDtoToJSON = exports.TenantAllocationItemDtoFromJSONTyped = exports.TenantAllocationItemDtoFromJSON = exports.instanceOfTenantAllocationItemDto = undefined;
|
|
40419
|
+
var runtime_1 = require_runtime2();
|
|
40420
|
+
function instanceOfTenantAllocationItemDto(value) {
|
|
40421
|
+
let isInstance = true;
|
|
40422
|
+
isInstance = isInstance && "tenantId" in value;
|
|
40423
|
+
isInstance = isInstance && "allocated" in value;
|
|
40424
|
+
return isInstance;
|
|
40425
|
+
}
|
|
40426
|
+
exports.instanceOfTenantAllocationItemDto = instanceOfTenantAllocationItemDto;
|
|
40427
|
+
function TenantAllocationItemDtoFromJSON(json2) {
|
|
40428
|
+
return TenantAllocationItemDtoFromJSONTyped(json2, false);
|
|
40429
|
+
}
|
|
40430
|
+
exports.TenantAllocationItemDtoFromJSON = TenantAllocationItemDtoFromJSON;
|
|
40431
|
+
function TenantAllocationItemDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
40432
|
+
if (json2 === undefined || json2 === null) {
|
|
40433
|
+
return json2;
|
|
40434
|
+
}
|
|
40435
|
+
return {
|
|
40436
|
+
tenantId: !(0, runtime_1.exists)(json2, "tenantId") ? undefined : json2["tenantId"],
|
|
40437
|
+
allocated: !(0, runtime_1.exists)(json2, "allocated") ? undefined : json2["allocated"]
|
|
40438
|
+
};
|
|
40439
|
+
}
|
|
40440
|
+
exports.TenantAllocationItemDtoFromJSONTyped = TenantAllocationItemDtoFromJSONTyped;
|
|
40441
|
+
function TenantAllocationItemDtoToJSON(value) {
|
|
40442
|
+
if (value === undefined) {
|
|
40443
|
+
return;
|
|
40444
|
+
}
|
|
40445
|
+
if (value === null) {
|
|
40446
|
+
return null;
|
|
40447
|
+
}
|
|
40448
|
+
return {
|
|
40449
|
+
tenantId: value.tenantId,
|
|
40450
|
+
allocated: value.allocated
|
|
40451
|
+
};
|
|
40452
|
+
}
|
|
40453
|
+
exports.TenantAllocationItemDtoToJSON = TenantAllocationItemDtoToJSON;
|
|
40454
|
+
});
|
|
40455
|
+
|
|
40456
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/OrganizationUnitAllocationDto.js
|
|
40457
|
+
var require_OrganizationUnitAllocationDto = __commonJS((exports) => {
|
|
40458
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40459
|
+
exports.OrganizationUnitAllocationDtoToJSON = exports.OrganizationUnitAllocationDtoFromJSONTyped = exports.OrganizationUnitAllocationDtoFromJSON = exports.instanceOfOrganizationUnitAllocationDto = undefined;
|
|
40460
|
+
var runtime_1 = require_runtime2();
|
|
40461
|
+
var TenantAllocationItemDto_1 = require_TenantAllocationItemDto();
|
|
40462
|
+
function instanceOfOrganizationUnitAllocationDto(value) {
|
|
40463
|
+
let isInstance = true;
|
|
40464
|
+
isInstance = isInstance && "orgTotal" in value;
|
|
40465
|
+
isInstance = isInstance && "startDate" in value;
|
|
40466
|
+
isInstance = isInstance && "endDate" in value;
|
|
40467
|
+
isInstance = isInstance && "tenantAllocations" in value;
|
|
40468
|
+
return isInstance;
|
|
40469
|
+
}
|
|
40470
|
+
exports.instanceOfOrganizationUnitAllocationDto = instanceOfOrganizationUnitAllocationDto;
|
|
40471
|
+
function OrganizationUnitAllocationDtoFromJSON(json2) {
|
|
40472
|
+
return OrganizationUnitAllocationDtoFromJSONTyped(json2, false);
|
|
40473
|
+
}
|
|
40474
|
+
exports.OrganizationUnitAllocationDtoFromJSON = OrganizationUnitAllocationDtoFromJSON;
|
|
40475
|
+
function OrganizationUnitAllocationDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
40476
|
+
if (json2 === undefined || json2 === null) {
|
|
40477
|
+
return json2;
|
|
40478
|
+
}
|
|
40479
|
+
return {
|
|
40480
|
+
orgTotal: !(0, runtime_1.exists)(json2, "orgTotal") ? undefined : json2["orgTotal"],
|
|
40481
|
+
startDate: !(0, runtime_1.exists)(json2, "startDate") ? undefined : json2["startDate"],
|
|
40482
|
+
endDate: !(0, runtime_1.exists)(json2, "endDate") ? undefined : json2["endDate"],
|
|
40483
|
+
tenantAllocations: !(0, runtime_1.exists)(json2, "tenantAllocations") ? undefined : json2["tenantAllocations"] === null ? null : json2["tenantAllocations"].map(TenantAllocationItemDto_1.TenantAllocationItemDtoFromJSON)
|
|
40484
|
+
};
|
|
40485
|
+
}
|
|
40486
|
+
exports.OrganizationUnitAllocationDtoFromJSONTyped = OrganizationUnitAllocationDtoFromJSONTyped;
|
|
40487
|
+
function OrganizationUnitAllocationDtoToJSON(value) {
|
|
40488
|
+
if (value === undefined) {
|
|
40489
|
+
return;
|
|
40490
|
+
}
|
|
40491
|
+
if (value === null) {
|
|
40492
|
+
return null;
|
|
40493
|
+
}
|
|
40494
|
+
return {
|
|
40495
|
+
orgTotal: value.orgTotal,
|
|
40496
|
+
startDate: value.startDate,
|
|
40497
|
+
endDate: value.endDate,
|
|
40498
|
+
tenantAllocations: value.tenantAllocations === undefined ? undefined : value.tenantAllocations === null ? null : value.tenantAllocations.map(TenantAllocationItemDto_1.TenantAllocationItemDtoToJSON)
|
|
40499
|
+
};
|
|
40500
|
+
}
|
|
40501
|
+
exports.OrganizationUnitAllocationDtoToJSON = OrganizationUnitAllocationDtoToJSON;
|
|
40502
|
+
});
|
|
40503
|
+
|
|
39229
40504
|
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/PartitionDeletionRequestDto.js
|
|
39230
40505
|
var require_PartitionDeletionRequestDto2 = __commonJS((exports) => {
|
|
39231
40506
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -39850,6 +41125,8 @@ var require_ProductRequested = __commonJS((exports) => {
|
|
|
39850
41125
|
let isInstance = true;
|
|
39851
41126
|
isInstance = isInstance && "code" in value;
|
|
39852
41127
|
isInstance = isInstance && "quantity" in value;
|
|
41128
|
+
isInstance = isInstance && "eventStartDate" in value;
|
|
41129
|
+
isInstance = isInstance && "sourcePoolCode" in value;
|
|
39853
41130
|
return isInstance;
|
|
39854
41131
|
}
|
|
39855
41132
|
exports.instanceOfProductRequested = instanceOfProductRequested;
|
|
@@ -39863,7 +41140,9 @@ var require_ProductRequested = __commonJS((exports) => {
|
|
|
39863
41140
|
}
|
|
39864
41141
|
return {
|
|
39865
41142
|
code: !(0, runtime_1.exists)(json2, "code") ? undefined : json2["code"],
|
|
39866
|
-
quantity: !(0, runtime_1.exists)(json2, "quantity") ? undefined : json2["quantity"]
|
|
41143
|
+
quantity: !(0, runtime_1.exists)(json2, "quantity") ? undefined : json2["quantity"],
|
|
41144
|
+
eventStartDate: !(0, runtime_1.exists)(json2, "eventStartDate") ? undefined : json2["eventStartDate"],
|
|
41145
|
+
sourcePoolCode: !(0, runtime_1.exists)(json2, "sourcePoolCode") ? undefined : json2["sourcePoolCode"]
|
|
39867
41146
|
};
|
|
39868
41147
|
}
|
|
39869
41148
|
exports.ProductRequestedFromJSONTyped = ProductRequestedFromJSONTyped;
|
|
@@ -39876,7 +41155,9 @@ var require_ProductRequested = __commonJS((exports) => {
|
|
|
39876
41155
|
}
|
|
39877
41156
|
return {
|
|
39878
41157
|
code: value.code,
|
|
39879
|
-
quantity: value.quantity
|
|
41158
|
+
quantity: value.quantity,
|
|
41159
|
+
eventStartDate: value.eventStartDate,
|
|
41160
|
+
sourcePoolCode: value.sourcePoolCode
|
|
39880
41161
|
};
|
|
39881
41162
|
}
|
|
39882
41163
|
exports.ProductRequestedToJSON = ProductRequestedToJSON;
|
|
@@ -40418,6 +41699,134 @@ var require_TenantServiceLicenseDto = __commonJS((exports) => {
|
|
|
40418
41699
|
exports.TenantServiceLicenseDtoToJSON = TenantServiceLicenseDtoToJSON;
|
|
40419
41700
|
});
|
|
40420
41701
|
|
|
41702
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/TopUpJobStatusDto.js
|
|
41703
|
+
var require_TopUpJobStatusDto = __commonJS((exports) => {
|
|
41704
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41705
|
+
exports.TopUpJobStatusDtoToJSON = exports.TopUpJobStatusDtoFromJSONTyped = exports.TopUpJobStatusDtoFromJSON = exports.instanceOfTopUpJobStatusDto = undefined;
|
|
41706
|
+
var runtime_1 = require_runtime2();
|
|
41707
|
+
function instanceOfTopUpJobStatusDto(value) {
|
|
41708
|
+
let isInstance = true;
|
|
41709
|
+
isInstance = isInstance && "jobId" in value;
|
|
41710
|
+
isInstance = isInstance && "status" in value;
|
|
41711
|
+
isInstance = isInstance && "result" in value;
|
|
41712
|
+
return isInstance;
|
|
41713
|
+
}
|
|
41714
|
+
exports.instanceOfTopUpJobStatusDto = instanceOfTopUpJobStatusDto;
|
|
41715
|
+
function TopUpJobStatusDtoFromJSON(json2) {
|
|
41716
|
+
return TopUpJobStatusDtoFromJSONTyped(json2, false);
|
|
41717
|
+
}
|
|
41718
|
+
exports.TopUpJobStatusDtoFromJSON = TopUpJobStatusDtoFromJSON;
|
|
41719
|
+
function TopUpJobStatusDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
41720
|
+
if (json2 === undefined || json2 === null) {
|
|
41721
|
+
return json2;
|
|
41722
|
+
}
|
|
41723
|
+
return {
|
|
41724
|
+
jobId: !(0, runtime_1.exists)(json2, "jobId") ? undefined : json2["jobId"],
|
|
41725
|
+
status: !(0, runtime_1.exists)(json2, "status") ? undefined : json2["status"],
|
|
41726
|
+
result: !(0, runtime_1.exists)(json2, "result") ? undefined : json2["result"]
|
|
41727
|
+
};
|
|
41728
|
+
}
|
|
41729
|
+
exports.TopUpJobStatusDtoFromJSONTyped = TopUpJobStatusDtoFromJSONTyped;
|
|
41730
|
+
function TopUpJobStatusDtoToJSON(value) {
|
|
41731
|
+
if (value === undefined) {
|
|
41732
|
+
return;
|
|
41733
|
+
}
|
|
41734
|
+
if (value === null) {
|
|
41735
|
+
return null;
|
|
41736
|
+
}
|
|
41737
|
+
return {
|
|
41738
|
+
jobId: value.jobId,
|
|
41739
|
+
status: value.status,
|
|
41740
|
+
result: value.result
|
|
41741
|
+
};
|
|
41742
|
+
}
|
|
41743
|
+
exports.TopUpJobStatusDtoToJSON = TopUpJobStatusDtoToJSON;
|
|
41744
|
+
});
|
|
41745
|
+
|
|
41746
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/TopUpRequestDto.js
|
|
41747
|
+
var require_TopUpRequestDto = __commonJS((exports) => {
|
|
41748
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41749
|
+
exports.TopUpRequestDtoToJSON = exports.TopUpRequestDtoFromJSONTyped = exports.TopUpRequestDtoFromJSON = exports.instanceOfTopUpRequestDto = undefined;
|
|
41750
|
+
function instanceOfTopUpRequestDto(value) {
|
|
41751
|
+
let isInstance = true;
|
|
41752
|
+
isInstance = isInstance && "recipientUserId" in value;
|
|
41753
|
+
isInstance = isInstance && "sourcePoolCode" in value;
|
|
41754
|
+
isInstance = isInstance && "operationCode" in value;
|
|
41755
|
+
return isInstance;
|
|
41756
|
+
}
|
|
41757
|
+
exports.instanceOfTopUpRequestDto = instanceOfTopUpRequestDto;
|
|
41758
|
+
function TopUpRequestDtoFromJSON(json2) {
|
|
41759
|
+
return TopUpRequestDtoFromJSONTyped(json2, false);
|
|
41760
|
+
}
|
|
41761
|
+
exports.TopUpRequestDtoFromJSON = TopUpRequestDtoFromJSON;
|
|
41762
|
+
function TopUpRequestDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
41763
|
+
if (json2 === undefined || json2 === null) {
|
|
41764
|
+
return json2;
|
|
41765
|
+
}
|
|
41766
|
+
return {
|
|
41767
|
+
recipientUserId: json2["recipientUserId"],
|
|
41768
|
+
sourcePoolCode: json2["sourcePoolCode"],
|
|
41769
|
+
operationCode: json2["operationCode"]
|
|
41770
|
+
};
|
|
41771
|
+
}
|
|
41772
|
+
exports.TopUpRequestDtoFromJSONTyped = TopUpRequestDtoFromJSONTyped;
|
|
41773
|
+
function TopUpRequestDtoToJSON(value) {
|
|
41774
|
+
if (value === undefined) {
|
|
41775
|
+
return;
|
|
41776
|
+
}
|
|
41777
|
+
if (value === null) {
|
|
41778
|
+
return null;
|
|
41779
|
+
}
|
|
41780
|
+
return {
|
|
41781
|
+
recipientUserId: value.recipientUserId,
|
|
41782
|
+
sourcePoolCode: value.sourcePoolCode,
|
|
41783
|
+
operationCode: value.operationCode
|
|
41784
|
+
};
|
|
41785
|
+
}
|
|
41786
|
+
exports.TopUpRequestDtoToJSON = TopUpRequestDtoToJSON;
|
|
41787
|
+
});
|
|
41788
|
+
|
|
41789
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/TopUpResponseDto.js
|
|
41790
|
+
var require_TopUpResponseDto = __commonJS((exports) => {
|
|
41791
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41792
|
+
exports.TopUpResponseDtoToJSON = exports.TopUpResponseDtoFromJSONTyped = exports.TopUpResponseDtoFromJSON = exports.instanceOfTopUpResponseDto = undefined;
|
|
41793
|
+
var runtime_1 = require_runtime2();
|
|
41794
|
+
function instanceOfTopUpResponseDto(value) {
|
|
41795
|
+
let isInstance = true;
|
|
41796
|
+
isInstance = isInstance && "jobId" in value;
|
|
41797
|
+
isInstance = isInstance && "status" in value;
|
|
41798
|
+
return isInstance;
|
|
41799
|
+
}
|
|
41800
|
+
exports.instanceOfTopUpResponseDto = instanceOfTopUpResponseDto;
|
|
41801
|
+
function TopUpResponseDtoFromJSON(json2) {
|
|
41802
|
+
return TopUpResponseDtoFromJSONTyped(json2, false);
|
|
41803
|
+
}
|
|
41804
|
+
exports.TopUpResponseDtoFromJSON = TopUpResponseDtoFromJSON;
|
|
41805
|
+
function TopUpResponseDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
41806
|
+
if (json2 === undefined || json2 === null) {
|
|
41807
|
+
return json2;
|
|
41808
|
+
}
|
|
41809
|
+
return {
|
|
41810
|
+
jobId: !(0, runtime_1.exists)(json2, "jobId") ? undefined : json2["jobId"],
|
|
41811
|
+
status: !(0, runtime_1.exists)(json2, "status") ? undefined : json2["status"]
|
|
41812
|
+
};
|
|
41813
|
+
}
|
|
41814
|
+
exports.TopUpResponseDtoFromJSONTyped = TopUpResponseDtoFromJSONTyped;
|
|
41815
|
+
function TopUpResponseDtoToJSON(value) {
|
|
41816
|
+
if (value === undefined) {
|
|
41817
|
+
return;
|
|
41818
|
+
}
|
|
41819
|
+
if (value === null) {
|
|
41820
|
+
return null;
|
|
41821
|
+
}
|
|
41822
|
+
return {
|
|
41823
|
+
jobId: value.jobId,
|
|
41824
|
+
status: value.status
|
|
41825
|
+
};
|
|
41826
|
+
}
|
|
41827
|
+
exports.TopUpResponseDtoToJSON = TopUpResponseDtoToJSON;
|
|
41828
|
+
});
|
|
41829
|
+
|
|
40421
41830
|
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/models/TrialPerSkuAllocationRequest.js
|
|
40422
41831
|
var require_TrialPerSkuAllocationRequest = __commonJS((exports) => {
|
|
40423
41832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -40696,6 +42105,7 @@ var require_models2 = __commonJS((exports) => {
|
|
|
40696
42105
|
__exportStar(require_CompatibilityReportResponse2(), exports);
|
|
40697
42106
|
__exportStar(require_ConfigurationEntitlementDto(), exports);
|
|
40698
42107
|
__exportStar(require_ConfigurationEntitlementOverrideDto(), exports);
|
|
42108
|
+
__exportStar(require_ConsumableSummaryDto(), exports);
|
|
40699
42109
|
__exportStar(require_ConsumptionDistributionDto(), exports);
|
|
40700
42110
|
__exportStar(require_CreateOrUpdateQuotaDefinitionRequest(), exports);
|
|
40701
42111
|
__exportStar(require_CreateQuotaWithoutSyncRequest(), exports);
|
|
@@ -40718,7 +42128,9 @@ var require_models2 = __commonJS((exports) => {
|
|
|
40718
42128
|
__exportStar(require_MaintenanceModeResponse2(), exports);
|
|
40719
42129
|
__exportStar(require_MigrateUserLicensingResponse(), exports);
|
|
40720
42130
|
__exportStar(require_MigrationStatusDto(), exports);
|
|
42131
|
+
__exportStar(require_OrganizationLicenseSummaryDto(), exports);
|
|
40721
42132
|
__exportStar(require_OrganizationLicenseWithAvailableProducts(), exports);
|
|
42133
|
+
__exportStar(require_OrganizationUnitAllocationDto(), exports);
|
|
40722
42134
|
__exportStar(require_PartitionDeletionRequestDto2(), exports);
|
|
40723
42135
|
__exportStar(require_PartitionDeletionResponseDto2(), exports);
|
|
40724
42136
|
__exportStar(require_PartitionRestoreRequestDto2(), exports);
|
|
@@ -40738,6 +42150,7 @@ var require_models2 = __commonJS((exports) => {
|
|
|
40738
42150
|
__exportStar(require_ProductRequested(), exports);
|
|
40739
42151
|
__exportStar(require_PropertiesResponse2(), exports);
|
|
40740
42152
|
__exportStar(require_QuotaDefinitionDto(), exports);
|
|
42153
|
+
__exportStar(require_RobotAllocationSummaryDto(), exports);
|
|
40741
42154
|
__exportStar(require_RollbackRequest2(), exports);
|
|
40742
42155
|
__exportStar(require_RollbackResponse2(), exports);
|
|
40743
42156
|
__exportStar(require_ServiceFeatureDto(), exports);
|
|
@@ -40747,11 +42160,16 @@ var require_models2 = __commonJS((exports) => {
|
|
|
40747
42160
|
__exportStar(require_ServiceProductDto(), exports);
|
|
40748
42161
|
__exportStar(require_StudioDownloadedDto(), exports);
|
|
40749
42162
|
__exportStar(require_TemplateDto(), exports);
|
|
42163
|
+
__exportStar(require_TenantAllocationItemDto(), exports);
|
|
40750
42164
|
__exportStar(require_TenantServiceLicenseDto(), exports);
|
|
40751
42165
|
__exportStar(require_TenantServiceProductDto(), exports);
|
|
42166
|
+
__exportStar(require_TopUpJobStatusDto(), exports);
|
|
42167
|
+
__exportStar(require_TopUpRequestDto(), exports);
|
|
42168
|
+
__exportStar(require_TopUpResponseDto(), exports);
|
|
40752
42169
|
__exportStar(require_TrialPerSkuAllocationRequest(), exports);
|
|
40753
42170
|
__exportStar(require_TrialServicesDto(), exports);
|
|
40754
42171
|
__exportStar(require_TrialToCommunityLeadDto(), exports);
|
|
42172
|
+
__exportStar(require_UserLicenseSummaryDto(), exports);
|
|
40755
42173
|
__exportStar(require_UserLicensingStatusDto(), exports);
|
|
40756
42174
|
__exportStar(require_ValidateEntitlementsForLicenseCodeDto(), exports);
|
|
40757
42175
|
});
|
|
@@ -41754,6 +43172,67 @@ var require_FrontEndLicenseAPI = __commonJS((exports) => {
|
|
|
41754
43172
|
return yield response.value();
|
|
41755
43173
|
});
|
|
41756
43174
|
}
|
|
43175
|
+
getConsumableServiceProductAllocationsAsyncRaw(requestParameters, initOverrides) {
|
|
43176
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
43177
|
+
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
43178
|
+
throw new runtime.RequiredError("accountId", "Required parameter requestParameters.accountId was null or undefined when calling getConsumableServiceProductAllocationsAsync.");
|
|
43179
|
+
}
|
|
43180
|
+
if (requestParameters.productCode === null || requestParameters.productCode === undefined) {
|
|
43181
|
+
throw new runtime.RequiredError("productCode", "Required parameter requestParameters.productCode was null or undefined when calling getConsumableServiceProductAllocationsAsync.");
|
|
43182
|
+
}
|
|
43183
|
+
const queryParameters = {};
|
|
43184
|
+
const headerParameters = {};
|
|
43185
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43186
|
+
const token = this.configuration.accessToken;
|
|
43187
|
+
const tokenString = yield token("bearerAuth", []);
|
|
43188
|
+
if (tokenString) {
|
|
43189
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
43190
|
+
}
|
|
43191
|
+
}
|
|
43192
|
+
const response = yield this.request({
|
|
43193
|
+
path: `/api/account/{accountId}/available-service-consumables/{productCode}`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"productCode"}}`, encodeURIComponent(String(requestParameters.productCode))),
|
|
43194
|
+
method: "GET",
|
|
43195
|
+
headers: headerParameters,
|
|
43196
|
+
query: queryParameters
|
|
43197
|
+
}, initOverrides);
|
|
43198
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(models_1.OrganizationUnitAllocationDtoFromJSON));
|
|
43199
|
+
});
|
|
43200
|
+
}
|
|
43201
|
+
getConsumableServiceProductAllocationsAsync(requestParameters, initOverrides) {
|
|
43202
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
43203
|
+
const response = yield this.getConsumableServiceProductAllocationsAsyncRaw(requestParameters, initOverrides);
|
|
43204
|
+
return yield response.value();
|
|
43205
|
+
});
|
|
43206
|
+
}
|
|
43207
|
+
getOrganizationLicenseSummaryRaw(requestParameters, initOverrides) {
|
|
43208
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
43209
|
+
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
43210
|
+
throw new runtime.RequiredError("accountId", "Required parameter requestParameters.accountId was null or undefined when calling getOrganizationLicenseSummary.");
|
|
43211
|
+
}
|
|
43212
|
+
const queryParameters = {};
|
|
43213
|
+
const headerParameters = {};
|
|
43214
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43215
|
+
const token = this.configuration.accessToken;
|
|
43216
|
+
const tokenString = yield token("bearerAuth", []);
|
|
43217
|
+
if (tokenString) {
|
|
43218
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
43219
|
+
}
|
|
43220
|
+
}
|
|
43221
|
+
const response = yield this.request({
|
|
43222
|
+
path: `/api/account/{accountId}/license-summary`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
|
|
43223
|
+
method: "GET",
|
|
43224
|
+
headers: headerParameters,
|
|
43225
|
+
query: queryParameters
|
|
43226
|
+
}, initOverrides);
|
|
43227
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.OrganizationLicenseSummaryDtoFromJSON)(jsonValue));
|
|
43228
|
+
});
|
|
43229
|
+
}
|
|
43230
|
+
getOrganizationLicenseSummary(requestParameters, initOverrides) {
|
|
43231
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
43232
|
+
const response = yield this.getOrganizationLicenseSummaryRaw(requestParameters, initOverrides);
|
|
43233
|
+
return yield response.value();
|
|
43234
|
+
});
|
|
43235
|
+
}
|
|
41757
43236
|
getServiceProductUsageAsyncRaw(requestParameters, initOverrides) {
|
|
41758
43237
|
return __awaiter(this, undefined, undefined, function* () {
|
|
41759
43238
|
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
@@ -44522,6 +46001,108 @@ var require_SubscriptionPlanAPI = __commonJS((exports) => {
|
|
|
44522
46001
|
exports.SubscriptionPlanAPI = SubscriptionPlanAPI;
|
|
44523
46002
|
});
|
|
44524
46003
|
|
|
46004
|
+
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/apis/TopUpsAPI.js
|
|
46005
|
+
var require_TopUpsAPI = __commonJS((exports) => {
|
|
46006
|
+
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
46007
|
+
function adopt(value) {
|
|
46008
|
+
return value instanceof P ? value : new P(function(resolve2) {
|
|
46009
|
+
resolve2(value);
|
|
46010
|
+
});
|
|
46011
|
+
}
|
|
46012
|
+
return new (P || (P = Promise))(function(resolve2, reject) {
|
|
46013
|
+
function fulfilled(value) {
|
|
46014
|
+
try {
|
|
46015
|
+
step(generator.next(value));
|
|
46016
|
+
} catch (e) {
|
|
46017
|
+
reject(e);
|
|
46018
|
+
}
|
|
46019
|
+
}
|
|
46020
|
+
function rejected(value) {
|
|
46021
|
+
try {
|
|
46022
|
+
step(generator["throw"](value));
|
|
46023
|
+
} catch (e) {
|
|
46024
|
+
reject(e);
|
|
46025
|
+
}
|
|
46026
|
+
}
|
|
46027
|
+
function step(result) {
|
|
46028
|
+
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
46029
|
+
}
|
|
46030
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
46031
|
+
});
|
|
46032
|
+
};
|
|
46033
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46034
|
+
exports.TopUpsAPI = undefined;
|
|
46035
|
+
var runtime = require_runtime2();
|
|
46036
|
+
var models_1 = require_models2();
|
|
46037
|
+
|
|
46038
|
+
class TopUpsAPI extends runtime.BaseAPI {
|
|
46039
|
+
getTopUpJobStatusRaw(requestParameters, initOverrides) {
|
|
46040
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
46041
|
+
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
46042
|
+
throw new runtime.RequiredError("accountId", "Required parameter requestParameters.accountId was null or undefined when calling getTopUpJobStatus.");
|
|
46043
|
+
}
|
|
46044
|
+
if (requestParameters.jobId === null || requestParameters.jobId === undefined) {
|
|
46045
|
+
throw new runtime.RequiredError("jobId", "Required parameter requestParameters.jobId was null or undefined when calling getTopUpJobStatus.");
|
|
46046
|
+
}
|
|
46047
|
+
const queryParameters = {};
|
|
46048
|
+
const headerParameters = {};
|
|
46049
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
46050
|
+
const token = this.configuration.accessToken;
|
|
46051
|
+
const tokenString = yield token("bearerAuth", []);
|
|
46052
|
+
if (tokenString) {
|
|
46053
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46054
|
+
}
|
|
46055
|
+
}
|
|
46056
|
+
const response = yield this.request({
|
|
46057
|
+
path: `/api/account/{accountId}/topup/jobs/{jobId}`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))).replace(`{${"jobId"}}`, encodeURIComponent(String(requestParameters.jobId))),
|
|
46058
|
+
method: "GET",
|
|
46059
|
+
headers: headerParameters,
|
|
46060
|
+
query: queryParameters
|
|
46061
|
+
}, initOverrides);
|
|
46062
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.TopUpJobStatusDtoFromJSON)(jsonValue));
|
|
46063
|
+
});
|
|
46064
|
+
}
|
|
46065
|
+
getTopUpJobStatus(requestParameters, initOverrides) {
|
|
46066
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
46067
|
+
const response = yield this.getTopUpJobStatusRaw(requestParameters, initOverrides);
|
|
46068
|
+
return yield response.value();
|
|
46069
|
+
});
|
|
46070
|
+
}
|
|
46071
|
+
startTopUpRaw(requestParameters, initOverrides) {
|
|
46072
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
46073
|
+
if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
|
|
46074
|
+
throw new runtime.RequiredError("accountId", "Required parameter requestParameters.accountId was null or undefined when calling startTopUp.");
|
|
46075
|
+
}
|
|
46076
|
+
const queryParameters = {};
|
|
46077
|
+
const headerParameters = {};
|
|
46078
|
+
headerParameters["Content-Type"] = "application/json";
|
|
46079
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
46080
|
+
const token = this.configuration.accessToken;
|
|
46081
|
+
const tokenString = yield token("bearerAuth", []);
|
|
46082
|
+
if (tokenString) {
|
|
46083
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46084
|
+
}
|
|
46085
|
+
}
|
|
46086
|
+
const response = yield this.request({
|
|
46087
|
+
path: `/api/account/{accountId}/topup`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
|
|
46088
|
+
method: "POST",
|
|
46089
|
+
headers: headerParameters,
|
|
46090
|
+
query: queryParameters,
|
|
46091
|
+
body: (0, models_1.TopUpRequestDtoToJSON)(requestParameters.topUpRequestDto)
|
|
46092
|
+
}, initOverrides);
|
|
46093
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.TopUpResponseDtoFromJSON)(jsonValue));
|
|
46094
|
+
});
|
|
46095
|
+
}
|
|
46096
|
+
startTopUp(requestParameters, initOverrides) {
|
|
46097
|
+
return __awaiter(this, undefined, undefined, function* () {
|
|
46098
|
+
const response = yield this.startTopUpRaw(requestParameters, initOverrides);
|
|
46099
|
+
return yield response.value();
|
|
46100
|
+
});
|
|
46101
|
+
}
|
|
46102
|
+
}
|
|
46103
|
+
exports.TopUpsAPI = TopUpsAPI;
|
|
46104
|
+
});
|
|
46105
|
+
|
|
44525
46106
|
// ../../node_modules/@uipath/license.resource.manager.typescript.client/dist/apis/TrialPerSkuAPI.js
|
|
44526
46107
|
var require_TrialPerSkuAPI = __commonJS((exports) => {
|
|
44527
46108
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -44690,6 +46271,7 @@ var require_apis2 = __commonJS((exports) => {
|
|
|
44690
46271
|
__exportStar(require_ServiceLicenseAPI(), exports);
|
|
44691
46272
|
__exportStar(require_ServiceLicenseWithoutAccountIdAPI(), exports);
|
|
44692
46273
|
__exportStar(require_SubscriptionPlanAPI(), exports);
|
|
46274
|
+
__exportStar(require_TopUpsAPI(), exports);
|
|
44693
46275
|
__exportStar(require_TrialPerSkuAPI(), exports);
|
|
44694
46276
|
});
|
|
44695
46277
|
|
|
@@ -44724,7 +46306,7 @@ var require_dist3 = __commonJS((exports) => {
|
|
|
44724
46306
|
var package_default = {
|
|
44725
46307
|
name: "@uipath/platform-tool",
|
|
44726
46308
|
license: "MIT",
|
|
44727
|
-
version: "1.
|
|
46309
|
+
version: "1.199.0-preview.91",
|
|
44728
46310
|
description: "Manage UiPath platform-level resources such as tenant licensing.",
|
|
44729
46311
|
type: "module",
|
|
44730
46312
|
main: "./dist/tool.js",
|
|
@@ -44751,8 +46333,8 @@ var package_default = {
|
|
|
44751
46333
|
"@uipath/auth": "workspace:*",
|
|
44752
46334
|
"@uipath/filesystem": "workspace:*",
|
|
44753
46335
|
"@uipath/identity-sdk": "workspace:*",
|
|
44754
|
-
"@uipath/license.accountant.typescript.client": "1.1.
|
|
44755
|
-
"@uipath/license.resource.manager.typescript.client": "1.1.
|
|
46336
|
+
"@uipath/license.accountant.typescript.client": "1.1.37-dev.11",
|
|
46337
|
+
"@uipath/license.resource.manager.typescript.client": "1.1.15-dev.11",
|
|
44756
46338
|
"@types/node": "^25.5.2",
|
|
44757
46339
|
typescript: "^6.0.2"
|
|
44758
46340
|
},
|
|
@@ -44816,6 +46398,7 @@ var resolveConfigAsync = async ({
|
|
|
44816
46398
|
customAuthority,
|
|
44817
46399
|
customClientId,
|
|
44818
46400
|
customClientSecret,
|
|
46401
|
+
customClientAssertion,
|
|
44819
46402
|
customScopes
|
|
44820
46403
|
} = {}) => {
|
|
44821
46404
|
const fileAuth = getAuthFileConfig();
|
|
@@ -44841,7 +46424,7 @@ var resolveConfigAsync = async ({
|
|
|
44841
46424
|
if (!clientSecret && fileAuth.clientSecret) {
|
|
44842
46425
|
clientSecret = fileAuth.clientSecret;
|
|
44843
46426
|
}
|
|
44844
|
-
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && Boolean(clientSecret);
|
|
46427
|
+
const isExternalAppAuth = clientId !== DEFAULT_CLIENT_ID && (Boolean(clientSecret) || Boolean(customClientAssertion));
|
|
44845
46428
|
const scopes = resolveScopes(isExternalAppAuth, customScopes, fileAuth.scopes);
|
|
44846
46429
|
return {
|
|
44847
46430
|
clientId,
|
|
@@ -45959,7 +47542,6 @@ var getAuthContext = async (options = {}) => {
|
|
|
45959
47542
|
tenantName
|
|
45960
47543
|
};
|
|
45961
47544
|
};
|
|
45962
|
-
|
|
45963
47545
|
// ../auth/src/index.ts
|
|
45964
47546
|
init_constants();
|
|
45965
47547
|
|
|
@@ -46033,6 +47615,7 @@ function settlePromiseLike2(thenable) {
|
|
|
46033
47615
|
var DEFAULT_401 = "Unauthorized (401). Run `uip login` to authenticate.";
|
|
46034
47616
|
var DEFAULT_403 = "Forbidden (403). Ensure the account has the required permissions.";
|
|
46035
47617
|
var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
|
|
47618
|
+
var DEFAULT_413 = "Payload too large (413). The upload exceeded the server or CDN size limit. Reduce the package size — for example, exclude unused dependencies or remove large files from the project — and try again.";
|
|
46036
47619
|
var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
|
|
46037
47620
|
var NETWORK_ERROR_CODES = new Set([
|
|
46038
47621
|
"ECONNREFUSED",
|
|
@@ -46134,6 +47717,9 @@ function classifyError(status, error) {
|
|
|
46134
47717
|
if (status === 405) {
|
|
46135
47718
|
return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
|
|
46136
47719
|
}
|
|
47720
|
+
if (status === 413) {
|
|
47721
|
+
return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
|
|
47722
|
+
}
|
|
46137
47723
|
if (status === 408) {
|
|
46138
47724
|
return { errorCode: "timeout", retry: "RetryLater" };
|
|
46139
47725
|
}
|
|
@@ -46211,6 +47797,8 @@ async function extractErrorDetails(error, options) {
|
|
|
46211
47797
|
result = "AuthenticationError";
|
|
46212
47798
|
} else if (status === 405) {
|
|
46213
47799
|
message = DEFAULT_405;
|
|
47800
|
+
} else if (status === 413) {
|
|
47801
|
+
message = DEFAULT_413;
|
|
46214
47802
|
} else if (status === 400 || status === 422) {
|
|
46215
47803
|
message = formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus);
|
|
46216
47804
|
result = "ValidationError";
|
|
@@ -52886,6 +54474,7 @@ var SKILL_ATTRIBUTION = attributionRecord([
|
|
|
52886
54474
|
var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
|
|
52887
54475
|
var COMMAND_ATTRIBUTION = commandAttribution([
|
|
52888
54476
|
["cli", "troubleshoot", ["uip.feedback"]],
|
|
54477
|
+
["llm-gateway", "operate", ["uip.llm-gateway"]],
|
|
52889
54478
|
["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
|
|
52890
54479
|
["context-grounding", "build", ["uip.context-grounding"]],
|
|
52891
54480
|
["api-workflow", "build", ["uip.api-workflow"]],
|
|
@@ -53370,6 +54959,17 @@ function installSdkUserAgentHeader(BaseApiClass, userAgent) {
|
|
|
53370
54959
|
var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
53371
54960
|
// ../common/src/tool-provider.ts
|
|
53372
54961
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
54962
|
+
// src/utils/epoch.ts
|
|
54963
|
+
var toMs = (n) => {
|
|
54964
|
+
if (typeof n !== "number" || !Number.isFinite(n) || n <= 0)
|
|
54965
|
+
return null;
|
|
54966
|
+
return n < 1000000000000 ? n * 1000 : n;
|
|
54967
|
+
};
|
|
54968
|
+
var epochToIso = (n) => {
|
|
54969
|
+
const ms = toMs(n);
|
|
54970
|
+
return ms === null ? null : new Date(ms).toISOString();
|
|
54971
|
+
};
|
|
54972
|
+
|
|
53373
54973
|
// src/utils/product-codes.ts
|
|
53374
54974
|
var PRODUCT_NAMES = {
|
|
53375
54975
|
RU: "Robot Units",
|
|
@@ -53472,6 +55072,48 @@ var createUserLicenseApi = async (organizationOverride) => {
|
|
|
53472
55072
|
baseUrl: ctx.baseUrl
|
|
53473
55073
|
};
|
|
53474
55074
|
};
|
|
55075
|
+
var createFolderOutcomeBillingApi = async (organizationOverride) => {
|
|
55076
|
+
const ctx = await createPlatformContext(organizationOverride);
|
|
55077
|
+
const accessToken = ctx.accessToken;
|
|
55078
|
+
const config = new import_license_accountant_typescript2.Configuration({
|
|
55079
|
+
basePath: leaseBasePath(ctx),
|
|
55080
|
+
accessToken: async () => accessToken
|
|
55081
|
+
});
|
|
55082
|
+
const fltApi = new import_license_accountant_typescript2.FolderConfigurationAPI(config);
|
|
55083
|
+
const api = {
|
|
55084
|
+
getFolderOutcomeBillingSetting: async (request) => {
|
|
55085
|
+
const dto = await fltApi.getFolderFltConfiguration(request);
|
|
55086
|
+
if (!dto)
|
|
55087
|
+
return null;
|
|
55088
|
+
return {
|
|
55089
|
+
folderKey: dto.folderKey,
|
|
55090
|
+
isOutcomeBillingEnabled: dto.isFltEnabled
|
|
55091
|
+
};
|
|
55092
|
+
},
|
|
55093
|
+
setFolderOutcomeBillingSetting: async ({
|
|
55094
|
+
isOutcomeBillingEnabled,
|
|
55095
|
+
...request
|
|
55096
|
+
}) => {
|
|
55097
|
+
const dto = await fltApi.setFolderFltConfiguration({
|
|
55098
|
+
...request,
|
|
55099
|
+
setFolderFltConfigurationRequestDto: {
|
|
55100
|
+
isFltEnabled: isOutcomeBillingEnabled
|
|
55101
|
+
}
|
|
55102
|
+
});
|
|
55103
|
+
if (!dto)
|
|
55104
|
+
return null;
|
|
55105
|
+
return {
|
|
55106
|
+
folderKey: dto.folderKey,
|
|
55107
|
+
isOutcomeBillingEnabled: dto.isFltEnabled
|
|
55108
|
+
};
|
|
55109
|
+
}
|
|
55110
|
+
};
|
|
55111
|
+
return {
|
|
55112
|
+
api,
|
|
55113
|
+
accountId: ctx.accountId,
|
|
55114
|
+
baseUrl: ctx.baseUrl
|
|
55115
|
+
};
|
|
55116
|
+
};
|
|
53475
55117
|
var createUsageApi = async (organizationOverride) => {
|
|
53476
55118
|
const ctx = await createPlatformContext(organizationOverride);
|
|
53477
55119
|
const accessToken = ctx.accessToken;
|
|
@@ -53487,15 +55129,6 @@ var createUsageApi = async (organizationOverride) => {
|
|
|
53487
55129
|
};
|
|
53488
55130
|
|
|
53489
55131
|
// src/commands/consumables.ts
|
|
53490
|
-
var toMs = (n) => {
|
|
53491
|
-
if (typeof n !== "number" || !Number.isFinite(n) || n <= 0)
|
|
53492
|
-
return null;
|
|
53493
|
-
return n < 1000000000000 ? n * 1000 : n;
|
|
53494
|
-
};
|
|
53495
|
-
var epochToIso = (n) => {
|
|
53496
|
-
const ms = toMs(n);
|
|
53497
|
-
return ms === null ? null : new Date(ms).toISOString();
|
|
53498
|
-
};
|
|
53499
55132
|
var isInCurrentInterval = (start, end, nowMs) => {
|
|
53500
55133
|
const startMs = toMs(start);
|
|
53501
55134
|
const endMs = toMs(end);
|
|
@@ -54264,7 +55897,7 @@ class JSONApiResponse {
|
|
|
54264
55897
|
var package_default2 = {
|
|
54265
55898
|
name: "@uipath/identity-sdk",
|
|
54266
55899
|
license: "MIT",
|
|
54267
|
-
version: "1.
|
|
55900
|
+
version: "1.199.0",
|
|
54268
55901
|
repository: {
|
|
54269
55902
|
type: "git",
|
|
54270
55903
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -55407,6 +57040,146 @@ var registerGroupsCommand = (program2) => {
|
|
|
55407
57040
|
});
|
|
55408
57041
|
};
|
|
55409
57042
|
|
|
57043
|
+
// src/commands/licenses.ts
|
|
57044
|
+
var num = (n) => typeof n === "number" && Number.isFinite(n) ? n : 0;
|
|
57045
|
+
var LICENSES_SUMMARY_EXAMPLES = [
|
|
57046
|
+
{
|
|
57047
|
+
Description: "Get the consolidated license summary for the organization: one row per license line, tagged by Category. Robots and user licenses carry an Available count; consumables carry their bundle window (StartDate/EndDate).",
|
|
57048
|
+
Command: "uip platform licenses summary",
|
|
57049
|
+
Output: {
|
|
57050
|
+
Code: "LicensesSummary",
|
|
57051
|
+
Data: [
|
|
57052
|
+
{
|
|
57053
|
+
category: "Robot",
|
|
57054
|
+
code: "RU",
|
|
57055
|
+
name: "Robot Units",
|
|
57056
|
+
total: 25,
|
|
57057
|
+
allocated: 10,
|
|
57058
|
+
used: null,
|
|
57059
|
+
available: 15,
|
|
57060
|
+
startDate: null,
|
|
57061
|
+
endDate: null
|
|
57062
|
+
},
|
|
57063
|
+
{
|
|
57064
|
+
category: "User license",
|
|
57065
|
+
code: "RPADEVPRONU",
|
|
57066
|
+
name: "Automation Developer",
|
|
57067
|
+
total: 60,
|
|
57068
|
+
allocated: null,
|
|
57069
|
+
used: 2,
|
|
57070
|
+
available: 58,
|
|
57071
|
+
startDate: null,
|
|
57072
|
+
endDate: null
|
|
57073
|
+
},
|
|
57074
|
+
{
|
|
57075
|
+
category: "Consumable",
|
|
57076
|
+
code: "AIU",
|
|
57077
|
+
name: "AI Units",
|
|
57078
|
+
total: 5000,
|
|
57079
|
+
allocated: 1200,
|
|
57080
|
+
used: 980,
|
|
57081
|
+
available: null,
|
|
57082
|
+
startDate: "2023-11-14T22:13:20.000Z",
|
|
57083
|
+
endDate: "2027-09-15T18:40:00.000Z"
|
|
57084
|
+
}
|
|
57085
|
+
]
|
|
57086
|
+
}
|
|
57087
|
+
},
|
|
57088
|
+
{
|
|
57089
|
+
Description: "Show only consumables, in a table, using an output filter (defaults to the org from the current login).",
|
|
57090
|
+
Command: `uip platform licenses summary --output-filter "[?Category=='Consumable']" --output table`,
|
|
57091
|
+
Output: {
|
|
57092
|
+
Code: "LicensesSummary",
|
|
57093
|
+
Data: [
|
|
57094
|
+
{
|
|
57095
|
+
category: "Consumable",
|
|
57096
|
+
code: "AIU",
|
|
57097
|
+
name: "AI Units",
|
|
57098
|
+
total: 5000,
|
|
57099
|
+
allocated: 1200,
|
|
57100
|
+
used: 980,
|
|
57101
|
+
available: null,
|
|
57102
|
+
startDate: "2023-11-14T22:13:20.000Z",
|
|
57103
|
+
endDate: "2027-09-15T18:40:00.000Z"
|
|
57104
|
+
}
|
|
57105
|
+
]
|
|
57106
|
+
}
|
|
57107
|
+
}
|
|
57108
|
+
];
|
|
57109
|
+
async function handleLicensesSummary(options) {
|
|
57110
|
+
const [clientErr, client] = await catchError2(createFrontEndLicenseApi(options.organization));
|
|
57111
|
+
if (clientErr || !client) {
|
|
57112
|
+
OutputFormatter.error({
|
|
57113
|
+
Result: RESULTS.Failure,
|
|
57114
|
+
Message: "Error connecting to the License Resource Manager.",
|
|
57115
|
+
Instructions: clientErr ? await extractErrorMessage(clientErr) : "No client returned."
|
|
57116
|
+
});
|
|
57117
|
+
processContext.exit(1);
|
|
57118
|
+
return;
|
|
57119
|
+
}
|
|
57120
|
+
const { api, accountId } = client;
|
|
57121
|
+
const [summaryErr, summary] = await catchError2(api.getOrganizationLicenseSummary({ accountId }));
|
|
57122
|
+
if (summaryErr) {
|
|
57123
|
+
OutputFormatter.error({
|
|
57124
|
+
Result: RESULTS.Failure,
|
|
57125
|
+
Message: "Error reading the organization license summary.",
|
|
57126
|
+
Instructions: await formatResponseError(summaryErr)
|
|
57127
|
+
});
|
|
57128
|
+
processContext.exit(1);
|
|
57129
|
+
return;
|
|
57130
|
+
}
|
|
57131
|
+
const robots = (summary?.robots ?? []).map((r) => {
|
|
57132
|
+
const total = num(r.total);
|
|
57133
|
+
const allocated = num(r.allocated);
|
|
57134
|
+
return {
|
|
57135
|
+
category: "Robot",
|
|
57136
|
+
code: r.code ?? null,
|
|
57137
|
+
name: friendlyName(r.code),
|
|
57138
|
+
total,
|
|
57139
|
+
allocated,
|
|
57140
|
+
used: null,
|
|
57141
|
+
available: Math.max(0, total - allocated),
|
|
57142
|
+
startDate: null,
|
|
57143
|
+
endDate: null
|
|
57144
|
+
};
|
|
57145
|
+
});
|
|
57146
|
+
const userLicenses = (summary?.userLicenses ?? []).map((u) => {
|
|
57147
|
+
const total = num(u.total);
|
|
57148
|
+
const used = num(u.used);
|
|
57149
|
+
return {
|
|
57150
|
+
category: "User license",
|
|
57151
|
+
code: u.code ?? null,
|
|
57152
|
+
name: friendlyName(u.code),
|
|
57153
|
+
total,
|
|
57154
|
+
allocated: null,
|
|
57155
|
+
used,
|
|
57156
|
+
available: Math.max(0, total - used),
|
|
57157
|
+
startDate: null,
|
|
57158
|
+
endDate: null
|
|
57159
|
+
};
|
|
57160
|
+
});
|
|
57161
|
+
const consumables = (summary?.consumables ?? []).map((c) => ({
|
|
57162
|
+
category: "Consumable",
|
|
57163
|
+
code: c.code ?? null,
|
|
57164
|
+
name: friendlyName(c.code),
|
|
57165
|
+
total: num(c.total),
|
|
57166
|
+
allocated: c.allocated != null ? num(c.allocated) : null,
|
|
57167
|
+
used: c.used != null ? num(c.used) : null,
|
|
57168
|
+
available: null,
|
|
57169
|
+
startDate: epochToIso(c.startDate),
|
|
57170
|
+
endDate: epochToIso(c.endDate)
|
|
57171
|
+
}));
|
|
57172
|
+
OutputFormatter.success({
|
|
57173
|
+
Result: RESULTS.Success,
|
|
57174
|
+
Code: "LicensesSummary",
|
|
57175
|
+
Data: [...robots, ...userLicenses, ...consumables]
|
|
57176
|
+
});
|
|
57177
|
+
}
|
|
57178
|
+
var registerLicensesCommand = (program2) => {
|
|
57179
|
+
const licenses = program2.commands.find((c) => c.name() === "licenses") ?? program2.command("licenses").description("View and manage organization-level license resources.");
|
|
57180
|
+
licenses.command("summary").description("Get the consolidated organization license summary: robots (total & allocated), user-bundle licenses (total & used), and consumables (total, allocated & used).").option("--organization <account-id>", "Organization account GUID (defaults to the org from the current login).").examples(LICENSES_SUMMARY_EXAMPLES).trackedAction(processContext, (options) => handleLicensesSummary(options));
|
|
57181
|
+
};
|
|
57182
|
+
|
|
55410
57183
|
// src/commands/tenants.ts
|
|
55411
57184
|
init_src();
|
|
55412
57185
|
|
|
@@ -55430,6 +57203,14 @@ var mergeProducts = (current, delta) => {
|
|
|
55430
57203
|
};
|
|
55431
57204
|
|
|
55432
57205
|
// src/commands/tenants.ts
|
|
57206
|
+
var parseEnabled = (raw) => {
|
|
57207
|
+
const normalized = raw.trim().toLowerCase();
|
|
57208
|
+
if (normalized === "true")
|
|
57209
|
+
return true;
|
|
57210
|
+
if (normalized === "false")
|
|
57211
|
+
return false;
|
|
57212
|
+
throw new Error(`Invalid --enabled value '${raw}'. Allowed values: true, false.`);
|
|
57213
|
+
};
|
|
55433
57214
|
var toMs2 = (n) => {
|
|
55434
57215
|
if (typeof n !== "number" || !Number.isFinite(n) || n <= 0)
|
|
55435
57216
|
return null;
|
|
@@ -55553,6 +57334,127 @@ var TENANTS_LICENSES_GET_EXAMPLES = [
|
|
|
55553
57334
|
}
|
|
55554
57335
|
}
|
|
55555
57336
|
];
|
|
57337
|
+
var FOLDER_OUTCOME_BILLING_GET_EXAMPLES = [
|
|
57338
|
+
{
|
|
57339
|
+
Description: "Get the outcome billing configuration for a folder in a tenant.",
|
|
57340
|
+
Command: "uip platform tenants folder-outcome-billing get 296b7134-6691-43db-b48a-2d95ed3ab031 11111111-1111-1111-1111-111111111111",
|
|
57341
|
+
Output: {
|
|
57342
|
+
Code: "TenantFolderOutcomeBilling",
|
|
57343
|
+
Data: {
|
|
57344
|
+
FolderKey: "11111111-1111-1111-1111-111111111111",
|
|
57345
|
+
IsOutcomeBillingEnabled: true
|
|
57346
|
+
}
|
|
57347
|
+
}
|
|
57348
|
+
}
|
|
57349
|
+
];
|
|
57350
|
+
var FOLDER_OUTCOME_BILLING_SET_EXAMPLES = [
|
|
57351
|
+
{
|
|
57352
|
+
Description: "Enable outcome billing for a folder in a tenant. Returns the configuration now in effect.",
|
|
57353
|
+
Command: "uip platform tenants folder-outcome-billing set 296b7134-6691-43db-b48a-2d95ed3ab031 11111111-1111-1111-1111-111111111111 --enabled true",
|
|
57354
|
+
Output: {
|
|
57355
|
+
Code: "TenantFolderOutcomeBillingSet",
|
|
57356
|
+
Data: {
|
|
57357
|
+
FolderKey: "11111111-1111-1111-1111-111111111111",
|
|
57358
|
+
IsOutcomeBillingEnabled: true
|
|
57359
|
+
}
|
|
57360
|
+
}
|
|
57361
|
+
},
|
|
57362
|
+
{
|
|
57363
|
+
Description: "Disable outcome billing for a folder in a tenant.",
|
|
57364
|
+
Command: "uip platform tenants folder-outcome-billing set 296b7134-6691-43db-b48a-2d95ed3ab031 11111111-1111-1111-1111-111111111111 --enabled false",
|
|
57365
|
+
Output: {
|
|
57366
|
+
Code: "TenantFolderOutcomeBillingSet",
|
|
57367
|
+
Data: {
|
|
57368
|
+
FolderKey: "11111111-1111-1111-1111-111111111111",
|
|
57369
|
+
IsOutcomeBillingEnabled: false
|
|
57370
|
+
}
|
|
57371
|
+
}
|
|
57372
|
+
}
|
|
57373
|
+
];
|
|
57374
|
+
var registerFolderOutcomeBillingCommands = (tenants) => {
|
|
57375
|
+
const outcomeBilling = tenants.command("folder-outcome-billing").description("View and manage the outcome billing configuration of a tenant's folders.");
|
|
57376
|
+
outcomeBilling.command("get").description("Get the outcome billing configuration for a folder: whether outcome billing is enabled.").argument("<tenant-id>", "Tenant id (GUID).").argument("<folder-key>", "Folder key (GUID).").option("--organization <account-id>", "Organization account GUID (defaults to the org from the current login).").examples(FOLDER_OUTCOME_BILLING_GET_EXAMPLES).trackedAction(processContext, async (tenantId, folderKey, options) => {
|
|
57377
|
+
const [clientErr, client] = await catchError2(createFolderOutcomeBillingApi(options.organization));
|
|
57378
|
+
if (clientErr || !client) {
|
|
57379
|
+
OutputFormatter.error({
|
|
57380
|
+
Result: RESULTS.Failure,
|
|
57381
|
+
Message: "Error connecting to the License Accountant.",
|
|
57382
|
+
Instructions: clientErr ? await extractErrorMessage(clientErr) : "No client returned."
|
|
57383
|
+
});
|
|
57384
|
+
processContext.exit(1);
|
|
57385
|
+
return;
|
|
57386
|
+
}
|
|
57387
|
+
const { api, accountId } = client;
|
|
57388
|
+
const [getErr, configuration] = await catchError2(api.getFolderOutcomeBillingSetting({
|
|
57389
|
+
organizationId: accountId,
|
|
57390
|
+
tenantId,
|
|
57391
|
+
folderKey
|
|
57392
|
+
}));
|
|
57393
|
+
if (getErr || !configuration) {
|
|
57394
|
+
OutputFormatter.error({
|
|
57395
|
+
Result: RESULTS.Failure,
|
|
57396
|
+
Message: `Error reading the outcome billing configuration for folder '${folderKey}' on tenant '${tenantId}'.`,
|
|
57397
|
+
Instructions: getErr ? await formatResponseError(getErr) : "No configuration returned by the License Accountant."
|
|
57398
|
+
});
|
|
57399
|
+
processContext.exit(1);
|
|
57400
|
+
return;
|
|
57401
|
+
}
|
|
57402
|
+
OutputFormatter.success({
|
|
57403
|
+
Result: RESULTS.Success,
|
|
57404
|
+
Code: "TenantFolderOutcomeBilling",
|
|
57405
|
+
Data: {
|
|
57406
|
+
folderKey: configuration.folderKey ?? folderKey,
|
|
57407
|
+
isOutcomeBillingEnabled: configuration.isOutcomeBillingEnabled ?? null
|
|
57408
|
+
}
|
|
57409
|
+
});
|
|
57410
|
+
});
|
|
57411
|
+
outcomeBilling.command("set").description("Set the outcome billing configuration for a folder: enable or disable outcome billing.").argument("<tenant-id>", "Tenant id (GUID).").argument("<folder-key>", "Folder key (GUID).").requiredOption("--enabled <true|false>", "Whether outcome billing is enabled for the folder.").option("--organization <account-id>", "Organization account GUID (defaults to the org from the current login).").examples(FOLDER_OUTCOME_BILLING_SET_EXAMPLES).trackedAction(processContext, async (tenantId, folderKey, options) => {
|
|
57412
|
+
const [parseErr, isEnabled] = await catchError2(Promise.resolve().then(() => parseEnabled(options.enabled)));
|
|
57413
|
+
if (parseErr || isEnabled === null) {
|
|
57414
|
+
OutputFormatter.error({
|
|
57415
|
+
Result: RESULTS.Failure,
|
|
57416
|
+
Message: "Invalid --enabled value.",
|
|
57417
|
+
Instructions: parseErr ? parseErr.message : "Allowed values: true, false."
|
|
57418
|
+
});
|
|
57419
|
+
processContext.exit(1);
|
|
57420
|
+
return;
|
|
57421
|
+
}
|
|
57422
|
+
const [clientErr, client] = await catchError2(createFolderOutcomeBillingApi(options.organization));
|
|
57423
|
+
if (clientErr || !client) {
|
|
57424
|
+
OutputFormatter.error({
|
|
57425
|
+
Result: RESULTS.Failure,
|
|
57426
|
+
Message: "Error connecting to the License Accountant.",
|
|
57427
|
+
Instructions: clientErr ? await extractErrorMessage(clientErr) : "No client returned."
|
|
57428
|
+
});
|
|
57429
|
+
processContext.exit(1);
|
|
57430
|
+
return;
|
|
57431
|
+
}
|
|
57432
|
+
const { api, accountId } = client;
|
|
57433
|
+
const [setErr, configuration] = await catchError2(api.setFolderOutcomeBillingSetting({
|
|
57434
|
+
organizationId: accountId,
|
|
57435
|
+
tenantId,
|
|
57436
|
+
folderKey,
|
|
57437
|
+
isOutcomeBillingEnabled: isEnabled
|
|
57438
|
+
}));
|
|
57439
|
+
if (setErr) {
|
|
57440
|
+
OutputFormatter.error({
|
|
57441
|
+
Result: RESULTS.Failure,
|
|
57442
|
+
Message: `Error setting the outcome billing configuration for folder '${folderKey}' on tenant '${tenantId}'.`,
|
|
57443
|
+
Instructions: await formatResponseError(setErr)
|
|
57444
|
+
});
|
|
57445
|
+
processContext.exit(1);
|
|
57446
|
+
return;
|
|
57447
|
+
}
|
|
57448
|
+
OutputFormatter.success({
|
|
57449
|
+
Result: RESULTS.Success,
|
|
57450
|
+
Code: "TenantFolderOutcomeBillingSet",
|
|
57451
|
+
Data: {
|
|
57452
|
+
folderKey: configuration?.folderKey ?? folderKey,
|
|
57453
|
+
isOutcomeBillingEnabled: configuration?.isOutcomeBillingEnabled ?? isEnabled
|
|
57454
|
+
}
|
|
57455
|
+
});
|
|
57456
|
+
});
|
|
57457
|
+
};
|
|
55556
57458
|
var registerTenantsCommand = (program2) => {
|
|
55557
57459
|
const tenants = program2.command("tenants").description("Manage platform tenants");
|
|
55558
57460
|
const licenses = tenants.command("licenses").description("View and manage tenant license allocations.");
|
|
@@ -55715,6 +57617,7 @@ var registerTenantsCommand = (program2) => {
|
|
|
55715
57617
|
Data: data
|
|
55716
57618
|
});
|
|
55717
57619
|
});
|
|
57620
|
+
registerFolderOutcomeBillingCommands(tenants);
|
|
55718
57621
|
};
|
|
55719
57622
|
|
|
55720
57623
|
// src/commands/users.ts
|
|
@@ -56015,6 +57918,7 @@ var registerCommands = async (program2) => {
|
|
|
56015
57918
|
registerTenantsCommand(program2);
|
|
56016
57919
|
registerUsersCommand(program2);
|
|
56017
57920
|
registerGroupsCommand(program2);
|
|
57921
|
+
registerLicensesCommand(program2);
|
|
56018
57922
|
registerConsumablesCommand(program2);
|
|
56019
57923
|
};
|
|
56020
57924
|
export {
|
|
@@ -56022,4 +57926,4 @@ export {
|
|
|
56022
57926
|
metadata
|
|
56023
57927
|
};
|
|
56024
57928
|
|
|
56025
|
-
//# debugId=
|
|
57929
|
+
//# debugId=4671540A8B068E0364756E2164756E21
|