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' | |
const _ = require('lodash') | |
const fetch = require('node-fetch') | |
const Moysklad = require('moysklad') | |
const ms = Moysklad({ apiVersion: '1.2', fetch }) | |
const href = ref => ms.buildUrl(ref) | |
const PROCESSING_ORDER_IDS = ['710a1333-f3ee-11e9-0a80-012300049f97'] |
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
class Thought { | |
@$mol_mem | |
id() { | |
// ... | |
} | |
@$mol_mem | |
childs() { | |
// ... | |
} |
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 os | |
import requests | |
from urllib.parse import urlencode | |
def urljoin(*args): | |
return "/".join(map(lambda x: str(x).rstrip("/"), args)) | |
def get_ms_filter(params_dict): |