@things-factory/dataset 6.0.28 → 6.0.30
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/client/{components/data-collect-activity-view.ts → activities/activity-data-collect-view.ts} +1 -1
- package/client/{components/ooc-resolve-activity-view.ts → activities/activity-ooc-resolve-view.ts} +1 -1
- package/client/{components/ooc-review-activity-view.ts → activities/activity-ooc-review-view.ts} +1 -1
- package/client/bootstrap.ts +3 -3
- package/dist-client/activities/activity-data-collect-view.d.ts +19 -0
- package/dist-client/activities/activity-data-collect-view.js +101 -0
- package/dist-client/activities/activity-data-collect-view.js.map +1 -0
- package/dist-client/activities/activity-ooc-resolve-view.js +175 -0
- package/dist-client/activities/activity-ooc-resolve-view.js.map +1 -0
- package/dist-client/activities/activity-ooc-review-view.d.ts +1 -0
- package/dist-client/{components/data-ooc-activity-view.js → activities/activity-ooc-review-view.js} +24 -23
- package/dist-client/activities/activity-ooc-review-view.js.map +1 -0
- package/dist-client/bootstrap.d.ts +3 -3
- package/dist-client/bootstrap.js +3 -3
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/activities/activity-data-collect.js +82 -0
- package/dist-server/activities/activity-data-collect.js.map +1 -0
- package/dist-server/activities/activity-ooc-resolve.js +100 -0
- package/dist-server/activities/activity-ooc-resolve.js.map +1 -0
- package/dist-server/activities/activity-ooc-review.js +107 -0
- package/dist-server/activities/activity-ooc-review.js.map +1 -0
- package/dist-server/activities/index.js +10 -0
- package/dist-server/activities/index.js.map +1 -0
- package/dist-server/controllers/activity-template/activity-data-collect.js.map +1 -1
- package/dist-server/controllers/index.js +0 -7
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/index.js +1 -1
- package/dist-server/index.js.map +1 -1
- package/dist-server/service/data-set/data-set-mutation.js +1 -3
- package/dist-server/service/data-set/data-set-mutation.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/{controllers/activity-template → activities}/activity-data-collect.ts +3 -3
- package/server/{controllers/activity-template → activities}/activity-ooc-resolve.ts +2 -2
- package/server/{controllers/activity-template → activities}/activity-ooc-review.ts +2 -2
- package/server/activities/index.ts +10 -0
- package/server/controllers/index.ts +0 -11
- package/server/index.ts +1 -1
- package/server/service/data-set/data-set-mutation.ts +1 -3
- package/dist-client/components/data-ooc-activity-view.js.map +0 -1
- package/dist-server/controllers/activity-template/activity-ooc.js +0 -59
- package/dist-server/controllers/activity-template/activity-ooc.js.map +0 -1
- package/dist-server/middlewares/index.js +0 -8
- package/dist-server/middlewares/index.js.map +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- /package/dist-client/{components/data-ooc-activity-view.d.ts → activities/activity-ooc-resolve-view.d.ts} +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.30",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "dist-client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -40,12 +40,12 @@
|
|
40
40
|
"@things-factory/board-service": "^6.0.28",
|
41
41
|
"@things-factory/env": "^6.0.7",
|
42
42
|
"@things-factory/organization": "^6.0.28",
|
43
|
-
"@things-factory/scheduler-client": "^6.0.
|
43
|
+
"@things-factory/scheduler-client": "^6.0.30",
|
44
44
|
"@things-factory/shell": "^6.0.28",
|
45
45
|
"@things-factory/work-shift": "^6.0.28",
|
46
46
|
"@things-factory/worklist": "^6.0.28",
|
47
47
|
"cron-parser": "^4.3.0",
|
48
48
|
"moment-timezone": "^0.5.40"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "5c7c95e8edd7b72bcb6240d07b4ffe0b1fccce88"
|
51
51
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Activity, ActivityInstance, ActivityInstanceStatus } from '@things-factory/worklist'
|
2
2
|
import { NewDataSample } from 'service/data-sample/data-sample-type'
|
3
|
-
import { createDataSample } from '
|
3
|
+
import { createDataSample } from '../controllers/create-data-sample'
|
4
4
|
|
5
5
|
async function callback(activityInstance: ActivityInstance, context: ResolverContext) {
|
6
6
|
const { domain, tx } = context.state
|
@@ -76,9 +76,9 @@ export const ActivityDataCollect = {
|
|
76
76
|
}
|
77
77
|
],
|
78
78
|
uiType: 'custom-element',
|
79
|
-
uiSource: 'data-collect-
|
79
|
+
uiSource: 'activity-data-collect-view',
|
80
80
|
reportType: 'page',
|
81
|
-
reportSource: 'data-collect-
|
81
|
+
reportSource: 'activity-data-collect-view',
|
82
82
|
thumbnail: '/assets/images/data-collect.png',
|
83
83
|
callback /* Called when there is a change in the lifecycle of a task (activity-instance). */
|
84
84
|
}
|
@@ -4,7 +4,7 @@ import {
|
|
4
4
|
ActivityThread,
|
5
5
|
ActivityThreadStatus
|
6
6
|
} from '@things-factory/worklist'
|
7
|
-
import { DataOoc, DataOocStatus } from '
|
7
|
+
import { DataOoc, DataOocStatus } from '../service/data-ooc/data-ooc'
|
8
8
|
|
9
9
|
async function callback(activityInstance: ActivityInstance, context: ResolverContext) {
|
10
10
|
const { tx, user, domain } = context.state
|
@@ -106,7 +106,7 @@ export const ActivityOocResolve = {
|
|
106
106
|
}
|
107
107
|
],
|
108
108
|
uiType: 'custom-element',
|
109
|
-
uiSource: 'ooc-resolve-
|
109
|
+
uiSource: 'activity-ooc-resolve-view',
|
110
110
|
reportType: 'page',
|
111
111
|
reportSource: 'data-ooc-report-page',
|
112
112
|
thumbnail: '/assets/images/ooc.png',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Activity, ActivityInstance, ActivityInstanceStatus } from '@things-factory/worklist'
|
2
2
|
import { post } from '@things-factory/worklist/dist-server/controllers/activity-instance/post'
|
3
|
-
import { DataOoc, DataOocStatus } from '
|
3
|
+
import { DataOoc, DataOocStatus } from '../service/data-ooc/data-ooc'
|
4
4
|
|
5
5
|
async function callback(activityInstance: ActivityInstance, context: ResolverContext) {
|
6
6
|
const { domain, user, tx } = context.state
|
@@ -110,7 +110,7 @@ export const ActivityOocReview = {
|
|
110
110
|
}
|
111
111
|
],
|
112
112
|
uiType: 'custom-element',
|
113
|
-
uiSource: 'ooc-review-
|
113
|
+
uiSource: 'activity-ooc-review-view',
|
114
114
|
reportType: 'page',
|
115
115
|
reportSource: 'data-ooc-report-page',
|
116
116
|
thumbnail: '/assets/images/ooc.png',
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ActivityInstallations } from '@things-factory/worklist'
|
2
|
+
|
3
|
+
import { ActivityOocReview } from './activity-ooc-review'
|
4
|
+
import { ActivityOocResolve } from './activity-ooc-resolve'
|
5
|
+
import { ActivityDataCollect } from './activity-data-collect'
|
6
|
+
|
7
|
+
/* activity templates installation */
|
8
|
+
;[ActivityOocReview, ActivityOocResolve, ActivityDataCollect].forEach(template => {
|
9
|
+
ActivityInstallations.installActivityTemplate(template)
|
10
|
+
})
|
@@ -1,13 +1,2 @@
|
|
1
|
-
import { ActivityInstallations } from '@things-factory/worklist'
|
2
|
-
|
3
|
-
import { ActivityOocReview } from './activity-template/activity-ooc-review'
|
4
|
-
import { ActivityOocResolve } from './activity-template/activity-ooc-resolve'
|
5
|
-
import { ActivityDataCollect } from './activity-template/activity-data-collect'
|
6
|
-
|
7
|
-
/* activity templates installation */
|
8
|
-
;[ActivityOocReview, ActivityOocResolve, ActivityDataCollect].forEach(template => {
|
9
|
-
ActivityInstallations.installActivityTemplate(template)
|
10
|
-
})
|
11
|
-
|
12
1
|
export * from './create-data-sample'
|
13
2
|
export * from './data-use-case'
|
package/server/index.ts
CHANGED
@@ -234,9 +234,7 @@ export class DataSetMutation {
|
|
234
234
|
}
|
235
235
|
|
236
236
|
try {
|
237
|
-
|
238
|
-
resp_id: dataSet.schedulerHandle
|
239
|
-
})
|
237
|
+
await unregisterSchedule(dataSet.schedulerHandle)
|
240
238
|
|
241
239
|
return await repository.save({
|
242
240
|
...dataSet,
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"data-ooc-activity-view.js","sourceRoot":"","sources":["../../client/components/data-ooc-activity-view.ts"],"names":[],"mappings":";AAAA,OAAO,yCAAyC,CAAA;AAEhD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAGjD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC;IA8D7D,MAAM;;QACJ,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,MAAM,0CAAE,OAAO,CAAA;QAEpC,OAAO,IAAI,CAAA;;2CAE4B,IAAI,CAAC,OAAO;;;;;;;mBAOpC,OAAO,IAAI,EAAE;oBACZ,IAAI,CAAC,eAAe;;;KAGnC,CAAA;IACH,CAAC;IAED,eAAe,CAAC,CAAQ;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;QAC/B,IAAI,CAAC,MAAM,CAAC,OAAO,GAAI,CAAC,CAAC,MAA8B,CAAC,KAAK,CAAA;QAE7D,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,QAAQ,EAAE;YACxB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CACH,CAAA;IACH,CAAC;IAED,OAAO,CAAC,OAAO;QACb,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACxB,IAAI,CAAC,YAAY,EAAE,CAAA;SACpB;IACH,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAA;QAE/B,IAAI,EAAE,EAAE;YACN,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;gBAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA6BT;gBACD,SAAS,EAAE;oBACT,EAAE;iBACH;aACF,CAAC,CAAA;YAEF,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;SACrC;IACH,CAAC;;AA3IM,0BAAM,GAAG;IACd,eAAe;IACf,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiDF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDAAY;AACvC;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAAa;AAExC;IAAC,KAAK,EAAE;;oDAAc;AAEtB;IAAC,KAAK,CAAC,UAAU,CAAC;8BAAmB,mBAAmB;4DAAA;AA5DpD,mBAAmB;IADxB,aAAa,CAAC,wBAAwB,CAAC;GAClC,mBAAmB,CA6IxB","sourcesContent":["import '@operato/dataset/ox-data-sample-view.js'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { ScrollbarStyles } from '@operato/styles'\n\n@customElement('data-ooc-activity-view')\nclass DataOocActivityView extends localize(i18next)(LitElement) {\n static styles = [\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n div[content] {\n flex: 1;\n flex-direction: column;\n\n display: flex;\n overflow: auto;\n }\n\n ox-data-ooc-view {\n flex: 1;\n padding: var(--padding-wide);\n overflow: auto;\n }\n\n label[comment] {\n display: flex;\n flex-direction: column;\n\n padding: var(--padding-wide);\n }\n\n label[comment] div {\n display: flex;\n }\n\n mwc-icon {\n color: var(--status-danger-color);\n }\n\n textarea {\n border: var(--input-field-border);\n border-radius: var(--input-border-radius);\n padding: var(--input-field-padding);\n font: var(--input-field-font);\n }\n\n .button-container {\n display: flex;\n margin-left: auto;\n padding: var(--padding-default);\n }\n `\n ]\n\n @property({ type: Object }) input?: any\n @property({ type: Object }) output?: any\n\n @state() dataOoc?: any\n\n @query('textarea') commentTextArea!: HTMLTextAreaElement\n\n render() {\n const comment = this.output?.comment\n\n return html`\n <div content>\n <ox-data-sample-view .dataSample=${this.dataOoc}></ox-data-sample-view>\n </div>\n\n <label comment>\n <div><mwc-icon>build_circle</mwc-icon> <span>correction activity</span></div>\n <textarea\n placeholder=\"조치 내용을 입력해주세요.\"\n .value=${comment || ''}\n @change=${this.onChangeComment}\n ></textarea>\n </label>\n `\n }\n\n onChangeComment(e: Event) {\n this.output = this.output || {}\n this.output.comment = (e.target as HTMLTextAreaElement).value\n\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: this.output\n })\n )\n }\n\n updated(changes) {\n if (changes.has('input')) {\n this.fetchDataOoc()\n }\n }\n\n async fetchDataOoc() {\n const id = this.input.dataOocId\n\n if (id) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n dataOoc(id: $id) {\n id\n name\n description\n ooc\n oos\n state\n type\n useCase\n data\n judgment\n dataItems {\n name\n description\n active\n tag\n type\n unit\n options\n quota\n spec\n }\n workDate\n workShift\n collectedAt\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataOoc = response.data.dataOoc\n }\n }\n}\n"]}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ActivityOoc = void 0;
|
4
|
-
exports.ActivityOoc = {
|
5
|
-
name: 'OOC Review',
|
6
|
-
description: 'Task to take remedial action based on Out Of Control data',
|
7
|
-
release: '1.0.0',
|
8
|
-
provider: 'hatiolab.com',
|
9
|
-
category: 'quality',
|
10
|
-
activityType: 'user',
|
11
|
-
startable: true,
|
12
|
-
model: [
|
13
|
-
{
|
14
|
-
name: 'dataOocId',
|
15
|
-
description: 'OOC id',
|
16
|
-
tag: 'dataOocId',
|
17
|
-
hidden: true,
|
18
|
-
mandatory: true,
|
19
|
-
inout: 'in',
|
20
|
-
type: 'string',
|
21
|
-
options: {},
|
22
|
-
unit: null,
|
23
|
-
quantifier: [1],
|
24
|
-
spec: {}
|
25
|
-
},
|
26
|
-
{
|
27
|
-
name: 'Instruction',
|
28
|
-
description: 'Instructions for preventing OOC',
|
29
|
-
tag: 'instruction',
|
30
|
-
hidden: false,
|
31
|
-
mandatory: true,
|
32
|
-
inout: 'in',
|
33
|
-
type: 'textarea',
|
34
|
-
options: {},
|
35
|
-
unit: null,
|
36
|
-
quantifier: [1],
|
37
|
-
spec: {}
|
38
|
-
},
|
39
|
-
{
|
40
|
-
name: 'action',
|
41
|
-
description: 'Action Description',
|
42
|
-
tag: 'action',
|
43
|
-
hidden: false,
|
44
|
-
mandatory: true,
|
45
|
-
inout: 'out',
|
46
|
-
type: 'textarea',
|
47
|
-
options: {},
|
48
|
-
unit: null,
|
49
|
-
quantifier: [1],
|
50
|
-
spec: {}
|
51
|
-
}
|
52
|
-
],
|
53
|
-
uiType: 'custom-element',
|
54
|
-
uiSource: 'data-ooc-activity-view',
|
55
|
-
reportType: 'page',
|
56
|
-
reportSource: 'data-ooc-report-page',
|
57
|
-
thumbnail: '/assets/images/ooc.png'
|
58
|
-
};
|
59
|
-
//# sourceMappingURL=activity-ooc.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"activity-ooc.js","sourceRoot":"","sources":["../../../server/controllers/activity-template/activity-ooc.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,2DAA2D;IACxE,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,SAAS;IACnB,YAAY,EAAE,MAAM;IACpB,SAAS,EAAE,IAAI;IACf,KAAK,EAAE;QACL;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,QAAQ;YACrB,GAAG,EAAE,WAAW;YAChB,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,CAAC,CAAC,CAAC;YACf,IAAI,EAAE,EAAE;SACT;QACD;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,iCAAiC;YAC9C,GAAG,EAAE,aAAa;YAClB,MAAM,EAAE,KAAK;YACb,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,CAAC,CAAC,CAAC;YACf,IAAI,EAAE,EAAE;SACT;QACD;YACE,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oBAAoB;YACjC,GAAG,EAAE,QAAQ;YACb,MAAM,EAAE,KAAK;YACb,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,CAAC,CAAC,CAAC;YACf,IAAI,EAAE,EAAE;SACT;KACF;IACD,MAAM,EAAE,gBAAgB;IACxB,QAAQ,EAAE,wBAAwB;IAClC,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE,sBAAsB;IACpC,SAAS,EAAE,wBAAwB;CACpC,CAAA","sourcesContent":["export const ActivityOoc = {\n name: 'OOC Review',\n description: 'Task to take remedial action based on Out Of Control data',\n release: '1.0.0',\n provider: 'hatiolab.com',\n category: 'quality',\n activityType: 'user',\n startable: true,\n model: [\n {\n name: 'dataOocId',\n description: 'OOC id',\n tag: 'dataOocId',\n hidden: true,\n mandatory: true,\n inout: 'in',\n type: 'string',\n options: {},\n unit: null,\n quantifier: [1],\n spec: {}\n },\n {\n name: 'Instruction',\n description: 'Instructions for preventing OOC',\n tag: 'instruction',\n hidden: false,\n mandatory: true,\n inout: 'in',\n type: 'textarea',\n options: {},\n unit: null,\n quantifier: [1],\n spec: {}\n },\n {\n name: 'action',\n description: 'Action Description',\n tag: 'action',\n hidden: false,\n mandatory: true,\n inout: 'out',\n type: 'textarea',\n options: {},\n unit: null,\n quantifier: [1],\n spec: {}\n }\n ],\n uiType: 'custom-element',\n uiSource: 'data-ooc-activity-view',\n reportType: 'page',\n reportSource: 'data-ooc-report-page',\n thumbnail: '/assets/images/ooc.png'\n}\n"]}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.initMiddlewares = void 0;
|
4
|
-
function initMiddlewares(app) {
|
5
|
-
/* can add middlewares into app */
|
6
|
-
}
|
7
|
-
exports.initMiddlewares = initMiddlewares;
|
8
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAAC,GAAG;IACjC,kCAAkC;AACpC,CAAC;AAFD,0CAEC","sourcesContent":["export function initMiddlewares(app) {\n /* can add middlewares into app */\n}\n"]}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.migrations = void 0;
|
4
|
-
const glob = require('glob');
|
5
|
-
const path = require('path');
|
6
|
-
exports.migrations = [];
|
7
|
-
glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function (file) {
|
8
|
-
if (file.indexOf('index.js') !== -1)
|
9
|
-
return;
|
10
|
-
exports.migrations = exports.migrations.concat(Object.values(require(path.resolve(file))) || []);
|
11
|
-
});
|
12
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/migrations/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAA;AAE1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAS,IAAI;IACzE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAAE,OAAM;IAC3C,kBAAU,GAAG,kBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC,CAAC,CAAA","sourcesContent":["const glob = require('glob')\nconst path = require('path')\n\nexport var migrations = []\n\nglob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function(file) {\n if (file.indexOf('index.js') !== -1) return\n migrations = migrations.concat(Object.values(require(path.resolve(file))) || [])\n})\n"]}
|
File without changes
|