@synopackageland/sdk 0.31.3 → 0.31.4
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/README.md +7 -0
- package/dist/index.js +790 -738
- package/dist/src/dsm/service-ports.d.ts +23 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/vue.js +10 -9
- package/executor-manifest.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Context } from '../context';
|
|
2
|
+
/** One inclusive destination range; a single port has equal bounds. */
|
|
3
|
+
export interface DsmPortRange {
|
|
4
|
+
first: number;
|
|
5
|
+
last: number;
|
|
6
|
+
}
|
|
7
|
+
/** A localized DSM port definition. id is the services.d section (port_id).
|
|
8
|
+
* ports contains single ports; ranges also retains declared intervals.
|
|
9
|
+
* Neither means the service is listening or reachable. */
|
|
10
|
+
export interface DsmPort {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
desc: string;
|
|
14
|
+
protocol: string;
|
|
15
|
+
ports: number[];
|
|
16
|
+
ranges: DsmPortRange[];
|
|
17
|
+
}
|
|
18
|
+
/** Best-effort PortInfo in the current administrator's DSM session. Start this
|
|
19
|
+
* after rendering the App: no root helper, polling or startup dependency.
|
|
20
|
+
* Uses the window's WebAPI channel when present, otherwise same-origin fetch
|
|
21
|
+
* with the current files token. Missing session, refusal, timeout and malformed
|
|
22
|
+
* replies return []. Names already use the session language. */
|
|
23
|
+
export declare function readDsmPorts(ctx: Pick<Context, 'files' | 'webApi'>): Promise<DsmPort[]>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -38,3 +38,4 @@ export * from './protocol/v1';
|
|
|
38
38
|
export { encodeRequest, decodeResponse, type ProtocolAuth, type ProtocolResponse } from './protocol/codec';
|
|
39
39
|
export { appDenial, appRefusal, type AppDenial } from './authorization/refusal';
|
|
40
40
|
export { createClient, type Batch, type BatchCall, type BatchResult, type ClientOptions } from './client';
|
|
41
|
+
export { readDsmPorts, type DsmPort, type DsmPortRange } from './dsm/service-ports';
|
package/dist/vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { appRefusal as ca, appDenial as Be, delegateCopy as Re, createDsmFileStation as Wa, appLifecycle as Se, lifecycleRetryDelay as va, uiLocale as fa, lifecycleCopy as Le, shellCopy as ua, isFullPage as Ea, format as We, nasCopy as Ae, nasErrorCopy as Ta, saveCopy as pa, saveError as Qe, createNasProvider as Aa, labelSeparator as ma, identityCopy as Ja, backgroundCopy as Ya, createBackgroundPickerProvider as Qa, backgroundErrorCopy as Za, requestKey as ha, lifecycleRefusal as ja, errorCopy as et, scopedPicker as at, authorizationCopy as tt } from "./index.js";
|
|
2
|
-
import { DEFAULT_REQUEST_TIMEOUT as Ms, FILE_STATION_APP as Ks, LIFECYCLE_RETRY_MAX_MS as Hs, LIFECYCLE_STARTING_RETRY_MAX_MS as Xs, MAX_LAUNCH_ROUTE as Gs, activePage as Ws, authorizationCatalogs as Js, backgroundCatalogs as Ys, bridgeCatalogs as Qs, bridgeErrorCopy as Zs, catalogs as js, clientTimeout as eo, createBackgroundSaveFacade as ao, createClient as to, createDsmSession as lo, createFileTransfers as no, createPortalAccess as so, createSharedFolderAccess as oo, createSharedFolderPermission as io, createStandaloneContext as uo, createStandaloneHost as ro, decodeResponse as co, delegateCatalogs as vo, dsmLaunchURL as fo, encodeRequest as po, fileStationPath as mo, followLaunchRoute as yo, identityCatalogs as bo, launchRoute as go, mergeCatalogs as ho, nasCatalogs as ko, openFileInFileStation as _o, openFolderInFileStation as wo, portalCatalogs as xo, portalMessages as Co, protocolCodes as $o, protocolOps as So, protocolSchemas as Po,
|
|
2
|
+
import { DEFAULT_REQUEST_TIMEOUT as Ms, FILE_STATION_APP as Ks, LIFECYCLE_RETRY_MAX_MS as Hs, LIFECYCLE_STARTING_RETRY_MAX_MS as Xs, MAX_LAUNCH_ROUTE as Gs, activePage as Ws, authorizationCatalogs as Js, backgroundCatalogs as Ys, bridgeCatalogs as Qs, bridgeErrorCopy as Zs, catalogs as js, clientTimeout as eo, createBackgroundSaveFacade as ao, createClient as to, createDsmSession as lo, createFileTransfers as no, createPortalAccess as so, createSharedFolderAccess as oo, createSharedFolderPermission as io, createStandaloneContext as uo, createStandaloneHost as ro, decodeResponse as co, delegateCatalogs as vo, dsmLaunchURL as fo, encodeRequest as po, fileStationPath as mo, followLaunchRoute as yo, identityCatalogs as bo, launchRoute as go, mergeCatalogs as ho, nasCatalogs as ko, openFileInFileStation as _o, openFolderInFileStation as wo, portalCatalogs as xo, portalMessages as Co, protocolCodes as $o, protocolOps as So, protocolSchemas as Po, readDsmPorts as Eo, saveCatalogs as To, sharedFolderAccessFor as Ao, sharedFolderCatalogs as zo, sharedFolderMessages as Ro, sharedFolderPermissionMessage as Io, shellCatalogs as Uo, shellPages as Do, uiLocales as Vo } from "./index.js";
|
|
3
3
|
import { inject as Te, ref as b, computed as w, onBeforeUnmount as _e, Comment as lt, Text as nt, Fragment as ee, watch as qe, onMounted as xe, defineComponent as ce, openBlock as l, createElementBlock as k, createElementVNode as $, toDisplayString as o, createCommentVNode as m, renderList as fe, normalizeClass as De, createVNode as p, unref as e, createTextVNode as h, createBlock as y, renderSlot as he, withCtx as n, resolveDynamicComponent as Ge, normalizeProps as Ze, mergeProps as ya, withModifiers as Oe, isRef as je, provide as Fe, useTemplateRef as Xe, useSlots as za, watchEffect as ka, guardReactiveProps as _a, createSlots as ta, Teleport as Ra, markRaw as st, h as ot, shallowRef as it, onUnmounted as Ia, nextTick as ut } from "vue";
|
|
4
4
|
import { SettingsSection as ke, Callout as Z, Button as V, SettingsRow as we, Skeleton as Ve, Badge as Je, PathDisplay as Ne, Form as Me, FormItem as Pe, Select as ba, Input as ze, Dialog as Ke, ensureDeviceViewport as rt, AppRoot as dt, ConfigProvider as ct, PageContent as wa, PageHeader as xa, AppLayout as vt, LoadingArea as Ua, AppSidebar as ft, AppSidebarUser as pt, InfoTip as mt, FileTypeIcon as sa, IconButton as oa, Breadcrumb as yt, FilePicker as bt, TreeView as gt, DataGrid as ht, Link as ra, FormActions as la, Card as Ca, Checkbox as kt, ListItem as $a } from "@synopackageland/ui";
|
|
5
5
|
import { Timer as _t, Info as wt, ShieldCheck as Da, ChevronRight as Va, ChevronLeft as xt, RotateCw as Ct } from "@lucide/vue";
|
|
@@ -4049,20 +4049,21 @@ export {
|
|
|
4049
4049
|
$o as protocolCodes,
|
|
4050
4050
|
So as protocolOps,
|
|
4051
4051
|
Po as protocolSchemas,
|
|
4052
|
+
Eo as readDsmPorts,
|
|
4052
4053
|
ha as requestKey,
|
|
4053
|
-
|
|
4054
|
+
To as saveCatalogs,
|
|
4054
4055
|
pa as saveCopy,
|
|
4055
4056
|
Qe as saveError,
|
|
4056
4057
|
at as scopedPicker,
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4058
|
+
Ao as sharedFolderAccessFor,
|
|
4059
|
+
zo as sharedFolderCatalogs,
|
|
4060
|
+
Ro as sharedFolderMessages,
|
|
4061
|
+
Io as sharedFolderPermissionMessage,
|
|
4062
|
+
Uo as shellCatalogs,
|
|
4062
4063
|
ua as shellCopy,
|
|
4063
|
-
|
|
4064
|
+
Do as shellPages,
|
|
4064
4065
|
fa as uiLocale,
|
|
4065
|
-
|
|
4066
|
+
Vo as uiLocales,
|
|
4066
4067
|
fs as useAuthorization,
|
|
4067
4068
|
$t as useExecutorPreload,
|
|
4068
4069
|
La as useExecutorSetup,
|
package/executor-manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/sdk",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.4",
|
|
4
4
|
"description": "Frontend SDK for DSM packages built with synopkgland: headless client and Vue components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/synopackageland/syno-pkg-land-sdk/tree/main/ts#readme",
|