monday-cli 0.2.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 +439 -0
- package/LICENSE +21 -0
- package/README.md +431 -0
- package/dist/api/board-child-finder.d.ts +95 -0
- package/dist/api/board-child-finder.d.ts.map +1 -0
- package/dist/api/board-child-finder.js +89 -0
- package/dist/api/board-child-finder.js.map +1 -0
- package/dist/api/board-metadata.d.ts +162 -0
- package/dist/api/board-metadata.d.ts.map +1 -0
- package/dist/api/board-metadata.js +238 -0
- package/dist/api/board-metadata.js.map +1 -0
- package/dist/api/board-mutation-invalidation.d.ts +153 -0
- package/dist/api/board-mutation-invalidation.d.ts.map +1 -0
- package/dist/api/board-mutation-invalidation.js +136 -0
- package/dist/api/board-mutation-invalidation.js.map +1 -0
- package/dist/api/board-mutation-result.d.ts +97 -0
- package/dist/api/board-mutation-result.d.ts.map +1 -0
- package/dist/api/board-mutation-result.js +99 -0
- package/dist/api/board-mutation-result.js.map +1 -0
- package/dist/api/board-projection.d.ts +68 -0
- package/dist/api/board-projection.d.ts.map +1 -0
- package/dist/api/board-projection.js +79 -0
- package/dist/api/board-projection.js.map +1 -0
- package/dist/api/cache.d.ts +150 -0
- package/dist/api/cache.d.ts.map +1 -0
- package/dist/api/cache.js +418 -0
- package/dist/api/cache.js.map +1 -0
- package/dist/api/client.d.ts +162 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +205 -0
- package/dist/api/client.js.map +1 -0
- package/dist/api/column-mapping.d.ts +68 -0
- package/dist/api/column-mapping.d.ts.map +1 -0
- package/dist/api/column-mapping.js +117 -0
- package/dist/api/column-mapping.js.map +1 -0
- package/dist/api/column-mutation-result.d.ts +136 -0
- package/dist/api/column-mutation-result.d.ts.map +1 -0
- package/dist/api/column-mutation-result.js +130 -0
- package/dist/api/column-mutation-result.js.map +1 -0
- package/dist/api/column-types.d.ts +215 -0
- package/dist/api/column-types.d.ts.map +1 -0
- package/dist/api/column-types.js +195 -0
- package/dist/api/column-types.js.map +1 -0
- package/dist/api/column-values.d.ts +446 -0
- package/dist/api/column-values.d.ts.map +1 -0
- package/dist/api/column-values.js +795 -0
- package/dist/api/column-values.js.map +1 -0
- package/dist/api/columns.d.ts +205 -0
- package/dist/api/columns.d.ts.map +1 -0
- package/dist/api/columns.js +343 -0
- package/dist/api/columns.js.map +1 -0
- package/dist/api/complexity.d.ts +90 -0
- package/dist/api/complexity.d.ts.map +1 -0
- package/dist/api/complexity.js +194 -0
- package/dist/api/complexity.js.map +1 -0
- package/dist/api/dates.d.ts +150 -0
- package/dist/api/dates.d.ts.map +1 -0
- package/dist/api/dates.js +490 -0
- package/dist/api/dates.js.map +1 -0
- package/dist/api/destructive-gate.d.ts +107 -0
- package/dist/api/destructive-gate.d.ts.map +1 -0
- package/dist/api/destructive-gate.js +19 -0
- package/dist/api/destructive-gate.js.map +1 -0
- package/dist/api/dry-run.d.ts +338 -0
- package/dist/api/dry-run.d.ts.map +1 -0
- package/dist/api/dry-run.js +607 -0
- package/dist/api/dry-run.js.map +1 -0
- package/dist/api/emails.d.ts +60 -0
- package/dist/api/emails.d.ts.map +1 -0
- package/dist/api/emails.js +113 -0
- package/dist/api/emails.js.map +1 -0
- package/dist/api/errors.d.ts +82 -0
- package/dist/api/errors.d.ts.map +1 -0
- package/dist/api/errors.js +434 -0
- package/dist/api/errors.js.map +1 -0
- package/dist/api/filters.d.ts +198 -0
- package/dist/api/filters.d.ts.map +1 -0
- package/dist/api/filters.js +328 -0
- package/dist/api/filters.js.map +1 -0
- package/dist/api/group-color.d.ts +33 -0
- package/dist/api/group-color.d.ts.map +1 -0
- package/dist/api/group-color.js +80 -0
- package/dist/api/group-color.js.map +1 -0
- package/dist/api/group-mutation-result.d.ts +150 -0
- package/dist/api/group-mutation-result.d.ts.map +1 -0
- package/dist/api/group-mutation-result.js +141 -0
- package/dist/api/group-mutation-result.js.map +1 -0
- package/dist/api/iso-country-codes.d.ts +45 -0
- package/dist/api/iso-country-codes.d.ts.map +1 -0
- package/dist/api/iso-country-codes.js +71 -0
- package/dist/api/iso-country-codes.js.map +1 -0
- package/dist/api/item-board-lookup.d.ts +86 -0
- package/dist/api/item-board-lookup.d.ts.map +1 -0
- package/dist/api/item-board-lookup.js +140 -0
- package/dist/api/item-board-lookup.js.map +1 -0
- package/dist/api/item-helpers.d.ts +133 -0
- package/dist/api/item-helpers.d.ts.map +1 -0
- package/dist/api/item-helpers.js +139 -0
- package/dist/api/item-helpers.js.map +1 -0
- package/dist/api/item-mutation-result.d.ts +60 -0
- package/dist/api/item-mutation-result.d.ts.map +1 -0
- package/dist/api/item-mutation-result.js +63 -0
- package/dist/api/item-mutation-result.js.map +1 -0
- package/dist/api/item-projection.d.ts +165 -0
- package/dist/api/item-projection.d.ts.map +1 -0
- package/dist/api/item-projection.js +235 -0
- package/dist/api/item-projection.js.map +1 -0
- package/dist/api/item-source-read.d.ts +45 -0
- package/dist/api/item-source-read.d.ts.map +1 -0
- package/dist/api/item-source-read.js +57 -0
- package/dist/api/item-source-read.js.map +1 -0
- package/dist/api/items-page-walker.d.ts +126 -0
- package/dist/api/items-page-walker.d.ts.map +1 -0
- package/dist/api/items-page-walker.js +256 -0
- package/dist/api/items-page-walker.js.map +1 -0
- package/dist/api/links.d.ts +70 -0
- package/dist/api/links.d.ts.map +1 -0
- package/dist/api/links.js +128 -0
- package/dist/api/links.js.map +1 -0
- package/dist/api/me-token.d.ts +52 -0
- package/dist/api/me-token.d.ts.map +1 -0
- package/dist/api/me-token.js +55 -0
- package/dist/api/me-token.js.map +1 -0
- package/dist/api/pagination.d.ts +201 -0
- package/dist/api/pagination.d.ts.map +1 -0
- package/dist/api/pagination.js +223 -0
- package/dist/api/pagination.js.map +1 -0
- package/dist/api/partial-success-mutation.d.ts +28 -0
- package/dist/api/partial-success-mutation.d.ts.map +1 -0
- package/dist/api/partial-success-mutation.js +68 -0
- package/dist/api/partial-success-mutation.js.map +1 -0
- package/dist/api/people.d.ts +182 -0
- package/dist/api/people.d.ts.map +1 -0
- package/dist/api/people.js +260 -0
- package/dist/api/people.js.map +1 -0
- package/dist/api/phones.d.ts +74 -0
- package/dist/api/phones.d.ts.map +1 -0
- package/dist/api/phones.js +167 -0
- package/dist/api/phones.js.map +1 -0
- package/dist/api/raw-document.d.ts +53 -0
- package/dist/api/raw-document.d.ts.map +1 -0
- package/dist/api/raw-document.js +177 -0
- package/dist/api/raw-document.js.map +1 -0
- package/dist/api/raw-write.d.ts +127 -0
- package/dist/api/raw-write.d.ts.map +1 -0
- package/dist/api/raw-write.js +233 -0
- package/dist/api/raw-write.js.map +1 -0
- package/dist/api/resolution-context.d.ts +32 -0
- package/dist/api/resolution-context.d.ts.map +1 -0
- package/dist/api/resolution-context.js +42 -0
- package/dist/api/resolution-context.js.map +1 -0
- package/dist/api/resolution-pass.d.ts +163 -0
- package/dist/api/resolution-pass.d.ts.map +1 -0
- package/dist/api/resolution-pass.js +254 -0
- package/dist/api/resolution-pass.js.map +1 -0
- package/dist/api/resolve-client.d.ts +69 -0
- package/dist/api/resolve-client.d.ts.map +1 -0
- package/dist/api/resolve-client.js +70 -0
- package/dist/api/resolve-client.js.map +1 -0
- package/dist/api/resolver-error-fold.d.ts +176 -0
- package/dist/api/resolver-error-fold.d.ts.map +1 -0
- package/dist/api/resolver-error-fold.js +230 -0
- package/dist/api/resolver-error-fold.js.map +1 -0
- package/dist/api/resolvers.d.ts +131 -0
- package/dist/api/resolvers.d.ts.map +1 -0
- package/dist/api/resolvers.js +262 -0
- package/dist/api/resolvers.js.map +1 -0
- package/dist/api/response-root.d.ts +65 -0
- package/dist/api/response-root.d.ts.map +1 -0
- package/dist/api/response-root.js +61 -0
- package/dist/api/response-root.js.map +1 -0
- package/dist/api/retry.d.ts +112 -0
- package/dist/api/retry.d.ts.map +1 -0
- package/dist/api/retry.js +181 -0
- package/dist/api/retry.js.map +1 -0
- package/dist/api/set-expression.d.ts +23 -0
- package/dist/api/set-expression.d.ts.map +1 -0
- package/dist/api/set-expression.js +31 -0
- package/dist/api/set-expression.js.map +1 -0
- package/dist/api/sort.d.ts +59 -0
- package/dist/api/sort.d.ts.map +1 -0
- package/dist/api/sort.js +73 -0
- package/dist/api/sort.js.map +1 -0
- package/dist/api/source-aggregator.d.ts +94 -0
- package/dist/api/source-aggregator.d.ts.map +1 -0
- package/dist/api/source-aggregator.js +111 -0
- package/dist/api/source-aggregator.js.map +1 -0
- package/dist/api/transport.d.ts +58 -0
- package/dist/api/transport.d.ts.map +1 -0
- package/dist/api/transport.js +190 -0
- package/dist/api/transport.js.map +1 -0
- package/dist/api/update-mutation-result.d.ts +133 -0
- package/dist/api/update-mutation-result.d.ts.map +1 -0
- package/dist/api/update-mutation-result.js +145 -0
- package/dist/api/update-mutation-result.js.map +1 -0
- package/dist/api/users-fan-out-mutation.d.ts +124 -0
- package/dist/api/users-fan-out-mutation.d.ts.map +1 -0
- package/dist/api/users-fan-out-mutation.js +331 -0
- package/dist/api/users-fan-out-mutation.js.map +1 -0
- package/dist/api/walk-pages.d.ts +91 -0
- package/dist/api/walk-pages.d.ts.map +1 -0
- package/dist/api/walk-pages.js +84 -0
- package/dist/api/walk-pages.js.map +1 -0
- package/dist/api/workspace-projection.d.ts +64 -0
- package/dist/api/workspace-projection.d.ts.map +1 -0
- package/dist/api/workspace-projection.js +83 -0
- package/dist/api/workspace-projection.js.map +1 -0
- package/dist/cli/envelope-out.d.ts +128 -0
- package/dist/cli/envelope-out.d.ts.map +1 -0
- package/dist/cli/envelope-out.js +146 -0
- package/dist/cli/envelope-out.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +27 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/program.d.ts +29 -0
- package/dist/cli/program.d.ts.map +1 -0
- package/dist/cli/program.js +109 -0
- package/dist/cli/program.js.map +1 -0
- package/dist/cli/run.d.ts +108 -0
- package/dist/cli/run.d.ts.map +1 -0
- package/dist/cli/run.js +105 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/commands/account/client-helper.d.ts +37 -0
- package/dist/commands/account/client-helper.d.ts.map +1 -0
- package/dist/commands/account/client-helper.js +55 -0
- package/dist/commands/account/client-helper.js.map +1 -0
- package/dist/commands/account/complexity.d.ts +29 -0
- package/dist/commands/account/complexity.d.ts.map +1 -0
- package/dist/commands/account/complexity.js +70 -0
- package/dist/commands/account/complexity.js.map +1 -0
- package/dist/commands/account/info.d.ts +36 -0
- package/dist/commands/account/info.d.ts.map +1 -0
- package/dist/commands/account/info.js +74 -0
- package/dist/commands/account/info.js.map +1 -0
- package/dist/commands/account/version.d.ts +44 -0
- package/dist/commands/account/version.d.ts.map +1 -0
- package/dist/commands/account/version.js +98 -0
- package/dist/commands/account/version.js.map +1 -0
- package/dist/commands/account/whoami.d.ts +34 -0
- package/dist/commands/account/whoami.d.ts.map +1 -0
- package/dist/commands/account/whoami.js +77 -0
- package/dist/commands/account/whoami.js.map +1 -0
- package/dist/commands/board/add-users.d.ts +60 -0
- package/dist/commands/board/add-users.d.ts.map +1 -0
- package/dist/commands/board/add-users.js +133 -0
- package/dist/commands/board/add-users.js.map +1 -0
- package/dist/commands/board/archive.d.ts +64 -0
- package/dist/commands/board/archive.d.ts.map +1 -0
- package/dist/commands/board/archive.js +226 -0
- package/dist/commands/board/archive.js.map +1 -0
- package/dist/commands/board/column-create.d.ts +146 -0
- package/dist/commands/board/column-create.d.ts.map +1 -0
- package/dist/commands/board/column-create.js +564 -0
- package/dist/commands/board/column-create.js.map +1 -0
- package/dist/commands/board/column-delete.d.ts +76 -0
- package/dist/commands/board/column-delete.d.ts.map +1 -0
- package/dist/commands/board/column-delete.js +224 -0
- package/dist/commands/board/column-delete.js.map +1 -0
- package/dist/commands/board/column-update.d.ts +92 -0
- package/dist/commands/board/column-update.d.ts.map +1 -0
- package/dist/commands/board/column-update.js +364 -0
- package/dist/commands/board/column-update.js.map +1 -0
- package/dist/commands/board/columns.d.ts +30 -0
- package/dist/commands/board/columns.d.ts.map +1 -0
- package/dist/commands/board/columns.js +102 -0
- package/dist/commands/board/columns.js.map +1 -0
- package/dist/commands/board/create.d.ts +67 -0
- package/dist/commands/board/create.d.ts.map +1 -0
- package/dist/commands/board/create.js +226 -0
- package/dist/commands/board/create.js.map +1 -0
- package/dist/commands/board/delete.d.ts +60 -0
- package/dist/commands/board/delete.d.ts.map +1 -0
- package/dist/commands/board/delete.js +192 -0
- package/dist/commands/board/delete.js.map +1 -0
- package/dist/commands/board/describe.d.ts +68 -0
- package/dist/commands/board/describe.d.ts.map +1 -0
- package/dist/commands/board/describe.js +241 -0
- package/dist/commands/board/describe.js.map +1 -0
- package/dist/commands/board/doctor.d.ts +108 -0
- package/dist/commands/board/doctor.d.ts.map +1 -0
- package/dist/commands/board/doctor.js +417 -0
- package/dist/commands/board/doctor.js.map +1 -0
- package/dist/commands/board/duplicate.d.ts +85 -0
- package/dist/commands/board/duplicate.d.ts.map +1 -0
- package/dist/commands/board/duplicate.js +281 -0
- package/dist/commands/board/duplicate.js.map +1 -0
- package/dist/commands/board/find.d.ts +47 -0
- package/dist/commands/board/find.d.ts.map +1 -0
- package/dist/commands/board/find.js +153 -0
- package/dist/commands/board/find.js.map +1 -0
- package/dist/commands/board/get.d.ts +41 -0
- package/dist/commands/board/get.d.ts.map +1 -0
- package/dist/commands/board/get.js +66 -0
- package/dist/commands/board/get.js.map +1 -0
- package/dist/commands/board/group-archive.d.ts +83 -0
- package/dist/commands/board/group-archive.d.ts.map +1 -0
- package/dist/commands/board/group-archive.js +264 -0
- package/dist/commands/board/group-archive.js.map +1 -0
- package/dist/commands/board/group-create.d.ts +118 -0
- package/dist/commands/board/group-create.d.ts.map +1 -0
- package/dist/commands/board/group-create.js +239 -0
- package/dist/commands/board/group-create.js.map +1 -0
- package/dist/commands/board/group-delete.d.ts +79 -0
- package/dist/commands/board/group-delete.d.ts.map +1 -0
- package/dist/commands/board/group-delete.js +222 -0
- package/dist/commands/board/group-delete.js.map +1 -0
- package/dist/commands/board/group-duplicate.d.ts +70 -0
- package/dist/commands/board/group-duplicate.d.ts.map +1 -0
- package/dist/commands/board/group-duplicate.js +219 -0
- package/dist/commands/board/group-duplicate.js.map +1 -0
- package/dist/commands/board/group-update.d.ts +145 -0
- package/dist/commands/board/group-update.d.ts.map +1 -0
- package/dist/commands/board/group-update.js +341 -0
- package/dist/commands/board/group-update.js.map +1 -0
- package/dist/commands/board/groups.d.ts +28 -0
- package/dist/commands/board/groups.d.ts.map +1 -0
- package/dist/commands/board/groups.js +85 -0
- package/dist/commands/board/groups.js.map +1 -0
- package/dist/commands/board/list.d.ts +39 -0
- package/dist/commands/board/list.d.ts.map +1 -0
- package/dist/commands/board/list.js +135 -0
- package/dist/commands/board/list.js.map +1 -0
- package/dist/commands/board/subscribers.d.ts +24 -0
- package/dist/commands/board/subscribers.d.ts.map +1 -0
- package/dist/commands/board/subscribers.js +89 -0
- package/dist/commands/board/subscribers.js.map +1 -0
- package/dist/commands/board/update.d.ts +82 -0
- package/dist/commands/board/update.d.ts.map +1 -0
- package/dist/commands/board/update.js +328 -0
- package/dist/commands/board/update.js.map +1 -0
- package/dist/commands/cache/clear.d.ts +34 -0
- package/dist/commands/cache/clear.d.ts.map +1 -0
- package/dist/commands/cache/clear.js +113 -0
- package/dist/commands/cache/clear.js.map +1 -0
- package/dist/commands/cache/list.d.ts +50 -0
- package/dist/commands/cache/list.d.ts.map +1 -0
- package/dist/commands/cache/list.js +77 -0
- package/dist/commands/cache/list.js.map +1 -0
- package/dist/commands/cache/stats.d.ts +22 -0
- package/dist/commands/cache/stats.d.ts.map +1 -0
- package/dist/commands/cache/stats.js +56 -0
- package/dist/commands/cache/stats.js.map +1 -0
- package/dist/commands/config/path.d.ts +22 -0
- package/dist/commands/config/path.d.ts.map +1 -0
- package/dist/commands/config/path.js +74 -0
- package/dist/commands/config/path.js.map +1 -0
- package/dist/commands/config/show.d.ts +61 -0
- package/dist/commands/config/show.d.ts.map +1 -0
- package/dist/commands/config/show.js +137 -0
- package/dist/commands/config/show.js.map +1 -0
- package/dist/commands/emit.d.ts +156 -0
- package/dist/commands/emit.d.ts.map +1 -0
- package/dist/commands/emit.js +212 -0
- package/dist/commands/emit.js.map +1 -0
- package/dist/commands/index.d.ts +5 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +195 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/item/archive.d.ts +81 -0
- package/dist/commands/item/archive.d.ts.map +1 -0
- package/dist/commands/item/archive.js +187 -0
- package/dist/commands/item/archive.js.map +1 -0
- package/dist/commands/item/clear.d.ts +140 -0
- package/dist/commands/item/clear.d.ts.map +1 -0
- package/dist/commands/item/clear.js +748 -0
- package/dist/commands/item/clear.js.map +1 -0
- package/dist/commands/item/create.d.ts +77 -0
- package/dist/commands/item/create.d.ts.map +1 -0
- package/dist/commands/item/create.js +802 -0
- package/dist/commands/item/create.js.map +1 -0
- package/dist/commands/item/delete.d.ts +82 -0
- package/dist/commands/item/delete.d.ts.map +1 -0
- package/dist/commands/item/delete.js +179 -0
- package/dist/commands/item/delete.js.map +1 -0
- package/dist/commands/item/duplicate.d.ts +117 -0
- package/dist/commands/item/duplicate.d.ts.map +1 -0
- package/dist/commands/item/duplicate.js +238 -0
- package/dist/commands/item/duplicate.js.map +1 -0
- package/dist/commands/item/find.d.ts +55 -0
- package/dist/commands/item/find.d.ts.map +1 -0
- package/dist/commands/item/find.js +231 -0
- package/dist/commands/item/find.js.map +1 -0
- package/dist/commands/item/get.d.ts +47 -0
- package/dist/commands/item/get.d.ts.map +1 -0
- package/dist/commands/item/get.js +66 -0
- package/dist/commands/item/get.js.map +1 -0
- package/dist/commands/item/list.d.ts +73 -0
- package/dist/commands/item/list.d.ts.map +1 -0
- package/dist/commands/item/list.js +284 -0
- package/dist/commands/item/list.js.map +1 -0
- package/dist/commands/item/move.d.ts +181 -0
- package/dist/commands/item/move.d.ts.map +1 -0
- package/dist/commands/item/move.js +560 -0
- package/dist/commands/item/move.js.map +1 -0
- package/dist/commands/item/search.d.ts +67 -0
- package/dist/commands/item/search.d.ts.map +1 -0
- package/dist/commands/item/search.js +322 -0
- package/dist/commands/item/search.js.map +1 -0
- package/dist/commands/item/set.d.ts +88 -0
- package/dist/commands/item/set.d.ts.map +1 -0
- package/dist/commands/item/set.js +387 -0
- package/dist/commands/item/set.js.map +1 -0
- package/dist/commands/item/subitems.d.ts +50 -0
- package/dist/commands/item/subitems.d.ts.map +1 -0
- package/dist/commands/item/subitems.js +86 -0
- package/dist/commands/item/subitems.js.map +1 -0
- package/dist/commands/item/update.d.ts +99 -0
- package/dist/commands/item/update.d.ts.map +1 -0
- package/dist/commands/item/update.js +884 -0
- package/dist/commands/item/update.js.map +1 -0
- package/dist/commands/item/upsert.d.ts +105 -0
- package/dist/commands/item/upsert.d.ts.map +1 -0
- package/dist/commands/item/upsert.js +998 -0
- package/dist/commands/item/upsert.js.map +1 -0
- package/dist/commands/parse-argv.d.ts +20 -0
- package/dist/commands/parse-argv.d.ts.map +1 -0
- package/dist/commands/parse-argv.js +40 -0
- package/dist/commands/parse-argv.js.map +1 -0
- package/dist/commands/raw/index.d.ts +23 -0
- package/dist/commands/raw/index.d.ts.map +1 -0
- package/dist/commands/raw/index.js +416 -0
- package/dist/commands/raw/index.js.map +1 -0
- package/dist/commands/run-by-id-lookup.d.ts +72 -0
- package/dist/commands/run-by-id-lookup.d.ts.map +1 -0
- package/dist/commands/run-by-id-lookup.js +58 -0
- package/dist/commands/run-by-id-lookup.js.map +1 -0
- package/dist/commands/schema/index.d.ts +104 -0
- package/dist/commands/schema/index.d.ts.map +1 -0
- package/dist/commands/schema/index.js +183 -0
- package/dist/commands/schema/index.js.map +1 -0
- package/dist/commands/types.d.ts +66 -0
- package/dist/commands/types.d.ts.map +1 -0
- package/dist/commands/types.js +15 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/commands/update/body-source.d.ts +38 -0
- package/dist/commands/update/body-source.d.ts.map +1 -0
- package/dist/commands/update/body-source.js +80 -0
- package/dist/commands/update/body-source.js.map +1 -0
- package/dist/commands/update/clear-all.d.ts +67 -0
- package/dist/commands/update/clear-all.d.ts.map +1 -0
- package/dist/commands/update/clear-all.js +281 -0
- package/dist/commands/update/clear-all.js.map +1 -0
- package/dist/commands/update/create.d.ts +51 -0
- package/dist/commands/update/create.d.ts.map +1 -0
- package/dist/commands/update/create.js +167 -0
- package/dist/commands/update/create.js.map +1 -0
- package/dist/commands/update/delete.d.ts +53 -0
- package/dist/commands/update/delete.d.ts.map +1 -0
- package/dist/commands/update/delete.js +148 -0
- package/dist/commands/update/delete.js.map +1 -0
- package/dist/commands/update/edit.d.ts +37 -0
- package/dist/commands/update/edit.d.ts.map +1 -0
- package/dist/commands/update/edit.js +129 -0
- package/dist/commands/update/edit.js.map +1 -0
- package/dist/commands/update/get.d.ts +37 -0
- package/dist/commands/update/get.d.ts.map +1 -0
- package/dist/commands/update/get.js +92 -0
- package/dist/commands/update/get.js.map +1 -0
- package/dist/commands/update/like.d.ts +17 -0
- package/dist/commands/update/like.d.ts.map +1 -0
- package/dist/commands/update/like.js +23 -0
- package/dist/commands/update/like.js.map +1 -0
- package/dist/commands/update/list.d.ts +58 -0
- package/dist/commands/update/list.d.ts.map +1 -0
- package/dist/commands/update/list.js +322 -0
- package/dist/commands/update/list.js.map +1 -0
- package/dist/commands/update/pin.d.ts +17 -0
- package/dist/commands/update/pin.d.ts.map +1 -0
- package/dist/commands/update/pin.js +23 -0
- package/dist/commands/update/pin.js.map +1 -0
- package/dist/commands/update/reply.d.ts +47 -0
- package/dist/commands/update/reply.d.ts.map +1 -0
- package/dist/commands/update/reply.js +149 -0
- package/dist/commands/update/reply.js.map +1 -0
- package/dist/commands/update/toggle.d.ts +70 -0
- package/dist/commands/update/toggle.d.ts.map +1 -0
- package/dist/commands/update/toggle.js +118 -0
- package/dist/commands/update/toggle.js.map +1 -0
- package/dist/commands/update/unlike.d.ts +17 -0
- package/dist/commands/update/unlike.d.ts.map +1 -0
- package/dist/commands/update/unlike.js +22 -0
- package/dist/commands/update/unlike.js.map +1 -0
- package/dist/commands/update/unpin.d.ts +17 -0
- package/dist/commands/update/unpin.d.ts.map +1 -0
- package/dist/commands/update/unpin.js +21 -0
- package/dist/commands/update/unpin.js.map +1 -0
- package/dist/commands/user/get.d.ts +31 -0
- package/dist/commands/user/get.d.ts.map +1 -0
- package/dist/commands/user/get.js +81 -0
- package/dist/commands/user/get.js.map +1 -0
- package/dist/commands/user/list.d.ts +61 -0
- package/dist/commands/user/list.d.ts.map +1 -0
- package/dist/commands/user/list.js +148 -0
- package/dist/commands/user/list.js.map +1 -0
- package/dist/commands/user/me.d.ts +17 -0
- package/dist/commands/user/me.d.ts.map +1 -0
- package/dist/commands/user/me.js +49 -0
- package/dist/commands/user/me.js.map +1 -0
- package/dist/commands/workspace/add-users.d.ts +76 -0
- package/dist/commands/workspace/add-users.d.ts.map +1 -0
- package/dist/commands/workspace/add-users.js +154 -0
- package/dist/commands/workspace/add-users.js.map +1 -0
- package/dist/commands/workspace/create.d.ts +59 -0
- package/dist/commands/workspace/create.d.ts.map +1 -0
- package/dist/commands/workspace/create.js +163 -0
- package/dist/commands/workspace/create.js.map +1 -0
- package/dist/commands/workspace/delete.d.ts +67 -0
- package/dist/commands/workspace/delete.d.ts.map +1 -0
- package/dist/commands/workspace/delete.js +182 -0
- package/dist/commands/workspace/delete.js.map +1 -0
- package/dist/commands/workspace/folders.d.ts +40 -0
- package/dist/commands/workspace/folders.d.ts.map +1 -0
- package/dist/commands/workspace/folders.js +124 -0
- package/dist/commands/workspace/folders.js.map +1 -0
- package/dist/commands/workspace/get.d.ts +35 -0
- package/dist/commands/workspace/get.d.ts.map +1 -0
- package/dist/commands/workspace/get.js +62 -0
- package/dist/commands/workspace/get.js.map +1 -0
- package/dist/commands/workspace/list.d.ts +57 -0
- package/dist/commands/workspace/list.d.ts.map +1 -0
- package/dist/commands/workspace/list.js +125 -0
- package/dist/commands/workspace/list.js.map +1 -0
- package/dist/commands/workspace/remove-users.d.ts +47 -0
- package/dist/commands/workspace/remove-users.d.ts.map +1 -0
- package/dist/commands/workspace/remove-users.js +122 -0
- package/dist/commands/workspace/remove-users.js.map +1 -0
- package/dist/commands/workspace/update.d.ts +68 -0
- package/dist/commands/workspace/update.d.ts.map +1 -0
- package/dist/commands/workspace/update.js +237 -0
- package/dist/commands/workspace/update.js.map +1 -0
- package/dist/config/load.d.ts +33 -0
- package/dist/config/load.d.ts.map +1 -0
- package/dist/config/load.js +81 -0
- package/dist/config/load.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/types/global-flags.d.ts +69 -0
- package/dist/types/global-flags.d.ts.map +1 -0
- package/dist/types/global-flags.js +170 -0
- package/dist/types/global-flags.js.map +1 -0
- package/dist/types/ids.d.ts +38 -0
- package/dist/types/ids.d.ts.map +1 -0
- package/dist/types/ids.js +51 -0
- package/dist/types/ids.js.map +1 -0
- package/dist/types/json.d.ts +60 -0
- package/dist/types/json.d.ts.map +1 -0
- package/dist/types/json.js +33 -0
- package/dist/types/json.js.map +1 -0
- package/dist/utils/errors.d.ts +121 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +264 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/logger.d.ts +39 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +49 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/output/envelope.d.ts +140 -0
- package/dist/utils/output/envelope.d.ts.map +1 -0
- package/dist/utils/output/envelope.js +120 -0
- package/dist/utils/output/envelope.js.map +1 -0
- package/dist/utils/output/json.d.ts +10 -0
- package/dist/utils/output/json.d.ts.map +1 -0
- package/dist/utils/output/json.js +12 -0
- package/dist/utils/output/json.js.map +1 -0
- package/dist/utils/output/ndjson.d.ts +92 -0
- package/dist/utils/output/ndjson.d.ts.map +1 -0
- package/dist/utils/output/ndjson.js +33 -0
- package/dist/utils/output/ndjson.js.map +1 -0
- package/dist/utils/output/select.d.ts +22 -0
- package/dist/utils/output/select.d.ts.map +1 -0
- package/dist/utils/output/select.js +47 -0
- package/dist/utils/output/select.js.map +1 -0
- package/dist/utils/output/table.d.ts +32 -0
- package/dist/utils/output/table.d.ts.map +1 -0
- package/dist/utils/output/table.js +133 -0
- package/dist/utils/output/table.js.map +1 -0
- package/dist/utils/output/text.d.ts +5 -0
- package/dist/utils/output/text.d.ts.map +1 -0
- package/dist/utils/output/text.js +32 -0
- package/dist/utils/output/text.js.map +1 -0
- package/dist/utils/parse-boundary.d.ts +53 -0
- package/dist/utils/parse-boundary.d.ts.map +1 -0
- package/dist/utils/parse-boundary.js +62 -0
- package/dist/utils/parse-boundary.js.map +1 -0
- package/dist/utils/redact.d.ts +54 -0
- package/dist/utils/redact.d.ts.map +1 -0
- package/dist/utils/redact.js +154 -0
- package/dist/utils/redact.js.map +1 -0
- package/dist/utils/request-id.d.ts +17 -0
- package/dist/utils/request-id.d.ts.map +1 -0
- package/dist/utils/request-id.js +26 -0
- package/dist/utils/request-id.js.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Column-value writer (`cli-design.md` §5.3, `v0.1-plan.md` §3 M5a).
|
|
3
|
+
*
|
|
4
|
+
* The write half of the column-value abstraction: takes a resolved
|
|
5
|
+
* column + a raw user-supplied string and produces the Monday wire
|
|
6
|
+
* payload Monday's `change_simple_column_value` /
|
|
7
|
+
* `change_column_value` / `change_multiple_column_values` mutations
|
|
8
|
+
* accept.
|
|
9
|
+
*
|
|
10
|
+
* **Two entry points.** Nine of the ten allowlisted types translate
|
|
11
|
+
* purely locally — no network, no clock dependency beyond the date
|
|
12
|
+
* module's injectable clock — and live behind the sync
|
|
13
|
+
* `translateColumnValue`. `people` is the exception: email→ID
|
|
14
|
+
* resolution can hit the network. Rather than forcing a
|
|
15
|
+
* `Promise<TranslatedColumnValue>` on every call site for the nine
|
|
16
|
+
* sync types, `translateColumnValueAsync` is the unified async entry
|
|
17
|
+
* point the command layer always calls. It delegates to the sync
|
|
18
|
+
* version for non-people types and dispatches to `parsePeopleInput`
|
|
19
|
+
* for `people`. M5b's write surface goes through async exclusively
|
|
20
|
+
* (people may appear in any `--set` bundle).
|
|
21
|
+
*
|
|
22
|
+
* **Scope.** All ten allowlisted types translate:
|
|
23
|
+
* `text` / `long_text` / `numbers` (simple-string payloads, M5a
|
|
24
|
+
* skeleton); `status` / `dropdown` (rich-object payloads); `date`
|
|
25
|
+
* (rich, with relative-token resolution against the profile
|
|
26
|
+
* timezone); `people` (rich, with `me`-token + email resolution via
|
|
27
|
+
* the M3 `userByEmail` directory cache); and the M8 firm additions
|
|
28
|
+
* `link` / `email` / `phone` (pipe-form parsers in `links.ts` /
|
|
29
|
+
* `emails.ts` / `phones.ts`; same `change_column_value` wire path
|
|
30
|
+
* as the v0.1 rich types).
|
|
31
|
+
*
|
|
32
|
+
* **Date resolution context** (cli-design §5.3 step 3 + the
|
|
33
|
+
* "Relative dates and timezone" subsection). Relative tokens
|
|
34
|
+
* (`today`, `+3d`, `+2h`) need a clock + a timezone; both come
|
|
35
|
+
* from `TranslateColumnValueInputs.dateResolution`. Defaults to
|
|
36
|
+
* the system clock + system tz when omitted — M5b's command
|
|
37
|
+
* layer plumbs `MONDAY_TIMEZONE` env override through this slot.
|
|
38
|
+
* Tests inject a deterministic clock for DST-boundary coverage.
|
|
39
|
+
* The actual resolution machinery lives in `dates.ts`; this
|
|
40
|
+
* module just delegates and packages the result alongside the
|
|
41
|
+
* other column types.
|
|
42
|
+
*
|
|
43
|
+
* **People resolution context** (cli-design §5.3 step 3 line
|
|
44
|
+
* 728-734 + the `me` token rule line 704-707). Email lookups +
|
|
45
|
+
* `me` resolution come through
|
|
46
|
+
* `TranslateColumnValueAsyncInputs.peopleResolution`, which
|
|
47
|
+
* carries `resolveMe` (mirroring `filters.ts`'s slot, so the
|
|
48
|
+
* same M5b wiring resolves `me` for both filter reads and
|
|
49
|
+
* `--set` writes) and `resolveEmail` (M5b wires this to
|
|
50
|
+
* `resolvers.userByEmail`). Required for people columns; ignored
|
|
51
|
+
* for everything else. The actual parsing machinery lives in
|
|
52
|
+
* `people.ts`.
|
|
53
|
+
*
|
|
54
|
+
* **Mutation selection** (`cli-design.md` §5.3 step 5) lives in
|
|
55
|
+
* `selectMutation` below — single simple → `change_simple_column_value`;
|
|
56
|
+
* single rich → `change_column_value`; N (any combo) →
|
|
57
|
+
* `change_multiple_column_values` (atomic on Monday's side). The
|
|
58
|
+
* multi form re-wraps `long_text`'s simple bare string as
|
|
59
|
+
* `{ text: <value> }` because Monday's per-column blob inside
|
|
60
|
+
* `change_multiple_column_values` requires the object form for
|
|
61
|
+
* `long_text` (a wire-shape divergence from
|
|
62
|
+
* `change_simple_column_value`'s bare-string acceptance — pinned
|
|
63
|
+
* via fixture in the unit suite, logged as a spec gap in
|
|
64
|
+
* `v0.1-plan.md` §3 M5a for cli-design backfill).
|
|
65
|
+
*
|
|
66
|
+
* **No CLI-side label-to-index lookup.** Per `cli-design.md` §5.3
|
|
67
|
+
* step 3: the CLI emits `{ "label": ... }` for label input and
|
|
68
|
+
* `{ "index": N }` for numeric input on `status`; it does *not*
|
|
69
|
+
* traverse `column.settings_str` to resolve labels to their stable
|
|
70
|
+
* indexes. Same shape for `dropdown` — `{ "labels": [...] }` for
|
|
71
|
+
* label input, `{ "ids": [...] }` for all-numeric input. Monday is
|
|
72
|
+
* the validator of last resort; the translator's contract is
|
|
73
|
+
* "produce the documented wire shape, let Monday reject typos as
|
|
74
|
+
* `validation_failed`".
|
|
75
|
+
*
|
|
76
|
+
* **Monday `JSON` scalar discipline** (`cli-design.md` §5.3 step 4).
|
|
77
|
+
* Every payload is a plain JS value (string for the simple form,
|
|
78
|
+
* plain object for the rich form). The SDK / fetch layer is
|
|
79
|
+
* responsible for stringifying at the wire boundary — this module
|
|
80
|
+
* never `JSON.stringify`s. The unit tests in
|
|
81
|
+
* `tests/unit/api/column-values.test.ts` pin the exact wire shape
|
|
82
|
+
* per type as a fixture so M5b and v0.2's bulk surface inherit the
|
|
83
|
+
* rule unchanged.
|
|
84
|
+
*
|
|
85
|
+
* **`--set-raw` escape hatch (M8).** v0.1 had no escape hatch;
|
|
86
|
+
* v0.2's M8 milestone added `--set-raw <col>=<json>` (see
|
|
87
|
+
* `src/api/raw-write.ts`) for column types that don't have a
|
|
88
|
+
* friendly translator yet. Non-allowlisted column types still
|
|
89
|
+
* surface `unsupported_column_type` keyed by roadmap category per
|
|
90
|
+
* `column-types.ts getColumnRoadmapCategory`: tentative writer-
|
|
91
|
+
* expansion types (`tags` / `board_relation` / `dependency`) slipped
|
|
92
|
+
* to v0.3 at M18 close — they get `deferred_to: "v0.3"` plus a
|
|
93
|
+
* `--set-raw` hint, read-only-forever types get
|
|
94
|
+
* `read_only: true`, anything else gets `deferred_to: "future"`
|
|
95
|
+
* with a `--set-raw` hint when the underlying mutation is shaped
|
|
96
|
+
* like `change_column_value`. The M8 contract is "we translate the
|
|
97
|
+
* ten allowlisted types and reject everything else with
|
|
98
|
+
* category-accurate guidance, pointing tentative + future-shaped
|
|
99
|
+
* targets at `--set-raw`."
|
|
100
|
+
*/
|
|
101
|
+
import { ApiError } from '../utils/errors.js';
|
|
102
|
+
import type { JsonObject } from '../types/json.js';
|
|
103
|
+
import { type WritableColumnType } from './column-types.js';
|
|
104
|
+
import { type DateResolution, type DateResolutionContext } from './dates.js';
|
|
105
|
+
import { type PeopleResolution, type PeopleResolutionContext } from './people.js';
|
|
106
|
+
export type { DateResolution, DateResolutionContext } from './dates.js';
|
|
107
|
+
export type { PeoplePayload, PeoplePayloadEntry, PeopleResolution, PeopleResolutionContext, PeopleResolutionToken, } from './people.js';
|
|
108
|
+
export type { LinkPayload } from './links.js';
|
|
109
|
+
export type { EmailPayload } from './emails.js';
|
|
110
|
+
export type { PhonePayload } from './phones.js';
|
|
111
|
+
/**
|
|
112
|
+
* Discriminator on the wire payload's *shape*, not the GraphQL
|
|
113
|
+
* mutation that consumes it (one mutation can accept either shape).
|
|
114
|
+
*
|
|
115
|
+
* - `simple` — bare-string payload accepted by
|
|
116
|
+
* `change_simple_column_value`. Used by `text`, `long_text`,
|
|
117
|
+
* `numbers`. When bundled into `change_multiple_column_values`,
|
|
118
|
+
* `long_text` is re-wrapped to `{ text: <value> }` by
|
|
119
|
+
* `selectMutation`; the discriminator on the translated value
|
|
120
|
+
* stays `simple` because that's the column-class fact, not
|
|
121
|
+
* the per-mutation projection.
|
|
122
|
+
* - `rich` — plain-object payload accepted by
|
|
123
|
+
* `change_column_value` and the per-column entry in
|
|
124
|
+
* `change_multiple_column_values`. Used by `status`,
|
|
125
|
+
* `dropdown`, `date`, and `people`. The slot type is
|
|
126
|
+
* `JsonObject` (R-JsonValue refactor) so non-JSON values
|
|
127
|
+
* (`undefined`, symbols, functions) can't sneak past the
|
|
128
|
+
* type system into the wire payload.
|
|
129
|
+
*/
|
|
130
|
+
export type ColumnValuePayload = {
|
|
131
|
+
readonly format: 'simple';
|
|
132
|
+
readonly value: string;
|
|
133
|
+
} | {
|
|
134
|
+
readonly format: 'rich';
|
|
135
|
+
readonly value: JsonObject;
|
|
136
|
+
};
|
|
137
|
+
export interface TranslatedColumnValue {
|
|
138
|
+
/** The resolved column ID — echoed in M5b's mutation envelope. */
|
|
139
|
+
readonly columnId: string;
|
|
140
|
+
/** The resolved column's type — narrowed to `WRITABLE_COLUMN_TYPES`. */
|
|
141
|
+
readonly columnType: WritableColumnType;
|
|
142
|
+
/** The wire payload + format discriminator. */
|
|
143
|
+
readonly payload: ColumnValuePayload;
|
|
144
|
+
/** The raw input the caller passed, preserved for the dry-run diff. */
|
|
145
|
+
readonly rawInput: string;
|
|
146
|
+
/**
|
|
147
|
+
* Echo of the resolution context for relative-token date
|
|
148
|
+
* inputs — populated by the `date` translator when the input
|
|
149
|
+
* was a relative token (`today`, `+3d`, `+2h`) so the
|
|
150
|
+
* dry-run engine can render `details.resolved_from` per
|
|
151
|
+
* cli-design §6.4. `null` for explicit ISO inputs (where
|
|
152
|
+
* the raw input *is* the resolved value) and for
|
|
153
|
+
* non-`date` columns. cli-design §5.3 line 783-786 pins
|
|
154
|
+
* the shape.
|
|
155
|
+
*/
|
|
156
|
+
readonly resolvedFrom: DateResolution | null;
|
|
157
|
+
/**
|
|
158
|
+
* Echo of the per-token resolution for the `people` translator —
|
|
159
|
+
* one entry per input token, pairing the verbatim input with the
|
|
160
|
+
* resolved Monday user ID. Populated by the people translator;
|
|
161
|
+
* `null` for every other type. The dry-run engine renders this
|
|
162
|
+
* as `details.resolved_from` on people-column diff cells.
|
|
163
|
+
*
|
|
164
|
+
* **Why a parallel slot rather than widening `resolvedFrom`** —
|
|
165
|
+
* the date echo and people echo are structurally different
|
|
166
|
+
* (`{input, timezone, now}` vs `{tokens: [{input, resolved_id},
|
|
167
|
+
* ...]}`). One slot per kind keeps existing `resolvedFrom`
|
|
168
|
+
* consumers untouched and lets each translator's tests assert on
|
|
169
|
+
* its own shape without an `if kind === 'date'` discriminator
|
|
170
|
+
* dance. v0.2 may widen — extending the union is always
|
|
171
|
+
* available later. The shape itself is a v0.1-plan §3 M5a spec
|
|
172
|
+
* gap for cli-design backfill (the §6.4 sample only shows the
|
|
173
|
+
* date case).
|
|
174
|
+
*/
|
|
175
|
+
readonly peopleResolution: PeopleResolution | null;
|
|
176
|
+
}
|
|
177
|
+
export interface TranslateColumnValueInputs {
|
|
178
|
+
/**
|
|
179
|
+
* The resolved column. Only `id` and `type` are read; the full
|
|
180
|
+
* `BoardColumn` is fine but not required, so the bulk path can
|
|
181
|
+
* project a slim shape.
|
|
182
|
+
*/
|
|
183
|
+
readonly column: {
|
|
184
|
+
readonly id: string;
|
|
185
|
+
readonly type: string;
|
|
186
|
+
};
|
|
187
|
+
/** The raw user-supplied value (post-`--set` parsing). */
|
|
188
|
+
readonly value: string;
|
|
189
|
+
/**
|
|
190
|
+
* Resolution context for the `date` translator's relative
|
|
191
|
+
* tokens (`today`, `+3d`, `+2h`). Ignored for non-`date`
|
|
192
|
+
* columns. Defaults to system clock + system tz when omitted;
|
|
193
|
+
* M5b's command layer plumbs `MONDAY_TIMEZONE` env override
|
|
194
|
+
* through this slot per cli-design §5.3 line 765.
|
|
195
|
+
*/
|
|
196
|
+
readonly dateResolution?: DateResolutionContext;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Async-entry inputs — superset of `TranslateColumnValueInputs`
|
|
200
|
+
* with the people-resolution slot. Required for people columns;
|
|
201
|
+
* ignored for everything else. The async entry point delegates
|
|
202
|
+
* to the sync version when `column.type !== 'people'`, so the
|
|
203
|
+
* `peopleResolution` slot can be omitted in callers that know
|
|
204
|
+
* they're never targeting a people column.
|
|
205
|
+
*
|
|
206
|
+
* In M5b's command layer, the slot is always passed (the layer
|
|
207
|
+
* doesn't know in advance which column types appear in a
|
|
208
|
+
* multi-`--set` bundle).
|
|
209
|
+
*/
|
|
210
|
+
export interface TranslateColumnValueAsyncInputs extends TranslateColumnValueInputs {
|
|
211
|
+
/**
|
|
212
|
+
* Resolution context for the `people` translator's `me` token
|
|
213
|
+
* + email lookups. Required for people columns; ignored for
|
|
214
|
+
* non-people types. cli-design §5.3 step 3 line 728-734 +
|
|
215
|
+
* line 704-707 pin the grammar.
|
|
216
|
+
*/
|
|
217
|
+
readonly peopleResolution?: PeopleResolutionContext;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Translates a single `<column>=<value>` pair into the Monday wire
|
|
221
|
+
* payload. **Sync entry point — handles the nine types whose
|
|
222
|
+
* translation is purely local computation** (`text` / `long_text` /
|
|
223
|
+
* `numbers` / `status` / `dropdown` / `date` / `link` / `email` /
|
|
224
|
+
* `phone`). For `people` columns, use `translateColumnValueAsync`:
|
|
225
|
+
* people resolution can hit the network (email→ID lookup) and is
|
|
226
|
+
* therefore async-only.
|
|
227
|
+
*
|
|
228
|
+
* **Throws** `ApiError`:
|
|
229
|
+
* - `unsupported_column_type` — type not in the friendly
|
|
230
|
+
* allowlist. Carries `column_id` + `type` plus per-category
|
|
231
|
+
* details: `deferred_to: "v0.3"` for the tentative writer-
|
|
232
|
+
* expansion row that slipped from v0.2 (`tags` /
|
|
233
|
+
* `board_relation` / `dependency`), `read_only: true` for
|
|
234
|
+
* read-only-forever types (mirror / formula / auto_number /
|
|
235
|
+
* creation_log / last_updated / item_id), `deferred_to:
|
|
236
|
+
* "future"` for anything else. The `--set-raw` escape hatch
|
|
237
|
+
* (M8) accepts most non-allowlisted types.
|
|
238
|
+
* - `internal_error` — sync entry was called on a `people`
|
|
239
|
+
* column. Programmer error: the write surface always uses
|
|
240
|
+
* `translateColumnValueAsync`. The check exists so a future
|
|
241
|
+
* contributor doesn't accidentally regress to a sync code
|
|
242
|
+
* path that silently mis-translates people input.
|
|
243
|
+
*
|
|
244
|
+
* **Throws** `UsageError`:
|
|
245
|
+
* - `usage_error` — for status / dropdown numeric input that
|
|
246
|
+
* exceeds `Number.MAX_SAFE_INTEGER`, dropdown input that
|
|
247
|
+
* contains no labels and no IDs after trim + filter, `date`
|
|
248
|
+
* input that does not match any supported form (ISO date,
|
|
249
|
+
* ISO date+time, or relative token), invalid URL / email /
|
|
250
|
+
* phone in the link / email / phone translators, or
|
|
251
|
+
* pipe-form input with empty leader/trailer in those types.
|
|
252
|
+
* See `unsafeIntegerError`, the dropdown empty-input branch,
|
|
253
|
+
* `dates.parseDateInput`, `links.parseLinkInput`,
|
|
254
|
+
* `emails.parseEmailInput`, and `phones.parsePhoneInput` for
|
|
255
|
+
* the documented messages.
|
|
256
|
+
*/
|
|
257
|
+
export declare const translateColumnValue: (inputs: TranslateColumnValueInputs) => TranslatedColumnValue;
|
|
258
|
+
/**
|
|
259
|
+
* Async entry point — handles every type in `WRITABLE_COLUMN_TYPES`.
|
|
260
|
+
* Delegates to `translateColumnValue` (sync) for non-people columns;
|
|
261
|
+
* dispatches to `parsePeopleInput` for `people`.
|
|
262
|
+
*
|
|
263
|
+
* The `peopleResolution` slot is required when `column.type ===
|
|
264
|
+
* 'people'`. Omitting it for a people column raises `internal_error`
|
|
265
|
+
* (programmer wiring bug) — agents see this as a loud failure
|
|
266
|
+
* rather than a silent fallback to the unsupported-type path.
|
|
267
|
+
*
|
|
268
|
+
* **Throws** every error `translateColumnValue` throws (delegated
|
|
269
|
+
* unchanged for non-people types), plus:
|
|
270
|
+
* - `ApiError(user_not_found)` — bubbled from `peopleResolution.
|
|
271
|
+
* resolveEmail` for unknown emails. cli-design.md §5.3 step 3
|
|
272
|
+
* line 733 pins the contract.
|
|
273
|
+
* - `UsageError(usage_error)` — empty / numeric people input.
|
|
274
|
+
* See `parsePeopleInput` for the per-branch messages.
|
|
275
|
+
* - `ApiError(internal_error)` — `peopleResolution` was omitted
|
|
276
|
+
* for a people column.
|
|
277
|
+
*/
|
|
278
|
+
/**
|
|
279
|
+
* Builds the per-type "clear" payload for `monday item clear`. The
|
|
280
|
+
* dedicated verb keeps `--set <col>=<value>` and the clear path
|
|
281
|
+
* non-overlapping (cli-design §5.3 step 3 explicitly notes that
|
|
282
|
+
* empty-string input on `status` is `{label: ""}`, NOT a clear; the
|
|
283
|
+
* translator is value-shaping, not intent-disambiguating).
|
|
284
|
+
*
|
|
285
|
+
* Per-type clear shapes:
|
|
286
|
+
* - `text` / `long_text` / `numbers` → simple bare empty string
|
|
287
|
+
* (`change_simple_column_value(value: "")` clears the cell).
|
|
288
|
+
* - `status` / `dropdown` / `date` / `people` → empty JSON object
|
|
289
|
+
* `{}` via `change_column_value(value: JSON!)`. Monday's
|
|
290
|
+
* official "clear all column values" pattern.
|
|
291
|
+
*
|
|
292
|
+
* **Throws** `unsupported_column_type` for types outside the v0.1
|
|
293
|
+
* writable allowlist — same code path the value translator uses,
|
|
294
|
+
* keyed by roadmap category (`deferred_to: "v0.3"` /
|
|
295
|
+
* `read_only: true` / `deferred_to: "future"`). Agents see the
|
|
296
|
+
* same per-category surface across `item set` / `item update` /
|
|
297
|
+
* `item clear`, so a wrapper that triages on the error details
|
|
298
|
+
* doesn't need a per-verb branch.
|
|
299
|
+
*
|
|
300
|
+
* Sync entry — `people` clear doesn't need email resolution (the
|
|
301
|
+
* payload is `{}` regardless of who's currently assigned). Reused
|
|
302
|
+
* by the `item clear` dry-run + live paths.
|
|
303
|
+
*/
|
|
304
|
+
export declare const translateColumnClear: (column: {
|
|
305
|
+
readonly id: string;
|
|
306
|
+
readonly type: string;
|
|
307
|
+
}) => TranslatedColumnValue;
|
|
308
|
+
export declare const translateColumnValueAsync: (inputs: TranslateColumnValueAsyncInputs) => Promise<TranslatedColumnValue>;
|
|
309
|
+
/**
|
|
310
|
+
* The wire shape `change_multiple_column_values` accepts for one
|
|
311
|
+
* column inside its `column_values` map: either a bare string (for
|
|
312
|
+
* the simple types Monday accepts as a string) or a plain JSON
|
|
313
|
+
* object (for rich types — and for `long_text`, see below).
|
|
314
|
+
*/
|
|
315
|
+
export type MultiColumnValue = string | JsonObject;
|
|
316
|
+
/**
|
|
317
|
+
* Discriminated union over the three v0.1 mutation paths that
|
|
318
|
+
* `cli-design.md` §5.3 step 5 enumerates. The variant carries
|
|
319
|
+
* exactly the fields M5b's command layer threads into the GraphQL
|
|
320
|
+
* SDK — no extra projection at the call site.
|
|
321
|
+
*
|
|
322
|
+
* - `change_simple_column_value` — single simple type. The
|
|
323
|
+
* `value` field is the bare string Monday's
|
|
324
|
+
* `change_simple_column_value(value: String!)` mutation
|
|
325
|
+
* accepts. `text` / `long_text` / `numbers` only.
|
|
326
|
+
* - `change_column_value` — single rich type. The `value` field
|
|
327
|
+
* is the plain-object payload Monday's
|
|
328
|
+
* `change_column_value(value: JSON!)` mutation accepts —
|
|
329
|
+
* the SDK / fetch layer JSON-stringifies at the wire boundary.
|
|
330
|
+
* Used by `status` / `dropdown` / `date` / `people`.
|
|
331
|
+
* - `change_multiple_column_values` — N (any combo). The
|
|
332
|
+
* `columnValues` map carries one entry per column; per-column
|
|
333
|
+
* value is `string | object` per `MultiColumnValue` above.
|
|
334
|
+
* **`long_text` re-wrap**: simple-form `long_text`'s bare
|
|
335
|
+
* string is wrapped to `{ text: <value> }` for this mutation
|
|
336
|
+
* because Monday's per-column blob inside the multi mutation
|
|
337
|
+
* requires the object form for `long_text` (a wire-shape
|
|
338
|
+
* divergence from `change_simple_column_value`'s bare-string
|
|
339
|
+
* acceptance — see selectMutation source comment for the spec
|
|
340
|
+
* gap).
|
|
341
|
+
*/
|
|
342
|
+
export type SelectedMutation = {
|
|
343
|
+
readonly kind: 'change_simple_column_value';
|
|
344
|
+
readonly columnId: string;
|
|
345
|
+
readonly value: string;
|
|
346
|
+
} | {
|
|
347
|
+
readonly kind: 'change_column_value';
|
|
348
|
+
readonly columnId: string;
|
|
349
|
+
readonly value: JsonObject;
|
|
350
|
+
} | {
|
|
351
|
+
readonly kind: 'change_multiple_column_values';
|
|
352
|
+
readonly columnValues: Readonly<Record<string, MultiColumnValue>>;
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* Picks the right Monday mutation for a list of translated column
|
|
356
|
+
* values per `cli-design.md` §5.3 step 5.
|
|
357
|
+
*
|
|
358
|
+
* Dispatch:
|
|
359
|
+
* - 1 translated value, simple → `change_simple_column_value`
|
|
360
|
+
* (bare-string `value`).
|
|
361
|
+
* - 1 translated value, rich → `change_column_value` (object
|
|
362
|
+
* `value`).
|
|
363
|
+
* - N translated values (any combo of simple / rich) →
|
|
364
|
+
* `change_multiple_column_values`. Atomic on Monday's side —
|
|
365
|
+
* either every column update lands or none do.
|
|
366
|
+
*
|
|
367
|
+
* **Duplicate column IDs throw `usage_error`.** Bundling two
|
|
368
|
+
* `--set status=Done --set status=Doing` would have last-write-wins
|
|
369
|
+
* semantics inside `change_multiple_column_values`'s map and the
|
|
370
|
+
* agent has no way to know which one won. Surfacing as a typed
|
|
371
|
+
* error at the bundling boundary keeps mutations deterministic;
|
|
372
|
+
* the command layer (M5b) can catch + reframe with the literal
|
|
373
|
+
* `--set` flags it received.
|
|
374
|
+
*
|
|
375
|
+
* **Empty input throws `usage_error`.** Defensive — the command
|
|
376
|
+
* layer is supposed to validate `--set` was supplied, but the
|
|
377
|
+
* helper shouldn't return a malformed `change_multiple_column_values`
|
|
378
|
+
* with an empty map.
|
|
379
|
+
*
|
|
380
|
+
* **`long_text` re-wrap, spec gap.** Monday's
|
|
381
|
+
* `change_multiple_column_values(column_values: JSON!)` accepts a
|
|
382
|
+
* map where each value is either a string or a per-type object.
|
|
383
|
+
* For `long_text` specifically, the per-type object is `{text:
|
|
384
|
+
* <value>}` — so the bare string that `change_simple_column_value`
|
|
385
|
+
* accepts is *not* the right shape inside the multi mutation.
|
|
386
|
+
* `text` / `numbers` stay as bare strings. This wire-shape
|
|
387
|
+
* divergence isn't called out in cli-design.md §5.3 step 5; logged
|
|
388
|
+
* as a spec gap in v0.1-plan.md §3 M5a for backfill. Pinned via
|
|
389
|
+
* fixture in the unit suite.
|
|
390
|
+
*/
|
|
391
|
+
export declare const selectMutation: (translated: readonly TranslatedColumnValue[]) => SelectedMutation;
|
|
392
|
+
/**
|
|
393
|
+
* Bundles a list of translated column values into Monday's
|
|
394
|
+
* `column_values: JSON!` map shape — the input parameter
|
|
395
|
+
* `change_multiple_column_values`, `create_item`, and `create_subitem`
|
|
396
|
+
* all accept. Per-column projection routes through `projectForMulti`,
|
|
397
|
+
* so the `long_text` re-wrap (`{ text: <value> }` inside the map)
|
|
398
|
+
* applies uniformly across every wire surface that takes a
|
|
399
|
+
* `column_values` map.
|
|
400
|
+
*
|
|
401
|
+
* **Why a shared helper.** `selectMutation` builds this map for the
|
|
402
|
+
* multi-update case (M5b); M9's `item create` needs the same shape
|
|
403
|
+
* to bundle `--set` values into `create_item.column_values` /
|
|
404
|
+
* `create_subitem.column_values`. The single-round-trip exit gate
|
|
405
|
+
* (cli-design §5.8) requires the create payload bundles every
|
|
406
|
+
* translated value into one map — and the shape rule should not
|
|
407
|
+
* drift between update and create. The fixture pin in
|
|
408
|
+
* `tests/unit/api/column-values.test.ts` covers both consumers.
|
|
409
|
+
*
|
|
410
|
+
* **Duplicate-column-ID throws `usage_error`.** Same rule as
|
|
411
|
+
* `selectMutation`'s multi case — bundling two values for the same
|
|
412
|
+
* column would silently keep one. The cli-design §5.3 step 2
|
|
413
|
+
* mutual-exclusion contract enforces this resolution-time; the
|
|
414
|
+
* helper duplicates the gate so misuse from a non-command caller
|
|
415
|
+
* still surfaces a typed error.
|
|
416
|
+
*/
|
|
417
|
+
export declare const bundleColumnValues: (translated: readonly TranslatedColumnValue[]) => Readonly<Record<string, MultiColumnValue>>;
|
|
418
|
+
/**
|
|
419
|
+
* Builds the canonical `unsupported_column_type` error (`cli-design.md`
|
|
420
|
+
* §5.3 step 4 + §6.5). Branches on the type's roadmap category so
|
|
421
|
+
* agents get accurate guidance instead of a blanket "wait for the
|
|
422
|
+
* next version" hint.
|
|
423
|
+
*
|
|
424
|
+
* Three categories per `column-types.ts getColumnRoadmapCategory`:
|
|
425
|
+
*
|
|
426
|
+
* - **v0.3 writer-expansion candidates** (`tags` / `board_relation`
|
|
427
|
+
* / `dependency` — slipped from v0.2 tentative at M18 close)
|
|
428
|
+
* get `deferred_to: "v0.3"`. The M8 firm row (`link` / `email`
|
|
429
|
+
* / `phone`) shipped friendly translators in v0.2 and goes
|
|
430
|
+
* through the writable-allowlist branch, not this error path.
|
|
431
|
+
* - **read-only forever** (`mirror` / `formula` / `auto_number` /
|
|
432
|
+
* `creation_log` / `last_updated` / `item_id`) — Monday-computed
|
|
433
|
+
* columns that are not writable via the API regardless of CLI
|
|
434
|
+
* version. `read_only: true`, hint points at the underlying
|
|
435
|
+
* source column. cli-design.md §5.3 writer-expansion roadmap
|
|
436
|
+
* "read-only forever" row says this explicitly.
|
|
437
|
+
* - **future** (anything else) — `deferred_to: "future"`, generic
|
|
438
|
+
* message. Examples include `battery`, `item_assignees`,
|
|
439
|
+
* `time_tracking`, `files`, `rating`. The roadmap doesn't
|
|
440
|
+
* promise these for v0.2 or v0.3, so over-promising would be
|
|
441
|
+
* the same drift Codex M5b cleanup re-review caught.
|
|
442
|
+
*
|
|
443
|
+
* Exported for unit coverage.
|
|
444
|
+
*/
|
|
445
|
+
export declare const unsupportedColumnTypeError: (columnId: string, type: string) => ApiError;
|
|
446
|
+
//# sourceMappingURL=column-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-values.d.ts","sourceRoot":"","sources":["../../src/api/column-values.ts"],"names":[],"mappings":"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"}
|