forked from tsai/budibase
19 changed files with 376 additions and 895 deletions
@ -1 +1 @@ |
|||
Subproject commit 804483d3a3210936743f3b57a032783296eab06c |
|||
Subproject commit ab14ab9db1698a82b1f98b692ecfa6b71c17752a |
|||
@ -1 +1,75 @@ |
|||
{"levels":[{"name":"owner","permissions":[{"type":"create record","nodeKey":"/applications/1-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}"},{"type":"create record","nodeKey":"/applications/1-{id}/users/8-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}/users/8-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}/users/8-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}/users/8-{id}"},{"type":"create record","nodeKey":"/applications/1-{id}/instances/2-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}/instances/2-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}/instances/2-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}/instances/2-{id}"},{"type":"create record","nodeKey":"/applications/1-{id}/versions/3-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}/versions/3-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}/versions/3-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}/versions/3-{id}"},{"type":"create record","nodeKey":"/applications/1-{id}/sessions/16-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}/sessions/16-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}/sessions/16-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}/sessions/16-{id}"},{"type":"create record","nodeKey":"/sessions/17-{id}"},{"type":"update record","nodeKey":"/sessions/17-{id}"},{"type":"delete record","nodeKey":"/sessions/17-{id}"},{"type":"read record","nodeKey":"/sessions/17-{id}"},{"type":"read index","nodeKey":"/mastersessions_by_user"},{"type":"read index","nodeKey":"/all_applications"},{"type":"read index","nodeKey":"/applications/1-{id}/allinstances"},{"type":"read index","nodeKey":"/applications/1-{id}/sessions_by_user"},{"type":"read index","nodeKey":"/applications/1-{id}/user_name_lookup"},{"type":"read index","nodeKey":"/applications/1-{id}/all_versions"},{"type":"read index","nodeKey":"/applications/1-{id}/instances/2-{id}/users_on_this_instance"},{"type":"read index","nodeKey":"/applications/1-{id}/versions/3-{id}/instances_for_this_version"},{"type":"read index","nodeKey":"/applications/1-{id}/versions/3-{id}/instances_on_this_version"},{"type":"write templates"},{"type":"create user"},{"type":"set password"},{"type":"create temporary access"},{"type":"enable or disable user"},{"type":"write access levels"},{"type":"list users"},{"type":"list access levels"},{"type":"manage index"},{"type":"manage collection"},{"type":"set user access levels"}]}],"version":0} |
|||
{ |
|||
"levels": [ |
|||
{ |
|||
"name": "owner", |
|||
"permissions": [ |
|||
{ |
|||
"type": "create record", |
|||
"nodeKey": "/customers/1-{id}" |
|||
}, |
|||
{ |
|||
"type": "delete record", |
|||
"nodeKey": "/customers/1-{id}" |
|||
}, |
|||
{ |
|||
"type": "update record", |
|||
"nodeKey": "/customers/1-{id}" |
|||
}, |
|||
{ |
|||
"type": "read record", |
|||
"nodeKey": "/customers/1-{id}" |
|||
}, |
|||
{ |
|||
"type": "create record", |
|||
"nodeKey": "/customers/1-{id}/invoices/2-{id}" |
|||
}, |
|||
{ |
|||
"type": "update record", |
|||
"nodeKey": "/customers/1-{id}/invoices/2-{id}" |
|||
}, |
|||
{ |
|||
"type": "delete record", |
|||
"nodeKey": "/customers/1-{id}/invoices/2-{id}" |
|||
}, |
|||
{ |
|||
"type": "read record", |
|||
"nodeKey": "/customers/1-{id}/invoices/2-{id}" |
|||
}, |
|||
{ |
|||
"type": "write templates" |
|||
}, |
|||
{ |
|||
"type": "create user" |
|||
}, |
|||
{ |
|||
"type": "set password" |
|||
}, |
|||
{ |
|||
"type": "create temporary access" |
|||
}, |
|||
{ |
|||
"type": "enable or disable user" |
|||
}, |
|||
{ |
|||
"type": "write access levels" |
|||
}, |
|||
{ |
|||
"type": "list users" |
|||
}, |
|||
{ |
|||
"type": "list access levels" |
|||
}, |
|||
{ |
|||
"type": "manage index" |
|||
}, |
|||
{ |
|||
"type": "set user access levels" |
|||
}, |
|||
{ |
|||
"type": "manage collection" |
|||
} |
|||
] |
|||
} |
|||
], |
|||
"version": 0 |
|||
} |
|||
Binary file not shown.
@ -1 +0,0 @@ |
|||
{"levels":[{"name":"owner","permissions":[{"type":"create record","nodeKey":"/applications/1-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}"},{"type":"create record","nodeKey":"/applications/1-{id}/users/8-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}/users/8-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}/users/8-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}/users/8-{id}"},{"type":"create record","nodeKey":"/applications/1-{id}/instances/2-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}/instances/2-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}/instances/2-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}/instances/2-{id}"},{"type":"create record","nodeKey":"/applications/1-{id}/versions/3-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}/versions/3-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}/versions/3-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}/versions/3-{id}"},{"type":"create record","nodeKey":"/applications/1-{id}/sessions/16-{id}"},{"type":"update record","nodeKey":"/applications/1-{id}/sessions/16-{id}"},{"type":"delete record","nodeKey":"/applications/1-{id}/sessions/16-{id}"},{"type":"read record","nodeKey":"/applications/1-{id}/sessions/16-{id}"},{"type":"create record","nodeKey":"/sessions/17-{id}"},{"type":"update record","nodeKey":"/sessions/17-{id}"},{"type":"delete record","nodeKey":"/sessions/17-{id}"},{"type":"read record","nodeKey":"/sessions/17-{id}"},{"type":"read index","nodeKey":"/mastersessions_by_user"},{"type":"read index","nodeKey":"/all_applications"},{"type":"read index","nodeKey":"/applications/1-{id}/allinstances"},{"type":"read index","nodeKey":"/applications/1-{id}/sessions_by_user"},{"type":"read index","nodeKey":"/applications/1-{id}/user_name_lookup"},{"type":"read index","nodeKey":"/applications/1-{id}/all_versions"},{"type":"read index","nodeKey":"/applications/1-{id}/instances/2-{id}/users_on_this_instance"},{"type":"read index","nodeKey":"/applications/1-{id}/versions/3-{id}/instances_for_this_version"},{"type":"read index","nodeKey":"/applications/1-{id}/versions/3-{id}/instances_on_this_version"},{"type":"write templates"},{"type":"create user"},{"type":"set password"},{"type":"create temporary access"},{"type":"enable or disable user"},{"type":"write access levels"},{"type":"list users"},{"type":"list access levels"},{"type":"manage index"},{"type":"manage collection"},{"type":"set user access levels"}]}],"version":0} |
|||
@ -1,445 +0,0 @@ |
|||
{ |
|||
"hierarchy": { |
|||
"name": "root", |
|||
"type": "root", |
|||
"children": [ |
|||
{ |
|||
"name": "application", |
|||
"type": "record", |
|||
"fields": [ |
|||
{ |
|||
"name": "name", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": 500, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "Name", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "domain", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": 500, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "domain", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "application_resolve_strategy", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": 100, |
|||
"values": [ |
|||
"domain", |
|||
"path" |
|||
], |
|||
"allowDeclaredValuesOnly": true |
|||
}, |
|||
"label": "Resolve Application By", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
} |
|||
], |
|||
"children": [ |
|||
{ |
|||
"name": "user", |
|||
"type": "record", |
|||
"fields": [ |
|||
{ |
|||
"name": "unique_name", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": 200, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "Name (unique)", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "active", |
|||
"type": "bool", |
|||
"typeOptions": { |
|||
"allowNulls": false |
|||
}, |
|||
"label": "Is Active", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "instance", |
|||
"type": "reference", |
|||
"typeOptions": { |
|||
"indexNodeKey": "/applications/1-{id}/allinstances", |
|||
"reverseIndexNodeKeys": [ |
|||
"/applications/1-{id}/instances/2-{id}/users_on_this_instance" |
|||
], |
|||
"displayValue": "name" |
|||
}, |
|||
"label": "Instance", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
} |
|||
], |
|||
"children": [], |
|||
"validationRules": [], |
|||
"nodeId": 8, |
|||
"indexes": [], |
|||
"allidsShardFactor": "64", |
|||
"collectionName": "users", |
|||
"isSingle": false |
|||
}, |
|||
{ |
|||
"name": "instance", |
|||
"type": "record", |
|||
"fields": [ |
|||
{ |
|||
"name": "name", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": 1000, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "Name", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "active", |
|||
"type": "bool", |
|||
"typeOptions": { |
|||
"allowNulls": false |
|||
}, |
|||
"label": "Is Active", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "version", |
|||
"type": "reference", |
|||
"typeOptions": { |
|||
"indexNodeKey": "/applications/1-{id}/all_versions", |
|||
"reverseIndexNodeKeys": [ |
|||
"/applications/1-{id}/versions/3-{id}/instances_on_this_version" |
|||
], |
|||
"displayValue": "name" |
|||
}, |
|||
"label": "Version", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "datastoreconfig", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": 1000, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "Datastore Config", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
} |
|||
], |
|||
"children": [], |
|||
"validationRules": [], |
|||
"nodeId": 2, |
|||
"indexes": [ |
|||
{ |
|||
"name": "users_on_this_instance", |
|||
"type": "index", |
|||
"map": "return {...record};", |
|||
"filter": "", |
|||
"indexType": "reference", |
|||
"getShardName": "", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [], |
|||
"nodeId": 15 |
|||
} |
|||
], |
|||
"allidsShardFactor": 1, |
|||
"collectionName": "instances", |
|||
"isSingle": false |
|||
}, |
|||
{ |
|||
"name": "version", |
|||
"type": "record", |
|||
"fields": [ |
|||
{ |
|||
"name": "name", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": 200, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "Name", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "package", |
|||
"type": "file", |
|||
"typeOptions": {}, |
|||
"label": "Package", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
} |
|||
], |
|||
"children": [], |
|||
"validationRules": [], |
|||
"nodeId": 3, |
|||
"indexes": [ |
|||
{ |
|||
"name": "instances_for_this_version", |
|||
"type": "index", |
|||
"map": "return {name:record.name};", |
|||
"filter": "", |
|||
"indexType": "ancestor", |
|||
"getShardName": "", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [], |
|||
"nodeId": 9 |
|||
}, |
|||
{ |
|||
"name": "instances_on_this_version", |
|||
"type": "index", |
|||
"map": "return {...record};", |
|||
"filter": "", |
|||
"indexType": "reference", |
|||
"getShardName": "", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [], |
|||
"nodeId": 10 |
|||
} |
|||
], |
|||
"allidsShardFactor": 1, |
|||
"collectionName": "versions", |
|||
"isSingle": false |
|||
}, |
|||
{ |
|||
"name": "session", |
|||
"type": "record", |
|||
"fields": [ |
|||
{ |
|||
"name": "created", |
|||
"type": "number", |
|||
"typeOptions": { |
|||
"minValue": 0, |
|||
"maxValue": 99999999999999, |
|||
"decimalPlaces": 0 |
|||
}, |
|||
"label": "Created", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "user_json", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": null, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "User Json", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "instanceDatastoreConfig", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": null, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "Instance Datastore Config", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "username", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": null, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "User", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
} |
|||
], |
|||
"children": [], |
|||
"validationRules": [], |
|||
"nodeId": 16, |
|||
"indexes": [], |
|||
"allidsShardFactor": 1, |
|||
"collectionName": "sessions", |
|||
"isSingle": false |
|||
} |
|||
], |
|||
"validationRules": [], |
|||
"nodeId": 1, |
|||
"indexes": [ |
|||
{ |
|||
"name": "allinstances", |
|||
"type": "index", |
|||
"map": "return {...record};", |
|||
"filter": "", |
|||
"indexType": "ancestor", |
|||
"getShardName": "", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [ |
|||
2 |
|||
], |
|||
"nodeId": 23 |
|||
}, |
|||
{ |
|||
"name": "sessions_by_user", |
|||
"type": "index", |
|||
"map": "return {username:record.username};", |
|||
"filter": "", |
|||
"indexType": "ancestor", |
|||
"getShardName": "return record.username.substring(0,2)", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [ |
|||
16 |
|||
], |
|||
"nodeId": 24 |
|||
}, |
|||
{ |
|||
"name": "user_name_lookup", |
|||
"type": "index", |
|||
"map": "return {name:record.unique_name, instanceDatastoreConfig:instance.datastoreconfig};", |
|||
"filter": "", |
|||
"indexType": "ancestor", |
|||
"getShardName": "return record.unique_name.substring(0,2)", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [ |
|||
8 |
|||
], |
|||
"nodeId": 25 |
|||
}, |
|||
{ |
|||
"name": "all_versions", |
|||
"type": "index", |
|||
"map": "return {...record};", |
|||
"filter": "", |
|||
"indexType": "ancestor", |
|||
"getShardName": "", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [ |
|||
3 |
|||
], |
|||
"nodeId": 26 |
|||
} |
|||
], |
|||
"allidsShardFactor": 64, |
|||
"collectionName": "applications", |
|||
"isSingle": false |
|||
}, |
|||
{ |
|||
"name": "mastersession", |
|||
"type": "record", |
|||
"fields": [ |
|||
{ |
|||
"name": "user_json", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": 10000, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "User Json", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
}, |
|||
{ |
|||
"name": "username", |
|||
"type": "string", |
|||
"typeOptions": { |
|||
"maxLength": null, |
|||
"values": null, |
|||
"allowDeclaredValuesOnly": false |
|||
}, |
|||
"label": "User", |
|||
"getInitialValue": "default", |
|||
"getUndefinedValue": "default" |
|||
} |
|||
], |
|||
"children": [], |
|||
"validationRules": [], |
|||
"nodeId": 17, |
|||
"indexes": [], |
|||
"allidsShardFactor": 64, |
|||
"collectionName": "sessions", |
|||
"isSingle": false |
|||
} |
|||
], |
|||
"pathMaps": [], |
|||
"indexes": [ |
|||
{ |
|||
"name": "all_applications", |
|||
"type": "index", |
|||
"map": "return {...record};", |
|||
"filter": "", |
|||
"indexType": "ancestor", |
|||
"getShardName": "", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [ |
|||
1 |
|||
], |
|||
"nodeId": 22 |
|||
}, |
|||
{ |
|||
"name": "mastersessions_by_user", |
|||
"type": "index", |
|||
"map": "return {username:record.username};", |
|||
"filter": "", |
|||
"indexType": "ancestor", |
|||
"getShardName": "return record.username.substring(0,2)", |
|||
"getSortKey": "record.id", |
|||
"aggregateGroups": [], |
|||
"allowedRecordNodeIds": [ |
|||
17 |
|||
], |
|||
"nodeId": 27 |
|||
} |
|||
], |
|||
"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 };", |
|||
"condition": "" |
|||
} |
|||
] |
|||
} |
|||
@ -0,0 +1,75 @@ |
|||
{ |
|||
"levels": [ |
|||
{ |
|||
"name": "owner", |
|||
"permissions": [ |
|||
{ |
|||
"type": "create record", |
|||
"nodeKey": "/customers/1-{id}" |
|||
}, |
|||
{ |
|||
"type": "delete record", |
|||
"nodeKey": "/customers/1-{id}" |
|||
}, |
|||
{ |
|||
"type": "update record", |
|||
"nodeKey": "/customers/1-{id}" |
|||
}, |
|||
{ |
|||
"type": "read record", |
|||
"nodeKey": "/customers/1-{id}" |
|||
}, |
|||
{ |
|||
"type": "create record", |
|||
"nodeKey": "/customers/1-{id}/invoices/2-{id}" |
|||
}, |
|||
{ |
|||
"type": "update record", |
|||
"nodeKey": "/customers/1-{id}/invoices/2-{id}" |
|||
}, |
|||
{ |
|||
"type": "delete record", |
|||
"nodeKey": "/customers/1-{id}/invoices/2-{id}" |
|||
}, |
|||
{ |
|||
"type": "read record", |
|||
"nodeKey": "/customers/1-{id}/invoices/2-{id}" |
|||
}, |
|||
{ |
|||
"type": "write templates" |
|||
}, |
|||
{ |
|||
"type": "create user" |
|||
}, |
|||
{ |
|||
"type": "set password" |
|||
}, |
|||
{ |
|||
"type": "create temporary access" |
|||
}, |
|||
{ |
|||
"type": "enable or disable user" |
|||
}, |
|||
{ |
|||
"type": "write access levels" |
|||
}, |
|||
{ |
|||
"type": "list users" |
|||
}, |
|||
{ |
|||
"type": "list access levels" |
|||
}, |
|||
{ |
|||
"type": "manage index" |
|||
}, |
|||
{ |
|||
"type": "set user access levels" |
|||
}, |
|||
{ |
|||
"type": "manage collection" |
|||
} |
|||
] |
|||
} |
|||
], |
|||
"version": 0 |
|||
} |
|||
@ -0,0 +1,78 @@ |
|||
{ |
|||
"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": "invoice", |
|||
"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 |
|||
}, |
|||
"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 };", |
|||
"condition": "!context.password" |
|||
} |
|||
] |
|||
} |
|||
Loading…
Reference in new issue