@powerportalspro/core 5.0.0 → 6.0.0
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/EULA.txt +263 -0
- package/README.md +21 -0
- package/dist/index.cjs +53 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +161 -14
- package/dist/index.d.ts +161 -14
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -158,6 +158,12 @@ var api = {
|
|
|
158
158
|
* values across all sources). `culture` is a query-string parameter. SystemAdmin-only.
|
|
159
159
|
*/
|
|
160
160
|
localizationMergedDownload: `${apiRoot}/localizations/merged/download`,
|
|
161
|
+
/**
|
|
162
|
+
* GET — structured list of every key the cache will serve for a culture, its winning
|
|
163
|
+
* value, and the source that supplied it. `culture` is a query-string parameter. Backs
|
|
164
|
+
* the LocalizationAdmin "view merged sources" dialog. SystemAdmin-only.
|
|
165
|
+
*/
|
|
166
|
+
localizationMergedEntries: `${apiRoot}/localizations/merged/entries`,
|
|
161
167
|
/** GET — whether translation is configured, the managed solution is installed, and the candidate target languages. SystemAdmin-only. */
|
|
162
168
|
localizationTranslationAvailability: `${apiRoot}/localizations/translation/availability`,
|
|
163
169
|
/** POST — translate an uploaded localization file into one or more target languages. SystemAdmin-only. */
|
|
@@ -793,6 +799,20 @@ var PowerPortalsProClient = class {
|
|
|
793
799
|
signal
|
|
794
800
|
);
|
|
795
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
* Reads the merged localization keys for a culture as a structured list — every key the
|
|
804
|
+
* cache will serve, its winning value, and which source supplied it. Same data as
|
|
805
|
+
* {@link downloadMergedLocalizationsAsync} but per-key annotated with provenance, for the
|
|
806
|
+
* `<LocalizationAdmin />` "view merged sources" dialog. Sorted by key. SystemAdmin-gated.
|
|
807
|
+
*/
|
|
808
|
+
getMergedLocalizationEntriesAsync(culture, signal) {
|
|
809
|
+
const query = new URLSearchParams({ culture }).toString();
|
|
810
|
+
return this.transport.sendJson(
|
|
811
|
+
"GET",
|
|
812
|
+
`${Routes.api.localizationMergedEntries}?${query}`,
|
|
813
|
+
signal ? { signal } : {}
|
|
814
|
+
);
|
|
815
|
+
}
|
|
796
816
|
/**
|
|
797
817
|
* Shared binary-download path for the two localization download endpoints. Reads
|
|
798
818
|
* the raw bytes via `response.arrayBuffer()` and derives the filename from the
|
|
@@ -1385,6 +1405,12 @@ var DeletePersonalDataResult = {
|
|
|
1385
1405
|
/** The user has a local password set but the request body's password field was empty. The client should prompt for the password and resubmit. Distinct from IncorrectPassword so the UI can choose between "please enter your password" and "that password is wrong." */
|
|
1386
1406
|
RequireLocalPassword: 2
|
|
1387
1407
|
};
|
|
1408
|
+
var EntityRole = {
|
|
1409
|
+
/** The entity plays the "referenced" (primary) role. */
|
|
1410
|
+
Referenced: 0,
|
|
1411
|
+
/** The entity plays the "referencing" (related) role. */
|
|
1412
|
+
Referencing: 1
|
|
1413
|
+
};
|
|
1388
1414
|
var ExternalLoginCandidateKind = {
|
|
1389
1415
|
/** The candidate is a Dataverse contact record. */
|
|
1390
1416
|
Contact: 0,
|
|
@@ -1447,6 +1473,14 @@ var LoginResult = {
|
|
|
1447
1473
|
/** The account is locked out (too many failed attempts, manual lockout, etc.). The client should show the lockout page. */
|
|
1448
1474
|
LockedOut: 4
|
|
1449
1475
|
};
|
|
1476
|
+
var PortalUserType = {
|
|
1477
|
+
/** A portal contact under the classic (portal-side) security model — no stub systemuser; permission handlers enforce access. */
|
|
1478
|
+
Contact: 0,
|
|
1479
|
+
/** A real internal Dataverse systemuser (e.g. Entra ID staff sign-in). */
|
|
1480
|
+
SystemUser: 1,
|
|
1481
|
+
/** A portal contact whose Dataverse access is enforced through the system-managed (C2) stub systemuser provisioned for it under the Dataverse-native security model. Must never be presented as an internal user. */
|
|
1482
|
+
ContactStubUser: 2
|
|
1483
|
+
};
|
|
1450
1484
|
var RegisterResult = {
|
|
1451
1485
|
/** The account was created and a confirmation email has been sent. The user is NOT signed in yet — they must click the confirmation link first. */
|
|
1452
1486
|
ConfirmationEmailSent: 0,
|
|
@@ -1507,6 +1541,22 @@ var TableSecurityPermission = {
|
|
|
1507
1541
|
/** All permissions except Create. */
|
|
1508
1542
|
All: 63
|
|
1509
1543
|
};
|
|
1544
|
+
var ViewType = {
|
|
1545
|
+
/** A public view visible to all users. */
|
|
1546
|
+
Public: 0,
|
|
1547
|
+
/** An advanced find view. */
|
|
1548
|
+
AdvancedFind: 1,
|
|
1549
|
+
/** A view used for displaying associated records. */
|
|
1550
|
+
Associated: 2,
|
|
1551
|
+
/** A view used for Quick Find search. */
|
|
1552
|
+
QuickFind: 4,
|
|
1553
|
+
/** A view used for displaying team or queue members. */
|
|
1554
|
+
Members: 32,
|
|
1555
|
+
/** A view used in lookup dialogs. */
|
|
1556
|
+
Lookup: 64,
|
|
1557
|
+
/** A view used for the lookup display format. */
|
|
1558
|
+
LookupDisplay: 2048
|
|
1559
|
+
};
|
|
1510
1560
|
|
|
1511
1561
|
// src/record-id.ts
|
|
1512
1562
|
var EMPTY_GUID = "00000000-0000-0000-0000-000000000000";
|
|
@@ -1519,6 +1569,6 @@ function getRecordReferenceId(record) {
|
|
|
1519
1569
|
// src/index.ts
|
|
1520
1570
|
var VERSION = "0.1.0";
|
|
1521
1571
|
|
|
1522
|
-
export { AggregateType, ArchiveFormat, ArgumentError, ArgumentNullError, AuthClient, ChangeEmailResult, ChangePasswordResult, ChartDateGrouping, ColumnType, ConfirmExternalLoginResult, DateTimeBehavior, DeletePersonalDataResult, ExternalLoginCandidateKind, FileArchiveResponseFormat, InvalidOperationError, JoinOperator, LocalizationSourceKind, LocalizationSourceStatus, LoginResult, PowerPortalsProClient, PowerPortalsProError, RegisterResult, RelationshipFilterMode, RequiredLevel, ResetPasswordResult, Routes, SwitchIdentityResult, TableSecurityPermission, Transport, UnauthorizedAccessError, VERSION, getRecordReferenceId, mapProblemDetails };
|
|
1572
|
+
export { AggregateType, ArchiveFormat, ArgumentError, ArgumentNullError, AuthClient, ChangeEmailResult, ChangePasswordResult, ChartDateGrouping, ColumnType, ConfirmExternalLoginResult, DateTimeBehavior, DeletePersonalDataResult, EntityRole, ExternalLoginCandidateKind, FileArchiveResponseFormat, InvalidOperationError, JoinOperator, LocalizationSourceKind, LocalizationSourceStatus, LoginResult, PortalUserType, PowerPortalsProClient, PowerPortalsProError, RegisterResult, RelationshipFilterMode, RequiredLevel, ResetPasswordResult, Routes, SwitchIdentityResult, TableSecurityPermission, Transport, UnauthorizedAccessError, VERSION, ViewType, getRecordReferenceId, mapProblemDetails };
|
|
1523
1573
|
//# sourceMappingURL=index.js.map
|
|
1524
1574
|
//# sourceMappingURL=index.js.map
|