@benup/bensdk 1.3.0 → 1.4.0
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/bin/lib/schemas/action.schema.d.ts +5647 -10273
- package/bin/lib/schemas/benefit-definition.schema.d.ts +89 -222
- package/bin/src/cli/init.js +1 -10
- package/bin/src/cli/init.js.map +1 -1
- package/bin/src/cli/templates/benefit-definition.template.ts +2 -1
- package/bin/src/cli/templates/bensdk-cli/generate.ts +29 -8
- package/bin/src/cli/templates/bensdk-cli/templates/state.handler.template.ts +7 -3
- package/package.json +1 -1
- package/bin/src/cli/templates/benefit-definition.types.template.ts +0 -66
- package/bin/src/cli/templates/bensdk-lib/types/action-base.type.ts +0 -197
- package/bin/src/cli/templates/bensdk-lib/types/action.types.ts +0 -13
- package/bin/src/cli/templates/bensdk-lib/types/base-deduction.type.ts +0 -169
- package/bin/src/cli/templates/bensdk-lib/types/base-dependent.type.ts +0 -178
- package/bin/src/cli/templates/bensdk-lib/types/base-recharge.type.ts +0 -166
- package/bin/src/cli/templates/bensdk-lib/types/benefits-definition.type.ts +0 -59
- package/bin/src/cli/templates/bensdk-lib/types/grant-revoke.type.ts +0 -160
- package/bin/src/cli/templates/bensdk-lib/types/state.handler.type.ts +0 -88
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
export type ActionBase = {
|
|
2
|
-
_id: string;
|
|
3
|
-
batchID?: string | undefined;
|
|
4
|
-
parentActionID?: string | undefined;
|
|
5
|
-
fingerprint?: string | undefined;
|
|
6
|
-
benefitID: string;
|
|
7
|
-
action: 'GRANT' | 'REVOKE' | 'DEDUCTION' | 'RECHARGE' | 'GRANT_DEPENDENT' | 'REVOKE_DEPENDENT';
|
|
8
|
-
state: string;
|
|
9
|
-
target: {
|
|
10
|
-
dependent: {
|
|
11
|
-
externalDependentID: string;
|
|
12
|
-
externalDependentCode: string;
|
|
13
|
-
name: string;
|
|
14
|
-
/** CPF in format 000.000.000-00 */
|
|
15
|
-
cpf: string;
|
|
16
|
-
birthDate: string;
|
|
17
|
-
sex: 'M' | 'F';
|
|
18
|
-
relationshipType: string;
|
|
19
|
-
maritalStatus: string;
|
|
20
|
-
benefits: {
|
|
21
|
-
[x: string]: {
|
|
22
|
-
value: boolean;
|
|
23
|
-
options?: {} | undefined;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
status: 'LINKED' | 'UNLINKED';
|
|
27
|
-
};
|
|
28
|
-
employee: {
|
|
29
|
-
_id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
/** CPF in format 000.000.000-00 */
|
|
32
|
-
cpf: string;
|
|
33
|
-
birthdate: string;
|
|
34
|
-
address: {
|
|
35
|
-
street: string;
|
|
36
|
-
number: string;
|
|
37
|
-
complement?: string | undefined;
|
|
38
|
-
neighborhood: string;
|
|
39
|
-
city: string;
|
|
40
|
-
state: string;
|
|
41
|
-
zipCode: string;
|
|
42
|
-
country: string;
|
|
43
|
-
};
|
|
44
|
-
email?: string | undefined;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
updatedAt?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
employmentContract: {
|
|
49
|
-
_id: string;
|
|
50
|
-
companyID: string;
|
|
51
|
-
customerID: string;
|
|
52
|
-
accountID: string;
|
|
53
|
-
admissionDate: string;
|
|
54
|
-
externalEmploymentContractID: string;
|
|
55
|
-
position: {
|
|
56
|
-
code: number;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
|
-
establishment: {
|
|
60
|
-
code: number;
|
|
61
|
-
description: string;
|
|
62
|
-
};
|
|
63
|
-
startDateOfCurrentSituation: string;
|
|
64
|
-
situation: {
|
|
65
|
-
code: number;
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
benefits: {
|
|
69
|
-
[x: string]: {
|
|
70
|
-
value: boolean;
|
|
71
|
-
options?: {} | undefined;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
status: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
|
|
75
|
-
fingerprint: string;
|
|
76
|
-
createdAt: string;
|
|
77
|
-
isDeleted?: boolean;
|
|
78
|
-
};
|
|
79
|
-
company: {
|
|
80
|
-
_id: string;
|
|
81
|
-
accountID: string;
|
|
82
|
-
externalCompanyID: string;
|
|
83
|
-
cnpj: string;
|
|
84
|
-
/** razao social */
|
|
85
|
-
businessName: string;
|
|
86
|
-
/** nome fantasia */
|
|
87
|
-
tradeName: string;
|
|
88
|
-
address?:
|
|
89
|
-
| {
|
|
90
|
-
street: string;
|
|
91
|
-
number: string;
|
|
92
|
-
complement?: string | undefined;
|
|
93
|
-
neighborhood: string;
|
|
94
|
-
city: string;
|
|
95
|
-
state: string;
|
|
96
|
-
zipCode: string;
|
|
97
|
-
country: string;
|
|
98
|
-
}
|
|
99
|
-
| undefined;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt?: string | undefined;
|
|
102
|
-
};
|
|
103
|
-
payrollConfiguration: {
|
|
104
|
-
_id: string;
|
|
105
|
-
accountID: string;
|
|
106
|
-
companyID: string;
|
|
107
|
-
payrollSystem: 'LG_ONPREMISE_VLI' | 'LG_CLOUD' | 'LG_ONPREMISE_AMBEV';
|
|
108
|
-
eligibilitySource: 'BENEFIT_MODULE' | 'ADDITIONAL_ATTRIBUTE';
|
|
109
|
-
productToggle?: {
|
|
110
|
-
isOcherstratorActive?: boolean;
|
|
111
|
-
isIntegratorActive?: boolean;
|
|
112
|
-
};
|
|
113
|
-
cutoffDay: number;
|
|
114
|
-
modifiedContractsWindowInDays: number;
|
|
115
|
-
dataMapping: {
|
|
116
|
-
eligibility?:
|
|
117
|
-
| {
|
|
118
|
-
benefitID: string;
|
|
119
|
-
eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
|
|
120
|
-
eligibilityCode?: (number | string) | undefined;
|
|
121
|
-
eligibilityMap?:
|
|
122
|
-
| {
|
|
123
|
-
eligibilityValue: (boolean | number) | string;
|
|
124
|
-
isEligible: boolean;
|
|
125
|
-
options: {};
|
|
126
|
-
}[]
|
|
127
|
-
| undefined;
|
|
128
|
-
}[]
|
|
129
|
-
| undefined;
|
|
130
|
-
deduction?:
|
|
131
|
-
| {
|
|
132
|
-
benefitID: string;
|
|
133
|
-
deduction: {
|
|
134
|
-
externalPayrollID: number;
|
|
135
|
-
externalPayrollEventID: number;
|
|
136
|
-
};
|
|
137
|
-
refund?:
|
|
138
|
-
| {
|
|
139
|
-
externalPayrollID: number;
|
|
140
|
-
externalPayrollEventID: number;
|
|
141
|
-
}
|
|
142
|
-
| undefined;
|
|
143
|
-
meta?: {} | undefined;
|
|
144
|
-
}[]
|
|
145
|
-
| undefined;
|
|
146
|
-
recharge?:
|
|
147
|
-
| {
|
|
148
|
-
rechargeID: string;
|
|
149
|
-
label?: string | undefined;
|
|
150
|
-
eventID: number;
|
|
151
|
-
sheetID: number;
|
|
152
|
-
benefitID: string;
|
|
153
|
-
productID?: string | undefined;
|
|
154
|
-
executionCron: string;
|
|
155
|
-
rechargeDate?: number | undefined;
|
|
156
|
-
}[]
|
|
157
|
-
| undefined;
|
|
158
|
-
situation?:
|
|
159
|
-
| {
|
|
160
|
-
code: number;
|
|
161
|
-
value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
|
|
162
|
-
}[]
|
|
163
|
-
| undefined;
|
|
164
|
-
};
|
|
165
|
-
version: 2;
|
|
166
|
-
isDeleted?: boolean;
|
|
167
|
-
createdAt: string;
|
|
168
|
-
updatedAt?: string | undefined;
|
|
169
|
-
deletedAt?: string | undefined;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
eligibilityOptions: {};
|
|
173
|
-
ctx?: {} | undefined;
|
|
174
|
-
log?: {} | undefined;
|
|
175
|
-
origin: string;
|
|
176
|
-
rechargeInput?:
|
|
177
|
-
| {
|
|
178
|
-
externalSheetID: string;
|
|
179
|
-
externalEventID: string;
|
|
180
|
-
date: string;
|
|
181
|
-
value: number;
|
|
182
|
-
}
|
|
183
|
-
| undefined;
|
|
184
|
-
deductionInput?:
|
|
185
|
-
| {
|
|
186
|
-
payrollSystem: string;
|
|
187
|
-
externalSheetID: string;
|
|
188
|
-
externalEventID: string;
|
|
189
|
-
externalSituationID: number;
|
|
190
|
-
isAccumulative: boolean;
|
|
191
|
-
date: string;
|
|
192
|
-
value: number;
|
|
193
|
-
}
|
|
194
|
-
| undefined;
|
|
195
|
-
createdAt: string;
|
|
196
|
-
updatedAt?: string | undefined;
|
|
197
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ActionBase } from './action-base.type';
|
|
2
|
-
import { ActionBaseDeduction } from './base-deduction.type';
|
|
3
|
-
import { ActionBaseDependent } from './base-dependent.type';
|
|
4
|
-
import { ActionBaseRecharge } from './base-recharge.type';
|
|
5
|
-
import { ActionBaseGrantRevoke } from './grant-revoke.type';
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
ActionBase,
|
|
9
|
-
ActionBaseDeduction,
|
|
10
|
-
ActionBaseDependent,
|
|
11
|
-
ActionBaseGrantRevoke,
|
|
12
|
-
ActionBaseRecharge
|
|
13
|
-
};
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
export type ActionBaseDeduction = {
|
|
2
|
-
_id: string;
|
|
3
|
-
batchID?: string | undefined;
|
|
4
|
-
parentActionID?: string | undefined;
|
|
5
|
-
fingerprint?: string | undefined;
|
|
6
|
-
benefitID: string;
|
|
7
|
-
action: 'DEDUCTION';
|
|
8
|
-
state: string;
|
|
9
|
-
target: {
|
|
10
|
-
employee: {
|
|
11
|
-
_id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
/** CPF in format 000.000.000-00 */
|
|
14
|
-
cpf: string;
|
|
15
|
-
birthdate: string;
|
|
16
|
-
address: {
|
|
17
|
-
street: string;
|
|
18
|
-
number: string;
|
|
19
|
-
complement?: string | undefined;
|
|
20
|
-
neighborhood: string;
|
|
21
|
-
city: string;
|
|
22
|
-
state: string;
|
|
23
|
-
zipCode: string;
|
|
24
|
-
country: string;
|
|
25
|
-
};
|
|
26
|
-
email?: string | undefined;
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt?: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
employmentContract: {
|
|
31
|
-
_id: string;
|
|
32
|
-
companyID: string;
|
|
33
|
-
customerID: string;
|
|
34
|
-
accountID: string;
|
|
35
|
-
admissionDate: string;
|
|
36
|
-
externalEmploymentContractID: string;
|
|
37
|
-
position: {
|
|
38
|
-
code: number;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
establishment: {
|
|
42
|
-
code: number;
|
|
43
|
-
description: string;
|
|
44
|
-
};
|
|
45
|
-
startDateOfCurrentSituation: string;
|
|
46
|
-
situation: {
|
|
47
|
-
code: number;
|
|
48
|
-
description: string;
|
|
49
|
-
};
|
|
50
|
-
benefits: {
|
|
51
|
-
[x: string]: {
|
|
52
|
-
value: boolean;
|
|
53
|
-
options?: {} | undefined;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
status: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
|
|
57
|
-
fingerprint: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
isDeleted?: boolean;
|
|
60
|
-
};
|
|
61
|
-
company: {
|
|
62
|
-
_id: string;
|
|
63
|
-
accountID: string;
|
|
64
|
-
externalCompanyID: string;
|
|
65
|
-
cnpj: string;
|
|
66
|
-
/** razao social */
|
|
67
|
-
businessName: string;
|
|
68
|
-
/** nome fantasia */
|
|
69
|
-
tradeName: string;
|
|
70
|
-
address?:
|
|
71
|
-
| {
|
|
72
|
-
street: string;
|
|
73
|
-
number: string;
|
|
74
|
-
complement?: string | undefined;
|
|
75
|
-
neighborhood: string;
|
|
76
|
-
city: string;
|
|
77
|
-
state: string;
|
|
78
|
-
zipCode: string;
|
|
79
|
-
country: string;
|
|
80
|
-
}
|
|
81
|
-
| undefined;
|
|
82
|
-
createdAt: string;
|
|
83
|
-
updatedAt?: string | undefined;
|
|
84
|
-
};
|
|
85
|
-
payrollConfiguration: {
|
|
86
|
-
_id: string;
|
|
87
|
-
accountID: string;
|
|
88
|
-
companyID: string;
|
|
89
|
-
payrollSystem: 'LG_ONPREMISE_VLI' | 'LG_CLOUD' | 'LG_ONPREMISE_AMBEV';
|
|
90
|
-
eligibilitySource: 'BENEFIT_MODULE' | 'ADDITIONAL_ATTRIBUTE';
|
|
91
|
-
productToggle?: {
|
|
92
|
-
isOcherstratorActive?: boolean;
|
|
93
|
-
isIntegratorActive?: boolean;
|
|
94
|
-
};
|
|
95
|
-
cutoffDay: number;
|
|
96
|
-
modifiedContractsWindowInDays: number;
|
|
97
|
-
dataMapping: {
|
|
98
|
-
eligibility?:
|
|
99
|
-
| {
|
|
100
|
-
benefitID: string;
|
|
101
|
-
eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
|
|
102
|
-
eligibilityCode?: (number | string) | undefined;
|
|
103
|
-
eligibilityMap?:
|
|
104
|
-
| {
|
|
105
|
-
eligibilityValue: (boolean | number) | string;
|
|
106
|
-
isEligible: boolean;
|
|
107
|
-
options: {};
|
|
108
|
-
}[]
|
|
109
|
-
| undefined;
|
|
110
|
-
}[]
|
|
111
|
-
| undefined;
|
|
112
|
-
deduction?:
|
|
113
|
-
| {
|
|
114
|
-
benefitID: string;
|
|
115
|
-
deduction: {
|
|
116
|
-
externalPayrollID: number;
|
|
117
|
-
externalPayrollEventID: number;
|
|
118
|
-
};
|
|
119
|
-
refund?:
|
|
120
|
-
| {
|
|
121
|
-
externalPayrollID: number;
|
|
122
|
-
externalPayrollEventID: number;
|
|
123
|
-
}
|
|
124
|
-
| undefined;
|
|
125
|
-
meta?: {} | undefined;
|
|
126
|
-
}[]
|
|
127
|
-
| undefined;
|
|
128
|
-
recharge?:
|
|
129
|
-
| {
|
|
130
|
-
rechargeID: string;
|
|
131
|
-
label?: string | undefined;
|
|
132
|
-
eventID: number;
|
|
133
|
-
sheetID: number;
|
|
134
|
-
benefitID: string;
|
|
135
|
-
productID?: string | undefined;
|
|
136
|
-
executionCron: string;
|
|
137
|
-
rechargeDate?: number | undefined;
|
|
138
|
-
}[]
|
|
139
|
-
| undefined;
|
|
140
|
-
situation?:
|
|
141
|
-
| {
|
|
142
|
-
code: number;
|
|
143
|
-
value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
|
|
144
|
-
}[]
|
|
145
|
-
| undefined;
|
|
146
|
-
};
|
|
147
|
-
version: 2;
|
|
148
|
-
isDeleted?: boolean;
|
|
149
|
-
createdAt: string;
|
|
150
|
-
updatedAt?: string | undefined;
|
|
151
|
-
deletedAt?: string | undefined;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
eligibilityOptions: {};
|
|
155
|
-
ctx?: {} | undefined;
|
|
156
|
-
log?: {} | undefined;
|
|
157
|
-
origin: string;
|
|
158
|
-
createdAt: string;
|
|
159
|
-
updatedAt?: string | undefined;
|
|
160
|
-
deductionInput: {
|
|
161
|
-
payrollSystem: string;
|
|
162
|
-
externalSheetID: string;
|
|
163
|
-
externalEventID: string;
|
|
164
|
-
externalSituationID: number;
|
|
165
|
-
isAccumulative: boolean;
|
|
166
|
-
date: string;
|
|
167
|
-
value: number;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
export type ActionBaseDependent = {
|
|
2
|
-
_id: string;
|
|
3
|
-
batchID?: string | undefined;
|
|
4
|
-
parentActionID?: string | undefined;
|
|
5
|
-
fingerprint?: string | undefined;
|
|
6
|
-
benefitID: string;
|
|
7
|
-
action: 'GRANT_DEPENDENT' | 'REVOKE_DEPENDENT';
|
|
8
|
-
state: string;
|
|
9
|
-
target: {
|
|
10
|
-
dependent: {
|
|
11
|
-
externalDependentID: string;
|
|
12
|
-
externalDependentCode: string;
|
|
13
|
-
name: string;
|
|
14
|
-
/** CPF in format 000.000.000-00 */
|
|
15
|
-
cpf: string;
|
|
16
|
-
birthDate: string;
|
|
17
|
-
sex: 'M' | 'F';
|
|
18
|
-
relationshipType: string;
|
|
19
|
-
maritalStatus: string;
|
|
20
|
-
benefits: {
|
|
21
|
-
[x: string]: {
|
|
22
|
-
value: boolean;
|
|
23
|
-
options?: {} | undefined;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
status: 'LINKED' | 'UNLINKED';
|
|
27
|
-
};
|
|
28
|
-
employee: {
|
|
29
|
-
_id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
/** CPF in format 000.000.000-00 */
|
|
32
|
-
cpf: string;
|
|
33
|
-
birthdate: string;
|
|
34
|
-
address: {
|
|
35
|
-
street: string;
|
|
36
|
-
number: string;
|
|
37
|
-
complement?: string | undefined;
|
|
38
|
-
neighborhood: string;
|
|
39
|
-
city: string;
|
|
40
|
-
state: string;
|
|
41
|
-
zipCode: string;
|
|
42
|
-
country: string;
|
|
43
|
-
};
|
|
44
|
-
email?: string | undefined;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
updatedAt?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
employmentContract: {
|
|
49
|
-
_id: string;
|
|
50
|
-
companyID: string;
|
|
51
|
-
customerID: string;
|
|
52
|
-
accountID: string;
|
|
53
|
-
admissionDate: string;
|
|
54
|
-
externalEmploymentContractID: string;
|
|
55
|
-
position: {
|
|
56
|
-
code: number;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
|
-
establishment: {
|
|
60
|
-
code: number;
|
|
61
|
-
description: string;
|
|
62
|
-
};
|
|
63
|
-
startDateOfCurrentSituation: string;
|
|
64
|
-
situation: {
|
|
65
|
-
code: number;
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
benefits: {
|
|
69
|
-
[x: string]: {
|
|
70
|
-
value: boolean;
|
|
71
|
-
options?: {} | undefined;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
status: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
|
|
75
|
-
fingerprint: string;
|
|
76
|
-
createdAt: string;
|
|
77
|
-
isDeleted?: boolean;
|
|
78
|
-
};
|
|
79
|
-
company: {
|
|
80
|
-
_id: string;
|
|
81
|
-
accountID: string;
|
|
82
|
-
externalCompanyID: string;
|
|
83
|
-
cnpj: string;
|
|
84
|
-
/** razao social */
|
|
85
|
-
businessName: string;
|
|
86
|
-
/** nome fantasia */
|
|
87
|
-
tradeName: string;
|
|
88
|
-
address?:
|
|
89
|
-
| {
|
|
90
|
-
street: string;
|
|
91
|
-
number: string;
|
|
92
|
-
complement?: string | undefined;
|
|
93
|
-
neighborhood: string;
|
|
94
|
-
city: string;
|
|
95
|
-
state: string;
|
|
96
|
-
zipCode: string;
|
|
97
|
-
country: string;
|
|
98
|
-
}
|
|
99
|
-
| undefined;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt?: string | undefined;
|
|
102
|
-
};
|
|
103
|
-
payrollConfiguration: {
|
|
104
|
-
_id: string;
|
|
105
|
-
accountID: string;
|
|
106
|
-
companyID: string;
|
|
107
|
-
payrollSystem: 'LG_ONPREMISE_VLI' | 'LG_CLOUD' | 'LG_ONPREMISE_AMBEV';
|
|
108
|
-
eligibilitySource: 'BENEFIT_MODULE' | 'ADDITIONAL_ATTRIBUTE';
|
|
109
|
-
productToggle?: {
|
|
110
|
-
isOcherstratorActive?: boolean;
|
|
111
|
-
isIntegratorActive?: boolean;
|
|
112
|
-
};
|
|
113
|
-
cutoffDay: number;
|
|
114
|
-
modifiedContractsWindowInDays: number;
|
|
115
|
-
dataMapping: {
|
|
116
|
-
eligibility?:
|
|
117
|
-
| {
|
|
118
|
-
benefitID: string;
|
|
119
|
-
eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
|
|
120
|
-
eligibilityCode?: (number | string) | undefined;
|
|
121
|
-
eligibilityMap?:
|
|
122
|
-
| {
|
|
123
|
-
eligibilityValue: (boolean | number) | string;
|
|
124
|
-
isEligible: boolean;
|
|
125
|
-
options: {};
|
|
126
|
-
}[]
|
|
127
|
-
| undefined;
|
|
128
|
-
}[]
|
|
129
|
-
| undefined;
|
|
130
|
-
deduction?:
|
|
131
|
-
| {
|
|
132
|
-
benefitID: string;
|
|
133
|
-
deduction: {
|
|
134
|
-
externalPayrollID: number;
|
|
135
|
-
externalPayrollEventID: number;
|
|
136
|
-
};
|
|
137
|
-
refund?:
|
|
138
|
-
| {
|
|
139
|
-
externalPayrollID: number;
|
|
140
|
-
externalPayrollEventID: number;
|
|
141
|
-
}
|
|
142
|
-
| undefined;
|
|
143
|
-
meta?: {} | undefined;
|
|
144
|
-
}[]
|
|
145
|
-
| undefined;
|
|
146
|
-
recharge?:
|
|
147
|
-
| {
|
|
148
|
-
rechargeID: string;
|
|
149
|
-
label?: string | undefined;
|
|
150
|
-
eventID: number;
|
|
151
|
-
sheetID: number;
|
|
152
|
-
benefitID: string;
|
|
153
|
-
productID?: string | undefined;
|
|
154
|
-
executionCron: string;
|
|
155
|
-
rechargeDate?: number | undefined;
|
|
156
|
-
}[]
|
|
157
|
-
| undefined;
|
|
158
|
-
situation?:
|
|
159
|
-
| {
|
|
160
|
-
code: number;
|
|
161
|
-
value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
|
|
162
|
-
}[]
|
|
163
|
-
| undefined;
|
|
164
|
-
};
|
|
165
|
-
version: 2;
|
|
166
|
-
isDeleted?: boolean;
|
|
167
|
-
createdAt: string;
|
|
168
|
-
updatedAt?: string | undefined;
|
|
169
|
-
deletedAt?: string | undefined;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
eligibilityOptions: {};
|
|
173
|
-
ctx?: {} | undefined;
|
|
174
|
-
log?: {} | undefined;
|
|
175
|
-
origin: string;
|
|
176
|
-
createdAt: string;
|
|
177
|
-
updatedAt?: string | undefined;
|
|
178
|
-
};
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
export type ActionBaseRecharge = {
|
|
2
|
-
_id: string;
|
|
3
|
-
batchID?: string | undefined;
|
|
4
|
-
parentActionID?: string | undefined;
|
|
5
|
-
fingerprint?: string | undefined;
|
|
6
|
-
benefitID: string;
|
|
7
|
-
action: 'RECHARGE';
|
|
8
|
-
state: string;
|
|
9
|
-
target: {
|
|
10
|
-
employee: {
|
|
11
|
-
_id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
/** CPF in format 000.000.000-00 */
|
|
14
|
-
cpf: string;
|
|
15
|
-
birthdate: string;
|
|
16
|
-
address: {
|
|
17
|
-
street: string;
|
|
18
|
-
number: string;
|
|
19
|
-
complement?: string | undefined;
|
|
20
|
-
neighborhood: string;
|
|
21
|
-
city: string;
|
|
22
|
-
state: string;
|
|
23
|
-
zipCode: string;
|
|
24
|
-
country: string;
|
|
25
|
-
};
|
|
26
|
-
email?: string | undefined;
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt?: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
employmentContract: {
|
|
31
|
-
_id: string;
|
|
32
|
-
companyID: string;
|
|
33
|
-
customerID: string;
|
|
34
|
-
accountID: string;
|
|
35
|
-
admissionDate: string;
|
|
36
|
-
externalEmploymentContractID: string;
|
|
37
|
-
position: {
|
|
38
|
-
code: number;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
establishment: {
|
|
42
|
-
code: number;
|
|
43
|
-
description: string;
|
|
44
|
-
};
|
|
45
|
-
startDateOfCurrentSituation: string;
|
|
46
|
-
situation: {
|
|
47
|
-
code: number;
|
|
48
|
-
description: string;
|
|
49
|
-
};
|
|
50
|
-
benefits: {
|
|
51
|
-
[x: string]: {
|
|
52
|
-
value: boolean;
|
|
53
|
-
options?: {} | undefined;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
status: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
|
|
57
|
-
fingerprint: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
isDeleted?: boolean;
|
|
60
|
-
};
|
|
61
|
-
company: {
|
|
62
|
-
_id: string;
|
|
63
|
-
accountID: string;
|
|
64
|
-
externalCompanyID: string;
|
|
65
|
-
cnpj: string;
|
|
66
|
-
/** razao social */
|
|
67
|
-
businessName: string;
|
|
68
|
-
/** nome fantasia */
|
|
69
|
-
tradeName: string;
|
|
70
|
-
address?:
|
|
71
|
-
| {
|
|
72
|
-
street: string;
|
|
73
|
-
number: string;
|
|
74
|
-
complement?: string | undefined;
|
|
75
|
-
neighborhood: string;
|
|
76
|
-
city: string;
|
|
77
|
-
state: string;
|
|
78
|
-
zipCode: string;
|
|
79
|
-
country: string;
|
|
80
|
-
}
|
|
81
|
-
| undefined;
|
|
82
|
-
createdAt: string;
|
|
83
|
-
updatedAt?: string | undefined;
|
|
84
|
-
};
|
|
85
|
-
payrollConfiguration: {
|
|
86
|
-
_id: string;
|
|
87
|
-
accountID: string;
|
|
88
|
-
companyID: string;
|
|
89
|
-
payrollSystem: 'LG_ONPREMISE_VLI' | 'LG_CLOUD' | 'LG_ONPREMISE_AMBEV';
|
|
90
|
-
eligibilitySource: 'BENEFIT_MODULE' | 'ADDITIONAL_ATTRIBUTE';
|
|
91
|
-
productToggle?: {
|
|
92
|
-
isOcherstratorActive?: boolean;
|
|
93
|
-
isIntegratorActive?: boolean;
|
|
94
|
-
};
|
|
95
|
-
cutoffDay: number;
|
|
96
|
-
modifiedContractsWindowInDays: number;
|
|
97
|
-
dataMapping: {
|
|
98
|
-
eligibility?:
|
|
99
|
-
| {
|
|
100
|
-
benefitID: string;
|
|
101
|
-
eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
|
|
102
|
-
eligibilityCode?: (number | string) | undefined;
|
|
103
|
-
eligibilityMap?:
|
|
104
|
-
| {
|
|
105
|
-
eligibilityValue: (boolean | number) | string;
|
|
106
|
-
isEligible: boolean;
|
|
107
|
-
options: {};
|
|
108
|
-
}[]
|
|
109
|
-
| undefined;
|
|
110
|
-
}[]
|
|
111
|
-
| undefined;
|
|
112
|
-
deduction?:
|
|
113
|
-
| {
|
|
114
|
-
benefitID: string;
|
|
115
|
-
deduction: {
|
|
116
|
-
externalPayrollID: number;
|
|
117
|
-
externalPayrollEventID: number;
|
|
118
|
-
};
|
|
119
|
-
refund?:
|
|
120
|
-
| {
|
|
121
|
-
externalPayrollID: number;
|
|
122
|
-
externalPayrollEventID: number;
|
|
123
|
-
}
|
|
124
|
-
| undefined;
|
|
125
|
-
meta?: {} | undefined;
|
|
126
|
-
}[]
|
|
127
|
-
| undefined;
|
|
128
|
-
recharge?:
|
|
129
|
-
| {
|
|
130
|
-
rechargeID: string;
|
|
131
|
-
label?: string | undefined;
|
|
132
|
-
eventID: number;
|
|
133
|
-
sheetID: number;
|
|
134
|
-
benefitID: string;
|
|
135
|
-
productID?: string | undefined;
|
|
136
|
-
executionCron: string;
|
|
137
|
-
rechargeDate?: number | undefined;
|
|
138
|
-
}[]
|
|
139
|
-
| undefined;
|
|
140
|
-
situation?:
|
|
141
|
-
| {
|
|
142
|
-
code: number;
|
|
143
|
-
value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
|
|
144
|
-
}[]
|
|
145
|
-
| undefined;
|
|
146
|
-
};
|
|
147
|
-
version: 2;
|
|
148
|
-
isDeleted?: boolean;
|
|
149
|
-
createdAt: string;
|
|
150
|
-
updatedAt?: string | undefined;
|
|
151
|
-
deletedAt?: string | undefined;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
eligibilityOptions: {};
|
|
155
|
-
ctx?: {} | undefined;
|
|
156
|
-
log?: {} | undefined;
|
|
157
|
-
origin: string;
|
|
158
|
-
createdAt: string;
|
|
159
|
-
updatedAt?: string | undefined;
|
|
160
|
-
rechargeInput: {
|
|
161
|
-
externalSheetID: string;
|
|
162
|
-
externalEventID: string;
|
|
163
|
-
date: string;
|
|
164
|
-
value: number;
|
|
165
|
-
};
|
|
166
|
-
};
|