@nu-art/jira-backend 0.401.8 → 0.500.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -3
- package/index.js +3 -3
- package/modules/JiraModule.js +2 -1
- package/modules/utils.d.ts +1 -1
- package/modules/utils.js +9 -9
- package/package.json +7 -8
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './core/module-pack.js';
|
|
2
|
+
export * from './modules/JiraModule.js';
|
|
3
|
+
export * from './modules/utils.js';
|
package/index.js
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
19
|
+
export * from './core/module-pack.js';
|
|
20
|
+
export * from './modules/JiraModule.js';
|
|
21
|
+
export * from './modules/utils.js';
|
package/modules/JiraModule.js
CHANGED
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { ApiException, BadImplementationException, composeUrl, ImplementationMissingException, MimeType_json, Module } from '@nu-art/ts-common';
|
|
20
20
|
import { JiraUtils } from './utils.js';
|
|
21
|
-
import {
|
|
21
|
+
import { HttpMethod } from '@nu-art/api-types';
|
|
22
|
+
const HeaderKey_ContentType = 'content-type';
|
|
22
23
|
const createFormData = (filename, buffer) => ({ file: { value: buffer, options: { filename } } });
|
|
23
24
|
export class ModuleBE_Jira_Class extends Module {
|
|
24
25
|
headersJson;
|
package/modules/utils.d.ts
CHANGED
package/modules/utils.js
CHANGED
|
@@ -16,26 +16,26 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
import { _keys } from
|
|
19
|
+
import { _keys } from '@nu-art/ts-common';
|
|
20
20
|
function createText(...texts) {
|
|
21
21
|
return {
|
|
22
|
-
type:
|
|
22
|
+
type: 'doc',
|
|
23
23
|
version: 1,
|
|
24
24
|
content: [
|
|
25
25
|
{
|
|
26
|
-
type:
|
|
26
|
+
type: 'paragraph',
|
|
27
27
|
content: texts.map(text => {
|
|
28
|
-
if (typeof text ===
|
|
28
|
+
if (typeof text === 'string')
|
|
29
29
|
return {
|
|
30
|
-
type:
|
|
30
|
+
type: 'text',
|
|
31
31
|
text
|
|
32
32
|
};
|
|
33
33
|
return {
|
|
34
|
-
type:
|
|
34
|
+
type: 'text',
|
|
35
35
|
text: text.text,
|
|
36
36
|
marks: [
|
|
37
37
|
{
|
|
38
|
-
type:
|
|
38
|
+
type: 'link',
|
|
39
39
|
attrs: {
|
|
40
40
|
href: text.href
|
|
41
41
|
}
|
|
@@ -52,7 +52,7 @@ function buildJQL(query) {
|
|
|
52
52
|
let queryValue;
|
|
53
53
|
let operator = '=';
|
|
54
54
|
if (Array.isArray(query[key])) {
|
|
55
|
-
queryValue = query[key].map(value => `"${value}"`).join(
|
|
55
|
+
queryValue = query[key].map(value => `"${value}"`).join(',');
|
|
56
56
|
queryValue = `(${queryValue})`;
|
|
57
57
|
}
|
|
58
58
|
else if (typeof query[key] === 'object') {
|
|
@@ -64,7 +64,7 @@ function buildJQL(query) {
|
|
|
64
64
|
queryValue = `"${query[key]}"`;
|
|
65
65
|
return `${key}${operator}${queryValue}`;
|
|
66
66
|
});
|
|
67
|
-
return params.join(
|
|
67
|
+
return params.join(' and ');
|
|
68
68
|
}
|
|
69
69
|
export const JiraUtils = {
|
|
70
70
|
createText,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/jira-backend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.500.0",
|
|
4
4
|
"description": "Jira api Module Backend",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TacB0sS",
|
|
@@ -20,17 +20,16 @@
|
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"author": "TacB0sS",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@nu-art/jira-shared": "0.
|
|
24
|
-
"@nu-art/firebase-backend": "0.
|
|
25
|
-
"@nu-art/firebase-shared": "0.
|
|
26
|
-
"@nu-art/
|
|
27
|
-
"@nu-art/thunderstorm-shared": "0.401.8",
|
|
28
|
-
"@nu-art/ts-common": "0.401.8",
|
|
23
|
+
"@nu-art/jira-shared": "0.500.0",
|
|
24
|
+
"@nu-art/firebase-backend": "0.500.0",
|
|
25
|
+
"@nu-art/firebase-shared": "0.500.0",
|
|
26
|
+
"@nu-art/ts-common": "0.500.0",
|
|
29
27
|
"body-parser": "^1.18.3",
|
|
30
28
|
"compression": "^1.7.4",
|
|
31
29
|
"express": "^4.18.2",
|
|
32
30
|
"firebase-admin": "13.4.0",
|
|
33
|
-
"moment": "^2.29.4"
|
|
31
|
+
"moment": "^2.29.4",
|
|
32
|
+
"@nu-art/api-types": "{{THUNDERSTORM_VERSION}}"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
35
|
"@types/debug": "^4.1.2",
|