
* Use generated hooks in apps * Remove unused files * Use proper types in apps * Use generated hooks in attributes * Use generated hooks in auth module * Use generated hooks in categories * Use generated hooks in channels * Use generated types in collections * Remove legacy types from background tasks * Use generated hooks in customers * Use generated hooks in discounts * Use generated hook in file upload * Use generated types in gift cards * Use generated types in home * Use generated hooks in navigation * Use generated hooks in orders * Use generated hooks in pages * Use generated hooks in page types * Use generated hooks in permission groups * Use generated hooks in plugins * Use generated hooks in products * Use fragment to mark product variants * Improve code a bit * Use generated hooks in page types * Use generated types in searches * Use generated hooks in shipping * Use generated hooks in site settings * Use generated hooks in staff members * Use generated hooks in taxes * Place all gql generated files in one directory * Use generated hooks in translations * Use global types from new generated module * Use generated hooks in warehouses * Use generated hooks in webhooks * Use generated fragment types * Unclutter types * Remove hoc components * Split hooks and types * Fetch introspection file * Delete obsolete schema file * Fix rebase artifacts * Fix autoreplace * Fix auth provider tests * Fix urls * Remove leftover types * Fix rebase artifacts
127 lines
4.3 KiB
TypeScript
127 lines
4.3 KiB
TypeScript
import {
|
|
ConfigurationTypeFieldEnum,
|
|
PluginBaseFragment,
|
|
PluginsDetailsFragment
|
|
} from "@saleor/graphql";
|
|
|
|
export const pluginList: PluginBaseFragment[] = [
|
|
{
|
|
__typename: "Plugin",
|
|
globalConfiguration: null,
|
|
channelConfigurations: [
|
|
{
|
|
__typename: "PluginConfiguration",
|
|
active: true,
|
|
channel: {
|
|
__typename: "Channel",
|
|
id: "channel-1",
|
|
name: "channel 1",
|
|
slug: "channel-1"
|
|
}
|
|
}
|
|
],
|
|
description:
|
|
"Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies. Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna.",
|
|
id: "Jzx123sEt==",
|
|
name: "Avalara"
|
|
},
|
|
{
|
|
__typename: "Plugin",
|
|
globalConfiguration: null,
|
|
channelConfigurations: [
|
|
{
|
|
__typename: "PluginConfiguration",
|
|
active: true,
|
|
channel: {
|
|
__typename: "Channel",
|
|
id: "channel-1",
|
|
name: "channel 1",
|
|
slug: "channel-1"
|
|
}
|
|
}
|
|
],
|
|
description:
|
|
"Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies. Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna.",
|
|
id: "Jzx123sEt==",
|
|
name: "VatLayer"
|
|
}
|
|
];
|
|
export const plugin: PluginsDetailsFragment = {
|
|
__typename: "Plugin",
|
|
globalConfiguration: null,
|
|
channelConfigurations: [
|
|
{
|
|
__typename: "PluginConfiguration",
|
|
active: true,
|
|
channel: {
|
|
__typename: "Channel",
|
|
id: "channel-1",
|
|
name: "channel 1",
|
|
slug: "channel-1"
|
|
},
|
|
configuration: [
|
|
{
|
|
__typename: "ConfigurationItem",
|
|
helpText: "Provide user or account details",
|
|
label: "Username or account",
|
|
name: "Username or account",
|
|
type: ConfigurationTypeFieldEnum.STRING,
|
|
value: "avatax_user"
|
|
},
|
|
{
|
|
__typename: "ConfigurationItem",
|
|
helpText: "Provide password or license details",
|
|
label: "Password or license",
|
|
name: "Password or license",
|
|
type: ConfigurationTypeFieldEnum.STRING,
|
|
value: "TEM8S2-2ET83-CGKP1-DPSI2-EPZO1"
|
|
},
|
|
{
|
|
__typename: "ConfigurationItem",
|
|
helpText: "This key will enable you to connect to Avatax API",
|
|
label: "API key",
|
|
name: "apiKey",
|
|
type: ConfigurationTypeFieldEnum.SECRET,
|
|
value: "9ab9"
|
|
},
|
|
{
|
|
__typename: "ConfigurationItem",
|
|
helpText: "",
|
|
label: "Password",
|
|
name: "password",
|
|
type: ConfigurationTypeFieldEnum.PASSWORD,
|
|
value: ""
|
|
},
|
|
{
|
|
__typename: "ConfigurationItem",
|
|
helpText: "",
|
|
label: "Empty Password",
|
|
name: "password-not-set",
|
|
type: ConfigurationTypeFieldEnum.PASSWORD,
|
|
value: null
|
|
},
|
|
{
|
|
__typename: "ConfigurationItem",
|
|
helpText: "Determines if Saleor should use Avatax sandbox API.",
|
|
label: "Use sandbox",
|
|
name: "Use sandbox",
|
|
type: ConfigurationTypeFieldEnum.BOOLEAN,
|
|
value: "true"
|
|
},
|
|
{
|
|
__typename: "ConfigurationItem",
|
|
helpText: "This is a multiline field",
|
|
label: "Multiline Field",
|
|
name: "multiline-field",
|
|
type: ConfigurationTypeFieldEnum.MULTILINE,
|
|
value:
|
|
"Lorem ipsum\ndolor sit\namet enim.\nEtiam ullamcorper.\nSuspendisse a\npellentesque dui,\nnon felis."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
description:
|
|
"Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies. Curabitur et ligula. Ut molestie a, ultricies porta urna. Vestibulum commodo volutpat a, convallis ac, laoreet enim. Phasellus fermentum in, dolor. Pellentesque facilisis. Nulla imperdiet sit amet magna.",
|
|
id: "UGx1Z2luQ29uZmlndXJhdGlvbjoy",
|
|
name: "Username or account"
|
|
};
|