@cfxlabsinc/b2b-services
    Preparing search index...

    Manage customer-wide term acceptances and term documents

    Hierarchy (View Summary)

    Index
    • Parameters

      • __namedParameters: {
            attioClient: AttioClient;
            customerDocumentQueryService:
                | CustomerDocumentQueryService
                | CustomerDocumentService;
            db: B2bDatabase;
            eventPublisher: CustomerEventPublisher;
            s3Bucket: string;
            s3Client: S3Client;
            valkeyClient: ValkeyClient
            | null;
        }
        • attioClient: AttioClient

          Sales reads terms-of-service acceptance off the Attio CRM record, so the mutation happens here rather than in an event consumer. Required, not optional: there are three construction sites, and a root that forgot it would silently stop the sync rather than fail to compile.

        • customerDocumentQueryService: CustomerDocumentQueryService | CustomerDocumentService
        • db: B2bDatabase
        • eventPublisher: CustomerEventPublisher
        • s3Bucket: string
        • s3Client: S3Client
        • valkeyClient: ValkeyClient | null

      Returns CustomerTermsService

    customerDocumentQueryService: CustomerDocumentQueryService
    s3Bucket: string
    s3Client: S3Client
    • Parameters

      • __namedParameters: {
            customerId: string;
            termType:
                | "COOKIES_POLICY"
                | "ESIGN_POLICY"
                | "MOVEUSD_TERMS_OF_USE"
                | "PRIVACY_POLICY";
        }

      Returns Promise<{ ok: true; value: CustomerTermDocument | null }>