mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
feat(poc): revert prettier update
This commit is contained in:
parent
fc39573c57
commit
ac958f860f
@ -1,5 +1,6 @@
|
|||||||
import { createAPIClient } from '@shopware/api-client';
|
import { createAPIClient, RequestReturnType, RequestParameters } from '@shopware/api-client';
|
||||||
import { operations, operationPaths } from './api-types/apiTypes-6.5.2.0';
|
//import { operations, operationPaths } from './api-types/apiTypes-6.5.2.0';
|
||||||
|
import { operations, operationPaths } from '@shopware/api-client/api-types';
|
||||||
import {
|
import {
|
||||||
ApiSchemas,
|
ApiSchemas,
|
||||||
CategoryListingResultSW,
|
CategoryListingResultSW,
|
||||||
@ -17,6 +18,20 @@ const apiInstance = createAPIClient<operations, operationPaths>({
|
|||||||
apiType: 'store-api'
|
apiType: 'store-api'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export type ExtendedOperations = {};
|
||||||
|
|
||||||
|
// reimport operations request parameters to use it in application
|
||||||
|
export type ApiRequestParams<ExtendedOperations extends keyof operations> = RequestParameters<
|
||||||
|
ExtendedOperations,
|
||||||
|
operations
|
||||||
|
>;
|
||||||
|
|
||||||
|
// reimport operations return types to use it in application
|
||||||
|
export type ApiReturnType<OPERATION_NAME extends keyof operations> = RequestReturnType<
|
||||||
|
OPERATION_NAME,
|
||||||
|
operations
|
||||||
|
>;
|
||||||
|
|
||||||
export async function requestNavigation(
|
export async function requestNavigation(
|
||||||
type: StoreNavigationTypeSW,
|
type: StoreNavigationTypeSW,
|
||||||
depth: number
|
depth: number
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { components } from './api-types/apiTypes-6.5.2.0';
|
import { components } from '@shopware/api-client/api-types';
|
||||||
|
|
||||||
/** Shopware Types */
|
/** Shopware Types */
|
||||||
|
|
||||||
@ -7,7 +7,11 @@ export type ApiSchemas = components['schemas'];
|
|||||||
export type StoreNavigationTypeSW = 'main-navigation' | 'footer-navigation' | 'service-navigation';
|
export type StoreNavigationTypeSW = 'main-navigation' | 'footer-navigation' | 'service-navigation';
|
||||||
export type ProductListingCriteria = ApiSchemas['ProductListingCriteria'] & {
|
export type ProductListingCriteria = ApiSchemas['ProductListingCriteria'] & {
|
||||||
query: string;
|
query: string;
|
||||||
};
|
} & Omit<ApiSchemas['Criteria'], 'filter'> & { Criteria: { filter?: {
|
||||||
|
field: string;
|
||||||
|
type: string;
|
||||||
|
value: string | null | boolean;
|
||||||
|
}[]}};
|
||||||
|
|
||||||
/** Return Types */
|
/** Return Types */
|
||||||
export type CategoryListingResultSW = {
|
export type CategoryListingResultSW = {
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
"eslint-plugin-unicorn": "^47.0.0",
|
"eslint-plugin-unicorn": "^47.0.0",
|
||||||
"lint-staged": "^13.2.3",
|
"lint-staged": "^13.2.3",
|
||||||
"postcss": "^8.4.25",
|
"postcss": "^8.4.25",
|
||||||
"prettier": "^3.0",
|
"prettier": "^2.8.8",
|
||||||
"prettier-plugin-tailwindcss": "^0.3.0",
|
"prettier-plugin-tailwindcss": "^0.3.0",
|
||||||
"tailwindcss": "^3.3.2",
|
"tailwindcss": "^3.3.2",
|
||||||
"typescript": "5.1.6"
|
"typescript": "5.1.6"
|
||||||
|
16
pnpm-lock.yaml
generated
16
pnpm-lock.yaml
generated
@ -70,11 +70,11 @@ devDependencies:
|
|||||||
specifier: ^8.4.25
|
specifier: ^8.4.25
|
||||||
version: 8.4.25
|
version: 8.4.25
|
||||||
prettier:
|
prettier:
|
||||||
specifier: ^3.0
|
specifier: ^2.8.8
|
||||||
version: 3.0.0
|
version: 2.8.8
|
||||||
prettier-plugin-tailwindcss:
|
prettier-plugin-tailwindcss:
|
||||||
specifier: ^0.3.0
|
specifier: ^0.3.0
|
||||||
version: 0.3.0(prettier@3.0.0)
|
version: 0.3.0(prettier@2.8.8)
|
||||||
tailwindcss:
|
tailwindcss:
|
||||||
specifier: ^3.3.2
|
specifier: ^3.3.2
|
||||||
version: 3.3.2
|
version: 3.3.2
|
||||||
@ -2744,7 +2744,7 @@ packages:
|
|||||||
engines: {node: '>= 0.8.0'}
|
engines: {node: '>= 0.8.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/prettier-plugin-tailwindcss@0.3.0(prettier@3.0.0):
|
/prettier-plugin-tailwindcss@0.3.0(prettier@2.8.8):
|
||||||
resolution: {integrity: sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==}
|
resolution: {integrity: sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==}
|
||||||
engines: {node: '>=12.17.0'}
|
engines: {node: '>=12.17.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@ -2796,12 +2796,12 @@ packages:
|
|||||||
prettier-plugin-twig-melody:
|
prettier-plugin-twig-melody:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
prettier: 3.0.0
|
prettier: 2.8.8
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/prettier@3.0.0:
|
/prettier@2.8.8:
|
||||||
resolution: {integrity: sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==}
|
resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=10.13.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user