package dp.kotul.templategroupsbackend.data

import dp.kotul.solrapimodel.solrsearch.TemplateType.CHILI_PRINT
import dp.kotul.solrapimodel.solrsearch.TemplateType.TACTIC_WEB_AD
import dp.kotul.templategroupsbackend.model.solrsearch.template.TemplateSolr
import dp.kotul.templategroupsbackend.model.solrsearch.template.TemplateSolrResponse
import java.time.Instant

object TemplatesSolrData {
    val templateSolrResponse = TemplateSolrResponse(
        templates = listOf(
            TemplateSolr(
                id = "TEMPLATE_TACTIC_WEB_AD_825ccd4116a8b7237899d6ab2aa0e3b6_2",
                assetType = "TEMPLATE",
                templateExtId = "825ccd4116a8b7237899d6ab2aa0e3b6",
                templateType = TACTIC_WEB_AD,
                name = "Test",
                createdDate = Instant.parse("2020-06-19T07:52:28.332Z"),
                thumbnailRef = "https://picsum.photos/160/600",
                lowResRef = "https://picsum.photos/160/600",
                variables = listOf(
                    "{\"type\":\"TEXT\",\"id\":\"myCustomHeading\",\"display_name\":\"myCustomHeading\"}",
                    "{\"type\":\"TEXT\",\"id\":\"myCustomMessage\",\"display_name\":\"myCustomMessage\"}"
                ),
                metaData = null
            ),
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_132e6e51-aa3e-4985-a428-84648a7ad389_2",
                assetType = "TEMPLATE",
                templateExtId = "132e6e51-aa3e-4985-a428-84648a7ad389",
                templateType = CHILI_PRINT,
                name = "Ad 135x190-1539853001308",
                createdDate = Instant.parse("2020-07-01T14:14:34.747Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(
                    "{\"type\":\"string\",\"id\":\"user:COMPANY_NAME\",\"display_name\":\"Company name\"}",
                    "{\"type\":\"string\",\"id\":\"max-width-increase\",\"display_name\":\"max-width-increase\"}",
                    "{\"type\":\"string\",\"id\":\"max-height-increase\",\"display_name\":\"max-height-increase\"}",
                    "{\"type\":\"string\",\"id\":\"min-scaling\",\"display_name\":\"min-scaling\"}",
                    "{\"type\":\"string\",\"id\":\"max-scaling\",\"display_name\":\"max-scaling\"}"
                ),
                metaData = null
            ),
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_3897d79a-d5b7-45fc-a806-84a5ab6a68fe_2",
                assetType = "TEMPLATE",
                templateExtId = "3897d79a-d5b7-45fc-a806-84a5ab6a68fe",
                templateType = CHILI_PRINT,
                name = "M55_Tucson FL",
                createdDate = Instant.parse("2020-07-31T13:48:33Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(
                    "{\"type\":\"string\",\"id\":\"document-bleed\",\"display_name\":\"document-bleed\",\"default_value\":\"false\",\"required\":false,\"max_length\":0}",
                    "{\"type\":\"string\",\"id\":\"bleed-marks-enabled\",\"display_name\":\"bleed-marks-enabled\",\"default_value\":\"true\",\"required\":false,\"max_length\":0}",
                    "{\"type\":\"string\",\"id\":\"mandatory-variable\",\"display_name\":\"MANDATORY_VARIABLE!\",\"default_value\":\"\",\"required\":true,\"max_length\":6}",
                    "{\"type\":\"string\",\"id\":\"maxLength-variable\",\"display_name\":\"maxLength-variable\",\"default_value\":\"\",\"required\":false,\"max_length\":4}"
                ),
                metaData = null
            )
        ),
        numFound = 3
    )

    val templateSolrResponseWithAddedVariables = TemplateSolrResponse(
        templates = listOf(
            TemplateSolr(
                id = "TEMPLATE_TACTIC_WEB_AD_825ccd4116a8b7237899d6ab2aa0e3b6_2",
                assetType = "TEMPLATE",
                templateExtId = "825ccd4116a8b7237899d6ab2aa0e3b6",
                templateType = TACTIC_WEB_AD,
                name = "Test",
                createdDate = Instant.parse("2020-06-19T07:52:28.332Z"),
                thumbnailRef = "https://picsum.photos/160/600",
                lowResRef = "https://picsum.photos/160/600",
                variables = listOf(
                    "{\"type\":\"TEXT\",\"id\":\"myCustomHeading\",\"display_name\":\"myCustomHeading\"}",
                    "{\"type\":\"TEXT\",\"id\":\"myCustomMessage\",\"display_name\":\"myCustomMessage\"}",
                    "{\"type\":\"TEXT\",\"id\":\"testVariable\",\"display_name\":\"testVariable\"}",
                    "{\"type\":\"TEXT\",\"id\":\"testVariable1\",\"display_name\":\"testVariable1\"}"
                ),
                metaData = null
            ),
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_132e6e51-aa3e-4985-a428-84648a7ad389_2",
                assetType = "TEMPLATE",
                templateExtId = "132e6e51-aa3e-4985-a428-84648a7ad389",
                templateType = CHILI_PRINT,
                name = "Ad 135x190-1539853001308",
                createdDate = Instant.parse("2020-07-01T14:14:34.747Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(
                    "{\"type\":\"string\",\"id\":\"user:COMPANY_NAME\",\"display_name\":\"Company name\"}",
                    "{\"type\":\"string\",\"id\":\"max-width-increase\",\"display_name\":\"max-width-increase\"}",
                    "{\"type\":\"string\",\"id\":\"max-height-increase\",\"display_name\":\"max-height-increase\"}",
                    "{\"type\":\"string\",\"id\":\"min-scaling\",\"display_name\":\"min-scaling\"}",
                    "{\"type\":\"string\",\"id\":\"max-scaling\",\"display_name\":\"max-scaling\"}",
                    "{\"type\":\"string\",\"id\":\"test-variable\",\"display_name\":\"test-variable\"}"
                ),
                metaData = null
            ),
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_3897d79a-d5b7-45fc-a806-84a5ab6a68fe_2",
                assetType = "TEMPLATE",
                templateExtId = "3897d79a-d5b7-45fc-a806-84a5ab6a68fe",
                templateType = CHILI_PRINT,
                name = "M55_Tucson FL",
                createdDate = Instant.parse("2020-07-31T13:48:33Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(
                    "{\"type\":\"string\",\"id\":\"document-bleed\",\"display_name\":\"document-bleed\",\"default_value\":\"false\",\"required\":false,\"max_length\":0}",
                    "{\"type\":\"string\",\"id\":\"bleed-marks-enabled\",\"display_name\":\"bleed-marks-enabled\",\"default_value\":\"true\",\"required\":false,\"max_length\":0}",
                    "{\"type\":\"string\",\"id\":\"mandatory-variable\",\"display_name\":\"MANDATORY_VARIABLE!\",\"default_value\":\"\",\"required\":true,\"max_length\":6}",
                    "{\"type\":\"string\",\"id\":\"maxLength-variable\",\"display_name\":\"maxLength-variable\",\"default_value\":\"\",\"required\":false,\"max_length\":4}",
                    "{\"type\":\"string\",\"id\":\"test-variable\",\"display_name\":\"test-variable\",\"default_value\":\"\",\"required\":false,\"max_length\":5}"
                ),
                metaData = null
            )
        ),
        numFound = 3
    )

    val templateSolrResponseWithRemovedVariables = TemplateSolrResponse(
        templates = listOf(
            TemplateSolr(
                id = "TEMPLATE_TACTIC_WEB_AD_825ccd4116a8b7237899d6ab2aa0e3b6_2",
                assetType = "TEMPLATE",
                templateExtId = "825ccd4116a8b7237899d6ab2aa0e3b6",
                templateType = TACTIC_WEB_AD,
                name = "Test",
                createdDate = Instant.parse("2020-06-19T07:52:28.332Z"),
                thumbnailRef = "https://picsum.photos/160/600",
                lowResRef = "https://picsum.photos/160/600",
                variables = listOf(),
                metaData = null
            ),
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_132e6e51-aa3e-4985-a428-84648a7ad389_2",
                assetType = "TEMPLATE",
                templateExtId = "132e6e51-aa3e-4985-a428-84648a7ad389",
                templateType = CHILI_PRINT,
                name = "Ad 135x190-1539853001308",
                createdDate = Instant.parse("2020-07-01T14:14:34.747Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(),
                metaData = null
            ),
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_3897d79a-d5b7-45fc-a806-84a5ab6a68fe_2",
                assetType = "TEMPLATE",
                templateExtId = "3897d79a-d5b7-45fc-a806-84a5ab6a68fe",
                templateType = CHILI_PRINT,
                name = "M55_Tucson FL",
                createdDate = Instant.parse("2020-07-31T13:48:33Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(),
                metaData = null
            )
        ),
        numFound = 3
    )

    val templateSolrResponseWithRemovedTemplateAndAddedRemovedVariables = TemplateSolrResponse(
        templates = listOf(
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_132e6e51-aa3e-4985-a428-84648a7ad389_2",
                assetType = "TEMPLATE",
                templateExtId = "132e6e51-aa3e-4985-a428-84648a7ad389",
                templateType = CHILI_PRINT,
                name = "Ad 135x190-1539853001308",
                createdDate = Instant.parse("2020-07-01T14:14:34.747Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(
                    "{\"type\":\"string\",\"id\":\"user:COMPANY_NAME\",\"display_name\":\"Company name\"}",
                    "{\"type\":\"string\",\"id\":\"max-width-increase\",\"display_name\":\"max-width-increase\"}",
                    "{\"type\":\"string\",\"id\":\"min-scaling\",\"display_name\":\"min-scaling\"}",
                    "{\"type\":\"string\",\"id\":\"test-variable\",\"display_name\":\"test-variable\"}"
                ),
                metaData = null
            ),
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_3897d79a-d5b7-45fc-a806-84a5ab6a68fe_2",
                assetType = "TEMPLATE",
                templateExtId = "3897d79a-d5b7-45fc-a806-84a5ab6a68fe",
                templateType = CHILI_PRINT,
                name = "M55_Tucson FL",
                createdDate = Instant.parse("2020-07-31T13:48:33Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(
                    "{\"type\":\"string\",\"id\":\"document-bleed\",\"display_name\":\"document-bleed\",\"default_value\":\"false\",\"required\":false,\"max_length\":0}",
                    "{\"type\":\"string\",\"id\":\"bleed-marks-enabled\",\"display_name\":\"bleed-marks-enabled\",\"default_value\":\"true\",\"required\":false,\"max_length\":0}",
                    "{\"type\":\"string\",\"id\":\"mandatory-variable\",\"display_name\":\"MANDATORY_VARIABLE!\",\"default_value\":\"\",\"required\":true,\"max_length\":6}",
                    "{\"type\":\"string\",\"id\":\"maxLength-variable\",\"display_name\":\"maxLength-variable\",\"default_value\":\"\",\"required\":false,\"max_length\":4}",
                    "{\"type\":\"string\",\"id\":\"test-variable\",\"display_name\":\"test-variable\",\"default_value\":\"\",\"required\":false,\"max_length\":5}"
                ),
                metaData = null
            )
        ),
        numFound = 2
    )

    val templateSolrResponseAfterRemovedTemplate = TemplateSolrResponse(
        templates = listOf(
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_132e6e51-aa3e-4985-a428-84648a7ad389_2",
                assetType = "TEMPLATE",
                templateExtId = "132e6e51-aa3e-4985-a428-84648a7ad389",
                templateType = CHILI_PRINT,
                name = "Ad 135x190-1539853001308",
                createdDate = Instant.parse("2020-07-01T14:14:34.747Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=132e6e51-aa3e-4985-a428-84648a7ad389&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(
                    "{\"type\":\"string\",\"id\":\"user:COMPANY_NAME\",\"display_name\":\"Company name\"}",
                    "{\"type\":\"string\",\"id\":\"max-width-increase\",\"display_name\":\"max-width-increase\"}",
                    "{\"type\":\"string\",\"id\":\"max-height-increase\",\"display_name\":\"max-height-increase\"}",
                    "{\"type\":\"string\",\"id\":\"min-scaling\",\"display_name\":\"min-scaling\"}",
                    "{\"type\":\"string\",\"id\":\"max-scaling\",\"display_name\":\"max-scaling\"}"
                ),
                metaData = null
            ),
            TemplateSolr(
                id = "TEMPLATE_CHILI_PRINT_3897d79a-d5b7-45fc-a806-84a5ab6a68fe_2",
                assetType = "TEMPLATE",
                templateExtId = "3897d79a-d5b7-45fc-a806-84a5ab6a68fe",
                templateType = CHILI_PRINT,
                name = "M55_Tucson FL",
                createdDate = Instant.parse("2020-07-31T13:48:33Z"),
                thumbnailRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                lowResRef = "/CHILI/10930/download.aspx?type=thumb&resourceName=Documents&id=3897d79a-d5b7-45fc-a806-84a5ab6a68fe&apiKey=RFdcWfIj_xmBtR226Zb17V_JmN1wmquH9xeJ2W2BbY2JQaoq3ZHhu_zrMojygUEp9Ki9nG6Mu03A1lEOylJSkQ==&pageNum=1",
                variables = listOf(
                    "{\"type\":\"string\",\"id\":\"document-bleed\",\"display_name\":\"document-bleed\",\"default_value\":\"false\",\"required\":false,\"max_length\":0}",
                    "{\"type\":\"string\",\"id\":\"bleed-marks-enabled\",\"display_name\":\"bleed-marks-enabled\",\"default_value\":\"true\",\"required\":false,\"max_length\":0}",
                    "{\"type\":\"string\",\"id\":\"mandatory-variable\",\"display_name\":\"MANDATORY_VARIABLE!\",\"default_value\":\"\",\"required\":true,\"max_length\":6}",
                    "{\"type\":\"string\",\"id\":\"maxLength-variable\",\"display_name\":\"maxLength-variable\",\"default_value\":\"\",\"required\":false,\"max_length\":4}"
                ),
                metaData = null
            )
        ),
        numFound = 2
    )
}
