@zeyos/client 0.3.0 → 0.5.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/CHANGELOG.md +54 -0
- package/README.md +41 -2
- package/agents/README.md +10 -0
- package/agents/shared/zeyos-agent-operating-guide.md +42 -0
- package/agents/shared/zeyos-entity-map.md +5 -1
- package/agents/shared/zeyos-entity-reference.md +89 -33
- package/agents/shared/zeyos-query-patterns.md +26 -0
- package/agents/zeyos-calendar-and-scheduling/SKILL.md +45 -0
- package/agents/zeyos-calendar-and-scheduling/references/workflows.md +49 -0
- package/agents/zeyos-data-quality-and-governance/SKILL.md +43 -0
- package/agents/zeyos-data-quality-and-governance/references/workflows.md +51 -0
- package/agents/zeyos-document-and-approval/SKILL.md +41 -0
- package/agents/zeyos-document-and-approval/references/workflows.md +43 -0
- package/agents/zeyos-procurement-and-supplier-performance/SKILL.md +36 -0
- package/agents/zeyos-procurement-and-supplier-performance/references/workflows.md +46 -0
- package/agents/zeyos-time-tracking/SKILL.md +2 -0
- package/agents/zeyos-time-tracking/references/workflows.md +68 -0
- package/agents/zeyos-work-management/SKILL.md +4 -3
- package/agents/zeyos-work-management/references/workflows.md +39 -1
- package/docs/03-cli/02-commands.md +36 -2
- package/docs/03-cli/03-configuration.md +1 -0
- package/docs/06-okf/01-overview.md +70 -0
- package/docs/06-okf/02-producing-and-consuming.md +46 -0
- package/docs/06-okf/03-keeping-fresh.md +53 -0
- package/docs/06-okf/04-loops.md +58 -0
- package/docs/06-okf/_category_.json +9 -0
- package/okf/concepts/calendar-timezones.md +10 -0
- package/okf/concepts/confirmation-and-side-effects.md +14 -0
- package/okf/concepts/counting-and-sums.md +10 -0
- package/okf/concepts/currency-and-rounding.md +10 -0
- package/okf/concepts/dates-unix-seconds.md +12 -0
- package/okf/concepts/enums.md +14 -0
- package/okf/concepts/filters-vs-filter.md +14 -0
- package/okf/concepts/idempotency-and-deduplication.md +10 -0
- package/okf/concepts/index.md +16 -0
- package/okf/concepts/null-empty-missing.md +10 -0
- package/okf/concepts/official-versus-latest.md +10 -0
- package/okf/concepts/operationid-vocabulary.md +17 -0
- package/okf/concepts/ownership-versus-attention.md +15 -0
- package/okf/concepts/untrusted-business-content.md +10 -0
- package/okf/concepts/visibility-column.md +13 -0
- package/okf/entities/accounts.md +82 -0
- package/okf/entities/actionsteps.md +84 -0
- package/okf/entities/addresses.md +50 -0
- package/okf/entities/applicationassets.md +43 -0
- package/okf/entities/applications.md +62 -0
- package/okf/entities/appointments.md +79 -0
- package/okf/entities/associations.md +41 -0
- package/okf/entities/binfiles.md +32 -0
- package/okf/entities/campaigns.md +66 -0
- package/okf/entities/categories.md +55 -0
- package/okf/entities/channels.md +54 -0
- package/okf/entities/comments.md +44 -0
- package/okf/entities/components.md +46 -0
- package/okf/entities/contacts.md +96 -0
- package/okf/entities/contacts2contacts.md +42 -0
- package/okf/entities/contracts.md +83 -0
- package/okf/entities/couponcodes.md +58 -0
- package/okf/entities/coupons.md +69 -0
- package/okf/entities/customfields.md +59 -0
- package/okf/entities/davservers.md +74 -0
- package/okf/entities/devices.md +65 -0
- package/okf/entities/documents.md +76 -0
- package/okf/entities/dunning.md +82 -0
- package/okf/entities/dunning2transactions.md +46 -0
- package/okf/entities/entities2channels.md +42 -0
- package/okf/entities/events.md +57 -0
- package/okf/entities/feedservers.md +67 -0
- package/okf/entities/files.md +50 -0
- package/okf/entities/follows.md +40 -0
- package/okf/entities/forks.md +54 -0
- package/okf/entities/groups.md +48 -0
- package/okf/entities/groups2users.md +44 -0
- package/okf/entities/index.md +93 -0
- package/okf/entities/invitations.md +53 -0
- package/okf/entities/items.md +95 -0
- package/okf/entities/ledgers.md +56 -0
- package/okf/entities/likes.md +40 -0
- package/okf/entities/links.md +70 -0
- package/okf/entities/mailinglists.md +67 -0
- package/okf/entities/mailingrecipients.md +45 -0
- package/okf/entities/mailservers.md +77 -0
- package/okf/entities/messagereads.md +40 -0
- package/okf/entities/messages.md +104 -0
- package/okf/entities/notes.md +73 -0
- package/okf/entities/objects.md +70 -0
- package/okf/entities/opportunities.md +87 -0
- package/okf/entities/participants.md +52 -0
- package/okf/entities/payments.md +76 -0
- package/okf/entities/permissions.md +46 -0
- package/okf/entities/pricelists.md +70 -0
- package/okf/entities/pricelists2accounts.md +46 -0
- package/okf/entities/prices.md +49 -0
- package/okf/entities/projects.md +72 -0
- package/okf/entities/records.md +75 -0
- package/okf/entities/relateditems.md +43 -0
- package/okf/entities/resources.md +55 -0
- package/okf/entities/services.md +64 -0
- package/okf/entities/stocktransactions.md +72 -0
- package/okf/entities/storages.md +56 -0
- package/okf/entities/suppliers.md +51 -0
- package/okf/entities/tasks.md +86 -0
- package/okf/entities/tickets.md +86 -0
- package/okf/entities/transactions.md +118 -0
- package/okf/entities/users.md +66 -0
- package/okf/entities/weblets.md +66 -0
- package/okf/index.md +11 -0
- package/okf/log.md +4 -0
- package/okf/metrics/account-address-completeness.md +10 -0
- package/okf/metrics/cash-received.md +10 -0
- package/okf/metrics/index.md +9 -0
- package/okf/metrics/invoiced-net-revenue.md +16 -0
- package/okf/metrics/open-customers.md +14 -0
- package/okf/metrics/overdue-receivables.md +12 -0
- package/okf/metrics/stock-movement-by-storage.md +10 -0
- package/okf/metrics/supplier-delivery-performance.md +10 -0
- package/okf/playbooks/activity-timeline.md +11 -0
- package/okf/playbooks/calendar-availability.md +11 -0
- package/okf/playbooks/campaign-recipient-coverage.md +12 -0
- package/okf/playbooks/customer-360.md +12 -0
- package/okf/playbooks/document-approval.md +10 -0
- package/okf/playbooks/duplicate-account-review.md +11 -0
- package/okf/playbooks/effective-customer-price.md +11 -0
- package/okf/playbooks/index.md +13 -0
- package/okf/playbooks/missing-billing-addresses.md +12 -0
- package/okf/playbooks/revenue-this-year.md +19 -0
- package/okf/playbooks/supplier-scorecard.md +10 -0
- package/okf/playbooks/ticket-work-packet.md +11 -0
- package/package.json +11 -3
- package/scripts/data/okf-curation.mjs +446 -0
- package/scripts/generate-client.mjs +4 -275
- package/scripts/generate-okf.mjs +241 -0
- package/scripts/lib/live-test-config.mjs +20 -0
- package/scripts/lib/okf.mjs +272 -0
- package/scripts/lib/spec-model.mjs +325 -0
- package/src/index.js +4 -0
- package/src/runtime/okf.js +237 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Participants
|
|
4
|
+
description: Contacts enrolled in campaigns or mailing lists.
|
|
5
|
+
resource: zeyos://api/participants
|
|
6
|
+
tags: [outreach, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listParticipants
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | bigint | no | — | yes | — |
|
|
18
|
+
| `creator` | integer | yes | — | — | — |
|
|
19
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
20
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
21
|
+
| `mailinglist` | integer | yes | — | yes | [mailinglists](/entities/mailinglists.md) |
|
|
22
|
+
| `campaign` | integer | yes | — | yes | [campaigns](/entities/campaigns.md) |
|
|
23
|
+
| `contact` | integer | yes | — | yes | [contacts](/entities/contacts.md) |
|
|
24
|
+
| `name` | text | no | — | yes | — |
|
|
25
|
+
| `phone` | text | no | `''` | — | — |
|
|
26
|
+
| `email` | text | no | `''` | yes | — |
|
|
27
|
+
|
|
28
|
+
# Foreign Keys
|
|
29
|
+
|
|
30
|
+
- `mailinglist` → [mailinglists](/entities/mailinglists.md) (`mailinglists.ID`)
|
|
31
|
+
- `campaign` → [campaigns](/entities/campaigns.md) (`campaigns.ID`)
|
|
32
|
+
- `contact` → [contacts](/entities/contacts.md) (`contacts.ID`)
|
|
33
|
+
|
|
34
|
+
# Indexes
|
|
35
|
+
|
|
36
|
+
- `fk_participants_campaign` — gin, partial on `campaign`
|
|
37
|
+
- `fk_participants_contact` — btree, partial on `contact`
|
|
38
|
+
- `fk_participants_mailinglist` — gin, partial on `mailinglist`
|
|
39
|
+
- `s_participants_email` — gin, partial on `email`
|
|
40
|
+
- `s_participants_name` — gin on `name`
|
|
41
|
+
|
|
42
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
43
|
+
|
|
44
|
+
# Operations
|
|
45
|
+
|
|
46
|
+
- list: `listParticipants`
|
|
47
|
+
- get: `getParticipant`
|
|
48
|
+
- create: `createParticipant`
|
|
49
|
+
- update: `updateParticipant`
|
|
50
|
+
- delete: `deleteParticipant`
|
|
51
|
+
- exists: `existsParticipant`
|
|
52
|
+
<!-- okf:generated:end -->
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Payments
|
|
4
|
+
description: Cash movement records.
|
|
5
|
+
resource: zeyos://api/payments
|
|
6
|
+
tags: [billing, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listPayments
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | integer | no | — | yes | — |
|
|
18
|
+
| `fork` | integer | yes | — | yes | [forks](/entities/forks.md) |
|
|
19
|
+
| `ownergroup` | integer | yes | — | yes | [groups](/entities/groups.md) |
|
|
20
|
+
| `creator` | integer | yes | — | — | — |
|
|
21
|
+
| `assigneduser` | integer | yes | — | yes | [users](/entities/users.md) |
|
|
22
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
23
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
24
|
+
| `ledger` | integer | yes | — | yes | [ledgers](/entities/ledgers.md) |
|
|
25
|
+
| `transaction` | integer | yes | — | yes | [transactions](/entities/transactions.md) |
|
|
26
|
+
| `account` | integer | yes | — | yes | [accounts](/entities/accounts.md) |
|
|
27
|
+
| `date` | bigint | no | `date_part('epoch', now())` | yes | — |
|
|
28
|
+
| `subject` | text | no | `''` | yes | — |
|
|
29
|
+
| `status` | smallint | no | `0` | — | — |
|
|
30
|
+
| `amount` | double precision | no | — | — | — |
|
|
31
|
+
| `autoadvance` | smallint | no | `0` | — | — |
|
|
32
|
+
| `description` | text | no | `''` | — | — |
|
|
33
|
+
|
|
34
|
+
# Foreign Keys
|
|
35
|
+
|
|
36
|
+
- `fork` → [forks](/entities/forks.md) (`forks.ID`)
|
|
37
|
+
- `ownergroup` → [groups](/entities/groups.md) (`groups.ID`)
|
|
38
|
+
- `assigneduser` → [users](/entities/users.md) (`users.ID`)
|
|
39
|
+
- `ledger` → [ledgers](/entities/ledgers.md) (`ledgers.ID`)
|
|
40
|
+
- `transaction` → [transactions](/entities/transactions.md) (`transactions.ID`)
|
|
41
|
+
- `account` → [accounts](/entities/accounts.md) (`accounts.ID`)
|
|
42
|
+
|
|
43
|
+
# Enums
|
|
44
|
+
|
|
45
|
+
### `status`
|
|
46
|
+
|
|
47
|
+
`0` = DRAFT · `1` = COMPLETED · `2` = CANCELLED · `3` = BOOKED
|
|
48
|
+
|
|
49
|
+
# Indexes
|
|
50
|
+
|
|
51
|
+
- `fk_payments_account` — btree, partial on `account`
|
|
52
|
+
- `fk_payments_assigneduser` — gin, partial on `assigneduser`
|
|
53
|
+
- `fk_payments_fork` — gin, partial on `fork`
|
|
54
|
+
- `fk_payments_ledger` — gin, partial on `ledger`
|
|
55
|
+
- `fk_payments_ownergroup` — gin on `ownergroup`
|
|
56
|
+
- `fk_payments_transaction` — btree, partial on `transaction`
|
|
57
|
+
- `i_payments_date` — btree on `date`
|
|
58
|
+
- `i_payments_nofork` — gin, partial on `fork`
|
|
59
|
+
- `i_payments_noowner` — gin, partial on `ownergroup`
|
|
60
|
+
- `s_payments_subject` — gin, partial on `subject`
|
|
61
|
+
|
|
62
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
63
|
+
|
|
64
|
+
# Operations
|
|
65
|
+
|
|
66
|
+
- list: `listPayments`
|
|
67
|
+
- get: `getPayment`
|
|
68
|
+
- create: `createPayment`
|
|
69
|
+
- update: `updatePayment`
|
|
70
|
+
- delete: `deletePayment`
|
|
71
|
+
- exists: `existsPayment`
|
|
72
|
+
<!-- okf:generated:end -->
|
|
73
|
+
|
|
74
|
+
# Notes
|
|
75
|
+
|
|
76
|
+
Cash basis. Links to a `transaction` or directly to an `account`. Sum `amount` for cash received.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Permissions
|
|
4
|
+
description: Group-level permission grants.
|
|
5
|
+
resource: zeyos://api/permissions
|
|
6
|
+
tags: [platform, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listPermissions
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | bigint | no | — | yes | — |
|
|
18
|
+
| `creator` | integer | yes | — | — | — |
|
|
19
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
20
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
21
|
+
| `group` | integer | no | — | yes | [groups](/entities/groups.md) |
|
|
22
|
+
| `fork` | integer | yes | — | yes | [forks](/entities/forks.md) |
|
|
23
|
+
| `application` | integer | yes | — | yes | [applications](/entities/applications.md) |
|
|
24
|
+
| `identifier` | character varying(200) | yes | — | yes | — |
|
|
25
|
+
| `writable` | smallint | no | `0` | — | — |
|
|
26
|
+
|
|
27
|
+
# Foreign Keys
|
|
28
|
+
|
|
29
|
+
- `group` → [groups](/entities/groups.md) (`groups.ID`)
|
|
30
|
+
- `fork` → [forks](/entities/forks.md) (`forks.ID`)
|
|
31
|
+
- `application` → [applications](/entities/applications.md) (`applications.ID`)
|
|
32
|
+
|
|
33
|
+
# Indexes
|
|
34
|
+
|
|
35
|
+
- `fk_permissions_application` — gin, partial on `application`
|
|
36
|
+
- `fk_permissions_fork` — gin, partial on `fork`
|
|
37
|
+
- `u_permissions_group_fork_application_identifier` — btree, unique on `group, fork, application, identifier`
|
|
38
|
+
|
|
39
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
40
|
+
|
|
41
|
+
# Operations
|
|
42
|
+
|
|
43
|
+
- list: `listPermissions`
|
|
44
|
+
- get: `getPermission`
|
|
45
|
+
- exists: `existsPermission`
|
|
46
|
+
<!-- okf:generated:end -->
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Price Lists
|
|
4
|
+
description: Price list definitions.
|
|
5
|
+
resource: zeyos://api/pricelists
|
|
6
|
+
tags: [commerce, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listPriceLists
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | integer | no | — | yes | — |
|
|
18
|
+
| `fork` | integer | yes | — | yes | [forks](/entities/forks.md) |
|
|
19
|
+
| `ownergroup` | integer | yes | — | yes | [groups](/entities/groups.md) |
|
|
20
|
+
| `creator` | integer | yes | — | — | — |
|
|
21
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
22
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
23
|
+
| `activity` | smallint | no | `0` | — | — |
|
|
24
|
+
| `name` | text | no | — | yes | — |
|
|
25
|
+
| `type` | smallint | no | `0` | — | — |
|
|
26
|
+
| `currency` | character varying(3) | no | — | — | — |
|
|
27
|
+
| `discount` | double precision | no | `0` | — | — |
|
|
28
|
+
| `datefrom` | bigint | yes | — | — | — |
|
|
29
|
+
| `dateto` | bigint | yes | — | — | — |
|
|
30
|
+
| `applytoall` | smallint | no | `0` | — | — |
|
|
31
|
+
| `description` | text | no | `''` | — | — |
|
|
32
|
+
|
|
33
|
+
# Foreign Keys
|
|
34
|
+
|
|
35
|
+
- `fork` → [forks](/entities/forks.md) (`forks.ID`)
|
|
36
|
+
- `ownergroup` → [groups](/entities/groups.md) (`groups.ID`)
|
|
37
|
+
|
|
38
|
+
# Enums
|
|
39
|
+
|
|
40
|
+
### `activity`
|
|
41
|
+
|
|
42
|
+
`0` = ACTIVE · `1` = DEACTIVATED · `2` = DELETED
|
|
43
|
+
|
|
44
|
+
### `type`
|
|
45
|
+
|
|
46
|
+
`0` = BILLING_MIN · `1` = BILLING_MAX · `2` = PROCUREMENT_MIN · `3` = PROCUREMENT_MAX · `4` = PRODUCTION_MIN · `5` = PRODUCTION_MAX
|
|
47
|
+
|
|
48
|
+
# Indexes
|
|
49
|
+
|
|
50
|
+
- `fk_pricelists_fork` — gin, partial on `fork`
|
|
51
|
+
- `fk_pricelists_ownergroup` — gin on `ownergroup`
|
|
52
|
+
- `i_pricelists_nofork` — gin, partial on `fork`
|
|
53
|
+
- `i_pricelists_noowner` — gin, partial on `ownergroup`
|
|
54
|
+
- `s_pricelists_name` — gin on `name`
|
|
55
|
+
|
|
56
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
57
|
+
|
|
58
|
+
# Operations
|
|
59
|
+
|
|
60
|
+
- list: `listPriceLists`
|
|
61
|
+
- get: `getPriceList`
|
|
62
|
+
- create: `createPriceList`
|
|
63
|
+
- update: `updatePriceList`
|
|
64
|
+
- delete: `deletePriceList`
|
|
65
|
+
- exists: `existsPriceList`
|
|
66
|
+
<!-- okf:generated:end -->
|
|
67
|
+
|
|
68
|
+
# Notes
|
|
69
|
+
|
|
70
|
+
operationId: `listPriceLists`.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Price Lists To Accounts
|
|
4
|
+
description: Account-to-price-list assignments.
|
|
5
|
+
resource: zeyos://api/pricelists2accounts
|
|
6
|
+
tags: [commerce, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listPriceListsToAccounts
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | bigint | no | — | yes | — |
|
|
18
|
+
| `creator` | integer | yes | — | — | — |
|
|
19
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
20
|
+
| `lastmodified` | bigint | no | `EXTRACT(epoch FROM now())` | — | — |
|
|
21
|
+
| `pricelist` | integer | no | — | yes | [pricelists](/entities/pricelists.md) |
|
|
22
|
+
| `account` | integer | no | — | yes | [accounts](/entities/accounts.md) |
|
|
23
|
+
|
|
24
|
+
# Foreign Keys
|
|
25
|
+
|
|
26
|
+
- `pricelist` → [pricelists](/entities/pricelists.md) (`pricelists.ID`)
|
|
27
|
+
- `account` → [accounts](/entities/accounts.md) (`accounts.ID`)
|
|
28
|
+
|
|
29
|
+
# Indexes
|
|
30
|
+
|
|
31
|
+
- `fk_pricelists2accounts_account` — btree on `account`
|
|
32
|
+
- `u_pricelists2accounts_pricelist_account` — btree, unique on `pricelist, account`
|
|
33
|
+
|
|
34
|
+
# Operations
|
|
35
|
+
|
|
36
|
+
- list: `listPriceListsToAccounts`
|
|
37
|
+
- get: `getPriceListToAccount`
|
|
38
|
+
- create: `createPriceListToAccount`
|
|
39
|
+
- update: `updatePriceListToAccount`
|
|
40
|
+
- delete: `deletePriceListToAccount`
|
|
41
|
+
- exists: `existsPriceListToAccount`
|
|
42
|
+
<!-- okf:generated:end -->
|
|
43
|
+
|
|
44
|
+
# Notes
|
|
45
|
+
|
|
46
|
+
operationId: `listPriceListsToAccounts`.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Prices
|
|
4
|
+
description: Item prices within a price list.
|
|
5
|
+
resource: zeyos://api/prices
|
|
6
|
+
tags: [commerce, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listPrices
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | bigint | no | — | yes | — |
|
|
18
|
+
| `creator` | integer | yes | — | — | — |
|
|
19
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
20
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
21
|
+
| `item` | integer | no | — | yes | [items](/entities/items.md) |
|
|
22
|
+
| `pricelist` | integer | no | — | yes | [pricelists](/entities/pricelists.md) |
|
|
23
|
+
| `price` | double precision | yes | — | — | — |
|
|
24
|
+
| `rebate` | double precision | no | `0` | — | — |
|
|
25
|
+
| `discount` | double precision | yes | — | — | — |
|
|
26
|
+
| `minamount` | double precision | no | `0` | — | — |
|
|
27
|
+
| `costprice` | double precision | yes | — | — | — |
|
|
28
|
+
|
|
29
|
+
# Foreign Keys
|
|
30
|
+
|
|
31
|
+
- `item` → [items](/entities/items.md) (`items.ID`)
|
|
32
|
+
- `pricelist` → [pricelists](/entities/pricelists.md) (`pricelists.ID`)
|
|
33
|
+
|
|
34
|
+
# Indexes
|
|
35
|
+
|
|
36
|
+
- `fk_prices_item` — btree on `item`
|
|
37
|
+
- `fk_prices_pricelist` — gin on `pricelist`
|
|
38
|
+
|
|
39
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
40
|
+
|
|
41
|
+
# Operations
|
|
42
|
+
|
|
43
|
+
- list: `listPrices`
|
|
44
|
+
- get: `getPrice`
|
|
45
|
+
- create: `createPrice`
|
|
46
|
+
- update: `updatePrice`
|
|
47
|
+
- delete: `deletePrice`
|
|
48
|
+
- exists: `existsPrice`
|
|
49
|
+
<!-- okf:generated:end -->
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Projects
|
|
4
|
+
description: Top-level initiatives.
|
|
5
|
+
resource: zeyos://api/projects
|
|
6
|
+
tags: [work, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listProjects
|
|
9
|
+
visibility_column: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | integer | no | — | yes | — |
|
|
18
|
+
| `fork` | integer | yes | — | yes | [forks](/entities/forks.md) |
|
|
19
|
+
| `owneruser` | integer | yes | — | yes | [users](/entities/users.md) |
|
|
20
|
+
| `ownergroup` | integer | yes | — | yes | [groups](/entities/groups.md) |
|
|
21
|
+
| `creator` | integer | yes | — | — | — |
|
|
22
|
+
| `assigneduser` | integer | yes | — | yes | [users](/entities/users.md) |
|
|
23
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
24
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
25
|
+
| `account` | integer | yes | — | yes | [accounts](/entities/accounts.md) |
|
|
26
|
+
| `visibility` | smallint | no | `0` | — | — |
|
|
27
|
+
| `name` | text | no | — | yes | — |
|
|
28
|
+
| `projectnum` | text | no | `''` | yes | — |
|
|
29
|
+
| `status` | smallint | no | `0` | — | — |
|
|
30
|
+
| `description` | text | no | `''` | — | — |
|
|
31
|
+
|
|
32
|
+
# Foreign Keys
|
|
33
|
+
|
|
34
|
+
- `fork` → [forks](/entities/forks.md) (`forks.ID`)
|
|
35
|
+
- `owneruser` → [users](/entities/users.md) (`users.ID`)
|
|
36
|
+
- `ownergroup` → [groups](/entities/groups.md) (`groups.ID`)
|
|
37
|
+
- `assigneduser` → [users](/entities/users.md) (`users.ID`)
|
|
38
|
+
- `account` → [accounts](/entities/accounts.md) (`accounts.ID`)
|
|
39
|
+
|
|
40
|
+
# Enums
|
|
41
|
+
|
|
42
|
+
### `visibility`
|
|
43
|
+
|
|
44
|
+
`0` = REGULAR · `1` = ARCHIVED · `2` = DELETED
|
|
45
|
+
|
|
46
|
+
### `status`
|
|
47
|
+
|
|
48
|
+
`0` = DRAFT · `1` = NOTSTARTED · `2` = AWAITINGAPPROVAL · `3` = APPROVED · `4` = DISMISSED · `5` = ACTIVE · `6` = INACTIVE · `7` = TESTING · `8` = CANCELLED · `9` = COMPLETED · `10` = FAILED · `11` = BOOKED
|
|
49
|
+
|
|
50
|
+
# Indexes
|
|
51
|
+
|
|
52
|
+
- `fk_projects_account` — btree, partial on `account`
|
|
53
|
+
- `fk_projects_assigneduser` — gin, partial on `assigneduser`
|
|
54
|
+
- `fk_projects_fork` — gin, partial on `fork`
|
|
55
|
+
- `fk_projects_ownergroup` — gin, partial on `ownergroup`
|
|
56
|
+
- `fk_projects_owneruser` — gin, partial on `owneruser`
|
|
57
|
+
- `i_projects_nofork` — gin, partial on `fork`
|
|
58
|
+
- `i_projects_noowner` — gin, partial on `ownergroup`
|
|
59
|
+
- `s_projects_name` — gin on `name`
|
|
60
|
+
- `s_projects_projectnum` — gin, partial on `projectnum`
|
|
61
|
+
|
|
62
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
63
|
+
|
|
64
|
+
# Operations
|
|
65
|
+
|
|
66
|
+
- list: `listProjects`
|
|
67
|
+
- get: `getProject`
|
|
68
|
+
- create: `createProject`
|
|
69
|
+
- update: `updateProject`
|
|
70
|
+
- delete: `deleteProject`
|
|
71
|
+
- exists: `existsProject`
|
|
72
|
+
<!-- okf:generated:end -->
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Records
|
|
4
|
+
description: Generic feed and discussion records with entity/index references.
|
|
5
|
+
resource: zeyos://api/records
|
|
6
|
+
tags: [collaboration, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listRecords
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | bigint | no | — | yes | — |
|
|
18
|
+
| `fork` | integer | yes | — | yes | [forks](/entities/forks.md) |
|
|
19
|
+
| `owneruser` | integer | yes | — | yes | [users](/entities/users.md) |
|
|
20
|
+
| `ownergroup` | integer | yes | — | yes | [groups](/entities/groups.md) |
|
|
21
|
+
| `creator` | integer | yes | — | yes | — |
|
|
22
|
+
| `assigneduser` | integer | yes | — | yes | [users](/entities/users.md) |
|
|
23
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
24
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
25
|
+
| `entity` | t_entity | yes | — | yes | — |
|
|
26
|
+
| `index` | integer | yes | — | yes | — |
|
|
27
|
+
| `channel` | integer | yes | — | yes | [channels](/entities/channels.md) |
|
|
28
|
+
| `flag` | smallint | no | `0` | — | — |
|
|
29
|
+
| `date` | bigint | no | `date_part('epoch', now())` | yes | — |
|
|
30
|
+
| `stickydate` | bigint | yes | — | yes | — |
|
|
31
|
+
| `sender` | text | no | `''` | yes | — |
|
|
32
|
+
| `location` | text | no | `''` | — | — |
|
|
33
|
+
| `text` | text | no | `''` | yes | — |
|
|
34
|
+
| `meta` | json | yes | — | — | — |
|
|
35
|
+
|
|
36
|
+
# Foreign Keys
|
|
37
|
+
|
|
38
|
+
- `fork` → [forks](/entities/forks.md) (`forks.ID`)
|
|
39
|
+
- `owneruser` → [users](/entities/users.md) (`users.ID`)
|
|
40
|
+
- `ownergroup` → [groups](/entities/groups.md) (`groups.ID`)
|
|
41
|
+
- `assigneduser` → [users](/entities/users.md) (`users.ID`)
|
|
42
|
+
- `channel` → [channels](/entities/channels.md) (`channels.ID`)
|
|
43
|
+
|
|
44
|
+
# Enums
|
|
45
|
+
|
|
46
|
+
### `flag`
|
|
47
|
+
|
|
48
|
+
`0` = REGULAR · `1` = ASSOCONLY · `2` = MINDLOGONLY · `3` = MONITOR · `4` = FEED
|
|
49
|
+
|
|
50
|
+
# Indexes
|
|
51
|
+
|
|
52
|
+
- `fk_records_assigneduser` — gin, partial on `assigneduser`
|
|
53
|
+
- `fk_records_channel` — btree, partial on `channel`
|
|
54
|
+
- `fk_records_fork` — gin, partial on `fork`
|
|
55
|
+
- `fk_records_ownergroup` — gin, partial on `ownergroup`
|
|
56
|
+
- `fk_records_owneruser` — gin, partial on `owneruser`
|
|
57
|
+
- `i_records_creator` — gin, partial on `creator`
|
|
58
|
+
- `i_records_date` — btree on `date`
|
|
59
|
+
- `i_records_entity_index` — btree, partial on `entity, index`
|
|
60
|
+
- `i_records_noowner` — gin, partial on `ownergroup`
|
|
61
|
+
- `i_records_stickydate` — btree, partial on `stickydate`
|
|
62
|
+
- `s_records_sender` — gin, partial on `sender`
|
|
63
|
+
- `s_records_text` — gin, partial on `text`
|
|
64
|
+
|
|
65
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
66
|
+
|
|
67
|
+
# Operations
|
|
68
|
+
|
|
69
|
+
- list: `listRecords`
|
|
70
|
+
- get: `getRecord`
|
|
71
|
+
- create: `createRecord`
|
|
72
|
+
- update: `updateRecord`
|
|
73
|
+
- delete: `deleteRecord`
|
|
74
|
+
- exists: `existsRecord`
|
|
75
|
+
<!-- okf:generated:end -->
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Related Items
|
|
4
|
+
description: Related product links (cross-sell, substitute, accessory).
|
|
5
|
+
resource: zeyos://api/relateditems
|
|
6
|
+
tags: [commerce, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listRelatedItems
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | bigint | no | — | yes | — |
|
|
18
|
+
| `creator` | integer | yes | — | — | — |
|
|
19
|
+
| `creationdate` | bigint | no | `EXTRACT(epoch FROM now())` | — | — |
|
|
20
|
+
| `lastmodified` | bigint | no | `EXTRACT(epoch FROM now())` | — | — |
|
|
21
|
+
| `item` | integer | no | — | yes | [items](/entities/items.md) |
|
|
22
|
+
| `relateditem` | integer | no | — | yes | [items](/entities/items.md) |
|
|
23
|
+
| `relation` | text | no | `''` | — | — |
|
|
24
|
+
|
|
25
|
+
# Foreign Keys
|
|
26
|
+
|
|
27
|
+
- `item` → [items](/entities/items.md) (`items.ID`)
|
|
28
|
+
- `relateditem` → [items](/entities/items.md) (`items.ID`)
|
|
29
|
+
|
|
30
|
+
# Indexes
|
|
31
|
+
|
|
32
|
+
- `fk_relateditems_relateditem` — btree on `relateditem`
|
|
33
|
+
- `u_relateditems_item_relateditem` — btree, unique on `item, relateditem`
|
|
34
|
+
|
|
35
|
+
# Operations
|
|
36
|
+
|
|
37
|
+
- list: `listRelatedItems`
|
|
38
|
+
- get: `getRelatedItem`
|
|
39
|
+
- create: `createRelatedItem`
|
|
40
|
+
- update: `updateRelatedItem`
|
|
41
|
+
- delete: `deleteRelatedItem`
|
|
42
|
+
- exists: `existsRelatedItem`
|
|
43
|
+
<!-- okf:generated:end -->
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Resources
|
|
4
|
+
description: Named resources linked to an application or standalone.
|
|
5
|
+
resource: zeyos://api/resources
|
|
6
|
+
tags: [platform, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listResources
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | integer | no | — | yes | — |
|
|
18
|
+
| `creator` | integer | yes | — | — | — |
|
|
19
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
20
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
21
|
+
| `application` | integer | yes | — | yes | [applications](/entities/applications.md) |
|
|
22
|
+
| `activity` | smallint | no | `0` | — | — |
|
|
23
|
+
| `name` | text | no | — | yes | — |
|
|
24
|
+
| `identifier` | character varying(200) | no | — | yes | — |
|
|
25
|
+
| `mimetype` | text | no | `'text/x-zymba'` | — | — |
|
|
26
|
+
| `public` | smallint | no | `0` | — | — |
|
|
27
|
+
| `binfile` | integer | yes | — | yes | [binfiles](/entities/binfiles.md) |
|
|
28
|
+
|
|
29
|
+
# Foreign Keys
|
|
30
|
+
|
|
31
|
+
- `application` → [applications](/entities/applications.md) (`applications.ID`)
|
|
32
|
+
- `binfile` → [binfiles](/entities/binfiles.md) (`binfiles.ID`)
|
|
33
|
+
|
|
34
|
+
# Enums
|
|
35
|
+
|
|
36
|
+
### `activity`
|
|
37
|
+
|
|
38
|
+
`0` = ACTIVE · `1` = DEACTIVATED · `2` = DELETED
|
|
39
|
+
|
|
40
|
+
# Indexes
|
|
41
|
+
|
|
42
|
+
- `fk_resources_application` — gin, partial on `application`
|
|
43
|
+
- `fk_resources_binfile` — btree, partial on `binfile`
|
|
44
|
+
- `s_resources_identifier` — gin on `identifier`
|
|
45
|
+
- `s_resources_name` — gin on `name`
|
|
46
|
+
- `u_resources_identifier` — btree, unique on `identifier`
|
|
47
|
+
|
|
48
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
49
|
+
|
|
50
|
+
# Operations
|
|
51
|
+
|
|
52
|
+
- list: `listResources`
|
|
53
|
+
- get: `getResource`
|
|
54
|
+
- exists: `existsResource`
|
|
55
|
+
<!-- okf:generated:end -->
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: ZeyOS Entity
|
|
3
|
+
title: Services
|
|
4
|
+
description: Hook, timing, or remote-call services.
|
|
5
|
+
resource: zeyos://api/services
|
|
6
|
+
tags: [platform, generated]
|
|
7
|
+
api_backed: true
|
|
8
|
+
list_operation: listServices
|
|
9
|
+
visibility_column: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- okf:generated:start — rewritten by scripts/generate-okf.mjs; do not edit by hand -->
|
|
13
|
+
# Schema
|
|
14
|
+
|
|
15
|
+
| Column | Type | Nullable | Default | Indexed | FK |
|
|
16
|
+
|---|---|---|---|---|---|
|
|
17
|
+
| `ID` | integer | no | — | yes | — |
|
|
18
|
+
| `creator` | integer | yes | — | — | — |
|
|
19
|
+
| `creationdate` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
20
|
+
| `lastmodified` | bigint | no | `date_part('epoch', now())` | — | — |
|
|
21
|
+
| `application` | integer | yes | — | yes | [applications](/entities/applications.md) |
|
|
22
|
+
| `activity` | smallint | no | `0` | — | — |
|
|
23
|
+
| `name` | text | no | — | yes | — |
|
|
24
|
+
| `identifier` | character varying(200) | no | — | yes | — |
|
|
25
|
+
| `type` | smallint | yes | — | — | — |
|
|
26
|
+
| `entity` | text | no | `''` | — | — |
|
|
27
|
+
| `schedule` | integer | no | `0` | — | — |
|
|
28
|
+
| `interval` | smallint | no | `1` | — | — |
|
|
29
|
+
| `mimetype` | text | no | `'text/x-zymba'` | — | — |
|
|
30
|
+
| `binfile` | integer | yes | — | yes | [binfiles](/entities/binfiles.md) |
|
|
31
|
+
| `url` | text | no | `''` | — | — |
|
|
32
|
+
| `accesskey` | bytea | yes | — | — | — |
|
|
33
|
+
|
|
34
|
+
# Foreign Keys
|
|
35
|
+
|
|
36
|
+
- `application` → [applications](/entities/applications.md) (`applications.ID`)
|
|
37
|
+
- `binfile` → [binfiles](/entities/binfiles.md) (`binfiles.ID`)
|
|
38
|
+
|
|
39
|
+
# Enums
|
|
40
|
+
|
|
41
|
+
### `activity`
|
|
42
|
+
|
|
43
|
+
`0` = ACTIVE · `1` = DEACTIVATED · `2` = DELETED
|
|
44
|
+
|
|
45
|
+
### `type`
|
|
46
|
+
|
|
47
|
+
`0` = TIMING · `1` = REMOTECALL · `2` = AFTER_CREATION · `3` = BEFORE_MODIFICATION · `4` = AFTER_MODIFICATION · `5` = AFTER_CREATION_MODIFICATION · `6` = BEFORE_DELETION · `7` = AFTER_DELETION
|
|
48
|
+
|
|
49
|
+
# Indexes
|
|
50
|
+
|
|
51
|
+
- `fk_services_application` — gin, partial on `application`
|
|
52
|
+
- `fk_services_binfile` — btree, partial on `binfile`
|
|
53
|
+
- `s_services_identifier` — gin on `identifier`
|
|
54
|
+
- `s_services_name` — gin on `name`
|
|
55
|
+
- `u_services_identifier` — btree, unique on `identifier`
|
|
56
|
+
|
|
57
|
+
> Partial/GIN indexes back the `filters` (plural) query form for foreign-key fields. See [filters-vs-filter](/concepts/filters-vs-filter.md).
|
|
58
|
+
|
|
59
|
+
# Operations
|
|
60
|
+
|
|
61
|
+
- list: `listServices`
|
|
62
|
+
- get: `getService`
|
|
63
|
+
- exists: `existsService`
|
|
64
|
+
<!-- okf:generated:end -->
|