@benup/bensdk 1.1.0 → 1.2.1

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.
@@ -50,7 +50,6 @@ export type ActionBase = {
50
50
  companyID: string;
51
51
  customerID: string;
52
52
  accountID: string;
53
- establishmentID: string;
54
53
  admissionDate: string;
55
54
  externalEmploymentContractID: string;
56
55
  position: {
@@ -80,23 +79,24 @@ export type ActionBase = {
80
79
  company: {
81
80
  _id: string;
82
81
  accountID: string;
82
+ externalCompanyID: string;
83
83
  cnpj: string;
84
84
  /** razao social */
85
85
  businessName: string;
86
86
  /** nome fantasia */
87
87
  tradeName: string;
88
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;
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
100
  createdAt: string;
101
101
  updatedAt?: string | undefined;
102
102
  };
@@ -114,53 +114,53 @@ export type ActionBase = {
114
114
  modifiedContractsWindowInDays: number;
115
115
  dataMapping: {
116
116
  eligibility?:
117
+ | {
118
+ benefitID: string;
119
+ eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
120
+ eligibilityCode?: (number | string) | undefined;
121
+ eligibilityMap?:
117
122
  | {
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
- }[]
123
+ eligibilityValue: (boolean | number) | string;
124
+ isEligible: boolean;
125
+ options: {};
126
+ }[]
129
127
  | undefined;
128
+ }[]
129
+ | undefined;
130
130
  deduction?:
131
+ | {
132
+ benefitID: string;
133
+ deduction: {
134
+ externalPayrollID: number;
135
+ externalPayrollEventID: number;
136
+ };
137
+ refund?:
131
138
  | {
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
- }[]
139
+ externalPayrollID: number;
140
+ externalPayrollEventID: number;
141
+ }
145
142
  | undefined;
143
+ meta?: {} | undefined;
144
+ }[]
145
+ | undefined;
146
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;
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
158
  situation?:
159
- | {
160
- code: number;
161
- value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
162
- }[]
163
- | undefined;
159
+ | {
160
+ code: number;
161
+ value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
162
+ }[]
163
+ | undefined;
164
164
  };
165
165
  version: 2;
166
166
  isDeleted?: boolean;
@@ -168,56 +168,30 @@ export type ActionBase = {
168
168
  updatedAt?: string | undefined;
169
169
  deletedAt?: string | undefined;
170
170
  };
171
- establishment: {
172
- _id: string;
173
- accountID: string;
174
- companyID: string;
175
- cnpj: string;
176
- /** razao social */
177
- businessName: string;
178
- /** nome fantasia */
179
- tradeName: string;
180
- /** código da empresa no sistema de folha */
181
- externalEstablishmentID: string;
182
- address?:
183
- | {
184
- street: string;
185
- number: string;
186
- complement?: string | undefined;
187
- neighborhood: string;
188
- city: string;
189
- state: string;
190
- zipCode: string;
191
- country: string;
192
- }
193
- | undefined;
194
- createdAt: string;
195
- updatedAt?: string | undefined;
196
- };
197
171
  };
198
172
  eligibilityOptions: {};
199
173
  ctx?: {} | undefined;
200
174
  log?: {} | undefined;
201
175
  origin: string;
202
176
  rechargeInput?:
203
- | {
204
- externalSheetID: string;
205
- externalEventID: string;
206
- date: string;
207
- value: number;
208
- }
209
- | undefined;
177
+ | {
178
+ externalSheetID: string;
179
+ externalEventID: string;
180
+ date: string;
181
+ value: number;
182
+ }
183
+ | undefined;
210
184
  deductionInput?:
211
- | {
212
- payrollSystem: string;
213
- externalSheetID: string;
214
- externalEventID: string;
215
- externalSituationID: number;
216
- isAccumulative: boolean;
217
- date: string;
218
- value: number;
219
- }
220
- | undefined;
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;
221
195
  createdAt: string;
222
196
  updatedAt?: string | undefined;
223
197
  };
