Trigger Reference of GS2-Dictionary Script
Reference of event triggers that call extended scripts
Trigger
entry
entry registration
Synchronous Execution Script
Script and entry registration are executed synchronously in that order.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| entryModels | EntryModel[] | List of Entry Models |
| userId | string | User ID |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow entry registration |
Implementation Example
namespace = args.namespace
entryModels = args.entryModels
userId = args.userId
result = {
permit=permit
}Asynchronous Execution Script
The script will run after the entry registration is executed.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| entryModels | EntryModel[] | List of Entry Models |
| userId | string | User ID |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
entryModels = args.entryModels
userId = args.userId
result = {
}duplicateEntry
re-registration for entries already registered
Synchronous Execution Script
Script and re-registration for entries already registered are executed synchronously in that order.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| entryModel | EntryModel | Entry Model |
| userId | string | User ID |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
entryModel = args.entryModel
userId = args.userId
result = {
}