* created service for sending google transcripts to gen ai * TP-45807| resolved bugs in drive service tests * TP-45807| unit tests for getting conversation data function * creating driveservice in app context and passing to rca service * modified the unit tests to accomodate driveservicemock * resolved merge conflicts * resolved merge conflicts
41 lines
1.1 KiB
Go
41 lines
1.1 KiB
Go
package model
|
|
|
|
type FileDownloadPreSignedURLRequest struct {
|
|
FlowId string `json:"flowId"`
|
|
IdentifierKey string `json:"identifierKey"`
|
|
}
|
|
|
|
type FileUploadURLRequest struct {
|
|
CustomerId string `json:"customerId"`
|
|
FileType string `json:"fileType"`
|
|
FlowId string `json:"flowId"`
|
|
}
|
|
|
|
type FileUploadURLGeneratorResponse struct {
|
|
FormData FormData `json:"formData"`
|
|
Url string `json:"url"`
|
|
}
|
|
|
|
type FormData struct {
|
|
Policy string `json:"Policy"`
|
|
XAmzAlgorithm string `json:"X-Amz-Algorithm"`
|
|
XAmzCredential string `json:"X-Amz-Credential"`
|
|
XAmzDate string `json:"X-Amz-Date"`
|
|
XAmzSecurityToken string `json:"X-Amz-Security-Token"`
|
|
XAmzSignature string `json:"X-Amz-Signature"`
|
|
Bucket string `json:"bucket"`
|
|
Key string `json:"key"`
|
|
}
|
|
type FileDownloadURLResponse struct {
|
|
Data struct {
|
|
Url string `json:"url"`
|
|
} `json:"data"`
|
|
Errors []interface{} `json:"errors"`
|
|
StatusCode int `json:"statusCode"`
|
|
}
|
|
|
|
type DirectoryPathResponse struct {
|
|
DirectoryPath string `json:"directoryPath"`
|
|
Error error `json:"error"`
|
|
}
|