my-q-format-response-aws-lambda 1.0.58 → 1.0.59

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 (2) hide show
  1. package/index.ts +15 -27
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -735,7 +735,7 @@ export const parseMessageResponse = (message: string, separator: string = '__'):
735
735
 
736
736
  // CREATE
737
737
  export interface TEntityInputCreate<M> {
738
- data: M
738
+ values: M
739
739
  }
740
740
 
741
741
  // GET LIST
@@ -746,44 +746,32 @@ export interface TEntityInputGetList<F, S> {
746
746
  paging: TMongoPaginate
747
747
  }
748
748
 
749
- // GET ONE BY ID
750
- export interface TEntityInputGetOneByID {
749
+ // ONE BY ID
750
+ export interface TEntityInputOneByID {
751
751
  id: string
752
752
  }
753
753
 
754
- // GET MANY BY IDs
755
- export interface TEntityInputGetManyByIDs {
754
+ // MANY BY IDs
755
+ export interface TEntityInputManyByIDs {
756
756
  ids: string[]
757
757
  }
758
758
 
759
- // UPDATE ONE BY ID
760
- export interface TEntityInputUpdateOneByID<M> {
759
+ // VALUES ONE BY ID
760
+ export interface TEntityInputValuesOneByID<M> {
761
761
  id: string
762
- data: M
762
+ values: M
763
763
  }
764
764
 
765
- // UPDATE MANY BY IDs
766
- export interface TEntityInputUpdateManyByIDs<M> {
767
- ids: string[]
768
- data: M
769
- }
770
-
771
- // DELETE ONE BY ID
772
- export interface TEntityInputDeleteOneByID {
773
- id: string
774
- }
775
-
776
- // DELETE MANY BY IDs
777
- export interface TEntityInputDeleteManyByIDs {
765
+ // VALUES MANY BY IDs
766
+ export interface TEntityInputValuesManyByIDs<M> {
778
767
  ids: string[]
768
+ values: M
779
769
  }
780
770
 
781
771
  export type TEntityInput =
782
772
  | TEntityInputCreate<any>
783
773
  | TEntityInputGetList<any, any>
784
- | TEntityInputGetOneByID
785
- | TEntityInputGetManyByIDs
786
- | TEntityInputUpdateOneByID<any>
787
- | TEntityInputUpdateManyByIDs<any>
788
- | TEntityInputDeleteOneByID
789
- | TEntityInputDeleteManyByIDs
774
+ | TEntityInputOneByID
775
+ | TEntityInputValuesOneByID<any>
776
+ | TEntityInputManyByIDs
777
+ | TEntityInputValuesManyByIDs<any>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-q-format-response-aws-lambda",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "homepage": "https://github.com/zhukyuri/my-q-format-response-aws-lambda",
5
5
  "description": "my-q-format-response-aws-lambda",
6
6
  "main": "index.js",