@compass-labs/api-sdk 2.2.34-rc.9 → 2.2.35-rc.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 (67) hide show
  1. package/README.md +3 -1
  2. package/codeSamples_typescript.yaml +6 -0
  3. package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts +23 -0
  4. package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js +123 -0
  6. package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js.map +1 -0
  7. package/dist/commonjs/lib/config.d.ts +2 -2
  8. package/dist/commonjs/lib/config.js +2 -2
  9. package/dist/commonjs/models/components/index.d.ts +2 -0
  10. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/index.js +2 -0
  12. package/dist/commonjs/models/components/index.js.map +1 -1
  13. package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.d.ts +23 -0
  14. package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.d.ts.map +1 -0
  15. package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.js +50 -0
  16. package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.js.map +1 -0
  17. package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.d.ts +37 -0
  18. package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.d.ts.map +1 -0
  19. package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.js +59 -0
  20. package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.js.map +1 -0
  21. package/dist/commonjs/sdk/traditionalinvesting.d.ts +12 -0
  22. package/dist/commonjs/sdk/traditionalinvesting.d.ts.map +1 -1
  23. package/dist/commonjs/sdk/traditionalinvesting.js +15 -0
  24. package/dist/commonjs/sdk/traditionalinvesting.js.map +1 -1
  25. package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts +23 -0
  26. package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts.map +1 -0
  27. package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js +87 -0
  28. package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js.map +1 -0
  29. package/dist/esm/lib/config.d.ts +2 -2
  30. package/dist/esm/lib/config.js +2 -2
  31. package/dist/esm/models/components/index.d.ts +2 -0
  32. package/dist/esm/models/components/index.d.ts.map +1 -1
  33. package/dist/esm/models/components/index.js +2 -0
  34. package/dist/esm/models/components/index.js.map +1 -1
  35. package/dist/esm/models/components/traditionalinvestingensureleveragerequest.d.ts +23 -0
  36. package/dist/esm/models/components/traditionalinvestingensureleveragerequest.d.ts.map +1 -0
  37. package/dist/esm/models/components/traditionalinvestingensureleveragerequest.js +13 -0
  38. package/dist/esm/models/components/traditionalinvestingensureleveragerequest.js.map +1 -0
  39. package/dist/esm/models/components/traditionalinvestingensureleverageresponse.d.ts +37 -0
  40. package/dist/esm/models/components/traditionalinvestingensureleverageresponse.d.ts.map +1 -0
  41. package/dist/esm/models/components/traditionalinvestingensureleverageresponse.js +22 -0
  42. package/dist/esm/models/components/traditionalinvestingensureleverageresponse.js.map +1 -0
  43. package/dist/esm/sdk/traditionalinvesting.d.ts +12 -0
  44. package/dist/esm/sdk/traditionalinvesting.d.ts.map +1 -1
  45. package/dist/esm/sdk/traditionalinvesting.js +15 -0
  46. package/dist/esm/sdk/traditionalinvesting.js.map +1 -1
  47. package/docs/models/components/traditionalinvestingensureleveragerequest.md +21 -0
  48. package/docs/models/components/traditionalinvestingensureleverageresponse.md +25 -0
  49. package/docs/sdks/traditionalinvesting/README.md +82 -0
  50. package/examples/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  51. package/examples/node_modules/@esbuild/linux-x64/package.json +1 -1
  52. package/examples/node_modules/@types/node/README.md +1 -1
  53. package/examples/node_modules/@types/node/net.d.ts +21 -2
  54. package/examples/node_modules/@types/node/package.json +3 -3
  55. package/examples/node_modules/@types/node/stream/web.d.ts +5 -5
  56. package/examples/node_modules/@types/node/stream.d.ts +27 -4
  57. package/examples/node_modules/esbuild/bin/esbuild +1 -1
  58. package/examples/node_modules/esbuild/lib/main.js +9 -9
  59. package/examples/node_modules/esbuild/package.json +27 -27
  60. package/examples/package-lock.json +110 -110
  61. package/package.json +1 -1
  62. package/src/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.ts +180 -0
  63. package/src/lib/config.ts +2 -2
  64. package/src/models/components/index.ts +2 -0
  65. package/src/models/components/traditionalinvestingensureleveragerequest.ts +47 -0
  66. package/src/models/components/traditionalinvestingensureleverageresponse.ts +67 -0
  67. package/src/sdk/traditionalinvesting.ts +23 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.19.37",
