@neutron.co.id/operasional-interfaces 1.12.7 → 1.12.8
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/fluffy/index.cjs +155 -10
- package/build/fluffy/index.mjs +155 -10
- package/build/index.cjs +155 -10
- package/build/index.mjs +155 -10
- package/build/mock/index.cjs +339 -20
- package/build/mock/index.mjs +339 -20
- package/build/module.json +1 -1
- package/build/nuxt.json +1 -1
- package/build/office/index.cjs +155 -10
- package/build/office/index.mjs +155 -10
- package/package.json +2 -2
package/build/mock/index.mjs
CHANGED
|
@@ -13052,7 +13052,7 @@ const CheckInModel$1 = Model.define({
|
|
|
13052
13052
|
// 'neu:internalStudent',
|
|
13053
13053
|
// 'neu:teacher',
|
|
13054
13054
|
// ],
|
|
13055
|
-
search: [],
|
|
13055
|
+
search: ["nameStaff"],
|
|
13056
13056
|
cover: {
|
|
13057
13057
|
title: "",
|
|
13058
13058
|
fragment: {
|
|
@@ -13090,6 +13090,7 @@ const CheckInModel$1 = Model.define({
|
|
|
13090
13090
|
"student",
|
|
13091
13091
|
"staff",
|
|
13092
13092
|
"teacher",
|
|
13093
|
+
"branch",
|
|
13093
13094
|
"building",
|
|
13094
13095
|
"type",
|
|
13095
13096
|
"checkInAt",
|
|
@@ -13099,6 +13100,7 @@ const CheckInModel$1 = Model.define({
|
|
|
13099
13100
|
"student",
|
|
13100
13101
|
"staff",
|
|
13101
13102
|
"teacher",
|
|
13103
|
+
"branch",
|
|
13102
13104
|
"building",
|
|
13103
13105
|
"type",
|
|
13104
13106
|
"checkInAt",
|
|
@@ -13170,12 +13172,12 @@ const CheckInModel$1 = Model.define({
|
|
|
13170
13172
|
}),
|
|
13171
13173
|
branch: Field.define({
|
|
13172
13174
|
handle: "branch",
|
|
13173
|
-
name: "
|
|
13175
|
+
name: "Cabang Utama",
|
|
13174
13176
|
type: "relation",
|
|
13175
13177
|
input: "relation",
|
|
13176
13178
|
options: {
|
|
13177
|
-
note: "
|
|
13178
|
-
placeholder: "
|
|
13179
|
+
note: "Cabang utama dari karyawan.",
|
|
13180
|
+
placeholder: "Cabang utama...",
|
|
13179
13181
|
isQuery: true,
|
|
13180
13182
|
isPersisted: true
|
|
13181
13183
|
},
|
|
@@ -13373,6 +13375,31 @@ const CheckInModel$1 = Model.define({
|
|
|
13373
13375
|
}
|
|
13374
13376
|
}
|
|
13375
13377
|
}
|
|
13378
|
+
}),
|
|
13379
|
+
nameStaff: Field.define({
|
|
13380
|
+
handle: "nameStaff",
|
|
13381
|
+
name: "Nama Karyawan",
|
|
13382
|
+
type: "string",
|
|
13383
|
+
input: "short-text",
|
|
13384
|
+
options: {
|
|
13385
|
+
note: "Nama Karyawan.",
|
|
13386
|
+
isQuery: true,
|
|
13387
|
+
isPersisted: true
|
|
13388
|
+
},
|
|
13389
|
+
query: {
|
|
13390
|
+
dependency: {
|
|
13391
|
+
staff: {
|
|
13392
|
+
_id: 1,
|
|
13393
|
+
name: 1
|
|
13394
|
+
}
|
|
13395
|
+
},
|
|
13396
|
+
reduce: async (o) => {
|
|
13397
|
+
var _a;
|
|
13398
|
+
if (!(o == null ? void 0 : o.staff))
|
|
13399
|
+
return "";
|
|
13400
|
+
return (_a = o.staff) == null ? void 0 : _a.name.toString().toLowerCase();
|
|
13401
|
+
}
|
|
13402
|
+
}
|
|
13376
13403
|
})
|
|
13377
13404
|
},
|
|
13378
13405
|
fragments: {
|
|
@@ -13394,7 +13421,9 @@ const CheckInModel$1 = Model.define({
|
|
|
13394
13421
|
statusGPS: 1,
|
|
13395
13422
|
createdAt: 1,
|
|
13396
13423
|
updatedAt: 1,
|
|
13397
|
-
syncedAt: 1
|
|
13424
|
+
syncedAt: 1,
|
|
13425
|
+
branch: { id: 1, name: 1 },
|
|
13426
|
+
nameStaff: 1
|
|
13398
13427
|
},
|
|
13399
13428
|
detail: {
|
|
13400
13429
|
id: 1,
|
|
@@ -13418,7 +13447,10 @@ const CheckInModel$1 = Model.define({
|
|
|
13418
13447
|
studentId: 1,
|
|
13419
13448
|
teacherId: 1,
|
|
13420
13449
|
staffId: 1,
|
|
13421
|
-
buildingId: 1
|
|
13450
|
+
buildingId: 1,
|
|
13451
|
+
branch: { id: 1, name: 1 },
|
|
13452
|
+
branchId: 1,
|
|
13453
|
+
nameStaff: 1
|
|
13422
13454
|
},
|
|
13423
13455
|
fluffy: {}
|
|
13424
13456
|
}
|
|
@@ -14198,6 +14230,22 @@ const StatusWork$1 = Choice.define({
|
|
|
14198
14230
|
}
|
|
14199
14231
|
]
|
|
14200
14232
|
});
|
|
14233
|
+
const StatusKubik$1 = Choice.define({
|
|
14234
|
+
handle: "statusKubik",
|
|
14235
|
+
name: "Kubik Status",
|
|
14236
|
+
items: [
|
|
14237
|
+
{
|
|
14238
|
+
label: "Belum Hadir",
|
|
14239
|
+
value: "notYetAttend",
|
|
14240
|
+
color: "danger"
|
|
14241
|
+
},
|
|
14242
|
+
{
|
|
14243
|
+
label: "Hadir",
|
|
14244
|
+
value: "attend",
|
|
14245
|
+
color: "success"
|
|
14246
|
+
}
|
|
14247
|
+
]
|
|
14248
|
+
});
|
|
14201
14249
|
const PriorityStatus$1 = Choice.define({
|
|
14202
14250
|
handle: "priorityStatus",
|
|
14203
14251
|
name: "Priority Status",
|
|
@@ -18591,7 +18639,7 @@ const StaffModel$2 = Model.define({
|
|
|
18591
18639
|
input: "select",
|
|
18592
18640
|
options: {
|
|
18593
18641
|
note: "Status dari karyawan.",
|
|
18594
|
-
default: "
|
|
18642
|
+
default: "off",
|
|
18595
18643
|
enums: StatusWork$1.values,
|
|
18596
18644
|
choices: StatusWork$1.items,
|
|
18597
18645
|
isVirtual: true,
|
|
@@ -18686,7 +18734,6 @@ const StaffModel$2 = Model.define({
|
|
|
18686
18734
|
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18687
18735
|
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > todayDate
|
|
18688
18736
|
);
|
|
18689
|
-
console.log({ checkInAtCome });
|
|
18690
18737
|
if (!checkInAtCome.length) {
|
|
18691
18738
|
return null;
|
|
18692
18739
|
} else {
|
|
@@ -18826,6 +18873,100 @@ const StaffModel$2 = Model.define({
|
|
|
18826
18873
|
}
|
|
18827
18874
|
}
|
|
18828
18875
|
}
|
|
18876
|
+
}),
|
|
18877
|
+
/* EVENT KUBIK */
|
|
18878
|
+
kubikStatus: Field.define({
|
|
18879
|
+
handle: "kubikStatus",
|
|
18880
|
+
name: "Status Kehadiran",
|
|
18881
|
+
type: "string",
|
|
18882
|
+
input: "select",
|
|
18883
|
+
options: {
|
|
18884
|
+
note: "Status kehadiran acara.",
|
|
18885
|
+
default: "notYetAttend",
|
|
18886
|
+
enums: StatusKubik$1.values,
|
|
18887
|
+
choices: StatusKubik$1.items,
|
|
18888
|
+
isVirtual: true,
|
|
18889
|
+
isPersisted: true
|
|
18890
|
+
},
|
|
18891
|
+
virtual: {
|
|
18892
|
+
dependency: {
|
|
18893
|
+
checkIns: {
|
|
18894
|
+
_id: 1,
|
|
18895
|
+
type: 1,
|
|
18896
|
+
checkInAt: 1,
|
|
18897
|
+
buildingId: 1
|
|
18898
|
+
}
|
|
18899
|
+
},
|
|
18900
|
+
reduce(o) {
|
|
18901
|
+
var _a;
|
|
18902
|
+
if (!o.checkIns.length)
|
|
18903
|
+
return "notYetAttend";
|
|
18904
|
+
const sekarang = dayjs2("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
18905
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
18906
|
+
(field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
|
|
18907
|
+
);
|
|
18908
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
18909
|
+
(field) => field.buildingId == "65d2c2281feb875328d716ce"
|
|
18910
|
+
);
|
|
18911
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
18912
|
+
(field) => field.checkInAt != null
|
|
18913
|
+
);
|
|
18914
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18915
|
+
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
18916
|
+
);
|
|
18917
|
+
if (!checkInAtCome.length) {
|
|
18918
|
+
return "notYetAttend";
|
|
18919
|
+
} else {
|
|
18920
|
+
return "attend";
|
|
18921
|
+
}
|
|
18922
|
+
}
|
|
18923
|
+
}
|
|
18924
|
+
}),
|
|
18925
|
+
kubikAt: Field.define({
|
|
18926
|
+
handle: "kubikAt",
|
|
18927
|
+
name: "Waktu Kehadiran",
|
|
18928
|
+
type: "date",
|
|
18929
|
+
input: "date2",
|
|
18930
|
+
display: "date",
|
|
18931
|
+
options: {
|
|
18932
|
+
note: "Presensi masuk acara.",
|
|
18933
|
+
isVirtual: true,
|
|
18934
|
+
isPersisted: true
|
|
18935
|
+
},
|
|
18936
|
+
virtual: {
|
|
18937
|
+
dependency: {
|
|
18938
|
+
checkIns: {
|
|
18939
|
+
_id: 1,
|
|
18940
|
+
type: 1,
|
|
18941
|
+
checkInAt: 1,
|
|
18942
|
+
buildingId: 1
|
|
18943
|
+
}
|
|
18944
|
+
},
|
|
18945
|
+
reduce(o) {
|
|
18946
|
+
var _a, _b;
|
|
18947
|
+
if (!o.checkIns.length)
|
|
18948
|
+
return null;
|
|
18949
|
+
const sekarang = dayjs2("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
18950
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
18951
|
+
(field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
|
|
18952
|
+
);
|
|
18953
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
18954
|
+
(field) => field.buildingId == "65d2c2281feb875328d716ce"
|
|
18955
|
+
);
|
|
18956
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
18957
|
+
(field) => field.checkInAt != null
|
|
18958
|
+
);
|
|
18959
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18960
|
+
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
18961
|
+
);
|
|
18962
|
+
if (!checkInAtCome.length) {
|
|
18963
|
+
return null;
|
|
18964
|
+
} else {
|
|
18965
|
+
const resultCheckInCome = (_b = checkInAtCome[0]) == null ? void 0 : _b.checkInAt;
|
|
18966
|
+
return resultCheckInCome;
|
|
18967
|
+
}
|
|
18968
|
+
}
|
|
18969
|
+
}
|
|
18829
18970
|
})
|
|
18830
18971
|
},
|
|
18831
18972
|
fragments: {
|
|
@@ -18868,7 +19009,9 @@ const StaffModel$2 = Model.define({
|
|
|
18868
19009
|
workStatus: 1,
|
|
18869
19010
|
workCome: 1,
|
|
18870
19011
|
workHome: 1,
|
|
18871
|
-
workNote: 1
|
|
19012
|
+
workNote: 1,
|
|
19013
|
+
kubikStatus: 1,
|
|
19014
|
+
kubikAt: 1
|
|
18872
19015
|
},
|
|
18873
19016
|
detail: {
|
|
18874
19017
|
id: 1,
|
|
@@ -18913,7 +19056,9 @@ const StaffModel$2 = Model.define({
|
|
|
18913
19056
|
workStatus: 1,
|
|
18914
19057
|
workCome: 1,
|
|
18915
19058
|
workHome: 1,
|
|
18916
|
-
workNote: 1
|
|
19059
|
+
workNote: 1,
|
|
19060
|
+
kubikStatus: 1,
|
|
19061
|
+
kubikAt: 1
|
|
18917
19062
|
},
|
|
18918
19063
|
fluffy: {}
|
|
18919
19064
|
}
|
|
@@ -34098,7 +34243,7 @@ const CheckInModel = Model.define({
|
|
|
34098
34243
|
// 'neu:internalStudent',
|
|
34099
34244
|
// 'neu:teacher',
|
|
34100
34245
|
// ],
|
|
34101
|
-
search: [],
|
|
34246
|
+
search: ["nameStaff"],
|
|
34102
34247
|
cover: {
|
|
34103
34248
|
title: "",
|
|
34104
34249
|
fragment: {
|
|
@@ -34136,6 +34281,7 @@ const CheckInModel = Model.define({
|
|
|
34136
34281
|
"student",
|
|
34137
34282
|
"staff",
|
|
34138
34283
|
"teacher",
|
|
34284
|
+
"branch",
|
|
34139
34285
|
"building",
|
|
34140
34286
|
"type",
|
|
34141
34287
|
"checkInAt",
|
|
@@ -34145,6 +34291,7 @@ const CheckInModel = Model.define({
|
|
|
34145
34291
|
"student",
|
|
34146
34292
|
"staff",
|
|
34147
34293
|
"teacher",
|
|
34294
|
+
"branch",
|
|
34148
34295
|
"building",
|
|
34149
34296
|
"type",
|
|
34150
34297
|
"checkInAt",
|
|
@@ -34216,12 +34363,12 @@ const CheckInModel = Model.define({
|
|
|
34216
34363
|
}),
|
|
34217
34364
|
branch: Field.define({
|
|
34218
34365
|
handle: "branch",
|
|
34219
|
-
name: "
|
|
34366
|
+
name: "Cabang Utama",
|
|
34220
34367
|
type: "relation",
|
|
34221
34368
|
input: "relation",
|
|
34222
34369
|
options: {
|
|
34223
|
-
note: "
|
|
34224
|
-
placeholder: "
|
|
34370
|
+
note: "Cabang utama dari karyawan.",
|
|
34371
|
+
placeholder: "Cabang utama...",
|
|
34225
34372
|
isQuery: true,
|
|
34226
34373
|
isPersisted: true
|
|
34227
34374
|
},
|
|
@@ -34419,6 +34566,31 @@ const CheckInModel = Model.define({
|
|
|
34419
34566
|
}
|
|
34420
34567
|
}
|
|
34421
34568
|
}
|
|
34569
|
+
}),
|
|
34570
|
+
nameStaff: Field.define({
|
|
34571
|
+
handle: "nameStaff",
|
|
34572
|
+
name: "Nama Karyawan",
|
|
34573
|
+
type: "string",
|
|
34574
|
+
input: "short-text",
|
|
34575
|
+
options: {
|
|
34576
|
+
note: "Nama Karyawan.",
|
|
34577
|
+
isQuery: true,
|
|
34578
|
+
isPersisted: true
|
|
34579
|
+
},
|
|
34580
|
+
query: {
|
|
34581
|
+
dependency: {
|
|
34582
|
+
staff: {
|
|
34583
|
+
_id: 1,
|
|
34584
|
+
name: 1
|
|
34585
|
+
}
|
|
34586
|
+
},
|
|
34587
|
+
reduce: async (o) => {
|
|
34588
|
+
var _a;
|
|
34589
|
+
if (!(o == null ? void 0 : o.staff))
|
|
34590
|
+
return "";
|
|
34591
|
+
return (_a = o.staff) == null ? void 0 : _a.name.toString().toLowerCase();
|
|
34592
|
+
}
|
|
34593
|
+
}
|
|
34422
34594
|
})
|
|
34423
34595
|
},
|
|
34424
34596
|
fragments: {
|
|
@@ -34440,7 +34612,9 @@ const CheckInModel = Model.define({
|
|
|
34440
34612
|
statusGPS: 1,
|
|
34441
34613
|
createdAt: 1,
|
|
34442
34614
|
updatedAt: 1,
|
|
34443
|
-
syncedAt: 1
|
|
34615
|
+
syncedAt: 1,
|
|
34616
|
+
branch: { id: 1, name: 1 },
|
|
34617
|
+
nameStaff: 1
|
|
34444
34618
|
},
|
|
34445
34619
|
detail: {
|
|
34446
34620
|
id: 1,
|
|
@@ -34464,7 +34638,10 @@ const CheckInModel = Model.define({
|
|
|
34464
34638
|
studentId: 1,
|
|
34465
34639
|
teacherId: 1,
|
|
34466
34640
|
staffId: 1,
|
|
34467
|
-
buildingId: 1
|
|
34641
|
+
buildingId: 1,
|
|
34642
|
+
branch: { id: 1, name: 1 },
|
|
34643
|
+
branchId: 1,
|
|
34644
|
+
nameStaff: 1
|
|
34468
34645
|
},
|
|
34469
34646
|
fluffy: {}
|
|
34470
34647
|
}
|
|
@@ -35227,6 +35404,22 @@ const StatusWork = Choice.define({
|
|
|
35227
35404
|
}
|
|
35228
35405
|
]
|
|
35229
35406
|
});
|
|
35407
|
+
const StatusKubik = Choice.define({
|
|
35408
|
+
handle: "statusKubik",
|
|
35409
|
+
name: "Kubik Status",
|
|
35410
|
+
items: [
|
|
35411
|
+
{
|
|
35412
|
+
label: "Belum Hadir",
|
|
35413
|
+
value: "notYetAttend",
|
|
35414
|
+
color: "danger"
|
|
35415
|
+
},
|
|
35416
|
+
{
|
|
35417
|
+
label: "Hadir",
|
|
35418
|
+
value: "attend",
|
|
35419
|
+
color: "success"
|
|
35420
|
+
}
|
|
35421
|
+
]
|
|
35422
|
+
});
|
|
35230
35423
|
const PriorityStatus = Choice.define({
|
|
35231
35424
|
handle: "priorityStatus",
|
|
35232
35425
|
name: "Priority Status",
|
|
@@ -39620,7 +39813,7 @@ const StaffModel$1 = Model.define({
|
|
|
39620
39813
|
input: "select",
|
|
39621
39814
|
options: {
|
|
39622
39815
|
note: "Status dari karyawan.",
|
|
39623
|
-
default: "
|
|
39816
|
+
default: "off",
|
|
39624
39817
|
enums: StatusWork.values,
|
|
39625
39818
|
choices: StatusWork.items,
|
|
39626
39819
|
isVirtual: true,
|
|
@@ -39715,7 +39908,6 @@ const StaffModel$1 = Model.define({
|
|
|
39715
39908
|
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
39716
39909
|
(field) => dayjs22(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > todayDate
|
|
39717
39910
|
);
|
|
39718
|
-
console.log({ checkInAtCome });
|
|
39719
39911
|
if (!checkInAtCome.length) {
|
|
39720
39912
|
return null;
|
|
39721
39913
|
} else {
|
|
@@ -39855,6 +40047,100 @@ const StaffModel$1 = Model.define({
|
|
|
39855
40047
|
}
|
|
39856
40048
|
}
|
|
39857
40049
|
}
|
|
40050
|
+
}),
|
|
40051
|
+
/* EVENT KUBIK */
|
|
40052
|
+
kubikStatus: Field.define({
|
|
40053
|
+
handle: "kubikStatus",
|
|
40054
|
+
name: "Status Kehadiran",
|
|
40055
|
+
type: "string",
|
|
40056
|
+
input: "select",
|
|
40057
|
+
options: {
|
|
40058
|
+
note: "Status kehadiran acara.",
|
|
40059
|
+
default: "notYetAttend",
|
|
40060
|
+
enums: StatusKubik.values,
|
|
40061
|
+
choices: StatusKubik.items,
|
|
40062
|
+
isVirtual: true,
|
|
40063
|
+
isPersisted: true
|
|
40064
|
+
},
|
|
40065
|
+
virtual: {
|
|
40066
|
+
dependency: {
|
|
40067
|
+
checkIns: {
|
|
40068
|
+
_id: 1,
|
|
40069
|
+
type: 1,
|
|
40070
|
+
checkInAt: 1,
|
|
40071
|
+
buildingId: 1
|
|
40072
|
+
}
|
|
40073
|
+
},
|
|
40074
|
+
reduce(o) {
|
|
40075
|
+
var _a;
|
|
40076
|
+
if (!o.checkIns.length)
|
|
40077
|
+
return "notYetAttend";
|
|
40078
|
+
const sekarang = dayjs22("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
40079
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
40080
|
+
(field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
|
|
40081
|
+
);
|
|
40082
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
40083
|
+
(field) => field.buildingId == "65d2c2281feb875328d716ce"
|
|
40084
|
+
);
|
|
40085
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
40086
|
+
(field) => field.checkInAt != null
|
|
40087
|
+
);
|
|
40088
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
40089
|
+
(field) => dayjs22(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
40090
|
+
);
|
|
40091
|
+
if (!checkInAtCome.length) {
|
|
40092
|
+
return "notYetAttend";
|
|
40093
|
+
} else {
|
|
40094
|
+
return "attend";
|
|
40095
|
+
}
|
|
40096
|
+
}
|
|
40097
|
+
}
|
|
40098
|
+
}),
|
|
40099
|
+
kubikAt: Field.define({
|
|
40100
|
+
handle: "kubikAt",
|
|
40101
|
+
name: "Waktu Kehadiran",
|
|
40102
|
+
type: "date",
|
|
40103
|
+
input: "date2",
|
|
40104
|
+
display: "date",
|
|
40105
|
+
options: {
|
|
40106
|
+
note: "Presensi masuk acara.",
|
|
40107
|
+
isVirtual: true,
|
|
40108
|
+
isPersisted: true
|
|
40109
|
+
},
|
|
40110
|
+
virtual: {
|
|
40111
|
+
dependency: {
|
|
40112
|
+
checkIns: {
|
|
40113
|
+
_id: 1,
|
|
40114
|
+
type: 1,
|
|
40115
|
+
checkInAt: 1,
|
|
40116
|
+
buildingId: 1
|
|
40117
|
+
}
|
|
40118
|
+
},
|
|
40119
|
+
reduce(o) {
|
|
40120
|
+
var _a, _b;
|
|
40121
|
+
if (!o.checkIns.length)
|
|
40122
|
+
return null;
|
|
40123
|
+
const sekarang = dayjs22("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
40124
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
40125
|
+
(field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
|
|
40126
|
+
);
|
|
40127
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
40128
|
+
(field) => field.buildingId == "65d2c2281feb875328d716ce"
|
|
40129
|
+
);
|
|
40130
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
40131
|
+
(field) => field.checkInAt != null
|
|
40132
|
+
);
|
|
40133
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
40134
|
+
(field) => dayjs22(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
40135
|
+
);
|
|
40136
|
+
if (!checkInAtCome.length) {
|
|
40137
|
+
return null;
|
|
40138
|
+
} else {
|
|
40139
|
+
const resultCheckInCome = (_b = checkInAtCome[0]) == null ? void 0 : _b.checkInAt;
|
|
40140
|
+
return resultCheckInCome;
|
|
40141
|
+
}
|
|
40142
|
+
}
|
|
40143
|
+
}
|
|
39858
40144
|
})
|
|
39859
40145
|
},
|
|
39860
40146
|
fragments: {
|
|
@@ -39897,7 +40183,9 @@ const StaffModel$1 = Model.define({
|
|
|
39897
40183
|
workStatus: 1,
|
|
39898
40184
|
workCome: 1,
|
|
39899
40185
|
workHome: 1,
|
|
39900
|
-
workNote: 1
|
|
40186
|
+
workNote: 1,
|
|
40187
|
+
kubikStatus: 1,
|
|
40188
|
+
kubikAt: 1
|
|
39901
40189
|
},
|
|
39902
40190
|
detail: {
|
|
39903
40191
|
id: 1,
|
|
@@ -39942,7 +40230,9 @@ const StaffModel$1 = Model.define({
|
|
|
39942
40230
|
workStatus: 1,
|
|
39943
40231
|
workCome: 1,
|
|
39944
40232
|
workHome: 1,
|
|
39945
|
-
workNote: 1
|
|
40233
|
+
workNote: 1,
|
|
40234
|
+
kubikStatus: 1,
|
|
40235
|
+
kubikAt: 1
|
|
39946
40236
|
},
|
|
39947
40237
|
fluffy: {}
|
|
39948
40238
|
}
|
|
@@ -41986,6 +42276,30 @@ const StaffSingleAccessView = ResourceUtil.createSingle({
|
|
|
41986
42276
|
path: "/pengawas/staffs",
|
|
41987
42277
|
excludes: ["delete", "duplicate", "destroy"]
|
|
41988
42278
|
});
|
|
42279
|
+
const StaffCollectionEventView = ResourceUtil.createCollection({
|
|
42280
|
+
name: "event",
|
|
42281
|
+
definition: "neu:personalia:staff",
|
|
42282
|
+
title: "Daftar Tamu",
|
|
42283
|
+
icon: "user-tie",
|
|
42284
|
+
scope: "event",
|
|
42285
|
+
path: "/acara/staffs",
|
|
42286
|
+
query: () => {
|
|
42287
|
+
const { supervisedStaffIds } = useOperasional();
|
|
42288
|
+
return Query.define({
|
|
42289
|
+
filter: {
|
|
42290
|
+
_id: {
|
|
42291
|
+
$in: supervisedStaffIds.value
|
|
42292
|
+
}
|
|
42293
|
+
}
|
|
42294
|
+
});
|
|
42295
|
+
},
|
|
42296
|
+
single: {
|
|
42297
|
+
view: "access",
|
|
42298
|
+
peeks: ["modal"]
|
|
42299
|
+
},
|
|
42300
|
+
excludes: ["create", "delete", "duplicate", "destroy"],
|
|
42301
|
+
columns: ["kubikStatus", "name", "kubikAt", "branch", "branches"]
|
|
42302
|
+
});
|
|
41989
42303
|
const StaffResource = Resource.define({
|
|
41990
42304
|
model: StaffModel$2,
|
|
41991
42305
|
collection: {
|
|
@@ -42026,6 +42340,10 @@ const StaffResource = Resource.define({
|
|
|
42026
42340
|
staffAccessSingle: {
|
|
42027
42341
|
path: "/pengawas/staffs/:slug",
|
|
42028
42342
|
component: StaffSingleAccessView
|
|
42343
|
+
},
|
|
42344
|
+
staffEvent: {
|
|
42345
|
+
path: "/acara/staffs",
|
|
42346
|
+
component: StaffCollectionEventView
|
|
42029
42347
|
}
|
|
42030
42348
|
},
|
|
42031
42349
|
fragments: StaffModel$2.fragments,
|
|
@@ -43088,6 +43406,7 @@ const mod = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
43088
43406
|
SituationTypeResource,
|
|
43089
43407
|
SituationTypeSingleView,
|
|
43090
43408
|
StaffCollectionAccessView,
|
|
43409
|
+
StaffCollectionEventView,
|
|
43091
43410
|
StaffCollectionOperasionalView,
|
|
43092
43411
|
StaffCollectionView,
|
|
43093
43412
|
StaffResource,
|
package/build/module.json
CHANGED
package/build/nuxt.json
CHANGED