diff --git a/types/facebook-nodejs-business-sdk/facebook-nodejs-business-sdk-tests.ts b/types/facebook-nodejs-business-sdk/facebook-nodejs-business-sdk-tests.ts index a7877c5b6fe822..41eaa1f64e733e 100644 --- a/types/facebook-nodejs-business-sdk/facebook-nodejs-business-sdk-tests.ts +++ b/types/facebook-nodejs-business-sdk/facebook-nodejs-business-sdk-tests.ts @@ -22,6 +22,8 @@ import { FacebookRequestError } from 'facebook-nodejs-business-sdk/src/exception import TEventRequest from "facebook-nodejs-business-sdk/src/objects/serverside/event-request"; import BusinessDataApiUserData from "facebook-nodejs-business-sdk/src/objects/serverside/user-data"; import AttributionData from "facebook-nodejs-business-sdk/src/objects/serverside/attribution-data"; +import AttributionSetting from "facebook-nodejs-business-sdk/src/objects/serverside/attribution-setting"; +import DeclineReason from "facebook-nodejs-business-sdk/src/objects/serverside/decline-reason"; async function testGetAdsFetchFirstPageFalse(): Promise>> { const ads = []; @@ -164,6 +166,11 @@ export function testAttributionDataConstructor() { const attributionData = new AttributionData(); } +export function testAttributionSettingAndDeclineReasonExports() { + void new AttributionSetting(24, 168); + void DeclineReason.UNKNOWN; +} + export function testAdCampaignStatsFields() { AdCampaignStats.Fields.account_id; AdCampaignStats.Fields.actions; diff --git a/types/facebook-nodejs-business-sdk/index.d.ts b/types/facebook-nodejs-business-sdk/index.d.ts index 86b83368599ae5..d829d150e13be0 100644 --- a/types/facebook-nodejs-business-sdk/index.d.ts +++ b/types/facebook-nodejs-business-sdk/index.d.ts @@ -92,6 +92,7 @@ export { default as AdAssetCustomizationRuleCustomizationSpec } from "./src/obje export { default as AdAssetDescription } from "./src/objects/ad-asset-description"; export { default as AdAssetFeedAdditionalData } from "./src/objects/ad-asset-feed-additional-data"; export { default as AdAssetFeedAdditionalDataPageNudgeMessage } from "./src/objects/ad-asset-feed-additional-data-page-nudge-message"; +export { default as AdAssetFeedAdditionalDataReconsiderationOffer } from "./src/objects/ad-asset-feed-additional-data-reconsideration-offer"; export { default as AdAssetFeedSpec } from "./src/objects/ad-asset-feed-spec"; export { default as AdAssetFeedSpecAssetCustomizationRule } from "./src/objects/ad-asset-feed-spec-asset-customization-rule"; export { default as AdAssetFeedSpecAssetLabel } from "./src/objects/ad-asset-feed-spec-asset-label"; @@ -342,13 +343,11 @@ export { default as AudienceSharingRecipientAccounts } from "./src/objects/audie export { default as AudioAsset } from "./src/objects/audio-asset"; export { default as AudioCopyright } from "./src/objects/audio-copyright"; export { default as AudioIsrc } from "./src/objects/audio-isrc"; -export { default as AudioRelease } from "./src/objects/audio-release"; export { default as AudioSubLabel } from "./src/objects/audio-sub-label"; export { default as AudioVisualReferenceMatch } from "./src/objects/audio-visual-reference-match"; export { default as AuthLink } from "./src/objects/auth-link"; export { default as AutomotiveModel } from "./src/objects/automotive-model"; export { default as Avatar } from "./src/objects/avatar"; -export { default as AvatarProfilePicture } from "./src/objects/avatar-profile-picture"; export { default as BAPIDomain } from "./src/objects/bapi-domain"; export { default as BCPCampaign } from "./src/objects/bcp-campaign"; export { default as BidSchedule } from "./src/objects/bid-schedule"; @@ -408,6 +407,7 @@ export { default as CPASSetup } from "./src/objects/cpas-setup"; export { default as CPASSetupPageStructureProgress } from "./src/objects/cpas-setup-page-structure-progress"; export { default as CRMAddress } from "./src/objects/crm-address"; export { default as CTWAWhatsAppNumbersInfo } from "./src/objects/ctwa-whats-app-numbers-info"; +export { default as CTXDFOObjectiveDefaults } from "./src/objects/ctxdfo-objective-defaults"; export { default as CTXDefaultOptimizationConfig } from "./src/objects/ctx-default-optimization-config"; export { default as CTXOptimizationEligibility } from "./src/objects/ctx-optimization-eligibility"; export { default as CTXPartnerAppWelcomeMessageFlow } from "./src/objects/ctx-partner-app-welcome-message-flow"; @@ -494,6 +494,7 @@ export { default as CustomConversion } from "./src/objects/custom-conversion"; export { default as CustomConversionActivities } from "./src/objects/custom-conversion-activities"; export { default as CustomConversionStatsResult } from "./src/objects/custom-conversion-stats-result"; export { default as CustomUserSettings } from "./src/objects/custom-user-settings"; +export { default as CustomerElasticityStudyMetrics } from "./src/objects/customer-elasticity-study-metrics"; export { default as DACheck } from "./src/objects/da-check"; export { default as Dataset } from "./src/objects/dataset"; export { default as DayPart } from "./src/objects/day-part"; @@ -537,11 +538,9 @@ export { default as ExternalEventSourceCPASEventsDebuggingInfo } from "./src/obj export { default as ExternalMerchantSettings } from "./src/objects/external-merchant-settings"; export { default as FAMEKumo } from "./src/objects/fame-kumo"; export { default as FBImageCopyrightMatch } from "./src/objects/fb-image-copyright-match"; -export { default as FBLiteToNTTransitions } from "./src/objects/fb-lite-to-nt-transitions"; export { default as FBPageAndInstagramAccount } from "./src/objects/fb-page-and-instagram-account"; export { default as FBPayButtonLogin } from "./src/objects/fb-pay-button-login"; export { default as FantasyGame } from "./src/objects/fantasy-game"; -export { default as FavoriteCatalog } from "./src/objects/favorite-catalog"; export { default as FinanceObject } from "./src/objects/finance-object"; export { default as FlexibleTargeting } from "./src/objects/flexible-targeting"; export { default as Flight } from "./src/objects/flight"; @@ -553,6 +552,7 @@ export { default as FundingSourceDetailsCouponTiering } from "./src/objects/fund export { default as FundraiserPersonToCharity } from "./src/objects/fundraiser-person-to-charity"; export { default as GeoGatingPolicy } from "./src/objects/geo-gating-policy"; export { default as Group } from "./src/objects/group"; +export { default as GuidanceLiftEstimate } from "./src/objects/guidance-lift-estimate"; export { default as HasLeadAccess } from "./src/objects/has-lead-access"; export { default as HighDemandPeriod } from "./src/objects/high-demand-period"; export { default as HighDemandPeriodTimeSuggestionWeeklySegment } from "./src/objects/high-demand-period-time-suggestion-weekly-segment"; @@ -646,6 +646,7 @@ export { default as MailingAddress } from "./src/objects/mailing-address"; export { default as ManagedPartnerBusiness } from "./src/objects/managed-partner-business"; export { default as ManagedPartnerExtendedCredit } from "./src/objects/managed-partner-extended-credit"; export { default as ManagementSiteLink } from "./src/objects/management-site-link"; +export { default as MarketingMessagesOnboardingStatus } from "./src/objects/marketing-messages-onboarding-status"; export { default as McomInvoiceBankAccount } from "./src/objects/mcom-invoice-bank-account"; export { default as McomInvoiceDetails } from "./src/objects/mcom-invoice-details"; export { default as McomInvoiceLists } from "./src/objects/mcom-invoice-lists"; @@ -664,6 +665,7 @@ export { default as MessagingFeatureReview } from "./src/objects/messaging-featu export { default as MessagingFeatureStatus } from "./src/objects/messaging-feature-status"; export { default as MessengerAdsPartialAutomatedStepList } from "./src/objects/messenger-ads-partial-automated-step-list"; export { default as MessengerBusinessTemplate } from "./src/objects/messenger-business-template"; +export { default as MessengerCallPermissions } from "./src/objects/messenger-call-permissions"; export { default as MessengerCallSettings } from "./src/objects/messenger-call-settings"; export { default as MessengerDestinationPageWelcomeMessage } from "./src/objects/messenger-destination-page-welcome-message"; export { default as MessengerProfile } from "./src/objects/messenger-profile"; @@ -728,6 +730,7 @@ export { default as PageUserPermissions } from "./src/objects/page-user-permissi export { default as PageUserWithLeadsAccess } from "./src/objects/page-user-with-leads-access"; export { default as PartnerAccountLinking } from "./src/objects/partner-account-linking"; export { default as PartnerCategory } from "./src/objects/partner-category"; +export { default as PartnerCenterExportFile } from "./src/objects/partner-center-export-file"; export { default as PartnerIntegrationLinked } from "./src/objects/partner-integration-linked"; export { default as PartnerStudy } from "./src/objects/partner-study"; export { default as PartnershipAdContentSearchMedia } from "./src/objects/partnership-ad-content-search-media"; @@ -745,6 +748,7 @@ export { default as Place } from "./src/objects/place"; export { default as PlaceTag } from "./src/objects/place-tag"; export { default as PlaceTopic } from "./src/objects/place-topic"; export { default as Placement } from "./src/objects/placement"; +export { default as PlacementSoftOptOut } from "./src/objects/placement-soft-opt-out"; export { default as PlatformImageSource } from "./src/objects/platform-image-source"; export { default as PlatformSessionKey } from "./src/objects/platform-session-key"; export { default as PlayableContent } from "./src/objects/playable-content"; @@ -756,6 +760,7 @@ export { default as PrivacyOption } from "./src/objects/privacy-option"; export { default as PrivateLiftStudyInstance } from "./src/objects/private-lift-study-instance"; export { default as ProductCatalog } from "./src/objects/product-catalog"; export { default as ProductCatalogCategory } from "./src/objects/product-catalog-category"; +export { default as ProductCatalogCheckMarketplacePartnerDealsStatus } from "./src/objects/product-catalog-check-marketplace-partner-deals-status"; export { default as ProductCatalogCheckMarketplacePartnerSellersStatus } from "./src/objects/product-catalog-check-marketplace-partner-sellers-status"; export { default as ProductCatalogDataSource } from "./src/objects/product-catalog-data-source"; export { default as ProductCatalogDiagnosticGroup } from "./src/objects/product-catalog-diagnostic-group"; @@ -842,10 +847,13 @@ export { default as ShadowIGHashtag } from "./src/objects/shadow-ig-hashtag"; export { default as ShadowIGMediaBuilder } from "./src/objects/shadow-ig-media-builder"; export { default as ShadowIGMediaCollaborators } from "./src/objects/shadow-ig-media-collaborators"; export { default as ShadowIGMediaProductTags } from "./src/objects/shadow-ig-media-product-tags"; +export { default as ShadowIGScheduledMedia } from "./src/objects/shadow-ig-scheduled-media"; export { default as ShadowIGUserCTXPartnerAppWelcomeMessageFlow } from "./src/objects/shadow-ig-user-ctx-partner-app-welcome-message-flow"; export { default as ShadowIGUserCatalogProductSearch } from "./src/objects/shadow-ig-user-catalog-product-search"; export { default as ShadowIGUserCatalogProductVariant } from "./src/objects/shadow-ig-user-catalog-product-variant"; +export { default as ShadowIGUserCollaborationInvites } from "./src/objects/shadow-ig-user-collaboration-invites"; export { default as ShadowIGUserPartnershipAdsMediaErrors } from "./src/objects/shadow-ig-user-partnership-ads-media-errors"; +export { default as ShadowIGUserThreadOwner } from "./src/objects/shadow-ig-user-thread-owner"; export { default as Shop } from "./src/objects/shop"; export { default as SignalsIWLExtractor } from "./src/objects/signals-iwl-extractor"; export { default as SingleOwnerAdditionalProfile } from "./src/objects/single-owner-additional-profile"; @@ -896,6 +904,7 @@ export { default as TimezoneOffset } from "./src/objects/timezone-offset"; export { default as TrackingAndConversionWithDefaults } from "./src/objects/tracking-and-conversion-with-defaults"; export { default as TransactableItem } from "./src/objects/transactable-item"; export { default as Transaction } from "./src/objects/transaction"; +export { default as TrendingTopicsSpec } from "./src/objects/trending-topics-spec"; export { default as URL } from "./src/objects/url"; export { default as UnifiedThread } from "./src/objects/unified-thread"; export { default as UniqueAdCreative } from "./src/objects/unique-ad-creative"; diff --git a/types/facebook-nodejs-business-sdk/package.json b/types/facebook-nodejs-business-sdk/package.json index 322558b14ac60a..ec3a2a002852ff 100644 --- a/types/facebook-nodejs-business-sdk/package.json +++ b/types/facebook-nodejs-business-sdk/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/facebook-nodejs-business-sdk", - "version": "23.0.9999", + "version": "24.0.9999", "projects": [ "https://github.com/facebook/facebook-nodejs-business-sdk" ], diff --git a/types/facebook-nodejs-business-sdk/scripts/package.json b/types/facebook-nodejs-business-sdk/scripts/package.json index f2728d66a2a063..d6a5a86c1a0211 100644 --- a/types/facebook-nodejs-business-sdk/scripts/package.json +++ b/types/facebook-nodejs-business-sdk/scripts/package.json @@ -5,7 +5,7 @@ }, "devDependencies": { "@khanacademy/flow-to-ts": "^0.5.2", - "facebook-nodejs-business-sdk": "^23.0.1", + "facebook-nodejs-business-sdk": "^24.0.1", "typescript": "^5.8.3" } } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-account-ad-rules-history.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-account-ad-rules-history.d.ts index cd5d11d00cc889..4e38302848194c 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-account-ad-rules-history.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-account-ad-rules-history.d.ts @@ -31,6 +31,7 @@ export default class AdAccountAdRulesHistory extends AbstractCrudObject { enable_gen_uncrop: "ENABLE_GEN_UNCROP"; enable_landing_page_views: "ENABLE_LANDING_PAGE_VIEWS"; enable_music: "ENABLE_MUSIC"; + enable_product_set_boosting: "ENABLE_PRODUCT_SET_BOOSTING"; enable_reels_placements: "ENABLE_REELS_PLACEMENTS"; enable_semantic_based_audience_expansion: "ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION"; enable_shops_ads: "ENABLE_SHOPS_ADS"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-account-ad-volume.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-account-ad-volume.d.ts index abd332a4b3e0ab..251790bff1a3ef 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-account-ad-volume.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-account-ad-volume.d.ts @@ -44,8 +44,10 @@ export default class AdAccountAdVolume extends AbstractCrudObject { advantage_plus_audience_duplication: "ADVANTAGE_PLUS_AUDIENCE_DUPLICATION"; advantage_plus_audience_friction: "ADVANTAGE_PLUS_AUDIENCE_FRICTION"; advantage_plus_audience_toggle: "ADVANTAGE_PLUS_AUDIENCE_TOGGLE"; + advantage_plus_audience_v2: "ADVANTAGE_PLUS_AUDIENCE_V2"; advantage_plus_campaign_budget: "ADVANTAGE_PLUS_CAMPAIGN_BUDGET"; advantage_plus_catalog_ads: "ADVANTAGE_PLUS_CATALOG_ADS"; + advantage_plus_catalog_ads_v2: "ADVANTAGE_PLUS_CATALOG_ADS_V2"; advantage_plus_creative: "ADVANTAGE_PLUS_CREATIVE"; advantage_plus_creative_catalog: "ADVANTAGE_PLUS_CREATIVE_CATALOG"; advantage_plus_creative_se: "ADVANTAGE_PLUS_CREATIVE_SE"; @@ -65,13 +67,18 @@ export default class AdAccountAdVolume extends AbstractCrudObject { aggregated_bid_limited: "AGGREGATED_BID_LIMITED"; aggregated_budget_limited: "AGGREGATED_BUDGET_LIMITED"; aggregated_cost_limited: "AGGREGATED_COST_LIMITED"; + ai_generated_icebreakers: "AI_GENERATED_ICEBREAKERS"; + ama_upsell: "AMA_UPSELL"; aplusc_add_overlays: "APLUSC_ADD_OVERLAYS"; + aplusc_biz_ai_agent: "APLUSC_BIZ_AI_AGENT"; aplusc_dynamic_description: "APLUSC_DYNAMIC_DESCRIPTION"; + aplusc_flexible_media: "APLUSC_FLEXIBLE_MEDIA"; aplusc_image_background_generation: "APLUSC_IMAGE_BACKGROUND_GENERATION"; aplusc_music: "APLUSC_MUSIC"; aplusc_relevant_comments: "APLUSC_RELEVANT_COMMENTS"; aplusc_standard_enhancements_bundle: "APLUSC_STANDARD_ENHANCEMENTS_BUNDLE"; aplusc_text_improvements: "APLUSC_TEXT_IMPROVEMENTS"; + aplusc_video_expansion: "APLUSC_VIDEO_EXPANSION"; aplusc_visual_touchups: "APLUSC_VISUAL_TOUCHUPS"; aplus_c_catalog_duplication: "APLUS_C_CATALOG_DUPLICATION"; app_aem_v2_installation_promotion: "APP_AEM_V2_INSTALLATION_PROMOTION"; @@ -96,8 +103,11 @@ export default class AdAccountAdVolume extends AbstractCrudObject { autoflow_opt_in_v2: "AUTOFLOW_OPT_IN_V2"; automatic_placements: "AUTOMATIC_PLACEMENTS"; automatic_placements_v2: "AUTOMATIC_PLACEMENTS_V2"; + automatic_placements_v3: "AUTOMATIC_PLACEMENTS_V3"; + automatic_placements_v4: "AUTOMATIC_PLACEMENTS_V4"; auto_bid: "AUTO_BID"; auto_cat_selection_enhancement: "AUTO_CAT_SELECTION_ENHANCEMENT"; + b2p_messaging_upsell: "B2P_MESSAGING_UPSELL"; background_generation: "BACKGROUND_GENERATION"; bid_limited_sensitive: "BID_LIMITED_SENSITIVE"; bid_limited_starving: "BID_LIMITED_STARVING"; @@ -110,11 +120,16 @@ export default class AdAccountAdVolume extends AbstractCrudObject { budget_amortization: "BUDGET_AMORTIZATION"; budget_limited: "BUDGET_LIMITED"; budget_reallocation: "BUDGET_REALLOCATION"; + budget_seasonal_guidance: "BUDGET_SEASONAL_GUIDANCE"; + business_ai_agent_upsell: "BUSINESS_AI_AGENT_UPSELL"; call_ads_dayparting_l3_recommendation: "CALL_ADS_DAYPARTING_L3_RECOMMENDATION"; + campaign_consolidation_with_flex: "CAMPAIGN_CONSOLIDATION_WITH_FLEX"; campaign_guidance_navigator_reels_tips: "CAMPAIGN_GUIDANCE_NAVIGATOR_REELS_TIPS"; + campaign_spend_limit: "CAMPAIGN_SPEND_LIMIT"; capi: "CAPI"; capi_crm_funnel: "CAPI_CRM_FUNNEL"; capi_crm_guidance: "CAPI_CRM_GUIDANCE"; + capi_crm_guidance_v2: "CAPI_CRM_GUIDANCE_V2"; capi_crm_setup: "CAPI_CRM_SETUP"; capi_event_coverage: "CAPI_EVENT_COVERAGE"; capi_penetration: "CAPI_PENETRATION"; @@ -130,6 +145,8 @@ export default class AdAccountAdVolume extends AbstractCrudObject { connect_facebook_page_to_whatsapp: "CONNECT_FACEBOOK_PAGE_TO_WHATSAPP"; conversion_leads_optimization: "CONVERSION_LEADS_OPTIMIZATION"; conversion_leads_optimization_duplication: "CONVERSION_LEADS_OPTIMIZATION_DUPLICATION"; + conversion_leads_optimization_integrated: "CONVERSION_LEADS_OPTIMIZATION_INTEGRATED"; + conversion_leads_optimization_v2: "CONVERSION_LEADS_OPTIMIZATION_V2"; conversion_lead_ads: "CONVERSION_LEAD_ADS"; cost_goal: "COST_GOAL"; cost_goal_budget_limited: "COST_GOAL_BUDGET_LIMITED"; @@ -149,21 +166,31 @@ export default class AdAccountAdVolume extends AbstractCrudObject { creative_limited_hourly: "CREATIVE_LIMITED_HOURLY"; creator_ads_pa_conversion: "CREATOR_ADS_PA_CONVERSION"; cta: "CTA"; + ctd_leads_optimization: "CTD_LEADS_OPTIMIZATION"; + ctd_purchase_optimization: "CTD_PURCHASE_OPTIMIZATION"; ctm_ad_objective_growth: "CTM_AD_OBJECTIVE_GROWTH"; ctm_leads_optimization_upsell: "CTM_LEADS_OPTIMIZATION_UPSELL"; + ctm_lo_odax_phase_2: "CTM_LO_ODAX_PHASE_2"; + ctm_po_odax_phase_2: "CTM_PO_ODAX_PHASE_2"; + ctm_vo_odax_phase_2: "CTM_VO_ODAX_PHASE_2"; ctx_budget_optimization: "CTX_BUDGET_OPTIMIZATION"; ctx_creation_package: "CTX_CREATION_PACKAGE"; + ctx_creation_package_v2: "CTX_CREATION_PACKAGE_V2"; + ctx_creative_low_outcome_warning: "CTX_CREATIVE_LOW_OUTCOME_WARNING"; ctx_cta_upgrade_in_duplication: "CTX_CTA_UPGRADE_IN_DUPLICATION"; ctx_ctmpo_upgrade: "CTX_CTMPO_UPGRADE"; + ctx_ctwalo_upgrade: "CTX_CTWALO_UPGRADE"; ctx_ctwapo_upgrade: "CTX_CTWAPO_UPGRADE"; ctx_guidance: "CTX_GUIDANCE"; ctx_hvs: "CTX_HVS"; + ctx_hvs_v2: "CTX_HVS_V2"; ctx_multi_message_destination: "CTX_MULTI_MESSAGE_DESTINATION"; ctx_precreate: "CTX_PRECREATE"; ctx_product_extension_duplication: "CTX_PRODUCT_EXTENSION_DUPLICATION"; ctx_sabr_cbo: "CTX_SABR_CBO"; ctx_sabr_non_cbo: "CTX_SABR_NON_CBO"; ctx_smart_defaulting: "CTX_SMART_DEFAULTING"; + ctx_value_optimization_ctm_po_to_vo: "CTX_VALUE_OPTIMIZATION_CTM_PO_TO_VO"; ctx_zo_cbo: "CTX_ZO_CBO"; ctx_zo_non_cbo: "CTX_ZO_NON_CBO"; custom_audience_relaxation: "CUSTOM_AUDIENCE_RELAXATION"; @@ -173,17 +200,23 @@ export default class AdAccountAdVolume extends AbstractCrudObject { defragmentation_acb: "DEFRAGMENTATION_ACB"; defragmentation_acb_duplication: "DEFRAGMENTATION_ACB_DUPLICATION"; defragmentation_using_value_rules_test_v2: "DEFRAGMENTATION_USING_VALUE_RULES_TEST_V2"; + delivery_dependent_creative_limited: "DELIVERY_DEPENDENT_CREATIVE_LIMITED"; delivery_error: "DELIVERY_ERROR"; + delivery_error_v2: "DELIVERY_ERROR_V2"; delivery_warning: "DELIVERY_WARNING"; dynamic_advantage_campaign_budget: "DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET"; ecosystem_bid_reduce_l1_cardinality: "ECOSYSTEM_BID_REDUCE_L1_CARDINALITY"; + email_capture_upsell_guidance: "EMAIL_CAPTURE_UPSELL_GUIDANCE"; enable_whats_app_ads_data_sharing: "ENABLE_WHATS_APP_ADS_DATA_SHARING"; engaged_view_conversions_creation: "ENGAGED_VIEW_CONVERSIONS_CREATION"; evc_app_duplication_upgrade: "EVC_APP_DUPLICATION_UPGRADE"; evc_web_duplication_upgrade: "EVC_WEB_DUPLICATION_UPGRADE"; + f2_conversion_location: "F2_CONVERSION_LOCATION"; fragmentation: "FRAGMENTATION"; fragmentation_resolution_update: "FRAGMENTATION_RESOLUTION_UPDATE"; fragmentation_v2: "FRAGMENTATION_V2"; + fragmentation_v3: "FRAGMENTATION_V3"; + fragmentation_v4: "FRAGMENTATION_V4"; generative_uncrop_duplication: "GENERATIVE_UNCROP_DUPLICATION"; gen_ai_mvp: "GEN_AI_MVP"; ges_test: "GES_TEST"; @@ -196,23 +229,31 @@ export default class AdAccountAdVolume extends AbstractCrudObject { ig_surfaces_manual_placements: "IG_SURFACES_MANUAL_PLACEMENTS"; incremental_attribution: "INCREMENTAL_ATTRIBUTION"; instant_forms_leads: "INSTANT_FORMS_LEADS"; + in_app_ad_impression_roas_android: "IN_APP_AD_IMPRESSION_ROAS_ANDROID"; landing_page_view: "LANDING_PAGE_VIEW"; landing_page_view_optimization_goal: "LANDING_PAGE_VIEW_OPTIMIZATION_GOAL"; + landing_page_view_optimization_goal_v2: "LANDING_PAGE_VIEW_OPTIMIZATION_GOAL_V2"; landing_page_view_precreate: "LANDING_PAGE_VIEW_PRECREATE"; + lead_ads_dfca_lookalike_adoption: "LEAD_ADS_DFCA_LOOKALIKE_ADOPTION"; lead_ads_guidance: "LEAD_ADS_GUIDANCE"; learning_limited: "LEARNING_LIMITED"; learning_pause_friction: "LEARNING_PAUSE_FRICTION"; learning_phase_budget_edits: "LEARNING_PHASE_BUDGET_EDITS"; + live_video_ads: "LIVE_VIDEO_ADS"; low_budget_utilization: "LOW_BUDGET_UTILIZATION"; low_outcome: "LOW_OUTCOME"; + marketing_messages: "MARKETING_MESSAGES"; merlin_guidance: "MERLIN_GUIDANCE"; messaging_events: "MESSAGING_EVENTS"; messaging_events_precreate: "MESSAGING_EVENTS_PRECREATE"; messaging_partners: "MESSAGING_PARTNERS"; messaging_partners_precreate: "MESSAGING_PARTNERS_PRECREATE"; + messaging_partners_v2: "MESSAGING_PARTNERS_V2"; meta_verified_ads_performance_guidance: "META_VERIFIED_ADS_PERFORMANCE_GUIDANCE"; missing_or_invalid_parameters: "MISSING_OR_INVALID_PARAMETERS"; mixed_formats: "MIXED_FORMATS"; + mixed_formats_v2: "MIXED_FORMATS_V2"; + mixed_formats_v3: "MIXED_FORMATS_V3"; mixed_pa_combine_adsets: "MIXED_PA_COMBINE_ADSETS"; mmt_carousel_to_video: "MMT_CAROUSEL_TO_VIDEO"; mobile_first_creative: "MOBILE_FIRST_CREATIVE"; @@ -221,29 +262,40 @@ export default class AdAccountAdVolume extends AbstractCrudObject { multi_advertiser_ads: "MULTI_ADVERTISER_ADS"; multi_text: "MULTI_TEXT"; music: "MUSIC"; + music_v2: "MUSIC_V2"; + narrow_website_custom_audience: "NARROW_WEBSITE_CUSTOM_AUDIENCE"; not_applicable: "NOT_APPLICABLE"; no_delivery_status: "NO_DELIVERY_STATUS"; offsite_conversion: "OFFSITE_CONVERSION"; + offsite_conversion_ar: "OFFSITE_CONVERSION_AR"; offsite_conversion_based_on_signals: "OFFSITE_CONVERSION_BASED_ON_SIGNALS"; + offsite_conversion_leads_optimization: "OFFSITE_CONVERSION_LEADS_OPTIMIZATION"; + offsite_conversion_v2: "OFFSITE_CONVERSION_V2"; + omni_optimization: "OMNI_OPTIMIZATION"; optimal_bau: "OPTIMAL_BAU"; outcome_forecaster_budget_recommendation: "OUTCOME_FORECASTER_BUDGET_RECOMMENDATION"; outcome_forecaster_shadow_logging: "OUTCOME_FORECASTER_SHADOW_LOGGING"; partnership_ads: "PARTNERSHIP_ADS"; + partnership_ads_dynamic_header: "PARTNERSHIP_ADS_DYNAMIC_HEADER"; payment_method: "PAYMENT_METHOD"; performant_creative_reels_opt_in: "PERFORMANT_CREATIVE_REELS_OPT_IN"; + performant_creative_reels_opt_in_v2: "PERFORMANT_CREATIVE_REELS_OPT_IN_V2"; pfr_l1_inline_mmt: "PFR_L1_INLINE_MMT"; pixelless_lpv_optimization_goal: "PIXELLESS_LPV_OPTIMIZATION_GOAL"; pixel_optimization_aam: "PIXEL_OPTIMIZATION_AAM"; pixel_optimization_aam_precreate: "PIXEL_OPTIMIZATION_AAM_PRECREATE"; pixel_optimization_hie: "PIXEL_OPTIMIZATION_HIE"; pixel_optimization_hie_precreate: "PIXEL_OPTIMIZATION_HIE_PRECREATE"; + pixel_optimization_hie_v2: "PIXEL_OPTIMIZATION_HIE_V2"; pixel_setup: "PIXEL_SETUP"; pixel_setup_precreate: "PIXEL_SETUP_PRECREATE"; pixel_upsell: "PIXEL_UPSELL"; + pixel_upsell_v2: "PIXEL_UPSELL_V2"; placements_liquidity_automatic_guidance: "PLACEMENTS_LIQUIDITY_AUTOMATIC_GUIDANCE"; predictive_creative_limited: "PREDICTIVE_CREATIVE_LIMITED"; predictive_creative_limited_hourly: "PREDICTIVE_CREATIVE_LIMITED_HOURLY"; preparing_status: "PREPARING_STATUS"; + product_extensions_guidance: "PRODUCT_EXTENSIONS_GUIDANCE"; product_set_boosting: "PRODUCT_SET_BOOSTING"; promo_ads_upsell_guidance: "PROMO_ADS_UPSELL_GUIDANCE"; purchase_optimization: "PURCHASE_OPTIMIZATION"; @@ -255,6 +307,7 @@ export default class AdAccountAdVolume extends AbstractCrudObject { reels_music_duplication: "REELS_MUSIC_DUPLICATION"; reels_pc_and_mobile_first_creative: "REELS_PC_AND_MOBILE_FIRST_CREATIVE"; reels_pc_recommendation: "REELS_PC_RECOMMENDATION"; + reels_pc_recommendation_v2: "REELS_PC_RECOMMENDATION_V2"; reels_performant_creative: "REELS_PERFORMANT_CREATIVE"; reels_placement: "REELS_PLACEMENT"; revert: "REVERT"; @@ -265,8 +318,10 @@ export default class AdAccountAdVolume extends AbstractCrudObject { scale_good_campaign: "SCALE_GOOD_CAMPAIGN"; scale_good_campaign_duplication: "SCALE_GOOD_CAMPAIGN_DUPLICATION"; scale_good_campaign_smb: "SCALE_GOOD_CAMPAIGN_SMB"; + scale_good_campaign_v2: "SCALE_GOOD_CAMPAIGN_V2"; scale_good_campaign_v2_duplication: "SCALE_GOOD_CAMPAIGN_V2_DUPLICATION"; scale_good_ctx_campaign: "SCALE_GOOD_CTX_CAMPAIGN"; + scale_good_ctx_campaigns_duplication: "SCALE_GOOD_CTX_CAMPAIGNS_DUPLICATION"; seasonal_campaigns: "SEASONAL_CAMPAIGNS"; semantic_based_audience_duplication: "SEMANTIC_BASED_AUDIENCE_DUPLICATION"; semantic_based_audience_expansion: "SEMANTIC_BASED_AUDIENCE_EXPANSION"; @@ -281,8 +336,10 @@ export default class AdAccountAdVolume extends AbstractCrudObject { signals_growth_capi_precreate: "SIGNALS_GROWTH_CAPI_PRECREATE"; signals_growth_capi_table: "SIGNALS_GROWTH_CAPI_TABLE"; signals_growth_capi_v2: "SIGNALS_GROWTH_CAPI_V2"; + signals_vo_using_co_model: "SIGNALS_VO_USING_CO_MODEL"; similar_advertiser_budget_recommendation: "SIMILAR_ADVERTISER_BUDGET_RECOMMENDATION"; site_extensions_duplication: "SITE_EXTENSIONS_DUPLICATION"; + site_extensions_guidance: "SITE_EXTENSIONS_GUIDANCE"; six_plus_manual_placements: "SIX_PLUS_MANUAL_PLACEMENTS"; six_plus_placements_duplication: "SIX_PLUS_PLACEMENTS_DUPLICATION"; spend_limit: "SPEND_LIMIT"; @@ -302,18 +359,25 @@ export default class AdAccountAdVolume extends AbstractCrudObject { uneconomical_ads_throttling: "UNECONOMICAL_ADS_THROTTLING"; unified_inbox: "UNIFIED_INBOX"; unused_budget: "UNUSED_BUDGET"; + upper_funnel_to_lead_instant_form: "UPPER_FUNNEL_TO_LEAD_INSTANT_FORM"; + value_co_campaigns_low_purchase_dq: "VALUE_CO_CAMPAIGNS_LOW_PURCHASE_DQ"; value_diagnostics_guidance: "VALUE_DIAGNOSTICS_GUIDANCE"; value_optimization_goal: "VALUE_OPTIMIZATION_GOAL"; value_rules_guidance: "VALUE_RULES_GUIDANCE"; video_length: "VIDEO_LENGTH"; video_views_upsell: "VIDEO_VIEWS_UPSELL"; video_views_upsell_precreate: "VIDEO_VIEWS_UPSELL_PRECREATE"; + vo_in_app_purchase: "VO_IN_APP_PURCHASE"; vo_vt_1d_defaulting: "VO_VT_1D_DEFAULTING"; wa_messaging_partners: "WA_MESSAGING_PARTNERS"; wa_messaging_partners_precreate: "WA_MESSAGING_PARTNERS_PRECREATE"; + wa_messaging_partners_v2: "WA_MESSAGING_PARTNERS_V2"; + website_and_calls_upsell: "WEBSITE_AND_CALLS_UPSELL"; + website_and_instant_form_l2: "WEBSITE_AND_INSTANT_FORM_L2"; web_engaged_view_conversions: "WEB_ENGAGED_VIEW_CONVERSIONS"; wtwa_upsell_in_duplication: "WTWA_UPSELL_IN_DUPLICATION"; wtwa_upsell_in_syd_and_am_table: "WTWA_UPSELL_IN_SYD_AND_AM_TABLE"; + yi_test: "YI_TEST"; zero_conversion: "ZERO_CONVERSION"; zero_impression: "ZERO_IMPRESSION"; zero_outcome_budget: "ZERO_OUTCOME_BUDGET"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-account-live-video-advertiser.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-account-live-video-advertiser.d.ts index f183f910da3107..122107456394fc 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-account-live-video-advertiser.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-account-live-video-advertiser.d.ts @@ -7,8 +7,10 @@ export default class AdAccountLiveVideoAdvertiser extends AbstractCrudObject { static get Fields(): Readonly<{ is_lva_toggle_on: "is_lva_toggle_on"; lva_default_budget: "lva_default_budget"; + lva_default_duration_s: "lva_default_duration_s"; should_default_current_live: "should_default_current_live"; should_default_scheduled_live: "should_default_scheduled_live"; + should_default_toggle_on_from_model: "should_default_toggle_on_from_model"; should_show_lva_toggle: "should_show_lva_toggle"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-account-matched-search-applications-edge-data.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-account-matched-search-applications-edge-data.d.ts index 4d9942fe6adc6e..647c642878dedb 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-account-matched-search-applications-edge-data.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-account-matched-search-applications-edge-data.d.ts @@ -15,6 +15,36 @@ export default class AdAccountMatchedSearchApplicationsEdgeData extends Abstract url: "url"; }>; static get AppStore(): Readonly<{ + all_app_stores_for_android_and_ios: "ALL_APP_STORES_FOR_ANDROID_AND_IOS"; + amazon_app_store: "AMAZON_APP_STORE"; + apk_mirror: "APK_MIRROR"; + apk_monk: "APK_MONK"; + apk_pure: "APK_PURE"; + aptoide_a1_store: "APTOIDE_A1_STORE"; + bemobi_mobile_store: "BEMOBI_MOBILE_STORE"; + digital_turbine_store: "DIGITAL_TURBINE_STORE"; + does_not_exist: "DOES_NOT_EXIST"; + fb_android_store: "FB_ANDROID_STORE"; + fb_canvas: "FB_CANVAS"; + fb_gameroom: "FB_GAMEROOM"; + galaxy_store: "GALAXY_STORE"; + google_play: "GOOGLE_PLAY"; + instant_game: "INSTANT_GAME"; + itunes: "ITUNES"; + itunes_ipad: "ITUNES_IPAD"; + neon_android_store: "NEON_ANDROID_STORE"; + none: "NONE"; + oculus_app_store: "OCULUS_APP_STORE"; + oppo: "OPPO"; + roku_store: "ROKU_STORE"; + uptodown: "UPTODOWN"; + vivo: "VIVO"; + windows_10_store: "WINDOWS_10_STORE"; + windows_store: "WINDOWS_STORE"; + xiaomi: "XIAOMI"; + }>; + static get StoresToFilter(): Readonly<{ + all_app_stores_for_android_and_ios: "ALL_APP_STORES_FOR_ANDROID_AND_IOS"; amazon_app_store: "AMAZON_APP_STORE"; apk_mirror: "APK_MIRROR"; apk_monk: "APK_MONK"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-account-targeting-unified.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-account-targeting-unified.d.ts index ca1113aaeb9f6e..d15559cf341d72 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-account-targeting-unified.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-account-targeting-unified.d.ts @@ -346,6 +346,7 @@ export default class AdAccountTargetingUnified extends AbstractCrudObject { custom_audiences: "custom_audiences"; device_platforms: "device_platforms"; direct_install_devices: "direct_install_devices"; + dt_consolidation_state: "dt_consolidation_state"; dynamic_audience_ids: "dynamic_audience_ids"; education_majors: "education_majors"; education_schools: "education_schools"; @@ -457,6 +458,7 @@ export default class AdAccountTargetingUnified extends AbstractCrudObject { zips: "zips"; }>; static get AppStore(): Readonly<{ + all_app_stores_for_android_and_ios: "all_app_stores_for_android_and_ios"; amazon_app_store: "amazon_app_store"; apk_mirror: "apk_mirror"; apk_monk: "apk_monk"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-account-user-settings.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-account-user-settings.d.ts index 9328e6a18f166d..baffdc30efb23b 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-account-user-settings.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-account-user-settings.d.ts @@ -13,6 +13,7 @@ export default class AdAccountUserSettings extends AbstractCrudObject { ad_object_export_format: "ad_object_export_format"; ads_manager_footer_row_toast_impressions: "ads_manager_footer_row_toast_impressions"; auto_review_video_caption: "auto_review_video_caption"; + budget_optimization_quick_view_created: "budget_optimization_quick_view_created"; campaign_overview_columns: "campaign_overview_columns"; column_suggestion_status: "column_suggestion_status"; conditional_formatting_rules: "conditional_formatting_rules"; @@ -70,9 +71,14 @@ export default class AdAccountUserSettings extends AbstractCrudObject { syd_campaign_trends_time_range: "syd_campaign_trends_time_range"; syd_landing_page_opt_in_status: "syd_landing_page_opt_in_status"; text_gen_persona_opt_in_type: "text_gen_persona_opt_in_type"; + text_variations_hl_opt_in_out_ts: "text_variations_hl_opt_in_out_ts"; + text_variations_hl_opt_in_type: "text_variations_hl_opt_in_type"; text_variations_opt_in_out_ts: "text_variations_opt_in_out_ts"; text_variations_opt_in_type: "text_variations_opt_in_type"; user: "user"; + value_optimized_qv_created: "value_optimized_qv_created"; + value_qv_nux_impressions: "value_qv_nux_impressions"; + value_suggested_column_status: "value_suggested_column_status"; }>; static get SydCampaignTrendsObjective(): Readonly<{ app_installs: "APP_INSTALLS"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-account.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-account.d.ts index faa1e53988348c..84ceb557e35e8a 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-account.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-account.d.ts @@ -1,4 +1,5 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; +import AbstractObject from "./../abstract-object"; import Cursor from "./../cursor"; import AdAccountBusinessConstraints from "./ad-account-business-constraints"; import AdPlacePageSet from "./ad-place-page-set"; @@ -81,6 +82,7 @@ export default class AdAccount extends AbstractCrudObject { min_daily_budget: "min_daily_budget"; name: "name"; offsite_pixels_tos_accepted: "offsite_pixels_tos_accepted"; + opportunity_score: "opportunity_score"; owner: "owner"; owner_business: "owner_business"; partner: "partner"; @@ -316,6 +318,9 @@ export default class AdAccount extends AbstractCrudObject { getMatchedSearchApplications(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getMaxBid(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getMcmeConversions(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + createMessageCampaign(fields: string[], params?: Record, pathOverride?: string | null): Promise; + getMessageDeliveryEstimate(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + createMessage(fields: string[], params?: Record, pathOverride?: string | null): Promise; getMinimumBudgets(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getOnBehalfRequests(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createProductAudience(fields: string[], params?: Record, pathOverride?: string | null): Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-activity.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-activity.d.ts index c1a352916d0562..f56513889f8ff0 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-activity.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-activity.d.ts @@ -92,8 +92,10 @@ export default class AdActivity extends AbstractCrudObject { update_ad_set_target_spec: "update_ad_set_target_spec"; update_ad_targets_spec: "update_ad_targets_spec"; update_adaccount_agency_fee: "update_adaccount_agency_fee"; + update_adaccount_agency_fee_status: "update_adaccount_agency_fee_status"; update_adgroup_stop_delivery: "update_adgroup_stop_delivery"; update_audience: "update_audience"; + update_budget_flex_toggle_status: "update_budget_flex_toggle_status"; update_campaign_ad_scheduling: "update_campaign_ad_scheduling"; update_campaign_budget: "update_campaign_budget"; update_campaign_budget_optimization_toggling_status: "update_campaign_budget_optimization_toggling_status"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-asset-customization-rule-customization-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-asset-customization-rule-customization-spec.d.ts index 4a45ac8c81b724..cbdcd41328aff8 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-asset-customization-rule-customization-spec.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-asset-customization-rule-customization-spec.d.ts @@ -15,6 +15,7 @@ export default class AdAssetCustomizationRuleCustomizationSpec extends AbstractC locales: "locales"; messenger_positions: "messenger_positions"; publisher_platforms: "publisher_platforms"; + threads_positions: "threads_positions"; }>; static get DevicePlatforms(): Readonly<{ desktop: "desktop"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-additional-data-reconsideration-offer.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-additional-data-reconsideration-offer.d.ts new file mode 100644 index 00000000000000..f3bdaa246bc8c1 --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-additional-data-reconsideration-offer.d.ts @@ -0,0 +1,11 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * AdAssetFeedAdditionalDataReconsiderationOffer + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class AdAssetFeedAdditionalDataReconsiderationOffer extends AbstractCrudObject { + static get Fields(): Readonly<{ + offer_id: "offer_id"; + offer_name: "offer_name"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-spec-link-url.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-spec-link-url.d.ts index a8c6c4c11461f5..c7c5177d4e6a61 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-spec-link-url.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-spec-link-url.d.ts @@ -6,9 +6,11 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; export default class AdAssetFeedSpecLinkURL extends AbstractCrudObject { static get Fields(): Readonly<{ adlabels: "adlabels"; + android_url: "android_url"; carousel_see_more_url: "carousel_see_more_url"; deeplink_url: "deeplink_url"; display_url: "display_url"; + ios_url: "ios_url"; object_store_urls: "object_store_urls"; url_tags: "url_tags"; website_url: "website_url"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-spec.d.ts index 33d08b60888c56..be4124104e26ae 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-spec.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-asset-feed-spec.d.ts @@ -43,6 +43,7 @@ export default class AdAssetFeedSpec extends AbstractCrudObject { book_a_consultation: "BOOK_A_CONSULTATION"; book_now: "BOOK_NOW"; book_travel: "BOOK_TRAVEL"; + browse_shop: "BROWSE_SHOP"; buy: "BUY"; buy_now: "BUY_NOW"; buy_tickets: "BUY_TICKETS"; @@ -59,11 +60,13 @@ export default class AdAssetFeedSpec extends AbstractCrudObject { download: "DOWNLOAD"; event_rsvp: "EVENT_RSVP"; find_a_group: "FIND_A_GROUP"; + find_out_more: "FIND_OUT_MORE"; find_your_groups: "FIND_YOUR_GROUPS"; follow_news_storyline: "FOLLOW_NEWS_STORYLINE"; follow_page: "FOLLOW_PAGE"; follow_user: "FOLLOW_USER"; get_a_quote: "GET_A_QUOTE"; + get_details: "GET_DETAILS"; get_directions: "GET_DIRECTIONS"; get_in_touch: "GET_IN_TOUCH"; get_offer: "GET_OFFER"; @@ -97,18 +100,22 @@ export default class AdAssetFeedSpec extends AbstractCrudObject { request_time: "REQUEST_TIME"; say_thanks: "SAY_THANKS"; see_more: "SEE_MORE"; + see_shop: "SEE_SHOP"; sell_now: "SELL_NOW"; send_a_gift: "SEND_A_GIFT"; send_gift_money: "SEND_GIFT_MONEY"; send_updates: "SEND_UPDATES"; share: "SHARE"; shop_now: "SHOP_NOW"; + shop_with_ai: "SHOP_WITH_AI"; sign_up: "SIGN_UP"; sotto_subscribe: "SOTTO_SUBSCRIBE"; start_order: "START_ORDER"; subscribe: "SUBSCRIBE"; swipe_up_product: "SWIPE_UP_PRODUCT"; swipe_up_shop: "SWIPE_UP_SHOP"; + try_demo: "TRY_DEMO"; + try_on_with_ai: "TRY_ON_WITH_AI"; update_app: "UPDATE_APP"; use_app: "USE_APP"; use_mobile_app: "USE_MOBILE_APP"; @@ -119,6 +126,7 @@ export default class AdAssetFeedSpec extends AbstractCrudObject { view_in_cart: "VIEW_IN_CART"; view_product: "VIEW_PRODUCT"; visit_pages_feed: "VISIT_PAGES_FEED"; + visit_website: "VISIT_WEBSITE"; watch_live_video: "WATCH_LIVE_VIDEO"; watch_more: "WATCH_MORE"; watch_video: "WATCH_VIDEO"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-frequency-control-specs.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-frequency-control-specs.d.ts index fd51c76a8977d5..38ad39a885b474 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-frequency-control-specs.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-frequency-control-specs.d.ts @@ -8,5 +8,6 @@ export default class AdCampaignFrequencyControlSpecs extends AbstractCrudObject event: "event"; interval_days: "interval_days"; max_frequency: "max_frequency"; + type: "type"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-group-structure-tree.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-group-structure-tree.d.ts index 312d279b477897..49a8c864912ab1 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-group-structure-tree.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-group-structure-tree.d.ts @@ -8,6 +8,6 @@ export default class AdCampaignGroupStructureTree extends AbstractCrudObject { children: "children"; id: "id"; name: "name"; - time_updated: "time_updated"; + status: "status"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-learning-stage-info.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-learning-stage-info.d.ts index c7dae978c873d6..8ca3e0acd3d75d 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-learning-stage-info.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-campaign-learning-stage-info.d.ts @@ -7,6 +7,9 @@ export default class AdCampaignLearningStageInfo extends AbstractCrudObject { static get Fields(): Readonly<{ attribution_windows: "attribution_windows"; conversions: "conversions"; + dynamic_lp_conversions_threshold: "dynamic_lp_conversions_threshold"; + dynamic_lp_days_threshold: "dynamic_lp_days_threshold"; + dynamic_lp_status: "dynamic_lp_status"; last_sig_edit_ts: "last_sig_edit_ts"; status: "status"; }>; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-asset-groups-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-asset-groups-spec.d.ts index 3574f41f32aac7..a33d3b6d04c9af 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-asset-groups-spec.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-asset-groups-spec.d.ts @@ -7,5 +7,6 @@ export default class AdCreativeAssetGroupsSpec extends AbstractCrudObject { static get Fields(): Readonly<{ groups: "groups"; origin: "origin"; + origins: "origins"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-branded-content-ads.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-branded-content-ads.d.ts index 6b99daf819f9df..92dd9c94ad74e1 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-branded-content-ads.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-branded-content-ads.d.ts @@ -5,9 +5,11 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class AdCreativeBrandedContentAds extends AbstractCrudObject { static get Fields(): Readonly<{ + acting_business_id: "acting_business_id"; ad_format: "ad_format"; content_search_input: "content_search_input"; creator_ad_permission_type: "creator_ad_permission_type"; + deliver_dynamic_partner_content: "deliver_dynamic_partner_content"; facebook_boost_post_access_token: "facebook_boost_post_access_token"; instagram_boost_post_access_token: "instagram_boost_post_access_token"; is_mca_internal: "is_mca_internal"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-destination-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-destination-spec.d.ts index 924e74e258dccf..9924aec2aaf455 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-destination-spec.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-destination-spec.d.ts @@ -6,5 +6,6 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; export default class AdCreativeDestinationSpec extends AbstractCrudObject { static get Fields(): Readonly<{ destination_type: "destination_type"; + website: "website"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-feature-customizations.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-feature-customizations.d.ts index a6a64bfedc4ac7..bb1957b01c68a7 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-feature-customizations.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-feature-customizations.d.ts @@ -5,6 +5,7 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class AdCreativeFeatureCustomizations extends AbstractCrudObject { static get Fields(): Readonly<{ + aspect_ratio_config: "aspect_ratio_config"; background_color: "background_color"; catalog_feed_tag_name: "catalog_feed_tag_name"; font_name: "font_name"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-features-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-features-spec.d.ts index 0bd50cc668428c..023c540256b80e 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-features-spec.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-features-spec.d.ts @@ -14,6 +14,7 @@ export default class AdCreativeFeaturesSpec extends AbstractCrudObject { biz_ai: "biz_ai"; carousel_to_video: "carousel_to_video"; catalog_feed_tag: "catalog_feed_tag"; + creative_stickers: "creative_stickers"; customize_product_recommendation: "customize_product_recommendation"; cv_transformation: "cv_transformation"; description_automation: "description_automation"; @@ -24,6 +25,7 @@ export default class AdCreativeFeaturesSpec extends AbstractCrudObject { fb_reels_tag: "fb_reels_tag"; fb_story_tag: "fb_story_tag"; feed_caption_optimization: "feed_caption_optimization"; + generate_cta: "generate_cta"; hide_price: "hide_price"; ig_feed_tag: "ig_feed_tag"; ig_glados_feed: "ig_glados_feed"; @@ -50,19 +52,27 @@ export default class AdCreativeFeaturesSpec extends AbstractCrudObject { product_tags: "product_tags"; profile_card: "profile_card"; profile_extension: "profile_extension"; + replace_media_text: "replace_media_text"; + reveal_details_over_time: "reveal_details_over_time"; + show_destination_blurbs: "show_destination_blurbs"; show_summary: "show_summary"; site_extensions: "site_extensions"; standard_enhancements: "standard_enhancements"; standard_enhancements_catalog: "standard_enhancements_catalog"; + text_extraction_for_headline: "text_extraction_for_headline"; + text_extraction_for_tap_target: "text_extraction_for_tap_target"; text_generation: "text_generation"; text_optimizations: "text_optimizations"; text_overlay_translation: "text_overlay_translation"; text_translation: "text_translation"; + translate_voiceover: "translate_voiceover"; video_auto_crop: "video_auto_crop"; video_filtering: "video_filtering"; video_highlight: "video_highlight"; + video_highlights: "video_highlights"; video_to_image: "video_to_image"; video_uncrop: "video_uncrop"; + wa_mm_image_filtering: "wa_mm_image_filtering"; wa_mm_text_truncation_length: "wa_mm_text_truncation_length"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-call-to-action-value.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-call-to-action-value.d.ts index f82d82f86b27b3..e655bbc0a418a7 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-call-to-action-value.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-call-to-action-value.d.ts @@ -5,10 +5,14 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class AdCreativeLinkDataCallToActionValue extends AbstractCrudObject { static get Fields(): Readonly<{ + android_url: "android_url"; app_destination: "app_destination"; app_link: "app_link"; application: "application"; event_id: "event_id"; + ios_url: "ios_url"; + land_on_whatsapp_catalog: "land_on_whatsapp_catalog"; + land_on_whatsapp_profile: "land_on_whatsapp_profile"; lead_gen_form_id: "lead_gen_form_id"; link: "link"; link_caption: "link_caption"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-call-to-action.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-call-to-action.d.ts index 34c62c502ecbf9..e1e5af9479f6c1 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-call-to-action.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-call-to-action.d.ts @@ -17,6 +17,7 @@ export default class AdCreativeLinkDataCallToAction extends AbstractCrudObject { book_a_consultation: "BOOK_A_CONSULTATION"; book_now: "BOOK_NOW"; book_travel: "BOOK_TRAVEL"; + browse_shop: "BROWSE_SHOP"; buy: "BUY"; buy_now: "BUY_NOW"; buy_tickets: "BUY_TICKETS"; @@ -33,11 +34,13 @@ export default class AdCreativeLinkDataCallToAction extends AbstractCrudObject { download: "DOWNLOAD"; event_rsvp: "EVENT_RSVP"; find_a_group: "FIND_A_GROUP"; + find_out_more: "FIND_OUT_MORE"; find_your_groups: "FIND_YOUR_GROUPS"; follow_news_storyline: "FOLLOW_NEWS_STORYLINE"; follow_page: "FOLLOW_PAGE"; follow_user: "FOLLOW_USER"; get_a_quote: "GET_A_QUOTE"; + get_details: "GET_DETAILS"; get_directions: "GET_DIRECTIONS"; get_in_touch: "GET_IN_TOUCH"; get_offer: "GET_OFFER"; @@ -71,18 +74,22 @@ export default class AdCreativeLinkDataCallToAction extends AbstractCrudObject { request_time: "REQUEST_TIME"; say_thanks: "SAY_THANKS"; see_more: "SEE_MORE"; + see_shop: "SEE_SHOP"; sell_now: "SELL_NOW"; send_a_gift: "SEND_A_GIFT"; send_gift_money: "SEND_GIFT_MONEY"; send_updates: "SEND_UPDATES"; share: "SHARE"; shop_now: "SHOP_NOW"; + shop_with_ai: "SHOP_WITH_AI"; sign_up: "SIGN_UP"; sotto_subscribe: "SOTTO_SUBSCRIBE"; start_order: "START_ORDER"; subscribe: "SUBSCRIBE"; swipe_up_product: "SWIPE_UP_PRODUCT"; swipe_up_shop: "SWIPE_UP_SHOP"; + try_demo: "TRY_DEMO"; + try_on_with_ai: "TRY_ON_WITH_AI"; update_app: "UPDATE_APP"; use_app: "USE_APP"; use_mobile_app: "USE_MOBILE_APP"; @@ -93,6 +100,7 @@ export default class AdCreativeLinkDataCallToAction extends AbstractCrudObject { view_in_cart: "VIEW_IN_CART"; view_product: "VIEW_PRODUCT"; visit_pages_feed: "VISIT_PAGES_FEED"; + visit_website: "VISIT_WEBSITE"; watch_live_video: "WATCH_LIVE_VIDEO"; watch_more: "WATCH_MORE"; watch_video: "WATCH_VIDEO"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-child-attachment.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-child-attachment.d.ts index 4b9038eca4979a..4a085610f174d8 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-child-attachment.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data-child-attachment.d.ts @@ -5,12 +5,16 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class AdCreativeLinkDataChildAttachment extends AbstractCrudObject { static get Fields(): Readonly<{ + android_url: "android_url"; call_to_action: "call_to_action"; caption: "caption"; description: "description"; + ig_media_id: "ig_media_id"; image_crops: "image_crops"; image_hash: "image_hash"; + ios_url: "ios_url"; link: "link"; + marketing_message_buttons: "marketing_message_buttons"; name: "name"; picture: "picture"; place_data: "place_data"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data.d.ts index b5add37ed9cd99..b7724410015a0c 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-link-data.d.ts @@ -26,6 +26,7 @@ export default class AdCreativeLinkData extends AbstractCrudObject { image_hash: "image_hash"; image_layer_specs: "image_layer_specs"; image_overlay_spec: "image_overlay_spec"; + is_local_expansion: "is_local_expansion"; link: "link"; message: "message"; multi_share_end_card: "multi_share_end_card"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-media-sourcing-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-media-sourcing-spec.d.ts index 78908ac59d8367..0372059939342c 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-media-sourcing-spec.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-media-sourcing-spec.d.ts @@ -4,5 +4,13 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class AdCreativeMediaSourcingSpec extends AbstractCrudObject { - static get Fields(): Readonly<{}>; + static get Fields(): Readonly<{ + bodies: "bodies"; + descriptions: "descriptions"; + images: "images"; + push_metadata_ids: "push_metadata_ids"; + related_media: "related_media"; + titles: "titles"; + videos: "videos"; + }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-site-links-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-site-links-spec.d.ts index 56273e588d38c2..a8e1e9ccff3a22 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-site-links-spec.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-site-links-spec.d.ts @@ -6,12 +6,16 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; export default class AdCreativeSiteLinksSpec extends AbstractCrudObject { static get Fields(): Readonly<{ is_site_link_sticky: "is_site_link_sticky"; + site_link_classification: "site_link_classification"; + site_link_extra_metadata: "site_link_extra_metadata"; site_link_hash: "site_link_hash"; site_link_id: "site_link_id"; site_link_image_hash: "site_link_image_hash"; site_link_image_url: "site_link_image_url"; + site_link_language: "site_link_language"; site_link_recommendation_type: "site_link_recommendation_type"; site_link_title: "site_link_title"; site_link_url: "site_link_url"; + site_link_url_anchor: "site_link_url_anchor"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-sourcing-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-sourcing-spec.d.ts index 63a5ca049e924e..fa76159c9a1421 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative-sourcing-spec.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative-sourcing-spec.d.ts @@ -7,11 +7,16 @@ export default class AdCreativeSourcingSpec extends AbstractCrudObject { static get Fields(): Readonly<{ associated_product_set_id: "associated_product_set_id"; brand: "brand"; + destination_screenshot_spec: "destination_screenshot_spec"; dynamic_site_links_spec: "dynamic_site_links_spec"; enable_social_feedback_preservation: "enable_social_feedback_preservation"; + intent: "intent"; + pca_spec: "pca_spec"; promotion_metadata_spec: "promotion_metadata_spec"; + site_links_data_consented: "site_links_data_consented"; site_links_spec: "site_links_spec"; source_url: "source_url"; + website_media_spec: "website_media_spec"; website_summary_spec: "website_summary_spec"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-creative.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-creative.d.ts index 88210f8bf0a108..bc52191c5088c1 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-creative.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-creative.d.ts @@ -49,6 +49,7 @@ export default class AdCreative extends AbstractCrudObject { link_destination_display_url: "link_destination_display_url"; link_og_id: "link_og_id"; link_url: "link_url"; + media_sourcing_spec: "media_sourcing_spec"; messenger_sponsored_message: "messenger_sponsored_message"; name: "name"; object_id: "object_id"; @@ -89,6 +90,7 @@ export default class AdCreative extends AbstractCrudObject { book_a_consultation: "BOOK_A_CONSULTATION"; book_now: "BOOK_NOW"; book_travel: "BOOK_TRAVEL"; + browse_shop: "BROWSE_SHOP"; buy: "BUY"; buy_now: "BUY_NOW"; buy_tickets: "BUY_TICKETS"; @@ -105,11 +107,13 @@ export default class AdCreative extends AbstractCrudObject { download: "DOWNLOAD"; event_rsvp: "EVENT_RSVP"; find_a_group: "FIND_A_GROUP"; + find_out_more: "FIND_OUT_MORE"; find_your_groups: "FIND_YOUR_GROUPS"; follow_news_storyline: "FOLLOW_NEWS_STORYLINE"; follow_page: "FOLLOW_PAGE"; follow_user: "FOLLOW_USER"; get_a_quote: "GET_A_QUOTE"; + get_details: "GET_DETAILS"; get_directions: "GET_DIRECTIONS"; get_in_touch: "GET_IN_TOUCH"; get_offer: "GET_OFFER"; @@ -143,18 +147,22 @@ export default class AdCreative extends AbstractCrudObject { request_time: "REQUEST_TIME"; say_thanks: "SAY_THANKS"; see_more: "SEE_MORE"; + see_shop: "SEE_SHOP"; sell_now: "SELL_NOW"; send_a_gift: "SEND_A_GIFT"; send_gift_money: "SEND_GIFT_MONEY"; send_updates: "SEND_UPDATES"; share: "SHARE"; shop_now: "SHOP_NOW"; + shop_with_ai: "SHOP_WITH_AI"; sign_up: "SIGN_UP"; sotto_subscribe: "SOTTO_SUBSCRIBE"; start_order: "START_ORDER"; subscribe: "SUBSCRIBE"; swipe_up_product: "SWIPE_UP_PRODUCT"; swipe_up_shop: "SWIPE_UP_SHOP"; + try_demo: "TRY_DEMO"; + try_on_with_ai: "TRY_ON_WITH_AI"; update_app: "UPDATE_APP"; use_app: "USE_APP"; use_mobile_app: "USE_MOBILE_APP"; @@ -165,6 +173,7 @@ export default class AdCreative extends AbstractCrudObject { view_in_cart: "VIEW_IN_CART"; view_product: "VIEW_PRODUCT"; visit_pages_feed: "VISIT_PAGES_FEED"; + visit_website: "VISIT_WEBSITE"; watch_live_video: "WATCH_LIVE_VIDEO"; watch_more: "WATCH_MORE"; watch_video: "WATCH_VIDEO"; @@ -218,6 +227,9 @@ export default class AdCreative extends AbstractCrudObject { dynamic: "DYNAMIC"; story_owner: "STORY_OWNER"; }>; + static get ExecutionOptions(): Readonly<{ + validate_only: "validate_only"; + }>; static get Operator(): Readonly<{ all: "ALL"; any: "ANY"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-custom-derived-metrics.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-custom-derived-metrics.d.ts index b17b03354966c3..a4acd08f1541df 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-custom-derived-metrics.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-custom-derived-metrics.d.ts @@ -23,5 +23,10 @@ export default class AdCustomDerivedMetrics extends AbstractCrudObject { saved_report_id: "saved_report_id"; scope: "scope"; }>; + static get Scope(): Readonly<{ + account: "ACCOUNT"; + business: "BUSINESS"; + business_asset_group: "BUSINESS_ASSET_GROUP"; + }>; get(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-preview.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-preview.d.ts index 2575cc7b778140..59ed34c8f41c68 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-preview.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-preview.d.ts @@ -15,15 +15,19 @@ export default class AdPreview extends AbstractCrudObject { audience_network_rewarded_video: "AUDIENCE_NETWORK_REWARDED_VIDEO"; biz_disco_feed_mobile: "BIZ_DISCO_FEED_MOBILE"; desktop_feed_standard: "DESKTOP_FEED_STANDARD"; + facebook_ifu_reels_mobile: "FACEBOOK_IFU_REELS_MOBILE"; facebook_profile_feed_desktop: "FACEBOOK_PROFILE_FEED_DESKTOP"; facebook_profile_feed_mobile: "FACEBOOK_PROFILE_FEED_MOBILE"; facebook_profile_reels_mobile: "FACEBOOK_PROFILE_REELS_MOBILE"; facebook_reels_banner: "FACEBOOK_REELS_BANNER"; facebook_reels_banner_desktop: "FACEBOOK_REELS_BANNER_DESKTOP"; + facebook_reels_banner_feed_android: "FACEBOOK_REELS_BANNER_FEED_ANDROID"; + facebook_reels_banner_feed_android_large: "FACEBOOK_REELS_BANNER_FEED_ANDROID_LARGE"; facebook_reels_banner_fullscreen_ios: "FACEBOOK_REELS_BANNER_FULLSCREEN_IOS"; facebook_reels_banner_fullscreen_mobile: "FACEBOOK_REELS_BANNER_FULLSCREEN_MOBILE"; facebook_reels_mobile: "FACEBOOK_REELS_MOBILE"; facebook_reels_postloop: "FACEBOOK_REELS_POSTLOOP"; + facebook_reels_postloop_feed: "FACEBOOK_REELS_POSTLOOP_FEED"; facebook_reels_sticker: "FACEBOOK_REELS_STICKER"; facebook_story_mobile: "FACEBOOK_STORY_MOBILE"; facebook_story_sticker_mobile: "FACEBOOK_STORY_STICKER_MOBILE"; @@ -39,6 +43,7 @@ export default class AdPreview extends AbstractCrudObject { instagram_reels_instream: "INSTAGRAM_REELS_INSTREAM"; instagram_reels_overlay: "INSTAGRAM_REELS_OVERLAY"; instagram_reels_web: "INSTAGRAM_REELS_WEB"; + instagram_reels_web_m_site: "INSTAGRAM_REELS_WEB_M_SITE"; instagram_search_chain: "INSTAGRAM_SEARCH_CHAIN"; instagram_search_grid: "INSTAGRAM_SEARCH_GRID"; instagram_standard: "INSTAGRAM_STANDARD"; @@ -49,6 +54,7 @@ export default class AdPreview extends AbstractCrudObject { instant_article_recirculation_ad: "INSTANT_ARTICLE_RECIRCULATION_AD"; instant_article_standard: "INSTANT_ARTICLE_STANDARD"; instream_banner_desktop: "INSTREAM_BANNER_DESKTOP"; + instream_banner_feed_ios: "INSTREAM_BANNER_FEED_IOS"; instream_banner_fullscreen_ios: "INSTREAM_BANNER_FULLSCREEN_IOS"; instream_banner_fullscreen_mobile: "INSTREAM_BANNER_FULLSCREEN_MOBILE"; instream_banner_immersive_mobile: "INSTREAM_BANNER_IMMERSIVE_MOBILE"; @@ -84,7 +90,6 @@ export default class AdPreview extends AbstractCrudObject { profile_card: "profile_card"; standard_enhancements_catalog: "standard_enhancements_catalog"; text_overlay_translation: "text_overlay_translation"; - video_to_image: "video_to_image"; }>; static get RenderType(): Readonly<{ fallback: "FALLBACK"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-promoted-object.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-promoted-object.d.ts index f32e78e4a9c890..4386bff9be7922 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-promoted-object.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-promoted-object.d.ts @@ -5,6 +5,7 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class AdPromotedObject extends AbstractCrudObject { static get Fields(): Readonly<{ + anchor_event_config: "anchor_event_config"; application_id: "application_id"; boosted_product_set_id: "boosted_product_set_id"; conversion_goal_id: "conversion_goal_id"; @@ -12,6 +13,7 @@ export default class AdPromotedObject extends AbstractCrudObject { custom_event_str: "custom_event_str"; custom_event_type: "custom_event_type"; dataset_split_id: "dataset_split_id"; + dataset_split_ids: "dataset_split_ids"; event_id: "event_id"; full_funnel_objective: "full_funnel_objective"; fundraiser_campaign_id: "fundraiser_campaign_id"; @@ -19,7 +21,9 @@ export default class AdPromotedObject extends AbstractCrudObject { lead_ads_custom_event_type: "lead_ads_custom_event_type"; lead_ads_form_event_source_type: "lead_ads_form_event_source_type"; lead_ads_offsite_conversion_type: "lead_ads_offsite_conversion_type"; + lead_ads_selected_pixel_id: "lead_ads_selected_pixel_id"; mcme_conversion_id: "mcme_conversion_id"; + multi_event_product: "multi_event_product"; object_store_url: "object_store_url"; object_store_urls: "object_store_urls"; offer_id: "offer_id"; @@ -27,6 +31,8 @@ export default class AdPromotedObject extends AbstractCrudObject { offsite_conversion_event_id: "offsite_conversion_event_id"; omnichannel_object: "omnichannel_object"; page_id: "page_id"; + passback_application_id: "passback_application_id"; + passback_pixel_id: "passback_pixel_id"; pixel_aggregation_rule: "pixel_aggregation_rule"; pixel_id: "pixel_id"; pixel_rule: "pixel_rule"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-rule-history.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-rule-history.d.ts index 7bb22240b55703..f845b750dd731c 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-rule-history.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-rule-history.d.ts @@ -30,6 +30,7 @@ export default class AdRuleHistory extends AbstractCrudObject { enable_gen_uncrop: "ENABLE_GEN_UNCROP"; enable_landing_page_views: "ENABLE_LANDING_PAGE_VIEWS"; enable_music: "ENABLE_MUSIC"; + enable_product_set_boosting: "ENABLE_PRODUCT_SET_BOOSTING"; enable_reels_placements: "ENABLE_REELS_PLACEMENTS"; enable_semantic_based_audience_expansion: "ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION"; enable_shops_ads: "ENABLE_SHOPS_ADS"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-set.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-set.d.ts index aaa5049d1dcd16..174205f7e19533 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-set.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-set.d.ts @@ -12,6 +12,7 @@ export default class AdSet extends AbstractCrudObject { account_id: "account_id"; adlabels: "adlabels"; adset_schedule: "adset_schedule"; + anchor_event_attribution_window_days: "anchor_event_attribution_window_days"; asset_feed_id: "asset_feed_id"; attribution_spec: "attribution_spec"; automatic_manual_state: "automatic_manual_state"; @@ -61,6 +62,7 @@ export default class AdSet extends AbstractCrudObject { optimization_goal: "optimization_goal"; optimization_sub_event: "optimization_sub_event"; pacing_type: "pacing_type"; + placement_soft_opt_out: "placement_soft_opt_out"; promoted_object: "promoted_object"; recommendations: "recommendations"; recurring_budget_semantics: "recurring_budget_semantics"; @@ -76,8 +78,11 @@ export default class AdSet extends AbstractCrudObject { targeting_optimization_types: "targeting_optimization_types"; time_based_ad_rotation_id_blocks: "time_based_ad_rotation_id_blocks"; time_based_ad_rotation_intervals: "time_based_ad_rotation_intervals"; + trending_topics_spec: "trending_topics_spec"; updated_time: "updated_time"; use_new_app_click: "use_new_app_click"; + value_rule_set_id: "value_rule_set_id"; + value_rules_applied: "value_rules_applied"; }>; static get BidStrategy(): Readonly<{ cost_cap: "COST_CAP"; @@ -229,6 +234,7 @@ export default class AdSet extends AbstractCrudObject { }>; static get OptimizationSubEvent(): Readonly<{ none: "NONE"; + post_interaction: "POST_INTERACTION"; travel_intent: "TRAVEL_INTENT"; travel_intent_bucket_01: "TRAVEL_INTENT_BUCKET_01"; travel_intent_bucket_02: "TRAVEL_INTENT_BUCKET_02"; @@ -248,6 +254,11 @@ export default class AdSet extends AbstractCrudObject { value_5: "5"; value_6: "6"; value_7: "7"; + value_8: "8"; + value_9: "9"; + value_10: "10"; + value_11: "11"; + value_12: "12"; }>; static get TuneForCategory(): Readonly<{ credit: "CREDIT"; @@ -275,6 +286,7 @@ export default class AdSet extends AbstractCrudObject { getAdRulesGoverned(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getAds(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getAsyncAdRequests(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + getBudgetSchedules(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createBudgetSchedule(fields: string[], params?: Record, pathOverride?: string | null): Promise; getCopies(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createCopy(fields: string[], params?: Record, pathOverride?: string | null): Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ad-study.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ad-study.d.ts index fcd68edb53e6ca..efe6d029ce9e20 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ad-study.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ad-study.d.ts @@ -30,6 +30,7 @@ export default class AdStudy extends AbstractCrudObject { static get Type(): Readonly<{ backend_ab_testing: "BACKEND_AB_TESTING"; continuous_lift_config: "CONTINUOUS_LIFT_CONFIG"; + creative_spend_enforcement: "CREATIVE_SPEND_ENFORCEMENT"; geo_lift: "GEO_LIFT"; lift: "LIFT"; split_test: "SPLIT_TEST"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/adgroup-metadata.d.ts b/types/facebook-nodejs-business-sdk/src/objects/adgroup-metadata.d.ts index 44c19fc2758d3f..fd336786663fab 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/adgroup-metadata.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/adgroup-metadata.d.ts @@ -8,6 +8,7 @@ export default class AdgroupMetadata extends AbstractCrudObject { ad_standard_enhancements_edit_source: "ad_standard_enhancements_edit_source"; adgroup_creation_source: "adgroup_creation_source"; adgroup_edit_source: "adgroup_edit_source"; + adgroup_media_source: "adgroup_media_source"; carousel_style: "carousel_style"; carousel_with_static_card_style: "carousel_with_static_card_style"; }>; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ads-action-stats.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ads-action-stats.d.ts index 9d0cc2ad1888f4..0088c5a3f2f53b 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ads-action-stats.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ads-action-stats.d.ts @@ -11,18 +11,21 @@ export default class AdsActionStats extends AbstractCrudObject { value_1d_ev: "1d_ev"; value_1d_ev_all_conversions: "1d_ev_all_conversions"; value_1d_ev_first_conversion: "1d_ev_first_conversion"; + value_1d_passback: "1d_passback"; value_1d_view: "1d_view"; value_1d_view_all_conversions: "1d_view_all_conversions"; value_1d_view_first_conversion: "1d_view_first_conversion"; value_28d_click: "28d_click"; value_28d_click_all_conversions: "28d_click_all_conversions"; value_28d_click_first_conversion: "28d_click_first_conversion"; + value_28d_passback: "28d_passback"; value_28d_view: "28d_view"; value_28d_view_all_conversions: "28d_view_all_conversions"; value_28d_view_first_conversion: "28d_view_first_conversion"; value_7d_click: "7d_click"; value_7d_click_all_conversions: "7d_click_all_conversions"; value_7d_click_first_conversion: "7d_click_first_conversion"; + value_7d_passback: "7d_passback"; value_7d_view: "7d_view"; value_7d_view_all_conversions: "7d_view_all_conversions"; value_7d_view_first_conversion: "7d_view_first_conversion"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ads-histogram-stats.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ads-histogram-stats.d.ts index 74d80c8e8d40b5..23471f19ae3f4a 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ads-histogram-stats.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ads-histogram-stats.d.ts @@ -11,18 +11,21 @@ export default class AdsHistogramStats extends AbstractCrudObject { value_1d_ev: "1d_ev"; value_1d_ev_all_conversions: "1d_ev_all_conversions"; value_1d_ev_first_conversion: "1d_ev_first_conversion"; + value_1d_passback: "1d_passback"; value_1d_view: "1d_view"; value_1d_view_all_conversions: "1d_view_all_conversions"; value_1d_view_first_conversion: "1d_view_first_conversion"; value_28d_click: "28d_click"; value_28d_click_all_conversions: "28d_click_all_conversions"; value_28d_click_first_conversion: "28d_click_first_conversion"; + value_28d_passback: "28d_passback"; value_28d_view: "28d_view"; value_28d_view_all_conversions: "28d_view_all_conversions"; value_28d_view_first_conversion: "28d_view_first_conversion"; value_7d_click: "7d_click"; value_7d_click_all_conversions: "7d_click_all_conversions"; value_7d_click_first_conversion: "7d_click_first_conversion"; + value_7d_passback: "7d_passback"; value_7d_view: "7d_view"; value_7d_view_all_conversions: "7d_view_all_conversions"; value_7d_view_first_conversion: "7d_view_first_conversion"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ads-image-crops.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ads-image-crops.d.ts index 12447b796a5450..6fe525c7e27fed 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ads-image-crops.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ads-image-crops.d.ts @@ -8,6 +8,7 @@ export default class AdsImageCrops extends AbstractCrudObject { value_100x100: "100x100"; value_100x72: "100x72"; value_191x100: "191x100"; + value_300x400: "300x400"; value_400x150: "400x150"; value_400x500: "400x500"; value_600x360: "600x360"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ads-insights.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ads-insights.d.ts index d1a553ec1951b2..0411dc274b59fe 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ads-insights.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ads-insights.d.ts @@ -19,6 +19,7 @@ export default class AdsInsights extends AbstractCrudObject { adset_name: "adset_name"; adset_start: "adset_start"; age_targeting: "age_targeting"; + anchor_events_performance_indicator: "anchor_events_performance_indicator"; attribution_setting: "attribution_setting"; auction_bid: "auction_bid"; auction_competitiveness: "auction_competitiveness"; @@ -146,17 +147,7 @@ export default class AdsInsights extends AbstractCrudObject { outbound_clicks: "outbound_clicks"; outbound_clicks_ctr: "outbound_clicks_ctr"; place_page_name: "place_page_name"; - product_brand: "product_brand"; - product_category: "product_category"; - product_content_id: "product_content_id"; - product_custom_label_0: "product_custom_label_0"; - product_custom_label_1: "product_custom_label_1"; - product_custom_label_2: "product_custom_label_2"; - product_custom_label_3: "product_custom_label_3"; - product_custom_label_4: "product_custom_label_4"; - product_group_content_id: "product_group_content_id"; product_group_retailer_id: "product_group_retailer_id"; - product_name: "product_name"; product_retailer_id: "product_retailer_id"; product_views: "product_views"; purchase_per_landing_page_view: "purchase_per_landing_page_view"; @@ -264,10 +255,14 @@ export default class AdsInsights extends AbstractCrudObject { call_to_action_asset: "call_to_action_asset"; coarse_conversion_value: "coarse_conversion_value"; comscore_market: "comscore_market"; - comscore_market_code: "comscore_market_code"; conversion_destination: "conversion_destination"; country: "country"; + creative_automation_asset_id: "creative_automation_asset_id"; creative_relaxation_asset_type: "creative_relaxation_asset_type"; + crm_advertiser_l12_territory_ids: "crm_advertiser_l12_territory_ids"; + crm_advertiser_subvertical_id: "crm_advertiser_subvertical_id"; + crm_advertiser_vertical_id: "crm_advertiser_vertical_id"; + crm_ult_advertiser_id: "crm_ult_advertiser_id"; description_asset: "description_asset"; device_platform: "device_platform"; dma: "dma"; @@ -300,10 +295,23 @@ export default class AdsInsights extends AbstractCrudObject { place_page_id: "place_page_id"; platform_position: "platform_position"; postback_sequence_index: "postback_sequence_index"; + product_brand_breakdown: "product_brand_breakdown"; + product_category_breakdown: "product_category_breakdown"; + product_custom_label_0_breakdown: "product_custom_label_0_breakdown"; + product_custom_label_1_breakdown: "product_custom_label_1_breakdown"; + product_custom_label_2_breakdown: "product_custom_label_2_breakdown"; + product_custom_label_3_breakdown: "product_custom_label_3_breakdown"; + product_custom_label_4_breakdown: "product_custom_label_4_breakdown"; + product_group_content_id_breakdown: "product_group_content_id_breakdown"; + product_group_id: "product_group_id"; product_id: "product_id"; + product_set_id_breakdown: "product_set_id_breakdown"; publisher_platform: "publisher_platform"; redownload: "redownload"; region: "region"; + rta_ugc_topic: "rta_ugc_topic"; + rule_set_id: "rule_set_id"; + rule_set_name: "rule_set_name"; signal_source_bucket: "signal_source_bucket"; skan_campaign_id: "skan_campaign_id"; skan_conversion_id: "skan_conversion_id"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ads-quick-views.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ads-quick-views.d.ts index f18720a7d66769..6e0b3dc54d7d7b 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ads-quick-views.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ads-quick-views.d.ts @@ -15,6 +15,7 @@ export default class AdsQuickViews extends AbstractCrudObject { permission: "permission"; quick_view_type: "quick_view_type"; sort: "sort"; + time_stamp_last_used_by_owner: "time_stamp_last_used_by_owner"; }>; get(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ads-user-settings.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ads-user-settings.d.ts index 572f177431e2e1..822a8e639da5c4 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ads-user-settings.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ads-user-settings.d.ts @@ -9,9 +9,16 @@ export default class AdsUserSettings extends AbstractCrudObject { add_overlays_opt_in_status: "add_overlays_opt_in_status"; adgroup_name_template: "adgroup_name_template"; ads_cs_catalog_opt_out_timestamp: "ads_cs_catalog_opt_out_timestamp"; + ads_cs_dynamic_se_opt_in_status: "ads_cs_dynamic_se_opt_in_status"; + ads_cs_dynamic_se_opt_out_timestamp: "ads_cs_dynamic_se_opt_out_timestamp"; + ads_cs_sitelinks_opt_in_status: "ads_cs_sitelinks_opt_in_status"; + ads_cs_sitelinks_opt_out_timestamp: "ads_cs_sitelinks_opt_out_timestamp"; + ads_destination_optimization_opt_out_timestamp: "ads_destination_optimization_opt_out_timestamp"; ads_tool_visits: "ads_tool_visits"; + aplusc_ai_agent_opt_in_status: "aplusc_ai_agent_opt_in_status"; aplusc_carousel_cda_opt_in_status: "aplusc_carousel_cda_opt_in_status"; aplusc_carousel_inline_comment_opt_in_status: "aplusc_carousel_inline_comment_opt_in_status"; + aplusc_da_opt_in_status: "aplusc_da_opt_in_status"; aplusc_enhance_cta_opt_in_status: "aplusc_enhance_cta_opt_in_status"; aplusc_epa_opt_in_status: "aplusc_epa_opt_in_status"; aplusc_local_store_extension_opt_in_status: "aplusc_local_store_extension_opt_in_status"; @@ -27,23 +34,30 @@ export default class AdsUserSettings extends AbstractCrudObject { campaign_name_template: "campaign_name_template"; carousel_to_video_opt_in_status: "carousel_to_video_opt_in_status"; connected_sources_catalog_opt_in_status: "connected_sources_catalog_opt_in_status"; + create_cta_sticker_opt_in_status: "create_cta_sticker_opt_in_status"; + creative_flex_opt_in_status: "creative_flex_opt_in_status"; da_add_overlays_opt_in_status: "da_add_overlays_opt_in_status"; + da_creative_flex_opt_in_status: "da_creative_flex_opt_in_status"; da_hide_price_opt_in_status: "da_hide_price_opt_in_status"; + da_manual_media_nux_impressions: "da_manual_media_nux_impressions"; default_creation_mode: "default_creation_mode"; dynamic_partnership_ads_opt_in_status: "dynamic_partnership_ads_opt_in_status"; enhance_cta_text_extraction_opt_in_status: "enhance_cta_text_extraction_opt_in_status"; export_format_default: "export_format_default"; focus_mode_default: "focus_mode_default"; gen_ai_alpha_test_status: "gen_ai_alpha_test_status"; + gen_ai_auto_select_opt_in_status: "gen_ai_auto_select_opt_in_status"; id: "id"; image_background_generation_opt_in_status: "image_background_generation_opt_in_status"; image_brightness_and_contrast_opt_in_status: "image_brightness_and_contrast_opt_in_status"; image_expansion_opt_in_status: "image_expansion_opt_in_status"; + image_templates_text_extraction_opt_in_status: "image_templates_text_extraction_opt_in_status"; is_ads_ai_consented: "is_ads_ai_consented"; is_cbo_default_on: "is_cbo_default_on"; is_se_removal_guidance_dismissed: "is_se_removal_guidance_dismissed"; last_used_post_format: "last_used_post_format"; last_visited_time: "last_visited_time"; + metadata_brand_kit_last_opt_out_timestamp: "metadata_brand_kit_last_opt_out_timestamp"; metadata_brand_kit_opt_in_status: "metadata_brand_kit_opt_in_status"; music_on_reels_opt_in: "music_on_reels_opt_in"; muted_cbo_midflight_education_messages: "muted_cbo_midflight_education_messages"; @@ -54,6 +68,8 @@ export default class AdsUserSettings extends AbstractCrudObject { placement_group_vertical_opt_in_status: "placement_group_vertical_opt_in_status"; previously_seen_recommendations: "previously_seen_recommendations"; product_extensions_opt_in: "product_extensions_opt_in"; + reactive_control_settings: "reactive_control_settings"; + replace_media_text_opt_in_status: "replace_media_text_opt_in_status"; sa_off_conv_loc_seen: "sa_off_conv_loc_seen"; saoff_published_l2_conv_loc_seen: "saoff_published_l2_conv_loc_seen"; saon_migr_l1_seen_status: "saon_migr_l1_seen_status"; @@ -84,6 +100,9 @@ export default class AdsUserSettings extends AbstractCrudObject { use_pe_create_flow: "use_pe_create_flow"; use_stepper_primary_entry: "use_stepper_primary_entry"; user: "user"; + website_media_opt_in_status: "website_media_opt_in_status"; + website_reviews_data_opt_in_status: "website_reviews_data_opt_in_status"; + website_selling_points_data_opt_in_status: "website_selling_points_data_opt_in_status"; }>; get(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ads-value-adjustment-rule-collection.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ads-value-adjustment-rule-collection.d.ts index da569528aa03ca..06ab957885453b 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ads-value-adjustment-rule-collection.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ads-value-adjustment-rule-collection.d.ts @@ -8,6 +8,7 @@ export default class AdsValueAdjustmentRuleCollection extends AbstractCrudObject static get Fields(): Readonly<{ id: "id"; is_default_setting: "is_default_setting"; + last_attach_time: "last_attach_time"; name: "name"; product_type: "product_type"; status: "status"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/application.d.ts b/types/facebook-nodejs-business-sdk/src/objects/application.d.ts index 1952edb5ba1cc9..926a9dca58efbb 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/application.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/application.d.ts @@ -233,9 +233,7 @@ export default class Application extends AbstractCrudObject { getSgwDatasetStatus(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getSgwInstallDeferralLink(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getSubscribedDomains(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; - createSubscribedDomain(fields: string[], params?: Record, pathOverride?: string | null): Promise; getSubscribedDomainsPhishing(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; - createSubscribedDomainsPhishing(fields: string[], params?: Record, pathOverride?: string | null): Promise; deleteSubscriptions(params?: Record): Promise; getSubscriptions(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createSubscription(fields: string[], params?: Record, pathOverride?: string | null): Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/audio-asset.d.ts b/types/facebook-nodejs-business-sdk/src/objects/audio-asset.d.ts index 87de528c017fd4..2b89609c3f8c50 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/audio-asset.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/audio-asset.d.ts @@ -9,6 +9,7 @@ export default class AudioAsset extends AbstractCrudObject { all_ddex_main_artists: "all_ddex_main_artists"; audio_cluster_id: "audio_cluster_id"; cover_image_source: "cover_image_source"; + description: "description"; display_artist: "display_artist"; download_hd_url: "download_hd_url"; download_sd_url: "download_sd_url"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/audio-release.d.ts b/types/facebook-nodejs-business-sdk/src/objects/audio-release.d.ts deleted file mode 100644 index d5669919630658..00000000000000 --- a/types/facebook-nodejs-business-sdk/src/objects/audio-release.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { AbstractCrudObject } from "./../abstract-crud-object"; -/** - * AudioRelease - * @see {@link https://developers.facebook.com/docs/marketing-api/} - */ -export default class AudioRelease extends AbstractCrudObject { - static get Fields(): Readonly<{ - album_title: "album_title"; - asset_availability_status: "asset_availability_status"; - audio_availability_status: "audio_availability_status"; - audio_release_image_uri: "audio_release_image_uri"; - created_time: "created_time"; - displayed_artist: "displayed_artist"; - ean: "ean"; - genre: "genre"; - grid: "grid"; - id: "id"; - isrc: "isrc"; - label_name: "label_name"; - original_release_date: "original_release_date"; - parental_warning_type: "parental_warning_type"; - proprietary_id: "proprietary_id"; - upc: "upc"; - }>; - get(fields: string[], params?: Record): Promise; -} diff --git a/types/facebook-nodejs-business-sdk/src/objects/avatar.d.ts b/types/facebook-nodejs-business-sdk/src/objects/avatar.d.ts index 257b072b111ef8..a54fe6aaf6c3e5 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/avatar.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/avatar.d.ts @@ -1,5 +1,4 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; -import Cursor from "./../cursor"; /** * Avatar * @see {@link https://developers.facebook.com/docs/marketing-api/} @@ -8,6 +7,5 @@ export default class Avatar extends AbstractCrudObject { static get Fields(): Readonly<{ id: "id"; }>; - getModels(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; get(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/branded-content-shadow-ig-media-id.d.ts b/types/facebook-nodejs-business-sdk/src/objects/branded-content-shadow-ig-media-id.d.ts index 5e1c756a2786d0..5f3b2f4493b6ed 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/branded-content-shadow-ig-media-id.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/branded-content-shadow-ig-media-id.d.ts @@ -8,8 +8,14 @@ export default class BrandedContentShadowIGMediaID extends AbstractCrudObject { eligibility_errors: "eligibility_errors"; has_permission_for_partnership_ad: "has_permission_for_partnership_ad"; id: "id"; + linked_products: "linked_products"; owner_id: "owner_id"; permalink: "permalink"; + product_suggestions: "product_suggestions"; recommended_campaign_objectives: "recommended_campaign_objectives"; }>; + static get MediaRelationship(): Readonly<{ + is_tagged: "IS_TAGGED"; + owned: "OWNED"; + }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/business-agreement.d.ts b/types/facebook-nodejs-business-sdk/src/objects/business-agreement.d.ts index bb8fd43122ccdf..f80b020e7ceec8 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/business-agreement.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/business-agreement.d.ts @@ -14,6 +14,10 @@ export default class BusinessAgreement extends AbstractCrudObject { decline: "DECLINE"; expired: "EXPIRED"; in_progress: "IN_PROGRESS"; + mma_direct_assets_approved: "MMA_DIRECT_ASSETS_APPROVED"; + mma_direct_assets_declined: "MMA_DIRECT_ASSETS_DECLINED"; + mma_direct_assets_expired: "MMA_DIRECT_ASSETS_EXPIRED"; + mma_direct_assets_pending: "MMA_DIRECT_ASSETS_PENDING"; pending: "PENDING"; pending_email_verification: "PENDING_EMAIL_VERIFICATION"; pending_integrity_review: "PENDING_INTEGRITY_REVIEW"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/business-asset-sharing-agreement.d.ts b/types/facebook-nodejs-business-sdk/src/objects/business-asset-sharing-agreement.d.ts index b0ae6c2ff72290..5cbbc955960c2b 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/business-asset-sharing-agreement.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/business-asset-sharing-agreement.d.ts @@ -18,6 +18,10 @@ export default class BusinessAssetSharingAgreement extends AbstractCrudObject { decline: "DECLINE"; expired: "EXPIRED"; in_progress: "IN_PROGRESS"; + mma_direct_assets_approved: "MMA_DIRECT_ASSETS_APPROVED"; + mma_direct_assets_declined: "MMA_DIRECT_ASSETS_DECLINED"; + mma_direct_assets_expired: "MMA_DIRECT_ASSETS_EXPIRED"; + mma_direct_assets_pending: "MMA_DIRECT_ASSETS_PENDING"; pending: "PENDING"; pending_email_verification: "PENDING_EMAIL_VERIFICATION"; pending_integrity_review: "PENDING_INTEGRITY_REVIEW"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/business-owned-object-on-behalf-of-request.d.ts b/types/facebook-nodejs-business-sdk/src/objects/business-owned-object-on-behalf-of-request.d.ts index e1c1786eff39aa..0530bc942f0844 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/business-owned-object-on-behalf-of-request.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/business-owned-object-on-behalf-of-request.d.ts @@ -17,6 +17,10 @@ export default class BusinessOwnedObjectOnBehalfOfRequest extends AbstractCrudOb decline: "DECLINE"; expired: "EXPIRED"; in_progress: "IN_PROGRESS"; + mma_direct_assets_approved: "MMA_DIRECT_ASSETS_APPROVED"; + mma_direct_assets_declined: "MMA_DIRECT_ASSETS_DECLINED"; + mma_direct_assets_expired: "MMA_DIRECT_ASSETS_EXPIRED"; + mma_direct_assets_pending: "MMA_DIRECT_ASSETS_PENDING"; pending: "PENDING"; pending_email_verification: "PENDING_EMAIL_VERIFICATION"; pending_integrity_review: "PENDING_INTEGRITY_REVIEW"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/business.d.ts b/types/facebook-nodejs-business-sdk/src/objects/business.d.ts index 2383e0261e2ca7..8f52b0504d498e 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/business.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/business.d.ts @@ -33,6 +33,7 @@ export default class Business extends AbstractCrudObject { id: "id"; is_hidden: "is_hidden"; link: "link"; + marketing_messages_onboarding_status: "marketing_messages_onboarding_status"; name: "name"; payment_account_id: "payment_account_id"; primary_page: "primary_page"; @@ -45,6 +46,7 @@ export default class Business extends AbstractCrudObject { verification_status: "verification_status"; vertical: "vertical"; vertical_id: "vertical_id"; + whatsapp_business_manager_messaging_limit: "whatsapp_business_manager_messaging_limit"; }>; static get VerificationStatus(): Readonly<{ expired: "expired"; @@ -58,6 +60,14 @@ export default class Business extends AbstractCrudObject { revoked: "revoked"; verified: "verified"; }>; + static get WhatsappBusinessManagerMessagingLimit(): Readonly<{ + tier_100k: "TIER_100K"; + tier_10k: "TIER_10K"; + tier_250: "TIER_250"; + tier_2k: "TIER_2K"; + tier_unlimited: "TIER_UNLIMITED"; + untiered: "UNTIERED"; + }>; static get TwoFactorType(): Readonly<{ admin_required: "admin_required"; all_required: "all_required"; @@ -871,6 +881,7 @@ export default class Business extends AbstractCrudObject { createAccessToken(fields: string[], params?: Record, pathOverride?: string | null): Promise; getAdAccountInfos(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; deleteAdAccounts(params?: Record): Promise; + getAdCustomDerivedMetrics(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createAdReviewRequest(fields: string[], params?: Record, pathOverride?: string | null): Promise; getAdStudies(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createAdStudy(fields: string[], params?: Record, pathOverride?: string | null): Promise; @@ -955,7 +966,7 @@ export default class Business extends AbstractCrudObject { getOwnedWhatsAppBusinessAccounts(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; deletePages(params?: Record): Promise; getPartnerAccountLinking(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; - createPartnerPremiumOption(fields: string[], params?: Record, pathOverride?: string | null): Promise; + createPartnerPremiumOptIOn(fields: string[], params?: Record, pathOverride?: string | null): Promise; getPassbackAttributionMetadataConfigs(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getPendingClientAdAccounts(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getPendingClientApps(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/campaign.d.ts b/types/facebook-nodejs-business-sdk/src/objects/campaign.d.ts index 96e33404645575..ff3ad5b17042e8 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/campaign.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/campaign.d.ts @@ -27,7 +27,10 @@ export default class Campaign extends AbstractCrudObject { effective_status: "effective_status"; has_secondary_skadnetwork_reporting: "has_secondary_skadnetwork_reporting"; id: "id"; + is_adset_budget_sharing_enabled: "is_adset_budget_sharing_enabled"; is_budget_schedule_enabled: "is_budget_schedule_enabled"; + is_direct_send_campaign: "is_direct_send_campaign"; + is_message_campaign: "is_message_campaign"; is_skadnetwork_attribution: "is_skadnetwork_attribution"; issues_info: "issues_info"; last_budget_toggling_time: "last_budget_toggling_time"; @@ -417,6 +420,7 @@ export default class Campaign extends AbstractCrudObject { getAdRulesGoverned(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getAds(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getAdSets(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + getBudgetSchedules(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createBudgetSchedule(fields: string[], params?: Record, pathOverride?: string | null): Promise; getCopies(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createCopy(fields: string[], params?: Record, pathOverride?: string | null): Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/canvas.d.ts b/types/facebook-nodejs-business-sdk/src/objects/canvas.d.ts index 47dfe0f8cd009d..388fae1679c51e 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/canvas.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/canvas.d.ts @@ -17,6 +17,8 @@ export default class Canvas extends AbstractCrudObject { element_payload: "element_payload"; elements: "elements"; fb_body_elements: "fb_body_elements"; + hero_asset_facebook_post_id: "hero_asset_facebook_post_id"; + hero_asset_instagram_media_id: "hero_asset_instagram_media_id"; id: "id"; is_hidden: "is_hidden"; is_published: "is_published"; @@ -35,7 +37,7 @@ export default class Canvas extends AbstractCrudObject { use_retailer_item_ids: "use_retailer_item_ids"; }>; getPreview(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; - getPreViews(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + getPreviews(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; get(fields: string[], params?: Record): Promise; update(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/commerce-merchant-settings.d.ts b/types/facebook-nodejs-business-sdk/src/objects/commerce-merchant-settings.d.ts index db5c7f48793720..e495933338b7ab 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/commerce-merchant-settings.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/commerce-merchant-settings.d.ts @@ -19,12 +19,9 @@ export default class CommerceMerchantSettings extends AbstractCrudObject { merchant_page: "merchant_page"; merchant_status: "merchant_status"; offsite_iab_checkout_enabled_countries: "offsite_iab_checkout_enabled_countries"; - onsite_commerce_merchant: "onsite_commerce_merchant"; payment_provider: "payment_provider"; privacy_policy_localized: "privacy_policy_localized"; return_policy_localized: "return_policy_localized"; - review_rejection_messages: "review_rejection_messages"; - review_rejection_reasons: "review_rejection_reasons"; shops_ads_setup: "shops_ads_setup"; terms: "terms"; }>; @@ -33,11 +30,9 @@ export default class CommerceMerchantSettings extends AbstractCrudObject { getCommercePayouts(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getCommerceTransactions(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getOrderManagementApps(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; - createOrderManagementApp(fields: string[], params?: Record, pathOverride?: string | null): Promise; getProductCatalogs(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getReturns(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getSetupStatus(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; - getShippingProfiles(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createShippingProfile(fields: string[], params?: Record, pathOverride?: string | null): Promise; getShops(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getTaxSettings(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/copyright-ownership-transfer.d.ts b/types/facebook-nodejs-business-sdk/src/objects/copyright-ownership-transfer.d.ts index 85088a7823806f..454e48e7215a32 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/copyright-ownership-transfer.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/copyright-ownership-transfer.d.ts @@ -5,6 +5,8 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class CopyrightOwnershipTransfer extends AbstractCrudObject { static get Fields(): Readonly<{ + assets: "assets"; + has_ownership_been_updated: "has_ownership_been_updated"; id: "id"; receiving_rights_holder: "receiving_rights_holder"; sending_rights_holder: "sending_rights_holder"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ctx-default-optimization-config.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ctx-default-optimization-config.d.ts index 713f239c34a245..6d9a36b64c7087 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ctx-default-optimization-config.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ctx-default-optimization-config.d.ts @@ -5,6 +5,7 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class CTXDefaultOptimizationConfig extends AbstractCrudObject { static get Fields(): Readonly<{ + defaulting_source: "defaulting_source"; destination_type: "destination_type"; objective: "objective"; optimization_goal: "optimization_goal"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/ctxdfo-objective-defaults.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ctxdfo-objective-defaults.d.ts new file mode 100644 index 00000000000000..caaf48cd7ca8cc --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/ctxdfo-objective-defaults.d.ts @@ -0,0 +1,12 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * CTXDFOObjectiveDefaults + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class CTXDFOObjectiveDefaults extends AbstractCrudObject { + static get Fields(): Readonly<{ + objective: "objective"; + optimization_goal: "optimization_goal"; + page_id: "page_id"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/custom-audience-integrity-flags-and-appeal-status.d.ts b/types/facebook-nodejs-business-sdk/src/objects/custom-audience-integrity-flags-and-appeal-status.d.ts index d1e3a740c1abd6..7bdf1950d306a2 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/custom-audience-integrity-flags-and-appeal-status.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/custom-audience-integrity-flags-and-appeal-status.d.ts @@ -6,7 +6,9 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; export default class CustomAudienceIntegrityFlagsAndAppealStatus extends AbstractCrudObject { static get Fields(): Readonly<{ closeout_time: "closeout_time"; + days_until_enforcement: "days_until_enforcement"; flagged_fields: "flagged_fields"; + is_enforcement_rolled_out: "is_enforcement_rolled_out"; latest_appeal_requestor: "latest_appeal_requestor"; latest_appeal_time: "latest_appeal_time"; restriction_status: "restriction_status"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/custom-audience.d.ts b/types/facebook-nodejs-business-sdk/src/objects/custom-audience.d.ts index e7820dbfd9dec5..3cb4bfa4ef5a27 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/custom-audience.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/custom-audience.d.ts @@ -19,6 +19,7 @@ export default class CustomAudience extends AbstractCrudObject { description: "description"; excluded_custom_audiences: "excluded_custom_audiences"; external_event_source: "external_event_source"; + fields_violating_integrity_policy: "fields_violating_integrity_policy"; household_audience: "household_audience"; id: "id"; included_custom_audiences: "included_custom_audiences"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/customer-elasticity-study-metrics.d.ts b/types/facebook-nodejs-business-sdk/src/objects/customer-elasticity-study-metrics.d.ts new file mode 100644 index 00000000000000..2b882e2375a998 --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/customer-elasticity-study-metrics.d.ts @@ -0,0 +1,10 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * CustomerElasticityStudyMetrics + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class CustomerElasticityStudyMetrics extends AbstractCrudObject { + static get Fields(): Readonly<{ + customer_elasticity_study_metrics: "customer_elasticity_study_metrics"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/event.d.ts b/types/facebook-nodejs-business-sdk/src/objects/event.d.ts index e7ea2cbaa7e770..e28dfe9b914858 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/event.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/event.d.ts @@ -71,7 +71,6 @@ export default class Event extends AbstractCrudObject { static get OnlineEventFormat(): Readonly<{ fb_live: "fb_live"; horizon_event: "horizon_event"; - horizon_world: "horizon_world"; messenger_room: "messenger_room"; none: "none"; other: "other"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/favorite-catalog.d.ts b/types/facebook-nodejs-business-sdk/src/objects/favorite-catalog.d.ts deleted file mode 100644 index f17cdd02243f01..00000000000000 --- a/types/facebook-nodejs-business-sdk/src/objects/favorite-catalog.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AbstractCrudObject } from "./../abstract-crud-object"; -/** - * FavoriteCatalog - * @see {@link https://developers.facebook.com/docs/marketing-api/} - */ -export default class FavoriteCatalog extends AbstractCrudObject { - static get Fields(): Readonly<{ - catalog: "catalog"; - id: "id"; - }>; - get(fields: string[], params?: Record): Promise; -} diff --git a/types/facebook-nodejs-business-sdk/src/objects/guidance-lift-estimate.d.ts b/types/facebook-nodejs-business-sdk/src/objects/guidance-lift-estimate.d.ts new file mode 100644 index 00000000000000..5d5467ddabe451 --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/guidance-lift-estimate.d.ts @@ -0,0 +1,14 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * GuidanceLiftEstimate + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class GuidanceLiftEstimate extends AbstractCrudObject { + static get Fields(): Readonly<{ + actual_7d_cpr: "actual_7d_cpr"; + adoption_date: "adoption_date"; + guidance_name: "guidance_name"; + lift_estimation: "lift_estimation"; + predicted_7d_cpr: "predicted_7d_cpr"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/ig-media.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ig-media.d.ts index 61f126f429feba..e0a956378ada28 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ig-media.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ig-media.d.ts @@ -15,6 +15,8 @@ export default class IGMedia extends AbstractCrudObject { caption: "caption"; comments_count: "comments_count"; copyright_check_information: "copyright_check_information"; + has_poll: "has_poll"; + has_slider: "has_slider"; id: "id"; ig_id: "ig_id"; is_comment_enabled: "is_comment_enabled"; @@ -30,6 +32,7 @@ export default class IGMedia extends AbstractCrudObject { thumbnail_url: "thumbnail_url"; timestamp: "timestamp"; username: "username"; + video_title: "video_title"; view_count: "view_count"; }>; getBoostAdsList(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; @@ -44,6 +47,7 @@ export default class IGMedia extends AbstractCrudObject { createPartnershipAdCode(fields: string[], params?: Record, pathOverride?: string | null): Promise; getProductTags(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createProductTag(fields: string[], params?: Record, pathOverride?: string | null): Promise; + delete(fields: string[], params?: Record): Promise; get(fields: string[], params?: Record): Promise; update(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/ig-user.d.ts b/types/facebook-nodejs-business-sdk/src/objects/ig-user.d.ts index fe45659f6b6533..779f67e3c48e27 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/ig-user.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/ig-user.d.ts @@ -3,6 +3,7 @@ import AbstractObject from "./../abstract-object"; import Cursor from "./../cursor"; import IGBCAdsPermission from "./igbc-ads-permission"; import BrandedContentShadowIGUserID from "./branded-content-shadow-ig-user-id"; +import ShadowIGUserCollaborationInvites from "./shadow-ig-user-collaboration-invites"; import ThreadsUser from "./threads-user"; import Dataset from "./dataset"; import IGMedia from "./ig-media"; @@ -44,6 +45,8 @@ export default class IGUser extends AbstractCrudObject { getBrandedContentTagApproval(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createBrandedContentTagApproval(fields: string[], params?: Record, pathOverride?: string | null): Promise; getCatalogProductSearch(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + getCollaborationInvites(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + createCollaborationInvite(fields: string[], params?: Record, pathOverride?: string | null): Promise; getConnectedThreadsUser(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getContentPublishingLimit(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getCreatorMarketPlaceCreators(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; @@ -61,6 +64,7 @@ export default class IGUser extends AbstractCrudObject { getProductAppeal(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createProductAppeal(fields: string[], params?: Record, pathOverride?: string | null): Promise; getRecentlySearchedHashtags(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + getScheduledMedia(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getStories(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getTags(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getUpcomingEvents(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/insights-value.d.ts b/types/facebook-nodejs-business-sdk/src/objects/insights-value.d.ts index 7a06b2734d5a29..6fbb5158e6cb11 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/insights-value.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/insights-value.d.ts @@ -9,6 +9,8 @@ export default class InsightsValue extends AbstractCrudObject { earning_source: "earning_source"; end_time: "end_time"; engagement_source: "engagement_source"; + is_from_ads: "is_from_ads"; + is_from_followers: "is_from_followers"; message_type: "message_type"; messaging_channel: "messaging_channel"; monetization_tool: "monetization_tool"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/instagram-business-asset.d.ts b/types/facebook-nodejs-business-sdk/src/objects/instagram-business-asset.d.ts index df02136288fb57..10e2aed7d9b859 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/instagram-business-asset.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/instagram-business-asset.d.ts @@ -1,4 +1,5 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; +import Cursor from "./../cursor"; /** * InstagramBusinessAsset * @see {@link https://developers.facebook.com/docs/marketing-api/} @@ -9,5 +10,25 @@ export default class InstagramBusinessAsset extends AbstractCrudObject { ig_user_id: "ig_user_id"; ig_username: "ig_username"; }>; + static get PermittedTasks(): Readonly<{ + advertise: "ADVERTISE"; + analyze: "ANALYZE"; + community_activity: "COMMUNITY_ACTIVITY"; + content: "CONTENT"; + messages: "MESSAGES"; + }>; + static get Tasks(): Readonly<{ + advertise: "ADVERTISE"; + analyze: "ANALYZE"; + community_activity: "COMMUNITY_ACTIVITY"; + content: "CONTENT"; + messages: "MESSAGES"; + }>; + deleteAgencies(params?: Record): Promise; + getAgencies(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + createAgency(fields: string[], params?: Record, pathOverride?: string | null): Promise; + deleteAssignedUsers(params?: Record): Promise; + getAssignedUsers(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + createAssignedUser(fields: string[], params?: Record, pathOverride?: string | null): Promise; get(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/lead-gen-data-draft.d.ts b/types/facebook-nodejs-business-sdk/src/objects/lead-gen-data-draft.d.ts index 89a0da5de63ae4..9e1994253adabc 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/lead-gen-data-draft.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/lead-gen-data-draft.d.ts @@ -17,6 +17,7 @@ export default class LeadGenDataDraft extends AbstractCrudObject { page: "page"; question_page_custom_headline: "question_page_custom_headline"; questions: "questions"; + should_enforce_work_email: "should_enforce_work_email"; status: "status"; thank_you_page: "thank_you_page"; tracking_parameters: "tracking_parameters"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/lead-gen-form-preview-details.d.ts b/types/facebook-nodejs-business-sdk/src/objects/lead-gen-form-preview-details.d.ts index 765e5ecb771aa4..18aafbc33d7d29 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/lead-gen-form-preview-details.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/lead-gen-form-preview-details.d.ts @@ -5,6 +5,7 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class LeadGenFormPreviewDetails extends AbstractCrudObject { static get Fields(): Readonly<{ + book_on_website_text: "book_on_website_text"; call_business_text: "call_business_text"; call_to_action_title: "call_to_action_title"; chat_on_messenger_text: "chat_on_messenger_text"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/lead-gen-question-option.d.ts b/types/facebook-nodejs-business-sdk/src/objects/lead-gen-question-option.d.ts index 490083395ad98b..5656fa3da678d3 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/lead-gen-question-option.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/lead-gen-question-option.d.ts @@ -6,6 +6,7 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; export default class LeadGenQuestionOption extends AbstractCrudObject { static get Fields(): Readonly<{ key: "key"; + photo: "photo"; value: "value"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/live-video.d.ts b/types/facebook-nodejs-business-sdk/src/objects/live-video.d.ts index e1fdc9e773c2a1..178f05f526f89f 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/live-video.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/live-video.d.ts @@ -24,7 +24,6 @@ export default class LiveVideo extends AbstractCrudObject { is_manual_mode: "is_manual_mode"; is_reference_only: "is_reference_only"; live_views: "live_views"; - overlay_url: "overlay_url"; permalink_url: "permalink_url"; planned_start_time: "planned_start_time"; recommended_encoder_settings: "recommended_encoder_settings"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/marketing-messages-onboarding-status.d.ts b/types/facebook-nodejs-business-sdk/src/objects/marketing-messages-onboarding-status.d.ts new file mode 100644 index 00000000000000..8c1d5f74cd64fb --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/marketing-messages-onboarding-status.d.ts @@ -0,0 +1,11 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * MarketingMessagesOnboardingStatus + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class MarketingMessagesOnboardingStatus extends AbstractCrudObject { + static get Fields(): Readonly<{ + status: "status"; + time: "time"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/mc-experience-config-for-api.d.ts b/types/facebook-nodejs-business-sdk/src/objects/mc-experience-config-for-api.d.ts index c7dd42f7afca54..573249c166434e 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/mc-experience-config-for-api.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/mc-experience-config-for-api.d.ts @@ -7,6 +7,7 @@ export default class MCExperienceConfigForApi extends AbstractCrudObject { static get Fields(): Readonly<{ is_campaign_enabled: "is_campaign_enabled"; is_terms_signed: "is_terms_signed"; + is_user_manually_toggle_mc_off: "is_user_manually_toggle_mc_off"; merchant_type: "merchant_type"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/media-copyright-attribution.d.ts b/types/facebook-nodejs-business-sdk/src/objects/media-copyright-attribution.d.ts index 69de9d05cdfc88..b340c15becfc28 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/media-copyright-attribution.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/media-copyright-attribution.d.ts @@ -18,7 +18,6 @@ export default class MediaCopyrightAttribution extends AbstractCrudObject { is_enabled: "is_enabled"; link_title: "link_title"; match_count: "match_count"; - owner: "owner"; status: "status"; title: "title"; }>; diff --git a/types/facebook-nodejs-business-sdk/src/objects/fb-lite-to-nt-transitions.d.ts b/types/facebook-nodejs-business-sdk/src/objects/messenger-call-permissions.d.ts similarity index 58% rename from types/facebook-nodejs-business-sdk/src/objects/fb-lite-to-nt-transitions.d.ts rename to types/facebook-nodejs-business-sdk/src/objects/messenger-call-permissions.d.ts index 7760cdc92e0db7..471a4c84c9abd1 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/fb-lite-to-nt-transitions.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/messenger-call-permissions.d.ts @@ -1,10 +1,10 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; /** - * FBLiteToNTTransitions + * MessengerCallPermissions * @see {@link https://developers.facebook.com/docs/marketing-api/} */ -export default class FBLiteToNTTransitions extends AbstractCrudObject { +export default class MessengerCallPermissions extends AbstractCrudObject { static get Fields(): Readonly<{ - transition: "transition"; + actions: "actions"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/messenger-call-settings.d.ts b/types/facebook-nodejs-business-sdk/src/objects/messenger-call-settings.d.ts index 033c386c10cfff..1f5ac2a212189e 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/messenger-call-settings.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/messenger-call-settings.d.ts @@ -9,5 +9,6 @@ export default class MessengerCallSettings extends AbstractCrudObject { call_hours: "call_hours"; call_routing: "call_routing"; icon_enabled: "icon_enabled"; + video: "video"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/omega-customer-trx.d.ts b/types/facebook-nodejs-business-sdk/src/objects/omega-customer-trx.d.ts index 73db00a161d23b..856b7662c199b8 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/omega-customer-trx.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/omega-customer-trx.d.ts @@ -26,10 +26,6 @@ export default class OmegaCustomerTrx extends AbstractCrudObject { payment_term: "payment_term"; type: "type"; }>; - static get ProductTypes(): Readonly<{ - facebook: "FACEBOOK"; - whatsapp: "WHATSAPP"; - }>; static get Type(): Readonly<{ cm: "CM"; dm: "DM"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/open-bridge-configuration.d.ts b/types/facebook-nodejs-business-sdk/src/objects/open-bridge-configuration.d.ts index 8ce13a02fc0eb3..e9cdbf0e374f04 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/open-bridge-configuration.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/open-bridge-configuration.d.ts @@ -7,10 +7,14 @@ import AbstractObject from "./../abstract-object"; export default class OpenBridgeConfiguration extends AbstractCrudObject { static get Fields(): Readonly<{ active: "active"; + blocked_event_types: "blocked_event_types"; + blocked_websites: "blocked_websites"; + browser_agent: "browser_agent"; cloud_provider: "cloud_provider"; cloud_region: "cloud_region"; destination_id: "destination_id"; endpoint: "endpoint"; + event_enrichment_state: "event_enrichment_state"; fallback_domain: "fallback_domain"; first_party_domain: "first_party_domain"; host_business_id: "host_business_id"; @@ -25,6 +29,11 @@ export default class OpenBridgeConfiguration extends AbstractCrudObject { sgw_instance_url: "sgw_instance_url"; sgw_pixel_id: "sgw_pixel_id"; }>; + static get EventEnrichmentState(): Readonly<{ + no: "NO"; + not_initialized: "NOT_INITIALIZED"; + yes: "YES"; + }>; delete(fields: string[], params?: Record): Promise; get(fields: string[], params?: Record): Promise; update(fields: string[], params?: Record): Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/page.d.ts b/types/facebook-nodejs-business-sdk/src/objects/page.d.ts index 44ebe0db706ebf..8ab3cc5b338883 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/page.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/page.d.ts @@ -51,6 +51,7 @@ export default class Page extends AbstractCrudObject { connected_instagram_account: "connected_instagram_account"; connected_page_backed_instagram_account: "connected_page_backed_instagram_account"; contact_address: "contact_address"; + copyright_attribution_insights: "copyright_attribution_insights"; copyright_whitelisted_ig_partners: "copyright_whitelisted_ig_partners"; country_page_likes: "country_page_likes"; cover: "cover"; @@ -244,6 +245,7 @@ export default class Page extends AbstractCrudObject { c2pa: "C2PA"; c2pa_metadata_edited: "C2PA_METADATA_EDITED"; explicit: "EXPLICIT"; + explicit_animate: "EXPLICIT_ANIMATE"; explicit_imagine: "EXPLICIT_IMAGINE"; explicit_imagine_me: "EXPLICIT_IMAGINE_ME"; explicit_restyle: "EXPLICIT_RESTYLE"; @@ -360,6 +362,12 @@ export default class Page extends AbstractCrudObject { scheduled: "SCHEDULED"; scheduled_recurring: "SCHEDULED_RECURRING"; }>; + static get RecommendationAction(): Readonly<{ + accept_closed: "ACCEPT_CLOSED"; + accept_new: "ACCEPT_NEW"; + reject_closed: "REJECT_CLOSED"; + reject_new: "REJECT_NEW"; + }>; static get Category(): Readonly<{ utility: "UTILITY"; }>; @@ -431,10 +439,13 @@ export default class Page extends AbstractCrudObject { awards: "awards"; bio: "bio"; birthday: "birthday"; + business_integrity: "business_integrity"; call_permission_reply: "call_permission_reply"; + call_settings_update: "call_settings_update"; calls: "calls"; category: "category"; checkins: "checkins"; + comment_poll_response: "comment_poll_response"; company_overview: "company_overview"; conversations: "conversations"; culinary_team: "culinary_team"; @@ -443,6 +454,7 @@ export default class Page extends AbstractCrudObject { email: "email"; feature_access_list: "feature_access_list"; feed: "feed"; + follow: "follow"; founded: "founded"; general_info: "general_info"; general_manager: "general_manager"; @@ -461,6 +473,8 @@ export default class Page extends AbstractCrudObject { local_delivery: "local_delivery"; location: "location"; marketing_message_delivery_failed: "marketing_message_delivery_failed"; + marketing_message_echoes: "marketing_message_echoes"; + marketing_messages_subscriber_upload_status: "marketing_messages_subscriber_upload_status"; mcom_invoice_change: "mcom_invoice_change"; members: "members"; mention: "mention"; @@ -514,6 +528,8 @@ export default class Page extends AbstractCrudObject { response_feedback: "response_feedback"; send_cart: "send_cart"; standby: "standby"; + story_poll_response: "story_poll_response"; + story_share: "story_share"; user_action: "user_action"; video_text_question_responses: "video_text_question_responses"; videos: "videos"; @@ -522,6 +538,7 @@ export default class Page extends AbstractCrudObject { getAbTests(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createAbTest(fields: string[], params?: Record, pathOverride?: string | null): Promise; createAcknowledgeOrder(fields: string[], params?: Record, pathOverride?: string | null): Promise; + getAdsEligibility(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getAdsPosts(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; deleteAgencies(params?: Record): Promise; getAgencies(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; @@ -535,6 +552,7 @@ export default class Page extends AbstractCrudObject { getBlocked(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createBlocked(fields: string[], params?: Record, pathOverride?: string | null): Promise; createBusinessDatum(fields: string[], params?: Record, pathOverride?: string | null): Promise; + createBusinessMessagingFeatureStatus(fields: string[], params?: Record, pathOverride?: string | null): Promise; getBusinessProjects(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getCallToActions(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createCall(fields: string[], params?: Record, pathOverride?: string | null): Promise; @@ -610,6 +628,7 @@ export default class Page extends AbstractCrudObject { getPosts(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getProductCatalogs(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getPublishedPosts(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + getRatings(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createReleaseThreadControl(fields: string[], params?: Record, pathOverride?: string | null): Promise; createRequestThreadControl(fields: string[], params?: Record, pathOverride?: string | null): Promise; getRoles(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/avatar-profile-picture.d.ts b/types/facebook-nodejs-business-sdk/src/objects/partner-center-export-file.d.ts similarity index 64% rename from types/facebook-nodejs-business-sdk/src/objects/avatar-profile-picture.d.ts rename to types/facebook-nodejs-business-sdk/src/objects/partner-center-export-file.d.ts index bf0578e7e0281f..47e16f35680585 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/avatar-profile-picture.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/partner-center-export-file.d.ts @@ -1,12 +1,13 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; /** - * AvatarProfilePicture + * PartnerCenterExportFile * @see {@link https://developers.facebook.com/docs/marketing-api/} */ -export default class AvatarProfilePicture extends AbstractCrudObject { +export default class PartnerCenterExportFile extends AbstractCrudObject { static get Fields(): Readonly<{ id: "id"; + report_ds: "report_ds"; url: "url"; }>; - get(fields: string[], params?: Record): Promise; + get(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/partnership-ads-identity.d.ts b/types/facebook-nodejs-business-sdk/src/objects/partnership-ads-identity.d.ts index d2ed13180d3833..2546699e559211 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/partnership-ads-identity.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/partnership-ads-identity.d.ts @@ -5,6 +5,7 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; */ export default class PartnershipAdsIdentity extends AbstractCrudObject { static get Fields(): Readonly<{ + is_recommended: "is_recommended"; is_saved: "is_saved"; post_types: "post_types"; secondary_identities: "secondary_identities"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/placement-soft-opt-out.d.ts b/types/facebook-nodejs-business-sdk/src/objects/placement-soft-opt-out.d.ts new file mode 100644 index 00000000000000..8d463c7e18c280 --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/placement-soft-opt-out.d.ts @@ -0,0 +1,16 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * PlacementSoftOptOut + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class PlacementSoftOptOut extends AbstractCrudObject { + static get Fields(): Readonly<{ + audience_network_positions: "audience_network_positions"; + facebook_positions: "facebook_positions"; + instagram_positions: "instagram_positions"; + messenger_positions: "messenger_positions"; + oculus_positions: "oculus_positions"; + threads_positions: "threads_positions"; + whatsapp_positions: "whatsapp_positions"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/product-catalog-check-marketplace-partner-deals-status.d.ts b/types/facebook-nodejs-business-sdk/src/objects/product-catalog-check-marketplace-partner-deals-status.d.ts new file mode 100644 index 00000000000000..8ab19cbe9f6f73 --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/product-catalog-check-marketplace-partner-deals-status.d.ts @@ -0,0 +1,12 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * ProductCatalogCheckMarketplacePartnerDealsStatus + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class ProductCatalogCheckMarketplacePartnerDealsStatus extends AbstractCrudObject { + static get Fields(): Readonly<{ + errors: "errors"; + session_id: "session_id"; + status: "status"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/product-catalog.d.ts b/types/facebook-nodejs-business-sdk/src/objects/product-catalog.d.ts index 5ff74c054d194a..ee0e70a4f99f7a 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/product-catalog.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/product-catalog.d.ts @@ -124,6 +124,7 @@ export default class ProductCatalog extends AbstractCrudObject { getCategories(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createCategory(fields: string[], params?: Record, pathOverride?: string | null): Promise; getCheckBatchRequestStatus(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + getCheckMarketplacePartnerDealsStatus(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getCheckMarketplacePartnerSellersStatus(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getCollaborativeAdsLsbImageBank(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getCollaborativeAdsShareSettings(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; @@ -146,6 +147,7 @@ export default class ProductCatalog extends AbstractCrudObject { createHotel(fields: string[], params?: Record, pathOverride?: string | null): Promise; createItemsBatch(fields: string[], params?: Record, pathOverride?: string | null): Promise; createLocalizedItemsBatch(fields: string[], params?: Record, pathOverride?: string | null): Promise; + createMarketPlacePartnerDealsDetail(fields: string[], params?: Record, pathOverride?: string | null): Promise; createMarketPlacePartnerSellersDetail(fields: string[], params?: Record, pathOverride?: string | null): Promise; createMarketPlacePartnerSignal(fields: string[], params?: Record, pathOverride?: string | null): Promise; getPricingVariablesBatch(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/product-feed.d.ts b/types/facebook-nodejs-business-sdk/src/objects/product-feed.d.ts index 1590ad7c3111c0..7a00cba78d4f33 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/product-feed.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/product-feed.d.ts @@ -111,6 +111,9 @@ export default class ProductFeed extends AbstractCrudObject { smart_pixel_language_or_country: "SMART_PIXEL_LANGUAGE_OR_COUNTRY"; version: "VERSION"; }>; + static get UseCase(): Readonly<{ + creator_asset: "CREATOR_ASSET"; + }>; getAutomotiveModels(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getDestinations(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getFlights(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/product-item.d.ts b/types/facebook-nodejs-business-sdk/src/objects/product-item.d.ts index ab3adc0476a5d8..789c646d3c23e3 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/product-item.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/product-item.d.ts @@ -53,6 +53,7 @@ export default class ProductItem extends AbstractCrudObject { invalidation_errors: "invalidation_errors"; inventory: "inventory"; is_bundle_hero: "is_bundle_hero"; + live_special_price: "live_special_price"; manufacturer_info: "manufacturer_info"; manufacturer_part_number: "manufacturer_part_number"; marked_for_product_launch: "marked_for_product_launch"; @@ -76,6 +77,7 @@ export default class ProductItem extends AbstractCrudObject { retailer_product_group_id: "retailer_product_group_id"; review_rejection_reasons: "review_rejection_reasons"; review_status: "review_status"; + rich_text_description: "rich_text_description"; sale_price: "sale_price"; sale_price_end_date: "sale_price_end_date"; sale_price_start_date: "sale_price_start_date"; @@ -84,6 +86,7 @@ export default class ProductItem extends AbstractCrudObject { short_description: "short_description"; size: "size"; start_date: "start_date"; + status: "status"; tags: "tags"; url: "url"; vendor_id: "vendor_id"; @@ -152,6 +155,10 @@ export default class ProductItem extends AbstractCrudObject { lb: "lb"; oz: "oz"; }>; + static get Status(): Readonly<{ + published: "PUBLISHED"; + staging: "STAGING"; + }>; static get VideoFetchStatus(): Readonly<{ direct_upload: "DIRECT_UPLOAD"; fetched: "FETCHED"; @@ -394,7 +401,6 @@ export default class ProductItem extends AbstractCrudObject { commerce_account_not_legally_compliant: "COMMERCE_ACCOUNT_NOT_LEGALLY_COMPLIANT"; crawled_availability_mismatch: "CRAWLED_AVAILABILITY_MISMATCH"; da_disabled_by_user: "DA_DISABLED_BY_USER"; - da_policy_unfit_for_audience: "DA_POLICY_UNFIT_FOR_AUDIENCE"; da_policy_violation: "DA_POLICY_VIOLATION"; deleted_item: "DELETED_ITEM"; digital_goods_not_available_for_checkout: "DIGITAL_GOODS_NOT_AVAILABLE_FOR_CHECKOUT"; @@ -458,6 +464,7 @@ export default class ProductItem extends AbstractCrudObject { marketplace_disabled_by_user: "MARKETPLACE_DISABLED_BY_USER"; marketplace_partner_auction_no_bid_close_time: "MARKETPLACE_PARTNER_AUCTION_NO_BID_CLOSE_TIME"; marketplace_partner_currency_not_valid: "MARKETPLACE_PARTNER_CURRENCY_NOT_VALID"; + marketplace_partner_distribution_disabled: "MARKETPLACE_PARTNER_DISTRIBUTION_DISABLED"; marketplace_partner_listing_country_not_match_catalog: "MARKETPLACE_PARTNER_LISTING_COUNTRY_NOT_MATCH_CATALOG"; marketplace_partner_listing_limit_exceeded: "MARKETPLACE_PARTNER_LISTING_LIMIT_EXCEEDED"; marketplace_partner_missing_latlong: "MARKETPLACE_PARTNER_MISSING_LATLONG"; @@ -516,6 +523,7 @@ export default class ProductItem extends AbstractCrudObject { quality_item_link_broken: "QUALITY_ITEM_LINK_BROKEN"; quality_item_link_redirecting: "QUALITY_ITEM_LINK_REDIRECTING"; retailer_id_not_provided: "RETAILER_ID_NOT_PROVIDED"; + retailer_id_used_by_group: "RETAILER_ID_USED_BY_GROUP"; shopify_invalid_retailer_id: "SHOPIFY_INVALID_RETAILER_ID"; shopify_item_missing_shipping_profile: "SHOPIFY_ITEM_MISSING_SHIPPING_PROFILE"; shops_policy_violation: "SHOPS_POLICY_VIOLATION"; @@ -531,6 +539,7 @@ export default class ProductItem extends AbstractCrudObject { video_fetch_failed_forbidden: "VIDEO_FETCH_FAILED_FORBIDDEN"; video_fetch_failed_link_broken: "VIDEO_FETCH_FAILED_LINK_BROKEN"; video_fetch_failed_timed_out: "VIDEO_FETCH_FAILED_TIMED_OUT"; + video_issue_generic: "VIDEO_ISSUE_GENERIC"; video_not_downloadable: "VIDEO_NOT_DOWNLOADABLE"; whatsapp_disabled_by_user: "WHATSAPP_DISABLED_BY_USER"; whatsapp_marketing_message_disabled_by_user: "WHATSAPP_MARKETING_MESSAGE_DISABLED_BY_USER"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/reach-frequency-prediction.d.ts b/types/facebook-nodejs-business-sdk/src/objects/reach-frequency-prediction.d.ts index 909d7985cb62f3..56c5281eedc5e7 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/reach-frequency-prediction.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/reach-frequency-prediction.d.ts @@ -93,6 +93,7 @@ export default class ReachFrequencyPrediction extends AbstractCrudObject { timezone_id: "timezone_id"; timezone_name: "timezone_name"; topline_id: "topline_id"; + trending_topics_spec: "trending_topics_spec"; video_view_length_constraint: "video_view_length_constraint"; viewtag: "viewtag"; }>; diff --git a/types/facebook-nodejs-business-sdk/src/objects/regional-regulation-identities.d.ts b/types/facebook-nodejs-business-sdk/src/objects/regional-regulation-identities.d.ts index a38ca23b3ec789..6315024d52bf90 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/regional-regulation-identities.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/regional-regulation-identities.d.ts @@ -15,5 +15,7 @@ export default class RegionalRegulationIdentities extends AbstractCrudObject { taiwan_finserv_payer: "taiwan_finserv_payer"; taiwan_universal_beneficiary: "taiwan_universal_beneficiary"; taiwan_universal_payer: "taiwan_universal_payer"; + universal_beneficiary: "universal_beneficiary"; + universal_payer: "universal_payer"; }>; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-data.d.ts b/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-data.d.ts index 177cc8f4005c2a..24cfad732307fc 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-data.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-data.d.ts @@ -1,4 +1,8 @@ -import AttributionModel from './attribution-model'; +import AttributionSetting from "./attribution-setting"; +import AttributionModel from "./attribution-model"; +import AttributionMethod from "./attribution-method"; +import DeclineReason from "./decline-reason"; + /** * AttributionData used for attribution passback event to optimize the performance. */ @@ -12,6 +16,14 @@ export default class AttributionData { _attribution_model: typeof AttributionModel; _attr_window: number; _attribution_value: number; + _attribution_source: string; + _touchpoint_type: string; + _touchpoint_ts: number; + _attribution_method: typeof AttributionMethod; + _decline_reason: typeof DeclineReason; + _auditing_token: string; + _linkage_key: string; + _attribution_setting: AttributionSetting; /** * @param {String} scope Touchpoint type * @param {Number} visit_time Time that the campaign_id or fbc was first received @@ -22,8 +34,16 @@ export default class AttributionData { * @param {AttributionModel} attribution_model Attribution model used to attribute the event, check attribution-model.js file. * @param {Number} attr_window Attribution window in days. * @param {Number} attribution_value The share of value generated by this click-conversion pair that is attributed to Meta. + * @param {String} attribution_source The attribution source to differentiate the source of the data, e.g. whether this is from AMM or Custom Attribution or any other sources. + * @param {String} touchpoint_type The engagement type that caused the original credited conversion. + * @param {Number} touchpoint_ts The time when the touchpoint event occurred with the ad that the install was credited to. + * @param {AttributionMethod} attribution_method The attribution method used to attribute the event, check attribution-method.js file. + * @param {DeclineReason} decline_reason The decline reason for the attribution, check decline-reason.js file. + * @param {String} auditing_token The auditing token for the attribution. + * @param {String} linkage_key The linkage key for the attribution. + * @param {AttributionSetting} attribution_setting The attribution setting configuration. */ - constructor(scope?: string, visit_time?: number, ad_id?: string, adset_id?: string, campaign_id?: string, attribution_share?: number, attribution_model?: typeof AttributionModel, attr_window?: number, attribution_value?: number); + constructor(scope?: string, visit_time?: number, ad_id?: string, adset_id?: string, campaign_id?: string, attribution_share?: number, attribution_model?: typeof AttributionModel, attr_window?: number, attribution_value?: number, attribution_source?: string, touchpoint_type?: string, touchpoint_ts?: number, attribution_method?: typeof AttributionMethod, decline_reason?: typeof DeclineReason, auditing_token?: string, linkage_key?: string, attribution_setting?: AttributionSetting); /** * Returns the scope of the attribution data. * Exmaple: 'click'. @@ -168,6 +188,133 @@ export default class AttributionData { * @returns {AttributionData} */ setAttributionValue(attribution_value: number): AttributionData; + /** + * Returns the attribution source of the attribution data. + * Example: 'AMM' + */ + get attribution_source(): string; + /** + * Set the attribution source of the attribution data. + * @param {String} attribution_source The attribution source to differentiate the source of the data, e.g. whether this is from AMM or Custom Attribution or any other sources. + */ + set attribution_source(attribution_source: string); + /** + * Set the attribution source of the attribution data. + * @param {String} attribution_source The attribution source to differentiate the source of the data, e.g. whether this is from AMM or Custom Attribution or any other sources. + * @returns {AttributionData} + */ + setAttributionSource(attribution_source: string): AttributionData; + /** + * Returns the touchpoint type of the attribution data. + * Example: 'click' + */ + get touchpoint_type(): string; + /** + * Set the touchpoint type of the attribution data. + * @param {String} touchpoint_type The engagement type that caused the original credited conversion. + */ + set touchpoint_type(touchpoint_type: string); + /** + * Set the touchpoint type of the attribution data. + * @param {String} touchpoint_type The engagement type that caused the original credited conversion. + * @returns {AttributionData} + */ + setTouchpointType(touchpoint_type: string): AttributionData; + /** + * Returns the touchpoint timestamp of the attribution data. + * Example: 1512345678900 + */ + get touchpoint_ts(): number; + /** + * Set the touchpoint timestamp of the attribution data. + * @param {Number} touchpoint_ts The time when the touchpoint event occurred with the ad that the install was credited to. + */ + set touchpoint_ts(touchpoint_ts: number); + /** + * Set the touchpoint timestamp of the attribution data. + * @param {Number} touchpoint_ts The time when the touchpoint event occurred with the ad that the install was credited to. + * @returns {AttributionData} + */ + setTouchpointTs(touchpoint_ts: number): AttributionData; + /** + * Returns the attribution method of the attribution data. + * Example: 'ard' + */ + get attribution_method(): typeof AttributionMethod; + /** + * Set the attribution method of the attribution data. + * @param {AttributionMethod} attribution_method The attribution method used to attribute the event. + */ + set attribution_method(attribution_method: typeof AttributionMethod); + /** + * Set the attribution method of the attribution data. + * @param {AttributionMethod} attribution_method The attribution method used to attribute the event. + * @returns {AttributionData} + */ + setAttributionMethod(attribution_method: typeof AttributionMethod): AttributionData; + /** + * Returns the decline reason of the attribution data. + * Example: 'attribute_to_other_source' + */ + get decline_reason(): typeof DeclineReason; + /** + * Set the decline reason of the attribution data. + * @param {DeclineReason} decline_reason The decline reason for the attribution. + */ + set decline_reason(decline_reason: typeof DeclineReason); + /** + * Set the decline reason of the attribution data. + * @param {DeclineReason} decline_reason The decline reason for the attribution. + * @returns {AttributionData} + */ + setDeclineReason(decline_reason: typeof DeclineReason): AttributionData; + /** + * Returns the auditing token of the attribution data. + * Example: 'token123' + */ + get auditing_token(): string; + /** + * Set the auditing token of the attribution data. + * @param {String} auditing_token The auditing token for the attribution. + */ + set auditing_token(auditing_token: string); + /** + * Set the auditing token of the attribution data. + * @param {String} auditing_token The auditing token for the attribution. + * @returns {AttributionData} + */ + setAuditingToken(auditing_token: string): AttributionData; + /** + * Returns the linkage key of the attribution data. + * Example: 'key123' + */ + get linkage_key(): string; + /** + * Set the linkage key of the attribution data. + * @param {String} linkage_key The linkage key for the attribution. + */ + set linkage_key(linkage_key: string); + /** + * Set the linkage key of the attribution data. + * @param {String} linkage_key The linkage key for the attribution. + * @returns {AttributionData} + */ + setLinkageKey(linkage_key: string): AttributionData; + /** + * Returns the attribution setting of the attribution data. + */ + get attribution_setting(): AttributionSetting; + /** + * Set the attribution setting of the attribution data. + * @param {AttributionSetting} attribution_setting The attribution setting configuration. + */ + set attribution_setting(attribution_setting: AttributionSetting); + /** + * Set the attribution setting of the attribution data. + * @param {AttributionSetting} attribution_setting The attribution setting configuration. + * @returns {AttributionData} + */ + setAttributionSetting(attribution_setting: AttributionSetting): AttributionData; /** * Returns the normalized payload for the attribution data. * @returns {Object} normalized attribution data payload. diff --git a/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-method.d.ts b/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-method.d.ts new file mode 100644 index 00000000000000..0f7d749477a5ff --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-method.d.ts @@ -0,0 +1,12 @@ +/** + * Attribution methods. + */ +declare const AttributionMethod: Readonly<{ + ARD: "ard"; + DEEPLINK: "deeplink"; + GPIR: "gpir"; + INVALID_RESPONSE: "invalid_response"; + MIR: "mir"; + SRN: "srn"; +}>; +export default AttributionMethod; diff --git a/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-setting.d.ts b/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-setting.d.ts new file mode 100644 index 00000000000000..37b9d6f09c40dd --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/serverside/attribution-setting.d.ts @@ -0,0 +1,49 @@ +/** + * AttributionSetting represents the attribution configuration settings. + */ +export default class AttributionSetting { + _inactivity_window_hours: number; + _reattribution_window_hours: number; + /** + * @param {Number} inactivity_window_hours The inactivity window in hours. + * @param {Number} reattribution_window_hours The reattribution window in hours. + */ + constructor(inactivity_window_hours: number, reattribution_window_hours: number); + /** + * Returns the inactivity window hours. + * Example: 24 + */ + get inactivity_window_hours(): number; + /** + * Set the inactivity window hours. + * @param {Number} inactivity_window_hours The inactivity window in hours. + */ + set inactivity_window_hours(inactivity_window_hours: number); + /** + * Set the inactivity window hours. + * @param {Number} inactivity_window_hours The inactivity window in hours. + * @returns {AttributionSetting} + */ + setInactivityWindowHours(inactivity_window_hours: number): AttributionSetting; + /** + * Returns the reattribution window hours. + * Example: 168 + */ + get reattribution_window_hours(): number; + /** + * Set the reattribution window hours. + * @param {Number} reattribution_window_hours The reattribution window in hours. + */ + set reattribution_window_hours(reattribution_window_hours: number); + /** + * Set the reattribution window hours. + * @param {Number} reattribution_window_hours The reattribution window in hours. + * @returns {AttributionSetting} + */ + setReattributionWindowHours(reattribution_window_hours: number): AttributionSetting; + /** + * Returns the normalized payload for the attribution setting. + * @returns {Object} normalized attribution setting payload. + */ + normalize(): Record; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/serverside/decline-reason.d.ts b/types/facebook-nodejs-business-sdk/src/objects/serverside/decline-reason.d.ts new file mode 100644 index 00000000000000..0238789d9e7185 --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/serverside/decline-reason.d.ts @@ -0,0 +1,21 @@ +/** + * Decline reasons. + */ +declare const DeclineReason: Readonly<{ + ATTRIBUTE_TO_OTHER_SOURCE: "attribute_to_other_source"; + OUT_OF_LOOKBACK_WINDOW: "out_of_lookback_window"; + VIEW_THROUGH_DISABLED: "view_through_disabled"; + WITHIN_INACTIVE_WINDOW: "within_inactive_window"; + INACTIVE: "inactive"; + FRAUD_DETECTED: "fraud_detected"; + UNKNOWN: "unknown"; + REINSTALL_ATTRIBUTION_DISABLED: "reinstall_attribution_disabled"; + LOOKBACK: "lookback"; + NOT_PMOD_MATCH: "not_pmod_match"; + VALIDATION_RULE_DETECTED: "validation_rule_detected"; + PRELOAD_INSTALL: "preload_install"; + MIN_TIME_BETWEEN_RE_ENGAGEMENTS: "min_time_between_re_engagements"; + DUPLICATED: "duplicated"; + PMOD_DISABLED: "pmod_disabled"; +}>; +export default DeclineReason; diff --git a/types/facebook-nodejs-business-sdk/src/objects/serverside/standard-events.d.ts b/types/facebook-nodejs-business-sdk/src/objects/serverside/standard-events.d.ts index 0ca8319ae310bb..4430bfc45213b9 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/serverside/standard-events.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/serverside/standard-events.d.ts @@ -1,8 +1,8 @@ /** * StandardEvents - * + * * Represents the standard Facebook Pixel events. Allows any string but provides autocomplete for known standard events. - * + * * Reference: https://developers.facebook.com/docs/meta-pixel/reference */ export type StandardEvents = diff --git a/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-scheduled-media.d.ts b/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-scheduled-media.d.ts new file mode 100644 index 00000000000000..c015f3e294331c --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-scheduled-media.d.ts @@ -0,0 +1,16 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * ShadowIGScheduledMedia + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class ShadowIGScheduledMedia extends AbstractCrudObject { + static get Fields(): Readonly<{ + caption: "caption"; + id: "id"; + media_type: "media_type"; + media_url: "media_url"; + publish_timestamp: "publish_timestamp"; + thumbnail_url: "thumbnail_url"; + }>; + get(fields: string[], params?: Record): Promise; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-user-collaboration-invites.d.ts b/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-user-collaboration-invites.d.ts new file mode 100644 index 00000000000000..c94e631409d3df --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-user-collaboration-invites.d.ts @@ -0,0 +1,13 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * ShadowIGUserCollaborationInvites + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class ShadowIGUserCollaborationInvites extends AbstractCrudObject { + static get Fields(): Readonly<{ + caption: "caption"; + media_id: "media_id"; + media_owner_username: "media_owner_username"; + media_url: "media_url"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-user-thread-owner.d.ts b/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-user-thread-owner.d.ts new file mode 100644 index 00000000000000..c06789566dcb5d --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/shadow-ig-user-thread-owner.d.ts @@ -0,0 +1,8 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * ShadowIGUserThreadOwner + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class ShadowIGUserThreadOwner extends AbstractCrudObject { + static get Fields(): Readonly<{}>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/shop.d.ts b/types/facebook-nodejs-business-sdk/src/objects/shop.d.ts index 1e7bcbd581511e..b15fea7b622392 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/shop.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/shop.d.ts @@ -9,7 +9,6 @@ export default class Shop extends AbstractCrudObject { fb_sales_channel: "fb_sales_channel"; id: "id"; ig_sales_channel: "ig_sales_channel"; - is_onsite_enabled: "is_onsite_enabled"; shop_status: "shop_status"; workspace: "workspace"; }>; diff --git a/types/facebook-nodejs-business-sdk/src/objects/trending-topics-spec.d.ts b/types/facebook-nodejs-business-sdk/src/objects/trending-topics-spec.d.ts new file mode 100644 index 00000000000000..5b85417f1c8ff9 --- /dev/null +++ b/types/facebook-nodejs-business-sdk/src/objects/trending-topics-spec.d.ts @@ -0,0 +1,12 @@ +import { AbstractCrudObject } from "./../abstract-crud-object"; +/** + * TrendingTopicsSpec + * @see {@link https://developers.facebook.com/docs/marketing-api/} + */ +export default class TrendingTopicsSpec extends AbstractCrudObject { + static get Fields(): Readonly<{ + is_all_trending: "is_all_trending"; + is_special_budget_alloc: "is_special_budget_alloc"; + trending_topics: "trending_topics"; + }>; +} diff --git a/types/facebook-nodejs-business-sdk/src/objects/unified-thread.d.ts b/types/facebook-nodejs-business-sdk/src/objects/unified-thread.d.ts index b8d506fb16c27f..bd042e62829194 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/unified-thread.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/unified-thread.d.ts @@ -10,6 +10,7 @@ export default class UnifiedThread extends AbstractCrudObject { folder: "folder"; former_participants: "former_participants"; id: "id"; + is_owner: "is_owner"; is_subscribed: "is_subscribed"; link: "link"; linked_group: "linked_group"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/user-page-one-time-opt-in-token-settings.d.ts b/types/facebook-nodejs-business-sdk/src/objects/user-page-one-time-opt-in-token-settings.d.ts index 56015d1447de7a..d7786f0bc5df76 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/user-page-one-time-opt-in-token-settings.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/user-page-one-time-opt-in-token-settings.d.ts @@ -6,6 +6,7 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; export default class UserPageOneTimeOptInTokenSettings extends AbstractCrudObject { static get Fields(): Readonly<{ creation_timestamp: "creation_timestamp"; + custom_audience_ids: "custom_audience_ids"; next_eligible_time: "next_eligible_time"; next_eligible_time_for_paid_messaging: "next_eligible_time_for_paid_messaging"; notification_messages_frequency: "notification_messages_frequency"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/user.d.ts b/types/facebook-nodejs-business-sdk/src/objects/user.d.ts index d18584346d983d..f33b14713f7b8e 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/user.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/user.d.ts @@ -16,7 +16,6 @@ export default class User extends AbstractCrudObject { static get Fields(): Readonly<{ about: "about"; age_range: "age_range"; - avatar_2d_profile_picture: "avatar_2d_profile_picture"; birthday: "birthday"; client_business_id: "client_business_id"; community: "community"; @@ -30,7 +29,6 @@ export default class User extends AbstractCrudObject { gender: "gender"; hometown: "hometown"; id: "id"; - id_for_avatars: "id_for_avatars"; inspirational_people: "inspirational_people"; install_type: "install_type"; installed: "installed"; @@ -100,7 +98,6 @@ export default class User extends AbstractCrudObject { getAssignedPages(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getAssignedProductCatalogs(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getAssignedWhatsAppBusinessAccounts(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; - getAvatars(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getBusinessUsers(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; deleteBusinesses(params?: Record): Promise; getBusinesses(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; diff --git a/types/facebook-nodejs-business-sdk/src/objects/video-copyright-match.d.ts b/types/facebook-nodejs-business-sdk/src/objects/video-copyright-match.d.ts index 976d5109f0b680..54c1efcf0f7948 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/video-copyright-match.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/video-copyright-match.d.ts @@ -12,6 +12,7 @@ export default class VideoCopyrightMatch extends AbstractCrudObject { match_status: "match_status"; notes: "notes"; permalink: "permalink"; + policy_eval_modify_reasons: "policy_eval_modify_reasons"; ugc_content_format: "ugc_content_format"; }>; static get Action(): Readonly<{ diff --git a/types/facebook-nodejs-business-sdk/src/objects/video-copyright.d.ts b/types/facebook-nodejs-business-sdk/src/objects/video-copyright.d.ts index 4d7790858360cf..7f2ade0fd1bf18 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/video-copyright.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/video-copyright.d.ts @@ -7,8 +7,10 @@ import Cursor from "./../cursor"; export default class VideoCopyright extends AbstractCrudObject { static get Fields(): Readonly<{ content_category: "content_category"; + content_protect_protection_disabled_reason: "content_protect_protection_disabled_reason"; copyright_content_id: "copyright_content_id"; creator: "creator"; + disable_protection_by_content_protect_status: "disable_protection_by_content_protect_status"; excluded_ownership_segments: "excluded_ownership_segments"; id: "id"; in_conflict: "in_conflict"; diff --git a/types/facebook-nodejs-business-sdk/src/objects/whats-app-business-account.d.ts b/types/facebook-nodejs-business-sdk/src/objects/whats-app-business-account.d.ts index 51835f27379222..d8cf2c807d3158 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/whats-app-business-account.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/whats-app-business-account.d.ts @@ -34,6 +34,7 @@ export default class WhatsAppBusinessAccount extends AbstractCrudObject { purchase_order_number: "purchase_order_number"; status: "status"; timezone_id: "timezone_id"; + whatsapp_business_manager_messaging_limit: "whatsapp_business_manager_messaging_limit"; }>; static get BusinessVerificationStatus(): Readonly<{ expired: "expired"; @@ -47,6 +48,14 @@ export default class WhatsAppBusinessAccount extends AbstractCrudObject { revoked: "revoked"; verified: "verified"; }>; + static get WhatsappBusinessManagerMessagingLimit(): Readonly<{ + tier_100k: "TIER_100K"; + tier_10k: "TIER_10K"; + tier_250: "TIER_250"; + tier_2k: "TIER_2K"; + tier_unlimited: "TIER_UNLIMITED"; + untiered: "UNTIERED"; + }>; static get Tasks(): Readonly<{ develop: "DEVELOP"; manage: "MANAGE"; @@ -59,6 +68,10 @@ export default class WhatsAppBusinessAccount extends AbstractCrudObject { view_phone_assets: "VIEW_PHONE_ASSETS"; view_templates: "VIEW_TEMPLATES"; }>; + static get Type(): Readonly<{ + interactive: "INTERACTIVE"; + text: "TEXT"; + }>; static get Category(): Readonly<{ authentication: "AUTHENTICATION"; marketing: "MARKETING"; @@ -71,9 +84,14 @@ export default class WhatsAppBusinessAccount extends AbstractCrudObject { named: "NAMED"; positional: "POSITIONAL"; }>; + static get SendType(): Readonly<{ + campaign: "CAMPAIGN"; + direct: "DIRECT"; + }>; static get SubCategory(): Readonly<{ order_details: "ORDER_DETAILS"; order_status: "ORDER_STATUS"; + rich_order_status: "RICH_ORDER_STATUS"; }>; static get ProviderName(): Readonly<{ billdesk: "BILLDESK"; @@ -91,10 +109,14 @@ export default class WhatsAppBusinessAccount extends AbstractCrudObject { getConversationAnalytics(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getDataset(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createDataset(fields: string[], params?: Record, pathOverride?: string | null): Promise; + getDegreesOfFreedomSpec(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getFlows(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createFlow(fields: string[], params?: Record, pathOverride?: string | null): Promise; createGeneratePaymentConfigurationOauthLink(fields: string[], params?: Record, pathOverride?: string | null): Promise; + getGroupAnalytics(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + getMarketingCampaigns(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; getMessageCampaigns(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + createMessageSample(fields: string[], params?: Record, pathOverride?: string | null): Promise; getMessageTemplatePreviews(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; deleteMessageTemplates(params?: Record): Promise; getMessageTemplates(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; @@ -124,7 +146,9 @@ export default class WhatsAppBusinessAccount extends AbstractCrudObject { createTemplateGroup(fields: string[], params?: Record, pathOverride?: string | null): Promise; getTemplatePerformanceMetrics(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; createUpsertMessageTemplate(fields: string[], params?: Record, pathOverride?: string | null): Promise; + deleteWelcomeMessageSequences(params?: Record): Promise; getWelcomeMessageSequences(fields: string[], params?: Record, fetchFirstPage?: boolean): Cursor | Promise; + createWelcomeMessageSequence(fields: string[], params?: Record, pathOverride?: string | null): Promise; get(fields: string[], params?: Record): Promise; update(fields: string[], params?: Record): Promise; } diff --git a/types/facebook-nodejs-business-sdk/src/objects/whats-app-business-health-status.d.ts b/types/facebook-nodejs-business-sdk/src/objects/whats-app-business-health-status.d.ts index b7fa3963f45892..2903f6a11d1847 100644 --- a/types/facebook-nodejs-business-sdk/src/objects/whats-app-business-health-status.d.ts +++ b/types/facebook-nodejs-business-sdk/src/objects/whats-app-business-health-status.d.ts @@ -6,6 +6,7 @@ import { AbstractCrudObject } from "./../abstract-crud-object"; export default class WhatsAppBusinessHealthStatus extends AbstractCrudObject { static get Fields(): Readonly<{ additional_info: "additional_info"; + can_receive_call_sip: "can_receive_call_sip"; can_send_message: "can_send_message"; entity_type: "entity_type"; errors: "errors"; diff --git a/types/frida-gum/frida-gum-tests.ts b/types/frida-gum/frida-gum-tests.ts index 84b058a7c3bb0f..1551492c59e913 100644 --- a/types/frida-gum/frida-gum-tests.ts +++ b/types/frida-gum/frida-gum-tests.ts @@ -86,6 +86,10 @@ Memory.alloc(1, { near: ptr(1234), maxDistance: 42 }); Memory.alloc(1, { near: ptr(1234) }); // @ts-expect-error Memory.alloc(1, { maxDistance: 42 }); +// $ExpectType NativePointer +Memory.alloc(Process.pageSize, { protection: "rwx" }); +// $ExpectType NativePointer +Memory.alloc(Process.pageSize, { protection: "rx", near: ptr(1234), maxDistance: 42 }); // $ExpectType string Memory.queryProtection(Process.mainModule.base); diff --git a/types/frida-gum/index.d.ts b/types/frida-gum/index.d.ts index fc989bf079b842..ef698d7337ef83 100644 --- a/types/frida-gum/index.d.ts +++ b/types/frida-gum/index.d.ts @@ -1496,9 +1496,19 @@ interface KernelMemoryScanMatch { size: number; } -type MemoryAllocOptions = Record | MemoryAllocNearOptions; +type MemoryAllocOptions = MemoryAllocPlainOptions | MemoryAllocNearOptions; -interface MemoryAllocNearOptions { +interface MemoryAllocPlainOptions { + /** + * Page protection to use for the allocation. Defaults to `"rw"`. + * + * Specifying a protection that includes `"x"` requires `size` to be a + * multiple of `Process.pageSize`. + */ + protection?: PageProtection | undefined; +} + +interface MemoryAllocNearOptions extends MemoryAllocPlainOptions { /** * Memory address to try allocating near. */ diff --git a/types/frida-gum/package.json b/types/frida-gum/package.json index b7d1bafe4730a2..268e3223ba0b57 100644 --- a/types/frida-gum/package.json +++ b/types/frida-gum/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/frida-gum", - "version": "19.0.9999", + "version": "19.1.9999", "nonNpm": true, "nonNpmDescription": "frida-gum", "projects": [ diff --git a/types/k6/experimental/redis/index.d.ts b/types/k6/experimental/redis/index.d.ts deleted file mode 100644 index cce1397e6fa5de..00000000000000 --- a/types/k6/experimental/redis/index.d.ts +++ /dev/null @@ -1,821 +0,0 @@ -/** - * This module provides a redis client allowing users to interact with redis, - * directly from their k6 scripts. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/ - */ - -/** - * `Client` is a Redis client for interacting with a Redis server or cluster. - * - * This client provides a promise-based API, enabling asynchronous operations with the Redis server. - * It supports a wide range of configurations, including single-node connections, cluster mode, and connections through Redis Sentinel. - * - * The client can be configured either by passing a `RedisClientOptions` object for fine-grained configuration, - * or by using a `RedisConnectionURL` string for simpler setups. - * - * For more information on the k6 Redis module, visit: - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client - */ -export class Client { - protected __brand: never; - - /** - * Creates a new instance of the Redis client. - * - * The client can be configured in two ways: - * 1. By providing an object of `RedisClientOptions`, allowing detailed configuration including - * authentication, connection settings, client behaviors, and cluster or sentinel setups. - * 2. By providing a `RedisConnectionURL` string, suitable for straightforward configurations. - * The URL should follow the format: redis[s]://[[username][:password]@][host][:port][/db-number] - * - * Example usage: - * ``` - * // Using RedisClientOptions - * const client = new Client({ - * socket: { - * host: 'localhost', - * port: 6379 - * }, - * password: 'yourpassword' - * }); - * - * // Using RedisConnectionURL - * const client = new Client('redis://user:password@localhost:6379/0'); - * ``` - * - * @param options - The configuration options for the client, either as a `RedisClientOptions` object or a `RedisConnectionURL` string. - * @returns The instantiated Redis client. - */ - constructor(options: RedisClientOptions | RedisConnectionURL); - - /** - * Sets the value of a key, with a time to live (ttl) value equal to - * the provided expiration. - * - * If the key already exists, it is overwritten. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-set - * - * @param key - key to set - * @param value - value to set - * @param expiration - time to live in seconds. `0` means no expiration. - * @returns a promise that resolves to "OK" if the operation succeeded. - */ - set(key: string, value: string | number | boolean, expiration: number): Promise; - - /** - * Gets the value of a key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-get - * - * @param key - key to get - * @returns a promise that resolves to the value of the key. - */ - get(key: string): Promise; - - /** - * Atomically sets the value of a key and returns the value - * previously stored at that key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-getset - * - * @param key - key to get and set - * @param value - value to set - * @returns a promise that resolves to the old value of the key. - */ - getSet(key: string, value: string | number | boolean): Promise; - - /** - * Removes the specified keys. - * - * A key is ignored if it does not exist. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-del - * - * @param keys - keys to delete - * @returns a promise that resolves to the number of keys that were removed. - */ - del(keys: string[]): Promise; - - /** - * Get the value of a key and delete it. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-getdel - * - * @param key - the key to get and delete - * @returns a promise that resolves to the value of the key that was deleted. - */ - getDel(key: string): Promise; - - /** - * Returns the number of the provided keys arguments that exist. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-exists - * - * @param keys - the keys to check the existence of - * @returns a promise that resolves to the number of keys that exist. - */ - exists(keys: string[]): Promise; - - /** - * Increments the numerical value stored at key by one. - * - * If the key does not exist, it is set to 0 before performing the operation. - * If the key exists but cannot be treated as a number, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-incr - * - * @param key - key to increment the value of - * @returns a promise that resolves to the value of the key after the increment. - */ - incr(key: string): Promise; - - /** - * Increments the numerical value stored at key by the provided increment. - * - * If the key does not exist, it is set to 0 before performing the operation. - * If the key exists but cannot be treated as a number, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-incrby - * - * @param key - key to increment the value of - * @param increment - amount to increment the value of the key by - * @returns a promise that resolves to the value of the key after the increment. - */ - incrBy(key: string, increment: number): Promise; - - /** - * Decrements the numerical value stored at key by one. - * - * If the key does not exist, it is set to 0 before performing the operation. - * If the key exists but cannot be treated as a number, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-decr - * - * @param key - key to decrement the value of - * @returns a promise that resolves to the value of the key after the decrement. - */ - decr(key: string): Promise; - - /** - * Decrements the numerical value stored at key by the provided decrement. - * - * If the key does not exist, it is set to 0 before performing the operation. - * If the key exists but cannot be treated as a number, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-decrby - * - * @param key - key to decrement the value of - * @param decrement - amount to decrement the value of the key by - * @returns a promise that resolves to the value of the key after the decrement. - */ - decrBy(key: string, decrement: number): Promise; - - /** - * Returns a random key from the keyspace. - * - * If the database is empty, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-randomkey - * - * @returns a promise that resolves to a random key. - */ - randomKey(): Promise; - - /** - * Returns the values of all the specified keys. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-mget - * - * @param keys - the keys to get the values of - * @returns a promise that resolves to an array of the values of the keys. - */ - mget(keys: string[]): Promise; - - /** - * Sets a timeout on a key. After the timeout has expired, the key will automatically be deleted. - * - * Calling expire with a non-positive timeout value will result in the being deleted rather - * than expired. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-expire - * - * @param key - key to set the time to live of - * @param seconds - value to set the time to live of the key to (in seconds) - * @returns a promise that resolves to true if the operation succeeded, false otherwise. - */ - expire(key: string, seconds: number): Promise; - - /** - * Returns the remaining time to live of a key that has a timeout. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-ttl - * - * @param key - the key to get the time to live of - * @returns a promise that resolves to the time to live of the key, in seconds. - */ - ttl(key: string): Promise; - - /** - * Removes the existing timeout on a key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-persist - * - * @param key - the key to remove the timeout of. - * @returns a promise that resolves to true if the operation succeeded, false otherwise. - */ - persist(key: string): Promise; - - /** - * Prepends values to a list, creating the list if it does not already exist. - * - * If the key exists but does not hold a list, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lpush - * - * @param key - key holding the list to prepend to - * @param values - values to prepend to the list - * @returns a promise that resolves to the number of elements in the list after the prepend operation. - */ - lpush(key: string, ...values: Array): Promise; - - /** - * Appends values to a list, creating the list if it does not already exist. - * - * If the key exists but does not hold a list, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-rpush - * - * @param key - key holding the list to append to - * @param values - values to append to the list - * @returns a promise that resolves to the number of elements in the list after the append operation. - */ - rpush(key: string, ...values: Array): Promise; - - /** - * Removes and returns the value at the head of the list stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lpop - * - * @param key - key holding the list to pop the head of - * @returns a promise that resolves to the value that was popped. - */ - lpop(key: string): Promise; - - /** - * Removes and returns the value at the tail of the list stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-rpop - * - * @param key - key holding the list to pop the tail of - * @returns a promise that resolves to the value that was popped. - */ - rpop(key: string): Promise; - - /** - * Returns the elements stored in the list from start to end. - * - * The offsets are zero-based. These offsets can be negative numbers indicating - * offsets starting at the end of the list. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lrange - * - * @param key - key holding the list to get the range of - * @param start - index of the first element to return - * @param stop - index of the last element to return - * @returns a promise that resolves to an array of the values in the specified range. - */ - lrange(key: string, start: number, stop: number): Promise; - - /** - * Returns the element at the specified in the list stored at key. - * - * The offsets are zero-based. These offsets can be negative numbers indicating - * offsets starting at the end of the list. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lindex - * - * @param key - key holding the list to get the element of - * @param index - index of the element to get - * @returns a promise that resolves to the value of the element at the specified index. - */ - lindex(key: string, index: number): Promise; - - /** - * Sets the value of an element in the list stored at key to new value. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lset - * - * @param key - key holding the list to set the element of - * @param index - index of the element to set - * @param element - value to set the element to - * @returns a promise that resolves to the 'OK' string if the operation succeeded - */ - lset(key: string, index: number, element: string): Promise; - - /** - * Removes the first `count` occurrences of `value` from the list stored at `key`. - * - * If the `count` is positive, elements are removed the from head of the list (from left to right) - * If the `count` is 0, all occurrences of `value` are removed. - * If the `count` is negative, elements are removed from the tail of the list (from right to left). - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lrem - * - * @param key - key holding the list to remove the element of - * @param count - the number of elements matching the value to remove - * @param value - the value to remove - * @returns a promise that resolves to the number of elements removed. - */ - lrem(key: string, count: number, value: string): Promise; - - /** - * Returns the length of the list stored at the key. - * - * If the key does not exist, it is interpreted as an empty list and 0 is returned. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-llen - * - * @param key - key holding the list to get the length of - * @returns a promise that resolves to the length of the list. - */ - llen(key: string): Promise; - - /** - * Sets the value of a hash field to the specified value. - * - * If the key does not exist, a new key holding a hash is created. - * If the field already exists, it is overwritten. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hset - * - * @param key - key holding the hash to set the field's value of - * @param field - field to set the value of - * @param value - value to set the field to - * @returns a promise that resolves to the the number of fields that were changed. - */ - hset(key: string, field: string, value: string | number | boolean): Promise; - - /** - * Sets the value of a hash field to the specified value, if and only if the field does not yet exist. - * - * If the key does not exist, a new key holding a hash is created. - * If the field already exists, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hsetnx - * - * @param key - key holding the hash to set the field's value of - * @param field - field to set the value of - * @param value - value to set the field to - * @returns a promise that resolves to true if the hash field was set, false otherwise. - */ - hsetnx(key: string, field: string, value: string): Promise; - - /** - * Returns the value of the specified hash field. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hget - * - * @param key - key holding the hash to get the field's value of - * @param field - field to get the value of - * @returns a promise that resolves to the value of the hash field. - */ - hget(key: string, field: string): Promise; - - /** - * Deletes the specified fields from the hash stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hdel - * - * @param key - key holding the hash to delete the fields of - * @param fields - fields to delete from the hash - * @returns a promise that resolves to the number of fields that were deleted. - */ - hdel(key: string, fields: string[]): Promise; - - /** - * Returns all fields and values of the hash stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hgetall - * - * @param key - the key holding the hash to get the fields of - * @returns a promise that resolves to an object of field/value pairs. - */ - hgetall(key: string): Promise<{ [key: string]: string }>; - - /** - * Returns all fields of the hash stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hkeys - * - * @param key - the key holding the hash to get the fields of - * @returns a promise that resolves to an array of field names. - */ - hkeys(key: string): Promise; - - /** - * Returns all values of the hash stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hvals - * - * @param key - the key holding the hash to get the fields' values of - * @returns a promise that resolves to an array of field values. - */ - hvals(key: string): Promise; - - /** - * Return the number of fields contained in the hash stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hlen - * - * @param key - the key holding the hash to get the number of fields of - * @returns a promise that resolves to the number of fields in the hash. - */ - hlen(key: string): Promise; - - /** - * Increments the numberical value stored at the hash field by the specified amount. - * - * If the key does not exist, a new key holding a hash is created. - * If the field does not exist, it is set to 0 before the operation is performed. - * If the field does not hold a nummerical value, the returned promise will be rejected. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hincrby - * - * @param key - the key holding the hash to get the number of fields of - * @param field - the hash's field to increment the value of - * @param increment - the amount to increment the value by - * @returns a promise that resolves to the value of the field after the increment. - */ - hincrby(key: string, field: string, increment: number): Promise; - - /** - * Adds the specified elements to the set stored at key. - * - * Specified elements that are already a member of the set are ignored. - * If the key does not exist, a new set is created before adding the specified elements. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-sadd - * - * @param key - the key holding the set to add a member to - * @param members - the members to add to the set - * @returns a promise that resolves to the number of members that were added to the set; excluding those that were already present. - */ - sadd(key: string, ...members: Array): Promise; - - /** - * Removes the specified members from the set stored at key. - * - * Specified members that are not a member of this set are ignored. - * If key does not exist, it is treated as an empty set and this command returns 0. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-srem - * - * @param key - the key holding the set to remove a member from - * @param members - the members to remove from the set - * @returns a promise that resolves to the number of members that were removed from the set. - */ - srem(key: string, ...members: Array): Promise; - - /** - * Returns whether or not the specified member is a member of the set stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-sismember - * - * @param key - the key holding the set to check the belonging of - * @param member - the member to check the belonging of - * @returns a promise that resolves to true if the member is a member of the set, false otherwise. - */ - sismember(key: string, member: string | number | boolean): Promise; - - /** - * Returns the members of the set stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-smembers - * - * @param key - the key holding the set to get the members of - * @returns a promise that resolves to an array of members in the set. - */ - smembers(key: string): Promise; - - /** - * Returns a random member of the set value stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-srandmember - * - * @param key - the key holding the set to get the random member of - * @returns a promise that resolves to a random member of the set. - */ - srandmember(key: string): Promise; - - /** - * Pops a random member from the set stored at key. - * - * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-spop - * - * @param key - the key holding the set to pop the random member of - * @returns a promise that resolves to the popped member. - */ - spop(key: string): Promise; -} - -/** - * Represents a Redis connection URL. - * The URL follows the format: redis[s]://[[username][:password]@][host][:port][/db-number] - * - * - `RedisProtocol` indicates the protocol used ('redis' for standard connections, 'rediss' for secure TLS connections). - * - `RedisUserInfo` optionally includes the username and password for authentication. - * - The `host` is the IP address or hostname of the Redis server. - * - `RedisPort` is the port on which the Redis server is listening (optional, defaults to 6379 if not specified). - * - `RedisDbNumber` specifies a particular database number to connect to (optional). - */ -export type RedisConnectionURL = `${RedisProtocol}://${RedisUserInfo}${string}${RedisPort}${RedisDbNumber}`; - -/** - * Represents the protocol part of a Redis URL. - * - `redis`: Standard, non-encrypted connections. - * - `rediss`: Secure connections using TLS. - */ -export type RedisProtocol = "redis" | "rediss"; - -/** - * Represents the user authentication information part of a Redis URL. - * Formats: - * - `username:password@`: Both username and password are provided for authentication. - * - `username@`: Only username is provided, no password. - * - `"": No authentication information is included. - */ -export type RedisUserInfo = `${string}:${string}@` | `${string}@` | ""; - -export type RedisHost = string; - -/** - * Represents the port part of a Redis URL. - * - `:number`: The port number on which the Redis server is listening. - * - `"": No port is specified, implying the default port (usually 6379). - */ -export type RedisPort = `:${number}` | ""; - -/** - * Represents the database number part of a Redis URL. - * - `/${number}`: Specifies the database number to connect to. - * - `"": No database number is specified, implying the default database (usually 0). - */ -export type RedisDbNumber = `/${number}` | ""; - -/** - * Represents the configuration options for a Redis client. - * - * These options define how the client connects to and interacts with a Redis server or cluster, - * including authentication, connection settings, and specific Redis features. - */ -export interface RedisClientOptions { - /** - * Socket connection options for the Redis client. - * - * This includes the host, port, and other socket-level settings such as timeouts and TLS configuration. - */ - socket: SocketOptions; - - /** - * Optional username for client authentication. - * - * This is used when the Redis server is configured with ACLs (Access Control Lists), - * requiring a username for authentication in addition to a password. - */ - username?: string; - - /** - * Optional password for client authentication. - * - * If the Redis server is secured with a password, this must be provided to establish a connection. - */ - password?: string; - - /** - * Optional name to assign to the client connection. - * - * This can be used for identifying and tracking connections on the Redis server. - * It's useful for debugging and monitoring purposes. - */ - clientName?: string; - - /** - * The ID of the database to be selected after connecting to the Redis server. - * - * Redis supports multiple databases (numbered from 0), allowing separate datasets on the same server instance. - * This option is typically used when connecting to a single-node setup. - */ - database?: number; - - /** - * The name of the master instance to connect to when using Redis Sentinel. - * - * Sentinel manages failover in a Redis deployment, and specifying a master name allows the client to connect to the current master. - * This option is required when connecting through Redis Sentinel. - */ - masterName?: string; - - /** - * Optional username for client authentication with Redis Sentinel. - * - * If the Sentinel servers are secured with ACLs, this username is used for authentication. - */ - sentinelUsername?: string; - - /** - * Optional password for client authentication with Redis Sentinel. - * - * If the Sentinel servers are secured with a password, it must be provided to connect successfully. - */ - sentinelPassword?: string; - - /** - * Optional configuration for connecting to a Redis Cluster. - * - * If the client is connecting to a Redis Cluster, this option provides cluster-specific settings such as node addresses and routing options. - */ - cluster?: ClusterOptions; -} - -/** - * Represents the configuration options for a socket connection to a Redis server. - * - * These options allow fine-tuning of the connection properties, timeouts, and TLS settings. - */ -export interface SocketOptions { - /** - * The IP address or hostname of the Redis server. - * This should be a valid, resolvable address or hostname used to establish the connection. - */ - host: string; - - /** - * The port number on which the Redis server is listening. - * - * If omitted, a default port (typically 6379 for Redis) will be used. - */ - port?: number; - - /** - * Optional configuration for TLS (Transport Layer Security). - * - * This is used to establish a secure, encrypted connection to the Redis server. - * If provided, the connection will use TLS; otherwise, it will be a regular, non-encrypted connection. - */ - tls?: TLSOptions; - - /** - * The maximum amount of time, in milliseconds, to wait for a connection attempt to the Redis server to succeed. - * - * If the connection is not established within this time frame, the attempt will be aborted. - * This helps in avoiding long waits if the server is not reachable. - */ - dialTimeout?: number; - - /** - * The maximum amount of time, in milliseconds, the client will wait for a read operation to complete. - * - * A value of `-1` indicates no timeout, meaning the client will wait indefinitely. - * Setting a read timeout can prevent indefinitely blocking operations if the server becomes unresponsive. - */ - readTimeout?: number; - - /** - * The maximum amount of time, in milliseconds, the client will wait for a write operation to complete. - * - * A value of `-1` indicates no timeout, allowing the client to wait indefinitely. - * Similar to readTimeout, this can prevent blocking in case of server issues. - */ - writeTimeout?: number; - - /** - * The maximum number of socket connections that can be kept open in the pool. - * A larger pool size can handle more concurrent connections, but also uses more resources. - */ - poolSize?: number; - - /** - * The minimum number of idle connections that the pool maintains for faster access. - * - * Keeping some connections idle can improve performance by avoiding the need to establish new connections. - */ - minIdleConns?: number; - - /** - * The maximum amount of time, in milliseconds, a connection can stay idle in the pool before being closed. - * - * This can help in cycling connections and preventing stale connections. - */ - maxConnAge?: number; - - /** - * The maximum amount of time, in milliseconds, to wait for a connection from the pool. - * - * If no connections are available within this time frame, the request for a connection will fail. - * This prevents indefinite blocking when all connections are in use. - */ - poolTimeout?: number; - - /** - * The maximum amount of time, in milliseconds, a connection can be idle in the pool before being considered for closure. - * - * This helps in keeping the pool fresh and closing unused connections. - */ - idleTimeout?: number; - - /** - * The frequency, in milliseconds, at which the client checks for idle connections in the pool. - * - * A value of `-1` disables these checks. Regularly checking for idle connections helps in maintaining a healthy connection pool. - */ - idleCheckFrequency?: number; -} - -/** - * Represents the options for configuring TLS (Transport Layer Security) for a Redis connection. - * This configuration is essential for establishing a secure connection using SSL/TLS, - * which ensures data is encrypted during transmission. - */ -export interface TLSOptions { - /** - * Specifies one or multiple Certificate Authority (CA) certificates to use for validating the server certificate. - * - * The CA certificates are essential for ensuring that the server's certificate is issued by a trusted authority. - * This is an array of ArrayBuffer, where each ArrayBuffer represents a CA certificate in a binary format. - */ - ca: ArrayBuffer[]; - - /** - * An optional client certificate used for mutual TLS authentication. - * - * Providing a client certificate is part of mutual TLS (mTLS), where both the client and the server authenticate each other. - * This property should be an ArrayBuffer representing the client's certificate in a binary format. - * If this property is omitted, the client will not use a certificate for authentication. - */ - cert?: ArrayBuffer; - - /** - * An optional private key associated with the client certificate. - * - * This key is required if a client certificate is provided (via the `cert` property). - * The private key must correspond to the public key in the client certificate and should be in a binary format represented by an ArrayBuffer. - * If this property is omitted but a client certificate is provided, the connection attempt will fail due to the lack of a corresponding private key. - */ - key?: ArrayBuffer; -} - -/** - * Represents the configuration options for a Redis Cluster client. - * - * These options define the behavior of the client when connecting to and interacting with a Redis Cluster. - */ -export interface ClusterOptions { - /** - * The maximum number of redirects the client will follow when a command is redirected. - * - * In a Redis Cluster, certain commands may be redirected to other nodes. This option limits the number of such redirections. - * If this value is not set, a default value (typically defined by the client library) will be used. - */ - maxRedirects?: number; - - /** - * Determines if the client operates in read-only mode. - * - * When set to true, the client sends read commands to replica nodes, potentially improving read scalability. - * This is useful in a cluster setup where you want to distribute read operations across multiple replicas. - */ - readOnly?: boolean; - - /** - * Enables routing read commands by latency. - * - * when true, the client attempts to route read commands to the node with the lowest latency. - * This can optimize read performance by utilizing the fastest available node. - */ - routeByLatency?: boolean; - - /** - * Enables random routing for read commands. - * - * When true, read commands are sent to random nodes in the cluster, potentially distributing the load more evenly. - * This can be beneficial in scenarios where distributing read operations evenly is more important than routing based on latency. - */ - routeRandomly?: boolean; - - /** - * A list of nodes in the Redis Cluster. - * - * This can either be a list of connection URLs or a list of socket options for each node. - * The client uses this list to initially connect to the cluster and discover other nodes. - * - * Each node can be specified as a `RedisConnectionURL` string (e.g., 'redis://host:port') or as a `SocketOptions` object defining host and port. - */ - nodes: RedisConnectionURL[] | SocketOptions[]; -} - -declare let _default: { - Client: Client; -}; -export default _default; diff --git a/types/k6/options/index.d.ts b/types/k6/options/index.d.ts index 400fafd815515f..9140884a18d375 100644 --- a/types/k6/options/index.d.ts +++ b/types/k6/options/index.d.ts @@ -204,8 +204,7 @@ export type ExecutorOptions = | "constant-vus" | "ramping-vus" | "constant-arrival-rate" - | "ramping-arrival-rate" - | "externally-controlled"; + | "ramping-arrival-rate"; /** * BaseScenario. @@ -221,7 +220,6 @@ export abstract class BaseScenario { * - `ramping-vus` * - `constant-arrival-rate` * - `ramping-arrival-rate` - * - `externally-controlled` */ executor: ExecutorOptions; @@ -422,36 +420,13 @@ export interface RampingArrivalRateScenario extends BaseScenario { preAllocatedVUs: number; } -/** - * Control and scale execution at runtime via k6's REST API or the CLI. - * - * https://grafana.com/docs/k6/latest/using-k6/scenarios/executors/externally-controlled/ - */ -export interface ExternallyControlledScenario extends BaseScenario { - executor: "externally-controlled"; - - /** - * Number of VUs to run concurrently. - * - * The default value is 1. - */ - vus?: number; - - /** Total scenario duration (excluding `gracefulStop`) */ - duration: string; - - /** Maximum number of VUs to allow during the test run. */ - maxVUs?: number; -} - export type Scenario = | SharedIterationsScenario | PerVUIterationsScenario | ConstantVUsScenario | RampingVUsScenario | ConstantArrivalRateScenario - | RampingArrivalRateScenario - | ExternallyControlledScenario; + | RampingArrivalRateScenario; export interface ScenarioOptions { /** Browser specific options */ diff --git a/types/k6/package.json b/types/k6/package.json index 11a69d37c83254..62bd62097ffb25 100644 --- a/types/k6/package.json +++ b/types/k6/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/k6", - "version": "1.7.9999", + "version": "2.0.9999", "type": "module", "projects": [ "https://grafana.com/docs/k6/latest/" @@ -26,7 +26,6 @@ "./browser": "./browser/index.d.ts", "./experimental/csv": "./experimental/csv/index.d.ts", "./experimental/fs": "./experimental/fs/index.d.ts", - "./experimental/redis": "./experimental/redis/index.d.ts", "./experimental/streams": "./experimental/streams/index.d.ts", "./websockets": "./websockets/index.d.ts" }, diff --git a/types/k6/test/options.ts b/types/k6/test/options.ts index fabe693add9c7b..2026c5cacb075d 100644 --- a/types/k6/test/options.ts +++ b/types/k6/test/options.ts @@ -55,10 +55,6 @@ const scenarioExample: Options = { stages: [{ duration: "10s", target: 10 }], preAllocatedVUs: 20, }, - myScenario7: { - executor: "externally-controlled", - duration: "10s", - }, }, }; diff --git a/types/k6/test/redis.ts b/types/k6/test/redis.ts deleted file mode 100644 index 3c5d22173c3d2d..00000000000000 --- a/types/k6/test/redis.ts +++ /dev/null @@ -1,503 +0,0 @@ -import redis, { Client } from "k6/experimental/redis"; - -// -// Client constructor with RedisClientOptions - Error Cases -// - -// @ts-expect-error -const redisClient: Client = new redis.Client(); - -// Missing required 'socket' property -// @ts-expect-error -const clientWithoutSocket = new redis.Client({ username: "user", password: "password" }); - -// Invalid socket options -// @ts-expect-error -const clientWithInvalidSocket = new redis.Client({ socket: { invalidProp: "value" } }); -// @ts-expect-error -const clientWithInvalidSocketTLS = new redis.Client({ socket: { tls: { ca: 123 } } }); - -// Invalid types for optional properties -// @ts-expect-error -const clientWithInvalidUsername = new redis.Client({ socket: { host: "localhost" }, username: 123 }); -// @ts-expect-error -const clientWithInvalidPassword = new redis.Client({ socket: { host: "localhost" }, password: 123 }); -// @ts-expect-error -const clientWithInvalidClientName = new redis.Client({ socket: { host: "localhost" }, clientName: true }); -// @ts-expect-error -const clientWithInvalidDatabase = new redis.Client({ socket: { host: "localhost" }, database: "not-a-number" }); -// @ts-expect-error -const clientWithInvalidMasterName = new redis.Client({ socket: { host: "localhost" }, masterName: 123 }); -// @ts-expect-error -const clientWithInvalidSentinelUsername = new redis.Client({ socket: { host: "localhost" }, sentinelUsername: true }); -// @ts-expect-error -const clientWithInvalidSentinelPassword = new redis.Client({ socket: { host: "localhost" }, sentinelPassword: false }); -// @ts-expect-error -const clientWithInvalidCluster = new redis.Client({ socket: { host: "localhost" }, cluster: { invalidProp: "value" } }); - -// -// Client constructor with RedisConnectionURL - Error Cases -// - -// Incorrect format for RedisConnectionURL -// @ts-expect-error -const clientWithMalformedURL = new redis.Client("just-a-string"); - -// -// Additional tests for RedisConnectionURL type components - Error Cases -// - -// RedisProtocol with invalid value -// @ts-expect-error -const invalidProtocol: redis.RedisProtocol = "not-a-protocol"; - -// RedisUserInfo with invalid format -// @ts-expect-error -const invalidUserInfo: redis.RedisUserInfo = "user-password"; - -// RedisPort with non-numeric value -// @ts-expect-error -const invalidPort: redis.RedisPort = ":not-a-number"; - -// RedisDbNumber with non-numeric value -// @ts-expect-error -const invalidDbNumber: redis.RedisDbNumber = "/not-a-number"; - -// -// Client.set -// - -// @ts-expect-error -redisClient.set(); -// @ts-expect-error -redisClient.set(5); -// @ts-expect-error -redisClient.set("key"); -// @ts-expect-error -redisClient.set("key", "value"); -// @ts-expect-error -redisClient.set("key", "value", "invalid-type"); - -// -// Client.get -// - -// @ts-expect-error -redisClient.get(); -// @ts-expect-error -redisClient.get(5); - -// -// Client.getSet -// - -// @ts-expect-error -redisClient.getSet(); -// @ts-expect-error -redisClient.getSet(5); -// @ts-expect-error -redisClient.getSet("key"); - -// -// Client.del -// - -// @ts-expect-error -redisClient.del(); -// @ts-expect-error -redisClient.del(5); - -// -// Client.getDel -// - -// @ts-expect-error -redisClient.getDel(); -// @ts-expect-error -redisClient.getDel(5); - -// -// Client.exists -// - -// @ts-expect-error -redisClient.exists(); -// @ts-expect-error -redisClient.exists(5); - -// -// Client.incr -// - -// @ts-expect-error -redisClient.incr(); -// @ts-expect-error -redisClient.incr(5); - -// -// Client.incrby -// - -// @ts-expect-error -redisClient.incrBy(); -// @ts-expect-error -redisClient.incrBy(5); -// @ts-expect-error -redisClient.incrBy("key"); -// @ts-expect-error -redisClient.incrBy("key", "value"); - -// -// Client.decr -// - -// @ts-expect-error -redisClient.decr(); -// @ts-expect-error -redisClient.decr(5); - -// -// Client.decrby -// - -// @ts-expect-error -redisClient.decrBy(); -// @ts-expect-error -redisClient.decrBy(5); -// @ts-expect-error -redisClient.decrBy("key"); -// @ts-expect-error -redisClient.decrBy("key", "value"); - -// -// Client.randomKey -// - -// @ts-expect-error -redisClient.randomKey(5); - -// -// Client.mget -// - -// @ts-expect-error -redisClient.mget(); -// @ts-expect-error -redisClient.mget(5); - -// -// Client.expire -// - -// @ts-expect-error -redisClient.expire(); -// @ts-expect-error -redisClient.expire(5); -// @ts-expect-error -redisClient.expire("key"); -// @ts-expect-error -redisClient.expire("key", "value"); - -// -// Client.ttl -// - -// @ts-expect-error -redisClient.ttl(); -// @ts-expect-error -redisClient.ttl(5); - -// -// Client.persist -// - -// @ts-expect-error -redisClient.persist(); -// @ts-expect-error -redisClient.persist(5); - -// -// Client.lpush -// - -// @ts-expect-error -redisClient.lpush(); -// @ts-expect-error -redisClient.lpush(5); -// @ts-expect-error -redisClient.lpush("key", { name: "value" }); - -// -// Client.rpush -// - -// @ts-expect-error -redisClient.rpush(); -// @ts-expect-error -redisClient.rpush(5); -// @ts-expect-error -redisClient.rpush("key", { name: "value" }); - -// -// Client.lpop -// - -// @ts-expect-error -redisClient.lpop(); -// @ts-expect-error -redisClient.lpop(5); - -// -// Client.rpop -// - -// @ts-expect-error -redisClient.rpop(); -// @ts-expect-error -redisClient.rpop(5); - -// -// Client.lrange -// - -// @ts-expect-error -redisClient.lrange(); -// @ts-expect-error -redisClient.lrange(5); -// @ts-expect-error -redisClient.lrange("key"); -// @ts-expect-error -redisClient.lrange("key", 0); -// @ts-expect-error -redisClient.lrange("key", 0, "stop"); -// @ts-expect-error -redisClient.lrange("key", "start", "stop"); - -// -// Client.lindex -// - -// @ts-expect-error -redisClient.lindex(); -// @ts-expect-error -redisClient.lindex(5); -// @ts-expect-error -redisClient.lindex("key"); -// @ts-expect-error -redisClient.lindex("key", "index"); - -// -// Client.lset -// - -// @ts-expect-error -redisClient.lset(); -// @ts-expect-error -redisClient.lset(5); -// @ts-expect-error -redisClient.lset("key"); -// @ts-expect-error -redisClient.lset("key", "index"); -// @ts-expect-error -redisClient.lset("key", "index", "element"); -// @ts-expect-error -redisClient.lset("key", "index", 0); - -// -// Client.lrem -// - -// @ts-expect-error -redisClient.lrem(); -// @ts-expect-error -redisClient.lrem(5); -// @ts-expect-error -redisClient.lrem("key"); -// @ts-expect-error -redisClient.lrem("key", "count"); -// @ts-expect-error -redisClient.lrem("key", 0, 0); -// @ts-expect-error -redisClient.lrem("key", "count", "value"); - -// -// Client.llen -// - -// @ts-expect-error -redisClient.llen(); -// @ts-expect-error -redisClient.llen(5); - -// -// Client.hset -// - -// @ts-expect-error -redisClient.hset(); -// @ts-expect-error -redisClient.hset(5); -// @ts-expect-error -redisClient.hset("key"); -// @ts-expect-error -redisClient.hset("key", 0); -// @ts-expect-error -redisClient.hset("key", "value"); -// @ts-expect-error -redisClient.hset("key", "value", { name: "value" }); - -// -// Client.hsetnx -// - -// @ts-expect-error -redisClient.hsetnx(); -// @ts-expect-error -redisClient.hsetnx(5); -// @ts-expect-error -redisClient.hsetnx("key"); -// @ts-expect-error -redisClient.hsetnx("key", 0); -// @ts-expect-error -redisClient.hsetnx("key", "value"); -// @ts-expect-error -redisClient.hsetnx("key", "value", 0); - -// -// Client.hget -// - -// @ts-expect-error -redisClient.hget(); -// @ts-expect-error -redisClient.hget(5); -// @ts-expect-error -redisClient.hget("key"); -// @ts-expect-error -redisClient.hget("key", 0); - -// -// Client.hdel -// - -// @ts-expect-error -redisClient.hdel(); -// @ts-expect-error -redisClient.hdel(5); -// @ts-expect-error -redisClient.hdel("key"); -// @ts-expect-error -redisClient.hdel("key", 0); - -// -// Client.hgetall -// - -// @ts-expect-error -redisClient.hgetall(); -// @ts-expect-error -redisClient.hgetall(5); - -// -// Client.hkeys -// - -// @ts-expect-error -redisClient.hkeys(); -// @ts-expect-error -redisClient.hkeys(5); - -// -// Client.hvals -// - -// @ts-expect-error -redisClient.hvals(); -// @ts-expect-error -redisClient.hvals(5); - -// -// Client.hlen -// - -// @ts-expect-error -redisClient.hlen(); -// @ts-expect-error -redisClient.hlen(5); - -// -// Client.hincrby -// - -// @ts-expect-error -redisClient.hincrby(); -// @ts-expect-error -redisClient.hincrby(5); -// @ts-expect-error -redisClient.hincrby("key"); -// @ts-expect-error -redisClient.hincrby("key", 0); -// @ts-expect-error -redisClient.hincrby("key", "value"); -// @ts-expect-error -redisClient.hincrby("key", "value", "zero"); - -// -// Client.sadd -// - -// @ts-expect-error -redisClient.sadd(); -// @ts-expect-error -redisClient.sadd(5); -// @ts-expect-error -redisClient.sadd("key", { name: "value" }); - -// -// Client.srem -// - -// @ts-expect-error -redisClient.srem(); -// @ts-expect-error -redisClient.srem(5); -// @ts-expect-error -redisClient.srem("key", { name: "value" }); - -// -// Client.sismember -// - -// @ts-expect-error -redisClient.sismember(); -// @ts-expect-error -redisClient.sismember(5); -// @ts-expect-error -redisClient.sismember("key"); - -// -// Client.smembers -// - -// @ts-expect-error -redisClient.smembers(); -// @ts-expect-error -redisClient.smembers(5); - -// -// Client.srandmember -// - -// @ts-expect-error -redisClient.srandmember(); -// @ts-expect-error -redisClient.srandmember(5); - -// -// Client.spop -// - -// @ts-expect-error -redisClient.spop(); -// @ts-expect-error -redisClient.spop(5); diff --git a/types/k6/tsconfig.json b/types/k6/tsconfig.json index d7f4394a3919a6..fb845ed121fe45 100644 --- a/types/k6/tsconfig.json +++ b/types/k6/tsconfig.json @@ -35,7 +35,6 @@ "experimental/csv/index.d.ts", "experimental/fs/index.d.ts", - "experimental/redis/index.d.ts", "experimental/streams/index.d.ts", "websockets/index.d.ts", @@ -57,7 +56,6 @@ "test/http.ts", "test/websockets.ts", "test/secrets.ts", - "test/redis.ts", "test/global.ts" ] } diff --git a/types/woosmap.map/index.d.ts b/types/woosmap.map/index.d.ts index 66634152df73d4..b8c08742461893 100644 --- a/types/woosmap.map/index.d.ts +++ b/types/woosmap.map/index.d.ts @@ -1540,7 +1540,7 @@ declare namespace woosmap.map { */ disableDefaultUI?: boolean; /** - * Disable the tilt control for the users, (default: false). + * Disable the tilt and rotation controls for the users. When set to `true`, this prevents map tilt as well as rotation via touch gestures (two-finger rotate) and keyboard shortcuts (Shift+Arrow keys), (default: false). */ disableTilt?: boolean; /** diff --git a/types/woosmap.map/woosmap.map-tests.ts b/types/woosmap.map/woosmap.map-tests.ts index e1446cf3d22343..b08d4b36fdc0dd 100644 --- a/types/woosmap.map/woosmap.map-tests.ts +++ b/types/woosmap.map/woosmap.map-tests.ts @@ -1,6 +1,5 @@ // Tests for Woosmap Map JS API v1.4 // https://developers.woosmap.com/products/map-api/get-started/ -// /** * Display a Map