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

Add Svix Api client for csharp #248

Merged
merged 47 commits into from
Apr 21, 2022
Merged

Add Svix Api client for csharp #248

merged 47 commits into from
Apr 21, 2022

Commits on Apr 21, 2022

  1. Configuration menu
    Copy the full SHA
    f5c2393 View commit details
    Browse the repository at this point in the history
  2. Added Newtonsoft.Json and Polly to Svix assembly.

    These NuGet packages are dependencies required by the generated OpenAPI code
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    f122fe3 View commit details
    Browse the repository at this point in the history
  3. Updated Svix assembly to include Generated root directory

    Updated gitignore to ignore generated Svix directory
    
    Since we're using pre-created Project/Solution files this includes the root directory for our generated content but ignores the actual generated source. Doing so prevents generated source code from being included in source control.
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    80a4741 View commit details
    Browse the repository at this point in the history
  4. Refactored package.json to include generator scripts

    Added csharp generator script to regen_openapi.sh for consistency
    
    Instead of running a shell scriptto generate all libraries, they can now be built by running 'yarn generate'. Each library can now be generated individually. ex 'yarn gen:csharp'.
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    54e7cfc View commit details
    Browse the repository at this point in the history
  5. Created Models namespace

    Migrated existing Webhook into Models namespace
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    3fe00a9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5c1dda5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b21a88b View commit details
    Browse the repository at this point in the history
  8. Was able to remove --global-properties

    Ignoring src/ directory works because we're changing the location that the client is generated. See csharp/openapi-generator-config.json
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    b88cb11 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dacc364 View commit details
    Browse the repository at this point in the history
  10. Refactored ServiceUrl to ServerUrl

    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    9ca8093 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    88f68e5 View commit details
    Browse the repository at this point in the history
  12. Refactored AccessToken from options to client parameter

    Refactored SvixClientOptions to ClientOptions
    
    Removed Microsoft.Extensions.Options and updated constructors
    
    Updated Tests
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    5cc8787 View commit details
    Browse the repository at this point in the history
  13. Refactored SvixClient and Health to use interfaces

    Refactored Health to inherit from SvixResourceBase which contains common configuration across all Svix Api resources
    
    - Updated HealthTests.
    
    - SvixOptions now implements an ISvixOptions interface.
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    371babb View commit details
    Browse the repository at this point in the history
  14. Started adding Application Api integration

    Implemented List and ListAsync with accompanying unit tests
    
    - Added Mock to Svix.Tests assembly.
    
    - Added Application to SvixClient.
    
    - SvixClient constructor uses constructor injection to optionally inject SvixApi clients. If one is not provided, SvixClient will internally create one using the options provided. This is currently being used to inject mock ApiClients in the Svix.Tests assembly to verify our Api wrapper is working correctly.
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    6a44231 View commit details
    Browse the repository at this point in the history
  15. Added Application Create and CreateAsync

    Implemented accompanying unit tests
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    4596155 View commit details
    Browse the repository at this point in the history
  16. Added remaining Application resources

    Includes Delete and Update methods
    
    - Included async methods
    
    - Added methods to IApplication interface
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    135044a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b758696 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    f1727dc View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6b82bad View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    43fd0bc View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    31b695b View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    1cba562 View commit details
    Browse the repository at this point in the history
  23. Started implementing MessageAttempt Api

    Refactored custom options into ListOptions
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    f6be666 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    73e27db View commit details
    Browse the repository at this point in the history
  25. Started implementing Endpoint Api

    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    1b68d41 View commit details
    Browse the repository at this point in the history
  26. Started implementing EventType Api

    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    9f27568 View commit details
    Browse the repository at this point in the history
  27. Started implementing Message Api

    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    f03279c View commit details
    Browse the repository at this point in the history
  28. Updated MessageAttempt Api

    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    0316c2e View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    a02d414 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    aa1595e View commit details
    Browse the repository at this point in the history
  31. Added remaining Api client wrappers to SvixClient

    Includes client wrappers for Authentication, Endpoint, EventType, Integration, Message, and MessageAttempt
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    4adf99e View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    fcf3f16 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    d48fc15 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    3faa045 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    255027e View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    de9df8f View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    188b41c View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    7f5c423 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    182f05c View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    951ea28 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    9e5e2d4 View commit details
    Browse the repository at this point in the history
  42. Added missing tests for Application Api client wrapper

    Updated Api client error messages
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    a528d6d View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    dd992c6 View commit details
    Browse the repository at this point in the history
  44. Cleaned up tests

    Removed unused Dispose method and unnecessary async
    
    - Added missing comma to package.json
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    43af542 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    99c2042 View commit details
    Browse the repository at this point in the history
  46. Updated MessageAttempt Api client wrapper tests to iinclude schanges …

    …required after rebase
    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    84e67e2 View commit details
    Browse the repository at this point in the history
  47. Ran dotnet-format on project

    wyldmagic-joshua authored and tasn committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    17bfd68 View commit details
    Browse the repository at this point in the history