Mprove
.json
CommitRepo

CommitRepo

POST/api/ToBackendCommitRepo

Commit local changes in a repo branch

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendCommitRepo" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendCommitRepo",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "branchId": "string",      "repoId": "string",      "commitMessage": "string"    }  }'
{
  "info": {
    "path": "/api/ToBackendCommitRepo",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "repo": {
      "orgId": "string",
      "projectId": "string",
      "repoId": "string",
      "currentBranchId": "string",
      "repoStatus": "NeedCommit",
      "conflicts": [
        {
          "fileId": "string",
          "fileName": "string",
          "lineNumber": -9007199254740991
        }
      ],
      "nodes": [
        {
          "id": "string",
          "isFolder": true,
          "name": "string",
          "fileId": "string",
          "children": [
            {
              "id": "string",
              "isFolder": true,
              "name": "string",
              "fileId": "string",
              "children": []
            }
          ]
        }
      ],
      "changesToCommit": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ],
      "changesToPush": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ]
    },
    "session": {
      "sessionId": "string",
      "opencodeSessionId": "string",
      "type": "Explorer",
      "provider": "string",
      "agent": "string",
      "model": "string",
      "lastMessageProviderModel": "string",
      "lastMessageVariant": "string",
      "status": "string",
      "archiveReason": "User",
      "pauseReason": "User",
      "repoId": "string",
      "branchId": "string",
      "initialBranch": "string",
      "envId": "string",
      "initialCommit": "string",
      "createdTs": -9007199254740991,
      "lastActivityTs": -9007199254740991,
      "firstMessage": "string",
      "title": "string",
      "useCodex": true,
      "closedExplorerTabIds": [
        "string"
      ]
    }
  }
}

GetRepo

POST/api/ToBackendGetRepo

