PageSourceSearch

https://citsmartpeople.centralit.com.br/lowcode/app/js/sdk/integration/Flow.js

js centralit.com.br collected 2026-09-24 18:55:18 UTC 1,396 bytes, 32 lines download raw bytes

1var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3    return new (P || (P = Promise))(function (resolve, reject) {
4        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7        step((generator = generator.apply(thisArg, _arguments || [])).next());
8    });
9};
10import { AxiosTransaction } from "../ajax/AxiosTransaction.js";
11/**
12 * @category Integration
13 * @class Flow
14 * Class for handling the System Flow API.
15 */
16export class Flow extends AxiosTransaction {
17    constructor(ajaxCfg) {
18        super(ajaxCfg || { baseURL: LOWCODE_CONFIG.url, token: LOWCODE_CONFIG.token(), useJwe: !!LOWCODE_USE_JWE });
19        this.name = (name) => {
20            this._name = name;
21            return this;
22        };
23    }
24    endpoint() {
25        return `integrations/${this._name}/flows`;
26    }
27    run(input) {
28        return __awaiter(this, void 0, void 0, function* () {
29            return this._post(this.endpoint(), input, null);
30        });
31    }
32}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.