@owneraio/finp2p-sdk-js 0.27.13 → 0.27.14
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/lib/core/sdk.d.ts +1 -2
- package/lib/core/sdk.js +0 -8
- package/lib/core/sdk.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/types/Core/sdk.d.ts +0 -37
- package/package.json +1 -1
- package/lib/schemas/assets.json +0 -264
- package/lib/schemas/index.d.ts +0 -40
- package/lib/schemas/index.js +0 -75
- package/lib/schemas/index.js.map +0 -1
- package/lib/schemas/tests/test-assets-schema-execution.d.ts +0 -1
- package/lib/schemas/tests/test-assets-schema-execution.js +0 -261
- package/lib/schemas/tests/test-assets-schema-execution.js.map +0 -1
- package/lib/schemas/tests/test-transactions-filter.d.ts +0 -1
- package/lib/schemas/tests/test-transactions-filter.js +0 -226
- package/lib/schemas/tests/test-transactions-filter.js.map +0 -1
- package/lib/schemas/tests/test-users-inline-fragments.d.ts +0 -1
- package/lib/schemas/tests/test-users-inline-fragments.js +0 -47
- package/lib/schemas/tests/test-users-inline-fragments.js.map +0 -1
- package/lib/schemas/transactions.json +0 -174
- package/lib/schemas/users.json +0 -78
package/lib/core/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoreRequestOptions, SDK, SDKUtils, Logger
|
|
1
|
+
import { CoreRequestOptions, SDK, SDKUtils, Logger } from '../types';
|
|
2
2
|
import { OwneraAPIInterface, SdkOptions } from '../types/Core/OwneraAPI';
|
|
3
3
|
import { AssetInterface, CreateAssetRequest, GetAssetRequest } from '../types/Core/Asset';
|
|
4
4
|
import { GetOrganizationRequest, OrganizationInterface } from '../types/Core/Organization';
|
|
@@ -21,7 +21,6 @@ declare class Sdk implements SDK {
|
|
|
21
21
|
readonly logger: Logger;
|
|
22
22
|
readonly owneraAPI: OwneraAPIInterface;
|
|
23
23
|
readonly utils: SDKUtils;
|
|
24
|
-
readonly schemas: SDKSchemas;
|
|
25
24
|
readonly nodeId: string;
|
|
26
25
|
readonly custodianOrgId: string;
|
|
27
26
|
constructor(options: SdkOptions);
|
package/lib/core/sdk.js
CHANGED
|
@@ -7,7 +7,6 @@ const asset_1 = require("./asset");
|
|
|
7
7
|
const organization_1 = require("./organization");
|
|
8
8
|
const utils_1 = require("./utils");
|
|
9
9
|
const logger_1 = require("./logger");
|
|
10
|
-
const schemas_1 = require("../schemas");
|
|
11
10
|
/**
|
|
12
11
|
* Returns SDK instance with easy to use set of APIs to work with Ownera FinP2P node for various use cases.
|
|
13
12
|
*
|
|
@@ -45,13 +44,6 @@ class Sdk {
|
|
|
45
44
|
this.logger = logger;
|
|
46
45
|
this.owneraAPI = (0, __1.OwneraAPI)(ops);
|
|
47
46
|
this.utils = Object.assign(Object.assign({}, certificate_1.certificateUtils), { generateIdempotencyKey: utils_1.generateIdempotencyKey });
|
|
48
|
-
this.schemas = {
|
|
49
|
-
getSchema: schemas_1.getSchema,
|
|
50
|
-
getAssetsSchema: schemas_1.getAssetsSchema,
|
|
51
|
-
getUsersSchema: schemas_1.getUsersSchema,
|
|
52
|
-
getAvailableSchemas: schemas_1.getAvailableSchemas,
|
|
53
|
-
getAllSchemas: schemas_1.getAllSchemas,
|
|
54
|
-
};
|
|
55
47
|
this.nodeId = ops.orgId;
|
|
56
48
|
this.custodianOrgId = ops.custodianOrgId;
|
|
57
49
|
this.logger.info('SDK Options', {
|
package/lib/core/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/core/sdk.ts"],"names":[],"mappings":";;AAAA,0BAA+B;AAM/B,+CAAiD;AACjD,iCAA6C;AAC7C,mCAAgD;AAChD,iDAAiD;AACjD,mCAAiD;AACjD,qCAA+C;
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/core/sdk.ts"],"names":[],"mappings":";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KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAED,kBAAe,GAAG,CAAC"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -23,5 +23,4 @@ var OwneraAPI_1 = require("./OwneraAPI");
|
|
|
23
23
|
Object.defineProperty(exports, "OwneraAPI", { enumerable: true, get: function () { return __importDefault(OwneraAPI_1).default; } });
|
|
24
24
|
__exportStar(require("./types"), exports);
|
|
25
25
|
__exportStar(require("./validators"), exports);
|
|
26
|
-
__exportStar(require("./schemas"), exports);
|
|
27
26
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAmD;AAA1C,uHAAA,OAAO,OAAa;AAC7B,0CAAwB;AACxB,+CAA6B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAmD;AAA1C,uHAAA,OAAO,OAAa;AAC7B,0CAAwB;AACxB,+CAA6B"}
|
package/lib/types/Core/sdk.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ import { CreateUserRequest, GetUserRequest, UserInterface } from './User';
|
|
|
5
5
|
import { CertificateUtilsInterface } from './Certificates';
|
|
6
6
|
import { Logger } from './Logger';
|
|
7
7
|
import { CoreRequestOptions } from './Options';
|
|
8
|
-
import { QueryConfig } from '../Oss';
|
|
9
|
-
import { SchemaType } from '../../schemas';
|
|
10
8
|
/**
|
|
11
9
|
* SDK interface describe all abilities of the library to interact with different system instances
|
|
12
10
|
*/
|
|
@@ -69,42 +67,7 @@ export interface SDK {
|
|
|
69
67
|
* Point of access to the {@link Logger}
|
|
70
68
|
*/
|
|
71
69
|
logger: Logger;
|
|
72
|
-
/**
|
|
73
|
-
* Point of access to schema utilities
|
|
74
|
-
*/
|
|
75
|
-
schemas: SDKSchemas;
|
|
76
70
|
}
|
|
77
71
|
export interface SDKUtils extends CertificateUtilsInterface {
|
|
78
72
|
generateIdempotencyKey: () => string;
|
|
79
73
|
}
|
|
80
|
-
/**
|
|
81
|
-
* SDK Schema utilities for accessing query configurations
|
|
82
|
-
*/
|
|
83
|
-
export interface SDKSchemas {
|
|
84
|
-
/**
|
|
85
|
-
* Get a query configuration schema by type
|
|
86
|
-
* @param schemaType - The type of schema to retrieve ('assets' or 'users')
|
|
87
|
-
* @returns The query configuration for the specified schema
|
|
88
|
-
*/
|
|
89
|
-
getSchema: (schemaType: SchemaType) => QueryConfig;
|
|
90
|
-
/**
|
|
91
|
-
* Get the assets query configuration schema
|
|
92
|
-
* @returns The assets query configuration
|
|
93
|
-
*/
|
|
94
|
-
getAssetsSchema: () => QueryConfig;
|
|
95
|
-
/**
|
|
96
|
-
* Get the users/holdings query configuration schema
|
|
97
|
-
* @returns The users query configuration
|
|
98
|
-
*/
|
|
99
|
-
getUsersSchema: () => QueryConfig;
|
|
100
|
-
/**
|
|
101
|
-
* Get all available schema types
|
|
102
|
-
* @returns Array of available schema type names
|
|
103
|
-
*/
|
|
104
|
-
getAvailableSchemas: () => SchemaType[];
|
|
105
|
-
/**
|
|
106
|
-
* Get all schemas as a map
|
|
107
|
-
* @returns Record of all available schemas
|
|
108
|
-
*/
|
|
109
|
-
getAllSchemas: () => Record<SchemaType, QueryConfig>;
|
|
110
|
-
}
|
package/package.json
CHANGED
package/lib/schemas/assets.json
DELETED
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Assets",
|
|
3
|
-
"graphqlType": "assets",
|
|
4
|
-
"columns": [
|
|
5
|
-
{
|
|
6
|
-
"apiField": "pull_date",
|
|
7
|
-
"header": "pull_date",
|
|
8
|
-
"dataSource": "hardcoded",
|
|
9
|
-
"computedValue": "currentTimestamp"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"apiField": "id",
|
|
13
|
-
"header": "id",
|
|
14
|
-
"path": "id",
|
|
15
|
-
"graphqlPath": "id"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"apiField": "asset_class",
|
|
19
|
-
"header": "asset_class",
|
|
20
|
-
"dataSource": "hardcoded"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"apiField": "type",
|
|
24
|
-
"header": "type",
|
|
25
|
-
"path": "type",
|
|
26
|
-
"graphqlPath": "type"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"apiField": "name",
|
|
30
|
-
"header": "name",
|
|
31
|
-
"path": "name",
|
|
32
|
-
"graphqlPath": "name"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"apiField": "denomination",
|
|
36
|
-
"header": "denomination",
|
|
37
|
-
"path": "denomination.code",
|
|
38
|
-
"graphqlPath": "denomination { code }"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"apiField": "identifier_value",
|
|
42
|
-
"header": "identifier_value",
|
|
43
|
-
"path": "assetIdentifier.value",
|
|
44
|
-
"graphqlPath": "assetIdentifier { value }"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"apiField": "identifier_type",
|
|
48
|
-
"header": "identifier_type",
|
|
49
|
-
"path": "assetIdentifier.type",
|
|
50
|
-
"graphqlPath": "assetIdentifier { type }"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"apiField": "market",
|
|
54
|
-
"header": "market",
|
|
55
|
-
"dataSource": "hardcoded"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"apiField": "instrument",
|
|
59
|
-
"header": "instrument",
|
|
60
|
-
"dataSource": "hardcoded"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"apiField": "maty",
|
|
64
|
-
"header": "maty",
|
|
65
|
-
"dataSource": "hardcoded"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"apiField": "und_coupon",
|
|
69
|
-
"header": "und_coupon",
|
|
70
|
-
"dataSource": "hardcoded"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"apiField": "issuer_id",
|
|
74
|
-
"header": "issuer_id",
|
|
75
|
-
"path": "issuerId",
|
|
76
|
-
"graphqlPath": "issuerId"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"apiField": "issue_date",
|
|
80
|
-
"header": "issue_date",
|
|
81
|
-
"dataSource": "hardcoded"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"apiField": "outstanding_issuance",
|
|
85
|
-
"header": "outstanding_issuance",
|
|
86
|
-
"dataSource": "hardcoded"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"apiField": "accrual_basis",
|
|
90
|
-
"header": "accrual_basis",
|
|
91
|
-
"dataSource": "hardcoded"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"apiField": "frequency",
|
|
95
|
-
"header": "frequency",
|
|
96
|
-
"dataSource": "hardcoded"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"apiField": "valuation_price",
|
|
100
|
-
"header": "valuation_price",
|
|
101
|
-
"path": "certificates.nodes[type=NAV].data.currentNAV.navValue",
|
|
102
|
-
"graphqlPath": "certificates { nodes { type data } }",
|
|
103
|
-
"dataSource": "certificate",
|
|
104
|
-
"certificateType": "NAV"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"apiField": "acc_ddat",
|
|
108
|
-
"header": "acc_ddat",
|
|
109
|
-
"dataSource": "hardcoded"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"apiField": "inflat_ratio",
|
|
113
|
-
"header": "inflat_ratio",
|
|
114
|
-
"dataSource": "hardcoded"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"apiField": "record_date",
|
|
118
|
-
"header": "record_date",
|
|
119
|
-
"dataSource": "hardcoded"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"apiField": "ex_div_date",
|
|
123
|
-
"header": "ex_div_date",
|
|
124
|
-
"dataSource": "hardcoded"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"apiField": "next_coupon_date",
|
|
128
|
-
"header": "next_coupon_date",
|
|
129
|
-
"dataSource": "hardcoded"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"apiField": "additional_info_1",
|
|
133
|
-
"header": "additional_info_1",
|
|
134
|
-
"dataSource": "hardcoded"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"apiField": "additional_info_2",
|
|
138
|
-
"header": "additional_info_2",
|
|
139
|
-
"dataSource": "hardcoded"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"apiField": "additional_info_3",
|
|
143
|
-
"header": "additional_info_3",
|
|
144
|
-
"dataSource": "hardcoded"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"apiField": "additional_info_4",
|
|
148
|
-
"header": "additional_info_4",
|
|
149
|
-
"dataSource": "hardcoded"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"apiField": "notation",
|
|
153
|
-
"header": "notation",
|
|
154
|
-
"dataSource": "hardcoded"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"apiField": "mininum_tradable_amnt",
|
|
158
|
-
"header": "mininum_tradable_amnt",
|
|
159
|
-
"dataSource": "hardcoded"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"apiField": "multiple_tradable_amnt",
|
|
163
|
-
"header": "multiple_tradable_amnt",
|
|
164
|
-
"dataSource": "hardcoded"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"apiField": "rating_1",
|
|
168
|
-
"header": "rating_1",
|
|
169
|
-
"dataSource": "hardcoded"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"apiField": "rating_2",
|
|
173
|
-
"header": "rating_2",
|
|
174
|
-
"dataSource": "hardcoded"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"apiField": "rating_3",
|
|
178
|
-
"header": "rating_3",
|
|
179
|
-
"dataSource": "hardcoded"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"apiField": "rating_4",
|
|
183
|
-
"header": "rating_4",
|
|
184
|
-
"dataSource": "hardcoded"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"apiField": "rating_5",
|
|
188
|
-
"header": "rating_5",
|
|
189
|
-
"dataSource": "hardcoded"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"apiField": "rating_6",
|
|
193
|
-
"header": "rating_6",
|
|
194
|
-
"dataSource": "hardcoded"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"apiField": "is_enabled",
|
|
198
|
-
"header": "is_enabled",
|
|
199
|
-
"dataSource": "sideDB",
|
|
200
|
-
"sideDBQuery": {
|
|
201
|
-
"table": "Asset",
|
|
202
|
-
"field": "isAllowed",
|
|
203
|
-
"relationshipKey": "assetId",
|
|
204
|
-
"relationshipPath": "id"
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"apiField": "country_of_issue",
|
|
209
|
-
"header": "country_of_issue",
|
|
210
|
-
"dataSource": "external",
|
|
211
|
-
"externalQuery": {
|
|
212
|
-
"graphqlType": "users",
|
|
213
|
-
"relationshipKey": "issuer_id",
|
|
214
|
-
"relationshipPath": "issuer_id",
|
|
215
|
-
"filterFieldName": "id",
|
|
216
|
-
"idField": "userId",
|
|
217
|
-
"certificateType": "individual_info",
|
|
218
|
-
"path": "address.country",
|
|
219
|
-
"graphqlPath": "userId certificates { nodes { type data } }"
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"apiField": "price_level",
|
|
224
|
-
"header": "price_level",
|
|
225
|
-
"dataSource": "hardcoded",
|
|
226
|
-
"hardcodedValue": "Px last"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"apiField": "udf_1",
|
|
230
|
-
"header": "udf_1",
|
|
231
|
-
"dataSource": "hardcoded"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"apiField": "udf_2",
|
|
235
|
-
"header": "udf_2",
|
|
236
|
-
"dataSource": "hardcoded"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"apiField": "udf_3",
|
|
240
|
-
"header": "udf_3",
|
|
241
|
-
"dataSource": "hardcoded"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"apiField": "udf_4",
|
|
245
|
-
"header": "udf_4",
|
|
246
|
-
"dataSource": "hardcoded"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"apiField": "udf_5",
|
|
250
|
-
"header": "udf_5",
|
|
251
|
-
"dataSource": "hardcoded"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"apiField": "udf_6",
|
|
255
|
-
"header": "udf_6",
|
|
256
|
-
"dataSource": "hardcoded"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"apiField": "udf_7",
|
|
260
|
-
"header": "udf_7",
|
|
261
|
-
"dataSource": "hardcoded"
|
|
262
|
-
}
|
|
263
|
-
]
|
|
264
|
-
}
|
package/lib/schemas/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { QueryConfig } from '../types/Oss';
|
|
2
|
-
import assetsSchema from './assets.json';
|
|
3
|
-
import usersSchema from './users.json';
|
|
4
|
-
import transactionsSchema from './transactions.json';
|
|
5
|
-
/**
|
|
6
|
-
* Available schema types
|
|
7
|
-
*/
|
|
8
|
-
export type SchemaType = 'assets' | 'users' | 'transactions';
|
|
9
|
-
/**
|
|
10
|
-
* Get a query configuration schema by type
|
|
11
|
-
* @param schemaType - The type of schema to retrieve ('assets', 'users', or 'transactions')
|
|
12
|
-
* @returns The query configuration for the specified schema
|
|
13
|
-
*/
|
|
14
|
-
export declare const getSchema: (schemaType: SchemaType) => QueryConfig;
|
|
15
|
-
/**
|
|
16
|
-
* Get the assets query configuration schema
|
|
17
|
-
* @returns The assets query configuration
|
|
18
|
-
*/
|
|
19
|
-
export declare const getAssetsSchema: () => QueryConfig;
|
|
20
|
-
/**
|
|
21
|
-
* Get the users/holdings query configuration schema
|
|
22
|
-
* @returns The users query configuration
|
|
23
|
-
*/
|
|
24
|
-
export declare const getUsersSchema: () => QueryConfig;
|
|
25
|
-
/**
|
|
26
|
-
* Get the transactions/execution plans query configuration schema
|
|
27
|
-
* @returns The transactions query configuration
|
|
28
|
-
*/
|
|
29
|
-
export declare const getTransactionsSchema: () => QueryConfig;
|
|
30
|
-
/**
|
|
31
|
-
* Get all available schema types
|
|
32
|
-
* @returns Array of available schema type names
|
|
33
|
-
*/
|
|
34
|
-
export declare const getAvailableSchemas: () => SchemaType[];
|
|
35
|
-
/**
|
|
36
|
-
* Get all schemas as a map
|
|
37
|
-
* @returns Record of all available schemas
|
|
38
|
-
*/
|
|
39
|
-
export declare const getAllSchemas: () => Record<SchemaType, QueryConfig>;
|
|
40
|
-
export { assetsSchema, usersSchema, transactionsSchema };
|
package/lib/schemas/index.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.transactionsSchema = exports.usersSchema = exports.assetsSchema = exports.getAllSchemas = exports.getAvailableSchemas = exports.getTransactionsSchema = exports.getUsersSchema = exports.getAssetsSchema = exports.getSchema = void 0;
|
|
7
|
-
const assets_json_1 = __importDefault(require("./assets.json"));
|
|
8
|
-
exports.assetsSchema = assets_json_1.default;
|
|
9
|
-
const users_json_1 = __importDefault(require("./users.json"));
|
|
10
|
-
exports.usersSchema = users_json_1.default;
|
|
11
|
-
const transactions_json_1 = __importDefault(require("./transactions.json"));
|
|
12
|
-
exports.transactionsSchema = transactions_json_1.default;
|
|
13
|
-
/**
|
|
14
|
-
* Get a query configuration schema by type
|
|
15
|
-
* @param schemaType - The type of schema to retrieve ('assets', 'users', or 'transactions')
|
|
16
|
-
* @returns The query configuration for the specified schema
|
|
17
|
-
*/
|
|
18
|
-
const getSchema = (schemaType) => {
|
|
19
|
-
switch (schemaType) {
|
|
20
|
-
case 'assets':
|
|
21
|
-
return assets_json_1.default;
|
|
22
|
-
case 'users':
|
|
23
|
-
return users_json_1.default;
|
|
24
|
-
case 'transactions':
|
|
25
|
-
return transactions_json_1.default;
|
|
26
|
-
default:
|
|
27
|
-
throw new Error(`Unknown schema type: ${schemaType}`);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.getSchema = getSchema;
|
|
31
|
-
/**
|
|
32
|
-
* Get the assets query configuration schema
|
|
33
|
-
* @returns The assets query configuration
|
|
34
|
-
*/
|
|
35
|
-
const getAssetsSchema = () => {
|
|
36
|
-
return assets_json_1.default;
|
|
37
|
-
};
|
|
38
|
-
exports.getAssetsSchema = getAssetsSchema;
|
|
39
|
-
/**
|
|
40
|
-
* Get the users/holdings query configuration schema
|
|
41
|
-
* @returns The users query configuration
|
|
42
|
-
*/
|
|
43
|
-
const getUsersSchema = () => {
|
|
44
|
-
return users_json_1.default;
|
|
45
|
-
};
|
|
46
|
-
exports.getUsersSchema = getUsersSchema;
|
|
47
|
-
/**
|
|
48
|
-
* Get the transactions/execution plans query configuration schema
|
|
49
|
-
* @returns The transactions query configuration
|
|
50
|
-
*/
|
|
51
|
-
const getTransactionsSchema = () => {
|
|
52
|
-
return transactions_json_1.default;
|
|
53
|
-
};
|
|
54
|
-
exports.getTransactionsSchema = getTransactionsSchema;
|
|
55
|
-
/**
|
|
56
|
-
* Get all available schema types
|
|
57
|
-
* @returns Array of available schema type names
|
|
58
|
-
*/
|
|
59
|
-
const getAvailableSchemas = () => {
|
|
60
|
-
return ['assets', 'users', 'transactions'];
|
|
61
|
-
};
|
|
62
|
-
exports.getAvailableSchemas = getAvailableSchemas;
|
|
63
|
-
/**
|
|
64
|
-
* Get all schemas as a map
|
|
65
|
-
* @returns Record of all available schemas
|
|
66
|
-
*/
|
|
67
|
-
const getAllSchemas = () => {
|
|
68
|
-
return {
|
|
69
|
-
assets: assets_json_1.default,
|
|
70
|
-
users: users_json_1.default,
|
|
71
|
-
transactions: transactions_json_1.default,
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
exports.getAllSchemas = getAllSchemas;
|
|
75
|
-
//# sourceMappingURL=index.js.map
|
package/lib/schemas/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;AACA,gEAAyC;AAwEhC,uBAxEF,qBAAY,CAwEE;AAvErB,8DAAuC;AAuEhB,sBAvEhB,oBAAW,CAuEgB;AAtElC,4EAAqD;AAsEjB,6BAtE7B,2BAAkB,CAsE6B;AA/DtD;;;;GAIG;AACI,MAAM,SAAS,GAAG,CAAC,UAAsB,EAAe,EAAE;IAC/D,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,qBAA2B,CAAC;QACrC,KAAK,OAAO;YACV,OAAO,oBAA0B,CAAC;QACpC,KAAK,cAAc;YACjB,OAAO,2BAAiC,CAAC;QAC3C;YACE,MAAM,IAAI,KAAK,CAAC,wBAAwB,UAAU,EAAE,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC,CAAC;AAXW,QAAA,SAAS,aAWpB;AAEF;;;GAGG;AACI,MAAM,eAAe,GAAG,GAAgB,EAAE;IAC/C,OAAO,qBAA2B,CAAC;AACrC,CAAC,CAAC;AAFW,QAAA,eAAe,mBAE1B;AAEF;;;GAGG;AACI,MAAM,cAAc,GAAG,GAAgB,EAAE;IAC9C,OAAO,oBAA0B,CAAC;AACpC,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