mftsccs-node 0.2.4 → 0.2.6

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 (121) hide show
  1. package/dist/bundle.js +2 -0
  2. package/dist/bundle.js.LICENSE.txt +1 -0
  3. package/dist/main.bundle.js +1 -1
  4. package/dist/serviceWorker.bundle.js +1 -1
  5. package/dist/types/Api/Create/CreateTheConceptApi.d.ts +1 -1
  6. package/dist/types/Api/DeleteConnectionApiBulk.d.ts +1 -0
  7. package/dist/types/Api/DeleteTheConcept.d.ts +1 -1
  8. package/dist/types/Api/DeleteTheConnection.d.ts +1 -1
  9. package/dist/types/Api/GetAllConnectionsOfComposition.d.ts +1 -1
  10. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +2 -2
  11. package/dist/types/Api/GetCharacterDataByCharacter.d.ts +1 -1
  12. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +2 -1
  13. package/dist/types/Api/GetConcept.d.ts +2 -6
  14. package/dist/types/Api/GetConceptBulk.d.ts +1 -8
  15. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +3 -1
  16. package/dist/types/Api/GetConnection.d.ts +1 -1
  17. package/dist/types/Api/GetConnectionBulk.d.ts +0 -5
  18. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +2 -1
  19. package/dist/types/Api/Images/GetImages.d.ts +1 -1
  20. package/dist/types/Api/Login.d.ts +1 -1
  21. package/dist/types/Api/MakeTheTypeConceptApi.d.ts +0 -7
  22. package/dist/types/Api/RecursiveSearch.d.ts +1 -6
  23. package/dist/types/Api/Search/FreeschemaQueryApi.d.ts +1 -1
  24. package/dist/types/Api/Search/SearchInternalApi.d.ts +0 -1
  25. package/dist/types/Api/SearchConcept/GetConceptByCharacterAndCategoryApi.d.ts +1 -1
  26. package/dist/types/Api/SearchConcept/GetTypeConceptByBulk.d.ts +2 -0
  27. package/dist/types/Api/Signin.d.ts +1 -1
  28. package/dist/types/Api/Signup.d.ts +1 -17
  29. package/dist/types/Constants/FormatConstants.d.ts +0 -1
  30. package/dist/types/DataStructures/BaseUrl.d.ts +1 -32
  31. package/dist/types/DataStructures/BinaryTree.d.ts +0 -1
  32. package/dist/types/DataStructures/BinaryTypeTree.d.ts +5 -7
  33. package/dist/types/DataStructures/Concept.d.ts +15 -11
  34. package/dist/types/DataStructures/ConceptData.d.ts +2 -7
  35. package/dist/types/DataStructures/Connection.d.ts +10 -6
  36. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.d.ts +1 -3
  37. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionNode.d.ts +0 -3
  38. package/dist/types/DataStructures/ConnectionBinaryTree/ConnectionTypeTree.d.ts +9 -16
  39. package/dist/types/DataStructures/ConnectionData.d.ts +3 -11
  40. package/dist/types/DataStructures/Local/LConcept.d.ts +3 -5
  41. package/dist/types/DataStructures/Local/LConnection.d.ts +3 -3
  42. package/dist/types/DataStructures/Local/LNode.d.ts +3 -5
  43. package/dist/types/DataStructures/Local/LocalBinaryCharacterTree.d.ts +2 -3
  44. package/dist/types/DataStructures/Local/LocalBinaryTree.d.ts +2 -3
  45. package/dist/types/DataStructures/Local/LocalBinaryTypeTree.d.ts +4 -4
  46. package/dist/types/DataStructures/Local/LocalConceptData.d.ts +9 -16
  47. package/dist/types/DataStructures/Local/LocalConnectionData.d.ts +9 -13
  48. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +10 -29
  49. package/dist/types/DataStructures/Node.d.ts +0 -1
  50. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +1 -2
  51. package/dist/types/DataStructures/Search/SearchStructure.d.ts +0 -1
  52. package/dist/types/DataStructures/SearchQuery.d.ts +0 -1
  53. package/dist/types/DataStructures/Security/TokenStorage.d.ts +1 -2
  54. package/dist/types/DataStructures/SyncData.d.ts +13 -1
  55. package/dist/types/DataStructures/Transaction/Transaction.d.ts +30 -0
  56. package/dist/types/DataStructures/User/UserBinaryTree.d.ts +7 -5
  57. package/dist/types/DataStructures/User/UserNode.d.ts +5 -3
  58. package/dist/types/Database/NoIndexDb.d.ts +1 -1
  59. package/dist/types/Database/indexdblocal.d.ts +0 -40
  60. package/dist/types/Database/indexeddb.d.ts +0 -50
  61. package/dist/types/Helpers/CheckIfExists.d.ts +3 -2
  62. package/dist/types/Helpers/RemoveFromArray.d.ts +2 -1
  63. package/dist/types/Services/AccessControl/AccessControlCacheService.d.ts +19 -0
  64. package/dist/types/Services/AccessControl/AccessControlService.d.ts +267 -0
  65. package/dist/types/Services/AccessControl/PermissionSet.d.ts +8 -0
  66. package/dist/types/Services/Common/ErrorPosting.d.ts +0 -8
  67. package/dist/types/Services/ConceptFinding/GetConceptByCharacterAndCategory.d.ts +1 -0
  68. package/dist/types/Services/Conversion/ConvertConcepts.d.ts +5 -3
  69. package/dist/types/Services/CreateBinaryTreeFromData.d.ts +1 -4
  70. package/dist/types/Services/CreateCharacterBinaryTreeFromData.d.ts +0 -4
  71. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +1 -1
  72. package/dist/types/Services/CreateTheComposition.d.ts +2 -1
  73. package/dist/types/Services/CreateTheConcept.d.ts +4 -3
  74. package/dist/types/Services/CreateTheConnection.d.ts +1 -9
  75. package/dist/types/Services/CreateTheConnectionGeneral.d.ts +4 -1
  76. package/dist/types/Services/Delete/DeleteConnectionByType.d.ts +13 -0
  77. package/dist/types/Services/Delete/GetAllConnectionByType.d.ts +16 -0
  78. package/dist/types/Services/DeleteConcept.d.ts +1 -2
  79. package/dist/types/Services/DeleteConnection.d.ts +2 -2
  80. package/dist/types/Services/FindConeceptsFromConnection.d.ts +0 -4
  81. package/dist/types/Services/FindConnectionsOfCompositionBulkInMemory.d.ts +2 -1
  82. package/dist/types/Services/GetComposition.d.ts +2 -139
  83. package/dist/types/Services/GetCompositionBulk.d.ts +5 -94
  84. package/dist/types/Services/GetCompositionList.d.ts +0 -5
  85. package/dist/types/Services/GetConceptByCharacter.d.ts +3 -2
  86. package/dist/types/Services/GetConnections.d.ts +2 -1
  87. package/dist/types/Services/GetDataFromIndexDb.d.ts +2 -2
  88. package/dist/types/Services/GetLink.d.ts +1 -1
  89. package/dist/types/Services/GetRelation.d.ts +5 -2
  90. package/dist/types/Services/GetTheConcept.d.ts +0 -7
  91. package/dist/types/Services/InitializeSystem.d.ts +1 -1
  92. package/dist/types/Services/Local/CreateDefaultLConcept.d.ts +2 -2
  93. package/dist/types/Services/Local/CreateLocalBinaryTreeFromData.d.ts +1 -29
  94. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +2 -14
  95. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +2 -22
  96. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +2 -16
  97. package/dist/types/Services/Local/GetCompositionListLocal.d.ts +0 -12
  98. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +1 -10
  99. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -2
  100. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +2 -18
  101. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +2 -16
  102. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +2 -3
  103. package/dist/types/Services/Logs/LogEvent.d.ts +1 -0
  104. package/dist/types/Services/MakeTheConcept.d.ts +1 -1
  105. package/dist/types/Services/MakeTheInstanceConcept.d.ts +3 -15
  106. package/dist/types/Services/MakeTheLocalConcept.d.ts +0 -0
  107. package/dist/types/Services/MakeTheName.d.ts +2 -0
  108. package/dist/types/Services/MakeTheTimestamp.d.ts +2 -1
  109. package/dist/types/Services/MakeTheTypeConcept.d.ts +3 -1
  110. package/dist/types/Services/Search/DataIdFormat.d.ts +18 -18
  111. package/dist/types/Services/Search/FormatData.d.ts +10 -20
  112. package/dist/types/Services/Search/SearchLinkInternal.d.ts +0 -1
  113. package/dist/types/Services/Search/SearchLinkMultiple.d.ts +1 -53
  114. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +5 -53
  115. package/dist/types/Services/Security/GetRequestHeader.d.ts +10 -3
  116. package/dist/types/Services/UpdateComposition.d.ts +1 -1
  117. package/dist/types/Services/User/UserTranslation.d.ts +6 -3
  118. package/dist/types/Services/auth/AuthService.d.ts +1 -0
  119. package/dist/types/WrapperFunctions/SchemaQueryObservable.d.ts +11 -9
  120. package/dist/types/app.d.ts +26 -128
  121. package/package.json +1 -1