3
+ "version": "20.19.39",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -135,6 +135,6 @@
135
135
  "undici-types": "~6.21.0"
136
136
  },
137
137
  "peerDependencies": {},
138
- "typesPublisherContentHash": "232436132f92bb9d0f77b98004c7a2477747cc93116b454e2d1ffaf892e9bdd2",
139
- "typeScriptVersion": "5.2"
138
+ "typesPublisherContentHash": "871323d2249864178e2cf14d45e1136232baed800bb0184748818383371a02fb",
139
+ "typeScriptVersion": "5.3"
140
140
  }
@@ -109,7 +109,7 @@ declare module "stream/web" {
109
109
  }
110
110
  interface ReadableStreamReadDoneResult<T> {
111
111
  done: true;
112
- value?: T;
112
+ value: T | undefined;
113
113
  }
114
114
  type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
115
115
  interface ReadableByteStreamControllerCallback {
@@ -251,7 +251,7 @@ declare module "stream/web" {
251
251
  interface ReadableStreamDefaultController<R = any> {
252
252
  readonly desiredSize: number | null;
253
253
  close(): void;
254
- enqueue(chunk?: R): void;
254
+ enqueue(chunk: R): void;
255
255
  error(e?: any): void;
256
256
  }
257
257
  const ReadableStreamDefaultController: {
@@ -279,7 +279,7 @@ declare module "stream/web" {
279
279
  };
280
280
  interface TransformStreamDefaultController<O = any> {
281
281
  readonly desiredSize: number | null;
282
- enqueue(chunk?: O): void;
282
+ enqueue(chunk: O): void;
283
283
  error(reason?: any): void;
284
284
  terminate(): void;
285
285
  }
@@ -315,7 +315,7 @@ declare module "stream/web" {
315
315
  abort(reason?: any): Promise<void>;
316
316
  close(): Promise<void>;
317
317
  releaseLock(): void;
318
- write(chunk?: W): Promise<void>;
318
+ write(chunk: W): Promise<void>;
319
319
  }
320
320
  const WritableStreamDefaultWriter: {
321
321
  prototype: WritableStreamDefaultWriter;
@@ -339,7 +339,7 @@ declare module "stream/web" {
339
339
  size?: QueuingStrategySize<T>;
340
340
  }
341
341
  interface QueuingStrategySize<T = any> {
342
- (chunk?: T): number;
342
+ (chunk: T): number;
343
343
  }
344
344
  interface QueuingStrategyInit {
345
345
  /**
@@ -865,11 +865,20 @@ declare module "stream" {
865
865
  * @since v0.9.4
866
866
  * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
867
867
  * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
868
- * @param [encoding='utf8'] The encoding, if `chunk` is a string.
869
868
  * @param callback Callback for when this chunk of data is flushed.
870
869
  * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
871
870
  */
872
871
  write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean;
872
+ /**
873
+ * Writes data to the stream, with an explicit encoding for string data.
874
+ * @see {@link Writable.write} for full details.
875
+ * @since v0.9.4
876
+ * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
877
+ * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
878
+ * @param encoding The encoding, if `chunk` is a string.
879
+ * @param callback Callback for when this chunk of data is flushed.
880
+ * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
881
+ */
873
882
  write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean;
874
883
  /**
875
884
  * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream.
@@ -894,13 +903,27 @@ declare module "stream" {
894
903
  * // Writing more now is not allowed!
895
904
  * ```
896
905
  * @since v0.9.4
906
+ * @param cb Callback for when the stream is finished.
907
+ */
908
+ end(cb?: () => void): this;
909
+ /**
910
+ * Signals that no more data will be written, with one final chunk of data.
911
+ * @see {@link Writable.end} for full details.
912
+ * @since v0.9.4
897
913
  * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
898
914
  * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
899
- * @param encoding The encoding if `chunk` is a string
900
- * @param callback Callback for when the stream is finished.
915
+ * @param cb Callback for when the stream is finished.
901
916
  */
902
- end(cb?: () => void): this;
903
917
  end(chunk: any, cb?: () => void): this;
918
+ /**
919
+ * Signals that no more data will be written, with one final chunk of data.
920
+ * @see {@link Writable.end} for full details.
921
+ * @since v0.9.4
922
+ * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
923
+ * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
924
+ * @param encoding The encoding if `chunk` is a string
925
+ * @param cb Callback for when the stream is finished.
926
+ */
904
927
  end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
905
928
  /**
906
929
  * The `writable.cork()` method forces all written data to be buffered in memory.
@@ -201,7 +201,7 @@ for your current platform.`);
201
201
  "node_modules",
202
202
  ".cache",
203
203
  "esbuild",
204
- `pnpapi-${pkg.replace("/", "-")}-${"0.27.4"}-${path.basename(subpath)}`
204
+ `pnpapi-${pkg.replace("/", "-")}-${"0.27.7"}-${path.basename(subpath)}`
205
205
  );
206
206
  if (!fs.existsSync(binTargetPath)) {
207
207
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -924,8 +924,8 @@ function createChannel(streamIn) {
924
924
  if (isFirstPacket) {
925
925
  isFirstPacket = false;
926
926
  let binaryVersion = String.fromCharCode(...bytes);
927
- if (binaryVersion !== "0.27.4") {
928
- throw new Error(`Cannot start service: Host version "${"0.27.4"}" does not match binary version ${quote(binaryVersion)}`);
927
+ if (binaryVersion !== "0.27.7") {
928
+ throw new Error(`Cannot start service: Host version "${"0.27.7"}" does not match binary version ${quote(binaryVersion)}`);
929
929
  }
930
930
  return;
931
931
  }
@@ -1199,7 +1199,7 @@ function buildOrContextImpl(callName, buildKey, sendRequest, sendResponse, refs,
1199
1199
  const originalErrors = result.errors.slice();
1200
1200
  const originalWarnings = result.warnings.slice();
1201
1201
  if (response.outputFiles) result.outputFiles = response.outputFiles.map(convertOutputFiles);
1202
- if (response.metafile) result.metafile = parseJSON(response.metafile);
1202
+ if (response.metafile && response.metafile.length) result.metafile = parseJSON(response.metafile);
1203
1203
  if (response.mangleCache) result.mangleCache = response.mangleCache;
1204
1204
  if (response.writeToStdout !== void 0) console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, ""));
1205
1205
  runOnEndCallbacks(result, (onEndErrors, onEndWarnings) => {
@@ -2060,7 +2060,7 @@ for your current platform.`);
2060
2060
  "node_modules",
2061
2061
  ".cache",
2062
2062
  "esbuild",
2063
- `pnpapi-${pkg.replace("/", "-")}-${"0.27.4"}-${path.basename(subpath)}`
2063
+ `pnpapi-${pkg.replace("/", "-")}-${"0.27.7"}-${path.basename(subpath)}`
2064
2064
  );
2065
2065
  if (!fs.existsSync(binTargetPath)) {
2066
2066
  fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
@@ -2095,7 +2095,7 @@ if (process.env.ESBUILD_WORKER_THREADS !== "0") {
2095
2095
  }
2096
2096
  }
2097
2097
  var _a;
2098
- var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.4";
2098
+ var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.7";
2099
2099
  var esbuildCommandAndArgs = () => {
2100
2100
  if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
2101
2101
  throw new Error(
@@ -2162,7 +2162,7 @@ var fsAsync = {
2162
2162
  }
2163
2163
  }
2164
2164
  };
2165
- var version = "0.27.4";
2165
+ var version = "0.27.7";
2166
2166
  var build = (options) => ensureServiceIsRunning().build(options);
2167
2167
  var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
2168
2168
  var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
@@ -2265,7 +2265,7 @@ var stopService;
2265
2265
  var ensureServiceIsRunning = () => {
2266
2266
  if (longLivedService) return longLivedService;
2267
2267
  let [command, args] = esbuildCommandAndArgs();
2268
- let child = child_process.spawn(command, args.concat(`--service=${"0.27.4"}`, "--ping"), {
2268
+ let child = child_process.spawn(command, args.concat(`--service=${"0.27.7"}`, "--ping"), {
2269
2269
  windowsHide: true,
2270
2270
  stdio: ["pipe", "pipe", "inherit"],
2271
2271
  cwd: defaultWD
@@ -2369,7 +2369,7 @@ var runServiceSync = (callback) => {
2369
2369
  esbuild: node_exports
2370
2370
  });
2371
2371
  callback(service);
2372
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.4"}`), {
2372
+ let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.27.7"}`), {
2373
2373
  cwd: defaultWD,
2374
2374
  windowsHide: true,
2375
2375
  input: stdin,
@@ -2389,7 +2389,7 @@ var workerThreadService = null;
2389
2389
  var startWorkerThreadService = (worker_threads2) => {
2390
2390
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
2391
2391
  let worker = new worker_threads2.Worker(__filename, {
2392
- workerData: { workerPort, defaultWD, esbuildVersion: "0.27.4" },
2392
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.27.7" },
2393
2393
  transferList: [workerPort],
2394
2394
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2395
2395
  //
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esbuild",
3
- "version": "0.27.4",
3
+ "version": "0.27.7",
4
4
  "description": "An extremely fast JavaScript and CSS bundler and minifier.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,32 +18,32 @@
18
18
  "esbuild": "bin/esbuild"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@esbuild/aix-ppc64": "0.27.4",
22
- "@esbuild/android-arm": "0.27.4",
23
- "@esbuild/android-arm64": "0.27.4",
24
- "@esbuild/android-x64": "0.27.4",
25
- "@esbuild/darwin-arm64": "0.27.4",
26
- "@esbuild/darwin-x64": "0.27.4",
27
- "@esbuild/freebsd-arm64": "0.27.4",
28
- "@esbuild/freebsd-x64": "0.27.4",
29
- "@esbuild/linux-arm": "0.27.4",
30
- "@esbuild/linux-arm64": "0.27.4",
31
- "@esbuild/linux-ia32": "0.27.4",
32
- "@esbuild/linux-loong64": "0.27.4",
33
- "@esbuild/linux-mips64el": "0.27.4",
34
- "@esbuild/linux-ppc64": "0.27.4",
35
- "@esbuild/linux-riscv64": "0.27.4",
36
- "@esbuild/linux-s390x": "0.27.4",
37
- "@esbuild/linux-x64": "0.27.4",
38
- "@esbuild/netbsd-arm64": "0.27.4",
39
- "@esbuild/netbsd-x64": "0.27.4",
40
- "@esbuild/openbsd-arm64": "0.27.4",
41
- "@esbuild/openbsd-x64": "0.27.4",
42
- "@esbuild/openharmony-arm64": "0.27.4",
43
- "@esbuild/sunos-x64": "0.27.4",
44
- "@esbuild/win32-arm64": "0.27.4",
45
- "@esbuild/win32-ia32": "0.27.4",
46
- "@esbuild/win32-x64": "0.27.4"
21
+ "@esbuild/aix-ppc64": "0.27.7",
22
+ "@esbuild/android-arm": "0.27.7",
23
+ "@esbuild/android-arm64": "0.27.7",
24
+ "@esbuild/android-x64": "0.27.7",
25
+ "@esbuild/darwin-arm64": "0.27.7",
26
+ "@esbuild/darwin-x64": "0.27.7",
27
+ "@esbuild/freebsd-arm64": "0.27.7",
28
+ "@esbuild/freebsd-x64": "0.27.7",
29
+ "@esbuild/linux-arm": "0.27.7",
30
+ "@esbuild/linux-arm64": "0.27.7",
31
+ "@esbuild/linux-ia32": "0.27.7",
32
+ "@esbuild/linux-loong64": "0.27.7",
33
+ "@esbuild/linux-mips64el": "0.27.7",
34
+ "@esbuild/linux-ppc64": "0.27.7",
35
+ "@esbuild/linux-riscv64": "0.27.7",
36
+ "@esbuild/linux-s390x": "0.27.7",
37
+ "@esbuild/linux-x64": "0.27.7",
38
+ "@esbuild/netbsd-arm64": "0.27.7",
39
+ "@esbuild/netbsd-x64": "0.27.7",
40
+ "@esbuild/openbsd-arm64": "0.27.7",
41
+ "@esbuild/openbsd-x64": "0.27.7",
42
+ "@esbuild/openharmony-arm64": "0.27.7",
43
+ "@esbuild/sunos-x64": "0.27.7",
44
+ "@esbuild/win32-arm64": "0.27.7",
45
+ "@esbuild/win32-ia32": "0.27.7",
46
+ "@esbuild/win32-x64": "0.27.7"
47
47
  },
48
48
  "license": "MIT"
49
49
  }