@osdk/generator-converters 2.1.0-beta.22 → 2.1.0-beta.23

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @osdk/generator-converters
2
2
 
3
+ ## 2.1.0-beta.23
4
+
5
+ ### Minor Changes
6
+
7
+ - d794c19: Adding support for struct action params.
8
+ - f0b519d: Upgrade to vitest 3 and vite 6
9
+ - 62c1d63: Add support for reading media reference property in OSDK.
10
+ - d665147: Update platform sdk deps
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [d794c19]
15
+ - Updated dependencies [62c1d63]
16
+ - @osdk/api@2.1.0-beta.23
17
+
3
18
  ## 2.1.0-beta.22
4
19
 
5
20
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.d.ts","sourceRoot":"","sources":["../../src/wireActionTypeV2ToSdkActionMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,YAAY,GAClB,cAAc,CAmBhB"}
1
+ {"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.d.ts","sourceRoot":"","sources":["../../src/wireActionTypeV2ToSdkActionMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAiC,MAAM,WAAW,CAAC;AAC/E,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,YAAY,GAClB,cAAc,CAmBhB"}
@@ -60,6 +60,14 @@ function actionPropertyToSdkPropertyDefinition(parameterType) {
60
60
  };
61
61
  case "array":
62
62
  return actionPropertyToSdkPropertyDefinition(parameterType.subType);
63
+ case "struct":
64
+ return {
65
+ type: "struct",
66
+ struct: parameterType.fields.reduce((structMap, structField) => {
67
+ structMap[structField.name] = actionPropertyToSdkPropertyDefinition(structField.fieldType);
68
+ return structMap;
69
+ }, {})
70
+ };
63
71
  default:
64
72
  throw new Error(`Unsupported action parameter type: ${parameterType.type}`);
65
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.js","names":["getModifiedEntityTypes","wireActionTypeV2ToSdkActionMetadata","input","modifiedEntityTypes","type","apiName","parameters","Object","fromEntries","entries","map","key","value","wireActionParameterV2ToSdkParameterDefinition","displayName","description","modifiedEntities","createModifiedEntities","addedObjects","modifiedObjects","rid","status","multiplicity","dataType","actionPropertyToSdkPropertyDefinition","subType","nullable","required","parameterType","objectSet","objectTypeApiName","object","Error","entities","created","modified"],"sources":["wireActionTypeV2ToSdkActionMetadata.js"],"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 */\nimport { getModifiedEntityTypes } from \"./getEditedEntities.js\";\nexport function wireActionTypeV2ToSdkActionMetadata(input) {\n const modifiedEntityTypes = getModifiedEntityTypes(input);\n return {\n type: \"action\",\n apiName: input.apiName,\n parameters: Object.fromEntries(Object.entries(input.parameters).map(([key, value]) => [key, wireActionParameterV2ToSdkParameterDefinition(value)])),\n displayName: input.displayName,\n description: input.description,\n modifiedEntities: createModifiedEntities(modifiedEntityTypes.addedObjects, modifiedEntityTypes.modifiedObjects),\n rid: input.rid,\n status: input.status,\n };\n}\nfunction wireActionParameterV2ToSdkParameterDefinition(value) {\n return {\n multiplicity: value.dataType.type === \"array\",\n type: actionPropertyToSdkPropertyDefinition(value.dataType.type === \"array\" ? value.dataType.subType : value.dataType),\n nullable: !value.required,\n description: value.description,\n };\n}\nfunction actionPropertyToSdkPropertyDefinition(parameterType) {\n switch (parameterType.type) {\n case \"string\":\n case \"boolean\":\n case \"attachment\":\n case \"double\":\n case \"integer\":\n case \"long\":\n case \"timestamp\":\n case \"marking\":\n return parameterType.type;\n case \"date\":\n return \"datetime\";\n case \"objectSet\":\n return { type: \"objectSet\", objectSet: parameterType.objectTypeApiName };\n case \"object\":\n return { type: \"object\", object: parameterType.objectTypeApiName };\n case \"array\":\n return actionPropertyToSdkPropertyDefinition(parameterType.subType);\n default:\n throw new Error(`Unsupported action parameter type: ${parameterType.type}`);\n }\n}\nfunction createModifiedEntities(addedObjects, modifiedObjects) {\n const entities = {};\n for (const key of addedObjects) {\n entities[key] = { created: true, modified: false };\n }\n for (const key of modifiedObjects) {\n if (entities[key]) {\n entities[key].modified = true;\n }\n else {\n entities[key] = { created: false, modified: true };\n }\n }\n return entities;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,sBAAsB,QAAQ,wBAAwB;AAC/D,OAAO,SAASC,mCAAmCA,CAACC,KAAK,EAAE;EACvD,MAAMC,mBAAmB,GAAGH,sBAAsB,CAACE,KAAK,CAAC;EACzD,OAAO;IACHE,IAAI,EAAE,QAAQ;IACdC,OAAO,EAAEH,KAAK,CAACG,OAAO;IACtBC,UAAU,EAAEC,MAAM,CAACC,WAAW,CAACD,MAAM,CAACE,OAAO,CAACP,KAAK,CAACI,UAAU,CAAC,CAACI,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK,CAACD,GAAG,EAAEE,6CAA6C,CAACD,KAAK,CAAC,CAAC,CAAC,CAAC;IACnJE,WAAW,EAAEZ,KAAK,CAACY,WAAW;IAC9BC,WA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SAASa,sBAAsBA,CAACC,YAAY,EAAEC,eAAe,EAAE;EAC3D,MAAMc,QAAQ,GAAG,CAAC,CAAC;EACnB,KAAK,MAAMtB,GAAG,IAAIO,YAAY,EAAE;IAC5Be,QAAQ,CAACtB,GAAG,CAAC,GAAG;MAAEuB,OAAO,EAAE,IAAI;MAAEC,QAAQ,EAAE;IAAM,CAAC;EACtD;EACA,KAAK,MAAMxB,GAAG,IAAIQ,eAAe,EAAE;IAC/B,IAAIc,QAAQ,CAACtB,GAAG,CAAC,EAAE;MACfsB,QAAQ,CAACtB,GAAG,CAAC,CAACwB,QAAQ,GAAG,IAAI;IACjC,CAAC,MACI;MACDF,QAAQ,CAACtB,GAAG,CAAC,GAAG;QAAEuB,OAAO,EAAE,KAAK;QAAEC,QAAQ,EAAE;MAAK,CAAC;IACtD;EACJ;EACA,OAAOF,QAAQ;AACnB","ignoreList":[]}
1
+ {"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.js","names":["getModifiedEntityTypes","wireActionTypeV2ToSdkActionMetadata","input","modifiedEntityTypes","type","apiName","parameters","Object","fromEntries","entries","map","key","value","wireActionParameterV2ToSdkParameterDefinition","displayName","description","modifiedEntities","createModifiedEntities","addedObjects","modifiedObjects","rid","status","multiplicity","dataType","actionPropertyToSdkPropertyDefinition","subType","nullable","required","parameterType","objectSet","objectTypeApiName","object","struct","fields","reduce","structMap","structField","name","fieldType","Error","entities","created","modified"],"sources":["wireActionTypeV2ToSdkActionMetadata.js"],"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 */\nimport { getModifiedEntityTypes } from \"./getEditedEntities.js\";\nexport function wireActionTypeV2ToSdkActionMetadata(input) {\n const modifiedEntityTypes = getModifiedEntityTypes(input);\n return {\n type: \"action\",\n apiName: input.apiName,\n parameters: Object.fromEntries(Object.entries(input.parameters).map(([key, value]) => [key, wireActionParameterV2ToSdkParameterDefinition(value)])),\n displayName: input.displayName,\n description: input.description,\n modifiedEntities: createModifiedEntities(modifiedEntityTypes.addedObjects, modifiedEntityTypes.modifiedObjects),\n rid: input.rid,\n status: input.status,\n };\n}\nfunction wireActionParameterV2ToSdkParameterDefinition(value) {\n return {\n multiplicity: value.dataType.type === \"array\",\n type: actionPropertyToSdkPropertyDefinition(value.dataType.type === \"array\" ? value.dataType.subType : value.dataType),\n nullable: !value.required,\n description: value.description,\n };\n}\nfunction actionPropertyToSdkPropertyDefinition(parameterType) {\n switch (parameterType.type) {\n case \"string\":\n case \"boolean\":\n case \"attachment\":\n case \"double\":\n case \"integer\":\n case \"long\":\n case \"timestamp\":\n case \"marking\":\n return parameterType.type;\n case \"date\":\n return \"datetime\";\n case \"objectSet\":\n return { type: \"objectSet\", objectSet: parameterType.objectTypeApiName };\n case \"object\":\n return { type: \"object\", object: parameterType.objectTypeApiName };\n case \"array\":\n return actionPropertyToSdkPropertyDefinition(parameterType.subType);\n case \"struct\":\n return {\n type: \"struct\",\n struct: parameterType.fields.reduce((structMap, structField) => {\n structMap[structField.name] = actionPropertyToSdkPropertyDefinition(structField.fieldType);\n return structMap;\n }, {}),\n };\n default:\n throw new Error(`Unsupported action parameter type: ${parameterType.type}`);\n }\n}\nfunction createModifiedEntities(addedObjects, modifiedObjects) {\n const entities = {};\n for (const key of addedObjects) {\n entities[key] = { created: true, modified: false };\n }\n for (const key of modifiedObjects) {\n if (entities[key]) {\n entities[key].modified = true;\n }\n else {\n entities[key] = { created: false, modified: true };\n }\n }\n return entities;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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CAAC,GAAG;QAAE8B,OAAO,EAAE,KAAK;QAAEC,QAAQ,EAAE;MAAK,CAAC;IACtD;EACJ;EACA,OAAOF,QAAQ;AACnB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.ts","sourceRoot":"","sources":["../../src/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,wBAAgB,2CAA2C,CACzD,KAAK,EAAE,UAAU,GAChB,eAAe,CAsCjB"}
1
+ {"version":3,"file":"wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.ts","sourceRoot":"","sources":["../../src/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,wBAAgB,2CAA2C,CACzD,KAAK,EAAE,UAAU,GAChB,eAAe,CAuCjB"}
@@ -42,6 +42,7 @@ export function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
42
42
  case "marking":
43
43
  case "float":
44
44
  case "geotimeSeriesReference":
45
+ case "cipherText":
45
46
  case "mediaReference":
46
47
  case "struct":
47
48
  case "cipherText":
@@ -1 +1 @@
1
- {"version":3,"file":"wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js","names":["wirePropertyV2ToSdkPrimaryKeyTypeDefinition","input","dataType","type","Error"],"sources":["wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js"],"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 */\nexport function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {\n switch (input.dataType.type) {\n case \"integer\":\n case \"double\":\n case \"string\":\n case \"boolean\":\n case \"byte\":\n case \"long\":\n case \"short\": {\n return input.dataType.type;\n }\n case \"date\": {\n return \"datetime\";\n }\n case \"timestamp\": {\n return \"timestamp\";\n }\n case \"geopoint\":\n case \"geoshape\":\n case \"decimal\":\n case \"attachment\":\n case \"timeseries\":\n case \"array\":\n case \"marking\":\n case \"float\":\n case \"geotimeSeriesReference\":\n case \"mediaReference\":\n case \"struct\":\n case \"cipherText\":\n throw new Error(`Type not supported for primaryKey: ${input.dataType.type}`);\n default:\n const _ = input.dataType;\n throw new Error(`Unknown type encountered for primaryKey: ${input.dataType}`);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,2CAA2CA,CAACC,KAAK,EAAE;EAC/D,QAAQA,KAAK,CAACC,QAAQ,CAACC,IAAI;IACvB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,MAAM;IACX,KAAK,OAAO;MAAE;QACV,OAAOF,KAAK,CAACC,QAAQ,CAACC,IAAI;MAC9B;IACA,KAAK,MAAM;MAAE;QACT,OAAO,UAAU;MACrB;IACA,KAAK,WAAW;MAAE;QACd,OAAO,WAAW;MACtB;IACA,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,SAAS;IACd,KAAK,YAAY;IACjB,KAAK,YAAY;IACjB,KAAK,OAAO;IACZ,KAAK,SAAS;IACd,KAAK,OAAO;IACZ,KAAK,wBAAwB;IAC7B,KAAK,gBAAgB;IACrB,KAAK,QAAQ;IACb,KAAK,YAAY;MACb,MAAM,IAAIC,KAAK,CAAC,sCAAsCH,KAAK,CAACC,QAAQ,CAACC,IAAI,EAAE,CAAC;IAChF;MACcF,KAAK,CAACC,QAAQ;MACxB,MAAM,IAAIE,KAAK,CAAC,4CAA4CH,KAAK,CAACC,QAAQ,EAAE,CAAC;EACrF;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js","names":["wirePropertyV2ToSdkPrimaryKeyTypeDefinition","input","dataType","type","Error"],"sources":["wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js"],"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 */\nexport function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {\n switch (input.dataType.type) {\n case \"integer\":\n case \"double\":\n case \"string\":\n case \"boolean\":\n case \"byte\":\n case \"long\":\n case \"short\": {\n return input.dataType.type;\n }\n case \"date\": {\n return \"datetime\";\n }\n case \"timestamp\": {\n return \"timestamp\";\n }\n case \"geopoint\":\n case \"geoshape\":\n case \"decimal\":\n case \"attachment\":\n case \"timeseries\":\n case \"array\":\n case \"marking\":\n case \"float\":\n case \"geotimeSeriesReference\":\n case \"cipherText\":\n case \"mediaReference\":\n case \"struct\":\n case \"cipherText\":\n throw new Error(`Type not supported for primaryKey: ${input.dataType.type}`);\n default:\n const _ = input.dataType;\n throw new Error(`Unknown type encountered for primaryKey: ${input.dataType}`);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,2CAA2CA,CAACC,KAAK,EAAE;EAC/D,QAAQA,KAAK,CAACC,QAAQ,CAACC,IAAI;IACvB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,MAAM;IACX,KAAK,OAAO;MAAE;QACV,OAAOF,KAAK,CAACC,QAAQ,CAACC,IAAI;MAC9B;IACA,KAAK,MAAM;MAAE;QACT,OAAO,UAAU;MACrB;IACA,KAAK,WAAW;MAAE;QACd,OAAO,WAAW;MACtB;IACA,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,SAAS;IACd,KAAK,YAAY;IACjB,KAAK,YAAY;IACjB,KAAK,OAAO;IACZ,KAAK,SAAS;IACd,KAAK,OAAO;IACZ,KAAK,wBAAwB;IAC7B,KAAK,YAAY;IACjB,KAAK,gBAAgB;IACrB,KAAK,QAAQ;IACb,KAAK,YAAY;MACb,MAAM,IAAIC,KAAK,CAAC,sCAAsCH,KAAK,CAACC,QAAQ,CAACC,IAAI,EAAE,CAAC;IAChF;MACcF,KAAK,CAACC,QAAQ;MACxB,MAAM,IAAIE,KAAK,CAAC,4CAA4CH,KAAK,CAACC,QAAQ,EAAE,CAAC;EACrF;AACJ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.d.ts","sourceRoot":"","sources":["../../src/wirePropertyV2ToSdkPropertyDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,UAAU,EACV,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,CAAC,UAAU,GAAG,kBAAkB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,EACjE,UAAU,GAAE,OAAc,GACzB,cAAc,CAAC,QAAQ,GAAG,SAAS,CAwDrC"}
1
+ {"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.d.ts","sourceRoot":"","sources":["../../src/wirePropertyV2ToSdkPropertyDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,UAAU,EACV,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,CAAC,UAAU,GAAG,kBAAkB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,EACjE,UAAU,GAAE,OAAc,GACzB,cAAc,CAAC,QAAQ,GAAG,SAAS,CAyDrC"}
@@ -23,6 +23,7 @@ export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true)
23
23
  case "integer":
24
24
  case "string":
25
25
  case "byte":
26
+ case "cipherText":
26
27
  case "decimal":
27
28
  case "double":
28
29
  case "float":
@@ -31,6 +32,7 @@ export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true)
31
32
  case "boolean":
32
33
  case "date":
33
34
  case "attachment":
35
+ case "mediaReference":
34
36
  case "geopoint":
35
37
  case "geoshape":
36
38
  case "timestamp":
@@ -56,7 +58,6 @@ export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true)
56
58
  };
