@osdk/integration-testing 0.0.0 → 0.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.
Files changed (192) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/bin/postinstall.mjs +15 -0
  3. package/build/browser/cli-service/CliServiceLauncher.js +220 -0
  4. package/build/browser/cli-service/CliServiceLauncher.js.map +1 -0
  5. package/build/browser/cli-service/FoundryCliService.js +168 -0
  6. package/build/browser/cli-service/FoundryCliService.js.map +1 -0
  7. package/build/browser/cli-service/OntologyServer.js +32 -0
  8. package/build/browser/cli-service/OntologyServer.js.map +1 -0
  9. package/build/browser/cli-service/ServiceDiscoverer.js +100 -0
  10. package/build/browser/cli-service/ServiceDiscoverer.js.map +1 -0
  11. package/build/browser/cli-service/StatusServer.js +91 -0
  12. package/build/browser/cli-service/StatusServer.js.map +1 -0
  13. package/build/browser/createIntegrationClient.js +67 -0
  14. package/build/browser/createIntegrationClient.js.map +1 -0
  15. package/build/browser/createIntegrationServer.js +115 -0
  16. package/build/browser/createIntegrationServer.js.map +1 -0
  17. package/build/browser/createSeedClient.js +77 -0
  18. package/build/browser/createSeedClient.js.map +1 -0
  19. package/build/browser/generated/cli/OntologySeedingService/setSeed.js +28 -0
  20. package/build/browser/generated/cli/OntologySeedingService/setSeed.js.map +1 -0
  21. package/build/browser/generated/cli/OntologySeedingService.js +19 -0
  22. package/build/browser/generated/cli/OntologySeedingService.js.map +1 -0
  23. package/build/browser/generated/cli/StatusService/getStatus.js +25 -0
  24. package/build/browser/generated/cli/StatusService/getStatus.js.map +1 -0
  25. package/build/browser/generated/cli/StatusService/publishStatus.js +26 -0
  26. package/build/browser/generated/cli/StatusService/publishStatus.js.map +1 -0
  27. package/build/browser/generated/cli/StatusService.js +20 -0
  28. package/build/browser/generated/cli/StatusService.js.map +1 -0
  29. package/build/browser/generated/cli/__components.js +2 -0
  30. package/build/browser/generated/cli/__components.js.map +1 -0
  31. package/build/browser/generated/cli/index.js +20 -0
  32. package/build/browser/generated/cli/index.js.map +1 -0
  33. package/build/browser/index.js +27 -0
  34. package/build/browser/index.js.map +1 -0
  35. package/build/browser/scripts/download.js +92 -0
  36. package/build/browser/scripts/download.js.map +1 -0
  37. package/build/browser/scripts/foundry-host.js +59 -0
  38. package/build/browser/scripts/foundry-host.js.map +1 -0
  39. package/build/browser/scripts/foundry-token.js +50 -0
  40. package/build/browser/scripts/foundry-token.js.map +1 -0
  41. package/build/browser/scripts/gitRemote.js +39 -0
  42. package/build/browser/scripts/gitRemote.js.map +1 -0
  43. package/build/browser/scripts/postinstall.js +38 -0
  44. package/build/browser/scripts/postinstall.js.map +1 -0
  45. package/build/browser/test/NoSpawnStatusServer.js +33 -0
  46. package/build/browser/test/NoSpawnStatusServer.js.map +1 -0
  47. package/build/browser/test/StubService.js +61 -0
  48. package/build/browser/test/StubService.js.map +1 -0
  49. package/build/browser/test/emptyOntologyMetadata.js +32 -0
  50. package/build/browser/test/emptyOntologyMetadata.js.map +1 -0
  51. package/build/browser/test/stubStatusServer.js +74 -0
  52. package/build/browser/test/stubStatusServer.js.map +1 -0
  53. package/build/browser/test/writeDiscoveryFile.js +39 -0
  54. package/build/browser/test/writeDiscoveryFile.js.map +1 -0
  55. package/build/browser/types.js +2 -0
  56. package/build/browser/types.js.map +1 -0
  57. package/build/browser/utils/empty-ontology-block.js +61 -0
  58. package/build/browser/utils/empty-ontology-block.js.map +1 -0
  59. package/build/browser/utils/foundry-cli.js +46 -0
  60. package/build/browser/utils/foundry-cli.js.map +1 -0
  61. package/build/browser/utils/process.js +26 -0
  62. package/build/browser/utils/process.js.map +1 -0
  63. package/build/browser/utils/service.js +33 -0
  64. package/build/browser/utils/service.js.map +1 -0
  65. package/build/cjs/index.cjs +841 -0
  66. package/build/cjs/index.cjs.map +1 -0
  67. package/build/cjs/index.d.cts +118 -0
  68. package/build/esm/cli-service/CliServiceLauncher.js +220 -0
  69. package/build/esm/cli-service/CliServiceLauncher.js.map +1 -0
  70. package/build/esm/cli-service/FoundryCliService.js +168 -0
  71. package/build/esm/cli-service/FoundryCliService.js.map +1 -0
  72. package/build/esm/cli-service/OntologyServer.js +32 -0
  73. package/build/esm/cli-service/OntologyServer.js.map +1 -0
  74. package/build/esm/cli-service/ServiceDiscoverer.js +100 -0
  75. package/build/esm/cli-service/ServiceDiscoverer.js.map +1 -0
  76. package/build/esm/cli-service/StatusServer.js +91 -0
  77. package/build/esm/cli-service/StatusServer.js.map +1 -0
  78. package/build/esm/createIntegrationClient.js +67 -0
  79. package/build/esm/createIntegrationClient.js.map +1 -0
  80. package/build/esm/createIntegrationServer.js +115 -0
  81. package/build/esm/createIntegrationServer.js.map +1 -0
  82. package/build/esm/createSeedClient.js +77 -0
  83. package/build/esm/createSeedClient.js.map +1 -0
  84. package/build/esm/generated/cli/OntologySeedingService/setSeed.js +28 -0
  85. package/build/esm/generated/cli/OntologySeedingService/setSeed.js.map +1 -0
  86. package/build/esm/generated/cli/OntologySeedingService.js +19 -0
  87. package/build/esm/generated/cli/OntologySeedingService.js.map +1 -0
  88. package/build/esm/generated/cli/StatusService/getStatus.js +25 -0
  89. package/build/esm/generated/cli/StatusService/getStatus.js.map +1 -0
  90. package/build/esm/generated/cli/StatusService/publishStatus.js +26 -0
  91. package/build/esm/generated/cli/StatusService/publishStatus.js.map +1 -0
  92. package/build/esm/generated/cli/StatusService.js +20 -0
  93. package/build/esm/generated/cli/StatusService.js.map +1 -0
  94. package/build/esm/generated/cli/__components.js +2 -0
  95. package/build/esm/generated/cli/__components.js.map +1 -0
  96. package/build/esm/generated/cli/index.js +20 -0
  97. package/build/esm/generated/cli/index.js.map +1 -0
  98. package/build/esm/index.js +27 -0
  99. package/build/esm/index.js.map +1 -0
  100. package/build/esm/scripts/download.js +92 -0
  101. package/build/esm/scripts/download.js.map +1 -0
  102. package/build/esm/scripts/foundry-host.js +59 -0
  103. package/build/esm/scripts/foundry-host.js.map +1 -0
  104. package/build/esm/scripts/foundry-token.js +50 -0
  105. package/build/esm/scripts/foundry-token.js.map +1 -0
  106. package/build/esm/scripts/gitRemote.js +39 -0
  107. package/build/esm/scripts/gitRemote.js.map +1 -0
  108. package/build/esm/scripts/postinstall.js +38 -0
  109. package/build/esm/scripts/postinstall.js.map +1 -0
  110. package/build/esm/test/NoSpawnStatusServer.js +33 -0
  111. package/build/esm/test/NoSpawnStatusServer.js.map +1 -0
  112. package/build/esm/test/StubService.js +61 -0
  113. package/build/esm/test/StubService.js.map +1 -0
  114. package/build/esm/test/emptyOntologyMetadata.js +32 -0
  115. package/build/esm/test/emptyOntologyMetadata.js.map +1 -0
  116. package/build/esm/test/stubStatusServer.js +74 -0
  117. package/build/esm/test/stubStatusServer.js.map +1 -0
  118. package/build/esm/test/writeDiscoveryFile.js +39 -0
  119. package/build/esm/test/writeDiscoveryFile.js.map +1 -0
  120. package/build/esm/types.js +2 -0
  121. package/build/esm/types.js.map +1 -0
  122. package/build/esm/utils/empty-ontology-block.js +61 -0
  123. package/build/esm/utils/empty-ontology-block.js.map +1 -0
  124. package/build/esm/utils/foundry-cli.js +46 -0
  125. package/build/esm/utils/foundry-cli.js.map +1 -0
  126. package/build/esm/utils/process.js +26 -0
  127. package/build/esm/utils/process.js.map +1 -0
  128. package/build/esm/utils/service.js +33 -0
  129. package/build/esm/utils/service.js.map +1 -0
  130. package/build/types/cli-service/CliServiceLauncher.d.ts +36 -0
  131. package/build/types/cli-service/CliServiceLauncher.d.ts.map +1 -0
  132. package/build/types/cli-service/FoundryCliService.d.ts +60 -0
  133. package/build/types/cli-service/FoundryCliService.d.ts.map +1 -0
  134. package/build/types/cli-service/OntologyServer.d.ts +10 -0
  135. package/build/types/cli-service/OntologyServer.d.ts.map +1 -0
  136. package/build/types/cli-service/ServiceDiscoverer.d.ts +22 -0
  137. package/build/types/cli-service/ServiceDiscoverer.d.ts.map +1 -0
  138. package/build/types/cli-service/StatusServer.d.ts +17 -0
  139. package/build/types/cli-service/StatusServer.d.ts.map +1 -0
  140. package/build/types/createIntegrationClient.d.ts +2 -0
  141. package/build/types/createIntegrationClient.d.ts.map +1 -0
  142. package/build/types/createIntegrationServer.d.ts +2 -0
  143. package/build/types/createIntegrationServer.d.ts.map +1 -0
  144. package/build/types/createSeedClient.d.ts +9 -0
  145. package/build/types/createSeedClient.d.ts.map +1 -0
  146. package/build/types/generated/cli/OntologySeedingService/setSeed.d.ts +9 -0
  147. package/build/types/generated/cli/OntologySeedingService/setSeed.d.ts.map +1 -0
  148. package/build/types/generated/cli/OntologySeedingService.d.ts +1 -0
  149. package/build/types/generated/cli/OntologySeedingService.d.ts.map +1 -0
  150. package/build/types/generated/cli/StatusService/getStatus.d.ts +6 -0
  151. package/build/types/generated/cli/StatusService/getStatus.d.ts.map +1 -0
  152. package/build/types/generated/cli/StatusService/publishStatus.d.ts +7 -0
  153. package/build/types/generated/cli/StatusService/publishStatus.d.ts.map +1 -0
  154. package/build/types/generated/cli/StatusService.d.ts +2 -0
  155. package/build/types/generated/cli/StatusService.d.ts.map +1 -0
  156. package/build/types/generated/cli/__components.d.ts +189 -0
  157. package/build/types/generated/cli/__components.d.ts.map +1 -0
  158. package/build/types/generated/cli/index.d.ts +3 -0
  159. package/build/types/generated/cli/index.d.ts.map +1 -0
  160. package/build/types/index.d.ts +10 -0
  161. package/build/types/index.d.ts.map +1 -0
  162. package/build/types/scripts/download.d.ts +6 -0
  163. package/build/types/scripts/download.d.ts.map +1 -0
  164. package/build/types/scripts/foundry-host.d.ts +7 -0
  165. package/build/types/scripts/foundry-host.d.ts.map +1 -0
  166. package/build/types/scripts/foundry-token.d.ts +5 -0
  167. package/build/types/scripts/foundry-token.d.ts.map +1 -0
  168. package/build/types/scripts/gitRemote.d.ts +9 -0
  169. package/build/types/scripts/gitRemote.d.ts.map +1 -0
  170. package/build/types/scripts/postinstall.d.ts +1 -0
  171. package/build/types/scripts/postinstall.d.ts.map +1 -0
  172. package/build/types/test/NoSpawnStatusServer.d.ts +11 -0
  173. package/build/types/test/NoSpawnStatusServer.d.ts.map +1 -0
  174. package/build/types/test/StubService.d.ts +23 -0
  175. package/build/types/test/StubService.d.ts.map +1 -0
  176. package/build/types/test/emptyOntologyMetadata.d.ts +3 -0
  177. package/build/types/test/emptyOntologyMetadata.d.ts.map +1 -0
  178. package/build/types/test/stubStatusServer.d.ts +14 -0
  179. package/build/types/test/stubStatusServer.d.ts.map +1 -0
  180. package/build/types/test/writeDiscoveryFile.d.ts +8 -0
  181. package/build/types/test/writeDiscoveryFile.d.ts.map +1 -0
  182. package/build/types/types.d.ts +104 -0
  183. package/build/types/types.d.ts.map +1 -0
  184. package/build/types/utils/empty-ontology-block.d.ts +4 -0
  185. package/build/types/utils/empty-ontology-block.d.ts.map +1 -0
  186. package/build/types/utils/foundry-cli.d.ts +13 -0
  187. package/build/types/utils/foundry-cli.d.ts.map +1 -0
  188. package/build/types/utils/process.d.ts +1 -0
  189. package/build/types/utils/process.d.ts.map +1 -0
  190. package/build/types/utils/service.d.ts +4 -0
  191. package/build/types/utils/service.d.ts.map +1 -0
  192. package/package.json +93 -1
