Skip to content

Instantly share code, notes, and snippets.

@8ui
Last active December 8, 2021 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 8ui/bbbfd9660274bc1ea53fe4e2747c079b to your computer and use it in GitHub Desktop.
Save 8ui/bbbfd9660274bc1ea53fe4e2747c079b to your computer and use it in GitHub Desktop.
const Settings = types
.model('Settings', {
categories: types.array(
types.model('Categories', {
name: types.string,
favorite: types.boolean,
description: types.string,
})
),
products: types.model('Products', {
types: types.array(types.string),
zero_stocks: types.string,
stocks_by_store: types.boolean,
price: types.string,
}),
domains: types.model('Domains', {
external: types.string,
internal: types.string,
}),
theme: types.model('Theme', {
logo: types.string,
title: types.string,
}),
orders: types.model('Orders', {
store: types.string,
order_min_sum: types.number,
comment: types.string,
}),
info: types.model('Info', {
phone: types.string,
email: types.string,
socialNetworks: types.model('SocialNetworks', {
instagram: types.string,
youtube: types.string,
facebook: types.string,
vk: types.string,
odnoklassniki: types.string,
})
}),
analytics: types.model('Analytics', {
counters: types.model({
ya_metrika: types.string,
google_analytics: types.string,
ya_webmaster: types.string,
google_search_console: types.string,
top_mail_ru: types.string
}),
px: types.model({
vk: types.string,
facebook: types.string,
top_mail_ru: types.string
}),
schema: types.boolean,
meta: types.array(
types.model({
id: types.string,
title: types.string,
description: types.string
})
)
}),
payments: types.model('Payments', {
// Оплата при пролучении
pod: types.model('Pod', {
name: types.string,
active: types.boolean,
description: types.string,
}),
// CloudPayments
cloudPayments: types.model('CloudPayments', {
name: types.string,
active: types.boolean,
description: types.string,
public_id: types.string,
api_password: types.string,
}),
}),
delivery: types.model('Delivery', {
// Самовывоз
pickup: types.model('Pickup', {
name: types.string,
active: types.boolean,
description: types.string,
stores: types.array(
types.model({
_id: types.string,
name: types.string,
address: types.string,
work_time: types.string,
})
)
}),
// Курьер
courier: types.model('Courier', {
name: types.string,
active: types.boolean,
description: types.string,
}),
}),
created: types.number,
updated: types.number,
status: types.boolean,
blocked: types.boolean,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment