express-sweet 1.0.43 → 1.1.0
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/CHANGELOG.md +44 -6
- package/QUICK_START.md +149 -0
- package/README.md +53 -149
- package/dist/build.common.js +28 -22
- package/dist/build.esm.js +28 -22
- package/docs/package-lock.json +1243 -35
- package/docs/package.json +1 -1
- package/docs/src/authentication-overview.hbs +14 -0
- package/docs/src/database-class.hbs +1 -1
- package/docs/src/index.hbs +2 -2
- package/docs/src/install.hbs +12 -12
- package/docs/src/layout/default.hbs +145 -23
- package/docs/src/model-class.hbs +28 -28
- package/docs/src/rekognition-class.hbs +17 -17
- package/docs/src/ses-class.hbs +13 -13
- package/docs/src/view.hbs +66 -66
- package/docs/v1/authentication-overview.html +158 -22
- package/docs/v1/base-configuration.html +144 -22
- package/docs/v1/bounding-box-interface.html +144 -22
- package/docs/v1/changelog.html +144 -22
- package/docs/v1/css/app.css +21 -0
- package/docs/v1/database-class.html +145 -23
- package/docs/v1/download/templates/cjs/database.js +3 -3
- package/docs/v1/download/templates/esm/database.js +3 -3
- package/docs/v1/environment-variable.html +144 -22
- package/docs/v1/face-details-emotions-interface.html +144 -22
- package/docs/v1/face-details-interface.html +144 -22
- package/docs/v1/face-match-interface.html +144 -22
- package/docs/v1/facial-recognition-overview.html +144 -22
- package/docs/v1/index-face-details-interface.html +144 -22
- package/docs/v1/index.html +146 -24
- package/docs/v1/install.html +156 -34
- package/docs/v1/login-procedure.html +144 -22
- package/docs/v1/logout-procedure.html +144 -22
- package/docs/v1/media/logos/default-dark.svg +1 -0
- package/docs/v1/media/logos/default-small-dark.svg +1 -0
- package/docs/v1/media/logos/default-small.svg +1 -1
- package/docs/v1/media/logos/default.svg +1 -1
- package/docs/v1/media/logos/favicon.svg +1 -1
- package/docs/v1/media/screencaps/login.jpg +0 -0
- package/docs/v1/media/screencaps/personal.jpg +0 -0
- package/docs/v1/media/screencaps/user-editing.jpg +0 -0
- package/docs/v1/media/screencaps/users.jpg +0 -0
- package/docs/v1/model-class.html +172 -50
- package/docs/v1/model-overview.html +144 -22
- package/docs/v1/rekognition-class.html +161 -39
- package/docs/v1/routing.html +144 -22
- package/docs/v1/ses-class.html +157 -35
- package/docs/v1/ses-overview.html +144 -22
- package/docs/v1/view.html +210 -88
- package/package.json +14 -19
- package/screencaps/login.jpg +0 -0
- package/screencaps/personal.jpg +0 -0
- package/screencaps/user-editing.jpg +0 -0
- package/screencaps/users.jpg +0 -0
- package/types/interfaces/AuthenticationConfig.d.ts +13 -0
- package/types/interfaces/BasicConfig.d.ts +1 -0
- package/types/interfaces/ViewConfig.d.ts +1 -0
- package/types/services/Authentication.d.ts +1 -0
- package/docs/v1/css/docs.css +0 -37
- package/docs/v1/media/screencaps/login.png +0 -0
- package/docs/v1/media/screencaps/personal-editing.png +0 -0
- package/docs/v1/media/screencaps/personal.png +0 -0
- package/docs/v1/media/screencaps/user-editing.png +0 -0
- package/docs/v1/media/screencaps/users.png +0 -0
- package/hero.svg +0 -1
- package/screencaps/login.png +0 -0
- package/screencaps/personal-editing.png +0 -0
- package/screencaps/personal.png +0 -0
- package/screencaps/user-editing.png +0 -0
- package/screencaps/users.png +0 -0
- /package/docs/{compile-documentation.js → generate-documentation.js} +0 -0
- /package/docs/v1/js/{docs.js → app.js} +0 -0
package/docs/src/model-class.hbs
CHANGED
|
@@ -635,7 +635,7 @@ module.exports = class extends Model {
|
|
|
635
635
|
This is an alias for the <code>"sequelize.Sequelize.transaction()"</code> method.<br>
|
|
636
636
|
See <a href="https://sequelize.org/api/v6/class/src/sequelize.js~sequelize#instance-method-transaction" class="fw-semibold" target="_blank">here</a> for details.
|
|
637
637
|
<!--begin::Heading-->
|
|
638
|
-
<
|
|
638
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
639
639
|
<!--end::Heading-->
|
|
640
640
|
<!--begin::Parameters-->
|
|
641
641
|
<ul>
|
|
@@ -647,7 +647,7 @@ module.exports = class extends Model {
|
|
|
647
647
|
</ul>
|
|
648
648
|
<!--end::Parameters-->
|
|
649
649
|
<!--begin::Heading-->
|
|
650
|
-
<
|
|
650
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
651
651
|
<!--end::Heading-->
|
|
652
652
|
<!--begin::Return-->
|
|
653
653
|
<ul class="list-style-none">
|
|
@@ -748,7 +748,7 @@ try {
|
|
|
748
748
|
Builds a new model instance and calls <code>save</code> on it.<br>
|
|
749
749
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-create" class="fw-semibold" target="_blank">here</a> for details.
|
|
750
750
|
<!--begin::Heading-->
|
|
751
|
-
<
|
|
751
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
752
752
|
<!--end::Heading-->
|
|
753
753
|
<!--begin::Parameters-->
|
|
754
754
|
<ul>
|
|
@@ -765,7 +765,7 @@ try {
|
|
|
765
765
|
</ul>
|
|
766
766
|
<!--end::Parameters-->
|
|
767
767
|
<!--begin::Heading-->
|
|
768
|
-
<
|
|
768
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
769
769
|
<!--end::Heading-->
|
|
770
770
|
<!--begin::Return-->
|
|
771
771
|
<ul class="list-style-none">
|
|
@@ -811,7 +811,7 @@ await BookModel.create({title: 'Beautiful'});</code></pre>
|
|
|
811
811
|
Validates this instance, and if the validation passes, persists it to the database.<br>
|
|
812
812
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#instance-method-save" class="fw-semibold" target="_blank">here</a> for details.
|
|
813
813
|
<!--begin::Heading-->
|
|
814
|
-
<
|
|
814
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
815
815
|
<!--end::Heading-->
|
|
816
816
|
<!--begin::Parameters-->
|
|
817
817
|
<ul>
|
|
@@ -823,7 +823,7 @@ await BookModel.create({title: 'Beautiful'});</code></pre>
|
|
|
823
823
|
</ul>
|
|
824
824
|
<!--end::Parameters-->
|
|
825
825
|
<!--begin::Heading-->
|
|
826
|
-
<
|
|
826
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
827
827
|
<!--end::Heading-->
|
|
828
828
|
<!--begin::Return-->
|
|
829
829
|
<ul class="list-style-none">
|
|
@@ -880,7 +880,7 @@ await book.save();</code></pre>
|
|
|
880
880
|
Returns the first instance found, or null if none can be found.<br>
|
|
881
881
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-findOne" class="fw-semibold" target="_blank">here</a> for details.
|
|
882
882
|
<!--begin::Heading-->
|
|
883
|
-
<
|
|
883
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
884
884
|
<!--end::Heading-->
|
|
885
885
|
<!--begin::Parameters-->
|
|
886
886
|
<ul>
|
|
@@ -892,7 +892,7 @@ await book.save();</code></pre>
|
|
|
892
892
|
</ul>
|
|
893
893
|
<!--end::Parameters-->
|
|
894
894
|
<!--begin::Heading-->
|
|
895
|
-
<
|
|
895
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
896
896
|
<!--end::Heading-->
|
|
897
897
|
<!--begin::Return-->
|
|
898
898
|
<ul class="list-style-none">
|
|
@@ -938,7 +938,7 @@ await BookModel.findOne();</code></pre>
|
|
|
938
938
|
Search for multiple instances.<br>
|
|
939
939
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-findAll" class="fw-semibold" target="_blank">here</a> for details.
|
|
940
940
|
<!--begin::Heading-->
|
|
941
|
-
<
|
|
941
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
942
942
|
<!--end::Heading-->
|
|
943
943
|
<!--begin::Parameters-->
|
|
944
944
|
<ul>
|
|
@@ -950,7 +950,7 @@ await BookModel.findOne();</code></pre>
|
|
|
950
950
|
</ul>
|
|
951
951
|
<!--end::Parameters-->
|
|
952
952
|
<!--begin::Heading-->
|
|
953
|
-
<
|
|
953
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
954
954
|
<!--end::Heading-->
|
|
955
955
|
<!--begin::Return-->
|
|
956
956
|
<ul class="list-style-none">
|
|
@@ -1008,7 +1008,7 @@ await BookModel.findAll({
|
|
|
1008
1008
|
Count the number of records matching the provided where clause.<br>
|
|
1009
1009
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-count" class="fw-semibold" target="_blank">here</a> for details.
|
|
1010
1010
|
<!--begin::Heading-->
|
|
1011
|
-
<
|
|
1011
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1012
1012
|
<!--end::Heading-->
|
|
1013
1013
|
<!--begin::Parameters-->
|
|
1014
1014
|
<ul>
|
|
@@ -1020,7 +1020,7 @@ await BookModel.findAll({
|
|
|
1020
1020
|
</ul>
|
|
1021
1021
|
<!--end::Parameters-->
|
|
1022
1022
|
<!--begin::Heading-->
|
|
1023
|
-
<
|
|
1023
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1024
1024
|
<!--end::Heading-->
|
|
1025
1025
|
<!--begin::Return-->
|
|
1026
1026
|
<ul class="list-style-none">
|
|
@@ -1066,7 +1066,7 @@ await BookModel.count();</code></pre>
|
|
|
1066
1066
|
Update multiple instances that match the where options.<br>
|
|
1067
1067
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-update" class="fw-semibold" target="_blank">here</a> for details.
|
|
1068
1068
|
<!--begin::Heading-->
|
|
1069
|
-
<
|
|
1069
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1070
1070
|
<!--end::Heading-->
|
|
1071
1071
|
<!--begin::Parameters-->
|
|
1072
1072
|
<ul>
|
|
@@ -1083,7 +1083,7 @@ await BookModel.count();</code></pre>
|
|
|
1083
1083
|
</ul>
|
|
1084
1084
|
<!--end::Parameters-->
|
|
1085
1085
|
<!--begin::Heading-->
|
|
1086
|
-
<
|
|
1086
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1087
1087
|
<!--end::Heading-->
|
|
1088
1088
|
<!--begin::Return-->
|
|
1089
1089
|
<ul class="list-style-none">
|
|
@@ -1132,7 +1132,7 @@ await BookModel.update({title: 'Lose Yourself'}, {where: {id: 1}});</c
|
|
|
1132
1132
|
Otherwise you may experience a unique constraint violation, because sequelize fails to identify the row that should be updated.<br>
|
|
1133
1133
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-upsert" class="fw-semibold" target="_blank">here</a> for details.
|
|
1134
1134
|
<!--begin::Heading-->
|
|
1135
|
-
<
|
|
1135
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1136
1136
|
<!--end::Heading-->
|
|
1137
1137
|
<!--begin::Parameters-->
|
|
1138
1138
|
<ul>
|
|
@@ -1149,7 +1149,7 @@ await BookModel.update({title: 'Lose Yourself'}, {where: {id: 1}});</c
|
|
|
1149
1149
|
</ul>
|
|
1150
1150
|
<!--end::Parameters-->
|
|
1151
1151
|
<!--begin::Heading-->
|
|
1152
|
-
<
|
|
1152
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1153
1153
|
<!--end::Heading-->
|
|
1154
1154
|
<!--begin::Return-->
|
|
1155
1155
|
<ul class="list-style-none">
|
|
@@ -1195,7 +1195,7 @@ await BookModel.upsert({title: 'Lose Yourself'});</code></pre>
|
|
|
1195
1195
|
Delete multiple instances, or set their deletedAt timestamp to the current time if paranoid is enabled.<br>
|
|
1196
1196
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-destroy" class="fw-semibold" target="_blank">here</a> for details.
|
|
1197
1197
|
<!--begin::Heading-->
|
|
1198
|
-
<
|
|
1198
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1199
1199
|
<!--end::Heading-->
|
|
1200
1200
|
<!--begin::Parameters-->
|
|
1201
1201
|
<ul>
|
|
@@ -1207,7 +1207,7 @@ await BookModel.upsert({title: 'Lose Yourself'});</code></pre>
|
|
|
1207
1207
|
</ul>
|
|
1208
1208
|
<!--end::Parameters-->
|
|
1209
1209
|
<!--begin::Heading-->
|
|
1210
|
-
<
|
|
1210
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1211
1211
|
<!--end::Heading-->
|
|
1212
1212
|
<!--begin::Return-->
|
|
1213
1213
|
<ul class="list-style-none">
|
|
@@ -1254,7 +1254,7 @@ await BookModel.destroy({where: {id :1}});</code></pre>
|
|
|
1254
1254
|
The foreign key is added on the target.<br>
|
|
1255
1255
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-hasOne" class="fw-semibold" target="_blank">here</a> for details.
|
|
1256
1256
|
<!--begin::Heading-->
|
|
1257
|
-
<
|
|
1257
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1258
1258
|
<!--end::Heading-->
|
|
1259
1259
|
<!--begin::Parameters-->
|
|
1260
1260
|
<ul>
|
|
@@ -1271,7 +1271,7 @@ await BookModel.destroy({where: {id :1}});</code></pre>
|
|
|
1271
1271
|
</ul>
|
|
1272
1272
|
<!--end::Parameters-->
|
|
1273
1273
|
<!--begin::Heading-->
|
|
1274
|
-
<
|
|
1274
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1275
1275
|
<!--end::Heading-->
|
|
1276
1276
|
<!--begin::Return-->
|
|
1277
1277
|
<ul class="list-style-none">
|
|
@@ -1434,7 +1434,7 @@ await UserModel.findAll({
|
|
|
1434
1434
|
The foreign key is added on the source.<br>
|
|
1435
1435
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-belongsTo" class="fw-semibold" target="_blank">here</a> for details.
|
|
1436
1436
|
<!--begin::Heading-->
|
|
1437
|
-
<
|
|
1437
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1438
1438
|
<!--end::Heading-->
|
|
1439
1439
|
<!--begin::Parameters-->
|
|
1440
1440
|
<ul>
|
|
@@ -1451,7 +1451,7 @@ await UserModel.findAll({
|
|
|
1451
1451
|
</ul>
|
|
1452
1452
|
<!--end::Parameters-->
|
|
1453
1453
|
<!--begin::Heading-->
|
|
1454
|
-
<
|
|
1454
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1455
1455
|
<!--end::Heading-->
|
|
1456
1456
|
<!--begin::Return-->
|
|
1457
1457
|
<ul class="list-style-none">
|
|
@@ -1614,7 +1614,7 @@ await ProfileModel.findAll({
|
|
|
1614
1614
|
The foreign key is added on the target.<br>
|
|
1615
1615
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-hasMany" class="fw-semibold" target="_blank">here</a> for details.
|
|
1616
1616
|
<!--begin::Heading-->
|
|
1617
|
-
<
|
|
1617
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1618
1618
|
<!--end::Heading-->
|
|
1619
1619
|
<!--begin::Parameters-->
|
|
1620
1620
|
<ul>
|
|
@@ -1631,7 +1631,7 @@ await ProfileModel.findAll({
|
|
|
1631
1631
|
</ul>
|
|
1632
1632
|
<!--end::Parameters-->
|
|
1633
1633
|
<!--begin::Heading-->
|
|
1634
|
-
<
|
|
1634
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1635
1635
|
<!--end::Heading-->
|
|
1636
1636
|
<!--begin::Return-->
|
|
1637
1637
|
<ul class="list-style-none">
|
|
@@ -1800,7 +1800,7 @@ await UserModel.findAll({
|
|
|
1800
1800
|
Defining through is required.<br>
|
|
1801
1801
|
See <a href="https://sequelize.org/api/v6/class/src/model.js~model#static-method-belongsToMany" class="fw-semibold" target="_blank">here</a> for details.
|
|
1802
1802
|
<!--begin::Heading-->
|
|
1803
|
-
<
|
|
1803
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1804
1804
|
<!--end::Heading-->
|
|
1805
1805
|
<!--begin::Parameters-->
|
|
1806
1806
|
<ul>
|
|
@@ -1817,7 +1817,7 @@ await UserModel.findAll({
|
|
|
1817
1817
|
</ul>
|
|
1818
1818
|
<!--end::Parameters-->
|
|
1819
1819
|
<!--begin::Heading-->
|
|
1820
|
-
<
|
|
1820
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1821
1821
|
<!--end::Heading-->
|
|
1822
1822
|
<!--begin::Return-->
|
|
1823
1823
|
<ul class="list-style-none">
|
|
@@ -1988,7 +1988,7 @@ await UserModel.findAll({
|
|
|
1988
1988
|
This is an alias for the <code>"sequelize.Sequelize.query()"</code> method.<br>
|
|
1989
1989
|
See <a href="https://sequelize.org/api/v6/class/src/sequelize.js~sequelize#instance-method-query" class="fw-semibold" target="_blank">here</a> for details.
|
|
1990
1990
|
<!--begin::Heading-->
|
|
1991
|
-
<
|
|
1991
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1992
1992
|
<!--end::Heading-->
|
|
1993
1993
|
<!--begin::Parameters-->
|
|
1994
1994
|
<ul>
|
|
@@ -2005,7 +2005,7 @@ await UserModel.findAll({
|
|
|
2005
2005
|
</ul>
|
|
2006
2006
|
<!--end::Parameters-->
|
|
2007
2007
|
<!--begin::Heading-->
|
|
2008
|
-
<
|
|
2008
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
2009
2009
|
<!--end::Heading-->
|
|
2010
2010
|
<!--begin::Return-->
|
|
2011
2011
|
<ul class="list-style-none">
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<td>
|
|
67
67
|
Constructs a rekognition client object.
|
|
68
68
|
<!--begin::Heading-->
|
|
69
|
-
<
|
|
69
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
70
70
|
<!--end::Heading-->
|
|
71
71
|
<!--begin::Parameters-->
|
|
72
72
|
<ul>
|
|
@@ -149,7 +149,7 @@ const client = new sweet.services.AWSRekognitionClient({
|
|
|
149
149
|
Detects faces within an image that is provided as input.<br>
|
|
150
150
|
For each face detected, the operation returns a bounding box of the face.
|
|
151
151
|
<!--begin::Heading-->
|
|
152
|
-
<
|
|
152
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
153
153
|
<!--end::Heading-->
|
|
154
154
|
<!--begin::Parameters-->
|
|
155
155
|
<ul>
|
|
@@ -171,7 +171,7 @@ const client = new sweet.services.AWSRekognitionClient({
|
|
|
171
171
|
</ul>
|
|
172
172
|
<!--end::Parameters-->
|
|
173
173
|
<!--begin::Heading-->
|
|
174
|
-
<
|
|
174
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
175
175
|
<!--end::Heading-->
|
|
176
176
|
<!--begin::Return-->
|
|
177
177
|
<ul class="list-style-none">
|
|
@@ -328,7 +328,7 @@ await client.detectFaces(fs.readFileSync('img.jpg'));</code></pre>
|
|
|
328
328
|
<td>
|
|
329
329
|
Compare the similarity of two faces.
|
|
330
330
|
<!--begin::Heading-->
|
|
331
|
-
<
|
|
331
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
332
332
|
<!--end::Heading-->
|
|
333
333
|
<!--begin::Parameters-->
|
|
334
334
|
<ul>
|
|
@@ -345,7 +345,7 @@ await client.detectFaces(fs.readFileSync('img.jpg'));</code></pre>
|
|
|
345
345
|
</ul>
|
|
346
346
|
<!--end::Parameters-->
|
|
347
347
|
<!--begin::Heading-->
|
|
348
|
-
<
|
|
348
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
349
349
|
<!--end::Heading-->
|
|
350
350
|
<!--begin::Return-->
|
|
351
351
|
<ul class="list-style-none">
|
|
@@ -449,7 +449,7 @@ await client.compareFaces(fs.readFileSync('img1.jpg'), fs.readFileSync
|
|
|
449
449
|
</div>
|
|
450
450
|
<!--end::Block-->
|
|
451
451
|
<!--begin::Heading-->
|
|
452
|
-
<
|
|
452
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
453
453
|
<!--end::Heading-->
|
|
454
454
|
<!--begin::Parameters-->
|
|
455
455
|
<ul>
|
|
@@ -522,7 +522,7 @@ await client.createCollection('MyCollection');</code></pre>
|
|
|
522
522
|
<td>
|
|
523
523
|
Returns list of collection IDs.
|
|
524
524
|
<!--begin::Heading-->
|
|
525
|
-
<
|
|
525
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
526
526
|
<!--end::Heading-->
|
|
527
527
|
<!--begin::Return-->
|
|
528
528
|
<ul class="list-style-none">
|
|
@@ -601,7 +601,7 @@ await client.listCollections();</code></pre>
|
|
|
601
601
|
Deletes the specified collection.<br>
|
|
602
602
|
Note that this operation removes all faces in the collection.
|
|
603
603
|
<!--begin::Heading-->
|
|
604
|
-
<
|
|
604
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
605
605
|
<!--end::Heading-->
|
|
606
606
|
<!--begin::Parameters-->
|
|
607
607
|
<ul>
|
|
@@ -613,7 +613,7 @@ await client.listCollections();</code></pre>
|
|
|
613
613
|
</ul>
|
|
614
614
|
<!--end::Parameters-->
|
|
615
615
|
<!--begin::Heading-->
|
|
616
|
-
<
|
|
616
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
617
617
|
<!--end::Heading-->
|
|
618
618
|
<!--begin::Return-->
|
|
619
619
|
<ul class="list-style-none">
|
|
@@ -700,7 +700,7 @@ await client.deleteCollection('MyCollection');</code></pre>
|
|
|
700
700
|
</div>
|
|
701
701
|
<!--end::Block-->
|
|
702
702
|
<!--begin::Heading-->
|
|
703
|
-
<
|
|
703
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
704
704
|
<!--end::Heading-->
|
|
705
705
|
<!--begin::Parameters-->
|
|
706
706
|
<ul>
|
|
@@ -736,7 +736,7 @@ await client.deleteCollection('MyCollection');</code></pre>
|
|
|
736
736
|
</ul>
|
|
737
737
|
<!--end::Parameters-->
|
|
738
738
|
<!--begin::Heading-->
|
|
739
|
-
<
|
|
739
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
740
740
|
<!--end::Heading-->
|
|
741
741
|
<!--begin::Return-->
|
|
742
742
|
<ul class="list-style-none">
|
|
@@ -869,7 +869,7 @@ await client.indexFace('MyCollection', fs.readFileSync('img.jpg&#
|
|
|
869
869
|
For a given input image, first detects the largest face in the image, and then searches the specified collection for matching faces.<br>
|
|
870
870
|
The operation compares the features of the input face with faces in the specified collection.
|
|
871
871
|
<!--begin::Heading-->
|
|
872
|
-
<
|
|
872
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
873
873
|
<!--end::Heading-->
|
|
874
874
|
<!--begin::Parameters-->
|
|
875
875
|
<ul>
|
|
@@ -913,7 +913,7 @@ await client.indexFace('MyCollection', fs.readFileSync('img.jpg&#
|
|
|
913
913
|
</ul>
|
|
914
914
|
<!--end::Parameters-->
|
|
915
915
|
<!--begin::Heading-->
|
|
916
|
-
<
|
|
916
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
917
917
|
<!--end::Heading-->
|
|
918
918
|
<!--begin::Return-->
|
|
919
919
|
<ul class="list-style-none">
|
|
@@ -1063,7 +1063,7 @@ await client.searchFaces('MyCollection', fs.readFileSync('img.jpg
|
|
|
1063
1063
|
Returns metadata for faces in the specified collection.<br>
|
|
1064
1064
|
This metadata includes information such as the bounding box coordinates, and face ID.
|
|
1065
1065
|
<!--begin::Heading-->
|
|
1066
|
-
<
|
|
1066
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1067
1067
|
<!--end::Heading-->
|
|
1068
1068
|
<!--begin::Parameters-->
|
|
1069
1069
|
<ul>
|
|
@@ -1080,7 +1080,7 @@ await client.searchFaces('MyCollection', fs.readFileSync('img.jpg
|
|
|
1080
1080
|
</ul>
|
|
1081
1081
|
<!--end::Parameters-->
|
|
1082
1082
|
<!--begin::Heading-->
|
|
1083
|
-
<
|
|
1083
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1084
1084
|
<!--end::Heading-->
|
|
1085
1085
|
<!--begin::Return-->
|
|
1086
1086
|
<ul class="list-style-none">
|
|
@@ -1176,7 +1176,7 @@ console.log(result);</code></pre>
|
|
|
1176
1176
|
Deletes faces from a collection.<br>
|
|
1177
1177
|
You specify a collection ID and an array of face IDs to remove from the collection.
|
|
1178
1178
|
<!--begin::Heading-->
|
|
1179
|
-
<
|
|
1179
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
1180
1180
|
<!--end::Heading-->
|
|
1181
1181
|
<!--begin::Parameters-->
|
|
1182
1182
|
<ul>
|
|
@@ -1193,7 +1193,7 @@ console.log(result);</code></pre>
|
|
|
1193
1193
|
</ul>
|
|
1194
1194
|
<!--end::Parameters-->
|
|
1195
1195
|
<!--begin::Heading-->
|
|
1196
|
-
<
|
|
1196
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
1197
1197
|
<!--end::Heading-->
|
|
1198
1198
|
<!--begin::Return-->
|
|
1199
1199
|
<ul class="list-style-none">
|
package/docs/src/ses-class.hbs
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<td>
|
|
67
67
|
Constructs a SES client object.
|
|
68
68
|
<!--begin::Heading-->
|
|
69
|
-
<
|
|
69
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
70
70
|
<!--end::Heading-->
|
|
71
71
|
<!--begin::Parameters-->
|
|
72
72
|
<ul>
|
|
@@ -150,7 +150,7 @@ const client = new sweet.services.AWSSesClient({
|
|
|
150
150
|
<td>
|
|
151
151
|
Send email.
|
|
152
152
|
<!--begin::Heading-->
|
|
153
|
-
<
|
|
153
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
154
154
|
<!--end::Heading-->
|
|
155
155
|
<!--begin::Parameters-->
|
|
156
156
|
<ul>
|
|
@@ -162,7 +162,7 @@ const client = new sweet.services.AWSSesClient({
|
|
|
162
162
|
</ul>
|
|
163
163
|
<!--end::Parameters-->
|
|
164
164
|
<!--begin::Heading-->
|
|
165
|
-
<
|
|
165
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
166
166
|
<!--end::Heading-->
|
|
167
167
|
<!--begin::Return-->
|
|
168
168
|
<ul class="list-style-none">
|
|
@@ -261,7 +261,7 @@ await client
|
|
|
261
261
|
<td>
|
|
262
262
|
Set the sender's email address.
|
|
263
263
|
<!--begin::Heading-->
|
|
264
|
-
<
|
|
264
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
265
265
|
<!--end::Heading-->
|
|
266
266
|
<!--begin::Parameters-->
|
|
267
267
|
<ul>
|
|
@@ -278,7 +278,7 @@ await client
|
|
|
278
278
|
</ul>
|
|
279
279
|
<!--end::Parameters-->
|
|
280
280
|
<!--begin::Heading-->
|
|
281
|
-
<
|
|
281
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
282
282
|
<!--end::Heading-->
|
|
283
283
|
<!--begin::Return-->
|
|
284
284
|
<ul class="list-style-none">
|
|
@@ -292,7 +292,7 @@ await client
|
|
|
292
292
|
<td>
|
|
293
293
|
Set the destination email address.
|
|
294
294
|
<!--begin::Heading-->
|
|
295
|
-
<
|
|
295
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
296
296
|
<!--end::Heading-->
|
|
297
297
|
<!--begin::Parameters-->
|
|
298
298
|
<ul>
|
|
@@ -304,7 +304,7 @@ await client
|
|
|
304
304
|
</ul>
|
|
305
305
|
<!--end::Parameters-->
|
|
306
306
|
<!--begin::Heading-->
|
|
307
|
-
<
|
|
307
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
308
308
|
<!--end::Heading-->
|
|
309
309
|
<!--begin::Return-->
|
|
310
310
|
<ul class="list-style-none">
|
|
@@ -318,7 +318,7 @@ await client
|
|
|
318
318
|
<td>
|
|
319
319
|
Set CC email address.
|
|
320
320
|
<!--begin::Heading-->
|
|
321
|
-
<
|
|
321
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
322
322
|
<!--end::Heading-->
|
|
323
323
|
<!--begin::Parameters-->
|
|
324
324
|
<ul>
|
|
@@ -330,7 +330,7 @@ await client
|
|
|
330
330
|
</ul>
|
|
331
331
|
<!--end::Parameters-->
|
|
332
332
|
<!--begin::Heading-->
|
|
333
|
-
<
|
|
333
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
334
334
|
<!--end::Heading-->
|
|
335
335
|
<!--begin::Return-->
|
|
336
336
|
<ul class="list-style-none">
|
|
@@ -344,7 +344,7 @@ await client
|
|
|
344
344
|
<td>
|
|
345
345
|
Set the email subject.
|
|
346
346
|
<!--begin::Heading-->
|
|
347
|
-
<
|
|
347
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
348
348
|
<!--end::Heading-->
|
|
349
349
|
<!--begin::Parameters-->
|
|
350
350
|
<ul>
|
|
@@ -356,7 +356,7 @@ await client
|
|
|
356
356
|
</ul>
|
|
357
357
|
<!--end::Parameters-->
|
|
358
358
|
<!--begin::Heading-->
|
|
359
|
-
<
|
|
359
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
360
360
|
<!--end::Heading-->
|
|
361
361
|
<!--begin::Return-->
|
|
362
362
|
<ul class="list-style-none">
|
|
@@ -370,7 +370,7 @@ await client
|
|
|
370
370
|
<td>
|
|
371
371
|
Set the body of the email.
|
|
372
372
|
<!--begin::Heading-->
|
|
373
|
-
<
|
|
373
|
+
<h5 class="py-2 mb-0">Parameters:</h5>
|
|
374
374
|
<!--end::Heading-->
|
|
375
375
|
<!--begin::Parameters-->
|
|
376
376
|
<ul>
|
|
@@ -387,7 +387,7 @@ await client
|
|
|
387
387
|
</ul>
|
|
388
388
|
<!--end::Parameters-->
|
|
389
389
|
<!--begin::Heading-->
|
|
390
|
-
<
|
|
390
|
+
<h5 class="py-2 mb-0">Return:</h5>
|
|
391
391
|
<!--end::Heading-->
|
|
392
392
|
<!--begin::Return-->
|
|
393
393
|
<ul class="list-style-none">
|