@osdk/typescript-sdk-docs 0.0.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/generatedNoCheck/docsNoComputedVariables.ts","../../src/docs.ts"],"names":["SdkMajorVersion","outdent"],"mappings":";;;;;;;AAGO,IAAM,QAAW,GAAA;AAAA,EACtB,MAAQ,EAAA,KAAA;AAAA,EACR,UAAY,EAAA;AAAA,IACV,OAAS,EAAA;AAAA,MACP,UAAY,EAAA;AAAA,QACV,yBAAyB,CAAC;AAAA,UACxB,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,uBAAuB,CAAC;AAAA,UACtB,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,qBAAqB,CAAC;AAAA,UACpB,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,sBAAsB,CAAC;AAAA,UACrB,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,6BAA6B,CAAC;AAAA,UAC5B,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,wBAAwB,CAAC;AAAA,UACvB,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,2BAA2B,CAAC;AAAA,UAC1B,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,6BAA6B,CAAC;AAAA,UAC5B,UAAY,EAAA,yXAAA;AAAA,UACZ,mBAAA,EAAqB,CAAC,4BAA4B;AAAA,SACnD,CAAA;AAAA,QACD,8BAA8B,CAAC;AAAA,UAC7B,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,uBAAuB,CAAC;AAAA,UACtB,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,4BAA4B,CAAC;AAAA,UAC3B,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,0CAA0C,CAAC;AAAA,UACzC,UAAY,EAAA;AAAA,SACb,CAAA;AAAA,QACD,oCAAoC,CAAC;AAAA,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cesContent":["// 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}}}/ontology/objects\\\";\\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 console.error(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 console.error(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 { isOk, type Osdk, type Result } from \\\"@osdk/client\\\";\\n\\nconst result: Result<Osdk.Instance<{{objectType}}>> = await client({{objectType}}).fetchOneWithErrors(\\\"<primaryKey>\\\");\\nif (isOk(result)) {\\n const object: Osdk.Instance<{{objectType}}> = result.value;\\n} else {\\n console.error(result.error.message);\\n}\\n// You can also fetch a single object without the Result wrapper\\ntry {\\n const object: Osdk.Instance<{{objectType}}> = await client({{objectType}}).fetchOne(\\\"<primaryKey>\\\");\\n}\\ncatch(e) {\\n console.error(e);\\n}\"\n }],\n \"loadObjectPageGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { isOk, type Osdk, type PageResult, type Result } from \\\"@osdk/client\\\";\\n\\nconst firstPage: Result<PageResult<Osdk.Instance<{{objectType}}>>>\\n = await client({{objectType}}).fetchPageWithErrors({ $pageSize: 30 });\\n\\nif (isOk(firstPage)) {\\n const secondPage: Result<PageResult<Osdk.Instance<{{objectType}}, never, \\\"{{titleProperty}}\\\">>>\\n // You can also down select properties to only get the properties you need from the object\\n = await client({{objectType}}).fetchPageWithErrors({ $select: [\\\"{{titleProperty}}\\\"], $pageSize: 30, $nextPageToken: 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 // If you want to get rids, you need to add a flag to specifically request for it. Note how the return type now includes $rid rather than never\\nconst secondPageWithRids: Result<PageResult<Osdk.Instance<{{objectType}}, \\\"$rid\\\", \\\"{{titleProperty}}\\\">>>\\n = await client({{objectType}}).fetchPageWithErrors({ $select: [\\\"{{titleProperty}}\\\"], $includeRid:true, $pageSize: 30, $nextPageToken: firstPage.value.nextPageToken });\\n\\n// To fetch a page without a result wrapper, use fetchPage with a try/catch instead\\ntry {\\n const firstPage: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30 });\\n const secondPage: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30, $nextPageToken: firstPage.nextPageToken });\\n const objects = [...firstPage.data, ...secondPage.data];\\n const object = objects[0];\\n}\\ncatch (e) {\\n console.error(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 { isOk, type Osdk, type PageResult, type Result } from \\\"@osdk/client\\\";\\n\\nconst page: Result<PageResult<Osdk.Instance<{{objectType}}>>> = await client({{objectType}})\\n .fetchPageWithErrors({\\n $orderBy: {\\\"{{titleProperty}}\\\": \\\"asc\\\"},\\n $pageSize: 30\\n });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\n}\"\n }],\n \"searchObjectsGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { isOk, type Osdk, type PageResult, type Result } from \\\"@osdk/client\\\";\\n\\nconst page: Result<PageResult<Osdk.Instance<{{objectType}}>>> = await client({{objectType}})\\n .where({\\n {{titleProperty}}: {$isNull: true}\\n })\\n .fetchPageWithErrors({\\n $pageSize: 30\\n });\\n\\nif (isOk(page)) {\\n const objects = page.value.data;\\n const object = objects[0];\\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, Result } from \\\"@osdk/client\\\";\\n\\nconst response: Result<Osdk.Instance<{{objectType}}>> = await client({{objectType}}).fetchOneWithErrors(\\\"<primaryKey>\\\");\\n\\n// You can also fetch a single object without the Result wrapper\\n\\nconst responseNoErrorWrapper: Osdk.Instance<{{objectType}}> = await client({{objectType}}).fetchOne(\\\"<primaryKey>\\\");\\n\\n\"\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, Result } from \\\"@osdk/client\\\";\\n\\nconst response: Result<PageResult<Osdk.Instance<{{objectType}}>>>\\n = await client({{objectType}}).fetchPageWithErrors({ $pageSize: 30 });\\n\\n// To fetch a page without a result wrapper, use fetchPage instead\\nconst responseNoErrorWrapper: PageResult<Osdk.Instance<{{objectType}}>>\\n = await client({{objectType}}).fetchPage({ $pageSize: 30 });\\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\\nconst objects: Osdk.Instance<{{objectType}}>[]= [];\\n\\nfor await(const obj of client({{objectType}}).asyncIter()) {\\n objects.push(obj);\\n}\\nconst object = objects[0];\"\n }],\n \"loadLinkedObjectReference\": [{\n \"template\": \"import { {{sourceObjectType}}, {{linkedObjectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Osdk, type Result } from \\\"@osdk/client\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: Osdk.Instance<{{sourceObjectType}}>, linkedObjectPrimaryKey: {{linkedPrimaryKeyPropertyV2.type}}): Result<Osdk.Instance<{{linkedObjectType}}>>\\n{\\n return source.$link.{{linkApiName}}.fetchOneWithErrors(linkedObjectPrimaryKey);\\n}\\n\\n// You can also get a linked object without the result wrapper\\nfunction getLinkedNoWrapper{{linkedObjectType}}(source: Osdk.Instance<{{sourceObjectType}}>, linkedObjectPrimaryKey: {{linkedPrimaryKeyPropertyV2.type}}): Osdk.Instance<{{linkedObjectType}}> {\\n return source.$link.{{linkApiName}}.fetchOne(linkedObjectPrimaryKey);\\n}\",\n \"computedVariables\": [\"linkedPrimaryKeyPropertyV2\"]\n }],\n \"loadLinkedObjectsReference\": [{\n \"template\": \"import { {{linkedObjectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getLinked{{linkedObjectType}}(source: Osdk.Instance<{{sourceObjectType}}>) {\\n {{#isLinkManySided}}\\n return source.$link.{{linkApiName}}.fetchPageWithErrors({ $pageSize: 30 });\\n {{/isLinkManySided}}\\n {{^isLinkManySided}}\\n return source.$link.{{linkApiName}}.fetchOneWithErrors();\\n {{/isLinkManySided}}\\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: { name: \\\"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 .aggregation({\\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\": \"import { {{actionApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentImports}}import type { AttachmentUpload } from \\\"@osdk/api\\\";{{/hasAttachmentImports}}{{#hasMediaParameter}}import type { MediaReference } from \\\"@osdk/api\\\";{{/hasMediaParameter}}\\n\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: AttachmentUpload = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\n{{#hasMediaParameter}}\\nconst mediaReference: MediaReference = uploadMedia();\\n{{/hasMediaParameter}}\\nconst result = await client({{actionApiName}}).applyAction(\\n{{^hasParameters}}{},\\n{{/hasParameters}}{{#hasParameters}}\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV2}}\\n },{{/hasParameters}}\\n {\\n $returnEdits: true,\\n }\\n);\\n\\nif (result.type === \\\"edits\\\") {\\n // for new objects and updated objects edits will contain the primary key of the object\\n const updatedObject = result.editedObjectTypes[0];\\n console.log(\\\"Updated object\\\", updatedObject);\\n}\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"batchApplyAction\": [{\n \"template\": \"import { {{actionApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentImports}}\\nimport type { AttachmentUpload } from \\\"@osdk/api\\\";\\n{{/hasAttachmentImports}}{{#hasMediaParameter}}import type { MediaReference } from \\\"@osdk/api\\\";{{/hasMediaParameter}}\\n\\n\\n{{#hasAttachmentUpload}}\\nconst attachment: AttachmentUpload = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\n{{#hasMediaParameter}}\\nconst mediaReference: MediaReference = uploadMedia();\\n{{/hasMediaParameter}}\\nconst result = await client({{actionApiName}}).batchApplyAction(\\n [\\n {{^hasParameters}}{},{}{{/hasParameters}}{{#hasParameters}}\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV2}}\\n },\\n {\\n {{#actionParameterSampleValuesV2}}\\n \\\"{{key}}\\\": {{{value}}}{{^last}}, {{/last}}\\n {{/actionParameterSampleValuesV2}}\\n },{{/hasParameters}}\\n ],\\n {\\n $returnEdits: false,\\n }\\n);\",\n \"computedVariables\": [\"actionParameterSampleValuesV2\"]\n }],\n \"uploadAttachment\": [{\n \"template\": \"// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { type Result, isOk } from \\\"@osdk/client\\\";\\nimport type { AttachmentUpload } from \\\"@osdk/api\\\";\\n\\n// To upload an attachment with 2.0, it has to be linked to an action call\\n\\nasync function uploadMyFile() {\\n const file = await fetch(\\\"file.json\\\");\\n const blob = await file.blob();\\n return createAttachmentUpload(blob, \\\"myFile\\\");\\n}\\n\\nconst myAttachmentUpload: AttachmentUpload = await uploadMyFile();\\n\\nconst actionResult = client(attachmentUploadingAction).applyAction({ attachment: myAttachmentUpload });\\n\"\n }],\n \"castInterfaceToObjectReference\": [{\n \"template\": \"import { {{objectTypeApiName}}, {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { isOk, type Osdk } from \\\"@osdk/client\\\";\\n\\nconst page = await client({{interfaceApiName}}).fetchPageWithErrors();\\n\\nif (isOk(page)) {\\n const interfaces = page.value.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}\"\n }],\n \"executeFunction\": [{\n \"template\": \"{{#needsImports}}\\nimport { {{funcApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\n{{#hasAttachmentImports}}import type { AttachmentUpload } from \\\"@osdk/api\\\";{{/hasAttachmentImports}}\\n\\n{{/needsImports}}\\n{{#hasAttachmentUpload}}\\nconst attachment: AttachmentUpload = uploadMyFile();\\n{{/hasAttachmentUpload}}\\n{{#attachmentProperty}}\\nconst attachment: Attachment = {{{attachmentProperty}}};\\n{{/attachmentProperty}}\\nconst result = await client({{funcApiName}}).executeFunction({{{functionInputValuesV2}}});\",\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 }],\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: { {{primaryKeyPropertyV2.apiName}}: { $isNull: true }}});\",\n \"computedVariables\": [\"primaryKeyPropertyV2\"]\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 { {{primaryKeyPropertyV2.apiName}}: { $eq: \\\"<primaryKey>\\\" }}\\n ]});\",\n \"computedVariables\": [\"primaryKeyPropertyV2\"]\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 { {{primaryKeyPropertyV2.apiName}}: { $eq: \\\"<primaryKey>\\\" }}\\n ]});\",\n \"computedVariables\": [\"primaryKeyPropertyV2\"]\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, type Result } from \\\"@osdk/client\\\";\\n\\nconst response: Result<PageResult<Osdk<{{interfaceApiName}}>>>\\n = await client({{interfaceApiName}}).fetchPageWithErrors({ $pageSize: 30 });\\n\\n// To fetch a page without a result wrapper, use fetchPage instead\\nconst responseNoErrorWrapper: 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 { isOk, type Osdk, type PageResult, type Result } from \\\"@osdk/client\\\";\\n\\nconst page: Result<PageResult<Osdk<{{interfaceApiName}}>>> = await client({{interfaceApiName}})\\n .fetchPageWithErrors({\\n $orderBy: {\\\"someProperty\\\": \\\"asc\\\"},\\n $pageSize: 30\\n });\\n\\nif (isOk(page)) {\\n const interfaces = page.value.data;\\n const interface1 = interfaces[0];\\n}\"\n }],\n \"searchInterfacesReference\": [{\n \"template\": \"import { {{interfaceApiName}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { isOk, type Osdk, type PageResult, type Result } from \\\"@osdk/client\\\";\\n\\nconst page: Result<PageResult<Osdk<{{interfaceApiName}}>>> = await client({{interfaceApiName}})\\n .where({\\n $and:[\\n { $not: { someProperty: { $isNull: true }}},\\n { someProperty: { $eq: \\\"foo\\\" }}\\n ]\\n })\\n .fetchPageWithErrors({\\n $pageSize: 30\\n });\\n\\nif (isOk(page)) {\\n const interfaces = page.value.data;\\n const interface1 = interfaces[0];\\n}\"\n }],\n \"loadTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getAllPoints();\\n}\"\n }],\n \"loadRelativeTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getAllPoints({\\n $before: 1,\\n $unit: \\\"{{timeUnit}}\\\",\\n })\\n}\"\n }],\n \"loadAbsoluteTimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAbsoluteTimeSeriesPoints(obj: {{objectType}}) {\\n return 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 { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getFirstTimeSeriesPoint(obj: {{objectType}}) {\\n return obj.{{property}}.getFirstPoint();\\n}\"\n }],\n \"loadTimeSeriesLastPointSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getLastTimeSeriesPoint(obj: {{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(\\\"fooLink\\\").pivotTo(\\\"barLink\\\").selectProperty(\\\"foo\\\")\\n })\\n .where({\\n \\\"newPropertyName\\\": { $gt: 10 }\\n })\\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(\\\"{{linkName}}\\\").aggregate(\\\"{{property}}:approximateDistinct\\\")\\n })\"\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(\\\"{{linkName}}\\\").aggregate(\\\"{{property}}:exactDistinct\\\")\\n })\"\n }],\n \"derivedPropertyCollectToListAggregation\": [{\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(\\\"{{linkName}}\\\").aggregate(\\\"{{property}}:collectToList\\\", 75)\\n })\"\n }],\n \"derivedPropertyCollectToSetAggregation\": [{\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(\\\"{{linkName}}\\\").aggregate(\\\"{{property}}:collectToSet\\\", 75)\\n })\"\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(\\\"{{linkName}}\\\").aggregate(\\\"$count\\\")\\n })\"\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(\\\"{{linkName}}\\\").selectProperty(\\\"{{property}}\\\")\\n })\"\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(\\\"{{linkName}}\\\").aggregate(\\\"{{property}}:approximatePercentile\\\", 0.5)\\n })\"\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(\\\"{{linkName}}\\\").aggregate(\\\"{{property}}:{{operation}}\\\")\\n })\"\n }],\n \"objectSetOperationsGuide\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\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: {{objectType}}.ObjectSet = objectSetA\\n .intersect(objectSetB)\\n .subtract(objectSetC);\"\n }],\n \"objectSetOperationsUnion\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\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: {{objectType}}.ObjectSet = objectSetA\\n .union(objectSetB)\\n .union(objectSetC); // alternatively: objectSetA.union(objectSetB, objectSetC)\"\n }],\n \"objectSetOperationsSubtract\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\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: {{objectType}}.ObjectSet = objectSetA\\n .subtract(objectSetB)\\n .subtract(objectSetC); // alternatively: objectSetA.subtract(objectSetB, objectSetC)\"\n }],\n \"objectSetOperationsIntersect\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}/ontology/objects\\\";\\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: {{objectType}}.ObjectSet = objectSetA\\n .intersect(objectSetB)\\n .intersect(objectSetC); // alternatively: objectSetA.intersect(objectSetB, objectSetC)\"\n }]\n }\n },\n \"2.1.0\": {\n \"snippets\": {\n \"loadGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAllTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getAllValues();\\n}\"\n }],\n \"loadRelativeGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\n// Only supports ranges in the past\\nfunction getRelativeTimeSeriesPoints(obj: {{objectType}}) {\\n return obj.{{property}}.getAllValues({\\n $before: 1,\\n $unit: \\\"{{timeUnit}}\\\",\\n })\\n}\"\n }],\n \"loadAbsoluteGeotimeSeriesPointsSnippet\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getAbsoluteTimeSeriesPoints(obj: {{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 { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n\\nfunction getLastTimeSeriesPoint(obj: {{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\\n// A map of primary keys to objects loaded through the SDK\\nconst objects: { [key: string]: {{objectOrInterfaceApiName}}.OsdkInstance } = ...\\n\\nconst subscription = client({{objectOrInterfaceApiName}}).subscribe( {\\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 const currentObject = objects[update.object.$primaryKey];\\n if (currentObject !== undefined) {\\n currentObject[\\\"<propertyName>\\\"] = update.object[\\\"<propertyName>\\\"] ?? currentObject[\\\"<propertyName>\\\"];\\n }\\n }\\n else if (update.state === \\\"DELETED\\\") {\\n // The object has been deleted\\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 console.error(err);\\n },\\n onOutOfDate() {\\n // We could not keep track of all changes. Please reload the objects in your set.\\n },\\n },\\n { properties: [ {{#propertyNames}}\\\"{{.}}\\\", {{/propertyNames}}\\b\\b]}\\n );\\n\\nsubscription.unsubscribe();\"\n }],\n \"uploadMedia\": [{\n \"template\": \"import { __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference } from \\\"@osdk/api/unstable\\\";\\nimport { {{objectType}} } from \\\"{{{packageName}}}\\\"\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport { Result, isOk } from \\\"@osdk/client\\\";\\nimport type { MediaReference } from \\\"@osdk/api\\\";\\n\\n// To upload media with 2.x, it has to be linked to an Action call\\nasync function uploadMedia() {\\n const file = await fetch(\\\"file.json\\\");\\n const data = await file.blob();\\n\\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: \\\"MediaPropertyApi\\\",\\n });\\n}\\n\\nconst mediaReference: MediaReference = await uploadMedia();\\nconst actionResult = client(mediaUploadingAction).applyAction({ media_parameter: mediaReference });\"\n }],\n \"readMedia\": [{\n \"template\": \"import { {{objectType}} } from \\\"{{{packageName}}}\\\";\\n// Edit this import if your client location differs\\nimport { client } from \\\"./client\\\";\\nimport type { MediaMetadata, MediaReference } from \\\"@osdk/api\\\";\\nimport { Osdk, Result } from \\\"@osdk/client\\\";\\n\\nconst result = await client({{objectType}}).fetchOne(\\\"<primaryKey>\\\");\\n\\n// Fetch metadata of a media property\\nconst mediaMetadata = await result.{{property}}?.fetchMetadata();\\n\\n// Fetch contents of a media property\\nconst response = await result.{{property}}?.fetchContents();\\n\\nif (response.ok) {\\n const data = await response.blob();\\n ...\\n}\"\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 linkedPropertiesV1: handleLinkedPropertiesV1,\n linkedPropertiesV2: handleLinkedPropertiesV2,\n linkedPrimaryKeyPropertyV1: handleLinkedPrimaryKeyPropertyV1,\n linkedPrimaryKeyPropertyV2: handleLinkedPrimaryKeyPropertyV2\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 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 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 return `[${renderType(type.subtype, majorVersion, context)}]`;\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 majorVersion >= SdkMajorVersion.V2 ? `{ $primaryKey: ${primaryKeyValue}, /* other properties */ }` : `{ __primaryKey: ${primaryKeyValue}, /* other properties */ }`;\n }\n return primaryKeyValue;\n case \"anonymousCustomType\":\n case \"customType\":\n return \"{}\";\n case \"attachment\":\n return type.hasAttachments ? \"attachment\" : \"{}\";\n case \"interface\":\n case \"marking\":\n return \"{}\";\n case \"mediaReference\":\n return context === \"actionParameter\" ? \"mediaReference\" : \"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}"]}
@@ -0,0 +1,6 @@
1
+ import { DocsSnippets } from '@osdk/docs-spec-core';
2
+ import { OSDK_SNIPPETS_SPEC } from '@osdk/docs-spec-sdk';
3
+
4
+ declare const TYPESCRIPT_OSDK_SNIPPETS: DocsSnippets<typeof OSDK_SNIPPETS_SPEC>;
5
+
6
+ export { TYPESCRIPT_OSDK_SNIPPETS };
@@ -0,0 +1,312 @@
1
+ /*
2
+ * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { outdent } from "outdent";
18
+ import { snippets } from "./generatedNoCheck/docsNoComputedVariables.js";
19
+ const indentedNewLine = spacesCount => `\n${" ".repeat(spacesCount)}`;
20
+ export const TYPESCRIPT_OSDK_SNIPPETS = {
21
+ ...snippets,
22
+ computedVariables: {
23
+ functionInputValuesV1: handleFunctionInputValuesV1,
24
+ functionInputValuesV2: handleFunctionInputValuesV2,
25
+ actionParameterSampleValuesV1: handleActionParameterSampleValuesV1,
26
+ actionParameterSampleValuesV2: handleActionParameterSampleValuesV2,
27
+ propertyValueV1: handlePropertyValueV1,
28
+ propertyValueV2: handlePropertyValueV2,
29
+ propertyValueIncrementedV1: handlePropertyValueIncrementedV1,
30
+ propertyValueIncrementedV2: handlePropertyValueIncrementedV2,
31
+ propertiesV1: handlePropertiesV1,
32
+ propertiesV2: handlePropertiesV2,
33
+ primaryKeyPropertyV1: handlePrimaryKeyPropertyV1,
34
+ primaryKeyPropertyV2: handlePrimaryKeyPropertyV2,
35
+ linkedPropertiesV1: handleLinkedPropertiesV1,
36
+ linkedPropertiesV2: handleLinkedPropertiesV2,
37
+ linkedPrimaryKeyPropertyV1: handleLinkedPrimaryKeyPropertyV1,
38
+ linkedPrimaryKeyPropertyV2: handleLinkedPrimaryKeyPropertyV2
39
+ }
40
+ };
41
+
42
+ // SDK major version enum
43
+ var SdkMajorVersion = /*#__PURE__*/function (SdkMajorVersion) {
44
+ SdkMajorVersion[SdkMajorVersion["V1"] = 1] = "V1";
45
+ SdkMajorVersion[SdkMajorVersion["V2"] = 2] = "V2";
46
+ return SdkMajorVersion;
47
+ }(SdkMajorVersion || {}); // Helper functions for properties
48
+ function handleFunctionInputValuesV1({
49
+ rawFunctionInputValues
50
+ }) {
51
+ return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V1);
52
+ }
53
+ function handleFunctionInputValuesV2({
54
+ rawFunctionInputValues
55
+ }) {
56
+ return renderFunctionInputValues(rawFunctionInputValues, SdkMajorVersion.V2);
57
+ }
58
+ function handleActionParameterSampleValuesV1({
59
+ rawActionTypeParameterValues
60
+ }) {
61
+ return renderActionParameterValues(rawActionTypeParameterValues, SdkMajorVersion.V1);
62
+ }
63
+ function handleActionParameterSampleValuesV2({
64
+ rawActionTypeParameterValues
65
+ }) {
66
+ return renderActionParameterValues(rawActionTypeParameterValues, SdkMajorVersion.V2);
67
+ }
68
+ function handlePropertyValueV1({
69
+ rawPropertyValue
70
+ }) {
71
+ return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V1);
72
+ }
73
+ function handlePropertyValueV2({
74
+ rawPropertyValue
75
+ }) {
76
+ return renderPropertyValue(rawPropertyValue, SdkMajorVersion.V2);
77
+ }
78
+ function handlePropertyValueIncrementedV1({
79
+ rawPropertyValueIncremented
80
+ }) {
81
+ return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V1);
82
+ }
83
+ function handlePropertyValueIncrementedV2({
84
+ rawPropertyValueIncremented
85
+ }) {
86
+ return renderPropertyValue(rawPropertyValueIncremented, SdkMajorVersion.V2);
87
+ }
88
+ function handlePropertiesV1({
89
+ rawProperties
90
+ }) {
91
+ if (rawProperties == null) {
92
+ throw new Error("Cannot render with null rawProperties");
93
+ }
94
+ return rawProperties.map(prop => ({
95
+ apiName: prop.apiName,
96
+ value: renderPropertyValue(prop.value, SdkMajorVersion.V1)
97
+ }));
98
+ }
99
+ function handlePropertiesV2({
100
+ rawProperties
101
+ }) {
102
+ if (rawProperties == null) {
103
+ throw new Error("Cannot render with null rawProperties");
104
+ }
105
+ return rawProperties.map(prop => ({
106
+ apiName: prop.apiName,
107
+ value: renderPropertyValue(prop.value, SdkMajorVersion.V2)
108
+ }));
109
+ }
110
+ function handlePrimaryKeyPropertyV1({
111
+ rawPrimaryKeyProperty
112
+ }) {
113
+ if (rawPrimaryKeyProperty == null) {
114
+ throw new Error("Cannot render with null rawPrimaryKeyProperty");
115
+ }
116
+ return {
117
+ apiName: rawPrimaryKeyProperty.apiName,
118
+ value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V1)
119
+ };
120
+ }
121
+ function handlePrimaryKeyPropertyV2({
122
+ rawPrimaryKeyProperty
123
+ }) {
124
+ if (rawPrimaryKeyProperty == null) {
125
+ throw new Error("Cannot render with null rawPrimaryKeyProperty");
126
+ }
127
+ return {
128
+ apiName: rawPrimaryKeyProperty.apiName,
129
+ value: renderPropertyValue(rawPrimaryKeyProperty.value, SdkMajorVersion.V2)
130
+ };
131
+ }
132
+ function handleLinkedPropertiesV1({
133
+ rawLinkedProperties
134
+ }) {
135
+ if (rawLinkedProperties == null) {
136
+ throw new Error("Cannot render with null rawLinkedProperties");
137
+ }
138
+ return rawLinkedProperties.map(prop => ({
139
+ apiName: prop.apiName,
140
+ value: renderPropertyValue(prop.value, SdkMajorVersion.V1)
141
+ }));
142
+ }
143
+ function handleLinkedPropertiesV2({
144
+ rawLinkedProperties
145
+ }) {
146
+ if (rawLinkedProperties == null) {
147
+ throw new Error("Cannot render with null rawLinkedProperties");
148
+ }
149
+ return rawLinkedProperties.map(prop => ({
150
+ apiName: prop.apiName,
151
+ value: renderPropertyValue(prop.value, SdkMajorVersion.V2)
152
+ }));
153
+ }
154
+ function handleLinkedPrimaryKeyPropertyV1({
155
+ rawLinkedPrimaryKeyProperty
156
+ }) {
157
+ if (rawLinkedPrimaryKeyProperty == null) {
158
+ throw new Error("Cannot render with null rawLinkedPrimaryKeyProperty");
159
+ }
160
+ return {
161
+ apiName: rawLinkedPrimaryKeyProperty.apiName,
162
+ value: renderPropertyValue(rawLinkedPrimaryKeyProperty.value, SdkMajorVersion.V1),
163
+ type: rawLinkedPrimaryKeyProperty.type
164
+ };
165
+ }
166
+ function handleLinkedPrimaryKeyPropertyV2({
167
+ rawLinkedPrimaryKeyProperty
168
+ }) {
169
+ if (rawLinkedPrimaryKeyProperty == null) {
170
+ throw new Error("Cannot render with null rawLinkedPrimaryKeyProperty");
171
+ }
172
+ return {
173
+ apiName: rawLinkedPrimaryKeyProperty.apiName,
174
+ value: renderPropertyValue(rawLinkedPrimaryKeyProperty.value, SdkMajorVersion.V2),
175
+ type: rawLinkedPrimaryKeyProperty.type
176
+ };
177
+ }
178
+
179
+ // Common function to render function input values for any version
180
+ function renderFunctionInputValues(rawFunctionInputValues, majorVersion) {
181
+ if (rawFunctionInputValues == null) {
182
+ throw new Error("Cannot render a null rawFunctionInputValues");
183
+ }
184
+ if (Object.keys(rawFunctionInputValues.parameters).length === 0) {
185
+ return "";
186
+ }
187
+ return outdent`
188
+ {
189
+ ${Object.entries(rawFunctionInputValues.parameters).map(([key, value]) => `"${key}": ${renderType(value, majorVersion, "functionInput")}`).join(`,${indentedNewLine(4)}`)}
190
+ }`;
191
+ }
192
+
193
+ // Common function to render action parameter values for any version
194
+ function renderActionParameterValues(rawActionTypeParameterValues, majorVersion) {
195
+ if (rawActionTypeParameterValues == null) {
196
+ throw new Error("Cannot render a null rawActionTypeParameterValues");
197
+ }
198
+ return rawActionTypeParameterValues.map((param, index, array) => ({
199
+ key: param.key,
200
+ value: renderType(param.value, majorVersion, "actionParameter"),
201
+ last: index === array.length - 1
202
+ }));
203
+ }
204
+
205
+ // Function to render property values
206
+ function renderPropertyValue(propertyValue, majorVersion) {
207
+ if (propertyValue == null) {
208
+ throw new Error("Cannot render a null property value");
209
+ }
210
+ return renderType(propertyValue, majorVersion, "property");
211
+ }
212
+
213
+ // Unified render function for all types
214
+ function renderType(type, majorVersion, context) {
215
+ if (type == null) {
216
+ throw new Error("Cannot render a null type value");
217
+ }
218
+ switch (type.type) {
219
+ case "array":
220
+ case "set":
221
+ case "list":
222
+ return `[${renderType(type.subtype, majorVersion, context)}]`;
223
+ case "boolean":
224
+ return type.value ? "true" : "false";
225
+ case "byte":
226
+ case "integer":
227
+ case "long":
228
+ case "short":
229
+ return type.value.toString();
230
+ case "decimal":
231
+ case "double":
232
+ case "float":
233
+ if (context === "actionParameter") {
234
+ return `"${type.value.toString()}"`;
235
+ }
236
+ return type.value.toString();
237
+ case "date":
238
+ return getDateParameter(majorVersion, type.daysOffset);
239
+ case "timestamp":
240
+ return getTimestampParameter(majorVersion, type.daysOffset);
241
+ case "object":
242
+ const primaryKeyValue = type.primaryKeyType === "string" ? "\"primaryKeyValue\"" : "primaryKeyValue";
243
+ if (context === "actionParameter") {
244
+ return majorVersion >= SdkMajorVersion.V2 ? `{ $primaryKey: ${primaryKeyValue}, /* other properties */ }` : `{ __primaryKey: ${primaryKeyValue}, /* other properties */ }`;
245
+ }
246
+ return primaryKeyValue;
247
+ case "anonymousCustomType":
248
+ case "customType":
249
+ return "{}";
250
+ case "attachment":
251
+ return type.hasAttachments ? "attachment" : "{}";
252
+ case "interface":
253
+ case "marking":
254
+ return "{}";
255
+ case "mediaReference":
256
+ return context === "actionParameter" ? "mediaReference" : "mediaReferenceRid";
257
+ case "objectType":
258
+ return `"${type.objectTypeApiName}"`;
259
+ case "map":
260
+ if (type.keyType.type === "object") {
261
+ return `{[${getMapKeyObjectName(type.keyType.apiName)}.$objectSpecifier]: ${renderType(type.valueType, majorVersion, context)}}`;
262
+ }
263
+ return `{${renderType(type.valueType, majorVersion, context)}: ${renderType(type.valueType, majorVersion, context)}}`;
264
+ case "string":
265
+ case "unknown":
266
+ default:
267
+ return `"${type.value ?? "value"}"`;
268
+ }
269
+ }
270
+ function getMapKeyObjectName(apiName) {
271
+ if (apiName == null) {
272
+ return "osdkObject";
273
+ }
274
+ return `${getDisplayName(processObjectApiName(apiName))}OsdkObject`;
275
+ }
276
+ function getDisplayName(input) {
277
+ const tokens = input.split(/[_-]|(?<=[a-z])(?=[A-Z])/);
278
+ const result = tokens.map(token => titleCase(token.toLowerCase())).join("");
279
+ return result.charAt(0).toLowerCase() + result.slice(1);
280
+ }
281
+ function titleCase(token) {
282
+ return (token[0] ?? "").toUpperCase() + token.slice(1);
283
+ }
284
+
285
+ // For objects that have namespaces prefixed to their api name, we remove it and only return the last portion
286
+ // As that is what the TS OSDK uses to generate identifiers for objects
287
+ function processObjectApiName(objectApiName) {
288
+ const last = objectApiName.lastIndexOf(".");
289
+ if (last === -1) {
290
+ return objectApiName;
291
+ }
292
+ return objectApiName.slice(last + 1);
293
+ }
294
+
295
+ // Generic helper functions for date and timestamp
296
+ function getDateParameter(majorVersion, daysOffset = 0) {
297
+ const offsetDate = new Date();
298
+ offsetDate.setDate(offsetDate.getDate() + daysOffset);
299
+ if (majorVersion >= SdkMajorVersion.V2) {
300
+ return `"${offsetDate.toISOString().split("T")[0]}"`;
301
+ }
302
+ return daysOffset !== 0 ? `LocalDate.now().plusDays(${daysOffset})` : "LocalDate.now()";
303
+ }
304
+ function getTimestampParameter(majorVersion, daysOffset = 0) {
305
+ const offsetDate = new Date();
306
+ offsetDate.setDate(offsetDate.getDate() + daysOffset);
307
+ if (majorVersion >= SdkMajorVersion.V2) {
308
+ return `"${offsetDate.toISOString()}"`;
309
+ }
310
+ return daysOffset !== 0 ? `Timestamp.now().plusDays(${daysOffset})` : "Timestamp.now()";
311
+ }
312
+ //# sourceMappingURL=docs.js.map