mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
shopping list delay fix and category change implemented
This commit is contained in:
@@ -6,17 +6,18 @@
|
||||
<v-card-text class="pt-0 pr-4 pl-4">
|
||||
|
||||
<v-label>{{ $t('Choose_Category') }}</v-label>
|
||||
<ModelSelect model="SupermarketCategory"></ModelSelect>
|
||||
<model-select model="SupermarketCategory" @update:modelValue="categoryUpdate"></model-select>
|
||||
|
||||
<v-row>
|
||||
<v-col class="pr-0">
|
||||
<v-btn height="80px" color="info" density="compact" size="small" block stacked @click="useShoppingStore().delayEntries(entriesList, !isDelayed, true); ">
|
||||
<v-btn height="80px" color="info" density="compact" size="small" block stacked @click="useShoppingStore().delayEntries(entriesList, !isShoppingLineDelayed, true); ">
|
||||
<i class="fa-solid fa-clock-rotate-left fa-2x mb-2"></i>
|
||||
{{ $t('Postpone') }} {{isDelayed}}
|
||||
{{ $t('Postpone') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-btn height="80px" color="secondary" density="compact" size="small" block stacked @click="useShoppingStore().setFoodIgnoredState(entriesList,true, true); showDialog = false">
|
||||
<v-btn height="80px" color="secondary" density="compact" size="small" block stacked
|
||||
@click="useShoppingStore().setFoodIgnoredState(entriesList,true, true); showDialog = false">
|
||||
<i class="fa-solid fa-eye-slash fa-2x mb-2"></i>
|
||||
{{ $t('Ignore_Shopping') }}
|
||||
</v-btn>
|
||||
@@ -24,7 +25,8 @@
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="pr-0 pt-0">
|
||||
<v-btn height="80px" color="primary" density="compact" size="small" :to="{name: 'ModelEditPage', params: {model: 'Food', id: props.shoppingListFood?.food.id!}}" target="_blank" block stacked>
|
||||
<v-btn height="80px" color="primary" density="compact" size="small"
|
||||
:to="{name: 'ModelEditPage', params: {model: 'Food', id: props.shoppingListFood?.food.id!}}" target="_blank" block stacked>
|
||||
<i class="fa-solid fa-pencil fa-2x mb-2"></i>
|
||||
{{ $t('Edit_Food') }}
|
||||
</v-btn>
|
||||
@@ -60,6 +62,9 @@
|
||||
<v-list-item-subtitle>
|
||||
{{ e.createdBy.displayName }} - {{ DateTime.fromJSDate(e.createdAt).toLocaleString(DateTime.DATETIME_SHORT) }}
|
||||
</v-list-item-subtitle>
|
||||
<v-list-item-subtitle v-if="e.delayUntil > new Date()">
|
||||
{{ $t('PostponedUntil') }} {{ DateTime.fromJSDate(e.delayUntil).toLocaleString(DateTime.DATETIME_SHORT) }}
|
||||
</v-list-item-subtitle>
|
||||
|
||||
<template #append>
|
||||
<v-btn size="small" color="delete" icon="$delete" v-if="!e.recipeMealplan">
|
||||
@@ -86,17 +91,17 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
import {compile, computed, PropType, watch} from "vue";
|
||||
import {ShoppingListEntry} from "@/openapi";
|
||||
import {computed, PropType} from "vue";
|
||||
import {ApiApi, ShoppingListEntry, SupermarketCategory} from "@/openapi";
|
||||
import ModelSelect from "@/components/inputs/ModelSelect.vue";
|
||||
import {IShoppingList, IShoppingListFood} from "@/types/Shopping";
|
||||
import {IShoppingListFood} from "@/types/Shopping";
|
||||
import VClosableCardTitle from "@/components/dialogs/VClosableCardTitle.vue";
|
||||
import {VNumberInput} from "vuetify/labs/VNumberInput";
|
||||
import {DateTime} from "luxon";
|
||||
import {useDisplay} from "vuetify";
|
||||
import ModelEditDialog from "@/components/dialogs/ModelEditDialog.vue";
|
||||
import {useShoppingStore} from "@/stores/ShoppingStore";
|
||||
import ShoppingListEntryEditor from "@/components/model_editors/ShoppingListEntryEditor.vue";
|
||||
import {isShoppingListFoodDelayed} from "@/utils/logic_utils";
|
||||
import {ErrorMessageType, useMessageStore} from "@/stores/MessageStore";
|
||||
|
||||
const {mobile} = useDisplay()
|
||||
|
||||
@@ -106,10 +111,9 @@ const props = defineProps({
|
||||
shoppingListFood: {type: {} as PropType<IShoppingListFood>, required: true},
|
||||
})
|
||||
|
||||
watch(() => {props.shoppingListFood}, () => {
|
||||
console.log('PROP WATCH')
|
||||
})
|
||||
|
||||
/**
|
||||
* returns a flat list of entries for the given shopping list food
|
||||
*/
|
||||
const entriesList = computed(() => {
|
||||
let list = [] as ShoppingListEntry[]
|
||||
props.shoppingListFood?.entries.forEach(e => {
|
||||
@@ -118,16 +122,25 @@ const entriesList = computed(() => {
|
||||
return list
|
||||
})
|
||||
|
||||
const isDelayed = computed(() => {
|
||||
|
||||
let isDelayed = false
|
||||
props.shoppingListFood.entries.forEach(e => {
|
||||
isDelayed = isDelayed || e.delayUntil != null
|
||||
})
|
||||
console.log('computing is delayed', isDelayed)
|
||||
return isDelayed
|
||||
/**
|
||||
* checks all entries associated with shopping line, if any is delayed return true else false
|
||||
*/
|
||||
const isShoppingLineDelayed = computed(() => {
|
||||
return isShoppingListFoodDelayed(props.shoppingListFood)
|
||||
})
|
||||
|
||||
function categoryUpdate(category: SupermarketCategory) {
|
||||
const api = new ApiApi()
|
||||
// TODO updating prop is not good, make properly reactive
|
||||
let food = props.shoppingListFood.food
|
||||
food.supermarketCategory = category
|
||||
api.apiFoodUpdate({id: food.id, food: food}).then(r => {
|
||||
|
||||
}).catch(err => {
|
||||
useMessageStore().addError(ErrorMessageType.UPDATE_ERROR, err)
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-list-item class="swipe-container" :id="itemContainerId" @touchend="handleSwipe()" @click="emit('clicked', entries)"
|
||||
v-if="(useUserPreferenceStore().deviceSettings.shopping_show_checked_entries || !isChecked) && (useUserPreferenceStore().deviceSettings.shopping_show_delayed_entries || !isDelayed)"
|
||||
v-if="(useUserPreferenceStore().deviceSettings.shopping_show_checked_entries || !isChecked) && (useUserPreferenceStore().deviceSettings.shopping_show_delayed_entries || !isShoppingLineDelayed)"
|
||||
>
|
||||
<!-- <div class="swipe-action" :class="{'bg-success': !isChecked , 'bg-warning': isChecked }">-->
|
||||
<!-- <i class="swipe-icon fa-fw fas" :class="{'fa-check': !isChecked , 'fa-cart-plus': isChecked }"></i>-->
|
||||
@@ -54,6 +54,7 @@ import {useUserPreferenceStore} from "@/stores/UserPreferenceStore.js";
|
||||
import {ApiApi, Food, ShoppingListEntry} from '@/openapi'
|
||||
import {ErrorMessageType, useMessageStore} from "@/stores/MessageStore";
|
||||
import {IShoppingListFood, ShoppingLineAmount} from "@/types/Shopping";
|
||||
import {isDelayed, isShoppingListFoodDelayed} from "@/utils/logic_utils";
|
||||
|
||||
const emit = defineEmits(['clicked'])
|
||||
|
||||
@@ -79,13 +80,8 @@ const isChecked = computed(() => {
|
||||
return true
|
||||
})
|
||||
|
||||
const isDelayed = computed(() => {
|
||||
for (let i in props.entries) {
|
||||
if (props.entries[i].delayUntil != null && props.entries[i].delayUntil! > new Date(Date.now())) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
const isShoppingLineDelayed = computed(() => {
|
||||
return isShoppingListFoodDelayed(props.shoppingListFood)
|
||||
})
|
||||
|
||||
|
||||
@@ -104,9 +100,9 @@ const amounts = computed((): Map<number, ShoppingLineAmount> => {
|
||||
for (let i in props.entries) {
|
||||
let e = props.entries[i]
|
||||
|
||||
if (!e.checked && (e.delayUntil == null)
|
||||
if (!e.checked && !isDelayed(e)
|
||||
|| (e.checked && useUserPreferenceStore().deviceSettings.shopping_show_checked_entries)
|
||||
|| (e.delayUntil !== null && useUserPreferenceStore().deviceSettings.shopping_show_delayed_entries)) {
|
||||
|| (isDelayed(e) && useUserPreferenceStore().deviceSettings.shopping_show_delayed_entries)) {
|
||||
|
||||
let unit = -1
|
||||
if (e.unit !== undefined && e.unit !== null) {
|
||||
@@ -123,7 +119,7 @@ const amounts = computed((): Map<number, ShoppingLineAmount> => {
|
||||
amount: e.amount,
|
||||
unit: e.unit,
|
||||
checked: e.checked,
|
||||
delayed: (e.delayUntil != null)
|
||||
delayed: isDelayed(e)
|
||||
} as ShoppingLineAmount)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -216,6 +216,7 @@
|
||||
"Planner_Settings": "",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "",
|
||||
"Previous_Day": "",
|
||||
|
||||
@@ -209,6 +209,7 @@
|
||||
"Planner_Settings": "Настройки на планировчика",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Подготовка",
|
||||
"Previous_Day": "Предишен ден",
|
||||
|
||||
@@ -279,6 +279,7 @@
|
||||
"Planner_Settings": "",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "",
|
||||
"Previous_Day": "",
|
||||
|
||||
@@ -277,6 +277,7 @@
|
||||
"Planner_Settings": "Nastavení plánovače",
|
||||
"Plural": "Množné číslo",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Příprava",
|
||||
"Previous_Day": "Předchozí den",
|
||||
|
||||
@@ -262,6 +262,7 @@
|
||||
"Planner_Settings": "Planlægger indstillinger",
|
||||
"Plural": "Flertal",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Forberedelse",
|
||||
"Previous_Day": "Forgående dag",
|
||||
|
||||
@@ -281,6 +281,7 @@
|
||||
"Planner_Settings": "Einstellungen Essensplan",
|
||||
"Plural": "Plural",
|
||||
"Postpone": "Verschieben",
|
||||
"PostponedUntil": "Verschoben bis",
|
||||
"Preferences": "Einstellungen",
|
||||
"Preparation": "Zubereitung",
|
||||
"Preview": "Vorschau",
|
||||
|
||||
@@ -254,6 +254,7 @@
|
||||
"Planner_Settings": "Επιλογές σχεδιαστή",
|
||||
"Plural": "Πληθυντικός",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Προετοιμασία",
|
||||
"Previous_Day": "Προηγούμενη μέρα",
|
||||
|
||||
@@ -280,6 +280,7 @@
|
||||
"Planner_Settings": "Planner settings",
|
||||
"Plural": "Plural",
|
||||
"Postpone": "Postpone",
|
||||
"PostponedUntil": "Postponoed until",
|
||||
"Preferences": "Preferences",
|
||||
"Preparation": "Preparation",
|
||||
"Preview": "Preview",
|
||||
|
||||
@@ -280,6 +280,7 @@
|
||||
"Planner_Settings": "Opciones del planificador",
|
||||
"Plural": "Plural",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Preparación",
|
||||
"Previous_Day": "Día Anterior",
|
||||
|
||||
@@ -151,6 +151,7 @@
|
||||
"Planner_Settings": "Suunnittelijan asetukset",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Valmistautuminen",
|
||||
"Previous_Day": "Edellinen Päivä",
|
||||
|
||||
@@ -279,6 +279,7 @@
|
||||
"Planner_Settings": "Paramètres du planificateur",
|
||||
"Plural": "Pluriel",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Préparation",
|
||||
"Previous_Day": "Jour précédent",
|
||||
|
||||
@@ -280,6 +280,7 @@
|
||||
"Planner_Settings": "הגדרות מתכנן",
|
||||
"Plural": "רבים",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "הכנה",
|
||||
"Previous_Day": "יום קודם",
|
||||
|
||||
@@ -256,6 +256,7 @@
|
||||
"Planner_Settings": "Tervező beállításai",
|
||||
"Plural": "Többes szám",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Előkészítés",
|
||||
"Previous_Day": "Előző nap",
|
||||
|
||||
@@ -99,6 +99,7 @@
|
||||
"Parent": "Ծնող",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "",
|
||||
"Print": "Տպել",
|
||||
|
||||
@@ -234,6 +234,7 @@
|
||||
"Planner": "",
|
||||
"Planner_Settings": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Persiapan",
|
||||
"Previous_Day": "",
|
||||
|
||||
@@ -279,6 +279,7 @@
|
||||
"Planner_Settings": "",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "",
|
||||
"Previous_Day": "",
|
||||
|
||||
@@ -242,6 +242,7 @@
|
||||
"Planner_Settings": "Impostazioni planner",
|
||||
"Plural": "Plurale",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Preparazione",
|
||||
"Previous_Day": "Giorno precedente",
|
||||
|
||||
@@ -260,6 +260,7 @@
|
||||
"Planner_Settings": "",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "",
|
||||
"Previous_Day": "",
|
||||
|
||||
@@ -252,6 +252,7 @@
|
||||
"Planner_Settings": "Planleggingsinstilliger",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Forberedelse",
|
||||
"Previous_Day": "Forrige dag",
|
||||
|
||||
@@ -256,6 +256,7 @@
|
||||
"Planner_Settings": "Planner instellingen",
|
||||
"Plural": "Meervoud",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Bereiding",
|
||||
"Previous_Day": "Vorige dag",
|
||||
|
||||
@@ -281,6 +281,7 @@
|
||||
"Planner_Settings": "Ustawienia terminarza",
|
||||
"Plural": "Liczba mnoga",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Przygotowanie",
|
||||
"Previous_Day": "Poprzedni dzień",
|
||||
|
||||
@@ -204,6 +204,7 @@
|
||||
"Planner_Settings": "Definições do planeador",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Preparação",
|
||||
"Previous_Day": "Dia anterior",
|
||||
|
||||
@@ -268,6 +268,7 @@
|
||||
"Planner_Settings": "Configurações do Planejamento",
|
||||
"Plural": "Plural",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Preparação",
|
||||
"Previous_Day": "Dia Anterior",
|
||||
|
||||
@@ -246,6 +246,7 @@
|
||||
"Planner_Settings": "Setări planificator",
|
||||
"Plural": "Plural",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Pregătire",
|
||||
"Previous_Day": "Ziua precedentă",
|
||||
|
||||
@@ -192,6 +192,7 @@
|
||||
"Planner": "Планировщик",
|
||||
"Planner_Settings": "Настройки Планировщика",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Приготовление",
|
||||
"Previous_Day": "Предыдущий день",
|
||||
|
||||
@@ -185,6 +185,7 @@
|
||||
"Planner_Settings": "Nastavitve planerja",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Priprava",
|
||||
"Previous_Day": "Prejšnji Dan",
|
||||
|
||||
@@ -281,6 +281,7 @@
|
||||
"Planner_Settings": "Planerare inställningar",
|
||||
"Plural": "Plural",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Förberedelse",
|
||||
"Previous_Day": "Föregående dag",
|
||||
|
||||
@@ -280,6 +280,7 @@
|
||||
"Planner_Settings": "Planlayıcı ayarları",
|
||||
"Plural": "Çoğul",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Hazırlama",
|
||||
"Previous_Day": "Önceki Gün",
|
||||
|
||||
@@ -222,6 +222,7 @@
|
||||
"Planner_Settings": "Налаштування планувальника",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "Підготовка",
|
||||
"Previous_Day": "Попередній День",
|
||||
|
||||
@@ -275,6 +275,7 @@
|
||||
"Planner_Settings": "计划者设置",
|
||||
"Plural": "复数",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "准备",
|
||||
"Previous_Day": "前一天",
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
"Owner": "",
|
||||
"Plural": "",
|
||||
"Postpone": "",
|
||||
"PostponedUntil": "",
|
||||
"Preferences": "",
|
||||
"Preparation": "",
|
||||
"Print": "",
|
||||
|
||||
@@ -1 +1 @@
|
||||
7.8.0
|
||||
7.10.0
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -98,4 +98,15 @@ export function AccessTokenToJSON(value?: Omit<AccessToken, 'token'|'created'|'u
|
||||
'scope': value['scope'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiAccessTokenListRequest, PaginatedAccessTokenList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiAccessTokenListRequest = {}): Promise<PaginatedAccessTokenList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiAccessTokenList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -75,4 +75,15 @@ export function AuthTokenToJSON(value?: Omit<AuthToken, 'token'> | null): any {
|
||||
'password': value['password'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiAuthTokenListRequest, PaginatedAuthTokenList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiAuthTokenListRequest = {}): Promise<PaginatedAuthTokenList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiAuthTokenList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -118,4 +118,15 @@ export function AutoMealPlanToJSON(value?: AutoMealPlan | null): any {
|
||||
'addshopping': value['addshopping'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiAutoMealPlanListRequest, PaginatedAutoMealPlanList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiAutoMealPlanListRequest = {}): Promise<PaginatedAutoMealPlanList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiAutoMealPlanList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -139,4 +139,15 @@ export function AutomationToJSON(value?: Omit<Automation, 'created_by'> | null):
|
||||
'disabled': value['disabled'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiAutomationListRequest, PaginatedAutomationList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiAutomationListRequest = {}): Promise<PaginatedAutomationList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiAutomationList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -64,3 +64,7 @@ export function AutomationTypeEnumToJSON(value?: AutomationTypeEnum | null): any
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function AutomationTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationTypeEnum {
|
||||
return value as AutomationTypeEnum;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,3 +78,7 @@ export function BaseUnitEnumToJSON(value?: BaseUnitEnum | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function BaseUnitEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BaseUnitEnum {
|
||||
return value as BaseUnitEnum;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,4 +90,15 @@ export function BookmarkletImportToJSON(value?: Omit<BookmarkletImport, 'created
|
||||
'html': value['html'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiBookmarkletImportListRequest, PaginatedBookmarkletImportList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiBookmarkletImportListRequest = {}): Promise<PaginatedBookmarkletImportList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiBookmarkletImportList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -81,4 +81,15 @@ export function BookmarkletImportListToJSON(value?: Omit<BookmarkletImportList,
|
||||
'url': value['url'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiBookmarkletImportListListRequest, PaginatedBookmarkletImportListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiBookmarkletImportListListRequest = {}): Promise<PaginatedBookmarkletImportListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiBookmarkletImportListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -138,4 +138,15 @@ export function ConnectorConfigConfigToJSON(value?: Omit<ConnectorConfigConfig,
|
||||
'supports_description_field': value['supportsDescriptionField'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiConnectorConfigConfigListRequest, PaginatedConnectorConfigConfigList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiConnectorConfigConfigListRequest = {}): Promise<PaginatedConnectorConfigConfigList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiConnectorConfigConfigList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -121,4 +121,15 @@ export function CookLogToJSON(value?: Omit<CookLog, 'created_by'|'updated_at'> |
|
||||
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiCookLogListRequest, PaginatedCookLogList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiCookLogListRequest = {}): Promise<PaginatedCookLogList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiCookLogList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -98,4 +98,15 @@ export function CustomFilterToJSON(value?: Omit<CustomFilter, 'created_by'> | nu
|
||||
'shared': value['shared'] == null ? undefined : ((value['shared'] as Array<any>).map(UserToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiCustomFilterListRequest, PaginatedCustomFilterList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiCustomFilterListRequest = {}): Promise<PaginatedCustomFilterList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiCustomFilterList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -52,3 +52,7 @@ export function DefaultPageEnumToJSON(value?: DefaultPageEnum | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function DefaultPageEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): DefaultPageEnum {
|
||||
return value as DefaultPageEnum;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,3 +46,7 @@ export function DeleteEnumToJSON(value?: DeleteEnum | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function DeleteEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): DeleteEnum {
|
||||
return value as DeleteEnum;
|
||||
}
|
||||
|
||||
|
||||
@@ -130,4 +130,15 @@ export function ExportLogToJSON(value?: Omit<ExportLog, 'created_by'|'created_at
|
||||
'possibly_not_expired': value['possiblyNotExpired'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiExportLogListRequest, PaginatedExportLogList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiExportLogListRequest = {}): Promise<PaginatedExportLogList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiExportLogList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -314,4 +314,15 @@ export function FoodToJSON(value?: Omit<Food, 'shopping'|'parent'|'numchild'|'fu
|
||||
'open_data_slug': value['openDataSlug'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiFoodListRequest, PaginatedFoodList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiFoodListRequest = {}): Promise<PaginatedFoodList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiFoodList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -107,4 +107,15 @@ export function FoodInheritFieldToJSON(value?: FoodInheritField | null): any {
|
||||
'field': value['field'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiFoodInheritFieldListRequest, PaginatedFoodInheritFieldList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiFoodInheritFieldListRequest = {}): Promise<PaginatedFoodInheritFieldList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiFoodInheritFieldList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -93,4 +93,15 @@ export function FoodShoppingUpdateToJSON(value?: FoodShoppingUpdate | null): any
|
||||
'delete': DeleteEnumToJSON(value['_delete']),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiFoodShoppingUpdateListRequest, PaginatedFoodShoppingUpdateList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiFoodShoppingUpdateListRequest = {}): Promise<PaginatedFoodShoppingUpdateList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiFoodShoppingUpdateList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -74,4 +74,15 @@ export function FoodSimpleToJSON(value?: FoodSimple | null): any {
|
||||
'plural_name': value['pluralName'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiFoodSimpleListRequest, PaginatedFoodSimpleList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiFoodSimpleListRequest = {}): Promise<PaginatedFoodSimpleList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiFoodSimpleList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -100,4 +100,15 @@ export function GroupToJSON(value?: Group | null): any {
|
||||
'name': value['name'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiGroupListRequest, PaginatedGroupList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiGroupListRequest = {}): Promise<PaginatedGroupList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiGroupList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -58,4 +58,15 @@ export function ImportImageToJSON(value?: ImportImage | null): any {
|
||||
'image': value['image'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiImportImageListRequest, PaginatedImportImageList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiImportImageListRequest = {}): Promise<PaginatedImportImageList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiImportImageList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -129,4 +129,15 @@ export function ImportLogToJSON(value?: Omit<ImportLog, 'keyword'|'created_by'|'
|
||||
'imported_recipes': value['importedRecipes'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiImportLogListRequest, PaginatedImportLogList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiImportLogListRequest = {}): Promise<PaginatedImportLogList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiImportLogList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -169,4 +169,15 @@ export function IngredientToJSON(value?: Omit<Ingredient, 'conversions'|'used_in
|
||||
'always_use_plural_food': value['alwaysUsePluralFood'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiIngredientListRequest, PaginatedIngredientList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiIngredientListRequest = {}): Promise<PaginatedIngredientList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiIngredientList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -58,4 +58,15 @@ export function IngredientStringToJSON(value?: IngredientString | null): any {
|
||||
'text': value['text'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiIngredientStringListRequest, PaginatedIngredientStringList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiIngredientStringListRequest = {}): Promise<PaginatedIngredientStringList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiIngredientStringList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -137,4 +137,15 @@ export function InviteLinkToJSON(value?: Omit<InviteLink, 'uuid'|'created_by'|'c
|
||||
'internal_note': value['internalNote'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiInviteLinkListRequest, PaginatedInviteLinkList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiInviteLinkListRequest = {}): Promise<PaginatedInviteLinkList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiInviteLinkList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -157,4 +157,15 @@ export function KeywordToJSON(value?: Omit<Keyword, 'label'|'parent'|'numchild'|
|
||||
'description': value['description'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiKeywordListRequest, PaginatedKeywordList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiKeywordListRequest = {}): Promise<PaginatedKeywordList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiKeywordList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -65,4 +65,15 @@ export function KeywordLabelToJSON(value?: Omit<KeywordLabel, 'label'> | null):
|
||||
'id': value['id'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiKeywordLabelListRequest, PaginatedKeywordLabelList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiKeywordLabelListRequest = {}): Promise<PaginatedKeywordLabelList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiKeywordLabelList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -65,4 +65,15 @@ export function LocalizationToJSON(value?: Omit<Localization, 'code'|'language'>
|
||||
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiLocalizationListRequest, PaginatedLocalizationList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiLocalizationListRequest = {}): Promise<PaginatedLocalizationList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiLocalizationList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -183,4 +183,15 @@ export function MealPlanToJSON(value?: Omit<MealPlan, 'note_markdown'|'created_b
|
||||
'shared': value['shared'] == null ? undefined : ((value['shared'] as Array<any>).map(UserToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiMealPlanListRequest, PaginatedMealPlanList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiMealPlanListRequest = {}): Promise<PaginatedMealPlanList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiMealPlanList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -106,4 +106,15 @@ export function MealTypeToJSON(value?: Omit<MealType, 'created_by'> | null): any
|
||||
'default': value['_default'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiMealTypeListRequest, PaginatedMealTypeList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiMealTypeListRequest = {}): Promise<PaginatedMealTypeList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiMealTypeList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -50,3 +50,7 @@ export function MethodEnumToJSON(value?: MethodEnum | null): any {
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function MethodEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): MethodEnum {
|
||||
return value as MethodEnum;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,4 +101,15 @@ export function NutritionInformationToJSON(value?: NutritionInformation | null):
|
||||
'source': value['source'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiNutritionInformationListRequest, PaginatedNutritionInformationList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiNutritionInformationListRequest = {}): Promise<PaginatedNutritionInformationList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiNutritionInformationList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -149,4 +149,15 @@ export function OpenDataCategoryToJSON(value?: Omit<OpenDataCategory, 'created_b
|
||||
'comment': value['comment'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataCategoryListRequest, PaginatedOpenDataCategoryList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataCategoryListRequest = {}): Promise<PaginatedOpenDataCategoryList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataCategoryList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -164,4 +164,15 @@ export function OpenDataConversionToJSON(value?: Omit<OpenDataConversion, 'creat
|
||||
'comment': value['comment'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataConversionListRequest, PaginatedOpenDataConversionList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataConversionListRequest = {}): Promise<PaginatedOpenDataConversionList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataConversionList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -252,4 +252,15 @@ export function OpenDataFoodToJSON(value?: Omit<OpenDataFood, 'created_by'> | nu
|
||||
'comment': value['comment'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataFoodListRequest, PaginatedOpenDataFoodList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataFoodListRequest = {}): Promise<PaginatedOpenDataFoodList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataFoodList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -82,4 +82,15 @@ export function OpenDataFoodPropertyToJSON(value?: OpenDataFoodProperty | null):
|
||||
'property_amount': value['propertyAmount'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataFoodPropertyListRequest, PaginatedOpenDataFoodPropertyList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataFoodPropertyListRequest = {}): Promise<PaginatedOpenDataFoodPropertyList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataFoodPropertyList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -157,4 +157,15 @@ export function OpenDataPropertyToJSON(value?: Omit<OpenDataProperty, 'created_b
|
||||
'comment': value['comment'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataPropertyListRequest, PaginatedOpenDataPropertyList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataPropertyListRequest = {}): Promise<PaginatedOpenDataPropertyList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataPropertyList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -122,4 +122,15 @@ export function OpenDataStoreToJSON(value?: Omit<OpenDataStore, 'created_by'> |
|
||||
'comment': value['comment'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataStoreListRequest, PaginatedOpenDataStoreList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataStoreListRequest = {}): Promise<PaginatedOpenDataStoreList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataStoreList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function OpenDataStoreCategoryToJSON(value?: OpenDataStoreCategory | null
|
||||
'order': value['order'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataStoreCategoryListRequest, PaginatedOpenDataStoreCategoryList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataStoreCategoryListRequest = {}): Promise<PaginatedOpenDataStoreCategoryList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataStoreCategoryList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -180,4 +180,15 @@ export function OpenDataUnitToJSON(value?: Omit<OpenDataUnit, 'created_by'> | nu
|
||||
'comment': value['comment'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataUnitListRequest, PaginatedOpenDataUnitList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataUnitListRequest = {}): Promise<PaginatedOpenDataUnitList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataUnitList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -50,3 +50,7 @@ export function OpenDataUnitTypeEnumToJSON(value?: OpenDataUnitTypeEnum | null):
|
||||
return value as any;
|
||||
}
|
||||
|
||||
export function OpenDataUnitTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): OpenDataUnitTypeEnum {
|
||||
return value as OpenDataUnitTypeEnum;
|
||||
}
|
||||
|
||||
|
||||
@@ -117,4 +117,15 @@ export function OpenDataVersionToJSON(value?: OpenDataVersion | null): any {
|
||||
'comment': value['comment'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiOpenDataVersionListRequest, PaginatedOpenDataVersionList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiOpenDataVersionListRequest = {}): Promise<PaginatedOpenDataVersionList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiOpenDataVersionList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedAutomationListToJSON(value?: PaginatedAutomationList |
|
||||
'results': ((value['results'] as Array<any>).map(AutomationToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedAutomationListListRequest, PaginatedPaginatedAutomationListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedAutomationListListRequest = {}): Promise<PaginatedPaginatedAutomationListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedAutomationListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedBookmarkletImportListListToJSON(value?: PaginatedBookma
|
||||
'results': ((value['results'] as Array<any>).map(BookmarkletImportListToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedBookmarkletImportListListListRequest, PaginatedPaginatedBookmarkletImportListListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedBookmarkletImportListListListRequest = {}): Promise<PaginatedPaginatedBookmarkletImportListListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedBookmarkletImportListListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedCookLogListToJSON(value?: PaginatedCookLogList | null):
|
||||
'results': ((value['results'] as Array<any>).map(CookLogToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedCookLogListListRequest, PaginatedPaginatedCookLogListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedCookLogListListRequest = {}): Promise<PaginatedPaginatedCookLogListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedCookLogListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedCustomFilterListToJSON(value?: PaginatedCustomFilterLis
|
||||
'results': ((value['results'] as Array<any>).map(CustomFilterToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedCustomFilterListListRequest, PaginatedPaginatedCustomFilterListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedCustomFilterListListRequest = {}): Promise<PaginatedPaginatedCustomFilterListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedCustomFilterListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedExportLogListToJSON(value?: PaginatedExportLogList | nu
|
||||
'results': ((value['results'] as Array<any>).map(ExportLogToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedExportLogListListRequest, PaginatedPaginatedExportLogListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedExportLogListListRequest = {}): Promise<PaginatedPaginatedExportLogListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedExportLogListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedFoodListToJSON(value?: PaginatedFoodList | null): any {
|
||||
'results': ((value['results'] as Array<any>).map(FoodToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedFoodListListRequest, PaginatedPaginatedFoodListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedFoodListListRequest = {}): Promise<PaginatedPaginatedFoodListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedFoodListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedImportLogListToJSON(value?: PaginatedImportLogList | nu
|
||||
'results': ((value['results'] as Array<any>).map(ImportLogToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedImportLogListListRequest, PaginatedPaginatedImportLogListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedImportLogListListRequest = {}): Promise<PaginatedPaginatedImportLogListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedImportLogListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedIngredientListToJSON(value?: PaginatedIngredientList |
|
||||
'results': ((value['results'] as Array<any>).map(IngredientToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedIngredientListListRequest, PaginatedPaginatedIngredientListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedIngredientListListRequest = {}): Promise<PaginatedPaginatedIngredientListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedIngredientListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedInviteLinkListToJSON(value?: PaginatedInviteLinkList |
|
||||
'results': ((value['results'] as Array<any>).map(InviteLinkToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedInviteLinkListListRequest, PaginatedPaginatedInviteLinkListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedInviteLinkListListRequest = {}): Promise<PaginatedPaginatedInviteLinkListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedInviteLinkListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedKeywordListToJSON(value?: PaginatedKeywordList | null):
|
||||
'results': ((value['results'] as Array<any>).map(KeywordToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedKeywordListListRequest, PaginatedPaginatedKeywordListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedKeywordListListRequest = {}): Promise<PaginatedPaginatedKeywordListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedKeywordListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedMealPlanListToJSON(value?: PaginatedMealPlanList | null
|
||||
'results': ((value['results'] as Array<any>).map(MealPlanToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedMealPlanListListRequest, PaginatedPaginatedMealPlanListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedMealPlanListListRequest = {}): Promise<PaginatedPaginatedMealPlanListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedMealPlanListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedMealTypeListToJSON(value?: PaginatedMealTypeList | null
|
||||
'results': ((value['results'] as Array<any>).map(MealTypeToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedMealTypeListListRequest, PaginatedPaginatedMealTypeListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedMealTypeListListRequest = {}): Promise<PaginatedPaginatedMealTypeListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedMealTypeListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedPropertyListToJSON(value?: PaginatedPropertyList | null
|
||||
'results': ((value['results'] as Array<any>).map(PropertyToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedPropertyListListRequest, PaginatedPaginatedPropertyListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedPropertyListListRequest = {}): Promise<PaginatedPaginatedPropertyListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedPropertyListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedPropertyTypeListToJSON(value?: PaginatedPropertyTypeLis
|
||||
'results': ((value['results'] as Array<any>).map(PropertyTypeToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedPropertyTypeListListRequest, PaginatedPaginatedPropertyTypeListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedPropertyTypeListListRequest = {}): Promise<PaginatedPaginatedPropertyTypeListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedPropertyTypeListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedRecipeBookEntryListToJSON(value?: PaginatedRecipeBookEn
|
||||
'results': ((value['results'] as Array<any>).map(RecipeBookEntryToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedRecipeBookEntryListListRequest, PaginatedPaginatedRecipeBookEntryListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedRecipeBookEntryListListRequest = {}): Promise<PaginatedPaginatedRecipeBookEntryListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedRecipeBookEntryListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedRecipeBookListToJSON(value?: PaginatedRecipeBookList |
|
||||
'results': ((value['results'] as Array<any>).map(RecipeBookToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedRecipeBookListListRequest, PaginatedPaginatedRecipeBookListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedRecipeBookListListRequest = {}): Promise<PaginatedPaginatedRecipeBookListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedRecipeBookListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedRecipeOverviewListToJSON(value?: PaginatedRecipeOvervie
|
||||
'results': ((value['results'] as Array<any>).map(RecipeOverviewToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedRecipeOverviewListListRequest, PaginatedPaginatedRecipeOverviewListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedRecipeOverviewListListRequest = {}): Promise<PaginatedPaginatedRecipeOverviewListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedRecipeOverviewListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedShoppingListEntryListToJSON(value?: PaginatedShoppingLi
|
||||
'results': ((value['results'] as Array<any>).map(ShoppingListEntryToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedShoppingListEntryListListRequest, PaginatedPaginatedShoppingListEntryListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedShoppingListEntryListListRequest = {}): Promise<PaginatedPaginatedShoppingListEntryListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedShoppingListEntryListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedShoppingListRecipeListToJSON(value?: PaginatedShoppingL
|
||||
'results': ((value['results'] as Array<any>).map(ShoppingListRecipeToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedShoppingListRecipeListListRequest, PaginatedPaginatedShoppingListRecipeListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedShoppingListRecipeListListRequest = {}): Promise<PaginatedPaginatedShoppingListRecipeListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedShoppingListRecipeListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedSpaceListToJSON(value?: PaginatedSpaceList | null): any
|
||||
'results': ((value['results'] as Array<any>).map(SpaceToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedSpaceListListRequest, PaginatedPaginatedSpaceListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedSpaceListListRequest = {}): Promise<PaginatedPaginatedSpaceListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedSpaceListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedStepListToJSON(value?: PaginatedStepList | null): any {
|
||||
'results': ((value['results'] as Array<any>).map(StepToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedStepListListRequest, PaginatedPaginatedStepListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedStepListListRequest = {}): Promise<PaginatedPaginatedStepListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedStepListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedSupermarketCategoryListToJSON(value?: PaginatedSupermar
|
||||
'results': ((value['results'] as Array<any>).map(SupermarketCategoryToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedSupermarketCategoryListListRequest, PaginatedPaginatedSupermarketCategoryListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedSupermarketCategoryListListRequest = {}): Promise<PaginatedPaginatedSupermarketCategoryListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedSupermarketCategoryListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedSupermarketCategoryRelationListToJSON(value?: Paginated
|
||||
'results': ((value['results'] as Array<any>).map(SupermarketCategoryRelationToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedSupermarketCategoryRelationListListRequest, PaginatedPaginatedSupermarketCategoryRelationListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedSupermarketCategoryRelationListListRequest = {}): Promise<PaginatedPaginatedSupermarketCategoryRelationListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedSupermarketCategoryRelationListList(requestParameters)
|
||||
}
|
||||
|
||||
@@ -90,4 +90,15 @@ export function PaginatedSupermarketListToJSON(value?: PaginatedSupermarketList
|
||||
'results': ((value['results'] as Array<any>).map(SupermarketToJSON)),
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiPaginatedSupermarketListListRequest, PaginatedPaginatedSupermarketListList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiPaginatedSupermarketListListRequest = {}): Promise<PaginatedPaginatedSupermarketListList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiPaginatedSupermarketListList(requestParameters)
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user