import * as wrapper from './proto/proto-generated';
var DataExtensionSchemaService = wrapper.wix.infra.dataextensions.v1.DataExtensionSchemaService;
/** Creates a user-defined data extension schema. */
export function createDataExtensionSchema(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'createDataExtensionSchema';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Updates a user-defined data extension schema, overriding the existing data. */
export function updateDataExtensionSchema(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'updateDataExtensionSchema';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a list of global and user-defined data extension schemas for a given FQDN. */
export function listDataExtensionSchemas(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'listDataExtensionSchemas';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Delete demo data extension schema (only allowed for demo entity fqdn: wix.prime.auto.*.demo_entity) */
export function deleteDemoDataExtensionSchema(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'deleteDemoDataExtensionSchema';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Delete global data extension schema */
export function deleteGlobalExtensionSchema(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'deleteGlobalExtensionSchema';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Deletes schemas of whitelisted metasite ids */
export function deleteByWhiteListedMetaSite(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'deleteByWhiteListedMetaSite';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
export function consumeDataExtensionSchemaEvents(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'consumeDataExtensionSchemaEvents';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
export function appRuntimeDataEventHandler(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'appRuntimeDataEventHandler';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Deletes a user defined field from the specified data extension schema. */
export function deleteUserDefinedFields(payload) {
    var serviceArtifactId = 'com.wixpress.infra.dataextensions.schema-service';
    var serviceProtoClass = DataExtensionSchemaService;
    var methodName = 'deleteUserDefinedFields';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
//# sourceMappingURL=rpc.impl.js.map