cas-parser-node 1.4.0 → 1.6.2
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/CHANGELOG.md +118 -0
- package/LICENSE +1 -1
- package/README.md +30 -32
- package/client.d.mts +51 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +51 -7
- package/client.d.ts.map +1 -1
- package/client.js +56 -12
- package/client.js.map +1 -1
- package/client.mjs +56 -12
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +9 -10
- package/resources/access-token.d.mts +48 -0
- package/resources/access-token.d.mts.map +1 -0
- package/resources/access-token.d.ts +48 -0
- package/resources/access-token.d.ts.map +1 -0
- package/resources/access-token.js +30 -0
- package/resources/access-token.js.map +1 -0
- package/resources/access-token.mjs +26 -0
- package/resources/access-token.mjs.map +1 -0
- package/resources/{cas-parser.d.mts → cams-kfintech.d.mts} +282 -105
- package/resources/cams-kfintech.d.mts.map +1 -0
- package/resources/{cas-parser.d.ts → cams-kfintech.d.ts} +282 -105
- package/resources/cams-kfintech.d.ts.map +1 -0
- package/resources/cams-kfintech.js +18 -0
- package/resources/cams-kfintech.js.map +1 -0
- package/resources/cams-kfintech.mjs +14 -0
- package/resources/cams-kfintech.mjs.map +1 -0
- package/resources/cdsl/cdsl.d.mts +39 -0
- package/resources/cdsl/cdsl.d.mts.map +1 -0
- package/resources/cdsl/cdsl.d.ts +39 -0
- package/resources/cdsl/cdsl.d.ts.map +1 -0
- package/resources/cdsl/cdsl.js +31 -0
- package/resources/cdsl/cdsl.js.map +1 -0
- package/resources/cdsl/cdsl.mjs +26 -0
- package/resources/cdsl/cdsl.mjs.map +1 -0
- package/resources/cdsl/fetch.d.mts +91 -0
- package/resources/cdsl/fetch.d.mts.map +1 -0
- package/resources/cdsl/fetch.d.ts +91 -0
- package/resources/cdsl/fetch.d.ts.map +1 -0
- package/resources/cdsl/fetch.js +50 -0
- package/resources/cdsl/fetch.js.map +1 -0
- package/resources/cdsl/fetch.mjs +46 -0
- package/resources/cdsl/fetch.mjs.map +1 -0
- package/resources/cdsl/index.d.mts +3 -0
- package/resources/cdsl/index.d.mts.map +1 -0
- package/resources/cdsl/index.d.ts +3 -0
- package/resources/cdsl/index.d.ts.map +1 -0
- package/resources/cdsl/index.js +9 -0
- package/resources/cdsl/index.js.map +1 -0
- package/resources/cdsl/index.mjs +4 -0
- package/resources/cdsl/index.mjs.map +1 -0
- package/resources/cdsl.d.mts +2 -0
- package/resources/cdsl.d.mts.map +1 -0
- package/resources/cdsl.d.ts +2 -0
- package/resources/cdsl.d.ts.map +1 -0
- package/resources/cdsl.js +6 -0
- package/resources/cdsl.js.map +1 -0
- package/resources/cdsl.mjs +3 -0
- package/resources/cdsl.mjs.map +1 -0
- package/resources/contract-note.d.mts +323 -0
- package/resources/contract-note.d.mts.map +1 -0
- package/resources/contract-note.d.ts +323 -0
- package/resources/contract-note.d.ts.map +1 -0
- package/resources/contract-note.js +49 -0
- package/resources/contract-note.js.map +1 -0
- package/resources/contract-note.mjs +45 -0
- package/resources/contract-note.mjs.map +1 -0
- package/resources/credits.d.mts +47 -0
- package/resources/credits.d.mts.map +1 -0
- package/resources/credits.d.ts +47 -0
- package/resources/credits.d.ts.map +1 -0
- package/resources/credits.js +23 -0
- package/resources/credits.js.map +1 -0
- package/resources/credits.mjs +19 -0
- package/resources/credits.mjs.map +1 -0
- package/resources/inbox.d.mts +206 -0
- package/resources/inbox.d.mts.map +1 -0
- package/resources/inbox.d.ts +206 -0
- package/resources/inbox.d.ts.map +1 -0
- package/resources/inbox.js +109 -0
- package/resources/inbox.js.map +1 -0
- package/resources/inbox.mjs +105 -0
- package/resources/inbox.mjs.map +1 -0
- package/resources/index.d.mts +11 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +23 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +11 -2
- package/resources/index.mjs.map +1 -1
- package/resources/kfintech.d.mts +53 -0
- package/resources/kfintech.d.mts.map +1 -0
- package/resources/kfintech.d.ts +53 -0
- package/resources/kfintech.d.ts.map +1 -0
- package/resources/kfintech.js +29 -0
- package/resources/kfintech.js.map +1 -0
- package/resources/kfintech.mjs +25 -0
- package/resources/kfintech.mjs.map +1 -0
- package/resources/logs.d.mts +129 -0
- package/resources/logs.d.mts.map +1 -0
- package/resources/logs.d.ts +129 -0
- package/resources/logs.d.ts.map +1 -0
- package/resources/logs.js +37 -0
- package/resources/logs.js.map +1 -0
- package/resources/logs.mjs +33 -0
- package/resources/logs.mjs.map +1 -0
- package/resources/nsdl.d.mts +30 -0
- package/resources/nsdl.d.mts.map +1 -0
- package/resources/nsdl.d.ts +30 -0
- package/resources/nsdl.d.ts.map +1 -0
- package/resources/nsdl.js +18 -0
- package/resources/nsdl.js.map +1 -0
- package/resources/nsdl.mjs +14 -0
- package/resources/nsdl.mjs.map +1 -0
- package/resources/smart.d.mts +31 -0
- package/resources/smart.d.mts.map +1 -0
- package/resources/smart.d.ts +31 -0
- package/resources/smart.d.ts.map +1 -0
- package/resources/smart.js +19 -0
- package/resources/smart.js.map +1 -0
- package/resources/smart.mjs +15 -0
- package/resources/smart.mjs.map +1 -0
- package/resources/verify-token.d.mts +28 -0
- package/resources/verify-token.d.mts.map +1 -0
- package/resources/verify-token.d.ts +28 -0
- package/resources/verify-token.d.ts.map +1 -0
- package/resources/verify-token.js +16 -0
- package/resources/verify-token.js.map +1 -0
- package/resources/verify-token.mjs +12 -0
- package/resources/verify-token.mjs.map +1 -0
- package/src/client.ts +143 -31
- package/src/internal/parse.ts +6 -0
- package/src/internal/to-file.ts +1 -1
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/access-token.ts +63 -0
- package/src/resources/{cas-parser.ts → cams-kfintech.ts} +340 -130
- package/src/resources/cdsl/cdsl.ts +67 -0
- package/src/resources/cdsl/fetch.ts +122 -0
- package/src/resources/cdsl/index.ts +10 -0
- package/src/resources/cdsl.ts +3 -0
- package/src/resources/contract-note.ts +402 -0
- package/src/resources/credits.ts +58 -0
- package/src/resources/inbox.ts +283 -0
- package/src/resources/index.ts +31 -11
- package/src/resources/kfintech.ts +71 -0
- package/src/resources/logs.ts +170 -0
- package/src/resources/nsdl.ts +42 -0
- package/src/resources/smart.ts +46 -0
- package/src/resources/verify-token.ts +36 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/cas-generator.d.mts +0 -56
- package/resources/cas-generator.d.mts.map +0 -1
- package/resources/cas-generator.d.ts +0 -56
- package/resources/cas-generator.d.ts.map +0 -1
- package/resources/cas-generator.js +0 -27
- package/resources/cas-generator.js.map +0 -1
- package/resources/cas-generator.mjs +0 -23
- package/resources/cas-generator.mjs.map +0 -1
- package/resources/cas-parser.d.mts.map +0 -1
- package/resources/cas-parser.d.ts.map +0 -1
- package/resources/cas-parser.js +0 -43
- package/resources/cas-parser.js.map +0 -1
- package/resources/cas-parser.mjs +0 -39
- package/resources/cas-parser.mjs.map +0 -1
- package/src/resources/cas-generator.ts +0 -75
|
@@ -1,58 +1,146 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as CamsKfintechAPI from './cams-kfintech';
|
|
4
5
|
import { APIPromise } from '../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../internal/request-options';
|
|
6
7
|
import { maybeMultipartFormRequestOptions } from '../internal/uploads';
|
|
7
8
|
|
|
8
|
-
export class
|
|
9
|
+
export class CamsKfintech extends APIResource {
|
|
9
10
|
/**
|
|
10
11
|
* This endpoint specifically parses CAMS/KFintech CAS (Consolidated Account
|
|
11
12
|
* Statement) PDF files and returns data in a unified format. Use this endpoint
|
|
12
13
|
* when you know the PDF is from CAMS or KFintech.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
parse(body: CamsKfintechParseParams, options?: RequestOptions): APIPromise<UnifiedResponse> {
|
|
15
16
|
return this._client.post(
|
|
16
17
|
'/v4/cams_kfintech/parse',
|
|
17
18
|
maybeMultipartFormRequestOptions({ body, ...options }, this._client),
|
|
18
19
|
);
|
|
19
20
|
}
|
|
21
|
+
}
|
|
20
22
|
|
|
23
|
+
export interface LinkedHolder {
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
23
|
-
* files and returns data in a unified format. Use this endpoint when you know the
|
|
24
|
-
* PDF is from CDSL.
|
|
25
|
+
* Name of the account holder
|
|
25
26
|
*/
|
|
26
|
-
|
|
27
|
-
return this._client.post(
|
|
28
|
-
'/v4/cdsl/parse',
|
|
29
|
-
maybeMultipartFormRequestOptions({ body, ...options }, this._client),
|
|
30
|
-
);
|
|
31
|
-
}
|
|
27
|
+
name?: string;
|
|
32
28
|
|
|
33
29
|
/**
|
|
34
|
-
*
|
|
35
|
-
* files and returns data in a unified format. Use this endpoint when you know the
|
|
36
|
-
* PDF is from NSDL.
|
|
30
|
+
* PAN of the account holder
|
|
37
31
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
'/v4/nsdl/parse',
|
|
41
|
-
maybeMultipartFormRequestOptions({ body, ...options }, this._client),
|
|
42
|
-
);
|
|
43
|
-
}
|
|
32
|
+
pan?: string;
|
|
33
|
+
}
|
|
44
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Unified transaction schema for all holding types (MF folios, equities, bonds,
|
|
37
|
+
* etc.)
|
|
38
|
+
*/
|
|
39
|
+
export interface Transaction {
|
|
45
40
|
/**
|
|
46
|
-
*
|
|
47
|
-
* CDSL, or CAMS/KFintech and returns data in a unified format. It auto-detects the
|
|
48
|
-
* CAS type and transforms the data into a consistent structure regardless of the
|
|
49
|
-
* source.
|
|
41
|
+
* Additional transaction-specific fields that vary by source
|
|
50
42
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
43
|
+
additional_info?: Transaction.AdditionalInfo;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Transaction amount in currency (computed from units × price/NAV)
|
|
47
|
+
*/
|
|
48
|
+
amount?: number | null;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Balance units after transaction
|
|
52
|
+
*/
|
|
53
|
+
balance?: number;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Transaction date (YYYY-MM-DD)
|
|
57
|
+
*/
|
|
58
|
+
date?: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Transaction description/particulars
|
|
62
|
+
*/
|
|
63
|
+
description?: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Dividend rate (for DIVIDEND_PAYOUT transactions)
|
|
67
|
+
*/
|
|
68
|
+
dividend_rate?: number | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* NAV/price per unit on transaction date
|
|
72
|
+
*/
|
|
73
|
+
nav?: number | null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Transaction type. Possible values are PURCHASE, PURCHASE_SIP, REDEMPTION,
|
|
77
|
+
* SWITCH_IN, SWITCH_IN_MERGER, SWITCH_OUT, SWITCH_OUT_MERGER, DIVIDEND_PAYOUT,
|
|
78
|
+
* DIVIDEND_REINVEST, SEGREGATION, STAMP_DUTY_TAX, TDS_TAX, STT_TAX, MISC,
|
|
79
|
+
* REVERSAL, UNKNOWN.
|
|
80
|
+
*/
|
|
81
|
+
type?:
|
|
82
|
+
| 'PURCHASE'
|
|
83
|
+
| 'PURCHASE_SIP'
|
|
84
|
+
| 'REDEMPTION'
|
|
85
|
+
| 'SWITCH_IN'
|
|
86
|
+
| 'SWITCH_IN_MERGER'
|
|
87
|
+
| 'SWITCH_OUT'
|
|
88
|
+
| 'SWITCH_OUT_MERGER'
|
|
89
|
+
| 'DIVIDEND_PAYOUT'
|
|
90
|
+
| 'DIVIDEND_REINVEST'
|
|
91
|
+
| 'SEGREGATION'
|
|
92
|
+
| 'STAMP_DUTY_TAX'
|
|
93
|
+
| 'TDS_TAX'
|
|
94
|
+
| 'STT_TAX'
|
|
95
|
+
| 'MISC'
|
|
96
|
+
| 'REVERSAL'
|
|
97
|
+
| 'UNKNOWN';
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Number of units involved in transaction
|
|
101
|
+
*/
|
|
102
|
+
units?: number;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export namespace Transaction {
|
|
106
|
+
/**
|
|
107
|
+
* Additional transaction-specific fields that vary by source
|
|
108
|
+
*/
|
|
109
|
+
export interface AdditionalInfo {
|
|
110
|
+
/**
|
|
111
|
+
* Capital withdrawal amount (CDSL MF transactions)
|
|
112
|
+
*/
|
|
113
|
+
capital_withdrawal?: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Units credited (demat transactions)
|
|
117
|
+
*/
|
|
118
|
+
credit?: number;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Units debited (demat transactions)
|
|
122
|
+
*/
|
|
123
|
+
debit?: number;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Income distribution amount (CDSL MF transactions)
|
|
127
|
+
*/
|
|
128
|
+
income_distribution?: number;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Order/transaction reference number (demat transactions)
|
|
132
|
+
*/
|
|
133
|
+
order_no?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Price per unit (NSDL/CDSL MF transactions)
|
|
137
|
+
*/
|
|
138
|
+
price?: number;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Stamp duty charged
|
|
142
|
+
*/
|
|
143
|
+
stamp_duty?: number;
|
|
56
144
|
}
|
|
57
145
|
}
|
|
58
146
|
|
|
@@ -67,6 +155,11 @@ export interface UnifiedResponse {
|
|
|
67
155
|
|
|
68
156
|
mutual_funds?: Array<UnifiedResponse.MutualFund>;
|
|
69
157
|
|
|
158
|
+
/**
|
|
159
|
+
* List of NPS accounts
|
|
160
|
+
*/
|
|
161
|
+
nps?: Array<UnifiedResponse.Np>;
|
|
162
|
+
|
|
70
163
|
summary?: UnifiedResponse.Summary;
|
|
71
164
|
}
|
|
72
165
|
|
|
@@ -104,6 +197,11 @@ export namespace UnifiedResponse {
|
|
|
104
197
|
|
|
105
198
|
holdings?: DematAccount.Holdings;
|
|
106
199
|
|
|
200
|
+
/**
|
|
201
|
+
* List of account holders linked to this demat account
|
|
202
|
+
*/
|
|
203
|
+
linked_holders?: Array<CamsKfintechAPI.LinkedHolder>;
|
|
204
|
+
|
|
107
205
|
/**
|
|
108
206
|
* Total value of the demat account
|
|
109
207
|
*/
|
|
@@ -173,7 +271,7 @@ export namespace UnifiedResponse {
|
|
|
173
271
|
/**
|
|
174
272
|
* Additional information specific to the AIF
|
|
175
273
|
*/
|
|
176
|
-
additional_info?:
|
|
274
|
+
additional_info?: Aif.AdditionalInfo;
|
|
177
275
|
|
|
178
276
|
/**
|
|
179
277
|
* ISIN code of the AIF
|
|
@@ -185,6 +283,11 @@ export namespace UnifiedResponse {
|
|
|
185
283
|
*/
|
|
186
284
|
name?: string;
|
|
187
285
|
|
|
286
|
+
/**
|
|
287
|
+
* List of transactions for this holding (beta)
|
|
288
|
+
*/
|
|
289
|
+
transactions?: Array<CamsKfintechAPI.Transaction>;
|
|
290
|
+
|
|
188
291
|
/**
|
|
189
292
|
* Number of units held
|
|
190
293
|
*/
|
|
@@ -196,11 +299,28 @@ export namespace UnifiedResponse {
|
|
|
196
299
|
value?: number;
|
|
197
300
|
}
|
|
198
301
|
|
|
302
|
+
export namespace Aif {
|
|
303
|
+
/**
|
|
304
|
+
* Additional information specific to the AIF
|
|
305
|
+
*/
|
|
306
|
+
export interface AdditionalInfo {
|
|
307
|
+
/**
|
|
308
|
+
* Closing balance units for the statement period (beta)
|
|
309
|
+
*/
|
|
310
|
+
close_units?: number | null;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Opening balance units for the statement period (beta)
|
|
314
|
+
*/
|
|
315
|
+
open_units?: number | null;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
199
319
|
export interface CorporateBond {
|
|
200
320
|
/**
|
|
201
321
|
* Additional information specific to the corporate bond
|
|
202
322
|
*/
|
|
203
|
-
additional_info?:
|
|
323
|
+
additional_info?: CorporateBond.AdditionalInfo;
|
|
204
324
|
|
|
205
325
|
/**
|
|
206
326
|
* ISIN code of the corporate bond
|
|
@@ -212,6 +332,11 @@ export namespace UnifiedResponse {
|
|
|
212
332
|
*/
|
|
213
333
|
name?: string;
|
|
214
334
|
|
|
335
|
+
/**
|
|
336
|
+
* List of transactions for this holding (beta)
|
|
337
|
+
*/
|
|
338
|
+
transactions?: Array<CamsKfintechAPI.Transaction>;
|
|
339
|
+
|
|
215
340
|
/**
|
|
216
341
|
* Number of units held
|
|
217
342
|
*/
|
|
@@ -223,11 +348,28 @@ export namespace UnifiedResponse {
|
|
|
223
348
|
value?: number;
|
|
224
349
|
}
|
|
225
350
|
|
|
351
|
+
export namespace CorporateBond {
|
|
352
|
+
/**
|
|
353
|
+
* Additional information specific to the corporate bond
|
|
354
|
+
*/
|
|
355
|
+
export interface AdditionalInfo {
|
|
356
|
+
/**
|
|
357
|
+
* Closing balance units for the statement period (beta)
|
|
358
|
+
*/
|
|
359
|
+
close_units?: number | null;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Opening balance units for the statement period (beta)
|
|
363
|
+
*/
|
|
364
|
+
open_units?: number | null;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
226
368
|
export interface DematMutualFund {
|
|
227
369
|
/**
|
|
228
370
|
* Additional information specific to the mutual fund
|
|
229
371
|
*/
|
|
230
|
-
additional_info?:
|
|
372
|
+
additional_info?: DematMutualFund.AdditionalInfo;
|
|
231
373
|
|
|
232
374
|
/**
|
|
233
375
|
* ISIN code of the mutual fund
|
|
@@ -239,6 +381,11 @@ export namespace UnifiedResponse {
|
|
|
239
381
|
*/
|
|
240
382
|
name?: string;
|
|
241
383
|
|
|
384
|
+
/**
|
|
385
|
+
* List of transactions for this holding (beta)
|
|
386
|
+
*/
|
|
387
|
+
transactions?: Array<CamsKfintechAPI.Transaction>;
|
|
388
|
+
|
|
242
389
|
/**
|
|
243
390
|
* Number of units held
|
|
244
391
|
*/
|
|
@@ -250,11 +397,28 @@ export namespace UnifiedResponse {
|
|
|
250
397
|
value?: number;
|
|
251
398
|
}
|
|
252
399
|
|
|
400
|
+
export namespace DematMutualFund {
|
|
401
|
+
/**
|
|
402
|
+
* Additional information specific to the mutual fund
|
|
403
|
+
*/
|
|
404
|
+
export interface AdditionalInfo {
|
|
405
|
+
/**
|
|
406
|
+
* Closing balance units for the statement period (beta)
|
|
407
|
+
*/
|
|
408
|
+
close_units?: number | null;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Opening balance units for the statement period (beta)
|
|
412
|
+
*/
|
|
413
|
+
open_units?: number | null;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
253
417
|
export interface Equity {
|
|
254
418
|
/**
|
|
255
419
|
* Additional information specific to the equity
|
|
256
420
|
*/
|
|
257
|
-
additional_info?:
|
|
421
|
+
additional_info?: Equity.AdditionalInfo;
|
|
258
422
|
|
|
259
423
|
/**
|
|
260
424
|
* ISIN code of the equity
|
|
@@ -266,6 +430,11 @@ export namespace UnifiedResponse {
|
|
|
266
430
|
*/
|
|
267
431
|
name?: string;
|
|
268
432
|
|
|
433
|
+
/**
|
|
434
|
+
* List of transactions for this holding (beta)
|
|
435
|
+
*/
|
|
436
|
+
transactions?: Array<CamsKfintechAPI.Transaction>;
|
|
437
|
+
|
|
269
438
|
/**
|
|
270
439
|
* Number of units held
|
|
271
440
|
*/
|
|
@@ -277,11 +446,28 @@ export namespace UnifiedResponse {
|
|
|
277
446
|
value?: number;
|
|
278
447
|
}
|
|
279
448
|
|
|
449
|
+
export namespace Equity {
|
|
450
|
+
/**
|
|
451
|
+
* Additional information specific to the equity
|
|
452
|
+
*/
|
|
453
|
+
export interface AdditionalInfo {
|
|
454
|
+
/**
|
|
455
|
+
* Closing balance units for the statement period (beta)
|
|
456
|
+
*/
|
|
457
|
+
close_units?: number | null;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Opening balance units for the statement period (beta)
|
|
461
|
+
*/
|
|
462
|
+
open_units?: number | null;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
280
466
|
export interface GovernmentSecurity {
|
|
281
467
|
/**
|
|
282
468
|
* Additional information specific to the government security
|
|
283
469
|
*/
|
|
284
|
-
additional_info?:
|
|
470
|
+
additional_info?: GovernmentSecurity.AdditionalInfo;
|
|
285
471
|
|
|
286
472
|
/**
|
|
287
473
|
* ISIN code of the government security
|
|
@@ -293,6 +479,11 @@ export namespace UnifiedResponse {
|
|
|
293
479
|
*/
|
|
294
480
|
name?: string;
|
|
295
481
|
|
|
482
|
+
/**
|
|
483
|
+
* List of transactions for this holding (beta)
|
|
484
|
+
*/
|
|
485
|
+
transactions?: Array<CamsKfintechAPI.Transaction>;
|
|
486
|
+
|
|
296
487
|
/**
|
|
297
488
|
* Number of units held
|
|
298
489
|
*/
|
|
@@ -303,6 +494,23 @@ export namespace UnifiedResponse {
|
|
|
303
494
|
*/
|
|
304
495
|
value?: number;
|
|
305
496
|
}
|
|
497
|
+
|
|
498
|
+
export namespace GovernmentSecurity {
|
|
499
|
+
/**
|
|
500
|
+
* Additional information specific to the government security
|
|
501
|
+
*/
|
|
502
|
+
export interface AdditionalInfo {
|
|
503
|
+
/**
|
|
504
|
+
* Closing balance units for the statement period (beta)
|
|
505
|
+
*/
|
|
506
|
+
close_units?: number | null;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Opening balance units for the statement period (beta)
|
|
510
|
+
*/
|
|
511
|
+
open_units?: number | null;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
306
514
|
}
|
|
307
515
|
}
|
|
308
516
|
|
|
@@ -440,6 +648,11 @@ export namespace UnifiedResponse {
|
|
|
440
648
|
*/
|
|
441
649
|
folio_number?: string;
|
|
442
650
|
|
|
651
|
+
/**
|
|
652
|
+
* List of account holders linked to this mutual fund folio
|
|
653
|
+
*/
|
|
654
|
+
linked_holders?: Array<CamsKfintechAPI.LinkedHolder>;
|
|
655
|
+
|
|
443
656
|
/**
|
|
444
657
|
* Registrar and Transfer Agent name
|
|
445
658
|
*/
|
|
@@ -507,7 +720,7 @@ export namespace UnifiedResponse {
|
|
|
507
720
|
*/
|
|
508
721
|
nominees?: Array<string>;
|
|
509
722
|
|
|
510
|
-
transactions?: Array<
|
|
723
|
+
transactions?: Array<CamsKfintechAPI.Transaction>;
|
|
511
724
|
|
|
512
725
|
/**
|
|
513
726
|
* Type of mutual fund scheme
|
|
@@ -541,14 +754,14 @@ export namespace UnifiedResponse {
|
|
|
541
754
|
amfi?: string;
|
|
542
755
|
|
|
543
756
|
/**
|
|
544
|
-
* Closing balance units
|
|
757
|
+
* Closing balance units for the statement period
|
|
545
758
|
*/
|
|
546
|
-
close_units?: number;
|
|
759
|
+
close_units?: number | null;
|
|
547
760
|
|
|
548
761
|
/**
|
|
549
|
-
* Opening balance units
|
|
762
|
+
* Opening balance units for the statement period
|
|
550
763
|
*/
|
|
551
|
-
open_units?: number;
|
|
764
|
+
open_units?: number | null;
|
|
552
765
|
|
|
553
766
|
/**
|
|
554
767
|
* RTA code for the scheme (CAMS/KFintech)
|
|
@@ -567,50 +780,85 @@ export namespace UnifiedResponse {
|
|
|
567
780
|
*/
|
|
568
781
|
percentage?: number;
|
|
569
782
|
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
570
785
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
786
|
+
export interface Np {
|
|
787
|
+
/**
|
|
788
|
+
* Additional information specific to the NPS account
|
|
789
|
+
*/
|
|
790
|
+
additional_info?: unknown;
|
|
576
791
|
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
792
|
+
/**
|
|
793
|
+
* Central Record Keeping Agency name
|
|
794
|
+
*/
|
|
795
|
+
cra?: string;
|
|
581
796
|
|
|
582
|
-
|
|
583
|
-
* Transaction date
|
|
584
|
-
*/
|
|
585
|
-
date?: string;
|
|
797
|
+
funds?: Array<Np.Fund>;
|
|
586
798
|
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
799
|
+
/**
|
|
800
|
+
* List of account holders linked to this NPS account
|
|
801
|
+
*/
|
|
802
|
+
linked_holders?: Array<CamsKfintechAPI.LinkedHolder>;
|
|
591
803
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
804
|
+
/**
|
|
805
|
+
* Permanent Retirement Account Number (PRAN)
|
|
806
|
+
*/
|
|
807
|
+
pran?: string;
|
|
596
808
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
809
|
+
/**
|
|
810
|
+
* Total value of the NPS account
|
|
811
|
+
*/
|
|
812
|
+
value?: number;
|
|
813
|
+
}
|
|
601
814
|
|
|
815
|
+
export namespace Np {
|
|
816
|
+
export interface Fund {
|
|
817
|
+
/**
|
|
818
|
+
* Additional information specific to the NPS fund
|
|
819
|
+
*/
|
|
820
|
+
additional_info?: Fund.AdditionalInfo;
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Cost of investment
|
|
824
|
+
*/
|
|
825
|
+
cost?: number;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Name of the NPS fund
|
|
829
|
+
*/
|
|
830
|
+
name?: string;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Net Asset Value per unit
|
|
834
|
+
*/
|
|
835
|
+
nav?: number;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Number of units held
|
|
839
|
+
*/
|
|
840
|
+
units?: number;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Current market value of the holding
|
|
844
|
+
*/
|
|
845
|
+
value?: number;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
export namespace Fund {
|
|
849
|
+
/**
|
|
850
|
+
* Additional information specific to the NPS fund
|
|
851
|
+
*/
|
|
852
|
+
export interface AdditionalInfo {
|
|
602
853
|
/**
|
|
603
|
-
*
|
|
604
|
-
* PURCHASE,PURCHASE_SIP,REDEMPTION,SWITCH_IN,SWITCH_IN_MERGER,SWITCH_OUT,SWITCH_OUT_MERGER,DIVIDEND_PAYOUT,DIVIDEND_REINVESTMENT,SEGREGATION,STAMP_DUTY_TAX,TDS_TAX,STT_TAX,MISC.
|
|
605
|
-
* If dividend_rate is present, then possible values are dividend_rate is
|
|
606
|
-
* applicable only for DIVIDEND_PAYOUT and DIVIDEND_REINVESTMENT.
|
|
854
|
+
* Fund manager name
|
|
607
855
|
*/
|
|
608
|
-
|
|
856
|
+
manager?: string;
|
|
609
857
|
|
|
610
858
|
/**
|
|
611
|
-
*
|
|
859
|
+
* NPS tier (Tier I or Tier II)
|
|
612
860
|
*/
|
|
613
|
-
|
|
861
|
+
tier?: 1 | 2 | null;
|
|
614
862
|
}
|
|
615
863
|
}
|
|
616
864
|
}
|
|
@@ -631,6 +879,8 @@ export namespace UnifiedResponse {
|
|
|
631
879
|
insurance?: Accounts.Insurance;
|
|
632
880
|
|
|
633
881
|
mutual_funds?: Accounts.MutualFunds;
|
|
882
|
+
|
|
883
|
+
nps?: Accounts.Nps;
|
|
634
884
|
}
|
|
635
885
|
|
|
636
886
|
export namespace Accounts {
|
|
@@ -669,84 +919,44 @@ export namespace UnifiedResponse {
|
|
|
669
919
|
*/
|
|
670
920
|
total_value?: number;
|
|
671
921
|
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
export interface CasParserCamsKfintechParams {
|
|
677
|
-
/**
|
|
678
|
-
* Password for the PDF file (if required)
|
|
679
|
-
*/
|
|
680
|
-
password?: string;
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Base64 encoded CAS PDF file
|
|
684
|
-
*/
|
|
685
|
-
pdf_file?: string;
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* URL to the CAS PDF file
|
|
689
|
-
*/
|
|
690
|
-
pdf_url?: string;
|
|
691
|
-
}
|
|
692
922
|
|
|
693
|
-
export interface
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Base64 encoded CAS PDF file
|
|
701
|
-
*/
|
|
702
|
-
pdf_file?: string;
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* URL to the CAS PDF file
|
|
706
|
-
*/
|
|
707
|
-
pdf_url?: string;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
export interface CasParserNsdlParams {
|
|
711
|
-
/**
|
|
712
|
-
* Password for the PDF file (if required)
|
|
713
|
-
*/
|
|
714
|
-
password?: string;
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* Base64 encoded CAS PDF file
|
|
718
|
-
*/
|
|
719
|
-
pdf_file?: string;
|
|
923
|
+
export interface Nps {
|
|
924
|
+
/**
|
|
925
|
+
* Number of NPS accounts
|
|
926
|
+
*/
|
|
927
|
+
count?: number;
|
|
720
928
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
929
|
+
/**
|
|
930
|
+
* Total value of NPS accounts
|
|
931
|
+
*/
|
|
932
|
+
total_value?: number;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
725
936
|
}
|
|
726
937
|
|
|
727
|
-
export interface
|
|
938
|
+
export interface CamsKfintechParseParams {
|
|
728
939
|
/**
|
|
729
940
|
* Password for the PDF file (if required)
|
|
730
941
|
*/
|
|
731
942
|
password?: string;
|
|
732
943
|
|
|
733
944
|
/**
|
|
734
|
-
* Base64 encoded CAS PDF file
|
|
945
|
+
* Base64 encoded CAS PDF file (required if pdf_url not provided)
|
|
735
946
|
*/
|
|
736
947
|
pdf_file?: string;
|
|
737
948
|
|
|
738
949
|
/**
|
|
739
|
-
* URL to the CAS PDF file
|
|
950
|
+
* URL to the CAS PDF file (required if pdf_file not provided)
|
|
740
951
|
*/
|
|
741
952
|
pdf_url?: string;
|
|
742
953
|
}
|
|
743
954
|
|
|
744
|
-
export declare namespace
|
|
955
|
+
export declare namespace CamsKfintech {
|
|
745
956
|
export {
|
|
957
|
+
type LinkedHolder as LinkedHolder,
|
|
958
|
+
type Transaction as Transaction,
|
|
746
959
|
type UnifiedResponse as UnifiedResponse,
|
|
747
|
-
type
|
|
748
|
-
type CasParserCdslParams as CasParserCdslParams,
|
|
749
|
-
type CasParserNsdlParams as CasParserNsdlParams,
|
|
750
|
-
type CasParserSmartParseParams as CasParserSmartParseParams,
|
|
960
|
+
type CamsKfintechParseParams as CamsKfintechParseParams,
|
|
751
961
|
};
|
|
752
962
|
}
|