@puzzlin/models 4.31.0 → 4.32.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.
Files changed (66) hide show
  1. package/dist/apps/brain-imaging/big-five-eeg-reports/inputs/index.d.ts +1 -0
  2. package/dist/apps/brain-imaging/big-five-eeg-reports/inputs/index.d.ts.map +1 -1
  3. package/dist/apps/brain-imaging/big-five-eeg-reports/inputs/index.js +1 -0
  4. package/dist/apps/brain-imaging/big-five-eeg-reports/inputs/index.js.map +1 -1
  5. package/dist/apps/brain-imaging/big-five-eeg-reports/inputs/interpret-big-five-eeg-report.input.d.ts +6 -0
  6. package/dist/apps/brain-imaging/big-five-eeg-reports/inputs/interpret-big-five-eeg-report.input.d.ts.map +1 -0
  7. package/dist/apps/brain-imaging/big-five-eeg-reports/inputs/interpret-big-five-eeg-report.input.js +29 -0
  8. package/dist/apps/brain-imaging/big-five-eeg-reports/inputs/interpret-big-five-eeg-report.input.js.map +1 -0
  9. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-interpretation-content.object.d.ts +16 -0
  10. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-interpretation-content.object.d.ts.map +1 -0
  11. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-interpretation-content.object.js +65 -0
  12. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-interpretation-content.object.js.map +1 -0
  13. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-interpretation.object.d.ts +13 -0
  14. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-interpretation.object.d.ts.map +1 -0
  15. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-interpretation.object.js +51 -0
  16. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-interpretation.object.js.map +1 -0
  17. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-neuromarker-spotlight.object.d.ts +9 -0
  18. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-neuromarker-spotlight.object.d.ts.map +1 -0
  19. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-neuromarker-spotlight.object.js +42 -0
  20. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-neuromarker-spotlight.object.js.map +1 -0
  21. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-reflection.object.d.ts +5 -0
  22. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-reflection.object.d.ts.map +1 -0
  23. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-reflection.object.js +29 -0
  24. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-reflection.object.js.map +1 -0
  25. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-signature-adjective.object.d.ts +5 -0
  26. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-signature-adjective.object.d.ts.map +1 -0
  27. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-signature-adjective.object.js +29 -0
  28. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-signature-adjective.object.js.map +1 -0
  29. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-signature.object.d.ts +6 -0
  30. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-signature.object.d.ts.map +1 -0
  31. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-signature.object.js +32 -0
  32. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-signature.object.js.map +1 -0
  33. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-takeaway.object.d.ts +6 -0
  34. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-takeaway.object.d.ts.map +1 -0
  35. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-takeaway.object.js +33 -0
  36. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-takeaway.object.js.map +1 -0
  37. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast-reframe.object.d.ts +5 -0
  38. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast-reframe.object.d.ts.map +1 -0
  39. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast-reframe.object.js +28 -0
  40. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast-reframe.object.js.map +1 -0
  41. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast.object.d.ts +11 -0
  42. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast.object.d.ts.map +1 -0
  43. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast.object.js +48 -0
  44. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast.object.js.map +1 -0
  45. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report.object.d.ts +3 -1
  46. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report.object.d.ts.map +1 -1
  47. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report.object.js +10 -2
  48. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report.object.js.map +1 -1
  49. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/index.d.ts +9 -0
  50. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/index.d.ts.map +1 -1
  51. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/index.js +9 -0
  52. package/dist/apps/brain-imaging/big-five-eeg-reports/objects/index.js.map +1 -1
  53. package/dist/apps/brain-imaging/big-five-eeg-reports/payloads/index.d.ts +1 -0
  54. package/dist/apps/brain-imaging/big-five-eeg-reports/payloads/index.d.ts.map +1 -1
  55. package/dist/apps/brain-imaging/big-five-eeg-reports/payloads/index.js +1 -0
  56. package/dist/apps/brain-imaging/big-five-eeg-reports/payloads/index.js.map +1 -1
  57. package/dist/apps/brain-imaging/big-five-eeg-reports/payloads/interpret-big-five-eeg-report.payload.d.ts +5 -0
  58. package/dist/apps/brain-imaging/big-five-eeg-reports/payloads/interpret-big-five-eeg-report.payload.d.ts.map +1 -0
  59. package/dist/apps/brain-imaging/big-five-eeg-reports/payloads/interpret-big-five-eeg-report.payload.js +25 -0
  60. package/dist/apps/brain-imaging/big-five-eeg-reports/payloads/interpret-big-five-eeg-report.payload.js.map +1 -0
  61. package/dist/apps/platform/assets/objects/asset.object.d.ts +2 -1
  62. package/dist/apps/platform/assets/objects/asset.object.d.ts.map +1 -1
  63. package/dist/apps/platform/assets/objects/asset.object.js +6 -0
  64. package/dist/apps/platform/assets/objects/asset.object.js.map +1 -1
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +1 -1
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BigFiveEegReportTraitContrast = void 0;
13
+ const shared_1 = require("../../../../shared");
14
+ const graphql_1 = require("@nestjs/graphql");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const big_five_eeg_report_trait_contrast_reframe_object_1 = require("./big-five-eeg-report-trait-contrast-reframe.object");
17
+ let BigFiveEegReportTraitContrast = class BigFiveEegReportTraitContrast {
18
+ };
19
+ exports.BigFiveEegReportTraitContrast = BigFiveEegReportTraitContrast;
20
+ __decorate([
21
+ (0, graphql_1.Field)(() => String),
22
+ __metadata("design:type", String)
23
+ ], BigFiveEegReportTraitContrast.prototype, "eegPerception", void 0);
24
+ __decorate([
25
+ (0, graphql_1.Field)(() => String),
26
+ __metadata("design:type", String)
27
+ ], BigFiveEegReportTraitContrast.prototype, "insight", void 0);
28
+ __decorate([
29
+ (0, graphql_1.Field)(() => big_five_eeg_report_trait_contrast_reframe_object_1.BigFiveEegReportTraitContrastReframe),
30
+ (0, class_transformer_1.Type)(() => big_five_eeg_report_trait_contrast_reframe_object_1.BigFiveEegReportTraitContrastReframe),
31
+ __metadata("design:type", big_five_eeg_report_trait_contrast_reframe_object_1.BigFiveEegReportTraitContrastReframe)
32
+ ], BigFiveEegReportTraitContrast.prototype, "reframe", void 0);
33
+ __decorate([
34
+ (0, graphql_1.Field)(() => String),
35
+ __metadata("design:type", String)
36
+ ], BigFiveEegReportTraitContrast.prototype, "selfPerception", void 0);
37
+ __decorate([
38
+ (0, graphql_1.Field)(() => String),
39
+ __metadata("design:type", String)
40
+ ], BigFiveEegReportTraitContrast.prototype, "title", void 0);
41
+ __decorate([
42
+ (0, graphql_1.Field)(() => [shared_1.BigFiveTraitEnumScalar]),
43
+ __metadata("design:type", Array)
44
+ ], BigFiveEegReportTraitContrast.prototype, "traits", void 0);
45
+ exports.BigFiveEegReportTraitContrast = BigFiveEegReportTraitContrast = __decorate([
46
+ (0, graphql_1.ObjectType)()
47
+ ], BigFiveEegReportTraitContrast);
48
+ //# sourceMappingURL=big-five-eeg-report-trait-contrast.object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"big-five-eeg-report-trait-contrast.object.js","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report-trait-contrast.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkD;AAClD,6CAAoD;AAEpD,yDAAyC;AACzC,2HAA2G;AAGpG,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;CAmBzC,CAAA;AAnBY,sEAA6B;AAExC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oEACE;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8DACJ;AAIhB;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wFAAoC,CAAC;IACjD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wFAAoC,CAAC;8BACxC,wFAAoC;8DAAC;AAG9C;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qEACG;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4DACN;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,+BAAsB,CAAC,CAAC;;6DACX;wCAlBhB,6BAA6B;IADzC,IAAA,oBAAU,GAAE;GACA,6BAA6B,CAmBzC","sourcesContent":["import { BigFiveTraitEnumScalar } from '@/shared';\nimport { Field, ObjectType } from '@nestjs/graphql';\nimport { BigFiveTraitEnum } from '@puzzlin/enums';\nimport { Type } from 'class-transformer';\nimport { BigFiveEegReportTraitContrastReframe } from './big-five-eeg-report-trait-contrast-reframe.object';\n\n@ObjectType()\nexport class BigFiveEegReportTraitContrast {\n @Field(() => String)\n eegPerception: string;\n\n @Field(() => String)\n insight: string;\n\n @Field(() => BigFiveEegReportTraitContrastReframe)\n @Type(() => BigFiveEegReportTraitContrastReframe)\n reframe: BigFiveEegReportTraitContrastReframe;\n\n @Field(() => String)\n selfPerception: string;\n\n @Field(() => String)\n title: string;\n\n @Field(() => [BigFiveTraitEnumScalar])\n traits: BigFiveTraitEnum[];\n}\n"]}
@@ -1,9 +1,11 @@
1
1
  import { EegReport } from '../../../../apps/brain-imaging/eeg-reports/objects';
