@fatehan/tsrp 1.1.8 → 1.1.9

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.
@@ -8,421 +8,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.FilterScope = exports.FilterConditions = exports.AreaIndexResponse = exports.AreaIndexRequest = exports.MeResponse = exports.MeRequest = exports.DeviceResponse = exports.DeviceRequest_QueryFilterEntry = exports.DeviceRequest = exports.ConfigResponse = exports.ConfigRequest = exports.WorkflowRequest_QueryFilterEntry = exports.WorkflowRequest = exports.WorkflowResponse = exports.protobufPackage = void 0;
11
+ exports.FilterScope = exports.FilterConditions = exports.AreaIndexResponse = exports.AreaIndexRequest = exports.MeResponse = exports.MeRequest = exports.DeviceResponse = exports.DeviceRequest_QueryFilterEntry = exports.DeviceRequest = exports.ConfigResponse = exports.ConfigRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const wire_1 = require("@bufbuild/protobuf/wire");
14
14
  const long_1 = __importDefault(require("long"));
15
- const workflow_1 = require("../activities/workflow");
16
15
  const area_1 = require("../areas/area");
17
16
  const financial_1 = require("../financial/financial");
18
17
  const identities_1 = require("../identities/identities");
19
18
  const models_1 = require("../models/models");
20
19
  const repositories_1 = require("./repositories");
21
20
  exports.protobufPackage = "com.fatehan.services";
