catchup-library-web 1.20.18 → 1.20.19

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.mjs CHANGED
@@ -9333,9 +9333,9 @@ var retrieveAllEarnedBadgeDTOListByCoterieType = (coterieType) => {
9333
9333
  });
9334
9334
  };
9335
9335
  var retrieveBadgeRuleListByParams = (coterieType, sourceType, trackingType) => {
9336
- if (coterieType === "MANAGEMENT") {
9337
- if (sourceType === "ACTIVITY") {
9338
- if (trackingType === "COUNT") {
9336
+ if (trackingType === "COUNT") {
9337
+ if (coterieType === "MANAGEMENT") {
9338
+ if (sourceType === "ACTIVITY") {
9339
9339
  return [
9340
9340
  {
9341
9341
  level: 1,
@@ -9358,128 +9358,101 @@ var retrieveBadgeRuleListByParams = (coterieType, sourceType, trackingType) => {
9358
9358
  value: 5e3
9359
9359
  }
9360
9360
  ];
9361
- } else if (trackingType === "TIME_SPENT") {
9361
+ } else if (sourceType === "ACTIVITY_CORRECT" || sourceType === "ACTIVITY_REVIEW") {
9362
9362
  return [
9363
9363
  {
9364
9364
  level: 1,
9365
- value: 2
9365
+ value: 25
9366
9366
  },
9367
9367
  {
9368
9368
  level: 2,
9369
- value: 10
9369
+ value: 50
9370
9370
  },
9371
9371
  {
9372
9372
  level: 3,
9373
- value: 20
9373
+ value: 250
9374
9374
  },
9375
9375
  {
9376
9376
  level: 4,
9377
- value: 100
9377
+ value: 500
9378
9378
  },
9379
9379
  {
9380
9380
  level: 5,
9381
- value: 200
9381
+ value: 1e3
9382
9382
  }
9383
9383
  ];
9384
- } else {
9384
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
9385
9385
  return [
9386
9386
  {
9387
9387
  level: 1,
9388
- value: 25
9388
+ value: 2
9389
9389
  },
9390
9390
  {
9391
9391
  level: 2,
9392
- value: 50
9392
+ value: 10
9393
9393
  },
9394
9394
  {
9395
9395
  level: 3,
9396
- value: 250
9396
+ value: 20
9397
9397
  },
9398
9398
  {
9399
9399
  level: 4,
9400
- value: 500
9400
+ value: 100
9401
9401
  },
9402
9402
  {
9403
9403
  level: 5,
9404
- value: 1e3
9404
+ value: 200
9405
9405
  }
9406
9406
  ];
9407
- }
9408
- } else if (sourceType === "LOGIN") {
9409
- return [
9410
- {
9411
- level: 1,
9412
- value: 3
9413
- },
9414
- {
9415
- level: 2,
9416
- value: 7
9417
- },
9418
- {
9419
- level: 3,
9420
- value: 15
9421
- },
9422
- {
9423
- level: 4,
9424
- value: 30
9425
- },
9426
- {
9427
- level: 5,
9428
- value: 90
9429
- }
9430
- ];
9431
- } else {
9432
- if (trackingType === "COUNT") {
9407
+ } else if (sourceType === "LOGIN") {
9433
9408
  return [
9434
9409
  {
9435
9410
  level: 1,
9436
- value: 5
9411
+ value: 3
9437
9412
  },
9438
9413
  {
9439
9414
  level: 2,
9440
- value: 10
9415
+ value: 7
9441
9416
  },
9442
9417
  {
9443
9418
  level: 3,
9444
- value: 50
9419
+ value: 15
9445
9420
  },
9446
9421
  {
9447
9422
  level: 4,
9448
- value: 100
9423
+ value: 30
9449
9424
  },
9450
9425
  {
9451
9426
  level: 5,
9452
- value: 500
9427
+ value: 90
9453
9428
  }
9454
9429
  ];
9455
9430
  } else {
9456
9431
  return [
9457
9432
  {
9458
9433
  level: 1,
9459
- value: 25
9434
+ value: 5
9460
9435
  },
9461
9436
  {
9462
9437
  level: 2,
9463
- value: 50
9438
+ value: 10
9464
9439
  },
9465
9440
  {
9466
9441
  level: 3,
9467
- value: 250
9442
+ value: 50
9468
9443
  },
9469
9444
  {
9470
9445
  level: 4,
9471
- value: 500
9446
+ value: 100
9472
9447
  },
9473
9448
  {
9474
9449
  level: 5,
9475
- value: 1e3
9450
+ value: 500
9476
9451
  }
9477
9452
  ];
9478
9453
  }
9479
- }
9480
- } else {
9481
- if (sourceType === "ACTIVITY") {
9482
- if (trackingType === "COUNT") {
9454
+ } else {
9455
+ if (sourceType === "ACTIVITY") {
9483
9456
  return [
9484
9457
  {
9485
9458
  level: 1,
@@ -9502,57 +9475,55 @@ var retrieveBadgeRuleListByParams = (coterieType, sourceType, trackingType) => {
9502
9475
  value: 1e3
9503
9476
  }
9504
9477
  ];
9505
- } else if (trackingType === "TIME_SPENT") {
9478
+ } else if (sourceType === "ACTIVITY_CORRECT" || sourceType === "ACTIVITY_REVIEW") {
9506
9479
  return [
9507
9480
  {
9508
9481
  level: 1,
9509
- value: 1
9482
+ value: 5
9510
9483
  },
9511
9484
  {
9512
9485
  level: 2,
9513
- value: 2
9486
+ value: 25
9514
9487
  },
9515
9488
  {
9516
9489
  level: 3,
9517
- value: 10
9490
+ value: 50
9518
9491
  },
9519
9492
  {
9520
9493
  level: 4,
9521
- value: 20
9494
+ value: 250
9522
9495
  },
9523
9496
  {
9524
9497
  level: 5,
9525
- value: 100
9498
+ value: 500
9526
9499
  }
9527
9500
  ];
9528
- } else {
9501
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
9529
9502
  return [
9530
9503
  {
9531
9504
  level: 1,
9532
- value: 5
9505
+ value: 1
9533
9506
  },
9534
9507
  {
9535
9508
  level: 2,
9536
- value: 25
9509
+ value: 2
9537
9510
  },
9538
9511
  {
9539
9512
  level: 3,
9540
- value: 50
9513
+ value: 10
9541
9514
  },
9542
9515
  {
9543
9516
  level: 4,
9544
- value: 250
9517
+ value: 20
9545
9518
  },
9546
9519
  {
9547
9520
  level: 5,
9548
- value: 500
9521
+ value: 100
9549
9522
  }
9550
9523
  ];
9551
- }
9552
- } else if (sourceType === "LOGIN") {
9553
- return [];
9554
- } else {
9555
- if (trackingType === "COUNT") {
9524
+ } else if (sourceType === "LOGIN") {
9525
+ return [];
9526
+ } else {
9556
9527
  return [
9557
9528
  {
9558
9529
  level: 1,
@@ -9587,134 +9558,114 @@ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, trackingType, leve
9587
9558
  trackingType
9588
9559
  );
9589
9560
  const foundBadgeRule = badgeRuleList[level - 1];
9590
- if (coterieType === "MANAGEMENT") {
9591
- if (sourceType === "ACTIVITY") {
9592
- if (trackingType === "COUNT") {
9561
+ if (trackingType === "COUNT") {
9562
+ if (coterieType === "MANAGEMENT") {
9563
+ if (sourceType === "ACTIVITY") {
9593
9564
  if (foundBadgeRule) {
9594
- return `${i18n_default.t("total_activity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_count_text_2")}`;
9565
+ return `${i18n_default.t("total_count_activity_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_activity_text_2")}`;
9595
9566
  } else {
9596
- return i18n_default.t("none_activity_count_text");
9567
+ return i18n_default.t("none_count_activity_text");
9597
9568
  }
9598
- } else if (trackingType === "CORRECT") {
9569
+ } else if (sourceType === "ACTIVITY_CORRECT") {
9599
9570
  if (foundBadgeRule) {
9600
- return `${i18n_default.t("total_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_correct_text_2")}`;
9571
+ return `${i18n_default.t("total_count_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_activity_correct_text_2")}`;
9601
9572
  } else {
9602
- return i18n_default.t("none_activity_correct_text");
9573
+ return i18n_default.t("none_count_activity_correct_text");
9603
9574
  }
9604
- } else if (trackingType === "REVIEW") {
9575
+ } else if (sourceType === "ACTIVITY_REVIEW") {
9605
9576
  if (foundBadgeRule) {
9606
- return `${i18n_default.t("total_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_review_text_2")}`;
9577
+ return `${i18n_default.t("total_count_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_activity_review_text_2")}`;
9607
9578
  } else {
9608
- return i18n_default.t("none_activity_review_text");
9579
+ return i18n_default.t("none_count_activity_review_text");
9609
9580
  }
9610
- } else if (trackingType === "TIME_SPENT") {
9581
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
9611
9582
  if (foundBadgeRule) {
9612
- return `${i18n_default.t("total_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_time_spent_text_2")}`;
9583
+ return `${i18n_default.t("coterie_count_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_activity_time_spent_text_2")}`;
9613
9584
  } else {
9614
- return i18n_default.t("none_activity_time_spent_text");
9585
+ return i18n_default.t("none_count_activity_time_spent_text");
9615
9586
  }
9616
- }
9617
- } else if (sourceType === "CATCHTIVITY") {
9618
- if (trackingType === "COUNT") {
9587
+ } else if (sourceType === "CATCHTIVITY") {
9619
9588
  if (foundBadgeRule) {
9620
- return `${i18n_default.t("total_catchtivity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_catchtivity_count_text_2")}`;
9589
+ return `${i18n_default.t("total_count_catchtivity_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_catchtivity_text_2")}`;
9621
9590
  } else {
9622
- return i18n_default.t("none_catchtivity_count_text");
9591
+ return i18n_default.t("none_count_catchtivity_text");
9623
9592
  }
9624
- }
9625
- } else if (sourceType === "CATCHXAM") {
9626
- if (trackingType === "COUNT") {
9593
+ } else if (sourceType === "CATCHXAM") {
9627
9594
  if (foundBadgeRule) {
9628
- return `${i18n_default.t("total_catchxam_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_catchxam_count_text_2")}`;
9595
+ return `${i18n_default.t("total_count_catchxam_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_catchxam_text_2")}`;
9629
9596
  } else {
9630
- return i18n_default.t("none_catchxam_count_text");
9597
+ return i18n_default.t("none_count_catchxam_text");
9631
9598
  }
9632
- }
9633
- } else if (sourceType === "ETUDE") {
9634
- if (trackingType === "COUNT") {
9599
+ } else if (sourceType === "ETUDE") {
9635
9600
  if (foundBadgeRule) {
9636
- return `${i18n_default.t("total_etude_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_etude_count_text_2")}`;
9601
+ return `${i18n_default.t("total_count_etude_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_etude_text_2")}`;
9637
9602
  } else {
9638
- return i18n_default.t("none_etude_count_text");
9603
+ return i18n_default.t("none_count_etude_text");
9639
9604
  }
9640
- }
9641
- } else if (sourceType === "CONTEST") {
9642
- if (trackingType === "COUNT") {
9605
+ } else if (sourceType === "CONTEST") {
9643
9606
  if (foundBadgeRule) {
9644
- return `${i18n_default.t("total_contest_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_contest_count_text_2")}`;
9607
+ return `${i18n_default.t("total_count_contest_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_contest_text_2")}`;
9645
9608
  } else {
9646
- return i18n_default.t("none_contest_count_text");
9609
+ return i18n_default.t("none_count_contest_text");
9647
9610
  }
9648
- }
9649
- } else if (sourceType === "LOGIN") {
9650
- if (trackingType === "COUNT") {
9611
+ } else if (sourceType === "LOGIN") {
9651
9612
  if (foundBadgeRule) {
9652
- return `${i18n_default.t("total_login_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_login_count_text_2")}`;
9613
+ return `${i18n_default.t("total_count_login_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_login_text_2")}`;
9653
9614
  } else {
9654
- return i18n_default.t("none_login_count_text");
9615
+ return i18n_default.t("none_count_login_text");
9655
9616
  }
9656
9617
  }
9657
- }
9658
- } else {
9659
- if (sourceType === "ACTIVITY") {
9660
- if (trackingType === "COUNT") {
9618
+ } else {
9619
+ if (sourceType === "ACTIVITY") {
9661
9620
  if (foundBadgeRule) {
9662
- return `${i18n_default.t("coterie_activity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_count_text_2")}`;
9621
+ return `${i18n_default.t("coterie_count_activity_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_activity_text_2")}`;
9663
9622
  } else {
9664
- return i18n_default.t("none_activity_count_text");
9623
+ return i18n_default.t("none_count_activity_text");
9665
9624
  }
9666
- } else if (trackingType === "CORRECT") {
9625
+ } else if (sourceType === "ACTIVITY_CORRECT") {
9667
9626
  if (foundBadgeRule) {
9668
- return `${i18n_default.t("coterie_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_correct_text_2")}`;
9627
+ return `${i18n_default.t("coterie_count_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_activity_correct_text_2")}`;
9669
9628
  } else {
9670
- return i18n_default.t("none_activity_correct_text");
9629
+ return i18n_default.t("none_count_activity_correct_text");
9671
9630
  }
9672
- } else if (trackingType === "REVIEW") {
9631
+ } else if (sourceType === "ACTIVITY_REVIEW") {
9673
9632
  if (foundBadgeRule) {
9674
- return `${i18n_default.t("coterie_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_review_text_2")}`;
9633
+ return `${i18n_default.t("coterie_count_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_activity_review_text_2")}`;
9675
9634
  } else {
9676
- return i18n_default.t("none_activity_review_text");
9635
+ return i18n_default.t("none_count_activity_review_text");
9677
9636
  }
9678
- } else if (trackingType === "TIME_SPENT") {
9637
+ } else if (sourceType === "ACTIVITY_TIME_SPENT") {
9679
9638
  if (foundBadgeRule) {
9680
- return `${i18n_default.t("coterie_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_time_spent_text_2")}`;
9639
+ return `${i18n_default.t("total_count_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("total_count_activity_time_spent_text_2")}`;
9681
9640
  } else {
9682
- return i18n_default.t("none_activity_time_spent_text");
9641
+ return i18n_default.t("none_count_activity_time_spent_text");
9683
9642
  }
9684
- }
9685
- } else if (sourceType === "CATCHTIVITY") {
9686
- if (trackingType === "COUNT") {
9643
+ } else if (sourceType === "CATCHTIVITY") {
9687
9644
  if (foundBadgeRule) {
9688
- return `${i18n_default.t("coterie_catchtivity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_catchtivity_count_text_2")}`;
9645
+ return `${i18n_default.t("coterie_count_catchtivity_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_catchtivity_text_2")}`;
9689
9646
  } else {
9690
- return i18n_default.t("none_catchtivity_count_text");
9647
+ return i18n_default.t("none_count_catchtivity_text");
9691
9648
  }
9692
- }
9693
- } else if (sourceType === "CATCHXAM") {
9694
- if (trackingType === "COUNT") {
9649
+ } else if (sourceType === "CATCHXAM") {
9695
9650
  if (foundBadgeRule) {
9696
- return `${i18n_default.t("coterie_catchxam_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_catchxam_count_text_2")}`;
9651
+ return `${i18n_default.t("coterie_count_catchxam_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_catchxam_text_2")}`;
9697
9652
  } else {
9698
- return i18n_default.t("none_catchxam_count_text");
9653
+ return i18n_default.t("none_count_catchxam_text");
9699
9654
  }
9700
- }
9701
- } else if (sourceType === "ETUDE") {
9702
- if (trackingType === "COUNT") {
9655
+ } else if (sourceType === "ETUDE") {
9703
9656
  if (foundBadgeRule) {
9704
- return `${i18n_default.t("coterie_etude_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_etude_count_text_2")}`;
9657
+ return `${i18n_default.t("coterie_count_etude_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_etude_text_2")}`;
9705
9658
  } else {
9706
- return i18n_default.t("none_etude_count_text");
9659
+ return i18n_default.t("none_count_etude_text");
9707
9660
  }
9708
- }
9709
- } else if (sourceType === "CONTEST") {
9710
- if (trackingType === "COUNT") {
9661
+ } else if (sourceType === "CONTEST") {
9711
9662
  if (foundBadgeRule) {
9712
- return `${i18n_default.t("coterie_contest_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_contest_count_text_2")}`;
9663
+ return `${i18n_default.t("coterie_count_contest_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_count_contest_text_2")}`;
9713
9664
  } else {
9714
- return i18n_default.t("none_contest_count_text");
9665
+ return i18n_default.t("none_count_contest_text");
9715
9666
  }
9667
+ } else if (sourceType === "LOGIN") {
9716
9668
  }
9717
- } else if (sourceType === "LOGIN") {
9718
9669
  }
9719
9670
  }
9720
9671
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.20.18",
3
+ "version": "1.20.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {