package com.taf.dynamic.api import com.taf.dynamic.data.Form import com.taf.dynamic.data.FormWizard import com.taf.dynamic.data.FormWizardStep import com.taf.dynamic.data.UiModal import com.taf.dynamic.data.FormButton import com.taf.dynamic.data.Option import com.google.gson.JsonElement import retrofit2.http.Body import retrofit2.http.GET import retrofit2.http.POST import retrofit2.http.Path import retrofit2.http.Query interface ApiService { @POST("login") suspend fun login(@Body creds: Map): LoginResponse @GET("mobile_config") suspend fun mobileConfig(): List @GET("forms/{id}") suspend fun form(@Path("id") id: Int): Form @GET("forms/byName/{name}") suspend fun formByName(@Path("name") name: String): Form @GET("form_buttons") suspend fun formButtons(@Query("form_id") formId: Int): List @GET("form_wizards/{id}") suspend fun formWizard(@Path("id") id: Int): FormWizard @GET("form_wizards") suspend fun formWizardByName(@Query("name") name: String): FormWizard @GET("form_wizard_steps") suspend fun formWizardSteps(@Query("wizard_id") id: Int): List @GET("ui_modals/{id}") suspend fun uiModal(@Path("id") id: Int): UiModal @GET("{table}") suspend fun tableData(@Path("table") name: String): JsonElement @GET("form_builder/dynamic_options/{id}") suspend fun elementOptions(@Path("id") id: String): List