Get repo catalog for a branch

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendGetRepo" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendGetRepo",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string",      "isFetch": true    }  }'
{
  "info": {
    "path": "/api/ToBackendGetRepo",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "needValidate": true,
    "struct": {
      "projectId": "string",
      "structId": "string",
      "errors": [
        {
          "title": "string",
          "message": "string",
          "lines": [
            {
              "fileId": "string",
              "fileName": "string",
              "lineNumber": -9007199254740991
            }
          ]
        }
      ],
      "metrics": [
        {
          "modelId": "string",
          "modelType": "Store",
          "connectionType": "PostgreSQL",
          "fieldId": "string",
          "fieldClass": "dimension",
          "fieldResult": "day_of_week",
          "timeFieldId": "string",
          "structId": "string",
          "filePath": "string",
          "fieldLineNum": -9007199254740991,
          "type": "Model",
          "metricId": "string",
          "topNode": "string",
          "label": "string",
          "topLabel": "string",
          "partNodeLabel": "string",
          "partFieldLabel": "string",
          "partLabel": "string",
          "timeNodeLabel": "string",
          "timeFieldLabel": "string",
          "timeLabel": "string",
          "description": "string",
          "formatNumber": "string",
          "currencyPrefix": "string",
          "currencySuffix": "string",
          "serverTs": -9007199254740991,
          "hasAccessToModel": true
        }
      ],
      "presets": [
        {
          "presetId": "string",
          "label": "string",
          "path": "string",
          "parsedContent": null
        }
      ],
      "mproveConfig": {
        "mproveDirValue": "string",
        "caseSensitiveStringFilters": true,
        "weekStart": "Sunday",
        "allowTimezones": true,
        "defaultTimezone": "string",
        "formatNumber": "string",
        "currencyPrefix": "string",
        "currencySuffix": "string",
        "thousandsSeparator": "string"
      },
      "mproveVersion": "string",
      "serverTs": -9007199254740991
    },
    "userMember": {
      "projectId": "string",
      "memberId": "string",
      "email": "string",
      "alias": "string",
      "firstName": "string",
      "lastName": "string",
      "fullName": "string",
      "avatarSmall": "string",
      "roles": [
        "string"
      ],
      "isAdmin": true,
      "isEditor": true,
      "isExplorer": true,
      "serverTs": -9007199254740991
    },
    "user": {
      "userId": "string",
      "email": "string",
      "alias": "string",
      "firstName": "string",
      "lastName": "string",
      "isEmailVerified": true,
      "ui": {
        "modelTreeLevels": "Flat",
        "timezone": "string",
        "timeSpec": "timestamps",
        "timeRangeFraction": {
          "controls": [
            {
              "options": [
                {
                  "value": "string",
                  "label": "string"
                }
              ],
              "value": null,
              "label": "string",
              "required": "string",
              "name": "string",
              "controlClass": "list_input",
              "isMetricsDate": true
            }
          ],
          "brick": "string",
          "parentBrick": "string",
          "operator": "Or",
          "logicGroup": "OR",
          "type": "StoreFraction",
          "storeFractionSubTypeOptions": [
            {
              "logicGroup": "OR",
              "typeValue": "string",
              "value": "string",
              "label": "string"
            }
          ],
          "storeFractionSubType": "string",
          "storeFractionSubTypeLabel": "string",
          "storeFractionLogicGroupWithSubType": "string",
          "meta": null,
          "storeResult": "string",
          "stringValue": "string",
          "numberValue1": 0,
          "numberValue2": 0,
          "numberValues": "string",
          "numberBetweenOption": "Inclusive",
          "yesnoValue": "Yes",
          "dayOfWeekValue": "Monday",
          "dayOfWeekIndexValues": "string",
          "monthNameValue": "January",
          "quarterOfYearValue": "q1",
          "tsDateYear": 0,
          "tsDateQuarter": 0,
          "tsDateMonth": 0,
          "tsDateDay": 0,
          "tsDateHour": 0,
          "tsDateMinute": 0,
          "tsDateToYear": 0,
          "tsDateToQuarter": 0,
          "tsDateToMonth": 0,
          "tsDateToDay": 0,
          "tsDateToHour": 0,
          "tsDateToMinute": 0,
          "tsForValue": 0,
          "tsForUnit": "seconds",
          "tsLastValue": 0,
          "tsLastUnit": "seconds",
          "tsLastCompleteOption": "CompleteWithCurrent",
          "tsNextValue": 0,
          "tsNextUnit": "seconds",
          "tsMoment": null,
          "tsMomentType": "Literal",
          "tsMomentUnit": "second",
          "tsTimestampValue": "string",
          "tsMomentAgoFromNowQuantity": 0,
          "tsFromMoment": null,
          "tsFromMomentType": "Literal",
          "tsFromMomentUnit": "second",
          "tsFromTimestampValue": "string",
          "tsFromMomentAgoFromNowQuantity": 0,
          "tsToMoment": null,
          "tsToMomentType": "Literal",
          "tsToMomentUnit": "second",
          "tsToTimestampValue": "string",
          "tsToMomentAgoFromNowQuantity": 0
        },
        "projectModelLinks": [
          {
            "projectId": "string",
            "modelId": "string",
            "navTs": -9007199254740991
          }
        ],
        "projectChartLinks": [
          {
            "projectId": "string",
            "chartId": "string",
            "navTs": -9007199254740991
          }
        ],
        "projectDashboardLinks": [
          {
            "projectId": "string",
            "dashboardId": "string",
            "navTs": -9007199254740991
          }
        ],
        "projectExplorerSessionLinks": [
          {
            "projectId": "string",
            "sessionId": "string",
            "repoId": "string",
            "branchId": "string",
            "envId": "string",
            "tabId": "string",
            "navTs": -9007199254740991
          }
        ],
        "projectReportLinks": [
          {
            "projectId": "string",
            "reportId": "string",
            "navTs": -9007199254740991
          }
        ],
        "projectSelectedGivenLinks": [
          {
            "projectId": "string",
            "givens": [
              {
                "givenId": "string",
                "type": "String",
                "isMultiple": true,
                "values": [
                  "string"
                ]
              }
            ],
            "navTs": -9007199254740991
          }
        ],
        "permissionsAutoAcceptSessionIds": [
          "string"
        ],
        "newSessionPermissionsAutoAccept": true,
        "newSessionExplorerProviderModel": "string",
        "newSessionEditorProviderModel": "string",
        "newSessionEditorVariant": "string",
        "newSessionUseCodex": true
      },
      "apiKeyPrefix": "string",
      "isCodexAuthSet": true,
      "codexAuthUpdateTs": -9007199254740991,
      "codexAuthExpiresTs": -9007199254740991,
      "serverTs": -9007199254740991
    },
    "repo": {
      "orgId": "string",
      "projectId": "string",
      "repoId": "string",
      "currentBranchId": "string",
      "repoStatus": "NeedCommit",
      "conflicts": [
        {
          "fileId": "string",
          "fileName": "string",
          "lineNumber": -9007199254740991
        }
      ],
      "nodes": [
        {
          "id": "string",
          "isFolder": true,
          "name": "string",
          "fileId": "string",
          "children": [
            {
              "id": "string",
              "isFolder": true,
              "name": "string",
              "fileId": "string",
              "children": []
            }
          ]
        }
      ],
      "changesToCommit": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ],
      "changesToPush": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ]
    }
  }
}

