@aj-shadow/actorjs-documentation-text 0.0.0-aj-beta.221
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/.gitattributes +26 -0
- package/Documentation/Document-global-Be-100-more-efficient.txt +31 -0
- package/Documentation/Document-global-actorjs-trigger-mock-and-intercept-anything.txt +21 -0
- package/Documentation/Document-global-advanced-visualization.txt +28 -0
- package/Documentation/Document-global-debugging.txt +4 -0
- package/Documentation/Document-global-divide-and-reuse.txt +37 -0
- package/Documentation/Document-global-general-separation.txt +2 -0
- package/Documentation/Document-global-markup-anchor.txt +6 -0
- package/Documentation/Document-global-markup-api-status.txt +39 -0
- package/Documentation/Document-global-markup-chart-line.txt +18 -0
- package/Documentation/Document-global-markup-documentation-status.txt +39 -0
- package/Documentation/Document-global-markup-documentation.txt +72 -0
- package/Documentation/Document-global-markup-embed.txt +6 -0
- package/Documentation/Document-global-markup-flowchart.txt +88 -0
- package/Documentation/Document-global-markup-html.txt +122 -0
- package/Documentation/Document-global-markup-ie.txt +18 -0
- package/Documentation/Document-global-markup-image.txt +55 -0
- package/Documentation/Document-global-markup-lab.txt +63 -0
- package/Documentation/Document-global-markup-markup.txt +21 -0
- package/Documentation/Document-global-markup-navigation.txt +25 -0
- package/Documentation/Document-global-markup-node-diagram.txt +163 -0
- package/Documentation/Document-global-markup-note.txt +6 -0
- package/Documentation/Document-global-markup-ref.txt +6 -0
- package/Documentation/Document-global-markup-sequence-diagram.txt +215 -0
- package/Documentation/Document-global-markup-state-machine.txt +121 -0
- package/Documentation/Document-global-markup-table.txt +34 -0
- package/Documentation/Document-global-navigation-pane.txt +3 -0
- package/Documentation/Document-global-navigation.txt +2 -0
- package/Documentation/Document-global-specialized-javascript-editors.txt +2 -0
- package/Documentation/Document-global-stacks-connection.txt +2 -0
- package/Documentation/Document-global-stacks-server.txt +2 -0
- package/Documentation/Document-global-test-environment-overview.txt +15 -0
- package/Documentation/Document-global-the-architecture.txt +51 -0
- package/Documentation/Document-global-the-development-environment.txt +5 -0
- package/Documentation/Document-global-the-test-environment.txt +15 -0
- package/Documentation/Document-global-think-ahead.txt +35 -0
- package/Documentation/Document-global-thinking-in-actors-unlimited.txt +1 -0
- package/Documentation/Document-global-what-is-a-stack.txt +2 -0
- package/Documentation/Document-global-why-actorjs.txt +52 -0
- package/Documentation/Document-global-why-actors-unlimited.txt +182 -0
- package/Documentation/Document-global-x-test-case-tool.txt +2 -0
- package/Documentation/Navigation-Documentation-actorjs-global.txt +372 -0
- package/Documentation/Navigation-Documentation-actorsite-global.txt +363 -0
- package/Documentation/abstractions/Document-global-addressing.txt +81 -0
- package/Documentation/abstractions/Document-global-configuration-floor.txt +2 -0
- package/Documentation/abstractions/Document-global-content.txt +3 -0
- package/Documentation/abstractions/Document-global-functions-test.txt +4 -0
- package/Documentation/abstractions/Document-global-functions-unde-test.txt +2 -0
- package/Documentation/abstractions/Document-global-load-test.txt +3 -0
- package/Documentation/abstractions/Document-global-repo.txt +79 -0
- package/Documentation/abstractions/Document-global-shared-data.txt +5 -0
- package/Documentation/abstractions/Document-global-system-to-test.txt +2 -0
- package/Documentation/abstractions/Document-global-system-under-test.txt +3 -0
- package/Documentation/abstractions/Document-global-test-data.txt +251 -0
- package/Documentation/abstractions/Document-global-test-suite.txt +37 -0
- package/Documentation/abstractions/Document-global-verification-data.txt +103 -0
- package/Documentation/abstractions/actor/Document-global-actor-condition.txt +74 -0
- package/Documentation/abstractions/actor/Document-global-actor-local.txt +44 -0
- package/Documentation/abstractions/actor/Document-global-actor-originating.txt +100 -0
- package/Documentation/abstractions/actor/Document-global-actor-proxy.txt +119 -0
- package/Documentation/abstractions/actor/Document-global-actor-terminating.txt +101 -0
- package/Documentation/abstractions/actor/Document-global-actor.txt +90 -0
- package/Documentation/abstractions/actor/Document-global-execution-states.txt +21 -0
- package/Documentation/abstractions/actorpart/Document-global-actorpart.txt +2 -0
- package/Documentation/abstractions/stack/Document-global-client-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-decoder.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-encoder.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-message.txt +4 -0
- package/Documentation/abstractions/stack/Document-global-server-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-stack.txt +12 -0
- package/Documentation/abstractions/stack/Document-global-worker.txt +3 -0
- package/Documentation/abstractions/test-case/Document-global-phases.txt +30 -0
- package/Documentation/abstractions/test-case/Document-global-test-case-result.txt +23 -0
- package/Documentation/abstractions/test-case/Document-global-test-case.txt +199 -0
- package/Documentation/actor-api/Document-global-actor-part.txt +7 -0
- package/Documentation/actor-api/Document-global-actor.txt +375 -0
- package/Documentation/actor-api/Document-global-async.txt +176 -0
- package/Documentation/actor-api/Document-global-client-stack.txt +215 -0
- package/Documentation/actor-api/Document-global-content.txt +106 -0
- package/Documentation/actor-api/Document-global-logger.txt +426 -0
- package/Documentation/actor-api/Document-global-process.txt +7 -0
- package/Documentation/actor-api/Document-global-server-stack.txt +213 -0
- package/Documentation/actor-api/Document-global-shared-data.txt +259 -0
- package/Documentation/actor-api/Document-global-test-data.txt +816 -0
- package/Documentation/actor-api/Document-global-timer.txt +70 -0
- package/Documentation/actor-api/Document-global-verification-data.txt +624 -0
- package/Documentation/connection-worker-api/Document-global-logger.txt +3 -0
- package/Documentation/documentation-references.json +199 -0
- package/Documentation/embedded/Document-global-test-case-result.txt +10 -0
- package/Documentation/howto/Document-global-create-actor.txt +1 -0
- package/Documentation/howto/Document-global-create-stack.txt +1 -0
- package/Documentation/howto/Document-global-create-test-case.txt +1 -0
- package/Documentation/howto/Document-global-create-test-suite.txt +1 -0
- package/Documentation/howto/Document-global-define-addresses.txt +1 -0
- package/Documentation/howto/Document-global-define-fut.txt +1 -0
- package/Documentation/howto/Document-global-define-sut.txt +16 -0
- package/Documentation/howto/Document-global-full-workflow.txt +143 -0
- package/Documentation/howto/Document-global-normal-workflow.txt +58 -0
- package/Documentation/howto/Document-global-prerequisites.txt +8 -0
- package/Documentation/howto/prerequisites/Document-global-install-actorjs.txt +64 -0
- package/Documentation/howto/prerequisites/Document-global-install-git.txt +26 -0
- package/Documentation/howto/prerequisites/Document-global-install-nodejs.txt +19 -0
- package/Documentation/markup/Document-global-markup-test-case.txt +6 -0
- package/Documentation/markup/Document-global-markup-test-suite.txt +13 -0
- package/Documentation/markup/embed/Document-global-inner_markup_tc.txt +164 -0
- package/Documentation/nodejs-api/Document-global-fs.txt +7 -0
- package/Documentation/stack-api/Document-global-ascii-dictionary.txt +108 -0
- package/Documentation/stack-api/Document-global-binary-log.txt +91 -0
- package/Documentation/stack-api/Document-global-bit-byte.txt +80 -0
- package/Documentation/stack-api/Document-global-content-base.txt +169 -0
- package/Documentation/stack-api/Document-global-ip-log.txt +101 -0
- package/Documentation/stack-api/Document-global-log-inner.txt +152 -0
- package/Documentation/stack-api/Document-global-log-part-error.txt +12 -0
- package/Documentation/stack-api/Document-global-log-part-ref.txt +80 -0
- package/Documentation/stack-api/Document-global-log-part-text.txt +81 -0
- package/Documentation/tools/Document-global-actors.txt +196 -0
- package/Documentation/tools/Document-global-addressing.txt +38 -0
- package/Documentation/tools/Document-global-content.txt +1 -0
- package/Documentation/tools/Document-global-global-test-data.txt +197 -0
- package/Documentation/tools/Document-global-stacks.txt +1 -0
- package/Documentation/tools/Document-global-test-case-analyze.txt +3 -0
- package/Documentation/tools/Document-global-test-case-debug.txt +16 -0
- package/Documentation/tools/Document-global-test-case-definition.txt +37 -0
- package/Documentation/tools/Document-global-test-case-execution.txt +28 -0
- package/Documentation/tools/Document-global-test-case-log.txt +95 -0
- package/Documentation/tools/Document-global-test-case-sequence-diagram.txt +17 -0
- package/Documentation/tools/Document-global-test-case-specification.txt +3 -0
- package/Documentation/tools/Document-global-test-cases.txt +11 -0
- package/Documentation/tools/Document-global-tool-test-suite.txt +202 -0
- package/Education/Document-global-add-your-first-addresses.txt +75 -0
- package/Education/Document-global-define-your-first-sut.txt +18 -0
- package/Education/Document-global-make-your-first-actors.txt +35 -0
- package/Education/Document-global-make-your-first-test-case.txt +43 -0
- package/Education/Document-global-make-your-first-test-suite.txt +29 -0
- package/Education/Document-global-share-your-work.txt +35 -0
- package/Education/Navigation-Education-actorjs-global.txt +31 -0
- package/LICENSE.txt +96 -0
- package/README.md +5 -0
- package/Workshop/Document-global-actordemo-image-ai.txt +5 -0
- package/Workshop/Document-global-actordemo-login.txt +10 -0
- package/Workshop/Document-global-actordemo-site.txt +3 -0
- package/Workshop/Document-global-actordemo-start.txt +5 -0
- package/Workshop/Document-global-actordemo-the-architecture.txt +27 -0
- package/Workshop/Document-global-introduction-actor.txt +84 -0
- package/Workshop/Document-global-introduction-actorjs.txt +42 -0
- package/Workshop/Document-global-introduction-stack.txt +25 -0
- package/Workshop/Document-global-introduction-system-under-test.txt +102 -0
- package/Workshop/Document-global-introduction-test-case.txt +50 -0
- package/Workshop/Document-global-introduction-test-suite.txt +31 -0
- package/Workshop/Document-global-login-with-puppeter.txt +45 -0
- package/Workshop/Document-global-mock-with-http.txt +83 -0
- package/Workshop/Document-global-mock-with-icap.txt +94 -0
- package/Workshop/Document-global-prerequisites-actorJs.txt +18 -0
- package/Workshop/Document-global-prerequisites-actordemo.txt +15 -0
- package/Workshop/Document-global-trigger-with-http.txt +93 -0
- package/Workshop/Document-global-trigger-with-puppeter.txt +49 -0
- package/Workshop/Navigation-Workshop-actorjs-global.txt +86 -0
- package/npm-shrinkwrap.json +13 -0
- package/package.json +10 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# **IpLog API**
|
|
2
|
+
[[API-STATUS=STABLE, ]]
|
|
3
|
+
[[DOC-STATUS=FULLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"7166df59-0b52-4fdd-aceb-e9bc07ad1e30"}]]
|
|
6
|
+
[[ANCHOR={"id":"ac7a94aa-9d10-4196-93bb-2edf5f1f8b63","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
Class to create logs. The IpLog object will be a member of either the Encoder or Decoder.
|
|
9
|
+
|
|
10
|
+
[[NOTE={"guid":"6dd192ef-b476-4abf-8591-9ca04a882fa0"}]]
|
|
11
|
+
[[ANCHOR={"id":"eed66ffe-38a2-4ea3-868a-8faefc518c7d","visible":true}]]
|
|
12
|
+
## **API Methods**
|
|
13
|
+
* **[addLog](#stack-api-ip-log-addLog)**
|
|
14
|
+
* **[setCaption](#stack-api-ip-log-set-caption)**
|
|
15
|
+
|
|
16
|
+
***
|
|
17
|
+
[[NOTE={"guid":"861c29cb-5a9d-4d53-abf4-29d334db4d49"}]]
|
|
18
|
+
[[ANCHOR={"id":"stack-api-ip-log-addLog","visible":true}]]
|
|
19
|
+
### **addLog**
|
|
20
|
+
```
|
|
21
|
+
ipLog.addLog(innerLog);
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[NOTE={"guid":"f648e1ab-8bbf-45d7-8bff-ebdc9a5744d1"}]]
|
|
25
|
+
[[ANCHOR={"id":"4455d571-5cf9-4289-8c32-001874821966","visible":true}]]
|
|
26
|
+
#### **Method Description**
|
|
27
|
+
Adds a log or a part of a log.
|
|
28
|
+
|
|
29
|
+
```table
|
|
30
|
+
Config(classHeading: )
|
|
31
|
+
|
|
32
|
+
|Parameters |
|
|
33
|
+
|Name |Type |Description |
|
|
34
|
+
|innerLog|[[REF=,API_Stack_Log_Inner]]|The [[REF=,API_Stack_Log_Inner]] to be added.|
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```table
|
|
38
|
+
Config(classHeading: )
|
|
39
|
+
|
|
40
|
+
|Returns |
|
|
41
|
+
|Type |Description |
|
|
42
|
+
|[[REF=,API_Stack_Log_Inner]]|The added [[REF=,API_Stack_Log_Inner]] object.|
|
|
43
|
+
```
|
|
44
|
+
[[NOTE={"guid":"10c93146-9d6c-4c51-8583-25fea31a1a3f"}]]
|
|
45
|
+
[[ANCHOR={"id":"a48029f4-39b2-4e5a-977a-b481fa09ca77","visible":true}]]
|
|
46
|
+
#### **Example adding a LogInner**
|
|
47
|
+
The method in the example is a member of a Decoder inheriting from the StackApi.Decoder.
|
|
48
|
+
|
|
49
|
+
```javascript
|
|
50
|
+
|
|
51
|
+
*decodeHeaders() {
|
|
52
|
+
while(this._parseHeaderLine(yield* this.receiveLine()));
|
|
53
|
+
if(this.isLogIp) {
|
|
54
|
+
this.addLog(HttpInnerLog.createHeaders(this.msg));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
[[NOTE={"guid":"2e15604d-bf18-4a4d-b55c-5af88f263b31"}]]
|
|
63
|
+
[[ANCHOR={"id":"stack-api-ip-log-set-caption","visible":true}]]
|
|
64
|
+
### **setCaption**
|
|
65
|
+
```
|
|
66
|
+
ipLog.setCaption(caption);
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
[[NOTE={"guid":"76ddc91e-4eea-4c38-960b-1b89331be0b9"}]]
|
|
70
|
+
[[ANCHOR={"id":"15336b7a-74aa-48d0-bf5e-78bcf7a913b1","visible":true}]]
|
|
71
|
+
#### **Method Description**
|
|
72
|
+
Sets the caption of a log.
|
|
73
|
+
|
|
74
|
+
```table
|
|
75
|
+
Config(classHeading: )
|
|
76
|
+
|
|
77
|
+
|Parameters |
|
|
78
|
+
|Name |Type |Description |
|
|
79
|
+
|caption|[[REF=, MDN_string]]|The caption of the log.|
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
[[NOTE={"guid":"a8f2047d-4e4d-44f6-859c-d1711723ea3f"}]]
|
|
83
|
+
[[ANCHOR={"id":"a695c2f90-e17b-4e2f-9ed7-ac3083a8d3b9","visible":true}]]
|
|
84
|
+
#### **Example adding a LogInner**
|
|
85
|
+
The method in the example is a member of a Decoder inheriting from the StackApi.Decoder.
|
|
86
|
+
|
|
87
|
+
```javascript
|
|
88
|
+
|
|
89
|
+
*_receiveAll() {
|
|
90
|
+
yield* this._decodeHeader();
|
|
91
|
+
yield* this._decodeAvps();
|
|
92
|
+
if(this.isLogIp) {
|
|
93
|
+
this.addLog(DiameterInnerLog.createHeader(this.msg));
|
|
94
|
+
this.addLog(DiameterInnerLog.createAvps(this.msg.avps));
|
|
95
|
+
this.setCaption(DiameterInnerLog.createCaption(this.msg, this.externalDecoding ? this.externalDecoding.commandCode : undefined));
|
|
96
|
+
this.logMessage();
|
|
97
|
+
}
|
|
98
|
+
return this.msg;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
```
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# **LogInner API**
|
|
2
|
+
[[API-STATUS=STABLE, ]]
|
|
3
|
+
[[DOC-STATUS=MOSTLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"9d6013a8-d50d-44b2-8baf-87239a120283"}]]
|
|
6
|
+
[[ANCHOR={"id":"6812d1d7-1e95-4f67-9027-ba47b197a1ce","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
Class to add inner logs to the ipLog. The inner log can contain other inner logs or log parts that are written in the log. With help of the InnerLog object can you build a tree of log data.
|
|
9
|
+
|
|
10
|
+
[[NOTE={"guid":"33aa6a2d-a262-4247-8cb3-f7bfe15402c8"}]]
|
|
11
|
+
[[ANCHOR={"id":"95eef9a0-9ca8-45c2-a4d1-9985b97f374e","visible":true}]]
|
|
12
|
+
## **API Methods**
|
|
13
|
+
* **[constructor](#stack-api-log-inner-constructor)**
|
|
14
|
+
* **[add](#stack-api-log-inner-add)**
|
|
15
|
+
|
|
16
|
+
***
|
|
17
|
+
[[NOTE={"guid":"9e844b49-3034-435a-bff5-2308978fc034"}]]
|
|
18
|
+
[[ANCHOR={"id":"stack-api-log-inner-constructor","visible":true}]]
|
|
19
|
+
### **constructor**
|
|
20
|
+
```
|
|
21
|
+
new LogInner(logParts, inner, open);
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[NOTE={"guid":"e1d766a7-ff19-4ffa-ae5e-d07bf41a0f65"}]]
|
|
25
|
+
[[ANCHOR={"id":"e7527b8b-7da3-481b-a237-144813b226f7","visible":true}]]
|
|
26
|
+
#### **Method Description**
|
|
27
|
+
|
|
28
|
+
Creates an inner log.
|
|
29
|
+
```table
|
|
30
|
+
Config(classHeading: )
|
|
31
|
+
|
|
32
|
+
|Parameters |
|
|
33
|
+
|Name |Type |Description |
|
|
34
|
+
|logParts|[[REF=, MDN_string]] | [[REF=,API_Stack_Log_Part_Text]] | [[REF=,API_Stack_Log_Part_Ref]] | [[[REF=,API_Stack_Log_Part_Text]] | [[REF=,API_Stack_Log_Part_Ref]]]|Log parts, text or uri. |
|
|
35
|
+
|inner |[[REF=,API_Stack_Log_Inner]] | [[REF=,API_Stack_Log_Inner_Array]] |Inner log object(s). |
|
|
36
|
+
|open |[[REF=, MDN_boolean]] |Decides if the innerLog objects are open by default.|
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
```table
|
|
40
|
+
Config(classHeading: )
|
|
41
|
+
|
|
42
|
+
|Returns |
|
|
43
|
+
|Type |Description |
|
|
44
|
+
|[[REF=,API_Stack_Log_Inner]]|The created [[REF=,API_Stack_Log_Inner]] object.|
|
|
45
|
+
```
|
|
46
|
+
[[NOTE={"guid":"026943a3-6e35-4ad6-a0dc-d70835527ec5"}]]
|
|
47
|
+
[[ANCHOR={"id":"f6fc97f2-9a56-4d63-8ca8-d1faa1dc5877","visible":true}]]
|
|
48
|
+
#### **Example using LogInner**
|
|
49
|
+
|
|
50
|
+
```javascript
|
|
51
|
+
|
|
52
|
+
const StackApi = require('stack-api');
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
static generateLog(msg, ipLogs) {
|
|
56
|
+
const innerLog = new StackApi.LogInner(msg.msgId);
|
|
57
|
+
ipLogs.push(innerLog);
|
|
58
|
+
|
|
59
|
+
if('INVITE' === msg.msgId) {
|
|
60
|
+
const innerParts = [];
|
|
61
|
+
innerParts.push(new StackApi.LogPartText('msg: '));
|
|
62
|
+
innerParts.push(new StackApi.LogPartText(msg.msg));
|
|
63
|
+
innerParts.push(new StackApi.LogPartText(' - see InnerLog help: '));
|
|
64
|
+
innerParts.push(new StackApi.LogPartRef('InnerLog help', '/documentation/stack-api/log-inner'));
|
|
65
|
+
innerLog.add(new StackApi.LogInner(innerParts));
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
const innerParts = [];
|
|
69
|
+
innerParts.push(new StackApi.LogPartText('msg: '));
|
|
70
|
+
innerParts.push(new StackApi.LogPartText(msg.msg));
|
|
71
|
+
innerParts.push(new StackApi.LogPartText(' - see LogPartRef help: '));
|
|
72
|
+
innerParts.push(new StackApi.LogPartRef('LogPartRef help', '/documentation/stack-api/log-part-ref'));
|
|
73
|
+
innerLog.add(new StackApi.LogInner(innerParts));
|
|
74
|
+
}
|
|
75
|
+
return msg.msgId;
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
[[NOTE={"guid":"0a72fb99-d780-4900-916d-df4cbd2b9928"}]]
|
|
80
|
+
[[ANCHOR={"id":"3e59d392-a75d-4a03-a964-d8369dffb277","visible":true}]]
|
|
81
|
+
#### **Test Cases constructor**
|
|
82
|
+
+ [DocStackApiText](/../test-cases/Actor/Doc/DocStackApiText/definition)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
[[NOTE={"guid":"37fda9fc-ee65-4f4d-8cc8-8f63d2357174"}]]
|
|
87
|
+
[[ANCHOR={"id":"stack-api-log-inner-add","visible":true}]]
|
|
88
|
+
### **add**
|
|
89
|
+
```
|
|
90
|
+
innerLog.add(new LogInner(logParts, inner, open));
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
[[NOTE={"guid":"0ccec19d-f483-447d-97f3-8a05a6919a05"}]]
|
|
94
|
+
[[ANCHOR={"id":"51e74c5d-e65e-4a3c-ae79-f600f9971882","visible":true}]]
|
|
95
|
+
#### **Method Description**
|
|
96
|
+
|
|
97
|
+
Adds an inner log to another inner log.
|
|
98
|
+
|
|
99
|
+
```table
|
|
100
|
+
Config(classHeading: )
|
|
101
|
+
|
|
102
|
+
|Parameters |
|
|
103
|
+
|Name |Type |Description |
|
|
104
|
+
|inner|[[REF=,API_Stack_Log_Inner]]|The [[REF=,API_Stack_Log_Inner]] to be added.|
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
```table
|
|
108
|
+
Config(classHeading: )
|
|
109
|
+
|
|
110
|
+
|Returns |
|
|
111
|
+
|Type |Description |
|
|
112
|
+
|[[REF=,API_Stack_Log_Inner]]|The added [[REF=,API_Stack_Log_Inner]] object.|
|
|
113
|
+
```
|
|
114
|
+
[[NOTE={"guid":"cb632fe1-3527-4703-9867-5732dab67feb"}]]
|
|
115
|
+
[[ANCHOR={"id":"f2ce7ff4-dd2e-45c3-89db-b3385a1a727d","visible":true}]]
|
|
116
|
+
#### **Example adding a LogInner**
|
|
117
|
+
|
|
118
|
+
```javascript
|
|
119
|
+
|
|
120
|
+
const StackApi = require('stack-api');
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
static generateLog(msg, ipLogs) {
|
|
124
|
+
const innerLog = new StackApi.LogInner(msg.msgId);
|
|
125
|
+
ipLogs.push(innerLog);
|
|
126
|
+
|
|
127
|
+
if('INVITE' === msg.msgId) {
|
|
128
|
+
const innerParts = [];
|
|
129
|
+
innerParts.push(new StackApi.LogPartText('msg: '));
|
|
130
|
+
innerParts.push(new StackApi.LogPartText(msg.msg));
|
|
131
|
+
innerParts.push(new StackApi.LogPartText(' - see InnerLog help: '));
|
|
132
|
+
innerParts.push(new StackApi.LogPartRef('InnerLog help', '/documentation/stack-api/log-inner'));
|
|
133
|
+
innerLog.add(new StackApi.LogInner(innerParts));
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
const innerParts = [];
|
|
137
|
+
innerParts.push(new StackApi.LogPartText('msg: '));
|
|
138
|
+
innerParts.push(new StackApi.LogPartText(msg.msg));
|
|
139
|
+
innerParts.push(new StackApi.LogPartText(' - see LogPartRef help: '));
|
|
140
|
+
innerParts.push(new StackApi.LogPartRef('LogPartRef help', '/documentation/stack-api/log-part-ref'));
|
|
141
|
+
innerLog.add(new StackApi.LogInner(innerParts));
|
|
142
|
+
}
|
|
143
|
+
return msg.msgId;
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
[[NOTE={"guid":"2ce3dd14-7178-45ef-b0a7-411a1964b9ec"}]]
|
|
148
|
+
[[ANCHOR={"id":"7a0ab84c-8b9a-4cbc-882f-2e7b3d642248","visible":true}]]
|
|
149
|
+
#### **Test Cases add**
|
|
150
|
+
+ [DocStackApiText](/../test-cases/Actor/Doc/DocStackApiText/definition)
|
|
151
|
+
|
|
152
|
+
***
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# **LogPartError API**
|
|
2
|
+
[[API-STATUS=STABLE,]]
|
|
3
|
+
[[DOC-STATUS=NOT-YET, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"dc119889-9217-4225-9a8f-8da3462b11f6"}]]
|
|
6
|
+
[[ANCHOR={"id":"969b8a40-689a-4f03-9ae5-c70ba8de2bb1","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
|
|
9
|
+
[[NOTE={"guid":"36639541-1d94-4876-a43f-c42956532911"}]]
|
|
10
|
+
[[ANCHOR={"id":"8b5c98aa-5c56-426c-ad42-27bd0ad2a606","visible":true}]]
|
|
11
|
+
## **API Methods**
|
|
12
|
+
* **[constructor](#stack-api-constructor)**
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# **LogPartRef API**
|
|
2
|
+
[[API-STATUS=STABLE, ]]
|
|
3
|
+
[[DOC-STATUS=FULLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"2d4c23b9-b3cd-46c7-9138-95eb7da954f1"}]]
|
|
6
|
+
[[ANCHOR={"id":"85769236-57dd-4e0d-b23c-d05214af923c","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
|
|
9
|
+
[[NOTE={"guid":"ebb16afd-49a8-4911-9ddb-52447bbca49a"}]]
|
|
10
|
+
[[ANCHOR={"id":"d82a1cf5-0b25-453c-a648-71c4eca91ec0","visible":true}]]
|
|
11
|
+
## **API Methods**
|
|
12
|
+
* **[constructor](#stack-api-log-part-ref-constructor)**
|
|
13
|
+
|
|
14
|
+
***
|
|
15
|
+
[[NOTE={"guid":"762dd0e8-7cc5-449f-b4d4-45d9fcc0c1f4"}]]
|
|
16
|
+
[[ANCHOR={"id":"stack-api-log-part-ref-constructor","visible":true}]]
|
|
17
|
+
### **constructor**
|
|
18
|
+
```
|
|
19
|
+
new LogPartRef(text, ref);
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[NOTE={"guid":"18be59ce-596e-4bf0-858d-ec264cd6e937"}]]
|
|
23
|
+
[[ANCHOR={"id":"6971f371-cba1-49dd-9077-e6f7595360a9","visible":true}]]
|
|
24
|
+
#### **Method Description**
|
|
25
|
+
|
|
26
|
+
Creates an a anchor link in an inner log.
|
|
27
|
+
```table
|
|
28
|
+
Config(classHeading: )
|
|
29
|
+
|
|
30
|
+
|Parameters |
|
|
31
|
+
|Name|Type |Description |
|
|
32
|
+
|text|[[REF=, MDN_string]]|The text. |
|
|
33
|
+
|ref |[[REF=, MDN_string]]|The url witch the referense leads to.|
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```table
|
|
37
|
+
Config(classHeading: )
|
|
38
|
+
|
|
39
|
+
|Returns |
|
|
40
|
+
|Type |Description |
|
|
41
|
+
|[[REF=,API_Stack_Log_Part_Ref]]|The created [[REF=,API_Stack_Log_Part_Ref]] object.|
|
|
42
|
+
```
|
|
43
|
+
[[NOTE={"guid":"affe69f1-8ad6-4644-a5a7-f1911cf049b2"}]]
|
|
44
|
+
[[ANCHOR={"id":"83df9526-5fcb-462b-b46a-439c04e743ea","visible":true}]]
|
|
45
|
+
#### **Example using LogPartRef**
|
|
46
|
+
|
|
47
|
+
```javascript
|
|
48
|
+
|
|
49
|
+
const StackApi = require('stack-api');
|
|
50
|
+
|
|
51
|
+
static generateLog(msg, ipLogs) {
|
|
52
|
+
const innerLog = new StackApi.LogInner(msg.msgId);
|
|
53
|
+
ipLogs.push(innerLog);
|
|
54
|
+
|
|
55
|
+
if('INVITE' === msg.msgId) {
|
|
56
|
+
const innerParts = [];
|
|
57
|
+
innerParts.push(new StackApi.LogPartText('msg: '));
|
|
58
|
+
innerParts.push(new StackApi.LogPartText(msg.msg));
|
|
59
|
+
innerParts.push(new StackApi.LogPartText(' - see InnerLog help: '));
|
|
60
|
+
innerParts.push(new StackApi.LogPartRef('InnerLog help', '/documentation/stack-api/log-inner'));
|
|
61
|
+
innerLog.add(new StackApi.LogInner(innerParts));
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const innerParts = [];
|
|
65
|
+
innerParts.push(new StackApi.LogPartText('msg: '));
|
|
66
|
+
innerParts.push(new StackApi.LogPartText(msg.msg));
|
|
67
|
+
innerParts.push(new StackApi.LogPartText(' - see LogPartRef help: '));
|
|
68
|
+
innerParts.push(new StackApi.LogPartRef('LogPartRef help', '/documentation/stack-api/log-part-ref'));
|
|
69
|
+
innerLog.add(new StackApi.LogInner(innerParts));
|
|
70
|
+
}
|
|
71
|
+
return msg.msgId;
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
[[NOTE={"guid":"0d4551a1-f0dd-4750-987f-a25f85efb474"}]]
|
|
76
|
+
[[ANCHOR={"id":"9603d93b-4a61-46fe-8d52-2fb773d6629b","visible":true}]]
|
|
77
|
+
#### **Test Cases constructor**
|
|
78
|
+
+ [DocStackApiText](/../test-cases/Actor/Doc/DocStackApiText/definition)
|
|
79
|
+
|
|
80
|
+
***
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# **LogPartText API**
|
|
2
|
+
[[API-STATUS=STABLE, ]]
|
|
3
|
+
[[DOC-STATUS=FULLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"3d34babf-7d42-46bc-8dcb-01dc65a6cf8e"}]]
|
|
6
|
+
[[ANCHOR={"id":"3b7693b8-e3b0-4b9f-abfb-f6f9a9ce0843","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
The LogPartText object writes a text in an inner log, [[REF=, API_Stack_Log_Inner]].
|
|
9
|
+
|
|
10
|
+
[[NOTE={"guid":"619cacb8-e2fe-44a0-9afc-8af10288a88d"}]]
|
|
11
|
+
[[ANCHOR={"id":"dfafa600-238e-48c1-af41-48fac3c601a1","visible":true}]]
|
|
12
|
+
## **API Methods**
|
|
13
|
+
* **[constructor](#stack-api-log-part-text-constructor)**
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
[[NOTE={"guid":"72d4a0f3-a380-47b9-8963-44304bc18cb0"}]]
|
|
17
|
+
[[ANCHOR={"id":"stack-api-log-part-text-constructor","visible":true}]]
|
|
18
|
+
### **constructor**
|
|
19
|
+
```
|
|
20
|
+
new LogPartText(text);
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[NOTE={"guid":"f753ab57-d161-43dd-ae5e-f768eb7e46da"}]]
|
|
24
|
+
[[ANCHOR={"id":"2b20ac05-75fb-492e-8307-12ce4ca844a9","visible":true}]]
|
|
25
|
+
#### **Method Description**
|
|
26
|
+
|
|
27
|
+
Creates an a text in an inner log.
|
|
28
|
+
```table
|
|
29
|
+
Config(classHeading: )
|
|
30
|
+
|
|
31
|
+
|Parameters |
|
|
32
|
+
|Name|Type |Description|
|
|
33
|
+
|text|[[REF=, MDN_string]]|The text. |
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```table
|
|
37
|
+
Config(classHeading: )
|
|
38
|
+
|
|
39
|
+
|Returns |
|
|
40
|
+
|Type |Description |
|
|
41
|
+
|[[REF=,API_Stack_Log_Part_Text]]|The created [[REF=,API_Stack_Log_Part_Text]] object.|
|
|
42
|
+
```
|
|
43
|
+
[[NOTE={"guid":"1299fc8d-b321-4835-9455-2752267ac696"}]]
|
|
44
|
+
[[ANCHOR={"id":"ee6d08f4-d3a2-4305-8d18-7c08a2703acf","visible":true}]]
|
|
45
|
+
#### **Example using LogPartText**
|
|
46
|
+
|
|
47
|
+
```javascript
|
|
48
|
+
|
|
49
|
+
const StackApi = require('stack-api');
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
static generateLog(msg, ipLogs) {
|
|
53
|
+
const innerLog = new StackApi.LogInner(msg.msgId);
|
|
54
|
+
ipLogs.push(innerLog);
|
|
55
|
+
|
|
56
|
+
if('INVITE' === msg.msgId) {
|
|
57
|
+
const innerParts = [];
|
|
58
|
+
innerParts.push(new StackApi.LogPartText('msg: '));
|
|
59
|
+
innerParts.push(new StackApi.LogPartText(msg.msg));
|
|
60
|
+
innerParts.push(new StackApi.LogPartText(' - see InnerLog help: '));
|
|
61
|
+
innerParts.push(new StackApi.LogPartRef('InnerLog help', '/documentation/stack-api/log-inner'));
|
|
62
|
+
innerLog.add(new StackApi.LogInner(innerParts));
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const innerParts = [];
|
|
66
|
+
innerParts.push(new StackApi.LogPartText('msg: '));
|
|
67
|
+
innerParts.push(new StackApi.LogPartText(msg.msg));
|
|
68
|
+
innerParts.push(new StackApi.LogPartText(' - see LogPartRef help: '));
|
|
69
|
+
innerParts.push(new StackApi.LogPartRef('LogPartRef help', '/documentation/stack-api/log-part-ref'));
|
|
70
|
+
innerLog.add(new StackApi.LogInner(innerParts));
|
|
71
|
+
}
|
|
72
|
+
return msg.msgId;
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
[[NOTE={"guid":"f886020b-0eaf-4aa8-a8de-6a6a2be55b7d"}]]
|
|
77
|
+
[[ANCHOR={"id":"64c76f24-4c37-452a-b610-1f2ed46b61d5","visible":true}]]
|
|
78
|
+
#### **Test Cases constructor**
|
|
79
|
+
+ [DocStackApiText](/../test-cases/Actor/Doc/DocStackApiText/definition)
|
|
80
|
+
|
|
81
|
+
***
|