mealie-typescript 1.0.0
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/.openapi-generator/FILES +306 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +24 -0
- package/README.md +564 -0
- package/api.ts +28987 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +15860 -0
- package/dist/api.js +28568 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +67 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +216 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AdminAboutApi.md +164 -0
- package/docs/AdminAboutInfo.md +62 -0
- package/docs/AdminBackupsApi.md +333 -0
- package/docs/AdminDebugApi.md +62 -0
- package/docs/AdminEmailApi.md +116 -0
- package/docs/AdminMaintenanceApi.md +270 -0
- package/docs/AdminManageGroupsApi.md +305 -0
- package/docs/AdminManageHouseholdsApi.md +305 -0
- package/docs/AdminManageUsersApi.md +417 -0
- package/docs/AllBackups.md +22 -0
- package/docs/AppAboutApi.md +142 -0
- package/docs/AppInfo.md +44 -0
- package/docs/AppStartupInfo.md +22 -0
- package/docs/AppStatistics.md +30 -0
- package/docs/AppTheme.md +46 -0
- package/docs/AssignCategories.md +22 -0
- package/docs/AssignSettings.md +22 -0
- package/docs/AssignTags.md +22 -0
- package/docs/AuthMethod.md +12 -0
- package/docs/BackupFile.md +24 -0
- package/docs/BodyTriggerActionApiHouseholdsRecipeActionsItemIdTriggerRecipeSlugPost.md +20 -0
- package/docs/CategoryBase.md +26 -0
- package/docs/CategoryIn.md +20 -0
- package/docs/CategoryOut.md +26 -0
- package/docs/CategorySummary.md +24 -0
- package/docs/ChangePassword.md +22 -0
- package/docs/CheckAppConfig.md +30 -0
- package/docs/CookBookPagination.md +32 -0
- package/docs/Cookbook.md +18 -0
- package/docs/Cookbook1.md +18 -0
- package/docs/CookbookHousehold.md +22 -0
- package/docs/CreateCookBook.md +30 -0
- package/docs/CreateGroupRecipeAction.md +24 -0
- package/docs/CreateIngredientFood.md +34 -0
- package/docs/CreateIngredientFoodAlias.md +20 -0
- package/docs/CreateIngredientUnit.md +38 -0
- package/docs/CreateIngredientUnitAlias.md +20 -0
- package/docs/CreateInviteToken.md +24 -0
- package/docs/CreatePlanEntry.md +28 -0
- package/docs/CreateRandomEntry.md +22 -0
- package/docs/CreateRecipe.md +20 -0
- package/docs/CreateRecipeBulk.md +24 -0
- package/docs/CreateRecipeByUrlBulk.md +20 -0
- package/docs/CreateUserRegistration.md +42 -0
- package/docs/CreateWebhook.md +28 -0
- package/docs/DebugResponse.md +22 -0
- package/docs/DeleteRecipes.md +20 -0
- package/docs/DeleteTokenResponse.md +20 -0
- package/docs/EmailInitationResponse.md +22 -0
- package/docs/EmailInvitation.md +22 -0
- package/docs/EmailReady.md +20 -0
- package/docs/EmailSuccess.md +22 -0
- package/docs/EmailTest.md +20 -0
- package/docs/ExploreCategoriesApi.md +144 -0
- package/docs/ExploreCookbooksApi.md +145 -0
- package/docs/ExploreFoodsApi.md +144 -0
- package/docs/ExploreHouseholdsApi.md +141 -0
- package/docs/ExploreRecipesApi.md +266 -0
- package/docs/ExploreTagsApi.md +144 -0
- package/docs/ExploreToolsApi.md +144 -0
- package/docs/ExportRecipes.md +22 -0
- package/docs/ExportTypes.md +8 -0
- package/docs/FileTokenResponse.md +20 -0
- package/docs/Food.md +40 -0
- package/docs/Food1.md +40 -0
- package/docs/ForgotPassword.md +20 -0
- package/docs/FormatResponse.md +22 -0
- package/docs/GetAllApiRecipesGetCategoriesParameterInner.md +18 -0
- package/docs/GetAllApiRecipesGetTagsParameterInner.md +18 -0
- package/docs/GroupAdminUpdate.md +24 -0
- package/docs/GroupBase.md +20 -0
- package/docs/GroupDataExport.md +32 -0
- package/docs/GroupEventNotifierCreate.md +22 -0
- package/docs/GroupEventNotifierOptions.md +69 -0
- package/docs/GroupEventNotifierOptionsOut.md +70 -0
- package/docs/GroupEventNotifierOut.md +30 -0
- package/docs/GroupEventNotifierUpdate.md +32 -0
- package/docs/GroupEventPagination.md +32 -0
- package/docs/GroupHouseholdSummary.md +22 -0
- package/docs/GroupInDB.md +34 -0
- package/docs/GroupPagination.md +32 -0
- package/docs/GroupRecipeActionOut.md +30 -0
- package/docs/GroupRecipeActionPagination.md +32 -0
- package/docs/GroupRecipeActionType.md +10 -0
- package/docs/GroupStorage.md +26 -0
- package/docs/GroupSummary.md +26 -0
- package/docs/GroupsHouseholdsApi.md +135 -0
- package/docs/GroupsMigrationsApi.md +68 -0
- package/docs/GroupsMultiPurposeLabelsApi.md +308 -0
- package/docs/GroupsReportsApi.md +172 -0
- package/docs/GroupsSeedersApi.md +175 -0
- package/docs/GroupsSelfServiceApi.md +351 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/HouseholdCreate.md +22 -0
- package/docs/HouseholdInDB.md +34 -0
- package/docs/HouseholdPagination.md +32 -0
- package/docs/HouseholdRecipeSummary.md +22 -0
- package/docs/HouseholdStatistics.md +28 -0
- package/docs/HouseholdSummary.md +28 -0
- package/docs/HouseholdUserSummary.md +22 -0
- package/docs/HouseholdsCookbooksApi.md +361 -0
- package/docs/HouseholdsEventNotificationsApi.md +360 -0
- package/docs/HouseholdsInvitationsApi.md +171 -0
- package/docs/HouseholdsMealplanRulesApi.md +305 -0
- package/docs/HouseholdsMealplansApi.md +420 -0
- package/docs/HouseholdsRecipeActionsApi.md +367 -0
- package/docs/HouseholdsSelfServiceApi.md +406 -0
- package/docs/HouseholdsShoppingListItemsApi.md +470 -0
- package/docs/HouseholdsShoppingListsApi.md +545 -0
- package/docs/HouseholdsWebhooksApi.md +413 -0
- package/docs/ImageType.md +12 -0
- package/docs/IngredientConfidence.md +30 -0
- package/docs/IngredientFoodAlias.md +20 -0
- package/docs/IngredientFoodInput.md +40 -0
- package/docs/IngredientFoodOutput.md +40 -0
- package/docs/IngredientFoodPagination.md +32 -0
- package/docs/IngredientReferences.md +21 -0
- package/docs/IngredientRequest.md +22 -0
- package/docs/IngredientUnitAlias.md +20 -0
- package/docs/IngredientUnitInput.md +42 -0
- package/docs/IngredientUnitOutput.md +42 -0
- package/docs/IngredientUnitPagination.md +32 -0
- package/docs/IngredientsRequest.md +22 -0
- package/docs/ItemId.md +18 -0
- package/docs/ItemId1.md +18 -0
- package/docs/LogicalOperator.md +10 -0
- package/docs/LongLiveTokenCreateResponse.md +27 -0
- package/docs/LongLiveTokenIn.md +22 -0
- package/docs/LongLiveTokenOut.md +24 -0
- package/docs/MaintenanceStorageDetails.md +28 -0
- package/docs/MaintenanceSummary.md +24 -0
- package/docs/MealieSchemaRecipeRecipeCommentsUserBase.md +26 -0
- package/docs/MealieSchemaUserUserUserBase.md +44 -0
- package/docs/MergeFood.md +22 -0
- package/docs/MergeUnit.md +22 -0
- package/docs/MultiPurposeLabelCreate.md +22 -0
- package/docs/MultiPurposeLabelOut.md +26 -0
- package/docs/MultiPurposeLabelPagination.md +32 -0
- package/docs/MultiPurposeLabelSummary.md +26 -0
- package/docs/MultiPurposeLabelUpdate.md +26 -0
- package/docs/Nutrition.md +40 -0
- package/docs/OrderByNullPosition.md +10 -0
- package/docs/OrderDirection.md +10 -0
- package/docs/OrganizerCategoriesApi.md +422 -0
- package/docs/OrganizerTagsApi.md +421 -0
- package/docs/OrganizerToolsApi.md +363 -0
- package/docs/PaginationBaseHouseholdSummary.md +32 -0
- package/docs/PaginationBaseIngredientFood.md +32 -0
- package/docs/PaginationBaseReadCookBook.md +32 -0
- package/docs/PaginationBaseRecipeCategory.md +32 -0
- package/docs/PaginationBaseRecipeSummary.md +32 -0
- package/docs/PaginationBaseRecipeTag.md +32 -0
- package/docs/PaginationBaseRecipeTool.md +32 -0
- package/docs/PaginationBaseUserOut.md +32 -0
- package/docs/PaginationBaseUserSummary.md +32 -0
- package/docs/ParsedIngredient.md +24 -0
- package/docs/PasswordResetToken.md +20 -0
- package/docs/PlanEntryPagination.md +32 -0
- package/docs/PlanEntryType.md +20 -0
- package/docs/PlanRulesCreate.md +24 -0
- package/docs/PlanRulesDay.md +22 -0
- package/docs/PlanRulesOut.md +32 -0
- package/docs/PlanRulesPagination.md +32 -0
- package/docs/PlanRulesType.md +22 -0
- package/docs/QueryFilterJSON.md +20 -0
- package/docs/QueryFilterJSONPart.md +30 -0
- package/docs/ReadCookBook.md +40 -0
- package/docs/ReadGroupPreferences.md +24 -0
- package/docs/ReadHouseholdPreferences.md +36 -0
- package/docs/ReadInviteToken.md +26 -0
- package/docs/ReadPlanEntry.md +38 -0
- package/docs/ReadWebhook.md +34 -0
- package/docs/RecipeAsset.md +24 -0
- package/docs/RecipeBulkActionsApi.md +448 -0
- package/docs/RecipeCRUDApi.md +1306 -0
- package/docs/RecipeCategory.md +26 -0
- package/docs/RecipeCategoryPagination.md +32 -0
- package/docs/RecipeCommentCreate.md +22 -0
- package/docs/RecipeCommentOutInput.md +32 -0
- package/docs/RecipeCommentOutOutput.md +32 -0
- package/docs/RecipeCommentPagination.md +32 -0
- package/docs/RecipeCommentUpdate.md +22 -0
- package/docs/RecipeCommentsApi.md +361 -0
- package/docs/RecipeDuplicate.md +20 -0
- package/docs/RecipeExportsApi.md +118 -0
- package/docs/RecipeImagesAndAssetsApi.md +521 -0
- package/docs/RecipeIngredientInput.md +36 -0
- package/docs/RecipeIngredientOutput.md +36 -0
- package/docs/RecipeIngredientParserApi.md +119 -0
- package/docs/RecipeInput.md +84 -0
- package/docs/RecipeLastMade.md +20 -0
- package/docs/RecipeNote.md +22 -0
- package/docs/RecipeOutput.md +84 -0
- package/docs/RecipeSettings.md +30 -0
- package/docs/RecipeShareToken.md +30 -0
- package/docs/RecipeShareTokenCreate.md +22 -0
- package/docs/RecipeShareTokenSummary.md +28 -0
- package/docs/RecipeSharedApi.md +112 -0
- package/docs/RecipeStep.md +28 -0
- package/docs/RecipeSuggestionResponse.md +20 -0
- package/docs/RecipeSuggestionResponseItem.md +24 -0
- package/docs/RecipeSummary.md +68 -0
- package/docs/RecipeTag.md +26 -0
- package/docs/RecipeTagPagination.md +32 -0
- package/docs/RecipeTagResponse.md +28 -0
- package/docs/RecipeTimelineApi.md +366 -0
- package/docs/RecipeTimelineEventIn.md +32 -0
- package/docs/RecipeTimelineEventOut.md +42 -0
- package/docs/RecipeTimelineEventPagination.md +32 -0
- package/docs/RecipeTimelineEventUpdate.md +24 -0
- package/docs/RecipeTool.md +28 -0
- package/docs/RecipeToolCreate.md +22 -0
- package/docs/RecipeToolOut.md +28 -0
- package/docs/RecipeToolPagination.md +32 -0
- package/docs/RecipeToolResponse.md +30 -0
- package/docs/RecipesFoodsApi.md +364 -0
- package/docs/RecipesUnitsApi.md +364 -0
- package/docs/RegisteredParser.md +12 -0
- package/docs/RelationalKeyword.md +20 -0
- package/docs/RelationalOperator.md +18 -0
- package/docs/Relationaloperator.md +18 -0
- package/docs/ReportCategory.md +14 -0
- package/docs/ReportEntryOut.md +30 -0
- package/docs/ReportOut.md +32 -0
- package/docs/ReportSummary.md +30 -0
- package/docs/ReportSummaryStatus.md +14 -0
- package/docs/ResetPassword.md +26 -0
- package/docs/SaveGroupRecipeAction.md +28 -0
- package/docs/ScrapeRecipe.md +22 -0
- package/docs/ScrapeRecipeData.md +22 -0
- package/docs/ScrapeRecipeTest.md +22 -0
- package/docs/SeederConfig.md +20 -0
- package/docs/SetPermissions.md +28 -0
- package/docs/SharedRecipesApi.md +228 -0
- package/docs/ShoppingListAddRecipeParams.md +22 -0
- package/docs/ShoppingListAddRecipeParamsBulk.md +24 -0
- package/docs/ShoppingListCreate.md +26 -0
- package/docs/ShoppingListItemCreate.md +48 -0
- package/docs/ShoppingListItemOutInput.md +58 -0
- package/docs/ShoppingListItemOutOutput.md +58 -0
- package/docs/ShoppingListItemPagination.md +32 -0
- package/docs/ShoppingListItemRecipeRefCreate.md +26 -0
- package/docs/ShoppingListItemRecipeRefOut.md +30 -0
- package/docs/ShoppingListItemRecipeRefUpdate.md +30 -0
- package/docs/ShoppingListItemUpdate.md +46 -0
- package/docs/ShoppingListItemUpdateBulk.md +49 -0
- package/docs/ShoppingListItemUpdateRecipeReferencesInner.md +30 -0
- package/docs/ShoppingListItemsCollectionOut.md +25 -0
- package/docs/ShoppingListMultiPurposeLabelOut.md +28 -0
- package/docs/ShoppingListMultiPurposeLabelUpdate.md +26 -0
- package/docs/ShoppingListOut.md +40 -0
- package/docs/ShoppingListPagination.md +32 -0
- package/docs/ShoppingListRecipeRefOut.md +28 -0
- package/docs/ShoppingListRemoveRecipeParams.md +20 -0
- package/docs/ShoppingListSummary.md +38 -0
- package/docs/ShoppingListUpdate.md +34 -0
- package/docs/SuccessResponse.md +22 -0
- package/docs/SupportedMigrations.md +26 -0
- package/docs/TagBase.md +26 -0
- package/docs/TagIn.md +20 -0
- package/docs/TagOut.md +26 -0
- package/docs/TimelineEventImage.md +10 -0
- package/docs/TimelineEventType.md +12 -0
- package/docs/Unit.md +42 -0
- package/docs/Unit1.md +42 -0
- package/docs/UnlockResults.md +20 -0
- package/docs/UpdateCookBook.md +36 -0
- package/docs/UpdateGroupPreferences.md +20 -0
- package/docs/UpdateHouseholdAdmin.md +26 -0
- package/docs/UpdateHouseholdPreferences.md +34 -0
- package/docs/UpdateImageResponse.md +20 -0
- package/docs/UpdatePlanEntry.md +34 -0
- package/docs/UserIn.md +46 -0
- package/docs/UserOut.md +56 -0
- package/docs/UserPagination.md +32 -0
- package/docs/UserRatingOut.md +28 -0
- package/docs/UserRatingSummary.md +24 -0
- package/docs/UserRatingUpdate.md +22 -0
- package/docs/UserRatingsUserRatingOut.md +20 -0
- package/docs/UserRatingsUserRatingSummary.md +20 -0
- package/docs/UserSummary.md +28 -0
- package/docs/UsernameOrId.md +18 -0
- package/docs/UsersAuthenticationApi.md +250 -0
- package/docs/UsersCRUDApi.md +334 -0
- package/docs/UsersImagesApi.md +66 -0
- package/docs/UsersPasswordsApi.md +118 -0
- package/docs/UsersRatingsApi.md +300 -0
- package/docs/UsersRegistrationApi.md +63 -0
- package/docs/UsersTokensApi.md +120 -0
- package/docs/UtilsApi.md +60 -0
- package/docs/ValidationError.md +24 -0
- package/docs/ValidationErrorLocInner.md +18 -0
- package/docs/Value.md +18 -0
- package/docs/WebhookPagination.md +32 -0
- package/docs/WebhookType.md +8 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
# UsersRatingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**addFavoriteApiUsersIdFavoritesSlugPost**](#addfavoriteapiusersidfavoritesslugpost) | **POST** /api/users/{id}/favorites/{slug} | Add Favorite|
|
|
8
|
+
|[**getFavoritesApiUsersIdFavoritesGet**](#getfavoritesapiusersidfavoritesget) | **GET** /api/users/{id}/favorites | Get Favorites|
|
|
9
|
+
|[**getRatingsApiUsersIdRatingsGet**](#getratingsapiusersidratingsget) | **GET** /api/users/{id}/ratings | Get Ratings|
|
|
10
|
+
|[**removeFavoriteApiUsersIdFavoritesSlugDelete**](#removefavoriteapiusersidfavoritesslugdelete) | **DELETE** /api/users/{id}/favorites/{slug} | Remove Favorite|
|
|
11
|
+
|[**setRatingApiUsersIdRatingsSlugPost**](#setratingapiusersidratingsslugpost) | **POST** /api/users/{id}/ratings/{slug} | Set Rating|
|
|
12
|
+
|
|
13
|
+
# **addFavoriteApiUsersIdFavoritesSlugPost**
|
|
14
|
+
> any addFavoriteApiUsersIdFavoritesSlugPost()
|
|
15
|
+
|
|
16
|
+
Adds a recipe to the user\'s favorites
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
UsersRatingsApi,
|
|
23
|
+
Configuration
|
|
24
|
+
} from 'mealie-typescript';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new UsersRatingsApi(configuration);
|
|
28
|
+
|
|
29
|
+
let id: string; // (default to undefined)
|
|
30
|
+
let slug: string; // (default to undefined)
|
|
31
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.addFavoriteApiUsersIdFavoritesSlugPost(
|
|
34
|
+
id,
|
|
35
|
+
slug,
|
|
36
|
+
acceptLanguage
|
|
37
|
+
);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
|Name | Type | Description | Notes|
|
|
43
|
+
|------------- | ------------- | ------------- | -------------|
|
|
44
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
45
|
+
| **slug** | [**string**] | | defaults to undefined|
|
|
46
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
**any**
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: Not defined
|
|
60
|
+
- **Accept**: application/json
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### HTTP response details
|
|
64
|
+
| Status code | Description | Response headers |
|
|
65
|
+
|-------------|-------------|------------------|
|
|
66
|
+
|**200** | Successful Response | - |
|
|
67
|
+
|**422** | Validation Error | - |
|
|
68
|
+
|
|
69
|
+
[[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)
|
|
70
|
+
|
|
71
|
+
# **getFavoritesApiUsersIdFavoritesGet**
|
|
72
|
+
> UserRatingsUserRatingOut getFavoritesApiUsersIdFavoritesGet()
|
|
73
|
+
|
|
74
|
+
Get user\'s favorited recipes
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
UsersRatingsApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from 'mealie-typescript';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new UsersRatingsApi(configuration);
|
|
86
|
+
|
|
87
|
+
let id: string; // (default to undefined)
|
|
88
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
89
|
+
|
|
90
|
+
const { status, data } = await apiInstance.getFavoritesApiUsersIdFavoritesGet(
|
|
91
|
+
id,
|
|
92
|
+
acceptLanguage
|
|
93
|
+
);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|Name | Type | Description | Notes|
|
|
99
|
+
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
101
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
**UserRatingsUserRatingOut**
|
|
107
|
+
|
|
108
|
+
### Authorization
|
|
109
|
+
|
|
110
|
+
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
111
|
+
|
|
112
|
+
### HTTP request headers
|
|
113
|
+
|
|
114
|
+
- **Content-Type**: Not defined
|
|
115
|
+
- **Accept**: application/json
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**200** | Successful Response | - |
|
|
122
|
+
|**422** | Validation Error | - |
|
|
123
|
+
|
|
124
|
+
[[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)
|
|
125
|
+
|
|
126
|
+
# **getRatingsApiUsersIdRatingsGet**
|
|
127
|
+
> UserRatingsUserRatingOut getRatingsApiUsersIdRatingsGet()
|
|
128
|
+
|
|
129
|
+
Get user\'s rated recipes
|
|
130
|
+
|
|
131
|
+
### Example
|
|
132
|
+
|
|
133
|
+
```typescript
|
|
134
|
+
import {
|
|
135
|
+
UsersRatingsApi,
|
|
136
|
+
Configuration
|
|
137
|
+
} from 'mealie-typescript';
|
|
138
|
+
|
|
139
|
+
const configuration = new Configuration();
|
|
140
|
+
const apiInstance = new UsersRatingsApi(configuration);
|
|
141
|
+
|
|
142
|
+
let id: string; // (default to undefined)
|
|
143
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
144
|
+
|
|
145
|
+
const { status, data } = await apiInstance.getRatingsApiUsersIdRatingsGet(
|
|
146
|
+
id,
|
|
147
|
+
acceptLanguage
|
|
148
|
+
);
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Parameters
|
|
152
|
+
|
|
153
|
+
|Name | Type | Description | Notes|
|
|
154
|
+
|------------- | ------------- | ------------- | -------------|
|
|
155
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
156
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
**UserRatingsUserRatingOut**
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: Not defined
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### HTTP response details
|
|
174
|
+
| Status code | Description | Response headers |
|
|
175
|
+
|-------------|-------------|------------------|
|
|
176
|
+
|**200** | Successful Response | - |
|
|
177
|
+
|**422** | Validation Error | - |
|
|
178
|
+
|
|
179
|
+
[[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)
|
|
180
|
+
|
|
181
|
+
# **removeFavoriteApiUsersIdFavoritesSlugDelete**
|
|
182
|
+
> any removeFavoriteApiUsersIdFavoritesSlugDelete()
|
|
183
|
+
|
|
184
|
+
Removes a recipe from the user\'s favorites
|
|
185
|
+
|
|
186
|
+
### Example
|
|
187
|
+
|
|
188
|
+
```typescript
|
|
189
|
+
import {
|
|
190
|
+
UsersRatingsApi,
|
|
191
|
+
Configuration
|
|
192
|
+
} from 'mealie-typescript';
|
|
193
|
+
|
|
194
|
+
const configuration = new Configuration();
|
|
195
|
+
const apiInstance = new UsersRatingsApi(configuration);
|
|
196
|
+
|
|
197
|
+
let id: string; // (default to undefined)
|
|
198
|
+
let slug: string; // (default to undefined)
|
|
199
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
200
|
+
|
|
201
|
+
const { status, data } = await apiInstance.removeFavoriteApiUsersIdFavoritesSlugDelete(
|
|
202
|
+
id,
|
|
203
|
+
slug,
|
|
204
|
+
acceptLanguage
|
|
205
|
+
);
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
|Name | Type | Description | Notes|
|
|
211
|
+
|------------- | ------------- | ------------- | -------------|
|
|
212
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
213
|
+
| **slug** | [**string**] | | defaults to undefined|
|
|
214
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Return type
|
|
218
|
+
|
|
219
|
+
**any**
|
|
220
|
+
|
|
221
|
+
### Authorization
|
|
222
|
+
|
|
223
|
+
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
224
|
+
|
|
225
|
+
### HTTP request headers
|
|
226
|
+
|
|
227
|
+
- **Content-Type**: Not defined
|
|
228
|
+
- **Accept**: application/json
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### HTTP response details
|
|
232
|
+
| Status code | Description | Response headers |
|
|
233
|
+
|-------------|-------------|------------------|
|
|
234
|
+
|**200** | Successful Response | - |
|
|
235
|
+
|**422** | Validation Error | - |
|
|
236
|
+
|
|
237
|
+
[[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)
|
|
238
|
+
|
|
239
|
+
# **setRatingApiUsersIdRatingsSlugPost**
|
|
240
|
+
> any setRatingApiUsersIdRatingsSlugPost(userRatingUpdate)
|
|
241
|
+
|
|
242
|
+
Sets the user\'s rating for a recipe
|
|
243
|
+
|
|
244
|
+
### Example
|
|
245
|
+
|
|
246
|
+
```typescript
|
|
247
|
+
import {
|
|
248
|
+
UsersRatingsApi,
|
|
249
|
+
Configuration,
|
|
250
|
+
UserRatingUpdate
|
|
251
|
+
} from 'mealie-typescript';
|
|
252
|
+
|
|
253
|
+
const configuration = new Configuration();
|
|
254
|
+
const apiInstance = new UsersRatingsApi(configuration);
|
|
255
|
+
|
|
256
|
+
let id: string; // (default to undefined)
|
|
257
|
+
let slug: string; // (default to undefined)
|
|
258
|
+
let userRatingUpdate: UserRatingUpdate; //
|
|
259
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
260
|
+
|
|
261
|
+
const { status, data } = await apiInstance.setRatingApiUsersIdRatingsSlugPost(
|
|
262
|
+
id,
|
|
263
|
+
slug,
|
|
264
|
+
userRatingUpdate,
|
|
265
|
+
acceptLanguage
|
|
266
|
+
);
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
### Parameters
|
|
270
|
+
|
|
271
|
+
|Name | Type | Description | Notes|
|
|
272
|
+
|------------- | ------------- | ------------- | -------------|
|
|
273
|
+
| **userRatingUpdate** | **UserRatingUpdate**| | |
|
|
274
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
275
|
+
| **slug** | [**string**] | | defaults to undefined|
|
|
276
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
### Return type
|
|
280
|
+
|
|
281
|
+
**any**
|
|
282
|
+
|
|
283
|
+
### Authorization
|
|
284
|
+
|
|
285
|
+
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
286
|
+
|
|
287
|
+
### HTTP request headers
|
|
288
|
+
|
|
289
|
+
- **Content-Type**: application/json
|
|
290
|
+
- **Accept**: application/json
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### HTTP response details
|
|
294
|
+
| Status code | Description | Response headers |
|
|
295
|
+
|-------------|-------------|------------------|
|
|
296
|
+
|**200** | Successful Response | - |
|
|
297
|
+
|**422** | Validation Error | - |
|
|
298
|
+
|
|
299
|
+
[[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)
|
|
300
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# UsersRegistrationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**registerNewUserApiUsersRegisterPost**](#registernewuserapiusersregisterpost) | **POST** /api/users/register | Register New User|
|
|
8
|
+
|
|
9
|
+
# **registerNewUserApiUsersRegisterPost**
|
|
10
|
+
> UserOut registerNewUserApiUsersRegisterPost(createUserRegistration)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
UsersRegistrationApi,
|
|
18
|
+
Configuration,
|
|
19
|
+
CreateUserRegistration
|
|
20
|
+
} from 'mealie-typescript';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UsersRegistrationApi(configuration);
|
|
24
|
+
|
|
25
|
+
let createUserRegistration: CreateUserRegistration; //
|
|
26
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.registerNewUserApiUsersRegisterPost(
|
|
29
|
+
createUserRegistration,
|
|
30
|
+
acceptLanguage
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **createUserRegistration** | **CreateUserRegistration**| | |
|
|
39
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**UserOut**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
No authorization required
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**201** | Successful Response | - |
|
|
60
|
+
|**422** | Validation Error | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# UsersTokensApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createApiTokenApiUsersApiTokensPost**](#createapitokenapiusersapitokenspost) | **POST** /api/users/api-tokens | Create Api Token|
|
|
8
|
+
|[**deleteApiTokenApiUsersApiTokensTokenIdDelete**](#deleteapitokenapiusersapitokenstokeniddelete) | **DELETE** /api/users/api-tokens/{token_id} | Delete Api Token|
|
|
9
|
+
|
|
10
|
+
# **createApiTokenApiUsersApiTokensPost**
|
|
11
|
+
> LongLiveTokenCreateResponse createApiTokenApiUsersApiTokensPost(longLiveTokenIn)
|
|
12
|
+
|
|
13
|
+
Create api_token in the Database
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
UsersTokensApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
LongLiveTokenIn
|
|
22
|
+
} from 'mealie-typescript';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new UsersTokensApi(configuration);
|
|
26
|
+
|
|
27
|
+
let longLiveTokenIn: LongLiveTokenIn; //
|
|
28
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createApiTokenApiUsersApiTokensPost(
|
|
31
|
+
longLiveTokenIn,
|
|
32
|
+
acceptLanguage
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **longLiveTokenIn** | **LongLiveTokenIn**| | |
|
|
41
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**LongLiveTokenCreateResponse**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: application/json
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**201** | Successful Response | - |
|
|
62
|
+
|**422** | Validation Error | - |
|
|
63
|
+
|
|
64
|
+
[[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)
|
|
65
|
+
|
|
66
|
+
# **deleteApiTokenApiUsersApiTokensTokenIdDelete**
|
|
67
|
+
> DeleteTokenResponse deleteApiTokenApiUsersApiTokensTokenIdDelete()
|
|
68
|
+
|
|
69
|
+
Delete api_token from the Database
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
UsersTokensApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from 'mealie-typescript';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new UsersTokensApi(configuration);
|
|
81
|
+
|
|
82
|
+
let tokenId: number; // (default to undefined)
|
|
83
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.deleteApiTokenApiUsersApiTokensTokenIdDelete(
|
|
86
|
+
tokenId,
|
|
87
|
+
acceptLanguage
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **tokenId** | [**number**] | | defaults to undefined|
|
|
96
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**DeleteTokenResponse**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: Not defined
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | Successful Response | - |
|
|
117
|
+
|**422** | Validation Error | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
package/docs/UtilsApi.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# UtilsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**downloadFileApiUtilsDownloadGet**](#downloadfileapiutilsdownloadget) | **GET** /api/utils/download | Download File|
|
|
8
|
+
|
|
9
|
+
# **downloadFileApiUtilsDownloadGet**
|
|
10
|
+
> any downloadFileApiUtilsDownloadGet()
|
|
11
|
+
|
|
12
|
+
Uses a file token obtained by an active user to retrieve a file from the operating system.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
UtilsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from 'mealie-typescript';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new UtilsApi(configuration);
|
|
24
|
+
|
|
25
|
+
let token: string; // (optional) (default to undefined)
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.downloadFileApiUtilsDownloadGet(
|
|
28
|
+
token
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **token** | [**string**] | | (optional) defaults to undefined|
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**any**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
No authorization required
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: Not defined
|
|
50
|
+
- **Accept**: application/json
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### HTTP response details
|
|
54
|
+
| Status code | Description | Response headers |
|
|
55
|
+
|-------------|-------------|------------------|
|
|
56
|
+
|**200** | Successful Response | - |
|
|
57
|
+
|**422** | Validation Error | - |
|
|
58
|
+
|
|
59
|
+
[[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)
|
|
60
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ValidationError
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**loc** | [**Array<ValidationErrorLocInner>**](ValidationErrorLocInner.md) | | [default to undefined]
|
|
9
|
+
**msg** | **string** | | [default to undefined]
|
|
10
|
+
**type** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ValidationError } from 'mealie-typescript';
|
|
16
|
+
|
|
17
|
+
const instance: ValidationError = {
|
|
18
|
+
loc,
|
|
19
|
+
msg,
|
|
20
|
+
type,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ValidationErrorLocInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { ValidationErrorLocInner } from 'mealie-typescript';
|
|
13
|
+
|
|
14
|
+
const instance: ValidationErrorLocInner = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Value.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Value
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { Value } from 'mealie-typescript';
|
|
13
|
+
|
|
14
|
+
const instance: Value = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# WebhookPagination
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**page** | **number** | | [optional] [default to 1]
|
|
9
|
+
**per_page** | **number** | | [optional] [default to 10]
|
|
10
|
+
**total** | **number** | | [optional] [default to 0]
|
|
11
|
+
**total_pages** | **number** | | [optional] [default to 0]
|
|
12
|
+
**items** | [**Array<ReadWebhook>**](ReadWebhook.md) | | [default to undefined]
|
|
13
|
+
**next** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**previous** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { WebhookPagination } from 'mealie-typescript';
|
|
20
|
+
|
|
21
|
+
const instance: WebhookPagination = {
|
|
22
|
+
page,
|
|
23
|
+
per_page,
|
|
24
|
+
total,
|
|
25
|
+
total_pages,
|
|
26
|
+
items,
|
|
27
|
+
next,
|
|
28
|
+
previous,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|