MergeRepo

POST/api/ToBackendMergeRepo

Merge another branch into the current branch

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendMergeRepo" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendMergeRepo",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string",      "theirBranchId": "string",      "isTheirBranchRemote": true    }  }'
{
  "info": {
    "path": "/api/ToBackendMergeRepo",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "repo": {
      "orgId": "string",
      "projectId": "string",
      "repoId": "string",
      "currentBranchId": "string",
      "repoStatus": "NeedCommit",
      "conflicts": [
        {
          "fileId": "string",
          "fileName": "string",
          "lineNumber": -9007199254740991
        }
      ],
      "nodes": [
        {
          "id": "string",
          "isFolder": true,
          "name": "string",
          "fileId": "string",
          "children": [
            {
              "id": "string",
              "isFolder": true,
              "name": "string",
              "fileId": "string",
              "children": []
            }
          ]
        }
      ],
      "changesToCommit": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ],
      "changesToPush": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ]
    },
    "struct": {
      "projectId": "string",
      "structId": "string",
      "errors": [
        {
          "title": "string",
          "message": "string",
          "lines": [
            {
              "fileId": "string",
              "fileName": "string",
              "lineNumber": -9007199254740991
            }
          ]
        }
      ],
      "metrics": [
        {
          "modelId": "string",
          "modelType": "Store",
          "connectionType": "PostgreSQL",
          "fieldId": "string",
          "fieldClass": "dimension",
          "fieldResult": "day_of_week",
          "timeFieldId": "string",
          "structId": "string",
          "filePath": "string",
          "fieldLineNum": -9007199254740991,
          "type": "Model",
          "metricId": "string",
          "topNode": "string",
          "label": "string",
          "topLabel": "string",
          "partNodeLabel": "string",
          "partFieldLabel": "string",
          "partLabel": "string",
          "timeNodeLabel": "string",
          "timeFieldLabel": "string",
          "timeLabel": "string",
          "description": "string",
          "formatNumber": "string",
          "currencyPrefix": "string",
          "currencySuffix": "string",
          "serverTs": -9007199254740991,
          "hasAccessToModel": true
        }
      ],
      "presets": [
        {
          "presetId": "string",
          "label": "string",
          "path": "string",
          "parsedContent": null
        }
      ],
      "mproveConfig": {
        "mproveDirValue": "string",
        "caseSensitiveStringFilters": true,
        "weekStart": "Sunday",
        "allowTimezones": true,
        "defaultTimezone": "string",
        "formatNumber": "string",
        "currencyPrefix": "string",
        "currencySuffix": "string",
        "thousandsSeparator": "string"
      },
      "mproveVersion": "string",
      "serverTs": -9007199254740991
    },
    "needValidate": true
  }
}

PullRepo

POST/api/ToBackendPullRepo

