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,914 +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>TypedStorageService | 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="typedstorageservice.html">TypedStorageService</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
<h1>Class TypedStorageService<T, ModelType></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-comment">
|
|
70
|
-
<div class="tsd-comment tsd-typography">
|
|
71
|
-
<div class="lead">
|
|
72
|
-
<p>class: <code>TypedStorageService</code></p>
|
|
73
|
-
<ul>
|
|
74
|
-
<li>wrap id with type + id.</li>
|
|
75
|
-
</ul>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</section>
|
|
79
|
-
<section class="tsd-panel tsd-type-parameters">
|
|
80
|
-
<h3>Type parameters</h3>
|
|
81
|
-
<ul class="tsd-type-parameters">
|
|
82
|
-
<li>
|
|
83
|
-
<h4>T<span class="tsd-signature-symbol">: </span><a href="../interfaces/coremodel.html" class="tsd-signature-type">CoreModel</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">ModelType</span><span class="tsd-signature-symbol">></span></h4>
|
|
84
|
-
</li>
|
|
85
|
-
<li>
|
|
86
|
-
<h4>ModelType<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h4>
|
|
87
|
-
</li>
|
|
88
|
-
</ul>
|
|
89
|
-
</section>
|
|
90
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
91
|
-
<h3>Hierarchy</h3>
|
|
92
|
-
<ul class="tsd-hierarchy">
|
|
93
|
-
<li>
|
|
94
|
-
<span class="target">TypedStorageService</span>
|
|
95
|
-
</li>
|
|
96
|
-
</ul>
|
|
97
|
-
</section>
|
|
98
|
-
<section class="tsd-panel">
|
|
99
|
-
<h3>Implements</h3>
|
|
100
|
-
<ul class="tsd-hierarchy">
|
|
101
|
-
<li><a href="../interfaces/storageservice.html" class="tsd-signature-type">StorageService</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
102
|
-
</ul>
|
|
103
|
-
</section>
|
|
104
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
105
|
-
<h2>Index</h2>
|
|
106
|
-
<section class="tsd-panel tsd-index-panel">
|
|
107
|
-
<div class="tsd-index-content">
|
|
108
|
-
<section class="tsd-index-section ">
|
|
109
|
-
<h3>Constructors</h3>
|
|
110
|
-
<ul class="tsd-index-list">
|
|
111
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="typedstorageservice.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|
112
|
-
</ul>
|
|
113
|
-
</section>
|
|
114
|
-
<section class="tsd-index-section ">
|
|
115
|
-
<h3>Properties</h3>
|
|
116
|
-
<ul class="tsd-index-list">
|
|
117
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="typedstorageservice.html#storage" class="tsd-kind-icon">storage</a></li>
|
|
118
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="typedstorageservice.html#type" class="tsd-kind-icon">type</a></li>
|
|
119
|
-
</ul>
|
|
120
|
-
</section>
|
|
121
|
-
<section class="tsd-index-section ">
|
|
122
|
-
<h3>Methods</h3>
|
|
123
|
-
<ul class="tsd-index-list">
|
|
124
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#delete" class="tsd-kind-icon">delete</a></li>
|
|
125
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="typedstorageservice.html#guard" class="tsd-kind-icon">guard</a></li>
|
|
126
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#hello" class="tsd-kind-icon">hello</a></li>
|
|
127
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#increment" class="tsd-kind-icon">increment</a></li>
|
|
128
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#insert" class="tsd-kind-icon">insert</a></li>
|
|
129
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#lock" class="tsd-kind-icon">lock</a></li>
|
|
130
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#makegeneralapicontroller" class="tsd-kind-icon">make<wbr>GeneralAPIController</a></li>
|
|
131
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#makeuniquefieldmanager" class="tsd-kind-icon">make<wbr>Unique<wbr>Field<wbr>Manager</a></li>
|
|
132
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#nextid" class="tsd-kind-icon">next<wbr>Id</a></li>
|
|
133
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#nextuuid" class="tsd-kind-icon">next<wbr>Uuid</a></li>
|
|
134
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#read" class="tsd-kind-icon">read</a></li>
|
|
135
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#readorcreate" class="tsd-kind-icon">read<wbr>OrCreate</a></li>
|
|
136
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#release" class="tsd-kind-icon">release</a></li>
|
|
137
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#save" class="tsd-kind-icon">save</a></li>
|
|
138
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="typedstorageservice.html#update" class="tsd-kind-icon">update</a></li>
|
|
139
|
-
</ul>
|
|
140
|
-
</section>
|
|
141
|
-
</div>
|
|
142
|
-
</section>
|
|
143
|
-
</section>
|
|
144
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
145
|
-
<h2>Constructors</h2>
|
|
146
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
|
|
147
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
148
|
-
<h3>constructor</h3>
|
|
149
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
150
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>Typed<wbr>Storage<wbr>Service<span class="tsd-signature-symbol">(</span>service<span class="tsd-signature-symbol">: </span><a href="proxystorageservice.html" class="tsd-signature-type">ProxyStorageService</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ModelType</span><span class="tsd-signature-symbol">></span>, type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ModelType</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="typedstorageservice.html" class="tsd-signature-type">TypedStorageService</a></li>
|
|
151
|
-
</ul>
|
|
152
|
-
<ul class="tsd-descriptions">
|
|
153
|
-
<li class="tsd-description">
|
|
154
|
-
<aside class="tsd-sources">
|
|
155
|
-
<ul>
|
|
156
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L780">src/cores/proxy-storage-service.ts:780</a></li>
|
|
157
|
-
</ul>
|
|
158
|
-
</aside>
|
|
159
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
160
|
-
<ul class="tsd-parameters">
|
|
161
|
-
<li>
|
|
162
|
-
<h5>service: <a href="proxystorageservice.html" class="tsd-signature-type">ProxyStorageService</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ModelType</span><span class="tsd-signature-symbol">></span></h5>
|
|
163
|
-
</li>
|
|
164
|
-
<li>
|
|
165
|
-
<h5>type: <span class="tsd-signature-type">ModelType</span></h5>
|
|
166
|
-
</li>
|
|
167
|
-
</ul>
|
|
168
|
-
<h4 class="tsd-returns-title">Returns <a href="typedstorageservice.html" class="tsd-signature-type">TypedStorageService</a></h4>
|
|
169
|
-
</li>
|
|
170
|
-
</ul>
|
|
171
|
-
</section>
|
|
172
|
-
</section>
|
|
173
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
174
|
-
<h2>Properties</h2>
|
|
175
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
176
|
-
<a name="storage" class="tsd-anchor"></a>
|
|
177
|
-
<h3>storage</h3>
|
|
178
|
-
<div class="tsd-signature tsd-kind-icon">storage<span class="tsd-signature-symbol">:</span> <a href="proxystorageservice.html" class="tsd-signature-type">ProxyStorageService</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ModelType</span><span class="tsd-signature-symbol">></span></div>
|
|
179
|
-
<aside class="tsd-sources">
|
|
180
|
-
<ul>
|
|
181
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L780">src/cores/proxy-storage-service.ts:780</a></li>
|
|
182
|
-
</ul>
|
|
183
|
-
</aside>
|
|
184
|
-
</section>
|
|
185
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
186
|
-
<a name="type" class="tsd-anchor"></a>
|
|
187
|
-
<h3>type</h3>
|
|
188
|
-
<div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ModelType</span></div>
|
|
189
|
-
<aside class="tsd-sources">
|
|
190
|
-
<ul>
|
|
191
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L779">src/cores/proxy-storage-service.ts:779</a></li>
|
|
192
|
-
</ul>
|
|
193
|
-
</aside>
|
|
194
|
-
</section>
|
|
195
|
-
</section>
|
|
196
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
197
|
-
<h2>Methods</h2>
|
|
198
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
199
|
-
<a name="delete" class="tsd-anchor"></a>
|
|
200
|
-
<h3>delete</h3>
|
|
201
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
202
|
-
<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><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
203
|
-
</ul>
|
|
204
|
-
<ul class="tsd-descriptions">
|
|
205
|
-
<li class="tsd-description">
|
|
206
|
-
<aside class="tsd-sources">
|
|
207
|
-
<ul>
|
|
208
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L862">src/cores/proxy-storage-service.ts:862</a></li>
|
|
209
|
-
</ul>
|
|
210
|
-
</aside>
|
|
211
|
-
<div class="tsd-comment tsd-typography">
|
|
212
|
-
<div class="lead">
|
|
213
|
-
<p>delete model by id.</p>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
217
|
-
<ul class="tsd-parameters">
|
|
218
|
-
<li>
|
|
219
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
220
|
-
<div class="tsd-comment tsd-typography">
|
|
221
|
-
<div class="lead">
|
|
222
|
-
<p>node-id</p>
|
|
223
|
-
</div>
|
|
224
|
-
</div>
|
|
225
|
-
</li>
|
|
226
|
-
<li>
|
|
227
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> destroy: <span class="tsd-signature-type">boolean</span></h5>
|
|
228
|
-
<div class="tsd-comment tsd-typography">
|
|
229
|
-
<div class="lead">
|
|
230
|
-
<p>flag to destroy (real delete)</p>
|
|
231
|
-
</div>
|
|
232
|
-
</div>
|
|
233
|
-
</li>
|
|
234
|
-
</ul>
|
|
235
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
|
236
|
-
</li>
|
|
237
|
-
</ul>
|
|
238
|
-
</section>
|
|
239
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
240
|
-
<a name="guard" class="tsd-anchor"></a>
|
|
241
|
-
<h3>guard</h3>
|
|
242
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
243
|
-
<li class="tsd-signature tsd-kind-icon">guard<T><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-type">number</span>, handler<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">function</span>, tick<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, interval<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><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></li>
|
|
244
|
-
</ul>
|
|
245
|
-
<ul class="tsd-descriptions">
|
|
246
|
-
<li class="tsd-description">
|
|
247
|
-
<aside class="tsd-sources">
|
|
248
|
-
<ul>
|
|
249
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L912">src/cores/proxy-storage-service.ts:912</a></li>
|
|
250
|
-
</ul>
|
|
251
|
-
</aside>
|
|
252
|
-
<div class="tsd-comment tsd-typography">
|
|
253
|
-
<div class="lead">
|
|
254
|
-
<p>using <code>lock()</code>, guard func with auto lock & release.</p>
|
|
255
|
-
</div>
|
|
256
|
-
<pre><code class="language-ts"><span class="hljs-keyword">const</span> res = <span class="hljs-keyword">await</span> storage.guard(<span class="hljs-keyword">async</span> ()=>{
|
|
257
|
-
<span class="hljs-keyword">return</span> <span class="hljs-string">'abc'</span>;
|
|
258
|
-
});
|
|
259
|
-
<span class="hljs-comment">// res === 'abc'</span></code></pre>
|
|
260
|
-
</div>
|
|
261
|
-
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
|
262
|
-
<ul class="tsd-type-parameters">
|
|
263
|
-
<li>
|
|
264
|
-
<h4>T</h4>
|
|
265
|
-
</li>
|
|
266
|
-
</ul>
|
|
267
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
268
|
-
<ul class="tsd-parameters">
|
|
269
|
-
<li>
|
|
270
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
271
|
-
</li>
|
|
272
|
-
<li>
|
|
273
|
-
<h5>handler: <span class="tsd-signature-type">function</span></h5>
|
|
274
|
-
<ul class="tsd-parameters">
|
|
275
|
-
<li class="tsd-parameter-siganture">
|
|
276
|
-
<ul class="tsd-signatures tsd-kind-type-literal tsd-is-not-exported">
|
|
277
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">T</span></li>
|
|
278
|
-
</ul>
|
|
279
|
-
<ul class="tsd-descriptions">
|
|
280
|
-
<li class="tsd-description">
|
|
281
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span>
|
|
282
|
-
<span class="tsd-signature-symbol"> | </span>
|
|
283
|
-
<span class="tsd-signature-type">T</span>
|
|
284
|
-
</h4>
|
|
285
|
-
</li>
|
|
286
|
-
</ul>
|
|
287
|
-
</li>
|
|
288
|
-
</ul>
|
|
289
|
-
</li>
|
|
290
|
-
<li>
|
|
291
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> tick: <span class="tsd-signature-type">number</span></h5>
|
|
292
|
-
</li>
|
|
293
|
-
<li>
|
|
294
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> interval: <span class="tsd-signature-type">number</span></h5>
|
|
295
|
-
</li>
|
|
296
|
-
</ul>
|
|
297
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4>
|
|
298
|
-
</li>
|
|
299
|
-
</ul>
|
|
300
|
-
</section>
|
|
301
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
302
|
-
<a name="hello" class="tsd-anchor"></a>
|
|
303
|
-
<h3>hello</h3>
|
|
304
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
305
|
-
<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>
|
|
306
|
-
</ul>
|
|
307
|
-
<ul class="tsd-descriptions">
|
|
308
|
-
<li class="tsd-description">
|
|
309
|
-
<aside class="tsd-sources">
|
|
310
|
-
<p>Implementation of <a href="../interfaces/storageservice.html">StorageService</a>.<a href="../interfaces/storageservice.html#hello">hello</a></p>
|
|
311
|
-
<ul>
|
|
312
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L789">src/cores/proxy-storage-service.ts:789</a></li>
|
|
313
|
-
</ul>
|
|
314
|
-
</aside>
|
|
315
|
-
<div class="tsd-comment tsd-typography">
|
|
316
|
-
<div class="lead">
|
|
317
|
-
<p>show self service name</p>
|
|
318
|
-
</div>
|
|
319
|
-
</div>
|
|
320
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
321
|
-
</li>
|
|
322
|
-
</ul>
|
|
323
|
-
</section>
|
|
324
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
325
|
-
<a name="increment" class="tsd-anchor"></a>
|
|
326
|
-
<h3>increment</h3>
|
|
327
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
328
|
-
<li class="tsd-signature tsd-kind-icon">increment<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-type">number</span>, $increments<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span>, $update<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">T</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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
329
|
-
</ul>
|
|
330
|
-
<ul class="tsd-descriptions">
|
|
331
|
-
<li class="tsd-description">
|
|
332
|
-
<aside class="tsd-sources">
|
|
333
|
-
<ul>
|
|
334
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L853">src/cores/proxy-storage-service.ts:853</a></li>
|
|
335
|
-
</ul>
|
|
336
|
-
</aside>
|
|
337
|
-
<div class="tsd-comment tsd-typography">
|
|
338
|
-
<div class="lead">
|
|
339
|
-
<p>update model (or it will create automatically)</p>
|
|
340
|
-
</div>
|
|
341
|
-
<pre><code class="language-ts"><span class="hljs-comment">//before: { count: 1 };</span>
|
|
342
|
-
<span class="hljs-keyword">const</span> res = <span class="hljs-keyword">await</span> storage.increment(<span class="hljs-number">1</span>, { count: <span class="hljs-number">2</span> }, { total: <span class="hljs-number">2</span> });
|
|
343
|
-
<span class="hljs-comment">//after : { count: 3, total: 2 }</span></code></pre>
|
|
344
|
-
</div>
|
|
345
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
346
|
-
<ul class="tsd-parameters">
|
|
347
|
-
<li>
|
|
348
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
349
|
-
<div class="tsd-comment tsd-typography">
|
|
350
|
-
<div class="lead">
|
|
351
|
-
<p>node-id</p>
|
|
352
|
-
</div>
|
|
353
|
-
</div>
|
|
354
|
-
</li>
|
|
355
|
-
<li>
|
|
356
|
-
<h5>$increments: <span class="tsd-signature-type">T</span></h5>
|
|
357
|
-
<div class="tsd-comment tsd-typography">
|
|
358
|
-
<div class="lead">
|
|
359
|
-
<p>model only with numbers</p>
|
|
360
|
-
</div>
|
|
361
|
-
</div>
|
|
362
|
-
</li>
|
|
363
|
-
<li>
|
|
364
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> $update: <span class="tsd-signature-type">T</span></h5>
|
|
365
|
-
</li>
|
|
366
|
-
</ul>
|
|
367
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
|
368
|
-
</li>
|
|
369
|
-
</ul>
|
|
370
|
-
</section>
|
|
371
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
372
|
-
<a name="insert" class="tsd-anchor"></a>
|
|
373
|
-
<h3>insert</h3>
|
|
374
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
375
|
-
<li class="tsd-signature tsd-kind-icon">insert<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
376
|
-
</ul>
|
|
377
|
-
<ul class="tsd-descriptions">
|
|
378
|
-
<li class="tsd-description">
|
|
379
|
-
<aside class="tsd-sources">
|
|
380
|
-
<ul>
|
|
381
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L833">src/cores/proxy-storage-service.ts:833</a></li>
|
|
382
|
-
</ul>
|
|
383
|
-
</aside>
|
|
384
|
-
<div class="tsd-comment tsd-typography">
|
|
385
|
-
<div class="lead">
|
|
386
|
-
<p>insert model w/ auto generated id</p>
|
|
387
|
-
</div>
|
|
388
|
-
</div>
|
|
389
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
390
|
-
<ul class="tsd-parameters">
|
|
391
|
-
<li>
|
|
392
|
-
<h5>node: <span class="tsd-signature-type">T</span></h5>
|
|
393
|
-
</li>
|
|
394
|
-
</ul>
|
|
395
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
|
396
|
-
</li>
|
|
397
|
-
</ul>
|
|
398
|
-
</section>
|
|
399
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
400
|
-
<a name="lock" class="tsd-anchor"></a>
|
|
401
|
-
<h3>lock</h3>
|
|
402
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
403
|
-
<li class="tsd-signature tsd-kind-icon">lock<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-type">number</span>, tick<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, interval<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><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></li>
|
|
404
|
-
</ul>
|
|
405
|
-
<ul class="tsd-descriptions">
|
|
406
|
-
<li class="tsd-description">
|
|
407
|
-
<aside class="tsd-sources">
|
|
408
|
-
<ul>
|
|
409
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L891">src/cores/proxy-storage-service.ts:891</a></li>
|
|
410
|
-
</ul>
|
|
411
|
-
</aside>
|
|
412
|
-
<div class="tsd-comment tsd-typography">
|
|
413
|
-
<div class="lead">
|
|
414
|
-
<p>lock data-entry by type+id w/ limited time tick</p>
|
|
415
|
-
<ul>
|
|
416
|
-
<li>WARN! must release lock by <code>release(id)</code></li>
|
|
417
|
-
</ul>
|
|
418
|
-
</div>
|
|
419
|
-
<p><code>total-waited-time = tick * interval (msec)</code></p>
|
|
420
|
-
<p><strong>[UPDATES]</strong></p>
|
|
421
|
-
<ol>
|
|
422
|
-
<li>read original node (or, throw 404 error)</li>
|
|
423
|
-
<li>use internal lock.</li>
|
|
424
|
-
</ol>
|
|
425
|
-
</div>
|
|
426
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
427
|
-
<ul class="tsd-parameters">
|
|
428
|
-
<li>
|
|
429
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
430
|
-
<div class="tsd-comment tsd-typography">
|
|
431
|
-
<div class="lead">
|
|
432
|
-
<p>model-id to lock</p>
|
|
433
|
-
</div>
|
|
434
|
-
</div>
|
|
435
|
-
</li>
|
|
436
|
-
<li>
|
|
437
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> tick: <span class="tsd-signature-type">number</span></h5>
|
|
438
|
-
<div class="tsd-comment tsd-typography">
|
|
439
|
-
<div class="lead">
|
|
440
|
-
<p>tick count to wait.</p>
|
|
441
|
-
</div>
|
|
442
|
-
</div>
|
|
443
|
-
</li>
|
|
444
|
-
<li>
|
|
445
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> interval: <span class="tsd-signature-type">number</span></h5>
|
|
446
|
-
<div class="tsd-comment tsd-typography">
|
|
447
|
-
<div class="lead">
|
|
448
|
-
<p>timeout interval per each tick (in msec, default 1000 = 1sec)</p>
|
|
449
|
-
</div>
|
|
450
|
-
</div>
|
|
451
|
-
</li>
|
|
452
|
-
</ul>
|
|
453
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4>
|
|
454
|
-
</li>
|
|
455
|
-
</ul>
|
|
456
|
-
</section>
|
|
457
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
458
|
-
<a name="makegeneralapicontroller" class="tsd-anchor"></a>
|
|
459
|
-
<h3>make<wbr>GeneralAPIController</h3>
|
|
460
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
461
|
-
<li class="tsd-signature tsd-kind-icon">make<wbr>GeneralAPIController<span class="tsd-signature-symbol">(</span>search<span class="tsd-signature-symbol">?: </span><a href="../interfaces/elastic6simplequeriable.html" class="tsd-signature-type">Elastic6SimpleQueriable</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span>, uniqueField<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">any</span></li>
|
|
462
|
-
</ul>
|
|
463
|
-
<ul class="tsd-descriptions">
|
|
464
|
-
<li class="tsd-description">
|
|
465
|
-
<aside class="tsd-sources">
|
|
466
|
-
<ul>
|
|
467
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L943">src/cores/proxy-storage-service.ts:943</a></li>
|
|
468
|
-
</ul>
|
|
469
|
-
</aside>
|
|
470
|
-
<div class="tsd-comment tsd-typography">
|
|
471
|
-
<div class="lead">
|
|
472
|
-
<p>make <code>GeneralAPIController</code> for REST API w/ supporting basic CRUD</p>
|
|
473
|
-
</div>
|
|
474
|
-
</div>
|
|
475
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
476
|
-
<ul class="tsd-parameters">
|
|
477
|
-
<li>
|
|
478
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> search: <a href="../interfaces/elastic6simplequeriable.html" class="tsd-signature-type">Elastic6SimpleQueriable</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h5>
|
|
479
|
-
</li>
|
|
480
|
-
<li>
|
|
481
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> uniqueField: <span class="tsd-signature-type">string</span></h5>
|
|
482
|
-
</li>
|
|
483
|
-
</ul>
|
|
484
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
|
|
485
|
-
</li>
|
|
486
|
-
</ul>
|
|
487
|
-
</section>
|
|
488
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
489
|
-
<a name="makeuniquefieldmanager" class="tsd-anchor"></a>
|
|
490
|
-
<h3>make<wbr>Unique<wbr>Field<wbr>Manager</h3>
|
|
491
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
492
|
-
<li class="tsd-signature tsd-kind-icon">make<wbr>Unique<wbr>Field<wbr>Manager<span class="tsd-signature-symbol">(</span>field<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><a href="uniquefieldmanager.html" class="tsd-signature-type">UniqueFieldManager</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ModelType</span><span class="tsd-signature-symbol">></span></li>
|
|
493
|
-
</ul>
|
|
494
|
-
<ul class="tsd-descriptions">
|
|
495
|
-
<li class="tsd-description">
|
|
496
|
-
<aside class="tsd-sources">
|
|
497
|
-
<ul>
|
|
498
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L937">src/cores/proxy-storage-service.ts:937</a></li>
|
|
499
|
-
</ul>
|
|
500
|
-
</aside>
|
|
501
|
-
<div class="tsd-comment tsd-typography">
|
|
502
|
-
<div class="lead">
|
|
503
|
-
<p>make <code>UniqueFieldManager</code> for field.</p>
|
|
504
|
-
</div>
|
|
505
|
-
</div>
|
|
506
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
507
|
-
<ul class="tsd-parameters">
|
|
508
|
-
<li>
|
|
509
|
-
<h5>field: <span class="tsd-signature-type">string</span></h5>
|
|
510
|
-
</li>
|
|
511
|
-
</ul>
|
|
512
|
-
<h4 class="tsd-returns-title">Returns <a href="uniquefieldmanager.html" class="tsd-signature-type">UniqueFieldManager</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ModelType</span><span class="tsd-signature-symbol">></span></h4>
|
|
513
|
-
</li>
|
|
514
|
-
</ul>
|
|
515
|
-
</section>
|
|
516
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
517
|
-
<a name="nextid" class="tsd-anchor"></a>
|
|
518
|
-
<h3>next<wbr>Id</h3>
|
|
519
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
520
|
-
<li class="tsd-signature tsd-kind-icon">next<wbr>Id<span class="tsd-signature-symbol">(</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><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></li>
|
|
521
|
-
</ul>
|
|
522
|
-
<ul class="tsd-descriptions">
|
|
523
|
-
<li class="tsd-description">
|
|
524
|
-
<aside class="tsd-sources">
|
|
525
|
-
<ul>
|
|
526
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L794">src/cores/proxy-storage-service.ts:794</a></li>
|
|
527
|
-
</ul>
|
|
528
|
-
</aside>
|
|
529
|
-
<div class="tsd-comment tsd-typography">
|
|
530
|
-
<div class="lead">
|
|
531
|
-
<p>get next auto-sequence id in number like <code>1000003</code>.</p>
|
|
532
|
-
</div>
|
|
533
|
-
</div>
|
|
534
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></h4>
|
|
535
|
-
</li>
|
|
536
|
-
</ul>
|
|
537
|
-
</section>
|
|
538
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
539
|
-
<a name="nextuuid" class="tsd-anchor"></a>
|
|
540
|
-
<h3>next<wbr>Uuid</h3>
|
|
541
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
542
|
-
<li class="tsd-signature tsd-kind-icon">next<wbr>Uuid<span class="tsd-signature-symbol">(</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><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></li>
|
|
543
|
-
</ul>
|
|
544
|
-
<ul class="tsd-descriptions">
|
|
545
|
-
<li class="tsd-description">
|
|
546
|
-
<aside class="tsd-sources">
|
|
547
|
-
<ul>
|
|
548
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L799">src/cores/proxy-storage-service.ts:799</a></li>
|
|
549
|
-
</ul>
|
|
550
|
-
</aside>
|
|
551
|
-
<div class="tsd-comment tsd-typography">
|
|
552
|
-
<div class="lead">
|
|
553
|
-
<p>get uuid like <code>d01764cd-9ef2-41e2-9e88-68e79555c979</code></p>
|
|
554
|
-
</div>
|
|
555
|
-
</div>
|
|
556
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></h4>
|
|
557
|
-
</li>
|
|
558
|
-
</ul>
|
|
559
|
-
</section>
|
|
560
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
561
|
-
<a name="read" class="tsd-anchor"></a>
|
|
562
|
-
<h3>read</h3>
|
|
563
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
564
|
-
<li class="tsd-signature tsd-kind-icon">read<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-type">number</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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
565
|
-
</ul>
|
|
566
|
-
<ul class="tsd-descriptions">
|
|
567
|
-
<li class="tsd-description">
|
|
568
|
-
<aside class="tsd-sources">
|
|
569
|
-
<ul>
|
|
570
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L807">src/cores/proxy-storage-service.ts:807</a></li>
|
|
571
|
-
</ul>
|
|
572
|
-
</aside>
|
|
573
|
-
<div class="tsd-comment tsd-typography">
|
|
574
|
-
<div class="lead">
|
|
575
|
-
<p>read model by key + id with optional auto creation.</p>
|
|
576
|
-
<ul>
|
|
577
|
-
<li>throws '404 NOT FOUND' if not found.</li>
|
|
578
|
-
</ul>
|
|
579
|
-
</div>
|
|
580
|
-
</div>
|
|
581
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
582
|
-
<ul class="tsd-parameters">
|
|
583
|
-
<li>
|
|
584
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
585
|
-
<div class="tsd-comment tsd-typography">
|
|
586
|
-
<div class="lead">
|
|
587
|
-
<p>node-id</p>
|
|
588
|
-
</div>
|
|
589
|
-
</div>
|
|
590
|
-
</li>
|
|
591
|
-
</ul>
|
|
592
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
|
593
|
-
</li>
|
|
594
|
-
</ul>
|
|
595
|
-
</section>
|
|
596
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
597
|
-
<a name="readorcreate" class="tsd-anchor"></a>
|
|
598
|
-
<h3>read<wbr>OrCreate</h3>
|
|
599
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
600
|
-
<li class="tsd-signature tsd-kind-icon">read<wbr>OrCreate<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-type">number</span>, model<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
601
|
-
</ul>
|
|
602
|
-
<ul class="tsd-descriptions">
|
|
603
|
-
<li class="tsd-description">
|
|
604
|
-
<aside class="tsd-sources">
|
|
605
|
-
<ul>
|
|
606
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L815">src/cores/proxy-storage-service.ts:815</a></li>
|
|
607
|
-
</ul>
|
|
608
|
-
</aside>
|
|
609
|
-
<div class="tsd-comment tsd-typography">
|
|
610
|
-
<div class="lead">
|
|
611
|
-
<p>read model by key + id with optional auto creation.</p>
|
|
612
|
-
</div>
|
|
613
|
-
</div>
|
|
614
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
615
|
-
<ul class="tsd-parameters">
|
|
616
|
-
<li>
|
|
617
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
618
|
-
<div class="tsd-comment tsd-typography">
|
|
619
|
-
<div class="lead">
|
|
620
|
-
<p>node-id</p>
|
|
621
|
-
</div>
|
|
622
|
-
</div>
|
|
623
|
-
</li>
|
|
624
|
-
<li>
|
|
625
|
-
<h5>model: <span class="tsd-signature-type">T</span></h5>
|
|
626
|
-
<div class="tsd-comment tsd-typography">
|
|
627
|
-
<div class="lead">
|
|
628
|
-
<p>initial model if not exist. (or throw 404 error)</p>
|
|
629
|
-
</div>
|
|
630
|
-
</div>
|
|
631
|
-
</li>
|
|
632
|
-
</ul>
|
|
633
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
|
634
|
-
</li>
|
|
635
|
-
</ul>
|
|
636
|
-
</section>
|
|
637
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
638
|
-
<a name="release" class="tsd-anchor"></a>
|
|
639
|
-
<h3>release</h3>
|
|
640
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
641
|
-
<li class="tsd-signature tsd-kind-icon">release<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-type">number</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><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></li>
|
|
642
|
-
</ul>
|
|
643
|
-
<ul class="tsd-descriptions">
|
|
644
|
-
<li class="tsd-description">
|
|
645
|
-
<aside class="tsd-sources">
|
|
646
|
-
<ul>
|
|
647
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L900">src/cores/proxy-storage-service.ts:900</a></li>
|
|
648
|
-
</ul>
|
|
649
|
-
</aside>
|
|
650
|
-
<div class="tsd-comment tsd-typography">
|
|
651
|
-
<div class="lead">
|
|
652
|
-
<p>release lock by resetting lock = 0.</p>
|
|
653
|
-
</div>
|
|
654
|
-
</div>
|
|
655
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
656
|
-
<ul class="tsd-parameters">
|
|
657
|
-
<li>
|
|
658
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
659
|
-
<div class="tsd-comment tsd-typography">
|
|
660
|
-
<div class="lead">
|
|
661
|
-
<p>model-id</p>
|
|
662
|
-
</div>
|
|
663
|
-
</div>
|
|
664
|
-
</li>
|
|
665
|
-
</ul>
|
|
666
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4>
|
|
667
|
-
</li>
|
|
668
|
-
</ul>
|
|
669
|
-
</section>
|
|
670
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
671
|
-
<a name="save" class="tsd-anchor"></a>
|
|
672
|
-
<h3>save</h3>
|
|
673
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
674
|
-
<li class="tsd-signature tsd-kind-icon">save<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-type">number</span>, model<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span>, $create<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">T</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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
675
|
-
</ul>
|
|
676
|
-
<ul class="tsd-descriptions">
|
|
677
|
-
<li class="tsd-description">
|
|
678
|
-
<aside class="tsd-sources">
|
|
679
|
-
<ul>
|
|
680
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L874">src/cores/proxy-storage-service.ts:874</a></li>
|
|
681
|
-
</ul>
|
|
682
|
-
</aside>
|
|
683
|
-
<div class="tsd-comment tsd-typography">
|
|
684
|
-
<div class="lead">
|
|
685
|
-
<p>save model by checking origin node.</p>
|
|
686
|
-
<ul>
|
|
687
|
-
<li>use <code>doSave()</code> rather than <code>doUpdate()</code> for both create & update.</li>
|
|
688
|
-
<li>if <code>$create</code> is null, throw 404 error it if not found.</li>
|
|
689
|
-
</ul>
|
|
690
|
-
</div>
|
|
691
|
-
</div>
|
|
692
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
693
|
-
<ul class="tsd-parameters">
|
|
694
|
-
<li>
|
|
695
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
696
|
-
<div class="tsd-comment tsd-typography">
|
|
697
|
-
<div class="lead">
|
|
698
|
-
<p>node-id</p>
|
|
699
|
-
</div>
|
|
700
|
-
</div>
|
|
701
|
-
</li>
|
|
702
|
-
<li>
|
|
703
|
-
<h5>model: <span class="tsd-signature-type">T</span></h5>
|
|
704
|
-
</li>
|
|
705
|
-
<li>
|
|
706
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> $create: <span class="tsd-signature-type">T</span></h5>
|
|
707
|
-
<div class="tsd-comment tsd-typography">
|
|
708
|
-
<div class="lead">
|
|
709
|
-
<p>(optional) initial creation model.</p>
|
|
710
|
-
</div>
|
|
711
|
-
</div>
|
|
712
|
-
</li>
|
|
713
|
-
</ul>
|
|
714
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
|
715
|
-
</li>
|
|
716
|
-
</ul>
|
|
717
|
-
</section>
|
|
718
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
719
|
-
<a name="update" class="tsd-anchor"></a>
|
|
720
|
-
<h3>update</h3>
|
|
721
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
722
|
-
<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><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span>, model<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">T</span>, incrementals<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">T</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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
723
|
-
</ul>
|
|
724
|
-
<ul class="tsd-descriptions">
|
|
725
|
-
<li class="tsd-description">
|
|
726
|
-
<aside class="tsd-sources">
|
|
727
|
-
<ul>
|
|
728
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/proxy-storage-service.ts#L825">src/cores/proxy-storage-service.ts:825</a></li>
|
|
729
|
-
</ul>
|
|
730
|
-
</aside>
|
|
731
|
-
<div class="tsd-comment tsd-typography">
|
|
732
|
-
<div class="lead">
|
|
733
|
-
<p>update model (or it will create automatically)</p>
|
|
734
|
-
</div>
|
|
735
|
-
</div>
|
|
736
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
737
|
-
<ul class="tsd-parameters">
|
|
738
|
-
<li>
|
|
739
|
-
<h5>id: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></h5>
|
|
740
|
-
<div class="tsd-comment tsd-typography">
|
|
741
|
-
<div class="lead">
|
|
742
|
-
<p>node-id</p>
|
|
743
|
-
</div>
|
|
744
|
-
</div>
|
|
745
|
-
</li>
|
|
746
|
-
<li>
|
|
747
|
-
<h5>model: <span class="tsd-signature-type">T</span></h5>
|
|
748
|
-
<div class="tsd-comment tsd-typography">
|
|
749
|
-
<div class="lead">
|
|
750
|
-
<p>model to update</p>
|
|
751
|
-
</div>
|
|
752
|
-
</div>
|
|
753
|
-
</li>
|
|
754
|
-
<li>
|
|
755
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> incrementals: <span class="tsd-signature-type">T</span></h5>
|
|
756
|
-
<div class="tsd-comment tsd-typography">
|
|
757
|
-
<div class="lead">
|
|
758
|
-
<p>(optional) fields to increment.</p>
|
|
759
|
-
</div>
|
|
760
|
-
</div>
|
|
761
|
-
</li>
|
|
762
|
-
</ul>
|
|
763
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
|
764
|
-
</li>
|
|
765
|
-
</ul>
|
|
766
|
-
</section>
|
|
767
|
-
</section>
|
|
768
|
-
</div>
|
|
769
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
770
|
-
<nav class="tsd-navigation primary">
|
|
771
|
-
<ul>
|
|
772
|
-
<li class="globals ">
|
|
773
|
-
<a href="../globals.html"><em>Globals</em></a>
|
|
774
|
-
</li>
|
|
775
|
-
</ul>
|
|
776
|
-
</nav>
|
|
777
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
778
|
-
<ul class="before-current">
|
|
779
|
-
</ul>
|
|
780
|
-
<ul class="current">
|
|
781
|
-
<li class="current tsd-kind-class tsd-has-type-parameter">
|
|
782
|
-
<a href="typedstorageservice.html" class="tsd-kind-icon">Typed<wbr>Storage<wbr>Service</a>
|
|
783
|
-
<ul>
|
|
784
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
|
785
|
-
<a href="typedstorageservice.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
786
|
-
</li>
|
|
787
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
788
|
-
<a href="typedstorageservice.html#storage" class="tsd-kind-icon">storage</a>
|
|
789
|
-
</li>
|
|
790
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
791
|
-
<a href="typedstorageservice.html#type" class="tsd-kind-icon">type</a>
|
|
792
|
-
</li>
|
|
793
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
794
|
-
<a href="typedstorageservice.html#delete" class="tsd-kind-icon">delete</a>
|
|
795
|
-
</li>
|
|
796
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
797
|
-
<a href="typedstorageservice.html#guard" class="tsd-kind-icon">guard</a>
|
|
798
|
-
</li>
|
|
799
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
800
|
-
<a href="typedstorageservice.html#hello" class="tsd-kind-icon">hello</a>
|
|
801
|
-
</li>
|
|
802
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
803
|
-
<a href="typedstorageservice.html#increment" class="tsd-kind-icon">increment</a>
|
|
804
|
-
</li>
|
|
805
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
806
|
-
<a href="typedstorageservice.html#insert" class="tsd-kind-icon">insert</a>
|
|
807
|
-
</li>
|
|
808
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
809
|
-
<a href="typedstorageservice.html#lock" class="tsd-kind-icon">lock</a>
|
|
810
|
-
</li>
|
|
811
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
812
|
-
<a href="typedstorageservice.html#makegeneralapicontroller" class="tsd-kind-icon">make<wbr>GeneralAPIController</a>
|
|
813
|
-
</li>
|
|
814
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
815
|
-
<a href="typedstorageservice.html#makeuniquefieldmanager" class="tsd-kind-icon">make<wbr>Unique<wbr>Field<wbr>Manager</a>
|
|
816
|
-
</li>
|
|
817
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
818
|
-
<a href="typedstorageservice.html#nextid" class="tsd-kind-icon">next<wbr>Id</a>
|
|
819
|
-
</li>
|
|
820
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
821
|
-
<a href="typedstorageservice.html#nextuuid" class="tsd-kind-icon">next<wbr>Uuid</a>
|
|
822
|
-
</li>
|
|
823
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
824
|
-
<a href="typedstorageservice.html#read" class="tsd-kind-icon">read</a>
|
|
825
|
-
</li>
|
|
826
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
827
|
-
<a href="typedstorageservice.html#readorcreate" class="tsd-kind-icon">read<wbr>OrCreate</a>
|
|
828
|
-
</li>
|
|
829
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
830
|
-
<a href="typedstorageservice.html#release" class="tsd-kind-icon">release</a>
|
|
831
|
-
</li>
|
|
832
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
833
|
-
<a href="typedstorageservice.html#save" class="tsd-kind-icon">save</a>
|
|
834
|
-
</li>
|
|
835
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
836
|
-
<a href="typedstorageservice.html#update" class="tsd-kind-icon">update</a>
|
|
837
|
-
</li>
|
|
838
|
-
</ul>
|
|
839
|
-
</li>
|
|
840
|
-
</ul>
|
|
841
|
-
<ul class="after-current">
|
|
842
|
-
</ul>
|
|
843
|
-
</nav>
|
|
844
|
-
</div>
|
|
845
|
-
</div>
|
|
846
|
-
</div>
|
|
847
|
-
<footer class="with-border-bottom">
|
|
848
|
-
<div class="container">
|
|
849
|
-
<h2>Legend</h2>
|
|
850
|
-
<div class="tsd-legend-group">
|
|
851
|
-
<ul class="tsd-legend">
|
|
852
|
-
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
|
|
853
|
-
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
|
|
854
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
855
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
856
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
857
|
-
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
|
|
858
|
-
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
|
859
|
-
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
|
860
|
-
</ul>
|
|
861
|
-
<ul class="tsd-legend">
|
|
862
|
-
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
|
|
863
|
-
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
|
|
864
|
-
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
|
|
865
|
-
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
|
|
866
|
-
</ul>
|
|
867
|
-
<ul class="tsd-legend">
|
|
868
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
869
|
-
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
|
870
|
-
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
|
|
871
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
872
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
|
873
|
-
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
|
|
874
|
-
</ul>
|
|
875
|
-
<ul class="tsd-legend">
|
|
876
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
877
|
-
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
|
878
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
879
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
880
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
881
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
|
|
882
|
-
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
|
|
883
|
-
</ul>
|
|
884
|
-
<ul class="tsd-legend">
|
|
885
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
|
886
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
|
887
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
|
888
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
|
|
889
|
-
</ul>
|
|
890
|
-
<ul class="tsd-legend">
|
|
891
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
|
|
892
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
|
|
893
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
|
|
894
|
-
</ul>
|
|
895
|
-
<ul class="tsd-legend">
|
|
896
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
|
897
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
|
|
898
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
|
|
899
|
-
</ul>
|
|
900
|
-
<ul class="tsd-legend">
|
|
901
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
|
902
|
-
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
903
|
-
</ul>
|
|
904
|
-
</div>
|
|
905
|
-
</div>
|
|
906
|
-
</footer>
|
|
907
|
-
<div class="container tsd-generator">
|
|
908
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
909
|
-
</div>
|
|
910
|
-
<div class="overlay"></div>
|
|
911
|
-
<script src="../assets/js/main.js"></script>
|
|
912
|
-
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
|
|
913
|
-
</body>
|
|
914
|
-
</html>
|