@osdk/generator 2.3.1 → 2.4.0-beta.10

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,40 +1,72 @@
1
1
  # @osdk/generator
2
2
 
3
- ## 2.3.1
3
+ ## 2.4.0-beta.10
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - @osdk/api@2.3.1
8
- - @osdk/generator-converters@2.3.1
7
+ - @osdk/api@2.4.0-beta.10
8
+ - @osdk/generator-converters@2.4.0-beta.10
9
9
 
10
- ## 2.3.0
10
+ ## 2.4.0-beta.9
11
11
 
12
12
  ### Patch Changes
13
13
 
14
- - 322c5bc: Simulated release
15
- - fe00f84: Generate deprecation warnings for object properties
16
- - ef46ed6: Add protection for dropping unsupported enums instead of throwing"
17
- - f8db93d: improve media upload (beta)
18
- - Updated dependencies [322c5bc]
19
- - Updated dependencies [322c5bc]
20
- - Updated dependencies [43c5547]
21
- - Updated dependencies [bc0e186]
22
- - Updated dependencies [e8c4aed]
23
- - Updated dependencies [f82cff2]
24
- - Updated dependencies [ef46ed6]
25
- - Updated dependencies [12d599f]
26
- - Updated dependencies [f8db93d]
27
- - Updated dependencies [3b5ccaa]
28
- - @osdk/api@2.3.0
29
- - @osdk/generator-converters@2.3.0
14
+ - Updated dependencies [9101bad]
15
+ - @osdk/api@2.4.0-beta.9
16
+ - @osdk/generator-converters@2.4.0-beta.9
17
+
18
+ ## 2.4.0-beta.8
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [9f4fe9e]
23
+ - @osdk/api@2.4.0-beta.8
24
+ - @osdk/generator-converters@2.4.0-beta.8
25
+
26
+ ## 2.4.0-beta.7
27
+
28
+ ### Patch Changes
29
+
30
+ - @osdk/api@2.4.0-beta.7
31
+ - @osdk/generator-converters@2.4.0-beta.7
32
+
33
+ ## 2.4.0-beta.6
34
+
35
+ ### Patch Changes
36
+
37
+ - @osdk/api@2.4.0-beta.6
38
+ - @osdk/generator-converters@2.4.0-beta.6
39
+
40
+ ## 2.4.0-beta.5
41
+
42
+ ### Patch Changes
43
+
44
+ - @osdk/api@2.4.0-beta.5
45
+ - @osdk/generator-converters@2.4.0-beta.5
46
+
47
+ ## 2.4.0-beta.4
48
+
49
+ ### Patch Changes
50
+
51
+ - @osdk/api@2.4.0-beta.4
52
+ - @osdk/generator-converters@2.4.0-beta.4
53
+
54
+ ## 2.4.0-beta.3
55
+
56
+ ### Patch Changes
57
+
58
+ - @osdk/api@2.4.0-beta.3
59
+ - @osdk/generator-converters@2.4.0-beta.3
30
60
 
31
- ## 2.3.0-rc.11
61
+ ## 2.4.0-beta.2
32
62
 
33
63
  ### Patch Changes
34
64
 
35
- - Updated dependencies [f82cff2]
36
- - @osdk/api@2.3.0-rc.11
37
- - @osdk/generator-converters@2.3.0-rc.11
65
+ - Updated dependencies [29d2ada]
66
+ - Updated dependencies [8c95154]
67
+ - Updated dependencies [c32dcf2]
68
+ - @osdk/api@2.4.0-beta.2
69
+ - @osdk/generator-converters@2.4.0-beta.2
38
70
 
39
71
  ## 2.3.0-beta.10
40
72
 
@@ -54,10 +54,12 @@ export function getObjectTypesFromQueryDataType(dataType, types) {
54
54
  case "twoDimensionalAggregation":
55
55
  case "entrySet":
56
56
  case "unsupported":
57
+ case "interfaceObject":
58
+ case "interfaceObjectSet":
57
59
  /* complete no-op */
58
60
  return;
59
61
  default:
60
- throw new Error(`Cannot find object types from unsupported QueryDataType ${dataType.type}`);
62
+ throw new Error(`Unknown query data type ${dataType.type}`);
61
63
  }