@@ -0,0 +1,104 @@
1
+ import type { LinkTypeApiNamesFor, PrimaryKeyType } from "@osdk/api";
2
+ import type { Client, ObjectTypeDefinition } from "@osdk/client";
3
+ import type { OntologyFullMetadata } from "@osdk/foundry.ontologies";
4
+ import type { LinkTargets, SeedFunction, SeedOutput, SeedProps, SeedRef } from "@osdk/seed-helpers";
5
+ import type { MockClient } from "@osdk/unit-testing";
6
+ export type IntegrationClient = Client & {
7
+ whenQuery: MockClient["whenQuery"]
8
+ clearStubs(): MockClient["clearStubs"]
9
+ };
10
+ export interface IntegrationClientConfig {
11
+ baseUrl: string;
12
+ metadata: OntologyFullMetadata;
13
+ caCertPath?: string;
14
+ }
15
+ export interface IntegrationServerConfig {
16
+ /** Path to a prebuilt ontology metadata JSON. */
17
+ metadata: OntologyFullMetadata;
18
+ /** Path to the `foundry` binary. Defaults to `foundry` on `PATH`. */
19
+ foundryCliPath?: string;
20
+ /**
21
+ * Directory to create this server's run directory in. Each server gets its
22
+ * own `.test-run-*` beneath it, removed on {@link IntegrationServer.stop}, so
23
+ * servers sharing a `projectPath` stay isolated. Must already exist; defaults
24
+ * to the working directory.
25
+ */
26
+ projectPath?: string;
27
+ }
28
+ export interface IntegrationServer {
29
+ start(): Promise<void>;
30
+ stop(): Promise<void>;
31
+ getOntologyUrl(): string | undefined;
32
+ getSeedClient(): Promise<SeedClient>;
33
+ getClient(): Promise<IntegrationClient>;
34
+ }
35
+ export type SeedClient = {
36
+ /**
37
+ * Transactional interface to SeedBuilder
38
+ * Applies changes if function is provided, calls .addAll(seed) if SeedOutput is provided.
39
+ */
40
+ <T = void>(seed: SeedFunction<T> | SeedOutput): Promise<T>
41
+ /**
42
+ * Returns a reference to an object already in the seed, or `undefined` if none
43
+ * exists. Read-only: nothing is applied to the server.
44
+ * @param o Object type definition
45
+ * @param primaryKey Primary key value of the object
46
+ * @returns Reference to the object, or `undefined` if not found
47
+ */
48
+ ref<Q extends ObjectTypeDefinition>(o: Q, primaryKey: PrimaryKeyType<Q>): SeedRef<Q> | undefined
49
+ /**
50
+ * Replaces the entire seed with `seed` and applies it, discarding everything
51
+ * accumulated so far. Clears the seed when called with no argument.
52
+ * @param seed Seed output to reset to, or `undefined` to clear
53
+ */
54
+ set(seed?: SeedOutput): Promise<void>
55
+ /**
56
+ * Merges an existing seed output into the current seed and applies it.
57
+ * @param seed Seed output to merge in; must match the metadata the client was created with
58
+ */
59
+ addAll(seed: SeedOutput): Promise<void>
60
+ /**
61
+ * Creates an object of the given type and applies the seed.
62
+ * @param o Object type definition
63
+ * @param props Object properties, including its primary key
64
+ * @returns Reference to the created object
65
+ * @throws {Error} if an object of that type already exists with the same primary key
66
+ */
67
+ create<Q extends ObjectTypeDefinition>(o: Q, props: SeedProps<Q>): Promise<SeedRef<Q>>
68
+ /**
69
+ * Merges `props` into the referenced object and applies the seed. Properties not
70
+ * included are left unchanged; the object is created if it does not yet exist.
71
+ * @param ref Reference to the object to update
72
+ * @param props Partial object properties to merge in, excluding the primary key
73
+ * @returns The same reference passed in
74
+ */
75
+ update<Q extends ObjectTypeDefinition>(ref: SeedRef<Q>, props: Partial<Omit<SeedProps<Q>, Exclude<Q["primaryKeyApiName"], undefined>>>): Promise<SeedRef<Q>>
76
+ /**
77
+ * Removes the referenced object from the seed and applies it. No-op if the object
78
+ * does not exist.
79
+ * @param ref Reference to the object to delete
80
+ */
81
+ delete<Q extends ObjectTypeDefinition>(ref: SeedRef<Q>): Promise<void>
82
+ /**
83
+ * Links the source object to one or more targets via the given link type and
84
+ * applies the seed. Re-adding an existing link is a no-op.
85
+ * @param source Reference to the source object
86
+ * @param apiName Link type API name
87
+ * @param target Reference (or references) to the target object(s)
88
+ */
89
+ link<
90
+ Q extends ObjectTypeDefinition,
91
+ A extends LinkTypeApiNamesFor<Q>
92
+ >(source: SeedRef<Q>, apiName: A, target: LinkTargets<Q, A>): Promise<void>
93
+ /**
94
+ * Removes links from the source object to the given targets via the link type and
95
+ * applies the seed. No-op if no matching links exist.
96
+ * @param source Reference to the source object
97
+ * @param apiName Link type API name
98
+ * @param target Reference (or references) to the target object(s)
99
+ */
100
+ unlink<
101
+ Q extends ObjectTypeDefinition,
102
+ A extends LinkTypeApiNamesFor<Q>
103
+ >(source: SeedRef<Q>, apiName: A, target: LinkTargets<Q, A>): Promise<void>
104
+ };
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,qBAAqB,sBAAsB,WAAY;AACrE,cAAc,QAAQ,4BAA4B,cAAe;AACjE,cAAc,4BAA4B,0BAA2B;AACrE,cACE,aACA,cACA,YACA,WACA,eACK,oBAAqB;AAC5B,cAAc,kBAAkB,oBAAqB;AAErD,YAAY,oBAAoB,SAAS;CAEvC,WAAW,WAAW;CACtB,cAAc,WAAW;AAC1B;AAED,iBAAiB,wBAAwB;CACvC;CACA,UAAU;CACV;AACD;AAED,iBAAiB,wBAAwB;;CAEvC,UAAU;;CAEV;;;;;;;CAOA;AACD;AAED,iBAAiB,kBAAkB;CACjC,SAAS;CACT,QAAQ;CACR;CACA,iBAAiB,QAAQ;CACzB,aAAa,QAAQ;AACtB;AAED,YAAY,aAAa;;;;;EAKtB,UAAUA,MAAM,aAAa,KAAK,aAAa,QAAQ;;;;;;;;CAQxD,IAAI,UAAU,sBACZC,GAAG,GACHC,YAAY,eAAe,KAC1B,QAAQ;;;;;;CAMX,IAAIC,OAAO,aAAa;;;;;CAKxB,OAAOC,MAAM,aAAa;;;;;;;;CAQ1B,OAAO,UAAU,sBACfH,GAAG,GACHI,OAAO,UAAU,KAChB,QAAQ,QAAQ;;;;;;;;CAQnB,OAAO,UAAU,sBACfC,KAAK,QAAQ,IACbC,OAAO,QACL,KAAK,UAAU,IAAI,QAAQ,EAAE,qCAE9B,QAAQ,QAAQ;;;;;;CAMnB,OAAO,UAAU,sBAAsBD,KAAK,QAAQ,KAAK;;;;;;;;CAQzD;EAAK,UAAU;EAAsB,UAAU,oBAAoB;GACjEE,QAAQ,QAAQ,IAChBC,SAAS,GACTC,QAAQ,YAAY,GAAG,KACtB;;;;;;;;CAQH;EAAO,UAAU;EAAsB,UAAU,oBAAoB;GACnEF,QAAQ,QAAQ,IAChBC,SAAS,GACTC,QAAQ,YAAY,GAAG,KACtB;AACJ","names":["seed: SeedFunction<T> | SeedOutput","o: Q","primaryKey: PrimaryKeyType<Q>","seed?: SeedOutput","seed: SeedOutput","props: SeedProps<Q>","ref: SeedRef<Q>","props: Partial<\n Omit<SeedProps<Q>, Exclude<Q[\"primaryKeyApiName\"], undefined>>\n >","source: SeedRef<Q>","apiName: A","target: LinkTargets<Q, A>"],"sources":["../../src/types.ts"],"version":3,"file":"types.d.ts"}
@@ -0,0 +1,4 @@
1
+ import type { PreviewOntologyIrConverter } from "@osdk/generator-converters.preview";
2
+ type OntologyBlockDataV2 = Parameters<typeof PreviewOntologyIrConverter.getPreviewFullMetadataFromBlockData>[0];
3
+ export declare const EMPTY_ONTOLOGY_BLOCK_DATA: OntologyBlockDataV2;
4
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,kCAAkC,oCAAqC;KAEhF,sBAAsB,kBAClB,2BAA2B,qCAClC;AAEF,OAAO,cAAMA,2BAA2B","names":["EMPTY_ONTOLOGY_BLOCK_DATA: OntologyBlockDataV2"],"sources":["../../../src/utils/empty-ontology-block.ts"],"version":3,"file":"empty-ontology-block.d.ts"}
@@ -0,0 +1,13 @@
1
+ export declare const MIN_FOUNDRY_CLI_VERSION = "0.224.0";
2
+ export type FoundryProbeResult = {
3
+ type: "installed"
4
+ version: string
5
+ } | {
6
+ type: "version-incompatible"
7
+ version: string
8
+ } | {
9
+ type: "version-error"
10
+ } | {
11
+ type: "not-found"
12
+ };
13
+ export declare const checkFoundryCliVersion: () => Promise<FoundryProbeResult>;
@@ -0,0 +1 @@
1
+ {"mappings":"AAqBA,OAAO,cAAM,0BAA0B;AAKvC,YAAY,qBACR;CACE,MAAM;CACN;AACD,IACD;CACE,MAAM;CACN;AACD,IACD;CACE,MAAM;AACP,IACD;CACE,MAAM;AACP;AAUL,OAAO,cAAM,8BAA6B,QAAQ","names":[],"sources":["../../../src/utils/foundry-cli.ts"],"version":3,"file":"foundry-cli.d.ts"}
@@ -0,0 +1 @@
1
+ export declare const isProcessAlive: (pid: number) => boolean;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,OAAO,cAAM,iBAAkBA","names":["pid: number"],"sources":["../../../src/utils/process.ts"],"version":3,"file":"process.d.ts"}
@@ -0,0 +1,4 @@
1
+ import type { ServiceName } from "../generated/cli/__components.js";
2
+ export declare const serviceNameFromFileName: (fileName: string) => ServiceName | undefined;
3
+ /** The name a running service publishes its discovery record under. */
4
+ export declare const discoveryFileName: (name: ServiceName) => string;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,mBAAmB,kCAAmC;AAkBpE,OAAO,cAAM,0BACXA,qBACC;;AAOH,OAAO,cAAM,oBAAqBC,MAAM","names":["fileName: string","name: ServiceName"],"sources":["../../../src/utils/service.ts"],"version":3,"file":"service.d.ts"}
package/package.json CHANGED
@@ -1 +1,93 @@
1
- { "name": "@osdk/integration-testing", "version": "0.0.0" }
1
+ {
2
+ "name": "@osdk/integration-testing",
3
+ "version": "0.1.0",
4
+ "description": "Integration-testing helpers for the Ontology SDK",
5
+ "access": "public",
6
+ "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/palantir/osdk-ts.git"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "browser": "./build/browser/index.js",
14
+ "import": {
15
+ "types": "./build/types/index.d.ts",
16
+ "default": "./build/esm/index.js"
17
+ },
18
+ "require": "./build/cjs/index.cjs",
19
+ "default": "./build/browser/index.js"
20
+ },
21
+ "./*": {
22
+ "browser": "./build/browser/public/*.js",
23
+ "import": {
24
+ "types": "./build/types/public/*.d.ts",
25
+ "default": "./build/esm/public/*.js"
26
+ },
27
+ "require": "./build/cjs/public/*.cjs",
28
+ "default": "./build/browser/public/*.js"
29
+ }
30
+ },
31
+ "dependencies": {
32
+ "@osdk/foundry.ontologies": "2.70.0",
33
+ "conjure-lite": "^0.7.3",
34
+ "consola": "^3.4.2",
35
+ "semver": "^7.7.2",
36
+ "tiny-invariant": "^1.3.3",
37
+ "undici": "^6.28.0",
38
+ "@osdk/generator-converters.preview": "~0.34.0",
39
+ "@osdk/unit-testing": "~0.21.0"
40
+ },
41
+ "peerDependencies": {
42
+ "@osdk/seed-helpers": ">=0.25.0 <1.0.0",
43
+ "@osdk/api": "^2.56.0",
44
+ "@osdk/client": "^2.56.0"
45
+ },
46
+ "devDependencies": {
47
+ "@microsoft/api-documenter": "^7.26.32",
48
+ "@microsoft/api-extractor": "^7.52.11",
49
+ "@types/node": "^26.1.1",
50
+ "@types/semver": "^7.7.1",
51
+ "typescript": "~5.5.4",
52
+ "vitest": "^3.2.4",
53
+ "@osdk/api": "~2.56.0",
54
+ "@osdk/monorepo.api-extractor": "~0.7.0",
55
+ "@osdk/monorepo.tsconfig": "~0.7.0",
56
+ "@osdk/seed-helpers": "~0.26.0",
57
+ "@osdk/client": "~2.56.0"
58
+ },
59
+ "publishConfig": {
60
+ "access": "public"
61
+ },
62
+ "files": [
63
+ "bin/postinstall.mjs",
64
+ "build/cjs",
65
+ "build/esm",
66
+ "build/browser",
67
+ "build/types",
68
+ "CHANGELOG.md",
69
+ "package.json",
70
+ "templates",
71
+ "*.d.ts"
72
+ ],
73
+ "main": "./build/cjs/index.cjs",
74
+ "module": "./build/esm/index.js",
75
+ "types": "./build/cjs/index.d.cts",
76
+ "type": "module",
77
+ "scripts": {
78
+ "check-api": "api-extractor run --verbose --local",
79
+ "check-attw": "attw --pack .",
80
+ "check-spelling": "cspell --quiet .",
81
+ "clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
82
+ "fix-lint": "oxlint -c ./oxlint.config.ts --fix . && oxfmt -c ../../oxfmt.config.ts .",
83
+ "generateConjure": "node ./bin/generateConjure.mjs",
84
+ "lint": "oxlint -c ./oxlint.config.ts . && oxfmt -c ../../oxfmt.config.ts --check .",
85
+ "postinstall": "node ./bin/postinstall.mjs",
86
+ "test": "vitest run --pool=forks",
87
+ "transpileBrowser": "monorepo.tool.transpile -f esm -m normal -t browser",
88
+ "transpileCjs": "monorepo.tool.transpile -f cjs -m bundle -t node",
89
+ "transpileEsm": "monorepo.tool.transpile -f esm -m normal -t node",
90
+ "transpileTypes": "monorepo.tool.transpile -f esm -m types -t node",
91
+ "typecheck": "tsc --noEmit --emitDeclarationOnly false"
92
+ }
93
+ }