Pull remote changes

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendPullRepo" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendPullRepo",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string"    }  }'
{
  "info": {
    "path": "/api/ToBackendPullRepo",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "repo": {
      "orgId": "string",
      "projectId": "string",
      "repoId": "string",
      "currentBranchId": "string",
      "repoStatus": "NeedCommit",
      "conflicts": [
        {
          "fileId": "string",
          "fileName": "string",
          "lineNumber": -9007199254740991
        }
      ],
      "nodes": [
        {
          "id": "string",
          "isFolder": true,
          "name": "string",
          "fileId": "string",
          "children": [
            {
              "id": "string",
              "isFolder": true,
              "name": "string",
              "fileId": "string",
              "children": []
            }
          ]
        }
      ],
      "changesToCommit": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ],
      "changesToPush": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ]
    },
    "struct": {
      "projectId": "string",
      "structId": "string",
      "errors": [
        {
          "title": "string",
          "message": "string",
          "lines": [
            {
              "fileId": "string",
              "fileName": "string",
              "lineNumber": -9007199254740991
            }
          ]
        }
      ],
      "metrics": [
        {
          "modelId": "string",
          "modelType": "Store",
          "connectionType": "PostgreSQL",
          "fieldId": "string",
          "fieldClass": "dimension",
          "fieldResult": "day_of_week",
          "timeFieldId": "string",
          "structId": "string",
          "filePath": "string",
          "fieldLineNum": -9007199254740991,
          "type": "Model",
          "metricId": "string",
          "topNode": "string",
          "label": "string",
          "topLabel": "string",
          "partNodeLabel": "string",
          "partFieldLabel": "string",
          "partLabel": "string",
          "timeNodeLabel": "string",
          "timeFieldLabel": "string",
          "timeLabel": "string",
          "description": "string",
          "formatNumber": "string",
          "currencyPrefix": "string",
          "currencySuffix": "string",
          "serverTs": -9007199254740991,
          "hasAccessToModel": true
        }
      ],
      "presets": [
        {
          "presetId": "string",
          "label": "string",
          "path": "string",
          "parsedContent": null
        }
      ],
      "mproveConfig": {
        "mproveDirValue": "string",
        "caseSensitiveStringFilters": true,
        "weekStart": "Sunday",
        "allowTimezones": true,
        "defaultTimezone": "string",
        "formatNumber": "string",
        "currencyPrefix": "string",
        "currencySuffix": "string",
        "thousandsSeparator": "string"
      },
      "mproveVersion": "string",
      "serverTs": -9007199254740991
    },
    "needValidate": true
  }
}

PushRepo

POST/api/ToBackendPushRepo

Push branch commits to the remote repo

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendPushRepo" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendPushRepo",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string"    }  }'
{
  "info": {
    "path": "/api/ToBackendPushRepo",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "repo": {
      "orgId": "string",
      "projectId": "string",
      "repoId": "string",
      "currentBranchId": "string",
      "repoStatus": "NeedCommit",
      "conflicts": [
        {
          "fileId": "string",
          "fileName": "string",
          "lineNumber": -9007199254740991
        }
      ],
      "nodes": [
        {
          "id": "string",
          "isFolder": true,
          "name": "string",
          "fileId": "string",
          "children": [
            {
              "id": "string",
              "isFolder": true,
              "name": "string",
              "fileId": "string",
              "children": []
            }
          ]
        }
      ],
      "changesToCommit": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ],
      "changesToPush": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ]
    },
    "struct": {
      "projectId": "string",
      "structId": "string",
      "errors": [
        {
          "title": "string",
          "message": "string",
          "lines": [
            {
              "fileId": "string",
              "fileName": "string",
              "lineNumber": -9007199254740991
            }
          ]
        }
      ],
      "metrics": [
        {
          "modelId": "string",
          "modelType": "Store",
          "connectionType": "PostgreSQL",
          "fieldId": "string",
          "fieldClass": "dimension",
          "fieldResult": "day_of_week",
          "timeFieldId": "string",
          "structId": "string",
          "filePath": "string",
          "fieldLineNum": -9007199254740991,
          "type": "Model",
          "metricId": "string",
          "topNode": "string",
          "label": "string",
          "topLabel": "string",
          "partNodeLabel": "string",
          "partFieldLabel": "string",
          "partLabel": "string",
          "timeNodeLabel": "string",
          "timeFieldLabel": "string",
          "timeLabel": "string",
          "description": "string",
          "formatNumber": "string",
          "currencyPrefix": "string",
          "currencySuffix": "string",
          "serverTs": -9007199254740991,
          "hasAccessToModel": true
        }
      ],
      "presets": [
        {
          "presetId": "string",
          "label": "string",
          "path": "string",
          "parsedContent": null
        }
      ],
      "mproveConfig": {
        "mproveDirValue": "string",
        "caseSensitiveStringFilters": true,
        "weekStart": "Sunday",
        "allowTimezones": true,
        "defaultTimezone": "string",
        "formatNumber": "string",
        "currencyPrefix": "string",
        "currencySuffix": "string",
        "thousandsSeparator": "string"
      },
      "mproveVersion": "string",
      "serverTs": -9007199254740991
    },
    "needValidate": true
  }
}

RevertRepoToLastCommit

POST/api/ToBackendRevertRepoToLastCommit

