@livinglogic/livingapi 1.2.0 → 1.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livinglogic/livingapi",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Javascript version of the LivingAPI classes of LivingApps",
5
5
  "repository": {
6
6
  "type": "git",
package/src/livingapi.js CHANGED
@@ -496,10 +496,45 @@ export class Globals extends Base
496
496
  if (console && console.error)
497
497
  console.error(this._make_log_message(message))
498
498
  }
499
+
500
+ my_apps_url()
501
+ {
502
+ return "/apps.htm";
503
+ }
504
+
505
+ my_tasks_url()
506
+ {
507
+ return "/xist4c/web/aufgaben_id_393_.htm";
508
+ }
509
+
510
+ catalog_url()
511
+ {
512
+ return "/katalog/home.htm";
513
+ }
514
+
515
+ chats_url()
516
+ {
517
+ return "/chats.htm";
518
+ }
519
+
520
+ profile_url()
521
+ {
522
+ return "/profil/index.htm";
523
+ }
524
+
525
+ account_url()
526
+ {
527
+ return "/account.htm";
528
+ }
529
+
530
+ logout_url()
531
+ {
532
+ return "/login.htm?logout=standardCug";
533
+ }
499
534
  };
500
535
 
501
536
  Globals.prototype._ul4onattrs = ["version", "platform", "user", "maxdbactions", "maxtemplateruntime", "lang", "datasources", "hostname", "app", "record", "mode", "view_template_id", "email_template_id", "view_id"];
502
- Globals.prototype._ul4attrs = new Set(["version", "hostname", "platform", "user", "lang", "datasources", "app", "record", "maxdbactions", "maxtemplateruntime", "flashmessages", "mode", "scaled_url", "dist", "current_geo", "log_debug", "log_info", "log_warning", "log_error"]);
537
+ Globals.prototype._ul4attrs = new Set(["version", "hostname", "platform", "user", "lang", "datasources", "app", "record", "maxdbactions", "maxtemplateruntime", "flashmessages", "mode", "scaled_url", "dist", "current_geo", "log_debug", "log_info", "log_warning", "log_error", "my_apps_url", "my_tasks_url", "catalog_url", "chats_url", "profile_url", "account_url", "logout_url"]);
503
538
  ul4.expose(Globals.prototype.log_debug, ["message", "*"]);
504
539
  ul4.expose(Globals.prototype.log_info, ["message", "*"]);
505
540
  ul4.expose(Globals.prototype.log_warning, ["message", "*"]);
@@ -600,6 +635,57 @@ export class App extends Base
600
635
  return url_with_params(url, params);
601
636
  }
602
637
 
638
+ home_url()
639
+ {
640
+ return "/apps/" + this.id + ".htm";
641
+ }
642
+
643
+ datamanagement_url()
644
+ {
645
+ return "/_id_36_.htm?uuid=" + this.id + "&dId=" + this.id + "&resetInfo=true&templateIdentifier=created_" + this.id;
646
+ }
647
+
648
+ import_url()
649
+ {
650
+ return "/import-export/"+ this.id + ".htm";
651
+ }
652
+
653
+ tasks_url()
654
+ {
655
+ return "/_id_1073_.htm?uuid=" + this.id + "&dId=" + this.id + "&p_tpl_uuid=" + this.id + "&resetInfo=true&templateIdentifier=created_task_" + this.id;
656
+ }
657
+
658
+ // formbuilder_url()
659
+ // {
660
+ // let lang = this.globals.lang
661
+ // if (!lang)
662
+ // lang = "de"
663
+ // let tpl_id = "???"
664
+ // let cl_id = "???"
665
+ // return "/formbuilder/index.html?lang=" + lang + "&searchDescription=" + tpl_id + "&p_tpl_uuid=" + this.id + "&p_cl_id=" + cl_id;
666
+ // }
667
+
668
+ // tasks_config_url()
669
+ // {
670
+ // let tpl_id = "???"
671
+ // return "/konfiguration/aufgaben.htm?com.livinglogic.cms.apps.search.model.SearchState.search_submit=true&searchDescription=" + tpl_id + "&dId=" + this.id;
672
+ // }
673
+
674
+ datamanagement_config_url()
675
+ {
676
+ return "/datenmanagement-konfigurieren/" + this.id + ".htm";
677
+ }
678
+
679
+ permissions_url()
680
+ {
681
+ return "/_id_833_.htm?uuid=" + this.id + "&dId=" + this.id + "&resetInfo=true";
682
+ }
683
+
684
+ datamanageview_url(identifier)
685
+ {
686
+ return "/_id_36_.htm?uuid=" + this.id + "&dId=" + this.id + "&resetInfo=true&templateIdentifier=created_" + this.id + "_datamanage_master_" + identifier;
687
+ }
688
+
603
689
  get layout_controls()
