@mbanq/core-sdk-js 0.5.2 → 0.5.3
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 +14 -28
- package/dist/chunk-4N3OVWR3.mjs +32 -0
- package/dist/chunk-EOHC7SUY.mjs +1 -0
- package/dist/chunk-HW3IOTYG.js +32 -0
- package/dist/chunk-JPUZHUQX.js +1 -0
- package/dist/chunk-KS3N4XE4.mjs +1 -0
- package/dist/chunk-TW43MUEE.js +1 -0
- package/dist/client/index.d.mts +3 -1267
- package/dist/client/index.d.ts +3 -1267
- package/dist/client/index.js +1 -1
- package/dist/client/index.mjs +1 -1
- package/dist/commands/index.d.mts +4 -101
- package/dist/commands/index.d.ts +4 -101
- package/dist/commands/index.js +1 -1
- package/dist/commands/index.mjs +1 -1
- package/dist/config.d-io5V_aK4.d.mts +53 -0
- package/dist/config.d-io5V_aK4.d.ts +53 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{client-Cx8h8Q3_.d.mts → user-Bi5spwoF.d.ts} +4336 -2430
- package/dist/{client-Cx8h8Q3_.d.ts → user-Db1Hv2n2.d.mts} +4336 -2430
- package/package.json +1 -1
- package/dist/chunk-62FPM434.js +0 -1
- package/dist/chunk-EFJCWTJG.mjs +0 -1
- package/dist/chunk-EZM3WQ4G.js +0 -1
- package/dist/chunk-KYBDTUPK.js +0 -32
- package/dist/chunk-TUGSCLOB.mjs +0 -1
- package/dist/chunk-X5UU2EKK.mjs +0 -32
- package/dist/user-B5Xv2ZQp.d.ts +0 -291
- package/dist/user-hULJGPTk.d.mts +0 -291
package/dist/user-hULJGPTk.d.mts
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { b as CreatePaymentInput, a as Command, Y as ProcessOutput, P as Payment, U as UpdatePaymentInput, g as PaymentFilters, c as PaymentResponse, E as UpdateClientRequest, F as ProcessOutput$1, G as UpdateClientIdentifierRequest, Z as UpdateClientIdentifierResponse, D as CreateClientRequest, _ as CreateClientResponse, $ as ListClientsRequest, a0 as ListClientsResponse, v as SavingAccount, a1 as ListAccountsOfClientRequest, z as UpdateAccountRequest, a2 as GraphQLRequest } from './client-Cx8h8Q3_.mjs';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
declare const UserDetailShape: {
|
|
5
|
-
username: z.ZodString;
|
|
6
|
-
userId: z.ZodNumber;
|
|
7
|
-
accessToken: z.ZodString;
|
|
8
|
-
authenticated: z.ZodBoolean;
|
|
9
|
-
officeId: z.ZodNumber;
|
|
10
|
-
officeName: z.ZodString;
|
|
11
|
-
roles: z.ZodArray<z.ZodObject<{
|
|
12
|
-
id: z.ZodNumber;
|
|
13
|
-
name: z.ZodString;
|
|
14
|
-
description: z.ZodString;
|
|
15
|
-
disabled: z.ZodBoolean;
|
|
16
|
-
isSelfService: z.ZodBoolean;
|
|
17
|
-
position: z.ZodNumber;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
name: string;
|
|
20
|
-
id: number;
|
|
21
|
-
description: string;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
isSelfService: boolean;
|
|
24
|
-
position: number;
|
|
25
|
-
}, {
|
|
26
|
-
name: string;
|
|
27
|
-
id: number;
|
|
28
|
-
description: string;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
isSelfService: boolean;
|
|
31
|
-
position: number;
|
|
32
|
-
}>, "many">;
|
|
33
|
-
permissions: z.ZodArray<z.ZodString, "many">;
|
|
34
|
-
shouldRenewPassword: z.ZodBoolean;
|
|
35
|
-
isTwoFactorAuthenticationRequired: z.ZodBoolean;
|
|
36
|
-
isSelfServiceUser: z.ZodBoolean;
|
|
37
|
-
};
|
|
38
|
-
declare const UserDetailSchema: z.ZodObject<{
|
|
39
|
-
username: z.ZodString;
|
|
40
|
-
userId: z.ZodNumber;
|
|
41
|
-
accessToken: z.ZodString;
|
|
42
|
-
authenticated: z.ZodBoolean;
|
|
43
|
-
officeId: z.ZodNumber;
|
|
44
|
-
officeName: z.ZodString;
|
|
45
|
-
roles: z.ZodArray<z.ZodObject<{
|
|
46
|
-
id: z.ZodNumber;
|
|
47
|
-
name: z.ZodString;
|
|
48
|
-
description: z.ZodString;
|
|
49
|
-
disabled: z.ZodBoolean;
|
|
50
|
-
isSelfService: z.ZodBoolean;
|
|
51
|
-
position: z.ZodNumber;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
name: string;
|
|
54
|
-
id: number;
|
|
55
|
-
description: string;
|
|
56
|
-
disabled: boolean;
|
|
57
|
-
isSelfService: boolean;
|
|
58
|
-
position: number;
|
|
59
|
-
}, {
|
|
60
|
-
name: string;
|
|
61
|
-
id: number;
|
|
62
|
-
description: string;
|
|
63
|
-
disabled: boolean;
|
|
64
|
-
isSelfService: boolean;
|
|
65
|
-
position: number;
|
|
66
|
-
}>, "many">;
|
|
67
|
-
permissions: z.ZodArray<z.ZodString, "many">;
|
|
68
|
-
shouldRenewPassword: z.ZodBoolean;
|
|
69
|
-
isTwoFactorAuthenticationRequired: z.ZodBoolean;
|
|
70
|
-
isSelfServiceUser: z.ZodBoolean;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
username: string;
|
|
73
|
-
userId: number;
|
|
74
|
-
accessToken: string;
|
|
75
|
-
authenticated: boolean;
|
|
76
|
-
officeId: number;
|
|
77
|
-
officeName: string;
|
|
78
|
-
roles: {
|
|
79
|
-
name: string;
|
|
80
|
-
id: number;
|
|
81
|
-
description: string;
|
|
82
|
-
disabled: boolean;
|
|
83
|
-
isSelfService: boolean;
|
|
84
|
-
position: number;
|
|
85
|
-
}[];
|
|
86
|
-
permissions: string[];
|
|
87
|
-
shouldRenewPassword: boolean;
|
|
88
|
-
isTwoFactorAuthenticationRequired: boolean;
|
|
89
|
-
isSelfServiceUser: boolean;
|
|
90
|
-
}, {
|
|
91
|
-
username: string;
|
|
92
|
-
userId: number;
|
|
93
|
-
accessToken: string;
|
|
94
|
-
authenticated: boolean;
|
|
95
|
-
officeId: number;
|
|
96
|
-
officeName: string;
|
|
97
|
-
roles: {
|
|
98
|
-
name: string;
|
|
99
|
-
id: number;
|
|
100
|
-
description: string;
|
|
101
|
-
disabled: boolean;
|
|
102
|
-
isSelfService: boolean;
|
|
103
|
-
position: number;
|
|
104
|
-
}[];
|
|
105
|
-
permissions: string[];
|
|
106
|
-
shouldRenewPassword: boolean;
|
|
107
|
-
isTwoFactorAuthenticationRequired: boolean;
|
|
108
|
-
isSelfServiceUser: boolean;
|
|
109
|
-
}>;
|
|
110
|
-
type UserDetail = z.infer<typeof UserDetailSchema>;
|
|
111
|
-
|
|
112
|
-
declare const CreatePayment: (params: {
|
|
113
|
-
payment: CreatePaymentInput;
|
|
114
|
-
tenantId?: string;
|
|
115
|
-
}) => Command<{
|
|
116
|
-
payment: CreatePaymentInput;
|
|
117
|
-
tenantId?: string;
|
|
118
|
-
}, ProcessOutput>;
|
|
119
|
-
declare const GetPayment: (params: {
|
|
120
|
-
id: number;
|
|
121
|
-
tenantId?: string;
|
|
122
|
-
}) => Command<{
|
|
123
|
-
id: number;
|
|
124
|
-
tenantId?: string;
|
|
125
|
-
}, Payment>;
|
|
126
|
-
declare const UpdatePayment: (params: {
|
|
127
|
-
id: number;
|
|
128
|
-
payment: UpdatePaymentInput;
|
|
129
|
-
tenantId?: string;
|
|
130
|
-
}) => Command<{
|
|
131
|
-
id: number;
|
|
132
|
-
payment: UpdatePaymentInput;
|
|
133
|
-
tenantId?: string;
|
|
134
|
-
}, Payment>;
|
|
135
|
-
declare const GetPayments: (params: PaymentFilters, configuration?: {
|
|
136
|
-
tenantId?: string;
|
|
137
|
-
}) => Command<{
|
|
138
|
-
params: PaymentFilters;
|
|
139
|
-
configuration?: {
|
|
140
|
-
tenantId?: string;
|
|
141
|
-
};
|
|
142
|
-
}, PaymentResponse>;
|
|
143
|
-
declare const DeletePayment: (params: {
|
|
144
|
-
id: number;
|
|
145
|
-
tenantId?: string;
|
|
146
|
-
}) => Command<{
|
|
147
|
-
id: number;
|
|
148
|
-
tenantId?: string;
|
|
149
|
-
}, void>;
|
|
150
|
-
|
|
151
|
-
interface SimpleCard {
|
|
152
|
-
internalCardId: string,
|
|
153
|
-
cardType?: string,
|
|
154
|
-
tenantIdentifier?: string,
|
|
155
|
-
status?: string
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface AuthorizationRequest {
|
|
159
|
-
card: SimpleCard,
|
|
160
|
-
payload: any,
|
|
161
|
-
tenantId?: string,
|
|
162
|
-
skipNotification?: boolean,
|
|
163
|
-
flag?: string
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
interface CardUpdate {
|
|
167
|
-
clientId: number,
|
|
168
|
-
businessCardIDURL: string,
|
|
169
|
-
businessCardIDQRCode: string
|
|
170
|
-
tenantId?: string
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
declare const SendAuthorizationToCore: (params: AuthorizationRequest) => Command<AuthorizationRequest, any>;
|
|
174
|
-
declare const UpdateCardID: (params: CardUpdate) => Command<CardUpdate, void>;
|
|
175
|
-
|
|
176
|
-
declare const GetClient: (params: {
|
|
177
|
-
clientId: number;
|
|
178
|
-
tenantId?: string;
|
|
179
|
-
riskRating?: boolean;
|
|
180
|
-
clientAddress?: boolean;
|
|
181
|
-
clientIdentifier?: boolean;
|
|
182
|
-
staffInSelectedOfficeOnly?: boolean;
|
|
183
|
-
checkIdentitiesExpiration?: boolean;
|
|
184
|
-
clientAccountAssociate?: boolean;
|
|
185
|
-
}) => Command<{
|
|
186
|
-
clientId: number;
|
|
187
|
-
tenantId?: string;
|
|
188
|
-
riskRating?: boolean;
|
|
189
|
-
clientAddress?: boolean;
|
|
190
|
-
clientIdentifier?: boolean;
|
|
191
|
-
staffInSelectedOfficeOnly?: boolean;
|
|
192
|
-
checkIdentitiesExpiration?: boolean;
|
|
193
|
-
clientAccountAssociate?: boolean;
|
|
194
|
-
}, any>;
|
|
195
|
-
declare const UpdateClient: (params: {
|
|
196
|
-
tenantId?: string;
|
|
197
|
-
clientId: number;
|
|
198
|
-
updates: UpdateClientRequest;
|
|
199
|
-
}) => Command<{
|
|
200
|
-
tenantId?: string;
|
|
201
|
-
clientId: number;
|
|
202
|
-
updates: UpdateClientRequest;
|
|
203
|
-
}, ProcessOutput$1>;
|
|
204
|
-
declare const UpdateClientIdentifier: (params: {
|
|
205
|
-
tenantId?: string;
|
|
206
|
-
clientId: number;
|
|
207
|
-
identifierId: string;
|
|
208
|
-
updates: UpdateClientIdentifierRequest;
|
|
209
|
-
}) => Command<{
|
|
210
|
-
tenantId?: string;
|
|
211
|
-
clientId: number;
|
|
212
|
-
identifierId: string;
|
|
213
|
-
updates: UpdateClientIdentifierRequest;
|
|
214
|
-
}, UpdateClientIdentifierResponse>;
|
|
215
|
-
declare const CreateClient: (params: {
|
|
216
|
-
tenantId?: string;
|
|
217
|
-
clientData: CreateClientRequest;
|
|
218
|
-
}) => Command<{
|
|
219
|
-
tenantId?: string;
|
|
220
|
-
clientData: CreateClientRequest;
|
|
221
|
-
}, CreateClientResponse>;
|
|
222
|
-
declare const GetClients: (params: ListClientsRequest, configuration: {
|
|
223
|
-
tenantId?: string;
|
|
224
|
-
}) => Command<{
|
|
225
|
-
params: ListClientsRequest;
|
|
226
|
-
configuration: {
|
|
227
|
-
tenantId?: string;
|
|
228
|
-
};
|
|
229
|
-
}, ListClientsResponse>;
|
|
230
|
-
declare const DeleteClient: (params: {
|
|
231
|
-
clientId: number;
|
|
232
|
-
tenantId?: string;
|
|
233
|
-
}) => Command<{
|
|
234
|
-
clientId: number;
|
|
235
|
-
tenantId?: string;
|
|
236
|
-
}, ProcessOutput$1>;
|
|
237
|
-
|
|
238
|
-
declare const GetAccount: (params: {
|
|
239
|
-
id: number;
|
|
240
|
-
tenantId?: string;
|
|
241
|
-
}) => Command<{
|
|
242
|
-
id: number;
|
|
243
|
-
tenantId?: string;
|
|
244
|
-
}, SavingAccount>;
|
|
245
|
-
declare const UpdateAccount: (params: {
|
|
246
|
-
clientId: number;
|
|
247
|
-
accountId: number;
|
|
248
|
-
updates: UpdateAccountRequest;
|
|
249
|
-
tenantId?: string;
|
|
250
|
-
}) => Command<{
|
|
251
|
-
clientId: number;
|
|
252
|
-
accountId: number;
|
|
253
|
-
updates: UpdateAccountRequest;
|
|
254
|
-
tenantId?: string;
|
|
255
|
-
}, any>;
|
|
256
|
-
declare const DeleteAccount: (params: {
|
|
257
|
-
accountId: number;
|
|
258
|
-
tenantId?: string;
|
|
259
|
-
}) => Command<{
|
|
260
|
-
accountId: number;
|
|
261
|
-
tenantId?: string;
|
|
262
|
-
}, ProcessOutput$1>;
|
|
263
|
-
declare const ListAccountsOfClient: (params?: {
|
|
264
|
-
clientId: number;
|
|
265
|
-
tenantId?: string;
|
|
266
|
-
}) => {
|
|
267
|
-
list: () => {
|
|
268
|
-
where: (field: string) => {
|
|
269
|
-
eq: (value: any) => /*elided*/ any;
|
|
270
|
-
};
|
|
271
|
-
execute: () => Command<any, ListAccountsOfClientRequest>;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
declare const GetAccountsOfClient: (clientId: number, params: ListAccountsOfClientRequest, configuration: {
|
|
275
|
-
tenantId?: string;
|
|
276
|
-
}) => Command<{
|
|
277
|
-
params: ListAccountsOfClientRequest;
|
|
278
|
-
configuration: {
|
|
279
|
-
tenantId?: string;
|
|
280
|
-
};
|
|
281
|
-
}, ListAccountsOfClientRequest>;
|
|
282
|
-
|
|
283
|
-
declare const GraphQL: (request: GraphQLRequest) => Command<GraphQLRequest, any>;
|
|
284
|
-
|
|
285
|
-
declare const GetUserDetail: (params?: {
|
|
286
|
-
tenantId?: string;
|
|
287
|
-
}) => Command<{
|
|
288
|
-
tenantId?: string;
|
|
289
|
-
}, UserDetail>;
|
|
290
|
-
|
|
291
|
-
export { CreatePayment as C, DeleteClient as D, GetPayment as G, ListAccountsOfClient as L, SendAuthorizationToCore as S, UpdatePayment as U, GetPayments as a, UpdateCardID as b, GetClient as c, UpdateClient as d, UpdateClientIdentifier as e, CreateClient as f, GetClients as g, GetAccount as h, GetAccountsOfClient as i, UpdateAccount as j, DeleteAccount as k, GraphQL as l, GetUserDetail as m, type UserDetail as n, UserDetailSchema as o, UserDetailShape as p, DeletePayment as q };
|