2
2
  import { EegReportTypeEnum } from '@puzzlin/enums';
3
3
  import { BigFiveEegAnalysis } from './big-five-eeg-analysis.object';
4
+ import { BigFiveEegReportInterpretation } from './big-five-eeg-report-interpretation.object';
4
5
  export declare class BigFiveEegReport extends EegReport {
5
6
  analysis?: BigFiveEegAnalysis | null;
6
- summaryPrompt?: string | null;
7
+ interpretation?: BigFiveEegReportInterpretation | null;
8
+ interpretationPrompt?: string | null;
7
9
  type: EegReportTypeEnum.EEG_REPORT_BIG_FIVE;
8
10
  }
9
11
  //# sourceMappingURL=big-five-eeg-report.object.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"big-five-eeg-report.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAKrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,qBAGa,gBAAiB,SAAQ,SAAS;IAK7C,QAAQ,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAMrC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG9B,IAAI,EAAE,iBAAiB,CAAC,mBAAmB,CAAC;CAC7C"}
1
+ {"version":3,"file":"big-five-eeg-report.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAKrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAE7F,qBAGa,gBAAiB,SAAQ,SAAS;IAK7C,QAAQ,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAMrC,cAAc,CAAC,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAMvD,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrC,IAAI,EAAE,iBAAiB,CAAC,mBAAmB,CAAC;CAC7C"}
@@ -18,6 +18,7 @@ const graphql_1 = require("@nestjs/graphql");
18
18
  const enums_1 = require("@puzzlin/enums");
