@@ -28,9 +28,40 @@ const createPropertiesAndTypes = async ({
2828 } ) ;
2929 ops . push ( ...createAssigneesRelationTypeOps ) ;
3030
31+ const { id : duePropertyId , ops : createDuePropertyOps } = Graph . createProperty ( {
32+ type : 'TIME' ,
33+ name : 'Due' ,
34+ } ) ;
35+ ops . push ( ...createDuePropertyOps ) ;
36+
37+ const { id : pointPropertyId , ops : createPointPropertyOps } = Graph . createProperty ( {
38+ type : 'POINT' ,
39+ name : 'Point' ,
40+ } ) ;
41+ ops . push ( ...createPointPropertyOps ) ;
42+
43+ const { id : amountPropertyId , ops : createAmountPropertyOps } = Graph . createProperty ( {
44+ type : 'NUMBER' ,
45+ name : 'Amount' ,
46+ } ) ;
47+ ops . push ( ...createAmountPropertyOps ) ;
48+
49+ const { id : websitePropertyId , ops : createWebsitePropertyOps } = Graph . createProperty ( {
50+ type : 'URL' ,
51+ name : 'Website' ,
52+ } ) ;
53+ ops . push ( ...createWebsitePropertyOps ) ;
54+
3155 const { id : todoTypeId , ops : createTodoTypeOps } = Graph . createType ( {
3256 name : 'Todo' ,
33- properties : [ checkedPropertyId , assigneesRelationTypeId ] ,
57+ properties : [
58+ checkedPropertyId ,
59+ assigneesRelationTypeId ,
60+ duePropertyId ,
61+ pointPropertyId ,
62+ websitePropertyId ,
63+ amountPropertyId ,
64+ ] ,
3465 } ) ;
3566 ops . push ( ...createTodoTypeOps ) ;
3667
@@ -40,7 +71,17 @@ const createPropertiesAndTypes = async ({
4071 space,
4172 name : 'Create properties and types' ,
4273 } ) ;
43- return { result, todoTypeId, checkedPropertyId, userId, assigneesRelationTypeId } ;
74+ return {
75+ result,
76+ todoTypeId,
77+ checkedPropertyId,
78+ userId,
79+ assigneesRelationTypeId,
80+ duePropertyId,
81+ pointPropertyId,
82+ websitePropertyId,
83+ amountPropertyId,
84+ } ;
4485} ;
4586
4687export const CreatePropertiesAndTypes = ( ) => {
@@ -62,7 +103,16 @@ export const CreatePropertiesAndTypes = () => {
62103 if ( ! smartAccountWalletClient ) {
63104 throw new Error ( 'Missing smartAccountWalletClient' ) ;
64105 }
65- const { todoTypeId, checkedPropertyId, userId, assigneesRelationTypeId } = await createPropertiesAndTypes ( {
106+ const {
107+ todoTypeId,
108+ checkedPropertyId,
109+ userId,
110+ assigneesRelationTypeId,
111+ duePropertyId,
112+ pointPropertyId,
113+ websitePropertyId,
114+ amountPropertyId,
115+ } = await createPropertiesAndTypes ( {
66116 smartAccountWalletClient,
67117 space,
68118 } ) ;
@@ -72,6 +122,10 @@ export const CreatePropertiesAndTypes = () => {
72122 properties: {
73123 name: Id.Id('LuBWqZAu6pz54eiJS5mLv8'),
74124 checked: Id.Id('${ checkedPropertyId } '),
125+ due: Id.Id('${ duePropertyId } '),
126+ point: Id.Id('${ pointPropertyId } '),
127+ website: Id.Id('${ websitePropertyId } '),
128+ amount: Id.Id('${ amountPropertyId } '),
75129 },
76130 relations: {
77131 assignees: Id.Id('${ assigneesRelationTypeId } '),
0 commit comments