@osdk/typescript-sdk-docs 0.4.0-beta.2 → 0.4.0-beta.4

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.
@@ -570,6 +570,12 @@ var snippets = {
570
570
  }],
571
571
  "derivedPropertyDatetimeExpression": [{
572
572
  "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 "newPropertyName": (baseObjectSet) =>\n {{^isExtractPart}} \n baseObjectSet.pivotTo("{{linkName}}")\n .selectProperty("{{property}}")\n .{{operation}}(baseObjectSet.pivotTo("{{linkName}}").selectProperty("{{property}}"))\n {{/isExtractPart}}\n {{#isExtractPart}}\n baseObjectSet.pivotTo("{{linkName}}")\n .selectProperty("{{property}}").{{operation}}("DAY")\n {{/isExtractPart}}\n });'
573
+ }],
574
+ "nearestNeighborsTextQuery": [{
575
+ "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();'
576
+ }],
577
+ "nearestNeighborsVectorQuery": [{
578
+ "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();'
573
579
  }]
574
580
  }
575
581
  }
@@ -601,11 +607,11 @@ var TYPESCRIPT_OSDK_SNIPPETS = {
601
607
  arrayElementValue: handleArrayElementValue
602
608
  }
603
609
  };
604
- var SdkMajorVersion = /* @__PURE__ */ function(SdkMajorVersion2) {
610
+ var SdkMajorVersion = /* @__PURE__ */ (function(SdkMajorVersion2) {
605
611
  SdkMajorVersion2[SdkMajorVersion2["V1"] = 1] = "V1";
606
612
  SdkMajorVersion2[SdkMajorVersion2["V2"] = 2] = "V2";
607
613
  return SdkMajorVersion2;
608
- }(SdkMajorVersion || {});
614
+ })(SdkMajorVersion || {});
609
615
  function handleFunctionInputValuesV1({
610
616
  rawFunctionInputValues
611
617
  }) {