Discard uncommitted changes and revert to the last commit

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendRevertRepoToLastCommit" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendRevertRepoToLastCommit",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string"    }  }'
{
  "info": {
    "path": "/api/ToBackendRevertRepoToLastCommit",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "repo": {
      "orgId": "string",
      "projectId": "string",
      "repoId": "string",
      "currentBranchId": "string",
      "repoStatus": "NeedCommit",
      "conflicts": [
        {
          "fileId": "string",
          "fileName": "string",
          "lineNumber": -9007199254740991
        }
      ],
      "nodes": [
        {
          "id": "string",
          "isFolder": true,
          "name": "string",
          "fileId": "string",
          "children": [
            {
              "id": "string",
              "isFolder": true,
              "name": "string",
              "fileId": "string",
              "children": []
            }
          ]
        }
      ],
      "changesToCommit": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ],
      "changesToPush": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ]
    },
    "struct": {
      "projectId": "string",
      "structId": "string",
      "errors": [
        {
          "title": "string",
          "message": "string",
          "lines": [
            {
              "fileId": "string",
              "fileName": "string",
              "lineNumber": -9007199254740991
            }
          ]
        }
      ],
      "metrics": [
        {
          "modelId": "string",
          "modelType": "Store",
          "connectionType": "PostgreSQL",
          "fieldId": "string",
          "fieldClass": "dimension",
          "fieldResult": "day_of_week",
          "timeFieldId": "string",
          "structId": "string",
          "filePath": "string",
          "fieldLineNum": -9007199254740991,
          "type": "Model",
          "metricId": "string",
          "topNode": "string",
          "label": "string",
          "topLabel": "string",
          "partNodeLabel": "string",
          "partFieldLabel": "string",
          "partLabel": "string",
          "timeNodeLabel": "string",
          "timeFieldLabel": "string",
          "timeLabel": "string",
          "description": "string",
          "formatNumber": "string",
          "currencyPrefix": "string",
          "currencySuffix": "string",
          "serverTs": -9007199254740991,
          "hasAccessToModel": true
        }
      ],
      "presets": [
        {
          "presetId": "string",
          "label": "string",
          "path": "string",
          "parsedContent": null
        }
      ],
      "mproveConfig": {
        "mproveDirValue": "string",
        "caseSensitiveStringFilters": true,
        "weekStart": "Sunday",
        "allowTimezones": true,
        "defaultTimezone": "string",
        "formatNumber": "string",
        "currencyPrefix": "string",
        "currencySuffix": "string",
        "thousandsSeparator": "string"
      },
      "mproveVersion": "string",
      "serverTs": -9007199254740991
    },
    "needValidate": true
  }
}

RevertRepoToRemote

POST/api/ToBackendRevertRepoToRemote

Reset the repo branch to match the remote

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendRevertRepoToRemote" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendRevertRepoToRemote",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "envId": "string"    }  }'
{
  "info": {
    "path": "/api/ToBackendRevertRepoToRemote",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "repo": {
      "orgId": "string",
      "projectId": "string",
      "repoId": "string",
      "currentBranchId": "string",
      "repoStatus": "NeedCommit",
      "conflicts": [
        {
          "fileId": "string",
          "fileName": "string",
          "lineNumber": -9007199254740991
        }
      ],
      "nodes": [
        {
          "id": "string",
          "isFolder": true,
          "name": "string",
          "fileId": "string",
          "children": [
            {
              "id": "string",
              "isFolder": true,
              "name": "string",
              "fileId": "string",
              "children": []
            }
          ]
        }
      ],
      "changesToCommit": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ],
      "changesToPush": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ]
    },
    "struct": {
      "projectId": "string",
      "structId": "string",
      "errors": [
        {
          "title": "string",
          "message": "string",
          "lines": [
            {
              "fileId": "string",
              "fileName": "string",
              "lineNumber": -9007199254740991
            }
          ]
        }
      ],
      "metrics": [
        {
          "modelId": "string",
          "modelType": "Store",
          "connectionType": "PostgreSQL",
          "fieldId": "string",
          "fieldClass": "dimension",
          "fieldResult": "day_of_week",
          "timeFieldId": "string",
          "structId": "string",
          "filePath": "string",
          "fieldLineNum": -9007199254740991,
          "type": "Model",
          "metricId": "string",
          "topNode": "string",
          "label": "string",
          "topLabel": "string",
          "partNodeLabel": "string",
          "partFieldLabel": "string",
          "partLabel": "string",
          "timeNodeLabel": "string",
          "timeFieldLabel": "string",
          "timeLabel": "string",
          "description": "string",
          "formatNumber": "string",
          "currencyPrefix": "string",
          "currencySuffix": "string",
          "serverTs": -9007199254740991,
          "hasAccessToModel": true
        }
      ],
      "presets": [
        {
          "presetId": "string",
          "label": "string",
          "path": "string",
          "parsedContent": null
        }
      ],
      "mproveConfig": {
        "mproveDirValue": "string",
        "caseSensitiveStringFilters": true,
        "weekStart": "Sunday",
        "allowTimezones": true,
        "defaultTimezone": "string",
        "formatNumber": "string",
        "currencyPrefix": "string",
        "currencySuffix": "string",
        "thousandsSeparator": "string"
      },
      "mproveVersion": "string",
      "serverTs": -9007199254740991
    },
    "needValidate": true
  }
}

