bruce-models 7.1.128 → 7.1.129
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/bruce-models.es5.js +52 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +46 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/user/user-access-log.js +64 -0
- package/dist/lib/user/user-access-log.js.map +1 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/user/user-access-log.d.ts +39 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -24459,6 +24459,56 @@ var User;
|
|
|
24459
24459
|
User$$1.GetSettingsCacheKey = GetSettingsCacheKey;
|
|
24460
24460
|
})(User || (User = {}));
|
|
24461
24461
|
|
|
24462
|
+
/**
|
|
24463
|
+
* Guardian's record of sign-ins and other access, such as an access token used directly.
|
|
24464
|
+
* Reading it needs account admin for an account, or super user for every account.
|
|
24465
|
+
*/
|
|
24466
|
+
var UserAccessLog;
|
|
24467
|
+
(function (UserAccessLog) {
|
|
24468
|
+
/**
|
|
24469
|
+
* Returns access log records, newest first, or each user's newest one when grouped by user.
|
|
24470
|
+
*/
|
|
24471
|
+
function GetList(params) {
|
|
24472
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24473
|
+
let { api, accountId, userIds, groupByUser, isLogin, success, pageSize, pageIndex, req } = params;
|
|
24474
|
+
if (groupByUser && !(userIds === null || userIds === void 0 ? void 0 : userIds.length)) {
|
|
24475
|
+
throw ("User IDs are required to group by user.");
|
|
24476
|
+
}
|
|
24477
|
+
if (!api) {
|
|
24478
|
+
api = ENVIRONMENT.Api().GetGuardianApi();
|
|
24479
|
+
}
|
|
24480
|
+
const urlParams = new URLSearchParams();
|
|
24481
|
+
if (userIds === null || userIds === void 0 ? void 0 : userIds.length) {
|
|
24482
|
+
urlParams.append("User", userIds.join(","));
|
|
24483
|
+
}
|
|
24484
|
+
if (groupByUser) {
|
|
24485
|
+
urlParams.append("GroupBy", "User");
|
|
24486
|
+
}
|
|
24487
|
+
if (isLogin !== undefined && isLogin !== null) {
|
|
24488
|
+
urlParams.append("IsLogin", String(isLogin));
|
|
24489
|
+
}
|
|
24490
|
+
if (success !== undefined && success !== null) {
|
|
24491
|
+
urlParams.append("Success", success ? "true" : "false");
|
|
24492
|
+
}
|
|
24493
|
+
if (pageSize !== undefined && pageSize !== null) {
|
|
24494
|
+
urlParams.append("PageSize", String(pageSize));
|
|
24495
|
+
}
|
|
24496
|
+
if (pageIndex !== undefined && pageIndex !== null) {
|
|
24497
|
+
urlParams.append("PageIndex", String(pageIndex));
|
|
24498
|
+
}
|
|
24499
|
+
let url = accountId ? `v3/account/${accountId}/accessLogs` : "v3/accessLogs";
|
|
24500
|
+
if (urlParams.toString().length) {
|
|
24501
|
+
url += "?" + urlParams.toString();
|
|
24502
|
+
}
|
|
24503
|
+
const res = yield api.GET(url, Api.PrepReqParams(req));
|
|
24504
|
+
return {
|
|
24505
|
+
records: (res === null || res === void 0 ? void 0 : res.Items) || []
|
|
24506
|
+
};
|
|
24507
|
+
});
|
|
24508
|
+
}
|
|
24509
|
+
UserAccessLog.GetList = GetList;
|
|
24510
|
+
})(UserAccessLog || (UserAccessLog = {}));
|
|
24511
|
+
|
|
24462
24512
|
/**
|
|
24463
24513
|
* Describes the "User Group" concept within Nextspace.
|
|
24464
24514
|
* A user group is a collection of permissions ("Features") and what users should be in the group.
|
|
@@ -25899,7 +25949,7 @@ function getFirstWrappedArray(data, wrapperKeys) {
|
|
|
25899
25949
|
}
|
|
25900
25950
|
|
|
25901
25951
|
// This is updated with the package.json version on build.
|
|
25902
|
-
const VERSION = "7.1.
|
|
25952
|
+
const VERSION = "7.1.129";
|
|
25903
25953
|
|
|
25904
|
-
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, ClientFileFolder, ClientFileValueMap, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, RequestLane, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeRelation, EntityTypeSource, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportNsx, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportTif, ImportedFile, Uploader, Markup, UIMarkup, NavigatorChatClient, NAVIGATOR_CHAT_RPC_METHOD_CHAT_EVENT, NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY, NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY_ACK, NAVIGATOR_CHAT_RPC_METHOD_TOOLS_CALL, NAVIGATOR_CHAT_RPC_METHOD_TOOL_RESPONSE, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NAVIGATOR_CHAT_EVENT_PRESENTATION_PLAN_APPLIED, NAVIGATOR_CHAT_LEGACY_EVENT_SESSION_CLEARED, NAVIGATOR_CHAT_STEP_TRACKING_UPDATE, NAVIGATOR_CHAT_STEP_JOB_COMPLETE, NAVIGATOR_CHAT_STEP_QUEUED_INPUT, NAVIGATOR_CHAT_STEP_LLM_CONTEXT, NAVIGATOR_CHAT_TRACKING_KIND_PRESENTATION_PLAN, NAVIGATOR_CHAT_CANCELLED_JOB_STATUSES, isNavigatorChatClientEventType, isNavigatorChatCancelledJobStatus, buildNavigatorChatEventMessage, parseNavigatorChatServerMessage, NavigatorMcpWebSocketClient, Plugin, PluginAiTool, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, WorkflowItem, WorkflowSchedule, WorkflowType, WorkflowItemType };
|
|
25954
|
+
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, ClientFileFolder, ClientFileValueMap, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, RequestLane, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeRelation, EntityTypeSource, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportNsx, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportTif, ImportedFile, Uploader, Markup, UIMarkup, NavigatorChatClient, NAVIGATOR_CHAT_RPC_METHOD_CHAT_EVENT, NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY, NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY_ACK, NAVIGATOR_CHAT_RPC_METHOD_TOOLS_CALL, NAVIGATOR_CHAT_RPC_METHOD_TOOL_RESPONSE, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NAVIGATOR_CHAT_EVENT_PRESENTATION_PLAN_APPLIED, NAVIGATOR_CHAT_LEGACY_EVENT_SESSION_CLEARED, NAVIGATOR_CHAT_STEP_TRACKING_UPDATE, NAVIGATOR_CHAT_STEP_JOB_COMPLETE, NAVIGATOR_CHAT_STEP_QUEUED_INPUT, NAVIGATOR_CHAT_STEP_LLM_CONTEXT, NAVIGATOR_CHAT_TRACKING_KIND_PRESENTATION_PLAN, NAVIGATOR_CHAT_CANCELLED_JOB_STATUSES, isNavigatorChatClientEventType, isNavigatorChatCancelledJobStatus, buildNavigatorChatEventMessage, parseNavigatorChatServerMessage, NavigatorMcpWebSocketClient, Plugin, PluginAiTool, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserAccessLog, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, WorkflowItem, WorkflowSchedule, WorkflowType, WorkflowItemType };
|
|
25905
25955
|
//# sourceMappingURL=bruce-models.es5.js.map
|