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

Merge v0.4.0 #560

Merged
merged 334 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
334 commits
Select commit Hold shift + click to select a range
afc9837
added logic in main json converter to handle null#s which MUST be wri…
pingu2k4 Oct 27, 2024
e71ab60
added tests for update bool attribute
pingu2k4 Oct 27, 2024
9423326
added test to cover additional case with main converter
pingu2k4 Oct 27, 2024
ba6aee8
Added converter for nullable datetimes which we always want to write …
pingu2k4 Oct 27, 2024
41b81fc
Added tests for always null dt converter
pingu2k4 Oct 27, 2024
8cc4828
added create dateime attribute request
pingu2k4 Oct 27, 2024
c452627
added tests for create dateime attribute
pingu2k4 Oct 27, 2024
0eb2023
added update datetime atttribute request
pingu2k4 Oct 27, 2024
c178f17
added tests for update attribute request
pingu2k4 Oct 27, 2024
264a9f2
added create string attribute base request
pingu2k4 Oct 27, 2024
b2d2245
added tests for create string attribute base request
pingu2k4 Oct 27, 2024
512d955
added base request for updating string based attributes
pingu2k4 Oct 27, 2024
d367316
added tests for update string base attribute request
pingu2k4 Oct 27, 2024
522474f
added create email attribute request
pingu2k4 Oct 27, 2024
e533b9e
added tests for create email attribute request
pingu2k4 Oct 27, 2024
52b8a3c
added update email attribute request
pingu2k4 Oct 27, 2024
b1f1605
added tests for update email attribute request
pingu2k4 Oct 27, 2024
1ddfcf0
Adjusted create string attribute base tests to take valid default value
pingu2k4 Oct 27, 2024
81651a5
updated update string base request tests to take a valid default valu…
pingu2k4 Oct 27, 2024
3e96feb
Added create enum attribute request
pingu2k4 Oct 27, 2024
791d85d
Added tests for create enum attribute request
pingu2k4 Oct 27, 2024
445ec9a
added update enum attribute request
pingu2k4 Oct 27, 2024
e2c69a9
added tests for update enum attribute request
pingu2k4 Oct 27, 2024
e194c94
Added CreateFloatAttributeRequest
pingu2k4 Oct 27, 2024
25c80bc
added tests for create float attribute request
pingu2k4 Oct 27, 2024
5af0090
added update float attribute request
pingu2k4 Oct 27, 2024
5d94c17
added tests for update float attribute request
pingu2k4 Oct 27, 2024
079b323
added create integer attribute request
pingu2k4 Oct 27, 2024
d0e33b2
added tests for create integer attribute request
pingu2k4 Oct 27, 2024
ea54135
added update integer attribute request
pingu2k4 Oct 27, 2024
30fa7bf
added tests for update integer attribute request
pingu2k4 Oct 27, 2024
7a1aab2
Added create IP Address attreibute request
pingu2k4 Oct 27, 2024
60a4ec4
Added tests for create ip address request
pingu2k4 Oct 27, 2024
f8ca503
added update ip address attribute request
pingu2k4 Oct 31, 2024
f16de16
added tests for udpate up address attribute request
pingu2k4 Oct 31, 2024
c565723
added create relationship attribute request
pingu2k4 Oct 31, 2024
27e7014
added tests for create relationship attribute request
pingu2k4 Oct 31, 2024
67d66d2
Merge pull request #529 from PinguApps/main
pingu2k4 Nov 6, 2024
cd3a4bf
Merge branch 'dev' into 388-create-core-for-databases-api
pingu2k4 Nov 7, 2024
b20950e
added enum json converters to create relationship attribute request
pingu2k4 Nov 7, 2024
345029b
added update relationship attribute request
pingu2k4 Nov 7, 2024
4300331
added tests for update relationship attribute request
pingu2k4 Nov 7, 2024
613bb82
added create string attirbute request
pingu2k4 Nov 7, 2024
446d917
partially added tests for create string attribute request
pingu2k4 Nov 7, 2024
13c3db4
Update alstr/todo-to-issue-action digest to efb8b98
renovate[bot] Nov 8, 2024
cd54d4f
Merge pull request #530 from PinguApps/renovate/alstr-todo-to-issue-a…
pingu2k4 Nov 8, 2024
a60dc8c
add security checkbox to pr template
pingu2k4 Nov 9, 2024
3d2b6e5
added security section to release drafter
pingu2k4 Nov 9, 2024
79744be
Merge pull request #531 from PinguApps/527-task-add-security-section-…
pingu2k4 Nov 9, 2024
b62f580
Merge branch 'dev' into 388-create-core-for-databases-api
pingu2k4 Nov 9, 2024
7c3bfd8
completed tests for create string attribute request
pingu2k4 Nov 9, 2024
fedbc41
Added update string attribute request
pingu2k4 Nov 9, 2024
abcea9c
added tests for update string attribute request
pingu2k4 Nov 9, 2024
046522f
added request to create url attribute
pingu2k4 Nov 9, 2024
848e742
Added tests for create url attribute request
pingu2k4 Nov 9, 2024
626d90b
added update url attribute request
pingu2k4 Nov 9, 2024
287f7ad
added tests for update url attribute request
pingu2k4 Nov 9, 2024
4f75d85
added get attribute request
pingu2k4 Nov 9, 2024
ebe09b9
added tests for get attribute request
pingu2k4 Nov 9, 2024
81df6d0
added delete attribute request
pingu2k4 Nov 9, 2024
3c1b638
added tests for delete attribute request
pingu2k4 Nov 9, 2024
6c682b1
Update alstr/todo-to-issue-action digest to 59c6b53
renovate[bot] Nov 12, 2024
712453f
Merge pull request #532 from PinguApps/renovate/alstr-todo-to-issue-a…
pingu2k4 Nov 12, 2024
a728654
Added request for list documents
pingu2k4 Nov 12, 2024
5422c06
added tests for list documents request
pingu2k4 Nov 12, 2024
c1e5b61
Added generic version of create document request generic
pingu2k4 Nov 12, 2024
bf48d19
Added create document request builder and utils
pingu2k4 Nov 12, 2024
2d2d3b7
added tests for create document request builder
pingu2k4 Nov 12, 2024
db989a9
Added tests for non generic create document request
pingu2k4 Nov 12, 2024
265ff8a
Ensured that CreateDocumentRequest (non generic) cannot be instantiat…
pingu2k4 Nov 12, 2024
3ab0d08
added intellisense docs for generic create document request
pingu2k4 Nov 12, 2024
943acc4
Added request for get document
pingu2k4 Nov 12, 2024
7d2f342
added tests for get document request
pingu2k4 Nov 12, 2024
37c76c5
Update alstr/todo-to-issue-action digest to 5157ba9
renovate[bot] Nov 12, 2024
054548d
Merge pull request #533 from PinguApps/renovate/alstr-todo-to-issue-a…
pingu2k4 Nov 12, 2024
1a9f9a4
Update dotnet monorepo to v9
renovate[bot] Nov 14, 2024
74d41ce
Update danielpalme/ReportGenerator-GitHub-Action action to v5.4.0
renovate[bot] Nov 14, 2024
5a22da2
Merge pull request #534 from PinguApps/renovate/major-dotnet-monorepo
pingu2k4 Nov 14, 2024
e5cfb82
Merge pull request #535 from PinguApps/renovate/danielpalme-reportgen…
pingu2k4 Nov 14, 2024
0b230e4
Update danielpalme/ReportGenerator-GitHub-Action action to v5.4.1
renovate[bot] Nov 14, 2024
53325ef
Added update document request, as well as adding missing methods to p…
pingu2k4 Nov 14, 2024
69a1d6a
Added tests for update document request builder
pingu2k4 Nov 14, 2024
399e31d
partial completion of tests for update document request
pingu2k4 Nov 14, 2024
9129c26
Completed tests for update document request
pingu2k4 Nov 14, 2024
ba71303
Added utility to compare a before and after object in order to update…
pingu2k4 Nov 14, 2024
677b415
added tests to cover additional functionality within update docuemnt …
pingu2k4 Nov 14, 2024
df4e351
Update dependency FluentValidation to 11.11.0
renovate[bot] Nov 18, 2024
87e5435
Merge pull request #536 from PinguApps/renovate/danielpalme-reportgen…
pingu2k4 Nov 19, 2024
54d4cd5
Merge pull request #537 from PinguApps/renovate/fluentvalidation-11.x
pingu2k4 Nov 19, 2024
b63c14f
#538 Ensured that PR's labelled as dependencies cannot be marked as s…
pingu2k4 Nov 19, 2024
471140d
addded delete document request
pingu2k4 Nov 19, 2024
21d89ff
added tests for delete document request
pingu2k4 Nov 19, 2024
37d1f0c
added request for list indexes
pingu2k4 Nov 19, 2024
97cb5da
added tests for list indexes request
pingu2k4 Nov 19, 2024
c9f422d
added upper case enum converter
pingu2k4 Nov 19, 2024
a3b9b1a
added upper case enum list converter
pingu2k4 Nov 19, 2024
e61da59
added sort direction enum
pingu2k4 Nov 19, 2024
c1a2724
added create index request (needs validator)
pingu2k4 Nov 19, 2024
058d2f1
Update dependency Microsoft.NET.Test.Sdk to 17.12.0
renovate[bot] Nov 21, 2024
411df50
Added validator for Create Index Request
pingu2k4 Nov 21, 2024
460fbb1
added tests for create index request
pingu2k4 Nov 21, 2024
681c637
added tests for upper case enum converter
pingu2k4 Nov 21, 2024
0d91e4b
Added tests for upper case enum list converter
pingu2k4 Nov 21, 2024
2a5932d
added get index request
pingu2k4 Nov 21, 2024
589743d
added tests for get index request
pingu2k4 Nov 21, 2024
979a61b
added delete index request
pingu2k4 Nov 21, 2024
89ff014
added delete index request tests
pingu2k4 Nov 21, 2024
c2f12e7
cleaned up comments etc
pingu2k4 Nov 21, 2024
f077778
Opened the IDatabaseApi ready for adding more endpoints to
pingu2k4 Nov 21, 2024
b483a33
altared get to list, and added create database to intenranl
pingu2k4 Nov 21, 2024
24990b3
Update alstr/todo-to-issue-action digest to 7b4aab7
renovate[bot] Nov 22, 2024
1750005
Merge pull request #539 from PinguApps/renovate/vstest-monorepo
pingu2k4 Nov 23, 2024
5145639
Merge pull request #540 from PinguApps/renovate/alstr-todo-to-issue-a…
pingu2k4 Nov 23, 2024
5b346b1
Renamed some requests etc
pingu2k4 Nov 23, 2024
6338db0
Completed internal DB interface with AI auto complete - Will need to …
pingu2k4 Nov 23, 2024
8359212
Reorganised the order of IDatabaseApi
pingu2k4 Nov 23, 2024
35d51da
added base for databases client oin server
pingu2k4 Nov 23, 2024
045e9c2
Completed Database Client on server
pingu2k4 Nov 23, 2024
4c70988
Added db client to appwrite client
pingu2k4 Nov 23, 2024
af487ca
added db api and client to DI extensions
pingu2k4 Nov 23, 2024
d5008c1
added IDatabasesApi for client
pingu2k4 Nov 23, 2024
d0bf2cc
added databases client for client
pingu2k4 Nov 23, 2024
9d3ea4a
Added databases client to appwrite client
pingu2k4 Nov 23, 2024
9705703
pulled up to interface
pingu2k4 Nov 23, 2024
6e21f0f
added db client etc to service collection extensions
pingu2k4 Nov 23, 2024
10eeebe
Fixed tests
pingu2k4 Nov 23, 2024
c52f938
#541 Changed injection of clients to factory pattern
pingu2k4 Nov 23, 2024
0568812
Remove blank line
pingu2k4 Nov 23, 2024
ab8e0db
Remove Blank Line
pingu2k4 Nov 23, 2024
b8f7fcd
Remove Blank Line
pingu2k4 Nov 23, 2024
88a4c71
Remove Blank Line
pingu2k4 Nov 23, 2024
273f1fa
[CodeFactor] Apply fixes
code-factor Nov 23, 2024
32aad36
Merge pull request #542 from PinguApps/388-create-core-for-databases-api
pingu2k4 Nov 23, 2024
07549d4
Update alstr/todo-to-issue-action digest to 3ac81cb
renovate[bot] Nov 26, 2024
c85892a
Merge pull request #543 from PinguApps/renovate/alstr-todo-to-issue-a…
pingu2k4 Nov 26, 2024
231485d
Partial implementation of GenericDocument response object - Requires …
pingu2k4 Nov 26, 2024
7f732fb
Added tests for the new converters etc
pingu2k4 Nov 27, 2024
4de2e4e
Update tests/PinguApps.Appwrite.Shared.Tests/Converters/DocumentGener…
pingu2k4 Nov 27, 2024
ed37438
Merge pull request #545 from PinguApps/544-documents-utils
pingu2k4 Nov 27, 2024
4d490d8
Implemented ListDatabases
pingu2k4 Nov 28, 2024
e195f46
Added tests for ListDatabases
pingu2k4 Nov 28, 2024
f0812f7
Update README.md
pingu2k4 Nov 28, 2024
1ad0374
Merge pull request #547 from PinguApps/345-list-databases
pingu2k4 Nov 28, 2024
c6c9854
implemented create database
pingu2k4 Nov 28, 2024
9d4ea4a
added tests for create database
pingu2k4 Nov 28, 2024
e16a59f
Update README.md
pingu2k4 Nov 28, 2024
f045c77
Merge pull request #548 from PinguApps/346-create-database
pingu2k4 Nov 28, 2024
976d71d
implemented delete database
pingu2k4 Nov 28, 2024
0a926d1
added tests for delete database
pingu2k4 Nov 28, 2024
d8a063a
Update README.md
pingu2k4 Nov 28, 2024
d4db0d1
Merge pull request #549 from PinguApps/349-delete-database
pingu2k4 Nov 28, 2024
25a78e2
implemented get database
pingu2k4 Nov 28, 2024
23003d8
added tests for get database
pingu2k4 Nov 28, 2024
5995bae
Update README.md
pingu2k4 Nov 28, 2024
663a9ff
Merge pull request #550 from PinguApps/347-get-database
pingu2k4 Nov 28, 2024
30bae7a
implemented update database
pingu2k4 Nov 28, 2024
174ca08
added tests for update database
pingu2k4 Nov 28, 2024
772e30e
implemented list collections
pingu2k4 Nov 28, 2024
f3bc48d
added tests for list collections
pingu2k4 Nov 28, 2024
5eb4301
implemented create collection
pingu2k4 Nov 28, 2024
b760f31
added tests for create collection
pingu2k4 Nov 28, 2024
4bdc16f
implemented delete collection
pingu2k4 Nov 28, 2024
7f12baa
added tests for delete collection
pingu2k4 Nov 28, 2024
b311bfb
implemented get collection
pingu2k4 Nov 28, 2024
91a3b3e
added tests for get collection
pingu2k4 Nov 28, 2024
f9559dc
implemented update collection
pingu2k4 Nov 28, 2024
dc93fb4
added tests for update collection
pingu2k4 Nov 28, 2024
d1589b5
implemented list attributes
pingu2k4 Nov 28, 2024
eb89f1f
added tests for list attributes
pingu2k4 Nov 28, 2024
72ba4e6
implemented create boolean attribute
pingu2k4 Nov 28, 2024
05ec6e3
Added tests for create boolean attribute
pingu2k4 Nov 28, 2024
3d7e0d0
Update README.md
pingu2k4 Nov 28, 2024
cf82971
Merge pull request #551 from PinguApps/348-update-database
pingu2k4 Nov 28, 2024
0e95238
Implemented Update attribute
pingu2k4 Dec 2, 2024
6ef81f8
Added tests for Update attribute
pingu2k4 Dec 2, 2024
3b3d85b
#358 Implemented create date time attribute
pingu2k4 Dec 3, 2024
26195c6
added tests for create datetime attribute
pingu2k4 Dec 3, 2024
e83afbe
Updated float attribute to use double over float
pingu2k4 Dec 3, 2024
426fa9d
Fixed tests and converted int to long for int attribute
pingu2k4 Dec 3, 2024
b0ea732
#359 #360 #361 #362 #363 #364 #365 #366 #367 #368 #369 #370 #371 #372…
pingu2k4 Dec 3, 2024
fab3f5b
Added empty test classes where tests are required
pingu2k4 Dec 3, 2024
975b495
added tests for update datetime attribute
pingu2k4 Dec 3, 2024
f2c2034
added tests for create email attribute
pingu2k4 Dec 3, 2024
4ed4994
added tests for update email attribute
pingu2k4 Dec 4, 2024
1198040
added tests for create enum attribute
pingu2k4 Dec 4, 2024
3970d3f
added tests for update enum attribute
pingu2k4 Dec 4, 2024
7182a3d
added tests for create float attribute
pingu2k4 Dec 4, 2024
0fd9781
added tests for update float attribute
pingu2k4 Dec 4, 2024
c53a1ac
added tests for create int attribute
pingu2k4 Dec 4, 2024
4262aa5
added tests for update int attribute
pingu2k4 Dec 4, 2024
d6417d8
added tests for create ip attribute
pingu2k4 Dec 4, 2024
c0e644b
added tests for update ip attribute
pingu2k4 Dec 4, 2024
5d74283
added tests for create relationship attribute
pingu2k4 Dec 4, 2024
72fb9a9
added tests for create string attribute
pingu2k4 Dec 4, 2024
fc06fd0
added tests for update string attribute
pingu2k4 Dec 4, 2024
021f588
added tests for create url attribute
pingu2k4 Dec 4, 2024
0c245da
added tests for update url attribute
pingu2k4 Dec 4, 2024
f53f099
added tests for update relationship attribute
pingu2k4 Dec 4, 2024
f02db4a
Update README.md
pingu2k4 Dec 4, 2024
c9df8ed
Merge pull request #552 from PinguApps/update-boolean-attribute
pingu2k4 Dec 4, 2024
8a05123
Implemented get attribute
pingu2k4 Dec 4, 2024
bd326bd
Update actions/cache digest to 1bd1e32
renovate[bot] Dec 5, 2024
2f744e2
added tests for get attribute
pingu2k4 Dec 6, 2024
026a375
Implemented delete attribute
pingu2k4 Dec 6, 2024
891b93a
added tests for delete attribute
pingu2k4 Dec 6, 2024
906e588
Update README.md
pingu2k4 Dec 6, 2024
1cb7243
Merge pull request #554 from PinguApps/375-get-attribute
pingu2k4 Dec 6, 2024
58bfc36
Merge pull request #553 from PinguApps/renovate/actions-cache-digest
pingu2k4 Dec 6, 2024
b44d450
Implemented list indexes
pingu2k4 Dec 6, 2024
519b176
added tests for list indexes
pingu2k4 Dec 6, 2024
b0320c7
implemented create index
pingu2k4 Dec 6, 2024
2a3faa2
added tests for create index
pingu2k4 Dec 6, 2024
168c183
implemented delete index
pingu2k4 Dec 6, 2024
506f445
added tests for delete index
pingu2k4 Dec 6, 2024
e254695
implemented get index
pingu2k4 Dec 6, 2024
b77d853
added tests for get index
pingu2k4 Dec 6, 2024
2243fe7
Update README.md
pingu2k4 Dec 6, 2024
ef242d4
Merge pull request #555 from PinguApps/database-indexes
pingu2k4 Dec 6, 2024
75f48f2
Update alstr/todo-to-issue-action digest to f357c40
renovate[bot] Dec 6, 2024
c929cf8
Merge pull request #556 from PinguApps/renovate/alstr-todo-to-issue-a…
pingu2k4 Dec 6, 2024
64a05e4
Implemented List Documents
pingu2k4 Dec 7, 2024
d79b5ee
added server tests for list documents
pingu2k4 Dec 8, 2024
fe431be
Ensured that client operations don't require a login, but will pass i…
pingu2k4 Dec 8, 2024
3321755
added tests for client List Documents
pingu2k4 Dec 8, 2024
dfebe32
Added WithData to CreateDocumentRequiestBuilder
pingu2k4 Dec 9, 2024
6a73ee8
Implemented CreateDocument (untested)
pingu2k4 Dec 9, 2024
663ca32
Update App.cs
pingu2k4 Dec 10, 2024
2c07a4f
Completed manual testing of CreateDocument
pingu2k4 Dec 10, 2024
33ab94a
Added extra xml docs to instruct user on how to create a create docum…
pingu2k4 Dec 10, 2024
596a77e
Added tests for create document
pingu2k4 Dec 10, 2024
f301803
Updated tests that were missing WithJsonContent
pingu2k4 Dec 10, 2024
3735cd4
Implemented delete document
pingu2k4 Dec 10, 2024
766d117
added tests for delete document
pingu2k4 Dec 10, 2024
599eb45
Implemented GetDocument and made chances to support query limiting th…
pingu2k4 Dec 10, 2024
7c5b761
Fixed failing tests for Document
pingu2k4 Dec 10, 2024
dc6d9cd
added tests for get document
pingu2k4 Dec 10, 2024
0041e2b
Removed unused variable from some tests
pingu2k4 Dec 10, 2024
8a282db
Implemented Update Document
pingu2k4 Dec 10, 2024
0c86908
Testing the before / after builder pattern for update document
pingu2k4 Dec 10, 2024
0f600e8
added tests for update document
pingu2k4 Dec 10, 2024
c3202a7
Added tests to each documents client method, to check that when neede…
pingu2k4 Dec 10, 2024
7cb674e
Update README.md
pingu2k4 Dec 10, 2024
9301dbe
Merge pull request #557 from PinguApps/database-documents
pingu2k4 Dec 10, 2024
fe7d004
fixed code quality issue for multiple classes per file
pingu2k4 Dec 10, 2024
3036829
Split up read method of Doc Generic Converter as it was too complex
pingu2k4 Dec 11, 2024
98e38c3
Spit up complex method in permission json converter
pingu2k4 Dec 11, 2024
5c5a167
Simplified complex read method in attribute json converter
pingu2k4 Dec 11, 2024
e3ec4b6
Merge pull request #558 from PinguApps/546-code-factor-quality
pingu2k4 Dec 11, 2024
5a70108
Bump Version
pingu2k4 Dec 11, 2024
c74b1f3
Merge pull request #559 from PinguApps/387-task-bump-api-version
pingu2k4 Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [ ] `feature`
- [ ] `bug`
- [ ] `docs`
- [ ] `security`
- [ ] `meta`
- [ ] `patch`
- [ ] `minor`
Expand Down
3 changes: 3 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ change-template: "- [#$NUMBER] $TITLE - Thanks to @$AUTHOR!"
exclude-labels:
- automated
categories:
- title: "🔒 Security"
labels:
- "security"
- title: "🚀 Features"
labels:
- "feature"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Nuget Cache
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
Expand All @@ -42,7 +42,7 @@ jobs:
run: dotnet test -c Release --no-build --verbosity normal --logger trx --collect:"XPlat Code Coverage"