SyncRepo

POST/api/ToBackendSyncRepo

Sync local git repo state with server git repo state

Request Body

application/json

Response Body

application/json

curl -X POST "http://localhost:3000/api/ToBackendSyncRepo" \  -H "Content-Type: application/json" \  -d '{    "info": {      "name": "api/ToBackendSyncRepo",      "traceId": "string",      "idempotencyKey": "string"    },    "payload": {      "projectId": "string",      "repoId": "string",      "branchId": "string",      "lastCommit": "string",      "lastSyncTime": 0,      "envId": "string",      "localChangedFiles": [        {          "path": "string"        }      ],      "localDeletedFiles": [        {          "path": "string"        }      ]    }  }'
{
  "info": {
    "path": "/api/ToBackendSyncRepo",
    "method": "POST",
    "mproveVersion": "string",
    "duration": 0,
    "status": "Ok",
    "traceId": "string",
    "error": null
  },
  "payload": {
    "restChangedFiles": [
      {
        "path": "string",
        "status": "New",
        "content": "string",
        "modifiedTime": 0
      }
    ],
    "restDeletedFiles": [
      {
        "path": "string",
        "status": "New",
        "content": "string",
        "modifiedTime": 0
      }
    ],
    "needValidate": true,
    "repo": {
      "orgId": "string",
      "projectId": "string",
      "repoId": "string",
      "currentBranchId": "string",
      "repoStatus": "NeedCommit",
      "conflicts": [
        {
          "fileId": "string",
          "fileName": "string",
          "lineNumber": -9007199254740991
        }
      ],
      "nodes": [
        {
          "id": "string",
          "isFolder": true,
          "name": "string",
          "fileId": "string",
          "children": [
            {
              "id": "string",
              "isFolder": true,
              "name": "string",
              "fileId": "string",
              "children": []
            }
          ]
        }
      ],
      "changesToCommit": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ],
      "changesToPush": [
        {
          "fileName": "string",
          "fileId": "string",
          "parentPath": "string",
          "status": "New",
          "content": "string"
        }
      ]
    },
    "struct": {
      "projectId": "string",
      "structId": "string",
      "errors": [
        {
          "title": "string",
          "message": "string",
          "lines": [
            {
              "fileId": "string",
              "fileName": "string",
              "lineNumber": -9007199254740991
            }
          ]
        }
      ],
      "metrics": [
        {
          "modelId": "string",
          "modelType": "Store",
          "connectionType": "PostgreSQL",
          "fieldId": "string",
          "fieldClass": "dimension",
          "fieldResult": "day_of_week",
          "timeFieldId": "string",
          "structId": "string",
          "filePath": "string",
          "fieldLineNum": -9007199254740991,
          "type": "Model",
          "metricId": "string",
          "topNode": "string",
          "label": "string",
          "topLabel": "string",
          "partNodeLabel": "string",
          "partFieldLabel": "string",
          "partLabel": "string",
          "timeNodeLabel": "string",
          "timeFieldLabel": "string",
          "timeLabel": "string",
          "description": "string",
          "formatNumber": "string",
          "currencyPrefix": "string",
          "currencySuffix": "string",
          "serverTs": -9007199254740991,
          "hasAccessToModel": true
        }
      ],
      "presets": [
        {
          "presetId": "string",
          "label": "string",
          "path": "string",
          "parsedContent": null
        }
      ],
      "mproveConfig": {
        "mproveDirValue": "string",
        "caseSensitiveStringFilters": true,
        "weekStart": "Sunday",
        "allowTimezones": true,
        "defaultTimezone": "string",
        "formatNumber": "string",
        "currencyPrefix": "string",
        "currencySuffix": "string",
        "thousandsSeparator": "string"
      },
      "mproveVersion": "string",
      "serverTs": -9007199254740991
    },
    "devReqReceiveTime": 0,
    "devRespSentTime": 0
  }
}

On this page