@osdk/faux 0.4.0-beta.4 → 0.4.0-beta.6

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.
@@ -44,6 +44,7 @@ OntologiesV2.OntologyObjectSets.loadMultipleObjectTypes(baseUrl, async ({
44
44
  const objectApiNames = new Set(pagedResponse.data.map(o => o.__apiName));
45
45
  return {
46
46
  interfaceToObjectTypeMappings: fauxFoundry.getOntology(params.ontologyApiName).getInterfaceToObjectTypeMappings(objectApiNames),
47
+ interfaceToObjectTypeMappingsV2: {},
47
48
  ...pagedResponse
48
49
  };
49
50
  })];
@@ -1 +1 @@
1
- {"version":3,"file":"createObjectSetHandlers.js","names":["OntologiesV2","createObjectSetHandlers","baseUrl","fauxFoundry","OntologyObjectSets","load","request","params","getDataStore","ontologyApiName","getObjectsFromObjectSet","json","aggregate","Error","loadMultipleObjectTypes","pagedResponse","objectApiNames","Set","data","map","o","__apiName","interfaceToObjectTypeMappings","getOntology","getInterfaceToObjectTypeMappings"],"sources":["createObjectSetHandlers.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RequestHandler } from \"msw\";\nimport type { FauxFoundry } from \"../FauxFoundry/FauxFoundry.js\";\nimport { OntologiesV2 } from \"../mock/index.js\";\n\nexport const createObjectSetHandlers = (\n baseUrl: string,\n fauxFoundry: FauxFoundry,\n): Array<RequestHandler> => [\n /**\n * Load ObjectSet Objects\n */\n OntologiesV2.OntologyObjectSets.load(\n baseUrl,\n async ({ request, params }) => {\n return fauxFoundry\n .getDataStore(params.ontologyApiName)\n .getObjectsFromObjectSet(await request.json());\n },\n ),\n\n /**\n * Aggregate Objects in ObjectSet\n */\n OntologiesV2.OntologyObjectSets.aggregate(\n baseUrl,\n async ({ request }) => {\n throw new Error(\"Not implemented\");\n },\n ),\n\n /**\n * Load interface objectset Objects\n */\n OntologiesV2.OntologyObjectSets.loadMultipleObjectTypes(\n baseUrl,\n async ({ params, request }) => {\n const pagedResponse = fauxFoundry\n .getDataStore(params.ontologyApiName)\n .getObjectsFromObjectSet(await request.json());\n\n const objectApiNames = new Set(pagedResponse.data.map(o => o.__apiName));\n\n return {\n interfaceToObjectTypeMappings: fauxFoundry\n .getOntology(params.ontologyApiName)\n .getInterfaceToObjectTypeMappings(objectApiNames),\n ...pagedResponse,\n };\n },\n ),\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,YAAY,QAAQ,kBAAkB;AAE/C,OAAO,MAAMC,uBAAuB,GAAGA,CACrCC,OAAe,EACfC,WAAwB,KACE;AAC1B;AACF;AACA;AACEH,YAAY,CAACI,kBAAkB,CAACC,IAAI,CAClCH,OAAO,EACP,OAAO;EAAEI,OAAO;EAAEC;AAAO,CAAC,KAAK;EAC7B,OAAOJ,WAAW,CACfK,YAAY,CAACD,MAAM,CAACE,eAAe,CAAC,CACpCC,uBAAuB,CAAC,MAAMJ,OAAO,CAACK,IAAI,CAAC,CAAC,CAAC;AAClD,CACF,CAAC;AAED;AACF;AACA;AACEX,YAAY,CAACI,kBAAkB,CAACQ,SAAS,CACvCV,OAAO,EACP,OAAO;EAAEI;AAAQ,CAAC,KAAK;EACrB,MAAM,IAAIO,KAAK,CAAC,iBAAiB,CAAC;AACpC,CACF,CAAC;AAED;AACF;AACA;AACEb,YAAY,CAACI,kBAAkB,CAACU,uBAAuB,CACrDZ,OAAO,EACP,OAAO;EAAEK,MAAM;EAAED;AAAQ,CAAC,KAAK;EAC7B,MAAMS,aAAa,GAAGZ,WAAW,CAC9BK,YAAY,CAACD,MAAM,CAACE,eAAe,CAAC,CACpCC,uBAAuB,CAAC,MAAMJ,OAAO,CAACK,IAAI,CAAC,CAAC,CAAC;EAEhD,MAAMK,cAAc,GAAG,IAAIC,GAAG,CAACF,aAAa,CAACG,IAAI,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,SAAS,CAAC,CAAC;EAExE,OAAO;IACLC,6BAA6B,EAAEnB,WAAW,CACvCoB,WAAW,CAAChB,MAAM,CAACE,eAAe,CAAC,CACnCe,gCAAgC,CAACR,cAAc,CAAC;IACnD,GAAGD;EACL,CAAC;AACH,CACF,CAAC,CACF","ignoreList":[]}
1
+ {"version":3,"file":"createObjectSetHandlers.js","names":["OntologiesV2","createObjectSetHandlers","baseUrl","fauxFoundry","OntologyObjectSets","load","request","params","getDataStore","ontologyApiName","getObjectsFromObjectSet","json","aggregate","Error","loadMultipleObjectTypes","pagedResponse","objectApiNames","Set","data","map","o","__apiName","interfaceToObjectTypeMappings","getOntology","getInterfaceToObjectTypeMappings","interfaceToObjectTypeMappingsV2"],"sources":["createObjectSetHandlers.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RequestHandler } from \"msw\";\nimport type { FauxFoundry } from \"../FauxFoundry/FauxFoundry.js\";\nimport { OntologiesV2 } from \"../mock/index.js\";\n\nexport const createObjectSetHandlers = (\n baseUrl: string,\n fauxFoundry: FauxFoundry,\n): Array<RequestHandler> => [\n /**\n * Load ObjectSet Objects\n */\n OntologiesV2.OntologyObjectSets.load(\n baseUrl,\n async ({ request, params }) => {\n return fauxFoundry\n .getDataStore(params.ontologyApiName)\n .getObjectsFromObjectSet(await request.json());\n },\n ),\n\n /**\n * Aggregate Objects in ObjectSet\n */\n OntologiesV2.OntologyObjectSets.aggregate(\n baseUrl,\n async ({ request }) => {\n throw new Error(\"Not implemented\");\n },\n ),\n\n /**\n * Load interface objectset Objects\n */\n OntologiesV2.OntologyObjectSets.loadMultipleObjectTypes(\n baseUrl,\n async ({ params, request }) => {\n const pagedResponse = fauxFoundry\n .getDataStore(params.ontologyApiName)\n .getObjectsFromObjectSet(await request.json());\n\n const objectApiNames = new Set(pagedResponse.data.map(o => o.__apiName));\n\n return {\n interfaceToObjectTypeMappings: fauxFoundry\n .getOntology(params.ontologyApiName)\n .getInterfaceToObjectTypeMappings(objectApiNames),\n interfaceToObjectTypeMappingsV2: {},\n ...pagedResponse,\n };\n },\n ),\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,YAAY,QAAQ,kBAAkB;AAE/C,OAAO,MAAMC,uBAAuB,GAAGA,CACrCC,OAAe,EACfC,WAAwB,KACE;AAC1B;AACF;AACA;AACEH,YAAY,CAACI,kBAAkB,CAACC,IAAI,CAClCH,OAAO,EACP,OAAO;EAAEI,OAAO;EAAEC;AAAO,CAAC,KAAK;EAC7B,OAAOJ,WAAW,CACfK,YAAY,CAACD,MAAM,CAACE,eAAe,CAAC,CACpCC,uBAAuB,CAAC,MAAMJ,OAAO,CAACK,IAAI,CAAC,CAAC,CAAC;AAClD,CACF,CAAC;AAED;AACF;AACA;AACEX,YAAY,CAACI,kBAAkB,CAACQ,SAAS,CACvCV,OAAO,EACP,OAAO;EAAEI;AAAQ,CAAC,KAAK;EACrB,MAAM,IAAIO,KAAK,CAAC,iBAAiB,CAAC;AACpC,CACF,CAAC;AAED;AACF;AACA;AACEb,YAAY,CAACI,kBAAkB,CAACU,uBAAuB,CACrDZ,OAAO,EACP,OAAO;EAAEK,MAAM;EAAED;AAAQ,CAAC,KAAK;EAC7B,MAAMS,aAAa,GAAGZ,WAAW,CAC9BK,YAAY,CAACD,MAAM,CAACE,eAAe,CAAC,CACpCC,uBAAuB,CAAC,MAAMJ,OAAO,CAACK,IAAI,CAAC,CAAC,CAAC;EAEhD,MAAMK,cAAc,GAAG,IAAIC,GAAG,CAACF,aAAa,CAACG,IAAI,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,SAAS,CAAC,CAAC;EAExE,OAAO;IACLC,6BAA6B,EAAEnB,WAAW,CACvCoB,WAAW,CAAChB,MAAM,CAACE,eAAe,CAAC,CACnCe,gCAAgC,CAACR,cAAc,CAAC;IACnDS,+BAA+B,EAAE,CAAC,CAAC;IACnC,GAAGV;EACL,CAAC;AACH,CACF,CAAC,CACF","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/faux",
3
- "version": "0.4.0-beta.4",
3
+ "version": "0.4.0-beta.6",
4
4
  "description": "",
5
5
  "access": "private",
6
6
  "license": "Apache-2.0",
@@ -29,11 +29,11 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@osdk/foundry.core": "2.38.0",
33
- "@osdk/foundry.geo": "2.38.0",
34
- "@osdk/foundry.mediasets": "2.38.0",
35
- "@osdk/foundry.ontologies": "2.38.0",
36
- "@osdk/internal.foundry.ontologies": "2.38.0",
32
+ "@osdk/foundry.core": "2.41.0",
33
+ "@osdk/foundry.geo": "2.41.0",
34
+ "@osdk/foundry.mediasets": "2.41.0",
35
+ "@osdk/foundry.ontologies": "2.41.0",
36
+ "@osdk/internal.foundry.ontologies": "2.41.0",
37
37
  "date-fns": "^4.1.0",
38
38
  "decimal.js": "^10.6.0",
39
39
  "fast-deep-equal": "^3.1.3",
@@ -44,8 +44,8 @@
44
44
  "semver": "^7.7.2",
45
45
  "tiny-invariant": "^1.3.3",
46
46
  "type-fest": "^4.41.0",
47
- "@osdk/api": "~2.6.0-beta.8",
48
- "@osdk/generator-converters": "~2.6.0-beta.8"
47
+ "@osdk/api": "~2.6.0-beta.13",
48
+ "@osdk/generator-converters": "~2.6.0-beta.13"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/json-stable-stringify": "^1.2.0",