@puzzlin/models 3.27.1 → 3.27.2
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/dist/apps/platform/artefacts/inputs/create-artefact-state.input.d.ts +8 -0
- package/dist/apps/platform/artefacts/inputs/create-artefact-state.input.d.ts.map +1 -0
- package/dist/apps/platform/artefacts/inputs/{create-artefact-metrics.input.js → create-artefact-state.input.js} +16 -9
- package/dist/apps/platform/artefacts/inputs/create-artefact-state.input.js.map +1 -0
- package/dist/apps/platform/artefacts/inputs/create-artefact.input.d.ts +3 -4
- package/dist/apps/platform/artefacts/inputs/create-artefact.input.d.ts.map +1 -1
- package/dist/apps/platform/artefacts/inputs/create-artefact.input.js +4 -10
- package/dist/apps/platform/artefacts/inputs/create-artefact.input.js.map +1 -1
- package/dist/apps/platform/artefacts/inputs/index.d.ts +2 -2
- package/dist/apps/platform/artefacts/inputs/index.d.ts.map +1 -1
- package/dist/apps/platform/artefacts/inputs/index.js +2 -2
- package/dist/apps/platform/artefacts/inputs/index.js.map +1 -1
- package/dist/apps/platform/artefacts/inputs/update-artefact-state.input.d.ts +4 -0
- package/dist/apps/platform/artefacts/inputs/update-artefact-state.input.d.ts.map +1 -0
- package/dist/apps/platform/artefacts/inputs/{update-artefact-metrics.input.js → update-artefact-state.input.js} +7 -7
- package/dist/apps/platform/artefacts/inputs/update-artefact-state.input.js.map +1 -0
- package/dist/apps/platform/artefacts/inputs/update-artefact.input.d.ts +2 -4
- package/dist/apps/platform/artefacts/inputs/update-artefact.input.d.ts.map +1 -1
- package/dist/apps/platform/artefacts/inputs/update-artefact.input.js +4 -11
- package/dist/apps/platform/artefacts/inputs/update-artefact.input.js.map +1 -1
- package/dist/apps/platform/artefacts/objects/artefact-state.object.d.ts +12 -0
- package/dist/apps/platform/artefacts/objects/artefact-state.object.d.ts.map +1 -0
- package/dist/apps/platform/artefacts/objects/{artefact-metrics.object.js → artefact-state.object.js} +26 -10
- package/dist/apps/platform/artefacts/objects/artefact-state.object.js.map +1 -0
- package/dist/apps/platform/artefacts/objects/artefact.object.d.ts +3 -4
- package/dist/apps/platform/artefacts/objects/artefact.object.d.ts.map +1 -1
- package/dist/apps/platform/artefacts/objects/artefact.object.js +9 -13
- package/dist/apps/platform/artefacts/objects/artefact.object.js.map +1 -1
- package/dist/apps/platform/artefacts/objects/index.d.ts +1 -1
- package/dist/apps/platform/artefacts/objects/index.d.ts.map +1 -1
- package/dist/apps/platform/artefacts/objects/index.js +1 -1
- package/dist/apps/platform/artefacts/objects/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/apps/platform/artefacts/inputs/create-artefact-metrics.input.d.ts +0 -6
- package/dist/apps/platform/artefacts/inputs/create-artefact-metrics.input.d.ts.map +0 -1
- package/dist/apps/platform/artefacts/inputs/create-artefact-metrics.input.js.map +0 -1
- package/dist/apps/platform/artefacts/inputs/update-artefact-metrics.input.d.ts +0 -4
- package/dist/apps/platform/artefacts/inputs/update-artefact-metrics.input.d.ts.map +0 -1
- package/dist/apps/platform/artefacts/inputs/update-artefact-metrics.input.js.map +0 -1
- package/dist/apps/platform/artefacts/objects/artefact-metrics.object.d.ts +0 -6
- package/dist/apps/platform/artefacts/objects/artefact-metrics.object.d.ts.map +0 -1
- package/dist/apps/platform/artefacts/objects/artefact-metrics.object.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-artefact-state.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/create-artefact-state.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,qBACa,wBAAwB;IAMnC,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAOzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -9,12 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CreateArtefactStateInput = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const enums_1 = require("@puzzlin/enums");
|
|
14
15
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
let
|
|
16
|
+
let CreateArtefactStateInput = class CreateArtefactStateInput {
|
|
16
17
|
};
|
|
17
|
-
exports.
|
|
18
|
+
exports.CreateArtefactStateInput = CreateArtefactStateInput;
|
|
18
19
|
__decorate([
|
|
19
20
|
(0, graphql_1.Field)(() => graphql_1.Int, {
|
|
20
21
|
nullable: true,
|
|
@@ -22,7 +23,7 @@ __decorate([
|
|
|
22
23
|
(0, class_validator_1.Min)(-3),
|
|
23
24
|
(0, class_validator_1.Max)(3),
|
|
24
25
|
__metadata("design:type", Number)
|
|
25
|
-
],
|
|
26
|
+
], CreateArtefactStateInput.prototype, "alignment", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, graphql_1.Field)(() => graphql_1.Int, {
|
|
28
29
|
nullable: true,
|
|
@@ -30,7 +31,13 @@ __decorate([
|
|
|
30
31
|
(0, class_validator_1.Min)(-3),
|
|
31
32
|
(0, class_validator_1.Max)(3),
|
|
32
33
|
__metadata("design:type", Number)
|
|
33
|
-
],
|
|
34
|
+
], CreateArtefactStateInput.prototype, "clarity", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, graphql_1.Field)(() => [enums_1.EmotionEnum], {
|
|
37
|
+
nullable: true,
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], CreateArtefactStateInput.prototype, "emotions", void 0);
|
|
34
41
|
__decorate([
|
|
35
42
|
(0, graphql_1.Field)(() => graphql_1.Int, {
|
|
36
43
|
nullable: true,
|
|
@@ -38,8 +45,8 @@ __decorate([
|
|
|
38
45
|
(0, class_validator_1.Min)(-3),
|
|
39
46
|
(0, class_validator_1.Max)(3),
|
|
40
47
|
__metadata("design:type", Number)
|
|
41
|
-
],
|
|
42
|
-
exports.
|
|
48
|
+
], CreateArtefactStateInput.prototype, "energy", void 0);
|
|
49
|
+
exports.CreateArtefactStateInput = CreateArtefactStateInput = __decorate([
|
|
43
50
|
(0, graphql_1.InputType)()
|
|
44
|
-
],
|
|
45
|
-
//# sourceMappingURL=create-artefact-
|
|
51
|
+
], CreateArtefactStateInput);
|
|
52
|
+
//# sourceMappingURL=create-artefact-state.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-artefact-state.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/create-artefact-state.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,0CAA6C;AAC7C,qDAA2C;AAGpC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CA0BpC,CAAA;AA1BY,4DAAwB;AAMnC;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,qBAAG,EAAC,CAAC,CAAC,CAAC;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;2DACY;AAOnB;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,qBAAG,EAAC,CAAC,CAAC,CAAC;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;yDACU;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,mBAAW,CAAC,EAAE;QAC1B,QAAQ,EAAE,IAAI;KACf,CAAC;;0DACuB;AAOzB;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,qBAAG,EAAC,CAAC,CAAC,CAAC;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;wDACS;mCAzBL,wBAAwB;IADpC,IAAA,mBAAS,GAAE;GACC,wBAAwB,CA0BpC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { CreateAssetBackedNodeInput } from '../../../../apps/platform/assets';
|
|
2
|
-
import { ArtefactKindEnum
|
|
3
|
-
import {
|
|
2
|
+
import { ArtefactKindEnum } from '@puzzlin/enums';
|
|
3
|
+
import { CreateArtefactStateInput } from './create-artefact-state.input';
|
|
4
4
|
export declare class CreateArtefactInput extends CreateAssetBackedNodeInput {
|
|
5
5
|
anchoredAt: string;
|
|
6
6
|
body?: string;
|
|
7
7
|
kind: ArtefactKindEnum;
|
|
8
|
-
|
|
9
|
-
metrics?: CreateArtefactMetricsInput;
|
|
8
|
+
state?: CreateArtefactStateInput;
|
|
10
9
|
relatedAssetId?: string;
|
|
11
10
|
title: string;
|
|
12
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-artefact.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/create-artefact.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"create-artefact.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/create-artefact.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAGpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,qBACa,mBAAoB,SAAQ,0BAA0B;IAEjE,UAAU,EAAE,MAAM,CAAC;IAKnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,gBAAgB,CAAC;IAKvB,KAAK,CAAC,EAAE,wBAAwB,CAAC;IAKjC,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -15,7 +15,7 @@ const utils_1 = require("../../../../utils");
|
|
|
15
15
|
const graphql_1 = require("@nestjs/graphql");
|
|
16
16
|
const enums_1 = require("@puzzlin/enums");
|
|
17
17
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
18
|
-
const
|
|
18
|
+
const create_artefact_state_input_1 = require("./create-artefact-state.input");
|
|
19
19
|
let CreateArtefactInput = class CreateArtefactInput extends assets_1.CreateAssetBackedNodeInput {
|
|
20
20
|
};
|
|
21
21
|
exports.CreateArtefactInput = CreateArtefactInput;
|
|
@@ -34,17 +34,11 @@ __decorate([
|
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], CreateArtefactInput.prototype, "kind", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
-
(0, graphql_1.Field)(() =>
|
|
37
|
+
(0, graphql_1.Field)(() => create_artefact_state_input_1.CreateArtefactStateInput, {
|
|
38
38
|
nullable: true,
|
|
39
39
|
}),
|
|
40
|
-
__metadata("design:type",
|
|
41
|
-
], CreateArtefactInput.prototype, "
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, graphql_1.Field)(() => create_artefact_metrics_input_1.CreateArtefactMetricsInput, {
|
|
44
|
-
nullable: true,
|
|
45
|
-
}),
|
|
46
|
-
__metadata("design:type", create_artefact_metrics_input_1.CreateArtefactMetricsInput)
|
|
47
|
-
], CreateArtefactInput.prototype, "metrics", void 0);
|
|
40
|
+
__metadata("design:type", create_artefact_state_input_1.CreateArtefactStateInput)
|
|
41
|
+
], CreateArtefactInput.prototype, "state", void 0);
|
|
48
42
|
__decorate([
|
|
49
43
|
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
50
44
|
nullable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-artefact.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/create-artefact.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-artefact.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/create-artefact.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAoE;AACpE,mCAAsD;AACtD,6CAAuD;AACvD,0CAAkD;AAClD,qDAAyD;AACzD,+EAAyE;AAGlE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,mCAA0B;CAwBlE,CAAA;AAxBY,kDAAmB;AAE9B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;uDACtB;AAKnB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,EAAE;QACnC,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACY;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;;iDACP;AAKvB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sDAAwB,EAAE;QACrC,QAAQ,EAAE,IAAI;KACf,CAAC;8BACM,sDAAwB;kDAAC;AAKjC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;2DACsB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,CAAC;;kDACtB;8BAvBH,mBAAmB;IAD/B,IAAA,mBAAS,GAAE;GACC,mBAAmB,CAwB/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './create-artefact-
|
|
1
|
+
export * from './create-artefact-state.input';
|
|
2
2
|
export * from './create-artefact.input';
|
|
3
3
|
export * from './delete-artefact.input';
|
|
4
|
-
export * from './update-artefact-
|
|
4
|
+
export * from './update-artefact-state.input';
|
|
5
5
|
export * from './update-artefact.input';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC"}
|
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./create-artefact-
|
|
17
|
+
__exportStar(require("./create-artefact-state.input"), exports);
|
|
18
18
|
__exportStar(require("./create-artefact.input"), exports);
|
|
19
19
|
__exportStar(require("./delete-artefact.input"), exports);
|
|
20
|
-
__exportStar(require("./update-artefact-
|
|
20
|
+
__exportStar(require("./update-artefact-state.input"), exports);
|
|
21
21
|
__exportStar(require("./update-artefact.input"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,gEAA8C;AAC9C,0DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-artefact-state.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/update-artefact-state.input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,qBACa,wBAAyB,SAAQ,wBAAwB;CAAG"}
|
|
@@ -6,13 +6,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.UpdateArtefactStateInput = void 0;
|
|
10
10
|
const graphql_1 = require("@nestjs/graphql");
|
|
11
|
-
const
|
|
12
|
-
let
|
|
11
|
+
const create_artefact_state_input_1 = require("./create-artefact-state.input");
|
|
12
|
+
let UpdateArtefactStateInput = class UpdateArtefactStateInput extends create_artefact_state_input_1.CreateArtefactStateInput {
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
14
|
+
exports.UpdateArtefactStateInput = UpdateArtefactStateInput;
|
|
15
|
+
exports.UpdateArtefactStateInput = UpdateArtefactStateInput = __decorate([
|
|
16
16
|
(0, graphql_1.InputType)()
|
|
17
|
-
],
|
|
18
|
-
//# sourceMappingURL=update-artefact-
|
|
17
|
+
], UpdateArtefactStateInput);
|
|
18
|
+
//# sourceMappingURL=update-artefact-state.input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-artefact-state.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/update-artefact-state.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4C;AAC5C,+EAAyE;AAGlE,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,sDAAwB;CAAG,CAAA;AAA5D,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAS,GAAE;GACC,wBAAwB,CAAoC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { NodeInput } from '../../../../shared';
|
|
2
|
-
import {
|
|
3
|
-
import { UpdateArtefactMetricsInput } from './update-artefact-metrics.input';
|
|
2
|
+
import { UpdateArtefactStateInput } from './update-artefact-state.input';
|
|
4
3
|
export declare class UpdateArtefactInput extends NodeInput {
|
|
5
4
|
anchoredAt?: string;
|
|
6
5
|
body?: string;
|
|
7
|
-
|
|
8
|
-
metrics?: UpdateArtefactMetricsInput;
|
|
6
|
+
state?: UpdateArtefactStateInput;
|
|
9
7
|
title?: string;
|
|
10
8
|
}
|
|
11
9
|
//# sourceMappingURL=update-artefact.input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-artefact.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/update-artefact.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"update-artefact.input.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/update-artefact.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,qBACa,mBAAoB,SAAQ,SAAS;IAIhD,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,KAAK,CAAC,EAAE,wBAAwB,CAAC;IAKjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -13,9 +13,8 @@ exports.UpdateArtefactInput = void 0;
|
|
|
13
13
|
const shared_1 = require("../../../../shared");
|
|
14
14
|
const utils_1 = require("../../../../utils");
|
|
15
15
|
const graphql_1 = require("@nestjs/graphql");
|
|
16
|
-
const enums_1 = require("@puzzlin/enums");
|
|
17
16
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
18
|
-
const
|
|
17
|
+
const update_artefact_state_input_1 = require("./update-artefact-state.input");
|
|
19
18
|
let UpdateArtefactInput = class UpdateArtefactInput extends shared_1.NodeInput {
|
|
20
19
|
};
|
|
21
20
|
exports.UpdateArtefactInput = UpdateArtefactInput;
|
|
@@ -32,17 +31,11 @@ __decorate([
|
|
|
32
31
|
__metadata("design:type", String)
|
|
33
32
|
], UpdateArtefactInput.prototype, "body", void 0);
|
|
34
33
|
__decorate([
|
|
35
|
-
(0, graphql_1.Field)(() =>
|
|
34
|
+
(0, graphql_1.Field)(() => update_artefact_state_input_1.UpdateArtefactStateInput, {
|
|
36
35
|
nullable: true,
|
|
37
36
|
}),
|
|
38
|
-
__metadata("design:type",
|
|
39
|
-
], UpdateArtefactInput.prototype, "
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, graphql_1.Field)(() => update_artefact_metrics_input_1.UpdateArtefactMetricsInput, {
|
|
42
|
-
nullable: true,
|
|
43
|
-
}),
|
|
44
|
-
__metadata("design:type", update_artefact_metrics_input_1.UpdateArtefactMetricsInput)
|
|
45
|
-
], UpdateArtefactInput.prototype, "metrics", void 0);
|
|
37
|
+
__metadata("design:type", update_artefact_state_input_1.UpdateArtefactStateInput)
|
|
38
|
+
], UpdateArtefactInput.prototype, "state", void 0);
|
|
46
39
|
__decorate([
|
|
47
40
|
(0, graphql_1.Field)(() => graphql_scalars_1.NonEmptyStringResolver, {
|
|
48
41
|
nullable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-artefact.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/update-artefact.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqC;AACrC,mCAAsD;AACtD,6CAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"update-artefact.input.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/inputs/update-artefact.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqC;AACrC,mCAAsD;AACtD,6CAAmD;AACnD,qDAAyD;AACzD,+EAAyE;AAGlE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,kBAAS;CAoBjD,CAAA;AApBY,kDAAmB;AAI9B;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,mCAA2B,EAAE;QACxC,QAAQ,EAAE,IAAI;KACf,CAAC;;uDACkB;AAKpB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,EAAE;QACnC,QAAQ,EAAE,IAAI;KACf,CAAC;;iDACY;AAKd;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sDAAwB,EAAE;QACrC,QAAQ,EAAE,IAAI;KACf,CAAC;8BACM,sDAAwB;kDAAC;AAKjC;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,EAAE;QACnC,QAAQ,EAAE,IAAI;KACf,CAAC;;kDACa;8BAnBJ,mBAAmB;IAD/B,IAAA,mBAAS,GAAE;GACC,mBAAmB,CAoB/B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Node, Timestamp } from '../../../../shared';
|
|
2
|
+
import { EmotionEnum } from '@puzzlin/enums';
|
|
3
|
+
declare const ArtefactState_base: import("@nestjs/common").Type<Node & Timestamp>;
|
|
4
|
+
export declare class ArtefactState extends ArtefactState_base {
|
|
5
|
+
artefactId: string;
|
|
6
|
+
alignment?: number;
|
|
7
|
+
clarity?: number;
|
|
8
|
+
emotions?: EmotionEnum[];
|
|
9
|
+
energy?: number;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=artefact-state.object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artefact-state.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/artefact-state.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;AAE7C,qBAGa,aAAc,SAAQ,kBAAiC;IAIlE,UAAU,EAAE,MAAM,CAAC;IAMnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAMzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/apps/platform/artefacts/objects/{artefact-metrics.object.js → artefact-state.object.js}
RENAMED
|
@@ -9,33 +9,49 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ArtefactState = void 0;
|
|
13
|
+
const shared_1 = require("../../../../shared");
|
|
13
14
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
|
|
15
|
+
const enums_1 = require("@puzzlin/enums");
|
|
16
|
+
let ArtefactState = class ArtefactState extends (0, graphql_1.IntersectionType)(shared_1.Node, shared_1.Timestamp) {
|
|
15
17
|
};
|
|
16
|
-
exports.
|
|
18
|
+
exports.ArtefactState = ArtefactState;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, graphql_1.Field)(() => graphql_1.ID, {
|
|
21
|
+
description: 'ID of the owning artefact.',
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ArtefactState.prototype, "artefactId", void 0);
|
|
17
25
|
__decorate([
|
|
18
26
|
(0, graphql_1.Field)(() => graphql_1.Int, {
|
|
19
27
|
description: 'Alignment level from Off to Aligned.',
|
|
20
28
|
nullable: true,
|
|
21
29
|
}),
|
|
22
30
|
__metadata("design:type", Number)
|
|
23
|
-
],
|
|
31
|
+
], ArtefactState.prototype, "alignment", void 0);
|
|
24
32
|
__decorate([
|
|
25
33
|
(0, graphql_1.Field)(() => graphql_1.Int, {
|
|
26
34
|
description: 'Clarity level from Foggy to Clear.',
|
|
27
35
|
nullable: true,
|
|
28
36
|
}),
|
|
29
37
|
__metadata("design:type", Number)
|
|
30
|
-
],
|
|
38
|
+
], ArtefactState.prototype, "clarity", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, graphql_1.Field)(() => [enums_1.EmotionEnum], {
|
|
41
|
+
nullable: true,
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], ArtefactState.prototype, "emotions", void 0);
|
|
31
45
|
__decorate([
|
|
32
46
|
(0, graphql_1.Field)(() => graphql_1.Int, {
|
|
33
47
|
description: 'Energy level from Drained to Alive.',
|
|
34
48
|
nullable: true,
|
|
35
49
|
}),
|
|
36
50
|
__metadata("design:type", Number)
|
|
37
|
-
],
|
|
38
|
-
exports.
|
|
39
|
-
(0, graphql_1.ObjectType)(
|
|
40
|
-
|
|
41
|
-
|
|
51
|
+
], ArtefactState.prototype, "energy", void 0);
|
|
52
|
+
exports.ArtefactState = ArtefactState = __decorate([
|
|
53
|
+
(0, graphql_1.ObjectType)({
|
|
54
|
+
implements: shared_1.Node,
|
|
55
|
+
})
|
|
56
|
+
], ArtefactState);
|
|
57
|
+
//# sourceMappingURL=artefact-state.object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artefact-state.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/artefact-state.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2C;AAC3C,6CAA+E;AAC/E,0CAA6C;AAKtC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,IAAA,0BAAgB,EAAC,aAAI,EAAE,kBAAS,CAAC;CA4BnE,CAAA;AA5BY,sCAAa;AAIxB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,WAAW,EAAE,4BAA4B;KAC1C,CAAC;;iDACiB;AAMnB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE;QAChB,WAAW,EAAE,sCAAsC;QACnD,QAAQ,EAAE,IAAI;KACf,CAAC;;gDACiB;AAMnB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE;QAChB,WAAW,EAAE,oCAAoC;QACjD,QAAQ,EAAE,IAAI;KACf,CAAC;;8CACe;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,mBAAW,CAAC,EAAE;QAC1B,QAAQ,EAAE,IAAI;KACf,CAAC;;+CACuB;AAMzB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,EAAE;QAChB,WAAW,EAAE,qCAAqC;QAClD,QAAQ,EAAE,IAAI;KACf,CAAC;;6CACc;wBA3BL,aAAa;IAHzB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,aAAI;KACjB,CAAC;GACW,aAAa,CA4BzB"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { Asset, AssetBackedNode } from '../../../../apps/platform/assets';
|
|
2
2
|
import { Timestamp } from '../../../../shared';
|
|
3
|
-
import { ArtefactKindEnum
|
|
4
|
-
import {
|
|
3
|
+
import { ArtefactKindEnum } from '@puzzlin/enums';
|
|
4
|
+
import { ArtefactState } from './artefact-state.object';
|
|
5
5
|
declare const Artefact_base: import("@nestjs/common").Type<AssetBackedNode & Timestamp>;
|
|
6
6
|
export declare class Artefact extends Artefact_base {
|
|
7
7
|
anchoredAt: string;
|
|
8
8
|
body?: string;
|
|
9
|
-
emotions?: EmotionEnum[];
|
|
10
9
|
kind: ArtefactKindEnum;
|
|
11
|
-
metrics?: ArtefactMetrics;
|
|
12
10
|
relatedAsset?: Asset;
|
|
13
11
|
relatedAssetId?: string;
|
|
12
|
+
state?: ArtefactState;
|
|
14
13
|
title: string;
|
|
15
14
|
}
|
|
16
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artefact.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/artefact.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"artefact.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/artefact.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;;AAExD,qBAGa,QAAS,SAAQ,aAA4C;IAExE,UAAU,EAAE,MAAM,CAAC;IAKnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,gBAAgB,CAAC;IAMvB,YAAY,CAAC,EAAE,KAAK,CAAC;IAKrB,cAAc,CAAC,EAAE,MAAM,CAAC;IAMxB,KAAK,CAAC,EAAE,aAAa,CAAC;IAGtB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -15,8 +15,9 @@ const shared_1 = require("../../../../shared");
|
|
|
15
15
|
const utils_1 = require("../../../../utils");
|
|
16
16
|
const graphql_1 = require("@nestjs/graphql");
|
|
17
17
|
const enums_1 = require("@puzzlin/enums");
|
|
18
|
+
const class_transformer_1 = require("class-transformer");
|
|
18
19
|
const graphql_scalars_1 = require("graphql-scalars");
|
|
19
|
-
const
|
|
20
|
+
const artefact_state_object_1 = require("./artefact-state.object");
|
|
20
21
|
let Artefact = class Artefact extends (0, graphql_1.IntersectionType)(assets_1.AssetBackedNode, shared_1.Timestamp) {
|
|
21
22
|
};
|
|
22
23
|
exports.Artefact = Artefact;
|
|
@@ -30,22 +31,10 @@ __decorate([
|
|
|
30
31
|
}),
|
|
31
32
|
__metadata("design:type", String)
|
|
32
33
|
], Artefact.prototype, "body", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, graphql_1.Field)(() => [enums_1.EmotionEnum], {
|
|
35
|
-
nullable: true,
|
|
36
|
-
}),
|
|
37
|
-
__metadata("design:type", Array)
|
|
38
|
-
], Artefact.prototype, "emotions", void 0);
|
|
39
34
|
__decorate([
|
|
40
35
|
(0, graphql_1.Field)(() => enums_1.ArtefactKindEnum),
|
|
41
36
|
__metadata("design:type", String)
|
|
42
37
|
], Artefact.prototype, "kind", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, graphql_1.Field)(() => artefact_metrics_object_1.ArtefactMetrics, {
|
|
45
|
-
nullable: true,
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", artefact_metrics_object_1.ArtefactMetrics)
|
|
48
|
-
], Artefact.prototype, "metrics", void 0);
|
|
49
38
|
__decorate([
|
|
50
39
|
(0, graphql_1.Field)(() => assets_1.Asset, {
|
|
51
40
|
nullable: true,
|
|
@@ -59,6 +48,13 @@ __decorate([
|
|
|
59
48
|
}),
|
|
60
49
|
__metadata("design:type", String)
|
|
61
50
|
], Artefact.prototype, "relatedAssetId", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, graphql_1.Field)(() => artefact_state_object_1.ArtefactState, {
|
|
53
|
+
nullable: true,
|
|
54
|
+
}),
|
|
55
|
+
(0, class_transformer_1.Type)(() => artefact_state_object_1.ArtefactState),
|
|
56
|
+
__metadata("design:type", artefact_state_object_1.ArtefactState)
|
|
57
|
+
], Artefact.prototype, "state", void 0);
|
|
62
58
|
__decorate([
|
|
63
59
|
(0, graphql_1.Field)(() => graphql_scalars_1.NonEmptyStringResolver),
|
|
64
60
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artefact.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/artefact.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAgE;AAChE,qCAAqC;AACrC,mCAAsD;AACtD,6CAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"artefact.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/artefact.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAgE;AAChE,qCAAqC;AACrC,mCAAsD;AACtD,6CAA0E;AAC1E,0CAAkD;AAClD,yDAAyC;AACzC,qDAAyD;AACzD,mEAAwD;AAKjD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,IAAA,0BAAgB,EAAC,wBAAe,EAAE,kBAAS,CAAC;CA+BzE,CAAA;AA/BY,4BAAQ;AAEnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;;4CACtB;AAKnB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,EAAE;QACnC,QAAQ,EAAE,IAAI;KACf,CAAC;;sCACY;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAgB,CAAC;;sCACP;AAMvB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,cAAK,EAAE;QAClB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4EAA4E;KAC1F,CAAC;8BACa,cAAK;8CAAC;AAKrB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;gDACsB;AAMxB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qCAAa,EAAE;QAC1B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qCAAa,CAAC;8BAClB,qCAAa;uCAAC;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAsB,CAAC;;uCACtB;mBA9BH,QAAQ;IAHpB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,wBAAe;KAC5B,CAAC;GACW,QAAQ,CA+BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC"}
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./artefact-
|
|
17
|
+
__exportStar(require("./artefact-state.object"), exports);
|
|
18
18
|
__exportStar(require("./artefact.object"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/platform/artefacts/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,oDAAkC"}
|