@osdk/generator-converters 2.5.2 → 2.6.0-beta.10
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/CHANGELOG.md +69 -28
- package/build/browser/valueFormatting/commonValueFormattingUtils.js +33 -0
- package/build/browser/valueFormatting/commonValueFormattingUtils.js.map +1 -0
- package/build/browser/valueFormatting/convertBooleanValueFormattingRule.js +24 -0
- package/build/browser/valueFormatting/convertBooleanValueFormattingRule.js.map +1 -0
- package/build/browser/valueFormatting/convertDateAndTimestampValueFormattingRule.js +62 -0
- package/build/browser/valueFormatting/convertDateAndTimestampValueFormattingRule.js.map +1 -0
- package/build/browser/valueFormatting/convertKnownTypeValueFormattingRule.js +39 -0
- package/build/browser/valueFormatting/convertKnownTypeValueFormattingRule.js.map +1 -0
- package/build/browser/valueFormatting/convertNumberValueFormattingRule.js +133 -0
- package/build/browser/valueFormatting/convertNumberValueFormattingRule.js.map +1 -0
- package/build/browser/wirePropertyFormattingToSdkFormatting.js +49 -0
- package/build/browser/wirePropertyFormattingToSdkFormatting.js.map +1 -0
- package/build/browser/wirePropertyFormattingToSdkFormatting.test.js +344 -0
- package/build/browser/wirePropertyFormattingToSdkFormatting.test.js.map +1 -0
- package/build/browser/wirePropertyV2ToSdkPropertyDefinition.js +5 -2
- package/build/browser/wirePropertyV2ToSdkPropertyDefinition.js.map +1 -1
- package/build/cjs/index.cjs +237 -2
- package/build/cjs/index.cjs.map +1 -1
- package/build/esm/valueFormatting/commonValueFormattingUtils.js +33 -0
- package/build/esm/valueFormatting/commonValueFormattingUtils.js.map +1 -0
- package/build/esm/valueFormatting/convertBooleanValueFormattingRule.js +24 -0
- package/build/esm/valueFormatting/convertBooleanValueFormattingRule.js.map +1 -0
- package/build/esm/valueFormatting/convertDateAndTimestampValueFormattingRule.js +62 -0
- package/build/esm/valueFormatting/convertDateAndTimestampValueFormattingRule.js.map +1 -0
- package/build/esm/valueFormatting/convertKnownTypeValueFormattingRule.js +39 -0
- package/build/esm/valueFormatting/convertKnownTypeValueFormattingRule.js.map +1 -0
- package/build/esm/valueFormatting/convertNumberValueFormattingRule.js +133 -0
- package/build/esm/valueFormatting/convertNumberValueFormattingRule.js.map +1 -0
- package/build/esm/wirePropertyFormattingToSdkFormatting.js +49 -0
- package/build/esm/wirePropertyFormattingToSdkFormatting.js.map +1 -0
- package/build/esm/wirePropertyFormattingToSdkFormatting.test.js +344 -0
- package/build/esm/wirePropertyFormattingToSdkFormatting.test.js.map +1 -0
- package/build/esm/wirePropertyV2ToSdkPropertyDefinition.js +5 -2
- package/build/esm/wirePropertyV2ToSdkPropertyDefinition.js.map +1 -1
- package/build/types/valueFormatting/commonValueFormattingUtils.d.ts +3 -0
- package/build/types/valueFormatting/commonValueFormattingUtils.d.ts.map +1 -0
- package/build/types/valueFormatting/convertBooleanValueFormattingRule.d.ts +3 -0
- package/build/types/valueFormatting/convertBooleanValueFormattingRule.d.ts.map +1 -0
- package/build/types/valueFormatting/convertDateAndTimestampValueFormattingRule.d.ts +4 -0
- package/build/types/valueFormatting/convertDateAndTimestampValueFormattingRule.d.ts.map +1 -0
- package/build/types/valueFormatting/convertKnownTypeValueFormattingRule.d.ts +3 -0
- package/build/types/valueFormatting/convertKnownTypeValueFormattingRule.d.ts.map +1 -0
- package/build/types/valueFormatting/convertNumberValueFormattingRule.d.ts +3 -0
- package/build/types/valueFormatting/convertNumberValueFormattingRule.d.ts.map +1 -0
- package/build/types/wirePropertyFormattingToSdkFormatting.d.ts +8 -0
- package/build/types/wirePropertyFormattingToSdkFormatting.d.ts.map +1 -0
- package/build/types/wirePropertyFormattingToSdkFormatting.test.d.ts +1 -0
- package/build/types/wirePropertyFormattingToSdkFormatting.test.d.ts.map +1 -0
- package/build/types/wirePropertyV2ToSdkPropertyDefinition.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import { wirePropertyFormattingToSdkFormatting } from "./wirePropertyFormattingToSdkFormatting.js";
|
|
17
18
|
export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true, log) {
|
|
18
19
|
const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType, log);
|
|
19
20
|
if (sdkPropDefinition == null) {
|
|
@@ -46,7 +47,8 @@ export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true,
|
|
|
46
47
|
description: input.description,
|
|
47
48
|
type: sdkPropDefinition,
|
|
48
49
|
nullable: input.nullable == null ? isNullable : input.nullable,
|
|
49
|
-
valueTypeApiName: input.valueTypeApiName
|
|
50
|
+
valueTypeApiName: input.valueTypeApiName,
|
|
51
|
+
valueFormatting: input.valueFormatting != null ? wirePropertyFormattingToSdkFormatting(input.valueFormatting, log) : undefined
|
|
50
52
|
};
|
|
51
53
|
case "array":
|
|
52
54
|
{
|
|
@@ -56,7 +58,8 @@ export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true,
|
|
|
56
58
|
description: input.description,
|
|
57
59
|
type: sdkPropDefinition,
|
|
58
60
|
nullable: true,
|
|
59
|
-
valueTypeApiName: input.valueTypeApiName
|
|
61
|
+
valueTypeApiName: input.valueTypeApiName,
|
|
62
|
+
valueFormatting: input.valueFormatting != null ? wirePropertyFormattingToSdkFormatting(input.valueFormatting, log) : undefined
|
|
60
63
|
};
|
|
61
64
|
}
|
|
62
65
|
case "cipherText":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.js","names":["wirePropertyV2ToSdkPropertyDefinition","input","isNullable","log","sdkPropDefinition","objectPropertyTypeToSdkPropertyDefinition","dataType","undefined","type","displayName","multiplicity","description","nullable","valueTypeApiName","info","JSON","stringify","propertyType","subType","itemType","structFieldTypes","reduce","structMap","structField","apiName"],"sources":["wirePropertyV2ToSdkPropertyDefinition.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n BaseWirePropertyTypes,\n ObjectMetadata,\n WirePropertyTypes,\n} from \"@osdk/api\";\nimport type {\n ObjectPropertyType,\n PropertyV2,\n SharedPropertyType,\n} from \"@osdk/foundry.ontologies\";\n\nexport function wirePropertyV2ToSdkPropertyDefinition(\n input: (PropertyV2 | SharedPropertyType) & { nullable?: boolean },\n isNullable: boolean = true,\n log?: { info: (msg: string) => void },\n): ObjectMetadata.Property | undefined {\n const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(\n input.dataType,\n log,\n );\n if (sdkPropDefinition == null) {\n return undefined;\n }\n switch (input.dataType.type) {\n case \"integer\":\n case \"string\":\n case \"byte\":\n case \"decimal\":\n case \"double\":\n case \"float\":\n case \"long\":\n case \"short\":\n case \"boolean\":\n case \"date\":\n case \"attachment\":\n case \"mediaReference\":\n case \"geopoint\":\n case \"geoshape\":\n case \"timestamp\":\n case \"timeseries\":\n case \"marking\":\n case \"geotimeSeriesReference\":\n case \"struct\":\n case \"vector\":\n return {\n displayName: input.displayName,\n multiplicity: false,\n description: input.description,\n type: sdkPropDefinition,\n nullable: input.nullable == null ? isNullable : input.nullable,\n valueTypeApiName: input.valueTypeApiName,\n };\n case \"array\": {\n return {\n displayName: input.displayName,\n multiplicity: true,\n description: input.description,\n type: sdkPropDefinition,\n nullable: true,\n valueTypeApiName: input.valueTypeApiName,\n };\n }\n case \"cipherText\": {\n log?.info(\n `${JSON.stringify(input.dataType.type)} is not a supported dataType`,\n );\n\n return undefined;\n }\n\n default:\n const _: never = input.dataType;\n log?.info(\n `${JSON.stringify(input.dataType)} is not a supported dataType`,\n );\n\n return undefined;\n }\n}\n\nfunction objectPropertyTypeToSdkPropertyDefinition(\n propertyType: ObjectPropertyType,\n log?: { info: (msg: string) => void },\n): WirePropertyTypes | undefined {\n switch (propertyType.type) {\n case \"integer\":\n case \"string\":\n case \"byte\":\n case \"decimal\":\n case \"double\":\n case \"float\":\n case \"long\":\n case \"short\":\n case \"boolean\":\n case \"attachment\":\n case \"geopoint\":\n case \"geoshape\":\n case \"timestamp\":\n case \"marking\":\n case \"geotimeSeriesReference\":\n case \"mediaReference\":\n case \"vector\":\n return propertyType.type;\n case \"date\":\n return \"datetime\";\n case \"array\":\n return objectPropertyTypeToSdkPropertyDefinition(propertyType.subType);\n case \"timeseries\":\n if (propertyType.itemType?.type === \"string\") {\n return \"stringTimeseries\";\n } else if (propertyType.itemType?.type === \"double\") {\n return \"numericTimeseries\";\n } else return \"sensorTimeseries\";\n case \"struct\": {\n return propertyType.structFieldTypes.reduce(\n (structMap: Record<string, BaseWirePropertyTypes>, structField) => {\n structMap[structField.apiName] =\n objectPropertyTypeToSdkPropertyDefinition(\n structField.dataType,\n ) as BaseWirePropertyTypes;\n return structMap;\n },\n {},\n );\n }\n case \"cipherText\": {\n log?.info(\n `${JSON.stringify(propertyType.type)} is not a supported propertyType`,\n );\n\n return undefined;\n }\n default: {\n const _: never = propertyType;\n log?.info(\n `${JSON.stringify(propertyType)} is not a supported propertyType`,\n );\n\n return undefined;\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;
|
|
1
|
+
{"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.js","names":["wirePropertyFormattingToSdkFormatting","wirePropertyV2ToSdkPropertyDefinition","input","isNullable","log","sdkPropDefinition","objectPropertyTypeToSdkPropertyDefinition","dataType","undefined","type","displayName","multiplicity","description","nullable","valueTypeApiName","valueFormatting","info","JSON","stringify","propertyType","subType","itemType","structFieldTypes","reduce","structMap","structField","apiName"],"sources":["wirePropertyV2ToSdkPropertyDefinition.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n BaseWirePropertyTypes,\n ObjectMetadata,\n WirePropertyTypes,\n} from \"@osdk/api\";\nimport type {\n ObjectPropertyType,\n PropertyV2,\n SharedPropertyType,\n} from \"@osdk/foundry.ontologies\";\nimport { wirePropertyFormattingToSdkFormatting } from \"./wirePropertyFormattingToSdkFormatting.js\";\n\nexport function wirePropertyV2ToSdkPropertyDefinition(\n input: (PropertyV2 | SharedPropertyType) & { nullable?: boolean },\n isNullable: boolean = true,\n log?: { info: (msg: string) => void },\n): ObjectMetadata.Property | undefined {\n const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(\n input.dataType,\n log,\n );\n if (sdkPropDefinition == null) {\n return undefined;\n }\n switch (input.dataType.type) {\n case \"integer\":\n case \"string\":\n case \"byte\":\n case \"decimal\":\n case \"double\":\n case \"float\":\n case \"long\":\n case \"short\":\n case \"boolean\":\n case \"date\":\n case \"attachment\":\n case \"mediaReference\":\n case \"geopoint\":\n case \"geoshape\":\n case \"timestamp\":\n case \"timeseries\":\n case \"marking\":\n case \"geotimeSeriesReference\":\n case \"struct\":\n case \"vector\":\n return {\n displayName: input.displayName,\n multiplicity: false,\n description: input.description,\n type: sdkPropDefinition,\n nullable: input.nullable == null ? isNullable : input.nullable,\n valueTypeApiName: input.valueTypeApiName,\n valueFormatting: input.valueFormatting != null\n ? wirePropertyFormattingToSdkFormatting(input.valueFormatting, log)\n : undefined,\n };\n case \"array\": {\n return {\n displayName: input.displayName,\n multiplicity: true,\n description: input.description,\n type: sdkPropDefinition,\n nullable: true,\n valueTypeApiName: input.valueTypeApiName,\n valueFormatting: input.valueFormatting != null\n ? wirePropertyFormattingToSdkFormatting(input.valueFormatting, log)\n : undefined,\n };\n }\n case \"cipherText\": {\n log?.info(\n `${JSON.stringify(input.dataType.type)} is not a supported dataType`,\n );\n\n return undefined;\n }\n\n default:\n const _: never = input.dataType;\n log?.info(\n `${JSON.stringify(input.dataType)} is not a supported dataType`,\n );\n\n return undefined;\n }\n}\n\nfunction objectPropertyTypeToSdkPropertyDefinition(\n propertyType: ObjectPropertyType,\n log?: { info: (msg: string) => void },\n): WirePropertyTypes | undefined {\n switch (propertyType.type) {\n case \"integer\":\n case \"string\":\n case \"byte\":\n case \"decimal\":\n case \"double\":\n case \"float\":\n case \"long\":\n case \"short\":\n case \"boolean\":\n case \"attachment\":\n case \"geopoint\":\n case \"geoshape\":\n case \"timestamp\":\n case \"marking\":\n case \"geotimeSeriesReference\":\n case \"mediaReference\":\n case \"vector\":\n return propertyType.type;\n case \"date\":\n return \"datetime\";\n case \"array\":\n return objectPropertyTypeToSdkPropertyDefinition(propertyType.subType);\n case \"timeseries\":\n if (propertyType.itemType?.type === \"string\") {\n return \"stringTimeseries\";\n } else if (propertyType.itemType?.type === \"double\") {\n return \"numericTimeseries\";\n } else return \"sensorTimeseries\";\n case \"struct\": {\n return propertyType.structFieldTypes.reduce(\n (structMap: Record<string, BaseWirePropertyTypes>, structField) => {\n structMap[structField.apiName] =\n objectPropertyTypeToSdkPropertyDefinition(\n structField.dataType,\n ) as BaseWirePropertyTypes;\n return structMap;\n },\n {},\n );\n }\n case \"cipherText\": {\n log?.info(\n `${JSON.stringify(propertyType.type)} is not a supported propertyType`,\n );\n\n return undefined;\n }\n default: {\n const _: never = propertyType;\n log?.info(\n `${JSON.stringify(propertyType)} is not a supported propertyType`,\n );\n\n return undefined;\n }\n }\n}\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AAK,QAAQ,EAAE;QAC5C,OAAO,kBAAkB;MAC3B,CAAC,MAAM,IAAIU,YAAY,CAACE,QAAQ,EAAEZ,IAAI,KAAK,QAAQ,EAAE;QACnD,OAAO,mBAAmB;MAC5B,CAAC,MAAM,OAAO,kBAAkB;IAClC,KAAK,QAAQ;MAAE;QACb,OAAOU,YAAY,CAACG,gBAAgB,CAACC,MAAM,CACzC,CAACC,SAAgD,EAAEC,WAAW,KAAK;UACjED,SAAS,CAACC,WAAW,CAACC,OAAO,CAAC,GAC5BpB,yCAAyC,CACvCmB,WAAW,CAAClB,QACd,CAA0B;UAC5B,OAAOiB,SAAS;QAClB,CAAC,EACD,CAAC,CACH,CAAC;MACH;IACA,KAAK,YAAY;MAAE;QACjBpB,GAAG,EAAEY,IAAI,CACP,GAAGC,IAAI,CAACC,SAAS,CAACC,YAAY,CAACV,IAAI,CAAC,kCACtC,CAAC;QAED,OAAOD,SAAS;MAClB;IACA;MAAS;QAEPJ,GAAG,EAAEY,IAAI,CACP,GAAGC,IAAI,CAACC,SAAS,CAACC,YAAY,CAAC,kCACjC,CAAC;QAED,OAAOX,SAAS;MAClB;EACF;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PropertyTypeReferenceOrStringConstant } from "@osdk/api";
|
|
2
|
+
import type * as Ontologies from "@osdk/foundry.ontologies";
|
|
3
|
+
export declare function convertPropertyTypeReferenceOrStringConstant(value: Ontologies.PropertyTypeReferenceOrStringConstant): PropertyTypeReferenceOrStringConstant;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAAc,6CAA6C,WAAY;AACvE,iBAAiB,gBAAgB,0BAA2B;AAE5D,OAAO,iBAAS,6CACdA,OAAO,WAAW,wCACjB","names":["value: Ontologies.PropertyTypeReferenceOrStringConstant"],"sources":["../../../src/valueFormatting/commonValueFormattingUtils.ts"],"version":3,"file":"commonValueFormattingUtils.d.ts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAAc,qCAAqC,WAAY;AAC/D,iBAAiB,gBAAgB,0BAA2B;AAE5D,OAAO,iBAAS,6BACdA,gBAAgB,WAAW,gCAC1B","names":["wireFormatting: Ontologies.PropertyBooleanFormattingRule"],"sources":["../../../src/valueFormatting/convertBooleanValueFormattingRule.ts"],"version":3,"file":"convertBooleanValueFormattingRule.d.ts"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PropertyDateFormattingRule, PropertyTimestampFormattingRule } from "@osdk/api";
|
|
2
|
+
import type * as Ontologies from "@osdk/foundry.ontologies";
|
|
3
|
+
export declare function convertDateFormattingRule(wireFormatting: Ontologies.PropertyDateFormattingRule): PropertyDateFormattingRule;
|
|
4
|
+
export declare function convertTimestampFormattingRule(wireFormatting: Ontologies.PropertyTimestampFormattingRule): PropertyTimestampFormattingRule;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAGE,4BACA,uCACK,WAAY;AACnB,iBAAiB,gBAAgB,0BAA2B;AAG5D,OAAO,iBAAS,0BACdA,gBAAgB,WAAW,6BAC1B;AAOH,OAAO,iBAAS,+BACdC,gBAAgB,WAAW,kCAC1B","names":["wireFormatting: Ontologies.PropertyDateFormattingRule","wireFormatting: Ontologies.PropertyTimestampFormattingRule"],"sources":["../../../src/valueFormatting/convertDateAndTimestampValueFormattingRule.ts"],"version":3,"file":"convertDateAndTimestampValueFormattingRule.d.ts"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PropertyKnownTypeFormattingRule } from "@osdk/api";
|
|
2
|
+
import type * as Ontologies from "@osdk/foundry.ontologies";
|
|
3
|
+
export declare function convertKnownTypeFormattingRule(wireFormatting: Ontologies.PropertyKnownTypeFormattingRule): PropertyKnownTypeFormattingRule | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAAc,uCAAuC,WAAY;AACjE,iBAAiB,gBAAgB,0BAA2B;AAE5D,OAAO,iBAAS,+BACdA,gBAAgB,WAAW,kCAC1B","names":["wireFormatting: Ontologies.PropertyKnownTypeFormattingRule"],"sources":["../../../src/valueFormatting/convertKnownTypeValueFormattingRule.ts"],"version":3,"file":"convertKnownTypeValueFormattingRule.d.ts"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PropertyNumberFormattingRule } from "@osdk/api";
|
|
2
|
+
import type * as Ontologies from "@osdk/foundry.ontologies";
|
|
3
|
+
export declare function convertNumberFormattingRule(wireFormatting: Ontologies.PropertyNumberFormattingRule): PropertyNumberFormattingRule | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAGE,oCAEK,WAAY;AACnB,iBAAiB,gBAAgB,0BAA2B;AAG5D,OAAO,iBAAS,4BACdA,gBAAgB,WAAW,+BAC1B","names":["wireFormatting: Ontologies.PropertyNumberFormattingRule"],"sources":["../../../src/valueFormatting/convertNumberValueFormattingRule.ts"],"version":3,"file":"convertNumberValueFormattingRule.d.ts"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropertyValueFormattingRule } from "@osdk/api";
|
|
2
|
+
import type * as Ontologies from "@osdk/foundry.ontologies";
|
|
3
|
+
/**
|
|
4
|
+
* Converts a PropertyValueFormattingRule from the ontologies format to the SDK format
|
|
5
|
+
*/
|
|
6
|
+
export declare function wirePropertyFormattingToSdkFormatting(wireFormatting: Ontologies.PropertyValueFormattingRule, log?: {
|
|
7
|
+
info: (msg: string) => void
|
|
8
|
+
}): PropertyValueFormattingRule | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAAc,mCAAmC,WAAY;AAC7D,iBAAiB,gBAAgB,0BAA2B;;;;AAY5D,OAAO,iBAAS,sCACdA,gBAAgB,WAAW,6BAC3BC,MAAM;CAAE,OAAOC;AAAsB,IACpC","names":["wireFormatting: Ontologies.PropertyValueFormattingRule","log?: { info: (msg: string) => void }","msg: string"],"sources":["../../src/wirePropertyFormattingToSdkFormatting.ts"],"version":3,"file":"wirePropertyFormattingToSdkFormatting.d.ts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"","names":[],"sources":["../../src/wirePropertyFormattingToSdkFormatting.test.ts"],"version":3,"file":"wirePropertyFormattingToSdkFormatting.test.d.ts"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAEE,sBAEK,WAAY;AACnB,cAEE,YACA,0BACK,0BAA2B;
|
|
1
|
+
{"mappings":"AAgBA,cAEE,sBAEK,WAAY;AACnB,cAEE,YACA,0BACK,0BAA2B;AAGlC,OAAO,iBAAS,sCACdA,QAAQ,aAAa,sBAAsB;CAAE;AAAoB,GACjEC,sBACAC,MAAM;CAAE,OAAOC;AAAsB,IACpC,eAAe","names":["input: (PropertyV2 | SharedPropertyType) & { nullable?: boolean }","isNullable: boolean","log?: { info: (msg: string) => void }","msg: string"],"sources":["../../src/wirePropertyV2ToSdkPropertyDefinition.ts"],"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/generator-converters",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0-beta.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@osdk/foundry.ontologies": "2.
|
|
33
|
-
"@osdk/api": "~2.
|
|
32
|
+
"@osdk/foundry.ontologies": "2.40.0",
|
|
33
|
+
"@osdk/api": "~2.6.0-beta.10"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"ts-expect": "^1.3.0",
|
|
37
37
|
"typescript": "~5.5.4",
|
|
38
38
|
"vitest": "^3.2.4",
|
|
39
|
-
"@osdk/monorepo.
|
|
40
|
-
"@osdk/monorepo.
|
|
39
|
+
"@osdk/monorepo.api-extractor": "~0.5.0-beta.1",
|
|
40
|
+
"@osdk/monorepo.tsconfig": "~0.5.0-beta.1"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|