@osdk/api 2.44.0 → 2.44.1-main-db2bfa2d14578bbcfdae01c500976def4105506e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.js","names":["ActionParam"],"sources":["Actions.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 { DataValueClientToWire } from \"../mapping/DataValueMapping.js\";\nimport type { ObjectSet } from \"../objectSet/ObjectSet.js\";\nimport type { InterfaceDefinition } from \"../ontology/InterfaceDefinition.js\";\nimport type {\n CompileTimeMetadata,\n ObjectTypeDefinition,\n} from \"../ontology/ObjectTypeDefinition.js\";\nimport type { ObjectIdentifiers } from \"../OsdkBase.js\";\nimport type { OsdkObjectPrimaryKeyType } from \"../OsdkObjectPrimaryKeyType.js\";\nimport type {\n ActionResults,\n ValidateActionResponseV2,\n} from \"./ActionResults.js\";\nimport type { NULL_VALUE } from \"./NullValue.js\";\n\nexport type ApplyActionOptions =\n | { $returnEdits?: true; $validateOnly?: false }\n | {\n $validateOnly?: true;\n $returnEdits?: false;\n };\n\nexport type ApplyBatchActionOptions = { $returnEdits?: boolean };\n\n/**\n * Helper types for converting action definition parameter types to typescript types\n */\nexport namespace ActionParam {\n /**\n * Helper type to convert action definition parameter primitives to typescript types\n */\n export type PrimitiveType<T extends keyof DataValueClientToWire> =\n DataValueClientToWire[T];\n\n /**\n * Helper type to convert action definition parameter object types to typescript types\n */\n export type ObjectType<T extends ObjectTypeDefinition> =\n | ObjectIdentifiers<T>\n | OsdkObjectPrimaryKeyType<T>;\n\n /**\n * Helper type to convert action definition parameter object sets to typescript types\n */\n export type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;\n\n /**\n * Helper type to convert action definition parameter interface types to typescript types\n */\n export type InterfaceType<T extends InterfaceDefinition> = {\n $objectType: CompileTimeMetadata<T> extends { implementedBy: infer U }\n ? U extends ReadonlyArray<never>\n ? string\n : U extends ReadonlyArray<string>\n ? U[number]\n : string\n : string;\n $primaryKey: string | number;\n };\n\n export type StructType<\n T extends Record<\n string,\n | keyof DataValueClientToWire\n | {\n type: keyof DataValueClientToWire;\n nullable: boolean;\n }\n >,\n > = {\n [K in keyof T as T[K] extends { type: infer U; nullable: infer R }\n ? R extends true\n ? never\n : K\n : K]: T[K] extends { type: infer U; nullable: infer R }\n ? U extends keyof DataValueClientToWire\n ? R extends true\n ? never\n : DataValueClientToWire[U]\n : never\n : T[K] extends keyof DataValueClientToWire\n ? DataValueClientToWire[T[K]]\n : never;\n } & {\n [K in keyof T as T[K] extends { type: infer U; nullable: infer R }\n ? R extends true\n ? K\n : never\n : never]?: T[K] extends { type: infer U; nullable: infer R }\n ? U extends keyof DataValueClientToWire\n ? R extends true\n ? DataValueClientToWire[U] |
|
|
1
|
+
{"version":3,"file":"Actions.js","names":["ActionParam"],"sources":["Actions.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 { DataValueClientToWire } from \"../mapping/DataValueMapping.js\";\nimport type { ObjectSet } from \"../objectSet/ObjectSet.js\";\nimport type { InterfaceDefinition } from \"../ontology/InterfaceDefinition.js\";\nimport type {\n CompileTimeMetadata,\n ObjectTypeDefinition,\n} from \"../ontology/ObjectTypeDefinition.js\";\nimport type { ObjectIdentifiers } from \"../OsdkBase.js\";\nimport type { OsdkObjectPrimaryKeyType } from \"../OsdkObjectPrimaryKeyType.js\";\nimport type {\n ActionResults,\n ValidateActionResponseV2,\n} from \"./ActionResults.js\";\nimport type { NULL_VALUE } from \"./NullValue.js\";\n\nexport type ApplyActionOptions =\n | { $returnEdits?: true; $validateOnly?: false }\n | {\n $validateOnly?: true;\n $returnEdits?: false;\n };\n\nexport type ApplyBatchActionOptions = { $returnEdits?: boolean };\n\n/**\n * Helper types for converting action definition parameter types to typescript types\n */\nexport namespace ActionParam {\n /**\n * Helper type to convert action definition parameter primitives to typescript types\n */\n export type PrimitiveType<T extends keyof DataValueClientToWire> =\n DataValueClientToWire[T];\n\n /**\n * Helper type to convert action definition parameter object types to typescript types\n */\n export type ObjectType<T extends ObjectTypeDefinition> =\n | ObjectIdentifiers<T>\n | OsdkObjectPrimaryKeyType<T>;\n\n /**\n * Helper type to convert action definition parameter object sets to typescript types\n */\n export type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;\n\n /**\n * Helper type to convert action definition parameter interface types to typescript types\n */\n export type InterfaceType<T extends InterfaceDefinition> = {\n $objectType: CompileTimeMetadata<T> extends { implementedBy: infer U }\n ? U extends ReadonlyArray<never>\n ? string\n : U extends ReadonlyArray<string>\n ? U[number]\n : string\n : string;\n $primaryKey: string | number;\n };\n\n export type StructType<\n T extends Record<\n string,\n | keyof DataValueClientToWire\n | {\n type: keyof DataValueClientToWire;\n nullable: boolean;\n }\n >,\n > = {\n [K in keyof T as T[K] extends { type: infer U; nullable: infer R }\n ? R extends true\n ? never\n : K\n : K]: T[K] extends { type: infer U; nullable: infer R }\n ? U extends keyof DataValueClientToWire\n ? R extends true\n ? never\n : DataValueClientToWire[U]\n : never\n : T[K] extends keyof DataValueClientToWire\n ? DataValueClientToWire[T[K]]\n : never;\n } & {\n [K in keyof T as T[K] extends { type: infer U; nullable: infer R }\n ? R extends true\n ? K\n : never\n : never]?: T[K] extends { type: infer U; nullable: infer R }\n ? U extends keyof DataValueClientToWire\n ? R extends true\n ? DataValueClientToWire[U] | null\n : never\n : never\n : never;\n };\n\n /**\n * Type of the symbol that indicates that a \"null\" value should be passed for the action parameter.\n * For any autogenerated modify actions, this will cause the action to clear the value of the parameter.\n */\n export type NullValueType = typeof NULL_VALUE;\n}\n\nexport type ActionEditResponse = ActionResults;\nexport type ActionValidationResponse = ValidateActionResponseV2;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA0BA;AACA;AACA;AAFA,WAGiBA,WAAW","ignoreList":[]}
|
package/build/cjs/index.d.cts
CHANGED
|
@@ -237,7 +237,7 @@ declare namespace ActionParam {
|
|
|
237
237
|
} ? R extends true ? K : never : never]?: T[K] extends {
|
|
238
238
|
type: infer U;
|
|
239
239
|
nullable: infer R;
|
|
240
|
-
} ? U extends keyof DataValueClientToWire ? R extends true ? DataValueClientToWire[U] |
|
|
240
|
+
} ? U extends keyof DataValueClientToWire ? R extends true ? DataValueClientToWire[U] | null : never : never : never;
|
|
241
241
|
};
|
|
242
242
|
/**
|
|
243
243
|
* Type of the symbol that indicates that a "null" value should be passed for the action parameter.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.js","names":["ActionParam"],"sources":["Actions.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 { DataValueClientToWire } from \"../mapping/DataValueMapping.js\";\nimport type { ObjectSet } from \"../objectSet/ObjectSet.js\";\nimport type { InterfaceDefinition } from \"../ontology/InterfaceDefinition.js\";\nimport type {\n CompileTimeMetadata,\n ObjectTypeDefinition,\n} from \"../ontology/ObjectTypeDefinition.js\";\nimport type { ObjectIdentifiers } from \"../OsdkBase.js\";\nimport type { OsdkObjectPrimaryKeyType } from \"../OsdkObjectPrimaryKeyType.js\";\nimport type {\n ActionResults,\n ValidateActionResponseV2,\n} from \"./ActionResults.js\";\nimport type { NULL_VALUE } from \"./NullValue.js\";\n\nexport type ApplyActionOptions =\n | { $returnEdits?: true; $validateOnly?: false }\n | {\n $validateOnly?: true;\n $returnEdits?: false;\n };\n\nexport type ApplyBatchActionOptions = { $returnEdits?: boolean };\n\n/**\n * Helper types for converting action definition parameter types to typescript types\n */\nexport namespace ActionParam {\n /**\n * Helper type to convert action definition parameter primitives to typescript types\n */\n export type PrimitiveType<T extends keyof DataValueClientToWire> =\n DataValueClientToWire[T];\n\n /**\n * Helper type to convert action definition parameter object types to typescript types\n */\n export type ObjectType<T extends ObjectTypeDefinition> =\n | ObjectIdentifiers<T>\n | OsdkObjectPrimaryKeyType<T>;\n\n /**\n * Helper type to convert action definition parameter object sets to typescript types\n */\n export type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;\n\n /**\n * Helper type to convert action definition parameter interface types to typescript types\n */\n export type InterfaceType<T extends InterfaceDefinition> = {\n $objectType: CompileTimeMetadata<T> extends { implementedBy: infer U }\n ? U extends ReadonlyArray<never>\n ? string\n : U extends ReadonlyArray<string>\n ? U[number]\n : string\n : string;\n $primaryKey: string | number;\n };\n\n export type StructType<\n T extends Record<\n string,\n | keyof DataValueClientToWire\n | {\n type: keyof DataValueClientToWire;\n nullable: boolean;\n }\n >,\n > = {\n [K in keyof T as T[K] extends { type: infer U; nullable: infer R }\n ? R extends true\n ? never\n : K\n : K]: T[K] extends { type: infer U; nullable: infer R }\n ? U extends keyof DataValueClientToWire\n ? R extends true\n ? never\n : DataValueClientToWire[U]\n : never\n : T[K] extends keyof DataValueClientToWire\n ? DataValueClientToWire[T[K]]\n : never;\n } & {\n [K in keyof T as T[K] extends { type: infer U; nullable: infer R }\n ? R extends true\n ? K\n : never\n : never]?: T[K] extends { type: infer U; nullable: infer R }\n ? U extends keyof DataValueClientToWire\n ? R extends true\n ? DataValueClientToWire[U] |
|
|
1
|
+
{"version":3,"file":"Actions.js","names":["ActionParam"],"sources":["Actions.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 { DataValueClientToWire } from \"../mapping/DataValueMapping.js\";\nimport type { ObjectSet } from \"../objectSet/ObjectSet.js\";\nimport type { InterfaceDefinition } from \"../ontology/InterfaceDefinition.js\";\nimport type {\n CompileTimeMetadata,\n ObjectTypeDefinition,\n} from \"../ontology/ObjectTypeDefinition.js\";\nimport type { ObjectIdentifiers } from \"../OsdkBase.js\";\nimport type { OsdkObjectPrimaryKeyType } from \"../OsdkObjectPrimaryKeyType.js\";\nimport type {\n ActionResults,\n ValidateActionResponseV2,\n} from \"./ActionResults.js\";\nimport type { NULL_VALUE } from \"./NullValue.js\";\n\nexport type ApplyActionOptions =\n | { $returnEdits?: true; $validateOnly?: false }\n | {\n $validateOnly?: true;\n $returnEdits?: false;\n };\n\nexport type ApplyBatchActionOptions = { $returnEdits?: boolean };\n\n/**\n * Helper types for converting action definition parameter types to typescript types\n */\nexport namespace ActionParam {\n /**\n * Helper type to convert action definition parameter primitives to typescript types\n */\n export type PrimitiveType<T extends keyof DataValueClientToWire> =\n DataValueClientToWire[T];\n\n /**\n * Helper type to convert action definition parameter object types to typescript types\n */\n export type ObjectType<T extends ObjectTypeDefinition> =\n | ObjectIdentifiers<T>\n | OsdkObjectPrimaryKeyType<T>;\n\n /**\n * Helper type to convert action definition parameter object sets to typescript types\n */\n export type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;\n\n /**\n * Helper type to convert action definition parameter interface types to typescript types\n */\n export type InterfaceType<T extends InterfaceDefinition> = {\n $objectType: CompileTimeMetadata<T> extends { implementedBy: infer U }\n ? U extends ReadonlyArray<never>\n ? string\n : U extends ReadonlyArray<string>\n ? U[number]\n : string\n : string;\n $primaryKey: string | number;\n };\n\n export type StructType<\n T extends Record<\n string,\n | keyof DataValueClientToWire\n | {\n type: keyof DataValueClientToWire;\n nullable: boolean;\n }\n >,\n > = {\n [K in keyof T as T[K] extends { type: infer U; nullable: infer R }\n ? R extends true\n ? never\n : K\n : K]: T[K] extends { type: infer U; nullable: infer R }\n ? U extends keyof DataValueClientToWire\n ? R extends true\n ? never\n : DataValueClientToWire[U]\n : never\n : T[K] extends keyof DataValueClientToWire\n ? DataValueClientToWire[T[K]]\n : never;\n } & {\n [K in keyof T as T[K] extends { type: infer U; nullable: infer R }\n ? R extends true\n ? K\n : never\n : never]?: T[K] extends { type: infer U; nullable: infer R }\n ? U extends keyof DataValueClientToWire\n ? R extends true\n ? DataValueClientToWire[U] | null\n : never\n : never\n : never;\n };\n\n /**\n * Type of the symbol that indicates that a \"null\" value should be passed for the action parameter.\n * For any autogenerated modify actions, this will cause the action to clear the value of the parameter.\n */\n export type NullValueType = typeof NULL_VALUE;\n}\n\nexport type ActionEditResponse = ActionResults;\nexport type ActionValidationResponse = ValidateActionResponseV2;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA0BA;AACA;AACA;AAFA,WAGiBA,WAAW","ignoreList":[]}
|
|
@@ -44,7 +44,7 @@ export declare namespace ActionParam {
|
|
|
44
44
|
} ? R extends true ? K : never : never]? : T[K] extends {
|
|
45
45
|
type: infer U
|
|
46
46
|
nullable: infer R
|
|
47
|
-
} ? U extends keyof DataValueClientToWire ? R extends true ? DataValueClientToWire[U] |
|
|
47
|
+
} ? U extends keyof DataValueClientToWire ? R extends true ? DataValueClientToWire[U] | null : never : never : never };
|
|
48
48
|
type NullValueType = typeof NULL_VALUE;
|
|
49
49
|
}
|
|
50
50
|
export type ActionEditResponse = ActionResults;
|