diff --git a/.gitignore b/.gitignore index 82cbb8c..863d3a7 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,6 @@ out .pnp.* *~ + +# Vim +*.swp diff --git a/sdk-demo-application/backend/client_data.js b/sdk-demo-application/backend/client_data.js new file mode 100644 index 0000000..4218d13 --- /dev/null +++ b/sdk-demo-application/backend/client_data.js @@ -0,0 +1,41 @@ +const { v4: uuidv4 } = require('uuid') + +const lastModified = Date.now() + +module.exports = [ + { + id: uuidv4(), + "firstName": "John", + "lastName": "Doe", + "phoneNumber": 1234567890, + lastModified + }, + { + id: uuidv4(), + "firstName": "Alice", + "lastName": "Smith", + "phoneNumber": 9876543210, + lastModified + }, + { + id: uuidv4(), + "firstName": "Robert", + "lastName": "Brown", + "phoneNumber": 5551234567, + lastModified + }, + { + id: uuidv4(), + "firstName": "Emily", + "lastName": "Johnson", + "phoneNumber": 4449876543, + lastModified + }, + { + id: uuidv4(), + "firstName": "Michael", + "lastName": "Williams", + "phoneNumber": 3332221111, + lastModified + } +] diff --git a/sdk-demo-application/backend/curl/list.sh b/sdk-demo-application/backend/curl/list.sh new file mode 100644 index 0000000..e99dfb0 --- /dev/null +++ b/sdk-demo-application/backend/curl/list.sh @@ -0,0 +1 @@ +curl -v "http://127.0.0.1:8000/api/TrelloSDK/board/list?idMember=me" | json diff --git a/sdk-demo-application/backend/package-lock.json b/sdk-demo-application/backend/package-lock.json new file mode 100644 index 0000000..99124cd --- /dev/null +++ b/sdk-demo-application/backend/package-lock.json @@ -0,0 +1,721 @@ +{ + "name": "backend", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "backend", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "express": "^4.21.1", + "uuid": "^11.0.2" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.21.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.1.tgz", + "integrity": "sha512-YSFlK1Ee0/GC8QaO91tHcDxJiE/X4FbpAyQWkxAvG6AXCuR65YzK8ua6D9hvi/TzUfZMpc+BwuM1IPw8fmQBiQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.7.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.10", + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/finalhandler": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/object-inspect": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", + "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.10.tgz", + "integrity": "sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/side-channel": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.2.tgz", + "integrity": "sha512-14FfcOJmqdjbBPdDjFQyk/SdT4NySW4eM0zcG+HqbHP5jzuH56xO3J1DGhgs/cEMCfwYi3HQI1gnTO62iaG+tQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/esm/bin/uuid" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + } + } +} diff --git a/sdk-demo-application/backend/package.json b/sdk-demo-application/backend/package.json new file mode 100644 index 0000000..e90736e --- /dev/null +++ b/sdk-demo-application/backend/package.json @@ -0,0 +1,16 @@ +{ + "name": "backend", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "start": "export DEBUG=express:* && node server.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "MIT", + "dependencies": { + "express": "^4.21.1", + "uuid": "^11.0.2" + } +} diff --git a/sdk-demo-application/backend/phone_data.js b/sdk-demo-application/backend/phone_data.js new file mode 100644 index 0000000..18f5aa3 --- /dev/null +++ b/sdk-demo-application/backend/phone_data.js @@ -0,0 +1,106 @@ +const { v4: uuidv4 } = require('uuid') + +const lastModified = Date.now() + +module.exports = [ + { + id: uuidv4(), + "firstName": "John", + "lastName": "Doe", + "phoneNumber": 1234567890, + "address": "123 Elm Street", + "city": "Springfield", + "country": "USA", + lastModified + }, + { + id: uuidv4(), + "firstName": "Alice", + "lastName": "Smith", + "phoneNumber": 9876543210, + "address": "456 Oak Avenue", + "city": "Metropolis", + "country": "Canada", + lastModified + }, + { + id: uuidv4(), + "firstName": "Robert", + "lastName": "Brown", + "phoneNumber": 5551234567, + "address": "789 Pine Road", + "city": "Gotham", + "country": "USA", + lastModified + }, + { + id: uuidv4(), + "firstName": "Emily", + "lastName": "Johnson", + "phoneNumber": 4449876543, + "address": "101 Maple Lane", + "city": "Star City", + "country": "Canada", + lastModified + }, + { + id: uuidv4(), + "firstName": "Michael", + "lastName": "Williams", + "phoneNumber": 3332221111, + "address": "202 Birch Blvd", + "city": "Central City", + "country": "USA", + lastModified + }, + { + id: uuidv4(), + "firstName": "Sophia", + "lastName": "Taylor", + "phoneNumber": 8887776666, + "address": "303 Cedar Drive", + "city": "Smallville", + "country": "UK", + lastModified + }, + { + id: uuidv4(), + "firstName": "David", + "lastName": "Anderson", + "phoneNumber": 2223334444, + "address": "404 Redwood Court", + "city": "Hill Valley", + "country": "Australia", + lastModified + }, + { + id: uuidv4(), + "firstName": "Linda", + "lastName": "Martinez", + "phoneNumber": 7778889999, + "address": "505 Spruce Street", + "city": "Metropolis", + "country": "Brazil", + lastModified + }, + { + id: uuidv4(), + "firstName": "James", + "lastName": "Wilson", + "phoneNumber": 6665554444, + "address": "606 Willow Avenue", + "city": "Rivertown", + "country": "USA", + lastModified + }, + { + id: uuidv4(), + "firstName": "Olivia", + "lastName": "Moore", + "phoneNumber": 1112223333, + "address": "707 Aspen Trail", + "city": "Hawkins", + "country": "Ireland", + lastModified + } +] diff --git a/sdk-demo-application/backend/sdk.json b/sdk-demo-application/backend/sdk.json new file mode 100644 index 0000000..0576417 --- /dev/null +++ b/sdk-demo-application/backend/sdk.json @@ -0,0 +1,1919 @@ +{ + "name": "trello", + "main": { + "sdk": { + "build": { + "js": { + "title": "JavaScript", + "module": { + "name": "$ModuleName" + }, + "option": { + "endpoint": { + "kind": "String", + "short": "Trello API URL", + "name": "endpoint", + "publish": true + }, + "apikey": { + "kind": "String", + "short": "Trello API Key", + "name": "apikey", + "publish": true + }, + "fetch": { + "kind": "Any", + "publish": false, + "name": "fetch" + } + }, + "name": "js" + }, + "rb": { + "title": "Ruby", + "module": { + "name": "$ModuleName" + }, + "option": { + "endpoint": { + "kind": "String", + "short": "Trello API URL", + "name": "endpoint", + "publish": true + }, + "apikey": { + "kind": "String", + "short": "Trello API Key", + "name": "apikey", + "publish": true + }, + "fetch": { + "kind": "Any", + "publish": false, + "name": "fetch" + } + }, + "name": "rb" + }, + "py": { + "title": "Python", + "extension": "py", + "module": { + "name": "$ModuleName" + }, + "option": { + "endpoint": { + "kind": "String", + "short": "Trello API URL", + "name": "endpoint", + "publish": true + }, + "apikey": { + "kind": "String", + "short": "Trello API Key", + "name": "apikey", + "publish": true + }, + "fetch": { + "kind": "Any", + "publish": false, + "name": "fetch" + } + }, + "name": "py" + }, + "php": { + "title": "PHP", + "module": { + "name": "$ModuleName" + }, + "option": { + "endpoint": { + "kind": "String", + "short": "Trello API URL", + "name": "endpoint", + "publish": true + }, + "apikey": { + "kind": "String", + "short": "Trello API Key", + "name": "apikey", + "publish": true + }, + "fetch": { + "kind": "Any", + "publish": false, + "name": "fetch" + } + }, + "name": "php" + }, + "go": { + "title": "Go", + "module": { + "name": "$ModuleName" + }, + "option": { + "endpoint": { + "kind": "String", + "short": "Trello API URL", + "name": "endpoint", + "publish": true + }, + "apikey": { + "kind": "String", + "short": "Trello API Key", + "name": "apikey", + "publish": true + }, + "fetch": { + "kind": "Any", + "publish": false, + "name": "fetch" + } + }, + "name": "go" + } + }, + "test": { + "quick": { + "entity": { + "name": "foo" + } + } + }, + "entity": { + "board": { + "op": { + "create": { + "path": "/boards", + "method": "post", + "param": {}, + "query": { + "body": { + "required": true, + "name": "body", + "Name": "Body", + "NAME": "BODY", + "type": "object", + "Type": "Object", + "TYPE": "OBJECT" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "create", + "Name": "Create", + "NAME": "CREATE" + }, + "load": { + "path": "/boards/{idBoard}", + "method": "get", + "param": { + "idBoard": { + "required": true, + "name": "idboard", + "Name": "IdBoard", + "NAME": "IDBOARD", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "actions": { + "required": false, + "name": "actions", + "Name": "Actions", + "NAME": "ACTIONS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_entities": { + "required": false, + "name": "actions_entities", + "Name": "Actions_entities", + "NAME": "ACTIONS_ENTITIES", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_display": { + "required": false, + "name": "actions_display", + "Name": "Actions_display", + "NAME": "ACTIONS_DISPLAY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_format": { + "required": false, + "name": "actions_format", + "Name": "Actions_format", + "NAME": "ACTIONS_FORMAT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_since": { + "required": false, + "name": "actions_since", + "Name": "Actions_since", + "NAME": "ACTIONS_SINCE", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_limit": { + "required": false, + "name": "actions_limit", + "Name": "Actions_limit", + "NAME": "ACTIONS_LIMIT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_fields": { + "required": false, + "name": "action_fields", + "Name": "Action_fields", + "NAME": "ACTION_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_member": { + "required": false, + "name": "action_member", + "Name": "Action_member", + "NAME": "ACTION_MEMBER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_member_fields": { + "required": false, + "name": "action_member_fields", + "Name": "Action_member_fields", + "NAME": "ACTION_MEMBER_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_memberCreator": { + "required": false, + "name": "action_membercreator", + "Name": "Action_memberCreator", + "NAME": "ACTION_MEMBERCREATOR", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_memberCreator_fields": { + "required": false, + "name": "action_membercreator_fields", + "Name": "Action_memberCreator_fields", + "NAME": "ACTION_MEMBERCREATOR_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "cards": { + "required": false, + "name": "cards", + "Name": "Cards", + "NAME": "CARDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_fields": { + "required": false, + "name": "card_fields", + "Name": "Card_fields", + "NAME": "CARD_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_attachments": { + "required": false, + "name": "card_attachments", + "Name": "Card_attachments", + "NAME": "CARD_ATTACHMENTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_attachment_fields": { + "required": false, + "name": "card_attachment_fields", + "Name": "Card_attachment_fields", + "NAME": "CARD_ATTACHMENT_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_checklists": { + "required": false, + "name": "card_checklists", + "Name": "Card_checklists", + "NAME": "CARD_CHECKLISTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_stickers": { + "required": false, + "name": "card_stickers", + "Name": "Card_stickers", + "NAME": "CARD_STICKERS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "boardStars": { + "required": false, + "name": "boardstars", + "Name": "BoardStars", + "NAME": "BOARDSTARS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "labels": { + "required": false, + "name": "labels", + "Name": "Labels", + "NAME": "LABELS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "label_fields": { + "required": false, + "name": "label_fields", + "Name": "Label_fields", + "NAME": "LABEL_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "labels_limit": { + "required": false, + "name": "labels_limit", + "Name": "Labels_limit", + "NAME": "LABELS_LIMIT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "lists": { + "required": false, + "name": "lists", + "Name": "Lists", + "NAME": "LISTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "list_fields": { + "required": false, + "name": "list_fields", + "Name": "List_fields", + "NAME": "LIST_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "memberships": { + "required": false, + "name": "memberships", + "Name": "Memberships", + "NAME": "MEMBERSHIPS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "memberships_member": { + "required": false, + "name": "memberships_member", + "Name": "Memberships_member", + "NAME": "MEMBERSHIPS_MEMBER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "memberships_member_fields": { + "required": false, + "name": "memberships_member_fields", + "Name": "Memberships_member_fields", + "NAME": "MEMBERSHIPS_MEMBER_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "members": { + "required": false, + "name": "members", + "Name": "Members", + "NAME": "MEMBERS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "member_fields": { + "required": false, + "name": "member_fields", + "Name": "Member_fields", + "NAME": "MEMBER_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "membersInvited": { + "required": false, + "name": "membersinvited", + "Name": "MembersInvited", + "NAME": "MEMBERSINVITED", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "membersInvited_fields": { + "required": false, + "name": "membersinvited_fields", + "Name": "MembersInvited_fields", + "NAME": "MEMBERSINVITED_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "checklists": { + "required": false, + "name": "checklists", + "Name": "Checklists", + "NAME": "CHECKLISTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "checklist_fields": { + "required": false, + "name": "checklist_fields", + "Name": "Checklist_fields", + "NAME": "CHECKLIST_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization": { + "required": false, + "name": "organization", + "Name": "Organization", + "NAME": "ORGANIZATION", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization_fields": { + "required": false, + "name": "organization_fields", + "Name": "Organization_fields", + "NAME": "ORGANIZATION_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization_memberships": { + "required": false, + "name": "organization_memberships", + "Name": "Organization_memberships", + "NAME": "ORGANIZATION_MEMBERSHIPS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "myPrefs": { + "required": false, + "name": "myprefs", + "Name": "MyPrefs", + "NAME": "MYPREFS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "fields": { + "required": false, + "name": "fields", + "Name": "Fields", + "NAME": "FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "load", + "Name": "Load", + "NAME": "LOAD" + }, + "save": { + "path": "/boards/{idBoard}", + "method": "put", + "param": { + "idBoard": { + "required": true, + "name": "idboard", + "Name": "IdBoard", + "NAME": "IDBOARD", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "body": { + "required": true, + "name": "body", + "Name": "Body", + "NAME": "BODY", + "type": "object", + "Type": "Object", + "TYPE": "OBJECT" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "save", + "Name": "Save", + "NAME": "SAVE" + }, + "remove": { + "path": "/boards/{idBoard}", + "method": "delete", + "param": {}, + "query": {}, + "name": "remove", + "Name": "Remove", + "NAME": "REMOVE" + }, + "list": { + "path": "/members/{idMember}/boards", + "method": "get", + "param": { + "idMember": { + "required": true, + "name": "idmember", + "Name": "IdMember", + "NAME": "IDMEMBER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "filter": { + "required": false, + "name": "filter", + "Name": "Filter", + "NAME": "FILTER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "fields": { + "required": false, + "name": "fields", + "Name": "Fields", + "NAME": "FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions": { + "required": false, + "name": "actions", + "Name": "Actions", + "NAME": "ACTIONS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_entities": { + "required": false, + "name": "actions_entities", + "Name": "Actions_entities", + "NAME": "ACTIONS_ENTITIES", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_limit": { + "required": false, + "name": "actions_limit", + "Name": "Actions_limit", + "NAME": "ACTIONS_LIMIT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_format": { + "required": false, + "name": "actions_format", + "Name": "Actions_format", + "NAME": "ACTIONS_FORMAT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_since": { + "required": false, + "name": "actions_since", + "Name": "Actions_since", + "NAME": "ACTIONS_SINCE", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_fields": { + "required": false, + "name": "action_fields", + "Name": "Action_fields", + "NAME": "ACTION_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "memberships": { + "required": false, + "name": "memberships", + "Name": "Memberships", + "NAME": "MEMBERSHIPS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization": { + "required": false, + "name": "organization", + "Name": "Organization", + "NAME": "ORGANIZATION", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization_fields": { + "required": false, + "name": "organization_fields", + "Name": "Organization_fields", + "NAME": "ORGANIZATION_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "lists": { + "required": false, + "name": "lists", + "Name": "Lists", + "NAME": "LISTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "list", + "Name": "List", + "NAME": "LIST" + } + }, + "field": {}, + "cmd": {}, + "name": "board", + "Name": "Board", + "NAME": "BOARD", + "publish": true + }, + "list": { + "op": { + "create": { + "path": "/lists", + "method": "post", + "param": {}, + "query": { + "body": { + "required": true, + "name": "body", + "Name": "Body", + "NAME": "BODY", + "type": "object", + "Type": "Object", + "TYPE": "OBJECT" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "create", + "Name": "Create", + "NAME": "CREATE" + }, + "load": { + "path": "/lists/{idList}", + "method": "get", + "param": { + "idList": { + "required": true, + "name": "idlist", + "Name": "IdList", + "NAME": "IDLIST", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "cards": { + "required": false, + "name": "cards", + "Name": "Cards", + "NAME": "CARDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_fields": { + "required": false, + "name": "card_fields", + "Name": "Card_fields", + "NAME": "CARD_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "board": { + "required": false, + "name": "board", + "Name": "Board", + "NAME": "BOARD", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "board_fields": { + "required": false, + "name": "board_fields", + "Name": "Board_fields", + "NAME": "BOARD_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "fields": { + "required": false, + "name": "fields", + "Name": "Fields", + "NAME": "FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "load", + "Name": "Load", + "NAME": "LOAD" + }, + "save": { + "path": "/lists/{idList}", + "method": "put", + "param": { + "idList": { + "required": true, + "name": "idlist", + "Name": "IdList", + "NAME": "IDLIST", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "body": { + "required": true, + "name": "body", + "Name": "Body", + "NAME": "BODY", + "type": "object", + "Type": "Object", + "TYPE": "OBJECT" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "save", + "Name": "Save", + "NAME": "SAVE" + }, + "list": { + "path": "/boards/{idBoard}/lists", + "method": "get", + "param": { + "idBoard": { + "required": true, + "name": "idboard", + "Name": "IdBoard", + "NAME": "IDBOARD", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "cards": { + "required": false, + "name": "cards", + "Name": "Cards", + "NAME": "CARDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_fields": { + "required": false, + "name": "card_fields", + "Name": "Card_fields", + "NAME": "CARD_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "filter": { + "required": false, + "name": "filter", + "Name": "Filter", + "NAME": "FILTER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "fields": { + "required": false, + "name": "fields", + "Name": "Fields", + "NAME": "FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "list", + "Name": "List", + "NAME": "LIST" + } + }, + "field": {}, + "cmd": {}, + "name": "list", + "Name": "List", + "NAME": "LIST", + "publish": true + } + }, + "option": { + "endpoint": { + "kind": "String", + "short": "Trello API URL", + "name": "endpoint", + "publish": true + }, + "apikey": { + "kind": "String", + "short": "Trello API Key", + "name": "apikey", + "publish": true + }, + "fetch": { + "kind": "Any", + "publish": false, + "name": "fetch" + } + }, + "feature": {} + }, + "api": { + "entity": { + "board": { + "op": { + "create": { + "path": "/boards", + "method": "post", + "param": {}, + "query": { + "body": { + "required": true, + "name": "body", + "Name": "Body", + "NAME": "BODY", + "type": "object", + "Type": "Object", + "TYPE": "OBJECT" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "create", + "Name": "Create", + "NAME": "CREATE" + }, + "load": { + "path": "/boards/{idBoard}", + "method": "get", + "param": { + "idBoard": { + "required": true, + "name": "idboard", + "Name": "IdBoard", + "NAME": "IDBOARD", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "actions": { + "required": false, + "name": "actions", + "Name": "Actions", + "NAME": "ACTIONS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_entities": { + "required": false, + "name": "actions_entities", + "Name": "Actions_entities", + "NAME": "ACTIONS_ENTITIES", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_display": { + "required": false, + "name": "actions_display", + "Name": "Actions_display", + "NAME": "ACTIONS_DISPLAY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_format": { + "required": false, + "name": "actions_format", + "Name": "Actions_format", + "NAME": "ACTIONS_FORMAT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_since": { + "required": false, + "name": "actions_since", + "Name": "Actions_since", + "NAME": "ACTIONS_SINCE", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_limit": { + "required": false, + "name": "actions_limit", + "Name": "Actions_limit", + "NAME": "ACTIONS_LIMIT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_fields": { + "required": false, + "name": "action_fields", + "Name": "Action_fields", + "NAME": "ACTION_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_member": { + "required": false, + "name": "action_member", + "Name": "Action_member", + "NAME": "ACTION_MEMBER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_member_fields": { + "required": false, + "name": "action_member_fields", + "Name": "Action_member_fields", + "NAME": "ACTION_MEMBER_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_memberCreator": { + "required": false, + "name": "action_membercreator", + "Name": "Action_memberCreator", + "NAME": "ACTION_MEMBERCREATOR", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_memberCreator_fields": { + "required": false, + "name": "action_membercreator_fields", + "Name": "Action_memberCreator_fields", + "NAME": "ACTION_MEMBERCREATOR_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "cards": { + "required": false, + "name": "cards", + "Name": "Cards", + "NAME": "CARDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_fields": { + "required": false, + "name": "card_fields", + "Name": "Card_fields", + "NAME": "CARD_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_attachments": { + "required": false, + "name": "card_attachments", + "Name": "Card_attachments", + "NAME": "CARD_ATTACHMENTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_attachment_fields": { + "required": false, + "name": "card_attachment_fields", + "Name": "Card_attachment_fields", + "NAME": "CARD_ATTACHMENT_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_checklists": { + "required": false, + "name": "card_checklists", + "Name": "Card_checklists", + "NAME": "CARD_CHECKLISTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_stickers": { + "required": false, + "name": "card_stickers", + "Name": "Card_stickers", + "NAME": "CARD_STICKERS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "boardStars": { + "required": false, + "name": "boardstars", + "Name": "BoardStars", + "NAME": "BOARDSTARS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "labels": { + "required": false, + "name": "labels", + "Name": "Labels", + "NAME": "LABELS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "label_fields": { + "required": false, + "name": "label_fields", + "Name": "Label_fields", + "NAME": "LABEL_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "labels_limit": { + "required": false, + "name": "labels_limit", + "Name": "Labels_limit", + "NAME": "LABELS_LIMIT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "lists": { + "required": false, + "name": "lists", + "Name": "Lists", + "NAME": "LISTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "list_fields": { + "required": false, + "name": "list_fields", + "Name": "List_fields", + "NAME": "LIST_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "memberships": { + "required": false, + "name": "memberships", + "Name": "Memberships", + "NAME": "MEMBERSHIPS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "memberships_member": { + "required": false, + "name": "memberships_member", + "Name": "Memberships_member", + "NAME": "MEMBERSHIPS_MEMBER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "memberships_member_fields": { + "required": false, + "name": "memberships_member_fields", + "Name": "Memberships_member_fields", + "NAME": "MEMBERSHIPS_MEMBER_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "members": { + "required": false, + "name": "members", + "Name": "Members", + "NAME": "MEMBERS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "member_fields": { + "required": false, + "name": "member_fields", + "Name": "Member_fields", + "NAME": "MEMBER_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "membersInvited": { + "required": false, + "name": "membersinvited", + "Name": "MembersInvited", + "NAME": "MEMBERSINVITED", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "membersInvited_fields": { + "required": false, + "name": "membersinvited_fields", + "Name": "MembersInvited_fields", + "NAME": "MEMBERSINVITED_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "checklists": { + "required": false, + "name": "checklists", + "Name": "Checklists", + "NAME": "CHECKLISTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "checklist_fields": { + "required": false, + "name": "checklist_fields", + "Name": "Checklist_fields", + "NAME": "CHECKLIST_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization": { + "required": false, + "name": "organization", + "Name": "Organization", + "NAME": "ORGANIZATION", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization_fields": { + "required": false, + "name": "organization_fields", + "Name": "Organization_fields", + "NAME": "ORGANIZATION_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization_memberships": { + "required": false, + "name": "organization_memberships", + "Name": "Organization_memberships", + "NAME": "ORGANIZATION_MEMBERSHIPS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "myPrefs": { + "required": false, + "name": "myprefs", + "Name": "MyPrefs", + "NAME": "MYPREFS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "fields": { + "required": false, + "name": "fields", + "Name": "Fields", + "NAME": "FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "load", + "Name": "Load", + "NAME": "LOAD" + }, + "save": { + "path": "/boards/{idBoard}", + "method": "put", + "param": { + "idBoard": { + "required": true, + "name": "idboard", + "Name": "IdBoard", + "NAME": "IDBOARD", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "body": { + "required": true, + "name": "body", + "Name": "Body", + "NAME": "BODY", + "type": "object", + "Type": "Object", + "TYPE": "OBJECT" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "save", + "Name": "Save", + "NAME": "SAVE" + }, + "remove": { + "path": "/boards/{idBoard}", + "method": "delete", + "param": {}, + "query": {}, + "name": "remove", + "Name": "Remove", + "NAME": "REMOVE" + }, + "list": { + "path": "/members/{idMember}/boards", + "method": "get", + "param": { + "idMember": { + "required": true, + "name": "idmember", + "Name": "IdMember", + "NAME": "IDMEMBER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "filter": { + "required": false, + "name": "filter", + "Name": "Filter", + "NAME": "FILTER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "fields": { + "required": false, + "name": "fields", + "Name": "Fields", + "NAME": "FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions": { + "required": false, + "name": "actions", + "Name": "Actions", + "NAME": "ACTIONS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_entities": { + "required": false, + "name": "actions_entities", + "Name": "Actions_entities", + "NAME": "ACTIONS_ENTITIES", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_limit": { + "required": false, + "name": "actions_limit", + "Name": "Actions_limit", + "NAME": "ACTIONS_LIMIT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_format": { + "required": false, + "name": "actions_format", + "Name": "Actions_format", + "NAME": "ACTIONS_FORMAT", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "actions_since": { + "required": false, + "name": "actions_since", + "Name": "Actions_since", + "NAME": "ACTIONS_SINCE", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "action_fields": { + "required": false, + "name": "action_fields", + "Name": "Action_fields", + "NAME": "ACTION_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "memberships": { + "required": false, + "name": "memberships", + "Name": "Memberships", + "NAME": "MEMBERSHIPS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization": { + "required": false, + "name": "organization", + "Name": "Organization", + "NAME": "ORGANIZATION", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "organization_fields": { + "required": false, + "name": "organization_fields", + "Name": "Organization_fields", + "NAME": "ORGANIZATION_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "lists": { + "required": false, + "name": "lists", + "Name": "Lists", + "NAME": "LISTS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "list", + "Name": "List", + "NAME": "LIST" + } + }, + "field": {}, + "cmd": {}, + "name": "board", + "Name": "Board", + "NAME": "BOARD" + }, + "list": { + "op": { + "create": { + "path": "/lists", + "method": "post", + "param": {}, + "query": { + "body": { + "required": true, + "name": "body", + "Name": "Body", + "NAME": "BODY", + "type": "object", + "Type": "Object", + "TYPE": "OBJECT" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "create", + "Name": "Create", + "NAME": "CREATE" + }, + "load": { + "path": "/lists/{idList}", + "method": "get", + "param": { + "idList": { + "required": true, + "name": "idlist", + "Name": "IdList", + "NAME": "IDLIST", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "cards": { + "required": false, + "name": "cards", + "Name": "Cards", + "NAME": "CARDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_fields": { + "required": false, + "name": "card_fields", + "Name": "Card_fields", + "NAME": "CARD_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "board": { + "required": false, + "name": "board", + "Name": "Board", + "NAME": "BOARD", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "board_fields": { + "required": false, + "name": "board_fields", + "Name": "Board_fields", + "NAME": "BOARD_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "fields": { + "required": false, + "name": "fields", + "Name": "Fields", + "NAME": "FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "load", + "Name": "Load", + "NAME": "LOAD" + }, + "save": { + "path": "/lists/{idList}", + "method": "put", + "param": { + "idList": { + "required": true, + "name": "idlist", + "Name": "IdList", + "NAME": "IDLIST", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "body": { + "required": true, + "name": "body", + "Name": "Body", + "NAME": "BODY", + "type": "object", + "Type": "Object", + "TYPE": "OBJECT" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "save", + "Name": "Save", + "NAME": "SAVE" + }, + "list": { + "path": "/boards/{idBoard}/lists", + "method": "get", + "param": { + "idBoard": { + "required": true, + "name": "idboard", + "Name": "IdBoard", + "NAME": "IDBOARD", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "query": { + "cards": { + "required": false, + "name": "cards", + "Name": "Cards", + "NAME": "CARDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "card_fields": { + "required": false, + "name": "card_fields", + "Name": "Card_fields", + "NAME": "CARD_FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "filter": { + "required": false, + "name": "filter", + "Name": "Filter", + "NAME": "FILTER", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "fields": { + "required": false, + "name": "fields", + "Name": "Fields", + "NAME": "FIELDS", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "key": { + "required": true, + "name": "key", + "Name": "Key", + "NAME": "KEY", + "type": "string", + "Type": "String", + "TYPE": "STRING" + }, + "token": { + "required": true, + "name": "token", + "Name": "Token", + "NAME": "TOKEN", + "type": "string", + "Type": "String", + "TYPE": "STRING" + } + }, + "name": "list", + "Name": "List", + "NAME": "LIST" + } + }, + "field": {}, + "cmd": {}, + "name": "list", + "Name": "List", + "NAME": "LIST" + } + }, + "name": "trello", + "Name": "Trello", + "NAME": "TRELLO" + }, + "def": { + "desc": "This document describes the REST API of Trello as published by Trello.com.\n - Official Documentation\n - The HTML pages that were scraped in order to generate this specification." + } + } +} \ No newline at end of file diff --git a/sdk-demo-application/backend/server.js b/sdk-demo-application/backend/server.js new file mode 100644 index 0000000..fb26811 --- /dev/null +++ b/sdk-demo-application/backend/server.js @@ -0,0 +1,179 @@ + +const express = require('express') + +const sdk_model = require('./sdk.json') + +const { TrelloSDK } = require('trello-sdk') + +console.log(TrelloSDK) + + +const app = express() + +const port = 8000 + +app.use(express.json()) + +const SDK_NAME = "TrelloSDK" + +// TODO: transform from the model +const entities = { + 'board': { + 'load': {}, + 'list': { + query: { + idMember: String + } + }, + 'create': {}, + 'save': {}, + 'remove': {} + }, + 'list': { + 'load': {}, + 'list': { + query: { + idBoard: String + } + }, + 'create': {}, + 'save': {}, + // 'remove': {} + } +} + +function cap(s) { + return s[0].toUpperCase() + s.slice(1) +} + +const client = TrelloSDK.make({ + endpoint: process.env.TRELLO_ENDPOINT, + apikey: process.env.TRELLO_APIKEY, + token: process.env.TRELLO_TOKEN, +}) + +for(const entity_name in entities) { + const entity = entities[entity_name] + for(const op in entity) { + const settings = entity[op] + + if(op == 'list') { + app.get(`/api/${SDK_NAME}/${entity_name}/${op}`, async (req, res) => { + // console.log('cap: ', client[cap(entity_name)]()[op] ) + for(let q in settings.query) { + if(!req.query[q]) { + res.status(400) + return res.send(JSON.stringify(q + ': REQUIRED')) + } + } + try { + let list = await client[cap(entity_name)]().list(req.query) + res.status(200) + return res.send(JSON.stringify(list.map(item => item.data))) + } catch(err) { + res.status(400) + res.send(JSON.stringify("error occured")) + } + + }) + } + + if(op == 'load') { + app.get(`/api/${SDK_NAME}/${entity_name}/${op}/:uid`, async (req, res) => { + const id = req.params.uid + console.log('cap: ', client[cap(entity_name)]()[op] ) + for(let q in settings.query) { + if(!req.query[q]) { + res.status(400) + return res.send(JSON.stringify(q + ': REQUIRED')) + } + } + + try { + let item = await client[cap(entity_name)]().load({ id, }) + console.log('load item: ', item) + res.status(200) + return res.send(JSON.stringify(item.data ? item.data : item)) + } catch(err) { + res.status(400) + res.send(JSON.stringify("error occured")) + } + }) + + } + + } +} + + + +/* + +// "/api/${SDK_NAME}/${entity}/${op_name}" + +let phone_list_data = require('./phone_data.js') +const client_list_data = require('./client_data.js') +let entity = Object.keys(entities)[0] + +app.get(`/api/${SDK_NAME}/${entity}/list`, async (req, res) => { + res.status(200) + res.send(JSON.stringify(phone_list_data)) +}) + +app.get(`/api/${SDK_NAME}/${entity}/load/:uid`, async (req, res) => { + const id = req.params.uid + const res_body = phone_list_data.find(phone_item => phone_item.id == id) + + res.status(200) + res.send(JSON.stringify(res_body)) +}) + +app.put(`/api/${SDK_NAME}/${entity}/save/:uid`, async (req, res) => { + const id = req.params.uid + + const res_body = phone_list_data.find(phone_item => phone_item.id == id) + + + console.log('PUT: req.body: ', req.body) + + // DO modify/save + + res.status(200); + res.send(JSON.stringify(res_body)) +}) + +app.post(`/api/${SDK_NAME}/${entity}/create`, async (req, res) => { + // DO create + res.status(200); + res.send(JSON.stringify(req.body)) +}) + +app.delete(`/api/${SDK_NAME}/${entity}/remove/:uid`, async (req, res) => { + const id = req.params.uid + phone_list_data = phone_list_data.filter(phone_item => phone_item.id != id) + + res.status(200) + res.send(JSON.stringify('null')) +}) + +entity = Object.keys(entities)[1] +app.get(`/api/${SDK_NAME}/${entity}/list`, async (req, res) => { + res.status(200); + res.send(JSON.stringify(client_list_data)) +}) +app.get(`/api/${SDK_NAME}/${entity}/load/:uid`, async (req, res) => { + const id = req.params.uid + const res_body = client_list_data.find(client_item => client_item.id == id) + + res.status(200); + res.send(JSON.stringify(res_body)) +}) + +*/ + + +app.listen(port, () => { + console.log(`Sample Backend App listening on port 127.0.0.1:${port}`) +}) + + diff --git a/sdk-demo-application/frontend/css/styles.css b/sdk-demo-application/frontend/css/styles.css new file mode 100644 index 0000000..05c8ede --- /dev/null +++ b/sdk-demo-application/frontend/css/styles.css @@ -0,0 +1,310 @@ +/* + * TODO: Inject SDK Client style + */ + +body { + display: grid; + /* + height: 100%; + width: 100%; + */ +} + +*::-webkit-scrollbar { + width: 5px; +} + +*::-webkit-scrollbar-track { + background-color: #888; + border-radius: 4px; +} + +*::-webkit-scrollbar-thumb { + background-color: #444; + border-radius: 4px; + transition: background-color 0.3s; +} + +*::-webkit-scrollbar-thumb:hover { + background-color: #6c7ae0; +} + +.container { + display: flex; + /* + display: grid; + grid-template-columns: 1fr 1fr 1fr; + */ + height: 85vh; + /* height: 100%; */ + /* overflow: hidden; */ +} + +.split { + flex: inherit; + display: flex; + /* justify-content: space-around; */ + /* align-items: center; */ + /* justify-content: center; */ + padding: 1em; + position: relative; +} + +.centered { + text-align: center; +} + +#basicLedTable { + width: 100%; + border-collapse: collapse; + /* margin: 20px; */ + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); +} + +.tableheader, .tablecolumn { + padding: 12px; + border: 1px solid #ddd; + text-align: center; +} + +th { + background-color: #6c7ae0; + color: white; +} + +tr:nth-child(even) { + background-color: #f9f9f9; +} + +tr:hover { + background-color: #f1f1f1; +} + +table { + /* table-layout: fixed; */ + width: 100%; + border:1px solid; + margin-top:20px; + border-collapse: collapse; +} +td { + min-width: 250px; + border:1px solid; +} + +.edit-btn, .save-btn { + cursor: pointer; + padding: 5px 10px; + color: #6c7ae0; + border: 1px solid #6c7ae0; + background-color: white; + border-radius: 3px; + transition: background-color 0.2s; +} + +.edit-btn:hover, .save-btn:hover { + background-color: #6c7ae0; + color: white; +} + +.terminal { + position: absolute; /* never use this with "display: grid" */ + width: 90%; + /* height: 20vh; */ + + margin: 0.5em; + padding: 0.5em; + + max-width: 90%; + max-height: 70%; + background-color: #1e1e1e; + resize: both; + /* color: #00ff00; */ + font-family: "Courier New", Courier, monospace; + font-size: 14px; + border-radius: 5px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + /* white-space: pre-wrap; */ + overflow: auto; +} + +.tab-header { + display: flex; + align-items: center; + background-color: #333; + color: white; + padding: 10px 20px; + border-radius: 8px 8px 0 0; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); + /*width: 100%;*/ + /*max-width: 150vh; */ +} + +.tab-header img { + height: 8vh; + width: 8vh; + margin-right: 15px; +} + +.tab-header h1 { + font-size: 18px; + margin-right: auto; + color: #fff; +} + +.tab-nav { + display: flex; + gap: 15px; +} + +.tab-nav a { + color: #ddd; + text-decoration: none; + font-size: 16px; + padding: 8px 12px; + border-radius: 4px; + transition: background-color 0.3s, color 0.3s; +} + +.tab-nav a:hover { + background-color: #555; + color: #fff; +} + +.tab-nav a.active { + background-color: #6c7ae0; + color: white; + font-weight: bold; +} + + +#formEditor { + background-color: #ffffff; + padding: 25px 20px; + width: 100%; + /* max-width: 500px; */ + border-radius: 10px; +} + +/* +.form-grid { +display: grid; +grid-template-columns: repeat(3, 1fr); +gap: 1em; +} + */ + + +.form-group label { + font-weight: bold; + color: #555; + display: block; + margin-bottom: 5px; +} + +.form-group input { + width: 100%; + padding: 10px; + font-size: 16px; + color: #333; + border: 1px solid #ddd; + border-radius: 5px; + transition: border-color 0.3s ease; +} + +.form-group input:focus, +.form-group select:focus, +.form-group textarea:focus { + border-color: #6c7ae0; + outline: none; +} + +.form-group button { + width: 100%; + padding: 12px; + font-size: 18px; + font-weight: bold; + color: #fff; + background-color: #6c7ae0; + border: none; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s ease; +} + +.form-group button:hover { + background-color: #5a6dd4; +} + +.sidenav { + /* height: 100vh; */ + width: 0; + background-color: #2b2f3a; + color: #fff; + overflow: auto; + transition: width 0.5s; + box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); +} + +.sidenav-header { + padding: 20px 30px; + font-size: 1.5rem; + background-color: #1f232b; + border-bottom: 1px solid #444; + display: flex; + align-items: center; + justify-content: space-between; +} + +.sidenav-header h2 { + margin: 0; + font-weight: normal; +} + +.closebtn { + font-size: 24px; + color: #bbb; + cursor: pointer; + transition: color 0.3s; +} + +.closebtn:hover { + color: #fff; +} + +.sidenav a { + padding: 15px 30px; + font-size: 1rem; + color: #bbb; + text-decoration: none; + display: flex; + align-items: center; + transition: background-color 0.3s, color 0.3s; +} + +.sidenav a:focus { + background-color:red; +} + +.sidenav a:hover { + background-color: #444; + color: #fff; +} + +.openbtn { + border-radius: 0.5em; + font-size: 18px; + cursor: pointer; + padding: 10px 15px; + color: #2b2f3a; + background-color: #ccc; + border: none; + top: 20px; + left: 20px; + transition: color 0.3s, background-color 0.3s; +} + +.openbtn:hover { + background-color: #e1e1e6; + color: #2b2f3a; +} diff --git a/sdk-demo-application/frontend/index.html b/sdk-demo-application/frontend/index.html new file mode 100644 index 0000000..b253b15 --- /dev/null +++ b/sdk-demo-application/frontend/index.html @@ -0,0 +1,48 @@ + + +
+ + + + + +