@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 CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./core/module-pack.js";
2
- export * from "./modules/JiraModule.js";
3
- export * from "./modules/utils.js";
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 "./core/module-pack.js";
20
- export * from "./modules/JiraModule.js";
21
- export * from "./modules/utils.js";
19
+ export * from './core/module-pack.js';
20
+ export * from './modules/JiraModule.js';
21
+ export * from './modules/utils.js';
@@ -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 { HeaderKey_ContentType, HttpMethod } from '@nu-art/thunderstorm-shared';
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;
@@ -1,4 +1,4 @@
1
- import { JiraQuery } from "./JiraModule.js";
1
+ import { JiraQuery } from './JiraModule.js';
2
2
  export type JiraIssueText = string | {
3
3
  href: string;
4
4
  text: string;
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 "@nu-art/ts-common";
19
+ import { _keys } from '@nu-art/ts-common';
20
20
  function createText(...texts) {
21
21
  return {
22
- type: "doc",
22
+ type: 'doc',
23
23
  version: 1,
24
24
  content: [
25
25
  {
26
- type: "paragraph",
26
+ type: 'paragraph',
27
27
  content: texts.map(text => {
28
- if (typeof text === "string")
28
+ if (typeof text === 'string')
29
29
  return {
30
- type: "text",
30
+ type: 'text',
31
31
  text
32
32
  };
33
33
  return {
34
- type: "text",
34
+ type: 'text',
35
35
  text: text.text,
36
36
  marks: [
37
37
  {
38
- type: "link",
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(" and ");
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.401.8",
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.401.8",
24
- "@nu-art/firebase-backend": "0.401.8",
25
- "@nu-art/firebase-shared": "0.401.8",
26
- "@nu-art/thunderstorm-backend": "0.401.8",
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",