@mindline/sync 1.0.75 → 1.0.76

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.
@@ -2,6 +2,6 @@
2
2
  "ExpandedNodes": [
3
3
  ""
4
4
  ],
5
- "SelectedNode": "\\resources.json",
5
+ "SelectedNode": "\\index.ts",
6
6
  "PreviewInSolutionExplorer": false
7
7
  }
package/.vs/slnx.sqlite CHANGED
Binary file
Binary file
@@ -2,32 +2,13 @@
2
2
  "Version": 1,
3
3
  "WorkspaceRootPath": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\",
4
4
  "Documents": [
5
- {
6
- "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\resources.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
7
- "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:resources.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
8
- },
9
- {
10
- "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\actors.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
11
- "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:actors.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
12
- },
13
- {
14
- "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
15
- "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
16
- },
17
5
  {
18
6
  "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
19
7
  "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:index.d.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
20
8
  },
21
9
  {
22
- "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\hybridspa.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
23
- "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:hybridspa.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
24
- },
25
- {
26
- "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\node_modules\\@azure\\msal-browser\\src\\app\\IPublicClientApplication.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
27
- },
28
- {
29
- "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
30
- "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
10
+ "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
11
+ "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:index.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
31
12
  }
32
13
  ],
33
14
  "DocumentGroupContainers": [
@@ -75,97 +56,33 @@
75
56
  },
76
57
  {
77
58
  "DockedHeight": 299,
78
- "SelectedChildIndex": 6,
59
+ "SelectedChildIndex": 1,
79
60
  "Children": [
80
61
  {
81
62
  "$type": "Document",
82
63
  "DocumentIndex": 1,
83
- "Title": "actors.json",
84
- "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\actors.json",
85
- "RelativeDocumentMoniker": "actors.json",
86
- "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\actors.json",
87
- "RelativeToolTip": "actors.json",
88
- "ViewState": "AQIAAAAAAAAAAAAAAAAAABAAAAAEAAAA",
89
- "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
90
- "WhenOpened": "2024-04-01T07:44:39.353Z",
91
- "EditorCaption": ""
92
- },
93
- {
94
- "$type": "Document",
95
- "DocumentIndex": 5,
96
- "Title": "IPublicClientApplication.ts",
97
- "DocumentMoniker": "C:\\Users\\ArvindSuthar\\node_modules\\@azure\\msal-browser\\src\\app\\IPublicClientApplication.ts",
98
- "RelativeDocumentMoniker": "..\\..\\..\\..\\node_modules\\@azure\\msal-browser\\src\\app\\IPublicClientApplication.ts",
99
- "ToolTip": "C:\\Users\\ArvindSuthar\\node_modules\\@azure\\msal-browser\\src\\app\\IPublicClientApplication.ts",
100
- "RelativeToolTip": "..\\..\\..\\..\\node_modules\\@azure\\msal-browser\\src\\app\\IPublicClientApplication.ts",
101
- "ViewState": "AQIAABAAAAAAAAAAAAAAACIAAAAkAAAA",
102
- "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
103
- "WhenOpened": "2024-04-01T01:09:13.977Z",
104
- "EditorCaption": ""
105
- },
106
- {
107
- "$type": "Document",
108
- "DocumentIndex": 2,
109
64
  "Title": "index.ts",
110
65
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts",
111
66
  "RelativeDocumentMoniker": "index.ts",
112
67
  "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.ts",
113
68
  "RelativeToolTip": "index.ts",
114
- "ViewState": "AQIAAAAAAAAAAAAAAAAAAIQAAAAAAAAA",
115
- "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
116
- "WhenOpened": "2024-03-31T04:25:14.781Z",
117
- "EditorCaption": ""
118
- },
119
- {
120
- "$type": "Document",
121
- "DocumentIndex": 4,
122
- "Title": "hybridspa.ts",
123
- "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\hybridspa.ts",
124
- "RelativeDocumentMoniker": "hybridspa.ts",
125
- "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\hybridspa.ts",
126
- "RelativeToolTip": "hybridspa.ts",
127
- "ViewState": "AQIAAAAAAAAAAAAAAAAAAAkAAAAAAAAA",
69
+ "ViewState": "AQIAAMEAAAAAAAAAAAAAAE0FAAAAAAAA",
128
70
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
129
- "WhenOpened": "2024-03-31T03:57:20.961Z",
71
+ "WhenOpened": "2024-05-12T20:20:11.888Z",
130
72
  "EditorCaption": ""
131
73
  },
132
74
  {
133
75
  "$type": "Document",
134
- "DocumentIndex": 3,
76
+ "DocumentIndex": 0,
135
77
  "Title": "index.d.ts",
136
78
  "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts",
137
79
  "RelativeDocumentMoniker": "index.d.ts",
138
80
  "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\index.d.ts",
139
81
  "RelativeToolTip": "index.d.ts",
140
- "ViewState": "AQIAACgBAAAAAAAAAAAAAD4BAAAiAAAA",
82
+ "ViewState": "AQIAAK8AAAAAAAAAAAAAACUBAAAQAAAA",
141
83
  "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
142
84
  "WhenOpened": "2024-03-31T03:51:46.193Z",
143
85
  "EditorCaption": ""
144
- },
145
- {
146
- "$type": "Document",
147
- "DocumentIndex": 6,
148
- "Title": "package.json",
149
- "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json",
150
- "RelativeDocumentMoniker": "package.json",
151
- "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\package.json",
152
- "RelativeToolTip": "package.json",
153
- "ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
154
- "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
155
- "WhenOpened": "2024-03-30T18:10:14.136Z"
156
- },
157
- {
158
- "$type": "Document",
159
- "DocumentIndex": 0,
160
- "Title": "resources.json",
161
- "DocumentMoniker": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\resources.json",
162
- "RelativeDocumentMoniker": "resources.json",
163
- "ToolTip": "C:\\Users\\ArvindSuthar\\source\\repos\\front\\sync\\resources.json",
164
- "RelativeToolTip": "resources.json",
165
- "ViewState": "AQIAAAAAAAAAAAAAAAAAADkAAAABAAAA",
166
- "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
167
- "WhenOpened": "2024-03-30T16:56:29.032Z",
168
- "EditorCaption": ""
169
86
  }
170
87
  ]
171
88
  },
