@adminide-stack/core 7.0.3-alpha.10 → 7.0.3-alpha.25
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/routes.js +2 -2
- package/lib/constants/routes.js.map +1 -1
- package/lib/constants/types.js +13 -13
- package/lib/constants/types.js.map +1 -1
- package/lib/constants/urls.d.ts +11 -0
- package/lib/constants/urls.js +13 -1
- package/lib/constants/urls.js.map +1 -1
- package/lib/core/configurations/configuration.js +444 -546
- package/lib/core/configurations/configuration.js.map +1 -1
- package/lib/core/configurations/events/ConfigurationChangeEvent.js +49 -52
- package/lib/core/configurations/events/ConfigurationChangeEvent.js.map +1 -1
- package/lib/core/configurations/helpers/configuration.js +149 -138
- package/lib/core/configurations/helpers/configuration.js.map +1 -1
- package/lib/core/configurations/models/ConfigurationModel.js +190 -186
- package/lib/core/configurations/models/ConfigurationModel.js.map +1 -1
- package/lib/core/disposable.js +67 -66
- package/lib/core/disposable.js.map +1 -1
- package/lib/core/event.js +235 -239
- package/lib/core/event.js.map +1 -1
- package/lib/core/organization/configuration.js +15 -15
- package/lib/core/organization/configuration.js.map +1 -1
- package/lib/core/organization/helpers/organization-helpers.js +14 -7
- package/lib/core/organization/helpers/organization-helpers.js.map +1 -1
- package/lib/core/organization/organization.js +113 -132
- package/lib/core/organization/organization.js.map +1 -1
- package/lib/core/path.js +158 -154
- package/lib/core/path.js.map +1 -1
- package/lib/enums/connection-status.js +4 -4
- package/lib/enums/connection-status.js.map +1 -1
- package/lib/enums/integration-configuration-status.js +3 -3
- package/lib/enums/integration-configuration-status.js.map +1 -1
- package/lib/enums/integrations-configuration-steps.js +6 -6
- package/lib/enums/integrations-configuration-steps.js.map +1 -1
- package/lib/enums/integrations-connection-names.js +10 -10
- package/lib/enums/integrations-connection-names.js.map +1 -1
- package/lib/enums/integrations.js +8 -8
- package/lib/enums/integrations.js.map +1 -1
- package/lib/enums/permissions.js +5 -5
- package/lib/enums/permissions.js.map +1 -1
- package/lib/enums/team-member-status.js +2 -2
- package/lib/enums/team-member-status.js.map +1 -1
- package/lib/errors/auth-error-messages.js +22 -22
- package/lib/errors/auth-error-messages.js.map +1 -1
- package/lib/errors/auth-error.js +5 -9
- package/lib/errors/auth-error.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/interfaces/configuration/configuration.js +30 -30
- package/lib/interfaces/configuration/configuration.js.map +1 -1
- package/lib/interfaces/generated/generated-models.js +919 -15741
- package/lib/interfaces/generated/generated-models.js.map +1 -1
- package/lib/interfaces/organization/organization-context.js +17 -12
- package/lib/interfaces/organization/organization-context.js.map +1 -1
- package/lib/modules/account-api/enums/index.js +64 -64
- package/lib/modules/account-api/enums/index.js.map +1 -1
- package/lib/modules/billing-api/enums/index.js +18 -18
- package/lib/modules/billing-api/enums/index.js.map +1 -1
- package/lib/modules/inbox/enums/index.js +23 -23
- package/lib/modules/inbox/enums/index.js.map +1 -1
- package/lib/services/abstract-configuration.js +116 -113
- package/lib/services/abstract-configuration.js.map +1 -1
- package/lib/services/abstract-organization-context-service.js +93 -97
- package/lib/services/abstract-organization-context-service.js.map +1 -1
- package/lib/utils/configuration-utils.js +8 -8
- package/lib/utils/configuration-utils.js.map +1 -1
- package/lib/utils/date-utils.js +2 -2
- package/lib/utils/date-utils.js.map +1 -1
- package/lib/utils/flatten-utils.js +39 -35
- package/lib/utils/flatten-utils.js.map +1 -1
- package/lib/utils/generate-uri.js +15 -25
- package/lib/utils/generate-uri.js.map +1 -1
- package/lib/utils/generated-settings-id.js +4 -4
- package/lib/utils/generated-settings-id.js.map +1 -1
- package/lib/utils/omit-deep.js +7 -7
- package/lib/utils/omit-deep.js.map +1 -1
- package/lib/utils/roles-utils.js +2 -6
- package/lib/utils/roles-utils.js.map +1 -1
- package/lib/utils/uri.js +12 -10
- package/lib/utils/uri.js.map +1 -1
- package/lib/utils/utils.js +14 -19
- package/lib/utils/utils.js.map +1 -1
- package/lib/utils/validations.js +2 -2
- package/lib/utils/validations.js.map +1 -1
- package/package.json +2 -2
package/lib/core/path.js
CHANGED
@@ -17,172 +17,176 @@
|
|
17
17
|
* └──────┴───────────────┴──────┴─────┘
|
18
18
|
*/
|
19
19
|
class Path {
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
}
|
20
|
+
static separator = '/';
|
21
|
+
static isDrive(segment) {
|
22
|
+
return segment.endsWith(':');
|
41
23
|
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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;
|
72
|
-
}
|
73
|
-
// 'foo/bar' -> `undefined`
|
74
|
-
if (!this.isAbsolute) {
|
75
|
-
return undefined;
|
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
|
+
}
|
37
|
+
else if (path.length >= 2 && path.charCodeAt(1) === 58 /* ':' */) {
|
38
|
+
const code = path.charCodeAt(0);
|
39
|
+
if (code >= 65 /* A */ && code <= 90 /* Z */) {
|
40
|
+
path = `${String.fromCharCode(code + 32)}:${path.substr(2)}`; // "/c:".length === 3
|
41
|
+
}
|
42
|
+
}
|
43
|
+
return path;
|
76
44
|
}
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
45
|
+
isAbsolute;
|
46
|
+
isRoot;
|
47
|
+
root;
|
48
|
+
base;
|
49
|
+
name;
|
50
|
+
ext;
|
51
|
+
_dir;
|
52
|
+
raw;
|
53
|
+
/**
|
54
|
+
* The raw should be normalized, meaning that only '/' is allowed as a path separator.
|
55
|
+
*/
|
56
|
+
constructor(raw) {
|
57
|
+
this.raw = Path.normalizeDrive(raw);
|
58
|
+
const firstIndex = raw.indexOf(Path.separator);
|
59
|
+
const lastIndex = raw.lastIndexOf(Path.separator);
|
60
|
+
this.isAbsolute = firstIndex === 0;
|
61
|
+
this.base = lastIndex === -1 ? raw : raw.substr(lastIndex + 1);
|
62
|
+
this.isRoot = this.isAbsolute && firstIndex === lastIndex && (!this.base || Path.isDrive(this.base));
|
63
|
+
this.root = this.computeRoot();
|
64
|
+
const extIndex = this.base.lastIndexOf('.');
|
65
|
+
this.name = extIndex === -1 ? this.base : this.base.substr(0, extIndex);
|
66
|
+
this.ext = extIndex === -1 ? '' : this.base.substr(extIndex);
|
81
67
|
}
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
68
|
+
computeRoot() {
|
69
|
+
// '/' -> '/'
|
70
|
+
// '/c:' -> '/c:'
|
71
|
+
if (this.isRoot) {
|
72
|
+
return this;
|
73
|
+
}
|
74
|
+
// 'foo/bar' -> `undefined`
|
75
|
+
if (!this.isAbsolute) {
|
76
|
+
return undefined;
|
77
|
+
}
|
78
|
+
const index = this.raw.indexOf(Path.separator, Path.separator.length);
|
79
|
+
if (index === -1) {
|
80
|
+
// '/foo/bar' -> '/'
|
81
|
+
return new Path(Path.separator);
|
82
|
+
}
|
83
|
+
// '/c:/foo/bar' -> '/c:'
|
84
|
+
// '/foo/bar' -> '/'
|
85
|
+
return new Path(this.raw.substr(0, index)).root;
|
92
86
|
}
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
get hasDir() {
|
102
|
-
return !this.isRoot && this.raw.lastIndexOf(Path.separator) !== -1;
|
103
|
-
}
|
104
|
-
computeDir() {
|
105
|
-
if (!this.hasDir) {
|
106
|
-
return this;
|
87
|
+
/**
|
88
|
+
* Returns the parent directory if it exists (`hasDir === true`) or `this` otherwise.
|
89
|
+
*/
|
90
|
+
get dir() {
|
91
|
+
if (this._dir === undefined) {
|
92
|
+
this._dir = this.computeDir();
|
93
|
+
}
|
94
|
+
return this._dir;
|
107
95
|
}
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
96
|
+
/**
|
97
|
+
* Returns `true` if this has a parent directory, `false` otherwise.
|
98
|
+
*
|
99
|
+
* _This implementation returns `true` if and only if this is not the root dir and
|
100
|
+
* there is a path separator in the raw path._
|
101
|
+
*/
|
102
|
+
get hasDir() {
|
103
|
+
return !this.isRoot && this.raw.lastIndexOf(Path.separator) !== -1;
|
114
104
|
}
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
105
|
+
computeDir() {
|
106
|
+
if (!this.hasDir) {
|
107
|
+
return this;
|
108
|
+
}
|
109
|
+
const lastIndex = this.raw.lastIndexOf(Path.separator);
|
110
|
+
if (this.isAbsolute) {
|
111
|
+
const firstIndex = this.raw.indexOf(Path.separator);
|
112
|
+
if (firstIndex === lastIndex) {
|
113
|
+
return new Path(this.raw.substr(0, firstIndex + 1));
|
114
|
+
}
|
115
|
+
}
|
116
|
+
return new Path(this.raw.substr(0, lastIndex));
|
121
117
|
}
|
122
|
-
|
123
|
-
|
118
|
+
join(...paths) {
|
119
|
+
const relativePath = paths.filter(s => !!s).join(Path.separator);
|
120
|
+
if (!relativePath) {
|
121
|
+
return this;
|
122
|
+
}
|
123
|
+
if (this.raw.endsWith(Path.separator)) {
|
124
|
+
return new Path(this.raw + relativePath);
|
125
|
+
}
|
126
|
+
return new Path(this.raw + Path.separator + relativePath);
|
124
127
|
}
|
125
|
-
|
126
|
-
|
127
|
-
toString() {
|
128
|
-
return this.raw;
|
129
|
-
}
|
130
|
-
relative(path) {
|
131
|
-
if (this.raw === path.raw) {
|
132
|
-
return new Path('');
|
128
|
+
toString() {
|
129
|
+
return this.raw;
|
133
130
|
}
|
134
|
-
|
135
|
-
|
131
|
+
relative(path) {
|
132
|
+
if (this.raw === path.raw) {
|
133
|
+
return new Path('');
|
134
|
+
}
|
135
|
+
if (!this.raw || !path.raw) {
|
136
|
+
return undefined;
|
137
|
+
}
|
138
|
+
const raw = this.base ? this.raw + Path.separator : this.raw;
|
139
|
+
if (!path.raw.startsWith(raw)) {
|
140
|
+
return undefined;
|
141
|
+
}
|
142
|
+
const relativePath = path.raw.substr(raw.length);
|
143
|
+
return new Path(relativePath);
|
136
144
|
}
|
137
|
-
|
138
|
-
|
139
|
-
return undefined;
|
145
|
+
isEqualOrParent(path) {
|
146
|
+
return !!this.relative(path);
|
140
147
|
}
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
if (relativeStr === '') {
|
152
|
-
return 0;
|
153
|
-
}
|
154
|
-
return relativeStr.split(Path.separator).length;
|
148
|
+
relativity(path) {
|
149
|
+
const relative = this.relative(path);
|
150
|
+
if (relative) {
|
151
|
+
const relativeStr = relative.toString();
|
152
|
+
if (relativeStr === '') {
|
153
|
+
return 0;
|
154
|
+
}
|
155
|
+
return relativeStr.split(Path.separator).length;
|
156
|
+
}
|
157
|
+
return -1;
|
155
158
|
}
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
159
|
+
/*
|
160
|
+
* return a normalized Path, resolving '..' and '.' segments
|
161
|
+
*/
|
162
|
+
normalize() {
|
163
|
+
const trailingSlash = this.raw.endsWith('/');
|
164
|
+
const pathArray = this.toString().split('/');
|
165
|
+
const resultArray = [];
|
166
|
+
pathArray.forEach((value, index) => {
|
167
|
+
if (!value || value === '.') {
|
168
|
+
return;
|
169
|
+
}
|
170
|
+
if (value === '..') {
|
171
|
+
if (resultArray.length && resultArray[resultArray.length - 1] !== '..') {
|
172
|
+
resultArray.pop();
|
173
|
+
}
|
174
|
+
else if (!this.isAbsolute) {
|
175
|
+
resultArray.push('..');
|
176
|
+
}
|
177
|
+
}
|
178
|
+
else {
|
179
|
+
resultArray.push(value);
|
180
|
+
}
|
181
|
+
});
|
182
|
+
if (resultArray.length === 0) {
|
183
|
+
if (this.isRoot) {
|
184
|
+
return new Path('/');
|
185
|
+
}
|
186
|
+
else {
|
187
|
+
return new Path('.');
|
188
|
+
}
|
174
189
|
}
|
175
|
-
|
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
|
-
}
|
190
|
+
return new Path((this.isAbsolute ? '/' : '') + resultArray.join('/') + (trailingSlash ? '/' : ''));
|
185
191
|
}
|
186
|
-
return new Path((this.isAbsolute ? '/' : '') + resultArray.join('/') + (trailingSlash ? '/' : ''));
|
187
|
-
}
|
188
192
|
}export{Path};//# sourceMappingURL=path.js.map
|
package/lib/core/path.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"path.js","sources":["../../src/core/path.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAEA;;;;;;;;;;;;;;;;AAgBG;MACU,IAAI,CAAA;AACb,
|
1
|
+
{"version":3,"file":"path.js","sources":["../../src/core/path.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AAEA;;;;;;;;;;;;;;;;AAgBG;MACU,IAAI,CAAA;AACb,IAAA,OAAO,SAAS,GAAQ,GAAG,CAAC;IAE5B,OAAO,OAAO,CAAC,OAAe,EAAA;AAC1B,QAAA,OAAO,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;KAChC;AAED;;;;AAIG;IACH,OAAO,cAAc,CAAC,IAAY,EAAA;;QAE9B,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,C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AK,CAAC,CAAC;AAC3B,aAAA;AACL,SAAC,CAAC,CAAC;AACH,QAAA,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC1B,IAAI,IAAI,CAAC,MAAM,EAAE;AACb,gBAAA,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;AACxB,aAAA;AAAM,iBAAA;AACH,gBAAA,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;AACxB,aAAA;AACJ,SAAA;AACD,QAAA,OAAO,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,GAAG,GAAG,EAAE,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,aAAa,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;KACtG;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
var ConnectionStatus;
|
2
2
|
(function (ConnectionStatus) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
ConnectionStatus["LINKED"] = "LINKED";
|
4
|
+
ConnectionStatus["NOT_CONNECTED"] = "NOT_CONNECTED";
|
5
|
+
ConnectionStatus["EXPIRED"] = "EXPIRED";
|
6
|
+
ConnectionStatus["BROKEN"] = "BROKEN";
|
7
7
|
})(ConnectionStatus || (ConnectionStatus = {}));export{ConnectionStatus};//# sourceMappingURL=connection-status.js.map
|
@@ -1 +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,
|
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,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,gBAAA,CAAA,eAAA,CAAA,GAAA,eAA+B,CAAA;AAC/B,IAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACnB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,GAK3B,EAAA,CAAA,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
var IntegrationConfigStatus;
|
2
2
|
(function (IntegrationConfigStatus) {
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
IntegrationConfigStatus["InProgress"] = "In Progress";
|
4
|
+
IntegrationConfigStatus["Pending"] = "Pending";
|
5
|
+
IntegrationConfigStatus["Completed"] = "Completed";
|
6
6
|
})(IntegrationConfigStatus || (IntegrationConfigStatus = {}));export{IntegrationConfigStatus};//# sourceMappingURL=integration-configuration-status.js.map
|
@@ -1 +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,
|
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,IAAA,uBAAA,CAAA,YAAA,CAAA,GAAA,aAA0B,CAAA;AAC1B,IAAA,uBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACnB,IAAA,uBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACzB,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,GAIlC,EAAA,CAAA,CAAA"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
var IntegrationsConfigSteps;
|
2
2
|
(function (IntegrationsConfigSteps) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
9
|
})(IntegrationsConfigSteps || (IntegrationsConfigSteps = {}));export{IntegrationsConfigSteps};//# sourceMappingURL=integrations-configuration-steps.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"integrations-configuration-steps.js","sources":["../../src/enums/integrations-configuration-steps.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,wBAOX;AAPD,CAAA,UAAY,uBAAuB,EAAA;AACjC,
|
1
|
+
{"version":3,"file":"integrations-configuration-steps.js","sources":["../../src/enums/integrations-configuration-steps.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,wBAOX;AAPD,CAAA,UAAY,uBAAuB,EAAA;AACjC,IAAA,uBAAA,CAAA,uBAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAU,CAAA;AACV,IAAA,uBAAA,CAAA,uBAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAU,CAAA;AACV,IAAA,uBAAA,CAAA,uBAAA,CAAA,mBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,mBAAiB,CAAA;AACjB,IAAA,uBAAA,CAAA,uBAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAQ,CAAA;AACR,IAAA,uBAAA,CAAA,uBAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAK,CAAA;AACL,IAAA,uBAAA,CAAA,uBAAA,CAAA,kBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,kBAAgB,CAAA;AAClB,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,GAOlC,EAAA,CAAA,CAAA"}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
var IntegrationConnections;
|
2
2
|
(function (IntegrationConnections) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
13
|
})(IntegrationConnections || (IntegrationConnections = {}));export{IntegrationConnections};//# sourceMappingURL=integrations-connection-names.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"integrations-connection-names.js","sources":["../../src/enums/integrations-connection-names.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,uBAYX;AAZD,CAAA,UAAY,sBAAsB,EAAA;AAChC,
|
1
|
+
{"version":3,"file":"integrations-connection-names.js","sources":["../../src/enums/integrations-connection-names.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,uBAYX;AAZD,CAAA,UAAY,sBAAsB,EAAA;AAChC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,eAAwB,CAAA;AACxB,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,sBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,sBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,sBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;;AAGrB,IAAA,sBAAA,CAAA,eAAA,CAAA,GAAA,gBAAgC,CAAA;AAChC,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACnB,CAAC,EAZW,sBAAsB,KAAtB,sBAAsB,GAYjC,EAAA,CAAA,CAAA"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
var Integrations;
|
2
2
|
(function (Integrations) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
11
|
})(Integrations || (Integrations = {}));export{Integrations};//# sourceMappingURL=integrations.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"integrations.js","sources":["../../src/enums/integrations.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,aASX;AATD,CAAA,UAAY,YAAY,EAAA;AACtB,
|
1
|
+
{"version":3,"file":"integrations.js","sources":["../../src/enums/integrations.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,aASX;AATD,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,YAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,YAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,YAAA,CAAA,QAAA,CAAA,GAAA,gBAAyB,CAAA;AAC3B,CAAC,EATW,YAAY,KAAZ,YAAY,GASvB,EAAA,CAAA,CAAA"}
|
package/lib/enums/permissions.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
var IPermissionTypes;
|
2
2
|
(function (IPermissionTypes) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
IPermissionTypes["view"] = "view";
|
4
|
+
IPermissionTypes["create"] = "create";
|
5
|
+
IPermissionTypes["edit"] = "edit";
|
6
|
+
IPermissionTypes["delete"] = "delete";
|
7
|
+
IPermissionTypes["manage"] = "manage";
|
8
8
|
})(IPermissionTypes || (IPermissionTypes = {}));export{IPermissionTypes};//# sourceMappingURL=permissions.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"permissions.js","sources":["../../src/enums/permissions.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,iBAMX;AAND,CAAA,UAAY,gBAAgB,EAAA;AACxB,
|
1
|
+
{"version":3,"file":"permissions.js","sources":["../../src/enums/permissions.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,iBAMX;AAND,CAAA,UAAY,gBAAgB,EAAA;AACxB,IAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,GAM3B,EAAA,CAAA,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
var TeamMemberStatus;
|
2
2
|
(function (TeamMemberStatus) {
|
3
|
-
|
4
|
-
|
3
|
+
TeamMemberStatus["Active"] = "Active";
|
4
|
+
TeamMemberStatus["Deactivated"] = "Deactivated";
|
5
5
|
})(TeamMemberStatus || (TeamMemberStatus = {}));export{TeamMemberStatus};//# sourceMappingURL=team-member-status.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"team-member-status.js","sources":["../../src/enums/team-member-status.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,iBAGX;AAHD,CAAA,UAAY,gBAAgB,EAAA;AAC1B,
|
1
|
+
{"version":3,"file":"team-member-status.js","sources":["../../src/enums/team-member-status.ts"],"sourcesContent":[null],"names":[],"mappings":"IAAY,iBAGX;AAHD,CAAA,UAAY,gBAAgB,EAAA;AAC1B,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,gBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B,CAAA;AAC7B,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,GAG3B,EAAA,CAAA,CAAA"}
|
@@ -1,27 +1,27 @@
|
|
1
1
|
var AuthErrors;
|
2
2
|
(function (AuthErrors) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
3
|
+
AuthErrors["TokenExpired"] = "TokenExpired";
|
4
|
+
// Graphql Request wraps the error in somecases
|
5
|
+
AuthErrors["ContextFailedDueToTokenExpired"] = "Context creation failed: TokenExpired";
|
6
|
+
AuthErrors["InvalidToken"] = "InvalidToken";
|
7
|
+
AuthErrors["AccessDenied"] = "AccessDeined";
|
8
|
+
AuthErrors["CaptchaError"] = "CaptchaError";
|
9
|
+
AuthErrors["CSRFValidationFailed"] = "CSRFValidationFailed";
|
10
|
+
AuthErrors["TokenMissing"] = "TokenMissing";
|
11
|
+
AuthErrors["ScopeExpected"] = "ScopeExpected";
|
12
|
+
AuthErrors["UserExpected"] = "UserExpected";
|
13
|
+
AuthErrors["UserLoginNeeded"] = "UserLoginNeeded";
|
14
|
+
AuthErrors["NotAuthorized"] = "Not Authorised!";
|
15
15
|
})(AuthErrors || (AuthErrors = {}));
|
16
16
|
const AuthErrorsMessage = {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
17
|
+
TokenExpired: 'Your token is expired, please re login',
|
18
|
+
InvalidToken: 'Security error - invalid token',
|
19
|
+
AccessDenied: "You don't have permission to access it.",
|
20
|
+
CaptchaError: 'Please re-enter captcha',
|
21
|
+
CSRFValidationFailed: 'CSRF token validation failed',
|
22
|
+
TokenMissing: 'You must supply a JWT for authorization!',
|
23
|
+
ScopeExpected: 'No scopes supplied!',
|
24
|
+
UserExpected: 'You must supply a User!',
|
25
|
+
UserLoginNeeded: 'Try logout and login',
|
26
|
+
NotAuthorized: 'You are not authorised to perform this request. Contact administrator'
|
27
27
|
};export{AuthErrors,AuthErrorsMessage};//# sourceMappingURL=auth-error-messages.js.map
|