62
64
  }
63
65
  //# sourceMappingURL=getObjectTypesFromQueryDataType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getObjectTypesFromQueryDataType.js","names":["getObjectTypesFromQueryDataType","dataType","types","type","subType","add","objectTypeApiName","prop","Object","values","fields","fieldType","unionTypes","keyType","valueType","Error"],"sources":["getObjectTypesFromQueryDataType.ts"],"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 */\n\nimport type { QueryDataType } from \"@osdk/foundry.ontologies\";\n\nexport function getObjectTypesFromQueryDataType(\n dataType: QueryDataType,\n types: Set<string>,\n): void {\n switch (dataType.type) {\n case \"array\":\n case \"set\":\n getObjectTypesFromQueryDataType(dataType.subType, types);\n return;\n\n case \"object\":\n types.add(dataType.objectTypeApiName);\n return;\n\n case \"objectSet\":\n types.add(dataType.objectTypeApiName!);\n return;\n\n case \"struct\":\n for (const prop of Object.values(dataType.fields)) {\n getObjectTypesFromQueryDataType(prop.fieldType, types);\n }\n return;\n\n case \"union\":\n for (const type of dataType.unionTypes) {\n getObjectTypesFromQueryDataType(type, types);\n }\n return;\n\n case \"entrySet\":\n getObjectTypesFromQueryDataType(dataType.keyType, types);\n getObjectTypesFromQueryDataType(dataType.valueType, types);\n return;\n\n case \"attachment\":\n case \"boolean\":\n case \"date\":\n case \"double\":\n case \"float\":\n case \"integer\":\n case \"long\":\n case \"null\":\n case \"string\":\n case \"threeDimensionalAggregation\":\n case \"timestamp\":\n case \"twoDimensionalAggregation\":\n case \"entrySet\":\n case \"unsupported\":\n /* complete no-op */\n return;\n\n default:\n const _: never = dataType;\n throw new Error(\n `Cannot find object types from unsupported QueryDataType ${\n (dataType as any).type\n }`,\n );\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAO,SAASA,+BAA+BA,CAC7CC,QAAuB,EACvBC,KAAkB,EACZ;EACN,QAAQD,QAAQ,CAACE,IAAI;IACnB,KAAK,OAAO;IACZ,KAAK,KAAK;MACRH,+BAA+B,CAACC,QAAQ,CAACG,OAAO,EAAEF,KAAK,CAAC;MACxD;IAEF,KAAK,QAAQ;MACXA,KAAK,CAACG,GAAG,CAACJ,QAAQ,CAACK,iBAAiB,CAAC;MACrC;IAEF,KAAK,WAAW;MACdJ,KAAK,CAACG,GAAG,CAACJ,QAAQ,CAACK,iBAAkB,CAAC;MACtC;IAEF,KAAK,QAAQ;MACX,KAAK,MAAMC,IAAI,IAAIC,MAAM,CAACC,MAAM,CAACR,QAAQ,CAACS,MAAM,CAAC,EAAE;QACjDV,+BAA+B,CAACO,IAAI,CAACI,SAAS,EAAET,KAAK,CAAC;MACxD;MACA;IAEF,KAAK,OAAO;MACV,KAAK,MAAMC,IAAI,IAAIF,QAAQ,CAACW,UAAU,EAAE;QACtCZ,+BAA+B,CAACG,IAAI,EAAED,KAAK,CAAC;MAC9C;MACA;IAEF,KAAK,UAAU;MACbF,+BAA+B,CAACC,QAAQ,CAACY,OAAO,EAAEX,KAAK,CAAC;MACxDF,+BAA+B,CAACC,QAAQ,CAACa,SAAS,EAAEZ,KAAK,CAAC;MAC1D;IAEF,KAAK,YAAY;IACjB,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,QAAQ;IACb,KAAK,OAAO;IACZ,KAAK,SAAS;IACd,KAAK,MAAM;IACX,KAAK,MAAM;IACX,KAAK,QAAQ;IACb,KAAK,6BAA6B;IAClC,KAAK,WAAW;IAChB,KAAK,2BAA2B;IAChC,KAAK,UAAU;IACf,KAAK,aAAa;MAChB;MACA;IAEF;MAEE,MAAM,IAAIa,KAAK,CACb,2DACGd,QAAQ,CAASE,IAAI,EAE1B,CAAC;EACL;AACF","ignoreList":[]}
