@mindline/sync 1.0.28 → 1.0.30
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 +3 -14
- package/configs2.json +19 -31
- package/hybridspa.ts +822 -111
- package/index.d.ts +134 -25
- package/index.test.ts +1 -7
- package/index.ts +940 -134
- package/mockconfig.json +18 -0
- package/package.json +1 -2
- package/tasks.ts +103 -0
- package/{targets.json → tenants.json} +3 -1
- package/{targets2.json → tenants2.json} +6 -6
- package/workspaces.json +1 -1
- package/workspaces2.json +3 -3
package/mockconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "00000000-0000-0000-0000-000000000000",
|
|
3
|
+
"workspaceId": "d47e3899-47dd-4c59-a170-3230f9b510a4",
|
|
4
|
+
"name": "ProdSync",
|
|
5
|
+
"description": "Automated sync of users from Mindline1 to Mindline2",
|
|
6
|
+
"tenants":
|
|
7
|
+
[
|
|
8
|
+
{
|
|
9
|
+
"tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
|
|
10
|
+
"sourceGroup": "da274b1c-94b7-4812-8a75-cb16ab6bd911"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
|
|
14
|
+
"sourceGroup": ""
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"enabled": "true"
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindline/sync",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.30",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"exports": "./index.ts",
|
|
7
7
|
"description": "sync is a node.js package encapsulating javscript classes required for configuring Mindline sync service.",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"vitest": "^0.29.8"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@azure/msal-browser": "^2.37.0",
|
|
20
19
|
"class-transformer": "^0.5.1",
|
|
21
20
|
"reflect-metadata": "^0.1.13"
|
|
22
21
|
}
|
package/tasks.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const data: any[] = [
|
|
2
|
+
{
|
|
3
|
+
id: 1,
|
|
4
|
+
task: "initialization",
|
|
5
|
+
start: "1970-01-01T00:00:00",
|
|
6
|
+
end: "1970-01-01T00:00:00",
|
|
7
|
+
expected: "0:22",
|
|
8
|
+
status: "not started",
|
|
9
|
+
expanded: true,
|
|
10
|
+
subtasks: [
|
|
11
|
+
{
|
|
12
|
+
id: 2,
|
|
13
|
+
task: "authenticate user",
|
|
14
|
+
start: "1970-01-01T00:00:00",
|
|
15
|
+
end: "1970-01-01T00:00:00",
|
|
16
|
+
expected: "0:01",
|
|
17
|
+
status: "not started"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 3,
|
|
21
|
+
task: "reload React",
|
|
22
|
+
start: "1970-01-01T00:00:00",
|
|
23
|
+
end: "1970-01-01T00:00:00",
|
|
24
|
+
expected: "0:07",
|
|
25
|
+
status: "not started"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 4,
|
|
29
|
+
task: "PUT access token",
|
|
30
|
+
start: "1970-01-01T00:00:00",
|
|
31
|
+
end: "1970-01-01T00:00:00",
|
|
32
|
+
expected: "0:01",
|
|
33
|
+
status: "not started"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 5,
|
|
37
|
+
task: "GET tenant details",
|
|
38
|
+
start: "1970-01-01T00:00:00",
|
|
39
|
+
end: "1970-01-01T00:00:00",
|
|
40
|
+
expected: "0:01",
|
|
41
|
+
status: "not started"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 6,
|
|
45
|
+
task: "POST config init",
|
|
46
|
+
start: "1970-01-01T00:00:00",
|
|
47
|
+
end: "1970-01-01T00:00:00",
|
|
48
|
+
expected: "0:10",
|
|
49
|
+
status: "not started"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 7,
|
|
53
|
+
task: "GET workspaces",
|
|
54
|
+
start: "1970-01-01T00:00:00",
|
|
55
|
+
end: "1970-01-01T00:00:00",
|
|
56
|
+
expected: "0:04",
|
|
57
|
+
status: "not started"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 8,
|
|
63
|
+
task: "onboard tenant",
|
|
64
|
+
start: "1970-01-01T00:00:00",
|
|
65
|
+
end: "1970-01-01T00:00:00",
|
|
66
|
+
expected: "0:05",
|
|
67
|
+
status: "not started"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: 9,
|
|
71
|
+
task: "create 2nd tenant",
|
|
72
|
+
start: "1970-01-01T00:00:00",
|
|
73
|
+
end: "1970-01-01T00:00:00",
|
|
74
|
+
expected: "0:01",
|
|
75
|
+
status: "not started"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 10,
|
|
79
|
+
task: "invite 2nd admin",
|
|
80
|
+
start: "1970-01-01T00:00:00",
|
|
81
|
+
end: "1970-01-01T00:00:00",
|
|
82
|
+
expected: "0:01",
|
|
83
|
+
status: "not started"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: 11,
|
|
87
|
+
task: "onboard 2nd tenant",
|
|
88
|
+
start: "1970-01-01T00:00:00",
|
|
89
|
+
end: "1970-01-01T00:00:00",
|
|
90
|
+
expected: "0:05",
|
|
91
|
+
status: "not started"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: 12,
|
|
95
|
+
task: "create config",
|
|
96
|
+
start: "1970-01-01T00:00:00",
|
|
97
|
+
end: "1970-01-01T00:00:00",
|
|
98
|
+
expected: "0:01",
|
|
99
|
+
status: "not started"
|
|
100
|
+
}
|
|
101
|
+
];
|
|
102
|
+
|
|
103
|
+
export default data;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"tid": "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744",
|
|
4
4
|
"name": "Mindline1",
|
|
5
5
|
"domain": "mindline1.onmicrosoft.com",
|
|
6
|
-
"
|
|
6
|
+
"tenantType": "aad",
|
|
7
7
|
"authority": "https://login.microsoftonline.com/common/",
|
|
8
8
|
"readServicePrincipal": "TODO",
|
|
9
9
|
"writeServicePrincipal": "TODO"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"tid": "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e",
|
|
13
13
|
"name": "Mindline2",
|
|
14
14
|
"domain": "mindline2.onmicrosoft.com",
|
|
15
|
-
"
|
|
15
|
+
"tenantType": "aad",
|
|
16
16
|
"authority": "https://login.microsoftonline.com/common/",
|
|
17
17
|
"readServicePrincipal": "TODO",
|
|
18
18
|
"writeServicePrincipal": "TODO"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"tid": "1",
|
|
22
22
|
"name": "WhoIam",
|
|
23
23
|
"domain": "whoiam.onmicrosoft.com",
|
|
24
|
-
"
|
|
24
|
+
"tenantType": "aad",
|
|
25
25
|
"authority": "https://login.microsoftonline.com/common/",
|
|
26
26
|
"readServicePrincipal": "TODO",
|
|
27
27
|
"writeServicePrincipal": "TODO"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tid": "2",
|
|
31
31
|
"name": "Grit Software",
|
|
32
32
|
"domain": "gritsoftware.onmicrosoft.com",
|
|
33
|
-
"
|
|
33
|
+
"tenantType": "aad",
|
|
34
34
|
"authority": "https://login.microsoftonline.com/common/",
|
|
35
35
|
"readServicePrincipal": "TODO",
|
|
36
36
|
"writeServicePrincipal": "TODO"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"tid": "3",
|
|
40
40
|
"name": "Google",
|
|
41
41
|
"domain": "google.onmicrosoft.com",
|
|
42
|
-
"
|
|
42
|
+
"tenantType": "aad",
|
|
43
43
|
"authority": "https://login.microsoftonline.com/common/",
|
|
44
44
|
"readServicePrincipal": "TODO",
|
|
45
45
|
"writeServicePrincipal": "TODO"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"tid": "4",
|
|
49
49
|
"name": "Trackman Golf",
|
|
50
50
|
"domain": "trackman.onmicrosoft.com",
|
|
51
|
-
"
|
|
51
|
+
"tenantType": "aad",
|
|
52
52
|
"authority": "https://login.microsoftonline.com/common/",
|
|
53
53
|
"readServicePrincipal": "TODO",
|
|
54
54
|
"writeServicePrincipal": "TODO"
|
package/workspaces.json
CHANGED
package/workspaces2.json
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
"id": "1",
|
|
4
4
|
"name": "Default",
|
|
5
5
|
"associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "e5a42d0c-4fa5-4a65-8d9b-90f989ecae9b" ],
|
|
6
|
-
"
|
|
6
|
+
"associatedTenants": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "df9c2e0a-f6fe-43bb-a155-d51f66dffe0e" ],
|
|
7
7
|
"associatedConfigs": [ "1", "2" ]
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"id": "2",
|
|
11
11
|
"name": "Joint Venture",
|
|
12
12
|
"associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "1", "2" ],
|
|
13
|
-
"
|
|
13
|
+
"associatedTenants": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "1", "2" ],
|
|
14
14
|
"associatedConfigs": [ "3", "4" ]
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"id": "3",
|
|
18
18
|
"name": "Special Project",
|
|
19
19
|
"associatedUsers": [ "102bafe7-9e62-4993-b943-2f20c609e5c9", "3", "4" ],
|
|
20
|
-
"
|
|
20
|
+
"associatedTenants": [ "7f4567b8-f9a9-4ad3-9cb5-ef16a80e5744", "3", "4"],
|
|
21
21
|
"associatedConfigs": [ "5", "6" ]
|
|
22
22
|
}
|
|
23
23
|
]
|