@shisyamo4131/air-guard-v2-schemas 1.3.1-dev.10 → 1.3.1-dev.11

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": "1.3.1-dev.10",
3
+ "version": "1.3.1-dev.11",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -505,11 +505,6 @@ export default class OperationResult extends Operation {
505
505
  * @returns {Promise<DocumentReference>}
506
506
  */
507
507
  async create(options = {}) {
508
- if (this.allowEmptyAgreement && !this.billingDateAt) {
509
- throw new Error(
510
- "[OperationResult] Billing date is required when 'allowEmptyAgreement' is true."
511
- );
512
- }
513
508
  return await super.create(options);
514
509
  }
515
510
 
@@ -525,11 +520,6 @@ export default class OperationResult extends Operation {
525
520
  "[OperationResult] This OperationResult is locked and cannot be edited."
526
521
  );
527
522
  }
528
- if (this.allowEmptyAgreement && !this.billingDateAt) {
529
- throw new Error(
530
- "[OperationResult] Billing date is required when 'allowEmptyAgreement' is true."
531
- );
532
- }
533
523
  return await super.update(options);
534
524
  }
535
525