- name: Combine Coverage Reports
uses: danielpalme/ReportGenerator-GitHub-Action@62f9e70ab348d56eee76d446b4db903a85ab0ea8 # v5.3.11
uses: danielpalme/ReportGenerator-GitHub-Action@810356ce07a94200154301fb73d878e327b2dd58 # v5.4.1
with:
reports: "**/*.cobertura.xml"
targetdir: "${{ github.workspace }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@53d8a86de9f2224b24c6a9009a8a1f56d4e1324d" # v5
uses: "alstr/todo-to-issue-action@f357c404fe00f5a17cd96696eaf6f8ce5fd19cf7" # v5
with:
INSERT_ISSUE_URLS: true
AUTO_ASSIGN: true
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
close-issue-message: 'Closing issue as it has been marked as stale for 3 days.'
close-pr-message: 'Closing PR as it has been marked as stale for 3 days.'
exempt-all-milestones: true
exempt-pr-labels: 'dependencies'
92 changes: 46 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ string emailAddressOrErrorMessage = userResponse.Result.Match(

## ⌛ Progress
<!-- `red` for first third, `gold` for second third, `forestgreen` for final third, `blue` for 100% -->
![Server & Client - 125 / 317](https://img.shields.io/badge/Server_&_Client-125%20%2F%20317-gold?style=for-the-badge)
![Server & Client - 172 / 317](https://img.shields.io/badge/Server_&_Client-172%20%2F%20317-gold?style=for-the-badge)

![Server - 65 / 224](https://img.shields.io/badge/Server-65%20%2F%20224-red?style=for-the-badge)
![Server - 107 / 224](https://img.shields.io/badge/Server-107%20%2F%20224-gold?style=for-the-badge)

![Client - 60 / 93](https://img.shields.io/badge/Client-60%20%2F%2093-gold?style=for-the-badge)
![Client - 65 / 93](https://img.shields.io/badge/Client-65%20%2F%2093-forestgreen?style=for-the-badge)

### 🔑 Key
| Icon | Definition |
Expand Down Expand Up @@ -275,52 +275,52 @@ string emailAddressOrErrorMessage = userResponse.Result.Match(
| [Update Preferences](https://appwrite.io/docs/references/1.6.x/client-rest/teams#updatePrefs) |||

### Databases
![Databases - 0 / 47](https://img.shields.io/badge/Databases-0%20%2F%2047-red?style=for-the-badge)
![Databases - 47 / 47](https://img.shields.io/badge/Databases-47%20%2F%2047-blue?style=for-the-badge)

| Endpoint | Client | Server |
|:-:|:-:|:-:|
| [List Databases](https://appwrite.io/docs/references/1.6.x/server-rest/databases#list) || |
| [Create Databases](https://appwrite.io/docs/references/1.6.x/server-rest/databases#create) || |
| [Get Database](https://appwrite.io/docs/references/1.6.x/server-rest/databases#get) || |
| [Update Database](https://appwrite.io/docs/references/1.6.x/server-rest/databases#update) || |
| [Delete Database](https://appwrite.io/docs/references/1.6.x/server-rest/databases#delete) || |
| [List Collections](https://appwrite.io/docs/references/1.6.x/server-rest/databases#listCollections) || |
| [Create Collection](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createCollection) || |
| [Get Collections](https://appwrite.io/docs/references/1.6.x/server-rest/databases#getCollection) || |
| [Update Collection](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateCollection) || |
| [Delete Collection](https://appwrite.io/docs/references/1.6.x/server-rest/databases#deleteCollection) || |
| [List Attributes](https://appwrite.io/docs/references/1.6.x/server-rest/databases#listAttributes) || |
| [Create Boolean Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createBooleanAttribute) || |
| [Update Boolean Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateBooleanAttribute) || |
| [Create Datatime Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createDatetimeAttribute) || |
| [Update Datetime Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateDatetimeAttribute) || |
| [Create Email Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createEmailAttribute) || |
| [Update Email Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateEmailAttribute) || |
| [Create Enum Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createEnumAttribute) || |
| [Update Enum Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateEnumAttribute) || |
| [Create Float Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createFloatAttribute) || |
| [Update Float Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateFloatAttribute) || |
| [Create Integer Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createIntegerAttribute) || |
| [Update Integer attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateIntegerAttribute) || |
| [Create IP Address Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createIpAttribute) || |
| [Update IP Address Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateIpAttribute) || |
| [Create Relationship Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createRelationshipAttribute) || |
| [Create String Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createStringAttribute) || |
| [Update String Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateStringAttribute) || |
| [Create URL Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createUrlAttribute) || |
| [Update URL Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateUrlAttribute) || |
| [Get Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#getAttribute) || |
| [Delete Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#deleteAttribute) || |
| [Update Relationship Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateRelationshipAttribute) || |
| [List Documents](https://appwrite.io/docs/references/1.6.x/client-rest/databases#listDocuments) | | |
| [Create Document](https://appwrite.io/docs/references/1.6.x/client-rest/databases#createDocument) | | |
| [Get Document](https://appwrite.io/docs/references/1.6.x/client-rest/databases#getDocument) | | |
| [Update Document](https://appwrite.io/docs/references/1.6.x/client-rest/databases#updateDocument) | | |
| [Delete Document](https://appwrite.io/docs/references/1.6.x/client-rest/databases#deleteDocument) | | |
| [List Indexes](https://appwrite.io/docs/references/1.6.x/server-rest/databases#listIndexes) || |
| [Create Index](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createIndex) || |
| [Get Index](https://appwrite.io/docs/references/1.6.x/server-rest/databases#getIndex) || |
| [Delete Index](https://appwrite.io/docs/references/1.6.x/server-rest/databases#deleteIndex) || |
| [List Databases](https://appwrite.io/docs/references/1.6.x/server-rest/databases#list) || |
| [Create Databases](https://appwrite.io/docs/references/1.6.x/server-rest/databases#create) || |
| [Get Database](https://appwrite.io/docs/references/1.6.x/server-rest/databases#get) || |
| [Update Database](https://appwrite.io/docs/references/1.6.x/server-rest/databases#update) || |
| [Delete Database](https://appwrite.io/docs/references/1.6.x/server-rest/databases#delete) || |
| [List Collections](https://appwrite.io/docs/references/1.6.x/server-rest/databases#listCollections) || |
| [Create Collection](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createCollection) || |
| [Get Collections](https://appwrite.io/docs/references/1.6.x/server-rest/databases#getCollection) || |
| [Update Collection](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateCollection) || |
| [Delete Collection](https://appwrite.io/docs/references/1.6.x/server-rest/databases#deleteCollection) || |
| [List Attributes](https://appwrite.io/docs/references/1.6.x/server-rest/databases#listAttributes) || |
| [Create Boolean Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createBooleanAttribute) || |
| [Update Boolean Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateBooleanAttribute) || |
| [Create Datetime Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createDatetimeAttribute) || |
| [Update Datetime Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateDatetimeAttribute) || |
| [Create Email Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createEmailAttribute) || |
| [Update Email Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateEmailAttribute) || |
| [Create Enum Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createEnumAttribute) || |
| [Update Enum Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateEnumAttribute) || |
| [Create Float Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createFloatAttribute) || |
| [Update Float Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateFloatAttribute) || |
| [Create Integer Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createIntegerAttribute) || |
| [Update Integer attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateIntegerAttribute) || |
| [Create IP Address Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createIpAttribute) || |
| [Update IP Address Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateIpAttribute) || |
| [Create Relationship Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createRelationshipAttribute) || |
| [Create String Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createStringAttribute) || |
| [Update String Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateStringAttribute) || |
| [Create URL Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createUrlAttribute) || |
| [Update URL Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateUrlAttribute) || |
| [Get Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#getAttribute) || |
| [Delete Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#deleteAttribute) || |
| [Update Relationship Attribute](https://appwrite.io/docs/references/1.6.x/server-rest/databases#updateRelationshipAttribute) || |
| [List Documents](https://appwrite.io/docs/references/1.6.x/client-rest/databases#listDocuments) | | |
| [Create Document](https://appwrite.io/docs/references/1.6.x/client-rest/databases#createDocument) | | |
| [Get Document](https://appwrite.io/docs/references/1.6.x/client-rest/databases#getDocument) | | |
| [Update Document](https://appwrite.io/docs/references/1.6.x/client-rest/databases#updateDocument) | | |
| [Delete Document](https://appwrite.io/docs/references/1.6.x/client-rest/databases#deleteDocument) | | |
| [List Indexes](https://appwrite.io/docs/references/1.6.x/server-rest/databases#listIndexes) || |
| [Create Index](https://appwrite.io/docs/references/1.6.x/server-rest/databases#createIndex) || |
| [Get Index](https://appwrite.io/docs/references/1.6.x/server-rest/databases#getIndex) || |
| [Delete Index](https://appwrite.io/docs/references/1.6.x/server-rest/databases#deleteIndex) || |

### Storage
![storage - 0 / 21](https://img.shields.io/badge/Storage-0%20%2F%2021-red?style=for-the-badge)
Expand Down
5 changes: 2 additions & 3 deletions src/PinguApps.Appwrite.Client/Clients/AccountClient.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using PinguApps.Appwrite.Client.Clients;
using PinguApps.Appwrite.Client.Internals;
using PinguApps.Appwrite.Client.Utils;
Expand All @@ -17,9 +16,9 @@ public class AccountClient : SessionAwareClientBase, IAccountClient
private readonly IAccountApi _accountApi;
private readonly Config _config;

public AccountClient(IServiceProvider services, Config config)
internal AccountClient(IAccountApi accountApi, Config config)
{
_accountApi = services.GetRequiredService<IAccountApi>();
_accountApi = accountApi;
_config = config;
}

Expand Down
9 changes: 8 additions & 1 deletion src/PinguApps.Appwrite.Client/Clients/AppwriteClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ public class AppwriteClient : IAppwriteClient, ISessionAware
{
/// <inheritdoc/>
public IAccountClient Account { get; }

/// <inheritdoc/>
public ITeamsClient Teams { get; }

public AppwriteClient(IAccountClient accountClient, ITeamsClient teams)
/// <inheritdoc/>
public IDatabasesClient Databases { get; }

public AppwriteClient(IAccountClient accountClient, ITeamsClient teams, IDatabasesClient databasesClient)
{
Account = accountClient;
Teams = teams;
Databases = databasesClient;
}

string? ISessionAware.Session { get; set; }
Expand All @@ -36,5 +42,6 @@ public void SetSession(string? session)
(this as ISessionAware).UpdateSession(session);
(Account as ISessionAware)!.UpdateSession(session);
(Teams as ISessionAware)!.UpdateSession(session);
(Databases as ISessionAware)!.UpdateSession(session);
}
}
105 changes: 105 additions & 0 deletions src/PinguApps.Appwrite.Client/Clients/DatabasesClient.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
using System;
using System.Threading.Tasks;
using PinguApps.Appwrite.Client.Internals;
using PinguApps.Appwrite.Client.Utils;
using PinguApps.Appwrite.Shared;
using PinguApps.Appwrite.Shared.Requests.Databases;
using PinguApps.Appwrite.Shared.Responses;

namespace PinguApps.Appwrite.Client.Clients;

/// <inheritdoc/>
public class DatabasesClient : SessionAwareClientBase, IDatabasesClient
{
private readonly IDatabasesApi _databasesApi;

internal DatabasesClient(IDatabasesApi databasesApi)
{
_databasesApi = databasesApi;
}

/// <inheritdoc/>
public async Task<AppwriteResult<DocumentsList>> ListDocuments(ListDocumentsRequest request)
{
try
{
request.Validate(true);

var result = await _databasesApi.ListDocuments(GetCurrentSession(), request.DatabaseId, request.CollectionId, RequestUtils.GetQueryStrings(request.Queries));

return result.GetApiResponse();
}
catch (Exception e)
{
return e.GetExceptionResponse<DocumentsList>();
}
}

/// <inheritdoc/>
public async Task<AppwriteResult<Document>> CreateDocument(CreateDocumentRequest request)
{
try
{
request.Validate(true);

var result = await _databasesApi.CreateDocument(GetCurrentSession(), request.DatabaseId, request.CollectionId, request);

return result.GetApiResponse();
}
catch (Exception e)
{
return e.GetExceptionResponse<Document>();
}
}

/// <inheritdoc/>
public async Task<AppwriteResult> DeleteDocument(DeleteDocumentRequest request)
{
try
{
request.Validate(true);

var result = await _databasesApi.DeleteDocument(GetCurrentSession(), request.DatabaseId, request.CollectionId, request.DocumentId);

return result.GetApiResponse();
}
catch (Exception e)
{
return e.GetExceptionResponse();
}
}

/// <inheritdoc/>
public async Task<AppwriteResult<Document>> GetDocument(GetDocumentRequest request)
{
try
{
request.Validate(true);

var result = await _databasesApi.GetDocument(GetCurrentSession(), request.DatabaseId, request.CollectionId, request.DocumentId, RequestUtils.GetQueryStrings(request.Queries));

return result.GetApiResponse();
}
catch (Exception e)
{
return e.GetExceptionResponse<Document>();
}
}

/// <inheritdoc/>
public async Task<AppwriteResult<Document>> UpdateDocument(UpdateDocumentRequest request)
{
try
{
request.Validate(true);

var result = await _databasesApi.UpdateDocument(GetCurrentSession(), request.DatabaseId, request.CollectionId, request.DocumentId, request);

return result.GetApiResponse();
}
catch (Exception e)
{
return e.GetExceptionResponse<Document>();
}
}
}
Loading
Loading