@futdevpro/nts-dynamo 1.5.50 → 1.5.52

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 (167) hide show
  1. package/lib/_models/dynamo-nts-endpoint-params.js +3 -2
  2. package/lib/_models/dynamo-nts-endpoint-params.js.map +1 -1
  3. package/lib/_services/dynamo-nts-api.service.d.ts +1 -0
  4. package/lib/_services/dynamo-nts-api.service.d.ts.map +1 -1
  5. package/lib/_services/dynamo-nts-api.service.js +6 -5
  6. package/lib/_services/dynamo-nts-api.service.js.map +1 -1
  7. package/lib/_services/dynamo-nts-app-extended.d.ts +87 -7
  8. package/lib/_services/dynamo-nts-app-extended.d.ts.map +1 -1
  9. package/lib/_services/dynamo-nts-app-extended.js +87 -7
  10. package/lib/_services/dynamo-nts-app-extended.js.map +1 -1
  11. package/lib/_services/dynamo-nts-app.d.ts +131 -22
  12. package/lib/_services/dynamo-nts-app.d.ts.map +1 -1
  13. package/lib/_services/dynamo-nts-app.js +104 -1
  14. package/lib/_services/dynamo-nts-app.js.map +1 -1
  15. package/lib/_services/dynamo-nts-auth.service.d.ts +79 -5
  16. package/lib/_services/dynamo-nts-auth.service.d.ts.map +1 -1
  17. package/lib/_services/dynamo-nts-auth.service.js +3 -2
  18. package/lib/_services/dynamo-nts-auth.service.js.map +1 -1
  19. package/lib/_services/dynamo-nts-data.service.d.ts +25 -1
  20. package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
  21. package/lib/_services/dynamo-nts-data.service.js +98 -70
  22. package/lib/_services/dynamo-nts-data.service.js.map +1 -1
  23. package/lib/_services/dynamo-nts-db.service.d.ts +165 -119
  24. package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
  25. package/lib/_services/dynamo-nts-db.service.js +348 -293
  26. package/lib/_services/dynamo-nts-db.service.js.map +1 -1
  27. package/lib/_services/dynamo-nts-email.service.d.ts +1 -0
  28. package/lib/_services/dynamo-nts-email.service.d.ts.map +1 -1
  29. package/lib/_services/dynamo-nts-email.service.js +5 -4
  30. package/lib/_services/dynamo-nts-email.service.js.map +1 -1
  31. package/lib/_services/dynamo-nts-routing-module.service.d.ts +40 -0
  32. package/lib/_services/dynamo-nts-routing-module.service.d.ts.map +1 -1
  33. package/lib/_services/dynamo-nts-routing-module.service.js +43 -3
  34. package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
  35. package/lib/_services/dynamo-nts-socket.service.d.ts +1 -0
  36. package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
  37. package/lib/_services/dynamo-nts-socket.service.js +6 -2
  38. package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
  39. package/lib/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +16 -12
  41. package/src/_models/dynamo-nts-endpoint-params.ts +2 -2
  42. package/src/_services/dynamo-nts-api.service.ts +7 -5
  43. package/src/_services/dynamo-nts-app-extended.ts +87 -7
  44. package/src/_services/dynamo-nts-app.ts +131 -22
  45. package/src/_services/dynamo-nts-auth.service.ts +83 -7
  46. package/src/_services/dynamo-nts-data.service.ts +100 -71
  47. package/src/_services/dynamo-nts-db.service.ts +377 -297
  48. package/src/_services/dynamo-nts-email.service.ts +6 -4
  49. package/src/_services/dynamo-nts-routing-module.service.ts +44 -3
  50. package/src/_services/dynamo-nts-socket.service.ts +13 -7
  51. package/futdevpro-nts-dynamo-01.05.40.tgz +0 -0
  52. package/futdevpro-nts-dynamo-01.05.41.tgz +0 -0
  53. package/futdevpro-nts-dynamo-01.05.42.tgz +0 -0
  54. package/futdevpro-nts-dynamo-01.05.43.tgz +0 -0
  55. package/futdevpro-nts-dynamo-01.05.44.tgz +0 -0
  56. package/futdevpro-nts-dynamo-01.05.45.tgz +0 -0
  57. package/futdevpro-nts-dynamo-01.05.47.tgz +0 -0
  58. package/futdevpro-nts-dynamo-01.05.49.tgz +0 -0
  59. package/futdevpro-nts-dynamo-01.05.50.tgz +0 -0
  60. package/lib/_constants/dynamo-nts-global.settings.d.ts +0 -3
  61. package/lib/_constants/dynamo-nts-global.settings.d.ts.map +0 -1
  62. package/lib/_constants/dynamo-nts-global.settings.js +0 -18
  63. package/lib/_constants/dynamo-nts-global.settings.js.map +0 -1
  64. package/lib/_constants/dynamobe-global.settings.d.ts +0 -3
  65. package/lib/_constants/dynamobe-global.settings.d.ts.map +0 -1
  66. package/lib/_constants/dynamobe-global.settings.js +0 -13
  67. package/lib/_constants/dynamobe-global.settings.js.map +0 -1
  68. package/lib/_enums/dynamobe-data-service-function.enum.d.ts +0 -8
  69. package/lib/_enums/dynamobe-data-service-function.enum.d.ts.map +0 -1
  70. package/lib/_enums/dynamobe-data-service-function.enum.js +0 -15
  71. package/lib/_enums/dynamobe-data-service-function.enum.js.map +0 -1
  72. package/lib/_enums/dynamobe-route-security.enum.d.ts +0 -6
  73. package/lib/_enums/dynamobe-route-security.enum.d.ts.map +0 -1
  74. package/lib/_enums/dynamobe-route-security.enum.js +0 -10
  75. package/lib/_enums/dynamobe-route-security.enum.js.map +0 -1
  76. package/lib/_enums/log-style.enum.d.ts +0 -26
  77. package/lib/_enums/log-style.enum.d.ts.map +0 -1
  78. package/lib/_enums/log-style.enum.js +0 -30
  79. package/lib/_enums/log-style.enum.js.map +0 -1
  80. package/lib/_models/dynamo-module-settings.d.ts +0 -4
  81. package/lib/_models/dynamo-module-settings.d.ts.map +0 -1
  82. package/lib/_models/dynamo-module-settings.js +0 -10
  83. package/lib/_models/dynamo-module-settings.js.map +0 -1
  84. package/lib/_models/dynamo-nts-socket-module-settings.d.ts +0 -19
  85. package/lib/_models/dynamo-nts-socket-module-settings.d.ts.map +0 -1
  86. package/lib/_models/dynamo-nts-socket-module-settings.js +0 -27
  87. package/lib/_models/dynamo-nts-socket-module-settings.js.map +0 -1
  88. package/lib/_models/dynamobe-api-call-params.d.ts +0 -37
  89. package/lib/_models/dynamobe-api-call-params.d.ts.map +0 -1
  90. package/lib/_models/dynamobe-api-call-params.js +0 -29
  91. package/lib/_models/dynamobe-api-call-params.js.map +0 -1
  92. package/lib/_models/dynamobe-app-params.d.ts +0 -18
  93. package/lib/_models/dynamobe-app-params.d.ts.map +0 -1
  94. package/lib/_models/dynamobe-app-params.js +0 -17
  95. package/lib/_models/dynamobe-app-params.js.map +0 -1
  96. package/lib/_models/dynamobe-data-model-params.d.ts +0 -1
  97. package/lib/_models/dynamobe-data-model-params.d.ts.map +0 -1
  98. package/lib/_models/dynamobe-data-model-params.js +0 -25
  99. package/lib/_models/dynamobe-data-model-params.js.map +0 -1
  100. package/lib/_models/dynamobe-endpoint-params.d.ts +0 -46
  101. package/lib/_models/dynamobe-endpoint-params.d.ts.map +0 -1
  102. package/lib/_models/dynamobe-endpoint-params.js +0 -117
  103. package/lib/_models/dynamobe-endpoint-params.js.map +0 -1
  104. package/lib/_models/dynamobe-global-settings.d.ts +0 -13
  105. package/lib/_models/dynamobe-global-settings.d.ts.map +0 -1
  106. package/lib/_models/dynamobe-global-settings.js +0 -3
  107. package/lib/_models/dynamobe-global-settings.js.map +0 -1
  108. package/lib/_modules/data-models.index.d.ts +0 -3
  109. package/lib/_modules/data-models.index.d.ts.map +0 -1
  110. package/lib/_modules/data-models.index.js +0 -6
  111. package/lib/_modules/data-models.index.js.map +0 -1
  112. package/lib/_services/dynamobe-api.service.d.ts +0 -19
  113. package/lib/_services/dynamobe-api.service.d.ts.map +0 -1
  114. package/lib/_services/dynamobe-api.service.js +0 -167
  115. package/lib/_services/dynamobe-api.service.js.map +0 -1
  116. package/lib/_services/dynamobe-app.d.ts +0 -129
  117. package/lib/_services/dynamobe-app.d.ts.map +0 -1
  118. package/lib/_services/dynamobe-app.js +0 -238
  119. package/lib/_services/dynamobe-app.js.map +0 -1
  120. package/lib/_services/dynamobe-auth.service.d.ts +0 -54
  121. package/lib/_services/dynamobe-auth.service.d.ts.map +0 -1
  122. package/lib/_services/dynamobe-auth.service.js +0 -46
  123. package/lib/_services/dynamobe-auth.service.js.map +0 -1
  124. package/lib/_services/dynamobe-controller.service.d.ts +0 -14
  125. package/lib/_services/dynamobe-controller.service.d.ts.map +0 -1
  126. package/lib/_services/dynamobe-controller.service.js +0 -21
  127. package/lib/_services/dynamobe-controller.service.js.map +0 -1
  128. package/lib/_services/dynamobe-data.service.d.ts +0 -54
  129. package/lib/_services/dynamobe-data.service.d.ts.map +0 -1
  130. package/lib/_services/dynamobe-data.service.js +0 -301
  131. package/lib/_services/dynamobe-data.service.js.map +0 -1
  132. package/lib/_services/dynamobe-db-service-collection.service.d.ts +0 -9
  133. package/lib/_services/dynamobe-db-service-collection.service.d.ts.map +0 -1
  134. package/lib/_services/dynamobe-db-service-collection.service.js +0 -11
  135. package/lib/_services/dynamobe-db-service-collection.service.js.map +0 -1
  136. package/lib/_services/dynamobe-db.service.d.ts +0 -244
  137. package/lib/_services/dynamobe-db.service.d.ts.map +0 -1
  138. package/lib/_services/dynamobe-db.service.js +0 -759
  139. package/lib/_services/dynamobe-db.service.js.map +0 -1
  140. package/lib/_services/dynamobe-email-service-collection.service.d.ts +0 -19
  141. package/lib/_services/dynamobe-email-service-collection.service.d.ts.map +0 -1
  142. package/lib/_services/dynamobe-email-service-collection.service.js +0 -21
  143. package/lib/_services/dynamobe-email-service-collection.service.js.map +0 -1
  144. package/lib/_services/dynamobe-email.service.d.ts +0 -56
  145. package/lib/_services/dynamobe-email.service.d.ts.map +0 -1
  146. package/lib/_services/dynamobe-email.service.js +0 -194
  147. package/lib/_services/dynamobe-email.service.js.map +0 -1
  148. package/lib/_services/dynamobe-global.service.d.ts +0 -62
  149. package/lib/_services/dynamobe-global.service.d.ts.map +0 -1
  150. package/lib/_services/dynamobe-global.service.js +0 -107
  151. package/lib/_services/dynamobe-global.service.js.map +0 -1
  152. package/lib/_services/dynamobe-routing-module.service.d.ts +0 -42
  153. package/lib/_services/dynamobe-routing-module.service.d.ts.map +0 -1
  154. package/lib/_services/dynamobe-routing-module.service.js +0 -146
  155. package/lib/_services/dynamobe-routing-module.service.js.map +0 -1
  156. package/lib/_services/dynamobe-shared-be.service.d.ts +0 -8
  157. package/lib/_services/dynamobe-shared-be.service.d.ts.map +0 -1
  158. package/lib/_services/dynamobe-shared-be.service.js +0 -45
  159. package/lib/_services/dynamobe-shared-be.service.js.map +0 -1
  160. package/lib/_services/dynamobe-shared.service.d.ts +0 -26
  161. package/lib/_services/dynamobe-shared.service.d.ts.map +0 -1
  162. package/lib/_services/dynamobe-shared.service.js +0 -63
  163. package/lib/_services/dynamobe-shared.service.js.map +0 -1
  164. package/lib/_services/dynamobe-singleton.service.d.ts +0 -9
  165. package/lib/_services/dynamobe-singleton.service.d.ts.map +0 -1
  166. package/lib/_services/dynamobe-singleton.service.js +0 -19
  167. package/lib/_services/dynamobe-singleton.service.js.map +0 -1
