File tree Expand file tree Collapse file tree 4 files changed +13
-18
lines changed
services/workflows-service Expand file tree Collapse file tree 4 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,9 @@ async function createCustomer(
112
112
options : {
113
113
reportType : 'ONGOING_MERCHANT_REPORT_T1' ,
114
114
runByDefault : true ,
115
- scheduleType : 'interval' ,
116
- intervalInDays : 30 ,
115
+ scheduleType : 'specific' ,
116
+ dayInMonth : 1 ,
117
+ monthInterval : 1 ,
117
118
proxyViaCountry : 'GB' ,
118
119
workflowVersion : '2' ,
119
120
} ,
Original file line number Diff line number Diff line change @@ -69,7 +69,8 @@ export const CustomerFeaturesSchema = z.object({
69
69
reportType : z . string ( ) . optional ( ) ,
70
70
runByDefault : z . boolean ( ) . optional ( ) ,
71
71
scheduleType : z . string ( ) . optional ( ) ,
72
- intervalInDays : z . number ( ) . optional ( ) ,
72
+ dayInMonth : z . number ( ) . optional ( ) ,
73
+ monthInterval : z . number ( ) . optional ( ) ,
73
74
proxyViaCountry : z . string ( ) . optional ( ) ,
74
75
workflowVersion : z . string ( ) . optional ( ) ,
75
76
} )
Original file line number Diff line number Diff line change @@ -22,18 +22,10 @@ export type TOngoingMerchantReportOptions = {
22
22
proxyViaCountry : string ;
23
23
workflowVersion : MerchantReportVersion ;
24
24
reportType : 'ONGOING_MERCHANT_REPORT_T1' ;
25
- } & (
26
- | {
27
- scheduleType : 'specific' ;
28
- specificDates : {
29
- dayInMonth : number ;
30
- } ;
31
- }
32
- | {
33
- scheduleType : 'interval' ;
34
- intervalInDays : number ;
35
- }
36
- ) ;
25
+ scheduleType : 'specific' ;
26
+ dayInMonth : number ;
27
+ monthInterval : number ;
28
+ } ;
37
29
38
30
type FeaturesOptions = TOngoingMerchantReportOptions ;
39
31
@@ -49,8 +41,9 @@ export const CUSTOMER_FEATURES = {
49
41
name : FEATURE_LIST . ONGOING_MERCHANT_REPORT ,
50
42
enabled : true ,
51
43
options : {
52
- scheduleType : 'interval' ,
53
- intervalInDays : 30 ,
44
+ scheduleType : 'specific' ,
45
+ dayInMonth : 1 ,
46
+ monthInterval : 1 ,
54
47
runByDefault : true ,
55
48
workflowVersion : '2' ,
56
49
proxyViaCountry : 'GB' ,
You can’t perform that action at this time.
0 commit comments