@endora-commerce/contracts 0.107.0 → 0.109.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/admin-actions.d.ts +12 -3
- package/dist/admin-actions.d.ts.map +1 -1
- package/dist/admin-actions.js +34 -3
- package/dist/admin-actions.js.map +1 -1
- package/dist/admin-contributions.d.ts +35 -6
- package/dist/admin-contributions.d.ts.map +1 -1
- package/dist/admin-contributions.js +46 -0
- package/dist/admin-contributions.js.map +1 -1
- package/dist/admin-feedback.d.ts +61 -0
- package/dist/admin-feedback.d.ts.map +1 -0
- package/dist/admin-feedback.js +71 -0
- package/dist/admin-feedback.js.map +1 -0
- package/dist/admin-name.d.ts +21 -0
- package/dist/admin-name.d.ts.map +1 -0
- package/dist/admin-name.js +30 -0
- package/dist/admin-name.js.map +1 -0
- package/dist/admin-notifications.d.ts +17 -1
- package/dist/admin-notifications.d.ts.map +1 -1
- package/dist/admin-preferences.d.ts +108 -0
- package/dist/admin-preferences.d.ts.map +1 -0
- package/dist/admin-preferences.js +133 -0
- package/dist/admin-preferences.js.map +1 -0
- package/dist/admin.d.ts +15 -1
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +7 -0
- package/dist/admin.js.map +1 -1
- package/dist/assets-library.d.ts +97 -3
- package/dist/assets-library.d.ts.map +1 -1
- package/dist/assets-library.js +5 -0
- package/dist/assets-library.js.map +1 -1
- package/dist/blog.d.ts +57 -0
- package/dist/blog.d.ts.map +1 -1
- package/dist/blog.js +63 -1
- package/dist/blog.js.map +1 -1
- package/dist/carts.d.ts +303 -50
- package/dist/carts.d.ts.map +1 -1
- package/dist/carts.js +95 -13
- package/dist/carts.js.map +1 -1
- package/dist/catalog.d.ts +512 -40
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +362 -23
- package/dist/catalog.js.map +1 -1
- package/dist/cms-brand.d.ts +2233 -0
- package/dist/cms-brand.d.ts.map +1 -0
- package/dist/cms-brand.js +311 -0
- package/dist/cms-brand.js.map +1 -0
- package/dist/cms-contact-form.d.ts +55 -0
- package/dist/cms-contact-form.d.ts.map +1 -0
- package/dist/cms-contact-form.js +100 -0
- package/dist/cms-contact-form.js.map +1 -0
- package/dist/cms.d.ts +537 -3
- package/dist/cms.d.ts.map +1 -1
- package/dist/cms.js +251 -0
- package/dist/cms.js.map +1 -1
- package/dist/common.d.ts +4 -0
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +14 -0
- package/dist/common.js.map +1 -1
- package/dist/comparisons.d.ts +7 -0
- package/dist/comparisons.d.ts.map +1 -1
- package/dist/comparisons.js +2 -0
- package/dist/comparisons.js.map +1 -1
- package/dist/credit-limits.d.ts.map +1 -1
- package/dist/credit-limits.js +3 -2
- package/dist/credit-limits.js.map +1 -1
- package/dist/crm-rich-text.d.ts +13 -0
- package/dist/crm-rich-text.d.ts.map +1 -0
- package/dist/crm-rich-text.js +13 -0
- package/dist/crm-rich-text.js.map +1 -0
- package/dist/crm.d.ts +180 -62
- package/dist/crm.d.ts.map +1 -1
- package/dist/crm.js +63 -107
- package/dist/crm.js.map +1 -1
- package/dist/custom-fields.d.ts +436 -5
- package/dist/custom-fields.d.ts.map +1 -1
- package/dist/custom-fields.js +325 -10
- package/dist/custom-fields.js.map +1 -1
- package/dist/customer-accounts.d.ts +30 -0
- package/dist/customer-accounts.d.ts.map +1 -1
- package/dist/customer-accounts.js +31 -0
- package/dist/customer-accounts.js.map +1 -1
- package/dist/document-templates.d.ts +211 -23
- package/dist/document-templates.d.ts.map +1 -1
- package/dist/document-templates.js +98 -1
- package/dist/document-templates.js.map +1 -1
- package/dist/document-values.d.ts +12 -1
- package/dist/document-values.d.ts.map +1 -1
- package/dist/document-values.js +41 -11
- package/dist/document-values.js.map +1 -1
- package/dist/email.d.ts +5 -0
- package/dist/email.d.ts.map +1 -1
- package/dist/errors.d.ts +142 -8
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +189 -8
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory.d.ts +3 -3
- package/dist/invoices.d.ts +6 -2
- package/dist/invoices.d.ts.map +1 -1
- package/dist/invoices.js +10 -4
- package/dist/invoices.js.map +1 -1
- package/dist/line-groups.d.ts +80 -0
- package/dist/line-groups.d.ts.map +1 -0
- package/dist/line-groups.js +130 -0
- package/dist/line-groups.js.map +1 -0
- package/dist/localized-name.d.ts +20 -0
- package/dist/localized-name.d.ts.map +1 -0
- package/dist/localized-name.js +45 -0
- package/dist/localized-name.js.map +1 -0
- package/dist/megamenu.d.ts +674 -0
- package/dist/megamenu.d.ts.map +1 -1
- package/dist/megamenu.js +96 -3
- package/dist/megamenu.js.map +1 -1
- package/dist/mfa.d.ts +1 -0
- package/dist/mfa.d.ts.map +1 -1
- package/dist/mfa.js +8 -2
- package/dist/mfa.js.map +1 -1
- package/dist/modules.d.ts +8 -1
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +5 -0
- package/dist/modules.js.map +1 -1
- package/dist/money-decimal.d.ts +162 -0
- package/dist/money-decimal.d.ts.map +1 -0
- package/dist/money-decimal.js +365 -0
- package/dist/money-decimal.js.map +1 -0
- package/dist/money-input.d.ts +64 -0
- package/dist/money-input.d.ts.map +1 -0
- package/dist/money-input.js +111 -0
- package/dist/money-input.js.map +1 -0
- package/dist/newsletter.d.ts +3 -3
- package/dist/order-minimums.d.ts +111 -0
- package/dist/order-minimums.d.ts.map +1 -0
- package/dist/order-minimums.js +196 -0
- package/dist/order-minimums.js.map +1 -0
- package/dist/orders.d.ts +206 -2
- package/dist/orders.d.ts.map +1 -1
- package/dist/orders.js +106 -5
- package/dist/orders.js.map +1 -1
- package/dist/page-builder-props.d.ts +1401 -0
- package/dist/page-builder-props.d.ts.map +1 -0
- package/dist/page-builder-props.js +266 -0
- package/dist/page-builder-props.js.map +1 -0
- package/dist/page-builder-values.d.ts +95 -0
- package/dist/page-builder-values.d.ts.map +1 -0
- package/dist/page-builder-values.js +164 -0
- package/dist/page-builder-values.js.map +1 -0
- package/dist/payment-methods.d.ts.map +1 -1
- package/dist/payment-methods.js +2 -1
- package/dist/payment-methods.js.map +1 -1
- package/dist/pim-connector.d.ts +1 -1
- package/dist/platform-language.d.ts +9 -0
- package/dist/platform-language.d.ts.map +1 -1
- package/dist/platform-language.js +14 -0
- package/dist/platform-language.js.map +1 -1
- package/dist/price-book-decimal.d.ts +84 -0
- package/dist/price-book-decimal.d.ts.map +1 -0
- package/dist/price-book-decimal.js +175 -0
- package/dist/price-book-decimal.js.map +1 -0
- package/dist/price-books.d.ts +2206 -0
- package/dist/price-books.d.ts.map +1 -0
- package/dist/price-books.js +777 -0
- package/dist/price-books.js.map +1 -0
- package/dist/price-lists.d.ts +309 -614
- package/dist/price-lists.d.ts.map +1 -1
- package/dist/price-lists.js +113 -453
- package/dist/price-lists.js.map +1 -1
- package/dist/product-feeds.d.ts +195 -54
- package/dist/product-feeds.d.ts.map +1 -1
- package/dist/product-feeds.js +36 -1
- package/dist/product-feeds.js.map +1 -1
- package/dist/product-scopes.d.ts +628 -0
- package/dist/product-scopes.d.ts.map +1 -0
- package/dist/product-scopes.js +365 -0
- package/dist/product-scopes.js.map +1 -0
- package/dist/product-summary-text.d.ts +23 -0
- package/dist/product-summary-text.d.ts.map +1 -0
- package/dist/product-summary-text.js +64 -0
- package/dist/product-summary-text.js.map +1 -0
- package/dist/product-url-keys.d.ts +204 -0
- package/dist/product-url-keys.d.ts.map +1 -0
- package/dist/product-url-keys.js +166 -0
- package/dist/product-url-keys.js.map +1 -0
- package/dist/product-value-resolver.d.ts +6 -0
- package/dist/product-value-resolver.d.ts.map +1 -1
- package/dist/product-value-resolver.js +6 -1
- package/dist/product-value-resolver.js.map +1 -1
- package/dist/projects.d.ts +2355 -0
- package/dist/projects.d.ts.map +1 -0
- package/dist/projects.js +837 -0
- package/dist/projects.js.map +1 -0
- package/dist/promotions.d.ts +2 -2
- package/dist/promotions.d.ts.map +1 -1
- package/dist/promotions.js +8 -2
- package/dist/promotions.js.map +1 -1
- package/dist/prompt-actions.d.ts +19 -1
- package/dist/prompt-actions.d.ts.map +1 -1
- package/dist/prompt-actions.js +31 -2
- package/dist/prompt-actions.js.map +1 -1
- package/dist/quick-order.d.ts +39 -1
- package/dist/quick-order.d.ts.map +1 -1
- package/dist/quick-order.js +44 -1
- package/dist/quick-order.js.map +1 -1
- package/dist/quote-requests.d.ts +305 -1
- package/dist/quote-requests.d.ts.map +1 -1
- package/dist/quote-requests.js +173 -5
- package/dist/quote-requests.js.map +1 -1
- package/dist/record-references.d.ts +252 -0
- package/dist/record-references.d.ts.map +1 -0
- package/dist/record-references.js +179 -0
- package/dist/record-references.js.map +1 -0
- package/dist/record-rich-text.d.ts +66 -0
- package/dist/record-rich-text.d.ts.map +1 -0
- package/dist/record-rich-text.js +303 -0
- package/dist/record-rich-text.js.map +1 -0
- package/dist/returns.d.ts +81 -2
- package/dist/returns.d.ts.map +1 -1
- package/dist/returns.js +39 -4
- package/dist/returns.js.map +1 -1
- package/dist/sales-channels.d.ts +53 -7
- package/dist/sales-channels.d.ts.map +1 -1
- package/dist/sales-channels.js +40 -4
- package/dist/sales-channels.js.map +1 -1
- package/dist/saved-list-views.d.ts +28 -0
- package/dist/saved-list-views.d.ts.map +1 -1
- package/dist/saved-list-views.js +14 -1
- package/dist/saved-list-views.js.map +1 -1
- package/dist/scoped-translations.d.ts +48 -0
- package/dist/scoped-translations.d.ts.map +1 -0
- package/dist/scoped-translations.js +78 -0
- package/dist/scoped-translations.js.map +1 -0
- package/dist/search.d.ts +73 -5
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +4 -0
- package/dist/search.js.map +1 -1
- package/dist/seo.d.ts +64 -5
- package/dist/seo.d.ts.map +1 -1
- package/dist/seo.js +31 -4
- package/dist/seo.js.map +1 -1
- package/dist/settings.d.ts +32 -3
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +37 -3
- package/dist/settings.js.map +1 -1
- package/dist/shipping-methods.d.ts.map +1 -1
- package/dist/shipping-methods.js +2 -1
- package/dist/shipping-methods.js.map +1 -1
- package/dist/shopping-lists.d.ts +24 -0
- package/dist/shopping-lists.d.ts.map +1 -1
- package/dist/shopping-lists.js +20 -1
- package/dist/shopping-lists.js.map +1 -1
- package/dist/storefront-cache-tags.d.ts +29 -0
- package/dist/storefront-cache-tags.d.ts.map +1 -1
- package/dist/storefront-cache-tags.js +24 -0
- package/dist/storefront-cache-tags.js.map +1 -1
- package/dist/storefront-language-path.d.ts +77 -0
- package/dist/storefront-language-path.d.ts.map +1 -0
- package/dist/storefront-language-path.js +123 -0
- package/dist/storefront-language-path.js.map +1 -0
- package/dist/storefront-value-overrides.d.ts +67 -0
- package/dist/storefront-value-overrides.d.ts.map +1 -0
- package/dist/storefront-value-overrides.js +93 -0
- package/dist/storefront-value-overrides.js.map +1 -0
- package/dist/tasks.d.ts +2842 -0
- package/dist/tasks.d.ts.map +1 -0
- package/dist/tasks.js +901 -0
- package/dist/tasks.js.map +1 -0
- package/dist/transactional-emails.d.ts +7 -4
- package/dist/transactional-emails.d.ts.map +1 -1
- package/dist/transactional-emails.js +13 -0
- package/dist/transactional-emails.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,2355 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Projects (`specs/163-projects-and-tasks/`).
|
|
4
|
+
*
|
|
5
|
+
* Every request, response, port, registry and event shape of the `projects`
|
|
6
|
+
* module, written before the first route (Constitution II) and for **every**
|
|
7
|
+
* story of the feature — later phases add no contract here. The normative prose
|
|
8
|
+
* is `specs/163-projects-and-tasks/contracts/admin-api.md` §2 and
|
|
9
|
+
* `contracts/ports-and-events.md` §2; the schema is `data-model.md` §2.
|
|
10
|
+
*
|
|
11
|
+
* A Project that is out of the caller's Organization reach, or invisible to
|
|
12
|
+
* them, answers 404 `PROJECT_NOT_FOUND` — identical to one that does not exist
|
|
13
|
+
* (FR-004, FR-020, Constitution XI).
|
|
14
|
+
*
|
|
15
|
+
* Base path of the HTTP API: `/api/v1/admin/projects`. There is no storefront
|
|
16
|
+
* or customer route (FR-043).
|
|
17
|
+
*/
|
|
18
|
+
/** A Project's outcome. `open` while it runs; a closed Project can be reopened. */
|
|
19
|
+
export declare const PROJECT_STATES: readonly ["open", "completed", "lost"];
|
|
20
|
+
export declare const projectStateSchema: z.ZodEnum<{
|
|
21
|
+
completed: "completed";
|
|
22
|
+
open: "open";
|
|
23
|
+
lost: "lost";
|
|
24
|
+
}>;
|
|
25
|
+
export type ProjectState = z.infer<typeof projectStateSchema>;
|
|
26
|
+
/** How a closed Project ended — the `close` body's discriminant. */
|
|
27
|
+
export declare const projectOutcomeSchema: z.ZodEnum<{
|
|
28
|
+
completed: "completed";
|
|
29
|
+
lost: "lost";
|
|
30
|
+
}>;
|
|
31
|
+
export type ProjectOutcome = z.infer<typeof projectOutcomeSchema>;
|
|
32
|
+
/**
|
|
33
|
+
* A Project's own visibility (owner ruling Q2 = A, FR-019): follow the module
|
|
34
|
+
* setting, everyone who may read Projects, or its Members and the people listed
|
|
35
|
+
* on it.
|
|
36
|
+
*/
|
|
37
|
+
export declare const projectVisibilitySchema: z.ZodEnum<{
|
|
38
|
+
inherit: "inherit";
|
|
39
|
+
everyone: "everyone";
|
|
40
|
+
members_and_listed: "members_and_listed";
|
|
41
|
+
}>;
|
|
42
|
+
export type ProjectVisibility = z.infer<typeof projectVisibilitySchema>;
|
|
43
|
+
/** The module setting `projects.visibility` (FR-018); default `members`. */
|
|
44
|
+
export declare const projectVisibilitySettingSchema: z.ZodEnum<{
|
|
45
|
+
everyone: "everyone";
|
|
46
|
+
members: "members";
|
|
47
|
+
}>;
|
|
48
|
+
export type ProjectVisibilitySetting = z.infer<typeof projectVisibilitySettingSchema>;
|
|
49
|
+
/** What a Project links to (R-10). */
|
|
50
|
+
export declare const projectRecordKindSchema: z.ZodEnum<{
|
|
51
|
+
order: "order";
|
|
52
|
+
quote_request: "quote_request";
|
|
53
|
+
opportunity: "opportunity";
|
|
54
|
+
}>;
|
|
55
|
+
export type ProjectRecordKind = z.infer<typeof projectRecordKindSchema>;
|
|
56
|
+
/** The records whose screen shows "which Project is this in" — the link kinds and a Task (R-11). */
|
|
57
|
+
export declare const projectPanelRecordKindSchema: z.ZodEnum<{
|
|
58
|
+
order: "order";
|
|
59
|
+
quote_request: "quote_request";
|
|
60
|
+
task: "task";
|
|
61
|
+
opportunity: "opportunity";
|
|
62
|
+
}>;
|
|
63
|
+
export type ProjectPanelRecordKind = z.infer<typeof projectPanelRecordKindSchema>;
|
|
64
|
+
export declare const projectCommentKindSchema: z.ZodEnum<{
|
|
65
|
+
message: "message";
|
|
66
|
+
note: "note";
|
|
67
|
+
}>;
|
|
68
|
+
export type ProjectCommentKind = z.infer<typeof projectCommentKindSchema>;
|
|
69
|
+
/** What a Stage-history row records (`project_stage_entries.kind`). */
|
|
70
|
+
export declare const projectStageEntryKindSchema: z.ZodEnum<{
|
|
71
|
+
enter: "enter";
|
|
72
|
+
close_completed: "close_completed";
|
|
73
|
+
close_lost: "close_lost";
|
|
74
|
+
reopen: "reopen";
|
|
75
|
+
}>;
|
|
76
|
+
export type ProjectStageEntryKind = z.infer<typeof projectStageEntryKindSchema>;
|
|
77
|
+
/** What a move recorded beside itself (R-8). */
|
|
78
|
+
export declare const projectStageEntryNoteSchema: z.ZodEnum<{
|
|
79
|
+
gate_not_applied_tasks_off: "gate_not_applied_tasks_off";
|
|
80
|
+
stage_tasks_skipped: "stage_tasks_skipped";
|
|
81
|
+
tasks_materialize_failed: "tasks_materialize_failed";
|
|
82
|
+
}>;
|
|
83
|
+
export type ProjectStageEntryNote = z.infer<typeof projectStageEntryNoteSchema>;
|
|
84
|
+
export declare const PROJECT_TITLE_MAX = 200;
|
|
85
|
+
export declare const PROJECT_DESCRIPTION_MAX = 20000;
|
|
86
|
+
export declare const PROJECT_STAGE_NAME_MAX = 80;
|
|
87
|
+
export declare const PROJECT_STAGE_DURATION_MAX_DAYS = 3650;
|
|
88
|
+
export declare const PROJECT_ALERT_OFFSET_MIN_DAYS = 1;
|
|
89
|
+
export declare const PROJECT_ALERT_OFFSET_MAX_DAYS = 365;
|
|
90
|
+
export declare const PROJECT_LOSS_COMMENT_MAX = 2000;
|
|
91
|
+
export declare const PROJECT_COMMENT_BODY_MAX = 20000;
|
|
92
|
+
export declare const PROJECT_TEMPLATE_NAME_MAX = 120;
|
|
93
|
+
export declare const PROJECT_DICTIONARY_NAME_MAX = 120;
|
|
94
|
+
/** The most Stage Task definitions one Stage holds (R-22). */
|
|
95
|
+
export declare const PROJECT_STAGE_TASKS_MAX = 100;
|
|
96
|
+
export declare const PROJECT_STAGES_MAX = 50;
|
|
97
|
+
export declare const PROJECT_LIST_LIMIT_MAX = 100;
|
|
98
|
+
/**
|
|
99
|
+
* The largest file `POST /projects/:id/attachments/upload` reads, in bytes
|
|
100
|
+
* (25 MB) — CRM's bound, for CRM's reason: the route holds the whole file in
|
|
101
|
+
* memory before the asset library decides anything about it.
|
|
102
|
+
*/
|
|
103
|
+
export declare const PROJECT_ATTACHMENT_MAX_BYTES: number;
|
|
104
|
+
/** A value is an amount **and** its currency, or nothing (`data-model.md` §2.2). */
|
|
105
|
+
export declare const ProjectValueSchema: z.ZodObject<{
|
|
106
|
+
amount: z.ZodString;
|
|
107
|
+
currency: z.ZodString;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
export type ProjectValue = z.infer<typeof ProjectValueSchema>;
|
|
110
|
+
/** Deadline alerts: whole days before the deadline, 1–365, each once (FR-010). */
|
|
111
|
+
export declare const alertOffsetsDaysSchema: z.ZodArray<z.ZodNumber>;
|
|
112
|
+
/** One Member and the Project Roles they hold (≥ 0 — a Member without a Role is allowed). */
|
|
113
|
+
export declare const ProjectMemberInputSchema: z.ZodObject<{
|
|
114
|
+
adminUserId: z.ZodString;
|
|
115
|
+
roleIds: z.ZodArray<z.ZodString>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
export type ProjectMemberInput = z.infer<typeof ProjectMemberInputSchema>;
|
|
118
|
+
/**
|
|
119
|
+
* A Stage Task definition — copied from a Template or written on the Project;
|
|
120
|
+
* it becomes a Task when the Project enters its Stage (R-7, R-8).
|
|
121
|
+
*/
|
|
122
|
+
export declare const StageTaskDefinitionSchema: z.ZodObject<{
|
|
123
|
+
title: z.ZodString;
|
|
124
|
+
description: z.ZodOptional<z.ZodString>;
|
|
125
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
dueOffsetDays: z.ZodNumber;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
export type StageTaskDefinition = z.infer<typeof StageTaskDefinitionSchema>;
|
|
129
|
+
export declare const ProjectListQuerySchema: z.ZodObject<{
|
|
130
|
+
state: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
131
|
+
completed: "completed";
|
|
132
|
+
open: "open";
|
|
133
|
+
lost: "lost";
|
|
134
|
+
}>>>>;
|
|
135
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
memberId: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"me">, z.ZodString]>>;
|
|
137
|
+
roleId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
stageName: z.ZodOptional<z.ZodString>;
|
|
140
|
+
q: z.ZodOptional<z.ZodString>;
|
|
141
|
+
customFieldFilters: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
142
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
143
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
+
is: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
min: z.ZodOptional<z.ZodString>;
|
|
146
|
+
max: z.ZodOptional<z.ZodString>;
|
|
147
|
+
from: z.ZodOptional<z.ZodString>;
|
|
148
|
+
to: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, z.core.$strict>>>]>>, z.ZodTransform<Record<string, {
|
|
150
|
+
contains?: string | undefined;
|
|
151
|
+
in?: string[] | undefined;
|
|
152
|
+
is?: boolean | undefined;
|
|
153
|
+
min?: string | undefined;
|
|
154
|
+
max?: string | undefined;
|
|
155
|
+
from?: string | undefined;
|
|
156
|
+
to?: string | undefined;
|
|
157
|
+
}> | undefined, string | Record<string, {
|
|
158
|
+
contains?: string | undefined;
|
|
159
|
+
in?: string[] | undefined;
|
|
160
|
+
is?: boolean | undefined;
|
|
161
|
+
min?: string | undefined;
|
|
162
|
+
max?: string | undefined;
|
|
163
|
+
from?: string | undefined;
|
|
164
|
+
to?: string | undefined;
|
|
165
|
+
}> | undefined>>;
|
|
166
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
167
|
+
value: "value";
|
|
168
|
+
createdAt: "createdAt";
|
|
169
|
+
deadline: "deadline";
|
|
170
|
+
}>>;
|
|
171
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
asc: "asc";
|
|
173
|
+
desc: "desc";
|
|
174
|
+
}>>;
|
|
175
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
176
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export type ProjectListQuery = z.infer<typeof ProjectListQuerySchema>;
|
|
179
|
+
/** A Stage written with the Project that holds it (`POST /projects`, `stages`). */
|
|
180
|
+
export declare const ProjectStageInputSchema: z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
color: z.ZodString;
|
|
183
|
+
plannedDurationDays: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
responsibleRoleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
alertOffsetsDays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
186
|
+
completionGate: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
completionPermitted: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
}, z.core.$strict>;
|
|
189
|
+
export type ProjectStageInput = z.infer<typeof ProjectStageInputSchema>;
|
|
190
|
+
/**
|
|
191
|
+
* `POST /projects`. `organizationIds` may be empty — an internal Project,
|
|
192
|
+
* visible only to administrators unrestricted in Organization reach (FR-004);
|
|
193
|
+
* each Organization must be in the caller's reach (422
|
|
194
|
+
* `PROJECT_ORGANIZATION_OUT_OF_SCOPE`). With a `templateId` the Template's
|
|
195
|
+
* structure is copied (R-7) and the body's own fields win.
|
|
196
|
+
*
|
|
197
|
+
* `stages` are the Project's Stages in order — an open Project is always in
|
|
198
|
+
* one, so without a Template at least one is required (422
|
|
199
|
+
* `VALIDATION_FAILED`). The Project starts in the first; the default workflow
|
|
200
|
+
* lets each move to the next (FR-011), and completing is permitted from the
|
|
201
|
+
* last unless a Stage says otherwise (FR-010).
|
|
202
|
+
*/
|
|
203
|
+
export declare const CreateProjectBodySchema: z.ZodObject<{
|
|
204
|
+
title: z.ZodString;
|
|
205
|
+
stages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
color: z.ZodString;
|
|
208
|
+
plannedDurationDays: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
responsibleRoleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
210
|
+
alertOffsetsDays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
211
|
+
completionGate: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
completionPermitted: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
}, z.core.$strict>>>;
|
|
214
|
+
description: z.ZodOptional<z.ZodString>;
|
|
215
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
216
|
+
amount: z.ZodString;
|
|
217
|
+
currency: z.ZodString;
|
|
218
|
+
}, z.core.$strict>>>;
|
|
219
|
+
startOn: z.ZodOptional<z.ZodString>;
|
|
220
|
+
organizationIds: z.ZodArray<z.ZodString>;
|
|
221
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
222
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
223
|
+
adminUserId: z.ZodString;
|
|
224
|
+
roleIds: z.ZodArray<z.ZodString>;
|
|
225
|
+
}, z.core.$strict>>>;
|
|
226
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
227
|
+
inherit: "inherit";
|
|
228
|
+
everyone: "everyone";
|
|
229
|
+
members_and_listed: "members_and_listed";
|
|
230
|
+
}>>;
|
|
231
|
+
viewerIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
|
+
customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
233
|
+
}, z.core.$strict>;
|
|
234
|
+
export type CreateProjectBody = z.infer<typeof CreateProjectBodySchema>;
|
|
235
|
+
/**
|
|
236
|
+
* `PATCH /projects/:id`. Organizations and Members have routes of their own;
|
|
237
|
+
* `version` is the optimistic-concurrency token (409 `PROJECT_CHANGED`).
|
|
238
|
+
*/
|
|
239
|
+
export declare const UpdateProjectBodySchema: z.ZodObject<{
|
|
240
|
+
title: z.ZodOptional<z.ZodString>;
|
|
241
|
+
description: z.ZodOptional<z.ZodString>;
|
|
242
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
243
|
+
amount: z.ZodString;
|
|
244
|
+
currency: z.ZodString;
|
|
245
|
+
}, z.core.$strict>>>;
|
|
246
|
+
startOn: z.ZodOptional<z.ZodString>;
|
|
247
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
248
|
+
inherit: "inherit";
|
|
249
|
+
everyone: "everyone";
|
|
250
|
+
members_and_listed: "members_and_listed";
|
|
251
|
+
}>>;
|
|
252
|
+
viewerIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
253
|
+
customFieldValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
254
|
+
version: z.ZodNumber;
|
|
255
|
+
}, z.core.$strict>;
|
|
256
|
+
export type UpdateProjectBody = z.infer<typeof UpdateProjectBodySchema>;
|
|
257
|
+
/** `PUT /projects/:id/organizations` — the whole set (409 `PROJECT_ORGANIZATION_IN_USE`). */
|
|
258
|
+
export declare const SetProjectOrganizationsBodySchema: z.ZodObject<{
|
|
259
|
+
organizationIds: z.ZodArray<z.ZodString>;
|
|
260
|
+
}, z.core.$strict>;
|
|
261
|
+
export type SetProjectOrganizationsBody = z.infer<typeof SetProjectOrganizationsBodySchema>;
|
|
262
|
+
/**
|
|
263
|
+
* The answer of `PUT /projects/:id/organizations` when the change the caller
|
|
264
|
+
* just made took the Project out of their own Organization reach — a caller
|
|
265
|
+
* confined to some Organizations who removed them all, making the Project
|
|
266
|
+
* internal (T144 F3). The change committed; nothing else of the Project is
|
|
267
|
+
* theirs to be shown.
|
|
268
|
+
*/
|
|
269
|
+
export declare const ProjectOutOfReachAfterWriteSchema: z.ZodObject<{
|
|
270
|
+
id: z.ZodString;
|
|
271
|
+
outOfReach: z.ZodLiteral<true>;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
export type ProjectOutOfReachAfterWrite = z.infer<typeof ProjectOutOfReachAfterWriteSchema>;
|
|
274
|
+
/** `PUT /projects/:id/members` — the whole set, Members and their Roles, in one Command. */
|
|
275
|
+
export declare const SetProjectMembersBodySchema: z.ZodObject<{
|
|
276
|
+
members: z.ZodArray<z.ZodObject<{
|
|
277
|
+
adminUserId: z.ZodString;
|
|
278
|
+
roleIds: z.ZodArray<z.ZodString>;
|
|
279
|
+
}, z.core.$strict>>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
export type SetProjectMembersBody = z.infer<typeof SetProjectMembersBodySchema>;
|
|
282
|
+
/** `POST /projects/:id/stages`. */
|
|
283
|
+
export declare const CreateProjectStageBodySchema: z.ZodObject<{
|
|
284
|
+
name: z.ZodString;
|
|
285
|
+
color: z.ZodString;
|
|
286
|
+
plannedDurationDays: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
responsibleRoleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
288
|
+
alertOffsetsDays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
289
|
+
completionGate: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
+
completionPermitted: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
export type CreateProjectStageBody = z.infer<typeof CreateProjectStageBodySchema>;
|
|
293
|
+
/**
|
|
294
|
+
* `PATCH /projects/:id/stages/:stageId` — any attribute, at least one.
|
|
295
|
+
* `deadlineOn` sets the deadline by hand; `null` drops the manual deadline and
|
|
296
|
+
* recomputes it as start + planned duration (FR-013).
|
|
297
|
+
*/
|
|
298
|
+
export declare const UpdateProjectStageBodySchema: z.ZodObject<{
|
|
299
|
+
deadlineOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
name: z.ZodOptional<z.ZodString>;
|
|
301
|
+
color: z.ZodOptional<z.ZodString>;
|
|
302
|
+
plannedDurationDays: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
303
|
+
responsibleRoleIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
304
|
+
alertOffsetsDays: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber>>>;
|
|
305
|
+
completionGate: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
306
|
+
completionPermitted: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
307
|
+
}, z.core.$strict>;
|
|
308
|
+
export type UpdateProjectStageBody = z.infer<typeof UpdateProjectStageBodySchema>;
|
|
309
|
+
/** `PUT /projects/:id/stages/order` — every Stage id of the Project, in the new order. */
|
|
310
|
+
export declare const ReorderProjectStagesBodySchema: z.ZodObject<{
|
|
311
|
+
stageIds: z.ZodArray<z.ZodString>;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
export type ReorderProjectStagesBody = z.infer<typeof ReorderProjectStagesBodySchema>;
|
|
314
|
+
export declare const ProjectStageMoveSchema: z.ZodObject<{
|
|
315
|
+
fromStageId: z.ZodString;
|
|
316
|
+
toStageId: z.ZodString;
|
|
317
|
+
}, z.core.$strict>;
|
|
318
|
+
export type ProjectStageMove = z.infer<typeof ProjectStageMoveSchema>;
|
|
319
|
+
/** `PUT /projects/:id/moves` — the whole set of permitted moves (FR-011). */
|
|
320
|
+
export declare const SetProjectMovesBodySchema: z.ZodObject<{
|
|
321
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
322
|
+
fromStageId: z.ZodString;
|
|
323
|
+
toStageId: z.ZodString;
|
|
324
|
+
}, z.core.$strict>>;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
export type SetProjectMovesBody = z.infer<typeof SetProjectMovesBodySchema>;
|
|
327
|
+
/** `PUT /projects/:id/stages/:stageId/tasks` — the Stage's Task definitions, replaced whole. */
|
|
328
|
+
export declare const SetProjectStageTasksBodySchema: z.ZodObject<{
|
|
329
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
330
|
+
title: z.ZodString;
|
|
331
|
+
description: z.ZodOptional<z.ZodString>;
|
|
332
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
333
|
+
dueOffsetDays: z.ZodNumber;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
}, z.core.$strict>;
|
|
336
|
+
export type SetProjectStageTasksBody = z.infer<typeof SetProjectStageTasksBodySchema>;
|
|
337
|
+
/** `POST /projects/:id/move`. */
|
|
338
|
+
export declare const MoveProjectBodySchema: z.ZodObject<{
|
|
339
|
+
toStageId: z.ZodString;
|
|
340
|
+
version: z.ZodNumber;
|
|
341
|
+
}, z.core.$strict>;
|
|
342
|
+
export type MoveProjectBody = z.infer<typeof MoveProjectBodySchema>;
|
|
343
|
+
/**
|
|
344
|
+
* `POST /projects/:id/close` — discriminated on `outcome`. Completing needs a
|
|
345
|
+
* Stage that permits it and passes its gate; losing is allowed from any Stage,
|
|
346
|
+
* needs a non-archived loss reason and is never gated (FR-005, FR-012).
|
|
347
|
+
*/
|
|
348
|
+
export declare const CloseProjectBodySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
349
|
+
outcome: z.ZodLiteral<"completed">;
|
|
350
|
+
version: z.ZodNumber;
|
|
351
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
352
|
+
outcome: z.ZodLiteral<"lost">;
|
|
353
|
+
lossReasonId: z.ZodString;
|
|
354
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
355
|
+
version: z.ZodNumber;
|
|
356
|
+
}, z.core.$strict>], "outcome">;
|
|
357
|
+
export type CloseProjectBody = z.infer<typeof CloseProjectBodySchema>;
|
|
358
|
+
/** `POST /projects/:id/reopen` — back into the Stage it was closed in (FR-006). */
|
|
359
|
+
export declare const ReopenProjectBodySchema: z.ZodObject<{
|
|
360
|
+
version: z.ZodNumber;
|
|
361
|
+
}, z.core.$strict>;
|
|
362
|
+
export type ReopenProjectBody = z.infer<typeof ReopenProjectBodySchema>;
|
|
363
|
+
/** `POST /projects/:id/links`. */
|
|
364
|
+
export declare const CreateProjectLinkBodySchema: z.ZodObject<{
|
|
365
|
+
kind: z.ZodEnum<{
|
|
366
|
+
order: "order";
|
|
367
|
+
quote_request: "quote_request";
|
|
368
|
+
opportunity: "opportunity";
|
|
369
|
+
}>;
|
|
370
|
+
recordId: z.ZodString;
|
|
371
|
+
}, z.core.$strict>;
|
|
372
|
+
export type CreateProjectLinkBody = z.infer<typeof CreateProjectLinkBodySchema>;
|
|
373
|
+
/** `GET /projects/records/:kind/:recordId/project` — the path parameters. */
|
|
374
|
+
export declare const RecordProjectParamsSchema: z.ZodObject<{
|
|
375
|
+
kind: z.ZodEnum<{
|
|
376
|
+
order: "order";
|
|
377
|
+
quote_request: "quote_request";
|
|
378
|
+
task: "task";
|
|
379
|
+
opportunity: "opportunity";
|
|
380
|
+
}>;
|
|
381
|
+
recordId: z.ZodString;
|
|
382
|
+
}, z.core.$strip>;
|
|
383
|
+
export type RecordProjectParams = z.infer<typeof RecordProjectParamsSchema>;
|
|
384
|
+
export declare const ProjectCommentListQuerySchema: z.ZodObject<{
|
|
385
|
+
kind: z.ZodEnum<{
|
|
386
|
+
message: "message";
|
|
387
|
+
note: "note";
|
|
388
|
+
}>;
|
|
389
|
+
}, z.core.$strip>;
|
|
390
|
+
export type ProjectCommentListQuery = z.infer<typeof ProjectCommentListQuerySchema>;
|
|
391
|
+
export declare const CreateProjectCommentBodySchema: z.ZodObject<{
|
|
392
|
+
kind: z.ZodEnum<{
|
|
393
|
+
message: "message";
|
|
394
|
+
note: "note";
|
|
395
|
+
}>;
|
|
396
|
+
body: z.ZodString;
|
|
397
|
+
}, z.core.$strict>;
|
|
398
|
+
export type CreateProjectCommentBody = z.infer<typeof CreateProjectCommentBodySchema>;
|
|
399
|
+
/** `PATCH /projects/:id/comments/:commentId` — a note, by its author; a message never changes. */
|
|
400
|
+
export declare const UpdateProjectCommentBodySchema: z.ZodObject<{
|
|
401
|
+
body: z.ZodString;
|
|
402
|
+
}, z.core.$strict>;
|
|
403
|
+
export type UpdateProjectCommentBody = z.infer<typeof UpdateProjectCommentBodySchema>;
|
|
404
|
+
/**
|
|
405
|
+
* `POST /projects/:id/messages/read` — the caller has read the thread up to and
|
|
406
|
+
* including this message. Named by the message, so no browser clock is in it.
|
|
407
|
+
*/
|
|
408
|
+
export declare const MarkProjectMessagesReadBodySchema: z.ZodObject<{
|
|
409
|
+
throughMessageId: z.ZodString;
|
|
410
|
+
}, z.core.$strict>;
|
|
411
|
+
export type MarkProjectMessagesReadBody = z.infer<typeof MarkProjectMessagesReadBodySchema>;
|
|
412
|
+
/** `POST /projects/:id/attachments` — a private, live asset that is not active content. */
|
|
413
|
+
export declare const CreateProjectAttachmentBodySchema: z.ZodObject<{
|
|
414
|
+
assetId: z.ZodString;
|
|
415
|
+
}, z.core.$strict>;
|
|
416
|
+
export type CreateProjectAttachmentBody = z.infer<typeof CreateProjectAttachmentBodySchema>;
|
|
417
|
+
/** `GET /projects/lookups/mentionable` — people who could see the Project (R-4). */
|
|
418
|
+
export declare const ProjectMentionableLookupQuerySchema: z.ZodObject<{
|
|
419
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
420
|
+
q: z.ZodOptional<z.ZodString>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
export type ProjectMentionableLookupQuery = z.infer<typeof ProjectMentionableLookupQuerySchema>;
|
|
423
|
+
/**
|
|
424
|
+
* `GET /projects/lookups/documents` — the `@@` list; answered with
|
|
425
|
+
* `RecordDocumentLookupResponseSchema` of `record-references.ts` (FR-044).
|
|
426
|
+
* Without a `projectId` (a Project being created) Orders and Quote Requests of
|
|
427
|
+
* no Organization are offered — none.
|
|
428
|
+
*/
|
|
429
|
+
export declare const ProjectDocumentLookupQuerySchema: z.ZodObject<{
|
|
430
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
431
|
+
organizationIds: z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
432
|
+
q: z.ZodOptional<z.ZodString>;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
export type ProjectDocumentLookupQuery = z.infer<typeof ProjectDocumentLookupQuerySchema>;
|
|
435
|
+
/**
|
|
436
|
+
* `GET /projects/lookups/organizations` — the Organizations the caller may
|
|
437
|
+
* name on a Project, by name (`q`), or one by `id` (the label of a value chosen
|
|
438
|
+
* earlier). Only Organizations in the caller's reach are ever answered.
|
|
439
|
+
*/
|
|
440
|
+
export declare const ProjectOrganizationLookupQuerySchema: z.ZodObject<{
|
|
441
|
+
q: z.ZodOptional<z.ZodString>;
|
|
442
|
+
id: z.ZodOptional<z.ZodString>;
|
|
443
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
export type ProjectOrganizationLookupQuery = z.infer<typeof ProjectOrganizationLookupQuerySchema>;
|
|
446
|
+
/**
|
|
447
|
+
* `GET /projects/lookups/admin-users` — active administrators by name or
|
|
448
|
+
* e-mail (`q`), or one by `id` — who may be a Member or a listed person.
|
|
449
|
+
*/
|
|
450
|
+
export declare const ProjectAdminUserLookupQuerySchema: z.ZodObject<{
|
|
451
|
+
q: z.ZodOptional<z.ZodString>;
|
|
452
|
+
id: z.ZodOptional<z.ZodString>;
|
|
453
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
454
|
+
}, z.core.$strip>;
|
|
455
|
+
export type ProjectAdminUserLookupQuery = z.infer<typeof ProjectAdminUserLookupQuerySchema>;
|
|
456
|
+
/**
|
|
457
|
+
* `GET /projects/roles`, `GET /projects/loss-reasons`. `active=true` leaves
|
|
458
|
+
* archived rows out — what a picker offers; without it every row is listed,
|
|
459
|
+
* archived ones included, because a Project still shows the ones it uses.
|
|
460
|
+
*/
|
|
461
|
+
export declare const ProjectDictionaryListQuerySchema: z.ZodObject<{
|
|
462
|
+
active: z.ZodOptional<z.ZodEnum<{
|
|
463
|
+
true: "true";
|
|
464
|
+
false: "false";
|
|
465
|
+
}>>;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
export type ProjectDictionaryListQuery = z.infer<typeof ProjectDictionaryListQuerySchema>;
|
|
468
|
+
/** `POST /projects/roles`. The code is derived from the default name. */
|
|
469
|
+
export declare const CreateProjectRoleBodySchema: z.ZodObject<{
|
|
470
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
471
|
+
defaultName: z.ZodString;
|
|
472
|
+
}, z.core.$strict>;
|
|
473
|
+
export type CreateProjectRoleBody = z.infer<typeof CreateProjectRoleBodySchema>;
|
|
474
|
+
/** `PATCH /projects/roles/:id` — renaming; the code never changes. */
|
|
475
|
+
export declare const UpdateProjectRoleBodySchema: z.ZodObject<{
|
|
476
|
+
name: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
477
|
+
defaultName: z.ZodOptional<z.ZodString>;
|
|
478
|
+
}, z.core.$strict>;
|
|
479
|
+
export type UpdateProjectRoleBody = z.infer<typeof UpdateProjectRoleBodySchema>;
|
|
480
|
+
export declare const CreateProjectLossReasonBodySchema: z.ZodObject<{
|
|
481
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
482
|
+
defaultName: z.ZodString;
|
|
483
|
+
}, z.core.$strict>;
|
|
484
|
+
export type CreateProjectLossReasonBody = z.infer<typeof CreateProjectLossReasonBodySchema>;
|
|
485
|
+
export declare const UpdateProjectLossReasonBodySchema: z.ZodObject<{
|
|
486
|
+
name: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
487
|
+
defaultName: z.ZodOptional<z.ZodString>;
|
|
488
|
+
}, z.core.$strict>;
|
|
489
|
+
export type UpdateProjectLossReasonBody = z.infer<typeof UpdateProjectLossReasonBodySchema>;
|
|
490
|
+
/**
|
|
491
|
+
* A Template's Stage in the whole-graph body. `key` names the Stage inside the
|
|
492
|
+
* body — an existing Stage's id, or any label the editor chose for a new one —
|
|
493
|
+
* so a move can name a Stage that has no id yet.
|
|
494
|
+
*/
|
|
495
|
+
export declare const ProjectTemplateStageInputSchema: z.ZodObject<{
|
|
496
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
497
|
+
title: z.ZodString;
|
|
498
|
+
description: z.ZodOptional<z.ZodString>;
|
|
499
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
|
+
dueOffsetDays: z.ZodNumber;
|
|
501
|
+
}, z.core.$strict>>>;
|
|
502
|
+
name: z.ZodString;
|
|
503
|
+
color: z.ZodString;
|
|
504
|
+
plannedDurationDays: z.ZodOptional<z.ZodNumber>;
|
|
505
|
+
responsibleRoleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
506
|
+
alertOffsetsDays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
507
|
+
completionGate: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
completionPermitted: z.ZodOptional<z.ZodBoolean>;
|
|
509
|
+
key: z.ZodString;
|
|
510
|
+
}, z.core.$strict>;
|
|
511
|
+
export type ProjectTemplateStageInput = z.infer<typeof ProjectTemplateStageInputSchema>;
|
|
512
|
+
/**
|
|
513
|
+
* `POST /projects/templates`, `PUT /projects/templates/:id` — the whole
|
|
514
|
+
* Template in one body, saved in one Command. A Template carries structure
|
|
515
|
+
* only: no Organizations, Members, value or links (US3 sc.1).
|
|
516
|
+
*/
|
|
517
|
+
export declare const ProjectTemplateBodySchema: z.ZodObject<{
|
|
518
|
+
name: z.ZodString;
|
|
519
|
+
description: z.ZodOptional<z.ZodString>;
|
|
520
|
+
roleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
521
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
522
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
523
|
+
title: z.ZodString;
|
|
524
|
+
description: z.ZodOptional<z.ZodString>;
|
|
525
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
526
|
+
dueOffsetDays: z.ZodNumber;
|
|
527
|
+
}, z.core.$strict>>>;
|
|
528
|
+
name: z.ZodString;
|
|
529
|
+
color: z.ZodString;
|
|
530
|
+
plannedDurationDays: z.ZodOptional<z.ZodNumber>;
|
|
531
|
+
responsibleRoleIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
532
|
+
alertOffsetsDays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
533
|
+
completionGate: z.ZodOptional<z.ZodBoolean>;
|
|
534
|
+
completionPermitted: z.ZodOptional<z.ZodBoolean>;
|
|
535
|
+
key: z.ZodString;
|
|
536
|
+
}, z.core.$strict>>;
|
|
537
|
+
moves: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
538
|
+
fromStageKey: z.ZodString;
|
|
539
|
+
toStageKey: z.ZodString;
|
|
540
|
+
}, z.core.$strict>>>;
|
|
541
|
+
}, z.core.$strict>;
|
|
542
|
+
export type ProjectTemplateBody = z.infer<typeof ProjectTemplateBodySchema>;
|
|
543
|
+
/** Every `GET /projects/analytics/*` figure takes this (`projects:analytics`). */
|
|
544
|
+
export declare const ProjectAnalyticsQuerySchema: z.ZodObject<{
|
|
545
|
+
from: z.ZodString;
|
|
546
|
+
to: z.ZodString;
|
|
547
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
548
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
549
|
+
projectManagerId: z.ZodOptional<z.ZodString>;
|
|
550
|
+
}, z.core.$strip>;
|
|
551
|
+
export type ProjectAnalyticsQuery = z.infer<typeof ProjectAnalyticsQuerySchema>;
|
|
552
|
+
export declare const ProjectRoleSchema: z.ZodObject<{
|
|
553
|
+
id: z.ZodString;
|
|
554
|
+
code: z.ZodString;
|
|
555
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
556
|
+
defaultName: z.ZodString;
|
|
557
|
+
label: z.ZodString;
|
|
558
|
+
isSystem: z.ZodBoolean;
|
|
559
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
560
|
+
position: z.ZodNumber;
|
|
561
|
+
}, z.core.$strip>;
|
|
562
|
+
export type ProjectRole = z.infer<typeof ProjectRoleSchema>;
|
|
563
|
+
export declare const ProjectLossReasonSchema: z.ZodObject<{
|
|
564
|
+
id: z.ZodString;
|
|
565
|
+
code: z.ZodString;
|
|
566
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
567
|
+
defaultName: z.ZodString;
|
|
568
|
+
label: z.ZodString;
|
|
569
|
+
isSystem: z.ZodBoolean;
|
|
570
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
571
|
+
position: z.ZodNumber;
|
|
572
|
+
}, z.core.$strip>;
|
|
573
|
+
export type ProjectLossReason = z.infer<typeof ProjectLossReasonSchema>;
|
|
574
|
+
export declare const ProjectCurrentStageSchema: z.ZodObject<{
|
|
575
|
+
id: z.ZodString;
|
|
576
|
+
name: z.ZodString;
|
|
577
|
+
color: z.ZodString;
|
|
578
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
579
|
+
overdue: z.ZodBoolean;
|
|
580
|
+
}, z.core.$strip>;
|
|
581
|
+
export type ProjectCurrentStage = z.infer<typeof ProjectCurrentStageSchema>;
|
|
582
|
+
export declare const ProjectSummarySchema: z.ZodObject<{
|
|
583
|
+
id: z.ZodString;
|
|
584
|
+
number: z.ZodString;
|
|
585
|
+
title: z.ZodString;
|
|
586
|
+
state: z.ZodEnum<{
|
|
587
|
+
completed: "completed";
|
|
588
|
+
open: "open";
|
|
589
|
+
lost: "lost";
|
|
590
|
+
}>;
|
|
591
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
592
|
+
id: z.ZodString;
|
|
593
|
+
name: z.ZodString;
|
|
594
|
+
color: z.ZodString;
|
|
595
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
596
|
+
overdue: z.ZodBoolean;
|
|
597
|
+
}, z.core.$strip>>;
|
|
598
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
599
|
+
id: z.ZodString;
|
|
600
|
+
name: z.ZodString;
|
|
601
|
+
}, z.core.$strip>>;
|
|
602
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
603
|
+
amount: z.ZodString;
|
|
604
|
+
currency: z.ZodString;
|
|
605
|
+
}, z.core.$strict>>;
|
|
606
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
607
|
+
id: z.ZodString;
|
|
608
|
+
name: z.ZodString;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
createdAt: z.ZodString;
|
|
611
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
612
|
+
}, z.core.$strip>;
|
|
613
|
+
export type ProjectSummary = z.infer<typeof ProjectSummarySchema>;
|
|
614
|
+
/** `GET /projects` — one page, its next cursor and the total the caller may see. */
|
|
615
|
+
export declare const ProjectListResponseSchema: z.ZodObject<{
|
|
616
|
+
items: z.ZodArray<z.ZodObject<{
|
|
617
|
+
id: z.ZodString;
|
|
618
|
+
number: z.ZodString;
|
|
619
|
+
title: z.ZodString;
|
|
620
|
+
state: z.ZodEnum<{
|
|
621
|
+
completed: "completed";
|
|
622
|
+
open: "open";
|
|
623
|
+
lost: "lost";
|
|
624
|
+
}>;
|
|
625
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
626
|
+
id: z.ZodString;
|
|
627
|
+
name: z.ZodString;
|
|
628
|
+
color: z.ZodString;
|
|
629
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
630
|
+
overdue: z.ZodBoolean;
|
|
631
|
+
}, z.core.$strip>>;
|
|
632
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
633
|
+
id: z.ZodString;
|
|
634
|
+
name: z.ZodString;
|
|
635
|
+
}, z.core.$strip>>;
|
|
636
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
637
|
+
amount: z.ZodString;
|
|
638
|
+
currency: z.ZodString;
|
|
639
|
+
}, z.core.$strict>>;
|
|
640
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
641
|
+
id: z.ZodString;
|
|
642
|
+
name: z.ZodString;
|
|
643
|
+
}, z.core.$strip>>;
|
|
644
|
+
createdAt: z.ZodString;
|
|
645
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
646
|
+
}, z.core.$strip>>;
|
|
647
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
648
|
+
total: z.ZodNumber;
|
|
649
|
+
}, z.core.$strip>;
|
|
650
|
+
export type ProjectListResponse = z.infer<typeof ProjectListResponseSchema>;
|
|
651
|
+
export declare const ProjectStageSchema: z.ZodObject<{
|
|
652
|
+
id: z.ZodString;
|
|
653
|
+
name: z.ZodString;
|
|
654
|
+
color: z.ZodString;
|
|
655
|
+
position: z.ZodNumber;
|
|
656
|
+
plannedDurationDays: z.ZodNumber;
|
|
657
|
+
responsibleRoleIds: z.ZodArray<z.ZodString>;
|
|
658
|
+
alertOffsetsDays: z.ZodArray<z.ZodNumber>;
|
|
659
|
+
completionGate: z.ZodBoolean;
|
|
660
|
+
completionPermitted: z.ZodBoolean;
|
|
661
|
+
startedOn: z.ZodNullable<z.ZodString>;
|
|
662
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
663
|
+
deadlineManual: z.ZodBoolean;
|
|
664
|
+
tasksMaterializedAt: z.ZodNullable<z.ZodString>;
|
|
665
|
+
tasksSkippedAt: z.ZodNullable<z.ZodString>;
|
|
666
|
+
tasksMaterializeFailed: z.ZodBoolean;
|
|
667
|
+
stageTasks: z.ZodArray<z.ZodObject<{
|
|
668
|
+
title: z.ZodString;
|
|
669
|
+
description: z.ZodOptional<z.ZodString>;
|
|
670
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
671
|
+
dueOffsetDays: z.ZodNumber;
|
|
672
|
+
id: z.ZodString;
|
|
673
|
+
position: z.ZodNumber;
|
|
674
|
+
}, z.core.$strict>>;
|
|
675
|
+
}, z.core.$strip>;
|
|
676
|
+
export type ProjectStage = z.infer<typeof ProjectStageSchema>;
|
|
677
|
+
export declare const ProjectMemberSchema: z.ZodObject<{
|
|
678
|
+
id: z.ZodString;
|
|
679
|
+
adminUser: z.ZodObject<{
|
|
680
|
+
id: z.ZodString;
|
|
681
|
+
name: z.ZodString;
|
|
682
|
+
active: z.ZodBoolean;
|
|
683
|
+
}, z.core.$strip>;
|
|
684
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
685
|
+
id: z.ZodString;
|
|
686
|
+
name: z.ZodString;
|
|
687
|
+
archived: z.ZodBoolean;
|
|
688
|
+
}, z.core.$strip>>;
|
|
689
|
+
addedAt: z.ZodString;
|
|
690
|
+
}, z.core.$strip>;
|
|
691
|
+
export type ProjectMember = z.infer<typeof ProjectMemberSchema>;
|
|
692
|
+
export declare const ProjectDetailSchema: z.ZodObject<{
|
|
693
|
+
id: z.ZodString;
|
|
694
|
+
number: z.ZodString;
|
|
695
|
+
title: z.ZodString;
|
|
696
|
+
state: z.ZodEnum<{
|
|
697
|
+
completed: "completed";
|
|
698
|
+
open: "open";
|
|
699
|
+
lost: "lost";
|
|
700
|
+
}>;
|
|
701
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
702
|
+
id: z.ZodString;
|
|
703
|
+
name: z.ZodString;
|
|
704
|
+
color: z.ZodString;
|
|
705
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
706
|
+
overdue: z.ZodBoolean;
|
|
707
|
+
}, z.core.$strip>>;
|
|
708
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
709
|
+
id: z.ZodString;
|
|
710
|
+
name: z.ZodString;
|
|
711
|
+
}, z.core.$strip>>;
|
|
712
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
713
|
+
amount: z.ZodString;
|
|
714
|
+
currency: z.ZodString;
|
|
715
|
+
}, z.core.$strict>>;
|
|
716
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
717
|
+
id: z.ZodString;
|
|
718
|
+
name: z.ZodString;
|
|
719
|
+
}, z.core.$strip>>;
|
|
720
|
+
createdAt: z.ZodString;
|
|
721
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
722
|
+
description: z.ZodString;
|
|
723
|
+
references: z.ZodArray<z.ZodObject<{
|
|
724
|
+
type: z.ZodEnum<{
|
|
725
|
+
product: "product";
|
|
726
|
+
order: "order";
|
|
727
|
+
admin_user: "admin_user";
|
|
728
|
+
quote_request: "quote_request";
|
|
729
|
+
task: "task";
|
|
730
|
+
opportunity: "opportunity";
|
|
731
|
+
project: "project";
|
|
732
|
+
}>;
|
|
733
|
+
id: z.ZodString;
|
|
734
|
+
available: z.ZodBoolean;
|
|
735
|
+
label: z.ZodNullable<z.ZodString>;
|
|
736
|
+
url: z.ZodNullable<z.ZodString>;
|
|
737
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
738
|
+
status: z.ZodString;
|
|
739
|
+
total: z.ZodString;
|
|
740
|
+
currency: z.ZodString;
|
|
741
|
+
placedAt: z.ZodString;
|
|
742
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
743
|
+
}, z.core.$strip>>;
|
|
744
|
+
}, z.core.$strip>>;
|
|
745
|
+
startOn: z.ZodString;
|
|
746
|
+
visibility: z.ZodEnum<{
|
|
747
|
+
inherit: "inherit";
|
|
748
|
+
everyone: "everyone";
|
|
749
|
+
members_and_listed: "members_and_listed";
|
|
750
|
+
}>;
|
|
751
|
+
viewers: z.ZodArray<z.ZodObject<{
|
|
752
|
+
id: z.ZodString;
|
|
753
|
+
name: z.ZodString;
|
|
754
|
+
}, z.core.$strip>>;
|
|
755
|
+
template: z.ZodNullable<z.ZodObject<{
|
|
756
|
+
id: z.ZodString;
|
|
757
|
+
name: z.ZodString;
|
|
758
|
+
}, z.core.$strip>>;
|
|
759
|
+
lostStageId: z.ZodNullable<z.ZodString>;
|
|
760
|
+
lossReason: z.ZodNullable<z.ZodObject<{
|
|
761
|
+
id: z.ZodString;
|
|
762
|
+
name: z.ZodString;
|
|
763
|
+
}, z.core.$strip>>;
|
|
764
|
+
lossComment: z.ZodNullable<z.ZodString>;
|
|
765
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
766
|
+
id: z.ZodString;
|
|
767
|
+
name: z.ZodString;
|
|
768
|
+
color: z.ZodString;
|
|
769
|
+
position: z.ZodNumber;
|
|
770
|
+
plannedDurationDays: z.ZodNumber;
|
|
771
|
+
responsibleRoleIds: z.ZodArray<z.ZodString>;
|
|
772
|
+
alertOffsetsDays: z.ZodArray<z.ZodNumber>;
|
|
773
|
+
completionGate: z.ZodBoolean;
|
|
774
|
+
completionPermitted: z.ZodBoolean;
|
|
775
|
+
startedOn: z.ZodNullable<z.ZodString>;
|
|
776
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
777
|
+
deadlineManual: z.ZodBoolean;
|
|
778
|
+
tasksMaterializedAt: z.ZodNullable<z.ZodString>;
|
|
779
|
+
tasksSkippedAt: z.ZodNullable<z.ZodString>;
|
|
780
|
+
tasksMaterializeFailed: z.ZodBoolean;
|
|
781
|
+
stageTasks: z.ZodArray<z.ZodObject<{
|
|
782
|
+
title: z.ZodString;
|
|
783
|
+
description: z.ZodOptional<z.ZodString>;
|
|
784
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
dueOffsetDays: z.ZodNumber;
|
|
786
|
+
id: z.ZodString;
|
|
787
|
+
position: z.ZodNumber;
|
|
788
|
+
}, z.core.$strict>>;
|
|
789
|
+
}, z.core.$strip>>;
|
|
790
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
791
|
+
fromStageId: z.ZodString;
|
|
792
|
+
toStageId: z.ZodString;
|
|
793
|
+
}, z.core.$strip>>;
|
|
794
|
+
unreachableStageIds: z.ZodArray<z.ZodString>;
|
|
795
|
+
members: z.ZodArray<z.ZodObject<{
|
|
796
|
+
id: z.ZodString;
|
|
797
|
+
adminUser: z.ZodObject<{
|
|
798
|
+
id: z.ZodString;
|
|
799
|
+
name: z.ZodString;
|
|
800
|
+
active: z.ZodBoolean;
|
|
801
|
+
}, z.core.$strip>;
|
|
802
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
803
|
+
id: z.ZodString;
|
|
804
|
+
name: z.ZodString;
|
|
805
|
+
archived: z.ZodBoolean;
|
|
806
|
+
}, z.core.$strip>>;
|
|
807
|
+
addedAt: z.ZodString;
|
|
808
|
+
}, z.core.$strip>>;
|
|
809
|
+
linkCount: z.ZodNumber;
|
|
810
|
+
unreadMessageCount: z.ZodNumber;
|
|
811
|
+
customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
812
|
+
version: z.ZodNumber;
|
|
813
|
+
permissions: z.ZodObject<{
|
|
814
|
+
canWrite: z.ZodBoolean;
|
|
815
|
+
canConfigure: z.ZodBoolean;
|
|
816
|
+
}, z.core.$strip>;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
export type ProjectDetail = z.infer<typeof ProjectDetailSchema>;
|
|
819
|
+
export declare const ProjectStageEntrySchema: z.ZodObject<{
|
|
820
|
+
id: z.ZodString;
|
|
821
|
+
kind: z.ZodEnum<{
|
|
822
|
+
enter: "enter";
|
|
823
|
+
close_completed: "close_completed";
|
|
824
|
+
close_lost: "close_lost";
|
|
825
|
+
reopen: "reopen";
|
|
826
|
+
}>;
|
|
827
|
+
fromStageId: z.ZodNullable<z.ZodString>;
|
|
828
|
+
toStageId: z.ZodNullable<z.ZodString>;
|
|
829
|
+
fromStageName: z.ZodNullable<z.ZodString>;
|
|
830
|
+
toStageName: z.ZodNullable<z.ZodString>;
|
|
831
|
+
notes: z.ZodArray<z.ZodEnum<{
|
|
832
|
+
gate_not_applied_tasks_off: "gate_not_applied_tasks_off";
|
|
833
|
+
stage_tasks_skipped: "stage_tasks_skipped";
|
|
834
|
+
tasks_materialize_failed: "tasks_materialize_failed";
|
|
835
|
+
}>>;
|
|
836
|
+
actor: z.ZodNullable<z.ZodObject<{
|
|
837
|
+
id: z.ZodString;
|
|
838
|
+
name: z.ZodString;
|
|
839
|
+
}, z.core.$strip>>;
|
|
840
|
+
at: z.ZodString;
|
|
841
|
+
}, z.core.$strip>;
|
|
842
|
+
export type ProjectStageEntry = z.infer<typeof ProjectStageEntrySchema>;
|
|
843
|
+
export declare const SetProjectMovesResultSchema: z.ZodObject<{
|
|
844
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
845
|
+
fromStageId: z.ZodString;
|
|
846
|
+
toStageId: z.ZodString;
|
|
847
|
+
}, z.core.$strip>>;
|
|
848
|
+
unreachableStageIds: z.ZodArray<z.ZodString>;
|
|
849
|
+
}, z.core.$strip>;
|
|
850
|
+
export type SetProjectMovesResult = z.infer<typeof SetProjectMovesResultSchema>;
|
|
851
|
+
/** `POST /projects/:id/move` — the Project after the move and what the move recorded. */
|
|
852
|
+
export declare const ProjectMoveResultSchema: z.ZodObject<{
|
|
853
|
+
project: z.ZodObject<{
|
|
854
|
+
id: z.ZodString;
|
|
855
|
+
number: z.ZodString;
|
|
856
|
+
title: z.ZodString;
|
|
857
|
+
state: z.ZodEnum<{
|
|
858
|
+
completed: "completed";
|
|
859
|
+
open: "open";
|
|
860
|
+
lost: "lost";
|
|
861
|
+
}>;
|
|
862
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
863
|
+
id: z.ZodString;
|
|
864
|
+
name: z.ZodString;
|
|
865
|
+
color: z.ZodString;
|
|
866
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
867
|
+
overdue: z.ZodBoolean;
|
|
868
|
+
}, z.core.$strip>>;
|
|
869
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
870
|
+
id: z.ZodString;
|
|
871
|
+
name: z.ZodString;
|
|
872
|
+
}, z.core.$strip>>;
|
|
873
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
874
|
+
amount: z.ZodString;
|
|
875
|
+
currency: z.ZodString;
|
|
876
|
+
}, z.core.$strict>>;
|
|
877
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
878
|
+
id: z.ZodString;
|
|
879
|
+
name: z.ZodString;
|
|
880
|
+
}, z.core.$strip>>;
|
|
881
|
+
createdAt: z.ZodString;
|
|
882
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
883
|
+
description: z.ZodString;
|
|
884
|
+
references: z.ZodArray<z.ZodObject<{
|
|
885
|
+
type: z.ZodEnum<{
|
|
886
|
+
product: "product";
|
|
887
|
+
order: "order";
|
|
888
|
+
admin_user: "admin_user";
|
|
889
|
+
quote_request: "quote_request";
|
|
890
|
+
task: "task";
|
|
891
|
+
opportunity: "opportunity";
|
|
892
|
+
project: "project";
|
|
893
|
+
}>;
|
|
894
|
+
id: z.ZodString;
|
|
895
|
+
available: z.ZodBoolean;
|
|
896
|
+
label: z.ZodNullable<z.ZodString>;
|
|
897
|
+
url: z.ZodNullable<z.ZodString>;
|
|
898
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
899
|
+
status: z.ZodString;
|
|
900
|
+
total: z.ZodString;
|
|
901
|
+
currency: z.ZodString;
|
|
902
|
+
placedAt: z.ZodString;
|
|
903
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
904
|
+
}, z.core.$strip>>;
|
|
905
|
+
}, z.core.$strip>>;
|
|
906
|
+
startOn: z.ZodString;
|
|
907
|
+
visibility: z.ZodEnum<{
|
|
908
|
+
inherit: "inherit";
|
|
909
|
+
everyone: "everyone";
|
|
910
|
+
members_and_listed: "members_and_listed";
|
|
911
|
+
}>;
|
|
912
|
+
viewers: z.ZodArray<z.ZodObject<{
|
|
913
|
+
id: z.ZodString;
|
|
914
|
+
name: z.ZodString;
|
|
915
|
+
}, z.core.$strip>>;
|
|
916
|
+
template: z.ZodNullable<z.ZodObject<{
|
|
917
|
+
id: z.ZodString;
|
|
918
|
+
name: z.ZodString;
|
|
919
|
+
}, z.core.$strip>>;
|
|
920
|
+
lostStageId: z.ZodNullable<z.ZodString>;
|
|
921
|
+
lossReason: z.ZodNullable<z.ZodObject<{
|
|
922
|
+
id: z.ZodString;
|
|
923
|
+
name: z.ZodString;
|
|
924
|
+
}, z.core.$strip>>;
|
|
925
|
+
lossComment: z.ZodNullable<z.ZodString>;
|
|
926
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
927
|
+
id: z.ZodString;
|
|
928
|
+
name: z.ZodString;
|
|
929
|
+
color: z.ZodString;
|
|
930
|
+
position: z.ZodNumber;
|
|
931
|
+
plannedDurationDays: z.ZodNumber;
|
|
932
|
+
responsibleRoleIds: z.ZodArray<z.ZodString>;
|
|
933
|
+
alertOffsetsDays: z.ZodArray<z.ZodNumber>;
|
|
934
|
+
completionGate: z.ZodBoolean;
|
|
935
|
+
completionPermitted: z.ZodBoolean;
|
|
936
|
+
startedOn: z.ZodNullable<z.ZodString>;
|
|
937
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
938
|
+
deadlineManual: z.ZodBoolean;
|
|
939
|
+
tasksMaterializedAt: z.ZodNullable<z.ZodString>;
|
|
940
|
+
tasksSkippedAt: z.ZodNullable<z.ZodString>;
|
|
941
|
+
tasksMaterializeFailed: z.ZodBoolean;
|
|
942
|
+
stageTasks: z.ZodArray<z.ZodObject<{
|
|
943
|
+
title: z.ZodString;
|
|
944
|
+
description: z.ZodOptional<z.ZodString>;
|
|
945
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
946
|
+
dueOffsetDays: z.ZodNumber;
|
|
947
|
+
id: z.ZodString;
|
|
948
|
+
position: z.ZodNumber;
|
|
949
|
+
}, z.core.$strict>>;
|
|
950
|
+
}, z.core.$strip>>;
|
|
951
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
952
|
+
fromStageId: z.ZodString;
|
|
953
|
+
toStageId: z.ZodString;
|
|
954
|
+
}, z.core.$strip>>;
|
|
955
|
+
unreachableStageIds: z.ZodArray<z.ZodString>;
|
|
956
|
+
members: z.ZodArray<z.ZodObject<{
|
|
957
|
+
id: z.ZodString;
|
|
958
|
+
adminUser: z.ZodObject<{
|
|
959
|
+
id: z.ZodString;
|
|
960
|
+
name: z.ZodString;
|
|
961
|
+
active: z.ZodBoolean;
|
|
962
|
+
}, z.core.$strip>;
|
|
963
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
964
|
+
id: z.ZodString;
|
|
965
|
+
name: z.ZodString;
|
|
966
|
+
archived: z.ZodBoolean;
|
|
967
|
+
}, z.core.$strip>>;
|
|
968
|
+
addedAt: z.ZodString;
|
|
969
|
+
}, z.core.$strip>>;
|
|
970
|
+
linkCount: z.ZodNumber;
|
|
971
|
+
unreadMessageCount: z.ZodNumber;
|
|
972
|
+
customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
973
|
+
version: z.ZodNumber;
|
|
974
|
+
permissions: z.ZodObject<{
|
|
975
|
+
canWrite: z.ZodBoolean;
|
|
976
|
+
canConfigure: z.ZodBoolean;
|
|
977
|
+
}, z.core.$strip>;
|
|
978
|
+
}, z.core.$strip>;
|
|
979
|
+
entry: z.ZodObject<{
|
|
980
|
+
id: z.ZodString;
|
|
981
|
+
kind: z.ZodEnum<{
|
|
982
|
+
enter: "enter";
|
|
983
|
+
close_completed: "close_completed";
|
|
984
|
+
close_lost: "close_lost";
|
|
985
|
+
reopen: "reopen";
|
|
986
|
+
}>;
|
|
987
|
+
fromStageId: z.ZodNullable<z.ZodString>;
|
|
988
|
+
toStageId: z.ZodNullable<z.ZodString>;
|
|
989
|
+
fromStageName: z.ZodNullable<z.ZodString>;
|
|
990
|
+
toStageName: z.ZodNullable<z.ZodString>;
|
|
991
|
+
notes: z.ZodArray<z.ZodEnum<{
|
|
992
|
+
gate_not_applied_tasks_off: "gate_not_applied_tasks_off";
|
|
993
|
+
stage_tasks_skipped: "stage_tasks_skipped";
|
|
994
|
+
tasks_materialize_failed: "tasks_materialize_failed";
|
|
995
|
+
}>>;
|
|
996
|
+
actor: z.ZodNullable<z.ZodObject<{
|
|
997
|
+
id: z.ZodString;
|
|
998
|
+
name: z.ZodString;
|
|
999
|
+
}, z.core.$strip>>;
|
|
1000
|
+
at: z.ZodString;
|
|
1001
|
+
}, z.core.$strip>;
|
|
1002
|
+
createdTaskIds: z.ZodArray<z.ZodString>;
|
|
1003
|
+
notes: z.ZodArray<z.ZodEnum<{
|
|
1004
|
+
gate_not_applied_tasks_off: "gate_not_applied_tasks_off";
|
|
1005
|
+
stage_tasks_skipped: "stage_tasks_skipped";
|
|
1006
|
+
tasks_materialize_failed: "tasks_materialize_failed";
|
|
1007
|
+
}>>;
|
|
1008
|
+
}, z.core.$strip>;
|
|
1009
|
+
export type ProjectMoveResult = z.infer<typeof ProjectMoveResultSchema>;
|
|
1010
|
+
export declare const MaterializeStageTasksResultSchema: z.ZodObject<{
|
|
1011
|
+
created: z.ZodNumber;
|
|
1012
|
+
}, z.core.$strip>;
|
|
1013
|
+
export type MaterializeStageTasksResult = z.infer<typeof MaterializeStageTasksResultSchema>;
|
|
1014
|
+
/**
|
|
1015
|
+
* A linked record. `number`, `status`, `amount`, `currency` and `href` are
|
|
1016
|
+
* present only when `available` — a record the reader may not read, one that is
|
|
1017
|
+
* gone, or one whose owning module is switched off is listed as unavailable
|
|
1018
|
+
* (FR-023, FR-024).
|
|
1019
|
+
*/
|
|
1020
|
+
export declare const ProjectLinkSchema: z.ZodObject<{
|
|
1021
|
+
id: z.ZodString;
|
|
1022
|
+
kind: z.ZodEnum<{
|
|
1023
|
+
order: "order";
|
|
1024
|
+
quote_request: "quote_request";
|
|
1025
|
+
opportunity: "opportunity";
|
|
1026
|
+
}>;
|
|
1027
|
+
recordId: z.ZodString;
|
|
1028
|
+
available: z.ZodBoolean;
|
|
1029
|
+
number: z.ZodOptional<z.ZodString>;
|
|
1030
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
href: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
linkedBy: z.ZodNullable<z.ZodObject<{
|
|
1035
|
+
id: z.ZodString;
|
|
1036
|
+
name: z.ZodString;
|
|
1037
|
+
}, z.core.$strip>>;
|
|
1038
|
+
linkedAt: z.ZodString;
|
|
1039
|
+
}, z.core.$strip>;
|
|
1040
|
+
export type ProjectLink = z.infer<typeof ProjectLinkSchema>;
|
|
1041
|
+
/** `GET /projects/:id/tasks` — Tasks by Stage; `tasksAvailable: false` while `tasks` is off. */
|
|
1042
|
+
export declare const ProjectTasksResponseSchema: z.ZodObject<{
|
|
1043
|
+
tasksAvailable: z.ZodBoolean;
|
|
1044
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
1045
|
+
stageId: z.ZodString;
|
|
1046
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1047
|
+
id: z.ZodString;
|
|
1048
|
+
number: z.ZodString;
|
|
1049
|
+
title: z.ZodString;
|
|
1050
|
+
status: z.ZodObject<{
|
|
1051
|
+
code: z.ZodString;
|
|
1052
|
+
name: z.ZodString;
|
|
1053
|
+
color: z.ZodString;
|
|
1054
|
+
category: z.ZodEnum<{
|
|
1055
|
+
cancelled: "cancelled";
|
|
1056
|
+
open: "open";
|
|
1057
|
+
done: "done";
|
|
1058
|
+
}>;
|
|
1059
|
+
}, z.core.$strip>;
|
|
1060
|
+
closed: z.ZodBoolean;
|
|
1061
|
+
assignees: z.ZodArray<z.ZodObject<{
|
|
1062
|
+
id: z.ZodString;
|
|
1063
|
+
name: z.ZodString;
|
|
1064
|
+
active: z.ZodBoolean;
|
|
1065
|
+
}, z.core.$strip>>;
|
|
1066
|
+
dueOn: z.ZodNullable<z.ZodString>;
|
|
1067
|
+
dueAt: z.ZodNullable<z.ZodString>;
|
|
1068
|
+
overdue: z.ZodBoolean;
|
|
1069
|
+
priority: z.ZodNullable<z.ZodObject<{
|
|
1070
|
+
code: z.ZodString;
|
|
1071
|
+
name: z.ZodString;
|
|
1072
|
+
color: z.ZodString;
|
|
1073
|
+
}, z.core.$strip>>;
|
|
1074
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1075
|
+
id: z.ZodString;
|
|
1076
|
+
name: z.ZodString;
|
|
1077
|
+
color: z.ZodString;
|
|
1078
|
+
}, z.core.$strip>>;
|
|
1079
|
+
context: z.ZodNullable<z.ZodObject<{
|
|
1080
|
+
type: z.ZodString;
|
|
1081
|
+
available: z.ZodBoolean;
|
|
1082
|
+
label: z.ZodString;
|
|
1083
|
+
href: z.ZodNullable<z.ZodString>;
|
|
1084
|
+
groupLabel: z.ZodNullable<z.ZodString>;
|
|
1085
|
+
}, z.core.$strip>>;
|
|
1086
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
1087
|
+
id: z.ZodString;
|
|
1088
|
+
number: z.ZodNullable<z.ZodString>;
|
|
1089
|
+
available: z.ZodBoolean;
|
|
1090
|
+
}, z.core.$strip>>;
|
|
1091
|
+
subtasks: z.ZodObject<{
|
|
1092
|
+
closed: z.ZodNumber;
|
|
1093
|
+
total: z.ZodNumber;
|
|
1094
|
+
}, z.core.$strip>;
|
|
1095
|
+
draft: z.ZodBoolean;
|
|
1096
|
+
private: z.ZodBoolean;
|
|
1097
|
+
cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1098
|
+
ref: z.ZodString;
|
|
1099
|
+
value: z.ZodUnknown;
|
|
1100
|
+
}, z.core.$strip>>>;
|
|
1101
|
+
createdAt: z.ZodString;
|
|
1102
|
+
updatedAt: z.ZodString;
|
|
1103
|
+
}, z.core.$strip>>;
|
|
1104
|
+
}, z.core.$strip>>;
|
|
1105
|
+
}, z.core.$strip>;
|
|
1106
|
+
export type ProjectTasksResponse = z.infer<typeof ProjectTasksResponseSchema>;
|
|
1107
|
+
export declare const ProjectCommentSchema: z.ZodObject<{
|
|
1108
|
+
id: z.ZodString;
|
|
1109
|
+
kind: z.ZodEnum<{
|
|
1110
|
+
message: "message";
|
|
1111
|
+
note: "note";
|
|
1112
|
+
}>;
|
|
1113
|
+
author: z.ZodObject<{
|
|
1114
|
+
id: z.ZodString;
|
|
1115
|
+
name: z.ZodString;
|
|
1116
|
+
}, z.core.$strip>;
|
|
1117
|
+
body: z.ZodString;
|
|
1118
|
+
references: z.ZodArray<z.ZodObject<{
|
|
1119
|
+
type: z.ZodEnum<{
|
|
1120
|
+
product: "product";
|
|
1121
|
+
order: "order";
|
|
1122
|
+
admin_user: "admin_user";
|
|
1123
|
+
quote_request: "quote_request";
|
|
1124
|
+
task: "task";
|
|
1125
|
+
opportunity: "opportunity";
|
|
1126
|
+
project: "project";
|
|
1127
|
+
}>;
|
|
1128
|
+
id: z.ZodString;
|
|
1129
|
+
available: z.ZodBoolean;
|
|
1130
|
+
label: z.ZodNullable<z.ZodString>;
|
|
1131
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1132
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1133
|
+
status: z.ZodString;
|
|
1134
|
+
total: z.ZodString;
|
|
1135
|
+
currency: z.ZodString;
|
|
1136
|
+
placedAt: z.ZodString;
|
|
1137
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
1138
|
+
}, z.core.$strip>>;
|
|
1139
|
+
}, z.core.$strip>>;
|
|
1140
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
1141
|
+
createdAt: z.ZodString;
|
|
1142
|
+
}, z.core.$strip>;
|
|
1143
|
+
export type ProjectComment = z.infer<typeof ProjectCommentSchema>;
|
|
1144
|
+
export declare const ProjectUnreadMessagesSchema: z.ZodObject<{
|
|
1145
|
+
unreadMessageCount: z.ZodNumber;
|
|
1146
|
+
}, z.core.$strip>;
|
|
1147
|
+
export type ProjectUnreadMessages = z.infer<typeof ProjectUnreadMessagesSchema>;
|
|
1148
|
+
export declare const ProjectAttachmentSchema: z.ZodObject<{
|
|
1149
|
+
id: z.ZodString;
|
|
1150
|
+
assetId: z.ZodString;
|
|
1151
|
+
fileName: z.ZodString;
|
|
1152
|
+
mimeType: z.ZodString;
|
|
1153
|
+
sizeBytes: z.ZodNumber;
|
|
1154
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1155
|
+
uploadedBy: z.ZodObject<{
|
|
1156
|
+
id: z.ZodString;
|
|
1157
|
+
name: z.ZodString;
|
|
1158
|
+
}, z.core.$strip>;
|
|
1159
|
+
createdAt: z.ZodString;
|
|
1160
|
+
}, z.core.$strip>;
|
|
1161
|
+
export type ProjectAttachment = z.infer<typeof ProjectAttachmentSchema>;
|
|
1162
|
+
export declare const ProjectMentionableOptionSchema: z.ZodObject<{
|
|
1163
|
+
id: z.ZodString;
|
|
1164
|
+
name: z.ZodString;
|
|
1165
|
+
email: z.ZodString;
|
|
1166
|
+
}, z.core.$strip>;
|
|
1167
|
+
export type ProjectMentionableOption = z.infer<typeof ProjectMentionableOptionSchema>;
|
|
1168
|
+
export declare const ProjectTemplateSummarySchema: z.ZodObject<{
|
|
1169
|
+
id: z.ZodString;
|
|
1170
|
+
name: z.ZodString;
|
|
1171
|
+
stageCount: z.ZodNumber;
|
|
1172
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1173
|
+
updatedAt: z.ZodString;
|
|
1174
|
+
}, z.core.$strip>;
|
|
1175
|
+
export type ProjectTemplateSummary = z.infer<typeof ProjectTemplateSummarySchema>;
|
|
1176
|
+
export declare const ProjectTemplateDetailSchema: z.ZodObject<{
|
|
1177
|
+
id: z.ZodString;
|
|
1178
|
+
name: z.ZodString;
|
|
1179
|
+
description: z.ZodString;
|
|
1180
|
+
roleIds: z.ZodArray<z.ZodString>;
|
|
1181
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
1182
|
+
id: z.ZodString;
|
|
1183
|
+
name: z.ZodString;
|
|
1184
|
+
color: z.ZodString;
|
|
1185
|
+
position: z.ZodNumber;
|
|
1186
|
+
plannedDurationDays: z.ZodNumber;
|
|
1187
|
+
responsibleRoleIds: z.ZodArray<z.ZodString>;
|
|
1188
|
+
alertOffsetsDays: z.ZodArray<z.ZodNumber>;
|
|
1189
|
+
completionGate: z.ZodBoolean;
|
|
1190
|
+
completionPermitted: z.ZodBoolean;
|
|
1191
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1192
|
+
title: z.ZodString;
|
|
1193
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1195
|
+
dueOffsetDays: z.ZodNumber;
|
|
1196
|
+
id: z.ZodString;
|
|
1197
|
+
position: z.ZodNumber;
|
|
1198
|
+
}, z.core.$strict>>;
|
|
1199
|
+
}, z.core.$strip>>;
|
|
1200
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
1201
|
+
fromStageId: z.ZodString;
|
|
1202
|
+
toStageId: z.ZodString;
|
|
1203
|
+
}, z.core.$strip>>;
|
|
1204
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1205
|
+
createdAt: z.ZodString;
|
|
1206
|
+
updatedAt: z.ZodString;
|
|
1207
|
+
}, z.core.$strip>;
|
|
1208
|
+
export type ProjectTemplateDetail = z.infer<typeof ProjectTemplateDetailSchema>;
|
|
1209
|
+
export declare const ProjectDetailResponseSchema: z.ZodObject<{
|
|
1210
|
+
data: z.ZodObject<{
|
|
1211
|
+
id: z.ZodString;
|
|
1212
|
+
number: z.ZodString;
|
|
1213
|
+
title: z.ZodString;
|
|
1214
|
+
state: z.ZodEnum<{
|
|
1215
|
+
completed: "completed";
|
|
1216
|
+
open: "open";
|
|
1217
|
+
lost: "lost";
|
|
1218
|
+
}>;
|
|
1219
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
1220
|
+
id: z.ZodString;
|
|
1221
|
+
name: z.ZodString;
|
|
1222
|
+
color: z.ZodString;
|
|
1223
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
1224
|
+
overdue: z.ZodBoolean;
|
|
1225
|
+
}, z.core.$strip>>;
|
|
1226
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
1227
|
+
id: z.ZodString;
|
|
1228
|
+
name: z.ZodString;
|
|
1229
|
+
}, z.core.$strip>>;
|
|
1230
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
1231
|
+
amount: z.ZodString;
|
|
1232
|
+
currency: z.ZodString;
|
|
1233
|
+
}, z.core.$strict>>;
|
|
1234
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
1235
|
+
id: z.ZodString;
|
|
1236
|
+
name: z.ZodString;
|
|
1237
|
+
}, z.core.$strip>>;
|
|
1238
|
+
createdAt: z.ZodString;
|
|
1239
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
1240
|
+
description: z.ZodString;
|
|
1241
|
+
references: z.ZodArray<z.ZodObject<{
|
|
1242
|
+
type: z.ZodEnum<{
|
|
1243
|
+
product: "product";
|
|
1244
|
+
order: "order";
|
|
1245
|
+
admin_user: "admin_user";
|
|
1246
|
+
quote_request: "quote_request";
|
|
1247
|
+
task: "task";
|
|
1248
|
+
opportunity: "opportunity";
|
|
1249
|
+
project: "project";
|
|
1250
|
+
}>;
|
|
1251
|
+
id: z.ZodString;
|
|
1252
|
+
available: z.ZodBoolean;
|
|
1253
|
+
label: z.ZodNullable<z.ZodString>;
|
|
1254
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1255
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1256
|
+
status: z.ZodString;
|
|
1257
|
+
total: z.ZodString;
|
|
1258
|
+
currency: z.ZodString;
|
|
1259
|
+
placedAt: z.ZodString;
|
|
1260
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
1261
|
+
}, z.core.$strip>>;
|
|
1262
|
+
}, z.core.$strip>>;
|
|
1263
|
+
startOn: z.ZodString;
|
|
1264
|
+
visibility: z.ZodEnum<{
|
|
1265
|
+
inherit: "inherit";
|
|
1266
|
+
everyone: "everyone";
|
|
1267
|
+
members_and_listed: "members_and_listed";
|
|
1268
|
+
}>;
|
|
1269
|
+
viewers: z.ZodArray<z.ZodObject<{
|
|
1270
|
+
id: z.ZodString;
|
|
1271
|
+
name: z.ZodString;
|
|
1272
|
+
}, z.core.$strip>>;
|
|
1273
|
+
template: z.ZodNullable<z.ZodObject<{
|
|
1274
|
+
id: z.ZodString;
|
|
1275
|
+
name: z.ZodString;
|
|
1276
|
+
}, z.core.$strip>>;
|
|
1277
|
+
lostStageId: z.ZodNullable<z.ZodString>;
|
|
1278
|
+
lossReason: z.ZodNullable<z.ZodObject<{
|
|
1279
|
+
id: z.ZodString;
|
|
1280
|
+
name: z.ZodString;
|
|
1281
|
+
}, z.core.$strip>>;
|
|
1282
|
+
lossComment: z.ZodNullable<z.ZodString>;
|
|
1283
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
1284
|
+
id: z.ZodString;
|
|
1285
|
+
name: z.ZodString;
|
|
1286
|
+
color: z.ZodString;
|
|
1287
|
+
position: z.ZodNumber;
|
|
1288
|
+
plannedDurationDays: z.ZodNumber;
|
|
1289
|
+
responsibleRoleIds: z.ZodArray<z.ZodString>;
|
|
1290
|
+
alertOffsetsDays: z.ZodArray<z.ZodNumber>;
|
|
1291
|
+
completionGate: z.ZodBoolean;
|
|
1292
|
+
completionPermitted: z.ZodBoolean;
|
|
1293
|
+
startedOn: z.ZodNullable<z.ZodString>;
|
|
1294
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
1295
|
+
deadlineManual: z.ZodBoolean;
|
|
1296
|
+
tasksMaterializedAt: z.ZodNullable<z.ZodString>;
|
|
1297
|
+
tasksSkippedAt: z.ZodNullable<z.ZodString>;
|
|
1298
|
+
tasksMaterializeFailed: z.ZodBoolean;
|
|
1299
|
+
stageTasks: z.ZodArray<z.ZodObject<{
|
|
1300
|
+
title: z.ZodString;
|
|
1301
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1302
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1303
|
+
dueOffsetDays: z.ZodNumber;
|
|
1304
|
+
id: z.ZodString;
|
|
1305
|
+
position: z.ZodNumber;
|
|
1306
|
+
}, z.core.$strict>>;
|
|
1307
|
+
}, z.core.$strip>>;
|
|
1308
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
1309
|
+
fromStageId: z.ZodString;
|
|
1310
|
+
toStageId: z.ZodString;
|
|
1311
|
+
}, z.core.$strip>>;
|
|
1312
|
+
unreachableStageIds: z.ZodArray<z.ZodString>;
|
|
1313
|
+
members: z.ZodArray<z.ZodObject<{
|
|
1314
|
+
id: z.ZodString;
|
|
1315
|
+
adminUser: z.ZodObject<{
|
|
1316
|
+
id: z.ZodString;
|
|
1317
|
+
name: z.ZodString;
|
|
1318
|
+
active: z.ZodBoolean;
|
|
1319
|
+
}, z.core.$strip>;
|
|
1320
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
1321
|
+
id: z.ZodString;
|
|
1322
|
+
name: z.ZodString;
|
|
1323
|
+
archived: z.ZodBoolean;
|
|
1324
|
+
}, z.core.$strip>>;
|
|
1325
|
+
addedAt: z.ZodString;
|
|
1326
|
+
}, z.core.$strip>>;
|
|
1327
|
+
linkCount: z.ZodNumber;
|
|
1328
|
+
unreadMessageCount: z.ZodNumber;
|
|
1329
|
+
customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1330
|
+
version: z.ZodNumber;
|
|
1331
|
+
permissions: z.ZodObject<{
|
|
1332
|
+
canWrite: z.ZodBoolean;
|
|
1333
|
+
canConfigure: z.ZodBoolean;
|
|
1334
|
+
}, z.core.$strip>;
|
|
1335
|
+
}, z.core.$strip>;
|
|
1336
|
+
}, z.core.$strip>;
|
|
1337
|
+
export declare const ProjectSummaryResponseSchema: z.ZodObject<{
|
|
1338
|
+
data: z.ZodObject<{
|
|
1339
|
+
id: z.ZodString;
|
|
1340
|
+
number: z.ZodString;
|
|
1341
|
+
title: z.ZodString;
|
|
1342
|
+
state: z.ZodEnum<{
|
|
1343
|
+
completed: "completed";
|
|
1344
|
+
open: "open";
|
|
1345
|
+
lost: "lost";
|
|
1346
|
+
}>;
|
|
1347
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
1348
|
+
id: z.ZodString;
|
|
1349
|
+
name: z.ZodString;
|
|
1350
|
+
color: z.ZodString;
|
|
1351
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
1352
|
+
overdue: z.ZodBoolean;
|
|
1353
|
+
}, z.core.$strip>>;
|
|
1354
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
1355
|
+
id: z.ZodString;
|
|
1356
|
+
name: z.ZodString;
|
|
1357
|
+
}, z.core.$strip>>;
|
|
1358
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
1359
|
+
amount: z.ZodString;
|
|
1360
|
+
currency: z.ZodString;
|
|
1361
|
+
}, z.core.$strict>>;
|
|
1362
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
1363
|
+
id: z.ZodString;
|
|
1364
|
+
name: z.ZodString;
|
|
1365
|
+
}, z.core.$strip>>;
|
|
1366
|
+
createdAt: z.ZodString;
|
|
1367
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
1368
|
+
}, z.core.$strip>;
|
|
1369
|
+
}, z.core.$strip>;
|
|
1370
|
+
export declare const ProjectStageResponseSchema: z.ZodObject<{
|
|
1371
|
+
data: z.ZodObject<{
|
|
1372
|
+
id: z.ZodString;
|
|
1373
|
+
name: z.ZodString;
|
|
1374
|
+
color: z.ZodString;
|
|
1375
|
+
position: z.ZodNumber;
|
|
1376
|
+
plannedDurationDays: z.ZodNumber;
|
|
1377
|
+
responsibleRoleIds: z.ZodArray<z.ZodString>;
|
|
1378
|
+
alertOffsetsDays: z.ZodArray<z.ZodNumber>;
|
|
1379
|
+
completionGate: z.ZodBoolean;
|
|
1380
|
+
completionPermitted: z.ZodBoolean;
|
|
1381
|
+
startedOn: z.ZodNullable<z.ZodString>;
|
|
1382
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
1383
|
+
deadlineManual: z.ZodBoolean;
|
|
1384
|
+
tasksMaterializedAt: z.ZodNullable<z.ZodString>;
|
|
1385
|
+
tasksSkippedAt: z.ZodNullable<z.ZodString>;
|
|
1386
|
+
tasksMaterializeFailed: z.ZodBoolean;
|
|
1387
|
+
stageTasks: z.ZodArray<z.ZodObject<{
|
|
1388
|
+
title: z.ZodString;
|
|
1389
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1391
|
+
dueOffsetDays: z.ZodNumber;
|
|
1392
|
+
id: z.ZodString;
|
|
1393
|
+
position: z.ZodNumber;
|
|
1394
|
+
}, z.core.$strict>>;
|
|
1395
|
+
}, z.core.$strip>;
|
|
1396
|
+
}, z.core.$strip>;
|
|
1397
|
+
export declare const ProjectStageEntryListResponseSchema: z.ZodObject<{
|
|
1398
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1399
|
+
id: z.ZodString;
|
|
1400
|
+
kind: z.ZodEnum<{
|
|
1401
|
+
enter: "enter";
|
|
1402
|
+
close_completed: "close_completed";
|
|
1403
|
+
close_lost: "close_lost";
|
|
1404
|
+
reopen: "reopen";
|
|
1405
|
+
}>;
|
|
1406
|
+
fromStageId: z.ZodNullable<z.ZodString>;
|
|
1407
|
+
toStageId: z.ZodNullable<z.ZodString>;
|
|
1408
|
+
fromStageName: z.ZodNullable<z.ZodString>;
|
|
1409
|
+
toStageName: z.ZodNullable<z.ZodString>;
|
|
1410
|
+
notes: z.ZodArray<z.ZodEnum<{
|
|
1411
|
+
gate_not_applied_tasks_off: "gate_not_applied_tasks_off";
|
|
1412
|
+
stage_tasks_skipped: "stage_tasks_skipped";
|
|
1413
|
+
tasks_materialize_failed: "tasks_materialize_failed";
|
|
1414
|
+
}>>;
|
|
1415
|
+
actor: z.ZodNullable<z.ZodObject<{
|
|
1416
|
+
id: z.ZodString;
|
|
1417
|
+
name: z.ZodString;
|
|
1418
|
+
}, z.core.$strip>>;
|
|
1419
|
+
at: z.ZodString;
|
|
1420
|
+
}, z.core.$strip>>;
|
|
1421
|
+
}, z.core.$strip>;
|
|
1422
|
+
export declare const SetProjectMovesResponseSchema: z.ZodObject<{
|
|
1423
|
+
data: z.ZodObject<{
|
|
1424
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
1425
|
+
fromStageId: z.ZodString;
|
|
1426
|
+
toStageId: z.ZodString;
|
|
1427
|
+
}, z.core.$strip>>;
|
|
1428
|
+
unreachableStageIds: z.ZodArray<z.ZodString>;
|
|
1429
|
+
}, z.core.$strip>;
|
|
1430
|
+
}, z.core.$strip>;
|
|
1431
|
+
export declare const ProjectMoveResponseSchema: z.ZodObject<{
|
|
1432
|
+
data: z.ZodObject<{
|
|
1433
|
+
project: z.ZodObject<{
|
|
1434
|
+
id: z.ZodString;
|
|
1435
|
+
number: z.ZodString;
|
|
1436
|
+
title: z.ZodString;
|
|
1437
|
+
state: z.ZodEnum<{
|
|
1438
|
+
completed: "completed";
|
|
1439
|
+
open: "open";
|
|
1440
|
+
lost: "lost";
|
|
1441
|
+
}>;
|
|
1442
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
1443
|
+
id: z.ZodString;
|
|
1444
|
+
name: z.ZodString;
|
|
1445
|
+
color: z.ZodString;
|
|
1446
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
1447
|
+
overdue: z.ZodBoolean;
|
|
1448
|
+
}, z.core.$strip>>;
|
|
1449
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
1450
|
+
id: z.ZodString;
|
|
1451
|
+
name: z.ZodString;
|
|
1452
|
+
}, z.core.$strip>>;
|
|
1453
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
1454
|
+
amount: z.ZodString;
|
|
1455
|
+
currency: z.ZodString;
|
|
1456
|
+
}, z.core.$strict>>;
|
|
1457
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
1458
|
+
id: z.ZodString;
|
|
1459
|
+
name: z.ZodString;
|
|
1460
|
+
}, z.core.$strip>>;
|
|
1461
|
+
createdAt: z.ZodString;
|
|
1462
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
1463
|
+
description: z.ZodString;
|
|
1464
|
+
references: z.ZodArray<z.ZodObject<{
|
|
1465
|
+
type: z.ZodEnum<{
|
|
1466
|
+
product: "product";
|
|
1467
|
+
order: "order";
|
|
1468
|
+
admin_user: "admin_user";
|
|
1469
|
+
quote_request: "quote_request";
|
|
1470
|
+
task: "task";
|
|
1471
|
+
opportunity: "opportunity";
|
|
1472
|
+
project: "project";
|
|
1473
|
+
}>;
|
|
1474
|
+
id: z.ZodString;
|
|
1475
|
+
available: z.ZodBoolean;
|
|
1476
|
+
label: z.ZodNullable<z.ZodString>;
|
|
1477
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1478
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1479
|
+
status: z.ZodString;
|
|
1480
|
+
total: z.ZodString;
|
|
1481
|
+
currency: z.ZodString;
|
|
1482
|
+
placedAt: z.ZodString;
|
|
1483
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
1484
|
+
}, z.core.$strip>>;
|
|
1485
|
+
}, z.core.$strip>>;
|
|
1486
|
+
startOn: z.ZodString;
|
|
1487
|
+
visibility: z.ZodEnum<{
|
|
1488
|
+
inherit: "inherit";
|
|
1489
|
+
everyone: "everyone";
|
|
1490
|
+
members_and_listed: "members_and_listed";
|
|
1491
|
+
}>;
|
|
1492
|
+
viewers: z.ZodArray<z.ZodObject<{
|
|
1493
|
+
id: z.ZodString;
|
|
1494
|
+
name: z.ZodString;
|
|
1495
|
+
}, z.core.$strip>>;
|
|
1496
|
+
template: z.ZodNullable<z.ZodObject<{
|
|
1497
|
+
id: z.ZodString;
|
|
1498
|
+
name: z.ZodString;
|
|
1499
|
+
}, z.core.$strip>>;
|
|
1500
|
+
lostStageId: z.ZodNullable<z.ZodString>;
|
|
1501
|
+
lossReason: z.ZodNullable<z.ZodObject<{
|
|
1502
|
+
id: z.ZodString;
|
|
1503
|
+
name: z.ZodString;
|
|
1504
|
+
}, z.core.$strip>>;
|
|
1505
|
+
lossComment: z.ZodNullable<z.ZodString>;
|
|
1506
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
1507
|
+
id: z.ZodString;
|
|
1508
|
+
name: z.ZodString;
|
|
1509
|
+
color: z.ZodString;
|
|
1510
|
+
position: z.ZodNumber;
|
|
1511
|
+
plannedDurationDays: z.ZodNumber;
|
|
1512
|
+
responsibleRoleIds: z.ZodArray<z.ZodString>;
|
|
1513
|
+
alertOffsetsDays: z.ZodArray<z.ZodNumber>;
|
|
1514
|
+
completionGate: z.ZodBoolean;
|
|
1515
|
+
completionPermitted: z.ZodBoolean;
|
|
1516
|
+
startedOn: z.ZodNullable<z.ZodString>;
|
|
1517
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
1518
|
+
deadlineManual: z.ZodBoolean;
|
|
1519
|
+
tasksMaterializedAt: z.ZodNullable<z.ZodString>;
|
|
1520
|
+
tasksSkippedAt: z.ZodNullable<z.ZodString>;
|
|
1521
|
+
tasksMaterializeFailed: z.ZodBoolean;
|
|
1522
|
+
stageTasks: z.ZodArray<z.ZodObject<{
|
|
1523
|
+
title: z.ZodString;
|
|
1524
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1525
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1526
|
+
dueOffsetDays: z.ZodNumber;
|
|
1527
|
+
id: z.ZodString;
|
|
1528
|
+
position: z.ZodNumber;
|
|
1529
|
+
}, z.core.$strict>>;
|
|
1530
|
+
}, z.core.$strip>>;
|
|
1531
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
1532
|
+
fromStageId: z.ZodString;
|
|
1533
|
+
toStageId: z.ZodString;
|
|
1534
|
+
}, z.core.$strip>>;
|
|
1535
|
+
unreachableStageIds: z.ZodArray<z.ZodString>;
|
|
1536
|
+
members: z.ZodArray<z.ZodObject<{
|
|
1537
|
+
id: z.ZodString;
|
|
1538
|
+
adminUser: z.ZodObject<{
|
|
1539
|
+
id: z.ZodString;
|
|
1540
|
+
name: z.ZodString;
|
|
1541
|
+
active: z.ZodBoolean;
|
|
1542
|
+
}, z.core.$strip>;
|
|
1543
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
1544
|
+
id: z.ZodString;
|
|
1545
|
+
name: z.ZodString;
|
|
1546
|
+
archived: z.ZodBoolean;
|
|
1547
|
+
}, z.core.$strip>>;
|
|
1548
|
+
addedAt: z.ZodString;
|
|
1549
|
+
}, z.core.$strip>>;
|
|
1550
|
+
linkCount: z.ZodNumber;
|
|
1551
|
+
unreadMessageCount: z.ZodNumber;
|
|
1552
|
+
customFieldValues: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1553
|
+
version: z.ZodNumber;
|
|
1554
|
+
permissions: z.ZodObject<{
|
|
1555
|
+
canWrite: z.ZodBoolean;
|
|
1556
|
+
canConfigure: z.ZodBoolean;
|
|
1557
|
+
}, z.core.$strip>;
|
|
1558
|
+
}, z.core.$strip>;
|
|
1559
|
+
entry: z.ZodObject<{
|
|
1560
|
+
id: z.ZodString;
|
|
1561
|
+
kind: z.ZodEnum<{
|
|
1562
|
+
enter: "enter";
|
|
1563
|
+
close_completed: "close_completed";
|
|
1564
|
+
close_lost: "close_lost";
|
|
1565
|
+
reopen: "reopen";
|
|
1566
|
+
}>;
|
|
1567
|
+
fromStageId: z.ZodNullable<z.ZodString>;
|
|
1568
|
+
toStageId: z.ZodNullable<z.ZodString>;
|
|
1569
|
+
fromStageName: z.ZodNullable<z.ZodString>;
|
|
1570
|
+
toStageName: z.ZodNullable<z.ZodString>;
|
|
1571
|
+
notes: z.ZodArray<z.ZodEnum<{
|
|
1572
|
+
gate_not_applied_tasks_off: "gate_not_applied_tasks_off";
|
|
1573
|
+
stage_tasks_skipped: "stage_tasks_skipped";
|
|
1574
|
+
tasks_materialize_failed: "tasks_materialize_failed";
|
|
1575
|
+
}>>;
|
|
1576
|
+
actor: z.ZodNullable<z.ZodObject<{
|
|
1577
|
+
id: z.ZodString;
|
|
1578
|
+
name: z.ZodString;
|
|
1579
|
+
}, z.core.$strip>>;
|
|
1580
|
+
at: z.ZodString;
|
|
1581
|
+
}, z.core.$strip>;
|
|
1582
|
+
createdTaskIds: z.ZodArray<z.ZodString>;
|
|
1583
|
+
notes: z.ZodArray<z.ZodEnum<{
|
|
1584
|
+
gate_not_applied_tasks_off: "gate_not_applied_tasks_off";
|
|
1585
|
+
stage_tasks_skipped: "stage_tasks_skipped";
|
|
1586
|
+
tasks_materialize_failed: "tasks_materialize_failed";
|
|
1587
|
+
}>>;
|
|
1588
|
+
}, z.core.$strip>;
|
|
1589
|
+
}, z.core.$strip>;
|
|
1590
|
+
export declare const MaterializeStageTasksResponseSchema: z.ZodObject<{
|
|
1591
|
+
data: z.ZodObject<{
|
|
1592
|
+
created: z.ZodNumber;
|
|
1593
|
+
}, z.core.$strip>;
|
|
1594
|
+
}, z.core.$strip>;
|
|
1595
|
+
export declare const ProjectLinkResponseSchema: z.ZodObject<{
|
|
1596
|
+
data: z.ZodObject<{
|
|
1597
|
+
id: z.ZodString;
|
|
1598
|
+
kind: z.ZodEnum<{
|
|
1599
|
+
order: "order";
|
|
1600
|
+
quote_request: "quote_request";
|
|
1601
|
+
opportunity: "opportunity";
|
|
1602
|
+
}>;
|
|
1603
|
+
recordId: z.ZodString;
|
|
1604
|
+
available: z.ZodBoolean;
|
|
1605
|
+
number: z.ZodOptional<z.ZodString>;
|
|
1606
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1607
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1609
|
+
href: z.ZodOptional<z.ZodString>;
|
|
1610
|
+
linkedBy: z.ZodNullable<z.ZodObject<{
|
|
1611
|
+
id: z.ZodString;
|
|
1612
|
+
name: z.ZodString;
|
|
1613
|
+
}, z.core.$strip>>;
|
|
1614
|
+
linkedAt: z.ZodString;
|
|
1615
|
+
}, z.core.$strip>;
|
|
1616
|
+
}, z.core.$strip>;
|
|
1617
|
+
export declare const ProjectLinkListResponseSchema: z.ZodObject<{
|
|
1618
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1619
|
+
id: z.ZodString;
|
|
1620
|
+
kind: z.ZodEnum<{
|
|
1621
|
+
order: "order";
|
|
1622
|
+
quote_request: "quote_request";
|
|
1623
|
+
opportunity: "opportunity";
|
|
1624
|
+
}>;
|
|
1625
|
+
recordId: z.ZodString;
|
|
1626
|
+
available: z.ZodBoolean;
|
|
1627
|
+
number: z.ZodOptional<z.ZodString>;
|
|
1628
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1629
|
+
amount: z.ZodOptional<z.ZodString>;
|
|
1630
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1631
|
+
href: z.ZodOptional<z.ZodString>;
|
|
1632
|
+
linkedBy: z.ZodNullable<z.ZodObject<{
|
|
1633
|
+
id: z.ZodString;
|
|
1634
|
+
name: z.ZodString;
|
|
1635
|
+
}, z.core.$strip>>;
|
|
1636
|
+
linkedAt: z.ZodString;
|
|
1637
|
+
}, z.core.$strip>>;
|
|
1638
|
+
}, z.core.$strip>;
|
|
1639
|
+
export declare const ProjectTasksEnvelopeSchema: z.ZodObject<{
|
|
1640
|
+
data: z.ZodObject<{
|
|
1641
|
+
tasksAvailable: z.ZodBoolean;
|
|
1642
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
1643
|
+
stageId: z.ZodString;
|
|
1644
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1645
|
+
id: z.ZodString;
|
|
1646
|
+
number: z.ZodString;
|
|
1647
|
+
title: z.ZodString;
|
|
1648
|
+
status: z.ZodObject<{
|
|
1649
|
+
code: z.ZodString;
|
|
1650
|
+
name: z.ZodString;
|
|
1651
|
+
color: z.ZodString;
|
|
1652
|
+
category: z.ZodEnum<{
|
|
1653
|
+
cancelled: "cancelled";
|
|
1654
|
+
open: "open";
|
|
1655
|
+
done: "done";
|
|
1656
|
+
}>;
|
|
1657
|
+
}, z.core.$strip>;
|
|
1658
|
+
closed: z.ZodBoolean;
|
|
1659
|
+
assignees: z.ZodArray<z.ZodObject<{
|
|
1660
|
+
id: z.ZodString;
|
|
1661
|
+
name: z.ZodString;
|
|
1662
|
+
active: z.ZodBoolean;
|
|
1663
|
+
}, z.core.$strip>>;
|
|
1664
|
+
dueOn: z.ZodNullable<z.ZodString>;
|
|
1665
|
+
dueAt: z.ZodNullable<z.ZodString>;
|
|
1666
|
+
overdue: z.ZodBoolean;
|
|
1667
|
+
priority: z.ZodNullable<z.ZodObject<{
|
|
1668
|
+
code: z.ZodString;
|
|
1669
|
+
name: z.ZodString;
|
|
1670
|
+
color: z.ZodString;
|
|
1671
|
+
}, z.core.$strip>>;
|
|
1672
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
1673
|
+
id: z.ZodString;
|
|
1674
|
+
name: z.ZodString;
|
|
1675
|
+
color: z.ZodString;
|
|
1676
|
+
}, z.core.$strip>>;
|
|
1677
|
+
context: z.ZodNullable<z.ZodObject<{
|
|
1678
|
+
type: z.ZodString;
|
|
1679
|
+
available: z.ZodBoolean;
|
|
1680
|
+
label: z.ZodString;
|
|
1681
|
+
href: z.ZodNullable<z.ZodString>;
|
|
1682
|
+
groupLabel: z.ZodNullable<z.ZodString>;
|
|
1683
|
+
}, z.core.$strip>>;
|
|
1684
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
1685
|
+
id: z.ZodString;
|
|
1686
|
+
number: z.ZodNullable<z.ZodString>;
|
|
1687
|
+
available: z.ZodBoolean;
|
|
1688
|
+
}, z.core.$strip>>;
|
|
1689
|
+
subtasks: z.ZodObject<{
|
|
1690
|
+
closed: z.ZodNumber;
|
|
1691
|
+
total: z.ZodNumber;
|
|
1692
|
+
}, z.core.$strip>;
|
|
1693
|
+
draft: z.ZodBoolean;
|
|
1694
|
+
private: z.ZodBoolean;
|
|
1695
|
+
cardFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1696
|
+
ref: z.ZodString;
|
|
1697
|
+
value: z.ZodUnknown;
|
|
1698
|
+
}, z.core.$strip>>>;
|
|
1699
|
+
createdAt: z.ZodString;
|
|
1700
|
+
updatedAt: z.ZodString;
|
|
1701
|
+
}, z.core.$strip>>;
|
|
1702
|
+
}, z.core.$strip>>;
|
|
1703
|
+
}, z.core.$strip>;
|
|
1704
|
+
}, z.core.$strip>;
|
|
1705
|
+
export declare const ProjectCommentResponseSchema: z.ZodObject<{
|
|
1706
|
+
data: z.ZodObject<{
|
|
1707
|
+
id: z.ZodString;
|
|
1708
|
+
kind: z.ZodEnum<{
|
|
1709
|
+
message: "message";
|
|
1710
|
+
note: "note";
|
|
1711
|
+
}>;
|
|
1712
|
+
author: z.ZodObject<{
|
|
1713
|
+
id: z.ZodString;
|
|
1714
|
+
name: z.ZodString;
|
|
1715
|
+
}, z.core.$strip>;
|
|
1716
|
+
body: z.ZodString;
|
|
1717
|
+
references: z.ZodArray<z.ZodObject<{
|
|
1718
|
+
type: z.ZodEnum<{
|
|
1719
|
+
product: "product";
|
|
1720
|
+
order: "order";
|
|
1721
|
+
admin_user: "admin_user";
|
|
1722
|
+
quote_request: "quote_request";
|
|
1723
|
+
task: "task";
|
|
1724
|
+
opportunity: "opportunity";
|
|
1725
|
+
project: "project";
|
|
1726
|
+
}>;
|
|
1727
|
+
id: z.ZodString;
|
|
1728
|
+
available: z.ZodBoolean;
|
|
1729
|
+
label: z.ZodNullable<z.ZodString>;
|
|
1730
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1731
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1732
|
+
status: z.ZodString;
|
|
1733
|
+
total: z.ZodString;
|
|
1734
|
+
currency: z.ZodString;
|
|
1735
|
+
placedAt: z.ZodString;
|
|
1736
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
1737
|
+
}, z.core.$strip>>;
|
|
1738
|
+
}, z.core.$strip>>;
|
|
1739
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
1740
|
+
createdAt: z.ZodString;
|
|
1741
|
+
}, z.core.$strip>;
|
|
1742
|
+
}, z.core.$strip>;
|
|
1743
|
+
export declare const ProjectCommentListResponseSchema: z.ZodObject<{
|
|
1744
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1745
|
+
id: z.ZodString;
|
|
1746
|
+
kind: z.ZodEnum<{
|
|
1747
|
+
message: "message";
|
|
1748
|
+
note: "note";
|
|
1749
|
+
}>;
|
|
1750
|
+
author: z.ZodObject<{
|
|
1751
|
+
id: z.ZodString;
|
|
1752
|
+
name: z.ZodString;
|
|
1753
|
+
}, z.core.$strip>;
|
|
1754
|
+
body: z.ZodString;
|
|
1755
|
+
references: z.ZodArray<z.ZodObject<{
|
|
1756
|
+
type: z.ZodEnum<{
|
|
1757
|
+
product: "product";
|
|
1758
|
+
order: "order";
|
|
1759
|
+
admin_user: "admin_user";
|
|
1760
|
+
quote_request: "quote_request";
|
|
1761
|
+
task: "task";
|
|
1762
|
+
opportunity: "opportunity";
|
|
1763
|
+
project: "project";
|
|
1764
|
+
}>;
|
|
1765
|
+
id: z.ZodString;
|
|
1766
|
+
available: z.ZodBoolean;
|
|
1767
|
+
label: z.ZodNullable<z.ZodString>;
|
|
1768
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1769
|
+
order: z.ZodOptional<z.ZodObject<{
|
|
1770
|
+
status: z.ZodString;
|
|
1771
|
+
total: z.ZodString;
|
|
1772
|
+
currency: z.ZodString;
|
|
1773
|
+
placedAt: z.ZodString;
|
|
1774
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
1775
|
+
}, z.core.$strip>>;
|
|
1776
|
+
}, z.core.$strip>>;
|
|
1777
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
1778
|
+
createdAt: z.ZodString;
|
|
1779
|
+
}, z.core.$strip>>;
|
|
1780
|
+
}, z.core.$strip>;
|
|
1781
|
+
export declare const ProjectUnreadMessagesResponseSchema: z.ZodObject<{
|
|
1782
|
+
data: z.ZodObject<{
|
|
1783
|
+
unreadMessageCount: z.ZodNumber;
|
|
1784
|
+
}, z.core.$strip>;
|
|
1785
|
+
}, z.core.$strip>;
|
|
1786
|
+
export declare const ProjectAttachmentResponseSchema: z.ZodObject<{
|
|
1787
|
+
data: z.ZodObject<{
|
|
1788
|
+
id: z.ZodString;
|
|
1789
|
+
assetId: z.ZodString;
|
|
1790
|
+
fileName: z.ZodString;
|
|
1791
|
+
mimeType: z.ZodString;
|
|
1792
|
+
sizeBytes: z.ZodNumber;
|
|
1793
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1794
|
+
uploadedBy: z.ZodObject<{
|
|
1795
|
+
id: z.ZodString;
|
|
1796
|
+
name: z.ZodString;
|
|
1797
|
+
}, z.core.$strip>;
|
|
1798
|
+
createdAt: z.ZodString;
|
|
1799
|
+
}, z.core.$strip>;
|
|
1800
|
+
}, z.core.$strip>;
|
|
1801
|
+
export declare const ProjectAttachmentListResponseSchema: z.ZodObject<{
|
|
1802
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1803
|
+
id: z.ZodString;
|
|
1804
|
+
assetId: z.ZodString;
|
|
1805
|
+
fileName: z.ZodString;
|
|
1806
|
+
mimeType: z.ZodString;
|
|
1807
|
+
sizeBytes: z.ZodNumber;
|
|
1808
|
+
url: z.ZodNullable<z.ZodString>;
|
|
1809
|
+
uploadedBy: z.ZodObject<{
|
|
1810
|
+
id: z.ZodString;
|
|
1811
|
+
name: z.ZodString;
|
|
1812
|
+
}, z.core.$strip>;
|
|
1813
|
+
createdAt: z.ZodString;
|
|
1814
|
+
}, z.core.$strip>>;
|
|
1815
|
+
}, z.core.$strip>;
|
|
1816
|
+
export declare const ProjectMentionableLookupResponseSchema: z.ZodObject<{
|
|
1817
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1818
|
+
id: z.ZodString;
|
|
1819
|
+
name: z.ZodString;
|
|
1820
|
+
email: z.ZodString;
|
|
1821
|
+
}, z.core.$strip>>;
|
|
1822
|
+
}, z.core.$strip>;
|
|
1823
|
+
export declare const ProjectOrganizationOptionSchema: z.ZodObject<{
|
|
1824
|
+
id: z.ZodString;
|
|
1825
|
+
name: z.ZodString;
|
|
1826
|
+
}, z.core.$strip>;
|
|
1827
|
+
export type ProjectOrganizationOption = z.infer<typeof ProjectOrganizationOptionSchema>;
|
|
1828
|
+
export declare const ProjectOrganizationLookupResponseSchema: z.ZodObject<{
|
|
1829
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1830
|
+
id: z.ZodString;
|
|
1831
|
+
name: z.ZodString;
|
|
1832
|
+
}, z.core.$strip>>;
|
|
1833
|
+
}, z.core.$strip>;
|
|
1834
|
+
export declare const ProjectAdminUserOptionSchema: z.ZodObject<{
|
|
1835
|
+
id: z.ZodString;
|
|
1836
|
+
name: z.ZodString;
|
|
1837
|
+
email: z.ZodString;
|
|
1838
|
+
}, z.core.$strip>;
|
|
1839
|
+
export type ProjectAdminUserOption = z.infer<typeof ProjectAdminUserOptionSchema>;
|
|
1840
|
+
export declare const ProjectAdminUserLookupResponseSchema: z.ZodObject<{
|
|
1841
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1842
|
+
id: z.ZodString;
|
|
1843
|
+
name: z.ZodString;
|
|
1844
|
+
email: z.ZodString;
|
|
1845
|
+
}, z.core.$strip>>;
|
|
1846
|
+
}, z.core.$strip>;
|
|
1847
|
+
/**
|
|
1848
|
+
* `GET /projects/visibility-setting` — the module setting `projects.visibility`
|
|
1849
|
+
* as it stands, so a screen can say what *Follow the module setting* means.
|
|
1850
|
+
*/
|
|
1851
|
+
export declare const ProjectVisibilitySettingSchema: z.ZodObject<{
|
|
1852
|
+
setting: z.ZodEnum<{
|
|
1853
|
+
everyone: "everyone";
|
|
1854
|
+
members: "members";
|
|
1855
|
+
}>;
|
|
1856
|
+
}, z.core.$strip>;
|
|
1857
|
+
export type ProjectVisibilitySettingInfo = z.infer<typeof ProjectVisibilitySettingSchema>;
|
|
1858
|
+
export declare const ProjectVisibilitySettingResponseSchema: z.ZodObject<{
|
|
1859
|
+
data: z.ZodObject<{
|
|
1860
|
+
setting: z.ZodEnum<{
|
|
1861
|
+
everyone: "everyone";
|
|
1862
|
+
members: "members";
|
|
1863
|
+
}>;
|
|
1864
|
+
}, z.core.$strip>;
|
|
1865
|
+
}, z.core.$strip>;
|
|
1866
|
+
export declare const ProjectRoleResponseSchema: z.ZodObject<{
|
|
1867
|
+
data: z.ZodObject<{
|
|
1868
|
+
id: z.ZodString;
|
|
1869
|
+
code: z.ZodString;
|
|
1870
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1871
|
+
defaultName: z.ZodString;
|
|
1872
|
+
label: z.ZodString;
|
|
1873
|
+
isSystem: z.ZodBoolean;
|
|
1874
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1875
|
+
position: z.ZodNumber;
|
|
1876
|
+
}, z.core.$strip>;
|
|
1877
|
+
}, z.core.$strip>;
|
|
1878
|
+
export declare const ProjectRoleListResponseSchema: z.ZodObject<{
|
|
1879
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1880
|
+
id: z.ZodString;
|
|
1881
|
+
code: z.ZodString;
|
|
1882
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1883
|
+
defaultName: z.ZodString;
|
|
1884
|
+
label: z.ZodString;
|
|
1885
|
+
isSystem: z.ZodBoolean;
|
|
1886
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1887
|
+
position: z.ZodNumber;
|
|
1888
|
+
}, z.core.$strip>>;
|
|
1889
|
+
}, z.core.$strip>;
|
|
1890
|
+
export declare const ProjectLossReasonResponseSchema: z.ZodObject<{
|
|
1891
|
+
data: z.ZodObject<{
|
|
1892
|
+
id: z.ZodString;
|
|
1893
|
+
code: z.ZodString;
|
|
1894
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1895
|
+
defaultName: z.ZodString;
|
|
1896
|
+
label: z.ZodString;
|
|
1897
|
+
isSystem: z.ZodBoolean;
|
|
1898
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1899
|
+
position: z.ZodNumber;
|
|
1900
|
+
}, z.core.$strip>;
|
|
1901
|
+
}, z.core.$strip>;
|
|
1902
|
+
export declare const ProjectLossReasonListResponseSchema: z.ZodObject<{
|
|
1903
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1904
|
+
id: z.ZodString;
|
|
1905
|
+
code: z.ZodString;
|
|
1906
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1907
|
+
defaultName: z.ZodString;
|
|
1908
|
+
label: z.ZodString;
|
|
1909
|
+
isSystem: z.ZodBoolean;
|
|
1910
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1911
|
+
position: z.ZodNumber;
|
|
1912
|
+
}, z.core.$strip>>;
|
|
1913
|
+
}, z.core.$strip>;
|
|
1914
|
+
export declare const ProjectTemplateListResponseSchema: z.ZodObject<{
|
|
1915
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1916
|
+
id: z.ZodString;
|
|
1917
|
+
name: z.ZodString;
|
|
1918
|
+
stageCount: z.ZodNumber;
|
|
1919
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1920
|
+
updatedAt: z.ZodString;
|
|
1921
|
+
}, z.core.$strip>>;
|
|
1922
|
+
}, z.core.$strip>;
|
|
1923
|
+
export declare const ProjectTemplateResponseSchema: z.ZodObject<{
|
|
1924
|
+
data: z.ZodObject<{
|
|
1925
|
+
id: z.ZodString;
|
|
1926
|
+
name: z.ZodString;
|
|
1927
|
+
description: z.ZodString;
|
|
1928
|
+
roleIds: z.ZodArray<z.ZodString>;
|
|
1929
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
1930
|
+
id: z.ZodString;
|
|
1931
|
+
name: z.ZodString;
|
|
1932
|
+
color: z.ZodString;
|
|
1933
|
+
position: z.ZodNumber;
|
|
1934
|
+
plannedDurationDays: z.ZodNumber;
|
|
1935
|
+
responsibleRoleIds: z.ZodArray<z.ZodString>;
|
|
1936
|
+
alertOffsetsDays: z.ZodArray<z.ZodNumber>;
|
|
1937
|
+
completionGate: z.ZodBoolean;
|
|
1938
|
+
completionPermitted: z.ZodBoolean;
|
|
1939
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
1940
|
+
title: z.ZodString;
|
|
1941
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1942
|
+
responsibleRoleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1943
|
+
dueOffsetDays: z.ZodNumber;
|
|
1944
|
+
id: z.ZodString;
|
|
1945
|
+
position: z.ZodNumber;
|
|
1946
|
+
}, z.core.$strict>>;
|
|
1947
|
+
}, z.core.$strip>>;
|
|
1948
|
+
moves: z.ZodArray<z.ZodObject<{
|
|
1949
|
+
fromStageId: z.ZodString;
|
|
1950
|
+
toStageId: z.ZodString;
|
|
1951
|
+
}, z.core.$strip>>;
|
|
1952
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
1953
|
+
createdAt: z.ZodString;
|
|
1954
|
+
updatedAt: z.ZodString;
|
|
1955
|
+
}, z.core.$strip>;
|
|
1956
|
+
}, z.core.$strip>;
|
|
1957
|
+
/** An amount in one currency; money figures are per currency, never summed across. */
|
|
1958
|
+
export declare const ProjectCurrencyAmountSchema: z.ZodObject<{
|
|
1959
|
+
currency: z.ZodString;
|
|
1960
|
+
amount: z.ZodString;
|
|
1961
|
+
}, z.core.$strip>;
|
|
1962
|
+
export type ProjectCurrencyAmount = z.infer<typeof ProjectCurrencyAmountSchema>;
|
|
1963
|
+
/**
|
|
1964
|
+
* Every figure states the period it covers, how many Projects it was computed
|
|
1965
|
+
* from and how many it left out for a missing value (FR-038).
|
|
1966
|
+
*/
|
|
1967
|
+
export declare function projectAnalyticsEnvelope<T extends z.ZodTypeAny>(data: T): z.ZodObject<{
|
|
1968
|
+
from: z.ZodString;
|
|
1969
|
+
to: z.ZodString;
|
|
1970
|
+
projectCount: z.ZodNumber;
|
|
1971
|
+
excluded: z.ZodObject<{
|
|
1972
|
+
noValue: z.ZodNumber;
|
|
1973
|
+
}, z.core.$strip>;
|
|
1974
|
+
data: T;
|
|
1975
|
+
}, z.core.$strip>;
|
|
1976
|
+
export declare const ProjectAnalyticsSummarySchema: z.ZodObject<{
|
|
1977
|
+
opened: z.ZodNumber;
|
|
1978
|
+
completed: z.ZodNumber;
|
|
1979
|
+
lost: z.ZodNumber;
|
|
1980
|
+
completionRate: z.ZodNullable<z.ZodNumber>;
|
|
1981
|
+
}, z.core.$strip>;
|
|
1982
|
+
export declare const ProjectAnalyticsDurationsSchema: z.ZodObject<{
|
|
1983
|
+
completedAverageDays: z.ZodNullable<z.ZodNumber>;
|
|
1984
|
+
completedCount: z.ZodNumber;
|
|
1985
|
+
lostAverageDays: z.ZodNullable<z.ZodNumber>;
|
|
1986
|
+
lostCount: z.ZodNumber;
|
|
1987
|
+
}, z.core.$strip>;
|
|
1988
|
+
/** Grouped by Stage **name** (`lower(trim(name))`), as Stages are per Project (R-15). */
|
|
1989
|
+
export declare const ProjectAnalyticsTimeInStageSchema: z.ZodArray<z.ZodObject<{
|
|
1990
|
+
stageName: z.ZodString;
|
|
1991
|
+
averageDays: z.ZodNullable<z.ZodNumber>;
|
|
1992
|
+
sampleCount: z.ZodNumber;
|
|
1993
|
+
}, z.core.$strip>>;
|
|
1994
|
+
export declare const ProjectAnalyticsLossesSchema: z.ZodObject<{
|
|
1995
|
+
byStage: z.ZodArray<z.ZodObject<{
|
|
1996
|
+
stageName: z.ZodString;
|
|
1997
|
+
count: z.ZodNumber;
|
|
1998
|
+
share: z.ZodNumber;
|
|
1999
|
+
}, z.core.$strip>>;
|
|
2000
|
+
byReason: z.ZodArray<z.ZodObject<{
|
|
2001
|
+
lossReasonId: z.ZodString;
|
|
2002
|
+
code: z.ZodString;
|
|
2003
|
+
name: z.ZodString;
|
|
2004
|
+
count: z.ZodNumber;
|
|
2005
|
+
share: z.ZodNumber;
|
|
2006
|
+
}, z.core.$strip>>;
|
|
2007
|
+
lostValue: z.ZodArray<z.ZodObject<{
|
|
2008
|
+
currency: z.ZodString;
|
|
2009
|
+
amount: z.ZodString;
|
|
2010
|
+
}, z.core.$strip>>;
|
|
2011
|
+
}, z.core.$strip>;
|
|
2012
|
+
export declare const ProjectAnalyticsValueSchema: z.ZodObject<{
|
|
2013
|
+
average: z.ZodArray<z.ZodObject<{
|
|
2014
|
+
currency: z.ZodString;
|
|
2015
|
+
amount: z.ZodString;
|
|
2016
|
+
count: z.ZodNumber;
|
|
2017
|
+
}, z.core.$strip>>;
|
|
2018
|
+
}, z.core.$strip>;
|
|
2019
|
+
export declare const ProjectAnalyticsTopOpenSchema: z.ZodArray<z.ZodObject<{
|
|
2020
|
+
id: z.ZodString;
|
|
2021
|
+
number: z.ZodString;
|
|
2022
|
+
title: z.ZodString;
|
|
2023
|
+
state: z.ZodEnum<{
|
|
2024
|
+
completed: "completed";
|
|
2025
|
+
open: "open";
|
|
2026
|
+
lost: "lost";
|
|
2027
|
+
}>;
|
|
2028
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
2029
|
+
id: z.ZodString;
|
|
2030
|
+
name: z.ZodString;
|
|
2031
|
+
color: z.ZodString;
|
|
2032
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
2033
|
+
overdue: z.ZodBoolean;
|
|
2034
|
+
}, z.core.$strip>>;
|
|
2035
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
2036
|
+
id: z.ZodString;
|
|
2037
|
+
name: z.ZodString;
|
|
2038
|
+
}, z.core.$strip>>;
|
|
2039
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
2040
|
+
amount: z.ZodString;
|
|
2041
|
+
currency: z.ZodString;
|
|
2042
|
+
}, z.core.$strict>>;
|
|
2043
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
2044
|
+
id: z.ZodString;
|
|
2045
|
+
name: z.ZodString;
|
|
2046
|
+
}, z.core.$strip>>;
|
|
2047
|
+
createdAt: z.ZodString;
|
|
2048
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
2049
|
+
}, z.core.$strip>>;
|
|
2050
|
+
export declare const ProjectAnalyticsManagersSchema: z.ZodArray<z.ZodObject<{
|
|
2051
|
+
adminUser: z.ZodObject<{
|
|
2052
|
+
id: z.ZodString;
|
|
2053
|
+
name: z.ZodString;
|
|
2054
|
+
}, z.core.$strip>;
|
|
2055
|
+
completedCount: z.ZodNumber;
|
|
2056
|
+
}, z.core.$strip>>;
|
|
2057
|
+
export declare const ProjectAnalyticsSummaryResponseSchema: z.ZodObject<{
|
|
2058
|
+
from: z.ZodString;
|
|
2059
|
+
to: z.ZodString;
|
|
2060
|
+
projectCount: z.ZodNumber;
|
|
2061
|
+
excluded: z.ZodObject<{
|
|
2062
|
+
noValue: z.ZodNumber;
|
|
2063
|
+
}, z.core.$strip>;
|
|
2064
|
+
data: z.ZodObject<{
|
|
2065
|
+
opened: z.ZodNumber;
|
|
2066
|
+
completed: z.ZodNumber;
|
|
2067
|
+
lost: z.ZodNumber;
|
|
2068
|
+
completionRate: z.ZodNullable<z.ZodNumber>;
|
|
2069
|
+
}, z.core.$strip>;
|
|
2070
|
+
}, z.core.$strip>;
|
|
2071
|
+
export declare const ProjectAnalyticsDurationsResponseSchema: z.ZodObject<{
|
|
2072
|
+
from: z.ZodString;
|
|
2073
|
+
to: z.ZodString;
|
|
2074
|
+
projectCount: z.ZodNumber;
|
|
2075
|
+
excluded: z.ZodObject<{
|
|
2076
|
+
noValue: z.ZodNumber;
|
|
2077
|
+
}, z.core.$strip>;
|
|
2078
|
+
data: z.ZodObject<{
|
|
2079
|
+
completedAverageDays: z.ZodNullable<z.ZodNumber>;
|
|
2080
|
+
completedCount: z.ZodNumber;
|
|
2081
|
+
lostAverageDays: z.ZodNullable<z.ZodNumber>;
|
|
2082
|
+
lostCount: z.ZodNumber;
|
|
2083
|
+
}, z.core.$strip>;
|
|
2084
|
+
}, z.core.$strip>;
|
|
2085
|
+
export declare const ProjectAnalyticsTimeInStageResponseSchema: z.ZodObject<{
|
|
2086
|
+
from: z.ZodString;
|
|
2087
|
+
to: z.ZodString;
|
|
2088
|
+
projectCount: z.ZodNumber;
|
|
2089
|
+
excluded: z.ZodObject<{
|
|
2090
|
+
noValue: z.ZodNumber;
|
|
2091
|
+
}, z.core.$strip>;
|
|
2092
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2093
|
+
stageName: z.ZodString;
|
|
2094
|
+
averageDays: z.ZodNullable<z.ZodNumber>;
|
|
2095
|
+
sampleCount: z.ZodNumber;
|
|
2096
|
+
}, z.core.$strip>>;
|
|
2097
|
+
}, z.core.$strip>;
|
|
2098
|
+
export declare const ProjectAnalyticsLossesResponseSchema: z.ZodObject<{
|
|
2099
|
+
from: z.ZodString;
|
|
2100
|
+
to: z.ZodString;
|
|
2101
|
+
projectCount: z.ZodNumber;
|
|
2102
|
+
excluded: z.ZodObject<{
|
|
2103
|
+
noValue: z.ZodNumber;
|
|
2104
|
+
}, z.core.$strip>;
|
|
2105
|
+
data: z.ZodObject<{
|
|
2106
|
+
byStage: z.ZodArray<z.ZodObject<{
|
|
2107
|
+
stageName: z.ZodString;
|
|
2108
|
+
count: z.ZodNumber;
|
|
2109
|
+
share: z.ZodNumber;
|
|
2110
|
+
}, z.core.$strip>>;
|
|
2111
|
+
byReason: z.ZodArray<z.ZodObject<{
|
|
2112
|
+
lossReasonId: z.ZodString;
|
|
2113
|
+
code: z.ZodString;
|
|
2114
|
+
name: z.ZodString;
|
|
2115
|
+
count: z.ZodNumber;
|
|
2116
|
+
share: z.ZodNumber;
|
|
2117
|
+
}, z.core.$strip>>;
|
|
2118
|
+
lostValue: z.ZodArray<z.ZodObject<{
|
|
2119
|
+
currency: z.ZodString;
|
|
2120
|
+
amount: z.ZodString;
|
|
2121
|
+
}, z.core.$strip>>;
|
|
2122
|
+
}, z.core.$strip>;
|
|
2123
|
+
}, z.core.$strip>;
|
|
2124
|
+
export declare const ProjectAnalyticsValueResponseSchema: z.ZodObject<{
|
|
2125
|
+
from: z.ZodString;
|
|
2126
|
+
to: z.ZodString;
|
|
2127
|
+
projectCount: z.ZodNumber;
|
|
2128
|
+
excluded: z.ZodObject<{
|
|
2129
|
+
noValue: z.ZodNumber;
|
|
2130
|
+
}, z.core.$strip>;
|
|
2131
|
+
data: z.ZodObject<{
|
|
2132
|
+
average: z.ZodArray<z.ZodObject<{
|
|
2133
|
+
currency: z.ZodString;
|
|
2134
|
+
amount: z.ZodString;
|
|
2135
|
+
count: z.ZodNumber;
|
|
2136
|
+
}, z.core.$strip>>;
|
|
2137
|
+
}, z.core.$strip>;
|
|
2138
|
+
}, z.core.$strip>;
|
|
2139
|
+
export declare const ProjectAnalyticsTopOpenResponseSchema: z.ZodObject<{
|
|
2140
|
+
from: z.ZodString;
|
|
2141
|
+
to: z.ZodString;
|
|
2142
|
+
projectCount: z.ZodNumber;
|
|
2143
|
+
excluded: z.ZodObject<{
|
|
2144
|
+
noValue: z.ZodNumber;
|
|
2145
|
+
}, z.core.$strip>;
|
|
2146
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2147
|
+
id: z.ZodString;
|
|
2148
|
+
number: z.ZodString;
|
|
2149
|
+
title: z.ZodString;
|
|
2150
|
+
state: z.ZodEnum<{
|
|
2151
|
+
completed: "completed";
|
|
2152
|
+
open: "open";
|
|
2153
|
+
lost: "lost";
|
|
2154
|
+
}>;
|
|
2155
|
+
currentStage: z.ZodNullable<z.ZodObject<{
|
|
2156
|
+
id: z.ZodString;
|
|
2157
|
+
name: z.ZodString;
|
|
2158
|
+
color: z.ZodString;
|
|
2159
|
+
deadlineOn: z.ZodNullable<z.ZodString>;
|
|
2160
|
+
overdue: z.ZodBoolean;
|
|
2161
|
+
}, z.core.$strip>>;
|
|
2162
|
+
organizations: z.ZodArray<z.ZodObject<{
|
|
2163
|
+
id: z.ZodString;
|
|
2164
|
+
name: z.ZodString;
|
|
2165
|
+
}, z.core.$strip>>;
|
|
2166
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
2167
|
+
amount: z.ZodString;
|
|
2168
|
+
currency: z.ZodString;
|
|
2169
|
+
}, z.core.$strict>>;
|
|
2170
|
+
projectManagers: z.ZodArray<z.ZodObject<{
|
|
2171
|
+
id: z.ZodString;
|
|
2172
|
+
name: z.ZodString;
|
|
2173
|
+
}, z.core.$strip>>;
|
|
2174
|
+
createdAt: z.ZodString;
|
|
2175
|
+
closedAt: z.ZodNullable<z.ZodString>;
|
|
2176
|
+
}, z.core.$strip>>;
|
|
2177
|
+
}, z.core.$strip>;
|
|
2178
|
+
export declare const ProjectAnalyticsManagersResponseSchema: z.ZodObject<{
|
|
2179
|
+
from: z.ZodString;
|
|
2180
|
+
to: z.ZodString;
|
|
2181
|
+
projectCount: z.ZodNumber;
|
|
2182
|
+
excluded: z.ZodObject<{
|
|
2183
|
+
noValue: z.ZodNumber;
|
|
2184
|
+
}, z.core.$strip>;
|
|
2185
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2186
|
+
adminUser: z.ZodObject<{
|
|
2187
|
+
id: z.ZodString;
|
|
2188
|
+
name: z.ZodString;
|
|
2189
|
+
}, z.core.$strip>;
|
|
2190
|
+
completedCount: z.ZodNumber;
|
|
2191
|
+
}, z.core.$strip>>;
|
|
2192
|
+
}, z.core.$strip>;
|
|
2193
|
+
/**
|
|
2194
|
+
* The codes the Projects API raises. Each joins the platform's `ERROR_CODES`,
|
|
2195
|
+
* the `projects` manifest's `errorCodes` and the module's `errors.<CODE>`
|
|
2196
|
+
* sentences in the change that adds its first raise site —
|
|
2197
|
+
* `check:error-translations` refuses a code enumerated before a manifest
|
|
2198
|
+
* declares it.
|
|
2199
|
+
*/
|
|
2200
|
+
export declare const PROJECTS_ERROR_CODES: readonly ["PROJECT_NOT_FOUND", "PROJECT_HAS_LINKS", "PROJECT_ORGANIZATION_IN_USE", "PROJECT_ORGANIZATION_OUT_OF_SCOPE", "PROJECT_STAGE_CURRENT", "PROJECT_STAGE_HAS_TASKS", "PROJECT_STAGE_LAST", "PROJECT_MOVE_NOT_PERMITTED", "PROJECT_STAGE_GATE_OPEN_TASKS", "PROJECT_CHANGED", "PROJECT_GUARD_REFUSED", "PROJECT_COMPLETION_NOT_PERMITTED", "PROJECT_RECORD_NOT_FOUND", "PROJECT_RECORD_ALREADY_LINKED", "PROJECT_LINK_ORGANIZATION_MISMATCH", "PROJECT_NOTE_NOT_AUTHOR", "PROJECT_MESSAGE_IMMUTABLE", "PROJECT_STAGE_TASKS_NOT_RETRYABLE", "PROJECT_LOSS_REASON_INVALID", "PROJECT_MEMBER_INVALID", "PROJECT_TEMPLATE_NOT_FOUND", "PROJECT_DICTIONARY_ENTRY_NOT_FOUND", "PROJECT_DICTIONARY_ENTRY_SYSTEM", "PROJECT_DICTIONARY_ENTRY_IN_USE", "PROJECT_DICTIONARY_NAME_TAKEN", "PROJECT_ATTACHMENT_TOO_LARGE"];
|
|
2201
|
+
export type ProjectsErrorCode = (typeof PROJECTS_ERROR_CODES)[number];
|
|
2202
|
+
/**
|
|
2203
|
+
* `details` of 409 `PROJECT_STAGE_GATE_OPEN_TASKS`: how many Tasks of the Stage
|
|
2204
|
+
* are open, and — only to a caller who holds `tasks:read` — which ones. A move
|
|
2205
|
+
* needs `projects:write` alone, so a Task's number and title are not the
|
|
2206
|
+
* refusal's to hand to somebody who may not read Tasks.
|
|
2207
|
+
*/
|
|
2208
|
+
export declare const ProjectStageGateOpenTasksDetailsSchema: z.ZodObject<{
|
|
2209
|
+
openTaskCount: z.ZodNumber;
|
|
2210
|
+
openTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2211
|
+
id: z.ZodString;
|
|
2212
|
+
number: z.ZodString;
|
|
2213
|
+
title: z.ZodString;
|
|
2214
|
+
}, z.core.$strip>>>;
|
|
2215
|
+
}, z.core.$strip>;
|
|
2216
|
+
export type ProjectStageGateOpenTasksDetails = z.infer<typeof ProjectStageGateOpenTasksDetailsSchema>;
|
|
2217
|
+
interface ProjectsEventEnvelope {
|
|
2218
|
+
eventId: string;
|
|
2219
|
+
occurredAt: string;
|
|
2220
|
+
}
|
|
2221
|
+
export declare const PROJECTS_EVENTS: {
|
|
2222
|
+
readonly PROJECT_CREATED: "projects.project.created.v1";
|
|
2223
|
+
readonly STAGE_MOVED: "projects.stage.moved.v1";
|
|
2224
|
+
readonly PROJECT_CLOSED: "projects.project.closed.v1";
|
|
2225
|
+
readonly PROJECT_REOPENED: "projects.project.reopened.v1";
|
|
2226
|
+
readonly RECORD_LINKED: "projects.record.linked.v1";
|
|
2227
|
+
readonly RECORD_UNLINKED: "projects.record.unlinked.v1";
|
|
2228
|
+
};
|
|
2229
|
+
/** Payload of `projects.project.created.v1`. */
|
|
2230
|
+
export interface ProjectCreatedEvent extends ProjectsEventEnvelope {
|
|
2231
|
+
projectId: string;
|
|
2232
|
+
templateId: string | null;
|
|
2233
|
+
}
|
|
2234
|
+
/** Payload of `projects.stage.moved.v1` — names as they were at the move. */
|
|
2235
|
+
export interface ProjectStageMovedEvent extends ProjectsEventEnvelope {
|
|
2236
|
+
projectId: string;
|
|
2237
|
+
fromStageId: string | null;
|
|
2238
|
+
toStageId: string;
|
|
2239
|
+
fromStageName: string | null;
|
|
2240
|
+
toStageName: string;
|
|
2241
|
+
}
|
|
2242
|
+
/** Payload of `projects.project.closed.v1`. */
|
|
2243
|
+
export interface ProjectClosedEvent extends ProjectsEventEnvelope {
|
|
2244
|
+
projectId: string;
|
|
2245
|
+
outcome: ProjectOutcome;
|
|
2246
|
+
/** The Stage the Project was closed in. */
|
|
2247
|
+
stageId: string;
|
|
2248
|
+
/** The loss reason's code, when lost. */
|
|
2249
|
+
lossReasonCode?: string;
|
|
2250
|
+
}
|
|
2251
|
+
/** Payload of `projects.project.reopened.v1`. */
|
|
2252
|
+
export interface ProjectReopenedEvent extends ProjectsEventEnvelope {
|
|
2253
|
+
projectId: string;
|
|
2254
|
+
stageId: string;
|
|
2255
|
+
}
|
|
2256
|
+
/** Payload of `projects.record.linked.v1` and `projects.record.unlinked.v1`. */
|
|
2257
|
+
export interface ProjectRecordLinkEvent extends ProjectsEventEnvelope {
|
|
2258
|
+
projectId: string;
|
|
2259
|
+
recordKind: ProjectRecordKind;
|
|
2260
|
+
recordId: string;
|
|
2261
|
+
}
|
|
2262
|
+
/** A Project as it crosses a module boundary — a plain shape, never the entity. */
|
|
2263
|
+
export interface ProjectRecord {
|
|
2264
|
+
id: string;
|
|
2265
|
+
number: string;
|
|
2266
|
+
title: string;
|
|
2267
|
+
state: ProjectState;
|
|
2268
|
+
currentStageId: string | null;
|
|
2269
|
+
currentStageName: string | null;
|
|
2270
|
+
organizationIds: string[];
|
|
2271
|
+
valueAmount: string | null;
|
|
2272
|
+
valueCurrency: string | null;
|
|
2273
|
+
templateId: string | null;
|
|
2274
|
+
closedAt: Date | null;
|
|
2275
|
+
createdAt: Date;
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* Container name: `projectReadPort`. Owner: `projects`.
|
|
2279
|
+
*
|
|
2280
|
+
* Reading Projects from another module — overlays and later modules.
|
|
2281
|
+
*
|
|
2282
|
+
* Every read goes through the module's access seam: a Project out of the
|
|
2283
|
+
* caller's Organization reach or visibility is `null`, as one that does not
|
|
2284
|
+
* exist is.
|
|
2285
|
+
*
|
|
2286
|
+
* **Owner off:** the seam fails closed — resolving this port throws
|
|
2287
|
+
* `ModuleDisabledError` and the call answers 503 `MODULE_DISABLED`.
|
|
2288
|
+
*/
|
|
2289
|
+
export interface ProjectReadPort {
|
|
2290
|
+
findById(id: string): Promise<ProjectRecord | null>;
|
|
2291
|
+
findByRecord(kind: ProjectRecordKind, id: string): Promise<ProjectRecord | null>;
|
|
2292
|
+
/**
|
|
2293
|
+
* The Projects of `ids` the caller may see, in no particular order — a
|
|
2294
|
+
* hidden, missing or malformed id is simply absent. One query for a page of
|
|
2295
|
+
* references (`specs/165-task-management/` R-5).
|
|
2296
|
+
*/
|
|
2297
|
+
findByIds(ids: readonly string[]): Promise<ProjectRecord[]>;
|
|
2298
|
+
/**
|
|
2299
|
+
* Projects the caller may see whose number or title contains `q`
|
|
2300
|
+
* (case-insensitively; every visible one for an empty `q`), newest first, at
|
|
2301
|
+
* most `limit` (≤ 20) — the Projects group of the `@@` list (R-5).
|
|
2302
|
+
*/
|
|
2303
|
+
search(query: ProjectSearchQuery): Promise<ProjectRecord[]>;
|
|
2304
|
+
}
|
|
2305
|
+
/** What `ProjectReadPort.search` is asked. */
|
|
2306
|
+
export interface ProjectSearchQuery {
|
|
2307
|
+
q?: string;
|
|
2308
|
+
/** At most {@link PROJECT_READ_PORT_SEARCH_MAX}. */
|
|
2309
|
+
limit: number;
|
|
2310
|
+
}
|
|
2311
|
+
/** The most Projects one `ProjectReadPort.search` answers. */
|
|
2312
|
+
export declare const PROJECT_READ_PORT_SEARCH_MAX = 20;
|
|
2313
|
+
export type ProjectStageGuardKind = 'move' | 'close_completed' | 'close_lost' | 'reopen';
|
|
2314
|
+
/** What a guard is asked about. `toStageId` is `null` for a close. */
|
|
2315
|
+
export interface ProjectStageGuardContext {
|
|
2316
|
+
projectId: string;
|
|
2317
|
+
fromStageId: string | null;
|
|
2318
|
+
toStageId: string | null;
|
|
2319
|
+
kind: ProjectStageGuardKind;
|
|
2320
|
+
}
|
|
2321
|
+
export type ProjectStageGuardDecision = {
|
|
2322
|
+
allow: true;
|
|
2323
|
+
} | {
|
|
2324
|
+
allow: false;
|
|
2325
|
+
reason: string;
|
|
2326
|
+
};
|
|
2327
|
+
export interface ProjectStageGuard {
|
|
2328
|
+
/** The contributing module — required; an absent owner's guard is skipped. */
|
|
2329
|
+
readonly ownerModuleId: string;
|
|
2330
|
+
before(ctx: ProjectStageGuardContext): Promise<ProjectStageGuardDecision>;
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* Container name: `projectStageGuardRegistry`. Owner: `projects`.
|
|
2334
|
+
*
|
|
2335
|
+
* The registry a module pushes a {@link ProjectStageGuard} into (R-6, FR-014) —
|
|
2336
|
+
* the "before" side of a move; the "after" side is the events above.
|
|
2337
|
+
*
|
|
2338
|
+
* A **contribution seam**: registered ungated (a plain `ctx.di.register`),
|
|
2339
|
+
* pushed into from a contribution-only boot hook, declared by the contributor
|
|
2340
|
+
* as a `contributes-to` edge.
|
|
2341
|
+
*
|
|
2342
|
+
* **Enumeration policy: skipped while the contributing module is absent** — a
|
|
2343
|
+
* switched-off module does not veto. A refusal answers 409
|
|
2344
|
+
* `PROJECT_GUARD_REFUSED` with the guard's reason.
|
|
2345
|
+
*
|
|
2346
|
+
* **Owner off:** no Project moves, so no guard runs; registering stays
|
|
2347
|
+
* possible, so a contributor's boot hook never depends on `projects` being on.
|
|
2348
|
+
*/
|
|
2349
|
+
export interface ProjectStageGuardRegistryPort {
|
|
2350
|
+
register(guard: ProjectStageGuard): void;
|
|
2351
|
+
/** Contributing modules, in registration order — for diagnostics and composition tests. */
|
|
2352
|
+
owners(): readonly string[];
|
|
2353
|
+
}
|
|
2354
|
+
export {};
|
|
2355
|
+
//# sourceMappingURL=projects.d.ts.map
|