@aitlabs/namkwong 0.0.110 → 0.0.111
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/dist/admin/index.d.ts +50 -0
- package/dist/asset-convert-product/user/router.d.ts +1 -13
- package/dist/bank-account/user/router.d.ts +1 -13
- package/dist/file-storage/admin/router.d.ts +13 -1
- package/dist/file-storage/user/router.d.ts +13 -1
- package/dist/index.d.ts +50 -0
- package/dist/ledger-account/admin/dto.schemas.d.ts +23 -0
- package/dist/ledger-account/admin/router.d.ts +50 -0
- package/dist/ledger-account/admin/service.d.ts +16 -1
- package/dist/receipt-method/admin/router.d.ts +1 -13
- package/dist/team/admin/router.d.ts +13 -1
- package/package.json +1 -1
package/dist/admin/index.d.ts
CHANGED
|
@@ -3586,6 +3586,56 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
3586
3586
|
};
|
|
3587
3587
|
};
|
|
3588
3588
|
};
|
|
3589
|
+
} & {
|
|
3590
|
+
ledger_accounts: {
|
|
3591
|
+
adjust: {
|
|
3592
|
+
cny_balance: {
|
|
3593
|
+
users: {
|
|
3594
|
+
batch: {
|
|
3595
|
+
post: {
|
|
3596
|
+
body: {
|
|
3597
|
+
direction: "decrease" | "increase";
|
|
3598
|
+
amount: string;
|
|
3599
|
+
memo?: string | undefined;
|
|
3600
|
+
idempotencyKey: string;
|
|
3601
|
+
userIds: string[];
|
|
3602
|
+
};
|
|
3603
|
+
params: {};
|
|
3604
|
+
query: {};
|
|
3605
|
+
headers: {};
|
|
3606
|
+
response: {
|
|
3607
|
+
200: {
|
|
3608
|
+
totalCount: number;
|
|
3609
|
+
successCount: number;
|
|
3610
|
+
failedCount: number;
|
|
3611
|
+
results: {
|
|
3612
|
+
userId: string;
|
|
3613
|
+
referenceId: string;
|
|
3614
|
+
success: boolean;
|
|
3615
|
+
accountId?: string | undefined;
|
|
3616
|
+
ledgerEntryId?: string | undefined;
|
|
3617
|
+
errorCode?: string | undefined;
|
|
3618
|
+
errorMessage?: string | undefined;
|
|
3619
|
+
}[];
|
|
3620
|
+
};
|
|
3621
|
+
401: "Unauthorized";
|
|
3622
|
+
403: "Forbidden: Admins only";
|
|
3623
|
+
422: {
|
|
3624
|
+
type: 'validation';
|
|
3625
|
+
on: string;
|
|
3626
|
+
summary?: string;
|
|
3627
|
+
message?: string;
|
|
3628
|
+
found?: unknown;
|
|
3629
|
+
property?: string;
|
|
3630
|
+
expected?: string;
|
|
3631
|
+
};
|
|
3632
|
+
};
|
|
3633
|
+
};
|
|
3634
|
+
};
|
|
3635
|
+
};
|
|
3636
|
+
};
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3589
3639
|
};
|
|
3590
3640
|
} & {
|
|
3591
3641
|
admin: {
|
|
@@ -35,19 +35,7 @@ export declare const assetConvertProductRouter: Elysia<"/asset_convert_product",
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: string;
|
|
38
|
-
cookie?: Record<string,
|
|
39
|
-
domain?: string | undefined;
|
|
40
|
-
expires?: Date | undefined;
|
|
41
|
-
httpOnly?: boolean | undefined;
|
|
42
|
-
maxAge?: number | undefined;
|
|
43
|
-
path?: string | undefined;
|
|
44
|
-
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
45
|
-
partitioned?: boolean | undefined;
|
|
46
|
-
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
47
|
-
secure?: boolean | undefined;
|
|
48
|
-
secrets?: string | null | (string | null)[];
|
|
49
|
-
value?: unknown;
|
|
50
|
-
}>;
|
|
38
|
+
cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
|
|
51
39
|
};
|
|
52
40
|
path: string;
|
|
53
41
|
route: string;
|
|
@@ -35,19 +35,7 @@ export declare const bankAccountRouter: Elysia<"/bank_account", {
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: string;
|
|
38
|
-
cookie?: Record<string,
|
|
39
|
-
domain?: string | undefined;
|
|
40
|
-
expires?: Date | undefined;
|
|
41
|
-
httpOnly?: boolean | undefined;
|
|
42
|
-
maxAge?: number | undefined;
|
|
43
|
-
path?: string | undefined;
|
|
44
|
-
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
45
|
-
partitioned?: boolean | undefined;
|
|
46
|
-
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
47
|
-
secure?: boolean | undefined;
|
|
48
|
-
secrets?: string | null | (string | null)[];
|
|
49
|
-
value?: unknown;
|
|
50
|
-
}>;
|
|
38
|
+
cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
|
|
51
39
|
};
|
|
52
40
|
path: string;
|
|
53
41
|
route: string;
|
|
@@ -35,7 +35,19 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: string;
|
|
38
|
-
cookie?: Record<string,
|
|
38
|
+
cookie?: Record<string, {
|
|
39
|
+
domain?: string | undefined;
|
|
40
|
+
expires?: Date | undefined;
|
|
41
|
+
httpOnly?: boolean | undefined;
|
|
42
|
+
maxAge?: number | undefined;
|
|
43
|
+
path?: string | undefined;
|
|
44
|
+
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
45
|
+
partitioned?: boolean | undefined;
|
|
46
|
+
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
47
|
+
secure?: boolean | undefined;
|
|
48
|
+
secrets?: string | null | (string | null)[];
|
|
49
|
+
value?: unknown;
|
|
50
|
+
}>;
|
|
39
51
|
};
|
|
40
52
|
path: string;
|
|
41
53
|
route: string;
|
|
@@ -35,7 +35,19 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: string;
|
|
38
|
-
cookie?: Record<string,
|
|
38
|
+
cookie?: Record<string, {
|
|
39
|
+
domain?: string | undefined;
|
|
40
|
+
expires?: Date | undefined;
|
|
41
|
+
httpOnly?: boolean | undefined;
|
|
42
|
+
maxAge?: number | undefined;
|
|
43
|
+
path?: string | undefined;
|
|
44
|
+
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
45
|
+
partitioned?: boolean | undefined;
|
|
46
|
+
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
47
|
+
secure?: boolean | undefined;
|
|
48
|
+
secrets?: string | null | (string | null)[];
|
|
49
|
+
value?: unknown;
|
|
50
|
+
}>;
|
|
39
51
|
};
|
|
40
52
|
path: string;
|
|
41
53
|
route: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4170,6 +4170,56 @@ declare const app: Elysia<"/api", {
|
|
|
4170
4170
|
};
|
|
4171
4171
|
};
|
|
4172
4172
|
};
|
|
4173
|
+
} & {
|
|
4174
|
+
ledger_accounts: {
|
|
4175
|
+
adjust: {
|
|
4176
|
+
cny_balance: {
|
|
4177
|
+
users: {
|
|
4178
|
+
batch: {
|
|
4179
|
+
post: {
|
|
4180
|
+
body: {
|
|
4181
|
+
direction: "decrease" | "increase";
|
|
4182
|
+
amount: string;
|
|
4183
|
+
memo?: string | undefined;
|
|
4184
|
+
idempotencyKey: string;
|
|
4185
|
+
userIds: string[];
|
|
4186
|
+
};
|
|
4187
|
+
params: {};
|
|
4188
|
+
query: {};
|
|
4189
|
+
headers: {};
|
|
4190
|
+
response: {
|
|
4191
|
+
200: {
|
|
4192
|
+
totalCount: number;
|
|
4193
|
+
successCount: number;
|
|
4194
|
+
failedCount: number;
|
|
4195
|
+
results: {
|
|
4196
|
+
userId: string;
|
|
4197
|
+
referenceId: string;
|
|
4198
|
+
success: boolean;
|
|
4199
|
+
accountId?: string | undefined;
|
|
4200
|
+
ledgerEntryId?: string | undefined;
|
|
4201
|
+
errorCode?: string | undefined;
|
|
4202
|
+
errorMessage?: string | undefined;
|
|
4203
|
+
}[];
|
|
4204
|
+
};
|
|
4205
|
+
401: "Unauthorized";
|
|
4206
|
+
403: "Forbidden: Admins only";
|
|
4207
|
+
422: {
|
|
4208
|
+
type: 'validation';
|
|
4209
|
+
on: string;
|
|
4210
|
+
summary?: string;
|
|
4211
|
+
message?: string;
|
|
4212
|
+
found?: unknown;
|
|
4213
|
+
property?: string;
|
|
4214
|
+
expected?: string;
|
|
4215
|
+
};
|
|
4216
|
+
};
|
|
4217
|
+
};
|
|
4218
|
+
};
|
|
4219
|
+
};
|
|
4220
|
+
};
|
|
4221
|
+
};
|
|
4222
|
+
};
|
|
4173
4223
|
};
|
|
4174
4224
|
} & {
|
|
4175
4225
|
admin: {
|
|
@@ -245,6 +245,14 @@ export declare const adminManualAdjustLedgerAccountByUsersBatchInputSchema: impo
|
|
|
245
245
|
userIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
246
246
|
}>;
|
|
247
247
|
export type AdminManualAdjustLedgerAccountByUsersBatchInputType = typeof adminManualAdjustLedgerAccountByUsersBatchInputSchema.static;
|
|
248
|
+
export declare const adminManualAdjustCnyBalanceByUsersBatchInputSchema: import("@sinclair/typebox").TObject<{
|
|
249
|
+
direction: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"increase">, import("@sinclair/typebox").TLiteral<"decrease">]>;
|
|
250
|
+
amount: import("@sinclair/typebox").TString;
|
|
251
|
+
memo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
252
|
+
idempotencyKey: import("@sinclair/typebox").TString;
|
|
253
|
+
userIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
254
|
+
}>;
|
|
255
|
+
export type AdminManualAdjustCnyBalanceByUsersBatchInputType = typeof adminManualAdjustCnyBalanceByUsersBatchInputSchema.static;
|
|
248
256
|
export declare const adminManualAdjustLedgerAccountBatchResultItemSchema: import("@sinclair/typebox").TObject<{
|
|
249
257
|
referenceId: import("@sinclair/typebox").TString;
|
|
250
258
|
success: import("@sinclair/typebox").TBoolean;
|
|
@@ -293,3 +301,18 @@ export declare const adminManualAdjustLedgerAccountByUsersBatchResponseSchema: i
|
|
|
293
301
|
}>>;
|
|
294
302
|
}>;
|
|
295
303
|
export type AdminManualAdjustLedgerAccountByUsersBatchResponseType = typeof adminManualAdjustLedgerAccountByUsersBatchResponseSchema.static;
|
|
304
|
+
export declare const adminManualAdjustCnyBalanceByUsersBatchResponseSchema: import("@sinclair/typebox").TObject<{
|
|
305
|
+
totalCount: import("@sinclair/typebox").TNumber;
|
|
306
|
+
successCount: import("@sinclair/typebox").TNumber;
|
|
307
|
+
failedCount: import("@sinclair/typebox").TNumber;
|
|
308
|
+
results: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
309
|
+
userId: import("@sinclair/typebox").TString;
|
|
310
|
+
referenceId: import("@sinclair/typebox").TString;
|
|
311
|
+
success: import("@sinclair/typebox").TBoolean;
|
|
312
|
+
accountId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
313
|
+
ledgerEntryId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
314
|
+
errorCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
315
|
+
errorMessage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
316
|
+
}>>;
|
|
317
|
+
}>;
|
|
318
|
+
export type AdminManualAdjustCnyBalanceByUsersBatchResponseType = typeof adminManualAdjustCnyBalanceByUsersBatchResponseSchema.static;
|
|
@@ -728,6 +728,56 @@ export declare const ledgerAccountAdminRouter: Elysia<"/ledger_accounts", {
|
|
|
728
728
|
};
|
|
729
729
|
};
|
|
730
730
|
};
|
|
731
|
+
} & {
|
|
732
|
+
ledger_accounts: {
|
|
733
|
+
adjust: {
|
|
734
|
+
cny_balance: {
|
|
735
|
+
users: {
|
|
736
|
+
batch: {
|
|
737
|
+
post: {
|
|
738
|
+
body: {
|
|
739
|
+
direction: "decrease" | "increase";
|
|
740
|
+
amount: string;
|
|
741
|
+
memo?: string | undefined;
|
|
742
|
+
idempotencyKey: string;
|
|
743
|
+
userIds: string[];
|
|
744
|
+
};
|
|
745
|
+
params: {};
|
|
746
|
+
query: {};
|
|
747
|
+
headers: {};
|
|
748
|
+
response: {
|
|
749
|
+
200: {
|
|
750
|
+
totalCount: number;
|
|
751
|
+
successCount: number;
|
|
752
|
+
failedCount: number;
|
|
753
|
+
results: {
|
|
754
|
+
userId: string;
|
|
755
|
+
referenceId: string;
|
|
756
|
+
success: boolean;
|
|
757
|
+
accountId?: string | undefined;
|
|
758
|
+
ledgerEntryId?: string | undefined;
|
|
759
|
+
errorCode?: string | undefined;
|
|
760
|
+
errorMessage?: string | undefined;
|
|
761
|
+
}[];
|
|
762
|
+
};
|
|
763
|
+
401: "Unauthorized";
|
|
764
|
+
403: "Forbidden: Admins only";
|
|
765
|
+
422: {
|
|
766
|
+
type: 'validation';
|
|
767
|
+
on: string;
|
|
768
|
+
summary?: string;
|
|
769
|
+
message?: string;
|
|
770
|
+
found?: unknown;
|
|
771
|
+
property?: string;
|
|
772
|
+
expected?: string;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
};
|
|
731
781
|
}, {
|
|
732
782
|
derive: {};
|
|
733
783
|
resolve: {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { AdminManualAdjustLedgerAccountByUsersBatchInputType, AdminManualAdjustLedgerAccountBatchInputType, AdminManualAdjustLedgerAccountInputType, LedgerAccountStatusUpdateInputType } from './dto.schemas';
|
|
1
|
+
import type { AdminManualAdjustCnyBalanceByUsersBatchInputType, AdminManualAdjustLedgerAccountByUsersBatchInputType, AdminManualAdjustLedgerAccountBatchInputType, AdminManualAdjustLedgerAccountInputType, LedgerAccountStatusUpdateInputType } from './dto.schemas';
|
|
2
2
|
import { BaseLedgerAccountService, type LedgerAccountListQueryOptions } from '../internal/service';
|
|
3
3
|
export declare abstract class AdminLedgerAccountService extends BaseLedgerAccountService {
|
|
4
4
|
private static normalizePositiveAmount;
|
|
5
5
|
private static resolveAdjustTargetAccount;
|
|
6
|
+
private static buildCnyBalanceAdjustReferenceId;
|
|
6
7
|
private static isSameManualAdjust;
|
|
7
8
|
static listAccounts(options?: LedgerAccountListQueryOptions): Promise<{
|
|
8
9
|
items: {
|
|
@@ -249,4 +250,18 @@ export declare abstract class AdminLedgerAccountService extends BaseLedgerAccoun
|
|
|
249
250
|
errorMessage?: string;
|
|
250
251
|
}[];
|
|
251
252
|
}>;
|
|
253
|
+
static manualAdjustCnyBalanceByUsersBatch(operatorId: string, input: AdminManualAdjustCnyBalanceByUsersBatchInputType): Promise<{
|
|
254
|
+
totalCount: number;
|
|
255
|
+
successCount: number;
|
|
256
|
+
failedCount: number;
|
|
257
|
+
results: {
|
|
258
|
+
userId: string;
|
|
259
|
+
referenceId: string;
|
|
260
|
+
success: boolean;
|
|
261
|
+
accountId?: string;
|
|
262
|
+
ledgerEntryId?: string;
|
|
263
|
+
errorCode?: string;
|
|
264
|
+
errorMessage?: string;
|
|
265
|
+
}[];
|
|
266
|
+
}>;
|
|
252
267
|
}
|
|
@@ -35,19 +35,7 @@ export declare const receiptMethodAdminRouter: Elysia<"/receipt_method", {
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: string;
|
|
38
|
-
cookie?: Record<string,
|
|
39
|
-
domain?: string | undefined;
|
|
40
|
-
expires?: Date | undefined;
|
|
41
|
-
httpOnly?: boolean | undefined;
|
|
42
|
-
maxAge?: number | undefined;
|
|
43
|
-
path?: string | undefined;
|
|
44
|
-
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
45
|
-
partitioned?: boolean | undefined;
|
|
46
|
-
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
47
|
-
secure?: boolean | undefined;
|
|
48
|
-
secrets?: string | null | (string | null)[];
|
|
49
|
-
value?: unknown;
|
|
50
|
-
}>;
|
|
38
|
+
cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
|
|
51
39
|
};
|
|
52
40
|
path: string;
|
|
53
41
|
route: string;
|
|
@@ -35,7 +35,19 @@ export declare const teamAdminRouter: Elysia<"/team", {
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: string;
|
|
38
|
-
cookie?: Record<string,
|
|
38
|
+
cookie?: Record<string, {
|
|
39
|
+
domain?: string | undefined;
|
|
40
|
+
expires?: Date | undefined;
|
|
41
|
+
httpOnly?: boolean | undefined;
|
|
42
|
+
maxAge?: number | undefined;
|
|
43
|
+
path?: string | undefined;
|
|
44
|
+
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
45
|
+
partitioned?: boolean | undefined;
|
|
46
|
+
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
47
|
+
secure?: boolean | undefined;
|
|
48
|
+
secrets?: string | null | (string | null)[];
|
|
49
|
+
value?: unknown;
|
|
50
|
+
}>;
|
|
39
51
|
};
|
|
40
52
|
path: string;
|
|
41
53
|
route: string;
|