bruce-models 7.1.52 → 7.1.54
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 +106 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +104 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-audit.js +97 -0
- package/dist/lib/account/account-audit.js.map +1 -0
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/data-source/data-source.js +21 -0
- package/dist/lib/data-source/data-source.js.map +1 -1
- package/dist/types/account/account-audit.d.ts +90 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/data-source/data-source.d.ts +62 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -2734,6 +2734,89 @@ var Account;
|
|
|
2734
2734
|
Account.GetDbRegionListCacheKey = GetDbRegionListCacheKey;
|
|
2735
2735
|
})(Account || (Account = {}));
|
|
2736
2736
|
|
|
2737
|
+
var AccountAudit;
|
|
2738
|
+
(function (AccountAudit) {
|
|
2739
|
+
let EType;
|
|
2740
|
+
(function (EType) {
|
|
2741
|
+
EType["LOG"] = "L";
|
|
2742
|
+
EType["CREATE"] = "C";
|
|
2743
|
+
EType["UPDATE"] = "U";
|
|
2744
|
+
EType["DELETE"] = "D";
|
|
2745
|
+
})(EType = AccountAudit.EType || (AccountAudit.EType = {}));
|
|
2746
|
+
let ESeverity;
|
|
2747
|
+
(function (ESeverity) {
|
|
2748
|
+
ESeverity["DEBUG"] = "D";
|
|
2749
|
+
ESeverity["INFO"] = "I";
|
|
2750
|
+
ESeverity["WARN"] = "W";
|
|
2751
|
+
ESeverity["ERROR"] = "E";
|
|
2752
|
+
})(ESeverity = AccountAudit.ESeverity || (AccountAudit.ESeverity = {}));
|
|
2753
|
+
let EDetailLevel;
|
|
2754
|
+
(function (EDetailLevel) {
|
|
2755
|
+
EDetailLevel["SUMMARY"] = "summary";
|
|
2756
|
+
EDetailLevel["FULL"] = "full";
|
|
2757
|
+
})(EDetailLevel = AccountAudit.EDetailLevel || (AccountAudit.EDetailLevel = {}));
|
|
2758
|
+
let EAction;
|
|
2759
|
+
(function (EAction) {
|
|
2760
|
+
EAction["CREATED"] = "Created";
|
|
2761
|
+
EAction["UPDATED"] = "Updated";
|
|
2762
|
+
EAction["DELETED"] = "Deleted";
|
|
2763
|
+
})(EAction = AccountAudit.EAction || (AccountAudit.EAction = {}));
|
|
2764
|
+
let EOrderBy;
|
|
2765
|
+
(function (EOrderBy) {
|
|
2766
|
+
EOrderBy["ID"] = "ID";
|
|
2767
|
+
EOrderBy["LOGGED"] = "Logged";
|
|
2768
|
+
EOrderBy["CREATED"] = "Created";
|
|
2769
|
+
EOrderBy["CREATED_DATE"] = "CreatedDate";
|
|
2770
|
+
EOrderBy["SEVERITY"] = "Severity";
|
|
2771
|
+
EOrderBy["TYPE"] = "Type";
|
|
2772
|
+
EOrderBy["ACTION"] = "Action";
|
|
2773
|
+
EOrderBy["MESSAGE"] = "Message";
|
|
2774
|
+
EOrderBy["CONCEPT"] = "Concept";
|
|
2775
|
+
EOrderBy["SCOPE"] = "Scope";
|
|
2776
|
+
EOrderBy["USER_ID"] = "User.ID";
|
|
2777
|
+
})(EOrderBy = AccountAudit.EOrderBy || (AccountAudit.EOrderBy = {}));
|
|
2778
|
+
function GetConceptList(params) {
|
|
2779
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2780
|
+
let { api, req: reqParams, concept, pageSize, pageIndex, lastSeenId, search, orderBy, sortOrder, recordId, detailLevel } = params;
|
|
2781
|
+
if (!api) {
|
|
2782
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
2783
|
+
}
|
|
2784
|
+
if (!concept) {
|
|
2785
|
+
throw new Error("Concept is required.");
|
|
2786
|
+
}
|
|
2787
|
+
const urlParams = new URLSearchParams();
|
|
2788
|
+
if (pageSize != null) {
|
|
2789
|
+
urlParams.append("PageSize", String(pageSize));
|
|
2790
|
+
}
|
|
2791
|
+
if (pageIndex != null) {
|
|
2792
|
+
urlParams.append("PageIndex", String(pageIndex));
|
|
2793
|
+
}
|
|
2794
|
+
if (lastSeenId != null) {
|
|
2795
|
+
urlParams.append("LastSeenID", String(lastSeenId));
|
|
2796
|
+
}
|
|
2797
|
+
if (search) {
|
|
2798
|
+
urlParams.append("Search", search);
|
|
2799
|
+
}
|
|
2800
|
+
if (orderBy) {
|
|
2801
|
+
urlParams.append("OrderBy", orderBy);
|
|
2802
|
+
}
|
|
2803
|
+
if (sortOrder) {
|
|
2804
|
+
urlParams.append("SortOrder", sortOrder);
|
|
2805
|
+
}
|
|
2806
|
+
if (recordId) {
|
|
2807
|
+
urlParams.append("RecordID", recordId);
|
|
2808
|
+
}
|
|
2809
|
+
if (detailLevel) {
|
|
2810
|
+
urlParams.append("DetailLevel", detailLevel);
|
|
2811
|
+
}
|
|
2812
|
+
const query = urlParams.toString();
|
|
2813
|
+
const route = `v3/accountAudits/concept/${Api.Encode(String(concept))}`;
|
|
2814
|
+
return api.GET(query ? `${route}?${query}` : route, Api.PrepReqParams(reqParams));
|
|
2815
|
+
});
|
|
2816
|
+
}
|
|
2817
|
+
AccountAudit.GetConceptList = GetConceptList;
|
|
2818
|
+
})(AccountAudit || (AccountAudit = {}));
|
|
2819
|
+
|
|
2737
2820
|
/**
|
|
2738
2821
|
* Account Features are a set of flags that can be enabled or disabled for an account.
|
|
2739
2822
|
* These flags usually represent how data is stored and managed.
|
|
@@ -10411,6 +10494,27 @@ var DataSource;
|
|
|
10411
10494
|
});
|
|
10412
10495
|
}
|
|
10413
10496
|
DataSource.Analyze = Analyze;
|
|
10497
|
+
/**
|
|
10498
|
+
* Makes a diagnostic sample request to a registered data source.
|
|
10499
|
+
* This calls: POST source/{source_id}/requestSample
|
|
10500
|
+
* @param params
|
|
10501
|
+
*/
|
|
10502
|
+
function RequestSample(params) {
|
|
10503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10504
|
+
let { sourceId, options, api, req: reqParams } = params;
|
|
10505
|
+
if (!sourceId) {
|
|
10506
|
+
throw ("Source ID is required.");
|
|
10507
|
+
}
|
|
10508
|
+
if (!api) {
|
|
10509
|
+
api = ENVIRONMENT.Api().GetBruceApi();
|
|
10510
|
+
}
|
|
10511
|
+
const res = yield api.POST(`source/${sourceId}/requestSample`, options !== null && options !== void 0 ? options : {}, Api.PrepReqParams(reqParams));
|
|
10512
|
+
return {
|
|
10513
|
+
sample: res
|
|
10514
|
+
};
|
|
10515
|
+
});
|
|
10516
|
+
}
|
|
10517
|
+
DataSource.RequestSample = RequestSample;
|
|
10414
10518
|
/**
|
|
10415
10519
|
* Returns cache identifier for a data source by ID.
|
|
10416
10520
|
* Example: {
|
|
@@ -18998,7 +19102,7 @@ var UrlUtils;
|
|
|
18998
19102
|
})(UrlUtils || (UrlUtils = {}));
|
|
18999
19103
|
|
|
19000
19104
|
// This is updated with the package.json version on build.
|
|
19001
|
-
const VERSION = "7.1.
|
|
19105
|
+
const VERSION = "7.1.54";
|
|
19002
19106
|
|
|
19003
|
-
export { VERSION, Account, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, 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, EntityTypeTrigger, ENVIRONMENT, ExportBrz, ExportUsd, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, 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 };
|
|
19107
|
+
export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, 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, EntityTypeTrigger, ENVIRONMENT, ExportBrz, ExportUsd, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, 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 };
|
|
19004
19108
|
//# sourceMappingURL=bruce-models.es5.js.map
|