@@ -7,6 +7,7 @@ export declare class DynamoNTS_DBService<T extends Dynamo_Metadata> {
7
7
  dataParams: DynamoNTS_DataParams;
8
8
  dataModel: mongoose.Model<mongoose.Document<any, any, any>, any, any>;
9
9
  private depDataName;
10
+ defaultErrorUserMsg: string;
10
11
  /**
11
12
  * @param dataName name the model
12
13
  * @param typeSample sample data for scheme creation (dont include Dynamo_Metadata!)
@@ -58,18 +59,6 @@ export declare class DynamoNTS_DBService<T extends Dynamo_Metadata> {
58
59
  * @returns dataList
59
60
  */
60
61
  searchData(searchBy: object, narrowByDependencyIds?: string[]): Promise<T[]>;
61
- /**
62
- * find data by any of its parameters, throws error if not found
63
- * @param data
64
- * (always use unique parameters for find!)
65
- * etc.: by email:
66
- * @example { email: email }
67
- * or by id that is in list:
68
- * @example { userIds: { $in: this.userId } }
69
- * or by number or Date that is greater than OR less than:
70
- * @example { points: { $gte: 2, $lte: 14 } }
71
- * @returns data
72
- */
73
62
  /**
74
63
  * returns all data from database, throws error if not found
75
64
  * @returns dataList
@@ -86,64 +75,85 @@ export declare class DynamoNTS_DBService<T extends Dynamo_Metadata> {
86
75
  */
87
76
  deleteDataByDependencyId(dependencyId: string): Promise<void>;
88
77
  /**
89
- * find the data first by any of its parameters, throws error if not found
90
- * @param filter
91
- * (always use unique parameters for find!)
92
- * etc.: by email:
93
- * @example { email: email }
94
- * or by id that is in list:
95
- * @example { userIds: { $in: this.userId } }
96
- * or by number or Date that is GREATER THAN OR LESS THAN:
97
- * @example { points: { $gt: 2, $lt: 14 } }
98
- * further tools (syntax matches with $gt):
99
- * $eq: Matches values that are EQUAL to a specified value.
100
- * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
101
- * $lte: Matches values that are LESS THAN or EQUAL to a specified value.
102
- * $ne: Matches all values that are NOT EQUAL to a specified value.
103
- * $nin: Matches NONE of the values specified IN an array.
78
+ * Find the data first by any of its parameters, throws error if not found
79
+ * @param filter if you can, use unique parameters for find!
104
80
  *
105
- * @returns data
81
+ * @example
82
+ * // by email:
83
+ * { email: email }
84
+ * //
85
+ * @example
86
+ * // or by id that is in list:
87
+ * { userIds: { $in: this.userId } }
88
+ * //
89
+ * @example
90
+ * // or by number or Date that is Greater Than AND Less Than:
91
+ * { points: { $gt: 2, $lt: 14 } }
92
+ * // further tools (syntax matches with $gt):
93
+ * $eq: // Matches values that are EQual to a specified value.
94
+ * $gte: // Matches values that are Greater Than OR Equal to a specified value.
95
+ * $lte: // Matches values that are Less Than or Equal to a specified value.
96
+ * $ne: // Matches all values that are Not Equal to a specified value.
97
+ * $nin: // Matches None of the values specified IN an array.
98
+ * //
99
+ * @returns {T} data: T
106
100
  */
107
101
  findOne(filter: any): Promise<T>;
108
102
  /**
109
- * find all data by any of its parameters, throws error if not found
110
- * @param filter
111
- * etc.: by email:
112
- * @example { email: email }
113
- * or by id that is in list:
114
- * @example { userIds: { $in: this.userId } }
115
- * or by number or Date that is GREATER THAN OR LESS THAN:
116
- * @example { points: { $gt: 2, $lt: 14 } }
117
- * further tools (syntax matches with $gt):
118
- * $eq: Matches values that are EQUAL to a specified value.
119
- * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
120
- * $lte: Matches values that are LESS THAN or EQUAL to a specified value.
121
- * $ne: Matches all values that are NOT EQUAL to a specified value.
122
- * $nin: Matches NONE of the values specified IN an array.
103
+ * Find the data first by any of its parameters, throws error if not found
104
+ * @param filter if you can, use unique parameters for find!
123
105
  *
124
- * @returns dataList
106
+ * @example
107
+ * // by email:
108
+ * { email: email }
109
+ * //
110
+ * @example
111
+ * // or by id that is in list:
112
+ * { userIds: { $in: this.userId } }
113
+ * //
114
+ * @example
115
+ * // or by number or Date that is Greater Than AND Less Than:
116
+ * { points: { $gt: 2, $lt: 14 } }
117
+ * // further tools (syntax matches with $gt):
118
+ * $eq: // Matches values that are EQual to a specified value.
119
+ * $gte: // Matches values that are Greater Than OR Equal to a specified value.
120
+ * $lte: // Matches values that are Less Than or Equal to a specified value.
121
+ * $ne: // Matches all values that are Not Equal to a specified value.
122
+ * $nin: // Matches None of the values specified IN an array.
123
+ * //
124
+ * @returns {T[]} dataList: T[]
125
125
  */
126
126
  find(filter: any): Promise<T[]>;
127
127
  /**
128
- * find all data by any of its parameters, throws error if not found
129
- * @param filter
130
- * etc.: by email:
131
- * @example { email: email }
132
- * or by id that is in list:
133
- * @example { userIds: { $in: this.userId } }
134
- * or by number or Date that is GREATER THAN OR LESS THAN:
135
- * @example { points: { $gt: 2, $lt: 14 } }
136
- * further tools (syntax matches with $gt):
137
- * $eq: Matches values that are EQUAL to a specified value.
138
- * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
139
- * $lte: Matches values that are LESS THAN or EQUAL to a specified value.
140
- * $ne: Matches all values that are NOT EQUAL to a specified value.
141
- * $nin: Matches NONE of the values specified IN an array.
128
+ * Find the data first by any of its parameters, throws error if not found
129
+ * @param filter if you can, use unique parameters for find!
142
130
  *
131
+ * @example
132
+ * // by email:
133
+ * { email: email }
134
+ * //
135
+ * @example
136
+ * // or by id that is in list:
137
+ * { userIds: { $in: this.userId } }
138
+ * //
139
+ * @example
140
+ * // or by number or Date that is Greater Than AND Less Than:
141
+ * { points: { $gt: 2, $lt: 14 } }
142
+ * // further tools (syntax matches with $gt):
143
+ * $eq: // Matches values that are EQual to a specified value.
144
+ * $gte: // Matches values that are Greater Than OR Equal to a specified value.
145
+ * $lte: // Matches values that are Less Than or Equal to a specified value.
146
+ * $ne: // Matches all values that are Not Equal to a specified value.
147
+ * $nin: // Matches None of the values specified IN an array.
148
+ * //
143
149
  * @param page page
144
150
  * @param pageSize pageSize
145
- * @param sort etc. by dateTime: { dateTime: -1 }
146
- * @returns dataList
151
+ * @param sort
152
+ * @example
153
+ * // by dateTime (this uses the basic sort function):
154
+ * { dateTime: -1 }
155
+ * //
156
+ * @returns {T[]} dataList: T[]
147
157
  */
148
158
  findWithPaging(filter: any, page: number, pageSize: number, sort?: any): Promise<T[]>;
149
159
  /**
@@ -154,70 +164,106 @@ export declare class DynamoNTS_DBService<T extends Dynamo_Metadata> {
154
164
  */
155
165
  findByIdAndUpdate(id: string, update: any, modifier: string): Promise<T>;
156
166
  /**
157
- * update one parameter by a specific
158
- * @param updateBy
159
- * (always use unique parameters for find!)
160
- * etc.: by email:
161
- * @example { email: email }
162
- * or by id that is in list:
163
- * @example { userIds: { $in: this.userId } }
164
- * or by number or Date that is GREATER THAN OR LESS THAN:
165
- * @example { points: { $gt: 2, $lt: 14 } }
166
- * further tools (syntax matches with $gt):
167
- * $eq: Matches values that are EQUAL to a specified value.
168
- * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
169
- * $lte: Matches values that are LESS THAN or EQUAL to a specified value.
170
- * $ne: Matches all values that are NOT EQUAL to a specified value.
171
- * $nin: Matches NONE of the values specified IN an array.
167
+ * Find the data first by any of its parameters, throws error if not found
168
+ * @param filter This uses the basic Mongoose updateOne.
169
+ * If you can, use unique parameters for find!
170
+ * @example
171
+ * // by email:
172
+ * { email: email }
173
+ * //
174
+ * @example
175
+ * // or by id that is in list:
176
+ * { userIds: { $in: this.userId } }
177
+ * //
178
+ * @example
179
+ * // or by number or Date that is Greater Than AND Less Than:
180
+ * { points: { $gt: 2, $lt: 14 } }
181
+ * // further tools (syntax matches with $gt):
182
+ * $eq: // Matches values that are EQual to a specified value.
183
+ * $gte: // Matches values that are Greater Than OR Equal to a specified value.
184
+ * $lte: // Matches values that are Less Than or Equal to a specified value.
185
+ * $ne: // Matches all values that are Not Equal to a specified value.
186
+ * $nin: // Matches None of the values specified IN an array.
187
+ * //
172
188
  *
173
- * @param update
174
- * etc.: increase a specific value:
175
- * @example { $inc: { popularity: 15 } }
176
- * or add element to a list:
177
- * @example { $push: { reactions: this.newReaction }
178
- * or all at once
179
- * @example { $inc: { popularity: this.newVote.amount }, emailVerified: true, $push: { reactions: this.newReaction } }
180
- * further tools (syntax matches with $inc):
181
- * $currentDate: Sets the value of a field to current date, either as a Date or a Timestamp.
182
- * $min: Only updates the field if the specified value is less than the existing field value.
183
- * $max: Only updates the field if the specified value is greater than the existing field value.
184
- * $mul: Multiplies the value of the field by the specified amount.
185
- * $rename: Renames a field.
186
- * $unset: Removes the specified field from a document. (set: "" to value)
187
- */
188
- updateOne(updateBy: any, update: any, modifier: string): Promise<void>;
189
+ * @param update this uses the basic Mongoose updateOne
190
+ * @example
191
+ * // increase a specific value (here by 15):
192
+ * { $inc: { popularity: 15 } }
193
+ * //
194
+ * @example
195
+ * // or add element to a list:
196
+ * { $push: { reactions: this.newReaction }
197
+ * // or add multiple elements to a list
198
+ * { $push: { schedule: {$each: [ monday, tuesday, wednesday ] } } }
199
+ * //
200
+ * @example
201
+ * // or all at once
202
+ * {
203
+ * $inc: { popularity: this.newVote.amount },
204
+ * emailVerified: true,
205
+ * $push: { reactions: this.newReaction }
206
+ * }
207
+ * // further tools (syntax matches with $inc):
208
+ * $currentDate: // Sets the value of a field to current date, either as a Date or a Timestamp.
209
+ * $min: // Only updates the field if the specified value is less than the existing field value.
210
+ * $max: // Only updates the field if the specified value is greater than the existing field value.
211
+ * $mul: // Multiplies the value of the field by the specified amount.
212
+ * $rename: // Renames a field.
213
+ * $unset: // Removes the specified field from a document. (set: "" to value)
214
+ * //
215
+ */
216
+ updateOne(updateBy: any, update: any, modifier: string): Promise<T>;
189
217
  /**
190
218
  * update one parameter by a specific
191
- * @param updateBy
192
- * etc.: by email:
193
- * @example { email: email }
194
- * or by id that is in list:
195
- * @example { userIds: { $in: this.userId } }
196
- * or by number or Date that is GREATER THAN OR LESS THAN:
197
- * @example { points: { $gt: 2, $lt: 14 } }
198
- * further tools (syntax matches with $gt):
199
- * $eq: Matches values that are EQUAL to a specified value.
200
- * $gte: Matches values that are GREATER THAN or EQUAL to a specified value.
201
- * $lte: Matches values that are LESS THAN or EQUAL to a specified value.
202
- * $ne: Matches all values that are NOT EQUAL to a specified value.
203
- * $nin: Matches NONE of the values specified IN an array.
219
+ * @param filter This uses the basic Mongoose updateMany.
220
+ * @example
221
+ * // by email:
222
+ * { email: email }
223
+ * //
224
+ * @example
225
+ * // or by id that is in list:
226
+ * { userIds: { $in: this.userId } }
227
+ * //
228
+ * @example
229
+ * // or by number or Date that is Greater Than AND Less Than:
230
+ * { points: { $gt: 2, $lt: 14 } }
231
+ * // further tools (syntax matches with $gt):
232
+ * $eq: // Matches values that are EQual to a specified value.
233
+ * $gte: // Matches values that are Greater Than OR Equal to a specified value.
234
+ * $lte: // Matches values that are Less Than or Equal to a specified value.
235
+ * $ne: // Matches all values that are Not Equal to a specified value.
236
+ * $nin: // Matches None of the values specified IN an array.
237
+ * //
204
238
  *
205
- * @param update
206
- * etc.: increase a specific value:
207
- * @example { $inc: { popularity: 15 } }
208
- * or add element to a list:
209
- * @example { $push: { reactions: this.newReaction }
210
- * or all at once
211
- * @example { $inc: { popularity: this.newVote.amount }, emailVerified: true, $push: { reactions: this.newReaction } }
212
- * further tools (syntax matches with $inc):
213
- * $currentDate: Sets the value of a field to current date, either as a Date or a Timestamp.
214
- * $min: Only updates the field if the specified value is less than the existing field value.
215
- * $max: Only updates the field if the specified value is greater than the existing field value.
216
- * $mul: Multiplies the value of the field by the specified amount.
217
- * $rename: Renames a field.
218
- * $unset: Removes the specified field from a document. (set: "" to value)
219
- */
220
- updateMany(updateBy: any, update: any, modifier: string): Promise<void>;
239
+ * @param update this uses the basic Mongoose updateOne
240
+ * @example
241
+ * // increase a specific value (here by 15):
242
+ * { $inc: { popularity: 15 } }
243
+ * //
244
+ * @example
245
+ * // or add element to a list:
246
+ * { $push: { reactions: this.newReaction }
247
+ * // or add multiple elements to a list
248
+ * { $push: { schedule: {$each: [ monday, tuesday, wednesday ] } } }
249
+ * //
250
+ * @example
251
+ * // or all at once
252
+ * {
253
+ * $inc: { popularity: this.newVote.amount },
254
+ * emailVerified: true,
255
+ * $push: { reactions: this.newReaction }
256
+ * }
257
+ * // further tools (syntax matches with $inc):
258
+ * $currentDate: // Sets the value of a field to current date, either as a Date or a Timestamp.
259
+ * $min: // Only updates the field if the specified value is less than the existing field value.
260
+ * $max: // Only updates the field if the specified value is greater than the existing field value.
261
+ * $mul: // Multiplies the value of the field by the specified amount.
262
+ * $rename: // Renames a field.
263
+ * $unset: // Removes the specified field from a document. (set: "" to value)
264
+ * //
265
+ */
266
+ updateMany(updateBy: any, update: any, modifier: string): Promise<T[]>;
221
267
  /**
222
268
  * builds and returns mongoose schema
223
269
  * @returns schema
@@ -1 +1 @@
1
- {"version":3,"file":"dynamo-nts-db.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-db.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAA8C,MAAM,uBAAuB,CAAC;AAE1H;;GAEG;AACH,qBAAa,mBAAmB,CAAC,CAAC,SAAS,eAAe;IAY/C,UAAU,EAAE,oBAAoB;IAXzC,SAAS,6DAA4D;IAErE,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;;OAKG;gBAEM,UAAU,EAAE,oBAAoB;IAKzC;;;;OAIG;IACG,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAyCtD;;;;OAIG;IACG,UAAU,CAAC,IAAI,EAAE,CAAC,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