@osdk/generator 1.0.3 → 1.1.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 +20 -0
- package/build/{js → cjs}/index.cjs +133 -133
- package/build/cjs/index.cjs.map +1 -0
- package/build/cjs/index.d.cts +20 -0
- package/build/cjs/package.json +1 -0
- package/build/esm/index.d.ts +20 -0
- package/build/{js → esm}/index.mjs +133 -133
- package/build/esm/index.mjs.map +1 -0
- package/package.json +28 -16
- package/build/js/index.cjs.map +0 -1
- package/build/js/index.mjs.map +0 -1
- package/build/types/MinimalFs.d.ts +0 -9
- package/build/types/WireOntologyDefinition.d.ts +0 -9
- package/build/types/index.d.ts +0 -3
- package/build/types/shared/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.d.ts +0 -3
- package/build/types/shared/generateMetadata.d.ts +0 -3
- package/build/types/shared/getEditedEntities.d.ts +0 -6
- package/build/types/shared/index.d.ts +0 -3
- package/build/types/shared/isNullableQueryDataType.d.ts +0 -2
- package/build/types/shared/sanitizeMetadata.d.ts +0 -9
- package/build/types/shared/sanitizeMetadata.test.d.ts +0 -1
- package/build/types/shared/wireActionTypeV2ToSdkActionDefinition.d.ts +0 -3
- package/build/types/shared/wireObjectTypeV2ToSdkObjectConst.d.ts +0 -3
- package/build/types/shared/wireObjectTypeV2ToSdkObjectDefinition.d.ts +0 -3
- package/build/types/shared/wirePropertyV2ToSdkPrimaryKeyTypeDefinition.d.ts +0 -3
- package/build/types/shared/wirePropertyV2ToSdkPropertyDefinition.d.ts +0 -3
- package/build/types/shared/wireQueryDataTypeToQueryDataTypeDefinition.d.ts +0 -3
- package/build/types/shared/wireQueryTypeV2ToSdkQueryDefinition.d.ts +0 -3
- package/build/types/util/InMemoryFs.d.ts +0 -6
- package/build/types/util/commaSeparatedIdentifiers.d.ts +0 -1
- package/build/types/util/commaSeparatedTypeIdentifiers.d.ts +0 -1
- package/build/types/util/reservedKeywords.d.ts +0 -1
- package/build/types/util/test/TodoWireOntology.d.ts +0 -113
- package/build/types/util/test/compileThis.d.ts +0 -2
- package/build/types/util/test/createMockMinimalFiles.d.ts +0 -12
- package/build/types/util/test/formatTs.d.ts +0 -1
- package/build/types/util/verifyOutdir.d.ts +0 -8
- package/build/types/v1.1/backcompat/generateOAuthDistDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/generateOntologyRuntimeDistDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-oauth-dist/generateConfidentialClientDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-oauth-dist/generatePublicClientDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-oauth-dist/generateUserTokenDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/aggregations/generateAggregationsAggregations.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/aggregations/generateGroupBy.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/aggregations/generateMetrics.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/baseTypes/generateAttachmentsDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/baseTypes/generateGeoshapesDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/baseTypes/generateObjectSetDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/baseTypes/generateSharedObjectCode.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/baseTypes/generateTimeSeriesDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/generateAggregationsDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/generateBaseTypesDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/generateClientDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/generateCommonDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/generateFiltersDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/generateOntologyProviderDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/generatePagingDir.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/ontologyProvider/generateErrors.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/ontologyProvider/generateOntologyMetadata.d.ts +0 -2
- package/build/types/v1.1/backcompat/internal-foundry-ontology-runtime-dist/ontologyProvider/generateResult.d.ts +0 -2
- package/build/types/v1.1/backcompat/util/reexportConsts.d.ts +0 -1
- package/build/types/v1.1/backcompat/util/reexportTypes.d.ts +0 -1
- package/build/types/v1.1/generateActions.d.ts +0 -3
- package/build/types/v1.1/generateActions.test.d.ts +0 -1
- package/build/types/v1.1/generateBackCompatDeprecatedExports.d.ts +0 -2
- package/build/types/v1.1/generateClientSdkVersionOneDotOne.d.ts +0 -3
- package/build/types/v1.1/generateClientSdkVersionOneDotOne.test.d.ts +0 -1
- package/build/types/v1.1/generateFoundryClientFile.d.ts +0 -2
- package/build/types/v1.1/generateFoundryClientFile.test.d.ts +0 -1
- package/build/types/v1.1/generateIndexFile.d.ts +0 -2
- package/build/types/v1.1/generateMetadataFile.d.ts +0 -3
- package/build/types/v1.1/generateMetadataFile.test.d.ts +0 -1
- package/build/types/v1.1/generateObjectsInterfaceFile.d.ts +0 -3
- package/build/types/v1.1/generateObjectsInterfaceFile.test.d.ts +0 -1
- package/build/types/v1.1/generateObjectsInterfaceSupportFiles.d.ts +0 -3
- package/build/types/v1.1/generateObjectsInterfaceSupportFiles.test.d.ts +0 -1
- package/build/types/v1.1/generateOntologyIndexFile.d.ts +0 -2
- package/build/types/v1.1/generatePerActionDataFiles.d.ts +0 -3
- package/build/types/v1.1/generatePerActionDataFiles.test.d.ts +0 -1
- package/build/types/v1.1/generatePerObjectInterfaceAndDataFiles.d.ts +0 -3
- package/build/types/v1.1/generatePerObjectInterfaceAndDataFiles.test.d.ts +0 -1
- package/build/types/v1.1/generatePerQueryDataFiles.d.ts +0 -3
- package/build/types/v1.1/generatePerQueryDataFiles.test.d.ts +0 -1
- package/build/types/v1.1/generateQueries.d.ts +0 -3
- package/build/types/v1.1/generateQueries.test.d.ts +0 -1
- package/build/types/v1.1/wireObjectTypeV2ToV1ObjectInterfaceString.d.ts +0 -2
- package/build/types/v1.1/wireObjectTypeV2ToV1ObjectInterfaceString.test.d.ts +0 -1
- package/build/types/v2.0/generateClientSdkVersionTwoPointZero.d.ts +0 -3
- package/build/types/v2.0/generateClientSdkVersionTwoPointZero.test.d.ts +0 -1
- package/build/types/v2.0/generateMetadata.d.ts +0 -3
- package/build/types/v2.0/wireObjectTypeV2ToObjectDefinitionInterfaceString.d.ts +0 -2
- package/build/types/validateWireOntologyAssumptions.d.ts +0 -2
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
export declare const TodoWireOntology: {
|
|
2
|
-
ontology: {
|
|
3
|
-
rid: string;
|
|
4
|
-
apiName: string;
|
|
5
|
-
displayName: string;
|
|
6
|
-
description: string;
|
|
7
|
-
};
|
|
8
|
-
actionTypes: {
|
|
9
|
-
markTodoCompleted: {
|
|
10
|
-
apiName: string;
|
|
11
|
-
description: string;
|
|
12
|
-
parameters: {
|
|
13
|
-
object: {
|
|
14
|
-
description: string;
|
|
15
|
-
dataType: {
|
|
16
|
-
type: "object";
|
|
17
|
-
objectApiName: string;
|
|
18
|
-
objectTypeApiName: string;
|
|
19
|
-
};
|
|
20
|
-
required: false;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
rid: string;
|
|
24
|
-
operations: {
|
|
25
|
-
type: "modifyObject";
|
|
26
|
-
objectTypeApiName: string;
|
|
27
|
-
}[];
|
|
28
|
-
status: "ACTIVE";
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
objectTypes: {
|
|
32
|
-
Todo: {
|
|
33
|
-
objectType: {
|
|
34
|
-
apiName: string;
|
|
35
|
-
primaryKey: string;
|
|
36
|
-
displayName: string;
|
|
37
|
-
description: string;
|
|
38
|
-
properties: {
|
|
39
|
-
id: {
|
|
40
|
-
dataType: {
|
|
41
|
-
type: "integer";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
body: {
|
|
45
|
-
dataType: {
|
|
46
|
-
type: "string";
|
|
47
|
-
};
|
|
48
|
-
description: string;
|
|
49
|
-
displayName: string;
|
|
50
|
-
};
|
|
51
|
-
complete: {
|
|
52
|
-
dataType: {
|
|
53
|
-
type: "boolean";
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
status: "ACTIVE";
|
|
58
|
-
rid: string;
|
|
59
|
-
};
|
|
60
|
-
linkTypes: {
|
|
61
|
-
apiName: string;
|
|
62
|
-
cardinality: "ONE";
|
|
63
|
-
displayName: string;
|
|
64
|
-
objectTypeApiName: string;
|
|
65
|
-
status: "ACTIVE";
|
|
66
|
-
foreignKeyPropertyApiName: string;
|
|
67
|
-
}[];
|
|
68
|
-
};
|
|
69
|
-
Person: {
|
|
70
|
-
objectType: {
|
|
71
|
-
apiName: string;
|
|
72
|
-
primaryKey: string;
|
|
73
|
-
displayName: string;
|
|
74
|
-
description: string;
|
|
75
|
-
properties: {
|
|
76
|
-
email: {
|
|
77
|
-
dataType: {
|
|
78
|
-
type: "string";
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
rid: string;
|
|
83
|
-
status: "ACTIVE";
|
|
84
|
-
};
|
|
85
|
-
linkTypes: {
|
|
86
|
-
apiName: string;
|
|
87
|
-
cardinality: "MANY";
|
|
88
|
-
displayName: string;
|
|
89
|
-
objectTypeApiName: string;
|
|
90
|
-
status: "ACTIVE";
|
|
91
|
-
foreignKeyPropertyApiName: string;
|
|
92
|
-
}[];
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
queryTypes: {
|
|
96
|
-
getCount: {
|
|
97
|
-
apiName: string;
|
|
98
|
-
output: {
|
|
99
|
-
type: "integer";
|
|
100
|
-
};
|
|
101
|
-
parameters: {
|
|
102
|
-
completed: {
|
|
103
|
-
dataType: {
|
|
104
|
-
type: "boolean";
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
rid: string;
|
|
109
|
-
version: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
__UNSTABLE_interfaceTypes: {};
|
|
113
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ReaddirFn, WriteFileFn } from "../../MinimalFs";
|
|
2
|
-
export declare function createMockMinimalFiles(): {
|
|
3
|
-
minimalFiles: {
|
|
4
|
-
writeFile: WriteFileFn;
|
|
5
|
-
mkdir: () => Promise<void>;
|
|
6
|
-
readdir: ReaddirFn;
|
|
7
|
-
};
|
|
8
|
-
getFiles: () => {
|
|
9
|
-
[k: string]: string;
|
|
10
|
-
};
|
|
11
|
-
dumpFilesToConsole: () => void;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatTs(contents: string): Promise<string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { MinimalFs } from "../MinimalFs";
|
|
2
|
-
/**
|
|
3
|
-
* Verify that the target outDir does not yet exist OR is empty.
|
|
4
|
-
*
|
|
5
|
-
* Re-generating an ontology on top of itself is not supported and may leave old
|
|
6
|
-
* files around or refuse to update files with new contents in some cases.
|
|
7
|
-
*/
|
|
8
|
-
export declare function verifyOutdir(outDir: string, fs: MinimalFs): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function reexportConsts(typesToExport: string[]): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function reexportTypes(typesToExport: string[], genericArgsLeft?: string, genericArgsRight?: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { MinimalFs } from "../MinimalFs";
|
|
2
|
-
import type { WireOntologyDefinition } from "../WireOntologyDefinition";
|
|
3
|
-
export declare function generateClientSdkVersionOneDotOne(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, packageType?: "commonjs" | "module"): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { MinimalFs } from "../MinimalFs";
|
|
2
|
-
import type { WireOntologyDefinition } from "../WireOntologyDefinition";
|
|
3
|
-
export declare function generateObjectsInterfaceFile(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt?: string): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { MinimalFs } from "../MinimalFs";
|
|
2
|
-
import type { WireOntologyDefinition } from "../WireOntologyDefinition";
|
|
3
|
-
export declare function generateObjectsInterfaceSupportFiles(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt?: string): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { MinimalFs } from "../MinimalFs";
|
|
2
|
-
import type { WireOntologyDefinition } from "../WireOntologyDefinition";
|
|
3
|
-
export declare function generatePerObjectInterfaceAndDataFiles(ontology: WireOntologyDefinition, fs: MinimalFs, outDir: string, importExt?: string): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { MinimalFs } from "../MinimalFs";
|
|
2
|
-
import type { __UNSTABLE_WireOntologyDefinitionV2 } from "../WireOntologyDefinition";
|
|
3
|
-
export declare function generateClientSdkVersionTwoPointZero(ontology: __UNSTABLE_WireOntologyDefinitionV2, fs: MinimalFs, outDir: string, packageType?: "module" | "commonjs"): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|