mobiletto-orm-typedef-gen 2.3.20 → 2.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -332,9 +332,9 @@
|
|
|
332
332
|
const onEditSubmitted = async (obj: MobilettoOrmObject) => {
|
|
333
333
|
await {{name}}Store
|
|
334
334
|
.update(obj as {{Name}}Type, edit{{Name}}ServerErrors);
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
335
|
+
editingObject.value = {} as {{Name}}Type;{{#if typeDef.singleton}}
|
|
336
|
+
return await {{name}}Store.lookup(findSingleton{{Name}}ServerErrors);{{else}}
|
|
337
|
+
return await {{name}}Store.search();{{/if}}
|
|
338
338
|
};
|
|
339
339
|
|
|
340
340
|
const showEditOrm = (obj: MobilettoOrmObject) => {
|
|
@@ -26,7 +26,8 @@ export const use{{Name}}Store = defineStore("{{name}}", {
|
|
|
26
26
|
this.found = null;
|
|
27
27
|
this.finding = true;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
this.found = await {{name}}Service.find{{Name}}(serverErrors);
|
|
30
|
+
return this.found
|
|
30
31
|
} finally {
|
|
31
32
|
this.finding = false;
|
|
32
33
|
}
|
|
@@ -332,9 +332,9 @@
|
|
|
332
332
|
const onEditSubmitted = async (obj: MobilettoOrmObject) => {
|
|
333
333
|
await {{name}}Store
|
|
334
334
|
.update(obj as {{Name}}Type, edit{{Name}}ServerErrors);
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
335
|
+
editingObject.value = {} as {{Name}}Type;{{#if typeDef.singleton}}
|
|
336
|
+
return await {{name}}Store.lookup(findSingleton{{Name}}ServerErrors);{{else}}
|
|
337
|
+
return await {{name}}Store.search();{{/if}}
|
|
338
338
|
};
|
|
339
339
|
|
|
340
340
|
const showEditOrm = (obj: MobilettoOrmObject) => {
|
|
@@ -26,7 +26,8 @@ export const use{{Name}}Store = defineStore("{{name}}", {
|
|
|
26
26
|
this.found = null;
|
|
27
27
|
this.finding = true;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
this.found = await {{name}}Service.find{{Name}}(serverErrors);
|
|
30
|
+
return this.found
|
|
30
31
|
} finally {
|
|
31
32
|
this.finding = false;
|
|
32
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobiletto-orm-typedef-gen",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "generate various files based on mobiletto-orm-typedef definitions",
|
|
6
6
|
"keywords": [
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"eslint-config-prettier": "^8.8.0",
|
|
54
54
|
"handlebars": "^4.7.7",
|
|
55
55
|
"hokey-runtime": "^1.0.4",
|
|
56
|
-
"mobiletto-orm-typedef": "^2.3.
|
|
56
|
+
"mobiletto-orm-typedef": "^2.3.26",
|
|
57
57
|
"mocha": "^10.2.0",
|
|
58
58
|
"prettier": "^3.0.0",
|
|
59
59
|
"tslint-config-prettier": "^1.18.0",
|