@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.
- package/lib/_models/dynamo-nts-endpoint-params.js +3 -2
- package/lib/_models/dynamo-nts-endpoint-params.js.map +1 -1
- package/lib/_services/dynamo-nts-api.service.d.ts +1 -0
- package/lib/_services/dynamo-nts-api.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-api.service.js +6 -5
- package/lib/_services/dynamo-nts-api.service.js.map +1 -1
- package/lib/_services/dynamo-nts-app-extended.d.ts +87 -7
- package/lib/_services/dynamo-nts-app-extended.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-app-extended.js +87 -7
- package/lib/_services/dynamo-nts-app-extended.js.map +1 -1
- package/lib/_services/dynamo-nts-app.d.ts +131 -22
- package/lib/_services/dynamo-nts-app.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-app.js +104 -1
- package/lib/_services/dynamo-nts-app.js.map +1 -1
- package/lib/_services/dynamo-nts-auth.service.d.ts +79 -5
- package/lib/_services/dynamo-nts-auth.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-auth.service.js +3 -2
- package/lib/_services/dynamo-nts-auth.service.js.map +1 -1
- package/lib/_services/dynamo-nts-data.service.d.ts +25 -1
- package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-data.service.js +98 -70
- package/lib/_services/dynamo-nts-data.service.js.map +1 -1
- package/lib/_services/dynamo-nts-db.service.d.ts +165 -119
- package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-db.service.js +348 -293
- package/lib/_services/dynamo-nts-db.service.js.map +1 -1
- package/lib/_services/dynamo-nts-email.service.d.ts +1 -0
- package/lib/_services/dynamo-nts-email.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-email.service.js +5 -4
- package/lib/_services/dynamo-nts-email.service.js.map +1 -1
- package/lib/_services/dynamo-nts-routing-module.service.d.ts +40 -0
- package/lib/_services/dynamo-nts-routing-module.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-routing-module.service.js +43 -3
- package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
- package/lib/_services/dynamo-nts-socket.service.d.ts +1 -0
- package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-socket.service.js +6 -2
- package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -12
- package/src/_models/dynamo-nts-endpoint-params.ts +2 -2
- package/src/_services/dynamo-nts-api.service.ts +7 -5
- package/src/_services/dynamo-nts-app-extended.ts +87 -7
- package/src/_services/dynamo-nts-app.ts +131 -22
- package/src/_services/dynamo-nts-auth.service.ts +83 -7
- package/src/_services/dynamo-nts-data.service.ts +100 -71
- package/src/_services/dynamo-nts-db.service.ts +377 -297
- package/src/_services/dynamo-nts-email.service.ts +6 -4
- package/src/_services/dynamo-nts-routing-module.service.ts +44 -3
- package/src/_services/dynamo-nts-socket.service.ts +13 -7
- package/futdevpro-nts-dynamo-01.05.40.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.41.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.42.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.43.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.44.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.45.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.47.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.49.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.50.tgz +0 -0
- package/lib/_constants/dynamo-nts-global.settings.d.ts +0 -3
- package/lib/_constants/dynamo-nts-global.settings.d.ts.map +0 -1
- package/lib/_constants/dynamo-nts-global.settings.js +0 -18
- package/lib/_constants/dynamo-nts-global.settings.js.map +0 -1
- package/lib/_constants/dynamobe-global.settings.d.ts +0 -3
- package/lib/_constants/dynamobe-global.settings.d.ts.map +0 -1
- package/lib/_constants/dynamobe-global.settings.js +0 -13
- package/lib/_constants/dynamobe-global.settings.js.map +0 -1
- package/lib/_enums/dynamobe-data-service-function.enum.d.ts +0 -8
- package/lib/_enums/dynamobe-data-service-function.enum.d.ts.map +0 -1
- package/lib/_enums/dynamobe-data-service-function.enum.js +0 -15
- package/lib/_enums/dynamobe-data-service-function.enum.js.map +0 -1
- package/lib/_enums/dynamobe-route-security.enum.d.ts +0 -6
- package/lib/_enums/dynamobe-route-security.enum.d.ts.map +0 -1
- package/lib/_enums/dynamobe-route-security.enum.js +0 -10
- package/lib/_enums/dynamobe-route-security.enum.js.map +0 -1
- package/lib/_enums/log-style.enum.d.ts +0 -26
- package/lib/_enums/log-style.enum.d.ts.map +0 -1
- package/lib/_enums/log-style.enum.js +0 -30
- package/lib/_enums/log-style.enum.js.map +0 -1
- package/lib/_models/dynamo-module-settings.d.ts +0 -4
- package/lib/_models/dynamo-module-settings.d.ts.map +0 -1
- package/lib/_models/dynamo-module-settings.js +0 -10
- package/lib/_models/dynamo-module-settings.js.map +0 -1
- package/lib/_models/dynamo-nts-socket-module-settings.d.ts +0 -19
- package/lib/_models/dynamo-nts-socket-module-settings.d.ts.map +0 -1
- package/lib/_models/dynamo-nts-socket-module-settings.js +0 -27
- package/lib/_models/dynamo-nts-socket-module-settings.js.map +0 -1
- package/lib/_models/dynamobe-api-call-params.d.ts +0 -37
- package/lib/_models/dynamobe-api-call-params.d.ts.map +0 -1
- package/lib/_models/dynamobe-api-call-params.js +0 -29
- package/lib/_models/dynamobe-api-call-params.js.map +0 -1
- package/lib/_models/dynamobe-app-params.d.ts +0 -18
- package/lib/_models/dynamobe-app-params.d.ts.map +0 -1
- package/lib/_models/dynamobe-app-params.js +0 -17
- package/lib/_models/dynamobe-app-params.js.map +0 -1
- package/lib/_models/dynamobe-data-model-params.d.ts +0 -1
- package/lib/_models/dynamobe-data-model-params.d.ts.map +0 -1
- package/lib/_models/dynamobe-data-model-params.js +0 -25
- package/lib/_models/dynamobe-data-model-params.js.map +0 -1
- package/lib/_models/dynamobe-endpoint-params.d.ts +0 -46
- package/lib/_models/dynamobe-endpoint-params.d.ts.map +0 -1
- package/lib/_models/dynamobe-endpoint-params.js +0 -117
- package/lib/_models/dynamobe-endpoint-params.js.map +0 -1
- package/lib/_models/dynamobe-global-settings.d.ts +0 -13
- package/lib/_models/dynamobe-global-settings.d.ts.map +0 -1
- package/lib/_models/dynamobe-global-settings.js +0 -3
- package/lib/_models/dynamobe-global-settings.js.map +0 -1
- package/lib/_modules/data-models.index.d.ts +0 -3
- package/lib/_modules/data-models.index.d.ts.map +0 -1
- package/lib/_modules/data-models.index.js +0 -6
- package/lib/_modules/data-models.index.js.map +0 -1
- package/lib/_services/dynamobe-api.service.d.ts +0 -19
- package/lib/_services/dynamobe-api.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-api.service.js +0 -167
- package/lib/_services/dynamobe-api.service.js.map +0 -1
- package/lib/_services/dynamobe-app.d.ts +0 -129
- package/lib/_services/dynamobe-app.d.ts.map +0 -1
- package/lib/_services/dynamobe-app.js +0 -238
- package/lib/_services/dynamobe-app.js.map +0 -1
- package/lib/_services/dynamobe-auth.service.d.ts +0 -54
- package/lib/_services/dynamobe-auth.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-auth.service.js +0 -46
- package/lib/_services/dynamobe-auth.service.js.map +0 -1
- package/lib/_services/dynamobe-controller.service.d.ts +0 -14
- package/lib/_services/dynamobe-controller.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-controller.service.js +0 -21
- package/lib/_services/dynamobe-controller.service.js.map +0 -1
- package/lib/_services/dynamobe-data.service.d.ts +0 -54
- package/lib/_services/dynamobe-data.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-data.service.js +0 -301
- package/lib/_services/dynamobe-data.service.js.map +0 -1
- package/lib/_services/dynamobe-db-service-collection.service.d.ts +0 -9
- package/lib/_services/dynamobe-db-service-collection.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-db-service-collection.service.js +0 -11
- package/lib/_services/dynamobe-db-service-collection.service.js.map +0 -1
- package/lib/_services/dynamobe-db.service.d.ts +0 -244
- package/lib/_services/dynamobe-db.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-db.service.js +0 -759
- package/lib/_services/dynamobe-db.service.js.map +0 -1
- package/lib/_services/dynamobe-email-service-collection.service.d.ts +0 -19
- package/lib/_services/dynamobe-email-service-collection.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-email-service-collection.service.js +0 -21
- package/lib/_services/dynamobe-email-service-collection.service.js.map +0 -1
- package/lib/_services/dynamobe-email.service.d.ts +0 -56
- package/lib/_services/dynamobe-email.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-email.service.js +0 -194
- package/lib/_services/dynamobe-email.service.js.map +0 -1
- package/lib/_services/dynamobe-global.service.d.ts +0 -62
- package/lib/_services/dynamobe-global.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-global.service.js +0 -107
- package/lib/_services/dynamobe-global.service.js.map +0 -1
- package/lib/_services/dynamobe-routing-module.service.d.ts +0 -42
- package/lib/_services/dynamobe-routing-module.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-routing-module.service.js +0 -146
- package/lib/_services/dynamobe-routing-module.service.js.map +0 -1
- package/lib/_services/dynamobe-shared-be.service.d.ts +0 -8
- package/lib/_services/dynamobe-shared-be.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-shared-be.service.js +0 -45
- package/lib/_services/dynamobe-shared-be.service.js.map +0 -1
- package/lib/_services/dynamobe-shared.service.d.ts +0 -26
- package/lib/_services/dynamobe-shared.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-shared.service.js +0 -63
- package/lib/_services/dynamobe-shared.service.js.map +0 -1
- package/lib/_services/dynamobe-singleton.service.d.ts +0 -9
- package/lib/_services/dynamobe-singleton.service.d.ts.map +0 -1
- package/lib/_services/dynamobe-singleton.service.js +0 -19
- 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
|
-
*
|
|
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
|
-
* @
|
|
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
|
-
*
|
|
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
|
-
* @
|
|
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
|
-
*
|
|
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
|
|
146
|
-
* @
|
|
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
|
-
*
|
|
158
|
-
* @param
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
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
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* $
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
|
|
188
|
-
|
|
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
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
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
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* $
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
|
|
220
|
-
|
|
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;
|
|
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;IAc/C,UAAU,EAAE,oBAAoB;IAbzC,SAAS,6DAA4D;IAErE,OAAO,CAAC,WAAW,CAAS;IAE5B,mBAAmB,SAA2F;IAE9G;;;;;OAKG;gBAEM,UAAU,EAAE,oBAAoB;IAKzC;;;;OAIG;IACG,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAuCtD;;;;OAIG;IACG,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAqCvD;;;;OAIG;IACG,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAyBzC;;;;OAIG;IACG,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAmC7D;;;;OAIG;IACG,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAmCnE;;;;OAIG;IACG,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAmC7D;;;;;;OAMG;IACG,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,qBAAqB,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAwFlF;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC;IAuB5B;;;OAGG;IACG,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAa/C;;;OAGG;IACG,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA6BnE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,OAAO,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC;IAyBtC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAyBrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACG,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IA4B3F;;;;;OAKG;IACG,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAoC9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACG,SAAS,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAqCzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACG,UAAU,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAmC5E;;;OAGG;IACH,OAAO,CAAC,SAAS;IAajB;;;;OAIG;IACH,OAAO,CAAC,gCAAgC;IAoCxC,OAAO,CAAC,SAAS;IAuBjB;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IASlC;;OAEG;IACH,OAAO,CAAC,6BAA6B;CAOtC"}
|