terminusdb 12.0.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.
Files changed (86) hide show
  1. package/Contributing.md +36 -0
  2. package/LICENSE +201 -0
  3. package/README.md +175 -0
  4. package/RELEASE_NOTES.md +462 -0
  5. package/dist/index.html +22 -0
  6. package/dist/terminusdb-client.min.js +3 -0
  7. package/dist/terminusdb-client.min.js.LICENSE.txt +188 -0
  8. package/dist/terminusdb-client.min.js.map +1 -0
  9. package/dist/typescript/index.d.ts +14 -0
  10. package/dist/typescript/lib/accessControl.d.ts +554 -0
  11. package/dist/typescript/lib/axiosInstance.d.ts +2 -0
  12. package/dist/typescript/lib/connectionConfig.d.ts +381 -0
  13. package/dist/typescript/lib/const.d.ts +54 -0
  14. package/dist/typescript/lib/dispatchRequest.d.ts +17 -0
  15. package/dist/typescript/lib/errorMessage.d.ts +25 -0
  16. package/dist/typescript/lib/query/woqlBuilder.d.ts +75 -0
  17. package/dist/typescript/lib/query/woqlCore.d.ts +341 -0
  18. package/dist/typescript/lib/query/woqlDoc.d.ts +63 -0
  19. package/dist/typescript/lib/query/woqlLibrary.d.ts +718 -0
  20. package/dist/typescript/lib/query/woqlPrinter.d.ts +71 -0
  21. package/dist/typescript/lib/query/woqlQuery.d.ts +833 -0
  22. package/dist/typescript/lib/typedef.d.ts +624 -0
  23. package/dist/typescript/lib/utils.d.ts +199 -0
  24. package/dist/typescript/lib/valueHash.d.ts +146 -0
  25. package/dist/typescript/lib/viewer/chartConfig.d.ts +62 -0
  26. package/dist/typescript/lib/viewer/chooserConfig.d.ts +38 -0
  27. package/dist/typescript/lib/viewer/documentFrame.d.ts +44 -0
  28. package/dist/typescript/lib/viewer/frameConfig.d.ts +74 -0
  29. package/dist/typescript/lib/viewer/frameRule.d.ts +145 -0
  30. package/dist/typescript/lib/viewer/graphConfig.d.ts +73 -0
  31. package/dist/typescript/lib/viewer/objectFrame.d.ts +212 -0
  32. package/dist/typescript/lib/viewer/streamConfig.d.ts +23 -0
  33. package/dist/typescript/lib/viewer/tableConfig.d.ts +66 -0
  34. package/dist/typescript/lib/viewer/terminusRule.d.ts +75 -0
  35. package/dist/typescript/lib/viewer/viewConfig.d.ts +47 -0
  36. package/dist/typescript/lib/viewer/woqlChart.d.ts +1 -0
  37. package/dist/typescript/lib/viewer/woqlChooser.d.ts +56 -0
  38. package/dist/typescript/lib/viewer/woqlGraph.d.ts +26 -0
  39. package/dist/typescript/lib/viewer/woqlPaging.d.ts +1 -0
  40. package/dist/typescript/lib/viewer/woqlResult.d.ts +128 -0
  41. package/dist/typescript/lib/viewer/woqlRule.d.ts +96 -0
  42. package/dist/typescript/lib/viewer/woqlStream.d.ts +31 -0
  43. package/dist/typescript/lib/viewer/woqlTable.d.ts +102 -0
  44. package/dist/typescript/lib/viewer/woqlView.d.ts +49 -0
  45. package/dist/typescript/lib/woql.d.ts +1267 -0
  46. package/dist/typescript/lib/woqlClient.d.ts +1216 -0
  47. package/index.js +28 -0
  48. package/lib/.eslintrc +1 -0
  49. package/lib/accessControl.js +988 -0
  50. package/lib/axiosInstance.js +5 -0
  51. package/lib/connectionConfig.js +765 -0
  52. package/lib/const.js +59 -0
  53. package/lib/dispatchRequest.js +236 -0
  54. package/lib/errorMessage.js +110 -0
  55. package/lib/query/woqlBuilder.js +234 -0
  56. package/lib/query/woqlCore.js +934 -0
  57. package/lib/query/woqlDoc.js +177 -0
  58. package/lib/query/woqlLibrary.js +1015 -0
  59. package/lib/query/woqlPrinter.js +476 -0
  60. package/lib/query/woqlQuery.js +1865 -0
  61. package/lib/typedef.js +248 -0
  62. package/lib/utils.js +817 -0
  63. package/lib/valueHash.js_old +581 -0
  64. package/lib/viewer/chartConfig.js +411 -0
  65. package/lib/viewer/chooserConfig.js +234 -0
  66. package/lib/viewer/documentFrame.js +206 -0
  67. package/lib/viewer/frameConfig.js +469 -0
  68. package/lib/viewer/frameRule.js +519 -0
  69. package/lib/viewer/graphConfig.js +345 -0
  70. package/lib/viewer/objectFrame.js +1550 -0
  71. package/lib/viewer/streamConfig.js +82 -0
  72. package/lib/viewer/tableConfig.js +310 -0
  73. package/lib/viewer/terminusRule.js +196 -0
  74. package/lib/viewer/viewConfig.js +219 -0
  75. package/lib/viewer/woqlChart.js +17 -0
  76. package/lib/viewer/woqlChooser.js +171 -0
  77. package/lib/viewer/woqlGraph.js +295 -0
  78. package/lib/viewer/woqlPaging.js +148 -0
  79. package/lib/viewer/woqlResult.js +258 -0
  80. package/lib/viewer/woqlRule.js +312 -0
  81. package/lib/viewer/woqlStream.js +27 -0
  82. package/lib/viewer/woqlTable.js +332 -0
  83. package/lib/viewer/woqlView.js +107 -0
  84. package/lib/woql.js +1693 -0
  85. package/lib/woqlClient.js +2091 -0
  86. package/package.json +110 -0
