@agroyaar/sdk 2.1.1 → 2.1.2
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/dist/index.cjs +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -157,7 +157,10 @@ var mappers = {
|
|
|
157
157
|
placeholder: dto.placeholder,
|
|
158
158
|
isRequired: dto.required,
|
|
159
159
|
type: dto.kindName,
|
|
160
|
-
options: dto.options
|
|
160
|
+
options: dto.options?.map((item) => ({
|
|
161
|
+
label: item.label,
|
|
162
|
+
value: item.id
|
|
163
|
+
})) ?? []
|
|
161
164
|
}),
|
|
162
165
|
getQuestions: (dto) => dto.map(mappers.getQuestion),
|
|
163
166
|
getMechanizationMovementChange: ({
|
package/dist/index.mjs
CHANGED
|
@@ -121,7 +121,10 @@ var mappers = {
|
|
|
121
121
|
placeholder: dto.placeholder,
|
|
122
122
|
isRequired: dto.required,
|
|
123
123
|
type: dto.kindName,
|
|
124
|
-
options: dto.options
|
|
124
|
+
options: dto.options?.map((item) => ({
|
|
125
|
+
label: item.label,
|
|
126
|
+
value: item.id
|
|
127
|
+
})) ?? []
|
|
125
128
|
}),
|
|
126
129
|
getQuestions: (dto) => dto.map(mappers.getQuestion),
|
|
127
130
|
getMechanizationMovementChange: ({
|