chore: add missing multi-level editor for approval workflow, rename projects to campaings.

This commit is contained in:
2026-05-01 14:23:37 -04:00
parent 5077f557f4
commit 884ca4b96d
148 changed files with 11567 additions and 1383 deletions

View File

@@ -385,108 +385,6 @@
]
}
},
"/api/projects": {
"post": {
"tags": [
"Projects",
"Api"
],
"operationId": "SocializeApiModulesProjectsHandlersCreateProjectHandler",
"requestBody": {
"x-name": "CreateProjectRequest",
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesProjectsHandlersCreateProjectRequest"
}
}
},
"required": true,
"x-position": 1
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesProjectsHandlersProjectDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/FastEndpointsErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"JWTBearerAuth": []
}
]
},
"get": {
"tags": [
"Projects",
"Api"
],
"operationId": "SocializeApiModulesProjectsHandlersGetProjectsHandler",
"parameters": [
{
"name": "workspaceId",
"in": "query",
"schema": {
"type": "string",
"format": "guid",
"nullable": true
}
},
{
"name": "clientId",
"in": "query",
"schema": {
"type": "string",
"format": "guid",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocializeApiModulesProjectsHandlersProjectDto"
}
}
}
}
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"JWTBearerAuth": []
}
]
}
},
"/api/notifications": {
"get": {
"tags": [
@@ -1221,6 +1119,135 @@
}
}
},
"/api/feedback/{id}/comments": {
"post": {
"tags": [
"Feedback",
"Api"
],
"operationId": "SocializeApiModulesFeedbackHandlersAddDeveloperFeedbackCommentHandler",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"x-name": "AddFeedbackCommentRequest",
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesFeedbackHandlersAddFeedbackCommentRequest"
}
}
},
"required": true,
"x-position": 1
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesFeedbackContractsFeedbackTimelineItemDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/FastEndpointsErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
},
"security": [
{
"JWTBearerAuth": [
"developer"
]
}
]
}
},
"/api/my-feedback/{id}/comments": {
"post": {
"tags": [
"Feedback",
"Api"
],
"operationId": "SocializeApiModulesFeedbackHandlersAddMyFeedbackCommentHandler",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"x-name": "AddFeedbackCommentRequest",
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesFeedbackHandlersAddFeedbackCommentRequest"
}
}
},
"required": true,
"x-position": 1
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesFeedbackContractsFeedbackTimelineItemDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/FastEndpointsErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"JWTBearerAuth": []
}
]
}
},
"/api/my-feedback/{id}/screenshot": {
"post": {
"tags": [
@@ -1383,7 +1410,7 @@
"security": [
{
"JWTBearerAuth": [
"Developer"
"developer"
]
}
]
@@ -1448,7 +1475,54 @@
"security": [
{
"JWTBearerAuth": [
"Developer"
"developer"
]
}
]
}
},
"/api/feedback/{id}/timeline": {
"get": {
"tags": [
"Feedback",
"Api"
],
"operationId": "SocializeApiModulesFeedbackHandlersGetDeveloperFeedbackTimelineHandler",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocializeApiModulesFeedbackContractsFeedbackTimelineItemDto"
}
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
},
"security": [
{
"JWTBearerAuth": [
"developer"
]
}
]
@@ -1532,6 +1606,48 @@
]
}
},
"/api/my-feedback/{id}/timeline": {
"get": {
"tags": [
"Feedback",
"Api"
],
"operationId": "SocializeApiModulesFeedbackHandlersGetMyFeedbackTimelineHandler",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocializeApiModulesFeedbackContractsFeedbackTimelineItemDto"
}
}
}
}
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"JWTBearerAuth": []
}
]
}
},
"/api/feedback": {
"get": {
"tags": [
@@ -1563,7 +1679,7 @@
"security": [
{
"JWTBearerAuth": [
"Developer"
"developer"
]
}
]
@@ -1650,7 +1766,7 @@
"security": [
{
"JWTBearerAuth": [
"Developer"
"developer"
]
}
]
@@ -1765,7 +1881,7 @@
}
},
{
"name": "projectId",
"name": "campaignId",
"in": "query",
"schema": {
"type": "string",
@@ -2351,6 +2467,108 @@
]
}
},
"/api/campaigns": {
"post": {
"tags": [
"Campaigns",
"Api"
],
"operationId": "SocializeApiModulesCampaignsHandlersCreateCampaignHandler",
"requestBody": {
"x-name": "CreateCampaignRequest",
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesCampaignsHandlersCreateCampaignRequest"
}
}
},
"required": true,
"x-position": 1
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SocializeApiModulesCampaignsHandlersCampaignDto"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/FastEndpointsErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"JWTBearerAuth": []
}
]
},
"get": {
"tags": [
"Campaigns",
"Api"
],
"operationId": "SocializeApiModulesCampaignsHandlersGetCampaignsHandler",
"parameters": [
{
"name": "workspaceId",
"in": "query",
"schema": {
"type": "string",
"format": "guid",
"nullable": true
}
},
{
"name": "clientId",
"in": "query",
"schema": {
"type": "string",
"format": "guid",
"nullable": true
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocializeApiModulesCampaignsHandlersCampaignDto"
}
}
}
}
},
"401": {
"description": "Unauthorized"
}
},
"security": [
{
"JWTBearerAuth": []
}
]
}
},
"/api/assets/{id}/revisions": {
"post": {
"tags": [
@@ -2727,6 +2945,59 @@
"timeZone": {
"type": "string"
},
"approvalMode": {
"type": "string"
},
"schedulePostsAutomaticallyOnApproval": {
"type": "boolean"
},
"lockContentAfterApproval": {
"type": "boolean"
},
"sendAutomaticApprovalReminders": {
"type": "boolean"
},
"approvalSteps": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocializeApiModulesWorkspacesHandlersApprovalStepConfigurationDto"
}
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"SocializeApiModulesWorkspacesHandlersApprovalStepConfigurationDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "guid"
},
"workspaceId": {
"type": "string",
"format": "guid"
},
"name": {
"type": "string"
},
"sortOrder": {
"type": "integer",
"format": "int32"
},
"targetType": {
"type": "string"
},
"targetValue": {
"type": "string"
},
"requiredApproverCount": {
"type": "integer",
"format": "int32"
},
"createdAt": {
"type": "string",
"format": "date-time"
@@ -2858,108 +3129,55 @@
"maxLength": 128,
"minLength": 0,
"nullable": false
},
"approvalMode": {
"type": "string",
"nullable": true
},
"schedulePostsAutomaticallyOnApproval": {
"type": "boolean",
"nullable": true
},
"lockContentAfterApproval": {
"type": "boolean",
"nullable": true
},
"sendAutomaticApprovalReminders": {
"type": "boolean",
"nullable": true
},
"approvalSteps": {
"type": "array",
"nullable": true,
"items": {
"$ref": "#/components/schemas/SocializeApiModulesWorkspacesHandlersUpdateApprovalStepConfigurationRequest"
}
}
}
},
"SocializeApiModulesProjectsHandlersProjectDto": {
"SocializeApiModulesWorkspacesHandlersUpdateApprovalStepConfigurationRequest": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "guid"
},
"workspaceId": {
"type": "string",
"format": "guid"
},
"clientId": {
"type": "string",
"format": "guid"
},
"name": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
"sortOrder": {
"type": "integer",
"format": "int32"
},
"notes": {
"type": "string",
"nullable": true
},
"status": {
"targetType": {
"type": "string"
},
"startDate": {
"type": "string",
"format": "date-time"
"targetValue": {
"type": "string"
},
"endDate": {
"type": "string",
"format": "date-time"
"requiredApproverCount": {
"type": "integer",
"format": "int32"
}
}
},
"SocializeApiModulesProjectsHandlersCreateProjectRequest": {
"type": "object",
"additionalProperties": false,
"required": [
"workspaceId",
"clientId",
"name",
"startDate",
"endDate"
],
"properties": {
"workspaceId": {
"type": "string",
"format": "guid",
"minLength": 1,
"nullable": false
},
"clientId": {
"type": "string",
"format": "guid",
"minLength": 1,
"nullable": false
},
"name": {
"type": "string",
"maxLength": 256,
"minLength": 0,
"nullable": false
},
"startDate": {
"type": "string",
"format": "date-time",
"minLength": 1,
"nullable": false
},
"endDate": {
"type": "string",
"format": "date-time",
"minLength": 1,
"nullable": false
},
"description": {
"type": "string",
"maxLength": 4000,
"minLength": 0,
"nullable": true
},
"notes": {
"type": "string",
"maxLength": 4000,
"minLength": 0,
"nullable": true
}
}
},
"SocializeApiModulesProjectsHandlersGetProjectsRequest": {
"type": "object",
"additionalProperties": false
},
"SocializeApiModulesNotificationsHandlersNotificationEventDto": {
"type": "object",
"additionalProperties": false,
@@ -3147,7 +3365,7 @@
"format": "guid"
}
},
"authorizedProjectIds": {
"authorizedCampaignIds": {
"type": "array",
"items": {
"type": "string",
@@ -3388,6 +3606,72 @@
"type": "object",
"additionalProperties": false
},
"SocializeApiModulesFeedbackContractsFeedbackTimelineItemDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "guid"
},
"kind": {
"type": "string"
},
"actorUserId": {
"type": "string",
"format": "guid"
},
"actorDisplayName": {
"type": "string"
},
"actorEmail": {
"type": "string"
},
"actorRole": {
"type": "string",
"nullable": true
},
"body": {
"type": "string",
"nullable": true
},
"activityType": {
"type": "string",
"nullable": true
},
"fromValue": {
"type": "string",
"nullable": true
},
"toValue": {
"type": "string",
"nullable": true
},
"note": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"SocializeApiModulesFeedbackHandlersAddFeedbackCommentRequest": {
"type": "object",
"additionalProperties": false,
"required": [
"body"
],
"properties": {
"body": {
"type": "string",
"maxLength": 8000,
"minLength": 0,
"nullable": false
}
}
},
"SocializeApiModulesFeedbackContractsFeedbackReportDto": {
"type": "object",
"additionalProperties": false,
@@ -3435,6 +3719,12 @@
"type": "string"
}
},
"timeline": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SocializeApiModulesFeedbackContractsFeedbackTimelineItemDto"
}
},
"createdAt": {
"type": "string",
"format": "date-time"
@@ -3503,12 +3793,12 @@
"type": "string",
"nullable": true
},
"projectId": {
"campaignId": {
"type": "string",
"format": "guid",
"nullable": true
},
"projectName": {
"campaignName": {
"type": "string",
"nullable": true
},
@@ -3652,12 +3942,12 @@
"minLength": 0,
"nullable": true
},
"projectId": {
"campaignId": {
"type": "string",
"format": "guid",
"nullable": true
},
"projectName": {
"campaignName": {
"type": "string",
"maxLength": 256,
"minLength": 0,
@@ -3719,7 +4009,7 @@
"type": "string",
"format": "guid"
},
"projectId": {
"campaignId": {
"type": "string",
"format": "guid"
},
@@ -3759,7 +4049,7 @@
"required": [
"workspaceId",
"clientId",
"projectId",
"campaignId",
"title",
"publicationMessage",
"publicationTargets"
@@ -3777,7 +4067,7 @@
"minLength": 1,
"nullable": false
},
"projectId": {
"campaignId": {
"type": "string",
"format": "guid",
"minLength": 1,
@@ -3918,7 +4208,7 @@
"type": "string",
"format": "guid"
},
"projectId": {
"campaignId": {
"type": "string",
"format": "guid"
},
@@ -4225,6 +4515,105 @@
}
}
},
"SocializeApiModulesCampaignsHandlersCampaignDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "guid"
},
"workspaceId": {
"type": "string",
"format": "guid"
},
"clientId": {
"type": "string",
"format": "guid"
},
"name": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"notes": {
"type": "string",
"nullable": true
},
"status": {
"type": "string"
},
"startDate": {
"type": "string",
"format": "date-time"
},
"endDate": {
"type": "string",
"format": "date-time"
}
}
},
"SocializeApiModulesCampaignsHandlersCreateCampaignRequest": {
"type": "object",
"additionalProperties": false,
"required": [
"workspaceId",
"clientId",
"name",
"startDate",
"endDate"
],
"properties": {
"workspaceId": {
"type": "string",
"format": "guid",
"minLength": 1,
"nullable": false
},
"clientId": {
"type": "string",
"format": "guid",
"minLength": 1,
"nullable": false
},
"name": {
"type": "string",
"maxLength": 256,
"minLength": 0,
"nullable": false
},
"startDate": {
"type": "string",
"format": "date-time",
"minLength": 1,
"nullable": false
},
"endDate": {
"type": "string",
"format": "date-time",
"minLength": 1,
"nullable": false
},
"description": {
"type": "string",
"maxLength": 4000,
"minLength": 0,
"nullable": true
},
"notes": {
"type": "string",
"maxLength": 4000,
"minLength": 0,
"nullable": true
}
}
},
"SocializeApiModulesCampaignsHandlersGetCampaignsRequest": {
"type": "object",
"additionalProperties": false
},
"SocializeApiModulesAssetsHandlersAssetRevisionDto": {
"type": "object",
"additionalProperties": false,
@@ -4419,6 +4808,29 @@
"type": "string",
"format": "guid"
},
"workflowInstanceId": {
"type": "string",
"format": "guid",
"nullable": true
},
"workflowStepSortOrder": {
"type": "integer",
"format": "int32",
"nullable": true
},
"workflowStepTargetType": {
"type": "string",
"nullable": true
},
"workflowStepTargetValue": {
"type": "string",
"nullable": true
},
"workflowStepRequiredApproverCount": {
"type": "integer",
"format": "int32",
"nullable": true
},
"stage": {
"type": "string"
},
@@ -4563,8 +4975,7 @@
"properties": {
"decision": {
"type": "string",
"maxLength": 64,
"minLength": 0,
"minLength": 1,
"nullable": false
},
"comment": {