22
- function createBaseWorkflowResponse() {
23
- return { currentPage: 0, from: 0, to: 0, lastPage: 0, perPage: 0, cost: long_1.default.ZERO, total: 0, data: [] };
24
- }
25
- exports.WorkflowResponse = {
26
- encode(message, writer = new wire_1.BinaryWriter()) {
27
- if (message.currentPage !== 0) {
28
- writer.uint32(8).uint32(message.currentPage);
29
- }
30
- if (message.from !== 0) {
31
- writer.uint32(16).uint32(message.from);
32
- }
33
- if (message.to !== 0) {
34
- writer.uint32(24).uint32(message.to);
35
- }
36
- if (message.lastPage !== 0) {
37
- writer.uint32(32).uint32(message.lastPage);
38
- }
39
- if (message.perPage !== 0) {
40
- writer.uint32(40).uint32(message.perPage);
41
- }
42
- if (!message.cost.equals(long_1.default.ZERO)) {
43
- writer.uint32(48).sint64(message.cost.toString());
44
- }
45
- if (message.total !== 0) {
46
- writer.uint32(56).uint32(message.total);
47
- }
48
- for (const v of message.data) {
49
- workflow_1.Workflow.encode(v, writer.uint32(66).fork()).join();
50
- }
51
- return writer;
52
- },
53
- decode(input, length) {
54
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
55
- const end = length === undefined ? reader.len : reader.pos + length;
56
- const message = createBaseWorkflowResponse();
57
- while (reader.pos < end) {
58
- const tag = reader.uint32();
59
- switch (tag >>> 3) {
60
- case 1: {
61
- if (tag !== 8) {
62
- break;
63
- }
64
- message.currentPage = reader.uint32();
65
- continue;
66
- }
67
- case 2: {
68
- if (tag !== 16) {
69
- break;
70
- }
71
- message.from = reader.uint32();
72
- continue;
73
- }
74
- case 3: {
75
- if (tag !== 24) {
76
- break;
77
- }
78
- message.to = reader.uint32();
79
- continue;
80
- }
81
- case 4: {
82
- if (tag !== 32) {
83
- break;
84
- }
85
- message.lastPage = reader.uint32();
86
- continue;
87
- }
88
- case 5: {
89
- if (tag !== 40) {
90
- break;
91
- }
92
- message.perPage = reader.uint32();
93
- continue;
94
- }
95
- case 6: {
96
- if (tag !== 48) {
97
- break;
98
- }
99
- message.cost = long_1.default.fromString(reader.sint64().toString());
100
- continue;
101
- }
102
- case 7: {
103
- if (tag !== 56) {
104
- break;
105
- }
106
- message.total = reader.uint32();
107
- continue;
108
- }
109
- case 8: {
110
- if (tag !== 66) {
111
- break;
112
- }
113
- message.data.push(workflow_1.Workflow.decode(reader, reader.uint32()));
114
- continue;
115
- }
116
- }
117
- if ((tag & 7) === 4 || tag === 0) {
118
- break;
119
- }
120
- reader.skip(tag & 7);
121
- }
122
- return message;
123
- },
124
- fromJSON(object) {
125
- return {
126
- currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
127
- from: isSet(object.from) ? globalThis.Number(object.from) : 0,
128
- to: isSet(object.to) ? globalThis.Number(object.to) : 0,
129
- lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
130
- perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
131
- cost: isSet(object.cost) ? long_1.default.fromValue(object.cost) : long_1.default.ZERO,
132
- total: isSet(object.total) ? globalThis.Number(object.total) : 0,
133
- data: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.data) ? object.data.map((e) => workflow_1.Workflow.fromJSON(e)) : [],
134
- };
135
- },
136
- toJSON(message) {
137
- var _a;
138
- const obj = {};
139
- if (message.currentPage !== 0) {
140
- obj.current_page = Math.round(message.currentPage);
141
- }
142
- if (message.from !== 0) {
143
- obj.from = Math.round(message.from);
144
- }
145
- if (message.to !== 0) {
146
- obj.to = Math.round(message.to);
147
- }
148
- if (message.lastPage !== 0) {
149
- obj.last_page = Math.round(message.lastPage);
150
- }
151
- if (message.perPage !== 0) {
152
- obj.per_page = Math.round(message.perPage);
153
- }
154
- if (!message.cost.equals(long_1.default.ZERO)) {
155
- obj.cost = (message.cost || long_1.default.ZERO).toString();
156
- }
157
- if (message.total !== 0) {
158
- obj.total = Math.round(message.total);
159
- }
160
- if ((_a = message.data) === null || _a === void 0 ? void 0 : _a.length) {
161
- obj.data = message.data.map((e) => workflow_1.Workflow.toJSON(e));
162
- }
163
- return obj;
164
- },
165
- create(base) {
166
- return exports.WorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
167
- },
168
- fromPartial(object) {
169
- var _a, _b, _c, _d, _e, _f, _g;
170
- const message = createBaseWorkflowResponse();
171
- message.currentPage = (_a = object.currentPage) !== null && _a !== void 0 ? _a : 0;
172
- message.from = (_b = object.from) !== null && _b !== void 0 ? _b : 0;
173
- message.to = (_c = object.to) !== null && _c !== void 0 ? _c : 0;
174
- message.lastPage = (_d = object.lastPage) !== null && _d !== void 0 ? _d : 0;
175
- message.perPage = (_e = object.perPage) !== null && _e !== void 0 ? _e : 0;
176
- message.cost = (object.cost !== undefined && object.cost !== null) ? long_1.default.fromValue(object.cost) : long_1.default.ZERO;
177
- message.total = (_f = object.total) !== null && _f !== void 0 ? _f : 0;
178
- message.data = ((_g = object.data) === null || _g === void 0 ? void 0 : _g.map((e) => workflow_1.Workflow.fromPartial(e))) || [];
179
- return message;
180
- },
181
- };
182
- function createBaseWorkflowRequest() {
183
- return {
184
- disablePagination: false,
185
- page: undefined,
186
- pageSize: undefined,
187
- organizationId: undefined,
188
- queryFilter: {},
189
- sort: undefined,
190
- order: undefined,
191
- };
192
- }
193
- exports.WorkflowRequest = {
194
- encode(message, writer = new wire_1.BinaryWriter()) {
195
- if (message.disablePagination !== false) {
196
- writer.uint32(8).bool(message.disablePagination);
197
- }
198
- if (message.page !== undefined) {
199
- writer.uint32(16).uint32(message.page);
200
- }
201
- if (message.pageSize !== undefined) {
202
- writer.uint32(24).uint32(message.pageSize);
203
- }
204
- if (message.organizationId !== undefined) {
205
- writer.uint32(32).uint64(message.organizationId.toString());
206
- }
207
- Object.entries(message.queryFilter).forEach(([key, value]) => {
208
- exports.WorkflowRequest_QueryFilterEntry.encode({ key: key, value }, writer.uint32(66).fork()).join();
209
- });
210
- if (message.sort !== undefined) {
211
- writer.uint32(74).string(message.sort);
212
- }
213
- if (message.order !== undefined) {
214
- writer.uint32(82).string(message.order);
215
- }
216
- return writer;
217
- },
218
- decode(input, length) {
219
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
220
- const end = length === undefined ? reader.len : reader.pos + length;
221
- const message = createBaseWorkflowRequest();
222
- while (reader.pos < end) {
223
- const tag = reader.uint32();
224
- switch (tag >>> 3) {
225
- case 1: {
226
- if (tag !== 8) {
227
- break;
228
- }
229
- message.disablePagination = reader.bool();
230
- continue;
231
- }
232
- case 2: {
233
- if (tag !== 16) {
234
- break;
235
- }
236
- message.page = reader.uint32();
237
- continue;
238
- }
239
- case 3: {
240
- if (tag !== 24) {
241
- break;
242
- }
243
- message.pageSize = reader.uint32();
244
- continue;
245
- }
246
- case 4: {
247
- if (tag !== 32) {
248
- break;
249
- }
250
- message.organizationId = long_1.default.fromString(reader.uint64().toString(), true);
251
- continue;
252
- }
253
- case 8: {
254
- if (tag !== 66) {
255
- break;
256
- }
257
- const entry8 = exports.WorkflowRequest_QueryFilterEntry.decode(reader, reader.uint32());
258
- if (entry8.value !== undefined) {
259
- message.queryFilter[entry8.key] = entry8.value;
260
- }
261
- continue;
262
- }
263
- case 9: {
264
- if (tag !== 74) {
265
- break;
266
- }
267
- message.sort = reader.string();
268
- continue;
269
- }
270
- case 10: {
271
- if (tag !== 82) {
272
- break;
273
- }
274
- message.order = reader.string();
275
- continue;
276
- }
277
- }
278
- if ((tag & 7) === 4 || tag === 0) {
279
- break;
280
- }
281
- reader.skip(tag & 7);
282
- }
283
- return message;
284
- },
285
- fromJSON(object) {
286
- return {
287
- disablePagination: isSet(object.disable_pagination) ? globalThis.Boolean(object.disable_pagination) : false,
288
- page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
289
- pageSize: isSet(object.page_size) ? globalThis.Number(object.page_size) : undefined,
290
- organizationId: isSet(object.organization_id) ? long_1.default.fromValue(object.organization_id) : undefined,
291
- queryFilter: isObject(object.query_filter)
292
- ? Object.entries(object.query_filter).reduce((acc, [key, value]) => {
293
- acc[key] = exports.FilterScope.fromJSON(value);
294
- return acc;
295
- }, {})
296
- : {},
297
- sort: isSet(object.sort) ? globalThis.String(object.sort) : undefined,
298
- order: isSet(object.order) ? globalThis.String(object.order) : undefined,
299
- };
300
- },
301
- toJSON(message) {
302
- const obj = {};
303
- if (message.disablePagination !== false) {
304
- obj.disable_pagination = message.disablePagination;
305
- }
306
- if (message.page !== undefined) {
307
- obj.page = Math.round(message.page);
308
- }
309
- if (message.pageSize !== undefined) {
310
- obj.page_size = Math.round(message.pageSize);
311
- }
312
- if (message.organizationId !== undefined) {
313
- obj.organization_id = (message.organizationId || long_1.default.UZERO).toString();
314
- }
315
- if (message.queryFilter) {
316
- const entries = Object.entries(message.queryFilter);
317
- if (entries.length > 0) {
318
- obj.query_filter = {};
319
- entries.forEach(([k, v]) => {
320
- obj.query_filter[k] = exports.FilterScope.toJSON(v);
321
- });
322
- }
323
- }
324
- if (message.sort !== undefined) {
325
- obj.sort = message.sort;
326
- }
327
- if (message.order !== undefined) {
328
- obj.order = message.order;
329
- }
330
- return obj;
331
- },
332
- create(base) {
333
- return exports.WorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
334
- },
335
- fromPartial(object) {
336
- var _a, _b, _c, _d, _e, _f;
337
- const message = createBaseWorkflowRequest();
338
- message.disablePagination = (_a = object.disablePagination) !== null && _a !== void 0 ? _a : false;
339
- message.page = (_b = object.page) !== null && _b !== void 0 ? _b : undefined;
340
- message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : undefined;
341
- message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
342
- ? long_1.default.fromValue(object.organizationId)
343
- : undefined;
344
- message.queryFilter = Object.entries((_d = object.queryFilter) !== null && _d !== void 0 ? _d : {}).reduce((acc, [key, value]) => {
345
- if (value !== undefined) {
346
- acc[key] = exports.FilterScope.fromPartial(value);
347
- }
348
- return acc;
349
- }, {});
350
- message.sort = (_e = object.sort) !== null && _e !== void 0 ? _e : undefined;
351
- message.order = (_f = object.order) !== null && _f !== void 0 ? _f : undefined;
352
- return message;
353
- },
354
- };
355
- function createBaseWorkflowRequest_QueryFilterEntry() {
356
- return { key: "", value: undefined };
357
- }
358
- exports.WorkflowRequest_QueryFilterEntry = {
359
- encode(message, writer = new wire_1.BinaryWriter()) {
360
- if (message.key !== "") {
361
- writer.uint32(10).string(message.key);
362
- }
363
- if (message.value !== undefined) {
364
- exports.FilterScope.encode(message.value, writer.uint32(18).fork()).join();
365
- }
366
- return writer;
367
- },
368
- decode(input, length) {
369
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
370
- const end = length === undefined ? reader.len : reader.pos + length;
371
- const message = createBaseWorkflowRequest_QueryFilterEntry();
372
- while (reader.pos < end) {
373
- const tag = reader.uint32();
374
- switch (tag >>> 3) {
375
- case 1: {
376
- if (tag !== 10) {
377
- break;
378
- }
379
- message.key = reader.string();
380
- continue;
381
- }
382
- case 2: {
383
- if (tag !== 18) {
384
- break;
385
- }
386
- message.value = exports.FilterScope.decode(reader, reader.uint32());
387
- continue;
388
- }
389
- }
390
- if ((tag & 7) === 4 || tag === 0) {
391
- break;
392
- }
393
- reader.skip(tag & 7);
394
- }
395
- return message;
396
- },
397
- fromJSON(object) {
398
- return {
399
- key: isSet(object.key) ? globalThis.String(object.key) : "",
400
- value: isSet(object.value) ? exports.FilterScope.fromJSON(object.value) : undefined,
401
- };
402
- },
403
- toJSON(message) {
404
- const obj = {};
405
- if (message.key !== "") {
406
- obj.key = message.key;
407
- }
408
- if (message.value !== undefined) {
409
- obj.value = exports.FilterScope.toJSON(message.value);
410
- }
411
- return obj;
412
- },
413
- create(base) {
414
- return exports.WorkflowRequest_QueryFilterEntry.fromPartial(base !== null && base !== void 0 ? base : {});
415
- },
416
- fromPartial(object) {
417
- var _a;
418
- const message = createBaseWorkflowRequest_QueryFilterEntry();
419
- message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
420
- message.value = (object.value !== undefined && object.value !== null)
421
- ? exports.FilterScope.fromPartial(object.value)
422
- : undefined;
423
- return message;
424
- },
425
- };
426
21
  function createBaseConfigRequest() {
427
22
  return { domain: undefined, partnerId: undefined };
428
23
  }
