Skip to content

Commit

Permalink
Merge pull request #55 from cap-js/update_attachments
Browse files Browse the repository at this point in the history
update attachments xmpl
  • Loading branch information
muskansethi1 authored Apr 10, 2024
2 parents d6ade07 + c82dcc3 commit 907d924
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 86 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"test": "npx jest --silent",
"add-change-tracking": "npm add @cap-js/change-tracking && cp xmpls/change-tracking.cds ./srv && cp xmpls/change-tracking.test.js ./test",
"add-telemetry": "npm add @cap-js/telemetry",
"clone-and-add-attachments": "git clone https://github.com/cap-js/attachments.git && npm add ./attachments && npm run add-attachments",
"add-attachments": "cp -r xmpls/attachments/ ./",
"add-attachments": "npm add @cap-js/attachments && cp -r xmpls/attachments.cds ./db",
"add-notifications": "npm add @cap-js/notifications && cp xmpls/alert-notifications.js ./srv && cp xmpls/notification-types.json ./srv",
"add-audit-log": "npm add @cap-js/audit-logging && cp xmpls/data-privacy.cds ./srv && cp xmpls/audit-log.test.js ./test",
"add-remote-service": "cp -r xmpls/remote-service/* .",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@

using { sap.capire.incidents as my } from './schema';
using { Image, Attachments } from '@cap-js/attachments';
using { Attachments } from '@cap-js/attachments';

extend my.Incidents with {
attachments: Composition of many Attachments;
}

extend my.Customers with {
avatar: Image;
}
6 changes: 0 additions & 6 deletions xmpls/attachments/app/avatars.cds

This file was deleted.

Binary file removed xmpls/attachments/db/content/Broken Solar Panel.jpg
Binary file not shown.
Binary file removed xmpls/attachments/db/content/Customer Avatars.jpg
Binary file not shown.
Binary file removed xmpls/attachments/db/content/Daniel Watts.png
Binary file not shown.
Binary file not shown.
24 changes: 0 additions & 24 deletions xmpls/attachments/db/content/Inverter-error-logs.txt

This file was deleted.

Binary file removed xmpls/attachments/db/content/No_current.xlsx
Binary file not shown.
Binary file removed xmpls/attachments/db/content/Solar Panel Report.pdf
Binary file not shown.
Binary file removed xmpls/attachments/db/content/Stormy Weathers.png
Binary file not shown.
Binary file removed xmpls/attachments/db/content/Sunny Sunshine.png
Binary file not shown.
11 changes: 0 additions & 11 deletions xmpls/attachments/db/content/strange-noise.csv

This file was deleted.

38 changes: 0 additions & 38 deletions xmpls/attachments/db/init.js

This file was deleted.

0 comments on commit 907d924

Please sign in to comment.