Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions codbex-methods/codbex-methods.gen
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,13 @@
"brandUrl": "https://www.codbex.com/",
"title": "Methods Management Module",
"description": "Managing Methods Data",
"fileName": "codbex-methods",
"genFolderName": "codbex-methods",
"dataSource": "DefaultDB",
"roles": [
{
"entityName": "PaymentMethod",
"roleRead": "codbex-methods.PaymentMethod.PaymentMethodReadOnly",
"roleWrite": "codbex-methods.PaymentMethod.PaymentMethodFullAccess"
},
{
"entityName": "SentMethod",
"roleRead": "codbex-methods.SentMethod.SentMethodReadOnly",
"roleWrite": "codbex-methods.SentMethod.SentMethodFullAccess"
}
],
"tprefix": "codbex-methods-model",
"projectName": "codbex-methods",
"workspaceName": "workspace",
"filePath": "codbex-methods.model",
"templateId": "template-application-angular-v2/template/template.js",
"fileName": "codbex-methods",
"genFolderName": "codbex-methods",
"dataSource": "DefaultDB",
"perspectives": {
"Settings": {
"views": [
Expand All @@ -39,6 +26,19 @@
"role": ""
}
},
"roles": [
{
"entityName": "PaymentMethod",
"roleRead": "codbex-methods.PaymentMethod.PaymentMethodReadOnly",
"roleWrite": "codbex-methods.PaymentMethod.PaymentMethodFullAccess"
},
{
"entityName": "SentMethod",
"roleRead": "codbex-methods.SentMethod.SentMethodReadOnly",
"roleWrite": "codbex-methods.SentMethod.SentMethodFullAccess"
}
],
"tprefix": "codbex-methods-model",
"models": [
{
"properties": [
Expand All @@ -60,6 +60,7 @@
"dataUnique": false,
"isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Id",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -86,6 +87,7 @@
"dataAutoIncrement": false,
"dataPrimaryKey": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Name",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand Down Expand Up @@ -149,6 +151,7 @@
"dataUnique": false,
"isRequiredProperty": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Id",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand All @@ -175,6 +178,7 @@
"dataAutoIncrement": false,
"dataPrimaryKey": false,
"isCalculatedProperty": false,
"isReadOnlyProperty": false,
"widgetLabel": "Name",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PaymentMethodController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().slice(0, 2)
language: request.getLocale().split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -96,7 +96,7 @@ class PaymentMethodController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().slice(0, 2)
language: request.getLocale().split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SentMethodController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().slice(0, 2)
language: request.getLocale().split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -96,7 +96,7 @@ class SentMethodController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().slice(0, 2)
language: request.getLocale().split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading