@adminide-stack/core 7.0.1-alpha.0 → 7.0.1-alpha.15

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 (95) hide show
  1. package/lib/constants/billing-plan.js +1 -1
  2. package/lib/constants/billing-plan.js.map +1 -0
  3. package/lib/constants/configuration.js +1 -1
  4. package/lib/constants/configuration.js.map +1 -0
  5. package/lib/constants/constants.js +1 -1
  6. package/lib/constants/constants.js.map +1 -0
  7. package/lib/constants/default-workspace-config.js +1 -1
  8. package/lib/constants/default-workspace-config.js.map +1 -0
  9. package/lib/constants/routes.js +1 -1
  10. package/lib/constants/routes.js.map +1 -0
  11. package/lib/constants/types.js +14 -14
  12. package/lib/constants/types.js.map +1 -0
  13. package/lib/constants/urls.js +1 -1
  14. package/lib/constants/urls.js.map +1 -0
  15. package/lib/core/configurations/configuration.js +546 -434
  16. package/lib/core/configurations/configuration.js.map +1 -0
  17. package/lib/core/configurations/events/ConfigurationChangeEvent.js +52 -41
  18. package/lib/core/configurations/events/ConfigurationChangeEvent.js.map +1 -0
  19. package/lib/core/configurations/helpers/configuration.js +138 -149
  20. package/lib/core/configurations/helpers/configuration.js.map +1 -0
  21. package/lib/core/configurations/models/ConfigurationModel.js +186 -187
  22. package/lib/core/configurations/models/ConfigurationModel.js.map +1 -0
  23. package/lib/core/disposable.js +67 -68
  24. package/lib/core/disposable.js.map +1 -0
  25. package/lib/core/event.js +240 -230
  26. package/lib/core/event.js.map +1 -0
  27. package/lib/core/organization/configuration.js +15 -14
  28. package/lib/core/organization/configuration.js.map +1 -0
  29. package/lib/core/organization/helpers/organization-helpers.js +7 -14
  30. package/lib/core/organization/helpers/organization-helpers.js.map +1 -0
  31. package/lib/core/organization/organization.js +132 -105
  32. package/lib/core/organization/organization.js.map +1 -0
  33. package/lib/core/path.js +155 -151
  34. package/lib/core/path.js.map +1 -0
  35. package/lib/enums/connection-status.js +5 -5
  36. package/lib/enums/connection-status.js.map +1 -0
  37. package/lib/enums/integration-configuration-status.js +4 -4
  38. package/lib/enums/integration-configuration-status.js.map +1 -0
  39. package/lib/enums/integrations-configuration-steps.js +7 -7
  40. package/lib/enums/integrations-configuration-steps.js.map +1 -0
  41. package/lib/enums/integrations-connection-names.js +11 -11
  42. package/lib/enums/integrations-connection-names.js.map +1 -0
  43. package/lib/enums/integrations.js +9 -9
  44. package/lib/enums/integrations.js.map +1 -0
  45. package/lib/enums/permissions.js +6 -6
  46. package/lib/enums/permissions.js.map +1 -0
  47. package/lib/enums/team-member-status.js +3 -3
  48. package/lib/enums/team-member-status.js.map +1 -0
  49. package/lib/errors/auth-error-messages.js +23 -23
  50. package/lib/errors/auth-error-messages.js.map +1 -0
  51. package/lib/errors/auth-error.js +10 -6
  52. package/lib/errors/auth-error.js.map +1 -0
  53. package/lib/index.js +1 -1
  54. package/lib/index.js.map +1 -0
  55. package/lib/interfaces/configuration/configuration.js +31 -31
  56. package/lib/interfaces/configuration/configuration.js.map +1 -0
  57. package/lib/interfaces/generated/generated-models.d.ts +267 -13
  58. package/lib/interfaces/generated/generated-models.js +15744 -919
  59. package/lib/interfaces/generated/generated-models.js.map +1 -0
  60. package/lib/interfaces/organization/organization-context-service.d.ts +1 -0
  61. package/lib/interfaces/organization/organization-context.js +12 -17
  62. package/lib/interfaces/organization/organization-context.js.map +1 -0
  63. package/lib/modules/account-api/enums/index.js +65 -65
  64. package/lib/modules/account-api/enums/index.js.map +1 -0
  65. package/lib/modules/billing-api/enums/index.js +19 -19
  66. package/lib/modules/billing-api/enums/index.js.map +1 -0
  67. package/lib/modules/inbox/enums/index.js +24 -24
  68. package/lib/modules/inbox/enums/index.js.map +1 -0
  69. package/lib/routes.json +1 -0
  70. package/lib/services/abstract-configuration.js +113 -110
  71. package/lib/services/abstract-configuration.js.map +1 -0
  72. package/lib/services/abstract-organization-context-service.d.ts +1 -0
  73. package/lib/services/abstract-organization-context-service.js +97 -89
  74. package/lib/services/abstract-organization-context-service.js.map +1 -0
  75. package/lib/utils/configuration-utils.js +9 -9
  76. package/lib/utils/configuration-utils.js.map +1 -0
  77. package/lib/utils/date-utils.js +3 -3
  78. package/lib/utils/date-utils.js.map +1 -0
  79. package/lib/utils/flatten-utils.js +36 -40
  80. package/lib/utils/flatten-utils.js.map +1 -0
  81. package/lib/utils/generate-uri.js +24 -14
  82. package/lib/utils/generate-uri.js.map +1 -0
  83. package/lib/utils/generated-settings-id.js +5 -5
  84. package/lib/utils/generated-settings-id.js.map +1 -0
  85. package/lib/utils/omit-deep.js +8 -8
  86. package/lib/utils/omit-deep.js.map +1 -0
  87. package/lib/utils/roles-utils.js +6 -2
  88. package/lib/utils/roles-utils.js.map +1 -0
  89. package/lib/utils/uri.js +10 -12
  90. package/lib/utils/uri.js.map +1 -0
  91. package/lib/utils/utils.js +20 -15
  92. package/lib/utils/utils.js.map +1 -0
  93. package/lib/utils/validations.js +3 -3
  94. package/lib/utils/validations.js.map +1 -0
  95. package/package.json +2 -2