57
59
  }
58
60
  case "cipherText":
59
- case "mediaReference":
60
61
  {
61
62
  consola.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);
62
63
  return undefined;
@@ -84,6 +85,7 @@ function objectPropertyTypeToSdkPropertyDefinition(propertyType) {
84
85
  case "timestamp":
85
86
  case "marking":
86
87
  case "geotimeSeriesReference":
88
+ case "mediaReference":
87
89
  return propertyType.type;
88
90
  case "date":
89
91
  return "datetime";
@@ -102,7 +104,6 @@ function objectPropertyTypeToSdkPropertyDefinition(propertyType) {
102
104
  return structMap;
103
105
  }, {});
104
106
  }
105
- case "mediaReference":
106
107
  case "cipherText":
107
108
  {
108
109
  consola.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);
@@ -1 +1 @@
1
- {"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.js","names":["consola","wirePropertyV2ToSdkPropertyDefinition","input","isNullable","sdkPropDefinition","objectPropertyTypeToSdkPropertyDefinition","dataType","undefined","type","displayName","multiplicity","description","nullable","info","JSON","stringify","propertyType","subType","itemType","structFieldTypes","reduce","structMap","structField","apiName"],"sources":["wirePropertyV2ToSdkPropertyDefinition.js"],"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 */\nimport { consola } from \"consola\";\nexport function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true) {\n const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType);\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 \"geopoint\":\n case \"geoshape\":\n case \"timestamp\":\n case \"timeseries\":\n case \"marking\":\n case \"geotimeSeriesReference\":\n case \"struct\":\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 };\n case \"array\": {\n return {\n displayName: input.displayName,\n multiplicity: true,\n description: input.description,\n type: sdkPropDefinition,\n nullable: true,\n };\n }\n case \"cipherText\":\n case \"mediaReference\": {\n consola.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);\n return undefined;\n }\n default:\n const _ = input.dataType;\n consola.info(`${JSON.stringify(input.dataType)} is not a supported dataType`);\n return undefined;\n }\n}\nfunction objectPropertyTypeToSdkPropertyDefinition(propertyType) {\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 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 }\n else if (propertyType.itemType?.type === \"double\") {\n return \"numericTimeseries\";\n }\n else\n return \"sensorTimeseries\";\n case \"struct\": {\n return propertyType.structFieldTypes.reduce((structMap, structField) => {\n structMap[structField.apiName] =\n objectPropertyTypeToSdkPropertyDefinition(structField.dataType);\n return structMap;\n }, {});\n }\n case \"mediaReference\":\n case \"cipherText\": {\n consola.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);\n return undefined;\n }\n default: {\n const _ = propertyType;\n consola.info(`${JSON.stringify(propertyType)} is not a supported propertyType`);\n return undefined;\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,OAAO,SAASC,qCAAqCA,CAACC,KAAK,EAAEC,UAAU,GAAG,IAAI,EAAE;EAC5E,MAAMC,iBAAiB,GAAGC,yCAAyC,CAACH,KAAK,CAACI,QAAQ,CAAC;EACnF,IAAIF,iBAAiB,IAAI,IAAI,EAAE;IAC3B,OAAOG,SAAS;E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"file":"wirePropertyV2ToSdkPropertyDefinition.js","names":["consola","wirePropertyV2ToSdkPropertyDefinition","input","isNullable","sdkPropDefinition","objectPropertyTypeToSdkPropertyDefinition","dataType","undefined","type","displayName","multiplicity","description","nullable","info","JSON","stringify","propertyType","subType","itemType","structFieldTypes","reduce","structMap","structField","apiName"],"sources":["wirePropertyV2ToSdkPropertyDefinition.js"],"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 */\nimport { consola } from \"consola\";\nexport function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true) {\n const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType);\n if (sdkPropDefinition == null) {\n return undefined;\n }\n switch (input.dataType.type) {\n case \"integer\":\n case \"string\":\n case \"byte\":\n case \"cipherText\":\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 return {\n displayName: input.displayName,\n multiplicity: false,\n description: input.description,\n type: sdkPropDefinition,\n nullable: input.nullable == null ? isNullable : input.nullable,\n };\n case \"array\": {\n return {\n displayName: input.displayName,\n multiplicity: true,\n description: input.description,\n type: sdkPropDefinition,\n nullable: true,\n };\n }\n case \"cipherText\": {\n consola.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);\n return undefined;\n }\n default:\n const _ = input.dataType;\n consola.info(`${JSON.stringify(input.dataType)} is not a supported dataType`);\n return undefined;\n }\n}\nfunction objectPropertyTypeToSdkPropertyDefinition(propertyType) {\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 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 }\n else if (propertyType.itemType?.type === \"double\") {\n return \"numericTimeseries\";\n }\n else\n return \"sensorTimeseries\";\n case \"struct\": {\n return propertyType.structFieldTypes.reduce((structMap, structField) => {\n structMap[structField.apiName] =\n objectPropertyTypeToSdkPropertyDefinition(structField.dataType);\n return structMap;\n }, {});\n }\n case \"cipherText\": {\n consola.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);\n return undefined;\n }\n default: {\n const _ = propertyType;\n consola.info(`${JSON.stringify(propertyType)} is not a supported propertyType`);\n return undefined;\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,OAAO,SAASC,qCAAqCA,CAACC,KAAK,EAAEC,UAAU,GAAG,IAAI,EAAE;EAC5E,MAAMC,iBAAiB,GAAGC,yCAAyC,CAACH,KAAK,CAACI,QAAQ,CAAC;EACnF,IAAIF,iBAAiB,IAAI,IAAI,EAAE;IAC3B,OAAOG,SAAS;EACpB;EACA,QAAQL,KAAK,CAACI,QAAQ,CAACE,IAAI;IACvB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,MAAM;IACX,KAAK,YAAY;IACjB,KAAK,SAAS;IACd,KAAK,Q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AK,OAAO;IACZ,KAAK,SAAS;IACd,KAAK,YAAY;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,WAAW;IAChB,KAAK,SAAS;IACd,KAAK,wBAAwB;IAC7B,KAAK,gBAAgB;MACjB,OAAOQ,YAAY,CAACR,IAAI;IAC5B,KAAK,MAAM;MACP,OAAO,UAAU;IACrB,KAAK,OAAO;MACR,OAAOH,yCAAyC,CAACW,YAAY,CAACC,OAAO,CAAC;IAC1E,KAAK,YAAY;MACb,IAAID,YAAY,CAACE,QAAQ,EAAEV,IAAI,KAAK,QAAQ,EAAE;QAC1C,OAAO,kBAAkB;MAC7B,CAAC,MACI,IAAIQ,YAAY,CAACE,QAAQ,EAAEV,IAAI,KAAK,QAAQ,EAAE;QAC/C,OAAO,mBAAmB;MAC9B,CAAC,MAEG,OAAO,kBAAkB;IACjC,KAAK,QAAQ;MAAE;QACX,OAAOQ,YAAY,CAACG,gBAAgB,CAACC,MAAM,CAAC,CAACC,SAAS,EAAEC,WAAW,KAAK;UACpED,SAAS,CAACC,WAAW,CAACC,OAAO,CAAC,GAC1BlB,yCAAyC,CAACiB,WAAW,CAAChB,QAAQ,CAAC;UACnE,OAAOe,SAAS;QACpB,CAAC,EAAE,CAAC,CAAC,CAAC;MACV;IACA,KAAK,YAAY;MAAE;QACfrB,OAAO,CAACa,IAAI,CAAC,GAAGC,IAAI,CAACC,SAAS,CAACC,YAAY,CAACR,IAAI,CAAC,kCAAkC,CAAC;QACpF,OAAOD,SAAS;MACpB;IACA;MAAS;QAELP,OAAO,CAACa,IAAI,CAAC,GAAGC,IAAI,CAACC,SAAS,CAACC,YAAY,CAAC,kCAAkC,CAAC;QAC/E,OAAOT,SAAS;MACpB;EACJ;AACJ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.d.ts","sourceRoot":"","sources":["../../src/wireActionTypeV2ToSdkActionMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,YAAY,GAClB,cAAc,CAmBhB"}
1
+ {"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.d.ts","sourceRoot":"","sources":["../../src/wireActionTypeV2ToSdkActionMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAiC,MAAM,WAAW,CAAC;AAC/E,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,YAAY,GAClB,cAAc,CAmBhB"}
@@ -60,6 +60,14 @@ function actionPropertyToSdkPropertyDefinition(parameterType) {
60
60
  };
61
61
  case "array":
62
62
  return actionPropertyToSdkPropertyDefinition(parameterType.subType);
63
+ case "struct":
64
+ return {
65
+ type: "struct",
66
+ struct: parameterType.fields.reduce((structMap, structField) => {
67
+ structMap[structField.name] = actionPropertyToSdkPropertyDefinition(structField.fieldType);
68
+ return structMap;
69
+ }, {})
70
+ };
63
71
  default:
64
72
  throw new Error(`Unsupported action parameter type: ${parameterType.type}`);
65
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.js","names":["getModifiedEntityTypes","wireActionTypeV2ToSdkActionMetadata","input","modifiedEntityTypes","type","apiName","parameters","Object","fromEntries","entries","map","key","value","wireActionParameterV2ToSdkParameterDefinition","displayName","description","modifiedEntities","createModifiedEntities","addedObjects","modifiedObjects","rid","status","multiplicity","dataType","actionPropertyToSdkPropertyDefinition","subType","nullable","required","parameterType","objectSet","objectTypeApiName","object","Error","entities","created","modified"],"sources":["wireActionTypeV2ToSdkActionMetadata.js"],"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 */\nimport { getModifiedEntityTypes } from \"./getEditedEntities.js\";\nexport function wireActionTypeV2ToSdkActionMetadata(input) {\n const modifiedEntityTypes = getModifiedEntityTypes(input);\n return {\n type: \"action\",\n apiName: input.apiName,\n parameters: Object.fromEntries(Object.entries(input.parameters).map(([key, value]) => [key, wireActionParameterV2ToSdkParameterDefinition(value)])),\n displayName: input.displayName,\n description: input.description,\n modifiedEntities: createModifiedEntities(modifiedEntityTypes.addedObjects, modifiedEntityTypes.modifiedObjects),\n rid: input.rid,\n status: input.status,\n };\n}\nfunction wireActionParameterV2ToSdkParameterDefinition(value) {\n return {\n multiplicity: value.dataType.type === \"array\",\n type: actionPropertyToSdkPropertyDefinition(value.dataType.type === \"array\" ? value.dataType.subType : value.dataType),\n nullable: !value.required,\n description: value.description,\n };\n}\nfunction actionPropertyToSdkPropertyDefinition(parameterType) {\n switch (parameterType.type) {\n case \"string\":\n case \"boolean\":\n case \"attachment\":\n case \"double\":\n case \"integer\":\n case \"long\":\n case \"timestamp\":\n case \"marking\":\n return parameterType.type;\n case \"date\":\n return \"datetime\";\n case \"objectSet\":\n return { type: \"objectSet\", objectSet: parameterType.objectTypeApiName };\n case \"object\":\n return { type: \"object\", object: parameterType.objectTypeApiName };\n case \"array\":\n return actionPropertyToSdkPropertyDefinition(parameterType.subType);\n default:\n throw new Error(`Unsupported action parameter type: ${parameterType.type}`);\n }\n}\nfunction createModifiedEntities(addedObjects, modifiedObjects) {\n const entities = {};\n for (const key of addedObjects) {\n entities[key] = { created: true, modified: false };\n }\n for (const key of modifiedObjects) {\n if (entities[key]) {\n entities[key].modified = true;\n }\n else {\n entities[key] = { created: false, modified: true };\n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I;IACtB,KAAK,QAAQ;IACb,KAAK,SAAS;IACd,KAAK,YAAY;IACjB,KAAK,QAAQ;IACb,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,WAAW;IAChB,KAAK,SAAS;MACV,OAAOwB,aAAa,CAACxB,IAAI;IAC7B,KAAK,MAAM;MACP,OAAO,UAAU;IACrB,KAAK,WAAW;MACZ,OAAO;QAAEA,IAAI,EAAE,WAAW;QAAEyB,SAAS,EAAED,aAAa,CAACE;MAAkB,CAAC;IAC5E,KAAK,QAAQ;MACT,OAAO;QAAE1B,IAAI,EAAE,QAAQ;QAAE2B,MAAM,EAAEH,aAAa,CAACE;MAAkB,CAAC;IACtE,KAAK,OAAO;MACR,OAAON,qCAAqC,CAACI,aAAa,CAACH,OAAO,CAAC;IACvE;MACI,MAAM,IAAIO,KAAK,CAAC,sCAAsCJ,aAAa,CAACxB,IAAI,EAAE,CAAC;EACnF;AACJ;AACA,SAASa,sBAAsBA,CAACC,YAAY,EAAEC,eAAe,EAAE;EAC3D,MAAMc,QAAQ,GAAG,CAAC,CAAC;EACnB,KAAK,MAAMtB,GAAG,IAAIO,YAAY,EAAE;IAC5Be,QAAQ,CAACtB,GAAG,CAAC,GAAG;MAAEuB,OAAO,EAAE,IAAI;MAAEC,QAAQ,EAAE;IAAM,CAAC;EACtD;EACA,KAAK,MAAMxB,GAAG,IAAIQ,eAAe,EAAE;IAC/B,IAAIc,QAAQ,CAACtB,GAAG,CAAC,EAAE;MACfsB,QAAQ,CAACtB,GAAG,CAAC,CAACwB,QAAQ,GAAG,IAAI;IACjC,CAAC,MACI;MACDF,QAAQ,CAACtB,GAAG,CAAC,GAAG;QAAEuB,OAAO,EAAE,KAAK;QAAEC,QAAQ,EAAE;MAAK,CAAC;IACtD;EACJ;EACA,OAAOF,QAAQ;AACnB","ignoreList":[]}
1
+ {"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.js","names":["getModifiedEntityTypes","wireActionTypeV2ToSdkActionMetadata","input","modifiedEntityTypes","type","apiName","parameters","Object","fromEntries","entries","map","key","value","wireActionParameterV2ToSdkParameterDefinition","displayName","description","modifiedEntities","createModifiedEntities","addedObjects","modifiedObjects","rid","status","multiplicity","dataType","actionPropertyToSdkPropertyDefinition","subType","nullable","required","parameterType","objectSet","objectTypeApiName","object","struct","fields","reduce","structMap","structField","name","fieldType","Error","entities","created","modified"],"sources":["wireActionTypeV2ToSdkActionMetadata.js"],"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 */\nimport { getModifiedEntityTypes } from \"./getEditedEntities.js\";\nexport function wireActionTypeV2ToSdkActionMetadata(input) {\n const modifiedEntityTypes = getModifiedEntityTypes(input);\n return {\n type: \"action\",\n apiName: input.apiName,\n parameters: Object.fromEntries(Object.entries(input.parameters).map(([key, value]) => [key, wireActionParameterV2ToSdkParameterDefinition(value)])),\n displayName: input.displayName,\n description: input.description,\n modifiedEntities: createModifiedEntities(modifiedEntityTypes.addedObjects, modifiedEntityTypes.modifiedObjects),\n rid: input.rid,\n status: input.status,\n };\n}\nfunction wireActionParameterV2ToSdkParameterDefinition(value) {\n return {\n multiplicity: value.dataType.type === \"array\",\n type: actionPropertyToSdkPropertyDefinition(value.dataType.type === \"array\" ? value.dataType.subType : value.dataType),\n nullable: !value.required,\n description: value.description,\n };\n}\nfunction actionPropertyToSdkPropertyDefinition(parameterType) {\n switch (parameterType.type) {\n case \"string\":\n case \"boolean\":\n case \"attachment\":\n case \"double\":\n case \"integer\":\n case \"long\":\n case \"timestamp\":\n case \"marking\":\n return parameterType.type;\n case \"date\":\n return \"datetime\";\n case \"objectSet\":\n return { type: \"objectSet\", objectSet: parameterType.objectTypeApiName };\n case \"object\":\n return { type: \"object\", object: parameterType.objectTypeApiName };\n case \"array\":\n return actionPropertyToSdkPropertyDefinition(parameterType.subType);\n case \"struct\":\n return {\n type: \"struct\",\n struct: parameterType.fields.reduce((structMap, structField) => {\n structMap[structField.name] = actionPropertyToSdkPropertyDefinition(structField.fieldType);\n return structMap;\n }, {}),\n };\n default:\n throw new Error(`Unsupported action parameter type: ${parameterType.type}`);\n }\n}\nfunction createModifiedEntities(addedObjects, modifiedObjects) {\n const entities = {};\n for (const key of addedObjects) {\n entities[key] = { created: true, modified: false };\n }\n for (const key of modifiedObjects) {\n if (entities[key]) {\n entities[key].modified = true;\n }\n else {\n entities[key] = { created: false, modified: true };\n }\n }\n return entities;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,sBAAsB,QAAQ,wBAAwB;AAC/D,OAAO,SAASC,mCAAmCA,CAACC,KAAK,EAAE;EACvD,MAAMC,mBAAmB,GAAGH,sBAAsB,CAACE,KAAK,CAAC;EACzD,OAAO;IACHE,IAAI,EAAE,QAAQ;IACdC,OAAO,EAAEH,KAAK,CAACG,OAAO;IACtBC,UAAU,EAAEC,MAAM,CAACC,WAAW,CAACD,MAAM,CAACE,OAAO,CAACP,KAAK,CAACI,UAAU,CAAC,CAACI,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK,CAACD,GAAG,EAAEE,6CAA6C,CAACD,KAAK,CAAC,CAAC,CAAC,CAAC;IACnJE,WAAW,EAAEZ,KAAK,CAACY,WAAW;IAC9BC,WAAW,EAAEb,KAAK,CAACa,WAAW;IAC9BC,gBAAgB,EAAEC,sBAAsB,CAACd,mBAAmB,CAACe,YAAY,EAAEf,mBAAmB,CAACgB,eAAe,CAAC;IAC/GC,GAAG,EAAElB,KAAK,CAACkB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AAS;QACpB,CAAC,EAAE,CAAC,CAAC;MACT,CAAC;IACL;MACI,MAAM,IAAII,KAAK,CAAC,sCAAsCX,aAAa,CAACxB,IAAI,EAAE,CAAC;EACnF;AACJ;AACA,SAASa,sBAAsBA,CAACC,YAAY,EAAEC,eAAe,EAAE;EAC3D,MAAMqB,QAAQ,GAAG,CAAC,CAAC;EACnB,KAAK,MAAM7B,GAAG,IAAIO,YAAY,EAAE;IAC5BsB,QAAQ,CAAC7B,GAAG,CAAC,GAAG;MAAE8B,OAAO,EAAE,IAAI;MAAEC,QAAQ,EAAE;IAAM,CAAC;EACtD;EACA,KAAK,MAAM/B,GAAG,IAAIQ,eAAe,EAAE;IAC/B,IAAIqB,QAAQ,CAAC7B,GAAG,CAAC,EAAE;MACf6B,QAAQ,CAAC7B,GAAG,CAAC,CAAC+B,QAAQ,GAAG,IAAI;IACjC,CAAC,MACI;MACDF,QAAQ,CAAC7B,GAAG,CAAC,GAAG;QAAE8B,OAAO,EAAE,KAAK;QAAEC,QAAQ,EAAE;MAAK,CAAC;IACtD;EACJ;EACA,OAAOF,QAAQ;AACnB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.ts","sourceRoot":"","sources":["../../src/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,wBAAgB,2CAA2C,CACzD,KAAK,EAAE,UAAU,GAChB,eAAe,CAsCjB"}
1
+ {"version":3,"file":"wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.ts","sourceRoot":"","sources":["../../src/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,wBAAgB,2CAA2C,CACzD,KAAK,EAAE,UAAU,GAChB,eAAe,CAuCjB"}
@@ -42,6 +42,7 @@ export function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
42
42
  case "marking":
43
43
  case "float":
44
44
  case "geotimeSeriesReference":
45
+ case "cipherText":
45
46
  case "mediaReference":
46
47
  case "struct":
47
48
  case "cipherText":
@@ -1 +1 @@
1
- {"version":3,"file":"wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js","names":["wirePropertyV2ToSdkPrimaryKeyTypeDefinition","input","dataType","type","Error"],"sources":["wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js"],"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 */\nexport function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {\n switch (input.dataType.type) {\n case \"integer\":\n case \"double\":\n case \"string\":\n case \"boolean\":\n case \"byte\":\n case \"long\":\n case \"short\": {\n return input.dataType.type;\n }\n case \"date\": {\n return \"datetime\";\n }\n case \"timestamp\": {\n return \"timestamp\";\n }\n case \"geopoint\":\n case \"geoshape\":\n case \"decimal\":\n case \"attachment\":\n case \"timeseries\":\n case \"array\":\n case \"marking\":\n case \"float\":\n case \"geotimeSeriesReference\":\n case \"mediaReference\":\n case \"struct\":\n case \"cipherText\":\n throw new Error(`Type not supported for primaryKey: ${input.dataType.type}`);\n default:\n const _ = input.dataType;\n throw new Error(`Unknown type encountered for primaryKey: ${input.dataType}`);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,2CAA2CA,CAACC,KAAK,EAAE;EAC/D,QAAQA,KAAK,CAACC,QAAQ,CAACC,IAAI;IACvB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,MAAM;IACX,KAAK,OAAO;MAAE;QACV,OAAOF,KAAK,CAACC,QAAQ,CAACC,IAAI;MAC9B;IACA,KAAK,MAAM;MAAE;QACT,OAAO,UAAU;MACrB;IACA,KAAK,WAAW;MAAE;QACd,OAAO,WAAW;MACtB;IACA,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,SAAS;IACd,KAAK,YAAY;IACjB,KAAK,YAAY;IACjB,KAAK,OAAO;IACZ,KAAK,SAAS;IACd,KAAK,OAAO;IACZ,KAAK,wBAAwB;IAC7B,KAAK,gBAAgB;IACrB,KAAK,QAAQ;IACb,KAAK,YAAY;MACb,MAAM,IAAIC,KAAK,CAAC,sCAAsCH,KAAK,CAACC,QAAQ,CAACC,IAAI,EAAE,CAAC;IAChF;MACcF,KAAK,CAACC,QAAQ;MACxB,MAAM,IAAIE,KAAK,CAAC,4CAA4CH,KAAK,CAACC,QAAQ,EAAE,CAAC;EACrF;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js","names":["wirePropertyV2ToSdkPrimaryKeyTypeDefinition","input","dataType","type","Error"],"sources":["wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js"],"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 */\nexport function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {\n switch (input.dataType.type) {\n case \"integer\":\n case \"double\":\n case \"string\":\n case \"boolean\":\n case \"byte\":\n case \"long\":\n case \"short\": {\n return input.dataType.type;\n }\n case \"date\": {\n return \"datetime\";\n }\n case \"timestamp\": {\n return \"timestamp\";\n }\n case \"geopoint\":\n case \"geoshape\":\n case \"decimal\":\n case \"attachment\":\n case \"timeseries\":\n case \"array\":\n case \"marking\":\n case \"float\":\n case \"geotimeSeriesReference\":\n case \"cipherText\":\n case \"mediaReference\":\n case \"struct\":\n case \"cipherText\":\n throw new Error(`Type not supported for primaryKey: ${input.dataType.type}`);\n default:\n const _ = input.dataType;\n throw new Error(`Unknown type encountered for primaryKey: ${input.dataType}`);\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,2CAA2CA,CAACC,KAAK,EAAE;EAC/D,QAAQA,KAAK,CAACC,QAAQ,CAACC,IAAI;IACvB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,MAAM;IACX,KAAK,OAAO;MAAE;QACV,OAAOF,KAAK,CAACC,QAAQ,CAACC,IAAI;MAC9B;IACA,KAAK,MAAM;MAAE;QACT,OAAO,UAAU;MACrB;IACA,KAAK,WAAW;MAAE;QACd,OAAO,WAAW;MACtB;IACA,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,SAAS;IACd,KAAK,YAAY;IACjB,KAAK,YAAY;IACjB,KAAK,OAAO;IACZ,KAAK,SAAS;IACd,KAAK,OAAO;IACZ,KAAK,wBAAwB;IAC7B,KAAK,YAAY;IACjB,KAAK,gBAAgB;IACrB,KAAK,QAAQ;IACb,KAAK,YAAY;MACb,MAAM,IAAIC,KAAK,CAAC,sCAAsCH,KAAK,CAACC,QAAQ,CAACC,IAAI,EAAE,CAAC;IAChF;MACcF,KAAK,CAACC,QAAQ;MACxB,MAAM,IAAIE,KAAK,CAAC,4CAA4CH,KAAK,CAACC,QAAQ,EAAE,CAAC;EACrF;AACJ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.d.ts","sourceRoot":"","sources":["../../src/wirePropertyV2ToSdkPropertyDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,UAAU,EACV,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,CAAC,UAAU,GAAG,kBAAkB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,EACjE,UAAU,GAAE,OAAc,GACzB,cAAc,CAAC,QAAQ,GAAG,SAAS,CAwDrC"}
1
+ {"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.d.ts","sourceRoot":"","sources":["../../src/wirePropertyV2ToSdkPropertyDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,UAAU,EACV,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,CAAC,UAAU,GAAG,kBAAkB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,EACjE,UAAU,GAAE,OAAc,GACzB,cAAc,CAAC,QAAQ,GAAG,SAAS,CAyDrC"}
@@ -23,6 +23,7 @@ export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true)
23
23
  case "integer":
24
24
  case "string":
25
25
  case "byte":
26
+ case "cipherText":
26
27
  case "decimal":
27
28
  case "double":
28
29
  case "float":
@@ -31,6 +32,7 @@ export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true)
31
32
  case "boolean":
32
33
  case "date":
33
34
  case "attachment":
35
+ case "mediaReference":
34
36
  case "geopoint":
35
37
  case "geoshape":
36
38
  case "timestamp":
@@ -56,7 +58,6 @@ export function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true)
56
58
  };
57
59
  }
