sowhat-types 2.1.1 → 2.1.2

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.d.mts CHANGED
@@ -360,6 +360,16 @@ declare enum UserStatusEnum {
360
360
  BLACK_LISTED = "BLACK_LISTED"
361
361
  }
362
362
 
363
+ interface UpdateArticleInput {
364
+ category?: string;
365
+ }
366
+
367
+ interface UpdateBlogCategoryInput {
368
+ label?: string;
369
+ primaryColor?: string;
370
+ secondaryColor?: string;
371
+ }
372
+
363
373
  interface UpdateBankAccountInput {
364
374
  id: string;
365
375
  name?: string;
@@ -600,6 +610,52 @@ interface UpdateUserInput {
600
610
  expoToken?: string | null;
601
611
  }
602
612
 
613
+ interface ArticleResponse {
614
+ id: number;
615
+ slug: string;
616
+ title: string;
617
+ subtitle: string | null;
618
+ description: string;
619
+ content: string;
620
+ cover_image: string | null;
621
+ author: string | null;
622
+ category: string;
623
+ keywords: string[] | null;
624
+ reading_time: number | null;
625
+ is_published: boolean | null;
626
+ published_at: Date;
627
+ updated_at: Date | null;
628
+ created_at: Date | null;
629
+ collaboration: string | null;
630
+ }
631
+
632
+ /**
633
+ * Lightweight projection used in article lists.
634
+ * published_at is typed as string | Date because:
635
+ * - DB queries return a Date (node-postgres)
636
+ * - JSON serialization (API responses, Server→Client prop passing) produces a string
637
+ */
638
+ interface ArticlePreviewResponse {
639
+ id: number;
640
+ slug: string;
641
+ title: string;
642
+ subtitle: string | null;
643
+ cover_image: string | null;
644
+ author: string | null;
645
+ category: string;
646
+ keywords: string[] | null;
647
+ reading_time: number | null;
648
+ published_at: string | Date;
649
+ collaboration: string | null;
650
+ }
651
+
652
+ interface BlogCategoryResponse {
653
+ key: string;
654
+ label: string;
655
+ primaryColor: string;
656
+ secondaryColor: string;
657
+ }
658
+
603
659
  interface LoanResponse {
604
660
  id: string;
605
661
  bankAccountId: string;
@@ -1232,4 +1288,4 @@ declare function getProjectNeedKey(label: string): ProjectNeedEnum | null;
1232
1288
 
1233
1289
  type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
1234
1290
 
1235
- export { type AiAdvisorResponse, type AiAdvisorStatusResponse, type AiAdvisorSyntheseResponse, type AnonymousUserResponse, type AnonymousUsersResponse, AssetTypeEnum, AvailableCryptocurrencySymbolEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountsResponse, BudgetTypeEnum, type CreateCommercialOfferInput, type CreateMobilityInput, type CreateProLeadsAlertInput, type CreateProSubscriptionSessionInput, type CreateProjectInput, type CreateRealEstateInput, type CryptocurrencyAssetDeletedResponse, type CryptocurrencyAssetResponse, type CryptocurrencyResponse, type Department, DepartmentsList, EMAIL_REGEX, type ExactMatch, FetchPowensConnectionsTypeEnum, type FinancialProduct, FinancialProductEnum, FinancialProducts, type FinancialSummariesFiltersInput, type FullLeadResponse, type GetLeadsQueryInput, type HouseholdSalaryRange, HouseholdSalaryRangeEnum, HouseholdSalaryRanges, LIVES_OUTSIDE_FRANCE, type LeadAiSummaryResponse, type LeadResponse, type LeadsResponse, type LegalDocumentResponse, LegalDocumentTypeEnum, type LoanResponse, LoanTypeEnum, type ManualInitializeProInput, type MaritalStatus, MaritalStatusEnum, MartialStatuses, type MatchingLeadsResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type MonthlyMetricEntry, OfferStatusEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationResponse, type PersonalNetWorthRange, PersonalNetWorthRangeEnum, PersonalNetWorthRanges, type PersonalSalaryRange, PersonalSalaryRangeEnum, PersonalSalaryRanges, PhoneVerificationStatusEnum, type PowensConnectWebviewResponse, type PowensConnectionDeletedResponse, type PowensConnectionResponse, PowensConnectionStateEnum, type PowensManageWebviewResponse, type PowensReconnectWebviewResponse, PowensUserStatusEnum, type ProBillingPortalSessionResponse, type ProCertification, ProCertificationEnum, ProCertifications, type ProCommercialOfferLeadResponse, type ProCommercialOfferResponse, type ProLeadsAlertResponse, type ProMonitoringResponse, type ProMonthlyQuotaResponse, type ProResponse, ProStatusEnum, type ProSubscriptionSessionResponse, type ProUserLikeLeadResponse, type ProUserLikeResponse, type Profession, ProfessionEnum, type ProfessionStatus, ProfessionStatusEnum, ProfessionStatusList, ProfessionsList, type ProjectNeed, ProjectNeedEnum, ProjectNeeds, ProjectOptionEnum, type ProjectResponse, ProjectStatusEnum, type RealEstateDeletedResponse, type RealEstateResponse, RealEstateTypeEnum, type SendPhoneVerificationInput, type SendPhoneVerificationResponse, SupportedCurrencyExchangesEnum, SupportedCurrencySymbolsEnum, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateCommercialOfferAsProInput, type UpdateCommercialOfferAsUserInput, type UpdateCommercialOfferInput, type UpdateCryptocurrencyAssetInput, type UpdateMobilityInput, type UpdateOtherAssetInput, type UpdateProInput, type UpdateProLeadsAlertInput, type UpdateProjectInput, type UpdateRealEstateInput, type UpdateUserInput, type UpdateUserPersonalSummaryInput, type UserAiSummaryResponse, UserAiSummaryStatusEnum, type UserAssetsBalancesResponse, type UserAssetsResponse, type UserAuthenticatedResponse, type UserCommercialOfferResponse, type UserFinancialSummaryResponse, type UserPersonalSummaryResponse, type UserProfileResponse, UserStatusEnum, type VerifyPhoneCodeInput, type VerifyPhoneCodeResponse, getFinancialProductKey, getFinancialProductLabel, getHouseholdSalaryRangeKey, getHouseholdSalaryRangeLabel, getMaritalStatusKey, getMaritalStatusLabel, getPersonalNetWorthRangeKey, getPersonalNetWorthRangeLabel, getPersonalSalaryRangeKey, getPersonalSalaryRangeLabel, getProCertificationByKey, getProCertificationByLabelOrDescription, getProfessionKey, getProfessionLabel, getProfessionStatusKey, getProfessionStatusLabel, getProjectNeedKey, getProjectNeedProLabel, getProjectNeedUserLabel };
1291
+ export { type AiAdvisorResponse, type AiAdvisorStatusResponse, type AiAdvisorSyntheseResponse, type AnonymousUserResponse, type AnonymousUsersResponse, type ArticlePreviewResponse, type ArticleResponse, AssetTypeEnum, AvailableCryptocurrencySymbolEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountsResponse, type BlogCategoryResponse, BudgetTypeEnum, type CreateCommercialOfferInput, type CreateMobilityInput, type CreateProLeadsAlertInput, type CreateProSubscriptionSessionInput, type CreateProjectInput, type CreateRealEstateInput, type CryptocurrencyAssetDeletedResponse, type CryptocurrencyAssetResponse, type CryptocurrencyResponse, type Department, DepartmentsList, EMAIL_REGEX, type ExactMatch, FetchPowensConnectionsTypeEnum, type FinancialProduct, FinancialProductEnum, FinancialProducts, type FinancialSummariesFiltersInput, type FullLeadResponse, type GetLeadsQueryInput, type HouseholdSalaryRange, HouseholdSalaryRangeEnum, HouseholdSalaryRanges, LIVES_OUTSIDE_FRANCE, type LeadAiSummaryResponse, type LeadResponse, type LeadsResponse, type LegalDocumentResponse, LegalDocumentTypeEnum, type LoanResponse, LoanTypeEnum, type ManualInitializeProInput, type MaritalStatus, MaritalStatusEnum, MartialStatuses, type MatchingLeadsResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type MonthlyMetricEntry, OfferStatusEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationResponse, type PersonalNetWorthRange, PersonalNetWorthRangeEnum, PersonalNetWorthRanges, type PersonalSalaryRange, PersonalSalaryRangeEnum, PersonalSalaryRanges, PhoneVerificationStatusEnum, type PowensConnectWebviewResponse, type PowensConnectionDeletedResponse, type PowensConnectionResponse, PowensConnectionStateEnum, type PowensManageWebviewResponse, type PowensReconnectWebviewResponse, PowensUserStatusEnum, type ProBillingPortalSessionResponse, type ProCertification, ProCertificationEnum, ProCertifications, type ProCommercialOfferLeadResponse, type ProCommercialOfferResponse, type ProLeadsAlertResponse, type ProMonitoringResponse, type ProMonthlyQuotaResponse, type ProResponse, ProStatusEnum, type ProSubscriptionSessionResponse, type ProUserLikeLeadResponse, type ProUserLikeResponse, type Profession, ProfessionEnum, type ProfessionStatus, ProfessionStatusEnum, ProfessionStatusList, ProfessionsList, type ProjectNeed, ProjectNeedEnum, ProjectNeeds, ProjectOptionEnum, type ProjectResponse, ProjectStatusEnum, type RealEstateDeletedResponse, type RealEstateResponse, RealEstateTypeEnum, type SendPhoneVerificationInput, type SendPhoneVerificationResponse, SupportedCurrencyExchangesEnum, SupportedCurrencySymbolsEnum, type UpdateArticleInput, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateBlogCategoryInput, type UpdateCommercialOfferAsProInput, type UpdateCommercialOfferAsUserInput, type UpdateCommercialOfferInput, type UpdateCryptocurrencyAssetInput, type UpdateMobilityInput, type UpdateOtherAssetInput, type UpdateProInput, type UpdateProLeadsAlertInput, type UpdateProjectInput, type UpdateRealEstateInput, type UpdateUserInput, type UpdateUserPersonalSummaryInput, type UserAiSummaryResponse, UserAiSummaryStatusEnum, type UserAssetsBalancesResponse, type UserAssetsResponse, type UserAuthenticatedResponse, type UserCommercialOfferResponse, type UserFinancialSummaryResponse, type UserPersonalSummaryResponse, type UserProfileResponse, UserStatusEnum, type VerifyPhoneCodeInput, type VerifyPhoneCodeResponse, getFinancialProductKey, getFinancialProductLabel, getHouseholdSalaryRangeKey, getHouseholdSalaryRangeLabel, getMaritalStatusKey, getMaritalStatusLabel, getPersonalNetWorthRangeKey, getPersonalNetWorthRangeLabel, getPersonalSalaryRangeKey, getPersonalSalaryRangeLabel, getProCertificationByKey, getProCertificationByLabelOrDescription, getProfessionKey, getProfessionLabel, getProfessionStatusKey, getProfessionStatusLabel, getProjectNeedKey, getProjectNeedProLabel, getProjectNeedUserLabel };
package/dist/index.d.ts CHANGED
@@ -360,6 +360,16 @@ declare enum UserStatusEnum {
360
360
  BLACK_LISTED = "BLACK_LISTED"
361
361
  }
362
362
 
363
+ interface UpdateArticleInput {
364
+ category?: string;
365
+ }
366
+
367
+ interface UpdateBlogCategoryInput {
368
+ label?: string;
369
+ primaryColor?: string;
370
+ secondaryColor?: string;
371
+ }
372
+
363
373
  interface UpdateBankAccountInput {
364
374
  id: string;
365
375
  name?: string;
@@ -600,6 +610,52 @@ interface UpdateUserInput {
600
610
  expoToken?: string | null;
601
611
  }
602
612
 
613
+ interface ArticleResponse {
614
+ id: number;
615
+ slug: string;
616
+ title: string;
617
+ subtitle: string | null;
618
+ description: string;
619
+ content: string;
620
+ cover_image: string | null;
621
+ author: string | null;
622
+ category: string;
623
+ keywords: string[] | null;
624
+ reading_time: number | null;
625
+ is_published: boolean | null;
626
+ published_at: Date;
627
+ updated_at: Date | null;
628
+ created_at: Date | null;
629
+ collaboration: string | null;
630
+ }
631
+
632
+ /**
633
+ * Lightweight projection used in article lists.
634
+ * published_at is typed as string | Date because:
635
+ * - DB queries return a Date (node-postgres)
636
+ * - JSON serialization (API responses, Server→Client prop passing) produces a string
637
+ */
638
+ interface ArticlePreviewResponse {
639
+ id: number;
640
+ slug: string;
641
+ title: string;
642
+ subtitle: string | null;
643
+ cover_image: string | null;
644
+ author: string | null;
645
+ category: string;
646
+ keywords: string[] | null;
647
+ reading_time: number | null;
648
+ published_at: string | Date;
649
+ collaboration: string | null;
650
+ }
651
+
652
+ interface BlogCategoryResponse {
653
+ key: string;
654
+ label: string;
655
+ primaryColor: string;
656
+ secondaryColor: string;
657
+ }
658
+
603
659
  interface LoanResponse {
604
660
  id: string;
605
661
  bankAccountId: string;
@@ -1232,4 +1288,4 @@ declare function getProjectNeedKey(label: string): ProjectNeedEnum | null;
1232
1288
 
1233
1289
  type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
1234
1290
 
1235
- export { type AiAdvisorResponse, type AiAdvisorStatusResponse, type AiAdvisorSyntheseResponse, type AnonymousUserResponse, type AnonymousUsersResponse, AssetTypeEnum, AvailableCryptocurrencySymbolEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountsResponse, BudgetTypeEnum, type CreateCommercialOfferInput, type CreateMobilityInput, type CreateProLeadsAlertInput, type CreateProSubscriptionSessionInput, type CreateProjectInput, type CreateRealEstateInput, type CryptocurrencyAssetDeletedResponse, type CryptocurrencyAssetResponse, type CryptocurrencyResponse, type Department, DepartmentsList, EMAIL_REGEX, type ExactMatch, FetchPowensConnectionsTypeEnum, type FinancialProduct, FinancialProductEnum, FinancialProducts, type FinancialSummariesFiltersInput, type FullLeadResponse, type GetLeadsQueryInput, type HouseholdSalaryRange, HouseholdSalaryRangeEnum, HouseholdSalaryRanges, LIVES_OUTSIDE_FRANCE, type LeadAiSummaryResponse, type LeadResponse, type LeadsResponse, type LegalDocumentResponse, LegalDocumentTypeEnum, type LoanResponse, LoanTypeEnum, type ManualInitializeProInput, type MaritalStatus, MaritalStatusEnum, MartialStatuses, type MatchingLeadsResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type MonthlyMetricEntry, OfferStatusEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationResponse, type PersonalNetWorthRange, PersonalNetWorthRangeEnum, PersonalNetWorthRanges, type PersonalSalaryRange, PersonalSalaryRangeEnum, PersonalSalaryRanges, PhoneVerificationStatusEnum, type PowensConnectWebviewResponse, type PowensConnectionDeletedResponse, type PowensConnectionResponse, PowensConnectionStateEnum, type PowensManageWebviewResponse, type PowensReconnectWebviewResponse, PowensUserStatusEnum, type ProBillingPortalSessionResponse, type ProCertification, ProCertificationEnum, ProCertifications, type ProCommercialOfferLeadResponse, type ProCommercialOfferResponse, type ProLeadsAlertResponse, type ProMonitoringResponse, type ProMonthlyQuotaResponse, type ProResponse, ProStatusEnum, type ProSubscriptionSessionResponse, type ProUserLikeLeadResponse, type ProUserLikeResponse, type Profession, ProfessionEnum, type ProfessionStatus, ProfessionStatusEnum, ProfessionStatusList, ProfessionsList, type ProjectNeed, ProjectNeedEnum, ProjectNeeds, ProjectOptionEnum, type ProjectResponse, ProjectStatusEnum, type RealEstateDeletedResponse, type RealEstateResponse, RealEstateTypeEnum, type SendPhoneVerificationInput, type SendPhoneVerificationResponse, SupportedCurrencyExchangesEnum, SupportedCurrencySymbolsEnum, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateCommercialOfferAsProInput, type UpdateCommercialOfferAsUserInput, type UpdateCommercialOfferInput, type UpdateCryptocurrencyAssetInput, type UpdateMobilityInput, type UpdateOtherAssetInput, type UpdateProInput, type UpdateProLeadsAlertInput, type UpdateProjectInput, type UpdateRealEstateInput, type UpdateUserInput, type UpdateUserPersonalSummaryInput, type UserAiSummaryResponse, UserAiSummaryStatusEnum, type UserAssetsBalancesResponse, type UserAssetsResponse, type UserAuthenticatedResponse, type UserCommercialOfferResponse, type UserFinancialSummaryResponse, type UserPersonalSummaryResponse, type UserProfileResponse, UserStatusEnum, type VerifyPhoneCodeInput, type VerifyPhoneCodeResponse, getFinancialProductKey, getFinancialProductLabel, getHouseholdSalaryRangeKey, getHouseholdSalaryRangeLabel, getMaritalStatusKey, getMaritalStatusLabel, getPersonalNetWorthRangeKey, getPersonalNetWorthRangeLabel, getPersonalSalaryRangeKey, getPersonalSalaryRangeLabel, getProCertificationByKey, getProCertificationByLabelOrDescription, getProfessionKey, getProfessionLabel, getProfessionStatusKey, getProfessionStatusLabel, getProjectNeedKey, getProjectNeedProLabel, getProjectNeedUserLabel };
1291
+ export { type AiAdvisorResponse, type AiAdvisorStatusResponse, type AiAdvisorSyntheseResponse, type AnonymousUserResponse, type AnonymousUsersResponse, type ArticlePreviewResponse, type ArticleResponse, AssetTypeEnum, AvailableCryptocurrencySymbolEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountsResponse, type BlogCategoryResponse, BudgetTypeEnum, type CreateCommercialOfferInput, type CreateMobilityInput, type CreateProLeadsAlertInput, type CreateProSubscriptionSessionInput, type CreateProjectInput, type CreateRealEstateInput, type CryptocurrencyAssetDeletedResponse, type CryptocurrencyAssetResponse, type CryptocurrencyResponse, type Department, DepartmentsList, EMAIL_REGEX, type ExactMatch, FetchPowensConnectionsTypeEnum, type FinancialProduct, FinancialProductEnum, FinancialProducts, type FinancialSummariesFiltersInput, type FullLeadResponse, type GetLeadsQueryInput, type HouseholdSalaryRange, HouseholdSalaryRangeEnum, HouseholdSalaryRanges, LIVES_OUTSIDE_FRANCE, type LeadAiSummaryResponse, type LeadResponse, type LeadsResponse, type LegalDocumentResponse, LegalDocumentTypeEnum, type LoanResponse, LoanTypeEnum, type ManualInitializeProInput, type MaritalStatus, MaritalStatusEnum, MartialStatuses, type MatchingLeadsResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type MonthlyMetricEntry, OfferStatusEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationResponse, type PersonalNetWorthRange, PersonalNetWorthRangeEnum, PersonalNetWorthRanges, type PersonalSalaryRange, PersonalSalaryRangeEnum, PersonalSalaryRanges, PhoneVerificationStatusEnum, type PowensConnectWebviewResponse, type PowensConnectionDeletedResponse, type PowensConnectionResponse, PowensConnectionStateEnum, type PowensManageWebviewResponse, type PowensReconnectWebviewResponse, PowensUserStatusEnum, type ProBillingPortalSessionResponse, type ProCertification, ProCertificationEnum, ProCertifications, type ProCommercialOfferLeadResponse, type ProCommercialOfferResponse, type ProLeadsAlertResponse, type ProMonitoringResponse, type ProMonthlyQuotaResponse, type ProResponse, ProStatusEnum, type ProSubscriptionSessionResponse, type ProUserLikeLeadResponse, type ProUserLikeResponse, type Profession, ProfessionEnum, type ProfessionStatus, ProfessionStatusEnum, ProfessionStatusList, ProfessionsList, type ProjectNeed, ProjectNeedEnum, ProjectNeeds, ProjectOptionEnum, type ProjectResponse, ProjectStatusEnum, type RealEstateDeletedResponse, type RealEstateResponse, RealEstateTypeEnum, type SendPhoneVerificationInput, type SendPhoneVerificationResponse, SupportedCurrencyExchangesEnum, SupportedCurrencySymbolsEnum, type UpdateArticleInput, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateBlogCategoryInput, type UpdateCommercialOfferAsProInput, type UpdateCommercialOfferAsUserInput, type UpdateCommercialOfferInput, type UpdateCryptocurrencyAssetInput, type UpdateMobilityInput, type UpdateOtherAssetInput, type UpdateProInput, type UpdateProLeadsAlertInput, type UpdateProjectInput, type UpdateRealEstateInput, type UpdateUserInput, type UpdateUserPersonalSummaryInput, type UserAiSummaryResponse, UserAiSummaryStatusEnum, type UserAssetsBalancesResponse, type UserAssetsResponse, type UserAuthenticatedResponse, type UserCommercialOfferResponse, type UserFinancialSummaryResponse, type UserPersonalSummaryResponse, type UserProfileResponse, UserStatusEnum, type VerifyPhoneCodeInput, type VerifyPhoneCodeResponse, getFinancialProductKey, getFinancialProductLabel, getHouseholdSalaryRangeKey, getHouseholdSalaryRangeLabel, getMaritalStatusKey, getMaritalStatusLabel, getPersonalNetWorthRangeKey, getPersonalNetWorthRangeLabel, getPersonalSalaryRangeKey, getPersonalSalaryRangeLabel, getProCertificationByKey, getProCertificationByLabelOrDescription, getProfessionKey, getProfessionLabel, getProfessionStatusKey, getProfessionStatusLabel, getProjectNeedKey, getProjectNeedProLabel, getProjectNeedUserLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sowhat-types",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Sowhat types",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",