@r2wa-org/eden 0.0.91 → 0.0.93

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/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Elysia } from 'elysia';
2
2
  declare const app: Elysia<"/api", {
3
- decorator: Singleton['decorator'] & NewElysia['~Singleton']['decorator'];
3
+ decorator: {};
4
4
  store: import("elysia/types").Prettify<Singleton['store'] & NewElysia['~Singleton']['store']>;
5
- derive: Singleton['derive'] & NewElysia['~Singleton']['derive'];
6
- resolve: Singleton['resolve'] & NewElysia['~Singleton']['resolve'];
5
+ derive: {};
6
+ resolve: {};
7
7
  }, {
8
8
  typebox: {};
9
9
  error: {};
@@ -9730,6 +9730,453 @@ declare const app: Elysia<"/api", {
9730
9730
  };
9731
9731
  };
9732
9732
  };
9733
+ } & {
9734
+ admin: {
9735
+ lock_activity: {};
9736
+ } & {
9737
+ lock_activity: {
9738
+ activities: {
9739
+ post: {
9740
+ body: {
9741
+ coverImageFileId: string;
9742
+ description?: string | null | undefined;
9743
+ endAt: Date;
9744
+ isVisibleOnFrontend?: boolean | undefined;
9745
+ rewardAssetId: string;
9746
+ rewardCnyEquivalent: string;
9747
+ sortOrder?: number | undefined;
9748
+ startAt: Date;
9749
+ status?: "active" | "cancelled" | "draft" | "ended" | undefined;
9750
+ title: string;
9751
+ };
9752
+ params: {};
9753
+ query: {};
9754
+ headers: {};
9755
+ response: {
9756
+ 200: {
9757
+ coverImageUrl: string;
9758
+ createdAt: Date;
9759
+ description: string | null;
9760
+ endAt: Date;
9761
+ id: string;
9762
+ isVisibleOnFrontend: boolean;
9763
+ receiveAccountType: {
9764
+ id: string;
9765
+ key: string;
9766
+ name: string;
9767
+ isActive: boolean;
9768
+ };
9769
+ rewardAsset: {
9770
+ id: string;
9771
+ code: string;
9772
+ name: string;
9773
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
9774
+ symbol: string | null;
9775
+ precision: number;
9776
+ isActive: boolean;
9777
+ };
9778
+ rewardAssetId: string;
9779
+ rewardCnyEquivalent: string;
9780
+ sortOrder: number;
9781
+ startAt: Date;
9782
+ status: "active" | "cancelled" | "draft" | "ended";
9783
+ title: string;
9784
+ updatedAt: Date;
9785
+ };
9786
+ 401: "Unauthorized";
9787
+ 403: "Forbidden: Admins only";
9788
+ 422: {
9789
+ type: 'validation';
9790
+ on: string;
9791
+ summary?: string;
9792
+ message?: string;
9793
+ found?: unknown;
9794
+ property?: string;
9795
+ expected?: string;
9796
+ };
9797
+ };
9798
+ };
9799
+ };
9800
+ };
9801
+ } & {
9802
+ lock_activity: {
9803
+ activities: {
9804
+ ":id": {
9805
+ patch: {
9806
+ body: {
9807
+ coverImageFileId?: string | undefined;
9808
+ description?: string | null | undefined;
9809
+ endAt?: Date | undefined;
9810
+ isVisibleOnFrontend?: boolean | undefined;
9811
+ rewardAssetId?: string | undefined;
9812
+ rewardCnyEquivalent?: string | undefined;
9813
+ sortOrder?: number | undefined;
9814
+ startAt?: Date | undefined;
9815
+ status?: "active" | "cancelled" | "draft" | "ended" | undefined;
9816
+ title?: string | undefined;
9817
+ };
9818
+ params: {
9819
+ id: string;
9820
+ };
9821
+ query: {};
9822
+ headers: {};
9823
+ response: {
9824
+ 200: {
9825
+ coverImageUrl: string;
9826
+ createdAt: Date;
9827
+ description: string | null;
9828
+ endAt: Date;
9829
+ id: string;
9830
+ isVisibleOnFrontend: boolean;
9831
+ receiveAccountType: {
9832
+ id: string;
9833
+ key: string;
9834
+ name: string;
9835
+ isActive: boolean;
9836
+ };
9837
+ rewardAsset: {
9838
+ id: string;
9839
+ code: string;
9840
+ name: string;
9841
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
9842
+ symbol: string | null;
9843
+ precision: number;
9844
+ isActive: boolean;
9845
+ };
9846
+ rewardAssetId: string;
9847
+ rewardCnyEquivalent: string;
9848
+ sortOrder: number;
9849
+ startAt: Date;
9850
+ status: "active" | "cancelled" | "draft" | "ended";
9851
+ title: string;
9852
+ updatedAt: Date;
9853
+ };
9854
+ 401: "Unauthorized";
9855
+ 403: "Forbidden: Admins only";
9856
+ 422: {
9857
+ type: 'validation';
9858
+ on: string;
9859
+ summary?: string;
9860
+ message?: string;
9861
+ found?: unknown;
9862
+ property?: string;
9863
+ expected?: string;
9864
+ };
9865
+ };
9866
+ };
9867
+ };
9868
+ };
9869
+ };
9870
+ } & {
9871
+ lock_activity: {
9872
+ activities: {
9873
+ ":id": {
9874
+ get: {
9875
+ body: {};
9876
+ params: {
9877
+ id: string;
9878
+ };
9879
+ query: {};
9880
+ headers: {};
9881
+ response: {
9882
+ 200: {
9883
+ coverImageUrl: string;
9884
+ createdAt: Date;
9885
+ description: string | null;
9886
+ endAt: Date;
9887
+ id: string;
9888
+ isVisibleOnFrontend: boolean;
9889
+ receiveAccountType: {
9890
+ id: string;
9891
+ key: string;
9892
+ name: string;
9893
+ isActive: boolean;
9894
+ };
9895
+ rewardAsset: {
9896
+ id: string;
9897
+ code: string;
9898
+ name: string;
9899
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
9900
+ symbol: string | null;
9901
+ precision: number;
9902
+ isActive: boolean;
9903
+ };
9904
+ rewardAssetId: string;
9905
+ rewardCnyEquivalent: string;
9906
+ sortOrder: number;
9907
+ startAt: Date;
9908
+ status: "active" | "cancelled" | "draft" | "ended";
9909
+ title: string;
9910
+ updatedAt: Date;
9911
+ };
9912
+ 401: "Unauthorized";
9913
+ 403: "Forbidden: Admins only";
9914
+ 422: {
9915
+ type: 'validation';
9916
+ on: string;
9917
+ summary?: string;
9918
+ message?: string;
9919
+ found?: unknown;
9920
+ property?: string;
9921
+ expected?: string;
9922
+ };
9923
+ };
9924
+ };
9925
+ };
9926
+ };
9927
+ };
9928
+ } & {
9929
+ lock_activity: {
9930
+ activities: {
9931
+ get: {
9932
+ body: {};
9933
+ params: {};
9934
+ query: {
9935
+ isVisibleOnFrontend?: boolean | undefined;
9936
+ keyword?: string | undefined;
9937
+ limit?: number | undefined;
9938
+ offset?: number | undefined;
9939
+ pageIndex?: number | undefined;
9940
+ pageSize?: number | undefined;
9941
+ status?: "active" | "cancelled" | "draft" | "ended" | undefined;
9942
+ };
9943
+ headers: {};
9944
+ response: {
9945
+ 200: {
9946
+ data: {
9947
+ coverImageUrl: string;
9948
+ createdAt: Date;
9949
+ description: string | null;
9950
+ endAt: Date;
9951
+ id: string;
9952
+ isVisibleOnFrontend: boolean;
9953
+ receiveAccountType: {
9954
+ id: string;
9955
+ key: string;
9956
+ name: string;
9957
+ isActive: boolean;
9958
+ };
9959
+ rewardAsset: {
9960
+ id: string;
9961
+ code: string;
9962
+ name: string;
9963
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
9964
+ symbol: string | null;
9965
+ precision: number;
9966
+ isActive: boolean;
9967
+ };
9968
+ rewardAssetId: string;
9969
+ rewardCnyEquivalent: string;
9970
+ sortOrder: number;
9971
+ startAt: Date;
9972
+ status: "active" | "cancelled" | "draft" | "ended";
9973
+ title: string;
9974
+ updatedAt: Date;
9975
+ }[];
9976
+ pagination: {
9977
+ pageSize: number;
9978
+ pageIndex: number;
9979
+ total: number;
9980
+ totalPages: number;
9981
+ hasNextPage: boolean;
9982
+ };
9983
+ };
9984
+ 401: "Unauthorized";
9985
+ 403: "Forbidden: Admins only";
9986
+ 422: {
9987
+ type: 'validation';
9988
+ on: string;
9989
+ summary?: string;
9990
+ message?: string;
9991
+ found?: unknown;
9992
+ property?: string;
9993
+ expected?: string;
9994
+ };
9995
+ };
9996
+ };
9997
+ };
9998
+ };
9999
+ } & {
10000
+ lock_activity: {
10001
+ activities: {
10002
+ ":id": {
10003
+ activate: {
10004
+ post: {
10005
+ body: {};
10006
+ params: {
10007
+ id: string;
10008
+ };
10009
+ query: {};
10010
+ headers: {};
10011
+ response: {
10012
+ 200: {
10013
+ coverImageUrl: string;
10014
+ createdAt: Date;
10015
+ description: string | null;
10016
+ endAt: Date;
10017
+ id: string;
10018
+ isVisibleOnFrontend: boolean;
10019
+ receiveAccountType: {
10020
+ id: string;
10021
+ key: string;
10022
+ name: string;
10023
+ isActive: boolean;
10024
+ };
10025
+ rewardAsset: {
10026
+ id: string;
10027
+ code: string;
10028
+ name: string;
10029
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
10030
+ symbol: string | null;
10031
+ precision: number;
10032
+ isActive: boolean;
10033
+ };
10034
+ rewardAssetId: string;
10035
+ rewardCnyEquivalent: string;
10036
+ sortOrder: number;
10037
+ startAt: Date;
10038
+ status: "active" | "cancelled" | "draft" | "ended";
10039
+ title: string;
10040
+ updatedAt: Date;
10041
+ };
10042
+ 401: "Unauthorized";
10043
+ 403: "Forbidden: Admins only";
10044
+ 422: {
10045
+ type: 'validation';
10046
+ on: string;
10047
+ summary?: string;
10048
+ message?: string;
10049
+ found?: unknown;
10050
+ property?: string;
10051
+ expected?: string;
10052
+ };
10053
+ };
10054
+ };
10055
+ };
10056
+ };
10057
+ };
10058
+ };
10059
+ } & {
10060
+ lock_activity: {
10061
+ activities: {
10062
+ ":id": {
10063
+ end: {
10064
+ post: {
10065
+ body: {};
10066
+ params: {
10067
+ id: string;
10068
+ };
10069
+ query: {};
10070
+ headers: {};
10071
+ response: {
10072
+ 200: {
10073
+ coverImageUrl: string;
10074
+ createdAt: Date;
10075
+ description: string | null;
10076
+ endAt: Date;
10077
+ id: string;
10078
+ isVisibleOnFrontend: boolean;
10079
+ receiveAccountType: {
10080
+ id: string;
10081
+ key: string;
10082
+ name: string;
10083
+ isActive: boolean;
10084
+ };
10085
+ rewardAsset: {
10086
+ id: string;
10087
+ code: string;
10088
+ name: string;
10089
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
10090
+ symbol: string | null;
10091
+ precision: number;
10092
+ isActive: boolean;
10093
+ };
10094
+ rewardAssetId: string;
10095
+ rewardCnyEquivalent: string;
10096
+ sortOrder: number;
10097
+ startAt: Date;
10098
+ status: "active" | "cancelled" | "draft" | "ended";
10099
+ title: string;
10100
+ updatedAt: Date;
10101
+ };
10102
+ 401: "Unauthorized";
10103
+ 403: "Forbidden: Admins only";
10104
+ 422: {
10105
+ type: 'validation';
10106
+ on: string;
10107
+ summary?: string;
10108
+ message?: string;
10109
+ found?: unknown;
10110
+ property?: string;
10111
+ expected?: string;
10112
+ };
10113
+ };
10114
+ };
10115
+ };
10116
+ };
10117
+ };
10118
+ };
10119
+ } & {
10120
+ lock_activity: {
10121
+ activities: {
10122
+ ":id": {
10123
+ cancel: {
10124
+ post: {
10125
+ body: {};
10126
+ params: {
10127
+ id: string;
10128
+ };
10129
+ query: {};
10130
+ headers: {};
10131
+ response: {
10132
+ 200: {
10133
+ coverImageUrl: string;
10134
+ createdAt: Date;
10135
+ description: string | null;
10136
+ endAt: Date;
10137
+ id: string;
10138
+ isVisibleOnFrontend: boolean;
10139
+ receiveAccountType: {
10140
+ id: string;
10141
+ key: string;
10142
+ name: string;
10143
+ isActive: boolean;
10144
+ };
10145
+ rewardAsset: {
10146
+ id: string;
10147
+ code: string;
10148
+ name: string;
10149
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
10150
+ symbol: string | null;
10151
+ precision: number;
10152
+ isActive: boolean;
10153
+ };
10154
+ rewardAssetId: string;
10155
+ rewardCnyEquivalent: string;
10156
+ sortOrder: number;
10157
+ startAt: Date;
10158
+ status: "active" | "cancelled" | "draft" | "ended";
10159
+ title: string;
10160
+ updatedAt: Date;
10161
+ };
10162
+ 401: "Unauthorized";
10163
+ 403: "Forbidden: Admins only";
10164
+ 422: {
10165
+ type: 'validation';
10166
+ on: string;
10167
+ summary?: string;
10168
+ message?: string;
10169
+ found?: unknown;
10170
+ property?: string;
10171
+ expected?: string;
10172
+ };
10173
+ };
10174
+ };
10175
+ };
10176
+ };
10177
+ };
10178
+ };
10179
+ };
9733
10180
  } & {
9734
10181
  admin: {
9735
10182
  kyc: {};
@@ -15960,6 +16407,112 @@ declare const app: Elysia<"/api", {
15960
16407
  };
15961
16408
  };
15962
16409
  };
