@lotics/cli 0.207.0 → 0.209.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/dist/src/cli.js +1108 -282
- package/dist/src/client.d.ts +22 -0
- package/dist/src/client.js +12 -0
- package/package.json +1 -1
package/dist/src/client.d.ts
CHANGED
|
@@ -1251,6 +1251,21 @@ export declare class LoticsClient {
|
|
|
1251
1251
|
}>;
|
|
1252
1252
|
}>;
|
|
1253
1253
|
}>;
|
|
1254
|
+
/**
|
|
1255
|
+
* When a record entered each option of one of its select fields — what a
|
|
1256
|
+
* lifecycle drawn as steps dates each step by. Mirrors
|
|
1257
|
+
* GET /v1/apps/{app_id}/records/{record_id}/field-history.
|
|
1258
|
+
*/
|
|
1259
|
+
appFieldHistory(app_id: string, args: {
|
|
1260
|
+
table_id: string;
|
|
1261
|
+
record_id: string;
|
|
1262
|
+
field_id: string;
|
|
1263
|
+
}): Promise<{
|
|
1264
|
+
entered: Array<{
|
|
1265
|
+
option_id: string;
|
|
1266
|
+
entered_at: string;
|
|
1267
|
+
}>;
|
|
1268
|
+
}>;
|
|
1254
1269
|
/**
|
|
1255
1270
|
* Execute a workflow by alias declared in package.json#lotics.workflows.
|
|
1256
1271
|
* Mirrors POST /v1/apps/{app_id}/workflows/{alias}/execute.
|
|
@@ -1491,6 +1506,13 @@ export declare class LoticsClient {
|
|
|
1491
1506
|
version_id: string;
|
|
1492
1507
|
version_number: number;
|
|
1493
1508
|
bundle_size_bytes: number;
|
|
1509
|
+
/**
|
|
1510
|
+
* The origin this version is served from. Optional because a server that
|
|
1511
|
+
* predates it answers without one, and the CLI prints the address only when
|
|
1512
|
+
* the instance stated it — composing it here would re-derive the scheme and
|
|
1513
|
+
* the apps domain the server owns.
|
|
1514
|
+
*/
|
|
1515
|
+
origin?: string;
|
|
1494
1516
|
}>;
|
|
1495
1517
|
downloadFile(url: string, outputPath: string): Promise<string>;
|
|
1496
1518
|
/**
|
package/dist/src/client.js
CHANGED
|
@@ -807,6 +807,18 @@ var LoticsClient = class {
|
|
|
807
807
|
async appFieldOptions(app_id, alias) {
|
|
808
808
|
return this.request("POST", `/v1/apps/${encodeURIComponent(app_id)}/field-options`, { alias });
|
|
809
809
|
}
|
|
810
|
+
/**
|
|
811
|
+
* When a record entered each option of one of its select fields — what a
|
|
812
|
+
* lifecycle drawn as steps dates each step by. Mirrors
|
|
813
|
+
* GET /v1/apps/{app_id}/records/{record_id}/field-history.
|
|
814
|
+
*/
|
|
815
|
+
async appFieldHistory(app_id, args) {
|
|
816
|
+
const qs = new URLSearchParams({ table_id: args.table_id, field_id: args.field_id });
|
|
817
|
+
return this.request(
|
|
818
|
+
"GET",
|
|
819
|
+
`/v1/apps/${encodeURIComponent(app_id)}/records/${encodeURIComponent(args.record_id)}/field-history?${qs.toString()}`
|
|
820
|
+
);
|
|
821
|
+
}
|
|
810
822
|
/**
|
|
811
823
|
* Execute a workflow by alias declared in package.json#lotics.workflows.
|
|
812
824
|
* Mirrors POST /v1/apps/{app_id}/workflows/{alias}/execute.
|