-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
7,795 additions
and
826 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 |
---|---|---|
|
@@ -8,4 +8,5 @@ node_modules | |
!src/node_modules | ||
auth.js | ||
properties.json | ||
npm-debug.log | ||
npm-debug.log | ||
TODO.md |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
TODO | ||
==== | ||
|
||
- Добавить `client.max` метод | ||
|
||
```js | ||
var order = client.max('customerOrder', 'updated'); | ||
``` | ||
|
||
аналогично: | ||
|
||
```js | ||
var order = client.from('customerOrder').sortBy('updated', 'dsc').first(); | ||
``` | ||
|
||
- Индивидуальный метод создания запроса для каждого типа объектов. | ||
|
||
```js | ||
var order; | ||
order = client.from('customerOrder').first(); | ||
// или | ||
order = client.customerOrder().first(); | ||
``` | ||
|
||
- [experimental] createMapping | ||
|
||
Привязка дополнительных функциональных методов в зависимости от типа сущности. | ||
Воспользоваться новым функционалом Jsonix и привязывать методы в prototype. | ||
|
||
```js | ||
// Вариант не через prototype (можно добавить вычисляемое поле, вместо функции) | ||
client.createMapping('order', function(entity) { | ||
/* Проверить резерв по всем позициям, записать в поле или создать вычисляемое свойство */; | ||
}); | ||
``` | ||
|
||
Скорее всего должен быть базовый класс с конструктором и методами прототипов. | ||
|
||
Некоторые идеи - http://thestorefront.github.io/DataCollection.js/ |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.