@devtron-labs/devtron-fe-common-lib 0.0.58-beta-4 → 0.0.58-beta-5

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.
@@ -237,7 +237,7 @@ export interface CreateBuildInfraProfileType extends Pick<UseBuildInfraFormRespo
237
237
  }
238
238
  export interface CreateBuildInfraServiceConfigurationType {
239
239
  key: BuildInfraConfigTypes;
240
- value: string;
240
+ value: string | number;
241
241
  active: boolean;
242
242
  unit?: string;
243
243
  /**
package/dist/index.js CHANGED
@@ -29117,7 +29117,7 @@ var getBuildInfraProfilePayload = function (profileInput) {
29117
29117
  acc.push({
29118
29118
  id: configuration.id,
29119
29119
  key: key,
29120
- value: configuration.value,
29120
+ value: Number(configuration.value),
29121
29121
  unit: configuration.unit,
29122
29122
  active: configuration.active,
29123
29123
  });
@@ -29399,6 +29399,7 @@ var useBuildInfraForm = function (_a) {
29399
29399
  setProfileInputErrors(getInitialProfileInputErrors(fromCreateView));
29400
29400
  }
29401
29401
  }, [profileResponse, isLoading]);
29402
+ // NOTE: Currently sending and receiving values as string, but will parse it to number for payload
29402
29403
  var handleProfileInputChange = function (_a) {
29403
29404
  var action = _a.action, data = _a.data;
29404
29405
  var currentInput = __assign({}, profileInput);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.58-beta-4",
3
+ "version": "0.0.58-beta-5",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -133,7 +133,7 @@ const getBuildInfraProfilePayload = (
133
133
  acc.push({
134
134
  id: configuration.id,
135
135
  key,
136
- value: configuration.value,
136
+ value: Number(configuration.value),
137
137
  unit: configuration.unit,
138
138
  active: configuration.active,
139
139
  })
@@ -282,7 +282,7 @@ export interface CreateBuildInfraProfileType extends Pick<UseBuildInfraFormRespo
282
282
 
283
283
  export interface CreateBuildInfraServiceConfigurationType {
284
284
  key: BuildInfraConfigTypes
285
- value: string
285
+ value: string | number
286
286
  active: boolean
287
287
  unit?: string
288
288
  /**
@@ -172,6 +172,7 @@ export const useBuildInfraForm = ({
172
172
  }
173
173
  }, [profileResponse, isLoading])
174
174
 
175
+ // NOTE: Currently sending and receiving values as string, but will parse it to number for payload
175
176
  const handleProfileInputChange = ({ action, data }: HandleProfileInputChangeType) => {
176
177
  const currentInput = { ...profileInput }
177
178
  const currentInputErrors = { ...profileInputErrors }