@@ -24,7 +24,7 @@ describe('preparePublish', () => {
2424 name : Type . Text ,
2525 age : Type . Number ,
2626 email : Type . optional ( Type . Text ) ,
27- isActive : Type . Checkbox ,
27+ isActive : Type . Boolean ,
2828 birthDate : Type . Date ,
2929 location : Type . Point ,
3030 } ) { }
@@ -38,7 +38,7 @@ describe('preparePublish', () => {
3838 class OptionalFieldsEntity extends Entity . Class < OptionalFieldsEntity > ( 'OptionalFieldsEntity' ) ( {
3939 name : Type . Text , // required field
4040 optionalNumber : Type . optional ( Type . Number ) ,
41- optionalCheckbox : Type . optional ( Type . Checkbox ) ,
41+ optionalBoolean : Type . optional ( Type . Boolean ) ,
4242 optionalDate : Type . optional ( Type . Date ) ,
4343 optionalPoint : Type . optional ( Type . Point ) ,
4444 } ) { }
@@ -82,7 +82,7 @@ describe('preparePublish', () => {
8282 properties : {
8383 name : Id . Id ( '2a8b9c7d-4e5f-6a7b-8c9d-0e1f2a3b4c5d' ) ,
8484 optionalNumber : Id . Id ( 'eaf9f4f8-5647-4228-aff5-8725368fc87c' ) ,
85- optionalCheckbox : Id . Id ( '2742d8b6-3059-4adb-b439-fdfcd588dccb' ) ,
85+ optionalBoolean : Id . Id ( '2742d8b6-3059-4adb-b439-fdfcd588dccb' ) ,
8686 optionalDate : Id . Id ( '9b53690f-ea6d-4bd8-b4d3-9ea01e7f837f' ) ,
8787 optionalPoint : Id . Id ( '0c1d2e3f-4a5b-4c7d-8e9f-0a1b2c3d4e5f' ) ,
8888 } ,
@@ -405,7 +405,7 @@ describe('preparePublish', () => {
405405 type : 'OptionalFieldsEntity' ,
406406 name : 'Test Entity' ,
407407 optionalNumber : 42.5 ,
408- optionalCheckbox : true ,
408+ optionalBoolean : true ,
409409 optionalDate : new Date ( '2024-01-15' ) ,
410410 optionalPoint : [ 12.34 , 56.78 ] ,
411411 __schema : OptionalFieldsEntity ,
@@ -428,7 +428,7 @@ describe('preparePublish', () => {
428428 type : 'OptionalFieldsEntity' ,
429429 name : 'Test Entity' ,
430430 optionalNumber : 25 ,
431- // optionalCheckbox is undefined
431+ // optionalBoolean is undefined
432432 optionalDate : new Date ( '2024-02-20' ) ,
433433 // optionalPoint is undefined
434434 __schema : OptionalFieldsEntity ,
@@ -492,7 +492,7 @@ describe('preparePublish', () => {
492492 }
493493 } ) ;
494494
495- it ( 'should handle optional Checkbox field variations' , async ( ) => {
495+ it ( 'should handle optional Boolean field variations' , async ( ) => {
496496 const testCases = [
497497 { value : true , description : 'true' } ,
498498 { value : false , description : 'false' } ,
@@ -504,7 +504,7 @@ describe('preparePublish', () => {
504504 id : 'e68aa940-8452-48de-8523-292ba3771f81' ,
505505 type : 'OptionalFieldsEntity' ,
506506 name : `Test ${ testCase . description } ` ,
507- optionalCheckbox : testCase . value ,
507+ optionalBoolean : testCase . value ,
508508 __schema : OptionalFieldsEntity ,
509509 } as Entity . Entity < typeof OptionalFieldsEntity > ;
510510
@@ -605,7 +605,7 @@ describe('preparePublish', () => {
605605 type : 'OptionalFieldsEntity' ,
606606 name : 'Existing Entity' ,
607607 optionalNumber : 100 , // New field
608- optionalCheckbox : true , // New field
608+ optionalBoolean : true , // New field
609609 optionalDate : new Date ( '2024-03-15' ) , // New field
610610 optionalPoint : [ 45.0 , 90.0 ] , // New field
611611 __schema : OptionalFieldsEntity ,
@@ -671,7 +671,7 @@ describe('preparePublish', () => {
671671 type : 'OptionalFieldsEntity' ,
672672 name : 'Existing Entity' ,
673673 optionalNumber : 125 , // Changed from 75
674- // optionalCheckbox : undefined (not present, will remain undefined)
674+ // optionalBoolean : undefined (not present, will remain undefined)
675675 optionalDate : new Date ( '2023-01-01' ) , // Same as existing (no change)
676676 optionalPoint : [ 12.5 , 25.0 ] , // New field
677677 __schema : OptionalFieldsEntity ,
0 commit comments