58
60
  case "cipherText":
59
- case "mediaReference":
60
61
  {
61
62
  consola.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);
62
63
  return undefined;
@@ -84,6 +85,7 @@ function objectPropertyTypeToSdkPropertyDefinition(propertyType) {
84
85
  case "timestamp":
85
86
  case "marking":
86
87
  case "geotimeSeriesReference":
88
+ case "mediaReference":
87
89
  return propertyType.type;
88
90
  case "date":
89
91
  return "datetime";
@@ -102,7 +104,6 @@ function objectPropertyTypeToSdkPropertyDefinition(propertyType) {
102
104
  return structMap;
103
105
  }, {});
104
106
  }
105
- case "mediaReference":
106
107
  case "cipherText":
107
108
  {
108
109
  consola.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);
@@ -1 +1 @@
1
- {"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.js","names":["consola","wirePropertyV2ToSdkPropertyDefinition","input","isNullable","sdkPropDefinition","objectPropertyTypeToSdkPropertyDefinition","dataType","undefined","type","displayName","multiplicity","description","nullable","info","JSON","stringify","propertyType","subType","itemType","structFieldTypes","reduce","structMap","structField","apiName"],"sources":["wirePropertyV2ToSdkPropertyDefinition.js"],"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 */\nimport { consola } from \"consola\";\nexport function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true) {\n const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType);\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 \"geopoint\":\n case \"geoshape\":\n case \"timestamp\":\n case \"timeseries\":\n case \"marking\":\n case \"geotimeSeriesReference\":\n case \"struct\":\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 };\n case \"array\": {\n return {\n displayName: input.displayName,\n multiplicity: true,\n description: input.description,\n type: sdkPropDefinition,\n nullable: true,\n };\n }\n case \"cipherText\":\n case \"mediaReference\": {\n consola.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);\n return undefined;\n }\n default:\n const _ = input.dataType;\n consola.info(`${JSON.stringify(input.dataType)} is not a supported dataType`);\n return undefined;\n }\n}\nfunction objectPropertyTypeToSdkPropertyDefinition(propertyType) {\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 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 }\n else if (propertyType.itemType?.type === \"double\") {\n return \"numericTimeseries\";\n }\n else\n return \"sensorTimeseries\";\n case \"struct\": {\n return propertyType.structFieldTypes.reduce((structMap, structField) => {\n structMap[structField.apiName] =\n objectPropertyTypeToSdkPropertyDefinition(structField.dataType);\n return structMap;\n }, {});\n }\n case \"mediaReference\":\n case \"cipherText\": {\n consola.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);\n return undefined;\n }\n default: {\n const _ = propertyType;\n consola.info(`${JSON.stringify(propertyType)} is not a supported propertyType`);\n return undefined;\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,OAAO,SAASC,qCAAqCA,CAACC,KAAK,EAAEC,UAAU,GAAG,IAAI,EAAE;EAC5E,MAAMC,iBAAiB,GAAGC,yCAAyC,CAACH,KAAK,CAACI,QAAQ,CAAC;EACnF,IAAIF,iBAAiB,IAAI,IAAI,EAAE;IAC3B,OAAOG,SAAS;EACpB;EACA,QAAQL,KAAK,CAACI,QAAQ,CAACE,IAAI;IACvB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,MAAM;IACX,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,OAAO;IACZ,KAAK,MAAM;IACX,KAAK,OAAO;IACZ,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,YAAY;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,WAAW;IAChB,KAAK,YAAY;IACjB,KAAK,SAAS;IACd,KAAK,wBAAwB;IAC7B,KAAK,QAAQ;MACT,OAAO;QACHC,WAAW,EAAEP,KAAK,CAACO,WAAW;QAC9BC,YAAY,EAAE,KAAK;QACnBC,WAAW,EAAET,KAAK,CAACS,WAAW;QAC9BH,IAAI,EAAEJ,iBAAiB;QACvBQ,QAAQ,EAAEV,KAAK,CAACU,QAAQ,IAAI,IAAI,GAAGT,UAAU,GAAGD,KAAK,CAACU;MAC1D,CAAC;IACL,KAAK,OAAO;MAAE;QACV,OAAO;UACHH,W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QAAQ;MAAE;QACX,OAAOQ,YAAY,CAACG,gBAAgB,CAACC,MAAM,CAAC,CAACC,SAAS,EAAEC,WAAW,KAAK;UACpED,SAAS,CAACC,WAAW,CAACC,OAAO,CAAC,GAC1BlB,yCAAyC,CAACiB,WAAW,CAAChB,QAAQ,CAAC;UACnE,OAAOe,SAAS;QACpB,CAAC,EAAE,CAAC,CAAC,CAAC;MACV;IACA,KAAK,gBAAgB;IACrB,KAAK,YAAY;MAAE;QACfrB,OAAO,CAACa,IAAI,CAAC,GAAGC,IAAI,CAACC,SAAS,CAACC,YAAY,CAACR,IAAI,CAAC,kCAAkC,CAAC;QACpF,OAAOD,SAAS;MACpB;IACA;MAAS;QAELP,OAAO,CAACa,IAAI,CAAC,GAAGC,IAAI,CAACC,SAAS,CAACC,YAAY,CAAC,kCAAkC,CAAC;QAC/E,OAAOT,SAAS;MACpB;EACJ;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"wirePropertyV2ToSdkPropertyDefinition.js","names":["consola","wirePropertyV2ToSdkPropertyDefinition","input","isNullable","sdkPropDefinition","objectPropertyTypeToSdkPropertyDefinition","dataType","undefined","type","displayName","multiplicity","description","nullable","info","JSON","stringify","propertyType","subType","itemType","structFieldTypes","reduce","structMap","structField","apiName"],"sources":["wirePropertyV2ToSdkPropertyDefinition.js"],"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 */\nimport { consola } from \"consola\";\nexport function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true) {\n const sdkPropDefinition = objectPropertyTypeToSdkPropertyDefinition(input.dataType);\n if (sdkPropDefinition == null) {\n return undefined;\n }\n switch (input.dataType.type) {\n case \"integer\":\n case \"string\":\n case \"byte\":\n case \"cipherText\":\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 return {\n displayName: input.displayName,\n multiplicity: false,\n description: input.description,\n type: sdkPropDefinition,\n nullable: input.nullable == null ? isNullable : input.nullable,\n };\n case \"array\": {\n return {\n displayName: input.displayName,\n multiplicity: true,\n description: input.description,\n type: sdkPropDefinition,\n nullable: true,\n };\n }\n case \"cipherText\": {\n consola.info(`${JSON.stringify(input.dataType.type)} is not a supported dataType`);\n return undefined;\n }\n default:\n const _ = input.dataType;\n consola.info(`${JSON.stringify(input.dataType)} is not a supported dataType`);\n return undefined;\n }\n}\nfunction objectPropertyTypeToSdkPropertyDefinition(propertyType) {\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 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 }\n else if (propertyType.itemType?.type === \"double\") {\n return \"numericTimeseries\";\n }\n else\n return \"sensorTimeseries\";\n case \"struct\": {\n return propertyType.structFieldTypes.reduce((structMap, structField) => {\n structMap[structField.apiName] =\n objectPropertyTypeToSdkPropertyDefinition(structField.dataType);\n return structMap;\n }, {});\n }\n case \"cipherText\": {\n consola.info(`${JSON.stringify(propertyType.type)} is not a supported propertyType`);\n return undefined;\n }\n default: {\n const _ = propertyType;\n consola.info(`${JSON.stringify(propertyType)} is not a supported propertyType`);\n return undefined;\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,OAAO,QAAQ,SAAS;AACjC,OAAO,SAASC,qCAAqCA,CAACC,KAAK,EAAEC,UAAU,GAAG,IAAI,EAAE;EAC5E,MAAMC,iBAAiB,GAAGC,yCAAyC,CAACH,KAAK,CAACI,QAAQ,CAAC;EACnF,IAAIF,iBAAiB,IAAI,IAAI,EAAE;IAC3B,OAAOG,SAAS;EACpB;EACA,QAAQL,KAAK,CAACI,QAAQ,CAACE,IAAI;IACvB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,MAAM;IACX,KAAK,YAAY;IACjB,KAAK,SAAS;IACd,KAAK,QAAQ;IACb,KAAK,OAAO;IACZ,KAAK,MAAM;IACX,KAAK,OAAO;IACZ,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,YAAY;IACjB,KAAK,gBAAgB;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,WAAW;IAChB,KAAK,YAAY;IACjB,KAAK,SAAS;IACd,KAAK,wBAAwB;IAC7B,KAAK,QAAQ;MACT,OAAO;QACHC,WAAW,EAAEP,KAAK,CAACO,WAAW;QAC9BC,YAAY,EAAE,KAAK;QACnBC,WAAW,EAAET,KAAK,CAACS,WAAW;QAC9BH,IAAI,EAAEJ,iBAAiB;QACvBQ,QAAQ,EAAEV,KAAK,CAACU,QAAQ,IAAI,IAAI,GAAGT,UAAU,GAAGD,KAAK,CAACU;MAC1D,CAAC;IACL,KAAK,OAAO;MAAE;QACV,OAAO;UACHH,WAAW,EAAEP,KAAK,CAACO,WAAW;UAC9BC,YAAY,EAAE,IAAI;UAClBC,WAAW,EAAET,KAAK,CAACS,WAAW;UAC9BH,IAAI,E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AACC,WAAW,CAACC,OAAO,CAAC,GAC1BlB,yCAAyC,CAACiB,WAAW,CAAChB,QAAQ,CAAC;UACnE,OAAOe,SAAS;QACpB,CAAC,EAAE,CAAC,CAAC,CAAC;MACV;IACA,KAAK,YAAY;MAAE;QACfrB,OAAO,CAACa,IAAI,CAAC,GAAGC,IAAI,CAACC,SAAS,CAACC,YAAY,CAACR,IAAI,CAAC,kCAAkC,CAAC;QACpF,OAAOD,SAAS;MACpB;IACA;MAAS;QAELP,OAAO,CAACa,IAAI,CAAC,GAAGC,IAAI,CAACC,SAAS,CAACC,YAAY,CAAC,kCAAkC,CAAC;QAC/E,OAAOT,SAAS;MACpB;EACJ;AACJ","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/generator-converters",
3
- "version": "2.1.0-beta.22",
3
+ "version": "2.1.0-beta.23",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -23,15 +23,15 @@
23
23
  "dependencies": {
24
24
  "@osdk/internal.foundry.core": "2.9.0",
25
25
  "consola": "^3.2.3",
26
- "@osdk/api": "~2.1.0-beta.22"
26
+ "@osdk/api": "~2.1.0-beta.23"
27
27
  },
28
28
  "devDependencies": {
29
29
  "ts-expect": "^1.3.0",
30
30
  "typescript": "~5.5.4",
31
- "vitest": "^2.1.2",
31
+ "vitest": "^3.0.4",
32
+ "@osdk/monorepo.tsconfig": "~0.0.0",
32
33
  "@osdk/monorepo.api-extractor": "~0.0.0",
33
- "@osdk/monorepo.tsup": "~0.0.0",
34
- "@osdk/monorepo.tsconfig": "~0.0.0"
34
+ "@osdk/monorepo.tsup": "~0.0.0"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"