Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLAT-25046: Support live catalog items in bulk upload #13033

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class BulkUploadVendorCatalogItemEngineCsv extends BulkUploadEngineCsv
private $bulkUploadResultParams = array(
'vendorPartnerId', 'name', 'systemName', 'serviceType', 'turnAroundTime',
'sourceLanguage', 'targetLanguage', 'outputFormat', 'enableSpeakerId', 'fixedPriceAddons',
'pricing', 'flavorParamsId', 'clearAudioFlavorParamsId', 'allowResubmission', 'requireSource', 'stage', 'contract', 'notes', 'createdBy');
'pricing', 'flavorParamsId', 'clearAudioFlavorParamsId', 'allowResubmission', 'requireSource', 'stage', 'contract', 'notes', 'createdBy',
'minimalRefundTime', 'minimalOrderTime', 'durationLimit'
);

/**
* (non-PHPdoc)
Expand Down Expand Up @@ -388,6 +390,10 @@ protected static function getObjectByServiceFeature($serviceFeature)
$object = new KalturaVendorLiveCaptionCatalogItem();
break;

case VendorServiceFeature::LIVE_TRANSLATION:
$object = new KalturaVendorLiveTranslationCatalogItem();
break;

default:
$object = new KalturaVendorCaptionsCatalogItem();
break;
Expand Down Expand Up @@ -421,6 +427,9 @@ protected function getColumns()
'contract',
'notes',
'createdBy',
'minimalRefundTime',
'minimalOrderTime',
'durationLimit',
);
}

Expand Down Expand Up @@ -452,4 +461,4 @@ static function getEnumValue($peer, $value)
}
return '';
}
}
}
45 changes: 43 additions & 2 deletions plugins/reach/lib/kReachUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,56 @@ public static function reachStrToTime($offset , $value)
*/
public static function getEntryVendorTaskCsvHeaders()
{
return array('id', 'partnerId', 'vendorPartnerId', 'entryId', 'createdAt', 'serviceType', 'serviceFeature', 'turnAroundTime', 'expectedFinishTime', 'status', 'errDescription');
return array(
'id',
'partnerId',
'vendorPartnerId',
'entryId',
'createdAt',
'serviceType',
'serviceFeature',
'turnAroundTime',
'expectedFinishTime',
'status',
'errDescription',
);
}

/**
* @return array
*/
public static function getVendorCatalogItemsCsvHeaders()
{
return array('id','status','vendorPartnerId','name','systemName','serviceFeature','serviceType','turnAroundTime','sourceLanguage','targetLanguage','outputFormat','createdAt','updatedAt','enableSpeakerId','fixedPriceAddons','pricing:pricePerUnit','pricing:priceFunction', 'flavorParamsId', 'clearAudioFlavorParamsId','allowResubmission','requireSource','stage','contract','notes','createdBy');
return array(
'id',
'status',
'vendorPartnerId',
'name',
'systemName',
'serviceFeature',
'serviceType',
'turnAroundTime',
'sourceLanguage',
'targetLanguage',
'outputFormat',
'createdAt',
'updatedAt',
'enableSpeakerId',
'fixedPriceAddons',
'pricing:pricePerUnit',
'pricing:priceFunction',
'flavorParamsId',
'clearAudioFlavorParamsId',
'allowResubmission',
'requireSource',
'stage',
'contract',
'notes',
'createdBy',
'minimalRefundTime',
'minimalOrderTime',
'durationLimit',
);
}


Expand Down