This file contains hidden or 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
const STATUS_CREATED = 'created' | |
, STATUS_PENDING = 'pending' | |
, STATUS_STARTED = 'started' | |
, STATUS_FINISHED = 'finished'; | |
const TYPE_1X1 = '1x1' | |
, TYPE_2X2 = '2x2'; | |
var mongoose = require('mongoose'), |
This file contains hidden or 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
import Route from './../core/route'; | |
import Application from '../core/application'; | |
import Auth from './../services/auth.js'; | |
import Products from '../models/products'; | |
import OwnedProducts from '../models/owned_products'; | |
import ClosetView from '../views/closet.js'; | |
export default Route.extend({ | |
ownedProducts: null, | |
busy: false, |
This file contains hidden or 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
import Route from './../core/route'; | |
import Application from '../core/application'; | |
import Auth from './../services/auth.js'; | |
import Products from '../models/products'; | |
import OwnedProducts from '../models/owned_products'; | |
import ClosetView from '../views/closet.js'; | |
export default Route.extend({ | |
ownedProducts: null, | |
busy: false, |
This file contains hidden or 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
{ | |
"code": 400, | |
"message": "Invalid submitted data", | |
"errors": [ | |
{ message: ... }, | |
{ message: ... }, | |
{ field: ..., message: ... }, | |
{ field: ..., message: ... } | |
] | |
} |
This file contains hidden or 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
'use strict'; | |
var co = require('co'); | |
module.exports = { | |
up: co.wrap(function*(migration, DataTypes) { | |
var sequelize = migration.sequelize; | |
yield sequelize.query(` | |
CREATE TABLE public.feeds ( |
This file contains hidden or 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
{ | |
"id": 195164, | |
"updated": "2015-09-23T19:37:51+03:00", | |
"image": "http://s.edadeal.ru/items/1/th600/195164.jpg", | |
"categoryId": 9, | |
"subcategoryId": 93, | |
"description": "Виноград черный", | |
"country": "Россия", | |
"quantity": 1, | |
"quantityUnitId": 1, |
This file contains hidden or 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
{ | |
"id": 195168, | |
"updated": "2015-09-23T19:38:46+03:00", | |
"image": "http://s.edadeal.ru/items/1/th600/195168.jpg", | |
"categoryId": 4, | |
"subcategoryId": 35, | |
"description": "Колбаса Докторская Сетунь б/о", | |
"quantity": 0.65, | |
"quantityUnitId": 1, | |
"priceOld": 355, |
This file contains hidden or 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
{ | |
"errorCode": 0, | |
"regions": [ | |
{ | |
"id": 1, | |
"updated": "2014-10-05T23:23:54+04:00", | |
"retailerId": 1, | |
"name": "Москва и МО", | |
"description": "Москва и МО" | |
}, |
This file contains hidden or 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
{ | |
"id": "2973", | |
"system_name": "cosmik2-75", | |
"title": "2 или 3 часа игры в боулинг в одном из 10 парков развлечений «Космик»", | |
"gift_title": "2 или 3 часа игры в боулинг в одном из 10 парков развлечений «Космик»", | |
"title_75": "2 или 3 часа игры в боулинг в одном из 10 парков развлечений «Космик»", | |
"price": { | |
"amount": 360, | |
"currency": { | |
"currency_id": 1, |
This file contains hidden or 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
{ | |
"id": "2109", | |
"system_name": "uryuk-50_1", | |
"title": "Всё основное меню или вся барная карта в 2 ресторанах «Урюк» со скидкой 50%", | |
"gift_title": "Всё основное меню или вся барная карта в 2 ресторанах «Урюк» со скидкой 50%", | |
"title_75": "Всё основное меню или вся барная карта в 2 ресторанах «Урюк» за полцены", | |
"price": { | |
"amount": 75, | |
"currency": { | |
"currency_id": 1, |