Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/project fix #144

Open
wants to merge 320 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
320 commits
Select commit Hold shift + click to select a range
3ad087f
Version Upgrade
joffinjoy Jan 11, 2024
01f92cb
Merge pull request #31 from ELEVATE-Project/story#1065
joffinjoy Jan 11, 2024
c91ac4f
Version Upgrade
joffinjoy Jan 11, 2024
9c7ab3e
Version Upgrade Elevate-Mentoring
joffinjoy Jan 12, 2024
bb15ee0
add/remove mentee api config added
VISHNUDAS-tunerlabs Jan 17, 2024
d87ac0c
Merge pull request #32 from VISHNUDAS-tunerlabs/story#1058
rakeshSgr Jan 17, 2024
168f499
Version Upgrade
joffinjoy Jan 17, 2024
3f1f0fa
added enrolled mentees api
nevil-mathew Jan 17, 2024
8a36eb8
Merge pull request #33 from ELEVATE-Project/enrolledMentees
joffinjoy Jan 17, 2024
03f9c12
Version Upgrade
joffinjoy Jan 17, 2024
f02b2da
Permissions,Modules,UserRoles,RolePermissions Api
sumanvpacewisdom Jan 17, 2024
dc9194d
Merge pull request #34 from sumanvpacewisdom/new-develop-2.6
rakeshSgr Jan 17, 2024
d0bbbfa
Version Upgrade
joffinjoy Jan 19, 2024
0486ed4
Organization Create API Config Added
joffinjoy Jan 21, 2024
51b2380
Merge pull request #35 from ELEVATE-Project/organization-create
joffinjoy Jan 21, 2024
4117040
Version Update
joffinjoy Jan 21, 2024
b9f5b9c
Merge pull request #36 from ELEVATE-Project/organization-create
joffinjoy Jan 21, 2024
5276f52
Modified Organization Create To EventListener
joffinjoy Jan 22, 2024
5c06e9f
Mentoring Package Version Upgrade
joffinjoy Jan 22, 2024
d342490
Merge pull request #37 from ELEVATE-Project/organization-create
joffinjoy Jan 22, 2024
13aebc7
changes to package.json
Jan 23, 2024
6f249d3
added bulkUpdateMentorNames endpoint
nevil-mathew Jan 24, 2024
eca7b14
Merge pull request #38 from ELEVATE-Project/add-bulkUpdateMentorNames
rakeshSgr Jan 24, 2024
8187fcd
Permissions,Modules,UserRoles,RolePermissions Api in user service
sumanvpacewisdom Jan 29, 2024
c444624
Merge remote-tracking branch 'upstream/develop' into new-develop-2.6
sumanvpacewisdom Jan 29, 2024
40112f3
Adding Orchestrated API for login and Role Permission
sumanvpacewisdom Jan 31, 2024
b46676d
Merge pull request #40 from sumanvpacewisdom/new-develop
joffinjoy Feb 1, 2024
8e2d614
Version Upgrade
joffinjoy Feb 1, 2024
973054c
controller name changes
sumanvpacewisdom Feb 3, 2024
9f5606d
name changes for question-set
sumanvpacewisdom Feb 5, 2024
30c8095
Merge pull request #41 from sumanvpacewisdom/new-develop
joffinjoy Feb 5, 2024
8793a0f
related org apis
adithyadinesh0412 Mar 14, 2024
a5dee57
Merge pull request #43 from adithyadinesh0412/working-branch
joffinjoy Mar 15, 2024
9b8b034
Downloadable URL api changes for GCP cloud provider
VISHNUDAS-tunerlabs Mar 19, 2024
a04805c
Downloadable URL api changes for GCP cloud provider- new api added
VISHNUDAS-tunerlabs Mar 19, 2024
5efc483
Downloadable URL api changes for GCP cloud provider- new api added
VISHNUDAS-tunerlabs Mar 19, 2024
1cac8b3
Downloadable URL api changes for GCP cloud provider- default expiry set
VISHNUDAS-tunerlabs Mar 19, 2024
8b23354
Merge pull request #44 from VISHNUDAS-tunerlabs/security-fix
rakeshSgr Mar 21, 2024
1378fbd
version upgrade
VISHNUDAS-tunerlabs Mar 21, 2024
54b5734
Merge pull request #45 from VISHNUDAS-tunerlabs/security-fix
rakeshSgr Mar 21, 2024
8e1d067
Change Passwor API
sumanvpacewisdom Mar 26, 2024
8e54e94
Merge pull request #46 from sumanvpacewisdom/change_password
rakeshSgr Mar 26, 2024
0a66a65
Version Number Upgrades
joffinjoy Mar 26, 2024
7078b8a
login recaptcha changes
adithyadinesh0412 Mar 27, 2024
02a67a4
Merge pull request #47 from adithyadinesh0412/working-branch
joffinjoy Mar 27, 2024
c82b3ee
Version Upgrade
joffinjoy Mar 27, 2024
2829879
adding new APIs for recaptcha
adithyadinesh0412 Mar 28, 2024
0b7f4f8
captcha token variable updated
adithyadinesh0412 Mar 28, 2024
78a7d36
Merge pull request #48 from adithyadinesh0412/working-branch
joffinjoy Mar 28, 2024
668543b
Updated Version Number
joffinjoy Mar 28, 2024
c510219
added user session APIs
nevil-mathew Mar 28, 2024
b90936d
Merge pull request #49 from ELEVATE-Project/user-session-apis
joffinjoy Mar 28, 2024
3a77c71
Version Number Upgrade
joffinjoy Mar 28, 2024
64ab289
custom header allow added to user service apis
VISHNUDAS-tunerlabs Mar 30, 2024
00a8362
Merge pull request #50 from VISHNUDAS-tunerlabs/add_custom_header
rakeshSgr Mar 30, 2024
010a1b4
unnati and entity package
priyanka-TL Apr 1, 2024
25dd6de
delete sub folder
priyanka-TL Apr 1, 2024
111eece
removed captcha from create API
adithyadinesh0412 Apr 3, 2024
0cec79c
Merge branch 'develop' of https://github.com/ELEVATE-Project/utils in…
adithyadinesh0412 Apr 3, 2024
5bb3381
Merge pull request #52 from adithyadinesh0412/working-branch
rakeshSgr Apr 3, 2024
2b7d24f
AWS changes in downloadable url function
VISHNUDAS-tunerlabs Apr 11, 2024
dee2d3b
AWS changes in downloadable url function
VISHNUDAS-tunerlabs Apr 12, 2024
3d7b32a
AWS changes in downloadable url function
VISHNUDAS-tunerlabs Apr 12, 2024
2f4174e
Merge pull request #53 from VISHNUDAS-tunerlabs/AWS-changes-for-downl…
rakeshSgr Apr 13, 2024
b02b987
default download url time set to 5min
Apr 15, 2024
ddf0a0d
npm packages for entity and project
priyanka-TL Apr 15, 2024
15a5577
npm packages for entity and project
priyanka-TL Apr 15, 2024
f305dc4
default downloadable url expiry set to 30mins
Apr 17, 2024
0969c75
Merge branch 'develop' of https://github.com/ELEVATE-Project/utils in…
priyanka-TL Apr 17, 2024
5d1bc61
new routes for interface instance
priyanka-TL Apr 17, 2024
f6cfe09
package path issue fix
priyanka-TL Apr 18, 2024
d15499c
new apis for session creation
sumanvpacewisdom Apr 18, 2024
7a62290
Merge branch 'develop' into change_password
sumanvpacewisdom Apr 18, 2024
a00551e
Merge pull request #54 from sumanvpacewisdom/change_password
rakeshSgr Apr 19, 2024
cad63f7
added availabilities apis
nevil-mathew Apr 19, 2024
8653aa3
Merge pull request #55 from ELEVATE-Project/avail-apis
rakeshSgr Apr 19, 2024
57fc379
Version Upgrade
joffinjoy Apr 19, 2024
1a11350
fixed an issue with route.js
nevil-mathew Apr 19, 2024
3258d0f
Merge pull request #56 from ELEVATE-Project/avail-apis
joffinjoy Apr 22, 2024
3f52c70
Version Upgrade
joffinjoy Apr 22, 2024
b594353
self creation portal utils
adithyadinesh0412 Apr 23, 2024
4bcddb7
Merge branch 'unnati' into working-branch
priyanka-TL Apr 23, 2024
5559312
Merge pull request #57 from adithyadinesh0412/working-branch
priyanka-TL Apr 23, 2024
7f721a5
format
priyanka-TL Apr 23, 2024
beb9e2a
test route
priyanka-TL Apr 23, 2024
2a42c4c
self creation portal utils
adithyadinesh0412 Apr 23, 2024
e920e20
Merge branch 'working-branch' of https://github.com/adithyadinesh0412…
adithyadinesh0412 Apr 23, 2024
384f341
Merge pull request #51 from ELEVATE-Project/unnati
rakeshSgr Apr 24, 2024
2a7a64a
remove v2
priyanka-TL Apr 24, 2024
3658400
changes in scp route
adithyadinesh0412 May 3, 2024
c14cc9d
Merge pull request #58 from adithyadinesh0412/working-branch
priyanka-TL May 3, 2024
11458dd
updated entity pacakge
priyanka-TL May 6, 2024
19cd483
API routes updated
VISHNUDAS-tunerlabs May 7, 2024
1edb86c
config added
VISHNUDAS-tunerlabs May 8, 2024
daa1374
Merge pull request #62 from ELEVATE-Project/project-service-child
priyanka-TL May 8, 2024
db25c5e
published 1.0.2 project
priyanka-TL May 8, 2024
e21f482
api config updated
VISHNUDAS-tunerlabs May 8, 2024
99aad4e
Merge pull request #63 from ELEVATE-Project/project-service-child
priyanka-TL May 8, 2024
036c681
entity management publish
priyanka-TL May 8, 2024
cec6f61
config syntax correction
VISHNUDAS-tunerlabs May 9, 2024
f418a85
Merge pull request #64 from ELEVATE-Project/project-service-child
priyanka-TL May 9, 2024
3ae3259
published new package
priyanka-TL May 9, 2024
9899c4c
syntax fix
VISHNUDAS-tunerlabs May 9, 2024
296de8a
Merge pull request #65 from ELEVATE-Project/project-service-child
priyanka-TL May 9, 2024
9d36adf
new project package update
priyanka-TL May 9, 2024
5e7773b
API configuration added to accept params and syntax error fix
VISHNUDAS-tunerlabs May 10, 2024
09c9d9f
API configured
VISHNUDAS-tunerlabs May 10, 2024
66e66f7
Merge pull request #66 from ELEVATE-Project/project-service-child
priyanka-TL May 10, 2024
8815898
patch package project and entity
priyanka-TL May 10, 2024
954e02f
changed api method
VISHNUDAS-tunerlabs May 10, 2024
93e1738
Merge pull request #67 from ELEVATE-Project/project-service-child
priyanka-TL May 10, 2024
bd5492b
new entity package published
priyanka-TL May 10, 2024
5c925cb
method change
VISHNUDAS-tunerlabs May 10, 2024
5d26e66
Merge pull request #68 from ELEVATE-Project/project-service-child
priyanka-TL May 10, 2024
572b186
project version update
priyanka-TL May 10, 2024
016f217
api config changes
VISHNUDAS-tunerlabs May 13, 2024
2abe9a0
Merge pull request #69 from ELEVATE-Project/project-service-child
priyanka-TL May 13, 2024
ff21caf
project new npm version
priyanka-TL May 13, 2024
4ca4657
mappingUpload config added.
VISHNUDAS-tunerlabs May 13, 2024
e63f828
Merge pull request #70 from ELEVATE-Project/project-service-child
priyanka-TL May 13, 2024
9a2dbd0
entity new version
priyanka-TL May 13, 2024
afc249e
config changes for elevate-project-user-service
VISHNUDAS-tunerlabs May 13, 2024
dc273e6
Merge pull request #71 from ELEVATE-Project/user-npm-changes
rakeshSgr May 13, 2024
41055fa
bulk upload related api's
sumanvpacewisdom May 13, 2024
b8403f3
version change
VISHNUDAS-tunerlabs May 13, 2024
174ec62
Merge pull request #73 from ELEVATE-Project/user-npm-changes
rakeshSgr May 13, 2024
96f5375
updated bulk api
sumanvpacewisdom May 13, 2024
b8b975f
comments changes
sumanvpacewisdom May 14, 2024
05d4f66
Merge pull request #72 from sumanvpacewisdom/change_password
rakeshSgr May 14, 2024
51f37fd
api config change
VISHNUDAS-tunerlabs May 16, 2024
50da4b4
api config change
VISHNUDAS-tunerlabs May 16, 2024
1f56ba2
Merge pull request #74 from ELEVATE-Project/unnati-child
priyanka-TL May 16, 2024
f1548ad
project package published
priyanka-TL May 16, 2024
b0ee302
elevate-scp-config list api added
adithyadinesh0412 May 22, 2024
f209a42
user service changes
adithyadinesh0412 May 22, 2024
6d3e612
Merge pull request #75 from adithyadinesh0412/unnati
ankit1shahu May 22, 2024
5ff3d10
user related changes for scp to develop
adithyadinesh0412 May 22, 2024
b947b8b
Merge branch 'develop' of https://github.com/ELEVATE-Project/utils in…
adithyadinesh0412 May 22, 2024
a88e4b2
user related changes for scp to develop
adithyadinesh0412 May 22, 2024
32cc410
Merge pull request #77 from adithyadinesh0412/develop
joffinjoy May 22, 2024
2d89d50
new apis added
VISHNUDAS-tunerlabs May 24, 2024
6a7588a
forms api in scp
adithyadinesh0412 May 24, 2024
cc60441
project new package
priyanka-TL May 24, 2024
ccf61af
Merge pull request #78 from adithyadinesh0412/unnati
priyanka-TL May 24, 2024
96bb0e6
entity-types added to scp
adithyadinesh0412 May 24, 2024
4b1fbcd
Merge pull request #79 from adithyadinesh0412/unnati
priyanka-TL May 24, 2024
8b69424
entities package published
adithyadinesh0412 May 27, 2024
205f555
Merge pull request #80 from adithyadinesh0412/unnati
priyanka-TL May 27, 2024
ee89965
configs added for elevate-user service
VISHNUDAS-tunerlabs May 27, 2024
574dedb
Merge pull request #81 from ELEVATE-Project/api-for-elevate-user
rakeshSgr May 27, 2024
4891d6b
scp new routes
adithyadinesh0412 May 28, 2024
1157a2d
Merge pull request #82 from adithyadinesh0412/unnati
priyanka-TL May 28, 2024
de01d25
added api's for elevate-user
adithyadinesh0412 May 28, 2024
907fdcd
Merge pull request #83 from adithyadinesh0412/unnati
joffinjoy May 29, 2024
655bf95
Merge branch 'develop' of https://github.com/ELEVATE-Project/utils in…
adithyadinesh0412 May 29, 2024
c39b8c3
Merge pull request #84 from adithyadinesh0412/unnati
joffinjoy May 29, 2024
6820cab
config updated
VISHNUDAS-tunerlabs May 29, 2024
2232f4d
Merge pull request #85 from ELEVATE-Project/elevate-user-branch
rakeshSgr May 29, 2024
71b4748
Merge branch 'develop' of https://github.com/ELEVATE-Project/utils in…
adithyadinesh0412 Jun 3, 2024
d4b851b
SCP added project update
adithyadinesh0412 Jun 3, 2024
8d0d817
SCP added project update
adithyadinesh0412 Jun 3, 2024
407d1cf
SCP added project update
adithyadinesh0412 Jun 3, 2024
8233c09
SCP added project update
adithyadinesh0412 Jun 3, 2024
67e0bac
elevate-project-user APIs
adithyadinesh0412 Jun 3, 2024
6637dac
version update
adithyadinesh0412 Jun 3, 2024
f5bb75b
Merge pull request #87 from adithyadinesh0412/unnati
ankit1shahu Jun 3, 2024
1f45b55
scp permission module and certificate apis
priyanka-TL Jun 4, 2024
e6a9596
version updated
priyanka-TL Jun 4, 2024
233988c
Merge pull request #89 from ELEVATE-Project/scpPermissions
priyanka-TL Jun 4, 2024
e8668ec
resource listing apis added
adithyadinesh0412 Jun 6, 2024
24c91d5
Merge pull request #91 from adithyadinesh0412/unnati
ankit1shahu Jun 6, 2024
a70b30e
admin/createIndex api configs added
Prajwal17Tunerlabs Jun 7, 2024
f483c47
Merge pull request #92 from ELEVATE-Project/elevate-project-configs
priyanka-TL Jun 7, 2024
f1ad232
new project version
priyanka-TL Jun 7, 2024
863b7d2
pattern-regex change to accept - in externalIds
VISHNUDAS-tunerlabs Jun 10, 2024
66fec6d
Merge pull request #95 from ELEVATE-Project/unnati-pattern-change
priyanka-TL Jun 10, 2024
6185a3a
new project package
priyanka-TL Jun 10, 2024
6016188
solutions/details configs added
Prajwal17Tunerlabs Jun 11, 2024
92c530a
solution/details api method changed to POST
Prajwal17Tunerlabs Jun 11, 2024
bd0c671
Merge pull request #96 from ELEVATE-Project/elevate-project-configs
priyanka-TL Jun 11, 2024
043ed54
version update project
priyanka-TL Jun 11, 2024
bc26392
_id changed to id for sol details api
Prajwal17Tunerlabs Jun 11, 2024
9a0c819
Merge pull request #97 from ELEVATE-Project/elevate-project-configs-fix
priyanka-TL Jun 11, 2024
4c5e489
project version update
priyanka-TL Jun 11, 2024
586aa5f
"changes-profile-read"
MallanagoudaB Jun 18, 2024
fd7fdf7
Merge pull request #98 from MallanagoudaB/utils-read-api
VISHNUDAS-tunerlabs Jun 19, 2024
163dacc
npm package version patch for elevate-project
VISHNUDAS-tunerlabs Jun 19, 2024
0ca4209
"changes-done"
MallanagoudaB Jun 25, 2024
3c311e6
Merge pull request #103 from MallanagoudaB/unnati-api-change
VISHNUDAS-tunerlabs Jun 26, 2024
7a7e1b9
package updated
VISHNUDAS-tunerlabs Jun 26, 2024
44fbac1
delete API added to projects drafts
adithyadinesh0412 Jul 3, 2024
30bdde8
Merge pull request #106 from adithyadinesh0412/unnati
priyanka-TL Jul 5, 2024
76fa11c
add project submit for review api
adithyadinesh0412 Jul 8, 2024
ad4bf21
Merge pull request #108 from adithyadinesh0412/unnati
adithyadinesh0412 Jul 8, 2024
049b8aa
"getProgramsByEntity-api"
MallanagoudaB Jul 18, 2024
130aa71
Merge pull request #113 from MallanagoudaB/getProgramsByEntity-API
VISHNUDAS-tunerlabs Jul 19, 2024
21c3c8c
elevate-project pm package new version
VISHNUDAS-tunerlabs Jul 19, 2024
283ed25
submit for review
adithyadinesh0412 Jul 24, 2024
958c038
"targetedRoles-readUserRolesBasedOnEntityType"
MallanagoudaB Jul 26, 2024
526b58a
"changed-get-to-post"
MallanagoudaB Jul 29, 2024
63cf12f
"added-new-userRole-api"
MallanagoudaB Jul 31, 2024
ff8fe8b
Merge pull request #115 from MallanagoudaB/targetedRoles-API
aks30 Aug 1, 2024
f24819a
elevate entity management new version
priyanka-TL Aug 2, 2024
29aef1f
Merge branch 'unnati' of https://github.com/ELEVATE-Project/utils int…
adithyadinesh0412 Aug 6, 2024
9a2d318
added upForReview listing api
adithyadinesh0412 Aug 6, 2024
9205b23
Merge pull request #117 from adithyadinesh0412/unnati
priyanka-TL Aug 6, 2024
424164c
comment route added
priyanka-TL Aug 7, 2024
c5be822
updated route
priyanka-TL Aug 7, 2024
fb8f998
verifyCertificate & certificate listing api configs fix
Prajwal17Tunerlabs Aug 7, 2024
1c464e0
review api added
priyanka-TL Aug 8, 2024
9229b24
certificateBaseTemplate & certificateTemplate configs added
Prajwal17Tunerlabs Aug 8, 2024
6599fd7
createSvg config added
Prajwal17Tunerlabs Aug 8, 2024
84ad0bc
Merge pull request #119 from ELEVATE-Project/verifyCertificate-config…
VISHNUDAS-tunerlabs Aug 8, 2024
18d2797
package version jump
VISHNUDAS-tunerlabs Aug 8, 2024
ee06bb9
certificateReissue configs added
Prajwal17Tunerlabs Aug 8, 2024
0453897
Merge pull request #120 from ELEVATE-Project/certificate-config-fix
VISHNUDAS-tunerlabs Aug 8, 2024
a09aa9a
certificate callback configs added
Prajwal17Tunerlabs Aug 8, 2024
d88430d
Merge pull request #121 from ELEVATE-Project/certificate-config-fix
VISHNUDAS-tunerlabs Aug 8, 2024
0de829f
version upgraded
VISHNUDAS-tunerlabs Aug 8, 2024
af52107
configuration/read api config fix
Prajwal17Tunerlabs Aug 9, 2024
5b2d354
api corrected
adithyadinesh0412 Aug 9, 2024
6a4fd47
Merge pull request #124 from adithyadinesh0412/unnati
adithyadinesh0412 Aug 9, 2024
4dcc108
Merge pull request #123 from ELEVATE-Project/configuration/read-confi…
VISHNUDAS-tunerlabs Aug 11, 2024
7d79e59
version updated, project service
VISHNUDAS-tunerlabs Aug 11, 2024
82fd923
reviews start api added to SCP
adithyadinesh0412 Aug 14, 2024
e5c3bf9
Merge pull request #127 from adithyadinesh0412/unnati
adithyadinesh0412 Aug 14, 2024
6384289
cloud services configs added
Prajwal17Tunerlabs Aug 20, 2024
bd31eb0
Merge pull request #133 from ELEVATE-Project/cloud-services-configs-fix
aks30 Aug 20, 2024
dbb2094
fetch projects added for scp to elevate-projects
adithyadinesh0412 Aug 20, 2024
857c25a
package project updated
priyanka-TL Aug 21, 2024
c0484de
fetch projects added for scp to elevate-projects
adithyadinesh0412 Aug 22, 2024
ca58755
Merge pull request #137 from ELEVATE-Project/master
priyanka-TL Aug 23, 2024
7ab2d08
review comments addressed
adithyadinesh0412 Aug 23, 2024
89e4783
Merge branch 'unnati' of https://github.com/ELEVATE-Project/utils int…
adithyadinesh0412 Aug 23, 2024
a2a70f1
review comments plus samiksha push
adithyadinesh0412 Aug 23, 2024
598ed47
added common file in samiksha
adithyadinesh0412 Aug 23, 2024
80ec085
added common file in samiksha
adithyadinesh0412 Aug 23, 2024
9fb1260
key correction
adithyadinesh0412 Aug 23, 2024
e3cd6a0
review comments addressed
adithyadinesh0412 Aug 23, 2024
b170c0a
review comments addressed
adithyadinesh0412 Aug 23, 2024
0b955c7
Merge pull request #134 from adithyadinesh0412/elevate-scp
adithyadinesh0412 Aug 26, 2024
f973b6c
version update
priyanka-TL Aug 26, 2024
762308b
user service changes for projects
adithyadinesh0412 Aug 26, 2024
578e76a
Merge pull request #138 from adithyadinesh0412/unnati
adithyadinesh0412 Aug 26, 2024
a37524e
updated scp route
priyanka-TL Aug 28, 2024
537ec02
Merge pull request #140 from ELEVATE-Project/cloudRoute
priyanka-TL Aug 28, 2024
05dece7
route updated
priyanka-TL Aug 28, 2024
03beba8
Merge pull request #141 from ELEVATE-Project/cloudRoute
priyanka-TL Aug 28, 2024
1e1ef0d
savepoint
borkarsaish65 Aug 29, 2024
fa7cb1b
added one more route
borkarsaish65 Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#521733",
"titleBar.activeBackground": "#732147",
"titleBar.activeForeground": "#FEFCFD"
}
}
31 changes: 27 additions & 4 deletions Files-Cloud-Storage/lib/aws/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ module.exports = class AwsS3FileHelper {
* @param {string} destFilePath - Stored file path - i.e location from bucket - ex - users/profile.png
* @param {string} bucketName - aws s3 storage bucket in which action is peformed over file
* @param {string} bucketRegion - aws region where bucket will be located, ex - ap-south-1
* @param {Number} expires - link expiration in seconds
* @returns {Promise<string>} Get downloadable url link
*/
static async getDownloadableUrl(destFilePath, bucketName, bucketRegion) {
static async getDownloadableUrl(destFilePath, bucketName, bucketRegion, expires = '') {
if (!destFilePath) {
const error = new Error('destFilePath is not passed in parameter')
error.code = 500
Expand All @@ -227,13 +228,35 @@ module.exports = class AwsS3FileHelper {
error.code = 500
throw error
}

try {
const downloadableUrl = `https://${bucketName}.s3.${bucketRegion}.amazonaws.com/${destFilePath}`
return downloadableUrl
/* Instantiate S3 class with credentials and region */
const s3 = new S3({
region: bucketRegion,
})

// Determine expiry
const expiry = expires ? parseInt(expires) : 1800;// Default expiry: 5 min (in seconds)

/* Get the signed URL with the specified expiry */
const params = {
Bucket: bucketName,
Key: destFilePath,
Expires: expiry,
}

const signedUrl = await s3.getSignedUrlPromise('getObject', params)

return signedUrl
} catch (error) {
throw error
}
// keeping this here to enable in 3.0
// try {
// const downloadableUrl = `https://${bucketName}.s3.${bucketRegion}.amazonaws.com/${destFilePath}`
// return downloadableUrl
// } catch (error) {
// throw error
// }
}

/**
Expand Down
75 changes: 75 additions & 0 deletions Files-Cloud-Storage/lib/gcp/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,81 @@ module.exports = class GcpFileHelper {
}
}

/**
* Get downloadable url of uploaded object
* @method
* @name getSignedDownloadableUrl
* @param {destFilePath} destFilePath - Stored file path - location from bucket - ex - users/profile.png
* @param {string} bucketName - google cloud storage bucket in which action is peformed over file
* @param {string} gcpProjectId - google cloud storage project id
* @param {string} gcpJsonFilePath - google cloud storage json configuration file absolute path for connectivity
* @param {string} expiry - downloadable url expiration time - In ms from current time - type number | string | Date
* @returns {Promise<string>} - Downloadable url
* @see gcpProjectId - Get from gcp console
* @see gcpJsonFilePath - - Download file from manage storage api key section
*/
static async getSignedDownloadableUrl({ destFilePath, bucketName, gcpProjectId, gcpJsonFilePath, expiry }) {
// Ensure all parameters are provided
if (!destFilePath) {
const error = new Error('destFilePath is not passed in parameter')
error.code = 500
throw error
}

if (typeof destFilePath !== 'string') {
const error = new Error('expected destFilePath as string')
error.code = 500
throw error
}

if (!bucketName) {
const error = new Error('bucketName is not passed in parameter')
error.code = 500
throw error
}

if (!gcpProjectId) {
const error = new Error('gcpProjectId is not passed in parameter')
error.code = 500
throw error
}

if (!gcpJsonFilePath) {
const error = new Error('gcpJsonFilePath is not passed in parameter')
error.code = 500
throw error
}

if (typeof gcpJsonFilePath !== 'string') {
const error = new Error('expected gcpJsonFilePath as string')
error.code = 500
throw error
}
// Set default expiry time to 15 minutes (if expiry is not provided)
const defaultExpiry = 30 * 60 * 1000 // 15 minutes in milliseconds
const expires = expiry || (Date.now() + defaultExpiry)

// Instantiate the cloud storage client
const storage = new Storage({
projectId: gcpProjectId,
keyFilename: gcpJsonFilePath
})

try {
// Generate a signed URL for downloading the file
const options = {
version: 'v4',
action: 'read',
expires: expires,
}
const [signedUrl] = await storage.bucket(bucketName).file(destFilePath).getSignedUrl(options)

return signedUrl; // Return the signed URL for downloading the file
} catch (error) {
throw error
}
}

/**
* Delete a folder and its contents from a GCP bucket.
* @param {string} bucketName - Google Cloud Storage bucket name.
Expand Down
44 changes: 40 additions & 4 deletions Files-Cloud-Storage/lib/oci/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,12 @@ module.exports = class OCIFileHelper {
* @param {string} destFilePath - Stored file path - i.e location from bucket - ex - users/profile.png
* @param {string} bucketName - oci storage bucket in which action is peformed over file
* @param {string} bucketRegion - oci region where bucket will be located, ex - ap-south-1
* @param {string} accessKeyId - oci access key id
* @param {string} secretAccessKey - oci secret access key
* @returns {Promise<string>} Get downloadable url link
*/

static async getDownloadableUrl({ destFilePath, bucketName, endpoint }) {
static async getDownloadableUrl({ destFilePath, bucketName, endpoint, expires = '', accessKeyId = '', secretAccessKey = '', bucketRegion = '' }) {
if (!destFilePath) {
const error = new Error('destFilePath is not passed in parameter')
error.code = 500
Expand All @@ -265,13 +267,47 @@ module.exports = class OCIFileHelper {
error.code = 500
throw error
}

try {
let downloadableUrl = `${endpoint}/${bucketName}/${destFilePath}`
/* Instantiate S3 class with credentials and region */

const s3Config = {
signatureVersion: 'v4',
s3ForcePathStyle: true,
endpoint: endpoint,
}

// Add accessKeyId, secretAccessKey, and region if provided
if (accessKeyId && secretAccessKey && bucketRegion) {
s3Config.accessKeyId = accessKeyId;
s3Config.secretAccessKey = secretAccessKey;
s3Config.region = bucketRegion;
}

const s3 = new S3(s3Config);

const expiry = expires ? parseInt(expires) : 1800;// Default expiry: 5min (in seconds)
/* Get the signed URL with the specified expiry */
const params = {
Bucket: bucketName,
Key: destFilePath,
Expires: expiry
}

const downloadableUrl = await s3.getSignedUrlPromise('getObject', params)

return { downloadableUrl, filePath: destFilePath }
} catch (error) {
throw error
throw error;
}

// Keeping it here. in 3.0 we have to enable this logic and move above logic to new function
// try {
// let downloadableUrl = `${endpoint}/${bucketName}/${destFilePath}`
// return { downloadableUrl, filePath: destFilePath }
// } catch (error) {
// throw error
// }
}
/**
* Remove a folder and its contents from an OCI bucket
Expand Down
2 changes: 1 addition & 1 deletion Files-Cloud-Storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elevate-cloud-storage",
"version": "2.1.0",
"version": "2.6.4",
"description": "This is npm package which exports the functions to upload file in GCP, AWS S3 and AZURE",
"main": "index.js",
"scripts": {
Expand Down
Loading