From 80d017d479c57e6776e73185a62f78f91ef029de Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 14 Sep 2024 07:37:58 +0000 Subject: [PATCH] chore(assets): update application body [skip ci] --- assets/application.json | 90 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 1 deletion(-) diff --git a/assets/application.json b/assets/application.json index 18c445e..26d1c3c 100644 --- a/assets/application.json +++ b/assets/application.json @@ -360,8 +360,96 @@ "description": "Insira a lista de IDs separados por vírgula de transportadoras que serão removidas do cálculo" }, "hide": true + }, + "warehouses": { + "schema": { + "title": "Armazéns (multi CD)", + "description": "Origens e destinos para cada centro de distribuição", + "type": "array", + "maxItems": 30, + "items": { + "title": "Centro de distribuição", + "type": "object", + "required": [ + "code", + "zip" + ], + "additionalProperties": false, + "properties": { + "code": { + "type": "string", + "maxLength": 30, + "pattern": "^[A-Za-z0-9-_]{2,30}$", + "title": "Código do CD" + }, + "api_key": { + "type": "string", + "maxLength": 600, + "title": "Api Key", + "description": "Api Key da Frete Click específica para o CD, se houver" + }, + "zip": { + "type": "string", + "maxLength": 9, + "pattern": "^[0-9]{5}-?[0-9]{3}$", + "title": "CEP de origem", + "description": "Código postal do remetente para cálculo do frete" + }, + "posting_deadline": { + "title": "Prazo de envio do CD", + "type": "object", + "required": [ + "days" + ], + "additionalProperties": false, + "properties": { + "days": { + "type": "integer", + "minimum": 0, + "maximum": 999999, + "title": "Número de dias", + "description": "Dias de prazo para postar os produtos após a compra" + }, + "working_days": { + "type": "boolean", + "default": true, + "title": "Dias úteis" + }, + "after_approval": { + "type": "boolean", + "default": true, + "title": "Após aprovação do pagamento" + } + } + }, + "zip_range": { + "title": "Faixa de CEP atendida", + "type": "object", + "required": [ + "min", + "max" + ], + "properties": { + "min": { + "type": "integer", + "minimum": 10000, + "maximum": 999999999, + "title": "CEP inicial" + }, + "max": { + "type": "integer", + "minimum": 10000, + "maximum": 999999999, + "title": "CEP final" + } + } + } + } + } + }, + "hide": true } }, "auth_callback_uri": "https://us-central1-ecom-freteclick.cloudfunctions.net/app/ecom/auth-callback", - "version": "1.0.0" + "version": "1.1.0" } \ No newline at end of file