rtc4js 0.0.7 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +2 -2
- package/README.md +39 -1
- package/package.json +1 -1
package/.env
CHANGED
|
@@ -2,6 +2,6 @@ RTC4J_TEST_ACCESS_ID=dev.e.hirakawa@gmail.com
|
|
|
2
2
|
RTC4J_TEST_ACCESS_KEY=sUF5m5GWwkpKZG3K9r9v3
|
|
3
3
|
RTC4J_TEST_ENDPOINT=localhost:8082
|
|
4
4
|
RTC4J_TEST_OBJECT_ID=Hx8qKT4ZE5hfozm13c-5d
|
|
5
|
-
RTC4J_TEST_PROJECT_ID=
|
|
5
|
+
RTC4J_TEST_PROJECT_ID=XJ-sbocpVOsKlmaUyzJfT
|
|
6
6
|
RTC4J_TEST_REPORT_ID=HXuoIwN2C5AXtkGJq0eRB
|
|
7
|
-
RTC4J_TEST_WORKSPACE_ID=
|
|
7
|
+
RTC4J_TEST_WORKSPACE_ID=Q0zYXCJGho-er9Mh5FtGD
|
package/README.md
CHANGED
|
@@ -113,6 +113,20 @@ const results = await connector.search(request, ReportResponse.of);
|
|
|
113
113
|
console.log('results', results);
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
+
### Projects - Search reports (Bulk operation)
|
|
117
|
+
> Search reports for multiple projects in this any workspace.
|
|
118
|
+
```js
|
|
119
|
+
import { ReportBulkSearchRequest, ReportResponse } from 'rtc4js';
|
|
120
|
+
|
|
121
|
+
const request = ReportBulkSearchRequest.builder()
|
|
122
|
+
.workspaceId("EXAMPLE WORKSPACE_ID")
|
|
123
|
+
.ids("EXAMPLE PROJECT_ID1", "EXAMPLE PROJECT_ID2")
|
|
124
|
+
.page(0)
|
|
125
|
+
.size(15)
|
|
126
|
+
.build();
|
|
127
|
+
const response = connector.search(request, ReportResponse.of);
|
|
128
|
+
```
|
|
129
|
+
|
|
116
130
|
### Projects - Count reports
|
|
117
131
|
> Count reports for a specific project in this any workspace.
|
|
118
132
|
```js
|
|
@@ -123,7 +137,18 @@ const request = ReportCountRequest.builder()
|
|
|
123
137
|
.projectId('RTC4J_TEST_PROJECT_ID')
|
|
124
138
|
.build();
|
|
125
139
|
const results = await connector.count(request);
|
|
126
|
-
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Projects - Count reports (Bulk operation)
|
|
143
|
+
> Count reports for for multiple projects in this any workspace.
|
|
144
|
+
```js
|
|
145
|
+
import { ReportBulkCountRequest } from 'rtc4js';
|
|
146
|
+
|
|
147
|
+
const request = ReportBulkCountRequest.builder()
|
|
148
|
+
.workspaceId('RTC4J_TEST_WORKSPACE_ID')
|
|
149
|
+
.ids("EXAMPLE PROJECT_ID1", "EXAMPLE PROJECT_ID2")
|
|
150
|
+
.build();
|
|
151
|
+
const results = await connector.count(request);
|
|
127
152
|
```
|
|
128
153
|
|
|
129
154
|
### Projects - Get report
|
|
@@ -297,6 +322,19 @@ const request = ReportDeleteObjectRequest.builder()
|
|
|
297
322
|
await connector.delete(request);
|
|
298
323
|
```
|
|
299
324
|
|
|
325
|
+
### Projects - Aggregate report values
|
|
326
|
+
> Aggregates the values of a report field for multiple projects in this any workspace
|
|
327
|
+
```js
|
|
328
|
+
import { ReportAggregateValueRequest, AggregateValueResponse } from 'rtc4js';
|
|
329
|
+
|
|
330
|
+
const request = ReportAggregateValueRequest.builder()
|
|
331
|
+
.workspaceId('RTC4J_TEST_WORKSPACE_ID')
|
|
332
|
+
.ids("EXAMPLE PROJECT_ID1", "EXAMPLE PROJECT_ID2")
|
|
333
|
+
.fieldId("EXAMPLE_TARGET_FIELD_ID")
|
|
334
|
+
.build();
|
|
335
|
+
const results = await connector.bulkGet(request, AggregateValueResponse.of);
|
|
336
|
+
```
|
|
337
|
+
|
|
300
338
|
### Sample code for report registration
|
|
301
339
|
```js
|
|
302
340
|
function makeDummyFields(): { [key: string]: unknown } {
|
package/package.json
CHANGED