@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.
- package/lib/constants/billing-plan.js +1 -1
- package/lib/constants/billing-plan.js.map +1 -0
- package/lib/constants/configuration.js +1 -1
- package/lib/constants/configuration.js.map +1 -0
- package/lib/constants/constants.js +1 -1
- package/lib/constants/constants.js.map +1 -0
- package/lib/constants/default-workspace-config.js +1 -1
- package/lib/constants/default-workspace-config.js.map +1 -0
- package/lib/constants/routes.js +1 -1
- package/lib/constants/routes.js.map +1 -0
- package/lib/constants/types.js +14 -14
- package/lib/constants/types.js.map +1 -0
- package/lib/constants/urls.js +1 -1
- package/lib/constants/urls.js.map +1 -0
- package/lib/core/configurations/configuration.js +546 -434
- package/lib/core/configurations/configuration.js.map +1 -0
- package/lib/core/configurations/events/ConfigurationChangeEvent.js +52 -41
- package/lib/core/configurations/events/ConfigurationChangeEvent.js.map +1 -0
- package/lib/core/configurations/helpers/configuration.js +138 -149
- package/lib/core/configurations/helpers/configuration.js.map +1 -0
- package/lib/core/configurations/models/ConfigurationModel.js +186 -187
- package/lib/core/configurations/models/ConfigurationModel.js.map +1 -0
- package/lib/core/disposable.js +67 -68
- package/lib/core/disposable.js.map +1 -0
- package/lib/core/event.js +240 -230
- package/lib/core/event.js.map +1 -0
- package/lib/core/organization/configuration.js +15 -14
- package/lib/core/organization/configuration.js.map +1 -0
- package/lib/core/organization/helpers/organization-helpers.js +7 -14
- package/lib/core/organization/helpers/organization-helpers.js.map +1 -0
- package/lib/core/organization/organization.js +132 -105
- package/lib/core/organization/organization.js.map +1 -0
- package/lib/core/path.js +155 -151
- package/lib/core/path.js.map +1 -0
- package/lib/enums/connection-status.js +5 -5
- package/lib/enums/connection-status.js.map +1 -0
- package/lib/enums/integration-configuration-status.js +4 -4
- package/lib/enums/integration-configuration-status.js.map +1 -0
- package/lib/enums/integrations-configuration-steps.js +7 -7
- package/lib/enums/integrations-configuration-steps.js.map +1 -0
- package/lib/enums/integrations-connection-names.js +11 -11
- package/lib/enums/integrations-connection-names.js.map +1 -0
- package/lib/enums/integrations.js +9 -9
- package/lib/enums/integrations.js.map +1 -0
- package/lib/enums/permissions.js +6 -6
- package/lib/enums/permissions.js.map +1 -0
- package/lib/enums/team-member-status.js +3 -3
- package/lib/enums/team-member-status.js.map +1 -0
- package/lib/errors/auth-error-messages.js +23 -23
- package/lib/errors/auth-error-messages.js.map +1 -0
- package/lib/errors/auth-error.js +10 -6
- package/lib/errors/auth-error.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -0
- package/lib/interfaces/configuration/configuration.js +31 -31
- package/lib/interfaces/configuration/configuration.js.map +1 -0
- package/lib/interfaces/generated/generated-models.d.ts +267 -13
- package/lib/interfaces/generated/generated-models.js +15744 -919
- package/lib/interfaces/generated/generated-models.js.map +1 -0
- package/lib/interfaces/organization/organization-context-service.d.ts +1 -0
- package/lib/interfaces/organization/organization-context.js +12 -17
- package/lib/interfaces/organization/organization-context.js.map +1 -0
- package/lib/modules/account-api/enums/index.js +65 -65
- package/lib/modules/account-api/enums/index.js.map +1 -0
- package/lib/modules/billing-api/enums/index.js +19 -19
- package/lib/modules/billing-api/enums/index.js.map +1 -0
- package/lib/modules/inbox/enums/index.js +24 -24
- package/lib/modules/inbox/enums/index.js.map +1 -0
- package/lib/routes.json +1 -0
- package/lib/services/abstract-configuration.js +113 -110
- package/lib/services/abstract-configuration.js.map +1 -0
- package/lib/services/abstract-organization-context-service.d.ts +1 -0
- package/lib/services/abstract-organization-context-service.js +97 -89
- package/lib/services/abstract-organization-context-service.js.map +1 -0
- package/lib/utils/configuration-utils.js +9 -9
- package/lib/utils/configuration-utils.js.map +1 -0
- package/lib/utils/date-utils.js +3 -3
- package/lib/utils/date-utils.js.map +1 -0
- package/lib/utils/flatten-utils.js +36 -40
- package/lib/utils/flatten-utils.js.map +1 -0
- package/lib/utils/generate-uri.js +24 -14
- package/lib/utils/generate-uri.js.map +1 -0
- package/lib/utils/generated-settings-id.js +5 -5
- package/lib/utils/generated-settings-id.js.map +1 -0
- package/lib/utils/omit-deep.js +8 -8
- package/lib/utils/omit-deep.js.map +1 -0
- package/lib/utils/roles-utils.js +6 -2
- package/lib/utils/roles-utils.js.map +1 -0
- package/lib/utils/uri.js +10 -12
- package/lib/utils/uri.js.map +1 -0
- package/lib/utils/utils.js +20 -15
- package/lib/utils/utils.js.map +1 -0
- package/lib/utils/validations.js +3 -3
- package/lib/utils/validations.js.map +1 -0
- 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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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
|
-
|
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
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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
|
-
|
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
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
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
|
-
|
121
|
-
|
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,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AA,EAAA;AACD,QAAA,GAAA,GAAA,SAAA,CAAA,WAAA,CAAA,UAAA,EAAA,kBAAA,CAAA,IAAA,CAAA,CAAA;AACD,OAAA;eACqB,4BAAA,CAAA,kBAAA,CAAA,EAAA;;AAEpB,QAAA,GAAA,GAAA,GAAK,CAAA,KAAK,CAAA,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
|
-
|
21
|
-
|
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
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
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
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
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
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
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
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
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
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
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
|
-
|
120
|
-
|
122
|
+
if (this.raw.endsWith(Path.separator)) {
|
123
|
+
return new Path(this.raw + relativePath);
|
121
124
|
}
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
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
|
-
|
137
|
-
|
134
|
+
if (!this.raw || !path.raw) {
|
135
|
+
return undefined;
|
138
136
|
}
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
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
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
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
|
-
|
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
|
-
|
186
|
+
return new Path((this.isAbsolute ? '/' : '') + resultArray.join('/') + (trailingSlash ? '/' : ''));
|
187
|
+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A,IAAA,CAAA,GAAA,CAAA,CAAA;AACH,OAAA,MAAe;eACP,IAAA,IAAK,CAAA,GAAM,CAAE,CAAA;AACb,OAAA;AACH,KAAA;AAAM,IAAA,OAAA,IAAA,IAAA,CAAA,CAAA,IAAA,CAAA,UAAA,GAAA,GAAA,GAAA,EAAA,IAAA,WAAA,CAAA,IAAA,CAAA,GAAA,CAAA,IAAA,aAAA,GAAA,GAAA,GAAA,EAAA,CAAA,CAAA,CAAA;AACH,GAAA;AACH"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
var ConnectionStatus;
|
2
2
|
(function (ConnectionStatus) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
4
|
-
|
5
|
-
|
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"}
|