@adminide-stack/core 11.0.1-alpha.11 → 11.0.1-alpha.13

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 (88) hide show
  1. package/lib/constants/index.d.ts +0 -2
  2. package/lib/core/configurations/configuration.d.ts +24 -25
  3. package/lib/core/configurations/configuration.js +1 -1
  4. package/lib/core/configurations/configuration.js.map +1 -1
  5. package/lib/core/configurations/events/ConfigurationChangeEvent.d.ts +1 -1
  6. package/lib/core/configurations/events/ConfigurationChangeEvent.js +1 -1
  7. package/lib/core/configurations/events/ConfigurationChangeEvent.js.map +1 -1
  8. package/lib/core/configurations/helpers/configuration.d.ts +1 -1
  9. package/lib/core/configurations/helpers/configuration.js +1 -1
  10. package/lib/core/configurations/helpers/configuration.js.map +1 -1
  11. package/lib/core/configurations/models/ConfigurationModel.d.ts +3 -3
  12. package/lib/core/configurations/models/ConfigurationModel.js.map +1 -1
  13. package/lib/core/organization/configuration.d.ts +1 -2
  14. package/lib/core/organization/configuration.js +1 -1
  15. package/lib/core/organization/configuration.js.map +1 -1
  16. package/lib/core/organization/helpers/organization-helpers.d.ts +1 -1
  17. package/lib/core/organization/organization.d.ts +1 -1
  18. package/lib/index.d.ts +0 -1
  19. package/lib/index.js +1 -1
  20. package/lib/interfaces/configuration/configuration-server-service.d.ts +1 -1
  21. package/lib/interfaces/configuration/configuration.d.ts +1 -2
  22. package/lib/interfaces/configuration/configuration.js +1 -1
  23. package/lib/interfaces/configuration/configuration.js.map +1 -1
  24. package/lib/interfaces/configuration/configurationRegistry.d.ts +4 -2
  25. package/lib/interfaces/configuration/configuraton-service.d.ts +1 -1
  26. package/lib/interfaces/configuration/defaultSettingSnapshot.d.ts +1 -1
  27. package/lib/interfaces/index.d.ts +0 -2
  28. package/lib/interfaces/page-store.d.ts +2 -16
  29. package/lib/interfaces/preferences-service.d.ts +1 -23
  30. package/lib/services/abstract-configuration.d.ts +1 -1
  31. package/lib/services/abstract-configuration.js +1 -1
  32. package/lib/services/abstract-organization-context-service.d.ts +1 -1
  33. package/lib/services/abstract-organization-context-service.js +1 -1
  34. package/lib/services/abstract-organization-context-service.js.map +1 -1
  35. package/lib/templates/modules/IConfigurationModel.ts.template +92 -0
  36. package/lib/utils/cdecodeUri.d.ts +1 -1
  37. package/lib/utils/cdecodeUri.js +107 -43
  38. package/lib/utils/cdecodeUri.js.map +1 -1
  39. package/lib/utils/configuration-utils.d.ts +1 -1
  40. package/lib/utils/generate-uri.d.ts +8 -7
  41. package/lib/utils/generate-uri.js +17 -13
  42. package/lib/utils/generate-uri.js.map +1 -1
  43. package/lib/utils/generated-settings-id.js +1 -1
  44. package/lib/utils/generated-settings-id.js.map +1 -1
  45. package/lib/utils/getUserAlias.d.ts +1 -1
  46. package/lib/utils/getUserAlias.js +1 -1
  47. package/lib/utils/getUserAlias.js.map +1 -1
  48. package/lib/utils/nodeContext.d.ts +1 -2
  49. package/lib/utils/nodeContext.js +1 -1
  50. package/lib/utils/nodeContext.js.map +1 -1
  51. package/lib/utils/preferenceUri.d.ts +4 -4
  52. package/lib/utils/preferenceUri.js +10 -9
  53. package/lib/utils/preferenceUri.js.map +1 -1
  54. package/lib/utils/resourceUriConversion.js +21 -11
  55. package/lib/utils/resourceUriConversion.js.map +1 -1
  56. package/lib/utils/splitCdecodeUri.d.ts +28 -0
  57. package/lib/utils/splitCdecodeUri.js +47 -2
  58. package/lib/utils/splitCdecodeUri.js.map +1 -1
  59. package/lib/vscodeExport/index.d.ts +3 -0
  60. package/package.json +10 -3
  61. package/lib/constants/scheme.d.ts +0 -40
  62. package/lib/constants/scheme.js +0 -43
  63. package/lib/constants/scheme.js.map +0 -1
  64. package/lib/constants/types.d.ts +0 -19
  65. package/lib/constants/types.js +0 -19
  66. package/lib/constants/types.js.map +0 -1
  67. package/lib/enums/connection-status.d.ts +0 -6
  68. package/lib/enums/connection-status.js +0 -7
  69. package/lib/enums/connection-status.js.map +0 -1
  70. package/lib/enums/index.d.ts +0 -6
  71. package/lib/enums/integration-configuration-status.d.ts +0 -5
  72. package/lib/enums/integration-configuration-status.js +0 -6
  73. package/lib/enums/integration-configuration-status.js.map +0 -1
  74. package/lib/enums/integrations-configuration-steps.d.ts +0 -8
  75. package/lib/enums/integrations-configuration-steps.js +0 -9
  76. package/lib/enums/integrations-configuration-steps.js.map +0 -1
  77. package/lib/enums/integrations-connection-names.d.ts +0 -12
  78. package/lib/enums/integrations-connection-names.js +0 -14
  79. package/lib/enums/integrations-connection-names.js.map +0 -1
  80. package/lib/enums/integrations.d.ts +0 -11
  81. package/lib/enums/integrations.js +0 -12
  82. package/lib/enums/integrations.js.map +0 -1
  83. package/lib/enums/permissions.d.ts +0 -7
  84. package/lib/enums/permissions.js +0 -8
  85. package/lib/enums/permissions.js.map +0 -1
  86. package/lib/interfaces/apollo-context.d.ts +0 -66
  87. package/lib/interfaces/log/index.d.ts +0 -1
  88. package/lib/interfaces/log/log-service.d.ts +0 -16
