bharosa 0.3.3 → 0.5.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.
@@ -0,0 +1,665 @@
1
+ "use strict";
2
+ // Generated from the reviewed analytics OpenAPI snapshot. Transport only.
3
+ module.exports = {
4
+ "operations": {
5
+ "analytics_scheme": {
6
+ "path": "/v1/accounts/{account}/market-data/schemes/{id}/performance",
7
+ "method": "GET",
8
+ "status": 200,
9
+ "marketData": true,
10
+ "readOnly": true,
11
+ "parameters": [
12
+ {
13
+ "name": "account",
14
+ "in": "path",
15
+ "required": true,
16
+ "schema": {
17
+ "type": "string",
18
+ "pattern": "^(me|acct_[a-f0-9]{32})$"
19
+ }
20
+ },
21
+ {
22
+ "name": "id",
23
+ "in": "path",
24
+ "required": true,
25
+ "schema": {
26
+ "type": "string",
27
+ "pattern": "^[1-9][0-9]{0,18}$"
28
+ }
29
+ },
30
+ {
31
+ "name": "as_of",
32
+ "in": "query",
33
+ "required": true,
34
+ "schema": {
35
+ "type": "string",
36
+ "format": "date",
37
+ "pattern": "^\\d{4}-\\d{2}-01$"
38
+ }
39
+ },
40
+ {
41
+ "name": "periods",
42
+ "in": "query",
43
+ "required": false,
44
+ "schema": {
45
+ "type": "string",
46
+ "pattern": "^(1y|3y|5y|since_inception)(,(1y|3y|5y|since_inception)){0,3}$"
47
+ }
48
+ }
49
+ ],
50
+ "response": {
51
+ "type": "object",
52
+ "properties": {
53
+ "methodology_version": {
54
+ "const": "ts-analytics-v1"
55
+ },
56
+ "requested_as_of": {
57
+ "type": "string",
58
+ "format": "date",
59
+ "pattern": "^\\d{4}-\\d{2}-01$"
60
+ },
61
+ "currency": {
62
+ "const": "INR"
63
+ },
64
+ "source_cutoff": {
65
+ "type": "string",
66
+ "format": "date",
67
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
68
+ },
69
+ "source_version": {
70
+ "type": "string"
71
+ },
72
+ "warnings": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "object": {
79
+ "const": "scheme_performance"
80
+ },
81
+ "scheme_id": {
82
+ "type": "string"
83
+ },
84
+ "fund_id": {
85
+ "type": "string"
86
+ },
87
+ "plan": {
88
+ "type": "string"
89
+ },
90
+ "option": {
91
+ "type": "string"
92
+ },
93
+ "basis": {
94
+ "type": "string"
95
+ },
96
+ "periods": {
97
+ "type": "array",
98
+ "items": {
99
+ "type": "object",
100
+ "properties": {
101
+ "period": {
102
+ "enum": [
103
+ "1y",
104
+ "3y",
105
+ "5y",
106
+ "since_inception"
107
+ ]
108
+ },
109
+ "requested_start": {
110
+ "anyOf": [
111
+ {
112
+ "type": "string",
113
+ "format": "date",
114
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ]
120
+ },
121
+ "requested_end": {
122
+ "type": "string",
123
+ "format": "date",
124
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
125
+ },
126
+ "status": {
127
+ "enum": [
128
+ "available",
129
+ "unavailable"
130
+ ]
131
+ },
132
+ "reason": {
133
+ "anyOf": [
134
+ {
135
+ "type": "string"
136
+ },
137
+ {
138
+ "type": "null"
139
+ }
140
+ ]
141
+ },
142
+ "total_return_pct": {
143
+ "anyOf": [
144
+ {
145
+ "type": "object",
146
+ "properties": {
147
+ "status": {
148
+ "const": "available"
149
+ },
150
+ "value": {
151
+ "type": "string",
152
+ "pattern": "^-?\\d+(\\.\\d{1,8})?$"
153
+ },
154
+ "reason": {
155
+ "type": "null"
156
+ }
157
+ },
158
+ "required": [
159
+ "status",
160
+ "value",
161
+ "reason"
162
+ ],
163
+ "additionalProperties": true
164
+ },
165
+ {
166
+ "type": "object",
167
+ "properties": {
168
+ "status": {
169
+ "const": "unavailable"
170
+ },
171
+ "value": {
172
+ "type": "null"
173
+ },
174
+ "reason": {
175
+ "type": "string"
176
+ }
177
+ },
178
+ "required": [
179
+ "status",
180
+ "value",
181
+ "reason"
182
+ ],
183
+ "additionalProperties": true
184
+ }
185
+ ]
186
+ },
187
+ "cagr_pct": {
188
+ "anyOf": [
189
+ {
190
+ "type": "object",
191
+ "properties": {
192
+ "status": {
193
+ "const": "available"
194
+ },
195
+ "value": {
196
+ "type": "string",
197
+ "pattern": "^-?\\d+(\\.\\d{1,8})?$"
198
+ },
199
+ "reason": {
200
+ "type": "null"
201
+ }
202
+ },
203
+ "required": [
204
+ "status",
205
+ "value",
206
+ "reason"
207
+ ],
208
+ "additionalProperties": true
209
+ },
210
+ {
211
+ "type": "object",
212
+ "properties": {
213
+ "status": {
214
+ "const": "unavailable"
215
+ },
216
+ "value": {
217
+ "type": "null"
218
+ },
219
+ "reason": {
220
+ "type": "string"
221
+ }
222
+ },
223
+ "required": [
224
+ "status",
225
+ "value",
226
+ "reason"
227
+ ],
228
+ "additionalProperties": true
229
+ }
230
+ ]
231
+ },
232
+ "start_observation_date": {
233
+ "anyOf": [
234
+ {
235
+ "type": "string",
236
+ "format": "date",
237
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
238
+ },
239
+ {
240
+ "type": "null"
241
+ }
242
+ ]
243
+ },
244
+ "end_observation_date": {
245
+ "anyOf": [
246
+ {
247
+ "type": "string",
248
+ "format": "date",
249
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
250
+ },
251
+ {
252
+ "type": "null"
253
+ }
254
+ ]
255
+ },
256
+ "start_nav": {
257
+ "anyOf": [
258
+ {
259
+ "type": "string"
260
+ },
261
+ {
262
+ "type": "null"
263
+ }
264
+ ]
265
+ },
266
+ "end_nav": {
267
+ "anyOf": [
268
+ {
269
+ "type": "string"
270
+ },
271
+ {
272
+ "type": "null"
273
+ }
274
+ ]
275
+ },
276
+ "start_lag_days": {
277
+ "anyOf": [
278
+ {
279
+ "type": "integer",
280
+ "minimum": 0
281
+ },
282
+ {
283
+ "type": "null"
284
+ }
285
+ ]
286
+ },
287
+ "end_lag_days": {
288
+ "anyOf": [
289
+ {
290
+ "type": "integer",
291
+ "minimum": 0
292
+ },
293
+ {
294
+ "type": "null"
295
+ }
296
+ ]
297
+ },
298
+ "elapsed_days": {
299
+ "anyOf": [
300
+ {
301
+ "type": "number"
302
+ },
303
+ {
304
+ "type": "null"
305
+ }
306
+ ]
307
+ },
308
+ "annualization_basis": {
309
+ "const": "observed_nav_dates_365_25"
310
+ }
311
+ },
312
+ "required": [
313
+ "period",
314
+ "requested_start",
315
+ "requested_end",
316
+ "status",
317
+ "reason",
318
+ "total_return_pct",
319
+ "cagr_pct",
320
+ "start_observation_date",
321
+ "end_observation_date",
322
+ "start_nav",
323
+ "end_nav",
324
+ "start_lag_days",
325
+ "end_lag_days",
326
+ "elapsed_days",
327
+ "annualization_basis"
328
+ ],
329
+ "additionalProperties": true
330
+ },
331
+ "minItems": 1,
332
+ "maxItems": 4
333
+ }
334
+ },
335
+ "required": [
336
+ "methodology_version",
337
+ "requested_as_of",
338
+ "currency",
339
+ "source_cutoff",
340
+ "source_version",
341
+ "warnings",
342
+ "object",
343
+ "scheme_id",
344
+ "fund_id",
345
+ "plan",
346
+ "option",
347
+ "basis",
348
+ "periods"
349
+ ],
350
+ "additionalProperties": true
351
+ }
352
+ },
353
+ "analytics_category": {
354
+ "path": "/v1/accounts/{account}/market-data/categories/{id}/statistics",
355
+ "method": "GET",
356
+ "status": 200,
357
+ "marketData": true,
358
+ "readOnly": true,
359
+ "parameters": [
360
+ {
361
+ "name": "account",
362
+ "in": "path",
363
+ "required": true,
364
+ "schema": {
365
+ "type": "string",
366
+ "pattern": "^(me|acct_[a-f0-9]{32})$"
367
+ }
368
+ },
369
+ {
370
+ "name": "id",
371
+ "in": "path",
372
+ "required": true,
373
+ "schema": {
374
+ "type": "string",
375
+ "minLength": 1,
376
+ "maxLength": 100
377
+ }
378
+ },
379
+ {
380
+ "name": "as_of",
381
+ "in": "query",
382
+ "required": true,
383
+ "schema": {
384
+ "type": "string",
385
+ "format": "date",
386
+ "pattern": "^\\d{4}-\\d{2}-01$"
387
+ }
388
+ },
389
+ {
390
+ "name": "periods",
391
+ "in": "query",
392
+ "required": false,
393
+ "schema": {
394
+ "type": "string",
395
+ "pattern": "^(1y|3y|5y|since_inception)(,(1y|3y|5y|since_inception)){0,3}$"
396
+ }
397
+ },
398
+ {
399
+ "name": "metrics",
400
+ "in": "query",
401
+ "required": false,
402
+ "schema": {
403
+ "type": "string",
404
+ "const": "return",
405
+ "default": "return"
406
+ }
407
+ },
408
+ {
409
+ "name": "plan",
410
+ "in": "query",
411
+ "required": false,
412
+ "schema": {
413
+ "enum": [
414
+ "direct",
415
+ "regular"
416
+ ]
417
+ }
418
+ },
419
+ {
420
+ "name": "option",
421
+ "in": "query",
422
+ "required": false,
423
+ "schema": {
424
+ "const": "growth"
425
+ }
426
+ }
427
+ ],
428
+ "response": {
429
+ "type": "object",
430
+ "properties": {
431
+ "methodology_version": {
432
+ "const": "ts-analytics-v1"
433
+ },
434
+ "requested_as_of": {
435
+ "type": "string",
436
+ "format": "date",
437
+ "pattern": "^\\d{4}-\\d{2}-01$"
438
+ },
439
+ "currency": {
440
+ "const": "INR"
441
+ },
442
+ "source_cutoff": {
443
+ "type": "string",
444
+ "format": "date",
445
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
446
+ },
447
+ "source_version": {
448
+ "type": "string"
449
+ },
450
+ "warnings": {
451
+ "type": "array",
452
+ "items": {
453
+ "type": "string"
454
+ }
455
+ },
456
+ "object": {
457
+ "const": "category_statistics"
458
+ },
459
+ "category": {
460
+ "type": "string"
461
+ },
462
+ "cohort": {
463
+ "type": "object",
464
+ "properties": {
465
+ "policy": {
466
+ "const": "current_classification_as_of_prices"
467
+ },
468
+ "plan": {
469
+ "enum": [
470
+ "direct",
471
+ "regular"
472
+ ]
473
+ },
474
+ "option": {
475
+ "const": "growth"
476
+ },
477
+ "fund_count": {
478
+ "type": "integer",
479
+ "minimum": 0
480
+ },
481
+ "selected_scheme_count": {
482
+ "type": "integer",
483
+ "minimum": 0
484
+ },
485
+ "classification_date": {
486
+ "anyOf": [
487
+ {
488
+ "type": "string",
489
+ "format": "date",
490
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
491
+ },
492
+ {
493
+ "type": "null"
494
+ }
495
+ ]
496
+ }
497
+ },
498
+ "required": [
499
+ "policy",
500
+ "plan",
501
+ "option",
502
+ "fund_count",
503
+ "selected_scheme_count",
504
+ "classification_date"
505
+ ],
506
+ "additionalProperties": true
507
+ },
508
+ "metrics": {
509
+ "type": "object",
510
+ "additionalProperties": {
511
+ "anyOf": [
512
+ {
513
+ "type": "object",
514
+ "properties": {
515
+ "status": {
516
+ "const": "available"
517
+ },
518
+ "value": {
519
+ "type": "string",
520
+ "pattern": "^-?\\d+(\\.\\d{1,8})?$"
521
+ },
522
+ "reason": {
523
+ "type": "null"
524
+ },
525
+ "method": {
526
+ "const": "equal_weighted_arithmetic_mean"
527
+ },
528
+ "unit": {
529
+ "type": "string"
530
+ },
531
+ "eligible_count": {
532
+ "type": "integer",
533
+ "minimum": 0
534
+ },
535
+ "valid_count": {
536
+ "type": "integer",
537
+ "minimum": 0
538
+ },
539
+ "stale_count": {
540
+ "type": "integer",
541
+ "minimum": 0
542
+ },
543
+ "invalid_count": {
544
+ "type": "integer",
545
+ "minimum": 0
546
+ },
547
+ "missing_count": {
548
+ "type": "integer",
549
+ "minimum": 0
550
+ },
551
+ "coverage_pct": {
552
+ "type": "string",
553
+ "pattern": "^\\d+(\\.\\d+)?$"
554
+ },
555
+ "exclusions": {
556
+ "type": "object",
557
+ "additionalProperties": {
558
+ "type": "integer",
559
+ "minimum": 0
560
+ }
561
+ }
562
+ },
563
+ "required": [
564
+ "status",
565
+ "value",
566
+ "reason",
567
+ "method",
568
+ "unit",
569
+ "eligible_count",
570
+ "valid_count",
571
+ "stale_count",
572
+ "invalid_count",
573
+ "missing_count",
574
+ "coverage_pct",
575
+ "exclusions"
576
+ ],
577
+ "additionalProperties": true
578
+ },
579
+ {
580
+ "type": "object",
581
+ "properties": {
582
+ "status": {
583
+ "const": "unavailable"
584
+ },
585
+ "value": {
586
+ "type": "null"
587
+ },
588
+ "reason": {
589
+ "type": "string"
590
+ },
591
+ "method": {
592
+ "const": "equal_weighted_arithmetic_mean"
593
+ },
594
+ "unit": {
595
+ "type": "string"
596
+ },
597
+ "eligible_count": {
598
+ "type": "integer",
599
+ "minimum": 0
600
+ },
601
+ "valid_count": {
602
+ "type": "integer",
603
+ "minimum": 0
604
+ },
605
+ "stale_count": {
606
+ "type": "integer",
607
+ "minimum": 0
608
+ },
609
+ "invalid_count": {
610
+ "type": "integer",
611
+ "minimum": 0
612
+ },
613
+ "missing_count": {
614
+ "type": "integer",
615
+ "minimum": 0
616
+ },
617
+ "coverage_pct": {
618
+ "type": "string",
619
+ "pattern": "^\\d+(\\.\\d+)?$"
620
+ },
621
+ "exclusions": {
622
+ "type": "object",
623
+ "additionalProperties": {
624
+ "type": "integer",
625
+ "minimum": 0
626
+ }
627
+ }
628
+ },
629
+ "required": [
630
+ "status",
631
+ "value",
632
+ "reason",
633
+ "method",
634
+ "unit",
635
+ "eligible_count",
636
+ "valid_count",
637
+ "stale_count",
638
+ "invalid_count",
639
+ "missing_count",
640
+ "coverage_pct",
641
+ "exclusions"
642
+ ],
643
+ "additionalProperties": true
644
+ }
645
+ ]
646
+ }
647
+ }
648
+ },
649
+ "required": [
650
+ "methodology_version",
651
+ "requested_as_of",
652
+ "currency",
653
+ "source_cutoff",
654
+ "source_version",
655
+ "warnings",
656
+ "object",
657
+ "category",
658
+ "cohort",
659
+ "metrics"
660
+ ],
661
+ "additionalProperties": true
662
+ }
663
+ }
664
+ }
665
+ };
@@ -0,0 +1,2 @@
1
+ import type { Operation } from "./schema.cjs";
2
+ export const operations: Readonly<Record<string, Operation>>;
@@ -0,0 +1,2 @@
1
+ import type { Operation } from "./schema.js";
2
+ export const operations: Readonly<Record<string, Operation>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });