feat: Private label email policy (#813)

* Label Policy added

* save

* chore: update docs action

* Save

* Save

* Get colors from DB

* Variables inserted

* Get images from global directory.

* Add tests

* Add tests

* Corrections from mergerequest

* Corrections from mergerequest

* Test corrected.

* Added colors to all notifications.

* Added colors to
Corrected text and formatting.all notifications.

* Spelling error corrected.

* fix: tests

* Merge Branch corrected.

* Step6 added

* Corrections from mergerequest

* fix: generate management

* Formatted texts.

* fix: migrations

Co-authored-by: Florian Forster <[email protected]>
Co-authored-by: adlerhurst <[email protected]>
Co-authored-by: Fabiennne <[email protected]>
This commit is contained in:
Michael Waeger
2020-10-20 19:10:23 +02:00
committed by GitHub
co-authored by Florian Forster adlerhurst Fabiennne
parent cfd119924f
commit 42384763d1
65 changed files with 7143 additions and 13940 deletions
+101
View File
@@ -845,6 +845,58 @@
]
}
},
"/policies/label": {
"get": {
"operationId": "AdminService_GetDefaultLabelPolicy",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1DefaultLabelPolicyView"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"AdminService"
]
},
"put": {
"operationId": "AdminService_UpdateDefaultLabelPolicy",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1DefaultLabelPolicy"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1DefaultLabelPolicyUpdate"
}
}
],
"tags": [
"AdminService"
]
}
},
"/policies/login": {
"get": {
"operationId": "AdminService_GetDefaultLoginPolicy",
@@ -1412,6 +1464,55 @@
}
}
},
"v1DefaultLabelPolicy": {
"type": "object",
"properties": {
"primary_color": {
"type": "string"
},
"secondary_color": {
"type": "string"
},
"creation_date": {
"type": "string",
"format": "date-time"
},
"change_date": {
"type": "string",
"format": "date-time"
}
}
},
"v1DefaultLabelPolicyUpdate": {
"type": "object",
"properties": {
"primary_color": {
"type": "string"
},
"secondary_color": {
"type": "string"
}
}
},
"v1DefaultLabelPolicyView": {
"type": "object",
"properties": {
"primary_color": {
"type": "string"
},
"secondary_color": {
"type": "string"
},
"creation_date": {
"type": "string",
"format": "date-time"
},
"change_date": {
"type": "string",
"format": "date-time"
}
}
},
"v1DefaultLoginPolicy": {
"type": "object",
"properties": {