mealie-typescript 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +25 -11
- package/.openapi-generator/FILES +0 -303
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -26
- package/api.ts +0 -28987
- package/base.ts +0 -62
- package/common.ts +0 -113
- package/configuration.ts +0 -121
- package/docs/AdminAboutApi.md +0 -164
- package/docs/AdminAboutInfo.md +0 -62
- package/docs/AdminBackupsApi.md +0 -333
- package/docs/AdminDebugApi.md +0 -62
- package/docs/AdminEmailApi.md +0 -116
- package/docs/AdminMaintenanceApi.md +0 -270
- package/docs/AdminManageGroupsApi.md +0 -305
- package/docs/AdminManageHouseholdsApi.md +0 -305
- package/docs/AdminManageUsersApi.md +0 -417
- package/docs/AllBackups.md +0 -22
- package/docs/AppAboutApi.md +0 -142
- package/docs/AppInfo.md +0 -44
- package/docs/AppStartupInfo.md +0 -22
- package/docs/AppStatistics.md +0 -30
- package/docs/AppTheme.md +0 -46
- package/docs/AssignCategories.md +0 -22
- package/docs/AssignSettings.md +0 -22
- package/docs/AssignTags.md +0 -22
- package/docs/AuthMethod.md +0 -12
- package/docs/BackupFile.md +0 -24
- package/docs/BodyTriggerActionApiHouseholdsRecipeActionsItemIdTriggerRecipeSlugPost.md +0 -20
- package/docs/CategoryBase.md +0 -26
- package/docs/CategoryIn.md +0 -20
- package/docs/CategoryOut.md +0 -26
- package/docs/CategorySummary.md +0 -24
- package/docs/ChangePassword.md +0 -22
- package/docs/CheckAppConfig.md +0 -30
- package/docs/CookBookPagination.md +0 -32
- package/docs/Cookbook.md +0 -18
- package/docs/Cookbook1.md +0 -18
- package/docs/CookbookHousehold.md +0 -22
- package/docs/CreateCookBook.md +0 -30
- package/docs/CreateGroupRecipeAction.md +0 -24
- package/docs/CreateIngredientFood.md +0 -34
- package/docs/CreateIngredientFoodAlias.md +0 -20
- package/docs/CreateIngredientUnit.md +0 -38
- package/docs/CreateIngredientUnitAlias.md +0 -20
- package/docs/CreateInviteToken.md +0 -24
- package/docs/CreatePlanEntry.md +0 -28
- package/docs/CreateRandomEntry.md +0 -22
- package/docs/CreateRecipe.md +0 -20
- package/docs/CreateRecipeBulk.md +0 -24
- package/docs/CreateRecipeByUrlBulk.md +0 -20
- package/docs/CreateUserRegistration.md +0 -42
- package/docs/CreateWebhook.md +0 -28
- package/docs/DebugResponse.md +0 -22
- package/docs/DeleteRecipes.md +0 -20
- package/docs/DeleteTokenResponse.md +0 -20
- package/docs/EmailInitationResponse.md +0 -22
- package/docs/EmailInvitation.md +0 -22
- package/docs/EmailReady.md +0 -20
- package/docs/EmailSuccess.md +0 -22
- package/docs/EmailTest.md +0 -20
- package/docs/ExploreCategoriesApi.md +0 -144
- package/docs/ExploreCookbooksApi.md +0 -145
- package/docs/ExploreFoodsApi.md +0 -144
- package/docs/ExploreHouseholdsApi.md +0 -141
- package/docs/ExploreRecipesApi.md +0 -266
- package/docs/ExploreTagsApi.md +0 -144
- package/docs/ExploreToolsApi.md +0 -144
- package/docs/ExportRecipes.md +0 -22
- package/docs/ExportTypes.md +0 -8
- package/docs/FileTokenResponse.md +0 -20
- package/docs/Food.md +0 -40
- package/docs/Food1.md +0 -40
- package/docs/ForgotPassword.md +0 -20
- package/docs/FormatResponse.md +0 -22
- package/docs/GetAllApiRecipesGetCategoriesParameterInner.md +0 -18
- package/docs/GetAllApiRecipesGetTagsParameterInner.md +0 -18
- package/docs/GroupAdminUpdate.md +0 -24
- package/docs/GroupBase.md +0 -20
- package/docs/GroupDataExport.md +0 -32
- package/docs/GroupEventNotifierCreate.md +0 -22
- package/docs/GroupEventNotifierOptions.md +0 -69
- package/docs/GroupEventNotifierOptionsOut.md +0 -70
- package/docs/GroupEventNotifierOut.md +0 -30
- package/docs/GroupEventNotifierUpdate.md +0 -32
- package/docs/GroupEventPagination.md +0 -32
- package/docs/GroupHouseholdSummary.md +0 -22
- package/docs/GroupInDB.md +0 -34
- package/docs/GroupPagination.md +0 -32
- package/docs/GroupRecipeActionOut.md +0 -30
- package/docs/GroupRecipeActionPagination.md +0 -32
- package/docs/GroupRecipeActionType.md +0 -10
- package/docs/GroupStorage.md +0 -26
- package/docs/GroupSummary.md +0 -26
- package/docs/GroupsHouseholdsApi.md +0 -135
- package/docs/GroupsMigrationsApi.md +0 -68
- package/docs/GroupsMultiPurposeLabelsApi.md +0 -308
- package/docs/GroupsReportsApi.md +0 -172
- package/docs/GroupsSeedersApi.md +0 -175
- package/docs/GroupsSelfServiceApi.md +0 -351
- package/docs/HTTPValidationError.md +0 -20
- package/docs/HouseholdCreate.md +0 -22
- package/docs/HouseholdInDB.md +0 -34
- package/docs/HouseholdPagination.md +0 -32
- package/docs/HouseholdRecipeSummary.md +0 -22
- package/docs/HouseholdStatistics.md +0 -28
- package/docs/HouseholdSummary.md +0 -28
- package/docs/HouseholdUserSummary.md +0 -22
- package/docs/HouseholdsCookbooksApi.md +0 -361
- package/docs/HouseholdsEventNotificationsApi.md +0 -360
- package/docs/HouseholdsInvitationsApi.md +0 -171
- package/docs/HouseholdsMealplanRulesApi.md +0 -305
- package/docs/HouseholdsMealplansApi.md +0 -420
- package/docs/HouseholdsRecipeActionsApi.md +0 -367
- package/docs/HouseholdsSelfServiceApi.md +0 -406
- package/docs/HouseholdsShoppingListItemsApi.md +0 -470
- package/docs/HouseholdsShoppingListsApi.md +0 -545
- package/docs/HouseholdsWebhooksApi.md +0 -413
- package/docs/ImageType.md +0 -12
- package/docs/IngredientConfidence.md +0 -30
- package/docs/IngredientFoodAlias.md +0 -20
- package/docs/IngredientFoodInput.md +0 -40
- package/docs/IngredientFoodOutput.md +0 -40
- package/docs/IngredientFoodPagination.md +0 -32
- package/docs/IngredientReferences.md +0 -21
- package/docs/IngredientRequest.md +0 -22
- package/docs/IngredientUnitAlias.md +0 -20
- package/docs/IngredientUnitInput.md +0 -42
- package/docs/IngredientUnitOutput.md +0 -42
- package/docs/IngredientUnitPagination.md +0 -32
- package/docs/IngredientsRequest.md +0 -22
- package/docs/ItemId.md +0 -18
- package/docs/ItemId1.md +0 -18
- package/docs/LogicalOperator.md +0 -10
- package/docs/LongLiveTokenCreateResponse.md +0 -27
- package/docs/LongLiveTokenIn.md +0 -22
- package/docs/LongLiveTokenOut.md +0 -24
- package/docs/MaintenanceStorageDetails.md +0 -28
- package/docs/MaintenanceSummary.md +0 -24
- package/docs/MealieSchemaRecipeRecipeCommentsUserBase.md +0 -26
- package/docs/MealieSchemaUserUserUserBase.md +0 -44
- package/docs/MergeFood.md +0 -22
- package/docs/MergeUnit.md +0 -22
- package/docs/MultiPurposeLabelCreate.md +0 -22
- package/docs/MultiPurposeLabelOut.md +0 -26
- package/docs/MultiPurposeLabelPagination.md +0 -32
- package/docs/MultiPurposeLabelSummary.md +0 -26
- package/docs/MultiPurposeLabelUpdate.md +0 -26
- package/docs/Nutrition.md +0 -40
- package/docs/OrderByNullPosition.md +0 -10
- package/docs/OrderDirection.md +0 -10
- package/docs/OrganizerCategoriesApi.md +0 -422
- package/docs/OrganizerTagsApi.md +0 -421
- package/docs/OrganizerToolsApi.md +0 -363
- package/docs/PaginationBaseHouseholdSummary.md +0 -32
- package/docs/PaginationBaseIngredientFood.md +0 -32
- package/docs/PaginationBaseReadCookBook.md +0 -32
- package/docs/PaginationBaseRecipeCategory.md +0 -32
- package/docs/PaginationBaseRecipeSummary.md +0 -32
- package/docs/PaginationBaseRecipeTag.md +0 -32
- package/docs/PaginationBaseRecipeTool.md +0 -32
- package/docs/PaginationBaseUserOut.md +0 -32
- package/docs/PaginationBaseUserSummary.md +0 -32
- package/docs/ParsedIngredient.md +0 -24
- package/docs/PasswordResetToken.md +0 -20
- package/docs/PlanEntryPagination.md +0 -32
- package/docs/PlanEntryType.md +0 -20
- package/docs/PlanRulesCreate.md +0 -24
- package/docs/PlanRulesDay.md +0 -22
- package/docs/PlanRulesOut.md +0 -32
- package/docs/PlanRulesPagination.md +0 -32
- package/docs/PlanRulesType.md +0 -22
- package/docs/QueryFilterJSON.md +0 -20
- package/docs/QueryFilterJSONPart.md +0 -30
- package/docs/ReadCookBook.md +0 -40
- package/docs/ReadGroupPreferences.md +0 -24
- package/docs/ReadHouseholdPreferences.md +0 -36
- package/docs/ReadInviteToken.md +0 -26
- package/docs/ReadPlanEntry.md +0 -38
- package/docs/ReadWebhook.md +0 -34
- package/docs/RecipeAsset.md +0 -24
- package/docs/RecipeBulkActionsApi.md +0 -448
- package/docs/RecipeCRUDApi.md +0 -1306
- package/docs/RecipeCategory.md +0 -26
- package/docs/RecipeCategoryPagination.md +0 -32
- package/docs/RecipeCommentCreate.md +0 -22
- package/docs/RecipeCommentOutInput.md +0 -32
- package/docs/RecipeCommentOutOutput.md +0 -32
- package/docs/RecipeCommentPagination.md +0 -32
- package/docs/RecipeCommentUpdate.md +0 -22
- package/docs/RecipeCommentsApi.md +0 -361
- package/docs/RecipeDuplicate.md +0 -20
- package/docs/RecipeExportsApi.md +0 -118
- package/docs/RecipeImagesAndAssetsApi.md +0 -521
- package/docs/RecipeIngredientInput.md +0 -36
- package/docs/RecipeIngredientOutput.md +0 -36
- package/docs/RecipeIngredientParserApi.md +0 -119
- package/docs/RecipeInput.md +0 -84
- package/docs/RecipeLastMade.md +0 -20
- package/docs/RecipeNote.md +0 -22
- package/docs/RecipeOutput.md +0 -84
- package/docs/RecipeSettings.md +0 -30
- package/docs/RecipeShareToken.md +0 -30
- package/docs/RecipeShareTokenCreate.md +0 -22
- package/docs/RecipeShareTokenSummary.md +0 -28
- package/docs/RecipeSharedApi.md +0 -112
- package/docs/RecipeStep.md +0 -28
- package/docs/RecipeSuggestionResponse.md +0 -20
- package/docs/RecipeSuggestionResponseItem.md +0 -24
- package/docs/RecipeSummary.md +0 -68
- package/docs/RecipeTag.md +0 -26
- package/docs/RecipeTagPagination.md +0 -32
- package/docs/RecipeTagResponse.md +0 -28
- package/docs/RecipeTimelineApi.md +0 -366
- package/docs/RecipeTimelineEventIn.md +0 -32
- package/docs/RecipeTimelineEventOut.md +0 -42
- package/docs/RecipeTimelineEventPagination.md +0 -32
- package/docs/RecipeTimelineEventUpdate.md +0 -24
- package/docs/RecipeTool.md +0 -28
- package/docs/RecipeToolCreate.md +0 -22
- package/docs/RecipeToolOut.md +0 -28
- package/docs/RecipeToolPagination.md +0 -32
- package/docs/RecipeToolResponse.md +0 -30
- package/docs/RecipesFoodsApi.md +0 -364
- package/docs/RecipesUnitsApi.md +0 -364
- package/docs/RegisteredParser.md +0 -12
- package/docs/RelationalKeyword.md +0 -20
- package/docs/RelationalOperator.md +0 -18
- package/docs/Relationaloperator.md +0 -18
- package/docs/ReportCategory.md +0 -14
- package/docs/ReportEntryOut.md +0 -30
- package/docs/ReportOut.md +0 -32
- package/docs/ReportSummary.md +0 -30
- package/docs/ReportSummaryStatus.md +0 -14
- package/docs/ResetPassword.md +0 -26
- package/docs/SaveGroupRecipeAction.md +0 -28
- package/docs/ScrapeRecipe.md +0 -22
- package/docs/ScrapeRecipeData.md +0 -22
- package/docs/ScrapeRecipeTest.md +0 -22
- package/docs/SeederConfig.md +0 -20
- package/docs/SetPermissions.md +0 -28
- package/docs/SharedRecipesApi.md +0 -228
- package/docs/ShoppingListAddRecipeParams.md +0 -22
- package/docs/ShoppingListAddRecipeParamsBulk.md +0 -24
- package/docs/ShoppingListCreate.md +0 -26
- package/docs/ShoppingListItemCreate.md +0 -48
- package/docs/ShoppingListItemOutInput.md +0 -58
- package/docs/ShoppingListItemOutOutput.md +0 -58
- package/docs/ShoppingListItemPagination.md +0 -32
- package/docs/ShoppingListItemRecipeRefCreate.md +0 -26
- package/docs/ShoppingListItemRecipeRefOut.md +0 -30
- package/docs/ShoppingListItemRecipeRefUpdate.md +0 -30
- package/docs/ShoppingListItemUpdate.md +0 -46
- package/docs/ShoppingListItemUpdateBulk.md +0 -49
- package/docs/ShoppingListItemUpdateRecipeReferencesInner.md +0 -30
- package/docs/ShoppingListItemsCollectionOut.md +0 -25
- package/docs/ShoppingListMultiPurposeLabelOut.md +0 -28
- package/docs/ShoppingListMultiPurposeLabelUpdate.md +0 -26
- package/docs/ShoppingListOut.md +0 -40
- package/docs/ShoppingListPagination.md +0 -32
- package/docs/ShoppingListRecipeRefOut.md +0 -28
- package/docs/ShoppingListRemoveRecipeParams.md +0 -20
- package/docs/ShoppingListSummary.md +0 -38
- package/docs/ShoppingListUpdate.md +0 -34
- package/docs/SuccessResponse.md +0 -22
- package/docs/SupportedMigrations.md +0 -26
- package/docs/TagBase.md +0 -26
- package/docs/TagIn.md +0 -20
- package/docs/TagOut.md +0 -26
- package/docs/TimelineEventImage.md +0 -10
- package/docs/TimelineEventType.md +0 -12
- package/docs/Unit.md +0 -42
- package/docs/Unit1.md +0 -42
- package/docs/UnlockResults.md +0 -20
- package/docs/UpdateCookBook.md +0 -36
- package/docs/UpdateGroupPreferences.md +0 -20
- package/docs/UpdateHouseholdAdmin.md +0 -26
- package/docs/UpdateHouseholdPreferences.md +0 -34
- package/docs/UpdateImageResponse.md +0 -20
- package/docs/UpdatePlanEntry.md +0 -34
- package/docs/UserIn.md +0 -46
- package/docs/UserOut.md +0 -56
- package/docs/UserPagination.md +0 -32
- package/docs/UserRatingOut.md +0 -28
- package/docs/UserRatingSummary.md +0 -24
- package/docs/UserRatingUpdate.md +0 -22
- package/docs/UserRatingsUserRatingOut.md +0 -20
- package/docs/UserRatingsUserRatingSummary.md +0 -20
- package/docs/UserSummary.md +0 -28
- package/docs/UsernameOrId.md +0 -18
- package/docs/UsersAuthenticationApi.md +0 -250
- package/docs/UsersCRUDApi.md +0 -334
- package/docs/UsersImagesApi.md +0 -66
- package/docs/UsersPasswordsApi.md +0 -118
- package/docs/UsersRatingsApi.md +0 -300
- package/docs/UsersRegistrationApi.md +0 -63
- package/docs/UsersTokensApi.md +0 -120
- package/docs/UtilsApi.md +0 -60
- package/docs/ValidationError.md +0 -24
- package/docs/ValidationErrorLocInner.md +0 -18
- package/docs/Value.md +0 -18
- package/docs/WebhookPagination.md +0 -32
- package/docs/WebhookType.md +0 -8
- package/index.ts +0 -18
- package/tsconfig.json +0 -21
package/base.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Mealie
|
|
5
|
-
* Mealie is a web application for managing your recipes, meal plans, and shopping lists. This is the Restful API interactive documentation that can be used to explore the API. If you\'re justing getting started with the API and want to get started quickly, you can use the [API Usage | Mealie Docs](https://docs.mealie.io/documentation/getting-started/api-usage/) as a reference for how to get started. If you have any questions or comments about mealie, please use the discord server to talk to the developers or other community members. If you\'d like to file an issue, please use the [GitHub Issue Tracker | Mealie](https://github.com/mealie-recipes/mealie/issues/new/choose) ## Helpful Links - [Home Page](https://mealie.io) - [Documentation](https://docs.mealie.io) - [Discord](https://discord.gg/QuStdQGSGK) - [Demo](https://demo.mealie.io)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: nightly
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from './configuration';
|
|
17
|
-
// Some imports not used depending on template conditions
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
|
-
import globalAxios from 'axios';
|
|
21
|
-
|
|
22
|
-
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
23
|
-
|
|
24
|
-
export const COLLECTION_FORMATS = {
|
|
25
|
-
csv: ",",
|
|
26
|
-
ssv: " ",
|
|
27
|
-
tsv: "\t",
|
|
28
|
-
pipes: "|",
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export interface RequestArgs {
|
|
32
|
-
url: string;
|
|
33
|
-
options: RawAxiosRequestConfig;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export class BaseAPI {
|
|
37
|
-
protected configuration: Configuration | undefined;
|
|
38
|
-
|
|
39
|
-
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
40
|
-
if (configuration) {
|
|
41
|
-
this.configuration = configuration;
|
|
42
|
-
this.basePath = configuration.basePath ?? basePath;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export class RequiredError extends Error {
|
|
48
|
-
constructor(public field: string, msg?: string) {
|
|
49
|
-
super(msg);
|
|
50
|
-
this.name = "RequiredError"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface ServerMap {
|
|
55
|
-
[key: string]: {
|
|
56
|
-
url: string,
|
|
57
|
-
description: string,
|
|
58
|
-
}[];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export const operationServerMap: ServerMap = {
|
|
62
|
-
}
|
package/common.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Mealie
|
|
5
|
-
* Mealie is a web application for managing your recipes, meal plans, and shopping lists. This is the Restful API interactive documentation that can be used to explore the API. If you\'re justing getting started with the API and want to get started quickly, you can use the [API Usage | Mealie Docs](https://docs.mealie.io/documentation/getting-started/api-usage/) as a reference for how to get started. If you have any questions or comments about mealie, please use the discord server to talk to the developers or other community members. If you\'d like to file an issue, please use the [GitHub Issue Tracker | Mealie](https://github.com/mealie-recipes/mealie/issues/new/choose) ## Helpful Links - [Home Page](https://mealie.io) - [Documentation](https://docs.mealie.io) - [Discord](https://discord.gg/QuStdQGSGK) - [Demo](https://demo.mealie.io)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: nightly
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import type { Configuration } from "./configuration";
|
|
16
|
-
import type { RequestArgs } from "./base";
|
|
17
|
-
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
18
|
-
import { RequiredError } from "./base";
|
|
19
|
-
|
|
20
|
-
export const DUMMY_BASE_URL = 'https://example.com'
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @throws {RequiredError}
|
|
25
|
-
*/
|
|
26
|
-
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
27
|
-
if (paramValue === null || paramValue === undefined) {
|
|
28
|
-
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
33
|
-
if (configuration && configuration.apiKey) {
|
|
34
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
35
|
-
? await configuration.apiKey(keyParamName)
|
|
36
|
-
: await configuration.apiKey;
|
|
37
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
42
|
-
if (configuration && (configuration.username || configuration.password)) {
|
|
43
|
-
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
48
|
-
if (configuration && configuration.accessToken) {
|
|
49
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
50
|
-
? await configuration.accessToken()
|
|
51
|
-
: await configuration.accessToken;
|
|
52
|
-
object["Authorization"] = "Bearer " + accessToken;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
57
|
-
if (configuration && configuration.accessToken) {
|
|
58
|
-
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
59
|
-
? await configuration.accessToken(name, scopes)
|
|
60
|
-
: await configuration.accessToken;
|
|
61
|
-
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
67
|
-
if (parameter == null) return;
|
|
68
|
-
if (typeof parameter === "object") {
|
|
69
|
-
if (Array.isArray(parameter)) {
|
|
70
|
-
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
Object.keys(parameter).forEach(currentKey =>
|
|
74
|
-
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
if (urlSearchParams.has(key)) {
|
|
80
|
-
urlSearchParams.append(key, parameter);
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
urlSearchParams.set(key, parameter);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
89
|
-
const searchParams = new URLSearchParams(url.search);
|
|
90
|
-
setFlattenedQueryParams(searchParams, objects);
|
|
91
|
-
url.search = searchParams.toString();
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
95
|
-
const nonString = typeof value !== 'string';
|
|
96
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
97
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
98
|
-
: nonString;
|
|
99
|
-
return needsSerialization
|
|
100
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
101
|
-
: (value || "");
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export const toPathString = function (url: URL) {
|
|
105
|
-
return url.pathname + url.search + url.hash
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
109
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
110
|
-
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
111
|
-
return axios.request<T, R>(axiosRequestArgs);
|
|
112
|
-
};
|
|
113
|
-
}
|
package/configuration.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* Mealie
|
|
4
|
-
* Mealie is a web application for managing your recipes, meal plans, and shopping lists. This is the Restful API interactive documentation that can be used to explore the API. If you\'re justing getting started with the API and want to get started quickly, you can use the [API Usage | Mealie Docs](https://docs.mealie.io/documentation/getting-started/api-usage/) as a reference for how to get started. If you have any questions or comments about mealie, please use the discord server to talk to the developers or other community members. If you\'d like to file an issue, please use the [GitHub Issue Tracker | Mealie](https://github.com/mealie-recipes/mealie/issues/new/choose) ## Helpful Links - [Home Page](https://mealie.io) - [Documentation](https://docs.mealie.io) - [Discord](https://discord.gg/QuStdQGSGK) - [Demo](https://demo.mealie.io)
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: nightly
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
interface AWSv4Configuration {
|
|
15
|
-
options?: {
|
|
16
|
-
region?: string
|
|
17
|
-
service?: string
|
|
18
|
-
}
|
|
19
|
-
credentials?: {
|
|
20
|
-
accessKeyId?: string
|
|
21
|
-
secretAccessKey?: string,
|
|
22
|
-
sessionToken?: string
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface ConfigurationParameters {
|
|
27
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
-
username?: string;
|
|
29
|
-
password?: string;
|
|
30
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
31
|
-
awsv4?: AWSv4Configuration;
|
|
32
|
-
basePath?: string;
|
|
33
|
-
serverIndex?: number;
|
|
34
|
-
baseOptions?: any;
|
|
35
|
-
formDataCtor?: new () => any;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export class Configuration {
|
|
39
|
-
/**
|
|
40
|
-
* parameter for apiKey security
|
|
41
|
-
* @param name security name
|
|
42
|
-
*/
|
|
43
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
44
|
-
/**
|
|
45
|
-
* parameter for basic security
|
|
46
|
-
*/
|
|
47
|
-
username?: string;
|
|
48
|
-
/**
|
|
49
|
-
* parameter for basic security
|
|
50
|
-
*/
|
|
51
|
-
password?: string;
|
|
52
|
-
/**
|
|
53
|
-
* parameter for oauth2 security
|
|
54
|
-
* @param name security name
|
|
55
|
-
* @param scopes oauth2 scope
|
|
56
|
-
*/
|
|
57
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
58
|
-
/**
|
|
59
|
-
* parameter for aws4 signature security
|
|
60
|
-
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
61
|
-
* @param {string} options.region - aws region
|
|
62
|
-
* @param {string} options.service - name of the service.
|
|
63
|
-
* @param {string} credentials.accessKeyId - aws access key id
|
|
64
|
-
* @param {string} credentials.secretAccessKey - aws access key
|
|
65
|
-
* @param {string} credentials.sessionToken - aws session token
|
|
66
|
-
* @memberof Configuration
|
|
67
|
-
*/
|
|
68
|
-
awsv4?: AWSv4Configuration;
|
|
69
|
-
/**
|
|
70
|
-
* override base path
|
|
71
|
-
*/
|
|
72
|
-
basePath?: string;
|
|
73
|
-
/**
|
|
74
|
-
* override server index
|
|
75
|
-
*/
|
|
76
|
-
serverIndex?: number;
|
|
77
|
-
/**
|
|
78
|
-
* base options for axios calls
|
|
79
|
-
*/
|
|
80
|
-
baseOptions?: any;
|
|
81
|
-
/**
|
|
82
|
-
* The FormData constructor that will be used to create multipart form data
|
|
83
|
-
* requests. You can inject this here so that execution environments that
|
|
84
|
-
* do not support the FormData class can still run the generated client.
|
|
85
|
-
*
|
|
86
|
-
* @type {new () => FormData}
|
|
87
|
-
*/
|
|
88
|
-
formDataCtor?: new () => any;
|
|
89
|
-
|
|
90
|
-
constructor(param: ConfigurationParameters = {}) {
|
|
91
|
-
this.apiKey = param.apiKey;
|
|
92
|
-
this.username = param.username;
|
|
93
|
-
this.password = param.password;
|
|
94
|
-
this.accessToken = param.accessToken;
|
|
95
|
-
this.awsv4 = param.awsv4;
|
|
96
|
-
this.basePath = param.basePath;
|
|
97
|
-
this.serverIndex = param.serverIndex;
|
|
98
|
-
this.baseOptions = {
|
|
99
|
-
...param.baseOptions,
|
|
100
|
-
headers: {
|
|
101
|
-
...param.baseOptions?.headers,
|
|
102
|
-
},
|
|
103
|
-
};
|
|
104
|
-
this.formDataCtor = param.formDataCtor;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Check if the given MIME is a JSON MIME.
|
|
109
|
-
* JSON MIME examples:
|
|
110
|
-
* application/json
|
|
111
|
-
* application/json; charset=UTF8
|
|
112
|
-
* APPLICATION/JSON
|
|
113
|
-
* application/vnd.company+json
|
|
114
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
115
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
116
|
-
*/
|
|
117
|
-
public isJsonMime(mime: string): boolean {
|
|
118
|
-
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
119
|
-
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
120
|
-
}
|
|
121
|
-
}
|
package/docs/AdminAboutApi.md
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
# AdminAboutApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**checkAppConfigApiAdminAboutCheckGet**](#checkappconfigapiadminaboutcheckget) | **GET** /api/admin/about/check | Check App Config|
|
|
8
|
-
|[**getAppInfoApiAdminAboutGet**](#getappinfoapiadminaboutget) | **GET** /api/admin/about | Get App Info|
|
|
9
|
-
|[**getAppStatisticsApiAdminAboutStatisticsGet**](#getappstatisticsapiadminaboutstatisticsget) | **GET** /api/admin/about/statistics | Get App Statistics|
|
|
10
|
-
|
|
11
|
-
# **checkAppConfigApiAdminAboutCheckGet**
|
|
12
|
-
> CheckAppConfig checkAppConfigApiAdminAboutCheckGet()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
AdminAboutApi,
|
|
20
|
-
Configuration
|
|
21
|
-
} from 'mealie-typescript';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new AdminAboutApi(configuration);
|
|
25
|
-
|
|
26
|
-
let acceptLanguage: string; // (optional) (default to undefined)
|
|
27
|
-
|
|
28
|
-
const { status, data } = await apiInstance.checkAppConfigApiAdminAboutCheckGet(
|
|
29
|
-
acceptLanguage
|
|
30
|
-
);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
|Name | Type | Description | Notes|
|
|
36
|
-
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### Return type
|
|
41
|
-
|
|
42
|
-
**CheckAppConfig**
|
|
43
|
-
|
|
44
|
-
### Authorization
|
|
45
|
-
|
|
46
|
-
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
47
|
-
|
|
48
|
-
### HTTP request headers
|
|
49
|
-
|
|
50
|
-
- **Content-Type**: Not defined
|
|
51
|
-
- **Accept**: application/json
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### HTTP response details
|
|
55
|
-
| Status code | Description | Response headers |
|
|
56
|
-
|-------------|-------------|------------------|
|
|
57
|
-
|**200** | Successful Response | - |
|
|
58
|
-
|**422** | Validation Error | - |
|
|
59
|
-
|
|
60
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
61
|
-
|
|
62
|
-
# **getAppInfoApiAdminAboutGet**
|
|
63
|
-
> AdminAboutInfo getAppInfoApiAdminAboutGet()
|
|
64
|
-
|
|
65
|
-
Get general application information
|
|
66
|
-
|
|
67
|
-
### Example
|
|
68
|
-
|
|
69
|
-
```typescript
|
|
70
|
-
import {
|
|
71
|
-
AdminAboutApi,
|
|
72
|
-
Configuration
|
|
73
|
-
} from 'mealie-typescript';
|
|
74
|
-
|
|
75
|
-
const configuration = new Configuration();
|
|
76
|
-
const apiInstance = new AdminAboutApi(configuration);
|
|
77
|
-
|
|
78
|
-
let acceptLanguage: string; // (optional) (default to undefined)
|
|
79
|
-
|
|
80
|
-
const { status, data } = await apiInstance.getAppInfoApiAdminAboutGet(
|
|
81
|
-
acceptLanguage
|
|
82
|
-
);
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Parameters
|
|
86
|
-
|
|
87
|
-
|Name | Type | Description | Notes|
|
|
88
|
-
|------------- | ------------- | ------------- | -------------|
|
|
89
|
-
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
### Return type
|
|
93
|
-
|
|
94
|
-
**AdminAboutInfo**
|
|
95
|
-
|
|
96
|
-
### Authorization
|
|
97
|
-
|
|
98
|
-
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
99
|
-
|
|
100
|
-
### HTTP request headers
|
|
101
|
-
|
|
102
|
-
- **Content-Type**: Not defined
|
|
103
|
-
- **Accept**: application/json
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### HTTP response details
|
|
107
|
-
| Status code | Description | Response headers |
|
|
108
|
-
|-------------|-------------|------------------|
|
|
109
|
-
|**200** | Successful Response | - |
|
|
110
|
-
|**422** | Validation Error | - |
|
|
111
|
-
|
|
112
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
113
|
-
|
|
114
|
-
# **getAppStatisticsApiAdminAboutStatisticsGet**
|
|
115
|
-
> AppStatistics getAppStatisticsApiAdminAboutStatisticsGet()
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
### Example
|
|
119
|
-
|
|
120
|
-
```typescript
|
|
121
|
-
import {
|
|
122
|
-
AdminAboutApi,
|
|
123
|
-
Configuration
|
|
124
|
-
} from 'mealie-typescript';
|
|
125
|
-
|
|
126
|
-
const configuration = new Configuration();
|
|
127
|
-
const apiInstance = new AdminAboutApi(configuration);
|
|
128
|
-
|
|
129
|
-
let acceptLanguage: string; // (optional) (default to undefined)
|
|
130
|
-
|
|
131
|
-
const { status, data } = await apiInstance.getAppStatisticsApiAdminAboutStatisticsGet(
|
|
132
|
-
acceptLanguage
|
|
133
|
-
);
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Parameters
|
|
137
|
-
|
|
138
|
-
|Name | Type | Description | Notes|
|
|
139
|
-
|------------- | ------------- | ------------- | -------------|
|
|
140
|
-
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### Return type
|
|
144
|
-
|
|
145
|
-
**AppStatistics**
|
|
146
|
-
|
|
147
|
-
### Authorization
|
|
148
|
-
|
|
149
|
-
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
150
|
-
|
|
151
|
-
### HTTP request headers
|
|
152
|
-
|
|
153
|
-
- **Content-Type**: Not defined
|
|
154
|
-
- **Accept**: application/json
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
### HTTP response details
|
|
158
|
-
| Status code | Description | Response headers |
|
|
159
|
-
|-------------|-------------|------------------|
|
|
160
|
-
|**200** | Successful Response | - |
|
|
161
|
-
|**422** | Validation Error | - |
|
|
162
|
-
|
|
163
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
164
|
-
|
package/docs/AdminAboutInfo.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# AdminAboutInfo
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**production** | **boolean** | | [default to undefined]
|
|
9
|
-
**version** | **string** | | [default to undefined]
|
|
10
|
-
**demoStatus** | **boolean** | | [default to undefined]
|
|
11
|
-
**allowSignup** | **boolean** | | [default to undefined]
|
|
12
|
-
**allowPasswordLogin** | **boolean** | | [default to undefined]
|
|
13
|
-
**defaultGroupSlug** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**defaultHouseholdSlug** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**enableOidc** | **boolean** | | [default to undefined]
|
|
16
|
-
**oidcRedirect** | **boolean** | | [default to undefined]
|
|
17
|
-
**oidcProviderName** | **string** | | [default to undefined]
|
|
18
|
-
**enableOpenai** | **boolean** | | [default to undefined]
|
|
19
|
-
**enableOpenaiImageServices** | **boolean** | | [default to undefined]
|
|
20
|
-
**tokenTime** | **number** | | [default to undefined]
|
|
21
|
-
**versionLatest** | **string** | | [default to undefined]
|
|
22
|
-
**apiPort** | **number** | | [default to undefined]
|
|
23
|
-
**apiDocs** | **boolean** | | [default to undefined]
|
|
24
|
-
**dbType** | **string** | | [default to undefined]
|
|
25
|
-
**dbUrl** | **string** | | [optional] [default to undefined]
|
|
26
|
-
**defaultGroup** | **string** | | [default to undefined]
|
|
27
|
-
**defaultHousehold** | **string** | | [default to undefined]
|
|
28
|
-
**buildId** | **string** | | [default to undefined]
|
|
29
|
-
**recipeScraperVersion** | **string** | | [default to undefined]
|
|
30
|
-
|
|
31
|
-
## Example
|
|
32
|
-
|
|
33
|
-
```typescript
|
|
34
|
-
import { AdminAboutInfo } from 'mealie-typescript';
|
|
35
|
-
|
|
36
|
-
const instance: AdminAboutInfo = {
|
|
37
|
-
production,
|
|
38
|
-
version,
|
|
39
|
-
demoStatus,
|
|
40
|
-
allowSignup,
|
|
41
|
-
allowPasswordLogin,
|
|
42
|
-
defaultGroupSlug,
|
|
43
|
-
defaultHouseholdSlug,
|
|
44
|
-
enableOidc,
|
|
45
|
-
oidcRedirect,
|
|
46
|
-
oidcProviderName,
|
|
47
|
-
enableOpenai,
|
|
48
|
-
enableOpenaiImageServices,
|
|
49
|
-
tokenTime,
|
|
50
|
-
versionLatest,
|
|
51
|
-
apiPort,
|
|
52
|
-
apiDocs,
|
|
53
|
-
dbType,
|
|
54
|
-
dbUrl,
|
|
55
|
-
defaultGroup,
|
|
56
|
-
defaultHousehold,
|
|
57
|
-
buildId,
|
|
58
|
-
recipeScraperVersion,
|
|
59
|
-
};
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|