1
+ {"version":3,"file":"getObjectTypesFromQueryDataType.js","names":["getObjectTypesFromQueryDataType","dataType","types","type","subType","add","objectTypeApiName","prop","Object","values","fields","fieldType","unionTypes","keyType","valueType","Error"],"sources":["getObjectTypesFromQueryDataType.ts"],"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 */\n\nimport type { QueryDataType } from \"@osdk/foundry.ontologies\";\n\nexport function getObjectTypesFromQueryDataType(\n dataType: QueryDataType,\n types: Set<string>,\n): void {\n switch (dataType.type) {\n case \"array\":\n case \"set\":\n getObjectTypesFromQueryDataType(dataType.subType, types);\n return;\n\n case \"object\":\n types.add(dataType.objectTypeApiName);\n return;\n\n case \"objectSet\":\n types.add(dataType.objectTypeApiName!);\n return;\n\n case \"struct\":\n for (const prop of Object.values(dataType.fields)) {\n getObjectTypesFromQueryDataType(prop.fieldType, types);\n }\n return;\n\n case \"union\":\n for (const type of dataType.unionTypes) {\n getObjectTypesFromQueryDataType(type, types);\n }\n return;\n\n case \"entrySet\":\n getObjectTypesFromQueryDataType(dataType.keyType, types);\n getObjectTypesFromQueryDataType(dataType.valueType, types);\n return;\n\n case \"attachment\":\n case \"boolean\":\n case \"date\":\n case \"double\":\n case \"float\":\n case \"integer\":\n case \"long\":\n case \"null\":\n case \"string\":\n case \"threeDimensionalAggregation\":\n case \"timestamp\":\n case \"twoDimensionalAggregation\":\n case \"entrySet\":\n case \"unsupported\":\n case \"interfaceObject\":\n case \"interfaceObjectSet\":\n /* complete no-op */\n return;\n\n default:\n const _: never = dataType;\n throw new Error(\n `Unknown query data type ${(dataType as any).type}`,\n );\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAO,SAASA,+BAA+BA,CAC7CC,QAAu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s) to be deleted
468
468
  */
469
- readonly object?: ReadonlyArray<ActionParam.ObjectType<Todo>>;
469
+ readonly object?: ReadonlyArray<ActionParam.ObjectType<Todo>> | ActionParam.NullValueType;
470
470
  }
471
471
 
472
472
  // Represents a fqn of the action
@@ -542,7 +542,7 @@ describe("generator", () => {
542
542
  /**
543
543
  * A Todo to mark completed
544
544
  */
545
- readonly object?: ActionParam.ObjectType<Todo>;
545
+ readonly object?: ActionParam.ObjectType<Todo> | ActionParam.NullValueType;
546
546
  }
547
547
 
548
548
  // Represents a fqn of the action
@@ -1076,7 +1076,7 @@ describe("generator", () => {
1076
1076
  /**
1077
1077
  * Todo(s) to be deleted
1078
1078
  */
1079
- readonly object?: ReadonlyArray<ActionParam.ObjectType<Todo>>;
1079
+ readonly object?: ReadonlyArray<ActionParam.ObjectType<Todo>> | ActionParam.NullValueType;
1080
1080
  }
1081
1081
 
1082
1082
  // Represents a fqn of the action
@@ -1152,7 +1152,7 @@ describe("generator", () => {
1152
1152
  /**
1153
1153
  * A Todo to mark completed
1154
1154
  */
1155
- readonly object?: ActionParam.ObjectType<Todo>;
1155
+ readonly object?: ActionParam.ObjectType<Todo> | ActionParam.NullValueType;
1156
1156
  }
1157
1157
 
1158
1158
  // Represents a fqn of the action