@@ -579,14 +579,56 @@ definitions:
579579 type : KeyTransformation
580580 prefix : counters_
581581
582+ deal_pipelines_stream :
583+ $ref : " #/definitions/stream_base"
584+ name : deal_pipelines
585+ primary_key :
586+ - pipelineId
587+ retriever :
588+ type : SimpleRetriever
589+ requester :
590+ $ref : " #/definitions/base_requester"
591+ path : /crm-pipelines/v1/pipelines/deals
592+ record_selector :
593+ type : RecordSelector
594+ transform_before_filtering : true
595+ extractor :
596+ type : DpathExtractor
597+ field_path :
598+ - results
599+ decoder :
600+ type : JsonDecoder
601+ incremental_sync :
602+ type : DatetimeBasedCursor
603+ cursor_field : updatedAt
604+ start_datetime :
605+ type : MinMaxDatetime
606+ datetime : " {{ format_datetime(config.get('start_date', '2006-06-01T00:00:00Z'), '%ms', '%Y-%m-%dT%H:%M:%SZ') }}"
607+ datetime_format : " %ms"
608+ datetime_format : " %ms"
609+ lookback_window : P{{ config.get('lookback_window', 0) }}D
610+ cursor_datetime_formats :
611+ - " %ms"
612+ is_client_side_incremental : true
613+ schema_loader :
614+ type : InlineSchemaLoader
615+ schema :
616+ $ref : " #/schemas/deal_pipelines"
617+ transformations :
618+ - type : AddFields
619+ fields :
620+ - path : ["updatedAt"]
621+ value : " {{ record.get('updatedAt') or record['createdAt'] }}"
622+
582623streams :
624+ - " #/definitions/campaigns_stream"
583625 - " #/definitions/companies_property_history_stream"
584626 - " #/definitions/contacts_property_history_stream"
627+ - " #/definitions/deal_pipelines_stream"
585628 - " #/definitions/deals_property_history_stream"
586629 - " #/definitions/email_subscriptions_stream"
587630 - " #/definitions/marketing_emails_stream"
588631 - " #/definitions/ticket_pipelines_stream"
589- - " #/definitions/campaigns_stream"
590632
591633# HubSpot account is limited to 110 requests every 10 seconds https://developers.hubspot.com/docs/guides/apps/api-usage/usage-details#rate-limits
592634concurrency_level :
@@ -595,6 +637,111 @@ concurrency_level:
595637 max_concurrency : 40
596638
597639schemas :
640+ deal_pipelines :
641+ $schema : http://json-schema.org/draft-07/schema#
642+ type :
643+ - " null"
644+ - object
645+ additionalProperties : true
646+ properties :
647+ label :
648+ description : The label or name of the deal pipeline.
649+ type :
650+ - " null"
651+ - string
652+ displayOrder :
653+ description : The ordering of the deal pipeline for display.
654+ type :
655+ - " null"
656+ - integer
657+ active :
658+ description : Indicates if the deal pipeline is currently active or not.
659+ type :
660+ - " null"
661+ - boolean
662+ stages :
663+ description : List of deal stages within the pipeline.
664+ type :
665+ - " null"
666+ - array
667+ items :
668+ type :
669+ - " null"
670+ - object
671+ properties :
672+ label :
673+ description : The label or name of the deal stage.
674+ type :
675+ - " null"
676+ - string
677+ displayOrder :
678+ description : The ordering of the deal stage for display within the pipeline.
679+ type :
680+ - " null"
681+ - integer
682+ metadata :
683+ description : Additional information related to the deal stage.
684+ type :
685+ - " null"
686+ - object
687+ properties :
688+ isClosed :
689+ description : Indicates if the deal stage is considered closed or not.
690+ type :
691+ - " null"
692+ - string
693+ probability :
694+ description : The probability of closing a deal at this stage.
695+ type :
696+ - " null"
697+ - string
698+ stageId :
699+ description : The unique identifier of the deal stage.
700+ type :
701+ - " null"
702+ - string
703+ createdAt :
704+ description : Timestamp for the creation date of the deal stage.
705+ type :
706+ - " null"
707+ - integer
708+ updatedAt :
709+ description : Timestamp for the last update to the deal stage.
710+ type :
711+ - " null"
712+ - integer
713+ active :
714+ description : Indicates if the deal stage is currently active or not.
715+ type :
716+ - " null"
717+ - boolean
718+ objectType :
719+ description : The type of object this deal pipeline is associated with.
720+ type :
721+ - " null"
722+ - string
723+ objectTypeId :
724+ description : The ID of the object type this deal pipeline is associated with.
725+ type :
726+ - " null"
727+ - string
728+ pipelineId :
729+ description : The unique identifier of the deal pipeline.
730+ type :
731+ - " null"
732+ - string
733+ createdAt :
734+ description : Timestamp for the creation date of the deal pipeline.
735+ type :
736+ - " null"
737+ - integer
738+ updatedAt :
739+ description : Timestamp for the last update to the deal pipeline.
740+ type :
741+ - " null"
742+ - integer
743+ default :
744+ description : Indicates if this pipeline is the default one in the system.
598745 companies_property_history :
599746 $schema : " http://json-schema.org/draft-07/schema"
600747 type :
0 commit comments