@topconsultnpm/sdk-ts 6.17.0-dev.1.1

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.
Files changed (33) hide show
  1. package/dist/lib/Engine.js +4782 -0
  2. package/dist/lib/TopMediaServer.js +44 -0
  3. package/dist/lib/TopMediaServiceClientEx.js +221 -0
  4. package/dist/lib/TopMediaSession.js +224 -0
  5. package/dist/lib/helper/ExtMethods.js +16 -0
  6. package/dist/lib/helper/LocalStorageService.js +74 -0
  7. package/dist/lib/helper/PlatformObjectValidator.js +310 -0
  8. package/dist/lib/helper/SDK_CacheServices.js +961 -0
  9. package/dist/lib/helper/SDK_Globals.js +46 -0
  10. package/dist/lib/helper/SDK_Localizator.js +1192 -0
  11. package/dist/lib/helper/StandardHelper.js +6 -0
  12. package/dist/lib/helper/StringHelper.js +6 -0
  13. package/dist/lib/helper/index.js +7 -0
  14. package/dist/lib/helper/utils.js +12 -0
  15. package/dist/lib/index.js +6 -0
  16. package/dist/lib/openAPIs/TopMediaServiceClient.js +1 -0
  17. package/dist/types/Engine.d.ts +1925 -0
  18. package/dist/types/TopMediaServer.d.ts +25 -0
  19. package/dist/types/TopMediaServiceClientEx.d.ts +20 -0
  20. package/dist/types/TopMediaSession.d.ts +129 -0
  21. package/dist/types/helper/ExtMethods.d.ts +4 -0
  22. package/dist/types/helper/LocalStorageService.d.ts +10 -0
  23. package/dist/types/helper/PlatformObjectValidator.d.ts +43 -0
  24. package/dist/types/helper/SDK_CacheServices.d.ts +123 -0
  25. package/dist/types/helper/SDK_Globals.d.ts +36 -0
  26. package/dist/types/helper/SDK_Localizator.d.ts +132 -0
  27. package/dist/types/helper/StandardHelper.d.ts +4 -0
  28. package/dist/types/helper/StringHelper.d.ts +4 -0
  29. package/dist/types/helper/index.d.ts +7 -0
  30. package/dist/types/helper/utils.d.ts +12 -0
  31. package/dist/types/index.d.ts +6 -0
  32. package/dist/types/openAPIs/TopMediaServiceClient.d.ts +5689 -0
  33. package/package.json +31 -0
@@ -0,0 +1,46 @@
1
+ import { DBBrands } from "../openAPIs/TopMediaServiceClient";
2
+ export class SDK_Globals {
3
+ static get tmSession() {
4
+ if (!this._tmSession)
5
+ throw new Error('The ITopMediaSession is invalid');
6
+ return this._tmSession;
7
+ }
8
+ static set tmSession(theTmSession) {
9
+ this._tmSession = theTmSession;
10
+ if (theTmSession) {
11
+ let sd = theTmSession.SessionDescr;
12
+ if ((sd === null || sd === void 0 ? void 0 : sd.version) != undefined) {
13
+ let vs = sd.version.split('.');
14
+ if (vs.length == 4)
15
+ this._websdkVersion = `${vs[0]}.${vs[1]}.${vs[2]}`;
16
+ else
17
+ this._websdkVersion = sd.version;
18
+ }
19
+ if (sd === null || sd === void 0 ? void 0 : sd.archiveID)
20
+ theTmSession.NewArchiveEngine().RetrieveByStringAsync(sd.archiveID).then((ad) => { var _a; return this._dbBrand = (_a = ad === null || ad === void 0 ? void 0 : ad.dbBrand) !== null && _a !== void 0 ? _a : DBBrands.None; });
21
+ }
22
+ else
23
+ this._dbBrand = DBBrands.None;
24
+ }
25
+ static get appModule() { return this._appModule; }
26
+ static set appModule(theAppModule) { this._appModule = theAppModule; }
27
+ static get appVersion() { return this._appVersion; }
28
+ static set appVersion(theAppVersion) { this._appVersion = theAppVersion; }
29
+ static get dbBrand() { return this._dbBrand; }
30
+ static get sdkVersion() { return this._sdkVersion; }
31
+ static set sdkVersion(theSdkVersion) { this._sdkVersion = theSdkVersion; }
32
+ static get sdkuiVersion() { return this._sdkuiVersion; }
33
+ static set sdkuiVersion(theSdkuiVersion) { this._sdkuiVersion = theSdkuiVersion; }
34
+ static get sdkName() { return this._sdkName; }
35
+ static set sdkName(theSdkName) { this._sdkName = theSdkName; }
36
+ static get sdkuiName() { return this._sdkuiName; }
37
+ static set sdkuiName(theSdkuiName) { this._sdkuiName = theSdkuiName; }
38
+ static get websdkVersion() { return this._websdkVersion; }
39
+ static get useLocalizedName() { return this._useLocalizedName; }
40
+ static set useLocalizedName(theUseLocalizedName) { this._useLocalizedName = theUseLocalizedName; }
41
+ static get license() { return this._license; }
42
+ static set license(theLicense) { this._license = theLicense; }
43
+ }
44
+ SDK_Globals._useLocalizedName = true;
45
+ SDK_Globals._dbBrand = DBBrands.None;
46
+ SDK_Globals.currentWorkflowApproveData = [];