@r2wa-org/eden 0.0.100 → 0.0.101

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.
@@ -1,10 +1,10 @@
1
- import type { CheckInRewardPlanCreateInputType, CheckInRewardPlanListQueryType, CheckInRewardPlanUpdateInputType, CheckInRewardRuleCreateInputType, CheckInRewardRuleUpdateInputType } from './reward.dto.schemas';
1
+ import type { CheckInRewardPlanCreateInputType, CheckInRewardPlanUpdateInputType, CheckInRewardRuleCreateInputType, CheckInRewardRuleUpdateInputType } from './reward.dto.schemas';
2
2
  export declare abstract class AdminCheckInRewardConfigService {
3
3
  private static formatPlanRow;
4
4
  private static loadPlanDetail;
5
5
  private static touchPlanUpdatedBy;
6
6
  private static createRuleInTx;
7
- static createPlan(operatorId: string, input: CheckInRewardPlanCreateInputType): Promise<{
7
+ static getDefaultPlan(): Promise<{
8
8
  rules: {
9
9
  createdAt: Date;
10
10
  createdBy: string;
@@ -74,7 +74,7 @@ export declare abstract class AdminCheckInRewardConfigService {
74
74
  name: string;
75
75
  } | null;
76
76
  }>;
77
- static updatePlan(operatorId: string, planId: string, input: CheckInRewardPlanUpdateInputType): Promise<{
77
+ static createPlan(operatorId: string, input: CheckInRewardPlanCreateInputType): Promise<{
78
78
  rules: {
79
79
  createdAt: Date;
80
80
  createdBy: string;
@@ -144,10 +144,7 @@ export declare abstract class AdminCheckInRewardConfigService {
144
144
  name: string;
145
145
  } | null;
146
146
  }>;
147
- static deletePlan(operatorId: string, planId: string): Promise<{
148
- success: true;
149
- }>;
150
- static getPlan(planId: string): Promise<{
147
+ static updateDefaultPlan(operatorId: string, input: CheckInRewardPlanUpdateInputType): Promise<{
151
148
  rules: {
152
149
  createdAt: Date;
153
150
  createdBy: string;
@@ -217,56 +214,10 @@ export declare abstract class AdminCheckInRewardConfigService {
217
214
  name: string;
218
215
  } | null;
219
216
  }>;
220
- static listPlans(filters: CheckInRewardPlanListQueryType): Promise<{
221
- data: {
222
- ruleCount: number;
223
- checkInType: "app" | "meeting";
224
- createdAt: Date;
225
- createdBy: string;
226
- creator: {
227
- email: string;
228
- id: string;
229
- name: string;
230
- };
231
- dailyPayoutAccountType: {
232
- id: string;
233
- isActive: boolean;
234
- key: string;
235
- name: string;
236
- };
237
- dailyPayoutAccountTypeId: string;
238
- dailyRewardAmount: string;
239
- dailyRewardCategory: string;
240
- id: string;
241
- isEnabled: boolean;
242
- name: string;
243
- rewardAsset: {
244
- code: string;
245
- id: string;
246
- isActive: boolean;
247
- name: string;
248
- precision: number;
249
- symbol: string | null;
250
- };
251
- rewardAssetId: string;
252
- sortOrder: number;
253
- updatedAt: Date;
254
- updatedBy: string | null;
255
- updater: {
256
- email: string;
257
- id: string;
258
- name: string;
259
- } | null;
260
- }[];
261
- pagination: {
262
- pageSize: number;
263
- pageIndex: number;
264
- total: number;
265
- totalPages: number;
266
- hasNextPage: boolean;
267
- };
217
+ static deleteDefaultPlan(_operatorId: string): Promise<{
218
+ success: true;
268
219
  }>;
269
- static createRule(operatorId: string, planId: string, input: CheckInRewardRuleCreateInputType): Promise<{
220
+ static createRule(operatorId: string, input: CheckInRewardRuleCreateInputType): Promise<{
270
221
  rules: {
271
222
  createdAt: Date;
272
223
  createdBy: string;