@acorex-platform/module-software-management-client 1.0.2 → 2.0.0-beta.1
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/fesm2022/{acorex-platform-module-software-management-client-accept-software-suggestion.command-DVcM5TTv.mjs → acorex-platform-module-software-management-client-accept-software-suggestion.command-BzPDjIw0.mjs} +7 -6
- package/fesm2022/acorex-platform-module-software-management-client-accept-software-suggestion.command-BzPDjIw0.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-behavior-specification.commands-4rkD2uP9.mjs +212 -0
- package/fesm2022/acorex-platform-module-software-management-client-behavior-specification.commands-4rkD2uP9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-behavior-task.activities-WmCC3-3L.mjs +79 -0
- package/fesm2022/acorex-platform-module-software-management-client-behavior-task.activities-WmCC3-3L.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C61GUc78.mjs +512 -0
- package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C61GUc78.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs +62 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs +76 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs +94 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs +71 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs +49 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs +26 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs +86 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs +73 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-scope-item.entity-D25tkUvi.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs +281 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs +751 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-software.entity-DfeM7KfF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-use-case.entity-dPBFz-xN.mjs +92 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts-use-case.entity-dPBFz-xN.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-contracts.mjs +2709 -156
- package/fesm2022/acorex-platform-module-software-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-software-management-client-delivery-plan.commands-ccrjppbE.mjs +212 -0
- package/fesm2022/acorex-platform-module-software-management-client-delivery-plan.commands-ccrjppbE.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-delivery-task.activities-L955X3RX.mjs +216 -0
- package/fesm2022/acorex-platform-module-software-management-client-delivery-task.activities-L955X3RX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-design-document.commands-BDE3x0KG.mjs +212 -0
- package/fesm2022/acorex-platform-module-software-management-client-design-document.commands-BDE3x0KG.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-design-task.activities-Cra2LNal.mjs +79 -0
- package/fesm2022/acorex-platform-module-software-management-client-design-task.activities-Cra2LNal.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-software-management-client-discovery-kickoff.commands-gB0_htfF.mjs → acorex-platform-module-software-management-client-discovery-kickoff.commands-BZxzDJs9.mjs} +4 -2
- package/fesm2022/{acorex-platform-module-software-management-client-discovery-kickoff.commands-gB0_htfF.mjs.map → acorex-platform-module-software-management-client-discovery-kickoff.commands-BZxzDJs9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-software-management-client-discovery-report.commands-D2ricLpq.mjs → acorex-platform-module-software-management-client-discovery-report.commands-C9GKrnHs.mjs} +3 -2
- package/fesm2022/acorex-platform-module-software-management-client-discovery-report.commands-C9GKrnHs.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-discovery-task.activities-PIJEUza7.mjs +228 -0
- package/fesm2022/acorex-platform-module-software-management-client-discovery-task.activities-PIJEUza7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-software-management-client-introduction-exit-message.util-DShFM8MY.mjs → acorex-platform-module-software-management-client-introduction-exit-message.util-cYtN92HY.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-software-management-client-introduction-exit-message.util-DShFM8MY.mjs.map → acorex-platform-module-software-management-client-introduction-exit-message.util-cYtN92HY.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-software-management-client-introduction-task.activities-BOsJbeJe.mjs → acorex-platform-module-software-management-client-introduction-task.activities-DQPpsJaH.mjs} +78 -3
- package/fesm2022/acorex-platform-module-software-management-client-introduction-task.activities-DQPpsJaH.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-scope-document.commands-oLGsbLoA.mjs +212 -0
- package/fesm2022/acorex-platform-module-software-management-client-scope-document.commands-oLGsbLoA.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-software-management-client-scope-task.activities-BCSPq0eO.mjs +79 -0
- package/fesm2022/acorex-platform-module-software-management-client-scope-task.activities-BCSPq0eO.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-software-management-client-software-command.util-BsoKQCX5.mjs → acorex-platform-module-software-management-client-software-command.util-CvlYk7tC.mjs} +1 -1
- package/fesm2022/{acorex-platform-module-software-management-client-software-command.util-BsoKQCX5.mjs.map → acorex-platform-module-software-management-client-software-command.util-CvlYk7tC.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-software-management-client-start-software-definition-flow.command-B0YCgv2V.mjs → acorex-platform-module-software-management-client-start-software-definition-flow.command-BfxtMIGb.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-software-management-client-start-software-definition-flow.command-B0YCgv2V.mjs.map → acorex-platform-module-software-management-client-start-software-definition-flow.command-BfxtMIGb.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-software-management-client.mjs +400 -32
- package/fesm2022/acorex-platform-module-software-management-client.mjs.map +1 -1
- package/i18n/en-AU/software-management.json +473 -24
- package/i18n/en-US/software-management.json +473 -24
- package/i18n/fa-IR/software-management.json +474 -25
- package/package.json +1 -1
- package/types/acorex-platform-module-software-management-client-contracts.d.ts +640 -11
- package/fesm2022/acorex-platform-module-software-management-client-accept-software-suggestion.command-DVcM5TTv.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C56HhK20.mjs +0 -182
- package/fesm2022/acorex-platform-module-software-management-client-complete-software-phase.activity-C56HhK20.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-software-management-client-discovery-report.commands-D2ricLpq.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-software-management-client-introduction-task.activities-BOsJbeJe.mjs.map +0 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { g as createSoftwareLinkedEntity, c as softwareLookupProperty, a as softwareTextProperty } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
|
|
2
|
+
import { RootConfig } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
async function softwareAcceptanceCriterionFactory() {
|
|
5
|
+
const i18n = `${RootConfig.config.i18n}:entities.acceptance-criterion`;
|
|
6
|
+
return createSoftwareLinkedEntity({
|
|
7
|
+
entityKey: 'acceptanceCriterion',
|
|
8
|
+
i18nKey: 'acceptance-criterion',
|
|
9
|
+
searchTags: ['acceptance', 'معیار پذیرش'],
|
|
10
|
+
extraProperties: [
|
|
11
|
+
softwareLookupProperty({
|
|
12
|
+
name: 'requirementId',
|
|
13
|
+
title: `@${i18n}.fields.requirement.title`,
|
|
14
|
+
groupId: 'identity',
|
|
15
|
+
entity: RootConfig.entities.requirement.source,
|
|
16
|
+
textField: 'title',
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
softwareTextProperty({
|
|
20
|
+
name: 'statement',
|
|
21
|
+
title: `@${i18n}.fields.statement.title`,
|
|
22
|
+
description: `@${i18n}.fields.statement.description`,
|
|
23
|
+
groupId: 'identity',
|
|
24
|
+
required: true,
|
|
25
|
+
large: true,
|
|
26
|
+
}),
|
|
27
|
+
softwareTextProperty({
|
|
28
|
+
name: 'given',
|
|
29
|
+
title: `@${i18n}.fields.given.title`,
|
|
30
|
+
description: `@${i18n}.fields.given.description`,
|
|
31
|
+
groupId: 'identity',
|
|
32
|
+
large: true,
|
|
33
|
+
}),
|
|
34
|
+
softwareTextProperty({
|
|
35
|
+
name: 'when',
|
|
36
|
+
title: `@${i18n}.fields.when.title`,
|
|
37
|
+
description: `@${i18n}.fields.when.description`,
|
|
38
|
+
groupId: 'identity',
|
|
39
|
+
large: true,
|
|
40
|
+
}),
|
|
41
|
+
softwareTextProperty({
|
|
42
|
+
name: 'then',
|
|
43
|
+
title: `@${i18n}.fields.then.title`,
|
|
44
|
+
description: `@${i18n}.fields.then.description`,
|
|
45
|
+
groupId: 'identity',
|
|
46
|
+
large: true,
|
|
47
|
+
}),
|
|
48
|
+
softwareTextProperty({
|
|
49
|
+
name: 'scopeVersionId', reference: true,
|
|
50
|
+
title: `@${i18n}.fields.scope-version.title`,
|
|
51
|
+
description: `@${i18n}.fields.scope-version.description`,
|
|
52
|
+
groupId: 'identity',
|
|
53
|
+
readonly: true,
|
|
54
|
+
}),
|
|
55
|
+
],
|
|
56
|
+
columns: ['statement', 'origin', 'needsReview'],
|
|
57
|
+
omitOnCreate: ['scopeVersionId'],
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { softwareAcceptanceCriterionFactory };
|
|
62
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-acceptance-criterion.entity-CHEusZ4z.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/acceptance-criterion/acceptance-criterion.entity.ts"],"sourcesContent":["import {\n createSoftwareLinkedEntity,\n softwareLookupProperty,\n softwareTextProperty,\n} from '../software-entity.util';\nimport { RootConfig } from '../../root-config';\n\nexport async function softwareAcceptanceCriterionFactory() {\n const i18n = `${RootConfig.config.i18n}:entities.acceptance-criterion`;\n return createSoftwareLinkedEntity({\n entityKey: 'acceptanceCriterion',\n i18nKey: 'acceptance-criterion',\n searchTags: ['acceptance', 'معیار پذیرش'],\n extraProperties: [\n softwareLookupProperty({\n name: 'requirementId',\n title: `@${i18n}.fields.requirement.title`,\n groupId: 'identity',\n entity: RootConfig.entities.requirement.source,\n textField: 'title',\n required: true,\n }),\n softwareTextProperty({\n name: 'statement',\n title: `@${i18n}.fields.statement.title`,\n description: `@${i18n}.fields.statement.description`,\n groupId: 'identity',\n required: true,\n large: true,\n }),\n softwareTextProperty({\n name: 'given',\n title: `@${i18n}.fields.given.title`,\n description: `@${i18n}.fields.given.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'when',\n title: `@${i18n}.fields.when.title`,\n description: `@${i18n}.fields.when.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'then',\n title: `@${i18n}.fields.then.title`,\n description: `@${i18n}.fields.then.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'scopeVersionId', reference: true,\n title: `@${i18n}.fields.scope-version.title`,\n description: `@${i18n}.fields.scope-version.description`,\n groupId: 'identity',\n readonly: true,\n }),\n ],\n columns: ['statement', 'origin', 'needsReview'],\n omitOnCreate: ['scopeVersionId'],\n });\n}\n"],"names":[],"mappings":";;;AAOO,eAAe,kCAAkC,GAAA;IACtD,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,8BAAA,CAAgC;AACtE,IAAA,OAAO,0BAA0B,CAAC;AAChC,QAAA,SAAS,EAAE,qBAAqB;AAChC,QAAA,OAAO,EAAE,sBAAsB;AAC/B,QAAA,UAAU,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;AACzC,QAAA,eAAe,EAAE;AACf,YAAA,sBAAsB,CAAC;AACrB,gBAAA,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,yBAAA,CAA2B;AAC1C,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM;AAC9C,gBAAA,SAAS,EAAE,OAAO;AAClB,gBAAA,QAAQ,EAAE,IAAI;aACf,CAAC;AACF,YAAA,oBAAoB,CAAC;AACnB,gBAAA,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,uBAAA,CAAyB;gBACxC,WAAW,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,6BAAA,CAA+B;AACpD,gBAAA,OAAO,EAAE,UAAU;AACnB,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C,gBAAgB,CAAC;AACjC,KAAA,CAAC;AACJ;;"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { g as createSoftwareLinkedEntity, c as softwareLookupProperty, a as softwareTextProperty, b as softwareSelectProperty } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
|
|
2
|
+
import { RootConfig, SOFTWARE_BUSINESS_RULE_KINDS, SOFTWARE_ENFORCEMENT_LEVELS } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
async function softwareBusinessRuleFactory() {
|
|
5
|
+
const i18n = `${RootConfig.config.i18n}:entities.business-rule`;
|
|
6
|
+
return createSoftwareLinkedEntity({
|
|
7
|
+
entityKey: 'businessRule',
|
|
8
|
+
i18nKey: 'business-rule',
|
|
9
|
+
searchTags: ['rule', 'قانون کسبوکار'],
|
|
10
|
+
extraProperties: [
|
|
11
|
+
softwareLookupProperty({
|
|
12
|
+
name: 'requirementId',
|
|
13
|
+
title: `@${i18n}.fields.requirement.title`,
|
|
14
|
+
groupId: 'identity',
|
|
15
|
+
entity: RootConfig.entities.requirement.source,
|
|
16
|
+
textField: 'title',
|
|
17
|
+
}),
|
|
18
|
+
softwareLookupProperty({
|
|
19
|
+
name: 'scopeItemId',
|
|
20
|
+
title: `@${i18n}.fields.scope-item.title`,
|
|
21
|
+
description: `@${i18n}.fields.scope-item.description`,
|
|
22
|
+
groupId: 'identity',
|
|
23
|
+
entity: RootConfig.entities.scopeItem.source,
|
|
24
|
+
textField: 'title',
|
|
25
|
+
}),
|
|
26
|
+
softwareTextProperty({
|
|
27
|
+
name: 'scopeVersionId', reference: true,
|
|
28
|
+
title: `@${i18n}.fields.scope-version.title`,
|
|
29
|
+
description: `@${i18n}.fields.scope-version.description`,
|
|
30
|
+
groupId: 'identity',
|
|
31
|
+
readonly: true,
|
|
32
|
+
}),
|
|
33
|
+
softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),
|
|
34
|
+
softwareSelectProperty({
|
|
35
|
+
name: 'kind',
|
|
36
|
+
title: `@${i18n}.fields.kind.title`,
|
|
37
|
+
description: `@${i18n}.fields.kind.description`,
|
|
38
|
+
groupId: 'identity',
|
|
39
|
+
dataSource: SOFTWARE_BUSINESS_RULE_KINDS.map((value) => ({
|
|
40
|
+
value,
|
|
41
|
+
text: `@${RootConfig.config.i18n}:terms.business-rule-kind.${value}`,
|
|
42
|
+
})),
|
|
43
|
+
}),
|
|
44
|
+
softwareTextProperty({
|
|
45
|
+
name: 'statement',
|
|
46
|
+
title: `@${i18n}.fields.statement.title`,
|
|
47
|
+
description: `@${i18n}.fields.statement.description`,
|
|
48
|
+
groupId: 'identity',
|
|
49
|
+
required: true,
|
|
50
|
+
large: true,
|
|
51
|
+
}),
|
|
52
|
+
softwareTextProperty({ name: 'trigger', title: `@${i18n}.fields.trigger.title`, groupId: 'identity', large: true }),
|
|
53
|
+
softwareTextProperty({
|
|
54
|
+
name: 'consequence',
|
|
55
|
+
title: `@${i18n}.fields.consequence.title`,
|
|
56
|
+
groupId: 'identity',
|
|
57
|
+
large: true,
|
|
58
|
+
}),
|
|
59
|
+
softwareSelectProperty({
|
|
60
|
+
name: 'enforcementLevel',
|
|
61
|
+
title: `@${i18n}.fields.enforcement-level.title`,
|
|
62
|
+
description: `@${i18n}.fields.enforcement-level.description`,
|
|
63
|
+
groupId: 'identity',
|
|
64
|
+
dataSource: SOFTWARE_ENFORCEMENT_LEVELS.map((value) => ({
|
|
65
|
+
value,
|
|
66
|
+
text: `@${RootConfig.config.i18n}:terms.enforcement-level.${value}`,
|
|
67
|
+
})),
|
|
68
|
+
}),
|
|
69
|
+
],
|
|
70
|
+
columns: ['title', 'kind', 'enforcementLevel', 'needsReview'],
|
|
71
|
+
omitOnCreate: ['scopeVersionId'],
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export { softwareBusinessRuleFactory };
|
|
76
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-business-rule.entity-Cew1yY4A.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/business-rule/business-rule.entity.ts"],"sourcesContent":["import {\n createSoftwareLinkedEntity,\n softwareLookupProperty,\n softwareSelectProperty,\n softwareTextProperty,\n} from '../software-entity.util';\nimport { RootConfig } from '../../root-config';\nimport { SOFTWARE_BUSINESS_RULE_KINDS, SOFTWARE_ENFORCEMENT_LEVELS } from '../../software-provenance.constants';\n\nexport async function softwareBusinessRuleFactory() {\n const i18n = `${RootConfig.config.i18n}:entities.business-rule`;\n return createSoftwareLinkedEntity({\n entityKey: 'businessRule',\n i18nKey: 'business-rule',\n searchTags: ['rule', 'قانون کسبوکار'],\n extraProperties: [\n softwareLookupProperty({\n name: 'requirementId',\n title: `@${i18n}.fields.requirement.title`,\n groupId: 'identity',\n entity: RootConfig.entities.requirement.source,\n textField: 'title',\n }),\n softwareLookupProperty({\n name: 'scopeItemId',\n title: `@${i18n}.fields.scope-item.title`,\n description: `@${i18n}.fields.scope-item.description`,\n groupId: 'identity',\n entity: RootConfig.entities.scopeItem.source,\n textField: 'title',\n }),\n softwareTextProperty({\n name: 'scopeVersionId', reference: true,\n title: `@${i18n}.fields.scope-version.title`,\n description: `@${i18n}.fields.scope-version.description`,\n groupId: 'identity',\n readonly: true,\n }),\n softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),\n softwareSelectProperty({\n name: 'kind',\n title: `@${i18n}.fields.kind.title`,\n description: `@${i18n}.fields.kind.description`,\n groupId: 'identity',\n dataSource: SOFTWARE_BUSINESS_RULE_KINDS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.business-rule-kind.${value}`,\n })),\n }),\n softwareTextProperty({\n name: 'statement',\n title: `@${i18n}.fields.statement.title`,\n description: `@${i18n}.fields.statement.description`,\n groupId: 'identity',\n required: true,\n large: true,\n }),\n softwareTextProperty({ name: 'trigger', title: `@${i18n}.fields.trigger.title`, groupId: 'identity', large: true }),\n softwareTextProperty({\n name: 'consequence',\n title: `@${i18n}.fields.consequence.title`,\n groupId: 'identity',\n large: true,\n }),\n softwareSelectProperty({\n name: 'enforcementLevel',\n title: `@${i18n}.fields.enforcement-level.title`,\n description: `@${i18n}.fields.enforcement-level.description`,\n groupId: 'identity',\n dataSource: SOFTWARE_ENFORCEMENT_LEVELS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.enforcement-level.${value}`,\n })),\n }),\n ],\n columns: ['title', 'kind', 'enforcementLevel', 'needsReview'],\n omitOnCreate: ['scopeVersionId'],\n });\n}\n"],"names":[],"mappings":";;;AASO,eAAe,2BAA2B,GAAA;IAC/C,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,uBAAA,CAAyB;AAC/D,IAAA,OAAO,0BAA0B,CAAC;AAChC,QAAA,SAAS,EAAE,cAAc;AACzB,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,UAAU,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC;AACtC,QAAA,eAAe,EAAE;AACf,YAAA,sBAAsB,CAAC;AACrB,gBAAA,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,yBAAA,CAA2B;AAC1C,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM;AAC9C,gBAAA,SAAS,EAAE,OAAO;aACnB,CAAC;AACF,YAAA,sBAAsB,CAAC;AACrB,gBAAA,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,wBAAA,CAA0B;gBACzC,WAAW,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,8BAAA,CAAgC;AACrD,gBA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AQ,EAAE,IAAI;AACd,gBAAA,KAAK,EAAE,IAAI;aACZ,CAAC;YACF,oBAAoB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,uBAAuB,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACnH,YAAA,oBAAoB,CAAC;AACnB,gBAAA,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,yBAAA,CAA2B;AAC1C,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,KAAK,EAAE,IAAI;aACZ,CAAC;AACF,YAAA,sBAAsB,CAAC;AACrB,gBAAA,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,+BAAA,CAAiC;gBAChD,WAAW,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,qCAAA,CAAuC;AAC5D,gBAAA,OAAO,EAAE,UAAU;gBACnB,UAAU,EAAE,2BAA2B,CAAC,GAAG,CAAC,CAAC,KAAK,MAAM;oBACtD,KAAK;oBACL,IAAI,EAAE,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAA,EAA4B,KAAK,CAAA,CAAE;AACpE,iBAAA,CAAC,CAAC;aACJ,CAAC;AACH,SAAA;QACD,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,aAAa,CAAC;QAC7D,YAAY,EAAE,CAAC,gBAAgB,CAAC;AACjC,KAAA,CAAC;AACJ;;"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { g as createSoftwareLinkedEntity, b as softwareSelectProperty, a as softwareTextProperty, c as softwareLookupProperty } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
|
|
2
|
+
import { RootConfig, SOFTWARE_DESIGN_KINDS, SOFTWARE_ADR_STATUSES } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
async function softwareDesignDecisionFactory() {
|
|
5
|
+
const i18n = `${RootConfig.config.i18n}:entities.design-decision`;
|
|
6
|
+
return createSoftwareLinkedEntity({
|
|
7
|
+
entityKey: 'designDecision',
|
|
8
|
+
i18nKey: 'design-decision',
|
|
9
|
+
searchTags: ['design', 'ux', 'technical', 'طراحی'],
|
|
10
|
+
extraProperties: [
|
|
11
|
+
softwareSelectProperty({
|
|
12
|
+
name: 'kind',
|
|
13
|
+
title: `@${i18n}.fields.kind.title`,
|
|
14
|
+
groupId: 'identity',
|
|
15
|
+
required: true,
|
|
16
|
+
dataSource: SOFTWARE_DESIGN_KINDS.map((value) => ({
|
|
17
|
+
value,
|
|
18
|
+
text: `@${RootConfig.config.i18n}:terms.design-kind.${value}`,
|
|
19
|
+
})),
|
|
20
|
+
}),
|
|
21
|
+
softwareSelectProperty({
|
|
22
|
+
name: 'adrStatus',
|
|
23
|
+
title: `@${i18n}.fields.adr-status.title`,
|
|
24
|
+
description: `@${i18n}.fields.adr-status.description`,
|
|
25
|
+
groupId: 'identity',
|
|
26
|
+
dataSource: SOFTWARE_ADR_STATUSES.map((value) => ({
|
|
27
|
+
value,
|
|
28
|
+
text: `@${RootConfig.config.i18n}:terms.adr-status.${value}`,
|
|
29
|
+
})),
|
|
30
|
+
}),
|
|
31
|
+
softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),
|
|
32
|
+
softwareTextProperty({
|
|
33
|
+
name: 'context',
|
|
34
|
+
title: `@${i18n}.fields.context.title`,
|
|
35
|
+
description: `@${i18n}.fields.context.description`,
|
|
36
|
+
groupId: 'identity',
|
|
37
|
+
large: true,
|
|
38
|
+
}),
|
|
39
|
+
softwareTextProperty({
|
|
40
|
+
name: 'body',
|
|
41
|
+
title: `@${i18n}.fields.body.title`,
|
|
42
|
+
description: `@${i18n}.fields.body.description`,
|
|
43
|
+
groupId: 'identity',
|
|
44
|
+
large: true,
|
|
45
|
+
}),
|
|
46
|
+
softwareTextProperty({
|
|
47
|
+
name: 'alternatives',
|
|
48
|
+
title: `@${i18n}.fields.alternatives.title`,
|
|
49
|
+
description: `@${i18n}.fields.alternatives.description`,
|
|
50
|
+
groupId: 'identity',
|
|
51
|
+
large: true,
|
|
52
|
+
}),
|
|
53
|
+
softwareTextProperty({
|
|
54
|
+
name: 'consequences',
|
|
55
|
+
title: `@${i18n}.fields.consequences.title`,
|
|
56
|
+
description: `@${i18n}.fields.consequences.description`,
|
|
57
|
+
groupId: 'identity',
|
|
58
|
+
large: true,
|
|
59
|
+
}),
|
|
60
|
+
softwareTextProperty({
|
|
61
|
+
name: 'technology',
|
|
62
|
+
title: `@${i18n}.fields.technology.title`,
|
|
63
|
+
groupId: 'identity',
|
|
64
|
+
}),
|
|
65
|
+
softwareLookupProperty({
|
|
66
|
+
name: 'requirementId',
|
|
67
|
+
title: `@${i18n}.fields.requirement.title`,
|
|
68
|
+
description: `@${i18n}.fields.requirement.description`,
|
|
69
|
+
groupId: 'identity',
|
|
70
|
+
entity: RootConfig.entities.requirement.source,
|
|
71
|
+
textField: 'title',
|
|
72
|
+
}),
|
|
73
|
+
softwareLookupProperty({
|
|
74
|
+
name: 'useCaseId',
|
|
75
|
+
title: `@${i18n}.fields.use-case.title`,
|
|
76
|
+
groupId: 'identity',
|
|
77
|
+
entity: RootConfig.entities.useCase.source,
|
|
78
|
+
textField: 'title',
|
|
79
|
+
}),
|
|
80
|
+
softwareTextProperty({
|
|
81
|
+
name: 'behaviorVersionId', reference: true,
|
|
82
|
+
title: `@${i18n}.fields.behavior-version.title`,
|
|
83
|
+
description: `@${i18n}.fields.behavior-version.description`,
|
|
84
|
+
groupId: 'identity',
|
|
85
|
+
readonly: true,
|
|
86
|
+
}),
|
|
87
|
+
],
|
|
88
|
+
columns: ['kind', 'title', 'adrStatus', 'technology', 'needsReview'],
|
|
89
|
+
omitOnCreate: ['behaviorVersionId'],
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { softwareDesignDecisionFactory };
|
|
94
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-design-decision.entity-BDRnAUj9.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/design-decision/design-decision.entity.ts"],"sourcesContent":["import { createSoftwareLinkedEntity, softwareLookupProperty, softwareSelectProperty, softwareTextProperty } from '../software-entity.util';\nimport { RootConfig } from '../../root-config';\nimport { SOFTWARE_ADR_STATUSES, SOFTWARE_DESIGN_KINDS } from '../../software-provenance.constants';\n\nexport async function softwareDesignDecisionFactory() {\n const i18n = `${RootConfig.config.i18n}:entities.design-decision`;\n return createSoftwareLinkedEntity({\n entityKey: 'designDecision',\n i18nKey: 'design-decision',\n searchTags: ['design', 'ux', 'technical', 'طراحی'],\n extraProperties: [\n softwareSelectProperty({\n name: 'kind',\n title: `@${i18n}.fields.kind.title`,\n groupId: 'identity',\n required: true,\n dataSource: SOFTWARE_DESIGN_KINDS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.design-kind.${value}`,\n })),\n }),\n softwareSelectProperty({\n name: 'adrStatus',\n title: `@${i18n}.fields.adr-status.title`,\n description: `@${i18n}.fields.adr-status.description`,\n groupId: 'identity',\n dataSource: SOFTWARE_ADR_STATUSES.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.adr-status.${value}`,\n })),\n }),\n softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),\n softwareTextProperty({\n name: 'context',\n title: `@${i18n}.fields.context.title`,\n description: `@${i18n}.fields.context.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'body',\n title: `@${i18n}.fields.body.title`,\n description: `@${i18n}.fields.body.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'alternatives',\n title: `@${i18n}.fields.alternatives.title`,\n description: `@${i18n}.fields.alternatives.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'consequences',\n title: `@${i18n}.fields.consequences.title`,\n description: `@${i18n}.fields.consequences.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'technology',\n title: `@${i18n}.fields.technology.title`,\n groupId: 'identity',\n }),\n softwareLookupProperty({\n name: 'requirementId',\n title: `@${i18n}.fields.requirement.title`,\n description: `@${i18n}.fields.requirement.description`,\n groupId: 'identity',\n entity: RootConfig.entities.requirement.source,\n textField: 'title',\n }),\n softwareLookupProperty({\n name: 'useCaseId',\n title: `@${i18n}.fields.use-case.title`,\n groupId: 'identity',\n entity: RootConfig.entities.useCase.source,\n textField: 'title',\n }),\n softwareTextProperty({\n name: 'behaviorVersionId', reference: true,\n title: `@${i18n}.fields.behavior-version.title`,\n description: `@${i18n}.fields.behavior-version.description`,\n groupId: 'identity',\n readonly: true,\n }),\n ],\n columns: ['kind', 'title', 'adrStatus', 'technology', 'needsReview'],\n omitOnCreate: ['behaviorVersionId'],\n });\n}\n"],"names":[],"mappings":";;;AAIO,eAAe,6BAA6B,GAAA;IACjD,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAA,CAA2B;AACjE,IAAA,OAAO,0BAA0B,CAAC;AAChC,QAAA,SAAS,EAAE,gBAAgB;AAC3B,QAAA,OAAO,EAAE,iBAAiB;QAC1B,UAAU,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC;AAClD,QAAA,eAAe,EAAE;AACf,YAAA,sBAAsB,CAAC;AACrB,gBAAA,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,kBAAA,CAAoB;AACnC,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE,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MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM;AAC1C,gBAAA,SAAS,EAAE,OAAO;aACnB,CAAC;AACF,YAAA,oBAAoB,CAAC;AACnB,gBAAA,IAAI,EAAE,mBAAmB,EAAE,SAAS,EAAE,IAAI;gBAC1C,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,8BAAA,CAAgC;gBAC/C,WAAW,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,oCAAA,CAAsC;AAC3D,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,QAAQ,EAAE,IAAI;aACf,CAAC;AACH,SAAA;QACD,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,CAAC;QACpE,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACpC,KAAA,CAAC;AACJ;;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { g as createSoftwareLinkedEntity, b as softwareSelectProperty, a as softwareTextProperty, h as softwareDateProperty } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
|
|
2
|
+
import { RootConfig, SOFTWARE_DISCOVERY_KINDS, DISCOVERY_STANCES, DISCOVERY_METHODS } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
async function softwareDiscoveryItemFactory() {
|
|
5
|
+
const i18n = `${RootConfig.config.i18n}:entities.discovery-item`;
|
|
6
|
+
return createSoftwareLinkedEntity({
|
|
7
|
+
entityKey: 'discoveryItem',
|
|
8
|
+
i18nKey: 'discovery-item',
|
|
9
|
+
searchTags: ['discovery', 'hypothesis', 'evidence', 'کشف'],
|
|
10
|
+
extraGroups: [{ id: 'research', title: `@${i18n}.groups.research` }],
|
|
11
|
+
extraProperties: [
|
|
12
|
+
softwareSelectProperty({
|
|
13
|
+
name: 'kind',
|
|
14
|
+
title: `@${i18n}.fields.kind.title`,
|
|
15
|
+
groupId: 'identity',
|
|
16
|
+
required: true,
|
|
17
|
+
dataSource: SOFTWARE_DISCOVERY_KINDS.map((value) => ({
|
|
18
|
+
value,
|
|
19
|
+
text: `@${RootConfig.config.i18n}:terms.discovery-kind.${value}`,
|
|
20
|
+
})),
|
|
21
|
+
}),
|
|
22
|
+
softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),
|
|
23
|
+
softwareTextProperty({ name: 'body', title: `@${i18n}.fields.body.title`, groupId: 'identity', large: true }),
|
|
24
|
+
softwareSelectProperty({
|
|
25
|
+
name: 'stance',
|
|
26
|
+
title: `@${i18n}.fields.stance.title`,
|
|
27
|
+
groupId: 'research',
|
|
28
|
+
defaultValue: 'assumption',
|
|
29
|
+
dataSource: DISCOVERY_STANCES.map((value) => ({
|
|
30
|
+
value,
|
|
31
|
+
text: `@${RootConfig.config.i18n}:terms.discovery-stance.${value}`,
|
|
32
|
+
})),
|
|
33
|
+
}),
|
|
34
|
+
softwareSelectProperty({
|
|
35
|
+
name: 'method',
|
|
36
|
+
title: `@${i18n}.fields.method.title`,
|
|
37
|
+
groupId: 'research',
|
|
38
|
+
dataSource: DISCOVERY_METHODS.map((value) => ({
|
|
39
|
+
value,
|
|
40
|
+
text: `@${RootConfig.config.i18n}:terms.discovery-method.${value}`,
|
|
41
|
+
})),
|
|
42
|
+
}),
|
|
43
|
+
softwareTextProperty({ name: 'userGroup', title: `@${i18n}.fields.user-group.title`, groupId: 'research' }),
|
|
44
|
+
softwareTextProperty({ name: 'claim', title: `@${i18n}.fields.claim.title`, groupId: 'research', large: true }),
|
|
45
|
+
softwareTextProperty({
|
|
46
|
+
name: 'sourceRefs',
|
|
47
|
+
title: `@${i18n}.fields.source-refs.title`,
|
|
48
|
+
description: `@${i18n}.fields.source-refs.description`,
|
|
49
|
+
groupId: 'research',
|
|
50
|
+
large: true,
|
|
51
|
+
}),
|
|
52
|
+
softwareDateProperty({
|
|
53
|
+
name: 'researchDate',
|
|
54
|
+
title: `@${i18n}.fields.research-date.title`,
|
|
55
|
+
groupId: 'research',
|
|
56
|
+
}),
|
|
57
|
+
softwareTextProperty({
|
|
58
|
+
name: 'kickoffVersionId', reference: true,
|
|
59
|
+
title: `@${i18n}.fields.kickoff-version.title`,
|
|
60
|
+
description: `@${i18n}.fields.kickoff-version.description`,
|
|
61
|
+
groupId: 'identity',
|
|
62
|
+
readonly: true,
|
|
63
|
+
}),
|
|
64
|
+
],
|
|
65
|
+
omitOnCreate: ['kickoffVersionId'],
|
|
66
|
+
columns: ['title', 'kind', 'stance', 'needsReview'],
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { softwareDiscoveryItemFactory };
|
|
71
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-discovery-item.entity-Ah5hlc5n.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/discovery-item/discovery-item.entity.ts"],"sourcesContent":["import {\n createSoftwareLinkedEntity,\n softwareDateProperty,\n softwareSelectProperty,\n softwareTextProperty,\n} from '../software-entity.util';\nimport { RootConfig } from '../../root-config';\nimport { DISCOVERY_METHODS, DISCOVERY_STANCES } from '../../discovery-report.sheet';\nimport { SOFTWARE_DISCOVERY_KINDS } from '../../software-provenance.constants';\n\nexport async function softwareDiscoveryItemFactory() {\n const i18n = `${RootConfig.config.i18n}:entities.discovery-item`;\n return createSoftwareLinkedEntity({\n entityKey: 'discoveryItem',\n i18nKey: 'discovery-item',\n searchTags: ['discovery', 'hypothesis', 'evidence', 'کشف'],\n extraGroups: [{ id: 'research', title: `@${i18n}.groups.research` }],\n extraProperties: [\n softwareSelectProperty({\n name: 'kind',\n title: `@${i18n}.fields.kind.title`,\n groupId: 'identity',\n required: true,\n dataSource: SOFTWARE_DISCOVERY_KINDS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.discovery-kind.${value}`,\n })),\n }),\n softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),\n softwareTextProperty({ name: 'body', title: `@${i18n}.fields.body.title`, groupId: 'identity', large: true }),\n softwareSelectProperty({\n name: 'stance',\n title: `@${i18n}.fields.stance.title`,\n groupId: 'research',\n defaultValue: 'assumption',\n dataSource: DISCOVERY_STANCES.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.discovery-stance.${value}`,\n })),\n }),\n softwareSelectProperty({\n name: 'method',\n title: `@${i18n}.fields.method.title`,\n groupId: 'research',\n dataSource: DISCOVERY_METHODS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.discovery-method.${value}`,\n })),\n }),\n softwareTextProperty({ name: 'userGroup', title: `@${i18n}.fields.user-group.title`, groupId: 'research' }),\n softwareTextProperty({ name: 'claim', title: `@${i18n}.fields.claim.title`, groupId: 'research', large: true }),\n softwareTextProperty({\n name: 'sourceRefs',\n title: `@${i18n}.fields.source-refs.title`,\n description: `@${i18n}.fields.source-refs.description`,\n groupId: 'research',\n large: true,\n }),\n softwareDateProperty({\n name: 'researchDate',\n title: `@${i18n}.fields.research-date.title`,\n groupId: 'research',\n }),\n softwareTextProperty({\n name: 'kickoffVersionId', reference: true,\n title: `@${i18n}.fields.kickoff-version.title`,\n description: `@${i18n}.fields.kickoff-version.description`,\n groupId: 'identity',\n readonly: true,\n }),\n ],\n omitOnCreate: ['kickoffVersionId'],\n columns: ['title', 'kind', 'stance', 'needsReview'],\n });\n}\n"],"names":[],"mappings":";;;AAUO,eAAe,4BAA4B,GAAA;IAChD,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAA,CAA0B;AAChE,IAAA,OAAO,0BAA0B,CAAC;AAChC,QAAA,SAAS,EAAE,eAAe;AAC1B,QAAA,OAAO,EAAE,gBAAgB;QACzB,UAAU,EAAE,CAAC,WAAW,EAAE,YAAY,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A,CAAA,EAAI,IAAI,CAAA,6BAAA,CAA+B;gBAC9C,WAAW,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,mCAAA,CAAqC;AAC1D,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,QAAQ,EAAE,IAAI;aACf,CAAC;AACH,SAAA;QACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,CAAC;AACpD,KAAA,CAAC;AACJ;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { g as createSoftwareLinkedEntity, e as softwareChildRelated, c as softwareLookupProperty, a as softwareTextProperty } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
|
|
2
|
+
import { RootConfig } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
async function softwareFeatureFactory() {
|
|
5
|
+
const i18n = `${RootConfig.config.i18n}:entities.feature`;
|
|
6
|
+
return createSoftwareLinkedEntity({
|
|
7
|
+
entityKey: 'feature',
|
|
8
|
+
i18nKey: 'feature',
|
|
9
|
+
searchTags: ['feature', 'قابلیت محصول'],
|
|
10
|
+
extraProperties: [
|
|
11
|
+
softwareLookupProperty({
|
|
12
|
+
name: 'moduleId',
|
|
13
|
+
title: `@${i18n}.fields.module.title`,
|
|
14
|
+
groupId: 'identity',
|
|
15
|
+
entity: RootConfig.entities.module.source,
|
|
16
|
+
textField: 'title',
|
|
17
|
+
required: true,
|
|
18
|
+
}),
|
|
19
|
+
softwareTextProperty({ name: 'code', title: `@${i18n}.fields.code.title`, groupId: 'identity', required: true }),
|
|
20
|
+
softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),
|
|
21
|
+
softwareTextProperty({ name: 'summary', title: `@${i18n}.fields.summary.title`, groupId: 'identity', large: true }),
|
|
22
|
+
softwareTextProperty({
|
|
23
|
+
name: 'asA',
|
|
24
|
+
title: `@${i18n}.fields.as-a.title`,
|
|
25
|
+
description: `@${i18n}.fields.as-a.description`,
|
|
26
|
+
groupId: 'identity',
|
|
27
|
+
}),
|
|
28
|
+
softwareTextProperty({
|
|
29
|
+
name: 'iWant',
|
|
30
|
+
title: `@${i18n}.fields.i-want.title`,
|
|
31
|
+
description: `@${i18n}.fields.i-want.description`,
|
|
32
|
+
groupId: 'identity',
|
|
33
|
+
large: true,
|
|
34
|
+
}),
|
|
35
|
+
softwareTextProperty({
|
|
36
|
+
name: 'soThat',
|
|
37
|
+
title: `@${i18n}.fields.so-that.title`,
|
|
38
|
+
description: `@${i18n}.fields.so-that.description`,
|
|
39
|
+
groupId: 'identity',
|
|
40
|
+
large: true,
|
|
41
|
+
}),
|
|
42
|
+
],
|
|
43
|
+
columns: ['code', 'title', 'needsReview'],
|
|
44
|
+
relatedEntities: [softwareChildRelated('useCase', ['code', 'title'], 'featureId')],
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { softwareFeatureFactory };
|
|
49
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-feature.entity-D9es0yAv.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/feature/feature.entity.ts"],"sourcesContent":["import {\n createSoftwareLinkedEntity,\n softwareChildRelated,\n softwareLookupProperty,\n softwareTextProperty,\n} from '../software-entity.util';\nimport { RootConfig } from '../../root-config';\n\nexport async function softwareFeatureFactory() {\n const i18n = `${RootConfig.config.i18n}:entities.feature`;\n return createSoftwareLinkedEntity({\n entityKey: 'feature',\n i18nKey: 'feature',\n searchTags: ['feature', 'قابلیت محصول'],\n extraProperties: [\n softwareLookupProperty({\n name: 'moduleId',\n title: `@${i18n}.fields.module.title`,\n groupId: 'identity',\n entity: RootConfig.entities.module.source,\n textField: 'title',\n required: true,\n }),\n softwareTextProperty({ name: 'code', title: `@${i18n}.fields.code.title`, groupId: 'identity', required: true }),\n softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),\n softwareTextProperty({ name: 'summary', title: `@${i18n}.fields.summary.title`, groupId: 'identity', large: true }),\n softwareTextProperty({\n name: 'asA',\n title: `@${i18n}.fields.as-a.title`,\n description: `@${i18n}.fields.as-a.description`,\n groupId: 'identity',\n }),\n softwareTextProperty({\n name: 'iWant',\n title: `@${i18n}.fields.i-want.title`,\n description: `@${i18n}.fields.i-want.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareTextProperty({\n name: 'soThat',\n title: `@${i18n}.fields.so-that.title`,\n description: `@${i18n}.fields.so-that.description`,\n groupId: 'identity',\n large: true,\n }),\n ],\n columns: ['code', 'title', 'needsReview'],\n relatedEntities: [softwareChildRelated('useCase', ['code', 'title'], 'featureId')],\n });\n}\n"],"names":[],"mappings":";;;AAQO,eAAe,sBAAsB,GAAA;IAC1C,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAA,CAAmB;AACzD,IAAA,OAAO,0BAA0B,CAAC;AAChC,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,UAAU,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC;AACvC,QAAA,eAAe,EAAE;AACf,YAAA,sBAAsB,CAAC;AACrB,gBAAA,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,oBAAA,CAAsB;AACrC,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM;AACzC,gBAAA,SAAS,EAAE,OAAO;AAClB,gBAAA,QAAQ,EAAE,IAAI;aACf,CAAC;YACF,oBAAoB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA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,eAAe,EAAE,CAAC,oBAAoB,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC;AACnF,KAAA,CAAC;AACJ;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { g as createSoftwareLinkedEntity, e as softwareChildRelated, a as softwareTextProperty } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
|
|
2
|
+
import { RootConfig } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
async function softwareModuleFactory() {
|
|
5
|
+
const i18n = `${RootConfig.config.i18n}:entities.module`;
|
|
6
|
+
return createSoftwareLinkedEntity({
|
|
7
|
+
entityKey: 'module',
|
|
8
|
+
i18nKey: 'module',
|
|
9
|
+
searchTags: ['module', 'bounded context', 'ماژول محصول'],
|
|
10
|
+
extraProperties: [
|
|
11
|
+
softwareTextProperty({ name: 'code', title: `@${i18n}.fields.code.title`, groupId: 'identity', required: true }),
|
|
12
|
+
softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),
|
|
13
|
+
softwareTextProperty({
|
|
14
|
+
name: 'responsibility',
|
|
15
|
+
title: `@${i18n}.fields.responsibility.title`,
|
|
16
|
+
groupId: 'identity',
|
|
17
|
+
large: true,
|
|
18
|
+
}),
|
|
19
|
+
],
|
|
20
|
+
columns: ['code', 'title', 'needsReview'],
|
|
21
|
+
relatedEntities: [softwareChildRelated('feature', ['code', 'title'], 'moduleId')],
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { softwareModuleFactory };
|
|
26
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-module.entity-E9XKlo1v.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/module/module.entity.ts"],"sourcesContent":["import { createSoftwareLinkedEntity, softwareChildRelated, softwareTextProperty } from '../software-entity.util';\nimport { RootConfig } from '../../root-config';\n\nexport async function softwareModuleFactory() {\n const i18n = `${RootConfig.config.i18n}:entities.module`;\n return createSoftwareLinkedEntity({\n entityKey: 'module',\n i18nKey: 'module',\n searchTags: ['module', 'bounded context', 'ماژول محصول'],\n extraProperties: [\n softwareTextProperty({ name: 'code', title: `@${i18n}.fields.code.title`, groupId: 'identity', required: true }),\n softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),\n softwareTextProperty({\n name: 'responsibility',\n title: `@${i18n}.fields.responsibility.title`,\n groupId: 'identity',\n large: true,\n }),\n ],\n columns: ['code', 'title', 'needsReview'],\n relatedEntities: [softwareChildRelated('feature', ['code', 'title'], 'moduleId')],\n });\n}\n"],"names":[],"mappings":";;;AAGO,eAAe,qBAAqB,GAAA;IACzC,MAAM,IAAI,GAAG,CAAA,EAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAA,CAAkB;AACxD,IAAA,OAAO,0BAA0B,CAAC;AAChC,QAAA,SAAS,EAAE,QAAQ;AACnB,QAAA,OAAO,EAAE,QAAQ;AACjB,QAAA,UAAU,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,aAAa,CAAC;AACxD,QAAA,eAAe,EAAE;YACf,oBAAoB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,oBAAoB,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAChH,oBAAoB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,qBAAqB,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAClH,YAAA,oBAAoB,CAAC;AACnB,gBAAA,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,4BAAA,CAA8B;AAC7C,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,KAAK,EAAE,IAAI;aACZ,CAAC;AACH,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC;AACzC,QAAA,eAAe,EAAE,CAAC,oBAAoB,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC;AAClF,KAAA,CAAC;AACJ;;"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { g as createSoftwareLinkedEntity, e as softwareChildRelated, c as softwareLookupProperty, a as softwareTextProperty, b as softwareSelectProperty } from './acorex-platform-module-software-management-client-contracts-software-entity.util-sRHl21Jh.mjs';
|
|
2
|
+
import { RootConfig, SOFTWARE_REQUIREMENT_KINDS, SOFTWARE_MOSCOW_PRIORITIES, SOFTWARE_VERIFICATION_METHODS } from './acorex-platform-module-software-management-client-contracts.mjs';
|
|
3
|
+
|
|
4
|
+
async function softwareRequirementFactory() {
|
|
5
|
+
const i18n = `${RootConfig.config.i18n}:entities.requirement`;
|
|
6
|
+
return createSoftwareLinkedEntity({
|
|
7
|
+
entityKey: 'requirement',
|
|
8
|
+
i18nKey: 'requirement',
|
|
9
|
+
searchTags: ['requirement', 'نیازمندی'],
|
|
10
|
+
extraProperties: [
|
|
11
|
+
softwareLookupProperty({
|
|
12
|
+
name: 'scopeItemId',
|
|
13
|
+
title: `@${i18n}.fields.scope-item.title`,
|
|
14
|
+
description: `@${i18n}.fields.scope-item.description`,
|
|
15
|
+
groupId: 'identity',
|
|
16
|
+
entity: RootConfig.entities.scopeItem.source,
|
|
17
|
+
textField: 'title',
|
|
18
|
+
}),
|
|
19
|
+
softwareTextProperty({
|
|
20
|
+
name: 'scopeVersionId', reference: true,
|
|
21
|
+
title: `@${i18n}.fields.scope-version.title`,
|
|
22
|
+
description: `@${i18n}.fields.scope-version.description`,
|
|
23
|
+
groupId: 'identity',
|
|
24
|
+
readonly: true,
|
|
25
|
+
}),
|
|
26
|
+
softwareTextProperty({
|
|
27
|
+
name: 'scopedId',
|
|
28
|
+
title: `@${i18n}.fields.scoped-id.title`,
|
|
29
|
+
description: `@${i18n}.fields.scoped-id.description`,
|
|
30
|
+
groupId: 'identity',
|
|
31
|
+
}),
|
|
32
|
+
softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),
|
|
33
|
+
softwareSelectProperty({
|
|
34
|
+
name: 'kind',
|
|
35
|
+
title: `@${i18n}.fields.kind.title`,
|
|
36
|
+
description: `@${i18n}.fields.kind.description`,
|
|
37
|
+
groupId: 'identity',
|
|
38
|
+
dataSource: SOFTWARE_REQUIREMENT_KINDS.map((value) => ({
|
|
39
|
+
value,
|
|
40
|
+
text: `@${RootConfig.config.i18n}:terms.requirement-kind.${value}`,
|
|
41
|
+
})),
|
|
42
|
+
}),
|
|
43
|
+
softwareTextProperty({
|
|
44
|
+
name: 'statement',
|
|
45
|
+
title: `@${i18n}.fields.statement.title`,
|
|
46
|
+
description: `@${i18n}.fields.statement.description`,
|
|
47
|
+
groupId: 'identity',
|
|
48
|
+
required: true,
|
|
49
|
+
large: true,
|
|
50
|
+
}),
|
|
51
|
+
softwareSelectProperty({
|
|
52
|
+
name: 'priority',
|
|
53
|
+
title: `@${i18n}.fields.priority.title`,
|
|
54
|
+
description: `@${i18n}.fields.priority.description`,
|
|
55
|
+
groupId: 'identity',
|
|
56
|
+
dataSource: SOFTWARE_MOSCOW_PRIORITIES.map((value) => ({
|
|
57
|
+
value,
|
|
58
|
+
text: `@${RootConfig.config.i18n}:terms.moscow-priority.${value}`,
|
|
59
|
+
})),
|
|
60
|
+
}),
|
|
61
|
+
softwareTextProperty({
|
|
62
|
+
name: 'rationale',
|
|
63
|
+
title: `@${i18n}.fields.rationale.title`,
|
|
64
|
+
description: `@${i18n}.fields.rationale.description`,
|
|
65
|
+
groupId: 'identity',
|
|
66
|
+
large: true,
|
|
67
|
+
}),
|
|
68
|
+
softwareSelectProperty({
|
|
69
|
+
name: 'verificationMethod',
|
|
70
|
+
title: `@${i18n}.fields.verification-method.title`,
|
|
71
|
+
description: `@${i18n}.fields.verification-method.description`,
|
|
72
|
+
groupId: 'identity',
|
|
73
|
+
dataSource: SOFTWARE_VERIFICATION_METHODS.map((value) => ({
|
|
74
|
+
value,
|
|
75
|
+
text: `@${RootConfig.config.i18n}:terms.verification-method.${value}`,
|
|
76
|
+
})),
|
|
77
|
+
}),
|
|
78
|
+
],
|
|
79
|
+
columns: ['scopedId', 'title', 'kind', 'priority', 'needsReview'],
|
|
80
|
+
omitOnCreate: ['scopeVersionId'],
|
|
81
|
+
relatedEntities: [softwareChildRelated('acceptanceCriterion', ['statement', 'needsReview'], 'requirementId')],
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { softwareRequirementFactory };
|
|
86
|
+
//# sourceMappingURL=acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-software-management-client-contracts-requirement.entity-DKr-En_J.mjs","sources":["../../../../libs/modules/software-management/contracts/src/entities/requirement/requirement.entity.ts"],"sourcesContent":["import {\n createSoftwareLinkedEntity,\n softwareChildRelated,\n softwareLookupProperty,\n softwareSelectProperty,\n softwareTextProperty,\n} from '../software-entity.util';\nimport { RootConfig } from '../../root-config';\nimport {\n SOFTWARE_MOSCOW_PRIORITIES,\n SOFTWARE_REQUIREMENT_KINDS,\n SOFTWARE_VERIFICATION_METHODS,\n} from '../../software-provenance.constants';\n\nexport async function softwareRequirementFactory() {\n const i18n = `${RootConfig.config.i18n}:entities.requirement`;\n return createSoftwareLinkedEntity({\n entityKey: 'requirement',\n i18nKey: 'requirement',\n searchTags: ['requirement', 'نیازمندی'],\n extraProperties: [\n softwareLookupProperty({\n name: 'scopeItemId',\n title: `@${i18n}.fields.scope-item.title`,\n description: `@${i18n}.fields.scope-item.description`,\n groupId: 'identity',\n entity: RootConfig.entities.scopeItem.source,\n textField: 'title',\n }),\n softwareTextProperty({\n name: 'scopeVersionId', reference: true,\n title: `@${i18n}.fields.scope-version.title`,\n description: `@${i18n}.fields.scope-version.description`,\n groupId: 'identity',\n readonly: true,\n }),\n softwareTextProperty({\n name: 'scopedId',\n title: `@${i18n}.fields.scoped-id.title`,\n description: `@${i18n}.fields.scoped-id.description`,\n groupId: 'identity',\n }),\n softwareTextProperty({ name: 'title', title: `@${i18n}.fields.title.title`, groupId: 'identity', required: true }),\n softwareSelectProperty({\n name: 'kind',\n title: `@${i18n}.fields.kind.title`,\n description: `@${i18n}.fields.kind.description`,\n groupId: 'identity',\n dataSource: SOFTWARE_REQUIREMENT_KINDS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.requirement-kind.${value}`,\n })),\n }),\n softwareTextProperty({\n name: 'statement',\n title: `@${i18n}.fields.statement.title`,\n description: `@${i18n}.fields.statement.description`,\n groupId: 'identity',\n required: true,\n large: true,\n }),\n softwareSelectProperty({\n name: 'priority',\n title: `@${i18n}.fields.priority.title`,\n description: `@${i18n}.fields.priority.description`,\n groupId: 'identity',\n dataSource: SOFTWARE_MOSCOW_PRIORITIES.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.moscow-priority.${value}`,\n })),\n }),\n softwareTextProperty({\n name: 'rationale',\n title: `@${i18n}.fields.rationale.title`,\n description: `@${i18n}.fields.rationale.description`,\n groupId: 'identity',\n large: true,\n }),\n softwareSelectProperty({\n name: 'verificationMethod',\n title: `@${i18n}.fields.verification-method.title`,\n description: `@${i18n}.fields.verification-method.description`,\n groupId: 'identity',\n dataSource: SOFTWARE_VERIFICATION_METHODS.map((value) => ({\n value,\n text: `@${RootConfig.config.i18n}:terms.verification-method.${value}`,\n })),\n }),\n ],\n columns: ['scopedId', 'title', 'kind', 'priority', 'needsReview'],\n omitOnCreate: ['scopeVersionId'],\n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