@lotics/cli 0.307.0 → 0.308.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 +31 -12
- package/docs/design.md +7 -2
- package/docs/workflow_steps.md +12 -12
- package/docs/workflows.md +2 -2
- package/package.json +1 -1
package/docs/design.md
CHANGED
|
@@ -19,8 +19,11 @@ rows in time, a template's act — until the model states it or declines it.
|
|
|
19
19
|
`name` and `description`. A job is a desk a person works every day from its own list; one app per job,
|
|
20
20
|
each one working register over one entity — an app per table, or one app holding every table, is no job's
|
|
21
21
|
screen. What was brought into that register's rows or done to them — the files imported, the runs of a
|
|
22
|
-
batch — is read beside it as a log of the same app (`logs`, at most three), never an app of its own
|
|
23
|
-
|
|
22
|
+
batch — is read beside it as a log of the same app (`logs`, at most three), never an app of its own.
|
|
23
|
+
A job is the record it moves and the rhythm it moves at — the first list it opens on. What that record
|
|
24
|
+
owns (a vehicle's papers, its services, its fines) is sections, blocks and acts of it, never an app;
|
|
25
|
+
work over another record or at another rhythm (the week's dispatch runs, beside each vehicle's file) is
|
|
26
|
+
another app, even when one person works both.
|
|
24
27
|
A list worked only in passing on the way through another job — the rates a quote is priced from, the
|
|
25
28
|
transfers its receipts are matched to, the statement sent from its records — is a block, a section or an
|
|
26
29
|
act of that job's app, never an app of its own. A small business usually lands at four to six.
|
|
@@ -278,6 +281,8 @@ captured — and files it as a new row of the record's `timeline` child (`into`)
|
|
|
278
281
|
- A person shows a face, a thing its picture, a file its preview, a plan its days on a time axis, a
|
|
279
282
|
quantity a meter (`records.limits`) or a chart, a register its `readings` under its title, and long text
|
|
280
283
|
reads whole (a `text` block).
|
|
284
|
+
- Every app states its tile's colour (`theme.color`), apart from the workspace's other apps where it can be,
|
|
285
|
+
so the launcher tells the desks apart before their names are read.
|
|
281
286
|
- Every category the job reads is coloured: each select option's `color`, and a `mark` where a brand or a
|
|
282
287
|
glyph names it — on every option of a select read down a column (how it was paid, the channel, the mode).
|
|
283
288
|
- Someone is a face wherever they are read. A person is a member field and a party a row of an entity stating
|
package/docs/workflow_steps.md
CHANGED
|
@@ -47,7 +47,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
47
47
|
### bkav_cancel_invoices (workflow step)
|
|
48
48
|
|
|
49
49
|
- Cancel issued invoices.
|
|
50
|
-
- A cancelled invoice still reports to the tax authority; correcting one instead is a replacement or adjustment through bkav_submit_invoices. (workflow step)
|
|
50
|
+
- A cancelled invoice still reports to the tax authority; correcting one instead is a replacement or adjustment through bkav_submit_invoices. (workflow step, chat)
|
|
51
51
|
|
|
52
52
|
**Inputs**
|
|
53
53
|
|
|
@@ -1069,7 +1069,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
1069
1069
|
### facebook_list_comments (workflow step)
|
|
1070
1070
|
|
|
1071
1071
|
- Read the most recent comments left on a Facebook Page's posts.
|
|
1072
|
-
- Reply with facebook_reply_to_comment, passing the comment_id. (workflow step)
|
|
1072
|
+
- Reply with facebook_reply_to_comment, passing the comment_id. (workflow step, chat)
|
|
1073
1073
|
|
|
1074
1074
|
**Inputs**
|
|
1075
1075
|
|
|
@@ -1094,7 +1094,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
1094
1094
|
### facebook_list_conversations (workflow step)
|
|
1095
1095
|
|
|
1096
1096
|
- Read a Facebook Page's Messenger conversations with their recent messages.
|
|
1097
|
-
- Answer someone with facebook_send_message, passing the person_id. (workflow step)
|
|
1097
|
+
- Answer someone with facebook_send_message, passing the person_id. (workflow step, chat)
|
|
1098
1098
|
|
|
1099
1099
|
**Inputs**
|
|
1100
1100
|
|
|
@@ -1129,7 +1129,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
1129
1129
|
| --- | --- | --- | --- |
|
|
1130
1130
|
| `connected_account_id` | string | yes | |
|
|
1131
1131
|
| `page_id` | string | yes | The page that owns the post the comment is on. |
|
|
1132
|
-
| `comment_id` | string | yes | From facebook_list_comments. (workflow step) |
|
|
1132
|
+
| `comment_id` | string | yes | From facebook_list_comments. (workflow step, chat) |
|
|
1133
1133
|
| `message` | string | yes | |
|
|
1134
1134
|
|
|
1135
1135
|
**Answer**
|
|
@@ -1149,7 +1149,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
1149
1149
|
| --- | --- | --- | --- |
|
|
1150
1150
|
| `connected_account_id` | string | yes | |
|
|
1151
1151
|
| `page_id` | string | yes | The page the person wrote to. |
|
|
1152
|
-
| `person_id` | string | yes | From facebook_list_conversations. Page-scoped to this page. (workflow step) |
|
|
1152
|
+
| `person_id` | string | yes | From facebook_list_conversations. Page-scoped to this page. (workflow step, chat) |
|
|
1153
1153
|
| `message` | string | yes | |
|
|
1154
1154
|
|
|
1155
1155
|
**Answer**
|
|
@@ -1187,8 +1187,8 @@ above. A provider's refusal carries the provider's own words.
|
|
|
1187
1187
|
| Name | Type | Required | What it is |
|
|
1188
1188
|
| --- | --- | --- | --- |
|
|
1189
1189
|
| `connected_account_id` | string | yes | FedEx connected account |
|
|
1190
|
-
| `reference` | string | yes | The draft's reference (Open Ship index) from fedex_create_draft_shipment (workflow step) |
|
|
1191
|
-
| `master_tracking_number` | string | | The master_tracking_number returned by fedex_create_draft_shipment — required to finalize the label (workflow step) |
|
|
1190
|
+
| `reference` | string | yes | The draft's reference (Open Ship index) from fedex_create_draft_shipment (workflow step, chat) |
|
|
1191
|
+
| `master_tracking_number` | string | | The master_tracking_number returned by fedex_create_draft_shipment — required to finalize the label (workflow step, chat) |
|
|
1192
1192
|
|
|
1193
1193
|
**Answer**
|
|
1194
1194
|
|
|
@@ -1201,7 +1201,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
1201
1201
|
### fedex_create_draft_shipment (workflow step)
|
|
1202
1202
|
|
|
1203
1203
|
- Create a FedEx draft (Open Ship) booking — no label yet.
|
|
1204
|
-
- Confirm later with fedex_confirm_shipment. reference is a unique key you choose (e.g. the shipment order number) used to confirm or cancel. (workflow step)
|
|
1204
|
+
- Confirm later with fedex_confirm_shipment. reference is a unique key you choose (e.g. the shipment order number) used to confirm or cancel. (workflow step, chat)
|
|
1205
1205
|
- Supports multiple packages, special services, and (international) customs commodities.
|
|
1206
1206
|
|
|
1207
1207
|
**Inputs**
|
|
@@ -1261,7 +1261,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
1261
1261
|
| --- | --- | --- | --- |
|
|
1262
1262
|
| `reference` | string | yes | |
|
|
1263
1263
|
| `status` | "draft" | yes | |
|
|
1264
|
-
| `master_tracking_number` | string | | Pass this to fedex_confirm_shipment to finalize the draft (workflow step) |
|
|
1264
|
+
| `master_tracking_number` | string | | Pass this to fedex_confirm_shipment to finalize the draft (workflow step, chat) |
|
|
1265
1265
|
|
|
1266
1266
|
### fedex_create_shipment (workflow step)
|
|
1267
1267
|
|
|
@@ -2701,7 +2701,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
2701
2701
|
|
|
2702
2702
|
### misa_save_bank_voucher (workflow step)
|
|
2703
2703
|
|
|
2704
|
-
- Push a bank voucher (deposit / withdrawal / transfer) into MISA AMIS. voucher_type: 1 deposit (báo có), 3 withdrawal/debit-advice (báo nợ), 2 internal transfer. bank_account_id is the company-side bank account GUID — look it up with misa_get_dictionary (data_type 8). (workflow step)
|
|
2704
|
+
- Push a bank voucher (deposit / withdrawal / transfer) into MISA AMIS. voucher_type: 1 deposit (báo có), 3 withdrawal/debit-advice (báo nợ), 2 internal transfer. bank_account_id is the company-side bank account GUID — look it up with misa_get_dictionary (data_type 8). (workflow step, chat)
|
|
2705
2705
|
|
|
2706
2706
|
**Inputs**
|
|
2707
2707
|
|
|
@@ -2722,7 +2722,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
2722
2722
|
| `custom_field3` | string | | |
|
|
2723
2723
|
| `custom_field4` | string | | |
|
|
2724
2724
|
| `custom_field5` | string | | |
|
|
2725
|
-
| `bank_account_id` | string | yes | Bank account GUID in MISA — look up via misa_get_dictionary (workflow step) |
|
|
2725
|
+
| `bank_account_id` | string | yes | Bank account GUID in MISA — look up via misa_get_dictionary (workflow step, chat) |
|
|
2726
2726
|
| `account_object_code` | string | | |
|
|
2727
2727
|
| `account_object_name` | string | | |
|
|
2728
2728
|
| `total_amount_oc` | number | yes | |
|
|
@@ -2885,7 +2885,7 @@ above. A provider's refusal carries the provider's own words.
|
|
|
2885
2885
|
|
|
2886
2886
|
### misa_save_sales_voucher (workflow step)
|
|
2887
2887
|
|
|
2888
|
-
- Push a sales voucher (invoice / sales return / discount-credit-note / sales order) into MISA AMIS. voucher_type: 11 invoice, 13 sales voucher, 12 return, 10 discount/credit note, 20 sales order. reftype refines the sub-type (e.g. 3530 unpaid sale, 3560 sales invoice, 3571 service cash). account_object_code identifies the customer in MISA — must already exist (use misa_save_dictionary first if not). (workflow step)
|
|
2888
|
+
- Push a sales voucher (invoice / sales return / discount-credit-note / sales order) into MISA AMIS. voucher_type: 11 invoice, 13 sales voucher, 12 return, 10 discount/credit note, 20 sales order. reftype refines the sub-type (e.g. 3530 unpaid sale, 3560 sales invoice, 3571 service cash). account_object_code identifies the customer in MISA — must already exist (use misa_save_dictionary first if not). (workflow step, chat)
|
|
2889
2889
|
- MISA sync ack only confirms queueing; final accept/reject arrives async on the registered callback URL.
|
|
2890
2890
|
|
|
2891
2891
|
**Inputs**
|
package/docs/workflows.md
CHANGED
|
@@ -62,8 +62,8 @@ await send_email({
|
|
|
62
62
|
| validate | `validate({ checks: [{ fail_when: <expr>, field_key: "...", message: <expr> }, ...] });` |
|
|
63
63
|
|
|
64
64
|
Every step's inputs, the values each takes and its answer: `lotics tools <name>` prints them; the steps only a body
|
|
65
|
-
runs — a connection's, a mail's — are all in `workflow_steps`.
|
|
66
|
-
|
|
65
|
+
runs — a connection's, a mail's — are all in `workflow_steps`. A person connects a service in Lotics under
|
|
66
|
+
Settings → Connections; a step names that connection by its `connected_account_id`.
|
|
67
67
|
|
|
68
68
|
`return` is a call, not a JavaScript `return` statement. `validate` ends the workflow with an error
|
|
69
69
|
when a check's `fail_when` is truthy; the check's `field_key` names the control its message lands on —
|