@@ -1,51 +1,4 @@
1
- import { SearchStructure, SearchQuery } from '../../app';
2
- import { CountInfo } from '../../DataStructures/Count/CountInfo';
3
- /**
4
- * This function will help you search a concept by their type and also to query inside of it.
5
- * Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
6
- * Then the type should be set in searchQuery for the compositionName.
7
- * Inside the searchQuery array this you can set the full linker / listLinker in the searchQuery.
8
- * This will give the id of the structures.
9
- */
10
- export declare function SearchWithTypeAndLinkerDataId(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
11
- /**
12
- * This function will help you search a concept by their type and also to query inside of it.
13
- * Put the number of compositions you want to get in the searchStructure which can be set by inpage and page
14
- * Then the type should be set in searchQuery for the compositionName.
15
- * Inside the searchQuery array this you can set the full linker / listLinker in the searchQuery.
16
- * This will not give the id of the structures.
17
- */
18
- export declare function SearchWithTypeAndLinker(searchStructure: SearchStructure, searchQuery: SearchQuery[], token?: string): Promise<any>;
19
- /**
20
- * ## Format dataid ##
21
- * @param linkers
22
- * @param conceptIds
23
- * @param connections
24
- * @param mainCompositionIds
25
- * @param reverse
26
- * @returns
27
- */
28
- export declare function formatDataArrayDataId(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
29
- /**
30
- * ## Format Normal ##
31
- * @param linkers
32
- * @param conceptIds
33
- * @param connections
34
- * @param mainCompositionIds
35
- * @param reverse
36
- * @returns
37
- */
38
- export declare function formatDataArrayNormal(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
39
- /**
40
- * ## Format Normal ##
41
- * @param linkers
42
- * @param conceptIds
43
- * @param connections
44
- * @param mainCompositionIds
45
- * @param reverse
46
- * @returns
47
- */
48
- export declare function formatLinkersNormal(linkers: number[], conceptIds: number[], connections: number[], mainCompositionIds: number[], reverse: number[]): Promise<any>;
1
+ import { CountInfo } from "../../DataStructures/Count/CountInfo";
49
2
  /**
50
3
  * ## Format Normal ##
51
4
  * This function fetches all the connections and then converts all the connections to the single level connections
@@ -58,7 +11,7 @@ export declare function formatLinkersNormal(linkers: number[], conceptIds: numbe
58
11
  */
59
12
  export declare function formatConnections(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[]): Promise<any>;
60
13
  /**
61
- * ## Format JustId ##
14
+ * ## Format DATA-ID ##
62
15
  * This function fetches all the connections and then converts all the connections to the single level connections
63
16
  * Then those single level objects are then stiched together to create a complex json/ array.
64
17
  * @param linkers
@@ -67,9 +20,9 @@ export declare function formatConnections(linkers: number[], conceptIds: number[
67
20
  * @param reverse
68
21
  * @returns
69
22
  */
70
- export declare function formatConnectionsJustId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
23
+ export declare function formatConnectionsDataId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
71
24
  /**
72
- * ## Format DATA-ID ##
25
+ * ## Format JustId ##
73
26
  * This function fetches all the connections and then converts all the connections to the single level connections
74
27
  * Then those single level objects are then stiched together to create a complex json/ array.
75
28
  * @param linkers
@@ -78,5 +31,4 @@ export declare function formatConnectionsJustId(linkers: number[], conceptIds: n
78
31
  * @param reverse
79
32
  * @returns
80
33
  */
81
- export declare function formatConnectionsDataId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
82
- export declare function formatConnectionsV2(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
34
+ export declare function formatConnectionsJustId(linkers: number[], conceptIds: number[], mainCompositionIds: number[], reverse: number[], countInfos: CountInfo[], order?: string): Promise<any>;
@@ -1,3 +1,10 @@
1
- export declare function GetRequestHeader(contentType?: string, accept?: string): Record<string, string>;
2
- export declare function GetRequestHeaderWithAuthorization(contentType?: string, token?: string, Accept?: string): {};
3
- export declare function GetOnlyTokenHeader(): Headers;
1
+ export declare function GetRequestHeader(contentType?: string, Accept?: string): {
2
+ 'Content-Type': string;
3
+ Authorization: string;
4
+ Accept: string;
5
+ };
6
+ export declare function GetRequestHeaderWithAuthorization(contentType?: string, token?: string, Accept?: string): {
7
+ 'Content-Type': string;
8
+ Authorization: string;
9
+ Accept: string;
10
+ };
@@ -1,2 +1,2 @@
1
- import { PatcherStructure } from "../DataStructures/PatcherStructure";
1
+ import { PatcherStructure } from '../DataStructures/PatcherStructure';
2
2
  export default function UpdateComposition(patcherStructure: PatcherStructure): Promise<any>;
@@ -1,3 +1,6 @@
1
- import { Concept } from './../../DataStructures/Concept';
2
- export declare function GetUserGhostId(userId: number, ghostId: number, sessionId?: number): Promise<Concept>;
3
- export declare function AddGhostConcept(concept: Concept, userId: number, sessionId?: number): Promise<void>;
1
+ import { LConcept } from './../../DataStructures/Local/LConcept';
2
+ import { LConnection } from '../../app';
3
+ export declare function GetUserGhostId(userId: number, ghostId: number, sessionId?: number, randomizer?: number): Promise<LConcept>;
4
+ export declare function GetUserGhostConnectionId(userId: number, ghostId: number, sessionId?: number, randomizer?: number): Promise<LConnection>;
5
+ export declare function AddGhostConcept(concept: LConcept, userId: number, sessionId?: number): Promise<void>;
6
+ export declare function AddGhostConnection(connection: LConnection, userId: number, sessionId?: number): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const getServerJwtToken: () => string;
@@ -1,14 +1,17 @@
1
- import { FreeschemaQuery } from "../app";
2
- import { DependencyObserver } from "./DepenedencyObserver";
3
- export declare class SearchLinkMultipleAllObservable extends DependencyObserver {
1
+ import { FreeschemaQuery } from "../DataStructures/Search/FreeschemaQuery";
2
+ export declare class SearchLinkMultipleAllObservable {
3
+ mainCompositionIds: number[];
4
4
  query: FreeschemaQuery;
5
5
  countInfoStrings: string[];
6
6
  order: string;
7
- totalCount: number;
7
+ format: number;
8
+ isDataLoaded: boolean;
9
+ conceptIds: number[];
10
+ internalConnections: number[];
11
+ linkers: number[];
12
+ reverse: number[];
13
+ data: any;
8
14
  constructor(query: FreeschemaQuery, token: string);
9
- run(): Promise<any>;
10
- bind(): Promise<any>;
11
- build(): Promise<any>;
12
15
  }
13
16
  /**
14
17
  *
@@ -18,5 +21,4 @@ export declare class SearchLinkMultipleAllObservable extends DependencyObserver
18
21
  * @param page the page which needs to be displayed as per the inpage parameter
19
22
  * @param format the format in which the output should be displayed (NORMAL, DATAID,JUSTDATA,DATAIDDATE)
20
23
  */
21
- export declare function SchemaQueryListener(query: FreeschemaQuery, token: string): SearchLinkMultipleAllObservable;
22
- export declare function SchemaQuery(query: FreeschemaQuery, token: string): Promise<void>;
24
+ export declare function SchemaQueryListener(query: FreeschemaQuery, token: string): Promise<any>;
@@ -1,5 +1,4 @@
1
1
  export { init, updateAccessToken };
2
- export { SearchLinkMultipleApi } from './Api/Search/SearchLinkMultipleApi';
3
2
  export { SplitStrings } from './Services/SplitStrings';
4
3
  export { GetCompositionList, GetCompositionListWithId } from './Services/GetCompositionList';
5
4
  export { GetCompositionListLocal, GetCompositionListLocalWithId } from './Services/Local/GetCompositionListLocal';
@@ -12,22 +11,21 @@ export { CreateConnectionBetweenTwoConcepts, CreateConnectionBetweenTwoConceptsG
12
11
  export { default as GetTheConcept } from './Services/GetTheConcept';
13
12
  export { default as MakeTheInstanceConcept } from './Services/MakeTheInstanceConcept';
14
13
  export { MakeTheInstanceConceptLocal } from './Services/Local/MakeTheInstanceConceptLocal';
15
- export { storeToDatabase, getFromDatabaseWithType, getObjectsFromIndexDb } from './Database/NoIndexDb';
14
+ export { storeToDatabase, getFromDatabaseWithType, getFromDatabaseWithTypeOld } from './Database/NoIndexDb';
16
15
  export { createTheConnection as CreateTheConnection } from './Services/CreateTheConnection';
17
16
  export { default as GetConceptByCharacter } from './Services/GetConceptByCharacter';
18
17
  export { GetLink, GetLinkRaw } from './Services/GetLink';
19
18
  export { CreateDefaultConcept } from './Services/CreateDefaultConcept';
20
- export { MakeTheTypeConceptLocal } from './Services/Local/MakeTheTypeLocal';
19
+ export { MakeTheTypeConcept } from './Services/MakeTheTypeConcept';
21
20
  export { MakeTheTypeConceptApi } from './Api/MakeTheTypeConceptApi';
22
21
  export { GetLinkerConnectionFromConcepts, GetLinkerConnectionToConcepts } from './Services/GetLinkerConnectionFromConcept';
23
22
  export { DeleteConceptById } from './Services/DeleteConcept';
24
- export { DeleteConnectionById, DeleteConnectionByIdBulk } from './Services/DeleteConnection';
23
+ export { DeleteConnectionById } from './Services/DeleteConnection';
25
24
  export { TrashTheConcept } from './Api/Delete/DeleteConceptInBackend';
26
25
  export { GetConnectionById } from './Services/GetConnections';
27
26
  export { MakeTheTimestamp } from './Services/MakeTheTimestamp';
28
- export { RecursiveSearchApi, RecursiveSearchApiWithInternalConnections, RecursiveSearchApiRaw, RecursiveSearchApiRawFullLinker, RecursiveSearchApiNewRawFullLinker } from './Api/RecursiveSearch';
29
- export { GetCompositionBulkWithDataId, GetCompositionFromConnectionsWithDataIdFromConnections, GetCompositionFromConnectionsWithIndexFromConnections, GetCompositionBulk, GetCompositionFromConnectionsWithDataId } from './Services/GetCompositionBulk';
30
- export { uploadAttachment, uploadFile, uploadImage, uploadImageV2, validDocumentFormats, validImageFormats } from './Services/Upload';
27
+ export { RecursiveSearchApi } from './Api/RecursiveSearch';
28
+ export { GetCompositionBulkWithDataId, GetCompositionBulk, GetCompositionFromConnectionsWithDataId } from './Services/GetCompositionBulk';
31
29
  export { GetConceptBulk } from './Api/GetConceptBulk';
32
30
  export { GetConnectionBulk } from './Api/GetConnectionBulk';
33
31
  export { GetAllConnectionsOfCompositionBulk } from './Api/GetAllConnectionsOfCompositionBulk';
@@ -35,7 +33,6 @@ export { LoginToBackend } from './Api/Login';
35
33
  export { GetConnectionOfTheConcept } from './Api/GetConnectionOfTheConcept';
36
34
  export { default as Signup } from './Api/Signup';
37
35
  export { default as Signin } from './Api/Signin';
38
- export { SignupEntity } from './Api/Signup';
39
36
  export { default as UpdateComposition } from './Services/UpdateComposition';
40
37
  export { SearchAllConcepts } from './Api/Search/Search';
41
38
  export { SearchWithLinker } from './Api/Search/SearchWithLinker';
@@ -47,41 +44,22 @@ export { GetRelation, GetRelationRaw } from './Services/GetRelation';
47
44
  export { recursiveFetchNew } from './Services/Composition/BuildComposition';
48
45
  export { CreateTheCompositionWithCache } from './Services/Composition/CreateCompositionCache';
49
46
  export { CreateDefaultLConcept } from './Services/Local/CreateDefaultLConcept';
50
- export { CreateTheConnectionGeneral } from './Services/CreateTheConnectionGeneral';
51
- export { CreateTheConnectionLocal, CreateConnection } from './Services/Local/CreateTheConnectionLocal';
52
- export { GetCompositionListAll, GetCompositionListAllWithId, GetCompositionListWithIdUpdated } from './Services/GetCompositionList';
53
- export { GetUserGhostId, AddGhostConcept } from './Services/User/UserTranslation';
47
+ export { CreateTheConnectionGeneral, CreateConnection } from './Services/CreateTheConnectionGeneral';
48
+ export { CreateTheConnectionLocal } from './Services/Local/CreateTheConnectionLocal';
49
+ export { GetUserGhostId, AddGhostConcept, GetUserGhostConnectionId, AddGhostConnection } from './Services/User/UserTranslation';
54
50
  export { SearchLinkMultipleAll, FormatFromConnections } from './Services/Search/SearchLinkMultiple';
55
- export { GetTheConceptLocal } from './Services/Local/GetTheConceptLocal';
56
51
  export { UpdateCompositionLocal } from './Services/Local/UpdateCompositionLocal';
57
- export { GetCompositionFromConnectionsWithDataIdInObject, GetCompositionFromConnectionsWithIndex, GetCompositionFromConnectionsWithDataIdIndex } from './Services/GetCompositionBulk';
58
- export { GetRelationLocal } from './Services/Local/GetRelationLocal';
59
- export { GetConceptByCharacterAndCategoryLocal } from './Services/Local/GetConceptByCharacterLocal';
52
+ export { GetCompositionFromConnectionsWithDataIdInObject } from './Services/GetCompositionBulk';
60
53
  export { ViewInternalData } from './Services/View/ViewInternalData';
61
- export { ViewInternalDataApi } from './Api/View/ViewInternalDataApi';
62
- export { convertFromLConceptToConcept, convertFromConceptToLConcept } from './Services/Conversion/ConvertConcepts';
63
- export { SearchLinkInternal, SearchLinkInternalAll } from './Services/Search/SearchLinkInternal';
64
- export { CreateConnectionBetweenTwoConceptsLocal } from './Services/Local/CreateConnectionBetweenTwoConceptsLocal';
65
- export { DeleteConceptLocal } from './Services/Local/DeleteConceptLocal';
66
- export { GetConnectionBetweenTwoConceptsLinker } from './Services/GetConnectionBetweenTwoConceptsLinker';
67
- export { DelayFunctionExecution } from './Services/Common/DelayFunction';
68
- export { GetCompositionWithIdAndDateFromMemory, GetCompositionFromMemoryWithConnections } from './Services/GetComposition';
54
+ export { convertFromLConceptToConcept } from './Services/Conversion/ConvertConcepts';
55
+ export { SearchLinkInternal } from './Services/Search/SearchLinkInternal';
56
+ export { HandleHttpError } from './Services/Common/ErrorPosting';
69
57
  export { GetConceptByCharacterAndType } from './Api/GetConceptByCharacterAndType';
70
- export { GetConnectionDataPrefetch } from './Services/GetCompositionBulk';
71
- export { FormatFromConnectionsAltered } from './Services/Search/SearchLinkMultiple';
72
- export { NORMAL, JUSTDATA, DATAID, DATAIDDATE, RAW, ALLID, LISTNORMAL, DATAV2 } from './Constants/FormatConstants';
73
- export { PRIVATE, PUBLIC, ADMIN } from './Constants/AccessConstants';
74
- export { SearchWithTypeAndLinkerApi } from './Api/Search/SearchWithTypeAndLinker';
75
- export { DependencyObserver } from './WrapperFunctions/DepenedencyObserver';
76
- export { SearchLinkMultipleAllObservable, searchLinkMultipleListener } from './WrapperFunctions/SearchLinkMultipleAllObservable';
77
- export { GetCompositionListener } from './WrapperFunctions/GetCompositionObservable';
78
- export { GetCompositionListListener } from './WrapperFunctions/GetCompositionListObservable';
79
- export { SearchWithTypeAndLinker } from './Services/Search/SearchWithTypeAndLinker';
80
- export { GetLinkListener } from './WrapperFunctions/GetLinkObservable';
81
- export { RecursiveSearchListener } from './WrapperFunctions/RecursiveSearchObservable';
82
- export { GetLinkListListener } from './WrapperFunctions/GetLinkListObservable';
83
- export { GetConnectionTypeForCount } from './Services/Common/DecodeCountInfo';
84
- export { orderTheConnections } from './Services/Search/orderingConnections';
58
+ export { GetConceptByCharacterAndCategoryDirectApi } from './Api/SearchConcept/GetConceptByCharacterAndCategoryDirect';
59
+ export { SearchLinkMultipleApi } from './Api/Search/SearchLinkMultipleApi';
60
+ export { GetCompositionWithIdFromMemoryFromConnections, GetCompositionWithIdFromMemory } from './Services/GetComposition';
61
+ export { GetConceptByTypeBulk } from './Api/GetConceptByCharacterAndType';
62
+ export { DeleteConnectionByTypeBulk, GetConnectionByTypeBulk } from './Services/Delete/DeleteConnectionByType';
85
63
  export { SyncData } from './DataStructures/SyncData';
86
64
  export { Concept } from './DataStructures/Concept';
87
65
  export { LConcept } from './DataStructures/Local/LConcept';
@@ -99,97 +77,17 @@ export { SessionData } from './DataStructures/Session/SessionData';
99
77
  export { Composition } from './DataStructures/Composition/Composition';
100
78
  export { CompositionBinaryTree } from './DataStructures/Composition/CompositionBinaryTree';
101
79
  export { CompositionNode } from './DataStructures/Composition/CompositionNode';
102
- export { LocalSyncData } from './DataStructures/Local/LocalSyncData';
103
80
  export { UserBinaryTree } from './DataStructures/User/UserBinaryTree';
104
81
  export { FilterSearch } from './DataStructures/FilterSearch';
105
82
  export { SearchStructure } from './DataStructures/Search/SearchStructure';
106
- export { LocalConceptsData } from './DataStructures/Local/LocalConceptData';
107
- export { Logger } from "./Middleware/logger.service";
108
- export { sendEmail } from "./Services/Mail";
109
- export { BuilderStatefulWidget } from "./Widgets/BuilderStatefulWidget";
110
- export { LocalTransaction } from "./Services/Transaction/LocalTransaction";
111
- export { InnerActions } from "./Constants/general.const";
112
- export { Anomaly } from './Anomaly/anomaly';
113
- export { Validator } from './Validator/validator';
114
- export { createFormFieldData } from './Validator/utils';
83
+ export { FreeSchemaResponse } from './DataStructures/Responses/ErrorResponse';
115
84
  export { BaseUrl } from './DataStructures/BaseUrl';
116
- export { StatefulWidget } from './Widgets/StatefulWidget';
117
- export { DeleteConnectionByType, DeleteConnectionByTypeBulk, GetAllTheConnectionsByTypeAndOfTheConcept } from './Services/DeleteConnectionByType';
85
+ export { SchemaQueryListener } from './WrapperFunctions/SchemaQueryObservable';
118
86
  export { FreeschemaQuery } from './DataStructures/Search/FreeschemaQuery';
119
- export { FreeschemaQueryApi } from './Api/Search/FreeschemaQueryApi';
120
- export { SchemaQueryListener, SchemaQuery } from './WrapperFunctions/SchemaQueryObservable';
121
- export { WidgetTree } from './Widgets/WidgetTree';
122
- export { DeleteUser } from './Services/DeleteConcept';
123
- export { AccessTracker } from './AccessTracker/accessTracker';
124
- export { CreateConnectionBetweenEntityLocal } from './Services/CreateConnection/CreateConnectionEntity';
125
- export { BuildWidgetFromId } from './Widgets/WidgetBuild';
126
- export { removeAllChildren } from './Services/Common/RemoveAllChild';
127
- export { getUserDetails } from './Services/User/UserFromLocalStorage';
128
- export { CountInfo } from './DataStructures/Count/CountInfo';
129
- export { Selector } from './Api/Prototype/Selector';
130
- export { AccessControlService } from './Services/AccessControl/AccessControl';
131
- export { importLatestWidget, renderImportedWidget, renderLatestWidget, renderPage, renderWidget, convertWidgetTreeToWidgetWithWrapper, getWidgetFromId, convertWidgetTreeToWidget, unwrapContainers, getWidgetBulkFromId } from './Widgets/RenderWidgetService';
132
- export { CreateData } from './Services/automated/automated-concept-connection';
133
- export { Prototype } from './DataStructures/Prototype/Prototype';
134
- export { createPrototypeLocal } from './prototype/prototype.service';
135
- export { GetImageApi } from './Api/Images/GetImages';
136
- export { GetAllLinkerConnectionsFromTheConcept } from "./Api/GetAllLinkerConnectionsFromTheConcept";
137
- export { GetFreeschemaImage, GetFreeschemaImageUrl } from './Services/assets/GetImageService';
138
- type listeners = {
139
- listenerId: string | number;
140
- callback: any;
141
- createdAt: number;
142
- };
143
- export declare var serviceWorker: any;
144
- export declare let subscribedListeners: listeners[];
145
- export declare let hasActivatedSW: boolean;
146
- export declare function setHasActivatedSW(value: boolean): void;
147
- /**
148
- * This function lets you update the access token that the package uses. If this is not passed you cannot create, update, view or delete
149
- * Your concepts using this package.
150
- * @param accessToken access token got from the sign in process
151
- */
152
- declare function updateAccessToken(accessToken?: string, session?: any): void;
153
- /**
154
- *
155
- * @param url This is the url for the backend c# system or our main data fabric server
156
- * @param aiurl This is the AI url that pulls in the data using our AI system . If you do not enter this then also disable the enableAi flag.
157
- * @param accessControlUrl This is the url for the access control system. This is another server in the data fabric that is used as server for business logic and security features.
158
- * @param accessToken This is the JWT token that needs to be passed (But since you have just initilized the system). There is no way we can get access token
159
- * So this access token can be empty string. You can set it afterwards with another function UpdateAccessToken();
160
- * @param nodeUrl This is the url for the node server. This is another server in the data fabric that is used as server for business logic and security features.
161
- * @param enableAi This flag is used to enable or disable the AI feature that preloads data in the indexdb.
162
- * @param applicationName This is an unique name that is given to a program. Use this to discern one indexdb from another.
163
- * @param enableSW {activate: boolean, scope?: string, pathToSW?: string, manual?: boolean} | undefined - This is for enabling service worker with its scope
164
- */
165
- declare function init(url?: string, aiurl?: string, accessToken?: string, nodeUrl?: string, enableAi?: boolean, applicationName?: string, enableSW?: {
166
- activate: boolean;
167
- scope?: string;
168
- pathToSW?: string;
169
- manual?: boolean;
170
- } | undefined, flags?: {
171
- logApplication?: boolean;
172
- logPackage?: boolean;
173
- accessTracker?: boolean;
174
- isTest?: boolean;
175
- }, parameters?: {
176
- logserver?: string;
177
- }, accessControlUrl?: string): Promise<true | undefined>;
178
- /**
179
- * Method to send message to the service worker from main thread
180
- * @param type string
181
- * @param payload any
182
- * @returns Promise<any>
183
- */
184
- export declare function sendMessage(type: string, payload: any, retryCount?: number): Promise<unknown>;
185
- /**
186
- * Method to dispatch Event received from SW
187
- * @param id number|string
188
- * @param data any
189
- */
190
- export declare function dispatchIdEvent(id: number | string, data?: any): void;
191
- /**
192
- * Method to handle global exception occured in service worker
193
- * @param error any
194
- */
195
- export declare const handleServiceWorkerException: (error: any) => void;
87
+ export { GiveConnection, GetAllTheConnectionsByTypeAndOfTheConcept } from './Services/Delete/GetAllConnectionByType';
88
+ export { DATAID, NORMAL, JUSTDATA, ALLID, DATAIDDATE, RAW, LISTNORMAL } from './Constants/FormatConstants';
89
+ export { AccessControlService } from './Services/AccessControl/AccessControlService';
90
+ export { PermissionSet } from './Services/AccessControl/PermissionSet';
91
+ export { Transaction } from './DataStructures/Transaction/Transaction';
92
+ declare function updateAccessToken(accessToken?: string): void;
93
+ declare function init(url?: string, aiurl?: string, accessToken?: string, jwtSecret?: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-node",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "environment": "production",
5
5
  "description": "Full Pack of concept and connection system",
6
6
  "main": "dist/bundle.js",