@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.4 → 2.3.7-dev.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-guard-v2-schemas",
3
- "version": "2.3.7-dev.4",
3
+ "version": "2.3.7-dev.6",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -555,7 +555,7 @@ export default class OperationResult extends Operation {
555
555
  );
556
556
  }
557
557
  this.customerId = siteInstance.customerId;
558
- this.agreement = siteInstance.getCurrentAgreement(this);
558
+ this.agreement = siteInstance.getAgreement(this);
559
559
  }
560
560
 
561
561
  /**
@@ -695,18 +695,12 @@ export default class SiteOperationSchedule extends Operation {
695
695
  return this[prop].map((w) => {
696
696
  const notification = notifications[w.notificationKey];
697
697
  if (!notification) return w;
698
- const {
699
- actualStartTime: startTime,
700
- actualEndTime: endTime,
701
- actualBreakMinutes: breakMinutes,
702
- actualIsStartNextDay: isStartNextDay,
703
- } = notification;
704
698
  return new SiteOperationScheduleDetail({
705
699
  ...w.toObject(),
706
- startTime,
707
- endTime,
708
- breakMinutes,
709
- isStartNextDay,
700
+ startTime: notification.actualStartTime,
701
+ endTime: notification.actualEndTime,
702
+ breakMinutes: notification.actualBreakMinutes,
703
+ isStartNextDay: notification.actualIsStartNextDay,
710
704
  });
711
705
  });
712
706
  };
@@ -718,10 +712,10 @@ export default class SiteOperationSchedule extends Operation {
718
712
  ...this.toObject(),
719
713
  employees,
720
714
  outsourcers,
721
- agreement: agreement || null,
715
+ // agreement: agreement || null,
722
716
  siteOperationScheduleId: this.docId,
723
717
  });
724
- operationResult.refreshBillingDateAt();
718
+ // operationResult.refreshBillingDateAt();
725
719
  await this.constructor.runTransaction(async (transaction) => {
726
720
  const docRef = await operationResult.create({
727
721
  docId: this.docId,