package/dist/report.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AreaSummaryReviewRequest, AreaSummaryReviewResponse, ChartRequest, ChartResponse, CommandHistoryRequest, CommandHistoryResponse, DashboardIndividualRequest, DashboardIndividualResponse, DeviceDataRequest, DeviceDataResponse, LogRequest, LogResponse, RouteReviewRequest, RouteReviewResponse, RouteStopRequest, RouteStopResponse, SystemIoRequest, SystemIoResponse, TripPerformanceRequest, TripPerformanceResponse, TripReportRequest, TripReportResponse, WorkCycleRequest, WorkCycleResponse } from "./fatehan/reports/report";
1
+ import { AreaSummaryReviewRequest, AreaSummaryReviewResponse, ChartRequest, ChartResponse, CommandHistoryRequest, CommandHistoryResponse, DashboardIndividualRequest, DashboardIndividualResponse, DeviceDataRequest, DeviceDataResponse, LogRequest, LogResponse, RouteReviewRequest, RouteReviewResponse, RouteStopRequest, RouteStopResponse, SystemIoRequest, SystemIoResponse, TripPerformanceRequest, TripPerformanceResponse, TripReportRequest, TripReportResponse, WorkCycleRequest, WorkCycleResponse, WorkflowRequest, WorkflowResponse } from "./fatehan/reports/report";
2
2
  import { ShownIo, SystemIo } from "./fatehan/devices/devices";