@@ -32,7 +32,6 @@ export type ActionBaseDeduction = {
32
32
  companyID: string;
33
33
  customerID: string;
34
34
  accountID: string;
35
- establishmentID: string;
36
35
  admissionDate: string;
37
36
  externalEmploymentContractID: string;
38
37
  position: {
@@ -62,23 +61,24 @@ export type ActionBaseDeduction = {
62
61
  company: {
63
62
  _id: string;
64
63
  accountID: string;
64
+ externalCompanyID: string;
65
65
  cnpj: string;
66
66
  /** razao social */
67
67
  businessName: string;
68
68
  /** nome fantasia */
69
69
  tradeName: string;
70
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;
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
82
  createdAt: string;
83
83
  updatedAt?: string | undefined;
84
84
  };
@@ -96,53 +96,53 @@ export type ActionBaseDeduction = {
96
96
  modifiedContractsWindowInDays: number;
97
97
  dataMapping: {
98
98
  eligibility?:
99
+ | {
100
+ benefitID: string;
101
+ eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
102
+ eligibilityCode?: (number | string) | undefined;
103
+ eligibilityMap?:
99
104
  | {
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
- }[]
105
+ eligibilityValue: (boolean | number) | string;
106
+ isEligible: boolean;
107
+ options: {};
108
+ }[]
111
109
  | undefined;
110
+ }[]
111
+ | undefined;
112
112
  deduction?:
113
+ | {
114
+ benefitID: string;
115
+ deduction: {
116
+ externalPayrollID: number;
117
+ externalPayrollEventID: number;
118
+ };
119
+ refund?:
113
120
  | {
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
- }[]
121
+ externalPayrollID: number;
122
+ externalPayrollEventID: number;
123
+ }
127
124
  | undefined;
125
+ meta?: {} | undefined;
126
+ }[]
127
+ | undefined;
128
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;
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
140
  situation?:
141
- | {
142
- code: number;
143
- value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
144
- }[]
145
- | undefined;
141
+ | {
142
+ code: number;
143
+ value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
144
+ }[]
145
+ | undefined;
146
146
  };
147
147
  version: 2;
148
148
  isDeleted?: boolean;
@@ -150,32 +150,6 @@ export type ActionBaseDeduction = {
150
150
  updatedAt?: string | undefined;
151
151
  deletedAt?: string | undefined;
152
152
  };
153
- establishment: {
154
- _id: string;
155
- accountID: string;
156
- companyID: string;
157
- cnpj: string;
158
- /** razao social */
159
- businessName: string;
160
- /** nome fantasia */
161
- tradeName: string;
162
- /** código da empresa no sistema de folha */
163
- externalEstablishmentID: string;
164
- address?:
165
- | {
166
- street: string;
167
- number: string;
168
- complement?: string | undefined;
169
- neighborhood: string;
170
- city: string;
171
- state: string;
172
- zipCode: string;
173
- country: string;
174
- }
175
- | undefined;
176
- createdAt: string;
177
- updatedAt?: string | undefined;
178
- };
179
153
  };
180
154
  eligibilityOptions: {};
181
155
  ctx?: {} | undefined;
@@ -50,7 +50,6 @@ export type ActionBaseDependent = {
50
50
  companyID: string;
51
51
  customerID: string;
52
52
  accountID: string;
53
- establishmentID: string;
54
53
  admissionDate: string;
55
54
  externalEmploymentContractID: string;
56
55
  position: {
@@ -80,23 +79,24 @@ export type ActionBaseDependent = {
80
79
  company: {
81
80
  _id: string;
82
81
  accountID: string;
82
+ externalCompanyID: string;
83
83
  cnpj: string;
84
84
  /** razao social */
85
85
  businessName: string;
86
86
  /** nome fantasia */
87
87
  tradeName: string;
88
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;
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
100
  createdAt: string;
101
101
  updatedAt?: string | undefined;
102
102
  };
@@ -114,53 +114,53 @@ export type ActionBaseDependent = {
114
114
  modifiedContractsWindowInDays: number;
115
115
  dataMapping: {
116
116
  eligibility?:
117
+ | {
118
+ benefitID: string;
119
+ eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
120
+ eligibilityCode?: (number | string) | undefined;
121
+ eligibilityMap?:
117
122
  | {
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
- }[]
123
+ eligibilityValue: (boolean | number) | string;
124
+ isEligible: boolean;
125
+ options: {};
126
+ }[]
129
127
  | undefined;
128
+ }[]
129
+ | undefined;
130
130
  deduction?:
131
+ | {
132
+ benefitID: string;
133
+ deduction: {
134
+ externalPayrollID: number;
135
+ externalPayrollEventID: number;
136
+ };
137
+ refund?:
131
138
  | {
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
- }[]
139
+ externalPayrollID: number;
140
+ externalPayrollEventID: number;
141
+ }
145
142
  | undefined;
143
+ meta?: {} | undefined;
144
+ }[]
145
+ | undefined;
146
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;
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
158
  situation?:
159
- | {
160
- code: number;
161
- value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
162
- }[]
163
- | undefined;
159
+ | {
160
+ code: number;
161
+ value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
162
+ }[]
163
+ | undefined;
164
164
  };
165
165
  version: 2;
166
166
  isDeleted?: boolean;
@@ -168,32 +168,6 @@ export type ActionBaseDependent = {
168
168
  updatedAt?: string | undefined;
169
169
  deletedAt?: string | undefined;
170
170
  };
171
- establishment: {
172
- _id: string;
173
- accountID: string;
174
- companyID: string;
175
- cnpj: string;
176
- /** razao social */
177
- businessName: string;
178
- /** nome fantasia */
179
- tradeName: string;
180
- /** código da empresa no sistema de folha */
181
- externalEstablishmentID: string;
182
- address?:
183
- | {
184
- street: string;
185
- number: string;
186
- complement?: string | undefined;
187
- neighborhood: string;
188
- city: string;
189
- state: string;
190
- zipCode: string;
191
- country: string;
192
- }
193
- | undefined;
194
- createdAt: string;
195
- updatedAt?: string | undefined;
196
- };
197
171
  };
198
172
  eligibilityOptions: {};
199
173
  ctx?: {} | undefined;
@@ -32,7 +32,6 @@ export type ActionBaseRecharge = {
32
32
  companyID: string;
33
33
  customerID: string;
34
34
  accountID: string;
35
- establishmentID: string;
36
35
  admissionDate: string;
37
36
  externalEmploymentContractID: string;
38
37
  position: {
@@ -62,23 +61,24 @@ export type ActionBaseRecharge = {
62
61
  company: {
63
62
  _id: string;
64
63
  accountID: string;
64
+ externalCompanyID: string;
65
65
  cnpj: string;
66
66
  /** razao social */
67
67
  businessName: string;
68
68
  /** nome fantasia */
69
69
  tradeName: string;
70
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;
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
82
  createdAt: string;
83
83
  updatedAt?: string | undefined;
84
84
  };
@@ -96,53 +96,53 @@ export type ActionBaseRecharge = {
96
96
  modifiedContractsWindowInDays: number;
97
97
  dataMapping: {
98
98
  eligibility?:
99
+ | {
100
+ benefitID: string;
101
+ eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
102
+ eligibilityCode?: (number | string) | undefined;
103
+ eligibilityMap?:
99
104
  | {
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
- }[]
105
+ eligibilityValue: (boolean | number) | string;
106
+ isEligible: boolean;
107
+ options: {};
108
+ }[]
111
109
  | undefined;
110
+ }[]
111
+ | undefined;
112
112
  deduction?:
113
+ | {
114
+ benefitID: string;
115
+ deduction: {
116
+ externalPayrollID: number;
117
+ externalPayrollEventID: number;
118
+ };
119
+ refund?:
113
120
  | {
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
- }[]
121
+ externalPayrollID: number;
122
+ externalPayrollEventID: number;
123
+ }
127
124
  | undefined;
125
+ meta?: {} | undefined;
126
+ }[]
127
+ | undefined;
128
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;
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
140
  situation?:
141
- | {
142
- code: number;
143
- value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
144
- }[]
145
- | undefined;
141
+ | {
142
+ code: number;
143
+ value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
144
+ }[]
145
+ | undefined;
146
146
  };
147
147
  version: 2;
148
148
  isDeleted?: boolean;
@@ -150,32 +150,6 @@ export type ActionBaseRecharge = {
150
150
  updatedAt?: string | undefined;
151
151
  deletedAt?: string | undefined;
152
152
  };
153
- establishment: {
154
- _id: string;
155
- accountID: string;
156
- companyID: string;
157
- cnpj: string;
158
- /** razao social */
159
- businessName: string;
160
- /** nome fantasia */
161
- tradeName: string;
162
- /** código da empresa no sistema de folha */
163
- externalEstablishmentID: string;
164
- address?:
165
- | {
166
- street: string;
167
- number: string;
168
- complement?: string | undefined;
169
- neighborhood: string;
170
- city: string;
171
- state: string;
172
- zipCode: string;
173
- country: string;
174
- }
175
- | undefined;
176
- createdAt: string;
177
- updatedAt?: string | undefined;
178
- };
179
153
  };
180
154
  eligibilityOptions: {};
181
155
  ctx?: {} | undefined;
@@ -32,7 +32,6 @@ export type ActionBaseGrantRevoke = {
32
32
  companyID: string;
33
33
  customerID: string;
34
34
  accountID: string;
35
- establishmentID: string;
36
35
  admissionDate: string;
37
36
  externalEmploymentContractID: string;
38
37
  position: {
@@ -62,23 +61,24 @@ export type ActionBaseGrantRevoke = {
62
61
  company: {
63
62
  _id: string;
64
63
  accountID: string;
64
+ externalCompanyID: string;
65
65
  cnpj: string;
66
66
  /** razao social */
67
67
  businessName: string;
68
68
  /** nome fantasia */
69
69
  tradeName: string;
70
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;
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
82
  createdAt: string;
83
83
  updatedAt?: string | undefined;
84
84
  };
@@ -96,53 +96,53 @@ export type ActionBaseGrantRevoke = {
96
96
  modifiedContractsWindowInDays: number;
97
97
  dataMapping: {
98
98
  eligibility?:
99
+ | {
100
+ benefitID: string;
101
+ eligibilityType: 'BENEFIT' | 'ATTRIBUTE' | 'ELIGIBLE_TO_ALL';
102
+ eligibilityCode?: (number | string) | undefined;
103
+ eligibilityMap?:
99
104
  | {
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
- }[]
105
+ eligibilityValue: (boolean | number) | string;
106
+ isEligible: boolean;
107
+ options: {};
108
+ }[]
111
109
  | undefined;
110
+ }[]
111
+ | undefined;
112
112
  deduction?:
113
+ | {
114
+ benefitID: string;
115
+ deduction: {
116
+ externalPayrollID: number;
117
+ externalPayrollEventID: number;
118
+ };
119
+ refund?:
113
120
  | {
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
- }[]
121
+ externalPayrollID: number;
122
+ externalPayrollEventID: number;
123
+ }
127
124
  | undefined;
125
+ meta?: {} | undefined;
126
+ }[]
127
+ | undefined;
128
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;
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
140
  situation?:
141
- | {
142
- code: number;
143
- value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
144
- }[]
145
- | undefined;
141
+ | {
142
+ code: number;
143
+ value: 'ADMITTED' | 'DISMISSED' | 'SUSPENDED' | 'IGNORED';
144
+ }[]
145
+ | undefined;
146
146
  };
147
147
  version: 2;
148
148
  isDeleted?: boolean;
@@ -150,32 +150,6 @@ export type ActionBaseGrantRevoke = {
150
150
  updatedAt?: string | undefined;
151
151
  deletedAt?: string | undefined;
152
152
  };
153
- establishment: {
154
- _id: string;
155
- accountID: string;
156
- companyID: string;
157
- cnpj: string;
158
- /** razao social */
159
- businessName: string;
160
- /** nome fantasia */
161
- tradeName: string;
162
- /** código da empresa no sistema de folha */
163
- externalEstablishmentID: string;
164
- address?:
165
- | {
166
- street: string;
167
- number: string;
168
- complement?: string | undefined;
169
- neighborhood: string;
170
- city: string;
171
- state: string;
172
- zipCode: string;
173
- country: string;
174
- }
175
- | undefined;
176
- createdAt: string;
177
- updatedAt?: string | undefined;
178
- };
179
153
  };
180
154
  eligibilityOptions: {};
181
155
  ctx?: {} | undefined;
@@ -34,7 +34,6 @@
34
34
  "companyID": "67d08762f7c7deeba70df761",
35
35
  "customerID": "67d08705f0de4e3d6816878c",
36
36
  "accountID": "67d0877a8e6afb996881e224",
37
- "establishmentID": "67d087914daaf3ecdd941676",
38
37
  "admissionDate": "2024-01-01",
39
38
  "externalEmploymentContractID": "123",
40
39
  "position": {
@@ -61,19 +60,10 @@
61
60
  "createdAt": "2025-03-11T19:01:15.490Z",
62
61
  "isDeleted": false
63
62
  },
64
- "establishment": {
65
- "_id": "67d087914daaf3ecdd941676",
66
- "externalEstablishmentID": "123",
67
- "companyID": "67d08762f7c7deeba70df761",
68
- "accountID": "67d0877a8e6afb996881e224",
69
- "cnpj": "34.714.870/0000-63",
70
- "businessName": "businessName",
71
- "tradeName": "tradeName",
72
- "createdAt": "2025-03-11T19:01:15.490Z"
73
- },
74
63
  "company": {
75
64
  "_id": "67d08762f7c7deeba70df761",
76
65
  "accountID": "67d0877a8e6afb996881e224",
66
+ "externalCompanyID": "123",
77
67
  "cnpj": "34.714.870/0000-63",
78
68
  "businessName": "businessName",
79
69
  "tradeName": "tradeName",
@@ -412,7 +402,6 @@
412
402
  'target.employmentContract.companyID': 'Company identifier',
413
403
  'target.employmentContract.customerID': 'Customer identifier',
414
404
  'target.employmentContract.accountID': 'Account identifier',
415
- 'target.employmentContract.establishmentID': 'Establishment identifier',
416
405
  'target.employmentContract.admissionDate': 'Admission date',
417
406
  'target.employmentContract.externalEmploymentContractID': 'External contract identifier',
418
407
  'target.employmentContract.position': 'Position information',
@@ -424,16 +413,9 @@
424
413
  'target.employmentContract.fingerprint': 'Contract fingerprint',
425
414
  'target.employmentContract.createdAt': 'Creation timestamp',
426
415
  'target.employmentContract.isDeleted': 'Deletion status',
427
- 'target.establishment._id': 'Establishment unique identifier',
428
- 'target.establishment.externalEstablishmentID': 'External establishment identifier',
429
- 'target.establishment.companyID': 'Company identifier',
430
- 'target.establishment.accountID': 'Account identifier',
431
- 'target.establishment.cnpj': 'Establishment CNPJ',
432
- 'target.establishment.businessName': 'Business name',
433
- 'target.establishment.tradeName': 'Trade name',
434
- 'target.establishment.createdAt': 'Creation timestamp',
435
416
  'target.company._id': 'Company unique identifier',
436
417
  'target.company.accountID': 'Account identifier',
418
+ 'target.company.externalCompanyID': 'External company identifier',
437
419
  'target.company.cnpj': 'Company CNPJ',
438
420
  'target.company.businessName': 'Business name',
439
421
  'target.company.tradeName': 'Trade name',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benup/bensdk",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {