@osdk/client 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/build/browser/Client.d.ts +1 -1
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.js.map +1 -1
- package/build/browser/objectSet/toConjureObjectSet.js +8 -0
- package/build/browser/objectSet/toConjureObjectSet.js.map +1 -1
- package/build/browser/util/UserAgent.js +1 -1
- package/build/esm/Client.d.ts +1 -1
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/objectSet/toConjureObjectSet.js +8 -0
- package/build/esm/objectSet/toConjureObjectSet.js.map +1 -1
- package/build/esm/util/UserAgent.js +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @osdk/client
|
|
2
2
|
|
|
3
|
+
## 2.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0ff5e50: Update to latest platform sdks
|
|
8
|
+
- Updated dependencies [0dda65c]
|
|
9
|
+
- Updated dependencies [0ff5e50]
|
|
10
|
+
- @osdk/api@2.0.7
|
|
11
|
+
- @osdk/generator-converters@2.0.7
|
|
12
|
+
- @osdk/client.unstable@2.0.7
|
|
13
|
+
|
|
3
14
|
## 2.0.6
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -35,7 +35,7 @@ export interface Client extends SharedClient, OldSharedClient {
|
|
|
35
35
|
[additionalContext]: MinimalClient;
|
|
36
36
|
}
|
|
37
37
|
export declare const additionalContext: unique symbol;
|
|
38
|
-
declare const MaxOsdkVersion = "2.0.
|
|
38
|
+
declare const MaxOsdkVersion = "2.0.7";
|
|
39
39
|
export type MaxOsdkVersion = typeof MaxOsdkVersion;
|
|
40
40
|
declare const ErrorMessage: unique symbol;
|
|
41
41
|
export {};
|
package/build/browser/Client.js
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
// DO NOT EXPORT FROM PACKAGE
|
|
17
17
|
export const additionalContext = Symbol("additionalContext");
|
|
18
18
|
// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.
|
|
19
|
-
const MaxOsdkVersion = "2.0.
|
|
19
|
+
const MaxOsdkVersion = "2.0.7";
|
|
20
20
|
const ErrorMessage = Symbol("ErrorMessage");
|
|
21
21
|
//# sourceMappingURL=Client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// DO NOT EXPORT FROM PACKAGE\nexport const additionalContext = Symbol(\"additionalContext\");\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.0.
|
|
1
|
+
{"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// DO NOT EXPORT FROM PACKAGE\nexport const additionalContext = Symbol(\"additionalContext\");\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.0.7\";\nconst ErrorMessage = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,GAAGC,MAAM,CAAC,mBAAmB,CAAC;AAC5D;AACA,MAAMC,cAAc,GAAG,OAAO;AAC9B,MAAMC,YAAY,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
|
|
@@ -49,6 +49,10 @@ export function toConjureObjectSet(objectSet, objectPropertyMapping) {
|
|
|
49
49
|
objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping))
|
|
50
50
|
});
|
|
51
51
|
case "searchAround":
|
|
52
|
+
case "asBaseObjectTypes":
|
|
53
|
+
case "asType":
|
|
54
|
+
case "interfaceBase":
|
|
55
|
+
default:
|
|
52
56
|
throw new Error("not implemented");
|
|
53
57
|
}
|
|
54
58
|
}
|
|
@@ -73,7 +77,11 @@ export async function getObjectSetBaseType(objectSet) {
|
|
|
73
77
|
return getObjectSetBaseType(objectSet.objectSets[0]);
|
|
74
78
|
case "subtract":
|
|
75
79
|
return getObjectSetBaseType(objectSet.objectSets[0]);
|
|
80
|
+
case "asBaseObjectTypes":
|
|
81
|
+
case "asType":
|
|
82
|
+
case "interfaceBase":
|
|
76
83
|
case "searchAround":
|
|
84
|
+
default:
|
|
77
85
|
// TODO: Get a mapping using the link
|
|
78
86
|
throw new Error("not implemented");
|
|
79
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toConjureObjectSet.js","names":["conjureUnionType","toConjureObjectSet","objectSet","objectPropertyMapping","type","objectTypeId","id","objectRids","objects","provenance","undefined","objectSetRid","reference","runtimeDerivedProperties","filter","mapWhereClauseToObjectSetFilter","where","objectSets","map","os","Error","getObjectSetBaseType","objectType","objectSetFilter","propertyMapping","propertyId","propertyApiNameToIdMapping","field","lt","value","lte","gt","gte","terms","filters","hasProperty"],"sources":["toConjureObjectSet.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { conjureUnionType } from \"./conjureUnionType.js\";\n/** @internal */\nexport function toConjureObjectSet(objectSet, objectPropertyMapping) {\n switch (objectSet.type) {\n case \"base\":\n return conjureUnionType(\"base\", {\n objectTypeId: objectPropertyMapping.id,\n });\n case \"static\":\n return conjureUnionType(\"static\", {\n objectRids: objectSet.objects,\n provenance: undefined,\n });\n case \"reference\":\n return conjureUnionType(\"referenced\", {\n objectSetRid: objectSet.reference,\n });\n case \"filter\":\n return conjureUnionType(\"filtered\", {\n objectSet: toConjureObjectSet(objectSet.objectSet, objectPropertyMapping),\n runtimeDerivedProperties: undefined,\n filter: mapWhereClauseToObjectSetFilter(objectSet.where, objectPropertyMapping),\n });\n case \"union\":\n return conjureUnionType(\"unioned\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"intersect\":\n return conjureUnionType(\"intersected\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"subtract\":\n return conjureUnionType(\"subtracted\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"searchAround\":\n throw new Error(\"not implemented\");\n }\n}\n/** @internal */\nexport async function getObjectSetBaseType(objectSet) {\n switch (objectSet.type) {\n case \"base\":\n return objectSet.objectType;\n case \"static\":\n // TODO: Get the object type from a wire call\n // This is not supported at the moment by the API anyway\n throw new Error(\"not implemented\");\n case \"reference\":\n // TODO: Get the object type from a wire call\n throw new Error(\"not implemented\");\n case \"filter\":\n return getObjectSetBaseType(objectSet.objectSet);\n case \"union\":\n // Technically you can have multiple ObjectTypes but at the moment we only support one\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"intersect\":\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"subtract\":\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"searchAround\":\n // TODO: Get a mapping using the link\n throw new Error(\"not implemented\");\n }\n}\nfunction mapWhereClauseToObjectSetFilter(objectSetFilter, propertyMapping) {\n switch (objectSetFilter.type) {\n case \"lt\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n lt: objectSetFilter.value,\n lte: undefined,\n gt: undefined,\n gte: undefined,\n });\n case \"gt\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n gt: objectSetFilter.value,\n lte: undefined,\n lt: undefined,\n gte: undefined,\n });\n case \"lte\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n lte: objectSetFilter.value,\n lt: undefined,\n gt: undefined,\n gte: undefined,\n });\n case \"gte\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n gte: objectSetFilter.value,\n lt: undefined,\n lte: undefined,\n gt: undefined,\n });\n case \"eq\":\n return conjureUnionType(\"exactMatch\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n terms: [objectSetFilter.value],\n });\n case \"and\":\n return conjureUnionType(\"and\", {\n filters: objectSetFilter.value.map(filter => mapWhereClauseToObjectSetFilter(filter, propertyMapping)),\n });\n case \"or\":\n return conjureUnionType(\"or\", {\n filters: objectSetFilter.value.map(filter => mapWhereClauseToObjectSetFilter(filter, propertyMapping)),\n });\n case \"isNull\":\n return conjureUnionType(\"not\", {\n filter: {\n type: \"hasProperty\",\n hasProperty: {\n propertyId: propertyMapping\n .propertyApiNameToIdMapping[objectSetFilter.field],\n },\n },\n });\n case \"not\":\n return conjureUnionType(\"not\", {\n filter: mapWhereClauseToObjectSetFilter(objectSetFilter.value, propertyMapping),\n });\n case \"contains\":\n case \"startsWith\":\n case \"containsAllTermsInOrder\":\n case \"containsAnyTerm\":\n case \"containsAllTerms\":\n case \"withinDistanceOf\":\n case \"withinBoundingBox\":\n case \"intersectsBoundingBox\":\n case \"doesNotIntersectBoundingBox\":\n case \"withinPolygon\":\n case \"intersectsPolygon\":\n case \"doesNotIntersectPolygon\":\n case \"containsAllTermsInOrderPrefixLastTerm\":\n case \"in\":\n throw new Error(\"not implemented\");\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,uBAAuB;AACxD;AACA,OAAO,SAASC,kBAAkBA,CAACC,SAAS,EAAEC,qBAAqB,EAAE;EACjE,QAAQD,SAAS,CAACE,IAAI;IAClB,KAAK,MAAM;MACP,OAAOJ,gBAAgB,CAAC,MAAM,EAAE;QAC5BK,YAAY,EAAEF,qBAAqB,CAACG;MACxC,CAAC,CAAC;IACN,KAAK,QAAQ;MACT,OAAON,gBAAgB,CAAC,QAAQ,EAAE;QAC9BO,UAAU,EAAEL,SAAS,CAACM,OAAO;QAC7BC,UAAU,EAAEC;MAChB,CAAC,CAAC;IACN,KAAK,WAAW;MACZ,OAAOV,gBAAgB,CAAC,YAAY,EAAE;QAClCW,YAAY,EAAET,SAAS,CAACU;MAC5B,CAAC,CAAC;IACN,KAAK,QAAQ;MACT,OAAOZ,gBAAgB,CAAC,UAAU,EAAE;QAChCE,SAAS,EAAED,kBAAkB,CAACC,SAAS,CAACA,SAAS,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AC5B,KAAK,6BAA6B;IAClC,KAAK,eAAe;IACpB,KAAK,mBAAmB;IACxB,KAAK,yBAAyB;IAC9B,KAAK,uCAAuC;IAC5C,KAAK,IAAI;MACL,MAAM,IAAIJ,KAAK,CAAC,iBAAiB,CAAC;EAC1C;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"toConjureObjectSet.js","names":["conjureUnionType","toConjureObjectSet","objectSet","objectPropertyMapping","type","objectTypeId","id","objectRids","objects","provenance","undefined","objectSetRid","reference","runtimeDerivedProperties","filter","mapWhereClauseToObjectSetFilter","where","objectSets","map","os","Error","getObjectSetBaseType","objectType","objectSetFilter","propertyMapping","propertyId","propertyApiNameToIdMapping","field","lt","value","lte","gt","gte","terms","filters","hasProperty"],"sources":["toConjureObjectSet.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { conjureUnionType } from \"./conjureUnionType.js\";\n/** @internal */\nexport function toConjureObjectSet(objectSet, objectPropertyMapping) {\n switch (objectSet.type) {\n case \"base\":\n return conjureUnionType(\"base\", {\n objectTypeId: objectPropertyMapping.id,\n });\n case \"static\":\n return conjureUnionType(\"static\", {\n objectRids: objectSet.objects,\n provenance: undefined,\n });\n case \"reference\":\n return conjureUnionType(\"referenced\", {\n objectSetRid: objectSet.reference,\n });\n case \"filter\":\n return conjureUnionType(\"filtered\", {\n objectSet: toConjureObjectSet(objectSet.objectSet, objectPropertyMapping),\n runtimeDerivedProperties: undefined,\n filter: mapWhereClauseToObjectSetFilter(objectSet.where, objectPropertyMapping),\n });\n case \"union\":\n return conjureUnionType(\"unioned\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"intersect\":\n return conjureUnionType(\"intersected\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"subtract\":\n return conjureUnionType(\"subtracted\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"searchAround\":\n case \"asBaseObjectTypes\":\n case \"asType\":\n case \"interfaceBase\":\n default:\n throw new Error(\"not implemented\");\n }\n}\n/** @internal */\nexport async function getObjectSetBaseType(objectSet) {\n switch (objectSet.type) {\n case \"base\":\n return objectSet.objectType;\n case \"static\":\n // TODO: Get the object type from a wire call\n // This is not supported at the moment by the API anyway\n throw new Error(\"not implemented\");\n case \"reference\":\n // TODO: Get the object type from a wire call\n throw new Error(\"not implemented\");\n case \"filter\":\n return getObjectSetBaseType(objectSet.objectSet);\n case \"union\":\n // Technically you can have multiple ObjectTypes but at the moment we only support one\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"intersect\":\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"subtract\":\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"asBaseObjectTypes\":\n case \"asType\":\n case \"interfaceBase\":\n case \"searchAround\":\n default:\n // TODO: Get a mapping using the link\n throw new Error(\"not implemented\");\n }\n}\nfunction mapWhereClauseToObjectSetFilter(objectSetFilter, propertyMapping) {\n switch (objectSetFilter.type) {\n case \"lt\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n lt: objectSetFilter.value,\n lte: undefined,\n gt: undefined,\n gte: undefined,\n });\n case \"gt\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n gt: objectSetFilter.value,\n lte: undefined,\n lt: undefined,\n gte: undefined,\n });\n case \"lte\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n lte: objectSetFilter.value,\n lt: undefined,\n gt: undefined,\n gte: undefined,\n });\n case \"gte\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n gte: objectSetFilter.value,\n lt: undefined,\n lte: undefined,\n gt: undefined,\n });\n case \"eq\":\n return conjureUnionType(\"exactMatch\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n terms: [objectSetFilter.value],\n });\n case \"and\":\n return conjureUnionType(\"and\", {\n filters: objectSetFilter.value.map(filter => mapWhereClauseToObjectSetFilter(filter, propertyMapping)),\n });\n case \"or\":\n return conjureUnionType(\"or\", {\n filters: objectSetFilter.value.map(filter => mapWhereClauseToObjectSetFilter(filter, propertyMapping)),\n });\n case \"isNull\":\n return conjureUnionType(\"not\", {\n filter: {\n type: \"hasProperty\",\n hasProperty: {\n propertyId: propertyMapping\n .propertyApiNameToIdMapping[objectSetFilter.field],\n },\n },\n });\n case \"not\":\n return conjureUnionType(\"not\", {\n filter: mapWhereClauseToObjectSetFilter(objectSetFilter.value, propertyMapping),\n });\n case \"contains\":\n case \"startsWith\":\n case \"containsAllTermsInOrder\":\n case \"containsAnyTerm\":\n case \"containsAllTerms\":\n case \"withinDistanceOf\":\n case \"withinBoundingBox\":\n case \"intersectsBoundingBox\":\n case \"doesNotIntersectBoundingBox\":\n case \"withinPolygon\":\n case \"intersectsPolygon\":\n case \"doesNotIntersectPolygon\":\n case \"containsAllTermsInOrderPrefixLastTerm\":\n case \"in\":\n throw new Error(\"not implemented\");\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,uBAAuB;AACxD;AACA,OAAO,SAASC,kBAAkBA,CAACC,SAAS,EAAEC,qBAAqB,EAAE;EACjE,QAAQD,SAAS,CAACE,IAA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MAAM,IAAIC,+BAA+B,CAACD,MAAM,EAAEU,eAAe,CAAC;MACzG,CAAC,CAAC;IACN,KAAK,QAAQ;MACT,OAAOxB,gBAAgB,CAAC,KAAK,EAAE;QAC3Bc,MAAM,EAAE;UACJV,IAAI,EAAE,aAAa;UACnB+B,WAAW,EAAE;YACTV,UAAU,EAAED,eAAe,CACtBE,0BAA0B,CAACH,eAAe,CAACI,KAAK;UACzD;QACJ;MACJ,CAAC,CAAC;IACN,KAAK,KAAK;MACN,OAAO3B,gBAAgB,CAAC,KAAK,EAAE;QAC3Bc,MAAM,EAAEC,+BAA+B,CAACQ,eAAe,CAACM,KAAK,EAAEL,eAAe;MAClF,CAAC,CAAC;IACN,KAAK,UAAU;IACf,KAAK,YAAY;IACjB,KAAK,yBAAyB;IAC9B,KAAK,iBAAiB;IACtB,KAAK,kBAAkB;IACvB,KAAK,kBAAkB;IACvB,KAAK,mBAAmB;IACxB,KAAK,uBAAuB;IAC5B,KAAK,6BAA6B;IAClC,KAAK,eAAe;IACpB,KAAK,mBAAmB;IACxB,KAAK,yBAAyB;IAC9B,KAAK,uCAAuC;IAC5C,KAAK,IAAI;MACL,MAAM,IAAIJ,KAAK,CAAC,iBAAiB,CAAC;EAC1C;AACJ","ignoreList":[]}
|
package/build/esm/Client.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface Client extends SharedClient, OldSharedClient {
|
|
|
35
35
|
[additionalContext]: MinimalClient;
|
|
36
36
|
}
|
|
37
37
|
export declare const additionalContext: unique symbol;
|
|
38
|
-
declare const MaxOsdkVersion = "2.0.
|
|
38
|
+
declare const MaxOsdkVersion = "2.0.7";
|
|
39
39
|
export type MaxOsdkVersion = typeof MaxOsdkVersion;
|
|
40
40
|
declare const ErrorMessage: unique symbol;
|
|
41
41
|
export {};
|
package/build/esm/Client.js
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
// DO NOT EXPORT FROM PACKAGE
|
|
17
17
|
export const additionalContext = Symbol("additionalContext");
|
|
18
18
|
// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.
|
|
19
|
-
const MaxOsdkVersion = "2.0.
|
|
19
|
+
const MaxOsdkVersion = "2.0.7";
|
|
20
20
|
const ErrorMessage = Symbol("ErrorMessage");
|
|
21
21
|
//# sourceMappingURL=Client.js.map
|
package/build/esm/Client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// DO NOT EXPORT FROM PACKAGE\nexport const additionalContext = Symbol(\"additionalContext\");\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.0.
|
|
1
|
+
{"version":3,"file":"Client.js","names":["additionalContext","Symbol","MaxOsdkVersion","ErrorMessage"],"sources":["Client.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// DO NOT EXPORT FROM PACKAGE\nexport const additionalContext = Symbol(\"additionalContext\");\n// BEGIN: THIS IS GENERATED CODE. DO NOT EDIT.\nconst MaxOsdkVersion = \"2.0.7\";\nconst ErrorMessage = Symbol(\"ErrorMessage\");\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,GAAGC,MAAM,CAAC,mBAAmB,CAAC;AAC5D;AACA,MAAMC,cAAc,GAAG,OAAO;AAC9B,MAAMC,YAAY,GAAGF,MAAM,CAAC,cAAc,CAAC","ignoreList":[]}
|
|
@@ -49,6 +49,10 @@ export function toConjureObjectSet(objectSet, objectPropertyMapping) {
|
|
|
49
49
|
objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping))
|
|
50
50
|
});
|
|
51
51
|
case "searchAround":
|
|
52
|
+
case "asBaseObjectTypes":
|
|
53
|
+
case "asType":
|
|
54
|
+
case "interfaceBase":
|
|
55
|
+
default:
|
|
52
56
|
throw new Error("not implemented");
|
|
53
57
|
}
|
|
54
58
|
}
|
|
@@ -73,7 +77,11 @@ export async function getObjectSetBaseType(objectSet) {
|
|
|
73
77
|
return getObjectSetBaseType(objectSet.objectSets[0]);
|
|
74
78
|
case "subtract":
|
|
75
79
|
return getObjectSetBaseType(objectSet.objectSets[0]);
|
|
80
|
+
case "asBaseObjectTypes":
|
|
81
|
+
case "asType":
|
|
82
|
+
case "interfaceBase":
|
|
76
83
|
case "searchAround":
|
|
84
|
+
default:
|
|
77
85
|
// TODO: Get a mapping using the link
|
|
78
86
|
throw new Error("not implemented");
|
|
79
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toConjureObjectSet.js","names":["conjureUnionType","toConjureObjectSet","objectSet","objectPropertyMapping","type","objectTypeId","id","objectRids","objects","provenance","undefined","objectSetRid","reference","runtimeDerivedProperties","filter","mapWhereClauseToObjectSetFilter","where","objectSets","map","os","Error","getObjectSetBaseType","objectType","objectSetFilter","propertyMapping","propertyId","propertyApiNameToIdMapping","field","lt","value","lte","gt","gte","terms","filters","hasProperty"],"sources":["toConjureObjectSet.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { conjureUnionType } from \"./conjureUnionType.js\";\n/** @internal */\nexport function toConjureObjectSet(objectSet, objectPropertyMapping) {\n switch (objectSet.type) {\n case \"base\":\n return conjureUnionType(\"base\", {\n objectTypeId: objectPropertyMapping.id,\n });\n case \"static\":\n return conjureUnionType(\"static\", {\n objectRids: objectSet.objects,\n provenance: undefined,\n });\n case \"reference\":\n return conjureUnionType(\"referenced\", {\n objectSetRid: objectSet.reference,\n });\n case \"filter\":\n return conjureUnionType(\"filtered\", {\n objectSet: toConjureObjectSet(objectSet.objectSet, objectPropertyMapping),\n runtimeDerivedProperties: undefined,\n filter: mapWhereClauseToObjectSetFilter(objectSet.where, objectPropertyMapping),\n });\n case \"union\":\n return conjureUnionType(\"unioned\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"intersect\":\n return conjureUnionType(\"intersected\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"subtract\":\n return conjureUnionType(\"subtracted\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"searchAround\":\n throw new Error(\"not implemented\");\n }\n}\n/** @internal */\nexport async function getObjectSetBaseType(objectSet) {\n switch (objectSet.type) {\n case \"base\":\n return objectSet.objectType;\n case \"static\":\n // TODO: Get the object type from a wire call\n // This is not supported at the moment by the API anyway\n throw new Error(\"not implemented\");\n case \"reference\":\n // TODO: Get the object type from a wire call\n throw new Error(\"not implemented\");\n case \"filter\":\n return getObjectSetBaseType(objectSet.objectSet);\n case \"union\":\n // Technically you can have multiple ObjectTypes but at the moment we only support one\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"intersect\":\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"subtract\":\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"searchAround\":\n // TODO: Get a mapping using the link\n throw new Error(\"not implemented\");\n }\n}\nfunction mapWhereClauseToObjectSetFilter(objectSetFilter, propertyMapping) {\n switch (objectSetFilter.type) {\n case \"lt\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n lt: objectSetFilter.value,\n lte: undefined,\n gt: undefined,\n gte: undefined,\n });\n case \"gt\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n gt: objectSetFilter.value,\n lte: undefined,\n lt: undefined,\n gte: undefined,\n });\n case \"lte\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n lte: objectSetFilter.value,\n lt: undefined,\n gt: undefined,\n gte: undefined,\n });\n case \"gte\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n gte: objectSetFilter.value,\n lt: undefined,\n lte: undefined,\n gt: undefined,\n });\n case \"eq\":\n return conjureUnionType(\"exactMatch\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n terms: [objectSetFilter.value],\n });\n case \"and\":\n return conjureUnionType(\"and\", {\n filters: objectSetFilter.value.map(filter => mapWhereClauseToObjectSetFilter(filter, propertyMapping)),\n });\n case \"or\":\n return conjureUnionType(\"or\", {\n filters: objectSetFilter.value.map(filter => mapWhereClauseToObjectSetFilter(filter, propertyMapping)),\n });\n case \"isNull\":\n return conjureUnionType(\"not\", {\n filter: {\n type: \"hasProperty\",\n hasProperty: {\n propertyId: propertyMapping\n .propertyApiNameToIdMapping[objectSetFilter.field],\n },\n },\n });\n case \"not\":\n return conjureUnionType(\"not\", {\n filter: mapWhereClauseToObjectSetFilter(objectSetFilter.value, propertyMapping),\n });\n case \"contains\":\n case \"startsWith\":\n case \"containsAllTermsInOrder\":\n case \"containsAnyTerm\":\n case \"containsAllTerms\":\n case \"withinDistanceOf\":\n case \"withinBoundingBox\":\n case \"intersectsBoundingBox\":\n case \"doesNotIntersectBoundingBox\":\n case \"withinPolygon\":\n case \"intersectsPolygon\":\n case \"doesNotIntersectPolygon\":\n case \"containsAllTermsInOrderPrefixLastTerm\":\n case \"in\":\n throw new Error(\"not implemented\");\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,uBAAuB;AACxD;AACA,OAAO,SAASC,kBAAkBA,CAACC,SAAS,EAAEC,qBAAqB,EAAE;EACjE,QAAQD,SAAS,CAACE,IAAI;IAClB,KAAK,MAAM;MACP,OAAOJ,gBAAgB,CAAC,MAAM,EAAE;QAC5BK,YAAY,EAAEF,qBAAqB,CAACG;MACxC,CAAC,CAAC;IACN,KAAK,QAAQ;MACT,OAAON,gBAAgB,CAAC,QAAQ,EAAE;QAC9BO,UAAU,EAAEL,SAAS,CAACM,OAAO;QAC7BC,UAAU,EAAEC;MAChB,CAAC,CAAC;IACN,KAAK,WAAW;MACZ,OAAOV,gBAAgB,CAAC,YAAY,EAAE;QAClCW,YAAY,EAAET,SAAS,CAACU;MAC5B,CAAC,CAAC;IACN,KAAK,QAAQ;MACT,OAAOZ,gBAAgB,CAAC,UAAU,EAAE;QAChCE,SAAS,EAAED,kBAAkB,CAACC,SAAS,CAACA,SAAS,EAAEC,qBAAqB,CAAC;QACzEU,wBAAwB,EAAEH,SAAS;QACnCI,MAAM,EAAE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K,yBAAyB;IAC9B,KAAK,uCAAuC;IAC5C,KAAK,IAAI;MACL,MAAM,IAAIJ,KAAK,CAAC,iBAAiB,CAAC;EAC1C;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"toConjureObjectSet.js","names":["conjureUnionType","toConjureObjectSet","objectSet","objectPropertyMapping","type","objectTypeId","id","objectRids","objects","provenance","undefined","objectSetRid","reference","runtimeDerivedProperties","filter","mapWhereClauseToObjectSetFilter","where","objectSets","map","os","Error","getObjectSetBaseType","objectType","objectSetFilter","propertyMapping","propertyId","propertyApiNameToIdMapping","field","lt","value","lte","gt","gte","terms","filters","hasProperty"],"sources":["toConjureObjectSet.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { conjureUnionType } from \"./conjureUnionType.js\";\n/** @internal */\nexport function toConjureObjectSet(objectSet, objectPropertyMapping) {\n switch (objectSet.type) {\n case \"base\":\n return conjureUnionType(\"base\", {\n objectTypeId: objectPropertyMapping.id,\n });\n case \"static\":\n return conjureUnionType(\"static\", {\n objectRids: objectSet.objects,\n provenance: undefined,\n });\n case \"reference\":\n return conjureUnionType(\"referenced\", {\n objectSetRid: objectSet.reference,\n });\n case \"filter\":\n return conjureUnionType(\"filtered\", {\n objectSet: toConjureObjectSet(objectSet.objectSet, objectPropertyMapping),\n runtimeDerivedProperties: undefined,\n filter: mapWhereClauseToObjectSetFilter(objectSet.where, objectPropertyMapping),\n });\n case \"union\":\n return conjureUnionType(\"unioned\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"intersect\":\n return conjureUnionType(\"intersected\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"subtract\":\n return conjureUnionType(\"subtracted\", {\n objectSets: objectSet.objectSets.map(os => toConjureObjectSet(os, objectPropertyMapping)),\n });\n case \"searchAround\":\n case \"asBaseObjectTypes\":\n case \"asType\":\n case \"interfaceBase\":\n default:\n throw new Error(\"not implemented\");\n }\n}\n/** @internal */\nexport async function getObjectSetBaseType(objectSet) {\n switch (objectSet.type) {\n case \"base\":\n return objectSet.objectType;\n case \"static\":\n // TODO: Get the object type from a wire call\n // This is not supported at the moment by the API anyway\n throw new Error(\"not implemented\");\n case \"reference\":\n // TODO: Get the object type from a wire call\n throw new Error(\"not implemented\");\n case \"filter\":\n return getObjectSetBaseType(objectSet.objectSet);\n case \"union\":\n // Technically you can have multiple ObjectTypes but at the moment we only support one\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"intersect\":\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"subtract\":\n return getObjectSetBaseType(objectSet.objectSets[0]);\n case \"asBaseObjectTypes\":\n case \"asType\":\n case \"interfaceBase\":\n case \"searchAround\":\n default:\n // TODO: Get a mapping using the link\n throw new Error(\"not implemented\");\n }\n}\nfunction mapWhereClauseToObjectSetFilter(objectSetFilter, propertyMapping) {\n switch (objectSetFilter.type) {\n case \"lt\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n lt: objectSetFilter.value,\n lte: undefined,\n gt: undefined,\n gte: undefined,\n });\n case \"gt\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n gt: objectSetFilter.value,\n lte: undefined,\n lt: undefined,\n gte: undefined,\n });\n case \"lte\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n lte: objectSetFilter.value,\n lt: undefined,\n gt: undefined,\n gte: undefined,\n });\n case \"gte\":\n return conjureUnionType(\"range\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n gte: objectSetFilter.value,\n lt: undefined,\n lte: undefined,\n gt: undefined,\n });\n case \"eq\":\n return conjureUnionType(\"exactMatch\", {\n propertyId: propertyMapping.propertyApiNameToIdMapping[objectSetFilter.field],\n terms: [objectSetFilter.value],\n });\n case \"and\":\n return conjureUnionType(\"and\", {\n filters: objectSetFilter.value.map(filter => mapWhereClauseToObjectSetFilter(filter, propertyMapping)),\n });\n case \"or\":\n return conjureUnionType(\"or\", {\n filters: objectSetFilter.value.map(filter => mapWhereClauseToObjectSetFilter(filter, propertyMapping)),\n });\n case \"isNull\":\n return conjureUnionType(\"not\", {\n filter: {\n type: \"hasProperty\",\n hasProperty: {\n propertyId: propertyMapping\n .propertyApiNameToIdMapping[objectSetFilter.field],\n },\n },\n });\n case \"not\":\n return conjureUnionType(\"not\", {\n filter: mapWhereClauseToObjectSetFilter(objectSetFilter.value, propertyMapping),\n });\n case \"contains\":\n case \"startsWith\":\n case \"containsAllTermsInOrder\":\n case \"containsAnyTerm\":\n case \"containsAllTerms\":\n case \"withinDistanceOf\":\n case \"withinBoundingBox\":\n case \"intersectsBoundingBox\":\n case \"doesNotIntersectBoundingBox\":\n case \"withinPolygon\":\n case \"intersectsPolygon\":\n case \"doesNotIntersectPolygon\":\n case \"containsAllTermsInOrderPrefixLastTerm\":\n case \"in\":\n throw new Error(\"not implemented\");\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,gBAAgB,QAAQ,uBAAuB;AACxD;AACA,OAAO,SAASC,kBAAkBA,CAACC,SAAS,EAAEC,qBAAqB,EAAE;EACjE,QAAQD,SAAS,CAACE,IAAI;IAClB,KAAK,MAAM;MACP,OAAOJ,gBAAgB,CAAC,MAAM,EAAE;QAC5BK,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C;IACN,KAAK,QAAQ;MACT,OAAOxB,gBAAgB,CAAC,KAAK,EAAE;QAC3Bc,MAAM,EAAE;UACJV,IAAI,EAAE,aAAa;UACnB+B,WAAW,EAAE;YACTV,UAAU,EAAED,eAAe,CACtBE,0BAA0B,CAACH,eAAe,CAACI,KAAK;UACzD;QACJ;MACJ,CAAC,CAAC;IACN,KAAK,KAAK;MACN,OAAO3B,gBAAgB,CAAC,KAAK,EAAE;QAC3Bc,MAAM,EAAEC,+BAA+B,CAACQ,eAAe,CAACM,KAAK,EAAEL,eAAe;MAClF,CAAC,CAAC;IACN,KAAK,UAAU;IACf,KAAK,YAAY;IACjB,KAAK,yBAAyB;IAC9B,KAAK,iBAAiB;IACtB,KAAK,kBAAkB;IACvB,KAAK,kBAAkB;IACvB,KAAK,mBAAmB;IACxB,KAAK,uBAAuB;IAC5B,KAAK,6BAA6B;IAClC,KAAK,eAAe;IACpB,KAAK,mBAAmB;IACxB,KAAK,yBAAyB;IAC9B,KAAK,uCAAuC;IAC5C,KAAK,IAAI;MACL,MAAM,IAAIJ,KAAK,CAAC,iBAAiB,CAAC;EAC1C;AACJ","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/client",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@osdk/internal.foundry.core": "
|
|
23
|
-
"@osdk/internal.foundry.ontologiesv2": "
|
|
22
|
+
"@osdk/internal.foundry.core": "2.2.0",
|
|
23
|
+
"@osdk/internal.foundry.ontologiesv2": "2.2.0",
|
|
24
24
|
"@osdk/shared.client": "^1.0.1",
|
|
25
25
|
"@osdk/shared.client2": "^1.0.0",
|
|
26
26
|
"@types/geojson": "^7946.0.14",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"tiny-invariant": "^1.3.1",
|
|
33
33
|
"type-fest": "^4.18.2",
|
|
34
34
|
"ws": "^8.18.0",
|
|
35
|
-
"@osdk/
|
|
36
|
-
"@osdk/
|
|
35
|
+
"@osdk/client.unstable": "2.0.7",
|
|
36
|
+
"@osdk/api": "~2.0.7",
|
|
37
|
+
"@osdk/generator-converters": "2.0.7",
|
|
38
|
+
"@osdk/shared.client.impl": "~1.0.2",
|
|
37
39
|
"@osdk/client.unstable.osw": "0.2.0",
|
|
38
|
-
"@osdk/generator-converters": "2.0.6",
|
|
39
40
|
"@osdk/shared.net.errors": "~2.0.0",
|
|
40
|
-
"@osdk/shared.net.fetch": "~1.0.0"
|
|
41
|
-
"@osdk/shared.client.impl": "~1.0.2"
|
|
41
|
+
"@osdk/shared.net.fetch": "~1.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@microsoft/api-documenter": "^7.25.3",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"ts-expect": "^1.3.0",
|
|
58
58
|
"typescript": "^5.5.4",
|
|
59
59
|
"zod": "^3.23.8",
|
|
60
|
-
"@osdk/
|
|
60
|
+
"@osdk/client.test.ontology": "~2.0.7",
|
|
61
61
|
"@osdk/monorepo.tsconfig": "~0.0.0",
|
|
62
|
-
"@osdk/
|
|
62
|
+
"@osdk/monorepo.api-extractor": "~0.0.0",
|
|
63
63
|
"@osdk/monorepo.tsup": "~0.0.0",
|
|
64
|
-
"@osdk/shared.test": "~2.0.
|
|
64
|
+
"@osdk/shared.test": "~2.0.7"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|