1
0
Fork 0
mirror of synced 2024-09-09 06:01:08 +12:00
budibase/packages/server/appPackages/testApp/appDefinition.json

84 lines
2.2 KiB
JSON
Raw Normal View History

2019-07-03 10:15:15 +12:00
{
"hierarchy": {
"name": "root",
"type": "root",
"children": [
{
2019-07-07 20:03:37 +12:00
"name": "customer",
2019-07-03 10:15:15 +12:00
"type": "record",
"fields": [
{
"name": "name",
"type": "string",
"typeOptions": {
2019-07-07 20:03:37 +12:00
"maxLength": 1000,
2019-07-03 10:15:15 +12:00
"values": null,
"allowDeclaredValuesOnly": false
},
2019-07-07 20:03:37 +12:00
"label": "name",
2019-07-03 10:15:15 +12:00
"getInitialValue": "default",
"getUndefinedValue": "default"
}
],
"children": [
{
2019-07-07 20:03:37 +12:00
"name": "invoice",
2019-07-03 10:15:15 +12:00
"type": "record",
"fields": [
{
2019-07-07 20:03:37 +12:00
"name": "amount",
2019-07-03 10:15:15 +12:00
"type": "number",
"typeOptions": {
2019-07-07 20:03:37 +12:00
"minValue": 99999999999,
"maxValue": 99999999999,
"decimalPlaces": 2
2019-07-03 10:15:15 +12:00
},
2019-07-07 20:03:37 +12:00
"label": "amount",
2019-07-03 10:15:15 +12:00
"getInitialValue": "default",
"getUndefinedValue": "default"
}
],
"children": [],
"validationRules": [],
2019-07-07 20:03:37 +12:00
"nodeId": 2,
2019-07-03 10:15:15 +12:00
"indexes": [],
"allidsShardFactor": 1,
2019-07-07 20:03:37 +12:00
"collectionName": "invoices",
2019-07-03 10:15:15 +12:00
"isSingle": false
}
],
"validationRules": [],
"nodeId": 1,
"indexes": [],
"allidsShardFactor": 64,
2019-07-07 20:03:37 +12:00
"collectionName": "customers",
2019-07-03 10:15:15 +12:00
"isSingle": false
}
],
"pathMaps": [],
2019-07-07 20:03:37 +12:00
"indexes": [],
2019-07-03 10:15:15 +12:00
"nodeId": 0
},
"actions": {
"output_to_file": {
"name": "output_to_file",
"behaviourSource": "main",
"behaviourName": "outputToFile",
"initialOptions": {}
}
},
"triggers": [
{
"actionName": "output_to_file",
"eventName": "authApi:createUser:onComplete",
"optionsCreator": "return { filename:'tempaccess' + context.user.name, content:context.result.tempCode };",
2019-07-07 20:03:37 +12:00
"condition": "!context.password"
2019-07-11 18:35:29 +12:00
},
{
"actionName": "output_to_file",
"eventName": "authApi:createTemporaryAccess:onComplete",
"optionsCreator": "return { filename:'tempaccess' + context.userName, content:context.result };",
"condition": ""
2019-07-03 10:15:15 +12:00
}
]
}