2019-08-02 15:54:10 +02:00
|
|
|
{
|
|
|
|
"hierarchy": {
|
|
|
|
"name": "root",
|
|
|
|
"type": "root",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"name": "customer",
|
|
|
|
"type": "record",
|
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"name": "name",
|
|
|
|
"type": "string",
|
|
|
|
"typeOptions": {
|
|
|
|
"maxLength": 1000,
|
|
|
|
"values": null,
|
|
|
|
"allowDeclaredValuesOnly": false
|
|
|
|
},
|
|
|
|
"label": "name",
|
|
|
|
"getInitialValue": "default",
|
|
|
|
"getUndefinedValue": "default"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"name": "invoiceyooo",
|
|
|
|
"type": "record",
|
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"name": "amount",
|
|
|
|
"type": "number",
|
|
|
|
"typeOptions": {
|
|
|
|
"minValue": 99999999999,
|
|
|
|
"maxValue": 99999999999,
|
|
|
|
"decimalPlaces": 2
|
|
|
|
},
|
|
|
|
"label": "amount",
|
|
|
|
"getInitialValue": "default",
|
|
|
|
"getUndefinedValue": "default"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"validationRules": [],
|
|
|
|
"nodeId": 2,
|
|
|
|
"indexes": [],
|
|
|
|
"allidsShardFactor": 1,
|
|
|
|
"collectionName": "invoices",
|
|
|
|
"isSingle": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"validationRules": [],
|
|
|
|
"nodeId": 1,
|
|
|
|
"indexes": [],
|
|
|
|
"allidsShardFactor": 64,
|
|
|
|
"collectionName": "customers",
|
|
|
|
"isSingle": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"pathMaps": [],
|
|
|
|
"indexes": [],
|
|
|
|
"nodeId": 0
|
|
|
|
},
|
|
|
|
"triggers": [
|
|
|
|
{
|
|
|
|
"actionName": "output_to_file",
|
|
|
|
"eventName": "authApi:createUser:onComplete",
|
|
|
|
"optionsCreator": "return { filename:'tempaccess' + context.user.name, content:context.result.tempCode };",
|
|
|
|
"condition": "!context.password"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"actionName": "output_to_file",
|
|
|
|
"eventName": "authApi:createTemporaryAccess:onComplete",
|
|
|
|
"optionsCreator": "return { filename:'tempaccess' + context.userName, content:context.result };",
|
|
|
|
"condition": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"actions": {
|
2019-08-19 22:18:23 +02:00
|
|
|
"output_to_file": [
|
|
|
|
{
|
2019-08-02 15:54:10 +02:00
|
|
|
"name": "output_to_file",
|
|
|
|
"behaviourSource": "main",
|
|
|
|
"behaviourName": "outputToFile",
|
|
|
|
"initialOptions": {}
|
2019-08-19 22:18:23 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"pages": {
|
|
|
|
"main": {
|
|
|
|
"index": {},
|
|
|
|
"appBody": "./main.app.json"
|
|
|
|
},
|
|
|
|
"unauthenticated": {
|
|
|
|
"index": {
|
|
|
|
"_component": "budibase-components/indexHtml",
|
|
|
|
"title": "Test App 1 - Login",
|
|
|
|
"customScripts": [
|
|
|
|
"MyCustomComponents.js"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"appBody": "./unauthenticated.app.json"
|
|
|
|
},
|
|
|
|
"componentLibraries": [
|
|
|
|
"./standard-components"
|
|
|
|
],
|
|
|
|
"stylesheets": [
|
|
|
|
"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"mainUi": {},
|
|
|
|
"unauthenticatedUi": {}
|
|
|
|
}
|