package/index.d.ts CHANGED
@@ -13,7 +13,8 @@ declare module "@mindline/sync" {
13
13
  }
14
14
  export class azureConfig {
15
15
  // azure graph REST API endpoints
16
- static azureListRootAssignments: string = "https://management.azure.com/providers/Microsoft.Authorization/roleAssignments?api-version=2022-04-01&$filter=principalId+eq+";
16
+ static azureElevateAccess: string;
17
+ static azureListRootAssignments: string";
17
18
  };
18
19
  export class mindlineConfig {
19
20
  static environmentTag: string;
@@ -284,6 +285,22 @@ declare module "@mindline/sync" {
284
285
  resources: ResourceNode[];
285
286
  constructor(type: string, resource: string, cost: number);
286
287
  }
288
+ export class ActorArray {
289
+ actorNodes: ActorNode[];
290
+ constructor(bClearLocalStorage: boolean);
291
+ // get initial data from localStorage or file
292
+ init(bClearLocalStorage: boolean): void;
293
+ }
294
+ export class ActorNode {
295
+ type: string;
296
+ actor: string;
297
+ resource: string;
298
+ role: string;
299
+ updatedby: string;
300
+ updatedon: string;
301
+ actors: ActorNode[];
302
+ constructor(type: string, actor: string, resource: string, role: string, updatedby: string, updatedon: string);
303
+ }
287
304
  // ======================= Azure AD Graph API ===============================
288
305
  export function groupsGet(instance: IPublicClientApplication, user: User | undefined, groupSearchString: string): Promise<{ groups: Group[], error: string }>;
289
306
  export function oauth2PermissionGrantsGet(options: RequestInit, user: User, spid: string, oid: string): Promise<{grants: string, error: string}>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mindline/sync",
3
3
  "type": "module",
4
- "version": "1.0.75",
4
+ "version": "1.0.76",
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.",