"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UPDATE_TARGET_BY_PK_MUTATION = exports.UPDATE_TARGET_BY_ROLE_MUTATION = exports.INSERT_TARGET_MUTATION = void 0;
exports.INSERT_TARGET_MUTATION = `
  mutation insertTargetMutation($data: [user_segment_target_insert_input!]!) {
    insert_user_segment_target(objects: $data) {
      affected_rows
      returning {
        id
      }
    }
  }
`;
exports.UPDATE_TARGET_BY_ROLE_MUTATION = `
  mutation updateTargetByRoleMutation(
    $targetId: uuid!
    $targetByRoles: [user_segment_target_by_role_insert_input!]!
  ) {
    update_user_segment_target_by_role(
      where: {target_id: {_eq: $targetId}}
      _set: {deleted_at: now}
    ) {
      affected_rows
    }

    insert_user_segment_target_by_role(objects: $targetByRoles) {
      affected_rows
    }
  }
`;
exports.UPDATE_TARGET_BY_PK_MUTATION = `
  mutation updateTargetByPkMutation(
    $data: user_segment_target_set_input!
    $id: uuid!
  ) {
    update_user_segment_target_by_pk(pk_columns: {id: $id}, _set: $data) {
      id
    }
  }
`;
//# sourceMappingURL=mutation.js.map