@@ -1,121 +1,148 @@
1
1
  import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';import {TernarySearchTree}from'@vscode-alt/monaco-editor/esm/vs/base/common/map.js';import*as resources from'@vscode-alt/monaco-editor/esm/vs/base/common/resources.js';import {isAbsolute}from'@vscode-alt/monaco-editor/esm/vs/base/common/path.js';import {isRawFileOrganizationResource,isRawUriOrganizationResource}from'./helpers/organization-helpers.js';function getResourceWithoutFragment(uri) {
2
- return URI.from({
3
- scheme: uri.scheme,
4
- authority: uri.authority,
5
- path: uri.path,
6
- query: uri.query,
7
- });
2
+ return URI.from({
3
+ scheme: uri.scheme,
4
+ authority: uri.authority,
5
+ path: uri.path,
6
+ query: uri.query
7
+ });
8
8
  }
9
9
  class OrganizationContext {
10
- constructor(_id, resources = [], _configuration = null) {
11
- this._id = _id;
12
- this._configuration = _configuration;
13
- this._resourcesMap = TernarySearchTree.forPaths();
14
- this.resources = resources;
10
+ _id;
11
+ _configuration;
12
+ _resourcesMap = TernarySearchTree.forPaths();
13
+ _resources;
14
+ constructor(_id, resources = [], _configuration = null) {
15
+ this._id = _id;
16
+ this._configuration = _configuration;
17
+ this.resources = resources;
18
+ }
19
+ update(organization) {
20
+ this._id = organization.id;
21
+ this._configuration = organization.configuration;
22
+ this.resources = organization.resources;
23
+ }
24
+ get resources() {
25
+ return this._resources;
26
+ }
27
+ set resources(resources) {
28
+ this._resources = resources;
29
+ this.updateResourcesMap();
30
+ }
31
+ get id() {
32
+ return this._id;
33
+ }
34
+ get configuration() {
35
+ return this._configuration;
36
+ }
37
+ set configuration(configuration) {
38
+ this._configuration = configuration;
39
+ }
40
+ getResource(resource) {
41
+ if (!resource) {
42
+ return null;
15
43
  }
16
- update(organization) {
17
- this._id = organization.id;
18
- this._configuration = organization.configuration;
19
- this.resources = organization.resources;
20
- }
21
- get resources() {
22
- return this._resources;
23
- }
24
- set resources(resources) {
25
- this._resources = resources;
26
- this.updateResourcesMap();
27
- }
28
- get id() {
29
- return this._id;
30
- }
31
- get configuration() {
32
- return this._configuration;
33
- }
34
- set configuration(configuration) {
35
- this._configuration = configuration;
36
- }
37
- getResource(resource) {
38
- if (!resource) {
39
- return null;
40
- }
41
- // @sri modification to make sure fragment is ignored
42
- const resourceWithoutFrag = getResourceWithoutFragment(resource);
43
- return this._resourcesMap.findSubstr(resourceWithoutFrag.toString()) || null;
44
- }
45
- updateResourcesMap() {
46
- this._resourcesMap = TernarySearchTree.forPaths();
47
- for (const folder of this.resources) {
48
- // @sri modified to store resource withoout fragment
49
- const resourceWithoutFrag = getResourceWithoutFragment(folder.uri);
50
- this._resourcesMap.set(resourceWithoutFrag.toString(), folder);
51
- }
52
- }
53
- toJSON() {
54
- return { id: this.id, resources: this.resources, configuration: this.configuration };
44
+ // @sri modification to make sure fragment is ignored
45
+ const resourceWithoutFrag = getResourceWithoutFragment(resource);
46
+ return this._resourcesMap.findSubstr(resourceWithoutFrag.toString()) || null;
47
+ }
48
+ updateResourcesMap() {
49
+ this._resourcesMap = TernarySearchTree.forPaths();
50
+ for (const folder of this.resources) {
51
+ // @sri modified to store resource withoout fragment
52
+ const resourceWithoutFrag = getResourceWithoutFragment(folder.uri);
53
+ this._resourcesMap.set(resourceWithoutFrag.toString(), folder);
55
54
  }
55
+ }
56
+ toJSON() {
57
+ return {
58
+ id: this.id,
59
+ resources: this.resources,
60
+ configuration: this.configuration
61
+ };
62
+ }
56
63
  }
57
64
  class OrganizationResource {
58
- constructor(data, raw) {
59
- this.raw = raw;
60
- this.uri = data.uri;
61
- this.index = data.index;
62
- this.name = data.name;
63
- this.__typename = data.__typename || 'OrganizationResourceData';
64
- }
65
- toResource(relativePath) {
66
- return resources.joinPath(this.uri, relativePath);
67
- }
68
- toJSON() {
69
- return { uri: this.uri, name: this.name, index: this.index, __typename: this.__typename };
70
- }
65
+ raw;
66
+ uri;
67
+ name;
68
+ index;
69
+ __typename;
70
+ constructor(data, raw) {
71
+ this.raw = raw;
72
+ this.uri = data.uri;
73
+ this.index = data.index;
74
+ this.name = data.name;
75
+ this.__typename = data.__typename || 'OrganizationResourceData';
76
+ }
77
+ toResource(relativePath) {
78
+ return resources.joinPath(this.uri, relativePath);
79
+ }
80
+ toJSON() {
81
+ return {
82
+ uri: this.uri,
83
+ name: this.name,
84
+ index: this.index,
85
+ __typename: this.__typename
86
+ };
87
+ }
71
88
  }
72
89
  function toOrganizationResource(resource) {
73
- return new OrganizationResource({ uri: resource, index: 0, name: resources.basenameOrAuthority(resource) }, { uri: resource.toString() });
90
+ return new OrganizationResource({
91
+ uri: resource,
92
+ index: 0,
93
+ name: resources.basenameOrAuthority(resource)
94
+ }, {
95
+ uri: resource.toString()
96
+ });
74
97
  }
75
98
  function toOrganizationResources(configuredResources, organizationConfigFile) {
76
- let result = [];
77
- let seen = Object.create(null);
78
- const relativeTo = resources.dirname(organizationConfigFile);
79
- for (let configuredResource of configuredResources) {
80
- let uri = null;
81
- if (isRawFileOrganizationResource(configuredResource)) {
82
- if (configuredResource.path) {
83
- uri = resources.resolvePath(relativeTo, configuredResource.path);
84
- }
85
- }
86
- else if (isRawUriOrganizationResource(configuredResource)) {
87
- try {
88
- uri = URI.parse(configuredResource.uri);
89
- // this makes sure all organization folder are absolute
90
- if (uri.path[0] !== '/') {
91
- uri = uri.with({ path: '/' + uri.path });
92
- }
93
- }
94
- catch (e) {
95
- console.warn(e);
96
- // ignore
97
- }
98
- }
99
- if (uri) {
100
- // remove duplicates
101
- let comparisonKey = resources.getComparisonKey(uri);
102
- if (!seen[comparisonKey]) {
103
- seen[comparisonKey] = true;
104
- const name = configuredResource.name || resources.basenameOrAuthority(uri);
105
- result.push(new OrganizationResource({ uri, name, index: result.length }, configuredResource));
106
- }
99
+ let result = [];
100
+ let seen = Object.create(null);
101
+ const relativeTo = resources.dirname(organizationConfigFile);
102
+ for (let configuredResource of configuredResources) {
103
+ let uri = null;
104
+ if (isRawFileOrganizationResource(configuredResource)) {
105
+ if (configuredResource.path) {
106
+ uri = resources.resolvePath(relativeTo, configuredResource.path);
107
+ }
108
+ } else if (isRawUriOrganizationResource(configuredResource)) {
109
+ try {
110
+ uri = URI.parse(configuredResource.uri);
111
+ // this makes sure all organization folder are absolute
112
+ if (uri.path[0] !== '/') {
113
+ uri = uri.with({
114
+ path: '/' + uri.path
115
+ });
107
116
  }
117
+ } catch (e) {
118
+ console.warn(e);
119
+ // ignore
120
+ }
108
121
  }
109
- return result;
122
+ if (uri) {
123
+ // remove duplicates
124
+ let comparisonKey = resources.getComparisonKey(uri);
125
+ if (!seen[comparisonKey]) {
126
+ seen[comparisonKey] = true;
127
+ const name = configuredResource.name || resources.basenameOrAuthority(uri);
128
+ result.push(new OrganizationResource({
129
+ uri,
130
+ name,
131
+ index: result.length
132
+ }, configuredResource));
133
+ }
134
+ }
135
+ }
136
+ return result;
110
137
  }
111
138
  function toUri(path, relativeTo) {
112
- if (path) {
113
- if (isAbsolute(path)) {
114
- return URI.file(path);
115
- }
116
- if (relativeTo) {
117
- return resources.joinPath(relativeTo, path);
118
- }
139
+ if (path) {
140
+ if (isAbsolute(path)) {
141
+ return URI.file(path);
142
+ }
143
+ if (relativeTo) {
144
+ return resources.joinPath(relativeTo, path);
119
145
  }
120
- return null;
121
- }export{OrganizationContext,OrganizationResource,toOrganizationResource,toOrganizationResources,toUri};
146
+ }
147
+ return null;
148
+ }export{OrganizationContext,OrganizationResource,toOrganizationResource,toOrganizationResources,toUri};//# sourceMappingURL=organization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.js","sources":["../../../src/core/organization/organization.ts"],"sourcesContent":[null],"names":[],"mappings":"uaASA,SAAS,0BAA0B,CAAC,GAAQ,EAAA;SAEpC,GAAA,CAAA,IAAI,CAAA;UACJ,EAAA,GAAA,CAAE,MAAU;aACT,EAAA,GAAA,CAAE,SAAa;QACxB,EAAI,GAAA,CAAE,IAAI;SACL,EAAA,GAAA,CAAE,KAAS;AAChB,GAAA,CAAA,CAAA;AACF,CAAC;MACY,mBAAmB,CAAA;AAMtB,EAAA,GAAA,CAAA;AAEA,EAAA,cAAA,CAAA;AAND,EAAA,aAAA,GAAiE,iBAAA,CAAA,QAAkB,EAAQ;AAC3F,EAAA,UAAA,CAAA;AAER,EAAA,WAAA,CAAA,KACoB,SACnB,GAAA,EAAoC,EAAE,qBACG,EAAA;QAFjC,CAAG,GAAA,GAAA,GAAA,CAAH;QAEA,CAAc,cAAA,GAAA;AAEtB,IAAA,IAAA,CAAA,SAAK,GAAA,SAAY,CAAA;;AAGlB,EAAA,MAAA,CAAA,YAAwC,EAAA;AACvC,IAAA,IAAA,CAAA,GAAI,GAAI,YAAe,CAAA,EAAA,CAAA;AACvB,IAAA,IAAA,CAAA,cAAmB,GAAA,YAAe,CAAA;AAClC,IAAA,IAAA,CAAA,SAAc,GAAA,YAAe,CAAA;;AAG9B,EAAA,IAAA,SAAa,GAAA;WACL,IAAA,CAAA,UAAK,CAAA;;MAGT,SAAA,CAAA,SAA2C,EAAA;AAC9C,IAAA,IAAA,CAAA,UAAK,GAAA,SAAa,CAA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AAA,kBAAgB,CAAA,GAAA,CAAA,CAAA;AACzB;AAEA,QAAA,IAAA,GAAA,CAAA,IAAA,CAAA,CAAM,CAAI,KAAA,GAAqB,EAAA;gBAC/B,GAAM,CAAA;AACN,YAAA,IAAA,EAAA,GAAA,GAAA,GAAA,CAAA,IAAA;AACD,WAAA,CAAA,CAAA;AACD,SAAA;AACD,OAAA,CAAA,UAAc;AACf,QAAC,OAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA;AAGD;AACI,OAAA;AACI,KAAA;AACI,IAAA,IAAA,GAAA,EAAA;AACH;AACD,MAAA,IAAA,aAAgB,GAAA,SAAA,CAAA,gBAAA,CAAA,GAAA,CAAA,CAAA;eACL,CAAA,aAAU,CAAQ,EAAA;AAC5B,QAAA,IAAA,CAAA,aAAA,CAAA,GAAA,IAAA,CAAA;AACJ,QAAA,MAAA,IAAA,GAAA,kBAAA,CAAA,IAAA,IAAA,SAAA,CAAA,mBAAA,CAAA,GAAA,CAAA,CAAA;AACD,QAAA,OAAW,IAAC,CAAA,IAAA,oBAAA,CAAA;AAChB,UAAC,GAAA;;;;;;;;;;;;;;;;;;;"}
package/lib/core/path.js CHANGED
@@ -17,168 +17,172 @@
17
17
  * └──────┴───────────────┴──────┴─────┘
18
18
  */
19
19
  class Path {
20
- static isDrive(segment) {
21
- return segment.endsWith(':');
20
+ static separator = '/';
21
+ static isDrive(segment) {
22
+ return segment.endsWith(':');
23
+ }
24
+ /**
25
+ * vscode-uri always normalizes drive letters to lower case:
26
+ * https://github.com/Microsoft/vscode-uri/blob/b1d3221579f97f28a839b6f996d76fc45e9964d8/src/index.ts#L1025
27
+ * Theia path should be adjusted to this.
28
+ */
29
+ static normalizeDrive(path) {
30
+ // lower-case windows drive letters in /C:/fff or C:/fff
31
+ if (path.length >= 3 && path.charCodeAt(0) === 47 /* '/' */ && path.charCodeAt(2) === 58 /* ':' */) {
32
+ const code = path.charCodeAt(1);
33
+ if (code >= 65 /* A */ && code <= 90 /* Z */) {
34
+ path = `/${String.fromCharCode(code + 32)}:${path.substr(3)}`; // "/c:".length === 3
35
+ }
36
+ } else if (path.length >= 2 && path.charCodeAt(1) === 58 /* ':' */) {
37
+ const code = path.charCodeAt(0);
38
+ if (code >= 65 /* A */ && code <= 90 /* Z */) {
39
+ path = `${String.fromCharCode(code + 32)}:${path.substr(2)}`; // "/c:".length === 3
40
+ }
22
41
  }
23
- /**
24
- * vscode-uri always normalizes drive letters to lower case:
25
- * https://github.com/Microsoft/vscode-uri/blob/b1d3221579f97f28a839b6f996d76fc45e9964d8/src/index.ts#L1025
26
- * Theia path should be adjusted to this.
27
- */
28
- static normalizeDrive(path) {
29
- // lower-case windows drive letters in /C:/fff or C:/fff
30
- if (path.length >= 3 && path.charCodeAt(0) === 47 /* '/' */ && path.charCodeAt(2) === 58 /* ':' */) {
31
- const code = path.charCodeAt(1);
32
- if (code >= 65 /* A */ && code <= 90 /* Z */) {
33
- path = `/${String.fromCharCode(code + 32)}:${path.substr(3)}`; // "/c:".length === 3
34
- }
35
- }
36
- else if (path.length >= 2 && path.charCodeAt(1) === 58 /* ':' */) {
37
- const code = path.charCodeAt(0);
38
- if (code >= 65 /* A */ && code <= 90 /* Z */) {
39
- path = `${String.fromCharCode(code + 32)}:${path.substr(2)}`; // "/c:".length === 3
40
- }
41
- }
42
- return path;
42
+ return path;
43
+ }
44
+ isAbsolute;
45
+ isRoot;
46
+ root;
47
+ base;
48
+ name;
49
+ ext;
50
+ _dir;
51
+ raw;
52
+ /**
53
+ * The raw should be normalized, meaning that only '/' is allowed as a path separator.
54
+ */
55
+ constructor(raw) {
56
+ this.raw = Path.normalizeDrive(raw);
57
+ const firstIndex = raw.indexOf(Path.separator);
58
+ const lastIndex = raw.lastIndexOf(Path.separator);
59
+ this.isAbsolute = firstIndex === 0;
60
+ this.base = lastIndex === -1 ? raw : raw.substr(lastIndex + 1);
61
+ this.isRoot = this.isAbsolute && firstIndex === lastIndex && (!this.base || Path.isDrive(this.base));
62
+ this.root = this.computeRoot();
63
+ const extIndex = this.base.lastIndexOf('.');
64
+ this.name = extIndex === -1 ? this.base : this.base.substr(0, extIndex);
65
+ this.ext = extIndex === -1 ? '' : this.base.substr(extIndex);
66
+ }
67
+ computeRoot() {
68
+ // '/' -> '/'
69
+ // '/c:' -> '/c:'
70
+ if (this.isRoot) {
71
+ return this;
43
72
  }
44
- /**
45
- * The raw should be normalized, meaning that only '/' is allowed as a path separator.
46
- */
47
- constructor(raw) {
48
- this.raw = Path.normalizeDrive(raw);
49
- const firstIndex = raw.indexOf(Path.separator);
50
- const lastIndex = raw.lastIndexOf(Path.separator);
51
- this.isAbsolute = firstIndex === 0;
52
- this.base = lastIndex === -1 ? raw : raw.substr(lastIndex + 1);
53
- this.isRoot = this.isAbsolute && firstIndex === lastIndex && (!this.base || Path.isDrive(this.base));
54
- this.root = this.computeRoot();
55
- const extIndex = this.base.lastIndexOf('.');
56
- this.name = extIndex === -1 ? this.base : this.base.substr(0, extIndex);
57
- this.ext = extIndex === -1 ? '' : this.base.substr(extIndex);
73
+ // 'foo/bar' -> `undefined`
74
+ if (!this.isAbsolute) {
75
+ return undefined;
58
76
  }
59
- computeRoot() {
60
- // '/' -> '/'
61
- // '/c:' -> '/c:'
62
- if (this.isRoot) {
63
- return this;
64
- }
65
- // 'foo/bar' -> `undefined`
66
- if (!this.isAbsolute) {
67
- return undefined;
68
- }
69
- const index = this.raw.indexOf(Path.separator, Path.separator.length);
70
- if (index === -1) {
71
- // '/foo/bar' -> '/'
72
- return new Path(Path.separator);
73
- }
74
- // '/c:/foo/bar' -> '/c:'
75
- // '/foo/bar' -> '/'
76
- return new Path(this.raw.substr(0, index)).root;
77
+ const index = this.raw.indexOf(Path.separator, Path.separator.length);
78
+ if (index === -1) {
79
+ // '/foo/bar' -> '/'
80
+ return new Path(Path.separator);
77
81
  }
78
- /**
79
- * Returns the parent directory if it exists (`hasDir === true`) or `this` otherwise.
80
- */
81
- get dir() {
82
- if (this._dir === undefined) {
83
- this._dir = this.computeDir();
84
- }
85
- return this._dir;
82
+ // '/c:/foo/bar' -> '/c:'
83
+ // '/foo/bar' -> '/'
84
+ return new Path(this.raw.substr(0, index)).root;
85
+ }
86
+ /**
87
+ * Returns the parent directory if it exists (`hasDir === true`) or `this` otherwise.
88
+ */
89
+ get dir() {
90
+ if (this._dir === undefined) {
91
+ this._dir = this.computeDir();
86
92
  }
87
- /**
88
- * Returns `true` if this has a parent directory, `false` otherwise.
89
- *
90
- * _This implementation returns `true` if and only if this is not the root dir and
91
- * there is a path separator in the raw path._
92
- */
93
- get hasDir() {
94
- return !this.isRoot && this.raw.lastIndexOf(Path.separator) !== -1;
93
+ return this._dir;
94
+ }
95
+ /**
96
+ * Returns `true` if this has a parent directory, `false` otherwise.
97
+ *
98
+ * _This implementation returns `true` if and only if this is not the root dir and
99
+ * there is a path separator in the raw path._
100
+ */
101
+ get hasDir() {
102
+ return !this.isRoot && this.raw.lastIndexOf(Path.separator) !== -1;
103
+ }
104
+ computeDir() {
105
+ if (!this.hasDir) {
106
+ return this;
95
107
  }
96
- computeDir() {
97
- if (!this.hasDir) {
98
- return this;
99
- }
100
- const lastIndex = this.raw.lastIndexOf(Path.separator);
101
- if (this.isAbsolute) {
102
- const firstIndex = this.raw.indexOf(Path.separator);
103
- if (firstIndex === lastIndex) {
104
- return new Path(this.raw.substr(0, firstIndex + 1));
105
- }
106
- }
107
- return new Path(this.raw.substr(0, lastIndex));
108
+ const lastIndex = this.raw.lastIndexOf(Path.separator);
109
+ if (this.isAbsolute) {
110
+ const firstIndex = this.raw.indexOf(Path.separator);
111
+ if (firstIndex === lastIndex) {
112
+ return new Path(this.raw.substr(0, firstIndex + 1));
113
+ }
108
114
  }
109
- join(...paths) {
110
- const relativePath = paths.filter(s => !!s).join(Path.separator);
111
- if (!relativePath) {
112
- return this;
113
- }
114
- if (this.raw.endsWith(Path.separator)) {
115
- return new Path(this.raw + relativePath);
116
- }
117
- return new Path(this.raw + Path.separator + relativePath);
115
+ return new Path(this.raw.substr(0, lastIndex));
116
+ }
117
+ join(...paths) {
118
+ const relativePath = paths.filter(s => !!s).join(Path.separator);
119
+ if (!relativePath) {
120
+ return this;
118
121
  }
119
- toString() {
120
- return this.raw;
122
+ if (this.raw.endsWith(Path.separator)) {
123
+ return new Path(this.raw + relativePath);
121
124
  }
122
- relative(path) {
123
- if (this.raw === path.raw) {
124
- return new Path('');
125
- }
126
- if (!this.raw || !path.raw) {
127
- return undefined;
128
- }
129
- const raw = this.base ? this.raw + Path.separator : this.raw;
130
- if (!path.raw.startsWith(raw)) {
131
- return undefined;
132
- }
133
- const relativePath = path.raw.substr(raw.length);
134
- return new Path(relativePath);
125
+ return new Path(this.raw + Path.separator + relativePath);
126
+ }
127
+ toString() {
128
+ return this.raw;
129
+ }
130
+ relative(path) {
131
+ if (this.raw === path.raw) {
132
+ return new Path('');
135
133
  }
136
- isEqualOrParent(path) {
137
- return !!this.relative(path);
134
+ if (!this.raw || !path.raw) {
135
+ return undefined;
138
136
  }
139
- relativity(path) {
140
- const relative = this.relative(path);
141
- if (relative) {
142
- const relativeStr = relative.toString();
143
- if (relativeStr === '') {
144
- return 0;
145
- }
146
- return relativeStr.split(Path.separator).length;
147
- }
148
- return -1;
137
+ const raw = this.base ? this.raw + Path.separator : this.raw;
138
+ if (!path.raw.startsWith(raw)) {
139
+ return undefined;
140
+ }
141
+ const relativePath = path.raw.substr(raw.length);
142
+ return new Path(relativePath);
143
+ }
144
+ isEqualOrParent(path) {
145
+ return !!this.relative(path);
146
+ }
147
+ relativity(path) {
148
+ const relative = this.relative(path);
149
+ if (relative) {
150
+ const relativeStr = relative.toString();
151
+ if (relativeStr === '') {
152
+ return 0;
153
+ }
154
+ return relativeStr.split(Path.separator).length;
149
155
  }
150
- /*
151
- * return a normalized Path, resolving '..' and '.' segments
152
- */
153
- normalize() {
154
- const trailingSlash = this.raw.endsWith('/');
155
- const pathArray = this.toString().split('/');
156
- const resultArray = [];
157
- pathArray.forEach((value, index) => {
158
- if (!value || value === '.') {
159
- return;
160
- }
161
- if (value === '..') {
162
- if (resultArray.length && resultArray[resultArray.length - 1] !== '..') {
163
- resultArray.pop();
164
- }
165
- else if (!this.isAbsolute) {
166
- resultArray.push('..');
167
- }
168
- }
169
- else {
170
- resultArray.push(value);
171
- }
172
- });
173
- if (resultArray.length === 0) {
174
- if (this.isRoot) {
175
- return new Path('/');
176
- }
177
- else {
178
- return new Path('.');
179
- }
156
+ return -1;
157
+ }
158
+ /*
159
+ * return a normalized Path, resolving '..' and '.' segments
160
+ */
161
+ normalize() {
162
+ const trailingSlash = this.raw.endsWith('/');
163
+ const pathArray = this.toString().split('/');
164
+ const resultArray = [];
165
+ pathArray.forEach((value, index) => {
166
+ if (!value || value === '.') {
167
+ return;
168
+ }
169
+ if (value === '..') {
170
+ if (resultArray.length && resultArray[resultArray.length - 1] !== '..') {
171
+ resultArray.pop();
172
+ } else if (!this.isAbsolute) {
173
+ resultArray.push('..');
180
174
  }
181
- return new Path((this.isAbsolute ? '/' : '') + resultArray.join('/') + (trailingSlash ? '/' : ''));
175
+ } else {
176
+ resultArray.push(value);
177
+ }
178
+ });
179
+ if (resultArray.length === 0) {
180
+ if (this.isRoot) {
181
+ return new Path('/');
182
+ } else {
183
+ return new Path('.');
184
+ }
182
185
  }
183
- }
184
- Path.separator = '/';export{Path};
186
+ return new Path((this.isAbsolute ? '/' : '') + resultArray.join('/') + (trailingSlash ? '/' : ''));
187
+ }
188
+ }export{Path};//# sourceMappingURL=path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.js","sources":["../../src/core/path.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAEA;;;;;;;;;;;;;;;;AAgBG;MACU,IAAI,CAAA;AACb,EAAA,OAAA,SAAO,GAAiB,GAAA,CAAA;SAElB,OAAQ,CAAA,OAAgB,EAAA;AAC1B,IAAA,OAAA,gBAAe,CAAA,GAAQ,CAAC,CAAA;;AAG5B;;;;AAIG;SACG,cAAe,CAAA,IAAa,EAAA;;QA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atus) {
3
- ConnectionStatus["LINKED"] = "LINKED";
4
- ConnectionStatus["NOT_CONNECTED"] = "NOT_CONNECTED";
5
- ConnectionStatus["EXPIRED"] = "EXPIRED";
6
- ConnectionStatus["BROKEN"] = "BROKEN";
7
- })(ConnectionStatus || (ConnectionStatus = {}));export{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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-status.js","sources":["../../src/enums/connection-status.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,iBAKX;AALD,CAAA,UAAY,gBAAgB,EAAA;AAC1B,EAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAA,CAAA;AACA,EAAA,gBAAA,CAAA,eAAA,CAAA,GAAA,eAAA,CAAA;AACA,EAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAA,CAAA;AACA,EAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAA,CAAA;AACF,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,GAK3B,EAAA,CAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  var IntegrationConfigStatus;
2
2
  (function (IntegrationConfigStatus) {
3
- IntegrationConfigStatus["InProgress"] = "In Progress";
4
- IntegrationConfigStatus["Pending"] = "Pending";
5
- IntegrationConfigStatus["Completed"] = "Completed";
6
- })(IntegrationConfigStatus || (IntegrationConfigStatus = {}));export{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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration-configuration-status.js","sources":["../../src/enums/integration-configuration-status.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,wBAIX;AAJD,CAAA,UAAY,uBAAuB,EAAA;AACjC,EAAA,uBAAA,CAAA,YAAA,CAAA,GAAA,aAAA,CAAA;AACA,EAAA,uBAAA,CAAA,SAAA,CAAA,GAAA,SAAA,CAAA;AACA,EAAA,uBAAA,CAAA,WAAA,CAAA,GAAA,WAAA,CAAA;AACF,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,GAIlC,EAAA,CAAA,CAAA"}