@@ -0,0 +1,71 @@
1
+ export = WOQLPrinter;
2
+ /**
3
+ * Class responsible for converting a JSON WOQL into a WOQL.js / WOQL.py string
4
+ */
5
+ declare function WOQLPrinter(vocab: any, language: any): void;
6
+ declare class WOQLPrinter {
7
+ /**
8
+ * Class responsible for converting a JSON WOQL into a WOQL.js / WOQL.py string
9
+ */
10
+ constructor(vocab: any, language: any);
11
+ vocab: any;
12
+ language: any;
13
+ indent_spaces: number;
14
+ boxed_predicates: string[];
15
+ subject_cleaned_predicates: string[];
16
+ schema_cleaned_predicates: string[];
17
+ list_operators: string[];
18
+ query_list_operators: string[];
19
+ operator_maps: {
20
+ IDGenerator: string;
21
+ IsA: string;
22
+ PostResource: string;
23
+ QueryResource: string;
24
+ AsVars: string;
25
+ NamedAsVars: string;
26
+ IndexedAsVars: string;
27
+ DeletedTriple: string;
28
+ };
29
+ shortcuts: {
30
+ optional: string;
31
+ substring: string;
32
+ regexp: string;
33
+ subsumption: string;
34
+ equals: string;
35
+ concatenate: string;
36
+ };
37
+ pythonic: {
38
+ and: string;
39
+ or: string;
40
+ as: string;
41
+ with: string;
42
+ from: string;
43
+ not: string;
44
+ };
45
+ show_context: boolean;
46
+ printJSON(json: any, level: any, fluent: any, newline: any): any;
47
+ getQueryResourceStr(json: any, level: any, fluent: any, newline: any): string;
48
+ getArgumentOrder(operator: any, json: any): string[];
49
+ argumentTakesNewline(operator: any): boolean;
50
+ argumentRequiresArray(predicate: any, entries: any): boolean;
51
+ printArgument(operator: any, predicate: any, arg: any, level: any, fluent: any): any;
52
+ decompileDocument(args: any): string;
53
+ decompileDictionary(jsonDoc: any, args: any): void;
54
+ decompileFieldValuePair(jsonDoc: any, fieldValue: any): void;
55
+ decompileVariables(args: any, checkIsArray?: boolean): string;
56
+ decompileRegexPattern(json: any): any;
57
+ pvar(json: any): any;
58
+ /**
59
+ * Gets the starting characters for a WOQL query - varies depending on how the query
60
+ * is invoked and how indented it is
61
+ */
62
+ getWOQLPrelude(operator: any, fluent: any, inline: any): any;
63
+ uncleanArgument(arg: any, operator: any, predicate: any): string;
64
+ isListOperator(operator: any): boolean;
65
+ isQueryListOperator(operator: any): boolean;
66
+ getFunctionForOperator(operator: any, json: any): any;
67
+ getBoxedPredicate(operator: any, json: any): string | false;
68
+ unboxJSON(operator: any, json: any): any;
69
+ decompileAsVars(asvs: any, level: any): string;
70
+ decompilePathPattern(pstruct: any): any;
71
+ }