19
19
  const class_transformer_1 = require("class-transformer");
20
20
  const big_five_eeg_analysis_object_1 = require("./big-five-eeg-analysis.object");
21
+ const big_five_eeg_report_interpretation_object_1 = require("./big-five-eeg-report-interpretation.object");
21
22
  let BigFiveEegReport = class BigFiveEegReport extends objects_1.EegReport {
22
23
  };
23
24
  exports.BigFiveEegReport = BigFiveEegReport;
@@ -28,13 +29,20 @@ __decorate([
28
29
  (0, class_transformer_1.Type)(() => big_five_eeg_analysis_object_1.BigFiveEegAnalysis),
29
30
  __metadata("design:type", Object)
30
31
  ], BigFiveEegReport.prototype, "analysis", void 0);
32
+ __decorate([
33
+ (0, graphql_1.Field)(() => big_five_eeg_report_interpretation_object_1.BigFiveEegReportInterpretation, {
34
+ nullable: true,
35
+ }),
36
+ (0, class_transformer_1.Type)(() => big_five_eeg_report_interpretation_object_1.BigFiveEegReportInterpretation),
37
+ __metadata("design:type", Object)
38
+ ], BigFiveEegReport.prototype, "interpretation", void 0);
31
39
  __decorate([
32
40
  (0, graphql_1.Field)(() => String, {
33
- description: 'Prompt used to generate a practitioner-facing summary for this report.',
41
+ description: 'Current prompt to generate a new interpretation for this report.',
34
42
  nullable: true,
35
43
  }),
36
44
  __metadata("design:type", Object)
37
- ], BigFiveEegReport.prototype, "summaryPrompt", void 0);
45
+ ], BigFiveEegReport.prototype, "interpretationPrompt", void 0);
38
46
  __decorate([
39
47
  (0, graphql_1.Field)(() => enums_1.EegReportTypeEnum),
40
48
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"big-five-eeg-report.object.js","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAqE;AACrE,sDAAsE;AACtE,8CAAkD;AAClD,qCAAgC;AAChC,6CAAoD;AACpD,0CAAmD;AACnD,yDAAyC;AACzC,iFAAoE;AAK7D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,mBAAS;CAe9C,CAAA;AAfY,4CAAgB;AAK3B;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iDAAkB,EAAE;QAC/B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iDAAkB,CAAC;;kDACM;AAMrC;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,wEAAwE;QACrF,QAAQ,EAAE,IAAI;KACf,CAAC;;uDAC4B;AAG9B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;8CACa;2BAdjC,gBAAgB;IAH5B,IAAA,oBAAU,EAAC,gCAAwB,CAAC,yBAAiB,CAAC,mBAAmB,CAAC,EAAE;QAC3E,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,aAAI,EAAE,mBAAS,EAAE,0BAAe,CAAC;KACrD,CAAC;GACW,gBAAgB,CAe5B","sourcesContent":["import { EegReport } from '@/apps/brain-imaging/eeg-reports/objects';\nimport { EEG_REPORT_RESOLVE_TYPES } from '@/apps/brain-imaging/utils';\nimport { AssetBackedNode } from '@/apps/platform';\nimport { Node } from '@/shared';\nimport { Field, ObjectType } from '@nestjs/graphql';\nimport { EegReportTypeEnum } from '@puzzlin/enums';\nimport { Type } from 'class-transformer';\nimport { BigFiveEegAnalysis } from './big-five-eeg-analysis.object';\n\n@ObjectType(EEG_REPORT_RESOLVE_TYPES[EegReportTypeEnum.EEG_REPORT_BIG_FIVE], {\n implements: () => [Node, EegReport, AssetBackedNode],\n})\nexport class BigFiveEegReport extends EegReport {\n @Field(() => BigFiveEegAnalysis, {\n nullable: true,\n })\n @Type(() => BigFiveEegAnalysis)\n analysis?: BigFiveEegAnalysis | null;\n\n @Field(() => String, {\n description: 'Prompt used to generate a practitioner-facing summary for this report.',\n nullable: true,\n })\n summaryPrompt?: string | null;\n\n @Field(() => EegReportTypeEnum)\n type: EegReportTypeEnum.EEG_REPORT_BIG_FIVE;\n}\n"]}
1
+ {"version":3,"file":"big-five-eeg-report.object.js","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/big-five-eeg-report.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAqE;AACrE,sDAAsE;AACtE,8CAAkD;AAClD,qCAAgC;AAChC,6CAAoD;AACpD,0CAAmD;AACnD,yDAAyC;AACzC,iFAAoE;AACpE,2GAA6F;AAKtF,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,mBAAS;CAqB9C,CAAA;AArBY,4CAAgB;AAK3B;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iDAAkB,EAAE;QAC/B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iDAAkB,CAAC;;kDACM;AAMrC;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0EAA8B,EAAE;QAC3C,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0EAA8B,CAAC;;wDACY;AAMvD;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,kEAAkE;QAC/E,QAAQ,EAAE,IAAI;KACf,CAAC;;8DACmC;AAGrC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,yBAAiB,CAAC;;8CACa;2BApBjC,gBAAgB;IAH5B,IAAA,oBAAU,EAAC,gCAAwB,CAAC,yBAAiB,CAAC,mBAAmB,CAAC,EAAE;QAC3E,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,aAAI,EAAE,mBAAS,EAAE,0BAAe,CAAC;KACrD,CAAC;GACW,gBAAgB,CAqB5B","sourcesContent":["import { EegReport } from '@/apps/brain-imaging/eeg-reports/objects';\nimport { EEG_REPORT_RESOLVE_TYPES } from '@/apps/brain-imaging/utils';\nimport { AssetBackedNode } from '@/apps/platform';\nimport { Node } from '@/shared';\nimport { Field, ObjectType } from '@nestjs/graphql';\nimport { EegReportTypeEnum } from '@puzzlin/enums';\nimport { Type } from 'class-transformer';\nimport { BigFiveEegAnalysis } from './big-five-eeg-analysis.object';\nimport { BigFiveEegReportInterpretation } from './big-five-eeg-report-interpretation.object';\n\n@ObjectType(EEG_REPORT_RESOLVE_TYPES[EegReportTypeEnum.EEG_REPORT_BIG_FIVE], {\n implements: () => [Node, EegReport, AssetBackedNode],\n})\nexport class BigFiveEegReport extends EegReport {\n @Field(() => BigFiveEegAnalysis, {\n nullable: true,\n })\n @Type(() => BigFiveEegAnalysis)\n analysis?: BigFiveEegAnalysis | null;\n\n @Field(() => BigFiveEegReportInterpretation, {\n nullable: true,\n })\n @Type(() => BigFiveEegReportInterpretation)\n interpretation?: BigFiveEegReportInterpretation | null;\n\n @Field(() => String, {\n description: 'Current prompt to generate a new interpretation for this report.',\n nullable: true,\n })\n interpretationPrompt?: string | null;\n\n @Field(() => EegReportTypeEnum)\n type: EegReportTypeEnum.EEG_REPORT_BIG_FIVE;\n}\n"]}
@@ -1,4 +1,13 @@
1
1
  export * from './big-five-eeg-analysis.object';
2
+ export * from './big-five-eeg-report-interpretation-content.object';
3
+ export * from './big-five-eeg-report-interpretation.object';
4
+ export * from './big-five-eeg-report-neuromarker-spotlight.object';
5
+ export * from './big-five-eeg-report-reflection.object';
6
+ export * from './big-five-eeg-report-signature-adjective.object';
7
+ export * from './big-five-eeg-report-signature.object';
8
+ export * from './big-five-eeg-report-takeaway.object';
9
+ export * from './big-five-eeg-report-trait-contrast-reframe.object';
10
+ export * from './big-five-eeg-report-trait-contrast.object';
2
11
  export * from './big-five-eeg-report.object';
3
12
  export * from './big-five-neuromarker-ensemble-candidate.object';
4
13
  export * from './big-five-neuromarker-ensemble-relationship-rules.object';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wCAAwC,CAAC;AACvD,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,kDAAkD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qDAAqD,CAAC;AACpE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC;AACnE,cAAc,yCAAyC,CAAC;AACxD,cAAc,kDAAkD,CAAC;AACjE,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qDAAqD,CAAC;AACpE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wCAAwC,CAAC;AACvD,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,kDAAkD,CAAC"}
@@ -15,6 +15,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./big-five-eeg-analysis.object"), exports);
18
+ __exportStar(require("./big-five-eeg-report-interpretation-content.object"), exports);
19
+ __exportStar(require("./big-five-eeg-report-interpretation.object"), exports);
20
+ __exportStar(require("./big-five-eeg-report-neuromarker-spotlight.object"), exports);
21
+ __exportStar(require("./big-five-eeg-report-reflection.object"), exports);
22
+ __exportStar(require("./big-five-eeg-report-signature-adjective.object"), exports);
23
+ __exportStar(require("./big-five-eeg-report-signature.object"), exports);
24
+ __exportStar(require("./big-five-eeg-report-takeaway.object"), exports);
25
+ __exportStar(require("./big-five-eeg-report-trait-contrast-reframe.object"), exports);
26
+ __exportStar(require("./big-five-eeg-report-trait-contrast.object"), exports);
18
27
  __exportStar(require("./big-five-eeg-report.object"), exports);
19
28
  __exportStar(require("./big-five-neuromarker-ensemble-candidate.object"), exports);
20
29
  __exportStar(require("./big-five-neuromarker-ensemble-relationship-rules.object"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,+DAA6C;AAC7C,mFAAiE;AACjE,4FAA0E;AAC1E,yEAAuD;AACvD,wFAAsE;AACtE,6FAA2E;AAC3E,0FAAwE;AACxE,mFAAiE","sourcesContent":["export * from './big-five-eeg-analysis.object';\nexport * from './big-five-eeg-report.object';\nexport * from './big-five-neuromarker-ensemble-candidate.object';\nexport * from './big-five-neuromarker-ensemble-relationship-rules.object';\nexport * from './big-five-neuromarker-ensemble.object';\nexport * from './big-five-trait-neuromarker-prediction-target.object';\nexport * from './big-five-trait-neuromarker-relationship-candidate.object';\nexport * from './big-five-trait-neuromarker-relationship-sample.object';\nexport * from './big-five-trait-neuromarker-relationship.object';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,sFAAoE;AACpE,8EAA4D;AAC5D,qFAAmE;AACnE,0EAAwD;AACxD,mFAAiE;AACjE,yEAAuD;AACvD,wEAAsD;AACtD,sFAAoE;AACpE,8EAA4D;AAC5D,+DAA6C;AAC7C,mFAAiE;AACjE,4FAA0E;AAC1E,yEAAuD;AACvD,wFAAsE;AACtE,6FAA2E;AAC3E,0FAAwE;AACxE,mFAAiE","sourcesContent":["export * from './big-five-eeg-analysis.object';\nexport * from './big-five-eeg-report-interpretation-content.object';\nexport * from './big-five-eeg-report-interpretation.object';\nexport * from './big-five-eeg-report-neuromarker-spotlight.object';\nexport * from './big-five-eeg-report-reflection.object';\nexport * from './big-five-eeg-report-signature-adjective.object';\nexport * from './big-five-eeg-report-signature.object';\nexport * from './big-five-eeg-report-takeaway.object';\nexport * from './big-five-eeg-report-trait-contrast-reframe.object';\nexport * from './big-five-eeg-report-trait-contrast.object';\nexport * from './big-five-eeg-report.object';\nexport * from './big-five-neuromarker-ensemble-candidate.object';\nexport * from './big-five-neuromarker-ensemble-relationship-rules.object';\nexport * from './big-five-neuromarker-ensemble.object';\nexport * from './big-five-trait-neuromarker-prediction-target.object';\nexport * from './big-five-trait-neuromarker-relationship-candidate.object';\nexport * from './big-five-trait-neuromarker-relationship-sample.object';\nexport * from './big-five-trait-neuromarker-relationship.object';\n"]}
@@ -1,4 +1,5 @@
1
1
  export * from './analyze-big-five-eeg-report.payload';
2
2
  export * from './big-five-eeg-analysis-event.payload';
3
3
  export * from './create-big-five-neuromarker-ensemble.payload';
4
+ export * from './interpret-big-five-eeg-report.payload';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/payloads/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/payloads/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,yCAAyC,CAAC"}
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./analyze-big-five-eeg-report.payload"), exports);
18
18
  __exportStar(require("./big-five-eeg-analysis-event.payload"), exports);
19
19
  __exportStar(require("./create-big-five-neuromarker-ensemble.payload"), exports);
20
+ __exportStar(require("./interpret-big-five-eeg-report.payload"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/payloads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,wEAAsD;AACtD,iFAA+D","sourcesContent":["export * from './analyze-big-five-eeg-report.payload';\nexport * from './big-five-eeg-analysis-event.payload';\nexport * from './create-big-five-neuromarker-ensemble.payload';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/payloads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,wEAAsD;AACtD,iFAA+D;AAC/D,0EAAwD","sourcesContent":["export * from './analyze-big-five-eeg-report.payload';\nexport * from './big-five-eeg-analysis-event.payload';\nexport * from './create-big-five-neuromarker-ensemble.payload';\nexport * from './interpret-big-five-eeg-report.payload';\n"]}
@@ -0,0 +1,5 @@
1
+ import { BigFiveEegReport } from '../objects';
2
+ export declare class InterpretBigFiveEegReportPayload {
3
+ report: BigFiveEegReport;
4
+ }
5
+ //# sourceMappingURL=interpret-big-five-eeg-report.payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interpret-big-five-eeg-report.payload.d.ts","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/payloads/interpret-big-five-eeg-report.payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,qBACa,gCAAgC;IAE3C,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.InterpretBigFiveEegReportPayload = void 0;
13
+ const graphql_1 = require("@nestjs/graphql");
14
+ const objects_1 = require("../objects");
15
+ let InterpretBigFiveEegReportPayload = class InterpretBigFiveEegReportPayload {
16
+ };
17
+ exports.InterpretBigFiveEegReportPayload = InterpretBigFiveEegReportPayload;
18
+ __decorate([
19
+ (0, graphql_1.Field)(() => objects_1.BigFiveEegReport),
20
+ __metadata("design:type", objects_1.BigFiveEegReport)
21
+ ], InterpretBigFiveEegReportPayload.prototype, "report", void 0);
22
+ exports.InterpretBigFiveEegReportPayload = InterpretBigFiveEegReportPayload = __decorate([
23
+ (0, graphql_1.ObjectType)()
24
+ ], InterpretBigFiveEegReportPayload);
25
+ //# sourceMappingURL=interpret-big-five-eeg-report.payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interpret-big-five-eeg-report.payload.js","sourceRoot":"","sources":["../../../../../src/apps/brain-imaging/big-five-eeg-reports/payloads/interpret-big-five-eeg-report.payload.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,wCAA8C;AAGvC,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;CAG5C,CAAA;AAHY,4EAAgC;AAE3C;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0BAAgB,CAAC;8BACtB,0BAAgB;gEAAC;2CAFd,gCAAgC;IAD5C,IAAA,oBAAU,GAAE;GACA,gCAAgC,CAG5C","sourcesContent":["import { Field, ObjectType } from '@nestjs/graphql';\nimport { BigFiveEegReport } from '../objects';\n\n@ObjectType()\nexport class InterpretBigFiveEegReportPayload {\n @Field(() => BigFiveEegReport)\n report: BigFiveEegReport;\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { CreditLedgerEntry } from '../../../../apps/platform/credits/objects';
2
2
  import { User } from '../../../../apps/platform/users/objects';
3
3
  import { Node, Timestamp } from '../../../../shared';
4
- import { AssetTagEnum, AssetTypeEnum, AssetVisibilityEnum } from '@puzzlin/enums';
4
+ import { AppLocaleEnum, AssetTagEnum, AssetTypeEnum, AssetVisibilityEnum } from '@puzzlin/enums';
5
5
  import { AssetAccess } from './asset-access.object';
6
6
  declare const Asset_base: import("@nestjs/common").Type<Node & Timestamp>;
7
7
  export declare class Asset extends Asset_base {
@@ -12,6 +12,7 @@ export declare class Asset extends Asset_base {
12
12
  creditsPrice: number;
13
13
  id: string;
14
14
  isPurchaseRequired: boolean;
15
+ locale?: AppLocaleEnum;
15
16
  owner?: User;
16
17
  ownerId: string;
17
18
  tags?: AssetTagEnum[];
@@ -1 +1 @@
1
- {"version":3,"file":"asset.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/assets/objects/asset.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGlF,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;AAEpD,qBAGa,KAAM,SAAQ,UAAiC;IAK1D,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAIzB,mBAAmB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAO1C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,YAAY,EAAE,MAAM,CAAC;IAKrB,EAAE,EAAE,MAAM,CAAC;IAGX,kBAAkB,EAAE,OAAO,CAAC;IAY5B,KAAK,CAAC,EAAE,IAAI,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAKhB,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;IAGtB,IAAI,EAAE,aAAa,CAAC;IAGpB,UAAU,EAAE,mBAAmB,CAAC;CACjC"}
1
+ {"version":3,"file":"asset.object.d.ts","sourceRoot":"","sources":["../../../../../src/apps/platform/assets/objects/asset.object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGjG,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;AAEpD,qBAGa,KAAM,SAAQ,UAAiC;IAK1D,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAIzB,mBAAmB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAO1C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,YAAY,EAAE,MAAM,CAAC;IAKrB,EAAE,EAAE,MAAM,CAAC;IAGX,kBAAkB,EAAE,OAAO,CAAC;IAK5B,MAAM,CAAC,EAAE,aAAa,CAAC;IAYvB,KAAK,CAAC,EAAE,IAAI,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAKhB,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;IAGtB,IAAI,EAAE,aAAa,CAAC;IAGpB,UAAU,EAAE,mBAAmB,CAAC;CACjC"}
@@ -61,6 +61,12 @@ __decorate([
61
61
  (0, graphql_1.Field)(() => Boolean),
62
62
  __metadata("design:type", Boolean)
63
63
  ], Asset.prototype, "isPurchaseRequired", void 0);
64
+ __decorate([
65
+ (0, graphql_1.Field)(() => enums_1.AppLocaleEnum, {
66
+ nullable: true,
67
+ }),
68
+ __metadata("design:type", String)
69
+ ], Asset.prototype, "locale", void 0);
64
70
  __decorate([
65
71
  (0, graphql_1.Field)(() => objects_2.User, {
66
72
  description: 'User who owns the asset.',
@@ -1 +1 @@
1
- {"version":3,"file":"asset.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/assets/objects/asset.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAoE;AACpE,2DAAqD;AACrD,qCAA2C;AAC3C,6CAA0E;AAC1E,0CAAkF;AAClF,yDAAyC;AACzC,qDAA2D;AAC3D,+DAAoD;AAK7C,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,IAAA,0BAAgB,EAAC,aAAI,EAAE,kBAAS,CAAC;CA2D3D,CAAA;AA3DY,sBAAK;AAKhB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,iCAAW,CAAC,EAAE;QAC1B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;;uCACC;AAIzB;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,2BAAiB,CAAC,CAAC;IAChC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAiB,CAAC;;kDACY;AAO1C;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,cAAI,EAAE;QACjB,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,cAAI,CAAC;8BACL,cAAI;wCAAC;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;0CACmB;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0CAAwB,CAAC;;2CACjB;AAKrB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,WAAW,EAAE,8BAA8B;KAC5C,CAAC;;iCACS;AAGX;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACO;AAY5B;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,cAAI,EAAE;QACjB,WAAW,EAAE,0BAA0B;KACxC,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,cAAI,CAAC;8BACT,cAAI;oCAAC;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;sCACA;AAKhB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oBAAY,CAAC,EAAE;QAC3B,QAAQ,EAAE,IAAI;KACf,CAAC;;mCACoB;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;;mCACP;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;yCACD;gBA1DrB,KAAK;IAHjB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,aAAI;KACjB,CAAC;GACW,KAAK,CA2DjB","sourcesContent":["import { CreditLedgerEntry } from '@/apps/platform/credits/objects';\nimport { User } from '@/apps/platform/users/objects';\nimport { Node, Timestamp } from '@/shared';\nimport { Field, ID, IntersectionType, ObjectType } from '@nestjs/graphql';\nimport { AssetTagEnum, AssetTypeEnum, AssetVisibilityEnum } from '@puzzlin/enums';\nimport { Type } from 'class-transformer';\nimport { NonNegativeFloatResolver } from 'graphql-scalars';\nimport { AssetAccess } from './asset-access.object';\n\n@ObjectType({\n implements: Node,\n})\nexport class Asset extends IntersectionType(Node, Timestamp) {\n @Field(() => [AssetAccess], {\n nullable: true,\n })\n @Type(() => AssetAccess)\n accesses?: AssetAccess[];\n\n @Field(() => [CreditLedgerEntry])\n @Type(() => CreditLedgerEntry)\n creditLedgerEntries?: CreditLedgerEntry[];\n\n @Field(() => User, {\n description: 'User who created the asset. Immutable.',\n nullable: true,\n })\n @Type(() => User)\n createdBy?: User;\n\n @Field(() => ID, {\n nullable: true,\n })\n createdById?: string;\n\n @Field(() => NonNegativeFloatResolver)\n creditsPrice: number;\n\n @Field(() => ID, {\n description: 'ID shared with owning asset.',\n })\n id: string;\n\n @Field(() => Boolean)\n isPurchaseRequired: boolean;\n\n // NOTE: AssetPurchase isn't required in an MVP, but it could help reporting/auditing on top of the credit ledger.\n // @Field(() => AssetPurchase, {\n // nullable: true\n // })\n // purchase?: AssetPurchase;\n\n @Field(() => User, {\n description: 'User who owns the asset.',\n })\n @Type(() => User)\n owner?: User;\n\n @Field(() => ID)\n ownerId: string;\n\n @Field(() => [AssetTagEnum], {\n nullable: true,\n })\n tags?: AssetTagEnum[];\n\n @Field(() => AssetTypeEnum)\n type: AssetTypeEnum;\n\n @Field(() => AssetVisibilityEnum)\n visibility: AssetVisibilityEnum;\n}\n"]}
1
+ {"version":3,"file":"asset.object.js","sourceRoot":"","sources":["../../../../../src/apps/platform/assets/objects/asset.object.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAoE;AACpE,2DAAqD;AACrD,qCAA2C;AAC3C,6CAA0E;AAC1E,0CAAiG;AACjG,yDAAyC;AACzC,qDAA2D;AAC3D,+DAAoD;AAK7C,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,IAAA,0BAAgB,EAAC,aAAI,EAAE,kBAAS,CAAC;CAgE3D,CAAA;AAhEY,sBAAK;AAKhB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,iCAAW,CAAC,EAAE;QAC1B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iCAAW,CAAC;;uCACC;AAIzB;IAFC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,2BAAiB,CAAC,CAAC;IAChC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAiB,CAAC;;kDACY;AAO1C;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,cAAI,EAAE;QACjB,WAAW,EAAE,wCAAwC;QACrD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,cAAI,CAAC;8BACL,cAAI;wCAAC;AAKjB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,QAAQ,EAAE,IAAI;KACf,CAAC;;0CACmB;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,0CAAwB,CAAC;;2CACjB;AAKrB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE;QACf,WAAW,EAAE,8BAA8B;KAC5C,CAAC;;iCACS;AAGX;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACO;AAK5B;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAa,EAAE;QAC1B,QAAQ,EAAE,IAAI;KACf,CAAC;;qCACqB;AAYvB;IAJC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,cAAI,EAAE;QACjB,WAAW,EAAE,0BAA0B;KACxC,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,cAAI,CAAC;8BACT,cAAI;oCAAC;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;sCACA;AAKhB;IAHC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oBAAY,CAAC,EAAE;QAC3B,QAAQ,EAAE,IAAI;KACf,CAAC;;mCACoB;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAa,CAAC;;mCACP;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;;yCACD;gBA/DrB,KAAK;IAHjB,IAAA,oBAAU,EAAC;QACV,UAAU,EAAE,aAAI;KACjB,CAAC;GACW,KAAK,CAgEjB","sourcesContent":["import { CreditLedgerEntry } from '@/apps/platform/credits/objects';\nimport { User } from '@/apps/platform/users/objects';\nimport { Node, Timestamp } from '@/shared';\nimport { Field, ID, IntersectionType, ObjectType } from '@nestjs/graphql';\nimport { AppLocaleEnum, AssetTagEnum, AssetTypeEnum, AssetVisibilityEnum } from '@puzzlin/enums';\nimport { Type } from 'class-transformer';\nimport { NonNegativeFloatResolver } from 'graphql-scalars';\nimport { AssetAccess } from './asset-access.object';\n\n@ObjectType({\n implements: Node,\n})\nexport class Asset extends IntersectionType(Node, Timestamp) {\n @Field(() => [AssetAccess], {\n nullable: true,\n })\n @Type(() => AssetAccess)\n accesses?: AssetAccess[];\n\n @Field(() => [CreditLedgerEntry])\n @Type(() => CreditLedgerEntry)\n creditLedgerEntries?: CreditLedgerEntry[];\n\n @Field(() => User, {\n description: 'User who created the asset. Immutable.',\n nullable: true,\n })\n @Type(() => User)\n createdBy?: User;\n\n @Field(() => ID, {\n nullable: true,\n })\n createdById?: string;\n\n @Field(() => NonNegativeFloatResolver)\n creditsPrice: number;\n\n @Field(() => ID, {\n description: 'ID shared with owning asset.',\n })\n id: string;\n\n @Field(() => Boolean)\n isPurchaseRequired: boolean;\n\n @Field(() => AppLocaleEnum, {\n nullable: true,\n })\n locale?: AppLocaleEnum;\n\n // NOTE: AssetPurchase isn't required in an MVP, but it could help reporting/auditing on top of the credit ledger.\n // @Field(() => AssetPurchase, {\n // nullable: true\n // })\n // purchase?: AssetPurchase;\n\n @Field(() => User, {\n description: 'User who owns the asset.',\n })\n @Type(() => User)\n owner?: User;\n\n @Field(() => ID)\n ownerId: string;\n\n @Field(() => [AssetTagEnum], {\n nullable: true,\n })\n tags?: AssetTagEnum[];\n\n @Field(() => AssetTypeEnum)\n type: AssetTypeEnum;\n\n @Field(() => AssetVisibilityEnum)\n visibility: AssetVisibilityEnum;\n}\n"]}