@mindline/sync 1.0.16 → 1.0.18

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/configs.json CHANGED
@@ -1,103 +1,8 @@
1
1
  [
2
2
  {
3
3
  "id": "1",
4
- "name": "ProdSync",
5
- "description": "Automated sync of users from Mindline1 to Mindline2",
6
- "targetConfigs":
7
- [
8
- {
9
- "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
10
- "sourceGroups": ["TODO"],
11
- "targetGroup": ""
12
- },
13
- {
14
- "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
15
- "sourceGroups": [],
16
- "targetGroup": "TODO"
17
- }
18
- ],
19
- "enabled": "false"
20
- },
21
- {
22
- "id": "2",
23
- "name": "TestSync",
24
- "description": "Automated *test* sync of users from Mindline1 to Mindline2",
25
- "targetConfigs":
26
- [
27
- {
28
- "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
29
- "sourceGroups": ["TODO"],
30
- "targetGroup": ""
31
- },
32
- {
33
- "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
34
- "sourceGroups": [],
35
- "targetGroup": "TODO"
36
- }
37
- ],
38
- "enabled": "false"
39
- },
40
- {
41
- "id": "3",
42
- "name": "ProdSync",
43
- "description": "Automated sync of users from WhoIAm to Grit Software",
44
- "targetConfigs":
45
- [
46
- {
47
- "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
48
- "sourceGroups": ["TODO"],
49
- "targetGroup": ""
50
- },
51
- {
52
- "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
53
- "sourceGroups": [],
54
- "targetGroup": "TODO"
55
- }
56
- ],
57
- "enabled": "false"
58
- },
59
- {
60
- "id": "4",
61
- "name": "TestSync",
62
- "description": "Automated *test* sync of users from WhoIAm to Grit Software",
63
- "targetConfigs":
64
- [
65
- {
66
- "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
67
- "sourceGroups": ["TODO"],
68
- "targetGroup": ""
69
- },
70
- {
71
- "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
72
- "sourceGroups": [],
73
- "targetGroup": "TODO"
74
- }
75
- ],
76
- "enabled": "false"
77
- },
78
- {
79
- "id": "5",
80
- "name": "ProdSync",
81
- "description": "Automated sync of users from Google to Trackman",
82
- "targetConfigs":
83
- [
84
- {
85
- "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
86
- "sourceGroups": ["TODO"],
87
- "targetGroup": ""
88
- },
89
- {
90
- "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
91
- "sourceGroups": [],
92
- "targetGroup": "TODO"
93
- }
94
- ],
95
- "enabled": "false"
96
- },
97
- {
98
- "id": "6",
99
- "name": "TestSync",
100
- "description": "Automated *test* sync of users from Google to Trackman",
4
+ "name": "",
5
+ "description": "",
101
6
  "targetConfigs":
102
7
  [
103
8
  {
package/configs2.json ADDED
@@ -0,0 +1,116 @@
1
+ [
2
+ {
3
+ "id": "1",
4
+ "name": "ProdSync",
5
+ "description": "Automated sync of users from Mindline1 to Mindline2",
6
+ "targetConfigs":
7
+ [
8
+ {
9
+ "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
10
+ "sourceGroups": ["TODO"],
11
+ "targetGroup": ""
12
+ },
13
+ {
14
+ "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
15
+ "sourceGroups": [],
16
+ "targetGroup": "TODO"
17
+ }
18
+ ],
19
+ "enabled": "false"
20
+ },
21
+ {
22
+ "id": "2",
23
+ "name": "TestSync",
24
+ "description": "Automated *test* sync of users from Mindline1 to Mindline2",
25
+ "targetConfigs":
26
+ [
27
+ {
28
+ "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
29
+ "sourceGroups": ["TODO"],
30
+ "targetGroup": ""
31
+ },
32
+ {
33
+ "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
34
+ "sourceGroups": [],
35
+ "targetGroup": "TODO"
36
+ }
37
+ ],
38
+ "enabled": "false"
39
+ },
40
+ {
41
+ "id": "3",
42
+ "name": "ProdSync",
43
+ "description": "Automated sync of users from WhoIAm to Grit Software",
44
+ "targetConfigs":
45
+ [
46
+ {
47
+ "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
48
+ "sourceGroups": ["TODO"],
49
+ "targetGroup": ""
50
+ },
51
+ {
52
+ "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
53
+ "sourceGroups": [],
54
+ "targetGroup": "TODO"
55
+ }
56
+ ],
57
+ "enabled": "false"
58
+ },
59
+ {
60
+ "id": "4",
61
+ "name": "TestSync",
62
+ "description": "Automated *test* sync of users from WhoIAm to Grit Software",
63
+ "targetConfigs":
64
+ [
65
+ {
66
+ "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
67
+ "sourceGroups": ["TODO"],
68
+ "targetGroup": ""
69
+ },
70
+ {
71
+ "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
72
+ "sourceGroups": [],
73
+ "targetGroup": "TODO"
74
+ }
75
+ ],
76
+ "enabled": "false"
77
+ },
78
+ {
79
+ "id": "5",
80
+ "name": "ProdSync",
81
+ "description": "Automated sync of users from Google to Trackman",
82
+ "targetConfigs":
83
+ [
84
+ {
85
+ "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
86
+ "sourceGroups": ["TODO"],
87
+ "targetGroup": ""
88
+ },
89
+ {
90
+ "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
91
+ "sourceGroups": [],
92
+ "targetGroup": "TODO"
93
+ }
94
+ ],
95
+ "enabled": "false"
96
+ },
97
+ {
98
+ "id": "6",
99
+ "name": "TestSync",
100
+ "description": "Automated *test* sync of users from Google to Trackman",
101
+ "targetConfigs":
102
+ [
103
+ {
104
+ "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
105
+ "sourceGroups": ["TODO"],
106
+ "targetGroup": ""
107
+ },
108
+ {
109
+ "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
110
+ "sourceGroups": [],
111
+ "targetGroup": "TODO"
112
+ }
113
+ ],
114
+ "enabled": "false"
115
+ }
116
+ ]
package/index.js CHANGED
@@ -126,7 +126,6 @@ import workspaces from "./workspaces.json";
126
126
  // retrieve Workspace(s), User(s), Target(s), Config(s) given logged in user
127
127
  export function InitGet(user, ii)
128
128
  {
129
- debugger;
130
129
  // for now, just get hardcoded data from JSON
131
130
  var usersString = JSON.stringify(users);
132
131
  var targetsString = JSON.stringify(targets);
@@ -138,7 +137,6 @@ export function InitGet(user, ii)
138
137
  ii.cs = deserializeArray(Config, configsString);
139
138
  ii.ws = deserializeArray(Workspace, workspacesString);
140
139
  if(!ii.initWorkspaceIDs()) return false;
141
- debugger;
142
140
  } catch (e) {
143
141
  debugger;
144
142
  return false;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mindline/sync",
3
3
  "type": "module",
4
- "version": "1.0.16",
4
+ "version": "1.0.18",
5
5
  "description": "sync is a node.js package encapsulating javscript classes required for configuring Mindline sync service.",
6
6
  "exports": "./index.js",
7
7
  "scripts": {
package/targets.json CHANGED
@@ -1,56 +1,11 @@
1
1
  [
2
- {
3
- "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
4
- "name": "Mindline1",
5
- "domain": "mindline1.onmicrosoft.com",
6
- "type": "1",
7
- "authority": "https://login.microsoftonline.com/common/",
8
- "readServicePrincipal": "TODO",
9
- "writeServicePrincipal": "TODO"
10
- },
11
- {
12
- "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
13
- "name": "Mindline2",
14
- "domain": "mindline2.onmicrosoft.com",
15
- "type": "1",
16
- "authority": "https://login.microsoftonline.com/common/",
17
- "readServicePrincipal": "TODO",
18
- "writeServicePrincipal": "TODO"
19
- },
20
2
  {
21
3
  "tid": "1",
22
- "name": "WhoIam",
23
- "domain": "whoiam.onmicrosoft.com",
24
- "type": "1",
25
- "authority": "https://login.microsoftonline.com/common/",
26
- "readServicePrincipal": "TODO",
27
- "writeServicePrincipal": "TODO"
28
- },
29
- {
30
- "tid": "2",
31
- "name": "Grit Software",
32
- "domain": "gritsoftware.onmicrosoft.com",
33
- "type": "1",
34
- "authority": "https://login.microsoftonline.com/common/",
35
- "readServicePrincipal": "TODO",
36
- "writeServicePrincipal": "TODO"
37
- },
38
- {
39
- "tid": "3",
40
- "name": "Google",
41
- "domain": "google.onmicrosoft.com",
42
- "type": "1",
43
- "authority": "https://login.microsoftonline.com/common/",
44
- "readServicePrincipal": "TODO",
45
- "writeServicePrincipal": "TODO"
46
- },
47
- {
48
- "tid": "4",
49
- "name": "Trackman Golf",
50
- "domain": "trackman.onmicrosoft.com",
51
- "type": "1",
52
- "authority": "https://login.microsoftonline.com/common/",
53
- "readServicePrincipal": "TODO",
54
- "writeServicePrincipal": "TODO"
4
+ "name": "",
5
+ "domain": "",
6
+ "type": "",
7
+ "authority": "",
8
+ "readServicePrincipal": "",
9
+ "writeServicePrincipal": ""
55
10
  }
56
11
  ]
package/targets2.json ADDED
@@ -0,0 +1,56 @@
1
+ [
2
+ {
3
+ "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
4
+ "name": "Mindline1",
5
+ "domain": "mindline1.onmicrosoft.com",
6
+ "type": "1",
7
+ "authority": "https://login.microsoftonline.com/common/",
8
+ "readServicePrincipal": "TODO",
9
+ "writeServicePrincipal": "TODO"
10
+ },
11
+ {
12
+ "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
13
+ "name": "Mindline2",
14
+ "domain": "mindline2.onmicrosoft.com",
15
+ "type": "1",
16
+ "authority": "https://login.microsoftonline.com/common/",
17
+ "readServicePrincipal": "TODO",
18
+ "writeServicePrincipal": "TODO"
19
+ },
20
+ {
21
+ "tid": "1",
22
+ "name": "WhoIam",
23
+ "domain": "whoiam.onmicrosoft.com",
24
+ "type": "1",
25
+ "authority": "https://login.microsoftonline.com/common/",
26
+ "readServicePrincipal": "TODO",
27
+ "writeServicePrincipal": "TODO"
28
+ },
29
+ {
30
+ "tid": "2",
31
+ "name": "Grit Software",
32
+ "domain": "gritsoftware.onmicrosoft.com",
33
+ "type": "1",
34
+ "authority": "https://login.microsoftonline.com/common/",
35
+ "readServicePrincipal": "TODO",
36
+ "writeServicePrincipal": "TODO"
37
+ },
38
+ {
39
+ "tid": "3",
40
+ "name": "Google",
41
+ "domain": "google.onmicrosoft.com",
42
+ "type": "1",
43
+ "authority": "https://login.microsoftonline.com/common/",
44
+ "readServicePrincipal": "TODO",
45
+ "writeServicePrincipal": "TODO"
46
+ },
47
+ {
48
+ "tid": "4",
49
+ "name": "Trackman Golf",
50
+ "domain": "trackman.onmicrosoft.com",
51
+ "type": "1",
52
+ "authority": "https://login.microsoftonline.com/common/",
53
+ "readServicePrincipal": "TODO",
54
+ "writeServicePrincipal": "TODO"
55
+ }
56
+ ]
package/users.json CHANGED
@@ -1,68 +1,13 @@
1
1
  [
2
- {
3
- "oid": "102bafe7-9e62-4993-b943-2f20c609e5c9",
4
- "name": "Arvind Suthar",
5
- "mail": "arvind@mindline1.onmicrosoft.com",
6
- "authority": "https://login.microsoftonline.com/common/",
7
- "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
8
- "companyName": "Mindline1",
9
- "companyDomain": "mindline1.onmicrosoft.com",
10
- "associatedWorkspaces": [ "1", "2", "3" ],
11
- "session": "Sign In"
12
- },
13
- {
14
- "oid": "e5a42d0c-4fa5-4a65-8d9b-90f989ecae9b",
15
- "name": "Arvind Suthar",
16
- "mail": "arvind@mindline2.onmicrosoft.com",
17
- "authority": "https://login.microsoftonline.com/common/",
18
- "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
19
- "companyName": "Mindline2",
20
- "companyDomain": "mindline2.onmicrosoft.com",
21
- "associatedWorkspaces": [ "1" ],
22
- "session": "Sign In"
23
- },
24
2
  {
25
3
  "oid": "1",
26
- "name": "Ajith Alexander",
27
- "mail": "ajith.alexander@whoiam.ai",
28
- "authority": "https://login.microsoftonline.com/common/",
29
- "tid": "1",
30
- "companyName": "WhoIAm",
31
- "companyDomain": "whoiam.onmicrosoft.com",
32
- "associatedWorkspaces": [ "2" ],
33
- "session": "Sign In"
34
- },
35
- {
36
- "oid": "2",
37
- "name": "Lingeshwaran Palanappian",
38
- "mail": "lingesh@gritsoftwaresystems.com",
39
- "authority": "https://login.microsoftonline.com/common/",
40
- "tid": "2",
41
- "companyName": "Grit Sofware",
42
- "companyDomain": "gritsoftware.onmicrosoft.com",
43
- "associatedWorkspaces": [ "2" ],
44
- "session": "Sign In"
45
- },
46
- {
47
- "oid": "3",
48
- "name": "Gavin Anderson",
49
- "mail": "gavin@google.com",
50
- "authority": "https://login.microsoftonline.com/common/",
51
- "tid": "3",
52
- "companyName": "Google",
53
- "companyDomain": "google.onmicrosoft.com",
54
- "associatedWorkspaces": [ "3" ],
55
- "session": "Sign In"
56
- },
57
- {
58
- "oid": "4",
59
- "name": "Roger Cottam",
60
- "mail": "roger@trackman.com",
61
- "authority": "https://login.microsoftonline.com/common/",
62
- "tid": "4",
63
- "companyName": "Trackman Golf",
64
- "companyDomain": "trackman.onmicrosoft.com",
65
- "associatedWorkspaces": [ "3" ],
4
+ "name": "",
5
+ "mail": "",
6
+ "authority": "",
7
+ "tid": "",
8
+ "companyName": "",
9
+ "companyDomain": "",
10
+ "associatedWorkspaces": [ "1" ],
66
11
  "session": "Sign In"
67
12
  }
68
13
  ]
package/users2.json ADDED
@@ -0,0 +1,68 @@
1
+ [
2
+ {
3
+ "oid": "102bafe7-9e62-4993-b943-2f20c609e5c9",
4
+ "name": "Arvind Suthar",
5
+ "mail": "arvind@mindline1.onmicrosoft.com",
6
+ "authority": "https://login.microsoftonline.com/common/",
7
+ "tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
8
+ "companyName": "Mindline1",
9
+ "companyDomain": "mindline1.onmicrosoft.com",
10
+ "associatedWorkspaces": [ "1", "2", "3" ],
11
+ "session": "Sign In"
12
+ },
13
+ {
14
+ "oid": "e5a42d0c-4fa5-4a65-8d9b-90f989ecae9b",
15
+ "name": "Arvind Suthar",
16
+ "mail": "arvind@mindline2.onmicrosoft.com",
17
+ "authority": "https://login.microsoftonline.com/common/",
18
+ "tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
19
+ "companyName": "Mindline2",
20
+ "companyDomain": "mindline2.onmicrosoft.com",
21
+ "associatedWorkspaces": [ "1" ],
22
+ "session": "Sign In"
23
+ },
24
+ {
25
+ "oid": "1",
26
+ "name": "Ajith Alexander",
27
+ "mail": "ajith.alexander@whoiam.ai",
28
+ "authority": "https://login.microsoftonline.com/common/",
29
+ "tid": "1",
30
+ "companyName": "WhoIAm",
31
+ "companyDomain": "whoiam.onmicrosoft.com",
32
+ "associatedWorkspaces": [ "2" ],
33
+ "session": "Sign In"
34
+ },
35
+ {
36
+ "oid": "2",
37
+ "name": "Lingeshwaran Palanappian",
38
+ "mail": "lingesh@gritsoftwaresystems.com",
39
+ "authority": "https://login.microsoftonline.com/common/",
40
+ "tid": "2",
41
+ "companyName": "Grit Sofware",
42
+ "companyDomain": "gritsoftware.onmicrosoft.com",
43
+ "associatedWorkspaces": [ "2" ],
44
+ "session": "Sign In"
45
+ },
46
+ {
47
+ "oid": "3",
48
+ "name": "Gavin Anderson",
49
+ "mail": "gavin@google.com",
50
+ "authority": "https://login.microsoftonline.com/common/",
51
+ "tid": "3",
52
+ "companyName": "Google",
53
+ "companyDomain": "google.onmicrosoft.com",
54
+ "associatedWorkspaces": [ "3" ],
55
+ "session": "Sign In"
56
+ },
57
+ {
58
+ "oid": "4",
59
+ "name": "Roger Cottam",
60
+ "mail": "roger@trackman.com",
61
+ "authority": "https://login.microsoftonline.com/common/",
62
+ "tid": "4",
63
+ "companyName": "Trackman Golf",
64
+ "companyDomain": "trackman.onmicrosoft.com",
65
+ "associatedWorkspaces": [ "3" ],
66
+ "session": "Sign In"
67
+ }
68
+ ]
package/workspaces.json CHANGED
@@ -1,23 +1,9 @@
1
1
  [
2
2
  {
3
3
  "id": "1",
4
- "name": "Default",
5
- "associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "e5a42d0c-4fa5-4a65-8d9b-90f989ecae9b" ],
6
- "associatedTargets": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e" ],
7
- "associatedConfigs": [ "1", "2" ]
8
- },
9
- {
10
- "id": "2",
11
- "name": "Joint Venture",
12
- "associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "1", "2" ],
13
- "associatedTargets": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "1", "2" ],
14
- "associatedConfigs": [ "3", "4" ]
15
- },
16
- {
17
- "id": "3",
18
- "name": "Special Project",
19
- "associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "3", "4" ],
20
- "associatedTargets": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "3", "4"],
21
- "associatedConfigs": [ "5", "6" ]
4
+ "name": "",
5
+ "associatedUsers": [ "1" ],
6
+ "associatedTargets": [ "1" ],
7
+ "associatedConfigs": [ "1" ]
22
8
  }
23
9
  ]
@@ -0,0 +1,23 @@
1
+ [
2
+ {
3
+ "id": "1",
4
+ "name": "Default",
5
+ "associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "e5a42d0c-4fa5-4a65-8d9b-90f989ecae9b" ],
6
+ "associatedTargets": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e" ],
7
+ "associatedConfigs": [ "1", "2" ]
8
+ },
9
+ {
10
+ "id": "2",
11
+ "name": "Joint Venture",
12
+ "associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "1", "2" ],
13
+ "associatedTargets": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "1", "2" ],
14
+ "associatedConfigs": [ "3", "4" ]
15
+ },
16
+ {
17
+ "id": "3",
18
+ "name": "Special Project",
19
+ "associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "3", "4" ],
20
+ "associatedTargets": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "3", "4"],
21
+ "associatedConfigs": [ "5", "6" ]
22
+ }
23
+ ]