16410
+ } & {
16411
+ api: {
16412
+ lock_activity: {};
16413
+ } & {
16414
+ lock_activity: {
16415
+ activities: {
16416
+ get: {
16417
+ body: {};
16418
+ params: {};
16419
+ query: {
16420
+ limit?: number | undefined;
16421
+ offset?: number | undefined;
16422
+ pageSize?: number | undefined;
16423
+ pageIndex?: number | undefined;
16424
+ };
16425
+ headers: {};
16426
+ response: {
16427
+ 200: {
16428
+ data: {
16429
+ coverImageUrl: string;
16430
+ description: string | null;
16431
+ endAt: Date;
16432
+ id: string;
16433
+ isVisibleOnFrontend: boolean;
16434
+ rewardAsset: {
16435
+ id: string;
16436
+ code: string;
16437
+ name: string;
16438
+ iconUrl: string;
16439
+ symbol: string | null;
16440
+ };
16441
+ rewardCnyEquivalent: string;
16442
+ sortOrder: number;
16443
+ startAt: Date;
16444
+ status: "active" | "cancelled" | "draft" | "ended";
16445
+ title: string;
16446
+ }[];
16447
+ pagination: {
16448
+ pageSize: number;
16449
+ pageIndex: number;
16450
+ total: number;
16451
+ totalPages: number;
16452
+ hasNextPage: boolean;
16453
+ };
16454
+ };
16455
+ 401: "Unauthorized";
16456
+ 422: {
16457
+ type: 'validation';
16458
+ on: string;
16459
+ summary?: string;
16460
+ message?: string;
16461
+ found?: unknown;
16462
+ property?: string;
16463
+ expected?: string;
16464
+ };
16465
+ };
16466
+ };
16467
+ };
16468
+ };
16469
+ } & {
16470
+ lock_activity: {
16471
+ activities: {
16472
+ ":id": {
16473
+ get: {
16474
+ body: {};
16475
+ params: {
16476
+ id: string;
16477
+ };
16478
+ query: {};
16479
+ headers: {};
16480
+ response: {
16481
+ 200: {
16482
+ coverImageUrl: string;
16483
+ description: string | null;
16484
+ endAt: Date;
16485
+ id: string;
16486
+ isVisibleOnFrontend: boolean;
16487
+ rewardAsset: {
16488
+ id: string;
16489
+ code: string;
16490
+ name: string;
16491
+ iconUrl: string;
16492
+ symbol: string | null;
16493
+ };
16494
+ rewardCnyEquivalent: string;
16495
+ sortOrder: number;
16496
+ startAt: Date;
16497
+ status: "active" | "cancelled" | "draft" | "ended";
16498
+ title: string;
16499
+ };
16500
+ 401: "Unauthorized";
16501
+ 422: {
16502
+ type: 'validation';
16503
+ on: string;
16504
+ summary?: string;
16505
+ message?: string;
16506
+ found?: unknown;
16507
+ property?: string;
16508
+ expected?: string;
16509
+ };
16510
+ };
16511
+ };
16512
+ };
16513
+ };
16514
+ };
16515
+ };
15963
16516
  } & {
15964
16517
  api: {
15965
16518
  error_messages: {
@@ -35,19 +35,7 @@ export declare const ledgerAccountImportAdminRouter: Elysia<"/ledger_account_imp
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;