3
3
  import { Data } from "./fatehan/packets/dataModel";
4
4
  export declare class ReportService {
@@ -18,7 +18,7 @@ export declare class ReportService {
18
18
  CommandHistoryReport(request: CommandHistoryRequest): Promise<CommandHistoryResponse>;
19
19
  ChartReport(request: ChartRequest, responses: (chunk: ChartResponse) => void): Promise<void>;
20
20
  SystemIoReport(request: SystemIoRequest): Promise<SystemIoResponse>;
21
+ WorkflowReport(request: WorkflowRequest): Promise<WorkflowResponse>;
21
22
  SystemIoCast(systemIo: SystemIo[] | null, deviceIo: SystemIo[], data: Data): Promise<ShownIo[]>;
22
- Matin(): Promise<void>;
23
23
  }
24
24
  //# sourceMappingURL=report.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../src/report.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EACh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,EAAE,sBAAsB,GAC9B,OAAO,CAAC,uBAAuB,CAAC;IA2B5B,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAyBnE,iBAAiB,CACtB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,mBAAmB,CAAC;IAyBxB,mBAAmB,CACxB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;IA2BhC,SAAS,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IAuBpD,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAyBnE,uBAAuB,CAC5B,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,yBAAyB,CAAC;IA0B9B,eAAe,CACpB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC;IAwBtB,oBAAoB,CACzB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IA0BrB,WAAW,CACtB,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI;IAkCpC,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAmCnE,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAsB7D,YAAY,CACvB,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAC3B,QAAQ,EAAE,QAAQ,EAAE,EACpB,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,OAAO,EAAE,CAAC;CAetB"}
package/dist/report.js CHANGED
@@ -227,6 +227,21 @@ class ReportService {
227
227
  }
228
228
  });
