@hewnventures/levrops-sdk 1.15.7 → 1.15.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/core/OpenAPI.js +1 -1
- package/dist/generated/core/OpenAPI.js.map +1 -1
- package/dist/generated/index.d.ts +63 -30
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -25
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/ActivitySession.d.ts +50 -0
- package/dist/generated/models/ActivitySession.d.ts.map +1 -0
- package/dist/generated/models/ActivitySession.js +2 -0
- package/dist/generated/models/ActivitySession.js.map +1 -0
- package/dist/generated/models/ActivitySessionPartial.d.ts +39 -0
- package/dist/generated/models/ActivitySessionPartial.d.ts.map +1 -0
- package/dist/generated/models/ActivitySessionPartial.js +2 -0
- package/dist/generated/models/ActivitySessionPartial.js.map +1 -0
- package/dist/generated/models/ActivitySessionWrite.d.ts +30 -0
- package/dist/generated/models/ActivitySessionWrite.d.ts.map +1 -0
- package/dist/generated/models/ActivitySessionWrite.js +2 -0
- package/dist/generated/models/ActivitySessionWrite.js.map +1 -0
- package/dist/generated/models/AnalysisEligibilityEnum.d.ts +7 -0
- package/dist/generated/models/AnalysisEligibilityEnum.d.ts.map +1 -0
- package/dist/generated/models/AnalysisEligibilityEnum.js +2 -0
- package/dist/generated/models/AnalysisEligibilityEnum.js.map +1 -0
- package/dist/generated/models/AnalysisStatusEnum.d.ts +9 -0
- package/dist/generated/models/AnalysisStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/AnalysisStatusEnum.js +2 -0
- package/dist/generated/models/AnalysisStatusEnum.js.map +1 -0
- package/dist/generated/models/ArtifactClusterDetail.d.ts +10 -0
- package/dist/generated/models/ArtifactClusterDetail.d.ts.map +1 -0
- package/dist/generated/models/ArtifactClusterDetail.js +2 -0
- package/dist/generated/models/ArtifactClusterDetail.js.map +1 -0
- package/dist/generated/models/AssistantMediaAsset.d.ts +28 -0
- package/dist/generated/models/AssistantMediaAsset.d.ts.map +1 -0
- package/dist/generated/models/AssistantMediaAsset.js +2 -0
- package/dist/generated/models/AssistantMediaAsset.js.map +1 -0
- package/dist/generated/models/AssistantMediaAssetGenerate.d.ts +13 -0
- package/dist/generated/models/AssistantMediaAssetGenerate.d.ts.map +1 -0
- package/dist/generated/models/AssistantMediaAssetGenerate.js +2 -0
- package/dist/generated/models/AssistantMediaAssetGenerate.js.map +1 -0
- package/dist/generated/models/AssistantMediaAssetGenerateKindEnum.d.ts +9 -0
- package/dist/generated/models/AssistantMediaAssetGenerateKindEnum.d.ts.map +1 -0
- package/dist/generated/models/AssistantMediaAssetGenerateKindEnum.js +2 -0
- package/dist/generated/models/AssistantMediaAssetGenerateKindEnum.js.map +1 -0
- package/dist/generated/models/AssistantMediaAssetGenerateOwnerTypeEnum.d.ts +6 -0
- package/dist/generated/models/AssistantMediaAssetGenerateOwnerTypeEnum.d.ts.map +1 -0
- package/dist/generated/models/AssistantMediaAssetGenerateOwnerTypeEnum.js +2 -0
- package/dist/generated/models/AssistantMediaAssetGenerateOwnerTypeEnum.js.map +1 -0
- package/dist/generated/models/AssistantMediaAssetKindEnum.d.ts +9 -0
- package/dist/generated/models/AssistantMediaAssetKindEnum.d.ts.map +1 -0
- package/dist/generated/models/AssistantMediaAssetKindEnum.js +2 -0
- package/dist/generated/models/AssistantMediaAssetKindEnum.js.map +1 -0
- package/dist/generated/models/AssistantMediaAssetOwnerTypeEnum.d.ts +6 -0
- package/dist/generated/models/AssistantMediaAssetOwnerTypeEnum.d.ts.map +1 -0
- package/dist/generated/models/AssistantMediaAssetOwnerTypeEnum.js +2 -0
- package/dist/generated/models/AssistantMediaAssetOwnerTypeEnum.js.map +1 -0
- package/dist/generated/models/AssistantMediaAssetStatusEnum.d.ts +7 -0
- package/dist/generated/models/AssistantMediaAssetStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/AssistantMediaAssetStatusEnum.js +2 -0
- package/dist/generated/models/AssistantMediaAssetStatusEnum.js.map +1 -0
- package/dist/generated/models/AssistantPersona.d.ts +39 -0
- package/dist/generated/models/AssistantPersona.d.ts.map +1 -0
- package/dist/generated/models/AssistantPersona.js +2 -0
- package/dist/generated/models/AssistantPersona.js.map +1 -0
- package/dist/generated/models/AssistantTeam.d.ts +18 -0
- package/dist/generated/models/AssistantTeam.d.ts.map +1 -0
- package/dist/generated/models/AssistantTeam.js +2 -0
- package/dist/generated/models/AssistantTeam.js.map +1 -0
- package/dist/generated/models/AssistantTeamList.d.ts +16 -0
- package/dist/generated/models/AssistantTeamList.d.ts.map +1 -0
- package/dist/generated/models/AssistantTeamList.js +2 -0
- package/dist/generated/models/AssistantTeamList.js.map +1 -0
- package/dist/generated/models/Campaign.d.ts +4 -0
- package/dist/generated/models/Campaign.d.ts.map +1 -1
- package/dist/generated/models/CampaignCreate.d.ts +4 -0
- package/dist/generated/models/CampaignCreate.d.ts.map +1 -1
- package/dist/generated/models/Channel.d.ts +2 -2
- package/dist/generated/models/Channel.d.ts.map +1 -1
- package/dist/generated/models/ChannelDeliveryNested.d.ts +8 -2
- package/dist/generated/models/ChannelDeliveryNested.d.ts.map +1 -1
- package/dist/generated/models/{PlatformEnum.d.ts → ChannelPlatformEnum.d.ts} +2 -2
- package/dist/generated/models/ChannelPlatformEnum.d.ts.map +1 -0
- package/dist/generated/models/ChannelPlatformEnum.js +2 -0
- package/dist/generated/models/ChannelPlatformEnum.js.map +1 -0
- package/dist/generated/models/ConstellationEvent.d.ts +14 -0
- package/dist/generated/models/ConstellationEvent.d.ts.map +1 -0
- package/dist/generated/models/ConstellationEvent.js +2 -0
- package/dist/generated/models/ConstellationEvent.js.map +1 -0
- package/dist/generated/models/ContentGenerationRun.d.ts +1 -1
- package/dist/generated/models/ContentGenerationRun.d.ts.map +1 -1
- package/dist/generated/models/ContentUnit.d.ts +1 -1
- package/dist/generated/models/ContentUnit.d.ts.map +1 -1
- package/dist/generated/models/ContentUnitStatusEnum.d.ts +3 -1
- package/dist/generated/models/ContentUnitStatusEnum.d.ts.map +1 -1
- package/dist/generated/models/DeliveryStatusEnum.d.ts +4 -2
- package/dist/generated/models/DeliveryStatusEnum.d.ts.map +1 -1
- package/dist/generated/models/DeploymentStatusEnum.d.ts +9 -0
- package/dist/generated/models/DeploymentStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/DeploymentStatusEnum.js +2 -0
- package/dist/generated/models/DeploymentStatusEnum.js.map +1 -0
- package/dist/generated/models/DesignArtifact.d.ts +3 -3
- package/dist/generated/models/DesignArtifact.d.ts.map +1 -1
- package/dist/generated/models/DesignArtifactKindEnum.d.ts +6 -0
- package/dist/generated/models/DesignArtifactKindEnum.d.ts.map +1 -0
- package/dist/generated/models/DesignArtifactKindEnum.js +2 -0
- package/dist/generated/models/DesignArtifactKindEnum.js.map +1 -0
- package/dist/generated/models/DomainBinding.d.ts +22 -0
- package/dist/generated/models/DomainBinding.d.ts.map +1 -0
- package/dist/generated/models/DomainBinding.js +2 -0
- package/dist/generated/models/DomainBinding.js.map +1 -0
- package/dist/generated/models/DomainBindingStatusEnum.d.ts +6 -0
- package/dist/generated/models/DomainBindingStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/DomainBindingStatusEnum.js +2 -0
- package/dist/generated/models/DomainBindingStatusEnum.js.map +1 -0
- package/dist/generated/models/EventTypeEnum.d.ts +12 -0
- package/dist/generated/models/EventTypeEnum.d.ts.map +1 -0
- package/dist/generated/models/EventTypeEnum.js +2 -0
- package/dist/generated/models/EventTypeEnum.js.map +1 -0
- package/dist/generated/models/IdentityIngestionFile.d.ts +160 -3
- package/dist/generated/models/IdentityIngestionFile.d.ts.map +1 -1
- package/dist/generated/models/IntakeClassEnum.d.ts +10 -0
- package/dist/generated/models/IntakeClassEnum.d.ts.map +1 -0
- package/dist/generated/models/IntakeClassEnum.js +2 -0
- package/dist/generated/models/IntakeClassEnum.js.map +1 -0
- package/dist/generated/models/LayoutGenerationRun.d.ts +1 -1
- package/dist/generated/models/LayoutGenerationRun.d.ts.map +1 -1
- package/dist/generated/models/ManualQueueStatusEnum.d.ts +8 -0
- package/dist/generated/models/ManualQueueStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/ManualQueueStatusEnum.js +2 -0
- package/dist/generated/models/ManualQueueStatusEnum.js.map +1 -0
- package/dist/generated/models/ModeEnum.d.ts +8 -0
- package/dist/generated/models/ModeEnum.d.ts.map +1 -0
- package/dist/generated/models/ModeEnum.js +2 -0
- package/dist/generated/models/ModeEnum.js.map +1 -0
- package/dist/generated/models/NullEnum.d.ts +2 -0
- package/dist/generated/models/NullEnum.d.ts.map +1 -0
- package/dist/generated/models/NullEnum.js +2 -0
- package/dist/generated/models/NullEnum.js.map +1 -0
- package/dist/generated/models/OcrStatusEnum.d.ts +8 -0
- package/dist/generated/models/OcrStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/OcrStatusEnum.js +2 -0
- package/dist/generated/models/OcrStatusEnum.js.map +1 -0
- package/dist/generated/models/OpsIngestionFile.d.ts +210 -0
- package/dist/generated/models/OpsIngestionFile.d.ts.map +1 -0
- package/dist/generated/models/OpsIngestionFile.js +2 -0
- package/dist/generated/models/OpsIngestionFile.js.map +1 -0
- package/dist/generated/models/PatchedActivitySessionPartial.d.ts +39 -0
- package/dist/generated/models/PatchedActivitySessionPartial.d.ts.map +1 -0
- package/dist/generated/models/PatchedActivitySessionPartial.js +2 -0
- package/dist/generated/models/PatchedActivitySessionPartial.js.map +1 -0
- package/dist/generated/models/PatchedAssistantPersona.d.ts +39 -0
- package/dist/generated/models/PatchedAssistantPersona.d.ts.map +1 -0
- package/dist/generated/models/PatchedAssistantPersona.js +2 -0
- package/dist/generated/models/PatchedAssistantPersona.js.map +1 -0
- package/dist/generated/models/PatchedAssistantTeam.d.ts +18 -0
- package/dist/generated/models/PatchedAssistantTeam.d.ts.map +1 -0
- package/dist/generated/models/PatchedAssistantTeam.js +2 -0
- package/dist/generated/models/PatchedAssistantTeam.js.map +1 -0
- package/dist/generated/models/PatchedCampaign.d.ts +4 -0
- package/dist/generated/models/PatchedCampaign.d.ts.map +1 -1
- package/dist/generated/models/PatchedChannel.d.ts +2 -2
- package/dist/generated/models/PatchedChannel.d.ts.map +1 -1
- package/dist/generated/models/PatchedContentGenerationRun.d.ts +1 -1
- package/dist/generated/models/PatchedContentGenerationRun.d.ts.map +1 -1
- package/dist/generated/models/PatchedContentUnit.d.ts +1 -1
- package/dist/generated/models/PatchedContentUnit.d.ts.map +1 -1
- package/dist/generated/models/PatchedDesignArtifact.d.ts +3 -3
- package/dist/generated/models/PatchedDesignArtifact.d.ts.map +1 -1
- package/dist/generated/models/PatchedIdentityIngestionFile.d.ts +207 -0
- package/dist/generated/models/PatchedIdentityIngestionFile.d.ts.map +1 -0
- package/dist/generated/models/PatchedIdentityIngestionFile.js +2 -0
- package/dist/generated/models/PatchedIdentityIngestionFile.js.map +1 -0
- package/dist/generated/models/PatchedLayoutGenerationRun.d.ts +1 -1
- package/dist/generated/models/PatchedLayoutGenerationRun.d.ts.map +1 -1
- package/dist/generated/models/PatchedOpsIngestionFile.d.ts +210 -0
- package/dist/generated/models/PatchedOpsIngestionFile.d.ts.map +1 -0
- package/dist/generated/models/PatchedOpsIngestionFile.js +2 -0
- package/dist/generated/models/PatchedOpsIngestionFile.js.map +1 -0
- package/dist/generated/models/PatchedPublishHandoff.d.ts +27 -0
- package/dist/generated/models/PatchedPublishHandoff.d.ts.map +1 -0
- package/dist/generated/models/PatchedPublishHandoff.js +2 -0
- package/dist/generated/models/PatchedPublishHandoff.js.map +1 -0
- package/dist/generated/models/PatchedResearchSubmission.d.ts +1 -1
- package/dist/generated/models/PatchedResearchSubmission.d.ts.map +1 -1
- package/dist/generated/models/PatchedSurfaceConfigVarCreate.d.ts +22 -0
- package/dist/generated/models/PatchedSurfaceConfigVarCreate.d.ts.map +1 -0
- package/dist/generated/models/PatchedSurfaceConfigVarCreate.js +2 -0
- package/dist/generated/models/PatchedSurfaceConfigVarCreate.js.map +1 -0
- package/dist/generated/models/PlatformD77Enum.d.ts +10 -0
- package/dist/generated/models/PlatformD77Enum.d.ts.map +1 -0
- package/dist/generated/models/PlatformD77Enum.js +2 -0
- package/dist/generated/models/PlatformD77Enum.js.map +1 -0
- package/dist/generated/models/PublishHandoff.d.ts +27 -0
- package/dist/generated/models/PublishHandoff.d.ts.map +1 -0
- package/dist/generated/models/PublishHandoff.js +2 -0
- package/dist/generated/models/PublishHandoff.js.map +1 -0
- package/dist/generated/models/PublishHandoffCreate.d.ts +18 -0
- package/dist/generated/models/PublishHandoffCreate.d.ts.map +1 -0
- package/dist/generated/models/PublishHandoffCreate.js +2 -0
- package/dist/generated/models/PublishHandoffCreate.js.map +1 -0
- package/dist/generated/models/ReasonEnum.d.ts +7 -0
- package/dist/generated/models/ReasonEnum.d.ts.map +1 -0
- package/dist/generated/models/ReasonEnum.js +2 -0
- package/dist/generated/models/ReasonEnum.js.map +1 -0
- package/dist/generated/models/ResearchSubmission.d.ts +1 -1
- package/dist/generated/models/ResearchSubmission.d.ts.map +1 -1
- package/dist/generated/models/ResearchSubmissionDetail.d.ts +1 -1
- package/dist/generated/models/ResearchSubmissionDetail.d.ts.map +1 -1
- package/dist/generated/models/ScopeEnum.d.ts +6 -0
- package/dist/generated/models/ScopeEnum.d.ts.map +1 -0
- package/dist/generated/models/ScopeEnum.js +2 -0
- package/dist/generated/models/ScopeEnum.js.map +1 -0
- package/dist/generated/models/StateEnum.d.ts +11 -0
- package/dist/generated/models/StateEnum.d.ts.map +1 -0
- package/dist/generated/models/StateEnum.js +2 -0
- package/dist/generated/models/StateEnum.js.map +1 -0
- package/dist/generated/models/Status352Enum.d.ts +7 -0
- package/dist/generated/models/Status352Enum.d.ts.map +1 -0
- package/dist/generated/models/Status352Enum.js +2 -0
- package/dist/generated/models/Status352Enum.js.map +1 -0
- package/dist/generated/models/Status88aEnum.d.ts +8 -0
- package/dist/generated/models/Status88aEnum.d.ts.map +1 -0
- package/dist/generated/models/Status88aEnum.js +2 -0
- package/dist/generated/models/Status88aEnum.js.map +1 -0
- package/dist/generated/models/SurfaceConfigVarCreate.d.ts +22 -0
- package/dist/generated/models/SurfaceConfigVarCreate.d.ts.map +1 -0
- package/dist/generated/models/SurfaceConfigVarCreate.js +2 -0
- package/dist/generated/models/SurfaceConfigVarCreate.js.map +1 -0
- package/dist/generated/models/SurfaceDomain.d.ts +23 -0
- package/dist/generated/models/SurfaceDomain.d.ts.map +1 -0
- package/dist/generated/models/SurfaceDomain.js +2 -0
- package/dist/generated/models/SurfaceDomain.js.map +1 -0
- package/dist/generated/models/SurfaceDomainKindEnum.d.ts +6 -0
- package/dist/generated/models/SurfaceDomainKindEnum.d.ts.map +1 -0
- package/dist/generated/models/SurfaceDomainKindEnum.js +2 -0
- package/dist/generated/models/SurfaceDomainKindEnum.js.map +1 -0
- package/dist/generated/models/SurfaceVersion.d.ts +32 -0
- package/dist/generated/models/SurfaceVersion.d.ts.map +1 -0
- package/dist/generated/models/SurfaceVersion.js +2 -0
- package/dist/generated/models/SurfaceVersion.js.map +1 -0
- package/dist/generated/models/SurfaceVersionArtifact.d.ts +28 -0
- package/dist/generated/models/SurfaceVersionArtifact.d.ts.map +1 -0
- package/dist/generated/models/SurfaceVersionArtifact.js +2 -0
- package/dist/generated/models/SurfaceVersionArtifact.js.map +1 -0
- package/dist/generated/models/SurfaceVersionArtifactKindEnum.d.ts +9 -0
- package/dist/generated/models/SurfaceVersionArtifactKindEnum.d.ts.map +1 -0
- package/dist/generated/models/SurfaceVersionArtifactKindEnum.js +2 -0
- package/dist/generated/models/SurfaceVersionArtifactKindEnum.js.map +1 -0
- package/dist/generated/models/SurfaceVersionArtifactProviderEnum.d.ts +8 -0
- package/dist/generated/models/SurfaceVersionArtifactProviderEnum.d.ts.map +1 -0
- package/dist/generated/models/SurfaceVersionArtifactProviderEnum.js +2 -0
- package/dist/generated/models/SurfaceVersionArtifactProviderEnum.js.map +1 -0
- package/dist/generated/models/SurfaceVersionCreate.d.ts +15 -0
- package/dist/generated/models/SurfaceVersionCreate.d.ts.map +1 -0
- package/dist/generated/models/SurfaceVersionCreate.js +2 -0
- package/dist/generated/models/SurfaceVersionCreate.js.map +1 -0
- package/dist/generated/models/SurfaceVersionStatusEnum.d.ts +11 -0
- package/dist/generated/models/SurfaceVersionStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/SurfaceVersionStatusEnum.js +2 -0
- package/dist/generated/models/SurfaceVersionStatusEnum.js.map +1 -0
- package/dist/generated/models/TitleSourceEnum.d.ts +7 -0
- package/dist/generated/models/TitleSourceEnum.d.ts.map +1 -0
- package/dist/generated/models/TitleSourceEnum.js +2 -0
- package/dist/generated/models/TitleSourceEnum.js.map +1 -0
- package/dist/generated/models/TranscriptionStatusEnum.d.ts +8 -0
- package/dist/generated/models/TranscriptionStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/TranscriptionStatusEnum.js +2 -0
- package/dist/generated/models/TranscriptionStatusEnum.js.map +1 -0
- package/dist/generated/models/VersionLaunchRun.d.ts +35 -0
- package/dist/generated/models/VersionLaunchRun.d.ts.map +1 -0
- package/dist/generated/models/VersionLaunchRun.js +2 -0
- package/dist/generated/models/VersionLaunchRun.js.map +1 -0
- package/dist/generated/models/VersionLaunchRunCreate.d.ts +9 -0
- package/dist/generated/models/VersionLaunchRunCreate.d.ts.map +1 -0
- package/dist/generated/models/VersionLaunchRunCreate.js +2 -0
- package/dist/generated/models/VersionLaunchRunCreate.js.map +1 -0
- package/dist/generated/models/VersionLaunchRunStatusEnum.d.ts +8 -0
- package/dist/generated/models/VersionLaunchRunStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/VersionLaunchRunStatusEnum.js +2 -0
- package/dist/generated/models/VersionLaunchRunStatusEnum.js.map +1 -0
- package/dist/generated/models/VersionLaunchStep.d.ts +15 -0
- package/dist/generated/models/VersionLaunchStep.d.ts.map +1 -0
- package/dist/generated/models/VersionLaunchStep.js +2 -0
- package/dist/generated/models/VersionLaunchStep.js.map +1 -0
- package/dist/generated/models/VersionLaunchStepStatusEnum.d.ts +9 -0
- package/dist/generated/models/VersionLaunchStepStatusEnum.d.ts.map +1 -0
- package/dist/generated/models/VersionLaunchStepStatusEnum.js +2 -0
- package/dist/generated/models/VersionLaunchStepStatusEnum.js.map +1 -0
- package/dist/generated/models/VisibilityEnum.d.ts +7 -0
- package/dist/generated/models/VisibilityEnum.d.ts.map +1 -0
- package/dist/generated/models/VisibilityEnum.js +2 -0
- package/dist/generated/models/VisibilityEnum.js.map +1 -0
- package/dist/generated/services/ApiService.d.ts +8401 -0
- package/dist/generated/services/ApiService.d.ts.map +1 -0
- package/dist/generated/services/ApiService.js +11691 -0
- package/dist/generated/services/ApiService.js.map +1 -0
- package/dist/generated/services/HealthService.d.ts +19 -0
- package/dist/generated/services/HealthService.d.ts.map +1 -0
- package/dist/generated/services/HealthService.js +30 -0
- package/dist/generated/services/HealthService.js.map +1 -0
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/generated/models/IdentityIngestionFileStatusEnum.d.ts +0 -8
- package/dist/generated/models/IdentityIngestionFileStatusEnum.d.ts.map +0 -1
- package/dist/generated/models/IdentityIngestionFileStatusEnum.js +0 -2
- package/dist/generated/models/IdentityIngestionFileStatusEnum.js.map +0 -1
- package/dist/generated/models/KindEnum.d.ts +0 -6
- package/dist/generated/models/KindEnum.d.ts.map +0 -1
- package/dist/generated/models/KindEnum.js +0 -2
- package/dist/generated/models/KindEnum.js.map +0 -1
- package/dist/generated/models/PexelsAttachRequest.d.ts +0 -34
- package/dist/generated/models/PexelsAttachRequest.d.ts.map +0 -1
- package/dist/generated/models/PexelsAttachRequest.js +0 -2
- package/dist/generated/models/PexelsAttachRequest.js.map +0 -1
- package/dist/generated/models/PexelsCandidatesRequest.d.ts +0 -14
- package/dist/generated/models/PexelsCandidatesRequest.d.ts.map +0 -1
- package/dist/generated/models/PexelsCandidatesRequest.js +0 -2
- package/dist/generated/models/PexelsCandidatesRequest.js.map +0 -1
- package/dist/generated/models/PlatformEnum.d.ts.map +0 -1
- package/dist/generated/models/PlatformEnum.js +0 -2
- package/dist/generated/models/PlatformEnum.js.map +0 -1
- package/dist/generated/services/AdminService.d.ts +0 -304
- package/dist/generated/services/AdminService.d.ts.map +0 -1
- package/dist/generated/services/AdminService.js +0 -461
- package/dist/generated/services/AdminService.js.map +0 -1
- package/dist/generated/services/AnalyticsService.d.ts +0 -118
- package/dist/generated/services/AnalyticsService.d.ts.map +0 -1
- package/dist/generated/services/AnalyticsService.js +0 -163
- package/dist/generated/services/AnalyticsService.js.map +0 -1
- package/dist/generated/services/AuthService.d.ts +0 -114
- package/dist/generated/services/AuthService.d.ts.map +0 -1
- package/dist/generated/services/AuthService.js +0 -215
- package/dist/generated/services/AuthService.js.map +0 -1
- package/dist/generated/services/CommerceService.d.ts +0 -136
- package/dist/generated/services/CommerceService.d.ts.map +0 -1
- package/dist/generated/services/CommerceService.js +0 -190
- package/dist/generated/services/CommerceService.js.map +0 -1
- package/dist/generated/services/ConceptLabService.d.ts +0 -130
- package/dist/generated/services/ConceptLabService.d.ts.map +0 -1
- package/dist/generated/services/ConceptLabService.js +0 -160
- package/dist/generated/services/ConceptLabService.js.map +0 -1
- package/dist/generated/services/CrmService.d.ts +0 -258
- package/dist/generated/services/CrmService.d.ts.map +0 -1
- package/dist/generated/services/CrmService.js +0 -393
- package/dist/generated/services/CrmService.js.map +0 -1
- package/dist/generated/services/DesignopsService.d.ts +0 -302
- package/dist/generated/services/DesignopsService.d.ts.map +0 -1
- package/dist/generated/services/DesignopsService.js +0 -404
- package/dist/generated/services/DesignopsService.js.map +0 -1
- package/dist/generated/services/EditorialService.d.ts +0 -1627
- package/dist/generated/services/EditorialService.d.ts.map +0 -1
- package/dist/generated/services/EditorialService.js +0 -1930
- package/dist/generated/services/EditorialService.js.map +0 -1
- package/dist/generated/services/ExpressionService.d.ts +0 -252
- package/dist/generated/services/ExpressionService.d.ts.map +0 -1
- package/dist/generated/services/ExpressionService.js +0 -428
- package/dist/generated/services/ExpressionService.js.map +0 -1
- package/dist/generated/services/FeatureWorkflowService.d.ts +0 -20
- package/dist/generated/services/FeatureWorkflowService.d.ts.map +0 -1
- package/dist/generated/services/FeatureWorkflowService.js +0 -26
- package/dist/generated/services/FeatureWorkflowService.js.map +0 -1
- package/dist/generated/services/ImpersonationService.d.ts +0 -9
- package/dist/generated/services/ImpersonationService.d.ts.map +0 -1
- package/dist/generated/services/ImpersonationService.js +0 -15
- package/dist/generated/services/ImpersonationService.js.map +0 -1
- package/dist/generated/services/IntegrationsService.d.ts +0 -379
- package/dist/generated/services/IntegrationsService.d.ts.map +0 -1
- package/dist/generated/services/IntegrationsService.js +0 -537
- package/dist/generated/services/IntegrationsService.js.map +0 -1
- package/dist/generated/services/LayoutopsService.d.ts +0 -413
- package/dist/generated/services/LayoutopsService.d.ts.map +0 -1
- package/dist/generated/services/LayoutopsService.js +0 -543
- package/dist/generated/services/LayoutopsService.js.map +0 -1
- package/dist/generated/services/McpService.d.ts +0 -450
- package/dist/generated/services/McpService.d.ts.map +0 -1
- package/dist/generated/services/McpService.js +0 -595
- package/dist/generated/services/McpService.js.map +0 -1
- package/dist/generated/services/MeService.d.ts +0 -25
- package/dist/generated/services/MeService.d.ts.map +0 -1
- package/dist/generated/services/MeService.js +0 -36
- package/dist/generated/services/MeService.js.map +0 -1
- package/dist/generated/services/MyService.d.ts +0 -45
- package/dist/generated/services/MyService.d.ts.map +0 -1
- package/dist/generated/services/MyService.js +0 -67
- package/dist/generated/services/MyService.js.map +0 -1
- package/dist/generated/services/ObservabilityService.d.ts +0 -42
- package/dist/generated/services/ObservabilityService.d.ts.map +0 -1
- package/dist/generated/services/ObservabilityService.js +0 -74
- package/dist/generated/services/ObservabilityService.js.map +0 -1
- package/dist/generated/services/OnboardingService.d.ts +0 -26
- package/dist/generated/services/OnboardingService.d.ts.map +0 -1
- package/dist/generated/services/OnboardingService.js +0 -38
- package/dist/generated/services/OnboardingService.js.map +0 -1
- package/dist/generated/services/OpsService.d.ts +0 -442
- package/dist/generated/services/OpsService.d.ts.map +0 -1
- package/dist/generated/services/OpsService.js +0 -684
- package/dist/generated/services/OpsService.js.map +0 -1
- package/dist/generated/services/OrgService.d.ts +0 -392
- package/dist/generated/services/OrgService.d.ts.map +0 -1
- package/dist/generated/services/OrgService.js +0 -515
- package/dist/generated/services/OrgService.js.map +0 -1
- package/dist/generated/services/PropertiesService.d.ts +0 -50
- package/dist/generated/services/PropertiesService.d.ts.map +0 -1
- package/dist/generated/services/PropertiesService.js +0 -81
- package/dist/generated/services/PropertiesService.js.map +0 -1
- package/dist/generated/services/PublicService.d.ts +0 -12
- package/dist/generated/services/PublicService.d.ts.map +0 -1
- package/dist/generated/services/PublicService.js +0 -18
- package/dist/generated/services/PublicService.js.map +0 -1
- package/dist/generated/services/ResearchService.d.ts +0 -103
- package/dist/generated/services/ResearchService.d.ts.map +0 -1
- package/dist/generated/services/ResearchService.js +0 -129
- package/dist/generated/services/ResearchService.js.map +0 -1
- package/dist/generated/services/SessionService.d.ts +0 -10
- package/dist/generated/services/SessionService.d.ts.map +0 -1
- package/dist/generated/services/SessionService.js +0 -16
- package/dist/generated/services/SessionService.js.map +0 -1
- package/dist/generated/services/TenantsService.d.ts +0 -418
- package/dist/generated/services/TenantsService.d.ts.map +0 -1
- package/dist/generated/services/TenantsService.js +0 -590
- package/dist/generated/services/TenantsService.js.map +0 -1
|
@@ -1,1930 +0,0 @@
|
|
|
1
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
-
import { request as __request } from '../core/request';
|
|
3
|
-
export class EditorialService {
|
|
4
|
-
/**
|
|
5
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
6
|
-
*
|
|
7
|
-
* This ViewSet ensures that:
|
|
8
|
-
* 1. request.tenant exists
|
|
9
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
10
|
-
*
|
|
11
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
12
|
-
* - CRM models (TenantContact, etc.)
|
|
13
|
-
* - Editorial models (ContentAsset, etc.)
|
|
14
|
-
* - Integrations models (Integration, etc.)
|
|
15
|
-
* - Org models (Property, etc.)
|
|
16
|
-
*
|
|
17
|
-
* Example:
|
|
18
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
19
|
-
* queryset = TenantContact.objects.all()
|
|
20
|
-
* serializer_class = TenantContactSerializer
|
|
21
|
-
* @returns ContentAsset
|
|
22
|
-
* @throws ApiError
|
|
23
|
-
*/
|
|
24
|
-
static editorialAssetsList() {
|
|
25
|
-
return __request(OpenAPI, {
|
|
26
|
-
method: 'GET',
|
|
27
|
-
url: '/api/v1/editorial/assets/',
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
32
|
-
*
|
|
33
|
-
* This ViewSet ensures that:
|
|
34
|
-
* 1. request.tenant exists
|
|
35
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
36
|
-
*
|
|
37
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
38
|
-
* - CRM models (TenantContact, etc.)
|
|
39
|
-
* - Editorial models (ContentAsset, etc.)
|
|
40
|
-
* - Integrations models (Integration, etc.)
|
|
41
|
-
* - Org models (Property, etc.)
|
|
42
|
-
*
|
|
43
|
-
* Example:
|
|
44
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
45
|
-
* queryset = TenantContact.objects.all()
|
|
46
|
-
* serializer_class = TenantContactSerializer
|
|
47
|
-
* @returns ContentAsset
|
|
48
|
-
* @throws ApiError
|
|
49
|
-
*/
|
|
50
|
-
static editorialAssetsCreate({ requestBody, }) {
|
|
51
|
-
return __request(OpenAPI, {
|
|
52
|
-
method: 'POST',
|
|
53
|
-
url: '/api/v1/editorial/assets/',
|
|
54
|
-
body: requestBody,
|
|
55
|
-
mediaType: 'application/json',
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
60
|
-
*
|
|
61
|
-
* This ViewSet ensures that:
|
|
62
|
-
* 1. request.tenant exists
|
|
63
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
64
|
-
*
|
|
65
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
66
|
-
* - CRM models (TenantContact, etc.)
|
|
67
|
-
* - Editorial models (ContentAsset, etc.)
|
|
68
|
-
* - Integrations models (Integration, etc.)
|
|
69
|
-
* - Org models (Property, etc.)
|
|
70
|
-
*
|
|
71
|
-
* Example:
|
|
72
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
73
|
-
* queryset = TenantContact.objects.all()
|
|
74
|
-
* serializer_class = TenantContactSerializer
|
|
75
|
-
* @returns ContentAsset
|
|
76
|
-
* @throws ApiError
|
|
77
|
-
*/
|
|
78
|
-
static editorialAssetsRetrieve({ id, }) {
|
|
79
|
-
return __request(OpenAPI, {
|
|
80
|
-
method: 'GET',
|
|
81
|
-
url: '/api/v1/editorial/assets/{id}/',
|
|
82
|
-
path: {
|
|
83
|
-
'id': id,
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
89
|
-
*
|
|
90
|
-
* This ViewSet ensures that:
|
|
91
|
-
* 1. request.tenant exists
|
|
92
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
93
|
-
*
|
|
94
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
95
|
-
* - CRM models (TenantContact, etc.)
|
|
96
|
-
* - Editorial models (ContentAsset, etc.)
|
|
97
|
-
* - Integrations models (Integration, etc.)
|
|
98
|
-
* - Org models (Property, etc.)
|
|
99
|
-
*
|
|
100
|
-
* Example:
|
|
101
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
102
|
-
* queryset = TenantContact.objects.all()
|
|
103
|
-
* serializer_class = TenantContactSerializer
|
|
104
|
-
* @returns ContentAsset
|
|
105
|
-
* @throws ApiError
|
|
106
|
-
*/
|
|
107
|
-
static editorialAssetsUpdate({ id, requestBody, }) {
|
|
108
|
-
return __request(OpenAPI, {
|
|
109
|
-
method: 'PUT',
|
|
110
|
-
url: '/api/v1/editorial/assets/{id}/',
|
|
111
|
-
path: {
|
|
112
|
-
'id': id,
|
|
113
|
-
},
|
|
114
|
-
body: requestBody,
|
|
115
|
-
mediaType: 'application/json',
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
120
|
-
*
|
|
121
|
-
* This ViewSet ensures that:
|
|
122
|
-
* 1. request.tenant exists
|
|
123
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
124
|
-
*
|
|
125
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
126
|
-
* - CRM models (TenantContact, etc.)
|
|
127
|
-
* - Editorial models (ContentAsset, etc.)
|
|
128
|
-
* - Integrations models (Integration, etc.)
|
|
129
|
-
* - Org models (Property, etc.)
|
|
130
|
-
*
|
|
131
|
-
* Example:
|
|
132
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
133
|
-
* queryset = TenantContact.objects.all()
|
|
134
|
-
* serializer_class = TenantContactSerializer
|
|
135
|
-
* @returns ContentAsset
|
|
136
|
-
* @throws ApiError
|
|
137
|
-
*/
|
|
138
|
-
static editorialAssetsPartialUpdate({ id, requestBody, }) {
|
|
139
|
-
return __request(OpenAPI, {
|
|
140
|
-
method: 'PATCH',
|
|
141
|
-
url: '/api/v1/editorial/assets/{id}/',
|
|
142
|
-
path: {
|
|
143
|
-
'id': id,
|
|
144
|
-
},
|
|
145
|
-
body: requestBody,
|
|
146
|
-
mediaType: 'application/json',
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
151
|
-
*
|
|
152
|
-
* This ViewSet ensures that:
|
|
153
|
-
* 1. request.tenant exists
|
|
154
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
155
|
-
*
|
|
156
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
157
|
-
* - CRM models (TenantContact, etc.)
|
|
158
|
-
* - Editorial models (ContentAsset, etc.)
|
|
159
|
-
* - Integrations models (Integration, etc.)
|
|
160
|
-
* - Org models (Property, etc.)
|
|
161
|
-
*
|
|
162
|
-
* Example:
|
|
163
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
164
|
-
* queryset = TenantContact.objects.all()
|
|
165
|
-
* serializer_class = TenantContactSerializer
|
|
166
|
-
* @returns void
|
|
167
|
-
* @throws ApiError
|
|
168
|
-
*/
|
|
169
|
-
static editorialAssetsDestroy({ id, }) {
|
|
170
|
-
return __request(OpenAPI, {
|
|
171
|
-
method: 'DELETE',
|
|
172
|
-
url: '/api/v1/editorial/assets/{id}/',
|
|
173
|
-
path: {
|
|
174
|
-
'id': id,
|
|
175
|
-
},
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
180
|
-
*
|
|
181
|
-
* This ViewSet ensures that:
|
|
182
|
-
* 1. request.tenant exists
|
|
183
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
184
|
-
*
|
|
185
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
186
|
-
* - CRM models (TenantContact, etc.)
|
|
187
|
-
* - Editorial models (ContentAsset, etc.)
|
|
188
|
-
* - Integrations models (Integration, etc.)
|
|
189
|
-
* - Org models (Property, etc.)
|
|
190
|
-
*
|
|
191
|
-
* Example:
|
|
192
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
193
|
-
* queryset = TenantContact.objects.all()
|
|
194
|
-
* serializer_class = TenantContactSerializer
|
|
195
|
-
* @returns ContentAsset
|
|
196
|
-
* @throws ApiError
|
|
197
|
-
*/
|
|
198
|
-
static editorialAssetsGenerateDraftCreate({ id, requestBody, }) {
|
|
199
|
-
return __request(OpenAPI, {
|
|
200
|
-
method: 'POST',
|
|
201
|
-
url: '/api/v1/editorial/assets/{id}/generate-draft/',
|
|
202
|
-
path: {
|
|
203
|
-
'id': id,
|
|
204
|
-
},
|
|
205
|
-
body: requestBody,
|
|
206
|
-
mediaType: 'application/json',
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
211
|
-
*
|
|
212
|
-
* This ViewSet ensures that:
|
|
213
|
-
* 1. request.tenant exists
|
|
214
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
215
|
-
*
|
|
216
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
217
|
-
* - CRM models (TenantContact, etc.)
|
|
218
|
-
* - Editorial models (ContentAsset, etc.)
|
|
219
|
-
* - Integrations models (Integration, etc.)
|
|
220
|
-
* - Org models (Property, etc.)
|
|
221
|
-
*
|
|
222
|
-
* Example:
|
|
223
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
224
|
-
* queryset = TenantContact.objects.all()
|
|
225
|
-
* serializer_class = TenantContactSerializer
|
|
226
|
-
* @returns ContentAsset
|
|
227
|
-
* @throws ApiError
|
|
228
|
-
*/
|
|
229
|
-
static editorialAssetsGenerateTasksCreate({ id, requestBody, }) {
|
|
230
|
-
return __request(OpenAPI, {
|
|
231
|
-
method: 'POST',
|
|
232
|
-
url: '/api/v1/editorial/assets/{id}/generate-tasks/',
|
|
233
|
-
path: {
|
|
234
|
-
'id': id,
|
|
235
|
-
},
|
|
236
|
-
body: requestBody,
|
|
237
|
-
mediaType: 'application/json',
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
242
|
-
*
|
|
243
|
-
* This ViewSet ensures that:
|
|
244
|
-
* 1. request.tenant exists
|
|
245
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
246
|
-
*
|
|
247
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
248
|
-
* - CRM models (TenantContact, etc.)
|
|
249
|
-
* - Editorial models (ContentAsset, etc.)
|
|
250
|
-
* - Integrations models (Integration, etc.)
|
|
251
|
-
* - Org models (Property, etc.)
|
|
252
|
-
*
|
|
253
|
-
* Example:
|
|
254
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
255
|
-
* queryset = TenantContact.objects.all()
|
|
256
|
-
* serializer_class = TenantContactSerializer
|
|
257
|
-
* @returns ContentAsset
|
|
258
|
-
* @throws ApiError
|
|
259
|
-
*/
|
|
260
|
-
static editorialAssetsProgressCreate({ id, requestBody, }) {
|
|
261
|
-
return __request(OpenAPI, {
|
|
262
|
-
method: 'POST',
|
|
263
|
-
url: '/api/v1/editorial/assets/{id}/progress/',
|
|
264
|
-
path: {
|
|
265
|
-
'id': id,
|
|
266
|
-
},
|
|
267
|
-
body: requestBody,
|
|
268
|
-
mediaType: 'application/json',
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Publish a content asset to its channel.
|
|
273
|
-
*
|
|
274
|
-
* This will queue a Celery task to publish the asset.
|
|
275
|
-
* If publish_at is set in the future, it will be scheduled for that time.
|
|
276
|
-
* Otherwise, it will be published immediately.
|
|
277
|
-
* @returns ContentAsset
|
|
278
|
-
* @throws ApiError
|
|
279
|
-
*/
|
|
280
|
-
static editorialAssetsPublishCreate({ id, requestBody, }) {
|
|
281
|
-
return __request(OpenAPI, {
|
|
282
|
-
method: 'POST',
|
|
283
|
-
url: '/api/v1/editorial/assets/{id}/publish/',
|
|
284
|
-
path: {
|
|
285
|
-
'id': id,
|
|
286
|
-
},
|
|
287
|
-
body: requestBody,
|
|
288
|
-
mediaType: 'application/json',
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* Get the publishing status of a content asset.
|
|
293
|
-
* @returns ContentAsset
|
|
294
|
-
* @throws ApiError
|
|
295
|
-
*/
|
|
296
|
-
static editorialAssetsPublishStatusRetrieve({ id, }) {
|
|
297
|
-
return __request(OpenAPI, {
|
|
298
|
-
method: 'GET',
|
|
299
|
-
url: '/api/v1/editorial/assets/{id}/publish-status/',
|
|
300
|
-
path: {
|
|
301
|
-
'id': id,
|
|
302
|
-
},
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* Sync this content asset to Sanity.
|
|
307
|
-
* @returns ContentAsset
|
|
308
|
-
* @throws ApiError
|
|
309
|
-
*/
|
|
310
|
-
static editorialAssetsSyncToSanityCreate({ id, requestBody, }) {
|
|
311
|
-
return __request(OpenAPI, {
|
|
312
|
-
method: 'POST',
|
|
313
|
-
url: '/api/v1/editorial/assets/{id}/sync-to-sanity/',
|
|
314
|
-
path: {
|
|
315
|
-
'id': id,
|
|
316
|
-
},
|
|
317
|
-
body: requestBody,
|
|
318
|
-
mediaType: 'application/json',
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Sync all content assets for the current property to Sanity.
|
|
323
|
-
* @returns ContentAsset
|
|
324
|
-
* @throws ApiError
|
|
325
|
-
*/
|
|
326
|
-
static editorialAssetsSyncAllToSanityCreate({ requestBody, }) {
|
|
327
|
-
return __request(OpenAPI, {
|
|
328
|
-
method: 'POST',
|
|
329
|
-
url: '/api/v1/editorial/assets/sync-all-to-sanity/',
|
|
330
|
-
body: requestBody,
|
|
331
|
-
mediaType: 'application/json',
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
336
|
-
*
|
|
337
|
-
* This ViewSet ensures that:
|
|
338
|
-
* 1. request.tenant exists
|
|
339
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
340
|
-
*
|
|
341
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
342
|
-
* - CRM models (TenantContact, etc.)
|
|
343
|
-
* - Editorial models (ContentAsset, etc.)
|
|
344
|
-
* - Integrations models (Integration, etc.)
|
|
345
|
-
* - Org models (Property, etc.)
|
|
346
|
-
*
|
|
347
|
-
* Example:
|
|
348
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
349
|
-
* queryset = TenantContact.objects.all()
|
|
350
|
-
* serializer_class = TenantContactSerializer
|
|
351
|
-
* @returns EditorialCalendar
|
|
352
|
-
* @throws ApiError
|
|
353
|
-
*/
|
|
354
|
-
static editorialCalendarList() {
|
|
355
|
-
return __request(OpenAPI, {
|
|
356
|
-
method: 'GET',
|
|
357
|
-
url: '/api/v1/editorial/calendar/',
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
362
|
-
*
|
|
363
|
-
* This ViewSet ensures that:
|
|
364
|
-
* 1. request.tenant exists
|
|
365
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
366
|
-
*
|
|
367
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
368
|
-
* - CRM models (TenantContact, etc.)
|
|
369
|
-
* - Editorial models (ContentAsset, etc.)
|
|
370
|
-
* - Integrations models (Integration, etc.)
|
|
371
|
-
* - Org models (Property, etc.)
|
|
372
|
-
*
|
|
373
|
-
* Example:
|
|
374
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
375
|
-
* queryset = TenantContact.objects.all()
|
|
376
|
-
* serializer_class = TenantContactSerializer
|
|
377
|
-
* @returns EditorialCalendar
|
|
378
|
-
* @throws ApiError
|
|
379
|
-
*/
|
|
380
|
-
static editorialCalendarCreate({ requestBody, }) {
|
|
381
|
-
return __request(OpenAPI, {
|
|
382
|
-
method: 'POST',
|
|
383
|
-
url: '/api/v1/editorial/calendar/',
|
|
384
|
-
body: requestBody,
|
|
385
|
-
mediaType: 'application/json',
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
390
|
-
*
|
|
391
|
-
* This ViewSet ensures that:
|
|
392
|
-
* 1. request.tenant exists
|
|
393
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
394
|
-
*
|
|
395
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
396
|
-
* - CRM models (TenantContact, etc.)
|
|
397
|
-
* - Editorial models (ContentAsset, etc.)
|
|
398
|
-
* - Integrations models (Integration, etc.)
|
|
399
|
-
* - Org models (Property, etc.)
|
|
400
|
-
*
|
|
401
|
-
* Example:
|
|
402
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
403
|
-
* queryset = TenantContact.objects.all()
|
|
404
|
-
* serializer_class = TenantContactSerializer
|
|
405
|
-
* @returns EditorialCalendar
|
|
406
|
-
* @throws ApiError
|
|
407
|
-
*/
|
|
408
|
-
static editorialCalendarRetrieve({ id, }) {
|
|
409
|
-
return __request(OpenAPI, {
|
|
410
|
-
method: 'GET',
|
|
411
|
-
url: '/api/v1/editorial/calendar/{id}/',
|
|
412
|
-
path: {
|
|
413
|
-
'id': id,
|
|
414
|
-
},
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
/**
|
|
418
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
419
|
-
*
|
|
420
|
-
* This ViewSet ensures that:
|
|
421
|
-
* 1. request.tenant exists
|
|
422
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
423
|
-
*
|
|
424
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
425
|
-
* - CRM models (TenantContact, etc.)
|
|
426
|
-
* - Editorial models (ContentAsset, etc.)
|
|
427
|
-
* - Integrations models (Integration, etc.)
|
|
428
|
-
* - Org models (Property, etc.)
|
|
429
|
-
*
|
|
430
|
-
* Example:
|
|
431
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
432
|
-
* queryset = TenantContact.objects.all()
|
|
433
|
-
* serializer_class = TenantContactSerializer
|
|
434
|
-
* @returns EditorialCalendar
|
|
435
|
-
* @throws ApiError
|
|
436
|
-
*/
|
|
437
|
-
static editorialCalendarUpdate({ id, requestBody, }) {
|
|
438
|
-
return __request(OpenAPI, {
|
|
439
|
-
method: 'PUT',
|
|
440
|
-
url: '/api/v1/editorial/calendar/{id}/',
|
|
441
|
-
path: {
|
|
442
|
-
'id': id,
|
|
443
|
-
},
|
|
444
|
-
body: requestBody,
|
|
445
|
-
mediaType: 'application/json',
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
450
|
-
*
|
|
451
|
-
* This ViewSet ensures that:
|
|
452
|
-
* 1. request.tenant exists
|
|
453
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
454
|
-
*
|
|
455
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
456
|
-
* - CRM models (TenantContact, etc.)
|
|
457
|
-
* - Editorial models (ContentAsset, etc.)
|
|
458
|
-
* - Integrations models (Integration, etc.)
|
|
459
|
-
* - Org models (Property, etc.)
|
|
460
|
-
*
|
|
461
|
-
* Example:
|
|
462
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
463
|
-
* queryset = TenantContact.objects.all()
|
|
464
|
-
* serializer_class = TenantContactSerializer
|
|
465
|
-
* @returns EditorialCalendar
|
|
466
|
-
* @throws ApiError
|
|
467
|
-
*/
|
|
468
|
-
static editorialCalendarPartialUpdate({ id, requestBody, }) {
|
|
469
|
-
return __request(OpenAPI, {
|
|
470
|
-
method: 'PATCH',
|
|
471
|
-
url: '/api/v1/editorial/calendar/{id}/',
|
|
472
|
-
path: {
|
|
473
|
-
'id': id,
|
|
474
|
-
},
|
|
475
|
-
body: requestBody,
|
|
476
|
-
mediaType: 'application/json',
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
481
|
-
*
|
|
482
|
-
* This ViewSet ensures that:
|
|
483
|
-
* 1. request.tenant exists
|
|
484
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
485
|
-
*
|
|
486
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
487
|
-
* - CRM models (TenantContact, etc.)
|
|
488
|
-
* - Editorial models (ContentAsset, etc.)
|
|
489
|
-
* - Integrations models (Integration, etc.)
|
|
490
|
-
* - Org models (Property, etc.)
|
|
491
|
-
*
|
|
492
|
-
* Example:
|
|
493
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
494
|
-
* queryset = TenantContact.objects.all()
|
|
495
|
-
* serializer_class = TenantContactSerializer
|
|
496
|
-
* @returns void
|
|
497
|
-
* @throws ApiError
|
|
498
|
-
*/
|
|
499
|
-
static editorialCalendarDestroy({ id, }) {
|
|
500
|
-
return __request(OpenAPI, {
|
|
501
|
-
method: 'DELETE',
|
|
502
|
-
url: '/api/v1/editorial/calendar/{id}/',
|
|
503
|
-
path: {
|
|
504
|
-
'id': id,
|
|
505
|
-
},
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* ViewSet for campaign suggestions.
|
|
510
|
-
*
|
|
511
|
-
* Provides read-only access to campaign suggestions with on-demand generation.
|
|
512
|
-
* Requires property context with authorization checks.
|
|
513
|
-
* @returns CampaignSuggestion
|
|
514
|
-
* @throws ApiError
|
|
515
|
-
*/
|
|
516
|
-
static editorialCampaignSuggestionsList() {
|
|
517
|
-
return __request(OpenAPI, {
|
|
518
|
-
method: 'GET',
|
|
519
|
-
url: '/api/v1/editorial/campaign-suggestions/',
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* ViewSet for campaign suggestions.
|
|
524
|
-
*
|
|
525
|
-
* Provides read-only access to campaign suggestions with on-demand generation.
|
|
526
|
-
* Requires property context with authorization checks.
|
|
527
|
-
* @returns CampaignSuggestion
|
|
528
|
-
* @throws ApiError
|
|
529
|
-
*/
|
|
530
|
-
static editorialCampaignSuggestionsCreate({ requestBody, }) {
|
|
531
|
-
return __request(OpenAPI, {
|
|
532
|
-
method: 'POST',
|
|
533
|
-
url: '/api/v1/editorial/campaign-suggestions/',
|
|
534
|
-
body: requestBody,
|
|
535
|
-
mediaType: 'application/json',
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* ViewSet for campaign suggestions.
|
|
540
|
-
*
|
|
541
|
-
* Provides read-only access to campaign suggestions with on-demand generation.
|
|
542
|
-
* Requires property context with authorization checks.
|
|
543
|
-
* @returns CampaignSuggestion
|
|
544
|
-
* @throws ApiError
|
|
545
|
-
*/
|
|
546
|
-
static editorialCampaignSuggestionsRetrieve({ id, }) {
|
|
547
|
-
return __request(OpenAPI, {
|
|
548
|
-
method: 'GET',
|
|
549
|
-
url: '/api/v1/editorial/campaign-suggestions/{id}/',
|
|
550
|
-
path: {
|
|
551
|
-
'id': id,
|
|
552
|
-
},
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* ViewSet for campaign suggestions.
|
|
557
|
-
*
|
|
558
|
-
* Provides read-only access to campaign suggestions with on-demand generation.
|
|
559
|
-
* Requires property context with authorization checks.
|
|
560
|
-
* @returns CampaignSuggestion
|
|
561
|
-
* @throws ApiError
|
|
562
|
-
*/
|
|
563
|
-
static editorialCampaignSuggestionsUpdate({ id, requestBody, }) {
|
|
564
|
-
return __request(OpenAPI, {
|
|
565
|
-
method: 'PUT',
|
|
566
|
-
url: '/api/v1/editorial/campaign-suggestions/{id}/',
|
|
567
|
-
path: {
|
|
568
|
-
'id': id,
|
|
569
|
-
},
|
|
570
|
-
body: requestBody,
|
|
571
|
-
mediaType: 'application/json',
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
/**
|
|
575
|
-
* ViewSet for campaign suggestions.
|
|
576
|
-
*
|
|
577
|
-
* Provides read-only access to campaign suggestions with on-demand generation.
|
|
578
|
-
* Requires property context with authorization checks.
|
|
579
|
-
* @returns CampaignSuggestion
|
|
580
|
-
* @throws ApiError
|
|
581
|
-
*/
|
|
582
|
-
static editorialCampaignSuggestionsPartialUpdate({ id, requestBody, }) {
|
|
583
|
-
return __request(OpenAPI, {
|
|
584
|
-
method: 'PATCH',
|
|
585
|
-
url: '/api/v1/editorial/campaign-suggestions/{id}/',
|
|
586
|
-
path: {
|
|
587
|
-
'id': id,
|
|
588
|
-
},
|
|
589
|
-
body: requestBody,
|
|
590
|
-
mediaType: 'application/json',
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* ViewSet for campaign suggestions.
|
|
595
|
-
*
|
|
596
|
-
* Provides read-only access to campaign suggestions with on-demand generation.
|
|
597
|
-
* Requires property context with authorization checks.
|
|
598
|
-
* @returns void
|
|
599
|
-
* @throws ApiError
|
|
600
|
-
*/
|
|
601
|
-
static editorialCampaignSuggestionsDestroy({ id, }) {
|
|
602
|
-
return __request(OpenAPI, {
|
|
603
|
-
method: 'DELETE',
|
|
604
|
-
url: '/api/v1/editorial/campaign-suggestions/{id}/',
|
|
605
|
-
path: {
|
|
606
|
-
'id': id,
|
|
607
|
-
},
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* Accept a campaign suggestion.
|
|
612
|
-
*
|
|
613
|
-
* Creates a new Campaign using seed_intent_text and duration_weeks,
|
|
614
|
-
* enqueues scaffolding, and returns campaign_id.
|
|
615
|
-
*
|
|
616
|
-
* Idempotent: accepting twice returns the same campaign_id without creating duplicates.
|
|
617
|
-
* @returns CampaignSuggestion
|
|
618
|
-
* @throws ApiError
|
|
619
|
-
*/
|
|
620
|
-
static editorialCampaignSuggestionsAcceptCreate({ id, requestBody, }) {
|
|
621
|
-
return __request(OpenAPI, {
|
|
622
|
-
method: 'POST',
|
|
623
|
-
url: '/api/v1/editorial/campaign-suggestions/{id}/accept/',
|
|
624
|
-
path: {
|
|
625
|
-
'id': id,
|
|
626
|
-
},
|
|
627
|
-
body: requestBody,
|
|
628
|
-
mediaType: 'application/json',
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
/**
|
|
632
|
-
* Dismiss a campaign suggestion.
|
|
633
|
-
*
|
|
634
|
-
* Marks the suggestion as dismissed and returns 204 No Content.
|
|
635
|
-
* Dismissing a suggestion allows immediate regeneration of a new one.
|
|
636
|
-
* @returns CampaignSuggestion
|
|
637
|
-
* @throws ApiError
|
|
638
|
-
*/
|
|
639
|
-
static editorialCampaignSuggestionsDismissCreate({ id, requestBody, }) {
|
|
640
|
-
return __request(OpenAPI, {
|
|
641
|
-
method: 'POST',
|
|
642
|
-
url: '/api/v1/editorial/campaign-suggestions/{id}/dismiss/',
|
|
643
|
-
path: {
|
|
644
|
-
'id': id,
|
|
645
|
-
},
|
|
646
|
-
body: requestBody,
|
|
647
|
-
mediaType: 'application/json',
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* Get the best active suggestion for current tenant/property.
|
|
652
|
-
*
|
|
653
|
-
* Creates one on-demand if none exists or if the current one is expired.
|
|
654
|
-
* Uses fast heuristics only (no LLM calls).
|
|
655
|
-
*
|
|
656
|
-
* CRITICAL: Requires property context with authorization checks.
|
|
657
|
-
* Property is resolved via RequiresPropertyContextMixin.get_required_property().
|
|
658
|
-
* @returns CampaignSuggestion
|
|
659
|
-
* @throws ApiError
|
|
660
|
-
*/
|
|
661
|
-
static editorialCampaignSuggestionsActiveRetrieve() {
|
|
662
|
-
return __request(OpenAPI, {
|
|
663
|
-
method: 'GET',
|
|
664
|
-
url: '/api/v1/editorial/campaign-suggestions/active/',
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
669
|
-
*
|
|
670
|
-
* This ViewSet ensures that:
|
|
671
|
-
* 1. request.tenant exists
|
|
672
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
673
|
-
*
|
|
674
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
675
|
-
* - CRM models (TenantContact, etc.)
|
|
676
|
-
* - Editorial models (ContentAsset, etc.)
|
|
677
|
-
* - Integrations models (Integration, etc.)
|
|
678
|
-
* - Org models (Property, etc.)
|
|
679
|
-
*
|
|
680
|
-
* Example:
|
|
681
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
682
|
-
* queryset = TenantContact.objects.all()
|
|
683
|
-
* serializer_class = TenantContactSerializer
|
|
684
|
-
* @returns Campaign
|
|
685
|
-
* @throws ApiError
|
|
686
|
-
*/
|
|
687
|
-
static editorialCampaignsList() {
|
|
688
|
-
return __request(OpenAPI, {
|
|
689
|
-
method: 'GET',
|
|
690
|
-
url: '/api/v1/editorial/campaigns/',
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
/**
|
|
694
|
-
* Create campaign from intent and queue scaffolding task.
|
|
695
|
-
* @returns CampaignCreate
|
|
696
|
-
* @throws ApiError
|
|
697
|
-
*/
|
|
698
|
-
static editorialCampaignsCreate({ requestBody, }) {
|
|
699
|
-
return __request(OpenAPI, {
|
|
700
|
-
method: 'POST',
|
|
701
|
-
url: '/api/v1/editorial/campaigns/',
|
|
702
|
-
body: requestBody,
|
|
703
|
-
mediaType: 'application/json',
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
/**
|
|
707
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
708
|
-
*
|
|
709
|
-
* This ViewSet ensures that:
|
|
710
|
-
* 1. request.tenant exists
|
|
711
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
712
|
-
*
|
|
713
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
714
|
-
* - CRM models (TenantContact, etc.)
|
|
715
|
-
* - Editorial models (ContentAsset, etc.)
|
|
716
|
-
* - Integrations models (Integration, etc.)
|
|
717
|
-
* - Org models (Property, etc.)
|
|
718
|
-
*
|
|
719
|
-
* Example:
|
|
720
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
721
|
-
* queryset = TenantContact.objects.all()
|
|
722
|
-
* serializer_class = TenantContactSerializer
|
|
723
|
-
* @returns Campaign
|
|
724
|
-
* @throws ApiError
|
|
725
|
-
*/
|
|
726
|
-
static editorialCampaignsRetrieve({ id, }) {
|
|
727
|
-
return __request(OpenAPI, {
|
|
728
|
-
method: 'GET',
|
|
729
|
-
url: '/api/v1/editorial/campaigns/{id}/',
|
|
730
|
-
path: {
|
|
731
|
-
'id': id,
|
|
732
|
-
},
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
/**
|
|
736
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
737
|
-
*
|
|
738
|
-
* This ViewSet ensures that:
|
|
739
|
-
* 1. request.tenant exists
|
|
740
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
741
|
-
*
|
|
742
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
743
|
-
* - CRM models (TenantContact, etc.)
|
|
744
|
-
* - Editorial models (ContentAsset, etc.)
|
|
745
|
-
* - Integrations models (Integration, etc.)
|
|
746
|
-
* - Org models (Property, etc.)
|
|
747
|
-
*
|
|
748
|
-
* Example:
|
|
749
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
750
|
-
* queryset = TenantContact.objects.all()
|
|
751
|
-
* serializer_class = TenantContactSerializer
|
|
752
|
-
* @returns Campaign
|
|
753
|
-
* @throws ApiError
|
|
754
|
-
*/
|
|
755
|
-
static editorialCampaignsUpdate({ id, requestBody, }) {
|
|
756
|
-
return __request(OpenAPI, {
|
|
757
|
-
method: 'PUT',
|
|
758
|
-
url: '/api/v1/editorial/campaigns/{id}/',
|
|
759
|
-
path: {
|
|
760
|
-
'id': id,
|
|
761
|
-
},
|
|
762
|
-
body: requestBody,
|
|
763
|
-
mediaType: 'application/json',
|
|
764
|
-
});
|
|
765
|
-
}
|
|
766
|
-
/**
|
|
767
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
768
|
-
*
|
|
769
|
-
* This ViewSet ensures that:
|
|
770
|
-
* 1. request.tenant exists
|
|
771
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
772
|
-
*
|
|
773
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
774
|
-
* - CRM models (TenantContact, etc.)
|
|
775
|
-
* - Editorial models (ContentAsset, etc.)
|
|
776
|
-
* - Integrations models (Integration, etc.)
|
|
777
|
-
* - Org models (Property, etc.)
|
|
778
|
-
*
|
|
779
|
-
* Example:
|
|
780
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
781
|
-
* queryset = TenantContact.objects.all()
|
|
782
|
-
* serializer_class = TenantContactSerializer
|
|
783
|
-
* @returns Campaign
|
|
784
|
-
* @throws ApiError
|
|
785
|
-
*/
|
|
786
|
-
static editorialCampaignsPartialUpdate({ id, requestBody, }) {
|
|
787
|
-
return __request(OpenAPI, {
|
|
788
|
-
method: 'PATCH',
|
|
789
|
-
url: '/api/v1/editorial/campaigns/{id}/',
|
|
790
|
-
path: {
|
|
791
|
-
'id': id,
|
|
792
|
-
},
|
|
793
|
-
body: requestBody,
|
|
794
|
-
mediaType: 'application/json',
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
/**
|
|
798
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
799
|
-
*
|
|
800
|
-
* This ViewSet ensures that:
|
|
801
|
-
* 1. request.tenant exists
|
|
802
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
803
|
-
*
|
|
804
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
805
|
-
* - CRM models (TenantContact, etc.)
|
|
806
|
-
* - Editorial models (ContentAsset, etc.)
|
|
807
|
-
* - Integrations models (Integration, etc.)
|
|
808
|
-
* - Org models (Property, etc.)
|
|
809
|
-
*
|
|
810
|
-
* Example:
|
|
811
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
812
|
-
* queryset = TenantContact.objects.all()
|
|
813
|
-
* serializer_class = TenantContactSerializer
|
|
814
|
-
* @returns void
|
|
815
|
-
* @throws ApiError
|
|
816
|
-
*/
|
|
817
|
-
static editorialCampaignsDestroy({ id, }) {
|
|
818
|
-
return __request(OpenAPI, {
|
|
819
|
-
method: 'DELETE',
|
|
820
|
-
url: '/api/v1/editorial/campaigns/{id}/',
|
|
821
|
-
path: {
|
|
822
|
-
'id': id,
|
|
823
|
-
},
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
* Add assets to a campaign.
|
|
828
|
-
* @returns Campaign
|
|
829
|
-
* @throws ApiError
|
|
830
|
-
*/
|
|
831
|
-
static editorialCampaignsAddAssetsCreate({ id, requestBody, }) {
|
|
832
|
-
return __request(OpenAPI, {
|
|
833
|
-
method: 'POST',
|
|
834
|
-
url: '/api/v1/editorial/campaigns/{id}/add-assets/',
|
|
835
|
-
path: {
|
|
836
|
-
'id': id,
|
|
837
|
-
},
|
|
838
|
-
body: requestBody,
|
|
839
|
-
mediaType: 'application/json',
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
/**
|
|
843
|
-
* Remove assets from a campaign.
|
|
844
|
-
* @returns Campaign
|
|
845
|
-
* @throws ApiError
|
|
846
|
-
*/
|
|
847
|
-
static editorialCampaignsRemoveAssetsCreate({ id, requestBody, }) {
|
|
848
|
-
return __request(OpenAPI, {
|
|
849
|
-
method: 'POST',
|
|
850
|
-
url: '/api/v1/editorial/campaigns/{id}/remove-assets/',
|
|
851
|
-
path: {
|
|
852
|
-
'id': id,
|
|
853
|
-
},
|
|
854
|
-
body: requestBody,
|
|
855
|
-
mediaType: 'application/json',
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
-
/**
|
|
859
|
-
* Shift all scheduled content units by delta_days.
|
|
860
|
-
* @returns Campaign
|
|
861
|
-
* @throws ApiError
|
|
862
|
-
*/
|
|
863
|
-
static editorialCampaignsShiftCreate({ id, requestBody, }) {
|
|
864
|
-
return __request(OpenAPI, {
|
|
865
|
-
method: 'POST',
|
|
866
|
-
url: '/api/v1/editorial/campaigns/{id}/shift/',
|
|
867
|
-
path: {
|
|
868
|
-
'id': id,
|
|
869
|
-
},
|
|
870
|
-
body: requestBody,
|
|
871
|
-
mediaType: 'application/json',
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
/**
|
|
875
|
-
* Get status counts for content units in campaign.
|
|
876
|
-
* @returns Campaign
|
|
877
|
-
* @throws ApiError
|
|
878
|
-
*/
|
|
879
|
-
static editorialCampaignsStatusCountsRetrieve({ id, }) {
|
|
880
|
-
return __request(OpenAPI, {
|
|
881
|
-
method: 'GET',
|
|
882
|
-
url: '/api/v1/editorial/campaigns/{id}/status_counts/',
|
|
883
|
-
path: {
|
|
884
|
-
'id': id,
|
|
885
|
-
},
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
/**
|
|
889
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
890
|
-
*
|
|
891
|
-
* This ViewSet ensures that:
|
|
892
|
-
* 1. request.tenant exists
|
|
893
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
894
|
-
*
|
|
895
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
896
|
-
* - CRM models (TenantContact, etc.)
|
|
897
|
-
* - Editorial models (ContentAsset, etc.)
|
|
898
|
-
* - Integrations models (Integration, etc.)
|
|
899
|
-
* - Org models (Property, etc.)
|
|
900
|
-
*
|
|
901
|
-
* Example:
|
|
902
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
903
|
-
* queryset = TenantContact.objects.all()
|
|
904
|
-
* serializer_class = TenantContactSerializer
|
|
905
|
-
* @returns Channel
|
|
906
|
-
* @throws ApiError
|
|
907
|
-
*/
|
|
908
|
-
static editorialChannelsList() {
|
|
909
|
-
return __request(OpenAPI, {
|
|
910
|
-
method: 'GET',
|
|
911
|
-
url: '/api/v1/editorial/channels/',
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
/**
|
|
915
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
916
|
-
*
|
|
917
|
-
* This ViewSet ensures that:
|
|
918
|
-
* 1. request.tenant exists
|
|
919
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
920
|
-
*
|
|
921
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
922
|
-
* - CRM models (TenantContact, etc.)
|
|
923
|
-
* - Editorial models (ContentAsset, etc.)
|
|
924
|
-
* - Integrations models (Integration, etc.)
|
|
925
|
-
* - Org models (Property, etc.)
|
|
926
|
-
*
|
|
927
|
-
* Example:
|
|
928
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
929
|
-
* queryset = TenantContact.objects.all()
|
|
930
|
-
* serializer_class = TenantContactSerializer
|
|
931
|
-
* @returns Channel
|
|
932
|
-
* @throws ApiError
|
|
933
|
-
*/
|
|
934
|
-
static editorialChannelsCreate({ requestBody, }) {
|
|
935
|
-
return __request(OpenAPI, {
|
|
936
|
-
method: 'POST',
|
|
937
|
-
url: '/api/v1/editorial/channels/',
|
|
938
|
-
body: requestBody,
|
|
939
|
-
mediaType: 'application/json',
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
|
-
/**
|
|
943
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
944
|
-
*
|
|
945
|
-
* This ViewSet ensures that:
|
|
946
|
-
* 1. request.tenant exists
|
|
947
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
948
|
-
*
|
|
949
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
950
|
-
* - CRM models (TenantContact, etc.)
|
|
951
|
-
* - Editorial models (ContentAsset, etc.)
|
|
952
|
-
* - Integrations models (Integration, etc.)
|
|
953
|
-
* - Org models (Property, etc.)
|
|
954
|
-
*
|
|
955
|
-
* Example:
|
|
956
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
957
|
-
* queryset = TenantContact.objects.all()
|
|
958
|
-
* serializer_class = TenantContactSerializer
|
|
959
|
-
* @returns Channel
|
|
960
|
-
* @throws ApiError
|
|
961
|
-
*/
|
|
962
|
-
static editorialChannelsRetrieve({ id, }) {
|
|
963
|
-
return __request(OpenAPI, {
|
|
964
|
-
method: 'GET',
|
|
965
|
-
url: '/api/v1/editorial/channels/{id}/',
|
|
966
|
-
path: {
|
|
967
|
-
'id': id,
|
|
968
|
-
},
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
|
-
/**
|
|
972
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
973
|
-
*
|
|
974
|
-
* This ViewSet ensures that:
|
|
975
|
-
* 1. request.tenant exists
|
|
976
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
977
|
-
*
|
|
978
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
979
|
-
* - CRM models (TenantContact, etc.)
|
|
980
|
-
* - Editorial models (ContentAsset, etc.)
|
|
981
|
-
* - Integrations models (Integration, etc.)
|
|
982
|
-
* - Org models (Property, etc.)
|
|
983
|
-
*
|
|
984
|
-
* Example:
|
|
985
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
986
|
-
* queryset = TenantContact.objects.all()
|
|
987
|
-
* serializer_class = TenantContactSerializer
|
|
988
|
-
* @returns Channel
|
|
989
|
-
* @throws ApiError
|
|
990
|
-
*/
|
|
991
|
-
static editorialChannelsUpdate({ id, requestBody, }) {
|
|
992
|
-
return __request(OpenAPI, {
|
|
993
|
-
method: 'PUT',
|
|
994
|
-
url: '/api/v1/editorial/channels/{id}/',
|
|
995
|
-
path: {
|
|
996
|
-
'id': id,
|
|
997
|
-
},
|
|
998
|
-
body: requestBody,
|
|
999
|
-
mediaType: 'application/json',
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
/**
|
|
1003
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1004
|
-
*
|
|
1005
|
-
* This ViewSet ensures that:
|
|
1006
|
-
* 1. request.tenant exists
|
|
1007
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1008
|
-
*
|
|
1009
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1010
|
-
* - CRM models (TenantContact, etc.)
|
|
1011
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1012
|
-
* - Integrations models (Integration, etc.)
|
|
1013
|
-
* - Org models (Property, etc.)
|
|
1014
|
-
*
|
|
1015
|
-
* Example:
|
|
1016
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1017
|
-
* queryset = TenantContact.objects.all()
|
|
1018
|
-
* serializer_class = TenantContactSerializer
|
|
1019
|
-
* @returns Channel
|
|
1020
|
-
* @throws ApiError
|
|
1021
|
-
*/
|
|
1022
|
-
static editorialChannelsPartialUpdate({ id, requestBody, }) {
|
|
1023
|
-
return __request(OpenAPI, {
|
|
1024
|
-
method: 'PATCH',
|
|
1025
|
-
url: '/api/v1/editorial/channels/{id}/',
|
|
1026
|
-
path: {
|
|
1027
|
-
'id': id,
|
|
1028
|
-
},
|
|
1029
|
-
body: requestBody,
|
|
1030
|
-
mediaType: 'application/json',
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
/**
|
|
1034
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1035
|
-
*
|
|
1036
|
-
* This ViewSet ensures that:
|
|
1037
|
-
* 1. request.tenant exists
|
|
1038
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1039
|
-
*
|
|
1040
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1041
|
-
* - CRM models (TenantContact, etc.)
|
|
1042
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1043
|
-
* - Integrations models (Integration, etc.)
|
|
1044
|
-
* - Org models (Property, etc.)
|
|
1045
|
-
*
|
|
1046
|
-
* Example:
|
|
1047
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1048
|
-
* queryset = TenantContact.objects.all()
|
|
1049
|
-
* serializer_class = TenantContactSerializer
|
|
1050
|
-
* @returns void
|
|
1051
|
-
* @throws ApiError
|
|
1052
|
-
*/
|
|
1053
|
-
static editorialChannelsDestroy({ id, }) {
|
|
1054
|
-
return __request(OpenAPI, {
|
|
1055
|
-
method: 'DELETE',
|
|
1056
|
-
url: '/api/v1/editorial/channels/{id}/',
|
|
1057
|
-
path: {
|
|
1058
|
-
'id': id,
|
|
1059
|
-
},
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1064
|
-
*
|
|
1065
|
-
* This ViewSet ensures that:
|
|
1066
|
-
* 1. request.tenant exists
|
|
1067
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1068
|
-
*
|
|
1069
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1070
|
-
* - CRM models (TenantContact, etc.)
|
|
1071
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1072
|
-
* - Integrations models (Integration, etc.)
|
|
1073
|
-
* - Org models (Property, etc.)
|
|
1074
|
-
*
|
|
1075
|
-
* Example:
|
|
1076
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1077
|
-
* queryset = TenantContact.objects.all()
|
|
1078
|
-
* serializer_class = TenantContactSerializer
|
|
1079
|
-
* @returns ContentUnit
|
|
1080
|
-
* @throws ApiError
|
|
1081
|
-
*/
|
|
1082
|
-
static editorialContentUnitsList() {
|
|
1083
|
-
return __request(OpenAPI, {
|
|
1084
|
-
method: 'GET',
|
|
1085
|
-
url: '/api/v1/editorial/content-units/',
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1090
|
-
*
|
|
1091
|
-
* This ViewSet ensures that:
|
|
1092
|
-
* 1. request.tenant exists
|
|
1093
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1094
|
-
*
|
|
1095
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1096
|
-
* - CRM models (TenantContact, etc.)
|
|
1097
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1098
|
-
* - Integrations models (Integration, etc.)
|
|
1099
|
-
* - Org models (Property, etc.)
|
|
1100
|
-
*
|
|
1101
|
-
* Example:
|
|
1102
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1103
|
-
* queryset = TenantContact.objects.all()
|
|
1104
|
-
* serializer_class = TenantContactSerializer
|
|
1105
|
-
* @returns ContentUnit
|
|
1106
|
-
* @throws ApiError
|
|
1107
|
-
*/
|
|
1108
|
-
static editorialContentUnitsCreate({ requestBody, }) {
|
|
1109
|
-
return __request(OpenAPI, {
|
|
1110
|
-
method: 'POST',
|
|
1111
|
-
url: '/api/v1/editorial/content-units/',
|
|
1112
|
-
body: requestBody,
|
|
1113
|
-
mediaType: 'application/json',
|
|
1114
|
-
});
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1118
|
-
*
|
|
1119
|
-
* This ViewSet ensures that:
|
|
1120
|
-
* 1. request.tenant exists
|
|
1121
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1122
|
-
*
|
|
1123
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1124
|
-
* - CRM models (TenantContact, etc.)
|
|
1125
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1126
|
-
* - Integrations models (Integration, etc.)
|
|
1127
|
-
* - Org models (Property, etc.)
|
|
1128
|
-
*
|
|
1129
|
-
* Example:
|
|
1130
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1131
|
-
* queryset = TenantContact.objects.all()
|
|
1132
|
-
* serializer_class = TenantContactSerializer
|
|
1133
|
-
* @returns ContentUnit
|
|
1134
|
-
* @throws ApiError
|
|
1135
|
-
*/
|
|
1136
|
-
static editorialContentUnitsRetrieve({ id, }) {
|
|
1137
|
-
return __request(OpenAPI, {
|
|
1138
|
-
method: 'GET',
|
|
1139
|
-
url: '/api/v1/editorial/content-units/{id}/',
|
|
1140
|
-
path: {
|
|
1141
|
-
'id': id,
|
|
1142
|
-
},
|
|
1143
|
-
});
|
|
1144
|
-
}
|
|
1145
|
-
/**
|
|
1146
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1147
|
-
*
|
|
1148
|
-
* This ViewSet ensures that:
|
|
1149
|
-
* 1. request.tenant exists
|
|
1150
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1151
|
-
*
|
|
1152
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1153
|
-
* - CRM models (TenantContact, etc.)
|
|
1154
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1155
|
-
* - Integrations models (Integration, etc.)
|
|
1156
|
-
* - Org models (Property, etc.)
|
|
1157
|
-
*
|
|
1158
|
-
* Example:
|
|
1159
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1160
|
-
* queryset = TenantContact.objects.all()
|
|
1161
|
-
* serializer_class = TenantContactSerializer
|
|
1162
|
-
* @returns ContentUnit
|
|
1163
|
-
* @throws ApiError
|
|
1164
|
-
*/
|
|
1165
|
-
static editorialContentUnitsUpdate({ id, requestBody, }) {
|
|
1166
|
-
return __request(OpenAPI, {
|
|
1167
|
-
method: 'PUT',
|
|
1168
|
-
url: '/api/v1/editorial/content-units/{id}/',
|
|
1169
|
-
path: {
|
|
1170
|
-
'id': id,
|
|
1171
|
-
},
|
|
1172
|
-
body: requestBody,
|
|
1173
|
-
mediaType: 'application/json',
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
/**
|
|
1177
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1178
|
-
*
|
|
1179
|
-
* This ViewSet ensures that:
|
|
1180
|
-
* 1. request.tenant exists
|
|
1181
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1182
|
-
*
|
|
1183
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1184
|
-
* - CRM models (TenantContact, etc.)
|
|
1185
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1186
|
-
* - Integrations models (Integration, etc.)
|
|
1187
|
-
* - Org models (Property, etc.)
|
|
1188
|
-
*
|
|
1189
|
-
* Example:
|
|
1190
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1191
|
-
* queryset = TenantContact.objects.all()
|
|
1192
|
-
* serializer_class = TenantContactSerializer
|
|
1193
|
-
* @returns ContentUnit
|
|
1194
|
-
* @throws ApiError
|
|
1195
|
-
*/
|
|
1196
|
-
static editorialContentUnitsPartialUpdate({ id, requestBody, }) {
|
|
1197
|
-
return __request(OpenAPI, {
|
|
1198
|
-
method: 'PATCH',
|
|
1199
|
-
url: '/api/v1/editorial/content-units/{id}/',
|
|
1200
|
-
path: {
|
|
1201
|
-
'id': id,
|
|
1202
|
-
},
|
|
1203
|
-
body: requestBody,
|
|
1204
|
-
mediaType: 'application/json',
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
/**
|
|
1208
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1209
|
-
*
|
|
1210
|
-
* This ViewSet ensures that:
|
|
1211
|
-
* 1. request.tenant exists
|
|
1212
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1213
|
-
*
|
|
1214
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1215
|
-
* - CRM models (TenantContact, etc.)
|
|
1216
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1217
|
-
* - Integrations models (Integration, etc.)
|
|
1218
|
-
* - Org models (Property, etc.)
|
|
1219
|
-
*
|
|
1220
|
-
* Example:
|
|
1221
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1222
|
-
* queryset = TenantContact.objects.all()
|
|
1223
|
-
* serializer_class = TenantContactSerializer
|
|
1224
|
-
* @returns void
|
|
1225
|
-
* @throws ApiError
|
|
1226
|
-
*/
|
|
1227
|
-
static editorialContentUnitsDestroy({ id, }) {
|
|
1228
|
-
return __request(OpenAPI, {
|
|
1229
|
-
method: 'DELETE',
|
|
1230
|
-
url: '/api/v1/editorial/content-units/{id}/',
|
|
1231
|
-
path: {
|
|
1232
|
-
'id': id,
|
|
1233
|
-
},
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
/**
|
|
1237
|
-
* Attach a selected Pexels image as an Asset to this content unit.
|
|
1238
|
-
*
|
|
1239
|
-
* POST /api/v1/editorial/content-units/{id}/pexels_attach/
|
|
1240
|
-
*
|
|
1241
|
-
* Body:
|
|
1242
|
-
* {
|
|
1243
|
-
* "pexels_id": "...",
|
|
1244
|
-
* "image_url": "...",
|
|
1245
|
-
* "photographer": "...",
|
|
1246
|
-
* "photographer_url": "...",
|
|
1247
|
-
* "source_url": "...",
|
|
1248
|
-
* "attribution_text": "...",
|
|
1249
|
-
* "query_used": "..." (optional)
|
|
1250
|
-
* }
|
|
1251
|
-
*
|
|
1252
|
-
* Returns:
|
|
1253
|
-
* { "asset": { id, file_url, description, metadata }, "content_unit": ContentUnit }
|
|
1254
|
-
* @returns ContentUnit
|
|
1255
|
-
* @throws ApiError
|
|
1256
|
-
*/
|
|
1257
|
-
static editorialContentUnitsPexelsAttachCreate({ id, requestBody, }) {
|
|
1258
|
-
return __request(OpenAPI, {
|
|
1259
|
-
method: 'POST',
|
|
1260
|
-
url: '/api/v1/editorial/content-units/{id}/pexels_attach/',
|
|
1261
|
-
path: {
|
|
1262
|
-
'id': id,
|
|
1263
|
-
},
|
|
1264
|
-
body: requestBody,
|
|
1265
|
-
mediaType: 'application/json',
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
/**
|
|
1269
|
-
* Fetch up to 3 Pexels image candidates for this content unit.
|
|
1270
|
-
*
|
|
1271
|
-
* POST /api/v1/editorial/content-units/{id}/pexels_candidates/
|
|
1272
|
-
*
|
|
1273
|
-
* Body (optional):
|
|
1274
|
-
* { "queries": ["q1", "q2", "q3"], "orientation": "square|portrait|landscape" }
|
|
1275
|
-
*
|
|
1276
|
-
* Returns:
|
|
1277
|
-
* { "content_unit_id": int, "queries_used": [...], "candidates": [...] }
|
|
1278
|
-
* @returns ContentUnit
|
|
1279
|
-
* @throws ApiError
|
|
1280
|
-
*/
|
|
1281
|
-
static editorialContentUnitsPexelsCandidatesCreate({ id, requestBody, }) {
|
|
1282
|
-
return __request(OpenAPI, {
|
|
1283
|
-
method: 'POST',
|
|
1284
|
-
url: '/api/v1/editorial/content-units/{id}/pexels_candidates/',
|
|
1285
|
-
path: {
|
|
1286
|
-
'id': id,
|
|
1287
|
-
},
|
|
1288
|
-
body: requestBody,
|
|
1289
|
-
mediaType: 'application/json',
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
/**
|
|
1293
|
-
* Retry syncing a failed publish target.
|
|
1294
|
-
*
|
|
1295
|
-
* POST /api/v1/editorial/content-units/{id}/publish-targets/{target_id}/retry/
|
|
1296
|
-
* @returns ContentUnit
|
|
1297
|
-
* @throws ApiError
|
|
1298
|
-
*/
|
|
1299
|
-
static editorialContentUnitsPublishTargetsRetryCreate({ id, targetId, requestBody, }) {
|
|
1300
|
-
return __request(OpenAPI, {
|
|
1301
|
-
method: 'POST',
|
|
1302
|
-
url: '/api/v1/editorial/content-units/{id}/publish-targets/{target_id}/retry/',
|
|
1303
|
-
path: {
|
|
1304
|
-
'id': id,
|
|
1305
|
-
'target_id': targetId,
|
|
1306
|
-
},
|
|
1307
|
-
body: requestBody,
|
|
1308
|
-
mediaType: 'application/json',
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
/**
|
|
1312
|
-
* Update publish_at for content unit.
|
|
1313
|
-
* @returns ContentUnit
|
|
1314
|
-
* @throws ApiError
|
|
1315
|
-
*/
|
|
1316
|
-
static editorialContentUnitsSchedulePartialUpdate({ id, requestBody, }) {
|
|
1317
|
-
return __request(OpenAPI, {
|
|
1318
|
-
method: 'PATCH',
|
|
1319
|
-
url: '/api/v1/editorial/content-units/{id}/schedule/',
|
|
1320
|
-
path: {
|
|
1321
|
-
'id': id,
|
|
1322
|
-
},
|
|
1323
|
-
body: requestBody,
|
|
1324
|
-
mediaType: 'application/json',
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
/**
|
|
1328
|
-
* ViewSet for managing assets (images, videos, documents).
|
|
1329
|
-
*
|
|
1330
|
-
* Provides endpoints to upload, view, and associate assets with content units.
|
|
1331
|
-
* @returns Asset
|
|
1332
|
-
* @throws ApiError
|
|
1333
|
-
*/
|
|
1334
|
-
static editorialMediaAssetsList() {
|
|
1335
|
-
return __request(OpenAPI, {
|
|
1336
|
-
method: 'GET',
|
|
1337
|
-
url: '/api/v1/editorial/media-assets/',
|
|
1338
|
-
});
|
|
1339
|
-
}
|
|
1340
|
-
/**
|
|
1341
|
-
* ViewSet for managing assets (images, videos, documents).
|
|
1342
|
-
*
|
|
1343
|
-
* Provides endpoints to upload, view, and associate assets with content units.
|
|
1344
|
-
* @returns Asset
|
|
1345
|
-
* @throws ApiError
|
|
1346
|
-
*/
|
|
1347
|
-
static editorialMediaAssetsCreate({ requestBody, }) {
|
|
1348
|
-
return __request(OpenAPI, {
|
|
1349
|
-
method: 'POST',
|
|
1350
|
-
url: '/api/v1/editorial/media-assets/',
|
|
1351
|
-
body: requestBody,
|
|
1352
|
-
mediaType: 'application/json',
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
/**
|
|
1356
|
-
* ViewSet for managing assets (images, videos, documents).
|
|
1357
|
-
*
|
|
1358
|
-
* Provides endpoints to upload, view, and associate assets with content units.
|
|
1359
|
-
* @returns Asset
|
|
1360
|
-
* @throws ApiError
|
|
1361
|
-
*/
|
|
1362
|
-
static editorialMediaAssetsRetrieve({ id, }) {
|
|
1363
|
-
return __request(OpenAPI, {
|
|
1364
|
-
method: 'GET',
|
|
1365
|
-
url: '/api/v1/editorial/media-assets/{id}/',
|
|
1366
|
-
path: {
|
|
1367
|
-
'id': id,
|
|
1368
|
-
},
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
/**
|
|
1372
|
-
* ViewSet for managing assets (images, videos, documents).
|
|
1373
|
-
*
|
|
1374
|
-
* Provides endpoints to upload, view, and associate assets with content units.
|
|
1375
|
-
* @returns Asset
|
|
1376
|
-
* @throws ApiError
|
|
1377
|
-
*/
|
|
1378
|
-
static editorialMediaAssetsUpdate({ id, requestBody, }) {
|
|
1379
|
-
return __request(OpenAPI, {
|
|
1380
|
-
method: 'PUT',
|
|
1381
|
-
url: '/api/v1/editorial/media-assets/{id}/',
|
|
1382
|
-
path: {
|
|
1383
|
-
'id': id,
|
|
1384
|
-
},
|
|
1385
|
-
body: requestBody,
|
|
1386
|
-
mediaType: 'application/json',
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
/**
|
|
1390
|
-
* ViewSet for managing assets (images, videos, documents).
|
|
1391
|
-
*
|
|
1392
|
-
* Provides endpoints to upload, view, and associate assets with content units.
|
|
1393
|
-
* @returns Asset
|
|
1394
|
-
* @throws ApiError
|
|
1395
|
-
*/
|
|
1396
|
-
static editorialMediaAssetsPartialUpdate({ id, requestBody, }) {
|
|
1397
|
-
return __request(OpenAPI, {
|
|
1398
|
-
method: 'PATCH',
|
|
1399
|
-
url: '/api/v1/editorial/media-assets/{id}/',
|
|
1400
|
-
path: {
|
|
1401
|
-
'id': id,
|
|
1402
|
-
},
|
|
1403
|
-
body: requestBody,
|
|
1404
|
-
mediaType: 'application/json',
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
/**
|
|
1408
|
-
* ViewSet for managing assets (images, videos, documents).
|
|
1409
|
-
*
|
|
1410
|
-
* Provides endpoints to upload, view, and associate assets with content units.
|
|
1411
|
-
* @returns void
|
|
1412
|
-
* @throws ApiError
|
|
1413
|
-
*/
|
|
1414
|
-
static editorialMediaAssetsDestroy({ id, }) {
|
|
1415
|
-
return __request(OpenAPI, {
|
|
1416
|
-
method: 'DELETE',
|
|
1417
|
-
url: '/api/v1/editorial/media-assets/{id}/',
|
|
1418
|
-
path: {
|
|
1419
|
-
'id': id,
|
|
1420
|
-
},
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
/**
|
|
1424
|
-
* Associate an asset with one or more content units.
|
|
1425
|
-
*
|
|
1426
|
-
* POST /api/v1/editorial/assets/{id}/associate/
|
|
1427
|
-
*
|
|
1428
|
-
* Body:
|
|
1429
|
-
* - content_unit_ids: List of content unit IDs
|
|
1430
|
-
* @returns Asset
|
|
1431
|
-
* @throws ApiError
|
|
1432
|
-
*/
|
|
1433
|
-
static editorialMediaAssetsAssociateCreate({ id, requestBody, }) {
|
|
1434
|
-
return __request(OpenAPI, {
|
|
1435
|
-
method: 'POST',
|
|
1436
|
-
url: '/api/v1/editorial/media-assets/{id}/associate/',
|
|
1437
|
-
path: {
|
|
1438
|
-
'id': id,
|
|
1439
|
-
},
|
|
1440
|
-
body: requestBody,
|
|
1441
|
-
mediaType: 'application/json',
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
/**
|
|
1445
|
-
* Upload an asset file.
|
|
1446
|
-
*
|
|
1447
|
-
* POST /api/v1/editorial/assets/upload/
|
|
1448
|
-
*
|
|
1449
|
-
* Form data:
|
|
1450
|
-
* - file: The file to upload
|
|
1451
|
-
* - name: Display name (optional, defaults to filename)
|
|
1452
|
-
* - description: Description/alt text (optional)
|
|
1453
|
-
* - asset_type: Type of asset (image, video, document, other)
|
|
1454
|
-
* - property_id: ID of property (optional, uses request.property if not provided)
|
|
1455
|
-
* - content_unit_id: ID of content unit to associate (optional)
|
|
1456
|
-
* @returns Asset
|
|
1457
|
-
* @throws ApiError
|
|
1458
|
-
*/
|
|
1459
|
-
static editorialMediaAssetsUploadCreate({ requestBody, }) {
|
|
1460
|
-
return __request(OpenAPI, {
|
|
1461
|
-
method: 'POST',
|
|
1462
|
-
url: '/api/v1/editorial/media-assets/upload/',
|
|
1463
|
-
body: requestBody,
|
|
1464
|
-
mediaType: 'application/json',
|
|
1465
|
-
});
|
|
1466
|
-
}
|
|
1467
|
-
/**
|
|
1468
|
-
* ViewSet for managing publish targets.
|
|
1469
|
-
*
|
|
1470
|
-
* Provides endpoints to view and manage publish targets for content units.
|
|
1471
|
-
* @returns PublishTarget
|
|
1472
|
-
* @throws ApiError
|
|
1473
|
-
*/
|
|
1474
|
-
static editorialPublishTargetsList() {
|
|
1475
|
-
return __request(OpenAPI, {
|
|
1476
|
-
method: 'GET',
|
|
1477
|
-
url: '/api/v1/editorial/publish-targets/',
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
/**
|
|
1481
|
-
* ViewSet for managing publish targets.
|
|
1482
|
-
*
|
|
1483
|
-
* Provides endpoints to view and manage publish targets for content units.
|
|
1484
|
-
* @returns PublishTarget
|
|
1485
|
-
* @throws ApiError
|
|
1486
|
-
*/
|
|
1487
|
-
static editorialPublishTargetsCreate({ requestBody, }) {
|
|
1488
|
-
return __request(OpenAPI, {
|
|
1489
|
-
method: 'POST',
|
|
1490
|
-
url: '/api/v1/editorial/publish-targets/',
|
|
1491
|
-
body: requestBody,
|
|
1492
|
-
mediaType: 'application/json',
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
/**
|
|
1496
|
-
* ViewSet for managing publish targets.
|
|
1497
|
-
*
|
|
1498
|
-
* Provides endpoints to view and manage publish targets for content units.
|
|
1499
|
-
* @returns PublishTarget
|
|
1500
|
-
* @throws ApiError
|
|
1501
|
-
*/
|
|
1502
|
-
static editorialPublishTargetsRetrieve({ id, }) {
|
|
1503
|
-
return __request(OpenAPI, {
|
|
1504
|
-
method: 'GET',
|
|
1505
|
-
url: '/api/v1/editorial/publish-targets/{id}/',
|
|
1506
|
-
path: {
|
|
1507
|
-
'id': id,
|
|
1508
|
-
},
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
/**
|
|
1512
|
-
* ViewSet for managing publish targets.
|
|
1513
|
-
*
|
|
1514
|
-
* Provides endpoints to view and manage publish targets for content units.
|
|
1515
|
-
* @returns PublishTarget
|
|
1516
|
-
* @throws ApiError
|
|
1517
|
-
*/
|
|
1518
|
-
static editorialPublishTargetsUpdate({ id, requestBody, }) {
|
|
1519
|
-
return __request(OpenAPI, {
|
|
1520
|
-
method: 'PUT',
|
|
1521
|
-
url: '/api/v1/editorial/publish-targets/{id}/',
|
|
1522
|
-
path: {
|
|
1523
|
-
'id': id,
|
|
1524
|
-
},
|
|
1525
|
-
body: requestBody,
|
|
1526
|
-
mediaType: 'application/json',
|
|
1527
|
-
});
|
|
1528
|
-
}
|
|
1529
|
-
/**
|
|
1530
|
-
* ViewSet for managing publish targets.
|
|
1531
|
-
*
|
|
1532
|
-
* Provides endpoints to view and manage publish targets for content units.
|
|
1533
|
-
* @returns PublishTarget
|
|
1534
|
-
* @throws ApiError
|
|
1535
|
-
*/
|
|
1536
|
-
static editorialPublishTargetsPartialUpdate({ id, requestBody, }) {
|
|
1537
|
-
return __request(OpenAPI, {
|
|
1538
|
-
method: 'PATCH',
|
|
1539
|
-
url: '/api/v1/editorial/publish-targets/{id}/',
|
|
1540
|
-
path: {
|
|
1541
|
-
'id': id,
|
|
1542
|
-
},
|
|
1543
|
-
body: requestBody,
|
|
1544
|
-
mediaType: 'application/json',
|
|
1545
|
-
});
|
|
1546
|
-
}
|
|
1547
|
-
/**
|
|
1548
|
-
* ViewSet for managing publish targets.
|
|
1549
|
-
*
|
|
1550
|
-
* Provides endpoints to view and manage publish targets for content units.
|
|
1551
|
-
* @returns void
|
|
1552
|
-
* @throws ApiError
|
|
1553
|
-
*/
|
|
1554
|
-
static editorialPublishTargetsDestroy({ id, }) {
|
|
1555
|
-
return __request(OpenAPI, {
|
|
1556
|
-
method: 'DELETE',
|
|
1557
|
-
url: '/api/v1/editorial/publish-targets/{id}/',
|
|
1558
|
-
path: {
|
|
1559
|
-
'id': id,
|
|
1560
|
-
},
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
/**
|
|
1564
|
-
* Retry syncing a failed publish target.
|
|
1565
|
-
*
|
|
1566
|
-
* POST /api/v1/editorial/publish-targets/{id}/retry/
|
|
1567
|
-
* @returns PublishTarget
|
|
1568
|
-
* @throws ApiError
|
|
1569
|
-
*/
|
|
1570
|
-
static editorialPublishTargetsRetryCreate({ id, requestBody, }) {
|
|
1571
|
-
return __request(OpenAPI, {
|
|
1572
|
-
method: 'POST',
|
|
1573
|
-
url: '/api/v1/editorial/publish-targets/{id}/retry/',
|
|
1574
|
-
path: {
|
|
1575
|
-
'id': id,
|
|
1576
|
-
},
|
|
1577
|
-
body: requestBody,
|
|
1578
|
-
mediaType: 'application/json',
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
/**
|
|
1582
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1583
|
-
*
|
|
1584
|
-
* This ViewSet ensures that:
|
|
1585
|
-
* 1. request.tenant exists
|
|
1586
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1587
|
-
*
|
|
1588
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1589
|
-
* - CRM models (TenantContact, etc.)
|
|
1590
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1591
|
-
* - Integrations models (Integration, etc.)
|
|
1592
|
-
* - Org models (Property, etc.)
|
|
1593
|
-
*
|
|
1594
|
-
* Example:
|
|
1595
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1596
|
-
* queryset = TenantContact.objects.all()
|
|
1597
|
-
* serializer_class = TenantContactSerializer
|
|
1598
|
-
* @returns ContentTask
|
|
1599
|
-
* @throws ApiError
|
|
1600
|
-
*/
|
|
1601
|
-
static editorialTasksList() {
|
|
1602
|
-
return __request(OpenAPI, {
|
|
1603
|
-
method: 'GET',
|
|
1604
|
-
url: '/api/v1/editorial/tasks/',
|
|
1605
|
-
});
|
|
1606
|
-
}
|
|
1607
|
-
/**
|
|
1608
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1609
|
-
*
|
|
1610
|
-
* This ViewSet ensures that:
|
|
1611
|
-
* 1. request.tenant exists
|
|
1612
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1613
|
-
*
|
|
1614
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1615
|
-
* - CRM models (TenantContact, etc.)
|
|
1616
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1617
|
-
* - Integrations models (Integration, etc.)
|
|
1618
|
-
* - Org models (Property, etc.)
|
|
1619
|
-
*
|
|
1620
|
-
* Example:
|
|
1621
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1622
|
-
* queryset = TenantContact.objects.all()
|
|
1623
|
-
* serializer_class = TenantContactSerializer
|
|
1624
|
-
* @returns ContentTask
|
|
1625
|
-
* @throws ApiError
|
|
1626
|
-
*/
|
|
1627
|
-
static editorialTasksCreate({ requestBody, }) {
|
|
1628
|
-
return __request(OpenAPI, {
|
|
1629
|
-
method: 'POST',
|
|
1630
|
-
url: '/api/v1/editorial/tasks/',
|
|
1631
|
-
body: requestBody,
|
|
1632
|
-
mediaType: 'application/json',
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1637
|
-
*
|
|
1638
|
-
* This ViewSet ensures that:
|
|
1639
|
-
* 1. request.tenant exists
|
|
1640
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1641
|
-
*
|
|
1642
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1643
|
-
* - CRM models (TenantContact, etc.)
|
|
1644
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1645
|
-
* - Integrations models (Integration, etc.)
|
|
1646
|
-
* - Org models (Property, etc.)
|
|
1647
|
-
*
|
|
1648
|
-
* Example:
|
|
1649
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1650
|
-
* queryset = TenantContact.objects.all()
|
|
1651
|
-
* serializer_class = TenantContactSerializer
|
|
1652
|
-
* @returns ContentTask
|
|
1653
|
-
* @throws ApiError
|
|
1654
|
-
*/
|
|
1655
|
-
static editorialTasksRetrieve({ id, }) {
|
|
1656
|
-
return __request(OpenAPI, {
|
|
1657
|
-
method: 'GET',
|
|
1658
|
-
url: '/api/v1/editorial/tasks/{id}/',
|
|
1659
|
-
path: {
|
|
1660
|
-
'id': id,
|
|
1661
|
-
},
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
/**
|
|
1665
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1666
|
-
*
|
|
1667
|
-
* This ViewSet ensures that:
|
|
1668
|
-
* 1. request.tenant exists
|
|
1669
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1670
|
-
*
|
|
1671
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1672
|
-
* - CRM models (TenantContact, etc.)
|
|
1673
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1674
|
-
* - Integrations models (Integration, etc.)
|
|
1675
|
-
* - Org models (Property, etc.)
|
|
1676
|
-
*
|
|
1677
|
-
* Example:
|
|
1678
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1679
|
-
* queryset = TenantContact.objects.all()
|
|
1680
|
-
* serializer_class = TenantContactSerializer
|
|
1681
|
-
* @returns ContentTask
|
|
1682
|
-
* @throws ApiError
|
|
1683
|
-
*/
|
|
1684
|
-
static editorialTasksUpdate({ id, requestBody, }) {
|
|
1685
|
-
return __request(OpenAPI, {
|
|
1686
|
-
method: 'PUT',
|
|
1687
|
-
url: '/api/v1/editorial/tasks/{id}/',
|
|
1688
|
-
path: {
|
|
1689
|
-
'id': id,
|
|
1690
|
-
},
|
|
1691
|
-
body: requestBody,
|
|
1692
|
-
mediaType: 'application/json',
|
|
1693
|
-
});
|
|
1694
|
-
}
|
|
1695
|
-
/**
|
|
1696
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1697
|
-
*
|
|
1698
|
-
* This ViewSet ensures that:
|
|
1699
|
-
* 1. request.tenant exists
|
|
1700
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1701
|
-
*
|
|
1702
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1703
|
-
* - CRM models (TenantContact, etc.)
|
|
1704
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1705
|
-
* - Integrations models (Integration, etc.)
|
|
1706
|
-
* - Org models (Property, etc.)
|
|
1707
|
-
*
|
|
1708
|
-
* Example:
|
|
1709
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1710
|
-
* queryset = TenantContact.objects.all()
|
|
1711
|
-
* serializer_class = TenantContactSerializer
|
|
1712
|
-
* @returns ContentTask
|
|
1713
|
-
* @throws ApiError
|
|
1714
|
-
*/
|
|
1715
|
-
static editorialTasksPartialUpdate({ id, requestBody, }) {
|
|
1716
|
-
return __request(OpenAPI, {
|
|
1717
|
-
method: 'PATCH',
|
|
1718
|
-
url: '/api/v1/editorial/tasks/{id}/',
|
|
1719
|
-
path: {
|
|
1720
|
-
'id': id,
|
|
1721
|
-
},
|
|
1722
|
-
body: requestBody,
|
|
1723
|
-
mediaType: 'application/json',
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
/**
|
|
1727
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1728
|
-
*
|
|
1729
|
-
* This ViewSet ensures that:
|
|
1730
|
-
* 1. request.tenant exists
|
|
1731
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1732
|
-
*
|
|
1733
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1734
|
-
* - CRM models (TenantContact, etc.)
|
|
1735
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1736
|
-
* - Integrations models (Integration, etc.)
|
|
1737
|
-
* - Org models (Property, etc.)
|
|
1738
|
-
*
|
|
1739
|
-
* Example:
|
|
1740
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1741
|
-
* queryset = TenantContact.objects.all()
|
|
1742
|
-
* serializer_class = TenantContactSerializer
|
|
1743
|
-
* @returns void
|
|
1744
|
-
* @throws ApiError
|
|
1745
|
-
*/
|
|
1746
|
-
static editorialTasksDestroy({ id, }) {
|
|
1747
|
-
return __request(OpenAPI, {
|
|
1748
|
-
method: 'DELETE',
|
|
1749
|
-
url: '/api/v1/editorial/tasks/{id}/',
|
|
1750
|
-
path: {
|
|
1751
|
-
'id': id,
|
|
1752
|
-
},
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
/**
|
|
1756
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1757
|
-
*
|
|
1758
|
-
* This ViewSet ensures that:
|
|
1759
|
-
* 1. request.tenant exists
|
|
1760
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1761
|
-
*
|
|
1762
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1763
|
-
* - CRM models (TenantContact, etc.)
|
|
1764
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1765
|
-
* - Integrations models (Integration, etc.)
|
|
1766
|
-
* - Org models (Property, etc.)
|
|
1767
|
-
*
|
|
1768
|
-
* Example:
|
|
1769
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1770
|
-
* queryset = TenantContact.objects.all()
|
|
1771
|
-
* serializer_class = TenantContactSerializer
|
|
1772
|
-
* @returns ContentTopic
|
|
1773
|
-
* @throws ApiError
|
|
1774
|
-
*/
|
|
1775
|
-
static editorialTopicsList() {
|
|
1776
|
-
return __request(OpenAPI, {
|
|
1777
|
-
method: 'GET',
|
|
1778
|
-
url: '/api/v1/editorial/topics/',
|
|
1779
|
-
});
|
|
1780
|
-
}
|
|
1781
|
-
/**
|
|
1782
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1783
|
-
*
|
|
1784
|
-
* This ViewSet ensures that:
|
|
1785
|
-
* 1. request.tenant exists
|
|
1786
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1787
|
-
*
|
|
1788
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1789
|
-
* - CRM models (TenantContact, etc.)
|
|
1790
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1791
|
-
* - Integrations models (Integration, etc.)
|
|
1792
|
-
* - Org models (Property, etc.)
|
|
1793
|
-
*
|
|
1794
|
-
* Example:
|
|
1795
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1796
|
-
* queryset = TenantContact.objects.all()
|
|
1797
|
-
* serializer_class = TenantContactSerializer
|
|
1798
|
-
* @returns ContentTopic
|
|
1799
|
-
* @throws ApiError
|
|
1800
|
-
*/
|
|
1801
|
-
static editorialTopicsCreate({ requestBody, }) {
|
|
1802
|
-
return __request(OpenAPI, {
|
|
1803
|
-
method: 'POST',
|
|
1804
|
-
url: '/api/v1/editorial/topics/',
|
|
1805
|
-
body: requestBody,
|
|
1806
|
-
mediaType: 'application/json',
|
|
1807
|
-
});
|
|
1808
|
-
}
|
|
1809
|
-
/**
|
|
1810
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1811
|
-
*
|
|
1812
|
-
* This ViewSet ensures that:
|
|
1813
|
-
* 1. request.tenant exists
|
|
1814
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1815
|
-
*
|
|
1816
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1817
|
-
* - CRM models (TenantContact, etc.)
|
|
1818
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1819
|
-
* - Integrations models (Integration, etc.)
|
|
1820
|
-
* - Org models (Property, etc.)
|
|
1821
|
-
*
|
|
1822
|
-
* Example:
|
|
1823
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1824
|
-
* queryset = TenantContact.objects.all()
|
|
1825
|
-
* serializer_class = TenantContactSerializer
|
|
1826
|
-
* @returns ContentTopic
|
|
1827
|
-
* @throws ApiError
|
|
1828
|
-
*/
|
|
1829
|
-
static editorialTopicsRetrieve({ id, }) {
|
|
1830
|
-
return __request(OpenAPI, {
|
|
1831
|
-
method: 'GET',
|
|
1832
|
-
url: '/api/v1/editorial/topics/{id}/',
|
|
1833
|
-
path: {
|
|
1834
|
-
'id': id,
|
|
1835
|
-
},
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
/**
|
|
1839
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1840
|
-
*
|
|
1841
|
-
* This ViewSet ensures that:
|
|
1842
|
-
* 1. request.tenant exists
|
|
1843
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1844
|
-
*
|
|
1845
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1846
|
-
* - CRM models (TenantContact, etc.)
|
|
1847
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1848
|
-
* - Integrations models (Integration, etc.)
|
|
1849
|
-
* - Org models (Property, etc.)
|
|
1850
|
-
*
|
|
1851
|
-
* Example:
|
|
1852
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1853
|
-
* queryset = TenantContact.objects.all()
|
|
1854
|
-
* serializer_class = TenantContactSerializer
|
|
1855
|
-
* @returns ContentTopic
|
|
1856
|
-
* @throws ApiError
|
|
1857
|
-
*/
|
|
1858
|
-
static editorialTopicsUpdate({ id, requestBody, }) {
|
|
1859
|
-
return __request(OpenAPI, {
|
|
1860
|
-
method: 'PUT',
|
|
1861
|
-
url: '/api/v1/editorial/topics/{id}/',
|
|
1862
|
-
path: {
|
|
1863
|
-
'id': id,
|
|
1864
|
-
},
|
|
1865
|
-
body: requestBody,
|
|
1866
|
-
mediaType: 'application/json',
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
/**
|
|
1870
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1871
|
-
*
|
|
1872
|
-
* This ViewSet ensures that:
|
|
1873
|
-
* 1. request.tenant exists
|
|
1874
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1875
|
-
*
|
|
1876
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1877
|
-
* - CRM models (TenantContact, etc.)
|
|
1878
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1879
|
-
* - Integrations models (Integration, etc.)
|
|
1880
|
-
* - Org models (Property, etc.)
|
|
1881
|
-
*
|
|
1882
|
-
* Example:
|
|
1883
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1884
|
-
* queryset = TenantContact.objects.all()
|
|
1885
|
-
* serializer_class = TenantContactSerializer
|
|
1886
|
-
* @returns ContentTopic
|
|
1887
|
-
* @throws ApiError
|
|
1888
|
-
*/
|
|
1889
|
-
static editorialTopicsPartialUpdate({ id, requestBody, }) {
|
|
1890
|
-
return __request(OpenAPI, {
|
|
1891
|
-
method: 'PATCH',
|
|
1892
|
-
url: '/api/v1/editorial/topics/{id}/',
|
|
1893
|
-
path: {
|
|
1894
|
-
'id': id,
|
|
1895
|
-
},
|
|
1896
|
-
body: requestBody,
|
|
1897
|
-
mediaType: 'application/json',
|
|
1898
|
-
});
|
|
1899
|
-
}
|
|
1900
|
-
/**
|
|
1901
|
-
* Base ModelViewSet for tenant-scoped models.
|
|
1902
|
-
*
|
|
1903
|
-
* This ViewSet ensures that:
|
|
1904
|
-
* 1. request.tenant exists
|
|
1905
|
-
* 2. connection.schema_name matches tenant.schema_name before any queryset evaluation
|
|
1906
|
-
*
|
|
1907
|
-
* Use this for all viewsets that query tenant-scoped models:
|
|
1908
|
-
* - CRM models (TenantContact, etc.)
|
|
1909
|
-
* - Editorial models (ContentAsset, etc.)
|
|
1910
|
-
* - Integrations models (Integration, etc.)
|
|
1911
|
-
* - Org models (Property, etc.)
|
|
1912
|
-
*
|
|
1913
|
-
* Example:
|
|
1914
|
-
* class TenantContactViewSet(TenantModelViewSet):
|
|
1915
|
-
* queryset = TenantContact.objects.all()
|
|
1916
|
-
* serializer_class = TenantContactSerializer
|
|
1917
|
-
* @returns void
|
|
1918
|
-
* @throws ApiError
|
|
1919
|
-
*/
|
|
1920
|
-
static editorialTopicsDestroy({ id, }) {
|
|
1921
|
-
return __request(OpenAPI, {
|
|
1922
|
-
method: 'DELETE',
|
|
1923
|
-
url: '/api/v1/editorial/topics/{id}/',
|
|
1924
|
-
path: {
|
|
1925
|
-
'id': id,
|
|
1926
|
-
},
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
//# sourceMappingURL=EditorialService.js.map
|