@adminide-stack/core 0.1.1 → 1.0.201-alpha.0

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 (286) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +2 -2
  3. package/lib/constants/billing-plan.d.ts +1 -0
  4. package/lib/constants/billing-plan.js +5 -0
  5. package/lib/constants/billing-plan.js.map +1 -0
  6. package/lib/constants/configuration.d.ts +6 -0
  7. package/lib/constants/configuration.js +10 -0
  8. package/lib/constants/configuration.js.map +1 -0
  9. package/lib/constants/constants.d.ts +2 -7
  10. package/lib/constants/constants.js +6 -0
  11. package/lib/constants/constants.js.map +1 -0
  12. package/lib/constants/default-workspace-config.d.ts +3 -0
  13. package/lib/constants/default-workspace-config.js +7 -0
  14. package/lib/constants/default-workspace-config.js.map +1 -0
  15. package/lib/constants/index.d.ts +6 -0
  16. package/lib/constants/index.js +20 -0
  17. package/lib/constants/index.js.map +1 -0
  18. package/lib/constants/routes.d.ts +4 -0
  19. package/lib/constants/routes.js +10 -0
  20. package/lib/constants/routes.js.map +1 -0
  21. package/lib/constants/types.d.ts +19 -0
  22. package/lib/constants/types.js +23 -0
  23. package/lib/constants/types.js.map +1 -0
  24. package/lib/constants/urls.d.ts +3 -0
  25. package/lib/constants/urls.js +7 -0
  26. package/lib/constants/urls.js.map +1 -0
  27. package/lib/core/configurations/configuration.d.ts +64 -0
  28. package/lib/core/configurations/configuration.js +236 -0
  29. package/lib/core/configurations/configuration.js.map +1 -0
  30. package/lib/core/configurations/events/abstract-configuration-change-event.d.ts +6 -0
  31. package/lib/core/configurations/events/abstract-configuration-change-event.js +27 -0
  32. package/lib/core/configurations/events/abstract-configuration-change-event.js.map +1 -0
  33. package/lib/core/configurations/events/all-keys-configuration-change-event.d.ts +17 -0
  34. package/lib/core/configurations/events/all-keys-configuration-change-event.js +33 -0
  35. package/lib/core/configurations/events/all-keys-configuration-change-event.js.map +1 -0
  36. package/lib/core/configurations/events/configuration-change-event.d.ts +24 -0
  37. package/lib/core/configurations/events/configuration-change-event.js +84 -0
  38. package/lib/core/configurations/events/configuration-change-event.js.map +1 -0
  39. package/lib/core/configurations/events/index.d.ts +4 -0
  40. package/lib/core/configurations/events/index.js +17 -0
  41. package/lib/core/configurations/events/index.js.map +1 -0
  42. package/lib/core/configurations/events/organization-configuration-change-event.d.ts +15 -0
  43. package/lib/core/configurations/events/organization-configuration-change-event.js +39 -0
  44. package/lib/core/configurations/events/organization-configuration-change-event.js.map +1 -0
  45. package/lib/core/configurations/helpers/configuration.d.ts +26 -0
  46. package/lib/core/configurations/helpers/configuration.js +203 -0
  47. package/lib/core/configurations/helpers/configuration.js.map +1 -0
  48. package/lib/core/configurations/helpers/index.d.ts +1 -0
  49. package/lib/core/configurations/helpers/index.js +14 -0
  50. package/lib/core/configurations/helpers/index.js.map +1 -0
  51. package/lib/core/configurations/index.d.ts +4 -0
  52. package/lib/core/configurations/index.js +17 -0
  53. package/lib/core/configurations/index.js.map +1 -0
  54. package/lib/core/configurations/models/configuration-model.d.ts +24 -0
  55. package/lib/core/configurations/models/configuration-model.js +143 -0
  56. package/lib/core/configurations/models/configuration-model.js.map +1 -0
  57. package/lib/core/configurations/models/index.d.ts +1 -0
  58. package/lib/core/configurations/models/index.js +14 -0
  59. package/lib/core/configurations/models/index.js.map +1 -0
  60. package/lib/core/disposable.d.ts +28 -0
  61. package/lib/core/disposable.js +82 -0
  62. package/lib/core/disposable.js.map +1 -0
  63. package/lib/core/event.d.ts +76 -0
  64. package/lib/core/event.js +262 -0
  65. package/lib/core/event.js.map +1 -0
  66. package/lib/core/event.test.d.ts +1 -0
  67. package/lib/core/event.test.js +15 -0
  68. package/lib/core/event.test.js.map +1 -0
  69. package/lib/core/index.d.ts +6 -0
  70. package/lib/core/index.js +19 -0
  71. package/lib/core/index.js.map +1 -0
  72. package/lib/core/organization/configuration.d.ts +31 -0
  73. package/lib/core/organization/configuration.js +87 -0
  74. package/lib/core/organization/configuration.js.map +1 -0
  75. package/lib/core/organization/helpers/index.d.ts +1 -0
  76. package/lib/core/organization/helpers/index.js +14 -0
  77. package/lib/core/organization/helpers/index.js.map +1 -0
  78. package/lib/core/organization/helpers/organization-helpers.d.ts +6 -0
  79. package/lib/core/organization/helpers/organization-helpers.js +34 -0
  80. package/lib/core/organization/helpers/organization-helpers.js.map +1 -0
  81. package/lib/core/organization/index.d.ts +3 -0
  82. package/lib/core/organization/index.js +16 -0
  83. package/lib/core/organization/index.js.map +1 -0
  84. package/lib/core/organization/organization.d.ts +31 -0
  85. package/lib/core/organization/organization.js +135 -0
  86. package/lib/core/organization/organization.js.map +1 -0
  87. package/lib/core/path.d.ts +58 -0
  88. package/lib/core/path.js +189 -0
  89. package/lib/core/path.js.map +1 -0
  90. package/lib/core/path.test.d.ts +1 -0
  91. package/lib/core/path.test.js +205 -0
  92. package/lib/core/path.test.js.map +1 -0
  93. package/lib/core/types.d.ts +1 -0
  94. package/lib/core/types.js +3 -0
  95. package/lib/core/types.js.map +1 -0
  96. package/lib/core/uri.d.ts +68 -0
  97. package/lib/core/uri.js +158 -0
  98. package/lib/core/uri.js.map +1 -0
  99. package/lib/core/uri.test.d.ts +1 -0
  100. package/lib/core/uri.test.js +136 -0
  101. package/lib/core/uri.test.js.map +1 -0
  102. package/lib/enums/connection-status.d.ts +6 -0
  103. package/lib/enums/connection-status.js +11 -0
  104. package/lib/enums/connection-status.js.map +1 -0
  105. package/lib/enums/index.d.ts +7 -0
  106. package/lib/enums/index.js +20 -0
  107. package/lib/enums/index.js.map +1 -0
  108. package/lib/enums/integration-configuration-status.d.ts +5 -0
  109. package/lib/enums/integration-configuration-status.js +10 -0
  110. package/lib/enums/integration-configuration-status.js.map +1 -0
  111. package/lib/enums/integrations-configuration-steps.d.ts +7 -0
  112. package/lib/enums/integrations-configuration-steps.js +12 -0
  113. package/lib/enums/integrations-configuration-steps.js.map +1 -0
  114. package/lib/enums/integrations-connection-names.d.ts +11 -0
  115. package/lib/enums/integrations-connection-names.js +17 -0
  116. package/lib/enums/integrations-connection-names.js.map +1 -0
  117. package/lib/enums/integrations.d.ts +9 -0
  118. package/lib/enums/integrations.js +14 -0
  119. package/lib/enums/integrations.js.map +1 -0
  120. package/lib/enums/permissions.d.ts +7 -0
  121. package/lib/enums/permissions.js +12 -0
  122. package/lib/enums/permissions.js.map +1 -0
  123. package/lib/enums/team-member-status.d.ts +4 -0
  124. package/lib/enums/team-member-status.js +9 -0
  125. package/lib/enums/team-member-status.js.map +1 -0
  126. package/lib/errors/auth-error-messages.d.ts +25 -0
  127. package/lib/errors/auth-error-messages.js +31 -0
  128. package/lib/errors/auth-error-messages.js.map +1 -0
  129. package/lib/errors/auth-error.d.ts +8 -0
  130. package/lib/errors/auth-error.js +13 -0
  131. package/lib/errors/auth-error.js.map +1 -0
  132. package/lib/errors/index.d.ts +2 -0
  133. package/lib/errors/index.js +15 -0
  134. package/lib/errors/index.js.map +1 -0
  135. package/lib/index.d.ts +6 -0
  136. package/lib/index.js +19 -143
  137. package/lib/index.js.map +1 -1
  138. package/lib/interfaces/apollo-context.d.ts +48 -0
  139. package/lib/interfaces/apollo-context.js +3 -0
  140. package/lib/interfaces/apollo-context.js.map +1 -0
  141. package/lib/interfaces/common.d.ts +7 -0
  142. package/lib/interfaces/common.js +3 -0
  143. package/lib/interfaces/common.js.map +1 -0
  144. package/lib/interfaces/configuration/configuration-file-service.d.ts +5 -0
  145. package/lib/interfaces/configuration/configuration-file-service.js +3 -0
  146. package/lib/interfaces/configuration/configuration-file-service.js.map +1 -0
  147. package/lib/interfaces/configuration/configuration-server-service.d.ts +10 -0
  148. package/lib/interfaces/configuration/configuration-server-service.js +3 -0
  149. package/lib/interfaces/configuration/configuration-server-service.js.map +1 -0
  150. package/lib/interfaces/configuration/configuration.d.ts +39 -0
  151. package/lib/interfaces/configuration/configuration.js +51 -0
  152. package/lib/interfaces/configuration/configuration.js.map +1 -0
  153. package/lib/interfaces/configuration/configuraton-service.d.ts +60 -0
  154. package/lib/interfaces/configuration/configuraton-service.js +3 -0
  155. package/lib/interfaces/configuration/configuraton-service.js.map +1 -0
  156. package/lib/interfaces/configuration/event.d.ts +12 -0
  157. package/lib/interfaces/configuration/event.js +3 -0
  158. package/lib/interfaces/configuration/event.js.map +1 -0
  159. package/lib/interfaces/configuration/index.d.ts +5 -0
  160. package/lib/interfaces/configuration/index.js +18 -0
  161. package/lib/interfaces/configuration/index.js.map +1 -0
  162. package/lib/interfaces/contex-key-service.d.ts +2 -0
  163. package/lib/interfaces/contex-key-service.js +3 -0
  164. package/lib/interfaces/contex-key-service.js.map +1 -0
  165. package/lib/interfaces/database-migration.d.ts +8 -0
  166. package/lib/interfaces/database-migration.js +3 -0
  167. package/lib/interfaces/database-migration.js.map +1 -0
  168. package/lib/interfaces/enum.d.ts +26 -0
  169. package/lib/interfaces/enum.js +71 -0
  170. package/lib/interfaces/enum.js.map +1 -0
  171. package/lib/interfaces/environment/argv.d.ts +6 -0
  172. package/lib/interfaces/environment/argv.js +3 -0
  173. package/lib/interfaces/environment/argv.js.map +1 -0
  174. package/lib/interfaces/environment/environment-service.d.ts +7 -0
  175. package/lib/interfaces/environment/environment-service.js +3 -0
  176. package/lib/interfaces/environment/environment-service.js.map +1 -0
  177. package/lib/interfaces/environment/index.d.ts +2 -0
  178. package/lib/interfaces/environment/index.js +15 -0
  179. package/lib/interfaces/environment/index.js.map +1 -0
  180. package/lib/interfaces/generated/generated-models.d.ts +10956 -0
  181. package/lib/interfaces/generated/generated-models.js +3980 -0
  182. package/lib/interfaces/generated/generated-models.js.map +1 -0
  183. package/lib/interfaces/generated/index.d.ts +1 -0
  184. package/lib/interfaces/generated/index.js +14 -0
  185. package/lib/interfaces/generated/index.js.map +1 -0
  186. package/lib/interfaces/index.d.ts +17 -1
  187. package/lib/interfaces/index.js +30 -0
  188. package/lib/interfaces/index.js.map +1 -0
  189. package/lib/interfaces/lifecycle-service.d.ts +1 -0
  190. package/lib/interfaces/lifecycle-service.js +8 -0
  191. package/lib/interfaces/lifecycle-service.js.map +1 -0
  192. package/lib/interfaces/log/index.d.ts +1 -0
  193. package/lib/interfaces/log/index.js +14 -0
  194. package/lib/interfaces/log/index.js.map +1 -0
  195. package/lib/interfaces/log/log-service.d.ts +16 -0
  196. package/lib/interfaces/log/log-service.js +3 -0
  197. package/lib/interfaces/log/log-service.js.map +1 -0
  198. package/lib/interfaces/nav-items.d.ts +5 -0
  199. package/lib/interfaces/nav-items.js +3 -0
  200. package/lib/interfaces/nav-items.js.map +1 -0
  201. package/lib/interfaces/organization/index.d.ts +3 -0
  202. package/lib/interfaces/organization/index.js +16 -0
  203. package/lib/interfaces/organization/index.js.map +1 -0
  204. package/lib/interfaces/organization/organization-context-service.d.ts +65 -0
  205. package/lib/interfaces/organization/organization-context-service.js +3 -0
  206. package/lib/interfaces/organization/organization-context-service.js.map +1 -0
  207. package/lib/interfaces/organization/organization-context.d.ts +39 -0
  208. package/lib/interfaces/organization/organization-context.js +31 -0
  209. package/lib/interfaces/organization/organization-context.js.map +1 -0
  210. package/lib/interfaces/organization/organizations-context.d.ts +35 -0
  211. package/lib/interfaces/organization/organizations-context.js +3 -0
  212. package/lib/interfaces/organization/organizations-context.js.map +1 -0
  213. package/lib/interfaces/page-store.d.ts +16 -0
  214. package/lib/interfaces/page-store.js +3 -0
  215. package/lib/interfaces/page-store.js.map +1 -0
  216. package/lib/interfaces/permissions.d.ts +2 -0
  217. package/lib/interfaces/permissions.js +3 -0
  218. package/lib/interfaces/permissions.js.map +1 -0
  219. package/lib/interfaces/preferences-service.d.ts +40 -0
  220. package/lib/interfaces/preferences-service.js +3 -0
  221. package/lib/interfaces/preferences-service.js.map +1 -0
  222. package/lib/interfaces/service.d.ts +18 -0
  223. package/lib/interfaces/service.js +3 -0
  224. package/lib/interfaces/service.js.map +1 -0
  225. package/lib/interfaces/workbench-exports.d.ts +5 -0
  226. package/lib/interfaces/workbench-exports.js +6 -0
  227. package/lib/interfaces/workbench-exports.js.map +1 -0
  228. package/lib/modules/account-api/enums/index.d.ts +51 -0
  229. package/lib/modules/account-api/enums/index.js +56 -0
  230. package/lib/modules/account-api/enums/index.js.map +1 -0
  231. package/lib/modules/account-api/index.d.ts +1 -0
  232. package/lib/modules/account-api/index.js +14 -0
  233. package/lib/modules/account-api/index.js.map +1 -0
  234. package/lib/modules/billing-api/enums/index.d.ts +22 -0
  235. package/lib/modules/billing-api/enums/index.js +28 -0
  236. package/lib/modules/billing-api/enums/index.js.map +1 -0
  237. package/lib/modules/billing-api/index.d.ts +1 -0
  238. package/lib/modules/billing-api/index.js +14 -0
  239. package/lib/modules/billing-api/index.js.map +1 -0
  240. package/lib/modules/index.d.ts +2 -0
  241. package/lib/modules/index.js +15 -0
  242. package/lib/modules/index.js.map +1 -0
  243. package/lib/services/abstract-configuration.d.ts +54 -0
  244. package/lib/services/abstract-configuration.js +80 -0
  245. package/lib/services/abstract-configuration.js.map +1 -0
  246. package/lib/services/abstract-organization-context-service.d.ts +40 -0
  247. package/lib/services/abstract-organization-context-service.js +115 -0
  248. package/lib/services/abstract-organization-context-service.js.map +1 -0
  249. package/lib/services/index.d.ts +2 -0
  250. package/lib/services/index.js +15 -0
  251. package/lib/services/index.js.map +1 -0
  252. package/lib/utils/configuration-utils.d.ts +4 -0
  253. package/lib/utils/configuration-utils.js +15 -0
  254. package/lib/utils/configuration-utils.js.map +1 -0
  255. package/lib/utils/date-utils.d.ts +1 -0
  256. package/lib/utils/date-utils.js +9 -0
  257. package/lib/utils/date-utils.js.map +1 -0
  258. package/lib/utils/flatten-utils.d.ts +1 -0
  259. package/lib/utils/flatten-utils.js +20 -0
  260. package/lib/utils/flatten-utils.js.map +1 -0
  261. package/lib/utils/generate-uri.d.ts +35 -0
  262. package/lib/utils/generate-uri.js +49 -0
  263. package/lib/utils/generate-uri.js.map +1 -0
  264. package/lib/utils/generated-settings-id.d.ts +2 -0
  265. package/lib/utils/generated-settings-id.js +12 -0
  266. package/lib/utils/generated-settings-id.js.map +1 -0
  267. package/lib/utils/index.d.ts +9 -0
  268. package/lib/utils/index.js +22 -0
  269. package/lib/utils/index.js.map +1 -0
  270. package/lib/utils/omit-deep.d.ts +1 -0
  271. package/lib/utils/omit-deep.js +16 -0
  272. package/lib/utils/omit-deep.js.map +1 -0
  273. package/lib/utils/roles-utils.d.ts +2 -0
  274. package/lib/utils/roles-utils.js +11 -0
  275. package/lib/utils/roles-utils.js.map +1 -0
  276. package/lib/utils/uri.d.ts +3 -0
  277. package/lib/utils/uri.js +21 -0
  278. package/lib/utils/uri.js.map +1 -0
  279. package/lib/utils/utils.d.ts +3 -0
  280. package/lib/utils/utils.js +37 -0
  281. package/lib/utils/utils.js.map +1 -0
  282. package/lib/utils/validations.d.ts +1 -0
  283. package/lib/utils/validations.js +9 -0
  284. package/lib/utils/validations.js.map +1 -0
  285. package/package.json +34 -25
  286. package/lib/interfaces/workspace.d.ts +0 -37
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IPreDefineAccountPermissions = void 0;
4
+ var IPreDefineAccountPermissions;
5
+ (function (IPreDefineAccountPermissions) {
6
+ IPreDefineAccountPermissions["secureUser"] = "account.user.secure";
7
+ IPreDefineAccountPermissions["guestUser"] = "account.user.guest";
8
+ IPreDefineAccountPermissions["inviteMember"] = "organization.teams.inviteMember";
9
+ IPreDefineAccountPermissions["viewTeams"] = "organization.teams.view";
10
+ IPreDefineAccountPermissions["createTeams"] = "organization.teams.create";
11
+ IPreDefineAccountPermissions["editTeams"] = "organization.teams.edit";
12
+ IPreDefineAccountPermissions["deleteTeams"] = "organization.teams.delete";
13
+ IPreDefineAccountPermissions["manageTeams"] = "organization.teams.manage";
14
+ IPreDefineAccountPermissions["accessTeamDashboard"] = "organization.teams.dashboard.access";
15
+ IPreDefineAccountPermissions["viewProjects"] = "organization.projects.view";
16
+ IPreDefineAccountPermissions["createProjects"] = "organization.projects.create";
17
+ IPreDefineAccountPermissions["editProjects"] = "organization.projects.edit";
18
+ IPreDefineAccountPermissions["deleteProjects"] = "organization.projects.delete";
19
+ IPreDefineAccountPermissions["manageProjects"] = "organization.projects.manage";
20
+ IPreDefineAccountPermissions["viewProjectStatus"] = "organization.projects.status.view";
21
+ IPreDefineAccountPermissions["viewMembers"] = "organization.members.view";
22
+ IPreDefineAccountPermissions["createMembers"] = "organization.members.create";
23
+ IPreDefineAccountPermissions["editMembers"] = "organization.members.edit";
24
+ IPreDefineAccountPermissions["deleteMembers"] = "organization.members.delete";
25
+ IPreDefineAccountPermissions["manageMembers"] = "organization.members.manage";
26
+ IPreDefineAccountPermissions["viewClients"] = "organization.clients.view";
27
+ IPreDefineAccountPermissions["createClients"] = "organization.clients.create";
28
+ IPreDefineAccountPermissions["editClients"] = "organization.clients.edit";
29
+ IPreDefineAccountPermissions["deleteClients"] = "organization.clients.delete";
30
+ IPreDefineAccountPermissions["manageClients"] = "organization.clients.manage";
31
+ IPreDefineAccountPermissions["viewTasks"] = "organization.tasks.view";
32
+ IPreDefineAccountPermissions["createTasks"] = "organization.tasks.create";
33
+ IPreDefineAccountPermissions["editTasks"] = "organization.tasks.edit";
34
+ IPreDefineAccountPermissions["deleteTasks"] = "organization.tasks.delete";
35
+ IPreDefineAccountPermissions["manageTasks"] = "organization.tasks.manage";
36
+ IPreDefineAccountPermissions["viewTags"] = "organization.tags.view";
37
+ IPreDefineAccountPermissions["createTags"] = "organization.tags.create";
38
+ IPreDefineAccountPermissions["editTags"] = "organization.tags.edit";
39
+ IPreDefineAccountPermissions["deleteTags"] = "organization.tags.delete";
40
+ IPreDefineAccountPermissions["manageTags"] = "organization.tags.manage";
41
+ IPreDefineAccountPermissions["viewOrganization"] = "organization.view";
42
+ IPreDefineAccountPermissions["createOrganization"] = "organization.create";
43
+ IPreDefineAccountPermissions["editOrganization"] = "organization.edit";
44
+ IPreDefineAccountPermissions["deleteOrganization"] = "organization.delete";
45
+ IPreDefineAccountPermissions["manageOrganization"] = "organization.manage";
46
+ IPreDefineAccountPermissions["viewRoles"] = "organization.roles.view";
47
+ IPreDefineAccountPermissions["editRoles"] = "organization.roles.edit";
48
+ IPreDefineAccountPermissions["viewPermissions"] = "organization.permissions.view";
49
+ IPreDefineAccountPermissions["editPermissions"] = "organization.permissions.edit";
50
+ IPreDefineAccountPermissions["viewPolicies"] = "organization.policies.view";
51
+ IPreDefineAccountPermissions["editPolicies"] = "organization.policies.edit";
52
+ IPreDefineAccountPermissions["viewSettings"] = "organization.settings.view";
53
+ IPreDefineAccountPermissions["editSettings"] = "organization.settings.edit";
54
+ IPreDefineAccountPermissions["viewReports"] = "organization.reports.view";
55
+ })(IPreDefineAccountPermissions = exports.IPreDefineAccountPermissions || (exports.IPreDefineAccountPermissions = {}));
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/account-api/enums/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,4BA0DX;AA1DD,WAAY,4BAA4B;IACtC,kEAAkC,CAAA;IAClC,gEAAgC,CAAA;IAChC,gFAAgD,CAAA;IAChD,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,yEAAyC,CAAA;IACzC,2FAA2D,CAAA;IAE3D,2EAA2C,CAAA;IAC3C,+EAA+C,CAAA;IAC/C,2EAA2C,CAAA;IAC3C,+EAA+C,CAAA;IAC/C,+EAA+C,CAAA;IAC/C,uFAAuD,CAAA;IAEvD,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,6EAA6C,CAAA;IAE7C,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,6EAA6C,CAAA;IAE7C,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,qEAAqC,CAAA;IACrC,yEAAyC,CAAA;IACzC,yEAAyC,CAAA;IAEzC,mEAAmC,CAAA;IACnC,uEAAuC,CAAA;IACvC,mEAAmC,CAAA;IACnC,uEAAuC,CAAA;IACvC,uEAAuC,CAAA;IAEvC,sEAAsC,CAAA;IACtC,0EAA0C,CAAA;IAC1C,sEAAsC,CAAA;IACtC,0EAA0C,CAAA;IAC1C,0EAA0C,CAAA;IAE1C,qEAAqC,CAAA;IACrC,qEAAsC,CAAA;IACtC,iFAAiD,CAAA;IACjD,iFAAiD,CAAA;IACjD,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAC3C,2EAA2C,CAAA;IAE3C,yEAAyC,CAAA;AAC3C,CAAC,EA1DW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QA0DvC"}
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./enums"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/account-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB"}
@@ -0,0 +1,22 @@
1
+ export declare enum IBillingModules {
2
+ subscriptions = "subscriptions",
3
+ paymentMethods = "paymentMethods",
4
+ paymentProfile = "paymentProfile"
5
+ }
6
+ export declare enum IPreDefineBillingPermissions {
7
+ viewSubscriptions = "organization.billing.subscriptions.view",
8
+ createSubscriptions = "organization.billing.subscriptions.create",
9
+ editSubscriptions = "organization.billing.subscriptions.edit",
10
+ deleteSubscriptions = "organization.billing.subscriptions.delete",
11
+ manageSubscriptions = "organization.billing.subscriptions.manage",
12
+ viewPaymentMethods = "organization.billing.paymentMethods.view",
13
+ createPaymentMethods = "organization.billing.paymentMethods.create",
14
+ editPaymentMethods = "organization.billing.paymentMethods.edit",
15
+ deletePaymentMethods = "organization.billing.paymentMethods.delete",
16
+ managePaymentMethods = "organization.billing.paymentMethods.manage",
17
+ viewPaymentProfile = "billing.paymentProfile.view",
18
+ createPaymentProfile = "billing.paymentProfile.create",
19
+ editPaymentProfile = "billing.paymentProfile.edit",
20
+ deletePaymentProfile = "billing.paymentProfile.delete",
21
+ managePaymentProfile = "billing.paymentProfile.manage"
22
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IPreDefineBillingPermissions = exports.IBillingModules = void 0;
4
+ var IBillingModules;
5
+ (function (IBillingModules) {
6
+ IBillingModules["subscriptions"] = "subscriptions";
7
+ IBillingModules["paymentMethods"] = "paymentMethods";
8
+ IBillingModules["paymentProfile"] = "paymentProfile";
9
+ })(IBillingModules = exports.IBillingModules || (exports.IBillingModules = {}));
10
+ var IPreDefineBillingPermissions;
11
+ (function (IPreDefineBillingPermissions) {
12
+ IPreDefineBillingPermissions["viewSubscriptions"] = "organization.billing.subscriptions.view";
13
+ IPreDefineBillingPermissions["createSubscriptions"] = "organization.billing.subscriptions.create";
14
+ IPreDefineBillingPermissions["editSubscriptions"] = "organization.billing.subscriptions.edit";
15
+ IPreDefineBillingPermissions["deleteSubscriptions"] = "organization.billing.subscriptions.delete";
16
+ IPreDefineBillingPermissions["manageSubscriptions"] = "organization.billing.subscriptions.manage";
17
+ IPreDefineBillingPermissions["viewPaymentMethods"] = "organization.billing.paymentMethods.view";
18
+ IPreDefineBillingPermissions["createPaymentMethods"] = "organization.billing.paymentMethods.create";
19
+ IPreDefineBillingPermissions["editPaymentMethods"] = "organization.billing.paymentMethods.edit";
20
+ IPreDefineBillingPermissions["deletePaymentMethods"] = "organization.billing.paymentMethods.delete";
21
+ IPreDefineBillingPermissions["managePaymentMethods"] = "organization.billing.paymentMethods.manage";
22
+ IPreDefineBillingPermissions["viewPaymentProfile"] = "billing.paymentProfile.view";
23
+ IPreDefineBillingPermissions["createPaymentProfile"] = "billing.paymentProfile.create";
24
+ IPreDefineBillingPermissions["editPaymentProfile"] = "billing.paymentProfile.edit";
25
+ IPreDefineBillingPermissions["deletePaymentProfile"] = "billing.paymentProfile.delete";
26
+ IPreDefineBillingPermissions["managePaymentProfile"] = "billing.paymentProfile.manage";
27
+ })(IPreDefineBillingPermissions = exports.IPreDefineBillingPermissions || (exports.IPreDefineBillingPermissions = {}));
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/billing-api/enums/index.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,kDAA8B,CAAA;IAC9B,oDAAiC,CAAA;IACjC,oDAAgC,CAAA;AACpC,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,4BAkBX;AAlBD,WAAY,4BAA4B;IACpC,6FAA4D,CAAA;IAC5D,iGAAgE,CAAA;IAChE,6FAA4D,CAAA;IAC5D,iGAAgE,CAAA;IAChE,iGAAgE,CAAA;IAEhE,+FAA8D,CAAA;IAC9D,mGAAkE,CAAA;IAClE,+FAA8D,CAAA;IAC9D,mGAAkE,CAAA;IAClE,mGAAkE,CAAA;IAElE,kFAAiD,CAAA;IACjD,sFAAqD,CAAA;IACrD,kFAAiD,CAAA;IACjD,sFAAqD,CAAA;IACrD,sFAAqD,CAAA;AACzD,CAAC,EAlBW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAkBvC"}
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./enums"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/billing-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from './account-api';
2
+ export * from './billing-api';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./account-api"), exports);
14
+ __exportStar(require("./billing-api"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B"}
@@ -0,0 +1,54 @@
1
+ import { IClientConfigurationService, IConfigurationChangeEvent, IConfigurationOverrides, ConfigurationTarget, IConfigurationData, IConfigurationModel, IOrganizationResource, IIResourceData, IIConfigurationModel, IOrganizationContext } from '../interfaces';
2
+ import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
3
+ import { Disposable } from '@workbench-stack/core';
4
+ import { OrganizationConfiguration as Configuration, ConfigurationModel } from '../core';
5
+ import { ResourceMap } from '@vscode-alt/monaco-editor/esm/vs/base/common/map';
6
+ import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
7
+ import { CdmLogger } from '@cdm-logger/core';
8
+ import { Event, Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
9
+ declare type ILogger = CdmLogger.ILogger;
10
+ export declare abstract class AbstractOrganizationConfigurationClientService extends Disposable implements IClientConfigurationService, IDisposable {
11
+ protected _configuration: Configuration;
12
+ protected organization: IOrganizationContext;
13
+ protected logger: ILogger;
14
+ constructor(logger: ILogger);
15
+ protected readonly _onDidChangeConfiguration: Emitter<IConfigurationChangeEvent>;
16
+ readonly onDidChangeConfiguration: Event<IConfigurationChangeEvent>;
17
+ abstract initialize(organizationContext: any): any;
18
+ abstract loadResourceConfiguration(resources: IIResourceData[], force: any): any;
19
+ get configuration(): Configuration;
20
+ set configuration(configuration: Configuration);
21
+ getConfigurationData(): IConfigurationData;
22
+ getValue<T>(): T;
23
+ getValue<T>(section: string): T;
24
+ getValue<T>(overrides: IConfigurationOverrides): T;
25
+ getValue<T>(section: string, overrides: IConfigurationOverrides): T;
26
+ abstract updateValue(key: string, value: any): Promise<void>;
27
+ abstract updateValue(key: string, value: any, overrides: IConfigurationOverrides): Promise<void>;
28
+ abstract updateValue(key: string, value: any, target: ConfigurationTarget): Promise<void>;
29
+ abstract updateValue(key: string, value: any, overrides: IConfigurationOverrides, target: ConfigurationTarget): Promise<void>;
30
+ abstract updateValue(key: string, value: any, overrides: IConfigurationOverrides, target: ConfigurationTarget, donotNotifyError: boolean): Promise<void>;
31
+ abstract updateValue(key: string, value: any, arg3?: any, arg4?: any, donotNotifyError?: any): Promise<void>;
32
+ abstract reloadConfiguration(resource?: IOrganizationResource): Promise<void>;
33
+ abstract externalConfiguration?(resource: URI): IConfigurationModel;
34
+ inspect<T>(key: string, overrides?: IConfigurationOverrides): {
35
+ default: T;
36
+ user: T;
37
+ application?: T;
38
+ machine?: T;
39
+ organization?: T;
40
+ organizationResource?: T;
41
+ memory?: T;
42
+ value: T;
43
+ };
44
+ keys(): {
45
+ default: string[];
46
+ user: string[];
47
+ organization: string[];
48
+ organizationResource: string[];
49
+ };
50
+ extAcceptConfigurationChanged(data: IConfigurationData, event: IConfigurationChangeEvent): void;
51
+ static parse(data: IConfigurationData, organization: IOrganizationContext, previousConfiguration?: ConfigurationModel, prevResourceConfigurations?: ResourceMap<ConfigurationModel>): Configuration;
52
+ protected static parseConfigurationModel(model: IIConfigurationModel): ConfigurationModel;
53
+ }
54
+ export {};
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var AbstractOrganizationConfigurationClientService_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AbstractOrganizationConfigurationClientService = void 0;
17
+ const inversify_1 = require("inversify");
18
+ const core_1 = require("@workbench-stack/core");
19
+ const core_2 = require("../core");
20
+ const map_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/map");
21
+ const uri_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/uri");
22
+ const event_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/event");
23
+ let AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = class AbstractOrganizationConfigurationClientService extends core_1.Disposable {
24
+ constructor(logger) {
25
+ super();
26
+ this._onDidChangeConfiguration = this._register(new event_1.Emitter());
27
+ this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
28
+ this.logger = logger.child({ className: 'OrganizationConfigurationClientService' });
29
+ }
30
+ get configuration() {
31
+ return this._configuration;
32
+ }
33
+ set configuration(configuration) {
34
+ this._configuration = configuration;
35
+ }
36
+ getConfigurationData() {
37
+ return this.configuration.toData();
38
+ }
39
+ getValue(arg1, arg2) {
40
+ const section = typeof arg1 === 'string' ? arg1 : undefined;
41
+ const overrides = core_2.isConfigurationOverrides(arg1) ? arg1 : core_2.isConfigurationOverrides(arg2) ? arg2 : {};
42
+ if (overrides === null || overrides === void 0 ? void 0 : overrides.externalResource) {
43
+ const externalConfiguration = this.externalConfiguration(overrides.externalResource);
44
+ return this.configuration.getValue(section, overrides, undefined, externalConfiguration);
45
+ }
46
+ return this.configuration.getValue(section, overrides);
47
+ }
48
+ inspect(key, overrides) {
49
+ return this.configuration.inspect(key, overrides);
50
+ }
51
+ keys() {
52
+ return this.configuration.keys();
53
+ }
54
+ extAcceptConfigurationChanged(data, event) {
55
+ this._configuration = AbstractOrganizationConfigurationClientService_1.parse(data, this.organization);
56
+ // this._confugrationScopes = data.configurationScopes;
57
+ this._onDidChangeConfiguration.fire(event);
58
+ }
59
+ static parse(data, organization, previousConfiguration, prevResourceConfigurations) {
60
+ const defaultConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.defaults);
61
+ const userConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.user);
62
+ const machineConfiguration = data.machine ? AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.machine) : new core_2.ConfigurationModel();
63
+ const organizationConfiguration = AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.organization);
64
+ const resources = Object.keys(data.resources).reduce((result, key) => {
65
+ result.set(uri_1.URI.parse(key), AbstractOrganizationConfigurationClientService_1.parseConfigurationModel(data.resources[key]));
66
+ return result;
67
+ }, new map_1.ResourceMap());
68
+ return new core_2.OrganizationConfiguration(defaultConfiguration, userConfiguration, machineConfiguration, organizationConfiguration, resources, previousConfiguration || new core_2.ConfigurationModel(), prevResourceConfigurations || new map_1.ResourceMap(), organization);
69
+ }
70
+ static parseConfigurationModel(model) {
71
+ return new core_2.ConfigurationModel(model.contents, model.keys, model.overrides).freeze();
72
+ }
73
+ };
74
+ AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService_1 = __decorate([
75
+ inversify_1.injectable(),
76
+ __param(0, inversify_1.inject('Logger')),
77
+ __metadata("design:paramtypes", [Object])
78
+ ], AbstractOrganizationConfigurationClientService);
79
+ exports.AbstractOrganizationConfigurationClientService = AbstractOrganizationConfigurationClientService;
80
+ //# sourceMappingURL=abstract-configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract-configuration.js","sourceRoot":"","sources":["../../src/services/abstract-configuration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAA+C;AAM/C,gDAAmD;AACnD,kCAAmH;AACnH,0EAA+E;AAC/E,0EAAuE;AAEvE,8EAAoF;AAKpF,IAAsB,8CAA8C,sDAApE,MAAsB,8CAA+C,SAAQ,iBAAU;IAMnF,YAEI,MAAe;QAEf,KAAK,EAAE,CAAC;QAIO,8BAAyB,GAAuC,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAA6B,CAAC,CAAC;QAC5H,6BAAwB,GAAqC,IAAI,CAAC,yBAAyB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EACjD,0BAA0B,IAAI,IAAI,iBAAW,EAAsB,EACnE,YAAY,CACf,CAAC;IACN,CAAC;IAES,MAAM,CAAC,uBAAuB,CAAC,KAA2B;QAChE,OAAO,IAAI,yBAAkB,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC;IACxF,CAAC;CACJ,CAAA;AA7GqB,8CAA8C;IADnE,sBAAU,EAAE;IAQJ,WAAA,kBAAM,CAAC,QAAQ,CAAC,CAAA;;GAPH,8CAA8C,CA6GnE;AA7GqB,wGAA8C"}
@@ -0,0 +1,40 @@
1
+ import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
2
+ import { Event, Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
3
+ import { Disposable } from '@workbench-stack/core';
4
+ import { Barrier } from '@vscode-alt/monaco-editor/esm/vs/base/common/async';
5
+ import { CdmLogger } from '@cdm-logger/core';
6
+ import { OrganizationContext } from '../core';
7
+ import { IConfigurationChangeEvent, IOrganizationIdentifier, IOrganizationData, IClientOrganizationContextService, ApplicationState, IOrganizationResource, IOrganizationResourceCreationData, IOrganizationResourcesChangeEvent, ISingleResourceOrganizationIdentifier } from '../interfaces';
8
+ declare type ILogger = CdmLogger.ILogger;
9
+ export declare abstract class AbstractOrganizationContextService extends Disposable implements IClientOrganizationContextService {
10
+ protected organizationContext: OrganizationContext;
11
+ protected completeOrganizationBarrier: Barrier;
12
+ protected updateOrganizationBarrier: Barrier;
13
+ protected logger: ILogger;
14
+ protected readonly _onDidChangeConfiguration: Emitter<IConfigurationChangeEvent>;
15
+ readonly onDidChangeConfiguration: Event<IConfigurationChangeEvent>;
16
+ protected readonly _onDidChangeOrganizationResources: Emitter<IOrganizationResourcesChangeEvent>;
17
+ readonly onDidChangeOrganizationResources: Event<IOrganizationResourcesChangeEvent>;
18
+ protected readonly _onDidChangeOrganizationName: Emitter<string>;
19
+ readonly onDidChangeOrganizationName: Event<string>;
20
+ protected readonly _onDidChangeApplicationState: Emitter<ApplicationState>;
21
+ readonly onDidChangeApplicationState: Event<ApplicationState>;
22
+ constructor(logger: ILogger);
23
+ abstract initialize(args: any): any;
24
+ getCompleteOrganization(): Promise<OrganizationContext>;
25
+ getOrganization(): OrganizationContext;
26
+ getApplicationState(): ApplicationState;
27
+ getOrganizationResource(resource: URI): IOrganizationResource | null;
28
+ abstract addResources(resourcesToAdd: IOrganizationResourceCreationData[], index?: number): Promise<void>;
29
+ abstract removeResources(resourcesToRemove: URI[]): Promise<void>;
30
+ abstract updateResources(resourcesToAdd: IOrganizationResourceCreationData[], resourcesToRemove: URI[], index?: number): Promise<void>;
31
+ isInsideOrganization(resource: URI): boolean;
32
+ isCurrentOrganization(organizationIdentifier: ISingleResourceOrganizationIdentifier | IOrganizationIdentifier): boolean;
33
+ extAcceptChangedApplicationState(organizationContext: IOrganizationData, event: ApplicationState): void;
34
+ extAcceptChangedOrganizationResources(organizationContext: IOrganizationData, event: IOrganizationResourcesChangeEvent): void;
35
+ extAcceptChangedOrganizationName(organizationContext: IOrganizationData): void;
36
+ protected releaseOrganizationBarrier(): void;
37
+ protected releaseUpdateOrganizationBarrier(): void;
38
+ protected reviveOrganizationUris(organizationData: IOrganizationData): OrganizationContext;
39
+ }
40
+ export {};
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AbstractOrganizationContextService = void 0;
16
+ const uri_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/uri");
17
+ const event_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/event");
18
+ // import { Disposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
19
+ const core_1 = require("@workbench-stack/core");
20
+ const async_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/async");
21
+ const inversify_1 = require("inversify");
22
+ const core_2 = require("../core");
23
+ const core_3 = require("@common-stack/core");
24
+ const resources_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/resources");
25
+ const helpers_1 = require("../core/organization/helpers");
26
+ let AbstractOrganizationContextService = class AbstractOrganizationContextService extends core_1.Disposable {
27
+ constructor(logger) {
28
+ super();
29
+ this._onDidChangeConfiguration = this._register(new event_1.Emitter());
30
+ this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
31
+ this._onDidChangeOrganizationResources = this._register(new event_1.Emitter());
32
+ this.onDidChangeOrganizationResources = this._onDidChangeOrganizationResources.event;
33
+ this._onDidChangeOrganizationName = this._register(new event_1.Emitter());
34
+ this.onDidChangeOrganizationName = this._onDidChangeOrganizationName.event;
35
+ this._onDidChangeApplicationState = this._register(new event_1.Emitter());
36
+ this.onDidChangeApplicationState = this._onDidChangeApplicationState.event;
37
+ this.logger = logger.child({ className: 'AbstractOrganizationService' });
38
+ this.completeOrganizationBarrier = new async_1.Barrier();
39
+ }
40
+ getCompleteOrganization() {
41
+ return this.completeOrganizationBarrier.wait().then(() => this.getOrganization());
42
+ }
43
+ getOrganization() {
44
+ return this.organizationContext;
45
+ }
46
+ getApplicationState() {
47
+ // OrganizationContext has configuration file
48
+ if (this.organizationContext.configuration) {
49
+ return 3 /* ORGANIZATION */;
50
+ }
51
+ // Resource has single root
52
+ if (this.organizationContext.resources.length === 1) {
53
+ return 2 /* RESOURCE */;
54
+ }
55
+ // Empty
56
+ return 1 /* EMPTY */;
57
+ }
58
+ getOrganizationResource(resource) {
59
+ return this.organizationContext.getResource(resource);
60
+ }
61
+ isInsideOrganization(resource) {
62
+ return !!this.getOrganizationResource(resource);
63
+ }
64
+ isCurrentOrganization(organizationIdentifier) {
65
+ switch (this.getApplicationState()) {
66
+ case 2 /* RESOURCE */:
67
+ return helpers_1.isSingleResourceOrganizationIdentifier(organizationIdentifier) && resources_1.isEqual(organizationIdentifier, this.organizationContext.resources[0].uri);
68
+ case 3 /* ORGANIZATION */:
69
+ return helpers_1.isOrganizationIdentifier(organizationIdentifier) && this.organizationContext.id === organizationIdentifier.id;
70
+ }
71
+ return false;
72
+ }
73
+ extAcceptChangedApplicationState(organizationContext, event) {
74
+ this.organizationContext = this.reviveOrganizationUris(organizationContext);
75
+ this._onDidChangeApplicationState.fire(event);
76
+ this.releaseUpdateOrganizationBarrier();
77
+ }
78
+ extAcceptChangedOrganizationResources(organizationContext, event) {
79
+ this.organizationContext = this.reviveOrganizationUris(organizationContext);
80
+ this._onDidChangeOrganizationResources.fire(event);
81
+ this.releaseUpdateOrganizationBarrier();
82
+ }
83
+ extAcceptChangedOrganizationName(organizationContext) {
84
+ this.organizationContext = this.reviveOrganizationUris(organizationContext);
85
+ this._onDidChangeOrganizationName.fire(organizationContext.name);
86
+ this.releaseUpdateOrganizationBarrier();
87
+ }
88
+ releaseOrganizationBarrier() {
89
+ if (!this.completeOrganizationBarrier.isOpen()) {
90
+ this.completeOrganizationBarrier.open();
91
+ }
92
+ }
93
+ releaseUpdateOrganizationBarrier() {
94
+ if (this.updateOrganizationBarrier && !this.updateOrganizationBarrier.isOpen()) {
95
+ this.updateOrganizationBarrier.open();
96
+ }
97
+ }
98
+ reviveOrganizationUris(organizationData) {
99
+ let organizationContext, organizationResources;
100
+ if (organizationData.resources) {
101
+ organizationResources = organizationData.resources.map(({ index, uri: uriComponent, name }) => (new core_2.OrganizationResource({ index, uri: uri_1.URI.revive(uriComponent), name })));
102
+ }
103
+ if (organizationData.configuration) {
104
+ organizationContext = uri_1.URI.revive(organizationData.configuration);
105
+ }
106
+ return new core_2.OrganizationContext(organizationData.id, organizationResources, organizationContext);
107
+ }
108
+ };
109
+ AbstractOrganizationContextService = __decorate([
110
+ inversify_1.injectable(),
111
+ __param(0, inversify_1.inject(core_3.CommonType.LOGGER)),
112
+ __metadata("design:paramtypes", [Object])
113
+ ], AbstractOrganizationContextService);
114
+ exports.AbstractOrganizationContextService = AbstractOrganizationContextService;
115
+ //# sourceMappingURL=abstract-organization-context-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abstract-organization-context-service.js","sourceRoot":"","sources":["../../src/services/abstract-organization-context-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0EAAuE;AACvE,8EAAoF;AACpF,uFAAuF;AACvF,gDAAmD;AACnD,8EAAoF;AAEpF,yCAA+C;AAC/C,kCAAmF;AACnF,6CAAgD;AAMhD,sFAA6H;AAC7H,0DAAgH;AAKhH,IAAsB,kCAAkC,GAAxD,MAAsB,kCAAmC,SAAQ,iBAAU;IAqBvE,YAEI,MAAe;QAEf,KAAK,EAAE,CAAC;QAjBO,8BAAyB,GAAuC,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAA6B,CAAC,CAAC;QAC5H,6BAAwB,GAAqC,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;QAE/F,sCAAiC,GAA+C,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAAqC,CAAC,CAAC;QACpJ,qCAAgC,GAA6C,IAAI,CAAC,iCAAiC,CAAC,KAAK,CAAC;QAEvH,iCAA4B,GAAoB,IAAI,CAAC,SAAS,CAAC,IAAI,eAAO,EAAU,CAAC,CAAC;QACzF,gCAA2B,GAAkB,IAAI,CAAC,4BAA4B,CA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BAAmB,EAAE,qBAAqB,CAAC;QAC/C,IAAI,gBAAgB,CAAC,SAAS,EAAE;YAC5B,qBAAqB,GAAG,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC3F,IAAI,2BAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,SAAG,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAC3E,CAAC,CAAC;SACN;QAED,IAAI,gBAAgB,CAAC,aAAa,EAAE;YAChC,mBAAmB,GAAG,SAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;SACpE;QACD,OAAO,IAAI,0BAAmB,CAAC,gBAAgB,CAAC,EAAE,EAAE,qBAAqB,EAAE,mBAAmB,CAAC,CAAC;IACpG,CAAC;CAEJ,CAAA;AA1HqB,kCAAkC;IADvD,sBAAU,EAAE;IAuBJ,WAAA,kBAAM,CAAC,iBAAU,CAAC,MAAM,CAAC,CAAA;;GAtBZ,kCAAkC,CA0HvD;AA1HqB,gFAAkC"}
@@ -0,0 +1,2 @@
1
+ export * from './abstract-organization-context-service';
2
+ export * from './abstract-configuration';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./abstract-organization-context-service"), exports);
14
+ __exportStar(require("./abstract-configuration"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAwD;AACxD,2DAAyC"}
@@ -0,0 +1,4 @@
1
+ import { ConfigurationScope, IConfigurationRegistry } from '../interfaces';
2
+ export declare function getScopes(configurationRegistry: IConfigurationRegistry): {
3
+ [key: string]: ConfigurationScope;
4
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getScopes = void 0;
4
+ function getScopes(configurationRegistry) {
5
+ const scopes = {};
6
+ const configurationProperties = configurationRegistry.getConfigurationProperties();
7
+ for (const key of Object.keys(configurationProperties)) {
8
+ scopes[key] = configurationProperties[key].scope;
9
+ }
10
+ scopes['launch'] = 4 /* RESOURCE */;
11
+ scopes['task'] = 4 /* RESOURCE */;
12
+ return scopes;
13
+ }
14
+ exports.getScopes = getScopes;
15
+ //# sourceMappingURL=configuration-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration-utils.js","sourceRoot":"","sources":["../../src/utils/configuration-utils.ts"],"names":[],"mappings":";;;AAGA,SAAgB,SAAS,CAAC,qBAA6C;IACnE,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,MAAM,uBAAuB,GAAG,qBAAqB,CAAC,0BAA0B,EAAE,CAAC;IACnF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAAE;QACpD,MAAM,CAAC,GAAG,CAAC,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;KACpD;IACD,MAAM,CAAC,QAAQ,CAAC,mBAA8B,CAAC;IAC/C,MAAM,CAAC,MAAM,CAAC,mBAA8B,CAAC;IAC7C,OAAO,MAAM,CAAC;AAClB,CAAC;AATD,8BASC"}
@@ -0,0 +1 @@
1
+ export declare const toMilliSeconds: (value: number | string) => number;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // converrts seconds to to milliseconds
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.toMilliSeconds = void 0;
5
+ const toMilliSeconds = (value) => {
6
+ return Number(value) * 1000;
7
+ };
8
+ exports.toMilliSeconds = toMilliSeconds;
9
+ //# sourceMappingURL=date-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-utils.js","sourceRoot":"","sources":["../../src/utils/date-utils.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEhC,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAU,EAAE;IAC/D,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;AAC9B,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B"}
@@ -0,0 +1 @@
1
+ export declare function flatten<T extends Record<string, any>>(object: T, path?: string | null, separator?: string): T;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.flatten = void 0;
4
+ function flatten(object, path = null, separator = '.') {
5
+ return Object.keys(object).reduce((acc, key) => {
6
+ const value = object[key];
7
+ const newPath = [path, key].filter(Boolean).join(separator);
8
+ const isObject = [
9
+ typeof value === 'object',
10
+ value !== null,
11
+ !(value instanceof Date),
12
+ !(value instanceof RegExp),
13
+ !(Array.isArray(value) && value.length === 0),
14
+ ].every(Boolean);
15
+ return isObject
16
+ ? Object.assign(Object.assign({}, acc), flatten(value, newPath, separator)) : Object.assign(Object.assign({}, acc), { [newPath]: value });
17
+ }, {});
18
+ }
19
+ exports.flatten = flatten;
20
+ //# sourceMappingURL=flatten-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flatten-utils.js","sourceRoot":"","sources":["../../src/utils/flatten-utils.ts"],"names":[],"mappings":";;;AAEA,SAAgB,OAAO,CACnB,MAAS,EACT,OAAsB,IAAI,EAC1B,SAAS,GAAG,GAAG;IAEf,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,GAAM,EAAE,GAAW,EAAK,EAAE;QAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAE1B,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAE5D,MAAM,QAAQ,GAAG;YACf,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,KAAK,IAAI;YACd,CAAC,CAAC,KAAK,YAAY,IAAI,CAAC;YACxB,CAAC,CAAC,KAAK,YAAY,MAAM,CAAC;YAC1B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;SAC9C,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEjB,OAAO,QAAQ;YACb,CAAC,iCAAM,GAAG,GAAK,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,EACjD,CAAC,iCAAM,GAAG,KAAE,CAAC,OAAO,CAAC,EAAE,KAAK,GAAE,CAAC;IACnC,CAAC,EAAE,EAAO,CAAC,CAAC;AACd,CAAC;AAtBH,0BAsBG"}