@layerfi/components 0.1.112-alpha.2 → 0.1.112-alpha.3

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/index.css CHANGED
@@ -4911,6 +4911,40 @@ tbody .Layer__table__empty-row:first-child {
4911
4911
  .Layer__UI__TextArea[data-disabled] {
4912
4912
  cursor: not-allowed;
4913
4913
  }
4914
+ .Layer__UI__Link {
4915
+ position: relative;
4916
+ display: inline;
4917
+ outline: none;
4918
+ cursor: pointer;
4919
+ font-size: var(--text-md);
4920
+ font-family: var(--font-family);
4921
+ font-weight: var(--font-weight-normal);
4922
+ text-decoration: none;
4923
+ }
4924
+ .Layer__UI__Link[data-ellipsis] {
4925
+ display: inline-block;
4926
+ overflow: hidden;
4927
+ white-space: nowrap;
4928
+ text-overflow: ellipsis;
4929
+ max-inline-size: 100%;
4930
+ }
4931
+ .Layer__UI__Link[data-disabled] {
4932
+ cursor: not-allowed;
4933
+ color: var(--color-base-500);
4934
+ pointer-events: none;
4935
+ }
4936
+ .Layer__UI__Link[data-size=xs] {
4937
+ font-size: var(--text-xs);
4938
+ }
4939
+ .Layer__UI__Link[data-size=sm] {
4940
+ font-size: var(--text-sm);
4941
+ }
4942
+ .Layer__UI__Link[data-size=md] {
4943
+ font-size: var(--text-md);
4944
+ }
4945
+ .Layer__UI__Link[data-size=lg] {
4946
+ font-size: var(--text-lg);
4947
+ }
4914
4948
  .Layer__ListBox {
4915
4949
  display: flex;
4916
4950
  flex-direction: column;
@@ -6037,6 +6071,11 @@ tbody .Layer__table__empty-row:first-child {
6037
6071
  .Layer__InvisibleDownload {
6038
6072
  display: none;
6039
6073
  }
6074
+ .Layer__AddToCalendar__CalendarIcon {
6075
+ height: 16px;
6076
+ width: 16px;
6077
+ border-radius: 0.25rem;
6078
+ }
6040
6079
  .Layer__call-booking {
6041
6080
  padding: var(--spacing-lg);
6042
6081
  }
@@ -6044,8 +6083,8 @@ tbody .Layer__table__empty-row:first-child {
6044
6083
  width: 100%;
6045
6084
  }
6046
6085
  .Layer__call-booking .Layer__call-booking-actions {
6086
+ position: relative;
6047
6087
  width: 100%;
6048
- margin-top: var(--spacing-md);
6049
6088
  }
6050
6089
  .Layer__call-booking .Layer__call-booking-state {
6051
6090
  text-align: center;
@@ -8401,6 +8440,17 @@ tbody .Layer__table__empty-row:first-child {
8401
8440
  .Layer__DateCalendar__Header {
8402
8441
  border-bottom: 1px solid var(--border-color);
8403
8442
  }
8443
+ .Layer__platform-onboarding__book-onboarding-call .Layer__platform-onboarding__error {
8444
+ height: 6rem;
8445
+ }
8446
+ .Layer__platform-onboarding__book-onboarding-call.is-tablet .Layer__calendly-inline-widget--success,
8447
+ .Layer__platform-onboarding__book-onboarding-call.is-desktop .Layer__calendly-inline-widget--success {
8448
+ height: 36rem;
8449
+ }
8450
+ .Layer__platform-onboarding__book-onboarding-call.is-tablet .Layer__calendly-inline-widget,
8451
+ .Layer__platform-onboarding__book-onboarding-call.is-desktop .Layer__calendly-inline-widget {
8452
+ height: 56rem;
8453
+ }
8404
8454
  .Layer__DateSelection {
8405
8455
  display: grid;
8406
8456
  grid-template-columns: repeat(2, minmax(10rem, 12rem));
package/dist/index.d.ts CHANGED
@@ -996,6 +996,31 @@ declare module '@layerfi/components/components/ActionableRow/ActionableRow' {
996
996
  declare module '@layerfi/components/components/ActionableRow/index' {
997
997
  export { ActionableRow } from '@layerfi/components/components/ActionableRow/ActionableRow';
998
998
 
999
+ }
1000
+ declare module '@layerfi/components/components/AddToCalendar/AddToCalendar' {
1001
+ export type AddToCalendarProvider = 'google' | 'outlook' | 'yahoo' | 'ics';
1002
+ export type AddToCalendarProps = {
1003
+ title: string;
1004
+ description: string;
1005
+ location?: string;
1006
+ startDate: Date;
1007
+ endDate?: Date | null;
1008
+ organizer: {
1009
+ name: string;
1010
+ email: string;
1011
+ };
1012
+ };
1013
+ export const AddToCalendar: ({ title, description, location, startDate, endDate, organizer, }: AddToCalendarProps) => import("react/jsx-runtime").JSX.Element;
1014
+
1015
+ }
1016
+ declare module '@layerfi/components/components/AddToCalendar/downloadICS' {
1017
+ import { IcsCalendar } from 'ts-ics';
1018
+ export function prepareIcsFilename(title: string): string;
1019
+ export function downloadICS(calendar: IcsCalendar, filename: string, triggerInvisibleDownload: (options: {
1020
+ url: string;
1021
+ filename?: string;
1022
+ }) => void): void;
1023
+
999
1024
  }
1000
1025
  declare module '@layerfi/components/components/Badge/Badge' {
1001
1026
  import { ReactNode } from 'react';
@@ -2136,9 +2161,8 @@ declare module '@layerfi/components/components/CallBooking/CallBooking' {
2136
2161
  export interface CallBookingProps {
2137
2162
  callBooking?: CallBookingData;
2138
2163
  onBookCall?: () => void;
2139
- onAddToCalendar?: (callBooking: CallBookingData) => void;
2140
2164
  }
2141
- export const CallBooking: ({ callBooking, onBookCall, onAddToCalendar, }: CallBookingProps) => import("react/jsx-runtime").JSX.Element;
2165
+ export const CallBooking: ({ callBooking, onBookCall, }: CallBookingProps) => import("react/jsx-runtime").JSX.Element;
2142
2166
 
2143
2167
  }
2144
2168
  declare module '@layerfi/components/components/Card/Card' {
@@ -6044,6 +6068,17 @@ declare module '@layerfi/components/components/PlatformOnboarding/PlatformOnboar
6044
6068
  export const PlatformOnboarding: ({ onComplete }: PlatformOnboardingProps) => import("react/jsx-runtime").JSX.Element;
6045
6069
  export {};
6046
6070
 
6071
+ }
6072
+ declare module '@layerfi/components/components/PlatformOnboarding/Steps/BookOnboardingCallStep' {
6073
+ type BookOnboardingCallStepProps = {
6074
+ onNext: () => void;
6075
+ title?: string;
6076
+ description?: string;
6077
+ stepsEnabled?: string[];
6078
+ };
6079
+ export const BookOnboardingCallStep: ({ title, description, onNext }: BookOnboardingCallStepProps) => import("react/jsx-runtime").JSX.Element | null;
6080
+ export {};
6081
+
6047
6082
  }
6048
6083
  declare module '@layerfi/components/components/PlatformOnboarding/Steps/BusinessInfoStep' {
6049
6084
  type BusinessInfoStepProps = {
@@ -7620,6 +7655,42 @@ declare module '@layerfi/components/components/UnifiedReport/UnifiedReportTable'
7620
7655
  declare module '@layerfi/components/components/UnifiedReport/UnifiedReportTableHeader' {
7621
7656
  export const UnifiedReportTableHeader: () => import("react/jsx-runtime").JSX.Element;
7622
7657
 
7658
+ }
7659
+ declare module '@layerfi/components/components/UnifiedReport/download/UnifiedReportDownloadButton' {
7660
+ export function UnifiedReportDownloadButton(): import("react/jsx-runtime").JSX.Element;
7661
+
7662
+ }
7663
+ declare module '@layerfi/components/components/UnifiedReport/download/useUnifiedReportDownload' {
7664
+ import type { Key } from 'swr';
7665
+ import { type SWRMutationResponse } from 'swr/mutation';
7666
+ import { S3PresignedUrlSchemaType } from '@layerfi/components/schemas/common/s3PresignedUrl';
7667
+ type DownloadUnifiedReportSWRMutationResponse = SWRMutationResponse<S3PresignedUrlSchemaType, unknown, Key, never>;
7668
+ class DownloadUnifiedReportSWRResponse {
7669
+ private swrResponse;
7670
+ constructor(swrResponse: DownloadUnifiedReportSWRMutationResponse);
7671
+ get data(): {
7672
+ readonly createdAt: Date;
7673
+ readonly documentId: string | null | undefined;
7674
+ readonly fileName: string;
7675
+ readonly presignedUrl: string;
7676
+ readonly fileType: string;
7677
+ } | undefined;
7678
+ get trigger(): import("swr/mutation").TriggerWithoutArgs<{
7679
+ readonly createdAt: Date;
7680
+ readonly documentId: string | null | undefined;
7681
+ readonly fileName: string;
7682
+ readonly presignedUrl: string;
7683
+ readonly fileType: string;
7684
+ }, unknown, Key, never>;
7685
+ get isMutating(): boolean;
7686
+ get isError(): boolean;
7687
+ }
7688
+ type UseUnifiedReportDownloadOptions = {
7689
+ onSuccess?: (url: S3PresignedUrlSchemaType) => Promise<void> | void;
7690
+ };
7691
+ export function useUnifiedReportDownload({ onSuccess }?: UseUnifiedReportDownloadOptions): DownloadUnifiedReportSWRResponse;
7692
+ export {};
7693
+
7623
7694
  }
7624
7695
  declare module '@layerfi/components/components/UploadTransactions/UploadTransactions' {
7625
7696
  import type { Awaitable } from '@layerfi/components/types/utility/promises';
@@ -7983,6 +8054,20 @@ declare module '@layerfi/components/components/ui/Input/TextArea' {
7983
8054
  export const TextArea: import("react").ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
7984
8055
  export {};
7985
8056
 
8057
+ }
8058
+ declare module '@layerfi/components/components/ui/Link/Link' {
8059
+ import { type LinkProps as ReactAriaLinkProps } from 'react-aria-components';
8060
+ type LinkSize = 'xs' | 'sm' | 'md' | 'lg';
8061
+ export const Link: import("react").ForwardRefExoticComponent<Omit<ReactAriaLinkProps, "className"> & {
8062
+ size?: LinkSize;
8063
+ ellipsis?: true;
8064
+ external?: true;
8065
+ disabled?: true;
8066
+ } & {
8067
+ children?: import("react").ReactNode | undefined;
8068
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
8069
+ export {};
8070
+
7986
8071
  }
7987
8072
  declare module '@layerfi/components/components/ui/ListBox/ListBox' {
7988
8073
  import { type ForwardedRef, type Ref } from 'react';
@@ -8357,12 +8442,14 @@ declare module '@layerfi/components/components/utility/InvisibleDownload' {
8357
8442
  type InvisibleDownloadHandle = {
8358
8443
  trigger: (options: {
8359
8444
  url: string;
8445
+ filename?: string;
8360
8446
  }) => Promise<void>;
8361
8447
  };
8362
8448
  export function useInvisibleDownload(): {
8363
8449
  invisibleDownloadRef: import("react").RefObject<InvisibleDownloadHandle>;
8364
8450
  triggerInvisibleDownload: (options: {
8365
8451
  url: string;
8452
+ filename?: string;
8366
8453
  }) => void;
8367
8454
  };
8368
8455
  const InvisibleDownload: import("react").ForwardRefExoticComponent<import("react").RefAttributes<InvisibleDownloadHandle>>;
@@ -9237,6 +9324,7 @@ declare module '@layerfi/components/features/callBookings/api/useCallBookings' {
9237
9324
  readonly purpose: CallBookingPurpose;
9238
9325
  readonly callType: CallBookingType;
9239
9326
  readonly eventStartAt: Date;
9327
+ readonly eventEndAt: Date | null | undefined;
9240
9328
  readonly callLink: URL;
9241
9329
  readonly cancellationReason?: string | null | undefined;
9242
9330
  readonly didAttend?: boolean | null | undefined;
@@ -9260,7 +9348,7 @@ declare module '@layerfi/components/features/callBookings/api/useCallBookings' {
9260
9348
 
9261
9349
  }
9262
9350
  declare module '@layerfi/components/features/callBookings/api/useCreateCallBookings' {
9263
- export function useCreateCallBooking(): import("swr/dist/mutation").SWRMutationResponse<{
9351
+ export function useCreateCallBooking(): import("swr/mutation").SWRMutationResponse<{
9264
9352
  readonly id: string;
9265
9353
  readonly businessId: string;
9266
9354
  readonly externalId: string;
@@ -9271,6 +9359,7 @@ declare module '@layerfi/components/features/callBookings/api/useCreateCallBooki
9271
9359
  readonly purpose: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingPurpose;
9272
9360
  readonly callType: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingType;
9273
9361
  readonly eventStartAt: Date;
9362
+ readonly eventEndAt: Date | null | undefined;
9274
9363
  readonly callLink: URL;
9275
9364
  readonly cancellationReason?: string | null | undefined;
9276
9365
  readonly didAttend?: boolean | null | undefined;
@@ -9282,12 +9371,9 @@ declare module '@layerfi/components/features/callBookings/api/useCreateCallBooki
9282
9371
  readonly businessId: string;
9283
9372
  readonly tags: readonly ["#call-bookings:create"];
9284
9373
  } | undefined, {
9285
- readonly externalId: string;
9286
- readonly location?: string | undefined;
9374
+ readonly external_id: string;
9287
9375
  readonly purpose: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingPurpose;
9288
- readonly callType: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingType;
9289
- readonly eventStartAt?: Date | undefined;
9290
- readonly cancellationReason?: string | undefined;
9376
+ readonly call_type: import("@layerfi/components/features/callBookings/api/useCallBookings").CallBookingType;
9291
9377
  }>;
9292
9378
 
9293
9379
  }
@@ -13293,6 +13379,53 @@ declare module '@layerfi/components/hooks/useBills' {
13293
13379
  export const useBills: UseBills;
13294
13380
  export {};
13295
13381
 
13382
+ }
13383
+ declare module '@layerfi/components/hooks/useBookkeepingConfiguration/index' {
13384
+ export { useBookkeepingConfiguration, BookkeepingStatus, TransactionTaggingStrategy, BOOKKEEPING_CONFIGURATION_TAG_KEY, } from '@layerfi/components/hooks/useBookkeepingConfiguration/useBookkeepingConfiguration';
13385
+ export type { BookkeepingConfiguration } from '@layerfi/components/hooks/useBookkeepingConfiguration/useBookkeepingConfiguration';
13386
+
13387
+ }
13388
+ declare module '@layerfi/components/hooks/useBookkeepingConfiguration/useBookkeepingConfiguration' {
13389
+ import { type SWRResponse } from 'swr';
13390
+ import { BookkeepingConfiguration, BookkeepingStatus, TransactionTaggingStrategy } from '@layerfi/components/schemas/bookkeepingConfiguration';
13391
+ export type { BookkeepingConfiguration };
13392
+ export { BookkeepingStatus, TransactionTaggingStrategy };
13393
+ export const BOOKKEEPING_CONFIGURATION_TAG_KEY = "#bookkeeping-configuration";
13394
+ class BookkeepingConfigurationSWRResponse {
13395
+ private swrResponse;
13396
+ constructor(swrResponse: SWRResponse<BookkeepingConfiguration>);
13397
+ get data(): {
13398
+ readonly businessId: string;
13399
+ readonly bookkeeperId: string | null | undefined;
13400
+ readonly firstMonthPurchasedDate: Date | null | undefined;
13401
+ readonly onboardingDate: Date | null | undefined;
13402
+ readonly churnedDate: Date | null | undefined;
13403
+ readonly bookkeepingEndDate: Date | null | undefined;
13404
+ readonly bookkeepingStatus: BookkeepingStatus;
13405
+ readonly transactionTaggingStrategy: TransactionTaggingStrategy.PC_MSO | null;
13406
+ readonly notes: string | null;
13407
+ readonly onboardingCallUrl: string | null;
13408
+ readonly adhocCallUrl: string | null;
13409
+ } | undefined;
13410
+ get isLoading(): boolean;
13411
+ get isValidating(): boolean;
13412
+ get isError(): boolean;
13413
+ get mutate(): import("swr").KeyedMutator<{
13414
+ readonly businessId: string;
13415
+ readonly bookkeeperId: string | null | undefined;
13416
+ readonly firstMonthPurchasedDate: Date | null | undefined;
13417
+ readonly onboardingDate: Date | null | undefined;
13418
+ readonly churnedDate: Date | null | undefined;
13419
+ readonly bookkeepingEndDate: Date | null | undefined;
13420
+ readonly bookkeepingStatus: BookkeepingStatus;
13421
+ readonly transactionTaggingStrategy: TransactionTaggingStrategy.PC_MSO | null;
13422
+ readonly notes: string | null;
13423
+ readonly onboardingCallUrl: string | null;
13424
+ readonly adhocCallUrl: string | null;
13425
+ }>;
13426
+ }
13427
+ export function useBookkeepingConfiguration(): BookkeepingConfigurationSWRResponse;
13428
+
13296
13429
  }
13297
13430
  declare module '@layerfi/components/hooks/useCalendly/useCalendly' {
13298
13431
  import { ServiceOfferingLink } from '@layerfi/components/components/ServiceOffering/types';
@@ -13309,7 +13442,11 @@ declare module '@layerfi/components/hooks/useCalendly/useCalendly' {
13309
13442
  payload?: CalendlyPayload;
13310
13443
  }
13311
13444
  export const isCalendlyLink: (link?: ServiceOfferingLink) => boolean;
13312
- export const useCalendly: () => {
13445
+ export const createCalendlyMessageHandler: (onEventScheduled?: (payload?: CalendlyPayload) => void) => (e: MessageEvent) => void;
13446
+ export interface UseCalendlyOptions {
13447
+ onEventScheduled?: (payload?: CalendlyPayload) => void;
13448
+ }
13449
+ export const useCalendly: (options?: UseCalendlyOptions) => {
13313
13450
  isCalendlyVisible: boolean;
13314
13451
  calendlyLink: string;
13315
13452
  calendlyRef: import("react").RefObject<HTMLDivElement>;
@@ -17173,22 +17310,21 @@ declare module '@layerfi/components/providers/ReportsModeStoreProvider/ReportsMo
17173
17310
  export {};
17174
17311
 
17175
17312
  }
17176
- declare module '@layerfi/components/providers/UnifiedReportRouteStore/UnifiedReportRouteStoreProvider' {
17313
+ declare module '@layerfi/components/providers/UnifiedReportStore/UnifiedReportStoreProvider' {
17177
17314
  import { type PropsWithChildren } from 'react';
17178
- import { ReportEnum, type UnifiedReportDateQueryParams } from '@layerfi/components/schemas/reports/unifiedReport';
17179
- type UnifiedReportRouteState = {
17180
- report: ReportEnum;
17181
- };
17315
+ import { ReportEnum, type DateQueryParams, type DateRangeQueryParams } from '@layerfi/components/schemas/reports/unifiedReport';
17182
17316
  export enum UnifiedReportDateVariant {
17183
17317
  Date = "Date",
17184
17318
  DateRange = "DateRange"
17185
17319
  }
17186
- export const getDateVariantForReportType: (reportType: ReportEnum) => UnifiedReportDateVariant;
17187
- export function useUnifiedReportRoute(): UnifiedReportRouteState;
17320
+ export type UnifiedReportWithDateParams = {
17321
+ report: ReportEnum.BalanceSheet;
17322
+ } & DateQueryParams | {
17323
+ report: ReportEnum.CashflowStatement;
17324
+ } & DateRangeQueryParams;
17188
17325
  export function useUnifiedReportDateVariant(): UnifiedReportDateVariant;
17189
- export function useUnifiedReportDateOrDateRange(): UnifiedReportDateQueryParams;
17190
- export function UnifiedReportRouteStoreProvider(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
17191
- export {};
17326
+ export function useUnifiedReportWithDateParams(): UnifiedReportWithDateParams;
17327
+ export function UnifiedReportStoreProvider(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
17192
17328
 
17193
17329
  }
17194
17330
  declare module '@layerfi/components/public/styles/publicClassname' {
@@ -19693,6 +19829,49 @@ declare module '@layerfi/components/schemas/bankTransactions/match' {
19693
19829
  }>>]>;
19694
19830
  }>;
19695
19831
 
19832
+ }
19833
+ declare module '@layerfi/components/schemas/bookkeepingConfiguration' {
19834
+ import { Schema } from 'effect';
19835
+ export enum TransactionTaggingStrategy {
19836
+ PC_MSO = "PC_MSO"
19837
+ }
19838
+ export enum BookkeepingStatus {
19839
+ NOT_PURCHASED = "NOT_PURCHASED",
19840
+ ONBOARDING = "ONBOARDING",
19841
+ BOOKKEEPING_PAUSED = "BOOKKEEPING_PAUSED",
19842
+ ACTIVE = "ACTIVE"
19843
+ }
19844
+ export const BookkeepingConfigurationSchema: Schema.Struct<{
19845
+ businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
19846
+ bookkeeperId: Schema.PropertySignature<":", string | null | undefined, "bookkeeper_id", ":", string | null | undefined, false, never>;
19847
+ firstMonthPurchasedDate: Schema.PropertySignature<":", Date | null | undefined, "first_month_purchased_date", ":", string | null | undefined, false, never>;
19848
+ onboardingDate: Schema.PropertySignature<":", Date | null | undefined, "onboarding_date", ":", string | null | undefined, false, never>;
19849
+ churnedDate: Schema.PropertySignature<":", Date | null | undefined, "churned_date", ":", string | null | undefined, false, never>;
19850
+ bookkeepingEndDate: Schema.PropertySignature<":", Date | null | undefined, "bookkeeping_end_date", ":", string | null | undefined, false, never>;
19851
+ bookkeepingStatus: Schema.PropertySignature<":", BookkeepingStatus, "bookkeeping_status", ":", string, false, never>;
19852
+ transactionTaggingStrategy: Schema.PropertySignature<":", TransactionTaggingStrategy.PC_MSO | null, "transaction_tagging_strategy", ":", string | null, false, never>;
19853
+ notes: Schema.NullOr<typeof Schema.String>;
19854
+ onboardingCallUrl: Schema.PropertySignature<":", string | null, "onboarding_call_url", ":", string | null, false, never>;
19855
+ adhocCallUrl: Schema.PropertySignature<":", string | null, "adhoc_call_url", ":", string | null, false, never>;
19856
+ }>;
19857
+ export type BookkeepingConfiguration = typeof BookkeepingConfigurationSchema.Type;
19858
+ export const BookkeepingConfigurationResponseSchema: Schema.Struct<{
19859
+ data: Schema.Struct<{
19860
+ businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
19861
+ bookkeeperId: Schema.PropertySignature<":", string | null | undefined, "bookkeeper_id", ":", string | null | undefined, false, never>;
19862
+ firstMonthPurchasedDate: Schema.PropertySignature<":", Date | null | undefined, "first_month_purchased_date", ":", string | null | undefined, false, never>;
19863
+ onboardingDate: Schema.PropertySignature<":", Date | null | undefined, "onboarding_date", ":", string | null | undefined, false, never>;
19864
+ churnedDate: Schema.PropertySignature<":", Date | null | undefined, "churned_date", ":", string | null | undefined, false, never>;
19865
+ bookkeepingEndDate: Schema.PropertySignature<":", Date | null | undefined, "bookkeeping_end_date", ":", string | null | undefined, false, never>;
19866
+ bookkeepingStatus: Schema.PropertySignature<":", BookkeepingStatus, "bookkeeping_status", ":", string, false, never>;
19867
+ transactionTaggingStrategy: Schema.PropertySignature<":", TransactionTaggingStrategy.PC_MSO | null, "transaction_tagging_strategy", ":", string | null, false, never>;
19868
+ notes: Schema.NullOr<typeof Schema.String>;
19869
+ onboardingCallUrl: Schema.PropertySignature<":", string | null, "onboarding_call_url", ":", string | null, false, never>;
19870
+ adhocCallUrl: Schema.PropertySignature<":", string | null, "adhoc_call_url", ":", string | null, false, never>;
19871
+ }>;
19872
+ }>;
19873
+ export type BookkeepingConfigurationResponse = typeof BookkeepingConfigurationResponseSchema.Type;
19874
+
19696
19875
  }
19697
19876
  declare module '@layerfi/components/schemas/callBookings' {
19698
19877
  import { Schema } from 'effect';
@@ -19709,7 +19888,7 @@ declare module '@layerfi/components/schemas/callBookings' {
19709
19888
  BOOKKEEPING_ONBOARDING = "BOOKKEEPING_ONBOARDING",
19710
19889
  ADHOC = "ADHOC"
19711
19890
  }
19712
- export const CallBookingSchema: Schema.Struct<{
19891
+ const CallBookingSchema: Schema.Struct<{
19713
19892
  id: typeof Schema.UUID;
19714
19893
  businessId: Schema.PropertySignature<":", string, "business_id", ":", string, false, never>;
19715
19894
  externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
@@ -19717,6 +19896,7 @@ declare module '@layerfi/components/schemas/callBookings' {
19717
19896
  state: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<CallBookingState, CallBookingState, never>>;
19718
19897
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", string, false, never>;
19719
19898
  eventStartAt: Schema.PropertySignature<":", Date, "event_start_at", ":", string, false, never>;
19899
+ eventEndAt: Schema.PropertySignature<":", Date | null | undefined, "event_end_at", ":", string | null | undefined, false, never>;
19720
19900
  callLink: Schema.PropertySignature<":", URL, "call_link", ":", string, false, never>;
19721
19901
  cancellationReason: Schema.PropertySignature<"?:", string | null | undefined, "cancellation_reason", "?:", string | null | undefined, false, never>;
19722
19902
  didAttend: Schema.PropertySignature<"?:", boolean | null | undefined, "did_attend", "?:", boolean | null | undefined, false, never>;
@@ -19736,6 +19916,7 @@ declare module '@layerfi/components/schemas/callBookings' {
19736
19916
  state: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<CallBookingState, CallBookingState, never>>;
19737
19917
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", string, false, never>;
19738
19918
  eventStartAt: Schema.PropertySignature<":", Date, "event_start_at", ":", string, false, never>;
19919
+ eventEndAt: Schema.PropertySignature<":", Date | null | undefined, "event_end_at", ":", string | null | undefined, false, never>;
19739
19920
  callLink: Schema.PropertySignature<":", URL, "call_link", ":", string, false, never>;
19740
19921
  cancellationReason: Schema.PropertySignature<"?:", string | null | undefined, "cancellation_reason", "?:", string | null | undefined, false, never>;
19741
19922
  didAttend: Schema.PropertySignature<"?:", boolean | null | undefined, "did_attend", "?:", boolean | null | undefined, false, never>;
@@ -19763,6 +19944,7 @@ declare module '@layerfi/components/schemas/callBookings' {
19763
19944
  state: Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<CallBookingState, CallBookingState, never>>;
19764
19945
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", string, false, never>;
19765
19946
  eventStartAt: Schema.PropertySignature<":", Date, "event_start_at", ":", string, false, never>;
19947
+ eventEndAt: Schema.PropertySignature<":", Date | null | undefined, "event_end_at", ":", string | null | undefined, false, never>;
19766
19948
  callLink: Schema.PropertySignature<":", URL, "call_link", ":", string, false, never>;
19767
19949
  cancellationReason: Schema.PropertySignature<"?:", string | null | undefined, "cancellation_reason", "?:", string | null | undefined, false, never>;
19768
19950
  didAttend: Schema.PropertySignature<"?:", boolean | null | undefined, "did_attend", "?:", boolean | null | undefined, false, never>;
@@ -19778,34 +19960,23 @@ declare module '@layerfi/components/schemas/callBookings' {
19778
19960
  externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
19779
19961
  purpose: Schema.Enums<typeof CallBookingPurpose>;
19780
19962
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", CallBookingType, false, never>;
19781
- eventStartAt: Schema.PropertySignature<"?:", Date | undefined, "event_start_at", "?:", string | undefined, false, never>;
19782
- location: Schema.optional<typeof Schema.String>;
19783
- cancellationReason: Schema.PropertySignature<"?:", string | undefined, "cancellation_reason", "?:", string | undefined, false, never>;
19784
19963
  }>;
19785
19964
  export const CreateCallBookingBodySchema: Schema.Struct<{
19786
19965
  externalId: Schema.PropertySignature<":", string, "external_id", ":", string, false, never>;
19787
19966
  purpose: Schema.Enums<typeof CallBookingPurpose>;
19788
19967
  callType: Schema.PropertySignature<":", CallBookingType, "call_type", ":", CallBookingType, false, never>;
19789
- eventStartAt: Schema.PropertySignature<"?:", Date | undefined, "event_start_at", "?:", string | undefined, false, never>;
19790
- location: Schema.optional<typeof Schema.String>;
19791
- cancellationReason: Schema.PropertySignature<"?:", string | undefined, "cancellation_reason", "?:", string | undefined, false, never>;
19792
19968
  }>;
19793
19969
  export const encodeCreateCallBookingBody: (a: {
19794
19970
  readonly externalId: string;
19795
- readonly location?: string | undefined;
19796
19971
  readonly purpose: CallBookingPurpose;
19797
19972
  readonly callType: CallBookingType;
19798
- readonly eventStartAt?: Date | undefined;
19799
- readonly cancellationReason?: string | undefined;
19800
19973
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
19801
19974
  readonly external_id: string;
19802
19975
  readonly purpose: CallBookingPurpose;
19803
19976
  readonly call_type: CallBookingType;
19804
- readonly location?: string | undefined;
19805
- readonly event_start_at?: string | undefined;
19806
- readonly cancellation_reason?: string | undefined;
19807
19977
  };
19808
19978
  export type CreateCallBookingBody = typeof CreateCallBookingBodySchemaDefinition.Type;
19979
+ export type CreateCallBookingBodyEncoded = typeof CreateCallBookingBodySchemaDefinition.Encoded;
19809
19980
  export {};
19810
19981
 
19811
19982
  }
@@ -20553,6 +20724,18 @@ declare module '@layerfi/components/schemas/common/lineItem' {
20553
20724
  export const decodeLineItemWithId: (input: unknown) => Effect.Effect<LineItemWithId, ParseResult.ParseError>;
20554
20725
  export {};
20555
20726
 
20727
+ }
20728
+ declare module '@layerfi/components/schemas/common/s3PresignedUrl' {
20729
+ import { Schema } from 'effect';
20730
+ export const S3PresignedUrlSchema: Schema.Struct<{
20731
+ presignedUrl: typeof Schema.String;
20732
+ fileType: typeof Schema.String;
20733
+ fileName: typeof Schema.String;
20734
+ createdAt: typeof Schema.Date;
20735
+ documentId: Schema.NullishOr<typeof Schema.UUID>;
20736
+ }>;
20737
+ export type S3PresignedUrlSchemaType = typeof S3PresignedUrlSchema.Type;
20738
+
20556
20739
  }
20557
20740
  declare module '@layerfi/components/schemas/common/zonedDateTimeFromSelf' {
20558
20741
  import { Schema } from 'effect';
@@ -23356,10 +23539,12 @@ declare module '@layerfi/components/schemas/reports/unifiedReport' {
23356
23539
  export const DateQueryParamsSchema: Schema.Struct<{
23357
23540
  effectiveDate: Schema.PropertySignature<":", Date, "effective_date", ":", string, false, never>;
23358
23541
  }>;
23542
+ export type DateQueryParams = typeof DateQueryParamsSchema.Type;
23359
23543
  export const DateRangeQueryParamsSchema: Schema.Struct<{
23360
23544
  startDate: Schema.PropertySignature<":", Date, "start_date", ":", string, false, never>;
23361
23545
  endDate: Schema.PropertySignature<":", Date, "end_date", ":", string, false, never>;
23362
23546
  }>;
23547
+ export type DateRangeQueryParams = typeof DateRangeQueryParamsSchema.Type;
23363
23548
  export const UnifiedReportDateQueryParamsSchema: Schema.Union<[Schema.Struct<{
23364
23549
  effectiveDate: Schema.PropertySignature<":", Date, "effective_date", ":", string, false, never>;
23365
23550
  }>, Schema.Struct<{
@@ -23387,6 +23572,11 @@ declare module '@layerfi/components/schemas/reports/unifiedReport' {
23387
23572
  }>;
23388
23573
  export type UnifiedReport = typeof UnifiedReportSchema.Type;
23389
23574
 
23575
+ }
23576
+ declare module '@layerfi/components/schemas/utils' {
23577
+ import { Schema } from 'effect/index';
23578
+ export const createTransformedEnumSchema: <T extends Record<string, string>>(enumSchema: Schema.Schema<T[keyof T], T[keyof T]>, enumObject: T, defaultValue: T[keyof T]) => Schema.transform<typeof Schema.NonEmptyTrimmedString, Schema.SchemaClass<T[keyof T], T[keyof T], never>>;
23579
+
23390
23580
  }
23391
23581
  declare module '@layerfi/components/schemas/vendor' {
23392
23582
  import { Schema } from 'effect';
@@ -25030,6 +25220,15 @@ declare module '@layerfi/components/utils/time/timeUtils' {
25030
25220
  export function isZonedDateTime(val: unknown): val is ZonedDateTime;
25031
25221
  export const convertDateToZonedDateTime: (date: Date | null) => ZonedDateTime | null;
25032
25222
 
25223
+ }
25224
+ declare module '@layerfi/components/utils/time/timezoneUtils' {
25225
+ /**
25226
+ * Gets the timezone abbreviation for a given date based on the user's locale
25227
+ * @param date - The date to get the timezone for
25228
+ * @returns Timezone abbreviation (e.g., "PST", "EST", "GMT") or empty string if unable to determine
25229
+ */
25230
+ export const getTimezoneDisplay: (date: Date) => string;
25231
+
25033
25232
  }
25034
25233
  declare module '@layerfi/components/utils/vendors' {
25035
25234
  import { Vendor } from '@layerfi/components/types/vendors';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.112-alpha.2",
3
+ "version": "0.1.112-alpha.3",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -79,6 +79,7 @@
79
79
  "@tanstack/react-form": "^1.19.0",
80
80
  "@tanstack/react-table": "^8.21.3",
81
81
  "@tanstack/react-virtual": "^3.13.9",
82
+ "calendar-link": "^2.11.0",
82
83
  "classnames": "^2.5.1",
83
84
  "date-fns": "^4.1.0",
84
85
  "effect": "^3.16.3",
@@ -94,6 +95,7 @@
94
95
  "react-select": "^5.10.1",
95
96
  "recharts": "^2.15.3",
96
97
  "swr": "^2.3.3",
98
+ "ts-ics": "^2.4.0",
97
99
  "uuid": "^11.1.0",
98
100
  "zustand": "^5.0.4"
99
101
  }