Skip to content

Commit 5a1d3e4

Browse files
authored
feat: send email for export raw (#1881)
* feat: send email for export raw * refactor: create separated endpoint for folder export and other items export * refactor: apply PR requested changes * refactor: add tests * fix: fix graasp-export tests * refactor: fix test * feat: allow guest and public to download file
1 parent 6de5039 commit 5a1d3e4

22 files changed

Lines changed: 4137 additions & 86 deletions

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"url-http": "1.3.0",
116116
"uuid": "11.1.0",
117117
"ws": "8.18.1",
118-
"yazl": "2.5.1"
118+
"yazl": "3.3.1"
119119
},
120120
"devDependencies": {
121121
"@commitlint/cli": "19.8.0",
@@ -147,7 +147,7 @@
147147
"@types/sanitize-html": "2.15.0",
148148
"@types/uuid": "10.0.0",
149149
"@types/ws": "8.18.1",
150-
"@types/yazl": "2.4.6",
150+
"@types/yazl": "3.3.0",
151151
"@typescript-eslint/eslint-plugin": "8.31.1",
152152
"@typescript-eslint/parser": "8.31.1",
153153
"checksum": "1.0.0",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CREATE TYPE "public"."item_export_request_type_enum" AS ENUM('raw', 'graasp');--> statement-breakpoint
2+
CREATE TABLE "item_export_request" (
3+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
4+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
5+
"member_id" uuid,
6+
"item_id" uuid,
7+
"type" "item_export_request_type_enum" NOT NULL
8+
);
9+
--> statement-breakpoint
10+
ALTER TABLE "item_export_request" ADD CONSTRAINT "item_export_request_member_id_account_id_fk" FOREIGN KEY ("member_id") REFERENCES "public"."account"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
11+
ALTER TABLE "item_export_request" ADD CONSTRAINT "item_export_request_item_id_item_id_fk" FOREIGN KEY ("item_id") REFERENCES "public"."item"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint

0 commit comments

Comments
 (0)