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,
|
2019-09-03 11:42:19 +02:00
|
|
|
"indexes": [],
|
2019-08-02 15:54:10 +02:00
|
|
|
"allidsShardFactor": 1,
|
|
|
|
"collectionName": "invoices",
|
|
|
|
"isSingle": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"validationRules": [],
|
|
|
|
"nodeId": 1,
|
2019-09-03 11:42:19 +02:00
|
|
|
"indexes": [
|
|
|
|
{
|
|
|
|
"name": "customer_invoices",
|
|
|
|
"type": "index",
|
|
|
|
"map": "return {...record};",
|
|
|
|
"filter": "",
|
|
|
|
"indexType": "ancestor",
|
|
|
|
"getShardName": "",
|
|
|
|
"getSortKey": "record.id",
|
|
|
|
"aggregateGroups": [],
|
|
|
|
"allowedRecordNodeIds": [
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"nodeId": 5
|
|
|
|
}
|
|
|
|
],
|
2019-08-02 15:54:10 +02:00
|
|
|
"allidsShardFactor": 64,
|
|
|
|
"collectionName": "customers",
|
|
|
|
"isSingle": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"pathMaps": [],
|
2019-08-30 09:25:00 +02:00
|
|
|
"indexes": [
|
|
|
|
{
|
|
|
|
"name": "Yeo index",
|
|
|
|
"type": "index",
|
|
|
|
"map": "return {...record};",
|
|
|
|
"filter": "",
|
|
|
|
"indexType": "ancestor",
|
|
|
|
"getShardName": "",
|
|
|
|
"getSortKey": "record.id",
|
|
|
|
"aggregateGroups": [],
|
|
|
|
"allowedRecordNodeIds": [
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"nodeId": 4
|
2019-09-03 11:42:19 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "everyones_invoices",
|
|
|
|
"type": "index",
|
|
|
|
"map": "return {...record};",
|
|
|
|
"filter": "",
|
|
|
|
"indexType": "ancestor",
|
|
|
|
"getShardName": "",
|
|
|
|
"getSortKey": "record.id",
|
|
|
|
"aggregateGroups": [],
|
|
|
|
"allowedRecordNodeIds": [
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"nodeId": 6
|
2019-08-30 09:25:00 +02:00
|
|
|
}
|
|
|
|
],
|
2019-08-02 15:54:10 +02:00
|
|
|
"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-20 09:24:07 +02:00
|
|
|
"undefined": [
|
|
|
|
[
|
|
|
|
[
|
|
|
|
[
|
2019-08-30 09:25:00 +02:00
|
|
|
[
|
2019-09-03 11:42:19 +02:00
|
|
|
[
|
|
|
|
[
|
|
|
|
[
|
|
|
|
[
|
2019-09-03 13:12:24 +02:00
|
|
|
[
|
|
|
|
[
|
|
|
|
[
|
|
|
|
[
|
2019-09-09 06:24:14 +02:00
|
|
|
[
|
2019-09-09 09:50:15 +02:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "output_to_file",
|
|
|
|
"behaviourSource": "main",
|
|
|
|
"behaviourName": "outputToFile",
|
|
|
|
"initialOptions": {}
|
|
|
|
}
|
|
|
|
]
|
2019-09-09 06:24:14 +02:00
|
|
|
]
|
2019-09-03 13:12:24 +02:00
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
2019-09-03 11:42:19 +02:00
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
2019-08-30 09:25:00 +02:00
|
|
|
]
|
2019-08-20 09:24:07 +02:00
|
|
|
]
|
2019-08-19 22:18:23 +02:00
|
|
|
]
|
2019-08-20 09:24:07 +02:00
|
|
|
]
|
2019-08-19 22:18:23 +02:00
|
|
|
]
|
|
|
|
},
|
2019-09-09 06:24:14 +02:00
|
|
|
"props": {
|
2019-09-22 06:02:33 +02:00
|
|
|
"main": {
|
2019-10-07 07:03:41 +02:00
|
|
|
"_component": "@budibase/standard-components/button",
|
|
|
|
"contentText": "Button",
|
|
|
|
"contentComponent": {
|
|
|
|
"_component": ""
|
|
|
|
},
|
|
|
|
"className": "default",
|
|
|
|
"disabled": false,
|
|
|
|
"onClick": [],
|
|
|
|
"background": "##f2f2f2",
|
|
|
|
"color": "#5F6368",
|
|
|
|
"border": "1px solid #EEE",
|
|
|
|
"padding": "5px 7px",
|
|
|
|
"hoverColor": "black",
|
|
|
|
"hoverBackground": "#cccccc",
|
|
|
|
"hoverBorder": ""
|
2019-09-22 06:02:33 +02:00
|
|
|
},
|
2019-09-09 09:50:15 +02:00
|
|
|
"unauthenticated": {
|
2019-10-07 07:03:41 +02:00
|
|
|
"_component": "@budibase/standard-components/button",
|
|
|
|
"contentText": "Button",
|
|
|
|
"contentComponent": {
|
|
|
|
"_component": ""
|
|
|
|
},
|
|
|
|
"className": "default",
|
|
|
|
"disabled": false,
|
|
|
|
"onClick": [],
|
|
|
|
"background": "##f2f2f2",
|
|
|
|
"color": "#5F6368",
|
|
|
|
"border": "1px solid #EEE",
|
|
|
|
"padding": "5px 7px",
|
|
|
|
"hoverColor": "black",
|
|
|
|
"hoverBackground": "#cccccc",
|
|
|
|
"hoverBorder": ""
|
2019-09-09 09:50:15 +02:00
|
|
|
}
|
2019-09-09 06:24:14 +02:00
|
|
|
}
|
2019-08-19 22:18:23 +02:00
|
|
|
}
|