@osdk/generator-converters 2.0.0-beta.8 → 2.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.
- package/CHANGELOG.md +167 -0
- package/build/{cjs/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.d.cts → browser/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.d.ts} +2 -2
- package/build/{cjs → browser}/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.d.ts.map +1 -1
- package/build/browser/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js +31 -0
- package/build/browser/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js.map +1 -0
- package/build/browser/empty.test.js +22 -0
- package/build/browser/empty.test.js.map +1 -0
- package/build/browser/getEditedEntities.d.ts +7 -0
- package/build/browser/getEditedEntities.d.ts.map +1 -0
- package/build/browser/getEditedEntities.js +41 -0
- package/build/browser/getEditedEntities.js.map +1 -0
- package/build/browser/index.d.ts +9 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +23 -154
- package/build/browser/index.js.map +1 -1
- package/build/browser/isNullableQueryDataType.d.ts +3 -0
- package/build/browser/isNullableQueryDataType.d.ts.map +1 -0
- package/build/browser/isNullableQueryDataType.js +25 -0
- package/build/browser/isNullableQueryDataType.js.map +1 -0
- package/build/browser/wireActionTypeV2ToSdkActionMetadata.d.ts +4 -0
- package/build/browser/wireActionTypeV2ToSdkActionMetadata.d.ts.map +1 -0
- package/build/browser/wireActionTypeV2ToSdkActionMetadata.js +85 -0
- package/build/browser/wireActionTypeV2ToSdkActionMetadata.js.map +1 -0
- package/build/browser/wireObjectTypeFullMetadataToSdkObjectMetadata.d.ts +10 -0
- package/build/browser/wireObjectTypeFullMetadataToSdkObjectMetadata.d.ts.map +1 -0
- package/build/browser/wireObjectTypeFullMetadataToSdkObjectMetadata.js +56 -0
- package/build/browser/wireObjectTypeFullMetadataToSdkObjectMetadata.js.map +1 -0
- package/build/browser/wireObjectTypeFullMetadataToSdkObjectMetadata.test.d.ts +2 -0
- package/build/browser/wireObjectTypeFullMetadataToSdkObjectMetadata.test.d.ts.map +1 -0
- package/build/browser/wireObjectTypeFullMetadataToSdkObjectMetadata.test.js +67 -0
- package/build/browser/wireObjectTypeFullMetadataToSdkObjectMetadata.test.js.map +1 -0
- package/build/{cjs → browser}/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.ts.map +1 -1
- package/build/browser/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js +51 -0
- package/build/browser/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js.map +1 -0
- package/build/{cjs/wirePropertyV2ToSdkPropertyDefinition.d.cts → browser/wirePropertyV2ToSdkPropertyDefinition.d.ts} +2 -2
- package/build/browser/wirePropertyV2ToSdkPropertyDefinition.d.ts.map +1 -0
- package/build/browser/wirePropertyV2ToSdkPropertyDefinition.js +90 -0
- package/build/browser/wirePropertyV2ToSdkPropertyDefinition.js.map +1 -0
- package/build/browser/wireQueryDataTypeToQueryDataTypeDefinition.d.ts +4 -0
- package/build/browser/wireQueryDataTypeToQueryDataTypeDefinition.d.ts.map +1 -0
- package/build/browser/wireQueryDataTypeToQueryDataTypeDefinition.js +143 -0
- package/build/browser/wireQueryDataTypeToQueryDataTypeDefinition.js.map +1 -0
- package/build/browser/wireQueryTypeV2ToSdkQueryMetadata.d.ts +13 -0
- package/build/browser/wireQueryTypeV2ToSdkQueryMetadata.d.ts.map +1 -0
- package/build/browser/wireQueryTypeV2ToSdkQueryMetadata.js +45 -0
- package/build/browser/wireQueryTypeV2ToSdkQueryMetadata.js.map +1 -0
- package/build/esm/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.d.ts +2 -2
- package/build/esm/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.d.ts.map +1 -1
- package/build/esm/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js +31 -0
- package/build/esm/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js.map +1 -0
- package/build/esm/empty.test.js +22 -0
- package/build/esm/empty.test.js.map +1 -0
- package/build/esm/getEditedEntities.d.ts +7 -0
- package/build/esm/getEditedEntities.d.ts.map +1 -0
- package/build/esm/getEditedEntities.js +41 -0
- package/build/esm/getEditedEntities.js.map +1 -0
- package/build/esm/index.d.ts +6 -1
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +23 -154
- package/build/esm/index.js.map +1 -1
- package/build/esm/isNullableQueryDataType.d.ts +3 -0
- package/build/esm/isNullableQueryDataType.d.ts.map +1 -0
- package/build/esm/isNullableQueryDataType.js +25 -0
- package/build/esm/isNullableQueryDataType.js.map +1 -0
- package/build/esm/wireActionTypeV2ToSdkActionMetadata.d.ts +4 -0
- package/build/esm/wireActionTypeV2ToSdkActionMetadata.d.ts.map +1 -0
- package/build/esm/wireActionTypeV2ToSdkActionMetadata.js +85 -0
- package/build/esm/wireActionTypeV2ToSdkActionMetadata.js.map +1 -0
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.d.ts +10 -0
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.d.ts.map +1 -0
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.js +56 -0
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.js.map +1 -0
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.test.d.ts +2 -0
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.test.d.ts.map +1 -0
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.test.js +67 -0
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectMetadata.test.js.map +1 -0
- package/build/esm/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.ts.map +1 -1
- package/build/esm/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js +51 -0
- package/build/esm/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js.map +1 -0
- package/build/esm/wirePropertyV2ToSdkPropertyDefinition.d.ts +2 -2
- package/build/esm/wirePropertyV2ToSdkPropertyDefinition.d.ts.map +1 -1
- package/build/esm/wirePropertyV2ToSdkPropertyDefinition.js +90 -0
- package/build/esm/wirePropertyV2ToSdkPropertyDefinition.js.map +1 -0
- package/build/esm/wireQueryDataTypeToQueryDataTypeDefinition.d.ts +4 -0
- package/build/esm/wireQueryDataTypeToQueryDataTypeDefinition.d.ts.map +1 -0
- package/build/esm/wireQueryDataTypeToQueryDataTypeDefinition.js +143 -0
- package/build/esm/wireQueryDataTypeToQueryDataTypeDefinition.js.map +1 -0
- package/build/esm/wireQueryTypeV2ToSdkQueryMetadata.d.ts +13 -0
- package/build/esm/wireQueryTypeV2ToSdkQueryMetadata.d.ts.map +1 -0
- package/build/esm/wireQueryTypeV2ToSdkQueryMetadata.js +45 -0
- package/build/esm/wireQueryTypeV2ToSdkQueryMetadata.js.map +1 -0
- package/package.json +7 -12
- package/build/cjs/index.cjs +0 -159
- package/build/cjs/index.cjs.map +0 -1
- package/build/cjs/index.d.cts +0 -4
- package/build/cjs/index.d.ts.map +0 -1
- package/build/cjs/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.d.cts +0 -10
- package/build/cjs/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.d.ts.map +0 -1
- package/build/cjs/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.test.d.cts +0 -2
- package/build/cjs/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.test.d.ts.map +0 -1
- package/build/cjs/wirePropertyV2ToSdkPropertyDefinition.d.ts.map +0 -1
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.d.ts +0 -10
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.d.ts.map +0 -1
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.test.d.ts +0 -2
- package/build/esm/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.test.d.ts.map +0 -1
- /package/build/{cjs/empty.test.d.cts → browser/empty.test.d.ts} +0 -0
- /package/build/{cjs → browser}/empty.test.d.ts.map +0 -0
- /package/build/{cjs/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.cts → browser/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,172 @@
|
|
|
1
1
|
# @osdk/generator-converters
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 1252d94: ESM Only
|
|
8
|
+
- 56df85a: We now generate minimal object and interface types
|
|
9
|
+
|
|
10
|
+
### Minor Changes
|
|
11
|
+
|
|
12
|
+
- dc25fb4: Code generation now uses MinQueryDef
|
|
13
|
+
- dc25fb4: Improve query generics
|
|
14
|
+
- dc25fb4: Further simplify types
|
|
15
|
+
- dc25fb4: Renamed definition types to metadata
|
|
16
|
+
- dc25fb4: Modified return type of fetchMetadata to return Object/Interface Definitions
|
|
17
|
+
- dc25fb4: Expose parameters on action metadata
|
|
18
|
+
- dc25fb4: Simplified types
|
|
19
|
+
- dc25fb4: Updates return types of fetchMetadata to be Action and Query Definitions
|
|
20
|
+
- d4d6605: Audited and cleaned up deps
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [5d6d5ab]
|
|
25
|
+
- Updated dependencies [dc25fb4]
|
|
26
|
+
- Updated dependencies [3affe49]
|
|
27
|
+
- Updated dependencies [b946e00]
|
|
28
|
+
- Updated dependencies [a2c7b37]
|
|
29
|
+
- Updated dependencies [0ea1a17]
|
|
30
|
+
- Updated dependencies [dc25fb4]
|
|
31
|
+
- Updated dependencies [9b0617d]
|
|
32
|
+
- Updated dependencies [94105a5]
|
|
33
|
+
- Updated dependencies [5d6d5ab]
|
|
34
|
+
- Updated dependencies [dc25fb4]
|
|
35
|
+
- Updated dependencies [a2c7b37]
|
|
36
|
+
- Updated dependencies [dc25fb4]
|
|
37
|
+
- Updated dependencies [1252d94]
|
|
38
|
+
- Updated dependencies [e6ade8b]
|
|
39
|
+
- Updated dependencies [5d6d5ab]
|
|
40
|
+
- Updated dependencies [dc25fb4]
|
|
41
|
+
- Updated dependencies [5d6d5ab]
|
|
42
|
+
- Updated dependencies [dc25fb4]
|
|
43
|
+
- Updated dependencies [a2c7b37]
|
|
44
|
+
- Updated dependencies [795777a]
|
|
45
|
+
- Updated dependencies [fe9547e]
|
|
46
|
+
- Updated dependencies [95f9247]
|
|
47
|
+
- Updated dependencies [5d6d5ab]
|
|
48
|
+
- Updated dependencies [d2f75f9]
|
|
49
|
+
- Updated dependencies [b7cd0a1]
|
|
50
|
+
- Updated dependencies [512ee35]
|
|
51
|
+
- Updated dependencies [e86c505]
|
|
52
|
+
- Updated dependencies [dc25fb4]
|
|
53
|
+
- Updated dependencies [0ce2858]
|
|
54
|
+
- Updated dependencies [dc25fb4]
|
|
55
|
+
- Updated dependencies [5d6d5ab]
|
|
56
|
+
- Updated dependencies [7c2db00]
|
|
57
|
+
- Updated dependencies [dc25fb4]
|
|
58
|
+
- Updated dependencies [dc25fb4]
|
|
59
|
+
- Updated dependencies [fc28eae]
|
|
60
|
+
- Updated dependencies [56df85a]
|
|
61
|
+
- Updated dependencies [5d6d5ab]
|
|
62
|
+
- Updated dependencies [dc25fb4]
|
|
63
|
+
- Updated dependencies [5d6d5ab]
|
|
64
|
+
- Updated dependencies [a9923f3]
|
|
65
|
+
- Updated dependencies [1f633f7]
|
|
66
|
+
- Updated dependencies [d4d6605]
|
|
67
|
+
- Updated dependencies [64818dc]
|
|
68
|
+
- @osdk/internal.foundry.core@0.2.0
|
|
69
|
+
- @osdk/api@2.0.0
|
|
70
|
+
|
|
71
|
+
## 2.0.0-beta.16
|
|
72
|
+
|
|
73
|
+
### Minor Changes
|
|
74
|
+
|
|
75
|
+
- dc25fb4: Improve query generics
|
|
76
|
+
- dc25fb4: Further simplify types
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [dc25fb4]
|
|
81
|
+
- Updated dependencies [dc25fb4]
|
|
82
|
+
- @osdk/api@2.0.0-beta.16
|
|
83
|
+
- @osdk/internal.foundry.core@0.2.0-beta.10
|
|
84
|
+
|
|
85
|
+
## 2.0.0-beta.15
|
|
86
|
+
|
|
87
|
+
### Minor Changes
|
|
88
|
+
|
|
89
|
+
- dc25fb4: Simplified types
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Updated dependencies [dc25fb4]
|
|
94
|
+
- @osdk/api@2.0.0-beta.15
|
|
95
|
+
|
|
96
|
+
## 2.0.0-beta.14
|
|
97
|
+
|
|
98
|
+
### Minor Changes
|
|
99
|
+
|
|
100
|
+
- d4d6605: Audited and cleaned up deps
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- Updated dependencies [5d6d5ab]
|
|
105
|
+
- Updated dependencies [a2c7b37]
|
|
106
|
+
- Updated dependencies [fe9547e]
|
|
107
|
+
- Updated dependencies [1f633f7]
|
|
108
|
+
- Updated dependencies [d4d6605]
|
|
109
|
+
- @osdk/internal.foundry.core@0.2.0-beta.9
|
|
110
|
+
- @osdk/api@2.0.0-beta.14
|
|
111
|
+
|
|
112
|
+
## 2.0.0-beta.13
|
|
113
|
+
|
|
114
|
+
### Minor Changes
|
|
115
|
+
|
|
116
|
+
- 1488144: Renamed definition types to metadata
|
|
117
|
+
- c28792e: Modified return type of fetchMetadata to return Object/Interface Definitions
|
|
118
|
+
- 26ee3bd: Updates return types of fetchMetadata to be Action and Query Definitions
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- Updated dependencies [1488144]
|
|
123
|
+
- Updated dependencies [c28792e]
|
|
124
|
+
- Updated dependencies [26ee3bd]
|
|
125
|
+
- Updated dependencies [6ab5d2e]
|
|
126
|
+
- @osdk/api@2.0.0-beta.13
|
|
127
|
+
|
|
128
|
+
## 2.0.0-beta.12
|
|
129
|
+
|
|
130
|
+
### Minor Changes
|
|
131
|
+
|
|
132
|
+
- dc25fb4: Expose parameters on action metadata
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- @osdk/api@2.0.0-beta.12
|
|
137
|
+
|
|
138
|
+
## 2.0.0-beta.11
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- @osdk/api@2.0.0-beta.11
|
|
143
|
+
|
|
144
|
+
## 2.0.0-beta.10
|
|
145
|
+
|
|
146
|
+
### Major Changes
|
|
147
|
+
|
|
148
|
+
- 1252d94: ESM Only
|
|
149
|
+
- 56df85a: We now generate minimal object and interface types
|
|
150
|
+
|
|
151
|
+
### Minor Changes
|
|
152
|
+
|
|
153
|
+
- dc25fb4: Code generation now uses MinQueryDef
|
|
154
|
+
|
|
155
|
+
### Patch Changes
|
|
156
|
+
|
|
157
|
+
- Updated dependencies [dc25fb4]
|
|
158
|
+
- Updated dependencies [dc25fb4]
|
|
159
|
+
- Updated dependencies [1252d94]
|
|
160
|
+
- Updated dependencies [56df85a]
|
|
161
|
+
- @osdk/api@2.0.0-beta.10
|
|
162
|
+
|
|
163
|
+
## 2.0.0-beta.9
|
|
164
|
+
|
|
165
|
+
### Patch Changes
|
|
166
|
+
|
|
167
|
+
- Updated dependencies [b946e00]
|
|
168
|
+
- @osdk/api@2.0.0-beta.9
|
|
169
|
+
|
|
3
170
|
## 2.0.0-beta.8
|
|
4
171
|
|
|
5
172
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { InterfaceMetadata } from "@osdk/api";
|
|
2
2
|
import type { InterfaceType } from "@osdk/internal.foundry.core";
|
|
3
|
-
export declare function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType: InterfaceType, v2: boolean):
|
|
3
|
+
export declare function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType: InterfaceType, v2: boolean): InterfaceMetadata;
|
|
4
4
|
//# sourceMappingURL=__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.d.ts","sourceRoot":"","sources":["../../src/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.d.ts","sourceRoot":"","sources":["../../src/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,wBAAgB,mDAAmD,CACjE,aAAa,EAAE,aAAa,EAC5B,EAAE,EAAE,OAAO,GACV,iBAAiB,CAuBnB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
import { wirePropertyV2ToSdkPropertyDefinition } from "./wirePropertyV2ToSdkPropertyDefinition.js";
|
|
17
|
+
export function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType) {
|
|
18
|
+
return {
|
|
19
|
+
type: "interface",
|
|
20
|
+
rid: interfaceType.rid,
|
|
21
|
+
apiName: interfaceType.apiName,
|
|
22
|
+
displayName: interfaceType.displayName,
|
|
23
|
+
description: interfaceType.description,
|
|
24
|
+
implements: interfaceType.extendsInterfaces,
|
|
25
|
+
properties: Object.fromEntries(Object.entries(interfaceType.properties).map(([key, value]) => {
|
|
26
|
+
return [key, wirePropertyV2ToSdkPropertyDefinition(value, true)];
|
|
27
|
+
})),
|
|
28
|
+
links: {}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js","names":["wirePropertyV2ToSdkPropertyDefinition","__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition","interfaceType","type","rid","apiName","displayName","description","implements","extendsInterfaces","properties","Object","fromEntries","entries","map","key","value","links"],"sources":["__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js"],"sourcesContent":["/*\n * Copyright 2024 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 { wirePropertyV2ToSdkPropertyDefinition } from \"./wirePropertyV2ToSdkPropertyDefinition.js\";\nexport function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType, v2) {\n return {\n type: \"interface\",\n rid: interfaceType.rid,\n apiName: interfaceType.apiName,\n displayName: interfaceType.displayName,\n description: interfaceType.description,\n implements: interfaceType.extendsInterfaces,\n properties: Object.fromEntries(Object.entries(interfaceType.properties).map(([key, value]) => {\n return [\n key,\n wirePropertyV2ToSdkPropertyDefinition(value, true),\n ];\n })),\n links: {},\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,qCAAqC,QAAQ,4CAA4C;AAClG,OAAO,SAASC,mDAAmDA,CAACC,aAAa,EAAM;EACnF,OAAO;IACHC,IAAI,EAAE,WAAW;IACjBC,GAAG,EAAEF,aAAa,CAACE,GAAG;IACtBC,OAAO,EAAEH,aAAa,CAACG,OAAO;IAC9BC,WAAW,EAAEJ,aAAa,CAACI,WAAW;IACtCC,WAAW,EAAEL,aAAa,CAACK,WAAW;IACtCC,UAAU,EAAEN,aAAa,CAACO,iBAAiB;IAC3CC,UAAU,EAAEC,MAAM,CAACC,WAAW,CAACD,MAAM,CAACE,OAAO,CAACX,aAAa,CAACQ,UAAU,CAAC,CAACI,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;MAC1F,OAAO,CACHD,GAAG,EACHf,qCAAqC,CAACgB,KAAK,EAAE,IAAI,CAAC,CACrD;IACL,CAAC,CAAC,CAAC;IACHC,KAAK,EAAE,CAAC;EACZ,CAAC;AACL","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
import { describe, it } from "vitest";
|
|
17
|
+
describe("nothing", () => {
|
|
18
|
+
it("does nothing", () => {
|
|
19
|
+
return true;
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=empty.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty.test.js","names":["describe","it"],"sources":["empty.test.js"],"sourcesContent":["/*\n * Copyright 2024 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 { describe, it } from \"vitest\";\ndescribe(\"nothing\", () => {\n it(\"does nothing\", () => {\n return true;\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,EAAE,QAAQ,QAAQ;AACrCD,QAAQ,CAAC,SAAS,EAAE,MAAM;EACtBC,EAAE,CAAC,cAAc,EAAE,MAAM;IACrB,OAAO,IAAI;EACf,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ActionTypeV2 } from "@osdk/internal.foundry.core";
|
|
2
|
+
export type ModifiedEntityTypes = {
|
|
3
|
+
addedObjects: Set<string>;
|
|
4
|
+
modifiedObjects: Set<string>;
|
|
5
|
+
};
|
|
6
|
+
export declare function getModifiedEntityTypes(action: ActionTypeV2): ModifiedEntityTypes;
|
|
7
|
+
//# sourceMappingURL=getEditedEntities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEditedEntities.d.ts","sourceRoot":"","sources":["../../src/getEditedEntities.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,YAAY,GACnB,mBAAmB,CAsBrB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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
|
+
export function getModifiedEntityTypes(action) {
|
|
17
|
+
const addedObjects = new Set();
|
|
18
|
+
const modifiedObjects = new Set();
|
|
19
|
+
for (const operation of action.operations) {
|
|
20
|
+
switch (operation.type) {
|
|
21
|
+
case "createObject":
|
|
22
|
+
addedObjects.add(operation.objectTypeApiName);
|
|
23
|
+
break;
|
|
24
|
+
case "modifyObject":
|
|
25
|
+
modifiedObjects.add(operation.objectTypeApiName);
|
|
26
|
+
break;
|
|
27
|
+
case "deleteObject":
|
|
28
|
+
case "createLink":
|
|
29
|
+
case "deleteLink":
|
|
30
|
+
case "createInterfaceObject":
|
|
31
|
+
case "modifyInterfaceObject":
|
|
32
|
+
break;
|
|
33
|
+
default:
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
addedObjects,
|
|
38
|
+
modifiedObjects
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=getEditedEntities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEditedEntities.js","names":["getModifiedEntityTypes","action","addedObjects","Set","modifiedObjects","operation","operations","type","add","objectTypeApiName"],"sources":["getEditedEntities.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 */\nexport function getModifiedEntityTypes(action) {\n const addedObjects = new Set();\n const modifiedObjects = new Set();\n for (const operation of action.operations) {\n switch (operation.type) {\n case \"createObject\":\n addedObjects.add(operation.objectTypeApiName);\n break;\n case \"modifyObject\":\n modifiedObjects.add(operation.objectTypeApiName);\n break;\n case \"deleteObject\":\n case \"createLink\":\n case \"deleteLink\":\n case \"createInterfaceObject\":\n case \"modifyInterfaceObject\":\n break;\n default:\n const _ = operation;\n }\n }\n return { addedObjects, modifiedObjects };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,sBAAsBA,CAACC,MAAM,EAAE;EAC3C,MAAMC,YAAY,GAAG,IAAIC,GAAG,CAAC,CAAC;EAC9B,MAAMC,eAAe,GAAG,IAAID,GAAG,CAAC,CAAC;EACjC,KAAK,MAAME,SAAS,IAAIJ,MAAM,CAACK,UAAU,EAAE;IACvC,QAAQD,SAAS,CAACE,IAAI;MAClB,KAAK,cAAc;QACfL,YAAY,CAACM,GAAG,CAACH,SAAS,CAACI,iBAAiB,CAAC;QAC7C;MACJ,KAAK,cAAc;QACfL,eAAe,CAACI,GAAG,CAACH,SAAS,CAACI,iBAAiB,CAAC;QAChD;MACJ,KAAK,cAAc;MACnB,KAAK,YAAY;MACjB,KAAK,YAAY;MACjB,KAAK,uBAAuB;MAC5B,KAAK,uBAAuB;QACxB;MACJ;IAEJ;EACJ;EACA,OAAO;IAAEP,YAAY;IAAEE;EAAgB,CAAC;AAC5C","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from "./__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js";
|
|
2
|
+
export { wireActionTypeV2ToSdkActionMetadata } from "./wireActionTypeV2ToSdkActionMetadata.js";
|
|
3
|
+
export { wireObjectTypeFullMetadataToSdkObjectMetadata } from "./wireObjectTypeFullMetadataToSdkObjectMetadata.js";
|
|
4
|
+
export { wirePropertyV2ToSdkPropertyDefinition } from "./wirePropertyV2ToSdkPropertyDefinition.js";
|
|
5
|
+
export { wireQueryDataTypeToQueryDataTypeDefinition } from "./wireQueryDataTypeToQueryDataTypeDefinition.js";
|
|
6
|
+
export { wireQueryTypeV2ToSdkQueryMetadata } from "./wireQueryTypeV2ToSdkQueryMetadata.js";
|
|
7
|
+
export { wireQueryParameterV2ToQueryParameterDefinition } from "./wireQueryTypeV2ToSdkQueryMetadata.js";
|
|
8
|
+
export { wireQueryTypeV2ToSdkQueryDefinitionNoParams } from "./wireQueryTypeV2ToSdkQueryMetadata.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mDAAmD,EAAE,MAAM,0DAA0D,CAAC;AAC/H,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,6CAA6C,EAAE,MAAM,oDAAoD,CAAC;AACnH,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC;AAC7G,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,wCAAwC,CAAC;AACxG,OAAO,EAAE,2CAA2C,EAAE,MAAM,wCAAwC,CAAC"}
|
package/build/browser/index.js
CHANGED
|
@@ -1,155 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
type: objectPropertyTypeToSdkPropertyDefinition(input.dataType),
|
|
25
|
-
nullable: input.nullable == null ? isNullable : input.nullable
|
|
26
|
-
};
|
|
27
|
-
case "array": {
|
|
28
|
-
return {
|
|
29
|
-
displayName: input.displayName,
|
|
30
|
-
multiplicity: true,
|
|
31
|
-
description: input.description,
|
|
32
|
-
type: objectPropertyTypeToSdkPropertyDefinition(input.dataType),
|
|
33
|
-
nullable: true
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
default:
|
|
37
|
-
input.dataType;
|
|
38
|
-
throw new Error(`Unexpected data type ${JSON.stringify(input.dataType)}`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function objectPropertyTypeToSdkPropertyDefinition(propertyType) {
|
|
42
|
-
switch (propertyType.type) {
|
|
43
|
-
case "integer":
|
|
44
|
-
case "string":
|
|
45
|
-
case "byte":
|
|
46
|
-
case "decimal":
|
|
47
|
-
case "double":
|
|
48
|
-
case "float":
|
|
49
|
-
case "long":
|
|
50
|
-
case "short":
|
|
51
|
-
case "boolean":
|
|
52
|
-
case "attachment":
|
|
53
|
-
case "geopoint":
|
|
54
|
-
case "geoshape":
|
|
55
|
-
case "timestamp":
|
|
56
|
-
case "marking":
|
|
57
|
-
return propertyType.type;
|
|
58
|
-
case "date":
|
|
59
|
-
return "datetime";
|
|
60
|
-
case "array":
|
|
61
|
-
return objectPropertyTypeToSdkPropertyDefinition(propertyType.subType);
|
|
62
|
-
case "timeseries":
|
|
63
|
-
if (propertyType.itemType.type === "string") {
|
|
64
|
-
return "stringTimeseries";
|
|
65
|
-
}
|
|
66
|
-
return "numericTimeseries";
|
|
67
|
-
default:
|
|
68
|
-
throw new Error(`Unexpected data type ${JSON.stringify(propertyType)}`);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// src/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.ts
|
|
73
|
-
function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType, v2) {
|
|
74
|
-
return {
|
|
75
|
-
type: "interface",
|
|
76
|
-
apiName: interfaceType.apiName,
|
|
77
|
-
displayName: interfaceType.displayName,
|
|
78
|
-
description: interfaceType.description,
|
|
79
|
-
implements: interfaceType.extendsInterfaces,
|
|
80
|
-
properties: Object.fromEntries(Object.entries(interfaceType.properties).map(([key, value]) => {
|
|
81
|
-
return [key, wirePropertyV2ToSdkPropertyDefinition(value, true)];
|
|
82
|
-
})),
|
|
83
|
-
links: {}
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// src/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.ts
|
|
88
|
-
function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {
|
|
89
|
-
switch (input.dataType.type) {
|
|
90
|
-
case "integer":
|
|
91
|
-
case "double":
|
|
92
|
-
case "string":
|
|
93
|
-
case "boolean":
|
|
94
|
-
case "byte":
|
|
95
|
-
case "long":
|
|
96
|
-
case "short": {
|
|
97
|
-
return input.dataType.type;
|
|
98
|
-
}
|
|
99
|
-
case "date": {
|
|
100
|
-
return "datetime";
|
|
101
|
-
}
|
|
102
|
-
case "timestamp": {
|
|
103
|
-
return "timestamp";
|
|
104
|
-
}
|
|
105
|
-
case "geopoint":
|
|
106
|
-
case "geoshape":
|
|
107
|
-
case "decimal":
|
|
108
|
-
case "attachment":
|
|
109
|
-
case "timeseries":
|
|
110
|
-
case "array":
|
|
111
|
-
case "marking":
|
|
112
|
-
case "float":
|
|
113
|
-
throw new Error(`Type not supported for primaryKey: ${input.dataType.type}`);
|
|
114
|
-
default:
|
|
115
|
-
input.dataType;
|
|
116
|
-
throw new Error(`Unknown type encountered for primaryKey: ${input.dataType}`);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// src/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.ts
|
|
121
|
-
function wireObjectTypeFullMetadataToSdkObjectTypeDefinition(objectTypeWithLink, v2) {
|
|
122
|
-
if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] === void 0) {
|
|
123
|
-
throw new Error(`Primary key ${objectTypeWithLink.objectType.primaryKey} not found in ${objectTypeWithLink.objectType.apiName}`);
|
|
124
|
-
}
|
|
125
|
-
if (objectTypeWithLink.implementsInterfaces2 == null && objectTypeWithLink.implementsInterfaces != null) {
|
|
126
|
-
throw new Error("Your ontology.json file is missing the implementsInterfaces2 field. Please regenerate it.");
|
|
127
|
-
}
|
|
128
|
-
const interfaceMap = objectTypeWithLink.implementsInterfaces2 ? Object.fromEntries(Object.entries(objectTypeWithLink.implementsInterfaces2).map(([interfaceApiName, impl]) => [interfaceApiName, impl.properties])) : void 0;
|
|
129
|
-
return {
|
|
130
|
-
type: "object",
|
|
131
|
-
apiName: objectTypeWithLink.objectType.apiName,
|
|
132
|
-
description: objectTypeWithLink.objectType.description,
|
|
133
|
-
primaryKeyApiName: objectTypeWithLink.objectType.primaryKey,
|
|
134
|
-
primaryKeyType: wirePropertyV2ToSdkPrimaryKeyTypeDefinition(objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey]),
|
|
135
|
-
links: Object.fromEntries(objectTypeWithLink.linkTypes.map((linkType) => {
|
|
136
|
-
return [linkType.apiName, {
|
|
137
|
-
multiplicity: linkType.cardinality === "MANY",
|
|
138
|
-
targetType: linkType.objectTypeApiName
|
|
139
|
-
}];
|
|
140
|
-
})),
|
|
141
|
-
properties: Object.fromEntries(Object.entries(objectTypeWithLink.objectType.properties).map(([key, value]) => [key, wirePropertyV2ToSdkPropertyDefinition(value, !(v2 && objectTypeWithLink.objectType.primaryKey === key))])),
|
|
142
|
-
spts: objectTypeWithLink.sharedPropertyTypeMapping,
|
|
143
|
-
inverseSpts: invertProps(objectTypeWithLink.sharedPropertyTypeMapping),
|
|
144
|
-
implements: objectTypeWithLink.implementsInterfaces,
|
|
145
|
-
interfaceMap,
|
|
146
|
-
inverseInterfaceMap: interfaceMap ? Object.fromEntries(Object.entries(interfaceMap).map(([interfaceApiName, props]) => [interfaceApiName, invertProps(props)])) : void 0
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
function invertProps(a) {
|
|
150
|
-
return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) : void 0;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition, wireObjectTypeFullMetadataToSdkObjectTypeDefinition, wirePropertyV2ToSdkPropertyDefinition };
|
|
154
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 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
|
+
export { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from "./__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js";
|
|
17
|
+
export { wireActionTypeV2ToSdkActionMetadata } from "./wireActionTypeV2ToSdkActionMetadata.js";
|
|
18
|
+
export { wireObjectTypeFullMetadataToSdkObjectMetadata } from "./wireObjectTypeFullMetadataToSdkObjectMetadata.js";
|
|
19
|
+
export { wirePropertyV2ToSdkPropertyDefinition } from "./wirePropertyV2ToSdkPropertyDefinition.js";
|
|
20
|
+
export { wireQueryDataTypeToQueryDataTypeDefinition } from "./wireQueryDataTypeToQueryDataTypeDefinition.js";
|
|
21
|
+
export { wireQueryTypeV2ToSdkQueryMetadata } from "./wireQueryTypeV2ToSdkQueryMetadata.js";
|
|
22
|
+
export { wireQueryParameterV2ToQueryParameterDefinition } from "./wireQueryTypeV2ToSdkQueryMetadata.js";
|
|
23
|
+
export { wireQueryTypeV2ToSdkQueryDefinitionNoParams } from "./wireQueryTypeV2ToSdkQueryMetadata.js";
|
|
155
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/wirePropertyV2ToSdkPropertyDefinition.ts","../../src/__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.ts","../../src/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.ts","../../src/wireObjectTypeFullMetadataToSdkObjectTypeDefinition.ts"],"names":[],"mappings":";AAgBO,SAAS,qCAAA,CAAsC,KAAO,EAAA,UAAA,GAAa,IAAM,EAAA;AAC9E,EAAQ,QAAA,KAAA,CAAM,SAAS,IAAM;AAAA,IAC3B,KAAK,SAAA,CAAA;AAAA,IACL,KAAK,QAAA,CAAA;AAAA,IACL,KAAK,MAAA,CAAA;AAAA,IACL,KAAK,SAAA,CAAA;AAAA,IACL,KAAK,QAAA,CAAA;AAAA,IACL,KAAK,OAAA,CAAA;AAAA,IACL,KAAK,MAAA,CAAA;AAAA,IACL,KAAK,OAAA,CAAA;AAAA,IACL,KAAK,SAAA,CAAA;AAAA,IACL,KAAK,MAAA,CAAA;AAAA,IACL,KAAK,YAAA,CAAA;AAAA,IACL,KAAK,UAAA,CAAA;AAAA,IACL,KAAK,UAAA,CAAA;AAAA,IACL,KAAK,WAAA,CAAA;AAAA,IACL,KAAK,YAAA,CAAA;AAAA,IACL,KAAK,SAAA;AACH,MAAO,OAAA;AAAA,QACL,aAAa,KAAM,CAAA,WAAA;AAAA,QACnB,YAAc,EAAA,KAAA;AAAA,QACd,aAAa,KAAM,CAAA,WAAA;AAAA,QACnB,IAAA,EAAM,yCAA0C,CAAA,KAAA,CAAM,QAAQ,CAAA;AAAA,QAC9D,QAAU,EAAA,KAAA,CAAM,QAAY,IAAA,IAAA,GAAO,aAAa,KAAM,CAAA,QAAA;AAAA,OACxD,CAAA;AAAA,IACF,KAAK,OACH,EAAA;AACE,MAAO,OAAA;AAAA,QACL,aAAa,KAAM,CAAA,WAAA;AAAA,QACnB,YAAc,EAAA,IAAA;AAAA,QACd,aAAa,KAAM,CAAA,WAAA;AAAA,QACnB,IAAA,EAAM,yCAA0C,CAA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A,EAAG,CAAC,CAAM,KAAA,CAAC,GAAG,CAAC,CAAC,CAAC,CAAI,GAAA,KAAA,CAAA,CAAA;AAC7E","file":"index.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\nexport function wirePropertyV2ToSdkPropertyDefinition(input, isNullable = true) {\n switch (input.dataType.type) {\n case \"integer\":\n case \"string\":\n case \"byte\":\n case \"decimal\":\n case \"double\":\n case \"float\":\n case \"long\":\n case \"short\":\n case \"boolean\":\n case \"date\":\n case \"attachment\":\n case \"geopoint\":\n case \"geoshape\":\n case \"timestamp\":\n case \"timeseries\":\n case \"marking\":\n return {\n displayName: input.displayName,\n multiplicity: false,\n description: input.description,\n type: objectPropertyTypeToSdkPropertyDefinition(input.dataType),\n nullable: input.nullable == null ? isNullable : input.nullable\n };\n case \"array\":\n {\n return {\n displayName: input.displayName,\n multiplicity: true,\n description: input.description,\n type: objectPropertyTypeToSdkPropertyDefinition(input.dataType),\n nullable: true\n };\n }\n default:\n const _ = input.dataType;\n throw new Error(`Unexpected data type ${JSON.stringify(input.dataType)}`);\n }\n}\nfunction objectPropertyTypeToSdkPropertyDefinition(propertyType) {\n switch (propertyType.type) {\n case \"integer\":\n case \"string\":\n case \"byte\":\n case \"decimal\":\n case \"double\":\n case \"float\":\n case \"long\":\n case \"short\":\n case \"boolean\":\n case \"attachment\":\n case \"geopoint\":\n case \"geoshape\":\n case \"timestamp\":\n case \"marking\":\n return propertyType.type;\n case \"date\":\n return \"datetime\";\n case \"array\":\n return objectPropertyTypeToSdkPropertyDefinition(propertyType.subType);\n case \"timeseries\":\n if (propertyType.itemType.type === \"string\") {\n return \"stringTimeseries\";\n }\n return \"numericTimeseries\";\n default:\n const _ = propertyType;\n throw new Error(`Unexpected data type ${JSON.stringify(propertyType)}`);\n }\n}","/*\n * Copyright 2024 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 { wirePropertyV2ToSdkPropertyDefinition } from \"./wirePropertyV2ToSdkPropertyDefinition.js\";\nexport function __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(interfaceType, v2) {\n return {\n type: \"interface\",\n apiName: interfaceType.apiName,\n displayName: interfaceType.displayName,\n description: interfaceType.description,\n implements: interfaceType.extendsInterfaces,\n properties: Object.fromEntries(Object.entries(interfaceType.properties).map(([key, value]) => {\n return [key, wirePropertyV2ToSdkPropertyDefinition(value, true)];\n })),\n links: {}\n };\n}","/*\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\nexport function wirePropertyV2ToSdkPrimaryKeyTypeDefinition(input) {\n switch (input.dataType.type) {\n case \"integer\":\n case \"double\":\n case \"string\":\n case \"boolean\":\n case \"byte\":\n case \"long\":\n case \"short\":\n {\n return input.dataType.type;\n }\n case \"date\":\n {\n return \"datetime\";\n }\n case \"timestamp\":\n {\n return \"timestamp\";\n }\n case \"geopoint\":\n case \"geoshape\":\n case \"decimal\":\n case \"attachment\":\n case \"timeseries\":\n case \"array\":\n case \"marking\":\n case \"float\":\n throw new Error(`Type not supported for primaryKey: ${input.dataType.type}`);\n default:\n const _ = input.dataType;\n throw new Error(`Unknown type encountered for primaryKey: ${input.dataType}`);\n }\n}","/*\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 { wirePropertyV2ToSdkPrimaryKeyTypeDefinition } from \"./wirePropertyV2ToSdkPrimaryKeyTypeDefinition.js\";\nimport { wirePropertyV2ToSdkPropertyDefinition } from \"./wirePropertyV2ToSdkPropertyDefinition.js\";\nexport function wireObjectTypeFullMetadataToSdkObjectTypeDefinition(objectTypeWithLink, v2) {\n if (objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey] === undefined) {\n throw new Error(`Primary key ${objectTypeWithLink.objectType.primaryKey} not found in ${objectTypeWithLink.objectType.apiName}`);\n }\n\n // saved ontology.json files may not have this implementsInterfaces2 so we need to handle\n if (objectTypeWithLink.implementsInterfaces2 == null && objectTypeWithLink.implementsInterfaces != null) {\n throw new Error(\"Your ontology.json file is missing the implementsInterfaces2 field. Please regenerate it.\");\n }\n const interfaceMap = objectTypeWithLink.implementsInterfaces2 ? Object.fromEntries(Object.entries(objectTypeWithLink.implementsInterfaces2).map(([interfaceApiName, impl]) => [interfaceApiName, impl.properties])) : undefined;\n return {\n type: \"object\",\n apiName: objectTypeWithLink.objectType.apiName,\n description: objectTypeWithLink.objectType.description,\n primaryKeyApiName: objectTypeWithLink.objectType.primaryKey,\n primaryKeyType: wirePropertyV2ToSdkPrimaryKeyTypeDefinition(objectTypeWithLink.objectType.properties[objectTypeWithLink.objectType.primaryKey]),\n links: Object.fromEntries(objectTypeWithLink.linkTypes.map(linkType => {\n return [linkType.apiName, {\n multiplicity: linkType.cardinality === \"MANY\",\n targetType: linkType.objectTypeApiName\n }];\n })),\n properties: Object.fromEntries(Object.entries(objectTypeWithLink.objectType.properties).map(([key, value]) => [key, wirePropertyV2ToSdkPropertyDefinition(value, !(v2 && objectTypeWithLink.objectType.primaryKey === key))])),\n spts: objectTypeWithLink.sharedPropertyTypeMapping,\n inverseSpts: invertProps(objectTypeWithLink.sharedPropertyTypeMapping),\n implements: objectTypeWithLink.implementsInterfaces,\n interfaceMap,\n inverseInterfaceMap: interfaceMap ? Object.fromEntries(Object.entries(interfaceMap).map(([interfaceApiName, props]) => [interfaceApiName, invertProps(props)])) : undefined\n };\n}\nfunction invertProps(a) {\n return a ? Object.fromEntries(Object.entries(a).map(([k, v]) => [v, k])) : undefined;\n}"]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition","wireActionTypeV2ToSdkActionMetadata","wireObjectTypeFullMetadataToSdkObjectMetadata","wirePropertyV2ToSdkPropertyDefinition","wireQueryDataTypeToQueryDataTypeDefinition","wireQueryTypeV2ToSdkQueryMetadata","wireQueryParameterV2ToQueryParameterDefinition","wireQueryTypeV2ToSdkQueryDefinitionNoParams"],"sources":["index.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nexport { __UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition } from \"./__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition.js\";\nexport { wireActionTypeV2ToSdkActionMetadata } from \"./wireActionTypeV2ToSdkActionMetadata.js\";\nexport { wireObjectTypeFullMetadataToSdkObjectMetadata } from \"./wireObjectTypeFullMetadataToSdkObjectMetadata.js\";\nexport { wirePropertyV2ToSdkPropertyDefinition } from \"./wirePropertyV2ToSdkPropertyDefinition.js\";\nexport { wireQueryDataTypeToQueryDataTypeDefinition } from \"./wireQueryDataTypeToQueryDataTypeDefinition.js\";\nexport { wireQueryTypeV2ToSdkQueryMetadata } from \"./wireQueryTypeV2ToSdkQueryMetadata.js\";\nexport { wireQueryParameterV2ToQueryParameterDefinition } from \"./wireQueryTypeV2ToSdkQueryMetadata.js\";\nexport { wireQueryTypeV2ToSdkQueryDefinitionNoParams } from \"./wireQueryTypeV2ToSdkQueryMetadata.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,mDAAmD,QAAQ,0DAA0D;AAC9H,SAASC,mCAAmC,QAAQ,0CAA0C;AAC9F,SAASC,6CAA6C,QAAQ,oDAAoD;AAClH,SAASC,qCAAqC,QAAQ,4CAA4C;AAClG,SAASC,0CAA0C,QAAQ,iDAAiD;AAC5G,SAASC,iCAAiC,QAAQ,wCAAwC;AAC1F,SAASC,8CAA8C,QAAQ,wCAAwC;AACvG,SAASC,2CAA2C,QAAQ,wCAAwC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isNullableQueryDataType.d.ts","sourceRoot":"","sources":["../../src/isNullableQueryDataType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAQrE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 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
|
+
export function isNullableQueryDataType(input) {
|
|
17
|
+
if (input.type === "null") {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
if (input.type === "union") {
|
|
21
|
+
return input.unionTypes.some(t => isNullableQueryDataType(t));
|
|
22
|
+
}
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=isNullableQueryDataType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isNullableQueryDataType.js","names":["isNullableQueryDataType","input","type","unionTypes","some","t"],"sources":["isNullableQueryDataType.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 */\nexport function isNullableQueryDataType(input) {\n if (input.type === \"null\") {\n return true;\n }\n if (input.type === \"union\") {\n return input.unionTypes.some(t => isNullableQueryDataType(t));\n }\n return false;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,uBAAuBA,CAACC,KAAK,EAAE;EAC3C,IAAIA,KAAK,CAACC,IAAI,KAAK,MAAM,EAAE;IACvB,OAAO,IAAI;EACf;EACA,IAAID,KAAK,CAACC,IAAI,KAAK,OAAO,EAAE;IACxB,OAAOD,KAAK,CAACE,UAAU,CAACC,IAAI,CAACC,CAAC,IAAIL,uBAAuB,CAACK,CAAC,CAAC,CAAC;EACjE;EACA,OAAO,KAAK;AAChB","ignoreList":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ActionMetadata } from "@osdk/api";
|
|
2
|
+
import type { ActionTypeV2 } from "@osdk/internal.foundry.core";
|
|
3
|
+
export declare function wireActionTypeV2ToSdkActionMetadata(input: ActionTypeV2): ActionMetadata;
|
|
4
|
+
//# sourceMappingURL=wireActionTypeV2ToSdkActionMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wireActionTypeV2ToSdkActionMetadata.d.ts","sourceRoot":"","sources":["../../src/wireActionTypeV2ToSdkActionMetadata.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAGV,YAAY,EACb,MAAM,6BAA6B,CAAC;AAGrC,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,YAAY,GAClB,cAAc,CAmBhB"}
|