Git Product home page Git Product logo

kashoo-document-definitions's Introduction

Introduction

Build Status dependencies Status devDependencies Status

This repository defines the data model for Kashoo's Sync Gateway databases (aka buckets). The configuration is in the form of synctos document definitions. Each subdirectory of the databases directory defines the document types for a single database.

DISCLAIMER: These document definitions are intended only for use by Kashoo first party client applications. They are published publicly for illustrative purposes only. Expect that the data model may change without notice and, as such, it should not be relied upon for third party client application development.

Usage

  1. Install Node.js to build and run the project
  2. Install the project's local dependencies (run from this directory): npm install
  3. Generate sync functions with synctos (run from this directory): etc/make-sync-functions.sh
  4. Execute the test suite (run from this directory): npm test

Databases

The following Sync Gateway databases are defined within this repo:

app-config-sync

A database for storing non-sensitive application configuration. For example, it is used to store the list of feature release toggles that are currently enabled for all apps/services in the environment.

business-sync

A database for documents that are tied to a specific business (e.g. customer payment processor configuration).

Document IDs should follow a hierarchical pattern with periods (.) as ID token separators. It is appropriate to use a UUID as an ID token wherever it is expected to be random and unique. For example, to represent a payment with ID "792b3e16-ae78-4a6b-9c8e-0ea0f9dfb0e8" for invoice "987" in business "123":

biz.123.invoice.987.payment.792b3e16-ae78-4a6b-9c8e-0ea0f9dfb0e8

This makes it easy to fetch a document if you know the individual ID tokens and the hierarchy.

square-data

A database for holding a copy of Square data that has been imported as part of a Merchant <-> Business integration. It currently stores five types of Square data: items, fees, payments, refunds and settlements. Documents are only stored for records that have been retrieved and imported to a Kashoo business.

kashoo-document-definitions's People

Contributors

cclark avatar dkichler avatar greenkeeper[bot] avatar greenkeeperio-bot avatar oldsneerjaw avatar skwoka avatar ziemek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.