mftsccs-node 0.0.5 → 0.0.7

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.
@@ -1,26 +0,0 @@
1
- async function GetCompositionList(name){
2
- var list = await window.tsccs.GetCompositionList("personalinfo");
3
- const tableElement = document.getElementById('listtable');
4
- for(var i=0 ; i<list.length; i++){
5
- let json = JSON.parse(list[i]);
6
-
7
- const rowElement = document.createElement('tr');
8
- const createColumnName = document.createElement('td');
9
- let name = json.personalinfo.name;
10
- createColumnName.innerHTML = name;
11
- rowElement.appendChild(createColumnName);
12
-
13
- const createColumnAge = document.createElement('td');
14
- let age = json.personalinfo.age;
15
- createColumnAge.innerHTML = age;
16
- rowElement.appendChild(createColumnAge);
17
- const createColumnCountry = document.createElement('td');
18
- let country = json.personalinfo.country;
19
- createColumnCountry.innerHTML = country;
20
- rowElement.appendChild(createColumnCountry);
21
- tableElement.appendChild(rowElement);
22
-
23
- }
24
-
25
- }
26
-
package/dist/main.js DELETED
@@ -1,21 +0,0 @@
1
-
2
-
3
- document.body.onload = function(){
4
- var inputs = document.getElementsByTagName('input');
5
- var pageInput = document.getElementById('personalinfo');
6
- var mainConcept;
7
- CreateMainConcept(pageInput).then(concept=>{
8
- for(var i=0; i< inputs.length; i++){
9
- inputs[i].onchange=function(event){
10
- createConcept(event.target,concept);
11
- }
12
- }
13
- });
14
-
15
-
16
- var submit = document.getElementById("personalsubmit");
17
- submit.onclick=function(event){
18
- event.preventDefault();
19
- syncOnlineData();
20
- }
21
- }
package/dist/test.js DELETED
@@ -1,190 +0,0 @@
1
-
2
-
3
- function SignIn(){
4
- let oauth2Endpoint = "https://accounts.google.com/o/oauth2/v2/auth";
5
- let form = document.createElement('form');
6
- form.setAttribute('method','GET');
7
- form.setAttribute('action', oauth2Endpoint);
8
-
9
- let params = {
10
- "client_id": "963039502925-j3k4u6n3l6ngsdl3rmc5q0g523jdlmap.apps.googleusercontent.com",
11
- "redirect_uri":"http://127.0.0.1:5500/profile.html",
12
- "response_type":"token",
13
- "scope": "https://www.googleapis.com/auth/userinfo.email",
14
- "include_granted_scopes": 'true',
15
- 'state': 'pass-through-value'
16
- }
17
-
18
- for(var p in params){
19
- let input = document.createElement('input');
20
- input.setAttribute('type','hidden');
21
- input.setAttribute('name', p);
22
- input.setAttribute('value', params[p]);
23
- form.append(input);
24
- }
25
- document.body.appendChild(form);
26
- form.submit();
27
- }
28
-
29
-
30
-
31
- function StoreId(){
32
- var concept = {'id':20,'a': 'b'};
33
- window.tsccs.storeToDatabase("concepts",concept);
34
- }
35
-
36
- function GetId(){
37
- window.tsccs.getFromDatabase("concepts",20);
38
- }
39
-
40
- function GetIdFromType(){
41
- window.tsccs.getFromDatabaseWithType("concepts","categoryId",4);
42
- }
43
-
44
- async function syncOnlineData(){
45
- console.log(window.tsccs.SyncData.conceptsSyncArray);
46
- console.log(window.tsccs.SyncData.connectionSyncArray);
47
- await window.tsccs.SyncData.SyncDataOnline();
48
- }
49
-
50
- async function syncDataLocal(){
51
- console.log(window.tsccs.SyncData.conceptsSyncArray);
52
- console.log(window.tsccs.SyncData.connectionSyncArray);
53
- await window.tsccs.SyncData.syncDataLocalDb();
54
- }
55
-
56
- // var json = {
57
- // "testfolders": {
58
- // "work": 123,
59
- // "capble":" 12421"
60
- // }};
61
-
62
- var json ={"boomgpt": {
63
- "note": "",
64
- "boom_folder": {
65
- "category_id": "100386862",
66
- "category_name": "Important Contacts"
67
- },
68
- "created_at": "1702266154331",
69
- "title": "Hem Sir",
70
- "crm_data": {
71
- "experience": "",
72
- "link": "",
73
- "addresses": "",
74
- "notes": [
75
- ""
76
- ],
77
- "tag": "prospect",
78
- "education": "",
79
- "about": "",
80
- "avatar": "",
81
- "phone": [
82
- {
83
- "number": "+977 985-1022244"
84
- }
85
- ],
86
- "email": "",
87
- "name": "Hem Sir"
88
- },
89
- "comment": [
90
- ""
91
- ],
92
- "data_type": "extension_whatsapp"
93
- }
94
- };
95
-
96
-
97
- // window.tsccs.GetCompositionList("recentFolder",10267).then((concept)=>{
98
- // console.log(concept);
99
- // })
100
- // window.tsccs.ConceptsData.GetConceptByCharacter("boomg").then((concept)=>{
101
- // console.log(concept);
102
- // });
103
-
104
-
105
-
106
-
107
- // window.tsccs.CreateComposition(json,null,null,null,10345).then(concept=>{
108
- // syncOnlineData().then(()=>{
109
- // window.tsccs.GetCompositionWithId(concept.id).then(composition=>{
110
- // console.log(composition);
111
- // });
112
- // });
113
- // });
114
- // setTimeout(() => {
115
- // window.tsccs.GetCompositionWithId(100378785).then(output=>{
116
- // console.log("wahts");
117
- // console.log(output);
118
- // });
119
- // }, 8000);
120
-
121
-
122
-
123
- // window.tsccs.ConceptsData.GetConceptByCharacterAndTypeLocal("Default",5).then(output=>{
124
- // console.log(output);
125
- // });
126
-
127
-
128
-
129
-
130
- // window.tsccs.MakeTheInstanceConceptLocally("asdgasdgsag","extension_whatsapp_chat",false).then(concept=>{
131
- // console.log("created locally");
132
- // console.log(concept);
133
- // })
134
-
135
- // window.tsccs.GetCompositionLocal(94).then(output=>{
136
- // console.log("worlding");
137
- // console.log(output);
138
- // });
139
-
140
- // window.tsccs.MakeTheInstanceConcept("data_typasdfe","extension_whatasdfsadfsadfsapp_chat",false).then(concept=>{
141
- // console.log(concept);
142
- // })
143
-
144
- // window.tsccs.MakeTheInstanceConcept("data_typsadfsadfasdfasdfe","asdfasgdscvcxv",false).then(concept=>{
145
- // console.log(concept);
146
- // syncOnlineData();
147
-
148
- // })
149
-
150
-
151
- // setTimeout(() => {
152
- // window.tsccs.CreateComposition(json).then(concept=>{
153
-
154
- // console.log("workking");
155
- // syncDataLocal().then(()=>{
156
- // window.tsccs.GetCompositionWithId(concept.id).then(composition=>{
157
- // console.log(composition);
158
- // })
159
- // });
160
-
161
- // });
162
- // }, 10000);
163
-
164
-
165
-
166
-
167
- // for(let i=0; i< 100; i++ ){
168
- // window.tsccs.ConceptsData.GetConceptByCharacter("boomgpt");
169
-
170
- // }
171
-
172
- // window.tsccs.GetLink(100128392, "my_console_s").then((output)=>{
173
- // console.log("first");
174
- // console.log(output);
175
- // });
176
-
177
- // window.tsccs.GetLink(100128392, "console_folder_s").then((output)=>{
178
- // console.log("Second");
179
- // console.log(output);
180
- // });
181
- // window.tsccs.GetLink(100128392, "my_console_s").then((output)=>{
182
- // console.log(output);
183
- // });
184
-
185
-
186
-
187
-
188
-
189
- window.syncOnlineData = syncOnlineData;
190
- window.syncDataLocal = syncDataLocal;