@mcdylanproperenterprise/nodejs-proper-sunsoontaat-types 0.0.29 → 0.0.30

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.
Files changed (3) hide show
  1. package/enum.ts +9 -1
  2. package/package.json +1 -1
  3. package/types.d.ts +12 -3
package/enum.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export enum ERemarkReferenceType {
2
2
  ORDER = "ORDER",
3
- TIMBER = "TIMBER"
3
+ TIMBER = "TIMBER",
4
4
  }
5
5
 
6
6
  export enum EOrderStatus {
@@ -35,3 +35,11 @@ export enum ETimberStatus {
35
35
  SOLD = "SOLD",
36
36
  CANCELED = "CANCELED",
37
37
  }
38
+
39
+ export enum EFishFeedEvents {
40
+ FEED = "FEED",
41
+ DEATH = "DEATH",
42
+ NEW = "NEW",
43
+ MOVE = "MOVE",
44
+ SALE = "SALE",
45
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcdylanproperenterprise/nodejs-proper-sunsoontaat-types",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "types": "index.d.ts",
package/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import {
2
+ EFishFeedEvents,
2
3
  EMachine,
3
4
  EOrderStatus,
4
5
  EProductStatus,
@@ -395,11 +396,12 @@ export type TPond = {
395
396
 
396
397
  export type TFishFeed = {
397
398
  _id: string;
399
+ event: EFishFeedEvents;
398
400
  quantity: number;
399
401
  adminId: string;
400
402
  pondId: string;
401
403
  remark: string;
402
- fedAt: Date | null;
404
+ recordedAt: Date | null;
403
405
  updatedAt: Date | null;
404
406
  createdAt: Date;
405
407
  pond: TPond;
@@ -407,18 +409,20 @@ export type TFishFeed = {
407
409
  };
408
410
 
409
411
  export type TPostFishFeedCreateBody = {
412
+ event: EFishFeedEvents;
410
413
  quantity: number;
411
414
  pondId: string;
412
415
  remark: string;
413
- fedAt: Date;
416
+ recordedAt: Date;
414
417
  };
415
418
 
416
419
  export type TPostFishFeedUpdateBody = {
417
420
  id: string;
421
+ event: EFishFeedEvents;
418
422
  quantity: number;
419
423
  pondId: string;
420
424
  remark: string;
421
- fedAt: Date;
425
+ recordedAt: Date;
422
426
  };
423
427
 
424
428
  export type PartialTFishFeed = Partial<TFishFeed>;
@@ -434,3 +438,8 @@ export type TGetPondQuery = {
434
438
  page: number;
435
439
  q?: string | undefined;
436
440
  };
441
+
442
+ export type TGetFishFeedQuery = {
443
+ limit: number;
444
+ page: number;
445
+ };