@tachybase/module-cron 0.23.58 → 1.0.18

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.
@@ -33,4 +33,4 @@
33
33
  }
34
34
  }
35
35
  }
36
- `,children:[a.jsx(U.Select,{value:o,onChange:n,className:"auto-width",options:Ye.map(i=>({value:i.value,label:r(i.text)}))}),o&&!isNaN(+o)?a.jsx(To,{value:e,onChange:t}):null,o==="cron"?a.jsx(Mo,{value:e.trim().split(/\s+/).slice(1).join(" "),setValue:i=>t(`0 ${i}`),clearButton:!1,locale:u}):null]})}const _e={name:{type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.name","x-component-props":{}},enabled:{type:"boolean","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.enabled","x-component-props":{}},description:{type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.description","x-component-props":{}},workflowKey:{type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.workflowKey"},startsOn:{type:"DateTime","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.startsOn","x-component-props":{}},repeat:{type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.repeat","x-component-props":{},"x-reactions":[{target:"endsOn",fulfill:{state:{visible:"{{!!$self.value}}"}}},{target:"limit",fulfill:{state:{visible:"{{!!$self.value}}"}}}]},endsOn:{type:"DateTime","x-component":"EndsByField","x-decorator":"FormItem","x-collection-field":"cronJobs.endsOn","x-component-props":{}},limit:{type:"number","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.limit","x-component-props":{}}},Eo={type:"void","x-acl-action-props":{skipScopeCheck:!0},"x-acl-action":"cronJobs:create","x-decorator":"FormBlockProvider","x-use-decorator-props":"useCreateFormBlockDecoratorProps","x-decorator-props":{dataSource:"main",collection:"cronJobs"},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":"useCreateFormBlockProps",properties:L({actionBar:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:"var(--tb-spacing)"}},properties:{submit:{title:'{{t("Submit")}}',"x-action":"submit","x-component":"Action","x-use-component-props":"useCreateActionProps","x-component-props":{type:"primary",htmlType:"submit"},type:"void"}}}},_e)}}},jo={type:"void","x-action":"create","x-acl-action":"create",title:"{{t('Add new')}}","x-component":"Action","x-decorator":"ACLActionProvider","x-component-props":{openMode:"drawer",type:"primary",component:"CreateRecordAction",icon:"PlusOutlined"},"x-align":"right","x-acl-action-props":{skipScopeCheck:!0},properties:{drawer:{type:"void",title:'{{ t("Add record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{form:Eo}}}},Vo={type:"void",title:'{{ t("Edit") }}',"x-action":"update","x-component":"Action.Link","x-component-props":{openMode:"drawer",icon:"EditOutlined"},"x-decorator":"ACLActionProvider",properties:{drawer:{type:"void",title:'{{ t("Edit record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{card:{type:"void","x-acl-action-props":{skipScopeCheck:!1},"x-acl-action":"cronJobs:update","x-decorator":"FormBlockProvider","x-use-decorator-props":"useEditFormBlockDecoratorProps","x-decorator-props":{action:"get",dataSource:"main",collection:"cronJobs"},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":"useEditFormBlockProps",properties:L({actionBar:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:"var(--tb-spacing)"}},properties:{submit:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useUpdateActionProps","x-component-props":{type:"primary",htmlType:"submit"},"x-action-settings":{triggerWorkflows:[],onSuccess:{manualClose:!1,redirecting:!1,successMessage:'{{t("Updated successfully")}}'},isDeltaChanged:!1},type:"void"}}}},_e)}}}}}}},Bo={type:"void",properties:{table:{type:"void","x-decorator":"TableBlockProvider","x-acl-action":"cronJobs:list","x-use-decorator-props":"useTableBlockDecoratorProps","x-decorator-props":{collection:"cronJobs",dataSource:"main",action:"list",params:{pageSize:20},rowKey:"id",showIndex:!0,dragSort:!1},"x-component":"CardItem","x-filter-targets":[],properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:"var(--tb-spacing)"}},properties:{refresh:{type:"void",title:'{{ t("Refresh") }}',"x-action":"refresh","x-component":"Action","x-settings":"actionSettings:refresh","x-component-props":{icon:"ReloadOutlined"},"x-use-component-props":"useRefreshActionProps"},create:jo}},table:{type:"array","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"}},properties:{name:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{name:{"x-collection-field":"cronJobs.name","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},enabled:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{enabled:{"x-collection-field":"cronJobs.enabled","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},workflowKeyColumn:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{workflowKey:{"x-collection-field":"cronJobs.workflowKey","x-component":"CollectionField","x-read-pretty":!0,"x-decorator":"OpenDrawer","x-decorator-props":{component:function({children:t,onClick:r}){const o=d.useCollectionRecordData();return a.jsxs(U.Space,{size:"small",children:[t,o.workflowKey?a.jsxs(U.Button,{type:"link",onClick:r,style:{padding:0,marginLeft:"-4px"},children:["(",ee("View executions"),")"]}):null]})}},properties:{drawer:T.executionSchema}}}},lastTime:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{lastTime:{"x-collection-field":"cronJobs.lastTime","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},nextTime:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{nextTime:{"x-collection-field":"cronJobs.nextTime","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},allExecuted:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{allExecuted:{"x-collection-field":"cronJobs.allExecuted","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},limit:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{limit:{"x-collection-field":"cronJobs.limit","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},limitExecuted:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{limitExecuted:{"x-collection-field":"cronJobs.limitExecuted","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},actions:{type:"void",title:'{{ t("Actions") }}',"x-action-column":"actions","x-decorator":"TableV2.Column.ActionBar","x-component":"TableV2.Column","x-component-props":{width:100,fixed:"right"},properties:{actions:{type:"void","x-component":"Space",properties:{editAction:Vo,delete:{type:"void",title:"Delete","x-action":"destroy","x-component":"Action.Link","x-component-props":{confirm:{title:"Delete",content:"Are you sure you want to delete it?"}},"x-decorator":"ACLActionProvider","x-use-component-props":"useDestroyActionProps"},clear:{type:"void",title:ho("Clear current times"),"x-action":"clearLimit","x-component":"Action.Link","x-component-props":{confirm:{title:"Clear",content:"Are you sure you want to clear current times?"}},"x-decorator":"ACLActionProvider","x-use-component-props":()=>{const{refresh:e}=d.useDataBlockRequest(),t=d.useDataBlockResource(),r=d.useRecord();return{onClick(){return de(this,null,function*(){yield t.clearLimitExecuted({id:r.id}),e()})}}}}}}}}}}}}}},Io=o=>{var n=o,{params:e,filter:t={}}=n,r=Pe(n,["params","filter"]);const u=d.useCollectionRecordData(),i=G(L({},r),{params:G(L({},e),{filter:G(L({},e==null?void 0:e.filter),{key:u.workflowKey})})});return a.jsx(d.TableBlockProvider,L({},i))},Jo=()=>a.jsx(d.ExtendCollectionsProvider,{collections:[fo],children:a.jsx(d.SchemaComponent,{schema:Bo,name:"cron-jobs-table",components:{OnField:je,RepeatField:Po,EndsByField:go,ExecutionResourceProvider:Io,ExecutionLink:T.ExecutionLink,ExecutionStatusColumn:T.ExecutionStatusColumn,OpenDrawer:T.OpenDrawer},scope:{ExecutionRetryAction:T.ExecutionRetryAction}})});class Ge extends d.Plugin{afterAdd(){return de(this,null,function*(){})}beforeLoad(){return de(this,null,function*(){})}load(){return de(this,null,function*(){this.app.systemSettingsManager.add("system-services."+O,{title:this.t("Cron job"),icon:"ScheduleOutlined",Component:Jo,sort:-15})})}}v.ModuleCronJobClient=Ge,v.default=Ge,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
36
+ `,children:[a.jsx(U.Select,{value:o,onChange:n,className:"auto-width",options:Ye.map(i=>({value:i.value,label:r(i.text)}))}),o&&!isNaN(+o)?a.jsx(To,{value:e,onChange:t}):null,o==="cron"?a.jsx(Mo,{value:e.trim().split(/\s+/).slice(1).join(" "),setValue:i=>t(`0 ${i}`),clearButton:!1,locale:u}):null]})}const _e={name:{type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.name","x-component-props":{}},enabled:{type:"boolean","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.enabled","x-component-props":{}},description:{type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.description","x-component-props":{}},workflowKey:{type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.workflowKey"},startsOn:{type:"DateTime","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.startsOn","x-component-props":{}},repeat:{type:"string","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.repeat","x-component-props":{},"x-reactions":[{target:"endsOn",fulfill:{state:{visible:"{{!!$self.value}}"}}},{target:"limit",fulfill:{state:{visible:"{{!!$self.value}}"}}}]},endsOn:{type:"DateTime","x-component":"EndsByField","x-decorator":"FormItem","x-collection-field":"cronJobs.endsOn","x-component-props":{}},limit:{type:"number","x-component":"CollectionField","x-decorator":"FormItem","x-collection-field":"cronJobs.limit","x-component-props":{}}},Eo={type:"void","x-acl-action-props":{skipScopeCheck:!0},"x-acl-action":"cronJobs:create","x-decorator":"FormBlockProvider","x-use-decorator-props":"useCreateFormBlockDecoratorProps","x-decorator-props":{dataSource:"main",collection:"cronJobs"},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":"useCreateFormBlockProps",properties:L({actionBar:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:"var(--tb-spacing)"}},properties:{submit:{title:'{{t("Submit")}}',"x-action":"submit","x-component":"Action","x-use-component-props":"useCreateActionProps","x-component-props":{type:"primary",htmlType:"submit"},type:"void"}}}},_e)}}},jo={type:"void","x-action":"create","x-acl-action":"create",title:"{{t('Add new')}}","x-component":"Action","x-decorator":"ACLActionProvider","x-component-props":{openMode:"drawer",type:"primary",component:"CreateRecordAction",icon:"PlusOutlined"},"x-align":"right","x-acl-action-props":{skipScopeCheck:!0},properties:{drawer:{type:"void",title:'{{ t("Add record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{form:Eo}}}},Vo={type:"void",title:'{{ t("Edit") }}',"x-action":"update","x-component":"Action.Link","x-component-props":{openMode:"drawer",icon:"EditOutlined"},"x-decorator":"ACLActionProvider",properties:{drawer:{type:"void",title:'{{ t("Edit record") }}',"x-component":"Action.Container","x-component-props":{className:"tb-action-popup"},properties:{card:{type:"void","x-acl-action-props":{skipScopeCheck:!1},"x-acl-action":"cronJobs:update","x-decorator":"FormBlockProvider","x-use-decorator-props":"useEditFormBlockDecoratorProps","x-decorator-props":{action:"get",dataSource:"main",collection:"cronJobs"},"x-component":"CardItem",properties:{form:{type:"void","x-component":"FormV2","x-use-component-props":"useEditFormBlockProps",properties:L({actionBar:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:"var(--tb-spacing)"}},properties:{submit:{title:'{{ t("Submit") }}',"x-action":"submit","x-component":"Action","x-use-component-props":"useUpdateActionProps","x-component-props":{type:"primary",htmlType:"submit"},"x-action-settings":{triggerWorkflows:[],onSuccess:{manualClose:!1,redirecting:!1,successMessage:'{{t("Updated successfully")}}'},isDeltaChanged:!1},type:"void"}}}},_e)}}}}}}},Bo={type:"void",properties:{table:{type:"void","x-decorator":"TableBlockProvider","x-acl-action":"cronJobs:list","x-use-decorator-props":"useTableBlockDecoratorProps","x-decorator-props":{collection:"cronJobs",dataSource:"main",action:"list",params:{pageSize:20},rowKey:"id",showIndex:!0,dragSort:!1},"x-component":"CardItem","x-filter-targets":[],properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:"var(--tb-spacing)"}},properties:{refresh:{type:"void",title:'{{ t("Refresh") }}',"x-action":"refresh","x-component":"Action","x-settings":"actionSettings:refresh","x-component-props":{icon:"ReloadOutlined"},"x-use-component-props":"useRefreshActionProps"},create:jo}},table:{type:"array","x-component":"TableV2","x-use-component-props":"useTableBlockProps","x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"}},properties:{name:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{name:{"x-collection-field":"cronJobs.name","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},enabled:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{enabled:{"x-collection-field":"cronJobs.enabled","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},workflowKeyColumn:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{workflowKey:{"x-collection-field":"cronJobs.workflowKey","x-component":"CollectionField","x-read-pretty":!0,"x-decorator":"OpenDrawer","x-decorator-props":{component:function({children:t,onClick:r}){const o=d.useCollectionRecordData();return a.jsxs(U.Space,{size:"small",children:[t,o.workflowKey?a.jsxs(U.Button,{type:"link",onClick:r,style:{padding:0,marginLeft:"-4px"},children:["(",ee("View executions"),")"]}):null]})}},properties:{drawer:T.executionSchema}}}},lastTime:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{lastTime:{"x-collection-field":"cronJobs.lastTime","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},nextTime:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column",properties:{nextTime:{"x-collection-field":"cronJobs.nextTime","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},allExecuted:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{allExecuted:{"x-collection-field":"cronJobs.allExecuted","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},limit:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{limit:{"x-collection-field":"cronJobs.limit","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},limitExecuted:{type:"void","x-decorator":"TableV2.Column.Decorator","x-component":"TableV2.Column","x-component-props":{width:20},properties:{limitExecuted:{"x-collection-field":"cronJobs.limitExecuted","x-component":"CollectionField","x-component-props":{ellipsis:!0},"x-read-pretty":!0,"x-decorator":null,"x-decorator-props":{labelStyle:{display:"none"}}}}},actions:{type:"void",title:'{{ t("Actions") }}',"x-action-column":"actions","x-decorator":"TableV2.Column.ActionBar","x-component":"TableV2.Column","x-component-props":{width:100,fixed:"right"},properties:{actions:{type:"void","x-component":"Space",properties:{editAction:Vo,delete:{type:"void",title:"Delete","x-action":"destroy","x-component":"Action.Link","x-component-props":{confirm:{title:"Delete",content:"Are you sure you want to delete it?"}},"x-decorator":"ACLActionProvider","x-use-component-props":"useDestroyActionProps"},clear:{type:"void",title:ho("Clear current times"),"x-action":"clearLimit","x-component":"Action.Link","x-component-props":{confirm:{title:"Clear",content:"Are you sure you want to clear current times?"}},"x-decorator":"ACLActionProvider","x-use-component-props":()=>{const{refresh:e}=d.useDataBlockRequest(),t=d.useDataBlockResource(),r=d.useRecord();return{onClick(){return de(this,null,function*(){yield t.clearLimitExecuted({id:r.id}),e()})}}}}}}}}}}}}}},Io=o=>{var n=o,{params:e,filter:t={}}=n,r=Pe(n,["params","filter"]);const u=d.useCollectionRecordData(),i=G(L({},r),{params:G(L({},e),{filter:G(L({},e==null?void 0:e.filter),{key:u.workflowKey})})});return a.jsx(d.TableBlockProvider,L({},i))},Jo=()=>a.jsx(d.ExtendCollectionsProvider,{collections:[fo],children:a.jsx(d.SchemaComponent,{schema:Bo,name:"cron-jobs-table",components:{OnField:je,RepeatField:Po,EndsByField:go,ExecutionResourceProvider:Io,ExecutionLink:T.ExecutionLink,ExecutionStatusColumn:T.ExecutionStatusColumn,OpenDrawer:T.OpenDrawer},scope:{ExecutionRetryAction:T.ExecutionRetryAction}})});class Ge extends d.Plugin{afterAdd(){return de(this,null,function*(){})}beforeLoad(){return de(this,null,function*(){})}load(){return de(this,null,function*(){this.app.systemSettingsManager.add("system-services."+O,{title:this.t("Cron job"),icon:"ScheduleOutlined",Component:Jo,sort:-15,aclSnippet:"pm.system-services.cron"})})}}v.ModuleCronJobClient=Ge,v.default=Ge,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,11 +1,11 @@
1
1
  module.exports = {
2
- "@tachybase/client": "0.23.58",
3
- "@tachybase/database": "0.23.58",
4
- "@tachybase/server": "0.23.58",
2
+ "@tachybase/client": "1.0.18",
3
+ "@tachybase/database": "1.0.18",
4
+ "@tachybase/server": "1.0.18",
5
5
  "react": "18.3.1",
6
- "@tachybase/utils": "0.23.58",
6
+ "@tachybase/utils": "1.0.18",
7
7
  "antd": "5.22.5",
8
- "@tachybase/schema": "0.23.58",
9
- "@tachybase/module-workflow": "0.23.58",
10
- "@tachybase/actions": "0.23.58"
8
+ "@tachybase/schema": "1.0.18",
9
+ "@tachybase/module-workflow": "1.0.18",
10
+ "@tachybase/actions": "1.0.18"
11
11
  };
@@ -1 +1 @@
1
- {"name":"cron-parser","version":"4.9.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"types/index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^3.2.1"},"devDependencies":{"eslint":"^8.27.0","sinon":"^15.0.1","tap":"^16.3.3","tsd":"^0.26.0"},"engines":{"node":">=12.0.0"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"files":["lib","types","LICENSE","README.md"],"_lastModified":"2025-03-06T10:03:15.699Z"}
1
+ {"name":"cron-parser","version":"4.9.0","description":"Node.js library for parsing crontab instructions","main":"lib/parser.js","types":"types/index.d.ts","typesVersions":{"<4.1":{"*":["types/ts3/*"]}},"directories":{"test":"test"},"scripts":{"test:tsd":"tsd","test:unit":"TZ=UTC tap ./test/*.js","test:cover":"TZ=UTC tap --coverage-report=html ./test/*.js","lint":"eslint .","lint:fix":"eslint --fix .","test":"npm run lint && npm run test:unit && npm run test:tsd"},"repository":{"type":"git","url":"https://github.com/harrisiirak/cron-parser.git"},"keywords":["cron","crontab","parser"],"author":"Harri Siirak","contributors":["Nicholas Clawson","Daniel Prentis <daniel@salsitasoft.com>","Renault John Lecoultre","Richard Astbury <richard.astbury@gmail.com>","Meaglin Wasabi <Meaglin.wasabi@gmail.com>","Mike Kusold <hello@mikekusold.com>","Alex Kit <alex.kit@atmajs.com>","Santiago Gimeno <santiago.gimeno@gmail.com>","Daniel <darc.tec@gmail.com>","Christian Steininger <christian.steininger.cs@gmail.com>","Mykola Piskovyi <m.piskovyi@gmail.com>","Brian Vaughn <brian.david.vaughn@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Yasuhiroki <yasuhiroki.duck@gmail.com>","Nicholas Clawson <nickclaw@gmail.com>","Brendan Warkentin <faazshift@gmail.com>","Charlie Fish <fishcharlie.code@gmail.com>","Ian Graves <ian+diskimage@iangrav.es>","Andy Thompson <me@andytson.com>","Regev Brody <regevbr@gmail.com>"],"license":"MIT","dependencies":{"luxon":"^3.2.1"},"devDependencies":{"eslint":"^8.27.0","sinon":"^15.0.1","tap":"^16.3.3","tsd":"^0.26.0"},"engines":{"node":">=12.0.0"},"browser":{"fs":false},"tap":{"check-coverage":false},"tsd":{"directory":"test","compilerOptions":{"lib":["es2017","dom"]}},"files":["lib","types","LICENSE","README.md"],"_lastModified":"2025-04-18T20:38:09.141Z"}
@@ -84,6 +84,10 @@ class PluginCronJobServer extends (_a = import_server.Plugin) {
84
84
  });
85
85
  }
86
86
  async load() {
87
+ this.app.acl.registerSnippet({
88
+ name: "pm.system-services.cron",
89
+ actions: ["cronJobs:*"]
90
+ });
87
91
  }
88
92
  async install() {
89
93
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/module-cron",
3
3
  "displayName": "Cron job",
4
- "version": "0.23.58",
4
+ "version": "1.0.18",
5
5
  "description": "Schedule tasks to run at specific times, using a workflow approach",
6
6
  "main": "dist/server/index.js",
7
7
  "dependencies": {},
@@ -11,14 +11,14 @@
11
11
  "react-js-cron": "^3.2.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@tachybase/actions": "0.23.58",
15
- "@tachybase/database": "0.23.58",
16
- "@tachybase/client": "0.23.58",
17
- "@tachybase/module-workflow": "0.23.58",
18
- "@tachybase/schema": "0.23.58",
19
- "@tachybase/test": "0.23.58",
20
- "@tachybase/utils": "0.23.58",
21
- "@tachybase/server": "0.23.58"
14
+ "@tachybase/actions": "1.0.18",
15
+ "@tachybase/client": "1.0.18",
16
+ "@tachybase/database": "1.0.18",
17
+ "@tachybase/schema": "1.0.18",
18
+ "@tachybase/module-workflow": "1.0.18",
19
+ "@tachybase/test": "1.0.18",
20
+ "@tachybase/utils": "1.0.18",
21
+ "@tachybase/server": "1.0.18"
22
22
  },
23
23
  "description.zh-CN": "安排任务在特定时间运行,采用工作流的方式",
24
24
  "displayName.zh-CN": "定时任务",