@osdk/typescript-sdk-docs 0.8.0 → 0.8.1-main-aa78c78b2364b0ff1fa351531cab0e85efdcc1c5

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,11 @@
1
1
  # @osdk/typescript-sdk-docs
2
2
 
3
+ ## 0.8.1-main-aa78c78b2364b0ff1fa351531cab0e85efdcc1c5
4
+
5
+ ### Patch Changes
6
+
7
+ - f522327: Render the object-action-parameter alternative hint as a block comment so the trailing comma the template appends after non-last entries isn't swallowed by a line comment
8
+
3
9
  ## 0.8.0
4
10
 
5
11
  ### Minor Changes
@@ -263,7 +263,7 @@ function renderType(type, majorVersion, context) {
263
263
  case "object":
264
264
  const primaryKeyValue = type.primaryKeyType === "string" ? "\"primaryKeyValue\"" : "primaryKeyValue";
265
265
  if (context === "actionParameter") {
266
- return `${primaryKeyValue} // or myObjectInstance`;
266
+ return `${primaryKeyValue} /* or myObjectInstance */`;
267
267
  }
268
268
  return primaryKeyValue;
269
269
  case "objectSet":
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","names":["outdent","snippets","indentedNewLine","spacesCount","repeat","TYPESCRIPT_OSDK_SNIPPETS","computedVariables","functionInputValuesV1","handleFunctionInputValuesV1","functionInputValuesV2","handleFunctionInputValuesV2","actionParameterSampleValuesV1","handleActionParameterSampleValuesV1","actionParameterSampleValuesV2","handleActionParameterSampleValuesV2","propertyValueV1","handlePropertyValueV1","propertyValueV2","handlePropertyValueV2","propertyValueIncrementedV1","handlePropertyValueIncrementedV1","propertyValueIncrementedV2","handlePropertyValueIncrementedV2","propertiesV1","handlePropertiesV1","propertiesV2","handlePropertiesV2","primaryKeyPropertyV1","handlePrimaryKeyPropertyV1","primaryKeyPropertyV2","handlePrimaryKeyPropertyV2","primaryKeyPropertyValueV2","handlePrimaryKeyPropertyValueV2","linkedPropertiesV1","handleLinkedPropertiesV1","linkedPropertiesV2","handleLinkedPropertiesV2","linkedPrimaryKeyPropertyV1","handleLinkedPrimaryKeyPropertyV1","linkedPrimaryKeyPropertyV2","handleLinkedPrimaryKeyPropertyV2","arrayElementValue","handleArrayElementValue","SdkMajorVersion","rawFunctionInputValues","renderFunctionInputValues","V1","V2","rawActionTypeParameterValues","renderActionParameterValues","rawPropertyValue","renderPropertyValue","rawPropertyValueIncremented","renderArrayElementPropertyValue","propertyValue","majorVersion","Error","renderType","rawProperties","map","prop","apiName","value","rawPrimaryKeyProperty","rawLinkedProperties","rawLinkedPrimaryKeyProperty","type","Object","keys","parameters","length","entries","key","join","param","index","array","last","context","arraySubType","subtype","toString","getDateParameter","daysOffset","getTimestampParameter","primaryKeyValue","primaryKeyType","objectTypeApiName","rendered","name","hasAttachments","keyType","getMapKeyObjectName","valueType","getDisplayName","processObjectApiName","input","tokens","split","result","token","titleCase","toLowerCase","charAt","slice","toUpperCase","objectApiName","lastIndexOf","offsetDate","Date","setDate","getDate","toISOString"],"sources":["docs.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { SdkSnippets } from \"@osdk/docs-spec-core\";\nimport type {\n ActionParameterSampleValuesIR,\n ActionParameterSampleValueTypeIR,\n FunctionSampleParametersIR,\n FunctionSampleValueTypeIR,\n OSDK_SNIPPETS_SPEC,\n PropertySampleIR,\n PropertySampleValueTypeIR,\n} from \"@osdk/docs-spec-sdk\";\nimport { outdent } from \"outdent\";\nimport { snippets } from \"./generatedNoCheck/docsNoComputedVariables.js\";\n\nconst indentedNewLine = (spacesCount: number) => `\\n${\" \".repeat(spacesCount)}`;\n\nexport const TYPESCRIPT_OSDK_SNIPPETS: SdkSnippets<typeof OSDK_SNIPPETS_SPEC> =\n {\n ...snippets,\n computedVariables: {\n functionInputValuesV1: handleFunctionInputValuesV1,\n functionInputValuesV2: handleFunctionInputValuesV2,\n actionParameterSampleValuesV1: handleActionParameterSampleValuesV1,\n actionParameterSampleValuesV2: handleActionParameterSampleValuesV2,\n propertyValueV1: handlePropertyValueV1,\n propertyValueV2: handlePropertyValueV2,\n propertyValueIncrementedV1: handlePropertyValueIncrementedV1,\n propertyValueIncrementedV2: handlePropertyValueIncrementedV2,\n propertiesV1: handlePropertiesV1,\n propertiesV2: handlePropertiesV2,\n primaryKeyPropertyV1: handlePrimaryKeyPropertyV1,\n primaryKeyPropertyV2: handlePrimaryKeyPropertyV2,\n primaryKeyPropertyValueV2: handlePrimaryKeyPropertyValueV2,\n linkedPropertiesV1: handleLinkedPropertiesV1,\n linkedPropertiesV2: handleLinkedPropertiesV2,\n linkedPrimaryKeyPropertyV1: handleLinkedPrimaryKeyPropertyV1,\n linkedPrimaryKeyPropertyV2: handleLinkedPrimaryKeyPropertyV2,\n arrayElementValue: handleArrayElementValue,\n },\n };\n\n// SDK major version enum\nenum SdkMajorVersion {\n V1 = 1,\n V2 = 2,\n}\n\n// Helper functions for properties\nfunction handleFunctionInputValuesV1({\n rawFunctionInputValues,\n}: {\n rawFunctionInputValues?: FunctionSampleParametersIR;\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V1);\n}\n\nfunction handleFunctionInputValuesV2({\n rawFunctionInputValues,\n}: {\n rawFunctionInputValues?: FunctionSampleParametersIR;\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V2);\n}\n\nfunction handleActionParameterSampleValuesV1({\n rawActionTypeParameterValues,\n}: {\n rawActionTypeParameterValues?: ActionParameterSampleValuesIR;\n}) {\n return renderActionParameterValues(\n rawActionTypeParameterValues,\n SdkMajorVersion.V1,\n );\n}\n\nfunction handleActionParameterSampleValuesV2({\n rawActionTypeParameterValues,\n}: {\n rawActionTypeParameterValues?: ActionParameterSampleValuesIR;\n}) {\n return renderActionParameterValues(\n rawActionTypeParameterValues,\n SdkMajorVersion.V2,\n );\n}\n\nfunction handlePropertyValueV1(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V1);\n}\n\nfunction handlePropertyValueV2(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\n\nfunction handlePropertyValueIncrementedV1({\n rawPropertyValueIncremented,\n}: {\n rawPropertyValueIncremented?: PropertySampleValueTypeIR;\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V1);\n}\n\nfunction handlePropertyValueIncrementedV2({\n rawPropertyValueIncremented,\n}: {\n rawPropertyValueIncremented?: PropertySampleValueTypeIR;\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V2);\n}\n\nfunction handleArrayElementValue(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderArrayElementPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\n\nfunction renderArrayElementPropertyValue(\n propertyValue: PropertySampleValueTypeIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n\n return renderType(propertyValue, majorVersion, \"arraySubType\");\n}\n\nfunction handlePropertiesV1(\n { rawProperties }: { rawProperties?: PropertySampleIR[] },\n) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1),\n }));\n}\n\nfunction handlePropertiesV2(\n { rawProperties }: { rawProperties?: PropertySampleIR[] },\n) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2),\n }));\n}\n\nfunction handlePrimaryKeyPropertyV1(\n { rawPrimaryKeyProperty }: { rawPrimaryKeyProperty?: PropertySampleIR },\n) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V1),\n };\n}\n\nfunction handlePrimaryKeyPropertyV2(\n { rawPrimaryKeyProperty }: { rawPrimaryKeyProperty?: PropertySampleIR },\n) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2),\n };\n}\n\nfunction handlePrimaryKeyPropertyValueV2({\n rawPrimaryKeyProperty,\n}: {\n rawPrimaryKeyProperty?: PropertySampleIR;\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2);\n}\n\nfunction handleLinkedPropertiesV1(\n { rawLinkedProperties }: { rawLinkedProperties?: PropertySampleIR[] },\n) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1),\n }));\n}\n\nfunction handleLinkedPropertiesV2(\n { rawLinkedProperties }: { rawLinkedProperties?: PropertySampleIR[] },\n) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2),\n }));\n}\n\nfunction handleLinkedPrimaryKeyPropertyV1({\n rawLinkedPrimaryKeyProperty,\n}: {\n rawLinkedPrimaryKeyProperty?: {\n apiName: string;\n value: PropertySampleValueTypeIR;\n type: string;\n };\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(\n rawLinkedPrimaryKeyProperty.value,\n SdkMajorVersion.V1,\n ),\n type: rawLinkedPrimaryKeyProperty.type,\n };\n}\n\nfunction handleLinkedPrimaryKeyPropertyV2({\n rawLinkedPrimaryKeyProperty,\n}: {\n rawLinkedPrimaryKeyProperty?: {\n apiName: string;\n value: PropertySampleValueTypeIR;\n type: string;\n };\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(\n rawLinkedPrimaryKeyProperty.value,\n SdkMajorVersion.V2,\n ),\n type: rawLinkedPrimaryKeyProperty.type,\n };\n}\n\n// Common function to render function input values for any version\nfunction renderFunctionInputValues(\n rawFunctionInputValues: FunctionSampleParametersIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (rawFunctionInputValues == null) {\n throw new Error(\"Cannot render a null rawFunctionInputValues\");\n }\n if (Object.keys(rawFunctionInputValues.parameters).length === 0) {\n return \"\";\n }\n\n return outdent`\n {\n ${\n Object.entries(rawFunctionInputValues.parameters)\n .map(([key, value]) =>\n `\"${key}\": ${renderType(value, majorVersion, \"functionInput\")}`\n )\n .join(`,${indentedNewLine(4)}`)\n }\n }`;\n}\n\n// Common function to render action parameter values for any version\nfunction renderActionParameterValues(\n rawActionTypeParameterValues: ActionParameterSampleValuesIR | undefined,\n majorVersion: SdkMajorVersion,\n): Array<{ key: string; value: string; last: boolean }> {\n if (rawActionTypeParameterValues == null) {\n throw new Error(\"Cannot render a null rawActionTypeParameterValues\");\n }\n\n return rawActionTypeParameterValues.map((param, index, array) => ({\n key: param.key,\n value: renderType(param.value, majorVersion, \"actionParameter\"),\n last: index === array.length - 1,\n }));\n}\n\n// Function to render property values\nfunction renderPropertyValue(\n propertyValue: PropertySampleValueTypeIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n\n return renderType(propertyValue, majorVersion, \"property\");\n}\n\n// Unified render function for all types\nfunction renderType(\n type:\n | ActionParameterSampleValueTypeIR\n | FunctionSampleValueTypeIR\n | PropertySampleValueTypeIR,\n majorVersion: SdkMajorVersion,\n context: \"property\" | \"functionInput\" | \"actionParameter\" | \"arraySubType\",\n): string {\n if (type == null) {\n throw new Error(\"Cannot render a null type value\");\n }\n\n switch (type.type) {\n case \"array\":\n case \"set\":\n case \"list\":\n const arraySubType = renderType(type.subtype, majorVersion, context);\n return context === \"arraySubType\" ? arraySubType : `[${arraySubType}]`;\n case \"boolean\":\n return type.value ? \"true\" : \"false\";\n case \"byte\":\n case \"integer\":\n case \"long\":\n case \"short\":\n return type.value.toString();\n case \"decimal\":\n case \"double\":\n case \"float\":\n if (context === \"actionParameter\") {\n return `\"${type.value.toString()}\"`;\n }\n return type.value.toString();\n case \"date\":\n return getDateParameter(majorVersion, type.daysOffset);\n case \"timestamp\":\n return getTimestampParameter(majorVersion, type.daysOffset);\n case \"object\":\n const primaryKeyValue = type.primaryKeyType === \"string\"\n ? \"\\\"primaryKeyValue\\\"\"\n : \"primaryKeyValue\";\n if (context === \"actionParameter\") {\n return `${primaryKeyValue} // or myObjectInstance`;\n }\n return primaryKeyValue;\n case \"objectSet\":\n return `client(${type.objectTypeApiName}).where({ /* filter conditions */ })`;\n case \"anonymousCustomType\":\n case \"customType\": {\n const entries = Object.entries(type.parameters ?? {});\n if (entries.length > 0) {\n const rendered = entries\n .map(([name, value]) =>\n `\"${name}\": ${renderType(value, majorVersion, context)}`\n )\n .join(`,${indentedNewLine(8)}`);\n return `{${indentedNewLine(8)}${rendered}${indentedNewLine(4)}}`;\n }\n return \"{}\";\n }\n case \"attachment\":\n return type.hasAttachments ? \"attachment\" : \"{}\";\n case \"interface\":\n case \"marking\":\n return \"{}\";\n case \"mediaReference\":\n return context === \"actionParameter\"\n ? \"mediaUpload\"\n : \"mediaReferenceRid\";\n case \"objectType\":\n return `\"${type.objectTypeApiName}\"`;\n case \"map\":\n if (type.keyType.type === \"object\") {\n return `{[${\n getMapKeyObjectName(type.keyType.apiName)\n }.$objectSpecifier]: ${\n renderType(type.valueType, majorVersion, context)\n }}`;\n }\n return `{${\n renderType(\n type.valueType,\n majorVersion,\n context,\n )\n }: ${renderType(type.valueType, majorVersion, context)}}`;\n\n case \"string\":\n case \"unknown\":\n default:\n return `\"${type.value ?? \"value\"}\"`;\n }\n}\n\nfunction getMapKeyObjectName(apiName?: string) {\n if (apiName == null) {\n return \"osdkObject\";\n }\n return `${getDisplayName(processObjectApiName(apiName))}OsdkObject`;\n}\n\nfunction getDisplayName(input: string): string {\n const tokens = input.split(/[_-]|(?<=[a-z])(?=[A-Z])/);\n const result = tokens.map(token => titleCase(token.toLowerCase())).join(\"\");\n return result.charAt(0).toLowerCase() + result.slice(1);\n}\n\nfunction titleCase(token: string) {\n return (token[0] ?? \"\").toUpperCase() + token.slice(1);\n}\n\n// For objects that have namespaces prefixed to their api name, we remove it and only return the last portion\n// As that is what the TS OSDK uses to generate identifiers for objects\nfunction processObjectApiName(objectApiName: string) {\n const last = objectApiName.lastIndexOf(\".\");\n if (last === -1) {\n return objectApiName;\n }\n return objectApiName.slice(last + 1);\n}\n\n// Generic helper functions for date and timestamp\nfunction getDateParameter(\n majorVersion: SdkMajorVersion,\n daysOffset = 0,\n): string {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString().split(\"T\")[0]}\"`;\n }\n return hasOffset\n ? `LocalDate.now().plusDays(${daysOffset})`\n : \"LocalDate.now()\";\n}\n\nfunction getTimestampParameter(\n majorVersion: SdkMajorVersion,\n daysOffset = 0,\n): string {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString()}\"`;\n }\n return hasOffset\n ? `Timestamp.now().plusDays(${daysOffset})`\n : \"Timestamp.now()\";\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,SAASA,OAAO,QAAQ,SAAS;AACjC,SAASC,QAAQ,QAAQ,+CAA+C;AAExE,MAAMC,eAAe,GAAIC,WAAmB,IAAK,KAAK,GAAG,CAACC,MAAM,CAACD,WAAW,CAAC,EAAE;AAE/E,OAAO,MAAME,wBAAgE,GAC3E;EACE,GAAGJ,QAAQ;EACXK,iBAAiB,EAAE;IACjBC,qBAAqB,EAAEC,2BAA2B;IAClDC,qBAAqB,EAAEC,2BAA2B;IAClDC,6BAA6B,EAAEC,mCAAmC;IAClEC,6BAA6B,EAAEC,mCAAmC;IAClEC,eAAe,EAAEC,qBAAqB;IACtCC,eAAe,EAAEC,qBAAqB;IACtCC,0BAA0B,EAAEC,gCAAgC;IAC5DC,0BAA0B,EAAEC,gCAAgC;IAC5DC,YAAY,EAAEC,kBAAkB;IAChCC,YAAY,EAAEC,kBAAkB;IAChCC,oBAAoB,EAAEC,0BAA0B;IAChDC,oBAAoB,EAAEC,0BAA0B;IAChDC,yBAAyB,EAAEC,+BAA+B;IAC1DC,kBAAkB,EAAEC,wBAAwB;IAC5CC,kBAAkB,EAAEC,wBAAwB;IAC5CC,0BAA0B,EAAEC,gCAAgC;IAC5DC,0BAA0B,EAAEC,gCAAg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GAAG,CAAC,EACN;EACR,MAAMyB,UAAU,GAAG,IAAIC,IAAI,CAAC,CAAC;EAC7BD,UAAU,CAACE,OAAO,CAACF,UAAU,CAACG,OAAO,CAAC,CAAC,GAAG5B,UAAU,CAAC;EAGrD,IAAI5B,YAAY,IAAIZ,eAAe,CAACI,EAAE,EAAE;IACtC,OAAO,IAAI6D,UAAU,CAACI,WAAW,CAAC,CAAC,GAAG;EACxC;EACA,OALkB7B,UAAU,KAAK,CAAC,GAM9B,4BAA4BA,UAAU,GAAG,GACzC,iBAAiB;AACvB","ignoreList":[]}
1
+ {"version":3,"file":"docs.js","names":["outdent","snippets","indentedNewLine","spacesCount","repeat","TYPESCRIPT_OSDK_SNIPPETS","computedVariables","functionInputValuesV1","handleFunctionInputValuesV1","functionInputValuesV2","handleFunctionInputValuesV2","actionParameterSampleValuesV1","handleActionParameterSampleValuesV1","actionParameterSampleValuesV2","handleActionParameterSampleValuesV2","propertyValueV1","handlePropertyValueV1","propertyValueV2","handlePropertyValueV2","propertyValueIncrementedV1","handlePropertyValueIncrementedV1","propertyValueIncrementedV2","handlePropertyValueIncrementedV2","propertiesV1","handlePropertiesV1","propertiesV2","handlePropertiesV2","primaryKeyPropertyV1","handlePrimaryKeyPropertyV1","primaryKeyPropertyV2","handlePrimaryKeyPropertyV2","primaryKeyPropertyValueV2","handlePrimaryKeyPropertyValueV2","linkedPropertiesV1","handleLinkedPropertiesV1","linkedPropertiesV2","handleLinkedPropertiesV2","linkedPrimaryKeyPropertyV1","handleLinkedPrimaryKeyPropertyV1","linkedPrimaryKeyPropertyV2","handleLinkedPrimaryKeyPropertyV2","arrayElementValue","handleArrayElementValue","SdkMajorVersion","rawFunctionInputValues","renderFunctionInputValues","V1","V2","rawActionTypeParameterValues","renderActionParameterValues","rawPropertyValue","renderPropertyValue","rawPropertyValueIncremented","renderArrayElementPropertyValue","propertyValue","majorVersion","Error","renderType","rawProperties","map","prop","apiName","value","rawPrimaryKeyProperty","rawLinkedProperties","rawLinkedPrimaryKeyProperty","type","Object","keys","parameters","length","entries","key","join","param","index","array","last","context","arraySubType","subtype","toString","getDateParameter","daysOffset","getTimestampParameter","primaryKeyValue","primaryKeyType","objectTypeApiName","rendered","name","hasAttachments","keyType","getMapKeyObjectName","valueType","getDisplayName","processObjectApiName","input","tokens","split","result","token","titleCase","toLowerCase","charAt","slice","toUpperCase","objectApiName","lastIndexOf","offsetDate","Date","setDate","getDate","toISOString"],"sources":["docs.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { SdkSnippets } from \"@osdk/docs-spec-core\";\nimport type {\n ActionParameterSampleValuesIR,\n ActionParameterSampleValueTypeIR,\n FunctionSampleParametersIR,\n FunctionSampleValueTypeIR,\n OSDK_SNIPPETS_SPEC,\n PropertySampleIR,\n PropertySampleValueTypeIR,\n} from \"@osdk/docs-spec-sdk\";\nimport { outdent } from \"outdent\";\nimport { snippets } from \"./generatedNoCheck/docsNoComputedVariables.js\";\n\nconst indentedNewLine = (spacesCount: number) => `\\n${\" \".repeat(spacesCount)}`;\n\nexport const TYPESCRIPT_OSDK_SNIPPETS: SdkSnippets<typeof OSDK_SNIPPETS_SPEC> =\n {\n ...snippets,\n computedVariables: {\n functionInputValuesV1: handleFunctionInputValuesV1,\n functionInputValuesV2: handleFunctionInputValuesV2,\n actionParameterSampleValuesV1: handleActionParameterSampleValuesV1,\n actionParameterSampleValuesV2: handleActionParameterSampleValuesV2,\n propertyValueV1: handlePropertyValueV1,\n propertyValueV2: handlePropertyValueV2,\n propertyValueIncrementedV1: handlePropertyValueIncrementedV1,\n propertyValueIncrementedV2: handlePropertyValueIncrementedV2,\n propertiesV1: handlePropertiesV1,\n propertiesV2: handlePropertiesV2,\n primaryKeyPropertyV1: handlePrimaryKeyPropertyV1,\n primaryKeyPropertyV2: handlePrimaryKeyPropertyV2,\n primaryKeyPropertyValueV2: handlePrimaryKeyPropertyValueV2,\n linkedPropertiesV1: handleLinkedPropertiesV1,\n linkedPropertiesV2: handleLinkedPropertiesV2,\n linkedPrimaryKeyPropertyV1: handleLinkedPrimaryKeyPropertyV1,\n linkedPrimaryKeyPropertyV2: handleLinkedPrimaryKeyPropertyV2,\n arrayElementValue: handleArrayElementValue,\n },\n };\n\n// SDK major version enum\nenum SdkMajorVersion {\n V1 = 1,\n V2 = 2,\n}\n\n// Helper functions for properties\nfunction handleFunctionInputValuesV1({\n rawFunctionInputValues,\n}: {\n rawFunctionInputValues?: FunctionSampleParametersIR;\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V1);\n}\n\nfunction handleFunctionInputValuesV2({\n rawFunctionInputValues,\n}: {\n rawFunctionInputValues?: FunctionSampleParametersIR;\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V2);\n}\n\nfunction handleActionParameterSampleValuesV1({\n rawActionTypeParameterValues,\n}: {\n rawActionTypeParameterValues?: ActionParameterSampleValuesIR;\n}) {\n return renderActionParameterValues(\n rawActionTypeParameterValues,\n SdkMajorVersion.V1,\n );\n}\n\nfunction handleActionParameterSampleValuesV2({\n rawActionTypeParameterValues,\n}: {\n rawActionTypeParameterValues?: ActionParameterSampleValuesIR;\n}) {\n return renderActionParameterValues(\n rawActionTypeParameterValues,\n SdkMajorVersion.V2,\n );\n}\n\nfunction handlePropertyValueV1(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V1);\n}\n\nfunction handlePropertyValueV2(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\n\nfunction handlePropertyValueIncrementedV1({\n rawPropertyValueIncremented,\n}: {\n rawPropertyValueIncremented?: PropertySampleValueTypeIR;\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V1);\n}\n\nfunction handlePropertyValueIncrementedV2({\n rawPropertyValueIncremented,\n}: {\n rawPropertyValueIncremented?: PropertySampleValueTypeIR;\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V2);\n}\n\nfunction handleArrayElementValue(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderArrayElementPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\n\nfunction renderArrayElementPropertyValue(\n propertyValue: PropertySampleValueTypeIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n\n return renderType(propertyValue, majorVersion, \"arraySubType\");\n}\n\nfunction handlePropertiesV1(\n { rawProperties }: { rawProperties?: PropertySampleIR[] },\n) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1),\n }));\n}\n\nfunction handlePropertiesV2(\n { rawProperties }: { rawProperties?: PropertySampleIR[] },\n) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2),\n }));\n}\n\nfunction handlePrimaryKeyPropertyV1(\n { rawPrimaryKeyProperty }: { rawPrimaryKeyProperty?: PropertySampleIR },\n) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V1),\n };\n}\n\nfunction handlePrimaryKeyPropertyV2(\n { rawPrimaryKeyProperty }: { rawPrimaryKeyProperty?: PropertySampleIR },\n) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2),\n };\n}\n\nfunction handlePrimaryKeyPropertyValueV2({\n rawPrimaryKeyProperty,\n}: {\n rawPrimaryKeyProperty?: PropertySampleIR;\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2);\n}\n\nfunction handleLinkedPropertiesV1(\n { rawLinkedProperties }: { rawLinkedProperties?: PropertySampleIR[] },\n) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1),\n }));\n}\n\nfunction handleLinkedPropertiesV2(\n { rawLinkedProperties }: { rawLinkedProperties?: PropertySampleIR[] },\n) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2),\n }));\n}\n\nfunction handleLinkedPrimaryKeyPropertyV1({\n rawLinkedPrimaryKeyProperty,\n}: {\n rawLinkedPrimaryKeyProperty?: {\n apiName: string;\n value: PropertySampleValueTypeIR;\n type: string;\n };\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(\n rawLinkedPrimaryKeyProperty.value,\n SdkMajorVersion.V1,\n ),\n type: rawLinkedPrimaryKeyProperty.type,\n };\n}\n\nfunction handleLinkedPrimaryKeyPropertyV2({\n rawLinkedPrimaryKeyProperty,\n}: {\n rawLinkedPrimaryKeyProperty?: {\n apiName: string;\n value: PropertySampleValueTypeIR;\n type: string;\n };\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(\n rawLinkedPrimaryKeyProperty.value,\n SdkMajorVersion.V2,\n ),\n type: rawLinkedPrimaryKeyProperty.type,\n };\n}\n\n// Common function to render function input values for any version\nfunction renderFunctionInputValues(\n rawFunctionInputValues: FunctionSampleParametersIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (rawFunctionInputValues == null) {\n throw new Error(\"Cannot render a null rawFunctionInputValues\");\n }\n if (Object.keys(rawFunctionInputValues.parameters).length === 0) {\n return \"\";\n }\n\n return outdent`\n {\n ${\n Object.entries(rawFunctionInputValues.parameters)\n .map(([key, value]) =>\n `\"${key}\": ${renderType(value, majorVersion, \"functionInput\")}`\n )\n .join(`,${indentedNewLine(4)}`)\n }\n }`;\n}\n\n// Common function to render action parameter values for any version\nfunction renderActionParameterValues(\n rawActionTypeParameterValues: ActionParameterSampleValuesIR | undefined,\n majorVersion: SdkMajorVersion,\n): Array<{ key: string; value: string; last: boolean }> {\n if (rawActionTypeParameterValues == null) {\n throw new Error(\"Cannot render a null rawActionTypeParameterValues\");\n }\n\n return rawActionTypeParameterValues.map((param, index, array) => ({\n key: param.key,\n value: renderType(param.value, majorVersion, \"actionParameter\"),\n last: index === array.length - 1,\n }));\n}\n\n// Function to render property values\nfunction renderPropertyValue(\n propertyValue: PropertySampleValueTypeIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n\n return renderType(propertyValue, majorVersion, \"property\");\n}\n\n// Unified render function for all types\nfunction renderType(\n type:\n | ActionParameterSampleValueTypeIR\n | FunctionSampleValueTypeIR\n | PropertySampleValueTypeIR,\n majorVersion: SdkMajorVersion,\n context: \"property\" | \"functionInput\" | \"actionParameter\" | \"arraySubType\",\n): string {\n if (type == null) {\n throw new Error(\"Cannot render a null type value\");\n }\n\n switch (type.type) {\n case \"array\":\n case \"set\":\n case \"list\":\n const arraySubType = renderType(type.subtype, majorVersion, context);\n return context === \"arraySubType\" ? arraySubType : `[${arraySubType}]`;\n case \"boolean\":\n return type.value ? \"true\" : \"false\";\n case \"byte\":\n case \"integer\":\n case \"long\":\n case \"short\":\n return type.value.toString();\n case \"decimal\":\n case \"double\":\n case \"float\":\n if (context === \"actionParameter\") {\n return `\"${type.value.toString()}\"`;\n }\n return type.value.toString();\n case \"date\":\n return getDateParameter(majorVersion, type.daysOffset);\n case \"timestamp\":\n return getTimestampParameter(majorVersion, type.daysOffset);\n case \"object\":\n const primaryKeyValue = type.primaryKeyType === \"string\"\n ? \"\\\"primaryKeyValue\\\"\"\n : \"primaryKeyValue\";\n if (context === \"actionParameter\") {\n return `${primaryKeyValue} /* or myObjectInstance */`;\n }\n return primaryKeyValue;\n case \"objectSet\":\n return `client(${type.objectTypeApiName}).where({ /* filter conditions */ })`;\n case \"anonymousCustomType\":\n case \"customType\": {\n const entries = Object.entries(type.parameters ?? {});\n if (entries.length > 0) {\n const rendered = entries\n .map(([name, value]) =>\n `\"${name}\": ${renderType(value, majorVersion, context)}`\n )\n .join(`,${indentedNewLine(8)}`);\n return `{${indentedNewLine(8)}${rendered}${indentedNewLine(4)}}`;\n }\n return \"{}\";\n }\n case \"attachment\":\n return type.hasAttachments ? \"attachment\" : \"{}\";\n case \"interface\":\n case \"marking\":\n return \"{}\";\n case \"mediaReference\":\n return context === \"actionParameter\"\n ? \"mediaUpload\"\n : \"mediaReferenceRid\";\n case \"objectType\":\n return `\"${type.objectTypeApiName}\"`;\n case \"map\":\n if (type.keyType.type === \"object\") {\n return `{[${\n getMapKeyObjectName(type.keyType.apiName)\n }.$objectSpecifier]: ${\n renderType(type.valueType, majorVersion, context)\n }}`;\n }\n return `{${\n renderType(\n type.valueType,\n majorVersion,\n context,\n )\n }: ${renderType(type.valueType, majorVersion, context)}}`;\n\n case \"string\":\n case \"unknown\":\n default:\n return `\"${type.value ?? \"value\"}\"`;\n }\n}\n\nfunction getMapKeyObjectName(apiName?: string) {\n if (apiName == null) {\n return \"osdkObject\";\n }\n return `${getDisplayName(processObjectApiName(apiName))}OsdkObject`;\n}\n\nfunction getDisplayName(input: string): string {\n const tokens = input.split(/[_-]|(?<=[a-z])(?=[A-Z])/);\n const result = tokens.map(token => titleCase(token.toLowerCase())).join(\"\");\n return result.charAt(0).toLowerCase() + result.slice(1);\n}\n\nfunction titleCase(token: string) {\n return (token[0] ?? \"\").toUpperCase() + token.slice(1);\n}\n\n// For objects that have namespaces prefixed to their api name, we remove it and only return the last portion\n// As that is what the TS OSDK uses to generate identifiers for objects\nfunction processObjectApiName(objectApiName: string) {\n const last = objectApiName.lastIndexOf(\".\");\n if (last === -1) {\n return objectApiName;\n }\n return objectApiName.slice(last + 1);\n}\n\n// Generic helper functions for date and timestamp\nfunction getDateParameter(\n majorVersion: SdkMajorVersion,\n daysOffset = 0,\n): string {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString().split(\"T\")[0]}\"`;\n }\n return hasOffset\n ? `LocalDate.now().plusDays(${daysOffset})`\n : \"LocalDate.now()\";\n}\n\nfunction getTimestampParameter(\n majorVersion: SdkMajorVersion,\n daysOffset = 0,\n): string {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString()}\"`;\n }\n return h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C,iBAAiB;AACvB","ignoreList":[]}
@@ -837,7 +837,7 @@ function renderType(type, majorVersion, context) {
837
837
  case "object":
838
838
  const primaryKeyValue = type.primaryKeyType === "string" ? '"primaryKeyValue"' : "primaryKeyValue";
839
839
  if (context === "actionParameter") {
840
- return `${primaryKeyValue} // or myObjectInstance`;
840
+ return `${primaryKeyValue} /* or myObjectInstance */`;
841
841
  }
842
842
  return primaryKeyValue;
843
843
  case "objectSet":
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/generatedNoCheck/docsNoComputedVariables.ts","../../src/docs.ts"],"names":["SdkMajorVersion","outdent"],"mappings":";;;;;;;AAGO,IAAM,QAAA,GAAW;AAAA,EACtB,MAAA,EAAQ,KAAA;AAAA,EACR,UAAA,EAAY;AAAA,IACV,OAAA,EAAS;AAAA,MACP,UAAA,EAAY;AAAA,QACV,yBAAyB,CAAC;AAAA,UACxB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,uBAAuB,CAAC;AAAA,UACtB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,qBAAqB,CAAC;AAAA,UACpB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,sBAAsB,CAAC;AAAA,UACrB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,6BAA6B,CAAC;AAAA,UAC5B,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,wBAAwB,CAAC;AAAA,UACvB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,2BAA2B,CAAC;AAAA,UAC1B,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,6BAA6B,CAAC;AAAA,UAC5B,UAAA,EAAY,yXAAA;AAAA,UACZ,mBAAA,EAAqB,CAAC,4BAA4B;AAAA,SACnD,CAAA;AAAA,QACD,8BAA8B,CAAC;AAAA,UAC7B,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,uBAAuB,CAAC;AAAA,UACtB,UAAA,EAAY;AAAA,SACb,CAAA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AA,CAAW,WAAA,EAAa,CAAA,CAAA,CAAA;AAAA,EACrC;AACA,EAAA,OAAO,SAAA,GAAY,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAA,CAAA,GAAM,iBAAA;AACjE","file":"index.cjs","sourcesContent":["// THIS FILE IS GENERATED. DO NOT MODIFY.\n// You probably want to modify ../../../codegen.mjs instead.\n\nexport const snippets = {\n \"kind\": \"sdk\",\n \"versions\": {\n \"1.0.0\": {\n \"snippets\": {\n \"loadSingleObjectGuide\": [{\n \"template\": \"import { type GetObjectError, isOk, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst result: Result<{{objectType}}, GetObjectError> = await client.ontology.objects.{{objectType}}.get(\\\"primaryKey\\\");\\nif (isOk(result)) {\\n const object: {{objectType}} = result.value;\\n} else {\\n console.error(result.error.errorType);\\n}\"\n }],\n \"loadObjectPageGuide\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst firstPage: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}.page({ pageSize: 30 });\\n\\nif (isOk(firstPage)) {\\n const secondPage: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .page({ pageSize: 30, pageToken: firstPage.value.nextPageToken });\\n\\n const objects = isOk(secondPage) ? [...firstPage.value.data, ...secondPage.value.data] : firstPage.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"orderObjectsGuide\": [{\n \"template\": \"import { isOk, Page, type Result, type SearchObjectsError } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst page: Result<Page<{{objectType}}>, SearchObjectsError> = await client.ontology.objects.{{objectType}}\\n .orderBy(sortBy => sortBy.{{titleProperty}}.asc())\\n .page({ pageSize: 30 });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"searchObjectsGuide\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst page: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .where(query => query.{{titleProperty}}.isNull())\\n .page({ pageSize: 30 });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"loadSingleObjectReference\": [{\n \"template\": \"import { type GetObjectError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst response: Result<{{objectType}}, GetObjectError> = await client.ontology.objects.{{objectType}}.get(\\\"primaryKey\\\");\"\n }],\n \"loadObjectsReference\": [{\n \"template\": \"import { type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst response: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .page({ pageSize: 30 });\"\n }],\n \"loadAllObjectsReference\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst objects: Result<{{objectType}}[], LoadObjectSetError> = await client.ontology.objects.{{objectType}}.all();\\n\\nif (isOk(objects)) {\\n const object = objects.value[0];\\n}\"\n }],\n \"loadLinkedObjectReference\": [{\n \"template\": \"import { type GetLinkedObjectError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: {{sourceObjectType}}, linkedObjectPrimaryKey: {{linkedPrimaryKeyPropertyV1.type}}) {\\n return source.{{linkApiName}}.get(linkedObjectPrimaryKey);\\n}\",\n \"computedVariables\": [\"linkedPrimaryKeyPropertyV1\"]\n }],\n \"loadLinkedObjectsReference\": [{\n \"template\": \"import { type GetLinkedObjectError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: {{sourceObjectType}}) {\\n {{#isLinkManySided}}\\n return source.{{linkApiName}}.page({ pageSize: 30 });\\n {{/isLinkManySided}}\\n {{^isLinkManySided}}\\n return source.{{linkApiName}}.get();\\n {{/isLinkManySided}}\\n}\"\n }],\n \"aggregationTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst num{{objectType}} = await client.ontology.objects.{{objectType}}\\n .where(query => Op.not(query.{{property}}.isNull()))\\n .groupBy(property => property.{{property}}.exact())\\n .count()\\n .compute()\"\n }],\n \"countAggregationTemplate\": [{\n \"template\": \"const num{{objectType}} = await client.ontology.objects.{{objectType}}\\n .count()\\n .compute()\"\n }],\n \"approximateDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst distinct{{objectType}} = await client.ontology.objects.{{objectType}}\\n .approximateDistinct(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses metricName as the metric name instead of the default \\\"distinctCount\\\"\\nconst distinct{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.approximateDistinct(),\\n }))\\n .compute()\"\n }],\n \"exactDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst distinct{{objectType}} = await client.ontology.objects.{{objectType}}\\n .exactDistinct(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses metricName as the metric name instead of the default \\\"exactDistinctCount\\\"\\nconst distinct{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.exactDistinct(),\\n }))\\n .compute()\"\n }],\n \"numericAggregationTemplate\": [{\n \"template\": \"const {{operation}}{{objectType}} = await client.ontology.objects.{{objectType}}\\n .{{operation}}(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses \\\"metricName\\\" as the metric name instead of the default \\\"{{operation}}\\\"\\nconst {{operation}}{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.{{operation}}(),\\n }))\\n .compute()\"\n }],\n \"fixedWidthGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.fixedWidth(10))\\n .count()\\n .compute()\"\n }],\n \"durationGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.by{{duration}}({{#durationText}}{{arg}}{{/durationText}}))\\n .count()\\n .compute()\"\n }],\n \"exactGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.exact())\\n .count()\\n .compute()\"\n }],\n \"rangeGroupByTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.ranges([{\\n startValue: {{propertyValueV1}},\\n endValue: {{propertyValueIncrementedV1}}\\n }]))\\n .count()\\n .compute()\",\n \"computedVariables\": [\"propertyValueV1\", \"propertyValueIncrementedV1\"]\n }],\n \"applyAction\": [{\n \"template\": \"import { ActionValidationResult, ActionExecutionMode, ReturnEditsMode{{#hasAttachmentImports}}, Attachment{{/hasAttachmentImports}}{{#hasDateInputs}}, LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}, Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.actions.{{actionApiName}}({{^hasParameters}}{},{{/hasParameters}}{{#hasParameters}}{\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n},{{/hasParameters}} {\\n mode: ActionExecutionMode.VALIDATE_AND_EXECUTE,\\n returnEdits: ReturnEditsMode.ALL,\\n }\\n);\\n// Check if http request was successful\\nif (!isOk(result)) {\\n throw result.error;\\n}\\n// Check if the validation was successful\\nconsole.log(result.value.validation);\\nif (result.value.validation.result === ActionValidationResult.VALID) {\\n // If ReturnEditsMode.ALL is used, new and updated objects edits will contain the primary key of the object\\n if (result.value.edits.type === \\\"edits\\\") {\\n console.log(result.value.edits);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV1\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"import { ActionExecutionMode, ReturnEditsMode{{#hasAttachmentImports}}, Attachment{{/hasAttachmentImports}}{{#hasDateInputs}}, LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}, Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.bulkActions.{{actionApiName}}(\\n [\\n {{^hasParameters}}{},{}{{/hasParameters}}{{#hasParameters}}{\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n },\\n {\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n },{{/hasParameters}}\\n ],\\n {\\n returnEdits: ReturnEditsMode.NONE,\\n }\\n);\",\n \"computedVariables\": [\"actionParameterSampleValuesV1\"]\n }],\n \"uploadAttachment\": [{\n \"template\": \"import { type Result, isOk, Attachment, type AttachmentsError } from \\\"{{{packageName}}}\\\";\\n\\nasync function uploadMyFile() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return client.ontology.attachments.upload(\\\"myFile\\\", blob);\\n}\\n\\nconst result: Result<Attachment, AttachmentsError> = await uploadMyFile();\\n\\nif (isOk(result)) {\\n const attachment = result.value;\\n console.log(attachment);\\n} else {\\n console.error(result.error.errorType);\\n}\"\n }],\n \"executeFunction\": [{\n \"template\": \"{{#needsImports}}\\nimport { {{#hasAttachmentImports}}Attachment{{#hasDateInputs}},{{/hasDateInputs}}{{^hasDateInputs}}{{#hasTimestampInputs}},{{/hasTimestampInputs}}{{/hasDateInputs}}{{/hasAttachmentImports}}{{#hasDateInputs}}LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{/needsImports}}\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.queries.{{funcApiName}}({{{functionInputValuesV1}}});\",\n \"computedVariables\": [\"functionInputValuesV1\"]\n }],\n \"stringStartsWithTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.startsWith(\\\"foo\\\"));\"\n }],\n \"containsAllTermsInOrderTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAllTermsInOrder(\\\"foo bar\\\"));\"\n }],\n \"containsAnyTermTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAnyTerm(\\\"foo bar\\\"));\"\n }],\n \"containsAllTermsTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAllTerms(\\\"foo bar\\\"));\"\n }],\n \"equalityTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.eq({{{propertyValueV1}}}));\",\n \"computedVariables\": [\"propertyValueV1\"]\n }],\n \"inFilterTemplate\": [{\n \"template\": \"// Not supported\"\n }],\n \"nullTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.isNull());\"\n }],\n \"rangeTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{operation}}({{{propertyValueV1}}}));\",\n \"computedVariables\": [\"propertyValueV1\"]\n }],\n \"withinDistanceTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.within{{distanceUnitText}}(\\n // New York City\\n GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n 100.0,\\n ));\"\n }],\n \"withinBoundingBoxTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.withinBoundingBox({\\n topLeft: GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n bottomRight: GeoPoint.fromCoordinates({ latitude: 25.123, longitude: 80.4231 }),\\n });\"\n }],\n \"withinPolygonTemplate\": [{\n \"template\": \"import { Polygon } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.withinPolygon(Polygon.fromGeoJson({\\n type: \\\"Polygon\\\",\\n coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]],\\n }));\"\n }],\n \"intersectsPolygonTemplate\": [{\n \"template\": \"import { Polygon } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{intersects}}Polygon(Polygon.fromGeoJson({\\n type: \\\"Polygon\\\",\\n coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]],\\n }));\"\n }],\n \"intersectsBboxTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{intersects}}BoundingBox({\\n topLeft: GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n bottomRight: GeoPoint.fromCoordinates({ latitude: 25.123, longitude: 80.4231 }),\\n });\"\n }],\n \"notTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.not(query.{{primaryKeyPropertyV1.apiName}}.isNull()));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"andTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.and(\\n Op.not(query.{{primaryKeyPropertyV1.apiName}}.isNull()),\\n query.{{primaryKeyPropertyV1.apiName}}.eq(\\\"primaryKey\\\"),\\n ));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"orTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.or(\\n query.{{primaryKeyPropertyV1.apiName}}.isNull(),\\n query.{{primaryKeyPropertyV1.apiName}}.eq(\\\"primaryKey\\\"),\\n ));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"loadTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.points.all();\\n}\"\n }],\n \"loadRelativeTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.from{{timeUnitValue}}Ago(1).all();\\n}\"\n }],\n \"loadAbsoluteTimeSeriesPointsSnippet\": [{\n \"template\": \"import { Timestamp } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.range({\\n startTime: Timestamp.fromISOString(\\\"2022-08-13T12:34:56Z\\\"),\\n endTime: Timestamp.fromISOString(\\\"2022-08-14T12:34:56Z\\\"),\\n });\\n}\"\n }],\n \"loadTimeSeriesFirstPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getFirstPoint();\\n}\"\n }],\n \"loadTimeSeriesLastPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getLastPoint();\\n}\"\n }],\n \"loadObjectMetadataSnippet\": [{\n \"template\": \"// Not supported.\"\n }],\n \"subscribeToObjectSetInstructions\": [{\n \"template\": \"// Subscribing to object sets is only supported in 2.x versions of the SDK.\"\n }]\n }\n },\n \"1.1.0\": {\n \"snippets\": {\n \"loadSingleObjectGuide\": [{\n \"template\": \"import { type GetObjectError, isOk, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst result: Result<{{objectType}}, GetObjectError> = await client.ontology.objects.{{objectType}}.fetchOneWithErrors(\\\"primaryKey\\\");\\nif (isOk(result)) {\\n const object: {{objectType}} = result.value;\\n} else {\\n console.error(result.error.errorType);\\n}\\n// You can also fetch a single object without the Result wrapper\\ntry {\\n const object: {{objectType}} = await client.ontology.objects.{{objectType}}.fetchOne(\\\"primaryKey\\\");\\n}\\ncatch(e) {\\n throw e;\\n}\"\n }],\n \"loadObjectPageGuide\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst firstPage: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}.fetchPageWithErrors({ pageSize: 30 });\\n\\nif (isOk(firstPage)) {\\n const secondPage: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .fetchPageWithErrors({ pageSize: 30, pageToken: firstPage.value.nextPageToken });\\n\\n const objects = isOk(secondPage) ? [...firstPage.value.data, ...secondPage.value.data] : firstPage.value.data;\\n const object = objects[0];\\n}\\n\\n// To fetch a page without a result wrapper, use fetchPage with a try/catch instead\\ntry {\\n const firstPage: Page<{{objectType}}> = await client.ontology.objects.{{objectType}}.fetchPage({ pageSize: 30 });\\n const secondPage: Page<{{objectType}}> = await client.ontology.objects.{{objectType}}\\n .fetchPage({ pageSize: 30, pageToken: firstPage.value.nextPageToken });\\n const objects = [...firstPage.data, ...secondPage.data];\\n const object = objects[0];\\n}\\ncatch (e) {\\n throw e;\\n}\"\n }],\n \"orderObjectsGuide\": [{\n \"template\": \"import { isOk, Page, type Result, type SearchObjectsError } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst page: Result<Page<{{objectType}}>, SearchObjectsError> = await client.ontology.objects.{{objectType}}\\n .orderBy(sortBy => sortBy.{{titleProperty}}.asc())\\n .fetchPageWithErrors({ pageSize: 30 });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"searchObjectsGuide\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst page: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .where(query => query.{{titleProperty}}.isNull())\\n .fetchPageWithErrors({ pageSize: 30 });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"loadSingleObjectReference\": [{\n \"template\": \"import { type GetObjectError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst response: Result<{{objectType}}, GetObjectError> = await client.ontology.objects.{{objectType}}.fetchOneWithErrors(\\\"primaryKey\\\");\\n\\n// You can also fetch a single object without the result wrapper\\nconst responseNoWrapper: {{objectType}} = await client.ontology.objects.{{objectType}}.fetchOne(\\\"primaryKey\\\");\\n\"\n }],\n \"loadObjectsReference\": [{\n \"template\": \"import type { LoadObjectSetError, Page, Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst response: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .fetchPageWithErrors({ pageSize: 30 });\\n\\n// To fetch a page without a result wrapper, use fetchPage instead\\nconst responseNoErrorWrapper: Page<{{objectType}}> = await client.ontology.objects.{{objectType}}\\n .fetchPage({ pageSize: 30 });\"\n }],\n \"loadAllObjectsReference\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst objects: {{objectType}}[]= [];\\n\\nfor await(const obj of client.ontology.objects.{{objectType}}.asyncIter()) {\\n objects.push(obj);\\n}\\nconst object = objects.value[0];\"\n }],\n \"loadLinkedObjectReference\": [{\n \"template\": \"import type { GetLinkedObjectError, Result } from \\\"{{{packageName}}}\\\";\\nimport { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: {{sourceObjectType}}, linkedObjectPrimaryKey: {{linkedPrimaryKeyPropertyV1.type}}): Result<{{linkedObjectType}}, GetLinkedObjectError>\\n{\\n return source.{{linkApiName}}.fetchOneWithErrors(linkedObjectPrimaryKey);\\n}\\n\\n// You can also get a linked object without the result wrapper\\nfunction getLinkedNoWrapper{{linkedObjectType}}(source: {{sourceObjectType}}, linkedObjectPrimaryKey: {{linkedPrimaryKeyPropertyV1.type}}): {{linkedObjectType}} {\\n return source.{{linkApiName}}.fetchOne(linkedObjectPrimaryKey);\\n}\",\n \"computedVariables\": [\"linkedPrimaryKeyPropertyV1\"]\n }],\n \"loadLinkedObjectsReference\": [{\n \"template\": \"import type { GetLinkedObjectError, Result } from \\\"{{{packageName}}}\\\";\\nimport { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: {{sourceObjectType}}) {\\n {{#isLinkManySided}}\\n return source.{{linkApiName}}.fetchPageWithErrors({ pageSize: 30 });\\n {{/isLinkManySided}}\\n {{^isLinkManySided}}\\n return source.{{linkApiName}}.fetchOneWithErrors();\\n {{/isLinkManySided}}\\n}\"\n }],\n \"aggregationTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst num{{objectType}} = await client.ontology.objects.{{objectType}}\\n .where(query => Op.not(query.{{property}}.isNull()))\\n .groupBy(property => property.{{property}}.exact())\\n .count()\\n .compute()\"\n }],\n \"countAggregationTemplate\": [{\n \"template\": \"const num{{objectType}} = await client.ontology.objects.{{objectType}}\\n .count()\\n .compute()\"\n }],\n \"approximateDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst distinct{{objectType}} = await client.ontology.objects.{{objectType}}\\n .approximateDistinct(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses metricName as the metric name instead of the default \\\"distinctCount\\\"\\nconst distinct{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.approximateDistinct(),\\n }))\\n .compute()\"\n }],\n \"exactDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst distinct{{objectType}} = await client.ontology.objects.{{objectType}}\\n .exactDistinct(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses metricName as the metric name instead of the default \\\"exactDistinctCount\\\"\\nconst distinct{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.exactDistinct(),\\n }))\\n .compute()\"\n }],\n \"numericAggregationTemplate\": [{\n \"template\": \"const {{operation}}{{objectType}} = await client.ontology.objects.{{objectType}}\\n .{{operation}}(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses \\\"metricName\\\" as the metric name instead of the default \\\"{{operation}}\\\"\\nconst {{operation}}{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.{{operation}}(),\\n }))\\n .compute()\"\n }],\n \"fixedWidthGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.fixedWidth(10))\\n .count()\\n .compute()\"\n }],\n \"durationGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.by{{duration}}({{#durationText}}{{arg}}{{/durationText}}))\\n .count()\\n .compute()\"\n }],\n \"exactGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.exact())\\n .count()\\n .compute()\"\n }],\n \"rangeGroupByTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.ranges([{\\n startValue: {{propertyValueV1}},\\n endValue: {{propertyValueIncrementedV1}}\\n }]))\\n .count()\\n .compute()\",\n \"computedVariables\": [\"propertyValueV1\", \"propertyValueIncrementedV1\"]\n }],\n \"applyAction\": [{\n \"template\": \"import { ActionValidationResult, ActionExecutionMode, ReturnEditsMode{{#hasAttachmentImports}}, Attachment{{/hasAttachmentImports}}{{#hasDateInputs}}, LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}, Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.actions.{{actionApiName}}({{^hasParameters}}{},{{/hasParameters}}{{#hasParameters}}{\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n},{{/hasParameters}} {\\n mode: ActionExecutionMode.VALIDATE_AND_EXECUTE,\\n returnEdits: ReturnEditsMode.ALL,\\n }\\n);\\n// Check if http request was successful\\nif (!isOk(result)) {\\n throw result.error;\\n}\\n// Check if the validation was successful\\nconsole.log(result.value.validation);\\nif (result.value.validation.result === ActionValidationResult.VALID) {\\n // If ReturnEditsMode.ALL is used, new and updated objects edits will contain the primary key of the object\\n if (result.value.edits.type === \\\"edits\\\") {\\n console.log(result.value.edits);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV1\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"import { ActionExecutionMode, ReturnEditsMode{{#hasAttachmentImports}}, Attachment{{/hasAttachmentImports}}{{#hasDateInputs}}, LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}, Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.batchActions.{{actionApiName}}(\\n [\\n {{^hasParameters}}{},{}{{/hasParameters}}{{#hasParameters}}{\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n },\\n {\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n },{{/hasParameters}}\\n ],\\n {\\n returnEdits: ReturnEditsMode.NONE,\\n }\\n);\",\n \"computedVariables\": [\"actionParameterSampleValuesV1\"]\n }],\n \"uploadAttachment\": [{\n \"template\": \"import { type Result, isOk, type Attachment, type AttachmentsError } from \\\"{{{packageName}}}\\\";\\n\\nasync function uploadMyFile() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return client.ontology.attachments.upload(\\\"myFile\\\", blob);\\n}\\n\\nconst result: Result<Attachment, AttachmentsError> = await uploadMyFile();\\n\\nif (isOk(result)) {\\n const attachment = result.value;\\n console.log(attachment);\\n} else {\\n console.error(result.error.errorType);\\n}\"\n }],\n \"executeFunction\": [{\n \"template\": \"{{#needsImports}}\\nimport { {{#hasAttachmentImports}}Attachment{{#hasDateInputs}},{{/hasDateInputs}}{{^hasDateInputs}}{{#hasTimestampInputs}},{{/hasTimestampInputs}}{{/hasDateInputs}}{{/hasAttachmentImports}}{{#hasDateInputs}}LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{/needsImports}}\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.queries.{{funcApiName}}({{{functionInputValuesV1}}});\",\n \"computedVariables\": [\"functionInputValuesV1\"]\n }],\n \"stringStartsWithTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.startsWith(\\\"foo\\\"));\"\n }],\n \"containsAllTermsInOrderTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAllTermsInOrder(\\\"foo bar\\\"));\"\n }],\n \"containsAnyTermTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAnyTerm(\\\"foo bar\\\"));\"\n }],\n \"containsAllTermsTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAllTerms(\\\"foo bar\\\"));\"\n }],\n \"equalityTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.eq({{{propertyValueV1}}}));\",\n \"computedVariables\": [\"propertyValueV1\"]\n }],\n \"inFilterTemplate\": [{\n \"template\": \"// Not supported\"\n }],\n \"nullTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.isNull());\"\n }],\n \"rangeTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{operation}}({{{propertyValueV1}}}));\",\n \"computedVariables\": [\"propertyValueV1\"]\n }],\n \"withinDistanceTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.within{{distanceUnitText}}(\\n // New York City\\n GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n 100.0,\\n ));\"\n }],\n \"withinBoundingBoxTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.withinBoundingBox({\\n topLeft: GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n bottomRight: GeoPoint.fromCoordinates({ latitude: 25.123, longitude: 80.4231 }),\\n });\"\n }],\n \"withinPolygonTemplate\": [{\n \"template\": \"import { Polygon } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.withinPolygon(Polygon.fromGeoJson({\\n type: \\\"Polygon\\\",\\n coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]],\\n }));\"\n }],\n \"intersectsPolygonTemplate\": [{\n \"template\": \"import { Polygon } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{intersects}}Polygon(Polygon.fromGeoJson({\\n type: \\\"Polygon\\\",\\n coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]],\\n }));\"\n }],\n \"intersectsBboxTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{intersects}}BoundingBox({\\n topLeft: GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n bottomRight: GeoPoint.fromCoordinates({ latitude: 25.123, longitude: 80.4231 }),\\n });\"\n }],\n \"notTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.not(query.{{primaryKeyPropertyV1.apiName}}.isNull()));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"andTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.and(\\n Op.not(query.{{primaryKeyPropertyV1.apiName}}.isNull()),\\n query.{{primaryKeyPropertyV1.apiName}}.eq(\\\"primaryKey\\\"),\\n ));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"orTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.or(\\n query.{{primaryKeyPropertyV1.apiName}}.isNull(),\\n query.{{primaryKeyPropertyV1.apiName}}.eq(\\\"primaryKey\\\"),\\n ));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"loadTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.points.all();\\n}\"\n }],\n \"loadRelativeTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.from{{timeUnitValue}}Ago(1).all();\\n}\"\n }],\n \"loadAbsoluteTimeSeriesPointsSnippet\": [{\n \"template\": \"import { Timestamp } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.range({\\n startTime: Timestamp.fromISOString(\\\"2022-08-13T12:34:56Z\\\"),\\n endTime: Timestamp.fromISOString(\\\"2022-08-14T12:34:56Z\\\"),\\n });\\n}\"\n }],\n \"loadTimeSeriesFirstPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getFirstPoint();\\n}\"\n }],\n \"loadTimeSeriesLastPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getLastPoint();\\n}\"\n }],\n \"loadObjectMetadataSnippet\": [{\n \"template\": \"// Not supported.\"\n }],\n \"subscribeToObjectSetInstructions\": [{\n \"template\": \"// Subscribing to object sets is only supported in 2.x versions of the SDK.\"\n }]\n }\n },\n \"2.0.0\": {\n \"snippets\": {\n \"loadSingleObjectGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk } from \\\"@osdk/client\\\";\\n\\ntry {\\n const object: Osdk.Instance<{{objectType}}> = await client({{objectType}}).fetchOne({{{primaryKeyPropertyValueV2}}});\\n}\\ncatch(e) {\\n throw e;\\n}\",\n \"computedVariables\": [\"primaryKeyPropertyValueV2\"]\n }],\n \"loadObjectPageGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const firstPage: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30 });\\n if (firstPage.nextPageToken === undefined) {\\n console.log(firstPage.data);\\n }\\n const secondPage: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30, $nextPageToken: firstPage.nextPageToken });\\n console.log([...firstPage.data, ...secondPage.data]);\\n}\\ncatch (e) {\\n throw e;\\n}\"\n }],\n \"orderObjectsGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const page: PageResult<Osdk.Instance<{{objectType}}>> = await client({{objectType}})\\n .fetchPage({\\n $orderBy: {\\\"{{titleProperty}}\\\": \\\"asc\\\"},\\n $pageSize: 30\\n });\\n const objects = page.data;\\n const object = objects[0];\\n} catch (e) {\\n throw e;\\n}\"\n }],\n \"searchObjectsGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const page: PageResult<Osdk.Instance<{{objectType}}>> = await client({{objectType}})\\n .where({\\n {{titleProperty}}: {$isNull: true}\\n })\\n .fetchPage({\\n $pageSize: 30\\n });\\n const objects = page.data;\\n const object = objects[0];\\n} catch (e) {\\n throw e;\\n}\"\n }],\n \"loadSingleObjectReference\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { Osdk } from \\\"@osdk/client\\\";\\n\\nconst responseNoErrorWrapper: Osdk.Instance<{{objectType}}> = await client({{objectType}}).fetchOne({{{primaryKeyPropertyValueV2}}});\\n\\n\",\n \"computedVariables\": [\"primaryKeyPropertyValueV2\"]\n }],\n \"loadObjectsReference\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { Osdk, PageResult } from \\\"@osdk/client\\\";\\ntry {\\n const responseNoErrorWrapper: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30 });\\n} catch (e) {\\n throw e;\\n}\\n\"\n }],\n \"loadAllObjectsReference\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { Osdk } from \\\"@osdk/client\\\";\\n\\nasync function getAll(): Promise<Array<Osdk.Instance<{{objectType}}>>> {\\n const objects: Osdk.Instance<{{objectType}}>[]= [];\\n for await(const obj of client({{objectType}}).asyncIter()) {\\n objects.push(obj);\\n }\\n\\n return objects;\\n}\\n\\n// If Array.fromAsync() is available in your target environment\\nfunction getAllFromAsync(): Promise<Array<Osdk.Instance<{{objectType}}>>> {\\n return Array.fromAsync(client({{objectType}}).asyncIter());\\n}\"\n }],\n \"loadLinkedObjectReference\": [{\n \"template\": \"import { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\nimport { type Osdk } from \\\"@osdk/client\\\";\\n\\nasync function getLinked{{linkedObjectType}}(source: Osdk.Instance<{{objectType}}>) {\\n try {\\n {{#isLinkManySided}}\\n return await source.$link.{{linkApiName}}.fetchPage();\\n {{/isLinkManySided}}\\n {{^isLinkManySided}}\\n return await source.$link.{{linkApiName}}.fetchOne();\\n {{/isLinkManySided}}\\n } catch (error) {\\n return { error };\\n }\\n}\"\n }],\n \"loadLinkedObjectsReference\": [{\n \"template\": \"import { {{sourceObjectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nasync function getLinkedWithPivot{{linkedObjectType}}(){\\n return await client({{sourceObjectType}}).pivotTo(\\\"{{linkApiName}}\\\").fetchPage();\\n}\"\n }],\n \"aggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst num{{objectType}} = await client({{objectType}})\\n .where({ {{property}}: { $isNull : false }})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n //$groupBy: { {{property}}: \\\"exact\\\" },\\n });\"\n }],\n \"countAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst num{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: {$count: \\\"unordered\\\"},\\n });\"\n }],\n \"approximateDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst distinct{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { \\\"{{property}}:approximateDistinct\\\" : \\\"unordered\\\" },\\n });\"\n }],\n \"exactDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst distinct{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { \\\"{{property}}:exactDistinct\\\" : \\\"unordered\\\" },\\n });\"\n }],\n \"numericAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{operation}}{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { \\\"{{property}}:{{operation}}\\\" : \\\"unordered\\\" }\\n });\"\n }],\n \"fixedWidthGroupByTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst grouped{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n $groupBy: { {{property}}: { $fixedWidth: 10 } }\\n });\"\n }],\n \"durationGroupByTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst grouped{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n $groupBy: { {{property}}: { $duration: [ {{#durationText}}{{arg}}{{/durationText}}, \\\"{{#durationText}}{{unit}}{{/durationText}}\\\"] } }\\n });\"\n }],\n \"exactGroupByTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst grouped{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n $groupBy: { {{property}}: \\\"exact\\\" }\\n })\"\n }],\n \"rangeGroupByTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst grouped{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n $groupBy: { {{property}}: { $ranges: [[{{{propertyValueV2}}}, {{{propertyValueIncrementedV2}}} ]]} }\\n });\",\n \"computedVariables\": [\"propertyValueV2\", \"propertyValueIncrementedV2\"]\n }],\n \"applyAction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\nimport type { AttachmentUpload {{#hasMediaParameter}}, MediaReference {{/hasMediaParameter}} } from \\\"@osdk/api\\\";\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}{{#hasMediaParameter}}\\nimport type { MediaReference } from \\\"@osdk/api\\\";\\n{{/hasMediaParameter}}{{/hasAttachmentProperty}}\\n{{#hasAttachmentProperty}}\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\nimport { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from \\\"@osdk/api/unstable\\\";\\n{{/hasMediaParameter}}\\nimport { {{actionApiName}} {{#hasMediaParameter}}, {{objectType}} {{/hasMediaParameter}} } from \\\"{{{packageName}}}\\\";\\n\\nasync function callAction() {\\n{{#hasAttachmentProperty}}\\n // Create attachment upload\\n const attachmentFile = await fetch(\\\"file.json\\\");\\n const attachmentBlob = await attachmentFile.blob();\\n const attachment: AttachmentUpload = createAttachmentUpload(attachmentBlob, \\\"myFile\\\");\\n // alternatively, you can get the Rid from the attachment property on the object type you are modifying \\n // const attachmentRid = objectTypeWithAttachment.{attachmentProperty}?.rid;\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\n // Create media reference\\n const mediaFile = await fetch(\\\"media.mp4\\\");\\n const mediaBlob = await mediaFile.blob();\\n const mediaReference: MediaReference = await client(\\n __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference,\\n ).createMediaReference({\\n data: mediaBlob,\\n fileName: \\\"myMedia\\\",\\n objectType: {{objectType}},\\n propertyType: \\\"{{property}}\\\",\\n });\\n // alternatively, you can get the Rid from the media property on the object type you are modifying\\n // const mediaRid = objectTypeWithMedia.{mediaProperty}?.rid;\\n{{/hasMediaParameter}}\\n const result = await client({{actionApiName}}).applyAction(\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n $returnEdits: true,\\n }\\n );\\n if (result.type === \\\"edits\\\") {\\n // use the result object to report back on action results\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\nimport type { AttachmentUpload {{#hasMediaParameter}}, MediaReference {{/hasMediaParameter}} } from \\\"@osdk/api\\\";\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}{{#hasMediaParameter}}\\nimport type { MediaReference } from \\\"@osdk/api\\\";\\n{{/hasMediaParameter}}{{/hasAttachmentProperty}}\\n{{#hasAttachmentProperty}}\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\nimport { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from \\\"@osdk/api/unstable\\\";\\n{{/hasMediaParameter}}\\nimport { {{actionApiName}} {{#hasMediaParameter}}, {{objectType}} {{/hasMediaParameter}} } from \\\"{{{packageName}}}\\\";\\n\\nasync function callBatchAction() {\\n{{#hasAttachmentProperty}}\\n // Create attachment upload\\n const attachmentFile = await fetch(\\\"file.json\\\");\\n const attachmentBlob = await attachmentFile.blob();\\n const attachment: AttachmentUpload = createAttachmentUpload(attachmentBlob, \\\"myFile\\\");\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\n // Create media reference\\n const mediaFile = await fetch(\\\"media.mp4\\\");\\n const mediaBlob = await mediaFile.blob();\\n const mediaReference: MediaReference = await client(\\n __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference,\\n ).createMediaReference({\\n data: mediaBlob,\\n fileName: \\\"myMedia\\\",\\n objectType: {{objectType}},\\n propertyType: \\\"{{property}}\\\",\\n });\\n{{/hasMediaParameter}}\\n const result = await client({{actionApiName}}).batchApplyAction([\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n ],\\n {\\n $returnEdits: true,\\n }\\n );\\n if (result.type === \\\"edits\\\") {\\n // use the result object to report back on action results\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"uploadAttachment\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\nimport type { AttachmentUpload } from \\\"@osdk/api\\\";\\nimport { {{actionApiName}} } from \\\"{{{packageName}}}\\\";\\n\\n// To call an action with an attachment property, you first need to upload the file\\nasync function createAttachmentReference() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return createAttachmentUpload(blob, \\\"myFile\\\");\\n}\\n\\nconst myAttachmentUpload: AttachmentUpload = await createAttachmentReference();\\n// then pass the attachment to the action in the action parameter.\\nconst actionResult = client({{actionApiName}}).applyAction({ \\n {{primaryKeyPropertyV2.apiName}}: {{{propertyValueV2}}},\\n {{property}}: myAttachmentUpload\\n });\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"castInterfaceToObjectReference\": [{\n \"template\": \"import { {{objectTypeApiName}}, {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk } from \\\"@osdk/client\\\";\\n try {\\n const page = await client({{interfaceApiName}}).fetchPage();\\n\\n const interfaces = page.data;\\n const {{interfaceApiNameCamelCase}}: Osdk<{{interfaceApiName}}> = interfaces[0];\\n\\n // Cast from interface to object type\\n const {{objectTypeApiNameCamelCase}}: Osdk<{{objectTypeApiName}}> = {{interfaceApiNameCamelCase}}.$as({{objectTypeApiName}});\\n // Or from object type back to interface\\n const {{interfaceApiNameCamelCase}}2: Osdk<{{interfaceApiName}}> = {{objectTypeApiNameCamelCase}}.$as({{interfaceApiName}});\\n } catch (e) {\\n throw e;\\n }\"\n }],\n \"executeFunction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\n{{#hasAttachmentUpload}}\\nimport type { AttachmentUpload } from \\\"@osdk/api\\\";\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\nimport { {{funcApiName}} } from \\\"{{{packageName}}}\\\";\\n{{/hasAttachmentUpload}}\\n{{^hasAttachmentUpload}}\\nimport type { Osdk } from \\\"@osdk/client\\\";\\nimport { {{funcApiName}}, type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n{{/hasAttachmentUpload}}\\n\\n{{#hasAttachmentUpload}}\\nasync function callFunctionWithAttachmentUpload() {\\n async function createAttachmentReference() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return createAttachmentUpload(blob, \\\"myFile\\\");\\n }\\n const attachment: AttachmentUpload = await createAttachmentReference();\\n{{/hasAttachmentUpload}}\\n{{^hasAttachmentUpload}}\\nasync function callFunctionWithAttachmentLoaded(objectWithAttachment: Osdk.Instance<{{objectType}}>) {\\n const attachment = objectWithAttachment.{{attachmentProperty}}?.rid;\\n if (attachment == null) {\\n throw new Error(\\\"Attachment is required\\\");\\n }\\n{{/hasAttachmentUpload}}\\n const result = await client({{funcApiName}}).executeFunction({{{functionInputValuesV2}}});\\n return result;\\n}\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}\\nimport { {{funcApiName}} } from \\\"{{{packageName}}}\\\";\\n\\nconst result = await client({{funcApiName}}).executeFunction({{{functionInputValuesV2}}});\\n{{/hasAttachmentProperty}}\",\n \"computedVariables\": [\"functionInputValuesV2\"]\n }],\n \"stringStartsWithTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $startsWith: \\\"foo\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $startsWith: \\\"foo\\\" }\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"containsAllTermsInOrderTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $containsAllTermsInOrder: \\\"foo bar\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $containsAllTermsInOrder: \\\"foo bar\\\" }\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"containsAnyTermTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $containsAnyTerm: \\\"foo bar\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $containsAnyTerm: \\\"foo bar\\\" }\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"containsAllTermsTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $containsAllTerms: \\\"foo bar\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $containsAllTerms: \\\"foo bar\\\" }\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"equalityTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $eq: {{{propertyValueV2}}} }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $eq: {{{propertyValueV2}}} }\\n {{/structSubPropertyApiName}}\\n });\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"inFilterTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $in: [{{{propertyValueV2}}}] }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $in: [{{{propertyValueV2}}}] }\\n {{/structSubPropertyApiName}}\\n });\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"nullTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $isNull: true }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $isNull: true }\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"rangeTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { ${{operation}}: {{{propertyValueV2}}} }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { ${{operation}}: {{{propertyValueV2}}} }\\n {{/structSubPropertyApiName}}\\n });\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"withinDistanceTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $within: { $distance: [100, \\\"{{distanceUnit}}\\\"], $of: [-74.0060, 40.7128]} }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $within: { $distance: [100, \\\"{{distanceUnit}}\\\"], $of: [-74.0060, 40.7128]}}\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"withinBoundingBoxTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $within: { $bbox: [-74.0060, 25.123, 80.4231, 40.7128]}}}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $within: { $bbox: [-74.0060, 25.123, 80.4231, 40.7128]}}\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"withinPolygonTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $within: { type: \\\"Polygon\\\", coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]]}}}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $within: { type: \\\"Polygon\\\", coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]]}}\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"intersectsPolygonTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $intersects: { type: \\\"Polygon\\\", coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]]}}}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $intersects: { type: \\\"Polygon\\\", coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]]}}\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"intersectsBboxTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $intersects: { $bbox: [-74.0060, 25.123, 80.4231, 40.7128]}}}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $intersects: { $bbox: [-74.0060, 25.123, 80.4231, 40.7128]}}\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"notTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({ $not: { {{property}}: { $eq: {{{propertyValueV2}}} }}});\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"andTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({ $and:[\\n { $not: { {{primaryKeyPropertyV2.apiName}}: { $isNull: true }}},\\n { {{property}}: { $eq: {{{propertyValueV2}}} }}\\n ]});\",\n \"computedVariables\": [\"primaryKeyPropertyV2\", \"propertyValueV2\"]\n }],\n \"orTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({ $or:[\\n { $not: { {{primaryKeyPropertyV2.apiName}}: { $isNull: true }}},\\n { {{property}}: { $eq: {{{propertyValueV2}}} }}\\n ]});\",\n \"computedVariables\": [\"primaryKeyPropertyV2\", \"propertyValueV2\"]\n }],\n \"containsTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst filteredObjects = client({{objectType}})\\n .where({\\n {{property}}: { $contains: {{{arrayElementValue}}} }\\n })\",\n \"computedVariables\": [\"arrayElementValue\"]\n }],\n \"loadInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\nconst response: PageResult<Osdk<{{interfaceApiName}}>>\\n = await client({{interfaceApiName}}).fetchPage({ $pageSize: 30 });\"\n }],\n \"loadAllInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { Osdk } from \\\"@osdk/client\\\";\\n\\nconst interfaces: Osdk<{{interfaceApiName}}>[] = [];\\n\\nfor await(const int of client({{interfaceApiName}}).asyncIter()) {\\n interfaces.push(int);\\n}\\nconst interface1 = interfaces[0];\"\n }],\n \"loadOrderedInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const page: PageResult<Osdk<{{interfaceApiName}}>> = await client({{interfaceApiName}})\\n .fetchPage({\\n $orderBy: { {{property}}: \\\"asc\\\"},\\n $pageSize: 30\\n });\\n} catch (e) {\\n throw e;\\n}\"\n }],\n \"searchInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const page: PageResult<Osdk<{{interfaceApiName}}>> = await client({{interfaceApiName}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $startsWith: \\\"foo\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $startsWith: \\\"foo\\\" }\\n {{/structSubPropertyApiName}}\\n })\\n .fetchPage({\\n $pageSize: 30\\n });\\n\\n const interfaces = page.data;\\n const interface1 = interfaces[0];\\n} catch (e) {\\n throw e;\\n}\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"loadTimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllPoints();\\n}\"\n }],\n \"loadRelativeTimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllPoints({\\n $before: 1,\\n $unit: \\\"{{timeUnit}}\\\",\\n })\\n}\"\n }],\n \"loadAbsoluteTimeSeriesPointsSnippet\": [{\n \"template\": \"import { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\nimport { type Osdk } from \\\"@osdk/client\\\";\\n\\nasync function getAbsoluteTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return await obj.{{property}}?.getAllPoints({\\n $startTime: \\\"2022-08-13T12:34:56Z\\\",\\n $endTime: \\\"2022-08-14T12:34:56Z\\\",\\n });\\n}\"\n }],\n \"loadTimeSeriesFirstPointSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getFirstTimeSeriesPoint(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getFirstPoint();\\n}\"\n }],\n \"loadTimeSeriesLastPointSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getLastTimeSeriesPoint(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getLastPoint();\\n}\"\n }],\n \"loadGeotimeSeriesPointsSnippet\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"loadRelativeGeotimeSeriesPointsSnippet\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"loadAbsoluteGeotimeSeriesPointsSnippet\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"loadGeotimeSeriesLastPointSnippet\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"loadObjectMetadataSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst objectTypeMetadata = await client.fetchMetadata({{objectType}});\\n\\nif (objectTypeMetadata?.icon?.type === \\\"blueprint\\\") {\\n const blueprintIconName = objectTypeMetadata.icon.name;\\n}\\nconst currentVisibility = objectTypeMetadata.visibility;\\nconst currentDescription = objectTypeMetadata.description;\"\n }],\n \"loadInterfaceMetadataSnippet\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst interfaceTypeMetadata = await client.fetchMetadata({{interfaceApiName}});\\n\\nconst implementingObjectTypes = interfaceTypeMetadata.implementedBy;\\nconst interfaceRid = interfaceTypeMetadata.rid;\"\n }],\n \"subscribeToObjectSetInstructions\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"uploadMedia\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"readMedia\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"derivedPropertyBaseExample\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"$count\\\")\\n })\\n .where({\\n \\\"newPropertyName\\\": { $gt: 0 }\\n }).aggregate({\\n $select: { \\\"newPropertyName:max\\\": \\\"unordered\\\" }\\n })\"\n }],\n \"derivedPropertyApproximateDistinctAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:approximateDistinct\\\")\\n }).fetchPage();\"\n }],\n \"derivedPropertyExactDistinctAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:exactDistinct\\\")\\n }).fetchPage();\"\n }],\n \"derivedPropertyCollectToListAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst maxObjectsInList = 75; // Adjust this value as needed between 1 and 100\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:collectList\\\", { limit: maxObjectsInList })\\n }).fetchPage();\"\n }],\n \"derivedPropertyCollectToSetAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst maxObjectsInSet = 75; // Adjust this value as needed between 1 and 100\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:collectSet\\\", { limit: maxObjectsInSet })\\n }).fetchPage();\"\n }],\n \"derivedPropertyCountAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"$count\\\")\\n }).fetchPage();\"\n }],\n \"derivedPropertySelectPropertyAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").selectProperty(\\\"{{property}}\\\")\\n }).fetchPage();\"\n }],\n \"derivedPropertyApproximatePercentileAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:approximatePercentile\\\", { percentile: 95 })\\n }).fetchPage();\"\n }],\n \"derivedPropertyNumericAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:{{operation}}\\\")\\n }).fetchPage();\"\n }],\n \"objectSetOperationsGuide\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst objectSetA = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"a\\\"}})\\nconst objectSetB = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"b\\\"}})\\nconst objectSetC = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"c\\\"}})\\n\\n// Object set operations can be chained. e.g. To find all objects in objectSetA \\n// that are present in objectSetB but do not exist in objectSetC:\\nconst result = objectSetA\\n .intersect(objectSetB)\\n .subtract(objectSetC)\"\n }],\n \"objectSetOperationsUnion\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst objectSetA = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"a\\\"}})\\nconst objectSetB = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"b\\\"}})\\nconst objectSetC = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"c\\\"}})\\n\\n// Combine objectSetA, objectSetB and objectSetC\\nconst result = objectSetA\\n .union(objectSetB)\\n .union(objectSetC) // alternatively: objectSetA.union(objectSetB, objectSetC)\"\n }],\n \"objectSetOperationsSubtract\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst objectSetA = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"a\\\"}})\\nconst objectSetB = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"b\\\"}})\\nconst objectSetC = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"c\\\"}})\\n\\n\\n// Return objects in objectSetA that are not present in either objectSetB or objectSetC\\nconst result = objectSetA\\n .subtract(objectSetB)\\n .subtract(objectSetC) // alternatively: objectSetA.subtract(objectSetB, objectSetC)\"\n }],\n \"objectSetOperationsIntersect\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst objectSetA = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"a\\\"}})\\nconst objectSetB = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"b\\\"}})\\nconst objectSetC = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"c\\\"}})\\n\\n\\n// Return all objects common to objectSetA, objectSetB and objectSetC\\nconst result = objectSetA\\n .intersect(objectSetB)\\n .intersect(objectSetC) // alternatively: objectSetA.intersect(objectSetB, objectSetC)\"\n }],\n \"searchAround\": [{\n \"template\": \"import { {{sourceObjectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\n// Object set containing objects a, b and c\\nconst objects = client({{sourceObjectType}})\\n .where({ {{rawLinkedPrimaryKeyProperty.apiName}}: { $in: [\\\"a\\\", \\\"b\\\", \\\"c\\\"]}});\\n\\n// Traverse the selected link type to find all objects of type\\n// Find {{linkedObjectType}} objects linked to the filtered {{sourceObjectType}} objects\\nconst linkedObjects = await objects.pivotTo(\\\"{{linkApiName}}\\\").fetchPage();\"\n }]\n }\n },\n \"2.1.0\": {\n \"snippets\": {\n \"loadGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllValues();\\n}\"\n }],\n \"loadRelativeGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllValues({\\n $before: 1,\\n $unit: \\\"{{timeUnit}}\\\",\\n })\\n}\"\n }],\n \"loadAbsoluteGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAbsoluteTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllValues({\\n $startTime: \\\"2022-08-13T12:34:56Z\\\",\\n $endTime: \\\"2022-08-14T12:34:56Z\\\",\\n });\\n}\"\n }],\n \"loadGeotimeSeriesLastPointSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getLastTimeSeriesPoint(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getLatestValue();\\n}\"\n }],\n \"subscribeToObjectSetInstructions\": [{\n \"template\": \"import { {{objectOrInterfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst subscription = client({{objectOrInterfaceApiName}}).subscribe(\\n {\\n onChange(update) {\\n if (update.state === \\\"ADDED_OR_UPDATED\\\") {\\n // An object has received an update or an object was added to the object set\\n // Get the object using the $primaryKey from your cache\\n // const currentObject = objects[update.object.$primaryKey];\\n // use the update.object[\\\"<propertyName>\\\"] to update your cache \\n //currentObject[\\\"<propertyName>\\\"] = update.object[\\\"<propertyName>\\\"] ?? currentObject[\\\"<propertyName>\\\"];\\n }\\n else if (update.state === \\\"REMOVED\\\") {\\n // The object was removed from the object set, which could mean it was deleted or no longer meets the filter criteria\\n // Remove the object from your cache using the $primaryKey\\n // delete objects[update.object.$primaryKey];\\n }\\n },\\n onSuccessfulSubscription() {\\n // The subscription was successful and you can expect to receive updates\\n },\\n onError(err) {\\n // There was an error with the subscription and you will not receive any more updates\\n throw new Error(err.error instanceof Error ? err.error.message : String(err.error));\\n },\\n onOutOfDate() {\\n // We could not keep track of all changes. Please reload the objects in your set.\\n },\\n },\\n { properties: [ {{{propertyNames}}} ] }\\n);\\n\\n// To stop receiving updates, call unsubscribe\\nsubscription.unsubscribe();\"\n }],\n \"applyAction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\nimport type { AttachmentUpload {{#hasMediaParameter}}, MediaReference, MediaUpload {{/hasMediaParameter}} } from \\\"@osdk/api\\\";\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}{{#hasMediaParameter}}\\nimport type { MediaReference, MediaUpload } from \\\"@osdk/api\\\";\\n{{/hasMediaParameter}}{{/hasAttachmentProperty}}\\n{{#hasAttachmentProperty}}\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\n{{/hasAttachmentProperty}}\\nimport { {{actionApiName}} {{#hasMediaParameter}}, {{objectType}} {{/hasMediaParameter}} } from \\\"{{{packageName}}}\\\";\\n\\nasync function callAction() {\\n{{#hasAttachmentProperty}}\\n // Create attachment upload\\n const attachmentFile = await fetch(\\\"file.json\\\");\\n const attachmentBlob = await attachmentFile.blob();\\n const attachment: AttachmentUpload = createAttachmentUpload(attachmentBlob, \\\"myFile\\\");\\n // alternatively, you can get the Rid from the attachment property on the object type you are modifying \\n // const attachmentRid = objectTypeWithAttachment.{attachmentProperty}?.rid;\\n\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\n // You can upload media data via your Action\\n const mediaFile = await fetch(\\\"media.mp4\\\");\\n const mediaBlob = await mediaFile.blob();\\n const mediaUpload: MediaUpload = { data: mediaBlob, fileName: \\\"myMedia\\\" };\\n \\n // You can also pass an existing media reference into your Action\\n const objectPage = await client({{objectType}}).fetchPage();\\n const mediaReference: MediaReference = objectPage.data[0].{{property}}!.getMediaReference();\\n\\n{{/hasMediaParameter}}\\n const result = await client({{actionApiName}}).applyAction(\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n $returnEdits: true,\\n }\\n );\\n if (result.type === \\\"edits\\\") {\\n // use the result object to report back on action results\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\nimport type { AttachmentUpload {{#hasMediaParameter}}, MediaReference, MediaUpload {{/hasMediaParameter}} } from \\\"@osdk/api\\\";\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}{{#hasMediaParameter}}\\nimport type { MediaReference, MediaUpload } from \\\"@osdk/api\\\";\\n{{/hasMediaParameter}}{{/hasAttachmentProperty}}\\n{{#hasAttachmentProperty}}\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\n{{/hasAttachmentProperty}}\\nimport { {{actionApiName}} {{#hasMediaParameter}}, {{objectType}} {{/hasMediaParameter}} } from \\\"{{{packageName}}}\\\";\\n\\nasync function callBatchAction() {\\n{{#hasAttachmentProperty}}\\n // Create attachment upload\\n const attachmentFile = await fetch(\\\"file.json\\\");\\n const attachmentBlob = await attachmentFile.blob();\\n const attachment: AttachmentUpload = createAttachmentUpload(attachmentBlob, \\\"myFile\\\");\\n\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\n // You can upload media data via your Action\\n const mediaFile = await fetch(\\\"media.mp4\\\");\\n const mediaBlob = await mediaFile.blob();\\n const mediaUpload: MediaUpload = { data: mediaBlob, fileName: \\\"myMedia\\\" };\\n \\n // You can also pass an existing media reference into your Action\\n const objectPage = await client({{objectType}}).fetchPage();\\n const mediaReference: MediaReference = objectPage.data[0].{{property}}!.getMediaReference();\\n \\n{{/hasMediaParameter}}\\n const result = await client({{actionApiName}}).batchApplyAction([\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n ],\\n {\\n $returnEdits: true,\\n }\\n );\\n if (result.type === \\\"edits\\\") {\\n // use the result object to report back on action results\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"uploadMediaOntologyEdits\": [{\n \"template\": \"import type { Client } from \\\"@osdk/client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\nimport type { Edits } from \\\"@osdk/functions\\\";\\nimport { createEditBatch, uploadMedia } from \\\"@osdk/functions\\\";\\n\\nasync function createObject(client: Client): Promise<Edits.Object<{{objectType}}>[]> {\\n const batch = createEditBatch<Edits.Object<{{objectType}}>>(client);\\n \\n const blob = new Blob([\\\"Hello, world\\\"], { type: \\\"text/plain\\\" });\\n const mediaReference = await uploadMedia(client, { data: blob, fileName: \\\"foundryFile.txt\\\" });\\n\\n // @ts-ignore \\n batch.create({{objectType}}, { myMediaProperty: mediaReference, /* Other properties... */ });\\n\\n return batch.getEdits();\\n}\\n\\nexport default createObject;\"\n }],\n \"uploadMedia\": [{\n \"template\": \"import { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from \\\"@osdk/api/unstable\\\";\\nimport { {{objectType}}, {{actionApiName}} } from \\\"{{{packageName}}}\\\"\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { MediaReference } from \\\"@osdk/api\\\";\\n// To upload media with 2.x, it has to be linked to an Action call\\nasync function createMediaReference() {\\n const file = await fetch(\\\"file.json\\\");\\n const data = await file.blob();\\n // Upload media to an object type with a media property. This returns a media reference that can passed to\\n // a media parameter in an Action.\\n return await client(\\n __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference,\\n ).createMediaReference({\\n data,\\n fileName: \\\"myFile\\\",\\n objectType: {{objectType}},\\n propertyType: \\\"{{property}}\\\",\\n });\\n}\\nconst mediaReference: MediaReference = await createMediaReference();\\nconst actionResult = client({{actionApiName}}).applyAction({ \\n {{primaryKeyPropertyV2.apiName}}: {{{propertyValueV2}}},\\n {{mediaParameter}}: mediaReference \\n});\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"readMedia\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nconst result = await client({{objectType}}).fetchOne({{{primaryKeyPropertyValueV2}}});\\n// Fetch metadata of a media property\\nconst mediaMetadata = await result.{{property}}?.fetchMetadata();\\nconsole.log(mediaMetadata?.mediaType, mediaMetadata?.sizeBytes, mediaMetadata?.path);\\n// Fetch contents of a media property\\nconst mediaContent = await result.{{property}}?.fetchContents();\\nif (mediaContent?.ok) {\\n const data = await mediaContent.blob();\\n}\",\n \"computedVariables\": [\"primaryKeyPropertyValueV2\"]\n }]\n }\n },\n \"2.4.0\": {\n \"snippets\": {\n \"derivedPropertyNumericExpression\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}WithExpression = await client({{objectType}})\\n .withProperties({\\n {{^isUnary}}\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\")\\n .aggregate(\\\"{{property}}\\\").{{operation}}(\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"$count\\\"))\\n }).fetchPage();\\n {{/isUnary}}\\n {{#isUnary}}\\n \\\"{{operation}}_{{property}}\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\")\\n .selectProperty(\\\"{{property}}\\\").{{operation}}()\\n }).fetchPage();\\n {{/isUnary}}\"\n }],\n \"derivedPropertyDatetimeExpression\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}WithExpression = await client({{objectType}})\\n .withProperties({\\n {{^isExtractPart}} \\n \\\"derivedPropertyDatetime_{{operation}}\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\")\\n .selectProperty(\\\"{{property}}\\\")\\n .{{operation}}(baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").selectProperty(\\\"{{property}}\\\"))\\n {{/isExtractPart}}\\n {{#isExtractPart}}\\n \\\"YEARS_part_of_{{property}}_of_{{linkApiName}}\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\")\\n .selectProperty(\\\"{{property}}\\\").extractPart(\\\"YEARS\\\")\\n {{/isExtractPart}}\\n }).fetchPage();\"\n }],\n \"nearestNeighborsTextQuery\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst result = await client({{objectType}})\\n .nearestNeighbors(\\\"coffee\\\", 5, \\\"{{property}}\\\")\\n .fetchPage();\"\n }],\n \"nearestNeighborsVectorQuery\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\n// Note that this vector maps to an arbitrary string\\n// It must match the dimension of the \\\"{{property}}\\\" property: {{vectorDimensionSize}}\\nconst vector_query = Array.from({ length: {{vectorDimensionSize}} }, () => 0.3);\\nconst result = await client({{objectType}})\\n .nearestNeighbors(vector_query, 5, \\\"{{property}}\\\")\\n .fetchPage();\"\n }]\n }\n }\n }\n};","/*\n * Copyright 2025 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 { outdent } from \"outdent\";\nimport { snippets } from \"./generatedNoCheck/docsNoComputedVariables.js\";\nconst indentedNewLine = spacesCount => `\\n${\" \".repeat(spacesCount)}`;\nexport const TYPESCRIPT_OSDK_SNIPPETS = {\n ...snippets,\n computedVariables: {\n functionInputValuesV1: handleFunctionInputValuesV1,\n functionInputValuesV2: handleFunctionInputValuesV2,\n actionParameterSampleValuesV1: handleActionParameterSampleValuesV1,\n actionParameterSampleValuesV2: handleActionParameterSampleValuesV2,\n propertyValueV1: handlePropertyValueV1,\n propertyValueV2: handlePropertyValueV2,\n propertyValueIncrementedV1: handlePropertyValueIncrementedV1,\n propertyValueIncrementedV2: handlePropertyValueIncrementedV2,\n propertiesV1: handlePropertiesV1,\n propertiesV2: handlePropertiesV2,\n primaryKeyPropertyV1: handlePrimaryKeyPropertyV1,\n primaryKeyPropertyV2: handlePrimaryKeyPropertyV2,\n primaryKeyPropertyValueV2: handlePrimaryKeyPropertyValueV2,\n linkedPropertiesV1: handleLinkedPropertiesV1,\n linkedPropertiesV2: handleLinkedPropertiesV2,\n linkedPrimaryKeyPropertyV1: handleLinkedPrimaryKeyPropertyV1,\n linkedPrimaryKeyPropertyV2: handleLinkedPrimaryKeyPropertyV2,\n arrayElementValue: handleArrayElementValue\n }\n};\n\n// SDK major version enum\nvar SdkMajorVersion = /*#__PURE__*/function (SdkMajorVersion) {\n SdkMajorVersion[SdkMajorVersion[\"V1\"] = 1] = \"V1\";\n SdkMajorVersion[SdkMajorVersion[\"V2\"] = 2] = \"V2\";\n return SdkMajorVersion;\n}(SdkMajorVersion || {}); // Helper functions for properties\nfunction handleFunctionInputValuesV1({\n rawFunctionInputValues\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V1);\n}\nfunction handleFunctionInputValuesV2({\n rawFunctionInputValues\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V2);\n}\nfunction handleActionParameterSampleValuesV1({\n rawActionTypeParameterValues\n}) {\n return renderActionParameterValues(rawActionTypeParameterValues, SdkMajorVersion.V1);\n}\nfunction handleActionParameterSampleValuesV2({\n rawActionTypeParameterValues\n}) {\n return renderActionParameterValues(rawActionTypeParameterValues, SdkMajorVersion.V2);\n}\nfunction handlePropertyValueV1({\n rawPropertyValue\n}) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V1);\n}\nfunction handlePropertyValueV2({\n rawPropertyValue\n}) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\nfunction handlePropertyValueIncrementedV1({\n rawPropertyValueIncremented\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V1);\n}\nfunction handlePropertyValueIncrementedV2({\n rawPropertyValueIncremented\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V2);\n}\nfunction handleArrayElementValue({\n rawPropertyValue\n}) {\n return renderArrayElementPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\nfunction renderArrayElementPropertyValue(propertyValue, majorVersion) {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n return renderType(propertyValue, majorVersion, \"arraySubType\");\n}\nfunction handlePropertiesV1({\n rawProperties\n}) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1)\n }));\n}\nfunction handlePropertiesV2({\n rawProperties\n}) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2)\n }));\n}\nfunction handlePrimaryKeyPropertyV1({\n rawPrimaryKeyProperty\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V1)\n };\n}\nfunction handlePrimaryKeyPropertyV2({\n rawPrimaryKeyProperty\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2)\n };\n}\nfunction handlePrimaryKeyPropertyValueV2({\n rawPrimaryKeyProperty\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n return renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2);\n}\nfunction handleLinkedPropertiesV1({\n rawLinkedProperties\n}) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1)\n }));\n}\nfunction handleLinkedPropertiesV2({\n rawLinkedProperties\n}) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2)\n }));\n}\nfunction handleLinkedPrimaryKeyPropertyV1({\n rawLinkedPrimaryKeyProperty\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawLinkedPrimaryKeyProperty.value, SdkMajorVersion.V1),\n type: rawLinkedPrimaryKeyProperty.type\n };\n}\nfunction handleLinkedPrimaryKeyPropertyV2({\n rawLinkedPrimaryKeyProperty\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawLinkedPrimaryKeyProperty.value, SdkMajorVersion.V2),\n type: rawLinkedPrimaryKeyProperty.type\n };\n}\n\n// Common function to render function input values for any version\nfunction renderFunctionInputValues(rawFunctionInputValues, majorVersion) {\n if (rawFunctionInputValues == null) {\n throw new Error(\"Cannot render a null rawFunctionInputValues\");\n }\n if (Object.keys(rawFunctionInputValues.parameters).length === 0) {\n return \"\";\n }\n return outdent`\n {\n ${Object.entries(rawFunctionInputValues.parameters).map(([key, value]) => `\"${key}\": ${renderType(value, majorVersion, \"functionInput\")}`).join(`,${indentedNewLine(4)}`)}\n }`;\n}\n\n// Common function to render action parameter values for any version\nfunction renderActionParameterValues(rawActionTypeParameterValues, majorVersion) {\n if (rawActionTypeParameterValues == null) {\n throw new Error(\"Cannot render a null rawActionTypeParameterValues\");\n }\n return rawActionTypeParameterValues.map((param, index, array) => ({\n key: param.key,\n value: renderType(param.value, majorVersion, \"actionParameter\"),\n last: index === array.length - 1\n }));\n}\n\n// Function to render property values\nfunction renderPropertyValue(propertyValue, majorVersion) {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n return renderType(propertyValue, majorVersion, \"property\");\n}\n\n// Unified render function for all types\nfunction renderType(type, majorVersion, context) {\n if (type == null) {\n throw new Error(\"Cannot render a null type value\");\n }\n switch (type.type) {\n case \"array\":\n case \"set\":\n case \"list\":\n const arraySubType = renderType(type.subtype, majorVersion, context);\n return context === \"arraySubType\" ? arraySubType : `[${arraySubType}]`;\n case \"boolean\":\n return type.value ? \"true\" : \"false\";\n case \"byte\":\n case \"integer\":\n case \"long\":\n case \"short\":\n return type.value.toString();\n case \"decimal\":\n case \"double\":\n case \"float\":\n if (context === \"actionParameter\") {\n return `\"${type.value.toString()}\"`;\n }\n return type.value.toString();\n case \"date\":\n return getDateParameter(majorVersion, type.daysOffset);\n case \"timestamp\":\n return getTimestampParameter(majorVersion, type.daysOffset);\n case \"object\":\n const primaryKeyValue = type.primaryKeyType === \"string\" ? \"\\\"primaryKeyValue\\\"\" : \"primaryKeyValue\";\n if (context === \"actionParameter\") {\n return `${primaryKeyValue} // or myObjectInstance`;\n }\n return primaryKeyValue;\n case \"objectSet\":\n return `client(${type.objectTypeApiName}).where({ /* filter conditions */ })`;\n case \"anonymousCustomType\":\n case \"customType\":\n {\n const entries = Object.entries(type.parameters ?? {});\n if (entries.length > 0) {\n const rendered = entries.map(([name, value]) => `\"${name}\": ${renderType(value, majorVersion, context)}`).join(`,${indentedNewLine(8)}`);\n return `{${indentedNewLine(8)}${rendered}${indentedNewLine(4)}}`;\n }\n return \"{}\";\n }\n case \"attachment\":\n return type.hasAttachments ? \"attachment\" : \"{}\";\n case \"interface\":\n case \"marking\":\n return \"{}\";\n case \"mediaReference\":\n return context === \"actionParameter\" ? \"mediaUpload\" : \"mediaReferenceRid\";\n case \"objectType\":\n return `\"${type.objectTypeApiName}\"`;\n case \"map\":\n if (type.keyType.type === \"object\") {\n return `{[${getMapKeyObjectName(type.keyType.apiName)}.$objectSpecifier]: ${renderType(type.valueType, majorVersion, context)}}`;\n }\n return `{${renderType(type.valueType, majorVersion, context)}: ${renderType(type.valueType, majorVersion, context)}}`;\n case \"string\":\n case \"unknown\":\n default:\n return `\"${type.value ?? \"value\"}\"`;\n }\n}\nfunction getMapKeyObjectName(apiName) {\n if (apiName == null) {\n return \"osdkObject\";\n }\n return `${getDisplayName(processObjectApiName(apiName))}OsdkObject`;\n}\nfunction getDisplayName(input) {\n const tokens = input.split(/[_-]|(?<=[a-z])(?=[A-Z])/);\n const result = tokens.map(token => titleCase(token.toLowerCase())).join(\"\");\n return result.charAt(0).toLowerCase() + result.slice(1);\n}\nfunction titleCase(token) {\n return (token[0] ?? \"\").toUpperCase() + token.slice(1);\n}\n\n// For objects that have namespaces prefixed to their api name, we remove it and only return the last portion\n// As that is what the TS OSDK uses to generate identifiers for objects\nfunction processObjectApiName(objectApiName) {\n const last = objectApiName.lastIndexOf(\".\");\n if (last === -1) {\n return objectApiName;\n }\n return objectApiName.slice(last + 1);\n}\n\n// Generic helper functions for date and timestamp\nfunction getDateParameter(majorVersion, daysOffset = 0) {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString().split(\"T\")[0]}\"`;\n }\n return hasOffset ? `LocalDate.now().plusDays(${daysOffset})` : \"LocalDate.now()\";\n}\nfunction getTimestampParameter(majorVersion, daysOffset = 0) {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString()}\"`;\n }\n return hasOffset ? `Timestamp.now().plusDays(${daysOffset})` : \"Timestamp.now()\";\n}"]}
1
+ {"version":3,"sources":["../../src/generatedNoCheck/docsNoComputedVariables.ts","../../src/docs.ts"],"names":["SdkMajorVersion","outdent"],"mappings":";;;;;;;AAGO,IAAM,QAAA,GAAW;AAAA,EACtB,MAAA,EAAQ,KAAA;AAAA,EACR,UAAA,EAAY;AAAA,IACV,OAAA,EAAS;AAAA,MACP,UAAA,EAAY;AAAA,QACV,yBAAyB,CAAC;AAAA,UACxB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,uBAAuB,CAAC;AAAA,UACtB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,qBAAqB,CAAC;AAAA,UACpB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,sBAAsB,CAAC;AAAA,UACrB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,6BAA6B,CAAC;AAAA,UAC5B,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,wBAAwB,CAAC;AAAA,UACvB,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,2BAA2B,CAAC;AAAA,UAC1B,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,6BAA6B,CAAC;AAAA,UAC5B,UAAA,EAAY,yXAAA;AAAA,UACZ,mBAAA,EAAqB,CAAC,4BAA4B;AAAA,SACnD,CAAA;AAAA,QACD,8BAA8B,CAAC;AAAA,UAC7B,UAAA,EAAY;AAAA,SACb,CAAA;AAAA,QACD,uBAAuB,CAAC;AAAA,UACtB,UAAA,EAAY;AAAA,SACb,CAAA;AAA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AAW,WAAA,EAAa,CAAA,CAAA,CAAA;AAAA,EACrC;AACA,EAAA,OAAO,SAAA,GAAY,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAA,CAAA,GAAM,iBAAA;AACjE","file":"index.cjs","sourcesContent":["// THIS FILE IS GENERATED. DO NOT MODIFY.\n// You probably want to modify ../../../codegen.mjs instead.\n\nexport const snippets = {\n \"kind\": \"sdk\",\n \"versions\": {\n \"1.0.0\": {\n \"snippets\": {\n \"loadSingleObjectGuide\": [{\n \"template\": \"import { type GetObjectError, isOk, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst result: Result<{{objectType}}, GetObjectError> = await client.ontology.objects.{{objectType}}.get(\\\"primaryKey\\\");\\nif (isOk(result)) {\\n const object: {{objectType}} = result.value;\\n} else {\\n console.error(result.error.errorType);\\n}\"\n }],\n \"loadObjectPageGuide\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst firstPage: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}.page({ pageSize: 30 });\\n\\nif (isOk(firstPage)) {\\n const secondPage: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .page({ pageSize: 30, pageToken: firstPage.value.nextPageToken });\\n\\n const objects = isOk(secondPage) ? [...firstPage.value.data, ...secondPage.value.data] : firstPage.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"orderObjectsGuide\": [{\n \"template\": \"import { isOk, Page, type Result, type SearchObjectsError } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst page: Result<Page<{{objectType}}>, SearchObjectsError> = await client.ontology.objects.{{objectType}}\\n .orderBy(sortBy => sortBy.{{titleProperty}}.asc())\\n .page({ pageSize: 30 });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"searchObjectsGuide\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst page: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .where(query => query.{{titleProperty}}.isNull())\\n .page({ pageSize: 30 });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"loadSingleObjectReference\": [{\n \"template\": \"import { type GetObjectError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst response: Result<{{objectType}}, GetObjectError> = await client.ontology.objects.{{objectType}}.get(\\\"primaryKey\\\");\"\n }],\n \"loadObjectsReference\": [{\n \"template\": \"import { type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst response: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .page({ pageSize: 30 });\"\n }],\n \"loadAllObjectsReference\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst objects: Result<{{objectType}}[], LoadObjectSetError> = await client.ontology.objects.{{objectType}}.all();\\n\\nif (isOk(objects)) {\\n const object = objects.value[0];\\n}\"\n }],\n \"loadLinkedObjectReference\": [{\n \"template\": \"import { type GetLinkedObjectError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: {{sourceObjectType}}, linkedObjectPrimaryKey: {{linkedPrimaryKeyPropertyV1.type}}) {\\n return source.{{linkApiName}}.get(linkedObjectPrimaryKey);\\n}\",\n \"computedVariables\": [\"linkedPrimaryKeyPropertyV1\"]\n }],\n \"loadLinkedObjectsReference\": [{\n \"template\": \"import { type GetLinkedObjectError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: {{sourceObjectType}}) {\\n {{#isLinkManySided}}\\n return source.{{linkApiName}}.page({ pageSize: 30 });\\n {{/isLinkManySided}}\\n {{^isLinkManySided}}\\n return source.{{linkApiName}}.get();\\n {{/isLinkManySided}}\\n}\"\n }],\n \"aggregationTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst num{{objectType}} = await client.ontology.objects.{{objectType}}\\n .where(query => Op.not(query.{{property}}.isNull()))\\n .groupBy(property => property.{{property}}.exact())\\n .count()\\n .compute()\"\n }],\n \"countAggregationTemplate\": [{\n \"template\": \"const num{{objectType}} = await client.ontology.objects.{{objectType}}\\n .count()\\n .compute()\"\n }],\n \"approximateDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst distinct{{objectType}} = await client.ontology.objects.{{objectType}}\\n .approximateDistinct(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses metricName as the metric name instead of the default \\\"distinctCount\\\"\\nconst distinct{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.approximateDistinct(),\\n }))\\n .compute()\"\n }],\n \"exactDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst distinct{{objectType}} = await client.ontology.objects.{{objectType}}\\n .exactDistinct(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses metricName as the metric name instead of the default \\\"exactDistinctCount\\\"\\nconst distinct{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.exactDistinct(),\\n }))\\n .compute()\"\n }],\n \"numericAggregationTemplate\": [{\n \"template\": \"const {{operation}}{{objectType}} = await client.ontology.objects.{{objectType}}\\n .{{operation}}(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses \\\"metricName\\\" as the metric name instead of the default \\\"{{operation}}\\\"\\nconst {{operation}}{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.{{operation}}(),\\n }))\\n .compute()\"\n }],\n \"fixedWidthGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.fixedWidth(10))\\n .count()\\n .compute()\"\n }],\n \"durationGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.by{{duration}}({{#durationText}}{{arg}}{{/durationText}}))\\n .count()\\n .compute()\"\n }],\n \"exactGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.exact())\\n .count()\\n .compute()\"\n }],\n \"rangeGroupByTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.ranges([{\\n startValue: {{propertyValueV1}},\\n endValue: {{propertyValueIncrementedV1}}\\n }]))\\n .count()\\n .compute()\",\n \"computedVariables\": [\"propertyValueV1\", \"propertyValueIncrementedV1\"]\n }],\n \"applyAction\": [{\n \"template\": \"import { ActionValidationResult, ActionExecutionMode, ReturnEditsMode{{#hasAttachmentImports}}, Attachment{{/hasAttachmentImports}}{{#hasDateInputs}}, LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}, Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.actions.{{actionApiName}}({{^hasParameters}}{},{{/hasParameters}}{{#hasParameters}}{\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n},{{/hasParameters}} {\\n mode: ActionExecutionMode.VALIDATE_AND_EXECUTE,\\n returnEdits: ReturnEditsMode.ALL,\\n }\\n);\\n// Check if http request was successful\\nif (!isOk(result)) {\\n throw result.error;\\n}\\n// Check if the validation was successful\\nconsole.log(result.value.validation);\\nif (result.value.validation.result === ActionValidationResult.VALID) {\\n // If ReturnEditsMode.ALL is used, new and updated objects edits will contain the primary key of the object\\n if (result.value.edits.type === \\\"edits\\\") {\\n console.log(result.value.edits);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV1\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"import { ActionExecutionMode, ReturnEditsMode{{#hasAttachmentImports}}, Attachment{{/hasAttachmentImports}}{{#hasDateInputs}}, LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}, Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.bulkActions.{{actionApiName}}(\\n [\\n {{^hasParameters}}{},{}{{/hasParameters}}{{#hasParameters}}{\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n },\\n {\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n },{{/hasParameters}}\\n ],\\n {\\n returnEdits: ReturnEditsMode.NONE,\\n }\\n);\",\n \"computedVariables\": [\"actionParameterSampleValuesV1\"]\n }],\n \"uploadAttachment\": [{\n \"template\": \"import { type Result, isOk, Attachment, type AttachmentsError } from \\\"{{{packageName}}}\\\";\\n\\nasync function uploadMyFile() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return client.ontology.attachments.upload(\\\"myFile\\\", blob);\\n}\\n\\nconst result: Result<Attachment, AttachmentsError> = await uploadMyFile();\\n\\nif (isOk(result)) {\\n const attachment = result.value;\\n console.log(attachment);\\n} else {\\n console.error(result.error.errorType);\\n}\"\n }],\n \"executeFunction\": [{\n \"template\": \"{{#needsImports}}\\nimport { {{#hasAttachmentImports}}Attachment{{#hasDateInputs}},{{/hasDateInputs}}{{^hasDateInputs}}{{#hasTimestampInputs}},{{/hasTimestampInputs}}{{/hasDateInputs}}{{/hasAttachmentImports}}{{#hasDateInputs}}LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{/needsImports}}\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.queries.{{funcApiName}}({{{functionInputValuesV1}}});\",\n \"computedVariables\": [\"functionInputValuesV1\"]\n }],\n \"stringStartsWithTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.startsWith(\\\"foo\\\"));\"\n }],\n \"containsAllTermsInOrderTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAllTermsInOrder(\\\"foo bar\\\"));\"\n }],\n \"containsAnyTermTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAnyTerm(\\\"foo bar\\\"));\"\n }],\n \"containsAllTermsTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAllTerms(\\\"foo bar\\\"));\"\n }],\n \"equalityTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.eq({{{propertyValueV1}}}));\",\n \"computedVariables\": [\"propertyValueV1\"]\n }],\n \"inFilterTemplate\": [{\n \"template\": \"// Not supported\"\n }],\n \"nullTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.isNull());\"\n }],\n \"rangeTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{operation}}({{{propertyValueV1}}}));\",\n \"computedVariables\": [\"propertyValueV1\"]\n }],\n \"withinDistanceTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.within{{distanceUnitText}}(\\n // New York City\\n GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n 100.0,\\n ));\"\n }],\n \"withinBoundingBoxTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.withinBoundingBox({\\n topLeft: GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n bottomRight: GeoPoint.fromCoordinates({ latitude: 25.123, longitude: 80.4231 }),\\n });\"\n }],\n \"withinPolygonTemplate\": [{\n \"template\": \"import { Polygon } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.withinPolygon(Polygon.fromGeoJson({\\n type: \\\"Polygon\\\",\\n coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]],\\n }));\"\n }],\n \"intersectsPolygonTemplate\": [{\n \"template\": \"import { Polygon } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{intersects}}Polygon(Polygon.fromGeoJson({\\n type: \\\"Polygon\\\",\\n coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]],\\n }));\"\n }],\n \"intersectsBboxTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{intersects}}BoundingBox({\\n topLeft: GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n bottomRight: GeoPoint.fromCoordinates({ latitude: 25.123, longitude: 80.4231 }),\\n });\"\n }],\n \"notTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.not(query.{{primaryKeyPropertyV1.apiName}}.isNull()));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"andTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.and(\\n Op.not(query.{{primaryKeyPropertyV1.apiName}}.isNull()),\\n query.{{primaryKeyPropertyV1.apiName}}.eq(\\\"primaryKey\\\"),\\n ));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"orTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.or(\\n query.{{primaryKeyPropertyV1.apiName}}.isNull(),\\n query.{{primaryKeyPropertyV1.apiName}}.eq(\\\"primaryKey\\\"),\\n ));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"loadTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.points.all();\\n}\"\n }],\n \"loadRelativeTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.from{{timeUnitValue}}Ago(1).all();\\n}\"\n }],\n \"loadAbsoluteTimeSeriesPointsSnippet\": [{\n \"template\": \"import { Timestamp } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.range({\\n startTime: Timestamp.fromISOString(\\\"2022-08-13T12:34:56Z\\\"),\\n endTime: Timestamp.fromISOString(\\\"2022-08-14T12:34:56Z\\\"),\\n });\\n}\"\n }],\n \"loadTimeSeriesFirstPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getFirstPoint();\\n}\"\n }],\n \"loadTimeSeriesLastPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getLastPoint();\\n}\"\n }],\n \"loadObjectMetadataSnippet\": [{\n \"template\": \"// Not supported.\"\n }],\n \"subscribeToObjectSetInstructions\": [{\n \"template\": \"// Subscribing to object sets is only supported in 2.x versions of the SDK.\"\n }]\n }\n },\n \"1.1.0\": {\n \"snippets\": {\n \"loadSingleObjectGuide\": [{\n \"template\": \"import { type GetObjectError, isOk, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst result: Result<{{objectType}}, GetObjectError> = await client.ontology.objects.{{objectType}}.fetchOneWithErrors(\\\"primaryKey\\\");\\nif (isOk(result)) {\\n const object: {{objectType}} = result.value;\\n} else {\\n console.error(result.error.errorType);\\n}\\n// You can also fetch a single object without the Result wrapper\\ntry {\\n const object: {{objectType}} = await client.ontology.objects.{{objectType}}.fetchOne(\\\"primaryKey\\\");\\n}\\ncatch(e) {\\n throw e;\\n}\"\n }],\n \"loadObjectPageGuide\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst firstPage: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}.fetchPageWithErrors({ pageSize: 30 });\\n\\nif (isOk(firstPage)) {\\n const secondPage: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .fetchPageWithErrors({ pageSize: 30, pageToken: firstPage.value.nextPageToken });\\n\\n const objects = isOk(secondPage) ? [...firstPage.value.data, ...secondPage.value.data] : firstPage.value.data;\\n const object = objects[0];\\n}\\n\\n// To fetch a page without a result wrapper, use fetchPage with a try/catch instead\\ntry {\\n const firstPage: Page<{{objectType}}> = await client.ontology.objects.{{objectType}}.fetchPage({ pageSize: 30 });\\n const secondPage: Page<{{objectType}}> = await client.ontology.objects.{{objectType}}\\n .fetchPage({ pageSize: 30, pageToken: firstPage.value.nextPageToken });\\n const objects = [...firstPage.data, ...secondPage.data];\\n const object = objects[0];\\n}\\ncatch (e) {\\n throw e;\\n}\"\n }],\n \"orderObjectsGuide\": [{\n \"template\": \"import { isOk, Page, type Result, type SearchObjectsError } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst page: Result<Page<{{objectType}}>, SearchObjectsError> = await client.ontology.objects.{{objectType}}\\n .orderBy(sortBy => sortBy.{{titleProperty}}.asc())\\n .fetchPageWithErrors({ pageSize: 30 });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"searchObjectsGuide\": [{\n \"template\": \"import { isOk, type LoadObjectSetError, Page, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst page: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .where(query => query.{{titleProperty}}.isNull())\\n .fetchPageWithErrors({ pageSize: 30 });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"loadSingleObjectReference\": [{\n \"template\": \"import { type GetObjectError, type Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst response: Result<{{objectType}}, GetObjectError> = await client.ontology.objects.{{objectType}}.fetchOneWithErrors(\\\"primaryKey\\\");\\n\\n// You can also fetch a single object without the result wrapper\\nconst responseNoWrapper: {{objectType}} = await client.ontology.objects.{{objectType}}.fetchOne(\\\"primaryKey\\\");\\n\"\n }],\n \"loadObjectsReference\": [{\n \"template\": \"import type { LoadObjectSetError, Page, Result } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst response: Result<Page<{{objectType}}>, LoadObjectSetError> = await client.ontology.objects.{{objectType}}\\n .fetchPageWithErrors({ pageSize: 30 });\\n\\n// To fetch a page without a result wrapper, use fetchPage instead\\nconst responseNoErrorWrapper: Page<{{objectType}}> = await client.ontology.objects.{{objectType}}\\n .fetchPage({ pageSize: 30 });\"\n }],\n \"loadAllObjectsReference\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nconst objects: {{objectType}}[]= [];\\n\\nfor await(const obj of client.ontology.objects.{{objectType}}.asyncIter()) {\\n objects.push(obj);\\n}\\nconst object = objects.value[0];\"\n }],\n \"loadLinkedObjectReference\": [{\n \"template\": \"import type { GetLinkedObjectError, Result } from \\\"{{{packageName}}}\\\";\\nimport { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: {{sourceObjectType}}, linkedObjectPrimaryKey: {{linkedPrimaryKeyPropertyV1.type}}): Result<{{linkedObjectType}}, GetLinkedObjectError>\\n{\\n return source.{{linkApiName}}.fetchOneWithErrors(linkedObjectPrimaryKey);\\n}\\n\\n// You can also get a linked object without the result wrapper\\nfunction getLinkedNoWrapper{{linkedObjectType}}(source: {{sourceObjectType}}, linkedObjectPrimaryKey: {{linkedPrimaryKeyPropertyV1.type}}): {{linkedObjectType}} {\\n return source.{{linkApiName}}.fetchOne(linkedObjectPrimaryKey);\\n}\",\n \"computedVariables\": [\"linkedPrimaryKeyPropertyV1\"]\n }],\n \"loadLinkedObjectsReference\": [{\n \"template\": \"import type { GetLinkedObjectError, Result } from \\\"{{{packageName}}}\\\";\\nimport { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: {{sourceObjectType}}) {\\n {{#isLinkManySided}}\\n return source.{{linkApiName}}.fetchPageWithErrors({ pageSize: 30 });\\n {{/isLinkManySided}}\\n {{^isLinkManySided}}\\n return source.{{linkApiName}}.fetchOneWithErrors();\\n {{/isLinkManySided}}\\n}\"\n }],\n \"aggregationTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst num{{objectType}} = await client.ontology.objects.{{objectType}}\\n .where(query => Op.not(query.{{property}}.isNull()))\\n .groupBy(property => property.{{property}}.exact())\\n .count()\\n .compute()\"\n }],\n \"countAggregationTemplate\": [{\n \"template\": \"const num{{objectType}} = await client.ontology.objects.{{objectType}}\\n .count()\\n .compute()\"\n }],\n \"approximateDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst distinct{{objectType}} = await client.ontology.objects.{{objectType}}\\n .approximateDistinct(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses metricName as the metric name instead of the default \\\"distinctCount\\\"\\nconst distinct{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.approximateDistinct(),\\n }))\\n .compute()\"\n }],\n \"exactDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst distinct{{objectType}} = await client.ontology.objects.{{objectType}}\\n .exactDistinct(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses metricName as the metric name instead of the default \\\"exactDistinctCount\\\"\\nconst distinct{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.exactDistinct(),\\n }))\\n .compute()\"\n }],\n \"numericAggregationTemplate\": [{\n \"template\": \"const {{operation}}{{objectType}} = await client.ontology.objects.{{objectType}}\\n .{{operation}}(obj => obj.{{property}})\\n .compute()\\n\\n// This is equivalent to the above, but uses \\\"metricName\\\" as the metric name instead of the default \\\"{{operation}}\\\"\\nconst {{operation}}{{objectType}}CustomName = await client.ontology.objects.{{objectType}}\\n .aggregate(obj => ({\\n metricName: obj.{{property}}.{{operation}}(),\\n }))\\n .compute()\"\n }],\n \"fixedWidthGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.fixedWidth(10))\\n .count()\\n .compute()\"\n }],\n \"durationGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.by{{duration}}({{#durationText}}{{arg}}{{/durationText}}))\\n .count()\\n .compute()\"\n }],\n \"exactGroupByTemplate\": [{\n \"template\": \"const grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.exact())\\n .count()\\n .compute()\"\n }],\n \"rangeGroupByTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst grouped{{objectType}} = await client.ontology.objects.{{objectType}}\\n .groupBy(obj => obj.{{property}}.ranges([{\\n startValue: {{propertyValueV1}},\\n endValue: {{propertyValueIncrementedV1}}\\n }]))\\n .count()\\n .compute()\",\n \"computedVariables\": [\"propertyValueV1\", \"propertyValueIncrementedV1\"]\n }],\n \"applyAction\": [{\n \"template\": \"import { ActionValidationResult, ActionExecutionMode, ReturnEditsMode{{#hasAttachmentImports}}, Attachment{{/hasAttachmentImports}}{{#hasDateInputs}}, LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}, Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.actions.{{actionApiName}}({{^hasParameters}}{},{{/hasParameters}}{{#hasParameters}}{\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n},{{/hasParameters}} {\\n mode: ActionExecutionMode.VALIDATE_AND_EXECUTE,\\n returnEdits: ReturnEditsMode.ALL,\\n }\\n);\\n// Check if http request was successful\\nif (!isOk(result)) {\\n throw result.error;\\n}\\n// Check if the validation was successful\\nconsole.log(result.value.validation);\\nif (result.value.validation.result === ActionValidationResult.VALID) {\\n // If ReturnEditsMode.ALL is used, new and updated objects edits will contain the primary key of the object\\n if (result.value.edits.type === \\\"edits\\\") {\\n console.log(result.value.edits);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV1\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"import { ActionExecutionMode, ReturnEditsMode{{#hasAttachmentImports}}, Attachment{{/hasAttachmentImports}}{{#hasDateInputs}}, LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}, Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.batchActions.{{actionApiName}}(\\n [\\n {{^hasParameters}}{},{}{{/hasParameters}}{{#hasParameters}}{\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n },\\n {\\n {{#actionParameterSampleValuesV1}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV1}}\\n },{{/hasParameters}}\\n ],\\n {\\n returnEdits: ReturnEditsMode.NONE,\\n }\\n);\",\n \"computedVariables\": [\"actionParameterSampleValuesV1\"]\n }],\n \"uploadAttachment\": [{\n \"template\": \"import { type Result, isOk, type Attachment, type AttachmentsError } from \\\"{{{packageName}}}\\\";\\n\\nasync function uploadMyFile() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return client.ontology.attachments.upload(\\\"myFile\\\", blob);\\n}\\n\\nconst result: Result<Attachment, AttachmentsError> = await uploadMyFile();\\n\\nif (isOk(result)) {\\n const attachment = result.value;\\n console.log(attachment);\\n} else {\\n console.error(result.error.errorType);\\n}\"\n }],\n \"executeFunction\": [{\n \"template\": \"{{#needsImports}}\\nimport { {{#hasAttachmentImports}}Attachment{{#hasDateInputs}},{{/hasDateInputs}}{{^hasDateInputs}}{{#hasTimestampInputs}},{{/hasTimestampInputs}}{{/hasDateInputs}}{{/hasAttachmentImports}}{{#hasDateInputs}}LocalDate{{#hasTimestampInputs}}, {{/hasTimestampInputs}}{{/hasDateInputs}}{{#hasTimestampInputs}}Timestamp{{/hasTimestampInputs}} } from \\\"{{{packageName}}}\\\";\\n\\n{{/needsImports}}\\n{{#hasAttachmentUpload}}\\nconst attachment: Attachment = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client.ontology.queries.{{funcApiName}}({{{functionInputValuesV1}}});\",\n \"computedVariables\": [\"functionInputValuesV1\"]\n }],\n \"stringStartsWithTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.startsWith(\\\"foo\\\"));\"\n }],\n \"containsAllTermsInOrderTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAllTermsInOrder(\\\"foo bar\\\"));\"\n }],\n \"containsAnyTermTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAnyTerm(\\\"foo bar\\\"));\"\n }],\n \"containsAllTermsTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.containsAllTerms(\\\"foo bar\\\"));\"\n }],\n \"equalityTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.eq({{{propertyValueV1}}}));\",\n \"computedVariables\": [\"propertyValueV1\"]\n }],\n \"inFilterTemplate\": [{\n \"template\": \"// Not supported\"\n }],\n \"nullTemplate\": [{\n \"template\": \"const {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.isNull());\"\n }],\n \"rangeTemplate\": [{\n \"template\": \"{{#isDateProperty}}\\nimport { LocalDate } from \\\"{{{packageName}}}\\\";\\n\\n{{/isDateProperty}}\\n{{#isTimestampProperty}}\\nimport { Timestamp } from \\\"{{{packageName}}}\\\";\\n\\n{{/isTimestampProperty}}\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{operation}}({{{propertyValueV1}}}));\",\n \"computedVariables\": [\"propertyValueV1\"]\n }],\n \"withinDistanceTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.within{{distanceUnitText}}(\\n // New York City\\n GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n 100.0,\\n ));\"\n }],\n \"withinBoundingBoxTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.withinBoundingBox({\\n topLeft: GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n bottomRight: GeoPoint.fromCoordinates({ latitude: 25.123, longitude: 80.4231 }),\\n });\"\n }],\n \"withinPolygonTemplate\": [{\n \"template\": \"import { Polygon } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.withinPolygon(Polygon.fromGeoJson({\\n type: \\\"Polygon\\\",\\n coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]],\\n }));\"\n }],\n \"intersectsPolygonTemplate\": [{\n \"template\": \"import { Polygon } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{intersects}}Polygon(Polygon.fromGeoJson({\\n type: \\\"Polygon\\\",\\n coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]],\\n }));\"\n }],\n \"intersectsBboxTemplate\": [{\n \"template\": \"import { GeoPoint } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => query.{{property}}.{{intersects}}BoundingBox({\\n topLeft: GeoPoint.fromCoordinates({ latitude: 40.7128, longitude: -74.0060 }),\\n bottomRight: GeoPoint.fromCoordinates({ latitude: 25.123, longitude: 80.4231 }),\\n });\"\n }],\n \"notTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.not(query.{{primaryKeyPropertyV1.apiName}}.isNull()));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"andTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.and(\\n Op.not(query.{{primaryKeyPropertyV1.apiName}}.isNull()),\\n query.{{primaryKeyPropertyV1.apiName}}.eq(\\\"primaryKey\\\"),\\n ));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"orTemplate\": [{\n \"template\": \"import { Op } from \\\"{{{packageName}}}\\\";\\n\\nconst {{objectType}}ObjectSet = client.ontology.objects.{{objectType}}\\n .where(query => Op.or(\\n query.{{primaryKeyPropertyV1.apiName}}.isNull(),\\n query.{{primaryKeyPropertyV1.apiName}}.eq(\\\"primaryKey\\\"),\\n ));\",\n \"computedVariables\": [\"primaryKeyPropertyV1\"]\n }],\n \"loadTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.points.all();\\n}\"\n }],\n \"loadRelativeTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.from{{timeUnitValue}}Ago(1).all();\\n}\"\n }],\n \"loadAbsoluteTimeSeriesPointsSnippet\": [{\n \"template\": \"import { Timestamp } from \\\"{{{packageName}}}\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.range({\\n startTime: Timestamp.fromISOString(\\\"2022-08-13T12:34:56Z\\\"),\\n endTime: Timestamp.fromISOString(\\\"2022-08-14T12:34:56Z\\\"),\\n });\\n}\"\n }],\n \"loadTimeSeriesFirstPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getFirstPoint();\\n}\"\n }],\n \"loadTimeSeriesLastPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getLastPoint();\\n}\"\n }],\n \"loadObjectMetadataSnippet\": [{\n \"template\": \"// Not supported.\"\n }],\n \"subscribeToObjectSetInstructions\": [{\n \"template\": \"// Subscribing to object sets is only supported in 2.x versions of the SDK.\"\n }]\n }\n },\n \"2.0.0\": {\n \"snippets\": {\n \"loadSingleObjectGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk } from \\\"@osdk/client\\\";\\n\\ntry {\\n const object: Osdk.Instance<{{objectType}}> = await client({{objectType}}).fetchOne({{{primaryKeyPropertyValueV2}}});\\n}\\ncatch(e) {\\n throw e;\\n}\",\n \"computedVariables\": [\"primaryKeyPropertyValueV2\"]\n }],\n \"loadObjectPageGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const firstPage: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30 });\\n if (firstPage.nextPageToken === undefined) {\\n console.log(firstPage.data);\\n }\\n const secondPage: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30, $nextPageToken: firstPage.nextPageToken });\\n console.log([...firstPage.data, ...secondPage.data]);\\n}\\ncatch (e) {\\n throw e;\\n}\"\n }],\n \"orderObjectsGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const page: PageResult<Osdk.Instance<{{objectType}}>> = await client({{objectType}})\\n .fetchPage({\\n $orderBy: {\\\"{{titleProperty}}\\\": \\\"asc\\\"},\\n $pageSize: 30\\n });\\n const objects = page.data;\\n const object = objects[0];\\n} catch (e) {\\n throw e;\\n}\"\n }],\n \"searchObjectsGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const page: PageResult<Osdk.Instance<{{objectType}}>> = await client({{objectType}})\\n .where({\\n {{titleProperty}}: {$isNull: true}\\n })\\n .fetchPage({\\n $pageSize: 30\\n });\\n const objects = page.data;\\n const object = objects[0];\\n} catch (e) {\\n throw e;\\n}\"\n }],\n \"loadSingleObjectReference\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { Osdk } from \\\"@osdk/client\\\";\\n\\nconst responseNoErrorWrapper: Osdk.Instance<{{objectType}}> = await client({{objectType}}).fetchOne({{{primaryKeyPropertyValueV2}}});\\n\\n\",\n \"computedVariables\": [\"primaryKeyPropertyValueV2\"]\n }],\n \"loadObjectsReference\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { Osdk, PageResult } from \\\"@osdk/client\\\";\\ntry {\\n const responseNoErrorWrapper: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30 });\\n} catch (e) {\\n throw e;\\n}\\n\"\n }],\n \"loadAllObjectsReference\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { Osdk } from \\\"@osdk/client\\\";\\n\\nasync function getAll(): Promise<Array<Osdk.Instance<{{objectType}}>>> {\\n const objects: Osdk.Instance<{{objectType}}>[]= [];\\n for await(const obj of client({{objectType}}).asyncIter()) {\\n objects.push(obj);\\n }\\n\\n return objects;\\n}\\n\\n// If Array.fromAsync() is available in your target environment\\nfunction getAllFromAsync(): Promise<Array<Osdk.Instance<{{objectType}}>>> {\\n return Array.fromAsync(client({{objectType}}).asyncIter());\\n}\"\n }],\n \"loadLinkedObjectReference\": [{\n \"template\": \"import { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\nimport { type Osdk } from \\\"@osdk/client\\\";\\n\\nasync function getLinked{{linkedObjectType}}(source: Osdk.Instance<{{objectType}}>) {\\n try {\\n {{#isLinkManySided}}\\n return await source.$link.{{linkApiName}}.fetchPage();\\n {{/isLinkManySided}}\\n {{^isLinkManySided}}\\n return await source.$link.{{linkApiName}}.fetchOne();\\n {{/isLinkManySided}}\\n } catch (error) {\\n return { error };\\n }\\n}\"\n }],\n \"loadLinkedObjectsReference\": [{\n \"template\": \"import { {{sourceObjectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nasync function getLinkedWithPivot{{linkedObjectType}}(){\\n return await client({{sourceObjectType}}).pivotTo(\\\"{{linkApiName}}\\\").fetchPage();\\n}\"\n }],\n \"aggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst num{{objectType}} = await client({{objectType}})\\n .where({ {{property}}: { $isNull : false }})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n //$groupBy: { {{property}}: \\\"exact\\\" },\\n });\"\n }],\n \"countAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst num{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: {$count: \\\"unordered\\\"},\\n });\"\n }],\n \"approximateDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst distinct{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { \\\"{{property}}:approximateDistinct\\\" : \\\"unordered\\\" },\\n });\"\n }],\n \"exactDistinctAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst distinct{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { \\\"{{property}}:exactDistinct\\\" : \\\"unordered\\\" },\\n });\"\n }],\n \"numericAggregationTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{operation}}{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { \\\"{{property}}:{{operation}}\\\" : \\\"unordered\\\" }\\n });\"\n }],\n \"fixedWidthGroupByTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst grouped{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n $groupBy: { {{property}}: { $fixedWidth: 10 } }\\n });\"\n }],\n \"durationGroupByTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst grouped{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n $groupBy: { {{property}}: { $duration: [ {{#durationText}}{{arg}}{{/durationText}}, \\\"{{#durationText}}{{unit}}{{/durationText}}\\\"] } }\\n });\"\n }],\n \"exactGroupByTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst grouped{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n $groupBy: { {{property}}: \\\"exact\\\" }\\n })\"\n }],\n \"rangeGroupByTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst grouped{{objectType}} = await client({{objectType}})\\n .aggregate({\\n $select: { $count: \\\"unordered\\\" },\\n $groupBy: { {{property}}: { $ranges: [[{{{propertyValueV2}}}, {{{propertyValueIncrementedV2}}} ]]} }\\n });\",\n \"computedVariables\": [\"propertyValueV2\", \"propertyValueIncrementedV2\"]\n }],\n \"applyAction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\nimport type { AttachmentUpload {{#hasMediaParameter}}, MediaReference {{/hasMediaParameter}} } from \\\"@osdk/api\\\";\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}{{#hasMediaParameter}}\\nimport type { MediaReference } from \\\"@osdk/api\\\";\\n{{/hasMediaParameter}}{{/hasAttachmentProperty}}\\n{{#hasAttachmentProperty}}\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\nimport { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from \\\"@osdk/api/unstable\\\";\\n{{/hasMediaParameter}}\\nimport { {{actionApiName}} {{#hasMediaParameter}}, {{objectType}} {{/hasMediaParameter}} } from \\\"{{{packageName}}}\\\";\\n\\nasync function callAction() {\\n{{#hasAttachmentProperty}}\\n // Create attachment upload\\n const attachmentFile = await fetch(\\\"file.json\\\");\\n const attachmentBlob = await attachmentFile.blob();\\n const attachment: AttachmentUpload = createAttachmentUpload(attachmentBlob, \\\"myFile\\\");\\n // alternatively, you can get the Rid from the attachment property on the object type you are modifying \\n // const attachmentRid = objectTypeWithAttachment.{attachmentProperty}?.rid;\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\n // Create media reference\\n const mediaFile = await fetch(\\\"media.mp4\\\");\\n const mediaBlob = await mediaFile.blob();\\n const mediaReference: MediaReference = await client(\\n __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference,\\n ).createMediaReference({\\n data: mediaBlob,\\n fileName: \\\"myMedia\\\",\\n objectType: {{objectType}},\\n propertyType: \\\"{{property}}\\\",\\n });\\n // alternatively, you can get the Rid from the media property on the object type you are modifying\\n // const mediaRid = objectTypeWithMedia.{mediaProperty}?.rid;\\n{{/hasMediaParameter}}\\n const result = await client({{actionApiName}}).applyAction(\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n $returnEdits: true,\\n }\\n );\\n if (result.type === \\\"edits\\\") {\\n // use the result object to report back on action results\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\nimport type { AttachmentUpload {{#hasMediaParameter}}, MediaReference {{/hasMediaParameter}} } from \\\"@osdk/api\\\";\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}{{#hasMediaParameter}}\\nimport type { MediaReference } from \\\"@osdk/api\\\";\\n{{/hasMediaParameter}}{{/hasAttachmentProperty}}\\n{{#hasAttachmentProperty}}\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\nimport { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from \\\"@osdk/api/unstable\\\";\\n{{/hasMediaParameter}}\\nimport { {{actionApiName}} {{#hasMediaParameter}}, {{objectType}} {{/hasMediaParameter}} } from \\\"{{{packageName}}}\\\";\\n\\nasync function callBatchAction() {\\n{{#hasAttachmentProperty}}\\n // Create attachment upload\\n const attachmentFile = await fetch(\\\"file.json\\\");\\n const attachmentBlob = await attachmentFile.blob();\\n const attachment: AttachmentUpload = createAttachmentUpload(attachmentBlob, \\\"myFile\\\");\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\n // Create media reference\\n const mediaFile = await fetch(\\\"media.mp4\\\");\\n const mediaBlob = await mediaFile.blob();\\n const mediaReference: MediaReference = await client(\\n __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference,\\n ).createMediaReference({\\n data: mediaBlob,\\n fileName: \\\"myMedia\\\",\\n objectType: {{objectType}},\\n propertyType: \\\"{{property}}\\\",\\n });\\n{{/hasMediaParameter}}\\n const result = await client({{actionApiName}}).batchApplyAction([\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n ],\\n {\\n $returnEdits: true,\\n }\\n );\\n if (result.type === \\\"edits\\\") {\\n // use the result object to report back on action results\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"uploadAttachment\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\nimport type { AttachmentUpload } from \\\"@osdk/api\\\";\\nimport { {{actionApiName}} } from \\\"{{{packageName}}}\\\";\\n\\n// To call an action with an attachment property, you first need to upload the file\\nasync function createAttachmentReference() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return createAttachmentUpload(blob, \\\"myFile\\\");\\n}\\n\\nconst myAttachmentUpload: AttachmentUpload = await createAttachmentReference();\\n// then pass the attachment to the action in the action parameter.\\nconst actionResult = client({{actionApiName}}).applyAction({ \\n {{primaryKeyPropertyV2.apiName}}: {{{propertyValueV2}}},\\n {{property}}: myAttachmentUpload\\n });\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"castInterfaceToObjectReference\": [{\n \"template\": \"import { {{objectTypeApiName}}, {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk } from \\\"@osdk/client\\\";\\n try {\\n const page = await client({{interfaceApiName}}).fetchPage();\\n\\n const interfaces = page.data;\\n const {{interfaceApiNameCamelCase}}: Osdk<{{interfaceApiName}}> = interfaces[0];\\n\\n // Cast from interface to object type\\n const {{objectTypeApiNameCamelCase}}: Osdk<{{objectTypeApiName}}> = {{interfaceApiNameCamelCase}}.$as({{objectTypeApiName}});\\n // Or from object type back to interface\\n const {{interfaceApiNameCamelCase}}2: Osdk<{{interfaceApiName}}> = {{objectTypeApiNameCamelCase}}.$as({{interfaceApiName}});\\n } catch (e) {\\n throw e;\\n }\"\n }],\n \"executeFunction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\n{{#hasAttachmentUpload}}\\nimport type { AttachmentUpload } from \\\"@osdk/api\\\";\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\nimport { {{funcApiName}} } from \\\"{{{packageName}}}\\\";\\n{{/hasAttachmentUpload}}\\n{{^hasAttachmentUpload}}\\nimport type { Osdk } from \\\"@osdk/client\\\";\\nimport { {{funcApiName}}, type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n{{/hasAttachmentUpload}}\\n\\n{{#hasAttachmentUpload}}\\nasync function callFunctionWithAttachmentUpload() {\\n async function createAttachmentReference() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return createAttachmentUpload(blob, \\\"myFile\\\");\\n }\\n const attachment: AttachmentUpload = await createAttachmentReference();\\n{{/hasAttachmentUpload}}\\n{{^hasAttachmentUpload}}\\nasync function callFunctionWithAttachmentLoaded(objectWithAttachment: Osdk.Instance<{{objectType}}>) {\\n const attachment = objectWithAttachment.{{attachmentProperty}}?.rid;\\n if (attachment == null) {\\n throw new Error(\\\"Attachment is required\\\");\\n }\\n{{/hasAttachmentUpload}}\\n const result = await client({{funcApiName}}).executeFunction({{{functionInputValuesV2}}});\\n return result;\\n}\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}\\nimport { {{funcApiName}} } from \\\"{{{packageName}}}\\\";\\n\\nconst result = await client({{funcApiName}}).executeFunction({{{functionInputValuesV2}}});\\n{{/hasAttachmentProperty}}\",\n \"computedVariables\": [\"functionInputValuesV2\"]\n }],\n \"stringStartsWithTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $startsWith: \\\"foo\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $startsWith: \\\"foo\\\" }\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"containsAllTermsInOrderTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $containsAllTermsInOrder: \\\"foo bar\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $containsAllTermsInOrder: \\\"foo bar\\\" }\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"containsAnyTermTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $containsAnyTerm: \\\"foo bar\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $containsAnyTerm: \\\"foo bar\\\" }\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"containsAllTermsTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $containsAllTerms: \\\"foo bar\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $containsAllTerms: \\\"foo bar\\\" }\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"equalityTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $eq: {{{propertyValueV2}}} }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $eq: {{{propertyValueV2}}} }\\n {{/structSubPropertyApiName}}\\n });\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"inFilterTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $in: [{{{propertyValueV2}}}] }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $in: [{{{propertyValueV2}}}] }\\n {{/structSubPropertyApiName}}\\n });\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"nullTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $isNull: true }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $isNull: true }\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"rangeTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { ${{operation}}: {{{propertyValueV2}}} }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { ${{operation}}: {{{propertyValueV2}}} }\\n {{/structSubPropertyApiName}}\\n });\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"withinDistanceTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $within: { $distance: [100, \\\"{{distanceUnit}}\\\"], $of: [-74.0060, 40.7128]} }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $within: { $distance: [100, \\\"{{distanceUnit}}\\\"], $of: [-74.0060, 40.7128]}}\\n {{/structSubPropertyApiName}}\\n })\"\n }],\n \"withinBoundingBoxTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $within: { $bbox: [-74.0060, 25.123, 80.4231, 40.7128]}}}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $within: { $bbox: [-74.0060, 25.123, 80.4231, 40.7128]}}\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"withinPolygonTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $within: { type: \\\"Polygon\\\", coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]]}}}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $within: { type: \\\"Polygon\\\", coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]]}}\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"intersectsPolygonTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $intersects: { type: \\\"Polygon\\\", coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]]}}}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $intersects: { type: \\\"Polygon\\\", coordinates: [[[10.0, 40.0], [20.0, 50.0], [20.0, 30.0], [10.0, 40.0]]]}}\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"intersectsBboxTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $intersects: { $bbox: [-74.0060, 25.123, 80.4231, 40.7128]}}}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $intersects: { $bbox: [-74.0060, 25.123, 80.4231, 40.7128]}}\\n {{/structSubPropertyApiName}}\\n });\"\n }],\n \"notTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({ $not: { {{property}}: { $eq: {{{propertyValueV2}}} }}});\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"andTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({ $and:[\\n { $not: { {{primaryKeyPropertyV2.apiName}}: { $isNull: true }}},\\n { {{property}}: { $eq: {{{propertyValueV2}}} }}\\n ]});\",\n \"computedVariables\": [\"primaryKeyPropertyV2\", \"propertyValueV2\"]\n }],\n \"orTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}ObjectSet = client({{objectType}})\\n .where({ $or:[\\n { $not: { {{primaryKeyPropertyV2.apiName}}: { $isNull: true }}},\\n { {{property}}: { $eq: {{{propertyValueV2}}} }}\\n ]});\",\n \"computedVariables\": [\"primaryKeyPropertyV2\", \"propertyValueV2\"]\n }],\n \"containsTemplate\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst filteredObjects = client({{objectType}})\\n .where({\\n {{property}}: { $contains: {{{arrayElementValue}}} }\\n })\",\n \"computedVariables\": [\"arrayElementValue\"]\n }],\n \"loadInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\nconst response: PageResult<Osdk<{{interfaceApiName}}>>\\n = await client({{interfaceApiName}}).fetchPage({ $pageSize: 30 });\"\n }],\n \"loadAllInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { Osdk } from \\\"@osdk/client\\\";\\n\\nconst interfaces: Osdk<{{interfaceApiName}}>[] = [];\\n\\nfor await(const int of client({{interfaceApiName}}).asyncIter()) {\\n interfaces.push(int);\\n}\\nconst interface1 = interfaces[0];\"\n }],\n \"loadOrderedInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const page: PageResult<Osdk<{{interfaceApiName}}>> = await client({{interfaceApiName}})\\n .fetchPage({\\n $orderBy: { {{property}}: \\\"asc\\\"},\\n $pageSize: 30\\n });\\n} catch (e) {\\n throw e;\\n}\"\n }],\n \"searchInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type PageResult } from \\\"@osdk/client\\\";\\n\\ntry {\\n const page: PageResult<Osdk<{{interfaceApiName}}>> = await client({{interfaceApiName}})\\n .where({\\n {{#structSubPropertyApiName}}\\n {{property}}: { {{structSubPropertyApiName}}: { $startsWith: \\\"foo\\\" }}\\n {{/structSubPropertyApiName}}\\n {{^structSubPropertyApiName}}\\n {{property}}: { $startsWith: \\\"foo\\\" }\\n {{/structSubPropertyApiName}}\\n })\\n .fetchPage({\\n $pageSize: 30\\n });\\n\\n const interfaces = page.data;\\n const interface1 = interfaces[0];\\n} catch (e) {\\n throw e;\\n}\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"loadTimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllPoints();\\n}\"\n }],\n \"loadRelativeTimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllPoints({\\n $before: 1,\\n $unit: \\\"{{timeUnit}}\\\",\\n })\\n}\"\n }],\n \"loadAbsoluteTimeSeriesPointsSnippet\": [{\n \"template\": \"import { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\nimport { type Osdk } from \\\"@osdk/client\\\";\\n\\nasync function getAbsoluteTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return await obj.{{property}}?.getAllPoints({\\n $startTime: \\\"2022-08-13T12:34:56Z\\\",\\n $endTime: \\\"2022-08-14T12:34:56Z\\\",\\n });\\n}\"\n }],\n \"loadTimeSeriesFirstPointSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getFirstTimeSeriesPoint(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getFirstPoint();\\n}\"\n }],\n \"loadTimeSeriesLastPointSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getLastTimeSeriesPoint(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getLastPoint();\\n}\"\n }],\n \"loadGeotimeSeriesPointsSnippet\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"loadRelativeGeotimeSeriesPointsSnippet\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"loadAbsoluteGeotimeSeriesPointsSnippet\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"loadGeotimeSeriesLastPointSnippet\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"loadObjectMetadataSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst objectTypeMetadata = await client.fetchMetadata({{objectType}});\\n\\nif (objectTypeMetadata?.icon?.type === \\\"blueprint\\\") {\\n const blueprintIconName = objectTypeMetadata.icon.name;\\n}\\nconst currentVisibility = objectTypeMetadata.visibility;\\nconst currentDescription = objectTypeMetadata.description;\"\n }],\n \"loadInterfaceMetadataSnippet\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst interfaceTypeMetadata = await client.fetchMetadata({{interfaceApiName}});\\n\\nconst implementingObjectTypes = interfaceTypeMetadata.implementedBy;\\nconst interfaceRid = interfaceTypeMetadata.rid;\"\n }],\n \"subscribeToObjectSetInstructions\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"uploadMedia\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"readMedia\": [{\n \"template\": \"// Upgrade to 2.1 for official support\"\n }],\n \"derivedPropertyBaseExample\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"$count\\\")\\n })\\n .where({\\n \\\"newPropertyName\\\": { $gt: 0 }\\n }).aggregate({\\n $select: { \\\"newPropertyName:max\\\": \\\"unordered\\\" }\\n })\"\n }],\n \"derivedPropertyApproximateDistinctAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:approximateDistinct\\\")\\n }).fetchPage();\"\n }],\n \"derivedPropertyExactDistinctAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:exactDistinct\\\")\\n }).fetchPage();\"\n }],\n \"derivedPropertyCollectToListAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst maxObjectsInList = 75; // Adjust this value as needed between 1 and 100\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:collectList\\\", { limit: maxObjectsInList })\\n }).fetchPage();\"\n }],\n \"derivedPropertyCollectToSetAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst maxObjectsInSet = 75; // Adjust this value as needed between 1 and 100\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:collectSet\\\", { limit: maxObjectsInSet })\\n }).fetchPage();\"\n }],\n \"derivedPropertyCountAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"$count\\\")\\n }).fetchPage();\"\n }],\n \"derivedPropertySelectPropertyAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").selectProperty(\\\"{{property}}\\\")\\n }).fetchPage();\"\n }],\n \"derivedPropertyApproximatePercentileAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:approximatePercentile\\\", { percentile: 95 })\\n }).fetchPage();\"\n }],\n \"derivedPropertyNumericAggregation\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst sum{{objectType}} = await client({{objectType}})\\n .withProperties({\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"{{property}}:{{operation}}\\\")\\n }).fetchPage();\"\n }],\n \"objectSetOperationsGuide\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst objectSetA = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"a\\\"}})\\nconst objectSetB = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"b\\\"}})\\nconst objectSetC = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"c\\\"}})\\n\\n// Object set operations can be chained. e.g. To find all objects in objectSetA \\n// that are present in objectSetB but do not exist in objectSetC:\\nconst result = objectSetA\\n .intersect(objectSetB)\\n .subtract(objectSetC)\"\n }],\n \"objectSetOperationsUnion\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst objectSetA = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"a\\\"}})\\nconst objectSetB = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"b\\\"}})\\nconst objectSetC = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"c\\\"}})\\n\\n// Combine objectSetA, objectSetB and objectSetC\\nconst result = objectSetA\\n .union(objectSetB)\\n .union(objectSetC) // alternatively: objectSetA.union(objectSetB, objectSetC)\"\n }],\n \"objectSetOperationsSubtract\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst objectSetA = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"a\\\"}})\\nconst objectSetB = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"b\\\"}})\\nconst objectSetC = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"c\\\"}})\\n\\n\\n// Return objects in objectSetA that are not present in either objectSetB or objectSetC\\nconst result = objectSetA\\n .subtract(objectSetB)\\n .subtract(objectSetC) // alternatively: objectSetA.subtract(objectSetB, objectSetC)\"\n }],\n \"objectSetOperationsIntersect\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nconst objectSetA = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"a\\\"}})\\nconst objectSetB = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"b\\\"}})\\nconst objectSetC = client({{objectType}}).where({ {{titleProperty}}: { $containsAnyTerm: \\\"c\\\"}})\\n\\n\\n// Return all objects common to objectSetA, objectSetB and objectSetC\\nconst result = objectSetA\\n .intersect(objectSetB)\\n .intersect(objectSetC) // alternatively: objectSetA.intersect(objectSetB, objectSetC)\"\n }],\n \"searchAround\": [{\n \"template\": \"import { {{sourceObjectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\n// Object set containing objects a, b and c\\nconst objects = client({{sourceObjectType}})\\n .where({ {{rawLinkedPrimaryKeyProperty.apiName}}: { $in: [\\\"a\\\", \\\"b\\\", \\\"c\\\"]}});\\n\\n// Traverse the selected link type to find all objects of type\\n// Find {{linkedObjectType}} objects linked to the filtered {{sourceObjectType}} objects\\nconst linkedObjects = await objects.pivotTo(\\\"{{linkApiName}}\\\").fetchPage();\"\n }]\n }\n },\n \"2.1.0\": {\n \"snippets\": {\n \"loadGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllValues();\\n}\"\n }],\n \"loadRelativeGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllValues({\\n $before: 1,\\n $unit: \\\"{{timeUnit}}\\\",\\n })\\n}\"\n }],\n \"loadAbsoluteGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAbsoluteTimeSeriesPoints(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getAllValues({\\n $startTime: \\\"2022-08-13T12:34:56Z\\\",\\n $endTime: \\\"2022-08-14T12:34:56Z\\\",\\n });\\n}\"\n }],\n \"loadGeotimeSeriesLastPointSnippet\": [{\n \"template\": \"import type { Osdk } from \\\"@osdk/client\\\";\\nimport { type {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getLastTimeSeriesPoint(obj: Osdk.Instance<{{objectType}}>) {\\n return obj.{{property}}?.getLatestValue();\\n}\"\n }],\n \"subscribeToObjectSetInstructions\": [{\n \"template\": \"import { {{objectOrInterfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst subscription = client({{objectOrInterfaceApiName}}).subscribe(\\n {\\n onChange(update) {\\n if (update.state === \\\"ADDED_OR_UPDATED\\\") {\\n // An object has received an update or an object was added to the object set\\n // Get the object using the $primaryKey from your cache\\n // const currentObject = objects[update.object.$primaryKey];\\n // use the update.object[\\\"<propertyName>\\\"] to update your cache \\n //currentObject[\\\"<propertyName>\\\"] = update.object[\\\"<propertyName>\\\"] ?? currentObject[\\\"<propertyName>\\\"];\\n }\\n else if (update.state === \\\"REMOVED\\\") {\\n // The object was removed from the object set, which could mean it was deleted or no longer meets the filter criteria\\n // Remove the object from your cache using the $primaryKey\\n // delete objects[update.object.$primaryKey];\\n }\\n },\\n onSuccessfulSubscription() {\\n // The subscription was successful and you can expect to receive updates\\n },\\n onError(err) {\\n // There was an error with the subscription and you will not receive any more updates\\n throw new Error(err.error instanceof Error ? err.error.message : String(err.error));\\n },\\n onOutOfDate() {\\n // We could not keep track of all changes. Please reload the objects in your set.\\n },\\n },\\n { properties: [ {{{propertyNames}}} ] }\\n);\\n\\n// To stop receiving updates, call unsubscribe\\nsubscription.unsubscribe();\"\n }],\n \"applyAction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\nimport type { AttachmentUpload {{#hasMediaParameter}}, MediaReference, MediaUpload {{/hasMediaParameter}} } from \\\"@osdk/api\\\";\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}{{#hasMediaParameter}}\\nimport type { MediaReference, MediaUpload } from \\\"@osdk/api\\\";\\n{{/hasMediaParameter}}{{/hasAttachmentProperty}}\\n{{#hasAttachmentProperty}}\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\n{{/hasAttachmentProperty}}\\nimport { {{actionApiName}} {{#hasMediaParameter}}, {{objectType}} {{/hasMediaParameter}} } from \\\"{{{packageName}}}\\\";\\n\\nasync function callAction() {\\n{{#hasAttachmentProperty}}\\n // Create attachment upload\\n const attachmentFile = await fetch(\\\"file.json\\\");\\n const attachmentBlob = await attachmentFile.blob();\\n const attachment: AttachmentUpload = createAttachmentUpload(attachmentBlob, \\\"myFile\\\");\\n // alternatively, you can get the Rid from the attachment property on the object type you are modifying \\n // const attachmentRid = objectTypeWithAttachment.{attachmentProperty}?.rid;\\n\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\n // You can upload media data via your Action\\n const mediaFile = await fetch(\\\"media.mp4\\\");\\n const mediaBlob = await mediaFile.blob();\\n const mediaUpload: MediaUpload = { data: mediaBlob, fileName: \\\"myMedia\\\" };\\n \\n // You can also pass an existing media reference into your Action\\n const objectPage = await client({{objectType}}).fetchPage();\\n const mediaReference: MediaReference = objectPage.data[0].{{property}}!.getMediaReference();\\n\\n{{/hasMediaParameter}}\\n const result = await client({{actionApiName}}).applyAction(\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n $returnEdits: true,\\n }\\n );\\n if (result.type === \\\"edits\\\") {\\n // use the result object to report back on action results\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentProperty}}\\nimport type { AttachmentUpload {{#hasMediaParameter}}, MediaReference, MediaUpload {{/hasMediaParameter}} } from \\\"@osdk/api\\\";\\n{{/hasAttachmentProperty}}\\n{{^hasAttachmentProperty}}{{#hasMediaParameter}}\\nimport type { MediaReference, MediaUpload } from \\\"@osdk/api\\\";\\n{{/hasMediaParameter}}{{/hasAttachmentProperty}}\\n{{#hasAttachmentProperty}}\\nimport { createAttachmentUpload } from \\\"@osdk/client\\\";\\n{{/hasAttachmentProperty}}\\nimport { {{actionApiName}} {{#hasMediaParameter}}, {{objectType}} {{/hasMediaParameter}} } from \\\"{{{packageName}}}\\\";\\n\\nasync function callBatchAction() {\\n{{#hasAttachmentProperty}}\\n // Create attachment upload\\n const attachmentFile = await fetch(\\\"file.json\\\");\\n const attachmentBlob = await attachmentFile.blob();\\n const attachment: AttachmentUpload = createAttachmentUpload(attachmentBlob, \\\"myFile\\\");\\n\\n{{/hasAttachmentProperty}}\\n{{#hasMediaParameter}}\\n // You can upload media data via your Action\\n const mediaFile = await fetch(\\\"media.mp4\\\");\\n const mediaBlob = await mediaFile.blob();\\n const mediaUpload: MediaUpload = { data: mediaBlob, fileName: \\\"myMedia\\\" };\\n \\n // You can also pass an existing media reference into your Action\\n const objectPage = await client({{objectType}}).fetchPage();\\n const mediaReference: MediaReference = objectPage.data[0].{{property}}!.getMediaReference();\\n \\n{{/hasMediaParameter}}\\n const result = await client({{actionApiName}}).batchApplyAction([\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}},\\n {{/actionParameterSampleValuesV2}}\\n },\\n ],\\n {\\n $returnEdits: true,\\n }\\n );\\n if (result.type === \\\"edits\\\") {\\n // use the result object to report back on action results\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n }\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"uploadMediaOntologyEdits\": [{\n \"template\": \"import type { Client } from \\\"@osdk/client\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\";\\nimport type { Edits } from \\\"@osdk/functions\\\";\\nimport { createEditBatch, uploadMedia } from \\\"@osdk/functions\\\";\\n\\nasync function createObject(client: Client): Promise<Edits.Object<{{objectType}}>[]> {\\n const batch = createEditBatch<Edits.Object<{{objectType}}>>(client);\\n \\n const blob = new Blob([\\\"Hello, world\\\"], { type: \\\"text/plain\\\" });\\n const mediaReference = await uploadMedia(client, { data: blob, fileName: \\\"foundryFile.txt\\\" });\\n\\n // @ts-ignore \\n batch.create({{objectType}}, { myMediaProperty: mediaReference, /* Other properties... */ });\\n\\n return batch.getEdits();\\n}\\n\\nexport default createObject;\"\n }],\n \"uploadMedia\": [{\n \"template\": \"import { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from \\\"@osdk/api/unstable\\\";\\nimport { {{objectType}}, {{actionApiName}} } from \\\"{{{packageName}}}\\\"\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { MediaReference } from \\\"@osdk/api\\\";\\n// To upload media with 2.x, it has to be linked to an Action call\\nasync function createMediaReference() {\\n const file = await fetch(\\\"file.json\\\");\\n const data = await file.blob();\\n // Upload media to an object type with a media property. This returns a media reference that can passed to\\n // a media parameter in an Action.\\n return await client(\\n __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference,\\n ).createMediaReference({\\n data,\\n fileName: \\\"myFile\\\",\\n objectType: {{objectType}},\\n propertyType: \\\"{{property}}\\\",\\n });\\n}\\nconst mediaReference: MediaReference = await createMediaReference();\\nconst actionResult = client({{actionApiName}}).applyAction({ \\n {{primaryKeyPropertyV2.apiName}}: {{{propertyValueV2}}},\\n {{mediaParameter}}: mediaReference \\n});\",\n \"computedVariables\": [\"propertyValueV2\"]\n }],\n \"readMedia\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nconst result = await client({{objectType}}).fetchOne({{{primaryKeyPropertyValueV2}}});\\n// Fetch metadata of a media property\\nconst mediaMetadata = await result.{{property}}?.fetchMetadata();\\nconsole.log(mediaMetadata?.mediaType, mediaMetadata?.sizeBytes, mediaMetadata?.path);\\n// Fetch contents of a media property\\nconst mediaContent = await result.{{property}}?.fetchContents();\\nif (mediaContent?.ok) {\\n const data = await mediaContent.blob();\\n}\",\n \"computedVariables\": [\"primaryKeyPropertyValueV2\"]\n }]\n }\n },\n \"2.4.0\": {\n \"snippets\": {\n \"derivedPropertyNumericExpression\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}WithExpression = await client({{objectType}})\\n .withProperties({\\n {{^isUnary}}\\n \\\"newPropertyName\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\")\\n .aggregate(\\\"{{property}}\\\").{{operation}}(\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").aggregate(\\\"$count\\\"))\\n }).fetchPage();\\n {{/isUnary}}\\n {{#isUnary}}\\n \\\"{{operation}}_{{property}}\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\")\\n .selectProperty(\\\"{{property}}\\\").{{operation}}()\\n }).fetchPage();\\n {{/isUnary}}\"\n }],\n \"derivedPropertyDatetimeExpression\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst {{objectType}}WithExpression = await client({{objectType}})\\n .withProperties({\\n {{^isExtractPart}} \\n \\\"derivedPropertyDatetime_{{operation}}\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\")\\n .selectProperty(\\\"{{property}}\\\")\\n .{{operation}}(baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\").selectProperty(\\\"{{property}}\\\"))\\n {{/isExtractPart}}\\n {{#isExtractPart}}\\n \\\"YEARS_part_of_{{property}}_of_{{linkApiName}}\\\": (baseObjectSet) =>\\n baseObjectSet.pivotTo(\\\"{{linkApiName}}\\\")\\n .selectProperty(\\\"{{property}}\\\").extractPart(\\\"YEARS\\\")\\n {{/isExtractPart}}\\n }).fetchPage();\"\n }],\n \"nearestNeighborsTextQuery\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\nconst result = await client({{objectType}})\\n .nearestNeighbors(\\\"coffee\\\", 5, \\\"{{property}}\\\")\\n .fetchPage();\"\n }],\n \"nearestNeighborsVectorQuery\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n\\n// Note that this vector maps to an arbitrary string\\n// It must match the dimension of the \\\"{{property}}\\\" property: {{vectorDimensionSize}}\\nconst vector_query = Array.from({ length: {{vectorDimensionSize}} }, () => 0.3);\\nconst result = await client({{objectType}})\\n .nearestNeighbors(vector_query, 5, \\\"{{property}}\\\")\\n .fetchPage();\"\n }]\n }\n }\n }\n};","/*\n * Copyright 2025 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 { outdent } from \"outdent\";\nimport { snippets } from \"./generatedNoCheck/docsNoComputedVariables.js\";\nconst indentedNewLine = spacesCount => `\\n${\" \".repeat(spacesCount)}`;\nexport const TYPESCRIPT_OSDK_SNIPPETS = {\n ...snippets,\n computedVariables: {\n functionInputValuesV1: handleFunctionInputValuesV1,\n functionInputValuesV2: handleFunctionInputValuesV2,\n actionParameterSampleValuesV1: handleActionParameterSampleValuesV1,\n actionParameterSampleValuesV2: handleActionParameterSampleValuesV2,\n propertyValueV1: handlePropertyValueV1,\n propertyValueV2: handlePropertyValueV2,\n propertyValueIncrementedV1: handlePropertyValueIncrementedV1,\n propertyValueIncrementedV2: handlePropertyValueIncrementedV2,\n propertiesV1: handlePropertiesV1,\n propertiesV2: handlePropertiesV2,\n primaryKeyPropertyV1: handlePrimaryKeyPropertyV1,\n primaryKeyPropertyV2: handlePrimaryKeyPropertyV2,\n primaryKeyPropertyValueV2: handlePrimaryKeyPropertyValueV2,\n linkedPropertiesV1: handleLinkedPropertiesV1,\n linkedPropertiesV2: handleLinkedPropertiesV2,\n linkedPrimaryKeyPropertyV1: handleLinkedPrimaryKeyPropertyV1,\n linkedPrimaryKeyPropertyV2: handleLinkedPrimaryKeyPropertyV2,\n arrayElementValue: handleArrayElementValue\n }\n};\n\n// SDK major version enum\nvar SdkMajorVersion = /*#__PURE__*/function (SdkMajorVersion) {\n SdkMajorVersion[SdkMajorVersion[\"V1\"] = 1] = \"V1\";\n SdkMajorVersion[SdkMajorVersion[\"V2\"] = 2] = \"V2\";\n return SdkMajorVersion;\n}(SdkMajorVersion || {}); // Helper functions for properties\nfunction handleFunctionInputValuesV1({\n rawFunctionInputValues\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V1);\n}\nfunction handleFunctionInputValuesV2({\n rawFunctionInputValues\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V2);\n}\nfunction handleActionParameterSampleValuesV1({\n rawActionTypeParameterValues\n}) {\n return renderActionParameterValues(rawActionTypeParameterValues, SdkMajorVersion.V1);\n}\nfunction handleActionParameterSampleValuesV2({\n rawActionTypeParameterValues\n}) {\n return renderActionParameterValues(rawActionTypeParameterValues, SdkMajorVersion.V2);\n}\nfunction handlePropertyValueV1({\n rawPropertyValue\n}) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V1);\n}\nfunction handlePropertyValueV2({\n rawPropertyValue\n}) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\nfunction handlePropertyValueIncrementedV1({\n rawPropertyValueIncremented\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V1);\n}\nfunction handlePropertyValueIncrementedV2({\n rawPropertyValueIncremented\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V2);\n}\nfunction handleArrayElementValue({\n rawPropertyValue\n}) {\n return renderArrayElementPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\nfunction renderArrayElementPropertyValue(propertyValue, majorVersion) {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n return renderType(propertyValue, majorVersion, \"arraySubType\");\n}\nfunction handlePropertiesV1({\n rawProperties\n}) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1)\n }));\n}\nfunction handlePropertiesV2({\n rawProperties\n}) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2)\n }));\n}\nfunction handlePrimaryKeyPropertyV1({\n rawPrimaryKeyProperty\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V1)\n };\n}\nfunction handlePrimaryKeyPropertyV2({\n rawPrimaryKeyProperty\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2)\n };\n}\nfunction handlePrimaryKeyPropertyValueV2({\n rawPrimaryKeyProperty\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n return renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2);\n}\nfunction handleLinkedPropertiesV1({\n rawLinkedProperties\n}) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1)\n }));\n}\nfunction handleLinkedPropertiesV2({\n rawLinkedProperties\n}) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2)\n }));\n}\nfunction handleLinkedPrimaryKeyPropertyV1({\n rawLinkedPrimaryKeyProperty\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawLinkedPrimaryKeyProperty.value, SdkMajorVersion.V1),\n type: rawLinkedPrimaryKeyProperty.type\n };\n}\nfunction handleLinkedPrimaryKeyPropertyV2({\n rawLinkedPrimaryKeyProperty\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawLinkedPrimaryKeyProperty.value, SdkMajorVersion.V2),\n type: rawLinkedPrimaryKeyProperty.type\n };\n}\n\n// Common function to render function input values for any version\nfunction renderFunctionInputValues(rawFunctionInputValues, majorVersion) {\n if (rawFunctionInputValues == null) {\n throw new Error(\"Cannot render a null rawFunctionInputValues\");\n }\n if (Object.keys(rawFunctionInputValues.parameters).length === 0) {\n return \"\";\n }\n return outdent`\n {\n ${Object.entries(rawFunctionInputValues.parameters).map(([key, value]) => `\"${key}\": ${renderType(value, majorVersion, \"functionInput\")}`).join(`,${indentedNewLine(4)}`)}\n }`;\n}\n\n// Common function to render action parameter values for any version\nfunction renderActionParameterValues(rawActionTypeParameterValues, majorVersion) {\n if (rawActionTypeParameterValues == null) {\n throw new Error(\"Cannot render a null rawActionTypeParameterValues\");\n }\n return rawActionTypeParameterValues.map((param, index, array) => ({\n key: param.key,\n value: renderType(param.value, majorVersion, \"actionParameter\"),\n last: index === array.length - 1\n }));\n}\n\n// Function to render property values\nfunction renderPropertyValue(propertyValue, majorVersion) {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n return renderType(propertyValue, majorVersion, \"property\");\n}\n\n// Unified render function for all types\nfunction renderType(type, majorVersion, context) {\n if (type == null) {\n throw new Error(\"Cannot render a null type value\");\n }\n switch (type.type) {\n case \"array\":\n case \"set\":\n case \"list\":\n const arraySubType = renderType(type.subtype, majorVersion, context);\n return context === \"arraySubType\" ? arraySubType : `[${arraySubType}]`;\n case \"boolean\":\n return type.value ? \"true\" : \"false\";\n case \"byte\":\n case \"integer\":\n case \"long\":\n case \"short\":\n return type.value.toString();\n case \"decimal\":\n case \"double\":\n case \"float\":\n if (context === \"actionParameter\") {\n return `\"${type.value.toString()}\"`;\n }\n return type.value.toString();\n case \"date\":\n return getDateParameter(majorVersion, type.daysOffset);\n case \"timestamp\":\n return getTimestampParameter(majorVersion, type.daysOffset);\n case \"object\":\n const primaryKeyValue = type.primaryKeyType === \"string\" ? \"\\\"primaryKeyValue\\\"\" : \"primaryKeyValue\";\n if (context === \"actionParameter\") {\n return `${primaryKeyValue} /* or myObjectInstance */`;\n }\n return primaryKeyValue;\n case \"objectSet\":\n return `client(${type.objectTypeApiName}).where({ /* filter conditions */ })`;\n case \"anonymousCustomType\":\n case \"customType\":\n {\n const entries = Object.entries(type.parameters ?? {});\n if (entries.length > 0) {\n const rendered = entries.map(([name, value]) => `\"${name}\": ${renderType(value, majorVersion, context)}`).join(`,${indentedNewLine(8)}`);\n return `{${indentedNewLine(8)}${rendered}${indentedNewLine(4)}}`;\n }\n return \"{}\";\n }\n case \"attachment\":\n return type.hasAttachments ? \"attachment\" : \"{}\";\n case \"interface\":\n case \"marking\":\n return \"{}\";\n case \"mediaReference\":\n return context === \"actionParameter\" ? \"mediaUpload\" : \"mediaReferenceRid\";\n case \"objectType\":\n return `\"${type.objectTypeApiName}\"`;\n case \"map\":\n if (type.keyType.type === \"object\") {\n return `{[${getMapKeyObjectName(type.keyType.apiName)}.$objectSpecifier]: ${renderType(type.valueType, majorVersion, context)}}`;\n }\n return `{${renderType(type.valueType, majorVersion, context)}: ${renderType(type.valueType, majorVersion, context)}}`;\n case \"string\":\n case \"unknown\":\n default:\n return `\"${type.value ?? \"value\"}\"`;\n }\n}\nfunction getMapKeyObjectName(apiName) {\n if (apiName == null) {\n return \"osdkObject\";\n }\n return `${getDisplayName(processObjectApiName(apiName))}OsdkObject`;\n}\nfunction getDisplayName(input) {\n const tokens = input.split(/[_-]|(?<=[a-z])(?=[A-Z])/);\n const result = tokens.map(token => titleCase(token.toLowerCase())).join(\"\");\n return result.charAt(0).toLowerCase() + result.slice(1);\n}\nfunction titleCase(token) {\n return (token[0] ?? \"\").toUpperCase() + token.slice(1);\n}\n\n// For objects that have namespaces prefixed to their api name, we remove it and only return the last portion\n// As that is what the TS OSDK uses to generate identifiers for objects\nfunction processObjectApiName(objectApiName) {\n const last = objectApiName.lastIndexOf(\".\");\n if (last === -1) {\n return objectApiName;\n }\n return objectApiName.slice(last + 1);\n}\n\n// Generic helper functions for date and timestamp\nfunction getDateParameter(majorVersion, daysOffset = 0) {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString().split(\"T\")[0]}\"`;\n }\n return hasOffset ? `LocalDate.now().plusDays(${daysOffset})` : \"LocalDate.now()\";\n}\nfunction getTimestampParameter(majorVersion, daysOffset = 0) {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString()}\"`;\n }\n return hasOffset ? `Timestamp.now().plusDays(${daysOffset})` : \"Timestamp.now()\";\n}"]}
package/build/esm/docs.js CHANGED
@@ -263,7 +263,7 @@ function renderType(type, majorVersion, context) {
263
263
  case "object":
264
264
  const primaryKeyValue = type.primaryKeyType === "string" ? "\"primaryKeyValue\"" : "primaryKeyValue";
265
265
  if (context === "actionParameter") {
266
- return `${primaryKeyValue} // or myObjectInstance`;
266
+ return `${primaryKeyValue} /* or myObjectInstance */`;
267
267
  }
268
268
  return primaryKeyValue;
269
269
  case "objectSet":
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","names":["outdent","snippets","indentedNewLine","spacesCount","repeat","TYPESCRIPT_OSDK_SNIPPETS","computedVariables","functionInputValuesV1","handleFunctionInputValuesV1","functionInputValuesV2","handleFunctionInputValuesV2","actionParameterSampleValuesV1","handleActionParameterSampleValuesV1","actionParameterSampleValuesV2","handleActionParameterSampleValuesV2","propertyValueV1","handlePropertyValueV1","propertyValueV2","handlePropertyValueV2","propertyValueIncrementedV1","handlePropertyValueIncrementedV1","propertyValueIncrementedV2","handlePropertyValueIncrementedV2","propertiesV1","handlePropertiesV1","propertiesV2","handlePropertiesV2","primaryKeyPropertyV1","handlePrimaryKeyPropertyV1","primaryKeyPropertyV2","handlePrimaryKeyPropertyV2","primaryKeyPropertyValueV2","handlePrimaryKeyPropertyValueV2","linkedPropertiesV1","handleLinkedPropertiesV1","linkedPropertiesV2","handleLinkedPropertiesV2","linkedPrimaryKeyPropertyV1","handleLinkedPrimaryKeyPropertyV1","linkedPrimaryKeyPropertyV2","handleLinkedPrimaryKeyPropertyV2","arrayElementValue","handleArrayElementValue","SdkMajorVersion","rawFunctionInputValues","renderFunctionInputValues","V1","V2","rawActionTypeParameterValues","renderActionParameterValues","rawPropertyValue","renderPropertyValue","rawPropertyValueIncremented","renderArrayElementPropertyValue","propertyValue","majorVersion","Error","renderType","rawProperties","map","prop","apiName","value","rawPrimaryKeyProperty","rawLinkedProperties","rawLinkedPrimaryKeyProperty","type","Object","keys","parameters","length","entries","key","join","param","index","array","last","context","arraySubType","subtype","toString","getDateParameter","daysOffset","getTimestampParameter","primaryKeyValue","primaryKeyType","objectTypeApiName","rendered","name","hasAttachments","keyType","getMapKeyObjectName","valueType","getDisplayName","processObjectApiName","input","tokens","split","result","token","titleCase","toLowerCase","charAt","slice","toUpperCase","objectApiName","lastIndexOf","offsetDate","Date","setDate","getDate","toISOString"],"sources":["docs.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { SdkSnippets } from \"@osdk/docs-spec-core\";\nimport type {\n ActionParameterSampleValuesIR,\n ActionParameterSampleValueTypeIR,\n FunctionSampleParametersIR,\n FunctionSampleValueTypeIR,\n OSDK_SNIPPETS_SPEC,\n PropertySampleIR,\n PropertySampleValueTypeIR,\n} from \"@osdk/docs-spec-sdk\";\nimport { outdent } from \"outdent\";\nimport { snippets } from \"./generatedNoCheck/docsNoComputedVariables.js\";\n\nconst indentedNewLine = (spacesCount: number) => `\\n${\" \".repeat(spacesCount)}`;\n\nexport const TYPESCRIPT_OSDK_SNIPPETS: SdkSnippets<typeof OSDK_SNIPPETS_SPEC> =\n {\n ...snippets,\n computedVariables: {\n functionInputValuesV1: handleFunctionInputValuesV1,\n functionInputValuesV2: handleFunctionInputValuesV2,\n actionParameterSampleValuesV1: handleActionParameterSampleValuesV1,\n actionParameterSampleValuesV2: handleActionParameterSampleValuesV2,\n propertyValueV1: handlePropertyValueV1,\n propertyValueV2: handlePropertyValueV2,\n propertyValueIncrementedV1: handlePropertyValueIncrementedV1,\n propertyValueIncrementedV2: handlePropertyValueIncrementedV2,\n propertiesV1: handlePropertiesV1,\n propertiesV2: handlePropertiesV2,\n primaryKeyPropertyV1: handlePrimaryKeyPropertyV1,\n primaryKeyPropertyV2: handlePrimaryKeyPropertyV2,\n primaryKeyPropertyValueV2: handlePrimaryKeyPropertyValueV2,\n linkedPropertiesV1: handleLinkedPropertiesV1,\n linkedPropertiesV2: handleLinkedPropertiesV2,\n linkedPrimaryKeyPropertyV1: handleLinkedPrimaryKeyPropertyV1,\n linkedPrimaryKeyPropertyV2: handleLinkedPrimaryKeyPropertyV2,\n arrayElementValue: handleArrayElementValue,\n },\n };\n\n// SDK major version enum\nenum SdkMajorVersion {\n V1 = 1,\n V2 = 2,\n}\n\n// Helper functions for properties\nfunction handleFunctionInputValuesV1({\n rawFunctionInputValues,\n}: {\n rawFunctionInputValues?: FunctionSampleParametersIR;\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V1);\n}\n\nfunction handleFunctionInputValuesV2({\n rawFunctionInputValues,\n}: {\n rawFunctionInputValues?: FunctionSampleParametersIR;\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V2);\n}\n\nfunction handleActionParameterSampleValuesV1({\n rawActionTypeParameterValues,\n}: {\n rawActionTypeParameterValues?: ActionParameterSampleValuesIR;\n}) {\n return renderActionParameterValues(\n rawActionTypeParameterValues,\n SdkMajorVersion.V1,\n );\n}\n\nfunction handleActionParameterSampleValuesV2({\n rawActionTypeParameterValues,\n}: {\n rawActionTypeParameterValues?: ActionParameterSampleValuesIR;\n}) {\n return renderActionParameterValues(\n rawActionTypeParameterValues,\n SdkMajorVersion.V2,\n );\n}\n\nfunction handlePropertyValueV1(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V1);\n}\n\nfunction handlePropertyValueV2(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\n\nfunction handlePropertyValueIncrementedV1({\n rawPropertyValueIncremented,\n}: {\n rawPropertyValueIncremented?: PropertySampleValueTypeIR;\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V1);\n}\n\nfunction handlePropertyValueIncrementedV2({\n rawPropertyValueIncremented,\n}: {\n rawPropertyValueIncremented?: PropertySampleValueTypeIR;\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V2);\n}\n\nfunction handleArrayElementValue(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderArrayElementPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\n\nfunction renderArrayElementPropertyValue(\n propertyValue: PropertySampleValueTypeIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n\n return renderType(propertyValue, majorVersion, \"arraySubType\");\n}\n\nfunction handlePropertiesV1(\n { rawProperties }: { rawProperties?: PropertySampleIR[] },\n) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1),\n }));\n}\n\nfunction handlePropertiesV2(\n { rawProperties }: { rawProperties?: PropertySampleIR[] },\n) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2),\n }));\n}\n\nfunction handlePrimaryKeyPropertyV1(\n { rawPrimaryKeyProperty }: { rawPrimaryKeyProperty?: PropertySampleIR },\n) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V1),\n };\n}\n\nfunction handlePrimaryKeyPropertyV2(\n { rawPrimaryKeyProperty }: { rawPrimaryKeyProperty?: PropertySampleIR },\n) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2),\n };\n}\n\nfunction handlePrimaryKeyPropertyValueV2({\n rawPrimaryKeyProperty,\n}: {\n rawPrimaryKeyProperty?: PropertySampleIR;\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2);\n}\n\nfunction handleLinkedPropertiesV1(\n { rawLinkedProperties }: { rawLinkedProperties?: PropertySampleIR[] },\n) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1),\n }));\n}\n\nfunction handleLinkedPropertiesV2(\n { rawLinkedProperties }: { rawLinkedProperties?: PropertySampleIR[] },\n) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2),\n }));\n}\n\nfunction handleLinkedPrimaryKeyPropertyV1({\n rawLinkedPrimaryKeyProperty,\n}: {\n rawLinkedPrimaryKeyProperty?: {\n apiName: string;\n value: PropertySampleValueTypeIR;\n type: string;\n };\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(\n rawLinkedPrimaryKeyProperty.value,\n SdkMajorVersion.V1,\n ),\n type: rawLinkedPrimaryKeyProperty.type,\n };\n}\n\nfunction handleLinkedPrimaryKeyPropertyV2({\n rawLinkedPrimaryKeyProperty,\n}: {\n rawLinkedPrimaryKeyProperty?: {\n apiName: string;\n value: PropertySampleValueTypeIR;\n type: string;\n };\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(\n rawLinkedPrimaryKeyProperty.value,\n SdkMajorVersion.V2,\n ),\n type: rawLinkedPrimaryKeyProperty.type,\n };\n}\n\n// Common function to render function input values for any version\nfunction renderFunctionInputValues(\n rawFunctionInputValues: FunctionSampleParametersIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (rawFunctionInputValues == null) {\n throw new Error(\"Cannot render a null rawFunctionInputValues\");\n }\n if (Object.keys(rawFunctionInputValues.parameters).length === 0) {\n return \"\";\n }\n\n return outdent`\n {\n ${\n Object.entries(rawFunctionInputValues.parameters)\n .map(([key, value]) =>\n `\"${key}\": ${renderType(value, majorVersion, \"functionInput\")}`\n )\n .join(`,${indentedNewLine(4)}`)\n }\n }`;\n}\n\n// Common function to render action parameter values for any version\nfunction renderActionParameterValues(\n rawActionTypeParameterValues: ActionParameterSampleValuesIR | undefined,\n majorVersion: SdkMajorVersion,\n): Array<{ key: string; value: string; last: boolean }> {\n if (rawActionTypeParameterValues == null) {\n throw new Error(\"Cannot render a null rawActionTypeParameterValues\");\n }\n\n return rawActionTypeParameterValues.map((param, index, array) => ({\n key: param.key,\n value: renderType(param.value, majorVersion, \"actionParameter\"),\n last: index === array.length - 1,\n }));\n}\n\n// Function to render property values\nfunction renderPropertyValue(\n propertyValue: PropertySampleValueTypeIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n\n return renderType(propertyValue, majorVersion, \"property\");\n}\n\n// Unified render function for all types\nfunction renderType(\n type:\n | ActionParameterSampleValueTypeIR\n | FunctionSampleValueTypeIR\n | PropertySampleValueTypeIR,\n majorVersion: SdkMajorVersion,\n context: \"property\" | \"functionInput\" | \"actionParameter\" | \"arraySubType\",\n): string {\n if (type == null) {\n throw new Error(\"Cannot render a null type value\");\n }\n\n switch (type.type) {\n case \"array\":\n case \"set\":\n case \"list\":\n const arraySubType = renderType(type.subtype, majorVersion, context);\n return context === \"arraySubType\" ? arraySubType : `[${arraySubType}]`;\n case \"boolean\":\n return type.value ? \"true\" : \"false\";\n case \"byte\":\n case \"integer\":\n case \"long\":\n case \"short\":\n return type.value.toString();\n case \"decimal\":\n case \"double\":\n case \"float\":\n if (context === \"actionParameter\") {\n return `\"${type.value.toString()}\"`;\n }\n return type.value.toString();\n case \"date\":\n return getDateParameter(majorVersion, type.daysOffset);\n case \"timestamp\":\n return getTimestampParameter(majorVersion, type.daysOffset);\n case \"object\":\n const primaryKeyValue = type.primaryKeyType === \"string\"\n ? \"\\\"primaryKeyValue\\\"\"\n : \"primaryKeyValue\";\n if (context === \"actionParameter\") {\n return `${primaryKeyValue} // or myObjectInstance`;\n }\n return primaryKeyValue;\n case \"objectSet\":\n return `client(${type.objectTypeApiName}).where({ /* filter conditions */ })`;\n case \"anonymousCustomType\":\n case \"customType\": {\n const entries = Object.entries(type.parameters ?? {});\n if (entries.length > 0) {\n const rendered = entries\n .map(([name, value]) =>\n `\"${name}\": ${renderType(value, majorVersion, context)}`\n )\n .join(`,${indentedNewLine(8)}`);\n return `{${indentedNewLine(8)}${rendered}${indentedNewLine(4)}}`;\n }\n return \"{}\";\n }\n case \"attachment\":\n return type.hasAttachments ? \"attachment\" : \"{}\";\n case \"interface\":\n case \"marking\":\n return \"{}\";\n case \"mediaReference\":\n return context === \"actionParameter\"\n ? \"mediaUpload\"\n : \"mediaReferenceRid\";\n case \"objectType\":\n return `\"${type.objectTypeApiName}\"`;\n case \"map\":\n if (type.keyType.type === \"object\") {\n return `{[${\n getMapKeyObjectName(type.keyType.apiName)\n }.$objectSpecifier]: ${\n renderType(type.valueType, majorVersion, context)\n }}`;\n }\n return `{${\n renderType(\n type.valueType,\n majorVersion,\n context,\n )\n }: ${renderType(type.valueType, majorVersion, context)}}`;\n\n case \"string\":\n case \"unknown\":\n default:\n return `\"${type.value ?? \"value\"}\"`;\n }\n}\n\nfunction getMapKeyObjectName(apiName?: string) {\n if (apiName == null) {\n return \"osdkObject\";\n }\n return `${getDisplayName(processObjectApiName(apiName))}OsdkObject`;\n}\n\nfunction getDisplayName(input: string): string {\n const tokens = input.split(/[_-]|(?<=[a-z])(?=[A-Z])/);\n const result = tokens.map(token => titleCase(token.toLowerCase())).join(\"\");\n return result.charAt(0).toLowerCase() + result.slice(1);\n}\n\nfunction titleCase(token: string) {\n return (token[0] ?? \"\").toUpperCase() + token.slice(1);\n}\n\n// For objects that have namespaces prefixed to their api name, we remove it and only return the last portion\n// As that is what the TS OSDK uses to generate identifiers for objects\nfunction processObjectApiName(objectApiName: string) {\n const last = objectApiName.lastIndexOf(\".\");\n if (last === -1) {\n return objectApiName;\n }\n return objectApiName.slice(last + 1);\n}\n\n// Generic helper functions for date and timestamp\nfunction getDateParameter(\n majorVersion: SdkMajorVersion,\n daysOffset = 0,\n): string {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString().split(\"T\")[0]}\"`;\n }\n return hasOffset\n ? `LocalDate.now().plusDays(${daysOffset})`\n : \"LocalDate.now()\";\n}\n\nfunction getTimestampParameter(\n majorVersion: SdkMajorVersion,\n daysOffset = 0,\n): string {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString()}\"`;\n }\n return hasOffset\n ? `Timestamp.now().plusDays(${daysOffset})`\n : \"Timestamp.now()\";\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,SAASA,OAAO,QAAQ,SAAS;AACjC,SAASC,QAAQ,QAAQ,+CAA+C;AAExE,MAAMC,eAAe,GAAIC,WAAmB,IAAK,KAAK,GAAG,CAACC,MAAM,CAACD,WAAW,CAAC,EAAE;AAE/E,OAAO,MAAME,wBAAgE,GAC3E;EACE,GAAGJ,QAAQ;EACXK,iBAAiB,EAAE;IACjBC,qBAAqB,EAAEC,2BAA2B;IAClDC,qBAAqB,EAAEC,2BAA2B;IAClDC,6BAA6B,EAAEC,mCAAmC;IAClEC,6BAA6B,EAAEC,mCAAmC;IAClEC,eAAe,EAAEC,qBAAqB;IACtCC,eAAe,EAAEC,qBAAqB;IACtCC,0BAA0B,EAAEC,gCAAgC;IAC5DC,0BAA0B,EAAEC,gCAAgC;IAC5DC,YAAY,EAAEC,kBAAkB;IAChCC,YAAY,EAAEC,kBAAkB;IAChCC,oBAAoB,EAAEC,0BAA0B;IAChDC,oBAAoB,EAAEC,0BAA0B;IAChDC,yBAAyB,EAAEC,+BAA+B;IAC1DC,kBAAkB,EAAEC,wBAAwB;IAC5CC,kBAAkB,EAAEC,wBAAwB;IAC5CC,0BAA0B,EAAEC,gCAAgC;IAC5DC,0BAA0B,EAAEC,gCAAgC;IAC5DC,iBAAiB,EAAEC;EACrB;AACF,CAAC;;AAEH;AAAA,IACKC,eAAe,0BAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe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C,CAAC,GAAG5B,UAAU,CAAC;EAGrD,IAAI5B,YAAY,IAAIZ,eAAe,CAACI,EAAE,EAAE;IACtC,OAAO,IAAI6D,UAAU,CAACI,WAAW,CAAC,CAAC,GAAG;EACxC;EACA,OALkB7B,UAAU,KAAK,CAAC,GAM9B,4BAA4BA,UAAU,GAAG,GACzC,iBAAiB;AACvB","ignoreList":[]}
1
+ {"version":3,"file":"docs.js","names":["outdent","snippets","indentedNewLine","spacesCount","repeat","TYPESCRIPT_OSDK_SNIPPETS","computedVariables","functionInputValuesV1","handleFunctionInputValuesV1","functionInputValuesV2","handleFunctionInputValuesV2","actionParameterSampleValuesV1","handleActionParameterSampleValuesV1","actionParameterSampleValuesV2","handleActionParameterSampleValuesV2","propertyValueV1","handlePropertyValueV1","propertyValueV2","handlePropertyValueV2","propertyValueIncrementedV1","handlePropertyValueIncrementedV1","propertyValueIncrementedV2","handlePropertyValueIncrementedV2","propertiesV1","handlePropertiesV1","propertiesV2","handlePropertiesV2","primaryKeyPropertyV1","handlePrimaryKeyPropertyV1","primaryKeyPropertyV2","handlePrimaryKeyPropertyV2","primaryKeyPropertyValueV2","handlePrimaryKeyPropertyValueV2","linkedPropertiesV1","handleLinkedPropertiesV1","linkedPropertiesV2","handleLinkedPropertiesV2","linkedPrimaryKeyPropertyV1","handleLinkedPrimaryKeyPropertyV1","linkedPrimaryKeyPropertyV2","handleLinkedPrimaryKeyPropertyV2","arrayElementValue","handleArrayElementValue","SdkMajorVersion","rawFunctionInputValues","renderFunctionInputValues","V1","V2","rawActionTypeParameterValues","renderActionParameterValues","rawPropertyValue","renderPropertyValue","rawPropertyValueIncremented","renderArrayElementPropertyValue","propertyValue","majorVersion","Error","renderType","rawProperties","map","prop","apiName","value","rawPrimaryKeyProperty","rawLinkedProperties","rawLinkedPrimaryKeyProperty","type","Object","keys","parameters","length","entries","key","join","param","index","array","last","context","arraySubType","subtype","toString","getDateParameter","daysOffset","getTimestampParameter","primaryKeyValue","primaryKeyType","objectTypeApiName","rendered","name","hasAttachments","keyType","getMapKeyObjectName","valueType","getDisplayName","processObjectApiName","input","tokens","split","result","token","titleCase","toLowerCase","charAt","slice","toUpperCase","objectApiName","lastIndexOf","offsetDate","Date","setDate","getDate","toISOString"],"sources":["docs.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { SdkSnippets } from \"@osdk/docs-spec-core\";\nimport type {\n ActionParameterSampleValuesIR,\n ActionParameterSampleValueTypeIR,\n FunctionSampleParametersIR,\n FunctionSampleValueTypeIR,\n OSDK_SNIPPETS_SPEC,\n PropertySampleIR,\n PropertySampleValueTypeIR,\n} from \"@osdk/docs-spec-sdk\";\nimport { outdent } from \"outdent\";\nimport { snippets } from \"./generatedNoCheck/docsNoComputedVariables.js\";\n\nconst indentedNewLine = (spacesCount: number) => `\\n${\" \".repeat(spacesCount)}`;\n\nexport const TYPESCRIPT_OSDK_SNIPPETS: SdkSnippets<typeof OSDK_SNIPPETS_SPEC> =\n {\n ...snippets,\n computedVariables: {\n functionInputValuesV1: handleFunctionInputValuesV1,\n functionInputValuesV2: handleFunctionInputValuesV2,\n actionParameterSampleValuesV1: handleActionParameterSampleValuesV1,\n actionParameterSampleValuesV2: handleActionParameterSampleValuesV2,\n propertyValueV1: handlePropertyValueV1,\n propertyValueV2: handlePropertyValueV2,\n propertyValueIncrementedV1: handlePropertyValueIncrementedV1,\n propertyValueIncrementedV2: handlePropertyValueIncrementedV2,\n propertiesV1: handlePropertiesV1,\n propertiesV2: handlePropertiesV2,\n primaryKeyPropertyV1: handlePrimaryKeyPropertyV1,\n primaryKeyPropertyV2: handlePrimaryKeyPropertyV2,\n primaryKeyPropertyValueV2: handlePrimaryKeyPropertyValueV2,\n linkedPropertiesV1: handleLinkedPropertiesV1,\n linkedPropertiesV2: handleLinkedPropertiesV2,\n linkedPrimaryKeyPropertyV1: handleLinkedPrimaryKeyPropertyV1,\n linkedPrimaryKeyPropertyV2: handleLinkedPrimaryKeyPropertyV2,\n arrayElementValue: handleArrayElementValue,\n },\n };\n\n// SDK major version enum\nenum SdkMajorVersion {\n V1 = 1,\n V2 = 2,\n}\n\n// Helper functions for properties\nfunction handleFunctionInputValuesV1({\n rawFunctionInputValues,\n}: {\n rawFunctionInputValues?: FunctionSampleParametersIR;\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V1);\n}\n\nfunction handleFunctionInputValuesV2({\n rawFunctionInputValues,\n}: {\n rawFunctionInputValues?: FunctionSampleParametersIR;\n}) {\n return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V2);\n}\n\nfunction handleActionParameterSampleValuesV1({\n rawActionTypeParameterValues,\n}: {\n rawActionTypeParameterValues?: ActionParameterSampleValuesIR;\n}) {\n return renderActionParameterValues(\n rawActionTypeParameterValues,\n SdkMajorVersion.V1,\n );\n}\n\nfunction handleActionParameterSampleValuesV2({\n rawActionTypeParameterValues,\n}: {\n rawActionTypeParameterValues?: ActionParameterSampleValuesIR;\n}) {\n return renderActionParameterValues(\n rawActionTypeParameterValues,\n SdkMajorVersion.V2,\n );\n}\n\nfunction handlePropertyValueV1(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V1);\n}\n\nfunction handlePropertyValueV2(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\n\nfunction handlePropertyValueIncrementedV1({\n rawPropertyValueIncremented,\n}: {\n rawPropertyValueIncremented?: PropertySampleValueTypeIR;\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V1);\n}\n\nfunction handlePropertyValueIncrementedV2({\n rawPropertyValueIncremented,\n}: {\n rawPropertyValueIncremented?: PropertySampleValueTypeIR;\n}) {\n return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V2);\n}\n\nfunction handleArrayElementValue(\n { rawPropertyValue }: { rawPropertyValue?: PropertySampleValueTypeIR },\n) {\n return renderArrayElementPropertyValue(rawPropertyValue, SdkMajorVersion.V2);\n}\n\nfunction renderArrayElementPropertyValue(\n propertyValue: PropertySampleValueTypeIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n\n return renderType(propertyValue, majorVersion, \"arraySubType\");\n}\n\nfunction handlePropertiesV1(\n { rawProperties }: { rawProperties?: PropertySampleIR[] },\n) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1),\n }));\n}\n\nfunction handlePropertiesV2(\n { rawProperties }: { rawProperties?: PropertySampleIR[] },\n) {\n if (rawProperties == null) {\n throw new Error(\"Cannot render with null rawProperties\");\n }\n\n return rawProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2),\n }));\n}\n\nfunction handlePrimaryKeyPropertyV1(\n { rawPrimaryKeyProperty }: { rawPrimaryKeyProperty?: PropertySampleIR },\n) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V1),\n };\n}\n\nfunction handlePrimaryKeyPropertyV2(\n { rawPrimaryKeyProperty }: { rawPrimaryKeyProperty?: PropertySampleIR },\n) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawPrimaryKeyProperty.apiName,\n value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2),\n };\n}\n\nfunction handlePrimaryKeyPropertyValueV2({\n rawPrimaryKeyProperty,\n}: {\n rawPrimaryKeyProperty?: PropertySampleIR;\n}) {\n if (rawPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawPrimaryKeyProperty\");\n }\n\n return renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2);\n}\n\nfunction handleLinkedPropertiesV1(\n { rawLinkedProperties }: { rawLinkedProperties?: PropertySampleIR[] },\n) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V1),\n }));\n}\n\nfunction handleLinkedPropertiesV2(\n { rawLinkedProperties }: { rawLinkedProperties?: PropertySampleIR[] },\n) {\n if (rawLinkedProperties == null) {\n throw new Error(\"Cannot render with null rawLinkedProperties\");\n }\n\n return rawLinkedProperties.map(prop => ({\n apiName: prop.apiName,\n value: renderPropertyValue(prop.value, SdkMajorVersion.V2),\n }));\n}\n\nfunction handleLinkedPrimaryKeyPropertyV1({\n rawLinkedPrimaryKeyProperty,\n}: {\n rawLinkedPrimaryKeyProperty?: {\n apiName: string;\n value: PropertySampleValueTypeIR;\n type: string;\n };\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(\n rawLinkedPrimaryKeyProperty.value,\n SdkMajorVersion.V1,\n ),\n type: rawLinkedPrimaryKeyProperty.type,\n };\n}\n\nfunction handleLinkedPrimaryKeyPropertyV2({\n rawLinkedPrimaryKeyProperty,\n}: {\n rawLinkedPrimaryKeyProperty?: {\n apiName: string;\n value: PropertySampleValueTypeIR;\n type: string;\n };\n}) {\n if (rawLinkedPrimaryKeyProperty == null) {\n throw new Error(\"Cannot render with null rawLinkedPrimaryKeyProperty\");\n }\n\n return {\n apiName: rawLinkedPrimaryKeyProperty.apiName,\n value: renderPropertyValue(\n rawLinkedPrimaryKeyProperty.value,\n SdkMajorVersion.V2,\n ),\n type: rawLinkedPrimaryKeyProperty.type,\n };\n}\n\n// Common function to render function input values for any version\nfunction renderFunctionInputValues(\n rawFunctionInputValues: FunctionSampleParametersIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (rawFunctionInputValues == null) {\n throw new Error(\"Cannot render a null rawFunctionInputValues\");\n }\n if (Object.keys(rawFunctionInputValues.parameters).length === 0) {\n return \"\";\n }\n\n return outdent`\n {\n ${\n Object.entries(rawFunctionInputValues.parameters)\n .map(([key, value]) =>\n `\"${key}\": ${renderType(value, majorVersion, \"functionInput\")}`\n )\n .join(`,${indentedNewLine(4)}`)\n }\n }`;\n}\n\n// Common function to render action parameter values for any version\nfunction renderActionParameterValues(\n rawActionTypeParameterValues: ActionParameterSampleValuesIR | undefined,\n majorVersion: SdkMajorVersion,\n): Array<{ key: string; value: string; last: boolean }> {\n if (rawActionTypeParameterValues == null) {\n throw new Error(\"Cannot render a null rawActionTypeParameterValues\");\n }\n\n return rawActionTypeParameterValues.map((param, index, array) => ({\n key: param.key,\n value: renderType(param.value, majorVersion, \"actionParameter\"),\n last: index === array.length - 1,\n }));\n}\n\n// Function to render property values\nfunction renderPropertyValue(\n propertyValue: PropertySampleValueTypeIR | undefined,\n majorVersion: SdkMajorVersion,\n): string {\n if (propertyValue == null) {\n throw new Error(\"Cannot render a null property value\");\n }\n\n return renderType(propertyValue, majorVersion, \"property\");\n}\n\n// Unified render function for all types\nfunction renderType(\n type:\n | ActionParameterSampleValueTypeIR\n | FunctionSampleValueTypeIR\n | PropertySampleValueTypeIR,\n majorVersion: SdkMajorVersion,\n context: \"property\" | \"functionInput\" | \"actionParameter\" | \"arraySubType\",\n): string {\n if (type == null) {\n throw new Error(\"Cannot render a null type value\");\n }\n\n switch (type.type) {\n case \"array\":\n case \"set\":\n case \"list\":\n const arraySubType = renderType(type.subtype, majorVersion, context);\n return context === \"arraySubType\" ? arraySubType : `[${arraySubType}]`;\n case \"boolean\":\n return type.value ? \"true\" : \"false\";\n case \"byte\":\n case \"integer\":\n case \"long\":\n case \"short\":\n return type.value.toString();\n case \"decimal\":\n case \"double\":\n case \"float\":\n if (context === \"actionParameter\") {\n return `\"${type.value.toString()}\"`;\n }\n return type.value.toString();\n case \"date\":\n return getDateParameter(majorVersion, type.daysOffset);\n case \"timestamp\":\n return getTimestampParameter(majorVersion, type.daysOffset);\n case \"object\":\n const primaryKeyValue = type.primaryKeyType === \"string\"\n ? \"\\\"primaryKeyValue\\\"\"\n : \"primaryKeyValue\";\n if (context === \"actionParameter\") {\n return `${primaryKeyValue} /* or myObjectInstance */`;\n }\n return primaryKeyValue;\n case \"objectSet\":\n return `client(${type.objectTypeApiName}).where({ /* filter conditions */ })`;\n case \"anonymousCustomType\":\n case \"customType\": {\n const entries = Object.entries(type.parameters ?? {});\n if (entries.length > 0) {\n const rendered = entries\n .map(([name, value]) =>\n `\"${name}\": ${renderType(value, majorVersion, context)}`\n )\n .join(`,${indentedNewLine(8)}`);\n return `{${indentedNewLine(8)}${rendered}${indentedNewLine(4)}}`;\n }\n return \"{}\";\n }\n case \"attachment\":\n return type.hasAttachments ? \"attachment\" : \"{}\";\n case \"interface\":\n case \"marking\":\n return \"{}\";\n case \"mediaReference\":\n return context === \"actionParameter\"\n ? \"mediaUpload\"\n : \"mediaReferenceRid\";\n case \"objectType\":\n return `\"${type.objectTypeApiName}\"`;\n case \"map\":\n if (type.keyType.type === \"object\") {\n return `{[${\n getMapKeyObjectName(type.keyType.apiName)\n }.$objectSpecifier]: ${\n renderType(type.valueType, majorVersion, context)\n }}`;\n }\n return `{${\n renderType(\n type.valueType,\n majorVersion,\n context,\n )\n }: ${renderType(type.valueType, majorVersion, context)}}`;\n\n case \"string\":\n case \"unknown\":\n default:\n return `\"${type.value ?? \"value\"}\"`;\n }\n}\n\nfunction getMapKeyObjectName(apiName?: string) {\n if (apiName == null) {\n return \"osdkObject\";\n }\n return `${getDisplayName(processObjectApiName(apiName))}OsdkObject`;\n}\n\nfunction getDisplayName(input: string): string {\n const tokens = input.split(/[_-]|(?<=[a-z])(?=[A-Z])/);\n const result = tokens.map(token => titleCase(token.toLowerCase())).join(\"\");\n return result.charAt(0).toLowerCase() + result.slice(1);\n}\n\nfunction titleCase(token: string) {\n return (token[0] ?? \"\").toUpperCase() + token.slice(1);\n}\n\n// For objects that have namespaces prefixed to their api name, we remove it and only return the last portion\n// As that is what the TS OSDK uses to generate identifiers for objects\nfunction processObjectApiName(objectApiName: string) {\n const last = objectApiName.lastIndexOf(\".\");\n if (last === -1) {\n return objectApiName;\n }\n return objectApiName.slice(last + 1);\n}\n\n// Generic helper functions for date and timestamp\nfunction getDateParameter(\n majorVersion: SdkMajorVersion,\n daysOffset = 0,\n): string {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString().split(\"T\")[0]}\"`;\n }\n return hasOffset\n ? `LocalDate.now().plusDays(${daysOffset})`\n : \"LocalDate.now()\";\n}\n\nfunction getTimestampParameter(\n majorVersion: SdkMajorVersion,\n daysOffset = 0,\n): string {\n const offsetDate = new Date();\n offsetDate.setDate(offsetDate.getDate() + daysOffset);\n const hasOffset = daysOffset !== 0;\n\n if (majorVersion >= SdkMajorVersion.V2) {\n return `\"${offsetDate.toISOString()}\"`;\n }\n return hasOffset\n ? `Timestamp.now().plusDays(${daysOffset})`\n : \"Timestamp.now()\";\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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 "version": "0.8.1-main-aa78c78b2364b0ff1fa351531cab0e85efdcc1c5",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",