@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.
- package/README.md +3 -1
- package/codeSamples_typescript.yaml +6 -0
- package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts +23 -0
- package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts.map +1 -0
- package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js +123 -0
- package/dist/commonjs/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.d.ts +23 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.js +50 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleveragerequest.js.map +1 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.d.ts +37 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.js +59 -0
- package/dist/commonjs/models/components/traditionalinvestingensureleverageresponse.js.map +1 -0
- package/dist/commonjs/sdk/traditionalinvesting.d.ts +12 -0
- package/dist/commonjs/sdk/traditionalinvesting.d.ts.map +1 -1
- package/dist/commonjs/sdk/traditionalinvesting.js +15 -0
- package/dist/commonjs/sdk/traditionalinvesting.js.map +1 -1
- package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts +23 -0
- package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.d.ts.map +1 -0
- package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js +87 -0
- package/dist/esm/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/traditionalinvestingensureleveragerequest.d.ts +23 -0
- package/dist/esm/models/components/traditionalinvestingensureleveragerequest.d.ts.map +1 -0
- package/dist/esm/models/components/traditionalinvestingensureleveragerequest.js +13 -0
- package/dist/esm/models/components/traditionalinvestingensureleveragerequest.js.map +1 -0
- package/dist/esm/models/components/traditionalinvestingensureleverageresponse.d.ts +37 -0
- package/dist/esm/models/components/traditionalinvestingensureleverageresponse.d.ts.map +1 -0
- package/dist/esm/models/components/traditionalinvestingensureleverageresponse.js +22 -0
- package/dist/esm/models/components/traditionalinvestingensureleverageresponse.js.map +1 -0
- package/dist/esm/sdk/traditionalinvesting.d.ts +12 -0
- package/dist/esm/sdk/traditionalinvesting.d.ts.map +1 -1
- package/dist/esm/sdk/traditionalinvesting.js +15 -0
- package/dist/esm/sdk/traditionalinvesting.js.map +1 -1
- package/docs/models/components/traditionalinvestingensureleveragerequest.md +21 -0
- package/docs/models/components/traditionalinvestingensureleverageresponse.md +25 -0
- package/docs/sdks/traditionalinvesting/README.md +82 -0
- package/examples/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/examples/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/examples/node_modules/@types/node/README.md +1 -1
- package/examples/node_modules/@types/node/net.d.ts +21 -2
- package/examples/node_modules/@types/node/package.json +3 -3
- package/examples/node_modules/@types/node/stream/web.d.ts +5 -5
- package/examples/node_modules/@types/node/stream.d.ts +27 -4
- package/examples/node_modules/esbuild/bin/esbuild +1 -1
- package/examples/node_modules/esbuild/lib/main.js +9 -9
- package/examples/node_modules/esbuild/package.json +27 -27
- package/examples/package-lock.json +110 -110
- package/package.json +1 -1
- package/src/funcs/traditionalInvestingTraditionalInvestingEnsureLeverage.ts +180 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/traditionalinvestingensureleveragerequest.ts +47 -0
- package/src/models/components/traditionalinvestingensureleverageresponse.ts +67 -0
- package/src/sdk/traditionalinvesting.ts +23 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.19.
|
|
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": "
|
|
139
|
-
"typeScriptVersion": "5.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
928
|
-
throw new Error(`Cannot start service: Host version "${"0.27.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
22
|
-
"@esbuild/android-arm": "0.27.
|
|
23
|
-
"@esbuild/android-arm64": "0.27.
|
|
24
|
-
"@esbuild/android-x64": "0.27.
|
|
25
|
-
"@esbuild/darwin-arm64": "0.27.
|
|
26
|
-
"@esbuild/darwin-x64": "0.27.
|
|
27
|
-
"@esbuild/freebsd-arm64": "0.27.
|
|
28
|
-
"@esbuild/freebsd-x64": "0.27.
|
|
29
|
-
"@esbuild/linux-arm": "0.27.
|
|
30
|
-
"@esbuild/linux-arm64": "0.27.
|
|
31
|
-
"@esbuild/linux-ia32": "0.27.
|
|
32
|
-
"@esbuild/linux-loong64": "0.27.
|
|
33
|
-
"@esbuild/linux-mips64el": "0.27.
|
|
34
|
-
"@esbuild/linux-ppc64": "0.27.
|
|
35
|
-
"@esbuild/linux-riscv64": "0.27.
|
|
36
|
-
"@esbuild/linux-s390x": "0.27.
|
|
37
|
-
"@esbuild/linux-x64": "0.27.
|
|
38
|
-
"@esbuild/netbsd-arm64": "0.27.
|
|
39
|
-
"@esbuild/netbsd-x64": "0.27.
|
|
40
|
-
"@esbuild/openbsd-arm64": "0.27.
|
|
41
|
-
"@esbuild/openbsd-x64": "0.27.
|
|
42
|
-
"@esbuild/openharmony-arm64": "0.27.
|
|
43
|
-
"@esbuild/sunos-x64": "0.27.
|
|
44
|
-
"@esbuild/win32-arm64": "0.27.
|
|
45
|
-
"@esbuild/win32-ia32": "0.27.
|
|
46
|
-
"@esbuild/win32-x64": "0.27.
|
|
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
|
}
|