@distilled.cloud/questrade 0.0.0 → 1.0.0-rc.20
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/LICENSE +201 -0
- package/README.md +83 -4
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +49 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +47 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +37 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/index.lazy.js +6 -0
- package/lib/index.lazy.js.map +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +1 -0
- package/lib/services/questrade.d.ts +1228 -0
- package/lib/services/questrade.d.ts.map +1 -0
- package/lib/services/questrade.js +42 -0
- package/lib/services/questrade.js.map +1 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/questrade.js +3 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/package.json +76 -2
- package/src/credentials.ts +216 -0
- package/src/errors.ts +77 -0
- package/src/index.ts +36 -0
- package/src/protocol.ts +50 -0
- package/src/retry.ts +69 -0
- package/src/services/index.ts +2 -0
- package/src/services/questrade.ts +2666 -0
- package/src/traits.ts +44 -0
package/src/traits.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Questrade SDK trait surface -- hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the generic protocol traits from core so generated operations
|
|
5
|
+
* import everything from one place. The Questrade API is plain bearer-token REST
|
|
6
|
+
* JSON with no success envelope, so there are no provider-specific traits.
|
|
7
|
+
*/
|
|
8
|
+
export {
|
|
9
|
+
Body,
|
|
10
|
+
Header,
|
|
11
|
+
Query,
|
|
12
|
+
Label,
|
|
13
|
+
Http,
|
|
14
|
+
ResponseCode,
|
|
15
|
+
HttpBody,
|
|
16
|
+
FormDataFile,
|
|
17
|
+
KeyDictionary,
|
|
18
|
+
UnionCases,
|
|
19
|
+
applyErrorMatchers,
|
|
20
|
+
getErrorMatchers,
|
|
21
|
+
type HttpTrait,
|
|
22
|
+
type ErrorMatcher,
|
|
23
|
+
bodySymbol,
|
|
24
|
+
headerSymbol,
|
|
25
|
+
querySymbol,
|
|
26
|
+
labelSymbol,
|
|
27
|
+
httpSymbol,
|
|
28
|
+
responseCodeSymbol,
|
|
29
|
+
httpBodySymbol,
|
|
30
|
+
formDataFileSymbol,
|
|
31
|
+
keyDictionarySymbol,
|
|
32
|
+
unionCasesSymbol,
|
|
33
|
+
errorMatchersSymbol,
|
|
34
|
+
} from "@distilled.cloud/core/trait";
|
|
35
|
+
|
|
36
|
+
// Bearer-REST protocol traits (sensitive strings, bare-payload responses).
|
|
37
|
+
export {
|
|
38
|
+
SensitiveValue,
|
|
39
|
+
RawResponse,
|
|
40
|
+
RawResponseRoot,
|
|
41
|
+
sensitiveValueSymbol,
|
|
42
|
+
rawResponseSymbol,
|
|
43
|
+
rawResponseRootSymbol,
|
|
44
|
+
} from "@distilled.cloud/core/protocol-rest";
|