229
229
  }
230
+ WorkflowReport(request) {
231
+ return new Promise(async (resolve, reject) => {
232
+ const response = await fetch(`${this.url}/${this.namespace}/WorkflowReport`, {
233
+ method: "POST",
234
+ headers: this.headers,
235
+ body: new Uint8Array(report_1.WorkflowRequest.encode(request).finish()),
236
+ });
237
+ if (response.ok) {
238
+ resolve(report_1.WorkflowResponse.decode(new Uint8Array(await response.arrayBuffer())));
239
+ }
240
+ else {
241
+ reject(await response.text());
242
+ }
243
+ });
244
+ }
230
245
  async SystemIoCast(systemIo, deviceIo, data) {
231
246
  return new Promise(async (resolve) => {
232
247
  if (systemIo == null) {
@@ -241,8 +256,5 @@ class ReportService {
241
256
  return;
242
257
  });
243
258
  }
244
- async Matin() {
245
- return;
246
- }
247
259
  }
248
260
  exports.ReportService = ReportService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fatehan/tsrp",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "fatehan main models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Without GRPC
4
4
 
5
- ```cmd
5
+ ```bash
6
6
  protoc \
7
7
  --plugin=protoc-gen-ts_proto=$(which protoc-gen-ts_proto) \
8
8
  -I ./src/fatehan \
@@ -12,27 +12,15 @@ protoc \
12
12
  ../protocols/**/*.proto
13
13
  ```
14
14
 
15
- ## GRPC Including
16
-
17
- <!-- ```cmd
18
- protoc \
19
- --plugin=protoc-gen-ts_proto=/usr/bin/protoc-gen-ts_proto \
20
- -I ./src/fatehan \
21
- -I ../protocols \
22
- --ts_proto_out=./src/fatehan \
23
- --ts_proto_opt=outputServices=none,outputClientImpl=false,esModuleInterop=true,outputEncodeMethods=true,outputJsonMethods=true,useOptionals=messages,forceLong=long \
24
- ../protocols/**/*.proto
25
- ``` -->
26
-
27
15
  ### Build
28
16
 
29
- ```cmd
17
+ ```bash
30
18
  npm run build
31
19
  ```
32
20
 
33
21
  ### Deploy
34
22
 
35
- ```cmd
23
+ ```bash
36
24
  npm version patch
37
25
  npm publish
38
26
  ```