@businessdash/sdk 0.9.81 → 0.9.90
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/README.md +115 -902
- package/assets/{biab-sw.js → bd-sw.js} +2 -2
- package/dist/account-core/index.d.ts +1 -1
- package/dist/account-core/index.d.ts.map +1 -1
- package/dist/adapters-revalidate.d.ts +2 -2
- package/dist/adapters-revalidate.js +2 -2
- package/dist/adapters-revalidate.js.map +1 -1
- package/dist/analytics-core.d.ts +6 -6
- package/dist/analytics-core.d.ts.map +1 -1
- package/dist/analytics-core.js +4 -4
- package/dist/analytics-core.js.map +1 -1
- package/dist/analytics-server.d.ts +6 -6
- package/dist/analytics-server.d.ts.map +1 -1
- package/dist/analytics-server.js +5 -5
- package/dist/auth-handler.d.ts +14 -14
- package/dist/auth-handler.d.ts.map +1 -1
- package/dist/auth-handler.js +16 -16
- package/dist/auth-handler.js.map +1 -1
- package/dist/auth-links.d.ts +2 -2
- package/dist/auth-links.d.ts.map +1 -1
- package/dist/auth-links.js +2 -2
- package/dist/auth-links.js.map +1 -1
- package/dist/{biab-forms.css → bd-forms.css} +158 -158
- package/dist/cli.d.ts +4 -4
- package/dist/cli.js +78 -78
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +158 -147
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +156 -137
- package/dist/client.js.map +1 -1
- package/dist/consent-core/index.cjs +2 -2
- package/dist/consent-core/index.d.ts +2 -2
- package/dist/consent-core/index.d.ts.map +1 -1
- package/dist/consent-core/index.js +10 -8
- package/dist/consent-core/index.js.map +1 -1
- package/dist/contracts.d.ts +411 -52
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +89 -15
- package/dist/contracts.js.map +1 -1
- package/dist/data-model-schema.d.ts +15 -15
- package/dist/data-model-schema.d.ts.map +1 -1
- package/dist/data-model-schema.js +19 -17
- package/dist/data-model-schema.js.map +1 -1
- package/dist/distribution.d.ts +5 -5
- package/dist/distribution.d.ts.map +1 -1
- package/dist/distribution.js +4 -4
- package/dist/element.d.ts +36 -36
- package/dist/element.d.ts.map +1 -1
- package/dist/element.js +43 -43
- package/dist/element.js.map +1 -1
- package/dist/embed-protocol.d.ts +11 -11
- package/dist/embed-protocol.d.ts.map +1 -1
- package/dist/embed-protocol.js +1 -1
- package/dist/embed-protocol.js.map +1 -1
- package/dist/errors.d.ts +15 -15
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +18 -18
- package/dist/errors.js.map +1 -1
- package/dist/forms-core/autocomplete.d.ts +3 -3
- package/dist/forms-core/autocomplete.d.ts.map +1 -1
- package/dist/forms-core/autocomplete.js +2 -2
- package/dist/forms-core/controller.d.ts +10 -10
- package/dist/forms-core/controller.d.ts.map +1 -1
- package/dist/forms-core/controller.js +4 -4
- package/dist/forms-core/controller.js.map +1 -1
- package/dist/forms-core/elements.d.ts +4 -4
- package/dist/forms-core/elements.d.ts.map +1 -1
- package/dist/forms-core/elements.js +7 -7
- package/dist/forms-core/elements.js.map +1 -1
- package/dist/forms-core/formula.d.ts +1 -1
- package/dist/forms-core/formula.js +1 -1
- package/dist/forms-core/index.d.ts +6 -6
- package/dist/forms-core/index.d.ts.map +1 -1
- package/dist/forms-core/index.js +5 -5
- package/dist/forms-core/index.js.map +1 -1
- package/dist/forms-core/units.d.ts +1 -1
- package/dist/forms-core/units.js +1 -1
- package/dist/forms-core/us-states.d.ts +1 -1
- package/dist/forms-core/us-states.js +1 -1
- package/dist/forms-core/validation.d.ts +12 -3
- package/dist/forms-core/validation.d.ts.map +1 -1
- package/dist/forms-core/validation.js +152 -17
- package/dist/forms-core/validation.js.map +1 -1
- package/dist/forms.d.ts +2 -2
- package/dist/forms.d.ts.map +1 -1
- package/dist/forms.js +2 -2
- package/dist/forms.js.map +1 -1
- package/dist/framework-support.js +1 -1
- package/dist/framework-support.js.map +1 -1
- package/dist/gallery-types.d.ts +1 -1
- package/dist/graphql.d.ts +3 -3
- package/dist/graphql.d.ts.map +1 -1
- package/dist/graphql.js +3 -3
- package/dist/graphql.js.map +1 -1
- package/dist/index.cjs +350 -273
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/legal-core/index.cjs +8 -8
- package/dist/legal-core/index.d.ts +3 -3
- package/dist/legal-core/index.d.ts.map +1 -1
- package/dist/legal-core/index.js +11 -11
- package/dist/legal-core/index.js.map +1 -1
- package/dist/marketing-core/index.d.ts +51 -1
- package/dist/marketing-core/index.d.ts.map +1 -1
- package/dist/marketing-core/index.js +35 -0
- package/dist/marketing-core/index.js.map +1 -1
- package/dist/marketing-schema.d.ts +9 -9
- package/dist/marketing-schema.d.ts.map +1 -1
- package/dist/marketing-schema.js +1 -1
- package/dist/mcp.d.ts +4 -4
- package/dist/mcp.js +4 -4
- package/dist/native.d.ts +6 -6
- package/dist/native.d.ts.map +1 -1
- package/dist/native.js +4 -4
- package/dist/native.js.map +1 -1
- package/dist/next-revalidate.d.ts +8 -8
- package/dist/next-revalidate.d.ts.map +1 -1
- package/dist/next-revalidate.js +7 -7
- package/dist/next-revalidate.js.map +1 -1
- package/dist/notifications-core/index.d.ts +1 -1
- package/dist/notifications-core/index.js +1 -1
- package/dist/parallel-pages.d.ts +4 -4
- package/dist/parallel-pages.d.ts.map +1 -1
- package/dist/parallel-pages.js +5 -5
- package/dist/parallel-pages.js.map +1 -1
- package/dist/portal-core/index.d.ts +1 -1
- package/dist/portal-core/index.js +1 -1
- package/dist/proxy.d.ts +18 -18
- package/dist/proxy.d.ts.map +1 -1
- package/dist/proxy.js +10 -10
- package/dist/proxy.js.map +1 -1
- package/dist/push-core/index.cjs +1 -1
- package/dist/push-core/index.d.ts +1 -1
- package/dist/push-core/index.js +1 -1
- package/dist/push-core/index.js.map +1 -1
- package/dist/react-analytics.d.ts +14 -14
- package/dist/react-analytics.d.ts.map +1 -1
- package/dist/react-analytics.js +15 -15
- package/dist/react-analytics.js.map +1 -1
- package/dist/react-attribution.d.ts +2 -2
- package/dist/react-attribution.d.ts.map +1 -1
- package/dist/react-attribution.js +1 -1
- package/dist/react-marketing.js +5 -5
- package/dist/react-marketing.js.map +1 -1
- package/dist/react.d.ts +38 -61
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +247 -261
- package/dist/react.js.map +1 -1
- package/dist/reserved-paths.d.ts +2 -2
- package/dist/reserved-paths.js +3 -3
- package/dist/reserved-paths.js.map +1 -1
- package/dist/revalidate-verify.d.ts +3 -3
- package/dist/revalidate-verify.d.ts.map +1 -1
- package/dist/revalidate-verify.js +1 -1
- package/dist/revalidate-verify.js.map +1 -1
- package/dist/sdk.d.ts +49 -49
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +47 -51
- package/dist/sdk.js.map +1 -1
- package/dist/seed-core/index.js +8 -8
- package/dist/seed-core/index.js.map +1 -1
- package/dist/seo-core/blog.d.ts +1 -1
- package/dist/seo-core/blog.js +1 -1
- package/dist/seo-core/blog.js.map +1 -1
- package/dist/seo-core/index.cjs +2 -2
- package/dist/seo-core/index.js +1 -1
- package/dist/seo-core/index.js.map +1 -1
- package/dist/seo.d.ts +1 -1
- package/dist/seo.d.ts.map +1 -1
- package/dist/seo.js +1 -1
- package/dist/seo.js.map +1 -1
- package/dist/sitemap-core/index.cjs +3 -3
- package/dist/sitemap-core/index.js +2 -2
- package/dist/sitemap-core/index.js.map +1 -1
- package/dist/socials.d.ts +6 -6
- package/dist/socials.d.ts.map +1 -1
- package/dist/socials.js +5 -5
- package/dist/socials.js.map +1 -1
- package/dist/solid-compat.d.ts +1 -1
- package/dist/solid-compat.js +4 -4
- package/dist/solid-compat.js.map +1 -1
- package/dist/store-core/index.d.ts +1 -1
- package/dist/vanilla.d.ts +12 -12
- package/dist/vanilla.d.ts.map +1 -1
- package/dist/vanilla.js +192 -145
- package/dist/vanilla.js.map +1 -1
- package/openapi.json +264 -1
- package/package.json +8 -8
- package/src/account-core/index.ts +1 -1
- package/src/adapters-revalidate.ts +3 -3
- package/src/analytics-core.ts +8 -8
- package/src/analytics-server.ts +6 -6
- package/src/angular/{biab-form.component.ts → bd-form.component.ts} +269 -161
- package/src/angular/headless.ts +12 -12
- package/src/angular/index.ts +9 -9
- package/src/auth-handler.ts +22 -22
- package/src/auth-links.ts +2 -2
- package/src/cli.ts +81 -81
- package/src/client.ts +218 -193
- package/src/consent-core/index.ts +10 -8
- package/src/contracts.ts +99 -15
- package/src/data-model-schema.ts +29 -26
- package/src/distribution.ts +5 -5
- package/src/element.ts +54 -54
- package/src/embed-protocol.ts +14 -14
- package/src/errors.ts +27 -27
- package/src/forms-core/autocomplete.ts +3 -3
- package/src/forms-core/controller.ts +12 -12
- package/src/forms-core/elements.ts +7 -7
- package/src/forms-core/formula.ts +1 -1
- package/src/forms-core/index.ts +8 -8
- package/src/forms-core/units.ts +1 -1
- package/src/forms-core/us-states.ts +1 -1
- package/src/forms-core/validation.ts +158 -14
- package/src/forms.ts +2 -2
- package/src/framework-support.ts +1 -1
- package/src/gallery-types.ts +1 -1
- package/src/graphql.ts +4 -4
- package/src/index.ts +38 -38
- package/src/legal-core/index.ts +12 -12
- package/src/marketing-core/index.ts +62 -0
- package/src/marketing-schema.ts +9 -9
- package/src/mcp.ts +4 -4
- package/src/native.ts +14 -14
- package/src/next-revalidate.ts +10 -10
- package/src/notifications-core/index.ts +1 -1
- package/src/parallel-pages.ts +6 -6
- package/src/portal-core/index.ts +1 -1
- package/src/proxy.ts +28 -28
- package/src/push-core/index.ts +2 -2
- package/src/qwik.tsx +262 -166
- package/src/react-analytics.tsx +17 -17
- package/src/react-attribution.tsx +2 -2
- package/src/react-marketing.tsx +5 -5
- package/src/react.tsx +541 -500
- package/src/reserved-paths.ts +3 -3
- package/src/revalidate-verify.ts +5 -5
- package/src/sdk.ts +106 -110
- package/src/seed-core/index.ts +8 -8
- package/src/seo-core/blog.ts +2 -2
- package/src/seo-core/index.ts +1 -1
- package/src/seo.ts +1 -1
- package/src/sitemap-core/index.ts +2 -2
- package/src/socials.ts +6 -6
- package/src/solid-compat.tsx +5 -5
- package/src/solid-surfaces.tsx +28 -28
- package/src/solid.tsx +264 -175
- package/src/store-core/index.ts +1 -1
- package/src/styles/{biab-forms.css → bd-forms.css} +158 -158
- package/src/svelte/{BiabForm.svelte → BdForm.svelte} +240 -173
- package/src/svelte/context.ts +16 -16
- package/src/svelte/headless.ts +10 -10
- package/src/svelte/index.ts +16 -16
- package/src/vanilla.ts +250 -169
- package/src/vue/{BiabForm.vue → BdForm.vue} +270 -157
- package/src/vue/headless.ts +11 -11
- package/src/vue/index.ts +26 -26
package/dist/contracts.d.ts
CHANGED
|
@@ -1499,7 +1499,7 @@ export type ChatbotMessage = z.infer<typeof chatbotMessageSchema>;
|
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Per-call provider override (BYO key). When set, the turn runs against the
|
|
1501
1501
|
* SDK consumer's own LLM account — their `apiKey`, their billing — instead
|
|
1502
|
-
* of the
|
|
1502
|
+
* of the BD platform's configured provider, and the platform's monthly
|
|
1503
1503
|
* token budget is bypassed for that call.
|
|
1504
1504
|
*
|
|
1505
1505
|
* **Server-only.** Never send this from a browser: the key would be visible
|
|
@@ -3182,7 +3182,7 @@ export type ListSiteMarketingPagesResponse = z.infer<typeof listSiteMarketingPag
|
|
|
3182
3182
|
export declare const customerPortalOrgSchema: z.ZodObject<{
|
|
3183
3183
|
id: z.ZodString;
|
|
3184
3184
|
name: z.ZodNullable<z.ZodString>;
|
|
3185
|
-
/** @deprecated Internal auth-provider org id — use `id` (the
|
|
3185
|
+
/** @deprecated Internal auth-provider org id — use `id` (the BD org id).
|
|
3186
3186
|
* Kept for backwards compatibility; will be removed in a future release. */
|
|
3187
3187
|
workosOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3188
3188
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3214,7 +3214,7 @@ export declare const customerPortalContextResponseSchema: z.ZodObject<{
|
|
|
3214
3214
|
organization: z.ZodObject<{
|
|
3215
3215
|
id: z.ZodString;
|
|
3216
3216
|
name: z.ZodNullable<z.ZodString>;
|
|
3217
|
-
/** @deprecated Internal auth-provider org id — use `id` (the
|
|
3217
|
+
/** @deprecated Internal auth-provider org id — use `id` (the BD org id).
|
|
3218
3218
|
* Kept for backwards compatibility; will be removed in a future release. */
|
|
3219
3219
|
workosOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3220
3220
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3517,7 +3517,7 @@ export declare const customerPortalUpdateProfileResponseSchema: z.ZodObject<{
|
|
|
3517
3517
|
export declare const customerPortalOtherOrgSchema: z.ZodObject<{
|
|
3518
3518
|
orgId: z.ZodString;
|
|
3519
3519
|
name: z.ZodNullable<z.ZodString>;
|
|
3520
|
-
/** @deprecated Internal auth-provider org id — use `orgId` (the
|
|
3520
|
+
/** @deprecated Internal auth-provider org id — use `orgId` (the BD org id).
|
|
3521
3521
|
* Kept for backwards compatibility; will be removed in a future release. */
|
|
3522
3522
|
workosOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3523
3523
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3532,7 +3532,7 @@ export declare const customerPortalOtherOrgSchema: z.ZodObject<{
|
|
|
3532
3532
|
export declare const customerPortalOtherOrgsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
3533
3533
|
orgId: z.ZodString;
|
|
3534
3534
|
name: z.ZodNullable<z.ZodString>;
|
|
3535
|
-
/** @deprecated Internal auth-provider org id — use `orgId` (the
|
|
3535
|
+
/** @deprecated Internal auth-provider org id — use `orgId` (the BD org id).
|
|
3536
3536
|
* Kept for backwards compatibility; will be removed in a future release. */
|
|
3537
3537
|
workosOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3538
3538
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3787,6 +3787,10 @@ export declare const customerQuoteSummarySchema: z.ZodObject<{
|
|
|
3787
3787
|
totalAmount: z.ZodNumber;
|
|
3788
3788
|
validUntil: z.ZodString;
|
|
3789
3789
|
publicAcceptUrl: z.ZodNullable<z.ZodString>;
|
|
3790
|
+
/** True when the quote carries a narrative — a PROPOSAL rather than a
|
|
3791
|
+
* bare price. Optional so an older server that does not send it still
|
|
3792
|
+
* parses; treat a missing value as false. */
|
|
3793
|
+
isProposal: z.ZodOptional<z.ZodBoolean>;
|
|
3790
3794
|
}, "strip", z.ZodTypeAny, {
|
|
3791
3795
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
3792
3796
|
id: string;
|
|
@@ -3794,6 +3798,7 @@ export declare const customerQuoteSummarySchema: z.ZodObject<{
|
|
|
3794
3798
|
totalAmount: number;
|
|
3795
3799
|
validUntil: string;
|
|
3796
3800
|
publicAcceptUrl: string | null;
|
|
3801
|
+
isProposal?: boolean | undefined;
|
|
3797
3802
|
}, {
|
|
3798
3803
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
3799
3804
|
id: string;
|
|
@@ -3801,6 +3806,7 @@ export declare const customerQuoteSummarySchema: z.ZodObject<{
|
|
|
3801
3806
|
totalAmount: number;
|
|
3802
3807
|
validUntil: string;
|
|
3803
3808
|
publicAcceptUrl: string | null;
|
|
3809
|
+
isProposal?: boolean | undefined;
|
|
3804
3810
|
}>;
|
|
3805
3811
|
export declare const customerInvoiceSummarySchema: z.ZodObject<{
|
|
3806
3812
|
id: z.ZodString;
|
|
@@ -3920,6 +3926,10 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
3920
3926
|
totalAmount: z.ZodNumber;
|
|
3921
3927
|
validUntil: z.ZodString;
|
|
3922
3928
|
publicAcceptUrl: z.ZodNullable<z.ZodString>;
|
|
3929
|
+
/** True when the quote carries a narrative — a PROPOSAL rather than a
|
|
3930
|
+
* bare price. Optional so an older server that does not send it still
|
|
3931
|
+
* parses; treat a missing value as false. */
|
|
3932
|
+
isProposal: z.ZodOptional<z.ZodBoolean>;
|
|
3923
3933
|
}, "strip", z.ZodTypeAny, {
|
|
3924
3934
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
3925
3935
|
id: string;
|
|
@@ -3927,6 +3937,7 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
3927
3937
|
totalAmount: number;
|
|
3928
3938
|
validUntil: string;
|
|
3929
3939
|
publicAcceptUrl: string | null;
|
|
3940
|
+
isProposal?: boolean | undefined;
|
|
3930
3941
|
}, {
|
|
3931
3942
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
3932
3943
|
id: string;
|
|
@@ -3934,6 +3945,7 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
3934
3945
|
totalAmount: number;
|
|
3935
3946
|
validUntil: string;
|
|
3936
3947
|
publicAcceptUrl: string | null;
|
|
3948
|
+
isProposal?: boolean | undefined;
|
|
3937
3949
|
}>, "many">;
|
|
3938
3950
|
invoices: z.ZodArray<z.ZodObject<{
|
|
3939
3951
|
id: z.ZodString;
|
|
@@ -4072,6 +4084,10 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
4072
4084
|
totalAmount: z.ZodNumber;
|
|
4073
4085
|
validUntil: z.ZodString;
|
|
4074
4086
|
publicAcceptUrl: z.ZodNullable<z.ZodString>;
|
|
4087
|
+
/** True when the quote carries a narrative — a PROPOSAL rather than a
|
|
4088
|
+
* bare price. Optional so an older server that does not send it still
|
|
4089
|
+
* parses; treat a missing value as false. */
|
|
4090
|
+
isProposal: z.ZodOptional<z.ZodBoolean>;
|
|
4075
4091
|
}, "strip", z.ZodTypeAny, {
|
|
4076
4092
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
4077
4093
|
id: string;
|
|
@@ -4079,6 +4095,7 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
4079
4095
|
totalAmount: number;
|
|
4080
4096
|
validUntil: string;
|
|
4081
4097
|
publicAcceptUrl: string | null;
|
|
4098
|
+
isProposal?: boolean | undefined;
|
|
4082
4099
|
}, {
|
|
4083
4100
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
4084
4101
|
id: string;
|
|
@@ -4086,6 +4103,7 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
4086
4103
|
totalAmount: number;
|
|
4087
4104
|
validUntil: string;
|
|
4088
4105
|
publicAcceptUrl: string | null;
|
|
4106
|
+
isProposal?: boolean | undefined;
|
|
4089
4107
|
}>, "many">;
|
|
4090
4108
|
invoices: z.ZodArray<z.ZodObject<{
|
|
4091
4109
|
id: z.ZodString;
|
|
@@ -4224,6 +4242,10 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
4224
4242
|
totalAmount: z.ZodNumber;
|
|
4225
4243
|
validUntil: z.ZodString;
|
|
4226
4244
|
publicAcceptUrl: z.ZodNullable<z.ZodString>;
|
|
4245
|
+
/** True when the quote carries a narrative — a PROPOSAL rather than a
|
|
4246
|
+
* bare price. Optional so an older server that does not send it still
|
|
4247
|
+
* parses; treat a missing value as false. */
|
|
4248
|
+
isProposal: z.ZodOptional<z.ZodBoolean>;
|
|
4227
4249
|
}, "strip", z.ZodTypeAny, {
|
|
4228
4250
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
4229
4251
|
id: string;
|
|
@@ -4231,6 +4253,7 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
4231
4253
|
totalAmount: number;
|
|
4232
4254
|
validUntil: string;
|
|
4233
4255
|
publicAcceptUrl: string | null;
|
|
4256
|
+
isProposal?: boolean | undefined;
|
|
4234
4257
|
}, {
|
|
4235
4258
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
4236
4259
|
id: string;
|
|
@@ -4238,6 +4261,7 @@ export declare const customerWorkBundleSchema: z.ZodObject<{
|
|
|
4238
4261
|
totalAmount: number;
|
|
4239
4262
|
validUntil: string;
|
|
4240
4263
|
publicAcceptUrl: string | null;
|
|
4264
|
+
isProposal?: boolean | undefined;
|
|
4241
4265
|
}>, "many">;
|
|
4242
4266
|
invoices: z.ZodArray<z.ZodObject<{
|
|
4243
4267
|
id: z.ZodString;
|
|
@@ -4372,12 +4396,182 @@ export declare const customerJobDetailSchema: z.ZodObject<{
|
|
|
4372
4396
|
dueDate: z.ZodNullable<z.ZodString>;
|
|
4373
4397
|
statusCompletedAt: z.ZodNullable<z.ZodString>;
|
|
4374
4398
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4399
|
+
/** One line on a quote. Was `z.unknown()`, which left every consumer to
|
|
4400
|
+
* guess at the shape before it could render a row. */
|
|
4401
|
+
export declare const customerQuoteLineItemSchema: z.ZodObject<{
|
|
4402
|
+
description: z.ZodString;
|
|
4403
|
+
quantity: z.ZodNumber;
|
|
4404
|
+
unitPrice: z.ZodNumber;
|
|
4405
|
+
total: z.ZodNumber;
|
|
4406
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4407
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4408
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4409
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4410
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4411
|
+
description: z.ZodString;
|
|
4412
|
+
quantity: z.ZodNumber;
|
|
4413
|
+
unitPrice: z.ZodNumber;
|
|
4414
|
+
total: z.ZodNumber;
|
|
4415
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4416
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4417
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4418
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4419
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4420
|
+
description: z.ZodString;
|
|
4421
|
+
quantity: z.ZodNumber;
|
|
4422
|
+
unitPrice: z.ZodNumber;
|
|
4423
|
+
total: z.ZodNumber;
|
|
4424
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4425
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4426
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4427
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4428
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4429
|
+
/** One narrative section of a proposal. `body` is plain text; blank lines
|
|
4430
|
+
* separate paragraphs. */
|
|
4431
|
+
export declare const customerQuoteSectionSchema: z.ZodObject<{
|
|
4432
|
+
id: z.ZodString;
|
|
4433
|
+
title: z.ZodString;
|
|
4434
|
+
body: z.ZodString;
|
|
4435
|
+
}, "strip", z.ZodTypeAny, {
|
|
4436
|
+
id: string;
|
|
4437
|
+
title: string;
|
|
4438
|
+
body: string;
|
|
4439
|
+
}, {
|
|
4440
|
+
id: string;
|
|
4441
|
+
title: string;
|
|
4442
|
+
body: string;
|
|
4443
|
+
}>;
|
|
4444
|
+
/**
|
|
4445
|
+
* A designed proposal, as a customer receives it.
|
|
4446
|
+
*
|
|
4447
|
+
* Distinct from `customerQuoteDetailSchema`, which is the quote itself. A
|
|
4448
|
+
* proposal is the DOCUMENT built around that quote — either a rendered PDF
|
|
4449
|
+
* or a live page — and a consumer needs to know which before deciding
|
|
4450
|
+
* whether to offer a download or an iframe.
|
|
4451
|
+
*
|
|
4452
|
+
* Deliberately carries no template, no bindings and no resolved snapshot:
|
|
4453
|
+
* those describe how the org builds proposals, and a customer's SDK has no
|
|
4454
|
+
* business reading them.
|
|
4455
|
+
*/
|
|
4456
|
+
export declare const customerProposalSchema: z.ZodObject<{
|
|
4457
|
+
id: z.ZodString;
|
|
4458
|
+
quoteId: z.ZodString;
|
|
4459
|
+
/** `pdf` — fetch `pdfUrl`. `web` — frame `pageUrl`. */
|
|
4460
|
+
kind: z.ZodType<OpenEnum<"pdf" | "web">, z.ZodTypeDef, OpenEnum<"pdf" | "web">>;
|
|
4461
|
+
title: z.ZodString;
|
|
4462
|
+
/** Host-less path, like every other URL in this contract, so a storefront
|
|
4463
|
+
* on any domain can resolve it against its own origin. */
|
|
4464
|
+
pdfUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4465
|
+
pageUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4466
|
+
createdAt: z.ZodString;
|
|
4467
|
+
renderedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4468
|
+
}, "strip", z.ZodTypeAny, {
|
|
4469
|
+
id: string;
|
|
4470
|
+
createdAt: string;
|
|
4471
|
+
kind: OpenEnum<"pdf" | "web">;
|
|
4472
|
+
title: string;
|
|
4473
|
+
quoteId: string;
|
|
4474
|
+
pdfUrl: string | null;
|
|
4475
|
+
pageUrl: string | null;
|
|
4476
|
+
renderedAt: string | null;
|
|
4477
|
+
}, {
|
|
4478
|
+
id: string;
|
|
4479
|
+
createdAt: string;
|
|
4480
|
+
kind: OpenEnum<"pdf" | "web">;
|
|
4481
|
+
title: string;
|
|
4482
|
+
quoteId: string;
|
|
4483
|
+
pdfUrl?: string | null | undefined;
|
|
4484
|
+
pageUrl?: string | null | undefined;
|
|
4485
|
+
renderedAt?: string | null | undefined;
|
|
4486
|
+
}>;
|
|
4487
|
+
export declare const customerProposalListResponseSchema: z.ZodObject<{
|
|
4488
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4489
|
+
id: z.ZodString;
|
|
4490
|
+
quoteId: z.ZodString;
|
|
4491
|
+
/** `pdf` — fetch `pdfUrl`. `web` — frame `pageUrl`. */
|
|
4492
|
+
kind: z.ZodType<OpenEnum<"pdf" | "web">, z.ZodTypeDef, OpenEnum<"pdf" | "web">>;
|
|
4493
|
+
title: z.ZodString;
|
|
4494
|
+
/** Host-less path, like every other URL in this contract, so a storefront
|
|
4495
|
+
* on any domain can resolve it against its own origin. */
|
|
4496
|
+
pdfUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4497
|
+
pageUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4498
|
+
createdAt: z.ZodString;
|
|
4499
|
+
renderedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4500
|
+
}, "strip", z.ZodTypeAny, {
|
|
4501
|
+
id: string;
|
|
4502
|
+
createdAt: string;
|
|
4503
|
+
kind: OpenEnum<"pdf" | "web">;
|
|
4504
|
+
title: string;
|
|
4505
|
+
quoteId: string;
|
|
4506
|
+
pdfUrl: string | null;
|
|
4507
|
+
pageUrl: string | null;
|
|
4508
|
+
renderedAt: string | null;
|
|
4509
|
+
}, {
|
|
4510
|
+
id: string;
|
|
4511
|
+
createdAt: string;
|
|
4512
|
+
kind: OpenEnum<"pdf" | "web">;
|
|
4513
|
+
title: string;
|
|
4514
|
+
quoteId: string;
|
|
4515
|
+
pdfUrl?: string | null | undefined;
|
|
4516
|
+
pageUrl?: string | null | undefined;
|
|
4517
|
+
renderedAt?: string | null | undefined;
|
|
4518
|
+
}>, "many">;
|
|
4519
|
+
}, "strip", z.ZodTypeAny, {
|
|
4520
|
+
items: {
|
|
4521
|
+
id: string;
|
|
4522
|
+
createdAt: string;
|
|
4523
|
+
kind: OpenEnum<"pdf" | "web">;
|
|
4524
|
+
title: string;
|
|
4525
|
+
quoteId: string;
|
|
4526
|
+
pdfUrl: string | null;
|
|
4527
|
+
pageUrl: string | null;
|
|
4528
|
+
renderedAt: string | null;
|
|
4529
|
+
}[];
|
|
4530
|
+
}, {
|
|
4531
|
+
items: {
|
|
4532
|
+
id: string;
|
|
4533
|
+
createdAt: string;
|
|
4534
|
+
kind: OpenEnum<"pdf" | "web">;
|
|
4535
|
+
title: string;
|
|
4536
|
+
quoteId: string;
|
|
4537
|
+
pdfUrl?: string | null | undefined;
|
|
4538
|
+
pageUrl?: string | null | undefined;
|
|
4539
|
+
renderedAt?: string | null | undefined;
|
|
4540
|
+
}[];
|
|
4541
|
+
}>;
|
|
4375
4542
|
export declare const customerQuoteDetailSchema: z.ZodObject<{
|
|
4376
4543
|
id: z.ZodString;
|
|
4377
4544
|
quoteNumber: z.ZodString;
|
|
4378
4545
|
/** Mirrors the `quote_status` pg enum. */
|
|
4379
4546
|
status: z.ZodType<OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">, z.ZodTypeDef, OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">>;
|
|
4380
|
-
items: z.ZodArray<z.
|
|
4547
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4548
|
+
description: z.ZodString;
|
|
4549
|
+
quantity: z.ZodNumber;
|
|
4550
|
+
unitPrice: z.ZodNumber;
|
|
4551
|
+
total: z.ZodNumber;
|
|
4552
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4553
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4554
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4555
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4556
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4557
|
+
description: z.ZodString;
|
|
4558
|
+
quantity: z.ZodNumber;
|
|
4559
|
+
unitPrice: z.ZodNumber;
|
|
4560
|
+
total: z.ZodNumber;
|
|
4561
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4562
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4563
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4564
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4565
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4566
|
+
description: z.ZodString;
|
|
4567
|
+
quantity: z.ZodNumber;
|
|
4568
|
+
unitPrice: z.ZodNumber;
|
|
4569
|
+
total: z.ZodNumber;
|
|
4570
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4571
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4572
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4573
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4574
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
4381
4575
|
subtotalAmount: z.ZodNumber;
|
|
4382
4576
|
discountAmount: z.ZodNumber;
|
|
4383
4577
|
taxRate: z.ZodNumber;
|
|
@@ -4386,12 +4580,72 @@ export declare const customerQuoteDetailSchema: z.ZodObject<{
|
|
|
4386
4580
|
validUntil: z.ZodString;
|
|
4387
4581
|
publicAcceptUrl: z.ZodNullable<z.ZodString>;
|
|
4388
4582
|
notes: z.ZodNullable<z.ZodString>;
|
|
4583
|
+
/**
|
|
4584
|
+
* The proposal narrative — cover letter, scope of work, terms. Empty
|
|
4585
|
+
* for a plain quote. This is the half that makes a quote a sales
|
|
4586
|
+
* proposal; rendering only `items` gives the customer a price list
|
|
4587
|
+
* where they were sent an argument.
|
|
4588
|
+
*/
|
|
4589
|
+
sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4590
|
+
id: z.ZodString;
|
|
4591
|
+
title: z.ZodString;
|
|
4592
|
+
body: z.ZodString;
|
|
4593
|
+
}, "strip", z.ZodTypeAny, {
|
|
4594
|
+
id: string;
|
|
4595
|
+
title: string;
|
|
4596
|
+
body: string;
|
|
4597
|
+
}, {
|
|
4598
|
+
id: string;
|
|
4599
|
+
title: string;
|
|
4600
|
+
body: string;
|
|
4601
|
+
}>, "many">>;
|
|
4602
|
+
/** Derived from `sections`, so it can never disagree with them. */
|
|
4603
|
+
isProposal: z.ZodDefault<z.ZodBoolean>;
|
|
4604
|
+
/** Captured at send-time, so a proposal stays reproducible after the
|
|
4605
|
+
* org's billing details change. */
|
|
4606
|
+
senderName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4607
|
+
senderEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4608
|
+
sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4609
|
+
acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4610
|
+
rejectedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4611
|
+
/** Whether `acceptQuote` would succeed right now: sent, in date, not
|
|
4612
|
+
* already decided. Do not re-derive this from `status` — expiry is a
|
|
4613
|
+
* date comparison the server has already made. */
|
|
4614
|
+
canAccept: z.ZodDefault<z.ZodBoolean>;
|
|
4615
|
+
expired: z.ZodDefault<z.ZodBoolean>;
|
|
4389
4616
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4390
4617
|
id: z.ZodString;
|
|
4391
4618
|
quoteNumber: z.ZodString;
|
|
4392
4619
|
/** Mirrors the `quote_status` pg enum. */
|
|
4393
4620
|
status: z.ZodType<OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">, z.ZodTypeDef, OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">>;
|
|
4394
|
-
items: z.ZodArray<z.
|
|
4621
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4622
|
+
description: z.ZodString;
|
|
4623
|
+
quantity: z.ZodNumber;
|
|
4624
|
+
unitPrice: z.ZodNumber;
|
|
4625
|
+
total: z.ZodNumber;
|
|
4626
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4627
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4628
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4629
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4630
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4631
|
+
description: z.ZodString;
|
|
4632
|
+
quantity: z.ZodNumber;
|
|
4633
|
+
unitPrice: z.ZodNumber;
|
|
4634
|
+
total: z.ZodNumber;
|
|
4635
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4636
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4637
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4638
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4639
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4640
|
+
description: z.ZodString;
|
|
4641
|
+
quantity: z.ZodNumber;
|
|
4642
|
+
unitPrice: z.ZodNumber;
|
|
4643
|
+
total: z.ZodNumber;
|
|
4644
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4645
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4646
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4647
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4648
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
4395
4649
|
subtotalAmount: z.ZodNumber;
|
|
4396
4650
|
discountAmount: z.ZodNumber;
|
|
4397
4651
|
taxRate: z.ZodNumber;
|
|
@@ -4400,12 +4654,72 @@ export declare const customerQuoteDetailSchema: z.ZodObject<{
|
|
|
4400
4654
|
validUntil: z.ZodString;
|
|
4401
4655
|
publicAcceptUrl: z.ZodNullable<z.ZodString>;
|
|
4402
4656
|
notes: z.ZodNullable<z.ZodString>;
|
|
4657
|
+
/**
|
|
4658
|
+
* The proposal narrative — cover letter, scope of work, terms. Empty
|
|
4659
|
+
* for a plain quote. This is the half that makes a quote a sales
|
|
4660
|
+
* proposal; rendering only `items` gives the customer a price list
|
|
4661
|
+
* where they were sent an argument.
|
|
4662
|
+
*/
|
|
4663
|
+
sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4664
|
+
id: z.ZodString;
|
|
4665
|
+
title: z.ZodString;
|
|
4666
|
+
body: z.ZodString;
|
|
4667
|
+
}, "strip", z.ZodTypeAny, {
|
|
4668
|
+
id: string;
|
|
4669
|
+
title: string;
|
|
4670
|
+
body: string;
|
|
4671
|
+
}, {
|
|
4672
|
+
id: string;
|
|
4673
|
+
title: string;
|
|
4674
|
+
body: string;
|
|
4675
|
+
}>, "many">>;
|
|
4676
|
+
/** Derived from `sections`, so it can never disagree with them. */
|
|
4677
|
+
isProposal: z.ZodDefault<z.ZodBoolean>;
|
|
4678
|
+
/** Captured at send-time, so a proposal stays reproducible after the
|
|
4679
|
+
* org's billing details change. */
|
|
4680
|
+
senderName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4681
|
+
senderEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4682
|
+
sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4683
|
+
acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4684
|
+
rejectedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4685
|
+
/** Whether `acceptQuote` would succeed right now: sent, in date, not
|
|
4686
|
+
* already decided. Do not re-derive this from `status` — expiry is a
|
|
4687
|
+
* date comparison the server has already made. */
|
|
4688
|
+
canAccept: z.ZodDefault<z.ZodBoolean>;
|
|
4689
|
+
expired: z.ZodDefault<z.ZodBoolean>;
|
|
4403
4690
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4404
4691
|
id: z.ZodString;
|
|
4405
4692
|
quoteNumber: z.ZodString;
|
|
4406
4693
|
/** Mirrors the `quote_status` pg enum. */
|
|
4407
4694
|
status: z.ZodType<OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">, z.ZodTypeDef, OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">>;
|
|
4408
|
-
items: z.ZodArray<z.
|
|
4695
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4696
|
+
description: z.ZodString;
|
|
4697
|
+
quantity: z.ZodNumber;
|
|
4698
|
+
unitPrice: z.ZodNumber;
|
|
4699
|
+
total: z.ZodNumber;
|
|
4700
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4701
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4702
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4703
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4704
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4705
|
+
description: z.ZodString;
|
|
4706
|
+
quantity: z.ZodNumber;
|
|
4707
|
+
unitPrice: z.ZodNumber;
|
|
4708
|
+
total: z.ZodNumber;
|
|
4709
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4710
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4711
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4712
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4713
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4714
|
+
description: z.ZodString;
|
|
4715
|
+
quantity: z.ZodNumber;
|
|
4716
|
+
unitPrice: z.ZodNumber;
|
|
4717
|
+
total: z.ZodNumber;
|
|
4718
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
4719
|
+
modelNo: z.ZodOptional<z.ZodString>;
|
|
4720
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4721
|
+
category: z.ZodOptional<z.ZodString>;
|
|
4722
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
4409
4723
|
subtotalAmount: z.ZodNumber;
|
|
4410
4724
|
discountAmount: z.ZodNumber;
|
|
4411
4725
|
taxRate: z.ZodNumber;
|
|
@@ -4414,6 +4728,39 @@ export declare const customerQuoteDetailSchema: z.ZodObject<{
|
|
|
4414
4728
|
validUntil: z.ZodString;
|
|
4415
4729
|
publicAcceptUrl: z.ZodNullable<z.ZodString>;
|
|
4416
4730
|
notes: z.ZodNullable<z.ZodString>;
|
|
4731
|
+
/**
|
|
4732
|
+
* The proposal narrative — cover letter, scope of work, terms. Empty
|
|
4733
|
+
* for a plain quote. This is the half that makes a quote a sales
|
|
4734
|
+
* proposal; rendering only `items` gives the customer a price list
|
|
4735
|
+
* where they were sent an argument.
|
|
4736
|
+
*/
|
|
4737
|
+
sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4738
|
+
id: z.ZodString;
|
|
4739
|
+
title: z.ZodString;
|
|
4740
|
+
body: z.ZodString;
|
|
4741
|
+
}, "strip", z.ZodTypeAny, {
|
|
4742
|
+
id: string;
|
|
4743
|
+
title: string;
|
|
4744
|
+
body: string;
|
|
4745
|
+
}, {
|
|
4746
|
+
id: string;
|
|
4747
|
+
title: string;
|
|
4748
|
+
body: string;
|
|
4749
|
+
}>, "many">>;
|
|
4750
|
+
/** Derived from `sections`, so it can never disagree with them. */
|
|
4751
|
+
isProposal: z.ZodDefault<z.ZodBoolean>;
|
|
4752
|
+
/** Captured at send-time, so a proposal stays reproducible after the
|
|
4753
|
+
* org's billing details change. */
|
|
4754
|
+
senderName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4755
|
+
senderEmail: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4756
|
+
sentAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4757
|
+
acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4758
|
+
rejectedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
4759
|
+
/** Whether `acceptQuote` would succeed right now: sent, in date, not
|
|
4760
|
+
* already decided. Do not re-derive this from `status` — expiry is a
|
|
4761
|
+
* date comparison the server has already made. */
|
|
4762
|
+
canAccept: z.ZodDefault<z.ZodBoolean>;
|
|
4763
|
+
expired: z.ZodDefault<z.ZodBoolean>;
|
|
4417
4764
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4418
4765
|
/** One entry in the customer's cross-surface payment history — invoice
|
|
4419
4766
|
* payments, store-order charges, and refunds (negative amount), newest
|
|
@@ -6852,7 +7199,7 @@ export declare const customerProductReviewCreatedSchema: z.ZodObject<{
|
|
|
6852
7199
|
export declare const customerDownloadSchema: z.ZodObject<{
|
|
6853
7200
|
productName: z.ZodString;
|
|
6854
7201
|
fileName: z.ZodNullable<z.ZodString>;
|
|
6855
|
-
/** Short-lived presigned URL (
|
|
7202
|
+
/** Short-lived presigned URL (BD-hosted) or the org's external link. */
|
|
6856
7203
|
url: z.ZodString;
|
|
6857
7204
|
/** Seconds until `url` expires; null for a non-expiring external link. */
|
|
6858
7205
|
expiresInSeconds: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6872,7 +7219,7 @@ export declare const customerDownloadsResponseSchema: z.ZodObject<{
|
|
|
6872
7219
|
items: z.ZodArray<z.ZodObject<{
|
|
6873
7220
|
productName: z.ZodString;
|
|
6874
7221
|
fileName: z.ZodNullable<z.ZodString>;
|
|
6875
|
-
/** Short-lived presigned URL (
|
|
7222
|
+
/** Short-lived presigned URL (BD-hosted) or the org's external link. */
|
|
6876
7223
|
url: z.ZodString;
|
|
6877
7224
|
/** Seconds until `url` expires; null for a non-expiring external link. */
|
|
6878
7225
|
expiresInSeconds: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6991,7 +7338,11 @@ export declare const siteBrandingSchema: z.ZodObject<{
|
|
|
6991
7338
|
}>;
|
|
6992
7339
|
export type SiteBranding = z.infer<typeof siteBrandingSchema>;
|
|
6993
7340
|
export type CustomerJobDetail = z.infer<typeof customerJobDetailSchema>;
|
|
7341
|
+
export type CustomerProposal = z.infer<typeof customerProposalSchema>;
|
|
7342
|
+
export type CustomerProposalListResponse = z.infer<typeof customerProposalListResponseSchema>;
|
|
6994
7343
|
export type CustomerQuoteDetail = z.infer<typeof customerQuoteDetailSchema>;
|
|
7344
|
+
export type CustomerQuoteLineItem = z.infer<typeof customerQuoteLineItemSchema>;
|
|
7345
|
+
export type CustomerQuoteSection = z.infer<typeof customerQuoteSectionSchema>;
|
|
6995
7346
|
export type CustomerInvoiceDetail = z.infer<typeof customerInvoiceDetailSchema>;
|
|
6996
7347
|
export type CustomerInvoicePayment = z.infer<typeof customerInvoicePaymentSchema>;
|
|
6997
7348
|
export type CustomerPaymentHistoryEntry = z.infer<typeof customerPaymentHistoryEntrySchema>;
|
|
@@ -7073,6 +7424,10 @@ export declare const customerQuoteListResponseSchema: z.ZodObject<{
|
|
|
7073
7424
|
totalAmount: z.ZodNumber;
|
|
7074
7425
|
validUntil: z.ZodString;
|
|
7075
7426
|
publicAcceptUrl: z.ZodNullable<z.ZodString>;
|
|
7427
|
+
/** True when the quote carries a narrative — a PROPOSAL rather than a
|
|
7428
|
+
* bare price. Optional so an older server that does not send it still
|
|
7429
|
+
* parses; treat a missing value as false. */
|
|
7430
|
+
isProposal: z.ZodOptional<z.ZodBoolean>;
|
|
7076
7431
|
}, "strip", z.ZodTypeAny, {
|
|
7077
7432
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
7078
7433
|
id: string;
|
|
@@ -7080,6 +7435,7 @@ export declare const customerQuoteListResponseSchema: z.ZodObject<{
|
|
|
7080
7435
|
totalAmount: number;
|
|
7081
7436
|
validUntil: string;
|
|
7082
7437
|
publicAcceptUrl: string | null;
|
|
7438
|
+
isProposal?: boolean | undefined;
|
|
7083
7439
|
}, {
|
|
7084
7440
|
status: OpenEnum<"draft" | "sent" | "accepted" | "rejected" | "converted" | "expired">;
|
|
7085
7441
|
id: string;
|
|
@@ -7087,6 +7443,7 @@ export declare const customerQuoteListResponseSchema: z.ZodObject<{
|
|
|
7087
7443
|
totalAmount: number;
|
|
7088
7444
|
validUntil: string;
|
|
7089
7445
|
publicAcceptUrl: string | null;
|
|
7446
|
+
isProposal?: boolean | undefined;
|
|
7090
7447
|
}>, "many">;
|
|
7091
7448
|
}, "strip", z.ZodTypeAny, {
|
|
7092
7449
|
items: {
|
|
@@ -7096,6 +7453,7 @@ export declare const customerQuoteListResponseSchema: z.ZodObject<{
|
|
|
7096
7453
|
totalAmount: number;
|
|
7097
7454
|
validUntil: string;
|
|
7098
7455
|
publicAcceptUrl: string | null;
|
|
7456
|
+
isProposal?: boolean | undefined;
|
|
7099
7457
|
}[];
|
|
7100
7458
|
}, {
|
|
7101
7459
|
items: {
|
|
@@ -7105,6 +7463,7 @@ export declare const customerQuoteListResponseSchema: z.ZodObject<{
|
|
|
7105
7463
|
totalAmount: number;
|
|
7106
7464
|
validUntil: string;
|
|
7107
7465
|
publicAcceptUrl: string | null;
|
|
7466
|
+
isProposal?: boolean | undefined;
|
|
7108
7467
|
}[];
|
|
7109
7468
|
}>;
|
|
7110
7469
|
export declare const customerContractListResponseSchema: z.ZodObject<{
|
|
@@ -7296,10 +7655,10 @@ export declare const customerPortalMessageSchema: z.ZodObject<{
|
|
|
7296
7655
|
}, "strip", z.ZodTypeAny, {
|
|
7297
7656
|
id: string;
|
|
7298
7657
|
createdAt: string;
|
|
7658
|
+
body: string;
|
|
7299
7659
|
direction: OpenEnum<"inbound" | "outbound">;
|
|
7300
7660
|
channel: OpenEnum<"email" | "sms" | "portal">;
|
|
7301
7661
|
authorName: string | null;
|
|
7302
|
-
body: string;
|
|
7303
7662
|
attachment: {
|
|
7304
7663
|
name: string;
|
|
7305
7664
|
url: string;
|
|
@@ -7311,10 +7670,10 @@ export declare const customerPortalMessageSchema: z.ZodObject<{
|
|
|
7311
7670
|
}, {
|
|
7312
7671
|
id: string;
|
|
7313
7672
|
createdAt: string;
|
|
7673
|
+
body: string;
|
|
7314
7674
|
direction: OpenEnum<"inbound" | "outbound">;
|
|
7315
7675
|
channel: OpenEnum<"email" | "sms" | "portal">;
|
|
7316
7676
|
authorName: string | null;
|
|
7317
|
-
body: string;
|
|
7318
7677
|
attachment: {
|
|
7319
7678
|
name: string;
|
|
7320
7679
|
url: string;
|
|
@@ -7354,10 +7713,10 @@ export declare const customerPortalMessageListResponseSchema: z.ZodObject<{
|
|
|
7354
7713
|
}, "strip", z.ZodTypeAny, {
|
|
7355
7714
|
id: string;
|
|
7356
7715
|
createdAt: string;
|
|
7716
|
+
body: string;
|
|
7357
7717
|
direction: OpenEnum<"inbound" | "outbound">;
|
|
7358
7718
|
channel: OpenEnum<"email" | "sms" | "portal">;
|
|
7359
7719
|
authorName: string | null;
|
|
7360
|
-
body: string;
|
|
7361
7720
|
attachment: {
|
|
7362
7721
|
name: string;
|
|
7363
7722
|
url: string;
|
|
@@ -7369,10 +7728,10 @@ export declare const customerPortalMessageListResponseSchema: z.ZodObject<{
|
|
|
7369
7728
|
}, {
|
|
7370
7729
|
id: string;
|
|
7371
7730
|
createdAt: string;
|
|
7731
|
+
body: string;
|
|
7372
7732
|
direction: OpenEnum<"inbound" | "outbound">;
|
|
7373
7733
|
channel: OpenEnum<"email" | "sms" | "portal">;
|
|
7374
7734
|
authorName: string | null;
|
|
7375
|
-
body: string;
|
|
7376
7735
|
attachment: {
|
|
7377
7736
|
name: string;
|
|
7378
7737
|
url: string;
|
|
@@ -7386,10 +7745,10 @@ export declare const customerPortalMessageListResponseSchema: z.ZodObject<{
|
|
|
7386
7745
|
items: {
|
|
7387
7746
|
id: string;
|
|
7388
7747
|
createdAt: string;
|
|
7748
|
+
body: string;
|
|
7389
7749
|
direction: OpenEnum<"inbound" | "outbound">;
|
|
7390
7750
|
channel: OpenEnum<"email" | "sms" | "portal">;
|
|
7391
7751
|
authorName: string | null;
|
|
7392
|
-
body: string;
|
|
7393
7752
|
attachment: {
|
|
7394
7753
|
name: string;
|
|
7395
7754
|
url: string;
|
|
@@ -7403,10 +7762,10 @@ export declare const customerPortalMessageListResponseSchema: z.ZodObject<{
|
|
|
7403
7762
|
items: {
|
|
7404
7763
|
id: string;
|
|
7405
7764
|
createdAt: string;
|
|
7765
|
+
body: string;
|
|
7406
7766
|
direction: OpenEnum<"inbound" | "outbound">;
|
|
7407
7767
|
channel: OpenEnum<"email" | "sms" | "portal">;
|
|
7408
7768
|
authorName: string | null;
|
|
7409
|
-
body: string;
|
|
7410
7769
|
attachment: {
|
|
7411
7770
|
name: string;
|
|
7412
7771
|
url: string;
|
|
@@ -7544,18 +7903,18 @@ export declare const customerReviewSummarySchema: z.ZodObject<{
|
|
|
7544
7903
|
id: string;
|
|
7545
7904
|
submittedAt: string;
|
|
7546
7905
|
title: string | null;
|
|
7906
|
+
body: string;
|
|
7547
7907
|
publishedAt: string | null;
|
|
7548
7908
|
rating: number;
|
|
7549
|
-
body: string;
|
|
7550
7909
|
jobId: string | null;
|
|
7551
7910
|
}, {
|
|
7552
7911
|
status: OpenEnum<"pending" | "published" | "hidden">;
|
|
7553
7912
|
id: string;
|
|
7554
7913
|
submittedAt: string;
|
|
7555
7914
|
title: string | null;
|
|
7915
|
+
body: string;
|
|
7556
7916
|
publishedAt: string | null;
|
|
7557
7917
|
rating: number;
|
|
7558
|
-
body: string;
|
|
7559
7918
|
jobId: string | null;
|
|
7560
7919
|
}>;
|
|
7561
7920
|
export declare const customerReviewListResponseSchema: z.ZodObject<{
|
|
@@ -7574,18 +7933,18 @@ export declare const customerReviewListResponseSchema: z.ZodObject<{
|
|
|
7574
7933
|
id: string;
|
|
7575
7934
|
submittedAt: string;
|
|
7576
7935
|
title: string | null;
|
|
7936
|
+
body: string;
|
|
7577
7937
|
publishedAt: string | null;
|
|
7578
7938
|
rating: number;
|
|
7579
|
-
body: string;
|
|
7580
7939
|
jobId: string | null;
|
|
7581
7940
|
}, {
|
|
7582
7941
|
status: OpenEnum<"pending" | "published" | "hidden">;
|
|
7583
7942
|
id: string;
|
|
7584
7943
|
submittedAt: string;
|
|
7585
7944
|
title: string | null;
|
|
7945
|
+
body: string;
|
|
7586
7946
|
publishedAt: string | null;
|
|
7587
7947
|
rating: number;
|
|
7588
|
-
body: string;
|
|
7589
7948
|
jobId: string | null;
|
|
7590
7949
|
}>, "many">;
|
|
7591
7950
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7594,9 +7953,9 @@ export declare const customerReviewListResponseSchema: z.ZodObject<{
|
|
|
7594
7953
|
id: string;
|
|
7595
7954
|
submittedAt: string;
|
|
7596
7955
|
title: string | null;
|
|
7956
|
+
body: string;
|
|
7597
7957
|
publishedAt: string | null;
|
|
7598
7958
|
rating: number;
|
|
7599
|
-
body: string;
|
|
7600
7959
|
jobId: string | null;
|
|
7601
7960
|
}[];
|
|
7602
7961
|
}, {
|
|
@@ -7605,9 +7964,9 @@ export declare const customerReviewListResponseSchema: z.ZodObject<{
|
|
|
7605
7964
|
id: string;
|
|
7606
7965
|
submittedAt: string;
|
|
7607
7966
|
title: string | null;
|
|
7967
|
+
body: string;
|
|
7608
7968
|
publishedAt: string | null;
|
|
7609
7969
|
rating: number;
|
|
7610
|
-
body: string;
|
|
7611
7970
|
jobId: string | null;
|
|
7612
7971
|
}[];
|
|
7613
7972
|
}>;
|
|
@@ -7617,13 +7976,13 @@ export declare const customerReviewSubmitInputSchema: z.ZodObject<{
|
|
|
7617
7976
|
body: z.ZodString;
|
|
7618
7977
|
jobId: z.ZodOptional<z.ZodString>;
|
|
7619
7978
|
}, "strip", z.ZodTypeAny, {
|
|
7620
|
-
rating: number;
|
|
7621
7979
|
body: string;
|
|
7980
|
+
rating: number;
|
|
7622
7981
|
title?: string | undefined;
|
|
7623
7982
|
jobId?: string | undefined;
|
|
7624
7983
|
}, {
|
|
7625
|
-
rating: number;
|
|
7626
7984
|
body: string;
|
|
7985
|
+
rating: number;
|
|
7627
7986
|
title?: string | undefined;
|
|
7628
7987
|
jobId?: string | undefined;
|
|
7629
7988
|
}>;
|
|
@@ -7653,14 +8012,14 @@ export declare const customerJobCommentSchema: z.ZodObject<{
|
|
|
7653
8012
|
}, "strip", z.ZodTypeAny, {
|
|
7654
8013
|
id: string;
|
|
7655
8014
|
createdAt: string;
|
|
7656
|
-
authorName: string | null;
|
|
7657
8015
|
body: string;
|
|
8016
|
+
authorName: string | null;
|
|
7658
8017
|
authorKind: "system" | "staff" | "customer";
|
|
7659
8018
|
}, {
|
|
7660
8019
|
id: string;
|
|
7661
8020
|
createdAt: string;
|
|
7662
|
-
authorName: string | null;
|
|
7663
8021
|
body: string;
|
|
8022
|
+
authorName: string | null;
|
|
7664
8023
|
authorKind: "system" | "staff" | "customer";
|
|
7665
8024
|
}>;
|
|
7666
8025
|
export declare const customerJobCommentsListResponseSchema: z.ZodObject<{
|
|
@@ -7673,30 +8032,30 @@ export declare const customerJobCommentsListResponseSchema: z.ZodObject<{
|
|
|
7673
8032
|
}, "strip", z.ZodTypeAny, {
|
|
7674
8033
|
id: string;
|
|
7675
8034
|
createdAt: string;
|
|
7676
|
-
authorName: string | null;
|
|
7677
8035
|
body: string;
|
|
8036
|
+
authorName: string | null;
|
|
7678
8037
|
authorKind: "system" | "staff" | "customer";
|
|
7679
8038
|
}, {
|
|
7680
8039
|
id: string;
|
|
7681
8040
|
createdAt: string;
|
|
7682
|
-
authorName: string | null;
|
|
7683
8041
|
body: string;
|
|
8042
|
+
authorName: string | null;
|
|
7684
8043
|
authorKind: "system" | "staff" | "customer";
|
|
7685
8044
|
}>, "many">;
|
|
7686
8045
|
}, "strip", z.ZodTypeAny, {
|
|
7687
8046
|
items: {
|
|
7688
8047
|
id: string;
|
|
7689
8048
|
createdAt: string;
|
|
7690
|
-
authorName: string | null;
|
|
7691
8049
|
body: string;
|
|
8050
|
+
authorName: string | null;
|
|
7692
8051
|
authorKind: "system" | "staff" | "customer";
|
|
7693
8052
|
}[];
|
|
7694
8053
|
}, {
|
|
7695
8054
|
items: {
|
|
7696
8055
|
id: string;
|
|
7697
8056
|
createdAt: string;
|
|
7698
|
-
authorName: string | null;
|
|
7699
8057
|
body: string;
|
|
8058
|
+
authorName: string | null;
|
|
7700
8059
|
authorKind: "system" | "staff" | "customer";
|
|
7701
8060
|
}[];
|
|
7702
8061
|
}>;
|
|
@@ -10244,11 +10603,11 @@ export declare const cartItemSnapshotSchema: z.ZodObject<{
|
|
|
10244
10603
|
variantId: string | null;
|
|
10245
10604
|
quantity: number;
|
|
10246
10605
|
currency: string;
|
|
10606
|
+
unitPrice: number;
|
|
10247
10607
|
productName: string | null;
|
|
10248
10608
|
addedAt: string;
|
|
10249
10609
|
productImage: string | null;
|
|
10250
10610
|
variantTitle: string | null;
|
|
10251
|
-
unitPrice: number;
|
|
10252
10611
|
subtotal: number;
|
|
10253
10612
|
}, {
|
|
10254
10613
|
options: Record<string, unknown> | null;
|
|
@@ -10258,11 +10617,11 @@ export declare const cartItemSnapshotSchema: z.ZodObject<{
|
|
|
10258
10617
|
variantId: string | null;
|
|
10259
10618
|
quantity: number;
|
|
10260
10619
|
currency: string;
|
|
10620
|
+
unitPrice: number;
|
|
10261
10621
|
productName: string | null;
|
|
10262
10622
|
addedAt: string;
|
|
10263
10623
|
productImage: string | null;
|
|
10264
10624
|
variantTitle: string | null;
|
|
10265
|
-
unitPrice: number;
|
|
10266
10625
|
subtotal: number;
|
|
10267
10626
|
}>;
|
|
10268
10627
|
export declare const cartSnapshotSchema: z.ZodObject<{
|
|
@@ -10294,11 +10653,11 @@ export declare const cartSnapshotSchema: z.ZodObject<{
|
|
|
10294
10653
|
variantId: string | null;
|
|
10295
10654
|
quantity: number;
|
|
10296
10655
|
currency: string;
|
|
10656
|
+
unitPrice: number;
|
|
10297
10657
|
productName: string | null;
|
|
10298
10658
|
addedAt: string;
|
|
10299
10659
|
productImage: string | null;
|
|
10300
10660
|
variantTitle: string | null;
|
|
10301
|
-
unitPrice: number;
|
|
10302
10661
|
subtotal: number;
|
|
10303
10662
|
}, {
|
|
10304
10663
|
options: Record<string, unknown> | null;
|
|
@@ -10308,11 +10667,11 @@ export declare const cartSnapshotSchema: z.ZodObject<{
|
|
|
10308
10667
|
variantId: string | null;
|
|
10309
10668
|
quantity: number;
|
|
10310
10669
|
currency: string;
|
|
10670
|
+
unitPrice: number;
|
|
10311
10671
|
productName: string | null;
|
|
10312
10672
|
addedAt: string;
|
|
10313
10673
|
productImage: string | null;
|
|
10314
10674
|
variantTitle: string | null;
|
|
10315
|
-
unitPrice: number;
|
|
10316
10675
|
subtotal: number;
|
|
10317
10676
|
}>, "many">;
|
|
10318
10677
|
subtotal: z.ZodNumber;
|
|
@@ -10335,11 +10694,11 @@ export declare const cartSnapshotSchema: z.ZodObject<{
|
|
|
10335
10694
|
variantId: string | null;
|
|
10336
10695
|
quantity: number;
|
|
10337
10696
|
currency: string;
|
|
10697
|
+
unitPrice: number;
|
|
10338
10698
|
productName: string | null;
|
|
10339
10699
|
addedAt: string;
|
|
10340
10700
|
productImage: string | null;
|
|
10341
10701
|
variantTitle: string | null;
|
|
10342
|
-
unitPrice: number;
|
|
10343
10702
|
subtotal: number;
|
|
10344
10703
|
}[];
|
|
10345
10704
|
subtotal: number;
|
|
@@ -10362,11 +10721,11 @@ export declare const cartSnapshotSchema: z.ZodObject<{
|
|
|
10362
10721
|
variantId: string | null;
|
|
10363
10722
|
quantity: number;
|
|
10364
10723
|
currency: string;
|
|
10724
|
+
unitPrice: number;
|
|
10365
10725
|
productName: string | null;
|
|
10366
10726
|
addedAt: string;
|
|
10367
10727
|
productImage: string | null;
|
|
10368
10728
|
variantTitle: string | null;
|
|
10369
|
-
unitPrice: number;
|
|
10370
10729
|
subtotal: number;
|
|
10371
10730
|
}[];
|
|
10372
10731
|
subtotal: number;
|
|
@@ -11970,7 +12329,7 @@ export type ReviewWallListResponse = z.infer<typeof reviewWallListResponseSchema
|
|
|
11970
12329
|
/**
|
|
11971
12330
|
* Org-owned marketing-page banner (announcement strip / marquee).
|
|
11972
12331
|
* Mirrors the platform-banner shape so consumer storefronts can
|
|
11973
|
-
* render a near-identical UI to
|
|
12332
|
+
* render a near-identical UI to BD's own marketing banner.
|
|
11974
12333
|
* `null` when the org hasn't enabled one or has no visible messages.
|
|
11975
12334
|
*/
|
|
11976
12335
|
declare const bundleBannerMessageSchema: z.ZodObject<{
|
|
@@ -16071,7 +16430,7 @@ export declare const getMarketingLocalesResponseSchema: z.ZodObject<{
|
|
|
16071
16430
|
brandTokens: Record<string, string>;
|
|
16072
16431
|
}>;
|
|
16073
16432
|
/**
|
|
16074
|
-
* Bulk section upsert — sent by `
|
|
16433
|
+
* Bulk section upsert — sent by `bd sync-content`.
|
|
16075
16434
|
*
|
|
16076
16435
|
* One request carries up to 256 items (server-enforced). The CLI batches
|
|
16077
16436
|
* larger imports automatically. Each item is a single
|
|
@@ -16604,28 +16963,28 @@ export declare const pageViewsAvailableSchema: z.ZodObject<{
|
|
|
16604
16963
|
}>, "many">;
|
|
16605
16964
|
}, "strip", z.ZodTypeAny, {
|
|
16606
16965
|
available: true;
|
|
16966
|
+
total: {
|
|
16967
|
+
views: number;
|
|
16968
|
+
visitors: number;
|
|
16969
|
+
};
|
|
16607
16970
|
paths: {
|
|
16608
16971
|
path: string;
|
|
16609
16972
|
views: number;
|
|
16610
16973
|
visitors: number;
|
|
16611
16974
|
}[];
|
|
16612
16975
|
since: string | null;
|
|
16976
|
+
}, {
|
|
16977
|
+
available: true;
|
|
16613
16978
|
total: {
|
|
16614
16979
|
views: number;
|
|
16615
16980
|
visitors: number;
|
|
16616
16981
|
};
|
|
16617
|
-
}, {
|
|
16618
|
-
available: true;
|
|
16619
16982
|
paths: {
|
|
16620
16983
|
path: string;
|
|
16621
16984
|
views: number;
|
|
16622
16985
|
visitors: number;
|
|
16623
16986
|
}[];
|
|
16624
16987
|
since: string | null;
|
|
16625
|
-
total: {
|
|
16626
|
-
views: number;
|
|
16627
|
-
visitors: number;
|
|
16628
|
-
};
|
|
16629
16988
|
}>;
|
|
16630
16989
|
export type PageViewsAvailable = z.infer<typeof pageViewsAvailableSchema>;
|
|
16631
16990
|
/**
|
|
@@ -16679,28 +17038,28 @@ export declare const pageViewsResponseSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
16679
17038
|
}>, "many">;
|
|
16680
17039
|
}, "strip", z.ZodTypeAny, {
|
|
16681
17040
|
available: true;
|
|
17041
|
+
total: {
|
|
17042
|
+
views: number;
|
|
17043
|
+
visitors: number;
|
|
17044
|
+
};
|
|
16682
17045
|
paths: {
|
|
16683
17046
|
path: string;
|
|
16684
17047
|
views: number;
|
|
16685
17048
|
visitors: number;
|
|
16686
17049
|
}[];
|
|
16687
17050
|
since: string | null;
|
|
17051
|
+
}, {
|
|
17052
|
+
available: true;
|
|
16688
17053
|
total: {
|
|
16689
17054
|
views: number;
|
|
16690
17055
|
visitors: number;
|
|
16691
17056
|
};
|
|
16692
|
-
}, {
|
|
16693
|
-
available: true;
|
|
16694
17057
|
paths: {
|
|
16695
17058
|
path: string;
|
|
16696
17059
|
views: number;
|
|
16697
17060
|
visitors: number;
|
|
16698
17061
|
}[];
|
|
16699
17062
|
since: string | null;
|
|
16700
|
-
total: {
|
|
16701
|
-
views: number;
|
|
16702
|
-
visitors: number;
|
|
16703
|
-
};
|
|
16704
17063
|
}>, z.ZodObject<{
|
|
16705
17064
|
available: z.ZodLiteral<false>;
|
|
16706
17065
|
reason: z.ZodLiteral<"plan_required">;
|
|
@@ -17044,7 +17403,7 @@ export declare const jobPostingSchema: z.ZodObject<{
|
|
|
17044
17403
|
salaryMax: z.ZodNullable<z.ZodNumber>;
|
|
17045
17404
|
currency: z.ZodNullable<z.ZodString>;
|
|
17046
17405
|
/**
|
|
17047
|
-
* Pass to `client.forms.schema()` / `<
|
|
17406
|
+
* Pass to `client.forms.schema()` / `<BdForm/>` to render the application
|
|
17048
17407
|
* form. `null` means the posting is listed but not yet accepting applications.
|
|
17049
17408
|
*/
|
|
17050
17409
|
applicationFormId: z.ZodNullable<z.ZodString>;
|
|
@@ -17169,7 +17528,7 @@ export declare const jobPostingListResponseSchema: z.ZodObject<{
|
|
|
17169
17528
|
salaryMax: z.ZodNullable<z.ZodNumber>;
|
|
17170
17529
|
currency: z.ZodNullable<z.ZodString>;
|
|
17171
17530
|
/**
|
|
17172
|
-
* Pass to `client.forms.schema()` / `<
|
|
17531
|
+
* Pass to `client.forms.schema()` / `<BdForm/>` to render the application
|
|
17173
17532
|
* form. `null` means the posting is listed but not yet accepting applications.
|
|
17174
17533
|
*/
|
|
17175
17534
|
applicationFormId: z.ZodNullable<z.ZodString>;
|