@@ -1,5 +1,4 @@
1
- import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import queryString from'query-string';import {ConfigCollectionName}from'common/lib/generated/generated-models.js';import {parseCdecodeUri}from'./cdecodeUri.js';import {reviveUri}from'./reviveUri.js';// moved to `@workbench-stack/core`
2
- const resourcePath = resource => {
1
+ import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import queryString from'query-string';import {Scheme,ConfigCollectionName}from'common';import {parseCdecodeUri}from'./cdecodeUri.js';import {reviveUri}from'./reviveUri.js';const resourcePath = resource => {
3
2
  if (typeof resource === 'string') {
4
3
  return resource;
5
4
  }
@@ -15,18 +14,21 @@ function convertToResourceUri(resource, scope) {
15
14
  const isValidUri = uri => 'scheme' in uri && 'path' in uri;
16
15
  if (resource instanceof URI) {
17
16
  if (isValidUri(resource)) {
18
- if (resource.scheme === "cdecode" /* Scheme.CDECODE */) {
17
+ if (resource.scheme === Scheme.CDECODE) {
19
18
  // Use parseCdecodeUri for cdecode URIs.
20
19
  const parsedUri = parseCdecodeUri(resource);
21
- console.log('parsedUri---hehehrhe', parsedUri, '---scope', scope);
20
+ // console.log('parsedUri---hehehrhe', parsedUri, '---scope', scope);
22
21
  // Determine the path and construct the query string based on available segments.
23
22
  let path = '';
24
23
  const queryData = {};
25
24
  if (parsedUri.pathSegments.resourceType && (scope ? scope === 4 /* ConfigurationScope.RESOURCE */ : true)) {
26
- console.log('resourceType---hehehrhe', parsedUri.pathSegments.resourceType);
25
+ // console.log('resourceType---hehehrhe', parsedUri.pathSegments.resourceType);
27
26
  // Resource-specific URI detected. Build a resource URI.
28
27
  path = `/${parsedUri.pathSegments.resourceType}`;
29
- queryData.orgName = parsedUri.pathSegments.organization;
28
+ // Only add orgName to query if it exists in the parsed URI
29
+ if (parsedUri.pathSegments.organization) {
30
+ queryData.orgName = parsedUri.pathSegments.organization;
31
+ }
30
32
  if (parsedUri.pathSegments.resourceId) {
31
33
  let resourceId = parsedUri.pathSegments.resourceId;
32
34
  // Instead of decoding, check for both literal colon ':' and its encoded forms '%3A' or '%3a'.
@@ -48,15 +50,23 @@ function convertToResourceUri(resource, scope) {
48
50
  queryData.orgName = parsedUri.pathSegments.organization;
49
51
  queryData.resourceGroup = parsedUri.pathSegments.resourceGroup;
50
52
  } else if (parsedUri.pathSegments.organization && (scope ? scope === 3 /* ConfigurationScope.WINDOW */ : true)) {
51
- console.log('organization---hehehrhe', parsedUri.pathSegments.organization);
53
+ // console.log('organization---hehehrhe', parsedUri.pathSegments.organization);
52
54
  path = `/${ConfigCollectionName.Organizations}`;
53
55
  queryData.name = parsedUri.pathSegments.organization;
54
56
  } else {
55
- throw new Error('not a valid resource');
57
+ // if no organization like in pubngo we still return
58
+ return URI.from({
59
+ scheme: Scheme.CDECODE_RESOURCE,
60
+ authority: parsedUri.authority,
61
+ path,
62
+ query: queryString.stringify(queryData),
63
+ fragment: parsedUri.fragmentData
64
+ });
65
+ // throw new Error('not a valid resource');
56
66
  }
57
67
  // Regardless of the input, always use the "cde-resource" scheme for converted URIs.
58
68
  return URI.from({
59
- scheme: "cde-resource" /* Scheme.CDECODE_RESOURCE */,
69
+ scheme: Scheme.CDECODE_RESOURCE,
60
70
  authority: parsedUri.authority,
61
71
  path,
62
72
  query: queryString.stringify(queryData),
@@ -69,14 +79,14 @@ function convertToResourceUri(resource, scope) {
69
79
  }
70
80
  if (typeof resource === 'string') {
71
81
  const parsedUri = URI.parse(resource);
72
- if (parsedUri.scheme === "cdecode" /* Scheme.CDECODE */) {
82
+ if (parsedUri.scheme === Scheme.CDECODE) {
73
83
  return convertToResourceUri(parsedUri); // Reuse the logic for URI instances.
74
84
  }
75
85
  return parsedUri;
76
86
  }
77
87
  if (typeof resource === 'object') {
78
88
  const revivedUri = reviveUri(resource);
79
- if (revivedUri.scheme === "cdecode" /* Scheme.CDECODE */) {
89
+ if (revivedUri.scheme === Scheme.CDECODE) {
80
90
  return convertToResourceUri(revivedUri); // Reuse the logic for URI instances.
81
91
  }
82
92
  return revivedUri;
@@ -1 +1 @@
1
- {"version":3,"file":"resourceUriConversion.js","sources":["../../src/utils/resourceUriConversion.ts"],"sourcesContent":[null],"names":[],"mappings":"6QAQA;AACa,MAAA,YAAY,GAAG,QAAC,IAA4C;AACrE,EAAA,IAAA,OAAW,QAAA,KAAa,QAAA,EAAQ;AAC5B,IAAA,OAAA;;AAEJ,EAAA,MAAA;AACA,IAAA;AACA,GAAA,GAAA;AACA,EAAA,MAAA,QAAc,cAAW,GAAA,CAAA,CAAA,EAAQ,QAAG,CAAA,KAAA,CAAA,CAAA,GAAA,EAAA;AACxC,EAAE,MAAA,QAAA,GAAA,QAAA,CAAA,QAAA,GAAA,CAAA,CAAA,EAAA,QAAA,CAAA,QAAA,CAAA,CAAA,GAAA,EAAA;AAEF,EAAA,OAAgB,CAAA,EAAA,IAAA,CAAA,EAAA,KAAA,CAAA,EAAA,QAAA,CAAoB,CAAC;AACjC;AAAe,6BAAY,CAAA,QAAA,EAAA,KAAA,EAAA;AAC3B,EAAA,I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,OAAA,EAAA;aACnB,oBAAA,CAAA,SAAA,CAAA,CAAA;AACD;IACJ,OAAC,SAAA;AACD;aACU,QAAA,KAAY,UAAU;UACxB,UAAA,GAAgB,SAAA,CAAK,QAAO,CAAA;AAC5B,IAAA,IAAA,UAAA,CAAO,yBAAqB,EAAA;aAC/B,oBAAA,CAAA,UAAA,CAAA,CAAA;AACD;IACJ,OAAC,UAAA;AACD;AACI,EAAA,MAAA,IAAA,iCAAqC,CAAC;"}
@@ -11,6 +11,27 @@ export interface SplitCedcodeUriResult {
11
11
  */
12
12
  resourceUri?: URI;
13
13
  }
14
+ export interface SplitOrgUriResult {
15
+ /**
16
+ * The base organization URI, containing only the organization segment.
17
+ */
18
+ baseOrgUri: URI;
19
+ /**
20
+ * The resource group URI if a resource group segment exists.
21
+ * If not present, this value will be undefined.
22
+ */
23
+ resourceGroupUri?: URI;
24
+ /**
25
+ * The resource group type if a resource group segment exists.
26
+ * If not present, this value will be undefined.
27
+ */
28
+ resourceGroupType?: string;
29
+ /**
30
+ * The resource group ID if a resource group segment exists.
31
+ * If not present, this value will be undefined.
32
+ */
33
+ resourceGroupId?: string;
34
+ }
14
35
  /**
15
36
  * Splits a given cdecode URI ino an organization URI (orgUri) and, if available, a resource-specific URI (resourceUri).
16
37
  *
@@ -23,3 +44,10 @@ export interface SplitCedcodeUriResult {
23
44
  * @return An object containing the orgUri and, optionally, the resourceUri.
24
45
  */
25
46
  export declare function splitCdecodeUri(cdecodeUri: URI): SplitCedcodeUriResult;
47
+ /**
48
+ * Splits an organization URI into a base organization URI and, if available, a resource group URI.
49
+ *
50
+ * @param orgUri The organization URI that may contain both organization and resource group segments
51
+ * @returns An object containing the baseOrgUri and optionally the resourceGroupUri
52
+ */
53
+ export declare function splitOrgUri(orgUri: URI): SplitOrgUriResult;
@@ -1,4 +1,4 @@
1
- import {parseCdecodeUri,generateCdecodeUri}from'./cdecodeUri.js';import {convertToResourceUri}from'./resourceUriConversion.js';/**
1
+ import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {ConfigCollectionName,Scheme}from'common';import {parseCdecodeUri,generateCdecodeUri}from'./cdecodeUri.js';import {convertToResourceUri}from'./resourceUriConversion.js';/**
2
2
  * Splits a given cdecode URI ino an organization URI (orgUri) and, if available, a resource-specific URI (resourceUri).
3
3
  *
4
4
  * - If the incoming URI contains resource-specific segments (i.e. resourceType and resourceId), the organization URI
@@ -10,6 +10,7 @@ import {parseCdecodeUri,generateCdecodeUri}from'./cdecodeUri.js';import {convert
10
10
  * @return An object containing the orgUri and, optionally, the resourceUri.
11
11
  */
12
12
  function splitCdecodeUri(cdecodeUri) {
13
+ console.log('---cdecodeUri---->>>>>>>>', cdecodeUri);
13
14
  const parsedUri = parseCdecodeUri(cdecodeUri);
14
15
  // Check if resource-specific segments exist.
15
16
  if (parsedUri.pathSegments.resourceType && parsedUri.pathSegments.resourceId) {
@@ -36,4 +37,48 @@ function splitCdecodeUri(cdecodeUri) {
36
37
  return {
37
38
  orgUri: cdecodeUri
38
39
  };
39
- }export{splitCdecodeUri};//# sourceMappingURL=splitCdecodeUri.js.map
40
+ }
41
+ /**
42
+ * Splits an organization URI into a base organization URI and, if available, a resource group URI.
43
+ *
44
+ * @param orgUri The organization URI that may contain both organization and resource group segments
45
+ * @returns An object containing the baseOrgUri and optionally the resourceGroupUri
46
+ */
47
+ function splitOrgUri(orgUri) {
48
+ const parsedUri = parseCdecodeUri(orgUri);
49
+ const {
50
+ organization,
51
+ resourceGroup
52
+ } = parsedUri.pathSegments;
53
+ // Generate the base organization URI
54
+ const baseOrgUri = URI.from({
55
+ scheme: Scheme.CDECODE_RESOURCE,
56
+ authority: orgUri.authority,
57
+ path: `/${ConfigCollectionName.Organizations}`,
58
+ fragment: parsedUri.fragmentData,
59
+ query: `name=${organization}`
60
+ });
61
+ // If there's no resource group, return just the base org URI
62
+ if (!resourceGroup) {
63
+ return {
64
+ baseOrgUri
65
+ };
66
+ }
67
+ // Handle resource group with type:id format
68
+ const colonIndex = resourceGroup.indexOf(':');
69
+ const [resourceGroupType, resourceGroupId] = colonIndex !== -1 ? [resourceGroup.substring(0, colonIndex), resourceGroup.substring(colonIndex + 1)] : [ConfigCollectionName.Projects, resourceGroup];
70
+ // Generate the resource group URI using the type as the path segment
71
+ const resourceGroupUri = URI.from({
72
+ scheme: Scheme.CDECODE_RESOURCE,
73
+ authority: orgUri.authority,
74
+ path: `/${resourceGroupType}`,
75
+ query: `orgName=${organization}&_id=${resourceGroupId}`,
76
+ fragment: parsedUri.fragmentData
77
+ });
78
+ return {
79
+ baseOrgUri,
80
+ resourceGroupUri,
81
+ resourceGroupType,
82
+ resourceGroupId
83
+ };
84
+ }export{splitCdecodeUri,splitOrgUri};//# sourceMappingURL=splitCdecodeUri.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitCdecodeUri.js","sources":["../../src/utils/splitCdecodeUri.ts"],"sourcesContent":[null],"names":[],"mappings":"+HAgBA;;;;;;;;;;AAUG;AACG,SAAU,eAAe,CAAC,UAAe,EAAA;AAC3C,EAAA,MAAA,YAAkB,eAAA,CAAA,UAAgB,CAAA;;AAGlC,EAAA,IAAA,SAAa,CAAA,YAAa,CAAA,YAAa,IAAA,SAAa,CAAA,YAAa,CAAA,UAAW,EAAA;;AAExE,IAAA,MAAA;AACI,MAAA,YAAA,EAAA,SAAc,CAAA,YAAU,CAAA;;;AAI5B,IAAA,IAAA,sBAAc,CAAA,aAAa,EAAA;eACd,CAAA,yBAAiB,CAAA,YAAsB,CAAA;;;AAIpD,IAAA,MAAA,MAAY,GAAA,kBAAqB,CAAA,UACnB,CAAA,SAAU,EAAA,SACX,EAAA,EAAA;;aAKsD,CAAA,YAAA,CAAA;AACnE;AAEA,IAAA,MAAA,WAAS,GAAQ,oBAAc,CAAA,UAAA,CAAA;IACnC,OAAC;MAE4F,MAAA;AAC7F,MAAA;AACJ,KAAC;;;;;;"}
1
+ {"version":3,"file":"splitCdecodeUri.js","sources":["../../src/utils/splitCdecodeUri.ts"],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EAAA,eAAA,CAAA,GAAA,UAAA,KAAA,EAAA,GAAA,CAAA,aAAA,CAAA,SAAA,CAAA,CAAA,EAAA,UAAA,CAAA,EAAA,aAAA,CAAA,SAAA,CAAA,UAAA,GAAA,CAAA,CAAA,CAAA,GAAA,CAAA,oBAAA,CAAA,QAAA,EAAA,aAAA,CAAA;;QAEH,gBAAgB,GAAA,GAAA,CAAA,IAAA,CAAA;UACC,EAAA,MAAA,CAAA,gBAAA;aACF,EAAA,MAAA,CAAA,SAAA;QACjB,EAAA,CAAA,CAAA,EAAA,iBAAA,CAAA,CAAA;AACN,IAAC,KAAA,EAAA,CAAA,QAAA,EAAA,YAAA,CAAA,KAAA,EAAA,eAAA,CAAA,CAAA;;;;;;;;;"}
@@ -1 +1,4 @@
1
+ export { IJSONSchema } from '@vscode-alt/monaco-editor/esm/vs/base/common/jsonSchema.js';
1
2
  export { URI, UriComponents, uriToFsPath } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';
3
+ export { IJSONSchemaMap } from '@vscode-alt/monaco-editor/esm/vs/base/common/jsonSchema.js';
4
+ export { IJSONSchemaSnippet } from '@vscode-alt/monaco-editor/esm/vs/base/common/jsonSchema.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminide-stack/core",
3
- "version": "11.0.1-alpha.11",
3
+ "version": "11.0.1-alpha.13",
4
4
  "description": "AdminIDE core for higher packages to depend on",
5
5
  "license": "UNLICENSED",
6
6
  "author": "CDMBase LLC",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@vscode-alt/monaco-editor": "^0.21.4",
25
25
  "@workbench-stack/core": "3.9.7",
26
- "common": "11.0.1-alpha.11",
26
+ "common": "11.0.1-alpha.13",
27
27
  "query-string": "^9.0.0",
28
28
  "sort-keys": "^5.0.0",
29
29
  "vscode-uri": "^3.0.8"
@@ -35,8 +35,15 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
+ "cdecode": {
39
+ "common": {
40
+ "modules": [
41
+ "./${libDir}/templates/modules/IConfigurationModel.ts.template"
42
+ ]
43
+ }
44
+ },
38
45
  "typescript": {
39
46
  "definition": "lib/index.d.ts"
40
47
  },
41
- "gitHead": "f1338ddea501ce4896df1501cfca3fdcd3aacad4"
48
+ "gitHead": "8a883323f6bc91d96c0e0944383288a6d55efc28"
42
49
  }
@@ -1,40 +0,0 @@
1
- /**
2
- * Enum for all supported URI schemes in the AdminIDE project.
3
- *
4
- * This enum includes both the common URI schemes and custom schemes used for
5
- * handling resources with the cdecode protocol.
6
- */
7
- export declare const enum Scheme {
8
- HTTP = "http",
9
- HTTPS = "https",
10
- FILE = "file",
11
- MAILTO = "mailto",
12
- /**
13
- * Main scheme for cdecode resources.
14
- * This is used as the primary identifier for any resource that
15
- * adheres to the cdecode-specific protocol.
16
- */
17
- CDECODE = "cdecode",
18
- /**
19
- * Scheme for referencing cdecode resources.
20
- * Useful when distinguishing between different contexts of cdecode-based assets.
21
- */
22
- CDECODE_RESOURCE = "cde-resource",
23
- /**
24
- * Scheme for file resources processed using the cdecode protocol.
25
- */
26
- CDECODE_FILE = "cdecode-file",
27
- /**
28
- * Scheme for cde extensions.
29
- * This identifies resources that relate to extensions within the cdecode ecosystem.
30
- */
31
- CDE_EXTENSION = "cde-extention",
32
- /**
33
- * Scheme for remote cdecode resource access.
34
- */
35
- CDECODE_REMOTE = "cdecode-remote",
36
- /**
37
- * Scheme for MongoDB file references used within the cdecode system.
38
- */
39
- MONGO_DB_FILE = "mongo-db-file"
40
- }
@@ -1,43 +0,0 @@
1
- /**
2
- * Enum for all supported URI schemes in the AdminIDE project.
3
- *
4
- * This enum includes both the common URI schemes and custom schemes used for
5
- * handling resources with the cdecode protocol.
6
- */
7
- var Scheme;
8
- (function (Scheme) {
9
- /* Standard URI schemes */
10
- Scheme["HTTP"] = "http";
11
- Scheme["HTTPS"] = "https";
12
- Scheme["FILE"] = "file";
13
- Scheme["MAILTO"] = "mailto";
14
- /* Custom cdecode schemes */
15
- /**
16
- * Main scheme for cdecode resources.
17
- * This is used as the primary identifier for any resource that
18
- * adheres to the cdecode-specific protocol.
19
- */
20
- Scheme["CDECODE"] = "cdecode";
21
- /**
22
- * Scheme for referencing cdecode resources.
23
- * Useful when distinguishing between different contexts of cdecode-based assets.
24
- */
25
- Scheme["CDECODE_RESOURCE"] = "cde-resource";
26
- /**
27
- * Scheme for file resources processed using the cdecode protocol.
28
- */
29
- Scheme["CDECODE_FILE"] = "cdecode-file";
30
- /**
31
- * Scheme for cde extensions.
32
- * This identifies resources that relate to extensions within the cdecode ecosystem.
33
- */
34
- Scheme["CDE_EXTENSION"] = "cde-extention";
35
- /**
36
- * Scheme for remote cdecode resource access.
37
- */
38
- Scheme["CDECODE_REMOTE"] = "cdecode-remote";
39
- /**
40
- * Scheme for MongoDB file references used within the cdecode system.
41
- */
42
- Scheme["MONGO_DB_FILE"] = "mongo-db-file";
43
- })(Scheme || (Scheme = {}));export{Scheme};//# sourceMappingURL=scheme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scheme.js","sources":["../../src/constants/scheme.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;AAKG;IACe;AAAlB,CAAA,UAAkB,MAAM,EAAA;;AAEpB,EAAA,MAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AACA,EAAA,MAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AACA,EAAA,MAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AACA,EAAA,MAAA,CAAA,QAAA,CAAA,GAAA,QAAA;;AAGA;;;;AAIG;AACH,EAAA,MAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AAEA;;;AAGG;AACH,EAAA,MAAA,CAAA,kBAAA,CAAA,GAAA,cAAA;AAEA;;AAEG;AACH,EAAA,MAAA,CAAA,cAAA,CAAA,GAAA,cAAA;AAEA;;;AAGG;AACH,EAAA,MAAA,CAAA,eAAA,CAAA,GAAA,eAAA;AAEA;;AAEG;AACH,EAAA,MAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;AAEA;;AAEG;AACH,EAAA,MAAA,CAAA,eAAA,CAAA,GAAA,eAAA;AACJ,CAAC,EAzCiB,MAAM,KAAN,MAAM,GAyCvB,EAAA,CAAA,CAAA"}
@@ -1,19 +0,0 @@
1
- export declare const CommonTypes: {
2
- ILifecycleService: symbol;
3
- };
4
- export declare const PlatformClientTypes: {
5
- ILifecycleService: symbol;
6
- };
7
- export declare const ServerTypes: {
8
- ILifecycleService: symbol;
9
- IRegistry: symbol;
10
- IAccessRoleService: symbol;
11
- IPreferenceEditorService: symbol;
12
- IOrganizationContextService: symbol;
13
- IConfigurationService: symbol;
14
- IConfigurationPolicyService: symbol;
15
- IConfigurationFileService: symbol;
16
- IFileService: symbol;
17
- ITextFileService: symbol;
18
- IEnvironmentService: symbol;
19
- };
@@ -1,19 +0,0 @@
1
- const CommonTypes = {
2
- ILifecycleService: Symbol.for('ILifecycleService')
3
- };
4
- const PlatformClientTypes = {
5
- ILifecycleService: CommonTypes.ILifecycleService
6
- };
7
- const ServerTypes = {
8
- ILifecycleService: CommonTypes.ILifecycleService,
9
- IRegistry: Symbol.for('IRegistry'),
10
- IAccessRoleService: Symbol.for('IAccessRoleService'),
11
- IPreferenceEditorService: Symbol.for('IPreferenceEditorService'),
12
- IOrganizationContextService: Symbol.for('IOrgnaizationContextService'),
13
- IConfigurationService: Symbol.for('IConfigurationService'),
14
- IConfigurationPolicyService: Symbol.for('IConfigurationPolicyService'),
15
- IConfigurationFileService: Symbol.for('IConfigurationFileService'),
16
- IFileService: Symbol.for('IFileService'),
17
- ITextFileService: Symbol.for('ITextFileService'),
18
- IEnvironmentService: Symbol.for('IEnvironmentService')
19
- };export{CommonTypes,PlatformClientTypes,ServerTypes};//# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sources":["../../src/constants/types.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAa,MAAA,WAAW,GAAG;AACvB,EAAA,iBAAA,EAAiB,MAAQ,CAAA,GAAI,CAAA;;AAGpB,MAAA,mBAAmB,GAAG;mBACd,EAAA,WAAa,CAAA;;AAGrB,MAAA,WAAW,GAAG;mBACN,EAAA,WAAa,CAAA,iBAAkB;AAChD,EAAA,SAAA,EAAS,MAAQ,CAAA,GAAI,CAAA;AAErB,EAAA,kBAAA,EAAkB,MAAQ,CAAA,GAAI,CAAA;AAC9B,EAAA,wBAAA,EAAwB,MAAQ,CAAA,GAAI,CAAA;AACpC,EAAA,2BAAA,EAA2B,MAAQ,CAAA,GAAI,CAAA;AACvC,EAAA,qBAAA,EAAqB,MAAQ,CAAA,GAAI,CAAA;AACjC,EAAA,2BAAA,EAA2B,MAAQ,CAAA,GAAI,CAAA;AAEvC,EAAA,yBAAA,EAAyB,MAAQ,CAAA,GAAI,CAAA;AAErC,EAAA,YAAA,EAAY,MAAQ,CAAA,GAAI,CAAA;AACxB,EAAA,gBAAA,EAAgB,MAAQ,CAAA,GAAI,CAAA;AAE5B,EAAA,mBAAA,EAAmB,MAAQ,CAAA,GAAI,CAAA;"}
@@ -1,6 +0,0 @@
1
- export declare enum ConnectionStatus {
2
- LINKED = "LINKED",
3
- NOT_CONNECTED = "NOT_CONNECTED",
4
- EXPIRED = "EXPIRED",
5
- BROKEN = "BROKEN"
6
- }
@@ -1,7 +0,0 @@
1
- var ConnectionStatus;
2
- (function (ConnectionStatus) {
3
- ConnectionStatus["LINKED"] = "LINKED";
4
- ConnectionStatus["NOT_CONNECTED"] = "NOT_CONNECTED";
5
- ConnectionStatus["EXPIRED"] = "EXPIRED";
6
- ConnectionStatus["BROKEN"] = "BROKEN";
7
- })(ConnectionStatus || (ConnectionStatus = {}));export{ConnectionStatus};//# sourceMappingURL=connection-status.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connection-status.js","sources":["../../src/enums/connection-status.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B,EAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,gBAAA,CAAA,eAAA,CAAA,GAAA,eAAA;AACA,EAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AACA,EAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACF,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,GAK3B,EAAA,CAAA,CAAA"}
@@ -1,6 +0,0 @@
1
- export * from './permissions';
2
- export * from './integrations-connection-names';
3
- export * from './connection-status';
4
- export * from './integrations-configuration-steps';
5
- export * from './integration-configuration-status';
6
- export * from './integrations';
@@ -1,5 +0,0 @@
1
- export declare enum IntegrationConfigStatus {
2
- InProgress = "In Progress",
3
- Pending = "Pending",
4
- Completed = "Completed"
5
- }
@@ -1,6 +0,0 @@
1
- var IntegrationConfigStatus;
2
- (function (IntegrationConfigStatus) {
3
- IntegrationConfigStatus["InProgress"] = "In Progress";
4
- IntegrationConfigStatus["Pending"] = "Pending";
5
- IntegrationConfigStatus["Completed"] = "Completed";
6
- })(IntegrationConfigStatus || (IntegrationConfigStatus = {}));export{IntegrationConfigStatus};//# sourceMappingURL=integration-configuration-status.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integration-configuration-status.js","sources":["../../src/enums/integration-configuration-status.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,uBAAuB,EAAA;AACjC,EAAA,uBAAA,CAAA,YAAA,CAAA,GAAA,aAAA;AACA,EAAA,uBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AACA,EAAA,uBAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AACF,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,GAIlC,EAAA,CAAA,CAAA"}
@@ -1,8 +0,0 @@
1
- export declare enum IntegrationsConfigSteps {
2
- Initialize = 0,
3
- Workspaces = 1,
4
- SelectIntegration = 2,
5
- Projects = 3,
6
- Teams = 4,
7
- ConfigureProject = 5
8
- }
@@ -1,9 +0,0 @@
1
- var IntegrationsConfigSteps;
2
- (function (IntegrationsConfigSteps) {
3
- IntegrationsConfigSteps[IntegrationsConfigSteps["Initialize"] = 0] = "Initialize";
4
- IntegrationsConfigSteps[IntegrationsConfigSteps["Workspaces"] = 1] = "Workspaces";
5
- IntegrationsConfigSteps[IntegrationsConfigSteps["SelectIntegration"] = 2] = "SelectIntegration";
6
- IntegrationsConfigSteps[IntegrationsConfigSteps["Projects"] = 3] = "Projects";
7
- IntegrationsConfigSteps[IntegrationsConfigSteps["Teams"] = 4] = "Teams";
8
- IntegrationsConfigSteps[IntegrationsConfigSteps["ConfigureProject"] = 5] = "ConfigureProject";
9
- })(IntegrationsConfigSteps || (IntegrationsConfigSteps = {}));export{IntegrationsConfigSteps};//# sourceMappingURL=integrations-configuration-steps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integrations-configuration-steps.js","sources":["../../src/enums/integrations-configuration-steps.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,uBAAuB,EAAA;AACjC,EAAA,uBAAA,CAAA,uBAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAA;AACA,EAAA,uBAAA,CAAA,uBAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAA;AACA,EAAA,uBAAA,CAAA,uBAAA,CAAA,mBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,mBAAA;AACA,EAAA,uBAAA,CAAA,uBAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAA;AACA,EAAA,uBAAA,CAAA,uBAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAA;AACA,EAAA,uBAAA,CAAA,uBAAA,CAAA,kBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,kBAAA;AACF,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,GAOlC,EAAA,CAAA,CAAA"}
@@ -1,12 +0,0 @@
1
- export declare enum IntegrationConnections {
2
- Google = "google-oauth2",
3
- GitHub = "github",
4
- Bitbucket = "bitbucket",
5
- GitLab = "Gitlab",
6
- Asana = "asana",
7
- Apple = "apple",
8
- Facebook = "facebook",
9
- PaypalSandbox = "paypal-sandbox",
10
- Paypal = "paypal",
11
- Keycloak = "keycloak"
12
- }
@@ -1,14 +0,0 @@
1
- var IntegrationConnections;
2
- (function (IntegrationConnections) {
3
- IntegrationConnections["Google"] = "google-oauth2";
4
- IntegrationConnections["GitHub"] = "github";
5
- IntegrationConnections["Bitbucket"] = "bitbucket";
6
- IntegrationConnections["GitLab"] = "Gitlab";
7
- IntegrationConnections["Asana"] = "asana";
8
- IntegrationConnections["Apple"] = "apple";
9
- IntegrationConnections["Facebook"] = "facebook";
10
- // Payment Integrations
11
- IntegrationConnections["PaypalSandbox"] = "paypal-sandbox";
12
- IntegrationConnections["Paypal"] = "paypal";
13
- IntegrationConnections["Keycloak"] = "keycloak";
14
- })(IntegrationConnections || (IntegrationConnections = {}));export{IntegrationConnections};//# sourceMappingURL=integrations-connection-names.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integrations-connection-names.js","sources":["../../src/enums/integrations-connection-names.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,sBAAsB,EAAA;AAC9B,EAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,eAAA;AACA,EAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,sBAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AACA,EAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,sBAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AACA,EAAA,sBAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AACA,EAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAA;;AAGA,EAAA,sBAAA,CAAA,eAAA,CAAA,GAAA,gBAAA;AACA,EAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AACJ,CAAC,EAbW,sBAAsB,KAAtB,sBAAsB,GAajC,EAAA,CAAA,CAAA"}
@@ -1,11 +0,0 @@
1
- export declare enum Integrations {
2
- Google = "Google",
3
- GitHub = "Github",
4
- Bitbucket = "Bitbucket",
5
- GitLab = "Gitlab",
6
- Asana = "Asana",
7
- Apple = "Apple",
8
- Facebook = "Facebook",
9
- Paypal = "paypal-sandbox",
10
- Keycloak = "keycloak"
11
- }
@@ -1,12 +0,0 @@
1
- var Integrations;
2
- (function (Integrations) {
3
- Integrations["Google"] = "Google";
4
- Integrations["GitHub"] = "Github";
5
- Integrations["Bitbucket"] = "Bitbucket";
6
- Integrations["GitLab"] = "Gitlab";
7
- Integrations["Asana"] = "Asana";
8
- Integrations["Apple"] = "Apple";
9
- Integrations["Facebook"] = "Facebook";
10
- Integrations["Paypal"] = "paypal-sandbox";
11
- Integrations["Keycloak"] = "keycloak";
12
- })(Integrations || (Integrations = {}));export{Integrations};//# sourceMappingURL=integrations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integrations.js","sources":["../../src/enums/integrations.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,YAAY,EAAA;AACpB,EAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,YAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AACA,EAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AACA,EAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAA;AACA,EAAA,YAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AACA,EAAA,YAAA,CAAA,QAAA,CAAA,GAAA,gBAAA;AACA,EAAA,YAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AACJ,CAAC,EAVW,YAAY,KAAZ,YAAY,GAUvB,EAAA,CAAA,CAAA"}
@@ -1,7 +0,0 @@
1
- export declare enum PermissionTypes {
2
- view = "view",
3
- create = "create",
4
- edit = "edit",
5
- delete = "delete",
6
- manage = "manage"
7
- }
@@ -1,8 +0,0 @@
1
- var PermissionTypes;
2
- (function (PermissionTypes) {
3
- PermissionTypes["view"] = "view";
4
- PermissionTypes["create"] = "create";
5
- PermissionTypes["edit"] = "edit";
6
- PermissionTypes["delete"] = "delete";
7
- PermissionTypes["manage"] = "manage";
8
- })(PermissionTypes || (PermissionTypes = {}));export{PermissionTypes};//# sourceMappingURL=permissions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permissions.js","sources":["../../src/enums/permissions.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,eAAe,EAAA;AACvB,EAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AACA,EAAA,eAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AACA,EAAA,eAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,eAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACJ,CAAC,EANW,eAAe,KAAf,eAAe,GAM1B,EAAA,CAAA,CAAA"}
@@ -1,66 +0,0 @@
1
- import { DataProxy } from '@apollo/client/cache';
2
- import { ApolloClient } from '@apollo/client/index.js';
3
- import { CdmLogger } from '@cdm-logger/core';
4
- import express from 'express';
5
- import { IPreferncesTransformed } from '@common-stack/server-core';
6
- import { IUserContext, IUserProfile, IIAuth0Token, AuthStrategy, ICdecodeParsedUri } from 'common/lib/generated/generated-models.js';
7
- import { IClientService } from './service';
8
- import { IEnvironmentService } from './environment';
9
- import { IPreferencesService } from './preferences-service';
10
- /**
11
- *
12
- * Context
13
- * @export
14
- * @interface MyContext
15
- */
16
- export interface MyContext extends ClientContext, ServerContext {
17
- }
18
- export interface ClientContext {
19
- /**
20
- * Only application on the client side
21
- */
22
- cache: DataProxy;
23
- /**
24
- * Only application on the client side
25
- */
26
- getCacheKey: (options: {
27
- __typename: string;
28
- id?: string;
29
- }) => string;
30
- /**
31
- * Only applicable on the client side
32
- */
33
- apolloClient: ApolloClient<any>;
34
- client: ApolloClient<any>;
35
- getClientServices: () => IClientService;
36
- }
37
- export interface IDataSources {
38
- }
39
- export interface IHttpMiddlewareContext {
40
- req?: express.Request & {
41
- authStrategy: AuthStrategy | string;
42
- permissions?: any;
43
- cdecodeuri?: any;
44
- currentPageUriSegments: ICdecodeParsedUri;
45
- logger?: CdmLogger.ILogger;
46
- user?: IIAuth0Token;
47
- errors?: any;
48
- profile?: IUserProfile;
49
- };
50
- res: express.Response;
51
- }
52
- export interface ServerContext extends IHttpMiddlewareContext {
53
- accessRoleService: any;
54
- user?: IIAuth0Token;
55
- userContext?: IUserContext;
56
- orgname?: string;
57
- profile?: IUserProfile;
58
- /** Backend Datasource */
59
- dataSources: IDataSources;
60
- orgRole?: string;
61
- teamName?: string;
62
- preferences: IPreferncesTransformed[];
63
- environmentService: IEnvironmentService;
64
- preferenceService?: IPreferencesService;
65
- accountService?: any;
66
- }
@@ -1 +0,0 @@
1
- export * from './log-service';
@@ -1,16 +0,0 @@
1
- import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
2
- import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
3
- import { CdmLogger } from '@cdm-logger/core';
4
- type LogLevel = CdmLogger.LoggerLevel;
5
- export interface ILogService extends IDisposable {
6
- onDidChangeLogLevel: Event<LogLevel>;
7
- getLevel(): LogLevel;
8
- setLevel(level: LogLevel): void;
9
- trace(message: string, ...args: any[]): void;
10
- debug(message: string, ...args: any[]): void;
11
- info(message: string, ...args: any[]): void;
12
- warn(message: string, ...args: any[]): void;
13
- error(message: string | Error, ...args: any[]): void;
14
- critical(message: string | Error, ...args: any[]): void;
15
- }
16
- export {};