@edifice.io/collect-client-rest 0.1.0-develop-pedago.0.20260120100250

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 (128) hide show
  1. package/dist/browser/clients/collection.client.d.ts +11 -0
  2. package/dist/browser/clients/collection.client.js +34 -0
  3. package/dist/browser/clients/collection.client.js.map +1 -0
  4. package/dist/browser/clients/index.d.ts +2 -0
  5. package/dist/browser/clients/index.js +3 -0
  6. package/dist/browser/clients/index.js.map +1 -0
  7. package/dist/browser/clients/submission.client.d.ts +11 -0
  8. package/dist/browser/clients/submission.client.js +36 -0
  9. package/dist/browser/clients/submission.client.js.map +1 -0
  10. package/dist/browser/dtos/attachment.dto.d.ts +24 -0
  11. package/dist/browser/dtos/attachment.dto.js +127 -0
  12. package/dist/browser/dtos/attachment.dto.js.map +1 -0
  13. package/dist/browser/dtos/base.dto.d.ts +19 -0
  14. package/dist/browser/dtos/base.dto.js +89 -0
  15. package/dist/browser/dtos/base.dto.js.map +1 -0
  16. package/dist/browser/dtos/collection.dto.d.ts +33 -0
  17. package/dist/browser/dtos/collection.dto.js +202 -0
  18. package/dist/browser/dtos/collection.dto.js.map +1 -0
  19. package/dist/browser/dtos/index.d.ts +7 -0
  20. package/dist/browser/dtos/index.js +8 -0
  21. package/dist/browser/dtos/index.js.map +1 -0
  22. package/dist/browser/dtos/recipient.dto.d.ts +9 -0
  23. package/dist/browser/dtos/recipient.dto.js +46 -0
  24. package/dist/browser/dtos/recipient.dto.js.map +1 -0
  25. package/dist/browser/dtos/sharing.dto.d.ts +17 -0
  26. package/dist/browser/dtos/sharing.dto.js +85 -0
  27. package/dist/browser/dtos/sharing.dto.js.map +1 -0
  28. package/dist/browser/dtos/submission.dto.d.ts +49 -0
  29. package/dist/browser/dtos/submission.dto.js +213 -0
  30. package/dist/browser/dtos/submission.dto.js.map +1 -0
  31. package/dist/browser/dtos/user.dto.d.ts +6 -0
  32. package/dist/browser/dtos/user.dto.js +46 -0
  33. package/dist/browser/dtos/user.dto.js.map +1 -0
  34. package/dist/browser/index.d.ts +3 -0
  35. package/dist/browser/index.js +4 -0
  36. package/dist/browser/index.js.map +1 -0
  37. package/dist/browser/utils/index.d.ts +1 -0
  38. package/dist/browser/utils/index.js +2 -0
  39. package/dist/browser/utils/index.js.map +1 -0
  40. package/dist/browser/utils/rights.utils.d.ts +4 -0
  41. package/dist/browser/utils/rights.utils.js +5 -0
  42. package/dist/browser/utils/rights.utils.js.map +1 -0
  43. package/dist/node/clients/collection.client.d.ts +11 -0
  44. package/dist/node/clients/collection.client.js +38 -0
  45. package/dist/node/clients/collection.client.js.map +1 -0
  46. package/dist/node/clients/index.d.ts +2 -0
  47. package/dist/node/clients/index.js +19 -0
  48. package/dist/node/clients/index.js.map +1 -0
  49. package/dist/node/clients/submission.client.d.ts +11 -0
  50. package/dist/node/clients/submission.client.js +40 -0
  51. package/dist/node/clients/submission.client.js.map +1 -0
  52. package/dist/node/dtos/attachment.dto.d.ts +24 -0
  53. package/dist/node/dtos/attachment.dto.js +132 -0
  54. package/dist/node/dtos/attachment.dto.js.map +1 -0
  55. package/dist/node/dtos/base.dto.d.ts +19 -0
  56. package/dist/node/dtos/base.dto.js +95 -0
  57. package/dist/node/dtos/base.dto.js.map +1 -0
  58. package/dist/node/dtos/collection.dto.d.ts +33 -0
  59. package/dist/node/dtos/collection.dto.js +209 -0
  60. package/dist/node/dtos/collection.dto.js.map +1 -0
  61. package/dist/node/dtos/index.d.ts +7 -0
  62. package/dist/node/dtos/index.js +24 -0
  63. package/dist/node/dtos/index.js.map +1 -0
  64. package/dist/node/dtos/recipient.dto.d.ts +9 -0
  65. package/dist/node/dtos/recipient.dto.js +50 -0
  66. package/dist/node/dtos/recipient.dto.js.map +1 -0
  67. package/dist/node/dtos/sharing.dto.d.ts +17 -0
  68. package/dist/node/dtos/sharing.dto.js +90 -0
  69. package/dist/node/dtos/sharing.dto.js.map +1 -0
  70. package/dist/node/dtos/submission.dto.d.ts +49 -0
  71. package/dist/node/dtos/submission.dto.js +221 -0
  72. package/dist/node/dtos/submission.dto.js.map +1 -0
  73. package/dist/node/dtos/user.dto.d.ts +6 -0
  74. package/dist/node/dtos/user.dto.js +50 -0
  75. package/dist/node/dtos/user.dto.js.map +1 -0
  76. package/dist/node/index.d.ts +3 -0
  77. package/dist/node/index.js +21 -0
  78. package/dist/node/index.js.map +1 -0
  79. package/dist/node/utils/index.d.ts +1 -0
  80. package/dist/node/utils/index.js +18 -0
  81. package/dist/node/utils/index.js.map +1 -0
  82. package/dist/node/utils/rights.utils.d.ts +4 -0
  83. package/dist/node/utils/rights.utils.js +8 -0
  84. package/dist/node/utils/rights.utils.js.map +1 -0
  85. package/dist/react-native/clients/collection.client.d.ts +11 -0
  86. package/dist/react-native/clients/collection.client.js +34 -0
  87. package/dist/react-native/clients/collection.client.js.map +1 -0
  88. package/dist/react-native/clients/index.d.ts +2 -0
  89. package/dist/react-native/clients/index.js +3 -0
  90. package/dist/react-native/clients/index.js.map +1 -0
  91. package/dist/react-native/clients/submission.client.d.ts +11 -0
  92. package/dist/react-native/clients/submission.client.js +36 -0
  93. package/dist/react-native/clients/submission.client.js.map +1 -0
  94. package/dist/react-native/dtos/attachment.dto.d.ts +24 -0
  95. package/dist/react-native/dtos/attachment.dto.js +127 -0
  96. package/dist/react-native/dtos/attachment.dto.js.map +1 -0
  97. package/dist/react-native/dtos/base.dto.d.ts +19 -0
  98. package/dist/react-native/dtos/base.dto.js +89 -0
  99. package/dist/react-native/dtos/base.dto.js.map +1 -0
  100. package/dist/react-native/dtos/collection.dto.d.ts +33 -0
  101. package/dist/react-native/dtos/collection.dto.js +202 -0
  102. package/dist/react-native/dtos/collection.dto.js.map +1 -0
  103. package/dist/react-native/dtos/index.d.ts +7 -0
  104. package/dist/react-native/dtos/index.js +8 -0
  105. package/dist/react-native/dtos/index.js.map +1 -0
  106. package/dist/react-native/dtos/recipient.dto.d.ts +9 -0
  107. package/dist/react-native/dtos/recipient.dto.js +46 -0
  108. package/dist/react-native/dtos/recipient.dto.js.map +1 -0
  109. package/dist/react-native/dtos/sharing.dto.d.ts +17 -0
  110. package/dist/react-native/dtos/sharing.dto.js +85 -0
  111. package/dist/react-native/dtos/sharing.dto.js.map +1 -0
  112. package/dist/react-native/dtos/submission.dto.d.ts +49 -0
  113. package/dist/react-native/dtos/submission.dto.js +213 -0
  114. package/dist/react-native/dtos/submission.dto.js.map +1 -0
  115. package/dist/react-native/dtos/user.dto.d.ts +6 -0
  116. package/dist/react-native/dtos/user.dto.js +46 -0
  117. package/dist/react-native/dtos/user.dto.js.map +1 -0
  118. package/dist/react-native/index.d.ts +3 -0
  119. package/dist/react-native/index.js +4 -0
  120. package/dist/react-native/index.js.map +1 -0
  121. package/dist/react-native/utils/index.d.ts +1 -0
  122. package/dist/react-native/utils/index.js +2 -0
  123. package/dist/react-native/utils/index.js.map +1 -0
  124. package/dist/react-native/utils/rights.utils.d.ts +4 -0
  125. package/dist/react-native/utils/rights.utils.js +5 -0
  126. package/dist/react-native/utils/rights.utils.js.map +1 -0
  127. package/package.json +71 -0
  128. package/package.json.rn +15 -0
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubmissionClient = void 0;
4
+ const rest_client_base_1 = require("@edifice.io/rest-client-base");
5
+ class SubmissionClient extends rest_client_base_1.BaseApiClient {
6
+ constructor(options = {}) {
7
+ super(options);
8
+ }
9
+ async getSubmissions(collectionId, query, options) {
10
+ const queryParams = new URLSearchParams();
11
+ if (query?.page)
12
+ queryParams.append("page", query.page.toString());
13
+ if (query?.size)
14
+ queryParams.append("size", query.size.toString());
15
+ if (query?.sortBy)
16
+ queryParams.append("sortBy", query.sortBy);
17
+ if (query?.sortDirection)
18
+ queryParams.append("sortDirection", query.sortDirection);
19
+ if (query?.status)
20
+ queryParams.append("status", query.status);
21
+ return this.get(`/collections/${collectionId}/submissions`, undefined, options);
22
+ }
23
+ async getSubmission(collectionId, submissionId, options) {
24
+ return this.get(`/collections/${collectionId}/submissions/${submissionId}`, undefined, options);
25
+ }
26
+ async createSubmission(collectionId, data, options) {
27
+ return this.post(`/collections/${collectionId}/submissions`, data, undefined, options);
28
+ }
29
+ async updateSubmission(collectionId, submissionId, data, options) {
30
+ return this.put(`/collections/${collectionId}/submissions/${submissionId}`, data, undefined, options);
31
+ }
32
+ async updateSubmissionStatus(collectionId, submissionId, data, options) {
33
+ return this.put(`/collections/${collectionId}/submissions/${submissionId}/status`, data, undefined, options);
34
+ }
35
+ async downloadSubmissionsZip(collectionId, options) {
36
+ return this.get(`/collections/${collectionId}/submissions/download/zip`, undefined, { ...options });
37
+ }
38
+ }
39
+ exports.SubmissionClient = SubmissionClient;
40
+ //# sourceMappingURL=submission.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submission.client.js","sourceRoot":"","sources":["../../../src/clients/submission.client.ts"],"names":[],"mappings":";;;AAAA,mEAIsC;AAyBtC,MAAa,gBAAiB,SAAQ,gCAAa;IACjD,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAKD,KAAK,CAAC,cAAc,CAClB,YAAoB,EACpB,KAA2B,EAC3B,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAE1C,IAAI,KAAK,EAAE,IAAI;YAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnE,IAAI,KAAK,EAAE,IAAI;YAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnE,IAAI,KAAK,EAAE,MAAM;YAAE,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,KAAK,EAAE,aAAa;YACtB,WAAW,CAAC,MAAM,CAAC,eAAe,EA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24 @@
1
+ export declare enum MediaType {
2
+ AUDIO = "audio",
3
+ VIDEO = "video",
4
+ IMAGE = "image",
5
+ ATTACHMENT = "attachment",
6
+ EMBEDDER = "embedder",
7
+ HYPERLINK = "hyperlink",
8
+ STUDIO = "studio"
9
+ }
10
+ export declare class CreateAttachmentDto {
11
+ name: string;
12
+ type: MediaType;
13
+ mimeType: string;
14
+ uri: string;
15
+ application?: string;
16
+ }
17
+ export declare class AttachmentDto {
18
+ id: number;
19
+ name: string;
20
+ type: MediaType;
21
+ uri: string;
22
+ mimeType: string;
23
+ application?: string;
24
+ }
@@ -0,0 +1,132 @@
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.AttachmentDto = exports.CreateAttachmentDto = exports.MediaType = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const class_validator_1 = require("class-validator");
15
+ var MediaType;
16
+ (function (MediaType) {
17
+ MediaType["AUDIO"] = "audio";
18
+ MediaType["VIDEO"] = "video";
19
+ MediaType["IMAGE"] = "image";
20
+ MediaType["ATTACHMENT"] = "attachment";
21
+ MediaType["EMBEDDER"] = "embedder";
22
+ MediaType["HYPERLINK"] = "hyperlink";
23
+ MediaType["STUDIO"] = "studio";
24
+ })(MediaType || (exports.MediaType = MediaType = {}));
25
+ class CreateAttachmentDto {
26
+ name;
27
+ type;
28
+ mimeType;
29
+ uri;
30
+ application;
31
+ }
32
+ exports.CreateAttachmentDto = CreateAttachmentDto;
33
+ __decorate([
34
+ (0, swagger_1.ApiProperty)({
35
+ description: "Attachment name",
36
+ example: "foobar",
37
+ }),
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_validator_1.IsNotEmpty)(),
40
+ __metadata("design:type", String)
41
+ ], CreateAttachmentDto.prototype, "name", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({
44
+ enum: MediaType,
45
+ description: "Type of the attachment",
46
+ example: "hyperlink",
47
+ }),
48
+ (0, class_validator_1.IsEnum)(MediaType),
49
+ __metadata("design:type", String)
50
+ ], CreateAttachmentDto.prototype, "type", void 0);
51
+ __decorate([
52
+ (0, swagger_1.ApiProperty)({
53
+ description: "MIME type",
54
+ example: "text/html",
55
+ }),
56
+ (0, class_validator_1.IsString)(),
57
+ (0, class_validator_1.IsNotEmpty)(),
58
+ __metadata("design:type", String)
59
+ ], CreateAttachmentDto.prototype, "mimeType", void 0);
60
+ __decorate([
61
+ (0, swagger_1.ApiProperty)({
62
+ description: "Link to the attached resource",
63
+ example: "https://duckduckgo.com",
64
+ }),
65
+ (0, class_validator_1.IsString)(),
66
+ (0, class_validator_1.IsNotEmpty)(),
67
+ __metadata("design:type", String)
68
+ ], CreateAttachmentDto.prototype, "uri", void 0);
69
+ __decorate([
70
+ (0, swagger_1.ApiProperty)({
71
+ required: false,
72
+ description: "Name of the ENT application, if the attachment is an ENT resource",
73
+ example: "mindmap",
74
+ }),
75
+ (0, class_validator_1.IsString)(),
76
+ (0, class_validator_1.IsNotEmpty)(),
77
+ __metadata("design:type", String)
78
+ ], CreateAttachmentDto.prototype, "application", void 0);
79
+ class AttachmentDto {
80
+ id;
81
+ name;
82
+ type;
83
+ uri;
84
+ mimeType;
85
+ application;
86
+ }
87
+ exports.AttachmentDto = AttachmentDto;
88
+ __decorate([
89
+ (0, swagger_1.ApiProperty)({
90
+ description: "Attachment identifier",
91
+ example: 12,
92
+ }),
93
+ __metadata("design:type", Number)
94
+ ], AttachmentDto.prototype, "id", void 0);
95
+ __decorate([
96
+ (0, swagger_1.ApiProperty)({
97
+ description: "Attachment name",
98
+ example: "foobar",
99
+ }),
100
+ __metadata("design:type", String)
101
+ ], AttachmentDto.prototype, "name", void 0);
102
+ __decorate([
103
+ (0, swagger_1.ApiProperty)({
104
+ enum: MediaType,
105
+ description: "Type of the attachment",
106
+ example: "hyperlink",
107
+ }),
108
+ __metadata("design:type", String)
109
+ ], AttachmentDto.prototype, "type", void 0);
110
+ __decorate([
111
+ (0, swagger_1.ApiProperty)({
112
+ description: "Link to the attached resource. Can be external link or ENT application",
113
+ example: "/mindmap#/view/ff10e4bd-6231-4ca5-929c-7ece25ad6e8a",
114
+ }),
115
+ __metadata("design:type", String)
116
+ ], AttachmentDto.prototype, "uri", void 0);
117
+ __decorate([
118
+ (0, swagger_1.ApiProperty)({
119
+ description: "MIME type",
120
+ example: "text/html",
121
+ }),
122
+ __metadata("design:type", String)
123
+ ], AttachmentDto.prototype, "mimeType", void 0);
124
+ __decorate([
125
+ (0, swagger_1.ApiProperty)({
126
+ required: false,
127
+ description: "Name of the ENT application, if the attachment is an ENT resource",
128
+ example: "mindmap",
129
+ }),
130
+ __metadata("design:type", String)
131
+ ], AttachmentDto.prototype, "application", void 0);
132
+ //# sourceMappingURL=attachment.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment.dto.js","sourceRoot":"","sources":["../../../src/dtos/attachment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA+D;AAE/D,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;AACnB,CAAC,EARW,SAAS,yBAAT,S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AE,iBAAiB;QAC9B,OAAO,EAAE,QAAQ;KAClB,CAAC;;2CACW;AAOb;IALC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,WAAW;KACrB,CAAC;;2CACc;AAOhB;IALC,IAAA,qBAAW,EAAC;QACX,WAAW,EACT,wEAAwE;QAC1E,OAAO,EAAE,qDAAqD;KAC/D,CAAC;;0CACU;AAMZ;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,WAAW;KACrB,CAAC;;+CACe;AAQjB;IANC,IAAA,qBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EACT,mEAAmE;QACrE,OAAO,EAAE,SAAS;KACnB,CAAC;;kDACmB"}
@@ -0,0 +1,19 @@
1
+ export declare enum SortDirection {
2
+ ASC = "ASC",
3
+ DESC = "DESC"
4
+ }
5
+ export declare class PaginationQueryDto {
6
+ page?: number;
7
+ size?: number;
8
+ }
9
+ export declare class PageMetadataDto {
10
+ totalItems: number;
11
+ itemCount: number;
12
+ itemsPerPage: number;
13
+ totalPages: number;
14
+ currentPage: number;
15
+ }
16
+ export declare class PaginatedListDto<T> {
17
+ items: T[];
18
+ meta: PageMetadataDto;
19
+ }
@@ -0,0 +1,95 @@
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.PaginatedListDto = exports.PageMetadataDto = exports.PaginationQueryDto = exports.SortDirection = void 0;
13
+ const rest_client_base_1 = require("@edifice.io/rest-client-base");
14
+ const class_validator_1 = require("class-validator");
15
+ var SortDirection;
16
+ (function (SortDirection) {
17
+ SortDirection["ASC"] = "ASC";
18
+ SortDirection["DESC"] = "DESC";
19
+ })(SortDirection || (exports.SortDirection = SortDirection = {}));
20
+ class PaginationQueryDto {
21
+ page = 1;
22
+ size = 20;
23
+ }
24
+ exports.PaginationQueryDto = PaginationQueryDto;
25
+ __decorate([
26
+ (0, rest_client_base_1.ApiProperty)({
27
+ description: "Page number (one-indexed)",
28
+ default: 1,
29
+ required: false,
30
+ }),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, rest_client_base_1.Type)(() => Number),
33
+ (0, class_validator_1.IsInt)(),
34
+ (0, class_validator_1.Min)(1),
35
+ __metadata("design:type", Number)
36
+ ], PaginationQueryDto.prototype, "page", void 0);
37
+ __decorate([
38
+ (0, rest_client_base_1.ApiProperty)({
39
+ description: "Number of items per page",
40
+ default: 20,
41
+ required: false,
42
+ }),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, rest_client_base_1.Type)(() => Number),
45
+ (0, class_validator_1.IsInt)(),
46
+ (0, class_validator_1.Min)(1),
47
+ (0, class_validator_1.Max)(100),
48
+ __metadata("design:type", Number)
49
+ ], PaginationQueryDto.prototype, "size", void 0);
50
+ class PageMetadataDto {
51
+ totalItems;
52
+ itemCount;
53
+ itemsPerPage;
54
+ totalPages;
55
+ currentPage;
56
+ }
57
+ exports.PageMetadataDto = PageMetadataDto;
58
+ __decorate([
59
+ (0, rest_client_base_1.ApiProperty)(),
60
+ __metadata("design:type", Number)
61
+ ], PageMetadataDto.prototype, "totalItems", void 0);
62
+ __decorate([
63
+ (0, rest_client_base_1.ApiProperty)(),
64
+ __metadata("design:type", Number)
65
+ ], PageMetadataDto.prototype, "itemCount", void 0);
66
+ __decorate([
67
+ (0, rest_client_base_1.ApiProperty)(),
68
+ __metadata("design:type", Number)
69
+ ], PageMetadataDto.prototype, "itemsPerPage", void 0);
70
+ __decorate([
71
+ (0, rest_client_base_1.ApiProperty)(),
72
+ __metadata("design:type", Number)
73
+ ], PageMetadataDto.prototype, "totalPages", void 0);
74
+ __decorate([
75
+ (0, rest_client_base_1.ApiProperty)(),
76
+ __metadata("design:type", Number)
77
+ ], PageMetadataDto.prototype, "currentPage", void 0);
78
+ class PaginatedListDto {
79
+ items;
80
+ meta;
81
+ }
82
+ exports.PaginatedListDto = PaginatedListDto;
83
+ __decorate([
84
+ (0, rest_client_base_1.ApiProperty)({
85
+ isArray: true,
86
+ }),
87
+ __metadata("design:type", Array)
88
+ ], PaginatedListDto.prototype, "items", void 0);
89
+ __decorate([
90
+ (0, rest_client_base_1.ApiProperty)({
91
+ description: "Metadata about the pagination",
92
+ }),
93
+ __metadata("design:type", PageMetadataDto)
94
+ ], PaginatedListDto.prototype, "meta", void 0);
95
+ //# sourceMappingURL=base.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.dto.js","sourceRoot":"","sources":["../../../src/dtos/base.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAAiE;AACjE,qDAA8D;AAE9D,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,8BAAa,CAAA;AACf,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,MAAa,kBAAkB;IAU7B,IAAI,GAAY,CAAC,CAAC;IAYlB,IAAI,GAAY,EAAE,CAAC;CACpB;AAvBD,gDAuBC;AAbC;IATC,IAAA,8BAAW,EAAC;QACX,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;gDACW;AAYlB;IAVC,IAAA,8BAAW,EAAC;QACX,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,GAAG,CAAC;;gDACU;AAGrB,MAAa,eAAe;IAE1B,UAAU,CAAS;IAGnB,SAAS,CAAS;IAGlB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,WAAW,CAAS;CACrB;AAfD,0CAeC;AAbC;IADC,IAAA,8BAAW,GAAE;;mDACK;AAGnB;IADC,IAAA,8BAAW,GAAE;;kDACI;AAGlB;IADC,IAAA,8BAAW,GAAE;;qDACO;AAGrB;IADC,IAAA,8BAAW,GAAE;;mDACK;AAGnB;IADC,IAAA,8BAAW,GAAE;;oDACM;AAGtB,MAAa,gBAAgB;IAI3B,KAAK,CAAM;IAKX,IAAI,CAAkB;CACvB;AAVD,4CAUC;AANC;IAHC,IAAA,8BAAW,EAAC;QACX,OAAO,EAAE,IAAI;KACd,CAAC;;+CACS;AAKX;IAHC,IAAA,8BAAW,EAAC;QACX,WAAW,EAAE,+BAA+B;KAC7C,CAAC;8BACI,eAAe;8CAAC"}
@@ -0,0 +1,33 @@
1
+ import { AttachmentDto, CreateAttachmentDto } from "./attachment.dto";
2
+ import { CreateSharingDto, SharingDto } from "./sharing.dto";
3
+ import { UserDto } from "./user.dto";
4
+ import { PageMetadataDto, PaginationQueryDto } from "./base.dto";
5
+ export declare class CreateCollectionDto {
6
+ name: string;
7
+ content: string;
8
+ deadline: Date;
9
+ attachments: CreateAttachmentDto[];
10
+ sharings: CreateSharingDto[];
11
+ }
12
+ export declare class CollectionDto {
13
+ id: number;
14
+ name: string;
15
+ createdBy: UserDto;
16
+ updatedBy?: UserDto;
17
+ createdAt: Date;
18
+ updatedAt?: Date;
19
+ deadline: Date;
20
+ content: string;
21
+ submissionCount: number;
22
+ contribCount: number;
23
+ attachments?: AttachmentDto[];
24
+ sharings?: SharingDto[];
25
+ }
26
+ export declare class SearchCollectionDto extends PaginationQueryDto {
27
+ search?: string;
28
+ filter?: "myCollections" | "mySubmissions";
29
+ }
30
+ export declare class SearchCollectionResponseDto {
31
+ items: CollectionDto[];
32
+ meta: PageMetadataDto;
33
+ }
@@ -0,0 +1,209 @@
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.SearchCollectionResponseDto = exports.SearchCollectionDto = exports.CollectionDto = exports.CreateCollectionDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const attachment_dto_1 = require("./attachment.dto");
15
+ const sharing_dto_1 = require("./sharing.dto");
16
+ const user_dto_1 = require("./user.dto");
17
+ const base_dto_1 = require("./base.dto");
18
+ const swagger_1 = require("@nestjs/swagger");
19
+ const class_transformer_1 = require("class-transformer");
20
+ class CreateCollectionDto {
21
+ name;
22
+ content;
23
+ deadline;
24
+ attachments;
25
+ sharings;
26
+ }
27
+ exports.CreateCollectionDto = CreateCollectionDto;
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({
30
+ description: "Collection name",
31
+ example: "Devoir d'histoire pour le 15/03",
32
+ }),
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", String)
36
+ ], CreateCollectionDto.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiProperty)({
39
+ description: "Collection description",
40
+ example: "lorem ipsum",
41
+ }),
42
+ (0, class_validator_1.IsString)(),
43
+ (0, class_validator_1.IsNotEmpty)(),
44
+ __metadata("design:type", String)
45
+ ], CreateCollectionDto.prototype, "content", void 0);
46
+ __decorate([
47
+ (0, swagger_1.ApiProperty)({
48
+ type: String,
49
+ format: "date-time",
50
+ description: "Collection deadline (UTC)",
51
+ example: "2026-03-15T00:00:00Z",
52
+ }),
53
+ (0, class_validator_1.IsDate)(),
54
+ __metadata("design:type", Date)
55
+ ], CreateCollectionDto.prototype, "deadline", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({
58
+ type: [attachment_dto_1.CreateAttachmentDto],
59
+ description: "List of attached media",
60
+ }),
61
+ (0, class_validator_1.IsArray)(),
62
+ (0, class_transformer_1.Type)(() => attachment_dto_1.CreateAttachmentDto),
63
+ __metadata("design:type", Array)
64
+ ], CreateCollectionDto.prototype, "attachments", void 0);
65
+ __decorate([
66
+ (0, swagger_1.ApiProperty)({
67
+ type: [sharing_dto_1.CreateSharingDto],
68
+ description: "List of sharings for this collection",
69
+ }),
70
+ (0, class_validator_1.IsArray)(),
71
+ (0, class_transformer_1.Type)(() => sharing_dto_1.CreateSharingDto),
72
+ __metadata("design:type", Array)
73
+ ], CreateCollectionDto.prototype, "sharings", void 0);
74
+ class CollectionDto {
75
+ id;
76
+ name;
77
+ createdBy;
78
+ updatedBy;
79
+ createdAt;
80
+ updatedAt;
81
+ deadline;
82
+ content;
83
+ submissionCount;
84
+ contribCount;
85
+ attachments;
86
+ sharings;
87
+ }
88
+ exports.CollectionDto = CollectionDto;
89
+ __decorate([
90
+ (0, swagger_1.ApiProperty)({
91
+ description: "Collection identifier",
92
+ example: 543,
93
+ }),
94
+ __metadata("design:type", Number)
95
+ ], CollectionDto.prototype, "id", void 0);
96
+ __decorate([
97
+ (0, swagger_1.ApiProperty)({
98
+ description: "Collection name",
99
+ example: "Devoir d'histoire pour le 15/03",
100
+ }),
101
+ __metadata("design:type", String)
102
+ ], CollectionDto.prototype, "name", void 0);
103
+ __decorate([
104
+ (0, swagger_1.ApiProperty)({
105
+ description: "Collection creator",
106
+ }),
107
+ __metadata("design:type", user_dto_1.UserDto)
108
+ ], CollectionDto.prototype, "createdBy", void 0);
109
+ __decorate([
110
+ (0, swagger_1.ApiProperty)({
111
+ description: "User who last updated the collection",
112
+ }),
113
+ __metadata("design:type", user_dto_1.UserDto)
114
+ ], CollectionDto.prototype, "updatedBy", void 0);
115
+ __decorate([
116
+ (0, swagger_1.ApiProperty)({
117
+ type: String,
118
+ format: "date-time",
119
+ description: "Creation time (UTC)",
120
+ example: "2026-01-15T12:03:20Z",
121
+ }),
122
+ __metadata("design:type", Date)
123
+ ], CollectionDto.prototype, "createdAt", void 0);
124
+ __decorate([
125
+ (0, swagger_1.ApiProperty)({
126
+ type: String,
127
+ format: "date-time",
128
+ description: "Update time (UTC)",
129
+ example: "2026-01-15T12:09:40Z",
130
+ }),
131
+ __metadata("design:type", Date)
132
+ ], CollectionDto.prototype, "updatedAt", void 0);
133
+ __decorate([
134
+ (0, swagger_1.ApiProperty)({
135
+ type: String,
136
+ format: "date-time",
137
+ description: "Collection deadline (UTC)",
138
+ example: "2026-03-15T00:00:00Z",
139
+ }),
140
+ __metadata("design:type", Date)
141
+ ], CollectionDto.prototype, "deadline", void 0);
142
+ __decorate([
143
+ (0, swagger_1.ApiProperty)({
144
+ description: "Collection description",
145
+ example: "lorem ipsum",
146
+ }),
147
+ __metadata("design:type", String)
148
+ ], CollectionDto.prototype, "content", void 0);
149
+ __decorate([
150
+ (0, swagger_1.ApiProperty)({
151
+ description: "Number of submissions",
152
+ example: 7,
153
+ }),
154
+ __metadata("design:type", Number)
155
+ ], CollectionDto.prototype, "submissionCount", void 0);
156
+ __decorate([
157
+ (0, swagger_1.ApiProperty)({
158
+ description: "Number of submission requests",
159
+ example: 30,
160
+ }),
161
+ __metadata("design:type", Number)
162
+ ], CollectionDto.prototype, "contribCount", void 0);
163
+ __decorate([
164
+ (0, swagger_1.ApiProperty)({
165
+ description: "List of attachments fot this collection",
166
+ }),
167
+ __metadata("design:type", Array)
168
+ ], CollectionDto.prototype, "attachments", void 0);
169
+ __decorate([
170
+ (0, swagger_1.ApiProperty)({
171
+ description: "List of sharings for this collection",
172
+ }),
173
+ __metadata("design:type", Array)
174
+ ], CollectionDto.prototype, "sharings", void 0);
175
+ class SearchCollectionDto extends base_dto_1.PaginationQueryDto {
176
+ search;
177
+ filter;
178
+ }
179
+ exports.SearchCollectionDto = SearchCollectionDto;
180
+ __decorate([
181
+ (0, class_validator_1.IsString)(),
182
+ (0, class_validator_1.IsOptional)(),
183
+ __metadata("design:type", String)
184
+ ], SearchCollectionDto.prototype, "search", void 0);
185
+ __decorate([
186
+ (0, class_validator_1.IsString)(),
187
+ (0, class_validator_1.IsOptional)(),
188
+ __metadata("design:type", String)
189
+ ], SearchCollectionDto.prototype, "filter", void 0);
190
+ class SearchCollectionResponseDto {
191
+ items;
192
+ meta;
193
+ }
194
+ exports.SearchCollectionResponseDto = SearchCollectionResponseDto;
195
+ __decorate([
196
+ (0, swagger_1.ApiProperty)({
197
+ description: "List of collections matching the search criteria",
198
+ isArray: true,
199
+ type: () => CollectionDto,
200
+ }),
201
+ __metadata("design:type", Array)
202
+ ], SearchCollectionResponseDto.prototype, "items", void 0);
203
+ __decorate([
204
+ (0, swagger_1.ApiProperty)({
205
+ description: "Metadata about the pagination",
206
+ }),
207
+ __metadata("design:type", base_dto_1.PageMetadataDto)
208
+ ], SearchCollectionResponseDto.prototype, "meta", void 0);
209
+ //# sourceMappingURL=collection.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.dto.js","sourceRoot":"","sources":["../../../src/dtos/collection.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,qDAAsE;AACtE,+CAA6D;AAC7D,yCAAqC;AACrC,yCAAiE;AACjE,6CAA8C;AAC9C,yDAAyC;AAEzC,MAAa,mBAAmB;IAO9B,IAAI,CAAS;IAQb,OAAO,CAAS;IAShB,QAAQ,CAAO;IAQf,WAAW,CAAwB;IAQnC,QAAQ,CAAqB;CAC9B;AAzCD,kDAyCC;AAlCC;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iBAAiB;QAC9B,OAAO,EAAE,iCAAiC;KAC3C,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACA;AAQb;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,aAAa;KACvB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACG;AAShB;IAPC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;QACnB,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,sBAAsB;KAChC,CAAC;IACD,IAAA,wBAAM,GAAE;8BACC,IAAI;qDAAC;AAQf;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,CAAC,oCAAmB,CAAC;QAC3B,WAAW,EAAE,wBAAwB;KACtC,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oCAAmB,CAAC;;wDACG;AAQnC;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,CAAC,8BAAgB,CAAC;QACxB,WAAW,EAAE,sCAAsC;KACpD,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,wBAAI,EAAC,GAAG,EAAE,C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C,OAAO,EAAE,aAAa;KACvB,CAAC;;8CACc;AAMhB;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,CAAC;KACX,CAAC;;sDACsB;AAMxB;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,+BAA+B;QAC5C,OAAO,EAAE,EAAE;KACZ,CAAC;;mDACmB;AAKrB;IAHC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yCAAyC;KACvD,CAAC;;kDAC4B;AAK9B;IAHC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sCAAsC;KACpD,CAAC;;+CACsB;AAG1B,MAAa,mBAAoB,SAAQ,6BAAkB;IAGzD,MAAM,CAAU;IAIhB,MAAM,CAAqC;CAC5C;AARD,kDAQC;AALC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDAC8B;AAG7C,MAAa,2BAA2B;IAMtC,KAAK,CAAkB;IAKvB,IAAI,CAAkB;CACvB;AAZD,kEAYC;AANC;IALC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,GAAG,EAAE,CAAC,aAAa;KAC1B,CAAC;;0DACqB;AAKvB;IAHC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,+BAA+B;KAC7C,CAAC;8BACI,0BAAe;yDAAC"}
@@ -0,0 +1,7 @@
1
+ export * from "./attachment.dto";
2
+ export * from "./base.dto";
3
+ export * from "./collection.dto";
4
+ export * from "./recipient.dto";
5
+ export * from "./sharing.dto";
6
+ export * from "./submission.dto";
7
+ export * from "./user.dto";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./attachment.dto"), exports);
18
+ __exportStar(require("./base.dto"), exports);
19
+ __exportStar(require("./collection.dto"), exports);
20
+ __exportStar(require("./recipient.dto"), exports);
21
+ __exportStar(require("./sharing.dto"), exports);
22
+ __exportStar(require("./submission.dto"), exports);
23
+ __exportStar(require("./user.dto"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,6CAA2B;AAC3B,mDAAiC;AACjC,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,6CAA2B"}
@@ -0,0 +1,9 @@
1
+ export declare enum RecipientType {
2
+ USER = "user",
3
+ GROUP = "group"
4
+ }
5
+ export declare class RecipientDto {
6
+ id: number;
7
+ entId: string;
8
+ type: RecipientType;
9
+ }