604
690
  {
605
691
  if (this.active_view === null)
@@ -704,7 +790,7 @@ export class App extends Base
704
790
 
705
791
 
706
792
  App.prototype._ul4onattrs = ["globals", "name", "description", "lang", "startlink", "image", "createdby", "controls", "records", "recordcount", "installation", "categories", "params", "views", "datamanagement_identifier", "basetable", "primarykey", "insertprocedure", "updateprocedure", "deleteprocedure", "templates", "createdat", "updatedat", "updatedby", "superid", "favorite", "_active_view", "datasource", "menus", "panels"];
707
- App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "startlink", "image", "createdat", "createdby", "updatedat", "updatedby", "controls", "layout_controls", "records", "recordcount", "installation", "categories", "params", "views", "menus", "panels", "datasource", "datamanagement_identifier", "insert", "favorite", "_active_view", "template_url", "new_embedded_url", "new_standalone_url"]);
793
+ App.prototype._ul4attrs = new Set(["id", "globals", "name", "description", "lang", "startlink", "image", "createdat", "createdby", "updatedat", "updatedby", "controls", "layout_controls", "records", "recordcount", "installation", "categories", "params", "views", "menus", "panels", "datasource", "datamanagement_identifier", "insert", "favorite", "_active_view", "template_url", "new_embedded_url", "new_standalone_url", "home_url", "datamanagement_url", "import_url", "tasks_url", /*"formbuilder_url", "tasks_config_url",*/ "datamanagement_config_url", "permissions_url", "datamanageview_url"]);
708
794
  ul4.expose(App.prototype[ul4.symbols.call], ["values", "**"], {"needsobject": true});
709
795
  ul4.expose(App.prototype.insert, ["values", "**"], {"needsobject": true});
710
796
  ul4.expose(App.prototype.template_url, ["identifier", "p", "record", "p=", null, "params", "**"]);
@@ -5230,12 +5316,12 @@ export class File extends Base
5230
5316
 
5231
5317
  [ul4.symbols.repr]()
5232
5318
  {
5233
- return "<File id=" + ul4._repr(this.id) + " url=" + ul4._repr(this.url) + " filename=" + ul4._repr(this.filename) + ">";
5319
+ return "<File url=" + ul4._repr(this.url) + " filename=" + ul4._repr(this.filename) + ">";
5234
5320
  }
5235
5321
 
5236
5322
  get url()
5237
5323
  {
5238
- return "/gateway/files/" + this.id;
5324
+ return "/gateway/files/" + this.contextid + "/" + this.id;
5239
5325
  }
5240
5326
 
5241
5327
  get archive_url()
@@ -5246,8 +5332,8 @@ export class File extends Base
5246
5332
  }
5247
5333
  };
5248
5334
 
5249
- File.prototype._ul4onattrs = ["filename", "mimetype", "width", "height", "internalid", "createdat", "size", "duration", "geo", "storagefilename", "archive"];
5250
- File.prototype._ul4attrs = new Set(["id", "url", "archive_url", "filename", "mimetype", "width", "height", "size", "duration", "geo", "archive", "createdat"]);
5335
+ File.prototype._ul4onattrs = ["filename", "mimetype", "width", "height", "internal_id", "createdat", "size", "duration", "geo", "storagefilename", "archive", "context_id"];
5336
+ File.prototype._ul4attrs = new Set(["id", "internal_id", "url", "archive_url", "filename", "mimetype", "width", "height", "size", "duration", "geo", "archive", "createdat", "context_id"]);
5251
5337
 
5252
5338
 
5253
5339
  class GeoType extends ul4.Type