@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/office/index.cjs
CHANGED
|
@@ -12965,7 +12965,7 @@ const CheckInModel = model$1.Model.define({
|
|
|
12965
12965
|
// 'neu:internalStudent',
|
|
12966
12966
|
// 'neu:teacher',
|
|
12967
12967
|
// ],
|
|
12968
|
-
search: [],
|
|
12968
|
+
search: ["nameStaff"],
|
|
12969
12969
|
cover: {
|
|
12970
12970
|
title: "",
|
|
12971
12971
|
fragment: {
|
|
@@ -13003,6 +13003,7 @@ const CheckInModel = model$1.Model.define({
|
|
|
13003
13003
|
"student",
|
|
13004
13004
|
"staff",
|
|
13005
13005
|
"teacher",
|
|
13006
|
+
"branch",
|
|
13006
13007
|
"building",
|
|
13007
13008
|
"type",
|
|
13008
13009
|
"checkInAt",
|
|
@@ -13012,6 +13013,7 @@ const CheckInModel = model$1.Model.define({
|
|
|
13012
13013
|
"student",
|
|
13013
13014
|
"staff",
|
|
13014
13015
|
"teacher",
|
|
13016
|
+
"branch",
|
|
13015
13017
|
"building",
|
|
13016
13018
|
"type",
|
|
13017
13019
|
"checkInAt",
|
|
@@ -13083,12 +13085,12 @@ const CheckInModel = model$1.Model.define({
|
|
|
13083
13085
|
}),
|
|
13084
13086
|
branch: model$1.Field.define({
|
|
13085
13087
|
handle: "branch",
|
|
13086
|
-
name: "
|
|
13088
|
+
name: "Cabang Utama",
|
|
13087
13089
|
type: "relation",
|
|
13088
13090
|
input: "relation",
|
|
13089
13091
|
options: {
|
|
13090
|
-
note: "
|
|
13091
|
-
placeholder: "
|
|
13092
|
+
note: "Cabang utama dari karyawan.",
|
|
13093
|
+
placeholder: "Cabang utama...",
|
|
13092
13094
|
isQuery: true,
|
|
13093
13095
|
isPersisted: true
|
|
13094
13096
|
},
|
|
@@ -13286,6 +13288,31 @@ const CheckInModel = model$1.Model.define({
|
|
|
13286
13288
|
}
|
|
13287
13289
|
}
|
|
13288
13290
|
}
|
|
13291
|
+
}),
|
|
13292
|
+
nameStaff: model$1.Field.define({
|
|
13293
|
+
handle: "nameStaff",
|
|
13294
|
+
name: "Nama Karyawan",
|
|
13295
|
+
type: "string",
|
|
13296
|
+
input: "short-text",
|
|
13297
|
+
options: {
|
|
13298
|
+
note: "Nama Karyawan.",
|
|
13299
|
+
isQuery: true,
|
|
13300
|
+
isPersisted: true
|
|
13301
|
+
},
|
|
13302
|
+
query: {
|
|
13303
|
+
dependency: {
|
|
13304
|
+
staff: {
|
|
13305
|
+
_id: 1,
|
|
13306
|
+
name: 1
|
|
13307
|
+
}
|
|
13308
|
+
},
|
|
13309
|
+
reduce: async (o) => {
|
|
13310
|
+
var _a;
|
|
13311
|
+
if (!(o == null ? void 0 : o.staff))
|
|
13312
|
+
return "";
|
|
13313
|
+
return (_a = o.staff) == null ? void 0 : _a.name.toString().toLowerCase();
|
|
13314
|
+
}
|
|
13315
|
+
}
|
|
13289
13316
|
})
|
|
13290
13317
|
},
|
|
13291
13318
|
fragments: {
|
|
@@ -13307,7 +13334,9 @@ const CheckInModel = model$1.Model.define({
|
|
|
13307
13334
|
statusGPS: 1,
|
|
13308
13335
|
createdAt: 1,
|
|
13309
13336
|
updatedAt: 1,
|
|
13310
|
-
syncedAt: 1
|
|
13337
|
+
syncedAt: 1,
|
|
13338
|
+
branch: { id: 1, name: 1 },
|
|
13339
|
+
nameStaff: 1
|
|
13311
13340
|
},
|
|
13312
13341
|
detail: {
|
|
13313
13342
|
id: 1,
|
|
@@ -13331,7 +13360,10 @@ const CheckInModel = model$1.Model.define({
|
|
|
13331
13360
|
studentId: 1,
|
|
13332
13361
|
teacherId: 1,
|
|
13333
13362
|
staffId: 1,
|
|
13334
|
-
buildingId: 1
|
|
13363
|
+
buildingId: 1,
|
|
13364
|
+
branch: { id: 1, name: 1 },
|
|
13365
|
+
branchId: 1,
|
|
13366
|
+
nameStaff: 1
|
|
13335
13367
|
},
|
|
13336
13368
|
fluffy: {}
|
|
13337
13369
|
}
|
|
@@ -14114,6 +14146,22 @@ const StatusWork = model$1.Choice.define({
|
|
|
14114
14146
|
}
|
|
14115
14147
|
]
|
|
14116
14148
|
});
|
|
14149
|
+
const StatusKubik = model$1.Choice.define({
|
|
14150
|
+
handle: "statusKubik",
|
|
14151
|
+
name: "Kubik Status",
|
|
14152
|
+
items: [
|
|
14153
|
+
{
|
|
14154
|
+
label: "Belum Hadir",
|
|
14155
|
+
value: "notYetAttend",
|
|
14156
|
+
color: "danger"
|
|
14157
|
+
},
|
|
14158
|
+
{
|
|
14159
|
+
label: "Hadir",
|
|
14160
|
+
value: "attend",
|
|
14161
|
+
color: "success"
|
|
14162
|
+
}
|
|
14163
|
+
]
|
|
14164
|
+
});
|
|
14117
14165
|
const PriorityStatus = model$1.Choice.define({
|
|
14118
14166
|
handle: "priorityStatus",
|
|
14119
14167
|
name: "Priority Status",
|
|
@@ -18507,7 +18555,7 @@ const StaffModel$1 = model$1.Model.define({
|
|
|
18507
18555
|
input: "select",
|
|
18508
18556
|
options: {
|
|
18509
18557
|
note: "Status dari karyawan.",
|
|
18510
|
-
default: "
|
|
18558
|
+
default: "off",
|
|
18511
18559
|
enums: StatusWork.values,
|
|
18512
18560
|
choices: StatusWork.items,
|
|
18513
18561
|
isVirtual: true,
|
|
@@ -18602,7 +18650,6 @@ const StaffModel$1 = model$1.Model.define({
|
|
|
18602
18650
|
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18603
18651
|
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > todayDate
|
|
18604
18652
|
);
|
|
18605
|
-
console.log({ checkInAtCome });
|
|
18606
18653
|
if (!checkInAtCome.length) {
|
|
18607
18654
|
return null;
|
|
18608
18655
|
} else {
|
|
@@ -18742,6 +18789,100 @@ const StaffModel$1 = model$1.Model.define({
|
|
|
18742
18789
|
}
|
|
18743
18790
|
}
|
|
18744
18791
|
}
|
|
18792
|
+
}),
|
|
18793
|
+
/* EVENT KUBIK */
|
|
18794
|
+
kubikStatus: model$1.Field.define({
|
|
18795
|
+
handle: "kubikStatus",
|
|
18796
|
+
name: "Status Kehadiran",
|
|
18797
|
+
type: "string",
|
|
18798
|
+
input: "select",
|
|
18799
|
+
options: {
|
|
18800
|
+
note: "Status kehadiran acara.",
|
|
18801
|
+
default: "notYetAttend",
|
|
18802
|
+
enums: StatusKubik.values,
|
|
18803
|
+
choices: StatusKubik.items,
|
|
18804
|
+
isVirtual: true,
|
|
18805
|
+
isPersisted: true
|
|
18806
|
+
},
|
|
18807
|
+
virtual: {
|
|
18808
|
+
dependency: {
|
|
18809
|
+
checkIns: {
|
|
18810
|
+
_id: 1,
|
|
18811
|
+
type: 1,
|
|
18812
|
+
checkInAt: 1,
|
|
18813
|
+
buildingId: 1
|
|
18814
|
+
}
|
|
18815
|
+
},
|
|
18816
|
+
reduce(o) {
|
|
18817
|
+
var _a;
|
|
18818
|
+
if (!o.checkIns.length)
|
|
18819
|
+
return "notYetAttend";
|
|
18820
|
+
const sekarang = dayjs2("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
18821
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
18822
|
+
(field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
|
|
18823
|
+
);
|
|
18824
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
18825
|
+
(field) => field.buildingId == "65d2c2281feb875328d716ce"
|
|
18826
|
+
);
|
|
18827
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
18828
|
+
(field) => field.checkInAt != null
|
|
18829
|
+
);
|
|
18830
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18831
|
+
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
18832
|
+
);
|
|
18833
|
+
if (!checkInAtCome.length) {
|
|
18834
|
+
return "notYetAttend";
|
|
18835
|
+
} else {
|
|
18836
|
+
return "attend";
|
|
18837
|
+
}
|
|
18838
|
+
}
|
|
18839
|
+
}
|
|
18840
|
+
}),
|
|
18841
|
+
kubikAt: model$1.Field.define({
|
|
18842
|
+
handle: "kubikAt",
|
|
18843
|
+
name: "Waktu Kehadiran",
|
|
18844
|
+
type: "date",
|
|
18845
|
+
input: "date2",
|
|
18846
|
+
display: "date",
|
|
18847
|
+
options: {
|
|
18848
|
+
note: "Presensi masuk acara.",
|
|
18849
|
+
isVirtual: true,
|
|
18850
|
+
isPersisted: true
|
|
18851
|
+
},
|
|
18852
|
+
virtual: {
|
|
18853
|
+
dependency: {
|
|
18854
|
+
checkIns: {
|
|
18855
|
+
_id: 1,
|
|
18856
|
+
type: 1,
|
|
18857
|
+
checkInAt: 1,
|
|
18858
|
+
buildingId: 1
|
|
18859
|
+
}
|
|
18860
|
+
},
|
|
18861
|
+
reduce(o) {
|
|
18862
|
+
var _a, _b;
|
|
18863
|
+
if (!o.checkIns.length)
|
|
18864
|
+
return null;
|
|
18865
|
+
const sekarang = dayjs2("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
18866
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
18867
|
+
(field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
|
|
18868
|
+
);
|
|
18869
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
18870
|
+
(field) => field.buildingId == "65d2c2281feb875328d716ce"
|
|
18871
|
+
);
|
|
18872
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
18873
|
+
(field) => field.checkInAt != null
|
|
18874
|
+
);
|
|
18875
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18876
|
+
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
18877
|
+
);
|
|
18878
|
+
if (!checkInAtCome.length) {
|
|
18879
|
+
return null;
|
|
18880
|
+
} else {
|
|
18881
|
+
const resultCheckInCome = (_b = checkInAtCome[0]) == null ? void 0 : _b.checkInAt;
|
|
18882
|
+
return resultCheckInCome;
|
|
18883
|
+
}
|
|
18884
|
+
}
|
|
18885
|
+
}
|
|
18745
18886
|
})
|
|
18746
18887
|
},
|
|
18747
18888
|
fragments: {
|
|
@@ -18784,7 +18925,9 @@ const StaffModel$1 = model$1.Model.define({
|
|
|
18784
18925
|
workStatus: 1,
|
|
18785
18926
|
workCome: 1,
|
|
18786
18927
|
workHome: 1,
|
|
18787
|
-
workNote: 1
|
|
18928
|
+
workNote: 1,
|
|
18929
|
+
kubikStatus: 1,
|
|
18930
|
+
kubikAt: 1
|
|
18788
18931
|
},
|
|
18789
18932
|
detail: {
|
|
18790
18933
|
id: 1,
|
|
@@ -18829,7 +18972,9 @@ const StaffModel$1 = model$1.Model.define({
|
|
|
18829
18972
|
workStatus: 1,
|
|
18830
18973
|
workCome: 1,
|
|
18831
18974
|
workHome: 1,
|
|
18832
|
-
workNote: 1
|
|
18975
|
+
workNote: 1,
|
|
18976
|
+
kubikStatus: 1,
|
|
18977
|
+
kubikAt: 1
|
|
18833
18978
|
},
|
|
18834
18979
|
fluffy: {}
|
|
18835
18980
|
}
|
package/build/office/index.mjs
CHANGED
|
@@ -12963,7 +12963,7 @@ const CheckInModel = Model.define({
|
|
|
12963
12963
|
// 'neu:internalStudent',
|
|
12964
12964
|
// 'neu:teacher',
|
|
12965
12965
|
// ],
|
|
12966
|
-
search: [],
|
|
12966
|
+
search: ["nameStaff"],
|
|
12967
12967
|
cover: {
|
|
12968
12968
|
title: "",
|
|
12969
12969
|
fragment: {
|
|
@@ -13001,6 +13001,7 @@ const CheckInModel = Model.define({
|
|
|
13001
13001
|
"student",
|
|
13002
13002
|
"staff",
|
|
13003
13003
|
"teacher",
|
|
13004
|
+
"branch",
|
|
13004
13005
|
"building",
|
|
13005
13006
|
"type",
|
|
13006
13007
|
"checkInAt",
|
|
@@ -13010,6 +13011,7 @@ const CheckInModel = Model.define({
|
|
|
13010
13011
|
"student",
|
|
13011
13012
|
"staff",
|
|
13012
13013
|
"teacher",
|
|
13014
|
+
"branch",
|
|
13013
13015
|
"building",
|
|
13014
13016
|
"type",
|
|
13015
13017
|
"checkInAt",
|
|
@@ -13081,12 +13083,12 @@ const CheckInModel = Model.define({
|
|
|
13081
13083
|
}),
|
|
13082
13084
|
branch: Field.define({
|
|
13083
13085
|
handle: "branch",
|
|
13084
|
-
name: "
|
|
13086
|
+
name: "Cabang Utama",
|
|
13085
13087
|
type: "relation",
|
|
13086
13088
|
input: "relation",
|
|
13087
13089
|
options: {
|
|
13088
|
-
note: "
|
|
13089
|
-
placeholder: "
|
|
13090
|
+
note: "Cabang utama dari karyawan.",
|
|
13091
|
+
placeholder: "Cabang utama...",
|
|
13090
13092
|
isQuery: true,
|
|
13091
13093
|
isPersisted: true
|
|
13092
13094
|
},
|
|
@@ -13284,6 +13286,31 @@ const CheckInModel = Model.define({
|
|
|
13284
13286
|
}
|
|
13285
13287
|
}
|
|
13286
13288
|
}
|
|
13289
|
+
}),
|
|
13290
|
+
nameStaff: Field.define({
|
|
13291
|
+
handle: "nameStaff",
|
|
13292
|
+
name: "Nama Karyawan",
|
|
13293
|
+
type: "string",
|
|
13294
|
+
input: "short-text",
|
|
13295
|
+
options: {
|
|
13296
|
+
note: "Nama Karyawan.",
|
|
13297
|
+
isQuery: true,
|
|
13298
|
+
isPersisted: true
|
|
13299
|
+
},
|
|
13300
|
+
query: {
|
|
13301
|
+
dependency: {
|
|
13302
|
+
staff: {
|
|
13303
|
+
_id: 1,
|
|
13304
|
+
name: 1
|
|
13305
|
+
}
|
|
13306
|
+
},
|
|
13307
|
+
reduce: async (o) => {
|
|
13308
|
+
var _a;
|
|
13309
|
+
if (!(o == null ? void 0 : o.staff))
|
|
13310
|
+
return "";
|
|
13311
|
+
return (_a = o.staff) == null ? void 0 : _a.name.toString().toLowerCase();
|
|
13312
|
+
}
|
|
13313
|
+
}
|
|
13287
13314
|
})
|
|
13288
13315
|
},
|
|
13289
13316
|
fragments: {
|
|
@@ -13305,7 +13332,9 @@ const CheckInModel = Model.define({
|
|
|
13305
13332
|
statusGPS: 1,
|
|
13306
13333
|
createdAt: 1,
|
|
13307
13334
|
updatedAt: 1,
|
|
13308
|
-
syncedAt: 1
|
|
13335
|
+
syncedAt: 1,
|
|
13336
|
+
branch: { id: 1, name: 1 },
|
|
13337
|
+
nameStaff: 1
|
|
13309
13338
|
},
|
|
13310
13339
|
detail: {
|
|
13311
13340
|
id: 1,
|
|
@@ -13329,7 +13358,10 @@ const CheckInModel = Model.define({
|
|
|
13329
13358
|
studentId: 1,
|
|
13330
13359
|
teacherId: 1,
|
|
13331
13360
|
staffId: 1,
|
|
13332
|
-
buildingId: 1
|
|
13361
|
+
buildingId: 1,
|
|
13362
|
+
branch: { id: 1, name: 1 },
|
|
13363
|
+
branchId: 1,
|
|
13364
|
+
nameStaff: 1
|
|
13333
13365
|
},
|
|
13334
13366
|
fluffy: {}
|
|
13335
13367
|
}
|
|
@@ -14112,6 +14144,22 @@ const StatusWork = Choice.define({
|
|
|
14112
14144
|
}
|
|
14113
14145
|
]
|
|
14114
14146
|
});
|
|
14147
|
+
const StatusKubik = Choice.define({
|
|
14148
|
+
handle: "statusKubik",
|
|
14149
|
+
name: "Kubik Status",
|
|
14150
|
+
items: [
|
|
14151
|
+
{
|
|
14152
|
+
label: "Belum Hadir",
|
|
14153
|
+
value: "notYetAttend",
|
|
14154
|
+
color: "danger"
|
|
14155
|
+
},
|
|
14156
|
+
{
|
|
14157
|
+
label: "Hadir",
|
|
14158
|
+
value: "attend",
|
|
14159
|
+
color: "success"
|
|
14160
|
+
}
|
|
14161
|
+
]
|
|
14162
|
+
});
|
|
14115
14163
|
const PriorityStatus = Choice.define({
|
|
14116
14164
|
handle: "priorityStatus",
|
|
14117
14165
|
name: "Priority Status",
|
|
@@ -18505,7 +18553,7 @@ const StaffModel$1 = Model.define({
|
|
|
18505
18553
|
input: "select",
|
|
18506
18554
|
options: {
|
|
18507
18555
|
note: "Status dari karyawan.",
|
|
18508
|
-
default: "
|
|
18556
|
+
default: "off",
|
|
18509
18557
|
enums: StatusWork.values,
|
|
18510
18558
|
choices: StatusWork.items,
|
|
18511
18559
|
isVirtual: true,
|
|
@@ -18600,7 +18648,6 @@ const StaffModel$1 = Model.define({
|
|
|
18600
18648
|
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18601
18649
|
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > todayDate
|
|
18602
18650
|
);
|
|
18603
|
-
console.log({ checkInAtCome });
|
|
18604
18651
|
if (!checkInAtCome.length) {
|
|
18605
18652
|
return null;
|
|
18606
18653
|
} else {
|
|
@@ -18740,6 +18787,100 @@ const StaffModel$1 = Model.define({
|
|
|
18740
18787
|
}
|
|
18741
18788
|
}
|
|
18742
18789
|
}
|
|
18790
|
+
}),
|
|
18791
|
+
/* EVENT KUBIK */
|
|
18792
|
+
kubikStatus: Field.define({
|
|
18793
|
+
handle: "kubikStatus",
|
|
18794
|
+
name: "Status Kehadiran",
|
|
18795
|
+
type: "string",
|
|
18796
|
+
input: "select",
|
|
18797
|
+
options: {
|
|
18798
|
+
note: "Status kehadiran acara.",
|
|
18799
|
+
default: "notYetAttend",
|
|
18800
|
+
enums: StatusKubik.values,
|
|
18801
|
+
choices: StatusKubik.items,
|
|
18802
|
+
isVirtual: true,
|
|
18803
|
+
isPersisted: true
|
|
18804
|
+
},
|
|
18805
|
+
virtual: {
|
|
18806
|
+
dependency: {
|
|
18807
|
+
checkIns: {
|
|
18808
|
+
_id: 1,
|
|
18809
|
+
type: 1,
|
|
18810
|
+
checkInAt: 1,
|
|
18811
|
+
buildingId: 1
|
|
18812
|
+
}
|
|
18813
|
+
},
|
|
18814
|
+
reduce(o) {
|
|
18815
|
+
var _a;
|
|
18816
|
+
if (!o.checkIns.length)
|
|
18817
|
+
return "notYetAttend";
|
|
18818
|
+
const sekarang = dayjs2("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
18819
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
18820
|
+
(field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
|
|
18821
|
+
);
|
|
18822
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
18823
|
+
(field) => field.buildingId == "65d2c2281feb875328d716ce"
|
|
18824
|
+
);
|
|
18825
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
18826
|
+
(field) => field.checkInAt != null
|
|
18827
|
+
);
|
|
18828
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18829
|
+
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
18830
|
+
);
|
|
18831
|
+
if (!checkInAtCome.length) {
|
|
18832
|
+
return "notYetAttend";
|
|
18833
|
+
} else {
|
|
18834
|
+
return "attend";
|
|
18835
|
+
}
|
|
18836
|
+
}
|
|
18837
|
+
}
|
|
18838
|
+
}),
|
|
18839
|
+
kubikAt: Field.define({
|
|
18840
|
+
handle: "kubikAt",
|
|
18841
|
+
name: "Waktu Kehadiran",
|
|
18842
|
+
type: "date",
|
|
18843
|
+
input: "date2",
|
|
18844
|
+
display: "date",
|
|
18845
|
+
options: {
|
|
18846
|
+
note: "Presensi masuk acara.",
|
|
18847
|
+
isVirtual: true,
|
|
18848
|
+
isPersisted: true
|
|
18849
|
+
},
|
|
18850
|
+
virtual: {
|
|
18851
|
+
dependency: {
|
|
18852
|
+
checkIns: {
|
|
18853
|
+
_id: 1,
|
|
18854
|
+
type: 1,
|
|
18855
|
+
checkInAt: 1,
|
|
18856
|
+
buildingId: 1
|
|
18857
|
+
}
|
|
18858
|
+
},
|
|
18859
|
+
reduce(o) {
|
|
18860
|
+
var _a, _b;
|
|
18861
|
+
if (!o.checkIns.length)
|
|
18862
|
+
return null;
|
|
18863
|
+
const sekarang = dayjs2("2024-02-22T00:00:00.000Z").hour(0).minute(0).second(0).millisecond(0).toISOString();
|
|
18864
|
+
const arrCheckIn = (_a = o.checkIns) == null ? void 0 : _a.filter(
|
|
18865
|
+
(field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
|
|
18866
|
+
);
|
|
18867
|
+
const arrKubikCheckIn = arrCheckIn == null ? void 0 : arrCheckIn.filter(
|
|
18868
|
+
(field) => field.buildingId == "65d2c2281feb875328d716ce"
|
|
18869
|
+
);
|
|
18870
|
+
const checkInsNotNull = arrKubikCheckIn == null ? void 0 : arrKubikCheckIn.filter(
|
|
18871
|
+
(field) => field.checkInAt != null
|
|
18872
|
+
);
|
|
18873
|
+
const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
|
|
18874
|
+
(field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > sekarang
|
|
18875
|
+
);
|
|
18876
|
+
if (!checkInAtCome.length) {
|
|
18877
|
+
return null;
|
|
18878
|
+
} else {
|
|
18879
|
+
const resultCheckInCome = (_b = checkInAtCome[0]) == null ? void 0 : _b.checkInAt;
|
|
18880
|
+
return resultCheckInCome;
|
|
18881
|
+
}
|
|
18882
|
+
}
|
|
18883
|
+
}
|
|
18743
18884
|
})
|
|
18744
18885
|
},
|
|
18745
18886
|
fragments: {
|
|
@@ -18782,7 +18923,9 @@ const StaffModel$1 = Model.define({
|
|
|
18782
18923
|
workStatus: 1,
|
|
18783
18924
|
workCome: 1,
|
|
18784
18925
|
workHome: 1,
|
|
18785
|
-
workNote: 1
|
|
18926
|
+
workNote: 1,
|
|
18927
|
+
kubikStatus: 1,
|
|
18928
|
+
kubikAt: 1
|
|
18786
18929
|
},
|
|
18787
18930
|
detail: {
|
|
18788
18931
|
id: 1,
|
|
@@ -18827,7 +18970,9 @@ const StaffModel$1 = Model.define({
|
|
|
18827
18970
|
workStatus: 1,
|
|
18828
18971
|
workCome: 1,
|
|
18829
18972
|
workHome: 1,
|
|
18830
|
-
workNote: 1
|
|
18973
|
+
workNote: 1,
|
|
18974
|
+
kubikStatus: 1,
|
|
18975
|
+
kubikAt: 1
|
|
18831
18976
|
},
|
|
18832
18977
|
fluffy: {}
|
|
18833
18978
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neutron.co.id/operasional-interfaces",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.8",
|
|
4
4
|
"description": "Interface library of Neutron Operasional.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -176,5 +176,5 @@
|
|
|
176
176
|
"publishConfig": {
|
|
177
177
|
"access": "public"
|
|
178
178
|
},
|
|
179
|
-
"build":
|
|
179
|
+
"build": 151
|
|
180
180
|
}
|