generated from unjs/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add list, tree actions to category model api
- Loading branch information
1 parent
c2f65bf
commit 2a4b32d
Showing
5 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@planetadeleste/pinia-orm-shopaholic", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -47,7 +47,9 @@ | |
"vitest": "^1.1.3" | ||
}, | ||
"peerDependencies": { | ||
"@pinia-orm/axios": "^1.7.0", | ||
"@planetadeleste/pinia-orm-core": "^1.0.0", | ||
"axios": "^1.6.5", | ||
"pinia-orm": "^1.7.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,45 @@ | ||
import Model from "@planetadeleste/pinia-orm-core"; | ||
import type { BrandData, CategoryData, CurrencyData, OfferData, ProductData } from "./types"; | ||
import Model from "@planetadeleste/pinia-orm-core"; | ||
import type { | ||
BrandData, | ||
CategoryData, | ||
CurrencyData, | ||
OfferData, | ||
ProductData, | ||
} from "./types"; | ||
|
||
// BRAND | ||
interface Brand extends BrandData { | ||
} | ||
interface Brand extends BrandData {} | ||
|
||
declare class Brand extends Model<BrandData> {} | ||
|
||
// CATEGORY | ||
interface Category extends CategoryData { | ||
} | ||
interface Category extends CategoryData {} | ||
|
||
declare class Category extends Model<CategoryData> {} | ||
|
||
// CURRENCY | ||
interface Currency extends CurrencyData { | ||
} | ||
interface Currency extends CurrencyData {} | ||
|
||
declare class Currency extends Model<CurrencyData> {} | ||
|
||
// OFFER | ||
interface Offer extends OfferData { | ||
} | ||
interface Offer extends OfferData {} | ||
|
||
declare class Offer extends Model<OfferData> {} | ||
|
||
// PRODUCT | ||
interface Product extends ProductData { | ||
} | ||
interface Product extends ProductData {} | ||
|
||
declare class Product extends Model<ProductData> {} | ||
|
||
export { Brand, Category, Currency, Offer, Product }; | ||
|
||
export type { BrandData, CategoryData, CurrencyData, OfferData, ProductData } from "./types"; | ||
export type { | ||
BrandData, | ||
CategoryData, | ||
CategoryApiAxiosRepository, | ||
CategoryAxiosRepository, | ||
CurrencyData, | ||
OfferData, | ||
ProductData, | ||
} from "./types"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.