lemon-core 2.2.17 → 3.0.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/README.md +3 -1
- package/dist/common/test-helper.js +1 -1
- package/dist/common/test-helper.js.map +1 -1
- package/dist/controllers/dummy-controller.js.map +1 -1
- package/dist/cores/api-service.js.map +1 -1
- package/dist/cores/aws/aws-s3-service.d.ts +24 -46
- package/dist/cores/aws/aws-s3-service.js +103 -223
- package/dist/cores/aws/aws-s3-service.js.map +1 -1
- package/dist/cores/aws/aws-sns-service.js +3 -3
- package/dist/cores/aws/aws-sns-service.js.map +1 -1
- package/dist/cores/core-types.d.ts +98 -2
- package/dist/cores/core-types.js +1 -0
- package/dist/cores/core-types.js.map +1 -1
- package/dist/cores/dynamo-service.js +2 -2
- package/dist/cores/dynamo-service.js.map +1 -1
- package/dist/cores/elastic6-query-service.d.ts +42 -9
- package/dist/cores/elastic6-query-service.js +144 -127
- package/dist/cores/elastic6-query-service.js.map +1 -1
- package/dist/cores/elastic6-service.d.ts +144 -57
- package/dist/cores/elastic6-service.js +506 -321
- package/dist/cores/elastic6-service.js.map +1 -1
- package/dist/cores/lambda/lambda-cognito-handler.js.map +1 -1
- package/dist/cores/lambda/lambda-cron-handler.js.map +1 -1
- package/dist/cores/lambda/lambda-dynamo-stream-handler.js +3 -3
- package/dist/cores/lambda/lambda-dynamo-stream-handler.js.map +1 -1
- package/dist/cores/lambda/lambda-notification-handler.js.map +1 -1
- package/dist/cores/lambda/lambda-sns-handler.js.map +1 -1
- package/dist/cores/lambda/lambda-web-handler.js +2 -4
- package/dist/cores/lambda/lambda-web-handler.js.map +1 -1
- package/dist/cores/lambda/lambda-wss-handler.js.map +1 -1
- package/dist/cores/model-manager.d.ts +4 -1
- package/dist/cores/model-manager.js +9 -4
- package/dist/cores/model-manager.js.map +1 -1
- package/dist/cores/protocol/protocol-service.d.ts +1 -2
- package/dist/cores/protocol/protocol-service.js +5 -3
- package/dist/cores/protocol/protocol-service.js.map +1 -1
- package/dist/engine/builder.d.ts +1 -0
- package/dist/engine/builder.js +1 -1
- package/dist/engine/builder.js.map +1 -1
- package/dist/engine/engine.js +2 -1
- package/dist/engine/engine.js.map +1 -1
- package/dist/engine/index.d.ts +0 -1
- package/dist/engine/index.js +2 -4
- package/dist/engine/index.js.map +1 -1
- package/dist/engine/types.d.ts +0 -4
- package/dist/engine/types.js.map +1 -1
- package/dist/engine/utilities.d.ts +5 -1
- package/dist/engine/utilities.js +126 -11
- package/dist/engine/utilities.js.map +1 -1
- package/dist/tools/express.js +0 -3
- package/dist/tools/express.js.map +1 -1
- package/package.json +7 -13
- package/CHANGELOG.md +0 -61
- package/dist/docs/assets/css/main.css +0 -2321
- package/dist/docs/assets/images/icons.png +0 -0
- package/dist/docs/assets/images/icons@2x.png +0 -0
- package/dist/docs/assets/images/widgets.png +0 -0
- package/dist/docs/assets/images/widgets@2x.png +0 -0
- package/dist/docs/assets/js/main.js +0 -1
- package/dist/docs/assets/js/search.js +0 -3
- package/dist/docs/classes/abstractmanager.html +0 -1034
- package/dist/docs/classes/apiproxyclient.html +0 -509
- package/dist/docs/classes/apiservice.html +0 -805
- package/dist/docs/classes/awskmsservice.html +0 -468
- package/dist/docs/classes/awsmodule.html +0 -353
- package/dist/docs/classes/awss3service.html +0 -689
- package/dist/docs/classes/awssnsservice.html +0 -543
- package/dist/docs/classes/awssqsservice.html +0 -517
- package/dist/docs/classes/cacheservice.html +0 -996
- package/dist/docs/classes/configmodule.html +0 -311
- package/dist/docs/classes/dummycacheservice.html +0 -1000
- package/dist/docs/classes/dummycontroller.html +0 -709
- package/dist/docs/classes/dummydynamoservice.html +0 -915
- package/dist/docs/classes/dummyelastic6service.html +0 -791
- package/dist/docs/classes/dummyredisstorageservice.html +0 -804
- package/dist/docs/classes/dummystoragemaker.html +0 -383
- package/dist/docs/classes/dummystorageservice.html +0 -592
- package/dist/docs/classes/dynamoqueryservice.html +0 -413
- package/dist/docs/classes/dynamoscanservice.html +0 -358
- package/dist/docs/classes/dynamoservice.html +0 -844
- package/dist/docs/classes/dynamostorageservice.html +0 -623
- package/dist/docs/classes/elastic6queryservice.html +0 -458
- package/dist/docs/classes/elastic6service.html +0 -804
- package/dist/docs/classes/file.html +0 -579
- package/dist/docs/classes/generalapicontroller.html +0 -877
- package/dist/docs/classes/generalcontroller.html +0 -454
- package/dist/docs/classes/generalcontrollerlocal.html +0 -499
- package/dist/docs/classes/generalcontrollerlocal2.html +0 -523
- package/dist/docs/classes/generalkeymaker.html +0 -335
- package/dist/docs/classes/generalmodelfilter.html +0 -529
- package/dist/docs/classes/generalwebcontroller.html +0 -580
- package/dist/docs/classes/hangulservice.html +0 -636
- package/dist/docs/classes/httpstorageservice.html +0 -539
- package/dist/docs/classes/lambdacognitohandler.html +0 -355
- package/dist/docs/classes/lambdacronhandler.html +0 -390
- package/dist/docs/classes/lambdacronhandlerlocal.html +0 -371
- package/dist/docs/classes/lambdadynamostreamhandler.html +0 -472
- package/dist/docs/classes/lambdadynamostreamhandlerlocal.html +0 -455
- package/dist/docs/classes/lambdahandler.html +0 -479
- package/dist/docs/classes/lambdahandlerlocal.html +0 -472
- package/dist/docs/classes/lambdamodule.html +0 -433
- package/dist/docs/classes/lambdanotificationhandler.html +0 -474
- package/dist/docs/classes/lambdanotificationhandlerlocal.html +0 -457
- package/dist/docs/classes/lambdasnshandler.html +0 -394
- package/dist/docs/classes/lambdasnshandlerlocal.html +0 -397
- package/dist/docs/classes/lambdasqshandler.html +0 -394
- package/dist/docs/classes/lambdasqshandlerlocal.html +0 -397
- package/dist/docs/classes/lambdasubhandler.html +0 -305
- package/dist/docs/classes/lambdawebhandler.html +0 -603
- package/dist/docs/classes/lambdawebhandlerlocal.html +0 -581
- package/dist/docs/classes/lambdawsshandler.html +0 -359
- package/dist/docs/classes/memcachedbackend.html +0 -900
- package/dist/docs/classes/mocksapiservice.html +0 -691
- package/dist/docs/classes/modelutil.html +0 -311
- package/dist/docs/classes/myconfigservice.html +0 -561
- package/dist/docs/classes/myconfigservicetest.html +0 -527
- package/dist/docs/classes/myconfigservicetest2.html +0 -522
- package/dist/docs/classes/mydummysqsservice.html +0 -419
- package/dist/docs/classes/myenginemodules.html +0 -357
- package/dist/docs/classes/mygeneralapicontroller.html +0 -837
- package/dist/docs/classes/mylemonwebcontroller.html +0 -356
- package/dist/docs/classes/mymodelfilter.html +0 -479
- package/dist/docs/classes/myprotocolservice.html +0 -993
- package/dist/docs/classes/myprotocolservicetest.html +0 -983
- package/dist/docs/classes/myservice.html +0 -329
- package/dist/docs/classes/mystorage.html +0 -1370
- package/dist/docs/classes/nodecachebackend.html +0 -714
- package/dist/docs/classes/protocolmodule.html +0 -311
- package/dist/docs/classes/proxystorageservice.html +0 -1441
- package/dist/docs/classes/query.html +0 -850
- package/dist/docs/classes/redisbackend.html +0 -781
- package/dist/docs/classes/redisstorageservice.html +0 -867
- package/dist/docs/classes/scan.html +0 -685
- package/dist/docs/classes/snsprotocoltransformer.html +0 -334
- package/dist/docs/classes/sqsprotocoltransformer.html +0 -334
- package/dist/docs/classes/typedstorageservice.html +0 -914
- package/dist/docs/classes/uniquefieldmanager.html +0 -477
- package/dist/docs/classes/usermanager.html +0 -919
- package/dist/docs/classes/utilities.html +0 -1914
- package/dist/docs/classes/webprotocoltransformer.html +0 -330
- package/dist/docs/globals.html +0 -7477
- package/dist/docs/index.html +0 -1511
- package/dist/docs/interfaces/accountitem.html +0 -277
- package/dist/docs/interfaces/accountmodel.html +0 -306
- package/dist/docs/interfaces/adaptiveparam.html +0 -203
- package/dist/docs/interfaces/apiheaders.html +0 -183
- package/dist/docs/interfaces/apihttpproxy.html +0 -304
- package/dist/docs/interfaces/apiserviceclient.html +0 -448
- package/dist/docs/interfaces/autocompletesearchparam.html +0 -282
- package/dist/docs/interfaces/betweencondition.html +0 -226
- package/dist/docs/interfaces/cachebackend.html +0 -714
- package/dist/docs/interfaces/cacheentry.html +0 -248
- package/dist/docs/interfaces/cacheoptions.html +0 -267
- package/dist/docs/interfaces/callbackdata.html +0 -279
- package/dist/docs/interfaces/callbackparam.html +0 -252
- package/dist/docs/interfaces/comparisoncondition.html +0 -226
- package/dist/docs/interfaces/coreconfigservice.html +0 -342
- package/dist/docs/interfaces/corekey.html +0 -278
- package/dist/docs/interfaces/corekeymakeable.html +0 -292
- package/dist/docs/interfaces/corekmsservice.html +0 -311
- package/dist/docs/interfaces/coremodel.html +0 -499
- package/dist/docs/interfaces/coremodelfilterable.html +0 -281
- package/dist/docs/interfaces/cores3service.html +0 -485
- package/dist/docs/interfaces/coreservices.html +0 -232
- package/dist/docs/interfaces/coresnsservice.html +0 -317
- package/dist/docs/interfaces/corewebcontroller.html +0 -271
- package/dist/docs/interfaces/cronevent.html +0 -223
- package/dist/docs/interfaces/cronparam.html +0 -212
- package/dist/docs/interfaces/dynamooption.html +0 -254
- package/dist/docs/interfaces/dynamoqueryresult.html +0 -244
- package/dist/docs/interfaces/dynamoscanresult.html +0 -244
- package/dist/docs/interfaces/dynamosimplequeriable.html +0 -308
- package/dist/docs/interfaces/dynamosimplescannable.html +0 -255
- package/dist/docs/interfaces/dynamostreambody.html +0 -268
- package/dist/docs/interfaces/dynamostreamcallback.html +0 -209
- package/dist/docs/interfaces/dynamostreamfilter.html +0 -218
- package/dist/docs/interfaces/dynamostreamparam.html +0 -240
- package/dist/docs/interfaces/elastic6item.html +0 -221
- package/dist/docs/interfaces/elastic6option.html +0 -275
- package/dist/docs/interfaces/elastic6simplequeriable.html +0 -284
- package/dist/docs/interfaces/engineconsole.html +0 -292
- package/dist/docs/interfaces/enginecore.html +0 -344
- package/dist/docs/interfaces/enginemodule.html +0 -269
- package/dist/docs/interfaces/enginemodules.html +0 -316
- package/dist/docs/interfaces/engineoption.html +0 -244
- package/dist/docs/interfaces/enginescope.html +0 -220
- package/dist/docs/interfaces/existencecondition.html +0 -212
- package/dist/docs/interfaces/filter.html +0 -253
- package/dist/docs/interfaces/generalfuntion.html +0 -207
- package/dist/docs/interfaces/generalitem.html +0 -212
- package/dist/docs/interfaces/handlermap.html +0 -171
- package/dist/docs/interfaces/incrementable.html +0 -190
- package/dist/docs/interfaces/internalkey.html +0 -210
- package/dist/docs/interfaces/internalmodel.html +0 -226
- package/dist/docs/interfaces/itementry.html +0 -241
- package/dist/docs/interfaces/jwtcommon.html +0 -242
- package/dist/docs/interfaces/lambdahandlerservice.html +0 -340
- package/dist/docs/interfaces/lemonengine.html +0 -593
- package/dist/docs/interfaces/metricpostbody.html +0 -220
- package/dist/docs/interfaces/mygeneral.html +0 -271
- package/dist/docs/interfaces/mymodel.html +0 -554
- package/dist/docs/interfaces/myprotocolparam.html +0 -359
- package/dist/docs/interfaces/nextcontext.html +0 -381
- package/dist/docs/interfaces/nextidentity.html +0 -325
- package/dist/docs/interfaces/nextidentityaccess.html +0 -495
- package/dist/docs/interfaces/nextidentitycognito.html +0 -422
- package/dist/docs/interfaces/notificationbody.html +0 -171
- package/dist/docs/interfaces/notificationparam.html +0 -304
- package/dist/docs/interfaces/options.html +0 -226
- package/dist/docs/interfaces/parrallelcallback.html +0 -203
- package/dist/docs/interfaces/parrallelparam.html +0 -285
- package/dist/docs/interfaces/protocolbody.html +0 -183
- package/dist/docs/interfaces/protocolparam.html +0 -336
- package/dist/docs/interfaces/protocolservice.html +0 -548
- package/dist/docs/interfaces/protocoltransformer.html +0 -295
- package/dist/docs/interfaces/proxyparams.html +0 -212
- package/dist/docs/interfaces/putobjectresult.html +0 -282
- package/dist/docs/interfaces/queryresult.html +0 -272
- package/dist/docs/interfaces/redisoptions.html +0 -248
- package/dist/docs/interfaces/simplesearchparam.html +0 -351
- package/dist/docs/interfaces/slackaction.html +0 -240
- package/dist/docs/interfaces/slackattachment.html +0 -459
- package/dist/docs/interfaces/slackpostbody.html +0 -240
- package/dist/docs/interfaces/sqsattribute.html +0 -171
- package/dist/docs/interfaces/sqsmessage.html +0 -254
- package/dist/docs/interfaces/sqsrecord.html +0 -324
- package/dist/docs/interfaces/sqsservice.html +0 -333
- package/dist/docs/interfaces/sqsstatistics.html +0 -240
- package/dist/docs/interfaces/storagemakeable.html +0 -258
- package/dist/docs/interfaces/storagemodel.html +0 -285
- package/dist/docs/interfaces/storageservice.html +0 -497
- package/dist/docs/interfaces/stringcondition.html +0 -226
- package/dist/docs/interfaces/tagset.html +0 -171
- package/dist/docs/interfaces/testmodel.html +0 -334
- package/dist/docs/interfaces/timeout.html +0 -233
- package/dist/docs/interfaces/updatable.html +0 -193
- package/dist/docs/interfaces/user.html +0 -534
|
@@ -1,919 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>UserManager | lemon-core - v2.2.17</title>
|
|
7
|
-
<meta name="description" content="">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<header>
|
|
13
|
-
<div class="tsd-page-toolbar">
|
|
14
|
-
<div class="container">
|
|
15
|
-
<div class="table-wrap">
|
|
16
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
|
|
17
|
-
<div class="field">
|
|
18
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
19
|
-
<input id="tsd-search-field" type="text" />
|
|
20
|
-
</div>
|
|
21
|
-
<ul class="results">
|
|
22
|
-
<li class="state loading">Preparing search index...</li>
|
|
23
|
-
<li class="state failure">The search index is not available</li>
|
|
24
|
-
</ul>
|
|
25
|
-
<a href="../index.html" class="title">lemon-core - v2.2.17</a>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="table-cell" id="tsd-widgets">
|
|
28
|
-
<div id="tsd-filter">
|
|
29
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
30
|
-
<div class="tsd-filter-group">
|
|
31
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
32
|
-
<span class="tsd-select-label">All</span>
|
|
33
|
-
<ul class="tsd-select-list">
|
|
34
|
-
<li data-value="public">Public</li>
|
|
35
|
-
<li data-value="protected">Public/Protected</li>
|
|
36
|
-
<li data-value="private" class="selected">All</li>
|
|
37
|
-
</ul>
|
|
38
|
-
</div>
|
|
39
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
40
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
41
|
-
<input type="checkbox" id="tsd-filter-externals" checked />
|
|
42
|
-
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
|
|
43
|
-
<input type="checkbox" id="tsd-filter-only-exported" />
|
|
44
|
-
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="tsd-page-title">
|
|
53
|
-
<div class="container">
|
|
54
|
-
<ul class="tsd-breadcrumb">
|
|
55
|
-
<li>
|
|
56
|
-
<a href="../globals.html">Globals</a>
|
|
57
|
-
</li>
|
|
58
|
-
<li>
|
|
59
|
-
<a href="usermanager.html">UserManager</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
<h1>Class UserManager</h1>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</header>
|
|
66
|
-
<div class="container container-main">
|
|
67
|
-
<div class="row">
|
|
68
|
-
<div class="col-8 col-content">
|
|
69
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
70
|
-
<h3>Hierarchy</h3>
|
|
71
|
-
<ul class="tsd-hierarchy">
|
|
72
|
-
<li>
|
|
73
|
-
<a href="abstractmanager.html" class="tsd-signature-type">AbstractManager</a><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">, </span><a href="dummystoragemaker.html" class="tsd-signature-type">DummyStorageMaker</a><span class="tsd-signature-symbol">, </span><a href="../globals.html#usertype" class="tsd-signature-type">UserType</a><span class="tsd-signature-symbol">></span>
|
|
74
|
-
<ul class="tsd-hierarchy">
|
|
75
|
-
<li>
|
|
76
|
-
<span class="target">UserManager</span>
|
|
77
|
-
</li>
|
|
78
|
-
</ul>
|
|
79
|
-
</li>
|
|
80
|
-
</ul>
|
|
81
|
-
</section>
|
|
82
|
-
<section class="tsd-panel">
|
|
83
|
-
<h3>Implements</h3>
|
|
84
|
-
<ul class="tsd-hierarchy">
|
|
85
|
-
<li><a href="../interfaces/coremodelfilterable.html" class="tsd-signature-type">CoreModelFilterable</a><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></li>
|
|
86
|
-
</ul>
|
|
87
|
-
</section>
|
|
88
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
89
|
-
<h2>Index</h2>
|
|
90
|
-
<section class="tsd-panel tsd-index-panel">
|
|
91
|
-
<div class="tsd-index-content">
|
|
92
|
-
<section class="tsd-index-section tsd-is-not-exported">
|
|
93
|
-
<h3>Constructors</h3>
|
|
94
|
-
<ul class="tsd-index-list">
|
|
95
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-not-exported"><a href="usermanager.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|
96
|
-
</ul>
|
|
97
|
-
</section>
|
|
98
|
-
<section class="tsd-index-section tsd-is-inherited tsd-is-not-exported">
|
|
99
|
-
<h3>Properties</h3>
|
|
100
|
-
<ul class="tsd-index-list">
|
|
101
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#_unique" class="tsd-kind-icon">$unique</a></li>
|
|
102
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#fields" class="tsd-kind-icon">FIELDS</a></li>
|
|
103
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#ns" class="tsd-kind-icon">NS</a></li>
|
|
104
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#parent" class="tsd-kind-icon">parent</a></li>
|
|
105
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#storage" class="tsd-kind-icon">storage</a></li>
|
|
106
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#type" class="tsd-kind-icon">type</a></li>
|
|
107
|
-
</ul>
|
|
108
|
-
</section>
|
|
109
|
-
<section class="tsd-index-section tsd-is-not-exported">
|
|
110
|
-
<h3>Accessors</h3>
|
|
111
|
-
<ul class="tsd-index-list">
|
|
112
|
-
<li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-not-exported"><a href="usermanager.html#current" class="tsd-kind-icon">current</a></li>
|
|
113
|
-
</ul>
|
|
114
|
-
</section>
|
|
115
|
-
<section class="tsd-index-section tsd-is-not-exported">
|
|
116
|
-
<h3>Methods</h3>
|
|
117
|
-
<ul class="tsd-index-list">
|
|
118
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#afterread" class="tsd-kind-icon">after<wbr>Read</a></li>
|
|
119
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#aftersave" class="tsd-kind-icon">after<wbr>Save</a></li>
|
|
120
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#afterupdate" class="tsd-kind-icon">after<wbr>Update</a></li>
|
|
121
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#beforesave" class="tsd-kind-icon">before<wbr>Save</a></li>
|
|
122
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#beforeupdate" class="tsd-kind-icon">before<wbr>Update</a></li>
|
|
123
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#delete" class="tsd-kind-icon">delete</a></li>
|
|
124
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#hello" class="tsd-kind-icon">hello</a></li>
|
|
125
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#insert" class="tsd-kind-icon">insert</a></li>
|
|
126
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-not-exported"><a href="usermanager.html#onbeforesave" class="tsd-kind-icon">on<wbr>Before<wbr>Save</a></li>
|
|
127
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#prepare" class="tsd-kind-icon">prepare</a></li>
|
|
128
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected tsd-is-not-exported"><a href="usermanager.html#preparedefault" class="tsd-kind-icon">prepare<wbr>Default</a></li>
|
|
129
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#retrieve" class="tsd-kind-icon">retrieve</a></li>
|
|
130
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#update" class="tsd-kind-icon">update</a></li>
|
|
131
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported"><a href="usermanager.html#updateorcreate" class="tsd-kind-icon">update<wbr>OrCreate</a></li>
|
|
132
|
-
</ul>
|
|
133
|
-
</section>
|
|
134
|
-
</div>
|
|
135
|
-
</section>
|
|
136
|
-
</section>
|
|
137
|
-
<section class="tsd-panel-group tsd-member-group tsd-is-not-exported">
|
|
138
|
-
<h2>Constructors</h2>
|
|
139
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-not-exported">
|
|
140
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
141
|
-
<h3>constructor</h3>
|
|
142
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-not-exported">
|
|
143
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>User<wbr>Manager<span class="tsd-signature-symbol">(</span>parent<span class="tsd-signature-symbol">: </span><a href="dummystoragemaker.html" class="tsd-signature-type">DummyStorageMaker</a>, current<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="usermanager.html" class="tsd-signature-type">UserManager</a></li>
|
|
144
|
-
</ul>
|
|
145
|
-
<ul class="tsd-descriptions">
|
|
146
|
-
<li class="tsd-description">
|
|
147
|
-
<aside class="tsd-sources">
|
|
148
|
-
<p>Overrides <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#constructor">constructor</a></p>
|
|
149
|
-
<ul>
|
|
150
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.spec.ts#L57">src/cores/model-manager.spec.ts:57</a></li>
|
|
151
|
-
</ul>
|
|
152
|
-
</aside>
|
|
153
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
154
|
-
<ul class="tsd-parameters">
|
|
155
|
-
<li>
|
|
156
|
-
<h5>parent: <a href="dummystoragemaker.html" class="tsd-signature-type">DummyStorageMaker</a></h5>
|
|
157
|
-
</li>
|
|
158
|
-
<li>
|
|
159
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> current: <span class="tsd-signature-type">number</span></h5>
|
|
160
|
-
</li>
|
|
161
|
-
</ul>
|
|
162
|
-
<h4 class="tsd-returns-title">Returns <a href="usermanager.html" class="tsd-signature-type">UserManager</a></h4>
|
|
163
|
-
</li>
|
|
164
|
-
</ul>
|
|
165
|
-
</section>
|
|
166
|
-
</section>
|
|
167
|
-
<section class="tsd-panel-group tsd-member-group tsd-is-inherited tsd-is-not-exported">
|
|
168
|
-
<h2>Properties</h2>
|
|
169
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
170
|
-
<a name="_unique" class="tsd-anchor"></a>
|
|
171
|
-
<h3>$unique</h3>
|
|
172
|
-
<div class="tsd-signature tsd-kind-icon">$unique<span class="tsd-signature-symbol">:</span> <a href="uniquefieldmanager.html" class="tsd-signature-type">UniqueFieldManager</a><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">, </span><a href="../globals.html#usertype" class="tsd-signature-type">UserType</a><span class="tsd-signature-symbol">></span></div>
|
|
173
|
-
<aside class="tsd-sources">
|
|
174
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#_unique">$unique</a></p>
|
|
175
|
-
<ul>
|
|
176
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L37">src/cores/model-manager.ts:37</a></li>
|
|
177
|
-
</ul>
|
|
178
|
-
</aside>
|
|
179
|
-
</section>
|
|
180
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
181
|
-
<a name="fields" class="tsd-anchor"></a>
|
|
182
|
-
<h3>FIELDS</h3>
|
|
183
|
-
<div class="tsd-signature tsd-kind-icon">FIELDS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
|
|
184
|
-
<aside class="tsd-sources">
|
|
185
|
-
<p>Inherited from <a href="generalmodelfilter.html">GeneralModelFilter</a>.<a href="generalmodelfilter.html#fields">FIELDS</a></p>
|
|
186
|
-
<ul>
|
|
187
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L206">src/cores/proxy-storage-service.ts:206</a></li>
|
|
188
|
-
</ul>
|
|
189
|
-
</aside>
|
|
190
|
-
</section>
|
|
191
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
192
|
-
<a name="ns" class="tsd-anchor"></a>
|
|
193
|
-
<h3>NS</h3>
|
|
194
|
-
<div class="tsd-signature tsd-kind-icon">NS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
195
|
-
<aside class="tsd-sources">
|
|
196
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#ns">NS</a></p>
|
|
197
|
-
<ul>
|
|
198
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L33">src/cores/model-manager.ts:33</a></li>
|
|
199
|
-
</ul>
|
|
200
|
-
</aside>
|
|
201
|
-
</section>
|
|
202
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
203
|
-
<a name="parent" class="tsd-anchor"></a>
|
|
204
|
-
<h3>parent</h3>
|
|
205
|
-
<div class="tsd-signature tsd-kind-icon">parent<span class="tsd-signature-symbol">:</span> <a href="dummystoragemaker.html" class="tsd-signature-type">DummyStorageMaker</a></div>
|
|
206
|
-
<aside class="tsd-sources">
|
|
207
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#parent">parent</a></p>
|
|
208
|
-
<ul>
|
|
209
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L35">src/cores/model-manager.ts:35</a></li>
|
|
210
|
-
</ul>
|
|
211
|
-
</aside>
|
|
212
|
-
</section>
|
|
213
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
214
|
-
<a name="storage" class="tsd-anchor"></a>
|
|
215
|
-
<h3>storage</h3>
|
|
216
|
-
<div class="tsd-signature tsd-kind-icon">storage<span class="tsd-signature-symbol">:</span> <a href="typedstorageservice.html" class="tsd-signature-type">TypedStorageService</a><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">, </span><a href="../globals.html#usertype" class="tsd-signature-type">UserType</a><span class="tsd-signature-symbol">></span></div>
|
|
217
|
-
<aside class="tsd-sources">
|
|
218
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#storage">storage</a></p>
|
|
219
|
-
<ul>
|
|
220
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L36">src/cores/model-manager.ts:36</a></li>
|
|
221
|
-
</ul>
|
|
222
|
-
</aside>
|
|
223
|
-
</section>
|
|
224
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
225
|
-
<a name="type" class="tsd-anchor"></a>
|
|
226
|
-
<h3>type</h3>
|
|
227
|
-
<div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <a href="../globals.html#usertype" class="tsd-signature-type">UserType</a></div>
|
|
228
|
-
<aside class="tsd-sources">
|
|
229
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#type">type</a></p>
|
|
230
|
-
<ul>
|
|
231
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L34">src/cores/model-manager.ts:34</a></li>
|
|
232
|
-
</ul>
|
|
233
|
-
</aside>
|
|
234
|
-
</section>
|
|
235
|
-
</section>
|
|
236
|
-
<section class="tsd-panel-group tsd-member-group tsd-is-not-exported">
|
|
237
|
-
<h2>Accessors</h2>
|
|
238
|
-
<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-not-exported">
|
|
239
|
-
<a name="current" class="tsd-anchor"></a>
|
|
240
|
-
<h3>current</h3>
|
|
241
|
-
<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-not-exported">
|
|
242
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> current<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
|
|
243
|
-
</ul>
|
|
244
|
-
<ul class="tsd-descriptions">
|
|
245
|
-
<li class="tsd-description">
|
|
246
|
-
<aside class="tsd-sources">
|
|
247
|
-
<ul>
|
|
248
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.spec.ts#L73">src/cores/model-manager.spec.ts:73</a></li>
|
|
249
|
-
</ul>
|
|
250
|
-
</aside>
|
|
251
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
|
|
252
|
-
</li>
|
|
253
|
-
</ul>
|
|
254
|
-
</section>
|
|
255
|
-
</section>
|
|
256
|
-
<section class="tsd-panel-group tsd-member-group tsd-is-not-exported">
|
|
257
|
-
<h2>Methods</h2>
|
|
258
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
259
|
-
<a name="afterread" class="tsd-anchor"></a>
|
|
260
|
-
<h3>after<wbr>Read</h3>
|
|
261
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
262
|
-
<li class="tsd-signature tsd-kind-icon">after<wbr>Read<span class="tsd-signature-symbol">(</span>model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a>, origin<span class="tsd-signature-symbol">?: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a></li>
|
|
263
|
-
</ul>
|
|
264
|
-
<ul class="tsd-descriptions">
|
|
265
|
-
<li class="tsd-description">
|
|
266
|
-
<aside class="tsd-sources">
|
|
267
|
-
<p>Inherited from <a href="generalmodelfilter.html">GeneralModelFilter</a>.<a href="generalmodelfilter.html#afterread">afterRead</a></p>
|
|
268
|
-
<ul>
|
|
269
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L220">src/cores/proxy-storage-service.ts:220</a></li>
|
|
270
|
-
</ul>
|
|
271
|
-
</aside>
|
|
272
|
-
<div class="tsd-comment tsd-typography">
|
|
273
|
-
<div class="lead">
|
|
274
|
-
<p>parse <code>.meta</code> to json</p>
|
|
275
|
-
</div>
|
|
276
|
-
</div>
|
|
277
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
278
|
-
<ul class="tsd-parameters">
|
|
279
|
-
<li>
|
|
280
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
281
|
-
<div class="tsd-comment tsd-typography">
|
|
282
|
-
<p>the current model</p>
|
|
283
|
-
</div>
|
|
284
|
-
</li>
|
|
285
|
-
<li>
|
|
286
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> origin: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
287
|
-
<div class="tsd-comment tsd-typography">
|
|
288
|
-
<p>the origin model</p>
|
|
289
|
-
</div>
|
|
290
|
-
</li>
|
|
291
|
-
</ul>
|
|
292
|
-
<h4 class="tsd-returns-title">Returns <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h4>
|
|
293
|
-
</li>
|
|
294
|
-
</ul>
|
|
295
|
-
</section>
|
|
296
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
297
|
-
<a name="aftersave" class="tsd-anchor"></a>
|
|
298
|
-
<h3>after<wbr>Save</h3>
|
|
299
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
300
|
-
<li class="tsd-signature tsd-kind-icon">after<wbr>Save<span class="tsd-signature-symbol">(</span>model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a>, origin<span class="tsd-signature-symbol">?: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
|
|
301
|
-
</ul>
|
|
302
|
-
<ul class="tsd-descriptions">
|
|
303
|
-
<li class="tsd-description">
|
|
304
|
-
<aside class="tsd-sources">
|
|
305
|
-
<p>Inherited from <a href="generalmodelfilter.html">GeneralModelFilter</a>.<a href="generalmodelfilter.html#aftersave">afterSave</a></p>
|
|
306
|
-
<ul>
|
|
307
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L315">src/cores/proxy-storage-service.ts:315</a></li>
|
|
308
|
-
</ul>
|
|
309
|
-
</aside>
|
|
310
|
-
<div class="tsd-comment tsd-typography">
|
|
311
|
-
<div class="lead">
|
|
312
|
-
<p>called after saving the model.</p>
|
|
313
|
-
<ul>
|
|
314
|
-
<li>parse <code>.meta</code> back to json object.</li>
|
|
315
|
-
</ul>
|
|
316
|
-
</div>
|
|
317
|
-
</div>
|
|
318
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
319
|
-
<ul class="tsd-parameters">
|
|
320
|
-
<li>
|
|
321
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
322
|
-
<div class="tsd-comment tsd-typography">
|
|
323
|
-
<p>the saved model</p>
|
|
324
|
-
</div>
|
|
325
|
-
</li>
|
|
326
|
-
<li>
|
|
327
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> origin: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
328
|
-
<div class="tsd-comment tsd-typography">
|
|
329
|
-
<p>the origin model.</p>
|
|
330
|
-
</div>
|
|
331
|
-
</li>
|
|
332
|
-
</ul>
|
|
333
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
|
|
334
|
-
</li>
|
|
335
|
-
</ul>
|
|
336
|
-
</section>
|
|
337
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
338
|
-
<a name="afterupdate" class="tsd-anchor"></a>
|
|
339
|
-
<h3>after<wbr>Update</h3>
|
|
340
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
341
|
-
<li class="tsd-signature tsd-kind-icon">after<wbr>Update<span class="tsd-signature-symbol">(</span>model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
|
|
342
|
-
</ul>
|
|
343
|
-
<ul class="tsd-descriptions">
|
|
344
|
-
<li class="tsd-description">
|
|
345
|
-
<aside class="tsd-sources">
|
|
346
|
-
<p>Inherited from <a href="generalmodelfilter.html">GeneralModelFilter</a>.<a href="generalmodelfilter.html#afterupdate">afterUpdate</a></p>
|
|
347
|
-
<ul>
|
|
348
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L332">src/cores/proxy-storage-service.ts:332</a></li>
|
|
349
|
-
</ul>
|
|
350
|
-
</aside>
|
|
351
|
-
<div class="tsd-comment tsd-typography">
|
|
352
|
-
<div class="lead">
|
|
353
|
-
<p>called after updating the model.</p>
|
|
354
|
-
</div>
|
|
355
|
-
</div>
|
|
356
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
357
|
-
<ul class="tsd-parameters">
|
|
358
|
-
<li>
|
|
359
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
360
|
-
<div class="tsd-comment tsd-typography">
|
|
361
|
-
<p>the updated model</p>
|
|
362
|
-
</div>
|
|
363
|
-
</li>
|
|
364
|
-
</ul>
|
|
365
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
|
|
366
|
-
</li>
|
|
367
|
-
</ul>
|
|
368
|
-
</section>
|
|
369
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
370
|
-
<a name="beforesave" class="tsd-anchor"></a>
|
|
371
|
-
<h3>before<wbr>Save</h3>
|
|
372
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
373
|
-
<li class="tsd-signature tsd-kind-icon">before<wbr>Save<span class="tsd-signature-symbol">(</span>model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a>, origin<span class="tsd-signature-symbol">?: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a></li>
|
|
374
|
-
</ul>
|
|
375
|
-
<ul class="tsd-descriptions">
|
|
376
|
-
<li class="tsd-description">
|
|
377
|
-
<aside class="tsd-sources">
|
|
378
|
-
<p>Inherited from <a href="generalmodelfilter.html">GeneralModelFilter</a>.<a href="generalmodelfilter.html#beforesave">beforeSave</a></p>
|
|
379
|
-
<ul>
|
|
380
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L236">src/cores/proxy-storage-service.ts:236</a></li>
|
|
381
|
-
</ul>
|
|
382
|
-
</aside>
|
|
383
|
-
<div class="tsd-comment tsd-typography">
|
|
384
|
-
<div class="lead">
|
|
385
|
-
<p>filter for before saving.</p>
|
|
386
|
-
<ul>
|
|
387
|
-
<li>make sure data conversion</li>
|
|
388
|
-
<li>move the unknown fields to <code>.meta</code>.</li>
|
|
389
|
-
</ul>
|
|
390
|
-
</div>
|
|
391
|
-
</div>
|
|
392
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
393
|
-
<ul class="tsd-parameters">
|
|
394
|
-
<li>
|
|
395
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
396
|
-
<div class="tsd-comment tsd-typography">
|
|
397
|
-
<p>the current model</p>
|
|
398
|
-
</div>
|
|
399
|
-
</li>
|
|
400
|
-
<li>
|
|
401
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> origin: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
402
|
-
<div class="tsd-comment tsd-typography">
|
|
403
|
-
<p>the origin model</p>
|
|
404
|
-
</div>
|
|
405
|
-
</li>
|
|
406
|
-
</ul>
|
|
407
|
-
<h4 class="tsd-returns-title">Returns <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h4>
|
|
408
|
-
</li>
|
|
409
|
-
</ul>
|
|
410
|
-
</section>
|
|
411
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
412
|
-
<a name="beforeupdate" class="tsd-anchor"></a>
|
|
413
|
-
<h3>before<wbr>Update</h3>
|
|
414
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
415
|
-
<li class="tsd-signature tsd-kind-icon">before<wbr>Update<span class="tsd-signature-symbol">(</span>model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a>, incrementals<span class="tsd-signature-symbol">?: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span></li>
|
|
416
|
-
</ul>
|
|
417
|
-
<ul class="tsd-descriptions">
|
|
418
|
-
<li class="tsd-description">
|
|
419
|
-
<aside class="tsd-sources">
|
|
420
|
-
<p>Inherited from <a href="generalmodelfilter.html">GeneralModelFilter</a>.<a href="generalmodelfilter.html#beforeupdate">beforeUpdate</a></p>
|
|
421
|
-
<ul>
|
|
422
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L324">src/cores/proxy-storage-service.ts:324</a></li>
|
|
423
|
-
</ul>
|
|
424
|
-
</aside>
|
|
425
|
-
<div class="tsd-comment tsd-typography">
|
|
426
|
-
<div class="lead">
|
|
427
|
-
<p>called before updating the model.</p>
|
|
428
|
-
</div>
|
|
429
|
-
</div>
|
|
430
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
431
|
-
<ul class="tsd-parameters">
|
|
432
|
-
<li>
|
|
433
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
434
|
-
<div class="tsd-comment tsd-typography">
|
|
435
|
-
<p>the updated model</p>
|
|
436
|
-
</div>
|
|
437
|
-
</li>
|
|
438
|
-
<li>
|
|
439
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> incrementals: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
440
|
-
<div class="tsd-comment tsd-typography">
|
|
441
|
-
<p>(optional) incremental fields.</p>
|
|
442
|
-
</div>
|
|
443
|
-
</li>
|
|
444
|
-
</ul>
|
|
445
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">T</span></h4>
|
|
446
|
-
</li>
|
|
447
|
-
</ul>
|
|
448
|
-
</section>
|
|
449
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
450
|
-
<a name="delete" class="tsd-anchor"></a>
|
|
451
|
-
<h3>delete</h3>
|
|
452
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
453
|
-
<li class="tsd-signature tsd-kind-icon">delete<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, destroy<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></li>
|
|
454
|
-
</ul>
|
|
455
|
-
<ul class="tsd-descriptions">
|
|
456
|
-
<li class="tsd-description">
|
|
457
|
-
<aside class="tsd-sources">
|
|
458
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#delete">delete</a></p>
|
|
459
|
-
<ul>
|
|
460
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L162">src/cores/model-manager.ts:162</a></li>
|
|
461
|
-
</ul>
|
|
462
|
-
</aside>
|
|
463
|
-
<div class="tsd-comment tsd-typography">
|
|
464
|
-
<div class="lead">
|
|
465
|
-
<p>default implementation of deleting model</p>
|
|
466
|
-
</div>
|
|
467
|
-
</div>
|
|
468
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
469
|
-
<ul class="tsd-parameters">
|
|
470
|
-
<li>
|
|
471
|
-
<h5>id: <span class="tsd-signature-type">string</span></h5>
|
|
472
|
-
<div class="tsd-comment tsd-typography">
|
|
473
|
-
<p>model id</p>
|
|
474
|
-
</div>
|
|
475
|
-
</li>
|
|
476
|
-
<li>
|
|
477
|
-
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> destroy: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
|
|
478
|
-
<div class="tsd-comment tsd-typography">
|
|
479
|
-
<p>flag for hard delete or soft delete (by setting 'deletedAt' field)</p>
|
|
480
|
-
</div>
|
|
481
|
-
</li>
|
|
482
|
-
</ul>
|
|
483
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></h4>
|
|
484
|
-
</li>
|
|
485
|
-
</ul>
|
|
486
|
-
</section>
|
|
487
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
488
|
-
<a name="hello" class="tsd-anchor"></a>
|
|
489
|
-
<h3>hello</h3>
|
|
490
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
491
|
-
<li class="tsd-signature tsd-kind-icon">hello<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
492
|
-
</ul>
|
|
493
|
-
<ul class="tsd-descriptions">
|
|
494
|
-
<li class="tsd-description">
|
|
495
|
-
<aside class="tsd-sources">
|
|
496
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#hello">hello</a></p>
|
|
497
|
-
<ul>
|
|
498
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L60">src/cores/model-manager.ts:60</a></li>
|
|
499
|
-
</ul>
|
|
500
|
-
</aside>
|
|
501
|
-
<div class="tsd-comment tsd-typography">
|
|
502
|
-
<div class="lead">
|
|
503
|
-
<p>hello of this service-identity</p>
|
|
504
|
-
</div>
|
|
505
|
-
</div>
|
|
506
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
507
|
-
</li>
|
|
508
|
-
</ul>
|
|
509
|
-
</section>
|
|
510
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
511
|
-
<a name="insert" class="tsd-anchor"></a>
|
|
512
|
-
<h3>insert</h3>
|
|
513
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
514
|
-
<li class="tsd-signature tsd-kind-icon">insert<span class="tsd-signature-symbol">(</span>model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></li>
|
|
515
|
-
</ul>
|
|
516
|
-
<ul class="tsd-descriptions">
|
|
517
|
-
<li class="tsd-description">
|
|
518
|
-
<aside class="tsd-sources">
|
|
519
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#insert">insert</a></p>
|
|
520
|
-
<ul>
|
|
521
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L103">src/cores/model-manager.ts:103</a></li>
|
|
522
|
-
</ul>
|
|
523
|
-
</aside>
|
|
524
|
-
<div class="tsd-comment tsd-typography">
|
|
525
|
-
<div class="lead">
|
|
526
|
-
<p>default implementation of 'inserting' model</p>
|
|
527
|
-
</div>
|
|
528
|
-
</div>
|
|
529
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
530
|
-
<ul class="tsd-parameters">
|
|
531
|
-
<li>
|
|
532
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
533
|
-
<div class="tsd-comment tsd-typography">
|
|
534
|
-
<p>model object</p>
|
|
535
|
-
</div>
|
|
536
|
-
</li>
|
|
537
|
-
</ul>
|
|
538
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></h4>
|
|
539
|
-
</li>
|
|
540
|
-
</ul>
|
|
541
|
-
</section>
|
|
542
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-not-exported">
|
|
543
|
-
<a name="onbeforesave" class="tsd-anchor"></a>
|
|
544
|
-
<h3>on<wbr>Before<wbr>Save</h3>
|
|
545
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-not-exported">
|
|
546
|
-
<li class="tsd-signature tsd-kind-icon">on<wbr>Before<wbr>Save<span class="tsd-signature-symbol">(</span>model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a>, origin<span class="tsd-signature-symbol">?: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a></li>
|
|
547
|
-
</ul>
|
|
548
|
-
<ul class="tsd-descriptions">
|
|
549
|
-
<li class="tsd-description">
|
|
550
|
-
<aside class="tsd-sources">
|
|
551
|
-
<p>Overrides <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#onbeforesave">onBeforeSave</a></p>
|
|
552
|
-
<ul>
|
|
553
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.spec.ts#L67">src/cores/model-manager.spec.ts:67</a></li>
|
|
554
|
-
</ul>
|
|
555
|
-
</aside>
|
|
556
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
557
|
-
<ul class="tsd-parameters">
|
|
558
|
-
<li>
|
|
559
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
560
|
-
</li>
|
|
561
|
-
<li>
|
|
562
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> origin: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
563
|
-
</li>
|
|
564
|
-
</ul>
|
|
565
|
-
<h4 class="tsd-returns-title">Returns <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h4>
|
|
566
|
-
</li>
|
|
567
|
-
</ul>
|
|
568
|
-
</section>
|
|
569
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
570
|
-
<a name="prepare" class="tsd-anchor"></a>
|
|
571
|
-
<h3>prepare</h3>
|
|
572
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
573
|
-
<li class="tsd-signature tsd-kind-icon">prepare<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, $def<span class="tsd-signature-symbol">?: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a>, isCreate<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></li>
|
|
574
|
-
</ul>
|
|
575
|
-
<ul class="tsd-descriptions">
|
|
576
|
-
<li class="tsd-description">
|
|
577
|
-
<aside class="tsd-sources">
|
|
578
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#prepare">prepare</a></p>
|
|
579
|
-
<ul>
|
|
580
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L87">src/cores/model-manager.ts:87</a></li>
|
|
581
|
-
</ul>
|
|
582
|
-
</aside>
|
|
583
|
-
<div class="tsd-comment tsd-typography">
|
|
584
|
-
<div class="lead">
|
|
585
|
-
<p>default implementation of 'preparing' model</p>
|
|
586
|
-
<ul>
|
|
587
|
-
<li>prepare model w/ safe creation</li>
|
|
588
|
-
</ul>
|
|
589
|
-
</div>
|
|
590
|
-
</div>
|
|
591
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
592
|
-
<ul class="tsd-parameters">
|
|
593
|
-
<li>
|
|
594
|
-
<h5>id: <span class="tsd-signature-type">string</span></h5>
|
|
595
|
-
<div class="tsd-comment tsd-typography">
|
|
596
|
-
<p>model-id to prepare</p>
|
|
597
|
-
</div>
|
|
598
|
-
</li>
|
|
599
|
-
<li>
|
|
600
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> $def: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
601
|
-
<div class="tsd-comment tsd-typography">
|
|
602
|
-
<p>default model value</p>
|
|
603
|
-
</div>
|
|
604
|
-
</li>
|
|
605
|
-
<li>
|
|
606
|
-
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> isCreate: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
|
|
607
|
-
<div class="tsd-comment tsd-typography">
|
|
608
|
-
<p>(optional) flag to allow creating a new model (default: true)</p>
|
|
609
|
-
</div>
|
|
610
|
-
</li>
|
|
611
|
-
</ul>
|
|
612
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></h4>
|
|
613
|
-
</li>
|
|
614
|
-
</ul>
|
|
615
|
-
</section>
|
|
616
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected tsd-is-not-exported">
|
|
617
|
-
<a name="preparedefault" class="tsd-anchor"></a>
|
|
618
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> prepare<wbr>Default</h3>
|
|
619
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected tsd-is-not-exported">
|
|
620
|
-
<li class="tsd-signature tsd-kind-icon">prepare<wbr>Default<span class="tsd-signature-symbol">(</span>$def<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a></li>
|
|
621
|
-
</ul>
|
|
622
|
-
<ul class="tsd-descriptions">
|
|
623
|
-
<li class="tsd-description">
|
|
624
|
-
<aside class="tsd-sources">
|
|
625
|
-
<p>Overrides <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#preparedefault">prepareDefault</a></p>
|
|
626
|
-
<ul>
|
|
627
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.spec.ts#L63">src/cores/model-manager.spec.ts:63</a></li>
|
|
628
|
-
</ul>
|
|
629
|
-
</aside>
|
|
630
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
631
|
-
<ul class="tsd-parameters">
|
|
632
|
-
<li>
|
|
633
|
-
<h5>$def: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
634
|
-
</li>
|
|
635
|
-
</ul>
|
|
636
|
-
<h4 class="tsd-returns-title">Returns <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h4>
|
|
637
|
-
</li>
|
|
638
|
-
</ul>
|
|
639
|
-
</section>
|
|
640
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
641
|
-
<a name="retrieve" class="tsd-anchor"></a>
|
|
642
|
-
<h3>retrieve</h3>
|
|
643
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
644
|
-
<li class="tsd-signature tsd-kind-icon">retrieve<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></li>
|
|
645
|
-
</ul>
|
|
646
|
-
<ul class="tsd-descriptions">
|
|
647
|
-
<li class="tsd-description">
|
|
648
|
-
<aside class="tsd-sources">
|
|
649
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#retrieve">retrieve</a></p>
|
|
650
|
-
<ul>
|
|
651
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L125">src/cores/model-manager.ts:125</a></li>
|
|
652
|
-
</ul>
|
|
653
|
-
</aside>
|
|
654
|
-
<div class="tsd-comment tsd-typography">
|
|
655
|
-
<div class="lead">
|
|
656
|
-
<p>default implementation of 'retrieving' model</p>
|
|
657
|
-
</div>
|
|
658
|
-
</div>
|
|
659
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
660
|
-
<ul class="tsd-parameters">
|
|
661
|
-
<li>
|
|
662
|
-
<h5>id: <span class="tsd-signature-type">string</span></h5>
|
|
663
|
-
<div class="tsd-comment tsd-typography">
|
|
664
|
-
<p>model id</p>
|
|
665
|
-
</div>
|
|
666
|
-
</li>
|
|
667
|
-
</ul>
|
|
668
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></h4>
|
|
669
|
-
</li>
|
|
670
|
-
</ul>
|
|
671
|
-
</section>
|
|
672
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
673
|
-
<a name="update" class="tsd-anchor"></a>
|
|
674
|
-
<h3>update</h3>
|
|
675
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
676
|
-
<li class="tsd-signature tsd-kind-icon">update<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a>, $inc<span class="tsd-signature-symbol">?: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></li>
|
|
677
|
-
</ul>
|
|
678
|
-
<ul class="tsd-descriptions">
|
|
679
|
-
<li class="tsd-description">
|
|
680
|
-
<aside class="tsd-sources">
|
|
681
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#update">update</a></p>
|
|
682
|
-
<ul>
|
|
683
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L141">src/cores/model-manager.ts:141</a></li>
|
|
684
|
-
</ul>
|
|
685
|
-
</aside>
|
|
686
|
-
<div class="tsd-comment tsd-typography">
|
|
687
|
-
<div class="lead">
|
|
688
|
-
<p>default implementation of updating model</p>
|
|
689
|
-
</div>
|
|
690
|
-
</div>
|
|
691
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
692
|
-
<ul class="tsd-parameters">
|
|
693
|
-
<li>
|
|
694
|
-
<h5>id: <span class="tsd-signature-type">string</span></h5>
|
|
695
|
-
<div class="tsd-comment tsd-typography">
|
|
696
|
-
<p>model id</p>
|
|
697
|
-
</div>
|
|
698
|
-
</li>
|
|
699
|
-
<li>
|
|
700
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
701
|
-
<div class="tsd-comment tsd-typography">
|
|
702
|
-
<p>model object</p>
|
|
703
|
-
</div>
|
|
704
|
-
</li>
|
|
705
|
-
<li>
|
|
706
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> $inc: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
707
|
-
<div class="tsd-comment tsd-typography">
|
|
708
|
-
<p>(optional) incremental set</p>
|
|
709
|
-
</div>
|
|
710
|
-
</li>
|
|
711
|
-
</ul>
|
|
712
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></h4>
|
|
713
|
-
</li>
|
|
714
|
-
</ul>
|
|
715
|
-
</section>
|
|
716
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
717
|
-
<a name="updateorcreate" class="tsd-anchor"></a>
|
|
718
|
-
<h3>update<wbr>OrCreate</h3>
|
|
719
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
720
|
-
<li class="tsd-signature tsd-kind-icon">update<wbr>OrCreate<span class="tsd-signature-symbol">(</span>id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, model<span class="tsd-signature-symbol">: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a>, $inc<span class="tsd-signature-symbol">?: </span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></li>
|
|
721
|
-
</ul>
|
|
722
|
-
<ul class="tsd-descriptions">
|
|
723
|
-
<li class="tsd-description">
|
|
724
|
-
<aside class="tsd-sources">
|
|
725
|
-
<p>Inherited from <a href="abstractmanager.html">AbstractManager</a>.<a href="abstractmanager.html#updateorcreate">updateOrCreate</a></p>
|
|
726
|
-
<ul>
|
|
727
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/model-manager.ts#L152">src/cores/model-manager.ts:152</a></li>
|
|
728
|
-
</ul>
|
|
729
|
-
</aside>
|
|
730
|
-
<div class="tsd-comment tsd-typography">
|
|
731
|
-
<div class="lead">
|
|
732
|
-
<p>default implementation of 'upserting' model</p>
|
|
733
|
-
</div>
|
|
734
|
-
</div>
|
|
735
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
736
|
-
<ul class="tsd-parameters">
|
|
737
|
-
<li>
|
|
738
|
-
<h5>id: <span class="tsd-signature-type">string</span></h5>
|
|
739
|
-
<div class="tsd-comment tsd-typography">
|
|
740
|
-
<p>model id</p>
|
|
741
|
-
</div>
|
|
742
|
-
</li>
|
|
743
|
-
<li>
|
|
744
|
-
<h5>model: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
745
|
-
<div class="tsd-comment tsd-typography">
|
|
746
|
-
<p>model object</p>
|
|
747
|
-
</div>
|
|
748
|
-
</li>
|
|
749
|
-
<li>
|
|
750
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> $inc: <a href="../interfaces/user.html" class="tsd-signature-type">User</a></h5>
|
|
751
|
-
<div class="tsd-comment tsd-typography">
|
|
752
|
-
<p>(optional) incremental set</p>
|
|
753
|
-
</div>
|
|
754
|
-
</li>
|
|
755
|
-
</ul>
|
|
756
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/user.html" class="tsd-signature-type">User</a><span class="tsd-signature-symbol">></span></h4>
|
|
757
|
-
</li>
|
|
758
|
-
</ul>
|
|
759
|
-
</section>
|
|
760
|
-
</section>
|
|
761
|
-
</div>
|
|
762
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
763
|
-
<nav class="tsd-navigation primary">
|
|
764
|
-
<ul>
|
|
765
|
-
<li class="globals ">
|
|
766
|
-
<a href="../globals.html"><em>Globals</em></a>
|
|
767
|
-
</li>
|
|
768
|
-
</ul>
|
|
769
|
-
</nav>
|
|
770
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
771
|
-
<ul class="before-current">
|
|
772
|
-
</ul>
|
|
773
|
-
<ul class="current">
|
|
774
|
-
<li class="current tsd-kind-class tsd-is-not-exported">
|
|
775
|
-
<a href="usermanager.html" class="tsd-kind-icon">User<wbr>Manager</a>
|
|
776
|
-
<ul>
|
|
777
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite tsd-is-not-exported">
|
|
778
|
-
<a href="usermanager.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
779
|
-
</li>
|
|
780
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
781
|
-
<a href="usermanager.html#_unique" class="tsd-kind-icon">$unique</a>
|
|
782
|
-
</li>
|
|
783
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
784
|
-
<a href="usermanager.html#fields" class="tsd-kind-icon">FIELDS</a>
|
|
785
|
-
</li>
|
|
786
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
787
|
-
<a href="usermanager.html#ns" class="tsd-kind-icon">NS</a>
|
|
788
|
-
</li>
|
|
789
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
790
|
-
<a href="usermanager.html#parent" class="tsd-kind-icon">parent</a>
|
|
791
|
-
</li>
|
|
792
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
793
|
-
<a href="usermanager.html#storage" class="tsd-kind-icon">storage</a>
|
|
794
|
-
</li>
|
|
795
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
796
|
-
<a href="usermanager.html#type" class="tsd-kind-icon">type</a>
|
|
797
|
-
</li>
|
|
798
|
-
<li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-not-exported">
|
|
799
|
-
<a href="usermanager.html#current" class="tsd-kind-icon">current</a>
|
|
800
|
-
</li>
|
|
801
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
802
|
-
<a href="usermanager.html#afterread" class="tsd-kind-icon">after<wbr>Read</a>
|
|
803
|
-
</li>
|
|
804
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
805
|
-
<a href="usermanager.html#aftersave" class="tsd-kind-icon">after<wbr>Save</a>
|
|
806
|
-
</li>
|
|
807
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
808
|
-
<a href="usermanager.html#afterupdate" class="tsd-kind-icon">after<wbr>Update</a>
|
|
809
|
-
</li>
|
|
810
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
811
|
-
<a href="usermanager.html#beforesave" class="tsd-kind-icon">before<wbr>Save</a>
|
|
812
|
-
</li>
|
|
813
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
814
|
-
<a href="usermanager.html#beforeupdate" class="tsd-kind-icon">before<wbr>Update</a>
|
|
815
|
-
</li>
|
|
816
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
817
|
-
<a href="usermanager.html#delete" class="tsd-kind-icon">delete</a>
|
|
818
|
-
</li>
|
|
819
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
820
|
-
<a href="usermanager.html#hello" class="tsd-kind-icon">hello</a>
|
|
821
|
-
</li>
|
|
822
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
823
|
-
<a href="usermanager.html#insert" class="tsd-kind-icon">insert</a>
|
|
824
|
-
</li>
|
|
825
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-not-exported">
|
|
826
|
-
<a href="usermanager.html#onbeforesave" class="tsd-kind-icon">on<wbr>Before<wbr>Save</a>
|
|
827
|
-
</li>
|
|
828
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
829
|
-
<a href="usermanager.html#prepare" class="tsd-kind-icon">prepare</a>
|
|
830
|
-
</li>
|
|
831
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected tsd-is-not-exported">
|
|
832
|
-
<a href="usermanager.html#preparedefault" class="tsd-kind-icon">prepare<wbr>Default</a>
|
|
833
|
-
</li>
|
|
834
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
835
|
-
<a href="usermanager.html#retrieve" class="tsd-kind-icon">retrieve</a>
|
|
836
|
-
</li>
|
|
837
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
838
|
-
<a href="usermanager.html#update" class="tsd-kind-icon">update</a>
|
|
839
|
-
</li>
|
|
840
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-not-exported">
|
|
841
|
-
<a href="usermanager.html#updateorcreate" class="tsd-kind-icon">update<wbr>OrCreate</a>
|
|
842
|
-
</li>
|
|
843
|
-
</ul>
|
|
844
|
-
</li>
|
|
845
|
-
</ul>
|
|
846
|
-
<ul class="after-current">
|
|
847
|
-
</ul>
|
|
848
|
-
</nav>
|
|
849
|
-
</div>
|
|
850
|
-
</div>
|
|
851
|
-
</div>
|
|
852
|
-
<footer class="with-border-bottom">
|
|
853
|
-
<div class="container">
|
|
854
|
-
<h2>Legend</h2>
|
|
855
|
-
<div class="tsd-legend-group">
|
|
856
|
-
<ul class="tsd-legend">
|
|
857
|
-
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
|
|
858
|
-
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
|
|
859
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
860
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
861
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
862
|
-
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
|
|
863
|
-
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
|
864
|
-
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
|
865
|
-
</ul>
|
|
866
|
-
<ul class="tsd-legend">
|
|
867
|
-
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
|
|
868
|
-
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
|
|
869
|
-
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
|
|
870
|
-
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
|
|
871
|
-
</ul>
|
|
872
|
-
<ul class="tsd-legend">
|
|
873
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
874
|
-
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
|
875
|
-
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
|
|
876
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
877
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
|
878
|
-
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
|
|
879
|
-
</ul>
|
|
880
|
-
<ul class="tsd-legend">
|
|
881
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
882
|
-
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
|
883
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
884
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
885
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
886
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
|
|
887
|
-
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
|
|
888
|
-
</ul>
|
|
889
|
-
<ul class="tsd-legend">
|
|
890
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
|
891
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
|
892
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
|
893
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
|
|
894
|
-
</ul>
|
|
895
|
-
<ul class="tsd-legend">
|
|
896
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
|
|
897
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
|
|
898
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
|
|
899
|
-
</ul>
|
|
900
|
-
<ul class="tsd-legend">
|
|
901
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
|
902
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
|
|
903
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
|
|
904
|
-
</ul>
|
|
905
|
-
<ul class="tsd-legend">
|
|
906
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
|
907
|
-
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
908
|
-
</ul>
|
|
909
|
-
</div>
|
|
910
|
-
</div>
|
|
911
|
-
</footer>
|
|
912
|
-
<div class="container tsd-generator">
|
|
913
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
914
|
-
</div>
|
|
915
|
-
<div class="overlay"></div>
|
|
916
|
-
<script src="../assets/js/main.js"></script>
|
|
917
|
-
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
|
|
918
|
-
</body>
|
|
919
|
-
</html>
|