@neutron.co.id/operasional-modules 1.4.9-beta.2 → 1.4.9-beta.3
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.
- package/build/personalia/resources/submission/submission.model.d.ts +1 -1
- package/build/personalia/resources/submission/submission.model.mjs +4 -1
- package/build/personalia/resources/submission/submission.resource.d.ts +1 -1
- package/build/personalia/resources/submission/submission.views.mjs +89 -14
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SubmissionModel: import("@neon.id/model").Model<"neu:personalia:submission", "type" | "status" | "title" | "branches" | "specifications" | "raisedAt" | "submissionStaffs" | "raiseStaffs" | "decideStaffs" | "followUpStaffs" | "nominal" | "preparedAt" | "processedAt" | "agreedStaffs" | "delayStaffs" | "document">;
|
|
1
|
+
export declare const SubmissionModel: import("@neon.id/model").Model<"neu:personalia:submission", "type" | "image" | "status" | "title" | "branches" | "specifications" | "raisedAt" | "submissionStaffs" | "raiseStaffs" | "decideStaffs" | "followUpStaffs" | "nominal" | "preparedAt" | "processedAt" | "nameStaff" | "agreedStaffs" | "delayStaffs" | "document">;
|
|
2
2
|
export type TSubmissionModel = typeof SubmissionModel;
|
|
3
3
|
export declare const fragments: {
|
|
4
4
|
item: Schema.Submission;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Resource } from '@neon.id/context';
|
|
2
|
-
export declare const SubmissionResource: Resource<Schema.Submission, import("@neon.id/model").Model<"neu:personalia:submission", "type" | "status" | "title" | "branches" | "specifications" | "raisedAt" | "submissionStaffs" | "raiseStaffs" | "decideStaffs" | "followUpStaffs" | "nominal" | "preparedAt" | "processedAt" | "agreedStaffs" | "delayStaffs" | "document">>;
|
|
2
|
+
export declare const SubmissionResource: Resource<Schema.Submission, import("@neon.id/model").Model<"neu:personalia:submission", "type" | "image" | "status" | "title" | "branches" | "specifications" | "raisedAt" | "submissionStaffs" | "raiseStaffs" | "decideStaffs" | "followUpStaffs" | "nominal" | "preparedAt" | "processedAt" | "nameStaff" | "agreedStaffs" | "delayStaffs" | "document">>;
|
|
@@ -3,6 +3,7 @@ import { useSingle } from "@neon.id/context";
|
|
|
3
3
|
import { NeonButton } from "@neon.id/interfaces";
|
|
4
4
|
import { h } from "vue";
|
|
5
5
|
import { Query } from "@neon.id/query";
|
|
6
|
+
import { useOperasional } from "@neutron.co.id/operasional-interfaces";
|
|
6
7
|
export const SubmissionCollectionView = ResourceUtil.createCollection({
|
|
7
8
|
name: "default",
|
|
8
9
|
definition: "neu:personalia:submission"
|
|
@@ -53,8 +54,28 @@ export const SubmissionCollectionStaffView = ResourceUtil.createCollection({
|
|
|
53
54
|
"followUpStaffs",
|
|
54
55
|
"nominal"
|
|
55
56
|
],
|
|
56
|
-
filters: [
|
|
57
|
-
|
|
57
|
+
filters: [
|
|
58
|
+
"status",
|
|
59
|
+
"type",
|
|
60
|
+
"specifications",
|
|
61
|
+
"branches",
|
|
62
|
+
"submissionStaffs",
|
|
63
|
+
"raiseStaffs",
|
|
64
|
+
"decideStaffs",
|
|
65
|
+
"followUpStaffs"
|
|
66
|
+
],
|
|
67
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
68
|
+
query: () => {
|
|
69
|
+
const { staff } = useOperasional();
|
|
70
|
+
return Query.define({
|
|
71
|
+
filter: {
|
|
72
|
+
handle: "branchIds",
|
|
73
|
+
operator: "in",
|
|
74
|
+
value: staff.value?.branchIds
|
|
75
|
+
},
|
|
76
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
58
79
|
});
|
|
59
80
|
export const SubmissionSingleStaffView = ResourceUtil.createSingle({
|
|
60
81
|
name: "staff",
|
|
@@ -83,7 +104,7 @@ export const SubmissionSingleStaffView = ResourceUtil.createSingle({
|
|
|
83
104
|
export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
84
105
|
name: "follow-up",
|
|
85
106
|
definition: "neu:personalia:submission",
|
|
86
|
-
title: "
|
|
107
|
+
title: "Tindak Lanjut",
|
|
87
108
|
icon: "toolbox",
|
|
88
109
|
scope: "follow-up",
|
|
89
110
|
path: "/pengajuan/follow-up-submission",
|
|
@@ -104,15 +125,33 @@ export const SubmissionCollectionFollowUpView = ResourceUtil.createCollection({
|
|
|
104
125
|
"followUpStaffs",
|
|
105
126
|
"nominal"
|
|
106
127
|
],
|
|
107
|
-
filters: [
|
|
108
|
-
|
|
128
|
+
filters: [
|
|
129
|
+
"status",
|
|
130
|
+
"type",
|
|
131
|
+
"specifications",
|
|
132
|
+
"branches",
|
|
133
|
+
"submissionStaffs",
|
|
134
|
+
"raiseStaffs",
|
|
135
|
+
"decideStaffs",
|
|
136
|
+
"followUpStaffs"
|
|
137
|
+
],
|
|
138
|
+
sorts: ["updatedAt", "createdAt", "updater"],
|
|
109
139
|
query: () => {
|
|
140
|
+
const { staff } = useOperasional();
|
|
110
141
|
return Query.define({
|
|
111
|
-
filter:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
142
|
+
filter: [
|
|
143
|
+
{
|
|
144
|
+
handle: "status",
|
|
145
|
+
operator: "in",
|
|
146
|
+
value: ["approved", "monitored", "discontinued", "resolved"]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
handle: "branchIds",
|
|
150
|
+
operator: "in",
|
|
151
|
+
value: staff.value?.branchIds
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
116
155
|
});
|
|
117
156
|
},
|
|
118
157
|
excludes: ["create"]
|
|
@@ -165,8 +204,30 @@ export const SubmissionCollectionAuditView = ResourceUtil.createCollection({
|
|
|
165
204
|
"followUpStaffs",
|
|
166
205
|
"nominal"
|
|
167
206
|
],
|
|
168
|
-
filters: [
|
|
169
|
-
|
|
207
|
+
filters: [
|
|
208
|
+
"status",
|
|
209
|
+
"type",
|
|
210
|
+
"specifications",
|
|
211
|
+
"branches",
|
|
212
|
+
"submissionStaffs",
|
|
213
|
+
"raiseStaffs",
|
|
214
|
+
"decideStaffs",
|
|
215
|
+
"followUpStaffs"
|
|
216
|
+
],
|
|
217
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
218
|
+
query: () => {
|
|
219
|
+
const { staff } = useOperasional();
|
|
220
|
+
return Query.define({
|
|
221
|
+
filter: [
|
|
222
|
+
{
|
|
223
|
+
handle: "branchIds",
|
|
224
|
+
operator: "in",
|
|
225
|
+
value: staff.value?.branchIds
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
229
|
+
});
|
|
230
|
+
}
|
|
170
231
|
});
|
|
171
232
|
export const SubmissionSingleAuditView = ResourceUtil.createSingle({
|
|
172
233
|
name: "audit",
|
|
@@ -216,8 +277,22 @@ export const SubmissionCollectionDecisionView = ResourceUtil.createCollection({
|
|
|
216
277
|
"followUpStaffs",
|
|
217
278
|
"nominal"
|
|
218
279
|
],
|
|
219
|
-
filters: [
|
|
220
|
-
|
|
280
|
+
filters: [
|
|
281
|
+
"status",
|
|
282
|
+
"type",
|
|
283
|
+
"specifications",
|
|
284
|
+
"branches",
|
|
285
|
+
"submissionStaffs",
|
|
286
|
+
"raiseStaffs",
|
|
287
|
+
"decideStaffs",
|
|
288
|
+
"followUpStaffs"
|
|
289
|
+
],
|
|
290
|
+
sorts: ["preparedAt", "raisedAt", "processedAt", "createdAt", "updatedAt"],
|
|
291
|
+
query: () => {
|
|
292
|
+
return Query.define({
|
|
293
|
+
sort: [{ handle: "createdAt", direction: "descending" }]
|
|
294
|
+
});
|
|
295
|
+
}
|
|
221
296
|
});
|
|
222
297
|
export const SubmissionSingleDecisionView = ResourceUtil.createSingle({
|
|
223
298
|
name: "decision",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-modules",
|
|
3
|
-
"version": "1.4.9-beta.
|
|
3
|
+
"version": "1.4.9-beta.3",
|
|
4
4
|
"description": "Modules of Neutron Operasional.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"contributors": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@neon.id/context": "0.48.0",
|
|
44
44
|
"@neon.id/office": "0.39.0",
|
|
45
45
|
"@neutron.co.id/operasional-interfaces": "1.4.7-beta.2",
|
|
46
|
-
"@neutron.co.id/personalia-models": "1.4.5-beta.
|
|
46
|
+
"@neutron.co.id/personalia-models": "1.4.5-beta.3",
|
|
47
47
|
"@nuxt/kit": "3.4.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"@neon.id/context": "^0.48.0",
|
|
66
66
|
"@neon.id/office": "^0.39.0",
|
|
67
67
|
"@neutron.co.id/operasional-interfaces": "^1.4.7-beta.2",
|
|
68
|
-
"@neutron.co.id/personalia-models": "^1.4.5-beta.
|
|
68
|
+
"@neutron.co.id/personalia-models": "^1.4.5-beta.3",
|
|
69
69
|
"@nuxt/kit": "^3.4.2"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
|
74
|
-
"build":
|
|
74
|
+
"build": 48
|
|
75
75
|
}
|