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,993 +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>MyProtocolService | 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="myprotocolservice.html">MyProtocolService</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
<h1>Class MyProtocolService</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>MyConfigService</code></p>
|
|
73
|
-
<ul>
|
|
74
|
-
<li>main implementation for <code>protocol-service</code></li>
|
|
75
|
-
<li>support protocol via <code>API(WEB)</code> + <code>SNS</code> + <code>SQS</code></li>
|
|
76
|
-
</ul>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</section>
|
|
80
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
81
|
-
<h3>Hierarchy</h3>
|
|
82
|
-
<ul class="tsd-hierarchy">
|
|
83
|
-
<li>
|
|
84
|
-
<span class="target">MyProtocolService</span>
|
|
85
|
-
<ul class="tsd-hierarchy">
|
|
86
|
-
<li>
|
|
87
|
-
<a href="myprotocolservicetest.html" class="tsd-signature-type">MyProtocolServiceTest</a>
|
|
88
|
-
</li>
|
|
89
|
-
</ul>
|
|
90
|
-
</li>
|
|
91
|
-
</ul>
|
|
92
|
-
</section>
|
|
93
|
-
<section class="tsd-panel">
|
|
94
|
-
<h3>Implements</h3>
|
|
95
|
-
<ul class="tsd-hierarchy">
|
|
96
|
-
<li><a href="../interfaces/protocolservice.html" class="tsd-signature-type">ProtocolService</a></li>
|
|
97
|
-
</ul>
|
|
98
|
-
</section>
|
|
99
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
100
|
-
<h2>Index</h2>
|
|
101
|
-
<section class="tsd-panel tsd-index-panel">
|
|
102
|
-
<div class="tsd-index-content">
|
|
103
|
-
<section class="tsd-index-section ">
|
|
104
|
-
<h3>Constructors</h3>
|
|
105
|
-
<ul class="tsd-index-list">
|
|
106
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><a href="myprotocolservice.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|
107
|
-
</ul>
|
|
108
|
-
</section>
|
|
109
|
-
<section class="tsd-index-section ">
|
|
110
|
-
<h3>Properties</h3>
|
|
111
|
-
<ul class="tsd-index-list">
|
|
112
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="myprotocolservice.html#config" class="tsd-kind-icon">config</a></li>
|
|
113
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="myprotocolservice.html#selfservice" class="tsd-kind-icon">self<wbr>Service</a></li>
|
|
114
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="myprotocolservice.html#sns" class="tsd-kind-icon">sns</a></li>
|
|
115
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="myprotocolservice.html#sqs" class="tsd-kind-icon">sqs</a></li>
|
|
116
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="myprotocolservice.html#web" class="tsd-kind-icon">web</a></li>
|
|
117
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="myprotocolservice.html#report_error" class="tsd-kind-icon">REPORT_<wbr>ERROR</a></li>
|
|
118
|
-
</ul>
|
|
119
|
-
</section>
|
|
120
|
-
<section class="tsd-index-section ">
|
|
121
|
-
<h3>Methods</h3>
|
|
122
|
-
<ul class="tsd-index-list">
|
|
123
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#ascallbackuri" class="tsd-kind-icon">as<wbr>CallbackURI</a></li>
|
|
124
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#asprotocoluri" class="tsd-kind-icon">as<wbr>ProtocolURI</a></li>
|
|
125
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#astransformer" class="tsd-kind-icon">as<wbr>Transformer</a></li>
|
|
126
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#broadcast" class="tsd-kind-icon">broadcast</a></li>
|
|
127
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-protected"><a href="myprotocolservice.html#doreporterror" class="tsd-kind-icon">do<wbr>Report<wbr>Error</a></li>
|
|
128
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#enqueue" class="tsd-kind-icon">enqueue</a></li>
|
|
129
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="myprotocolservice.html#execute" class="tsd-kind-icon">execute</a></li>
|
|
130
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#fromurl" class="tsd-kind-icon">fromURL</a></li>
|
|
131
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#hello" class="tsd-kind-icon">hello</a></li>
|
|
132
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#myprotocoluri" class="tsd-kind-icon">my<wbr>ProtocolURI</a></li>
|
|
133
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#notify" class="tsd-kind-icon">notify</a></li>
|
|
134
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="myprotocolservice.html#transformevent" class="tsd-kind-icon">transform<wbr>Event</a></li>
|
|
135
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="myprotocolservice.html#aspath" class="tsd-kind-icon">as<wbr>Path</a></li>
|
|
136
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="myprotocolservice.html#buildprotocoluri" class="tsd-kind-icon">build<wbr>ProtocolURI</a></li>
|
|
137
|
-
</ul>
|
|
138
|
-
</section>
|
|
139
|
-
</div>
|
|
140
|
-
</section>
|
|
141
|
-
</section>
|
|
142
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
143
|
-
<h2>Constructors</h2>
|
|
144
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
|
|
145
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
146
|
-
<h3>constructor</h3>
|
|
147
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
|
|
148
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>MyProtocol<wbr>Service<span class="tsd-signature-symbol">(</span>service<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, config<span class="tsd-signature-symbol">?: </span><a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="myprotocolservice.html" class="tsd-signature-type">MyProtocolService</a></li>
|
|
149
|
-
</ul>
|
|
150
|
-
<ul class="tsd-descriptions">
|
|
151
|
-
<li class="tsd-description">
|
|
152
|
-
<aside class="tsd-sources">
|
|
153
|
-
<ul>
|
|
154
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L72">src/cores/protocol/protocol-service.ts:72</a></li>
|
|
155
|
-
</ul>
|
|
156
|
-
</aside>
|
|
157
|
-
<div class="tsd-comment tsd-typography">
|
|
158
|
-
<div class="lead">
|
|
159
|
-
<p>default constructor.</p>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
163
|
-
<ul class="tsd-parameters">
|
|
164
|
-
<li>
|
|
165
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> service: <span class="tsd-signature-type">string</span></h5>
|
|
166
|
-
<div class="tsd-comment tsd-typography">
|
|
167
|
-
<div class="lead">
|
|
168
|
-
<p>default current service (for debug)</p>
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
</li>
|
|
172
|
-
<li>
|
|
173
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> config: <a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a></h5>
|
|
174
|
-
<div class="tsd-comment tsd-typography">
|
|
175
|
-
<div class="lead">
|
|
176
|
-
<p>config-service to use (for debug)</p>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
</li>
|
|
180
|
-
</ul>
|
|
181
|
-
<h4 class="tsd-returns-title">Returns <a href="myprotocolservice.html" class="tsd-signature-type">MyProtocolService</a></h4>
|
|
182
|
-
</li>
|
|
183
|
-
</ul>
|
|
184
|
-
</section>
|
|
185
|
-
</section>
|
|
186
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
187
|
-
<h2>Properties</h2>
|
|
188
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
189
|
-
<a name="config" class="tsd-anchor"></a>
|
|
190
|
-
<h3>config</h3>
|
|
191
|
-
<div class="tsd-signature tsd-kind-icon">config<span class="tsd-signature-symbol">:</span> <a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a></div>
|
|
192
|
-
<aside class="tsd-sources">
|
|
193
|
-
<ul>
|
|
194
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L69">src/cores/protocol/protocol-service.ts:69</a></li>
|
|
195
|
-
</ul>
|
|
196
|
-
</aside>
|
|
197
|
-
</section>
|
|
198
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
|
|
199
|
-
<a name="selfservice" class="tsd-anchor"></a>
|
|
200
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> self<wbr>Service</h3>
|
|
201
|
-
<div class="tsd-signature tsd-kind-icon">self<wbr>Service<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
202
|
-
<aside class="tsd-sources">
|
|
203
|
-
<ul>
|
|
204
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L72">src/cores/protocol/protocol-service.ts:72</a></li>
|
|
205
|
-
</ul>
|
|
206
|
-
</aside>
|
|
207
|
-
</section>
|
|
208
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
209
|
-
<a name="sns" class="tsd-anchor"></a>
|
|
210
|
-
<h3>sns</h3>
|
|
211
|
-
<div class="tsd-signature tsd-kind-icon">sns<span class="tsd-signature-symbol">:</span> <a href="snsprotocoltransformer.html" class="tsd-signature-type">SNSProtocolTransformer</a><span class="tsd-signature-symbol"> = new SNSProtocolTransformer(this)</span></div>
|
|
212
|
-
<aside class="tsd-sources">
|
|
213
|
-
<ul>
|
|
214
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L65">src/cores/protocol/protocol-service.ts:65</a></li>
|
|
215
|
-
</ul>
|
|
216
|
-
</aside>
|
|
217
|
-
</section>
|
|
218
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
219
|
-
<a name="sqs" class="tsd-anchor"></a>
|
|
220
|
-
<h3>sqs</h3>
|
|
221
|
-
<div class="tsd-signature tsd-kind-icon">sqs<span class="tsd-signature-symbol">:</span> <a href="sqsprotocoltransformer.html" class="tsd-signature-type">SQSProtocolTransformer</a><span class="tsd-signature-symbol"> = new SQSProtocolTransformer(this)</span></div>
|
|
222
|
-
<aside class="tsd-sources">
|
|
223
|
-
<ul>
|
|
224
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L66">src/cores/protocol/protocol-service.ts:66</a></li>
|
|
225
|
-
</ul>
|
|
226
|
-
</aside>
|
|
227
|
-
</section>
|
|
228
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
229
|
-
<a name="web" class="tsd-anchor"></a>
|
|
230
|
-
<h3>web</h3>
|
|
231
|
-
<div class="tsd-signature tsd-kind-icon">web<span class="tsd-signature-symbol">:</span> <a href="webprotocoltransformer.html" class="tsd-signature-type">WEBProtocolTransformer</a><span class="tsd-signature-symbol"> = new WEBProtocolTransformer(this)</span></div>
|
|
232
|
-
<aside class="tsd-sources">
|
|
233
|
-
<ul>
|
|
234
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L64">src/cores/protocol/protocol-service.ts:64</a></li>
|
|
235
|
-
</ul>
|
|
236
|
-
</aside>
|
|
237
|
-
</section>
|
|
238
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
|
239
|
-
<a name="report_error" class="tsd-anchor"></a>
|
|
240
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> REPORT_<wbr>ERROR</h3>
|
|
241
|
-
<div class="tsd-signature tsd-kind-icon">REPORT_<wbr>ERROR<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = LambdaHandler.REPORT_ERROR</span></div>
|
|
242
|
-
<aside class="tsd-sources">
|
|
243
|
-
<ul>
|
|
244
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L61">src/cores/protocol/protocol-service.ts:61</a></li>
|
|
245
|
-
</ul>
|
|
246
|
-
</aside>
|
|
247
|
-
</section>
|
|
248
|
-
</section>
|
|
249
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
250
|
-
<h2>Methods</h2>
|
|
251
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
252
|
-
<a name="ascallbackuri" class="tsd-anchor"></a>
|
|
253
|
-
<h3>as<wbr>CallbackURI</h3>
|
|
254
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
255
|
-
<li class="tsd-signature tsd-kind-icon">as<wbr>CallbackURI<span class="tsd-signature-symbol">(</span>context<span class="tsd-signature-symbol">: </span><a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a>, param<span class="tsd-signature-symbol">: </span><a href="../interfaces/callbackparam.html" class="tsd-signature-type">CallbackParam</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
256
|
-
</ul>
|
|
257
|
-
<ul class="tsd-descriptions">
|
|
258
|
-
<li class="tsd-description">
|
|
259
|
-
<aside class="tsd-sources">
|
|
260
|
-
<ul>
|
|
261
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L301">src/cores/protocol/protocol-service.ts:301</a></li>
|
|
262
|
-
</ul>
|
|
263
|
-
</aside>
|
|
264
|
-
<div class="tsd-comment tsd-typography">
|
|
265
|
-
<div class="lead">
|
|
266
|
-
<p>build callback uri of self's type/id/cmd</p>
|
|
267
|
-
</div>
|
|
268
|
-
</div>
|
|
269
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
270
|
-
<ul class="tsd-parameters">
|
|
271
|
-
<li>
|
|
272
|
-
<h5>context: <a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a></h5>
|
|
273
|
-
</li>
|
|
274
|
-
<li>
|
|
275
|
-
<h5>param: <a href="../interfaces/callbackparam.html" class="tsd-signature-type">CallbackParam</a></h5>
|
|
276
|
-
</li>
|
|
277
|
-
</ul>
|
|
278
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
279
|
-
</li>
|
|
280
|
-
</ul>
|
|
281
|
-
</section>
|
|
282
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
283
|
-
<a name="asprotocoluri" class="tsd-anchor"></a>
|
|
284
|
-
<h3>as<wbr>ProtocolURI</h3>
|
|
285
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
286
|
-
<li class="tsd-signature tsd-kind-icon">as<wbr>ProtocolURI<span class="tsd-signature-symbol">(</span>protocol<span class="tsd-signature-symbol">: </span><a href="../globals.html#myprotocoltype" class="tsd-signature-type">MyProtocolType</a>, param<span class="tsd-signature-symbol">: </span><a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a>, config<span class="tsd-signature-symbol">?: </span><a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
287
|
-
</ul>
|
|
288
|
-
<ul class="tsd-descriptions">
|
|
289
|
-
<li class="tsd-description">
|
|
290
|
-
<aside class="tsd-sources">
|
|
291
|
-
<ul>
|
|
292
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L136">src/cores/protocol/protocol-service.ts:136</a></li>
|
|
293
|
-
</ul>
|
|
294
|
-
</aside>
|
|
295
|
-
<div class="tsd-comment tsd-typography">
|
|
296
|
-
<div class="lead">
|
|
297
|
-
<p>convert param to protocol URI.</p>
|
|
298
|
-
<ul>
|
|
299
|
-
<li>URI: <code><protocol>://<accountId?>@<service-name></code></li>
|
|
300
|
-
</ul>
|
|
301
|
-
</div>
|
|
302
|
-
<p><strong>NOTE</strong>
|
|
303
|
-
MUST USE STANDARD NAME FORMAT OF PACKAGE.NAME (ex: <code>lemon-hello-api</code>)</p>
|
|
304
|
-
<p>example:</p>
|
|
305
|
-
<ul>
|
|
306
|
-
<li>web://lemon-hello-api, web://lemon-hello-api-dev</li>
|
|
307
|
-
<li>sns://lemon-hello-sns, sns://lemon-hello-sns-dev</li>
|
|
308
|
-
<li>sqs://lemon-hello-sqs, sqs://lemon-hello-sqs-dev</li>
|
|
309
|
-
</ul>
|
|
310
|
-
</div>
|
|
311
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
312
|
-
<ul class="tsd-parameters">
|
|
313
|
-
<li>
|
|
314
|
-
<h5>protocol: <a href="../globals.html#myprotocoltype" class="tsd-signature-type">MyProtocolType</a></h5>
|
|
315
|
-
</li>
|
|
316
|
-
<li>
|
|
317
|
-
<h5>param: <a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a></h5>
|
|
318
|
-
<div class="tsd-comment tsd-typography">
|
|
319
|
-
<p>protocol param.</p>
|
|
320
|
-
</div>
|
|
321
|
-
</li>
|
|
322
|
-
<li>
|
|
323
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> config: <a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a></h5>
|
|
324
|
-
<div class="tsd-comment tsd-typography">
|
|
325
|
-
<p>config-service to use.</p>
|
|
326
|
-
</div>
|
|
327
|
-
</li>
|
|
328
|
-
</ul>
|
|
329
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
330
|
-
</li>
|
|
331
|
-
</ul>
|
|
332
|
-
</section>
|
|
333
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
334
|
-
<a name="astransformer" class="tsd-anchor"></a>
|
|
335
|
-
<h3>as<wbr>Transformer</h3>
|
|
336
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
337
|
-
<li class="tsd-signature tsd-kind-icon">as<wbr>Transformer<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"web"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"sns"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"sqs"</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/protocoltransformer.html" class="tsd-signature-type">ProtocolTransformer</a></li>
|
|
338
|
-
</ul>
|
|
339
|
-
<ul class="tsd-descriptions">
|
|
340
|
-
<li class="tsd-description">
|
|
341
|
-
<aside class="tsd-sources">
|
|
342
|
-
<p>Implementation of <a href="../interfaces/protocolservice.html">ProtocolService</a>.<a href="../interfaces/protocolservice.html#astransformer">asTransformer</a></p>
|
|
343
|
-
<ul>
|
|
344
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L114">src/cores/protocol/protocol-service.ts:114</a></li>
|
|
345
|
-
</ul>
|
|
346
|
-
</aside>
|
|
347
|
-
<div class="tsd-comment tsd-typography">
|
|
348
|
-
<div class="lead">
|
|
349
|
-
<p>load transformer</p>
|
|
350
|
-
</div>
|
|
351
|
-
</div>
|
|
352
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
353
|
-
<ul class="tsd-parameters">
|
|
354
|
-
<li>
|
|
355
|
-
<h5>name: <span class="tsd-signature-type">"web"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"sns"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"sqs"</span></h5>
|
|
356
|
-
</li>
|
|
357
|
-
</ul>
|
|
358
|
-
<h4 class="tsd-returns-title">Returns <a href="../interfaces/protocoltransformer.html" class="tsd-signature-type">ProtocolTransformer</a></h4>
|
|
359
|
-
</li>
|
|
360
|
-
</ul>
|
|
361
|
-
</section>
|
|
362
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
363
|
-
<a name="broadcast" class="tsd-anchor"></a>
|
|
364
|
-
<h3>broadcast</h3>
|
|
365
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
366
|
-
<li class="tsd-signature tsd-kind-icon">broadcast<span class="tsd-signature-symbol">(</span>context<span class="tsd-signature-symbol">: </span><a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a>, endpoint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, body<span class="tsd-signature-symbol">: </span><a href="../interfaces/protocolbody.html" class="tsd-signature-type">ProtocolBody</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><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></li>
|
|
367
|
-
</ul>
|
|
368
|
-
<ul class="tsd-descriptions">
|
|
369
|
-
<li class="tsd-description">
|
|
370
|
-
<aside class="tsd-sources">
|
|
371
|
-
<p>Implementation of <a href="../interfaces/protocolservice.html">ProtocolService</a>.<a href="../interfaces/protocolservice.html#broadcast">broadcast</a></p>
|
|
372
|
-
<ul>
|
|
373
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L475">src/cores/protocol/protocol-service.ts:475</a></li>
|
|
374
|
-
</ul>
|
|
375
|
-
</aside>
|
|
376
|
-
<div class="tsd-comment tsd-typography">
|
|
377
|
-
<div class="lead">
|
|
378
|
-
<p>broadcast body message via shared <code>SNS</code> Subscritions. (see <code>NotificationHandler</code>)</p>
|
|
379
|
-
<ul>
|
|
380
|
-
<li><code>.service</code> will be self url like <code>api://lemon-hello-api#1.2.3</code></li>
|
|
381
|
-
</ul>
|
|
382
|
-
</div>
|
|
383
|
-
</div>
|
|
384
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
385
|
-
<ul class="tsd-parameters">
|
|
386
|
-
<li>
|
|
387
|
-
<h5>context: <a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a></h5>
|
|
388
|
-
<div class="tsd-comment tsd-typography">
|
|
389
|
-
<p>the current execute context. (<code>.identity</code> will be relayed).</p>
|
|
390
|
-
</div>
|
|
391
|
-
</li>
|
|
392
|
-
<li>
|
|
393
|
-
<h5>endpoint: <span class="tsd-signature-type">string</span></h5>
|
|
394
|
-
<div class="tsd-comment tsd-typography">
|
|
395
|
-
<p>the SNS endpoint like <code>lemon-hello-out</code>, or full ARN.</p>
|
|
396
|
-
</div>
|
|
397
|
-
</li>
|
|
398
|
-
<li>
|
|
399
|
-
<h5>body: <a href="../interfaces/protocolbody.html" class="tsd-signature-type">ProtocolBody</a></h5>
|
|
400
|
-
<div class="tsd-comment tsd-typography">
|
|
401
|
-
<p>the message body to broadcast.</p>
|
|
402
|
-
</div>
|
|
403
|
-
</li>
|
|
404
|
-
</ul>
|
|
405
|
-
<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>
|
|
406
|
-
<p>the message-id if applicable.</p>
|
|
407
|
-
</li>
|
|
408
|
-
</ul>
|
|
409
|
-
</section>
|
|
410
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-protected">
|
|
411
|
-
<a name="doreporterror" class="tsd-anchor"></a>
|
|
412
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> do<wbr>Report<wbr>Error</h3>
|
|
413
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-protected">
|
|
414
|
-
<li class="tsd-signature tsd-kind-icon">do<wbr>Report<wbr>Error<T><span class="tsd-signature-symbol">(</span>e<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, context<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span>, event<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</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>
|
|
415
|
-
</ul>
|
|
416
|
-
<ul class="tsd-descriptions">
|
|
417
|
-
<li class="tsd-description">
|
|
418
|
-
<aside class="tsd-sources">
|
|
419
|
-
<ul>
|
|
420
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L240">src/cores/protocol/protocol-service.ts:240</a></li>
|
|
421
|
-
</ul>
|
|
422
|
-
</aside>
|
|
423
|
-
<div class="tsd-comment tsd-typography">
|
|
424
|
-
<div class="lead">
|
|
425
|
-
<p>internal safe report-error.</p>
|
|
426
|
-
</div>
|
|
427
|
-
</div>
|
|
428
|
-
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
|
429
|
-
<ul class="tsd-type-parameters">
|
|
430
|
-
<li>
|
|
431
|
-
<h4>T</h4>
|
|
432
|
-
</li>
|
|
433
|
-
</ul>
|
|
434
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
435
|
-
<ul class="tsd-parameters">
|
|
436
|
-
<li>
|
|
437
|
-
<h5>e: <span class="tsd-signature-type">Error</span></h5>
|
|
438
|
-
</li>
|
|
439
|
-
<li>
|
|
440
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> context: <span class="tsd-signature-type">any</span></h5>
|
|
441
|
-
</li>
|
|
442
|
-
<li>
|
|
443
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> event: <span class="tsd-signature-type">any</span></h5>
|
|
444
|
-
</li>
|
|
445
|
-
<li>
|
|
446
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> data: <span class="tsd-signature-type">any</span></h5>
|
|
447
|
-
</li>
|
|
448
|
-
</ul>
|
|
449
|
-
<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>
|
|
450
|
-
</li>
|
|
451
|
-
</ul>
|
|
452
|
-
</section>
|
|
453
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
454
|
-
<a name="enqueue" class="tsd-anchor"></a>
|
|
455
|
-
<h3>enqueue</h3>
|
|
456
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
457
|
-
<li class="tsd-signature tsd-kind-icon">enqueue<span class="tsd-signature-symbol">(</span>param<span class="tsd-signature-symbol">: </span><a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a>, callback<span class="tsd-signature-symbol">?: </span><a href="../interfaces/callbackparam.html" class="tsd-signature-type">CallbackParam</a>, delaySeconds<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, config<span class="tsd-signature-symbol">?: </span><a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</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><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></li>
|
|
458
|
-
</ul>
|
|
459
|
-
<ul class="tsd-descriptions">
|
|
460
|
-
<li class="tsd-description">
|
|
461
|
-
<aside class="tsd-sources">
|
|
462
|
-
<ul>
|
|
463
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L425">src/cores/protocol/protocol-service.ts:425</a></li>
|
|
464
|
-
</ul>
|
|
465
|
-
</aside>
|
|
466
|
-
<div class="tsd-comment tsd-typography">
|
|
467
|
-
<div class="lead">
|
|
468
|
-
<p>Asynchronized call to target function via <code>SQS</code></p>
|
|
469
|
-
</div>
|
|
470
|
-
</div>
|
|
471
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
472
|
-
<ul class="tsd-parameters">
|
|
473
|
-
<li>
|
|
474
|
-
<h5>param: <a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a></h5>
|
|
475
|
-
<div class="tsd-comment tsd-typography">
|
|
476
|
-
<p>the calling param</p>
|
|
477
|
-
</div>
|
|
478
|
-
</li>
|
|
479
|
-
<li>
|
|
480
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <a href="../interfaces/callbackparam.html" class="tsd-signature-type">CallbackParam</a></h5>
|
|
481
|
-
<div class="tsd-comment tsd-typography">
|
|
482
|
-
<p>the return target</p>
|
|
483
|
-
</div>
|
|
484
|
-
</li>
|
|
485
|
-
<li>
|
|
486
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> delaySeconds: <span class="tsd-signature-type">number</span></h5>
|
|
487
|
-
<div class="tsd-comment tsd-typography">
|
|
488
|
-
<p>the delayed seconds</p>
|
|
489
|
-
</div>
|
|
490
|
-
</li>
|
|
491
|
-
<li>
|
|
492
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> config: <a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a></h5>
|
|
493
|
-
<div class="tsd-comment tsd-typography">
|
|
494
|
-
<p>config service (for debug)</p>
|
|
495
|
-
</div>
|
|
496
|
-
</li>
|
|
497
|
-
</ul>
|
|
498
|
-
<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>
|
|
499
|
-
</li>
|
|
500
|
-
</ul>
|
|
501
|
-
</section>
|
|
502
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
503
|
-
<a name="execute" class="tsd-anchor"></a>
|
|
504
|
-
<h3>execute</h3>
|
|
505
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
506
|
-
<li class="tsd-signature tsd-kind-icon">execute<T><span class="tsd-signature-symbol">(</span>param<span class="tsd-signature-symbol">: </span><a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a>, config<span class="tsd-signature-symbol">?: </span><a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a>, uri<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><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></li>
|
|
507
|
-
</ul>
|
|
508
|
-
<ul class="tsd-descriptions">
|
|
509
|
-
<li class="tsd-description">
|
|
510
|
-
<aside class="tsd-sources">
|
|
511
|
-
<ul>
|
|
512
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L315">src/cores/protocol/protocol-service.ts:315</a></li>
|
|
513
|
-
</ul>
|
|
514
|
-
</aside>
|
|
515
|
-
<div class="tsd-comment tsd-typography">
|
|
516
|
-
<div class="lead">
|
|
517
|
-
<p>synchronized call to target function via <code>Lambda</code></p>
|
|
518
|
-
</div>
|
|
519
|
-
</div>
|
|
520
|
-
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
|
521
|
-
<ul class="tsd-type-parameters">
|
|
522
|
-
<li>
|
|
523
|
-
<h4>T</h4>
|
|
524
|
-
</li>
|
|
525
|
-
</ul>
|
|
526
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
527
|
-
<ul class="tsd-parameters">
|
|
528
|
-
<li>
|
|
529
|
-
<h5>param: <a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a></h5>
|
|
530
|
-
<div class="tsd-comment tsd-typography">
|
|
531
|
-
<p>the calling param</p>
|
|
532
|
-
</div>
|
|
533
|
-
</li>
|
|
534
|
-
<li>
|
|
535
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> config: <a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a></h5>
|
|
536
|
-
<div class="tsd-comment tsd-typography">
|
|
537
|
-
<p>config service (for debug)</p>
|
|
538
|
-
</div>
|
|
539
|
-
</li>
|
|
540
|
-
<li>
|
|
541
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> uri: <span class="tsd-signature-type">string</span></h5>
|
|
542
|
-
<div class="tsd-comment tsd-typography">
|
|
543
|
-
<p>(optional) if useing custom uri.</p>
|
|
544
|
-
</div>
|
|
545
|
-
</li>
|
|
546
|
-
</ul>
|
|
547
|
-
<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>
|
|
548
|
-
</li>
|
|
549
|
-
</ul>
|
|
550
|
-
</section>
|
|
551
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
552
|
-
<a name="fromurl" class="tsd-anchor"></a>
|
|
553
|
-
<h3>fromURL</h3>
|
|
554
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
555
|
-
<li class="tsd-signature tsd-kind-icon">fromURL<span class="tsd-signature-symbol">(</span>context<span class="tsd-signature-symbol">: </span><a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a>, url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, param<span class="tsd-signature-symbol">?: </span><a href="../interfaces/protocolbody.html" class="tsd-signature-type">ProtocolBody</a>, body<span class="tsd-signature-symbol">?: </span><a href="../interfaces/protocolbody.html" class="tsd-signature-type">ProtocolBody</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a></li>
|
|
556
|
-
</ul>
|
|
557
|
-
<ul class="tsd-descriptions">
|
|
558
|
-
<li class="tsd-description">
|
|
559
|
-
<aside class="tsd-sources">
|
|
560
|
-
<p>Implementation of <a href="../interfaces/protocolservice.html">ProtocolService</a>.<a href="../interfaces/protocolservice.html#fromurl">fromURL</a></p>
|
|
561
|
-
<ul>
|
|
562
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L261">src/cores/protocol/protocol-service.ts:261</a></li>
|
|
563
|
-
</ul>
|
|
564
|
-
</aside>
|
|
565
|
-
<div class="tsd-comment tsd-typography">
|
|
566
|
-
<div class="lead">
|
|
567
|
-
<p>from string url, transform to protocol-param.
|
|
568
|
-
<em>mode</em> is dependent on body condition.</p>
|
|
569
|
-
<ul>
|
|
570
|
-
<li>if body is undefined, then mode will be 'GET'</li>
|
|
571
|
-
<li>if body is not undefined, then mode will be 'POST'.</li>
|
|
572
|
-
</ul>
|
|
573
|
-
</div>
|
|
574
|
-
</div>
|
|
575
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
576
|
-
<ul class="tsd-parameters">
|
|
577
|
-
<li>
|
|
578
|
-
<h5>context: <a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a></h5>
|
|
579
|
-
<div class="tsd-comment tsd-typography">
|
|
580
|
-
<p>the current execute context via controller.</p>
|
|
581
|
-
</div>
|
|
582
|
-
</li>
|
|
583
|
-
<li>
|
|
584
|
-
<h5>url: <span class="tsd-signature-type">string</span></h5>
|
|
585
|
-
<div class="tsd-comment tsd-typography">
|
|
586
|
-
<p>url string must start with 'lemon://' like <code>lemon://lemon-hello-api/hello/0</code>, or 'api://'</p>
|
|
587
|
-
</div>
|
|
588
|
-
</li>
|
|
589
|
-
<li>
|
|
590
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> param: <a href="../interfaces/protocolbody.html" class="tsd-signature-type">ProtocolBody</a></h5>
|
|
591
|
-
<div class="tsd-comment tsd-typography">
|
|
592
|
-
<p>query parameter (optional)</p>
|
|
593
|
-
</div>
|
|
594
|
-
</li>
|
|
595
|
-
<li>
|
|
596
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> body: <a href="../interfaces/protocolbody.html" class="tsd-signature-type">ProtocolBody</a></h5>
|
|
597
|
-
<div class="tsd-comment tsd-typography">
|
|
598
|
-
<p>post body (optional)</p>
|
|
599
|
-
</div>
|
|
600
|
-
</li>
|
|
601
|
-
</ul>
|
|
602
|
-
<h4 class="tsd-returns-title">Returns <a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a></h4>
|
|
603
|
-
</li>
|
|
604
|
-
</ul>
|
|
605
|
-
</section>
|
|
606
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
607
|
-
<a name="hello" class="tsd-anchor"></a>
|
|
608
|
-
<h3>hello</h3>
|
|
609
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
610
|
-
<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>
|
|
611
|
-
</ul>
|
|
612
|
-
<ul class="tsd-descriptions">
|
|
613
|
-
<li class="tsd-description">
|
|
614
|
-
<aside class="tsd-sources">
|
|
615
|
-
<ul>
|
|
616
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L89">src/cores/protocol/protocol-service.ts:89</a></li>
|
|
617
|
-
</ul>
|
|
618
|
-
</aside>
|
|
619
|
-
<div class="tsd-comment tsd-typography">
|
|
620
|
-
<div class="lead">
|
|
621
|
-
<p>say hello() of this service</p>
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
624
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
625
|
-
</li>
|
|
626
|
-
</ul>
|
|
627
|
-
</section>
|
|
628
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
629
|
-
<a name="myprotocoluri" class="tsd-anchor"></a>
|
|
630
|
-
<h3>my<wbr>ProtocolURI</h3>
|
|
631
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
632
|
-
<li class="tsd-signature tsd-kind-icon">my<wbr>ProtocolURI<span class="tsd-signature-symbol">(</span>context<span class="tsd-signature-symbol">: </span><a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a>, type<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, cmd<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">string</span></li>
|
|
633
|
-
</ul>
|
|
634
|
-
<ul class="tsd-descriptions">
|
|
635
|
-
<li class="tsd-description">
|
|
636
|
-
<aside class="tsd-sources">
|
|
637
|
-
<p>Implementation of <a href="../interfaces/protocolservice.html">ProtocolService</a>.<a href="../interfaces/protocolservice.html#myprotocoluri">myProtocolURI</a></p>
|
|
638
|
-
<ul>
|
|
639
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L156">src/cores/protocol/protocol-service.ts:156</a></li>
|
|
640
|
-
</ul>
|
|
641
|
-
</aside>
|
|
642
|
-
<div class="tsd-comment tsd-typography">
|
|
643
|
-
<div class="lead">
|
|
644
|
-
<p>get the current service's protocol uri</p>
|
|
645
|
-
</div>
|
|
646
|
-
</div>
|
|
647
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
648
|
-
<ul class="tsd-parameters">
|
|
649
|
-
<li>
|
|
650
|
-
<h5>context: <a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a></h5>
|
|
651
|
-
<div class="tsd-comment tsd-typography">
|
|
652
|
-
<p>the current context.</p>
|
|
653
|
-
</div>
|
|
654
|
-
</li>
|
|
655
|
-
<li>
|
|
656
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> type: <span class="tsd-signature-type">string</span></h5>
|
|
657
|
-
<div class="tsd-comment tsd-typography">
|
|
658
|
-
<p>(optional) resource type</p>
|
|
659
|
-
</div>
|
|
660
|
-
</li>
|
|
661
|
-
<li>
|
|
662
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> id: <span class="tsd-signature-type">string</span></h5>
|
|
663
|
-
<div class="tsd-comment tsd-typography">
|
|
664
|
-
<p>(optional) resource id</p>
|
|
665
|
-
</div>
|
|
666
|
-
</li>
|
|
667
|
-
<li>
|
|
668
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cmd: <span class="tsd-signature-type">string</span></h5>
|
|
669
|
-
<div class="tsd-comment tsd-typography">
|
|
670
|
-
<p>(optional) action command</p>
|
|
671
|
-
</div>
|
|
672
|
-
</li>
|
|
673
|
-
</ul>
|
|
674
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
675
|
-
</li>
|
|
676
|
-
</ul>
|
|
677
|
-
</section>
|
|
678
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
679
|
-
<a name="notify" class="tsd-anchor"></a>
|
|
680
|
-
<h3>notify</h3>
|
|
681
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
682
|
-
<li class="tsd-signature tsd-kind-icon">notify<span class="tsd-signature-symbol">(</span>param<span class="tsd-signature-symbol">: </span><a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a>, callback<span class="tsd-signature-symbol">?: </span><a href="../interfaces/callbackparam.html" class="tsd-signature-type">CallbackParam</a>, config<span class="tsd-signature-symbol">?: </span><a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</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><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">></span></li>
|
|
683
|
-
</ul>
|
|
684
|
-
<ul class="tsd-descriptions">
|
|
685
|
-
<li class="tsd-description">
|
|
686
|
-
<aside class="tsd-sources">
|
|
687
|
-
<ul>
|
|
688
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L386">src/cores/protocol/protocol-service.ts:386</a></li>
|
|
689
|
-
</ul>
|
|
690
|
-
</aside>
|
|
691
|
-
<div class="tsd-comment tsd-typography">
|
|
692
|
-
<div class="lead">
|
|
693
|
-
<p>Asynchronized call to target function via <code>SNS</code></p>
|
|
694
|
-
</div>
|
|
695
|
-
</div>
|
|
696
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
697
|
-
<ul class="tsd-parameters">
|
|
698
|
-
<li>
|
|
699
|
-
<h5>param: <a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a></h5>
|
|
700
|
-
<div class="tsd-comment tsd-typography">
|
|
701
|
-
<p>the calling param</p>
|
|
702
|
-
</div>
|
|
703
|
-
</li>
|
|
704
|
-
<li>
|
|
705
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <a href="../interfaces/callbackparam.html" class="tsd-signature-type">CallbackParam</a></h5>
|
|
706
|
-
<div class="tsd-comment tsd-typography">
|
|
707
|
-
<p>the return target</p>
|
|
708
|
-
</div>
|
|
709
|
-
</li>
|
|
710
|
-
<li>
|
|
711
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> config: <a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a></h5>
|
|
712
|
-
<div class="tsd-comment tsd-typography">
|
|
713
|
-
<p>config service (for debug)</p>
|
|
714
|
-
</div>
|
|
715
|
-
</li>
|
|
716
|
-
</ul>
|
|
717
|
-
<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>
|
|
718
|
-
</li>
|
|
719
|
-
</ul>
|
|
720
|
-
</section>
|
|
721
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
722
|
-
<a name="transformevent" class="tsd-anchor"></a>
|
|
723
|
-
<h3>transform<wbr>Event</h3>
|
|
724
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
725
|
-
<li class="tsd-signature tsd-kind-icon">transform<wbr>Event<span class="tsd-signature-symbol">(</span>uri<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, param<span class="tsd-signature-symbol">: </span><a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">APIGatewayProxyEventBase</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">PublishInput</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">SendMessageRequest</span></li>
|
|
726
|
-
</ul>
|
|
727
|
-
<ul class="tsd-descriptions">
|
|
728
|
-
<li class="tsd-description">
|
|
729
|
-
<aside class="tsd-sources">
|
|
730
|
-
<ul>
|
|
731
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L223">src/cores/protocol/protocol-service.ts:223</a></li>
|
|
732
|
-
</ul>
|
|
733
|
-
</aside>
|
|
734
|
-
<div class="tsd-comment tsd-typography">
|
|
735
|
-
<div class="lead">
|
|
736
|
-
<p>transform param to EventParam</p>
|
|
737
|
-
</div>
|
|
738
|
-
</div>
|
|
739
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
740
|
-
<ul class="tsd-parameters">
|
|
741
|
-
<li>
|
|
742
|
-
<h5>uri: <span class="tsd-signature-type">string</span></h5>
|
|
743
|
-
</li>
|
|
744
|
-
<li>
|
|
745
|
-
<h5>param: <a href="../interfaces/protocolparam.html" class="tsd-signature-type">ProtocolParam</a></h5>
|
|
746
|
-
<div class="tsd-comment tsd-typography">
|
|
747
|
-
</div>
|
|
748
|
-
</li>
|
|
749
|
-
</ul>
|
|
750
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">APIGatewayProxyEventBase</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">></span>
|
|
751
|
-
<span class="tsd-signature-symbol"> | </span>
|
|
752
|
-
<span class="tsd-signature-type">PublishInput</span>
|
|
753
|
-
<span class="tsd-signature-symbol"> | </span>
|
|
754
|
-
<span class="tsd-signature-type">SendMessageRequest</span>
|
|
755
|
-
</h4>
|
|
756
|
-
</li>
|
|
757
|
-
</ul>
|
|
758
|
-
</section>
|
|
759
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
760
|
-
<a name="aspath" class="tsd-anchor"></a>
|
|
761
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> as<wbr>Path</h3>
|
|
762
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
763
|
-
<li class="tsd-signature tsd-kind-icon">as<wbr>Path<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, cmd<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">string</span></li>
|
|
764
|
-
</ul>
|
|
765
|
-
<ul class="tsd-descriptions">
|
|
766
|
-
<li class="tsd-description">
|
|
767
|
-
<aside class="tsd-sources">
|
|
768
|
-
<ul>
|
|
769
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L92">src/cores/protocol/protocol-service.ts:92</a></li>
|
|
770
|
-
</ul>
|
|
771
|
-
</aside>
|
|
772
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
773
|
-
<ul class="tsd-parameters">
|
|
774
|
-
<li>
|
|
775
|
-
<h5>type: <span class="tsd-signature-type">string</span></h5>
|
|
776
|
-
</li>
|
|
777
|
-
<li>
|
|
778
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> id: <span class="tsd-signature-type">string</span></h5>
|
|
779
|
-
</li>
|
|
780
|
-
<li>
|
|
781
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cmd: <span class="tsd-signature-type">string</span></h5>
|
|
782
|
-
</li>
|
|
783
|
-
</ul>
|
|
784
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
785
|
-
</li>
|
|
786
|
-
</ul>
|
|
787
|
-
</section>
|
|
788
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
789
|
-
<a name="buildprotocoluri" class="tsd-anchor"></a>
|
|
790
|
-
<h3><span class="tsd-flag ts-flagStatic">Static</span> build<wbr>ProtocolURI</h3>
|
|
791
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
792
|
-
<li class="tsd-signature tsd-kind-icon">build<wbr>ProtocolURI<span class="tsd-signature-symbol">(</span>config<span class="tsd-signature-symbol">: </span><a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a>, context<span class="tsd-signature-symbol">: </span><a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a>, protocol<span class="tsd-signature-symbol">: </span><a href="../globals.html#myprotocoltype" class="tsd-signature-type">MyProtocolType</a>, service<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"self"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span>, stage<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">""</span><span class="tsd-signature-symbol"> | </span><a href="../globals.html#stage" class="tsd-signature-type">STAGE</a>, type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span>, cmd<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">string</span></li>
|
|
793
|
-
</ul>
|
|
794
|
-
<ul class="tsd-descriptions">
|
|
795
|
-
<li class="tsd-description">
|
|
796
|
-
<aside class="tsd-sources">
|
|
797
|
-
<ul>
|
|
798
|
-
<li>Defined in <a href="https://github.com/lemoncloud-io/lemon-core/blob/bbba320/src/cores/protocol/protocol-service.ts#L163">src/cores/protocol/protocol-service.ts:163</a></li>
|
|
799
|
-
</ul>
|
|
800
|
-
</aside>
|
|
801
|
-
<div class="tsd-comment tsd-typography">
|
|
802
|
-
<div class="lead">
|
|
803
|
-
<p>helper to build protocol-uri from the current config.</p>
|
|
804
|
-
</div>
|
|
805
|
-
</div>
|
|
806
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
807
|
-
<ul class="tsd-parameters">
|
|
808
|
-
<li>
|
|
809
|
-
<h5>config: <a href="../globals.html#configservice" class="tsd-signature-type">ConfigService</a></h5>
|
|
810
|
-
</li>
|
|
811
|
-
<li>
|
|
812
|
-
<h5>context: <a href="../interfaces/nextcontext.html" class="tsd-signature-type">NextContext</a></h5>
|
|
813
|
-
</li>
|
|
814
|
-
<li>
|
|
815
|
-
<h5>protocol: <a href="../globals.html#myprotocoltype" class="tsd-signature-type">MyProtocolType</a></h5>
|
|
816
|
-
</li>
|
|
817
|
-
<li>
|
|
818
|
-
<h5>service: <span class="tsd-signature-type">"self"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5>
|
|
819
|
-
</li>
|
|
820
|
-
<li>
|
|
821
|
-
<h5>stage: <span class="tsd-signature-type">""</span><span class="tsd-signature-symbol"> | </span><a href="../globals.html#stage" class="tsd-signature-type">STAGE</a></h5>
|
|
822
|
-
</li>
|
|
823
|
-
<li>
|
|
824
|
-
<h5>type: <span class="tsd-signature-type">string</span></h5>
|
|
825
|
-
</li>
|
|
826
|
-
<li>
|
|
827
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> id: <span class="tsd-signature-type">string</span></h5>
|
|
828
|
-
</li>
|
|
829
|
-
<li>
|
|
830
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> cmd: <span class="tsd-signature-type">string</span></h5>
|
|
831
|
-
</li>
|
|
832
|
-
</ul>
|
|
833
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
834
|
-
</li>
|
|
835
|
-
</ul>
|
|
836
|
-
</section>
|
|
837
|
-
</section>
|
|
838
|
-
</div>
|
|
839
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
840
|
-
<nav class="tsd-navigation primary">
|
|
841
|
-
<ul>
|
|
842
|
-
<li class="globals ">
|
|
843
|
-
<a href="../globals.html"><em>Globals</em></a>
|
|
844
|
-
</li>
|
|
845
|
-
</ul>
|
|
846
|
-
</nav>
|
|
847
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
848
|
-
<ul class="before-current">
|
|
849
|
-
</ul>
|
|
850
|
-
<ul class="current">
|
|
851
|
-
<li class="current tsd-kind-class">
|
|
852
|
-
<a href="myprotocolservice.html" class="tsd-kind-icon">My<wbr>Protocol<wbr>Service</a>
|
|
853
|
-
<ul>
|
|
854
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class">
|
|
855
|
-
<a href="myprotocolservice.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
856
|
-
</li>
|
|
857
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
858
|
-
<a href="myprotocolservice.html#config" class="tsd-kind-icon">config</a>
|
|
859
|
-
</li>
|
|
860
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
|
|
861
|
-
<a href="myprotocolservice.html#selfservice" class="tsd-kind-icon">self<wbr>Service</a>
|
|
862
|
-
</li>
|
|
863
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
864
|
-
<a href="myprotocolservice.html#sns" class="tsd-kind-icon">sns</a>
|
|
865
|
-
</li>
|
|
866
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
867
|
-
<a href="myprotocolservice.html#sqs" class="tsd-kind-icon">sqs</a>
|
|
868
|
-
</li>
|
|
869
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
870
|
-
<a href="myprotocolservice.html#web" class="tsd-kind-icon">web</a>
|
|
871
|
-
</li>
|
|
872
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
|
873
|
-
<a href="myprotocolservice.html#report_error" class="tsd-kind-icon">REPORT_<wbr>ERROR</a>
|
|
874
|
-
</li>
|
|
875
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
876
|
-
<a href="myprotocolservice.html#ascallbackuri" class="tsd-kind-icon">as<wbr>CallbackURI</a>
|
|
877
|
-
</li>
|
|
878
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
879
|
-
<a href="myprotocolservice.html#asprotocoluri" class="tsd-kind-icon">as<wbr>ProtocolURI</a>
|
|
880
|
-
</li>
|
|
881
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
882
|
-
<a href="myprotocolservice.html#astransformer" class="tsd-kind-icon">as<wbr>Transformer</a>
|
|
883
|
-
</li>
|
|
884
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
885
|
-
<a href="myprotocolservice.html#broadcast" class="tsd-kind-icon">broadcast</a>
|
|
886
|
-
</li>
|
|
887
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-protected">
|
|
888
|
-
<a href="myprotocolservice.html#doreporterror" class="tsd-kind-icon">do<wbr>Report<wbr>Error</a>
|
|
889
|
-
</li>
|
|
890
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
891
|
-
<a href="myprotocolservice.html#enqueue" class="tsd-kind-icon">enqueue</a>
|
|
892
|
-
</li>
|
|
893
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter">
|
|
894
|
-
<a href="myprotocolservice.html#execute" class="tsd-kind-icon">execute</a>
|
|
895
|
-
</li>
|
|
896
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
897
|
-
<a href="myprotocolservice.html#fromurl" class="tsd-kind-icon">fromURL</a>
|
|
898
|
-
</li>
|
|
899
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
900
|
-
<a href="myprotocolservice.html#hello" class="tsd-kind-icon">hello</a>
|
|
901
|
-
</li>
|
|
902
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
903
|
-
<a href="myprotocolservice.html#myprotocoluri" class="tsd-kind-icon">my<wbr>ProtocolURI</a>
|
|
904
|
-
</li>
|
|
905
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
906
|
-
<a href="myprotocolservice.html#notify" class="tsd-kind-icon">notify</a>
|
|
907
|
-
</li>
|
|
908
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
909
|
-
<a href="myprotocolservice.html#transformevent" class="tsd-kind-icon">transform<wbr>Event</a>
|
|
910
|
-
</li>
|
|
911
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
912
|
-
<a href="myprotocolservice.html#aspath" class="tsd-kind-icon">as<wbr>Path</a>
|
|
913
|
-
</li>
|
|
914
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
|
|
915
|
-
<a href="myprotocolservice.html#buildprotocoluri" class="tsd-kind-icon">build<wbr>ProtocolURI</a>
|
|
916
|
-
</li>
|
|
917
|
-
</ul>
|
|
918
|
-
</li>
|
|
919
|
-
</ul>
|
|
920
|
-
<ul class="after-current">
|
|
921
|
-
</ul>
|
|
922
|
-
</nav>
|
|
923
|
-
</div>
|
|
924
|
-
</div>
|
|
925
|
-
</div>
|
|
926
|
-
<footer class="with-border-bottom">
|
|
927
|
-
<div class="container">
|
|
928
|
-
<h2>Legend</h2>
|
|
929
|
-
<div class="tsd-legend-group">
|
|
930
|
-
<ul class="tsd-legend">
|
|
931
|
-
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
|
|
932
|
-
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
|
|
933
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
934
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
935
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
936
|
-
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
|
|
937
|
-
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
|
|
938
|
-
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
|
|
939
|
-
</ul>
|
|
940
|
-
<ul class="tsd-legend">
|
|
941
|
-
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
|
|
942
|
-
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
|
|
943
|
-
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
|
|
944
|
-
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
|
|
945
|
-
</ul>
|
|
946
|
-
<ul class="tsd-legend">
|
|
947
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
948
|
-
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
|
|
949
|
-
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
|
|
950
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
951
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
|
952
|
-
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
|
|
953
|
-
</ul>
|
|
954
|
-
<ul class="tsd-legend">
|
|
955
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
956
|
-
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
|
957
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
958
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
959
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
960
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
|
|
961
|
-
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
|
|
962
|
-
</ul>
|
|
963
|
-
<ul class="tsd-legend">
|
|
964
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
|
965
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
|
966
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
|
967
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
|
|
968
|
-
</ul>
|
|
969
|
-
<ul class="tsd-legend">
|
|
970
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
|
|
971
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
|
|
972
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
|
|
973
|
-
</ul>
|
|
974
|
-
<ul class="tsd-legend">
|
|
975
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
|
976
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
|
|
977
|
-
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
|
|
978
|
-
</ul>
|
|
979
|
-
<ul class="tsd-legend">
|
|
980
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
|
981
|
-
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
|
|
982
|
-
</ul>
|
|
983
|
-
</div>
|
|
984
|
-
</div>
|
|
985
|
-
</footer>
|
|
986
|
-
<div class="container tsd-generator">
|
|
987
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
988
|
-
</div>
|
|
989
|
-
<div class="overlay"></div>
|
|
990
|
-
<script src="../assets/js/main.js"></script>
|
|
991
|
-
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
|
|
992
|
-
</body>
|
|
993
|
-
</html>
|