@bluestep-systems/b6p-core 0.1.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/README.md +75 -0
- package/dist/B6PCore.d.ts +109 -0
- package/dist/B6PCore.js +470 -0
- package/dist/B6PCore.js.map +1 -0
- package/dist/B6PUri.d.ts +31 -0
- package/dist/B6PUri.js +110 -0
- package/dist/B6PUri.js.map +1 -0
- package/dist/Err.d.ts +470 -0
- package/dist/Err.js +800 -0
- package/dist/Err.js.map +1 -0
- package/dist/auth/BasicAuthProvider.d.ts +39 -0
- package/dist/auth/BasicAuthProvider.js +106 -0
- package/dist/auth/BasicAuthProvider.js.map +1 -0
- package/dist/cache/OrgCache.d.ts +66 -0
- package/dist/cache/OrgCache.js +220 -0
- package/dist/cache/OrgCache.js.map +1 -0
- package/dist/cache/ScriptMetaDataStore.d.ts +39 -0
- package/dist/cache/ScriptMetaDataStore.js +83 -0
- package/dist/cache/ScriptMetaDataStore.js.map +1 -0
- package/dist/constants/ApiEndpoints.d.ts +13 -0
- package/dist/constants/ApiEndpoints.js +18 -0
- package/dist/constants/ApiEndpoints.js.map +1 -0
- package/dist/constants/AuthTypes.d.ts +9 -0
- package/dist/constants/AuthTypes.js +14 -0
- package/dist/constants/AuthTypes.js.map +1 -0
- package/dist/constants/BlueHQ.d.ts +20 -0
- package/dist/constants/BlueHQ.js +36 -0
- package/dist/constants/BlueHQ.js.map +1 -0
- package/dist/constants/CryptoAlgorithms.d.ts +8 -0
- package/dist/constants/CryptoAlgorithms.js +13 -0
- package/dist/constants/CryptoAlgorithms.js.map +1 -0
- package/dist/constants/ExtensionConfig.d.ts +11 -0
- package/dist/constants/ExtensionConfig.js +16 -0
- package/dist/constants/ExtensionConfig.js.map +1 -0
- package/dist/constants/FileExtensions.d.ts +13 -0
- package/dist/constants/FileExtensions.js +18 -0
- package/dist/constants/FileExtensions.js.map +1 -0
- package/dist/constants/FolderNames.d.ts +12 -0
- package/dist/constants/FolderNames.js +17 -0
- package/dist/constants/FolderNames.js.map +1 -0
- package/dist/constants/GitHubUrls.d.ts +12 -0
- package/dist/constants/GitHubUrls.js +17 -0
- package/dist/constants/GitHubUrls.js.map +1 -0
- package/dist/constants/Http.d.ts +57 -0
- package/dist/constants/Http.js +67 -0
- package/dist/constants/Http.js.map +1 -0
- package/dist/constants/MimeTypes.d.ts +9 -0
- package/dist/constants/MimeTypes.js +14 -0
- package/dist/constants/MimeTypes.js.map +1 -0
- package/dist/constants/Numerical.d.ts +14 -0
- package/dist/constants/Numerical.js +32 -0
- package/dist/constants/Numerical.js.map +1 -0
- package/dist/constants/OutputChannels.d.ts +8 -0
- package/dist/constants/OutputChannels.js +13 -0
- package/dist/constants/OutputChannels.js.map +1 -0
- package/dist/constants/SettingsKeys.d.ts +11 -0
- package/dist/constants/SettingsKeys.js +16 -0
- package/dist/constants/SettingsKeys.js.map +1 -0
- package/dist/constants/SpecialFiles.d.ts +10 -0
- package/dist/constants/SpecialFiles.js +15 -0
- package/dist/constants/SpecialFiles.js.map +1 -0
- package/dist/constants/WebDAVElements.d.ts +10 -0
- package/dist/constants/WebDAVElements.js +15 -0
- package/dist/constants/WebDAVElements.js.map +1 -0
- package/dist/constants/index.d.ts +22 -0
- package/dist/constants/index.js +41 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/data/DownstairsPathParser.d.ts +20 -0
- package/dist/data/DownstairsPathParser.js +132 -0
- package/dist/data/DownstairsPathParser.js.map +1 -0
- package/dist/data/GlobMatcher.d.ts +23 -0
- package/dist/data/GlobMatcher.js +135 -0
- package/dist/data/GlobMatcher.js.map +1 -0
- package/dist/data/IdUtility.d.ts +22 -0
- package/dist/data/IdUtility.js +119 -0
- package/dist/data/IdUtility.js.map +1 -0
- package/dist/data/OrgWorker.d.ts +14 -0
- package/dist/data/OrgWorker.js +54 -0
- package/dist/data/OrgWorker.js.map +1 -0
- package/dist/data/ScriptKey.d.ts +93 -0
- package/dist/data/ScriptKey.js +123 -0
- package/dist/data/ScriptKey.js.map +1 -0
- package/dist/data/ScriptUrlParser.d.ts +42 -0
- package/dist/data/ScriptUrlParser.js +258 -0
- package/dist/data/ScriptUrlParser.js.map +1 -0
- package/dist/data/index.d.ts +5 -0
- package/dist/data/index.js +14 -0
- package/dist/data/index.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +88 -0
- package/dist/index.js.map +1 -0
- package/dist/network/HttpClient.d.ts +32 -0
- package/dist/network/HttpClient.js +65 -0
- package/dist/network/HttpClient.js.map +1 -0
- package/dist/network/HttpClientProvider.d.ts +216 -0
- package/dist/network/HttpClientProvider.js +256 -0
- package/dist/network/HttpClientProvider.js.map +1 -0
- package/dist/network/StatusCodes.d.ts +101 -0
- package/dist/network/StatusCodes.js +121 -0
- package/dist/network/StatusCodes.js.map +1 -0
- package/dist/persistence/Persistable.d.ts +9 -0
- package/dist/persistence/Persistable.js +3 -0
- package/dist/persistence/Persistable.js.map +1 -0
- package/dist/persistence/PersistablePseudoMap.d.ts +50 -0
- package/dist/persistence/PersistablePseudoMap.js +62 -0
- package/dist/persistence/PersistablePseudoMap.js.map +1 -0
- package/dist/persistence/PersistenceKeys.d.ts +38 -0
- package/dist/persistence/PersistenceKeys.js +44 -0
- package/dist/persistence/PersistenceKeys.js.map +1 -0
- package/dist/persistence/PrivatePersistanceMap.d.ts +30 -0
- package/dist/persistence/PrivatePersistanceMap.js +67 -0
- package/dist/persistence/PrivatePersistanceMap.js.map +1 -0
- package/dist/persistence/PseudoMap.d.ts +65 -0
- package/dist/persistence/PseudoMap.js +96 -0
- package/dist/persistence/PseudoMap.js.map +1 -0
- package/dist/persistence/PublicPersistanceMap.d.ts +25 -0
- package/dist/persistence/PublicPersistanceMap.js +38 -0
- package/dist/persistence/PublicPersistanceMap.js.map +1 -0
- package/dist/persistence/Serializable.d.ts +40 -0
- package/dist/persistence/Serializable.js +54 -0
- package/dist/persistence/Serializable.js.map +1 -0
- package/dist/persistence/SharedFilePersistence.d.ts +70 -0
- package/dist/persistence/SharedFilePersistence.js +277 -0
- package/dist/persistence/SharedFilePersistence.js.map +1 -0
- package/dist/persistence/TypedMap.d.ts +73 -0
- package/dist/persistence/TypedMap.js +104 -0
- package/dist/persistence/TypedMap.js.map +1 -0
- package/dist/persistence/TypedPersistable.d.ts +36 -0
- package/dist/persistence/TypedPersistable.js +42 -0
- package/dist/persistence/TypedPersistable.js.map +1 -0
- package/dist/persistence/TypedPrivatePersistable.d.ts +124 -0
- package/dist/persistence/TypedPrivatePersistable.js +164 -0
- package/dist/persistence/TypedPrivatePersistable.js.map +1 -0
- package/dist/persistence/dirLockdown.d.ts +12 -0
- package/dist/persistence/dirLockdown.js +73 -0
- package/dist/persistence/dirLockdown.js.map +1 -0
- package/dist/persistence/index.d.ts +11 -0
- package/dist/persistence/index.js +27 -0
- package/dist/persistence/index.js.map +1 -0
- package/dist/providers.d.ts +133 -0
- package/dist/providers.js +3 -0
- package/dist/providers.js.map +1 -0
- package/dist/push.d.ts +20 -0
- package/dist/push.js +245 -0
- package/dist/push.js.map +1 -0
- package/dist/script/ScriptContext.d.ts +24 -0
- package/dist/script/ScriptContext.js +3 -0
- package/dist/script/ScriptContext.js.map +1 -0
- package/dist/script/ScriptFactory.d.ts +44 -0
- package/dist/script/ScriptFactory.js +130 -0
- package/dist/script/ScriptFactory.js.map +1 -0
- package/dist/script/ScriptFile.d.ts +62 -0
- package/dist/script/ScriptFile.js +373 -0
- package/dist/script/ScriptFile.js.map +1 -0
- package/dist/script/ScriptFolder.d.ts +43 -0
- package/dist/script/ScriptFolder.js +109 -0
- package/dist/script/ScriptFolder.js.map +1 -0
- package/dist/script/ScriptNode.d.ts +87 -0
- package/dist/script/ScriptNode.js +273 -0
- package/dist/script/ScriptNode.js.map +1 -0
- package/dist/script/ScriptPathElement.d.ts +30 -0
- package/dist/script/ScriptPathElement.js +3 -0
- package/dist/script/ScriptPathElement.js.map +1 -0
- package/dist/script/ScriptRoot.d.ts +61 -0
- package/dist/script/ScriptRoot.js +331 -0
- package/dist/script/ScriptRoot.js.map +1 -0
- package/dist/script/ScriptTranspiler.d.ts +18 -0
- package/dist/script/ScriptTranspiler.js +122 -0
- package/dist/script/ScriptTranspiler.js.map +1 -0
- package/dist/script/SnapshotHistoryRecorder.d.ts +12 -0
- package/dist/script/SnapshotHistoryRecorder.js +175 -0
- package/dist/script/SnapshotHistoryRecorder.js.map +1 -0
- package/dist/script/TsConfig.d.ts +26 -0
- package/dist/script/TsConfig.js +110 -0
- package/dist/script/TsConfig.js.map +1 -0
- package/dist/session/SessionManager.d.ts +77 -0
- package/dist/session/SessionManager.js +290 -0
- package/dist/session/SessionManager.js.map +1 -0
- package/dist/testing/MockFileSystem.d.ts +37 -0
- package/dist/testing/MockFileSystem.js +249 -0
- package/dist/testing/MockFileSystem.js.map +1 -0
- package/dist/testing/TestableFactory.d.ts +61 -0
- package/dist/testing/TestableFactory.js +3 -0
- package/dist/testing/TestableFactory.js.map +1 -0
- package/dist/types.d.ts +577 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/update/UpdateService.d.ts +126 -0
- package/dist/update/UpdateService.js +351 -0
- package/dist/update/UpdateService.js.map +1 -0
- package/dist/update/index.d.ts +2 -0
- package/dist/update/index.js +6 -0
- package/dist/update/index.js.map +1 -0
- package/dist/update/types.d.ts +96 -0
- package/dist/update/types.js +3 -0
- package/dist/update/types.js.map +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type SerializableClass } from "../persistence";
|
|
2
|
+
import type { JsonValue } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Registry of known script class IDs and their associated metadata.
|
|
5
|
+
* Add new script types here as they become supported.
|
|
6
|
+
*/
|
|
7
|
+
declare const SCRIPT_TYPE_REGISTRY: {
|
|
8
|
+
readonly "654015": {
|
|
9
|
+
readonly type: "formula";
|
|
10
|
+
readonly setupPage: "editformuladetails.jsp";
|
|
11
|
+
readonly mutationName: "updateScriptFormula";
|
|
12
|
+
readonly inputType: "UpdateScriptFormulaInput";
|
|
13
|
+
};
|
|
14
|
+
readonly "530024": {
|
|
15
|
+
readonly type: "report";
|
|
16
|
+
readonly setupPage: "editdetailreport1.jsp";
|
|
17
|
+
readonly mutationName: "updateScriptMergeReport";
|
|
18
|
+
readonly inputType: "UpdateScriptMergeReportInput";
|
|
19
|
+
};
|
|
20
|
+
readonly "363769": {
|
|
21
|
+
readonly type: "endpoint";
|
|
22
|
+
readonly setupPage: "editendpoint.jsp";
|
|
23
|
+
readonly mutationName: "updateScriptEndpoint";
|
|
24
|
+
readonly inputType: "UpdateScriptEndpointInput";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type ScriptTypeEntry = typeof SCRIPT_TYPE_REGISTRY;
|
|
28
|
+
type KnownClassId = keyof ScriptTypeEntry;
|
|
29
|
+
/**
|
|
30
|
+
* The known script types, derived from the registry.
|
|
31
|
+
*/
|
|
32
|
+
export type ScriptType = ScriptTypeEntry[KnownClassId]["type"];
|
|
33
|
+
/**
|
|
34
|
+
* Represents a unique script identifier consisting of a classid and seqnum pair.
|
|
35
|
+
*
|
|
36
|
+
* Centralizes parsing, type lookup, and URL construction for script keys.
|
|
37
|
+
* Replaces the previous `{ seqnum: string; classid: string }` plain objects
|
|
38
|
+
* and the `WebDavId` utility class.
|
|
39
|
+
*/
|
|
40
|
+
export declare class ScriptKey implements SerializableClass {
|
|
41
|
+
readonly classid: string;
|
|
42
|
+
readonly seqnum: string;
|
|
43
|
+
constructor(classid: string, seqnum: string);
|
|
44
|
+
/**
|
|
45
|
+
* Parse from compound ID format: `"classid___seqnum"`.
|
|
46
|
+
* Replaces the former `WebDavId` class.
|
|
47
|
+
*/
|
|
48
|
+
static fromCompoundId(id: string): ScriptKey;
|
|
49
|
+
/**
|
|
50
|
+
* Construct from a plain object (e.g. deserialized metadata).
|
|
51
|
+
*/
|
|
52
|
+
static from(obj: {
|
|
53
|
+
classid: string;
|
|
54
|
+
seqnum: string;
|
|
55
|
+
}): ScriptKey;
|
|
56
|
+
/**
|
|
57
|
+
* The script type this classid represents, or `undefined` if the classid is not in the registry.
|
|
58
|
+
*/
|
|
59
|
+
get scriptType(): ScriptType | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* The JSP setup page for this script type, or `undefined` if not in the registry.
|
|
62
|
+
*/
|
|
63
|
+
get setupPage(): string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* The GraphQL mutation name for updating this script type (e.g. "updateScriptFormula").
|
|
66
|
+
*/
|
|
67
|
+
get mutationName(): string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The GraphQL input type name for updating this script type (e.g. "UpdateScriptFormulaInput").
|
|
70
|
+
*/
|
|
71
|
+
get inputType(): string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Build the full setup URL for this script, given a server origin.
|
|
74
|
+
* @throws if this classid has no known setup page.
|
|
75
|
+
*/
|
|
76
|
+
buildSetupUrl(origin: string | URL): string;
|
|
77
|
+
/**
|
|
78
|
+
* Serialize to compound ID format: `"classid___seqnum"`.
|
|
79
|
+
*/
|
|
80
|
+
toCompoundId(): string;
|
|
81
|
+
/**
|
|
82
|
+
* Serialize to a plain object suitable for JSON storage.
|
|
83
|
+
* Includes the `__storable` tag for automatic hydration by the persistence layer.
|
|
84
|
+
*/
|
|
85
|
+
toJSON(): {
|
|
86
|
+
__serializable: string;
|
|
87
|
+
classid: string;
|
|
88
|
+
seqnum: string;
|
|
89
|
+
[key: string]: JsonValue;
|
|
90
|
+
};
|
|
91
|
+
private get registryEntry();
|
|
92
|
+
}
|
|
93
|
+
export {};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScriptKey = void 0;
|
|
4
|
+
const Err_1 = require("../Err");
|
|
5
|
+
const persistence_1 = require("../persistence");
|
|
6
|
+
const COMPOUND_ID_SEPARATOR = "___";
|
|
7
|
+
const SERIALIZABLE_TAG = "ScriptKey";
|
|
8
|
+
/**
|
|
9
|
+
* Registry of known script class IDs and their associated metadata.
|
|
10
|
+
* Add new script types here as they become supported.
|
|
11
|
+
*/
|
|
12
|
+
const SCRIPT_TYPE_REGISTRY = {
|
|
13
|
+
"654015": {
|
|
14
|
+
type: "formula",
|
|
15
|
+
setupPage: "editformuladetails.jsp",
|
|
16
|
+
mutationName: "updateScriptFormula",
|
|
17
|
+
inputType: "UpdateScriptFormulaInput",
|
|
18
|
+
},
|
|
19
|
+
"530024": {
|
|
20
|
+
type: "report",
|
|
21
|
+
setupPage: "editdetailreport1.jsp",
|
|
22
|
+
mutationName: "updateScriptMergeReport",
|
|
23
|
+
inputType: "UpdateScriptMergeReportInput",
|
|
24
|
+
},
|
|
25
|
+
"363769": {
|
|
26
|
+
type: "endpoint",
|
|
27
|
+
setupPage: "editendpoint.jsp",
|
|
28
|
+
mutationName: "updateScriptEndpoint",
|
|
29
|
+
inputType: "UpdateScriptEndpointInput",
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Represents a unique script identifier consisting of a classid and seqnum pair.
|
|
34
|
+
*
|
|
35
|
+
* Centralizes parsing, type lookup, and URL construction for script keys.
|
|
36
|
+
* Replaces the previous `{ seqnum: string; classid: string }` plain objects
|
|
37
|
+
* and the `WebDavId` utility class.
|
|
38
|
+
*/
|
|
39
|
+
class ScriptKey {
|
|
40
|
+
classid;
|
|
41
|
+
seqnum;
|
|
42
|
+
constructor(classid, seqnum) {
|
|
43
|
+
if (!classid || !seqnum) {
|
|
44
|
+
throw new Err_1.Err.ScriptKeyParsingError(`ScriptKey requires non-empty classid and seqnum, got: classid="${classid}", seqnum="${seqnum}"`);
|
|
45
|
+
}
|
|
46
|
+
this.classid = classid;
|
|
47
|
+
this.seqnum = seqnum;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Parse from compound ID format: `"classid___seqnum"`.
|
|
51
|
+
* Replaces the former `WebDavId` class.
|
|
52
|
+
*/
|
|
53
|
+
static fromCompoundId(id) {
|
|
54
|
+
const match = id.match(/^(\d+)___(\d+)$/);
|
|
55
|
+
if (!match) {
|
|
56
|
+
throw new Err_1.Err.ScriptKeyParsingError(`Invalid compound ID format. Expected "classid___seqnum", got: ${id}`);
|
|
57
|
+
}
|
|
58
|
+
return new ScriptKey(match[1], match[2]);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Construct from a plain object (e.g. deserialized metadata).
|
|
62
|
+
*/
|
|
63
|
+
static from(obj) {
|
|
64
|
+
return new ScriptKey(obj.classid, obj.seqnum);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The script type this classid represents, or `undefined` if the classid is not in the registry.
|
|
68
|
+
*/
|
|
69
|
+
get scriptType() {
|
|
70
|
+
return this.registryEntry?.type;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The JSP setup page for this script type, or `undefined` if not in the registry.
|
|
74
|
+
*/
|
|
75
|
+
get setupPage() {
|
|
76
|
+
return this.registryEntry?.setupPage;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The GraphQL mutation name for updating this script type (e.g. "updateScriptFormula").
|
|
80
|
+
*/
|
|
81
|
+
get mutationName() {
|
|
82
|
+
return this.registryEntry?.mutationName;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The GraphQL input type name for updating this script type (e.g. "UpdateScriptFormulaInput").
|
|
86
|
+
*/
|
|
87
|
+
get inputType() {
|
|
88
|
+
return this.registryEntry?.inputType;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Build the full setup URL for this script, given a server origin.
|
|
92
|
+
* @throws if this classid has no known setup page.
|
|
93
|
+
*/
|
|
94
|
+
buildSetupUrl(origin) {
|
|
95
|
+
const page = this.setupPage;
|
|
96
|
+
if (!page) {
|
|
97
|
+
throw new Error(`No setup page known for classid: ${this.classid}`);
|
|
98
|
+
}
|
|
99
|
+
return `${origin}shared/admin/applications/relate/${page}?_event=edit&_id=${this.toCompoundId()}`;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Serialize to compound ID format: `"classid___seqnum"`.
|
|
103
|
+
*/
|
|
104
|
+
toCompoundId() {
|
|
105
|
+
return `${this.classid}${COMPOUND_ID_SEPARATOR}${this.seqnum}`;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Serialize to a plain object suitable for JSON storage.
|
|
109
|
+
* Includes the `__storable` tag for automatic hydration by the persistence layer.
|
|
110
|
+
*/
|
|
111
|
+
toJSON() {
|
|
112
|
+
return { __serializable: SERIALIZABLE_TAG, classid: this.classid, seqnum: this.seqnum };
|
|
113
|
+
}
|
|
114
|
+
get registryEntry() {
|
|
115
|
+
if (this.classid in SCRIPT_TYPE_REGISTRY) {
|
|
116
|
+
return SCRIPT_TYPE_REGISTRY[this.classid];
|
|
117
|
+
}
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.ScriptKey = ScriptKey;
|
|
122
|
+
(0, persistence_1.registerSerializable)(SERIALIZABLE_TAG, (data) => new ScriptKey(data.classid, data.seqnum));
|
|
123
|
+
//# sourceMappingURL=ScriptKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptKey.js","sourceRoot":"","sources":["../../src/data/ScriptKey.ts"],"names":[],"mappings":";;;AAAA,gCAA6B;AAC7B,gDAA8E;AAG9E,MAAM,qBAAqB,GAAG,KAAK,CAAC;AACpC,MAAM,gBAAgB,GAAG,WAAW,CAAC;AAErC;;;GAGG;AACH,MAAM,oBAAoB,GAAG;IAC3B,QAAQ,EAAE;QACR,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,wBAAwB;QACnC,YAAY,EAAE,qBAAqB;QACnC,SAAS,EAAE,0BAA0B;KACtC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,uBAAuB;QAClC,YAAY,EAAE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Y;QACd,OAAO,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACvC,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,MAAoB;QAChC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC;QAC5B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACtE,CAAC;QACD,OAAO,GAAG,MAAM,oCAAoC,IAAI,oBAAoB,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,YAAY;QACV,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,qBAAqB,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IACjE,CAAC;IAED;;;OAGG;IACH,MAAM;QACJ,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;IAC1F,CAAC;IAED,IAAY,aAAa;QACvB,IAAI,IAAI,CAAC,OAAO,IAAI,oBAAoB,EAAE,CAAC;YACzC,OAAO,oBAAoB,CAAC,IAAI,CAAC,OAAuB,CAAC,CAAC;QAC5D,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AA9FD,8BA8FC;AAED,IAAA,kCAAoB,EAAC,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,OAAiB,EAAE,IAAI,CAAC,MAAgB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ScriptKey } from "./ScriptKey";
|
|
2
|
+
import type { SessionManager } from "../session/SessionManager";
|
|
3
|
+
import type { ILogger, IPrompt } from "../providers";
|
|
4
|
+
import { OrgWorker } from "./OrgWorker";
|
|
5
|
+
type FilePointers = {
|
|
6
|
+
upstairsPath: string;
|
|
7
|
+
downstairsPath: string;
|
|
8
|
+
trailing?: string;
|
|
9
|
+
};
|
|
10
|
+
type GetScriptRet = FilePointers[] | null;
|
|
11
|
+
/**
|
|
12
|
+
* Parses and interacts with BlueStep WebDAV script URLs.
|
|
13
|
+
*
|
|
14
|
+
* Takes a {@link SessionManager}, `ILogger`, and `IPrompt` via constructor injection.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ScriptUrlParser {
|
|
17
|
+
readonly rawUrlString: string;
|
|
18
|
+
private readonly sessionManager;
|
|
19
|
+
private readonly logger;
|
|
20
|
+
private readonly prompt;
|
|
21
|
+
static readonly URL_TYPES: readonly ["files", "public"];
|
|
22
|
+
url: URL;
|
|
23
|
+
filesOrPublic: (typeof ScriptUrlParser.URL_TYPES)[number];
|
|
24
|
+
webDavId: string;
|
|
25
|
+
trailing?: string;
|
|
26
|
+
trailingFolder?: string;
|
|
27
|
+
private _scriptName;
|
|
28
|
+
private _orgWorker;
|
|
29
|
+
private _scriptKey;
|
|
30
|
+
constructor(rawUrlString: string, sessionManager: SessionManager, logger: ILogger, prompt: IPrompt);
|
|
31
|
+
private isValidType;
|
|
32
|
+
getU(): Promise<string>;
|
|
33
|
+
getScriptBaseKey(): Promise<ScriptKey>;
|
|
34
|
+
getScriptName(): Promise<string>;
|
|
35
|
+
private getGrandparentInfo;
|
|
36
|
+
urlCopy(): URL;
|
|
37
|
+
orgWorker(): OrgWorker;
|
|
38
|
+
getScript(): Promise<GetScriptRet>;
|
|
39
|
+
getSubScript(url: URL, scriptName: string, repository?: FilePointers[]): Promise<FilePointers[] | null>;
|
|
40
|
+
toString(): string;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScriptUrlParser = void 0;
|
|
4
|
+
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const Err_1 = require("../Err");
|
|
7
|
+
const ScriptKey_1 = require("./ScriptKey");
|
|
8
|
+
const OrgWorker_1 = require("./OrgWorker");
|
|
9
|
+
/**
|
|
10
|
+
* Parses and interacts with BlueStep WebDAV script URLs.
|
|
11
|
+
*
|
|
12
|
+
* Takes a {@link SessionManager}, `ILogger`, and `IPrompt` via constructor injection.
|
|
13
|
+
*/
|
|
14
|
+
class ScriptUrlParser {
|
|
15
|
+
rawUrlString;
|
|
16
|
+
sessionManager;
|
|
17
|
+
logger;
|
|
18
|
+
prompt;
|
|
19
|
+
static URL_TYPES = ["files", "public"];
|
|
20
|
+
url;
|
|
21
|
+
filesOrPublic;
|
|
22
|
+
webDavId;
|
|
23
|
+
trailing;
|
|
24
|
+
trailingFolder;
|
|
25
|
+
_scriptName = null;
|
|
26
|
+
_orgWorker = null;
|
|
27
|
+
_scriptKey = null;
|
|
28
|
+
constructor(rawUrlString, sessionManager, logger, prompt) {
|
|
29
|
+
this.rawUrlString = rawUrlString;
|
|
30
|
+
this.sessionManager = sessionManager;
|
|
31
|
+
this.logger = logger;
|
|
32
|
+
this.prompt = prompt;
|
|
33
|
+
if (!rawUrlString || !rawUrlString.trim()) {
|
|
34
|
+
throw new Err_1.Err.UrlParsingError("URL string cannot be empty");
|
|
35
|
+
}
|
|
36
|
+
const str = rawUrlString.trim();
|
|
37
|
+
try {
|
|
38
|
+
this.url = new URL(str);
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
throw new Err_1.Err.UrlParsingError(`Invalid URL format: ${str}`);
|
|
42
|
+
}
|
|
43
|
+
const pathRegex = /^\/(files|public)\/(\d+)(?:\/(.*))?$/;
|
|
44
|
+
const match = this.url.pathname.match(pathRegex);
|
|
45
|
+
if (!match) {
|
|
46
|
+
throw new Err_1.Err.UrlParsingError(`URL does not match expected BlueStep format: ${str}`);
|
|
47
|
+
}
|
|
48
|
+
const [, type, webDavId, trailing] = match;
|
|
49
|
+
if (!/^\d+$/.test(webDavId) || webDavId.length > 10) {
|
|
50
|
+
throw new Err_1.Err.UrlParsingError("the parsed WebDAV ID is probably too large to be legitimate");
|
|
51
|
+
}
|
|
52
|
+
if (!this.isValidType(type)) {
|
|
53
|
+
throw new Err_1.Err.UrlParsingError(`Invalid path type: ${type}. Expected: ${ScriptUrlParser.URL_TYPES.join(", ")}`);
|
|
54
|
+
}
|
|
55
|
+
this.filesOrPublic = type;
|
|
56
|
+
this.webDavId = webDavId;
|
|
57
|
+
this.trailing = trailing;
|
|
58
|
+
this.trailingFolder = trailing?.includes("/") ? trailing.split("/")[0] : undefined;
|
|
59
|
+
}
|
|
60
|
+
isValidType(type) {
|
|
61
|
+
return ScriptUrlParser.URL_TYPES.includes(type);
|
|
62
|
+
}
|
|
63
|
+
async getU() {
|
|
64
|
+
return this.orgWorker().getU();
|
|
65
|
+
}
|
|
66
|
+
async getScriptBaseKey() {
|
|
67
|
+
if (this._scriptKey !== null) {
|
|
68
|
+
return this._scriptKey;
|
|
69
|
+
}
|
|
70
|
+
await this.getGrandparentInfo();
|
|
71
|
+
if (this._scriptKey === null) {
|
|
72
|
+
throw new Err_1.Err.ScriptUrlParserError("Failed to fetch script key");
|
|
73
|
+
}
|
|
74
|
+
return this._scriptKey;
|
|
75
|
+
}
|
|
76
|
+
async getScriptName() {
|
|
77
|
+
if (this._scriptName !== null) {
|
|
78
|
+
return this._scriptName;
|
|
79
|
+
}
|
|
80
|
+
await this.getGrandparentInfo();
|
|
81
|
+
if (this._scriptName === null) {
|
|
82
|
+
throw new Err_1.Err.ScriptUrlParserError("Failed to fetch script name");
|
|
83
|
+
}
|
|
84
|
+
return this._scriptName;
|
|
85
|
+
}
|
|
86
|
+
async getGrandparentInfo() {
|
|
87
|
+
if (this._scriptName !== null || this._scriptKey !== null) {
|
|
88
|
+
throw new Err_1.Err.ScriptUrlParserError("Script name or key already fetched");
|
|
89
|
+
}
|
|
90
|
+
const gqlUrl = this.urlCopy();
|
|
91
|
+
const scriptRootId = "530001___" + this.webDavId;
|
|
92
|
+
const parentQuery = (id) => `{"query":"query ObjectData($id: String!) {\\n parents(childId: $id) {\\n id\\n displayName\\n }\\n}","variables":{"id":"${id}"},"operationName":"ObjectData"}`;
|
|
93
|
+
try {
|
|
94
|
+
gqlUrl.pathname = "gql";
|
|
95
|
+
const res1 = await this.sessionManager.csrfFetch(gqlUrl, {
|
|
96
|
+
method: constants_1.Http.Methods.POST,
|
|
97
|
+
headers: { [constants_1.Http.Headers.CONTENT_TYPE]: constants_1.MimeTypes.APPLICATION_JSON },
|
|
98
|
+
body: parentQuery(scriptRootId),
|
|
99
|
+
});
|
|
100
|
+
if (!res1.ok) {
|
|
101
|
+
const errorText = await res1.text();
|
|
102
|
+
throw new Err_1.Err.ScriptUrlParserError(`GraphQL query failed for scriptRoot ${scriptRootId}: HTTP ${res1.status} ${res1.statusText}. Response: ${errorText.substring(0, 500)}`);
|
|
103
|
+
}
|
|
104
|
+
const responseText1 = await res1.text();
|
|
105
|
+
let json1;
|
|
106
|
+
try {
|
|
107
|
+
json1 = JSON.parse(responseText1);
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
throw new Err_1.Err.ScriptUrlParserError(`Failed to parse GraphQL response for ${scriptRootId}. Response was: ${responseText1.substring(0, 500)}`);
|
|
111
|
+
}
|
|
112
|
+
const parents = json1?.data?.parents;
|
|
113
|
+
if (!parents || parents.length !== 1) {
|
|
114
|
+
throw new Err_1.Err.ScriptUrlParserError(`Expected exactly 1 parent for scriptRoot ${scriptRootId}, got ${parents?.length || 0}. Full response: ${JSON.stringify(json1)}`);
|
|
115
|
+
}
|
|
116
|
+
const mediaLibraryId = parents[0].id;
|
|
117
|
+
const res2 = await this.sessionManager.csrfFetch(gqlUrl, {
|
|
118
|
+
method: constants_1.Http.Methods.POST,
|
|
119
|
+
headers: { [constants_1.Http.Headers.CONTENT_TYPE]: constants_1.MimeTypes.APPLICATION_JSON },
|
|
120
|
+
body: parentQuery(mediaLibraryId),
|
|
121
|
+
});
|
|
122
|
+
if (!res2.ok) {
|
|
123
|
+
const errorText = await res2.text();
|
|
124
|
+
throw new Err_1.Err.ScriptUrlParserError(`GraphQL query failed for mediaLibrary ${mediaLibraryId}: HTTP ${res2.status} ${res2.statusText}. Response: ${errorText.substring(0, 500)}`);
|
|
125
|
+
}
|
|
126
|
+
const responseText2 = await res2.text();
|
|
127
|
+
let json2;
|
|
128
|
+
try {
|
|
129
|
+
json2 = JSON.parse(responseText2);
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
throw new Err_1.Err.ScriptUrlParserError(`Failed to parse GraphQL response for mediaLibrary ${mediaLibraryId}. Response was: ${responseText2.substring(0, 500)}`);
|
|
133
|
+
}
|
|
134
|
+
const parents2 = json2?.data?.parents;
|
|
135
|
+
if (!parents2 || parents2.length !== 1) {
|
|
136
|
+
throw new Err_1.Err.ScriptUrlParserError(`Expected exactly 1 parent for mediaLibrary ${mediaLibraryId}, got ${parents2?.length || 0}. Full response: ${JSON.stringify(json2)}`);
|
|
137
|
+
}
|
|
138
|
+
const parts = parents2[0].id.split("___");
|
|
139
|
+
if (parts.length !== 2) {
|
|
140
|
+
throw new Err_1.Err.ScriptUrlParserError(`Script ID has unexpected format. Expected "classid___seqnum", got: ${parents2[0].id}`);
|
|
141
|
+
}
|
|
142
|
+
const displayName = parents2[0].displayName;
|
|
143
|
+
if (!displayName) {
|
|
144
|
+
throw new Err_1.Err.ScriptUrlParserError(`Script displayName is null or empty. Script ID: ${parents2[0].id}.`);
|
|
145
|
+
}
|
|
146
|
+
this._scriptName = displayName.replaceAll(/\/|\\/g, "_");
|
|
147
|
+
this._scriptKey = new ScriptKey_1.ScriptKey(parts[0], parts[1]);
|
|
148
|
+
}
|
|
149
|
+
catch (e) {
|
|
150
|
+
if (e instanceof Err_1.Err.ScriptUrlParserError) {
|
|
151
|
+
throw e;
|
|
152
|
+
}
|
|
153
|
+
throw new Err_1.Err.ScriptUrlParserError(`Unexpected error fetching script info via GraphQL from ${gqlUrl.href}: ${e.message}`);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
urlCopy() {
|
|
157
|
+
return new URL(this.url);
|
|
158
|
+
}
|
|
159
|
+
orgWorker() {
|
|
160
|
+
if (this._orgWorker === null) {
|
|
161
|
+
// Use raw globalThis.fetch for OrgWorker (no auth needed)
|
|
162
|
+
this._orgWorker = new OrgWorker_1.OrgWorker(this.url, globalThis.fetch.bind(globalThis));
|
|
163
|
+
}
|
|
164
|
+
return this._orgWorker;
|
|
165
|
+
}
|
|
166
|
+
async getScript() {
|
|
167
|
+
const url = this.urlCopy();
|
|
168
|
+
url.pathname = `${constants_1.ApiEndpoints.FILES}${this.webDavId}/`;
|
|
169
|
+
this.logger.info("Fetching script from URL:", url.href);
|
|
170
|
+
const scriptName = await this.getScriptName();
|
|
171
|
+
return this.getSubScript(url, scriptName);
|
|
172
|
+
}
|
|
173
|
+
async getSubScript(url, scriptName, repository = []) {
|
|
174
|
+
try {
|
|
175
|
+
const response = await this.sessionManager.fetch(url, {
|
|
176
|
+
headers: {
|
|
177
|
+
[constants_1.Http.Headers.ACCEPT]: constants_1.Http.Headers.ACCEPT_ALL,
|
|
178
|
+
[constants_1.Http.Headers.ACCEPT_LANGUAGE]: constants_1.Http.Headers.ACCEPT_LANGUAGE_EN_US,
|
|
179
|
+
[constants_1.Http.Headers.CACHE_CONTROL]: constants_1.Http.Headers.NO_CACHE,
|
|
180
|
+
[constants_1.Http.Headers.PRAGMA]: constants_1.Http.Headers.NO_CACHE,
|
|
181
|
+
[constants_1.Http.Headers.UPGRADE_INSECURE_REQUESTS]: "1",
|
|
182
|
+
},
|
|
183
|
+
method: constants_1.Http.Methods.PROPFIND,
|
|
184
|
+
});
|
|
185
|
+
if (!response.ok) {
|
|
186
|
+
this.prompt.error(`Failed to fetch sub-script at ${url.href}: ${response.status}. Try again in a moment.`);
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
const parser = new fast_xml_parser_1.XMLParser();
|
|
190
|
+
const responseObj = parser.parse(await response.text());
|
|
191
|
+
const dResponses = responseObj[constants_1.WebDAVElements.MULTISTATUS][constants_1.WebDAVElements.RESPONSE];
|
|
192
|
+
if (!dResponses.filter) {
|
|
193
|
+
return repository;
|
|
194
|
+
}
|
|
195
|
+
const firstLayer = await Promise.all(dResponses
|
|
196
|
+
.map((terminal) => {
|
|
197
|
+
// Parse as a URL parser — only need URL fields, not the full session-aware parser
|
|
198
|
+
const href = terminal[constants_1.WebDAVElements.HREF];
|
|
199
|
+
const parsedUrl = new URL(href, this.url.origin);
|
|
200
|
+
const pathRegex = /^\/(files|public)\/(\d+)(?:\/(.*))?$/;
|
|
201
|
+
const match = parsedUrl.pathname.match(pathRegex);
|
|
202
|
+
return {
|
|
203
|
+
href: parsedUrl.href,
|
|
204
|
+
trailing: match?.[3],
|
|
205
|
+
trailingFolder: match?.[3]?.includes("/") ? match[3].split("/")[0] : undefined,
|
|
206
|
+
};
|
|
207
|
+
})
|
|
208
|
+
.filter((entry) => {
|
|
209
|
+
if (entry.trailing === undefined) {
|
|
210
|
+
return false;
|
|
211
|
+
}
|
|
212
|
+
if (entry.trailingFolder === constants_1.FolderNames.SNAPSHOT) {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
return true;
|
|
216
|
+
})
|
|
217
|
+
.map(async (entry) => {
|
|
218
|
+
const newPath = `${scriptName}/${entry.trailing}`;
|
|
219
|
+
return { upstairsPath: entry.href, downstairsPath: newPath, trailing: entry.trailing };
|
|
220
|
+
}));
|
|
221
|
+
for (const rawFile of firstLayer) {
|
|
222
|
+
if (repository.find((rf) => rf.upstairsPath === rawFile.upstairsPath)) {
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
if (rawFile.trailing?.endsWith("/")) {
|
|
226
|
+
const subUrl = new URL(rawFile.upstairsPath);
|
|
227
|
+
if (subUrl.toString() === url.toString()) {
|
|
228
|
+
repository.push(rawFile);
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
await this.getSubScript(subUrl, scriptName, repository);
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
repository.push(rawFile);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return repository;
|
|
238
|
+
}
|
|
239
|
+
catch (e) {
|
|
240
|
+
this.logger.error("Error getting URL", url.toString());
|
|
241
|
+
throw e;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
toString() {
|
|
245
|
+
return JSON.stringify({
|
|
246
|
+
rawUrlString: this.rawUrlString,
|
|
247
|
+
url: this.url.href,
|
|
248
|
+
filesOrPublic: this.filesOrPublic,
|
|
249
|
+
webDavId: this.webDavId,
|
|
250
|
+
trailing: this.trailing,
|
|
251
|
+
trailingFolder: this.trailingFolder,
|
|
252
|
+
scriptName: this._scriptName,
|
|
253
|
+
scriptKey: this._scriptKey,
|
|
254
|
+
}, null, 2);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
exports.ScriptUrlParser = ScriptUrlParser;
|
|
258
|
+
//# sourceMappingURL=ScriptUrlParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptUrlParser.js","sourceRoot":"","sources":["../../src/data/ScriptUrlParser.ts"],"names":[],"mappings":";;;AAAA,qDAA4C;AAE5C,4CAA0F;AAC1F,gCAA6B;AAC7B,2CAAwC;AAGxC,2CAAwC;AAKxC;;;;GAIG;AACH,MAAa,eAAe;IAcR;IACC;IACA;IACA;IAhBnB,MAAM,CAAU,SAAS,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU,CAAC;IAEzD,GAAG,CAAM;IACT,aAAa,CAA6C;IAC1D,QAAQ,CAAS;IACjB,QAAQ,CAAU;IAClB,cAAc,CAAU;IAEhB,WAAW,GAAkB,IAAI,CAAC;IAClC,UAAU,GAAqB,IAAI,CAAC;IACpC,UAAU,GAAqB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|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScriptUrlParser = exports.OrgWorker = exports.IdUtility = exports.GlobMatcher = exports.DownstairsPathParser = void 0;
|
|
4
|
+
var DownstairsPathParser_1 = require("./DownstairsPathParser");
|
|
5
|
+
Object.defineProperty(exports, "DownstairsPathParser", { enumerable: true, get: function () { return DownstairsPathParser_1.DownstairsPathParser; } });
|
|
6
|
+
var GlobMatcher_1 = require("./GlobMatcher");
|
|
7
|
+
Object.defineProperty(exports, "GlobMatcher", { enumerable: true, get: function () { return GlobMatcher_1.GlobMatcher; } });
|
|
8
|
+
var IdUtility_1 = require("./IdUtility");
|
|
9
|
+
Object.defineProperty(exports, "IdUtility", { enumerable: true, get: function () { return IdUtility_1.IdUtility; } });
|
|
10
|
+
var OrgWorker_1 = require("./OrgWorker");
|
|
11
|
+
Object.defineProperty(exports, "OrgWorker", { enumerable: true, get: function () { return OrgWorker_1.OrgWorker; } });
|
|
12
|
+
var ScriptUrlParser_1 = require("./ScriptUrlParser");
|
|
13
|
+
Object.defineProperty(exports, "ScriptUrlParser", { enumerable: true, get: function () { return ScriptUrlParser_1.ScriptUrlParser; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":";;;AAAA,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { B6PCore } from "./B6PCore";
|
|
2
|
+
export type { AuditResult, ReportResult } from "./B6PCore";
|
|
3
|
+
export { B6PUri } from "./B6PUri";
|
|
4
|
+
export { Err } from "./Err";
|
|
5
|
+
export { executePush } from "./push";
|
|
6
|
+
export type { B6PProviders, FileStat, IFileSystem, ILogger, IPersistence, IProgress, IPrompt, ProgressTask, } from "./providers";
|
|
7
|
+
export { DownstairsPathParser } from "./data/DownstairsPathParser";
|
|
8
|
+
export { GlobMatcher } from "./data/GlobMatcher";
|
|
9
|
+
export { IdUtility } from "./data/IdUtility";
|
|
10
|
+
export { OrgWorker } from "./data/OrgWorker";
|
|
11
|
+
export { ScriptKey } from "./data/ScriptKey";
|
|
12
|
+
export { ScriptUrlParser } from "./data/ScriptUrlParser";
|
|
13
|
+
export { BasicAuthProvider } from "./auth/BasicAuthProvider";
|
|
14
|
+
export { SessionManager } from "./session/SessionManager";
|
|
15
|
+
export { HttpClient } from "./network/HttpClient";
|
|
16
|
+
export { ResponseCodes } from "./network/StatusCodes";
|
|
17
|
+
export { ScriptFactory } from "./script/ScriptFactory";
|
|
18
|
+
export { ScriptNode } from "./script/ScriptNode";
|
|
19
|
+
export { ScriptRoot } from "./script/ScriptRoot";
|
|
20
|
+
export { ScriptFile } from "./script/ScriptFile";
|
|
21
|
+
export type { ScriptFolder } from "./script/ScriptFolder";
|
|
22
|
+
export type { ScriptContext } from "./script/ScriptContext";
|
|
23
|
+
export { ApiEndpoints, AuthTypes, BlueHQ, CryptoAlgorithms, ExtensionConfig, FileExtensions, FolderNames, GitHubUrls, Http, MimeTypes, Numerical, OutputChannels, SettingsKeys, SpecialFiles, WebDAVElements, } from "./constants";
|
|
24
|
+
export { PseudoMap, TypedMap, Persistable, registerSerializable, revive, PrivateKeys, PublicKeys, PersistablePseudoMap, PublicPersistanceMap, PrivateGenericMap, TypedPersistable, PrivateTypedPersistable, } from "./persistence";
|
|
25
|
+
export type { SerializableClass, Serializable } from "./persistence";
|
|
26
|
+
export { SharedFilePersistence } from "./persistence/SharedFilePersistence";
|
|
27
|
+
export { OrgCache } from "./cache/OrgCache";
|
|
28
|
+
export { ScriptMetaDataStore } from "./cache/ScriptMetaDataStore";
|
|
29
|
+
export { UpdateService } from "./update/UpdateService";
|
|
30
|
+
export type { UpdateInfo, GithubRelease, ClientInfo, UpdateServiceConfig } from "./update/types";
|
|
31
|
+
export { MockFileSystem } from "./testing/MockFileSystem";
|
|
32
|
+
export type { ReadOnlyMap, JsonPrimitive, JsonArray, JsonObject, JsonValue, PrimitiveNestedObject, XMLResponse, SessionData, BasicAuthParams, MetaDataDotJsonContent, Settings, TsConfig, BlueHqAnyUrlResp, GqlParentNameResp, ScriptMetaData, SourceOps, OrgCacheElement, ScriptGqlResp, ScriptGQLGoodResp, ScriptGQLBadResp, ConfigJsonContent, } from "./types";
|